elasticsearch.min.js 1.4 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247
  1. /*! elasticsearch - v16.7.1 - 2020-03-26
  2. * https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/16.x/index.html
  3. * Copyright (c) 2020 Elasticsearch BV; Licensed Apache-2.0 */
  4. (function() {
  5. /* prevent lodash from detecting external amd loaders */ var define;
  6. !(function(a, b) {
  7. 'object' == typeof exports && 'object' == typeof module
  8. ? (module.exports = b())
  9. : 'function' == typeof define && define.amd
  10. ? define([], b)
  11. : 'object' == typeof exports
  12. ? (exports.elasticsearch = b())
  13. : (a.elasticsearch = b());
  14. })('undefined' != typeof self ? self : this, function() {
  15. return (function(a) {
  16. function b(d) {
  17. if (c[d]) return c[d].exports;
  18. var e = (c[d] = { i: d, l: !1, exports: {} });
  19. return a[d].call(e.exports, e, e.exports, b), (e.l = !0), e.exports;
  20. }
  21. var c = {};
  22. return (
  23. (b.m = a),
  24. (b.c = c),
  25. (b.d = function(a, c, d) {
  26. b.o(a, c) || Object.defineProperty(a, c, { configurable: !1, enumerable: !0, get: d });
  27. }),
  28. (b.n = function(a) {
  29. var c =
  30. a && a.__esModule
  31. ? function() {
  32. return a.default;
  33. }
  34. : function() {
  35. return a;
  36. };
  37. return b.d(c, 'a', c), c;
  38. }),
  39. (b.o = function(a, b) {
  40. return Object.prototype.hasOwnProperty.call(a, b);
  41. }),
  42. (b.p = ''),
  43. b((b.s = 26))
  44. );
  45. })([
  46. function(a, b, c) {
  47. (function(a, d) {
  48. var e;
  49. (function() {
  50. function f(a, b, c) {
  51. switch (c.length) {
  52. case 0:
  53. return a.call(b);
  54. case 1:
  55. return a.call(b, c[0]);
  56. case 2:
  57. return a.call(b, c[0], c[1]);
  58. case 3:
  59. return a.call(b, c[0], c[1], c[2]);
  60. }
  61. return a.apply(b, c);
  62. }
  63. function g(a, b, c, d) {
  64. for (var e = -1, f = null == a ? 0 : a.length; ++e < f; ) {
  65. var g = a[e];
  66. b(d, g, c(g), a);
  67. }
  68. return d;
  69. }
  70. function h(a, b) {
  71. for (var c = -1, d = null == a ? 0 : a.length; ++c < d && b(a[c], c, a) !== !1; );
  72. return a;
  73. }
  74. function i(a, b) {
  75. for (var c = null == a ? 0 : a.length; c-- && b(a[c], c, a) !== !1; );
  76. return a;
  77. }
  78. function j(a, b) {
  79. for (var c = -1, d = null == a ? 0 : a.length; ++c < d; ) if (!b(a[c], c, a)) return !1;
  80. return !0;
  81. }
  82. function k(a, b) {
  83. for (var c = -1, d = null == a ? 0 : a.length, e = 0, f = []; ++c < d; ) {
  84. var g = a[c];
  85. b(g, c, a) && (f[e++] = g);
  86. }
  87. return f;
  88. }
  89. function l(a, b) {
  90. var c = null == a ? 0 : a.length;
  91. return !!c && w(a, b, 0) > -1;
  92. }
  93. function m(a, b, c) {
  94. for (var d = -1, e = null == a ? 0 : a.length; ++d < e; ) if (c(b, a[d])) return !0;
  95. return !1;
  96. }
  97. function n(a, b) {
  98. for (var c = -1, d = null == a ? 0 : a.length, e = Array(d); ++c < d; )
  99. e[c] = b(a[c], c, a);
  100. return e;
  101. }
  102. function o(a, b) {
  103. for (var c = -1, d = b.length, e = a.length; ++c < d; ) a[e + c] = b[c];
  104. return a;
  105. }
  106. function p(a, b, c, d) {
  107. var e = -1,
  108. f = null == a ? 0 : a.length;
  109. for (d && f && (c = a[++e]); ++e < f; ) c = b(c, a[e], e, a);
  110. return c;
  111. }
  112. function q(a, b, c, d) {
  113. var e = null == a ? 0 : a.length;
  114. for (d && e && (c = a[--e]); e--; ) c = b(c, a[e], e, a);
  115. return c;
  116. }
  117. function r(a, b) {
  118. for (var c = -1, d = null == a ? 0 : a.length; ++c < d; ) if (b(a[c], c, a)) return !0;
  119. return !1;
  120. }
  121. function s(a) {
  122. return a.split('');
  123. }
  124. function t(a) {
  125. return a.match(Ob) || [];
  126. }
  127. function u(a, b, c) {
  128. var d;
  129. return (
  130. c(a, function(a, c, e) {
  131. if (b(a, c, e)) return (d = c), !1;
  132. }),
  133. d
  134. );
  135. }
  136. function v(a, b, c, d) {
  137. for (var e = a.length, f = c + (d ? 1 : -1); d ? f-- : ++f < e; )
  138. if (b(a[f], f, a)) return f;
  139. return -1;
  140. }
  141. function w(a, b, c) {
  142. return b === b ? X(a, b, c) : v(a, y, c);
  143. }
  144. function x(a, b, c, d) {
  145. for (var e = c - 1, f = a.length; ++e < f; ) if (d(a[e], b)) return e;
  146. return -1;
  147. }
  148. function y(a) {
  149. return a !== a;
  150. }
  151. function z(a, b) {
  152. var c = null == a ? 0 : a.length;
  153. return c ? E(a, b) / c : Ja;
  154. }
  155. function A(a) {
  156. return function(b) {
  157. return null == b ? ca : b[a];
  158. };
  159. }
  160. function B(a) {
  161. return function(b) {
  162. return null == a ? ca : a[b];
  163. };
  164. }
  165. function C(a, b, c, d, e) {
  166. return (
  167. e(a, function(a, e, f) {
  168. c = d ? ((d = !1), a) : b(c, a, e, f);
  169. }),
  170. c
  171. );
  172. }
  173. function D(a, b) {
  174. var c = a.length;
  175. for (a.sort(b); c--; ) a[c] = a[c].value;
  176. return a;
  177. }
  178. function E(a, b) {
  179. for (var c, d = -1, e = a.length; ++d < e; ) {
  180. var f = b(a[d]);
  181. f !== ca && (c = c === ca ? f : c + f);
  182. }
  183. return c;
  184. }
  185. function F(a, b) {
  186. for (var c = -1, d = Array(a); ++c < a; ) d[c] = b(c);
  187. return d;
  188. }
  189. function G(a, b) {
  190. return n(b, function(b) {
  191. return [b, a[b]];
  192. });
  193. }
  194. function H(a) {
  195. return function(b) {
  196. return a(b);
  197. };
  198. }
  199. function I(a, b) {
  200. return n(b, function(b) {
  201. return a[b];
  202. });
  203. }
  204. function J(a, b) {
  205. return a.has(b);
  206. }
  207. function K(a, b) {
  208. for (var c = -1, d = a.length; ++c < d && w(b, a[c], 0) > -1; );
  209. return c;
  210. }
  211. function L(a, b) {
  212. for (var c = a.length; c-- && w(b, a[c], 0) > -1; );
  213. return c;
  214. }
  215. function M(a, b) {
  216. for (var c = a.length, d = 0; c--; ) a[c] === b && ++d;
  217. return d;
  218. }
  219. function N(a) {
  220. return '\\' + $c[a];
  221. }
  222. function O(a, b) {
  223. return null == a ? ca : a[b];
  224. }
  225. function P(a) {
  226. return Rc.test(a);
  227. }
  228. function Q(a) {
  229. return Sc.test(a);
  230. }
  231. function R(a) {
  232. for (var b, c = []; !(b = a.next()).done; ) c.push(b.value);
  233. return c;
  234. }
  235. function S(a) {
  236. var b = -1,
  237. c = Array(a.size);
  238. return (
  239. a.forEach(function(a, d) {
  240. c[++b] = [d, a];
  241. }),
  242. c
  243. );
  244. }
  245. function T(a, b) {
  246. return function(c) {
  247. return a(b(c));
  248. };
  249. }
  250. function U(a, b) {
  251. for (var c = -1, d = a.length, e = 0, f = []; ++c < d; ) {
  252. var g = a[c];
  253. (g !== b && g !== ja) || ((a[c] = ja), (f[e++] = c));
  254. }
  255. return f;
  256. }
  257. function V(a) {
  258. var b = -1,
  259. c = Array(a.size);
  260. return (
  261. a.forEach(function(a) {
  262. c[++b] = a;
  263. }),
  264. c
  265. );
  266. }
  267. function W(a) {
  268. var b = -1,
  269. c = Array(a.size);
  270. return (
  271. a.forEach(function(a) {
  272. c[++b] = [a, a];
  273. }),
  274. c
  275. );
  276. }
  277. function X(a, b, c) {
  278. for (var d = c - 1, e = a.length; ++d < e; ) if (a[d] === b) return d;
  279. return -1;
  280. }
  281. function Y(a, b, c) {
  282. for (var d = c + 1; d--; ) if (a[d] === b) return d;
  283. return d;
  284. }
  285. function Z(a) {
  286. return P(a) ? _(a) : pd(a);
  287. }
  288. function $(a) {
  289. return P(a) ? aa(a) : s(a);
  290. }
  291. function _(a) {
  292. for (var b = (Pc.lastIndex = 0); Pc.test(a); ) ++b;
  293. return b;
  294. }
  295. function aa(a) {
  296. return a.match(Pc) || [];
  297. }
  298. function ba(a) {
  299. return a.match(Qc) || [];
  300. }
  301. var ca,
  302. da = '4.17.15',
  303. ea = 200,
  304. fa = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',
  305. ga = 'Expected a function',
  306. ha = '__lodash_hash_undefined__',
  307. ia = 500,
  308. ja = '__lodash_placeholder__',
  309. ka = 1,
  310. la = 2,
  311. ma = 4,
  312. na = 1,
  313. oa = 2,
  314. pa = 1,
  315. qa = 2,
  316. ra = 4,
  317. sa = 8,
  318. ta = 16,
  319. ua = 32,
  320. va = 64,
  321. wa = 128,
  322. xa = 256,
  323. ya = 512,
  324. za = 30,
  325. Aa = '...',
  326. Ba = 800,
  327. Ca = 16,
  328. Da = 1,
  329. Ea = 2,
  330. Fa = 3,
  331. Ga = 1 / 0,
  332. Ha = 9007199254740991,
  333. Ia = 1.7976931348623157e308,
  334. Ja = NaN,
  335. Ka = 4294967295,
  336. La = Ka - 1,
  337. Ma = Ka >>> 1,
  338. Na = [
  339. ['ary', wa],
  340. ['bind', pa],
  341. ['bindKey', qa],
  342. ['curry', sa],
  343. ['curryRight', ta],
  344. ['flip', ya],
  345. ['partial', ua],
  346. ['partialRight', va],
  347. ['rearg', xa]
  348. ],
  349. Oa = '[object Arguments]',
  350. Pa = '[object Array]',
  351. Qa = '[object AsyncFunction]',
  352. Ra = '[object Boolean]',
  353. Sa = '[object Date]',
  354. Ta = '[object DOMException]',
  355. Ua = '[object Error]',
  356. Va = '[object Function]',
  357. Wa = '[object GeneratorFunction]',
  358. Xa = '[object Map]',
  359. Ya = '[object Number]',
  360. Za = '[object Null]',
  361. $a = '[object Object]',
  362. _a = '[object Promise]',
  363. ab = '[object Proxy]',
  364. bb = '[object RegExp]',
  365. cb = '[object Set]',
  366. db = '[object String]',
  367. eb = '[object Symbol]',
  368. fb = '[object Undefined]',
  369. gb = '[object WeakMap]',
  370. hb = '[object WeakSet]',
  371. ib = '[object ArrayBuffer]',
  372. jb = '[object DataView]',
  373. kb = '[object Float32Array]',
  374. lb = '[object Float64Array]',
  375. mb = '[object Int8Array]',
  376. nb = '[object Int16Array]',
  377. ob = '[object Int32Array]',
  378. pb = '[object Uint8Array]',
  379. qb = '[object Uint8ClampedArray]',
  380. rb = '[object Uint16Array]',
  381. sb = '[object Uint32Array]',
  382. tb = /\b__p \+= '';/g,
  383. ub = /\b(__p \+=) '' \+/g,
  384. vb = /(__e\(.*?\)|\b__t\)) \+\n'';/g,
  385. wb = /&(?:amp|lt|gt|quot|#39);/g,
  386. xb = /[&<>"']/g,
  387. yb = RegExp(wb.source),
  388. zb = RegExp(xb.source),
  389. Ab = /<%-([\s\S]+?)%>/g,
  390. Bb = /<%([\s\S]+?)%>/g,
  391. Cb = /<%=([\s\S]+?)%>/g,
  392. Db = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  393. Eb = /^\w*$/,
  394. Fb = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,
  395. Gb = /[\\^$.*+?()[\]{}|]/g,
  396. Hb = RegExp(Gb.source),
  397. Ib = /^\s+|\s+$/g,
  398. Jb = /^\s+/,
  399. Kb = /\s+$/,
  400. Lb = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,
  401. Mb = /\{\n\/\* \[wrapped with (.+)\] \*/,
  402. Nb = /,? & /,
  403. Ob = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,
  404. Pb = /\\(\\)?/g,
  405. Qb = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,
  406. Rb = /\w*$/,
  407. Sb = /^[-+]0x[0-9a-f]+$/i,
  408. Tb = /^0b[01]+$/i,
  409. Ub = /^\[object .+?Constructor\]$/,
  410. Vb = /^0o[0-7]+$/i,
  411. Wb = /^(?:0|[1-9]\d*)$/,
  412. Xb = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,
  413. Yb = /($^)/,
  414. Zb = /['\n\r\u2028\u2029\\]/g,
  415. $b = '\\ud800-\\udfff',
  416. _b = '\\u0300-\\u036f',
  417. ac = '\\ufe20-\\ufe2f',
  418. bc = '\\u20d0-\\u20ff',
  419. cc = _b + ac + bc,
  420. dc = '\\u2700-\\u27bf',
  421. ec = 'a-z\\xdf-\\xf6\\xf8-\\xff',
  422. fc = '\\xac\\xb1\\xd7\\xf7',
  423. gc = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
  424. hc = '\\u2000-\\u206f',
  425. ic =
  426. ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
  427. jc = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
  428. kc = '\\ufe0e\\ufe0f',
  429. lc = fc + gc + hc + ic,
  430. mc = "['’]",
  431. nc = '[' + $b + ']',
  432. oc = '[' + lc + ']',
  433. pc = '[' + cc + ']',
  434. qc = '\\d+',
  435. rc = '[' + dc + ']',
  436. sc = '[' + ec + ']',
  437. tc = '[^' + $b + lc + qc + dc + ec + jc + ']',
  438. uc = '\\ud83c[\\udffb-\\udfff]',
  439. vc = '(?:' + pc + '|' + uc + ')',
  440. wc = '[^' + $b + ']',
  441. xc = '(?:\\ud83c[\\udde6-\\uddff]){2}',
  442. yc = '[\\ud800-\\udbff][\\udc00-\\udfff]',
  443. zc = '[' + jc + ']',
  444. Ac = '\\u200d',
  445. Bc = '(?:' + sc + '|' + tc + ')',
  446. Cc = '(?:' + zc + '|' + tc + ')',
  447. Dc = '(?:' + mc + '(?:d|ll|m|re|s|t|ve))?',
  448. Ec = '(?:' + mc + '(?:D|LL|M|RE|S|T|VE))?',
  449. Fc = vc + '?',
  450. Gc = '[' + kc + ']?',
  451. Hc = '(?:' + Ac + '(?:' + [wc, xc, yc].join('|') + ')' + Gc + Fc + ')*',
  452. Ic = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
  453. Jc = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
  454. Kc = Gc + Fc + Hc,
  455. Lc = '(?:' + [rc, xc, yc].join('|') + ')' + Kc,
  456. Mc = '(?:' + [wc + pc + '?', pc, xc, yc, nc].join('|') + ')',
  457. Nc = RegExp(mc, 'g'),
  458. Oc = RegExp(pc, 'g'),
  459. Pc = RegExp(uc + '(?=' + uc + ')|' + Mc + Kc, 'g'),
  460. Qc = RegExp(
  461. [
  462. zc + '?' + sc + '+' + Dc + '(?=' + [oc, zc, '$'].join('|') + ')',
  463. Cc + '+' + Ec + '(?=' + [oc, zc + Bc, '$'].join('|') + ')',
  464. zc + '?' + Bc + '+' + Dc,
  465. zc + '+' + Ec,
  466. Jc,
  467. Ic,
  468. qc,
  469. Lc
  470. ].join('|'),
  471. 'g'
  472. ),
  473. Rc = RegExp('[' + Ac + $b + cc + kc + ']'),
  474. Sc = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,
  475. Tc = [
  476. 'Array',
  477. 'Buffer',
  478. 'DataView',
  479. 'Date',
  480. 'Error',
  481. 'Float32Array',
  482. 'Float64Array',
  483. 'Function',
  484. 'Int8Array',
  485. 'Int16Array',
  486. 'Int32Array',
  487. 'Map',
  488. 'Math',
  489. 'Object',
  490. 'Promise',
  491. 'RegExp',
  492. 'Set',
  493. 'String',
  494. 'Symbol',
  495. 'TypeError',
  496. 'Uint8Array',
  497. 'Uint8ClampedArray',
  498. 'Uint16Array',
  499. 'Uint32Array',
  500. 'WeakMap',
  501. '_',
  502. 'clearTimeout',
  503. 'isFinite',
  504. 'parseInt',
  505. 'setTimeout'
  506. ],
  507. Uc = -1,
  508. Vc = {};
  509. (Vc[kb] = Vc[lb] = Vc[mb] = Vc[nb] = Vc[ob] = Vc[pb] = Vc[qb] = Vc[rb] = Vc[sb] = !0),
  510. (Vc[Oa] = Vc[Pa] = Vc[ib] = Vc[Ra] = Vc[jb] = Vc[Sa] = Vc[Ua] = Vc[Va] = Vc[Xa] = Vc[
  511. Ya
  512. ] = Vc[$a] = Vc[bb] = Vc[cb] = Vc[db] = Vc[gb] = !1);
  513. var Wc = {};
  514. (Wc[Oa] = Wc[Pa] = Wc[ib] = Wc[jb] = Wc[Ra] = Wc[Sa] = Wc[kb] = Wc[lb] = Wc[mb] = Wc[nb] = Wc[
  515. ob
  516. ] = Wc[Xa] = Wc[Ya] = Wc[$a] = Wc[bb] = Wc[cb] = Wc[db] = Wc[eb] = Wc[pb] = Wc[qb] = Wc[
  517. rb
  518. ] = Wc[sb] = !0),
  519. (Wc[Ua] = Wc[Va] = Wc[gb] = !1);
  520. var Xc = {
  521. À: 'A',
  522. Á: 'A',
  523. Â: 'A',
  524. Ã: 'A',
  525. Ä: 'A',
  526. Å: 'A',
  527. à: 'a',
  528. á: 'a',
  529. â: 'a',
  530. ã: 'a',
  531. ä: 'a',
  532. å: 'a',
  533. Ç: 'C',
  534. ç: 'c',
  535. Ð: 'D',
  536. ð: 'd',
  537. È: 'E',
  538. É: 'E',
  539. Ê: 'E',
  540. Ë: 'E',
  541. è: 'e',
  542. é: 'e',
  543. ê: 'e',
  544. ë: 'e',
  545. Ì: 'I',
  546. Í: 'I',
  547. Î: 'I',
  548. Ï: 'I',
  549. ì: 'i',
  550. í: 'i',
  551. î: 'i',
  552. ï: 'i',
  553. Ñ: 'N',
  554. ñ: 'n',
  555. Ò: 'O',
  556. Ó: 'O',
  557. Ô: 'O',
  558. Õ: 'O',
  559. Ö: 'O',
  560. Ø: 'O',
  561. ò: 'o',
  562. ó: 'o',
  563. ô: 'o',
  564. õ: 'o',
  565. ö: 'o',
  566. ø: 'o',
  567. Ù: 'U',
  568. Ú: 'U',
  569. Û: 'U',
  570. Ü: 'U',
  571. ù: 'u',
  572. ú: 'u',
  573. û: 'u',
  574. ü: 'u',
  575. Ý: 'Y',
  576. ý: 'y',
  577. ÿ: 'y',
  578. Æ: 'Ae',
  579. æ: 'ae',
  580. Þ: 'Th',
  581. þ: 'th',
  582. ß: 'ss',
  583. Ā: 'A',
  584. Ă: 'A',
  585. Ą: 'A',
  586. ā: 'a',
  587. ă: 'a',
  588. ą: 'a',
  589. Ć: 'C',
  590. Ĉ: 'C',
  591. Ċ: 'C',
  592. Č: 'C',
  593. ć: 'c',
  594. ĉ: 'c',
  595. ċ: 'c',
  596. č: 'c',
  597. Ď: 'D',
  598. Đ: 'D',
  599. ď: 'd',
  600. đ: 'd',
  601. Ē: 'E',
  602. Ĕ: 'E',
  603. Ė: 'E',
  604. Ę: 'E',
  605. Ě: 'E',
  606. ē: 'e',
  607. ĕ: 'e',
  608. ė: 'e',
  609. ę: 'e',
  610. ě: 'e',
  611. Ĝ: 'G',
  612. Ğ: 'G',
  613. Ġ: 'G',
  614. Ģ: 'G',
  615. ĝ: 'g',
  616. ğ: 'g',
  617. ġ: 'g',
  618. ģ: 'g',
  619. Ĥ: 'H',
  620. Ħ: 'H',
  621. ĥ: 'h',
  622. ħ: 'h',
  623. Ĩ: 'I',
  624. Ī: 'I',
  625. Ĭ: 'I',
  626. Į: 'I',
  627. İ: 'I',
  628. ĩ: 'i',
  629. ī: 'i',
  630. ĭ: 'i',
  631. į: 'i',
  632. ı: 'i',
  633. Ĵ: 'J',
  634. ĵ: 'j',
  635. Ķ: 'K',
  636. ķ: 'k',
  637. ĸ: 'k',
  638. Ĺ: 'L',
  639. Ļ: 'L',
  640. Ľ: 'L',
  641. Ŀ: 'L',
  642. Ł: 'L',
  643. ĺ: 'l',
  644. ļ: 'l',
  645. ľ: 'l',
  646. ŀ: 'l',
  647. ł: 'l',
  648. Ń: 'N',
  649. Ņ: 'N',
  650. Ň: 'N',
  651. Ŋ: 'N',
  652. ń: 'n',
  653. ņ: 'n',
  654. ň: 'n',
  655. ŋ: 'n',
  656. Ō: 'O',
  657. Ŏ: 'O',
  658. Ő: 'O',
  659. ō: 'o',
  660. ŏ: 'o',
  661. ő: 'o',
  662. Ŕ: 'R',
  663. Ŗ: 'R',
  664. Ř: 'R',
  665. ŕ: 'r',
  666. ŗ: 'r',
  667. ř: 'r',
  668. Ś: 'S',
  669. Ŝ: 'S',
  670. Ş: 'S',
  671. Š: 'S',
  672. ś: 's',
  673. ŝ: 's',
  674. ş: 's',
  675. š: 's',
  676. Ţ: 'T',
  677. Ť: 'T',
  678. Ŧ: 'T',
  679. ţ: 't',
  680. ť: 't',
  681. ŧ: 't',
  682. Ũ: 'U',
  683. Ū: 'U',
  684. Ŭ: 'U',
  685. Ů: 'U',
  686. Ű: 'U',
  687. Ų: 'U',
  688. ũ: 'u',
  689. ū: 'u',
  690. ŭ: 'u',
  691. ů: 'u',
  692. ű: 'u',
  693. ų: 'u',
  694. Ŵ: 'W',
  695. ŵ: 'w',
  696. Ŷ: 'Y',
  697. ŷ: 'y',
  698. Ÿ: 'Y',
  699. Ź: 'Z',
  700. Ż: 'Z',
  701. Ž: 'Z',
  702. ź: 'z',
  703. ż: 'z',
  704. ž: 'z',
  705. IJ: 'IJ',
  706. ij: 'ij',
  707. Œ: 'Oe',
  708. œ: 'oe',
  709. ʼn: "'n",
  710. ſ: 's'
  711. },
  712. Yc = { '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' },
  713. Zc = { '&amp;': '&', '&lt;': '<', '&gt;': '>', '&quot;': '"', '&#39;': "'" },
  714. $c = { '\\': '\\', "'": "'", '\n': 'n', '\r': 'r', '\u2028': 'u2028', '\u2029': 'u2029' },
  715. _c = parseFloat,
  716. ad = parseInt,
  717. bd = 'object' == typeof a && a && a.Object === Object && a,
  718. cd = 'object' == typeof self && self && self.Object === Object && self,
  719. dd = bd || cd || Function('return this')(),
  720. ed = 'object' == typeof b && b && !b.nodeType && b,
  721. fd = ed && 'object' == typeof d && d && !d.nodeType && d,
  722. gd = fd && fd.exports === ed,
  723. hd = gd && bd.process,
  724. id = (function() {
  725. try {
  726. var a = fd && fd.require && fd.require('util').types;
  727. return a ? a : hd && hd.binding && hd.binding('util');
  728. } catch (a) {}
  729. })(),
  730. jd = id && id.isArrayBuffer,
  731. kd = id && id.isDate,
  732. ld = id && id.isMap,
  733. md = id && id.isRegExp,
  734. nd = id && id.isSet,
  735. od = id && id.isTypedArray,
  736. pd = A('length'),
  737. qd = B(Xc),
  738. rd = B(Yc),
  739. sd = B(Zc),
  740. td = function a(b) {
  741. function c(a) {
  742. if (ei(a) && !pm(a) && !(a instanceof s)) {
  743. if (a instanceof e) return a;
  744. if (pk.call(a, '__wrapped__')) return bg(a);
  745. }
  746. return new e(a);
  747. }
  748. function d() {}
  749. function e(a, b) {
  750. (this.__wrapped__ = a),
  751. (this.__actions__ = []),
  752. (this.__chain__ = !!b),
  753. (this.__index__ = 0),
  754. (this.__values__ = ca);
  755. }
  756. function s(a) {
  757. (this.__wrapped__ = a),
  758. (this.__actions__ = []),
  759. (this.__dir__ = 1),
  760. (this.__filtered__ = !1),
  761. (this.__iteratees__ = []),
  762. (this.__takeCount__ = Ka),
  763. (this.__views__ = []);
  764. }
  765. function B() {
  766. var a = new s(this.__wrapped__);
  767. return (
  768. (a.__actions__ = Ie(this.__actions__)),
  769. (a.__dir__ = this.__dir__),
  770. (a.__filtered__ = this.__filtered__),
  771. (a.__iteratees__ = Ie(this.__iteratees__)),
  772. (a.__takeCount__ = this.__takeCount__),
  773. (a.__views__ = Ie(this.__views__)),
  774. a
  775. );
  776. }
  777. function X() {
  778. if (this.__filtered__) {
  779. var a = new s(this);
  780. (a.__dir__ = -1), (a.__filtered__ = !0);
  781. } else (a = this.clone()), (a.__dir__ *= -1);
  782. return a;
  783. }
  784. function _() {
  785. var a = this.__wrapped__.value(),
  786. b = this.__dir__,
  787. c = pm(a),
  788. d = b < 0,
  789. e = c ? a.length : 0,
  790. f = yf(0, e, this.__views__),
  791. g = f.start,
  792. h = f.end,
  793. i = h - g,
  794. j = d ? h : g - 1,
  795. k = this.__iteratees__,
  796. l = k.length,
  797. m = 0,
  798. n = Tk(i, this.__takeCount__);
  799. if (!c || (!d && e == i && n == i)) return re(a, this.__actions__);
  800. var o = [];
  801. a: for (; i-- && m < n; ) {
  802. j += b;
  803. for (var p = -1, q = a[j]; ++p < l; ) {
  804. var r = k[p],
  805. s = r.iteratee,
  806. t = r.type,
  807. u = s(q);
  808. if (t == Ea) q = u;
  809. else if (!u) {
  810. if (t == Da) continue a;
  811. break a;
  812. }
  813. }
  814. o[m++] = q;
  815. }
  816. return o;
  817. }
  818. function aa(a) {
  819. var b = -1,
  820. c = null == a ? 0 : a.length;
  821. for (this.clear(); ++b < c; ) {
  822. var d = a[b];
  823. this.set(d[0], d[1]);
  824. }
  825. }
  826. function Ob() {
  827. (this.__data__ = bl ? bl(null) : {}), (this.size = 0);
  828. }
  829. function $b(a) {
  830. var b = this.has(a) && delete this.__data__[a];
  831. return (this.size -= b ? 1 : 0), b;
  832. }
  833. function _b(a) {
  834. var b = this.__data__;
  835. if (bl) {
  836. var c = b[a];
  837. return c === ha ? ca : c;
  838. }
  839. return pk.call(b, a) ? b[a] : ca;
  840. }
  841. function ac(a) {
  842. var b = this.__data__;
  843. return bl ? b[a] !== ca : pk.call(b, a);
  844. }
  845. function bc(a, b) {
  846. var c = this.__data__;
  847. return (this.size += this.has(a) ? 0 : 1), (c[a] = bl && b === ca ? ha : b), this;
  848. }
  849. function cc(a) {
  850. var b = -1,
  851. c = null == a ? 0 : a.length;
  852. for (this.clear(); ++b < c; ) {
  853. var d = a[b];
  854. this.set(d[0], d[1]);
  855. }
  856. }
  857. function dc() {
  858. (this.__data__ = []), (this.size = 0);
  859. }
  860. function ec(a) {
  861. var b = this.__data__,
  862. c = Dc(b, a);
  863. if (c < 0) return !1;
  864. var d = b.length - 1;
  865. return c == d ? b.pop() : Dk.call(b, c, 1), --this.size, !0;
  866. }
  867. function fc(a) {
  868. var b = this.__data__,
  869. c = Dc(b, a);
  870. return c < 0 ? ca : b[c][1];
  871. }
  872. function gc(a) {
  873. return Dc(this.__data__, a) > -1;
  874. }
  875. function hc(a, b) {
  876. var c = this.__data__,
  877. d = Dc(c, a);
  878. return d < 0 ? (++this.size, c.push([a, b])) : (c[d][1] = b), this;
  879. }
  880. function ic(a) {
  881. var b = -1,
  882. c = null == a ? 0 : a.length;
  883. for (this.clear(); ++b < c; ) {
  884. var d = a[b];
  885. this.set(d[0], d[1]);
  886. }
  887. }
  888. function jc() {
  889. (this.size = 0),
  890. (this.__data__ = { hash: new aa(), map: new (Zk || cc)(), string: new aa() });
  891. }
  892. function kc(a) {
  893. var b = uf(this, a).delete(a);
  894. return (this.size -= b ? 1 : 0), b;
  895. }
  896. function lc(a) {
  897. return uf(this, a).get(a);
  898. }
  899. function mc(a) {
  900. return uf(this, a).has(a);
  901. }
  902. function nc(a, b) {
  903. var c = uf(this, a),
  904. d = c.size;
  905. return c.set(a, b), (this.size += c.size == d ? 0 : 1), this;
  906. }
  907. function oc(a) {
  908. var b = -1,
  909. c = null == a ? 0 : a.length;
  910. for (this.__data__ = new ic(); ++b < c; ) this.add(a[b]);
  911. }
  912. function pc(a) {
  913. return this.__data__.set(a, ha), this;
  914. }
  915. function qc(a) {
  916. return this.__data__.has(a);
  917. }
  918. function rc(a) {
  919. var b = (this.__data__ = new cc(a));
  920. this.size = b.size;
  921. }
  922. function sc() {
  923. (this.__data__ = new cc()), (this.size = 0);
  924. }
  925. function tc(a) {
  926. var b = this.__data__,
  927. c = b.delete(a);
  928. return (this.size = b.size), c;
  929. }
  930. function uc(a) {
  931. return this.__data__.get(a);
  932. }
  933. function vc(a) {
  934. return this.__data__.has(a);
  935. }
  936. function wc(a, b) {
  937. var c = this.__data__;
  938. if (c instanceof cc) {
  939. var d = c.__data__;
  940. if (!Zk || d.length < ea - 1)
  941. return d.push([a, b]), (this.size = ++c.size), this;
  942. c = this.__data__ = new ic(d);
  943. }
  944. return c.set(a, b), (this.size = c.size), this;
  945. }
  946. function xc(a, b) {
  947. var c = pm(a),
  948. d = !c && om(a),
  949. e = !c && !d && rm(a),
  950. f = !c && !d && !e && wm(a),
  951. g = c || d || e || f,
  952. h = g ? F(a.length, ik) : [],
  953. i = h.length;
  954. for (var j in a)
  955. (!b && !pk.call(a, j)) ||
  956. (g &&
  957. ('length' == j ||
  958. (e && ('offset' == j || 'parent' == j)) ||
  959. (f && ('buffer' == j || 'byteLength' == j || 'byteOffset' == j)) ||
  960. Gf(j, i))) ||
  961. h.push(j);
  962. return h;
  963. }
  964. function yc(a) {
  965. var b = a.length;
  966. return b ? a[$d(0, b - 1)] : ca;
  967. }
  968. function zc(a, b) {
  969. return Zf(Ie(a), Jc(b, 0, a.length));
  970. }
  971. function Ac(a) {
  972. return Zf(Ie(a));
  973. }
  974. function Bc(a, b, c) {
  975. ((c === ca || Sh(a[b], c)) && (c !== ca || b in a)) || Hc(a, b, c);
  976. }
  977. function Cc(a, b, c) {
  978. var d = a[b];
  979. (pk.call(a, b) && Sh(d, c) && (c !== ca || b in a)) || Hc(a, b, c);
  980. }
  981. function Dc(a, b) {
  982. for (var c = a.length; c--; ) if (Sh(a[c][0], b)) return c;
  983. return -1;
  984. }
  985. function Ec(a, b, c, d) {
  986. return (
  987. nl(a, function(a, e, f) {
  988. b(d, a, c(a), f);
  989. }),
  990. d
  991. );
  992. }
  993. function Fc(a, b) {
  994. return a && Je(b, Ni(b), a);
  995. }
  996. function Gc(a, b) {
  997. return a && Je(b, Oi(b), a);
  998. }
  999. function Hc(a, b, c) {
  1000. '__proto__' == b && Hk
  1001. ? Hk(a, b, { configurable: !0, enumerable: !0, value: c, writable: !0 })
  1002. : (a[b] = c);
  1003. }
  1004. function Ic(a, b) {
  1005. for (var c = -1, d = b.length, e = bk(d), f = null == a; ++c < d; )
  1006. e[c] = f ? ca : Ki(a, b[c]);
  1007. return e;
  1008. }
  1009. function Jc(a, b, c) {
  1010. return (
  1011. a === a && (c !== ca && (a = a <= c ? a : c), b !== ca && (a = a >= b ? a : b)),
  1012. a
  1013. );
  1014. }
  1015. function Kc(a, b, c, d, e, f) {
  1016. var g,
  1017. i = b & ka,
  1018. j = b & la,
  1019. k = b & ma;
  1020. if ((c && (g = e ? c(a, d, e, f) : c(a)), g !== ca)) return g;
  1021. if (!di(a)) return a;
  1022. var l = pm(a);
  1023. if (l) {
  1024. if (((g = Bf(a)), !i)) return Ie(a, g);
  1025. } else {
  1026. var m = zl(a),
  1027. n = m == Va || m == Wa;
  1028. if (rm(a)) return ye(a, i);
  1029. if (m == $a || m == Oa || (n && !e)) {
  1030. if (((g = j || n ? {} : Cf(a)), !i))
  1031. return j ? Le(a, Gc(g, a)) : Ke(a, Fc(g, a));
  1032. } else {
  1033. if (!Wc[m]) return e ? a : {};
  1034. g = Df(a, m, i);
  1035. }
  1036. }
  1037. f || (f = new rc());
  1038. var o = f.get(a);
  1039. if (o) return o;
  1040. f.set(a, g),
  1041. vm(a)
  1042. ? a.forEach(function(d) {
  1043. g.add(Kc(d, b, c, d, a, f));
  1044. })
  1045. : tm(a) &&
  1046. a.forEach(function(d, e) {
  1047. g.set(e, Kc(d, b, c, e, a, f));
  1048. });
  1049. var p = k ? (j ? qf : pf) : j ? Oi : Ni,
  1050. q = l ? ca : p(a);
  1051. return (
  1052. h(q || a, function(d, e) {
  1053. q && ((e = d), (d = a[e])), Cc(g, e, Kc(d, b, c, e, a, f));
  1054. }),
  1055. g
  1056. );
  1057. }
  1058. function Lc(a) {
  1059. var b = Ni(a);
  1060. return function(c) {
  1061. return Mc(c, a, b);
  1062. };
  1063. }
  1064. function Mc(a, b, c) {
  1065. var d = c.length;
  1066. if (null == a) return !d;
  1067. for (a = gk(a); d--; ) {
  1068. var e = c[d],
  1069. f = b[e],
  1070. g = a[e];
  1071. if ((g === ca && !(e in a)) || !f(g)) return !1;
  1072. }
  1073. return !0;
  1074. }
  1075. function Pc(a, b, c) {
  1076. if ('function' != typeof a) throw new jk(ga);
  1077. return Cl(function() {
  1078. a.apply(ca, c);
  1079. }, b);
  1080. }
  1081. function Qc(a, b, c, d) {
  1082. var e = -1,
  1083. f = l,
  1084. g = !0,
  1085. h = a.length,
  1086. i = [],
  1087. j = b.length;
  1088. if (!h) return i;
  1089. c && (b = n(b, H(c))),
  1090. d
  1091. ? ((f = m), (g = !1))
  1092. : b.length >= ea && ((f = J), (g = !1), (b = new oc(b)));
  1093. a: for (; ++e < h; ) {
  1094. var k = a[e],
  1095. o = null == c ? k : c(k);
  1096. if (((k = d || 0 !== k ? k : 0), g && o === o)) {
  1097. for (var p = j; p--; ) if (b[p] === o) continue a;
  1098. i.push(k);
  1099. } else f(b, o, d) || i.push(k);
  1100. }
  1101. return i;
  1102. }
  1103. function Rc(a, b) {
  1104. var c = !0;
  1105. return (
  1106. nl(a, function(a, d, e) {
  1107. return (c = !!b(a, d, e));
  1108. }),
  1109. c
  1110. );
  1111. }
  1112. function Sc(a, b, c) {
  1113. for (var d = -1, e = a.length; ++d < e; ) {
  1114. var f = a[d],
  1115. g = b(f);
  1116. if (null != g && (h === ca ? g === g && !pi(g) : c(g, h)))
  1117. var h = g,
  1118. i = f;
  1119. }
  1120. return i;
  1121. }
  1122. function Xc(a, b, c, d) {
  1123. var e = a.length;
  1124. for (
  1125. c = vi(c),
  1126. c < 0 && (c = -c > e ? 0 : e + c),
  1127. d = d === ca || d > e ? e : vi(d),
  1128. d < 0 && (d += e),
  1129. d = c > d ? 0 : wi(d);
  1130. c < d;
  1131. )
  1132. a[c++] = b;
  1133. return a;
  1134. }
  1135. function Yc(a, b) {
  1136. var c = [];
  1137. return (
  1138. nl(a, function(a, d, e) {
  1139. b(a, d, e) && c.push(a);
  1140. }),
  1141. c
  1142. );
  1143. }
  1144. function Zc(a, b, c, d, e) {
  1145. var f = -1,
  1146. g = a.length;
  1147. for (c || (c = Ff), e || (e = []); ++f < g; ) {
  1148. var h = a[f];
  1149. b > 0 && c(h)
  1150. ? b > 1
  1151. ? Zc(h, b - 1, c, d, e)
  1152. : o(e, h)
  1153. : d || (e[e.length] = h);
  1154. }
  1155. return e;
  1156. }
  1157. function $c(a, b) {
  1158. return a && pl(a, b, Ni);
  1159. }
  1160. function bd(a, b) {
  1161. return a && ql(a, b, Ni);
  1162. }
  1163. function cd(a, b) {
  1164. return k(b, function(b) {
  1165. return ai(a[b]);
  1166. });
  1167. }
  1168. function ed(a, b) {
  1169. b = we(b, a);
  1170. for (var c = 0, d = b.length; null != a && c < d; ) a = a[$f(b[c++])];
  1171. return c && c == d ? a : ca;
  1172. }
  1173. function fd(a, b, c) {
  1174. var d = b(a);
  1175. return pm(a) ? d : o(d, c(a));
  1176. }
  1177. function hd(a) {
  1178. return null == a ? (a === ca ? fb : Za) : Gk && Gk in gk(a) ? xf(a) : Sf(a);
  1179. }
  1180. function id(a, b) {
  1181. return a > b;
  1182. }
  1183. function pd(a, b) {
  1184. return null != a && pk.call(a, b);
  1185. }
  1186. function td(a, b) {
  1187. return null != a && b in gk(a);
  1188. }
  1189. function vd(a, b, c) {
  1190. return a >= Tk(b, c) && a < Sk(b, c);
  1191. }
  1192. function wd(a, b, c) {
  1193. for (
  1194. var d = c ? m : l,
  1195. e = a[0].length,
  1196. f = a.length,
  1197. g = f,
  1198. h = bk(f),
  1199. i = 1 / 0,
  1200. j = [];
  1201. g--;
  1202. ) {
  1203. var k = a[g];
  1204. g && b && (k = n(k, H(b))),
  1205. (i = Tk(k.length, i)),
  1206. (h[g] = !c && (b || (e >= 120 && k.length >= 120)) ? new oc(g && k) : ca);
  1207. }
  1208. k = a[0];
  1209. var o = -1,
  1210. p = h[0];
  1211. a: for (; ++o < e && j.length < i; ) {
  1212. var q = k[o],
  1213. r = b ? b(q) : q;
  1214. if (((q = c || 0 !== q ? q : 0), !(p ? J(p, r) : d(j, r, c)))) {
  1215. for (g = f; --g; ) {
  1216. var s = h[g];
  1217. if (!(s ? J(s, r) : d(a[g], r, c))) continue a;
  1218. }
  1219. p && p.push(r), j.push(q);
  1220. }
  1221. }
  1222. return j;
  1223. }
  1224. function xd(a, b, c, d) {
  1225. return (
  1226. $c(a, function(a, e, f) {
  1227. b(d, c(a), e, f);
  1228. }),
  1229. d
  1230. );
  1231. }
  1232. function yd(a, b, c) {
  1233. (b = we(b, a)), (a = Uf(a, b));
  1234. var d = null == a ? a : a[$f(ug(b))];
  1235. return null == d ? ca : f(d, a, c);
  1236. }
  1237. function zd(a) {
  1238. return ei(a) && hd(a) == Oa;
  1239. }
  1240. function Ad(a) {
  1241. return ei(a) && hd(a) == ib;
  1242. }
  1243. function Bd(a) {
  1244. return ei(a) && hd(a) == Sa;
  1245. }
  1246. function Cd(a, b, c, d, e) {
  1247. return (
  1248. a === b ||
  1249. (null == a || null == b || (!ei(a) && !ei(b))
  1250. ? a !== a && b !== b
  1251. : Dd(a, b, c, d, Cd, e))
  1252. );
  1253. }
  1254. function Dd(a, b, c, d, e, f) {
  1255. var g = pm(a),
  1256. h = pm(b),
  1257. i = g ? Pa : zl(a),
  1258. j = h ? Pa : zl(b);
  1259. (i = i == Oa ? $a : i), (j = j == Oa ? $a : j);
  1260. var k = i == $a,
  1261. l = j == $a,
  1262. m = i == j;
  1263. if (m && rm(a)) {
  1264. if (!rm(b)) return !1;
  1265. (g = !0), (k = !1);
  1266. }
  1267. if (m && !k)
  1268. return (
  1269. f || (f = new rc()),
  1270. g || wm(a) ? lf(a, b, c, d, e, f) : mf(a, b, i, c, d, e, f)
  1271. );
  1272. if (!(c & na)) {
  1273. var n = k && pk.call(a, '__wrapped__'),
  1274. o = l && pk.call(b, '__wrapped__');
  1275. if (n || o) {
  1276. var p = n ? a.value() : a,
  1277. q = o ? b.value() : b;
  1278. return f || (f = new rc()), e(p, q, c, d, f);
  1279. }
  1280. }
  1281. return !!m && (f || (f = new rc()), nf(a, b, c, d, e, f));
  1282. }
  1283. function Ed(a) {
  1284. return ei(a) && zl(a) == Xa;
  1285. }
  1286. function Fd(a, b, c, d) {
  1287. var e = c.length,
  1288. f = e,
  1289. g = !d;
  1290. if (null == a) return !f;
  1291. for (a = gk(a); e--; ) {
  1292. var h = c[e];
  1293. if (g && h[2] ? h[1] !== a[h[0]] : !(h[0] in a)) return !1;
  1294. }
  1295. for (; ++e < f; ) {
  1296. h = c[e];
  1297. var i = h[0],
  1298. j = a[i],
  1299. k = h[1];
  1300. if (g && h[2]) {
  1301. if (j === ca && !(i in a)) return !1;
  1302. } else {
  1303. var l = new rc();
  1304. if (d) var m = d(j, k, i, a, b, l);
  1305. if (!(m === ca ? Cd(k, j, na | oa, d, l) : m)) return !1;
  1306. }
  1307. }
  1308. return !0;
  1309. }
  1310. function Gd(a) {
  1311. if (!di(a) || Lf(a)) return !1;
  1312. var b = ai(a) ? vk : Ub;
  1313. return b.test(_f(a));
  1314. }
  1315. function Hd(a) {
  1316. return ei(a) && hd(a) == bb;
  1317. }
  1318. function Id(a) {
  1319. return ei(a) && zl(a) == cb;
  1320. }
  1321. function Jd(a) {
  1322. return ei(a) && ci(a.length) && !!Vc[hd(a)];
  1323. }
  1324. function Kd(a) {
  1325. return 'function' == typeof a
  1326. ? a
  1327. : null == a
  1328. ? Dj
  1329. : 'object' == typeof a
  1330. ? pm(a)
  1331. ? Qd(a[0], a[1])
  1332. : Pd(a)
  1333. : Lj(a);
  1334. }
  1335. function Ld(a) {
  1336. if (!Mf(a)) return Rk(a);
  1337. var b = [];
  1338. for (var c in gk(a)) pk.call(a, c) && 'constructor' != c && b.push(c);
  1339. return b;
  1340. }
  1341. function Md(a) {
  1342. if (!di(a)) return Rf(a);
  1343. var b = Mf(a),
  1344. c = [];
  1345. for (var d in a) ('constructor' != d || (!b && pk.call(a, d))) && c.push(d);
  1346. return c;
  1347. }
  1348. function Nd(a, b) {
  1349. return a < b;
  1350. }
  1351. function Od(a, b) {
  1352. var c = -1,
  1353. d = Th(a) ? bk(a.length) : [];
  1354. return (
  1355. nl(a, function(a, e, f) {
  1356. d[++c] = b(a, e, f);
  1357. }),
  1358. d
  1359. );
  1360. }
  1361. function Pd(a) {
  1362. var b = vf(a);
  1363. return 1 == b.length && b[0][2]
  1364. ? Of(b[0][0], b[0][1])
  1365. : function(c) {
  1366. return c === a || Fd(c, a, b);
  1367. };
  1368. }
  1369. function Qd(a, b) {
  1370. return If(a) && Nf(b)
  1371. ? Of($f(a), b)
  1372. : function(c) {
  1373. var d = Ki(c, a);
  1374. return d === ca && d === b ? Mi(c, a) : Cd(b, d, na | oa);
  1375. };
  1376. }
  1377. function Rd(a, b, c, d, e) {
  1378. a !== b &&
  1379. pl(
  1380. b,
  1381. function(f, g) {
  1382. if ((e || (e = new rc()), di(f))) Sd(a, b, g, c, Rd, d, e);
  1383. else {
  1384. var h = d ? d(Wf(a, g), f, g + '', a, b, e) : ca;
  1385. h === ca && (h = f), Bc(a, g, h);
  1386. }
  1387. },
  1388. Oi
  1389. );
  1390. }
  1391. function Sd(a, b, c, d, e, f, g) {
  1392. var h = Wf(a, c),
  1393. i = Wf(b, c),
  1394. j = g.get(i);
  1395. if (j) return void Bc(a, c, j);
  1396. var k = f ? f(h, i, c + '', a, b, g) : ca,
  1397. l = k === ca;
  1398. if (l) {
  1399. var m = pm(i),
  1400. n = !m && rm(i),
  1401. o = !m && !n && wm(i);
  1402. (k = i),
  1403. m || n || o
  1404. ? pm(h)
  1405. ? (k = h)
  1406. : Uh(h)
  1407. ? (k = Ie(h))
  1408. : n
  1409. ? ((l = !1), (k = ye(i, !0)))
  1410. : o
  1411. ? ((l = !1), (k = De(i, !0)))
  1412. : (k = [])
  1413. : mi(i) || om(i)
  1414. ? ((k = h), om(h) ? (k = yi(h)) : (di(h) && !ai(h)) || (k = Cf(i)))
  1415. : (l = !1);
  1416. }
  1417. l && (g.set(i, k), e(k, i, d, f, g), g.delete(i)), Bc(a, c, k);
  1418. }
  1419. function Td(a, b) {
  1420. var c = a.length;
  1421. if (c) return (b += b < 0 ? c : 0), Gf(b, c) ? a[b] : ca;
  1422. }
  1423. function Ud(a, b, c) {
  1424. var d = -1;
  1425. b = n(b.length ? b : [Dj], H(tf()));
  1426. var e = Od(a, function(a, c, e) {
  1427. var f = n(b, function(b) {
  1428. return b(a);
  1429. });
  1430. return { criteria: f, index: ++d, value: a };
  1431. });
  1432. return D(e, function(a, b) {
  1433. return Fe(a, b, c);
  1434. });
  1435. }
  1436. function Vd(a, b) {
  1437. return Wd(a, b, function(b, c) {
  1438. return Mi(a, c);
  1439. });
  1440. }
  1441. function Wd(a, b, c) {
  1442. for (var d = -1, e = b.length, f = {}; ++d < e; ) {
  1443. var g = b[d],
  1444. h = ed(a, g);
  1445. c(h, g) && ee(f, we(g, a), h);
  1446. }
  1447. return f;
  1448. }
  1449. function Xd(a) {
  1450. return function(b) {
  1451. return ed(b, a);
  1452. };
  1453. }
  1454. function Yd(a, b, c, d) {
  1455. var e = d ? x : w,
  1456. f = -1,
  1457. g = b.length,
  1458. h = a;
  1459. for (a === b && (b = Ie(b)), c && (h = n(a, H(c))); ++f < g; )
  1460. for (var i = 0, j = b[f], k = c ? c(j) : j; (i = e(h, k, i, d)) > -1; )
  1461. h !== a && Dk.call(h, i, 1), Dk.call(a, i, 1);
  1462. return a;
  1463. }
  1464. function Zd(a, b) {
  1465. for (var c = a ? b.length : 0, d = c - 1; c--; ) {
  1466. var e = b[c];
  1467. if (c == d || e !== f) {
  1468. var f = e;
  1469. Gf(e) ? Dk.call(a, e, 1) : oe(a, e);
  1470. }
  1471. }
  1472. return a;
  1473. }
  1474. function $d(a, b) {
  1475. return a + Mk(Wk() * (b - a + 1));
  1476. }
  1477. function _d(a, b, c, d) {
  1478. for (var e = -1, f = Sk(Lk((b - a) / (c || 1)), 0), g = bk(f); f--; )
  1479. (g[d ? f : ++e] = a), (a += c);
  1480. return g;
  1481. }
  1482. function ae(a, b) {
  1483. var c = '';
  1484. if (!a || b < 1 || b > Ha) return c;
  1485. do b % 2 && (c += a), (b = Mk(b / 2)), b && (a += a);
  1486. while (b);
  1487. return c;
  1488. }
  1489. function be(a, b) {
  1490. return Dl(Tf(a, b, Dj), a + '');
  1491. }
  1492. function ce(a) {
  1493. return yc($i(a));
  1494. }
  1495. function de(a, b) {
  1496. var c = $i(a);
  1497. return Zf(c, Jc(b, 0, c.length));
  1498. }
  1499. function ee(a, b, c, d) {
  1500. if (!di(a)) return a;
  1501. b = we(b, a);
  1502. for (var e = -1, f = b.length, g = f - 1, h = a; null != h && ++e < f; ) {
  1503. var i = $f(b[e]),
  1504. j = c;
  1505. if (e != g) {
  1506. var k = h[i];
  1507. (j = d ? d(k, i, h) : ca),
  1508. j === ca && (j = di(k) ? k : Gf(b[e + 1]) ? [] : {});
  1509. }
  1510. Cc(h, i, j), (h = h[i]);
  1511. }
  1512. return a;
  1513. }
  1514. function fe(a) {
  1515. return Zf($i(a));
  1516. }
  1517. function ge(a, b, c) {
  1518. var d = -1,
  1519. e = a.length;
  1520. b < 0 && (b = -b > e ? 0 : e + b),
  1521. (c = c > e ? e : c),
  1522. c < 0 && (c += e),
  1523. (e = b > c ? 0 : (c - b) >>> 0),
  1524. (b >>>= 0);
  1525. for (var f = bk(e); ++d < e; ) f[d] = a[d + b];
  1526. return f;
  1527. }
  1528. function he(a, b) {
  1529. var c;
  1530. return (
  1531. nl(a, function(a, d, e) {
  1532. return (c = b(a, d, e)), !c;
  1533. }),
  1534. !!c
  1535. );
  1536. }
  1537. function ie(a, b, c) {
  1538. var d = 0,
  1539. e = null == a ? d : a.length;
  1540. if ('number' == typeof b && b === b && e <= Ma) {
  1541. for (; d < e; ) {
  1542. var f = (d + e) >>> 1,
  1543. g = a[f];
  1544. null !== g && !pi(g) && (c ? g <= b : g < b) ? (d = f + 1) : (e = f);
  1545. }
  1546. return e;
  1547. }
  1548. return je(a, b, Dj, c);
  1549. }
  1550. function je(a, b, c, d) {
  1551. b = c(b);
  1552. for (
  1553. var e = 0,
  1554. f = null == a ? 0 : a.length,
  1555. g = b !== b,
  1556. h = null === b,
  1557. i = pi(b),
  1558. j = b === ca;
  1559. e < f;
  1560. ) {
  1561. var k = Mk((e + f) / 2),
  1562. l = c(a[k]),
  1563. m = l !== ca,
  1564. n = null === l,
  1565. o = l === l,
  1566. p = pi(l);
  1567. if (g) var q = d || o;
  1568. else
  1569. q = j
  1570. ? o && (d || m)
  1571. : h
  1572. ? o && m && (d || !n)
  1573. : i
  1574. ? o && m && !n && (d || !p)
  1575. : !n && !p && (d ? l <= b : l < b);
  1576. q ? (e = k + 1) : (f = k);
  1577. }
  1578. return Tk(f, La);
  1579. }
  1580. function ke(a, b) {
  1581. for (var c = -1, d = a.length, e = 0, f = []; ++c < d; ) {
  1582. var g = a[c],
  1583. h = b ? b(g) : g;
  1584. if (!c || !Sh(h, i)) {
  1585. var i = h;
  1586. f[e++] = 0 === g ? 0 : g;
  1587. }
  1588. }
  1589. return f;
  1590. }
  1591. function le(a) {
  1592. return 'number' == typeof a ? a : pi(a) ? Ja : +a;
  1593. }
  1594. function me(a) {
  1595. if ('string' == typeof a) return a;
  1596. if (pm(a)) return n(a, me) + '';
  1597. if (pi(a)) return ll ? ll.call(a) : '';
  1598. var b = a + '';
  1599. return '0' == b && 1 / a == -Ga ? '-0' : b;
  1600. }
  1601. function ne(a, b, c) {
  1602. var d = -1,
  1603. e = l,
  1604. f = a.length,
  1605. g = !0,
  1606. h = [],
  1607. i = h;
  1608. if (c) (g = !1), (e = m);
  1609. else if (f >= ea) {
  1610. var j = b ? null : vl(a);
  1611. if (j) return V(j);
  1612. (g = !1), (e = J), (i = new oc());
  1613. } else i = b ? [] : h;
  1614. a: for (; ++d < f; ) {
  1615. var k = a[d],
  1616. n = b ? b(k) : k;
  1617. if (((k = c || 0 !== k ? k : 0), g && n === n)) {
  1618. for (var o = i.length; o--; ) if (i[o] === n) continue a;
  1619. b && i.push(n), h.push(k);
  1620. } else e(i, n, c) || (i !== h && i.push(n), h.push(k));
  1621. }
  1622. return h;
  1623. }
  1624. function oe(a, b) {
  1625. return (b = we(b, a)), (a = Uf(a, b)), null == a || delete a[$f(ug(b))];
  1626. }
  1627. function pe(a, b, c, d) {
  1628. return ee(a, b, c(ed(a, b)), d);
  1629. }
  1630. function qe(a, b, c, d) {
  1631. for (var e = a.length, f = d ? e : -1; (d ? f-- : ++f < e) && b(a[f], f, a); );
  1632. return c ? ge(a, d ? 0 : f, d ? f + 1 : e) : ge(a, d ? f + 1 : 0, d ? e : f);
  1633. }
  1634. function re(a, b) {
  1635. var c = a;
  1636. return (
  1637. c instanceof s && (c = c.value()),
  1638. p(
  1639. b,
  1640. function(a, b) {
  1641. return b.func.apply(b.thisArg, o([a], b.args));
  1642. },
  1643. c
  1644. )
  1645. );
  1646. }
  1647. function se(a, b, c) {
  1648. var d = a.length;
  1649. if (d < 2) return d ? ne(a[0]) : [];
  1650. for (var e = -1, f = bk(d); ++e < d; )
  1651. for (var g = a[e], h = -1; ++h < d; )
  1652. h != e && (f[e] = Qc(f[e] || g, a[h], b, c));
  1653. return ne(Zc(f, 1), b, c);
  1654. }
  1655. function te(a, b, c) {
  1656. for (var d = -1, e = a.length, f = b.length, g = {}; ++d < e; ) {
  1657. var h = d < f ? b[d] : ca;
  1658. c(g, a[d], h);
  1659. }
  1660. return g;
  1661. }
  1662. function ue(a) {
  1663. return Uh(a) ? a : [];
  1664. }
  1665. function ve(a) {
  1666. return 'function' == typeof a ? a : Dj;
  1667. }
  1668. function we(a, b) {
  1669. return pm(a) ? a : If(a, b) ? [a] : El(Ai(a));
  1670. }
  1671. function xe(a, b, c) {
  1672. var d = a.length;
  1673. return (c = c === ca ? d : c), !b && c >= d ? a : ge(a, b, c);
  1674. }
  1675. function ye(a, b) {
  1676. if (b) return a.slice();
  1677. var c = a.length,
  1678. d = zk ? zk(c) : new a.constructor(c);
  1679. return a.copy(d), d;
  1680. }
  1681. function ze(a) {
  1682. var b = new a.constructor(a.byteLength);
  1683. return new yk(b).set(new yk(a)), b;
  1684. }
  1685. function Ae(a, b) {
  1686. var c = b ? ze(a.buffer) : a.buffer;
  1687. return new a.constructor(c, a.byteOffset, a.byteLength);
  1688. }
  1689. function Be(a) {
  1690. var b = new a.constructor(a.source, Rb.exec(a));
  1691. return (b.lastIndex = a.lastIndex), b;
  1692. }
  1693. function Ce(a) {
  1694. return kl ? gk(kl.call(a)) : {};
  1695. }
  1696. function De(a, b) {
  1697. var c = b ? ze(a.buffer) : a.buffer;
  1698. return new a.constructor(c, a.byteOffset, a.length);
  1699. }
  1700. function Ee(a, b) {
  1701. if (a !== b) {
  1702. var c = a !== ca,
  1703. d = null === a,
  1704. e = a === a,
  1705. f = pi(a),
  1706. g = b !== ca,
  1707. h = null === b,
  1708. i = b === b,
  1709. j = pi(b);
  1710. if (
  1711. (!h && !j && !f && a > b) ||
  1712. (f && g && i && !h && !j) ||
  1713. (d && g && i) ||
  1714. (!c && i) ||
  1715. !e
  1716. )
  1717. return 1;
  1718. if (
  1719. (!d && !f && !j && a < b) ||
  1720. (j && c && e && !d && !f) ||
  1721. (h && c && e) ||
  1722. (!g && e) ||
  1723. !i
  1724. )
  1725. return -1;
  1726. }
  1727. return 0;
  1728. }
  1729. function Fe(a, b, c) {
  1730. for (
  1731. var d = -1, e = a.criteria, f = b.criteria, g = e.length, h = c.length;
  1732. ++d < g;
  1733. ) {
  1734. var i = Ee(e[d], f[d]);
  1735. if (i) {
  1736. if (d >= h) return i;
  1737. var j = c[d];
  1738. return i * ('desc' == j ? -1 : 1);
  1739. }
  1740. }
  1741. return a.index - b.index;
  1742. }
  1743. function Ge(a, b, c, d) {
  1744. for (
  1745. var e = -1,
  1746. f = a.length,
  1747. g = c.length,
  1748. h = -1,
  1749. i = b.length,
  1750. j = Sk(f - g, 0),
  1751. k = bk(i + j),
  1752. l = !d;
  1753. ++h < i;
  1754. )
  1755. k[h] = b[h];
  1756. for (; ++e < g; ) (l || e < f) && (k[c[e]] = a[e]);
  1757. for (; j--; ) k[h++] = a[e++];
  1758. return k;
  1759. }
  1760. function He(a, b, c, d) {
  1761. for (
  1762. var e = -1,
  1763. f = a.length,
  1764. g = -1,
  1765. h = c.length,
  1766. i = -1,
  1767. j = b.length,
  1768. k = Sk(f - h, 0),
  1769. l = bk(k + j),
  1770. m = !d;
  1771. ++e < k;
  1772. )
  1773. l[e] = a[e];
  1774. for (var n = e; ++i < j; ) l[n + i] = b[i];
  1775. for (; ++g < h; ) (m || e < f) && (l[n + c[g]] = a[e++]);
  1776. return l;
  1777. }
  1778. function Ie(a, b) {
  1779. var c = -1,
  1780. d = a.length;
  1781. for (b || (b = bk(d)); ++c < d; ) b[c] = a[c];
  1782. return b;
  1783. }
  1784. function Je(a, b, c, d) {
  1785. var e = !c;
  1786. c || (c = {});
  1787. for (var f = -1, g = b.length; ++f < g; ) {
  1788. var h = b[f],
  1789. i = d ? d(c[h], a[h], h, c, a) : ca;
  1790. i === ca && (i = a[h]), e ? Hc(c, h, i) : Cc(c, h, i);
  1791. }
  1792. return c;
  1793. }
  1794. function Ke(a, b) {
  1795. return Je(a, xl(a), b);
  1796. }
  1797. function Le(a, b) {
  1798. return Je(a, yl(a), b);
  1799. }
  1800. function Me(a, b) {
  1801. return function(c, d) {
  1802. var e = pm(c) ? g : Ec,
  1803. f = b ? b() : {};
  1804. return e(c, a, tf(d, 2), f);
  1805. };
  1806. }
  1807. function Ne(a) {
  1808. return be(function(b, c) {
  1809. var d = -1,
  1810. e = c.length,
  1811. f = e > 1 ? c[e - 1] : ca,
  1812. g = e > 2 ? c[2] : ca;
  1813. for (
  1814. f = a.length > 3 && 'function' == typeof f ? (e--, f) : ca,
  1815. g && Hf(c[0], c[1], g) && ((f = e < 3 ? ca : f), (e = 1)),
  1816. b = gk(b);
  1817. ++d < e;
  1818. ) {
  1819. var h = c[d];
  1820. h && a(b, h, d, f);
  1821. }
  1822. return b;
  1823. });
  1824. }
  1825. function Oe(a, b) {
  1826. return function(c, d) {
  1827. if (null == c) return c;
  1828. if (!Th(c)) return a(c, d);
  1829. for (
  1830. var e = c.length, f = b ? e : -1, g = gk(c);
  1831. (b ? f-- : ++f < e) && d(g[f], f, g) !== !1;
  1832. );
  1833. return c;
  1834. };
  1835. }
  1836. function Pe(a) {
  1837. return function(b, c, d) {
  1838. for (var e = -1, f = gk(b), g = d(b), h = g.length; h--; ) {
  1839. var i = g[a ? h : ++e];
  1840. if (c(f[i], i, f) === !1) break;
  1841. }
  1842. return b;
  1843. };
  1844. }
  1845. function Qe(a, b, c) {
  1846. function d() {
  1847. var b = this && this !== dd && this instanceof d ? f : a;
  1848. return b.apply(e ? c : this, arguments);
  1849. }
  1850. var e = b & pa,
  1851. f = Te(a);
  1852. return d;
  1853. }
  1854. function Re(a) {
  1855. return function(b) {
  1856. b = Ai(b);
  1857. var c = P(b) ? $(b) : ca,
  1858. d = c ? c[0] : b.charAt(0),
  1859. e = c ? xe(c, 1).join('') : b.slice(1);
  1860. return d[a]() + e;
  1861. };
  1862. }
  1863. function Se(a) {
  1864. return function(b) {
  1865. return p(yj(ej(b).replace(Nc, '')), a, '');
  1866. };
  1867. }
  1868. function Te(a) {
  1869. return function() {
  1870. var b = arguments;
  1871. switch (b.length) {
  1872. case 0:
  1873. return new a();
  1874. case 1:
  1875. return new a(b[0]);
  1876. case 2:
  1877. return new a(b[0], b[1]);
  1878. case 3:
  1879. return new a(b[0], b[1], b[2]);
  1880. case 4:
  1881. return new a(b[0], b[1], b[2], b[3]);
  1882. case 5:
  1883. return new a(b[0], b[1], b[2], b[3], b[4]);
  1884. case 6:
  1885. return new a(b[0], b[1], b[2], b[3], b[4], b[5]);
  1886. case 7:
  1887. return new a(b[0], b[1], b[2], b[3], b[4], b[5], b[6]);
  1888. }
  1889. var c = ml(a.prototype),
  1890. d = a.apply(c, b);
  1891. return di(d) ? d : c;
  1892. };
  1893. }
  1894. function Ue(a, b, c) {
  1895. function d() {
  1896. for (var g = arguments.length, h = bk(g), i = g, j = sf(d); i--; )
  1897. h[i] = arguments[i];
  1898. var k = g < 3 && h[0] !== j && h[g - 1] !== j ? [] : U(h, j);
  1899. if (((g -= k.length), g < c))
  1900. return df(a, b, Xe, d.placeholder, ca, h, k, ca, ca, c - g);
  1901. var l = this && this !== dd && this instanceof d ? e : a;
  1902. return f(l, this, h);
  1903. }
  1904. var e = Te(a);
  1905. return d;
  1906. }
  1907. function Ve(a) {
  1908. return function(b, c, d) {
  1909. var e = gk(b);
  1910. if (!Th(b)) {
  1911. var f = tf(c, 3);
  1912. (b = Ni(b)),
  1913. (c = function(a) {
  1914. return f(e[a], a, e);
  1915. });
  1916. }
  1917. var g = a(b, c, d);
  1918. return g > -1 ? e[f ? b[g] : g] : ca;
  1919. };
  1920. }
  1921. function We(a) {
  1922. return of(function(b) {
  1923. var c = b.length,
  1924. d = c,
  1925. f = e.prototype.thru;
  1926. for (a && b.reverse(); d--; ) {
  1927. var g = b[d];
  1928. if ('function' != typeof g) throw new jk(ga);
  1929. if (f && !h && 'wrapper' == rf(g)) var h = new e([], !0);
  1930. }
  1931. for (d = h ? d : c; ++d < c; ) {
  1932. g = b[d];
  1933. var i = rf(g),
  1934. j = 'wrapper' == i ? wl(g) : ca;
  1935. h =
  1936. j &&
  1937. Kf(j[0]) &&
  1938. j[1] == (wa | sa | ua | xa) &&
  1939. !j[4].length &&
  1940. 1 == j[9]
  1941. ? h[rf(j[0])].apply(h, j[3])
  1942. : 1 == g.length && Kf(g)
  1943. ? h[i]()
  1944. : h.thru(g);
  1945. }
  1946. return function() {
  1947. var a = arguments,
  1948. d = a[0];
  1949. if (h && 1 == a.length && pm(d)) return h.plant(d).value();
  1950. for (var e = 0, f = c ? b[e].apply(this, a) : d; ++e < c; )
  1951. f = b[e].call(this, f);
  1952. return f;
  1953. };
  1954. });
  1955. }
  1956. function Xe(a, b, c, d, e, f, g, h, i, j) {
  1957. function k() {
  1958. for (var r = arguments.length, s = bk(r), t = r; t--; ) s[t] = arguments[t];
  1959. if (o)
  1960. var u = sf(k),
  1961. v = M(s, u);
  1962. if (
  1963. (d && (s = Ge(s, d, e, o)), f && (s = He(s, f, g, o)), (r -= v), o && r < j)
  1964. ) {
  1965. var w = U(s, u);
  1966. return df(a, b, Xe, k.placeholder, c, s, w, h, i, j - r);
  1967. }
  1968. var x = m ? c : this,
  1969. y = n ? x[a] : a;
  1970. return (
  1971. (r = s.length),
  1972. h ? (s = Vf(s, h)) : p && r > 1 && s.reverse(),
  1973. l && i < r && (s.length = i),
  1974. this && this !== dd && this instanceof k && (y = q || Te(y)),
  1975. y.apply(x, s)
  1976. );
  1977. }
  1978. var l = b & wa,
  1979. m = b & pa,
  1980. n = b & qa,
  1981. o = b & (sa | ta),
  1982. p = b & ya,
  1983. q = n ? ca : Te(a);
  1984. return k;
  1985. }
  1986. function Ye(a, b) {
  1987. return function(c, d) {
  1988. return xd(c, a, b(d), {});
  1989. };
  1990. }
  1991. function Ze(a, b) {
  1992. return function(c, d) {
  1993. var e;
  1994. if (c === ca && d === ca) return b;
  1995. if ((c !== ca && (e = c), d !== ca)) {
  1996. if (e === ca) return d;
  1997. 'string' == typeof c || 'string' == typeof d
  1998. ? ((c = me(c)), (d = me(d)))
  1999. : ((c = le(c)), (d = le(d))),
  2000. (e = a(c, d));
  2001. }
  2002. return e;
  2003. };
  2004. }
  2005. function $e(a) {
  2006. return of(function(b) {
  2007. return (
  2008. (b = n(b, H(tf()))),
  2009. be(function(c) {
  2010. var d = this;
  2011. return a(b, function(a) {
  2012. return f(a, d, c);
  2013. });
  2014. })
  2015. );
  2016. });
  2017. }
  2018. function _e(a, b) {
  2019. b = b === ca ? ' ' : me(b);
  2020. var c = b.length;
  2021. if (c < 2) return c ? ae(b, a) : b;
  2022. var d = ae(b, Lk(a / Z(b)));
  2023. return P(b) ? xe($(d), 0, a).join('') : d.slice(0, a);
  2024. }
  2025. function af(a, b, c, d) {
  2026. function e() {
  2027. for (
  2028. var b = -1,
  2029. i = arguments.length,
  2030. j = -1,
  2031. k = d.length,
  2032. l = bk(k + i),
  2033. m = this && this !== dd && this instanceof e ? h : a;
  2034. ++j < k;
  2035. )
  2036. l[j] = d[j];
  2037. for (; i--; ) l[j++] = arguments[++b];
  2038. return f(m, g ? c : this, l);
  2039. }
  2040. var g = b & pa,
  2041. h = Te(a);
  2042. return e;
  2043. }
  2044. function bf(a) {
  2045. return function(b, c, d) {
  2046. return (
  2047. d && 'number' != typeof d && Hf(b, c, d) && (c = d = ca),
  2048. (b = ui(b)),
  2049. c === ca ? ((c = b), (b = 0)) : (c = ui(c)),
  2050. (d = d === ca ? (b < c ? 1 : -1) : ui(d)),
  2051. _d(b, c, d, a)
  2052. );
  2053. };
  2054. }
  2055. function cf(a) {
  2056. return function(b, c) {
  2057. return (
  2058. ('string' == typeof b && 'string' == typeof c) ||
  2059. ((b = xi(b)), (c = xi(c))),
  2060. a(b, c)
  2061. );
  2062. };
  2063. }
  2064. function df(a, b, c, d, e, f, g, h, i, j) {
  2065. var k = b & sa,
  2066. l = k ? g : ca,
  2067. m = k ? ca : g,
  2068. n = k ? f : ca,
  2069. o = k ? ca : f;
  2070. (b |= k ? ua : va), (b &= ~(k ? va : ua)), b & ra || (b &= ~(pa | qa));
  2071. var p = [a, b, e, n, l, o, m, h, i, j],
  2072. q = c.apply(ca, p);
  2073. return Kf(a) && Bl(q, p), (q.placeholder = d), Xf(q, a, b);
  2074. }
  2075. function ef(a) {
  2076. var b = fk[a];
  2077. return function(a, c) {
  2078. if (((a = xi(a)), (c = null == c ? 0 : Tk(vi(c), 292)), c && Pk(a))) {
  2079. var d = (Ai(a) + 'e').split('e'),
  2080. e = b(d[0] + 'e' + (+d[1] + c));
  2081. return (d = (Ai(e) + 'e').split('e')), +(d[0] + 'e' + (+d[1] - c));
  2082. }
  2083. return b(a);
  2084. };
  2085. }
  2086. function ff(a) {
  2087. return function(b) {
  2088. var c = zl(b);
  2089. return c == Xa ? S(b) : c == cb ? W(b) : G(b, a(b));
  2090. };
  2091. }
  2092. function gf(a, b, c, d, e, f, g, h) {
  2093. var i = b & qa;
  2094. if (!i && 'function' != typeof a) throw new jk(ga);
  2095. var j = d ? d.length : 0;
  2096. if (
  2097. (j || ((b &= ~(ua | va)), (d = e = ca)),
  2098. (g = g === ca ? g : Sk(vi(g), 0)),
  2099. (h = h === ca ? h : vi(h)),
  2100. (j -= e ? e.length : 0),
  2101. b & va)
  2102. ) {
  2103. var k = d,
  2104. l = e;
  2105. d = e = ca;
  2106. }
  2107. var m = i ? ca : wl(a),
  2108. n = [a, b, c, d, e, k, l, f, g, h];
  2109. if (
  2110. (m && Qf(n, m),
  2111. (a = n[0]),
  2112. (b = n[1]),
  2113. (c = n[2]),
  2114. (d = n[3]),
  2115. (e = n[4]),
  2116. (h = n[9] = n[9] === ca ? (i ? 0 : a.length) : Sk(n[9] - j, 0)),
  2117. !h && b & (sa | ta) && (b &= ~(sa | ta)),
  2118. b && b != pa)
  2119. )
  2120. o =
  2121. b == sa || b == ta
  2122. ? Ue(a, b, h)
  2123. : (b != ua && b != (pa | ua)) || e.length
  2124. ? Xe.apply(ca, n)
  2125. : af(a, b, c, d);
  2126. else var o = Qe(a, b, c);
  2127. var p = m ? rl : Bl;
  2128. return Xf(p(o, n), a, b);
  2129. }
  2130. function hf(a, b, c, d) {
  2131. return a === ca || (Sh(a, mk[c]) && !pk.call(d, c)) ? b : a;
  2132. }
  2133. function jf(a, b, c, d, e, f) {
  2134. return di(a) && di(b) && (f.set(b, a), Rd(a, b, ca, jf, f), f.delete(b)), a;
  2135. }
  2136. function kf(a) {
  2137. return mi(a) ? ca : a;
  2138. }
  2139. function lf(a, b, c, d, e, f) {
  2140. var g = c & na,
  2141. h = a.length,
  2142. i = b.length;
  2143. if (h != i && !(g && i > h)) return !1;
  2144. var j = f.get(a);
  2145. if (j && f.get(b)) return j == b;
  2146. var k = -1,
  2147. l = !0,
  2148. m = c & oa ? new oc() : ca;
  2149. for (f.set(a, b), f.set(b, a); ++k < h; ) {
  2150. var n = a[k],
  2151. o = b[k];
  2152. if (d) var p = g ? d(o, n, k, b, a, f) : d(n, o, k, a, b, f);
  2153. if (p !== ca) {
  2154. if (p) continue;
  2155. l = !1;
  2156. break;
  2157. }
  2158. if (m) {
  2159. if (
  2160. !r(b, function(a, b) {
  2161. if (!J(m, b) && (n === a || e(n, a, c, d, f))) return m.push(b);
  2162. })
  2163. ) {
  2164. l = !1;
  2165. break;
  2166. }
  2167. } else if (n !== o && !e(n, o, c, d, f)) {
  2168. l = !1;
  2169. break;
  2170. }
  2171. }
  2172. return f.delete(a), f.delete(b), l;
  2173. }
  2174. function mf(a, b, c, d, e, f, g) {
  2175. switch (c) {
  2176. case jb:
  2177. if (a.byteLength != b.byteLength || a.byteOffset != b.byteOffset) return !1;
  2178. (a = a.buffer), (b = b.buffer);
  2179. case ib:
  2180. return !(a.byteLength != b.byteLength || !f(new yk(a), new yk(b)));
  2181. case Ra:
  2182. case Sa:
  2183. case Ya:
  2184. return Sh(+a, +b);
  2185. case Ua:
  2186. return a.name == b.name && a.message == b.message;
  2187. case bb:
  2188. case db:
  2189. return a == b + '';
  2190. case Xa:
  2191. var h = S;
  2192. case cb:
  2193. var i = d & na;
  2194. if ((h || (h = V), a.size != b.size && !i)) return !1;
  2195. var j = g.get(a);
  2196. if (j) return j == b;
  2197. (d |= oa), g.set(a, b);
  2198. var k = lf(h(a), h(b), d, e, f, g);
  2199. return g.delete(a), k;
  2200. case eb:
  2201. if (kl) return kl.call(a) == kl.call(b);
  2202. }
  2203. return !1;
  2204. }
  2205. function nf(a, b, c, d, e, f) {
  2206. var g = c & na,
  2207. h = pf(a),
  2208. i = h.length,
  2209. j = pf(b),
  2210. k = j.length;
  2211. if (i != k && !g) return !1;
  2212. for (var l = i; l--; ) {
  2213. var m = h[l];
  2214. if (!(g ? m in b : pk.call(b, m))) return !1;
  2215. }
  2216. var n = f.get(a);
  2217. if (n && f.get(b)) return n == b;
  2218. var o = !0;
  2219. f.set(a, b), f.set(b, a);
  2220. for (var p = g; ++l < i; ) {
  2221. m = h[l];
  2222. var q = a[m],
  2223. r = b[m];
  2224. if (d) var s = g ? d(r, q, m, b, a, f) : d(q, r, m, a, b, f);
  2225. if (!(s === ca ? q === r || e(q, r, c, d, f) : s)) {
  2226. o = !1;
  2227. break;
  2228. }
  2229. p || (p = 'constructor' == m);
  2230. }
  2231. if (o && !p) {
  2232. var t = a.constructor,
  2233. u = b.constructor;
  2234. t != u &&
  2235. 'constructor' in a &&
  2236. 'constructor' in b &&
  2237. !(
  2238. 'function' == typeof t &&
  2239. t instanceof t &&
  2240. 'function' == typeof u &&
  2241. u instanceof u
  2242. ) &&
  2243. (o = !1);
  2244. }
  2245. return f.delete(a), f.delete(b), o;
  2246. }
  2247. function of(a) {
  2248. return Dl(Tf(a, ca, mg), a + '');
  2249. }
  2250. function pf(a) {
  2251. return fd(a, Ni, xl);
  2252. }
  2253. function qf(a) {
  2254. return fd(a, Oi, yl);
  2255. }
  2256. function rf(a) {
  2257. for (var b = a.name + '', c = dl[b], d = pk.call(dl, b) ? c.length : 0; d--; ) {
  2258. var e = c[d],
  2259. f = e.func;
  2260. if (null == f || f == a) return e.name;
  2261. }
  2262. return b;
  2263. }
  2264. function sf(a) {
  2265. var b = pk.call(c, 'placeholder') ? c : a;
  2266. return b.placeholder;
  2267. }
  2268. function tf() {
  2269. var a = c.iteratee || Ej;
  2270. return (
  2271. (a = a === Ej ? Kd : a), arguments.length ? a(arguments[0], arguments[1]) : a
  2272. );
  2273. }
  2274. function uf(a, b) {
  2275. var c = a.__data__;
  2276. return Jf(b) ? c['string' == typeof b ? 'string' : 'hash'] : c.map;
  2277. }
  2278. function vf(a) {
  2279. for (var b = Ni(a), c = b.length; c--; ) {
  2280. var d = b[c],
  2281. e = a[d];
  2282. b[c] = [d, e, Nf(e)];
  2283. }
  2284. return b;
  2285. }
  2286. function wf(a, b) {
  2287. var c = O(a, b);
  2288. return Gd(c) ? c : ca;
  2289. }
  2290. function xf(a) {
  2291. var b = pk.call(a, Gk),
  2292. c = a[Gk];
  2293. try {
  2294. a[Gk] = ca;
  2295. var d = !0;
  2296. } catch (a) {}
  2297. var e = sk.call(a);
  2298. return d && (b ? (a[Gk] = c) : delete a[Gk]), e;
  2299. }
  2300. function yf(a, b, c) {
  2301. for (var d = -1, e = c.length; ++d < e; ) {
  2302. var f = c[d],
  2303. g = f.size;
  2304. switch (f.type) {
  2305. case 'drop':
  2306. a += g;
  2307. break;
  2308. case 'dropRight':
  2309. b -= g;
  2310. break;
  2311. case 'take':
  2312. b = Tk(b, a + g);
  2313. break;
  2314. case 'takeRight':
  2315. a = Sk(a, b - g);
  2316. }
  2317. }
  2318. return { start: a, end: b };
  2319. }
  2320. function zf(a) {
  2321. var b = a.match(Mb);
  2322. return b ? b[1].split(Nb) : [];
  2323. }
  2324. function Af(a, b, c) {
  2325. b = we(b, a);
  2326. for (var d = -1, e = b.length, f = !1; ++d < e; ) {
  2327. var g = $f(b[d]);
  2328. if (!(f = null != a && c(a, g))) break;
  2329. a = a[g];
  2330. }
  2331. return f || ++d != e
  2332. ? f
  2333. : ((e = null == a ? 0 : a.length),
  2334. !!e && ci(e) && Gf(g, e) && (pm(a) || om(a)));
  2335. }
  2336. function Bf(a) {
  2337. var b = a.length,
  2338. c = new a.constructor(b);
  2339. return (
  2340. b &&
  2341. 'string' == typeof a[0] &&
  2342. pk.call(a, 'index') &&
  2343. ((c.index = a.index), (c.input = a.input)),
  2344. c
  2345. );
  2346. }
  2347. function Cf(a) {
  2348. return 'function' != typeof a.constructor || Mf(a) ? {} : ml(Ak(a));
  2349. }
  2350. function Df(a, b, c) {
  2351. var d = a.constructor;
  2352. switch (b) {
  2353. case ib:
  2354. return ze(a);
  2355. case Ra:
  2356. case Sa:
  2357. return new d(+a);
  2358. case jb:
  2359. return Ae(a, c);
  2360. case kb:
  2361. case lb:
  2362. case mb:
  2363. case nb:
  2364. case ob:
  2365. case pb:
  2366. case qb:
  2367. case rb:
  2368. case sb:
  2369. return De(a, c);
  2370. case Xa:
  2371. return new d();
  2372. case Ya:
  2373. case db:
  2374. return new d(a);
  2375. case bb:
  2376. return Be(a);
  2377. case cb:
  2378. return new d();
  2379. case eb:
  2380. return Ce(a);
  2381. }
  2382. }
  2383. function Ef(a, b) {
  2384. var c = b.length;
  2385. if (!c) return a;
  2386. var d = c - 1;
  2387. return (
  2388. (b[d] = (c > 1 ? '& ' : '') + b[d]),
  2389. (b = b.join(c > 2 ? ', ' : ' ')),
  2390. a.replace(Lb, '{\n/* [wrapped with ' + b + '] */\n')
  2391. );
  2392. }
  2393. function Ff(a) {
  2394. return pm(a) || om(a) || !!(Ek && a && a[Ek]);
  2395. }
  2396. function Gf(a, b) {
  2397. var c = typeof a;
  2398. return (
  2399. (b = null == b ? Ha : b),
  2400. !!b &&
  2401. ('number' == c || ('symbol' != c && Wb.test(a))) &&
  2402. a > -1 &&
  2403. a % 1 == 0 &&
  2404. a < b
  2405. );
  2406. }
  2407. function Hf(a, b, c) {
  2408. if (!di(c)) return !1;
  2409. var d = typeof b;
  2410. return (
  2411. !!('number' == d ? Th(c) && Gf(b, c.length) : 'string' == d && b in c) &&
  2412. Sh(c[b], a)
  2413. );
  2414. }
  2415. function If(a, b) {
  2416. if (pm(a)) return !1;
  2417. var c = typeof a;
  2418. return (
  2419. !('number' != c && 'symbol' != c && 'boolean' != c && null != a && !pi(a)) ||
  2420. Eb.test(a) || !Db.test(a) || (null != b && a in gk(b))
  2421. );
  2422. }
  2423. function Jf(a) {
  2424. var b = typeof a;
  2425. return 'string' == b || 'number' == b || 'symbol' == b || 'boolean' == b
  2426. ? '__proto__' !== a
  2427. : null === a;
  2428. }
  2429. function Kf(a) {
  2430. var b = rf(a),
  2431. d = c[b];
  2432. if ('function' != typeof d || !(b in s.prototype)) return !1;
  2433. if (a === d) return !0;
  2434. var e = wl(d);
  2435. return !!e && a === e[0];
  2436. }
  2437. function Lf(a) {
  2438. return !!rk && rk in a;
  2439. }
  2440. function Mf(a) {
  2441. var b = a && a.constructor,
  2442. c = ('function' == typeof b && b.prototype) || mk;
  2443. return a === c;
  2444. }
  2445. function Nf(a) {
  2446. return a === a && !di(a);
  2447. }
  2448. function Of(a, b) {
  2449. return function(c) {
  2450. return null != c && c[a] === b && (b !== ca || a in gk(c));
  2451. };
  2452. }
  2453. function Pf(a) {
  2454. var b = Eh(a, function(a) {
  2455. return c.size === ia && c.clear(), a;
  2456. }),
  2457. c = b.cache;
  2458. return b;
  2459. }
  2460. function Qf(a, b) {
  2461. var c = a[1],
  2462. d = b[1],
  2463. e = c | d,
  2464. f = e < (pa | qa | wa),
  2465. g =
  2466. (d == wa && c == sa) ||
  2467. (d == wa && c == xa && a[7].length <= b[8]) ||
  2468. (d == (wa | xa) && b[7].length <= b[8] && c == sa);
  2469. if (!f && !g) return a;
  2470. d & pa && ((a[2] = b[2]), (e |= c & pa ? 0 : ra));
  2471. var h = b[3];
  2472. if (h) {
  2473. var i = a[3];
  2474. (a[3] = i ? Ge(i, h, b[4]) : h), (a[4] = i ? U(a[3], ja) : b[4]);
  2475. }
  2476. return (
  2477. (h = b[5]),
  2478. h &&
  2479. ((i = a[5]),
  2480. (a[5] = i ? He(i, h, b[6]) : h),
  2481. (a[6] = i ? U(a[5], ja) : b[6])),
  2482. (h = b[7]),
  2483. h && (a[7] = h),
  2484. d & wa && (a[8] = null == a[8] ? b[8] : Tk(a[8], b[8])),
  2485. null == a[9] && (a[9] = b[9]),
  2486. (a[0] = b[0]),
  2487. (a[1] = e),
  2488. a
  2489. );
  2490. }
  2491. function Rf(a) {
  2492. var b = [];
  2493. if (null != a) for (var c in gk(a)) b.push(c);
  2494. return b;
  2495. }
  2496. function Sf(a) {
  2497. return sk.call(a);
  2498. }
  2499. function Tf(a, b, c) {
  2500. return (
  2501. (b = Sk(b === ca ? a.length - 1 : b, 0)),
  2502. function() {
  2503. for (
  2504. var d = arguments, e = -1, g = Sk(d.length - b, 0), h = bk(g);
  2505. ++e < g;
  2506. )
  2507. h[e] = d[b + e];
  2508. e = -1;
  2509. for (var i = bk(b + 1); ++e < b; ) i[e] = d[e];
  2510. return (i[b] = c(h)), f(a, this, i);
  2511. }
  2512. );
  2513. }
  2514. function Uf(a, b) {
  2515. return b.length < 2 ? a : ed(a, ge(b, 0, -1));
  2516. }
  2517. function Vf(a, b) {
  2518. for (var c = a.length, d = Tk(b.length, c), e = Ie(a); d--; ) {
  2519. var f = b[d];
  2520. a[d] = Gf(f, c) ? e[f] : ca;
  2521. }
  2522. return a;
  2523. }
  2524. function Wf(a, b) {
  2525. if (('constructor' !== b || 'function' != typeof a[b]) && '__proto__' != b)
  2526. return a[b];
  2527. }
  2528. function Xf(a, b, c) {
  2529. var d = b + '';
  2530. return Dl(a, Ef(d, ag(zf(d), c)));
  2531. }
  2532. function Yf(a) {
  2533. var b = 0,
  2534. c = 0;
  2535. return function() {
  2536. var d = Uk(),
  2537. e = Ca - (d - c);
  2538. if (((c = d), e > 0)) {
  2539. if (++b >= Ba) return arguments[0];
  2540. } else b = 0;
  2541. return a.apply(ca, arguments);
  2542. };
  2543. }
  2544. function Zf(a, b) {
  2545. var c = -1,
  2546. d = a.length,
  2547. e = d - 1;
  2548. for (b = b === ca ? d : b; ++c < b; ) {
  2549. var f = $d(c, e),
  2550. g = a[f];
  2551. (a[f] = a[c]), (a[c] = g);
  2552. }
  2553. return (a.length = b), a;
  2554. }
  2555. function $f(a) {
  2556. if ('string' == typeof a || pi(a)) return a;
  2557. var b = a + '';
  2558. return '0' == b && 1 / a == -Ga ? '-0' : b;
  2559. }
  2560. function _f(a) {
  2561. if (null != a) {
  2562. try {
  2563. return ok.call(a);
  2564. } catch (a) {}
  2565. try {
  2566. return a + '';
  2567. } catch (a) {}
  2568. }
  2569. return '';
  2570. }
  2571. function ag(a, b) {
  2572. return (
  2573. h(Na, function(c) {
  2574. var d = '_.' + c[0];
  2575. b & c[1] && !l(a, d) && a.push(d);
  2576. }),
  2577. a.sort()
  2578. );
  2579. }
  2580. function bg(a) {
  2581. if (a instanceof s) return a.clone();
  2582. var b = new e(a.__wrapped__, a.__chain__);
  2583. return (
  2584. (b.__actions__ = Ie(a.__actions__)),
  2585. (b.__index__ = a.__index__),
  2586. (b.__values__ = a.__values__),
  2587. b
  2588. );
  2589. }
  2590. function cg(a, b, c) {
  2591. b = (c ? Hf(a, b, c) : b === ca) ? 1 : Sk(vi(b), 0);
  2592. var d = null == a ? 0 : a.length;
  2593. if (!d || b < 1) return [];
  2594. for (var e = 0, f = 0, g = bk(Lk(d / b)); e < d; ) g[f++] = ge(a, e, (e += b));
  2595. return g;
  2596. }
  2597. function dg(a) {
  2598. for (var b = -1, c = null == a ? 0 : a.length, d = 0, e = []; ++b < c; ) {
  2599. var f = a[b];
  2600. f && (e[d++] = f);
  2601. }
  2602. return e;
  2603. }
  2604. function eg() {
  2605. var a = arguments.length;
  2606. if (!a) return [];
  2607. for (var b = bk(a - 1), c = arguments[0], d = a; d--; ) b[d - 1] = arguments[d];
  2608. return o(pm(c) ? Ie(c) : [c], Zc(b, 1));
  2609. }
  2610. function fg(a, b, c) {
  2611. var d = null == a ? 0 : a.length;
  2612. return d ? ((b = c || b === ca ? 1 : vi(b)), ge(a, b < 0 ? 0 : b, d)) : [];
  2613. }
  2614. function gg(a, b, c) {
  2615. var d = null == a ? 0 : a.length;
  2616. return d
  2617. ? ((b = c || b === ca ? 1 : vi(b)), (b = d - b), ge(a, 0, b < 0 ? 0 : b))
  2618. : [];
  2619. }
  2620. function hg(a, b) {
  2621. return a && a.length ? qe(a, tf(b, 3), !0, !0) : [];
  2622. }
  2623. function ig(a, b) {
  2624. return a && a.length ? qe(a, tf(b, 3), !0) : [];
  2625. }
  2626. function jg(a, b, c, d) {
  2627. var e = null == a ? 0 : a.length;
  2628. return e
  2629. ? (c && 'number' != typeof c && Hf(a, b, c) && ((c = 0), (d = e)),
  2630. Xc(a, b, c, d))
  2631. : [];
  2632. }
  2633. function kg(a, b, c) {
  2634. var d = null == a ? 0 : a.length;
  2635. if (!d) return -1;
  2636. var e = null == c ? 0 : vi(c);
  2637. return e < 0 && (e = Sk(d + e, 0)), v(a, tf(b, 3), e);
  2638. }
  2639. function lg(a, b, c) {
  2640. var d = null == a ? 0 : a.length;
  2641. if (!d) return -1;
  2642. var e = d - 1;
  2643. return (
  2644. c !== ca && ((e = vi(c)), (e = c < 0 ? Sk(d + e, 0) : Tk(e, d - 1))),
  2645. v(a, tf(b, 3), e, !0)
  2646. );
  2647. }
  2648. function mg(a) {
  2649. var b = null == a ? 0 : a.length;
  2650. return b ? Zc(a, 1) : [];
  2651. }
  2652. function ng(a) {
  2653. var b = null == a ? 0 : a.length;
  2654. return b ? Zc(a, Ga) : [];
  2655. }
  2656. function og(a, b) {
  2657. var c = null == a ? 0 : a.length;
  2658. return c ? ((b = b === ca ? 1 : vi(b)), Zc(a, b)) : [];
  2659. }
  2660. function pg(a) {
  2661. for (var b = -1, c = null == a ? 0 : a.length, d = {}; ++b < c; ) {
  2662. var e = a[b];
  2663. d[e[0]] = e[1];
  2664. }
  2665. return d;
  2666. }
  2667. function qg(a) {
  2668. return a && a.length ? a[0] : ca;
  2669. }
  2670. function rg(a, b, c) {
  2671. var d = null == a ? 0 : a.length;
  2672. if (!d) return -1;
  2673. var e = null == c ? 0 : vi(c);
  2674. return e < 0 && (e = Sk(d + e, 0)), w(a, b, e);
  2675. }
  2676. function sg(a) {
  2677. var b = null == a ? 0 : a.length;
  2678. return b ? ge(a, 0, -1) : [];
  2679. }
  2680. function tg(a, b) {
  2681. return null == a ? '' : Qk.call(a, b);
  2682. }
  2683. function ug(a) {
  2684. var b = null == a ? 0 : a.length;
  2685. return b ? a[b - 1] : ca;
  2686. }
  2687. function vg(a, b, c) {
  2688. var d = null == a ? 0 : a.length;
  2689. if (!d) return -1;
  2690. var e = d;
  2691. return (
  2692. c !== ca && ((e = vi(c)), (e = e < 0 ? Sk(d + e, 0) : Tk(e, d - 1))),
  2693. b === b ? Y(a, b, e) : v(a, y, e, !0)
  2694. );
  2695. }
  2696. function wg(a, b) {
  2697. return a && a.length ? Td(a, vi(b)) : ca;
  2698. }
  2699. function xg(a, b) {
  2700. return a && a.length && b && b.length ? Yd(a, b) : a;
  2701. }
  2702. function yg(a, b, c) {
  2703. return a && a.length && b && b.length ? Yd(a, b, tf(c, 2)) : a;
  2704. }
  2705. function zg(a, b, c) {
  2706. return a && a.length && b && b.length ? Yd(a, b, ca, c) : a;
  2707. }
  2708. function Ag(a, b) {
  2709. var c = [];
  2710. if (!a || !a.length) return c;
  2711. var d = -1,
  2712. e = [],
  2713. f = a.length;
  2714. for (b = tf(b, 3); ++d < f; ) {
  2715. var g = a[d];
  2716. b(g, d, a) && (c.push(g), e.push(d));
  2717. }
  2718. return Zd(a, e), c;
  2719. }
  2720. function Bg(a) {
  2721. return null == a ? a : Xk.call(a);
  2722. }
  2723. function Cg(a, b, c) {
  2724. var d = null == a ? 0 : a.length;
  2725. return d
  2726. ? (c && 'number' != typeof c && Hf(a, b, c)
  2727. ? ((b = 0), (c = d))
  2728. : ((b = null == b ? 0 : vi(b)), (c = c === ca ? d : vi(c))),
  2729. ge(a, b, c))
  2730. : [];
  2731. }
  2732. function Dg(a, b) {
  2733. return ie(a, b);
  2734. }
  2735. function Eg(a, b, c) {
  2736. return je(a, b, tf(c, 2));
  2737. }
  2738. function Fg(a, b) {
  2739. var c = null == a ? 0 : a.length;
  2740. if (c) {
  2741. var d = ie(a, b);
  2742. if (d < c && Sh(a[d], b)) return d;
  2743. }
  2744. return -1;
  2745. }
  2746. function Gg(a, b) {
  2747. return ie(a, b, !0);
  2748. }
  2749. function Hg(a, b, c) {
  2750. return je(a, b, tf(c, 2), !0);
  2751. }
  2752. function Ig(a, b) {
  2753. var c = null == a ? 0 : a.length;
  2754. if (c) {
  2755. var d = ie(a, b, !0) - 1;
  2756. if (Sh(a[d], b)) return d;
  2757. }
  2758. return -1;
  2759. }
  2760. function Jg(a) {
  2761. return a && a.length ? ke(a) : [];
  2762. }
  2763. function Kg(a, b) {
  2764. return a && a.length ? ke(a, tf(b, 2)) : [];
  2765. }
  2766. function Lg(a) {
  2767. var b = null == a ? 0 : a.length;
  2768. return b ? ge(a, 1, b) : [];
  2769. }
  2770. function Mg(a, b, c) {
  2771. return a && a.length
  2772. ? ((b = c || b === ca ? 1 : vi(b)), ge(a, 0, b < 0 ? 0 : b))
  2773. : [];
  2774. }
  2775. function Ng(a, b, c) {
  2776. var d = null == a ? 0 : a.length;
  2777. return d
  2778. ? ((b = c || b === ca ? 1 : vi(b)), (b = d - b), ge(a, b < 0 ? 0 : b, d))
  2779. : [];
  2780. }
  2781. function Og(a, b) {
  2782. return a && a.length ? qe(a, tf(b, 3), !1, !0) : [];
  2783. }
  2784. function Pg(a, b) {
  2785. return a && a.length ? qe(a, tf(b, 3)) : [];
  2786. }
  2787. function Qg(a) {
  2788. return a && a.length ? ne(a) : [];
  2789. }
  2790. function Rg(a, b) {
  2791. return a && a.length ? ne(a, tf(b, 2)) : [];
  2792. }
  2793. function Sg(a, b) {
  2794. return (b = 'function' == typeof b ? b : ca), a && a.length ? ne(a, ca, b) : [];
  2795. }
  2796. function Tg(a) {
  2797. if (!a || !a.length) return [];
  2798. var b = 0;
  2799. return (
  2800. (a = k(a, function(a) {
  2801. if (Uh(a)) return (b = Sk(a.length, b)), !0;
  2802. })),
  2803. F(b, function(b) {
  2804. return n(a, A(b));
  2805. })
  2806. );
  2807. }
  2808. function Ug(a, b) {
  2809. if (!a || !a.length) return [];
  2810. var c = Tg(a);
  2811. return null == b
  2812. ? c
  2813. : n(c, function(a) {
  2814. return f(b, ca, a);
  2815. });
  2816. }
  2817. function Vg(a, b) {
  2818. return te(a || [], b || [], Cc);
  2819. }
  2820. function Wg(a, b) {
  2821. return te(a || [], b || [], ee);
  2822. }
  2823. function Xg(a) {
  2824. var b = c(a);
  2825. return (b.__chain__ = !0), b;
  2826. }
  2827. function Yg(a, b) {
  2828. return b(a), a;
  2829. }
  2830. function Zg(a, b) {
  2831. return b(a);
  2832. }
  2833. function $g() {
  2834. return Xg(this);
  2835. }
  2836. function _g() {
  2837. return new e(this.value(), this.__chain__);
  2838. }
  2839. function ah() {
  2840. this.__values__ === ca && (this.__values__ = ti(this.value()));
  2841. var a = this.__index__ >= this.__values__.length,
  2842. b = a ? ca : this.__values__[this.__index__++];
  2843. return { done: a, value: b };
  2844. }
  2845. function bh() {
  2846. return this;
  2847. }
  2848. function ch(a) {
  2849. for (var b, c = this; c instanceof d; ) {
  2850. var e = bg(c);
  2851. (e.__index__ = 0), (e.__values__ = ca), b ? (f.__wrapped__ = e) : (b = e);
  2852. var f = e;
  2853. c = c.__wrapped__;
  2854. }
  2855. return (f.__wrapped__ = a), b;
  2856. }
  2857. function dh() {
  2858. var a = this.__wrapped__;
  2859. if (a instanceof s) {
  2860. var b = a;
  2861. return (
  2862. this.__actions__.length && (b = new s(this)),
  2863. (b = b.reverse()),
  2864. b.__actions__.push({ func: Zg, args: [Bg], thisArg: ca }),
  2865. new e(b, this.__chain__)
  2866. );
  2867. }
  2868. return this.thru(Bg);
  2869. }
  2870. function eh() {
  2871. return re(this.__wrapped__, this.__actions__);
  2872. }
  2873. function fh(a, b, c) {
  2874. var d = pm(a) ? j : Rc;
  2875. return c && Hf(a, b, c) && (b = ca), d(a, tf(b, 3));
  2876. }
  2877. function gh(a, b) {
  2878. var c = pm(a) ? k : Yc;
  2879. return c(a, tf(b, 3));
  2880. }
  2881. function hh(a, b) {
  2882. return Zc(nh(a, b), 1);
  2883. }
  2884. function ih(a, b) {
  2885. return Zc(nh(a, b), Ga);
  2886. }
  2887. function jh(a, b, c) {
  2888. return (c = c === ca ? 1 : vi(c)), Zc(nh(a, b), c);
  2889. }
  2890. function kh(a, b) {
  2891. var c = pm(a) ? h : nl;
  2892. return c(a, tf(b, 3));
  2893. }
  2894. function lh(a, b) {
  2895. var c = pm(a) ? i : ol;
  2896. return c(a, tf(b, 3));
  2897. }
  2898. function mh(a, b, c, d) {
  2899. (a = Th(a) ? a : $i(a)), (c = c && !d ? vi(c) : 0);
  2900. var e = a.length;
  2901. return (
  2902. c < 0 && (c = Sk(e + c, 0)),
  2903. oi(a) ? c <= e && a.indexOf(b, c) > -1 : !!e && w(a, b, c) > -1
  2904. );
  2905. }
  2906. function nh(a, b) {
  2907. var c = pm(a) ? n : Od;
  2908. return c(a, tf(b, 3));
  2909. }
  2910. function oh(a, b, c, d) {
  2911. return null == a
  2912. ? []
  2913. : (pm(b) || (b = null == b ? [] : [b]),
  2914. (c = d ? ca : c),
  2915. pm(c) || (c = null == c ? [] : [c]),
  2916. Ud(a, b, c));
  2917. }
  2918. function ph(a, b, c) {
  2919. var d = pm(a) ? p : C,
  2920. e = arguments.length < 3;
  2921. return d(a, tf(b, 4), c, e, nl);
  2922. }
  2923. function qh(a, b, c) {
  2924. var d = pm(a) ? q : C,
  2925. e = arguments.length < 3;
  2926. return d(a, tf(b, 4), c, e, ol);
  2927. }
  2928. function rh(a, b) {
  2929. var c = pm(a) ? k : Yc;
  2930. return c(a, Fh(tf(b, 3)));
  2931. }
  2932. function sh(a) {
  2933. var b = pm(a) ? yc : ce;
  2934. return b(a);
  2935. }
  2936. function th(a, b, c) {
  2937. b = (c ? Hf(a, b, c) : b === ca) ? 1 : vi(b);
  2938. var d = pm(a) ? zc : de;
  2939. return d(a, b);
  2940. }
  2941. function uh(a) {
  2942. var b = pm(a) ? Ac : fe;
  2943. return b(a);
  2944. }
  2945. function vh(a) {
  2946. if (null == a) return 0;
  2947. if (Th(a)) return oi(a) ? Z(a) : a.length;
  2948. var b = zl(a);
  2949. return b == Xa || b == cb ? a.size : Ld(a).length;
  2950. }
  2951. function wh(a, b, c) {
  2952. var d = pm(a) ? r : he;
  2953. return c && Hf(a, b, c) && (b = ca), d(a, tf(b, 3));
  2954. }
  2955. function xh(a, b) {
  2956. if ('function' != typeof b) throw new jk(ga);
  2957. return (
  2958. (a = vi(a)),
  2959. function() {
  2960. if (--a < 1) return b.apply(this, arguments);
  2961. }
  2962. );
  2963. }
  2964. function yh(a, b, c) {
  2965. return (
  2966. (b = c ? ca : b),
  2967. (b = a && null == b ? a.length : b),
  2968. gf(a, wa, ca, ca, ca, ca, b)
  2969. );
  2970. }
  2971. function zh(a, b) {
  2972. var c;
  2973. if ('function' != typeof b) throw new jk(ga);
  2974. return (
  2975. (a = vi(a)),
  2976. function() {
  2977. return --a > 0 && (c = b.apply(this, arguments)), a <= 1 && (b = ca), c;
  2978. }
  2979. );
  2980. }
  2981. function Ah(a, b, c) {
  2982. b = c ? ca : b;
  2983. var d = gf(a, sa, ca, ca, ca, ca, ca, b);
  2984. return (d.placeholder = Ah.placeholder), d;
  2985. }
  2986. function Bh(a, b, c) {
  2987. b = c ? ca : b;
  2988. var d = gf(a, ta, ca, ca, ca, ca, ca, b);
  2989. return (d.placeholder = Bh.placeholder), d;
  2990. }
  2991. function Ch(a, b, c) {
  2992. function d(b) {
  2993. var c = m,
  2994. d = n;
  2995. return (m = n = ca), (s = b), (p = a.apply(d, c));
  2996. }
  2997. function e(a) {
  2998. return (s = a), (q = Cl(h, b)), t ? d(a) : p;
  2999. }
  3000. function f(a) {
  3001. var c = a - r,
  3002. d = a - s,
  3003. e = b - c;
  3004. return u ? Tk(e, o - d) : e;
  3005. }
  3006. function g(a) {
  3007. var c = a - r,
  3008. d = a - s;
  3009. return r === ca || c >= b || c < 0 || (u && d >= o);
  3010. }
  3011. function h() {
  3012. var a = dm();
  3013. return g(a) ? i(a) : void (q = Cl(h, f(a)));
  3014. }
  3015. function i(a) {
  3016. return (q = ca), v && m ? d(a) : ((m = n = ca), p);
  3017. }
  3018. function j() {
  3019. q !== ca && ul(q), (s = 0), (m = r = n = q = ca);
  3020. }
  3021. function k() {
  3022. return q === ca ? p : i(dm());
  3023. }
  3024. function l() {
  3025. var a = dm(),
  3026. c = g(a);
  3027. if (((m = arguments), (n = this), (r = a), c)) {
  3028. if (q === ca) return e(r);
  3029. if (u) return ul(q), (q = Cl(h, b)), d(r);
  3030. }
  3031. return q === ca && (q = Cl(h, b)), p;
  3032. }
  3033. var m,
  3034. n,
  3035. o,
  3036. p,
  3037. q,
  3038. r,
  3039. s = 0,
  3040. t = !1,
  3041. u = !1,
  3042. v = !0;
  3043. if ('function' != typeof a) throw new jk(ga);
  3044. return (
  3045. (b = xi(b) || 0),
  3046. di(c) &&
  3047. ((t = !!c.leading),
  3048. (u = 'maxWait' in c),
  3049. (o = u ? Sk(xi(c.maxWait) || 0, b) : o),
  3050. (v = 'trailing' in c ? !!c.trailing : v)),
  3051. (l.cancel = j),
  3052. (l.flush = k),
  3053. l
  3054. );
  3055. }
  3056. function Dh(a) {
  3057. return gf(a, ya);
  3058. }
  3059. function Eh(a, b) {
  3060. if ('function' != typeof a || (null != b && 'function' != typeof b))
  3061. throw new jk(ga);
  3062. var c = function() {
  3063. var d = arguments,
  3064. e = b ? b.apply(this, d) : d[0],
  3065. f = c.cache;
  3066. if (f.has(e)) return f.get(e);
  3067. var g = a.apply(this, d);
  3068. return (c.cache = f.set(e, g) || f), g;
  3069. };
  3070. return (c.cache = new (Eh.Cache || ic)()), c;
  3071. }
  3072. function Fh(a) {
  3073. if ('function' != typeof a) throw new jk(ga);
  3074. return function() {
  3075. var b = arguments;
  3076. switch (b.length) {
  3077. case 0:
  3078. return !a.call(this);
  3079. case 1:
  3080. return !a.call(this, b[0]);
  3081. case 2:
  3082. return !a.call(this, b[0], b[1]);
  3083. case 3:
  3084. return !a.call(this, b[0], b[1], b[2]);
  3085. }
  3086. return !a.apply(this, b);
  3087. };
  3088. }
  3089. function Gh(a) {
  3090. return zh(2, a);
  3091. }
  3092. function Hh(a, b) {
  3093. if ('function' != typeof a) throw new jk(ga);
  3094. return (b = b === ca ? b : vi(b)), be(a, b);
  3095. }
  3096. function Ih(a, b) {
  3097. if ('function' != typeof a) throw new jk(ga);
  3098. return (
  3099. (b = null == b ? 0 : Sk(vi(b), 0)),
  3100. be(function(c) {
  3101. var d = c[b],
  3102. e = xe(c, 0, b);
  3103. return d && o(e, d), f(a, this, e);
  3104. })
  3105. );
  3106. }
  3107. function Jh(a, b, c) {
  3108. var d = !0,
  3109. e = !0;
  3110. if ('function' != typeof a) throw new jk(ga);
  3111. return (
  3112. di(c) &&
  3113. ((d = 'leading' in c ? !!c.leading : d),
  3114. (e = 'trailing' in c ? !!c.trailing : e)),
  3115. Ch(a, b, { leading: d, maxWait: b, trailing: e })
  3116. );
  3117. }
  3118. function Kh(a) {
  3119. return yh(a, 1);
  3120. }
  3121. function Lh(a, b) {
  3122. return jm(ve(b), a);
  3123. }
  3124. function Mh() {
  3125. if (!arguments.length) return [];
  3126. var a = arguments[0];
  3127. return pm(a) ? a : [a];
  3128. }
  3129. function Nh(a) {
  3130. return Kc(a, ma);
  3131. }
  3132. function Oh(a, b) {
  3133. return (b = 'function' == typeof b ? b : ca), Kc(a, ma, b);
  3134. }
  3135. function Ph(a) {
  3136. return Kc(a, ka | ma);
  3137. }
  3138. function Qh(a, b) {
  3139. return (b = 'function' == typeof b ? b : ca), Kc(a, ka | ma, b);
  3140. }
  3141. function Rh(a, b) {
  3142. return null == b || Mc(a, b, Ni(b));
  3143. }
  3144. function Sh(a, b) {
  3145. return a === b || (a !== a && b !== b);
  3146. }
  3147. function Th(a) {
  3148. return null != a && ci(a.length) && !ai(a);
  3149. }
  3150. function Uh(a) {
  3151. return ei(a) && Th(a);
  3152. }
  3153. function Vh(a) {
  3154. return a === !0 || a === !1 || (ei(a) && hd(a) == Ra);
  3155. }
  3156. function Wh(a) {
  3157. return ei(a) && 1 === a.nodeType && !mi(a);
  3158. }
  3159. function Xh(a) {
  3160. if (null == a) return !0;
  3161. if (
  3162. Th(a) &&
  3163. (pm(a) ||
  3164. 'string' == typeof a ||
  3165. 'function' == typeof a.splice ||
  3166. rm(a) ||
  3167. wm(a) ||
  3168. om(a))
  3169. )
  3170. return !a.length;
  3171. var b = zl(a);
  3172. if (b == Xa || b == cb) return !a.size;
  3173. if (Mf(a)) return !Ld(a).length;
  3174. for (var c in a) if (pk.call(a, c)) return !1;
  3175. return !0;
  3176. }
  3177. function Yh(a, b) {
  3178. return Cd(a, b);
  3179. }
  3180. function Zh(a, b, c) {
  3181. c = 'function' == typeof c ? c : ca;
  3182. var d = c ? c(a, b) : ca;
  3183. return d === ca ? Cd(a, b, ca, c) : !!d;
  3184. }
  3185. function $h(a) {
  3186. if (!ei(a)) return !1;
  3187. var b = hd(a);
  3188. return (
  3189. b == Ua ||
  3190. b == Ta ||
  3191. ('string' == typeof a.message && 'string' == typeof a.name && !mi(a))
  3192. );
  3193. }
  3194. function _h(a) {
  3195. return 'number' == typeof a && Pk(a);
  3196. }
  3197. function ai(a) {
  3198. if (!di(a)) return !1;
  3199. var b = hd(a);
  3200. return b == Va || b == Wa || b == Qa || b == ab;
  3201. }
  3202. function bi(a) {
  3203. return 'number' == typeof a && a == vi(a);
  3204. }
  3205. function ci(a) {
  3206. return 'number' == typeof a && a > -1 && a % 1 == 0 && a <= Ha;
  3207. }
  3208. function di(a) {
  3209. var b = typeof a;
  3210. return null != a && ('object' == b || 'function' == b);
  3211. }
  3212. function ei(a) {
  3213. return null != a && 'object' == typeof a;
  3214. }
  3215. function fi(a, b) {
  3216. return a === b || Fd(a, b, vf(b));
  3217. }
  3218. function gi(a, b, c) {
  3219. return (c = 'function' == typeof c ? c : ca), Fd(a, b, vf(b), c);
  3220. }
  3221. function hi(a) {
  3222. return li(a) && a != +a;
  3223. }
  3224. function ii(a) {
  3225. if (Al(a)) throw new dk(fa);
  3226. return Gd(a);
  3227. }
  3228. function ji(a) {
  3229. return null === a;
  3230. }
  3231. function ki(a) {
  3232. return null == a;
  3233. }
  3234. function li(a) {
  3235. return 'number' == typeof a || (ei(a) && hd(a) == Ya);
  3236. }
  3237. function mi(a) {
  3238. if (!ei(a) || hd(a) != $a) return !1;
  3239. var b = Ak(a);
  3240. if (null === b) return !0;
  3241. var c = pk.call(b, 'constructor') && b.constructor;
  3242. return 'function' == typeof c && c instanceof c && ok.call(c) == tk;
  3243. }
  3244. function ni(a) {
  3245. return bi(a) && a >= -Ha && a <= Ha;
  3246. }
  3247. function oi(a) {
  3248. return 'string' == typeof a || (!pm(a) && ei(a) && hd(a) == db);
  3249. }
  3250. function pi(a) {
  3251. return 'symbol' == typeof a || (ei(a) && hd(a) == eb);
  3252. }
  3253. function qi(a) {
  3254. return a === ca;
  3255. }
  3256. function ri(a) {
  3257. return ei(a) && zl(a) == gb;
  3258. }
  3259. function si(a) {
  3260. return ei(a) && hd(a) == hb;
  3261. }
  3262. function ti(a) {
  3263. if (!a) return [];
  3264. if (Th(a)) return oi(a) ? $(a) : Ie(a);
  3265. if (Fk && a[Fk]) return R(a[Fk]());
  3266. var b = zl(a),
  3267. c = b == Xa ? S : b == cb ? V : $i;
  3268. return c(a);
  3269. }
  3270. function ui(a) {
  3271. if (!a) return 0 === a ? a : 0;
  3272. if (((a = xi(a)), a === Ga || a === -Ga)) {
  3273. var b = a < 0 ? -1 : 1;
  3274. return b * Ia;
  3275. }
  3276. return a === a ? a : 0;
  3277. }
  3278. function vi(a) {
  3279. var b = ui(a),
  3280. c = b % 1;
  3281. return b === b ? (c ? b - c : b) : 0;
  3282. }
  3283. function wi(a) {
  3284. return a ? Jc(vi(a), 0, Ka) : 0;
  3285. }
  3286. function xi(a) {
  3287. if ('number' == typeof a) return a;
  3288. if (pi(a)) return Ja;
  3289. if (di(a)) {
  3290. var b = 'function' == typeof a.valueOf ? a.valueOf() : a;
  3291. a = di(b) ? b + '' : b;
  3292. }
  3293. if ('string' != typeof a) return 0 === a ? a : +a;
  3294. a = a.replace(Ib, '');
  3295. var c = Tb.test(a);
  3296. return c || Vb.test(a) ? ad(a.slice(2), c ? 2 : 8) : Sb.test(a) ? Ja : +a;
  3297. }
  3298. function yi(a) {
  3299. return Je(a, Oi(a));
  3300. }
  3301. function zi(a) {
  3302. return a ? Jc(vi(a), -Ha, Ha) : 0 === a ? a : 0;
  3303. }
  3304. function Ai(a) {
  3305. return null == a ? '' : me(a);
  3306. }
  3307. function Bi(a, b) {
  3308. var c = ml(a);
  3309. return null == b ? c : Fc(c, b);
  3310. }
  3311. function Ci(a, b) {
  3312. return u(a, tf(b, 3), $c);
  3313. }
  3314. function Di(a, b) {
  3315. return u(a, tf(b, 3), bd);
  3316. }
  3317. function Ei(a, b) {
  3318. return null == a ? a : pl(a, tf(b, 3), Oi);
  3319. }
  3320. function Fi(a, b) {
  3321. return null == a ? a : ql(a, tf(b, 3), Oi);
  3322. }
  3323. function Gi(a, b) {
  3324. return a && $c(a, tf(b, 3));
  3325. }
  3326. function Hi(a, b) {
  3327. return a && bd(a, tf(b, 3));
  3328. }
  3329. function Ii(a) {
  3330. return null == a ? [] : cd(a, Ni(a));
  3331. }
  3332. function Ji(a) {
  3333. return null == a ? [] : cd(a, Oi(a));
  3334. }
  3335. function Ki(a, b, c) {
  3336. var d = null == a ? ca : ed(a, b);
  3337. return d === ca ? c : d;
  3338. }
  3339. function Li(a, b) {
  3340. return null != a && Af(a, b, pd);
  3341. }
  3342. function Mi(a, b) {
  3343. return null != a && Af(a, b, td);
  3344. }
  3345. function Ni(a) {
  3346. return Th(a) ? xc(a) : Ld(a);
  3347. }
  3348. function Oi(a) {
  3349. return Th(a) ? xc(a, !0) : Md(a);
  3350. }
  3351. function Pi(a, b) {
  3352. var c = {};
  3353. return (
  3354. (b = tf(b, 3)),
  3355. $c(a, function(a, d, e) {
  3356. Hc(c, b(a, d, e), a);
  3357. }),
  3358. c
  3359. );
  3360. }
  3361. function Qi(a, b) {
  3362. var c = {};
  3363. return (
  3364. (b = tf(b, 3)),
  3365. $c(a, function(a, d, e) {
  3366. Hc(c, d, b(a, d, e));
  3367. }),
  3368. c
  3369. );
  3370. }
  3371. function Ri(a, b) {
  3372. return Si(a, Fh(tf(b)));
  3373. }
  3374. function Si(a, b) {
  3375. if (null == a) return {};
  3376. var c = n(qf(a), function(a) {
  3377. return [a];
  3378. });
  3379. return (
  3380. (b = tf(b)),
  3381. Wd(a, c, function(a, c) {
  3382. return b(a, c[0]);
  3383. })
  3384. );
  3385. }
  3386. function Ti(a, b, c) {
  3387. b = we(b, a);
  3388. var d = -1,
  3389. e = b.length;
  3390. for (e || ((e = 1), (a = ca)); ++d < e; ) {
  3391. var f = null == a ? ca : a[$f(b[d])];
  3392. f === ca && ((d = e), (f = c)), (a = ai(f) ? f.call(a) : f);
  3393. }
  3394. return a;
  3395. }
  3396. function Ui(a, b, c) {
  3397. return null == a ? a : ee(a, b, c);
  3398. }
  3399. function Vi(a, b, c, d) {
  3400. return (d = 'function' == typeof d ? d : ca), null == a ? a : ee(a, b, c, d);
  3401. }
  3402. function Wi(a, b, c) {
  3403. var d = pm(a),
  3404. e = d || rm(a) || wm(a);
  3405. if (((b = tf(b, 4)), null == c)) {
  3406. var f = a && a.constructor;
  3407. c = e ? (d ? new f() : []) : di(a) && ai(f) ? ml(Ak(a)) : {};
  3408. }
  3409. return (
  3410. (e ? h : $c)(a, function(a, d, e) {
  3411. return b(c, a, d, e);
  3412. }),
  3413. c
  3414. );
  3415. }
  3416. function Xi(a, b) {
  3417. return null == a || oe(a, b);
  3418. }
  3419. function Yi(a, b, c) {
  3420. return null == a ? a : pe(a, b, ve(c));
  3421. }
  3422. function Zi(a, b, c, d) {
  3423. return (d = 'function' == typeof d ? d : ca), null == a ? a : pe(a, b, ve(c), d);
  3424. }
  3425. function $i(a) {
  3426. return null == a ? [] : I(a, Ni(a));
  3427. }
  3428. function _i(a) {
  3429. return null == a ? [] : I(a, Oi(a));
  3430. }
  3431. function aj(a, b, c) {
  3432. return (
  3433. c === ca && ((c = b), (b = ca)),
  3434. c !== ca && ((c = xi(c)), (c = c === c ? c : 0)),
  3435. b !== ca && ((b = xi(b)), (b = b === b ? b : 0)),
  3436. Jc(xi(a), b, c)
  3437. );
  3438. }
  3439. function bj(a, b, c) {
  3440. return (
  3441. (b = ui(b)),
  3442. c === ca ? ((c = b), (b = 0)) : (c = ui(c)),
  3443. (a = xi(a)),
  3444. vd(a, b, c)
  3445. );
  3446. }
  3447. function cj(a, b, c) {
  3448. if (
  3449. (c && 'boolean' != typeof c && Hf(a, b, c) && (b = c = ca),
  3450. c === ca &&
  3451. ('boolean' == typeof b
  3452. ? ((c = b), (b = ca))
  3453. : 'boolean' == typeof a && ((c = a), (a = ca))),
  3454. a === ca && b === ca
  3455. ? ((a = 0), (b = 1))
  3456. : ((a = ui(a)), b === ca ? ((b = a), (a = 0)) : (b = ui(b))),
  3457. a > b)
  3458. ) {
  3459. var d = a;
  3460. (a = b), (b = d);
  3461. }
  3462. if (c || a % 1 || b % 1) {
  3463. var e = Wk();
  3464. return Tk(a + e * (b - a + _c('1e-' + ((e + '').length - 1))), b);
  3465. }
  3466. return $d(a, b);
  3467. }
  3468. function dj(a) {
  3469. return Wm(Ai(a).toLowerCase());
  3470. }
  3471. function ej(a) {
  3472. return (a = Ai(a)), a && a.replace(Xb, qd).replace(Oc, '');
  3473. }
  3474. function fj(a, b, c) {
  3475. (a = Ai(a)), (b = me(b));
  3476. var d = a.length;
  3477. c = c === ca ? d : Jc(vi(c), 0, d);
  3478. var e = c;
  3479. return (c -= b.length), c >= 0 && a.slice(c, e) == b;
  3480. }
  3481. function gj(a) {
  3482. return (a = Ai(a)), a && zb.test(a) ? a.replace(xb, rd) : a;
  3483. }
  3484. function hj(a) {
  3485. return (a = Ai(a)), a && Hb.test(a) ? a.replace(Gb, '\\$&') : a;
  3486. }
  3487. function ij(a, b, c) {
  3488. (a = Ai(a)), (b = vi(b));
  3489. var d = b ? Z(a) : 0;
  3490. if (!b || d >= b) return a;
  3491. var e = (b - d) / 2;
  3492. return _e(Mk(e), c) + a + _e(Lk(e), c);
  3493. }
  3494. function jj(a, b, c) {
  3495. (a = Ai(a)), (b = vi(b));
  3496. var d = b ? Z(a) : 0;
  3497. return b && d < b ? a + _e(b - d, c) : a;
  3498. }
  3499. function kj(a, b, c) {
  3500. (a = Ai(a)), (b = vi(b));
  3501. var d = b ? Z(a) : 0;
  3502. return b && d < b ? _e(b - d, c) + a : a;
  3503. }
  3504. function lj(a, b, c) {
  3505. return c || null == b ? (b = 0) : b && (b = +b), Vk(Ai(a).replace(Jb, ''), b || 0);
  3506. }
  3507. function mj(a, b, c) {
  3508. return (b = (c ? Hf(a, b, c) : b === ca) ? 1 : vi(b)), ae(Ai(a), b);
  3509. }
  3510. function nj() {
  3511. var a = arguments,
  3512. b = Ai(a[0]);
  3513. return a.length < 3 ? b : b.replace(a[1], a[2]);
  3514. }
  3515. function oj(a, b, c) {
  3516. return (
  3517. c && 'number' != typeof c && Hf(a, b, c) && (b = c = ca),
  3518. (c = c === ca ? Ka : c >>> 0)
  3519. ? ((a = Ai(a)),
  3520. a &&
  3521. ('string' == typeof b || (null != b && !um(b))) &&
  3522. ((b = me(b)), !b && P(a))
  3523. ? xe($(a), 0, c)
  3524. : a.split(b, c))
  3525. : []
  3526. );
  3527. }
  3528. function pj(a, b, c) {
  3529. return (
  3530. (a = Ai(a)),
  3531. (c = null == c ? 0 : Jc(vi(c), 0, a.length)),
  3532. (b = me(b)),
  3533. a.slice(c, c + b.length) == b
  3534. );
  3535. }
  3536. function qj(a, b, d) {
  3537. var e = c.templateSettings;
  3538. d && Hf(a, b, d) && (b = ca), (a = Ai(a)), (b = Bm({}, b, e, hf));
  3539. var f,
  3540. g,
  3541. h = Bm({}, b.imports, e.imports, hf),
  3542. i = Ni(h),
  3543. j = I(h, i),
  3544. k = 0,
  3545. l = b.interpolate || Yb,
  3546. m = "__p += '",
  3547. n = hk(
  3548. (b.escape || Yb).source +
  3549. '|' +
  3550. l.source +
  3551. '|' +
  3552. (l === Cb ? Qb : Yb).source +
  3553. '|' +
  3554. (b.evaluate || Yb).source +
  3555. '|$',
  3556. 'g'
  3557. ),
  3558. o =
  3559. '//# sourceURL=' +
  3560. (pk.call(b, 'sourceURL')
  3561. ? (b.sourceURL + '').replace(/[\r\n]/g, ' ')
  3562. : 'lodash.templateSources[' + ++Uc + ']') +
  3563. '\n';
  3564. a.replace(n, function(b, c, d, e, h, i) {
  3565. return (
  3566. d || (d = e),
  3567. (m += a.slice(k, i).replace(Zb, N)),
  3568. c && ((f = !0), (m += "' +\n__e(" + c + ") +\n'")),
  3569. h && ((g = !0), (m += "';\n" + h + ";\n__p += '")),
  3570. d && (m += "' +\n((__t = (" + d + ")) == null ? '' : __t) +\n'"),
  3571. (k = i + b.length),
  3572. b
  3573. );
  3574. }),
  3575. (m += "';\n");
  3576. var p = pk.call(b, 'variable') && b.variable;
  3577. p || (m = 'with (obj) {\n' + m + '\n}\n'),
  3578. (m = (g ? m.replace(tb, '') : m).replace(ub, '$1').replace(vb, '$1;')),
  3579. (m =
  3580. 'function(' +
  3581. (p || 'obj') +
  3582. ') {\n' +
  3583. (p ? '' : 'obj || (obj = {});\n') +
  3584. "var __t, __p = ''" +
  3585. (f ? ', __e = _.escape' : '') +
  3586. (g
  3587. ? ", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n"
  3588. : ';\n') +
  3589. m +
  3590. 'return __p\n}');
  3591. var q = Xm(function() {
  3592. return ek(i, o + 'return ' + m).apply(ca, j);
  3593. });
  3594. if (((q.source = m), $h(q))) throw q;
  3595. return q;
  3596. }
  3597. function rj(a) {
  3598. return Ai(a).toLowerCase();
  3599. }
  3600. function sj(a) {
  3601. return Ai(a).toUpperCase();
  3602. }
  3603. function tj(a, b, c) {
  3604. if (((a = Ai(a)), a && (c || b === ca))) return a.replace(Ib, '');
  3605. if (!a || !(b = me(b))) return a;
  3606. var d = $(a),
  3607. e = $(b),
  3608. f = K(d, e),
  3609. g = L(d, e) + 1;
  3610. return xe(d, f, g).join('');
  3611. }
  3612. function uj(a, b, c) {
  3613. if (((a = Ai(a)), a && (c || b === ca))) return a.replace(Kb, '');
  3614. if (!a || !(b = me(b))) return a;
  3615. var d = $(a),
  3616. e = L(d, $(b)) + 1;
  3617. return xe(d, 0, e).join('');
  3618. }
  3619. function vj(a, b, c) {
  3620. if (((a = Ai(a)), a && (c || b === ca))) return a.replace(Jb, '');
  3621. if (!a || !(b = me(b))) return a;
  3622. var d = $(a),
  3623. e = K(d, $(b));
  3624. return xe(d, e).join('');
  3625. }
  3626. function wj(a, b) {
  3627. var c = za,
  3628. d = Aa;
  3629. if (di(b)) {
  3630. var e = 'separator' in b ? b.separator : e;
  3631. (c = 'length' in b ? vi(b.length) : c),
  3632. (d = 'omission' in b ? me(b.omission) : d);
  3633. }
  3634. a = Ai(a);
  3635. var f = a.length;
  3636. if (P(a)) {
  3637. var g = $(a);
  3638. f = g.length;
  3639. }
  3640. if (c >= f) return a;
  3641. var h = c - Z(d);
  3642. if (h < 1) return d;
  3643. var i = g ? xe(g, 0, h).join('') : a.slice(0, h);
  3644. if (e === ca) return i + d;
  3645. if ((g && (h += i.length - h), um(e))) {
  3646. if (a.slice(h).search(e)) {
  3647. var j,
  3648. k = i;
  3649. for (
  3650. e.global || (e = hk(e.source, Ai(Rb.exec(e)) + 'g')), e.lastIndex = 0;
  3651. (j = e.exec(k));
  3652. )
  3653. var l = j.index;
  3654. i = i.slice(0, l === ca ? h : l);
  3655. }
  3656. } else if (a.indexOf(me(e), h) != h) {
  3657. var m = i.lastIndexOf(e);
  3658. m > -1 && (i = i.slice(0, m));
  3659. }
  3660. return i + d;
  3661. }
  3662. function xj(a) {
  3663. return (a = Ai(a)), a && yb.test(a) ? a.replace(wb, sd) : a;
  3664. }
  3665. function yj(a, b, c) {
  3666. return (
  3667. (a = Ai(a)),
  3668. (b = c ? ca : b),
  3669. b === ca ? (Q(a) ? ba(a) : t(a)) : a.match(b) || []
  3670. );
  3671. }
  3672. function zj(a) {
  3673. var b = null == a ? 0 : a.length,
  3674. c = tf();
  3675. return (
  3676. (a = b
  3677. ? n(a, function(a) {
  3678. if ('function' != typeof a[1]) throw new jk(ga);
  3679. return [c(a[0]), a[1]];
  3680. })
  3681. : []),
  3682. be(function(c) {
  3683. for (var d = -1; ++d < b; ) {
  3684. var e = a[d];
  3685. if (f(e[0], this, c)) return f(e[1], this, c);
  3686. }
  3687. })
  3688. );
  3689. }
  3690. function Aj(a) {
  3691. return Lc(Kc(a, ka));
  3692. }
  3693. function Bj(a) {
  3694. return function() {
  3695. return a;
  3696. };
  3697. }
  3698. function Cj(a, b) {
  3699. return null == a || a !== a ? b : a;
  3700. }
  3701. function Dj(a) {
  3702. return a;
  3703. }
  3704. function Ej(a) {
  3705. return Kd('function' == typeof a ? a : Kc(a, ka));
  3706. }
  3707. function Fj(a) {
  3708. return Pd(Kc(a, ka));
  3709. }
  3710. function Gj(a, b) {
  3711. return Qd(a, Kc(b, ka));
  3712. }
  3713. function Hj(a, b, c) {
  3714. var d = Ni(b),
  3715. e = cd(b, d);
  3716. null != c ||
  3717. (di(b) && (e.length || !d.length)) ||
  3718. ((c = b), (b = a), (a = this), (e = cd(b, Ni(b))));
  3719. var f = !(di(c) && 'chain' in c && !c.chain),
  3720. g = ai(a);
  3721. return (
  3722. h(e, function(c) {
  3723. var d = b[c];
  3724. (a[c] = d),
  3725. g &&
  3726. (a.prototype[c] = function() {
  3727. var b = this.__chain__;
  3728. if (f || b) {
  3729. var c = a(this.__wrapped__),
  3730. e = (c.__actions__ = Ie(this.__actions__));
  3731. return (
  3732. e.push({ func: d, args: arguments, thisArg: a }),
  3733. (c.__chain__ = b),
  3734. c
  3735. );
  3736. }
  3737. return d.apply(a, o([this.value()], arguments));
  3738. });
  3739. }),
  3740. a
  3741. );
  3742. }
  3743. function Ij() {
  3744. return dd._ === this && (dd._ = uk), this;
  3745. }
  3746. function Jj() {}
  3747. function Kj(a) {
  3748. return (
  3749. (a = vi(a)),
  3750. be(function(b) {
  3751. return Td(b, a);
  3752. })
  3753. );
  3754. }
  3755. function Lj(a) {
  3756. return If(a) ? A($f(a)) : Xd(a);
  3757. }
  3758. function Mj(a) {
  3759. return function(b) {
  3760. return null == a ? ca : ed(a, b);
  3761. };
  3762. }
  3763. function Nj() {
  3764. return [];
  3765. }
  3766. function Oj() {
  3767. return !1;
  3768. }
  3769. function Pj() {
  3770. return {};
  3771. }
  3772. function Qj() {
  3773. return '';
  3774. }
  3775. function Rj() {
  3776. return !0;
  3777. }
  3778. function Sj(a, b) {
  3779. if (((a = vi(a)), a < 1 || a > Ha)) return [];
  3780. var c = Ka,
  3781. d = Tk(a, Ka);
  3782. (b = tf(b)), (a -= Ka);
  3783. for (var e = F(d, b); ++c < a; ) b(c);
  3784. return e;
  3785. }
  3786. function Tj(a) {
  3787. return pm(a) ? n(a, $f) : pi(a) ? [a] : Ie(El(Ai(a)));
  3788. }
  3789. function Uj(a) {
  3790. var b = ++qk;
  3791. return Ai(a) + b;
  3792. }
  3793. function Vj(a) {
  3794. return a && a.length ? Sc(a, Dj, id) : ca;
  3795. }
  3796. function Wj(a, b) {
  3797. return a && a.length ? Sc(a, tf(b, 2), id) : ca;
  3798. }
  3799. function Xj(a) {
  3800. return z(a, Dj);
  3801. }
  3802. function Yj(a, b) {
  3803. return z(a, tf(b, 2));
  3804. }
  3805. function Zj(a) {
  3806. return a && a.length ? Sc(a, Dj, Nd) : ca;
  3807. }
  3808. function $j(a, b) {
  3809. return a && a.length ? Sc(a, tf(b, 2), Nd) : ca;
  3810. }
  3811. function _j(a) {
  3812. return a && a.length ? E(a, Dj) : 0;
  3813. }
  3814. function ak(a, b) {
  3815. return a && a.length ? E(a, tf(b, 2)) : 0;
  3816. }
  3817. b = null == b ? dd : ud.defaults(dd.Object(), b, ud.pick(dd, Tc));
  3818. var bk = b.Array,
  3819. ck = b.Date,
  3820. dk = b.Error,
  3821. ek = b.Function,
  3822. fk = b.Math,
  3823. gk = b.Object,
  3824. hk = b.RegExp,
  3825. ik = b.String,
  3826. jk = b.TypeError,
  3827. kk = bk.prototype,
  3828. lk = ek.prototype,
  3829. mk = gk.prototype,
  3830. nk = b['__core-js_shared__'],
  3831. ok = lk.toString,
  3832. pk = mk.hasOwnProperty,
  3833. qk = 0,
  3834. rk = (function() {
  3835. var a = /[^.]+$/.exec((nk && nk.keys && nk.keys.IE_PROTO) || '');
  3836. return a ? 'Symbol(src)_1.' + a : '';
  3837. })(),
  3838. sk = mk.toString,
  3839. tk = ok.call(gk),
  3840. uk = dd._,
  3841. vk = hk(
  3842. '^' +
  3843. ok
  3844. .call(pk)
  3845. .replace(Gb, '\\$&')
  3846. .replace(
  3847. /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,
  3848. '$1.*?'
  3849. ) +
  3850. '$'
  3851. ),
  3852. wk = gd ? b.Buffer : ca,
  3853. xk = b.Symbol,
  3854. yk = b.Uint8Array,
  3855. zk = wk ? wk.allocUnsafe : ca,
  3856. Ak = T(gk.getPrototypeOf, gk),
  3857. Bk = gk.create,
  3858. Ck = mk.propertyIsEnumerable,
  3859. Dk = kk.splice,
  3860. Ek = xk ? xk.isConcatSpreadable : ca,
  3861. Fk = xk ? xk.iterator : ca,
  3862. Gk = xk ? xk.toStringTag : ca,
  3863. Hk = (function() {
  3864. try {
  3865. var a = wf(gk, 'defineProperty');
  3866. return a({}, '', {}), a;
  3867. } catch (a) {}
  3868. })(),
  3869. Ik = b.clearTimeout !== dd.clearTimeout && b.clearTimeout,
  3870. Jk = ck && ck.now !== dd.Date.now && ck.now,
  3871. Kk = b.setTimeout !== dd.setTimeout && b.setTimeout,
  3872. Lk = fk.ceil,
  3873. Mk = fk.floor,
  3874. Nk = gk.getOwnPropertySymbols,
  3875. Ok = wk ? wk.isBuffer : ca,
  3876. Pk = b.isFinite,
  3877. Qk = kk.join,
  3878. Rk = T(gk.keys, gk),
  3879. Sk = fk.max,
  3880. Tk = fk.min,
  3881. Uk = ck.now,
  3882. Vk = b.parseInt,
  3883. Wk = fk.random,
  3884. Xk = kk.reverse,
  3885. Yk = wf(b, 'DataView'),
  3886. Zk = wf(b, 'Map'),
  3887. $k = wf(b, 'Promise'),
  3888. _k = wf(b, 'Set'),
  3889. al = wf(b, 'WeakMap'),
  3890. bl = wf(gk, 'create'),
  3891. cl = al && new al(),
  3892. dl = {},
  3893. el = _f(Yk),
  3894. fl = _f(Zk),
  3895. gl = _f($k),
  3896. hl = _f(_k),
  3897. il = _f(al),
  3898. jl = xk ? xk.prototype : ca,
  3899. kl = jl ? jl.valueOf : ca,
  3900. ll = jl ? jl.toString : ca,
  3901. ml = (function() {
  3902. function a() {}
  3903. return function(b) {
  3904. if (!di(b)) return {};
  3905. if (Bk) return Bk(b);
  3906. a.prototype = b;
  3907. var c = new a();
  3908. return (a.prototype = ca), c;
  3909. };
  3910. })();
  3911. (c.templateSettings = {
  3912. escape: Ab,
  3913. evaluate: Bb,
  3914. interpolate: Cb,
  3915. variable: '',
  3916. imports: { _: c }
  3917. }),
  3918. (c.prototype = d.prototype),
  3919. (c.prototype.constructor = c),
  3920. (e.prototype = ml(d.prototype)),
  3921. (e.prototype.constructor = e),
  3922. (s.prototype = ml(d.prototype)),
  3923. (s.prototype.constructor = s),
  3924. (aa.prototype.clear = Ob),
  3925. (aa.prototype.delete = $b),
  3926. (aa.prototype.get = _b),
  3927. (aa.prototype.has = ac),
  3928. (aa.prototype.set = bc),
  3929. (cc.prototype.clear = dc),
  3930. (cc.prototype.delete = ec),
  3931. (cc.prototype.get = fc),
  3932. (cc.prototype.has = gc),
  3933. (cc.prototype.set = hc),
  3934. (ic.prototype.clear = jc),
  3935. (ic.prototype.delete = kc),
  3936. (ic.prototype.get = lc),
  3937. (ic.prototype.has = mc),
  3938. (ic.prototype.set = nc),
  3939. (oc.prototype.add = oc.prototype.push = pc),
  3940. (oc.prototype.has = qc),
  3941. (rc.prototype.clear = sc),
  3942. (rc.prototype.delete = tc),
  3943. (rc.prototype.get = uc),
  3944. (rc.prototype.has = vc),
  3945. (rc.prototype.set = wc);
  3946. var nl = Oe($c),
  3947. ol = Oe(bd, !0),
  3948. pl = Pe(),
  3949. ql = Pe(!0),
  3950. rl = cl
  3951. ? function(a, b) {
  3952. return cl.set(a, b), a;
  3953. }
  3954. : Dj,
  3955. sl = Hk
  3956. ? function(a, b) {
  3957. return Hk(a, 'toString', {
  3958. configurable: !0,
  3959. enumerable: !1,
  3960. value: Bj(b),
  3961. writable: !0
  3962. });
  3963. }
  3964. : Dj,
  3965. tl = be,
  3966. ul =
  3967. Ik ||
  3968. function(a) {
  3969. return dd.clearTimeout(a);
  3970. },
  3971. vl =
  3972. _k && 1 / V(new _k([, -0]))[1] == Ga
  3973. ? function(a) {
  3974. return new _k(a);
  3975. }
  3976. : Jj,
  3977. wl = cl
  3978. ? function(a) {
  3979. return cl.get(a);
  3980. }
  3981. : Jj,
  3982. xl = Nk
  3983. ? function(a) {
  3984. return null == a
  3985. ? []
  3986. : ((a = gk(a)),
  3987. k(Nk(a), function(b) {
  3988. return Ck.call(a, b);
  3989. }));
  3990. }
  3991. : Nj,
  3992. yl = Nk
  3993. ? function(a) {
  3994. for (var b = []; a; ) o(b, xl(a)), (a = Ak(a));
  3995. return b;
  3996. }
  3997. : Nj,
  3998. zl = hd;
  3999. ((Yk && zl(new Yk(new ArrayBuffer(1))) != jb) ||
  4000. (Zk && zl(new Zk()) != Xa) ||
  4001. ($k && zl($k.resolve()) != _a) ||
  4002. (_k && zl(new _k()) != cb) ||
  4003. (al && zl(new al()) != gb)) &&
  4004. (zl = function(a) {
  4005. var b = hd(a),
  4006. c = b == $a ? a.constructor : ca,
  4007. d = c ? _f(c) : '';
  4008. if (d)
  4009. switch (d) {
  4010. case el:
  4011. return jb;
  4012. case fl:
  4013. return Xa;
  4014. case gl:
  4015. return _a;
  4016. case hl:
  4017. return cb;
  4018. case il:
  4019. return gb;
  4020. }
  4021. return b;
  4022. });
  4023. var Al = nk ? ai : Oj,
  4024. Bl = Yf(rl),
  4025. Cl =
  4026. Kk ||
  4027. function(a, b) {
  4028. return dd.setTimeout(a, b);
  4029. },
  4030. Dl = Yf(sl),
  4031. El = Pf(function(a) {
  4032. var b = [];
  4033. return (
  4034. 46 === a.charCodeAt(0) && b.push(''),
  4035. a.replace(Fb, function(a, c, d, e) {
  4036. b.push(d ? e.replace(Pb, '$1') : c || a);
  4037. }),
  4038. b
  4039. );
  4040. }),
  4041. Fl = be(function(a, b) {
  4042. return Uh(a) ? Qc(a, Zc(b, 1, Uh, !0)) : [];
  4043. }),
  4044. Gl = be(function(a, b) {
  4045. var c = ug(b);
  4046. return Uh(c) && (c = ca), Uh(a) ? Qc(a, Zc(b, 1, Uh, !0), tf(c, 2)) : [];
  4047. }),
  4048. Hl = be(function(a, b) {
  4049. var c = ug(b);
  4050. return Uh(c) && (c = ca), Uh(a) ? Qc(a, Zc(b, 1, Uh, !0), ca, c) : [];
  4051. }),
  4052. Il = be(function(a) {
  4053. var b = n(a, ue);
  4054. return b.length && b[0] === a[0] ? wd(b) : [];
  4055. }),
  4056. Jl = be(function(a) {
  4057. var b = ug(a),
  4058. c = n(a, ue);
  4059. return (
  4060. b === ug(c) ? (b = ca) : c.pop(),
  4061. c.length && c[0] === a[0] ? wd(c, tf(b, 2)) : []
  4062. );
  4063. }),
  4064. Kl = be(function(a) {
  4065. var b = ug(a),
  4066. c = n(a, ue);
  4067. return (
  4068. (b = 'function' == typeof b ? b : ca),
  4069. b && c.pop(),
  4070. c.length && c[0] === a[0] ? wd(c, ca, b) : []
  4071. );
  4072. }),
  4073. Ll = be(xg),
  4074. Ml = of(function(a, b) {
  4075. var c = null == a ? 0 : a.length,
  4076. d = Ic(a, b);
  4077. return (
  4078. Zd(
  4079. a,
  4080. n(b, function(a) {
  4081. return Gf(a, c) ? +a : a;
  4082. }).sort(Ee)
  4083. ),
  4084. d
  4085. );
  4086. }),
  4087. Nl = be(function(a) {
  4088. return ne(Zc(a, 1, Uh, !0));
  4089. }),
  4090. Ol = be(function(a) {
  4091. var b = ug(a);
  4092. return Uh(b) && (b = ca), ne(Zc(a, 1, Uh, !0), tf(b, 2));
  4093. }),
  4094. Pl = be(function(a) {
  4095. var b = ug(a);
  4096. return (b = 'function' == typeof b ? b : ca), ne(Zc(a, 1, Uh, !0), ca, b);
  4097. }),
  4098. Ql = be(function(a, b) {
  4099. return Uh(a) ? Qc(a, b) : [];
  4100. }),
  4101. Rl = be(function(a) {
  4102. return se(k(a, Uh));
  4103. }),
  4104. Sl = be(function(a) {
  4105. var b = ug(a);
  4106. return Uh(b) && (b = ca), se(k(a, Uh), tf(b, 2));
  4107. }),
  4108. Tl = be(function(a) {
  4109. var b = ug(a);
  4110. return (b = 'function' == typeof b ? b : ca), se(k(a, Uh), ca, b);
  4111. }),
  4112. Ul = be(Tg),
  4113. Vl = be(function(a) {
  4114. var b = a.length,
  4115. c = b > 1 ? a[b - 1] : ca;
  4116. return (c = 'function' == typeof c ? (a.pop(), c) : ca), Ug(a, c);
  4117. }),
  4118. Wl = of(function(a) {
  4119. var b = a.length,
  4120. c = b ? a[0] : 0,
  4121. d = this.__wrapped__,
  4122. f = function(b) {
  4123. return Ic(b, a);
  4124. };
  4125. return !(b > 1 || this.__actions__.length) && d instanceof s && Gf(c)
  4126. ? ((d = d.slice(c, +c + (b ? 1 : 0))),
  4127. d.__actions__.push({ func: Zg, args: [f], thisArg: ca }),
  4128. new e(d, this.__chain__).thru(function(a) {
  4129. return b && !a.length && a.push(ca), a;
  4130. }))
  4131. : this.thru(f);
  4132. }),
  4133. Xl = Me(function(a, b, c) {
  4134. pk.call(a, c) ? ++a[c] : Hc(a, c, 1);
  4135. }),
  4136. Yl = Ve(kg),
  4137. Zl = Ve(lg),
  4138. $l = Me(function(a, b, c) {
  4139. pk.call(a, c) ? a[c].push(b) : Hc(a, c, [b]);
  4140. }),
  4141. _l = be(function(a, b, c) {
  4142. var d = -1,
  4143. e = 'function' == typeof b,
  4144. g = Th(a) ? bk(a.length) : [];
  4145. return (
  4146. nl(a, function(a) {
  4147. g[++d] = e ? f(b, a, c) : yd(a, b, c);
  4148. }),
  4149. g
  4150. );
  4151. }),
  4152. am = Me(function(a, b, c) {
  4153. Hc(a, c, b);
  4154. }),
  4155. bm = Me(
  4156. function(a, b, c) {
  4157. a[c ? 0 : 1].push(b);
  4158. },
  4159. function() {
  4160. return [[], []];
  4161. }
  4162. ),
  4163. cm = be(function(a, b) {
  4164. if (null == a) return [];
  4165. var c = b.length;
  4166. return (
  4167. c > 1 && Hf(a, b[0], b[1])
  4168. ? (b = [])
  4169. : c > 2 && Hf(b[0], b[1], b[2]) && (b = [b[0]]),
  4170. Ud(a, Zc(b, 1), [])
  4171. );
  4172. }),
  4173. dm =
  4174. Jk ||
  4175. function() {
  4176. return dd.Date.now();
  4177. },
  4178. em = be(function(a, b, c) {
  4179. var d = pa;
  4180. if (c.length) {
  4181. var e = U(c, sf(em));
  4182. d |= ua;
  4183. }
  4184. return gf(a, d, b, c, e);
  4185. }),
  4186. fm = be(function(a, b, c) {
  4187. var d = pa | qa;
  4188. if (c.length) {
  4189. var e = U(c, sf(fm));
  4190. d |= ua;
  4191. }
  4192. return gf(b, d, a, c, e);
  4193. }),
  4194. gm = be(function(a, b) {
  4195. return Pc(a, 1, b);
  4196. }),
  4197. hm = be(function(a, b, c) {
  4198. return Pc(a, xi(b) || 0, c);
  4199. });
  4200. Eh.Cache = ic;
  4201. var im = tl(function(a, b) {
  4202. b = 1 == b.length && pm(b[0]) ? n(b[0], H(tf())) : n(Zc(b, 1), H(tf()));
  4203. var c = b.length;
  4204. return be(function(d) {
  4205. for (var e = -1, g = Tk(d.length, c); ++e < g; )
  4206. d[e] = b[e].call(this, d[e]);
  4207. return f(a, this, d);
  4208. });
  4209. }),
  4210. jm = be(function(a, b) {
  4211. var c = U(b, sf(jm));
  4212. return gf(a, ua, ca, b, c);
  4213. }),
  4214. km = be(function(a, b) {
  4215. var c = U(b, sf(km));
  4216. return gf(a, va, ca, b, c);
  4217. }),
  4218. lm = of(function(a, b) {
  4219. return gf(a, xa, ca, ca, ca, b);
  4220. }),
  4221. mm = cf(id),
  4222. nm = cf(function(a, b) {
  4223. return a >= b;
  4224. }),
  4225. om = zd(
  4226. (function() {
  4227. return arguments;
  4228. })()
  4229. )
  4230. ? zd
  4231. : function(a) {
  4232. return ei(a) && pk.call(a, 'callee') && !Ck.call(a, 'callee');
  4233. },
  4234. pm = bk.isArray,
  4235. qm = jd ? H(jd) : Ad,
  4236. rm = Ok || Oj,
  4237. sm = kd ? H(kd) : Bd,
  4238. tm = ld ? H(ld) : Ed,
  4239. um = md ? H(md) : Hd,
  4240. vm = nd ? H(nd) : Id,
  4241. wm = od ? H(od) : Jd,
  4242. xm = cf(Nd),
  4243. ym = cf(function(a, b) {
  4244. return a <= b;
  4245. }),
  4246. zm = Ne(function(a, b) {
  4247. if (Mf(b) || Th(b)) return void Je(b, Ni(b), a);
  4248. for (var c in b) pk.call(b, c) && Cc(a, c, b[c]);
  4249. }),
  4250. Am = Ne(function(a, b) {
  4251. Je(b, Oi(b), a);
  4252. }),
  4253. Bm = Ne(function(a, b, c, d) {
  4254. Je(b, Oi(b), a, d);
  4255. }),
  4256. Cm = Ne(function(a, b, c, d) {
  4257. Je(b, Ni(b), a, d);
  4258. }),
  4259. Dm = of(Ic),
  4260. Em = be(function(a, b) {
  4261. a = gk(a);
  4262. var c = -1,
  4263. d = b.length,
  4264. e = d > 2 ? b[2] : ca;
  4265. for (e && Hf(b[0], b[1], e) && (d = 1); ++c < d; )
  4266. for (var f = b[c], g = Oi(f), h = -1, i = g.length; ++h < i; ) {
  4267. var j = g[h],
  4268. k = a[j];
  4269. (k === ca || (Sh(k, mk[j]) && !pk.call(a, j))) && (a[j] = f[j]);
  4270. }
  4271. return a;
  4272. }),
  4273. Fm = be(function(a) {
  4274. return a.push(ca, jf), f(Km, ca, a);
  4275. }),
  4276. Gm = Ye(function(a, b, c) {
  4277. null != b && 'function' != typeof b.toString && (b = sk.call(b)), (a[b] = c);
  4278. }, Bj(Dj)),
  4279. Hm = Ye(function(a, b, c) {
  4280. null != b && 'function' != typeof b.toString && (b = sk.call(b)),
  4281. pk.call(a, b) ? a[b].push(c) : (a[b] = [c]);
  4282. }, tf),
  4283. Im = be(yd),
  4284. Jm = Ne(function(a, b, c) {
  4285. Rd(a, b, c);
  4286. }),
  4287. Km = Ne(function(a, b, c, d) {
  4288. Rd(a, b, c, d);
  4289. }),
  4290. Lm = of(function(a, b) {
  4291. var c = {};
  4292. if (null == a) return c;
  4293. var d = !1;
  4294. (b = n(b, function(b) {
  4295. return (b = we(b, a)), d || (d = b.length > 1), b;
  4296. })),
  4297. Je(a, qf(a), c),
  4298. d && (c = Kc(c, ka | la | ma, kf));
  4299. for (var e = b.length; e--; ) oe(c, b[e]);
  4300. return c;
  4301. }),
  4302. Mm = of(function(a, b) {
  4303. return null == a ? {} : Vd(a, b);
  4304. }),
  4305. Nm = ff(Ni),
  4306. Om = ff(Oi),
  4307. Pm = Se(function(a, b, c) {
  4308. return (b = b.toLowerCase()), a + (c ? dj(b) : b);
  4309. }),
  4310. Qm = Se(function(a, b, c) {
  4311. return a + (c ? '-' : '') + b.toLowerCase();
  4312. }),
  4313. Rm = Se(function(a, b, c) {
  4314. return a + (c ? ' ' : '') + b.toLowerCase();
  4315. }),
  4316. Sm = Re('toLowerCase'),
  4317. Tm = Se(function(a, b, c) {
  4318. return a + (c ? '_' : '') + b.toLowerCase();
  4319. }),
  4320. Um = Se(function(a, b, c) {
  4321. return a + (c ? ' ' : '') + Wm(b);
  4322. }),
  4323. Vm = Se(function(a, b, c) {
  4324. return a + (c ? ' ' : '') + b.toUpperCase();
  4325. }),
  4326. Wm = Re('toUpperCase'),
  4327. Xm = be(function(a, b) {
  4328. try {
  4329. return f(a, ca, b);
  4330. } catch (a) {
  4331. return $h(a) ? a : new dk(a);
  4332. }
  4333. }),
  4334. Ym = of(function(a, b) {
  4335. return (
  4336. h(b, function(b) {
  4337. (b = $f(b)), Hc(a, b, em(a[b], a));
  4338. }),
  4339. a
  4340. );
  4341. }),
  4342. Zm = We(),
  4343. $m = We(!0),
  4344. _m = be(function(a, b) {
  4345. return function(c) {
  4346. return yd(c, a, b);
  4347. };
  4348. }),
  4349. an = be(function(a, b) {
  4350. return function(c) {
  4351. return yd(a, c, b);
  4352. };
  4353. }),
  4354. bn = $e(n),
  4355. cn = $e(j),
  4356. dn = $e(r),
  4357. en = bf(),
  4358. fn = bf(!0),
  4359. gn = Ze(function(a, b) {
  4360. return a + b;
  4361. }, 0),
  4362. hn = ef('ceil'),
  4363. jn = Ze(function(a, b) {
  4364. return a / b;
  4365. }, 1),
  4366. kn = ef('floor'),
  4367. ln = Ze(function(a, b) {
  4368. return a * b;
  4369. }, 1),
  4370. mn = ef('round'),
  4371. nn = Ze(function(a, b) {
  4372. return a - b;
  4373. }, 0);
  4374. return (
  4375. (c.after = xh),
  4376. (c.ary = yh),
  4377. (c.assign = zm),
  4378. (c.assignIn = Am),
  4379. (c.assignInWith = Bm),
  4380. (c.assignWith = Cm),
  4381. (c.at = Dm),
  4382. (c.before = zh),
  4383. (c.bind = em),
  4384. (c.bindAll = Ym),
  4385. (c.bindKey = fm),
  4386. (c.castArray = Mh),
  4387. (c.chain = Xg),
  4388. (c.chunk = cg),
  4389. (c.compact = dg),
  4390. (c.concat = eg),
  4391. (c.cond = zj),
  4392. (c.conforms = Aj),
  4393. (c.constant = Bj),
  4394. (c.countBy = Xl),
  4395. (c.create = Bi),
  4396. (c.curry = Ah),
  4397. (c.curryRight = Bh),
  4398. (c.debounce = Ch),
  4399. (c.defaults = Em),
  4400. (c.defaultsDeep = Fm),
  4401. (c.defer = gm),
  4402. (c.delay = hm),
  4403. (c.difference = Fl),
  4404. (c.differenceBy = Gl),
  4405. (c.differenceWith = Hl),
  4406. (c.drop = fg),
  4407. (c.dropRight = gg),
  4408. (c.dropRightWhile = hg),
  4409. (c.dropWhile = ig),
  4410. (c.fill = jg),
  4411. (c.filter = gh),
  4412. (c.flatMap = hh),
  4413. (c.flatMapDeep = ih),
  4414. (c.flatMapDepth = jh),
  4415. (c.flatten = mg),
  4416. (c.flattenDeep = ng),
  4417. (c.flattenDepth = og),
  4418. (c.flip = Dh),
  4419. (c.flow = Zm),
  4420. (c.flowRight = $m),
  4421. (c.fromPairs = pg),
  4422. (c.functions = Ii),
  4423. (c.functionsIn = Ji),
  4424. (c.groupBy = $l),
  4425. (c.initial = sg),
  4426. (c.intersection = Il),
  4427. (c.intersectionBy = Jl),
  4428. (c.intersectionWith = Kl),
  4429. (c.invert = Gm),
  4430. (c.invertBy = Hm),
  4431. (c.invokeMap = _l),
  4432. (c.iteratee = Ej),
  4433. (c.keyBy = am),
  4434. (c.keys = Ni),
  4435. (c.keysIn = Oi),
  4436. (c.map = nh),
  4437. (c.mapKeys = Pi),
  4438. (c.mapValues = Qi),
  4439. (c.matches = Fj),
  4440. (c.matchesProperty = Gj),
  4441. (c.memoize = Eh),
  4442. (c.merge = Jm),
  4443. (c.mergeWith = Km),
  4444. (c.method = _m),
  4445. (c.methodOf = an),
  4446. (c.mixin = Hj),
  4447. (c.negate = Fh),
  4448. (c.nthArg = Kj),
  4449. (c.omit = Lm),
  4450. (c.omitBy = Ri),
  4451. (c.once = Gh),
  4452. (c.orderBy = oh),
  4453. (c.over = bn),
  4454. (c.overArgs = im),
  4455. (c.overEvery = cn),
  4456. (c.overSome = dn),
  4457. (c.partial = jm),
  4458. (c.partialRight = km),
  4459. (c.partition = bm),
  4460. (c.pick = Mm),
  4461. (c.pickBy = Si),
  4462. (c.property = Lj),
  4463. (c.propertyOf = Mj),
  4464. (c.pull = Ll),
  4465. (c.pullAll = xg),
  4466. (c.pullAllBy = yg),
  4467. (c.pullAllWith = zg),
  4468. (c.pullAt = Ml),
  4469. (c.range = en),
  4470. (c.rangeRight = fn),
  4471. (c.rearg = lm),
  4472. (c.reject = rh),
  4473. (c.remove = Ag),
  4474. (c.rest = Hh),
  4475. (c.reverse = Bg),
  4476. (c.sampleSize = th),
  4477. (c.set = Ui),
  4478. (c.setWith = Vi),
  4479. (c.shuffle = uh),
  4480. (c.slice = Cg),
  4481. (c.sortBy = cm),
  4482. (c.sortedUniq = Jg),
  4483. (c.sortedUniqBy = Kg),
  4484. (c.split = oj),
  4485. (c.spread = Ih),
  4486. (c.tail = Lg),
  4487. (c.take = Mg),
  4488. (c.takeRight = Ng),
  4489. (c.takeRightWhile = Og),
  4490. (c.takeWhile = Pg),
  4491. (c.tap = Yg),
  4492. (c.throttle = Jh),
  4493. (c.thru = Zg),
  4494. (c.toArray = ti),
  4495. (c.toPairs = Nm),
  4496. (c.toPairsIn = Om),
  4497. (c.toPath = Tj),
  4498. (c.toPlainObject = yi),
  4499. (c.transform = Wi),
  4500. (c.unary = Kh),
  4501. (c.union = Nl),
  4502. (c.unionBy = Ol),
  4503. (c.unionWith = Pl),
  4504. (c.uniq = Qg),
  4505. (c.uniqBy = Rg),
  4506. (c.uniqWith = Sg),
  4507. (c.unset = Xi),
  4508. (c.unzip = Tg),
  4509. (c.unzipWith = Ug),
  4510. (c.update = Yi),
  4511. (c.updateWith = Zi),
  4512. (c.values = $i),
  4513. (c.valuesIn = _i),
  4514. (c.without = Ql),
  4515. (c.words = yj),
  4516. (c.wrap = Lh),
  4517. (c.xor = Rl),
  4518. (c.xorBy = Sl),
  4519. (c.xorWith = Tl),
  4520. (c.zip = Ul),
  4521. (c.zipObject = Vg),
  4522. (c.zipObjectDeep = Wg),
  4523. (c.zipWith = Vl),
  4524. (c.entries = Nm),
  4525. (c.entriesIn = Om),
  4526. (c.extend = Am),
  4527. (c.extendWith = Bm),
  4528. Hj(c, c),
  4529. (c.add = gn),
  4530. (c.attempt = Xm),
  4531. (c.camelCase = Pm),
  4532. (c.capitalize = dj),
  4533. (c.ceil = hn),
  4534. (c.clamp = aj),
  4535. (c.clone = Nh),
  4536. (c.cloneDeep = Ph),
  4537. (c.cloneDeepWith = Qh),
  4538. (c.cloneWith = Oh),
  4539. (c.conformsTo = Rh),
  4540. (c.deburr = ej),
  4541. (c.defaultTo = Cj),
  4542. (c.divide = jn),
  4543. (c.endsWith = fj),
  4544. (c.eq = Sh),
  4545. (c.escape = gj),
  4546. (c.escapeRegExp = hj),
  4547. (c.every = fh),
  4548. (c.find = Yl),
  4549. (c.findIndex = kg),
  4550. (c.findKey = Ci),
  4551. (c.findLast = Zl),
  4552. (c.findLastIndex = lg),
  4553. (c.findLastKey = Di),
  4554. (c.floor = kn),
  4555. (c.forEach = kh),
  4556. (c.forEachRight = lh),
  4557. (c.forIn = Ei),
  4558. (c.forInRight = Fi),
  4559. (c.forOwn = Gi),
  4560. (c.forOwnRight = Hi),
  4561. (c.get = Ki),
  4562. (c.gt = mm),
  4563. (c.gte = nm),
  4564. (c.has = Li),
  4565. (c.hasIn = Mi),
  4566. (c.head = qg),
  4567. (c.identity = Dj),
  4568. (c.includes = mh),
  4569. (c.indexOf = rg),
  4570. (c.inRange = bj),
  4571. (c.invoke = Im),
  4572. (c.isArguments = om),
  4573. (c.isArray = pm),
  4574. (c.isArrayBuffer = qm),
  4575. (c.isArrayLike = Th),
  4576. (c.isArrayLikeObject = Uh),
  4577. (c.isBoolean = Vh),
  4578. (c.isBuffer = rm),
  4579. (c.isDate = sm),
  4580. (c.isElement = Wh),
  4581. (c.isEmpty = Xh),
  4582. (c.isEqual = Yh),
  4583. (c.isEqualWith = Zh),
  4584. (c.isError = $h),
  4585. (c.isFinite = _h),
  4586. (c.isFunction = ai),
  4587. (c.isInteger = bi),
  4588. (c.isLength = ci),
  4589. (c.isMap = tm),
  4590. (c.isMatch = fi),
  4591. (c.isMatchWith = gi),
  4592. (c.isNaN = hi),
  4593. (c.isNative = ii),
  4594. (c.isNil = ki),
  4595. (c.isNull = ji),
  4596. (c.isNumber = li),
  4597. (c.isObject = di),
  4598. (c.isObjectLike = ei),
  4599. (c.isPlainObject = mi),
  4600. (c.isRegExp = um),
  4601. (c.isSafeInteger = ni),
  4602. (c.isSet = vm),
  4603. (c.isString = oi),
  4604. (c.isSymbol = pi),
  4605. (c.isTypedArray = wm),
  4606. (c.isUndefined = qi),
  4607. (c.isWeakMap = ri),
  4608. (c.isWeakSet = si),
  4609. (c.join = tg),
  4610. (c.kebabCase = Qm),
  4611. (c.last = ug),
  4612. (c.lastIndexOf = vg),
  4613. (c.lowerCase = Rm),
  4614. (c.lowerFirst = Sm),
  4615. (c.lt = xm),
  4616. (c.lte = ym),
  4617. (c.max = Vj),
  4618. (c.maxBy = Wj),
  4619. (c.mean = Xj),
  4620. (c.meanBy = Yj),
  4621. (c.min = Zj),
  4622. (c.minBy = $j),
  4623. (c.stubArray = Nj),
  4624. (c.stubFalse = Oj),
  4625. (c.stubObject = Pj),
  4626. (c.stubString = Qj),
  4627. (c.stubTrue = Rj),
  4628. (c.multiply = ln),
  4629. (c.nth = wg),
  4630. (c.noConflict = Ij),
  4631. (c.noop = Jj),
  4632. (c.now = dm),
  4633. (c.pad = ij),
  4634. (c.padEnd = jj),
  4635. (c.padStart = kj),
  4636. (c.parseInt = lj),
  4637. (c.random = cj),
  4638. (c.reduce = ph),
  4639. (c.reduceRight = qh),
  4640. (c.repeat = mj),
  4641. (c.replace = nj),
  4642. (c.result = Ti),
  4643. (c.round = mn),
  4644. (c.runInContext = a),
  4645. (c.sample = sh),
  4646. (c.size = vh),
  4647. (c.snakeCase = Tm),
  4648. (c.some = wh),
  4649. (c.sortedIndex = Dg),
  4650. (c.sortedIndexBy = Eg),
  4651. (c.sortedIndexOf = Fg),
  4652. (c.sortedLastIndex = Gg),
  4653. (c.sortedLastIndexBy = Hg),
  4654. (c.sortedLastIndexOf = Ig),
  4655. (c.startCase = Um),
  4656. (c.startsWith = pj),
  4657. (c.subtract = nn),
  4658. (c.sum = _j),
  4659. (c.sumBy = ak),
  4660. (c.template = qj),
  4661. (c.times = Sj),
  4662. (c.toFinite = ui),
  4663. (c.toInteger = vi),
  4664. (c.toLength = wi),
  4665. (c.toLower = rj),
  4666. (c.toNumber = xi),
  4667. (c.toSafeInteger = zi),
  4668. (c.toString = Ai),
  4669. (c.toUpper = sj),
  4670. (c.trim = tj),
  4671. (c.trimEnd = uj),
  4672. (c.trimStart = vj),
  4673. (c.truncate = wj),
  4674. (c.unescape = xj),
  4675. (c.uniqueId = Uj),
  4676. (c.upperCase = Vm),
  4677. (c.upperFirst = Wm),
  4678. (c.each = kh),
  4679. (c.eachRight = lh),
  4680. (c.first = qg),
  4681. Hj(
  4682. c,
  4683. (function() {
  4684. var a = {};
  4685. return (
  4686. $c(c, function(b, d) {
  4687. pk.call(c.prototype, d) || (a[d] = b);
  4688. }),
  4689. a
  4690. );
  4691. })(),
  4692. { chain: !1 }
  4693. ),
  4694. (c.VERSION = da),
  4695. h(['bind', 'bindKey', 'curry', 'curryRight', 'partial', 'partialRight'], function(
  4696. a
  4697. ) {
  4698. c[a].placeholder = c;
  4699. }),
  4700. h(['drop', 'take'], function(a, b) {
  4701. (s.prototype[a] = function(c) {
  4702. c = c === ca ? 1 : Sk(vi(c), 0);
  4703. var d = this.__filtered__ && !b ? new s(this) : this.clone();
  4704. return (
  4705. d.__filtered__
  4706. ? (d.__takeCount__ = Tk(c, d.__takeCount__))
  4707. : d.__views__.push({
  4708. size: Tk(c, Ka),
  4709. type: a + (d.__dir__ < 0 ? 'Right' : '')
  4710. }),
  4711. d
  4712. );
  4713. }),
  4714. (s.prototype[a + 'Right'] = function(b) {
  4715. return this.reverse()
  4716. [a](b)
  4717. .reverse();
  4718. });
  4719. }),
  4720. h(['filter', 'map', 'takeWhile'], function(a, b) {
  4721. var c = b + 1,
  4722. d = c == Da || c == Fa;
  4723. s.prototype[a] = function(a) {
  4724. var b = this.clone();
  4725. return (
  4726. b.__iteratees__.push({ iteratee: tf(a, 3), type: c }),
  4727. (b.__filtered__ = b.__filtered__ || d),
  4728. b
  4729. );
  4730. };
  4731. }),
  4732. h(['head', 'last'], function(a, b) {
  4733. var c = 'take' + (b ? 'Right' : '');
  4734. s.prototype[a] = function() {
  4735. return this[c](1).value()[0];
  4736. };
  4737. }),
  4738. h(['initial', 'tail'], function(a, b) {
  4739. var c = 'drop' + (b ? '' : 'Right');
  4740. s.prototype[a] = function() {
  4741. return this.__filtered__ ? new s(this) : this[c](1);
  4742. };
  4743. }),
  4744. (s.prototype.compact = function() {
  4745. return this.filter(Dj);
  4746. }),
  4747. (s.prototype.find = function(a) {
  4748. return this.filter(a).head();
  4749. }),
  4750. (s.prototype.findLast = function(a) {
  4751. return this.reverse().find(a);
  4752. }),
  4753. (s.prototype.invokeMap = be(function(a, b) {
  4754. return 'function' == typeof a
  4755. ? new s(this)
  4756. : this.map(function(c) {
  4757. return yd(c, a, b);
  4758. });
  4759. })),
  4760. (s.prototype.reject = function(a) {
  4761. return this.filter(Fh(tf(a)));
  4762. }),
  4763. (s.prototype.slice = function(a, b) {
  4764. a = vi(a);
  4765. var c = this;
  4766. return c.__filtered__ && (a > 0 || b < 0)
  4767. ? new s(c)
  4768. : (a < 0 ? (c = c.takeRight(-a)) : a && (c = c.drop(a)),
  4769. b !== ca && ((b = vi(b)), (c = b < 0 ? c.dropRight(-b) : c.take(b - a))),
  4770. c);
  4771. }),
  4772. (s.prototype.takeRightWhile = function(a) {
  4773. return this.reverse()
  4774. .takeWhile(a)
  4775. .reverse();
  4776. }),
  4777. (s.prototype.toArray = function() {
  4778. return this.take(Ka);
  4779. }),
  4780. $c(s.prototype, function(a, b) {
  4781. var d = /^(?:filter|find|map|reject)|While$/.test(b),
  4782. f = /^(?:head|last)$/.test(b),
  4783. g = c[f ? 'take' + ('last' == b ? 'Right' : '') : b],
  4784. h = f || /^find/.test(b);
  4785. g &&
  4786. (c.prototype[b] = function() {
  4787. var b = this.__wrapped__,
  4788. i = f ? [1] : arguments,
  4789. j = b instanceof s,
  4790. k = i[0],
  4791. l = j || pm(b),
  4792. m = function(a) {
  4793. var b = g.apply(c, o([a], i));
  4794. return f && n ? b[0] : b;
  4795. };
  4796. l && d && 'function' == typeof k && 1 != k.length && (j = l = !1);
  4797. var n = this.__chain__,
  4798. p = !!this.__actions__.length,
  4799. q = h && !n,
  4800. r = j && !p;
  4801. if (!h && l) {
  4802. b = r ? b : new s(this);
  4803. var t = a.apply(b, i);
  4804. return (
  4805. t.__actions__.push({ func: Zg, args: [m], thisArg: ca }),
  4806. new e(t, n)
  4807. );
  4808. }
  4809. return q && r
  4810. ? a.apply(this, i)
  4811. : ((t = this.thru(m)), q ? (f ? t.value()[0] : t.value()) : t);
  4812. });
  4813. }),
  4814. h(['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function(a) {
  4815. var b = kk[a],
  4816. d = /^(?:push|sort|unshift)$/.test(a) ? 'tap' : 'thru',
  4817. e = /^(?:pop|shift)$/.test(a);
  4818. c.prototype[a] = function() {
  4819. var a = arguments;
  4820. if (e && !this.__chain__) {
  4821. var c = this.value();
  4822. return b.apply(pm(c) ? c : [], a);
  4823. }
  4824. return this[d](function(c) {
  4825. return b.apply(pm(c) ? c : [], a);
  4826. });
  4827. };
  4828. }),
  4829. $c(s.prototype, function(a, b) {
  4830. var d = c[b];
  4831. if (d) {
  4832. var e = d.name + '';
  4833. pk.call(dl, e) || (dl[e] = []), dl[e].push({ name: b, func: d });
  4834. }
  4835. }),
  4836. (dl[Xe(ca, qa).name] = [{ name: 'wrapper', func: ca }]),
  4837. (s.prototype.clone = B),
  4838. (s.prototype.reverse = X),
  4839. (s.prototype.value = _),
  4840. (c.prototype.at = Wl),
  4841. (c.prototype.chain = $g),
  4842. (c.prototype.commit = _g),
  4843. (c.prototype.next = ah),
  4844. (c.prototype.plant = ch),
  4845. (c.prototype.reverse = dh),
  4846. (c.prototype.toJSON = c.prototype.valueOf = c.prototype.value = eh),
  4847. (c.prototype.first = c.prototype.head),
  4848. Fk && (c.prototype[Fk] = bh),
  4849. c
  4850. );
  4851. },
  4852. ud = td();
  4853. (dd._ = ud),
  4854. (e = function() {
  4855. return ud;
  4856. }.call(b, c, b, d)),
  4857. !(e !== ca && (d.exports = e));
  4858. }.call(this));
  4859. }.call(b, c(7), c(11)(a)));
  4860. },
  4861. function(a, b, c) {
  4862. function d(a) {
  4863. return (d =
  4864. 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
  4865. ? function(a) {
  4866. return typeof a;
  4867. }
  4868. : function(a) {
  4869. return a &&
  4870. 'function' == typeof Symbol &&
  4871. a.constructor === Symbol &&
  4872. a !== Symbol.prototype
  4873. ? 'symbol'
  4874. : typeof a;
  4875. })(a);
  4876. }
  4877. function e(a) {
  4878. a = a || i.identity;
  4879. var b = function(b) {
  4880. function c(a, c) {
  4881. 'function' == typeof a
  4882. ? ((c = a), (a = {}))
  4883. : ((a = a || {}), (c = 'function' == typeof c ? c : null));
  4884. try {
  4885. return g(this.transport, b, i.clone(a), c);
  4886. } catch (a) {
  4887. if ('function' != typeof c) {
  4888. var d = this.transport.defer();
  4889. return d.reject(a), d.promise;
  4890. }
  4891. j.nextTick(c, a);
  4892. }
  4893. }
  4894. return (
  4895. (b = a(b)),
  4896. i.isPlainObject(b.params) || (b.params = {}),
  4897. b.method || (b.method = 'GET'),
  4898. (c.spec = b),
  4899. c
  4900. );
  4901. };
  4902. return (
  4903. (b.proxy = function(a, b) {
  4904. return function(c, d) {
  4905. return (
  4906. 'function' == typeof c
  4907. ? ((d = c), (c = {}))
  4908. : ((c = c || {}), (d = 'function' == typeof d ? d : null)),
  4909. b.transform && b.transform(c),
  4910. a.call(this, c, d)
  4911. );
  4912. };
  4913. }),
  4914. b
  4915. );
  4916. }
  4917. function f(a, b) {
  4918. var c,
  4919. d,
  4920. e = {};
  4921. if (a.req)
  4922. for (
  4923. a.reqParamKeys || (a.reqParamKeys = i.keys(a.req)), c = 0;
  4924. c < a.reqParamKeys.length;
  4925. c++
  4926. ) {
  4927. if (((d = a.reqParamKeys[c]), !b.hasOwnProperty(d) || null == b[d])) return !1;
  4928. k[a.req[d].type] ? (e[d] = k[a.req[d].type](a.req[d], b[d], d)) : (e[d] = b[d]);
  4929. }
  4930. if (a.opt)
  4931. for (a.optParamKeys || (a.optParamKeys = i.keys(a.opt)), c = 0; c < a.optParamKeys.length; c++)
  4932. (d = a.optParamKeys[c]),
  4933. b[d]
  4934. ? k[a.opt[d].type] || null == b[d]
  4935. ? (e[d] = k[a.opt[d].type](a.opt[d], b[d], d))
  4936. : (e[d] = b[d])
  4937. : (e[d] = a.opt[d].default);
  4938. return (
  4939. a.template || (a.template = i.template(a.fmt)),
  4940. a.template(
  4941. i.transform(
  4942. e,
  4943. function(a, c, d) {
  4944. (a[d] = encodeURIComponent(c)), delete b[d];
  4945. },
  4946. {}
  4947. )
  4948. )
  4949. );
  4950. }
  4951. function g(a, b, c, e) {
  4952. var g,
  4953. h = { method: b.method },
  4954. l = {};
  4955. if (
  4956. (b.requestTimeout && (h.requestTimeout = b.requestTimeout),
  4957. !c.body &&
  4958. b.paramAsBody &&
  4959. ('object' === d(b.paramAsBody)
  4960. ? ((c.body = {}),
  4961. b.paramAsBody.castToArray
  4962. ? (c.body[b.paramAsBody.body] = [].concat(c[b.paramAsBody.param]))
  4963. : (c.body[b.paramAsBody.body] = c[b.paramAsBody.param]),
  4964. delete c[b.paramAsBody.param])
  4965. : ((c.body = c[b.paramAsBody]), delete c[b.paramAsBody])),
  4966. b.needsBody && !c.body)
  4967. )
  4968. throw new TypeError('A request body is required.');
  4969. if ((b.bulkBody && (h.bulkBody = !0), 'HEAD' === b.method && (h.castExists = !0), b.url))
  4970. h.path = f(b.url, c);
  4971. else for (g = 0; g < b.urls.length && ((h.path = f(b.urls[g], c)), !h.path); g++);
  4972. if (!h.path) {
  4973. var m = b.url || b.urls[b.urls.length - 1];
  4974. throw new TypeError(
  4975. 'Unable to build a path with those params. Supply at least ' + i.keys(m.req).join(', ')
  4976. );
  4977. }
  4978. b.paramKeys ||
  4979. ((b.paramKeys = i.keys(b.params)),
  4980. (b.requireParamKeys = i.transform(
  4981. b.params,
  4982. function(a, b, c) {
  4983. b.required && a.push(c);
  4984. },
  4985. []
  4986. )));
  4987. for (var n in c)
  4988. if (c.hasOwnProperty(n) && null != c[n])
  4989. switch (n) {
  4990. case 'body':
  4991. case 'headers':
  4992. case 'requestTimeout':
  4993. case 'maxRetries':
  4994. h[n] = c[n];
  4995. break;
  4996. case 'ignore':
  4997. h.ignore = i.isArray(c[n]) ? c[n] : [c[n]];
  4998. break;
  4999. case 'method':
  5000. h.method = j.toUpperString(c[n]);
  5001. break;
  5002. default:
  5003. var o = b.params[n];
  5004. o
  5005. ? ((o.name = o.name || n),
  5006. null != c[n] &&
  5007. (k[o.type] ? (l[o.name] = k[o.type](o, c[n], n)) : (l[o.name] = c[n]),
  5008. o.default && l[o.name] === o.default && delete l[o.name]))
  5009. : (l[n] = c[n]);
  5010. }
  5011. for (g = 0; g < b.requireParamKeys.length; g++)
  5012. if (!l.hasOwnProperty(b.requireParamKeys[g]))
  5013. throw new TypeError('Missing required parameter ' + b.requireParamKeys[g]);
  5014. return (h.query = l), a.request(h, e);
  5015. }
  5016. function h(a) {
  5017. return a.split(',').map(function(a) {
  5018. return a.trim();
  5019. });
  5020. }
  5021. var i = c(0),
  5022. j = c(2);
  5023. (b.makeFactoryWithModifier = e),
  5024. (b.factory = e()),
  5025. (b.proxyFactory = b.factory.proxy),
  5026. (b._resolveUrl = f),
  5027. (b.ApiNamespace = function() {}),
  5028. (b.namespaceFactory = function() {
  5029. function a(a, b) {
  5030. (this.transport = a), (this.client = b);
  5031. }
  5032. return (a.prototype = new b.ApiNamespace()), a;
  5033. });
  5034. var k = {
  5035. enum: function a(b, c, d) {
  5036. if ((i.isString(c) && c.indexOf(',') > -1 && (c = h(c)), i.isArray(c)))
  5037. return c
  5038. .map(function(c) {
  5039. return a(b, c, d);
  5040. })
  5041. .join(',');
  5042. for (var e = 0; e < b.options.length; e++) if (b.options[e] === String(c)) return b.options[e];
  5043. throw new TypeError(
  5044. 'Invalid ' +
  5045. d +
  5046. ': expected ' +
  5047. (b.options.length > 1 ? 'one of ' + b.options.join(',') : b.options[0])
  5048. );
  5049. },
  5050. duration: function(a, b, c) {
  5051. if (j.isNumeric(b) || j.isInterval(b)) return b;
  5052. throw new TypeError(
  5053. 'Invalid ' +
  5054. c +
  5055. ': expected a number or interval (an integer followed by one of M, w, d, h, m, s, y or ms).'
  5056. );
  5057. },
  5058. list: function(a, b, c) {
  5059. switch (d(b)) {
  5060. case 'number':
  5061. case 'boolean':
  5062. return '' + b;
  5063. case 'string':
  5064. b = h(b);
  5065. case 'object':
  5066. if (i.isArray(b)) return b.join(',');
  5067. default:
  5068. throw new TypeError(
  5069. 'Invalid ' + c + ': expected be a comma separated list, array, number or string.'
  5070. );
  5071. }
  5072. },
  5073. boolean: function(a, b) {
  5074. return (b = i.isString(b) ? b.toLowerCase() : b), 'no' !== b && 'off' !== b && !!b;
  5075. },
  5076. number: function(a, b, c) {
  5077. if (j.isNumeric(b)) return 1 * b;
  5078. throw new TypeError('Invalid ' + c + ': expected a number.');
  5079. },
  5080. string: function(a, b, c) {
  5081. switch (d(b)) {
  5082. case 'number':
  5083. case 'string':
  5084. return '' + b;
  5085. default:
  5086. throw new TypeError('Invalid ' + c + ': expected a string.');
  5087. }
  5088. },
  5089. time: function(a, b, c) {
  5090. if ('string' == typeof b) return b;
  5091. if (j.isNumeric(b)) return '' + b;
  5092. if (b instanceof Date) return '' + b.getTime();
  5093. throw new TypeError('Invalid ' + c + ': expected some sort of time.');
  5094. }
  5095. };
  5096. },
  5097. function(a, b, c) {
  5098. (function(b, d) {
  5099. function e(a) {
  5100. return (e =
  5101. 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
  5102. ? function(a) {
  5103. return typeof a;
  5104. }
  5105. : function(a) {
  5106. return a &&
  5107. 'function' == typeof Symbol &&
  5108. a.constructor === Symbol &&
  5109. a !== Symbol.prototype
  5110. ? 'symbol'
  5111. : typeof a;
  5112. })(a);
  5113. }
  5114. function f(a, b, c) {
  5115. return function(d) {
  5116. for (var e, f, g, h, i = 0, j = [], k = ''; i < d.length; i++)
  5117. (e = d.charCodeAt(i)),
  5118. (f = d.charAt(i)),
  5119. (h = (e >= 97 && e <= 122) || (e >= 48 && e <= 57)),
  5120. (g = e >= 65 && e <= 90),
  5121. (!g && h) || (k.length && j.push(k), (k = '')),
  5122. (g || h) &&
  5123. (h && k.length
  5124. ? (k += f)
  5125. : (k =
  5126. (!j.length && a) || (j.length && b)
  5127. ? f.toUpperCase()
  5128. : f.toLowerCase()));
  5129. return (
  5130. k.length && j.push(k), j.length && '_' === d.charAt(0) && (j[0] = '_' + j[0]), j.join(c)
  5131. );
  5132. };
  5133. }
  5134. var g = c(0),
  5135. h = c(30),
  5136. i = {};
  5137. (i.inherits = h.inherits),
  5138. (i.isArrayOfStrings = function(a) {
  5139. return g.isArray(a) && g.every(a.slice(0, 10), g.isString);
  5140. }),
  5141. (i.ucfirst = function(a) {
  5142. return a[0].toUpperCase() + a.substring(1).toLowerCase();
  5143. }),
  5144. (i.studlyCase = f(!0, !0, '')),
  5145. (i.camelCase = f(!1, !0, '')),
  5146. (i.snakeCase = f(!1, !1, '_')),
  5147. (i.toUpperString = function(a) {
  5148. return a ? 'string' != typeof a && (a = a.toString()) : (a = ''), a.toUpperCase();
  5149. }),
  5150. (i.isNumeric = function(a) {
  5151. return 'object' !== e(a) && a - parseFloat(a) >= 0;
  5152. });
  5153. var j = /^(\d+(?:\.\d+)?)(M|w|d|h|m|s|y|ms)$/;
  5154. (i.isInterval = function(a) {
  5155. return !(!a.match || !a.match(j));
  5156. }),
  5157. (i.repeat = function(a, b) {
  5158. return new Array(b + 1).join(a);
  5159. }),
  5160. (i.applyArgs = function(a, b, c, d) {
  5161. switch (((d = d || 0), c.length - d)) {
  5162. case 0:
  5163. return a.call(b);
  5164. case 1:
  5165. return a.call(b, c[0 + d]);
  5166. case 2:
  5167. return a.call(b, c[0 + d], c[1 + d]);
  5168. case 3:
  5169. return a.call(b, c[0 + d], c[1 + d], c[2 + d]);
  5170. case 4:
  5171. return a.call(b, c[0 + d], c[1 + d], c[2 + d], c[3 + d]);
  5172. case 5:
  5173. return a.call(b, c[0 + d], c[1 + d], c[2 + d], c[3 + d], c[4 + d]);
  5174. default:
  5175. return a.apply(b, Array.prototype.slice.call(c, d));
  5176. }
  5177. }),
  5178. (i.nextTick = function(a) {
  5179. b.nextTick(g.bindKey(i, 'applyArgs', a, null, arguments, 1));
  5180. }),
  5181. (i.handler = function(a) {
  5182. return (a._provideBound = !0), a;
  5183. }),
  5184. (i.makeBoundMethods = function(a) {
  5185. a.bound = {};
  5186. for (var b in a)
  5187. 'function' == typeof a[b] &&
  5188. a[b]._provideBound === !0 &&
  5189. (a.bound[b] = g.bind(a[b], a));
  5190. }),
  5191. (i.funcEnum = function(a, b, c, d) {
  5192. var f = a[b];
  5193. switch (e(f)) {
  5194. case 'undefined':
  5195. return c[d];
  5196. case 'function':
  5197. return f;
  5198. case 'string':
  5199. if (c.hasOwnProperty(f)) return c[f];
  5200. default:
  5201. var h = 'Invalid ' + b + ' "' + f + '", expected a function';
  5202. switch (g.size(c)) {
  5203. case 0:
  5204. break;
  5205. case 1:
  5206. h += ' or ' + g.keys(c)[0];
  5207. break;
  5208. default:
  5209. h += ' or one of ' + g.keys(c).join(', ');
  5210. }
  5211. throw new TypeError(h);
  5212. }
  5213. }),
  5214. (i.createArray = function(a, b) {
  5215. b = 'function' == typeof b ? b : g.identity;
  5216. var c,
  5217. d,
  5218. e = [];
  5219. for (g.isArray(a) || (a = [a]), d = 0; d < a.length; d++) {
  5220. if (((c = b(a[d])), void 0 === c)) return !1;
  5221. e.push(c);
  5222. }
  5223. return e;
  5224. }),
  5225. (i.getUnwrittenFromStream = function(a) {
  5226. var b = i.getStreamWriteBuffer(a);
  5227. if (b) {
  5228. var c = '';
  5229. return b.length
  5230. ? (g.each(b, function(a) {
  5231. if (a.chunk) c += '' + a.chunk;
  5232. else {
  5233. if (!g.isArray(a) || ('string' != typeof a[0] && !d.isBuffer(a[0])))
  5234. return !1;
  5235. c += '' + a[0];
  5236. }
  5237. }),
  5238. c)
  5239. : c;
  5240. }
  5241. }),
  5242. (i.getStreamWriteBuffer = function(a) {
  5243. if (a && a._writableState) {
  5244. var b = a._writableState;
  5245. return b.getBuffer ? b.getBuffer() : b.buffer ? b.buffer : void 0;
  5246. }
  5247. }),
  5248. (i.clearWriteStreamBuffer = function(a) {
  5249. var b = i.getStreamWriteBuffer(a);
  5250. return b && b.splice(0);
  5251. }),
  5252. (i.now = function() {
  5253. return 'function' == typeof Date.now ? Date.now() : new Date().getTime();
  5254. }),
  5255. (a.exports = i);
  5256. }.call(b, c(3), c(12).Buffer));
  5257. },
  5258. function(a, b) {
  5259. function c() {
  5260. throw new Error('setTimeout has not been defined');
  5261. }
  5262. function d() {
  5263. throw new Error('clearTimeout has not been defined');
  5264. }
  5265. function e(a) {
  5266. if (k === setTimeout) return setTimeout(a, 0);
  5267. if ((k === c || !k) && setTimeout) return (k = setTimeout), setTimeout(a, 0);
  5268. try {
  5269. return k(a, 0);
  5270. } catch (b) {
  5271. try {
  5272. return k.call(null, a, 0);
  5273. } catch (b) {
  5274. return k.call(this, a, 0);
  5275. }
  5276. }
  5277. }
  5278. function f(a) {
  5279. if (l === clearTimeout) return clearTimeout(a);
  5280. if ((l === d || !l) && clearTimeout) return (l = clearTimeout), clearTimeout(a);
  5281. try {
  5282. return l(a);
  5283. } catch (b) {
  5284. try {
  5285. return l.call(null, a);
  5286. } catch (b) {
  5287. return l.call(this, a);
  5288. }
  5289. }
  5290. }
  5291. function g() {
  5292. p && n && ((p = !1), n.length ? (o = n.concat(o)) : (q = -1), o.length && h());
  5293. }
  5294. function h() {
  5295. if (!p) {
  5296. var a = e(g);
  5297. p = !0;
  5298. for (var b = o.length; b; ) {
  5299. for (n = o, o = []; ++q < b; ) n && n[q].run();
  5300. (q = -1), (b = o.length);
  5301. }
  5302. (n = null), (p = !1), f(a);
  5303. }
  5304. }
  5305. function i(a, b) {
  5306. (this.fun = a), (this.array = b);
  5307. }
  5308. function j() {}
  5309. var k,
  5310. l,
  5311. m = (a.exports = {});
  5312. !(function() {
  5313. try {
  5314. k = 'function' == typeof setTimeout ? setTimeout : c;
  5315. } catch (a) {
  5316. k = c;
  5317. }
  5318. try {
  5319. l = 'function' == typeof clearTimeout ? clearTimeout : d;
  5320. } catch (a) {
  5321. l = d;
  5322. }
  5323. })();
  5324. var n,
  5325. o = [],
  5326. p = !1,
  5327. q = -1;
  5328. (m.nextTick = function(a) {
  5329. var b = new Array(arguments.length - 1);
  5330. if (arguments.length > 1) for (var c = 1; c < arguments.length; c++) b[c - 1] = arguments[c];
  5331. o.push(new i(a, b)), 1 !== o.length || p || e(h);
  5332. }),
  5333. (i.prototype.run = function() {
  5334. this.fun.apply(null, this.array);
  5335. }),
  5336. (m.title = 'browser'),
  5337. (m.browser = !0),
  5338. (m.env = {}),
  5339. (m.argv = []),
  5340. (m.version = ''),
  5341. (m.versions = {}),
  5342. (m.on = j),
  5343. (m.addListener = j),
  5344. (m.once = j),
  5345. (m.off = j),
  5346. (m.removeListener = j),
  5347. (m.removeAllListeners = j),
  5348. (m.emit = j),
  5349. (m.prependListener = j),
  5350. (m.prependOnceListener = j),
  5351. (m.listeners = function(a) {
  5352. return [];
  5353. }),
  5354. (m.binding = function(a) {
  5355. throw new Error('process.binding is not supported');
  5356. }),
  5357. (m.cwd = function() {
  5358. return '/';
  5359. }),
  5360. (m.chdir = function(a) {
  5361. throw new Error('process.chdir is not supported');
  5362. }),
  5363. (m.umask = function() {
  5364. return 0;
  5365. });
  5366. },
  5367. function(a, b, c) {
  5368. function d(a) {
  5369. return (d =
  5370. 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
  5371. ? function(a) {
  5372. return typeof a;
  5373. }
  5374. : function(a) {
  5375. return a &&
  5376. 'function' == typeof Symbol &&
  5377. a.constructor === Symbol &&
  5378. a !== Symbol.prototype
  5379. ? 'symbol'
  5380. : typeof a;
  5381. })(a);
  5382. }
  5383. function e(a, b, c) {
  5384. (this.message = a),
  5385. Error.call(this, this.message),
  5386. j ? Error.captureStackTrace(this, b) : k ? (this.stack = new Error().stack) : (this.stack = ''),
  5387. c &&
  5388. (g.assign(this, c),
  5389. (this.toString = function() {
  5390. return a + ' :: ' + JSON.stringify(c);
  5391. }),
  5392. (this.toJSON = function() {
  5393. return g.assign({ msg: a }, c);
  5394. }));
  5395. }
  5396. function f(a) {
  5397. var b = [];
  5398. return (function a(c) {
  5399. if ('object' !== d(c)) return JSON.stringify(c);
  5400. if (b.indexOf(c) > -1) return '[circular]';
  5401. b.push(c);
  5402. try {
  5403. return (
  5404. '{ ' +
  5405. g
  5406. .map(c, function(b, c) {
  5407. return c + '=' + a(b);
  5408. })
  5409. .join(' & ') +
  5410. ' }'
  5411. );
  5412. } finally {
  5413. b.pop();
  5414. }
  5415. })(a);
  5416. }
  5417. var g = c(0),
  5418. h = c(2),
  5419. i = a.exports,
  5420. j = 'function' == typeof Error.captureStackTrace,
  5421. k = !!new Error().stack;
  5422. (i._Abstract = e),
  5423. h.inherits(e, Error),
  5424. (i.ConnectionFault = function(a) {
  5425. e.call(this, a || 'Connection Failure', i.ConnectionFault);
  5426. }),
  5427. h.inherits(i.ConnectionFault, e),
  5428. (i.NoConnections = function(a) {
  5429. e.call(this, a || 'No Living connections', i.NoConnections);
  5430. }),
  5431. h.inherits(i.NoConnections, e),
  5432. (i.Generic = function(a, b) {
  5433. e.call(this, a || 'Generic Error', i.Generic, b);
  5434. }),
  5435. h.inherits(i.Generic, e),
  5436. (i.RequestTimeout = function(a) {
  5437. e.call(this, a || 'Request Timeout', i.RequestTimeout);
  5438. }),
  5439. h.inherits(i.RequestTimeout, e),
  5440. (i.Serialization = function(a) {
  5441. e.call(this, a || 'Unable to parse/serialize body', i.Serialization);
  5442. }),
  5443. h.inherits(i.Serialization, e),
  5444. (i.RequestTypeError = function(a) {
  5445. e.call(this, 'Cross-domain AJAX requests ' + a + ' are not supported', i.RequestTypeError);
  5446. }),
  5447. h.inherits(i.RequestTypeError, e);
  5448. var l = [
  5449. [300, 'Multiple Choices'],
  5450. [301, 'Moved Permanently'],
  5451. [302, 'Found'],
  5452. [303, 'See Other'],
  5453. [304, 'Not Modified'],
  5454. [305, 'Use Proxy'],
  5455. [307, 'Temporary Redirect'],
  5456. [308, 'Permanent Redirect'],
  5457. [400, 'Bad Request'],
  5458. [401, 'Authentication Exception'],
  5459. [402, 'Payment Required'],
  5460. [403, ['Authorization Exception', 'Forbidden']],
  5461. [404, 'Not Found'],
  5462. [405, 'Method Not Allowed'],
  5463. [406, 'Not Acceptable'],
  5464. [407, 'Proxy Authentication Required'],
  5465. [408, 'Request Timeout'],
  5466. [409, 'Conflict'],
  5467. [410, 'Gone'],
  5468. [411, 'Length Required'],
  5469. [412, 'Precondition Failed'],
  5470. [413, 'Request Entity Too Large'],
  5471. [414, 'Request URIToo Long'],
  5472. [415, 'Unsupported Media Type'],
  5473. [416, 'Requested Range Not Satisfiable'],
  5474. [417, 'Expectation Failed'],
  5475. [418, 'Im ATeapot'],
  5476. [421, 'Too Many Connections From This IP'],
  5477. [426, 'Upgrade Required'],
  5478. [429, 'Too Many Requests'],
  5479. [450, 'Blocked By Windows Parental Controls'],
  5480. [494, 'Request Header Too Large'],
  5481. [497, 'HTTPTo HTTPS'],
  5482. [499, 'Client Closed Request'],
  5483. [500, 'Internal Server Error'],
  5484. [501, 'Not Implemented'],
  5485. [502, 'Bad Gateway'],
  5486. [503, 'Service Unavailable'],
  5487. [504, 'Gateway Timeout'],
  5488. [505, 'HTTPVersion Not Supported'],
  5489. [506, 'Variant Also Negotiates'],
  5490. [510, 'Not Extended']
  5491. ];
  5492. g.each(l, function(a) {
  5493. function b(a, d) {
  5494. (this.status = c), (this.displayName = l);
  5495. var h = null;
  5496. return (
  5497. g.isPlainObject(a) && ((h = a), (a = null)),
  5498. h
  5499. ? ((a = [].concat(h.root_cause || []).reduce(function(a, b) {
  5500. a && (a += ' (and) '), (a += '[' + b.type + '] ' + b.reason);
  5501. var c = g.omit(b, ['type', 'reason']);
  5502. return g.size(c) && (a += ', with ' + f(c)), a;
  5503. }, '')),
  5504. a || (h.type && (a += '[' + h.type + '] '), h.reason && (a += h.reason)),
  5505. e.call(this, a || k, b, d),
  5506. this)
  5507. : (e.call(this, a || k, b, d), this)
  5508. );
  5509. }
  5510. var c = a[0],
  5511. d = a[1],
  5512. j = [].concat(d, c),
  5513. k = j[0],
  5514. l = h.studlyCase(k);
  5515. (j = g.uniq(j.concat(l))),
  5516. h.inherits(b, e),
  5517. j.forEach(function(a) {
  5518. i[a] = b;
  5519. });
  5520. });
  5521. },
  5522. function(a, b, c) {
  5523. (function(b) {
  5524. function d(a) {
  5525. return (d =
  5526. 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
  5527. ? function(a) {
  5528. return typeof a;
  5529. }
  5530. : function(a) {
  5531. return a &&
  5532. 'function' == typeof Symbol &&
  5533. a.constructor === Symbol &&
  5534. a !== Symbol.prototype
  5535. ? 'symbol'
  5536. : typeof a;
  5537. })(a);
  5538. }
  5539. function e(a) {
  5540. if (((a = a || {}), a.log)) {
  5541. var b, c;
  5542. if (
  5543. ((c = g.isArrayOfStrings(a.log)
  5544. ? [{ levels: a.log }]
  5545. : g.createArray(a.log, function(a) {
  5546. return f.isPlainObject(a) ? a : 'string' == typeof a ? { level: a } : void 0;
  5547. })),
  5548. !c)
  5549. )
  5550. throw new TypeError(
  5551. 'Invalid logging output config. Expected either a log level, array of log levels, a logger config object, or an array of logger config objects.'
  5552. );
  5553. for (b = 0; b < c.length; b++) this.addOutput(c[b]);
  5554. }
  5555. }
  5556. var f = c(0),
  5557. g = c(2),
  5558. h = c(13),
  5559. i = c(15).EventEmitter;
  5560. g.inherits(e, i),
  5561. (e.loggers = c(16)),
  5562. (e.prototype.close = function() {
  5563. this.emit('closing'),
  5564. this.listenerCount() &&
  5565. (console.error(
  5566. 'Something is still listening for log events, but the logger is closing.'
  5567. ),
  5568. this.clearAllListeners());
  5569. }),
  5570. i.prototype.listenerCount
  5571. ? (e.prototype.listenerCount = i.prototype.listenerCount)
  5572. : i.listenerCount
  5573. ? (e.prototype.listenerCount = function(a) {
  5574. return i.listenerCount(this, a);
  5575. })
  5576. : (e.prototype.listenerCount = function(a) {
  5577. return this.listeners(a).length;
  5578. }),
  5579. (e.levels = ['error', 'warning', 'info', 'debug', 'trace']),
  5580. (e.parseLevels = function(a) {
  5581. switch (d(a)) {
  5582. case 'string':
  5583. var b = f.indexOf(e.levels, a);
  5584. if (b >= 0) return e.levels.slice(0, b + 1);
  5585. case 'object':
  5586. if (f.isArray(a)) {
  5587. var c = f.intersection(a, e.levels);
  5588. if (c.length === a.length) return c;
  5589. }
  5590. default:
  5591. throw new TypeError(
  5592. 'invalid logging level ' +
  5593. a +
  5594. '. Expected zero or more of these options: ' +
  5595. e.levels.join(', ')
  5596. );
  5597. }
  5598. }),
  5599. (e.join = function(a) {
  5600. return f
  5601. .map(a, function(a) {
  5602. return f.isPlainObject(a) ? JSON.stringify(a, null, 2) + '\n' : a.toString();
  5603. })
  5604. .join(' ');
  5605. }),
  5606. (e.prototype.addOutput = function(a) {
  5607. (a = a || {}), (a.levels = e.parseLevels(a.levels || a.level || 'warning')), delete a.level;
  5608. var c = g.funcEnum(a, 'type', e.loggers, b.browser ? 'console' : 'stdio');
  5609. return new c(this, a);
  5610. }),
  5611. (e.prototype.error = function(a) {
  5612. if (this.listenerCount('error'))
  5613. return this.emit('error', a instanceof Error ? a : new Error(a));
  5614. }),
  5615. (e.prototype.warning = function() {
  5616. if (this.listenerCount('warning')) return this.emit('warning', e.join(arguments));
  5617. }),
  5618. (e.prototype.info = function() {
  5619. if (this.listenerCount('info')) return this.emit('info', e.join(arguments));
  5620. }),
  5621. (e.prototype.debug = function() {
  5622. if (this.listenerCount('debug')) return this.emit('debug', e.join(arguments));
  5623. }),
  5624. (e.prototype.trace = function(a, b, c, d, f) {
  5625. if (this.listenerCount('trace'))
  5626. return this.emit('trace', e.normalizeTraceArgs(a, b, c, d, f));
  5627. }),
  5628. (e.normalizeTraceArgs = function(a, b, c, d, e) {
  5629. return (
  5630. 'string' == typeof b
  5631. ? (b = h.parse(b, !0, !0))
  5632. : ((b = f.clone(b)),
  5633. b.path && (b.query = h.parse(b.path, !0, !1).query),
  5634. !b.pathname && b.path && (b.pathname = b.path.split('?').shift())),
  5635. delete b.auth,
  5636. { method: a, url: h.format(b), body: c, status: e, response: d }
  5637. );
  5638. }),
  5639. (a.exports = e);
  5640. }.call(b, c(3)));
  5641. },
  5642. function(a, b, c) {
  5643. (function(b) {
  5644. function d(a) {
  5645. var b = this;
  5646. a = b._config = a || {};
  5647. var g = 'function' == typeof a.log ? a.log : c(5);
  5648. a.log = b.log = new g(a);
  5649. var k = f.funcEnum(a, 'connectionPool', d.connectionPools, 'main');
  5650. b.connectionPool = new k(a);
  5651. var l = f.funcEnum(a, 'serializer', d.serializers, 'json');
  5652. (b.serializer = new l(a)),
  5653. (b.nodesToHostCallback = f.funcEnum(
  5654. a,
  5655. 'nodesToHostCallback',
  5656. d.nodesToHostCallbacks,
  5657. 'main'
  5658. )),
  5659. (b.maxRetries = a.hasOwnProperty('maxRetries') ? a.maxRetries : 3),
  5660. (b.sniffEndpoint = a.hasOwnProperty('sniffEndpoint')
  5661. ? a.sniffEndpoint
  5662. : '/_nodes/_all/http'),
  5663. (b.requestTimeout = a.hasOwnProperty('requestTimeout') ? a.requestTimeout : 3e4),
  5664. (b.pingTimeout = a.hasOwnProperty('pingTimeout') ? a.pingTimeout : 3e3),
  5665. a.hasOwnProperty('defer') && (b.defer = a.defer);
  5666. var m = !a.hasOwnProperty('randomizeHosts') || !!a.randomizeHosts;
  5667. if ((a.host && (a.hosts = a.host), a.hosts)) {
  5668. var n = f.createArray(a.hosts, function(a) {
  5669. if (e.isPlainObject(a) || e.isString(a) || a instanceof h) return a;
  5670. });
  5671. if (!n)
  5672. throw new TypeError(
  5673. 'Invalid hosts config. Expected a URL, an array of urls, a host config object, or an array of host config objects.'
  5674. );
  5675. m && (n = e.shuffle(n)), b.setHosts(n);
  5676. }
  5677. a.hasOwnProperty('sniffedNodesProtocol')
  5678. ? (b.sniffedNodesProtocol = a.sniffedNodesProtocol || null)
  5679. : (b.sniffedNodesProtocol = j(b.connectionPool.getAllHosts()) || null),
  5680. a.hasOwnProperty('sniffedNodesFilterPath')
  5681. ? (b.sniffedNodesFilterPath = a.sniffedNodesFilterPath)
  5682. : (b.sniffedNodesFilterPath = [
  5683. 'nodes.*.http.publish_address',
  5684. 'nodes.*.name',
  5685. 'nodes.*.hostname',
  5686. 'nodes.*.host',
  5687. 'nodes.*.version'
  5688. ].join(',')),
  5689. a.sniffOnStart && b.sniff(),
  5690. a.sniffInterval &&
  5691. b._timeout(function c() {
  5692. b.sniff(), b._timeout(c, a.sniffInterval);
  5693. }, a.sniffInterval),
  5694. a.sniffOnConnectionFault && i(b);
  5695. }
  5696. a.exports = d;
  5697. var e = c(0),
  5698. f = c(2),
  5699. g = c(4),
  5700. h = c(8),
  5701. i = c(37),
  5702. j = c(38);
  5703. (d.connectionPools = { main: c(9) }),
  5704. (d.serializers = c(21)),
  5705. (d.nodesToHostCallbacks = { main: c(23) }),
  5706. (d.prototype.defer = function() {
  5707. if ('undefined' == typeof Promise)
  5708. throw new Error(
  5709. 'No Promise implementation found. In order for elasticsearch-js to create promises either specify the `defer` configuration or include a global Promise shim'
  5710. );
  5711. var a = {};
  5712. return (
  5713. (a.promise = new Promise(function(b, c) {
  5714. (a.resolve = b), (a.reject = c);
  5715. })),
  5716. a
  5717. );
  5718. }),
  5719. (d.prototype.request = function(a, c) {
  5720. function d(b, c) {
  5721. s ||
  5722. (b
  5723. ? i(b)
  5724. : c
  5725. ? ((k = c), (l = k.request(a.req, h)))
  5726. : (p.log.warning('No living connections'), i(new g.NoConnections())));
  5727. }
  5728. function h(b, c, e, f) {
  5729. if (!s) {
  5730. if (((l = void 0), b instanceof g.RequestTypeError))
  5731. return (
  5732. p.log.error('Connection refused to execute the request', b),
  5733. void i(b, c, e, f)
  5734. );
  5735. if (b) {
  5736. k.setStatus('dead');
  5737. var h = b.message || '';
  5738. (h =
  5739. '\n' +
  5740. a.req.method +
  5741. ' ' +
  5742. k.host.makeUrl(a.req) +
  5743. (h.length ? ' => ' : '') +
  5744. h),
  5745. q
  5746. ? (q--,
  5747. p.log.error('Request error, retrying' + h),
  5748. p.connectionPool.select(d))
  5749. : (p.log.error('Request complete with error' + h),
  5750. i(new g.ConnectionFault(b)));
  5751. } else p.log.debug('Request complete'), i(void 0, c, e, f);
  5752. }
  5753. }
  5754. function i(b, d, f, h) {
  5755. if (!s) {
  5756. p._timeout(m);
  5757. var i,
  5758. j = !h || (h['content-type'] && ~h['content-type'].indexOf('application/json'));
  5759. if (
  5760. (!b &&
  5761. d &&
  5762. (j
  5763. ? ((i = p.serializer.deserialize(d)),
  5764. null == i && ((b = new g.Serialization()), (i = d)))
  5765. : (i = d)),
  5766. (!b || b instanceof g.Serialization) &&
  5767. (f < 200 || f >= 300) &&
  5768. (!a.ignore || !e.includes(a.ignore, f)))
  5769. ) {
  5770. var k = e.pick(a.req, ['path', 'query', 'body']);
  5771. (k.statusCode = f),
  5772. (k.response = d),
  5773. 401 === f &&
  5774. h &&
  5775. h['www-authenticate'] &&
  5776. (k.wwwAuthenticateDirective = h['www-authenticate']),
  5777. (b = g[f] ? new g[f](i && i.error, k) : new g.Generic('unknown error', k));
  5778. }
  5779. a.castExists &&
  5780. (b && b instanceof g.NotFound ? ((i = !1), (b = void 0)) : (i = !b)),
  5781. 'function' == typeof c
  5782. ? b
  5783. ? c(b, i, f)
  5784. : c(void 0, i, f)
  5785. : b
  5786. ? ((b.body = i), (b.status = f), o.reject(b))
  5787. : o.resolve(i);
  5788. }
  5789. }
  5790. function j() {
  5791. s || ((s = !0), (q = 0), p._timeout(m), 'function' == typeof l && l());
  5792. }
  5793. var k,
  5794. l,
  5795. m,
  5796. n,
  5797. o,
  5798. p = this,
  5799. q = this.maxRetries,
  5800. r = this.requestTimeout,
  5801. s = !1,
  5802. t = a.body,
  5803. u = a.headers
  5804. ? e.transform(a.headers, function(a, b, c) {
  5805. a[String(c).toLowerCase()] = b;
  5806. })
  5807. : {};
  5808. if (
  5809. (p.log.debug('starting request', a),
  5810. 'function' == typeof c
  5811. ? (b.domain && (c = b.domain.bind(c)), (n = { abort: j }))
  5812. : ((o = this.defer()), (n = o.promise), (n.abort = j)),
  5813. t && 'GET' === a.method)
  5814. )
  5815. return f.nextTick(i, new TypeError('Body can not be sent with method "GET"')), n;
  5816. if (t) {
  5817. var v = p.serializer,
  5818. w = v[a.bulkBody ? 'bulkBody' : 'serialize'];
  5819. (t = w.call(v, t)), u['content-type'] || (u['content-type'] = w.contentType);
  5820. }
  5821. a.hasOwnProperty('maxRetries') && (q = a.maxRetries),
  5822. a.hasOwnProperty('requestTimeout') && (r = a.requestTimeout);
  5823. var x = '/' === a.path && 'HEAD' === a.method;
  5824. if (x) {
  5825. var y = a.hasOwnProperty('requestTimeout') && a.requestTimeout;
  5826. r = y || this.pingTimeout;
  5827. }
  5828. return (
  5829. (a.req = {
  5830. method: a.method,
  5831. path: a.path || '/',
  5832. query: a.query,
  5833. body: t,
  5834. headers: u
  5835. }),
  5836. r &&
  5837. r !== 1 / 0 &&
  5838. (m = this._timeout(function() {
  5839. i(new g.RequestTimeout('Request Timeout after ' + r + 'ms')), j();
  5840. }, r)),
  5841. k ? d(void 0, k) : p.connectionPool.select(d),
  5842. n
  5843. );
  5844. }),
  5845. (d.prototype._timeout = function(a, b) {
  5846. if (!this.closed) {
  5847. var c,
  5848. d = this._timers || (this._timers = []);
  5849. if (('function' != typeof a && ((c = a), (a = void 0)), a))
  5850. return (
  5851. (c = setTimeout(function() {
  5852. e.pull(d, c), a();
  5853. }, b)),
  5854. d.push(c),
  5855. c
  5856. );
  5857. if (c) {
  5858. clearTimeout(c);
  5859. var f = this._timers.indexOf(c);
  5860. f !== -1 && this._timers.splice(f, 1);
  5861. }
  5862. }
  5863. }),
  5864. (d.prototype.sniff = function(a) {
  5865. var b = this,
  5866. c = this.nodesToHostCallback,
  5867. d = this.log,
  5868. f = this.sniffedNodesProtocol,
  5869. g = this.sniffedNodesFilterPath;
  5870. (a = 'function' == typeof a ? a : e.noop),
  5871. this.request(
  5872. { path: this.sniffEndpoint, query: { filter_path: g }, method: 'GET' },
  5873. function(g, h, i) {
  5874. if (!g && h && h.nodes) {
  5875. var j;
  5876. try {
  5877. j = c(h.nodes);
  5878. } catch (a) {
  5879. return void d.error(
  5880. new Error(
  5881. 'Unable to convert node list from ' +
  5882. b.sniffEndpoint +
  5883. ' to hosts durring sniff. Encountered error:\n' +
  5884. (a.stack || a.message)
  5885. )
  5886. );
  5887. }
  5888. e.forEach(j, function(a) {
  5889. f && (a.protocol = f);
  5890. }),
  5891. b.setHosts(j);
  5892. }
  5893. a(g, h, i);
  5894. }
  5895. );
  5896. }),
  5897. (d.prototype.setHosts = function(a) {
  5898. var b = this._config;
  5899. this.connectionPool.setHosts(
  5900. e.map(a, function(a) {
  5901. return a instanceof h ? a : new h(a, b);
  5902. })
  5903. );
  5904. }),
  5905. (d.prototype.close = function() {
  5906. this.log.close(),
  5907. (this.closed = !0),
  5908. e.each(this._timers, clearTimeout),
  5909. (this._timers = null),
  5910. this.connectionPool.close();
  5911. });
  5912. }.call(b, c(3)));
  5913. },
  5914. function(a, b) {
  5915. var c;
  5916. c = (function() {
  5917. return this;
  5918. })();
  5919. try {
  5920. c = c || Function('return this')() || (0, eval)('this');
  5921. } catch (a) {
  5922. 'object' == typeof window && (c = window);
  5923. }
  5924. a.exports = c;
  5925. },
  5926. function(a, b, c) {
  5927. (function(b) {
  5928. function d(a, b) {
  5929. if (
  5930. ((a = i.clone(a || {})),
  5931. (b = b || {}),
  5932. (this.protocol = 'http'),
  5933. (this.host = 'localhost'),
  5934. (this.path = ''),
  5935. (this.port = 9200),
  5936. (this.query = null),
  5937. (this.headers = null),
  5938. (this.suggestCompression = !!b.suggestCompression),
  5939. (this.ssl = i.defaults({}, a.ssl || {}, b.ssl || {}, o)),
  5940. 'string' == typeof a)
  5941. ) {
  5942. var c = a.indexOf(':'),
  5943. e = a.indexOf('/'),
  5944. p = e === -1,
  5945. q = c > -1 && p,
  5946. r = !q && c < e;
  5947. if (
  5948. ((p || q || r) && !k.test(a) && (a = l + '//' + a),
  5949. (a = i.pick(g.parse(a, !1, !0), m)),
  5950. !a.port)
  5951. ) {
  5952. var s = a.protocol || 'http';
  5953. ':' === s.charAt(s.length - 1) && (s = s.substring(0, s.length - 1)),
  5954. d.defaultPorts[s] && (a.port = d.defaultPorts[s]);
  5955. }
  5956. }
  5957. i.isObject(a)
  5958. ? i.each(n, function(b) {
  5959. var c = b + 'name';
  5960. a[c] && a[b] ? 0 === a[b].indexOf(a[c]) && (a[b] = a[c]) : a[c] && (a[b] = a[c]),
  5961. delete a[c];
  5962. })
  5963. : (a = {}),
  5964. !a.auth && b.httpAuth && (a.auth = b.httpAuth),
  5965. a.auth &&
  5966. ((a.headers = a.headers || {}),
  5967. (a.headers.Authorization = 'Basic ' + f(a.auth)),
  5968. delete a.auth),
  5969. i.forOwn(
  5970. a,
  5971. i.bind(function(a, b) {
  5972. null != a && (this[b] = i.clone(a));
  5973. }, this)
  5974. ),
  5975. null === this.query
  5976. ? (this.query = {})
  5977. : i.isPlainObject(this.query) || (this.query = h.parse(this.query)),
  5978. j.isNumeric(this.port) ? (this.port = parseInt(this.port, 10)) : (this.port = 9200),
  5979. '/' === this.path
  5980. ? (this.path = '')
  5981. : this.path && '/' !== this.path.charAt(0) && (this.path = '/' + (this.path || '')),
  5982. ':' === this.protocol.substr(-1) &&
  5983. (this.protocol = this.protocol.substring(0, this.protocol.length - 1));
  5984. }
  5985. function e(a, b) {
  5986. return function(c) {
  5987. b && (c = b.call(this, c));
  5988. var d = this[a];
  5989. return d || c ? (c && (d = i.assign({}, d, c)), i.size(d) ? d : null) : null;
  5990. };
  5991. }
  5992. a.exports = d;
  5993. var f,
  5994. g = c(13),
  5995. h = c(14),
  5996. i = c(0),
  5997. j = c(2),
  5998. k = /^([a-z]+:)?\/\//,
  5999. l = 'http:';
  6000. 'undefined' != typeof window &&
  6001. 'undefined' != typeof window.location &&
  6002. ((l = window.location.protocol), (f = window.btoa)),
  6003. (f =
  6004. f ||
  6005. function(a) {
  6006. return new b(a, 'utf8').toString('base64');
  6007. });
  6008. var m = ['protocol', 'hostname', 'pathname', 'port', 'auth', 'query'],
  6009. n = ['host', 'path'],
  6010. o = {
  6011. pfx: null,
  6012. key: null,
  6013. passphrase: null,
  6014. cert: null,
  6015. ca: null,
  6016. ciphers: null,
  6017. rejectUnauthorized: !1,
  6018. secureProtocol: null
  6019. };
  6020. (d.defaultPorts = { http: 80, https: 443 }),
  6021. (d.prototype.makeUrl = function(a) {
  6022. a = a || {};
  6023. var b = '';
  6024. this.port !== d.defaultPorts[this.protocol] && (b = ':' + this.port);
  6025. var c = '' + (this.path || '') + (a.path || '');
  6026. '/' !== c.charAt(0) && (c = '/' + c);
  6027. var e = h.stringify(this.getQuery(a.query));
  6028. return this.host
  6029. ? this.protocol + '://' + this.host + b + c + (e ? '?' + e : '')
  6030. : c + (e ? '?' + e : '');
  6031. }),
  6032. (d.prototype.getHeaders = e('headers', function(a) {
  6033. return this.suggestCompression
  6034. ? i.defaults(a || {}, { 'Accept-Encoding': 'gzip,deflate' })
  6035. : a;
  6036. })),
  6037. (d.prototype.getQuery = e('query', function(a) {
  6038. return 'string' == typeof a ? h.parse(a) : a;
  6039. })),
  6040. (d.prototype.toString = function() {
  6041. return this.makeUrl();
  6042. });
  6043. }.call(b, c(12).Buffer));
  6044. },
  6045. function(a, b, c) {
  6046. (function(b) {
  6047. function d(a) {
  6048. (a = a || {}),
  6049. f.makeBoundMethods(this),
  6050. a.log ? (this.log = a.log) : ((this.log = new g()), (a.log = this.log)),
  6051. (this._config = a),
  6052. (this.selector = f.funcEnum(a, 'selector', d.selectors, d.defaultSelector)),
  6053. (this.Connection = f.funcEnum(
  6054. a,
  6055. 'connectionClass',
  6056. d.connectionClasses,
  6057. d.defaultConnectionClass
  6058. )),
  6059. (this.deadTimeout = a.hasOwnProperty('deadTimeout') ? a.deadTimeout : 6e4),
  6060. (this.maxDeadTimeout = a.hasOwnProperty('maxDeadTimeout') ? a.maxDeadTimeout : 18e5),
  6061. (this.calcDeadTimeout = f.funcEnum(
  6062. a,
  6063. 'calcDeadTimeout',
  6064. d.calcDeadTimeoutOptions,
  6065. 'exponential'
  6066. )),
  6067. (this.index = {}),
  6068. (this._conns = { alive: [], dead: [] }),
  6069. (this._timeouts = []);
  6070. }
  6071. a.exports = d;
  6072. var e = c(0),
  6073. f = c(2),
  6074. g = c(5);
  6075. (d.selectors = c(18)),
  6076. (d.defaultSelector = 'roundRobin'),
  6077. (d.connectionClasses = c(19)),
  6078. (d.defaultConnectionClass = d.connectionClasses._default),
  6079. delete d.connectionClasses._default,
  6080. (d.calcDeadTimeoutOptions = {
  6081. flat: function(a, b) {
  6082. return b;
  6083. },
  6084. exponential: function(a, b) {
  6085. return Math.min(2 * b * Math.pow(2, 0.5 * a - 1), this.maxDeadTimeout);
  6086. }
  6087. }),
  6088. (d.prototype.select = function(a) {
  6089. if (this._conns.alive.length)
  6090. if (this.selector.length > 1) this.selector(this._conns.alive, a);
  6091. else
  6092. try {
  6093. f.nextTick(a, void 0, this.selector(this._conns.alive));
  6094. } catch (b) {
  6095. a(b);
  6096. }
  6097. else this._timeouts.length ? this._selectDeadConnection(a) : f.nextTick(a, void 0);
  6098. }),
  6099. (d.prototype.onStatusSet = f.handler(function(a, b, c) {
  6100. var d,
  6101. f = 'dead' === a,
  6102. g = f && 'dead' === b,
  6103. h = !f && 'dead' === b,
  6104. i = b === a,
  6105. j = this._conns[b],
  6106. k = this._conns[a];
  6107. return (
  6108. !(!i || f) ||
  6109. (j !== k &&
  6110. (e.isArray(j) && ((d = j.indexOf(c)), d !== -1 && j.splice(d, 1)),
  6111. e.isArray(k) && ((d = k.indexOf(c)), d === -1 && k.push(c))),
  6112. f && this._onConnectionDied(c, g),
  6113. void (h && this._onConnectionRevived(c)))
  6114. );
  6115. })),
  6116. (d.prototype._onConnectionRevived = function(a) {
  6117. for (var b, c = 0; c < this._timeouts.length; c++)
  6118. if (this._timeouts[c].conn === a) {
  6119. (b = this._timeouts[c]), b.id && clearTimeout(b.id), this._timeouts.splice(c, 1);
  6120. break;
  6121. }
  6122. }),
  6123. (d.prototype._onConnectionDied = function(a, b) {
  6124. var c;
  6125. if (b) {
  6126. for (var d = 0; d < this._timeouts.length; d++)
  6127. if (this._timeouts[d].conn === a) {
  6128. c = this._timeouts[d];
  6129. break;
  6130. }
  6131. } else
  6132. (c = {
  6133. conn: a,
  6134. attempt: 0,
  6135. revive: function(b) {
  6136. c.attempt++,
  6137. a.ping(function(c) {
  6138. a.setStatus(c ? 'dead' : 'alive'), b && 'function' == typeof b && b(c);
  6139. });
  6140. }
  6141. }),
  6142. this._timeouts.push(c);
  6143. c.id && clearTimeout(c.id);
  6144. var e = this.calcDeadTimeout(c.attempt, this.deadTimeout);
  6145. (c.id = setTimeout(c.revive, e)), (c.runAt = f.now() + e);
  6146. }),
  6147. (d.prototype._selectDeadConnection = function(a) {
  6148. var c = e.sortBy(this._timeouts, 'runAt'),
  6149. d = this.log;
  6150. b.nextTick(function e() {
  6151. var f = c.shift();
  6152. return f
  6153. ? f.conn
  6154. ? void ('dead' === f.conn.status
  6155. ? f.revive(function(c) {
  6156. c
  6157. ? (d.warning('Unable to revive connection: ' + f.conn.id),
  6158. b.nextTick(e))
  6159. : a(void 0, f.conn);
  6160. })
  6161. : a(void 0, f.conn))
  6162. : void e()
  6163. : void a(void 0);
  6164. });
  6165. }),
  6166. (d.prototype.getConnections = function(a, b) {
  6167. var c;
  6168. return (
  6169. (c = a ? this._conns[a] : this._conns[this._conns.alive.length ? 'alive' : 'dead']),
  6170. null == b ? c.slice(0) : e.shuffle(c).slice(0, b)
  6171. );
  6172. }),
  6173. (d.prototype.addConnection = function(a) {
  6174. a.id || (a.id = a.host.toString()),
  6175. this.index[a.id] ||
  6176. (this.log.info('Adding connection to', a.id),
  6177. (this.index[a.id] = a),
  6178. a.on('status set', this.bound.onStatusSet),
  6179. a.setStatus('alive'));
  6180. }),
  6181. (d.prototype.removeConnection = function(a) {
  6182. a.id || (a.id = a.host.toString()),
  6183. this.index[a.id] &&
  6184. (delete this.index[a.id],
  6185. a.setStatus('closed'),
  6186. a.removeListener('status set', this.bound.onStatusSet));
  6187. }),
  6188. (d.prototype.setHosts = function(a) {
  6189. var b,
  6190. c,
  6191. d,
  6192. f,
  6193. g = e.clone(this.index);
  6194. for (c = 0; c < a.length; c++)
  6195. (f = a[c]),
  6196. (d = f.toString()),
  6197. this.index[d]
  6198. ? delete g[d]
  6199. : ((b = new this.Connection(f, this._config)),
  6200. (b.id = d),
  6201. this.addConnection(b));
  6202. var h = e.keys(g);
  6203. for (c = 0; c < h.length; c++) this.removeConnection(this.index[h[c]]);
  6204. }),
  6205. (d.prototype.getAllHosts = function() {
  6206. return e.values(this.index).map(function(a) {
  6207. return a.host;
  6208. });
  6209. }),
  6210. (d.prototype.close = function() {
  6211. this.setHosts([]);
  6212. }),
  6213. (d.prototype.empty = d.prototype.close);
  6214. }.call(b, c(3)));
  6215. },
  6216. function(a, b, c) {
  6217. function d(a) {
  6218. function b() {
  6219. a.hasOwnProperty('log') || (a.log = 'warning'),
  6220. a.hosts || a.host || (a.host = 'http://localhost:9200'),
  6221. (this.close = function() {
  6222. this.transport.close();
  6223. }),
  6224. (this.transport = new e(a)),
  6225. g.each(
  6226. b.prototype,
  6227. g.bind(function(a, b) {
  6228. a.prototype instanceof f.ApiNamespace && (this[b] = new a(this.transport, this));
  6229. }, this)
  6230. ),
  6231. delete this._namespaces;
  6232. }
  6233. if (((a = a || {}), a.__reused))
  6234. throw new Error(
  6235. 'Do not reuse objects to configure the elasticsearch Client class: https://github.com/elasticsearch/elasticsearch-js/issues/33'
  6236. );
  6237. (a.__reused = !0),
  6238. (b.prototype = h.funcEnum(a, 'apiVersion', d.apis, '_default')),
  6239. a.sniffEndpoint || b.prototype !== d.apis['0.90'] || (a.sniffEndpoint = '/_cluster/nodes');
  6240. var i = b;
  6241. return (
  6242. a.plugins &&
  6243. ((i.prototype = g.cloneDeep(i.prototype)),
  6244. g.each(a.plugins, function(b) {
  6245. i =
  6246. b(i, a, {
  6247. apis: c(24),
  6248. connectors: c(19),
  6249. loggers: c(16),
  6250. selectors: c(18),
  6251. serializers: c(21),
  6252. Client: c(10),
  6253. clientAction: f,
  6254. Connection: c(20),
  6255. ConnectionPool: c(9),
  6256. Errors: c(4),
  6257. Host: c(8),
  6258. Log: c(5),
  6259. Logger: c(17),
  6260. NodesToHost: c(23),
  6261. Transport: c(6)
  6262. }) || i;
  6263. })),
  6264. new i()
  6265. );
  6266. }
  6267. a.exports = d;
  6268. var e = c(6),
  6269. f = c(1),
  6270. g = c(0),
  6271. h = c(2);
  6272. d.apis = c(24);
  6273. },
  6274. function(a, b) {
  6275. a.exports = function(a) {
  6276. return (
  6277. a.webpackPolyfill ||
  6278. ((a.deprecate = function() {}),
  6279. (a.paths = []),
  6280. a.children || (a.children = []),
  6281. Object.defineProperty(a, 'loaded', {
  6282. enumerable: !0,
  6283. get: function() {
  6284. return a.l;
  6285. }
  6286. }),
  6287. Object.defineProperty(a, 'id', {
  6288. enumerable: !0,
  6289. get: function() {
  6290. return a.i;
  6291. }
  6292. }),
  6293. (a.webpackPolyfill = 1)),
  6294. a
  6295. );
  6296. };
  6297. },
  6298. function(a, b, c) {
  6299. 'use strict';
  6300. (function(a) {
  6301. function d() {
  6302. try {
  6303. var a = new Uint8Array(1);
  6304. return (
  6305. (a.__proto__ = {
  6306. __proto__: Uint8Array.prototype,
  6307. foo: function() {
  6308. return 42;
  6309. }
  6310. }),
  6311. 42 === a.foo() && 'function' == typeof a.subarray && 0 === a.subarray(1, 1).byteLength
  6312. );
  6313. } catch (a) {
  6314. return !1;
  6315. }
  6316. }
  6317. function e() {
  6318. return g.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
  6319. }
  6320. function f(a, b) {
  6321. if (e() < b) throw new RangeError('Invalid typed array length');
  6322. return (
  6323. g.TYPED_ARRAY_SUPPORT
  6324. ? ((a = new Uint8Array(b)), (a.__proto__ = g.prototype))
  6325. : (null === a && (a = new g(b)), (a.length = b)),
  6326. a
  6327. );
  6328. }
  6329. function g(a, b, c) {
  6330. if (!(g.TYPED_ARRAY_SUPPORT || this instanceof g)) return new g(a, b, c);
  6331. if ('number' == typeof a) {
  6332. if ('string' == typeof b)
  6333. throw new Error('If encoding is specified then the first argument must be a string');
  6334. return k(this, a);
  6335. }
  6336. return h(this, a, b, c);
  6337. }
  6338. function h(a, b, c, d) {
  6339. if ('number' == typeof b) throw new TypeError('"value" argument must not be a number');
  6340. return 'undefined' != typeof ArrayBuffer && b instanceof ArrayBuffer
  6341. ? n(a, b, c, d)
  6342. : 'string' == typeof b
  6343. ? l(a, b, c)
  6344. : o(a, b);
  6345. }
  6346. function i(a) {
  6347. if ('number' != typeof a) throw new TypeError('"size" argument must be a number');
  6348. if (a < 0) throw new RangeError('"size" argument must not be negative');
  6349. }
  6350. function j(a, b, c, d) {
  6351. return (
  6352. i(b),
  6353. b <= 0
  6354. ? f(a, b)
  6355. : void 0 !== c
  6356. ? 'string' == typeof d
  6357. ? f(a, b).fill(c, d)
  6358. : f(a, b).fill(c)
  6359. : f(a, b)
  6360. );
  6361. }
  6362. function k(a, b) {
  6363. if ((i(b), (a = f(a, b < 0 ? 0 : 0 | p(b))), !g.TYPED_ARRAY_SUPPORT))
  6364. for (var c = 0; c < b; ++c) a[c] = 0;
  6365. return a;
  6366. }
  6367. function l(a, b, c) {
  6368. if ((('string' == typeof c && '' !== c) || (c = 'utf8'), !g.isEncoding(c)))
  6369. throw new TypeError('"encoding" must be a valid string encoding');
  6370. var d = 0 | r(b, c);
  6371. a = f(a, d);
  6372. var e = a.write(b, c);
  6373. return e !== d && (a = a.slice(0, e)), a;
  6374. }
  6375. function m(a, b) {
  6376. var c = b.length < 0 ? 0 : 0 | p(b.length);
  6377. a = f(a, c);
  6378. for (var d = 0; d < c; d += 1) a[d] = 255 & b[d];
  6379. return a;
  6380. }
  6381. function n(a, b, c, d) {
  6382. if ((b.byteLength, c < 0 || b.byteLength < c))
  6383. throw new RangeError("'offset' is out of bounds");
  6384. if (b.byteLength < c + (d || 0)) throw new RangeError("'length' is out of bounds");
  6385. return (
  6386. (b =
  6387. void 0 === c && void 0 === d
  6388. ? new Uint8Array(b)
  6389. : void 0 === d
  6390. ? new Uint8Array(b, c)
  6391. : new Uint8Array(b, c, d)),
  6392. g.TYPED_ARRAY_SUPPORT ? ((a = b), (a.__proto__ = g.prototype)) : (a = m(a, b)),
  6393. a
  6394. );
  6395. }
  6396. function o(a, b) {
  6397. if (g.isBuffer(b)) {
  6398. var c = 0 | p(b.length);
  6399. return (a = f(a, c)), 0 === a.length ? a : (b.copy(a, 0, 0, c), a);
  6400. }
  6401. if (b) {
  6402. if (('undefined' != typeof ArrayBuffer && b.buffer instanceof ArrayBuffer) || 'length' in b)
  6403. return 'number' != typeof b.length || Y(b.length) ? f(a, 0) : m(a, b);
  6404. if ('Buffer' === b.type && _(b.data)) return m(a, b.data);
  6405. }
  6406. throw new TypeError(
  6407. 'First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.'
  6408. );
  6409. }
  6410. function p(a) {
  6411. if (a >= e())
  6412. throw new RangeError(
  6413. 'Attempt to allocate Buffer larger than maximum size: 0x' + e().toString(16) + ' bytes'
  6414. );
  6415. return 0 | a;
  6416. }
  6417. function q(a) {
  6418. return +a != a && (a = 0), g.alloc(+a);
  6419. }
  6420. function r(a, b) {
  6421. if (g.isBuffer(a)) return a.length;
  6422. if (
  6423. 'undefined' != typeof ArrayBuffer &&
  6424. 'function' == typeof ArrayBuffer.isView &&
  6425. (ArrayBuffer.isView(a) || a instanceof ArrayBuffer)
  6426. )
  6427. return a.byteLength;
  6428. 'string' != typeof a && (a = '' + a);
  6429. var c = a.length;
  6430. if (0 === c) return 0;
  6431. for (var d = !1; ; )
  6432. switch (b) {
  6433. case 'ascii':
  6434. case 'latin1':
  6435. case 'binary':
  6436. return c;
  6437. case 'utf8':
  6438. case 'utf-8':
  6439. case void 0:
  6440. return T(a).length;
  6441. case 'ucs2':
  6442. case 'ucs-2':
  6443. case 'utf16le':
  6444. case 'utf-16le':
  6445. return 2 * c;
  6446. case 'hex':
  6447. return c >>> 1;
  6448. case 'base64':
  6449. return W(a).length;
  6450. default:
  6451. if (d) return T(a).length;
  6452. (b = ('' + b).toLowerCase()), (d = !0);
  6453. }
  6454. }
  6455. function s(a, b, c) {
  6456. var d = !1;
  6457. if (((void 0 === b || b < 0) && (b = 0), b > this.length)) return '';
  6458. if (((void 0 === c || c > this.length) && (c = this.length), c <= 0)) return '';
  6459. if (((c >>>= 0), (b >>>= 0), c <= b)) return '';
  6460. for (a || (a = 'utf8'); ; )
  6461. switch (a) {
  6462. case 'hex':
  6463. return H(this, b, c);
  6464. case 'utf8':
  6465. case 'utf-8':
  6466. return D(this, b, c);
  6467. case 'ascii':
  6468. return F(this, b, c);
  6469. case 'latin1':
  6470. case 'binary':
  6471. return G(this, b, c);
  6472. case 'base64':
  6473. return C(this, b, c);
  6474. case 'ucs2':
  6475. case 'ucs-2':
  6476. case 'utf16le':
  6477. case 'utf-16le':
  6478. return I(this, b, c);
  6479. default:
  6480. if (d) throw new TypeError('Unknown encoding: ' + a);
  6481. (a = (a + '').toLowerCase()), (d = !0);
  6482. }
  6483. }
  6484. function t(a, b, c) {
  6485. var d = a[b];
  6486. (a[b] = a[c]), (a[c] = d);
  6487. }
  6488. function u(a, b, c, d, e) {
  6489. if (0 === a.length) return -1;
  6490. if (
  6491. ('string' == typeof c
  6492. ? ((d = c), (c = 0))
  6493. : c > 2147483647
  6494. ? (c = 2147483647)
  6495. : c < -2147483648 && (c = -2147483648),
  6496. (c = +c),
  6497. isNaN(c) && (c = e ? 0 : a.length - 1),
  6498. c < 0 && (c = a.length + c),
  6499. c >= a.length)
  6500. ) {
  6501. if (e) return -1;
  6502. c = a.length - 1;
  6503. } else if (c < 0) {
  6504. if (!e) return -1;
  6505. c = 0;
  6506. }
  6507. if (('string' == typeof b && (b = g.from(b, d)), g.isBuffer(b)))
  6508. return 0 === b.length ? -1 : v(a, b, c, d, e);
  6509. if ('number' == typeof b)
  6510. return (
  6511. (b = 255 & b),
  6512. g.TYPED_ARRAY_SUPPORT && 'function' == typeof Uint8Array.prototype.indexOf
  6513. ? e
  6514. ? Uint8Array.prototype.indexOf.call(a, b, c)
  6515. : Uint8Array.prototype.lastIndexOf.call(a, b, c)
  6516. : v(a, [b], c, d, e)
  6517. );
  6518. throw new TypeError('val must be string, number or Buffer');
  6519. }
  6520. function v(a, b, c, d, e) {
  6521. function f(a, b) {
  6522. return 1 === g ? a[b] : a.readUInt16BE(b * g);
  6523. }
  6524. var g = 1,
  6525. h = a.length,
  6526. i = b.length;
  6527. if (
  6528. void 0 !== d &&
  6529. ((d = String(d).toLowerCase()),
  6530. 'ucs2' === d || 'ucs-2' === d || 'utf16le' === d || 'utf-16le' === d)
  6531. ) {
  6532. if (a.length < 2 || b.length < 2) return -1;
  6533. (g = 2), (h /= 2), (i /= 2), (c /= 2);
  6534. }
  6535. var j;
  6536. if (e) {
  6537. var k = -1;
  6538. for (j = c; j < h; j++)
  6539. if (f(a, j) === f(b, k === -1 ? 0 : j - k)) {
  6540. if ((k === -1 && (k = j), j - k + 1 === i)) return k * g;
  6541. } else k !== -1 && (j -= j - k), (k = -1);
  6542. } else
  6543. for (c + i > h && (c = h - i), j = c; j >= 0; j--) {
  6544. for (var l = !0, m = 0; m < i; m++)
  6545. if (f(a, j + m) !== f(b, m)) {
  6546. l = !1;
  6547. break;
  6548. }
  6549. if (l) return j;
  6550. }
  6551. return -1;
  6552. }
  6553. function w(a, b, c, d) {
  6554. c = Number(c) || 0;
  6555. var e = a.length - c;
  6556. d ? ((d = Number(d)), d > e && (d = e)) : (d = e);
  6557. var f = b.length;
  6558. if (f % 2 !== 0) throw new TypeError('Invalid hex string');
  6559. d > f / 2 && (d = f / 2);
  6560. for (var g = 0; g < d; ++g) {
  6561. var h = parseInt(b.substr(2 * g, 2), 16);
  6562. if (isNaN(h)) return g;
  6563. a[c + g] = h;
  6564. }
  6565. return g;
  6566. }
  6567. function x(a, b, c, d) {
  6568. return X(T(b, a.length - c), a, c, d);
  6569. }
  6570. function y(a, b, c, d) {
  6571. return X(U(b), a, c, d);
  6572. }
  6573. function z(a, b, c, d) {
  6574. return y(a, b, c, d);
  6575. }
  6576. function A(a, b, c, d) {
  6577. return X(W(b), a, c, d);
  6578. }
  6579. function B(a, b, c, d) {
  6580. return X(V(b, a.length - c), a, c, d);
  6581. }
  6582. function C(a, b, c) {
  6583. return 0 === b && c === a.length ? Z.fromByteArray(a) : Z.fromByteArray(a.slice(b, c));
  6584. }
  6585. function D(a, b, c) {
  6586. c = Math.min(a.length, c);
  6587. for (var d = [], e = b; e < c; ) {
  6588. var f = a[e],
  6589. g = null,
  6590. h = f > 239 ? 4 : f > 223 ? 3 : f > 191 ? 2 : 1;
  6591. if (e + h <= c) {
  6592. var i, j, k, l;
  6593. switch (h) {
  6594. case 1:
  6595. f < 128 && (g = f);
  6596. break;
  6597. case 2:
  6598. (i = a[e + 1]),
  6599. 128 === (192 & i) && ((l = ((31 & f) << 6) | (63 & i)), l > 127 && (g = l));
  6600. break;
  6601. case 3:
  6602. (i = a[e + 1]),
  6603. (j = a[e + 2]),
  6604. 128 === (192 & i) &&
  6605. 128 === (192 & j) &&
  6606. ((l = ((15 & f) << 12) | ((63 & i) << 6) | (63 & j)),
  6607. l > 2047 && (l < 55296 || l > 57343) && (g = l));
  6608. break;
  6609. case 4:
  6610. (i = a[e + 1]),
  6611. (j = a[e + 2]),
  6612. (k = a[e + 3]),
  6613. 128 === (192 & i) &&
  6614. 128 === (192 & j) &&
  6615. 128 === (192 & k) &&
  6616. ((l = ((15 & f) << 18) | ((63 & i) << 12) | ((63 & j) << 6) | (63 & k)),
  6617. l > 65535 && l < 1114112 && (g = l));
  6618. }
  6619. }
  6620. null === g
  6621. ? ((g = 65533), (h = 1))
  6622. : g > 65535 &&
  6623. ((g -= 65536), d.push(((g >>> 10) & 1023) | 55296), (g = 56320 | (1023 & g))),
  6624. d.push(g),
  6625. (e += h);
  6626. }
  6627. return E(d);
  6628. }
  6629. function E(a) {
  6630. var b = a.length;
  6631. if (b <= aa) return String.fromCharCode.apply(String, a);
  6632. for (var c = '', d = 0; d < b; ) c += String.fromCharCode.apply(String, a.slice(d, (d += aa)));
  6633. return c;
  6634. }
  6635. function F(a, b, c) {
  6636. var d = '';
  6637. c = Math.min(a.length, c);
  6638. for (var e = b; e < c; ++e) d += String.fromCharCode(127 & a[e]);
  6639. return d;
  6640. }
  6641. function G(a, b, c) {
  6642. var d = '';
  6643. c = Math.min(a.length, c);
  6644. for (var e = b; e < c; ++e) d += String.fromCharCode(a[e]);
  6645. return d;
  6646. }
  6647. function H(a, b, c) {
  6648. var d = a.length;
  6649. (!b || b < 0) && (b = 0), (!c || c < 0 || c > d) && (c = d);
  6650. for (var e = '', f = b; f < c; ++f) e += S(a[f]);
  6651. return e;
  6652. }
  6653. function I(a, b, c) {
  6654. for (var d = a.slice(b, c), e = '', f = 0; f < d.length; f += 2)
  6655. e += String.fromCharCode(d[f] + 256 * d[f + 1]);
  6656. return e;
  6657. }
  6658. function J(a, b, c) {
  6659. if (a % 1 !== 0 || a < 0) throw new RangeError('offset is not uint');
  6660. if (a + b > c) throw new RangeError('Trying to access beyond buffer length');
  6661. }
  6662. function K(a, b, c, d, e, f) {
  6663. if (!g.isBuffer(a)) throw new TypeError('"buffer" argument must be a Buffer instance');
  6664. if (b > e || b < f) throw new RangeError('"value" argument is out of bounds');
  6665. if (c + d > a.length) throw new RangeError('Index out of range');
  6666. }
  6667. function L(a, b, c, d) {
  6668. b < 0 && (b = 65535 + b + 1);
  6669. for (var e = 0, f = Math.min(a.length - c, 2); e < f; ++e)
  6670. a[c + e] = (b & (255 << (8 * (d ? e : 1 - e)))) >>> (8 * (d ? e : 1 - e));
  6671. }
  6672. function M(a, b, c, d) {
  6673. b < 0 && (b = 4294967295 + b + 1);
  6674. for (var e = 0, f = Math.min(a.length - c, 4); e < f; ++e)
  6675. a[c + e] = (b >>> (8 * (d ? e : 3 - e))) & 255;
  6676. }
  6677. function N(a, b, c, d, e, f) {
  6678. if (c + d > a.length) throw new RangeError('Index out of range');
  6679. if (c < 0) throw new RangeError('Index out of range');
  6680. }
  6681. function O(a, b, c, d, e) {
  6682. return (
  6683. e || N(a, b, c, 4, 3.4028234663852886e38, -3.4028234663852886e38),
  6684. $.write(a, b, c, d, 23, 4),
  6685. c + 4
  6686. );
  6687. }
  6688. function P(a, b, c, d, e) {
  6689. return (
  6690. e || N(a, b, c, 8, 1.7976931348623157e308, -1.7976931348623157e308),
  6691. $.write(a, b, c, d, 52, 8),
  6692. c + 8
  6693. );
  6694. }
  6695. function Q(a) {
  6696. if (((a = R(a).replace(ba, '')), a.length < 2)) return '';
  6697. for (; a.length % 4 !== 0; ) a += '=';
  6698. return a;
  6699. }
  6700. function R(a) {
  6701. return a.trim ? a.trim() : a.replace(/^\s+|\s+$/g, '');
  6702. }
  6703. function S(a) {
  6704. return a < 16 ? '0' + a.toString(16) : a.toString(16);
  6705. }
  6706. function T(a, b) {
  6707. b = b || 1 / 0;
  6708. for (var c, d = a.length, e = null, f = [], g = 0; g < d; ++g) {
  6709. if (((c = a.charCodeAt(g)), c > 55295 && c < 57344)) {
  6710. if (!e) {
  6711. if (c > 56319) {
  6712. (b -= 3) > -1 && f.push(239, 191, 189);
  6713. continue;
  6714. }
  6715. if (g + 1 === d) {
  6716. (b -= 3) > -1 && f.push(239, 191, 189);
  6717. continue;
  6718. }
  6719. e = c;
  6720. continue;
  6721. }
  6722. if (c < 56320) {
  6723. (b -= 3) > -1 && f.push(239, 191, 189), (e = c);
  6724. continue;
  6725. }
  6726. c = (((e - 55296) << 10) | (c - 56320)) + 65536;
  6727. } else e && (b -= 3) > -1 && f.push(239, 191, 189);
  6728. if (((e = null), c < 128)) {
  6729. if ((b -= 1) < 0) break;
  6730. f.push(c);
  6731. } else if (c < 2048) {
  6732. if ((b -= 2) < 0) break;
  6733. f.push((c >> 6) | 192, (63 & c) | 128);
  6734. } else if (c < 65536) {
  6735. if ((b -= 3) < 0) break;
  6736. f.push((c >> 12) | 224, ((c >> 6) & 63) | 128, (63 & c) | 128);
  6737. } else {
  6738. if (!(c < 1114112)) throw new Error('Invalid code point');
  6739. if ((b -= 4) < 0) break;
  6740. f.push((c >> 18) | 240, ((c >> 12) & 63) | 128, ((c >> 6) & 63) | 128, (63 & c) | 128);
  6741. }
  6742. }
  6743. return f;
  6744. }
  6745. function U(a) {
  6746. for (var b = [], c = 0; c < a.length; ++c) b.push(255 & a.charCodeAt(c));
  6747. return b;
  6748. }
  6749. function V(a, b) {
  6750. for (var c, d, e, f = [], g = 0; g < a.length && !((b -= 2) < 0); ++g)
  6751. (c = a.charCodeAt(g)), (d = c >> 8), (e = c % 256), f.push(e), f.push(d);
  6752. return f;
  6753. }
  6754. function W(a) {
  6755. return Z.toByteArray(Q(a));
  6756. }
  6757. function X(a, b, c, d) {
  6758. for (var e = 0; e < d && !(e + c >= b.length || e >= a.length); ++e) b[e + c] = a[e];
  6759. return e;
  6760. }
  6761. function Y(a) {
  6762. return a !== a;
  6763. }
  6764. var Z = c(27),
  6765. $ = c(28),
  6766. _ = c(29);
  6767. (b.Buffer = g),
  6768. (b.SlowBuffer = q),
  6769. (b.INSPECT_MAX_BYTES = 50),
  6770. (g.TYPED_ARRAY_SUPPORT = void 0 !== a.TYPED_ARRAY_SUPPORT ? a.TYPED_ARRAY_SUPPORT : d()),
  6771. (b.kMaxLength = e()),
  6772. (g.poolSize = 8192),
  6773. (g._augment = function(a) {
  6774. return (a.__proto__ = g.prototype), a;
  6775. }),
  6776. (g.from = function(a, b, c) {
  6777. return h(null, a, b, c);
  6778. }),
  6779. g.TYPED_ARRAY_SUPPORT &&
  6780. ((g.prototype.__proto__ = Uint8Array.prototype),
  6781. (g.__proto__ = Uint8Array),
  6782. 'undefined' != typeof Symbol &&
  6783. Symbol.species &&
  6784. g[Symbol.species] === g &&
  6785. Object.defineProperty(g, Symbol.species, { value: null, configurable: !0 })),
  6786. (g.alloc = function(a, b, c) {
  6787. return j(null, a, b, c);
  6788. }),
  6789. (g.allocUnsafe = function(a) {
  6790. return k(null, a);
  6791. }),
  6792. (g.allocUnsafeSlow = function(a) {
  6793. return k(null, a);
  6794. }),
  6795. (g.isBuffer = function(a) {
  6796. return !(null == a || !a._isBuffer);
  6797. }),
  6798. (g.compare = function(a, b) {
  6799. if (!g.isBuffer(a) || !g.isBuffer(b)) throw new TypeError('Arguments must be Buffers');
  6800. if (a === b) return 0;
  6801. for (var c = a.length, d = b.length, e = 0, f = Math.min(c, d); e < f; ++e)
  6802. if (a[e] !== b[e]) {
  6803. (c = a[e]), (d = b[e]);
  6804. break;
  6805. }
  6806. return c < d ? -1 : d < c ? 1 : 0;
  6807. }),
  6808. (g.isEncoding = function(a) {
  6809. switch (String(a).toLowerCase()) {
  6810. case 'hex':
  6811. case 'utf8':
  6812. case 'utf-8':
  6813. case 'ascii':
  6814. case 'latin1':
  6815. case 'binary':
  6816. case 'base64':
  6817. case 'ucs2':
  6818. case 'ucs-2':
  6819. case 'utf16le':
  6820. case 'utf-16le':
  6821. return !0;
  6822. default:
  6823. return !1;
  6824. }
  6825. }),
  6826. (g.concat = function(a, b) {
  6827. if (!_(a)) throw new TypeError('"list" argument must be an Array of Buffers');
  6828. if (0 === a.length) return g.alloc(0);
  6829. var c;
  6830. if (void 0 === b) for (b = 0, c = 0; c < a.length; ++c) b += a[c].length;
  6831. var d = g.allocUnsafe(b),
  6832. e = 0;
  6833. for (c = 0; c < a.length; ++c) {
  6834. var f = a[c];
  6835. if (!g.isBuffer(f)) throw new TypeError('"list" argument must be an Array of Buffers');
  6836. f.copy(d, e), (e += f.length);
  6837. }
  6838. return d;
  6839. }),
  6840. (g.byteLength = r),
  6841. (g.prototype._isBuffer = !0),
  6842. (g.prototype.swap16 = function() {
  6843. var a = this.length;
  6844. if (a % 2 !== 0) throw new RangeError('Buffer size must be a multiple of 16-bits');
  6845. for (var b = 0; b < a; b += 2) t(this, b, b + 1);
  6846. return this;
  6847. }),
  6848. (g.prototype.swap32 = function() {
  6849. var a = this.length;
  6850. if (a % 4 !== 0) throw new RangeError('Buffer size must be a multiple of 32-bits');
  6851. for (var b = 0; b < a; b += 4) t(this, b, b + 3), t(this, b + 1, b + 2);
  6852. return this;
  6853. }),
  6854. (g.prototype.swap64 = function() {
  6855. var a = this.length;
  6856. if (a % 8 !== 0) throw new RangeError('Buffer size must be a multiple of 64-bits');
  6857. for (var b = 0; b < a; b += 8)
  6858. t(this, b, b + 7), t(this, b + 1, b + 6), t(this, b + 2, b + 5), t(this, b + 3, b + 4);
  6859. return this;
  6860. }),
  6861. (g.prototype.toString = function() {
  6862. var a = 0 | this.length;
  6863. return 0 === a ? '' : 0 === arguments.length ? D(this, 0, a) : s.apply(this, arguments);
  6864. }),
  6865. (g.prototype.equals = function(a) {
  6866. if (!g.isBuffer(a)) throw new TypeError('Argument must be a Buffer');
  6867. return this === a || 0 === g.compare(this, a);
  6868. }),
  6869. (g.prototype.inspect = function() {
  6870. var a = '',
  6871. c = b.INSPECT_MAX_BYTES;
  6872. return (
  6873. this.length > 0 &&
  6874. ((a = this.toString('hex', 0, c)
  6875. .match(/.{2}/g)
  6876. .join(' ')),
  6877. this.length > c && (a += ' ... ')),
  6878. '<Buffer ' + a + '>'
  6879. );
  6880. }),
  6881. (g.prototype.compare = function(a, b, c, d, e) {
  6882. if (!g.isBuffer(a)) throw new TypeError('Argument must be a Buffer');
  6883. if (
  6884. (void 0 === b && (b = 0),
  6885. void 0 === c && (c = a ? a.length : 0),
  6886. void 0 === d && (d = 0),
  6887. void 0 === e && (e = this.length),
  6888. b < 0 || c > a.length || d < 0 || e > this.length)
  6889. )
  6890. throw new RangeError('out of range index');
  6891. if (d >= e && b >= c) return 0;
  6892. if (d >= e) return -1;
  6893. if (b >= c) return 1;
  6894. if (((b >>>= 0), (c >>>= 0), (d >>>= 0), (e >>>= 0), this === a)) return 0;
  6895. for (
  6896. var f = e - d,
  6897. h = c - b,
  6898. i = Math.min(f, h),
  6899. j = this.slice(d, e),
  6900. k = a.slice(b, c),
  6901. l = 0;
  6902. l < i;
  6903. ++l
  6904. )
  6905. if (j[l] !== k[l]) {
  6906. (f = j[l]), (h = k[l]);
  6907. break;
  6908. }
  6909. return f < h ? -1 : h < f ? 1 : 0;
  6910. }),
  6911. (g.prototype.includes = function(a, b, c) {
  6912. return this.indexOf(a, b, c) !== -1;
  6913. }),
  6914. (g.prototype.indexOf = function(a, b, c) {
  6915. return u(this, a, b, c, !0);
  6916. }),
  6917. (g.prototype.lastIndexOf = function(a, b, c) {
  6918. return u(this, a, b, c, !1);
  6919. }),
  6920. (g.prototype.write = function(a, b, c, d) {
  6921. if (void 0 === b) (d = 'utf8'), (c = this.length), (b = 0);
  6922. else if (void 0 === c && 'string' == typeof b) (d = b), (c = this.length), (b = 0);
  6923. else {
  6924. if (!isFinite(b))
  6925. throw new Error(
  6926. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  6927. );
  6928. (b = 0 | b),
  6929. isFinite(c) ? ((c = 0 | c), void 0 === d && (d = 'utf8')) : ((d = c), (c = void 0));
  6930. }
  6931. var e = this.length - b;
  6932. if (
  6933. ((void 0 === c || c > e) && (c = e),
  6934. (a.length > 0 && (c < 0 || b < 0)) || b > this.length)
  6935. )
  6936. throw new RangeError('Attempt to write outside buffer bounds');
  6937. d || (d = 'utf8');
  6938. for (var f = !1; ; )
  6939. switch (d) {
  6940. case 'hex':
  6941. return w(this, a, b, c);
  6942. case 'utf8':
  6943. case 'utf-8':
  6944. return x(this, a, b, c);
  6945. case 'ascii':
  6946. return y(this, a, b, c);
  6947. case 'latin1':
  6948. case 'binary':
  6949. return z(this, a, b, c);
  6950. case 'base64':
  6951. return A(this, a, b, c);
  6952. case 'ucs2':
  6953. case 'ucs-2':
  6954. case 'utf16le':
  6955. case 'utf-16le':
  6956. return B(this, a, b, c);
  6957. default:
  6958. if (f) throw new TypeError('Unknown encoding: ' + d);
  6959. (d = ('' + d).toLowerCase()), (f = !0);
  6960. }
  6961. }),
  6962. (g.prototype.toJSON = function() {
  6963. return { type: 'Buffer', data: Array.prototype.slice.call(this._arr || this, 0) };
  6964. });
  6965. var aa = 4096;
  6966. (g.prototype.slice = function(a, b) {
  6967. var c = this.length;
  6968. (a = ~~a),
  6969. (b = void 0 === b ? c : ~~b),
  6970. a < 0 ? ((a += c), a < 0 && (a = 0)) : a > c && (a = c),
  6971. b < 0 ? ((b += c), b < 0 && (b = 0)) : b > c && (b = c),
  6972. b < a && (b = a);
  6973. var d;
  6974. if (g.TYPED_ARRAY_SUPPORT) (d = this.subarray(a, b)), (d.__proto__ = g.prototype);
  6975. else {
  6976. var e = b - a;
  6977. d = new g(e, void 0);
  6978. for (var f = 0; f < e; ++f) d[f] = this[f + a];
  6979. }
  6980. return d;
  6981. }),
  6982. (g.prototype.readUIntLE = function(a, b, c) {
  6983. (a = 0 | a), (b = 0 | b), c || J(a, b, this.length);
  6984. for (var d = this[a], e = 1, f = 0; ++f < b && (e *= 256); ) d += this[a + f] * e;
  6985. return d;
  6986. }),
  6987. (g.prototype.readUIntBE = function(a, b, c) {
  6988. (a = 0 | a), (b = 0 | b), c || J(a, b, this.length);
  6989. for (var d = this[a + --b], e = 1; b > 0 && (e *= 256); ) d += this[a + --b] * e;
  6990. return d;
  6991. }),
  6992. (g.prototype.readUInt8 = function(a, b) {
  6993. return b || J(a, 1, this.length), this[a];
  6994. }),
  6995. (g.prototype.readUInt16LE = function(a, b) {
  6996. return b || J(a, 2, this.length), this[a] | (this[a + 1] << 8);
  6997. }),
  6998. (g.prototype.readUInt16BE = function(a, b) {
  6999. return b || J(a, 2, this.length), (this[a] << 8) | this[a + 1];
  7000. }),
  7001. (g.prototype.readUInt32LE = function(a, b) {
  7002. return (
  7003. b || J(a, 4, this.length),
  7004. (this[a] | (this[a + 1] << 8) | (this[a + 2] << 16)) + 16777216 * this[a + 3]
  7005. );
  7006. }),
  7007. (g.prototype.readUInt32BE = function(a, b) {
  7008. return (
  7009. b || J(a, 4, this.length),
  7010. 16777216 * this[a] + ((this[a + 1] << 16) | (this[a + 2] << 8) | this[a + 3])
  7011. );
  7012. }),
  7013. (g.prototype.readIntLE = function(a, b, c) {
  7014. (a = 0 | a), (b = 0 | b), c || J(a, b, this.length);
  7015. for (var d = this[a], e = 1, f = 0; ++f < b && (e *= 256); ) d += this[a + f] * e;
  7016. return (e *= 128), d >= e && (d -= Math.pow(2, 8 * b)), d;
  7017. }),
  7018. (g.prototype.readIntBE = function(a, b, c) {
  7019. (a = 0 | a), (b = 0 | b), c || J(a, b, this.length);
  7020. for (var d = b, e = 1, f = this[a + --d]; d > 0 && (e *= 256); ) f += this[a + --d] * e;
  7021. return (e *= 128), f >= e && (f -= Math.pow(2, 8 * b)), f;
  7022. }),
  7023. (g.prototype.readInt8 = function(a, b) {
  7024. return b || J(a, 1, this.length), 128 & this[a] ? (255 - this[a] + 1) * -1 : this[a];
  7025. }),
  7026. (g.prototype.readInt16LE = function(a, b) {
  7027. b || J(a, 2, this.length);
  7028. var c = this[a] | (this[a + 1] << 8);
  7029. return 32768 & c ? 4294901760 | c : c;
  7030. }),
  7031. (g.prototype.readInt16BE = function(a, b) {
  7032. b || J(a, 2, this.length);
  7033. var c = this[a + 1] | (this[a] << 8);
  7034. return 32768 & c ? 4294901760 | c : c;
  7035. }),
  7036. (g.prototype.readInt32LE = function(a, b) {
  7037. return (
  7038. b || J(a, 4, this.length),
  7039. this[a] | (this[a + 1] << 8) | (this[a + 2] << 16) | (this[a + 3] << 24)
  7040. );
  7041. }),
  7042. (g.prototype.readInt32BE = function(a, b) {
  7043. return (
  7044. b || J(a, 4, this.length),
  7045. (this[a] << 24) | (this[a + 1] << 16) | (this[a + 2] << 8) | this[a + 3]
  7046. );
  7047. }),
  7048. (g.prototype.readFloatLE = function(a, b) {
  7049. return b || J(a, 4, this.length), $.read(this, a, !0, 23, 4);
  7050. }),
  7051. (g.prototype.readFloatBE = function(a, b) {
  7052. return b || J(a, 4, this.length), $.read(this, a, !1, 23, 4);
  7053. }),
  7054. (g.prototype.readDoubleLE = function(a, b) {
  7055. return b || J(a, 8, this.length), $.read(this, a, !0, 52, 8);
  7056. }),
  7057. (g.prototype.readDoubleBE = function(a, b) {
  7058. return b || J(a, 8, this.length), $.read(this, a, !1, 52, 8);
  7059. }),
  7060. (g.prototype.writeUIntLE = function(a, b, c, d) {
  7061. if (((a = +a), (b = 0 | b), (c = 0 | c), !d)) {
  7062. var e = Math.pow(2, 8 * c) - 1;
  7063. K(this, a, b, c, e, 0);
  7064. }
  7065. var f = 1,
  7066. g = 0;
  7067. for (this[b] = 255 & a; ++g < c && (f *= 256); ) this[b + g] = (a / f) & 255;
  7068. return b + c;
  7069. }),
  7070. (g.prototype.writeUIntBE = function(a, b, c, d) {
  7071. if (((a = +a), (b = 0 | b), (c = 0 | c), !d)) {
  7072. var e = Math.pow(2, 8 * c) - 1;
  7073. K(this, a, b, c, e, 0);
  7074. }
  7075. var f = c - 1,
  7076. g = 1;
  7077. for (this[b + f] = 255 & a; --f >= 0 && (g *= 256); ) this[b + f] = (a / g) & 255;
  7078. return b + c;
  7079. }),
  7080. (g.prototype.writeUInt8 = function(a, b, c) {
  7081. return (
  7082. (a = +a),
  7083. (b = 0 | b),
  7084. c || K(this, a, b, 1, 255, 0),
  7085. g.TYPED_ARRAY_SUPPORT || (a = Math.floor(a)),
  7086. (this[b] = 255 & a),
  7087. b + 1
  7088. );
  7089. }),
  7090. (g.prototype.writeUInt16LE = function(a, b, c) {
  7091. return (
  7092. (a = +a),
  7093. (b = 0 | b),
  7094. c || K(this, a, b, 2, 65535, 0),
  7095. g.TYPED_ARRAY_SUPPORT
  7096. ? ((this[b] = 255 & a), (this[b + 1] = a >>> 8))
  7097. : L(this, a, b, !0),
  7098. b + 2
  7099. );
  7100. }),
  7101. (g.prototype.writeUInt16BE = function(a, b, c) {
  7102. return (
  7103. (a = +a),
  7104. (b = 0 | b),
  7105. c || K(this, a, b, 2, 65535, 0),
  7106. g.TYPED_ARRAY_SUPPORT
  7107. ? ((this[b] = a >>> 8), (this[b + 1] = 255 & a))
  7108. : L(this, a, b, !1),
  7109. b + 2
  7110. );
  7111. }),
  7112. (g.prototype.writeUInt32LE = function(a, b, c) {
  7113. return (
  7114. (a = +a),
  7115. (b = 0 | b),
  7116. c || K(this, a, b, 4, 4294967295, 0),
  7117. g.TYPED_ARRAY_SUPPORT
  7118. ? ((this[b + 3] = a >>> 24),
  7119. (this[b + 2] = a >>> 16),
  7120. (this[b + 1] = a >>> 8),
  7121. (this[b] = 255 & a))
  7122. : M(this, a, b, !0),
  7123. b + 4
  7124. );
  7125. }),
  7126. (g.prototype.writeUInt32BE = function(a, b, c) {
  7127. return (
  7128. (a = +a),
  7129. (b = 0 | b),
  7130. c || K(this, a, b, 4, 4294967295, 0),
  7131. g.TYPED_ARRAY_SUPPORT
  7132. ? ((this[b] = a >>> 24),
  7133. (this[b + 1] = a >>> 16),
  7134. (this[b + 2] = a >>> 8),
  7135. (this[b + 3] = 255 & a))
  7136. : M(this, a, b, !1),
  7137. b + 4
  7138. );
  7139. }),
  7140. (g.prototype.writeIntLE = function(a, b, c, d) {
  7141. if (((a = +a), (b = 0 | b), !d)) {
  7142. var e = Math.pow(2, 8 * c - 1);
  7143. K(this, a, b, c, e - 1, -e);
  7144. }
  7145. var f = 0,
  7146. g = 1,
  7147. h = 0;
  7148. for (this[b] = 255 & a; ++f < c && (g *= 256); )
  7149. a < 0 && 0 === h && 0 !== this[b + f - 1] && (h = 1),
  7150. (this[b + f] = (((a / g) >> 0) - h) & 255);
  7151. return b + c;
  7152. }),
  7153. (g.prototype.writeIntBE = function(a, b, c, d) {
  7154. if (((a = +a), (b = 0 | b), !d)) {
  7155. var e = Math.pow(2, 8 * c - 1);
  7156. K(this, a, b, c, e - 1, -e);
  7157. }
  7158. var f = c - 1,
  7159. g = 1,
  7160. h = 0;
  7161. for (this[b + f] = 255 & a; --f >= 0 && (g *= 256); )
  7162. a < 0 && 0 === h && 0 !== this[b + f + 1] && (h = 1),
  7163. (this[b + f] = (((a / g) >> 0) - h) & 255);
  7164. return b + c;
  7165. }),
  7166. (g.prototype.writeInt8 = function(a, b, c) {
  7167. return (
  7168. (a = +a),
  7169. (b = 0 | b),
  7170. c || K(this, a, b, 1, 127, -128),
  7171. g.TYPED_ARRAY_SUPPORT || (a = Math.floor(a)),
  7172. a < 0 && (a = 255 + a + 1),
  7173. (this[b] = 255 & a),
  7174. b + 1
  7175. );
  7176. }),
  7177. (g.prototype.writeInt16LE = function(a, b, c) {
  7178. return (
  7179. (a = +a),
  7180. (b = 0 | b),
  7181. c || K(this, a, b, 2, 32767, -32768),
  7182. g.TYPED_ARRAY_SUPPORT
  7183. ? ((this[b] = 255 & a), (this[b + 1] = a >>> 8))
  7184. : L(this, a, b, !0),
  7185. b + 2
  7186. );
  7187. }),
  7188. (g.prototype.writeInt16BE = function(a, b, c) {
  7189. return (
  7190. (a = +a),
  7191. (b = 0 | b),
  7192. c || K(this, a, b, 2, 32767, -32768),
  7193. g.TYPED_ARRAY_SUPPORT
  7194. ? ((this[b] = a >>> 8), (this[b + 1] = 255 & a))
  7195. : L(this, a, b, !1),
  7196. b + 2
  7197. );
  7198. }),
  7199. (g.prototype.writeInt32LE = function(a, b, c) {
  7200. return (
  7201. (a = +a),
  7202. (b = 0 | b),
  7203. c || K(this, a, b, 4, 2147483647, -2147483648),
  7204. g.TYPED_ARRAY_SUPPORT
  7205. ? ((this[b] = 255 & a),
  7206. (this[b + 1] = a >>> 8),
  7207. (this[b + 2] = a >>> 16),
  7208. (this[b + 3] = a >>> 24))
  7209. : M(this, a, b, !0),
  7210. b + 4
  7211. );
  7212. }),
  7213. (g.prototype.writeInt32BE = function(a, b, c) {
  7214. return (
  7215. (a = +a),
  7216. (b = 0 | b),
  7217. c || K(this, a, b, 4, 2147483647, -2147483648),
  7218. a < 0 && (a = 4294967295 + a + 1),
  7219. g.TYPED_ARRAY_SUPPORT
  7220. ? ((this[b] = a >>> 24),
  7221. (this[b + 1] = a >>> 16),
  7222. (this[b + 2] = a >>> 8),
  7223. (this[b + 3] = 255 & a))
  7224. : M(this, a, b, !1),
  7225. b + 4
  7226. );
  7227. }),
  7228. (g.prototype.writeFloatLE = function(a, b, c) {
  7229. return O(this, a, b, !0, c);
  7230. }),
  7231. (g.prototype.writeFloatBE = function(a, b, c) {
  7232. return O(this, a, b, !1, c);
  7233. }),
  7234. (g.prototype.writeDoubleLE = function(a, b, c) {
  7235. return P(this, a, b, !0, c);
  7236. }),
  7237. (g.prototype.writeDoubleBE = function(a, b, c) {
  7238. return P(this, a, b, !1, c);
  7239. }),
  7240. (g.prototype.copy = function(a, b, c, d) {
  7241. if (
  7242. (c || (c = 0),
  7243. d || 0 === d || (d = this.length),
  7244. b >= a.length && (b = a.length),
  7245. b || (b = 0),
  7246. d > 0 && d < c && (d = c),
  7247. d === c)
  7248. )
  7249. return 0;
  7250. if (0 === a.length || 0 === this.length) return 0;
  7251. if (b < 0) throw new RangeError('targetStart out of bounds');
  7252. if (c < 0 || c >= this.length) throw new RangeError('sourceStart out of bounds');
  7253. if (d < 0) throw new RangeError('sourceEnd out of bounds');
  7254. d > this.length && (d = this.length), a.length - b < d - c && (d = a.length - b + c);
  7255. var e,
  7256. f = d - c;
  7257. if (this === a && c < b && b < d) for (e = f - 1; e >= 0; --e) a[e + b] = this[e + c];
  7258. else if (f < 1e3 || !g.TYPED_ARRAY_SUPPORT) for (e = 0; e < f; ++e) a[e + b] = this[e + c];
  7259. else Uint8Array.prototype.set.call(a, this.subarray(c, c + f), b);
  7260. return f;
  7261. }),
  7262. (g.prototype.fill = function(a, b, c, d) {
  7263. if ('string' == typeof a) {
  7264. if (
  7265. ('string' == typeof b
  7266. ? ((d = b), (b = 0), (c = this.length))
  7267. : 'string' == typeof c && ((d = c), (c = this.length)),
  7268. 1 === a.length)
  7269. ) {
  7270. var e = a.charCodeAt(0);
  7271. e < 256 && (a = e);
  7272. }
  7273. if (void 0 !== d && 'string' != typeof d)
  7274. throw new TypeError('encoding must be a string');
  7275. if ('string' == typeof d && !g.isEncoding(d))
  7276. throw new TypeError('Unknown encoding: ' + d);
  7277. } else 'number' == typeof a && (a = 255 & a);
  7278. if (b < 0 || this.length < b || this.length < c) throw new RangeError('Out of range index');
  7279. if (c <= b) return this;
  7280. (b >>>= 0), (c = void 0 === c ? this.length : c >>> 0), a || (a = 0);
  7281. var f;
  7282. if ('number' == typeof a) for (f = b; f < c; ++f) this[f] = a;
  7283. else {
  7284. var h = g.isBuffer(a) ? a : T(new g(a, d).toString()),
  7285. i = h.length;
  7286. for (f = 0; f < c - b; ++f) this[f + b] = h[f % i];
  7287. }
  7288. return this;
  7289. });
  7290. var ba = /[^+\/0-9A-Za-z-_]/g;
  7291. }.call(b, c(7)));
  7292. },
  7293. function(a, b, c) {
  7294. 'use strict';
  7295. function d() {
  7296. (this.protocol = null),
  7297. (this.slashes = null),
  7298. (this.auth = null),
  7299. (this.host = null),
  7300. (this.port = null),
  7301. (this.hostname = null),
  7302. (this.hash = null),
  7303. (this.search = null),
  7304. (this.query = null),
  7305. (this.pathname = null),
  7306. (this.path = null),
  7307. (this.href = null);
  7308. }
  7309. function e(a, b, c) {
  7310. if (a && j.isObject(a) && a instanceof d) return a;
  7311. var e = new d();
  7312. return e.parse(a, b, c), e;
  7313. }
  7314. function f(a) {
  7315. return j.isString(a) && (a = e(a)), a instanceof d ? a.format() : d.prototype.format.call(a);
  7316. }
  7317. function g(a, b) {
  7318. return e(a, !1, !0).resolve(b);
  7319. }
  7320. function h(a, b) {
  7321. return a ? e(a, !1, !0).resolveObject(b) : b;
  7322. }
  7323. var i = c(33),
  7324. j = c(34);
  7325. (b.parse = e), (b.resolve = g), (b.resolveObject = h), (b.format = f), (b.Url = d);
  7326. var k = /^([a-z0-9.+-]+:)/i,
  7327. l = /:[0-9]*$/,
  7328. m = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,
  7329. n = ['<', '>', '"', '`', ' ', '\r', '\n', '\t'],
  7330. o = ['{', '}', '|', '\\', '^', '`'].concat(n),
  7331. p = ["'"].concat(o),
  7332. q = ['%', '/', '?', ';', '#'].concat(p),
  7333. r = ['/', '?', '#'],
  7334. s = 255,
  7335. t = /^[+a-z0-9A-Z_-]{0,63}$/,
  7336. u = /^([+a-z0-9A-Z_-]{0,63})(.*)$/,
  7337. v = { javascript: !0, 'javascript:': !0 },
  7338. w = { javascript: !0, 'javascript:': !0 },
  7339. x = {
  7340. http: !0,
  7341. https: !0,
  7342. ftp: !0,
  7343. gopher: !0,
  7344. file: !0,
  7345. 'http:': !0,
  7346. 'https:': !0,
  7347. 'ftp:': !0,
  7348. 'gopher:': !0,
  7349. 'file:': !0
  7350. },
  7351. y = c(14);
  7352. (d.prototype.parse = function(a, b, c) {
  7353. if (!j.isString(a)) throw new TypeError("Parameter 'url' must be a string, not " + typeof a);
  7354. var d = a.indexOf('?'),
  7355. e = d !== -1 && d < a.indexOf('#') ? '?' : '#',
  7356. f = a.split(e),
  7357. g = /\\/g;
  7358. (f[0] = f[0].replace(g, '/')), (a = f.join(e));
  7359. var h = a;
  7360. if (((h = h.trim()), !c && 1 === a.split('#').length)) {
  7361. var l = m.exec(h);
  7362. if (l)
  7363. return (
  7364. (this.path = h),
  7365. (this.href = h),
  7366. (this.pathname = l[1]),
  7367. l[2]
  7368. ? ((this.search = l[2]),
  7369. b
  7370. ? (this.query = y.parse(this.search.substr(1)))
  7371. : (this.query = this.search.substr(1)))
  7372. : b && ((this.search = ''), (this.query = {})),
  7373. this
  7374. );
  7375. }
  7376. var n = k.exec(h);
  7377. if (n) {
  7378. n = n[0];
  7379. var o = n.toLowerCase();
  7380. (this.protocol = o), (h = h.substr(n.length));
  7381. }
  7382. if (c || n || h.match(/^\/\/[^@\/]+@[^@\/]+/)) {
  7383. var z = '//' === h.substr(0, 2);
  7384. !z || (n && w[n]) || ((h = h.substr(2)), (this.slashes = !0));
  7385. }
  7386. if (!w[n] && (z || (n && !x[n]))) {
  7387. for (var A = -1, B = 0; B < r.length; B++) {
  7388. var C = h.indexOf(r[B]);
  7389. C !== -1 && (A === -1 || C < A) && (A = C);
  7390. }
  7391. var D, E;
  7392. (E = A === -1 ? h.lastIndexOf('@') : h.lastIndexOf('@', A)),
  7393. E !== -1 &&
  7394. ((D = h.slice(0, E)), (h = h.slice(E + 1)), (this.auth = decodeURIComponent(D))),
  7395. (A = -1);
  7396. for (var B = 0; B < q.length; B++) {
  7397. var C = h.indexOf(q[B]);
  7398. C !== -1 && (A === -1 || C < A) && (A = C);
  7399. }
  7400. A === -1 && (A = h.length),
  7401. (this.host = h.slice(0, A)),
  7402. (h = h.slice(A)),
  7403. this.parseHost(),
  7404. (this.hostname = this.hostname || '');
  7405. var F = '[' === this.hostname[0] && ']' === this.hostname[this.hostname.length - 1];
  7406. if (!F)
  7407. for (var G = this.hostname.split(/\./), B = 0, H = G.length; B < H; B++) {
  7408. var I = G[B];
  7409. if (I && !I.match(t)) {
  7410. for (var J = '', K = 0, L = I.length; K < L; K++)
  7411. J += I.charCodeAt(K) > 127 ? 'x' : I[K];
  7412. if (!J.match(t)) {
  7413. var M = G.slice(0, B),
  7414. N = G.slice(B + 1),
  7415. O = I.match(u);
  7416. O && (M.push(O[1]), N.unshift(O[2])),
  7417. N.length && (h = '/' + N.join('.') + h),
  7418. (this.hostname = M.join('.'));
  7419. break;
  7420. }
  7421. }
  7422. }
  7423. this.hostname.length > s ? (this.hostname = '') : (this.hostname = this.hostname.toLowerCase()),
  7424. F || (this.hostname = i.toASCII(this.hostname));
  7425. var P = this.port ? ':' + this.port : '',
  7426. Q = this.hostname || '';
  7427. (this.host = Q + P),
  7428. (this.href += this.host),
  7429. F &&
  7430. ((this.hostname = this.hostname.substr(1, this.hostname.length - 2)),
  7431. '/' !== h[0] && (h = '/' + h));
  7432. }
  7433. if (!v[o])
  7434. for (var B = 0, H = p.length; B < H; B++) {
  7435. var R = p[B];
  7436. if (h.indexOf(R) !== -1) {
  7437. var S = encodeURIComponent(R);
  7438. S === R && (S = escape(R)), (h = h.split(R).join(S));
  7439. }
  7440. }
  7441. var T = h.indexOf('#');
  7442. T !== -1 && ((this.hash = h.substr(T)), (h = h.slice(0, T)));
  7443. var U = h.indexOf('?');
  7444. if (
  7445. (U !== -1
  7446. ? ((this.search = h.substr(U)),
  7447. (this.query = h.substr(U + 1)),
  7448. b && (this.query = y.parse(this.query)),
  7449. (h = h.slice(0, U)))
  7450. : b && ((this.search = ''), (this.query = {})),
  7451. h && (this.pathname = h),
  7452. x[o] && this.hostname && !this.pathname && (this.pathname = '/'),
  7453. this.pathname || this.search)
  7454. ) {
  7455. var P = this.pathname || '',
  7456. V = this.search || '';
  7457. this.path = P + V;
  7458. }
  7459. return (this.href = this.format()), this;
  7460. }),
  7461. (d.prototype.format = function() {
  7462. var a = this.auth || '';
  7463. a && ((a = encodeURIComponent(a)), (a = a.replace(/%3A/i, ':')), (a += '@'));
  7464. var b = this.protocol || '',
  7465. c = this.pathname || '',
  7466. d = this.hash || '',
  7467. e = !1,
  7468. f = '';
  7469. this.host
  7470. ? (e = a + this.host)
  7471. : this.hostname &&
  7472. ((e =
  7473. a + (this.hostname.indexOf(':') === -1 ? this.hostname : '[' + this.hostname + ']')),
  7474. this.port && (e += ':' + this.port)),
  7475. this.query &&
  7476. j.isObject(this.query) &&
  7477. Object.keys(this.query).length &&
  7478. (f = y.stringify(this.query));
  7479. var g = this.search || (f && '?' + f) || '';
  7480. return (
  7481. b && ':' !== b.substr(-1) && (b += ':'),
  7482. this.slashes || ((!b || x[b]) && e !== !1)
  7483. ? ((e = '//' + (e || '')), c && '/' !== c.charAt(0) && (c = '/' + c))
  7484. : e || (e = ''),
  7485. d && '#' !== d.charAt(0) && (d = '#' + d),
  7486. g && '?' !== g.charAt(0) && (g = '?' + g),
  7487. (c = c.replace(/[?#]/g, function(a) {
  7488. return encodeURIComponent(a);
  7489. })),
  7490. (g = g.replace('#', '%23')),
  7491. b + e + c + g + d
  7492. );
  7493. }),
  7494. (d.prototype.resolve = function(a) {
  7495. return this.resolveObject(e(a, !1, !0)).format();
  7496. }),
  7497. (d.prototype.resolveObject = function(a) {
  7498. if (j.isString(a)) {
  7499. var b = new d();
  7500. b.parse(a, !1, !0), (a = b);
  7501. }
  7502. for (var c = new d(), e = Object.keys(this), f = 0; f < e.length; f++) {
  7503. var g = e[f];
  7504. c[g] = this[g];
  7505. }
  7506. if (((c.hash = a.hash), '' === a.href)) return (c.href = c.format()), c;
  7507. if (a.slashes && !a.protocol) {
  7508. for (var h = Object.keys(a), i = 0; i < h.length; i++) {
  7509. var k = h[i];
  7510. 'protocol' !== k && (c[k] = a[k]);
  7511. }
  7512. return (
  7513. x[c.protocol] && c.hostname && !c.pathname && (c.path = c.pathname = '/'),
  7514. (c.href = c.format()),
  7515. c
  7516. );
  7517. }
  7518. if (a.protocol && a.protocol !== c.protocol) {
  7519. if (!x[a.protocol]) {
  7520. for (var l = Object.keys(a), m = 0; m < l.length; m++) {
  7521. var n = l[m];
  7522. c[n] = a[n];
  7523. }
  7524. return (c.href = c.format()), c;
  7525. }
  7526. if (((c.protocol = a.protocol), a.host || w[a.protocol])) c.pathname = a.pathname;
  7527. else {
  7528. for (var o = (a.pathname || '').split('/'); o.length && !(a.host = o.shift()); );
  7529. a.host || (a.host = ''),
  7530. a.hostname || (a.hostname = ''),
  7531. '' !== o[0] && o.unshift(''),
  7532. o.length < 2 && o.unshift(''),
  7533. (c.pathname = o.join('/'));
  7534. }
  7535. if (
  7536. ((c.search = a.search),
  7537. (c.query = a.query),
  7538. (c.host = a.host || ''),
  7539. (c.auth = a.auth),
  7540. (c.hostname = a.hostname || a.host),
  7541. (c.port = a.port),
  7542. c.pathname || c.search)
  7543. ) {
  7544. var p = c.pathname || '',
  7545. q = c.search || '';
  7546. c.path = p + q;
  7547. }
  7548. return (c.slashes = c.slashes || a.slashes), (c.href = c.format()), c;
  7549. }
  7550. var r = c.pathname && '/' === c.pathname.charAt(0),
  7551. s = a.host || (a.pathname && '/' === a.pathname.charAt(0)),
  7552. t = s || r || (c.host && a.pathname),
  7553. u = t,
  7554. v = (c.pathname && c.pathname.split('/')) || [],
  7555. o = (a.pathname && a.pathname.split('/')) || [],
  7556. y = c.protocol && !x[c.protocol];
  7557. if (
  7558. (y &&
  7559. ((c.hostname = ''),
  7560. (c.port = null),
  7561. c.host && ('' === v[0] ? (v[0] = c.host) : v.unshift(c.host)),
  7562. (c.host = ''),
  7563. a.protocol &&
  7564. ((a.hostname = null),
  7565. (a.port = null),
  7566. a.host && ('' === o[0] ? (o[0] = a.host) : o.unshift(a.host)),
  7567. (a.host = null)),
  7568. (t = t && ('' === o[0] || '' === v[0]))),
  7569. s)
  7570. )
  7571. (c.host = a.host || '' === a.host ? a.host : c.host),
  7572. (c.hostname = a.hostname || '' === a.hostname ? a.hostname : c.hostname),
  7573. (c.search = a.search),
  7574. (c.query = a.query),
  7575. (v = o);
  7576. else if (o.length)
  7577. v || (v = []), v.pop(), (v = v.concat(o)), (c.search = a.search), (c.query = a.query);
  7578. else if (!j.isNullOrUndefined(a.search)) {
  7579. if (y) {
  7580. c.hostname = c.host = v.shift();
  7581. var z = !!(c.host && c.host.indexOf('@') > 0) && c.host.split('@');
  7582. z && ((c.auth = z.shift()), (c.host = c.hostname = z.shift()));
  7583. }
  7584. return (
  7585. (c.search = a.search),
  7586. (c.query = a.query),
  7587. (j.isNull(c.pathname) && j.isNull(c.search)) ||
  7588. (c.path = (c.pathname ? c.pathname : '') + (c.search ? c.search : '')),
  7589. (c.href = c.format()),
  7590. c
  7591. );
  7592. }
  7593. if (!v.length)
  7594. return (
  7595. (c.pathname = null),
  7596. c.search ? (c.path = '/' + c.search) : (c.path = null),
  7597. (c.href = c.format()),
  7598. c
  7599. );
  7600. for (
  7601. var A = v.slice(-1)[0],
  7602. B = ((c.host || a.host || v.length > 1) && ('.' === A || '..' === A)) || '' === A,
  7603. C = 0,
  7604. D = v.length;
  7605. D >= 0;
  7606. D--
  7607. )
  7608. (A = v[D]),
  7609. '.' === A
  7610. ? v.splice(D, 1)
  7611. : '..' === A
  7612. ? (v.splice(D, 1), C++)
  7613. : C && (v.splice(D, 1), C--);
  7614. if (!t && !u) for (; C--; C) v.unshift('..');
  7615. !t || '' === v[0] || (v[0] && '/' === v[0].charAt(0)) || v.unshift(''),
  7616. B && '/' !== v.join('/').substr(-1) && v.push('');
  7617. var E = '' === v[0] || (v[0] && '/' === v[0].charAt(0));
  7618. if (y) {
  7619. c.hostname = c.host = E ? '' : v.length ? v.shift() : '';
  7620. var z = !!(c.host && c.host.indexOf('@') > 0) && c.host.split('@');
  7621. z && ((c.auth = z.shift()), (c.host = c.hostname = z.shift()));
  7622. }
  7623. return (
  7624. (t = t || (c.host && v.length)),
  7625. t && !E && v.unshift(''),
  7626. v.length ? (c.pathname = v.join('/')) : ((c.pathname = null), (c.path = null)),
  7627. (j.isNull(c.pathname) && j.isNull(c.search)) ||
  7628. (c.path = (c.pathname ? c.pathname : '') + (c.search ? c.search : '')),
  7629. (c.auth = a.auth || c.auth),
  7630. (c.slashes = c.slashes || a.slashes),
  7631. (c.href = c.format()),
  7632. c
  7633. );
  7634. }),
  7635. (d.prototype.parseHost = function() {
  7636. var a = this.host,
  7637. b = l.exec(a);
  7638. b &&
  7639. ((b = b[0]),
  7640. ':' !== b && (this.port = b.substr(1)),
  7641. (a = a.substr(0, a.length - b.length))),
  7642. a && (this.hostname = a);
  7643. });
  7644. },
  7645. function(a, b, c) {
  7646. 'use strict';
  7647. (b.decode = b.parse = c(35)), (b.encode = b.stringify = c(36));
  7648. },
  7649. function(a, b, c) {
  7650. 'use strict';
  7651. function d(a) {
  7652. console && console.warn && console.warn(a);
  7653. }
  7654. function e() {
  7655. e.init.call(this);
  7656. }
  7657. function f(a) {
  7658. if ('function' != typeof a)
  7659. throw new TypeError(
  7660. 'The "listener" argument must be of type Function. Received type ' + typeof a
  7661. );
  7662. }
  7663. function g(a) {
  7664. return void 0 === a._maxListeners ? e.defaultMaxListeners : a._maxListeners;
  7665. }
  7666. function h(a, b, c, e) {
  7667. var h, i, j;
  7668. if (
  7669. (f(c),
  7670. (i = a._events),
  7671. void 0 === i
  7672. ? ((i = a._events = Object.create(null)), (a._eventsCount = 0))
  7673. : (void 0 !== i.newListener &&
  7674. (a.emit('newListener', b, c.listener ? c.listener : c), (i = a._events)),
  7675. (j = i[b])),
  7676. void 0 === j)
  7677. )
  7678. (j = i[b] = c), ++a._eventsCount;
  7679. else if (
  7680. ('function' == typeof j ? (j = i[b] = e ? [c, j] : [j, c]) : e ? j.unshift(c) : j.push(c),
  7681. (h = g(a)),
  7682. h > 0 && j.length > h && !j.warned)
  7683. ) {
  7684. j.warned = !0;
  7685. var k = new Error(
  7686. 'Possible EventEmitter memory leak detected. ' +
  7687. j.length +
  7688. ' ' +
  7689. String(b) +
  7690. ' listeners added. Use emitter.setMaxListeners() to increase limit'
  7691. );
  7692. (k.name = 'MaxListenersExceededWarning'),
  7693. (k.emitter = a),
  7694. (k.type = b),
  7695. (k.count = j.length),
  7696. d(k);
  7697. }
  7698. return a;
  7699. }
  7700. function i() {
  7701. if (!this.fired)
  7702. return (
  7703. this.target.removeListener(this.type, this.wrapFn),
  7704. (this.fired = !0),
  7705. 0 === arguments.length
  7706. ? this.listener.call(this.target)
  7707. : this.listener.apply(this.target, arguments)
  7708. );
  7709. }
  7710. function j(a, b, c) {
  7711. var d = { fired: !1, wrapFn: void 0, target: a, type: b, listener: c },
  7712. e = i.bind(d);
  7713. return (e.listener = c), (d.wrapFn = e), e;
  7714. }
  7715. function k(a, b, c) {
  7716. var d = a._events;
  7717. if (void 0 === d) return [];
  7718. var e = d[b];
  7719. return void 0 === e
  7720. ? []
  7721. : 'function' == typeof e
  7722. ? c
  7723. ? [e.listener || e]
  7724. : [e]
  7725. : c
  7726. ? o(e)
  7727. : m(e, e.length);
  7728. }
  7729. function l(a) {
  7730. var b = this._events;
  7731. if (void 0 !== b) {
  7732. var c = b[a];
  7733. if ('function' == typeof c) return 1;
  7734. if (void 0 !== c) return c.length;
  7735. }
  7736. return 0;
  7737. }
  7738. function m(a, b) {
  7739. for (var c = new Array(b), d = 0; d < b; ++d) c[d] = a[d];
  7740. return c;
  7741. }
  7742. function n(a, b) {
  7743. for (; b + 1 < a.length; b++) a[b] = a[b + 1];
  7744. a.pop();
  7745. }
  7746. function o(a) {
  7747. for (var b = new Array(a.length), c = 0; c < b.length; ++c) b[c] = a[c].listener || a[c];
  7748. return b;
  7749. }
  7750. var p,
  7751. q = 'object' == typeof Reflect ? Reflect : null,
  7752. r =
  7753. q && 'function' == typeof q.apply
  7754. ? q.apply
  7755. : function(a, b, c) {
  7756. return Function.prototype.apply.call(a, b, c);
  7757. };
  7758. p =
  7759. q && 'function' == typeof q.ownKeys
  7760. ? q.ownKeys
  7761. : Object.getOwnPropertySymbols
  7762. ? function(a) {
  7763. return Object.getOwnPropertyNames(a).concat(Object.getOwnPropertySymbols(a));
  7764. }
  7765. : function(a) {
  7766. return Object.getOwnPropertyNames(a);
  7767. };
  7768. var s =
  7769. Number.isNaN ||
  7770. function(a) {
  7771. return a !== a;
  7772. };
  7773. (a.exports = e),
  7774. (e.EventEmitter = e),
  7775. (e.prototype._events = void 0),
  7776. (e.prototype._eventsCount = 0),
  7777. (e.prototype._maxListeners = void 0);
  7778. var t = 10;
  7779. Object.defineProperty(e, 'defaultMaxListeners', {
  7780. enumerable: !0,
  7781. get: function() {
  7782. return t;
  7783. },
  7784. set: function(a) {
  7785. if ('number' != typeof a || a < 0 || s(a))
  7786. throw new RangeError(
  7787. 'The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' +
  7788. a +
  7789. '.'
  7790. );
  7791. t = a;
  7792. }
  7793. }),
  7794. (e.init = function() {
  7795. (void 0 !== this._events && this._events !== Object.getPrototypeOf(this)._events) ||
  7796. ((this._events = Object.create(null)), (this._eventsCount = 0)),
  7797. (this._maxListeners = this._maxListeners || void 0);
  7798. }),
  7799. (e.prototype.setMaxListeners = function(a) {
  7800. if ('number' != typeof a || a < 0 || s(a))
  7801. throw new RangeError(
  7802. 'The value of "n" is out of range. It must be a non-negative number. Received ' +
  7803. a +
  7804. '.'
  7805. );
  7806. return (this._maxListeners = a), this;
  7807. }),
  7808. (e.prototype.getMaxListeners = function() {
  7809. return g(this);
  7810. }),
  7811. (e.prototype.emit = function(a) {
  7812. for (var b = [], c = 1; c < arguments.length; c++) b.push(arguments[c]);
  7813. var d = 'error' === a,
  7814. e = this._events;
  7815. if (void 0 !== e) d = d && void 0 === e.error;
  7816. else if (!d) return !1;
  7817. if (d) {
  7818. var f;
  7819. if ((b.length > 0 && (f = b[0]), f instanceof Error)) throw f;
  7820. var g = new Error('Unhandled error.' + (f ? ' (' + f.message + ')' : ''));
  7821. throw ((g.context = f), g);
  7822. }
  7823. var h = e[a];
  7824. if (void 0 === h) return !1;
  7825. if ('function' == typeof h) r(h, this, b);
  7826. else for (var i = h.length, j = m(h, i), c = 0; c < i; ++c) r(j[c], this, b);
  7827. return !0;
  7828. }),
  7829. (e.prototype.addListener = function(a, b) {
  7830. return h(this, a, b, !1);
  7831. }),
  7832. (e.prototype.on = e.prototype.addListener),
  7833. (e.prototype.prependListener = function(a, b) {
  7834. return h(this, a, b, !0);
  7835. }),
  7836. (e.prototype.once = function(a, b) {
  7837. return f(b), this.on(a, j(this, a, b)), this;
  7838. }),
  7839. (e.prototype.prependOnceListener = function(a, b) {
  7840. return f(b), this.prependListener(a, j(this, a, b)), this;
  7841. }),
  7842. (e.prototype.removeListener = function(a, b) {
  7843. var c, d, e, g, h;
  7844. if ((f(b), (d = this._events), void 0 === d)) return this;
  7845. if (((c = d[a]), void 0 === c)) return this;
  7846. if (c === b || c.listener === b)
  7847. 0 === --this._eventsCount
  7848. ? (this._events = Object.create(null))
  7849. : (delete d[a], d.removeListener && this.emit('removeListener', a, c.listener || b));
  7850. else if ('function' != typeof c) {
  7851. for (e = -1, g = c.length - 1; g >= 0; g--)
  7852. if (c[g] === b || c[g].listener === b) {
  7853. (h = c[g].listener), (e = g);
  7854. break;
  7855. }
  7856. if (e < 0) return this;
  7857. 0 === e ? c.shift() : n(c, e),
  7858. 1 === c.length && (d[a] = c[0]),
  7859. void 0 !== d.removeListener && this.emit('removeListener', a, h || b);
  7860. }
  7861. return this;
  7862. }),
  7863. (e.prototype.off = e.prototype.removeListener),
  7864. (e.prototype.removeAllListeners = function(a) {
  7865. var b, c, d;
  7866. if (((c = this._events), void 0 === c)) return this;
  7867. if (void 0 === c.removeListener)
  7868. return (
  7869. 0 === arguments.length
  7870. ? ((this._events = Object.create(null)), (this._eventsCount = 0))
  7871. : void 0 !== c[a] &&
  7872. (0 === --this._eventsCount ? (this._events = Object.create(null)) : delete c[a]),
  7873. this
  7874. );
  7875. if (0 === arguments.length) {
  7876. var e,
  7877. f = Object.keys(c);
  7878. for (d = 0; d < f.length; ++d)
  7879. (e = f[d]), 'removeListener' !== e && this.removeAllListeners(e);
  7880. return (
  7881. this.removeAllListeners('removeListener'),
  7882. (this._events = Object.create(null)),
  7883. (this._eventsCount = 0),
  7884. this
  7885. );
  7886. }
  7887. if (((b = c[a]), 'function' == typeof b)) this.removeListener(a, b);
  7888. else if (void 0 !== b) for (d = b.length - 1; d >= 0; d--) this.removeListener(a, b[d]);
  7889. return this;
  7890. }),
  7891. (e.prototype.listeners = function(a) {
  7892. return k(this, a, !0);
  7893. }),
  7894. (e.prototype.rawListeners = function(a) {
  7895. return k(this, a, !1);
  7896. }),
  7897. (e.listenerCount = function(a, b) {
  7898. return 'function' == typeof a.listenerCount ? a.listenerCount(b) : l.call(a, b);
  7899. }),
  7900. (e.prototype.listenerCount = l),
  7901. (e.prototype.eventNames = function() {
  7902. return this._eventsCount > 0 ? p(this._events) : [];
  7903. });
  7904. },
  7905. function(a, b, c) {
  7906. a.exports = { console: c(39) };
  7907. },
  7908. function(a, b, c) {
  7909. function d(a, b) {
  7910. (this.log = a),
  7911. (this.listeningLevels = []),
  7912. h.makeBoundMethods(this),
  7913. this.log.once('closing', this.bound.cleanUpListeners),
  7914. this.setupListeners(b.levels);
  7915. }
  7916. function e(a) {
  7917. return a < 10 ? '0' + a.toString(10) : a.toString(10);
  7918. }
  7919. function f(a, b) {
  7920. var c = h.repeat(' ', b || 2);
  7921. return (a || '')
  7922. .split(/\r?\n/)
  7923. .map(function(a) {
  7924. return c + a;
  7925. })
  7926. .join('\n');
  7927. }
  7928. var g = c(0),
  7929. h = c(2);
  7930. (d.prototype.timestamp = function() {
  7931. var a = new Date();
  7932. return (
  7933. a.getUTCFullYear() +
  7934. '-' +
  7935. e(a.getUTCMonth() + 1) +
  7936. '-' +
  7937. e(a.getUTCDate()) +
  7938. 'T' +
  7939. e(a.getUTCHours()) +
  7940. ':' +
  7941. e(a.getUTCMinutes()) +
  7942. ':' +
  7943. e(a.getUTCSeconds()) +
  7944. 'Z'
  7945. );
  7946. }),
  7947. (d.prototype.format = function(a, b) {
  7948. return a + ': ' + this.timestamp() + '\n' + f(b) + '\n\n';
  7949. }),
  7950. (d.prototype.write = function() {
  7951. throw new Error('This should be overwritten by the logger');
  7952. }),
  7953. (d.prototype.setupListeners = function(a) {
  7954. this.cleanUpListeners(),
  7955. (this.listeningLevels = []),
  7956. g.each(
  7957. a,
  7958. g.bind(function(a) {
  7959. var b = 'on' + h.ucfirst(a);
  7960. if (!this.bound[b]) throw new Error('Unable to listen for level "' + a + '"');
  7961. this.listeningLevels.push(a), this.log.on(a, this.bound[b]);
  7962. }, this)
  7963. );
  7964. }),
  7965. (d.prototype.cleanUpListeners = h.handler(function() {
  7966. g.each(
  7967. this.listeningLevels,
  7968. g.bind(function(a) {
  7969. this.log.removeListener(a, this.bound['on' + h.ucfirst(a)]);
  7970. }, this)
  7971. );
  7972. })),
  7973. (d.prototype.onError = h.handler(function(a) {
  7974. this.write('Error' === a.name ? 'ERROR' : a.name, a.stack);
  7975. })),
  7976. (d.prototype.onWarning = h.handler(function(a) {
  7977. this.write('WARNING', a);
  7978. })),
  7979. (d.prototype.onInfo = h.handler(function(a) {
  7980. this.write('INFO', a);
  7981. })),
  7982. (d.prototype.onDebug = h.handler(function(a) {
  7983. this.write('DEBUG', a);
  7984. })),
  7985. (d.prototype.onTrace = h.handler(function(a) {
  7986. this.write('TRACE', this._formatTraceMessage(a));
  7987. })),
  7988. (d.prototype._formatTraceMessage = function(a) {
  7989. return (
  7990. '-> ' +
  7991. a.method +
  7992. ' ' +
  7993. a.url +
  7994. '\n' +
  7995. this._prettyJson(a.body) +
  7996. '\n<- ' +
  7997. a.status +
  7998. '\n' +
  7999. this._prettyJson(a.response)
  8000. );
  8001. }),
  8002. (d.prototype._prettyJson = function(a) {
  8003. try {
  8004. return (
  8005. 'string' == typeof a && (a = JSON.parse(a)),
  8006. JSON.stringify(a, null, ' ').replace(/'/g, '\\u0027')
  8007. );
  8008. } catch (b) {
  8009. return 'string' == typeof a ? a : '';
  8010. }
  8011. }),
  8012. (a.exports = d);
  8013. },
  8014. function(a, b, c) {
  8015. a.exports = { random: c(40), roundRobin: c(41) };
  8016. },
  8017. function(a, b, c) {
  8018. var d = { xhr: c(42), jquery: c(43), angular: c(44) },
  8019. e = c(0);
  8020. e.each(d, function(a, b) {
  8021. 'function' != typeof a && delete d[b];
  8022. }),
  8023. d.xhr ? (d._default = 'xhr') : d.angular ? (d._default = 'angular') : (d._default = 'jquery'),
  8024. (a.exports = d);
  8025. },
  8026. function(a, b, c) {
  8027. function d(a, b) {
  8028. if (
  8029. ((b = b || {}),
  8030. g.call(this),
  8031. (this.log = b.log || new h()),
  8032. (this.pingTimeout = b.pingTimeout || 3e3),
  8033. !a)
  8034. )
  8035. throw new TypeError('Missing host');
  8036. if (!(a instanceof i)) throw new TypeError('Invalid host');
  8037. (this.host = a), f.makeBoundMethods(this);
  8038. }
  8039. a.exports = d;
  8040. var e = c(0),
  8041. f = c(2),
  8042. g = c(15).EventEmitter,
  8043. h = c(5),
  8044. i = c(8),
  8045. j = c(4);
  8046. f.inherits(d, g),
  8047. (d.prototype.request = function() {
  8048. throw new Error('Connection#request must be overwritten by the Connector');
  8049. }),
  8050. (d.prototype.ping = function(a, b) {
  8051. 'function' == typeof a ? ((b = a), (a = null)) : (b = 'function' == typeof b ? b : null);
  8052. var c,
  8053. d,
  8054. f,
  8055. g = this.pingTimeout;
  8056. a && a.hasOwnProperty('requestTimeout') && (g = a.requestTimeout),
  8057. (f = this.request(e.defaults(a || {}, { path: '/', method: 'HEAD' }), function(a) {
  8058. d || (clearTimeout(c), b && b(a));
  8059. })),
  8060. g &&
  8061. (c = setTimeout(function() {
  8062. f && f(), (d = !0), b && b(new j.RequestTimeout('Ping Timeout after ' + g + 'ms'));
  8063. }, g));
  8064. }),
  8065. (d.prototype.setStatus = function(a) {
  8066. var b = this.status;
  8067. (this.status = a),
  8068. this.emit('status set', a, b, this),
  8069. 'closed' === a && this.removeAllListeners();
  8070. });
  8071. },
  8072. function(a, b, c) {
  8073. a.exports = { angular: c(45), json: c(22) };
  8074. },
  8075. function(a, b, c) {
  8076. function d(a) {
  8077. return (d =
  8078. 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
  8079. ? function(a) {
  8080. return typeof a;
  8081. }
  8082. : function(a) {
  8083. return a &&
  8084. 'function' == typeof Symbol &&
  8085. a.constructor === Symbol &&
  8086. a !== Symbol.prototype
  8087. ? 'symbol'
  8088. : typeof a;
  8089. })(a);
  8090. }
  8091. function e() {}
  8092. a.exports = e;
  8093. var f = c(0);
  8094. (e.prototype.serialize = function(a, b, c) {
  8095. switch (d(a)) {
  8096. case 'string':
  8097. return a;
  8098. case 'object':
  8099. if (a) return b || c ? JSON.stringify(a, b, c) : JSON.stringify(a);
  8100. default:
  8101. return;
  8102. }
  8103. }),
  8104. (e.prototype.serialize.contentType = 'application/json'),
  8105. (e.prototype.deserialize = function(a) {
  8106. if ('string' == typeof a)
  8107. try {
  8108. return JSON.parse(a);
  8109. } catch (a) {}
  8110. }),
  8111. (e.prototype.bulkBody = function(a) {
  8112. var b,
  8113. c = '';
  8114. if (f.isArray(a)) for (b = 0; b < a.length; b++) c += this.serialize(a[b]) + '\n';
  8115. else {
  8116. if ('string' != typeof a)
  8117. throw new TypeError(
  8118. 'Bulk body should either be an Array of commands/string, or a String'
  8119. );
  8120. c = a + ('\n' === a[a.length - 1] ? '' : '\n');
  8121. }
  8122. return c;
  8123. }),
  8124. (e.prototype.bulkBody.contentType = 'application/x-ndjson');
  8125. },
  8126. function(a, b, c) {
  8127. function d(a) {
  8128. return function(b) {
  8129. return e.transform(
  8130. b,
  8131. function(b, c, d) {
  8132. var g = e.get(c, a);
  8133. if (g) {
  8134. var h = {
  8135. host: void 0,
  8136. port: void 0,
  8137. _meta: { id: d, name: c.name, version: c.version }
  8138. },
  8139. i = new Error(
  8140. 'Malformed ' +
  8141. a +
  8142. '. Got ' +
  8143. JSON.stringify(g) +
  8144. ' and expected it to match "{hostname?}/{ip}:{port}".'
  8145. ),
  8146. j = f.exec(g);
  8147. if (j)
  8148. return (h.host = j[1] || j[2]), (h.port = parseInt(j[3], 10)), void b.push(h);
  8149. if (g.indexOf('/') > -1) {
  8150. var k = g.split('/');
  8151. if (2 !== k.length) throw i;
  8152. (h.host = k.shift()), (g = k.shift());
  8153. }
  8154. if (g.indexOf(':') < 0) throw i;
  8155. var l = g.split(':');
  8156. if (2 !== l.length) throw i;
  8157. (h.host = h.host || l[0]), (h.port = parseInt(l[1], 10)), b.push(h);
  8158. }
  8159. },
  8160. []
  8161. );
  8162. };
  8163. }
  8164. var e = c(0),
  8165. f = /\[(?:(.*)\/)?(.+?):(\d+)\]/;
  8166. a.exports = d('http.publish_address');
  8167. },
  8168. function(a, b, c) {
  8169. a.exports = {
  8170. _default: c(25),
  8171. 7.6: c(25),
  8172. 7.5: c(46),
  8173. 7.4: c(47),
  8174. 7.3: c(48),
  8175. 7.2: c(49),
  8176. 7.7: c(50),
  8177. '7.x': c(51),
  8178. master: c(52)
  8179. };
  8180. },
  8181. function(a, b, c) {
  8182. var d = c(1).makeFactoryWithModifier(function(a) {
  8183. return c(0).merge(a, { params: { filterPath: { type: 'list', name: 'filter_path' } } });
  8184. }),
  8185. e = c(1).namespaceFactory,
  8186. f = (a.exports = {});
  8187. (f._namespaces = ['cat', 'cluster', 'indices', 'ingest', 'nodes', 'snapshot', 'tasks']),
  8188. (f.bulk = d({
  8189. params: {
  8190. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  8191. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  8192. routing: { type: 'string' },
  8193. timeout: { type: 'time' },
  8194. type: { type: 'string' },
  8195. _source: { type: 'list' },
  8196. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  8197. _sourceIncludes: { type: 'list', name: '_source_includes' },
  8198. pipeline: { type: 'string' }
  8199. },
  8200. urls: [
  8201. {
  8202. fmt: '/<%=index%>/<%=type%>/_bulk',
  8203. req: { index: { type: 'string' }, type: { type: 'string' } }
  8204. },
  8205. { fmt: '/<%=index%>/_bulk', req: { index: { type: 'string' } } },
  8206. { fmt: '/_bulk' }
  8207. ],
  8208. needBody: !0,
  8209. bulkBody: !0,
  8210. method: 'POST'
  8211. })),
  8212. (f.cat = e()),
  8213. (f.cat.prototype.aliases = d({
  8214. params: {
  8215. format: { type: 'string' },
  8216. local: { type: 'boolean' },
  8217. masterTimeout: { type: 'time', name: 'master_timeout' },
  8218. h: { type: 'list' },
  8219. help: { type: 'boolean', default: !1 },
  8220. s: { type: 'list' },
  8221. v: { type: 'boolean', default: !1 }
  8222. },
  8223. urls: [
  8224. { fmt: '/_cat/aliases/<%=name%>', req: { name: { type: 'list' } } },
  8225. { fmt: '/_cat/aliases' }
  8226. ]
  8227. })),
  8228. (f.cat.prototype.allocation = d({
  8229. params: {
  8230. format: { type: 'string' },
  8231. bytes: {
  8232. type: 'enum',
  8233. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  8234. },
  8235. local: { type: 'boolean' },
  8236. masterTimeout: { type: 'time', name: 'master_timeout' },
  8237. h: { type: 'list' },
  8238. help: { type: 'boolean', default: !1 },
  8239. s: { type: 'list' },
  8240. v: { type: 'boolean', default: !1 }
  8241. },
  8242. urls: [
  8243. { fmt: '/_cat/allocation/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
  8244. { fmt: '/_cat/allocation' }
  8245. ]
  8246. })),
  8247. (f.cat.prototype.count = d({
  8248. params: {
  8249. format: { type: 'string' },
  8250. local: { type: 'boolean' },
  8251. masterTimeout: { type: 'time', name: 'master_timeout' },
  8252. h: { type: 'list' },
  8253. help: { type: 'boolean', default: !1 },
  8254. s: { type: 'list' },
  8255. v: { type: 'boolean', default: !1 }
  8256. },
  8257. urls: [
  8258. { fmt: '/_cat/count/<%=index%>', req: { index: { type: 'list' } } },
  8259. { fmt: '/_cat/count' }
  8260. ]
  8261. })),
  8262. (f.cat.prototype.fielddata = d({
  8263. params: {
  8264. format: { type: 'string' },
  8265. bytes: {
  8266. type: 'enum',
  8267. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  8268. },
  8269. local: { type: 'boolean' },
  8270. masterTimeout: { type: 'time', name: 'master_timeout' },
  8271. h: { type: 'list' },
  8272. help: { type: 'boolean', default: !1 },
  8273. s: { type: 'list' },
  8274. v: { type: 'boolean', default: !1 },
  8275. fields: { type: 'list' }
  8276. },
  8277. urls: [
  8278. { fmt: '/_cat/fielddata/<%=fields%>', req: { fields: { type: 'list' } } },
  8279. { fmt: '/_cat/fielddata' }
  8280. ]
  8281. })),
  8282. (f.cat.prototype.health = d({
  8283. params: {
  8284. format: { type: 'string' },
  8285. local: { type: 'boolean' },
  8286. masterTimeout: { type: 'time', name: 'master_timeout' },
  8287. h: { type: 'list' },
  8288. help: { type: 'boolean', default: !1 },
  8289. s: { type: 'list' },
  8290. ts: { type: 'boolean', default: !0 },
  8291. v: { type: 'boolean', default: !1 }
  8292. },
  8293. url: { fmt: '/_cat/health' }
  8294. })),
  8295. (f.cat.prototype.help = d({
  8296. params: { help: { type: 'boolean', default: !1 }, s: { type: 'list' } },
  8297. url: { fmt: '/_cat' }
  8298. })),
  8299. (f.cat.prototype.indices = d({
  8300. params: {
  8301. format: { type: 'string' },
  8302. bytes: { type: 'enum', options: ['b', 'k', 'm', 'g'] },
  8303. local: { type: 'boolean' },
  8304. masterTimeout: { type: 'time', name: 'master_timeout' },
  8305. h: { type: 'list' },
  8306. health: { type: 'enum', default: null, options: ['green', 'yellow', 'red'] },
  8307. help: { type: 'boolean', default: !1 },
  8308. pri: { type: 'boolean', default: !1 },
  8309. s: { type: 'list' },
  8310. v: { type: 'boolean', default: !1 },
  8311. includeUnloadedSegments: { type: 'boolean', default: !1, name: 'include_unloaded_segments' }
  8312. },
  8313. urls: [
  8314. { fmt: '/_cat/indices/<%=index%>', req: { index: { type: 'list' } } },
  8315. { fmt: '/_cat/indices' }
  8316. ]
  8317. })),
  8318. (f.cat.prototype.master = d({
  8319. params: {
  8320. format: { type: 'string' },
  8321. local: { type: 'boolean' },
  8322. masterTimeout: { type: 'time', name: 'master_timeout' },
  8323. h: { type: 'list' },
  8324. help: { type: 'boolean', default: !1 },
  8325. s: { type: 'list' },
  8326. v: { type: 'boolean', default: !1 }
  8327. },
  8328. url: { fmt: '/_cat/master' }
  8329. })),
  8330. (f.cat.prototype.nodeattrs = d({
  8331. params: {
  8332. format: { type: 'string' },
  8333. local: { type: 'boolean' },
  8334. masterTimeout: { type: 'time', name: 'master_timeout' },
  8335. h: { type: 'list' },
  8336. help: { type: 'boolean', default: !1 },
  8337. s: { type: 'list' },
  8338. v: { type: 'boolean', default: !1 }
  8339. },
  8340. url: { fmt: '/_cat/nodeattrs' }
  8341. })),
  8342. (f.cat.prototype.nodes = d({
  8343. params: {
  8344. format: { type: 'string' },
  8345. fullId: { type: 'boolean', name: 'full_id' },
  8346. local: { type: 'boolean' },
  8347. masterTimeout: { type: 'time', name: 'master_timeout' },
  8348. h: { type: 'list' },
  8349. help: { type: 'boolean', default: !1 },
  8350. s: { type: 'list' },
  8351. v: { type: 'boolean', default: !1 }
  8352. },
  8353. url: { fmt: '/_cat/nodes' }
  8354. })),
  8355. (f.cat.prototype.pendingTasks = d({
  8356. params: {
  8357. format: { type: 'string' },
  8358. local: { type: 'boolean' },
  8359. masterTimeout: { type: 'time', name: 'master_timeout' },
  8360. h: { type: 'list' },
  8361. help: { type: 'boolean', default: !1 },
  8362. s: { type: 'list' },
  8363. v: { type: 'boolean', default: !1 }
  8364. },
  8365. url: { fmt: '/_cat/pending_tasks' }
  8366. })),
  8367. (f.cat.prototype.plugins = d({
  8368. params: {
  8369. format: { type: 'string' },
  8370. local: { type: 'boolean' },
  8371. masterTimeout: { type: 'time', name: 'master_timeout' },
  8372. h: { type: 'list' },
  8373. help: { type: 'boolean', default: !1 },
  8374. s: { type: 'list' },
  8375. v: { type: 'boolean', default: !1 }
  8376. },
  8377. url: { fmt: '/_cat/plugins' }
  8378. })),
  8379. (f.cat.prototype.recovery = d({
  8380. params: {
  8381. format: { type: 'string' },
  8382. bytes: {
  8383. type: 'enum',
  8384. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  8385. },
  8386. masterTimeout: { type: 'time', name: 'master_timeout' },
  8387. h: { type: 'list' },
  8388. help: { type: 'boolean', default: !1 },
  8389. s: { type: 'list' },
  8390. v: { type: 'boolean', default: !1 }
  8391. },
  8392. urls: [
  8393. { fmt: '/_cat/recovery/<%=index%>', req: { index: { type: 'list' } } },
  8394. { fmt: '/_cat/recovery' }
  8395. ]
  8396. })),
  8397. (f.cat.prototype.repositories = d({
  8398. params: {
  8399. format: { type: 'string' },
  8400. local: { type: 'boolean', default: !1 },
  8401. masterTimeout: { type: 'time', name: 'master_timeout' },
  8402. h: { type: 'list' },
  8403. help: { type: 'boolean', default: !1 },
  8404. s: { type: 'list' },
  8405. v: { type: 'boolean', default: !1 }
  8406. },
  8407. url: { fmt: '/_cat/repositories' }
  8408. })),
  8409. (f.cat.prototype.segments = d({
  8410. params: {
  8411. format: { type: 'string' },
  8412. bytes: {
  8413. type: 'enum',
  8414. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  8415. },
  8416. h: { type: 'list' },
  8417. help: { type: 'boolean', default: !1 },
  8418. s: { type: 'list' },
  8419. v: { type: 'boolean', default: !1 }
  8420. },
  8421. urls: [
  8422. { fmt: '/_cat/segments/<%=index%>', req: { index: { type: 'list' } } },
  8423. { fmt: '/_cat/segments' }
  8424. ]
  8425. })),
  8426. (f.cat.prototype.shards = d({
  8427. params: {
  8428. format: { type: 'string' },
  8429. bytes: {
  8430. type: 'enum',
  8431. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  8432. },
  8433. local: { type: 'boolean' },
  8434. masterTimeout: { type: 'time', name: 'master_timeout' },
  8435. h: { type: 'list' },
  8436. help: { type: 'boolean', default: !1 },
  8437. s: { type: 'list' },
  8438. v: { type: 'boolean', default: !1 }
  8439. },
  8440. urls: [
  8441. { fmt: '/_cat/shards/<%=index%>', req: { index: { type: 'list' } } },
  8442. { fmt: '/_cat/shards' }
  8443. ]
  8444. })),
  8445. (f.cat.prototype.snapshots = d({
  8446. params: {
  8447. format: { type: 'string' },
  8448. ignoreUnavailable: { type: 'boolean', default: !1, name: 'ignore_unavailable' },
  8449. masterTimeout: { type: 'time', name: 'master_timeout' },
  8450. h: { type: 'list' },
  8451. help: { type: 'boolean', default: !1 },
  8452. s: { type: 'list' },
  8453. v: { type: 'boolean', default: !1 }
  8454. },
  8455. urls: [
  8456. { fmt: '/_cat/snapshots/<%=repository%>', req: { repository: { type: 'list' } } },
  8457. { fmt: '/_cat/snapshots' }
  8458. ]
  8459. })),
  8460. (f.cat.prototype.tasks = d({
  8461. params: {
  8462. format: { type: 'string' },
  8463. nodeId: { type: 'list', name: 'node_id' },
  8464. actions: { type: 'list' },
  8465. detailed: { type: 'boolean' },
  8466. parentTask: { type: 'number', name: 'parent_task' },
  8467. h: { type: 'list' },
  8468. help: { type: 'boolean', default: !1 },
  8469. s: { type: 'list' },
  8470. v: { type: 'boolean', default: !1 }
  8471. },
  8472. url: { fmt: '/_cat/tasks' }
  8473. })),
  8474. (f.cat.prototype.templates = d({
  8475. params: {
  8476. format: { type: 'string' },
  8477. local: { type: 'boolean' },
  8478. masterTimeout: { type: 'time', name: 'master_timeout' },
  8479. h: { type: 'list' },
  8480. help: { type: 'boolean', default: !1 },
  8481. s: { type: 'list' },
  8482. v: { type: 'boolean', default: !1 }
  8483. },
  8484. urls: [
  8485. { fmt: '/_cat/templates/<%=name%>', req: { name: { type: 'string' } } },
  8486. { fmt: '/_cat/templates' }
  8487. ]
  8488. })),
  8489. (f.cat.prototype.threadPool = d({
  8490. params: {
  8491. format: { type: 'string' },
  8492. size: { type: 'enum', options: ['', 'k', 'm', 'g', 't', 'p'] },
  8493. local: { type: 'boolean' },
  8494. masterTimeout: { type: 'time', name: 'master_timeout' },
  8495. h: { type: 'list' },
  8496. help: { type: 'boolean', default: !1 },
  8497. s: { type: 'list' },
  8498. v: { type: 'boolean', default: !1 }
  8499. },
  8500. urls: [
  8501. {
  8502. fmt: '/_cat/thread_pool/<%=threadPoolPatterns%>',
  8503. req: { threadPoolPatterns: { type: 'list' } }
  8504. },
  8505. { fmt: '/_cat/thread_pool' }
  8506. ]
  8507. })),
  8508. (f.clearScroll = d({
  8509. url: { fmt: '/_search/scroll' },
  8510. paramAsBody: { param: 'scrollId', body: 'scroll_id' },
  8511. method: 'DELETE'
  8512. })),
  8513. (f.cluster = e()),
  8514. (f.cluster.prototype.allocationExplain = d({
  8515. params: {
  8516. includeYesDecisions: { type: 'boolean', name: 'include_yes_decisions' },
  8517. includeDiskInfo: { type: 'boolean', name: 'include_disk_info' }
  8518. },
  8519. url: { fmt: '/_cluster/allocation/explain' },
  8520. method: 'POST'
  8521. })),
  8522. (f.cluster.prototype.getSettings = d({
  8523. params: {
  8524. flatSettings: { type: 'boolean', name: 'flat_settings' },
  8525. masterTimeout: { type: 'time', name: 'master_timeout' },
  8526. timeout: { type: 'time' },
  8527. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
  8528. },
  8529. url: { fmt: '/_cluster/settings' }
  8530. })),
  8531. (f.cluster.prototype.health = d({
  8532. params: {
  8533. expandWildcards: {
  8534. type: 'enum',
  8535. default: 'all',
  8536. options: ['open', 'closed', 'none', 'all'],
  8537. name: 'expand_wildcards'
  8538. },
  8539. level: { type: 'enum', default: 'cluster', options: ['cluster', 'indices', 'shards'] },
  8540. local: { type: 'boolean' },
  8541. masterTimeout: { type: 'time', name: 'master_timeout' },
  8542. timeout: { type: 'time' },
  8543. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  8544. waitForNodes: { type: 'string', name: 'wait_for_nodes' },
  8545. waitForEvents: {
  8546. type: 'enum',
  8547. options: ['immediate', 'urgent', 'high', 'normal', 'low', 'languid'],
  8548. name: 'wait_for_events'
  8549. },
  8550. waitForNoRelocatingShards: { type: 'boolean', name: 'wait_for_no_relocating_shards' },
  8551. waitForNoInitializingShards: { type: 'boolean', name: 'wait_for_no_initializing_shards' },
  8552. waitForStatus: {
  8553. type: 'enum',
  8554. default: null,
  8555. options: ['green', 'yellow', 'red'],
  8556. name: 'wait_for_status'
  8557. }
  8558. },
  8559. urls: [
  8560. { fmt: '/_cluster/health/<%=index%>', req: { index: { type: 'list' } } },
  8561. { fmt: '/_cluster/health' }
  8562. ]
  8563. })),
  8564. (f.cluster.prototype.pendingTasks = d({
  8565. params: { local: { type: 'boolean' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  8566. url: { fmt: '/_cluster/pending_tasks' }
  8567. })),
  8568. (f.cluster.prototype.putSettings = d({
  8569. params: {
  8570. flatSettings: { type: 'boolean', name: 'flat_settings' },
  8571. masterTimeout: { type: 'time', name: 'master_timeout' },
  8572. timeout: { type: 'time' }
  8573. },
  8574. url: { fmt: '/_cluster/settings' },
  8575. needBody: !0,
  8576. method: 'PUT'
  8577. })),
  8578. (f.cluster.prototype.remoteInfo = d({ url: { fmt: '/_remote/info' } })),
  8579. (f.cluster.prototype.reroute = d({
  8580. params: {
  8581. dryRun: { type: 'boolean', name: 'dry_run' },
  8582. explain: { type: 'boolean' },
  8583. retryFailed: { type: 'boolean', name: 'retry_failed' },
  8584. metric: {
  8585. type: 'list',
  8586. options: [
  8587. '_all',
  8588. 'blocks',
  8589. 'metadata',
  8590. 'nodes',
  8591. 'routing_table',
  8592. 'master_node',
  8593. 'version'
  8594. ]
  8595. },
  8596. masterTimeout: { type: 'time', name: 'master_timeout' },
  8597. timeout: { type: 'time' }
  8598. },
  8599. url: { fmt: '/_cluster/reroute' },
  8600. method: 'POST'
  8601. })),
  8602. (f.cluster.prototype.state = d({
  8603. params: {
  8604. local: { type: 'boolean' },
  8605. masterTimeout: { type: 'time', name: 'master_timeout' },
  8606. flatSettings: { type: 'boolean', name: 'flat_settings' },
  8607. waitForMetadataVersion: { type: 'number', name: 'wait_for_metadata_version' },
  8608. waitForTimeout: { type: 'time', name: 'wait_for_timeout' },
  8609. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  8610. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  8611. expandWildcards: {
  8612. type: 'enum',
  8613. default: 'open',
  8614. options: ['open', 'closed', 'none', 'all'],
  8615. name: 'expand_wildcards'
  8616. }
  8617. },
  8618. urls: [
  8619. {
  8620. fmt: '/_cluster/state/<%=metric%>/<%=index%>',
  8621. req: {
  8622. metric: {
  8623. type: 'list',
  8624. options: [
  8625. '_all',
  8626. 'blocks',
  8627. 'metadata',
  8628. 'nodes',
  8629. 'routing_table',
  8630. 'routing_nodes',
  8631. 'master_node',
  8632. 'version'
  8633. ]
  8634. },
  8635. index: { type: 'list' }
  8636. }
  8637. },
  8638. {
  8639. fmt: '/_cluster/state/<%=metric%>',
  8640. req: {
  8641. metric: {
  8642. type: 'list',
  8643. options: [
  8644. '_all',
  8645. 'blocks',
  8646. 'metadata',
  8647. 'nodes',
  8648. 'routing_table',
  8649. 'routing_nodes',
  8650. 'master_node',
  8651. 'version'
  8652. ]
  8653. }
  8654. }
  8655. },
  8656. { fmt: '/_cluster/state' }
  8657. ]
  8658. })),
  8659. (f.cluster.prototype.stats = d({
  8660. params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
  8661. urls: [
  8662. { fmt: '/_cluster/stats/nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
  8663. { fmt: '/_cluster/stats' }
  8664. ]
  8665. })),
  8666. (f.count = d({
  8667. params: {
  8668. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  8669. ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
  8670. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  8671. expandWildcards: {
  8672. type: 'enum',
  8673. default: 'open',
  8674. options: ['open', 'closed', 'none', 'all'],
  8675. name: 'expand_wildcards'
  8676. },
  8677. minScore: { type: 'number', name: 'min_score' },
  8678. preference: { type: 'string' },
  8679. routing: { type: 'list' },
  8680. q: { type: 'string' },
  8681. analyzer: { type: 'string' },
  8682. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  8683. defaultOperator: {
  8684. type: 'enum',
  8685. default: 'OR',
  8686. options: ['AND', 'OR'],
  8687. name: 'default_operator'
  8688. },
  8689. df: { type: 'string' },
  8690. lenient: { type: 'boolean' },
  8691. terminateAfter: { type: 'number', name: 'terminate_after' }
  8692. },
  8693. urls: [{ fmt: '/<%=index%>/_count', req: { index: { type: 'list' } } }, { fmt: '/_count' }],
  8694. method: 'POST'
  8695. })),
  8696. (f.create = d({
  8697. params: {
  8698. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  8699. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  8700. routing: { type: 'string' },
  8701. timeout: { type: 'time' },
  8702. version: { type: 'number' },
  8703. versionType: {
  8704. type: 'enum',
  8705. options: ['internal', 'external', 'external_gte', 'force'],
  8706. name: 'version_type'
  8707. },
  8708. pipeline: { type: 'string' }
  8709. },
  8710. url: {
  8711. fmt: '/<%=index%>/_create/<%=id%>',
  8712. req: { index: { type: 'string' }, id: { type: 'string' } }
  8713. },
  8714. needBody: !0,
  8715. method: 'POST'
  8716. })),
  8717. (f.delete = d({
  8718. params: {
  8719. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  8720. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  8721. routing: { type: 'string' },
  8722. timeout: { type: 'time' },
  8723. ifSeqNo: { type: 'number', name: 'if_seq_no' },
  8724. ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
  8725. version: { type: 'number' },
  8726. versionType: {
  8727. type: 'enum',
  8728. options: ['internal', 'external', 'external_gte', 'force'],
  8729. name: 'version_type'
  8730. }
  8731. },
  8732. url: {
  8733. fmt: '/<%=index%>/_doc/<%=id%>',
  8734. req: { index: { type: 'string' }, id: { type: 'string' } }
  8735. },
  8736. method: 'DELETE'
  8737. })),
  8738. (f.deleteByQuery = d({
  8739. params: {
  8740. analyzer: { type: 'string' },
  8741. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  8742. defaultOperator: {
  8743. type: 'enum',
  8744. default: 'OR',
  8745. options: ['AND', 'OR'],
  8746. name: 'default_operator'
  8747. },
  8748. df: { type: 'string' },
  8749. from: { type: 'number' },
  8750. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  8751. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  8752. conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
  8753. expandWildcards: {
  8754. type: 'enum',
  8755. default: 'open',
  8756. options: ['open', 'closed', 'none', 'all'],
  8757. name: 'expand_wildcards'
  8758. },
  8759. lenient: { type: 'boolean' },
  8760. preference: { type: 'string' },
  8761. q: { type: 'string' },
  8762. routing: { type: 'list' },
  8763. scroll: { type: 'time' },
  8764. searchType: {
  8765. type: 'enum',
  8766. options: ['query_then_fetch', 'dfs_query_then_fetch'],
  8767. name: 'search_type'
  8768. },
  8769. searchTimeout: { type: 'time', name: 'search_timeout' },
  8770. size: { type: 'number' },
  8771. maxDocs: { type: 'number', name: 'max_docs' },
  8772. sort: { type: 'list' },
  8773. _source: { type: 'list' },
  8774. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  8775. _sourceIncludes: { type: 'list', name: '_source_includes' },
  8776. terminateAfter: { type: 'number', name: 'terminate_after' },
  8777. stats: { type: 'list' },
  8778. version: { type: 'boolean' },
  8779. requestCache: { type: 'boolean', name: 'request_cache' },
  8780. refresh: { type: 'boolean' },
  8781. timeout: { type: 'time', default: '1m' },
  8782. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  8783. scrollSize: { type: 'number', name: 'scroll_size' },
  8784. waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
  8785. requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
  8786. slices: { type: 'number', default: 1 }
  8787. },
  8788. url: { fmt: '/<%=index%>/_delete_by_query', req: { index: { type: 'list' } } },
  8789. needBody: !0,
  8790. method: 'POST'
  8791. })),
  8792. (f.deleteByQueryRethrottle = d({
  8793. params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
  8794. url: { fmt: '/_delete_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
  8795. method: 'POST'
  8796. })),
  8797. (f.deleteScript = d({
  8798. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  8799. url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } },
  8800. method: 'DELETE'
  8801. })),
  8802. (f.exists = d({
  8803. params: {
  8804. storedFields: { type: 'list', name: 'stored_fields' },
  8805. preference: { type: 'string' },
  8806. realtime: { type: 'boolean' },
  8807. refresh: { type: 'boolean' },
  8808. routing: { type: 'string' },
  8809. _source: { type: 'list' },
  8810. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  8811. _sourceIncludes: { type: 'list', name: '_source_includes' },
  8812. version: { type: 'number' },
  8813. versionType: {
  8814. type: 'enum',
  8815. options: ['internal', 'external', 'external_gte', 'force'],
  8816. name: 'version_type'
  8817. }
  8818. },
  8819. url: {
  8820. fmt: '/<%=index%>/_doc/<%=id%>',
  8821. req: { index: { type: 'string' }, id: { type: 'string' } }
  8822. },
  8823. method: 'HEAD'
  8824. })),
  8825. (f.existsSource = d({
  8826. params: {
  8827. preference: { type: 'string' },
  8828. realtime: { type: 'boolean' },
  8829. refresh: { type: 'boolean' },
  8830. routing: { type: 'string' },
  8831. _source: { type: 'list' },
  8832. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  8833. _sourceIncludes: { type: 'list', name: '_source_includes' },
  8834. version: { type: 'number' },
  8835. versionType: {
  8836. type: 'enum',
  8837. options: ['internal', 'external', 'external_gte', 'force'],
  8838. name: 'version_type'
  8839. }
  8840. },
  8841. url: {
  8842. fmt: '/<%=index%>/_source/<%=id%>',
  8843. req: { index: { type: 'string' }, id: { type: 'string' } }
  8844. },
  8845. method: 'HEAD'
  8846. })),
  8847. (f.explain = d({
  8848. params: {
  8849. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  8850. analyzer: { type: 'string' },
  8851. defaultOperator: {
  8852. type: 'enum',
  8853. default: 'OR',
  8854. options: ['AND', 'OR'],
  8855. name: 'default_operator'
  8856. },
  8857. df: { type: 'string' },
  8858. storedFields: { type: 'list', name: 'stored_fields' },
  8859. lenient: { type: 'boolean' },
  8860. preference: { type: 'string' },
  8861. q: { type: 'string' },
  8862. routing: { type: 'string' },
  8863. _source: { type: 'list' },
  8864. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  8865. _sourceIncludes: { type: 'list', name: '_source_includes' }
  8866. },
  8867. url: {
  8868. fmt: '/<%=index%>/_explain/<%=id%>',
  8869. req: { index: { type: 'string' }, id: { type: 'string' } }
  8870. },
  8871. method: 'POST'
  8872. })),
  8873. (f.fieldCaps = d({
  8874. params: {
  8875. fields: { type: 'list' },
  8876. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  8877. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  8878. expandWildcards: {
  8879. type: 'enum',
  8880. default: 'open',
  8881. options: ['open', 'closed', 'none', 'all'],
  8882. name: 'expand_wildcards'
  8883. },
  8884. includeUnmapped: { type: 'boolean', default: !1, name: 'include_unmapped' }
  8885. },
  8886. urls: [
  8887. { fmt: '/<%=index%>/_field_caps', req: { index: { type: 'list' } } },
  8888. { fmt: '/_field_caps' }
  8889. ],
  8890. method: 'POST'
  8891. })),
  8892. (f.get = d({
  8893. params: {
  8894. storedFields: { type: 'list', name: 'stored_fields' },
  8895. preference: { type: 'string' },
  8896. realtime: { type: 'boolean' },
  8897. refresh: { type: 'boolean' },
  8898. routing: { type: 'string' },
  8899. _source: { type: 'list' },
  8900. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  8901. _sourceIncludes: { type: 'list', name: '_source_includes' },
  8902. version: { type: 'number' },
  8903. versionType: {
  8904. type: 'enum',
  8905. options: ['internal', 'external', 'external_gte', 'force'],
  8906. name: 'version_type'
  8907. }
  8908. },
  8909. url: {
  8910. fmt: '/<%=index%>/_doc/<%=id%>',
  8911. req: { index: { type: 'string' }, id: { type: 'string' } }
  8912. }
  8913. })),
  8914. (f.getScript = d({
  8915. params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
  8916. url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
  8917. })),
  8918. (f.getSource = d({
  8919. params: {
  8920. preference: { type: 'string' },
  8921. realtime: { type: 'boolean' },
  8922. refresh: { type: 'boolean' },
  8923. routing: { type: 'string' },
  8924. _source: { type: 'list' },
  8925. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  8926. _sourceIncludes: { type: 'list', name: '_source_includes' },
  8927. version: { type: 'number' },
  8928. versionType: {
  8929. type: 'enum',
  8930. options: ['internal', 'external', 'external_gte', 'force'],
  8931. name: 'version_type'
  8932. }
  8933. },
  8934. url: {
  8935. fmt: '/<%=index%>/_source/<%=id%>',
  8936. req: { index: { type: 'string' }, id: { type: 'string' } }
  8937. }
  8938. })),
  8939. (f.index = d({
  8940. params: {
  8941. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  8942. opType: { type: 'enum', default: 'index', options: ['index', 'create'], name: 'op_type' },
  8943. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  8944. routing: { type: 'string' },
  8945. timeout: { type: 'time' },
  8946. version: { type: 'number' },
  8947. versionType: {
  8948. type: 'enum',
  8949. options: ['internal', 'external', 'external_gte', 'force'],
  8950. name: 'version_type'
  8951. },
  8952. ifSeqNo: { type: 'number', name: 'if_seq_no' },
  8953. ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
  8954. pipeline: { type: 'string' }
  8955. },
  8956. urls: [
  8957. {
  8958. fmt: '/<%=index%>/_doc/<%=id%>',
  8959. req: { index: { type: 'string' }, id: { type: 'string' } }
  8960. },
  8961. { fmt: '/<%=index%>/_doc', req: { index: { type: 'string' } } }
  8962. ],
  8963. needBody: !0,
  8964. method: 'POST'
  8965. })),
  8966. (f.indices = e()),
  8967. (f.indices.prototype.analyze = d({
  8968. params: { index: { type: 'string' } },
  8969. urls: [
  8970. { fmt: '/<%=index%>/_analyze', req: { index: { type: 'string' } } },
  8971. { fmt: '/_analyze' }
  8972. ],
  8973. method: 'POST'
  8974. })),
  8975. (f.indices.prototype.clearCache = d({
  8976. params: {
  8977. fielddata: { type: 'boolean' },
  8978. fields: { type: 'list' },
  8979. query: { type: 'boolean' },
  8980. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  8981. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  8982. expandWildcards: {
  8983. type: 'enum',
  8984. default: 'open',
  8985. options: ['open', 'closed', 'none', 'all'],
  8986. name: 'expand_wildcards'
  8987. },
  8988. index: { type: 'list' },
  8989. request: { type: 'boolean' }
  8990. },
  8991. urls: [
  8992. { fmt: '/<%=index%>/_cache/clear', req: { index: { type: 'list' } } },
  8993. { fmt: '/_cache/clear' }
  8994. ],
  8995. method: 'POST'
  8996. })),
  8997. (f.indices.prototype.clone = d({
  8998. params: {
  8999. timeout: { type: 'time' },
  9000. masterTimeout: { type: 'time', name: 'master_timeout' },
  9001. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  9002. },
  9003. url: {
  9004. fmt: '/<%=index%>/_clone/<%=target%>',
  9005. req: { index: { type: 'string' }, target: { type: 'string' } }
  9006. },
  9007. method: 'POST'
  9008. })),
  9009. (f.indices.prototype.close = d({
  9010. params: {
  9011. timeout: { type: 'time' },
  9012. masterTimeout: { type: 'time', name: 'master_timeout' },
  9013. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  9014. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  9015. expandWildcards: {
  9016. type: 'enum',
  9017. default: 'open',
  9018. options: ['open', 'closed', 'none', 'all'],
  9019. name: 'expand_wildcards'
  9020. },
  9021. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  9022. },
  9023. url: { fmt: '/<%=index%>/_close', req: { index: { type: 'list' } } },
  9024. method: 'POST'
  9025. })),
  9026. (f.indices.prototype.create = d({
  9027. params: {
  9028. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  9029. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  9030. timeout: { type: 'time' },
  9031. masterTimeout: { type: 'time', name: 'master_timeout' }
  9032. },
  9033. url: { fmt: '/<%=index%>', req: { index: { type: 'string' } } },
  9034. method: 'PUT'
  9035. })),
  9036. (f.indices.prototype.delete = d({
  9037. params: {
  9038. timeout: { type: 'time' },
  9039. masterTimeout: { type: 'time', name: 'master_timeout' },
  9040. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  9041. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  9042. expandWildcards: {
  9043. type: 'enum',
  9044. default: 'open',
  9045. options: ['open', 'closed', 'none', 'all'],
  9046. name: 'expand_wildcards'
  9047. }
  9048. },
  9049. url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
  9050. method: 'DELETE'
  9051. })),
  9052. (f.indices.prototype.deleteAlias = d({
  9053. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  9054. url: {
  9055. fmt: '/<%=index%>/_alias/<%=name%>',
  9056. req: { index: { type: 'list' }, name: { type: 'list' } }
  9057. },
  9058. method: 'DELETE'
  9059. })),
  9060. (f.indices.prototype.deleteTemplate = d({
  9061. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  9062. url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
  9063. method: 'DELETE'
  9064. })),
  9065. (f.indices.prototype.exists = d({
  9066. params: {
  9067. local: { type: 'boolean' },
  9068. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  9069. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  9070. expandWildcards: {
  9071. type: 'enum',
  9072. default: 'open',
  9073. options: ['open', 'closed', 'none', 'all'],
  9074. name: 'expand_wildcards'
  9075. },
  9076. flatSettings: { type: 'boolean', name: 'flat_settings' },
  9077. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
  9078. },
  9079. url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
  9080. method: 'HEAD'
  9081. })),
  9082. (f.indices.prototype.existsAlias = d({
  9083. params: {
  9084. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  9085. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  9086. expandWildcards: {
  9087. type: 'enum',
  9088. default: 'all',
  9089. options: ['open', 'closed', 'none', 'all'],
  9090. name: 'expand_wildcards'
  9091. },
  9092. local: { type: 'boolean' }
  9093. },
  9094. urls: [
  9095. {
  9096. fmt: '/<%=index%>/_alias/<%=name%>',
  9097. req: { index: { type: 'list' }, name: { type: 'list' } }
  9098. },
  9099. { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } }
  9100. ],
  9101. method: 'HEAD'
  9102. })),
  9103. (f.indices.prototype.existsTemplate = d({
  9104. params: {
  9105. flatSettings: { type: 'boolean', name: 'flat_settings' },
  9106. masterTimeout: { type: 'time', name: 'master_timeout' },
  9107. local: { type: 'boolean' }
  9108. },
  9109. url: { fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } },
  9110. method: 'HEAD'
  9111. })),
  9112. (f.indices.prototype.existsType = d({
  9113. params: {
  9114. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  9115. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  9116. expandWildcards: {
  9117. type: 'enum',
  9118. default: 'open',
  9119. options: ['open', 'closed', 'none', 'all'],
  9120. name: 'expand_wildcards'
  9121. },
  9122. local: { type: 'boolean' }
  9123. },
  9124. url: {
  9125. fmt: '/<%=index%>/_mapping/<%=type%>',
  9126. req: { index: { type: 'list' }, type: { type: 'list' } }
  9127. },
  9128. method: 'HEAD'
  9129. })),
  9130. (f.indices.prototype.flush = d({
  9131. params: {
  9132. force: { type: 'boolean' },
  9133. waitIfOngoing: { type: 'boolean', name: 'wait_if_ongoing' },
  9134. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  9135. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  9136. expandWildcards: {
  9137. type: 'enum',
  9138. default: 'open',
  9139. options: ['open', 'closed', 'none', 'all'],
  9140. name: 'expand_wildcards'
  9141. }
  9142. },
  9143. urls: [{ fmt: '/<%=index%>/_flush', req: { index: { type: 'list' } } }, { fmt: '/_flush' }],
  9144. method: 'POST'
  9145. })),
  9146. (f.indices.prototype.flushSynced = d({
  9147. params: {
  9148. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  9149. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  9150. expandWildcards: {
  9151. type: 'enum',
  9152. default: 'open',
  9153. options: ['open', 'closed', 'none', 'all'],
  9154. name: 'expand_wildcards'
  9155. }
  9156. },
  9157. urls: [
  9158. { fmt: '/<%=index%>/_flush/synced', req: { index: { type: 'list' } } },
  9159. { fmt: '/_flush/synced' }
  9160. ],
  9161. method: 'POST'
  9162. })),
  9163. (f.indices.prototype.forcemerge = d({
  9164. params: {
  9165. flush: { type: 'boolean' },
  9166. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  9167. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  9168. expandWildcards: {
  9169. type: 'enum',
  9170. default: 'open',
  9171. options: ['open', 'closed', 'none', 'all'],
  9172. name: 'expand_wildcards'
  9173. },
  9174. maxNumSegments: { type: 'number', name: 'max_num_segments' },
  9175. onlyExpungeDeletes: { type: 'boolean', name: 'only_expunge_deletes' }
  9176. },
  9177. urls: [
  9178. { fmt: '/<%=index%>/_forcemerge', req: { index: { type: 'list' } } },
  9179. { fmt: '/_forcemerge' }
  9180. ],
  9181. method: 'POST'
  9182. })),
  9183. (f.indices.prototype.get = d({
  9184. params: {
  9185. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  9186. local: { type: 'boolean' },
  9187. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  9188. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  9189. expandWildcards: {
  9190. type: 'enum',
  9191. default: 'open',
  9192. options: ['open', 'closed', 'none', 'all'],
  9193. name: 'expand_wildcards'
  9194. },
  9195. flatSettings: { type: 'boolean', name: 'flat_settings' },
  9196. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' },
  9197. masterTimeout: { type: 'time', name: 'master_timeout' }
  9198. },
  9199. url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } }
  9200. })),
  9201. (f.indices.prototype.getAlias = d({
  9202. params: {
  9203. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  9204. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  9205. expandWildcards: {
  9206. type: 'enum',
  9207. default: 'all',
  9208. options: ['open', 'closed', 'none', 'all'],
  9209. name: 'expand_wildcards'
  9210. },
  9211. local: { type: 'boolean' }
  9212. },
  9213. urls: [
  9214. {
  9215. fmt: '/<%=index%>/_alias/<%=name%>',
  9216. req: { index: { type: 'list' }, name: { type: 'list' } }
  9217. },
  9218. { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } },
  9219. { fmt: '/<%=index%>/_alias', req: { index: { type: 'list' } } },
  9220. { fmt: '/_alias' }
  9221. ]
  9222. })),
  9223. (f.indices.prototype.getFieldMapping = d({
  9224. params: {
  9225. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  9226. includeDefaults: { type: 'boolean', name: 'include_defaults' },
  9227. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  9228. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  9229. expandWildcards: {
  9230. type: 'enum',
  9231. default: 'open',
  9232. options: ['open', 'closed', 'none', 'all'],
  9233. name: 'expand_wildcards'
  9234. },
  9235. local: { type: 'boolean' }
  9236. },
  9237. urls: [
  9238. {
  9239. fmt: '/<%=index%>/_mapping/field/<%=fields%>',
  9240. req: { index: { type: 'list' }, fields: { type: 'list' } }
  9241. },
  9242. { fmt: '/_mapping/field/<%=fields%>', req: { fields: { type: 'list' } } }
  9243. ]
  9244. })),
  9245. (f.indices.prototype.getMapping = d({
  9246. params: {
  9247. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  9248. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  9249. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  9250. expandWildcards: {
  9251. type: 'enum',
  9252. default: 'open',
  9253. options: ['open', 'closed', 'none', 'all'],
  9254. name: 'expand_wildcards'
  9255. },
  9256. masterTimeout: { type: 'time', name: 'master_timeout' },
  9257. local: { type: 'boolean' }
  9258. },
  9259. urls: [{ fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } }, { fmt: '/_mapping' }]
  9260. })),
  9261. (f.indices.prototype.getSettings = d({
  9262. params: {
  9263. masterTimeout: { type: 'time', name: 'master_timeout' },
  9264. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  9265. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  9266. expandWildcards: {
  9267. type: 'enum',
  9268. default: ['open', 'closed'],
  9269. options: ['open', 'closed', 'none', 'all'],
  9270. name: 'expand_wildcards'
  9271. },
  9272. flatSettings: { type: 'boolean', name: 'flat_settings' },
  9273. local: { type: 'boolean' },
  9274. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
  9275. },
  9276. urls: [
  9277. {
  9278. fmt: '/<%=index%>/_settings/<%=name%>',
  9279. req: { index: { type: 'list' }, name: { type: 'list' } }
  9280. },
  9281. { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
  9282. { fmt: '/_settings/<%=name%>', req: { name: { type: 'list' } } },
  9283. { fmt: '/_settings' }
  9284. ]
  9285. })),
  9286. (f.indices.prototype.getTemplate = d({
  9287. params: {
  9288. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  9289. flatSettings: { type: 'boolean', name: 'flat_settings' },
  9290. masterTimeout: { type: 'time', name: 'master_timeout' },
  9291. local: { type: 'boolean' }
  9292. },
  9293. urls: [{ fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } }, { fmt: '/_template' }]
  9294. })),
  9295. (f.indices.prototype.getUpgrade = d({
  9296. params: {
  9297. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  9298. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  9299. expandWildcards: {
  9300. type: 'enum',
  9301. default: 'open',
  9302. options: ['open', 'closed', 'none', 'all'],
  9303. name: 'expand_wildcards'
  9304. }
  9305. },
  9306. urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }]
  9307. })),
  9308. (f.indices.prototype.open = d({
  9309. params: {
  9310. timeout: { type: 'time' },
  9311. masterTimeout: { type: 'time', name: 'master_timeout' },
  9312. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  9313. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  9314. expandWildcards: {
  9315. type: 'enum',
  9316. default: 'closed',
  9317. options: ['open', 'closed', 'none', 'all'],
  9318. name: 'expand_wildcards'
  9319. },
  9320. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  9321. },
  9322. url: { fmt: '/<%=index%>/_open', req: { index: { type: 'list' } } },
  9323. method: 'POST'
  9324. })),
  9325. (f.indices.prototype.putAlias = d({
  9326. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  9327. url: {
  9328. fmt: '/<%=index%>/_alias/<%=name%>',
  9329. req: { index: { type: 'list' }, name: { type: 'string' } }
  9330. },
  9331. method: 'PUT'
  9332. })),
  9333. (f.indices.prototype.putMapping = d({
  9334. params: {
  9335. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  9336. timeout: { type: 'time' },
  9337. masterTimeout: { type: 'time', name: 'master_timeout' },
  9338. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  9339. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  9340. expandWildcards: {
  9341. type: 'enum',
  9342. default: 'open',
  9343. options: ['open', 'closed', 'none', 'all'],
  9344. name: 'expand_wildcards'
  9345. }
  9346. },
  9347. url: { fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } },
  9348. needBody: !0,
  9349. method: 'PUT'
  9350. })),
  9351. (f.indices.prototype.putSettings = d({
  9352. params: {
  9353. masterTimeout: { type: 'time', name: 'master_timeout' },
  9354. timeout: { type: 'time' },
  9355. preserveExisting: { type: 'boolean', name: 'preserve_existing' },
  9356. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  9357. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  9358. expandWildcards: {
  9359. type: 'enum',
  9360. default: 'open',
  9361. options: ['open', 'closed', 'none', 'all'],
  9362. name: 'expand_wildcards'
  9363. },
  9364. flatSettings: { type: 'boolean', name: 'flat_settings' }
  9365. },
  9366. urls: [
  9367. { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
  9368. { fmt: '/_settings' }
  9369. ],
  9370. needBody: !0,
  9371. method: 'PUT'
  9372. })),
  9373. (f.indices.prototype.putTemplate = d({
  9374. params: {
  9375. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  9376. order: { type: 'number' },
  9377. create: { type: 'boolean', default: !1 },
  9378. timeout: { type: 'time' },
  9379. masterTimeout: { type: 'time', name: 'master_timeout' },
  9380. flatSettings: { type: 'boolean', name: 'flat_settings' }
  9381. },
  9382. url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
  9383. needBody: !0,
  9384. method: 'PUT'
  9385. })),
  9386. (f.indices.prototype.recovery = d({
  9387. params: {
  9388. detailed: { type: 'boolean', default: !1 },
  9389. activeOnly: { type: 'boolean', default: !1, name: 'active_only' }
  9390. },
  9391. urls: [
  9392. { fmt: '/<%=index%>/_recovery', req: { index: { type: 'list' } } },
  9393. { fmt: '/_recovery' }
  9394. ]
  9395. })),
  9396. (f.indices.prototype.refresh = d({
  9397. params: {
  9398. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  9399. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  9400. expandWildcards: {
  9401. type: 'enum',
  9402. default: 'open',
  9403. options: ['open', 'closed', 'none', 'all'],
  9404. name: 'expand_wildcards'
  9405. }
  9406. },
  9407. urls: [{ fmt: '/<%=index%>/_refresh', req: { index: { type: 'list' } } }, { fmt: '/_refresh' }],
  9408. method: 'POST'
  9409. })),
  9410. (f.indices.prototype.rollover = d({
  9411. params: {
  9412. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  9413. timeout: { type: 'time' },
  9414. dryRun: { type: 'boolean', name: 'dry_run' },
  9415. masterTimeout: { type: 'time', name: 'master_timeout' },
  9416. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  9417. },
  9418. urls: [
  9419. {
  9420. fmt: '/<%=alias%>/_rollover/<%=newIndex%>',
  9421. req: { alias: { type: 'string' }, newIndex: { type: 'string' } }
  9422. },
  9423. { fmt: '/<%=alias%>/_rollover', req: { alias: { type: 'string' } } }
  9424. ],
  9425. method: 'POST'
  9426. })),
  9427. (f.indices.prototype.segments = d({
  9428. params: {
  9429. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  9430. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  9431. expandWildcards: {
  9432. type: 'enum',
  9433. default: 'open',
  9434. options: ['open', 'closed', 'none', 'all'],
  9435. name: 'expand_wildcards'
  9436. },
  9437. verbose: { type: 'boolean', default: !1 }
  9438. },
  9439. urls: [
  9440. { fmt: '/<%=index%>/_segments', req: { index: { type: 'list' } } },
  9441. { fmt: '/_segments' }
  9442. ]
  9443. })),
  9444. (f.indices.prototype.shardStores = d({
  9445. params: {
  9446. status: { type: 'list', options: ['green', 'yellow', 'red', 'all'] },
  9447. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  9448. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  9449. expandWildcards: {
  9450. type: 'enum',
  9451. default: 'open',
  9452. options: ['open', 'closed', 'none', 'all'],
  9453. name: 'expand_wildcards'
  9454. }
  9455. },
  9456. urls: [
  9457. { fmt: '/<%=index%>/_shard_stores', req: { index: { type: 'list' } } },
  9458. { fmt: '/_shard_stores' }
  9459. ]
  9460. })),
  9461. (f.indices.prototype.shrink = d({
  9462. params: {
  9463. copySettings: { type: 'boolean', name: 'copy_settings' },
  9464. timeout: { type: 'time' },
  9465. masterTimeout: { type: 'time', name: 'master_timeout' },
  9466. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  9467. },
  9468. url: {
  9469. fmt: '/<%=index%>/_shrink/<%=target%>',
  9470. req: { index: { type: 'string' }, target: { type: 'string' } }
  9471. },
  9472. method: 'POST'
  9473. })),
  9474. (f.indices.prototype.split = d({
  9475. params: {
  9476. copySettings: { type: 'boolean', name: 'copy_settings' },
  9477. timeout: { type: 'time' },
  9478. masterTimeout: { type: 'time', name: 'master_timeout' },
  9479. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  9480. },
  9481. url: {
  9482. fmt: '/<%=index%>/_split/<%=target%>',
  9483. req: { index: { type: 'string' }, target: { type: 'string' } }
  9484. },
  9485. method: 'POST'
  9486. })),
  9487. (f.indices.prototype.stats = d({
  9488. params: {
  9489. completionFields: { type: 'list', name: 'completion_fields' },
  9490. fielddataFields: { type: 'list', name: 'fielddata_fields' },
  9491. fields: { type: 'list' },
  9492. groups: { type: 'list' },
  9493. level: { type: 'enum', default: 'indices', options: ['cluster', 'indices', 'shards'] },
  9494. types: { type: 'list' },
  9495. includeSegmentFileSizes: {
  9496. type: 'boolean',
  9497. default: !1,
  9498. name: 'include_segment_file_sizes'
  9499. },
  9500. includeUnloadedSegments: {
  9501. type: 'boolean',
  9502. default: !1,
  9503. name: 'include_unloaded_segments'
  9504. },
  9505. expandWildcards: {
  9506. type: 'enum',
  9507. default: 'open',
  9508. options: ['open', 'closed', 'none', 'all'],
  9509. name: 'expand_wildcards'
  9510. },
  9511. forbidClosedIndices: { type: 'boolean', default: !0, name: 'forbid_closed_indices' }
  9512. },
  9513. urls: [
  9514. {
  9515. fmt: '/<%=index%>/_stats/<%=metric%>',
  9516. req: {
  9517. index: { type: 'list' },
  9518. metric: {
  9519. type: 'list',
  9520. options: [
  9521. '_all',
  9522. 'completion',
  9523. 'docs',
  9524. 'fielddata',
  9525. 'query_cache',
  9526. 'flush',
  9527. 'get',
  9528. 'indexing',
  9529. 'merge',
  9530. 'request_cache',
  9531. 'refresh',
  9532. 'search',
  9533. 'segments',
  9534. 'store',
  9535. 'warmer',
  9536. 'suggest'
  9537. ]
  9538. }
  9539. }
  9540. },
  9541. {
  9542. fmt: '/_stats/<%=metric%>',
  9543. req: {
  9544. metric: {
  9545. type: 'list',
  9546. options: [
  9547. '_all',
  9548. 'completion',
  9549. 'docs',
  9550. 'fielddata',
  9551. 'query_cache',
  9552. 'flush',
  9553. 'get',
  9554. 'indexing',
  9555. 'merge',
  9556. 'request_cache',
  9557. 'refresh',
  9558. 'search',
  9559. 'segments',
  9560. 'store',
  9561. 'warmer',
  9562. 'suggest'
  9563. ]
  9564. }
  9565. }
  9566. },
  9567. { fmt: '/<%=index%>/_stats', req: { index: { type: 'list' } } },
  9568. { fmt: '/_stats' }
  9569. ]
  9570. })),
  9571. (f.indices.prototype.updateAliases = d({
  9572. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  9573. url: { fmt: '/_aliases' },
  9574. needBody: !0,
  9575. method: 'POST'
  9576. })),
  9577. (f.indices.prototype.upgrade = d({
  9578. params: {
  9579. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  9580. expandWildcards: {
  9581. type: 'enum',
  9582. default: 'open',
  9583. options: ['open', 'closed', 'none', 'all'],
  9584. name: 'expand_wildcards'
  9585. },
  9586. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  9587. waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
  9588. onlyAncientSegments: { type: 'boolean', name: 'only_ancient_segments' }
  9589. },
  9590. urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }],
  9591. method: 'POST'
  9592. })),
  9593. (f.indices.prototype.validateQuery = d({
  9594. params: {
  9595. explain: { type: 'boolean' },
  9596. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  9597. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  9598. expandWildcards: {
  9599. type: 'enum',
  9600. default: 'open',
  9601. options: ['open', 'closed', 'none', 'all'],
  9602. name: 'expand_wildcards'
  9603. },
  9604. q: { type: 'string' },
  9605. analyzer: { type: 'string' },
  9606. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  9607. defaultOperator: {
  9608. type: 'enum',
  9609. default: 'OR',
  9610. options: ['AND', 'OR'],
  9611. name: 'default_operator'
  9612. },
  9613. df: { type: 'string' },
  9614. lenient: { type: 'boolean' },
  9615. rewrite: { type: 'boolean' },
  9616. allShards: { type: 'boolean', name: 'all_shards' }
  9617. },
  9618. urls: [
  9619. { fmt: '/<%=index%>/_validate/query', req: { index: { type: 'list' } } },
  9620. { fmt: '/_validate/query' }
  9621. ],
  9622. method: 'POST'
  9623. })),
  9624. (f.info = d({ url: { fmt: '/' } })),
  9625. (f.ingest = e()),
  9626. (f.ingest.prototype.deletePipeline = d({
  9627. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  9628. url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
  9629. method: 'DELETE'
  9630. })),
  9631. (f.ingest.prototype.getPipeline = d({
  9632. params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
  9633. urls: [
  9634. { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
  9635. { fmt: '/_ingest/pipeline' }
  9636. ]
  9637. })),
  9638. (f.ingest.prototype.processorGrok = d({ url: { fmt: '/_ingest/processor/grok' } })),
  9639. (f.ingest.prototype.putPipeline = d({
  9640. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  9641. url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
  9642. needBody: !0,
  9643. method: 'PUT'
  9644. })),
  9645. (f.ingest.prototype.simulate = d({
  9646. params: { verbose: { type: 'boolean', default: !1 } },
  9647. urls: [
  9648. { fmt: '/_ingest/pipeline/<%=id%>/_simulate', req: { id: { type: 'string' } } },
  9649. { fmt: '/_ingest/pipeline/_simulate' }
  9650. ],
  9651. needBody: !0,
  9652. method: 'POST'
  9653. })),
  9654. (f.mget = d({
  9655. params: {
  9656. storedFields: { type: 'list', name: 'stored_fields' },
  9657. preference: { type: 'string' },
  9658. realtime: { type: 'boolean' },
  9659. refresh: { type: 'boolean' },
  9660. routing: { type: 'string' },
  9661. _source: { type: 'list' },
  9662. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  9663. _sourceIncludes: { type: 'list', name: '_source_includes' }
  9664. },
  9665. urls: [{ fmt: '/<%=index%>/_mget', req: { index: { type: 'string' } } }, { fmt: '/_mget' }],
  9666. needBody: !0,
  9667. method: 'POST'
  9668. })),
  9669. (f.msearch = d({
  9670. params: {
  9671. searchType: {
  9672. type: 'enum',
  9673. options: [
  9674. 'query_then_fetch',
  9675. 'query_and_fetch',
  9676. 'dfs_query_then_fetch',
  9677. 'dfs_query_and_fetch'
  9678. ],
  9679. name: 'search_type'
  9680. },
  9681. maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
  9682. typedKeys: { type: 'boolean', name: 'typed_keys' },
  9683. preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
  9684. maxConcurrentShardRequests: {
  9685. type: 'number',
  9686. default: 5,
  9687. name: 'max_concurrent_shard_requests'
  9688. },
  9689. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
  9690. ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
  9691. },
  9692. urls: [{ fmt: '/<%=index%>/_msearch', req: { index: { type: 'list' } } }, { fmt: '/_msearch' }],
  9693. needBody: !0,
  9694. bulkBody: !0,
  9695. method: 'POST'
  9696. })),
  9697. (f.msearchTemplate = d({
  9698. params: {
  9699. searchType: {
  9700. type: 'enum',
  9701. options: [
  9702. 'query_then_fetch',
  9703. 'query_and_fetch',
  9704. 'dfs_query_then_fetch',
  9705. 'dfs_query_and_fetch'
  9706. ],
  9707. name: 'search_type'
  9708. },
  9709. typedKeys: { type: 'boolean', name: 'typed_keys' },
  9710. maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
  9711. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
  9712. ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
  9713. },
  9714. urls: [
  9715. { fmt: '/<%=index%>/_msearch/template', req: { index: { type: 'list' } } },
  9716. { fmt: '/_msearch/template' }
  9717. ],
  9718. needBody: !0,
  9719. bulkBody: !0,
  9720. method: 'POST'
  9721. })),
  9722. (f.mtermvectors = d({
  9723. params: {
  9724. ids: { type: 'list', required: !1 },
  9725. termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
  9726. fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
  9727. fields: { type: 'list', required: !1 },
  9728. offsets: { type: 'boolean', default: !0, required: !1 },
  9729. positions: { type: 'boolean', default: !0, required: !1 },
  9730. payloads: { type: 'boolean', default: !0, required: !1 },
  9731. preference: { type: 'string', required: !1 },
  9732. routing: { type: 'string', required: !1 },
  9733. realtime: { type: 'boolean', required: !1 },
  9734. version: { type: 'number' },
  9735. versionType: {
  9736. type: 'enum',
  9737. options: ['internal', 'external', 'external_gte', 'force'],
  9738. name: 'version_type'
  9739. }
  9740. },
  9741. urls: [
  9742. { fmt: '/<%=index%>/_mtermvectors', req: { index: { type: 'string' } } },
  9743. { fmt: '/_mtermvectors' }
  9744. ],
  9745. method: 'POST'
  9746. })),
  9747. (f.nodes = e()),
  9748. (f.nodes.prototype.hotThreads = d({
  9749. params: {
  9750. interval: { type: 'time' },
  9751. snapshots: { type: 'number' },
  9752. threads: { type: 'number' },
  9753. ignoreIdleThreads: { type: 'boolean', name: 'ignore_idle_threads' },
  9754. type: { type: 'enum', options: ['cpu', 'wait', 'block'] },
  9755. timeout: { type: 'time' }
  9756. },
  9757. url: {}
  9758. })),
  9759. (f.nodes.prototype.info = d({
  9760. params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
  9761. urls: [
  9762. {
  9763. fmt: '/_nodes/<%=nodeId%>/<%=metric%>',
  9764. req: {
  9765. nodeId: { type: 'list' },
  9766. metric: {
  9767. type: 'list',
  9768. options: [
  9769. 'settings',
  9770. 'os',
  9771. 'process',
  9772. 'jvm',
  9773. 'thread_pool',
  9774. 'transport',
  9775. 'http',
  9776. 'plugins',
  9777. 'ingest'
  9778. ]
  9779. }
  9780. }
  9781. },
  9782. { fmt: '/_nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
  9783. {
  9784. fmt: '/_nodes/<%=metric%>',
  9785. req: {
  9786. metric: {
  9787. type: 'list',
  9788. options: [
  9789. 'settings',
  9790. 'os',
  9791. 'process',
  9792. 'jvm',
  9793. 'thread_pool',
  9794. 'transport',
  9795. 'http',
  9796. 'plugins',
  9797. 'ingest'
  9798. ]
  9799. }
  9800. }
  9801. },
  9802. { fmt: '/_nodes' }
  9803. ]
  9804. })),
  9805. (f.nodes.prototype.reloadSecureSettings = d({
  9806. params: { timeout: { type: 'time' } },
  9807. urls: [
  9808. { fmt: '/_nodes/<%=nodeId%>/reload_secure_settings', req: { nodeId: { type: 'list' } } },
  9809. { fmt: '/_nodes/reload_secure_settings' }
  9810. ],
  9811. method: 'POST'
  9812. })),
  9813. (f.nodes.prototype.stats = d({
  9814. params: {
  9815. completionFields: { type: 'list', name: 'completion_fields' },
  9816. fielddataFields: { type: 'list', name: 'fielddata_fields' },
  9817. fields: { type: 'list' },
  9818. groups: { type: 'boolean' },
  9819. level: { type: 'enum', default: 'node', options: ['indices', 'node', 'shards'] },
  9820. types: { type: 'list' },
  9821. timeout: { type: 'time' },
  9822. includeSegmentFileSizes: {
  9823. type: 'boolean',
  9824. default: !1,
  9825. name: 'include_segment_file_sizes'
  9826. }
  9827. },
  9828. urls: [
  9829. {
  9830. fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>',
  9831. req: {
  9832. nodeId: { type: 'list' },
  9833. metric: {
  9834. type: 'list',
  9835. options: [
  9836. '_all',
  9837. 'breaker',
  9838. 'fs',
  9839. 'http',
  9840. 'indices',
  9841. 'jvm',
  9842. 'os',
  9843. 'process',
  9844. 'thread_pool',
  9845. 'transport',
  9846. 'discovery'
  9847. ]
  9848. },
  9849. indexMetric: {
  9850. type: 'list',
  9851. options: [
  9852. '_all',
  9853. 'completion',
  9854. 'docs',
  9855. 'fielddata',
  9856. 'query_cache',
  9857. 'flush',
  9858. 'get',
  9859. 'indexing',
  9860. 'merge',
  9861. 'request_cache',
  9862. 'refresh',
  9863. 'search',
  9864. 'segments',
  9865. 'store',
  9866. 'warmer',
  9867. 'suggest'
  9868. ]
  9869. }
  9870. }
  9871. },
  9872. {
  9873. fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>',
  9874. req: {
  9875. nodeId: { type: 'list' },
  9876. metric: {
  9877. type: 'list',
  9878. options: [
  9879. '_all',
  9880. 'breaker',
  9881. 'fs',
  9882. 'http',
  9883. 'indices',
  9884. 'jvm',
  9885. 'os',
  9886. 'process',
  9887. 'thread_pool',
  9888. 'transport',
  9889. 'discovery'
  9890. ]
  9891. }
  9892. }
  9893. },
  9894. {
  9895. fmt: '/_nodes/stats/<%=metric%>/<%=indexMetric%>',
  9896. req: {
  9897. metric: {
  9898. type: 'list',
  9899. options: [
  9900. '_all',
  9901. 'breaker',
  9902. 'fs',
  9903. 'http',
  9904. 'indices',
  9905. 'jvm',
  9906. 'os',
  9907. 'process',
  9908. 'thread_pool',
  9909. 'transport',
  9910. 'discovery'
  9911. ]
  9912. },
  9913. indexMetric: {
  9914. type: 'list',
  9915. options: [
  9916. '_all',
  9917. 'completion',
  9918. 'docs',
  9919. 'fielddata',
  9920. 'query_cache',
  9921. 'flush',
  9922. 'get',
  9923. 'indexing',
  9924. 'merge',
  9925. 'request_cache',
  9926. 'refresh',
  9927. 'search',
  9928. 'segments',
  9929. 'store',
  9930. 'warmer',
  9931. 'suggest'
  9932. ]
  9933. }
  9934. }
  9935. },
  9936. { fmt: '/_nodes/<%=nodeId%>/stats', req: { nodeId: { type: 'list' } } },
  9937. {
  9938. fmt: '/_nodes/stats/<%=metric%>',
  9939. req: {
  9940. metric: {
  9941. type: 'list',
  9942. options: [
  9943. '_all',
  9944. 'breaker',
  9945. 'fs',
  9946. 'http',
  9947. 'indices',
  9948. 'jvm',
  9949. 'os',
  9950. 'process',
  9951. 'thread_pool',
  9952. 'transport',
  9953. 'discovery'
  9954. ]
  9955. }
  9956. }
  9957. },
  9958. { fmt: '/_nodes/stats' }
  9959. ]
  9960. })),
  9961. (f.nodes.prototype.usage = d({
  9962. params: { timeout: { type: 'time' } },
  9963. urls: [
  9964. {
  9965. fmt: '/_nodes/<%=nodeId%>/usage/<%=metric%>',
  9966. req: {
  9967. nodeId: { type: 'list' },
  9968. metric: { type: 'list', options: ['_all', 'rest_actions'] }
  9969. }
  9970. },
  9971. { fmt: '/_nodes/<%=nodeId%>/usage', req: { nodeId: { type: 'list' } } },
  9972. {
  9973. fmt: '/_nodes/usage/<%=metric%>',
  9974. req: { metric: { type: 'list', options: ['_all', 'rest_actions'] } }
  9975. },
  9976. { fmt: '/_nodes/usage' }
  9977. ]
  9978. })),
  9979. (f.ping = d({ url: { fmt: '/' }, method: 'HEAD' })),
  9980. (f.putScript = d({
  9981. params: {
  9982. timeout: { type: 'time' },
  9983. masterTimeout: { type: 'time', name: 'master_timeout' },
  9984. context: { type: 'string' }
  9985. },
  9986. urls: [
  9987. {
  9988. fmt: '/_scripts/<%=id%>/<%=context%>',
  9989. req: { id: { type: 'string' }, context: { type: 'string' } }
  9990. },
  9991. { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
  9992. ],
  9993. needBody: !0,
  9994. method: 'PUT'
  9995. })),
  9996. (f.rankEval = d({
  9997. params: {
  9998. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  9999. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  10000. expandWildcards: {
  10001. type: 'enum',
  10002. default: 'open',
  10003. options: ['open', 'closed', 'none', 'all'],
  10004. name: 'expand_wildcards'
  10005. }
  10006. },
  10007. urls: [
  10008. { fmt: '/<%=index%>/_rank_eval', req: { index: { type: 'list' } } },
  10009. { fmt: '/_rank_eval' }
  10010. ],
  10011. needBody: !0,
  10012. method: 'POST'
  10013. })),
  10014. (f.reindex = d({
  10015. params: {
  10016. refresh: { type: 'boolean' },
  10017. timeout: { type: 'time', default: '1m' },
  10018. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  10019. waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
  10020. requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
  10021. scroll: { type: 'time', default: '5m' },
  10022. slices: { type: 'number', default: 1 },
  10023. maxDocs: { type: 'number', name: 'max_docs' }
  10024. },
  10025. url: { fmt: '/_reindex' },
  10026. needBody: !0,
  10027. method: 'POST'
  10028. })),
  10029. (f.reindexRethrottle = d({
  10030. params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
  10031. url: { fmt: '/_reindex/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
  10032. method: 'POST'
  10033. })),
  10034. (f.renderSearchTemplate = d({
  10035. urls: [
  10036. { fmt: '/_render/template/<%=id%>', req: { id: { type: 'string' } } },
  10037. { fmt: '/_render/template' }
  10038. ],
  10039. method: 'POST'
  10040. })),
  10041. (f.scriptsPainlessExecute = d({ url: { fmt: '/_scripts/painless/_execute' }, method: 'POST' })),
  10042. (f.scroll = d({
  10043. params: {
  10044. scroll: { type: 'time' },
  10045. scrollId: { type: 'string', name: 'scroll_id' },
  10046. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
  10047. },
  10048. url: { fmt: '/_search/scroll' },
  10049. paramAsBody: { param: 'scrollId', body: 'scroll_id' },
  10050. method: 'POST'
  10051. })),
  10052. (f.search = d({
  10053. params: {
  10054. analyzer: { type: 'string' },
  10055. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  10056. ccsMinimizeRoundtrips: {
  10057. type: 'boolean',
  10058. default: 'true',
  10059. name: 'ccs_minimize_roundtrips'
  10060. },
  10061. defaultOperator: {
  10062. type: 'enum',
  10063. default: 'OR',
  10064. options: ['AND', 'OR'],
  10065. name: 'default_operator'
  10066. },
  10067. df: { type: 'string' },
  10068. explain: { type: 'boolean' },
  10069. storedFields: { type: 'list', name: 'stored_fields' },
  10070. docvalueFields: { type: 'list', name: 'docvalue_fields' },
  10071. from: { type: 'number' },
  10072. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  10073. ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
  10074. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  10075. expandWildcards: {
  10076. type: 'enum',
  10077. default: 'open',
  10078. options: ['open', 'closed', 'none', 'all'],
  10079. name: 'expand_wildcards'
  10080. },
  10081. lenient: { type: 'boolean' },
  10082. preference: { type: 'string' },
  10083. q: { type: 'string' },
  10084. routing: { type: 'list' },
  10085. scroll: { type: 'time' },
  10086. searchType: {
  10087. type: 'enum',
  10088. options: ['query_then_fetch', 'dfs_query_then_fetch'],
  10089. name: 'search_type'
  10090. },
  10091. size: { type: 'number' },
  10092. sort: { type: 'list' },
  10093. _source: { type: 'list' },
  10094. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  10095. _sourceIncludes: { type: 'list', name: '_source_includes' },
  10096. terminateAfter: { type: 'number', name: 'terminate_after' },
  10097. stats: { type: 'list' },
  10098. suggestField: { type: 'string', name: 'suggest_field' },
  10099. suggestMode: {
  10100. type: 'enum',
  10101. default: 'missing',
  10102. options: ['missing', 'popular', 'always'],
  10103. name: 'suggest_mode'
  10104. },
  10105. suggestSize: { type: 'number', name: 'suggest_size' },
  10106. suggestText: { type: 'string', name: 'suggest_text' },
  10107. timeout: { type: 'time' },
  10108. trackScores: { type: 'boolean', name: 'track_scores' },
  10109. trackTotalHits: { type: 'boolean', name: 'track_total_hits' },
  10110. allowPartialSearchResults: {
  10111. type: 'boolean',
  10112. default: !0,
  10113. name: 'allow_partial_search_results'
  10114. },
  10115. typedKeys: { type: 'boolean', name: 'typed_keys' },
  10116. version: { type: 'boolean' },
  10117. seqNoPrimaryTerm: { type: 'boolean', name: 'seq_no_primary_term' },
  10118. requestCache: { type: 'boolean', name: 'request_cache' },
  10119. batchedReduceSize: { type: 'number', default: 512, name: 'batched_reduce_size' },
  10120. maxConcurrentShardRequests: {
  10121. type: 'number',
  10122. default: 5,
  10123. name: 'max_concurrent_shard_requests'
  10124. },
  10125. preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
  10126. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
  10127. },
  10128. urls: [{ fmt: '/<%=index%>/_search', req: { index: { type: 'list' } } }, { fmt: '/_search' }],
  10129. method: 'POST'
  10130. })),
  10131. (f.searchShards = d({
  10132. params: {
  10133. preference: { type: 'string' },
  10134. routing: { type: 'string' },
  10135. local: { type: 'boolean' },
  10136. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  10137. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  10138. expandWildcards: {
  10139. type: 'enum',
  10140. default: 'open',
  10141. options: ['open', 'closed', 'none', 'all'],
  10142. name: 'expand_wildcards'
  10143. }
  10144. },
  10145. urls: [
  10146. { fmt: '/<%=index%>/_search_shards', req: { index: { type: 'list' } } },
  10147. { fmt: '/_search_shards' }
  10148. ],
  10149. method: 'POST'
  10150. })),
  10151. (f.searchTemplate = d({
  10152. params: {
  10153. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  10154. ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
  10155. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  10156. expandWildcards: {
  10157. type: 'enum',
  10158. default: 'open',
  10159. options: ['open', 'closed', 'none', 'all'],
  10160. name: 'expand_wildcards'
  10161. },
  10162. preference: { type: 'string' },
  10163. routing: { type: 'list' },
  10164. scroll: { type: 'time' },
  10165. searchType: {
  10166. type: 'enum',
  10167. options: [
  10168. 'query_then_fetch',
  10169. 'query_and_fetch',
  10170. 'dfs_query_then_fetch',
  10171. 'dfs_query_and_fetch'
  10172. ],
  10173. name: 'search_type'
  10174. },
  10175. explain: { type: 'boolean' },
  10176. profile: { type: 'boolean' },
  10177. typedKeys: { type: 'boolean', name: 'typed_keys' },
  10178. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
  10179. ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
  10180. },
  10181. urls: [
  10182. { fmt: '/<%=index%>/_search/template', req: { index: { type: 'list' } } },
  10183. { fmt: '/_search/template' }
  10184. ],
  10185. needBody: !0,
  10186. method: 'POST'
  10187. })),
  10188. (f.snapshot = e()),
  10189. (f.snapshot.prototype.create = d({
  10190. params: {
  10191. masterTimeout: { type: 'time', name: 'master_timeout' },
  10192. waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
  10193. },
  10194. url: {
  10195. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
  10196. req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
  10197. },
  10198. method: 'POST'
  10199. })),
  10200. (f.snapshot.prototype.createRepository = d({
  10201. params: {
  10202. masterTimeout: { type: 'time', name: 'master_timeout' },
  10203. timeout: { type: 'time' },
  10204. verify: { type: 'boolean' }
  10205. },
  10206. url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'string' } } },
  10207. needBody: !0,
  10208. method: 'POST'
  10209. })),
  10210. (f.snapshot.prototype.delete = d({
  10211. params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
  10212. url: {
  10213. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
  10214. req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
  10215. },
  10216. method: 'DELETE'
  10217. })),
  10218. (f.snapshot.prototype.deleteRepository = d({
  10219. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  10220. url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
  10221. method: 'DELETE'
  10222. })),
  10223. (f.snapshot.prototype.get = d({
  10224. params: {
  10225. masterTimeout: { type: 'time', name: 'master_timeout' },
  10226. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  10227. verbose: { type: 'boolean' }
  10228. },
  10229. url: {
  10230. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
  10231. req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
  10232. }
  10233. })),
  10234. (f.snapshot.prototype.getRepository = d({
  10235. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, local: { type: 'boolean' } },
  10236. urls: [
  10237. { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
  10238. { fmt: '/_snapshot' }
  10239. ]
  10240. })),
  10241. (f.snapshot.prototype.restore = d({
  10242. params: {
  10243. masterTimeout: { type: 'time', name: 'master_timeout' },
  10244. waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
  10245. },
  10246. url: {
  10247. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_restore',
  10248. req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
  10249. },
  10250. method: 'POST'
  10251. })),
  10252. (f.snapshot.prototype.status = d({
  10253. params: {
  10254. masterTimeout: { type: 'time', name: 'master_timeout' },
  10255. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' }
  10256. },
  10257. urls: [
  10258. {
  10259. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_status',
  10260. req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
  10261. },
  10262. { fmt: '/_snapshot/<%=repository%>/_status', req: { repository: { type: 'string' } } },
  10263. { fmt: '/_snapshot/_status' }
  10264. ]
  10265. })),
  10266. (f.snapshot.prototype.verifyRepository = d({
  10267. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  10268. url: { fmt: '/_snapshot/<%=repository%>/_verify', req: { repository: { type: 'string' } } },
  10269. method: 'POST'
  10270. })),
  10271. (f.tasks = e()),
  10272. (f.tasks.prototype.cancel = d({
  10273. params: {
  10274. nodes: { type: 'list' },
  10275. actions: { type: 'list' },
  10276. parentTaskId: { type: 'string', name: 'parent_task_id' }
  10277. },
  10278. urls: [
  10279. { fmt: '/_tasks/<%=taskId%>/_cancel', req: { taskId: { type: 'string' } } },
  10280. { fmt: '/_tasks/_cancel' }
  10281. ],
  10282. method: 'POST'
  10283. })),
  10284. (f.tasks.prototype.get = d({
  10285. params: {
  10286. waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
  10287. timeout: { type: 'time' }
  10288. },
  10289. url: { fmt: '/_tasks/<%=taskId%>', req: { taskId: { type: 'string' } } }
  10290. })),
  10291. (f.tasks.prototype.list = d({
  10292. params: {
  10293. nodes: { type: 'list' },
  10294. actions: { type: 'list' },
  10295. detailed: { type: 'boolean' },
  10296. parentTaskId: { type: 'string', name: 'parent_task_id' },
  10297. waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
  10298. groupBy: {
  10299. type: 'enum',
  10300. default: 'nodes',
  10301. options: ['nodes', 'parents', 'none'],
  10302. name: 'group_by'
  10303. },
  10304. timeout: { type: 'time' }
  10305. },
  10306. url: { fmt: '/_tasks' }
  10307. })),
  10308. (f.termvectors = d({
  10309. params: {
  10310. termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
  10311. fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
  10312. fields: { type: 'list', required: !1 },
  10313. offsets: { type: 'boolean', default: !0, required: !1 },
  10314. positions: { type: 'boolean', default: !0, required: !1 },
  10315. payloads: { type: 'boolean', default: !0, required: !1 },
  10316. preference: { type: 'string', required: !1 },
  10317. routing: { type: 'string', required: !1 },
  10318. realtime: { type: 'boolean', required: !1 },
  10319. version: { type: 'number' },
  10320. versionType: {
  10321. type: 'enum',
  10322. options: ['internal', 'external', 'external_gte', 'force'],
  10323. name: 'version_type'
  10324. }
  10325. },
  10326. urls: [
  10327. {
  10328. fmt: '/<%=index%>/_termvectors/<%=id%>',
  10329. req: { index: { type: 'string' }, id: { type: 'string' } }
  10330. },
  10331. { fmt: '/<%=index%>/_termvectors', req: { index: { type: 'string' } } }
  10332. ],
  10333. method: 'POST'
  10334. })),
  10335. (f.update = d({
  10336. params: {
  10337. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  10338. _source: { type: 'list' },
  10339. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  10340. _sourceIncludes: { type: 'list', name: '_source_includes' },
  10341. lang: { type: 'string' },
  10342. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  10343. retryOnConflict: { type: 'number', name: 'retry_on_conflict' },
  10344. routing: { type: 'string' },
  10345. timeout: { type: 'time' },
  10346. ifSeqNo: { type: 'number', name: 'if_seq_no' },
  10347. ifPrimaryTerm: { type: 'number', name: 'if_primary_term' }
  10348. },
  10349. url: {
  10350. fmt: '/<%=index%>/_update/<%=id%>',
  10351. req: { index: { type: 'string' }, id: { type: 'string' } }
  10352. },
  10353. needBody: !0,
  10354. method: 'POST'
  10355. })),
  10356. (f.updateByQuery = d({
  10357. params: {
  10358. analyzer: { type: 'string' },
  10359. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  10360. defaultOperator: {
  10361. type: 'enum',
  10362. default: 'OR',
  10363. options: ['AND', 'OR'],
  10364. name: 'default_operator'
  10365. },
  10366. df: { type: 'string' },
  10367. from: { type: 'number' },
  10368. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  10369. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  10370. conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
  10371. expandWildcards: {
  10372. type: 'enum',
  10373. default: 'open',
  10374. options: ['open', 'closed', 'none', 'all'],
  10375. name: 'expand_wildcards'
  10376. },
  10377. lenient: { type: 'boolean' },
  10378. pipeline: { type: 'string' },
  10379. preference: { type: 'string' },
  10380. q: { type: 'string' },
  10381. routing: { type: 'list' },
  10382. scroll: { type: 'time' },
  10383. searchType: {
  10384. type: 'enum',
  10385. options: ['query_then_fetch', 'dfs_query_then_fetch'],
  10386. name: 'search_type'
  10387. },
  10388. searchTimeout: { type: 'time', name: 'search_timeout' },
  10389. size: { type: 'number' },
  10390. maxDocs: { type: 'number', name: 'max_docs' },
  10391. sort: { type: 'list' },
  10392. _source: { type: 'list' },
  10393. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  10394. _sourceIncludes: { type: 'list', name: '_source_includes' },
  10395. terminateAfter: { type: 'number', name: 'terminate_after' },
  10396. stats: { type: 'list' },
  10397. version: { type: 'boolean' },
  10398. versionType: { type: 'boolean', name: 'version_type' },
  10399. requestCache: { type: 'boolean', name: 'request_cache' },
  10400. refresh: { type: 'boolean' },
  10401. timeout: { type: 'time', default: '1m' },
  10402. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  10403. scrollSize: { type: 'number', name: 'scroll_size' },
  10404. waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
  10405. requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
  10406. slices: { type: 'number', default: 1 }
  10407. },
  10408. url: { fmt: '/<%=index%>/_update_by_query', req: { index: { type: 'list' } } },
  10409. method: 'POST'
  10410. })),
  10411. (f.updateByQueryRethrottle = d({
  10412. params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
  10413. url: { fmt: '/_update_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
  10414. method: 'POST'
  10415. }));
  10416. },
  10417. function(a, b, c) {
  10418. function d() {
  10419. throw new Error(
  10420. 'Looks like you are expecting the previous "elasticsearch" module. It is now the "es" module. To create a client with this module use `new es.Client(params)`.'
  10421. );
  10422. }
  10423. (d.Client = c(10)), (d.ConnectionPool = c(9)), (d.Transport = c(6)), (d.errors = c(4)), (a.exports = d);
  10424. },
  10425. function(a, b, c) {
  10426. 'use strict';
  10427. function d(a) {
  10428. var b = a.length;
  10429. if (b % 4 > 0) throw new Error('Invalid string. Length must be a multiple of 4');
  10430. var c = a.indexOf('=');
  10431. c === -1 && (c = b);
  10432. var d = c === b ? 0 : 4 - (c % 4);
  10433. return [c, d];
  10434. }
  10435. function e(a) {
  10436. var b = d(a),
  10437. c = b[0],
  10438. e = b[1];
  10439. return (3 * (c + e)) / 4 - e;
  10440. }
  10441. function f(a, b, c) {
  10442. return (3 * (b + c)) / 4 - c;
  10443. }
  10444. function g(a) {
  10445. var b,
  10446. c,
  10447. e = d(a),
  10448. g = e[0],
  10449. h = e[1],
  10450. i = new m(f(a, g, h)),
  10451. j = 0,
  10452. k = h > 0 ? g - 4 : g;
  10453. for (c = 0; c < k; c += 4)
  10454. (b =
  10455. (l[a.charCodeAt(c)] << 18) |
  10456. (l[a.charCodeAt(c + 1)] << 12) |
  10457. (l[a.charCodeAt(c + 2)] << 6) |
  10458. l[a.charCodeAt(c + 3)]),
  10459. (i[j++] = (b >> 16) & 255),
  10460. (i[j++] = (b >> 8) & 255),
  10461. (i[j++] = 255 & b);
  10462. return (
  10463. 2 === h &&
  10464. ((b = (l[a.charCodeAt(c)] << 2) | (l[a.charCodeAt(c + 1)] >> 4)), (i[j++] = 255 & b)),
  10465. 1 === h &&
  10466. ((b =
  10467. (l[a.charCodeAt(c)] << 10) |
  10468. (l[a.charCodeAt(c + 1)] << 4) |
  10469. (l[a.charCodeAt(c + 2)] >> 2)),
  10470. (i[j++] = (b >> 8) & 255),
  10471. (i[j++] = 255 & b)),
  10472. i
  10473. );
  10474. }
  10475. function h(a) {
  10476. return k[(a >> 18) & 63] + k[(a >> 12) & 63] + k[(a >> 6) & 63] + k[63 & a];
  10477. }
  10478. function i(a, b, c) {
  10479. for (var d, e = [], f = b; f < c; f += 3)
  10480. (d = ((a[f] << 16) & 16711680) + ((a[f + 1] << 8) & 65280) + (255 & a[f + 2])), e.push(h(d));
  10481. return e.join('');
  10482. }
  10483. function j(a) {
  10484. for (var b, c = a.length, d = c % 3, e = [], f = 16383, g = 0, h = c - d; g < h; g += f)
  10485. e.push(i(a, g, g + f > h ? h : g + f));
  10486. return (
  10487. 1 === d
  10488. ? ((b = a[c - 1]), e.push(k[b >> 2] + k[(b << 4) & 63] + '=='))
  10489. : 2 === d &&
  10490. ((b = (a[c - 2] << 8) + a[c - 1]),
  10491. e.push(k[b >> 10] + k[(b >> 4) & 63] + k[(b << 2) & 63] + '=')),
  10492. e.join('')
  10493. );
  10494. }
  10495. (b.byteLength = e), (b.toByteArray = g), (b.fromByteArray = j);
  10496. for (
  10497. var k = [],
  10498. l = [],
  10499. m = 'undefined' != typeof Uint8Array ? Uint8Array : Array,
  10500. n = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
  10501. o = 0,
  10502. p = n.length;
  10503. o < p;
  10504. ++o
  10505. )
  10506. (k[o] = n[o]), (l[n.charCodeAt(o)] = o);
  10507. (l['-'.charCodeAt(0)] = 62), (l['_'.charCodeAt(0)] = 63);
  10508. },
  10509. function(a, b) {
  10510. (b.read = function(a, b, c, d, e) {
  10511. var f,
  10512. g,
  10513. h = 8 * e - d - 1,
  10514. i = (1 << h) - 1,
  10515. j = i >> 1,
  10516. k = -7,
  10517. l = c ? e - 1 : 0,
  10518. m = c ? -1 : 1,
  10519. n = a[b + l];
  10520. for (
  10521. l += m, f = n & ((1 << -k) - 1), n >>= -k, k += h;
  10522. k > 0;
  10523. f = 256 * f + a[b + l], l += m, k -= 8
  10524. );
  10525. for (g = f & ((1 << -k) - 1), f >>= -k, k += d; k > 0; g = 256 * g + a[b + l], l += m, k -= 8);
  10526. if (0 === f) f = 1 - j;
  10527. else {
  10528. if (f === i) return g ? NaN : (n ? -1 : 1) * (1 / 0);
  10529. (g += Math.pow(2, d)), (f -= j);
  10530. }
  10531. return (n ? -1 : 1) * g * Math.pow(2, f - d);
  10532. }),
  10533. (b.write = function(a, b, c, d, e, f) {
  10534. var g,
  10535. h,
  10536. i,
  10537. j = 8 * f - e - 1,
  10538. k = (1 << j) - 1,
  10539. l = k >> 1,
  10540. m = 23 === e ? Math.pow(2, -24) - Math.pow(2, -77) : 0,
  10541. n = d ? 0 : f - 1,
  10542. o = d ? 1 : -1,
  10543. p = b < 0 || (0 === b && 1 / b < 0) ? 1 : 0;
  10544. for (
  10545. b = Math.abs(b),
  10546. isNaN(b) || b === 1 / 0
  10547. ? ((h = isNaN(b) ? 1 : 0), (g = k))
  10548. : ((g = Math.floor(Math.log(b) / Math.LN2)),
  10549. b * (i = Math.pow(2, -g)) < 1 && (g--, (i *= 2)),
  10550. (b += g + l >= 1 ? m / i : m * Math.pow(2, 1 - l)),
  10551. b * i >= 2 && (g++, (i /= 2)),
  10552. g + l >= k
  10553. ? ((h = 0), (g = k))
  10554. : g + l >= 1
  10555. ? ((h = (b * i - 1) * Math.pow(2, e)), (g += l))
  10556. : ((h = b * Math.pow(2, l - 1) * Math.pow(2, e)), (g = 0)));
  10557. e >= 8;
  10558. a[c + n] = 255 & h, n += o, h /= 256, e -= 8
  10559. );
  10560. for (g = (g << e) | h, j += e; j > 0; a[c + n] = 255 & g, n += o, g /= 256, j -= 8);
  10561. a[c + n - o] |= 128 * p;
  10562. });
  10563. },
  10564. function(a, b) {
  10565. var c = {}.toString;
  10566. a.exports =
  10567. Array.isArray ||
  10568. function(a) {
  10569. return '[object Array]' == c.call(a);
  10570. };
  10571. },
  10572. function(a, b, c) {
  10573. (function(a) {
  10574. function d(a, c) {
  10575. var d = { seen: [], stylize: f };
  10576. return (
  10577. arguments.length >= 3 && (d.depth = arguments[2]),
  10578. arguments.length >= 4 && (d.colors = arguments[3]),
  10579. o(c) ? (d.showHidden = c) : c && b._extend(d, c),
  10580. u(d.showHidden) && (d.showHidden = !1),
  10581. u(d.depth) && (d.depth = 2),
  10582. u(d.colors) && (d.colors = !1),
  10583. u(d.customInspect) && (d.customInspect = !0),
  10584. d.colors && (d.stylize = e),
  10585. h(d, a, d.depth)
  10586. );
  10587. }
  10588. function e(a, b) {
  10589. var c = d.styles[b];
  10590. return c ? '[' + d.colors[c][0] + 'm' + a + '[' + d.colors[c][1] + 'm' : a;
  10591. }
  10592. function f(a, b) {
  10593. return a;
  10594. }
  10595. function g(a) {
  10596. var b = {};
  10597. return (
  10598. a.forEach(function(a, c) {
  10599. b[a] = !0;
  10600. }),
  10601. b
  10602. );
  10603. }
  10604. function h(a, c, d) {
  10605. if (
  10606. a.customInspect &&
  10607. c &&
  10608. z(c.inspect) &&
  10609. c.inspect !== b.inspect &&
  10610. (!c.constructor || c.constructor.prototype !== c)
  10611. ) {
  10612. var e = c.inspect(d, a);
  10613. return s(e) || (e = h(a, e, d)), e;
  10614. }
  10615. var f = i(a, c);
  10616. if (f) return f;
  10617. var o = Object.keys(c),
  10618. p = g(o);
  10619. if (
  10620. (a.showHidden && (o = Object.getOwnPropertyNames(c)),
  10621. y(c) && (o.indexOf('message') >= 0 || o.indexOf('description') >= 0))
  10622. )
  10623. return j(c);
  10624. if (0 === o.length) {
  10625. if (z(c)) {
  10626. var q = c.name ? ': ' + c.name : '';
  10627. return a.stylize('[Function' + q + ']', 'special');
  10628. }
  10629. if (v(c)) return a.stylize(RegExp.prototype.toString.call(c), 'regexp');
  10630. if (x(c)) return a.stylize(Date.prototype.toString.call(c), 'date');
  10631. if (y(c)) return j(c);
  10632. }
  10633. var r = '',
  10634. t = !1,
  10635. u = ['{', '}'];
  10636. if ((n(c) && ((t = !0), (u = ['[', ']'])), z(c))) {
  10637. var w = c.name ? ': ' + c.name : '';
  10638. r = ' [Function' + w + ']';
  10639. }
  10640. if (
  10641. (v(c) && (r = ' ' + RegExp.prototype.toString.call(c)),
  10642. x(c) && (r = ' ' + Date.prototype.toUTCString.call(c)),
  10643. y(c) && (r = ' ' + j(c)),
  10644. 0 === o.length && (!t || 0 == c.length))
  10645. )
  10646. return u[0] + r + u[1];
  10647. if (d < 0)
  10648. return v(c)
  10649. ? a.stylize(RegExp.prototype.toString.call(c), 'regexp')
  10650. : a.stylize('[Object]', 'special');
  10651. a.seen.push(c);
  10652. var A;
  10653. return (
  10654. (A = t
  10655. ? k(a, c, d, p, o)
  10656. : o.map(function(b) {
  10657. return l(a, c, d, p, b, t);
  10658. })),
  10659. a.seen.pop(),
  10660. m(A, r, u)
  10661. );
  10662. }
  10663. function i(a, b) {
  10664. if (u(b)) return a.stylize('undefined', 'undefined');
  10665. if (s(b)) {
  10666. var c =
  10667. "'" +
  10668. JSON.stringify(b)
  10669. .replace(/^"|"$/g, '')
  10670. .replace(/'/g, "\\'")
  10671. .replace(/\\"/g, '"') +
  10672. "'";
  10673. return a.stylize(c, 'string');
  10674. }
  10675. return r(b)
  10676. ? a.stylize('' + b, 'number')
  10677. : o(b)
  10678. ? a.stylize('' + b, 'boolean')
  10679. : p(b)
  10680. ? a.stylize('null', 'null')
  10681. : void 0;
  10682. }
  10683. function j(a) {
  10684. return '[' + Error.prototype.toString.call(a) + ']';
  10685. }
  10686. function k(a, b, c, d, e) {
  10687. for (var f = [], g = 0, h = b.length; g < h; ++g)
  10688. E(b, String(g)) ? f.push(l(a, b, c, d, String(g), !0)) : f.push('');
  10689. return (
  10690. e.forEach(function(e) {
  10691. e.match(/^\d+$/) || f.push(l(a, b, c, d, e, !0));
  10692. }),
  10693. f
  10694. );
  10695. }
  10696. function l(a, b, c, d, e, f) {
  10697. var g, i, j;
  10698. if (
  10699. ((j = Object.getOwnPropertyDescriptor(b, e) || { value: b[e] }),
  10700. j.get
  10701. ? (i = j.set
  10702. ? a.stylize('[Getter/Setter]', 'special')
  10703. : a.stylize('[Getter]', 'special'))
  10704. : j.set && (i = a.stylize('[Setter]', 'special')),
  10705. E(d, e) || (g = '[' + e + ']'),
  10706. i ||
  10707. (a.seen.indexOf(j.value) < 0
  10708. ? ((i = p(c) ? h(a, j.value, null) : h(a, j.value, c - 1)),
  10709. i.indexOf('\n') > -1 &&
  10710. (i = f
  10711. ? i
  10712. .split('\n')
  10713. .map(function(a) {
  10714. return ' ' + a;
  10715. })
  10716. .join('\n')
  10717. .substr(2)
  10718. : '\n' +
  10719. i
  10720. .split('\n')
  10721. .map(function(a) {
  10722. return ' ' + a;
  10723. })
  10724. .join('\n')))
  10725. : (i = a.stylize('[Circular]', 'special'))),
  10726. u(g))
  10727. ) {
  10728. if (f && e.match(/^\d+$/)) return i;
  10729. (g = JSON.stringify('' + e)),
  10730. g.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)
  10731. ? ((g = g.substr(1, g.length - 2)), (g = a.stylize(g, 'name')))
  10732. : ((g = g
  10733. .replace(/'/g, "\\'")
  10734. .replace(/\\"/g, '"')
  10735. .replace(/(^"|"$)/g, "'")),
  10736. (g = a.stylize(g, 'string')));
  10737. }
  10738. return g + ': ' + i;
  10739. }
  10740. function m(a, b, c) {
  10741. var d = 0,
  10742. e = a.reduce(function(a, b) {
  10743. return (
  10744. d++, b.indexOf('\n') >= 0 && d++, a + b.replace(/\u001b\[\d\d?m/g, '').length + 1
  10745. );
  10746. }, 0);
  10747. return e > 60
  10748. ? c[0] + ('' === b ? '' : b + '\n ') + ' ' + a.join(',\n ') + ' ' + c[1]
  10749. : c[0] + b + ' ' + a.join(', ') + ' ' + c[1];
  10750. }
  10751. function n(a) {
  10752. return Array.isArray(a);
  10753. }
  10754. function o(a) {
  10755. return 'boolean' == typeof a;
  10756. }
  10757. function p(a) {
  10758. return null === a;
  10759. }
  10760. function q(a) {
  10761. return null == a;
  10762. }
  10763. function r(a) {
  10764. return 'number' == typeof a;
  10765. }
  10766. function s(a) {
  10767. return 'string' == typeof a;
  10768. }
  10769. function t(a) {
  10770. return 'symbol' == typeof a;
  10771. }
  10772. function u(a) {
  10773. return void 0 === a;
  10774. }
  10775. function v(a) {
  10776. return w(a) && '[object RegExp]' === B(a);
  10777. }
  10778. function w(a) {
  10779. return 'object' == typeof a && null !== a;
  10780. }
  10781. function x(a) {
  10782. return w(a) && '[object Date]' === B(a);
  10783. }
  10784. function y(a) {
  10785. return w(a) && ('[object Error]' === B(a) || a instanceof Error);
  10786. }
  10787. function z(a) {
  10788. return 'function' == typeof a;
  10789. }
  10790. function A(a) {
  10791. return (
  10792. null === a ||
  10793. 'boolean' == typeof a ||
  10794. 'number' == typeof a ||
  10795. 'string' == typeof a ||
  10796. 'symbol' == typeof a ||
  10797. 'undefined' == typeof a
  10798. );
  10799. }
  10800. function B(a) {
  10801. return Object.prototype.toString.call(a);
  10802. }
  10803. function C(a) {
  10804. return a < 10 ? '0' + a.toString(10) : a.toString(10);
  10805. }
  10806. function D() {
  10807. var a = new Date(),
  10808. b = [C(a.getHours()), C(a.getMinutes()), C(a.getSeconds())].join(':');
  10809. return [a.getDate(), L[a.getMonth()], b].join(' ');
  10810. }
  10811. function E(a, b) {
  10812. return Object.prototype.hasOwnProperty.call(a, b);
  10813. }
  10814. function F(a, b) {
  10815. if (!a) {
  10816. var c = new Error('Promise was rejected with a falsy value');
  10817. (c.reason = a), (a = c);
  10818. }
  10819. return b(a);
  10820. }
  10821. function G(b) {
  10822. function c() {
  10823. for (var c = [], d = 0; d < arguments.length; d++) c.push(arguments[d]);
  10824. var e = c.pop();
  10825. if ('function' != typeof e)
  10826. throw new TypeError('The last argument must be of type Function');
  10827. var f = this,
  10828. g = function() {
  10829. return e.apply(f, arguments);
  10830. };
  10831. b.apply(this, c).then(
  10832. function(b) {
  10833. a.nextTick(g, null, b);
  10834. },
  10835. function(b) {
  10836. a.nextTick(F, b, g);
  10837. }
  10838. );
  10839. }
  10840. if ('function' != typeof b)
  10841. throw new TypeError('The "original" argument must be of type Function');
  10842. return Object.setPrototypeOf(c, Object.getPrototypeOf(b)), Object.defineProperties(c, H(b)), c;
  10843. }
  10844. var H =
  10845. Object.getOwnPropertyDescriptors ||
  10846. function(a) {
  10847. for (var b = Object.keys(a), c = {}, d = 0; d < b.length; d++)
  10848. c[b[d]] = Object.getOwnPropertyDescriptor(a, b[d]);
  10849. return c;
  10850. },
  10851. I = /%[sdj%]/g;
  10852. (b.format = function(a) {
  10853. if (!s(a)) {
  10854. for (var b = [], c = 0; c < arguments.length; c++) b.push(d(arguments[c]));
  10855. return b.join(' ');
  10856. }
  10857. for (
  10858. var c = 1,
  10859. e = arguments,
  10860. f = e.length,
  10861. g = String(a).replace(I, function(a) {
  10862. if ('%%' === a) return '%';
  10863. if (c >= f) return a;
  10864. switch (a) {
  10865. case '%s':
  10866. return String(e[c++]);
  10867. case '%d':
  10868. return Number(e[c++]);
  10869. case '%j':
  10870. try {
  10871. return JSON.stringify(e[c++]);
  10872. } catch (a) {
  10873. return '[Circular]';
  10874. }
  10875. default:
  10876. return a;
  10877. }
  10878. }),
  10879. h = e[c];
  10880. c < f;
  10881. h = e[++c]
  10882. )
  10883. g += p(h) || !w(h) ? ' ' + h : ' ' + d(h);
  10884. return g;
  10885. }),
  10886. (b.deprecate = function(c, d) {
  10887. function e() {
  10888. if (!f) {
  10889. if (a.throwDeprecation) throw new Error(d);
  10890. a.traceDeprecation ? console.trace(d) : console.error(d), (f = !0);
  10891. }
  10892. return c.apply(this, arguments);
  10893. }
  10894. if ('undefined' != typeof a && a.noDeprecation === !0) return c;
  10895. if ('undefined' == typeof a)
  10896. return function() {
  10897. return b.deprecate(c, d).apply(this, arguments);
  10898. };
  10899. var f = !1;
  10900. return e;
  10901. });
  10902. var J,
  10903. K = {};
  10904. (b.debuglog = function(c) {
  10905. if ((u(J) && (J = a.env.NODE_DEBUG || ''), (c = c.toUpperCase()), !K[c]))
  10906. if (new RegExp('\\b' + c + '\\b', 'i').test(J)) {
  10907. var d = a.pid;
  10908. K[c] = function() {
  10909. var a = b.format.apply(b, arguments);
  10910. console.error('%s %d: %s', c, d, a);
  10911. };
  10912. } else K[c] = function() {};
  10913. return K[c];
  10914. }),
  10915. (b.inspect = d),
  10916. (d.colors = {
  10917. bold: [1, 22],
  10918. italic: [3, 23],
  10919. underline: [4, 24],
  10920. inverse: [7, 27],
  10921. white: [37, 39],
  10922. grey: [90, 39],
  10923. black: [30, 39],
  10924. blue: [34, 39],
  10925. cyan: [36, 39],
  10926. green: [32, 39],
  10927. magenta: [35, 39],
  10928. red: [31, 39],
  10929. yellow: [33, 39]
  10930. }),
  10931. (d.styles = {
  10932. special: 'cyan',
  10933. number: 'yellow',
  10934. boolean: 'yellow',
  10935. undefined: 'grey',
  10936. null: 'bold',
  10937. string: 'green',
  10938. date: 'magenta',
  10939. regexp: 'red'
  10940. }),
  10941. (b.isArray = n),
  10942. (b.isBoolean = o),
  10943. (b.isNull = p),
  10944. (b.isNullOrUndefined = q),
  10945. (b.isNumber = r),
  10946. (b.isString = s),
  10947. (b.isSymbol = t),
  10948. (b.isUndefined = u),
  10949. (b.isRegExp = v),
  10950. (b.isObject = w),
  10951. (b.isDate = x),
  10952. (b.isError = y),
  10953. (b.isFunction = z),
  10954. (b.isPrimitive = A),
  10955. (b.isBuffer = c(31));
  10956. var L = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
  10957. (b.log = function() {
  10958. console.log('%s - %s', D(), b.format.apply(b, arguments));
  10959. }),
  10960. (b.inherits = c(32)),
  10961. (b._extend = function(a, b) {
  10962. if (!b || !w(b)) return a;
  10963. for (var c = Object.keys(b), d = c.length; d--; ) a[c[d]] = b[c[d]];
  10964. return a;
  10965. });
  10966. var M = 'undefined' != typeof Symbol ? Symbol('util.promisify.custom') : void 0;
  10967. (b.promisify = function(a) {
  10968. function b() {
  10969. for (
  10970. var b,
  10971. c,
  10972. d = new Promise(function(a, d) {
  10973. (b = a), (c = d);
  10974. }),
  10975. e = [],
  10976. f = 0;
  10977. f < arguments.length;
  10978. f++
  10979. )
  10980. e.push(arguments[f]);
  10981. e.push(function(a, d) {
  10982. a ? c(a) : b(d);
  10983. });
  10984. try {
  10985. a.apply(this, e);
  10986. } catch (a) {
  10987. c(a);
  10988. }
  10989. return d;
  10990. }
  10991. if ('function' != typeof a)
  10992. throw new TypeError('The "original" argument must be of type Function');
  10993. if (M && a[M]) {
  10994. var b = a[M];
  10995. if ('function' != typeof b)
  10996. throw new TypeError('The "util.promisify.custom" argument must be of type Function');
  10997. return (
  10998. Object.defineProperty(b, M, {
  10999. value: b,
  11000. enumerable: !1,
  11001. writable: !1,
  11002. configurable: !0
  11003. }),
  11004. b
  11005. );
  11006. }
  11007. return (
  11008. Object.setPrototypeOf(b, Object.getPrototypeOf(a)),
  11009. M &&
  11010. Object.defineProperty(b, M, {
  11011. value: b,
  11012. enumerable: !1,
  11013. writable: !1,
  11014. configurable: !0
  11015. }),
  11016. Object.defineProperties(b, H(a))
  11017. );
  11018. }),
  11019. (b.promisify.custom = M),
  11020. (b.callbackify = G);
  11021. }.call(b, c(3)));
  11022. },
  11023. function(a, b) {
  11024. a.exports = function(a) {
  11025. return (
  11026. a &&
  11027. 'object' == typeof a &&
  11028. 'function' == typeof a.copy &&
  11029. 'function' == typeof a.fill &&
  11030. 'function' == typeof a.readUInt8
  11031. );
  11032. };
  11033. },
  11034. function(a, b) {
  11035. 'function' == typeof Object.create
  11036. ? (a.exports = function(a, b) {
  11037. (a.super_ = b),
  11038. (a.prototype = Object.create(b.prototype, {
  11039. constructor: { value: a, enumerable: !1, writable: !0, configurable: !0 }
  11040. }));
  11041. })
  11042. : (a.exports = function(a, b) {
  11043. a.super_ = b;
  11044. var c = function() {};
  11045. (c.prototype = b.prototype), (a.prototype = new c()), (a.prototype.constructor = a);
  11046. });
  11047. },
  11048. function(a, b, c) {
  11049. (function(a, d) {
  11050. var e;
  11051. !(function(f) {
  11052. function g(a) {
  11053. throw new RangeError(G[a]);
  11054. }
  11055. function h(a, b) {
  11056. for (var c = a.length, d = []; c--; ) d[c] = b(a[c]);
  11057. return d;
  11058. }
  11059. function i(a, b) {
  11060. var c = a.split('@'),
  11061. d = '';
  11062. c.length > 1 && ((d = c[0] + '@'), (a = c[1])), (a = a.replace(F, '.'));
  11063. var e = a.split('.'),
  11064. f = h(e, b).join('.');
  11065. return d + f;
  11066. }
  11067. function j(a) {
  11068. for (var b, c, d = [], e = 0, f = a.length; e < f; )
  11069. (b = a.charCodeAt(e++)),
  11070. b >= 55296 && b <= 56319 && e < f
  11071. ? ((c = a.charCodeAt(e++)),
  11072. 56320 == (64512 & c)
  11073. ? d.push(((1023 & b) << 10) + (1023 & c) + 65536)
  11074. : (d.push(b), e--))
  11075. : d.push(b);
  11076. return d;
  11077. }
  11078. function k(a) {
  11079. return h(a, function(a) {
  11080. var b = '';
  11081. return (
  11082. a > 65535 &&
  11083. ((a -= 65536), (b += J(((a >>> 10) & 1023) | 55296)), (a = 56320 | (1023 & a))),
  11084. (b += J(a))
  11085. );
  11086. }).join('');
  11087. }
  11088. function l(a) {
  11089. return a - 48 < 10 ? a - 22 : a - 65 < 26 ? a - 65 : a - 97 < 26 ? a - 97 : v;
  11090. }
  11091. function m(a, b) {
  11092. return a + 22 + 75 * (a < 26) - ((0 != b) << 5);
  11093. }
  11094. function n(a, b, c) {
  11095. var d = 0;
  11096. for (a = c ? I(a / z) : a >> 1, a += I(a / b); a > (H * x) >> 1; d += v) a = I(a / H);
  11097. return I(d + ((H + 1) * a) / (a + y));
  11098. }
  11099. function o(a) {
  11100. var b,
  11101. c,
  11102. d,
  11103. e,
  11104. f,
  11105. h,
  11106. i,
  11107. j,
  11108. m,
  11109. o,
  11110. p = [],
  11111. q = a.length,
  11112. r = 0,
  11113. s = B,
  11114. t = A;
  11115. for (c = a.lastIndexOf(C), c < 0 && (c = 0), d = 0; d < c; ++d)
  11116. a.charCodeAt(d) >= 128 && g('not-basic'), p.push(a.charCodeAt(d));
  11117. for (e = c > 0 ? c + 1 : 0; e < q; ) {
  11118. for (
  11119. f = r, h = 1, i = v;
  11120. e >= q && g('invalid-input'),
  11121. (j = l(a.charCodeAt(e++))),
  11122. (j >= v || j > I((u - r) / h)) && g('overflow'),
  11123. (r += j * h),
  11124. (m = i <= t ? w : i >= t + x ? x : i - t),
  11125. !(j < m);
  11126. i += v
  11127. )
  11128. (o = v - m), h > I(u / o) && g('overflow'), (h *= o);
  11129. (b = p.length + 1),
  11130. (t = n(r - f, b, 0 == f)),
  11131. I(r / b) > u - s && g('overflow'),
  11132. (s += I(r / b)),
  11133. (r %= b),
  11134. p.splice(r++, 0, s);
  11135. }
  11136. return k(p);
  11137. }
  11138. function p(a) {
  11139. var b,
  11140. c,
  11141. d,
  11142. e,
  11143. f,
  11144. h,
  11145. i,
  11146. k,
  11147. l,
  11148. o,
  11149. p,
  11150. q,
  11151. r,
  11152. s,
  11153. t,
  11154. y = [];
  11155. for (a = j(a), q = a.length, b = B, c = 0, f = A, h = 0; h < q; ++h)
  11156. (p = a[h]), p < 128 && y.push(J(p));
  11157. for (d = e = y.length, e && y.push(C); d < q; ) {
  11158. for (i = u, h = 0; h < q; ++h) (p = a[h]), p >= b && p < i && (i = p);
  11159. for (
  11160. r = d + 1, i - b > I((u - c) / r) && g('overflow'), c += (i - b) * r, b = i, h = 0;
  11161. h < q;
  11162. ++h
  11163. )
  11164. if (((p = a[h]), p < b && ++c > u && g('overflow'), p == b)) {
  11165. for (k = c, l = v; (o = l <= f ? w : l >= f + x ? x : l - f), !(k < o); l += v)
  11166. (t = k - o), (s = v - o), y.push(J(m(o + (t % s), 0))), (k = I(t / s));
  11167. y.push(J(m(k, 0))), (f = n(c, r, d == e)), (c = 0), ++d;
  11168. }
  11169. ++c, ++b;
  11170. }
  11171. return y.join('');
  11172. }
  11173. function q(a) {
  11174. return i(a, function(a) {
  11175. return D.test(a) ? o(a.slice(4).toLowerCase()) : a;
  11176. });
  11177. }
  11178. function r(a) {
  11179. return i(a, function(a) {
  11180. return E.test(a) ? 'xn--' + p(a) : a;
  11181. });
  11182. }
  11183. var s =
  11184. ('object' == typeof b && b && !b.nodeType && b,
  11185. 'object' == typeof a && a && !a.nodeType && a,
  11186. 'object' == typeof d && d);
  11187. (s.global !== s && s.window !== s && s.self !== s) || (f = s);
  11188. var t,
  11189. u = 2147483647,
  11190. v = 36,
  11191. w = 1,
  11192. x = 26,
  11193. y = 38,
  11194. z = 700,
  11195. A = 72,
  11196. B = 128,
  11197. C = '-',
  11198. D = /^xn--/,
  11199. E = /[^\x20-\x7E]/,
  11200. F = /[\x2E\u3002\uFF0E\uFF61]/g,
  11201. G = {
  11202. overflow: 'Overflow: input needs wider integers to process',
  11203. 'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
  11204. 'invalid-input': 'Invalid input'
  11205. },
  11206. H = v - w,
  11207. I = Math.floor,
  11208. J = String.fromCharCode;
  11209. (t = {
  11210. version: '1.4.1',
  11211. ucs2: { decode: j, encode: k },
  11212. decode: o,
  11213. encode: p,
  11214. toASCII: r,
  11215. toUnicode: q
  11216. }),
  11217. (e = function() {
  11218. return t;
  11219. }.call(b, c, b, a)),
  11220. !(void 0 !== e && (a.exports = e));
  11221. })(this);
  11222. }.call(b, c(11)(a), c(7)));
  11223. },
  11224. function(a, b, c) {
  11225. 'use strict';
  11226. a.exports = {
  11227. isString: function(a) {
  11228. return 'string' == typeof a;
  11229. },
  11230. isObject: function(a) {
  11231. return 'object' == typeof a && null !== a;
  11232. },
  11233. isNull: function(a) {
  11234. return null === a;
  11235. },
  11236. isNullOrUndefined: function(a) {
  11237. return null == a;
  11238. }
  11239. };
  11240. },
  11241. function(a, b, c) {
  11242. 'use strict';
  11243. function d(a, b) {
  11244. return Object.prototype.hasOwnProperty.call(a, b);
  11245. }
  11246. a.exports = function(a, b, c, f) {
  11247. (b = b || '&'), (c = c || '=');
  11248. var g = {};
  11249. if ('string' != typeof a || 0 === a.length) return g;
  11250. var h = /\+/g;
  11251. a = a.split(b);
  11252. var i = 1e3;
  11253. f && 'number' == typeof f.maxKeys && (i = f.maxKeys);
  11254. var j = a.length;
  11255. i > 0 && j > i && (j = i);
  11256. for (var k = 0; k < j; ++k) {
  11257. var l,
  11258. m,
  11259. n,
  11260. o,
  11261. p = a[k].replace(h, '%20'),
  11262. q = p.indexOf(c);
  11263. q >= 0 ? ((l = p.substr(0, q)), (m = p.substr(q + 1))) : ((l = p), (m = '')),
  11264. (n = decodeURIComponent(l)),
  11265. (o = decodeURIComponent(m)),
  11266. d(g, n) ? (e(g[n]) ? g[n].push(o) : (g[n] = [g[n], o])) : (g[n] = o);
  11267. }
  11268. return g;
  11269. };
  11270. var e =
  11271. Array.isArray ||
  11272. function(a) {
  11273. return '[object Array]' === Object.prototype.toString.call(a);
  11274. };
  11275. },
  11276. function(a, b, c) {
  11277. 'use strict';
  11278. function d(a, b) {
  11279. if (a.map) return a.map(b);
  11280. for (var c = [], d = 0; d < a.length; d++) c.push(b(a[d], d));
  11281. return c;
  11282. }
  11283. var e = function(a) {
  11284. switch (typeof a) {
  11285. case 'string':
  11286. return a;
  11287. case 'boolean':
  11288. return a ? 'true' : 'false';
  11289. case 'number':
  11290. return isFinite(a) ? a : '';
  11291. default:
  11292. return '';
  11293. }
  11294. };
  11295. a.exports = function(a, b, c, h) {
  11296. return (
  11297. (b = b || '&'),
  11298. (c = c || '='),
  11299. null === a && (a = void 0),
  11300. 'object' == typeof a
  11301. ? d(g(a), function(g) {
  11302. var h = encodeURIComponent(e(g)) + c;
  11303. return f(a[g])
  11304. ? d(a[g], function(a) {
  11305. return h + encodeURIComponent(e(a));
  11306. }).join(b)
  11307. : h + encodeURIComponent(e(a[g]));
  11308. }).join(b)
  11309. : h
  11310. ? encodeURIComponent(e(h)) + c + encodeURIComponent(e(a))
  11311. : ''
  11312. );
  11313. };
  11314. var f =
  11315. Array.isArray ||
  11316. function(a) {
  11317. return '[object Array]' === Object.prototype.toString.call(a);
  11318. },
  11319. g =
  11320. Object.keys ||
  11321. function(a) {
  11322. var b = [];
  11323. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && b.push(c);
  11324. return b;
  11325. };
  11326. },
  11327. function(a, b, c) {
  11328. var d = c(2);
  11329. a.exports = function(a) {
  11330. var b = 0,
  11331. c = a.connectionPool,
  11332. e = c._onConnectionDied,
  11333. f = function b() {
  11334. (b.timerId = a._timeout(b.timerId)), a.sniff();
  11335. },
  11336. g = function(a) {
  11337. var b = d.now();
  11338. return function() {
  11339. return b - a;
  11340. };
  11341. };
  11342. (c._onConnectionDied = function(d, h) {
  11343. var i = e.call(c, d, h);
  11344. b = f.timerId ? b + 1 : 0;
  11345. var j = c.calcDeadTimeout(b, 1e3);
  11346. return (
  11347. f.timerId && j < f.timerId && f.countdown() && (f.timerId = a._timeout(f.timerId)),
  11348. f.timerId || ((f.timerId = a._timeout(f, j)), (f.countdown = g(j))),
  11349. i
  11350. );
  11351. }),
  11352. (c._onConnectionDied.restore = function() {
  11353. c._onConnectionDied = e;
  11354. });
  11355. };
  11356. },
  11357. function(a, b, c) {
  11358. var d = c(0);
  11359. a.exports = function(a) {
  11360. if (d.isEmpty(a)) return !1;
  11361. for (var b = a.shift().protocol, c = 0; c < a.length; c++) if (b !== a[c].protocol) return !1;
  11362. return b;
  11363. };
  11364. },
  11365. function(a, b, c) {
  11366. function d(a, b) {
  11367. e.call(this, a, b), (this.color = !f.has(b, 'color') || !!b.color);
  11368. }
  11369. a.exports = d;
  11370. var e = c(17),
  11371. f = c(0),
  11372. g = c(2);
  11373. g.inherits(d, e),
  11374. (d.prototype.setupListeners = function(a) {
  11375. e.prototype.setupListeners.call(this, a);
  11376. }),
  11377. (d.prototype.write = function(a, b, c) {
  11378. console[c] && console[c](this.format(a, b));
  11379. }),
  11380. (d.prototype.onError = g.handler(function(a) {
  11381. var b = console.error ? 'error' : 'log';
  11382. this.write('Error' === a.name ? 'ERROR' : a.name, a.stack || a.message, b);
  11383. })),
  11384. (d.prototype.onWarning = g.handler(function(a) {
  11385. this.write('WARNING', a, console.warn ? 'warn' : 'log');
  11386. })),
  11387. (d.prototype.onInfo = g.handler(function(a) {
  11388. this.write('INFO', a, console.info ? 'info' : 'log');
  11389. })),
  11390. (d.prototype.onDebug = g.handler(function(a) {
  11391. this.write('DEBUG', a, console.debug ? 'debug' : 'log');
  11392. })),
  11393. (d.prototype.onTrace = g.handler(function(a) {
  11394. this.write('TRACE', this._formatTraceMessage(a), 'log');
  11395. }));
  11396. },
  11397. function(a, b) {
  11398. a.exports = function(a) {
  11399. return a[Math.floor(Math.random() * a.length)];
  11400. };
  11401. },
  11402. function(a, b) {
  11403. a.exports = function(a) {
  11404. var b = a[0];
  11405. return a.push(a.shift()), b;
  11406. };
  11407. },
  11408. function(a, b, c) {
  11409. function d(a, b) {
  11410. g.call(this, a, b);
  11411. }
  11412. a.exports = d;
  11413. var e = c(0),
  11414. f = c(2),
  11415. g = c(20),
  11416. h = c(4).ConnectionFault,
  11417. i = !(navigator && /PhantomJS/i.test(navigator.userAgent));
  11418. f.inherits(d, g);
  11419. var j = e.noop;
  11420. if (
  11421. ((j =
  11422. 'undefined' != typeof XMLHttpRequest
  11423. ? function() {
  11424. return new XMLHttpRequest();
  11425. }
  11426. : e(['Msxml2.XMLHTTP', 'Microsoft.XMLHTTP', 'Msxml2.XMLHTTP.4.0'])
  11427. .map(function(a) {
  11428. try {
  11429. new window.ActiveXObject(a);
  11430. return function() {
  11431. return new window.ActiveXObject(a);
  11432. };
  11433. } catch (a) {
  11434. return !1;
  11435. }
  11436. })
  11437. .compact()
  11438. .head()),
  11439. !j)
  11440. )
  11441. throw new Error('getXhr(): XMLHttpRequest not available');
  11442. d.prototype.request = function(a, b) {
  11443. var c,
  11444. d = j(),
  11445. e = this.host,
  11446. f = this.log,
  11447. g = e.makeUrl(a),
  11448. k = e.getHeaders(a.headers),
  11449. l = a.async !== !1 && i;
  11450. if ((d.open(a.method || 'GET', g, l), k))
  11451. for (var m in k) void 0 !== k[m] && d.setRequestHeader(m, k[m]);
  11452. return (
  11453. (d.onreadystatechange = function() {
  11454. if (4 === d.readyState) {
  11455. clearTimeout(c), f.trace(a.method, g, a.body, d.responseText, d.status);
  11456. var e = d.status ? void 0 : new h(d.statusText || 'Request failed to complete.');
  11457. b(e, d.responseText, d.status);
  11458. }
  11459. }),
  11460. d.send(a.body || void 0),
  11461. function() {
  11462. d.abort();
  11463. }
  11464. );
  11465. };
  11466. },
  11467. function(a, b) {},
  11468. function(a, b) {},
  11469. function(a, b, c) {
  11470. function d(a) {
  11471. return (d =
  11472. 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
  11473. ? function(a) {
  11474. return typeof a;
  11475. }
  11476. : function(a) {
  11477. return a &&
  11478. 'function' == typeof Symbol &&
  11479. a.constructor === Symbol &&
  11480. a !== Symbol.prototype
  11481. ? 'symbol'
  11482. : typeof a;
  11483. })(a);
  11484. }
  11485. function e() {}
  11486. var f = c(2),
  11487. g = c(22);
  11488. f.inherits(e, g),
  11489. (e.prototype.encode = function(a) {
  11490. switch (d(a)) {
  11491. case 'string':
  11492. return a;
  11493. case 'object':
  11494. if (a) return angular.toJson(a);
  11495. default:
  11496. return;
  11497. }
  11498. }),
  11499. (a.exports = e);
  11500. },
  11501. function(a, b, c) {
  11502. var d = c(1).makeFactoryWithModifier(function(a) {
  11503. return c(0).merge(a, { params: { filterPath: { type: 'list', name: 'filter_path' } } });
  11504. }),
  11505. e = c(1).namespaceFactory,
  11506. f = (a.exports = {});
  11507. (f._namespaces = ['cat', 'cluster', 'indices', 'ingest', 'nodes', 'snapshot', 'tasks']),
  11508. (f.bulk = d({
  11509. params: {
  11510. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  11511. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  11512. routing: { type: 'string' },
  11513. timeout: { type: 'time' },
  11514. type: { type: 'string' },
  11515. _source: { type: 'list' },
  11516. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  11517. _sourceIncludes: { type: 'list', name: '_source_includes' },
  11518. pipeline: { type: 'string' }
  11519. },
  11520. urls: [
  11521. {
  11522. fmt: '/<%=index%>/<%=type%>/_bulk',
  11523. req: { index: { type: 'string' }, type: { type: 'string' } }
  11524. },
  11525. { fmt: '/<%=index%>/_bulk', req: { index: { type: 'string' } } },
  11526. { fmt: '/_bulk' }
  11527. ],
  11528. needBody: !0,
  11529. bulkBody: !0,
  11530. method: 'POST'
  11531. })),
  11532. (f.cat = e()),
  11533. (f.cat.prototype.aliases = d({
  11534. params: {
  11535. format: { type: 'string' },
  11536. local: { type: 'boolean' },
  11537. masterTimeout: { type: 'time', name: 'master_timeout' },
  11538. h: { type: 'list' },
  11539. help: { type: 'boolean', default: !1 },
  11540. s: { type: 'list' },
  11541. v: { type: 'boolean', default: !1 }
  11542. },
  11543. urls: [
  11544. { fmt: '/_cat/aliases/<%=name%>', req: { name: { type: 'list' } } },
  11545. { fmt: '/_cat/aliases' }
  11546. ]
  11547. })),
  11548. (f.cat.prototype.allocation = d({
  11549. params: {
  11550. format: { type: 'string' },
  11551. bytes: {
  11552. type: 'enum',
  11553. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  11554. },
  11555. local: { type: 'boolean' },
  11556. masterTimeout: { type: 'time', name: 'master_timeout' },
  11557. h: { type: 'list' },
  11558. help: { type: 'boolean', default: !1 },
  11559. s: { type: 'list' },
  11560. v: { type: 'boolean', default: !1 }
  11561. },
  11562. urls: [
  11563. { fmt: '/_cat/allocation/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
  11564. { fmt: '/_cat/allocation' }
  11565. ]
  11566. })),
  11567. (f.cat.prototype.count = d({
  11568. params: {
  11569. format: { type: 'string' },
  11570. local: { type: 'boolean' },
  11571. masterTimeout: { type: 'time', name: 'master_timeout' },
  11572. h: { type: 'list' },
  11573. help: { type: 'boolean', default: !1 },
  11574. s: { type: 'list' },
  11575. v: { type: 'boolean', default: !1 }
  11576. },
  11577. urls: [
  11578. { fmt: '/_cat/count/<%=index%>', req: { index: { type: 'list' } } },
  11579. { fmt: '/_cat/count' }
  11580. ]
  11581. })),
  11582. (f.cat.prototype.fielddata = d({
  11583. params: {
  11584. format: { type: 'string' },
  11585. bytes: {
  11586. type: 'enum',
  11587. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  11588. },
  11589. local: { type: 'boolean' },
  11590. masterTimeout: { type: 'time', name: 'master_timeout' },
  11591. h: { type: 'list' },
  11592. help: { type: 'boolean', default: !1 },
  11593. s: { type: 'list' },
  11594. v: { type: 'boolean', default: !1 },
  11595. fields: { type: 'list' }
  11596. },
  11597. urls: [
  11598. { fmt: '/_cat/fielddata/<%=fields%>', req: { fields: { type: 'list' } } },
  11599. { fmt: '/_cat/fielddata' }
  11600. ]
  11601. })),
  11602. (f.cat.prototype.health = d({
  11603. params: {
  11604. format: { type: 'string' },
  11605. local: { type: 'boolean' },
  11606. masterTimeout: { type: 'time', name: 'master_timeout' },
  11607. h: { type: 'list' },
  11608. help: { type: 'boolean', default: !1 },
  11609. s: { type: 'list' },
  11610. ts: { type: 'boolean', default: !0 },
  11611. v: { type: 'boolean', default: !1 }
  11612. },
  11613. url: { fmt: '/_cat/health' }
  11614. })),
  11615. (f.cat.prototype.help = d({
  11616. params: { help: { type: 'boolean', default: !1 }, s: { type: 'list' } },
  11617. url: { fmt: '/_cat' }
  11618. })),
  11619. (f.cat.prototype.indices = d({
  11620. params: {
  11621. format: { type: 'string' },
  11622. bytes: { type: 'enum', options: ['b', 'k', 'm', 'g'] },
  11623. local: { type: 'boolean' },
  11624. masterTimeout: { type: 'time', name: 'master_timeout' },
  11625. h: { type: 'list' },
  11626. health: { type: 'enum', default: null, options: ['green', 'yellow', 'red'] },
  11627. help: { type: 'boolean', default: !1 },
  11628. pri: { type: 'boolean', default: !1 },
  11629. s: { type: 'list' },
  11630. v: { type: 'boolean', default: !1 },
  11631. includeUnloadedSegments: { type: 'boolean', default: !1, name: 'include_unloaded_segments' }
  11632. },
  11633. urls: [
  11634. { fmt: '/_cat/indices/<%=index%>', req: { index: { type: 'list' } } },
  11635. { fmt: '/_cat/indices' }
  11636. ]
  11637. })),
  11638. (f.cat.prototype.master = d({
  11639. params: {
  11640. format: { type: 'string' },
  11641. local: { type: 'boolean' },
  11642. masterTimeout: { type: 'time', name: 'master_timeout' },
  11643. h: { type: 'list' },
  11644. help: { type: 'boolean', default: !1 },
  11645. s: { type: 'list' },
  11646. v: { type: 'boolean', default: !1 }
  11647. },
  11648. url: { fmt: '/_cat/master' }
  11649. })),
  11650. (f.cat.prototype.nodeattrs = d({
  11651. params: {
  11652. format: { type: 'string' },
  11653. local: { type: 'boolean' },
  11654. masterTimeout: { type: 'time', name: 'master_timeout' },
  11655. h: { type: 'list' },
  11656. help: { type: 'boolean', default: !1 },
  11657. s: { type: 'list' },
  11658. v: { type: 'boolean', default: !1 }
  11659. },
  11660. url: { fmt: '/_cat/nodeattrs' }
  11661. })),
  11662. (f.cat.prototype.nodes = d({
  11663. params: {
  11664. format: { type: 'string' },
  11665. fullId: { type: 'boolean', name: 'full_id' },
  11666. local: { type: 'boolean' },
  11667. masterTimeout: { type: 'time', name: 'master_timeout' },
  11668. h: { type: 'list' },
  11669. help: { type: 'boolean', default: !1 },
  11670. s: { type: 'list' },
  11671. v: { type: 'boolean', default: !1 }
  11672. },
  11673. url: { fmt: '/_cat/nodes' }
  11674. })),
  11675. (f.cat.prototype.pendingTasks = d({
  11676. params: {
  11677. format: { type: 'string' },
  11678. local: { type: 'boolean' },
  11679. masterTimeout: { type: 'time', name: 'master_timeout' },
  11680. h: { type: 'list' },
  11681. help: { type: 'boolean', default: !1 },
  11682. s: { type: 'list' },
  11683. v: { type: 'boolean', default: !1 }
  11684. },
  11685. url: { fmt: '/_cat/pending_tasks' }
  11686. })),
  11687. (f.cat.prototype.plugins = d({
  11688. params: {
  11689. format: { type: 'string' },
  11690. local: { type: 'boolean' },
  11691. masterTimeout: { type: 'time', name: 'master_timeout' },
  11692. h: { type: 'list' },
  11693. help: { type: 'boolean', default: !1 },
  11694. s: { type: 'list' },
  11695. v: { type: 'boolean', default: !1 }
  11696. },
  11697. url: { fmt: '/_cat/plugins' }
  11698. })),
  11699. (f.cat.prototype.recovery = d({
  11700. params: {
  11701. format: { type: 'string' },
  11702. bytes: {
  11703. type: 'enum',
  11704. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  11705. },
  11706. masterTimeout: { type: 'time', name: 'master_timeout' },
  11707. h: { type: 'list' },
  11708. help: { type: 'boolean', default: !1 },
  11709. s: { type: 'list' },
  11710. v: { type: 'boolean', default: !1 }
  11711. },
  11712. urls: [
  11713. { fmt: '/_cat/recovery/<%=index%>', req: { index: { type: 'list' } } },
  11714. { fmt: '/_cat/recovery' }
  11715. ]
  11716. })),
  11717. (f.cat.prototype.repositories = d({
  11718. params: {
  11719. format: { type: 'string' },
  11720. local: { type: 'boolean', default: !1 },
  11721. masterTimeout: { type: 'time', name: 'master_timeout' },
  11722. h: { type: 'list' },
  11723. help: { type: 'boolean', default: !1 },
  11724. s: { type: 'list' },
  11725. v: { type: 'boolean', default: !1 }
  11726. },
  11727. url: { fmt: '/_cat/repositories' }
  11728. })),
  11729. (f.cat.prototype.segments = d({
  11730. params: {
  11731. format: { type: 'string' },
  11732. bytes: {
  11733. type: 'enum',
  11734. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  11735. },
  11736. h: { type: 'list' },
  11737. help: { type: 'boolean', default: !1 },
  11738. s: { type: 'list' },
  11739. v: { type: 'boolean', default: !1 }
  11740. },
  11741. urls: [
  11742. { fmt: '/_cat/segments/<%=index%>', req: { index: { type: 'list' } } },
  11743. { fmt: '/_cat/segments' }
  11744. ]
  11745. })),
  11746. (f.cat.prototype.shards = d({
  11747. params: {
  11748. format: { type: 'string' },
  11749. bytes: {
  11750. type: 'enum',
  11751. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  11752. },
  11753. local: { type: 'boolean' },
  11754. masterTimeout: { type: 'time', name: 'master_timeout' },
  11755. h: { type: 'list' },
  11756. help: { type: 'boolean', default: !1 },
  11757. s: { type: 'list' },
  11758. v: { type: 'boolean', default: !1 }
  11759. },
  11760. urls: [
  11761. { fmt: '/_cat/shards/<%=index%>', req: { index: { type: 'list' } } },
  11762. { fmt: '/_cat/shards' }
  11763. ]
  11764. })),
  11765. (f.cat.prototype.snapshots = d({
  11766. params: {
  11767. format: { type: 'string' },
  11768. ignoreUnavailable: { type: 'boolean', default: !1, name: 'ignore_unavailable' },
  11769. masterTimeout: { type: 'time', name: 'master_timeout' },
  11770. h: { type: 'list' },
  11771. help: { type: 'boolean', default: !1 },
  11772. s: { type: 'list' },
  11773. v: { type: 'boolean', default: !1 }
  11774. },
  11775. urls: [
  11776. { fmt: '/_cat/snapshots/<%=repository%>', req: { repository: { type: 'list' } } },
  11777. { fmt: '/_cat/snapshots' }
  11778. ]
  11779. })),
  11780. (f.cat.prototype.tasks = d({
  11781. params: {
  11782. format: { type: 'string' },
  11783. nodeId: { type: 'list', name: 'node_id' },
  11784. actions: { type: 'list' },
  11785. detailed: { type: 'boolean' },
  11786. parentTask: { type: 'number', name: 'parent_task' },
  11787. h: { type: 'list' },
  11788. help: { type: 'boolean', default: !1 },
  11789. s: { type: 'list' },
  11790. v: { type: 'boolean', default: !1 }
  11791. },
  11792. url: { fmt: '/_cat/tasks' }
  11793. })),
  11794. (f.cat.prototype.templates = d({
  11795. params: {
  11796. format: { type: 'string' },
  11797. local: { type: 'boolean' },
  11798. masterTimeout: { type: 'time', name: 'master_timeout' },
  11799. h: { type: 'list' },
  11800. help: { type: 'boolean', default: !1 },
  11801. s: { type: 'list' },
  11802. v: { type: 'boolean', default: !1 }
  11803. },
  11804. urls: [
  11805. { fmt: '/_cat/templates/<%=name%>', req: { name: { type: 'string' } } },
  11806. { fmt: '/_cat/templates' }
  11807. ]
  11808. })),
  11809. (f.cat.prototype.threadPool = d({
  11810. params: {
  11811. format: { type: 'string' },
  11812. size: { type: 'enum', options: ['', 'k', 'm', 'g', 't', 'p'] },
  11813. local: { type: 'boolean' },
  11814. masterTimeout: { type: 'time', name: 'master_timeout' },
  11815. h: { type: 'list' },
  11816. help: { type: 'boolean', default: !1 },
  11817. s: { type: 'list' },
  11818. v: { type: 'boolean', default: !1 }
  11819. },
  11820. urls: [
  11821. {
  11822. fmt: '/_cat/thread_pool/<%=threadPoolPatterns%>',
  11823. req: { threadPoolPatterns: { type: 'list' } }
  11824. },
  11825. { fmt: '/_cat/thread_pool' }
  11826. ]
  11827. })),
  11828. (f.clearScroll = d({
  11829. url: { fmt: '/_search/scroll' },
  11830. paramAsBody: { param: 'scrollId', body: 'scroll_id' },
  11831. method: 'DELETE'
  11832. })),
  11833. (f.cluster = e()),
  11834. (f.cluster.prototype.allocationExplain = d({
  11835. params: {
  11836. includeYesDecisions: { type: 'boolean', name: 'include_yes_decisions' },
  11837. includeDiskInfo: { type: 'boolean', name: 'include_disk_info' }
  11838. },
  11839. url: { fmt: '/_cluster/allocation/explain' },
  11840. method: 'POST'
  11841. })),
  11842. (f.cluster.prototype.getSettings = d({
  11843. params: {
  11844. flatSettings: { type: 'boolean', name: 'flat_settings' },
  11845. masterTimeout: { type: 'time', name: 'master_timeout' },
  11846. timeout: { type: 'time' },
  11847. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
  11848. },
  11849. url: { fmt: '/_cluster/settings' }
  11850. })),
  11851. (f.cluster.prototype.health = d({
  11852. params: {
  11853. expandWildcards: {
  11854. type: 'enum',
  11855. default: 'all',
  11856. options: ['open', 'closed', 'none', 'all'],
  11857. name: 'expand_wildcards'
  11858. },
  11859. level: { type: 'enum', default: 'cluster', options: ['cluster', 'indices', 'shards'] },
  11860. local: { type: 'boolean' },
  11861. masterTimeout: { type: 'time', name: 'master_timeout' },
  11862. timeout: { type: 'time' },
  11863. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  11864. waitForNodes: { type: 'string', name: 'wait_for_nodes' },
  11865. waitForEvents: {
  11866. type: 'enum',
  11867. options: ['immediate', 'urgent', 'high', 'normal', 'low', 'languid'],
  11868. name: 'wait_for_events'
  11869. },
  11870. waitForNoRelocatingShards: { type: 'boolean', name: 'wait_for_no_relocating_shards' },
  11871. waitForNoInitializingShards: { type: 'boolean', name: 'wait_for_no_initializing_shards' },
  11872. waitForStatus: {
  11873. type: 'enum',
  11874. default: null,
  11875. options: ['green', 'yellow', 'red'],
  11876. name: 'wait_for_status'
  11877. }
  11878. },
  11879. urls: [
  11880. { fmt: '/_cluster/health/<%=index%>', req: { index: { type: 'list' } } },
  11881. { fmt: '/_cluster/health' }
  11882. ]
  11883. })),
  11884. (f.cluster.prototype.pendingTasks = d({
  11885. params: { local: { type: 'boolean' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  11886. url: { fmt: '/_cluster/pending_tasks' }
  11887. })),
  11888. (f.cluster.prototype.putSettings = d({
  11889. params: {
  11890. flatSettings: { type: 'boolean', name: 'flat_settings' },
  11891. masterTimeout: { type: 'time', name: 'master_timeout' },
  11892. timeout: { type: 'time' }
  11893. },
  11894. url: { fmt: '/_cluster/settings' },
  11895. needBody: !0,
  11896. method: 'PUT'
  11897. })),
  11898. (f.cluster.prototype.remoteInfo = d({ url: { fmt: '/_remote/info' } })),
  11899. (f.cluster.prototype.reroute = d({
  11900. params: {
  11901. dryRun: { type: 'boolean', name: 'dry_run' },
  11902. explain: { type: 'boolean' },
  11903. retryFailed: { type: 'boolean', name: 'retry_failed' },
  11904. metric: {
  11905. type: 'list',
  11906. options: [
  11907. '_all',
  11908. 'blocks',
  11909. 'metadata',
  11910. 'nodes',
  11911. 'routing_table',
  11912. 'master_node',
  11913. 'version'
  11914. ]
  11915. },
  11916. masterTimeout: { type: 'time', name: 'master_timeout' },
  11917. timeout: { type: 'time' }
  11918. },
  11919. url: { fmt: '/_cluster/reroute' },
  11920. method: 'POST'
  11921. })),
  11922. (f.cluster.prototype.state = d({
  11923. params: {
  11924. local: { type: 'boolean' },
  11925. masterTimeout: { type: 'time', name: 'master_timeout' },
  11926. flatSettings: { type: 'boolean', name: 'flat_settings' },
  11927. waitForMetadataVersion: { type: 'number', name: 'wait_for_metadata_version' },
  11928. waitForTimeout: { type: 'time', name: 'wait_for_timeout' },
  11929. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  11930. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  11931. expandWildcards: {
  11932. type: 'enum',
  11933. default: 'open',
  11934. options: ['open', 'closed', 'none', 'all'],
  11935. name: 'expand_wildcards'
  11936. }
  11937. },
  11938. urls: [
  11939. {
  11940. fmt: '/_cluster/state/<%=metric%>/<%=index%>',
  11941. req: {
  11942. metric: {
  11943. type: 'list',
  11944. options: [
  11945. '_all',
  11946. 'blocks',
  11947. 'metadata',
  11948. 'nodes',
  11949. 'routing_table',
  11950. 'routing_nodes',
  11951. 'master_node',
  11952. 'version'
  11953. ]
  11954. },
  11955. index: { type: 'list' }
  11956. }
  11957. },
  11958. {
  11959. fmt: '/_cluster/state/<%=metric%>',
  11960. req: {
  11961. metric: {
  11962. type: 'list',
  11963. options: [
  11964. '_all',
  11965. 'blocks',
  11966. 'metadata',
  11967. 'nodes',
  11968. 'routing_table',
  11969. 'routing_nodes',
  11970. 'master_node',
  11971. 'version'
  11972. ]
  11973. }
  11974. }
  11975. },
  11976. { fmt: '/_cluster/state' }
  11977. ]
  11978. })),
  11979. (f.cluster.prototype.stats = d({
  11980. params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
  11981. urls: [
  11982. { fmt: '/_cluster/stats/nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
  11983. { fmt: '/_cluster/stats' }
  11984. ]
  11985. })),
  11986. (f.count = d({
  11987. params: {
  11988. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  11989. ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
  11990. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  11991. expandWildcards: {
  11992. type: 'enum',
  11993. default: 'open',
  11994. options: ['open', 'closed', 'none', 'all'],
  11995. name: 'expand_wildcards'
  11996. },
  11997. minScore: { type: 'number', name: 'min_score' },
  11998. preference: { type: 'string' },
  11999. routing: { type: 'list' },
  12000. q: { type: 'string' },
  12001. analyzer: { type: 'string' },
  12002. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  12003. defaultOperator: {
  12004. type: 'enum',
  12005. default: 'OR',
  12006. options: ['AND', 'OR'],
  12007. name: 'default_operator'
  12008. },
  12009. df: { type: 'string' },
  12010. lenient: { type: 'boolean' },
  12011. terminateAfter: { type: 'number', name: 'terminate_after' }
  12012. },
  12013. urls: [{ fmt: '/<%=index%>/_count', req: { index: { type: 'list' } } }, { fmt: '/_count' }],
  12014. method: 'POST'
  12015. })),
  12016. (f.create = d({
  12017. params: {
  12018. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  12019. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  12020. routing: { type: 'string' },
  12021. timeout: { type: 'time' },
  12022. version: { type: 'number' },
  12023. versionType: {
  12024. type: 'enum',
  12025. options: ['internal', 'external', 'external_gte', 'force'],
  12026. name: 'version_type'
  12027. },
  12028. pipeline: { type: 'string' }
  12029. },
  12030. url: {
  12031. fmt: '/<%=index%>/_create/<%=id%>',
  12032. req: { index: { type: 'string' }, id: { type: 'string' } }
  12033. },
  12034. needBody: !0,
  12035. method: 'POST'
  12036. })),
  12037. (f.delete = d({
  12038. params: {
  12039. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  12040. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  12041. routing: { type: 'string' },
  12042. timeout: { type: 'time' },
  12043. ifSeqNo: { type: 'number', name: 'if_seq_no' },
  12044. ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
  12045. version: { type: 'number' },
  12046. versionType: {
  12047. type: 'enum',
  12048. options: ['internal', 'external', 'external_gte', 'force'],
  12049. name: 'version_type'
  12050. }
  12051. },
  12052. url: {
  12053. fmt: '/<%=index%>/_doc/<%=id%>',
  12054. req: { index: { type: 'string' }, id: { type: 'string' } }
  12055. },
  12056. method: 'DELETE'
  12057. })),
  12058. (f.deleteByQuery = d({
  12059. params: {
  12060. analyzer: { type: 'string' },
  12061. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  12062. defaultOperator: {
  12063. type: 'enum',
  12064. default: 'OR',
  12065. options: ['AND', 'OR'],
  12066. name: 'default_operator'
  12067. },
  12068. df: { type: 'string' },
  12069. from: { type: 'number' },
  12070. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  12071. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  12072. conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
  12073. expandWildcards: {
  12074. type: 'enum',
  12075. default: 'open',
  12076. options: ['open', 'closed', 'none', 'all'],
  12077. name: 'expand_wildcards'
  12078. },
  12079. lenient: { type: 'boolean' },
  12080. preference: { type: 'string' },
  12081. q: { type: 'string' },
  12082. routing: { type: 'list' },
  12083. scroll: { type: 'time' },
  12084. searchType: {
  12085. type: 'enum',
  12086. options: ['query_then_fetch', 'dfs_query_then_fetch'],
  12087. name: 'search_type'
  12088. },
  12089. searchTimeout: { type: 'time', name: 'search_timeout' },
  12090. size: { type: 'number' },
  12091. maxDocs: { type: 'number', name: 'max_docs' },
  12092. sort: { type: 'list' },
  12093. _source: { type: 'list' },
  12094. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  12095. _sourceIncludes: { type: 'list', name: '_source_includes' },
  12096. terminateAfter: { type: 'number', name: 'terminate_after' },
  12097. stats: { type: 'list' },
  12098. version: { type: 'boolean' },
  12099. requestCache: { type: 'boolean', name: 'request_cache' },
  12100. refresh: { type: 'boolean' },
  12101. timeout: { type: 'time', default: '1m' },
  12102. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  12103. scrollSize: { type: 'number', name: 'scroll_size' },
  12104. waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
  12105. requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
  12106. slices: { type: 'number', default: 1 }
  12107. },
  12108. url: { fmt: '/<%=index%>/_delete_by_query', req: { index: { type: 'list' } } },
  12109. needBody: !0,
  12110. method: 'POST'
  12111. })),
  12112. (f.deleteByQueryRethrottle = d({
  12113. params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
  12114. url: { fmt: '/_delete_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
  12115. method: 'POST'
  12116. })),
  12117. (f.deleteScript = d({
  12118. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  12119. url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } },
  12120. method: 'DELETE'
  12121. })),
  12122. (f.exists = d({
  12123. params: {
  12124. storedFields: { type: 'list', name: 'stored_fields' },
  12125. preference: { type: 'string' },
  12126. realtime: { type: 'boolean' },
  12127. refresh: { type: 'boolean' },
  12128. routing: { type: 'string' },
  12129. _source: { type: 'list' },
  12130. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  12131. _sourceIncludes: { type: 'list', name: '_source_includes' },
  12132. version: { type: 'number' },
  12133. versionType: {
  12134. type: 'enum',
  12135. options: ['internal', 'external', 'external_gte', 'force'],
  12136. name: 'version_type'
  12137. }
  12138. },
  12139. url: {
  12140. fmt: '/<%=index%>/_doc/<%=id%>',
  12141. req: { index: { type: 'string' }, id: { type: 'string' } }
  12142. },
  12143. method: 'HEAD'
  12144. })),
  12145. (f.existsSource = d({
  12146. params: {
  12147. preference: { type: 'string' },
  12148. realtime: { type: 'boolean' },
  12149. refresh: { type: 'boolean' },
  12150. routing: { type: 'string' },
  12151. _source: { type: 'list' },
  12152. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  12153. _sourceIncludes: { type: 'list', name: '_source_includes' },
  12154. version: { type: 'number' },
  12155. versionType: {
  12156. type: 'enum',
  12157. options: ['internal', 'external', 'external_gte', 'force'],
  12158. name: 'version_type'
  12159. }
  12160. },
  12161. url: {
  12162. fmt: '/<%=index%>/_source/<%=id%>',
  12163. req: { index: { type: 'string' }, id: { type: 'string' } }
  12164. },
  12165. method: 'HEAD'
  12166. })),
  12167. (f.explain = d({
  12168. params: {
  12169. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  12170. analyzer: { type: 'string' },
  12171. defaultOperator: {
  12172. type: 'enum',
  12173. default: 'OR',
  12174. options: ['AND', 'OR'],
  12175. name: 'default_operator'
  12176. },
  12177. df: { type: 'string' },
  12178. storedFields: { type: 'list', name: 'stored_fields' },
  12179. lenient: { type: 'boolean' },
  12180. preference: { type: 'string' },
  12181. q: { type: 'string' },
  12182. routing: { type: 'string' },
  12183. _source: { type: 'list' },
  12184. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  12185. _sourceIncludes: { type: 'list', name: '_source_includes' }
  12186. },
  12187. url: {
  12188. fmt: '/<%=index%>/_explain/<%=id%>',
  12189. req: { index: { type: 'string' }, id: { type: 'string' } }
  12190. },
  12191. method: 'POST'
  12192. })),
  12193. (f.fieldCaps = d({
  12194. params: {
  12195. fields: { type: 'list' },
  12196. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  12197. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  12198. expandWildcards: {
  12199. type: 'enum',
  12200. default: 'open',
  12201. options: ['open', 'closed', 'none', 'all'],
  12202. name: 'expand_wildcards'
  12203. },
  12204. includeUnmapped: { type: 'boolean', default: !1, name: 'include_unmapped' }
  12205. },
  12206. urls: [
  12207. { fmt: '/<%=index%>/_field_caps', req: { index: { type: 'list' } } },
  12208. { fmt: '/_field_caps' }
  12209. ],
  12210. method: 'POST'
  12211. })),
  12212. (f.get = d({
  12213. params: {
  12214. storedFields: { type: 'list', name: 'stored_fields' },
  12215. preference: { type: 'string' },
  12216. realtime: { type: 'boolean' },
  12217. refresh: { type: 'boolean' },
  12218. routing: { type: 'string' },
  12219. _source: { type: 'list' },
  12220. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  12221. _sourceIncludes: { type: 'list', name: '_source_includes' },
  12222. version: { type: 'number' },
  12223. versionType: {
  12224. type: 'enum',
  12225. options: ['internal', 'external', 'external_gte', 'force'],
  12226. name: 'version_type'
  12227. }
  12228. },
  12229. url: {
  12230. fmt: '/<%=index%>/_doc/<%=id%>',
  12231. req: { index: { type: 'string' }, id: { type: 'string' } }
  12232. }
  12233. })),
  12234. (f.getScript = d({
  12235. params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
  12236. url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
  12237. })),
  12238. (f.getSource = d({
  12239. params: {
  12240. preference: { type: 'string' },
  12241. realtime: { type: 'boolean' },
  12242. refresh: { type: 'boolean' },
  12243. routing: { type: 'string' },
  12244. _source: { type: 'list' },
  12245. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  12246. _sourceIncludes: { type: 'list', name: '_source_includes' },
  12247. version: { type: 'number' },
  12248. versionType: {
  12249. type: 'enum',
  12250. options: ['internal', 'external', 'external_gte', 'force'],
  12251. name: 'version_type'
  12252. }
  12253. },
  12254. url: {
  12255. fmt: '/<%=index%>/_source/<%=id%>',
  12256. req: { index: { type: 'string' }, id: { type: 'string' } }
  12257. }
  12258. })),
  12259. (f.index = d({
  12260. params: {
  12261. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  12262. opType: { type: 'enum', default: 'index', options: ['index', 'create'], name: 'op_type' },
  12263. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  12264. routing: { type: 'string' },
  12265. timeout: { type: 'time' },
  12266. version: { type: 'number' },
  12267. versionType: {
  12268. type: 'enum',
  12269. options: ['internal', 'external', 'external_gte', 'force'],
  12270. name: 'version_type'
  12271. },
  12272. ifSeqNo: { type: 'number', name: 'if_seq_no' },
  12273. ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
  12274. pipeline: { type: 'string' }
  12275. },
  12276. urls: [
  12277. {
  12278. fmt: '/<%=index%>/_doc/<%=id%>',
  12279. req: { index: { type: 'string' }, id: { type: 'string' } }
  12280. },
  12281. { fmt: '/<%=index%>/_doc', req: { index: { type: 'string' } } }
  12282. ],
  12283. needBody: !0,
  12284. method: 'POST'
  12285. })),
  12286. (f.indices = e()),
  12287. (f.indices.prototype.analyze = d({
  12288. params: { index: { type: 'string' } },
  12289. urls: [
  12290. { fmt: '/<%=index%>/_analyze', req: { index: { type: 'string' } } },
  12291. { fmt: '/_analyze' }
  12292. ],
  12293. method: 'POST'
  12294. })),
  12295. (f.indices.prototype.clearCache = d({
  12296. params: {
  12297. fielddata: { type: 'boolean' },
  12298. fields: { type: 'list' },
  12299. query: { type: 'boolean' },
  12300. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  12301. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  12302. expandWildcards: {
  12303. type: 'enum',
  12304. default: 'open',
  12305. options: ['open', 'closed', 'none', 'all'],
  12306. name: 'expand_wildcards'
  12307. },
  12308. index: { type: 'list' },
  12309. request: { type: 'boolean' }
  12310. },
  12311. urls: [
  12312. { fmt: '/<%=index%>/_cache/clear', req: { index: { type: 'list' } } },
  12313. { fmt: '/_cache/clear' }
  12314. ],
  12315. method: 'POST'
  12316. })),
  12317. (f.indices.prototype.clone = d({
  12318. params: {
  12319. timeout: { type: 'time' },
  12320. masterTimeout: { type: 'time', name: 'master_timeout' },
  12321. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  12322. },
  12323. url: {
  12324. fmt: '/<%=index%>/_clone/<%=target%>',
  12325. req: { index: { type: 'string' }, target: { type: 'string' } }
  12326. },
  12327. method: 'POST'
  12328. })),
  12329. (f.indices.prototype.close = d({
  12330. params: {
  12331. timeout: { type: 'time' },
  12332. masterTimeout: { type: 'time', name: 'master_timeout' },
  12333. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  12334. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  12335. expandWildcards: {
  12336. type: 'enum',
  12337. default: 'open',
  12338. options: ['open', 'closed', 'none', 'all'],
  12339. name: 'expand_wildcards'
  12340. },
  12341. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  12342. },
  12343. url: { fmt: '/<%=index%>/_close', req: { index: { type: 'list' } } },
  12344. method: 'POST'
  12345. })),
  12346. (f.indices.prototype.create = d({
  12347. params: {
  12348. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  12349. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  12350. timeout: { type: 'time' },
  12351. masterTimeout: { type: 'time', name: 'master_timeout' }
  12352. },
  12353. url: { fmt: '/<%=index%>', req: { index: { type: 'string' } } },
  12354. method: 'PUT'
  12355. })),
  12356. (f.indices.prototype.delete = d({
  12357. params: {
  12358. timeout: { type: 'time' },
  12359. masterTimeout: { type: 'time', name: 'master_timeout' },
  12360. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  12361. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  12362. expandWildcards: {
  12363. type: 'enum',
  12364. default: 'open',
  12365. options: ['open', 'closed', 'none', 'all'],
  12366. name: 'expand_wildcards'
  12367. }
  12368. },
  12369. url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
  12370. method: 'DELETE'
  12371. })),
  12372. (f.indices.prototype.deleteAlias = d({
  12373. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  12374. url: {
  12375. fmt: '/<%=index%>/_alias/<%=name%>',
  12376. req: { index: { type: 'list' }, name: { type: 'list' } }
  12377. },
  12378. method: 'DELETE'
  12379. })),
  12380. (f.indices.prototype.deleteTemplate = d({
  12381. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  12382. url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
  12383. method: 'DELETE'
  12384. })),
  12385. (f.indices.prototype.exists = d({
  12386. params: {
  12387. local: { type: 'boolean' },
  12388. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  12389. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  12390. expandWildcards: {
  12391. type: 'enum',
  12392. default: 'open',
  12393. options: ['open', 'closed', 'none', 'all'],
  12394. name: 'expand_wildcards'
  12395. },
  12396. flatSettings: { type: 'boolean', name: 'flat_settings' },
  12397. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
  12398. },
  12399. url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
  12400. method: 'HEAD'
  12401. })),
  12402. (f.indices.prototype.existsAlias = d({
  12403. params: {
  12404. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  12405. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  12406. expandWildcards: {
  12407. type: 'enum',
  12408. default: 'all',
  12409. options: ['open', 'closed', 'none', 'all'],
  12410. name: 'expand_wildcards'
  12411. },
  12412. local: { type: 'boolean' }
  12413. },
  12414. urls: [
  12415. {
  12416. fmt: '/<%=index%>/_alias/<%=name%>',
  12417. req: { index: { type: 'list' }, name: { type: 'list' } }
  12418. },
  12419. { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } }
  12420. ],
  12421. method: 'HEAD'
  12422. })),
  12423. (f.indices.prototype.existsTemplate = d({
  12424. params: {
  12425. flatSettings: { type: 'boolean', name: 'flat_settings' },
  12426. masterTimeout: { type: 'time', name: 'master_timeout' },
  12427. local: { type: 'boolean' }
  12428. },
  12429. url: { fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } },
  12430. method: 'HEAD'
  12431. })),
  12432. (f.indices.prototype.existsType = d({
  12433. params: {
  12434. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  12435. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  12436. expandWildcards: {
  12437. type: 'enum',
  12438. default: 'open',
  12439. options: ['open', 'closed', 'none', 'all'],
  12440. name: 'expand_wildcards'
  12441. },
  12442. local: { type: 'boolean' }
  12443. },
  12444. url: {
  12445. fmt: '/<%=index%>/_mapping/<%=type%>',
  12446. req: { index: { type: 'list' }, type: { type: 'list' } }
  12447. },
  12448. method: 'HEAD'
  12449. })),
  12450. (f.indices.prototype.flush = d({
  12451. params: {
  12452. force: { type: 'boolean' },
  12453. waitIfOngoing: { type: 'boolean', name: 'wait_if_ongoing' },
  12454. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  12455. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  12456. expandWildcards: {
  12457. type: 'enum',
  12458. default: 'open',
  12459. options: ['open', 'closed', 'none', 'all'],
  12460. name: 'expand_wildcards'
  12461. }
  12462. },
  12463. urls: [{ fmt: '/<%=index%>/_flush', req: { index: { type: 'list' } } }, { fmt: '/_flush' }],
  12464. method: 'POST'
  12465. })),
  12466. (f.indices.prototype.flushSynced = d({
  12467. params: {
  12468. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  12469. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  12470. expandWildcards: {
  12471. type: 'enum',
  12472. default: 'open',
  12473. options: ['open', 'closed', 'none', 'all'],
  12474. name: 'expand_wildcards'
  12475. }
  12476. },
  12477. urls: [
  12478. { fmt: '/<%=index%>/_flush/synced', req: { index: { type: 'list' } } },
  12479. { fmt: '/_flush/synced' }
  12480. ],
  12481. method: 'POST'
  12482. })),
  12483. (f.indices.prototype.forcemerge = d({
  12484. params: {
  12485. flush: { type: 'boolean' },
  12486. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  12487. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  12488. expandWildcards: {
  12489. type: 'enum',
  12490. default: 'open',
  12491. options: ['open', 'closed', 'none', 'all'],
  12492. name: 'expand_wildcards'
  12493. },
  12494. maxNumSegments: { type: 'number', name: 'max_num_segments' },
  12495. onlyExpungeDeletes: { type: 'boolean', name: 'only_expunge_deletes' }
  12496. },
  12497. urls: [
  12498. { fmt: '/<%=index%>/_forcemerge', req: { index: { type: 'list' } } },
  12499. { fmt: '/_forcemerge' }
  12500. ],
  12501. method: 'POST'
  12502. })),
  12503. (f.indices.prototype.get = d({
  12504. params: {
  12505. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  12506. local: { type: 'boolean' },
  12507. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  12508. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  12509. expandWildcards: {
  12510. type: 'enum',
  12511. default: 'open',
  12512. options: ['open', 'closed', 'none', 'all'],
  12513. name: 'expand_wildcards'
  12514. },
  12515. flatSettings: { type: 'boolean', name: 'flat_settings' },
  12516. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' },
  12517. masterTimeout: { type: 'time', name: 'master_timeout' }
  12518. },
  12519. url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } }
  12520. })),
  12521. (f.indices.prototype.getAlias = d({
  12522. params: {
  12523. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  12524. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  12525. expandWildcards: {
  12526. type: 'enum',
  12527. default: 'all',
  12528. options: ['open', 'closed', 'none', 'all'],
  12529. name: 'expand_wildcards'
  12530. },
  12531. local: { type: 'boolean' }
  12532. },
  12533. urls: [
  12534. {
  12535. fmt: '/<%=index%>/_alias/<%=name%>',
  12536. req: { index: { type: 'list' }, name: { type: 'list' } }
  12537. },
  12538. { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } },
  12539. { fmt: '/<%=index%>/_alias', req: { index: { type: 'list' } } },
  12540. { fmt: '/_alias' }
  12541. ]
  12542. })),
  12543. (f.indices.prototype.getFieldMapping = d({
  12544. params: {
  12545. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  12546. includeDefaults: { type: 'boolean', name: 'include_defaults' },
  12547. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  12548. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  12549. expandWildcards: {
  12550. type: 'enum',
  12551. default: 'open',
  12552. options: ['open', 'closed', 'none', 'all'],
  12553. name: 'expand_wildcards'
  12554. },
  12555. local: { type: 'boolean' }
  12556. },
  12557. urls: [
  12558. {
  12559. fmt: '/<%=index%>/_mapping/field/<%=fields%>',
  12560. req: { index: { type: 'list' }, fields: { type: 'list' } }
  12561. },
  12562. { fmt: '/_mapping/field/<%=fields%>', req: { fields: { type: 'list' } } }
  12563. ]
  12564. })),
  12565. (f.indices.prototype.getMapping = d({
  12566. params: {
  12567. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  12568. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  12569. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  12570. expandWildcards: {
  12571. type: 'enum',
  12572. default: 'open',
  12573. options: ['open', 'closed', 'none', 'all'],
  12574. name: 'expand_wildcards'
  12575. },
  12576. masterTimeout: { type: 'time', name: 'master_timeout' },
  12577. local: { type: 'boolean' }
  12578. },
  12579. urls: [{ fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } }, { fmt: '/_mapping' }]
  12580. })),
  12581. (f.indices.prototype.getSettings = d({
  12582. params: {
  12583. masterTimeout: { type: 'time', name: 'master_timeout' },
  12584. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  12585. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  12586. expandWildcards: {
  12587. type: 'enum',
  12588. default: ['open', 'closed'],
  12589. options: ['open', 'closed', 'none', 'all'],
  12590. name: 'expand_wildcards'
  12591. },
  12592. flatSettings: { type: 'boolean', name: 'flat_settings' },
  12593. local: { type: 'boolean' },
  12594. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
  12595. },
  12596. urls: [
  12597. {
  12598. fmt: '/<%=index%>/_settings/<%=name%>',
  12599. req: { index: { type: 'list' }, name: { type: 'list' } }
  12600. },
  12601. { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
  12602. { fmt: '/_settings/<%=name%>', req: { name: { type: 'list' } } },
  12603. { fmt: '/_settings' }
  12604. ]
  12605. })),
  12606. (f.indices.prototype.getTemplate = d({
  12607. params: {
  12608. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  12609. flatSettings: { type: 'boolean', name: 'flat_settings' },
  12610. masterTimeout: { type: 'time', name: 'master_timeout' },
  12611. local: { type: 'boolean' }
  12612. },
  12613. urls: [{ fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } }, { fmt: '/_template' }]
  12614. })),
  12615. (f.indices.prototype.getUpgrade = d({
  12616. params: {
  12617. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  12618. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  12619. expandWildcards: {
  12620. type: 'enum',
  12621. default: 'open',
  12622. options: ['open', 'closed', 'none', 'all'],
  12623. name: 'expand_wildcards'
  12624. }
  12625. },
  12626. urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }]
  12627. })),
  12628. (f.indices.prototype.open = d({
  12629. params: {
  12630. timeout: { type: 'time' },
  12631. masterTimeout: { type: 'time', name: 'master_timeout' },
  12632. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  12633. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  12634. expandWildcards: {
  12635. type: 'enum',
  12636. default: 'closed',
  12637. options: ['open', 'closed', 'none', 'all'],
  12638. name: 'expand_wildcards'
  12639. },
  12640. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  12641. },
  12642. url: { fmt: '/<%=index%>/_open', req: { index: { type: 'list' } } },
  12643. method: 'POST'
  12644. })),
  12645. (f.indices.prototype.putAlias = d({
  12646. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  12647. url: {
  12648. fmt: '/<%=index%>/_alias/<%=name%>',
  12649. req: { index: { type: 'list' }, name: { type: 'string' } }
  12650. },
  12651. method: 'PUT'
  12652. })),
  12653. (f.indices.prototype.putMapping = d({
  12654. params: {
  12655. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  12656. timeout: { type: 'time' },
  12657. masterTimeout: { type: 'time', name: 'master_timeout' },
  12658. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  12659. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  12660. expandWildcards: {
  12661. type: 'enum',
  12662. default: 'open',
  12663. options: ['open', 'closed', 'none', 'all'],
  12664. name: 'expand_wildcards'
  12665. }
  12666. },
  12667. url: { fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } },
  12668. needBody: !0,
  12669. method: 'PUT'
  12670. })),
  12671. (f.indices.prototype.putSettings = d({
  12672. params: {
  12673. masterTimeout: { type: 'time', name: 'master_timeout' },
  12674. timeout: { type: 'time' },
  12675. preserveExisting: { type: 'boolean', name: 'preserve_existing' },
  12676. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  12677. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  12678. expandWildcards: {
  12679. type: 'enum',
  12680. default: 'open',
  12681. options: ['open', 'closed', 'none', 'all'],
  12682. name: 'expand_wildcards'
  12683. },
  12684. flatSettings: { type: 'boolean', name: 'flat_settings' }
  12685. },
  12686. urls: [
  12687. { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
  12688. { fmt: '/_settings' }
  12689. ],
  12690. needBody: !0,
  12691. method: 'PUT'
  12692. })),
  12693. (f.indices.prototype.putTemplate = d({
  12694. params: {
  12695. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  12696. order: { type: 'number' },
  12697. create: { type: 'boolean', default: !1 },
  12698. timeout: { type: 'time' },
  12699. masterTimeout: { type: 'time', name: 'master_timeout' },
  12700. flatSettings: { type: 'boolean', name: 'flat_settings' }
  12701. },
  12702. url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
  12703. needBody: !0,
  12704. method: 'PUT'
  12705. })),
  12706. (f.indices.prototype.recovery = d({
  12707. params: {
  12708. detailed: { type: 'boolean', default: !1 },
  12709. activeOnly: { type: 'boolean', default: !1, name: 'active_only' }
  12710. },
  12711. urls: [
  12712. { fmt: '/<%=index%>/_recovery', req: { index: { type: 'list' } } },
  12713. { fmt: '/_recovery' }
  12714. ]
  12715. })),
  12716. (f.indices.prototype.refresh = d({
  12717. params: {
  12718. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  12719. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  12720. expandWildcards: {
  12721. type: 'enum',
  12722. default: 'open',
  12723. options: ['open', 'closed', 'none', 'all'],
  12724. name: 'expand_wildcards'
  12725. }
  12726. },
  12727. urls: [{ fmt: '/<%=index%>/_refresh', req: { index: { type: 'list' } } }, { fmt: '/_refresh' }],
  12728. method: 'POST'
  12729. })),
  12730. (f.indices.prototype.rollover = d({
  12731. params: {
  12732. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  12733. timeout: { type: 'time' },
  12734. dryRun: { type: 'boolean', name: 'dry_run' },
  12735. masterTimeout: { type: 'time', name: 'master_timeout' },
  12736. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  12737. },
  12738. urls: [
  12739. {
  12740. fmt: '/<%=alias%>/_rollover/<%=newIndex%>',
  12741. req: { alias: { type: 'string' }, newIndex: { type: 'string' } }
  12742. },
  12743. { fmt: '/<%=alias%>/_rollover', req: { alias: { type: 'string' } } }
  12744. ],
  12745. method: 'POST'
  12746. })),
  12747. (f.indices.prototype.segments = d({
  12748. params: {
  12749. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  12750. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  12751. expandWildcards: {
  12752. type: 'enum',
  12753. default: 'open',
  12754. options: ['open', 'closed', 'none', 'all'],
  12755. name: 'expand_wildcards'
  12756. },
  12757. verbose: { type: 'boolean', default: !1 }
  12758. },
  12759. urls: [
  12760. { fmt: '/<%=index%>/_segments', req: { index: { type: 'list' } } },
  12761. { fmt: '/_segments' }
  12762. ]
  12763. })),
  12764. (f.indices.prototype.shardStores = d({
  12765. params: {
  12766. status: { type: 'list', options: ['green', 'yellow', 'red', 'all'] },
  12767. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  12768. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  12769. expandWildcards: {
  12770. type: 'enum',
  12771. default: 'open',
  12772. options: ['open', 'closed', 'none', 'all'],
  12773. name: 'expand_wildcards'
  12774. }
  12775. },
  12776. urls: [
  12777. { fmt: '/<%=index%>/_shard_stores', req: { index: { type: 'list' } } },
  12778. { fmt: '/_shard_stores' }
  12779. ]
  12780. })),
  12781. (f.indices.prototype.shrink = d({
  12782. params: {
  12783. copySettings: { type: 'boolean', name: 'copy_settings' },
  12784. timeout: { type: 'time' },
  12785. masterTimeout: { type: 'time', name: 'master_timeout' },
  12786. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  12787. },
  12788. url: {
  12789. fmt: '/<%=index%>/_shrink/<%=target%>',
  12790. req: { index: { type: 'string' }, target: { type: 'string' } }
  12791. },
  12792. method: 'POST'
  12793. })),
  12794. (f.indices.prototype.split = d({
  12795. params: {
  12796. copySettings: { type: 'boolean', name: 'copy_settings' },
  12797. timeout: { type: 'time' },
  12798. masterTimeout: { type: 'time', name: 'master_timeout' },
  12799. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  12800. },
  12801. url: {
  12802. fmt: '/<%=index%>/_split/<%=target%>',
  12803. req: { index: { type: 'string' }, target: { type: 'string' } }
  12804. },
  12805. method: 'POST'
  12806. })),
  12807. (f.indices.prototype.stats = d({
  12808. params: {
  12809. completionFields: { type: 'list', name: 'completion_fields' },
  12810. fielddataFields: { type: 'list', name: 'fielddata_fields' },
  12811. fields: { type: 'list' },
  12812. groups: { type: 'list' },
  12813. level: { type: 'enum', default: 'indices', options: ['cluster', 'indices', 'shards'] },
  12814. types: { type: 'list' },
  12815. includeSegmentFileSizes: {
  12816. type: 'boolean',
  12817. default: !1,
  12818. name: 'include_segment_file_sizes'
  12819. },
  12820. includeUnloadedSegments: {
  12821. type: 'boolean',
  12822. default: !1,
  12823. name: 'include_unloaded_segments'
  12824. },
  12825. expandWildcards: {
  12826. type: 'enum',
  12827. default: 'open',
  12828. options: ['open', 'closed', 'none', 'all'],
  12829. name: 'expand_wildcards'
  12830. },
  12831. forbidClosedIndices: { type: 'boolean', default: !0, name: 'forbid_closed_indices' }
  12832. },
  12833. urls: [
  12834. {
  12835. fmt: '/<%=index%>/_stats/<%=metric%>',
  12836. req: {
  12837. index: { type: 'list' },
  12838. metric: {
  12839. type: 'list',
  12840. options: [
  12841. '_all',
  12842. 'completion',
  12843. 'docs',
  12844. 'fielddata',
  12845. 'query_cache',
  12846. 'flush',
  12847. 'get',
  12848. 'indexing',
  12849. 'merge',
  12850. 'request_cache',
  12851. 'refresh',
  12852. 'search',
  12853. 'segments',
  12854. 'store',
  12855. 'warmer',
  12856. 'suggest'
  12857. ]
  12858. }
  12859. }
  12860. },
  12861. {
  12862. fmt: '/_stats/<%=metric%>',
  12863. req: {
  12864. metric: {
  12865. type: 'list',
  12866. options: [
  12867. '_all',
  12868. 'completion',
  12869. 'docs',
  12870. 'fielddata',
  12871. 'query_cache',
  12872. 'flush',
  12873. 'get',
  12874. 'indexing',
  12875. 'merge',
  12876. 'request_cache',
  12877. 'refresh',
  12878. 'search',
  12879. 'segments',
  12880. 'store',
  12881. 'warmer',
  12882. 'suggest'
  12883. ]
  12884. }
  12885. }
  12886. },
  12887. { fmt: '/<%=index%>/_stats', req: { index: { type: 'list' } } },
  12888. { fmt: '/_stats' }
  12889. ]
  12890. })),
  12891. (f.indices.prototype.updateAliases = d({
  12892. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  12893. url: { fmt: '/_aliases' },
  12894. needBody: !0,
  12895. method: 'POST'
  12896. })),
  12897. (f.indices.prototype.upgrade = d({
  12898. params: {
  12899. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  12900. expandWildcards: {
  12901. type: 'enum',
  12902. default: 'open',
  12903. options: ['open', 'closed', 'none', 'all'],
  12904. name: 'expand_wildcards'
  12905. },
  12906. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  12907. waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
  12908. onlyAncientSegments: { type: 'boolean', name: 'only_ancient_segments' }
  12909. },
  12910. urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }],
  12911. method: 'POST'
  12912. })),
  12913. (f.indices.prototype.validateQuery = d({
  12914. params: {
  12915. explain: { type: 'boolean' },
  12916. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  12917. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  12918. expandWildcards: {
  12919. type: 'enum',
  12920. default: 'open',
  12921. options: ['open', 'closed', 'none', 'all'],
  12922. name: 'expand_wildcards'
  12923. },
  12924. q: { type: 'string' },
  12925. analyzer: { type: 'string' },
  12926. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  12927. defaultOperator: {
  12928. type: 'enum',
  12929. default: 'OR',
  12930. options: ['AND', 'OR'],
  12931. name: 'default_operator'
  12932. },
  12933. df: { type: 'string' },
  12934. lenient: { type: 'boolean' },
  12935. rewrite: { type: 'boolean' },
  12936. allShards: { type: 'boolean', name: 'all_shards' }
  12937. },
  12938. urls: [
  12939. { fmt: '/<%=index%>/_validate/query', req: { index: { type: 'list' } } },
  12940. { fmt: '/_validate/query' }
  12941. ],
  12942. method: 'POST'
  12943. })),
  12944. (f.info = d({ url: { fmt: '/' } })),
  12945. (f.ingest = e()),
  12946. (f.ingest.prototype.deletePipeline = d({
  12947. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  12948. url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
  12949. method: 'DELETE'
  12950. })),
  12951. (f.ingest.prototype.getPipeline = d({
  12952. params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
  12953. urls: [
  12954. { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
  12955. { fmt: '/_ingest/pipeline' }
  12956. ]
  12957. })),
  12958. (f.ingest.prototype.processorGrok = d({ url: { fmt: '/_ingest/processor/grok' } })),
  12959. (f.ingest.prototype.putPipeline = d({
  12960. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  12961. url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
  12962. needBody: !0,
  12963. method: 'PUT'
  12964. })),
  12965. (f.ingest.prototype.simulate = d({
  12966. params: { verbose: { type: 'boolean', default: !1 } },
  12967. urls: [
  12968. { fmt: '/_ingest/pipeline/<%=id%>/_simulate', req: { id: { type: 'string' } } },
  12969. { fmt: '/_ingest/pipeline/_simulate' }
  12970. ],
  12971. needBody: !0,
  12972. method: 'POST'
  12973. })),
  12974. (f.mget = d({
  12975. params: {
  12976. storedFields: { type: 'list', name: 'stored_fields' },
  12977. preference: { type: 'string' },
  12978. realtime: { type: 'boolean' },
  12979. refresh: { type: 'boolean' },
  12980. routing: { type: 'string' },
  12981. _source: { type: 'list' },
  12982. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  12983. _sourceIncludes: { type: 'list', name: '_source_includes' }
  12984. },
  12985. urls: [{ fmt: '/<%=index%>/_mget', req: { index: { type: 'string' } } }, { fmt: '/_mget' }],
  12986. needBody: !0,
  12987. method: 'POST'
  12988. })),
  12989. (f.msearch = d({
  12990. params: {
  12991. searchType: {
  12992. type: 'enum',
  12993. options: [
  12994. 'query_then_fetch',
  12995. 'query_and_fetch',
  12996. 'dfs_query_then_fetch',
  12997. 'dfs_query_and_fetch'
  12998. ],
  12999. name: 'search_type'
  13000. },
  13001. maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
  13002. typedKeys: { type: 'boolean', name: 'typed_keys' },
  13003. preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
  13004. maxConcurrentShardRequests: {
  13005. type: 'number',
  13006. default: 5,
  13007. name: 'max_concurrent_shard_requests'
  13008. },
  13009. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
  13010. ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
  13011. },
  13012. urls: [{ fmt: '/<%=index%>/_msearch', req: { index: { type: 'list' } } }, { fmt: '/_msearch' }],
  13013. needBody: !0,
  13014. bulkBody: !0,
  13015. method: 'POST'
  13016. })),
  13017. (f.msearchTemplate = d({
  13018. params: {
  13019. searchType: {
  13020. type: 'enum',
  13021. options: [
  13022. 'query_then_fetch',
  13023. 'query_and_fetch',
  13024. 'dfs_query_then_fetch',
  13025. 'dfs_query_and_fetch'
  13026. ],
  13027. name: 'search_type'
  13028. },
  13029. typedKeys: { type: 'boolean', name: 'typed_keys' },
  13030. maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
  13031. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
  13032. ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
  13033. },
  13034. urls: [
  13035. { fmt: '/<%=index%>/_msearch/template', req: { index: { type: 'list' } } },
  13036. { fmt: '/_msearch/template' }
  13037. ],
  13038. needBody: !0,
  13039. bulkBody: !0,
  13040. method: 'POST'
  13041. })),
  13042. (f.mtermvectors = d({
  13043. params: {
  13044. ids: { type: 'list', required: !1 },
  13045. termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
  13046. fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
  13047. fields: { type: 'list', required: !1 },
  13048. offsets: { type: 'boolean', default: !0, required: !1 },
  13049. positions: { type: 'boolean', default: !0, required: !1 },
  13050. payloads: { type: 'boolean', default: !0, required: !1 },
  13051. preference: { type: 'string', required: !1 },
  13052. routing: { type: 'string', required: !1 },
  13053. realtime: { type: 'boolean', required: !1 },
  13054. version: { type: 'number' },
  13055. versionType: {
  13056. type: 'enum',
  13057. options: ['internal', 'external', 'external_gte', 'force'],
  13058. name: 'version_type'
  13059. }
  13060. },
  13061. urls: [
  13062. { fmt: '/<%=index%>/_mtermvectors', req: { index: { type: 'string' } } },
  13063. { fmt: '/_mtermvectors' }
  13064. ],
  13065. method: 'POST'
  13066. })),
  13067. (f.nodes = e()),
  13068. (f.nodes.prototype.hotThreads = d({
  13069. params: {
  13070. interval: { type: 'time' },
  13071. snapshots: { type: 'number' },
  13072. threads: { type: 'number' },
  13073. ignoreIdleThreads: { type: 'boolean', name: 'ignore_idle_threads' },
  13074. type: { type: 'enum', options: ['cpu', 'wait', 'block'] },
  13075. timeout: { type: 'time' }
  13076. },
  13077. url: {}
  13078. })),
  13079. (f.nodes.prototype.info = d({
  13080. params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
  13081. urls: [
  13082. {
  13083. fmt: '/_nodes/<%=nodeId%>/<%=metric%>',
  13084. req: {
  13085. nodeId: { type: 'list' },
  13086. metric: {
  13087. type: 'list',
  13088. options: [
  13089. 'settings',
  13090. 'os',
  13091. 'process',
  13092. 'jvm',
  13093. 'thread_pool',
  13094. 'transport',
  13095. 'http',
  13096. 'plugins',
  13097. 'ingest'
  13098. ]
  13099. }
  13100. }
  13101. },
  13102. { fmt: '/_nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
  13103. {
  13104. fmt: '/_nodes/<%=metric%>',
  13105. req: {
  13106. metric: {
  13107. type: 'list',
  13108. options: [
  13109. 'settings',
  13110. 'os',
  13111. 'process',
  13112. 'jvm',
  13113. 'thread_pool',
  13114. 'transport',
  13115. 'http',
  13116. 'plugins',
  13117. 'ingest'
  13118. ]
  13119. }
  13120. }
  13121. },
  13122. { fmt: '/_nodes' }
  13123. ]
  13124. })),
  13125. (f.nodes.prototype.reloadSecureSettings = d({
  13126. params: { timeout: { type: 'time' } },
  13127. urls: [
  13128. { fmt: '/_nodes/<%=nodeId%>/reload_secure_settings', req: { nodeId: { type: 'list' } } },
  13129. { fmt: '/_nodes/reload_secure_settings' }
  13130. ],
  13131. method: 'POST'
  13132. })),
  13133. (f.nodes.prototype.stats = d({
  13134. params: {
  13135. completionFields: { type: 'list', name: 'completion_fields' },
  13136. fielddataFields: { type: 'list', name: 'fielddata_fields' },
  13137. fields: { type: 'list' },
  13138. groups: { type: 'boolean' },
  13139. level: { type: 'enum', default: 'node', options: ['indices', 'node', 'shards'] },
  13140. types: { type: 'list' },
  13141. timeout: { type: 'time' },
  13142. includeSegmentFileSizes: {
  13143. type: 'boolean',
  13144. default: !1,
  13145. name: 'include_segment_file_sizes'
  13146. }
  13147. },
  13148. urls: [
  13149. {
  13150. fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>',
  13151. req: {
  13152. nodeId: { type: 'list' },
  13153. metric: {
  13154. type: 'list',
  13155. options: [
  13156. '_all',
  13157. 'breaker',
  13158. 'fs',
  13159. 'http',
  13160. 'indices',
  13161. 'jvm',
  13162. 'os',
  13163. 'process',
  13164. 'thread_pool',
  13165. 'transport',
  13166. 'discovery'
  13167. ]
  13168. },
  13169. indexMetric: {
  13170. type: 'list',
  13171. options: [
  13172. '_all',
  13173. 'completion',
  13174. 'docs',
  13175. 'fielddata',
  13176. 'query_cache',
  13177. 'flush',
  13178. 'get',
  13179. 'indexing',
  13180. 'merge',
  13181. 'request_cache',
  13182. 'refresh',
  13183. 'search',
  13184. 'segments',
  13185. 'store',
  13186. 'warmer',
  13187. 'suggest'
  13188. ]
  13189. }
  13190. }
  13191. },
  13192. {
  13193. fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>',
  13194. req: {
  13195. nodeId: { type: 'list' },
  13196. metric: {
  13197. type: 'list',
  13198. options: [
  13199. '_all',
  13200. 'breaker',
  13201. 'fs',
  13202. 'http',
  13203. 'indices',
  13204. 'jvm',
  13205. 'os',
  13206. 'process',
  13207. 'thread_pool',
  13208. 'transport',
  13209. 'discovery'
  13210. ]
  13211. }
  13212. }
  13213. },
  13214. {
  13215. fmt: '/_nodes/stats/<%=metric%>/<%=indexMetric%>',
  13216. req: {
  13217. metric: {
  13218. type: 'list',
  13219. options: [
  13220. '_all',
  13221. 'breaker',
  13222. 'fs',
  13223. 'http',
  13224. 'indices',
  13225. 'jvm',
  13226. 'os',
  13227. 'process',
  13228. 'thread_pool',
  13229. 'transport',
  13230. 'discovery'
  13231. ]
  13232. },
  13233. indexMetric: {
  13234. type: 'list',
  13235. options: [
  13236. '_all',
  13237. 'completion',
  13238. 'docs',
  13239. 'fielddata',
  13240. 'query_cache',
  13241. 'flush',
  13242. 'get',
  13243. 'indexing',
  13244. 'merge',
  13245. 'request_cache',
  13246. 'refresh',
  13247. 'search',
  13248. 'segments',
  13249. 'store',
  13250. 'warmer',
  13251. 'suggest'
  13252. ]
  13253. }
  13254. }
  13255. },
  13256. { fmt: '/_nodes/<%=nodeId%>/stats', req: { nodeId: { type: 'list' } } },
  13257. {
  13258. fmt: '/_nodes/stats/<%=metric%>',
  13259. req: {
  13260. metric: {
  13261. type: 'list',
  13262. options: [
  13263. '_all',
  13264. 'breaker',
  13265. 'fs',
  13266. 'http',
  13267. 'indices',
  13268. 'jvm',
  13269. 'os',
  13270. 'process',
  13271. 'thread_pool',
  13272. 'transport',
  13273. 'discovery'
  13274. ]
  13275. }
  13276. }
  13277. },
  13278. { fmt: '/_nodes/stats' }
  13279. ]
  13280. })),
  13281. (f.nodes.prototype.usage = d({
  13282. params: { timeout: { type: 'time' } },
  13283. urls: [
  13284. {
  13285. fmt: '/_nodes/<%=nodeId%>/usage/<%=metric%>',
  13286. req: {
  13287. nodeId: { type: 'list' },
  13288. metric: { type: 'list', options: ['_all', 'rest_actions'] }
  13289. }
  13290. },
  13291. { fmt: '/_nodes/<%=nodeId%>/usage', req: { nodeId: { type: 'list' } } },
  13292. {
  13293. fmt: '/_nodes/usage/<%=metric%>',
  13294. req: { metric: { type: 'list', options: ['_all', 'rest_actions'] } }
  13295. },
  13296. { fmt: '/_nodes/usage' }
  13297. ]
  13298. })),
  13299. (f.ping = d({ url: { fmt: '/' }, method: 'HEAD' })),
  13300. (f.putScript = d({
  13301. params: {
  13302. timeout: { type: 'time' },
  13303. masterTimeout: { type: 'time', name: 'master_timeout' },
  13304. context: { type: 'string' }
  13305. },
  13306. urls: [
  13307. {
  13308. fmt: '/_scripts/<%=id%>/<%=context%>',
  13309. req: { id: { type: 'string' }, context: { type: 'string' } }
  13310. },
  13311. { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
  13312. ],
  13313. needBody: !0,
  13314. method: 'PUT'
  13315. })),
  13316. (f.rankEval = d({
  13317. params: {
  13318. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  13319. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  13320. expandWildcards: {
  13321. type: 'enum',
  13322. default: 'open',
  13323. options: ['open', 'closed', 'none', 'all'],
  13324. name: 'expand_wildcards'
  13325. }
  13326. },
  13327. urls: [
  13328. { fmt: '/<%=index%>/_rank_eval', req: { index: { type: 'list' } } },
  13329. { fmt: '/_rank_eval' }
  13330. ],
  13331. needBody: !0,
  13332. method: 'POST'
  13333. })),
  13334. (f.reindex = d({
  13335. params: {
  13336. refresh: { type: 'boolean' },
  13337. timeout: { type: 'time', default: '1m' },
  13338. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  13339. waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
  13340. requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
  13341. scroll: { type: 'time', default: '5m' },
  13342. slices: { type: 'number', default: 1 },
  13343. maxDocs: { type: 'number', name: 'max_docs' }
  13344. },
  13345. url: { fmt: '/_reindex' },
  13346. needBody: !0,
  13347. method: 'POST'
  13348. })),
  13349. (f.reindexRethrottle = d({
  13350. params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
  13351. url: { fmt: '/_reindex/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
  13352. method: 'POST'
  13353. })),
  13354. (f.renderSearchTemplate = d({
  13355. urls: [
  13356. { fmt: '/_render/template/<%=id%>', req: { id: { type: 'string' } } },
  13357. { fmt: '/_render/template' }
  13358. ],
  13359. method: 'POST'
  13360. })),
  13361. (f.scriptsPainlessExecute = d({ url: { fmt: '/_scripts/painless/_execute' }, method: 'POST' })),
  13362. (f.scroll = d({
  13363. params: {
  13364. scroll: { type: 'time' },
  13365. scrollId: { type: 'string', name: 'scroll_id' },
  13366. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
  13367. },
  13368. url: { fmt: '/_search/scroll' },
  13369. paramAsBody: { param: 'scrollId', body: 'scroll_id' },
  13370. method: 'POST'
  13371. })),
  13372. (f.search = d({
  13373. params: {
  13374. analyzer: { type: 'string' },
  13375. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  13376. ccsMinimizeRoundtrips: {
  13377. type: 'boolean',
  13378. default: 'true',
  13379. name: 'ccs_minimize_roundtrips'
  13380. },
  13381. defaultOperator: {
  13382. type: 'enum',
  13383. default: 'OR',
  13384. options: ['AND', 'OR'],
  13385. name: 'default_operator'
  13386. },
  13387. df: { type: 'string' },
  13388. explain: { type: 'boolean' },
  13389. storedFields: { type: 'list', name: 'stored_fields' },
  13390. docvalueFields: { type: 'list', name: 'docvalue_fields' },
  13391. from: { type: 'number' },
  13392. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  13393. ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
  13394. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  13395. expandWildcards: {
  13396. type: 'enum',
  13397. default: 'open',
  13398. options: ['open', 'closed', 'none', 'all'],
  13399. name: 'expand_wildcards'
  13400. },
  13401. lenient: { type: 'boolean' },
  13402. preference: { type: 'string' },
  13403. q: { type: 'string' },
  13404. routing: { type: 'list' },
  13405. scroll: { type: 'time' },
  13406. searchType: {
  13407. type: 'enum',
  13408. options: ['query_then_fetch', 'dfs_query_then_fetch'],
  13409. name: 'search_type'
  13410. },
  13411. size: { type: 'number' },
  13412. sort: { type: 'list' },
  13413. _source: { type: 'list' },
  13414. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  13415. _sourceIncludes: { type: 'list', name: '_source_includes' },
  13416. terminateAfter: { type: 'number', name: 'terminate_after' },
  13417. stats: { type: 'list' },
  13418. suggestField: { type: 'string', name: 'suggest_field' },
  13419. suggestMode: {
  13420. type: 'enum',
  13421. default: 'missing',
  13422. options: ['missing', 'popular', 'always'],
  13423. name: 'suggest_mode'
  13424. },
  13425. suggestSize: { type: 'number', name: 'suggest_size' },
  13426. suggestText: { type: 'string', name: 'suggest_text' },
  13427. timeout: { type: 'time' },
  13428. trackScores: { type: 'boolean', name: 'track_scores' },
  13429. trackTotalHits: { type: 'boolean', name: 'track_total_hits' },
  13430. allowPartialSearchResults: {
  13431. type: 'boolean',
  13432. default: !0,
  13433. name: 'allow_partial_search_results'
  13434. },
  13435. typedKeys: { type: 'boolean', name: 'typed_keys' },
  13436. version: { type: 'boolean' },
  13437. seqNoPrimaryTerm: { type: 'boolean', name: 'seq_no_primary_term' },
  13438. requestCache: { type: 'boolean', name: 'request_cache' },
  13439. batchedReduceSize: { type: 'number', default: 512, name: 'batched_reduce_size' },
  13440. maxConcurrentShardRequests: {
  13441. type: 'number',
  13442. default: 5,
  13443. name: 'max_concurrent_shard_requests'
  13444. },
  13445. preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
  13446. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
  13447. },
  13448. urls: [{ fmt: '/<%=index%>/_search', req: { index: { type: 'list' } } }, { fmt: '/_search' }],
  13449. method: 'POST'
  13450. })),
  13451. (f.searchShards = d({
  13452. params: {
  13453. preference: { type: 'string' },
  13454. routing: { type: 'string' },
  13455. local: { type: 'boolean' },
  13456. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  13457. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  13458. expandWildcards: {
  13459. type: 'enum',
  13460. default: 'open',
  13461. options: ['open', 'closed', 'none', 'all'],
  13462. name: 'expand_wildcards'
  13463. }
  13464. },
  13465. urls: [
  13466. { fmt: '/<%=index%>/_search_shards', req: { index: { type: 'list' } } },
  13467. { fmt: '/_search_shards' }
  13468. ],
  13469. method: 'POST'
  13470. })),
  13471. (f.searchTemplate = d({
  13472. params: {
  13473. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  13474. ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
  13475. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  13476. expandWildcards: {
  13477. type: 'enum',
  13478. default: 'open',
  13479. options: ['open', 'closed', 'none', 'all'],
  13480. name: 'expand_wildcards'
  13481. },
  13482. preference: { type: 'string' },
  13483. routing: { type: 'list' },
  13484. scroll: { type: 'time' },
  13485. searchType: {
  13486. type: 'enum',
  13487. options: [
  13488. 'query_then_fetch',
  13489. 'query_and_fetch',
  13490. 'dfs_query_then_fetch',
  13491. 'dfs_query_and_fetch'
  13492. ],
  13493. name: 'search_type'
  13494. },
  13495. explain: { type: 'boolean' },
  13496. profile: { type: 'boolean' },
  13497. typedKeys: { type: 'boolean', name: 'typed_keys' },
  13498. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
  13499. ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
  13500. },
  13501. urls: [
  13502. { fmt: '/<%=index%>/_search/template', req: { index: { type: 'list' } } },
  13503. { fmt: '/_search/template' }
  13504. ],
  13505. needBody: !0,
  13506. method: 'POST'
  13507. })),
  13508. (f.snapshot = e()),
  13509. (f.snapshot.prototype.create = d({
  13510. params: {
  13511. masterTimeout: { type: 'time', name: 'master_timeout' },
  13512. waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
  13513. },
  13514. url: {
  13515. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
  13516. req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
  13517. },
  13518. method: 'POST'
  13519. })),
  13520. (f.snapshot.prototype.createRepository = d({
  13521. params: {
  13522. masterTimeout: { type: 'time', name: 'master_timeout' },
  13523. timeout: { type: 'time' },
  13524. verify: { type: 'boolean' }
  13525. },
  13526. url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'string' } } },
  13527. needBody: !0,
  13528. method: 'POST'
  13529. })),
  13530. (f.snapshot.prototype.delete = d({
  13531. params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
  13532. url: {
  13533. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
  13534. req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
  13535. },
  13536. method: 'DELETE'
  13537. })),
  13538. (f.snapshot.prototype.deleteRepository = d({
  13539. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  13540. url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
  13541. method: 'DELETE'
  13542. })),
  13543. (f.snapshot.prototype.get = d({
  13544. params: {
  13545. masterTimeout: { type: 'time', name: 'master_timeout' },
  13546. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  13547. verbose: { type: 'boolean' }
  13548. },
  13549. url: {
  13550. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
  13551. req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
  13552. }
  13553. })),
  13554. (f.snapshot.prototype.getRepository = d({
  13555. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, local: { type: 'boolean' } },
  13556. urls: [
  13557. { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
  13558. { fmt: '/_snapshot' }
  13559. ]
  13560. })),
  13561. (f.snapshot.prototype.restore = d({
  13562. params: {
  13563. masterTimeout: { type: 'time', name: 'master_timeout' },
  13564. waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
  13565. },
  13566. url: {
  13567. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_restore',
  13568. req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
  13569. },
  13570. method: 'POST'
  13571. })),
  13572. (f.snapshot.prototype.status = d({
  13573. params: {
  13574. masterTimeout: { type: 'time', name: 'master_timeout' },
  13575. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' }
  13576. },
  13577. urls: [
  13578. {
  13579. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_status',
  13580. req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
  13581. },
  13582. { fmt: '/_snapshot/<%=repository%>/_status', req: { repository: { type: 'string' } } },
  13583. { fmt: '/_snapshot/_status' }
  13584. ]
  13585. })),
  13586. (f.snapshot.prototype.verifyRepository = d({
  13587. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  13588. url: { fmt: '/_snapshot/<%=repository%>/_verify', req: { repository: { type: 'string' } } },
  13589. method: 'POST'
  13590. })),
  13591. (f.tasks = e()),
  13592. (f.tasks.prototype.cancel = d({
  13593. params: {
  13594. nodes: { type: 'list' },
  13595. actions: { type: 'list' },
  13596. parentTaskId: { type: 'string', name: 'parent_task_id' }
  13597. },
  13598. urls: [
  13599. { fmt: '/_tasks/<%=taskId%>/_cancel', req: { taskId: { type: 'string' } } },
  13600. { fmt: '/_tasks/_cancel' }
  13601. ],
  13602. method: 'POST'
  13603. })),
  13604. (f.tasks.prototype.get = d({
  13605. params: {
  13606. waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
  13607. timeout: { type: 'time' }
  13608. },
  13609. url: { fmt: '/_tasks/<%=taskId%>', req: { taskId: { type: 'string' } } }
  13610. })),
  13611. (f.tasks.prototype.list = d({
  13612. params: {
  13613. nodes: { type: 'list' },
  13614. actions: { type: 'list' },
  13615. detailed: { type: 'boolean' },
  13616. parentTaskId: { type: 'string', name: 'parent_task_id' },
  13617. waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
  13618. groupBy: {
  13619. type: 'enum',
  13620. default: 'nodes',
  13621. options: ['nodes', 'parents', 'none'],
  13622. name: 'group_by'
  13623. },
  13624. timeout: { type: 'time' }
  13625. },
  13626. url: { fmt: '/_tasks' }
  13627. })),
  13628. (f.termvectors = d({
  13629. params: {
  13630. termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
  13631. fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
  13632. fields: { type: 'list', required: !1 },
  13633. offsets: { type: 'boolean', default: !0, required: !1 },
  13634. positions: { type: 'boolean', default: !0, required: !1 },
  13635. payloads: { type: 'boolean', default: !0, required: !1 },
  13636. preference: { type: 'string', required: !1 },
  13637. routing: { type: 'string', required: !1 },
  13638. realtime: { type: 'boolean', required: !1 },
  13639. version: { type: 'number' },
  13640. versionType: {
  13641. type: 'enum',
  13642. options: ['internal', 'external', 'external_gte', 'force'],
  13643. name: 'version_type'
  13644. }
  13645. },
  13646. urls: [
  13647. {
  13648. fmt: '/<%=index%>/_termvectors/<%=id%>',
  13649. req: { index: { type: 'string' }, id: { type: 'string' } }
  13650. },
  13651. { fmt: '/<%=index%>/_termvectors', req: { index: { type: 'string' } } }
  13652. ],
  13653. method: 'POST'
  13654. })),
  13655. (f.update = d({
  13656. params: {
  13657. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  13658. _source: { type: 'list' },
  13659. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  13660. _sourceIncludes: { type: 'list', name: '_source_includes' },
  13661. lang: { type: 'string' },
  13662. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  13663. retryOnConflict: { type: 'number', name: 'retry_on_conflict' },
  13664. routing: { type: 'string' },
  13665. timeout: { type: 'time' },
  13666. ifSeqNo: { type: 'number', name: 'if_seq_no' },
  13667. ifPrimaryTerm: { type: 'number', name: 'if_primary_term' }
  13668. },
  13669. url: {
  13670. fmt: '/<%=index%>/_update/<%=id%>',
  13671. req: { index: { type: 'string' }, id: { type: 'string' } }
  13672. },
  13673. needBody: !0,
  13674. method: 'POST'
  13675. })),
  13676. (f.updateByQuery = d({
  13677. params: {
  13678. analyzer: { type: 'string' },
  13679. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  13680. defaultOperator: {
  13681. type: 'enum',
  13682. default: 'OR',
  13683. options: ['AND', 'OR'],
  13684. name: 'default_operator'
  13685. },
  13686. df: { type: 'string' },
  13687. from: { type: 'number' },
  13688. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  13689. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  13690. conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
  13691. expandWildcards: {
  13692. type: 'enum',
  13693. default: 'open',
  13694. options: ['open', 'closed', 'none', 'all'],
  13695. name: 'expand_wildcards'
  13696. },
  13697. lenient: { type: 'boolean' },
  13698. pipeline: { type: 'string' },
  13699. preference: { type: 'string' },
  13700. q: { type: 'string' },
  13701. routing: { type: 'list' },
  13702. scroll: { type: 'time' },
  13703. searchType: {
  13704. type: 'enum',
  13705. options: ['query_then_fetch', 'dfs_query_then_fetch'],
  13706. name: 'search_type'
  13707. },
  13708. searchTimeout: { type: 'time', name: 'search_timeout' },
  13709. size: { type: 'number' },
  13710. maxDocs: { type: 'number', name: 'max_docs' },
  13711. sort: { type: 'list' },
  13712. _source: { type: 'list' },
  13713. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  13714. _sourceIncludes: { type: 'list', name: '_source_includes' },
  13715. terminateAfter: { type: 'number', name: 'terminate_after' },
  13716. stats: { type: 'list' },
  13717. version: { type: 'boolean' },
  13718. versionType: { type: 'boolean', name: 'version_type' },
  13719. requestCache: { type: 'boolean', name: 'request_cache' },
  13720. refresh: { type: 'boolean' },
  13721. timeout: { type: 'time', default: '1m' },
  13722. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  13723. scrollSize: { type: 'number', name: 'scroll_size' },
  13724. waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
  13725. requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
  13726. slices: { type: 'number', default: 1 }
  13727. },
  13728. url: { fmt: '/<%=index%>/_update_by_query', req: { index: { type: 'list' } } },
  13729. method: 'POST'
  13730. })),
  13731. (f.updateByQueryRethrottle = d({
  13732. params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
  13733. url: { fmt: '/_update_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
  13734. method: 'POST'
  13735. }));
  13736. },
  13737. function(a, b, c) {
  13738. var d = c(1).makeFactoryWithModifier(function(a) {
  13739. return c(0).merge(a, { params: { filterPath: { type: 'list', name: 'filter_path' } } });
  13740. }),
  13741. e = c(1).namespaceFactory,
  13742. f = (a.exports = {});
  13743. (f._namespaces = ['cat', 'cluster', 'indices', 'ingest', 'nodes', 'snapshot', 'tasks']),
  13744. (f.bulk = d({
  13745. params: {
  13746. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  13747. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  13748. routing: { type: 'string' },
  13749. timeout: { type: 'time' },
  13750. type: { type: 'string' },
  13751. _source: { type: 'list' },
  13752. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  13753. _sourceIncludes: { type: 'list', name: '_source_includes' },
  13754. pipeline: { type: 'string' }
  13755. },
  13756. urls: [
  13757. {
  13758. fmt: '/<%=index%>/<%=type%>/_bulk',
  13759. req: { index: { type: 'string' }, type: { type: 'string' } }
  13760. },
  13761. { fmt: '/<%=index%>/_bulk', req: { index: { type: 'string' } } },
  13762. { fmt: '/_bulk' }
  13763. ],
  13764. needBody: !0,
  13765. bulkBody: !0,
  13766. method: 'POST'
  13767. })),
  13768. (f.cat = e()),
  13769. (f.cat.prototype.aliases = d({
  13770. params: {
  13771. format: { type: 'string' },
  13772. local: { type: 'boolean' },
  13773. masterTimeout: { type: 'time', name: 'master_timeout' },
  13774. h: { type: 'list' },
  13775. help: { type: 'boolean', default: !1 },
  13776. s: { type: 'list' },
  13777. v: { type: 'boolean', default: !1 }
  13778. },
  13779. urls: [
  13780. { fmt: '/_cat/aliases/<%=name%>', req: { name: { type: 'list' } } },
  13781. { fmt: '/_cat/aliases' }
  13782. ]
  13783. })),
  13784. (f.cat.prototype.allocation = d({
  13785. params: {
  13786. format: { type: 'string' },
  13787. bytes: {
  13788. type: 'enum',
  13789. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  13790. },
  13791. local: { type: 'boolean' },
  13792. masterTimeout: { type: 'time', name: 'master_timeout' },
  13793. h: { type: 'list' },
  13794. help: { type: 'boolean', default: !1 },
  13795. s: { type: 'list' },
  13796. v: { type: 'boolean', default: !1 }
  13797. },
  13798. urls: [
  13799. { fmt: '/_cat/allocation/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
  13800. { fmt: '/_cat/allocation' }
  13801. ]
  13802. })),
  13803. (f.cat.prototype.count = d({
  13804. params: {
  13805. format: { type: 'string' },
  13806. local: { type: 'boolean' },
  13807. masterTimeout: { type: 'time', name: 'master_timeout' },
  13808. h: { type: 'list' },
  13809. help: { type: 'boolean', default: !1 },
  13810. s: { type: 'list' },
  13811. v: { type: 'boolean', default: !1 }
  13812. },
  13813. urls: [
  13814. { fmt: '/_cat/count/<%=index%>', req: { index: { type: 'list' } } },
  13815. { fmt: '/_cat/count' }
  13816. ]
  13817. })),
  13818. (f.cat.prototype.fielddata = d({
  13819. params: {
  13820. format: { type: 'string' },
  13821. bytes: {
  13822. type: 'enum',
  13823. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  13824. },
  13825. local: { type: 'boolean' },
  13826. masterTimeout: { type: 'time', name: 'master_timeout' },
  13827. h: { type: 'list' },
  13828. help: { type: 'boolean', default: !1 },
  13829. s: { type: 'list' },
  13830. v: { type: 'boolean', default: !1 },
  13831. fields: { type: 'list' }
  13832. },
  13833. urls: [
  13834. { fmt: '/_cat/fielddata/<%=fields%>', req: { fields: { type: 'list' } } },
  13835. { fmt: '/_cat/fielddata' }
  13836. ]
  13837. })),
  13838. (f.cat.prototype.health = d({
  13839. params: {
  13840. format: { type: 'string' },
  13841. local: { type: 'boolean' },
  13842. masterTimeout: { type: 'time', name: 'master_timeout' },
  13843. h: { type: 'list' },
  13844. help: { type: 'boolean', default: !1 },
  13845. s: { type: 'list' },
  13846. ts: { type: 'boolean', default: !0 },
  13847. v: { type: 'boolean', default: !1 }
  13848. },
  13849. url: { fmt: '/_cat/health' }
  13850. })),
  13851. (f.cat.prototype.help = d({
  13852. params: { help: { type: 'boolean', default: !1 }, s: { type: 'list' } },
  13853. url: { fmt: '/_cat' }
  13854. })),
  13855. (f.cat.prototype.indices = d({
  13856. params: {
  13857. format: { type: 'string' },
  13858. bytes: { type: 'enum', options: ['b', 'k', 'm', 'g'] },
  13859. local: { type: 'boolean' },
  13860. masterTimeout: { type: 'time', name: 'master_timeout' },
  13861. h: { type: 'list' },
  13862. health: { type: 'enum', default: null, options: ['green', 'yellow', 'red'] },
  13863. help: { type: 'boolean', default: !1 },
  13864. pri: { type: 'boolean', default: !1 },
  13865. s: { type: 'list' },
  13866. v: { type: 'boolean', default: !1 },
  13867. includeUnloadedSegments: { type: 'boolean', default: !1, name: 'include_unloaded_segments' }
  13868. },
  13869. urls: [
  13870. { fmt: '/_cat/indices/<%=index%>', req: { index: { type: 'list' } } },
  13871. { fmt: '/_cat/indices' }
  13872. ]
  13873. })),
  13874. (f.cat.prototype.master = d({
  13875. params: {
  13876. format: { type: 'string' },
  13877. local: { type: 'boolean' },
  13878. masterTimeout: { type: 'time', name: 'master_timeout' },
  13879. h: { type: 'list' },
  13880. help: { type: 'boolean', default: !1 },
  13881. s: { type: 'list' },
  13882. v: { type: 'boolean', default: !1 }
  13883. },
  13884. url: { fmt: '/_cat/master' }
  13885. })),
  13886. (f.cat.prototype.nodeattrs = d({
  13887. params: {
  13888. format: { type: 'string' },
  13889. local: { type: 'boolean' },
  13890. masterTimeout: { type: 'time', name: 'master_timeout' },
  13891. h: { type: 'list' },
  13892. help: { type: 'boolean', default: !1 },
  13893. s: { type: 'list' },
  13894. v: { type: 'boolean', default: !1 }
  13895. },
  13896. url: { fmt: '/_cat/nodeattrs' }
  13897. })),
  13898. (f.cat.prototype.nodes = d({
  13899. params: {
  13900. format: { type: 'string' },
  13901. fullId: { type: 'boolean', name: 'full_id' },
  13902. local: { type: 'boolean' },
  13903. masterTimeout: { type: 'time', name: 'master_timeout' },
  13904. h: { type: 'list' },
  13905. help: { type: 'boolean', default: !1 },
  13906. s: { type: 'list' },
  13907. v: { type: 'boolean', default: !1 }
  13908. },
  13909. url: { fmt: '/_cat/nodes' }
  13910. })),
  13911. (f.cat.prototype.pendingTasks = d({
  13912. params: {
  13913. format: { type: 'string' },
  13914. local: { type: 'boolean' },
  13915. masterTimeout: { type: 'time', name: 'master_timeout' },
  13916. h: { type: 'list' },
  13917. help: { type: 'boolean', default: !1 },
  13918. s: { type: 'list' },
  13919. v: { type: 'boolean', default: !1 }
  13920. },
  13921. url: { fmt: '/_cat/pending_tasks' }
  13922. })),
  13923. (f.cat.prototype.plugins = d({
  13924. params: {
  13925. format: { type: 'string' },
  13926. local: { type: 'boolean' },
  13927. masterTimeout: { type: 'time', name: 'master_timeout' },
  13928. h: { type: 'list' },
  13929. help: { type: 'boolean', default: !1 },
  13930. s: { type: 'list' },
  13931. v: { type: 'boolean', default: !1 }
  13932. },
  13933. url: { fmt: '/_cat/plugins' }
  13934. })),
  13935. (f.cat.prototype.recovery = d({
  13936. params: {
  13937. format: { type: 'string' },
  13938. bytes: {
  13939. type: 'enum',
  13940. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  13941. },
  13942. masterTimeout: { type: 'time', name: 'master_timeout' },
  13943. h: { type: 'list' },
  13944. help: { type: 'boolean', default: !1 },
  13945. s: { type: 'list' },
  13946. v: { type: 'boolean', default: !1 }
  13947. },
  13948. urls: [
  13949. { fmt: '/_cat/recovery/<%=index%>', req: { index: { type: 'list' } } },
  13950. { fmt: '/_cat/recovery' }
  13951. ]
  13952. })),
  13953. (f.cat.prototype.repositories = d({
  13954. params: {
  13955. format: { type: 'string' },
  13956. local: { type: 'boolean', default: !1 },
  13957. masterTimeout: { type: 'time', name: 'master_timeout' },
  13958. h: { type: 'list' },
  13959. help: { type: 'boolean', default: !1 },
  13960. s: { type: 'list' },
  13961. v: { type: 'boolean', default: !1 }
  13962. },
  13963. url: { fmt: '/_cat/repositories' }
  13964. })),
  13965. (f.cat.prototype.segments = d({
  13966. params: {
  13967. format: { type: 'string' },
  13968. bytes: {
  13969. type: 'enum',
  13970. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  13971. },
  13972. h: { type: 'list' },
  13973. help: { type: 'boolean', default: !1 },
  13974. s: { type: 'list' },
  13975. v: { type: 'boolean', default: !1 }
  13976. },
  13977. urls: [
  13978. { fmt: '/_cat/segments/<%=index%>', req: { index: { type: 'list' } } },
  13979. { fmt: '/_cat/segments' }
  13980. ]
  13981. })),
  13982. (f.cat.prototype.shards = d({
  13983. params: {
  13984. format: { type: 'string' },
  13985. bytes: {
  13986. type: 'enum',
  13987. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  13988. },
  13989. local: { type: 'boolean' },
  13990. masterTimeout: { type: 'time', name: 'master_timeout' },
  13991. h: { type: 'list' },
  13992. help: { type: 'boolean', default: !1 },
  13993. s: { type: 'list' },
  13994. v: { type: 'boolean', default: !1 }
  13995. },
  13996. urls: [
  13997. { fmt: '/_cat/shards/<%=index%>', req: { index: { type: 'list' } } },
  13998. { fmt: '/_cat/shards' }
  13999. ]
  14000. })),
  14001. (f.cat.prototype.snapshots = d({
  14002. params: {
  14003. format: { type: 'string' },
  14004. ignoreUnavailable: { type: 'boolean', default: !1, name: 'ignore_unavailable' },
  14005. masterTimeout: { type: 'time', name: 'master_timeout' },
  14006. h: { type: 'list' },
  14007. help: { type: 'boolean', default: !1 },
  14008. s: { type: 'list' },
  14009. v: { type: 'boolean', default: !1 }
  14010. },
  14011. urls: [
  14012. { fmt: '/_cat/snapshots/<%=repository%>', req: { repository: { type: 'list' } } },
  14013. { fmt: '/_cat/snapshots' }
  14014. ]
  14015. })),
  14016. (f.cat.prototype.tasks = d({
  14017. params: {
  14018. format: { type: 'string' },
  14019. nodeId: { type: 'list', name: 'node_id' },
  14020. actions: { type: 'list' },
  14021. detailed: { type: 'boolean' },
  14022. parentTask: { type: 'number', name: 'parent_task' },
  14023. h: { type: 'list' },
  14024. help: { type: 'boolean', default: !1 },
  14025. s: { type: 'list' },
  14026. v: { type: 'boolean', default: !1 }
  14027. },
  14028. url: { fmt: '/_cat/tasks' }
  14029. })),
  14030. (f.cat.prototype.templates = d({
  14031. params: {
  14032. format: { type: 'string' },
  14033. local: { type: 'boolean' },
  14034. masterTimeout: { type: 'time', name: 'master_timeout' },
  14035. h: { type: 'list' },
  14036. help: { type: 'boolean', default: !1 },
  14037. s: { type: 'list' },
  14038. v: { type: 'boolean', default: !1 }
  14039. },
  14040. urls: [
  14041. { fmt: '/_cat/templates/<%=name%>', req: { name: { type: 'string' } } },
  14042. { fmt: '/_cat/templates' }
  14043. ]
  14044. })),
  14045. (f.cat.prototype.threadPool = d({
  14046. params: {
  14047. format: { type: 'string' },
  14048. size: { type: 'enum', options: ['', 'k', 'm', 'g', 't', 'p'] },
  14049. local: { type: 'boolean' },
  14050. masterTimeout: { type: 'time', name: 'master_timeout' },
  14051. h: { type: 'list' },
  14052. help: { type: 'boolean', default: !1 },
  14053. s: { type: 'list' },
  14054. v: { type: 'boolean', default: !1 }
  14055. },
  14056. urls: [
  14057. {
  14058. fmt: '/_cat/thread_pool/<%=threadPoolPatterns%>',
  14059. req: { threadPoolPatterns: { type: 'list' } }
  14060. },
  14061. { fmt: '/_cat/thread_pool' }
  14062. ]
  14063. })),
  14064. (f.clearScroll = d({
  14065. url: { fmt: '/_search/scroll' },
  14066. paramAsBody: { param: 'scrollId', body: 'scroll_id' },
  14067. method: 'DELETE'
  14068. })),
  14069. (f.cluster = e()),
  14070. (f.cluster.prototype.allocationExplain = d({
  14071. params: {
  14072. includeYesDecisions: { type: 'boolean', name: 'include_yes_decisions' },
  14073. includeDiskInfo: { type: 'boolean', name: 'include_disk_info' }
  14074. },
  14075. url: { fmt: '/_cluster/allocation/explain' },
  14076. method: 'POST'
  14077. })),
  14078. (f.cluster.prototype.getSettings = d({
  14079. params: {
  14080. flatSettings: { type: 'boolean', name: 'flat_settings' },
  14081. masterTimeout: { type: 'time', name: 'master_timeout' },
  14082. timeout: { type: 'time' },
  14083. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
  14084. },
  14085. url: { fmt: '/_cluster/settings' }
  14086. })),
  14087. (f.cluster.prototype.health = d({
  14088. params: {
  14089. expandWildcards: {
  14090. type: 'enum',
  14091. default: 'all',
  14092. options: ['open', 'closed', 'none', 'all'],
  14093. name: 'expand_wildcards'
  14094. },
  14095. level: { type: 'enum', default: 'cluster', options: ['cluster', 'indices', 'shards'] },
  14096. local: { type: 'boolean' },
  14097. masterTimeout: { type: 'time', name: 'master_timeout' },
  14098. timeout: { type: 'time' },
  14099. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  14100. waitForNodes: { type: 'string', name: 'wait_for_nodes' },
  14101. waitForEvents: {
  14102. type: 'enum',
  14103. options: ['immediate', 'urgent', 'high', 'normal', 'low', 'languid'],
  14104. name: 'wait_for_events'
  14105. },
  14106. waitForNoRelocatingShards: { type: 'boolean', name: 'wait_for_no_relocating_shards' },
  14107. waitForNoInitializingShards: { type: 'boolean', name: 'wait_for_no_initializing_shards' },
  14108. waitForStatus: {
  14109. type: 'enum',
  14110. default: null,
  14111. options: ['green', 'yellow', 'red'],
  14112. name: 'wait_for_status'
  14113. }
  14114. },
  14115. urls: [
  14116. { fmt: '/_cluster/health/<%=index%>', req: { index: { type: 'list' } } },
  14117. { fmt: '/_cluster/health' }
  14118. ]
  14119. })),
  14120. (f.cluster.prototype.pendingTasks = d({
  14121. params: { local: { type: 'boolean' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  14122. url: { fmt: '/_cluster/pending_tasks' }
  14123. })),
  14124. (f.cluster.prototype.putSettings = d({
  14125. params: {
  14126. flatSettings: { type: 'boolean', name: 'flat_settings' },
  14127. masterTimeout: { type: 'time', name: 'master_timeout' },
  14128. timeout: { type: 'time' }
  14129. },
  14130. url: { fmt: '/_cluster/settings' },
  14131. needBody: !0,
  14132. method: 'PUT'
  14133. })),
  14134. (f.cluster.prototype.remoteInfo = d({ url: { fmt: '/_remote/info' } })),
  14135. (f.cluster.prototype.reroute = d({
  14136. params: {
  14137. dryRun: { type: 'boolean', name: 'dry_run' },
  14138. explain: { type: 'boolean' },
  14139. retryFailed: { type: 'boolean', name: 'retry_failed' },
  14140. metric: {
  14141. type: 'list',
  14142. options: [
  14143. '_all',
  14144. 'blocks',
  14145. 'metadata',
  14146. 'nodes',
  14147. 'routing_table',
  14148. 'master_node',
  14149. 'version'
  14150. ]
  14151. },
  14152. masterTimeout: { type: 'time', name: 'master_timeout' },
  14153. timeout: { type: 'time' }
  14154. },
  14155. url: { fmt: '/_cluster/reroute' },
  14156. method: 'POST'
  14157. })),
  14158. (f.cluster.prototype.state = d({
  14159. params: {
  14160. local: { type: 'boolean' },
  14161. masterTimeout: { type: 'time', name: 'master_timeout' },
  14162. flatSettings: { type: 'boolean', name: 'flat_settings' },
  14163. waitForMetadataVersion: { type: 'number', name: 'wait_for_metadata_version' },
  14164. waitForTimeout: { type: 'time', name: 'wait_for_timeout' },
  14165. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  14166. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  14167. expandWildcards: {
  14168. type: 'enum',
  14169. default: 'open',
  14170. options: ['open', 'closed', 'none', 'all'],
  14171. name: 'expand_wildcards'
  14172. }
  14173. },
  14174. urls: [
  14175. {
  14176. fmt: '/_cluster/state/<%=metric%>/<%=index%>',
  14177. req: {
  14178. metric: {
  14179. type: 'list',
  14180. options: [
  14181. '_all',
  14182. 'blocks',
  14183. 'metadata',
  14184. 'nodes',
  14185. 'routing_table',
  14186. 'routing_nodes',
  14187. 'master_node',
  14188. 'version'
  14189. ]
  14190. },
  14191. index: { type: 'list' }
  14192. }
  14193. },
  14194. {
  14195. fmt: '/_cluster/state/<%=metric%>',
  14196. req: {
  14197. metric: {
  14198. type: 'list',
  14199. options: [
  14200. '_all',
  14201. 'blocks',
  14202. 'metadata',
  14203. 'nodes',
  14204. 'routing_table',
  14205. 'routing_nodes',
  14206. 'master_node',
  14207. 'version'
  14208. ]
  14209. }
  14210. }
  14211. },
  14212. { fmt: '/_cluster/state' }
  14213. ]
  14214. })),
  14215. (f.cluster.prototype.stats = d({
  14216. params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
  14217. urls: [
  14218. { fmt: '/_cluster/stats/nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
  14219. { fmt: '/_cluster/stats' }
  14220. ]
  14221. })),
  14222. (f.count = d({
  14223. params: {
  14224. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  14225. ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
  14226. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  14227. expandWildcards: {
  14228. type: 'enum',
  14229. default: 'open',
  14230. options: ['open', 'closed', 'none', 'all'],
  14231. name: 'expand_wildcards'
  14232. },
  14233. minScore: { type: 'number', name: 'min_score' },
  14234. preference: { type: 'string' },
  14235. routing: { type: 'list' },
  14236. q: { type: 'string' },
  14237. analyzer: { type: 'string' },
  14238. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  14239. defaultOperator: {
  14240. type: 'enum',
  14241. default: 'OR',
  14242. options: ['AND', 'OR'],
  14243. name: 'default_operator'
  14244. },
  14245. df: { type: 'string' },
  14246. lenient: { type: 'boolean' },
  14247. terminateAfter: { type: 'number', name: 'terminate_after' }
  14248. },
  14249. urls: [{ fmt: '/<%=index%>/_count', req: { index: { type: 'list' } } }, { fmt: '/_count' }],
  14250. method: 'POST'
  14251. })),
  14252. (f.create = d({
  14253. params: {
  14254. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  14255. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  14256. routing: { type: 'string' },
  14257. timeout: { type: 'time' },
  14258. version: { type: 'number' },
  14259. versionType: {
  14260. type: 'enum',
  14261. options: ['internal', 'external', 'external_gte', 'force'],
  14262. name: 'version_type'
  14263. },
  14264. pipeline: { type: 'string' }
  14265. },
  14266. url: {
  14267. fmt: '/<%=index%>/_create/<%=id%>',
  14268. req: { index: { type: 'string' }, id: { type: 'string' } }
  14269. },
  14270. needBody: !0,
  14271. method: 'POST'
  14272. })),
  14273. (f.delete = d({
  14274. params: {
  14275. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  14276. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  14277. routing: { type: 'string' },
  14278. timeout: { type: 'time' },
  14279. ifSeqNo: { type: 'number', name: 'if_seq_no' },
  14280. ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
  14281. version: { type: 'number' },
  14282. versionType: {
  14283. type: 'enum',
  14284. options: ['internal', 'external', 'external_gte', 'force'],
  14285. name: 'version_type'
  14286. }
  14287. },
  14288. url: {
  14289. fmt: '/<%=index%>/_doc/<%=id%>',
  14290. req: { index: { type: 'string' }, id: { type: 'string' } }
  14291. },
  14292. method: 'DELETE'
  14293. })),
  14294. (f.deleteByQuery = d({
  14295. params: {
  14296. analyzer: { type: 'string' },
  14297. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  14298. defaultOperator: {
  14299. type: 'enum',
  14300. default: 'OR',
  14301. options: ['AND', 'OR'],
  14302. name: 'default_operator'
  14303. },
  14304. df: { type: 'string' },
  14305. from: { type: 'number' },
  14306. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  14307. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  14308. conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
  14309. expandWildcards: {
  14310. type: 'enum',
  14311. default: 'open',
  14312. options: ['open', 'closed', 'none', 'all'],
  14313. name: 'expand_wildcards'
  14314. },
  14315. lenient: { type: 'boolean' },
  14316. preference: { type: 'string' },
  14317. q: { type: 'string' },
  14318. routing: { type: 'list' },
  14319. scroll: { type: 'time' },
  14320. searchType: {
  14321. type: 'enum',
  14322. options: ['query_then_fetch', 'dfs_query_then_fetch'],
  14323. name: 'search_type'
  14324. },
  14325. searchTimeout: { type: 'time', name: 'search_timeout' },
  14326. size: { type: 'number' },
  14327. maxDocs: { type: 'number', name: 'max_docs' },
  14328. sort: { type: 'list' },
  14329. _source: { type: 'list' },
  14330. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  14331. _sourceIncludes: { type: 'list', name: '_source_includes' },
  14332. terminateAfter: { type: 'number', name: 'terminate_after' },
  14333. stats: { type: 'list' },
  14334. version: { type: 'boolean' },
  14335. requestCache: { type: 'boolean', name: 'request_cache' },
  14336. refresh: { type: 'boolean' },
  14337. timeout: { type: 'time', default: '1m' },
  14338. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  14339. scrollSize: { type: 'number', name: 'scroll_size' },
  14340. waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
  14341. requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
  14342. slices: { type: 'number', default: 1 }
  14343. },
  14344. url: { fmt: '/<%=index%>/_delete_by_query', req: { index: { type: 'list' } } },
  14345. needBody: !0,
  14346. method: 'POST'
  14347. })),
  14348. (f.deleteByQueryRethrottle = d({
  14349. params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
  14350. url: { fmt: '/_delete_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
  14351. method: 'POST'
  14352. })),
  14353. (f.deleteScript = d({
  14354. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  14355. url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } },
  14356. method: 'DELETE'
  14357. })),
  14358. (f.exists = d({
  14359. params: {
  14360. storedFields: { type: 'list', name: 'stored_fields' },
  14361. preference: { type: 'string' },
  14362. realtime: { type: 'boolean' },
  14363. refresh: { type: 'boolean' },
  14364. routing: { type: 'string' },
  14365. _source: { type: 'list' },
  14366. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  14367. _sourceIncludes: { type: 'list', name: '_source_includes' },
  14368. version: { type: 'number' },
  14369. versionType: {
  14370. type: 'enum',
  14371. options: ['internal', 'external', 'external_gte', 'force'],
  14372. name: 'version_type'
  14373. }
  14374. },
  14375. url: {
  14376. fmt: '/<%=index%>/_doc/<%=id%>',
  14377. req: { index: { type: 'string' }, id: { type: 'string' } }
  14378. },
  14379. method: 'HEAD'
  14380. })),
  14381. (f.existsSource = d({
  14382. params: {
  14383. preference: { type: 'string' },
  14384. realtime: { type: 'boolean' },
  14385. refresh: { type: 'boolean' },
  14386. routing: { type: 'string' },
  14387. _source: { type: 'list' },
  14388. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  14389. _sourceIncludes: { type: 'list', name: '_source_includes' },
  14390. version: { type: 'number' },
  14391. versionType: {
  14392. type: 'enum',
  14393. options: ['internal', 'external', 'external_gte', 'force'],
  14394. name: 'version_type'
  14395. }
  14396. },
  14397. url: {
  14398. fmt: '/<%=index%>/_source/<%=id%>',
  14399. req: { index: { type: 'string' }, id: { type: 'string' } }
  14400. },
  14401. method: 'HEAD'
  14402. })),
  14403. (f.explain = d({
  14404. params: {
  14405. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  14406. analyzer: { type: 'string' },
  14407. defaultOperator: {
  14408. type: 'enum',
  14409. default: 'OR',
  14410. options: ['AND', 'OR'],
  14411. name: 'default_operator'
  14412. },
  14413. df: { type: 'string' },
  14414. storedFields: { type: 'list', name: 'stored_fields' },
  14415. lenient: { type: 'boolean' },
  14416. preference: { type: 'string' },
  14417. q: { type: 'string' },
  14418. routing: { type: 'string' },
  14419. _source: { type: 'list' },
  14420. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  14421. _sourceIncludes: { type: 'list', name: '_source_includes' }
  14422. },
  14423. url: {
  14424. fmt: '/<%=index%>/_explain/<%=id%>',
  14425. req: { index: { type: 'string' }, id: { type: 'string' } }
  14426. },
  14427. method: 'POST'
  14428. })),
  14429. (f.fieldCaps = d({
  14430. params: {
  14431. fields: { type: 'list' },
  14432. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  14433. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  14434. expandWildcards: {
  14435. type: 'enum',
  14436. default: 'open',
  14437. options: ['open', 'closed', 'none', 'all'],
  14438. name: 'expand_wildcards'
  14439. },
  14440. includeUnmapped: { type: 'boolean', default: !1, name: 'include_unmapped' }
  14441. },
  14442. urls: [
  14443. { fmt: '/<%=index%>/_field_caps', req: { index: { type: 'list' } } },
  14444. { fmt: '/_field_caps' }
  14445. ],
  14446. method: 'POST'
  14447. })),
  14448. (f.get = d({
  14449. params: {
  14450. storedFields: { type: 'list', name: 'stored_fields' },
  14451. preference: { type: 'string' },
  14452. realtime: { type: 'boolean' },
  14453. refresh: { type: 'boolean' },
  14454. routing: { type: 'string' },
  14455. _source: { type: 'list' },
  14456. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  14457. _sourceIncludes: { type: 'list', name: '_source_includes' },
  14458. version: { type: 'number' },
  14459. versionType: {
  14460. type: 'enum',
  14461. options: ['internal', 'external', 'external_gte', 'force'],
  14462. name: 'version_type'
  14463. }
  14464. },
  14465. url: {
  14466. fmt: '/<%=index%>/_doc/<%=id%>',
  14467. req: { index: { type: 'string' }, id: { type: 'string' } }
  14468. }
  14469. })),
  14470. (f.getScript = d({
  14471. params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
  14472. url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
  14473. })),
  14474. (f.getSource = d({
  14475. params: {
  14476. preference: { type: 'string' },
  14477. realtime: { type: 'boolean' },
  14478. refresh: { type: 'boolean' },
  14479. routing: { type: 'string' },
  14480. _source: { type: 'list' },
  14481. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  14482. _sourceIncludes: { type: 'list', name: '_source_includes' },
  14483. version: { type: 'number' },
  14484. versionType: {
  14485. type: 'enum',
  14486. options: ['internal', 'external', 'external_gte', 'force'],
  14487. name: 'version_type'
  14488. }
  14489. },
  14490. url: {
  14491. fmt: '/<%=index%>/_source/<%=id%>',
  14492. req: { index: { type: 'string' }, id: { type: 'string' } }
  14493. }
  14494. })),
  14495. (f.index = d({
  14496. params: {
  14497. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  14498. opType: { type: 'enum', default: 'index', options: ['index', 'create'], name: 'op_type' },
  14499. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  14500. routing: { type: 'string' },
  14501. timeout: { type: 'time' },
  14502. version: { type: 'number' },
  14503. versionType: {
  14504. type: 'enum',
  14505. options: ['internal', 'external', 'external_gte', 'force'],
  14506. name: 'version_type'
  14507. },
  14508. ifSeqNo: { type: 'number', name: 'if_seq_no' },
  14509. ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
  14510. pipeline: { type: 'string' }
  14511. },
  14512. urls: [
  14513. {
  14514. fmt: '/<%=index%>/_doc/<%=id%>',
  14515. req: { index: { type: 'string' }, id: { type: 'string' } }
  14516. },
  14517. { fmt: '/<%=index%>/_doc', req: { index: { type: 'string' } } }
  14518. ],
  14519. needBody: !0,
  14520. method: 'POST'
  14521. })),
  14522. (f.indices = e()),
  14523. (f.indices.prototype.analyze = d({
  14524. params: { index: { type: 'string' } },
  14525. urls: [
  14526. { fmt: '/<%=index%>/_analyze', req: { index: { type: 'string' } } },
  14527. { fmt: '/_analyze' }
  14528. ],
  14529. method: 'POST'
  14530. })),
  14531. (f.indices.prototype.clearCache = d({
  14532. params: {
  14533. fielddata: { type: 'boolean' },
  14534. fields: { type: 'list' },
  14535. query: { type: 'boolean' },
  14536. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  14537. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  14538. expandWildcards: {
  14539. type: 'enum',
  14540. default: 'open',
  14541. options: ['open', 'closed', 'none', 'all'],
  14542. name: 'expand_wildcards'
  14543. },
  14544. index: { type: 'list' },
  14545. request: { type: 'boolean' }
  14546. },
  14547. urls: [
  14548. { fmt: '/<%=index%>/_cache/clear', req: { index: { type: 'list' } } },
  14549. { fmt: '/_cache/clear' }
  14550. ],
  14551. method: 'POST'
  14552. })),
  14553. (f.indices.prototype.clone = d({
  14554. params: {
  14555. timeout: { type: 'time' },
  14556. masterTimeout: { type: 'time', name: 'master_timeout' },
  14557. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  14558. },
  14559. url: {
  14560. fmt: '/<%=index%>/_clone/<%=target%>',
  14561. req: { index: { type: 'string' }, target: { type: 'string' } }
  14562. },
  14563. method: 'POST'
  14564. })),
  14565. (f.indices.prototype.close = d({
  14566. params: {
  14567. timeout: { type: 'time' },
  14568. masterTimeout: { type: 'time', name: 'master_timeout' },
  14569. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  14570. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  14571. expandWildcards: {
  14572. type: 'enum',
  14573. default: 'open',
  14574. options: ['open', 'closed', 'none', 'all'],
  14575. name: 'expand_wildcards'
  14576. },
  14577. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  14578. },
  14579. url: { fmt: '/<%=index%>/_close', req: { index: { type: 'list' } } },
  14580. method: 'POST'
  14581. })),
  14582. (f.indices.prototype.create = d({
  14583. params: {
  14584. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  14585. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  14586. timeout: { type: 'time' },
  14587. masterTimeout: { type: 'time', name: 'master_timeout' }
  14588. },
  14589. url: { fmt: '/<%=index%>', req: { index: { type: 'string' } } },
  14590. method: 'PUT'
  14591. })),
  14592. (f.indices.prototype.delete = d({
  14593. params: {
  14594. timeout: { type: 'time' },
  14595. masterTimeout: { type: 'time', name: 'master_timeout' },
  14596. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  14597. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  14598. expandWildcards: {
  14599. type: 'enum',
  14600. default: 'open',
  14601. options: ['open', 'closed', 'none', 'all'],
  14602. name: 'expand_wildcards'
  14603. }
  14604. },
  14605. url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
  14606. method: 'DELETE'
  14607. })),
  14608. (f.indices.prototype.deleteAlias = d({
  14609. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  14610. url: {
  14611. fmt: '/<%=index%>/_alias/<%=name%>',
  14612. req: { index: { type: 'list' }, name: { type: 'list' } }
  14613. },
  14614. method: 'DELETE'
  14615. })),
  14616. (f.indices.prototype.deleteTemplate = d({
  14617. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  14618. url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
  14619. method: 'DELETE'
  14620. })),
  14621. (f.indices.prototype.exists = d({
  14622. params: {
  14623. local: { type: 'boolean' },
  14624. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  14625. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  14626. expandWildcards: {
  14627. type: 'enum',
  14628. default: 'open',
  14629. options: ['open', 'closed', 'none', 'all'],
  14630. name: 'expand_wildcards'
  14631. },
  14632. flatSettings: { type: 'boolean', name: 'flat_settings' },
  14633. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
  14634. },
  14635. url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
  14636. method: 'HEAD'
  14637. })),
  14638. (f.indices.prototype.existsAlias = d({
  14639. params: {
  14640. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  14641. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  14642. expandWildcards: {
  14643. type: 'enum',
  14644. default: 'all',
  14645. options: ['open', 'closed', 'none', 'all'],
  14646. name: 'expand_wildcards'
  14647. },
  14648. local: { type: 'boolean' }
  14649. },
  14650. urls: [
  14651. {
  14652. fmt: '/<%=index%>/_alias/<%=name%>',
  14653. req: { index: { type: 'list' }, name: { type: 'list' } }
  14654. },
  14655. { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } }
  14656. ],
  14657. method: 'HEAD'
  14658. })),
  14659. (f.indices.prototype.existsTemplate = d({
  14660. params: {
  14661. flatSettings: { type: 'boolean', name: 'flat_settings' },
  14662. masterTimeout: { type: 'time', name: 'master_timeout' },
  14663. local: { type: 'boolean' }
  14664. },
  14665. url: { fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } },
  14666. method: 'HEAD'
  14667. })),
  14668. (f.indices.prototype.existsType = d({
  14669. params: {
  14670. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  14671. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  14672. expandWildcards: {
  14673. type: 'enum',
  14674. default: 'open',
  14675. options: ['open', 'closed', 'none', 'all'],
  14676. name: 'expand_wildcards'
  14677. },
  14678. local: { type: 'boolean' }
  14679. },
  14680. url: {
  14681. fmt: '/<%=index%>/_mapping/<%=type%>',
  14682. req: { index: { type: 'list' }, type: { type: 'list' } }
  14683. },
  14684. method: 'HEAD'
  14685. })),
  14686. (f.indices.prototype.flush = d({
  14687. params: {
  14688. force: { type: 'boolean' },
  14689. waitIfOngoing: { type: 'boolean', name: 'wait_if_ongoing' },
  14690. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  14691. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  14692. expandWildcards: {
  14693. type: 'enum',
  14694. default: 'open',
  14695. options: ['open', 'closed', 'none', 'all'],
  14696. name: 'expand_wildcards'
  14697. }
  14698. },
  14699. urls: [{ fmt: '/<%=index%>/_flush', req: { index: { type: 'list' } } }, { fmt: '/_flush' }],
  14700. method: 'POST'
  14701. })),
  14702. (f.indices.prototype.flushSynced = d({
  14703. params: {
  14704. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  14705. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  14706. expandWildcards: {
  14707. type: 'enum',
  14708. default: 'open',
  14709. options: ['open', 'closed', 'none', 'all'],
  14710. name: 'expand_wildcards'
  14711. }
  14712. },
  14713. urls: [
  14714. { fmt: '/<%=index%>/_flush/synced', req: { index: { type: 'list' } } },
  14715. { fmt: '/_flush/synced' }
  14716. ],
  14717. method: 'POST'
  14718. })),
  14719. (f.indices.prototype.forcemerge = d({
  14720. params: {
  14721. flush: { type: 'boolean' },
  14722. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  14723. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  14724. expandWildcards: {
  14725. type: 'enum',
  14726. default: 'open',
  14727. options: ['open', 'closed', 'none', 'all'],
  14728. name: 'expand_wildcards'
  14729. },
  14730. maxNumSegments: { type: 'number', name: 'max_num_segments' },
  14731. onlyExpungeDeletes: { type: 'boolean', name: 'only_expunge_deletes' }
  14732. },
  14733. urls: [
  14734. { fmt: '/<%=index%>/_forcemerge', req: { index: { type: 'list' } } },
  14735. { fmt: '/_forcemerge' }
  14736. ],
  14737. method: 'POST'
  14738. })),
  14739. (f.indices.prototype.get = d({
  14740. params: {
  14741. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  14742. local: { type: 'boolean' },
  14743. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  14744. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  14745. expandWildcards: {
  14746. type: 'enum',
  14747. default: 'open',
  14748. options: ['open', 'closed', 'none', 'all'],
  14749. name: 'expand_wildcards'
  14750. },
  14751. flatSettings: { type: 'boolean', name: 'flat_settings' },
  14752. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' },
  14753. masterTimeout: { type: 'time', name: 'master_timeout' }
  14754. },
  14755. url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } }
  14756. })),
  14757. (f.indices.prototype.getAlias = d({
  14758. params: {
  14759. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  14760. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  14761. expandWildcards: {
  14762. type: 'enum',
  14763. default: 'all',
  14764. options: ['open', 'closed', 'none', 'all'],
  14765. name: 'expand_wildcards'
  14766. },
  14767. local: { type: 'boolean' }
  14768. },
  14769. urls: [
  14770. {
  14771. fmt: '/<%=index%>/_alias/<%=name%>',
  14772. req: { index: { type: 'list' }, name: { type: 'list' } }
  14773. },
  14774. { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } },
  14775. { fmt: '/<%=index%>/_alias', req: { index: { type: 'list' } } },
  14776. { fmt: '/_alias' }
  14777. ]
  14778. })),
  14779. (f.indices.prototype.getFieldMapping = d({
  14780. params: {
  14781. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  14782. includeDefaults: { type: 'boolean', name: 'include_defaults' },
  14783. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  14784. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  14785. expandWildcards: {
  14786. type: 'enum',
  14787. default: 'open',
  14788. options: ['open', 'closed', 'none', 'all'],
  14789. name: 'expand_wildcards'
  14790. },
  14791. local: { type: 'boolean' }
  14792. },
  14793. urls: [
  14794. {
  14795. fmt: '/<%=index%>/_mapping/field/<%=fields%>',
  14796. req: { index: { type: 'list' }, fields: { type: 'list' } }
  14797. },
  14798. { fmt: '/_mapping/field/<%=fields%>', req: { fields: { type: 'list' } } }
  14799. ]
  14800. })),
  14801. (f.indices.prototype.getMapping = d({
  14802. params: {
  14803. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  14804. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  14805. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  14806. expandWildcards: {
  14807. type: 'enum',
  14808. default: 'open',
  14809. options: ['open', 'closed', 'none', 'all'],
  14810. name: 'expand_wildcards'
  14811. },
  14812. masterTimeout: { type: 'time', name: 'master_timeout' },
  14813. local: { type: 'boolean' }
  14814. },
  14815. urls: [{ fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } }, { fmt: '/_mapping' }]
  14816. })),
  14817. (f.indices.prototype.getSettings = d({
  14818. params: {
  14819. masterTimeout: { type: 'time', name: 'master_timeout' },
  14820. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  14821. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  14822. expandWildcards: {
  14823. type: 'enum',
  14824. default: ['open', 'closed'],
  14825. options: ['open', 'closed', 'none', 'all'],
  14826. name: 'expand_wildcards'
  14827. },
  14828. flatSettings: { type: 'boolean', name: 'flat_settings' },
  14829. local: { type: 'boolean' },
  14830. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
  14831. },
  14832. urls: [
  14833. {
  14834. fmt: '/<%=index%>/_settings/<%=name%>',
  14835. req: { index: { type: 'list' }, name: { type: 'list' } }
  14836. },
  14837. { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
  14838. { fmt: '/_settings/<%=name%>', req: { name: { type: 'list' } } },
  14839. { fmt: '/_settings' }
  14840. ]
  14841. })),
  14842. (f.indices.prototype.getTemplate = d({
  14843. params: {
  14844. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  14845. flatSettings: { type: 'boolean', name: 'flat_settings' },
  14846. masterTimeout: { type: 'time', name: 'master_timeout' },
  14847. local: { type: 'boolean' }
  14848. },
  14849. urls: [{ fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } }, { fmt: '/_template' }]
  14850. })),
  14851. (f.indices.prototype.getUpgrade = d({
  14852. params: {
  14853. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  14854. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  14855. expandWildcards: {
  14856. type: 'enum',
  14857. default: 'open',
  14858. options: ['open', 'closed', 'none', 'all'],
  14859. name: 'expand_wildcards'
  14860. }
  14861. },
  14862. urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }]
  14863. })),
  14864. (f.indices.prototype.open = d({
  14865. params: {
  14866. timeout: { type: 'time' },
  14867. masterTimeout: { type: 'time', name: 'master_timeout' },
  14868. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  14869. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  14870. expandWildcards: {
  14871. type: 'enum',
  14872. default: 'closed',
  14873. options: ['open', 'closed', 'none', 'all'],
  14874. name: 'expand_wildcards'
  14875. },
  14876. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  14877. },
  14878. url: { fmt: '/<%=index%>/_open', req: { index: { type: 'list' } } },
  14879. method: 'POST'
  14880. })),
  14881. (f.indices.prototype.putAlias = d({
  14882. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  14883. url: {
  14884. fmt: '/<%=index%>/_alias/<%=name%>',
  14885. req: { index: { type: 'list' }, name: { type: 'string' } }
  14886. },
  14887. method: 'PUT'
  14888. })),
  14889. (f.indices.prototype.putMapping = d({
  14890. params: {
  14891. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  14892. timeout: { type: 'time' },
  14893. masterTimeout: { type: 'time', name: 'master_timeout' },
  14894. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  14895. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  14896. expandWildcards: {
  14897. type: 'enum',
  14898. default: 'open',
  14899. options: ['open', 'closed', 'none', 'all'],
  14900. name: 'expand_wildcards'
  14901. }
  14902. },
  14903. url: { fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } },
  14904. needBody: !0,
  14905. method: 'PUT'
  14906. })),
  14907. (f.indices.prototype.putSettings = d({
  14908. params: {
  14909. masterTimeout: { type: 'time', name: 'master_timeout' },
  14910. timeout: { type: 'time' },
  14911. preserveExisting: { type: 'boolean', name: 'preserve_existing' },
  14912. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  14913. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  14914. expandWildcards: {
  14915. type: 'enum',
  14916. default: 'open',
  14917. options: ['open', 'closed', 'none', 'all'],
  14918. name: 'expand_wildcards'
  14919. },
  14920. flatSettings: { type: 'boolean', name: 'flat_settings' }
  14921. },
  14922. urls: [
  14923. { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
  14924. { fmt: '/_settings' }
  14925. ],
  14926. needBody: !0,
  14927. method: 'PUT'
  14928. })),
  14929. (f.indices.prototype.putTemplate = d({
  14930. params: {
  14931. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  14932. order: { type: 'number' },
  14933. create: { type: 'boolean', default: !1 },
  14934. timeout: { type: 'time' },
  14935. masterTimeout: { type: 'time', name: 'master_timeout' },
  14936. flatSettings: { type: 'boolean', name: 'flat_settings' }
  14937. },
  14938. url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
  14939. needBody: !0,
  14940. method: 'PUT'
  14941. })),
  14942. (f.indices.prototype.recovery = d({
  14943. params: {
  14944. detailed: { type: 'boolean', default: !1 },
  14945. activeOnly: { type: 'boolean', default: !1, name: 'active_only' }
  14946. },
  14947. urls: [
  14948. { fmt: '/<%=index%>/_recovery', req: { index: { type: 'list' } } },
  14949. { fmt: '/_recovery' }
  14950. ]
  14951. })),
  14952. (f.indices.prototype.refresh = d({
  14953. params: {
  14954. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  14955. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  14956. expandWildcards: {
  14957. type: 'enum',
  14958. default: 'open',
  14959. options: ['open', 'closed', 'none', 'all'],
  14960. name: 'expand_wildcards'
  14961. }
  14962. },
  14963. urls: [{ fmt: '/<%=index%>/_refresh', req: { index: { type: 'list' } } }, { fmt: '/_refresh' }],
  14964. method: 'POST'
  14965. })),
  14966. (f.indices.prototype.rollover = d({
  14967. params: {
  14968. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  14969. timeout: { type: 'time' },
  14970. dryRun: { type: 'boolean', name: 'dry_run' },
  14971. masterTimeout: { type: 'time', name: 'master_timeout' },
  14972. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  14973. },
  14974. urls: [
  14975. {
  14976. fmt: '/<%=alias%>/_rollover/<%=newIndex%>',
  14977. req: { alias: { type: 'string' }, newIndex: { type: 'string' } }
  14978. },
  14979. { fmt: '/<%=alias%>/_rollover', req: { alias: { type: 'string' } } }
  14980. ],
  14981. method: 'POST'
  14982. })),
  14983. (f.indices.prototype.segments = d({
  14984. params: {
  14985. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  14986. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  14987. expandWildcards: {
  14988. type: 'enum',
  14989. default: 'open',
  14990. options: ['open', 'closed', 'none', 'all'],
  14991. name: 'expand_wildcards'
  14992. },
  14993. verbose: { type: 'boolean', default: !1 }
  14994. },
  14995. urls: [
  14996. { fmt: '/<%=index%>/_segments', req: { index: { type: 'list' } } },
  14997. { fmt: '/_segments' }
  14998. ]
  14999. })),
  15000. (f.indices.prototype.shardStores = d({
  15001. params: {
  15002. status: { type: 'list', options: ['green', 'yellow', 'red', 'all'] },
  15003. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  15004. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  15005. expandWildcards: {
  15006. type: 'enum',
  15007. default: 'open',
  15008. options: ['open', 'closed', 'none', 'all'],
  15009. name: 'expand_wildcards'
  15010. }
  15011. },
  15012. urls: [
  15013. { fmt: '/<%=index%>/_shard_stores', req: { index: { type: 'list' } } },
  15014. { fmt: '/_shard_stores' }
  15015. ]
  15016. })),
  15017. (f.indices.prototype.shrink = d({
  15018. params: {
  15019. copySettings: { type: 'boolean', name: 'copy_settings' },
  15020. timeout: { type: 'time' },
  15021. masterTimeout: { type: 'time', name: 'master_timeout' },
  15022. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  15023. },
  15024. url: {
  15025. fmt: '/<%=index%>/_shrink/<%=target%>',
  15026. req: { index: { type: 'string' }, target: { type: 'string' } }
  15027. },
  15028. method: 'POST'
  15029. })),
  15030. (f.indices.prototype.split = d({
  15031. params: {
  15032. copySettings: { type: 'boolean', name: 'copy_settings' },
  15033. timeout: { type: 'time' },
  15034. masterTimeout: { type: 'time', name: 'master_timeout' },
  15035. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  15036. },
  15037. url: {
  15038. fmt: '/<%=index%>/_split/<%=target%>',
  15039. req: { index: { type: 'string' }, target: { type: 'string' } }
  15040. },
  15041. method: 'POST'
  15042. })),
  15043. (f.indices.prototype.stats = d({
  15044. params: {
  15045. completionFields: { type: 'list', name: 'completion_fields' },
  15046. fielddataFields: { type: 'list', name: 'fielddata_fields' },
  15047. fields: { type: 'list' },
  15048. groups: { type: 'list' },
  15049. level: { type: 'enum', default: 'indices', options: ['cluster', 'indices', 'shards'] },
  15050. types: { type: 'list' },
  15051. includeSegmentFileSizes: {
  15052. type: 'boolean',
  15053. default: !1,
  15054. name: 'include_segment_file_sizes'
  15055. },
  15056. includeUnloadedSegments: {
  15057. type: 'boolean',
  15058. default: !1,
  15059. name: 'include_unloaded_segments'
  15060. },
  15061. expandWildcards: {
  15062. type: 'enum',
  15063. default: 'open',
  15064. options: ['open', 'closed', 'none', 'all'],
  15065. name: 'expand_wildcards'
  15066. },
  15067. forbidClosedIndices: { type: 'boolean', default: !0, name: 'forbid_closed_indices' }
  15068. },
  15069. urls: [
  15070. {
  15071. fmt: '/<%=index%>/_stats/<%=metric%>',
  15072. req: {
  15073. index: { type: 'list' },
  15074. metric: {
  15075. type: 'list',
  15076. options: [
  15077. '_all',
  15078. 'completion',
  15079. 'docs',
  15080. 'fielddata',
  15081. 'query_cache',
  15082. 'flush',
  15083. 'get',
  15084. 'indexing',
  15085. 'merge',
  15086. 'request_cache',
  15087. 'refresh',
  15088. 'search',
  15089. 'segments',
  15090. 'store',
  15091. 'warmer',
  15092. 'suggest'
  15093. ]
  15094. }
  15095. }
  15096. },
  15097. {
  15098. fmt: '/_stats/<%=metric%>',
  15099. req: {
  15100. metric: {
  15101. type: 'list',
  15102. options: [
  15103. '_all',
  15104. 'completion',
  15105. 'docs',
  15106. 'fielddata',
  15107. 'query_cache',
  15108. 'flush',
  15109. 'get',
  15110. 'indexing',
  15111. 'merge',
  15112. 'request_cache',
  15113. 'refresh',
  15114. 'search',
  15115. 'segments',
  15116. 'store',
  15117. 'warmer',
  15118. 'suggest'
  15119. ]
  15120. }
  15121. }
  15122. },
  15123. { fmt: '/<%=index%>/_stats', req: { index: { type: 'list' } } },
  15124. { fmt: '/_stats' }
  15125. ]
  15126. })),
  15127. (f.indices.prototype.updateAliases = d({
  15128. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  15129. url: { fmt: '/_aliases' },
  15130. needBody: !0,
  15131. method: 'POST'
  15132. })),
  15133. (f.indices.prototype.upgrade = d({
  15134. params: {
  15135. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  15136. expandWildcards: {
  15137. type: 'enum',
  15138. default: 'open',
  15139. options: ['open', 'closed', 'none', 'all'],
  15140. name: 'expand_wildcards'
  15141. },
  15142. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  15143. waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
  15144. onlyAncientSegments: { type: 'boolean', name: 'only_ancient_segments' }
  15145. },
  15146. urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }],
  15147. method: 'POST'
  15148. })),
  15149. (f.indices.prototype.validateQuery = d({
  15150. params: {
  15151. explain: { type: 'boolean' },
  15152. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  15153. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  15154. expandWildcards: {
  15155. type: 'enum',
  15156. default: 'open',
  15157. options: ['open', 'closed', 'none', 'all'],
  15158. name: 'expand_wildcards'
  15159. },
  15160. q: { type: 'string' },
  15161. analyzer: { type: 'string' },
  15162. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  15163. defaultOperator: {
  15164. type: 'enum',
  15165. default: 'OR',
  15166. options: ['AND', 'OR'],
  15167. name: 'default_operator'
  15168. },
  15169. df: { type: 'string' },
  15170. lenient: { type: 'boolean' },
  15171. rewrite: { type: 'boolean' },
  15172. allShards: { type: 'boolean', name: 'all_shards' }
  15173. },
  15174. urls: [
  15175. { fmt: '/<%=index%>/_validate/query', req: { index: { type: 'list' } } },
  15176. { fmt: '/_validate/query' }
  15177. ],
  15178. method: 'POST'
  15179. })),
  15180. (f.info = d({ url: { fmt: '/' } })),
  15181. (f.ingest = e()),
  15182. (f.ingest.prototype.deletePipeline = d({
  15183. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  15184. url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
  15185. method: 'DELETE'
  15186. })),
  15187. (f.ingest.prototype.getPipeline = d({
  15188. params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
  15189. urls: [
  15190. { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
  15191. { fmt: '/_ingest/pipeline' }
  15192. ]
  15193. })),
  15194. (f.ingest.prototype.processorGrok = d({ url: { fmt: '/_ingest/processor/grok' } })),
  15195. (f.ingest.prototype.putPipeline = d({
  15196. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  15197. url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
  15198. needBody: !0,
  15199. method: 'PUT'
  15200. })),
  15201. (f.ingest.prototype.simulate = d({
  15202. params: { verbose: { type: 'boolean', default: !1 } },
  15203. urls: [
  15204. { fmt: '/_ingest/pipeline/<%=id%>/_simulate', req: { id: { type: 'string' } } },
  15205. { fmt: '/_ingest/pipeline/_simulate' }
  15206. ],
  15207. needBody: !0,
  15208. method: 'POST'
  15209. })),
  15210. (f.mget = d({
  15211. params: {
  15212. storedFields: { type: 'list', name: 'stored_fields' },
  15213. preference: { type: 'string' },
  15214. realtime: { type: 'boolean' },
  15215. refresh: { type: 'boolean' },
  15216. routing: { type: 'string' },
  15217. _source: { type: 'list' },
  15218. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  15219. _sourceIncludes: { type: 'list', name: '_source_includes' }
  15220. },
  15221. urls: [{ fmt: '/<%=index%>/_mget', req: { index: { type: 'string' } } }, { fmt: '/_mget' }],
  15222. needBody: !0,
  15223. method: 'POST'
  15224. })),
  15225. (f.msearch = d({
  15226. params: {
  15227. searchType: {
  15228. type: 'enum',
  15229. options: [
  15230. 'query_then_fetch',
  15231. 'query_and_fetch',
  15232. 'dfs_query_then_fetch',
  15233. 'dfs_query_and_fetch'
  15234. ],
  15235. name: 'search_type'
  15236. },
  15237. maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
  15238. typedKeys: { type: 'boolean', name: 'typed_keys' },
  15239. preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
  15240. maxConcurrentShardRequests: {
  15241. type: 'number',
  15242. default: 5,
  15243. name: 'max_concurrent_shard_requests'
  15244. },
  15245. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
  15246. ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
  15247. },
  15248. urls: [{ fmt: '/<%=index%>/_msearch', req: { index: { type: 'list' } } }, { fmt: '/_msearch' }],
  15249. needBody: !0,
  15250. bulkBody: !0,
  15251. method: 'POST'
  15252. })),
  15253. (f.msearchTemplate = d({
  15254. params: {
  15255. searchType: {
  15256. type: 'enum',
  15257. options: [
  15258. 'query_then_fetch',
  15259. 'query_and_fetch',
  15260. 'dfs_query_then_fetch',
  15261. 'dfs_query_and_fetch'
  15262. ],
  15263. name: 'search_type'
  15264. },
  15265. typedKeys: { type: 'boolean', name: 'typed_keys' },
  15266. maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
  15267. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
  15268. ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
  15269. },
  15270. urls: [
  15271. { fmt: '/<%=index%>/_msearch/template', req: { index: { type: 'list' } } },
  15272. { fmt: '/_msearch/template' }
  15273. ],
  15274. needBody: !0,
  15275. bulkBody: !0,
  15276. method: 'POST'
  15277. })),
  15278. (f.mtermvectors = d({
  15279. params: {
  15280. ids: { type: 'list', required: !1 },
  15281. termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
  15282. fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
  15283. fields: { type: 'list', required: !1 },
  15284. offsets: { type: 'boolean', default: !0, required: !1 },
  15285. positions: { type: 'boolean', default: !0, required: !1 },
  15286. payloads: { type: 'boolean', default: !0, required: !1 },
  15287. preference: { type: 'string', required: !1 },
  15288. routing: { type: 'string', required: !1 },
  15289. realtime: { type: 'boolean', required: !1 },
  15290. version: { type: 'number' },
  15291. versionType: {
  15292. type: 'enum',
  15293. options: ['internal', 'external', 'external_gte', 'force'],
  15294. name: 'version_type'
  15295. }
  15296. },
  15297. urls: [
  15298. { fmt: '/<%=index%>/_mtermvectors', req: { index: { type: 'string' } } },
  15299. { fmt: '/_mtermvectors' }
  15300. ],
  15301. method: 'POST'
  15302. })),
  15303. (f.nodes = e()),
  15304. (f.nodes.prototype.hotThreads = d({
  15305. params: {
  15306. interval: { type: 'time' },
  15307. snapshots: { type: 'number' },
  15308. threads: { type: 'number' },
  15309. ignoreIdleThreads: { type: 'boolean', name: 'ignore_idle_threads' },
  15310. type: { type: 'enum', options: ['cpu', 'wait', 'block'] },
  15311. timeout: { type: 'time' }
  15312. },
  15313. url: {}
  15314. })),
  15315. (f.nodes.prototype.info = d({
  15316. params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
  15317. urls: [
  15318. {
  15319. fmt: '/_nodes/<%=nodeId%>/<%=metric%>',
  15320. req: {
  15321. nodeId: { type: 'list' },
  15322. metric: {
  15323. type: 'list',
  15324. options: [
  15325. 'settings',
  15326. 'os',
  15327. 'process',
  15328. 'jvm',
  15329. 'thread_pool',
  15330. 'transport',
  15331. 'http',
  15332. 'plugins',
  15333. 'ingest'
  15334. ]
  15335. }
  15336. }
  15337. },
  15338. { fmt: '/_nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
  15339. {
  15340. fmt: '/_nodes/<%=metric%>',
  15341. req: {
  15342. metric: {
  15343. type: 'list',
  15344. options: [
  15345. 'settings',
  15346. 'os',
  15347. 'process',
  15348. 'jvm',
  15349. 'thread_pool',
  15350. 'transport',
  15351. 'http',
  15352. 'plugins',
  15353. 'ingest'
  15354. ]
  15355. }
  15356. }
  15357. },
  15358. { fmt: '/_nodes' }
  15359. ]
  15360. })),
  15361. (f.nodes.prototype.reloadSecureSettings = d({
  15362. params: { timeout: { type: 'time' } },
  15363. urls: [
  15364. { fmt: '/_nodes/<%=nodeId%>/reload_secure_settings', req: { nodeId: { type: 'list' } } },
  15365. { fmt: '/_nodes/reload_secure_settings' }
  15366. ],
  15367. method: 'POST'
  15368. })),
  15369. (f.nodes.prototype.stats = d({
  15370. params: {
  15371. completionFields: { type: 'list', name: 'completion_fields' },
  15372. fielddataFields: { type: 'list', name: 'fielddata_fields' },
  15373. fields: { type: 'list' },
  15374. groups: { type: 'boolean' },
  15375. level: { type: 'enum', default: 'node', options: ['indices', 'node', 'shards'] },
  15376. types: { type: 'list' },
  15377. timeout: { type: 'time' },
  15378. includeSegmentFileSizes: {
  15379. type: 'boolean',
  15380. default: !1,
  15381. name: 'include_segment_file_sizes'
  15382. }
  15383. },
  15384. urls: [
  15385. {
  15386. fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>',
  15387. req: {
  15388. nodeId: { type: 'list' },
  15389. metric: {
  15390. type: 'list',
  15391. options: [
  15392. '_all',
  15393. 'breaker',
  15394. 'fs',
  15395. 'http',
  15396. 'indices',
  15397. 'jvm',
  15398. 'os',
  15399. 'process',
  15400. 'thread_pool',
  15401. 'transport',
  15402. 'discovery'
  15403. ]
  15404. },
  15405. indexMetric: {
  15406. type: 'list',
  15407. options: [
  15408. '_all',
  15409. 'completion',
  15410. 'docs',
  15411. 'fielddata',
  15412. 'query_cache',
  15413. 'flush',
  15414. 'get',
  15415. 'indexing',
  15416. 'merge',
  15417. 'request_cache',
  15418. 'refresh',
  15419. 'search',
  15420. 'segments',
  15421. 'store',
  15422. 'warmer',
  15423. 'suggest'
  15424. ]
  15425. }
  15426. }
  15427. },
  15428. {
  15429. fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>',
  15430. req: {
  15431. nodeId: { type: 'list' },
  15432. metric: {
  15433. type: 'list',
  15434. options: [
  15435. '_all',
  15436. 'breaker',
  15437. 'fs',
  15438. 'http',
  15439. 'indices',
  15440. 'jvm',
  15441. 'os',
  15442. 'process',
  15443. 'thread_pool',
  15444. 'transport',
  15445. 'discovery'
  15446. ]
  15447. }
  15448. }
  15449. },
  15450. {
  15451. fmt: '/_nodes/stats/<%=metric%>/<%=indexMetric%>',
  15452. req: {
  15453. metric: {
  15454. type: 'list',
  15455. options: [
  15456. '_all',
  15457. 'breaker',
  15458. 'fs',
  15459. 'http',
  15460. 'indices',
  15461. 'jvm',
  15462. 'os',
  15463. 'process',
  15464. 'thread_pool',
  15465. 'transport',
  15466. 'discovery'
  15467. ]
  15468. },
  15469. indexMetric: {
  15470. type: 'list',
  15471. options: [
  15472. '_all',
  15473. 'completion',
  15474. 'docs',
  15475. 'fielddata',
  15476. 'query_cache',
  15477. 'flush',
  15478. 'get',
  15479. 'indexing',
  15480. 'merge',
  15481. 'request_cache',
  15482. 'refresh',
  15483. 'search',
  15484. 'segments',
  15485. 'store',
  15486. 'warmer',
  15487. 'suggest'
  15488. ]
  15489. }
  15490. }
  15491. },
  15492. { fmt: '/_nodes/<%=nodeId%>/stats', req: { nodeId: { type: 'list' } } },
  15493. {
  15494. fmt: '/_nodes/stats/<%=metric%>',
  15495. req: {
  15496. metric: {
  15497. type: 'list',
  15498. options: [
  15499. '_all',
  15500. 'breaker',
  15501. 'fs',
  15502. 'http',
  15503. 'indices',
  15504. 'jvm',
  15505. 'os',
  15506. 'process',
  15507. 'thread_pool',
  15508. 'transport',
  15509. 'discovery'
  15510. ]
  15511. }
  15512. }
  15513. },
  15514. { fmt: '/_nodes/stats' }
  15515. ]
  15516. })),
  15517. (f.nodes.prototype.usage = d({
  15518. params: { timeout: { type: 'time' } },
  15519. urls: [
  15520. {
  15521. fmt: '/_nodes/<%=nodeId%>/usage/<%=metric%>',
  15522. req: {
  15523. nodeId: { type: 'list' },
  15524. metric: { type: 'list', options: ['_all', 'rest_actions'] }
  15525. }
  15526. },
  15527. { fmt: '/_nodes/<%=nodeId%>/usage', req: { nodeId: { type: 'list' } } },
  15528. {
  15529. fmt: '/_nodes/usage/<%=metric%>',
  15530. req: { metric: { type: 'list', options: ['_all', 'rest_actions'] } }
  15531. },
  15532. { fmt: '/_nodes/usage' }
  15533. ]
  15534. })),
  15535. (f.ping = d({ url: { fmt: '/' }, method: 'HEAD' })),
  15536. (f.putScript = d({
  15537. params: {
  15538. timeout: { type: 'time' },
  15539. masterTimeout: { type: 'time', name: 'master_timeout' },
  15540. context: { type: 'string' }
  15541. },
  15542. urls: [
  15543. {
  15544. fmt: '/_scripts/<%=id%>/<%=context%>',
  15545. req: { id: { type: 'string' }, context: { type: 'string' } }
  15546. },
  15547. { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
  15548. ],
  15549. needBody: !0,
  15550. method: 'PUT'
  15551. })),
  15552. (f.rankEval = d({
  15553. params: {
  15554. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  15555. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  15556. expandWildcards: {
  15557. type: 'enum',
  15558. default: 'open',
  15559. options: ['open', 'closed', 'none', 'all'],
  15560. name: 'expand_wildcards'
  15561. }
  15562. },
  15563. urls: [
  15564. { fmt: '/<%=index%>/_rank_eval', req: { index: { type: 'list' } } },
  15565. { fmt: '/_rank_eval' }
  15566. ],
  15567. needBody: !0,
  15568. method: 'POST'
  15569. })),
  15570. (f.reindex = d({
  15571. params: {
  15572. refresh: { type: 'boolean' },
  15573. timeout: { type: 'time', default: '1m' },
  15574. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  15575. waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
  15576. requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
  15577. scroll: { type: 'time', default: '5m' },
  15578. slices: { type: 'number', default: 1 },
  15579. maxDocs: { type: 'number', name: 'max_docs' }
  15580. },
  15581. url: { fmt: '/_reindex' },
  15582. needBody: !0,
  15583. method: 'POST'
  15584. })),
  15585. (f.reindexRethrottle = d({
  15586. params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
  15587. url: { fmt: '/_reindex/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
  15588. method: 'POST'
  15589. })),
  15590. (f.renderSearchTemplate = d({
  15591. urls: [
  15592. { fmt: '/_render/template/<%=id%>', req: { id: { type: 'string' } } },
  15593. { fmt: '/_render/template' }
  15594. ],
  15595. method: 'POST'
  15596. })),
  15597. (f.scriptsPainlessExecute = d({ url: { fmt: '/_scripts/painless/_execute' }, method: 'POST' })),
  15598. (f.scroll = d({
  15599. params: {
  15600. scroll: { type: 'time' },
  15601. scrollId: { type: 'string', name: 'scroll_id' },
  15602. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
  15603. },
  15604. url: { fmt: '/_search/scroll' },
  15605. paramAsBody: { param: 'scrollId', body: 'scroll_id' },
  15606. method: 'POST'
  15607. })),
  15608. (f.search = d({
  15609. params: {
  15610. analyzer: { type: 'string' },
  15611. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  15612. ccsMinimizeRoundtrips: {
  15613. type: 'boolean',
  15614. default: 'true',
  15615. name: 'ccs_minimize_roundtrips'
  15616. },
  15617. defaultOperator: {
  15618. type: 'enum',
  15619. default: 'OR',
  15620. options: ['AND', 'OR'],
  15621. name: 'default_operator'
  15622. },
  15623. df: { type: 'string' },
  15624. explain: { type: 'boolean' },
  15625. storedFields: { type: 'list', name: 'stored_fields' },
  15626. docvalueFields: { type: 'list', name: 'docvalue_fields' },
  15627. from: { type: 'number' },
  15628. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  15629. ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
  15630. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  15631. expandWildcards: {
  15632. type: 'enum',
  15633. default: 'open',
  15634. options: ['open', 'closed', 'none', 'all'],
  15635. name: 'expand_wildcards'
  15636. },
  15637. lenient: { type: 'boolean' },
  15638. preference: { type: 'string' },
  15639. q: { type: 'string' },
  15640. routing: { type: 'list' },
  15641. scroll: { type: 'time' },
  15642. searchType: {
  15643. type: 'enum',
  15644. options: ['query_then_fetch', 'dfs_query_then_fetch'],
  15645. name: 'search_type'
  15646. },
  15647. size: { type: 'number' },
  15648. sort: { type: 'list' },
  15649. _source: { type: 'list' },
  15650. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  15651. _sourceIncludes: { type: 'list', name: '_source_includes' },
  15652. terminateAfter: { type: 'number', name: 'terminate_after' },
  15653. stats: { type: 'list' },
  15654. suggestField: { type: 'string', name: 'suggest_field' },
  15655. suggestMode: {
  15656. type: 'enum',
  15657. default: 'missing',
  15658. options: ['missing', 'popular', 'always'],
  15659. name: 'suggest_mode'
  15660. },
  15661. suggestSize: { type: 'number', name: 'suggest_size' },
  15662. suggestText: { type: 'string', name: 'suggest_text' },
  15663. timeout: { type: 'time' },
  15664. trackScores: { type: 'boolean', name: 'track_scores' },
  15665. trackTotalHits: { type: 'boolean', name: 'track_total_hits' },
  15666. allowPartialSearchResults: {
  15667. type: 'boolean',
  15668. default: !0,
  15669. name: 'allow_partial_search_results'
  15670. },
  15671. typedKeys: { type: 'boolean', name: 'typed_keys' },
  15672. version: { type: 'boolean' },
  15673. seqNoPrimaryTerm: { type: 'boolean', name: 'seq_no_primary_term' },
  15674. requestCache: { type: 'boolean', name: 'request_cache' },
  15675. batchedReduceSize: { type: 'number', default: 512, name: 'batched_reduce_size' },
  15676. maxConcurrentShardRequests: {
  15677. type: 'number',
  15678. default: 5,
  15679. name: 'max_concurrent_shard_requests'
  15680. },
  15681. preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
  15682. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
  15683. },
  15684. urls: [{ fmt: '/<%=index%>/_search', req: { index: { type: 'list' } } }, { fmt: '/_search' }],
  15685. method: 'POST'
  15686. })),
  15687. (f.searchShards = d({
  15688. params: {
  15689. preference: { type: 'string' },
  15690. routing: { type: 'string' },
  15691. local: { type: 'boolean' },
  15692. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  15693. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  15694. expandWildcards: {
  15695. type: 'enum',
  15696. default: 'open',
  15697. options: ['open', 'closed', 'none', 'all'],
  15698. name: 'expand_wildcards'
  15699. }
  15700. },
  15701. urls: [
  15702. { fmt: '/<%=index%>/_search_shards', req: { index: { type: 'list' } } },
  15703. { fmt: '/_search_shards' }
  15704. ],
  15705. method: 'POST'
  15706. })),
  15707. (f.searchTemplate = d({
  15708. params: {
  15709. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  15710. ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
  15711. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  15712. expandWildcards: {
  15713. type: 'enum',
  15714. default: 'open',
  15715. options: ['open', 'closed', 'none', 'all'],
  15716. name: 'expand_wildcards'
  15717. },
  15718. preference: { type: 'string' },
  15719. routing: { type: 'list' },
  15720. scroll: { type: 'time' },
  15721. searchType: {
  15722. type: 'enum',
  15723. options: [
  15724. 'query_then_fetch',
  15725. 'query_and_fetch',
  15726. 'dfs_query_then_fetch',
  15727. 'dfs_query_and_fetch'
  15728. ],
  15729. name: 'search_type'
  15730. },
  15731. explain: { type: 'boolean' },
  15732. profile: { type: 'boolean' },
  15733. typedKeys: { type: 'boolean', name: 'typed_keys' },
  15734. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
  15735. ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
  15736. },
  15737. urls: [
  15738. { fmt: '/<%=index%>/_search/template', req: { index: { type: 'list' } } },
  15739. { fmt: '/_search/template' }
  15740. ],
  15741. needBody: !0,
  15742. method: 'POST'
  15743. })),
  15744. (f.snapshot = e()),
  15745. (f.snapshot.prototype.create = d({
  15746. params: {
  15747. masterTimeout: { type: 'time', name: 'master_timeout' },
  15748. waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
  15749. },
  15750. url: {
  15751. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
  15752. req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
  15753. },
  15754. method: 'POST'
  15755. })),
  15756. (f.snapshot.prototype.createRepository = d({
  15757. params: {
  15758. masterTimeout: { type: 'time', name: 'master_timeout' },
  15759. timeout: { type: 'time' },
  15760. verify: { type: 'boolean' }
  15761. },
  15762. url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'string' } } },
  15763. needBody: !0,
  15764. method: 'POST'
  15765. })),
  15766. (f.snapshot.prototype.delete = d({
  15767. params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
  15768. url: {
  15769. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
  15770. req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
  15771. },
  15772. method: 'DELETE'
  15773. })),
  15774. (f.snapshot.prototype.deleteRepository = d({
  15775. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  15776. url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
  15777. method: 'DELETE'
  15778. })),
  15779. (f.snapshot.prototype.get = d({
  15780. params: {
  15781. masterTimeout: { type: 'time', name: 'master_timeout' },
  15782. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  15783. verbose: { type: 'boolean' }
  15784. },
  15785. url: {
  15786. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
  15787. req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
  15788. }
  15789. })),
  15790. (f.snapshot.prototype.getRepository = d({
  15791. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, local: { type: 'boolean' } },
  15792. urls: [
  15793. { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
  15794. { fmt: '/_snapshot' }
  15795. ]
  15796. })),
  15797. (f.snapshot.prototype.restore = d({
  15798. params: {
  15799. masterTimeout: { type: 'time', name: 'master_timeout' },
  15800. waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
  15801. },
  15802. url: {
  15803. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_restore',
  15804. req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
  15805. },
  15806. method: 'POST'
  15807. })),
  15808. (f.snapshot.prototype.status = d({
  15809. params: {
  15810. masterTimeout: { type: 'time', name: 'master_timeout' },
  15811. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' }
  15812. },
  15813. urls: [
  15814. {
  15815. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_status',
  15816. req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
  15817. },
  15818. { fmt: '/_snapshot/<%=repository%>/_status', req: { repository: { type: 'string' } } },
  15819. { fmt: '/_snapshot/_status' }
  15820. ]
  15821. })),
  15822. (f.snapshot.prototype.verifyRepository = d({
  15823. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  15824. url: { fmt: '/_snapshot/<%=repository%>/_verify', req: { repository: { type: 'string' } } },
  15825. method: 'POST'
  15826. })),
  15827. (f.tasks = e()),
  15828. (f.tasks.prototype.cancel = d({
  15829. params: {
  15830. nodes: { type: 'list' },
  15831. actions: { type: 'list' },
  15832. parentTaskId: { type: 'string', name: 'parent_task_id' }
  15833. },
  15834. urls: [
  15835. { fmt: '/_tasks/<%=taskId%>/_cancel', req: { taskId: { type: 'string' } } },
  15836. { fmt: '/_tasks/_cancel' }
  15837. ],
  15838. method: 'POST'
  15839. })),
  15840. (f.tasks.prototype.get = d({
  15841. params: {
  15842. waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
  15843. timeout: { type: 'time' }
  15844. },
  15845. url: { fmt: '/_tasks/<%=taskId%>', req: { taskId: { type: 'string' } } }
  15846. })),
  15847. (f.tasks.prototype.list = d({
  15848. params: {
  15849. nodes: { type: 'list' },
  15850. actions: { type: 'list' },
  15851. detailed: { type: 'boolean' },
  15852. parentTaskId: { type: 'string', name: 'parent_task_id' },
  15853. waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
  15854. groupBy: {
  15855. type: 'enum',
  15856. default: 'nodes',
  15857. options: ['nodes', 'parents', 'none'],
  15858. name: 'group_by'
  15859. },
  15860. timeout: { type: 'time' }
  15861. },
  15862. url: { fmt: '/_tasks' }
  15863. })),
  15864. (f.termvectors = d({
  15865. params: {
  15866. termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
  15867. fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
  15868. fields: { type: 'list', required: !1 },
  15869. offsets: { type: 'boolean', default: !0, required: !1 },
  15870. positions: { type: 'boolean', default: !0, required: !1 },
  15871. payloads: { type: 'boolean', default: !0, required: !1 },
  15872. preference: { type: 'string', required: !1 },
  15873. routing: { type: 'string', required: !1 },
  15874. realtime: { type: 'boolean', required: !1 },
  15875. version: { type: 'number' },
  15876. versionType: {
  15877. type: 'enum',
  15878. options: ['internal', 'external', 'external_gte', 'force'],
  15879. name: 'version_type'
  15880. }
  15881. },
  15882. urls: [
  15883. {
  15884. fmt: '/<%=index%>/_termvectors/<%=id%>',
  15885. req: { index: { type: 'string' }, id: { type: 'string' } }
  15886. },
  15887. { fmt: '/<%=index%>/_termvectors', req: { index: { type: 'string' } } }
  15888. ],
  15889. method: 'POST'
  15890. })),
  15891. (f.update = d({
  15892. params: {
  15893. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  15894. _source: { type: 'list' },
  15895. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  15896. _sourceIncludes: { type: 'list', name: '_source_includes' },
  15897. lang: { type: 'string' },
  15898. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  15899. retryOnConflict: { type: 'number', name: 'retry_on_conflict' },
  15900. routing: { type: 'string' },
  15901. timeout: { type: 'time' },
  15902. ifSeqNo: { type: 'number', name: 'if_seq_no' },
  15903. ifPrimaryTerm: { type: 'number', name: 'if_primary_term' }
  15904. },
  15905. url: {
  15906. fmt: '/<%=index%>/_update/<%=id%>',
  15907. req: { index: { type: 'string' }, id: { type: 'string' } }
  15908. },
  15909. needBody: !0,
  15910. method: 'POST'
  15911. })),
  15912. (f.updateByQuery = d({
  15913. params: {
  15914. analyzer: { type: 'string' },
  15915. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  15916. defaultOperator: {
  15917. type: 'enum',
  15918. default: 'OR',
  15919. options: ['AND', 'OR'],
  15920. name: 'default_operator'
  15921. },
  15922. df: { type: 'string' },
  15923. from: { type: 'number' },
  15924. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  15925. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  15926. conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
  15927. expandWildcards: {
  15928. type: 'enum',
  15929. default: 'open',
  15930. options: ['open', 'closed', 'none', 'all'],
  15931. name: 'expand_wildcards'
  15932. },
  15933. lenient: { type: 'boolean' },
  15934. pipeline: { type: 'string' },
  15935. preference: { type: 'string' },
  15936. q: { type: 'string' },
  15937. routing: { type: 'list' },
  15938. scroll: { type: 'time' },
  15939. searchType: {
  15940. type: 'enum',
  15941. options: ['query_then_fetch', 'dfs_query_then_fetch'],
  15942. name: 'search_type'
  15943. },
  15944. searchTimeout: { type: 'time', name: 'search_timeout' },
  15945. size: { type: 'number' },
  15946. maxDocs: { type: 'number', name: 'max_docs' },
  15947. sort: { type: 'list' },
  15948. _source: { type: 'list' },
  15949. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  15950. _sourceIncludes: { type: 'list', name: '_source_includes' },
  15951. terminateAfter: { type: 'number', name: 'terminate_after' },
  15952. stats: { type: 'list' },
  15953. version: { type: 'boolean' },
  15954. versionType: { type: 'boolean', name: 'version_type' },
  15955. requestCache: { type: 'boolean', name: 'request_cache' },
  15956. refresh: { type: 'boolean' },
  15957. timeout: { type: 'time', default: '1m' },
  15958. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  15959. scrollSize: { type: 'number', name: 'scroll_size' },
  15960. waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
  15961. requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
  15962. slices: { type: 'number', default: 1 }
  15963. },
  15964. url: { fmt: '/<%=index%>/_update_by_query', req: { index: { type: 'list' } } },
  15965. method: 'POST'
  15966. })),
  15967. (f.updateByQueryRethrottle = d({
  15968. params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
  15969. url: { fmt: '/_update_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
  15970. method: 'POST'
  15971. }));
  15972. },
  15973. function(a, b, c) {
  15974. var d = c(1).makeFactoryWithModifier(function(a) {
  15975. return c(0).merge(a, { params: { filterPath: { type: 'list', name: 'filter_path' } } });
  15976. }),
  15977. e = c(1).namespaceFactory,
  15978. f = (a.exports = {});
  15979. (f._namespaces = ['cat', 'cluster', 'indices', 'ingest', 'nodes', 'snapshot', 'tasks']),
  15980. (f.bulk = d({
  15981. params: {
  15982. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  15983. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  15984. routing: { type: 'string' },
  15985. timeout: { type: 'time' },
  15986. type: { type: 'string' },
  15987. _source: { type: 'list' },
  15988. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  15989. _sourceIncludes: { type: 'list', name: '_source_includes' },
  15990. pipeline: { type: 'string' }
  15991. },
  15992. urls: [
  15993. {
  15994. fmt: '/<%=index%>/<%=type%>/_bulk',
  15995. req: { index: { type: 'string' }, type: { type: 'string' } }
  15996. },
  15997. { fmt: '/<%=index%>/_bulk', req: { index: { type: 'string' } } },
  15998. { fmt: '/_bulk' }
  15999. ],
  16000. needBody: !0,
  16001. bulkBody: !0,
  16002. method: 'POST'
  16003. })),
  16004. (f.cat = e()),
  16005. (f.cat.prototype.aliases = d({
  16006. params: {
  16007. format: { type: 'string' },
  16008. local: { type: 'boolean' },
  16009. h: { type: 'list' },
  16010. help: { type: 'boolean', default: !1 },
  16011. s: { type: 'list' },
  16012. v: { type: 'boolean', default: !1 }
  16013. },
  16014. urls: [
  16015. { fmt: '/_cat/aliases/<%=name%>', req: { name: { type: 'list' } } },
  16016. { fmt: '/_cat/aliases' }
  16017. ]
  16018. })),
  16019. (f.cat.prototype.allocation = d({
  16020. params: {
  16021. format: { type: 'string' },
  16022. bytes: {
  16023. type: 'enum',
  16024. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  16025. },
  16026. local: { type: 'boolean' },
  16027. masterTimeout: { type: 'time', name: 'master_timeout' },
  16028. h: { type: 'list' },
  16029. help: { type: 'boolean', default: !1 },
  16030. s: { type: 'list' },
  16031. v: { type: 'boolean', default: !1 }
  16032. },
  16033. urls: [
  16034. { fmt: '/_cat/allocation/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
  16035. { fmt: '/_cat/allocation' }
  16036. ]
  16037. })),
  16038. (f.cat.prototype.count = d({
  16039. params: {
  16040. format: { type: 'string' },
  16041. h: { type: 'list' },
  16042. help: { type: 'boolean', default: !1 },
  16043. s: { type: 'list' },
  16044. v: { type: 'boolean', default: !1 }
  16045. },
  16046. urls: [
  16047. { fmt: '/_cat/count/<%=index%>', req: { index: { type: 'list' } } },
  16048. { fmt: '/_cat/count' }
  16049. ]
  16050. })),
  16051. (f.cat.prototype.fielddata = d({
  16052. params: {
  16053. format: { type: 'string' },
  16054. bytes: {
  16055. type: 'enum',
  16056. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  16057. },
  16058. h: { type: 'list' },
  16059. help: { type: 'boolean', default: !1 },
  16060. s: { type: 'list' },
  16061. v: { type: 'boolean', default: !1 },
  16062. fields: { type: 'list' }
  16063. },
  16064. urls: [
  16065. { fmt: '/_cat/fielddata/<%=fields%>', req: { fields: { type: 'list' } } },
  16066. { fmt: '/_cat/fielddata' }
  16067. ]
  16068. })),
  16069. (f.cat.prototype.health = d({
  16070. params: {
  16071. format: { type: 'string' },
  16072. h: { type: 'list' },
  16073. help: { type: 'boolean', default: !1 },
  16074. s: { type: 'list' },
  16075. time: {
  16076. type: 'enum',
  16077. options: [
  16078. 'd (Days)',
  16079. 'h (Hours)',
  16080. 'm (Minutes)',
  16081. 's (Seconds)',
  16082. 'ms (Milliseconds)',
  16083. 'micros (Microseconds)',
  16084. 'nanos (Nanoseconds)'
  16085. ]
  16086. },
  16087. ts: { type: 'boolean', default: !0 },
  16088. v: { type: 'boolean', default: !1 }
  16089. },
  16090. url: { fmt: '/_cat/health' }
  16091. })),
  16092. (f.cat.prototype.help = d({
  16093. params: { help: { type: 'boolean', default: !1 }, s: { type: 'list' } },
  16094. url: { fmt: '/_cat' }
  16095. })),
  16096. (f.cat.prototype.indices = d({
  16097. params: {
  16098. format: { type: 'string' },
  16099. bytes: { type: 'enum', options: ['b', 'k', 'm', 'g'] },
  16100. local: { type: 'boolean' },
  16101. masterTimeout: { type: 'time', name: 'master_timeout' },
  16102. h: { type: 'list' },
  16103. health: { type: 'enum', default: null, options: ['green', 'yellow', 'red'] },
  16104. help: { type: 'boolean', default: !1 },
  16105. pri: { type: 'boolean', default: !1 },
  16106. s: { type: 'list' },
  16107. time: {
  16108. type: 'enum',
  16109. options: [
  16110. 'd (Days)',
  16111. 'h (Hours)',
  16112. 'm (Minutes)',
  16113. 's (Seconds)',
  16114. 'ms (Milliseconds)',
  16115. 'micros (Microseconds)',
  16116. 'nanos (Nanoseconds)'
  16117. ]
  16118. },
  16119. v: { type: 'boolean', default: !1 },
  16120. includeUnloadedSegments: { type: 'boolean', default: !1, name: 'include_unloaded_segments' }
  16121. },
  16122. urls: [
  16123. { fmt: '/_cat/indices/<%=index%>', req: { index: { type: 'list' } } },
  16124. { fmt: '/_cat/indices' }
  16125. ]
  16126. })),
  16127. (f.cat.prototype.master = d({
  16128. params: {
  16129. format: { type: 'string' },
  16130. local: { type: 'boolean' },
  16131. masterTimeout: { type: 'time', name: 'master_timeout' },
  16132. h: { type: 'list' },
  16133. help: { type: 'boolean', default: !1 },
  16134. s: { type: 'list' },
  16135. v: { type: 'boolean', default: !1 }
  16136. },
  16137. url: { fmt: '/_cat/master' }
  16138. })),
  16139. (f.cat.prototype.nodeattrs = d({
  16140. params: {
  16141. format: { type: 'string' },
  16142. local: { type: 'boolean' },
  16143. masterTimeout: { type: 'time', name: 'master_timeout' },
  16144. h: { type: 'list' },
  16145. help: { type: 'boolean', default: !1 },
  16146. s: { type: 'list' },
  16147. v: { type: 'boolean', default: !1 }
  16148. },
  16149. url: { fmt: '/_cat/nodeattrs' }
  16150. })),
  16151. (f.cat.prototype.nodes = d({
  16152. params: {
  16153. format: { type: 'string' },
  16154. bytes: {
  16155. type: 'enum',
  16156. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  16157. },
  16158. fullId: { type: 'boolean', name: 'full_id' },
  16159. local: { type: 'boolean' },
  16160. masterTimeout: { type: 'time', name: 'master_timeout' },
  16161. h: { type: 'list' },
  16162. help: { type: 'boolean', default: !1 },
  16163. s: { type: 'list' },
  16164. time: {
  16165. type: 'enum',
  16166. options: [
  16167. 'd (Days)',
  16168. 'h (Hours)',
  16169. 'm (Minutes)',
  16170. 's (Seconds)',
  16171. 'ms (Milliseconds)',
  16172. 'micros (Microseconds)',
  16173. 'nanos (Nanoseconds)'
  16174. ]
  16175. },
  16176. v: { type: 'boolean', default: !1 }
  16177. },
  16178. url: { fmt: '/_cat/nodes' }
  16179. })),
  16180. (f.cat.prototype.pendingTasks = d({
  16181. params: {
  16182. format: { type: 'string' },
  16183. local: { type: 'boolean' },
  16184. masterTimeout: { type: 'time', name: 'master_timeout' },
  16185. h: { type: 'list' },
  16186. help: { type: 'boolean', default: !1 },
  16187. s: { type: 'list' },
  16188. time: {
  16189. type: 'enum',
  16190. options: [
  16191. 'd (Days)',
  16192. 'h (Hours)',
  16193. 'm (Minutes)',
  16194. 's (Seconds)',
  16195. 'ms (Milliseconds)',
  16196. 'micros (Microseconds)',
  16197. 'nanos (Nanoseconds)'
  16198. ]
  16199. },
  16200. v: { type: 'boolean', default: !1 }
  16201. },
  16202. url: { fmt: '/_cat/pending_tasks' }
  16203. })),
  16204. (f.cat.prototype.plugins = d({
  16205. params: {
  16206. format: { type: 'string' },
  16207. local: { type: 'boolean' },
  16208. masterTimeout: { type: 'time', name: 'master_timeout' },
  16209. h: { type: 'list' },
  16210. help: { type: 'boolean', default: !1 },
  16211. s: { type: 'list' },
  16212. v: { type: 'boolean', default: !1 }
  16213. },
  16214. url: { fmt: '/_cat/plugins' }
  16215. })),
  16216. (f.cat.prototype.recovery = d({
  16217. params: {
  16218. format: { type: 'string' },
  16219. activeOnly: { type: 'boolean', default: !1, name: 'active_only' },
  16220. bytes: {
  16221. type: 'enum',
  16222. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  16223. },
  16224. detailed: { type: 'boolean', default: !1 },
  16225. h: { type: 'list' },
  16226. help: { type: 'boolean', default: !1 },
  16227. index: { type: 'list' },
  16228. s: {
  16229. type: 'list'
  16230. },
  16231. time: {
  16232. type: 'enum',
  16233. options: [
  16234. 'd (Days)',
  16235. 'h (Hours)',
  16236. 'm (Minutes)',
  16237. 's (Seconds)',
  16238. 'ms (Milliseconds)',
  16239. 'micros (Microseconds)',
  16240. 'nanos (Nanoseconds)'
  16241. ]
  16242. },
  16243. v: { type: 'boolean', default: !1 }
  16244. },
  16245. urls: [
  16246. { fmt: '/_cat/recovery/<%=index%>', req: { index: { type: 'list' } } },
  16247. { fmt: '/_cat/recovery' }
  16248. ]
  16249. })),
  16250. (f.cat.prototype.repositories = d({
  16251. params: {
  16252. format: { type: 'string' },
  16253. local: { type: 'boolean', default: !1 },
  16254. masterTimeout: { type: 'time', name: 'master_timeout' },
  16255. h: { type: 'list' },
  16256. help: { type: 'boolean', default: !1 },
  16257. s: { type: 'list' },
  16258. v: { type: 'boolean', default: !1 }
  16259. },
  16260. url: { fmt: '/_cat/repositories' }
  16261. })),
  16262. (f.cat.prototype.segments = d({
  16263. params: {
  16264. format: { type: 'string' },
  16265. bytes: {
  16266. type: 'enum',
  16267. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  16268. },
  16269. h: { type: 'list' },
  16270. help: { type: 'boolean', default: !1 },
  16271. s: { type: 'list' },
  16272. v: { type: 'boolean', default: !1 }
  16273. },
  16274. urls: [
  16275. { fmt: '/_cat/segments/<%=index%>', req: { index: { type: 'list' } } },
  16276. { fmt: '/_cat/segments' }
  16277. ]
  16278. })),
  16279. (f.cat.prototype.shards = d({
  16280. params: {
  16281. format: { type: 'string' },
  16282. bytes: {
  16283. type: 'enum',
  16284. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  16285. },
  16286. local: { type: 'boolean' },
  16287. masterTimeout: { type: 'time', name: 'master_timeout' },
  16288. h: { type: 'list' },
  16289. help: { type: 'boolean', default: !1 },
  16290. s: { type: 'list' },
  16291. time: {
  16292. type: 'enum',
  16293. options: [
  16294. 'd (Days)',
  16295. 'h (Hours)',
  16296. 'm (Minutes)',
  16297. 's (Seconds)',
  16298. 'ms (Milliseconds)',
  16299. 'micros (Microseconds)',
  16300. 'nanos (Nanoseconds)'
  16301. ]
  16302. },
  16303. v: { type: 'boolean', default: !1 }
  16304. },
  16305. urls: [
  16306. { fmt: '/_cat/shards/<%=index%>', req: { index: { type: 'list' } } },
  16307. { fmt: '/_cat/shards' }
  16308. ]
  16309. })),
  16310. (f.cat.prototype.snapshots = d({
  16311. params: {
  16312. format: { type: 'string' },
  16313. ignoreUnavailable: { type: 'boolean', default: !1, name: 'ignore_unavailable' },
  16314. masterTimeout: { type: 'time', name: 'master_timeout' },
  16315. h: { type: 'list' },
  16316. help: { type: 'boolean', default: !1 },
  16317. s: { type: 'list' },
  16318. time: {
  16319. type: 'enum',
  16320. options: [
  16321. 'd (Days)',
  16322. 'h (Hours)',
  16323. 'm (Minutes)',
  16324. 's (Seconds)',
  16325. 'ms (Milliseconds)',
  16326. 'micros (Microseconds)',
  16327. 'nanos (Nanoseconds)'
  16328. ]
  16329. },
  16330. v: { type: 'boolean', default: !1 }
  16331. },
  16332. urls: [
  16333. { fmt: '/_cat/snapshots/<%=repository%>', req: { repository: { type: 'list' } } },
  16334. { fmt: '/_cat/snapshots' }
  16335. ]
  16336. })),
  16337. (f.cat.prototype.tasks = d({
  16338. params: {
  16339. format: { type: 'string' },
  16340. nodeId: { type: 'list', name: 'node_id' },
  16341. actions: { type: 'list' },
  16342. detailed: { type: 'boolean' },
  16343. parentTask: { type: 'number', name: 'parent_task' },
  16344. h: { type: 'list' },
  16345. help: { type: 'boolean', default: !1 },
  16346. s: { type: 'list' },
  16347. time: {
  16348. type: 'enum',
  16349. options: [
  16350. 'd (Days)',
  16351. 'h (Hours)',
  16352. 'm (Minutes)',
  16353. 's (Seconds)',
  16354. 'ms (Milliseconds)',
  16355. 'micros (Microseconds)',
  16356. 'nanos (Nanoseconds)'
  16357. ]
  16358. },
  16359. v: { type: 'boolean', default: !1 }
  16360. },
  16361. url: { fmt: '/_cat/tasks' }
  16362. })),
  16363. (f.cat.prototype.templates = d({
  16364. params: {
  16365. format: { type: 'string' },
  16366. local: { type: 'boolean' },
  16367. masterTimeout: { type: 'time', name: 'master_timeout' },
  16368. h: { type: 'list' },
  16369. help: { type: 'boolean', default: !1 },
  16370. s: { type: 'list' },
  16371. v: { type: 'boolean', default: !1 }
  16372. },
  16373. urls: [
  16374. { fmt: '/_cat/templates/<%=name%>', req: { name: { type: 'string' } } },
  16375. { fmt: '/_cat/templates' }
  16376. ]
  16377. })),
  16378. (f.cat.prototype.threadPool = d({
  16379. params: {
  16380. format: { type: 'string' },
  16381. size: { type: 'enum', options: ['', 'k', 'm', 'g', 't', 'p'] },
  16382. local: { type: 'boolean' },
  16383. masterTimeout: { type: 'time', name: 'master_timeout' },
  16384. h: { type: 'list' },
  16385. help: { type: 'boolean', default: !1 },
  16386. s: { type: 'list' },
  16387. v: { type: 'boolean', default: !1 }
  16388. },
  16389. urls: [
  16390. {
  16391. fmt: '/_cat/thread_pool/<%=threadPoolPatterns%>',
  16392. req: { threadPoolPatterns: { type: 'list' } }
  16393. },
  16394. { fmt: '/_cat/thread_pool' }
  16395. ]
  16396. })),
  16397. (f.clearScroll = d({
  16398. url: { fmt: '/_search/scroll' },
  16399. paramAsBody: { param: 'scrollId', body: 'scroll_id' },
  16400. method: 'DELETE'
  16401. })),
  16402. (f.cluster = e()),
  16403. (f.cluster.prototype.allocationExplain = d({
  16404. params: {
  16405. includeYesDecisions: { type: 'boolean', name: 'include_yes_decisions' },
  16406. includeDiskInfo: { type: 'boolean', name: 'include_disk_info' }
  16407. },
  16408. url: { fmt: '/_cluster/allocation/explain' },
  16409. method: 'POST'
  16410. })),
  16411. (f.cluster.prototype.getSettings = d({
  16412. params: {
  16413. flatSettings: { type: 'boolean', name: 'flat_settings' },
  16414. masterTimeout: { type: 'time', name: 'master_timeout' },
  16415. timeout: { type: 'time' },
  16416. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
  16417. },
  16418. url: { fmt: '/_cluster/settings' }
  16419. })),
  16420. (f.cluster.prototype.health = d({
  16421. params: {
  16422. expandWildcards: {
  16423. type: 'enum',
  16424. default: 'all',
  16425. options: ['open', 'closed', 'none', 'all'],
  16426. name: 'expand_wildcards'
  16427. },
  16428. level: { type: 'enum', default: 'cluster', options: ['cluster', 'indices', 'shards'] },
  16429. local: { type: 'boolean' },
  16430. masterTimeout: { type: 'time', name: 'master_timeout' },
  16431. timeout: { type: 'time' },
  16432. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  16433. waitForNodes: { type: 'string', name: 'wait_for_nodes' },
  16434. waitForEvents: {
  16435. type: 'enum',
  16436. options: ['immediate', 'urgent', 'high', 'normal', 'low', 'languid'],
  16437. name: 'wait_for_events'
  16438. },
  16439. waitForNoRelocatingShards: { type: 'boolean', name: 'wait_for_no_relocating_shards' },
  16440. waitForNoInitializingShards: { type: 'boolean', name: 'wait_for_no_initializing_shards' },
  16441. waitForStatus: {
  16442. type: 'enum',
  16443. default: null,
  16444. options: ['green', 'yellow', 'red'],
  16445. name: 'wait_for_status'
  16446. }
  16447. },
  16448. urls: [
  16449. { fmt: '/_cluster/health/<%=index%>', req: { index: { type: 'list' } } },
  16450. { fmt: '/_cluster/health' }
  16451. ]
  16452. })),
  16453. (f.cluster.prototype.pendingTasks = d({
  16454. params: { local: { type: 'boolean' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  16455. url: { fmt: '/_cluster/pending_tasks' }
  16456. })),
  16457. (f.cluster.prototype.putSettings = d({
  16458. params: {
  16459. flatSettings: { type: 'boolean', name: 'flat_settings' },
  16460. masterTimeout: { type: 'time', name: 'master_timeout' },
  16461. timeout: { type: 'time' }
  16462. },
  16463. url: { fmt: '/_cluster/settings' },
  16464. needBody: !0,
  16465. method: 'PUT'
  16466. })),
  16467. (f.cluster.prototype.remoteInfo = d({ url: { fmt: '/_remote/info' } })),
  16468. (f.cluster.prototype.reroute = d({
  16469. params: {
  16470. dryRun: { type: 'boolean', name: 'dry_run' },
  16471. explain: { type: 'boolean' },
  16472. retryFailed: { type: 'boolean', name: 'retry_failed' },
  16473. metric: {
  16474. type: 'list',
  16475. options: [
  16476. '_all',
  16477. 'blocks',
  16478. 'metadata',
  16479. 'nodes',
  16480. 'routing_table',
  16481. 'master_node',
  16482. 'version'
  16483. ]
  16484. },
  16485. masterTimeout: { type: 'time', name: 'master_timeout' },
  16486. timeout: { type: 'time' }
  16487. },
  16488. url: { fmt: '/_cluster/reroute' },
  16489. method: 'POST'
  16490. })),
  16491. (f.cluster.prototype.state = d({
  16492. params: {
  16493. local: { type: 'boolean' },
  16494. masterTimeout: { type: 'time', name: 'master_timeout' },
  16495. flatSettings: { type: 'boolean', name: 'flat_settings' },
  16496. waitForMetadataVersion: { type: 'number', name: 'wait_for_metadata_version' },
  16497. waitForTimeout: { type: 'time', name: 'wait_for_timeout' },
  16498. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  16499. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  16500. expandWildcards: {
  16501. type: 'enum',
  16502. default: 'open',
  16503. options: ['open', 'closed', 'none', 'all'],
  16504. name: 'expand_wildcards'
  16505. }
  16506. },
  16507. urls: [
  16508. {
  16509. fmt: '/_cluster/state/<%=metric%>/<%=index%>',
  16510. req: {
  16511. metric: {
  16512. type: 'list',
  16513. options: [
  16514. '_all',
  16515. 'blocks',
  16516. 'metadata',
  16517. 'nodes',
  16518. 'routing_table',
  16519. 'routing_nodes',
  16520. 'master_node',
  16521. 'version'
  16522. ]
  16523. },
  16524. index: { type: 'list' }
  16525. }
  16526. },
  16527. {
  16528. fmt: '/_cluster/state/<%=metric%>',
  16529. req: {
  16530. metric: {
  16531. type: 'list',
  16532. options: [
  16533. '_all',
  16534. 'blocks',
  16535. 'metadata',
  16536. 'nodes',
  16537. 'routing_table',
  16538. 'routing_nodes',
  16539. 'master_node',
  16540. 'version'
  16541. ]
  16542. }
  16543. }
  16544. },
  16545. { fmt: '/_cluster/state' }
  16546. ]
  16547. })),
  16548. (f.cluster.prototype.stats = d({
  16549. params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
  16550. urls: [
  16551. { fmt: '/_cluster/stats/nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
  16552. { fmt: '/_cluster/stats' }
  16553. ]
  16554. })),
  16555. (f.count = d({
  16556. params: {
  16557. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  16558. ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
  16559. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  16560. expandWildcards: {
  16561. type: 'enum',
  16562. default: 'open',
  16563. options: ['open', 'closed', 'none', 'all'],
  16564. name: 'expand_wildcards'
  16565. },
  16566. minScore: { type: 'number', name: 'min_score' },
  16567. preference: { type: 'string' },
  16568. routing: { type: 'list' },
  16569. q: { type: 'string' },
  16570. analyzer: { type: 'string' },
  16571. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  16572. defaultOperator: {
  16573. type: 'enum',
  16574. default: 'OR',
  16575. options: ['AND', 'OR'],
  16576. name: 'default_operator'
  16577. },
  16578. df: { type: 'string' },
  16579. lenient: { type: 'boolean' },
  16580. terminateAfter: { type: 'number', name: 'terminate_after' }
  16581. },
  16582. urls: [{ fmt: '/<%=index%>/_count', req: { index: { type: 'list' } } }, { fmt: '/_count' }],
  16583. method: 'POST'
  16584. })),
  16585. (f.create = d({
  16586. params: {
  16587. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  16588. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  16589. routing: { type: 'string' },
  16590. timeout: { type: 'time' },
  16591. version: { type: 'number' },
  16592. versionType: {
  16593. type: 'enum',
  16594. options: ['internal', 'external', 'external_gte', 'force'],
  16595. name: 'version_type'
  16596. },
  16597. pipeline: { type: 'string' }
  16598. },
  16599. url: {
  16600. fmt: '/<%=index%>/_create/<%=id%>',
  16601. req: { index: { type: 'string' }, id: { type: 'string' } }
  16602. },
  16603. needBody: !0,
  16604. method: 'POST'
  16605. })),
  16606. (f.delete = d({
  16607. params: {
  16608. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  16609. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  16610. routing: { type: 'string' },
  16611. timeout: { type: 'time' },
  16612. ifSeqNo: { type: 'number', name: 'if_seq_no' },
  16613. ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
  16614. version: { type: 'number' },
  16615. versionType: {
  16616. type: 'enum',
  16617. options: ['internal', 'external', 'external_gte', 'force'],
  16618. name: 'version_type'
  16619. }
  16620. },
  16621. url: {
  16622. fmt: '/<%=index%>/_doc/<%=id%>',
  16623. req: { index: { type: 'string' }, id: { type: 'string' } }
  16624. },
  16625. method: 'DELETE'
  16626. })),
  16627. (f.deleteByQuery = d({
  16628. params: {
  16629. analyzer: { type: 'string' },
  16630. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  16631. defaultOperator: {
  16632. type: 'enum',
  16633. default: 'OR',
  16634. options: ['AND', 'OR'],
  16635. name: 'default_operator'
  16636. },
  16637. df: { type: 'string' },
  16638. from: { type: 'number' },
  16639. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  16640. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  16641. conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
  16642. expandWildcards: {
  16643. type: 'enum',
  16644. default: 'open',
  16645. options: ['open', 'closed', 'none', 'all'],
  16646. name: 'expand_wildcards'
  16647. },
  16648. lenient: { type: 'boolean' },
  16649. preference: { type: 'string' },
  16650. q: { type: 'string' },
  16651. routing: { type: 'list' },
  16652. scroll: { type: 'time' },
  16653. searchType: {
  16654. type: 'enum',
  16655. options: ['query_then_fetch', 'dfs_query_then_fetch'],
  16656. name: 'search_type'
  16657. },
  16658. searchTimeout: { type: 'time', name: 'search_timeout' },
  16659. size: { type: 'number' },
  16660. maxDocs: { type: 'number', name: 'max_docs' },
  16661. sort: { type: 'list' },
  16662. _source: { type: 'list' },
  16663. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  16664. _sourceIncludes: { type: 'list', name: '_source_includes' },
  16665. terminateAfter: { type: 'number', name: 'terminate_after' },
  16666. stats: { type: 'list' },
  16667. version: { type: 'boolean' },
  16668. requestCache: { type: 'boolean', name: 'request_cache' },
  16669. refresh: { type: 'boolean' },
  16670. timeout: { type: 'time', default: '1m' },
  16671. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  16672. scrollSize: { type: 'number', name: 'scroll_size' },
  16673. waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
  16674. requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
  16675. slices: { type: 'number', default: 1 }
  16676. },
  16677. url: { fmt: '/<%=index%>/_delete_by_query', req: { index: { type: 'list' } } },
  16678. needBody: !0,
  16679. method: 'POST'
  16680. })),
  16681. (f.deleteByQueryRethrottle = d({
  16682. params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
  16683. url: { fmt: '/_delete_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
  16684. method: 'POST'
  16685. })),
  16686. (f.deleteScript = d({
  16687. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  16688. url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } },
  16689. method: 'DELETE'
  16690. })),
  16691. (f.exists = d({
  16692. params: {
  16693. storedFields: { type: 'list', name: 'stored_fields' },
  16694. preference: { type: 'string' },
  16695. realtime: { type: 'boolean' },
  16696. refresh: { type: 'boolean' },
  16697. routing: { type: 'string' },
  16698. _source: { type: 'list' },
  16699. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  16700. _sourceIncludes: { type: 'list', name: '_source_includes' },
  16701. version: { type: 'number' },
  16702. versionType: {
  16703. type: 'enum',
  16704. options: ['internal', 'external', 'external_gte', 'force'],
  16705. name: 'version_type'
  16706. }
  16707. },
  16708. url: {
  16709. fmt: '/<%=index%>/_doc/<%=id%>',
  16710. req: { index: { type: 'string' }, id: { type: 'string' } }
  16711. },
  16712. method: 'HEAD'
  16713. })),
  16714. (f.existsSource = d({
  16715. params: {
  16716. preference: { type: 'string' },
  16717. realtime: { type: 'boolean' },
  16718. refresh: { type: 'boolean' },
  16719. routing: { type: 'string' },
  16720. _source: { type: 'list' },
  16721. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  16722. _sourceIncludes: { type: 'list', name: '_source_includes' },
  16723. version: { type: 'number' },
  16724. versionType: {
  16725. type: 'enum',
  16726. options: ['internal', 'external', 'external_gte', 'force'],
  16727. name: 'version_type'
  16728. }
  16729. },
  16730. url: {
  16731. fmt: '/<%=index%>/_source/<%=id%>',
  16732. req: { index: { type: 'string' }, id: { type: 'string' } }
  16733. },
  16734. method: 'HEAD'
  16735. })),
  16736. (f.explain = d({
  16737. params: {
  16738. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  16739. analyzer: { type: 'string' },
  16740. defaultOperator: {
  16741. type: 'enum',
  16742. default: 'OR',
  16743. options: ['AND', 'OR'],
  16744. name: 'default_operator'
  16745. },
  16746. df: { type: 'string' },
  16747. storedFields: { type: 'list', name: 'stored_fields' },
  16748. lenient: { type: 'boolean' },
  16749. preference: { type: 'string' },
  16750. q: { type: 'string' },
  16751. routing: { type: 'string' },
  16752. _source: { type: 'list' },
  16753. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  16754. _sourceIncludes: { type: 'list', name: '_source_includes' }
  16755. },
  16756. url: {
  16757. fmt: '/<%=index%>/_explain/<%=id%>',
  16758. req: { index: { type: 'string' }, id: { type: 'string' } }
  16759. },
  16760. method: 'POST'
  16761. })),
  16762. (f.fieldCaps = d({
  16763. params: {
  16764. fields: { type: 'list' },
  16765. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  16766. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  16767. expandWildcards: {
  16768. type: 'enum',
  16769. default: 'open',
  16770. options: ['open', 'closed', 'none', 'all'],
  16771. name: 'expand_wildcards'
  16772. },
  16773. includeUnmapped: { type: 'boolean', default: !1, name: 'include_unmapped' }
  16774. },
  16775. urls: [
  16776. { fmt: '/<%=index%>/_field_caps', req: { index: { type: 'list' } } },
  16777. { fmt: '/_field_caps' }
  16778. ],
  16779. method: 'POST'
  16780. })),
  16781. (f.get = d({
  16782. params: {
  16783. storedFields: { type: 'list', name: 'stored_fields' },
  16784. preference: { type: 'string' },
  16785. realtime: { type: 'boolean' },
  16786. refresh: { type: 'boolean' },
  16787. routing: { type: 'string' },
  16788. _source: { type: 'list' },
  16789. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  16790. _sourceIncludes: { type: 'list', name: '_source_includes' },
  16791. version: { type: 'number' },
  16792. versionType: {
  16793. type: 'enum',
  16794. options: ['internal', 'external', 'external_gte', 'force'],
  16795. name: 'version_type'
  16796. }
  16797. },
  16798. url: {
  16799. fmt: '/<%=index%>/_doc/<%=id%>',
  16800. req: { index: { type: 'string' }, id: { type: 'string' } }
  16801. }
  16802. })),
  16803. (f.getScript = d({
  16804. params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
  16805. url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
  16806. })),
  16807. (f.getSource = d({
  16808. params: {
  16809. preference: { type: 'string' },
  16810. realtime: { type: 'boolean' },
  16811. refresh: { type: 'boolean' },
  16812. routing: { type: 'string' },
  16813. _source: { type: 'list' },
  16814. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  16815. _sourceIncludes: { type: 'list', name: '_source_includes' },
  16816. version: { type: 'number' },
  16817. versionType: {
  16818. type: 'enum',
  16819. options: ['internal', 'external', 'external_gte', 'force'],
  16820. name: 'version_type'
  16821. }
  16822. },
  16823. url: {
  16824. fmt: '/<%=index%>/_source/<%=id%>',
  16825. req: { index: { type: 'string' }, id: { type: 'string' } }
  16826. }
  16827. })),
  16828. (f.index = d({
  16829. params: {
  16830. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  16831. opType: { type: 'enum', default: 'index', options: ['index', 'create'], name: 'op_type' },
  16832. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  16833. routing: { type: 'string' },
  16834. timeout: { type: 'time' },
  16835. version: { type: 'number' },
  16836. versionType: {
  16837. type: 'enum',
  16838. options: ['internal', 'external', 'external_gte', 'force'],
  16839. name: 'version_type'
  16840. },
  16841. ifSeqNo: { type: 'number', name: 'if_seq_no' },
  16842. ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
  16843. pipeline: { type: 'string' }
  16844. },
  16845. urls: [
  16846. {
  16847. fmt: '/<%=index%>/_doc/<%=id%>',
  16848. req: { index: { type: 'string' }, id: { type: 'string' } }
  16849. },
  16850. { fmt: '/<%=index%>/_doc', req: { index: { type: 'string' } } }
  16851. ],
  16852. needBody: !0,
  16853. method: 'POST'
  16854. })),
  16855. (f.indices = e()),
  16856. (f.indices.prototype.analyze = d({
  16857. params: { index: { type: 'string' } },
  16858. urls: [
  16859. { fmt: '/<%=index%>/_analyze', req: { index: { type: 'string' } } },
  16860. { fmt: '/_analyze' }
  16861. ],
  16862. method: 'POST'
  16863. })),
  16864. (f.indices.prototype.clearCache = d({
  16865. params: {
  16866. fielddata: { type: 'boolean' },
  16867. fields: { type: 'list' },
  16868. query: { type: 'boolean' },
  16869. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  16870. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  16871. expandWildcards: {
  16872. type: 'enum',
  16873. default: 'open',
  16874. options: ['open', 'closed', 'none', 'all'],
  16875. name: 'expand_wildcards'
  16876. },
  16877. index: { type: 'list' },
  16878. request: { type: 'boolean' }
  16879. },
  16880. urls: [
  16881. { fmt: '/<%=index%>/_cache/clear', req: { index: { type: 'list' } } },
  16882. { fmt: '/_cache/clear' }
  16883. ],
  16884. method: 'POST'
  16885. })),
  16886. (f.indices.prototype.close = d({
  16887. params: {
  16888. timeout: { type: 'time' },
  16889. masterTimeout: { type: 'time', name: 'master_timeout' },
  16890. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  16891. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  16892. expandWildcards: {
  16893. type: 'enum',
  16894. default: 'open',
  16895. options: ['open', 'closed', 'none', 'all'],
  16896. name: 'expand_wildcards'
  16897. },
  16898. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  16899. },
  16900. url: { fmt: '/<%=index%>/_close', req: { index: { type: 'list' } } },
  16901. method: 'POST'
  16902. })),
  16903. (f.indices.prototype.create = d({
  16904. params: {
  16905. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  16906. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  16907. timeout: { type: 'time' },
  16908. masterTimeout: { type: 'time', name: 'master_timeout' }
  16909. },
  16910. url: { fmt: '/<%=index%>', req: { index: { type: 'string' } } },
  16911. method: 'PUT'
  16912. })),
  16913. (f.indices.prototype.delete = d({
  16914. params: {
  16915. timeout: { type: 'time' },
  16916. masterTimeout: { type: 'time', name: 'master_timeout' },
  16917. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  16918. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  16919. expandWildcards: {
  16920. type: 'enum',
  16921. default: 'open',
  16922. options: ['open', 'closed', 'none', 'all'],
  16923. name: 'expand_wildcards'
  16924. }
  16925. },
  16926. url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
  16927. method: 'DELETE'
  16928. })),
  16929. (f.indices.prototype.deleteAlias = d({
  16930. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  16931. url: {
  16932. fmt: '/<%=index%>/_alias/<%=name%>',
  16933. req: { index: { type: 'list' }, name: { type: 'list' } }
  16934. },
  16935. method: 'DELETE'
  16936. })),
  16937. (f.indices.prototype.deleteTemplate = d({
  16938. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  16939. url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
  16940. method: 'DELETE'
  16941. })),
  16942. (f.indices.prototype.exists = d({
  16943. params: {
  16944. local: { type: 'boolean' },
  16945. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  16946. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  16947. expandWildcards: {
  16948. type: 'enum',
  16949. default: 'open',
  16950. options: ['open', 'closed', 'none', 'all'],
  16951. name: 'expand_wildcards'
  16952. },
  16953. flatSettings: { type: 'boolean', name: 'flat_settings' },
  16954. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
  16955. },
  16956. url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
  16957. method: 'HEAD'
  16958. })),
  16959. (f.indices.prototype.existsAlias = d({
  16960. params: {
  16961. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  16962. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  16963. expandWildcards: {
  16964. type: 'enum',
  16965. default: 'all',
  16966. options: ['open', 'closed', 'none', 'all'],
  16967. name: 'expand_wildcards'
  16968. },
  16969. local: { type: 'boolean' }
  16970. },
  16971. urls: [
  16972. {
  16973. fmt: '/<%=index%>/_alias/<%=name%>',
  16974. req: { index: { type: 'list' }, name: { type: 'list' } }
  16975. },
  16976. { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } }
  16977. ],
  16978. method: 'HEAD'
  16979. })),
  16980. (f.indices.prototype.existsTemplate = d({
  16981. params: {
  16982. flatSettings: { type: 'boolean', name: 'flat_settings' },
  16983. masterTimeout: { type: 'time', name: 'master_timeout' },
  16984. local: { type: 'boolean' }
  16985. },
  16986. url: { fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } },
  16987. method: 'HEAD'
  16988. })),
  16989. (f.indices.prototype.existsType = d({
  16990. params: {
  16991. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  16992. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  16993. expandWildcards: {
  16994. type: 'enum',
  16995. default: 'open',
  16996. options: ['open', 'closed', 'none', 'all'],
  16997. name: 'expand_wildcards'
  16998. },
  16999. local: { type: 'boolean' }
  17000. },
  17001. url: {
  17002. fmt: '/<%=index%>/_mapping/<%=type%>',
  17003. req: { index: { type: 'list' }, type: { type: 'list' } }
  17004. },
  17005. method: 'HEAD'
  17006. })),
  17007. (f.indices.prototype.flush = d({
  17008. params: {
  17009. force: { type: 'boolean' },
  17010. waitIfOngoing: { type: 'boolean', name: 'wait_if_ongoing' },
  17011. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  17012. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  17013. expandWildcards: {
  17014. type: 'enum',
  17015. default: 'open',
  17016. options: ['open', 'closed', 'none', 'all'],
  17017. name: 'expand_wildcards'
  17018. }
  17019. },
  17020. urls: [{ fmt: '/<%=index%>/_flush', req: { index: { type: 'list' } } }, { fmt: '/_flush' }],
  17021. method: 'POST'
  17022. })),
  17023. (f.indices.prototype.flushSynced = d({
  17024. params: {
  17025. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  17026. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  17027. expandWildcards: {
  17028. type: 'enum',
  17029. default: 'open',
  17030. options: ['open', 'closed', 'none', 'all'],
  17031. name: 'expand_wildcards'
  17032. }
  17033. },
  17034. urls: [
  17035. { fmt: '/<%=index%>/_flush/synced', req: { index: { type: 'list' } } },
  17036. { fmt: '/_flush/synced' }
  17037. ],
  17038. method: 'POST'
  17039. })),
  17040. (f.indices.prototype.forcemerge = d({
  17041. params: {
  17042. flush: { type: 'boolean' },
  17043. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  17044. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  17045. expandWildcards: {
  17046. type: 'enum',
  17047. default: 'open',
  17048. options: ['open', 'closed', 'none', 'all'],
  17049. name: 'expand_wildcards'
  17050. },
  17051. maxNumSegments: { type: 'number', name: 'max_num_segments' },
  17052. onlyExpungeDeletes: { type: 'boolean', name: 'only_expunge_deletes' }
  17053. },
  17054. urls: [
  17055. { fmt: '/<%=index%>/_forcemerge', req: { index: { type: 'list' } } },
  17056. { fmt: '/_forcemerge' }
  17057. ],
  17058. method: 'POST'
  17059. })),
  17060. (f.indices.prototype.get = d({
  17061. params: {
  17062. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  17063. local: { type: 'boolean' },
  17064. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  17065. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  17066. expandWildcards: {
  17067. type: 'enum',
  17068. default: 'open',
  17069. options: ['open', 'closed', 'none', 'all'],
  17070. name: 'expand_wildcards'
  17071. },
  17072. flatSettings: { type: 'boolean', name: 'flat_settings' },
  17073. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' },
  17074. masterTimeout: { type: 'time', name: 'master_timeout' }
  17075. },
  17076. url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } }
  17077. })),
  17078. (f.indices.prototype.getAlias = d({
  17079. params: {
  17080. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  17081. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  17082. expandWildcards: {
  17083. type: 'enum',
  17084. default: 'all',
  17085. options: ['open', 'closed', 'none', 'all'],
  17086. name: 'expand_wildcards'
  17087. },
  17088. local: { type: 'boolean' }
  17089. },
  17090. urls: [
  17091. {
  17092. fmt: '/<%=index%>/_alias/<%=name%>',
  17093. req: { index: { type: 'list' }, name: { type: 'list' } }
  17094. },
  17095. { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } },
  17096. { fmt: '/<%=index%>/_alias', req: { index: { type: 'list' } } },
  17097. { fmt: '/_alias' }
  17098. ]
  17099. })),
  17100. (f.indices.prototype.getFieldMapping = d({
  17101. params: {
  17102. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  17103. includeDefaults: { type: 'boolean', name: 'include_defaults' },
  17104. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  17105. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  17106. expandWildcards: {
  17107. type: 'enum',
  17108. default: 'open',
  17109. options: ['open', 'closed', 'none', 'all'],
  17110. name: 'expand_wildcards'
  17111. },
  17112. local: { type: 'boolean' }
  17113. },
  17114. urls: [
  17115. {
  17116. fmt: '/<%=index%>/_mapping/field/<%=fields%>',
  17117. req: { index: { type: 'list' }, fields: { type: 'list' } }
  17118. },
  17119. { fmt: '/_mapping/field/<%=fields%>', req: { fields: { type: 'list' } } }
  17120. ]
  17121. })),
  17122. (f.indices.prototype.getMapping = d({
  17123. params: {
  17124. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  17125. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  17126. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  17127. expandWildcards: {
  17128. type: 'enum',
  17129. default: 'open',
  17130. options: ['open', 'closed', 'none', 'all'],
  17131. name: 'expand_wildcards'
  17132. },
  17133. masterTimeout: { type: 'time', name: 'master_timeout' },
  17134. local: { type: 'boolean' }
  17135. },
  17136. urls: [{ fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } }, { fmt: '/_mapping' }]
  17137. })),
  17138. (f.indices.prototype.getSettings = d({
  17139. params: {
  17140. masterTimeout: { type: 'time', name: 'master_timeout' },
  17141. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  17142. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  17143. expandWildcards: {
  17144. type: 'enum',
  17145. default: ['open', 'closed'],
  17146. options: ['open', 'closed', 'none', 'all'],
  17147. name: 'expand_wildcards'
  17148. },
  17149. flatSettings: { type: 'boolean', name: 'flat_settings' },
  17150. local: { type: 'boolean' },
  17151. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
  17152. },
  17153. urls: [
  17154. {
  17155. fmt: '/<%=index%>/_settings/<%=name%>',
  17156. req: { index: { type: 'list' }, name: { type: 'list' } }
  17157. },
  17158. { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
  17159. { fmt: '/_settings/<%=name%>', req: { name: { type: 'list' } } },
  17160. { fmt: '/_settings' }
  17161. ]
  17162. })),
  17163. (f.indices.prototype.getTemplate = d({
  17164. params: {
  17165. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  17166. flatSettings: { type: 'boolean', name: 'flat_settings' },
  17167. masterTimeout: { type: 'time', name: 'master_timeout' },
  17168. local: { type: 'boolean' }
  17169. },
  17170. urls: [{ fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } }, { fmt: '/_template' }]
  17171. })),
  17172. (f.indices.prototype.getUpgrade = d({
  17173. params: {
  17174. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  17175. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  17176. expandWildcards: {
  17177. type: 'enum',
  17178. default: 'open',
  17179. options: ['open', 'closed', 'none', 'all'],
  17180. name: 'expand_wildcards'
  17181. }
  17182. },
  17183. urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }]
  17184. })),
  17185. (f.indices.prototype.open = d({
  17186. params: {
  17187. timeout: { type: 'time' },
  17188. masterTimeout: { type: 'time', name: 'master_timeout' },
  17189. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  17190. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  17191. expandWildcards: {
  17192. type: 'enum',
  17193. default: 'closed',
  17194. options: ['open', 'closed', 'none', 'all'],
  17195. name: 'expand_wildcards'
  17196. },
  17197. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  17198. },
  17199. url: { fmt: '/<%=index%>/_open', req: { index: { type: 'list' } } },
  17200. method: 'POST'
  17201. })),
  17202. (f.indices.prototype.putAlias = d({
  17203. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  17204. url: {
  17205. fmt: '/<%=index%>/_alias/<%=name%>',
  17206. req: { index: { type: 'list' }, name: { type: 'string' } }
  17207. },
  17208. method: 'PUT'
  17209. })),
  17210. (f.indices.prototype.putMapping = d({
  17211. params: {
  17212. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  17213. timeout: { type: 'time' },
  17214. masterTimeout: { type: 'time', name: 'master_timeout' },
  17215. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  17216. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  17217. expandWildcards: {
  17218. type: 'enum',
  17219. default: 'open',
  17220. options: ['open', 'closed', 'none', 'all'],
  17221. name: 'expand_wildcards'
  17222. }
  17223. },
  17224. url: { fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } },
  17225. needBody: !0,
  17226. method: 'PUT'
  17227. })),
  17228. (f.indices.prototype.putSettings = d({
  17229. params: {
  17230. masterTimeout: { type: 'time', name: 'master_timeout' },
  17231. timeout: { type: 'time' },
  17232. preserveExisting: { type: 'boolean', name: 'preserve_existing' },
  17233. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  17234. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  17235. expandWildcards: {
  17236. type: 'enum',
  17237. default: 'open',
  17238. options: ['open', 'closed', 'none', 'all'],
  17239. name: 'expand_wildcards'
  17240. },
  17241. flatSettings: { type: 'boolean', name: 'flat_settings' }
  17242. },
  17243. urls: [
  17244. { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
  17245. { fmt: '/_settings' }
  17246. ],
  17247. needBody: !0,
  17248. method: 'PUT'
  17249. })),
  17250. (f.indices.prototype.putTemplate = d({
  17251. params: {
  17252. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  17253. order: { type: 'number' },
  17254. create: { type: 'boolean', default: !1 },
  17255. timeout: { type: 'time' },
  17256. masterTimeout: { type: 'time', name: 'master_timeout' },
  17257. flatSettings: { type: 'boolean', name: 'flat_settings' }
  17258. },
  17259. url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
  17260. needBody: !0,
  17261. method: 'PUT'
  17262. })),
  17263. (f.indices.prototype.recovery = d({
  17264. params: {
  17265. detailed: { type: 'boolean', default: !1 },
  17266. activeOnly: { type: 'boolean', default: !1, name: 'active_only' }
  17267. },
  17268. urls: [
  17269. { fmt: '/<%=index%>/_recovery', req: { index: { type: 'list' } } },
  17270. { fmt: '/_recovery' }
  17271. ]
  17272. })),
  17273. (f.indices.prototype.refresh = d({
  17274. params: {
  17275. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  17276. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  17277. expandWildcards: {
  17278. type: 'enum',
  17279. default: 'open',
  17280. options: ['open', 'closed', 'none', 'all'],
  17281. name: 'expand_wildcards'
  17282. }
  17283. },
  17284. urls: [{ fmt: '/<%=index%>/_refresh', req: { index: { type: 'list' } } }, { fmt: '/_refresh' }],
  17285. method: 'POST'
  17286. })),
  17287. (f.indices.prototype.rollover = d({
  17288. params: {
  17289. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  17290. timeout: { type: 'time' },
  17291. dryRun: { type: 'boolean', name: 'dry_run' },
  17292. masterTimeout: { type: 'time', name: 'master_timeout' },
  17293. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  17294. },
  17295. urls: [
  17296. {
  17297. fmt: '/<%=alias%>/_rollover/<%=newIndex%>',
  17298. req: { alias: { type: 'string' }, newIndex: { type: 'string' } }
  17299. },
  17300. { fmt: '/<%=alias%>/_rollover', req: { alias: { type: 'string' } } }
  17301. ],
  17302. method: 'POST'
  17303. })),
  17304. (f.indices.prototype.segments = d({
  17305. params: {
  17306. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  17307. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  17308. expandWildcards: {
  17309. type: 'enum',
  17310. default: 'open',
  17311. options: ['open', 'closed', 'none', 'all'],
  17312. name: 'expand_wildcards'
  17313. },
  17314. verbose: { type: 'boolean', default: !1 }
  17315. },
  17316. urls: [
  17317. { fmt: '/<%=index%>/_segments', req: { index: { type: 'list' } } },
  17318. { fmt: '/_segments' }
  17319. ]
  17320. })),
  17321. (f.indices.prototype.shardStores = d({
  17322. params: {
  17323. status: { type: 'list', options: ['green', 'yellow', 'red', 'all'] },
  17324. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  17325. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  17326. expandWildcards: {
  17327. type: 'enum',
  17328. default: 'open',
  17329. options: ['open', 'closed', 'none', 'all'],
  17330. name: 'expand_wildcards'
  17331. }
  17332. },
  17333. urls: [
  17334. { fmt: '/<%=index%>/_shard_stores', req: { index: { type: 'list' } } },
  17335. { fmt: '/_shard_stores' }
  17336. ]
  17337. })),
  17338. (f.indices.prototype.shrink = d({
  17339. params: {
  17340. copySettings: { type: 'boolean', name: 'copy_settings' },
  17341. timeout: { type: 'time' },
  17342. masterTimeout: { type: 'time', name: 'master_timeout' },
  17343. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  17344. },
  17345. url: {
  17346. fmt: '/<%=index%>/_shrink/<%=target%>',
  17347. req: { index: { type: 'string' }, target: { type: 'string' } }
  17348. },
  17349. method: 'POST'
  17350. })),
  17351. (f.indices.prototype.split = d({
  17352. params: {
  17353. copySettings: { type: 'boolean', name: 'copy_settings' },
  17354. timeout: { type: 'time' },
  17355. masterTimeout: { type: 'time', name: 'master_timeout' },
  17356. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  17357. },
  17358. url: {
  17359. fmt: '/<%=index%>/_split/<%=target%>',
  17360. req: { index: { type: 'string' }, target: { type: 'string' } }
  17361. },
  17362. method: 'POST'
  17363. })),
  17364. (f.indices.prototype.stats = d({
  17365. params: {
  17366. completionFields: { type: 'list', name: 'completion_fields' },
  17367. fielddataFields: { type: 'list', name: 'fielddata_fields' },
  17368. fields: { type: 'list' },
  17369. groups: { type: 'list' },
  17370. level: { type: 'enum', default: 'indices', options: ['cluster', 'indices', 'shards'] },
  17371. types: { type: 'list' },
  17372. includeSegmentFileSizes: {
  17373. type: 'boolean',
  17374. default: !1,
  17375. name: 'include_segment_file_sizes'
  17376. },
  17377. includeUnloadedSegments: {
  17378. type: 'boolean',
  17379. default: !1,
  17380. name: 'include_unloaded_segments'
  17381. },
  17382. expandWildcards: {
  17383. type: 'enum',
  17384. default: 'open',
  17385. options: ['open', 'closed', 'none', 'all'],
  17386. name: 'expand_wildcards'
  17387. },
  17388. forbidClosedIndices: { type: 'boolean', default: !0, name: 'forbid_closed_indices' }
  17389. },
  17390. urls: [
  17391. {
  17392. fmt: '/<%=index%>/_stats/<%=metric%>',
  17393. req: {
  17394. index: { type: 'list' },
  17395. metric: {
  17396. type: 'list',
  17397. options: [
  17398. '_all',
  17399. 'completion',
  17400. 'docs',
  17401. 'fielddata',
  17402. 'query_cache',
  17403. 'flush',
  17404. 'get',
  17405. 'indexing',
  17406. 'merge',
  17407. 'request_cache',
  17408. 'refresh',
  17409. 'search',
  17410. 'segments',
  17411. 'store',
  17412. 'warmer',
  17413. 'suggest'
  17414. ]
  17415. }
  17416. }
  17417. },
  17418. {
  17419. fmt: '/_stats/<%=metric%>',
  17420. req: {
  17421. metric: {
  17422. type: 'list',
  17423. options: [
  17424. '_all',
  17425. 'completion',
  17426. 'docs',
  17427. 'fielddata',
  17428. 'query_cache',
  17429. 'flush',
  17430. 'get',
  17431. 'indexing',
  17432. 'merge',
  17433. 'request_cache',
  17434. 'refresh',
  17435. 'search',
  17436. 'segments',
  17437. 'store',
  17438. 'warmer',
  17439. 'suggest'
  17440. ]
  17441. }
  17442. }
  17443. },
  17444. { fmt: '/<%=index%>/_stats', req: { index: { type: 'list' } } },
  17445. { fmt: '/_stats' }
  17446. ]
  17447. })),
  17448. (f.indices.prototype.updateAliases = d({
  17449. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  17450. url: { fmt: '/_aliases' },
  17451. needBody: !0,
  17452. method: 'POST'
  17453. })),
  17454. (f.indices.prototype.upgrade = d({
  17455. params: {
  17456. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  17457. expandWildcards: {
  17458. type: 'enum',
  17459. default: 'open',
  17460. options: ['open', 'closed', 'none', 'all'],
  17461. name: 'expand_wildcards'
  17462. },
  17463. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  17464. waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
  17465. onlyAncientSegments: { type: 'boolean', name: 'only_ancient_segments' }
  17466. },
  17467. urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }],
  17468. method: 'POST'
  17469. })),
  17470. (f.indices.prototype.validateQuery = d({
  17471. params: {
  17472. explain: { type: 'boolean' },
  17473. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  17474. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  17475. expandWildcards: {
  17476. type: 'enum',
  17477. default: 'open',
  17478. options: ['open', 'closed', 'none', 'all'],
  17479. name: 'expand_wildcards'
  17480. },
  17481. q: { type: 'string' },
  17482. analyzer: { type: 'string' },
  17483. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  17484. defaultOperator: {
  17485. type: 'enum',
  17486. default: 'OR',
  17487. options: ['AND', 'OR'],
  17488. name: 'default_operator'
  17489. },
  17490. df: { type: 'string' },
  17491. lenient: { type: 'boolean' },
  17492. rewrite: { type: 'boolean' },
  17493. allShards: { type: 'boolean', name: 'all_shards' }
  17494. },
  17495. urls: [
  17496. { fmt: '/<%=index%>/_validate/query', req: { index: { type: 'list' } } },
  17497. { fmt: '/_validate/query' }
  17498. ],
  17499. method: 'POST'
  17500. })),
  17501. (f.info = d({ url: { fmt: '/' } })),
  17502. (f.ingest = e()),
  17503. (f.ingest.prototype.deletePipeline = d({
  17504. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  17505. url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
  17506. method: 'DELETE'
  17507. })),
  17508. (f.ingest.prototype.getPipeline = d({
  17509. params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
  17510. urls: [
  17511. { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
  17512. { fmt: '/_ingest/pipeline' }
  17513. ]
  17514. })),
  17515. (f.ingest.prototype.processorGrok = d({ url: { fmt: '/_ingest/processor/grok' } })),
  17516. (f.ingest.prototype.putPipeline = d({
  17517. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  17518. url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
  17519. needBody: !0,
  17520. method: 'PUT'
  17521. })),
  17522. (f.ingest.prototype.simulate = d({
  17523. params: { verbose: { type: 'boolean', default: !1 } },
  17524. urls: [
  17525. { fmt: '/_ingest/pipeline/<%=id%>/_simulate', req: { id: { type: 'string' } } },
  17526. { fmt: '/_ingest/pipeline/_simulate' }
  17527. ],
  17528. needBody: !0,
  17529. method: 'POST'
  17530. })),
  17531. (f.mget = d({
  17532. params: {
  17533. storedFields: { type: 'list', name: 'stored_fields' },
  17534. preference: { type: 'string' },
  17535. realtime: { type: 'boolean' },
  17536. refresh: { type: 'boolean' },
  17537. routing: { type: 'string' },
  17538. _source: { type: 'list' },
  17539. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  17540. _sourceIncludes: { type: 'list', name: '_source_includes' }
  17541. },
  17542. urls: [{ fmt: '/<%=index%>/_mget', req: { index: { type: 'string' } } }, { fmt: '/_mget' }],
  17543. needBody: !0,
  17544. method: 'POST'
  17545. })),
  17546. (f.msearch = d({
  17547. params: {
  17548. searchType: {
  17549. type: 'enum',
  17550. options: [
  17551. 'query_then_fetch',
  17552. 'query_and_fetch',
  17553. 'dfs_query_then_fetch',
  17554. 'dfs_query_and_fetch'
  17555. ],
  17556. name: 'search_type'
  17557. },
  17558. maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
  17559. typedKeys: { type: 'boolean', name: 'typed_keys' },
  17560. preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
  17561. maxConcurrentShardRequests: {
  17562. type: 'number',
  17563. default: 5,
  17564. name: 'max_concurrent_shard_requests'
  17565. },
  17566. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
  17567. ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
  17568. },
  17569. urls: [{ fmt: '/<%=index%>/_msearch', req: { index: { type: 'list' } } }, { fmt: '/_msearch' }],
  17570. needBody: !0,
  17571. bulkBody: !0,
  17572. method: 'POST'
  17573. })),
  17574. (f.msearchTemplate = d({
  17575. params: {
  17576. searchType: {
  17577. type: 'enum',
  17578. options: [
  17579. 'query_then_fetch',
  17580. 'query_and_fetch',
  17581. 'dfs_query_then_fetch',
  17582. 'dfs_query_and_fetch'
  17583. ],
  17584. name: 'search_type'
  17585. },
  17586. typedKeys: { type: 'boolean', name: 'typed_keys' },
  17587. maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
  17588. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
  17589. ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
  17590. },
  17591. urls: [
  17592. { fmt: '/<%=index%>/_msearch/template', req: { index: { type: 'list' } } },
  17593. { fmt: '/_msearch/template' }
  17594. ],
  17595. needBody: !0,
  17596. bulkBody: !0,
  17597. method: 'POST'
  17598. })),
  17599. (f.mtermvectors = d({
  17600. params: {
  17601. ids: { type: 'list', required: !1 },
  17602. termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
  17603. fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
  17604. fields: { type: 'list', required: !1 },
  17605. offsets: { type: 'boolean', default: !0, required: !1 },
  17606. positions: { type: 'boolean', default: !0, required: !1 },
  17607. payloads: { type: 'boolean', default: !0, required: !1 },
  17608. preference: { type: 'string', required: !1 },
  17609. routing: { type: 'string', required: !1 },
  17610. realtime: { type: 'boolean', required: !1 },
  17611. version: { type: 'number' },
  17612. versionType: {
  17613. type: 'enum',
  17614. options: ['internal', 'external', 'external_gte', 'force'],
  17615. name: 'version_type'
  17616. }
  17617. },
  17618. urls: [
  17619. { fmt: '/<%=index%>/_mtermvectors', req: { index: { type: 'string' } } },
  17620. { fmt: '/_mtermvectors' }
  17621. ],
  17622. method: 'POST'
  17623. })),
  17624. (f.nodes = e()),
  17625. (f.nodes.prototype.hotThreads = d({
  17626. params: {
  17627. interval: { type: 'time' },
  17628. snapshots: { type: 'number' },
  17629. threads: { type: 'number' },
  17630. ignoreIdleThreads: { type: 'boolean', name: 'ignore_idle_threads' },
  17631. type: { type: 'enum', options: ['cpu', 'wait', 'block'] },
  17632. timeout: { type: 'time' }
  17633. },
  17634. url: {}
  17635. })),
  17636. (f.nodes.prototype.info = d({
  17637. params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
  17638. urls: [
  17639. {
  17640. fmt: '/_nodes/<%=nodeId%>/<%=metric%>',
  17641. req: {
  17642. nodeId: { type: 'list' },
  17643. metric: {
  17644. type: 'list',
  17645. options: [
  17646. 'settings',
  17647. 'os',
  17648. 'process',
  17649. 'jvm',
  17650. 'thread_pool',
  17651. 'transport',
  17652. 'http',
  17653. 'plugins',
  17654. 'ingest'
  17655. ]
  17656. }
  17657. }
  17658. },
  17659. { fmt: '/_nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
  17660. {
  17661. fmt: '/_nodes/<%=metric%>',
  17662. req: {
  17663. metric: {
  17664. type: 'list',
  17665. options: [
  17666. 'settings',
  17667. 'os',
  17668. 'process',
  17669. 'jvm',
  17670. 'thread_pool',
  17671. 'transport',
  17672. 'http',
  17673. 'plugins',
  17674. 'ingest'
  17675. ]
  17676. }
  17677. }
  17678. },
  17679. { fmt: '/_nodes' }
  17680. ]
  17681. })),
  17682. (f.nodes.prototype.reloadSecureSettings = d({
  17683. params: { timeout: { type: 'time' } },
  17684. urls: [
  17685. { fmt: '/_nodes/<%=nodeId%>/reload_secure_settings', req: { nodeId: { type: 'list' } } },
  17686. { fmt: '/_nodes/reload_secure_settings' }
  17687. ],
  17688. method: 'POST'
  17689. })),
  17690. (f.nodes.prototype.stats = d({
  17691. params: {
  17692. completionFields: { type: 'list', name: 'completion_fields' },
  17693. fielddataFields: { type: 'list', name: 'fielddata_fields' },
  17694. fields: { type: 'list' },
  17695. groups: { type: 'boolean' },
  17696. level: { type: 'enum', default: 'node', options: ['indices', 'node', 'shards'] },
  17697. types: { type: 'list' },
  17698. timeout: { type: 'time' },
  17699. includeSegmentFileSizes: {
  17700. type: 'boolean',
  17701. default: !1,
  17702. name: 'include_segment_file_sizes'
  17703. }
  17704. },
  17705. urls: [
  17706. {
  17707. fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>',
  17708. req: {
  17709. nodeId: { type: 'list' },
  17710. metric: {
  17711. type: 'list',
  17712. options: [
  17713. '_all',
  17714. 'breaker',
  17715. 'fs',
  17716. 'http',
  17717. 'indices',
  17718. 'jvm',
  17719. 'os',
  17720. 'process',
  17721. 'thread_pool',
  17722. 'transport',
  17723. 'discovery'
  17724. ]
  17725. },
  17726. indexMetric: {
  17727. type: 'list',
  17728. options: [
  17729. '_all',
  17730. 'completion',
  17731. 'docs',
  17732. 'fielddata',
  17733. 'query_cache',
  17734. 'flush',
  17735. 'get',
  17736. 'indexing',
  17737. 'merge',
  17738. 'request_cache',
  17739. 'refresh',
  17740. 'search',
  17741. 'segments',
  17742. 'store',
  17743. 'warmer',
  17744. 'suggest'
  17745. ]
  17746. }
  17747. }
  17748. },
  17749. {
  17750. fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>',
  17751. req: {
  17752. nodeId: { type: 'list' },
  17753. metric: {
  17754. type: 'list',
  17755. options: [
  17756. '_all',
  17757. 'breaker',
  17758. 'fs',
  17759. 'http',
  17760. 'indices',
  17761. 'jvm',
  17762. 'os',
  17763. 'process',
  17764. 'thread_pool',
  17765. 'transport',
  17766. 'discovery'
  17767. ]
  17768. }
  17769. }
  17770. },
  17771. {
  17772. fmt: '/_nodes/stats/<%=metric%>/<%=indexMetric%>',
  17773. req: {
  17774. metric: {
  17775. type: 'list',
  17776. options: [
  17777. '_all',
  17778. 'breaker',
  17779. 'fs',
  17780. 'http',
  17781. 'indices',
  17782. 'jvm',
  17783. 'os',
  17784. 'process',
  17785. 'thread_pool',
  17786. 'transport',
  17787. 'discovery'
  17788. ]
  17789. },
  17790. indexMetric: {
  17791. type: 'list',
  17792. options: [
  17793. '_all',
  17794. 'completion',
  17795. 'docs',
  17796. 'fielddata',
  17797. 'query_cache',
  17798. 'flush',
  17799. 'get',
  17800. 'indexing',
  17801. 'merge',
  17802. 'request_cache',
  17803. 'refresh',
  17804. 'search',
  17805. 'segments',
  17806. 'store',
  17807. 'warmer',
  17808. 'suggest'
  17809. ]
  17810. }
  17811. }
  17812. },
  17813. { fmt: '/_nodes/<%=nodeId%>/stats', req: { nodeId: { type: 'list' } } },
  17814. {
  17815. fmt: '/_nodes/stats/<%=metric%>',
  17816. req: {
  17817. metric: {
  17818. type: 'list',
  17819. options: [
  17820. '_all',
  17821. 'breaker',
  17822. 'fs',
  17823. 'http',
  17824. 'indices',
  17825. 'jvm',
  17826. 'os',
  17827. 'process',
  17828. 'thread_pool',
  17829. 'transport',
  17830. 'discovery'
  17831. ]
  17832. }
  17833. }
  17834. },
  17835. { fmt: '/_nodes/stats' }
  17836. ]
  17837. })),
  17838. (f.nodes.prototype.usage = d({
  17839. params: { timeout: { type: 'time' } },
  17840. urls: [
  17841. {
  17842. fmt: '/_nodes/<%=nodeId%>/usage/<%=metric%>',
  17843. req: {
  17844. nodeId: { type: 'list' },
  17845. metric: { type: 'list', options: ['_all', 'rest_actions'] }
  17846. }
  17847. },
  17848. { fmt: '/_nodes/<%=nodeId%>/usage', req: { nodeId: { type: 'list' } } },
  17849. {
  17850. fmt: '/_nodes/usage/<%=metric%>',
  17851. req: { metric: { type: 'list', options: ['_all', 'rest_actions'] } }
  17852. },
  17853. { fmt: '/_nodes/usage' }
  17854. ]
  17855. })),
  17856. (f.ping = d({ url: { fmt: '/' }, method: 'HEAD' })),
  17857. (f.putScript = d({
  17858. params: {
  17859. timeout: { type: 'time' },
  17860. masterTimeout: { type: 'time', name: 'master_timeout' },
  17861. context: { type: 'string' }
  17862. },
  17863. urls: [
  17864. {
  17865. fmt: '/_scripts/<%=id%>/<%=context%>',
  17866. req: { id: { type: 'string' }, context: { type: 'string' } }
  17867. },
  17868. { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
  17869. ],
  17870. needBody: !0,
  17871. method: 'PUT'
  17872. })),
  17873. (f.rankEval = d({
  17874. params: {
  17875. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  17876. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  17877. expandWildcards: {
  17878. type: 'enum',
  17879. default: 'open',
  17880. options: ['open', 'closed', 'none', 'all'],
  17881. name: 'expand_wildcards'
  17882. }
  17883. },
  17884. urls: [
  17885. { fmt: '/<%=index%>/_rank_eval', req: { index: { type: 'list' } } },
  17886. { fmt: '/_rank_eval' }
  17887. ],
  17888. needBody: !0,
  17889. method: 'POST'
  17890. })),
  17891. (f.reindex = d({
  17892. params: {
  17893. refresh: { type: 'boolean' },
  17894. timeout: { type: 'time', default: '1m' },
  17895. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  17896. waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
  17897. requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
  17898. scroll: { type: 'time', default: '5m' },
  17899. slices: { type: 'number', default: 1 },
  17900. maxDocs: { type: 'number', name: 'max_docs' }
  17901. },
  17902. url: { fmt: '/_reindex' },
  17903. needBody: !0,
  17904. method: 'POST'
  17905. })),
  17906. (f.reindexRethrottle = d({
  17907. params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
  17908. url: { fmt: '/_reindex/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
  17909. method: 'POST'
  17910. })),
  17911. (f.renderSearchTemplate = d({
  17912. urls: [
  17913. { fmt: '/_render/template/<%=id%>', req: { id: { type: 'string' } } },
  17914. { fmt: '/_render/template' }
  17915. ],
  17916. method: 'POST'
  17917. })),
  17918. (f.scriptsPainlessExecute = d({ url: { fmt: '/_scripts/painless/_execute' }, method: 'POST' })),
  17919. (f.scroll = d({
  17920. params: {
  17921. scroll: { type: 'time' },
  17922. scrollId: { type: 'string', name: 'scroll_id' },
  17923. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
  17924. },
  17925. url: { fmt: '/_search/scroll' },
  17926. paramAsBody: { param: 'scrollId', body: 'scroll_id' },
  17927. method: 'POST'
  17928. })),
  17929. (f.search = d({
  17930. params: {
  17931. analyzer: { type: 'string' },
  17932. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  17933. ccsMinimizeRoundtrips: {
  17934. type: 'boolean',
  17935. default: 'true',
  17936. name: 'ccs_minimize_roundtrips'
  17937. },
  17938. defaultOperator: {
  17939. type: 'enum',
  17940. default: 'OR',
  17941. options: ['AND', 'OR'],
  17942. name: 'default_operator'
  17943. },
  17944. df: { type: 'string' },
  17945. explain: { type: 'boolean' },
  17946. storedFields: { type: 'list', name: 'stored_fields' },
  17947. docvalueFields: { type: 'list', name: 'docvalue_fields' },
  17948. from: { type: 'number' },
  17949. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  17950. ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
  17951. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  17952. expandWildcards: {
  17953. type: 'enum',
  17954. default: 'open',
  17955. options: ['open', 'closed', 'none', 'all'],
  17956. name: 'expand_wildcards'
  17957. },
  17958. lenient: { type: 'boolean' },
  17959. preference: { type: 'string' },
  17960. q: { type: 'string' },
  17961. routing: { type: 'list' },
  17962. scroll: { type: 'time' },
  17963. searchType: {
  17964. type: 'enum',
  17965. options: ['query_then_fetch', 'dfs_query_then_fetch'],
  17966. name: 'search_type'
  17967. },
  17968. size: { type: 'number' },
  17969. sort: { type: 'list' },
  17970. _source: { type: 'list' },
  17971. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  17972. _sourceIncludes: { type: 'list', name: '_source_includes' },
  17973. terminateAfter: { type: 'number', name: 'terminate_after' },
  17974. stats: { type: 'list' },
  17975. suggestField: { type: 'string', name: 'suggest_field' },
  17976. suggestMode: {
  17977. type: 'enum',
  17978. default: 'missing',
  17979. options: ['missing', 'popular', 'always'],
  17980. name: 'suggest_mode'
  17981. },
  17982. suggestSize: { type: 'number', name: 'suggest_size' },
  17983. suggestText: { type: 'string', name: 'suggest_text' },
  17984. timeout: { type: 'time' },
  17985. trackScores: { type: 'boolean', name: 'track_scores' },
  17986. trackTotalHits: { type: 'boolean', name: 'track_total_hits' },
  17987. allowPartialSearchResults: {
  17988. type: 'boolean',
  17989. default: !0,
  17990. name: 'allow_partial_search_results'
  17991. },
  17992. typedKeys: { type: 'boolean', name: 'typed_keys' },
  17993. version: { type: 'boolean' },
  17994. seqNoPrimaryTerm: { type: 'boolean', name: 'seq_no_primary_term' },
  17995. requestCache: { type: 'boolean', name: 'request_cache' },
  17996. batchedReduceSize: { type: 'number', default: 512, name: 'batched_reduce_size' },
  17997. maxConcurrentShardRequests: {
  17998. type: 'number',
  17999. default: 5,
  18000. name: 'max_concurrent_shard_requests'
  18001. },
  18002. preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
  18003. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
  18004. },
  18005. urls: [{ fmt: '/<%=index%>/_search', req: { index: { type: 'list' } } }, { fmt: '/_search' }],
  18006. method: 'POST'
  18007. })),
  18008. (f.searchShards = d({
  18009. params: {
  18010. preference: { type: 'string' },
  18011. routing: { type: 'string' },
  18012. local: { type: 'boolean' },
  18013. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  18014. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  18015. expandWildcards: {
  18016. type: 'enum',
  18017. default: 'open',
  18018. options: ['open', 'closed', 'none', 'all'],
  18019. name: 'expand_wildcards'
  18020. }
  18021. },
  18022. urls: [
  18023. { fmt: '/<%=index%>/_search_shards', req: { index: { type: 'list' } } },
  18024. { fmt: '/_search_shards' }
  18025. ],
  18026. method: 'POST'
  18027. })),
  18028. (f.searchTemplate = d({
  18029. params: {
  18030. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  18031. ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
  18032. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  18033. expandWildcards: {
  18034. type: 'enum',
  18035. default: 'open',
  18036. options: ['open', 'closed', 'none', 'all'],
  18037. name: 'expand_wildcards'
  18038. },
  18039. preference: { type: 'string' },
  18040. routing: { type: 'list' },
  18041. scroll: { type: 'time' },
  18042. searchType: {
  18043. type: 'enum',
  18044. options: [
  18045. 'query_then_fetch',
  18046. 'query_and_fetch',
  18047. 'dfs_query_then_fetch',
  18048. 'dfs_query_and_fetch'
  18049. ],
  18050. name: 'search_type'
  18051. },
  18052. explain: { type: 'boolean' },
  18053. profile: { type: 'boolean' },
  18054. typedKeys: { type: 'boolean', name: 'typed_keys' },
  18055. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
  18056. ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
  18057. },
  18058. urls: [
  18059. { fmt: '/<%=index%>/_search/template', req: { index: { type: 'list' } } },
  18060. { fmt: '/_search/template' }
  18061. ],
  18062. needBody: !0,
  18063. method: 'POST'
  18064. })),
  18065. (f.snapshot = e()),
  18066. (f.snapshot.prototype.create = d({
  18067. params: {
  18068. masterTimeout: { type: 'time', name: 'master_timeout' },
  18069. waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
  18070. },
  18071. url: {
  18072. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
  18073. req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
  18074. },
  18075. method: 'POST'
  18076. })),
  18077. (f.snapshot.prototype.createRepository = d({
  18078. params: {
  18079. masterTimeout: { type: 'time', name: 'master_timeout' },
  18080. timeout: { type: 'time' },
  18081. verify: { type: 'boolean' }
  18082. },
  18083. url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'string' } } },
  18084. needBody: !0,
  18085. method: 'POST'
  18086. })),
  18087. (f.snapshot.prototype.delete = d({
  18088. params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
  18089. url: {
  18090. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
  18091. req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
  18092. },
  18093. method: 'DELETE'
  18094. })),
  18095. (f.snapshot.prototype.deleteRepository = d({
  18096. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  18097. url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
  18098. method: 'DELETE'
  18099. })),
  18100. (f.snapshot.prototype.get = d({
  18101. params: {
  18102. masterTimeout: { type: 'time', name: 'master_timeout' },
  18103. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  18104. verbose: { type: 'boolean' }
  18105. },
  18106. url: {
  18107. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
  18108. req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
  18109. }
  18110. })),
  18111. (f.snapshot.prototype.getRepository = d({
  18112. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, local: { type: 'boolean' } },
  18113. urls: [
  18114. { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
  18115. { fmt: '/_snapshot' }
  18116. ]
  18117. })),
  18118. (f.snapshot.prototype.restore = d({
  18119. params: {
  18120. masterTimeout: { type: 'time', name: 'master_timeout' },
  18121. waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
  18122. },
  18123. url: {
  18124. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_restore',
  18125. req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
  18126. },
  18127. method: 'POST'
  18128. })),
  18129. (f.snapshot.prototype.status = d({
  18130. params: {
  18131. masterTimeout: { type: 'time', name: 'master_timeout' },
  18132. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' }
  18133. },
  18134. urls: [
  18135. {
  18136. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_status',
  18137. req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
  18138. },
  18139. { fmt: '/_snapshot/<%=repository%>/_status', req: { repository: { type: 'string' } } },
  18140. { fmt: '/_snapshot/_status' }
  18141. ]
  18142. })),
  18143. (f.snapshot.prototype.verifyRepository = d({
  18144. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  18145. url: { fmt: '/_snapshot/<%=repository%>/_verify', req: { repository: { type: 'string' } } },
  18146. method: 'POST'
  18147. })),
  18148. (f.tasks = e()),
  18149. (f.tasks.prototype.cancel = d({
  18150. params: {
  18151. nodes: { type: 'list' },
  18152. actions: { type: 'list' },
  18153. parentTaskId: { type: 'string', name: 'parent_task_id' }
  18154. },
  18155. urls: [
  18156. { fmt: '/_tasks/<%=taskId%>/_cancel', req: { taskId: { type: 'string' } } },
  18157. { fmt: '/_tasks/_cancel' }
  18158. ],
  18159. method: 'POST'
  18160. })),
  18161. (f.tasks.prototype.get = d({
  18162. params: {
  18163. waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
  18164. timeout: { type: 'time' }
  18165. },
  18166. url: { fmt: '/_tasks/<%=taskId%>', req: { taskId: { type: 'string' } } }
  18167. })),
  18168. (f.tasks.prototype.list = d({
  18169. params: {
  18170. nodes: { type: 'list' },
  18171. actions: { type: 'list' },
  18172. detailed: { type: 'boolean' },
  18173. parentTaskId: { type: 'string', name: 'parent_task_id' },
  18174. waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
  18175. groupBy: {
  18176. type: 'enum',
  18177. default: 'nodes',
  18178. options: ['nodes', 'parents', 'none'],
  18179. name: 'group_by'
  18180. },
  18181. timeout: { type: 'time' }
  18182. },
  18183. url: { fmt: '/_tasks' }
  18184. })),
  18185. (f.termvectors = d({
  18186. params: {
  18187. termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
  18188. fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
  18189. fields: { type: 'list', required: !1 },
  18190. offsets: { type: 'boolean', default: !0, required: !1 },
  18191. positions: { type: 'boolean', default: !0, required: !1 },
  18192. payloads: { type: 'boolean', default: !0, required: !1 },
  18193. preference: { type: 'string', required: !1 },
  18194. routing: { type: 'string', required: !1 },
  18195. realtime: { type: 'boolean', required: !1 },
  18196. version: { type: 'number' },
  18197. versionType: {
  18198. type: 'enum',
  18199. options: ['internal', 'external', 'external_gte', 'force'],
  18200. name: 'version_type'
  18201. }
  18202. },
  18203. urls: [
  18204. {
  18205. fmt: '/<%=index%>/_termvectors/<%=id%>',
  18206. req: { index: { type: 'string' }, id: { type: 'string' } }
  18207. },
  18208. { fmt: '/<%=index%>/_termvectors', req: { index: { type: 'string' } } }
  18209. ],
  18210. method: 'POST'
  18211. })),
  18212. (f.update = d({
  18213. params: {
  18214. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  18215. _source: { type: 'list' },
  18216. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  18217. _sourceIncludes: { type: 'list', name: '_source_includes' },
  18218. lang: { type: 'string' },
  18219. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  18220. retryOnConflict: { type: 'number', name: 'retry_on_conflict' },
  18221. routing: { type: 'string' },
  18222. timeout: { type: 'time' },
  18223. ifSeqNo: { type: 'number', name: 'if_seq_no' },
  18224. ifPrimaryTerm: { type: 'number', name: 'if_primary_term' }
  18225. },
  18226. url: {
  18227. fmt: '/<%=index%>/_update/<%=id%>',
  18228. req: { index: { type: 'string' }, id: { type: 'string' } }
  18229. },
  18230. needBody: !0,
  18231. method: 'POST'
  18232. })),
  18233. (f.updateByQuery = d({
  18234. params: {
  18235. analyzer: { type: 'string' },
  18236. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  18237. defaultOperator: {
  18238. type: 'enum',
  18239. default: 'OR',
  18240. options: ['AND', 'OR'],
  18241. name: 'default_operator'
  18242. },
  18243. df: { type: 'string' },
  18244. from: { type: 'number' },
  18245. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  18246. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  18247. conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
  18248. expandWildcards: {
  18249. type: 'enum',
  18250. default: 'open',
  18251. options: ['open', 'closed', 'none', 'all'],
  18252. name: 'expand_wildcards'
  18253. },
  18254. lenient: { type: 'boolean' },
  18255. pipeline: { type: 'string' },
  18256. preference: { type: 'string' },
  18257. q: { type: 'string' },
  18258. routing: { type: 'list' },
  18259. scroll: { type: 'time' },
  18260. searchType: {
  18261. type: 'enum',
  18262. options: ['query_then_fetch', 'dfs_query_then_fetch'],
  18263. name: 'search_type'
  18264. },
  18265. searchTimeout: { type: 'time', name: 'search_timeout' },
  18266. size: { type: 'number' },
  18267. maxDocs: { type: 'number', name: 'max_docs' },
  18268. sort: { type: 'list' },
  18269. _source: { type: 'list' },
  18270. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  18271. _sourceIncludes: { type: 'list', name: '_source_includes' },
  18272. terminateAfter: { type: 'number', name: 'terminate_after' },
  18273. stats: { type: 'list' },
  18274. version: { type: 'boolean' },
  18275. versionType: { type: 'boolean', name: 'version_type' },
  18276. requestCache: { type: 'boolean', name: 'request_cache' },
  18277. refresh: { type: 'boolean' },
  18278. timeout: { type: 'time', default: '1m' },
  18279. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  18280. scrollSize: { type: 'number', name: 'scroll_size' },
  18281. waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
  18282. requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
  18283. slices: { type: 'number', default: 1 }
  18284. },
  18285. url: { fmt: '/<%=index%>/_update_by_query', req: { index: { type: 'list' } } },
  18286. method: 'POST'
  18287. })),
  18288. (f.updateByQueryRethrottle = d({
  18289. params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
  18290. url: { fmt: '/_update_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
  18291. method: 'POST'
  18292. }));
  18293. },
  18294. function(a, b, c) {
  18295. var d = c(1).makeFactoryWithModifier(function(a) {
  18296. return c(0).merge(a, { params: { filterPath: { type: 'list', name: 'filter_path' } } });
  18297. }),
  18298. e = c(1).namespaceFactory,
  18299. f = (a.exports = {});
  18300. (f._namespaces = ['cat', 'cluster', 'indices', 'ingest', 'nodes', 'snapshot', 'tasks']),
  18301. (f.bulk = d({
  18302. params: {
  18303. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  18304. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  18305. routing: { type: 'string' },
  18306. timeout: { type: 'time' },
  18307. type: { type: 'string' },
  18308. _source: { type: 'list' },
  18309. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  18310. _sourceIncludes: { type: 'list', name: '_source_includes' },
  18311. pipeline: { type: 'string' }
  18312. },
  18313. urls: [
  18314. {
  18315. fmt: '/<%=index%>/<%=type%>/_bulk',
  18316. req: { index: { type: 'string' }, type: { type: 'string' } }
  18317. },
  18318. { fmt: '/<%=index%>/_bulk', req: { index: { type: 'string' } } },
  18319. { fmt: '/_bulk' }
  18320. ],
  18321. needBody: !0,
  18322. bulkBody: !0,
  18323. method: 'POST'
  18324. })),
  18325. (f.cat = e()),
  18326. (f.cat.prototype.aliases = d({
  18327. params: {
  18328. format: { type: 'string' },
  18329. local: { type: 'boolean' },
  18330. masterTimeout: { type: 'time', name: 'master_timeout' },
  18331. h: { type: 'list' },
  18332. help: { type: 'boolean', default: !1 },
  18333. s: { type: 'list' },
  18334. v: { type: 'boolean', default: !1 }
  18335. },
  18336. urls: [
  18337. { fmt: '/_cat/aliases/<%=name%>', req: { name: { type: 'list' } } },
  18338. { fmt: '/_cat/aliases' }
  18339. ]
  18340. })),
  18341. (f.cat.prototype.allocation = d({
  18342. params: {
  18343. format: { type: 'string' },
  18344. bytes: {
  18345. type: 'enum',
  18346. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  18347. },
  18348. local: { type: 'boolean' },
  18349. masterTimeout: { type: 'time', name: 'master_timeout' },
  18350. h: { type: 'list' },
  18351. help: { type: 'boolean', default: !1 },
  18352. s: { type: 'list' },
  18353. v: { type: 'boolean', default: !1 }
  18354. },
  18355. urls: [
  18356. { fmt: '/_cat/allocation/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
  18357. { fmt: '/_cat/allocation' }
  18358. ]
  18359. })),
  18360. (f.cat.prototype.count = d({
  18361. params: {
  18362. format: { type: 'string' },
  18363. local: { type: 'boolean' },
  18364. masterTimeout: { type: 'time', name: 'master_timeout' },
  18365. h: { type: 'list' },
  18366. help: { type: 'boolean', default: !1 },
  18367. s: { type: 'list' },
  18368. v: { type: 'boolean', default: !1 }
  18369. },
  18370. urls: [
  18371. { fmt: '/_cat/count/<%=index%>', req: { index: { type: 'list' } } },
  18372. { fmt: '/_cat/count' }
  18373. ]
  18374. })),
  18375. (f.cat.prototype.fielddata = d({
  18376. params: {
  18377. format: { type: 'string' },
  18378. bytes: {
  18379. type: 'enum',
  18380. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  18381. },
  18382. local: { type: 'boolean' },
  18383. masterTimeout: { type: 'time', name: 'master_timeout' },
  18384. h: { type: 'list' },
  18385. help: { type: 'boolean', default: !1 },
  18386. s: { type: 'list' },
  18387. v: { type: 'boolean', default: !1 },
  18388. fields: { type: 'list' }
  18389. },
  18390. urls: [
  18391. { fmt: '/_cat/fielddata/<%=fields%>', req: { fields: { type: 'list' } } },
  18392. { fmt: '/_cat/fielddata' }
  18393. ]
  18394. })),
  18395. (f.cat.prototype.health = d({
  18396. params: {
  18397. format: { type: 'string' },
  18398. local: { type: 'boolean' },
  18399. masterTimeout: { type: 'time', name: 'master_timeout' },
  18400. h: { type: 'list' },
  18401. help: { type: 'boolean', default: !1 },
  18402. s: { type: 'list' },
  18403. ts: { type: 'boolean', default: !0 },
  18404. v: { type: 'boolean', default: !1 }
  18405. },
  18406. url: { fmt: '/_cat/health' }
  18407. })),
  18408. (f.cat.prototype.help = d({
  18409. params: { help: { type: 'boolean', default: !1 }, s: { type: 'list' } },
  18410. url: { fmt: '/_cat' }
  18411. })),
  18412. (f.cat.prototype.indices = d({
  18413. params: {
  18414. format: { type: 'string' },
  18415. bytes: { type: 'enum', options: ['b', 'k', 'm', 'g'] },
  18416. local: { type: 'boolean' },
  18417. masterTimeout: { type: 'time', name: 'master_timeout' },
  18418. h: { type: 'list' },
  18419. health: { type: 'enum', default: null, options: ['green', 'yellow', 'red'] },
  18420. help: { type: 'boolean', default: !1 },
  18421. pri: { type: 'boolean', default: !1 },
  18422. s: { type: 'list' },
  18423. v: { type: 'boolean', default: !1 },
  18424. includeUnloadedSegments: { type: 'boolean', default: !1, name: 'include_unloaded_segments' }
  18425. },
  18426. urls: [
  18427. { fmt: '/_cat/indices/<%=index%>', req: { index: { type: 'list' } } },
  18428. { fmt: '/_cat/indices' }
  18429. ]
  18430. })),
  18431. (f.cat.prototype.master = d({
  18432. params: {
  18433. format: { type: 'string' },
  18434. local: { type: 'boolean' },
  18435. masterTimeout: { type: 'time', name: 'master_timeout' },
  18436. h: { type: 'list' },
  18437. help: { type: 'boolean', default: !1 },
  18438. s: { type: 'list' },
  18439. v: { type: 'boolean', default: !1 }
  18440. },
  18441. url: { fmt: '/_cat/master' }
  18442. })),
  18443. (f.cat.prototype.nodeattrs = d({
  18444. params: {
  18445. format: { type: 'string' },
  18446. local: { type: 'boolean' },
  18447. masterTimeout: { type: 'time', name: 'master_timeout' },
  18448. h: { type: 'list' },
  18449. help: { type: 'boolean', default: !1 },
  18450. s: { type: 'list' },
  18451. v: { type: 'boolean', default: !1 }
  18452. },
  18453. url: { fmt: '/_cat/nodeattrs' }
  18454. })),
  18455. (f.cat.prototype.nodes = d({
  18456. params: {
  18457. format: { type: 'string' },
  18458. fullId: { type: 'boolean', name: 'full_id' },
  18459. local: { type: 'boolean' },
  18460. masterTimeout: { type: 'time', name: 'master_timeout' },
  18461. h: { type: 'list' },
  18462. help: { type: 'boolean', default: !1 },
  18463. s: { type: 'list' },
  18464. v: { type: 'boolean', default: !1 }
  18465. },
  18466. url: { fmt: '/_cat/nodes' }
  18467. })),
  18468. (f.cat.prototype.pendingTasks = d({
  18469. params: {
  18470. format: { type: 'string' },
  18471. local: { type: 'boolean' },
  18472. masterTimeout: { type: 'time', name: 'master_timeout' },
  18473. h: { type: 'list' },
  18474. help: { type: 'boolean', default: !1 },
  18475. s: { type: 'list' },
  18476. v: { type: 'boolean', default: !1 }
  18477. },
  18478. url: { fmt: '/_cat/pending_tasks' }
  18479. })),
  18480. (f.cat.prototype.plugins = d({
  18481. params: {
  18482. format: { type: 'string' },
  18483. local: { type: 'boolean' },
  18484. masterTimeout: { type: 'time', name: 'master_timeout' },
  18485. h: { type: 'list' },
  18486. help: { type: 'boolean', default: !1 },
  18487. s: { type: 'list' },
  18488. v: { type: 'boolean', default: !1 }
  18489. },
  18490. url: { fmt: '/_cat/plugins' }
  18491. })),
  18492. (f.cat.prototype.recovery = d({
  18493. params: {
  18494. format: { type: 'string' },
  18495. bytes: {
  18496. type: 'enum',
  18497. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  18498. },
  18499. masterTimeout: { type: 'time', name: 'master_timeout' },
  18500. h: { type: 'list' },
  18501. help: { type: 'boolean', default: !1 },
  18502. s: { type: 'list' },
  18503. v: { type: 'boolean', default: !1 }
  18504. },
  18505. urls: [
  18506. { fmt: '/_cat/recovery/<%=index%>', req: { index: { type: 'list' } } },
  18507. { fmt: '/_cat/recovery' }
  18508. ]
  18509. })),
  18510. (f.cat.prototype.repositories = d({
  18511. params: {
  18512. format: { type: 'string' },
  18513. local: { type: 'boolean', default: !1 },
  18514. masterTimeout: { type: 'time', name: 'master_timeout' },
  18515. h: { type: 'list' },
  18516. help: { type: 'boolean', default: !1 },
  18517. s: { type: 'list' },
  18518. v: { type: 'boolean', default: !1 }
  18519. },
  18520. url: { fmt: '/_cat/repositories' }
  18521. })),
  18522. (f.cat.prototype.segments = d({
  18523. params: {
  18524. format: { type: 'string' },
  18525. bytes: {
  18526. type: 'enum',
  18527. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  18528. },
  18529. h: { type: 'list' },
  18530. help: { type: 'boolean', default: !1 },
  18531. s: { type: 'list' },
  18532. v: { type: 'boolean', default: !1 }
  18533. },
  18534. urls: [
  18535. { fmt: '/_cat/segments/<%=index%>', req: { index: { type: 'list' } } },
  18536. { fmt: '/_cat/segments' }
  18537. ]
  18538. })),
  18539. (f.cat.prototype.shards = d({
  18540. params: {
  18541. format: { type: 'string' },
  18542. bytes: {
  18543. type: 'enum',
  18544. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  18545. },
  18546. local: { type: 'boolean' },
  18547. masterTimeout: { type: 'time', name: 'master_timeout' },
  18548. h: { type: 'list' },
  18549. help: { type: 'boolean', default: !1 },
  18550. s: { type: 'list' },
  18551. v: { type: 'boolean', default: !1 }
  18552. },
  18553. urls: [
  18554. { fmt: '/_cat/shards/<%=index%>', req: { index: { type: 'list' } } },
  18555. { fmt: '/_cat/shards' }
  18556. ]
  18557. })),
  18558. (f.cat.prototype.snapshots = d({
  18559. params: {
  18560. format: { type: 'string' },
  18561. ignoreUnavailable: { type: 'boolean', default: !1, name: 'ignore_unavailable' },
  18562. masterTimeout: { type: 'time', name: 'master_timeout' },
  18563. h: { type: 'list' },
  18564. help: { type: 'boolean', default: !1 },
  18565. s: { type: 'list' },
  18566. v: { type: 'boolean', default: !1 }
  18567. },
  18568. urls: [
  18569. { fmt: '/_cat/snapshots/<%=repository%>', req: { repository: { type: 'list' } } },
  18570. { fmt: '/_cat/snapshots' }
  18571. ]
  18572. })),
  18573. (f.cat.prototype.tasks = d({
  18574. params: {
  18575. format: { type: 'string' },
  18576. nodeId: { type: 'list', name: 'node_id' },
  18577. actions: { type: 'list' },
  18578. detailed: { type: 'boolean' },
  18579. parentTask: { type: 'number', name: 'parent_task' },
  18580. h: { type: 'list' },
  18581. help: { type: 'boolean', default: !1 },
  18582. s: { type: 'list' },
  18583. v: { type: 'boolean', default: !1 }
  18584. },
  18585. url: { fmt: '/_cat/tasks' }
  18586. })),
  18587. (f.cat.prototype.templates = d({
  18588. params: {
  18589. format: { type: 'string' },
  18590. local: { type: 'boolean' },
  18591. masterTimeout: { type: 'time', name: 'master_timeout' },
  18592. h: { type: 'list' },
  18593. help: { type: 'boolean', default: !1 },
  18594. s: { type: 'list' },
  18595. v: { type: 'boolean', default: !1 }
  18596. },
  18597. urls: [
  18598. { fmt: '/_cat/templates/<%=name%>', req: { name: { type: 'string' } } },
  18599. { fmt: '/_cat/templates' }
  18600. ]
  18601. })),
  18602. (f.cat.prototype.threadPool = d({
  18603. params: {
  18604. format: { type: 'string' },
  18605. size: { type: 'enum', options: ['', 'k', 'm', 'g', 't', 'p'] },
  18606. local: { type: 'boolean' },
  18607. masterTimeout: { type: 'time', name: 'master_timeout' },
  18608. h: { type: 'list' },
  18609. help: { type: 'boolean', default: !1 },
  18610. s: { type: 'list' },
  18611. v: { type: 'boolean', default: !1 }
  18612. },
  18613. urls: [
  18614. {
  18615. fmt: '/_cat/thread_pool/<%=threadPoolPatterns%>',
  18616. req: { threadPoolPatterns: { type: 'list' } }
  18617. },
  18618. { fmt: '/_cat/thread_pool' }
  18619. ]
  18620. })),
  18621. (f.clearScroll = d({
  18622. url: { fmt: '/_search/scroll' },
  18623. paramAsBody: { param: 'scrollId', body: 'scroll_id' },
  18624. method: 'DELETE'
  18625. })),
  18626. (f.cluster = e()),
  18627. (f.cluster.prototype.allocationExplain = d({
  18628. params: {
  18629. includeYesDecisions: { type: 'boolean', name: 'include_yes_decisions' },
  18630. includeDiskInfo: { type: 'boolean', name: 'include_disk_info' }
  18631. },
  18632. url: { fmt: '/_cluster/allocation/explain' },
  18633. method: 'POST'
  18634. })),
  18635. (f.cluster.prototype.getSettings = d({
  18636. params: {
  18637. flatSettings: { type: 'boolean', name: 'flat_settings' },
  18638. masterTimeout: { type: 'time', name: 'master_timeout' },
  18639. timeout: { type: 'time' },
  18640. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
  18641. },
  18642. url: { fmt: '/_cluster/settings' }
  18643. })),
  18644. (f.cluster.prototype.health = d({
  18645. params: {
  18646. expandWildcards: {
  18647. type: 'enum',
  18648. default: 'all',
  18649. options: ['open', 'closed', 'none', 'all'],
  18650. name: 'expand_wildcards'
  18651. },
  18652. level: { type: 'enum', default: 'cluster', options: ['cluster', 'indices', 'shards'] },
  18653. local: { type: 'boolean' },
  18654. masterTimeout: { type: 'time', name: 'master_timeout' },
  18655. timeout: { type: 'time' },
  18656. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  18657. waitForNodes: { type: 'string', name: 'wait_for_nodes' },
  18658. waitForEvents: {
  18659. type: 'enum',
  18660. options: ['immediate', 'urgent', 'high', 'normal', 'low', 'languid'],
  18661. name: 'wait_for_events'
  18662. },
  18663. waitForNoRelocatingShards: { type: 'boolean', name: 'wait_for_no_relocating_shards' },
  18664. waitForNoInitializingShards: { type: 'boolean', name: 'wait_for_no_initializing_shards' },
  18665. waitForStatus: {
  18666. type: 'enum',
  18667. default: null,
  18668. options: ['green', 'yellow', 'red'],
  18669. name: 'wait_for_status'
  18670. }
  18671. },
  18672. urls: [
  18673. { fmt: '/_cluster/health/<%=index%>', req: { index: { type: 'list' } } },
  18674. { fmt: '/_cluster/health' }
  18675. ]
  18676. })),
  18677. (f.cluster.prototype.pendingTasks = d({
  18678. params: { local: { type: 'boolean' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  18679. url: { fmt: '/_cluster/pending_tasks' }
  18680. })),
  18681. (f.cluster.prototype.putSettings = d({
  18682. params: {
  18683. flatSettings: { type: 'boolean', name: 'flat_settings' },
  18684. masterTimeout: { type: 'time', name: 'master_timeout' },
  18685. timeout: { type: 'time' }
  18686. },
  18687. url: { fmt: '/_cluster/settings' },
  18688. needBody: !0,
  18689. method: 'PUT'
  18690. })),
  18691. (f.cluster.prototype.remoteInfo = d({ url: { fmt: '/_remote/info' } })),
  18692. (f.cluster.prototype.reroute = d({
  18693. params: {
  18694. dryRun: { type: 'boolean', name: 'dry_run' },
  18695. explain: { type: 'boolean' },
  18696. retryFailed: { type: 'boolean', name: 'retry_failed' },
  18697. metric: {
  18698. type: 'list',
  18699. options: [
  18700. '_all',
  18701. 'blocks',
  18702. 'metadata',
  18703. 'nodes',
  18704. 'routing_table',
  18705. 'master_node',
  18706. 'version'
  18707. ]
  18708. },
  18709. masterTimeout: { type: 'time', name: 'master_timeout' },
  18710. timeout: { type: 'time' }
  18711. },
  18712. url: { fmt: '/_cluster/reroute' },
  18713. method: 'POST'
  18714. })),
  18715. (f.cluster.prototype.state = d({
  18716. params: {
  18717. local: { type: 'boolean' },
  18718. masterTimeout: { type: 'time', name: 'master_timeout' },
  18719. flatSettings: { type: 'boolean', name: 'flat_settings' },
  18720. waitForMetadataVersion: { type: 'number', name: 'wait_for_metadata_version' },
  18721. waitForTimeout: { type: 'time', name: 'wait_for_timeout' },
  18722. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  18723. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  18724. expandWildcards: {
  18725. type: 'enum',
  18726. default: 'open',
  18727. options: ['open', 'closed', 'none', 'all'],
  18728. name: 'expand_wildcards'
  18729. }
  18730. },
  18731. urls: [
  18732. {
  18733. fmt: '/_cluster/state/<%=metric%>/<%=index%>',
  18734. req: {
  18735. metric: {
  18736. type: 'list',
  18737. options: [
  18738. '_all',
  18739. 'blocks',
  18740. 'metadata',
  18741. 'nodes',
  18742. 'routing_table',
  18743. 'routing_nodes',
  18744. 'master_node',
  18745. 'version'
  18746. ]
  18747. },
  18748. index: { type: 'list' }
  18749. }
  18750. },
  18751. {
  18752. fmt: '/_cluster/state/<%=metric%>',
  18753. req: {
  18754. metric: {
  18755. type: 'list',
  18756. options: [
  18757. '_all',
  18758. 'blocks',
  18759. 'metadata',
  18760. 'nodes',
  18761. 'routing_table',
  18762. 'routing_nodes',
  18763. 'master_node',
  18764. 'version'
  18765. ]
  18766. }
  18767. }
  18768. },
  18769. { fmt: '/_cluster/state' }
  18770. ]
  18771. })),
  18772. (f.cluster.prototype.stats = d({
  18773. params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
  18774. urls: [
  18775. { fmt: '/_cluster/stats/nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
  18776. { fmt: '/_cluster/stats' }
  18777. ]
  18778. })),
  18779. (f.count = d({
  18780. params: {
  18781. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  18782. ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
  18783. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  18784. expandWildcards: {
  18785. type: 'enum',
  18786. default: 'open',
  18787. options: ['open', 'closed', 'none', 'all'],
  18788. name: 'expand_wildcards'
  18789. },
  18790. minScore: { type: 'number', name: 'min_score' },
  18791. preference: { type: 'string' },
  18792. routing: { type: 'list' },
  18793. q: { type: 'string' },
  18794. analyzer: { type: 'string' },
  18795. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  18796. defaultOperator: {
  18797. type: 'enum',
  18798. default: 'OR',
  18799. options: ['AND', 'OR'],
  18800. name: 'default_operator'
  18801. },
  18802. df: { type: 'string' },
  18803. lenient: { type: 'boolean' },
  18804. terminateAfter: { type: 'number', name: 'terminate_after' }
  18805. },
  18806. urls: [{ fmt: '/<%=index%>/_count', req: { index: { type: 'list' } } }, { fmt: '/_count' }],
  18807. method: 'POST'
  18808. })),
  18809. (f.create = d({
  18810. params: {
  18811. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  18812. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  18813. routing: { type: 'string' },
  18814. timeout: { type: 'time' },
  18815. version: { type: 'number' },
  18816. versionType: {
  18817. type: 'enum',
  18818. options: ['internal', 'external', 'external_gte', 'force'],
  18819. name: 'version_type'
  18820. },
  18821. pipeline: { type: 'string' }
  18822. },
  18823. url: {
  18824. fmt: '/<%=index%>/_create/<%=id%>',
  18825. req: { index: { type: 'string' }, id: { type: 'string' } }
  18826. },
  18827. needBody: !0,
  18828. method: 'POST'
  18829. })),
  18830. (f.delete = d({
  18831. params: {
  18832. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  18833. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  18834. routing: { type: 'string' },
  18835. timeout: { type: 'time' },
  18836. ifSeqNo: { type: 'number', name: 'if_seq_no' },
  18837. ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
  18838. version: { type: 'number' },
  18839. versionType: {
  18840. type: 'enum',
  18841. options: ['internal', 'external', 'external_gte', 'force'],
  18842. name: 'version_type'
  18843. }
  18844. },
  18845. url: {
  18846. fmt: '/<%=index%>/_doc/<%=id%>',
  18847. req: { index: { type: 'string' }, id: { type: 'string' } }
  18848. },
  18849. method: 'DELETE'
  18850. })),
  18851. (f.deleteByQuery = d({
  18852. params: {
  18853. analyzer: { type: 'string' },
  18854. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  18855. defaultOperator: {
  18856. type: 'enum',
  18857. default: 'OR',
  18858. options: ['AND', 'OR'],
  18859. name: 'default_operator'
  18860. },
  18861. df: { type: 'string' },
  18862. from: { type: 'number' },
  18863. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  18864. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  18865. conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
  18866. expandWildcards: {
  18867. type: 'enum',
  18868. default: 'open',
  18869. options: ['open', 'closed', 'none', 'all'],
  18870. name: 'expand_wildcards'
  18871. },
  18872. lenient: { type: 'boolean' },
  18873. preference: { type: 'string' },
  18874. q: { type: 'string' },
  18875. routing: { type: 'list' },
  18876. scroll: { type: 'time' },
  18877. searchType: {
  18878. type: 'enum',
  18879. options: ['query_then_fetch', 'dfs_query_then_fetch'],
  18880. name: 'search_type'
  18881. },
  18882. searchTimeout: { type: 'time', name: 'search_timeout' },
  18883. size: { type: 'number' },
  18884. sort: { type: 'list' },
  18885. _source: { type: 'list' },
  18886. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  18887. _sourceIncludes: { type: 'list', name: '_source_includes' },
  18888. terminateAfter: { type: 'number', name: 'terminate_after' },
  18889. stats: { type: 'list' },
  18890. version: { type: 'boolean' },
  18891. requestCache: { type: 'boolean', name: 'request_cache' },
  18892. refresh: { type: 'boolean' },
  18893. timeout: { type: 'time', default: '1m' },
  18894. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  18895. scrollSize: { type: 'number', name: 'scroll_size' },
  18896. waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
  18897. requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
  18898. slices: { type: 'number', default: 1 }
  18899. },
  18900. url: { fmt: '/<%=index%>/_delete_by_query', req: { index: { type: 'list' } } },
  18901. needBody: !0,
  18902. method: 'POST'
  18903. })),
  18904. (f.deleteByQueryRethrottle = d({
  18905. params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
  18906. url: { fmt: '/_delete_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
  18907. method: 'POST'
  18908. })),
  18909. (f.deleteScript = d({
  18910. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  18911. url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } },
  18912. method: 'DELETE'
  18913. })),
  18914. (f.exists = d({
  18915. params: {
  18916. storedFields: { type: 'list', name: 'stored_fields' },
  18917. preference: { type: 'string' },
  18918. realtime: { type: 'boolean' },
  18919. refresh: { type: 'boolean' },
  18920. routing: { type: 'string' },
  18921. _source: { type: 'list' },
  18922. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  18923. _sourceIncludes: { type: 'list', name: '_source_includes' },
  18924. version: { type: 'number' },
  18925. versionType: {
  18926. type: 'enum',
  18927. options: ['internal', 'external', 'external_gte', 'force'],
  18928. name: 'version_type'
  18929. }
  18930. },
  18931. url: {
  18932. fmt: '/<%=index%>/_doc/<%=id%>',
  18933. req: { index: { type: 'string' }, id: { type: 'string' } }
  18934. },
  18935. method: 'HEAD'
  18936. })),
  18937. (f.existsSource = d({
  18938. params: {
  18939. preference: { type: 'string' },
  18940. realtime: { type: 'boolean' },
  18941. refresh: { type: 'boolean' },
  18942. routing: { type: 'string' },
  18943. _source: { type: 'list' },
  18944. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  18945. _sourceIncludes: { type: 'list', name: '_source_includes' },
  18946. version: { type: 'number' },
  18947. versionType: {
  18948. type: 'enum',
  18949. options: ['internal', 'external', 'external_gte', 'force'],
  18950. name: 'version_type'
  18951. }
  18952. },
  18953. url: {
  18954. fmt: '/<%=index%>/_source/<%=id%>',
  18955. req: { index: { type: 'string' }, id: { type: 'string' } }
  18956. },
  18957. method: 'HEAD'
  18958. })),
  18959. (f.explain = d({
  18960. params: {
  18961. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  18962. analyzer: { type: 'string' },
  18963. defaultOperator: {
  18964. type: 'enum',
  18965. default: 'OR',
  18966. options: ['AND', 'OR'],
  18967. name: 'default_operator'
  18968. },
  18969. df: { type: 'string' },
  18970. storedFields: { type: 'list', name: 'stored_fields' },
  18971. lenient: { type: 'boolean' },
  18972. preference: { type: 'string' },
  18973. q: { type: 'string' },
  18974. routing: { type: 'string' },
  18975. _source: { type: 'list' },
  18976. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  18977. _sourceIncludes: { type: 'list', name: '_source_includes' }
  18978. },
  18979. url: {
  18980. fmt: '/<%=index%>/_explain/<%=id%>',
  18981. req: { index: { type: 'string' }, id: { type: 'string' } }
  18982. },
  18983. method: 'POST'
  18984. })),
  18985. (f.fieldCaps = d({
  18986. params: {
  18987. fields: { type: 'list' },
  18988. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  18989. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  18990. expandWildcards: {
  18991. type: 'enum',
  18992. default: 'open',
  18993. options: ['open', 'closed', 'none', 'all'],
  18994. name: 'expand_wildcards'
  18995. },
  18996. includeUnmapped: { type: 'boolean', default: !1, name: 'include_unmapped' }
  18997. },
  18998. urls: [
  18999. { fmt: '/<%=index%>/_field_caps', req: { index: { type: 'list' } } },
  19000. { fmt: '/_field_caps' }
  19001. ],
  19002. method: 'POST'
  19003. })),
  19004. (f.get = d({
  19005. params: {
  19006. storedFields: { type: 'list', name: 'stored_fields' },
  19007. preference: { type: 'string' },
  19008. realtime: { type: 'boolean' },
  19009. refresh: { type: 'boolean' },
  19010. routing: { type: 'string' },
  19011. _source: { type: 'list' },
  19012. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  19013. _sourceIncludes: { type: 'list', name: '_source_includes' },
  19014. version: { type: 'number' },
  19015. versionType: {
  19016. type: 'enum',
  19017. options: ['internal', 'external', 'external_gte', 'force'],
  19018. name: 'version_type'
  19019. }
  19020. },
  19021. url: {
  19022. fmt: '/<%=index%>/_doc/<%=id%>',
  19023. req: { index: { type: 'string' }, id: { type: 'string' } }
  19024. }
  19025. })),
  19026. (f.getScript = d({
  19027. params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
  19028. url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
  19029. })),
  19030. (f.getSource = d({
  19031. params: {
  19032. preference: { type: 'string' },
  19033. realtime: { type: 'boolean' },
  19034. refresh: { type: 'boolean' },
  19035. routing: { type: 'string' },
  19036. _source: { type: 'list' },
  19037. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  19038. _sourceIncludes: { type: 'list', name: '_source_includes' },
  19039. version: { type: 'number' },
  19040. versionType: {
  19041. type: 'enum',
  19042. options: ['internal', 'external', 'external_gte', 'force'],
  19043. name: 'version_type'
  19044. }
  19045. },
  19046. url: {
  19047. fmt: '/<%=index%>/_source/<%=id%>',
  19048. req: { index: { type: 'string' }, id: { type: 'string' } }
  19049. }
  19050. })),
  19051. (f.index = d({
  19052. params: {
  19053. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  19054. opType: { type: 'enum', default: 'index', options: ['index', 'create'], name: 'op_type' },
  19055. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  19056. routing: { type: 'string' },
  19057. timeout: { type: 'time' },
  19058. version: { type: 'number' },
  19059. versionType: {
  19060. type: 'enum',
  19061. options: ['internal', 'external', 'external_gte', 'force'],
  19062. name: 'version_type'
  19063. },
  19064. ifSeqNo: { type: 'number', name: 'if_seq_no' },
  19065. ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
  19066. pipeline: { type: 'string' }
  19067. },
  19068. urls: [
  19069. {
  19070. fmt: '/<%=index%>/_doc/<%=id%>',
  19071. req: { index: { type: 'string' }, id: { type: 'string' } }
  19072. },
  19073. { fmt: '/<%=index%>/_doc', req: { index: { type: 'string' } } }
  19074. ],
  19075. needBody: !0,
  19076. method: 'POST'
  19077. })),
  19078. (f.indices = e()),
  19079. (f.indices.prototype.analyze = d({
  19080. params: { index: { type: 'string' } },
  19081. urls: [
  19082. { fmt: '/<%=index%>/_analyze', req: { index: { type: 'string' } } },
  19083. { fmt: '/_analyze' }
  19084. ],
  19085. method: 'POST'
  19086. })),
  19087. (f.indices.prototype.clearCache = d({
  19088. params: {
  19089. fielddata: { type: 'boolean' },
  19090. fields: { type: 'list' },
  19091. query: { type: 'boolean' },
  19092. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  19093. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  19094. expandWildcards: {
  19095. type: 'enum',
  19096. default: 'open',
  19097. options: ['open', 'closed', 'none', 'all'],
  19098. name: 'expand_wildcards'
  19099. },
  19100. index: { type: 'list' },
  19101. request: { type: 'boolean' }
  19102. },
  19103. urls: [
  19104. { fmt: '/<%=index%>/_cache/clear', req: { index: { type: 'list' } } },
  19105. { fmt: '/_cache/clear' }
  19106. ],
  19107. method: 'POST'
  19108. })),
  19109. (f.indices.prototype.close = d({
  19110. params: {
  19111. timeout: { type: 'time' },
  19112. masterTimeout: { type: 'time', name: 'master_timeout' },
  19113. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  19114. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  19115. expandWildcards: {
  19116. type: 'enum',
  19117. default: 'open',
  19118. options: ['open', 'closed', 'none', 'all'],
  19119. name: 'expand_wildcards'
  19120. },
  19121. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  19122. },
  19123. url: { fmt: '/<%=index%>/_close', req: { index: { type: 'list' } } },
  19124. method: 'POST'
  19125. })),
  19126. (f.indices.prototype.create = d({
  19127. params: {
  19128. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  19129. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  19130. timeout: { type: 'time' },
  19131. masterTimeout: { type: 'time', name: 'master_timeout' }
  19132. },
  19133. url: { fmt: '/<%=index%>', req: { index: { type: 'string' } } },
  19134. method: 'PUT'
  19135. })),
  19136. (f.indices.prototype.delete = d({
  19137. params: {
  19138. timeout: { type: 'time' },
  19139. masterTimeout: { type: 'time', name: 'master_timeout' },
  19140. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  19141. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  19142. expandWildcards: {
  19143. type: 'enum',
  19144. default: 'open',
  19145. options: ['open', 'closed', 'none', 'all'],
  19146. name: 'expand_wildcards'
  19147. }
  19148. },
  19149. url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
  19150. method: 'DELETE'
  19151. })),
  19152. (f.indices.prototype.deleteAlias = d({
  19153. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  19154. url: {
  19155. fmt: '/<%=index%>/_alias/<%=name%>',
  19156. req: { index: { type: 'list' }, name: { type: 'list' } }
  19157. },
  19158. method: 'DELETE'
  19159. })),
  19160. (f.indices.prototype.deleteTemplate = d({
  19161. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  19162. url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
  19163. method: 'DELETE'
  19164. })),
  19165. (f.indices.prototype.exists = d({
  19166. params: {
  19167. local: { type: 'boolean' },
  19168. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  19169. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  19170. expandWildcards: {
  19171. type: 'enum',
  19172. default: 'open',
  19173. options: ['open', 'closed', 'none', 'all'],
  19174. name: 'expand_wildcards'
  19175. },
  19176. flatSettings: { type: 'boolean', name: 'flat_settings' },
  19177. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
  19178. },
  19179. url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
  19180. method: 'HEAD'
  19181. })),
  19182. (f.indices.prototype.existsAlias = d({
  19183. params: {
  19184. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  19185. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  19186. expandWildcards: {
  19187. type: 'enum',
  19188. default: 'all',
  19189. options: ['open', 'closed', 'none', 'all'],
  19190. name: 'expand_wildcards'
  19191. },
  19192. local: { type: 'boolean' }
  19193. },
  19194. urls: [
  19195. {
  19196. fmt: '/<%=index%>/_alias/<%=name%>',
  19197. req: { index: { type: 'list' }, name: { type: 'list' } }
  19198. },
  19199. { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } }
  19200. ],
  19201. method: 'HEAD'
  19202. })),
  19203. (f.indices.prototype.existsTemplate = d({
  19204. params: {
  19205. flatSettings: { type: 'boolean', name: 'flat_settings' },
  19206. masterTimeout: { type: 'time', name: 'master_timeout' },
  19207. local: { type: 'boolean' }
  19208. },
  19209. url: { fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } },
  19210. method: 'HEAD'
  19211. })),
  19212. (f.indices.prototype.existsType = d({
  19213. params: {
  19214. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  19215. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  19216. expandWildcards: {
  19217. type: 'enum',
  19218. default: 'open',
  19219. options: ['open', 'closed', 'none', 'all'],
  19220. name: 'expand_wildcards'
  19221. },
  19222. local: { type: 'boolean' }
  19223. },
  19224. url: {
  19225. fmt: '/<%=index%>/_mapping/<%=type%>',
  19226. req: { index: { type: 'list' }, type: { type: 'list' } }
  19227. },
  19228. method: 'HEAD'
  19229. })),
  19230. (f.indices.prototype.flush = d({
  19231. params: {
  19232. force: { type: 'boolean' },
  19233. waitIfOngoing: { type: 'boolean', name: 'wait_if_ongoing' },
  19234. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  19235. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  19236. expandWildcards: {
  19237. type: 'enum',
  19238. default: 'open',
  19239. options: ['open', 'closed', 'none', 'all'],
  19240. name: 'expand_wildcards'
  19241. }
  19242. },
  19243. urls: [{ fmt: '/<%=index%>/_flush', req: { index: { type: 'list' } } }, { fmt: '/_flush' }],
  19244. method: 'POST'
  19245. })),
  19246. (f.indices.prototype.flushSynced = d({
  19247. params: {
  19248. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  19249. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  19250. expandWildcards: {
  19251. type: 'enum',
  19252. default: 'open',
  19253. options: ['open', 'closed', 'none', 'all'],
  19254. name: 'expand_wildcards'
  19255. }
  19256. },
  19257. urls: [
  19258. { fmt: '/<%=index%>/_flush/synced', req: { index: { type: 'list' } } },
  19259. { fmt: '/_flush/synced' }
  19260. ],
  19261. method: 'POST'
  19262. })),
  19263. (f.indices.prototype.forcemerge = d({
  19264. params: {
  19265. flush: { type: 'boolean' },
  19266. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  19267. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  19268. expandWildcards: {
  19269. type: 'enum',
  19270. default: 'open',
  19271. options: ['open', 'closed', 'none', 'all'],
  19272. name: 'expand_wildcards'
  19273. },
  19274. maxNumSegments: { type: 'number', name: 'max_num_segments' },
  19275. onlyExpungeDeletes: { type: 'boolean', name: 'only_expunge_deletes' }
  19276. },
  19277. urls: [
  19278. { fmt: '/<%=index%>/_forcemerge', req: { index: { type: 'list' } } },
  19279. { fmt: '/_forcemerge' }
  19280. ],
  19281. method: 'POST'
  19282. })),
  19283. (f.indices.prototype.get = d({
  19284. params: {
  19285. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  19286. local: { type: 'boolean' },
  19287. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  19288. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  19289. expandWildcards: {
  19290. type: 'enum',
  19291. default: 'open',
  19292. options: ['open', 'closed', 'none', 'all'],
  19293. name: 'expand_wildcards'
  19294. },
  19295. flatSettings: { type: 'boolean', name: 'flat_settings' },
  19296. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' },
  19297. masterTimeout: { type: 'time', name: 'master_timeout' }
  19298. },
  19299. url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } }
  19300. })),
  19301. (f.indices.prototype.getAlias = d({
  19302. params: {
  19303. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  19304. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  19305. expandWildcards: {
  19306. type: 'enum',
  19307. default: 'all',
  19308. options: ['open', 'closed', 'none', 'all'],
  19309. name: 'expand_wildcards'
  19310. },
  19311. local: { type: 'boolean' }
  19312. },
  19313. urls: [
  19314. {
  19315. fmt: '/<%=index%>/_alias/<%=name%>',
  19316. req: { index: { type: 'list' }, name: { type: 'list' } }
  19317. },
  19318. { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } },
  19319. { fmt: '/<%=index%>/_alias', req: { index: { type: 'list' } } },
  19320. { fmt: '/_alias' }
  19321. ]
  19322. })),
  19323. (f.indices.prototype.getFieldMapping = d({
  19324. params: {
  19325. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  19326. includeDefaults: { type: 'boolean', name: 'include_defaults' },
  19327. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  19328. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  19329. expandWildcards: {
  19330. type: 'enum',
  19331. default: 'open',
  19332. options: ['open', 'closed', 'none', 'all'],
  19333. name: 'expand_wildcards'
  19334. },
  19335. local: { type: 'boolean' }
  19336. },
  19337. urls: [
  19338. {
  19339. fmt: '/<%=index%>/_mapping/field/<%=fields%>',
  19340. req: { index: { type: 'list' }, fields: { type: 'list' } }
  19341. },
  19342. { fmt: '/_mapping/field/<%=fields%>', req: { fields: { type: 'list' } } }
  19343. ]
  19344. })),
  19345. (f.indices.prototype.getMapping = d({
  19346. params: {
  19347. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  19348. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  19349. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  19350. expandWildcards: {
  19351. type: 'enum',
  19352. default: 'open',
  19353. options: ['open', 'closed', 'none', 'all'],
  19354. name: 'expand_wildcards'
  19355. },
  19356. masterTimeout: { type: 'time', name: 'master_timeout' },
  19357. local: { type: 'boolean' }
  19358. },
  19359. urls: [{ fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } }, { fmt: '/_mapping' }]
  19360. })),
  19361. (f.indices.prototype.getSettings = d({
  19362. params: {
  19363. masterTimeout: { type: 'time', name: 'master_timeout' },
  19364. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  19365. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  19366. expandWildcards: {
  19367. type: 'enum',
  19368. default: ['open', 'closed'],
  19369. options: ['open', 'closed', 'none', 'all'],
  19370. name: 'expand_wildcards'
  19371. },
  19372. flatSettings: { type: 'boolean', name: 'flat_settings' },
  19373. local: { type: 'boolean' },
  19374. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
  19375. },
  19376. urls: [
  19377. {
  19378. fmt: '/<%=index%>/_settings/<%=name%>',
  19379. req: { index: { type: 'list' }, name: { type: 'list' } }
  19380. },
  19381. { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
  19382. { fmt: '/_settings/<%=name%>', req: { name: { type: 'list' } } },
  19383. { fmt: '/_settings' }
  19384. ]
  19385. })),
  19386. (f.indices.prototype.getTemplate = d({
  19387. params: {
  19388. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  19389. flatSettings: { type: 'boolean', name: 'flat_settings' },
  19390. masterTimeout: { type: 'time', name: 'master_timeout' },
  19391. local: { type: 'boolean' }
  19392. },
  19393. urls: [{ fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } }, { fmt: '/_template' }]
  19394. })),
  19395. (f.indices.prototype.getUpgrade = d({
  19396. params: {
  19397. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  19398. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  19399. expandWildcards: {
  19400. type: 'enum',
  19401. default: 'open',
  19402. options: ['open', 'closed', 'none', 'all'],
  19403. name: 'expand_wildcards'
  19404. }
  19405. },
  19406. urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }]
  19407. })),
  19408. (f.indices.prototype.open = d({
  19409. params: {
  19410. timeout: { type: 'time' },
  19411. masterTimeout: { type: 'time', name: 'master_timeout' },
  19412. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  19413. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  19414. expandWildcards: {
  19415. type: 'enum',
  19416. default: 'closed',
  19417. options: ['open', 'closed', 'none', 'all'],
  19418. name: 'expand_wildcards'
  19419. },
  19420. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  19421. },
  19422. url: { fmt: '/<%=index%>/_open', req: { index: { type: 'list' } } },
  19423. method: 'POST'
  19424. })),
  19425. (f.indices.prototype.putAlias = d({
  19426. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  19427. url: {
  19428. fmt: '/<%=index%>/_alias/<%=name%>',
  19429. req: { index: { type: 'list' }, name: { type: 'string' } }
  19430. },
  19431. method: 'PUT'
  19432. })),
  19433. (f.indices.prototype.putMapping = d({
  19434. params: {
  19435. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  19436. timeout: { type: 'time' },
  19437. masterTimeout: { type: 'time', name: 'master_timeout' },
  19438. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  19439. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  19440. expandWildcards: {
  19441. type: 'enum',
  19442. default: 'open',
  19443. options: ['open', 'closed', 'none', 'all'],
  19444. name: 'expand_wildcards'
  19445. }
  19446. },
  19447. url: { fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } },
  19448. needBody: !0,
  19449. method: 'PUT'
  19450. })),
  19451. (f.indices.prototype.putSettings = d({
  19452. params: {
  19453. masterTimeout: { type: 'time', name: 'master_timeout' },
  19454. timeout: { type: 'time' },
  19455. preserveExisting: { type: 'boolean', name: 'preserve_existing' },
  19456. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  19457. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  19458. expandWildcards: {
  19459. type: 'enum',
  19460. default: 'open',
  19461. options: ['open', 'closed', 'none', 'all'],
  19462. name: 'expand_wildcards'
  19463. },
  19464. flatSettings: { type: 'boolean', name: 'flat_settings' }
  19465. },
  19466. urls: [
  19467. { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
  19468. { fmt: '/_settings' }
  19469. ],
  19470. needBody: !0,
  19471. method: 'PUT'
  19472. })),
  19473. (f.indices.prototype.putTemplate = d({
  19474. params: {
  19475. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  19476. order: { type: 'number' },
  19477. create: { type: 'boolean', default: !1 },
  19478. timeout: { type: 'time' },
  19479. masterTimeout: { type: 'time', name: 'master_timeout' },
  19480. flatSettings: { type: 'boolean', name: 'flat_settings' }
  19481. },
  19482. url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
  19483. needBody: !0,
  19484. method: 'PUT'
  19485. })),
  19486. (f.indices.prototype.recovery = d({
  19487. params: {
  19488. detailed: { type: 'boolean', default: !1 },
  19489. activeOnly: { type: 'boolean', default: !1, name: 'active_only' }
  19490. },
  19491. urls: [
  19492. { fmt: '/<%=index%>/_recovery', req: { index: { type: 'list' } } },
  19493. { fmt: '/_recovery' }
  19494. ]
  19495. })),
  19496. (f.indices.prototype.refresh = d({
  19497. params: {
  19498. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  19499. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  19500. expandWildcards: {
  19501. type: 'enum',
  19502. default: 'open',
  19503. options: ['open', 'closed', 'none', 'all'],
  19504. name: 'expand_wildcards'
  19505. }
  19506. },
  19507. urls: [{ fmt: '/<%=index%>/_refresh', req: { index: { type: 'list' } } }, { fmt: '/_refresh' }],
  19508. method: 'POST'
  19509. })),
  19510. (f.indices.prototype.rollover = d({
  19511. params: {
  19512. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  19513. timeout: { type: 'time' },
  19514. dryRun: { type: 'boolean', name: 'dry_run' },
  19515. masterTimeout: { type: 'time', name: 'master_timeout' },
  19516. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  19517. },
  19518. urls: [
  19519. {
  19520. fmt: '/<%=alias%>/_rollover/<%=newIndex%>',
  19521. req: { alias: { type: 'string' }, newIndex: { type: 'string' } }
  19522. },
  19523. { fmt: '/<%=alias%>/_rollover', req: { alias: { type: 'string' } } }
  19524. ],
  19525. method: 'POST'
  19526. })),
  19527. (f.indices.prototype.segments = d({
  19528. params: {
  19529. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  19530. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  19531. expandWildcards: {
  19532. type: 'enum',
  19533. default: 'open',
  19534. options: ['open', 'closed', 'none', 'all'],
  19535. name: 'expand_wildcards'
  19536. },
  19537. verbose: { type: 'boolean', default: !1 }
  19538. },
  19539. urls: [
  19540. { fmt: '/<%=index%>/_segments', req: { index: { type: 'list' } } },
  19541. { fmt: '/_segments' }
  19542. ]
  19543. })),
  19544. (f.indices.prototype.shardStores = d({
  19545. params: {
  19546. status: { type: 'list', options: ['green', 'yellow', 'red', 'all'] },
  19547. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  19548. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  19549. expandWildcards: {
  19550. type: 'enum',
  19551. default: 'open',
  19552. options: ['open', 'closed', 'none', 'all'],
  19553. name: 'expand_wildcards'
  19554. }
  19555. },
  19556. urls: [
  19557. { fmt: '/<%=index%>/_shard_stores', req: { index: { type: 'list' } } },
  19558. { fmt: '/_shard_stores' }
  19559. ]
  19560. })),
  19561. (f.indices.prototype.shrink = d({
  19562. params: {
  19563. copySettings: { type: 'boolean', name: 'copy_settings' },
  19564. timeout: { type: 'time' },
  19565. masterTimeout: { type: 'time', name: 'master_timeout' },
  19566. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  19567. },
  19568. url: {
  19569. fmt: '/<%=index%>/_shrink/<%=target%>',
  19570. req: { index: { type: 'string' }, target: { type: 'string' } }
  19571. },
  19572. method: 'POST'
  19573. })),
  19574. (f.indices.prototype.split = d({
  19575. params: {
  19576. copySettings: { type: 'boolean', name: 'copy_settings' },
  19577. timeout: { type: 'time' },
  19578. masterTimeout: { type: 'time', name: 'master_timeout' },
  19579. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  19580. },
  19581. url: {
  19582. fmt: '/<%=index%>/_split/<%=target%>',
  19583. req: { index: { type: 'string' }, target: { type: 'string' } }
  19584. },
  19585. method: 'POST'
  19586. })),
  19587. (f.indices.prototype.stats = d({
  19588. params: {
  19589. completionFields: { type: 'list', name: 'completion_fields' },
  19590. fielddataFields: { type: 'list', name: 'fielddata_fields' },
  19591. fields: { type: 'list' },
  19592. groups: { type: 'list' },
  19593. level: { type: 'enum', default: 'indices', options: ['cluster', 'indices', 'shards'] },
  19594. types: { type: 'list' },
  19595. includeSegmentFileSizes: {
  19596. type: 'boolean',
  19597. default: !1,
  19598. name: 'include_segment_file_sizes'
  19599. },
  19600. includeUnloadedSegments: {
  19601. type: 'boolean',
  19602. default: !1,
  19603. name: 'include_unloaded_segments'
  19604. },
  19605. expandWildcards: {
  19606. type: 'enum',
  19607. default: 'open',
  19608. options: ['open', 'closed', 'none', 'all'],
  19609. name: 'expand_wildcards'
  19610. },
  19611. forbidClosedIndices: { type: 'boolean', default: !0, name: 'forbid_closed_indices' }
  19612. },
  19613. urls: [
  19614. {
  19615. fmt: '/<%=index%>/_stats/<%=metric%>',
  19616. req: {
  19617. index: { type: 'list' },
  19618. metric: {
  19619. type: 'list',
  19620. options: [
  19621. '_all',
  19622. 'completion',
  19623. 'docs',
  19624. 'fielddata',
  19625. 'query_cache',
  19626. 'flush',
  19627. 'get',
  19628. 'indexing',
  19629. 'merge',
  19630. 'request_cache',
  19631. 'refresh',
  19632. 'search',
  19633. 'segments',
  19634. 'store',
  19635. 'warmer',
  19636. 'suggest'
  19637. ]
  19638. }
  19639. }
  19640. },
  19641. {
  19642. fmt: '/_stats/<%=metric%>',
  19643. req: {
  19644. metric: {
  19645. type: 'list',
  19646. options: [
  19647. '_all',
  19648. 'completion',
  19649. 'docs',
  19650. 'fielddata',
  19651. 'query_cache',
  19652. 'flush',
  19653. 'get',
  19654. 'indexing',
  19655. 'merge',
  19656. 'request_cache',
  19657. 'refresh',
  19658. 'search',
  19659. 'segments',
  19660. 'store',
  19661. 'warmer',
  19662. 'suggest'
  19663. ]
  19664. }
  19665. }
  19666. },
  19667. { fmt: '/<%=index%>/_stats', req: { index: { type: 'list' } } },
  19668. { fmt: '/_stats' }
  19669. ]
  19670. })),
  19671. (f.indices.prototype.updateAliases = d({
  19672. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  19673. url: { fmt: '/_aliases' },
  19674. needBody: !0,
  19675. method: 'POST'
  19676. })),
  19677. (f.indices.prototype.upgrade = d({
  19678. params: {
  19679. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  19680. expandWildcards: {
  19681. type: 'enum',
  19682. default: 'open',
  19683. options: ['open', 'closed', 'none', 'all'],
  19684. name: 'expand_wildcards'
  19685. },
  19686. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  19687. waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
  19688. onlyAncientSegments: { type: 'boolean', name: 'only_ancient_segments' }
  19689. },
  19690. urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }],
  19691. method: 'POST'
  19692. })),
  19693. (f.indices.prototype.validateQuery = d({
  19694. params: {
  19695. explain: { type: 'boolean' },
  19696. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  19697. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  19698. expandWildcards: {
  19699. type: 'enum',
  19700. default: 'open',
  19701. options: ['open', 'closed', 'none', 'all'],
  19702. name: 'expand_wildcards'
  19703. },
  19704. q: { type: 'string' },
  19705. analyzer: { type: 'string' },
  19706. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  19707. defaultOperator: {
  19708. type: 'enum',
  19709. default: 'OR',
  19710. options: ['AND', 'OR'],
  19711. name: 'default_operator'
  19712. },
  19713. df: { type: 'string' },
  19714. lenient: { type: 'boolean' },
  19715. rewrite: { type: 'boolean' },
  19716. allShards: { type: 'boolean', name: 'all_shards' }
  19717. },
  19718. urls: [
  19719. { fmt: '/<%=index%>/_validate/query', req: { index: { type: 'list' } } },
  19720. { fmt: '/_validate/query' }
  19721. ],
  19722. method: 'POST'
  19723. })),
  19724. (f.info = d({ url: { fmt: '/' } })),
  19725. (f.ingest = e()),
  19726. (f.ingest.prototype.deletePipeline = d({
  19727. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  19728. url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
  19729. method: 'DELETE'
  19730. })),
  19731. (f.ingest.prototype.getPipeline = d({
  19732. params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
  19733. urls: [
  19734. { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
  19735. { fmt: '/_ingest/pipeline' }
  19736. ]
  19737. })),
  19738. (f.ingest.prototype.processorGrok = d({ url: { fmt: '/_ingest/processor/grok' } })),
  19739. (f.ingest.prototype.putPipeline = d({
  19740. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  19741. url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
  19742. needBody: !0,
  19743. method: 'PUT'
  19744. })),
  19745. (f.ingest.prototype.simulate = d({
  19746. params: { verbose: { type: 'boolean', default: !1 } },
  19747. urls: [
  19748. { fmt: '/_ingest/pipeline/<%=id%>/_simulate', req: { id: { type: 'string' } } },
  19749. { fmt: '/_ingest/pipeline/_simulate' }
  19750. ],
  19751. needBody: !0,
  19752. method: 'POST'
  19753. })),
  19754. (f.mget = d({
  19755. params: {
  19756. storedFields: { type: 'list', name: 'stored_fields' },
  19757. preference: { type: 'string' },
  19758. realtime: { type: 'boolean' },
  19759. refresh: { type: 'boolean' },
  19760. routing: { type: 'string' },
  19761. _source: { type: 'list' },
  19762. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  19763. _sourceIncludes: { type: 'list', name: '_source_includes' }
  19764. },
  19765. urls: [{ fmt: '/<%=index%>/_mget', req: { index: { type: 'string' } } }, { fmt: '/_mget' }],
  19766. needBody: !0,
  19767. method: 'POST'
  19768. })),
  19769. (f.msearch = d({
  19770. params: {
  19771. searchType: {
  19772. type: 'enum',
  19773. options: [
  19774. 'query_then_fetch',
  19775. 'query_and_fetch',
  19776. 'dfs_query_then_fetch',
  19777. 'dfs_query_and_fetch'
  19778. ],
  19779. name: 'search_type'
  19780. },
  19781. maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
  19782. typedKeys: { type: 'boolean', name: 'typed_keys' },
  19783. preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
  19784. maxConcurrentShardRequests: {
  19785. type: 'number',
  19786. default: 5,
  19787. name: 'max_concurrent_shard_requests'
  19788. },
  19789. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
  19790. ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
  19791. },
  19792. urls: [{ fmt: '/<%=index%>/_msearch', req: { index: { type: 'list' } } }, { fmt: '/_msearch' }],
  19793. needBody: !0,
  19794. bulkBody: !0,
  19795. method: 'POST'
  19796. })),
  19797. (f.msearchTemplate = d({
  19798. params: {
  19799. searchType: {
  19800. type: 'enum',
  19801. options: [
  19802. 'query_then_fetch',
  19803. 'query_and_fetch',
  19804. 'dfs_query_then_fetch',
  19805. 'dfs_query_and_fetch'
  19806. ],
  19807. name: 'search_type'
  19808. },
  19809. typedKeys: { type: 'boolean', name: 'typed_keys' },
  19810. maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
  19811. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
  19812. ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
  19813. },
  19814. urls: [
  19815. { fmt: '/<%=index%>/_msearch/template', req: { index: { type: 'list' } } },
  19816. { fmt: '/_msearch/template' }
  19817. ],
  19818. needBody: !0,
  19819. bulkBody: !0,
  19820. method: 'POST'
  19821. })),
  19822. (f.mtermvectors = d({
  19823. params: {
  19824. ids: { type: 'list', required: !1 },
  19825. termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
  19826. fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
  19827. fields: { type: 'list', required: !1 },
  19828. offsets: { type: 'boolean', default: !0, required: !1 },
  19829. positions: { type: 'boolean', default: !0, required: !1 },
  19830. payloads: { type: 'boolean', default: !0, required: !1 },
  19831. preference: { type: 'string', required: !1 },
  19832. routing: { type: 'string', required: !1 },
  19833. realtime: { type: 'boolean', required: !1 },
  19834. version: { type: 'number' },
  19835. versionType: {
  19836. type: 'enum',
  19837. options: ['internal', 'external', 'external_gte', 'force'],
  19838. name: 'version_type'
  19839. }
  19840. },
  19841. urls: [
  19842. { fmt: '/<%=index%>/_mtermvectors', req: { index: { type: 'string' } } },
  19843. { fmt: '/_mtermvectors' }
  19844. ],
  19845. method: 'POST'
  19846. })),
  19847. (f.nodes = e()),
  19848. (f.nodes.prototype.hotThreads = d({
  19849. params: {
  19850. interval: { type: 'time' },
  19851. snapshots: { type: 'number' },
  19852. threads: { type: 'number' },
  19853. ignoreIdleThreads: { type: 'boolean', name: 'ignore_idle_threads' },
  19854. type: { type: 'enum', options: ['cpu', 'wait', 'block'] },
  19855. timeout: { type: 'time' }
  19856. },
  19857. url: {}
  19858. })),
  19859. (f.nodes.prototype.info = d({
  19860. params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
  19861. urls: [
  19862. {
  19863. fmt: '/_nodes/<%=nodeId%>/<%=metric%>',
  19864. req: {
  19865. nodeId: { type: 'list' },
  19866. metric: {
  19867. type: 'list',
  19868. options: [
  19869. 'settings',
  19870. 'os',
  19871. 'process',
  19872. 'jvm',
  19873. 'thread_pool',
  19874. 'transport',
  19875. 'http',
  19876. 'plugins',
  19877. 'ingest'
  19878. ]
  19879. }
  19880. }
  19881. },
  19882. { fmt: '/_nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
  19883. {
  19884. fmt: '/_nodes/<%=metric%>',
  19885. req: {
  19886. metric: {
  19887. type: 'list',
  19888. options: [
  19889. 'settings',
  19890. 'os',
  19891. 'process',
  19892. 'jvm',
  19893. 'thread_pool',
  19894. 'transport',
  19895. 'http',
  19896. 'plugins',
  19897. 'ingest'
  19898. ]
  19899. }
  19900. }
  19901. },
  19902. { fmt: '/_nodes' }
  19903. ]
  19904. })),
  19905. (f.nodes.prototype.reloadSecureSettings = d({
  19906. params: { timeout: { type: 'time' } },
  19907. urls: [
  19908. { fmt: '/_nodes/<%=nodeId%>/reload_secure_settings', req: { nodeId: { type: 'list' } } },
  19909. { fmt: '/_nodes/reload_secure_settings' }
  19910. ],
  19911. method: 'POST'
  19912. })),
  19913. (f.nodes.prototype.stats = d({
  19914. params: {
  19915. completionFields: { type: 'list', name: 'completion_fields' },
  19916. fielddataFields: { type: 'list', name: 'fielddata_fields' },
  19917. fields: { type: 'list' },
  19918. groups: { type: 'boolean' },
  19919. level: { type: 'enum', default: 'node', options: ['indices', 'node', 'shards'] },
  19920. types: { type: 'list' },
  19921. timeout: { type: 'time' },
  19922. includeSegmentFileSizes: {
  19923. type: 'boolean',
  19924. default: !1,
  19925. name: 'include_segment_file_sizes'
  19926. }
  19927. },
  19928. urls: [
  19929. {
  19930. fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>',
  19931. req: {
  19932. nodeId: { type: 'list' },
  19933. metric: {
  19934. type: 'list',
  19935. options: [
  19936. '_all',
  19937. 'breaker',
  19938. 'fs',
  19939. 'http',
  19940. 'indices',
  19941. 'jvm',
  19942. 'os',
  19943. 'process',
  19944. 'thread_pool',
  19945. 'transport',
  19946. 'discovery'
  19947. ]
  19948. },
  19949. indexMetric: {
  19950. type: 'list',
  19951. options: [
  19952. '_all',
  19953. 'completion',
  19954. 'docs',
  19955. 'fielddata',
  19956. 'query_cache',
  19957. 'flush',
  19958. 'get',
  19959. 'indexing',
  19960. 'merge',
  19961. 'request_cache',
  19962. 'refresh',
  19963. 'search',
  19964. 'segments',
  19965. 'store',
  19966. 'warmer',
  19967. 'suggest'
  19968. ]
  19969. }
  19970. }
  19971. },
  19972. {
  19973. fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>',
  19974. req: {
  19975. nodeId: { type: 'list' },
  19976. metric: {
  19977. type: 'list',
  19978. options: [
  19979. '_all',
  19980. 'breaker',
  19981. 'fs',
  19982. 'http',
  19983. 'indices',
  19984. 'jvm',
  19985. 'os',
  19986. 'process',
  19987. 'thread_pool',
  19988. 'transport',
  19989. 'discovery'
  19990. ]
  19991. }
  19992. }
  19993. },
  19994. {
  19995. fmt: '/_nodes/stats/<%=metric%>/<%=indexMetric%>',
  19996. req: {
  19997. metric: {
  19998. type: 'list',
  19999. options: [
  20000. '_all',
  20001. 'breaker',
  20002. 'fs',
  20003. 'http',
  20004. 'indices',
  20005. 'jvm',
  20006. 'os',
  20007. 'process',
  20008. 'thread_pool',
  20009. 'transport',
  20010. 'discovery'
  20011. ]
  20012. },
  20013. indexMetric: {
  20014. type: 'list',
  20015. options: [
  20016. '_all',
  20017. 'completion',
  20018. 'docs',
  20019. 'fielddata',
  20020. 'query_cache',
  20021. 'flush',
  20022. 'get',
  20023. 'indexing',
  20024. 'merge',
  20025. 'request_cache',
  20026. 'refresh',
  20027. 'search',
  20028. 'segments',
  20029. 'store',
  20030. 'warmer',
  20031. 'suggest'
  20032. ]
  20033. }
  20034. }
  20035. },
  20036. { fmt: '/_nodes/<%=nodeId%>/stats', req: { nodeId: { type: 'list' } } },
  20037. {
  20038. fmt: '/_nodes/stats/<%=metric%>',
  20039. req: {
  20040. metric: {
  20041. type: 'list',
  20042. options: [
  20043. '_all',
  20044. 'breaker',
  20045. 'fs',
  20046. 'http',
  20047. 'indices',
  20048. 'jvm',
  20049. 'os',
  20050. 'process',
  20051. 'thread_pool',
  20052. 'transport',
  20053. 'discovery'
  20054. ]
  20055. }
  20056. }
  20057. },
  20058. { fmt: '/_nodes/stats' }
  20059. ]
  20060. })),
  20061. (f.nodes.prototype.usage = d({
  20062. params: { timeout: { type: 'time' } },
  20063. urls: [
  20064. {
  20065. fmt: '/_nodes/<%=nodeId%>/usage/<%=metric%>',
  20066. req: {
  20067. nodeId: { type: 'list' },
  20068. metric: { type: 'list', options: ['_all', 'rest_actions'] }
  20069. }
  20070. },
  20071. { fmt: '/_nodes/<%=nodeId%>/usage', req: { nodeId: { type: 'list' } } },
  20072. {
  20073. fmt: '/_nodes/usage/<%=metric%>',
  20074. req: { metric: { type: 'list', options: ['_all', 'rest_actions'] } }
  20075. },
  20076. { fmt: '/_nodes/usage' }
  20077. ]
  20078. })),
  20079. (f.ping = d({ url: { fmt: '/' }, method: 'HEAD' })),
  20080. (f.putScript = d({
  20081. params: {
  20082. timeout: { type: 'time' },
  20083. masterTimeout: { type: 'time', name: 'master_timeout' },
  20084. context: { type: 'string' }
  20085. },
  20086. urls: [
  20087. {
  20088. fmt: '/_scripts/<%=id%>/<%=context%>',
  20089. req: { id: { type: 'string' }, context: { type: 'string' } }
  20090. },
  20091. { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
  20092. ],
  20093. needBody: !0,
  20094. method: 'PUT'
  20095. })),
  20096. (f.rankEval = d({
  20097. params: {
  20098. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  20099. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  20100. expandWildcards: {
  20101. type: 'enum',
  20102. default: 'open',
  20103. options: ['open', 'closed', 'none', 'all'],
  20104. name: 'expand_wildcards'
  20105. }
  20106. },
  20107. urls: [
  20108. { fmt: '/<%=index%>/_rank_eval', req: { index: { type: 'list' } } },
  20109. { fmt: '/_rank_eval' }
  20110. ],
  20111. needBody: !0,
  20112. method: 'POST'
  20113. })),
  20114. (f.reindex = d({
  20115. params: {
  20116. refresh: { type: 'boolean' },
  20117. timeout: { type: 'time', default: '1m' },
  20118. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  20119. waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
  20120. requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
  20121. scroll: { type: 'time', default: '5m' },
  20122. slices: { type: 'number', default: 1 }
  20123. },
  20124. url: { fmt: '/_reindex' },
  20125. needBody: !0,
  20126. method: 'POST'
  20127. })),
  20128. (f.reindexRethrottle = d({
  20129. params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
  20130. url: { fmt: '/_reindex/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
  20131. method: 'POST'
  20132. })),
  20133. (f.renderSearchTemplate = d({
  20134. urls: [
  20135. { fmt: '/_render/template/<%=id%>', req: { id: { type: 'string' } } },
  20136. { fmt: '/_render/template' }
  20137. ],
  20138. method: 'POST'
  20139. })),
  20140. (f.scriptsPainlessContext = d({
  20141. params: { context: { type: 'string' } },
  20142. url: { fmt: '/_scripts/painless/_context' }
  20143. })),
  20144. (f.scriptsPainlessExecute = d({ url: { fmt: '/_scripts/painless/_execute' }, method: 'POST' })),
  20145. (f.scroll = d({
  20146. params: {
  20147. scroll: { type: 'time' },
  20148. scrollId: { type: 'string', name: 'scroll_id' },
  20149. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
  20150. },
  20151. url: { fmt: '/_search/scroll' },
  20152. paramAsBody: { param: 'scrollId', body: 'scroll_id' },
  20153. method: 'POST'
  20154. })),
  20155. (f.search = d({
  20156. params: {
  20157. analyzer: { type: 'string' },
  20158. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  20159. ccsMinimizeRoundtrips: {
  20160. type: 'boolean',
  20161. default: 'true',
  20162. name: 'ccs_minimize_roundtrips'
  20163. },
  20164. defaultOperator: {
  20165. type: 'enum',
  20166. default: 'OR',
  20167. options: ['AND', 'OR'],
  20168. name: 'default_operator'
  20169. },
  20170. df: { type: 'string' },
  20171. explain: { type: 'boolean' },
  20172. storedFields: { type: 'list', name: 'stored_fields' },
  20173. docvalueFields: { type: 'list', name: 'docvalue_fields' },
  20174. from: { type: 'number' },
  20175. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  20176. ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
  20177. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  20178. expandWildcards: {
  20179. type: 'enum',
  20180. default: 'open',
  20181. options: ['open', 'closed', 'none', 'all'],
  20182. name: 'expand_wildcards'
  20183. },
  20184. lenient: { type: 'boolean' },
  20185. preference: { type: 'string' },
  20186. q: { type: 'string' },
  20187. routing: { type: 'list' },
  20188. scroll: { type: 'time' },
  20189. searchType: {
  20190. type: 'enum',
  20191. options: ['query_then_fetch', 'dfs_query_then_fetch'],
  20192. name: 'search_type'
  20193. },
  20194. size: { type: 'number' },
  20195. sort: { type: 'list' },
  20196. _source: { type: 'list' },
  20197. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  20198. _sourceIncludes: { type: 'list', name: '_source_includes' },
  20199. terminateAfter: { type: 'number', name: 'terminate_after' },
  20200. stats: { type: 'list' },
  20201. suggestField: { type: 'string', name: 'suggest_field' },
  20202. suggestMode: {
  20203. type: 'enum',
  20204. default: 'missing',
  20205. options: ['missing', 'popular', 'always'],
  20206. name: 'suggest_mode'
  20207. },
  20208. suggestSize: { type: 'number', name: 'suggest_size' },
  20209. suggestText: { type: 'string', name: 'suggest_text' },
  20210. timeout: { type: 'time' },
  20211. trackScores: { type: 'boolean', name: 'track_scores' },
  20212. trackTotalHits: { type: 'boolean', name: 'track_total_hits' },
  20213. allowPartialSearchResults: {
  20214. type: 'boolean',
  20215. default: !0,
  20216. name: 'allow_partial_search_results'
  20217. },
  20218. typedKeys: { type: 'boolean', name: 'typed_keys' },
  20219. version: { type: 'boolean' },
  20220. seqNoPrimaryTerm: { type: 'boolean', name: 'seq_no_primary_term' },
  20221. requestCache: { type: 'boolean', name: 'request_cache' },
  20222. batchedReduceSize: { type: 'number', default: 512, name: 'batched_reduce_size' },
  20223. maxConcurrentShardRequests: {
  20224. type: 'number',
  20225. default: 5,
  20226. name: 'max_concurrent_shard_requests'
  20227. },
  20228. preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
  20229. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
  20230. },
  20231. urls: [{ fmt: '/<%=index%>/_search', req: { index: { type: 'list' } } }, { fmt: '/_search' }],
  20232. method: 'POST'
  20233. })),
  20234. (f.searchShards = d({
  20235. params: {
  20236. preference: { type: 'string' },
  20237. routing: { type: 'string' },
  20238. local: { type: 'boolean' },
  20239. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  20240. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  20241. expandWildcards: {
  20242. type: 'enum',
  20243. default: 'open',
  20244. options: ['open', 'closed', 'none', 'all'],
  20245. name: 'expand_wildcards'
  20246. }
  20247. },
  20248. urls: [
  20249. { fmt: '/<%=index%>/_search_shards', req: { index: { type: 'list' } } },
  20250. { fmt: '/_search_shards' }
  20251. ],
  20252. method: 'POST'
  20253. })),
  20254. (f.searchTemplate = d({
  20255. params: {
  20256. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  20257. ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
  20258. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  20259. expandWildcards: {
  20260. type: 'enum',
  20261. default: 'open',
  20262. options: ['open', 'closed', 'none', 'all'],
  20263. name: 'expand_wildcards'
  20264. },
  20265. preference: { type: 'string' },
  20266. routing: { type: 'list' },
  20267. scroll: { type: 'time' },
  20268. searchType: {
  20269. type: 'enum',
  20270. options: [
  20271. 'query_then_fetch',
  20272. 'query_and_fetch',
  20273. 'dfs_query_then_fetch',
  20274. 'dfs_query_and_fetch'
  20275. ],
  20276. name: 'search_type'
  20277. },
  20278. explain: { type: 'boolean' },
  20279. profile: { type: 'boolean' },
  20280. typedKeys: { type: 'boolean', name: 'typed_keys' },
  20281. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
  20282. ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
  20283. },
  20284. urls: [
  20285. { fmt: '/<%=index%>/_search/template', req: { index: { type: 'list' } } },
  20286. { fmt: '/_search/template' }
  20287. ],
  20288. needBody: !0,
  20289. method: 'POST'
  20290. })),
  20291. (f.snapshot = e()),
  20292. (f.snapshot.prototype.create = d({
  20293. params: {
  20294. masterTimeout: { type: 'time', name: 'master_timeout' },
  20295. waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
  20296. },
  20297. url: {
  20298. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
  20299. req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
  20300. },
  20301. method: 'POST'
  20302. })),
  20303. (f.snapshot.prototype.createRepository = d({
  20304. params: {
  20305. masterTimeout: { type: 'time', name: 'master_timeout' },
  20306. timeout: { type: 'time' },
  20307. verify: { type: 'boolean' }
  20308. },
  20309. url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'string' } } },
  20310. needBody: !0,
  20311. method: 'POST'
  20312. })),
  20313. (f.snapshot.prototype.delete = d({
  20314. params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
  20315. url: {
  20316. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
  20317. req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
  20318. },
  20319. method: 'DELETE'
  20320. })),
  20321. (f.snapshot.prototype.deleteRepository = d({
  20322. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  20323. url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
  20324. method: 'DELETE'
  20325. })),
  20326. (f.snapshot.prototype.get = d({
  20327. params: {
  20328. masterTimeout: { type: 'time', name: 'master_timeout' },
  20329. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  20330. verbose: { type: 'boolean' }
  20331. },
  20332. url: {
  20333. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
  20334. req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
  20335. }
  20336. })),
  20337. (f.snapshot.prototype.getRepository = d({
  20338. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, local: { type: 'boolean' } },
  20339. urls: [
  20340. { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
  20341. { fmt: '/_snapshot' }
  20342. ]
  20343. })),
  20344. (f.snapshot.prototype.restore = d({
  20345. params: {
  20346. masterTimeout: { type: 'time', name: 'master_timeout' },
  20347. waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
  20348. },
  20349. url: {
  20350. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_restore',
  20351. req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
  20352. },
  20353. method: 'POST'
  20354. })),
  20355. (f.snapshot.prototype.status = d({
  20356. params: {
  20357. masterTimeout: { type: 'time', name: 'master_timeout' },
  20358. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' }
  20359. },
  20360. urls: [
  20361. {
  20362. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_status',
  20363. req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
  20364. },
  20365. { fmt: '/_snapshot/<%=repository%>/_status', req: { repository: { type: 'string' } } },
  20366. { fmt: '/_snapshot/_status' }
  20367. ]
  20368. })),
  20369. (f.snapshot.prototype.verifyRepository = d({
  20370. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  20371. url: { fmt: '/_snapshot/<%=repository%>/_verify', req: { repository: { type: 'string' } } },
  20372. method: 'POST'
  20373. })),
  20374. (f.tasks = e()),
  20375. (f.tasks.prototype.cancel = d({
  20376. params: {
  20377. nodes: { type: 'list' },
  20378. actions: { type: 'list' },
  20379. parentTaskId: { type: 'string', name: 'parent_task_id' }
  20380. },
  20381. urls: [
  20382. { fmt: '/_tasks/<%=taskId%>/_cancel', req: { taskId: { type: 'string' } } },
  20383. { fmt: '/_tasks/_cancel' }
  20384. ],
  20385. method: 'POST'
  20386. })),
  20387. (f.tasks.prototype.get = d({
  20388. params: {
  20389. waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
  20390. timeout: { type: 'time' }
  20391. },
  20392. url: { fmt: '/_tasks/<%=taskId%>', req: { taskId: { type: 'string' } } }
  20393. })),
  20394. (f.tasks.prototype.list = d({
  20395. params: {
  20396. nodes: { type: 'list' },
  20397. actions: { type: 'list' },
  20398. detailed: { type: 'boolean' },
  20399. parentTaskId: { type: 'string', name: 'parent_task_id' },
  20400. waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
  20401. groupBy: {
  20402. type: 'enum',
  20403. default: 'nodes',
  20404. options: ['nodes', 'parents', 'none'],
  20405. name: 'group_by'
  20406. },
  20407. timeout: { type: 'time' }
  20408. },
  20409. url: { fmt: '/_tasks' }
  20410. })),
  20411. (f.termvectors = d({
  20412. params: {
  20413. termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
  20414. fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
  20415. fields: { type: 'list', required: !1 },
  20416. offsets: { type: 'boolean', default: !0, required: !1 },
  20417. positions: { type: 'boolean', default: !0, required: !1 },
  20418. payloads: { type: 'boolean', default: !0, required: !1 },
  20419. preference: { type: 'string', required: !1 },
  20420. routing: { type: 'string', required: !1 },
  20421. realtime: { type: 'boolean', required: !1 },
  20422. version: { type: 'number' },
  20423. versionType: {
  20424. type: 'enum',
  20425. options: ['internal', 'external', 'external_gte', 'force'],
  20426. name: 'version_type'
  20427. }
  20428. },
  20429. urls: [
  20430. {
  20431. fmt: '/<%=index%>/_termvectors/<%=id%>',
  20432. req: { index: { type: 'string' }, id: { type: 'string' } }
  20433. },
  20434. { fmt: '/<%=index%>/_termvectors', req: { index: { type: 'string' } } }
  20435. ],
  20436. method: 'POST'
  20437. })),
  20438. (f.update = d({
  20439. params: {
  20440. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  20441. _source: { type: 'list' },
  20442. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  20443. _sourceIncludes: { type: 'list', name: '_source_includes' },
  20444. lang: { type: 'string' },
  20445. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  20446. retryOnConflict: { type: 'number', name: 'retry_on_conflict' },
  20447. routing: { type: 'string' },
  20448. timeout: { type: 'time' },
  20449. ifSeqNo: { type: 'number', name: 'if_seq_no' },
  20450. ifPrimaryTerm: { type: 'number', name: 'if_primary_term' }
  20451. },
  20452. url: {
  20453. fmt: '/<%=index%>/_update/<%=id%>',
  20454. req: { index: { type: 'string' }, id: { type: 'string' } }
  20455. },
  20456. needBody: !0,
  20457. method: 'POST'
  20458. })),
  20459. (f.updateByQuery = d({
  20460. params: {
  20461. analyzer: { type: 'string' },
  20462. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  20463. defaultOperator: {
  20464. type: 'enum',
  20465. default: 'OR',
  20466. options: ['AND', 'OR'],
  20467. name: 'default_operator'
  20468. },
  20469. df: { type: 'string' },
  20470. from: { type: 'number' },
  20471. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  20472. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  20473. conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
  20474. expandWildcards: {
  20475. type: 'enum',
  20476. default: 'open',
  20477. options: ['open', 'closed', 'none', 'all'],
  20478. name: 'expand_wildcards'
  20479. },
  20480. lenient: { type: 'boolean' },
  20481. pipeline: { type: 'string' },
  20482. preference: { type: 'string' },
  20483. q: { type: 'string' },
  20484. routing: { type: 'list' },
  20485. scroll: { type: 'time' },
  20486. searchType: {
  20487. type: 'enum',
  20488. options: ['query_then_fetch', 'dfs_query_then_fetch'],
  20489. name: 'search_type'
  20490. },
  20491. searchTimeout: { type: 'time', name: 'search_timeout' },
  20492. size: { type: 'number' },
  20493. sort: { type: 'list' },
  20494. _source: { type: 'list' },
  20495. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  20496. _sourceIncludes: { type: 'list', name: '_source_includes' },
  20497. terminateAfter: { type: 'number', name: 'terminate_after' },
  20498. stats: { type: 'list' },
  20499. version: { type: 'boolean' },
  20500. versionType: { type: 'boolean', name: 'version_type' },
  20501. requestCache: { type: 'boolean', name: 'request_cache' },
  20502. refresh: { type: 'boolean' },
  20503. timeout: { type: 'time', default: '1m' },
  20504. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  20505. scrollSize: { type: 'number', name: 'scroll_size' },
  20506. waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
  20507. requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
  20508. slices: { type: 'number', default: 1 }
  20509. },
  20510. url: { fmt: '/<%=index%>/_update_by_query', req: { index: { type: 'list' } } },
  20511. method: 'POST'
  20512. })),
  20513. (f.updateByQueryRethrottle = d({
  20514. params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
  20515. url: { fmt: '/_update_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
  20516. method: 'POST'
  20517. }));
  20518. },
  20519. function(a, b, c) {
  20520. var d = c(1).makeFactoryWithModifier(function(a) {
  20521. return c(0).merge(a, { params: { filterPath: { type: 'list', name: 'filter_path' } } });
  20522. }),
  20523. e = c(1).namespaceFactory,
  20524. f = (a.exports = {});
  20525. (f._namespaces = ['cat', 'cluster', 'indices', 'ingest', 'nodes', 'snapshot', 'tasks']),
  20526. (f.bulk = d({
  20527. params: {
  20528. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  20529. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  20530. routing: { type: 'string' },
  20531. timeout: { type: 'time' },
  20532. type: { type: 'string' },
  20533. _source: { type: 'list' },
  20534. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  20535. _sourceIncludes: { type: 'list', name: '_source_includes' },
  20536. pipeline: { type: 'string' }
  20537. },
  20538. urls: [
  20539. {
  20540. fmt: '/<%=index%>/<%=type%>/_bulk',
  20541. req: { index: { type: 'string' }, type: { type: 'string' } }
  20542. },
  20543. { fmt: '/<%=index%>/_bulk', req: { index: { type: 'string' } } },
  20544. { fmt: '/_bulk' }
  20545. ],
  20546. needBody: !0,
  20547. bulkBody: !0,
  20548. method: 'POST'
  20549. })),
  20550. (f.cat = e()),
  20551. (f.cat.prototype.aliases = d({
  20552. params: {
  20553. format: { type: 'string' },
  20554. local: { type: 'boolean' },
  20555. masterTimeout: { type: 'time', name: 'master_timeout' },
  20556. h: { type: 'list' },
  20557. help: { type: 'boolean', default: !1 },
  20558. s: { type: 'list' },
  20559. v: { type: 'boolean', default: !1 }
  20560. },
  20561. urls: [
  20562. { fmt: '/_cat/aliases/<%=name%>', req: { name: { type: 'list' } } },
  20563. { fmt: '/_cat/aliases' }
  20564. ]
  20565. })),
  20566. (f.cat.prototype.allocation = d({
  20567. params: {
  20568. format: { type: 'string' },
  20569. bytes: {
  20570. type: 'enum',
  20571. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  20572. },
  20573. local: { type: 'boolean' },
  20574. masterTimeout: { type: 'time', name: 'master_timeout' },
  20575. h: { type: 'list' },
  20576. help: { type: 'boolean', default: !1 },
  20577. s: { type: 'list' },
  20578. v: { type: 'boolean', default: !1 }
  20579. },
  20580. urls: [
  20581. { fmt: '/_cat/allocation/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
  20582. { fmt: '/_cat/allocation' }
  20583. ]
  20584. })),
  20585. (f.cat.prototype.count = d({
  20586. params: {
  20587. format: { type: 'string' },
  20588. local: { type: 'boolean' },
  20589. masterTimeout: { type: 'time', name: 'master_timeout' },
  20590. h: { type: 'list' },
  20591. help: { type: 'boolean', default: !1 },
  20592. s: { type: 'list' },
  20593. v: { type: 'boolean', default: !1 }
  20594. },
  20595. urls: [
  20596. { fmt: '/_cat/count/<%=index%>', req: { index: { type: 'list' } } },
  20597. { fmt: '/_cat/count' }
  20598. ]
  20599. })),
  20600. (f.cat.prototype.fielddata = d({
  20601. params: {
  20602. format: { type: 'string' },
  20603. bytes: {
  20604. type: 'enum',
  20605. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  20606. },
  20607. local: { type: 'boolean' },
  20608. masterTimeout: { type: 'time', name: 'master_timeout' },
  20609. h: { type: 'list' },
  20610. help: { type: 'boolean', default: !1 },
  20611. s: { type: 'list' },
  20612. v: { type: 'boolean', default: !1 },
  20613. fields: { type: 'list' }
  20614. },
  20615. urls: [
  20616. { fmt: '/_cat/fielddata/<%=fields%>', req: { fields: { type: 'list' } } },
  20617. { fmt: '/_cat/fielddata' }
  20618. ]
  20619. })),
  20620. (f.cat.prototype.health = d({
  20621. params: {
  20622. format: { type: 'string' },
  20623. local: { type: 'boolean' },
  20624. masterTimeout: { type: 'time', name: 'master_timeout' },
  20625. h: { type: 'list' },
  20626. help: { type: 'boolean', default: !1 },
  20627. s: { type: 'list' },
  20628. ts: { type: 'boolean', default: !0 },
  20629. v: { type: 'boolean', default: !1 }
  20630. },
  20631. url: { fmt: '/_cat/health' }
  20632. })),
  20633. (f.cat.prototype.help = d({
  20634. params: { help: { type: 'boolean', default: !1 }, s: { type: 'list' } },
  20635. url: { fmt: '/_cat' }
  20636. })),
  20637. (f.cat.prototype.indices = d({
  20638. params: {
  20639. format: { type: 'string' },
  20640. bytes: { type: 'enum', options: ['b', 'k', 'm', 'g'] },
  20641. local: { type: 'boolean' },
  20642. masterTimeout: { type: 'time', name: 'master_timeout' },
  20643. h: { type: 'list' },
  20644. health: { type: 'enum', default: null, options: ['green', 'yellow', 'red'] },
  20645. help: { type: 'boolean', default: !1 },
  20646. pri: { type: 'boolean', default: !1 },
  20647. s: { type: 'list' },
  20648. v: { type: 'boolean', default: !1 },
  20649. includeUnloadedSegments: { type: 'boolean', default: !1, name: 'include_unloaded_segments' }
  20650. },
  20651. urls: [
  20652. { fmt: '/_cat/indices/<%=index%>', req: { index: { type: 'list' } } },
  20653. { fmt: '/_cat/indices' }
  20654. ]
  20655. })),
  20656. (f.cat.prototype.master = d({
  20657. params: {
  20658. format: { type: 'string' },
  20659. local: { type: 'boolean' },
  20660. masterTimeout: { type: 'time', name: 'master_timeout' },
  20661. h: { type: 'list' },
  20662. help: { type: 'boolean', default: !1 },
  20663. s: { type: 'list' },
  20664. v: { type: 'boolean', default: !1 }
  20665. },
  20666. url: { fmt: '/_cat/master' }
  20667. })),
  20668. (f.cat.prototype.nodeattrs = d({
  20669. params: {
  20670. format: { type: 'string' },
  20671. local: { type: 'boolean' },
  20672. masterTimeout: { type: 'time', name: 'master_timeout' },
  20673. h: { type: 'list' },
  20674. help: { type: 'boolean', default: !1 },
  20675. s: { type: 'list' },
  20676. v: { type: 'boolean', default: !1 }
  20677. },
  20678. url: { fmt: '/_cat/nodeattrs' }
  20679. })),
  20680. (f.cat.prototype.nodes = d({
  20681. params: {
  20682. format: { type: 'string' },
  20683. fullId: { type: 'boolean', name: 'full_id' },
  20684. local: { type: 'boolean' },
  20685. masterTimeout: { type: 'time', name: 'master_timeout' },
  20686. h: { type: 'list' },
  20687. help: { type: 'boolean', default: !1 },
  20688. s: { type: 'list' },
  20689. v: { type: 'boolean', default: !1 }
  20690. },
  20691. url: { fmt: '/_cat/nodes' }
  20692. })),
  20693. (f.cat.prototype.pendingTasks = d({
  20694. params: {
  20695. format: { type: 'string' },
  20696. local: { type: 'boolean' },
  20697. masterTimeout: { type: 'time', name: 'master_timeout' },
  20698. h: { type: 'list' },
  20699. help: { type: 'boolean', default: !1 },
  20700. s: { type: 'list' },
  20701. v: { type: 'boolean', default: !1 }
  20702. },
  20703. url: { fmt: '/_cat/pending_tasks' }
  20704. })),
  20705. (f.cat.prototype.plugins = d({
  20706. params: {
  20707. format: { type: 'string' },
  20708. local: { type: 'boolean' },
  20709. masterTimeout: { type: 'time', name: 'master_timeout' },
  20710. h: { type: 'list' },
  20711. help: { type: 'boolean', default: !1 },
  20712. s: { type: 'list' },
  20713. v: { type: 'boolean', default: !1 }
  20714. },
  20715. url: { fmt: '/_cat/plugins' }
  20716. })),
  20717. (f.cat.prototype.recovery = d({
  20718. params: {
  20719. format: { type: 'string' },
  20720. bytes: {
  20721. type: 'enum',
  20722. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  20723. },
  20724. masterTimeout: { type: 'time', name: 'master_timeout' },
  20725. h: { type: 'list' },
  20726. help: { type: 'boolean', default: !1 },
  20727. s: { type: 'list' },
  20728. v: { type: 'boolean', default: !1 }
  20729. },
  20730. urls: [
  20731. { fmt: '/_cat/recovery/<%=index%>', req: { index: { type: 'list' } } },
  20732. { fmt: '/_cat/recovery' }
  20733. ]
  20734. })),
  20735. (f.cat.prototype.repositories = d({
  20736. params: {
  20737. format: { type: 'string' },
  20738. local: { type: 'boolean', default: !1 },
  20739. masterTimeout: { type: 'time', name: 'master_timeout' },
  20740. h: { type: 'list' },
  20741. help: { type: 'boolean', default: !1 },
  20742. s: { type: 'list' },
  20743. v: { type: 'boolean', default: !1 }
  20744. },
  20745. url: { fmt: '/_cat/repositories' }
  20746. })),
  20747. (f.cat.prototype.segments = d({
  20748. params: {
  20749. format: { type: 'string' },
  20750. bytes: {
  20751. type: 'enum',
  20752. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  20753. },
  20754. h: { type: 'list' },
  20755. help: { type: 'boolean', default: !1 },
  20756. s: { type: 'list' },
  20757. v: { type: 'boolean', default: !1 }
  20758. },
  20759. urls: [
  20760. { fmt: '/_cat/segments/<%=index%>', req: { index: { type: 'list' } } },
  20761. { fmt: '/_cat/segments' }
  20762. ]
  20763. })),
  20764. (f.cat.prototype.shards = d({
  20765. params: {
  20766. format: { type: 'string' },
  20767. bytes: {
  20768. type: 'enum',
  20769. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  20770. },
  20771. local: { type: 'boolean' },
  20772. masterTimeout: { type: 'time', name: 'master_timeout' },
  20773. h: { type: 'list' },
  20774. help: { type: 'boolean', default: !1 },
  20775. s: { type: 'list' },
  20776. v: { type: 'boolean', default: !1 }
  20777. },
  20778. urls: [
  20779. { fmt: '/_cat/shards/<%=index%>', req: { index: { type: 'list' } } },
  20780. { fmt: '/_cat/shards' }
  20781. ]
  20782. })),
  20783. (f.cat.prototype.snapshots = d({
  20784. params: {
  20785. format: { type: 'string' },
  20786. ignoreUnavailable: { type: 'boolean', default: !1, name: 'ignore_unavailable' },
  20787. masterTimeout: { type: 'time', name: 'master_timeout' },
  20788. h: { type: 'list' },
  20789. help: { type: 'boolean', default: !1 },
  20790. s: { type: 'list' },
  20791. v: { type: 'boolean', default: !1 }
  20792. },
  20793. urls: [
  20794. { fmt: '/_cat/snapshots/<%=repository%>', req: { repository: { type: 'list' } } },
  20795. { fmt: '/_cat/snapshots' }
  20796. ]
  20797. })),
  20798. (f.cat.prototype.tasks = d({
  20799. params: {
  20800. format: { type: 'string' },
  20801. nodeId: { type: 'list', name: 'node_id' },
  20802. actions: { type: 'list' },
  20803. detailed: { type: 'boolean' },
  20804. parentTask: { type: 'number', name: 'parent_task' },
  20805. h: { type: 'list' },
  20806. help: { type: 'boolean', default: !1 },
  20807. s: { type: 'list' },
  20808. v: { type: 'boolean', default: !1 }
  20809. },
  20810. url: { fmt: '/_cat/tasks' }
  20811. })),
  20812. (f.cat.prototype.templates = d({
  20813. params: {
  20814. format: { type: 'string' },
  20815. local: { type: 'boolean' },
  20816. masterTimeout: { type: 'time', name: 'master_timeout' },
  20817. h: { type: 'list' },
  20818. help: { type: 'boolean', default: !1 },
  20819. s: { type: 'list' },
  20820. v: { type: 'boolean', default: !1 }
  20821. },
  20822. urls: [
  20823. { fmt: '/_cat/templates/<%=name%>', req: { name: { type: 'string' } } },
  20824. { fmt: '/_cat/templates' }
  20825. ]
  20826. })),
  20827. (f.cat.prototype.threadPool = d({
  20828. params: {
  20829. format: { type: 'string' },
  20830. size: { type: 'enum', options: ['', 'k', 'm', 'g', 't', 'p'] },
  20831. local: { type: 'boolean' },
  20832. masterTimeout: { type: 'time', name: 'master_timeout' },
  20833. h: { type: 'list' },
  20834. help: { type: 'boolean', default: !1 },
  20835. s: { type: 'list' },
  20836. v: { type: 'boolean', default: !1 }
  20837. },
  20838. urls: [
  20839. {
  20840. fmt: '/_cat/thread_pool/<%=threadPoolPatterns%>',
  20841. req: { threadPoolPatterns: { type: 'list' } }
  20842. },
  20843. { fmt: '/_cat/thread_pool' }
  20844. ]
  20845. })),
  20846. (f.clearScroll = d({
  20847. url: { fmt: '/_search/scroll' },
  20848. paramAsBody: { param: 'scrollId', body: 'scroll_id' },
  20849. method: 'DELETE'
  20850. })),
  20851. (f.cluster = e()),
  20852. (f.cluster.prototype.allocationExplain = d({
  20853. params: {
  20854. includeYesDecisions: { type: 'boolean', name: 'include_yes_decisions' },
  20855. includeDiskInfo: { type: 'boolean', name: 'include_disk_info' }
  20856. },
  20857. url: { fmt: '/_cluster/allocation/explain' },
  20858. method: 'POST'
  20859. })),
  20860. (f.cluster.prototype.getSettings = d({
  20861. params: {
  20862. flatSettings: { type: 'boolean', name: 'flat_settings' },
  20863. masterTimeout: { type: 'time', name: 'master_timeout' },
  20864. timeout: { type: 'time' },
  20865. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
  20866. },
  20867. url: { fmt: '/_cluster/settings' }
  20868. })),
  20869. (f.cluster.prototype.health = d({
  20870. params: {
  20871. expandWildcards: {
  20872. type: 'enum',
  20873. default: 'all',
  20874. options: ['open', 'closed', 'none', 'all'],
  20875. name: 'expand_wildcards'
  20876. },
  20877. level: { type: 'enum', default: 'cluster', options: ['cluster', 'indices', 'shards'] },
  20878. local: { type: 'boolean' },
  20879. masterTimeout: { type: 'time', name: 'master_timeout' },
  20880. timeout: { type: 'time' },
  20881. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  20882. waitForNodes: { type: 'string', name: 'wait_for_nodes' },
  20883. waitForEvents: {
  20884. type: 'enum',
  20885. options: ['immediate', 'urgent', 'high', 'normal', 'low', 'languid'],
  20886. name: 'wait_for_events'
  20887. },
  20888. waitForNoRelocatingShards: { type: 'boolean', name: 'wait_for_no_relocating_shards' },
  20889. waitForNoInitializingShards: { type: 'boolean', name: 'wait_for_no_initializing_shards' },
  20890. waitForStatus: {
  20891. type: 'enum',
  20892. default: null,
  20893. options: ['green', 'yellow', 'red'],
  20894. name: 'wait_for_status'
  20895. }
  20896. },
  20897. urls: [
  20898. { fmt: '/_cluster/health/<%=index%>', req: { index: { type: 'list' } } },
  20899. { fmt: '/_cluster/health' }
  20900. ]
  20901. })),
  20902. (f.cluster.prototype.pendingTasks = d({
  20903. params: { local: { type: 'boolean' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  20904. url: { fmt: '/_cluster/pending_tasks' }
  20905. })),
  20906. (f.cluster.prototype.putSettings = d({
  20907. params: {
  20908. flatSettings: { type: 'boolean', name: 'flat_settings' },
  20909. masterTimeout: { type: 'time', name: 'master_timeout' },
  20910. timeout: { type: 'time' }
  20911. },
  20912. url: { fmt: '/_cluster/settings' },
  20913. needBody: !0,
  20914. method: 'PUT'
  20915. })),
  20916. (f.cluster.prototype.remoteInfo = d({ url: { fmt: '/_remote/info' } })),
  20917. (f.cluster.prototype.reroute = d({
  20918. params: {
  20919. dryRun: { type: 'boolean', name: 'dry_run' },
  20920. explain: { type: 'boolean' },
  20921. retryFailed: { type: 'boolean', name: 'retry_failed' },
  20922. metric: {
  20923. type: 'list',
  20924. options: [
  20925. '_all',
  20926. 'blocks',
  20927. 'metadata',
  20928. 'nodes',
  20929. 'routing_table',
  20930. 'master_node',
  20931. 'version'
  20932. ]
  20933. },
  20934. masterTimeout: { type: 'time', name: 'master_timeout' },
  20935. timeout: { type: 'time' }
  20936. },
  20937. url: { fmt: '/_cluster/reroute' },
  20938. method: 'POST'
  20939. })),
  20940. (f.cluster.prototype.state = d({
  20941. params: {
  20942. local: { type: 'boolean' },
  20943. masterTimeout: { type: 'time', name: 'master_timeout' },
  20944. flatSettings: { type: 'boolean', name: 'flat_settings' },
  20945. waitForMetadataVersion: { type: 'number', name: 'wait_for_metadata_version' },
  20946. waitForTimeout: { type: 'time', name: 'wait_for_timeout' },
  20947. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  20948. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  20949. expandWildcards: {
  20950. type: 'enum',
  20951. default: 'open',
  20952. options: ['open', 'closed', 'none', 'all'],
  20953. name: 'expand_wildcards'
  20954. }
  20955. },
  20956. urls: [
  20957. {
  20958. fmt: '/_cluster/state/<%=metric%>/<%=index%>',
  20959. req: {
  20960. metric: {
  20961. type: 'list',
  20962. options: [
  20963. '_all',
  20964. 'blocks',
  20965. 'metadata',
  20966. 'nodes',
  20967. 'routing_table',
  20968. 'routing_nodes',
  20969. 'master_node',
  20970. 'version'
  20971. ]
  20972. },
  20973. index: { type: 'list' }
  20974. }
  20975. },
  20976. {
  20977. fmt: '/_cluster/state/<%=metric%>',
  20978. req: {
  20979. metric: {
  20980. type: 'list',
  20981. options: [
  20982. '_all',
  20983. 'blocks',
  20984. 'metadata',
  20985. 'nodes',
  20986. 'routing_table',
  20987. 'routing_nodes',
  20988. 'master_node',
  20989. 'version'
  20990. ]
  20991. }
  20992. }
  20993. },
  20994. { fmt: '/_cluster/state' }
  20995. ]
  20996. })),
  20997. (f.cluster.prototype.stats = d({
  20998. params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
  20999. urls: [
  21000. { fmt: '/_cluster/stats/nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
  21001. { fmt: '/_cluster/stats' }
  21002. ]
  21003. })),
  21004. (f.count = d({
  21005. params: {
  21006. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  21007. ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
  21008. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  21009. expandWildcards: {
  21010. type: 'enum',
  21011. default: 'open',
  21012. options: ['open', 'closed', 'none', 'all'],
  21013. name: 'expand_wildcards'
  21014. },
  21015. minScore: { type: 'number', name: 'min_score' },
  21016. preference: { type: 'string' },
  21017. routing: { type: 'list' },
  21018. q: { type: 'string' },
  21019. analyzer: { type: 'string' },
  21020. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  21021. defaultOperator: {
  21022. type: 'enum',
  21023. default: 'OR',
  21024. options: ['AND', 'OR'],
  21025. name: 'default_operator'
  21026. },
  21027. df: { type: 'string' },
  21028. lenient: { type: 'boolean' },
  21029. terminateAfter: { type: 'number', name: 'terminate_after' }
  21030. },
  21031. urls: [{ fmt: '/<%=index%>/_count', req: { index: { type: 'list' } } }, { fmt: '/_count' }],
  21032. method: 'POST'
  21033. })),
  21034. (f.create = d({
  21035. params: {
  21036. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  21037. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  21038. routing: { type: 'string' },
  21039. timeout: { type: 'time' },
  21040. version: { type: 'number' },
  21041. versionType: {
  21042. type: 'enum',
  21043. options: ['internal', 'external', 'external_gte', 'force'],
  21044. name: 'version_type'
  21045. },
  21046. pipeline: { type: 'string' }
  21047. },
  21048. url: {
  21049. fmt: '/<%=index%>/_create/<%=id%>',
  21050. req: { index: { type: 'string' }, id: { type: 'string' } }
  21051. },
  21052. needBody: !0,
  21053. method: 'POST'
  21054. })),
  21055. (f.delete = d({
  21056. params: {
  21057. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  21058. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  21059. routing: { type: 'string' },
  21060. timeout: { type: 'time' },
  21061. ifSeqNo: { type: 'number', name: 'if_seq_no' },
  21062. ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
  21063. version: { type: 'number' },
  21064. versionType: {
  21065. type: 'enum',
  21066. options: ['internal', 'external', 'external_gte', 'force'],
  21067. name: 'version_type'
  21068. }
  21069. },
  21070. url: {
  21071. fmt: '/<%=index%>/_doc/<%=id%>',
  21072. req: { index: { type: 'string' }, id: { type: 'string' } }
  21073. },
  21074. method: 'DELETE'
  21075. })),
  21076. (f.deleteByQuery = d({
  21077. params: {
  21078. analyzer: { type: 'string' },
  21079. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  21080. defaultOperator: {
  21081. type: 'enum',
  21082. default: 'OR',
  21083. options: ['AND', 'OR'],
  21084. name: 'default_operator'
  21085. },
  21086. df: { type: 'string' },
  21087. from: { type: 'number' },
  21088. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  21089. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  21090. conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
  21091. expandWildcards: {
  21092. type: 'enum',
  21093. default: 'open',
  21094. options: ['open', 'closed', 'none', 'all'],
  21095. name: 'expand_wildcards'
  21096. },
  21097. lenient: { type: 'boolean' },
  21098. preference: { type: 'string' },
  21099. q: { type: 'string' },
  21100. routing: { type: 'list' },
  21101. scroll: { type: 'time' },
  21102. searchType: {
  21103. type: 'enum',
  21104. options: ['query_then_fetch', 'dfs_query_then_fetch'],
  21105. name: 'search_type'
  21106. },
  21107. searchTimeout: { type: 'time', name: 'search_timeout' },
  21108. size: { type: 'number' },
  21109. maxDocs: { type: 'number', name: 'max_docs' },
  21110. sort: { type: 'list' },
  21111. _source: { type: 'list' },
  21112. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  21113. _sourceIncludes: { type: 'list', name: '_source_includes' },
  21114. terminateAfter: { type: 'number', name: 'terminate_after' },
  21115. stats: { type: 'list' },
  21116. version: { type: 'boolean' },
  21117. requestCache: { type: 'boolean', name: 'request_cache' },
  21118. refresh: { type: 'boolean' },
  21119. timeout: { type: 'time', default: '1m' },
  21120. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  21121. scrollSize: { type: 'number', name: 'scroll_size' },
  21122. waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
  21123. requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
  21124. slices: { type: 'number', default: 1 }
  21125. },
  21126. url: { fmt: '/<%=index%>/_delete_by_query', req: { index: { type: 'list' } } },
  21127. needBody: !0,
  21128. method: 'POST'
  21129. })),
  21130. (f.deleteByQueryRethrottle = d({
  21131. params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
  21132. url: { fmt: '/_delete_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
  21133. method: 'POST'
  21134. })),
  21135. (f.deleteScript = d({
  21136. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  21137. url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } },
  21138. method: 'DELETE'
  21139. })),
  21140. (f.exists = d({
  21141. params: {
  21142. storedFields: { type: 'list', name: 'stored_fields' },
  21143. preference: { type: 'string' },
  21144. realtime: { type: 'boolean' },
  21145. refresh: { type: 'boolean' },
  21146. routing: { type: 'string' },
  21147. _source: { type: 'list' },
  21148. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  21149. _sourceIncludes: { type: 'list', name: '_source_includes' },
  21150. version: { type: 'number' },
  21151. versionType: {
  21152. type: 'enum',
  21153. options: ['internal', 'external', 'external_gte', 'force'],
  21154. name: 'version_type'
  21155. }
  21156. },
  21157. url: {
  21158. fmt: '/<%=index%>/_doc/<%=id%>',
  21159. req: { index: { type: 'string' }, id: { type: 'string' } }
  21160. },
  21161. method: 'HEAD'
  21162. })),
  21163. (f.existsSource = d({
  21164. params: {
  21165. preference: { type: 'string' },
  21166. realtime: { type: 'boolean' },
  21167. refresh: { type: 'boolean' },
  21168. routing: { type: 'string' },
  21169. _source: { type: 'list' },
  21170. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  21171. _sourceIncludes: { type: 'list', name: '_source_includes' },
  21172. version: { type: 'number' },
  21173. versionType: {
  21174. type: 'enum',
  21175. options: ['internal', 'external', 'external_gte', 'force'],
  21176. name: 'version_type'
  21177. }
  21178. },
  21179. url: {
  21180. fmt: '/<%=index%>/_source/<%=id%>',
  21181. req: { index: { type: 'string' }, id: { type: 'string' } }
  21182. },
  21183. method: 'HEAD'
  21184. })),
  21185. (f.explain = d({
  21186. params: {
  21187. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  21188. analyzer: { type: 'string' },
  21189. defaultOperator: {
  21190. type: 'enum',
  21191. default: 'OR',
  21192. options: ['AND', 'OR'],
  21193. name: 'default_operator'
  21194. },
  21195. df: { type: 'string' },
  21196. storedFields: { type: 'list', name: 'stored_fields' },
  21197. lenient: { type: 'boolean' },
  21198. preference: { type: 'string' },
  21199. q: { type: 'string' },
  21200. routing: { type: 'string' },
  21201. _source: { type: 'list' },
  21202. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  21203. _sourceIncludes: { type: 'list', name: '_source_includes' }
  21204. },
  21205. url: {
  21206. fmt: '/<%=index%>/_explain/<%=id%>',
  21207. req: { index: { type: 'string' }, id: { type: 'string' } }
  21208. },
  21209. method: 'POST'
  21210. })),
  21211. (f.fieldCaps = d({
  21212. params: {
  21213. fields: { type: 'list' },
  21214. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  21215. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  21216. expandWildcards: {
  21217. type: 'enum',
  21218. default: 'open',
  21219. options: ['open', 'closed', 'none', 'all'],
  21220. name: 'expand_wildcards'
  21221. },
  21222. includeUnmapped: { type: 'boolean', default: !1, name: 'include_unmapped' }
  21223. },
  21224. urls: [
  21225. { fmt: '/<%=index%>/_field_caps', req: { index: { type: 'list' } } },
  21226. { fmt: '/_field_caps' }
  21227. ],
  21228. method: 'POST'
  21229. })),
  21230. (f.get = d({
  21231. params: {
  21232. storedFields: { type: 'list', name: 'stored_fields' },
  21233. preference: { type: 'string' },
  21234. realtime: { type: 'boolean' },
  21235. refresh: { type: 'boolean' },
  21236. routing: { type: 'string' },
  21237. _source: { type: 'list' },
  21238. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  21239. _sourceIncludes: { type: 'list', name: '_source_includes' },
  21240. version: { type: 'number' },
  21241. versionType: {
  21242. type: 'enum',
  21243. options: ['internal', 'external', 'external_gte', 'force'],
  21244. name: 'version_type'
  21245. }
  21246. },
  21247. url: {
  21248. fmt: '/<%=index%>/_doc/<%=id%>',
  21249. req: { index: { type: 'string' }, id: { type: 'string' } }
  21250. }
  21251. })),
  21252. (f.getScript = d({
  21253. params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
  21254. url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
  21255. })),
  21256. (f.getSource = d({
  21257. params: {
  21258. preference: { type: 'string' },
  21259. realtime: { type: 'boolean' },
  21260. refresh: { type: 'boolean' },
  21261. routing: { type: 'string' },
  21262. _source: { type: 'list' },
  21263. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  21264. _sourceIncludes: { type: 'list', name: '_source_includes' },
  21265. version: { type: 'number' },
  21266. versionType: {
  21267. type: 'enum',
  21268. options: ['internal', 'external', 'external_gte', 'force'],
  21269. name: 'version_type'
  21270. }
  21271. },
  21272. url: {
  21273. fmt: '/<%=index%>/_source/<%=id%>',
  21274. req: { index: { type: 'string' }, id: { type: 'string' } }
  21275. }
  21276. })),
  21277. (f.index = d({
  21278. params: {
  21279. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  21280. opType: { type: 'enum', default: 'index', options: ['index', 'create'], name: 'op_type' },
  21281. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  21282. routing: { type: 'string' },
  21283. timeout: { type: 'time' },
  21284. version: { type: 'number' },
  21285. versionType: {
  21286. type: 'enum',
  21287. options: ['internal', 'external', 'external_gte', 'force'],
  21288. name: 'version_type'
  21289. },
  21290. ifSeqNo: { type: 'number', name: 'if_seq_no' },
  21291. ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
  21292. pipeline: { type: 'string' }
  21293. },
  21294. urls: [
  21295. {
  21296. fmt: '/<%=index%>/_doc/<%=id%>',
  21297. req: { index: { type: 'string' }, id: { type: 'string' } }
  21298. },
  21299. { fmt: '/<%=index%>/_doc', req: { index: { type: 'string' } } }
  21300. ],
  21301. needBody: !0,
  21302. method: 'POST'
  21303. })),
  21304. (f.indices = e()),
  21305. (f.indices.prototype.analyze = d({
  21306. params: { index: { type: 'string' } },
  21307. urls: [
  21308. { fmt: '/<%=index%>/_analyze', req: { index: { type: 'string' } } },
  21309. { fmt: '/_analyze' }
  21310. ],
  21311. method: 'POST'
  21312. })),
  21313. (f.indices.prototype.clearCache = d({
  21314. params: {
  21315. fielddata: { type: 'boolean' },
  21316. fields: { type: 'list' },
  21317. query: { type: 'boolean' },
  21318. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  21319. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  21320. expandWildcards: {
  21321. type: 'enum',
  21322. default: 'open',
  21323. options: ['open', 'closed', 'none', 'all'],
  21324. name: 'expand_wildcards'
  21325. },
  21326. index: { type: 'list' },
  21327. request: { type: 'boolean' }
  21328. },
  21329. urls: [
  21330. { fmt: '/<%=index%>/_cache/clear', req: { index: { type: 'list' } } },
  21331. { fmt: '/_cache/clear' }
  21332. ],
  21333. method: 'POST'
  21334. })),
  21335. (f.indices.prototype.clone = d({
  21336. params: {
  21337. timeout: { type: 'time' },
  21338. masterTimeout: { type: 'time', name: 'master_timeout' },
  21339. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  21340. },
  21341. url: {
  21342. fmt: '/<%=index%>/_clone/<%=target%>',
  21343. req: { index: { type: 'string' }, target: { type: 'string' } }
  21344. },
  21345. method: 'POST'
  21346. })),
  21347. (f.indices.prototype.close = d({
  21348. params: {
  21349. timeout: { type: 'time' },
  21350. masterTimeout: { type: 'time', name: 'master_timeout' },
  21351. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  21352. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  21353. expandWildcards: {
  21354. type: 'enum',
  21355. default: 'open',
  21356. options: ['open', 'closed', 'none', 'all'],
  21357. name: 'expand_wildcards'
  21358. },
  21359. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  21360. },
  21361. url: { fmt: '/<%=index%>/_close', req: { index: { type: 'list' } } },
  21362. method: 'POST'
  21363. })),
  21364. (f.indices.prototype.create = d({
  21365. params: {
  21366. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  21367. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  21368. timeout: { type: 'time' },
  21369. masterTimeout: { type: 'time', name: 'master_timeout' }
  21370. },
  21371. url: { fmt: '/<%=index%>', req: { index: { type: 'string' } } },
  21372. method: 'PUT'
  21373. })),
  21374. (f.indices.prototype.delete = d({
  21375. params: {
  21376. timeout: { type: 'time' },
  21377. masterTimeout: { type: 'time', name: 'master_timeout' },
  21378. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  21379. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  21380. expandWildcards: {
  21381. type: 'enum',
  21382. default: 'open',
  21383. options: ['open', 'closed', 'none', 'all'],
  21384. name: 'expand_wildcards'
  21385. }
  21386. },
  21387. url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
  21388. method: 'DELETE'
  21389. })),
  21390. (f.indices.prototype.deleteAlias = d({
  21391. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  21392. url: {
  21393. fmt: '/<%=index%>/_alias/<%=name%>',
  21394. req: { index: { type: 'list' }, name: { type: 'list' } }
  21395. },
  21396. method: 'DELETE'
  21397. })),
  21398. (f.indices.prototype.deleteTemplate = d({
  21399. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  21400. url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
  21401. method: 'DELETE'
  21402. })),
  21403. (f.indices.prototype.exists = d({
  21404. params: {
  21405. local: { type: 'boolean' },
  21406. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  21407. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  21408. expandWildcards: {
  21409. type: 'enum',
  21410. default: 'open',
  21411. options: ['open', 'closed', 'none', 'all'],
  21412. name: 'expand_wildcards'
  21413. },
  21414. flatSettings: { type: 'boolean', name: 'flat_settings' },
  21415. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
  21416. },
  21417. url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
  21418. method: 'HEAD'
  21419. })),
  21420. (f.indices.prototype.existsAlias = d({
  21421. params: {
  21422. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  21423. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  21424. expandWildcards: {
  21425. type: 'enum',
  21426. default: 'all',
  21427. options: ['open', 'closed', 'none', 'all'],
  21428. name: 'expand_wildcards'
  21429. },
  21430. local: { type: 'boolean' }
  21431. },
  21432. urls: [
  21433. {
  21434. fmt: '/<%=index%>/_alias/<%=name%>',
  21435. req: { index: { type: 'list' }, name: { type: 'list' } }
  21436. },
  21437. { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } }
  21438. ],
  21439. method: 'HEAD'
  21440. })),
  21441. (f.indices.prototype.existsTemplate = d({
  21442. params: {
  21443. flatSettings: { type: 'boolean', name: 'flat_settings' },
  21444. masterTimeout: { type: 'time', name: 'master_timeout' },
  21445. local: { type: 'boolean' }
  21446. },
  21447. url: { fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } },
  21448. method: 'HEAD'
  21449. })),
  21450. (f.indices.prototype.existsType = d({
  21451. params: {
  21452. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  21453. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  21454. expandWildcards: {
  21455. type: 'enum',
  21456. default: 'open',
  21457. options: ['open', 'closed', 'none', 'all'],
  21458. name: 'expand_wildcards'
  21459. },
  21460. local: { type: 'boolean' }
  21461. },
  21462. url: {
  21463. fmt: '/<%=index%>/_mapping/<%=type%>',
  21464. req: { index: { type: 'list' }, type: { type: 'list' } }
  21465. },
  21466. method: 'HEAD'
  21467. })),
  21468. (f.indices.prototype.flush = d({
  21469. params: {
  21470. force: { type: 'boolean' },
  21471. waitIfOngoing: { type: 'boolean', name: 'wait_if_ongoing' },
  21472. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  21473. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  21474. expandWildcards: {
  21475. type: 'enum',
  21476. default: 'open',
  21477. options: ['open', 'closed', 'none', 'all'],
  21478. name: 'expand_wildcards'
  21479. }
  21480. },
  21481. urls: [{ fmt: '/<%=index%>/_flush', req: { index: { type: 'list' } } }, { fmt: '/_flush' }],
  21482. method: 'POST'
  21483. })),
  21484. (f.indices.prototype.flushSynced = d({
  21485. params: {
  21486. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  21487. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  21488. expandWildcards: {
  21489. type: 'enum',
  21490. default: 'open',
  21491. options: ['open', 'closed', 'none', 'all'],
  21492. name: 'expand_wildcards'
  21493. }
  21494. },
  21495. urls: [
  21496. { fmt: '/<%=index%>/_flush/synced', req: { index: { type: 'list' } } },
  21497. { fmt: '/_flush/synced' }
  21498. ],
  21499. method: 'POST'
  21500. })),
  21501. (f.indices.prototype.forcemerge = d({
  21502. params: {
  21503. flush: { type: 'boolean' },
  21504. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  21505. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  21506. expandWildcards: {
  21507. type: 'enum',
  21508. default: 'open',
  21509. options: ['open', 'closed', 'none', 'all'],
  21510. name: 'expand_wildcards'
  21511. },
  21512. maxNumSegments: { type: 'number', name: 'max_num_segments' },
  21513. onlyExpungeDeletes: { type: 'boolean', name: 'only_expunge_deletes' }
  21514. },
  21515. urls: [
  21516. { fmt: '/<%=index%>/_forcemerge', req: { index: { type: 'list' } } },
  21517. { fmt: '/_forcemerge' }
  21518. ],
  21519. method: 'POST'
  21520. })),
  21521. (f.indices.prototype.get = d({
  21522. params: {
  21523. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  21524. local: { type: 'boolean' },
  21525. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  21526. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  21527. expandWildcards: {
  21528. type: 'enum',
  21529. default: 'open',
  21530. options: ['open', 'closed', 'none', 'all'],
  21531. name: 'expand_wildcards'
  21532. },
  21533. flatSettings: { type: 'boolean', name: 'flat_settings' },
  21534. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' },
  21535. masterTimeout: { type: 'time', name: 'master_timeout' }
  21536. },
  21537. url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } }
  21538. })),
  21539. (f.indices.prototype.getAlias = d({
  21540. params: {
  21541. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  21542. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  21543. expandWildcards: {
  21544. type: 'enum',
  21545. default: 'all',
  21546. options: ['open', 'closed', 'none', 'all'],
  21547. name: 'expand_wildcards'
  21548. },
  21549. local: { type: 'boolean' }
  21550. },
  21551. urls: [
  21552. {
  21553. fmt: '/<%=index%>/_alias/<%=name%>',
  21554. req: { index: { type: 'list' }, name: { type: 'list' } }
  21555. },
  21556. { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } },
  21557. { fmt: '/<%=index%>/_alias', req: { index: { type: 'list' } } },
  21558. { fmt: '/_alias' }
  21559. ]
  21560. })),
  21561. (f.indices.prototype.getFieldMapping = d({
  21562. params: {
  21563. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  21564. includeDefaults: { type: 'boolean', name: 'include_defaults' },
  21565. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  21566. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  21567. expandWildcards: {
  21568. type: 'enum',
  21569. default: 'open',
  21570. options: ['open', 'closed', 'none', 'all'],
  21571. name: 'expand_wildcards'
  21572. },
  21573. local: { type: 'boolean' }
  21574. },
  21575. urls: [
  21576. {
  21577. fmt: '/<%=index%>/_mapping/field/<%=fields%>',
  21578. req: { index: { type: 'list' }, fields: { type: 'list' } }
  21579. },
  21580. { fmt: '/_mapping/field/<%=fields%>', req: { fields: { type: 'list' } } }
  21581. ]
  21582. })),
  21583. (f.indices.prototype.getMapping = d({
  21584. params: {
  21585. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  21586. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  21587. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  21588. expandWildcards: {
  21589. type: 'enum',
  21590. default: 'open',
  21591. options: ['open', 'closed', 'none', 'all'],
  21592. name: 'expand_wildcards'
  21593. },
  21594. masterTimeout: { type: 'time', name: 'master_timeout' },
  21595. local: { type: 'boolean' }
  21596. },
  21597. urls: [{ fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } }, { fmt: '/_mapping' }]
  21598. })),
  21599. (f.indices.prototype.getSettings = d({
  21600. params: {
  21601. masterTimeout: { type: 'time', name: 'master_timeout' },
  21602. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  21603. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  21604. expandWildcards: {
  21605. type: 'enum',
  21606. default: ['open', 'closed'],
  21607. options: ['open', 'closed', 'none', 'all'],
  21608. name: 'expand_wildcards'
  21609. },
  21610. flatSettings: { type: 'boolean', name: 'flat_settings' },
  21611. local: { type: 'boolean' },
  21612. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
  21613. },
  21614. urls: [
  21615. {
  21616. fmt: '/<%=index%>/_settings/<%=name%>',
  21617. req: { index: { type: 'list' }, name: { type: 'list' } }
  21618. },
  21619. { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
  21620. { fmt: '/_settings/<%=name%>', req: { name: { type: 'list' } } },
  21621. { fmt: '/_settings' }
  21622. ]
  21623. })),
  21624. (f.indices.prototype.getTemplate = d({
  21625. params: {
  21626. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  21627. flatSettings: { type: 'boolean', name: 'flat_settings' },
  21628. masterTimeout: { type: 'time', name: 'master_timeout' },
  21629. local: { type: 'boolean' }
  21630. },
  21631. urls: [{ fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } }, { fmt: '/_template' }]
  21632. })),
  21633. (f.indices.prototype.getUpgrade = d({
  21634. params: {
  21635. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  21636. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  21637. expandWildcards: {
  21638. type: 'enum',
  21639. default: 'open',
  21640. options: ['open', 'closed', 'none', 'all'],
  21641. name: 'expand_wildcards'
  21642. }
  21643. },
  21644. urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }]
  21645. })),
  21646. (f.indices.prototype.open = d({
  21647. params: {
  21648. timeout: { type: 'time' },
  21649. masterTimeout: { type: 'time', name: 'master_timeout' },
  21650. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  21651. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  21652. expandWildcards: {
  21653. type: 'enum',
  21654. default: 'closed',
  21655. options: ['open', 'closed', 'none', 'all'],
  21656. name: 'expand_wildcards'
  21657. },
  21658. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  21659. },
  21660. url: { fmt: '/<%=index%>/_open', req: { index: { type: 'list' } } },
  21661. method: 'POST'
  21662. })),
  21663. (f.indices.prototype.putAlias = d({
  21664. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  21665. url: {
  21666. fmt: '/<%=index%>/_alias/<%=name%>',
  21667. req: { index: { type: 'list' }, name: { type: 'string' } }
  21668. },
  21669. method: 'PUT'
  21670. })),
  21671. (f.indices.prototype.putMapping = d({
  21672. params: {
  21673. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  21674. timeout: { type: 'time' },
  21675. masterTimeout: { type: 'time', name: 'master_timeout' },
  21676. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  21677. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  21678. expandWildcards: {
  21679. type: 'enum',
  21680. default: 'open',
  21681. options: ['open', 'closed', 'none', 'all'],
  21682. name: 'expand_wildcards'
  21683. }
  21684. },
  21685. url: { fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } },
  21686. needBody: !0,
  21687. method: 'PUT'
  21688. })),
  21689. (f.indices.prototype.putSettings = d({
  21690. params: {
  21691. masterTimeout: { type: 'time', name: 'master_timeout' },
  21692. timeout: { type: 'time' },
  21693. preserveExisting: { type: 'boolean', name: 'preserve_existing' },
  21694. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  21695. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  21696. expandWildcards: {
  21697. type: 'enum',
  21698. default: 'open',
  21699. options: ['open', 'closed', 'none', 'all'],
  21700. name: 'expand_wildcards'
  21701. },
  21702. flatSettings: { type: 'boolean', name: 'flat_settings' }
  21703. },
  21704. urls: [
  21705. { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
  21706. { fmt: '/_settings' }
  21707. ],
  21708. needBody: !0,
  21709. method: 'PUT'
  21710. })),
  21711. (f.indices.prototype.putTemplate = d({
  21712. params: {
  21713. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  21714. order: { type: 'number' },
  21715. create: { type: 'boolean', default: !1 },
  21716. timeout: { type: 'time' },
  21717. masterTimeout: { type: 'time', name: 'master_timeout' },
  21718. flatSettings: { type: 'boolean', name: 'flat_settings' }
  21719. },
  21720. url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
  21721. needBody: !0,
  21722. method: 'PUT'
  21723. })),
  21724. (f.indices.prototype.recovery = d({
  21725. params: {
  21726. detailed: { type: 'boolean', default: !1 },
  21727. activeOnly: { type: 'boolean', default: !1, name: 'active_only' }
  21728. },
  21729. urls: [
  21730. { fmt: '/<%=index%>/_recovery', req: { index: { type: 'list' } } },
  21731. { fmt: '/_recovery' }
  21732. ]
  21733. })),
  21734. (f.indices.prototype.refresh = d({
  21735. params: {
  21736. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  21737. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  21738. expandWildcards: {
  21739. type: 'enum',
  21740. default: 'open',
  21741. options: ['open', 'closed', 'none', 'all'],
  21742. name: 'expand_wildcards'
  21743. }
  21744. },
  21745. urls: [{ fmt: '/<%=index%>/_refresh', req: { index: { type: 'list' } } }, { fmt: '/_refresh' }],
  21746. method: 'POST'
  21747. })),
  21748. (f.indices.prototype.rollover = d({
  21749. params: {
  21750. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  21751. timeout: { type: 'time' },
  21752. dryRun: { type: 'boolean', name: 'dry_run' },
  21753. masterTimeout: { type: 'time', name: 'master_timeout' },
  21754. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  21755. },
  21756. urls: [
  21757. {
  21758. fmt: '/<%=alias%>/_rollover/<%=newIndex%>',
  21759. req: { alias: { type: 'string' }, newIndex: { type: 'string' } }
  21760. },
  21761. { fmt: '/<%=alias%>/_rollover', req: { alias: { type: 'string' } } }
  21762. ],
  21763. method: 'POST'
  21764. })),
  21765. (f.indices.prototype.segments = d({
  21766. params: {
  21767. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  21768. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  21769. expandWildcards: {
  21770. type: 'enum',
  21771. default: 'open',
  21772. options: ['open', 'closed', 'none', 'all'],
  21773. name: 'expand_wildcards'
  21774. },
  21775. verbose: { type: 'boolean', default: !1 }
  21776. },
  21777. urls: [
  21778. { fmt: '/<%=index%>/_segments', req: { index: { type: 'list' } } },
  21779. { fmt: '/_segments' }
  21780. ]
  21781. })),
  21782. (f.indices.prototype.shardStores = d({
  21783. params: {
  21784. status: { type: 'list', options: ['green', 'yellow', 'red', 'all'] },
  21785. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  21786. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  21787. expandWildcards: {
  21788. type: 'enum',
  21789. default: 'open',
  21790. options: ['open', 'closed', 'none', 'all'],
  21791. name: 'expand_wildcards'
  21792. }
  21793. },
  21794. urls: [
  21795. { fmt: '/<%=index%>/_shard_stores', req: { index: { type: 'list' } } },
  21796. { fmt: '/_shard_stores' }
  21797. ]
  21798. })),
  21799. (f.indices.prototype.shrink = d({
  21800. params: {
  21801. copySettings: { type: 'boolean', name: 'copy_settings' },
  21802. timeout: { type: 'time' },
  21803. masterTimeout: { type: 'time', name: 'master_timeout' },
  21804. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  21805. },
  21806. url: {
  21807. fmt: '/<%=index%>/_shrink/<%=target%>',
  21808. req: { index: { type: 'string' }, target: { type: 'string' } }
  21809. },
  21810. method: 'POST'
  21811. })),
  21812. (f.indices.prototype.split = d({
  21813. params: {
  21814. copySettings: { type: 'boolean', name: 'copy_settings' },
  21815. timeout: { type: 'time' },
  21816. masterTimeout: { type: 'time', name: 'master_timeout' },
  21817. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  21818. },
  21819. url: {
  21820. fmt: '/<%=index%>/_split/<%=target%>',
  21821. req: { index: { type: 'string' }, target: { type: 'string' } }
  21822. },
  21823. method: 'POST'
  21824. })),
  21825. (f.indices.prototype.stats = d({
  21826. params: {
  21827. completionFields: { type: 'list', name: 'completion_fields' },
  21828. fielddataFields: { type: 'list', name: 'fielddata_fields' },
  21829. fields: { type: 'list' },
  21830. groups: { type: 'list' },
  21831. level: { type: 'enum', default: 'indices', options: ['cluster', 'indices', 'shards'] },
  21832. types: { type: 'list' },
  21833. includeSegmentFileSizes: {
  21834. type: 'boolean',
  21835. default: !1,
  21836. name: 'include_segment_file_sizes'
  21837. },
  21838. includeUnloadedSegments: {
  21839. type: 'boolean',
  21840. default: !1,
  21841. name: 'include_unloaded_segments'
  21842. },
  21843. expandWildcards: {
  21844. type: 'enum',
  21845. default: 'open',
  21846. options: ['open', 'closed', 'none', 'all'],
  21847. name: 'expand_wildcards'
  21848. },
  21849. forbidClosedIndices: { type: 'boolean', default: !0, name: 'forbid_closed_indices' }
  21850. },
  21851. urls: [
  21852. {
  21853. fmt: '/<%=index%>/_stats/<%=metric%>',
  21854. req: {
  21855. index: { type: 'list' },
  21856. metric: {
  21857. type: 'list',
  21858. options: [
  21859. '_all',
  21860. 'completion',
  21861. 'docs',
  21862. 'fielddata',
  21863. 'query_cache',
  21864. 'flush',
  21865. 'get',
  21866. 'indexing',
  21867. 'merge',
  21868. 'request_cache',
  21869. 'refresh',
  21870. 'search',
  21871. 'segments',
  21872. 'store',
  21873. 'warmer',
  21874. 'suggest'
  21875. ]
  21876. }
  21877. }
  21878. },
  21879. {
  21880. fmt: '/_stats/<%=metric%>',
  21881. req: {
  21882. metric: {
  21883. type: 'list',
  21884. options: [
  21885. '_all',
  21886. 'completion',
  21887. 'docs',
  21888. 'fielddata',
  21889. 'query_cache',
  21890. 'flush',
  21891. 'get',
  21892. 'indexing',
  21893. 'merge',
  21894. 'request_cache',
  21895. 'refresh',
  21896. 'search',
  21897. 'segments',
  21898. 'store',
  21899. 'warmer',
  21900. 'suggest'
  21901. ]
  21902. }
  21903. }
  21904. },
  21905. { fmt: '/<%=index%>/_stats', req: { index: { type: 'list' } } },
  21906. { fmt: '/_stats' }
  21907. ]
  21908. })),
  21909. (f.indices.prototype.updateAliases = d({
  21910. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  21911. url: { fmt: '/_aliases' },
  21912. needBody: !0,
  21913. method: 'POST'
  21914. })),
  21915. (f.indices.prototype.upgrade = d({
  21916. params: {
  21917. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  21918. expandWildcards: {
  21919. type: 'enum',
  21920. default: 'open',
  21921. options: ['open', 'closed', 'none', 'all'],
  21922. name: 'expand_wildcards'
  21923. },
  21924. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  21925. waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
  21926. onlyAncientSegments: { type: 'boolean', name: 'only_ancient_segments' }
  21927. },
  21928. urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }],
  21929. method: 'POST'
  21930. })),
  21931. (f.indices.prototype.validateQuery = d({
  21932. params: {
  21933. explain: { type: 'boolean' },
  21934. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  21935. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  21936. expandWildcards: {
  21937. type: 'enum',
  21938. default: 'open',
  21939. options: ['open', 'closed', 'none', 'all'],
  21940. name: 'expand_wildcards'
  21941. },
  21942. q: { type: 'string' },
  21943. analyzer: { type: 'string' },
  21944. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  21945. defaultOperator: {
  21946. type: 'enum',
  21947. default: 'OR',
  21948. options: ['AND', 'OR'],
  21949. name: 'default_operator'
  21950. },
  21951. df: { type: 'string' },
  21952. lenient: { type: 'boolean' },
  21953. rewrite: { type: 'boolean' },
  21954. allShards: { type: 'boolean', name: 'all_shards' }
  21955. },
  21956. urls: [
  21957. { fmt: '/<%=index%>/_validate/query', req: { index: { type: 'list' } } },
  21958. { fmt: '/_validate/query' }
  21959. ],
  21960. method: 'POST'
  21961. })),
  21962. (f.info = d({ url: { fmt: '/' } })),
  21963. (f.ingest = e()),
  21964. (f.ingest.prototype.deletePipeline = d({
  21965. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  21966. url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
  21967. method: 'DELETE'
  21968. })),
  21969. (f.ingest.prototype.getPipeline = d({
  21970. params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
  21971. urls: [
  21972. { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
  21973. { fmt: '/_ingest/pipeline' }
  21974. ]
  21975. })),
  21976. (f.ingest.prototype.processorGrok = d({ url: { fmt: '/_ingest/processor/grok' } })),
  21977. (f.ingest.prototype.putPipeline = d({
  21978. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  21979. url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
  21980. needBody: !0,
  21981. method: 'PUT'
  21982. })),
  21983. (f.ingest.prototype.simulate = d({
  21984. params: { verbose: { type: 'boolean', default: !1 } },
  21985. urls: [
  21986. { fmt: '/_ingest/pipeline/<%=id%>/_simulate', req: { id: { type: 'string' } } },
  21987. { fmt: '/_ingest/pipeline/_simulate' }
  21988. ],
  21989. needBody: !0,
  21990. method: 'POST'
  21991. })),
  21992. (f.mget = d({
  21993. params: {
  21994. storedFields: { type: 'list', name: 'stored_fields' },
  21995. preference: { type: 'string' },
  21996. realtime: { type: 'boolean' },
  21997. refresh: { type: 'boolean' },
  21998. routing: { type: 'string' },
  21999. _source: { type: 'list' },
  22000. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  22001. _sourceIncludes: { type: 'list', name: '_source_includes' }
  22002. },
  22003. urls: [{ fmt: '/<%=index%>/_mget', req: { index: { type: 'string' } } }, { fmt: '/_mget' }],
  22004. needBody: !0,
  22005. method: 'POST'
  22006. })),
  22007. (f.msearch = d({
  22008. params: {
  22009. searchType: {
  22010. type: 'enum',
  22011. options: [
  22012. 'query_then_fetch',
  22013. 'query_and_fetch',
  22014. 'dfs_query_then_fetch',
  22015. 'dfs_query_and_fetch'
  22016. ],
  22017. name: 'search_type'
  22018. },
  22019. maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
  22020. typedKeys: { type: 'boolean', name: 'typed_keys' },
  22021. preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
  22022. maxConcurrentShardRequests: {
  22023. type: 'number',
  22024. default: 5,
  22025. name: 'max_concurrent_shard_requests'
  22026. },
  22027. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
  22028. ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
  22029. },
  22030. urls: [{ fmt: '/<%=index%>/_msearch', req: { index: { type: 'list' } } }, { fmt: '/_msearch' }],
  22031. needBody: !0,
  22032. bulkBody: !0,
  22033. method: 'POST'
  22034. })),
  22035. (f.msearchTemplate = d({
  22036. params: {
  22037. searchType: {
  22038. type: 'enum',
  22039. options: [
  22040. 'query_then_fetch',
  22041. 'query_and_fetch',
  22042. 'dfs_query_then_fetch',
  22043. 'dfs_query_and_fetch'
  22044. ],
  22045. name: 'search_type'
  22046. },
  22047. typedKeys: { type: 'boolean', name: 'typed_keys' },
  22048. maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
  22049. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
  22050. ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
  22051. },
  22052. urls: [
  22053. { fmt: '/<%=index%>/_msearch/template', req: { index: { type: 'list' } } },
  22054. { fmt: '/_msearch/template' }
  22055. ],
  22056. needBody: !0,
  22057. bulkBody: !0,
  22058. method: 'POST'
  22059. })),
  22060. (f.mtermvectors = d({
  22061. params: {
  22062. ids: { type: 'list', required: !1 },
  22063. termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
  22064. fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
  22065. fields: { type: 'list', required: !1 },
  22066. offsets: { type: 'boolean', default: !0, required: !1 },
  22067. positions: { type: 'boolean', default: !0, required: !1 },
  22068. payloads: { type: 'boolean', default: !0, required: !1 },
  22069. preference: { type: 'string', required: !1 },
  22070. routing: { type: 'string', required: !1 },
  22071. realtime: { type: 'boolean', required: !1 },
  22072. version: { type: 'number' },
  22073. versionType: {
  22074. type: 'enum',
  22075. options: ['internal', 'external', 'external_gte', 'force'],
  22076. name: 'version_type'
  22077. }
  22078. },
  22079. urls: [
  22080. { fmt: '/<%=index%>/_mtermvectors', req: { index: { type: 'string' } } },
  22081. { fmt: '/_mtermvectors' }
  22082. ],
  22083. method: 'POST'
  22084. })),
  22085. (f.nodes = e()),
  22086. (f.nodes.prototype.hotThreads = d({
  22087. params: {
  22088. interval: { type: 'time' },
  22089. snapshots: { type: 'number' },
  22090. threads: { type: 'number' },
  22091. ignoreIdleThreads: { type: 'boolean', name: 'ignore_idle_threads' },
  22092. type: { type: 'enum', options: ['cpu', 'wait', 'block'] },
  22093. timeout: { type: 'time' }
  22094. },
  22095. url: {}
  22096. })),
  22097. (f.nodes.prototype.info = d({
  22098. params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
  22099. urls: [
  22100. {
  22101. fmt: '/_nodes/<%=nodeId%>/<%=metric%>',
  22102. req: {
  22103. nodeId: { type: 'list' },
  22104. metric: {
  22105. type: 'list',
  22106. options: [
  22107. 'settings',
  22108. 'os',
  22109. 'process',
  22110. 'jvm',
  22111. 'thread_pool',
  22112. 'transport',
  22113. 'http',
  22114. 'plugins',
  22115. 'ingest'
  22116. ]
  22117. }
  22118. }
  22119. },
  22120. { fmt: '/_nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
  22121. {
  22122. fmt: '/_nodes/<%=metric%>',
  22123. req: {
  22124. metric: {
  22125. type: 'list',
  22126. options: [
  22127. 'settings',
  22128. 'os',
  22129. 'process',
  22130. 'jvm',
  22131. 'thread_pool',
  22132. 'transport',
  22133. 'http',
  22134. 'plugins',
  22135. 'ingest'
  22136. ]
  22137. }
  22138. }
  22139. },
  22140. { fmt: '/_nodes' }
  22141. ]
  22142. })),
  22143. (f.nodes.prototype.reloadSecureSettings = d({
  22144. params: { timeout: { type: 'time' } },
  22145. urls: [
  22146. { fmt: '/_nodes/<%=nodeId%>/reload_secure_settings', req: { nodeId: { type: 'list' } } },
  22147. { fmt: '/_nodes/reload_secure_settings' }
  22148. ],
  22149. method: 'POST'
  22150. })),
  22151. (f.nodes.prototype.stats = d({
  22152. params: {
  22153. completionFields: { type: 'list', name: 'completion_fields' },
  22154. fielddataFields: { type: 'list', name: 'fielddata_fields' },
  22155. fields: { type: 'list' },
  22156. groups: { type: 'boolean' },
  22157. level: { type: 'enum', default: 'node', options: ['indices', 'node', 'shards'] },
  22158. types: { type: 'list' },
  22159. timeout: { type: 'time' },
  22160. includeSegmentFileSizes: {
  22161. type: 'boolean',
  22162. default: !1,
  22163. name: 'include_segment_file_sizes'
  22164. }
  22165. },
  22166. urls: [
  22167. {
  22168. fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>',
  22169. req: {
  22170. nodeId: { type: 'list' },
  22171. metric: {
  22172. type: 'list',
  22173. options: [
  22174. '_all',
  22175. 'breaker',
  22176. 'fs',
  22177. 'http',
  22178. 'indices',
  22179. 'jvm',
  22180. 'os',
  22181. 'process',
  22182. 'thread_pool',
  22183. 'transport',
  22184. 'discovery'
  22185. ]
  22186. },
  22187. indexMetric: {
  22188. type: 'list',
  22189. options: [
  22190. '_all',
  22191. 'completion',
  22192. 'docs',
  22193. 'fielddata',
  22194. 'query_cache',
  22195. 'flush',
  22196. 'get',
  22197. 'indexing',
  22198. 'merge',
  22199. 'request_cache',
  22200. 'refresh',
  22201. 'search',
  22202. 'segments',
  22203. 'store',
  22204. 'warmer',
  22205. 'suggest'
  22206. ]
  22207. }
  22208. }
  22209. },
  22210. {
  22211. fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>',
  22212. req: {
  22213. nodeId: { type: 'list' },
  22214. metric: {
  22215. type: 'list',
  22216. options: [
  22217. '_all',
  22218. 'breaker',
  22219. 'fs',
  22220. 'http',
  22221. 'indices',
  22222. 'jvm',
  22223. 'os',
  22224. 'process',
  22225. 'thread_pool',
  22226. 'transport',
  22227. 'discovery'
  22228. ]
  22229. }
  22230. }
  22231. },
  22232. {
  22233. fmt: '/_nodes/stats/<%=metric%>/<%=indexMetric%>',
  22234. req: {
  22235. metric: {
  22236. type: 'list',
  22237. options: [
  22238. '_all',
  22239. 'breaker',
  22240. 'fs',
  22241. 'http',
  22242. 'indices',
  22243. 'jvm',
  22244. 'os',
  22245. 'process',
  22246. 'thread_pool',
  22247. 'transport',
  22248. 'discovery'
  22249. ]
  22250. },
  22251. indexMetric: {
  22252. type: 'list',
  22253. options: [
  22254. '_all',
  22255. 'completion',
  22256. 'docs',
  22257. 'fielddata',
  22258. 'query_cache',
  22259. 'flush',
  22260. 'get',
  22261. 'indexing',
  22262. 'merge',
  22263. 'request_cache',
  22264. 'refresh',
  22265. 'search',
  22266. 'segments',
  22267. 'store',
  22268. 'warmer',
  22269. 'suggest'
  22270. ]
  22271. }
  22272. }
  22273. },
  22274. { fmt: '/_nodes/<%=nodeId%>/stats', req: { nodeId: { type: 'list' } } },
  22275. {
  22276. fmt: '/_nodes/stats/<%=metric%>',
  22277. req: {
  22278. metric: {
  22279. type: 'list',
  22280. options: [
  22281. '_all',
  22282. 'breaker',
  22283. 'fs',
  22284. 'http',
  22285. 'indices',
  22286. 'jvm',
  22287. 'os',
  22288. 'process',
  22289. 'thread_pool',
  22290. 'transport',
  22291. 'discovery'
  22292. ]
  22293. }
  22294. }
  22295. },
  22296. { fmt: '/_nodes/stats' }
  22297. ]
  22298. })),
  22299. (f.nodes.prototype.usage = d({
  22300. params: { timeout: { type: 'time' } },
  22301. urls: [
  22302. {
  22303. fmt: '/_nodes/<%=nodeId%>/usage/<%=metric%>',
  22304. req: {
  22305. nodeId: { type: 'list' },
  22306. metric: { type: 'list', options: ['_all', 'rest_actions'] }
  22307. }
  22308. },
  22309. { fmt: '/_nodes/<%=nodeId%>/usage', req: { nodeId: { type: 'list' } } },
  22310. {
  22311. fmt: '/_nodes/usage/<%=metric%>',
  22312. req: { metric: { type: 'list', options: ['_all', 'rest_actions'] } }
  22313. },
  22314. { fmt: '/_nodes/usage' }
  22315. ]
  22316. })),
  22317. (f.ping = d({ url: { fmt: '/' }, method: 'HEAD' })),
  22318. (f.putScript = d({
  22319. params: {
  22320. timeout: { type: 'time' },
  22321. masterTimeout: { type: 'time', name: 'master_timeout' },
  22322. context: { type: 'string' }
  22323. },
  22324. urls: [
  22325. {
  22326. fmt: '/_scripts/<%=id%>/<%=context%>',
  22327. req: { id: { type: 'string' }, context: { type: 'string' } }
  22328. },
  22329. { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
  22330. ],
  22331. needBody: !0,
  22332. method: 'PUT'
  22333. })),
  22334. (f.rankEval = d({
  22335. params: {
  22336. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  22337. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  22338. expandWildcards: {
  22339. type: 'enum',
  22340. default: 'open',
  22341. options: ['open', 'closed', 'none', 'all'],
  22342. name: 'expand_wildcards'
  22343. }
  22344. },
  22345. urls: [
  22346. { fmt: '/<%=index%>/_rank_eval', req: { index: { type: 'list' } } },
  22347. { fmt: '/_rank_eval' }
  22348. ],
  22349. needBody: !0,
  22350. method: 'POST'
  22351. })),
  22352. (f.reindex = d({
  22353. params: {
  22354. refresh: { type: 'boolean' },
  22355. timeout: { type: 'time', default: '1m' },
  22356. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  22357. waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
  22358. requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
  22359. scroll: { type: 'time', default: '5m' },
  22360. slices: { type: 'number', default: 1 },
  22361. maxDocs: { type: 'number', name: 'max_docs' }
  22362. },
  22363. url: { fmt: '/_reindex' },
  22364. needBody: !0,
  22365. method: 'POST'
  22366. })),
  22367. (f.reindexRethrottle = d({
  22368. params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
  22369. url: { fmt: '/_reindex/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
  22370. method: 'POST'
  22371. })),
  22372. (f.renderSearchTemplate = d({
  22373. urls: [
  22374. { fmt: '/_render/template/<%=id%>', req: { id: { type: 'string' } } },
  22375. { fmt: '/_render/template' }
  22376. ],
  22377. method: 'POST'
  22378. })),
  22379. (f.scriptsPainlessExecute = d({ url: { fmt: '/_scripts/painless/_execute' }, method: 'POST' })),
  22380. (f.scroll = d({
  22381. params: {
  22382. scroll: { type: 'time' },
  22383. scrollId: { type: 'string', name: 'scroll_id' },
  22384. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
  22385. },
  22386. url: { fmt: '/_search/scroll' },
  22387. paramAsBody: { param: 'scrollId', body: 'scroll_id' },
  22388. method: 'POST'
  22389. })),
  22390. (f.search = d({
  22391. params: {
  22392. analyzer: { type: 'string' },
  22393. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  22394. ccsMinimizeRoundtrips: {
  22395. type: 'boolean',
  22396. default: 'true',
  22397. name: 'ccs_minimize_roundtrips'
  22398. },
  22399. defaultOperator: {
  22400. type: 'enum',
  22401. default: 'OR',
  22402. options: ['AND', 'OR'],
  22403. name: 'default_operator'
  22404. },
  22405. df: { type: 'string' },
  22406. explain: { type: 'boolean' },
  22407. storedFields: { type: 'list', name: 'stored_fields' },
  22408. docvalueFields: { type: 'list', name: 'docvalue_fields' },
  22409. from: { type: 'number' },
  22410. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  22411. ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
  22412. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  22413. expandWildcards: {
  22414. type: 'enum',
  22415. default: 'open',
  22416. options: ['open', 'closed', 'none', 'all'],
  22417. name: 'expand_wildcards'
  22418. },
  22419. lenient: { type: 'boolean' },
  22420. preference: { type: 'string' },
  22421. q: { type: 'string' },
  22422. routing: { type: 'list' },
  22423. scroll: { type: 'time' },
  22424. searchType: {
  22425. type: 'enum',
  22426. options: ['query_then_fetch', 'dfs_query_then_fetch'],
  22427. name: 'search_type'
  22428. },
  22429. size: { type: 'number' },
  22430. sort: { type: 'list' },
  22431. _source: { type: 'list' },
  22432. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  22433. _sourceIncludes: { type: 'list', name: '_source_includes' },
  22434. terminateAfter: { type: 'number', name: 'terminate_after' },
  22435. stats: { type: 'list' },
  22436. suggestField: { type: 'string', name: 'suggest_field' },
  22437. suggestMode: {
  22438. type: 'enum',
  22439. default: 'missing',
  22440. options: ['missing', 'popular', 'always'],
  22441. name: 'suggest_mode'
  22442. },
  22443. suggestSize: { type: 'number', name: 'suggest_size' },
  22444. suggestText: { type: 'string', name: 'suggest_text' },
  22445. timeout: { type: 'time' },
  22446. trackScores: { type: 'boolean', name: 'track_scores' },
  22447. trackTotalHits: { type: 'boolean', name: 'track_total_hits' },
  22448. allowPartialSearchResults: {
  22449. type: 'boolean',
  22450. default: !0,
  22451. name: 'allow_partial_search_results'
  22452. },
  22453. typedKeys: { type: 'boolean', name: 'typed_keys' },
  22454. version: { type: 'boolean' },
  22455. seqNoPrimaryTerm: { type: 'boolean', name: 'seq_no_primary_term' },
  22456. requestCache: { type: 'boolean', name: 'request_cache' },
  22457. batchedReduceSize: { type: 'number', default: 512, name: 'batched_reduce_size' },
  22458. maxConcurrentShardRequests: {
  22459. type: 'number',
  22460. default: 5,
  22461. name: 'max_concurrent_shard_requests'
  22462. },
  22463. preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
  22464. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
  22465. },
  22466. urls: [{ fmt: '/<%=index%>/_search', req: { index: { type: 'list' } } }, { fmt: '/_search' }],
  22467. method: 'POST'
  22468. })),
  22469. (f.searchShards = d({
  22470. params: {
  22471. preference: { type: 'string' },
  22472. routing: { type: 'string' },
  22473. local: { type: 'boolean' },
  22474. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  22475. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  22476. expandWildcards: {
  22477. type: 'enum',
  22478. default: 'open',
  22479. options: ['open', 'closed', 'none', 'all'],
  22480. name: 'expand_wildcards'
  22481. }
  22482. },
  22483. urls: [
  22484. { fmt: '/<%=index%>/_search_shards', req: { index: { type: 'list' } } },
  22485. { fmt: '/_search_shards' }
  22486. ],
  22487. method: 'POST'
  22488. })),
  22489. (f.searchTemplate = d({
  22490. params: {
  22491. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  22492. ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
  22493. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  22494. expandWildcards: {
  22495. type: 'enum',
  22496. default: 'open',
  22497. options: ['open', 'closed', 'none', 'all'],
  22498. name: 'expand_wildcards'
  22499. },
  22500. preference: { type: 'string' },
  22501. routing: { type: 'list' },
  22502. scroll: { type: 'time' },
  22503. searchType: {
  22504. type: 'enum',
  22505. options: [
  22506. 'query_then_fetch',
  22507. 'query_and_fetch',
  22508. 'dfs_query_then_fetch',
  22509. 'dfs_query_and_fetch'
  22510. ],
  22511. name: 'search_type'
  22512. },
  22513. explain: { type: 'boolean' },
  22514. profile: { type: 'boolean' },
  22515. typedKeys: { type: 'boolean', name: 'typed_keys' },
  22516. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
  22517. ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
  22518. },
  22519. urls: [
  22520. { fmt: '/<%=index%>/_search/template', req: { index: { type: 'list' } } },
  22521. { fmt: '/_search/template' }
  22522. ],
  22523. needBody: !0,
  22524. method: 'POST'
  22525. })),
  22526. (f.snapshot = e()),
  22527. (f.snapshot.prototype.create = d({
  22528. params: {
  22529. masterTimeout: { type: 'time', name: 'master_timeout' },
  22530. waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
  22531. },
  22532. url: {
  22533. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
  22534. req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
  22535. },
  22536. method: 'POST'
  22537. })),
  22538. (f.snapshot.prototype.createRepository = d({
  22539. params: {
  22540. masterTimeout: { type: 'time', name: 'master_timeout' },
  22541. timeout: { type: 'time' },
  22542. verify: { type: 'boolean' }
  22543. },
  22544. url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'string' } } },
  22545. needBody: !0,
  22546. method: 'POST'
  22547. })),
  22548. (f.snapshot.prototype.delete = d({
  22549. params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
  22550. url: {
  22551. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
  22552. req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
  22553. },
  22554. method: 'DELETE'
  22555. })),
  22556. (f.snapshot.prototype.deleteRepository = d({
  22557. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  22558. url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
  22559. method: 'DELETE'
  22560. })),
  22561. (f.snapshot.prototype.get = d({
  22562. params: {
  22563. masterTimeout: { type: 'time', name: 'master_timeout' },
  22564. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  22565. verbose: { type: 'boolean' }
  22566. },
  22567. url: {
  22568. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
  22569. req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
  22570. }
  22571. })),
  22572. (f.snapshot.prototype.getRepository = d({
  22573. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, local: { type: 'boolean' } },
  22574. urls: [
  22575. { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
  22576. { fmt: '/_snapshot' }
  22577. ]
  22578. })),
  22579. (f.snapshot.prototype.restore = d({
  22580. params: {
  22581. masterTimeout: { type: 'time', name: 'master_timeout' },
  22582. waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
  22583. },
  22584. url: {
  22585. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_restore',
  22586. req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
  22587. },
  22588. method: 'POST'
  22589. })),
  22590. (f.snapshot.prototype.status = d({
  22591. params: {
  22592. masterTimeout: { type: 'time', name: 'master_timeout' },
  22593. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' }
  22594. },
  22595. urls: [
  22596. {
  22597. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_status',
  22598. req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
  22599. },
  22600. { fmt: '/_snapshot/<%=repository%>/_status', req: { repository: { type: 'string' } } },
  22601. { fmt: '/_snapshot/_status' }
  22602. ]
  22603. })),
  22604. (f.snapshot.prototype.verifyRepository = d({
  22605. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  22606. url: { fmt: '/_snapshot/<%=repository%>/_verify', req: { repository: { type: 'string' } } },
  22607. method: 'POST'
  22608. })),
  22609. (f.tasks = e()),
  22610. (f.tasks.prototype.cancel = d({
  22611. params: {
  22612. nodes: { type: 'list' },
  22613. actions: { type: 'list' },
  22614. parentTaskId: { type: 'string', name: 'parent_task_id' }
  22615. },
  22616. urls: [
  22617. { fmt: '/_tasks/<%=taskId%>/_cancel', req: { taskId: { type: 'string' } } },
  22618. { fmt: '/_tasks/_cancel' }
  22619. ],
  22620. method: 'POST'
  22621. })),
  22622. (f.tasks.prototype.get = d({
  22623. params: {
  22624. waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
  22625. timeout: { type: 'time' }
  22626. },
  22627. url: { fmt: '/_tasks/<%=taskId%>', req: { taskId: { type: 'string' } } }
  22628. })),
  22629. (f.tasks.prototype.list = d({
  22630. params: {
  22631. nodes: { type: 'list' },
  22632. actions: { type: 'list' },
  22633. detailed: { type: 'boolean' },
  22634. parentTaskId: { type: 'string', name: 'parent_task_id' },
  22635. waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
  22636. groupBy: {
  22637. type: 'enum',
  22638. default: 'nodes',
  22639. options: ['nodes', 'parents', 'none'],
  22640. name: 'group_by'
  22641. },
  22642. timeout: { type: 'time' }
  22643. },
  22644. url: { fmt: '/_tasks' }
  22645. })),
  22646. (f.termvectors = d({
  22647. params: {
  22648. termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
  22649. fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
  22650. fields: { type: 'list', required: !1 },
  22651. offsets: { type: 'boolean', default: !0, required: !1 },
  22652. positions: { type: 'boolean', default: !0, required: !1 },
  22653. payloads: { type: 'boolean', default: !0, required: !1 },
  22654. preference: { type: 'string', required: !1 },
  22655. routing: { type: 'string', required: !1 },
  22656. realtime: { type: 'boolean', required: !1 },
  22657. version: { type: 'number' },
  22658. versionType: {
  22659. type: 'enum',
  22660. options: ['internal', 'external', 'external_gte', 'force'],
  22661. name: 'version_type'
  22662. }
  22663. },
  22664. urls: [
  22665. {
  22666. fmt: '/<%=index%>/_termvectors/<%=id%>',
  22667. req: { index: { type: 'string' }, id: { type: 'string' } }
  22668. },
  22669. { fmt: '/<%=index%>/_termvectors', req: { index: { type: 'string' } } }
  22670. ],
  22671. method: 'POST'
  22672. })),
  22673. (f.update = d({
  22674. params: {
  22675. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  22676. _source: { type: 'list' },
  22677. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  22678. _sourceIncludes: { type: 'list', name: '_source_includes' },
  22679. lang: { type: 'string' },
  22680. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  22681. retryOnConflict: { type: 'number', name: 'retry_on_conflict' },
  22682. routing: { type: 'string' },
  22683. timeout: { type: 'time' },
  22684. ifSeqNo: { type: 'number', name: 'if_seq_no' },
  22685. ifPrimaryTerm: { type: 'number', name: 'if_primary_term' }
  22686. },
  22687. url: {
  22688. fmt: '/<%=index%>/_update/<%=id%>',
  22689. req: { index: { type: 'string' }, id: { type: 'string' } }
  22690. },
  22691. needBody: !0,
  22692. method: 'POST'
  22693. })),
  22694. (f.updateByQuery = d({
  22695. params: {
  22696. analyzer: { type: 'string' },
  22697. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  22698. defaultOperator: {
  22699. type: 'enum',
  22700. default: 'OR',
  22701. options: ['AND', 'OR'],
  22702. name: 'default_operator'
  22703. },
  22704. df: { type: 'string' },
  22705. from: { type: 'number' },
  22706. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  22707. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  22708. conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
  22709. expandWildcards: {
  22710. type: 'enum',
  22711. default: 'open',
  22712. options: ['open', 'closed', 'none', 'all'],
  22713. name: 'expand_wildcards'
  22714. },
  22715. lenient: { type: 'boolean' },
  22716. pipeline: { type: 'string' },
  22717. preference: { type: 'string' },
  22718. q: { type: 'string' },
  22719. routing: { type: 'list' },
  22720. scroll: { type: 'time' },
  22721. searchType: {
  22722. type: 'enum',
  22723. options: ['query_then_fetch', 'dfs_query_then_fetch'],
  22724. name: 'search_type'
  22725. },
  22726. searchTimeout: { type: 'time', name: 'search_timeout' },
  22727. size: { type: 'number' },
  22728. maxDocs: { type: 'number', name: 'max_docs' },
  22729. sort: { type: 'list' },
  22730. _source: { type: 'list' },
  22731. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  22732. _sourceIncludes: { type: 'list', name: '_source_includes' },
  22733. terminateAfter: { type: 'number', name: 'terminate_after' },
  22734. stats: { type: 'list' },
  22735. version: { type: 'boolean' },
  22736. versionType: { type: 'boolean', name: 'version_type' },
  22737. requestCache: { type: 'boolean', name: 'request_cache' },
  22738. refresh: { type: 'boolean' },
  22739. timeout: { type: 'time', default: '1m' },
  22740. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  22741. scrollSize: { type: 'number', name: 'scroll_size' },
  22742. waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
  22743. requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
  22744. slices: { type: 'number', default: 1 }
  22745. },
  22746. url: { fmt: '/<%=index%>/_update_by_query', req: { index: { type: 'list' } } },
  22747. method: 'POST'
  22748. })),
  22749. (f.updateByQueryRethrottle = d({
  22750. params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
  22751. url: { fmt: '/_update_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
  22752. method: 'POST'
  22753. }));
  22754. },
  22755. function(a, b, c) {
  22756. var d = c(1).makeFactoryWithModifier(function(a) {
  22757. return c(0).merge(a, { params: { filterPath: { type: 'list', name: 'filter_path' } } });
  22758. }),
  22759. e = c(1).namespaceFactory,
  22760. f = (a.exports = {});
  22761. (f._namespaces = ['cat', 'cluster', 'indices', 'ingest', 'nodes', 'snapshot', 'tasks']),
  22762. (f.bulk = d({
  22763. params: {
  22764. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  22765. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  22766. routing: { type: 'string' },
  22767. timeout: { type: 'time' },
  22768. type: { type: 'string' },
  22769. _source: { type: 'list' },
  22770. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  22771. _sourceIncludes: { type: 'list', name: '_source_includes' },
  22772. pipeline: { type: 'string' }
  22773. },
  22774. urls: [
  22775. {
  22776. fmt: '/<%=index%>/<%=type%>/_bulk',
  22777. req: { index: { type: 'string' }, type: { type: 'string' } }
  22778. },
  22779. { fmt: '/<%=index%>/_bulk', req: { index: { type: 'string' } } },
  22780. { fmt: '/_bulk' }
  22781. ],
  22782. needBody: !0,
  22783. bulkBody: !0,
  22784. method: 'POST'
  22785. })),
  22786. (f.cat = e()),
  22787. (f.cat.prototype.aliases = d({
  22788. params: {
  22789. format: { type: 'string' },
  22790. local: { type: 'boolean' },
  22791. masterTimeout: { type: 'time', name: 'master_timeout' },
  22792. h: { type: 'list' },
  22793. help: { type: 'boolean', default: !1 },
  22794. s: { type: 'list' },
  22795. v: { type: 'boolean', default: !1 }
  22796. },
  22797. urls: [
  22798. { fmt: '/_cat/aliases/<%=name%>', req: { name: { type: 'list' } } },
  22799. { fmt: '/_cat/aliases' }
  22800. ]
  22801. })),
  22802. (f.cat.prototype.allocation = d({
  22803. params: {
  22804. format: { type: 'string' },
  22805. bytes: {
  22806. type: 'enum',
  22807. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  22808. },
  22809. local: { type: 'boolean' },
  22810. masterTimeout: { type: 'time', name: 'master_timeout' },
  22811. h: { type: 'list' },
  22812. help: { type: 'boolean', default: !1 },
  22813. s: { type: 'list' },
  22814. v: { type: 'boolean', default: !1 }
  22815. },
  22816. urls: [
  22817. { fmt: '/_cat/allocation/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
  22818. { fmt: '/_cat/allocation' }
  22819. ]
  22820. })),
  22821. (f.cat.prototype.count = d({
  22822. params: {
  22823. format: { type: 'string' },
  22824. local: { type: 'boolean' },
  22825. masterTimeout: { type: 'time', name: 'master_timeout' },
  22826. h: { type: 'list' },
  22827. help: { type: 'boolean', default: !1 },
  22828. s: { type: 'list' },
  22829. v: { type: 'boolean', default: !1 }
  22830. },
  22831. urls: [
  22832. { fmt: '/_cat/count/<%=index%>', req: { index: { type: 'list' } } },
  22833. { fmt: '/_cat/count' }
  22834. ]
  22835. })),
  22836. (f.cat.prototype.fielddata = d({
  22837. params: {
  22838. format: { type: 'string' },
  22839. bytes: {
  22840. type: 'enum',
  22841. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  22842. },
  22843. local: { type: 'boolean' },
  22844. masterTimeout: { type: 'time', name: 'master_timeout' },
  22845. h: { type: 'list' },
  22846. help: { type: 'boolean', default: !1 },
  22847. s: { type: 'list' },
  22848. v: { type: 'boolean', default: !1 },
  22849. fields: { type: 'list' }
  22850. },
  22851. urls: [
  22852. { fmt: '/_cat/fielddata/<%=fields%>', req: { fields: { type: 'list' } } },
  22853. { fmt: '/_cat/fielddata' }
  22854. ]
  22855. })),
  22856. (f.cat.prototype.health = d({
  22857. params: {
  22858. format: { type: 'string' },
  22859. local: { type: 'boolean' },
  22860. masterTimeout: { type: 'time', name: 'master_timeout' },
  22861. h: { type: 'list' },
  22862. help: { type: 'boolean', default: !1 },
  22863. s: { type: 'list' },
  22864. ts: { type: 'boolean', default: !0 },
  22865. v: { type: 'boolean', default: !1 }
  22866. },
  22867. url: { fmt: '/_cat/health' }
  22868. })),
  22869. (f.cat.prototype.help = d({
  22870. params: { help: { type: 'boolean', default: !1 }, s: { type: 'list' } },
  22871. url: { fmt: '/_cat' }
  22872. })),
  22873. (f.cat.prototype.indices = d({
  22874. params: {
  22875. format: { type: 'string' },
  22876. bytes: { type: 'enum', options: ['b', 'k', 'm', 'g'] },
  22877. local: { type: 'boolean' },
  22878. masterTimeout: { type: 'time', name: 'master_timeout' },
  22879. h: { type: 'list' },
  22880. health: { type: 'enum', default: null, options: ['green', 'yellow', 'red'] },
  22881. help: { type: 'boolean', default: !1 },
  22882. pri: { type: 'boolean', default: !1 },
  22883. s: { type: 'list' },
  22884. v: { type: 'boolean', default: !1 },
  22885. includeUnloadedSegments: { type: 'boolean', default: !1, name: 'include_unloaded_segments' }
  22886. },
  22887. urls: [
  22888. { fmt: '/_cat/indices/<%=index%>', req: { index: { type: 'list' } } },
  22889. { fmt: '/_cat/indices' }
  22890. ]
  22891. })),
  22892. (f.cat.prototype.master = d({
  22893. params: {
  22894. format: { type: 'string' },
  22895. local: { type: 'boolean' },
  22896. masterTimeout: { type: 'time', name: 'master_timeout' },
  22897. h: { type: 'list' },
  22898. help: { type: 'boolean', default: !1 },
  22899. s: { type: 'list' },
  22900. v: { type: 'boolean', default: !1 }
  22901. },
  22902. url: { fmt: '/_cat/master' }
  22903. })),
  22904. (f.cat.prototype.nodeattrs = d({
  22905. params: {
  22906. format: { type: 'string' },
  22907. local: { type: 'boolean' },
  22908. masterTimeout: { type: 'time', name: 'master_timeout' },
  22909. h: { type: 'list' },
  22910. help: { type: 'boolean', default: !1 },
  22911. s: { type: 'list' },
  22912. v: { type: 'boolean', default: !1 }
  22913. },
  22914. url: { fmt: '/_cat/nodeattrs' }
  22915. })),
  22916. (f.cat.prototype.nodes = d({
  22917. params: {
  22918. format: { type: 'string' },
  22919. fullId: { type: 'boolean', name: 'full_id' },
  22920. local: { type: 'boolean' },
  22921. masterTimeout: { type: 'time', name: 'master_timeout' },
  22922. h: { type: 'list' },
  22923. help: { type: 'boolean', default: !1 },
  22924. s: { type: 'list' },
  22925. v: { type: 'boolean', default: !1 }
  22926. },
  22927. url: { fmt: '/_cat/nodes' }
  22928. })),
  22929. (f.cat.prototype.pendingTasks = d({
  22930. params: {
  22931. format: { type: 'string' },
  22932. local: { type: 'boolean' },
  22933. masterTimeout: { type: 'time', name: 'master_timeout' },
  22934. h: { type: 'list' },
  22935. help: { type: 'boolean', default: !1 },
  22936. s: { type: 'list' },
  22937. v: { type: 'boolean', default: !1 }
  22938. },
  22939. url: { fmt: '/_cat/pending_tasks' }
  22940. })),
  22941. (f.cat.prototype.plugins = d({
  22942. params: {
  22943. format: { type: 'string' },
  22944. local: { type: 'boolean' },
  22945. masterTimeout: { type: 'time', name: 'master_timeout' },
  22946. h: { type: 'list' },
  22947. help: { type: 'boolean', default: !1 },
  22948. s: { type: 'list' },
  22949. v: { type: 'boolean', default: !1 }
  22950. },
  22951. url: { fmt: '/_cat/plugins' }
  22952. })),
  22953. (f.cat.prototype.recovery = d({
  22954. params: {
  22955. format: { type: 'string' },
  22956. bytes: {
  22957. type: 'enum',
  22958. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  22959. },
  22960. masterTimeout: { type: 'time', name: 'master_timeout' },
  22961. h: { type: 'list' },
  22962. help: { type: 'boolean', default: !1 },
  22963. s: { type: 'list' },
  22964. v: { type: 'boolean', default: !1 }
  22965. },
  22966. urls: [
  22967. { fmt: '/_cat/recovery/<%=index%>', req: { index: { type: 'list' } } },
  22968. { fmt: '/_cat/recovery' }
  22969. ]
  22970. })),
  22971. (f.cat.prototype.repositories = d({
  22972. params: {
  22973. format: { type: 'string' },
  22974. local: { type: 'boolean', default: !1 },
  22975. masterTimeout: { type: 'time', name: 'master_timeout' },
  22976. h: { type: 'list' },
  22977. help: { type: 'boolean', default: !1 },
  22978. s: { type: 'list' },
  22979. v: { type: 'boolean', default: !1 }
  22980. },
  22981. url: { fmt: '/_cat/repositories' }
  22982. })),
  22983. (f.cat.prototype.segments = d({
  22984. params: {
  22985. format: { type: 'string' },
  22986. bytes: {
  22987. type: 'enum',
  22988. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  22989. },
  22990. h: { type: 'list' },
  22991. help: { type: 'boolean', default: !1 },
  22992. s: { type: 'list' },
  22993. v: { type: 'boolean', default: !1 }
  22994. },
  22995. urls: [
  22996. { fmt: '/_cat/segments/<%=index%>', req: { index: { type: 'list' } } },
  22997. { fmt: '/_cat/segments' }
  22998. ]
  22999. })),
  23000. (f.cat.prototype.shards = d({
  23001. params: {
  23002. format: { type: 'string' },
  23003. bytes: {
  23004. type: 'enum',
  23005. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  23006. },
  23007. local: { type: 'boolean' },
  23008. masterTimeout: { type: 'time', name: 'master_timeout' },
  23009. h: { type: 'list' },
  23010. help: { type: 'boolean', default: !1 },
  23011. s: { type: 'list' },
  23012. v: { type: 'boolean', default: !1 }
  23013. },
  23014. urls: [
  23015. { fmt: '/_cat/shards/<%=index%>', req: { index: { type: 'list' } } },
  23016. { fmt: '/_cat/shards' }
  23017. ]
  23018. })),
  23019. (f.cat.prototype.snapshots = d({
  23020. params: {
  23021. format: { type: 'string' },
  23022. ignoreUnavailable: { type: 'boolean', default: !1, name: 'ignore_unavailable' },
  23023. masterTimeout: { type: 'time', name: 'master_timeout' },
  23024. h: { type: 'list' },
  23025. help: { type: 'boolean', default: !1 },
  23026. s: { type: 'list' },
  23027. v: { type: 'boolean', default: !1 }
  23028. },
  23029. urls: [
  23030. { fmt: '/_cat/snapshots/<%=repository%>', req: { repository: { type: 'list' } } },
  23031. { fmt: '/_cat/snapshots' }
  23032. ]
  23033. })),
  23034. (f.cat.prototype.tasks = d({
  23035. params: {
  23036. format: { type: 'string' },
  23037. nodeId: { type: 'list', name: 'node_id' },
  23038. actions: { type: 'list' },
  23039. detailed: { type: 'boolean' },
  23040. parentTask: { type: 'number', name: 'parent_task' },
  23041. h: { type: 'list' },
  23042. help: { type: 'boolean', default: !1 },
  23043. s: { type: 'list' },
  23044. v: { type: 'boolean', default: !1 }
  23045. },
  23046. url: { fmt: '/_cat/tasks' }
  23047. })),
  23048. (f.cat.prototype.templates = d({
  23049. params: {
  23050. format: { type: 'string' },
  23051. local: { type: 'boolean' },
  23052. masterTimeout: { type: 'time', name: 'master_timeout' },
  23053. h: { type: 'list' },
  23054. help: { type: 'boolean', default: !1 },
  23055. s: { type: 'list' },
  23056. v: { type: 'boolean', default: !1 }
  23057. },
  23058. urls: [
  23059. { fmt: '/_cat/templates/<%=name%>', req: { name: { type: 'string' } } },
  23060. { fmt: '/_cat/templates' }
  23061. ]
  23062. })),
  23063. (f.cat.prototype.threadPool = d({
  23064. params: {
  23065. format: { type: 'string' },
  23066. size: { type: 'enum', options: ['', 'k', 'm', 'g', 't', 'p'] },
  23067. local: { type: 'boolean' },
  23068. masterTimeout: { type: 'time', name: 'master_timeout' },
  23069. h: { type: 'list' },
  23070. help: { type: 'boolean', default: !1 },
  23071. s: { type: 'list' },
  23072. v: { type: 'boolean', default: !1 }
  23073. },
  23074. urls: [
  23075. {
  23076. fmt: '/_cat/thread_pool/<%=threadPoolPatterns%>',
  23077. req: { threadPoolPatterns: { type: 'list' } }
  23078. },
  23079. { fmt: '/_cat/thread_pool' }
  23080. ]
  23081. })),
  23082. (f.clearScroll = d({
  23083. url: { fmt: '/_search/scroll' },
  23084. paramAsBody: { param: 'scrollId', body: 'scroll_id' },
  23085. method: 'DELETE'
  23086. })),
  23087. (f.cluster = e()),
  23088. (f.cluster.prototype.allocationExplain = d({
  23089. params: {
  23090. includeYesDecisions: { type: 'boolean', name: 'include_yes_decisions' },
  23091. includeDiskInfo: { type: 'boolean', name: 'include_disk_info' }
  23092. },
  23093. url: { fmt: '/_cluster/allocation/explain' },
  23094. method: 'POST'
  23095. })),
  23096. (f.cluster.prototype.getSettings = d({
  23097. params: {
  23098. flatSettings: { type: 'boolean', name: 'flat_settings' },
  23099. masterTimeout: { type: 'time', name: 'master_timeout' },
  23100. timeout: { type: 'time' },
  23101. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
  23102. },
  23103. url: { fmt: '/_cluster/settings' }
  23104. })),
  23105. (f.cluster.prototype.health = d({
  23106. params: {
  23107. expandWildcards: {
  23108. type: 'enum',
  23109. default: 'all',
  23110. options: ['open', 'closed', 'none', 'all'],
  23111. name: 'expand_wildcards'
  23112. },
  23113. level: { type: 'enum', default: 'cluster', options: ['cluster', 'indices', 'shards'] },
  23114. local: { type: 'boolean' },
  23115. masterTimeout: { type: 'time', name: 'master_timeout' },
  23116. timeout: { type: 'time' },
  23117. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  23118. waitForNodes: { type: 'string', name: 'wait_for_nodes' },
  23119. waitForEvents: {
  23120. type: 'enum',
  23121. options: ['immediate', 'urgent', 'high', 'normal', 'low', 'languid'],
  23122. name: 'wait_for_events'
  23123. },
  23124. waitForNoRelocatingShards: { type: 'boolean', name: 'wait_for_no_relocating_shards' },
  23125. waitForNoInitializingShards: { type: 'boolean', name: 'wait_for_no_initializing_shards' },
  23126. waitForStatus: {
  23127. type: 'enum',
  23128. default: null,
  23129. options: ['green', 'yellow', 'red'],
  23130. name: 'wait_for_status'
  23131. }
  23132. },
  23133. urls: [
  23134. { fmt: '/_cluster/health/<%=index%>', req: { index: { type: 'list' } } },
  23135. { fmt: '/_cluster/health' }
  23136. ]
  23137. })),
  23138. (f.cluster.prototype.pendingTasks = d({
  23139. params: { local: { type: 'boolean' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  23140. url: { fmt: '/_cluster/pending_tasks' }
  23141. })),
  23142. (f.cluster.prototype.putSettings = d({
  23143. params: {
  23144. flatSettings: { type: 'boolean', name: 'flat_settings' },
  23145. masterTimeout: { type: 'time', name: 'master_timeout' },
  23146. timeout: { type: 'time' }
  23147. },
  23148. url: { fmt: '/_cluster/settings' },
  23149. needBody: !0,
  23150. method: 'PUT'
  23151. })),
  23152. (f.cluster.prototype.remoteInfo = d({ url: { fmt: '/_remote/info' } })),
  23153. (f.cluster.prototype.reroute = d({
  23154. params: {
  23155. dryRun: { type: 'boolean', name: 'dry_run' },
  23156. explain: { type: 'boolean' },
  23157. retryFailed: { type: 'boolean', name: 'retry_failed' },
  23158. metric: {
  23159. type: 'list',
  23160. options: [
  23161. '_all',
  23162. 'blocks',
  23163. 'metadata',
  23164. 'nodes',
  23165. 'routing_table',
  23166. 'master_node',
  23167. 'version'
  23168. ]
  23169. },
  23170. masterTimeout: { type: 'time', name: 'master_timeout' },
  23171. timeout: { type: 'time' }
  23172. },
  23173. url: { fmt: '/_cluster/reroute' },
  23174. method: 'POST'
  23175. })),
  23176. (f.cluster.prototype.state = d({
  23177. params: {
  23178. local: { type: 'boolean' },
  23179. masterTimeout: { type: 'time', name: 'master_timeout' },
  23180. flatSettings: { type: 'boolean', name: 'flat_settings' },
  23181. waitForMetadataVersion: { type: 'number', name: 'wait_for_metadata_version' },
  23182. waitForTimeout: { type: 'time', name: 'wait_for_timeout' },
  23183. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  23184. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  23185. expandWildcards: {
  23186. type: 'enum',
  23187. default: 'open',
  23188. options: ['open', 'closed', 'none', 'all'],
  23189. name: 'expand_wildcards'
  23190. }
  23191. },
  23192. urls: [
  23193. {
  23194. fmt: '/_cluster/state/<%=metric%>/<%=index%>',
  23195. req: {
  23196. metric: {
  23197. type: 'list',
  23198. options: [
  23199. '_all',
  23200. 'blocks',
  23201. 'metadata',
  23202. 'nodes',
  23203. 'routing_table',
  23204. 'routing_nodes',
  23205. 'master_node',
  23206. 'version'
  23207. ]
  23208. },
  23209. index: { type: 'list' }
  23210. }
  23211. },
  23212. {
  23213. fmt: '/_cluster/state/<%=metric%>',
  23214. req: {
  23215. metric: {
  23216. type: 'list',
  23217. options: [
  23218. '_all',
  23219. 'blocks',
  23220. 'metadata',
  23221. 'nodes',
  23222. 'routing_table',
  23223. 'routing_nodes',
  23224. 'master_node',
  23225. 'version'
  23226. ]
  23227. }
  23228. }
  23229. },
  23230. { fmt: '/_cluster/state' }
  23231. ]
  23232. })),
  23233. (f.cluster.prototype.stats = d({
  23234. params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
  23235. urls: [
  23236. { fmt: '/_cluster/stats/nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
  23237. { fmt: '/_cluster/stats' }
  23238. ]
  23239. })),
  23240. (f.count = d({
  23241. params: {
  23242. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  23243. ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
  23244. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  23245. expandWildcards: {
  23246. type: 'enum',
  23247. default: 'open',
  23248. options: ['open', 'closed', 'none', 'all'],
  23249. name: 'expand_wildcards'
  23250. },
  23251. minScore: { type: 'number', name: 'min_score' },
  23252. preference: { type: 'string' },
  23253. routing: { type: 'list' },
  23254. q: { type: 'string' },
  23255. analyzer: { type: 'string' },
  23256. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  23257. defaultOperator: {
  23258. type: 'enum',
  23259. default: 'OR',
  23260. options: ['AND', 'OR'],
  23261. name: 'default_operator'
  23262. },
  23263. df: { type: 'string' },
  23264. lenient: { type: 'boolean' },
  23265. terminateAfter: { type: 'number', name: 'terminate_after' }
  23266. },
  23267. urls: [{ fmt: '/<%=index%>/_count', req: { index: { type: 'list' } } }, { fmt: '/_count' }],
  23268. method: 'POST'
  23269. })),
  23270. (f.create = d({
  23271. params: {
  23272. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  23273. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  23274. routing: { type: 'string' },
  23275. timeout: { type: 'time' },
  23276. version: { type: 'number' },
  23277. versionType: {
  23278. type: 'enum',
  23279. options: ['internal', 'external', 'external_gte', 'force'],
  23280. name: 'version_type'
  23281. },
  23282. pipeline: { type: 'string' }
  23283. },
  23284. url: {
  23285. fmt: '/<%=index%>/_create/<%=id%>',
  23286. req: { index: { type: 'string' }, id: { type: 'string' } }
  23287. },
  23288. needBody: !0,
  23289. method: 'POST'
  23290. })),
  23291. (f.delete = d({
  23292. params: {
  23293. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  23294. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  23295. routing: { type: 'string' },
  23296. timeout: { type: 'time' },
  23297. ifSeqNo: { type: 'number', name: 'if_seq_no' },
  23298. ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
  23299. version: { type: 'number' },
  23300. versionType: {
  23301. type: 'enum',
  23302. options: ['internal', 'external', 'external_gte', 'force'],
  23303. name: 'version_type'
  23304. }
  23305. },
  23306. url: {
  23307. fmt: '/<%=index%>/_doc/<%=id%>',
  23308. req: { index: { type: 'string' }, id: { type: 'string' } }
  23309. },
  23310. method: 'DELETE'
  23311. })),
  23312. (f.deleteByQuery = d({
  23313. params: {
  23314. analyzer: { type: 'string' },
  23315. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  23316. defaultOperator: {
  23317. type: 'enum',
  23318. default: 'OR',
  23319. options: ['AND', 'OR'],
  23320. name: 'default_operator'
  23321. },
  23322. df: { type: 'string' },
  23323. from: { type: 'number' },
  23324. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  23325. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  23326. conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
  23327. expandWildcards: {
  23328. type: 'enum',
  23329. default: 'open',
  23330. options: ['open', 'closed', 'none', 'all'],
  23331. name: 'expand_wildcards'
  23332. },
  23333. lenient: { type: 'boolean' },
  23334. preference: { type: 'string' },
  23335. q: { type: 'string' },
  23336. routing: { type: 'list' },
  23337. scroll: { type: 'time' },
  23338. searchType: {
  23339. type: 'enum',
  23340. options: ['query_then_fetch', 'dfs_query_then_fetch'],
  23341. name: 'search_type'
  23342. },
  23343. searchTimeout: { type: 'time', name: 'search_timeout' },
  23344. size: { type: 'number' },
  23345. maxDocs: { type: 'number', name: 'max_docs' },
  23346. sort: { type: 'list' },
  23347. _source: { type: 'list' },
  23348. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  23349. _sourceIncludes: { type: 'list', name: '_source_includes' },
  23350. terminateAfter: { type: 'number', name: 'terminate_after' },
  23351. stats: { type: 'list' },
  23352. version: { type: 'boolean' },
  23353. requestCache: { type: 'boolean', name: 'request_cache' },
  23354. refresh: { type: 'boolean' },
  23355. timeout: { type: 'time', default: '1m' },
  23356. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  23357. scrollSize: { type: 'number', name: 'scroll_size' },
  23358. waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
  23359. requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
  23360. slices: { type: 'number', default: 1 }
  23361. },
  23362. url: { fmt: '/<%=index%>/_delete_by_query', req: { index: { type: 'list' } } },
  23363. needBody: !0,
  23364. method: 'POST'
  23365. })),
  23366. (f.deleteByQueryRethrottle = d({
  23367. params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
  23368. url: { fmt: '/_delete_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
  23369. method: 'POST'
  23370. })),
  23371. (f.deleteScript = d({
  23372. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  23373. url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } },
  23374. method: 'DELETE'
  23375. })),
  23376. (f.exists = d({
  23377. params: {
  23378. storedFields: { type: 'list', name: 'stored_fields' },
  23379. preference: { type: 'string' },
  23380. realtime: { type: 'boolean' },
  23381. refresh: { type: 'boolean' },
  23382. routing: { type: 'string' },
  23383. _source: { type: 'list' },
  23384. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  23385. _sourceIncludes: { type: 'list', name: '_source_includes' },
  23386. version: { type: 'number' },
  23387. versionType: {
  23388. type: 'enum',
  23389. options: ['internal', 'external', 'external_gte', 'force'],
  23390. name: 'version_type'
  23391. }
  23392. },
  23393. url: {
  23394. fmt: '/<%=index%>/_doc/<%=id%>',
  23395. req: { index: { type: 'string' }, id: { type: 'string' } }
  23396. },
  23397. method: 'HEAD'
  23398. })),
  23399. (f.existsSource = d({
  23400. params: {
  23401. preference: { type: 'string' },
  23402. realtime: { type: 'boolean' },
  23403. refresh: { type: 'boolean' },
  23404. routing: { type: 'string' },
  23405. _source: { type: 'list' },
  23406. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  23407. _sourceIncludes: { type: 'list', name: '_source_includes' },
  23408. version: { type: 'number' },
  23409. versionType: {
  23410. type: 'enum',
  23411. options: ['internal', 'external', 'external_gte', 'force'],
  23412. name: 'version_type'
  23413. }
  23414. },
  23415. url: {
  23416. fmt: '/<%=index%>/_source/<%=id%>',
  23417. req: { index: { type: 'string' }, id: { type: 'string' } }
  23418. },
  23419. method: 'HEAD'
  23420. })),
  23421. (f.explain = d({
  23422. params: {
  23423. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  23424. analyzer: { type: 'string' },
  23425. defaultOperator: {
  23426. type: 'enum',
  23427. default: 'OR',
  23428. options: ['AND', 'OR'],
  23429. name: 'default_operator'
  23430. },
  23431. df: { type: 'string' },
  23432. storedFields: { type: 'list', name: 'stored_fields' },
  23433. lenient: { type: 'boolean' },
  23434. preference: { type: 'string' },
  23435. q: { type: 'string' },
  23436. routing: { type: 'string' },
  23437. _source: { type: 'list' },
  23438. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  23439. _sourceIncludes: { type: 'list', name: '_source_includes' }
  23440. },
  23441. url: {
  23442. fmt: '/<%=index%>/_explain/<%=id%>',
  23443. req: { index: { type: 'string' }, id: { type: 'string' } }
  23444. },
  23445. method: 'POST'
  23446. })),
  23447. (f.fieldCaps = d({
  23448. params: {
  23449. fields: { type: 'list' },
  23450. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  23451. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  23452. expandWildcards: {
  23453. type: 'enum',
  23454. default: 'open',
  23455. options: ['open', 'closed', 'none', 'all'],
  23456. name: 'expand_wildcards'
  23457. },
  23458. includeUnmapped: { type: 'boolean', default: !1, name: 'include_unmapped' }
  23459. },
  23460. urls: [
  23461. { fmt: '/<%=index%>/_field_caps', req: { index: { type: 'list' } } },
  23462. { fmt: '/_field_caps' }
  23463. ],
  23464. method: 'POST'
  23465. })),
  23466. (f.get = d({
  23467. params: {
  23468. storedFields: { type: 'list', name: 'stored_fields' },
  23469. preference: { type: 'string' },
  23470. realtime: { type: 'boolean' },
  23471. refresh: { type: 'boolean' },
  23472. routing: { type: 'string' },
  23473. _source: { type: 'list' },
  23474. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  23475. _sourceIncludes: { type: 'list', name: '_source_includes' },
  23476. version: { type: 'number' },
  23477. versionType: {
  23478. type: 'enum',
  23479. options: ['internal', 'external', 'external_gte', 'force'],
  23480. name: 'version_type'
  23481. }
  23482. },
  23483. url: {
  23484. fmt: '/<%=index%>/_doc/<%=id%>',
  23485. req: { index: { type: 'string' }, id: { type: 'string' } }
  23486. }
  23487. })),
  23488. (f.getScript = d({
  23489. params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
  23490. url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
  23491. })),
  23492. (f.getSource = d({
  23493. params: {
  23494. preference: { type: 'string' },
  23495. realtime: { type: 'boolean' },
  23496. refresh: { type: 'boolean' },
  23497. routing: { type: 'string' },
  23498. _source: { type: 'list' },
  23499. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  23500. _sourceIncludes: { type: 'list', name: '_source_includes' },
  23501. version: { type: 'number' },
  23502. versionType: {
  23503. type: 'enum',
  23504. options: ['internal', 'external', 'external_gte', 'force'],
  23505. name: 'version_type'
  23506. }
  23507. },
  23508. url: {
  23509. fmt: '/<%=index%>/_source/<%=id%>',
  23510. req: { index: { type: 'string' }, id: { type: 'string' } }
  23511. }
  23512. })),
  23513. (f.index = d({
  23514. params: {
  23515. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  23516. opType: { type: 'enum', default: 'index', options: ['index', 'create'], name: 'op_type' },
  23517. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  23518. routing: { type: 'string' },
  23519. timeout: { type: 'time' },
  23520. version: { type: 'number' },
  23521. versionType: {
  23522. type: 'enum',
  23523. options: ['internal', 'external', 'external_gte', 'force'],
  23524. name: 'version_type'
  23525. },
  23526. ifSeqNo: { type: 'number', name: 'if_seq_no' },
  23527. ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
  23528. pipeline: { type: 'string' }
  23529. },
  23530. urls: [
  23531. {
  23532. fmt: '/<%=index%>/_doc/<%=id%>',
  23533. req: { index: { type: 'string' }, id: { type: 'string' } }
  23534. },
  23535. { fmt: '/<%=index%>/_doc', req: { index: { type: 'string' } } }
  23536. ],
  23537. needBody: !0,
  23538. method: 'POST'
  23539. })),
  23540. (f.indices = e()),
  23541. (f.indices.prototype.analyze = d({
  23542. params: { index: { type: 'string' } },
  23543. urls: [
  23544. { fmt: '/<%=index%>/_analyze', req: { index: { type: 'string' } } },
  23545. { fmt: '/_analyze' }
  23546. ],
  23547. method: 'POST'
  23548. })),
  23549. (f.indices.prototype.clearCache = d({
  23550. params: {
  23551. fielddata: { type: 'boolean' },
  23552. fields: { type: 'list' },
  23553. query: { type: 'boolean' },
  23554. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  23555. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  23556. expandWildcards: {
  23557. type: 'enum',
  23558. default: 'open',
  23559. options: ['open', 'closed', 'none', 'all'],
  23560. name: 'expand_wildcards'
  23561. },
  23562. index: { type: 'list' },
  23563. request: { type: 'boolean' }
  23564. },
  23565. urls: [
  23566. { fmt: '/<%=index%>/_cache/clear', req: { index: { type: 'list' } } },
  23567. { fmt: '/_cache/clear' }
  23568. ],
  23569. method: 'POST'
  23570. })),
  23571. (f.indices.prototype.clone = d({
  23572. params: {
  23573. timeout: { type: 'time' },
  23574. masterTimeout: { type: 'time', name: 'master_timeout' },
  23575. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  23576. },
  23577. url: {
  23578. fmt: '/<%=index%>/_clone/<%=target%>',
  23579. req: { index: { type: 'string' }, target: { type: 'string' } }
  23580. },
  23581. method: 'POST'
  23582. })),
  23583. (f.indices.prototype.close = d({
  23584. params: {
  23585. timeout: { type: 'time' },
  23586. masterTimeout: { type: 'time', name: 'master_timeout' },
  23587. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  23588. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  23589. expandWildcards: {
  23590. type: 'enum',
  23591. default: 'open',
  23592. options: ['open', 'closed', 'none', 'all'],
  23593. name: 'expand_wildcards'
  23594. },
  23595. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  23596. },
  23597. url: { fmt: '/<%=index%>/_close', req: { index: { type: 'list' } } },
  23598. method: 'POST'
  23599. })),
  23600. (f.indices.prototype.create = d({
  23601. params: {
  23602. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  23603. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  23604. timeout: { type: 'time' },
  23605. masterTimeout: { type: 'time', name: 'master_timeout' }
  23606. },
  23607. url: { fmt: '/<%=index%>', req: { index: { type: 'string' } } },
  23608. method: 'PUT'
  23609. })),
  23610. (f.indices.prototype.delete = d({
  23611. params: {
  23612. timeout: { type: 'time' },
  23613. masterTimeout: { type: 'time', name: 'master_timeout' },
  23614. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  23615. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  23616. expandWildcards: {
  23617. type: 'enum',
  23618. default: 'open',
  23619. options: ['open', 'closed', 'none', 'all'],
  23620. name: 'expand_wildcards'
  23621. }
  23622. },
  23623. url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
  23624. method: 'DELETE'
  23625. })),
  23626. (f.indices.prototype.deleteAlias = d({
  23627. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  23628. url: {
  23629. fmt: '/<%=index%>/_alias/<%=name%>',
  23630. req: { index: { type: 'list' }, name: { type: 'list' } }
  23631. },
  23632. method: 'DELETE'
  23633. })),
  23634. (f.indices.prototype.deleteTemplate = d({
  23635. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  23636. url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
  23637. method: 'DELETE'
  23638. })),
  23639. (f.indices.prototype.exists = d({
  23640. params: {
  23641. local: { type: 'boolean' },
  23642. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  23643. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  23644. expandWildcards: {
  23645. type: 'enum',
  23646. default: 'open',
  23647. options: ['open', 'closed', 'none', 'all'],
  23648. name: 'expand_wildcards'
  23649. },
  23650. flatSettings: { type: 'boolean', name: 'flat_settings' },
  23651. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
  23652. },
  23653. url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
  23654. method: 'HEAD'
  23655. })),
  23656. (f.indices.prototype.existsAlias = d({
  23657. params: {
  23658. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  23659. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  23660. expandWildcards: {
  23661. type: 'enum',
  23662. default: 'all',
  23663. options: ['open', 'closed', 'none', 'all'],
  23664. name: 'expand_wildcards'
  23665. },
  23666. local: { type: 'boolean' }
  23667. },
  23668. urls: [
  23669. {
  23670. fmt: '/<%=index%>/_alias/<%=name%>',
  23671. req: { index: { type: 'list' }, name: { type: 'list' } }
  23672. },
  23673. { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } }
  23674. ],
  23675. method: 'HEAD'
  23676. })),
  23677. (f.indices.prototype.existsTemplate = d({
  23678. params: {
  23679. flatSettings: { type: 'boolean', name: 'flat_settings' },
  23680. masterTimeout: { type: 'time', name: 'master_timeout' },
  23681. local: { type: 'boolean' }
  23682. },
  23683. url: { fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } },
  23684. method: 'HEAD'
  23685. })),
  23686. (f.indices.prototype.existsType = d({
  23687. params: {
  23688. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  23689. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  23690. expandWildcards: {
  23691. type: 'enum',
  23692. default: 'open',
  23693. options: ['open', 'closed', 'none', 'all'],
  23694. name: 'expand_wildcards'
  23695. },
  23696. local: { type: 'boolean' }
  23697. },
  23698. url: {
  23699. fmt: '/<%=index%>/_mapping/<%=type%>',
  23700. req: { index: { type: 'list' }, type: { type: 'list' } }
  23701. },
  23702. method: 'HEAD'
  23703. })),
  23704. (f.indices.prototype.flush = d({
  23705. params: {
  23706. force: { type: 'boolean' },
  23707. waitIfOngoing: { type: 'boolean', name: 'wait_if_ongoing' },
  23708. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  23709. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  23710. expandWildcards: {
  23711. type: 'enum',
  23712. default: 'open',
  23713. options: ['open', 'closed', 'none', 'all'],
  23714. name: 'expand_wildcards'
  23715. }
  23716. },
  23717. urls: [{ fmt: '/<%=index%>/_flush', req: { index: { type: 'list' } } }, { fmt: '/_flush' }],
  23718. method: 'POST'
  23719. })),
  23720. (f.indices.prototype.flushSynced = d({
  23721. params: {
  23722. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  23723. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  23724. expandWildcards: {
  23725. type: 'enum',
  23726. default: 'open',
  23727. options: ['open', 'closed', 'none', 'all'],
  23728. name: 'expand_wildcards'
  23729. }
  23730. },
  23731. urls: [
  23732. { fmt: '/<%=index%>/_flush/synced', req: { index: { type: 'list' } } },
  23733. { fmt: '/_flush/synced' }
  23734. ],
  23735. method: 'POST'
  23736. })),
  23737. (f.indices.prototype.forcemerge = d({
  23738. params: {
  23739. flush: { type: 'boolean' },
  23740. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  23741. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  23742. expandWildcards: {
  23743. type: 'enum',
  23744. default: 'open',
  23745. options: ['open', 'closed', 'none', 'all'],
  23746. name: 'expand_wildcards'
  23747. },
  23748. maxNumSegments: { type: 'number', name: 'max_num_segments' },
  23749. onlyExpungeDeletes: { type: 'boolean', name: 'only_expunge_deletes' }
  23750. },
  23751. urls: [
  23752. { fmt: '/<%=index%>/_forcemerge', req: { index: { type: 'list' } } },
  23753. { fmt: '/_forcemerge' }
  23754. ],
  23755. method: 'POST'
  23756. })),
  23757. (f.indices.prototype.get = d({
  23758. params: {
  23759. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  23760. local: { type: 'boolean' },
  23761. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  23762. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  23763. expandWildcards: {
  23764. type: 'enum',
  23765. default: 'open',
  23766. options: ['open', 'closed', 'none', 'all'],
  23767. name: 'expand_wildcards'
  23768. },
  23769. flatSettings: { type: 'boolean', name: 'flat_settings' },
  23770. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' },
  23771. masterTimeout: { type: 'time', name: 'master_timeout' }
  23772. },
  23773. url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } }
  23774. })),
  23775. (f.indices.prototype.getAlias = d({
  23776. params: {
  23777. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  23778. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  23779. expandWildcards: {
  23780. type: 'enum',
  23781. default: 'all',
  23782. options: ['open', 'closed', 'none', 'all'],
  23783. name: 'expand_wildcards'
  23784. },
  23785. local: { type: 'boolean' }
  23786. },
  23787. urls: [
  23788. {
  23789. fmt: '/<%=index%>/_alias/<%=name%>',
  23790. req: { index: { type: 'list' }, name: { type: 'list' } }
  23791. },
  23792. { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } },
  23793. { fmt: '/<%=index%>/_alias', req: { index: { type: 'list' } } },
  23794. { fmt: '/_alias' }
  23795. ]
  23796. })),
  23797. (f.indices.prototype.getFieldMapping = d({
  23798. params: {
  23799. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  23800. includeDefaults: { type: 'boolean', name: 'include_defaults' },
  23801. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  23802. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  23803. expandWildcards: {
  23804. type: 'enum',
  23805. default: 'open',
  23806. options: ['open', 'closed', 'none', 'all'],
  23807. name: 'expand_wildcards'
  23808. },
  23809. local: { type: 'boolean' }
  23810. },
  23811. urls: [
  23812. {
  23813. fmt: '/<%=index%>/_mapping/field/<%=fields%>',
  23814. req: { index: { type: 'list' }, fields: { type: 'list' } }
  23815. },
  23816. { fmt: '/_mapping/field/<%=fields%>', req: { fields: { type: 'list' } } }
  23817. ]
  23818. })),
  23819. (f.indices.prototype.getMapping = d({
  23820. params: {
  23821. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  23822. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  23823. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  23824. expandWildcards: {
  23825. type: 'enum',
  23826. default: 'open',
  23827. options: ['open', 'closed', 'none', 'all'],
  23828. name: 'expand_wildcards'
  23829. },
  23830. masterTimeout: { type: 'time', name: 'master_timeout' },
  23831. local: { type: 'boolean' }
  23832. },
  23833. urls: [{ fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } }, { fmt: '/_mapping' }]
  23834. })),
  23835. (f.indices.prototype.getSettings = d({
  23836. params: {
  23837. masterTimeout: { type: 'time', name: 'master_timeout' },
  23838. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  23839. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  23840. expandWildcards: {
  23841. type: 'enum',
  23842. default: ['open', 'closed'],
  23843. options: ['open', 'closed', 'none', 'all'],
  23844. name: 'expand_wildcards'
  23845. },
  23846. flatSettings: { type: 'boolean', name: 'flat_settings' },
  23847. local: { type: 'boolean' },
  23848. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
  23849. },
  23850. urls: [
  23851. {
  23852. fmt: '/<%=index%>/_settings/<%=name%>',
  23853. req: { index: { type: 'list' }, name: { type: 'list' } }
  23854. },
  23855. { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
  23856. { fmt: '/_settings/<%=name%>', req: { name: { type: 'list' } } },
  23857. { fmt: '/_settings' }
  23858. ]
  23859. })),
  23860. (f.indices.prototype.getTemplate = d({
  23861. params: {
  23862. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  23863. flatSettings: { type: 'boolean', name: 'flat_settings' },
  23864. masterTimeout: { type: 'time', name: 'master_timeout' },
  23865. local: { type: 'boolean' }
  23866. },
  23867. urls: [{ fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } }, { fmt: '/_template' }]
  23868. })),
  23869. (f.indices.prototype.getUpgrade = d({
  23870. params: {
  23871. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  23872. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  23873. expandWildcards: {
  23874. type: 'enum',
  23875. default: 'open',
  23876. options: ['open', 'closed', 'none', 'all'],
  23877. name: 'expand_wildcards'
  23878. }
  23879. },
  23880. urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }]
  23881. })),
  23882. (f.indices.prototype.open = d({
  23883. params: {
  23884. timeout: { type: 'time' },
  23885. masterTimeout: { type: 'time', name: 'master_timeout' },
  23886. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  23887. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  23888. expandWildcards: {
  23889. type: 'enum',
  23890. default: 'closed',
  23891. options: ['open', 'closed', 'none', 'all'],
  23892. name: 'expand_wildcards'
  23893. },
  23894. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  23895. },
  23896. url: { fmt: '/<%=index%>/_open', req: { index: { type: 'list' } } },
  23897. method: 'POST'
  23898. })),
  23899. (f.indices.prototype.putAlias = d({
  23900. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  23901. url: {
  23902. fmt: '/<%=index%>/_alias/<%=name%>',
  23903. req: { index: { type: 'list' }, name: { type: 'string' } }
  23904. },
  23905. method: 'PUT'
  23906. })),
  23907. (f.indices.prototype.putMapping = d({
  23908. params: {
  23909. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  23910. timeout: { type: 'time' },
  23911. masterTimeout: { type: 'time', name: 'master_timeout' },
  23912. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  23913. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  23914. expandWildcards: {
  23915. type: 'enum',
  23916. default: 'open',
  23917. options: ['open', 'closed', 'none', 'all'],
  23918. name: 'expand_wildcards'
  23919. }
  23920. },
  23921. url: { fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } },
  23922. needBody: !0,
  23923. method: 'PUT'
  23924. })),
  23925. (f.indices.prototype.putSettings = d({
  23926. params: {
  23927. masterTimeout: { type: 'time', name: 'master_timeout' },
  23928. timeout: { type: 'time' },
  23929. preserveExisting: { type: 'boolean', name: 'preserve_existing' },
  23930. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  23931. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  23932. expandWildcards: {
  23933. type: 'enum',
  23934. default: 'open',
  23935. options: ['open', 'closed', 'none', 'all'],
  23936. name: 'expand_wildcards'
  23937. },
  23938. flatSettings: { type: 'boolean', name: 'flat_settings' }
  23939. },
  23940. urls: [
  23941. { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
  23942. { fmt: '/_settings' }
  23943. ],
  23944. needBody: !0,
  23945. method: 'PUT'
  23946. })),
  23947. (f.indices.prototype.putTemplate = d({
  23948. params: {
  23949. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  23950. order: { type: 'number' },
  23951. create: { type: 'boolean', default: !1 },
  23952. timeout: { type: 'time' },
  23953. masterTimeout: { type: 'time', name: 'master_timeout' },
  23954. flatSettings: { type: 'boolean', name: 'flat_settings' }
  23955. },
  23956. url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
  23957. needBody: !0,
  23958. method: 'PUT'
  23959. })),
  23960. (f.indices.prototype.recovery = d({
  23961. params: {
  23962. detailed: { type: 'boolean', default: !1 },
  23963. activeOnly: { type: 'boolean', default: !1, name: 'active_only' }
  23964. },
  23965. urls: [
  23966. { fmt: '/<%=index%>/_recovery', req: { index: { type: 'list' } } },
  23967. { fmt: '/_recovery' }
  23968. ]
  23969. })),
  23970. (f.indices.prototype.refresh = d({
  23971. params: {
  23972. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  23973. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  23974. expandWildcards: {
  23975. type: 'enum',
  23976. default: 'open',
  23977. options: ['open', 'closed', 'none', 'all'],
  23978. name: 'expand_wildcards'
  23979. }
  23980. },
  23981. urls: [{ fmt: '/<%=index%>/_refresh', req: { index: { type: 'list' } } }, { fmt: '/_refresh' }],
  23982. method: 'POST'
  23983. })),
  23984. (f.indices.prototype.rollover = d({
  23985. params: {
  23986. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  23987. timeout: { type: 'time' },
  23988. dryRun: { type: 'boolean', name: 'dry_run' },
  23989. masterTimeout: { type: 'time', name: 'master_timeout' },
  23990. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  23991. },
  23992. urls: [
  23993. {
  23994. fmt: '/<%=alias%>/_rollover/<%=newIndex%>',
  23995. req: { alias: { type: 'string' }, newIndex: { type: 'string' } }
  23996. },
  23997. { fmt: '/<%=alias%>/_rollover', req: { alias: { type: 'string' } } }
  23998. ],
  23999. method: 'POST'
  24000. })),
  24001. (f.indices.prototype.segments = d({
  24002. params: {
  24003. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  24004. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  24005. expandWildcards: {
  24006. type: 'enum',
  24007. default: 'open',
  24008. options: ['open', 'closed', 'none', 'all'],
  24009. name: 'expand_wildcards'
  24010. },
  24011. verbose: { type: 'boolean', default: !1 }
  24012. },
  24013. urls: [
  24014. { fmt: '/<%=index%>/_segments', req: { index: { type: 'list' } } },
  24015. { fmt: '/_segments' }
  24016. ]
  24017. })),
  24018. (f.indices.prototype.shardStores = d({
  24019. params: {
  24020. status: { type: 'list', options: ['green', 'yellow', 'red', 'all'] },
  24021. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  24022. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  24023. expandWildcards: {
  24024. type: 'enum',
  24025. default: 'open',
  24026. options: ['open', 'closed', 'none', 'all'],
  24027. name: 'expand_wildcards'
  24028. }
  24029. },
  24030. urls: [
  24031. { fmt: '/<%=index%>/_shard_stores', req: { index: { type: 'list' } } },
  24032. { fmt: '/_shard_stores' }
  24033. ]
  24034. })),
  24035. (f.indices.prototype.shrink = d({
  24036. params: {
  24037. copySettings: { type: 'boolean', name: 'copy_settings' },
  24038. timeout: { type: 'time' },
  24039. masterTimeout: { type: 'time', name: 'master_timeout' },
  24040. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  24041. },
  24042. url: {
  24043. fmt: '/<%=index%>/_shrink/<%=target%>',
  24044. req: { index: { type: 'string' }, target: { type: 'string' } }
  24045. },
  24046. method: 'POST'
  24047. })),
  24048. (f.indices.prototype.split = d({
  24049. params: {
  24050. copySettings: { type: 'boolean', name: 'copy_settings' },
  24051. timeout: { type: 'time' },
  24052. masterTimeout: { type: 'time', name: 'master_timeout' },
  24053. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  24054. },
  24055. url: {
  24056. fmt: '/<%=index%>/_split/<%=target%>',
  24057. req: { index: { type: 'string' }, target: { type: 'string' } }
  24058. },
  24059. method: 'POST'
  24060. })),
  24061. (f.indices.prototype.stats = d({
  24062. params: {
  24063. completionFields: { type: 'list', name: 'completion_fields' },
  24064. fielddataFields: { type: 'list', name: 'fielddata_fields' },
  24065. fields: { type: 'list' },
  24066. groups: { type: 'list' },
  24067. level: { type: 'enum', default: 'indices', options: ['cluster', 'indices', 'shards'] },
  24068. types: { type: 'list' },
  24069. includeSegmentFileSizes: {
  24070. type: 'boolean',
  24071. default: !1,
  24072. name: 'include_segment_file_sizes'
  24073. },
  24074. includeUnloadedSegments: {
  24075. type: 'boolean',
  24076. default: !1,
  24077. name: 'include_unloaded_segments'
  24078. },
  24079. expandWildcards: {
  24080. type: 'enum',
  24081. default: 'open',
  24082. options: ['open', 'closed', 'none', 'all'],
  24083. name: 'expand_wildcards'
  24084. },
  24085. forbidClosedIndices: { type: 'boolean', default: !0, name: 'forbid_closed_indices' }
  24086. },
  24087. urls: [
  24088. {
  24089. fmt: '/<%=index%>/_stats/<%=metric%>',
  24090. req: {
  24091. index: { type: 'list' },
  24092. metric: {
  24093. type: 'list',
  24094. options: [
  24095. '_all',
  24096. 'completion',
  24097. 'docs',
  24098. 'fielddata',
  24099. 'query_cache',
  24100. 'flush',
  24101. 'get',
  24102. 'indexing',
  24103. 'merge',
  24104. 'request_cache',
  24105. 'refresh',
  24106. 'search',
  24107. 'segments',
  24108. 'store',
  24109. 'warmer',
  24110. 'suggest'
  24111. ]
  24112. }
  24113. }
  24114. },
  24115. {
  24116. fmt: '/_stats/<%=metric%>',
  24117. req: {
  24118. metric: {
  24119. type: 'list',
  24120. options: [
  24121. '_all',
  24122. 'completion',
  24123. 'docs',
  24124. 'fielddata',
  24125. 'query_cache',
  24126. 'flush',
  24127. 'get',
  24128. 'indexing',
  24129. 'merge',
  24130. 'request_cache',
  24131. 'refresh',
  24132. 'search',
  24133. 'segments',
  24134. 'store',
  24135. 'warmer',
  24136. 'suggest'
  24137. ]
  24138. }
  24139. }
  24140. },
  24141. { fmt: '/<%=index%>/_stats', req: { index: { type: 'list' } } },
  24142. { fmt: '/_stats' }
  24143. ]
  24144. })),
  24145. (f.indices.prototype.updateAliases = d({
  24146. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  24147. url: { fmt: '/_aliases' },
  24148. needBody: !0,
  24149. method: 'POST'
  24150. })),
  24151. (f.indices.prototype.upgrade = d({
  24152. params: {
  24153. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  24154. expandWildcards: {
  24155. type: 'enum',
  24156. default: 'open',
  24157. options: ['open', 'closed', 'none', 'all'],
  24158. name: 'expand_wildcards'
  24159. },
  24160. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  24161. waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
  24162. onlyAncientSegments: { type: 'boolean', name: 'only_ancient_segments' }
  24163. },
  24164. urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }],
  24165. method: 'POST'
  24166. })),
  24167. (f.indices.prototype.validateQuery = d({
  24168. params: {
  24169. explain: { type: 'boolean' },
  24170. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  24171. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  24172. expandWildcards: {
  24173. type: 'enum',
  24174. default: 'open',
  24175. options: ['open', 'closed', 'none', 'all'],
  24176. name: 'expand_wildcards'
  24177. },
  24178. q: { type: 'string' },
  24179. analyzer: { type: 'string' },
  24180. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  24181. defaultOperator: {
  24182. type: 'enum',
  24183. default: 'OR',
  24184. options: ['AND', 'OR'],
  24185. name: 'default_operator'
  24186. },
  24187. df: { type: 'string' },
  24188. lenient: { type: 'boolean' },
  24189. rewrite: { type: 'boolean' },
  24190. allShards: { type: 'boolean', name: 'all_shards' }
  24191. },
  24192. urls: [
  24193. { fmt: '/<%=index%>/_validate/query', req: { index: { type: 'list' } } },
  24194. { fmt: '/_validate/query' }
  24195. ],
  24196. method: 'POST'
  24197. })),
  24198. (f.info = d({ url: { fmt: '/' } })),
  24199. (f.ingest = e()),
  24200. (f.ingest.prototype.deletePipeline = d({
  24201. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  24202. url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
  24203. method: 'DELETE'
  24204. })),
  24205. (f.ingest.prototype.getPipeline = d({
  24206. params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
  24207. urls: [
  24208. { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
  24209. { fmt: '/_ingest/pipeline' }
  24210. ]
  24211. })),
  24212. (f.ingest.prototype.processorGrok = d({ url: { fmt: '/_ingest/processor/grok' } })),
  24213. (f.ingest.prototype.putPipeline = d({
  24214. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  24215. url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
  24216. needBody: !0,
  24217. method: 'PUT'
  24218. })),
  24219. (f.ingest.prototype.simulate = d({
  24220. params: { verbose: { type: 'boolean', default: !1 } },
  24221. urls: [
  24222. { fmt: '/_ingest/pipeline/<%=id%>/_simulate', req: { id: { type: 'string' } } },
  24223. { fmt: '/_ingest/pipeline/_simulate' }
  24224. ],
  24225. needBody: !0,
  24226. method: 'POST'
  24227. })),
  24228. (f.mget = d({
  24229. params: {
  24230. storedFields: { type: 'list', name: 'stored_fields' },
  24231. preference: { type: 'string' },
  24232. realtime: { type: 'boolean' },
  24233. refresh: { type: 'boolean' },
  24234. routing: { type: 'string' },
  24235. _source: { type: 'list' },
  24236. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  24237. _sourceIncludes: { type: 'list', name: '_source_includes' }
  24238. },
  24239. urls: [{ fmt: '/<%=index%>/_mget', req: { index: { type: 'string' } } }, { fmt: '/_mget' }],
  24240. needBody: !0,
  24241. method: 'POST'
  24242. })),
  24243. (f.msearch = d({
  24244. params: {
  24245. searchType: {
  24246. type: 'enum',
  24247. options: [
  24248. 'query_then_fetch',
  24249. 'query_and_fetch',
  24250. 'dfs_query_then_fetch',
  24251. 'dfs_query_and_fetch'
  24252. ],
  24253. name: 'search_type'
  24254. },
  24255. maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
  24256. typedKeys: { type: 'boolean', name: 'typed_keys' },
  24257. preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
  24258. maxConcurrentShardRequests: {
  24259. type: 'number',
  24260. default: 5,
  24261. name: 'max_concurrent_shard_requests'
  24262. },
  24263. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
  24264. ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
  24265. },
  24266. urls: [{ fmt: '/<%=index%>/_msearch', req: { index: { type: 'list' } } }, { fmt: '/_msearch' }],
  24267. needBody: !0,
  24268. bulkBody: !0,
  24269. method: 'POST'
  24270. })),
  24271. (f.msearchTemplate = d({
  24272. params: {
  24273. searchType: {
  24274. type: 'enum',
  24275. options: [
  24276. 'query_then_fetch',
  24277. 'query_and_fetch',
  24278. 'dfs_query_then_fetch',
  24279. 'dfs_query_and_fetch'
  24280. ],
  24281. name: 'search_type'
  24282. },
  24283. typedKeys: { type: 'boolean', name: 'typed_keys' },
  24284. maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
  24285. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
  24286. ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
  24287. },
  24288. urls: [
  24289. { fmt: '/<%=index%>/_msearch/template', req: { index: { type: 'list' } } },
  24290. { fmt: '/_msearch/template' }
  24291. ],
  24292. needBody: !0,
  24293. bulkBody: !0,
  24294. method: 'POST'
  24295. })),
  24296. (f.mtermvectors = d({
  24297. params: {
  24298. ids: { type: 'list', required: !1 },
  24299. termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
  24300. fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
  24301. fields: { type: 'list', required: !1 },
  24302. offsets: { type: 'boolean', default: !0, required: !1 },
  24303. positions: { type: 'boolean', default: !0, required: !1 },
  24304. payloads: { type: 'boolean', default: !0, required: !1 },
  24305. preference: { type: 'string', required: !1 },
  24306. routing: { type: 'string', required: !1 },
  24307. realtime: { type: 'boolean', required: !1 },
  24308. version: { type: 'number' },
  24309. versionType: {
  24310. type: 'enum',
  24311. options: ['internal', 'external', 'external_gte', 'force'],
  24312. name: 'version_type'
  24313. }
  24314. },
  24315. urls: [
  24316. { fmt: '/<%=index%>/_mtermvectors', req: { index: { type: 'string' } } },
  24317. { fmt: '/_mtermvectors' }
  24318. ],
  24319. method: 'POST'
  24320. })),
  24321. (f.nodes = e()),
  24322. (f.nodes.prototype.hotThreads = d({
  24323. params: {
  24324. interval: { type: 'time' },
  24325. snapshots: { type: 'number' },
  24326. threads: { type: 'number' },
  24327. ignoreIdleThreads: { type: 'boolean', name: 'ignore_idle_threads' },
  24328. type: { type: 'enum', options: ['cpu', 'wait', 'block'] },
  24329. timeout: { type: 'time' }
  24330. },
  24331. url: {}
  24332. })),
  24333. (f.nodes.prototype.info = d({
  24334. params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
  24335. urls: [
  24336. {
  24337. fmt: '/_nodes/<%=nodeId%>/<%=metric%>',
  24338. req: {
  24339. nodeId: { type: 'list' },
  24340. metric: {
  24341. type: 'list',
  24342. options: [
  24343. 'settings',
  24344. 'os',
  24345. 'process',
  24346. 'jvm',
  24347. 'thread_pool',
  24348. 'transport',
  24349. 'http',
  24350. 'plugins',
  24351. 'ingest'
  24352. ]
  24353. }
  24354. }
  24355. },
  24356. { fmt: '/_nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
  24357. {
  24358. fmt: '/_nodes/<%=metric%>',
  24359. req: {
  24360. metric: {
  24361. type: 'list',
  24362. options: [
  24363. 'settings',
  24364. 'os',
  24365. 'process',
  24366. 'jvm',
  24367. 'thread_pool',
  24368. 'transport',
  24369. 'http',
  24370. 'plugins',
  24371. 'ingest'
  24372. ]
  24373. }
  24374. }
  24375. },
  24376. { fmt: '/_nodes' }
  24377. ]
  24378. })),
  24379. (f.nodes.prototype.reloadSecureSettings = d({
  24380. params: { timeout: { type: 'time' } },
  24381. urls: [
  24382. { fmt: '/_nodes/<%=nodeId%>/reload_secure_settings', req: { nodeId: { type: 'list' } } },
  24383. { fmt: '/_nodes/reload_secure_settings' }
  24384. ],
  24385. method: 'POST'
  24386. })),
  24387. (f.nodes.prototype.stats = d({
  24388. params: {
  24389. completionFields: { type: 'list', name: 'completion_fields' },
  24390. fielddataFields: { type: 'list', name: 'fielddata_fields' },
  24391. fields: { type: 'list' },
  24392. groups: { type: 'boolean' },
  24393. level: { type: 'enum', default: 'node', options: ['indices', 'node', 'shards'] },
  24394. types: { type: 'list' },
  24395. timeout: { type: 'time' },
  24396. includeSegmentFileSizes: {
  24397. type: 'boolean',
  24398. default: !1,
  24399. name: 'include_segment_file_sizes'
  24400. }
  24401. },
  24402. urls: [
  24403. {
  24404. fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>',
  24405. req: {
  24406. nodeId: { type: 'list' },
  24407. metric: {
  24408. type: 'list',
  24409. options: [
  24410. '_all',
  24411. 'breaker',
  24412. 'fs',
  24413. 'http',
  24414. 'indices',
  24415. 'jvm',
  24416. 'os',
  24417. 'process',
  24418. 'thread_pool',
  24419. 'transport',
  24420. 'discovery'
  24421. ]
  24422. },
  24423. indexMetric: {
  24424. type: 'list',
  24425. options: [
  24426. '_all',
  24427. 'completion',
  24428. 'docs',
  24429. 'fielddata',
  24430. 'query_cache',
  24431. 'flush',
  24432. 'get',
  24433. 'indexing',
  24434. 'merge',
  24435. 'request_cache',
  24436. 'refresh',
  24437. 'search',
  24438. 'segments',
  24439. 'store',
  24440. 'warmer',
  24441. 'suggest'
  24442. ]
  24443. }
  24444. }
  24445. },
  24446. {
  24447. fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>',
  24448. req: {
  24449. nodeId: { type: 'list' },
  24450. metric: {
  24451. type: 'list',
  24452. options: [
  24453. '_all',
  24454. 'breaker',
  24455. 'fs',
  24456. 'http',
  24457. 'indices',
  24458. 'jvm',
  24459. 'os',
  24460. 'process',
  24461. 'thread_pool',
  24462. 'transport',
  24463. 'discovery'
  24464. ]
  24465. }
  24466. }
  24467. },
  24468. {
  24469. fmt: '/_nodes/stats/<%=metric%>/<%=indexMetric%>',
  24470. req: {
  24471. metric: {
  24472. type: 'list',
  24473. options: [
  24474. '_all',
  24475. 'breaker',
  24476. 'fs',
  24477. 'http',
  24478. 'indices',
  24479. 'jvm',
  24480. 'os',
  24481. 'process',
  24482. 'thread_pool',
  24483. 'transport',
  24484. 'discovery'
  24485. ]
  24486. },
  24487. indexMetric: {
  24488. type: 'list',
  24489. options: [
  24490. '_all',
  24491. 'completion',
  24492. 'docs',
  24493. 'fielddata',
  24494. 'query_cache',
  24495. 'flush',
  24496. 'get',
  24497. 'indexing',
  24498. 'merge',
  24499. 'request_cache',
  24500. 'refresh',
  24501. 'search',
  24502. 'segments',
  24503. 'store',
  24504. 'warmer',
  24505. 'suggest'
  24506. ]
  24507. }
  24508. }
  24509. },
  24510. { fmt: '/_nodes/<%=nodeId%>/stats', req: { nodeId: { type: 'list' } } },
  24511. {
  24512. fmt: '/_nodes/stats/<%=metric%>',
  24513. req: {
  24514. metric: {
  24515. type: 'list',
  24516. options: [
  24517. '_all',
  24518. 'breaker',
  24519. 'fs',
  24520. 'http',
  24521. 'indices',
  24522. 'jvm',
  24523. 'os',
  24524. 'process',
  24525. 'thread_pool',
  24526. 'transport',
  24527. 'discovery'
  24528. ]
  24529. }
  24530. }
  24531. },
  24532. { fmt: '/_nodes/stats' }
  24533. ]
  24534. })),
  24535. (f.nodes.prototype.usage = d({
  24536. params: { timeout: { type: 'time' } },
  24537. urls: [
  24538. {
  24539. fmt: '/_nodes/<%=nodeId%>/usage/<%=metric%>',
  24540. req: {
  24541. nodeId: { type: 'list' },
  24542. metric: { type: 'list', options: ['_all', 'rest_actions'] }
  24543. }
  24544. },
  24545. { fmt: '/_nodes/<%=nodeId%>/usage', req: { nodeId: { type: 'list' } } },
  24546. {
  24547. fmt: '/_nodes/usage/<%=metric%>',
  24548. req: { metric: { type: 'list', options: ['_all', 'rest_actions'] } }
  24549. },
  24550. { fmt: '/_nodes/usage' }
  24551. ]
  24552. })),
  24553. (f.ping = d({ url: { fmt: '/' }, method: 'HEAD' })),
  24554. (f.putScript = d({
  24555. params: {
  24556. timeout: { type: 'time' },
  24557. masterTimeout: { type: 'time', name: 'master_timeout' },
  24558. context: { type: 'string' }
  24559. },
  24560. urls: [
  24561. {
  24562. fmt: '/_scripts/<%=id%>/<%=context%>',
  24563. req: { id: { type: 'string' }, context: { type: 'string' } }
  24564. },
  24565. { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
  24566. ],
  24567. needBody: !0,
  24568. method: 'PUT'
  24569. })),
  24570. (f.rankEval = d({
  24571. params: {
  24572. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  24573. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  24574. expandWildcards: {
  24575. type: 'enum',
  24576. default: 'open',
  24577. options: ['open', 'closed', 'none', 'all'],
  24578. name: 'expand_wildcards'
  24579. }
  24580. },
  24581. urls: [
  24582. { fmt: '/<%=index%>/_rank_eval', req: { index: { type: 'list' } } },
  24583. { fmt: '/_rank_eval' }
  24584. ],
  24585. needBody: !0,
  24586. method: 'POST'
  24587. })),
  24588. (f.reindex = d({
  24589. params: {
  24590. refresh: { type: 'boolean' },
  24591. timeout: { type: 'time', default: '1m' },
  24592. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  24593. waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
  24594. requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
  24595. scroll: { type: 'time', default: '5m' },
  24596. slices: { type: 'number', default: 1 },
  24597. maxDocs: { type: 'number', name: 'max_docs' }
  24598. },
  24599. url: { fmt: '/_reindex' },
  24600. needBody: !0,
  24601. method: 'POST'
  24602. })),
  24603. (f.reindexRethrottle = d({
  24604. params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
  24605. url: { fmt: '/_reindex/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
  24606. method: 'POST'
  24607. })),
  24608. (f.renderSearchTemplate = d({
  24609. urls: [
  24610. { fmt: '/_render/template/<%=id%>', req: { id: { type: 'string' } } },
  24611. { fmt: '/_render/template' }
  24612. ],
  24613. method: 'POST'
  24614. })),
  24615. (f.scriptsPainlessExecute = d({ url: { fmt: '/_scripts/painless/_execute' }, method: 'POST' })),
  24616. (f.scroll = d({
  24617. params: {
  24618. scroll: { type: 'time' },
  24619. scrollId: { type: 'string', name: 'scroll_id' },
  24620. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
  24621. },
  24622. url: { fmt: '/_search/scroll' },
  24623. paramAsBody: { param: 'scrollId', body: 'scroll_id' },
  24624. method: 'POST'
  24625. })),
  24626. (f.search = d({
  24627. params: {
  24628. analyzer: { type: 'string' },
  24629. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  24630. ccsMinimizeRoundtrips: {
  24631. type: 'boolean',
  24632. default: 'true',
  24633. name: 'ccs_minimize_roundtrips'
  24634. },
  24635. defaultOperator: {
  24636. type: 'enum',
  24637. default: 'OR',
  24638. options: ['AND', 'OR'],
  24639. name: 'default_operator'
  24640. },
  24641. df: { type: 'string' },
  24642. explain: { type: 'boolean' },
  24643. storedFields: { type: 'list', name: 'stored_fields' },
  24644. docvalueFields: { type: 'list', name: 'docvalue_fields' },
  24645. from: { type: 'number' },
  24646. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  24647. ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
  24648. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  24649. expandWildcards: {
  24650. type: 'enum',
  24651. default: 'open',
  24652. options: ['open', 'closed', 'none', 'all'],
  24653. name: 'expand_wildcards'
  24654. },
  24655. lenient: { type: 'boolean' },
  24656. preference: { type: 'string' },
  24657. q: { type: 'string' },
  24658. routing: { type: 'list' },
  24659. scroll: { type: 'time' },
  24660. searchType: {
  24661. type: 'enum',
  24662. options: ['query_then_fetch', 'dfs_query_then_fetch'],
  24663. name: 'search_type'
  24664. },
  24665. size: { type: 'number' },
  24666. sort: { type: 'list' },
  24667. _source: { type: 'list' },
  24668. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  24669. _sourceIncludes: { type: 'list', name: '_source_includes' },
  24670. terminateAfter: { type: 'number', name: 'terminate_after' },
  24671. stats: { type: 'list' },
  24672. suggestField: { type: 'string', name: 'suggest_field' },
  24673. suggestMode: {
  24674. type: 'enum',
  24675. default: 'missing',
  24676. options: ['missing', 'popular', 'always'],
  24677. name: 'suggest_mode'
  24678. },
  24679. suggestSize: { type: 'number', name: 'suggest_size' },
  24680. suggestText: { type: 'string', name: 'suggest_text' },
  24681. timeout: { type: 'time' },
  24682. trackScores: { type: 'boolean', name: 'track_scores' },
  24683. trackTotalHits: { type: 'boolean', name: 'track_total_hits' },
  24684. allowPartialSearchResults: {
  24685. type: 'boolean',
  24686. default: !0,
  24687. name: 'allow_partial_search_results'
  24688. },
  24689. typedKeys: { type: 'boolean', name: 'typed_keys' },
  24690. version: { type: 'boolean' },
  24691. seqNoPrimaryTerm: { type: 'boolean', name: 'seq_no_primary_term' },
  24692. requestCache: { type: 'boolean', name: 'request_cache' },
  24693. batchedReduceSize: { type: 'number', default: 512, name: 'batched_reduce_size' },
  24694. maxConcurrentShardRequests: {
  24695. type: 'number',
  24696. default: 5,
  24697. name: 'max_concurrent_shard_requests'
  24698. },
  24699. preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
  24700. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
  24701. },
  24702. urls: [{ fmt: '/<%=index%>/_search', req: { index: { type: 'list' } } }, { fmt: '/_search' }],
  24703. method: 'POST'
  24704. })),
  24705. (f.searchShards = d({
  24706. params: {
  24707. preference: { type: 'string' },
  24708. routing: { type: 'string' },
  24709. local: { type: 'boolean' },
  24710. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  24711. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  24712. expandWildcards: {
  24713. type: 'enum',
  24714. default: 'open',
  24715. options: ['open', 'closed', 'none', 'all'],
  24716. name: 'expand_wildcards'
  24717. }
  24718. },
  24719. urls: [
  24720. { fmt: '/<%=index%>/_search_shards', req: { index: { type: 'list' } } },
  24721. { fmt: '/_search_shards' }
  24722. ],
  24723. method: 'POST'
  24724. })),
  24725. (f.searchTemplate = d({
  24726. params: {
  24727. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  24728. ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
  24729. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  24730. expandWildcards: {
  24731. type: 'enum',
  24732. default: 'open',
  24733. options: ['open', 'closed', 'none', 'all'],
  24734. name: 'expand_wildcards'
  24735. },
  24736. preference: { type: 'string' },
  24737. routing: { type: 'list' },
  24738. scroll: { type: 'time' },
  24739. searchType: {
  24740. type: 'enum',
  24741. options: [
  24742. 'query_then_fetch',
  24743. 'query_and_fetch',
  24744. 'dfs_query_then_fetch',
  24745. 'dfs_query_and_fetch'
  24746. ],
  24747. name: 'search_type'
  24748. },
  24749. explain: { type: 'boolean' },
  24750. profile: { type: 'boolean' },
  24751. typedKeys: { type: 'boolean', name: 'typed_keys' },
  24752. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
  24753. ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
  24754. },
  24755. urls: [
  24756. { fmt: '/<%=index%>/_search/template', req: { index: { type: 'list' } } },
  24757. { fmt: '/_search/template' }
  24758. ],
  24759. needBody: !0,
  24760. method: 'POST'
  24761. })),
  24762. (f.snapshot = e()),
  24763. (f.snapshot.prototype.create = d({
  24764. params: {
  24765. masterTimeout: { type: 'time', name: 'master_timeout' },
  24766. waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
  24767. },
  24768. url: {
  24769. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
  24770. req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
  24771. },
  24772. method: 'POST'
  24773. })),
  24774. (f.snapshot.prototype.createRepository = d({
  24775. params: {
  24776. masterTimeout: { type: 'time', name: 'master_timeout' },
  24777. timeout: { type: 'time' },
  24778. verify: { type: 'boolean' }
  24779. },
  24780. url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'string' } } },
  24781. needBody: !0,
  24782. method: 'POST'
  24783. })),
  24784. (f.snapshot.prototype.delete = d({
  24785. params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
  24786. url: {
  24787. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
  24788. req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
  24789. },
  24790. method: 'DELETE'
  24791. })),
  24792. (f.snapshot.prototype.deleteRepository = d({
  24793. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  24794. url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
  24795. method: 'DELETE'
  24796. })),
  24797. (f.snapshot.prototype.get = d({
  24798. params: {
  24799. masterTimeout: { type: 'time', name: 'master_timeout' },
  24800. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  24801. verbose: { type: 'boolean' }
  24802. },
  24803. url: {
  24804. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
  24805. req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
  24806. }
  24807. })),
  24808. (f.snapshot.prototype.getRepository = d({
  24809. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, local: { type: 'boolean' } },
  24810. urls: [
  24811. { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
  24812. { fmt: '/_snapshot' }
  24813. ]
  24814. })),
  24815. (f.snapshot.prototype.restore = d({
  24816. params: {
  24817. masterTimeout: { type: 'time', name: 'master_timeout' },
  24818. waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
  24819. },
  24820. url: {
  24821. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_restore',
  24822. req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
  24823. },
  24824. method: 'POST'
  24825. })),
  24826. (f.snapshot.prototype.status = d({
  24827. params: {
  24828. masterTimeout: { type: 'time', name: 'master_timeout' },
  24829. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' }
  24830. },
  24831. urls: [
  24832. {
  24833. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_status',
  24834. req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
  24835. },
  24836. { fmt: '/_snapshot/<%=repository%>/_status', req: { repository: { type: 'string' } } },
  24837. { fmt: '/_snapshot/_status' }
  24838. ]
  24839. })),
  24840. (f.snapshot.prototype.verifyRepository = d({
  24841. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  24842. url: { fmt: '/_snapshot/<%=repository%>/_verify', req: { repository: { type: 'string' } } },
  24843. method: 'POST'
  24844. })),
  24845. (f.tasks = e()),
  24846. (f.tasks.prototype.cancel = d({
  24847. params: {
  24848. nodes: { type: 'list' },
  24849. actions: { type: 'list' },
  24850. parentTaskId: { type: 'string', name: 'parent_task_id' }
  24851. },
  24852. urls: [
  24853. { fmt: '/_tasks/<%=taskId%>/_cancel', req: { taskId: { type: 'string' } } },
  24854. { fmt: '/_tasks/_cancel' }
  24855. ],
  24856. method: 'POST'
  24857. })),
  24858. (f.tasks.prototype.get = d({
  24859. params: {
  24860. waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
  24861. timeout: { type: 'time' }
  24862. },
  24863. url: { fmt: '/_tasks/<%=taskId%>', req: { taskId: { type: 'string' } } }
  24864. })),
  24865. (f.tasks.prototype.list = d({
  24866. params: {
  24867. nodes: { type: 'list' },
  24868. actions: { type: 'list' },
  24869. detailed: { type: 'boolean' },
  24870. parentTaskId: { type: 'string', name: 'parent_task_id' },
  24871. waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
  24872. groupBy: {
  24873. type: 'enum',
  24874. default: 'nodes',
  24875. options: ['nodes', 'parents', 'none'],
  24876. name: 'group_by'
  24877. },
  24878. timeout: { type: 'time' }
  24879. },
  24880. url: { fmt: '/_tasks' }
  24881. })),
  24882. (f.termvectors = d({
  24883. params: {
  24884. termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
  24885. fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
  24886. fields: { type: 'list', required: !1 },
  24887. offsets: { type: 'boolean', default: !0, required: !1 },
  24888. positions: { type: 'boolean', default: !0, required: !1 },
  24889. payloads: { type: 'boolean', default: !0, required: !1 },
  24890. preference: { type: 'string', required: !1 },
  24891. routing: { type: 'string', required: !1 },
  24892. realtime: { type: 'boolean', required: !1 },
  24893. version: { type: 'number' },
  24894. versionType: {
  24895. type: 'enum',
  24896. options: ['internal', 'external', 'external_gte', 'force'],
  24897. name: 'version_type'
  24898. }
  24899. },
  24900. urls: [
  24901. {
  24902. fmt: '/<%=index%>/_termvectors/<%=id%>',
  24903. req: { index: { type: 'string' }, id: { type: 'string' } }
  24904. },
  24905. { fmt: '/<%=index%>/_termvectors', req: { index: { type: 'string' } } }
  24906. ],
  24907. method: 'POST'
  24908. })),
  24909. (f.update = d({
  24910. params: {
  24911. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  24912. _source: { type: 'list' },
  24913. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  24914. _sourceIncludes: { type: 'list', name: '_source_includes' },
  24915. lang: { type: 'string' },
  24916. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  24917. retryOnConflict: { type: 'number', name: 'retry_on_conflict' },
  24918. routing: { type: 'string' },
  24919. timeout: { type: 'time' },
  24920. ifSeqNo: { type: 'number', name: 'if_seq_no' },
  24921. ifPrimaryTerm: { type: 'number', name: 'if_primary_term' }
  24922. },
  24923. url: {
  24924. fmt: '/<%=index%>/_update/<%=id%>',
  24925. req: { index: { type: 'string' }, id: { type: 'string' } }
  24926. },
  24927. needBody: !0,
  24928. method: 'POST'
  24929. })),
  24930. (f.updateByQuery = d({
  24931. params: {
  24932. analyzer: { type: 'string' },
  24933. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  24934. defaultOperator: {
  24935. type: 'enum',
  24936. default: 'OR',
  24937. options: ['AND', 'OR'],
  24938. name: 'default_operator'
  24939. },
  24940. df: { type: 'string' },
  24941. from: { type: 'number' },
  24942. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  24943. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  24944. conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
  24945. expandWildcards: {
  24946. type: 'enum',
  24947. default: 'open',
  24948. options: ['open', 'closed', 'none', 'all'],
  24949. name: 'expand_wildcards'
  24950. },
  24951. lenient: { type: 'boolean' },
  24952. pipeline: { type: 'string' },
  24953. preference: { type: 'string' },
  24954. q: { type: 'string' },
  24955. routing: { type: 'list' },
  24956. scroll: { type: 'time' },
  24957. searchType: {
  24958. type: 'enum',
  24959. options: ['query_then_fetch', 'dfs_query_then_fetch'],
  24960. name: 'search_type'
  24961. },
  24962. searchTimeout: { type: 'time', name: 'search_timeout' },
  24963. size: { type: 'number' },
  24964. maxDocs: { type: 'number', name: 'max_docs' },
  24965. sort: { type: 'list' },
  24966. _source: { type: 'list' },
  24967. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  24968. _sourceIncludes: { type: 'list', name: '_source_includes' },
  24969. terminateAfter: { type: 'number', name: 'terminate_after' },
  24970. stats: { type: 'list' },
  24971. version: { type: 'boolean' },
  24972. versionType: { type: 'boolean', name: 'version_type' },
  24973. requestCache: { type: 'boolean', name: 'request_cache' },
  24974. refresh: { type: 'boolean' },
  24975. timeout: { type: 'time', default: '1m' },
  24976. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  24977. scrollSize: { type: 'number', name: 'scroll_size' },
  24978. waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
  24979. requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
  24980. slices: { type: 'number', default: 1 }
  24981. },
  24982. url: { fmt: '/<%=index%>/_update_by_query', req: { index: { type: 'list' } } },
  24983. method: 'POST'
  24984. })),
  24985. (f.updateByQueryRethrottle = d({
  24986. params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
  24987. url: { fmt: '/_update_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
  24988. method: 'POST'
  24989. }));
  24990. },
  24991. function(a, b, c) {
  24992. var d = c(1).makeFactoryWithModifier(function(a) {
  24993. return c(0).merge(a, { params: { filterPath: { type: 'list', name: 'filter_path' } } });
  24994. }),
  24995. e = c(1).namespaceFactory,
  24996. f = (a.exports = {});
  24997. (f._namespaces = ['cat', 'cluster', 'indices', 'ingest', 'nodes', 'snapshot', 'tasks']),
  24998. (f.bulk = d({
  24999. params: {
  25000. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  25001. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  25002. routing: { type: 'string' },
  25003. timeout: { type: 'time' },
  25004. type: { type: 'string' },
  25005. _source: { type: 'list' },
  25006. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  25007. _sourceIncludes: { type: 'list', name: '_source_includes' },
  25008. pipeline: { type: 'string' }
  25009. },
  25010. urls: [
  25011. {
  25012. fmt: '/<%=index%>/<%=type%>/_bulk',
  25013. req: { index: { type: 'string' }, type: { type: 'string' } }
  25014. },
  25015. { fmt: '/<%=index%>/_bulk', req: { index: { type: 'string' } } },
  25016. { fmt: '/_bulk' }
  25017. ],
  25018. needBody: !0,
  25019. bulkBody: !0,
  25020. method: 'POST'
  25021. })),
  25022. (f.cat = e()),
  25023. (f.cat.prototype.aliases = d({
  25024. params: {
  25025. format: { type: 'string' },
  25026. local: { type: 'boolean' },
  25027. masterTimeout: { type: 'time', name: 'master_timeout' },
  25028. h: { type: 'list' },
  25029. help: { type: 'boolean', default: !1 },
  25030. s: { type: 'list' },
  25031. v: { type: 'boolean', default: !1 }
  25032. },
  25033. urls: [
  25034. { fmt: '/_cat/aliases/<%=name%>', req: { name: { type: 'list' } } },
  25035. { fmt: '/_cat/aliases' }
  25036. ]
  25037. })),
  25038. (f.cat.prototype.allocation = d({
  25039. params: {
  25040. format: { type: 'string' },
  25041. bytes: {
  25042. type: 'enum',
  25043. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  25044. },
  25045. local: { type: 'boolean' },
  25046. masterTimeout: { type: 'time', name: 'master_timeout' },
  25047. h: { type: 'list' },
  25048. help: { type: 'boolean', default: !1 },
  25049. s: { type: 'list' },
  25050. v: { type: 'boolean', default: !1 }
  25051. },
  25052. urls: [
  25053. { fmt: '/_cat/allocation/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
  25054. { fmt: '/_cat/allocation' }
  25055. ]
  25056. })),
  25057. (f.cat.prototype.count = d({
  25058. params: {
  25059. format: { type: 'string' },
  25060. local: { type: 'boolean' },
  25061. masterTimeout: { type: 'time', name: 'master_timeout' },
  25062. h: { type: 'list' },
  25063. help: { type: 'boolean', default: !1 },
  25064. s: { type: 'list' },
  25065. v: { type: 'boolean', default: !1 }
  25066. },
  25067. urls: [
  25068. { fmt: '/_cat/count/<%=index%>', req: { index: { type: 'list' } } },
  25069. { fmt: '/_cat/count' }
  25070. ]
  25071. })),
  25072. (f.cat.prototype.fielddata = d({
  25073. params: {
  25074. format: { type: 'string' },
  25075. bytes: {
  25076. type: 'enum',
  25077. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  25078. },
  25079. local: { type: 'boolean' },
  25080. masterTimeout: { type: 'time', name: 'master_timeout' },
  25081. h: { type: 'list' },
  25082. help: { type: 'boolean', default: !1 },
  25083. s: { type: 'list' },
  25084. v: { type: 'boolean', default: !1 },
  25085. fields: { type: 'list' }
  25086. },
  25087. urls: [
  25088. { fmt: '/_cat/fielddata/<%=fields%>', req: { fields: { type: 'list' } } },
  25089. { fmt: '/_cat/fielddata' }
  25090. ]
  25091. })),
  25092. (f.cat.prototype.health = d({
  25093. params: {
  25094. format: { type: 'string' },
  25095. local: { type: 'boolean' },
  25096. masterTimeout: { type: 'time', name: 'master_timeout' },
  25097. h: { type: 'list' },
  25098. help: { type: 'boolean', default: !1 },
  25099. s: { type: 'list' },
  25100. ts: { type: 'boolean', default: !0 },
  25101. v: { type: 'boolean', default: !1 }
  25102. },
  25103. url: { fmt: '/_cat/health' }
  25104. })),
  25105. (f.cat.prototype.help = d({
  25106. params: { help: { type: 'boolean', default: !1 }, s: { type: 'list' } },
  25107. url: { fmt: '/_cat' }
  25108. })),
  25109. (f.cat.prototype.indices = d({
  25110. params: {
  25111. format: { type: 'string' },
  25112. bytes: { type: 'enum', options: ['b', 'k', 'm', 'g'] },
  25113. local: { type: 'boolean' },
  25114. masterTimeout: { type: 'time', name: 'master_timeout' },
  25115. h: { type: 'list' },
  25116. health: { type: 'enum', default: null, options: ['green', 'yellow', 'red'] },
  25117. help: { type: 'boolean', default: !1 },
  25118. pri: { type: 'boolean', default: !1 },
  25119. s: { type: 'list' },
  25120. v: { type: 'boolean', default: !1 },
  25121. includeUnloadedSegments: { type: 'boolean', default: !1, name: 'include_unloaded_segments' }
  25122. },
  25123. urls: [
  25124. { fmt: '/_cat/indices/<%=index%>', req: { index: { type: 'list' } } },
  25125. { fmt: '/_cat/indices' }
  25126. ]
  25127. })),
  25128. (f.cat.prototype.master = d({
  25129. params: {
  25130. format: { type: 'string' },
  25131. local: { type: 'boolean' },
  25132. masterTimeout: { type: 'time', name: 'master_timeout' },
  25133. h: { type: 'list' },
  25134. help: { type: 'boolean', default: !1 },
  25135. s: { type: 'list' },
  25136. v: { type: 'boolean', default: !1 }
  25137. },
  25138. url: { fmt: '/_cat/master' }
  25139. })),
  25140. (f.cat.prototype.nodeattrs = d({
  25141. params: {
  25142. format: { type: 'string' },
  25143. local: { type: 'boolean' },
  25144. masterTimeout: { type: 'time', name: 'master_timeout' },
  25145. h: { type: 'list' },
  25146. help: { type: 'boolean', default: !1 },
  25147. s: { type: 'list' },
  25148. v: { type: 'boolean', default: !1 }
  25149. },
  25150. url: { fmt: '/_cat/nodeattrs' }
  25151. })),
  25152. (f.cat.prototype.nodes = d({
  25153. params: {
  25154. format: { type: 'string' },
  25155. fullId: { type: 'boolean', name: 'full_id' },
  25156. local: { type: 'boolean' },
  25157. masterTimeout: { type: 'time', name: 'master_timeout' },
  25158. h: { type: 'list' },
  25159. help: { type: 'boolean', default: !1 },
  25160. s: { type: 'list' },
  25161. v: { type: 'boolean', default: !1 }
  25162. },
  25163. url: { fmt: '/_cat/nodes' }
  25164. })),
  25165. (f.cat.prototype.pendingTasks = d({
  25166. params: {
  25167. format: { type: 'string' },
  25168. local: { type: 'boolean' },
  25169. masterTimeout: { type: 'time', name: 'master_timeout' },
  25170. h: { type: 'list' },
  25171. help: { type: 'boolean', default: !1 },
  25172. s: { type: 'list' },
  25173. v: { type: 'boolean', default: !1 }
  25174. },
  25175. url: { fmt: '/_cat/pending_tasks' }
  25176. })),
  25177. (f.cat.prototype.plugins = d({
  25178. params: {
  25179. format: { type: 'string' },
  25180. local: { type: 'boolean' },
  25181. masterTimeout: { type: 'time', name: 'master_timeout' },
  25182. h: { type: 'list' },
  25183. help: { type: 'boolean', default: !1 },
  25184. s: { type: 'list' },
  25185. v: { type: 'boolean', default: !1 }
  25186. },
  25187. url: { fmt: '/_cat/plugins' }
  25188. })),
  25189. (f.cat.prototype.recovery = d({
  25190. params: {
  25191. format: { type: 'string' },
  25192. bytes: {
  25193. type: 'enum',
  25194. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  25195. },
  25196. masterTimeout: { type: 'time', name: 'master_timeout' },
  25197. h: { type: 'list' },
  25198. help: { type: 'boolean', default: !1 },
  25199. s: { type: 'list' },
  25200. v: { type: 'boolean', default: !1 }
  25201. },
  25202. urls: [
  25203. { fmt: '/_cat/recovery/<%=index%>', req: { index: { type: 'list' } } },
  25204. { fmt: '/_cat/recovery' }
  25205. ]
  25206. })),
  25207. (f.cat.prototype.repositories = d({
  25208. params: {
  25209. format: { type: 'string' },
  25210. local: { type: 'boolean', default: !1 },
  25211. masterTimeout: { type: 'time', name: 'master_timeout' },
  25212. h: { type: 'list' },
  25213. help: { type: 'boolean', default: !1 },
  25214. s: { type: 'list' },
  25215. v: { type: 'boolean', default: !1 }
  25216. },
  25217. url: { fmt: '/_cat/repositories' }
  25218. })),
  25219. (f.cat.prototype.segments = d({
  25220. params: {
  25221. format: { type: 'string' },
  25222. bytes: {
  25223. type: 'enum',
  25224. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  25225. },
  25226. h: { type: 'list' },
  25227. help: { type: 'boolean', default: !1 },
  25228. s: { type: 'list' },
  25229. v: { type: 'boolean', default: !1 }
  25230. },
  25231. urls: [
  25232. { fmt: '/_cat/segments/<%=index%>', req: { index: { type: 'list' } } },
  25233. { fmt: '/_cat/segments' }
  25234. ]
  25235. })),
  25236. (f.cat.prototype.shards = d({
  25237. params: {
  25238. format: { type: 'string' },
  25239. bytes: {
  25240. type: 'enum',
  25241. options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
  25242. },
  25243. local: { type: 'boolean' },
  25244. masterTimeout: { type: 'time', name: 'master_timeout' },
  25245. h: { type: 'list' },
  25246. help: { type: 'boolean', default: !1 },
  25247. s: { type: 'list' },
  25248. v: { type: 'boolean', default: !1 }
  25249. },
  25250. urls: [
  25251. { fmt: '/_cat/shards/<%=index%>', req: { index: { type: 'list' } } },
  25252. { fmt: '/_cat/shards' }
  25253. ]
  25254. })),
  25255. (f.cat.prototype.snapshots = d({
  25256. params: {
  25257. format: { type: 'string' },
  25258. ignoreUnavailable: { type: 'boolean', default: !1, name: 'ignore_unavailable' },
  25259. masterTimeout: { type: 'time', name: 'master_timeout' },
  25260. h: { type: 'list' },
  25261. help: { type: 'boolean', default: !1 },
  25262. s: { type: 'list' },
  25263. v: { type: 'boolean', default: !1 }
  25264. },
  25265. urls: [
  25266. { fmt: '/_cat/snapshots/<%=repository%>', req: { repository: { type: 'list' } } },
  25267. { fmt: '/_cat/snapshots' }
  25268. ]
  25269. })),
  25270. (f.cat.prototype.tasks = d({
  25271. params: {
  25272. format: { type: 'string' },
  25273. nodeId: { type: 'list', name: 'node_id' },
  25274. actions: { type: 'list' },
  25275. detailed: { type: 'boolean' },
  25276. parentTask: { type: 'number', name: 'parent_task' },
  25277. h: { type: 'list' },
  25278. help: { type: 'boolean', default: !1 },
  25279. s: { type: 'list' },
  25280. v: { type: 'boolean', default: !1 }
  25281. },
  25282. url: { fmt: '/_cat/tasks' }
  25283. })),
  25284. (f.cat.prototype.templates = d({
  25285. params: {
  25286. format: { type: 'string' },
  25287. local: { type: 'boolean' },
  25288. masterTimeout: { type: 'time', name: 'master_timeout' },
  25289. h: { type: 'list' },
  25290. help: { type: 'boolean', default: !1 },
  25291. s: { type: 'list' },
  25292. v: { type: 'boolean', default: !1 }
  25293. },
  25294. urls: [
  25295. { fmt: '/_cat/templates/<%=name%>', req: { name: { type: 'string' } } },
  25296. { fmt: '/_cat/templates' }
  25297. ]
  25298. })),
  25299. (f.cat.prototype.threadPool = d({
  25300. params: {
  25301. format: { type: 'string' },
  25302. size: { type: 'enum', options: ['', 'k', 'm', 'g', 't', 'p'] },
  25303. local: { type: 'boolean' },
  25304. masterTimeout: { type: 'time', name: 'master_timeout' },
  25305. h: { type: 'list' },
  25306. help: { type: 'boolean', default: !1 },
  25307. s: { type: 'list' },
  25308. v: { type: 'boolean', default: !1 }
  25309. },
  25310. urls: [
  25311. {
  25312. fmt: '/_cat/thread_pool/<%=threadPoolPatterns%>',
  25313. req: { threadPoolPatterns: { type: 'list' } }
  25314. },
  25315. { fmt: '/_cat/thread_pool' }
  25316. ]
  25317. })),
  25318. (f.clearScroll = d({
  25319. url: { fmt: '/_search/scroll' },
  25320. paramAsBody: { param: 'scrollId', body: 'scroll_id' },
  25321. method: 'DELETE'
  25322. })),
  25323. (f.cluster = e()),
  25324. (f.cluster.prototype.allocationExplain = d({
  25325. params: {
  25326. includeYesDecisions: { type: 'boolean', name: 'include_yes_decisions' },
  25327. includeDiskInfo: { type: 'boolean', name: 'include_disk_info' }
  25328. },
  25329. url: { fmt: '/_cluster/allocation/explain' },
  25330. method: 'POST'
  25331. })),
  25332. (f.cluster.prototype.getSettings = d({
  25333. params: {
  25334. flatSettings: { type: 'boolean', name: 'flat_settings' },
  25335. masterTimeout: { type: 'time', name: 'master_timeout' },
  25336. timeout: { type: 'time' },
  25337. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
  25338. },
  25339. url: { fmt: '/_cluster/settings' }
  25340. })),
  25341. (f.cluster.prototype.health = d({
  25342. params: {
  25343. expandWildcards: {
  25344. type: 'enum',
  25345. default: 'all',
  25346. options: ['open', 'closed', 'none', 'all'],
  25347. name: 'expand_wildcards'
  25348. },
  25349. level: { type: 'enum', default: 'cluster', options: ['cluster', 'indices', 'shards'] },
  25350. local: { type: 'boolean' },
  25351. masterTimeout: { type: 'time', name: 'master_timeout' },
  25352. timeout: { type: 'time' },
  25353. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  25354. waitForNodes: { type: 'string', name: 'wait_for_nodes' },
  25355. waitForEvents: {
  25356. type: 'enum',
  25357. options: ['immediate', 'urgent', 'high', 'normal', 'low', 'languid'],
  25358. name: 'wait_for_events'
  25359. },
  25360. waitForNoRelocatingShards: { type: 'boolean', name: 'wait_for_no_relocating_shards' },
  25361. waitForNoInitializingShards: { type: 'boolean', name: 'wait_for_no_initializing_shards' },
  25362. waitForStatus: {
  25363. type: 'enum',
  25364. default: null,
  25365. options: ['green', 'yellow', 'red'],
  25366. name: 'wait_for_status'
  25367. }
  25368. },
  25369. urls: [
  25370. { fmt: '/_cluster/health/<%=index%>', req: { index: { type: 'list' } } },
  25371. { fmt: '/_cluster/health' }
  25372. ]
  25373. })),
  25374. (f.cluster.prototype.pendingTasks = d({
  25375. params: { local: { type: 'boolean' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  25376. url: { fmt: '/_cluster/pending_tasks' }
  25377. })),
  25378. (f.cluster.prototype.putSettings = d({
  25379. params: {
  25380. flatSettings: { type: 'boolean', name: 'flat_settings' },
  25381. masterTimeout: { type: 'time', name: 'master_timeout' },
  25382. timeout: { type: 'time' }
  25383. },
  25384. url: { fmt: '/_cluster/settings' },
  25385. needBody: !0,
  25386. method: 'PUT'
  25387. })),
  25388. (f.cluster.prototype.remoteInfo = d({ url: { fmt: '/_remote/info' } })),
  25389. (f.cluster.prototype.reroute = d({
  25390. params: {
  25391. dryRun: { type: 'boolean', name: 'dry_run' },
  25392. explain: { type: 'boolean' },
  25393. retryFailed: { type: 'boolean', name: 'retry_failed' },
  25394. metric: {
  25395. type: 'list',
  25396. options: [
  25397. '_all',
  25398. 'blocks',
  25399. 'metadata',
  25400. 'nodes',
  25401. 'routing_table',
  25402. 'master_node',
  25403. 'version'
  25404. ]
  25405. },
  25406. masterTimeout: { type: 'time', name: 'master_timeout' },
  25407. timeout: { type: 'time' }
  25408. },
  25409. url: { fmt: '/_cluster/reroute' },
  25410. method: 'POST'
  25411. })),
  25412. (f.cluster.prototype.state = d({
  25413. params: {
  25414. local: { type: 'boolean' },
  25415. masterTimeout: { type: 'time', name: 'master_timeout' },
  25416. flatSettings: { type: 'boolean', name: 'flat_settings' },
  25417. waitForMetadataVersion: { type: 'number', name: 'wait_for_metadata_version' },
  25418. waitForTimeout: { type: 'time', name: 'wait_for_timeout' },
  25419. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  25420. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  25421. expandWildcards: {
  25422. type: 'enum',
  25423. default: 'open',
  25424. options: ['open', 'closed', 'none', 'all'],
  25425. name: 'expand_wildcards'
  25426. }
  25427. },
  25428. urls: [
  25429. {
  25430. fmt: '/_cluster/state/<%=metric%>/<%=index%>',
  25431. req: {
  25432. metric: {
  25433. type: 'list',
  25434. options: [
  25435. '_all',
  25436. 'blocks',
  25437. 'metadata',
  25438. 'nodes',
  25439. 'routing_table',
  25440. 'routing_nodes',
  25441. 'master_node',
  25442. 'version'
  25443. ]
  25444. },
  25445. index: { type: 'list' }
  25446. }
  25447. },
  25448. {
  25449. fmt: '/_cluster/state/<%=metric%>',
  25450. req: {
  25451. metric: {
  25452. type: 'list',
  25453. options: [
  25454. '_all',
  25455. 'blocks',
  25456. 'metadata',
  25457. 'nodes',
  25458. 'routing_table',
  25459. 'routing_nodes',
  25460. 'master_node',
  25461. 'version'
  25462. ]
  25463. }
  25464. }
  25465. },
  25466. { fmt: '/_cluster/state' }
  25467. ]
  25468. })),
  25469. (f.cluster.prototype.stats = d({
  25470. params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
  25471. urls: [
  25472. { fmt: '/_cluster/stats/nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
  25473. { fmt: '/_cluster/stats' }
  25474. ]
  25475. })),
  25476. (f.count = d({
  25477. params: {
  25478. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  25479. ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
  25480. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  25481. expandWildcards: {
  25482. type: 'enum',
  25483. default: 'open',
  25484. options: ['open', 'closed', 'none', 'all'],
  25485. name: 'expand_wildcards'
  25486. },
  25487. minScore: { type: 'number', name: 'min_score' },
  25488. preference: { type: 'string' },
  25489. routing: { type: 'list' },
  25490. q: { type: 'string' },
  25491. analyzer: { type: 'string' },
  25492. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  25493. defaultOperator: {
  25494. type: 'enum',
  25495. default: 'OR',
  25496. options: ['AND', 'OR'],
  25497. name: 'default_operator'
  25498. },
  25499. df: { type: 'string' },
  25500. lenient: { type: 'boolean' },
  25501. terminateAfter: { type: 'number', name: 'terminate_after' }
  25502. },
  25503. urls: [{ fmt: '/<%=index%>/_count', req: { index: { type: 'list' } } }, { fmt: '/_count' }],
  25504. method: 'POST'
  25505. })),
  25506. (f.create = d({
  25507. params: {
  25508. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  25509. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  25510. routing: { type: 'string' },
  25511. timeout: { type: 'time' },
  25512. version: { type: 'number' },
  25513. versionType: {
  25514. type: 'enum',
  25515. options: ['internal', 'external', 'external_gte', 'force'],
  25516. name: 'version_type'
  25517. },
  25518. pipeline: { type: 'string' }
  25519. },
  25520. url: {
  25521. fmt: '/<%=index%>/_create/<%=id%>',
  25522. req: { index: { type: 'string' }, id: { type: 'string' } }
  25523. },
  25524. needBody: !0,
  25525. method: 'POST'
  25526. })),
  25527. (f.delete = d({
  25528. params: {
  25529. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  25530. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  25531. routing: { type: 'string' },
  25532. timeout: { type: 'time' },
  25533. ifSeqNo: { type: 'number', name: 'if_seq_no' },
  25534. ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
  25535. version: { type: 'number' },
  25536. versionType: {
  25537. type: 'enum',
  25538. options: ['internal', 'external', 'external_gte', 'force'],
  25539. name: 'version_type'
  25540. }
  25541. },
  25542. url: {
  25543. fmt: '/<%=index%>/_doc/<%=id%>',
  25544. req: { index: { type: 'string' }, id: { type: 'string' } }
  25545. },
  25546. method: 'DELETE'
  25547. })),
  25548. (f.deleteByQuery = d({
  25549. params: {
  25550. analyzer: { type: 'string' },
  25551. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  25552. defaultOperator: {
  25553. type: 'enum',
  25554. default: 'OR',
  25555. options: ['AND', 'OR'],
  25556. name: 'default_operator'
  25557. },
  25558. df: { type: 'string' },
  25559. from: { type: 'number' },
  25560. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  25561. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  25562. conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
  25563. expandWildcards: {
  25564. type: 'enum',
  25565. default: 'open',
  25566. options: ['open', 'closed', 'none', 'all'],
  25567. name: 'expand_wildcards'
  25568. },
  25569. lenient: { type: 'boolean' },
  25570. preference: { type: 'string' },
  25571. q: { type: 'string' },
  25572. routing: { type: 'list' },
  25573. scroll: { type: 'time' },
  25574. searchType: {
  25575. type: 'enum',
  25576. options: ['query_then_fetch', 'dfs_query_then_fetch'],
  25577. name: 'search_type'
  25578. },
  25579. searchTimeout: { type: 'time', name: 'search_timeout' },
  25580. maxDocs: { type: 'number', name: 'max_docs' },
  25581. sort: { type: 'list' },
  25582. _source: { type: 'list' },
  25583. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  25584. _sourceIncludes: { type: 'list', name: '_source_includes' },
  25585. terminateAfter: { type: 'number', name: 'terminate_after' },
  25586. stats: { type: 'list' },
  25587. version: { type: 'boolean' },
  25588. requestCache: { type: 'boolean', name: 'request_cache' },
  25589. refresh: { type: 'boolean' },
  25590. timeout: { type: 'time', default: '1m' },
  25591. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  25592. scrollSize: { type: 'number', name: 'scroll_size' },
  25593. waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
  25594. requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
  25595. slices: { type: 'number', default: 1 }
  25596. },
  25597. url: { fmt: '/<%=index%>/_delete_by_query', req: { index: { type: 'list' } } },
  25598. needBody: !0,
  25599. method: 'POST'
  25600. })),
  25601. (f.deleteByQueryRethrottle = d({
  25602. params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
  25603. url: { fmt: '/_delete_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
  25604. method: 'POST'
  25605. })),
  25606. (f.deleteScript = d({
  25607. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  25608. url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } },
  25609. method: 'DELETE'
  25610. })),
  25611. (f.exists = d({
  25612. params: {
  25613. storedFields: { type: 'list', name: 'stored_fields' },
  25614. preference: { type: 'string' },
  25615. realtime: { type: 'boolean' },
  25616. refresh: { type: 'boolean' },
  25617. routing: { type: 'string' },
  25618. _source: { type: 'list' },
  25619. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  25620. _sourceIncludes: { type: 'list', name: '_source_includes' },
  25621. version: { type: 'number' },
  25622. versionType: {
  25623. type: 'enum',
  25624. options: ['internal', 'external', 'external_gte', 'force'],
  25625. name: 'version_type'
  25626. }
  25627. },
  25628. url: {
  25629. fmt: '/<%=index%>/_doc/<%=id%>',
  25630. req: { index: { type: 'string' }, id: { type: 'string' } }
  25631. },
  25632. method: 'HEAD'
  25633. })),
  25634. (f.existsSource = d({
  25635. params: {
  25636. preference: { type: 'string' },
  25637. realtime: { type: 'boolean' },
  25638. refresh: { type: 'boolean' },
  25639. routing: { type: 'string' },
  25640. _source: { type: 'list' },
  25641. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  25642. _sourceIncludes: { type: 'list', name: '_source_includes' },
  25643. version: { type: 'number' },
  25644. versionType: {
  25645. type: 'enum',
  25646. options: ['internal', 'external', 'external_gte', 'force'],
  25647. name: 'version_type'
  25648. }
  25649. },
  25650. url: {
  25651. fmt: '/<%=index%>/_source/<%=id%>',
  25652. req: { index: { type: 'string' }, id: { type: 'string' } }
  25653. },
  25654. method: 'HEAD'
  25655. })),
  25656. (f.explain = d({
  25657. params: {
  25658. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  25659. analyzer: { type: 'string' },
  25660. defaultOperator: {
  25661. type: 'enum',
  25662. default: 'OR',
  25663. options: ['AND', 'OR'],
  25664. name: 'default_operator'
  25665. },
  25666. df: { type: 'string' },
  25667. storedFields: { type: 'list', name: 'stored_fields' },
  25668. lenient: { type: 'boolean' },
  25669. preference: { type: 'string' },
  25670. q: { type: 'string' },
  25671. routing: { type: 'string' },
  25672. _source: { type: 'list' },
  25673. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  25674. _sourceIncludes: { type: 'list', name: '_source_includes' }
  25675. },
  25676. url: {
  25677. fmt: '/<%=index%>/_explain/<%=id%>',
  25678. req: { index: { type: 'string' }, id: { type: 'string' } }
  25679. },
  25680. method: 'POST'
  25681. })),
  25682. (f.fieldCaps = d({
  25683. params: {
  25684. fields: { type: 'list' },
  25685. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  25686. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  25687. expandWildcards: {
  25688. type: 'enum',
  25689. default: 'open',
  25690. options: ['open', 'closed', 'none', 'all'],
  25691. name: 'expand_wildcards'
  25692. },
  25693. includeUnmapped: { type: 'boolean', default: !1, name: 'include_unmapped' }
  25694. },
  25695. urls: [
  25696. { fmt: '/<%=index%>/_field_caps', req: { index: { type: 'list' } } },
  25697. { fmt: '/_field_caps' }
  25698. ],
  25699. method: 'POST'
  25700. })),
  25701. (f.get = d({
  25702. params: {
  25703. storedFields: { type: 'list', name: 'stored_fields' },
  25704. preference: { type: 'string' },
  25705. realtime: { type: 'boolean' },
  25706. refresh: { type: 'boolean' },
  25707. routing: { type: 'string' },
  25708. _source: { type: 'list' },
  25709. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  25710. _sourceIncludes: { type: 'list', name: '_source_includes' },
  25711. version: { type: 'number' },
  25712. versionType: {
  25713. type: 'enum',
  25714. options: ['internal', 'external', 'external_gte', 'force'],
  25715. name: 'version_type'
  25716. }
  25717. },
  25718. url: {
  25719. fmt: '/<%=index%>/_doc/<%=id%>',
  25720. req: { index: { type: 'string' }, id: { type: 'string' } }
  25721. }
  25722. })),
  25723. (f.getScript = d({
  25724. params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
  25725. url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
  25726. })),
  25727. (f.getSource = d({
  25728. params: {
  25729. preference: { type: 'string' },
  25730. realtime: { type: 'boolean' },
  25731. refresh: { type: 'boolean' },
  25732. routing: { type: 'string' },
  25733. _source: { type: 'list' },
  25734. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  25735. _sourceIncludes: { type: 'list', name: '_source_includes' },
  25736. version: { type: 'number' },
  25737. versionType: {
  25738. type: 'enum',
  25739. options: ['internal', 'external', 'external_gte', 'force'],
  25740. name: 'version_type'
  25741. }
  25742. },
  25743. url: {
  25744. fmt: '/<%=index%>/_source/<%=id%>',
  25745. req: { index: { type: 'string' }, id: { type: 'string' } }
  25746. }
  25747. })),
  25748. (f.index = d({
  25749. params: {
  25750. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  25751. opType: { type: 'enum', default: 'index', options: ['index', 'create'], name: 'op_type' },
  25752. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  25753. routing: { type: 'string' },
  25754. timeout: { type: 'time' },
  25755. version: { type: 'number' },
  25756. versionType: {
  25757. type: 'enum',
  25758. options: ['internal', 'external', 'external_gte', 'force'],
  25759. name: 'version_type'
  25760. },
  25761. ifSeqNo: { type: 'number', name: 'if_seq_no' },
  25762. ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
  25763. pipeline: { type: 'string' }
  25764. },
  25765. urls: [
  25766. {
  25767. fmt: '/<%=index%>/_doc/<%=id%>',
  25768. req: { index: { type: 'string' }, id: { type: 'string' } }
  25769. },
  25770. { fmt: '/<%=index%>/_doc', req: { index: { type: 'string' } } }
  25771. ],
  25772. needBody: !0,
  25773. method: 'POST'
  25774. })),
  25775. (f.indices = e()),
  25776. (f.indices.prototype.analyze = d({
  25777. params: { index: { type: 'string' } },
  25778. urls: [
  25779. {
  25780. fmt: '/<%=index%>/_analyze',
  25781. req: {
  25782. index: {
  25783. type: 'string'
  25784. }
  25785. }
  25786. },
  25787. { fmt: '/_analyze' }
  25788. ],
  25789. method: 'POST'
  25790. })),
  25791. (f.indices.prototype.clearCache = d({
  25792. params: {
  25793. fielddata: { type: 'boolean' },
  25794. fields: { type: 'list' },
  25795. query: { type: 'boolean' },
  25796. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  25797. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  25798. expandWildcards: {
  25799. type: 'enum',
  25800. default: 'open',
  25801. options: ['open', 'closed', 'none', 'all'],
  25802. name: 'expand_wildcards'
  25803. },
  25804. index: { type: 'list' },
  25805. request: { type: 'boolean' }
  25806. },
  25807. urls: [
  25808. { fmt: '/<%=index%>/_cache/clear', req: { index: { type: 'list' } } },
  25809. { fmt: '/_cache/clear' }
  25810. ],
  25811. method: 'POST'
  25812. })),
  25813. (f.indices.prototype.clone = d({
  25814. params: {
  25815. timeout: { type: 'time' },
  25816. masterTimeout: { type: 'time', name: 'master_timeout' },
  25817. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  25818. },
  25819. url: {
  25820. fmt: '/<%=index%>/_clone/<%=target%>',
  25821. req: { index: { type: 'string' }, target: { type: 'string' } }
  25822. },
  25823. method: 'POST'
  25824. })),
  25825. (f.indices.prototype.close = d({
  25826. params: {
  25827. timeout: { type: 'time' },
  25828. masterTimeout: { type: 'time', name: 'master_timeout' },
  25829. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  25830. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  25831. expandWildcards: {
  25832. type: 'enum',
  25833. default: 'open',
  25834. options: ['open', 'closed', 'none', 'all'],
  25835. name: 'expand_wildcards'
  25836. },
  25837. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  25838. },
  25839. url: { fmt: '/<%=index%>/_close', req: { index: { type: 'list' } } },
  25840. method: 'POST'
  25841. })),
  25842. (f.indices.prototype.create = d({
  25843. params: {
  25844. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  25845. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  25846. timeout: { type: 'time' },
  25847. masterTimeout: { type: 'time', name: 'master_timeout' }
  25848. },
  25849. url: { fmt: '/<%=index%>', req: { index: { type: 'string' } } },
  25850. method: 'PUT'
  25851. })),
  25852. (f.indices.prototype.delete = d({
  25853. params: {
  25854. timeout: { type: 'time' },
  25855. masterTimeout: { type: 'time', name: 'master_timeout' },
  25856. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  25857. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  25858. expandWildcards: {
  25859. type: 'enum',
  25860. default: 'open',
  25861. options: ['open', 'closed', 'none', 'all'],
  25862. name: 'expand_wildcards'
  25863. }
  25864. },
  25865. url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
  25866. method: 'DELETE'
  25867. })),
  25868. (f.indices.prototype.deleteAlias = d({
  25869. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  25870. url: {
  25871. fmt: '/<%=index%>/_alias/<%=name%>',
  25872. req: { index: { type: 'list' }, name: { type: 'list' } }
  25873. },
  25874. method: 'DELETE'
  25875. })),
  25876. (f.indices.prototype.deleteTemplate = d({
  25877. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  25878. url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
  25879. method: 'DELETE'
  25880. })),
  25881. (f.indices.prototype.exists = d({
  25882. params: {
  25883. local: { type: 'boolean' },
  25884. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  25885. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  25886. expandWildcards: {
  25887. type: 'enum',
  25888. default: 'open',
  25889. options: ['open', 'closed', 'none', 'all'],
  25890. name: 'expand_wildcards'
  25891. },
  25892. flatSettings: { type: 'boolean', name: 'flat_settings' },
  25893. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
  25894. },
  25895. url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
  25896. method: 'HEAD'
  25897. })),
  25898. (f.indices.prototype.existsAlias = d({
  25899. params: {
  25900. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  25901. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  25902. expandWildcards: {
  25903. type: 'enum',
  25904. default: 'all',
  25905. options: ['open', 'closed', 'none', 'all'],
  25906. name: 'expand_wildcards'
  25907. },
  25908. local: { type: 'boolean' }
  25909. },
  25910. urls: [
  25911. {
  25912. fmt: '/<%=index%>/_alias/<%=name%>',
  25913. req: { index: { type: 'list' }, name: { type: 'list' } }
  25914. },
  25915. { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } }
  25916. ],
  25917. method: 'HEAD'
  25918. })),
  25919. (f.indices.prototype.existsTemplate = d({
  25920. params: {
  25921. flatSettings: { type: 'boolean', name: 'flat_settings' },
  25922. masterTimeout: { type: 'time', name: 'master_timeout' },
  25923. local: { type: 'boolean' }
  25924. },
  25925. url: { fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } },
  25926. method: 'HEAD'
  25927. })),
  25928. (f.indices.prototype.existsType = d({
  25929. params: {
  25930. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  25931. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  25932. expandWildcards: {
  25933. type: 'enum',
  25934. default: 'open',
  25935. options: ['open', 'closed', 'none', 'all'],
  25936. name: 'expand_wildcards'
  25937. },
  25938. local: { type: 'boolean' }
  25939. },
  25940. url: {
  25941. fmt: '/<%=index%>/_mapping/<%=type%>',
  25942. req: { index: { type: 'list' }, type: { type: 'list' } }
  25943. },
  25944. method: 'HEAD'
  25945. })),
  25946. (f.indices.prototype.flush = d({
  25947. params: {
  25948. force: { type: 'boolean' },
  25949. waitIfOngoing: { type: 'boolean', name: 'wait_if_ongoing' },
  25950. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  25951. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  25952. expandWildcards: {
  25953. type: 'enum',
  25954. default: 'open',
  25955. options: ['open', 'closed', 'none', 'all'],
  25956. name: 'expand_wildcards'
  25957. }
  25958. },
  25959. urls: [{ fmt: '/<%=index%>/_flush', req: { index: { type: 'list' } } }, { fmt: '/_flush' }],
  25960. method: 'POST'
  25961. })),
  25962. (f.indices.prototype.flushSynced = d({
  25963. params: {
  25964. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  25965. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  25966. expandWildcards: {
  25967. type: 'enum',
  25968. default: 'open',
  25969. options: ['open', 'closed', 'none', 'all'],
  25970. name: 'expand_wildcards'
  25971. }
  25972. },
  25973. urls: [
  25974. { fmt: '/<%=index%>/_flush/synced', req: { index: { type: 'list' } } },
  25975. { fmt: '/_flush/synced' }
  25976. ],
  25977. method: 'POST'
  25978. })),
  25979. (f.indices.prototype.forcemerge = d({
  25980. params: {
  25981. flush: { type: 'boolean' },
  25982. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  25983. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  25984. expandWildcards: {
  25985. type: 'enum',
  25986. default: 'open',
  25987. options: ['open', 'closed', 'none', 'all'],
  25988. name: 'expand_wildcards'
  25989. },
  25990. maxNumSegments: { type: 'number', name: 'max_num_segments' },
  25991. onlyExpungeDeletes: { type: 'boolean', name: 'only_expunge_deletes' }
  25992. },
  25993. urls: [
  25994. { fmt: '/<%=index%>/_forcemerge', req: { index: { type: 'list' } } },
  25995. { fmt: '/_forcemerge' }
  25996. ],
  25997. method: 'POST'
  25998. })),
  25999. (f.indices.prototype.get = d({
  26000. params: {
  26001. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  26002. local: { type: 'boolean' },
  26003. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  26004. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  26005. expandWildcards: {
  26006. type: 'enum',
  26007. default: 'open',
  26008. options: ['open', 'closed', 'none', 'all'],
  26009. name: 'expand_wildcards'
  26010. },
  26011. flatSettings: { type: 'boolean', name: 'flat_settings' },
  26012. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' },
  26013. masterTimeout: { type: 'time', name: 'master_timeout' }
  26014. },
  26015. url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } }
  26016. })),
  26017. (f.indices.prototype.getAlias = d({
  26018. params: {
  26019. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  26020. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  26021. expandWildcards: {
  26022. type: 'enum',
  26023. default: 'all',
  26024. options: ['open', 'closed', 'none', 'all'],
  26025. name: 'expand_wildcards'
  26026. },
  26027. local: { type: 'boolean' }
  26028. },
  26029. urls: [
  26030. {
  26031. fmt: '/<%=index%>/_alias/<%=name%>',
  26032. req: { index: { type: 'list' }, name: { type: 'list' } }
  26033. },
  26034. { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } },
  26035. { fmt: '/<%=index%>/_alias', req: { index: { type: 'list' } } },
  26036. { fmt: '/_alias' }
  26037. ]
  26038. })),
  26039. (f.indices.prototype.getFieldMapping = d({
  26040. params: {
  26041. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  26042. includeDefaults: { type: 'boolean', name: 'include_defaults' },
  26043. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  26044. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  26045. expandWildcards: {
  26046. type: 'enum',
  26047. default: 'open',
  26048. options: ['open', 'closed', 'none', 'all'],
  26049. name: 'expand_wildcards'
  26050. },
  26051. local: { type: 'boolean' }
  26052. },
  26053. urls: [
  26054. {
  26055. fmt: '/<%=index%>/_mapping/field/<%=fields%>',
  26056. req: { index: { type: 'list' }, fields: { type: 'list' } }
  26057. },
  26058. { fmt: '/_mapping/field/<%=fields%>', req: { fields: { type: 'list' } } }
  26059. ]
  26060. })),
  26061. (f.indices.prototype.getMapping = d({
  26062. params: {
  26063. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  26064. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  26065. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  26066. expandWildcards: {
  26067. type: 'enum',
  26068. default: 'open',
  26069. options: ['open', 'closed', 'none', 'all'],
  26070. name: 'expand_wildcards'
  26071. },
  26072. masterTimeout: { type: 'time', name: 'master_timeout' },
  26073. local: { type: 'boolean' }
  26074. },
  26075. urls: [{ fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } }, { fmt: '/_mapping' }]
  26076. })),
  26077. (f.indices.prototype.getSettings = d({
  26078. params: {
  26079. masterTimeout: { type: 'time', name: 'master_timeout' },
  26080. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  26081. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  26082. expandWildcards: {
  26083. type: 'enum',
  26084. default: ['open', 'closed'],
  26085. options: ['open', 'closed', 'none', 'all'],
  26086. name: 'expand_wildcards'
  26087. },
  26088. flatSettings: { type: 'boolean', name: 'flat_settings' },
  26089. local: { type: 'boolean' },
  26090. includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
  26091. },
  26092. urls: [
  26093. {
  26094. fmt: '/<%=index%>/_settings/<%=name%>',
  26095. req: { index: { type: 'list' }, name: { type: 'list' } }
  26096. },
  26097. { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
  26098. { fmt: '/_settings/<%=name%>', req: { name: { type: 'list' } } },
  26099. { fmt: '/_settings' }
  26100. ]
  26101. })),
  26102. (f.indices.prototype.getTemplate = d({
  26103. params: {
  26104. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  26105. flatSettings: { type: 'boolean', name: 'flat_settings' },
  26106. masterTimeout: { type: 'time', name: 'master_timeout' },
  26107. local: { type: 'boolean' }
  26108. },
  26109. urls: [{ fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } }, { fmt: '/_template' }]
  26110. })),
  26111. (f.indices.prototype.getUpgrade = d({
  26112. params: {
  26113. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  26114. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  26115. expandWildcards: {
  26116. type: 'enum',
  26117. default: 'open',
  26118. options: ['open', 'closed', 'none', 'all'],
  26119. name: 'expand_wildcards'
  26120. }
  26121. },
  26122. urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }]
  26123. })),
  26124. (f.indices.prototype.open = d({
  26125. params: {
  26126. timeout: { type: 'time' },
  26127. masterTimeout: { type: 'time', name: 'master_timeout' },
  26128. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  26129. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  26130. expandWildcards: {
  26131. type: 'enum',
  26132. default: 'closed',
  26133. options: ['open', 'closed', 'none', 'all'],
  26134. name: 'expand_wildcards'
  26135. },
  26136. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  26137. },
  26138. url: { fmt: '/<%=index%>/_open', req: { index: { type: 'list' } } },
  26139. method: 'POST'
  26140. })),
  26141. (f.indices.prototype.putAlias = d({
  26142. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  26143. url: {
  26144. fmt: '/<%=index%>/_alias/<%=name%>',
  26145. req: { index: { type: 'list' }, name: { type: 'string' } }
  26146. },
  26147. method: 'PUT'
  26148. })),
  26149. (f.indices.prototype.putMapping = d({
  26150. params: {
  26151. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  26152. timeout: { type: 'time' },
  26153. masterTimeout: { type: 'time', name: 'master_timeout' },
  26154. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  26155. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  26156. expandWildcards: {
  26157. type: 'enum',
  26158. default: 'open',
  26159. options: ['open', 'closed', 'none', 'all'],
  26160. name: 'expand_wildcards'
  26161. }
  26162. },
  26163. url: { fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } },
  26164. needBody: !0,
  26165. method: 'PUT'
  26166. })),
  26167. (f.indices.prototype.putSettings = d({
  26168. params: {
  26169. masterTimeout: { type: 'time', name: 'master_timeout' },
  26170. timeout: { type: 'time' },
  26171. preserveExisting: { type: 'boolean', name: 'preserve_existing' },
  26172. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  26173. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  26174. expandWildcards: {
  26175. type: 'enum',
  26176. default: 'open',
  26177. options: ['open', 'closed', 'none', 'all'],
  26178. name: 'expand_wildcards'
  26179. },
  26180. flatSettings: { type: 'boolean', name: 'flat_settings' }
  26181. },
  26182. urls: [
  26183. { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
  26184. { fmt: '/_settings' }
  26185. ],
  26186. needBody: !0,
  26187. method: 'PUT'
  26188. })),
  26189. (f.indices.prototype.putTemplate = d({
  26190. params: {
  26191. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  26192. order: { type: 'number' },
  26193. create: { type: 'boolean', default: !1 },
  26194. timeout: { type: 'time' },
  26195. masterTimeout: { type: 'time', name: 'master_timeout' },
  26196. flatSettings: { type: 'boolean', name: 'flat_settings' }
  26197. },
  26198. url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
  26199. needBody: !0,
  26200. method: 'PUT'
  26201. })),
  26202. (f.indices.prototype.recovery = d({
  26203. params: {
  26204. detailed: { type: 'boolean', default: !1 },
  26205. activeOnly: { type: 'boolean', default: !1, name: 'active_only' }
  26206. },
  26207. urls: [
  26208. { fmt: '/<%=index%>/_recovery', req: { index: { type: 'list' } } },
  26209. { fmt: '/_recovery' }
  26210. ]
  26211. })),
  26212. (f.indices.prototype.refresh = d({
  26213. params: {
  26214. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  26215. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  26216. expandWildcards: {
  26217. type: 'enum',
  26218. default: 'open',
  26219. options: ['open', 'closed', 'none', 'all'],
  26220. name: 'expand_wildcards'
  26221. }
  26222. },
  26223. urls: [{ fmt: '/<%=index%>/_refresh', req: { index: { type: 'list' } } }, { fmt: '/_refresh' }],
  26224. method: 'POST'
  26225. })),
  26226. (f.indices.prototype.rollover = d({
  26227. params: {
  26228. includeTypeName: { type: 'boolean', name: 'include_type_name' },
  26229. timeout: { type: 'time' },
  26230. dryRun: { type: 'boolean', name: 'dry_run' },
  26231. masterTimeout: { type: 'time', name: 'master_timeout' },
  26232. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  26233. },
  26234. urls: [
  26235. {
  26236. fmt: '/<%=alias%>/_rollover/<%=newIndex%>',
  26237. req: { alias: { type: 'string' }, newIndex: { type: 'string' } }
  26238. },
  26239. { fmt: '/<%=alias%>/_rollover', req: { alias: { type: 'string' } } }
  26240. ],
  26241. method: 'POST'
  26242. })),
  26243. (f.indices.prototype.segments = d({
  26244. params: {
  26245. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  26246. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  26247. expandWildcards: {
  26248. type: 'enum',
  26249. default: 'open',
  26250. options: ['open', 'closed', 'none', 'all'],
  26251. name: 'expand_wildcards'
  26252. },
  26253. verbose: { type: 'boolean', default: !1 }
  26254. },
  26255. urls: [
  26256. { fmt: '/<%=index%>/_segments', req: { index: { type: 'list' } } },
  26257. { fmt: '/_segments' }
  26258. ]
  26259. })),
  26260. (f.indices.prototype.shardStores = d({
  26261. params: {
  26262. status: { type: 'list', options: ['green', 'yellow', 'red', 'all'] },
  26263. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  26264. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  26265. expandWildcards: {
  26266. type: 'enum',
  26267. default: 'open',
  26268. options: ['open', 'closed', 'none', 'all'],
  26269. name: 'expand_wildcards'
  26270. }
  26271. },
  26272. urls: [
  26273. { fmt: '/<%=index%>/_shard_stores', req: { index: { type: 'list' } } },
  26274. { fmt: '/_shard_stores' }
  26275. ]
  26276. })),
  26277. (f.indices.prototype.shrink = d({
  26278. params: {
  26279. timeout: { type: 'time' },
  26280. masterTimeout: { type: 'time', name: 'master_timeout' },
  26281. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  26282. },
  26283. url: {
  26284. fmt: '/<%=index%>/_shrink/<%=target%>',
  26285. req: { index: { type: 'string' }, target: { type: 'string' } }
  26286. },
  26287. method: 'POST'
  26288. })),
  26289. (f.indices.prototype.split = d({
  26290. params: {
  26291. timeout: { type: 'time' },
  26292. masterTimeout: { type: 'time', name: 'master_timeout' },
  26293. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
  26294. },
  26295. url: {
  26296. fmt: '/<%=index%>/_split/<%=target%>',
  26297. req: { index: { type: 'string' }, target: { type: 'string' } }
  26298. },
  26299. method: 'POST'
  26300. })),
  26301. (f.indices.prototype.stats = d({
  26302. params: {
  26303. completionFields: { type: 'list', name: 'completion_fields' },
  26304. fielddataFields: { type: 'list', name: 'fielddata_fields' },
  26305. fields: { type: 'list' },
  26306. groups: { type: 'list' },
  26307. level: { type: 'enum', default: 'indices', options: ['cluster', 'indices', 'shards'] },
  26308. types: { type: 'list' },
  26309. includeSegmentFileSizes: {
  26310. type: 'boolean',
  26311. default: !1,
  26312. name: 'include_segment_file_sizes'
  26313. },
  26314. includeUnloadedSegments: {
  26315. type: 'boolean',
  26316. default: !1,
  26317. name: 'include_unloaded_segments'
  26318. },
  26319. expandWildcards: {
  26320. type: 'enum',
  26321. default: 'open',
  26322. options: ['open', 'closed', 'none', 'all'],
  26323. name: 'expand_wildcards'
  26324. },
  26325. forbidClosedIndices: { type: 'boolean', default: !0, name: 'forbid_closed_indices' }
  26326. },
  26327. urls: [
  26328. {
  26329. fmt: '/<%=index%>/_stats/<%=metric%>',
  26330. req: {
  26331. index: { type: 'list' },
  26332. metric: {
  26333. type: 'list',
  26334. options: [
  26335. '_all',
  26336. 'completion',
  26337. 'docs',
  26338. 'fielddata',
  26339. 'query_cache',
  26340. 'flush',
  26341. 'get',
  26342. 'indexing',
  26343. 'merge',
  26344. 'request_cache',
  26345. 'refresh',
  26346. 'search',
  26347. 'segments',
  26348. 'store',
  26349. 'warmer',
  26350. 'suggest'
  26351. ]
  26352. }
  26353. }
  26354. },
  26355. {
  26356. fmt: '/_stats/<%=metric%>',
  26357. req: {
  26358. metric: {
  26359. type: 'list',
  26360. options: [
  26361. '_all',
  26362. 'completion',
  26363. 'docs',
  26364. 'fielddata',
  26365. 'query_cache',
  26366. 'flush',
  26367. 'get',
  26368. 'indexing',
  26369. 'merge',
  26370. 'request_cache',
  26371. 'refresh',
  26372. 'search',
  26373. 'segments',
  26374. 'store',
  26375. 'warmer',
  26376. 'suggest'
  26377. ]
  26378. }
  26379. }
  26380. },
  26381. { fmt: '/<%=index%>/_stats', req: { index: { type: 'list' } } },
  26382. { fmt: '/_stats' }
  26383. ]
  26384. })),
  26385. (f.indices.prototype.updateAliases = d({
  26386. params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
  26387. url: { fmt: '/_aliases' },
  26388. needBody: !0,
  26389. method: 'POST'
  26390. })),
  26391. (f.indices.prototype.upgrade = d({
  26392. params: {
  26393. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  26394. expandWildcards: {
  26395. type: 'enum',
  26396. default: 'open',
  26397. options: ['open', 'closed', 'none', 'all'],
  26398. name: 'expand_wildcards'
  26399. },
  26400. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  26401. waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
  26402. onlyAncientSegments: { type: 'boolean', name: 'only_ancient_segments' }
  26403. },
  26404. urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }],
  26405. method: 'POST'
  26406. })),
  26407. (f.indices.prototype.validateQuery = d({
  26408. params: {
  26409. explain: { type: 'boolean' },
  26410. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  26411. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  26412. expandWildcards: {
  26413. type: 'enum',
  26414. default: 'open',
  26415. options: ['open', 'closed', 'none', 'all'],
  26416. name: 'expand_wildcards'
  26417. },
  26418. q: { type: 'string' },
  26419. analyzer: { type: 'string' },
  26420. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  26421. defaultOperator: {
  26422. type: 'enum',
  26423. default: 'OR',
  26424. options: ['AND', 'OR'],
  26425. name: 'default_operator'
  26426. },
  26427. df: { type: 'string' },
  26428. lenient: { type: 'boolean' },
  26429. rewrite: { type: 'boolean' },
  26430. allShards: { type: 'boolean', name: 'all_shards' }
  26431. },
  26432. urls: [
  26433. { fmt: '/<%=index%>/_validate/query', req: { index: { type: 'list' } } },
  26434. { fmt: '/_validate/query' }
  26435. ],
  26436. method: 'POST'
  26437. })),
  26438. (f.info = d({ url: { fmt: '/' } })),
  26439. (f.ingest = e()),
  26440. (f.ingest.prototype.deletePipeline = d({
  26441. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  26442. url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
  26443. method: 'DELETE'
  26444. })),
  26445. (f.ingest.prototype.getPipeline = d({
  26446. params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
  26447. urls: [
  26448. { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
  26449. { fmt: '/_ingest/pipeline' }
  26450. ]
  26451. })),
  26452. (f.ingest.prototype.processorGrok = d({ url: { fmt: '/_ingest/processor/grok' } })),
  26453. (f.ingest.prototype.putPipeline = d({
  26454. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  26455. url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
  26456. needBody: !0,
  26457. method: 'PUT'
  26458. })),
  26459. (f.ingest.prototype.simulate = d({
  26460. params: { verbose: { type: 'boolean', default: !1 } },
  26461. urls: [
  26462. { fmt: '/_ingest/pipeline/<%=id%>/_simulate', req: { id: { type: 'string' } } },
  26463. { fmt: '/_ingest/pipeline/_simulate' }
  26464. ],
  26465. needBody: !0,
  26466. method: 'POST'
  26467. })),
  26468. (f.mget = d({
  26469. params: {
  26470. storedFields: { type: 'list', name: 'stored_fields' },
  26471. preference: { type: 'string' },
  26472. realtime: { type: 'boolean' },
  26473. refresh: { type: 'boolean' },
  26474. routing: { type: 'string' },
  26475. _source: { type: 'list' },
  26476. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  26477. _sourceIncludes: { type: 'list', name: '_source_includes' }
  26478. },
  26479. urls: [{ fmt: '/<%=index%>/_mget', req: { index: { type: 'string' } } }, { fmt: '/_mget' }],
  26480. needBody: !0,
  26481. method: 'POST'
  26482. })),
  26483. (f.msearch = d({
  26484. params: {
  26485. searchType: {
  26486. type: 'enum',
  26487. options: [
  26488. 'query_then_fetch',
  26489. 'query_and_fetch',
  26490. 'dfs_query_then_fetch',
  26491. 'dfs_query_and_fetch'
  26492. ],
  26493. name: 'search_type'
  26494. },
  26495. maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
  26496. typedKeys: { type: 'boolean', name: 'typed_keys' },
  26497. preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
  26498. maxConcurrentShardRequests: {
  26499. type: 'number',
  26500. default: 5,
  26501. name: 'max_concurrent_shard_requests'
  26502. },
  26503. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
  26504. ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
  26505. },
  26506. urls: [{ fmt: '/<%=index%>/_msearch', req: { index: { type: 'list' } } }, { fmt: '/_msearch' }],
  26507. needBody: !0,
  26508. bulkBody: !0,
  26509. method: 'POST'
  26510. })),
  26511. (f.msearchTemplate = d({
  26512. params: {
  26513. searchType: {
  26514. type: 'enum',
  26515. options: [
  26516. 'query_then_fetch',
  26517. 'query_and_fetch',
  26518. 'dfs_query_then_fetch',
  26519. 'dfs_query_and_fetch'
  26520. ],
  26521. name: 'search_type'
  26522. },
  26523. typedKeys: { type: 'boolean', name: 'typed_keys' },
  26524. maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
  26525. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
  26526. ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
  26527. },
  26528. urls: [
  26529. { fmt: '/<%=index%>/_msearch/template', req: { index: { type: 'list' } } },
  26530. { fmt: '/_msearch/template' }
  26531. ],
  26532. needBody: !0,
  26533. bulkBody: !0,
  26534. method: 'POST'
  26535. })),
  26536. (f.mtermvectors = d({
  26537. params: {
  26538. ids: { type: 'list', required: !1 },
  26539. termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
  26540. fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
  26541. fields: { type: 'list', required: !1 },
  26542. offsets: { type: 'boolean', default: !0, required: !1 },
  26543. positions: { type: 'boolean', default: !0, required: !1 },
  26544. payloads: { type: 'boolean', default: !0, required: !1 },
  26545. preference: { type: 'string', required: !1 },
  26546. routing: { type: 'string', required: !1 },
  26547. realtime: { type: 'boolean', required: !1 },
  26548. version: { type: 'number' },
  26549. versionType: {
  26550. type: 'enum',
  26551. options: ['internal', 'external', 'external_gte', 'force'],
  26552. name: 'version_type'
  26553. }
  26554. },
  26555. urls: [
  26556. { fmt: '/<%=index%>/_mtermvectors', req: { index: { type: 'string' } } },
  26557. { fmt: '/_mtermvectors' }
  26558. ],
  26559. method: 'POST'
  26560. })),
  26561. (f.nodes = e()),
  26562. (f.nodes.prototype.hotThreads = d({
  26563. params: {
  26564. interval: { type: 'time' },
  26565. snapshots: { type: 'number' },
  26566. threads: { type: 'number' },
  26567. ignoreIdleThreads: { type: 'boolean', name: 'ignore_idle_threads' },
  26568. type: { type: 'enum', options: ['cpu', 'wait', 'block'] },
  26569. timeout: { type: 'time' }
  26570. },
  26571. url: {}
  26572. })),
  26573. (f.nodes.prototype.info = d({
  26574. params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
  26575. urls: [
  26576. {
  26577. fmt: '/_nodes/<%=nodeId%>/<%=metric%>',
  26578. req: {
  26579. nodeId: { type: 'list' },
  26580. metric: {
  26581. type: 'list',
  26582. options: [
  26583. 'settings',
  26584. 'os',
  26585. 'process',
  26586. 'jvm',
  26587. 'thread_pool',
  26588. 'transport',
  26589. 'http',
  26590. 'plugins',
  26591. 'ingest'
  26592. ]
  26593. }
  26594. }
  26595. },
  26596. { fmt: '/_nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
  26597. {
  26598. fmt: '/_nodes/<%=metric%>',
  26599. req: {
  26600. metric: {
  26601. type: 'list',
  26602. options: [
  26603. 'settings',
  26604. 'os',
  26605. 'process',
  26606. 'jvm',
  26607. 'thread_pool',
  26608. 'transport',
  26609. 'http',
  26610. 'plugins',
  26611. 'ingest'
  26612. ]
  26613. }
  26614. }
  26615. },
  26616. { fmt: '/_nodes' }
  26617. ]
  26618. })),
  26619. (f.nodes.prototype.reloadSecureSettings = d({
  26620. params: { timeout: { type: 'time' } },
  26621. urls: [
  26622. { fmt: '/_nodes/<%=nodeId%>/reload_secure_settings', req: { nodeId: { type: 'list' } } },
  26623. { fmt: '/_nodes/reload_secure_settings' }
  26624. ],
  26625. method: 'POST'
  26626. })),
  26627. (f.nodes.prototype.stats = d({
  26628. params: {
  26629. completionFields: { type: 'list', name: 'completion_fields' },
  26630. fielddataFields: { type: 'list', name: 'fielddata_fields' },
  26631. fields: { type: 'list' },
  26632. groups: { type: 'boolean' },
  26633. level: { type: 'enum', default: 'node', options: ['indices', 'node', 'shards'] },
  26634. types: { type: 'list' },
  26635. timeout: { type: 'time' },
  26636. includeSegmentFileSizes: {
  26637. type: 'boolean',
  26638. default: !1,
  26639. name: 'include_segment_file_sizes'
  26640. }
  26641. },
  26642. urls: [
  26643. {
  26644. fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>',
  26645. req: {
  26646. nodeId: { type: 'list' },
  26647. metric: {
  26648. type: 'list',
  26649. options: [
  26650. '_all',
  26651. 'breaker',
  26652. 'fs',
  26653. 'http',
  26654. 'indices',
  26655. 'jvm',
  26656. 'os',
  26657. 'process',
  26658. 'thread_pool',
  26659. 'transport',
  26660. 'discovery'
  26661. ]
  26662. },
  26663. indexMetric: {
  26664. type: 'list',
  26665. options: [
  26666. '_all',
  26667. 'completion',
  26668. 'docs',
  26669. 'fielddata',
  26670. 'query_cache',
  26671. 'flush',
  26672. 'get',
  26673. 'indexing',
  26674. 'merge',
  26675. 'request_cache',
  26676. 'refresh',
  26677. 'search',
  26678. 'segments',
  26679. 'store',
  26680. 'warmer',
  26681. 'suggest'
  26682. ]
  26683. }
  26684. }
  26685. },
  26686. {
  26687. fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>',
  26688. req: {
  26689. nodeId: { type: 'list' },
  26690. metric: {
  26691. type: 'list',
  26692. options: [
  26693. '_all',
  26694. 'breaker',
  26695. 'fs',
  26696. 'http',
  26697. 'indices',
  26698. 'jvm',
  26699. 'os',
  26700. 'process',
  26701. 'thread_pool',
  26702. 'transport',
  26703. 'discovery'
  26704. ]
  26705. }
  26706. }
  26707. },
  26708. {
  26709. fmt: '/_nodes/stats/<%=metric%>/<%=indexMetric%>',
  26710. req: {
  26711. metric: {
  26712. type: 'list',
  26713. options: [
  26714. '_all',
  26715. 'breaker',
  26716. 'fs',
  26717. 'http',
  26718. 'indices',
  26719. 'jvm',
  26720. 'os',
  26721. 'process',
  26722. 'thread_pool',
  26723. 'transport',
  26724. 'discovery'
  26725. ]
  26726. },
  26727. indexMetric: {
  26728. type: 'list',
  26729. options: [
  26730. '_all',
  26731. 'completion',
  26732. 'docs',
  26733. 'fielddata',
  26734. 'query_cache',
  26735. 'flush',
  26736. 'get',
  26737. 'indexing',
  26738. 'merge',
  26739. 'request_cache',
  26740. 'refresh',
  26741. 'search',
  26742. 'segments',
  26743. 'store',
  26744. 'warmer',
  26745. 'suggest'
  26746. ]
  26747. }
  26748. }
  26749. },
  26750. { fmt: '/_nodes/<%=nodeId%>/stats', req: { nodeId: { type: 'list' } } },
  26751. {
  26752. fmt: '/_nodes/stats/<%=metric%>',
  26753. req: {
  26754. metric: {
  26755. type: 'list',
  26756. options: [
  26757. '_all',
  26758. 'breaker',
  26759. 'fs',
  26760. 'http',
  26761. 'indices',
  26762. 'jvm',
  26763. 'os',
  26764. 'process',
  26765. 'thread_pool',
  26766. 'transport',
  26767. 'discovery'
  26768. ]
  26769. }
  26770. }
  26771. },
  26772. { fmt: '/_nodes/stats' }
  26773. ]
  26774. })),
  26775. (f.nodes.prototype.usage = d({
  26776. params: { timeout: { type: 'time' } },
  26777. urls: [
  26778. {
  26779. fmt: '/_nodes/<%=nodeId%>/usage/<%=metric%>',
  26780. req: {
  26781. nodeId: { type: 'list' },
  26782. metric: { type: 'list', options: ['_all', 'rest_actions'] }
  26783. }
  26784. },
  26785. { fmt: '/_nodes/<%=nodeId%>/usage', req: { nodeId: { type: 'list' } } },
  26786. {
  26787. fmt: '/_nodes/usage/<%=metric%>',
  26788. req: { metric: { type: 'list', options: ['_all', 'rest_actions'] } }
  26789. },
  26790. { fmt: '/_nodes/usage' }
  26791. ]
  26792. })),
  26793. (f.ping = d({ url: { fmt: '/' }, method: 'HEAD' })),
  26794. (f.putScript = d({
  26795. params: {
  26796. timeout: { type: 'time' },
  26797. masterTimeout: { type: 'time', name: 'master_timeout' },
  26798. context: { type: 'string' }
  26799. },
  26800. urls: [
  26801. {
  26802. fmt: '/_scripts/<%=id%>/<%=context%>',
  26803. req: { id: { type: 'string' }, context: { type: 'string' } }
  26804. },
  26805. { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
  26806. ],
  26807. needBody: !0,
  26808. method: 'PUT'
  26809. })),
  26810. (f.rankEval = d({
  26811. params: {
  26812. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  26813. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  26814. expandWildcards: {
  26815. type: 'enum',
  26816. default: 'open',
  26817. options: ['open', 'closed', 'none', 'all'],
  26818. name: 'expand_wildcards'
  26819. }
  26820. },
  26821. urls: [
  26822. { fmt: '/<%=index%>/_rank_eval', req: { index: { type: 'list' } } },
  26823. { fmt: '/_rank_eval' }
  26824. ],
  26825. needBody: !0,
  26826. method: 'POST'
  26827. })),
  26828. (f.reindex = d({
  26829. params: {
  26830. refresh: { type: 'boolean' },
  26831. timeout: { type: 'time', default: '1m' },
  26832. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  26833. waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
  26834. requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
  26835. scroll: { type: 'time', default: '5m' },
  26836. slices: { type: 'number', default: 1 },
  26837. maxDocs: { type: 'number', name: 'max_docs' }
  26838. },
  26839. url: { fmt: '/_reindex' },
  26840. needBody: !0,
  26841. method: 'POST'
  26842. })),
  26843. (f.reindexRethrottle = d({
  26844. params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
  26845. url: { fmt: '/_reindex/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
  26846. method: 'POST'
  26847. })),
  26848. (f.renderSearchTemplate = d({
  26849. urls: [
  26850. { fmt: '/_render/template/<%=id%>', req: { id: { type: 'string' } } },
  26851. { fmt: '/_render/template' }
  26852. ],
  26853. method: 'POST'
  26854. })),
  26855. (f.scriptsPainlessExecute = d({ url: { fmt: '/_scripts/painless/_execute' }, method: 'POST' })),
  26856. (f.scroll = d({
  26857. params: {
  26858. scroll: { type: 'time' },
  26859. scrollId: { type: 'string', name: 'scroll_id' },
  26860. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
  26861. },
  26862. url: { fmt: '/_search/scroll' },
  26863. paramAsBody: { param: 'scrollId', body: 'scroll_id' },
  26864. method: 'POST'
  26865. })),
  26866. (f.search = d({
  26867. params: {
  26868. analyzer: { type: 'string' },
  26869. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  26870. ccsMinimizeRoundtrips: {
  26871. type: 'boolean',
  26872. default: 'true',
  26873. name: 'ccs_minimize_roundtrips'
  26874. },
  26875. defaultOperator: {
  26876. type: 'enum',
  26877. default: 'OR',
  26878. options: ['AND', 'OR'],
  26879. name: 'default_operator'
  26880. },
  26881. df: { type: 'string' },
  26882. explain: { type: 'boolean' },
  26883. storedFields: { type: 'list', name: 'stored_fields' },
  26884. docvalueFields: { type: 'list', name: 'docvalue_fields' },
  26885. from: { type: 'number' },
  26886. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  26887. ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
  26888. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  26889. expandWildcards: {
  26890. type: 'enum',
  26891. default: 'open',
  26892. options: ['open', 'closed', 'none', 'all'],
  26893. name: 'expand_wildcards'
  26894. },
  26895. lenient: { type: 'boolean' },
  26896. preference: { type: 'string' },
  26897. q: { type: 'string' },
  26898. routing: { type: 'list' },
  26899. scroll: { type: 'time' },
  26900. searchType: {
  26901. type: 'enum',
  26902. options: ['query_then_fetch', 'dfs_query_then_fetch'],
  26903. name: 'search_type'
  26904. },
  26905. size: { type: 'number' },
  26906. sort: { type: 'list' },
  26907. _source: { type: 'list' },
  26908. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  26909. _sourceIncludes: { type: 'list', name: '_source_includes' },
  26910. terminateAfter: { type: 'number', name: 'terminate_after' },
  26911. stats: { type: 'list' },
  26912. suggestField: { type: 'string', name: 'suggest_field' },
  26913. suggestMode: {
  26914. type: 'enum',
  26915. default: 'missing',
  26916. options: ['missing', 'popular', 'always'],
  26917. name: 'suggest_mode'
  26918. },
  26919. suggestSize: { type: 'number', name: 'suggest_size' },
  26920. suggestText: { type: 'string', name: 'suggest_text' },
  26921. timeout: { type: 'time' },
  26922. trackScores: { type: 'boolean', name: 'track_scores' },
  26923. trackTotalHits: { type: 'boolean', name: 'track_total_hits' },
  26924. allowPartialSearchResults: {
  26925. type: 'boolean',
  26926. default: !0,
  26927. name: 'allow_partial_search_results'
  26928. },
  26929. typedKeys: { type: 'boolean', name: 'typed_keys' },
  26930. version: { type: 'boolean' },
  26931. seqNoPrimaryTerm: { type: 'boolean', name: 'seq_no_primary_term' },
  26932. requestCache: { type: 'boolean', name: 'request_cache' },
  26933. batchedReduceSize: { type: 'number', default: 512, name: 'batched_reduce_size' },
  26934. maxConcurrentShardRequests: {
  26935. type: 'number',
  26936. default: 5,
  26937. name: 'max_concurrent_shard_requests'
  26938. },
  26939. preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
  26940. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
  26941. },
  26942. urls: [{ fmt: '/<%=index%>/_search', req: { index: { type: 'list' } } }, { fmt: '/_search' }],
  26943. method: 'POST'
  26944. })),
  26945. (f.searchShards = d({
  26946. params: {
  26947. preference: { type: 'string' },
  26948. routing: { type: 'string' },
  26949. local: { type: 'boolean' },
  26950. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  26951. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  26952. expandWildcards: {
  26953. type: 'enum',
  26954. default: 'open',
  26955. options: ['open', 'closed', 'none', 'all'],
  26956. name: 'expand_wildcards'
  26957. }
  26958. },
  26959. urls: [
  26960. { fmt: '/<%=index%>/_search_shards', req: { index: { type: 'list' } } },
  26961. { fmt: '/_search_shards' }
  26962. ],
  26963. method: 'POST'
  26964. })),
  26965. (f.searchTemplate = d({
  26966. params: {
  26967. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  26968. ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
  26969. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  26970. expandWildcards: {
  26971. type: 'enum',
  26972. default: 'open',
  26973. options: ['open', 'closed', 'none', 'all'],
  26974. name: 'expand_wildcards'
  26975. },
  26976. preference: { type: 'string' },
  26977. routing: { type: 'list' },
  26978. scroll: { type: 'time' },
  26979. searchType: {
  26980. type: 'enum',
  26981. options: [
  26982. 'query_then_fetch',
  26983. 'query_and_fetch',
  26984. 'dfs_query_then_fetch',
  26985. 'dfs_query_and_fetch'
  26986. ],
  26987. name: 'search_type'
  26988. },
  26989. explain: { type: 'boolean' },
  26990. profile: { type: 'boolean' },
  26991. typedKeys: { type: 'boolean', name: 'typed_keys' },
  26992. restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
  26993. ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
  26994. },
  26995. urls: [
  26996. { fmt: '/<%=index%>/_search/template', req: { index: { type: 'list' } } },
  26997. { fmt: '/_search/template' }
  26998. ],
  26999. needBody: !0,
  27000. method: 'POST'
  27001. })),
  27002. (f.snapshot = e()),
  27003. (f.snapshot.prototype.create = d({
  27004. params: {
  27005. masterTimeout: { type: 'time', name: 'master_timeout' },
  27006. waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
  27007. },
  27008. url: {
  27009. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
  27010. req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
  27011. },
  27012. method: 'POST'
  27013. })),
  27014. (f.snapshot.prototype.createRepository = d({
  27015. params: {
  27016. masterTimeout: { type: 'time', name: 'master_timeout' },
  27017. timeout: { type: 'time' },
  27018. verify: { type: 'boolean' }
  27019. },
  27020. url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'string' } } },
  27021. needBody: !0,
  27022. method: 'POST'
  27023. })),
  27024. (f.snapshot.prototype.delete = d({
  27025. params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
  27026. url: {
  27027. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
  27028. req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
  27029. },
  27030. method: 'DELETE'
  27031. })),
  27032. (f.snapshot.prototype.deleteRepository = d({
  27033. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  27034. url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
  27035. method: 'DELETE'
  27036. })),
  27037. (f.snapshot.prototype.get = d({
  27038. params: {
  27039. masterTimeout: { type: 'time', name: 'master_timeout' },
  27040. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  27041. verbose: { type: 'boolean' }
  27042. },
  27043. url: {
  27044. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
  27045. req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
  27046. }
  27047. })),
  27048. (f.snapshot.prototype.getRepository = d({
  27049. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, local: { type: 'boolean' } },
  27050. urls: [
  27051. { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
  27052. { fmt: '/_snapshot' }
  27053. ]
  27054. })),
  27055. (f.snapshot.prototype.restore = d({
  27056. params: {
  27057. masterTimeout: { type: 'time', name: 'master_timeout' },
  27058. waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
  27059. },
  27060. url: {
  27061. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_restore',
  27062. req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
  27063. },
  27064. method: 'POST'
  27065. })),
  27066. (f.snapshot.prototype.status = d({
  27067. params: {
  27068. masterTimeout: { type: 'time', name: 'master_timeout' },
  27069. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' }
  27070. },
  27071. urls: [
  27072. {
  27073. fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_status',
  27074. req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
  27075. },
  27076. { fmt: '/_snapshot/<%=repository%>/_status', req: { repository: { type: 'string' } } },
  27077. { fmt: '/_snapshot/_status' }
  27078. ]
  27079. })),
  27080. (f.snapshot.prototype.verifyRepository = d({
  27081. params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
  27082. url: { fmt: '/_snapshot/<%=repository%>/_verify', req: { repository: { type: 'string' } } },
  27083. method: 'POST'
  27084. })),
  27085. (f.tasks = e()),
  27086. (f.tasks.prototype.cancel = d({
  27087. params: {
  27088. nodes: { type: 'list' },
  27089. actions: { type: 'list' },
  27090. parentTaskId: { type: 'string', name: 'parent_task_id' }
  27091. },
  27092. urls: [
  27093. { fmt: '/_tasks/<%=taskId%>/_cancel', req: { taskId: { type: 'string' } } },
  27094. { fmt: '/_tasks/_cancel' }
  27095. ],
  27096. method: 'POST'
  27097. })),
  27098. (f.tasks.prototype.get = d({
  27099. params: {
  27100. waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
  27101. timeout: { type: 'time' }
  27102. },
  27103. url: { fmt: '/_tasks/<%=taskId%>', req: { taskId: { type: 'string' } } }
  27104. })),
  27105. (f.tasks.prototype.list = d({
  27106. params: {
  27107. nodes: { type: 'list' },
  27108. actions: { type: 'list' },
  27109. detailed: { type: 'boolean' },
  27110. parentTaskId: { type: 'string', name: 'parent_task_id' },
  27111. waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
  27112. groupBy: {
  27113. type: 'enum',
  27114. default: 'nodes',
  27115. options: ['nodes', 'parents', 'none'],
  27116. name: 'group_by'
  27117. },
  27118. timeout: { type: 'time' }
  27119. },
  27120. url: { fmt: '/_tasks' }
  27121. })),
  27122. (f.termvectors = d({
  27123. params: {
  27124. termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
  27125. fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
  27126. fields: { type: 'list', required: !1 },
  27127. offsets: { type: 'boolean', default: !0, required: !1 },
  27128. positions: { type: 'boolean', default: !0, required: !1 },
  27129. payloads: { type: 'boolean', default: !0, required: !1 },
  27130. preference: { type: 'string', required: !1 },
  27131. routing: { type: 'string', required: !1 },
  27132. realtime: { type: 'boolean', required: !1 },
  27133. version: { type: 'number' },
  27134. versionType: {
  27135. type: 'enum',
  27136. options: ['internal', 'external', 'external_gte', 'force'],
  27137. name: 'version_type'
  27138. }
  27139. },
  27140. urls: [
  27141. {
  27142. fmt: '/<%=index%>/_termvectors/<%=id%>',
  27143. req: { index: { type: 'string' }, id: { type: 'string' } }
  27144. },
  27145. { fmt: '/<%=index%>/_termvectors', req: { index: { type: 'string' } } }
  27146. ],
  27147. method: 'POST'
  27148. })),
  27149. (f.update = d({
  27150. params: {
  27151. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  27152. _source: { type: 'list' },
  27153. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  27154. _sourceIncludes: { type: 'list', name: '_source_includes' },
  27155. lang: { type: 'string' },
  27156. refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
  27157. retryOnConflict: { type: 'number', name: 'retry_on_conflict' },
  27158. routing: { type: 'string' },
  27159. timeout: { type: 'time' },
  27160. ifSeqNo: { type: 'number', name: 'if_seq_no' },
  27161. ifPrimaryTerm: {
  27162. type: 'number',
  27163. name: 'if_primary_term'
  27164. }
  27165. },
  27166. url: {
  27167. fmt: '/<%=index%>/_update/<%=id%>',
  27168. req: { index: { type: 'string' }, id: { type: 'string' } }
  27169. },
  27170. needBody: !0,
  27171. method: 'POST'
  27172. })),
  27173. (f.updateByQuery = d({
  27174. params: {
  27175. analyzer: { type: 'string' },
  27176. analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
  27177. defaultOperator: {
  27178. type: 'enum',
  27179. default: 'OR',
  27180. options: ['AND', 'OR'],
  27181. name: 'default_operator'
  27182. },
  27183. df: { type: 'string' },
  27184. from: { type: 'number' },
  27185. ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
  27186. allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
  27187. conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
  27188. expandWildcards: {
  27189. type: 'enum',
  27190. default: 'open',
  27191. options: ['open', 'closed', 'none', 'all'],
  27192. name: 'expand_wildcards'
  27193. },
  27194. lenient: { type: 'boolean' },
  27195. pipeline: { type: 'string' },
  27196. preference: { type: 'string' },
  27197. q: { type: 'string' },
  27198. routing: { type: 'list' },
  27199. scroll: { type: 'time' },
  27200. searchType: {
  27201. type: 'enum',
  27202. options: ['query_then_fetch', 'dfs_query_then_fetch'],
  27203. name: 'search_type'
  27204. },
  27205. searchTimeout: { type: 'time', name: 'search_timeout' },
  27206. maxDocs: { type: 'number', name: 'max_docs' },
  27207. sort: { type: 'list' },
  27208. _source: { type: 'list' },
  27209. _sourceExcludes: { type: 'list', name: '_source_excludes' },
  27210. _sourceIncludes: { type: 'list', name: '_source_includes' },
  27211. terminateAfter: { type: 'number', name: 'terminate_after' },
  27212. stats: { type: 'list' },
  27213. version: { type: 'boolean' },
  27214. versionType: { type: 'boolean', name: 'version_type' },
  27215. requestCache: { type: 'boolean', name: 'request_cache' },
  27216. refresh: { type: 'boolean' },
  27217. timeout: { type: 'time', default: '1m' },
  27218. waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
  27219. scrollSize: { type: 'number', name: 'scroll_size' },
  27220. waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
  27221. requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
  27222. slices: { type: 'number', default: 1 }
  27223. },
  27224. url: { fmt: '/<%=index%>/_update_by_query', req: { index: { type: 'list' } } },
  27225. method: 'POST'
  27226. })),
  27227. (f.updateByQueryRethrottle = d({
  27228. params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
  27229. url: { fmt: '/_update_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
  27230. method: 'POST'
  27231. }));
  27232. }
  27233. ]);
  27234. });
  27235. })();