f_00000f 169 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579
  1. import "/node_modules/.vite/deps/chunk-WQG2LZMB.js?v=9548b9c3";
  2. // node_modules/tslib/tslib.es6.js
  3. var extendStatics = function(d, b) {
  4. extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
  5. d2.__proto__ = b2;
  6. } || function(d2, b2) {
  7. for (var p in b2)
  8. if (Object.prototype.hasOwnProperty.call(b2, p))
  9. d2[p] = b2[p];
  10. };
  11. return extendStatics(d, b);
  12. };
  13. function __extends(d, b) {
  14. if (typeof b !== "function" && b !== null)
  15. throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
  16. extendStatics(d, b);
  17. function __() {
  18. this.constructor = d;
  19. }
  20. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  21. }
  22. function __awaiter(thisArg, _arguments, P, generator) {
  23. function adopt(value) {
  24. return value instanceof P ? value : new P(function(resolve) {
  25. resolve(value);
  26. });
  27. }
  28. return new (P || (P = Promise))(function(resolve, reject) {
  29. function fulfilled(value) {
  30. try {
  31. step(generator.next(value));
  32. } catch (e) {
  33. reject(e);
  34. }
  35. }
  36. function rejected(value) {
  37. try {
  38. step(generator["throw"](value));
  39. } catch (e) {
  40. reject(e);
  41. }
  42. }
  43. function step(result) {
  44. result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
  45. }
  46. step((generator = generator.apply(thisArg, _arguments || [])).next());
  47. });
  48. }
  49. function __generator(thisArg, body) {
  50. var _ = { label: 0, sent: function() {
  51. if (t[0] & 1)
  52. throw t[1];
  53. return t[1];
  54. }, trys: [], ops: [] }, f, y, t, g;
  55. return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
  56. return this;
  57. }), g;
  58. function verb(n) {
  59. return function(v) {
  60. return step([n, v]);
  61. };
  62. }
  63. function step(op) {
  64. if (f)
  65. throw new TypeError("Generator is already executing.");
  66. while (g && (g = 0, op[0] && (_ = 0)), _)
  67. try {
  68. if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
  69. return t;
  70. if (y = 0, t)
  71. op = [op[0] & 2, t.value];
  72. switch (op[0]) {
  73. case 0:
  74. case 1:
  75. t = op;
  76. break;
  77. case 4:
  78. _.label++;
  79. return { value: op[1], done: false };
  80. case 5:
  81. _.label++;
  82. y = op[1];
  83. op = [0];
  84. continue;
  85. case 7:
  86. op = _.ops.pop();
  87. _.trys.pop();
  88. continue;
  89. default:
  90. if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
  91. _ = 0;
  92. continue;
  93. }
  94. if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
  95. _.label = op[1];
  96. break;
  97. }
  98. if (op[0] === 6 && _.label < t[1]) {
  99. _.label = t[1];
  100. t = op;
  101. break;
  102. }
  103. if (t && _.label < t[2]) {
  104. _.label = t[2];
  105. _.ops.push(op);
  106. break;
  107. }
  108. if (t[2])
  109. _.ops.pop();
  110. _.trys.pop();
  111. continue;
  112. }
  113. op = body.call(thisArg, _);
  114. } catch (e) {
  115. op = [6, e];
  116. y = 0;
  117. } finally {
  118. f = t = 0;
  119. }
  120. if (op[0] & 5)
  121. throw op[1];
  122. return { value: op[0] ? op[1] : void 0, done: true };
  123. }
  124. }
  125. function __values(o) {
  126. var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
  127. if (m)
  128. return m.call(o);
  129. if (o && typeof o.length === "number")
  130. return {
  131. next: function() {
  132. if (o && i >= o.length)
  133. o = void 0;
  134. return { value: o && o[i++], done: !o };
  135. }
  136. };
  137. throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
  138. }
  139. function __read(o, n) {
  140. var m = typeof Symbol === "function" && o[Symbol.iterator];
  141. if (!m)
  142. return o;
  143. var i = m.call(o), r, ar = [], e;
  144. try {
  145. while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
  146. ar.push(r.value);
  147. } catch (error) {
  148. e = { error };
  149. } finally {
  150. try {
  151. if (r && !r.done && (m = i["return"]))
  152. m.call(i);
  153. } finally {
  154. if (e)
  155. throw e.error;
  156. }
  157. }
  158. return ar;
  159. }
  160. function __spreadArray(to, from2, pack) {
  161. if (pack || arguments.length === 2)
  162. for (var i = 0, l = from2.length, ar; i < l; i++) {
  163. if (ar || !(i in from2)) {
  164. if (!ar)
  165. ar = Array.prototype.slice.call(from2, 0, i);
  166. ar[i] = from2[i];
  167. }
  168. }
  169. return to.concat(ar || Array.prototype.slice.call(from2));
  170. }
  171. function __await(v) {
  172. return this instanceof __await ? (this.v = v, this) : new __await(v);
  173. }
  174. function __asyncGenerator(thisArg, _arguments, generator) {
  175. if (!Symbol.asyncIterator)
  176. throw new TypeError("Symbol.asyncIterator is not defined.");
  177. var g = generator.apply(thisArg, _arguments || []), i, q = [];
  178. return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
  179. return this;
  180. }, i;
  181. function verb(n) {
  182. if (g[n])
  183. i[n] = function(v) {
  184. return new Promise(function(a, b) {
  185. q.push([n, v, a, b]) > 1 || resume(n, v);
  186. });
  187. };
  188. }
  189. function resume(n, v) {
  190. try {
  191. step(g[n](v));
  192. } catch (e) {
  193. settle(q[0][3], e);
  194. }
  195. }
  196. function step(r) {
  197. r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
  198. }
  199. function fulfill(value) {
  200. resume("next", value);
  201. }
  202. function reject(value) {
  203. resume("throw", value);
  204. }
  205. function settle(f, v) {
  206. if (f(v), q.shift(), q.length)
  207. resume(q[0][0], q[0][1]);
  208. }
  209. }
  210. function __asyncValues(o) {
  211. if (!Symbol.asyncIterator)
  212. throw new TypeError("Symbol.asyncIterator is not defined.");
  213. var m = o[Symbol.asyncIterator], i;
  214. return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
  215. return this;
  216. }, i);
  217. function verb(n) {
  218. i[n] = o[n] && function(v) {
  219. return new Promise(function(resolve, reject) {
  220. v = o[n](v), settle(resolve, reject, v.done, v.value);
  221. });
  222. };
  223. }
  224. function settle(resolve, reject, d, v) {
  225. Promise.resolve(v).then(function(v2) {
  226. resolve({ value: v2, done: d });
  227. }, reject);
  228. }
  229. }
  230. // node_modules/rxjs/dist/esm5/internal/util/isFunction.js
  231. function isFunction(value) {
  232. return typeof value === "function";
  233. }
  234. // node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js
  235. function createErrorClass(createImpl) {
  236. var _super = function(instance) {
  237. Error.call(instance);
  238. instance.stack = new Error().stack;
  239. };
  240. var ctorFunc = createImpl(_super);
  241. ctorFunc.prototype = Object.create(Error.prototype);
  242. ctorFunc.prototype.constructor = ctorFunc;
  243. return ctorFunc;
  244. }
  245. // node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js
  246. var UnsubscriptionError = createErrorClass(function(_super) {
  247. return function UnsubscriptionErrorImpl(errors) {
  248. _super(this);
  249. this.message = errors ? errors.length + " errors occurred during unsubscription:\n" + errors.map(function(err, i) {
  250. return i + 1 + ") " + err.toString();
  251. }).join("\n ") : "";
  252. this.name = "UnsubscriptionError";
  253. this.errors = errors;
  254. };
  255. });
  256. // node_modules/rxjs/dist/esm5/internal/util/arrRemove.js
  257. function arrRemove(arr, item) {
  258. if (arr) {
  259. var index = arr.indexOf(item);
  260. 0 <= index && arr.splice(index, 1);
  261. }
  262. }
  263. // node_modules/rxjs/dist/esm5/internal/Subscription.js
  264. var Subscription = function() {
  265. function Subscription2(initialTeardown) {
  266. this.initialTeardown = initialTeardown;
  267. this.closed = false;
  268. this._parentage = null;
  269. this._finalizers = null;
  270. }
  271. Subscription2.prototype.unsubscribe = function() {
  272. var e_1, _a, e_2, _b;
  273. var errors;
  274. if (!this.closed) {
  275. this.closed = true;
  276. var _parentage = this._parentage;
  277. if (_parentage) {
  278. this._parentage = null;
  279. if (Array.isArray(_parentage)) {
  280. try {
  281. for (var _parentage_1 = __values(_parentage), _parentage_1_1 = _parentage_1.next(); !_parentage_1_1.done; _parentage_1_1 = _parentage_1.next()) {
  282. var parent_1 = _parentage_1_1.value;
  283. parent_1.remove(this);
  284. }
  285. } catch (e_1_1) {
  286. e_1 = { error: e_1_1 };
  287. } finally {
  288. try {
  289. if (_parentage_1_1 && !_parentage_1_1.done && (_a = _parentage_1.return))
  290. _a.call(_parentage_1);
  291. } finally {
  292. if (e_1)
  293. throw e_1.error;
  294. }
  295. }
  296. } else {
  297. _parentage.remove(this);
  298. }
  299. }
  300. var initialFinalizer = this.initialTeardown;
  301. if (isFunction(initialFinalizer)) {
  302. try {
  303. initialFinalizer();
  304. } catch (e) {
  305. errors = e instanceof UnsubscriptionError ? e.errors : [e];
  306. }
  307. }
  308. var _finalizers = this._finalizers;
  309. if (_finalizers) {
  310. this._finalizers = null;
  311. try {
  312. for (var _finalizers_1 = __values(_finalizers), _finalizers_1_1 = _finalizers_1.next(); !_finalizers_1_1.done; _finalizers_1_1 = _finalizers_1.next()) {
  313. var finalizer = _finalizers_1_1.value;
  314. try {
  315. execFinalizer(finalizer);
  316. } catch (err) {
  317. errors = errors !== null && errors !== void 0 ? errors : [];
  318. if (err instanceof UnsubscriptionError) {
  319. errors = __spreadArray(__spreadArray([], __read(errors)), __read(err.errors));
  320. } else {
  321. errors.push(err);
  322. }
  323. }
  324. }
  325. } catch (e_2_1) {
  326. e_2 = { error: e_2_1 };
  327. } finally {
  328. try {
  329. if (_finalizers_1_1 && !_finalizers_1_1.done && (_b = _finalizers_1.return))
  330. _b.call(_finalizers_1);
  331. } finally {
  332. if (e_2)
  333. throw e_2.error;
  334. }
  335. }
  336. }
  337. if (errors) {
  338. throw new UnsubscriptionError(errors);
  339. }
  340. }
  341. };
  342. Subscription2.prototype.add = function(teardown) {
  343. var _a;
  344. if (teardown && teardown !== this) {
  345. if (this.closed) {
  346. execFinalizer(teardown);
  347. } else {
  348. if (teardown instanceof Subscription2) {
  349. if (teardown.closed || teardown._hasParent(this)) {
  350. return;
  351. }
  352. teardown._addParent(this);
  353. }
  354. (this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown);
  355. }
  356. }
  357. };
  358. Subscription2.prototype._hasParent = function(parent) {
  359. var _parentage = this._parentage;
  360. return _parentage === parent || Array.isArray(_parentage) && _parentage.includes(parent);
  361. };
  362. Subscription2.prototype._addParent = function(parent) {
  363. var _parentage = this._parentage;
  364. this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;
  365. };
  366. Subscription2.prototype._removeParent = function(parent) {
  367. var _parentage = this._parentage;
  368. if (_parentage === parent) {
  369. this._parentage = null;
  370. } else if (Array.isArray(_parentage)) {
  371. arrRemove(_parentage, parent);
  372. }
  373. };
  374. Subscription2.prototype.remove = function(teardown) {
  375. var _finalizers = this._finalizers;
  376. _finalizers && arrRemove(_finalizers, teardown);
  377. if (teardown instanceof Subscription2) {
  378. teardown._removeParent(this);
  379. }
  380. };
  381. Subscription2.EMPTY = function() {
  382. var empty2 = new Subscription2();
  383. empty2.closed = true;
  384. return empty2;
  385. }();
  386. return Subscription2;
  387. }();
  388. var EMPTY_SUBSCRIPTION = Subscription.EMPTY;
  389. function isSubscription(value) {
  390. return value instanceof Subscription || value && "closed" in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe);
  391. }
  392. function execFinalizer(finalizer) {
  393. if (isFunction(finalizer)) {
  394. finalizer();
  395. } else {
  396. finalizer.unsubscribe();
  397. }
  398. }
  399. // node_modules/rxjs/dist/esm5/internal/config.js
  400. var config = {
  401. onUnhandledError: null,
  402. onStoppedNotification: null,
  403. Promise: void 0,
  404. useDeprecatedSynchronousErrorHandling: false,
  405. useDeprecatedNextContext: false
  406. };
  407. // node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js
  408. var timeoutProvider = {
  409. setTimeout: function(handler, timeout2) {
  410. var args = [];
  411. for (var _i = 2; _i < arguments.length; _i++) {
  412. args[_i - 2] = arguments[_i];
  413. }
  414. var delegate = timeoutProvider.delegate;
  415. if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {
  416. return delegate.setTimeout.apply(delegate, __spreadArray([handler, timeout2], __read(args)));
  417. }
  418. return setTimeout.apply(void 0, __spreadArray([handler, timeout2], __read(args)));
  419. },
  420. clearTimeout: function(handle) {
  421. var delegate = timeoutProvider.delegate;
  422. return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);
  423. },
  424. delegate: void 0
  425. };
  426. // node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js
  427. function reportUnhandledError(err) {
  428. timeoutProvider.setTimeout(function() {
  429. var onUnhandledError = config.onUnhandledError;
  430. if (onUnhandledError) {
  431. onUnhandledError(err);
  432. } else {
  433. throw err;
  434. }
  435. });
  436. }
  437. // node_modules/rxjs/dist/esm5/internal/util/noop.js
  438. function noop() {
  439. }
  440. // node_modules/rxjs/dist/esm5/internal/NotificationFactories.js
  441. var COMPLETE_NOTIFICATION = function() {
  442. return createNotification("C", void 0, void 0);
  443. }();
  444. function errorNotification(error) {
  445. return createNotification("E", void 0, error);
  446. }
  447. function nextNotification(value) {
  448. return createNotification("N", value, void 0);
  449. }
  450. function createNotification(kind, value, error) {
  451. return {
  452. kind,
  453. value,
  454. error
  455. };
  456. }
  457. // node_modules/rxjs/dist/esm5/internal/util/errorContext.js
  458. var context = null;
  459. function errorContext(cb) {
  460. if (config.useDeprecatedSynchronousErrorHandling) {
  461. var isRoot = !context;
  462. if (isRoot) {
  463. context = { errorThrown: false, error: null };
  464. }
  465. cb();
  466. if (isRoot) {
  467. var _a = context, errorThrown = _a.errorThrown, error = _a.error;
  468. context = null;
  469. if (errorThrown) {
  470. throw error;
  471. }
  472. }
  473. } else {
  474. cb();
  475. }
  476. }
  477. function captureError(err) {
  478. if (config.useDeprecatedSynchronousErrorHandling && context) {
  479. context.errorThrown = true;
  480. context.error = err;
  481. }
  482. }
  483. // node_modules/rxjs/dist/esm5/internal/Subscriber.js
  484. var Subscriber = function(_super) {
  485. __extends(Subscriber2, _super);
  486. function Subscriber2(destination) {
  487. var _this = _super.call(this) || this;
  488. _this.isStopped = false;
  489. if (destination) {
  490. _this.destination = destination;
  491. if (isSubscription(destination)) {
  492. destination.add(_this);
  493. }
  494. } else {
  495. _this.destination = EMPTY_OBSERVER;
  496. }
  497. return _this;
  498. }
  499. Subscriber2.create = function(next, error, complete) {
  500. return new SafeSubscriber(next, error, complete);
  501. };
  502. Subscriber2.prototype.next = function(value) {
  503. if (this.isStopped) {
  504. handleStoppedNotification(nextNotification(value), this);
  505. } else {
  506. this._next(value);
  507. }
  508. };
  509. Subscriber2.prototype.error = function(err) {
  510. if (this.isStopped) {
  511. handleStoppedNotification(errorNotification(err), this);
  512. } else {
  513. this.isStopped = true;
  514. this._error(err);
  515. }
  516. };
  517. Subscriber2.prototype.complete = function() {
  518. if (this.isStopped) {
  519. handleStoppedNotification(COMPLETE_NOTIFICATION, this);
  520. } else {
  521. this.isStopped = true;
  522. this._complete();
  523. }
  524. };
  525. Subscriber2.prototype.unsubscribe = function() {
  526. if (!this.closed) {
  527. this.isStopped = true;
  528. _super.prototype.unsubscribe.call(this);
  529. this.destination = null;
  530. }
  531. };
  532. Subscriber2.prototype._next = function(value) {
  533. this.destination.next(value);
  534. };
  535. Subscriber2.prototype._error = function(err) {
  536. try {
  537. this.destination.error(err);
  538. } finally {
  539. this.unsubscribe();
  540. }
  541. };
  542. Subscriber2.prototype._complete = function() {
  543. try {
  544. this.destination.complete();
  545. } finally {
  546. this.unsubscribe();
  547. }
  548. };
  549. return Subscriber2;
  550. }(Subscription);
  551. var _bind = Function.prototype.bind;
  552. function bind(fn, thisArg) {
  553. return _bind.call(fn, thisArg);
  554. }
  555. var ConsumerObserver = function() {
  556. function ConsumerObserver2(partialObserver) {
  557. this.partialObserver = partialObserver;
  558. }
  559. ConsumerObserver2.prototype.next = function(value) {
  560. var partialObserver = this.partialObserver;
  561. if (partialObserver.next) {
  562. try {
  563. partialObserver.next(value);
  564. } catch (error) {
  565. handleUnhandledError(error);
  566. }
  567. }
  568. };
  569. ConsumerObserver2.prototype.error = function(err) {
  570. var partialObserver = this.partialObserver;
  571. if (partialObserver.error) {
  572. try {
  573. partialObserver.error(err);
  574. } catch (error) {
  575. handleUnhandledError(error);
  576. }
  577. } else {
  578. handleUnhandledError(err);
  579. }
  580. };
  581. ConsumerObserver2.prototype.complete = function() {
  582. var partialObserver = this.partialObserver;
  583. if (partialObserver.complete) {
  584. try {
  585. partialObserver.complete();
  586. } catch (error) {
  587. handleUnhandledError(error);
  588. }
  589. }
  590. };
  591. return ConsumerObserver2;
  592. }();
  593. var SafeSubscriber = function(_super) {
  594. __extends(SafeSubscriber2, _super);
  595. function SafeSubscriber2(observerOrNext, error, complete) {
  596. var _this = _super.call(this) || this;
  597. var partialObserver;
  598. if (isFunction(observerOrNext) || !observerOrNext) {
  599. partialObserver = {
  600. next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : void 0,
  601. error: error !== null && error !== void 0 ? error : void 0,
  602. complete: complete !== null && complete !== void 0 ? complete : void 0
  603. };
  604. } else {
  605. var context_1;
  606. if (_this && config.useDeprecatedNextContext) {
  607. context_1 = Object.create(observerOrNext);
  608. context_1.unsubscribe = function() {
  609. return _this.unsubscribe();
  610. };
  611. partialObserver = {
  612. next: observerOrNext.next && bind(observerOrNext.next, context_1),
  613. error: observerOrNext.error && bind(observerOrNext.error, context_1),
  614. complete: observerOrNext.complete && bind(observerOrNext.complete, context_1)
  615. };
  616. } else {
  617. partialObserver = observerOrNext;
  618. }
  619. }
  620. _this.destination = new ConsumerObserver(partialObserver);
  621. return _this;
  622. }
  623. return SafeSubscriber2;
  624. }(Subscriber);
  625. function handleUnhandledError(error) {
  626. if (config.useDeprecatedSynchronousErrorHandling) {
  627. captureError(error);
  628. } else {
  629. reportUnhandledError(error);
  630. }
  631. }
  632. function defaultErrorHandler(err) {
  633. throw err;
  634. }
  635. function handleStoppedNotification(notification, subscriber) {
  636. var onStoppedNotification = config.onStoppedNotification;
  637. onStoppedNotification && timeoutProvider.setTimeout(function() {
  638. return onStoppedNotification(notification, subscriber);
  639. });
  640. }
  641. var EMPTY_OBSERVER = {
  642. closed: true,
  643. next: noop,
  644. error: defaultErrorHandler,
  645. complete: noop
  646. };
  647. // node_modules/rxjs/dist/esm5/internal/symbol/observable.js
  648. var observable = function() {
  649. return typeof Symbol === "function" && Symbol.observable || "@@observable";
  650. }();
  651. // node_modules/rxjs/dist/esm5/internal/util/identity.js
  652. function identity(x) {
  653. return x;
  654. }
  655. // node_modules/rxjs/dist/esm5/internal/util/pipe.js
  656. function pipe() {
  657. var fns = [];
  658. for (var _i = 0; _i < arguments.length; _i++) {
  659. fns[_i] = arguments[_i];
  660. }
  661. return pipeFromArray(fns);
  662. }
  663. function pipeFromArray(fns) {
  664. if (fns.length === 0) {
  665. return identity;
  666. }
  667. if (fns.length === 1) {
  668. return fns[0];
  669. }
  670. return function piped(input) {
  671. return fns.reduce(function(prev, fn) {
  672. return fn(prev);
  673. }, input);
  674. };
  675. }
  676. // node_modules/rxjs/dist/esm5/internal/Observable.js
  677. var Observable = function() {
  678. function Observable2(subscribe) {
  679. if (subscribe) {
  680. this._subscribe = subscribe;
  681. }
  682. }
  683. Observable2.prototype.lift = function(operator) {
  684. var observable2 = new Observable2();
  685. observable2.source = this;
  686. observable2.operator = operator;
  687. return observable2;
  688. };
  689. Observable2.prototype.subscribe = function(observerOrNext, error, complete) {
  690. var _this = this;
  691. var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);
  692. errorContext(function() {
  693. var _a = _this, operator = _a.operator, source = _a.source;
  694. subscriber.add(operator ? operator.call(subscriber, source) : source ? _this._subscribe(subscriber) : _this._trySubscribe(subscriber));
  695. });
  696. return subscriber;
  697. };
  698. Observable2.prototype._trySubscribe = function(sink) {
  699. try {
  700. return this._subscribe(sink);
  701. } catch (err) {
  702. sink.error(err);
  703. }
  704. };
  705. Observable2.prototype.forEach = function(next, promiseCtor) {
  706. var _this = this;
  707. promiseCtor = getPromiseCtor(promiseCtor);
  708. return new promiseCtor(function(resolve, reject) {
  709. var subscriber = new SafeSubscriber({
  710. next: function(value) {
  711. try {
  712. next(value);
  713. } catch (err) {
  714. reject(err);
  715. subscriber.unsubscribe();
  716. }
  717. },
  718. error: reject,
  719. complete: resolve
  720. });
  721. _this.subscribe(subscriber);
  722. });
  723. };
  724. Observable2.prototype._subscribe = function(subscriber) {
  725. var _a;
  726. return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber);
  727. };
  728. Observable2.prototype[observable] = function() {
  729. return this;
  730. };
  731. Observable2.prototype.pipe = function() {
  732. var operations = [];
  733. for (var _i = 0; _i < arguments.length; _i++) {
  734. operations[_i] = arguments[_i];
  735. }
  736. return pipeFromArray(operations)(this);
  737. };
  738. Observable2.prototype.toPromise = function(promiseCtor) {
  739. var _this = this;
  740. promiseCtor = getPromiseCtor(promiseCtor);
  741. return new promiseCtor(function(resolve, reject) {
  742. var value;
  743. _this.subscribe(function(x) {
  744. return value = x;
  745. }, function(err) {
  746. return reject(err);
  747. }, function() {
  748. return resolve(value);
  749. });
  750. });
  751. };
  752. Observable2.create = function(subscribe) {
  753. return new Observable2(subscribe);
  754. };
  755. return Observable2;
  756. }();
  757. function getPromiseCtor(promiseCtor) {
  758. var _a;
  759. return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise;
  760. }
  761. function isObserver(value) {
  762. return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);
  763. }
  764. function isSubscriber(value) {
  765. return value && value instanceof Subscriber || isObserver(value) && isSubscription(value);
  766. }
  767. // node_modules/rxjs/dist/esm5/internal/util/lift.js
  768. function hasLift(source) {
  769. return isFunction(source === null || source === void 0 ? void 0 : source.lift);
  770. }
  771. function operate(init) {
  772. return function(source) {
  773. if (hasLift(source)) {
  774. return source.lift(function(liftedSource) {
  775. try {
  776. return init(liftedSource, this);
  777. } catch (err) {
  778. this.error(err);
  779. }
  780. });
  781. }
  782. throw new TypeError("Unable to lift unknown Observable type");
  783. };
  784. }
  785. // node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js
  786. function createOperatorSubscriber(destination, onNext, onComplete, onError, onFinalize) {
  787. return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize);
  788. }
  789. var OperatorSubscriber = function(_super) {
  790. __extends(OperatorSubscriber2, _super);
  791. function OperatorSubscriber2(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
  792. var _this = _super.call(this, destination) || this;
  793. _this.onFinalize = onFinalize;
  794. _this.shouldUnsubscribe = shouldUnsubscribe;
  795. _this._next = onNext ? function(value) {
  796. try {
  797. onNext(value);
  798. } catch (err) {
  799. destination.error(err);
  800. }
  801. } : _super.prototype._next;
  802. _this._error = onError ? function(err) {
  803. try {
  804. onError(err);
  805. } catch (err2) {
  806. destination.error(err2);
  807. } finally {
  808. this.unsubscribe();
  809. }
  810. } : _super.prototype._error;
  811. _this._complete = onComplete ? function() {
  812. try {
  813. onComplete();
  814. } catch (err) {
  815. destination.error(err);
  816. } finally {
  817. this.unsubscribe();
  818. }
  819. } : _super.prototype._complete;
  820. return _this;
  821. }
  822. OperatorSubscriber2.prototype.unsubscribe = function() {
  823. var _a;
  824. if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
  825. var closed_1 = this.closed;
  826. _super.prototype.unsubscribe.call(this);
  827. !closed_1 && ((_a = this.onFinalize) === null || _a === void 0 ? void 0 : _a.call(this));
  828. }
  829. };
  830. return OperatorSubscriber2;
  831. }(Subscriber);
  832. // node_modules/rxjs/dist/esm5/internal/operators/refCount.js
  833. function refCount() {
  834. return operate(function(source, subscriber) {
  835. var connection = null;
  836. source._refCount++;
  837. var refCounter = createOperatorSubscriber(subscriber, void 0, void 0, void 0, function() {
  838. if (!source || source._refCount <= 0 || 0 < --source._refCount) {
  839. connection = null;
  840. return;
  841. }
  842. var sharedConnection = source._connection;
  843. var conn = connection;
  844. connection = null;
  845. if (sharedConnection && (!conn || sharedConnection === conn)) {
  846. sharedConnection.unsubscribe();
  847. }
  848. subscriber.unsubscribe();
  849. });
  850. source.subscribe(refCounter);
  851. if (!refCounter.closed) {
  852. connection = source.connect();
  853. }
  854. });
  855. }
  856. // node_modules/rxjs/dist/esm5/internal/observable/ConnectableObservable.js
  857. var ConnectableObservable = function(_super) {
  858. __extends(ConnectableObservable2, _super);
  859. function ConnectableObservable2(source, subjectFactory) {
  860. var _this = _super.call(this) || this;
  861. _this.source = source;
  862. _this.subjectFactory = subjectFactory;
  863. _this._subject = null;
  864. _this._refCount = 0;
  865. _this._connection = null;
  866. if (hasLift(source)) {
  867. _this.lift = source.lift;
  868. }
  869. return _this;
  870. }
  871. ConnectableObservable2.prototype._subscribe = function(subscriber) {
  872. return this.getSubject().subscribe(subscriber);
  873. };
  874. ConnectableObservable2.prototype.getSubject = function() {
  875. var subject = this._subject;
  876. if (!subject || subject.isStopped) {
  877. this._subject = this.subjectFactory();
  878. }
  879. return this._subject;
  880. };
  881. ConnectableObservable2.prototype._teardown = function() {
  882. this._refCount = 0;
  883. var _connection = this._connection;
  884. this._subject = this._connection = null;
  885. _connection === null || _connection === void 0 ? void 0 : _connection.unsubscribe();
  886. };
  887. ConnectableObservable2.prototype.connect = function() {
  888. var _this = this;
  889. var connection = this._connection;
  890. if (!connection) {
  891. connection = this._connection = new Subscription();
  892. var subject_1 = this.getSubject();
  893. connection.add(this.source.subscribe(createOperatorSubscriber(subject_1, void 0, function() {
  894. _this._teardown();
  895. subject_1.complete();
  896. }, function(err) {
  897. _this._teardown();
  898. subject_1.error(err);
  899. }, function() {
  900. return _this._teardown();
  901. })));
  902. if (connection.closed) {
  903. this._connection = null;
  904. connection = Subscription.EMPTY;
  905. }
  906. }
  907. return connection;
  908. };
  909. ConnectableObservable2.prototype.refCount = function() {
  910. return refCount()(this);
  911. };
  912. return ConnectableObservable2;
  913. }(Observable);
  914. // node_modules/rxjs/dist/esm5/internal/scheduler/performanceTimestampProvider.js
  915. var performanceTimestampProvider = {
  916. now: function() {
  917. return (performanceTimestampProvider.delegate || performance).now();
  918. },
  919. delegate: void 0
  920. };
  921. // node_modules/rxjs/dist/esm5/internal/scheduler/animationFrameProvider.js
  922. var animationFrameProvider = {
  923. schedule: function(callback) {
  924. var request = requestAnimationFrame;
  925. var cancel = cancelAnimationFrame;
  926. var delegate = animationFrameProvider.delegate;
  927. if (delegate) {
  928. request = delegate.requestAnimationFrame;
  929. cancel = delegate.cancelAnimationFrame;
  930. }
  931. var handle = request(function(timestamp2) {
  932. cancel = void 0;
  933. callback(timestamp2);
  934. });
  935. return new Subscription(function() {
  936. return cancel === null || cancel === void 0 ? void 0 : cancel(handle);
  937. });
  938. },
  939. requestAnimationFrame: function() {
  940. var args = [];
  941. for (var _i = 0; _i < arguments.length; _i++) {
  942. args[_i] = arguments[_i];
  943. }
  944. var delegate = animationFrameProvider.delegate;
  945. return ((delegate === null || delegate === void 0 ? void 0 : delegate.requestAnimationFrame) || requestAnimationFrame).apply(void 0, __spreadArray([], __read(args)));
  946. },
  947. cancelAnimationFrame: function() {
  948. var args = [];
  949. for (var _i = 0; _i < arguments.length; _i++) {
  950. args[_i] = arguments[_i];
  951. }
  952. var delegate = animationFrameProvider.delegate;
  953. return ((delegate === null || delegate === void 0 ? void 0 : delegate.cancelAnimationFrame) || cancelAnimationFrame).apply(void 0, __spreadArray([], __read(args)));
  954. },
  955. delegate: void 0
  956. };
  957. // node_modules/rxjs/dist/esm5/internal/observable/dom/animationFrames.js
  958. function animationFrames(timestampProvider) {
  959. return timestampProvider ? animationFramesFactory(timestampProvider) : DEFAULT_ANIMATION_FRAMES;
  960. }
  961. function animationFramesFactory(timestampProvider) {
  962. return new Observable(function(subscriber) {
  963. var provider = timestampProvider || performanceTimestampProvider;
  964. var start = provider.now();
  965. var id = 0;
  966. var run = function() {
  967. if (!subscriber.closed) {
  968. id = animationFrameProvider.requestAnimationFrame(function(timestamp2) {
  969. id = 0;
  970. var now = provider.now();
  971. subscriber.next({
  972. timestamp: timestampProvider ? now : timestamp2,
  973. elapsed: now - start
  974. });
  975. run();
  976. });
  977. }
  978. };
  979. run();
  980. return function() {
  981. if (id) {
  982. animationFrameProvider.cancelAnimationFrame(id);
  983. }
  984. };
  985. });
  986. }
  987. var DEFAULT_ANIMATION_FRAMES = animationFramesFactory();
  988. // node_modules/rxjs/dist/esm5/internal/util/ObjectUnsubscribedError.js
  989. var ObjectUnsubscribedError = createErrorClass(function(_super) {
  990. return function ObjectUnsubscribedErrorImpl() {
  991. _super(this);
  992. this.name = "ObjectUnsubscribedError";
  993. this.message = "object unsubscribed";
  994. };
  995. });
  996. // node_modules/rxjs/dist/esm5/internal/Subject.js
  997. var Subject = function(_super) {
  998. __extends(Subject2, _super);
  999. function Subject2() {
  1000. var _this = _super.call(this) || this;
  1001. _this.closed = false;
  1002. _this.currentObservers = null;
  1003. _this.observers = [];
  1004. _this.isStopped = false;
  1005. _this.hasError = false;
  1006. _this.thrownError = null;
  1007. return _this;
  1008. }
  1009. Subject2.prototype.lift = function(operator) {
  1010. var subject = new AnonymousSubject(this, this);
  1011. subject.operator = operator;
  1012. return subject;
  1013. };
  1014. Subject2.prototype._throwIfClosed = function() {
  1015. if (this.closed) {
  1016. throw new ObjectUnsubscribedError();
  1017. }
  1018. };
  1019. Subject2.prototype.next = function(value) {
  1020. var _this = this;
  1021. errorContext(function() {
  1022. var e_1, _a;
  1023. _this._throwIfClosed();
  1024. if (!_this.isStopped) {
  1025. if (!_this.currentObservers) {
  1026. _this.currentObservers = Array.from(_this.observers);
  1027. }
  1028. try {
  1029. for (var _b = __values(_this.currentObservers), _c = _b.next(); !_c.done; _c = _b.next()) {
  1030. var observer = _c.value;
  1031. observer.next(value);
  1032. }
  1033. } catch (e_1_1) {
  1034. e_1 = { error: e_1_1 };
  1035. } finally {
  1036. try {
  1037. if (_c && !_c.done && (_a = _b.return))
  1038. _a.call(_b);
  1039. } finally {
  1040. if (e_1)
  1041. throw e_1.error;
  1042. }
  1043. }
  1044. }
  1045. });
  1046. };
  1047. Subject2.prototype.error = function(err) {
  1048. var _this = this;
  1049. errorContext(function() {
  1050. _this._throwIfClosed();
  1051. if (!_this.isStopped) {
  1052. _this.hasError = _this.isStopped = true;
  1053. _this.thrownError = err;
  1054. var observers = _this.observers;
  1055. while (observers.length) {
  1056. observers.shift().error(err);
  1057. }
  1058. }
  1059. });
  1060. };
  1061. Subject2.prototype.complete = function() {
  1062. var _this = this;
  1063. errorContext(function() {
  1064. _this._throwIfClosed();
  1065. if (!_this.isStopped) {
  1066. _this.isStopped = true;
  1067. var observers = _this.observers;
  1068. while (observers.length) {
  1069. observers.shift().complete();
  1070. }
  1071. }
  1072. });
  1073. };
  1074. Subject2.prototype.unsubscribe = function() {
  1075. this.isStopped = this.closed = true;
  1076. this.observers = this.currentObservers = null;
  1077. };
  1078. Object.defineProperty(Subject2.prototype, "observed", {
  1079. get: function() {
  1080. var _a;
  1081. return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0;
  1082. },
  1083. enumerable: false,
  1084. configurable: true
  1085. });
  1086. Subject2.prototype._trySubscribe = function(subscriber) {
  1087. this._throwIfClosed();
  1088. return _super.prototype._trySubscribe.call(this, subscriber);
  1089. };
  1090. Subject2.prototype._subscribe = function(subscriber) {
  1091. this._throwIfClosed();
  1092. this._checkFinalizedStatuses(subscriber);
  1093. return this._innerSubscribe(subscriber);
  1094. };
  1095. Subject2.prototype._innerSubscribe = function(subscriber) {
  1096. var _this = this;
  1097. var _a = this, hasError = _a.hasError, isStopped = _a.isStopped, observers = _a.observers;
  1098. if (hasError || isStopped) {
  1099. return EMPTY_SUBSCRIPTION;
  1100. }
  1101. this.currentObservers = null;
  1102. observers.push(subscriber);
  1103. return new Subscription(function() {
  1104. _this.currentObservers = null;
  1105. arrRemove(observers, subscriber);
  1106. });
  1107. };
  1108. Subject2.prototype._checkFinalizedStatuses = function(subscriber) {
  1109. var _a = this, hasError = _a.hasError, thrownError = _a.thrownError, isStopped = _a.isStopped;
  1110. if (hasError) {
  1111. subscriber.error(thrownError);
  1112. } else if (isStopped) {
  1113. subscriber.complete();
  1114. }
  1115. };
  1116. Subject2.prototype.asObservable = function() {
  1117. var observable2 = new Observable();
  1118. observable2.source = this;
  1119. return observable2;
  1120. };
  1121. Subject2.create = function(destination, source) {
  1122. return new AnonymousSubject(destination, source);
  1123. };
  1124. return Subject2;
  1125. }(Observable);
  1126. var AnonymousSubject = function(_super) {
  1127. __extends(AnonymousSubject2, _super);
  1128. function AnonymousSubject2(destination, source) {
  1129. var _this = _super.call(this) || this;
  1130. _this.destination = destination;
  1131. _this.source = source;
  1132. return _this;
  1133. }
  1134. AnonymousSubject2.prototype.next = function(value) {
  1135. var _a, _b;
  1136. (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value);
  1137. };
  1138. AnonymousSubject2.prototype.error = function(err) {
  1139. var _a, _b;
  1140. (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err);
  1141. };
  1142. AnonymousSubject2.prototype.complete = function() {
  1143. var _a, _b;
  1144. (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a);
  1145. };
  1146. AnonymousSubject2.prototype._subscribe = function(subscriber) {
  1147. var _a, _b;
  1148. return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;
  1149. };
  1150. return AnonymousSubject2;
  1151. }(Subject);
  1152. // node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js
  1153. var BehaviorSubject = function(_super) {
  1154. __extends(BehaviorSubject2, _super);
  1155. function BehaviorSubject2(_value) {
  1156. var _this = _super.call(this) || this;
  1157. _this._value = _value;
  1158. return _this;
  1159. }
  1160. Object.defineProperty(BehaviorSubject2.prototype, "value", {
  1161. get: function() {
  1162. return this.getValue();
  1163. },
  1164. enumerable: false,
  1165. configurable: true
  1166. });
  1167. BehaviorSubject2.prototype._subscribe = function(subscriber) {
  1168. var subscription = _super.prototype._subscribe.call(this, subscriber);
  1169. !subscription.closed && subscriber.next(this._value);
  1170. return subscription;
  1171. };
  1172. BehaviorSubject2.prototype.getValue = function() {
  1173. var _a = this, hasError = _a.hasError, thrownError = _a.thrownError, _value = _a._value;
  1174. if (hasError) {
  1175. throw thrownError;
  1176. }
  1177. this._throwIfClosed();
  1178. return _value;
  1179. };
  1180. BehaviorSubject2.prototype.next = function(value) {
  1181. _super.prototype.next.call(this, this._value = value);
  1182. };
  1183. return BehaviorSubject2;
  1184. }(Subject);
  1185. // node_modules/rxjs/dist/esm5/internal/scheduler/dateTimestampProvider.js
  1186. var dateTimestampProvider = {
  1187. now: function() {
  1188. return (dateTimestampProvider.delegate || Date).now();
  1189. },
  1190. delegate: void 0
  1191. };
  1192. // node_modules/rxjs/dist/esm5/internal/ReplaySubject.js
  1193. var ReplaySubject = function(_super) {
  1194. __extends(ReplaySubject2, _super);
  1195. function ReplaySubject2(_bufferSize, _windowTime, _timestampProvider) {
  1196. if (_bufferSize === void 0) {
  1197. _bufferSize = Infinity;
  1198. }
  1199. if (_windowTime === void 0) {
  1200. _windowTime = Infinity;
  1201. }
  1202. if (_timestampProvider === void 0) {
  1203. _timestampProvider = dateTimestampProvider;
  1204. }
  1205. var _this = _super.call(this) || this;
  1206. _this._bufferSize = _bufferSize;
  1207. _this._windowTime = _windowTime;
  1208. _this._timestampProvider = _timestampProvider;
  1209. _this._buffer = [];
  1210. _this._infiniteTimeWindow = true;
  1211. _this._infiniteTimeWindow = _windowTime === Infinity;
  1212. _this._bufferSize = Math.max(1, _bufferSize);
  1213. _this._windowTime = Math.max(1, _windowTime);
  1214. return _this;
  1215. }
  1216. ReplaySubject2.prototype.next = function(value) {
  1217. var _a = this, isStopped = _a.isStopped, _buffer = _a._buffer, _infiniteTimeWindow = _a._infiniteTimeWindow, _timestampProvider = _a._timestampProvider, _windowTime = _a._windowTime;
  1218. if (!isStopped) {
  1219. _buffer.push(value);
  1220. !_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime);
  1221. }
  1222. this._trimBuffer();
  1223. _super.prototype.next.call(this, value);
  1224. };
  1225. ReplaySubject2.prototype._subscribe = function(subscriber) {
  1226. this._throwIfClosed();
  1227. this._trimBuffer();
  1228. var subscription = this._innerSubscribe(subscriber);
  1229. var _a = this, _infiniteTimeWindow = _a._infiniteTimeWindow, _buffer = _a._buffer;
  1230. var copy = _buffer.slice();
  1231. for (var i = 0; i < copy.length && !subscriber.closed; i += _infiniteTimeWindow ? 1 : 2) {
  1232. subscriber.next(copy[i]);
  1233. }
  1234. this._checkFinalizedStatuses(subscriber);
  1235. return subscription;
  1236. };
  1237. ReplaySubject2.prototype._trimBuffer = function() {
  1238. var _a = this, _bufferSize = _a._bufferSize, _timestampProvider = _a._timestampProvider, _buffer = _a._buffer, _infiniteTimeWindow = _a._infiniteTimeWindow;
  1239. var adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize;
  1240. _bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize);
  1241. if (!_infiniteTimeWindow) {
  1242. var now = _timestampProvider.now();
  1243. var last3 = 0;
  1244. for (var i = 1; i < _buffer.length && _buffer[i] <= now; i += 2) {
  1245. last3 = i;
  1246. }
  1247. last3 && _buffer.splice(0, last3 + 1);
  1248. }
  1249. };
  1250. return ReplaySubject2;
  1251. }(Subject);
  1252. // node_modules/rxjs/dist/esm5/internal/AsyncSubject.js
  1253. var AsyncSubject = function(_super) {
  1254. __extends(AsyncSubject2, _super);
  1255. function AsyncSubject2() {
  1256. var _this = _super !== null && _super.apply(this, arguments) || this;
  1257. _this._value = null;
  1258. _this._hasValue = false;
  1259. _this._isComplete = false;
  1260. return _this;
  1261. }
  1262. AsyncSubject2.prototype._checkFinalizedStatuses = function(subscriber) {
  1263. var _a = this, hasError = _a.hasError, _hasValue = _a._hasValue, _value = _a._value, thrownError = _a.thrownError, isStopped = _a.isStopped, _isComplete = _a._isComplete;
  1264. if (hasError) {
  1265. subscriber.error(thrownError);
  1266. } else if (isStopped || _isComplete) {
  1267. _hasValue && subscriber.next(_value);
  1268. subscriber.complete();
  1269. }
  1270. };
  1271. AsyncSubject2.prototype.next = function(value) {
  1272. if (!this.isStopped) {
  1273. this._value = value;
  1274. this._hasValue = true;
  1275. }
  1276. };
  1277. AsyncSubject2.prototype.complete = function() {
  1278. var _a = this, _hasValue = _a._hasValue, _value = _a._value, _isComplete = _a._isComplete;
  1279. if (!_isComplete) {
  1280. this._isComplete = true;
  1281. _hasValue && _super.prototype.next.call(this, _value);
  1282. _super.prototype.complete.call(this);
  1283. }
  1284. };
  1285. return AsyncSubject2;
  1286. }(Subject);
  1287. // node_modules/rxjs/dist/esm5/internal/scheduler/Action.js
  1288. var Action = function(_super) {
  1289. __extends(Action2, _super);
  1290. function Action2(scheduler, work) {
  1291. return _super.call(this) || this;
  1292. }
  1293. Action2.prototype.schedule = function(state, delay2) {
  1294. if (delay2 === void 0) {
  1295. delay2 = 0;
  1296. }
  1297. return this;
  1298. };
  1299. return Action2;
  1300. }(Subscription);
  1301. // node_modules/rxjs/dist/esm5/internal/scheduler/intervalProvider.js
  1302. var intervalProvider = {
  1303. setInterval: function(handler, timeout2) {
  1304. var args = [];
  1305. for (var _i = 2; _i < arguments.length; _i++) {
  1306. args[_i - 2] = arguments[_i];
  1307. }
  1308. var delegate = intervalProvider.delegate;
  1309. if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) {
  1310. return delegate.setInterval.apply(delegate, __spreadArray([handler, timeout2], __read(args)));
  1311. }
  1312. return setInterval.apply(void 0, __spreadArray([handler, timeout2], __read(args)));
  1313. },
  1314. clearInterval: function(handle) {
  1315. var delegate = intervalProvider.delegate;
  1316. return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearInterval) || clearInterval)(handle);
  1317. },
  1318. delegate: void 0
  1319. };
  1320. // node_modules/rxjs/dist/esm5/internal/scheduler/AsyncAction.js
  1321. var AsyncAction = function(_super) {
  1322. __extends(AsyncAction2, _super);
  1323. function AsyncAction2(scheduler, work) {
  1324. var _this = _super.call(this, scheduler, work) || this;
  1325. _this.scheduler = scheduler;
  1326. _this.work = work;
  1327. _this.pending = false;
  1328. return _this;
  1329. }
  1330. AsyncAction2.prototype.schedule = function(state, delay2) {
  1331. var _a;
  1332. if (delay2 === void 0) {
  1333. delay2 = 0;
  1334. }
  1335. if (this.closed) {
  1336. return this;
  1337. }
  1338. this.state = state;
  1339. var id = this.id;
  1340. var scheduler = this.scheduler;
  1341. if (id != null) {
  1342. this.id = this.recycleAsyncId(scheduler, id, delay2);
  1343. }
  1344. this.pending = true;
  1345. this.delay = delay2;
  1346. this.id = (_a = this.id) !== null && _a !== void 0 ? _a : this.requestAsyncId(scheduler, this.id, delay2);
  1347. return this;
  1348. };
  1349. AsyncAction2.prototype.requestAsyncId = function(scheduler, _id, delay2) {
  1350. if (delay2 === void 0) {
  1351. delay2 = 0;
  1352. }
  1353. return intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay2);
  1354. };
  1355. AsyncAction2.prototype.recycleAsyncId = function(_scheduler, id, delay2) {
  1356. if (delay2 === void 0) {
  1357. delay2 = 0;
  1358. }
  1359. if (delay2 != null && this.delay === delay2 && this.pending === false) {
  1360. return id;
  1361. }
  1362. if (id != null) {
  1363. intervalProvider.clearInterval(id);
  1364. }
  1365. return void 0;
  1366. };
  1367. AsyncAction2.prototype.execute = function(state, delay2) {
  1368. if (this.closed) {
  1369. return new Error("executing a cancelled action");
  1370. }
  1371. this.pending = false;
  1372. var error = this._execute(state, delay2);
  1373. if (error) {
  1374. return error;
  1375. } else if (this.pending === false && this.id != null) {
  1376. this.id = this.recycleAsyncId(this.scheduler, this.id, null);
  1377. }
  1378. };
  1379. AsyncAction2.prototype._execute = function(state, _delay) {
  1380. var errored = false;
  1381. var errorValue;
  1382. try {
  1383. this.work(state);
  1384. } catch (e) {
  1385. errored = true;
  1386. errorValue = e ? e : new Error("Scheduled action threw falsy error");
  1387. }
  1388. if (errored) {
  1389. this.unsubscribe();
  1390. return errorValue;
  1391. }
  1392. };
  1393. AsyncAction2.prototype.unsubscribe = function() {
  1394. if (!this.closed) {
  1395. var _a = this, id = _a.id, scheduler = _a.scheduler;
  1396. var actions = scheduler.actions;
  1397. this.work = this.state = this.scheduler = null;
  1398. this.pending = false;
  1399. arrRemove(actions, this);
  1400. if (id != null) {
  1401. this.id = this.recycleAsyncId(scheduler, id, null);
  1402. }
  1403. this.delay = null;
  1404. _super.prototype.unsubscribe.call(this);
  1405. }
  1406. };
  1407. return AsyncAction2;
  1408. }(Action);
  1409. // node_modules/rxjs/dist/esm5/internal/util/Immediate.js
  1410. var nextHandle = 1;
  1411. var resolved;
  1412. var activeHandles = {};
  1413. function findAndClearHandle(handle) {
  1414. if (handle in activeHandles) {
  1415. delete activeHandles[handle];
  1416. return true;
  1417. }
  1418. return false;
  1419. }
  1420. var Immediate = {
  1421. setImmediate: function(cb) {
  1422. var handle = nextHandle++;
  1423. activeHandles[handle] = true;
  1424. if (!resolved) {
  1425. resolved = Promise.resolve();
  1426. }
  1427. resolved.then(function() {
  1428. return findAndClearHandle(handle) && cb();
  1429. });
  1430. return handle;
  1431. },
  1432. clearImmediate: function(handle) {
  1433. findAndClearHandle(handle);
  1434. }
  1435. };
  1436. // node_modules/rxjs/dist/esm5/internal/scheduler/immediateProvider.js
  1437. var setImmediate = Immediate.setImmediate;
  1438. var clearImmediate = Immediate.clearImmediate;
  1439. var immediateProvider = {
  1440. setImmediate: function() {
  1441. var args = [];
  1442. for (var _i = 0; _i < arguments.length; _i++) {
  1443. args[_i] = arguments[_i];
  1444. }
  1445. var delegate = immediateProvider.delegate;
  1446. return ((delegate === null || delegate === void 0 ? void 0 : delegate.setImmediate) || setImmediate).apply(void 0, __spreadArray([], __read(args)));
  1447. },
  1448. clearImmediate: function(handle) {
  1449. var delegate = immediateProvider.delegate;
  1450. return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearImmediate) || clearImmediate)(handle);
  1451. },
  1452. delegate: void 0
  1453. };
  1454. // node_modules/rxjs/dist/esm5/internal/scheduler/AsapAction.js
  1455. var AsapAction = function(_super) {
  1456. __extends(AsapAction2, _super);
  1457. function AsapAction2(scheduler, work) {
  1458. var _this = _super.call(this, scheduler, work) || this;
  1459. _this.scheduler = scheduler;
  1460. _this.work = work;
  1461. return _this;
  1462. }
  1463. AsapAction2.prototype.requestAsyncId = function(scheduler, id, delay2) {
  1464. if (delay2 === void 0) {
  1465. delay2 = 0;
  1466. }
  1467. if (delay2 !== null && delay2 > 0) {
  1468. return _super.prototype.requestAsyncId.call(this, scheduler, id, delay2);
  1469. }
  1470. scheduler.actions.push(this);
  1471. return scheduler._scheduled || (scheduler._scheduled = immediateProvider.setImmediate(scheduler.flush.bind(scheduler, void 0)));
  1472. };
  1473. AsapAction2.prototype.recycleAsyncId = function(scheduler, id, delay2) {
  1474. var _a;
  1475. if (delay2 === void 0) {
  1476. delay2 = 0;
  1477. }
  1478. if (delay2 != null ? delay2 > 0 : this.delay > 0) {
  1479. return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay2);
  1480. }
  1481. var actions = scheduler.actions;
  1482. if (id != null && ((_a = actions[actions.length - 1]) === null || _a === void 0 ? void 0 : _a.id) !== id) {
  1483. immediateProvider.clearImmediate(id);
  1484. if (scheduler._scheduled === id) {
  1485. scheduler._scheduled = void 0;
  1486. }
  1487. }
  1488. return void 0;
  1489. };
  1490. return AsapAction2;
  1491. }(AsyncAction);
  1492. // node_modules/rxjs/dist/esm5/internal/Scheduler.js
  1493. var Scheduler = function() {
  1494. function Scheduler2(schedulerActionCtor, now) {
  1495. if (now === void 0) {
  1496. now = Scheduler2.now;
  1497. }
  1498. this.schedulerActionCtor = schedulerActionCtor;
  1499. this.now = now;
  1500. }
  1501. Scheduler2.prototype.schedule = function(work, delay2, state) {
  1502. if (delay2 === void 0) {
  1503. delay2 = 0;
  1504. }
  1505. return new this.schedulerActionCtor(this, work).schedule(state, delay2);
  1506. };
  1507. Scheduler2.now = dateTimestampProvider.now;
  1508. return Scheduler2;
  1509. }();
  1510. // node_modules/rxjs/dist/esm5/internal/scheduler/AsyncScheduler.js
  1511. var AsyncScheduler = function(_super) {
  1512. __extends(AsyncScheduler2, _super);
  1513. function AsyncScheduler2(SchedulerAction, now) {
  1514. if (now === void 0) {
  1515. now = Scheduler.now;
  1516. }
  1517. var _this = _super.call(this, SchedulerAction, now) || this;
  1518. _this.actions = [];
  1519. _this._active = false;
  1520. return _this;
  1521. }
  1522. AsyncScheduler2.prototype.flush = function(action) {
  1523. var actions = this.actions;
  1524. if (this._active) {
  1525. actions.push(action);
  1526. return;
  1527. }
  1528. var error;
  1529. this._active = true;
  1530. do {
  1531. if (error = action.execute(action.state, action.delay)) {
  1532. break;
  1533. }
  1534. } while (action = actions.shift());
  1535. this._active = false;
  1536. if (error) {
  1537. while (action = actions.shift()) {
  1538. action.unsubscribe();
  1539. }
  1540. throw error;
  1541. }
  1542. };
  1543. return AsyncScheduler2;
  1544. }(Scheduler);
  1545. // node_modules/rxjs/dist/esm5/internal/scheduler/AsapScheduler.js
  1546. var AsapScheduler = function(_super) {
  1547. __extends(AsapScheduler2, _super);
  1548. function AsapScheduler2() {
  1549. return _super !== null && _super.apply(this, arguments) || this;
  1550. }
  1551. AsapScheduler2.prototype.flush = function(action) {
  1552. this._active = true;
  1553. var flushId = this._scheduled;
  1554. this._scheduled = void 0;
  1555. var actions = this.actions;
  1556. var error;
  1557. action = action || actions.shift();
  1558. do {
  1559. if (error = action.execute(action.state, action.delay)) {
  1560. break;
  1561. }
  1562. } while ((action = actions[0]) && action.id === flushId && actions.shift());
  1563. this._active = false;
  1564. if (error) {
  1565. while ((action = actions[0]) && action.id === flushId && actions.shift()) {
  1566. action.unsubscribe();
  1567. }
  1568. throw error;
  1569. }
  1570. };
  1571. return AsapScheduler2;
  1572. }(AsyncScheduler);
  1573. // node_modules/rxjs/dist/esm5/internal/scheduler/asap.js
  1574. var asapScheduler = new AsapScheduler(AsapAction);
  1575. var asap = asapScheduler;
  1576. // node_modules/rxjs/dist/esm5/internal/scheduler/async.js
  1577. var asyncScheduler = new AsyncScheduler(AsyncAction);
  1578. var async = asyncScheduler;
  1579. // node_modules/rxjs/dist/esm5/internal/scheduler/QueueAction.js
  1580. var QueueAction = function(_super) {
  1581. __extends(QueueAction2, _super);
  1582. function QueueAction2(scheduler, work) {
  1583. var _this = _super.call(this, scheduler, work) || this;
  1584. _this.scheduler = scheduler;
  1585. _this.work = work;
  1586. return _this;
  1587. }
  1588. QueueAction2.prototype.schedule = function(state, delay2) {
  1589. if (delay2 === void 0) {
  1590. delay2 = 0;
  1591. }
  1592. if (delay2 > 0) {
  1593. return _super.prototype.schedule.call(this, state, delay2);
  1594. }
  1595. this.delay = delay2;
  1596. this.state = state;
  1597. this.scheduler.flush(this);
  1598. return this;
  1599. };
  1600. QueueAction2.prototype.execute = function(state, delay2) {
  1601. return delay2 > 0 || this.closed ? _super.prototype.execute.call(this, state, delay2) : this._execute(state, delay2);
  1602. };
  1603. QueueAction2.prototype.requestAsyncId = function(scheduler, id, delay2) {
  1604. if (delay2 === void 0) {
  1605. delay2 = 0;
  1606. }
  1607. if (delay2 != null && delay2 > 0 || delay2 == null && this.delay > 0) {
  1608. return _super.prototype.requestAsyncId.call(this, scheduler, id, delay2);
  1609. }
  1610. scheduler.flush(this);
  1611. return 0;
  1612. };
  1613. return QueueAction2;
  1614. }(AsyncAction);
  1615. // node_modules/rxjs/dist/esm5/internal/scheduler/QueueScheduler.js
  1616. var QueueScheduler = function(_super) {
  1617. __extends(QueueScheduler2, _super);
  1618. function QueueScheduler2() {
  1619. return _super !== null && _super.apply(this, arguments) || this;
  1620. }
  1621. return QueueScheduler2;
  1622. }(AsyncScheduler);
  1623. // node_modules/rxjs/dist/esm5/internal/scheduler/queue.js
  1624. var queueScheduler = new QueueScheduler(QueueAction);
  1625. var queue = queueScheduler;
  1626. // node_modules/rxjs/dist/esm5/internal/scheduler/AnimationFrameAction.js
  1627. var AnimationFrameAction = function(_super) {
  1628. __extends(AnimationFrameAction2, _super);
  1629. function AnimationFrameAction2(scheduler, work) {
  1630. var _this = _super.call(this, scheduler, work) || this;
  1631. _this.scheduler = scheduler;
  1632. _this.work = work;
  1633. return _this;
  1634. }
  1635. AnimationFrameAction2.prototype.requestAsyncId = function(scheduler, id, delay2) {
  1636. if (delay2 === void 0) {
  1637. delay2 = 0;
  1638. }
  1639. if (delay2 !== null && delay2 > 0) {
  1640. return _super.prototype.requestAsyncId.call(this, scheduler, id, delay2);
  1641. }
  1642. scheduler.actions.push(this);
  1643. return scheduler._scheduled || (scheduler._scheduled = animationFrameProvider.requestAnimationFrame(function() {
  1644. return scheduler.flush(void 0);
  1645. }));
  1646. };
  1647. AnimationFrameAction2.prototype.recycleAsyncId = function(scheduler, id, delay2) {
  1648. var _a;
  1649. if (delay2 === void 0) {
  1650. delay2 = 0;
  1651. }
  1652. if (delay2 != null ? delay2 > 0 : this.delay > 0) {
  1653. return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay2);
  1654. }
  1655. var actions = scheduler.actions;
  1656. if (id != null && ((_a = actions[actions.length - 1]) === null || _a === void 0 ? void 0 : _a.id) !== id) {
  1657. animationFrameProvider.cancelAnimationFrame(id);
  1658. scheduler._scheduled = void 0;
  1659. }
  1660. return void 0;
  1661. };
  1662. return AnimationFrameAction2;
  1663. }(AsyncAction);
  1664. // node_modules/rxjs/dist/esm5/internal/scheduler/AnimationFrameScheduler.js
  1665. var AnimationFrameScheduler = function(_super) {
  1666. __extends(AnimationFrameScheduler2, _super);
  1667. function AnimationFrameScheduler2() {
  1668. return _super !== null && _super.apply(this, arguments) || this;
  1669. }
  1670. AnimationFrameScheduler2.prototype.flush = function(action) {
  1671. this._active = true;
  1672. var flushId = this._scheduled;
  1673. this._scheduled = void 0;
  1674. var actions = this.actions;
  1675. var error;
  1676. action = action || actions.shift();
  1677. do {
  1678. if (error = action.execute(action.state, action.delay)) {
  1679. break;
  1680. }
  1681. } while ((action = actions[0]) && action.id === flushId && actions.shift());
  1682. this._active = false;
  1683. if (error) {
  1684. while ((action = actions[0]) && action.id === flushId && actions.shift()) {
  1685. action.unsubscribe();
  1686. }
  1687. throw error;
  1688. }
  1689. };
  1690. return AnimationFrameScheduler2;
  1691. }(AsyncScheduler);
  1692. // node_modules/rxjs/dist/esm5/internal/scheduler/animationFrame.js
  1693. var animationFrameScheduler = new AnimationFrameScheduler(AnimationFrameAction);
  1694. var animationFrame = animationFrameScheduler;
  1695. // node_modules/rxjs/dist/esm5/internal/scheduler/VirtualTimeScheduler.js
  1696. var VirtualTimeScheduler = function(_super) {
  1697. __extends(VirtualTimeScheduler2, _super);
  1698. function VirtualTimeScheduler2(schedulerActionCtor, maxFrames) {
  1699. if (schedulerActionCtor === void 0) {
  1700. schedulerActionCtor = VirtualAction;
  1701. }
  1702. if (maxFrames === void 0) {
  1703. maxFrames = Infinity;
  1704. }
  1705. var _this = _super.call(this, schedulerActionCtor, function() {
  1706. return _this.frame;
  1707. }) || this;
  1708. _this.maxFrames = maxFrames;
  1709. _this.frame = 0;
  1710. _this.index = -1;
  1711. return _this;
  1712. }
  1713. VirtualTimeScheduler2.prototype.flush = function() {
  1714. var _a = this, actions = _a.actions, maxFrames = _a.maxFrames;
  1715. var error;
  1716. var action;
  1717. while ((action = actions[0]) && action.delay <= maxFrames) {
  1718. actions.shift();
  1719. this.frame = action.delay;
  1720. if (error = action.execute(action.state, action.delay)) {
  1721. break;
  1722. }
  1723. }
  1724. if (error) {
  1725. while (action = actions.shift()) {
  1726. action.unsubscribe();
  1727. }
  1728. throw error;
  1729. }
  1730. };
  1731. VirtualTimeScheduler2.frameTimeFactor = 10;
  1732. return VirtualTimeScheduler2;
  1733. }(AsyncScheduler);
  1734. var VirtualAction = function(_super) {
  1735. __extends(VirtualAction2, _super);
  1736. function VirtualAction2(scheduler, work, index) {
  1737. if (index === void 0) {
  1738. index = scheduler.index += 1;
  1739. }
  1740. var _this = _super.call(this, scheduler, work) || this;
  1741. _this.scheduler = scheduler;
  1742. _this.work = work;
  1743. _this.index = index;
  1744. _this.active = true;
  1745. _this.index = scheduler.index = index;
  1746. return _this;
  1747. }
  1748. VirtualAction2.prototype.schedule = function(state, delay2) {
  1749. if (delay2 === void 0) {
  1750. delay2 = 0;
  1751. }
  1752. if (Number.isFinite(delay2)) {
  1753. if (!this.id) {
  1754. return _super.prototype.schedule.call(this, state, delay2);
  1755. }
  1756. this.active = false;
  1757. var action = new VirtualAction2(this.scheduler, this.work);
  1758. this.add(action);
  1759. return action.schedule(state, delay2);
  1760. } else {
  1761. return Subscription.EMPTY;
  1762. }
  1763. };
  1764. VirtualAction2.prototype.requestAsyncId = function(scheduler, id, delay2) {
  1765. if (delay2 === void 0) {
  1766. delay2 = 0;
  1767. }
  1768. this.delay = scheduler.frame + delay2;
  1769. var actions = scheduler.actions;
  1770. actions.push(this);
  1771. actions.sort(VirtualAction2.sortActions);
  1772. return 1;
  1773. };
  1774. VirtualAction2.prototype.recycleAsyncId = function(scheduler, id, delay2) {
  1775. if (delay2 === void 0) {
  1776. delay2 = 0;
  1777. }
  1778. return void 0;
  1779. };
  1780. VirtualAction2.prototype._execute = function(state, delay2) {
  1781. if (this.active === true) {
  1782. return _super.prototype._execute.call(this, state, delay2);
  1783. }
  1784. };
  1785. VirtualAction2.sortActions = function(a, b) {
  1786. if (a.delay === b.delay) {
  1787. if (a.index === b.index) {
  1788. return 0;
  1789. } else if (a.index > b.index) {
  1790. return 1;
  1791. } else {
  1792. return -1;
  1793. }
  1794. } else if (a.delay > b.delay) {
  1795. return 1;
  1796. } else {
  1797. return -1;
  1798. }
  1799. };
  1800. return VirtualAction2;
  1801. }(AsyncAction);
  1802. // node_modules/rxjs/dist/esm5/internal/observable/empty.js
  1803. var EMPTY = new Observable(function(subscriber) {
  1804. return subscriber.complete();
  1805. });
  1806. function empty(scheduler) {
  1807. return scheduler ? emptyScheduled(scheduler) : EMPTY;
  1808. }
  1809. function emptyScheduled(scheduler) {
  1810. return new Observable(function(subscriber) {
  1811. return scheduler.schedule(function() {
  1812. return subscriber.complete();
  1813. });
  1814. });
  1815. }
  1816. // node_modules/rxjs/dist/esm5/internal/util/isScheduler.js
  1817. function isScheduler(value) {
  1818. return value && isFunction(value.schedule);
  1819. }
  1820. // node_modules/rxjs/dist/esm5/internal/util/args.js
  1821. function last(arr) {
  1822. return arr[arr.length - 1];
  1823. }
  1824. function popResultSelector(args) {
  1825. return isFunction(last(args)) ? args.pop() : void 0;
  1826. }
  1827. function popScheduler(args) {
  1828. return isScheduler(last(args)) ? args.pop() : void 0;
  1829. }
  1830. function popNumber(args, defaultValue) {
  1831. return typeof last(args) === "number" ? args.pop() : defaultValue;
  1832. }
  1833. // node_modules/rxjs/dist/esm5/internal/util/isArrayLike.js
  1834. var isArrayLike = function(x) {
  1835. return x && typeof x.length === "number" && typeof x !== "function";
  1836. };
  1837. // node_modules/rxjs/dist/esm5/internal/util/isPromise.js
  1838. function isPromise(value) {
  1839. return isFunction(value === null || value === void 0 ? void 0 : value.then);
  1840. }
  1841. // node_modules/rxjs/dist/esm5/internal/util/isInteropObservable.js
  1842. function isInteropObservable(input) {
  1843. return isFunction(input[observable]);
  1844. }
  1845. // node_modules/rxjs/dist/esm5/internal/util/isAsyncIterable.js
  1846. function isAsyncIterable(obj) {
  1847. return Symbol.asyncIterator && isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]);
  1848. }
  1849. // node_modules/rxjs/dist/esm5/internal/util/throwUnobservableError.js
  1850. function createInvalidObservableTypeError(input) {
  1851. return new TypeError("You provided " + (input !== null && typeof input === "object" ? "an invalid object" : "'" + input + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
  1852. }
  1853. // node_modules/rxjs/dist/esm5/internal/symbol/iterator.js
  1854. function getSymbolIterator() {
  1855. if (typeof Symbol !== "function" || !Symbol.iterator) {
  1856. return "@@iterator";
  1857. }
  1858. return Symbol.iterator;
  1859. }
  1860. var iterator = getSymbolIterator();
  1861. // node_modules/rxjs/dist/esm5/internal/util/isIterable.js
  1862. function isIterable(input) {
  1863. return isFunction(input === null || input === void 0 ? void 0 : input[iterator]);
  1864. }
  1865. // node_modules/rxjs/dist/esm5/internal/util/isReadableStreamLike.js
  1866. function readableStreamLikeToAsyncGenerator(readableStream) {
  1867. return __asyncGenerator(this, arguments, function readableStreamLikeToAsyncGenerator_1() {
  1868. var reader, _a, value, done;
  1869. return __generator(this, function(_b) {
  1870. switch (_b.label) {
  1871. case 0:
  1872. reader = readableStream.getReader();
  1873. _b.label = 1;
  1874. case 1:
  1875. _b.trys.push([1, , 9, 10]);
  1876. _b.label = 2;
  1877. case 2:
  1878. if (false)
  1879. return [3, 8];
  1880. return [4, __await(reader.read())];
  1881. case 3:
  1882. _a = _b.sent(), value = _a.value, done = _a.done;
  1883. if (!done)
  1884. return [3, 5];
  1885. return [4, __await(void 0)];
  1886. case 4:
  1887. return [2, _b.sent()];
  1888. case 5:
  1889. return [4, __await(value)];
  1890. case 6:
  1891. return [4, _b.sent()];
  1892. case 7:
  1893. _b.sent();
  1894. return [3, 2];
  1895. case 8:
  1896. return [3, 10];
  1897. case 9:
  1898. reader.releaseLock();
  1899. return [7];
  1900. case 10:
  1901. return [2];
  1902. }
  1903. });
  1904. });
  1905. }
  1906. function isReadableStreamLike(obj) {
  1907. return isFunction(obj === null || obj === void 0 ? void 0 : obj.getReader);
  1908. }
  1909. // node_modules/rxjs/dist/esm5/internal/observable/innerFrom.js
  1910. function innerFrom(input) {
  1911. if (input instanceof Observable) {
  1912. return input;
  1913. }
  1914. if (input != null) {
  1915. if (isInteropObservable(input)) {
  1916. return fromInteropObservable(input);
  1917. }
  1918. if (isArrayLike(input)) {
  1919. return fromArrayLike(input);
  1920. }
  1921. if (isPromise(input)) {
  1922. return fromPromise(input);
  1923. }
  1924. if (isAsyncIterable(input)) {
  1925. return fromAsyncIterable(input);
  1926. }
  1927. if (isIterable(input)) {
  1928. return fromIterable(input);
  1929. }
  1930. if (isReadableStreamLike(input)) {
  1931. return fromReadableStreamLike(input);
  1932. }
  1933. }
  1934. throw createInvalidObservableTypeError(input);
  1935. }
  1936. function fromInteropObservable(obj) {
  1937. return new Observable(function(subscriber) {
  1938. var obs = obj[observable]();
  1939. if (isFunction(obs.subscribe)) {
  1940. return obs.subscribe(subscriber);
  1941. }
  1942. throw new TypeError("Provided object does not correctly implement Symbol.observable");
  1943. });
  1944. }
  1945. function fromArrayLike(array) {
  1946. return new Observable(function(subscriber) {
  1947. for (var i = 0; i < array.length && !subscriber.closed; i++) {
  1948. subscriber.next(array[i]);
  1949. }
  1950. subscriber.complete();
  1951. });
  1952. }
  1953. function fromPromise(promise) {
  1954. return new Observable(function(subscriber) {
  1955. promise.then(function(value) {
  1956. if (!subscriber.closed) {
  1957. subscriber.next(value);
  1958. subscriber.complete();
  1959. }
  1960. }, function(err) {
  1961. return subscriber.error(err);
  1962. }).then(null, reportUnhandledError);
  1963. });
  1964. }
  1965. function fromIterable(iterable) {
  1966. return new Observable(function(subscriber) {
  1967. var e_1, _a;
  1968. try {
  1969. for (var iterable_1 = __values(iterable), iterable_1_1 = iterable_1.next(); !iterable_1_1.done; iterable_1_1 = iterable_1.next()) {
  1970. var value = iterable_1_1.value;
  1971. subscriber.next(value);
  1972. if (subscriber.closed) {
  1973. return;
  1974. }
  1975. }
  1976. } catch (e_1_1) {
  1977. e_1 = { error: e_1_1 };
  1978. } finally {
  1979. try {
  1980. if (iterable_1_1 && !iterable_1_1.done && (_a = iterable_1.return))
  1981. _a.call(iterable_1);
  1982. } finally {
  1983. if (e_1)
  1984. throw e_1.error;
  1985. }
  1986. }
  1987. subscriber.complete();
  1988. });
  1989. }
  1990. function fromAsyncIterable(asyncIterable) {
  1991. return new Observable(function(subscriber) {
  1992. process(asyncIterable, subscriber).catch(function(err) {
  1993. return subscriber.error(err);
  1994. });
  1995. });
  1996. }
  1997. function fromReadableStreamLike(readableStream) {
  1998. return fromAsyncIterable(readableStreamLikeToAsyncGenerator(readableStream));
  1999. }
  2000. function process(asyncIterable, subscriber) {
  2001. var asyncIterable_1, asyncIterable_1_1;
  2002. var e_2, _a;
  2003. return __awaiter(this, void 0, void 0, function() {
  2004. var value, e_2_1;
  2005. return __generator(this, function(_b) {
  2006. switch (_b.label) {
  2007. case 0:
  2008. _b.trys.push([0, 5, 6, 11]);
  2009. asyncIterable_1 = __asyncValues(asyncIterable);
  2010. _b.label = 1;
  2011. case 1:
  2012. return [4, asyncIterable_1.next()];
  2013. case 2:
  2014. if (!(asyncIterable_1_1 = _b.sent(), !asyncIterable_1_1.done))
  2015. return [3, 4];
  2016. value = asyncIterable_1_1.value;
  2017. subscriber.next(value);
  2018. if (subscriber.closed) {
  2019. return [2];
  2020. }
  2021. _b.label = 3;
  2022. case 3:
  2023. return [3, 1];
  2024. case 4:
  2025. return [3, 11];
  2026. case 5:
  2027. e_2_1 = _b.sent();
  2028. e_2 = { error: e_2_1 };
  2029. return [3, 11];
  2030. case 6:
  2031. _b.trys.push([6, , 9, 10]);
  2032. if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a = asyncIterable_1.return)))
  2033. return [3, 8];
  2034. return [4, _a.call(asyncIterable_1)];
  2035. case 7:
  2036. _b.sent();
  2037. _b.label = 8;
  2038. case 8:
  2039. return [3, 10];
  2040. case 9:
  2041. if (e_2)
  2042. throw e_2.error;
  2043. return [7];
  2044. case 10:
  2045. return [7];
  2046. case 11:
  2047. subscriber.complete();
  2048. return [2];
  2049. }
  2050. });
  2051. });
  2052. }
  2053. // node_modules/rxjs/dist/esm5/internal/util/executeSchedule.js
  2054. function executeSchedule(parentSubscription, scheduler, work, delay2, repeat2) {
  2055. if (delay2 === void 0) {
  2056. delay2 = 0;
  2057. }
  2058. if (repeat2 === void 0) {
  2059. repeat2 = false;
  2060. }
  2061. var scheduleSubscription = scheduler.schedule(function() {
  2062. work();
  2063. if (repeat2) {
  2064. parentSubscription.add(this.schedule(null, delay2));
  2065. } else {
  2066. this.unsubscribe();
  2067. }
  2068. }, delay2);
  2069. parentSubscription.add(scheduleSubscription);
  2070. if (!repeat2) {
  2071. return scheduleSubscription;
  2072. }
  2073. }
  2074. // node_modules/rxjs/dist/esm5/internal/operators/observeOn.js
  2075. function observeOn(scheduler, delay2) {
  2076. if (delay2 === void 0) {
  2077. delay2 = 0;
  2078. }
  2079. return operate(function(source, subscriber) {
  2080. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  2081. return executeSchedule(subscriber, scheduler, function() {
  2082. return subscriber.next(value);
  2083. }, delay2);
  2084. }, function() {
  2085. return executeSchedule(subscriber, scheduler, function() {
  2086. return subscriber.complete();
  2087. }, delay2);
  2088. }, function(err) {
  2089. return executeSchedule(subscriber, scheduler, function() {
  2090. return subscriber.error(err);
  2091. }, delay2);
  2092. }));
  2093. });
  2094. }
  2095. // node_modules/rxjs/dist/esm5/internal/operators/subscribeOn.js
  2096. function subscribeOn(scheduler, delay2) {
  2097. if (delay2 === void 0) {
  2098. delay2 = 0;
  2099. }
  2100. return operate(function(source, subscriber) {
  2101. subscriber.add(scheduler.schedule(function() {
  2102. return source.subscribe(subscriber);
  2103. }, delay2));
  2104. });
  2105. }
  2106. // node_modules/rxjs/dist/esm5/internal/scheduled/scheduleObservable.js
  2107. function scheduleObservable(input, scheduler) {
  2108. return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));
  2109. }
  2110. // node_modules/rxjs/dist/esm5/internal/scheduled/schedulePromise.js
  2111. function schedulePromise(input, scheduler) {
  2112. return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));
  2113. }
  2114. // node_modules/rxjs/dist/esm5/internal/scheduled/scheduleArray.js
  2115. function scheduleArray(input, scheduler) {
  2116. return new Observable(function(subscriber) {
  2117. var i = 0;
  2118. return scheduler.schedule(function() {
  2119. if (i === input.length) {
  2120. subscriber.complete();
  2121. } else {
  2122. subscriber.next(input[i++]);
  2123. if (!subscriber.closed) {
  2124. this.schedule();
  2125. }
  2126. }
  2127. });
  2128. });
  2129. }
  2130. // node_modules/rxjs/dist/esm5/internal/scheduled/scheduleIterable.js
  2131. function scheduleIterable(input, scheduler) {
  2132. return new Observable(function(subscriber) {
  2133. var iterator2;
  2134. executeSchedule(subscriber, scheduler, function() {
  2135. iterator2 = input[iterator]();
  2136. executeSchedule(subscriber, scheduler, function() {
  2137. var _a;
  2138. var value;
  2139. var done;
  2140. try {
  2141. _a = iterator2.next(), value = _a.value, done = _a.done;
  2142. } catch (err) {
  2143. subscriber.error(err);
  2144. return;
  2145. }
  2146. if (done) {
  2147. subscriber.complete();
  2148. } else {
  2149. subscriber.next(value);
  2150. }
  2151. }, 0, true);
  2152. });
  2153. return function() {
  2154. return isFunction(iterator2 === null || iterator2 === void 0 ? void 0 : iterator2.return) && iterator2.return();
  2155. };
  2156. });
  2157. }
  2158. // node_modules/rxjs/dist/esm5/internal/scheduled/scheduleAsyncIterable.js
  2159. function scheduleAsyncIterable(input, scheduler) {
  2160. if (!input) {
  2161. throw new Error("Iterable cannot be null");
  2162. }
  2163. return new Observable(function(subscriber) {
  2164. executeSchedule(subscriber, scheduler, function() {
  2165. var iterator2 = input[Symbol.asyncIterator]();
  2166. executeSchedule(subscriber, scheduler, function() {
  2167. iterator2.next().then(function(result) {
  2168. if (result.done) {
  2169. subscriber.complete();
  2170. } else {
  2171. subscriber.next(result.value);
  2172. }
  2173. });
  2174. }, 0, true);
  2175. });
  2176. });
  2177. }
  2178. // node_modules/rxjs/dist/esm5/internal/scheduled/scheduleReadableStreamLike.js
  2179. function scheduleReadableStreamLike(input, scheduler) {
  2180. return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(input), scheduler);
  2181. }
  2182. // node_modules/rxjs/dist/esm5/internal/scheduled/scheduled.js
  2183. function scheduled(input, scheduler) {
  2184. if (input != null) {
  2185. if (isInteropObservable(input)) {
  2186. return scheduleObservable(input, scheduler);
  2187. }
  2188. if (isArrayLike(input)) {
  2189. return scheduleArray(input, scheduler);
  2190. }
  2191. if (isPromise(input)) {
  2192. return schedulePromise(input, scheduler);
  2193. }
  2194. if (isAsyncIterable(input)) {
  2195. return scheduleAsyncIterable(input, scheduler);
  2196. }
  2197. if (isIterable(input)) {
  2198. return scheduleIterable(input, scheduler);
  2199. }
  2200. if (isReadableStreamLike(input)) {
  2201. return scheduleReadableStreamLike(input, scheduler);
  2202. }
  2203. }
  2204. throw createInvalidObservableTypeError(input);
  2205. }
  2206. // node_modules/rxjs/dist/esm5/internal/observable/from.js
  2207. function from(input, scheduler) {
  2208. return scheduler ? scheduled(input, scheduler) : innerFrom(input);
  2209. }
  2210. // node_modules/rxjs/dist/esm5/internal/observable/of.js
  2211. function of() {
  2212. var args = [];
  2213. for (var _i = 0; _i < arguments.length; _i++) {
  2214. args[_i] = arguments[_i];
  2215. }
  2216. var scheduler = popScheduler(args);
  2217. return from(args, scheduler);
  2218. }
  2219. // node_modules/rxjs/dist/esm5/internal/observable/throwError.js
  2220. function throwError(errorOrErrorFactory, scheduler) {
  2221. var errorFactory = isFunction(errorOrErrorFactory) ? errorOrErrorFactory : function() {
  2222. return errorOrErrorFactory;
  2223. };
  2224. var init = function(subscriber) {
  2225. return subscriber.error(errorFactory());
  2226. };
  2227. return new Observable(scheduler ? function(subscriber) {
  2228. return scheduler.schedule(init, 0, subscriber);
  2229. } : init);
  2230. }
  2231. // node_modules/rxjs/dist/esm5/internal/Notification.js
  2232. var NotificationKind;
  2233. (function(NotificationKind2) {
  2234. NotificationKind2["NEXT"] = "N";
  2235. NotificationKind2["ERROR"] = "E";
  2236. NotificationKind2["COMPLETE"] = "C";
  2237. })(NotificationKind || (NotificationKind = {}));
  2238. var Notification = function() {
  2239. function Notification2(kind, value, error) {
  2240. this.kind = kind;
  2241. this.value = value;
  2242. this.error = error;
  2243. this.hasValue = kind === "N";
  2244. }
  2245. Notification2.prototype.observe = function(observer) {
  2246. return observeNotification(this, observer);
  2247. };
  2248. Notification2.prototype.do = function(nextHandler, errorHandler, completeHandler) {
  2249. var _a = this, kind = _a.kind, value = _a.value, error = _a.error;
  2250. return kind === "N" ? nextHandler === null || nextHandler === void 0 ? void 0 : nextHandler(value) : kind === "E" ? errorHandler === null || errorHandler === void 0 ? void 0 : errorHandler(error) : completeHandler === null || completeHandler === void 0 ? void 0 : completeHandler();
  2251. };
  2252. Notification2.prototype.accept = function(nextOrObserver, error, complete) {
  2253. var _a;
  2254. return isFunction((_a = nextOrObserver) === null || _a === void 0 ? void 0 : _a.next) ? this.observe(nextOrObserver) : this.do(nextOrObserver, error, complete);
  2255. };
  2256. Notification2.prototype.toObservable = function() {
  2257. var _a = this, kind = _a.kind, value = _a.value, error = _a.error;
  2258. var result = kind === "N" ? of(value) : kind === "E" ? throwError(function() {
  2259. return error;
  2260. }) : kind === "C" ? EMPTY : 0;
  2261. if (!result) {
  2262. throw new TypeError("Unexpected notification kind " + kind);
  2263. }
  2264. return result;
  2265. };
  2266. Notification2.createNext = function(value) {
  2267. return new Notification2("N", value);
  2268. };
  2269. Notification2.createError = function(err) {
  2270. return new Notification2("E", void 0, err);
  2271. };
  2272. Notification2.createComplete = function() {
  2273. return Notification2.completeNotification;
  2274. };
  2275. Notification2.completeNotification = new Notification2("C");
  2276. return Notification2;
  2277. }();
  2278. function observeNotification(notification, observer) {
  2279. var _a, _b, _c;
  2280. var _d = notification, kind = _d.kind, value = _d.value, error = _d.error;
  2281. if (typeof kind !== "string") {
  2282. throw new TypeError('Invalid notification, missing "kind"');
  2283. }
  2284. kind === "N" ? (_a = observer.next) === null || _a === void 0 ? void 0 : _a.call(observer, value) : kind === "E" ? (_b = observer.error) === null || _b === void 0 ? void 0 : _b.call(observer, error) : (_c = observer.complete) === null || _c === void 0 ? void 0 : _c.call(observer);
  2285. }
  2286. // node_modules/rxjs/dist/esm5/internal/util/isObservable.js
  2287. function isObservable(obj) {
  2288. return !!obj && (obj instanceof Observable || isFunction(obj.lift) && isFunction(obj.subscribe));
  2289. }
  2290. // node_modules/rxjs/dist/esm5/internal/util/EmptyError.js
  2291. var EmptyError = createErrorClass(function(_super) {
  2292. return function EmptyErrorImpl() {
  2293. _super(this);
  2294. this.name = "EmptyError";
  2295. this.message = "no elements in sequence";
  2296. };
  2297. });
  2298. // node_modules/rxjs/dist/esm5/internal/lastValueFrom.js
  2299. function lastValueFrom(source, config2) {
  2300. var hasConfig = typeof config2 === "object";
  2301. return new Promise(function(resolve, reject) {
  2302. var _hasValue = false;
  2303. var _value;
  2304. source.subscribe({
  2305. next: function(value) {
  2306. _value = value;
  2307. _hasValue = true;
  2308. },
  2309. error: reject,
  2310. complete: function() {
  2311. if (_hasValue) {
  2312. resolve(_value);
  2313. } else if (hasConfig) {
  2314. resolve(config2.defaultValue);
  2315. } else {
  2316. reject(new EmptyError());
  2317. }
  2318. }
  2319. });
  2320. });
  2321. }
  2322. // node_modules/rxjs/dist/esm5/internal/firstValueFrom.js
  2323. function firstValueFrom(source, config2) {
  2324. var hasConfig = typeof config2 === "object";
  2325. return new Promise(function(resolve, reject) {
  2326. var subscriber = new SafeSubscriber({
  2327. next: function(value) {
  2328. resolve(value);
  2329. subscriber.unsubscribe();
  2330. },
  2331. error: reject,
  2332. complete: function() {
  2333. if (hasConfig) {
  2334. resolve(config2.defaultValue);
  2335. } else {
  2336. reject(new EmptyError());
  2337. }
  2338. }
  2339. });
  2340. source.subscribe(subscriber);
  2341. });
  2342. }
  2343. // node_modules/rxjs/dist/esm5/internal/util/ArgumentOutOfRangeError.js
  2344. var ArgumentOutOfRangeError = createErrorClass(function(_super) {
  2345. return function ArgumentOutOfRangeErrorImpl() {
  2346. _super(this);
  2347. this.name = "ArgumentOutOfRangeError";
  2348. this.message = "argument out of range";
  2349. };
  2350. });
  2351. // node_modules/rxjs/dist/esm5/internal/util/NotFoundError.js
  2352. var NotFoundError = createErrorClass(function(_super) {
  2353. return function NotFoundErrorImpl(message) {
  2354. _super(this);
  2355. this.name = "NotFoundError";
  2356. this.message = message;
  2357. };
  2358. });
  2359. // node_modules/rxjs/dist/esm5/internal/util/SequenceError.js
  2360. var SequenceError = createErrorClass(function(_super) {
  2361. return function SequenceErrorImpl(message) {
  2362. _super(this);
  2363. this.name = "SequenceError";
  2364. this.message = message;
  2365. };
  2366. });
  2367. // node_modules/rxjs/dist/esm5/internal/util/isDate.js
  2368. function isValidDate(value) {
  2369. return value instanceof Date && !isNaN(value);
  2370. }
  2371. // node_modules/rxjs/dist/esm5/internal/operators/timeout.js
  2372. var TimeoutError = createErrorClass(function(_super) {
  2373. return function TimeoutErrorImpl(info) {
  2374. if (info === void 0) {
  2375. info = null;
  2376. }
  2377. _super(this);
  2378. this.message = "Timeout has occurred";
  2379. this.name = "TimeoutError";
  2380. this.info = info;
  2381. };
  2382. });
  2383. function timeout(config2, schedulerArg) {
  2384. var _a = isValidDate(config2) ? { first: config2 } : typeof config2 === "number" ? { each: config2 } : config2, first2 = _a.first, each = _a.each, _b = _a.with, _with = _b === void 0 ? timeoutErrorFactory : _b, _c = _a.scheduler, scheduler = _c === void 0 ? schedulerArg !== null && schedulerArg !== void 0 ? schedulerArg : asyncScheduler : _c, _d = _a.meta, meta = _d === void 0 ? null : _d;
  2385. if (first2 == null && each == null) {
  2386. throw new TypeError("No timeout provided.");
  2387. }
  2388. return operate(function(source, subscriber) {
  2389. var originalSourceSubscription;
  2390. var timerSubscription;
  2391. var lastValue = null;
  2392. var seen = 0;
  2393. var startTimer = function(delay2) {
  2394. timerSubscription = executeSchedule(subscriber, scheduler, function() {
  2395. try {
  2396. originalSourceSubscription.unsubscribe();
  2397. innerFrom(_with({
  2398. meta,
  2399. lastValue,
  2400. seen
  2401. })).subscribe(subscriber);
  2402. } catch (err) {
  2403. subscriber.error(err);
  2404. }
  2405. }, delay2);
  2406. };
  2407. originalSourceSubscription = source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  2408. timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.unsubscribe();
  2409. seen++;
  2410. subscriber.next(lastValue = value);
  2411. each > 0 && startTimer(each);
  2412. }, void 0, void 0, function() {
  2413. if (!(timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.closed)) {
  2414. timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.unsubscribe();
  2415. }
  2416. lastValue = null;
  2417. }));
  2418. !seen && startTimer(first2 != null ? typeof first2 === "number" ? first2 : +first2 - scheduler.now() : each);
  2419. });
  2420. }
  2421. function timeoutErrorFactory(info) {
  2422. throw new TimeoutError(info);
  2423. }
  2424. // node_modules/rxjs/dist/esm5/internal/operators/map.js
  2425. function map(project, thisArg) {
  2426. return operate(function(source, subscriber) {
  2427. var index = 0;
  2428. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  2429. subscriber.next(project.call(thisArg, value, index++));
  2430. }));
  2431. });
  2432. }
  2433. // node_modules/rxjs/dist/esm5/internal/util/mapOneOrManyArgs.js
  2434. var isArray = Array.isArray;
  2435. function callOrApply(fn, args) {
  2436. return isArray(args) ? fn.apply(void 0, __spreadArray([], __read(args))) : fn(args);
  2437. }
  2438. function mapOneOrManyArgs(fn) {
  2439. return map(function(args) {
  2440. return callOrApply(fn, args);
  2441. });
  2442. }
  2443. // node_modules/rxjs/dist/esm5/internal/observable/bindCallbackInternals.js
  2444. function bindCallbackInternals(isNodeStyle, callbackFunc, resultSelector, scheduler) {
  2445. if (resultSelector) {
  2446. if (isScheduler(resultSelector)) {
  2447. scheduler = resultSelector;
  2448. } else {
  2449. return function() {
  2450. var args = [];
  2451. for (var _i = 0; _i < arguments.length; _i++) {
  2452. args[_i] = arguments[_i];
  2453. }
  2454. return bindCallbackInternals(isNodeStyle, callbackFunc, scheduler).apply(this, args).pipe(mapOneOrManyArgs(resultSelector));
  2455. };
  2456. }
  2457. }
  2458. if (scheduler) {
  2459. return function() {
  2460. var args = [];
  2461. for (var _i = 0; _i < arguments.length; _i++) {
  2462. args[_i] = arguments[_i];
  2463. }
  2464. return bindCallbackInternals(isNodeStyle, callbackFunc).apply(this, args).pipe(subscribeOn(scheduler), observeOn(scheduler));
  2465. };
  2466. }
  2467. return function() {
  2468. var _this = this;
  2469. var args = [];
  2470. for (var _i = 0; _i < arguments.length; _i++) {
  2471. args[_i] = arguments[_i];
  2472. }
  2473. var subject = new AsyncSubject();
  2474. var uninitialized = true;
  2475. return new Observable(function(subscriber) {
  2476. var subs = subject.subscribe(subscriber);
  2477. if (uninitialized) {
  2478. uninitialized = false;
  2479. var isAsync_1 = false;
  2480. var isComplete_1 = false;
  2481. callbackFunc.apply(_this, __spreadArray(__spreadArray([], __read(args)), [
  2482. function() {
  2483. var results = [];
  2484. for (var _i2 = 0; _i2 < arguments.length; _i2++) {
  2485. results[_i2] = arguments[_i2];
  2486. }
  2487. if (isNodeStyle) {
  2488. var err = results.shift();
  2489. if (err != null) {
  2490. subject.error(err);
  2491. return;
  2492. }
  2493. }
  2494. subject.next(1 < results.length ? results : results[0]);
  2495. isComplete_1 = true;
  2496. if (isAsync_1) {
  2497. subject.complete();
  2498. }
  2499. }
  2500. ]));
  2501. if (isComplete_1) {
  2502. subject.complete();
  2503. }
  2504. isAsync_1 = true;
  2505. }
  2506. return subs;
  2507. });
  2508. };
  2509. }
  2510. // node_modules/rxjs/dist/esm5/internal/observable/bindCallback.js
  2511. function bindCallback(callbackFunc, resultSelector, scheduler) {
  2512. return bindCallbackInternals(false, callbackFunc, resultSelector, scheduler);
  2513. }
  2514. // node_modules/rxjs/dist/esm5/internal/observable/bindNodeCallback.js
  2515. function bindNodeCallback(callbackFunc, resultSelector, scheduler) {
  2516. return bindCallbackInternals(true, callbackFunc, resultSelector, scheduler);
  2517. }
  2518. // node_modules/rxjs/dist/esm5/internal/util/argsArgArrayOrObject.js
  2519. var isArray2 = Array.isArray;
  2520. var getPrototypeOf = Object.getPrototypeOf;
  2521. var objectProto = Object.prototype;
  2522. var getKeys = Object.keys;
  2523. function argsArgArrayOrObject(args) {
  2524. if (args.length === 1) {
  2525. var first_1 = args[0];
  2526. if (isArray2(first_1)) {
  2527. return { args: first_1, keys: null };
  2528. }
  2529. if (isPOJO(first_1)) {
  2530. var keys = getKeys(first_1);
  2531. return {
  2532. args: keys.map(function(key) {
  2533. return first_1[key];
  2534. }),
  2535. keys
  2536. };
  2537. }
  2538. }
  2539. return { args, keys: null };
  2540. }
  2541. function isPOJO(obj) {
  2542. return obj && typeof obj === "object" && getPrototypeOf(obj) === objectProto;
  2543. }
  2544. // node_modules/rxjs/dist/esm5/internal/util/createObject.js
  2545. function createObject(keys, values) {
  2546. return keys.reduce(function(result, key, i) {
  2547. return result[key] = values[i], result;
  2548. }, {});
  2549. }
  2550. // node_modules/rxjs/dist/esm5/internal/observable/combineLatest.js
  2551. function combineLatest() {
  2552. var args = [];
  2553. for (var _i = 0; _i < arguments.length; _i++) {
  2554. args[_i] = arguments[_i];
  2555. }
  2556. var scheduler = popScheduler(args);
  2557. var resultSelector = popResultSelector(args);
  2558. var _a = argsArgArrayOrObject(args), observables = _a.args, keys = _a.keys;
  2559. if (observables.length === 0) {
  2560. return from([], scheduler);
  2561. }
  2562. var result = new Observable(combineLatestInit(observables, scheduler, keys ? function(values) {
  2563. return createObject(keys, values);
  2564. } : identity));
  2565. return resultSelector ? result.pipe(mapOneOrManyArgs(resultSelector)) : result;
  2566. }
  2567. function combineLatestInit(observables, scheduler, valueTransform) {
  2568. if (valueTransform === void 0) {
  2569. valueTransform = identity;
  2570. }
  2571. return function(subscriber) {
  2572. maybeSchedule(scheduler, function() {
  2573. var length = observables.length;
  2574. var values = new Array(length);
  2575. var active = length;
  2576. var remainingFirstValues = length;
  2577. var _loop_1 = function(i2) {
  2578. maybeSchedule(scheduler, function() {
  2579. var source = from(observables[i2], scheduler);
  2580. var hasFirstValue = false;
  2581. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  2582. values[i2] = value;
  2583. if (!hasFirstValue) {
  2584. hasFirstValue = true;
  2585. remainingFirstValues--;
  2586. }
  2587. if (!remainingFirstValues) {
  2588. subscriber.next(valueTransform(values.slice()));
  2589. }
  2590. }, function() {
  2591. if (!--active) {
  2592. subscriber.complete();
  2593. }
  2594. }));
  2595. }, subscriber);
  2596. };
  2597. for (var i = 0; i < length; i++) {
  2598. _loop_1(i);
  2599. }
  2600. }, subscriber);
  2601. };
  2602. }
  2603. function maybeSchedule(scheduler, execute, subscription) {
  2604. if (scheduler) {
  2605. executeSchedule(subscription, scheduler, execute);
  2606. } else {
  2607. execute();
  2608. }
  2609. }
  2610. // node_modules/rxjs/dist/esm5/internal/operators/mergeInternals.js
  2611. function mergeInternals(source, subscriber, project, concurrent, onBeforeNext, expand2, innerSubScheduler, additionalFinalizer) {
  2612. var buffer2 = [];
  2613. var active = 0;
  2614. var index = 0;
  2615. var isComplete = false;
  2616. var checkComplete = function() {
  2617. if (isComplete && !buffer2.length && !active) {
  2618. subscriber.complete();
  2619. }
  2620. };
  2621. var outerNext = function(value) {
  2622. return active < concurrent ? doInnerSub(value) : buffer2.push(value);
  2623. };
  2624. var doInnerSub = function(value) {
  2625. expand2 && subscriber.next(value);
  2626. active++;
  2627. var innerComplete = false;
  2628. innerFrom(project(value, index++)).subscribe(createOperatorSubscriber(subscriber, function(innerValue) {
  2629. onBeforeNext === null || onBeforeNext === void 0 ? void 0 : onBeforeNext(innerValue);
  2630. if (expand2) {
  2631. outerNext(innerValue);
  2632. } else {
  2633. subscriber.next(innerValue);
  2634. }
  2635. }, function() {
  2636. innerComplete = true;
  2637. }, void 0, function() {
  2638. if (innerComplete) {
  2639. try {
  2640. active--;
  2641. var _loop_1 = function() {
  2642. var bufferedValue = buffer2.shift();
  2643. if (innerSubScheduler) {
  2644. executeSchedule(subscriber, innerSubScheduler, function() {
  2645. return doInnerSub(bufferedValue);
  2646. });
  2647. } else {
  2648. doInnerSub(bufferedValue);
  2649. }
  2650. };
  2651. while (buffer2.length && active < concurrent) {
  2652. _loop_1();
  2653. }
  2654. checkComplete();
  2655. } catch (err) {
  2656. subscriber.error(err);
  2657. }
  2658. }
  2659. }));
  2660. };
  2661. source.subscribe(createOperatorSubscriber(subscriber, outerNext, function() {
  2662. isComplete = true;
  2663. checkComplete();
  2664. }));
  2665. return function() {
  2666. additionalFinalizer === null || additionalFinalizer === void 0 ? void 0 : additionalFinalizer();
  2667. };
  2668. }
  2669. // node_modules/rxjs/dist/esm5/internal/operators/mergeMap.js
  2670. function mergeMap(project, resultSelector, concurrent) {
  2671. if (concurrent === void 0) {
  2672. concurrent = Infinity;
  2673. }
  2674. if (isFunction(resultSelector)) {
  2675. return mergeMap(function(a, i) {
  2676. return map(function(b, ii) {
  2677. return resultSelector(a, b, i, ii);
  2678. })(innerFrom(project(a, i)));
  2679. }, concurrent);
  2680. } else if (typeof resultSelector === "number") {
  2681. concurrent = resultSelector;
  2682. }
  2683. return operate(function(source, subscriber) {
  2684. return mergeInternals(source, subscriber, project, concurrent);
  2685. });
  2686. }
  2687. // node_modules/rxjs/dist/esm5/internal/operators/mergeAll.js
  2688. function mergeAll(concurrent) {
  2689. if (concurrent === void 0) {
  2690. concurrent = Infinity;
  2691. }
  2692. return mergeMap(identity, concurrent);
  2693. }
  2694. // node_modules/rxjs/dist/esm5/internal/operators/concatAll.js
  2695. function concatAll() {
  2696. return mergeAll(1);
  2697. }
  2698. // node_modules/rxjs/dist/esm5/internal/observable/concat.js
  2699. function concat() {
  2700. var args = [];
  2701. for (var _i = 0; _i < arguments.length; _i++) {
  2702. args[_i] = arguments[_i];
  2703. }
  2704. return concatAll()(from(args, popScheduler(args)));
  2705. }
  2706. // node_modules/rxjs/dist/esm5/internal/observable/defer.js
  2707. function defer(observableFactory) {
  2708. return new Observable(function(subscriber) {
  2709. innerFrom(observableFactory()).subscribe(subscriber);
  2710. });
  2711. }
  2712. // node_modules/rxjs/dist/esm5/internal/observable/connectable.js
  2713. var DEFAULT_CONFIG = {
  2714. connector: function() {
  2715. return new Subject();
  2716. },
  2717. resetOnDisconnect: true
  2718. };
  2719. function connectable(source, config2) {
  2720. if (config2 === void 0) {
  2721. config2 = DEFAULT_CONFIG;
  2722. }
  2723. var connection = null;
  2724. var connector = config2.connector, _a = config2.resetOnDisconnect, resetOnDisconnect = _a === void 0 ? true : _a;
  2725. var subject = connector();
  2726. var result = new Observable(function(subscriber) {
  2727. return subject.subscribe(subscriber);
  2728. });
  2729. result.connect = function() {
  2730. if (!connection || connection.closed) {
  2731. connection = defer(function() {
  2732. return source;
  2733. }).subscribe(subject);
  2734. if (resetOnDisconnect) {
  2735. connection.add(function() {
  2736. return subject = connector();
  2737. });
  2738. }
  2739. }
  2740. return connection;
  2741. };
  2742. return result;
  2743. }
  2744. // node_modules/rxjs/dist/esm5/internal/observable/forkJoin.js
  2745. function forkJoin() {
  2746. var args = [];
  2747. for (var _i = 0; _i < arguments.length; _i++) {
  2748. args[_i] = arguments[_i];
  2749. }
  2750. var resultSelector = popResultSelector(args);
  2751. var _a = argsArgArrayOrObject(args), sources = _a.args, keys = _a.keys;
  2752. var result = new Observable(function(subscriber) {
  2753. var length = sources.length;
  2754. if (!length) {
  2755. subscriber.complete();
  2756. return;
  2757. }
  2758. var values = new Array(length);
  2759. var remainingCompletions = length;
  2760. var remainingEmissions = length;
  2761. var _loop_1 = function(sourceIndex2) {
  2762. var hasValue = false;
  2763. innerFrom(sources[sourceIndex2]).subscribe(createOperatorSubscriber(subscriber, function(value) {
  2764. if (!hasValue) {
  2765. hasValue = true;
  2766. remainingEmissions--;
  2767. }
  2768. values[sourceIndex2] = value;
  2769. }, function() {
  2770. return remainingCompletions--;
  2771. }, void 0, function() {
  2772. if (!remainingCompletions || !hasValue) {
  2773. if (!remainingEmissions) {
  2774. subscriber.next(keys ? createObject(keys, values) : values);
  2775. }
  2776. subscriber.complete();
  2777. }
  2778. }));
  2779. };
  2780. for (var sourceIndex = 0; sourceIndex < length; sourceIndex++) {
  2781. _loop_1(sourceIndex);
  2782. }
  2783. });
  2784. return resultSelector ? result.pipe(mapOneOrManyArgs(resultSelector)) : result;
  2785. }
  2786. // node_modules/rxjs/dist/esm5/internal/observable/fromEvent.js
  2787. var nodeEventEmitterMethods = ["addListener", "removeListener"];
  2788. var eventTargetMethods = ["addEventListener", "removeEventListener"];
  2789. var jqueryMethods = ["on", "off"];
  2790. function fromEvent(target, eventName, options, resultSelector) {
  2791. if (isFunction(options)) {
  2792. resultSelector = options;
  2793. options = void 0;
  2794. }
  2795. if (resultSelector) {
  2796. return fromEvent(target, eventName, options).pipe(mapOneOrManyArgs(resultSelector));
  2797. }
  2798. var _a = __read(isEventTarget(target) ? eventTargetMethods.map(function(methodName) {
  2799. return function(handler) {
  2800. return target[methodName](eventName, handler, options);
  2801. };
  2802. }) : isNodeStyleEventEmitter(target) ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName)) : isJQueryStyleEventEmitter(target) ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName)) : [], 2), add = _a[0], remove = _a[1];
  2803. if (!add) {
  2804. if (isArrayLike(target)) {
  2805. return mergeMap(function(subTarget) {
  2806. return fromEvent(subTarget, eventName, options);
  2807. })(innerFrom(target));
  2808. }
  2809. }
  2810. if (!add) {
  2811. throw new TypeError("Invalid event target");
  2812. }
  2813. return new Observable(function(subscriber) {
  2814. var handler = function() {
  2815. var args = [];
  2816. for (var _i = 0; _i < arguments.length; _i++) {
  2817. args[_i] = arguments[_i];
  2818. }
  2819. return subscriber.next(1 < args.length ? args : args[0]);
  2820. };
  2821. add(handler);
  2822. return function() {
  2823. return remove(handler);
  2824. };
  2825. });
  2826. }
  2827. function toCommonHandlerRegistry(target, eventName) {
  2828. return function(methodName) {
  2829. return function(handler) {
  2830. return target[methodName](eventName, handler);
  2831. };
  2832. };
  2833. }
  2834. function isNodeStyleEventEmitter(target) {
  2835. return isFunction(target.addListener) && isFunction(target.removeListener);
  2836. }
  2837. function isJQueryStyleEventEmitter(target) {
  2838. return isFunction(target.on) && isFunction(target.off);
  2839. }
  2840. function isEventTarget(target) {
  2841. return isFunction(target.addEventListener) && isFunction(target.removeEventListener);
  2842. }
  2843. // node_modules/rxjs/dist/esm5/internal/observable/fromEventPattern.js
  2844. function fromEventPattern(addHandler, removeHandler, resultSelector) {
  2845. if (resultSelector) {
  2846. return fromEventPattern(addHandler, removeHandler).pipe(mapOneOrManyArgs(resultSelector));
  2847. }
  2848. return new Observable(function(subscriber) {
  2849. var handler = function() {
  2850. var e = [];
  2851. for (var _i = 0; _i < arguments.length; _i++) {
  2852. e[_i] = arguments[_i];
  2853. }
  2854. return subscriber.next(e.length === 1 ? e[0] : e);
  2855. };
  2856. var retValue = addHandler(handler);
  2857. return isFunction(removeHandler) ? function() {
  2858. return removeHandler(handler, retValue);
  2859. } : void 0;
  2860. });
  2861. }
  2862. // node_modules/rxjs/dist/esm5/internal/observable/generate.js
  2863. function generate(initialStateOrOptions, condition, iterate, resultSelectorOrScheduler, scheduler) {
  2864. var _a, _b;
  2865. var resultSelector;
  2866. var initialState;
  2867. if (arguments.length === 1) {
  2868. _a = initialStateOrOptions, initialState = _a.initialState, condition = _a.condition, iterate = _a.iterate, _b = _a.resultSelector, resultSelector = _b === void 0 ? identity : _b, scheduler = _a.scheduler;
  2869. } else {
  2870. initialState = initialStateOrOptions;
  2871. if (!resultSelectorOrScheduler || isScheduler(resultSelectorOrScheduler)) {
  2872. resultSelector = identity;
  2873. scheduler = resultSelectorOrScheduler;
  2874. } else {
  2875. resultSelector = resultSelectorOrScheduler;
  2876. }
  2877. }
  2878. function gen() {
  2879. var state;
  2880. return __generator(this, function(_a2) {
  2881. switch (_a2.label) {
  2882. case 0:
  2883. state = initialState;
  2884. _a2.label = 1;
  2885. case 1:
  2886. if (!(!condition || condition(state)))
  2887. return [3, 4];
  2888. return [4, resultSelector(state)];
  2889. case 2:
  2890. _a2.sent();
  2891. _a2.label = 3;
  2892. case 3:
  2893. state = iterate(state);
  2894. return [3, 1];
  2895. case 4:
  2896. return [2];
  2897. }
  2898. });
  2899. }
  2900. return defer(scheduler ? function() {
  2901. return scheduleIterable(gen(), scheduler);
  2902. } : gen);
  2903. }
  2904. // node_modules/rxjs/dist/esm5/internal/observable/iif.js
  2905. function iif(condition, trueResult, falseResult) {
  2906. return defer(function() {
  2907. return condition() ? trueResult : falseResult;
  2908. });
  2909. }
  2910. // node_modules/rxjs/dist/esm5/internal/observable/timer.js
  2911. function timer(dueTime, intervalOrScheduler, scheduler) {
  2912. if (dueTime === void 0) {
  2913. dueTime = 0;
  2914. }
  2915. if (scheduler === void 0) {
  2916. scheduler = async;
  2917. }
  2918. var intervalDuration = -1;
  2919. if (intervalOrScheduler != null) {
  2920. if (isScheduler(intervalOrScheduler)) {
  2921. scheduler = intervalOrScheduler;
  2922. } else {
  2923. intervalDuration = intervalOrScheduler;
  2924. }
  2925. }
  2926. return new Observable(function(subscriber) {
  2927. var due = isValidDate(dueTime) ? +dueTime - scheduler.now() : dueTime;
  2928. if (due < 0) {
  2929. due = 0;
  2930. }
  2931. var n = 0;
  2932. return scheduler.schedule(function() {
  2933. if (!subscriber.closed) {
  2934. subscriber.next(n++);
  2935. if (0 <= intervalDuration) {
  2936. this.schedule(void 0, intervalDuration);
  2937. } else {
  2938. subscriber.complete();
  2939. }
  2940. }
  2941. }, due);
  2942. });
  2943. }
  2944. // node_modules/rxjs/dist/esm5/internal/observable/interval.js
  2945. function interval(period, scheduler) {
  2946. if (period === void 0) {
  2947. period = 0;
  2948. }
  2949. if (scheduler === void 0) {
  2950. scheduler = asyncScheduler;
  2951. }
  2952. if (period < 0) {
  2953. period = 0;
  2954. }
  2955. return timer(period, period, scheduler);
  2956. }
  2957. // node_modules/rxjs/dist/esm5/internal/observable/merge.js
  2958. function merge() {
  2959. var args = [];
  2960. for (var _i = 0; _i < arguments.length; _i++) {
  2961. args[_i] = arguments[_i];
  2962. }
  2963. var scheduler = popScheduler(args);
  2964. var concurrent = popNumber(args, Infinity);
  2965. var sources = args;
  2966. return !sources.length ? EMPTY : sources.length === 1 ? innerFrom(sources[0]) : mergeAll(concurrent)(from(sources, scheduler));
  2967. }
  2968. // node_modules/rxjs/dist/esm5/internal/observable/never.js
  2969. var NEVER = new Observable(noop);
  2970. function never() {
  2971. return NEVER;
  2972. }
  2973. // node_modules/rxjs/dist/esm5/internal/util/argsOrArgArray.js
  2974. var isArray3 = Array.isArray;
  2975. function argsOrArgArray(args) {
  2976. return args.length === 1 && isArray3(args[0]) ? args[0] : args;
  2977. }
  2978. // node_modules/rxjs/dist/esm5/internal/observable/onErrorResumeNext.js
  2979. function onErrorResumeNext() {
  2980. var sources = [];
  2981. for (var _i = 0; _i < arguments.length; _i++) {
  2982. sources[_i] = arguments[_i];
  2983. }
  2984. var nextSources = argsOrArgArray(sources);
  2985. return new Observable(function(subscriber) {
  2986. var sourceIndex = 0;
  2987. var subscribeNext = function() {
  2988. if (sourceIndex < nextSources.length) {
  2989. var nextSource = void 0;
  2990. try {
  2991. nextSource = innerFrom(nextSources[sourceIndex++]);
  2992. } catch (err) {
  2993. subscribeNext();
  2994. return;
  2995. }
  2996. var innerSubscriber = new OperatorSubscriber(subscriber, void 0, noop, noop);
  2997. nextSource.subscribe(innerSubscriber);
  2998. innerSubscriber.add(subscribeNext);
  2999. } else {
  3000. subscriber.complete();
  3001. }
  3002. };
  3003. subscribeNext();
  3004. });
  3005. }
  3006. // node_modules/rxjs/dist/esm5/internal/observable/pairs.js
  3007. function pairs(obj, scheduler) {
  3008. return from(Object.entries(obj), scheduler);
  3009. }
  3010. // node_modules/rxjs/dist/esm5/internal/util/not.js
  3011. function not(pred, thisArg) {
  3012. return function(value, index) {
  3013. return !pred.call(thisArg, value, index);
  3014. };
  3015. }
  3016. // node_modules/rxjs/dist/esm5/internal/operators/filter.js
  3017. function filter(predicate, thisArg) {
  3018. return operate(function(source, subscriber) {
  3019. var index = 0;
  3020. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  3021. return predicate.call(thisArg, value, index++) && subscriber.next(value);
  3022. }));
  3023. });
  3024. }
  3025. // node_modules/rxjs/dist/esm5/internal/observable/partition.js
  3026. function partition(source, predicate, thisArg) {
  3027. return [filter(predicate, thisArg)(innerFrom(source)), filter(not(predicate, thisArg))(innerFrom(source))];
  3028. }
  3029. // node_modules/rxjs/dist/esm5/internal/observable/race.js
  3030. function race() {
  3031. var sources = [];
  3032. for (var _i = 0; _i < arguments.length; _i++) {
  3033. sources[_i] = arguments[_i];
  3034. }
  3035. sources = argsOrArgArray(sources);
  3036. return sources.length === 1 ? innerFrom(sources[0]) : new Observable(raceInit(sources));
  3037. }
  3038. function raceInit(sources) {
  3039. return function(subscriber) {
  3040. var subscriptions = [];
  3041. var _loop_1 = function(i2) {
  3042. subscriptions.push(innerFrom(sources[i2]).subscribe(createOperatorSubscriber(subscriber, function(value) {
  3043. if (subscriptions) {
  3044. for (var s = 0; s < subscriptions.length; s++) {
  3045. s !== i2 && subscriptions[s].unsubscribe();
  3046. }
  3047. subscriptions = null;
  3048. }
  3049. subscriber.next(value);
  3050. })));
  3051. };
  3052. for (var i = 0; subscriptions && !subscriber.closed && i < sources.length; i++) {
  3053. _loop_1(i);
  3054. }
  3055. };
  3056. }
  3057. // node_modules/rxjs/dist/esm5/internal/observable/range.js
  3058. function range(start, count2, scheduler) {
  3059. if (count2 == null) {
  3060. count2 = start;
  3061. start = 0;
  3062. }
  3063. if (count2 <= 0) {
  3064. return EMPTY;
  3065. }
  3066. var end = count2 + start;
  3067. return new Observable(scheduler ? function(subscriber) {
  3068. var n = start;
  3069. return scheduler.schedule(function() {
  3070. if (n < end) {
  3071. subscriber.next(n++);
  3072. this.schedule();
  3073. } else {
  3074. subscriber.complete();
  3075. }
  3076. });
  3077. } : function(subscriber) {
  3078. var n = start;
  3079. while (n < end && !subscriber.closed) {
  3080. subscriber.next(n++);
  3081. }
  3082. subscriber.complete();
  3083. });
  3084. }
  3085. // node_modules/rxjs/dist/esm5/internal/observable/using.js
  3086. function using(resourceFactory, observableFactory) {
  3087. return new Observable(function(subscriber) {
  3088. var resource = resourceFactory();
  3089. var result = observableFactory(resource);
  3090. var source = result ? innerFrom(result) : EMPTY;
  3091. source.subscribe(subscriber);
  3092. return function() {
  3093. if (resource) {
  3094. resource.unsubscribe();
  3095. }
  3096. };
  3097. });
  3098. }
  3099. // node_modules/rxjs/dist/esm5/internal/observable/zip.js
  3100. function zip() {
  3101. var args = [];
  3102. for (var _i = 0; _i < arguments.length; _i++) {
  3103. args[_i] = arguments[_i];
  3104. }
  3105. var resultSelector = popResultSelector(args);
  3106. var sources = argsOrArgArray(args);
  3107. return sources.length ? new Observable(function(subscriber) {
  3108. var buffers = sources.map(function() {
  3109. return [];
  3110. });
  3111. var completed = sources.map(function() {
  3112. return false;
  3113. });
  3114. subscriber.add(function() {
  3115. buffers = completed = null;
  3116. });
  3117. var _loop_1 = function(sourceIndex2) {
  3118. innerFrom(sources[sourceIndex2]).subscribe(createOperatorSubscriber(subscriber, function(value) {
  3119. buffers[sourceIndex2].push(value);
  3120. if (buffers.every(function(buffer2) {
  3121. return buffer2.length;
  3122. })) {
  3123. var result = buffers.map(function(buffer2) {
  3124. return buffer2.shift();
  3125. });
  3126. subscriber.next(resultSelector ? resultSelector.apply(void 0, __spreadArray([], __read(result))) : result);
  3127. if (buffers.some(function(buffer2, i) {
  3128. return !buffer2.length && completed[i];
  3129. })) {
  3130. subscriber.complete();
  3131. }
  3132. }
  3133. }, function() {
  3134. completed[sourceIndex2] = true;
  3135. !buffers[sourceIndex2].length && subscriber.complete();
  3136. }));
  3137. };
  3138. for (var sourceIndex = 0; !subscriber.closed && sourceIndex < sources.length; sourceIndex++) {
  3139. _loop_1(sourceIndex);
  3140. }
  3141. return function() {
  3142. buffers = completed = null;
  3143. };
  3144. }) : EMPTY;
  3145. }
  3146. // node_modules/rxjs/dist/esm5/internal/operators/audit.js
  3147. function audit(durationSelector) {
  3148. return operate(function(source, subscriber) {
  3149. var hasValue = false;
  3150. var lastValue = null;
  3151. var durationSubscriber = null;
  3152. var isComplete = false;
  3153. var endDuration = function() {
  3154. durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe();
  3155. durationSubscriber = null;
  3156. if (hasValue) {
  3157. hasValue = false;
  3158. var value = lastValue;
  3159. lastValue = null;
  3160. subscriber.next(value);
  3161. }
  3162. isComplete && subscriber.complete();
  3163. };
  3164. var cleanupDuration = function() {
  3165. durationSubscriber = null;
  3166. isComplete && subscriber.complete();
  3167. };
  3168. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  3169. hasValue = true;
  3170. lastValue = value;
  3171. if (!durationSubscriber) {
  3172. innerFrom(durationSelector(value)).subscribe(durationSubscriber = createOperatorSubscriber(subscriber, endDuration, cleanupDuration));
  3173. }
  3174. }, function() {
  3175. isComplete = true;
  3176. (!hasValue || !durationSubscriber || durationSubscriber.closed) && subscriber.complete();
  3177. }));
  3178. });
  3179. }
  3180. // node_modules/rxjs/dist/esm5/internal/operators/auditTime.js
  3181. function auditTime(duration, scheduler) {
  3182. if (scheduler === void 0) {
  3183. scheduler = asyncScheduler;
  3184. }
  3185. return audit(function() {
  3186. return timer(duration, scheduler);
  3187. });
  3188. }
  3189. // node_modules/rxjs/dist/esm5/internal/operators/buffer.js
  3190. function buffer(closingNotifier) {
  3191. return operate(function(source, subscriber) {
  3192. var currentBuffer = [];
  3193. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  3194. return currentBuffer.push(value);
  3195. }, function() {
  3196. subscriber.next(currentBuffer);
  3197. subscriber.complete();
  3198. }));
  3199. innerFrom(closingNotifier).subscribe(createOperatorSubscriber(subscriber, function() {
  3200. var b = currentBuffer;
  3201. currentBuffer = [];
  3202. subscriber.next(b);
  3203. }, noop));
  3204. return function() {
  3205. currentBuffer = null;
  3206. };
  3207. });
  3208. }
  3209. // node_modules/rxjs/dist/esm5/internal/operators/bufferCount.js
  3210. function bufferCount(bufferSize, startBufferEvery) {
  3211. if (startBufferEvery === void 0) {
  3212. startBufferEvery = null;
  3213. }
  3214. startBufferEvery = startBufferEvery !== null && startBufferEvery !== void 0 ? startBufferEvery : bufferSize;
  3215. return operate(function(source, subscriber) {
  3216. var buffers = [];
  3217. var count2 = 0;
  3218. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  3219. var e_1, _a, e_2, _b;
  3220. var toEmit = null;
  3221. if (count2++ % startBufferEvery === 0) {
  3222. buffers.push([]);
  3223. }
  3224. try {
  3225. for (var buffers_1 = __values(buffers), buffers_1_1 = buffers_1.next(); !buffers_1_1.done; buffers_1_1 = buffers_1.next()) {
  3226. var buffer2 = buffers_1_1.value;
  3227. buffer2.push(value);
  3228. if (bufferSize <= buffer2.length) {
  3229. toEmit = toEmit !== null && toEmit !== void 0 ? toEmit : [];
  3230. toEmit.push(buffer2);
  3231. }
  3232. }
  3233. } catch (e_1_1) {
  3234. e_1 = { error: e_1_1 };
  3235. } finally {
  3236. try {
  3237. if (buffers_1_1 && !buffers_1_1.done && (_a = buffers_1.return))
  3238. _a.call(buffers_1);
  3239. } finally {
  3240. if (e_1)
  3241. throw e_1.error;
  3242. }
  3243. }
  3244. if (toEmit) {
  3245. try {
  3246. for (var toEmit_1 = __values(toEmit), toEmit_1_1 = toEmit_1.next(); !toEmit_1_1.done; toEmit_1_1 = toEmit_1.next()) {
  3247. var buffer2 = toEmit_1_1.value;
  3248. arrRemove(buffers, buffer2);
  3249. subscriber.next(buffer2);
  3250. }
  3251. } catch (e_2_1) {
  3252. e_2 = { error: e_2_1 };
  3253. } finally {
  3254. try {
  3255. if (toEmit_1_1 && !toEmit_1_1.done && (_b = toEmit_1.return))
  3256. _b.call(toEmit_1);
  3257. } finally {
  3258. if (e_2)
  3259. throw e_2.error;
  3260. }
  3261. }
  3262. }
  3263. }, function() {
  3264. var e_3, _a;
  3265. try {
  3266. for (var buffers_2 = __values(buffers), buffers_2_1 = buffers_2.next(); !buffers_2_1.done; buffers_2_1 = buffers_2.next()) {
  3267. var buffer2 = buffers_2_1.value;
  3268. subscriber.next(buffer2);
  3269. }
  3270. } catch (e_3_1) {
  3271. e_3 = { error: e_3_1 };
  3272. } finally {
  3273. try {
  3274. if (buffers_2_1 && !buffers_2_1.done && (_a = buffers_2.return))
  3275. _a.call(buffers_2);
  3276. } finally {
  3277. if (e_3)
  3278. throw e_3.error;
  3279. }
  3280. }
  3281. subscriber.complete();
  3282. }, void 0, function() {
  3283. buffers = null;
  3284. }));
  3285. });
  3286. }
  3287. // node_modules/rxjs/dist/esm5/internal/operators/bufferTime.js
  3288. function bufferTime(bufferTimeSpan) {
  3289. var _a, _b;
  3290. var otherArgs = [];
  3291. for (var _i = 1; _i < arguments.length; _i++) {
  3292. otherArgs[_i - 1] = arguments[_i];
  3293. }
  3294. var scheduler = (_a = popScheduler(otherArgs)) !== null && _a !== void 0 ? _a : asyncScheduler;
  3295. var bufferCreationInterval = (_b = otherArgs[0]) !== null && _b !== void 0 ? _b : null;
  3296. var maxBufferSize = otherArgs[1] || Infinity;
  3297. return operate(function(source, subscriber) {
  3298. var bufferRecords = [];
  3299. var restartOnEmit = false;
  3300. var emit = function(record) {
  3301. var buffer2 = record.buffer, subs = record.subs;
  3302. subs.unsubscribe();
  3303. arrRemove(bufferRecords, record);
  3304. subscriber.next(buffer2);
  3305. restartOnEmit && startBuffer();
  3306. };
  3307. var startBuffer = function() {
  3308. if (bufferRecords) {
  3309. var subs = new Subscription();
  3310. subscriber.add(subs);
  3311. var buffer2 = [];
  3312. var record_1 = {
  3313. buffer: buffer2,
  3314. subs
  3315. };
  3316. bufferRecords.push(record_1);
  3317. executeSchedule(subs, scheduler, function() {
  3318. return emit(record_1);
  3319. }, bufferTimeSpan);
  3320. }
  3321. };
  3322. if (bufferCreationInterval !== null && bufferCreationInterval >= 0) {
  3323. executeSchedule(subscriber, scheduler, startBuffer, bufferCreationInterval, true);
  3324. } else {
  3325. restartOnEmit = true;
  3326. }
  3327. startBuffer();
  3328. var bufferTimeSubscriber = createOperatorSubscriber(subscriber, function(value) {
  3329. var e_1, _a2;
  3330. var recordsCopy = bufferRecords.slice();
  3331. try {
  3332. for (var recordsCopy_1 = __values(recordsCopy), recordsCopy_1_1 = recordsCopy_1.next(); !recordsCopy_1_1.done; recordsCopy_1_1 = recordsCopy_1.next()) {
  3333. var record = recordsCopy_1_1.value;
  3334. var buffer2 = record.buffer;
  3335. buffer2.push(value);
  3336. maxBufferSize <= buffer2.length && emit(record);
  3337. }
  3338. } catch (e_1_1) {
  3339. e_1 = { error: e_1_1 };
  3340. } finally {
  3341. try {
  3342. if (recordsCopy_1_1 && !recordsCopy_1_1.done && (_a2 = recordsCopy_1.return))
  3343. _a2.call(recordsCopy_1);
  3344. } finally {
  3345. if (e_1)
  3346. throw e_1.error;
  3347. }
  3348. }
  3349. }, function() {
  3350. while (bufferRecords === null || bufferRecords === void 0 ? void 0 : bufferRecords.length) {
  3351. subscriber.next(bufferRecords.shift().buffer);
  3352. }
  3353. bufferTimeSubscriber === null || bufferTimeSubscriber === void 0 ? void 0 : bufferTimeSubscriber.unsubscribe();
  3354. subscriber.complete();
  3355. subscriber.unsubscribe();
  3356. }, void 0, function() {
  3357. return bufferRecords = null;
  3358. });
  3359. source.subscribe(bufferTimeSubscriber);
  3360. });
  3361. }
  3362. // node_modules/rxjs/dist/esm5/internal/operators/bufferToggle.js
  3363. function bufferToggle(openings, closingSelector) {
  3364. return operate(function(source, subscriber) {
  3365. var buffers = [];
  3366. innerFrom(openings).subscribe(createOperatorSubscriber(subscriber, function(openValue) {
  3367. var buffer2 = [];
  3368. buffers.push(buffer2);
  3369. var closingSubscription = new Subscription();
  3370. var emitBuffer = function() {
  3371. arrRemove(buffers, buffer2);
  3372. subscriber.next(buffer2);
  3373. closingSubscription.unsubscribe();
  3374. };
  3375. closingSubscription.add(innerFrom(closingSelector(openValue)).subscribe(createOperatorSubscriber(subscriber, emitBuffer, noop)));
  3376. }, noop));
  3377. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  3378. var e_1, _a;
  3379. try {
  3380. for (var buffers_1 = __values(buffers), buffers_1_1 = buffers_1.next(); !buffers_1_1.done; buffers_1_1 = buffers_1.next()) {
  3381. var buffer2 = buffers_1_1.value;
  3382. buffer2.push(value);
  3383. }
  3384. } catch (e_1_1) {
  3385. e_1 = { error: e_1_1 };
  3386. } finally {
  3387. try {
  3388. if (buffers_1_1 && !buffers_1_1.done && (_a = buffers_1.return))
  3389. _a.call(buffers_1);
  3390. } finally {
  3391. if (e_1)
  3392. throw e_1.error;
  3393. }
  3394. }
  3395. }, function() {
  3396. while (buffers.length > 0) {
  3397. subscriber.next(buffers.shift());
  3398. }
  3399. subscriber.complete();
  3400. }));
  3401. });
  3402. }
  3403. // node_modules/rxjs/dist/esm5/internal/operators/bufferWhen.js
  3404. function bufferWhen(closingSelector) {
  3405. return operate(function(source, subscriber) {
  3406. var buffer2 = null;
  3407. var closingSubscriber = null;
  3408. var openBuffer = function() {
  3409. closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe();
  3410. var b = buffer2;
  3411. buffer2 = [];
  3412. b && subscriber.next(b);
  3413. innerFrom(closingSelector()).subscribe(closingSubscriber = createOperatorSubscriber(subscriber, openBuffer, noop));
  3414. };
  3415. openBuffer();
  3416. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  3417. return buffer2 === null || buffer2 === void 0 ? void 0 : buffer2.push(value);
  3418. }, function() {
  3419. buffer2 && subscriber.next(buffer2);
  3420. subscriber.complete();
  3421. }, void 0, function() {
  3422. return buffer2 = closingSubscriber = null;
  3423. }));
  3424. });
  3425. }
  3426. // node_modules/rxjs/dist/esm5/internal/operators/catchError.js
  3427. function catchError(selector) {
  3428. return operate(function(source, subscriber) {
  3429. var innerSub = null;
  3430. var syncUnsub = false;
  3431. var handledResult;
  3432. innerSub = source.subscribe(createOperatorSubscriber(subscriber, void 0, void 0, function(err) {
  3433. handledResult = innerFrom(selector(err, catchError(selector)(source)));
  3434. if (innerSub) {
  3435. innerSub.unsubscribe();
  3436. innerSub = null;
  3437. handledResult.subscribe(subscriber);
  3438. } else {
  3439. syncUnsub = true;
  3440. }
  3441. }));
  3442. if (syncUnsub) {
  3443. innerSub.unsubscribe();
  3444. innerSub = null;
  3445. handledResult.subscribe(subscriber);
  3446. }
  3447. });
  3448. }
  3449. // node_modules/rxjs/dist/esm5/internal/operators/scanInternals.js
  3450. function scanInternals(accumulator, seed, hasSeed, emitOnNext, emitBeforeComplete) {
  3451. return function(source, subscriber) {
  3452. var hasState = hasSeed;
  3453. var state = seed;
  3454. var index = 0;
  3455. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  3456. var i = index++;
  3457. state = hasState ? accumulator(state, value, i) : (hasState = true, value);
  3458. emitOnNext && subscriber.next(state);
  3459. }, emitBeforeComplete && function() {
  3460. hasState && subscriber.next(state);
  3461. subscriber.complete();
  3462. }));
  3463. };
  3464. }
  3465. // node_modules/rxjs/dist/esm5/internal/operators/reduce.js
  3466. function reduce(accumulator, seed) {
  3467. return operate(scanInternals(accumulator, seed, arguments.length >= 2, false, true));
  3468. }
  3469. // node_modules/rxjs/dist/esm5/internal/operators/toArray.js
  3470. var arrReducer = function(arr, value) {
  3471. return arr.push(value), arr;
  3472. };
  3473. function toArray() {
  3474. return operate(function(source, subscriber) {
  3475. reduce(arrReducer, [])(source).subscribe(subscriber);
  3476. });
  3477. }
  3478. // node_modules/rxjs/dist/esm5/internal/operators/joinAllInternals.js
  3479. function joinAllInternals(joinFn, project) {
  3480. return pipe(toArray(), mergeMap(function(sources) {
  3481. return joinFn(sources);
  3482. }), project ? mapOneOrManyArgs(project) : identity);
  3483. }
  3484. // node_modules/rxjs/dist/esm5/internal/operators/combineLatestAll.js
  3485. function combineLatestAll(project) {
  3486. return joinAllInternals(combineLatest, project);
  3487. }
  3488. // node_modules/rxjs/dist/esm5/internal/operators/combineAll.js
  3489. var combineAll = combineLatestAll;
  3490. // node_modules/rxjs/dist/esm5/internal/operators/combineLatest.js
  3491. function combineLatest2() {
  3492. var args = [];
  3493. for (var _i = 0; _i < arguments.length; _i++) {
  3494. args[_i] = arguments[_i];
  3495. }
  3496. var resultSelector = popResultSelector(args);
  3497. return resultSelector ? pipe(combineLatest2.apply(void 0, __spreadArray([], __read(args))), mapOneOrManyArgs(resultSelector)) : operate(function(source, subscriber) {
  3498. combineLatestInit(__spreadArray([source], __read(argsOrArgArray(args))))(subscriber);
  3499. });
  3500. }
  3501. // node_modules/rxjs/dist/esm5/internal/operators/combineLatestWith.js
  3502. function combineLatestWith() {
  3503. var otherSources = [];
  3504. for (var _i = 0; _i < arguments.length; _i++) {
  3505. otherSources[_i] = arguments[_i];
  3506. }
  3507. return combineLatest2.apply(void 0, __spreadArray([], __read(otherSources)));
  3508. }
  3509. // node_modules/rxjs/dist/esm5/internal/operators/concatMap.js
  3510. function concatMap(project, resultSelector) {
  3511. return isFunction(resultSelector) ? mergeMap(project, resultSelector, 1) : mergeMap(project, 1);
  3512. }
  3513. // node_modules/rxjs/dist/esm5/internal/operators/concatMapTo.js
  3514. function concatMapTo(innerObservable, resultSelector) {
  3515. return isFunction(resultSelector) ? concatMap(function() {
  3516. return innerObservable;
  3517. }, resultSelector) : concatMap(function() {
  3518. return innerObservable;
  3519. });
  3520. }
  3521. // node_modules/rxjs/dist/esm5/internal/operators/concat.js
  3522. function concat2() {
  3523. var args = [];
  3524. for (var _i = 0; _i < arguments.length; _i++) {
  3525. args[_i] = arguments[_i];
  3526. }
  3527. var scheduler = popScheduler(args);
  3528. return operate(function(source, subscriber) {
  3529. concatAll()(from(__spreadArray([source], __read(args)), scheduler)).subscribe(subscriber);
  3530. });
  3531. }
  3532. // node_modules/rxjs/dist/esm5/internal/operators/concatWith.js
  3533. function concatWith() {
  3534. var otherSources = [];
  3535. for (var _i = 0; _i < arguments.length; _i++) {
  3536. otherSources[_i] = arguments[_i];
  3537. }
  3538. return concat2.apply(void 0, __spreadArray([], __read(otherSources)));
  3539. }
  3540. // node_modules/rxjs/dist/esm5/internal/observable/fromSubscribable.js
  3541. function fromSubscribable(subscribable) {
  3542. return new Observable(function(subscriber) {
  3543. return subscribable.subscribe(subscriber);
  3544. });
  3545. }
  3546. // node_modules/rxjs/dist/esm5/internal/operators/connect.js
  3547. var DEFAULT_CONFIG2 = {
  3548. connector: function() {
  3549. return new Subject();
  3550. }
  3551. };
  3552. function connect(selector, config2) {
  3553. if (config2 === void 0) {
  3554. config2 = DEFAULT_CONFIG2;
  3555. }
  3556. var connector = config2.connector;
  3557. return operate(function(source, subscriber) {
  3558. var subject = connector();
  3559. innerFrom(selector(fromSubscribable(subject))).subscribe(subscriber);
  3560. subscriber.add(source.subscribe(subject));
  3561. });
  3562. }
  3563. // node_modules/rxjs/dist/esm5/internal/operators/count.js
  3564. function count(predicate) {
  3565. return reduce(function(total, value, i) {
  3566. return !predicate || predicate(value, i) ? total + 1 : total;
  3567. }, 0);
  3568. }
  3569. // node_modules/rxjs/dist/esm5/internal/operators/debounce.js
  3570. function debounce(durationSelector) {
  3571. return operate(function(source, subscriber) {
  3572. var hasValue = false;
  3573. var lastValue = null;
  3574. var durationSubscriber = null;
  3575. var emit = function() {
  3576. durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe();
  3577. durationSubscriber = null;
  3578. if (hasValue) {
  3579. hasValue = false;
  3580. var value = lastValue;
  3581. lastValue = null;
  3582. subscriber.next(value);
  3583. }
  3584. };
  3585. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  3586. durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe();
  3587. hasValue = true;
  3588. lastValue = value;
  3589. durationSubscriber = createOperatorSubscriber(subscriber, emit, noop);
  3590. innerFrom(durationSelector(value)).subscribe(durationSubscriber);
  3591. }, function() {
  3592. emit();
  3593. subscriber.complete();
  3594. }, void 0, function() {
  3595. lastValue = durationSubscriber = null;
  3596. }));
  3597. });
  3598. }
  3599. // node_modules/rxjs/dist/esm5/internal/operators/debounceTime.js
  3600. function debounceTime(dueTime, scheduler) {
  3601. if (scheduler === void 0) {
  3602. scheduler = asyncScheduler;
  3603. }
  3604. return operate(function(source, subscriber) {
  3605. var activeTask = null;
  3606. var lastValue = null;
  3607. var lastTime = null;
  3608. var emit = function() {
  3609. if (activeTask) {
  3610. activeTask.unsubscribe();
  3611. activeTask = null;
  3612. var value = lastValue;
  3613. lastValue = null;
  3614. subscriber.next(value);
  3615. }
  3616. };
  3617. function emitWhenIdle() {
  3618. var targetTime = lastTime + dueTime;
  3619. var now = scheduler.now();
  3620. if (now < targetTime) {
  3621. activeTask = this.schedule(void 0, targetTime - now);
  3622. subscriber.add(activeTask);
  3623. return;
  3624. }
  3625. emit();
  3626. }
  3627. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  3628. lastValue = value;
  3629. lastTime = scheduler.now();
  3630. if (!activeTask) {
  3631. activeTask = scheduler.schedule(emitWhenIdle, dueTime);
  3632. subscriber.add(activeTask);
  3633. }
  3634. }, function() {
  3635. emit();
  3636. subscriber.complete();
  3637. }, void 0, function() {
  3638. lastValue = activeTask = null;
  3639. }));
  3640. });
  3641. }
  3642. // node_modules/rxjs/dist/esm5/internal/operators/defaultIfEmpty.js
  3643. function defaultIfEmpty(defaultValue) {
  3644. return operate(function(source, subscriber) {
  3645. var hasValue = false;
  3646. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  3647. hasValue = true;
  3648. subscriber.next(value);
  3649. }, function() {
  3650. if (!hasValue) {
  3651. subscriber.next(defaultValue);
  3652. }
  3653. subscriber.complete();
  3654. }));
  3655. });
  3656. }
  3657. // node_modules/rxjs/dist/esm5/internal/operators/take.js
  3658. function take(count2) {
  3659. return count2 <= 0 ? function() {
  3660. return EMPTY;
  3661. } : operate(function(source, subscriber) {
  3662. var seen = 0;
  3663. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  3664. if (++seen <= count2) {
  3665. subscriber.next(value);
  3666. if (count2 <= seen) {
  3667. subscriber.complete();
  3668. }
  3669. }
  3670. }));
  3671. });
  3672. }
  3673. // node_modules/rxjs/dist/esm5/internal/operators/ignoreElements.js
  3674. function ignoreElements() {
  3675. return operate(function(source, subscriber) {
  3676. source.subscribe(createOperatorSubscriber(subscriber, noop));
  3677. });
  3678. }
  3679. // node_modules/rxjs/dist/esm5/internal/operators/mapTo.js
  3680. function mapTo(value) {
  3681. return map(function() {
  3682. return value;
  3683. });
  3684. }
  3685. // node_modules/rxjs/dist/esm5/internal/operators/delayWhen.js
  3686. function delayWhen(delayDurationSelector, subscriptionDelay) {
  3687. if (subscriptionDelay) {
  3688. return function(source) {
  3689. return concat(subscriptionDelay.pipe(take(1), ignoreElements()), source.pipe(delayWhen(delayDurationSelector)));
  3690. };
  3691. }
  3692. return mergeMap(function(value, index) {
  3693. return innerFrom(delayDurationSelector(value, index)).pipe(take(1), mapTo(value));
  3694. });
  3695. }
  3696. // node_modules/rxjs/dist/esm5/internal/operators/delay.js
  3697. function delay(due, scheduler) {
  3698. if (scheduler === void 0) {
  3699. scheduler = asyncScheduler;
  3700. }
  3701. var duration = timer(due, scheduler);
  3702. return delayWhen(function() {
  3703. return duration;
  3704. });
  3705. }
  3706. // node_modules/rxjs/dist/esm5/internal/operators/dematerialize.js
  3707. function dematerialize() {
  3708. return operate(function(source, subscriber) {
  3709. source.subscribe(createOperatorSubscriber(subscriber, function(notification) {
  3710. return observeNotification(notification, subscriber);
  3711. }));
  3712. });
  3713. }
  3714. // node_modules/rxjs/dist/esm5/internal/operators/distinct.js
  3715. function distinct(keySelector, flushes) {
  3716. return operate(function(source, subscriber) {
  3717. var distinctKeys = /* @__PURE__ */ new Set();
  3718. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  3719. var key = keySelector ? keySelector(value) : value;
  3720. if (!distinctKeys.has(key)) {
  3721. distinctKeys.add(key);
  3722. subscriber.next(value);
  3723. }
  3724. }));
  3725. flushes && innerFrom(flushes).subscribe(createOperatorSubscriber(subscriber, function() {
  3726. return distinctKeys.clear();
  3727. }, noop));
  3728. });
  3729. }
  3730. // node_modules/rxjs/dist/esm5/internal/operators/distinctUntilChanged.js
  3731. function distinctUntilChanged(comparator, keySelector) {
  3732. if (keySelector === void 0) {
  3733. keySelector = identity;
  3734. }
  3735. comparator = comparator !== null && comparator !== void 0 ? comparator : defaultCompare;
  3736. return operate(function(source, subscriber) {
  3737. var previousKey;
  3738. var first2 = true;
  3739. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  3740. var currentKey = keySelector(value);
  3741. if (first2 || !comparator(previousKey, currentKey)) {
  3742. first2 = false;
  3743. previousKey = currentKey;
  3744. subscriber.next(value);
  3745. }
  3746. }));
  3747. });
  3748. }
  3749. function defaultCompare(a, b) {
  3750. return a === b;
  3751. }
  3752. // node_modules/rxjs/dist/esm5/internal/operators/distinctUntilKeyChanged.js
  3753. function distinctUntilKeyChanged(key, compare) {
  3754. return distinctUntilChanged(function(x, y) {
  3755. return compare ? compare(x[key], y[key]) : x[key] === y[key];
  3756. });
  3757. }
  3758. // node_modules/rxjs/dist/esm5/internal/operators/throwIfEmpty.js
  3759. function throwIfEmpty(errorFactory) {
  3760. if (errorFactory === void 0) {
  3761. errorFactory = defaultErrorFactory;
  3762. }
  3763. return operate(function(source, subscriber) {
  3764. var hasValue = false;
  3765. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  3766. hasValue = true;
  3767. subscriber.next(value);
  3768. }, function() {
  3769. return hasValue ? subscriber.complete() : subscriber.error(errorFactory());
  3770. }));
  3771. });
  3772. }
  3773. function defaultErrorFactory() {
  3774. return new EmptyError();
  3775. }
  3776. // node_modules/rxjs/dist/esm5/internal/operators/elementAt.js
  3777. function elementAt(index, defaultValue) {
  3778. if (index < 0) {
  3779. throw new ArgumentOutOfRangeError();
  3780. }
  3781. var hasDefaultValue = arguments.length >= 2;
  3782. return function(source) {
  3783. return source.pipe(filter(function(v, i) {
  3784. return i === index;
  3785. }), take(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(function() {
  3786. return new ArgumentOutOfRangeError();
  3787. }));
  3788. };
  3789. }
  3790. // node_modules/rxjs/dist/esm5/internal/operators/endWith.js
  3791. function endWith() {
  3792. var values = [];
  3793. for (var _i = 0; _i < arguments.length; _i++) {
  3794. values[_i] = arguments[_i];
  3795. }
  3796. return function(source) {
  3797. return concat(source, of.apply(void 0, __spreadArray([], __read(values))));
  3798. };
  3799. }
  3800. // node_modules/rxjs/dist/esm5/internal/operators/every.js
  3801. function every(predicate, thisArg) {
  3802. return operate(function(source, subscriber) {
  3803. var index = 0;
  3804. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  3805. if (!predicate.call(thisArg, value, index++, source)) {
  3806. subscriber.next(false);
  3807. subscriber.complete();
  3808. }
  3809. }, function() {
  3810. subscriber.next(true);
  3811. subscriber.complete();
  3812. }));
  3813. });
  3814. }
  3815. // node_modules/rxjs/dist/esm5/internal/operators/exhaustMap.js
  3816. function exhaustMap(project, resultSelector) {
  3817. if (resultSelector) {
  3818. return function(source) {
  3819. return source.pipe(exhaustMap(function(a, i) {
  3820. return innerFrom(project(a, i)).pipe(map(function(b, ii) {
  3821. return resultSelector(a, b, i, ii);
  3822. }));
  3823. }));
  3824. };
  3825. }
  3826. return operate(function(source, subscriber) {
  3827. var index = 0;
  3828. var innerSub = null;
  3829. var isComplete = false;
  3830. source.subscribe(createOperatorSubscriber(subscriber, function(outerValue) {
  3831. if (!innerSub) {
  3832. innerSub = createOperatorSubscriber(subscriber, void 0, function() {
  3833. innerSub = null;
  3834. isComplete && subscriber.complete();
  3835. });
  3836. innerFrom(project(outerValue, index++)).subscribe(innerSub);
  3837. }
  3838. }, function() {
  3839. isComplete = true;
  3840. !innerSub && subscriber.complete();
  3841. }));
  3842. });
  3843. }
  3844. // node_modules/rxjs/dist/esm5/internal/operators/exhaustAll.js
  3845. function exhaustAll() {
  3846. return exhaustMap(identity);
  3847. }
  3848. // node_modules/rxjs/dist/esm5/internal/operators/exhaust.js
  3849. var exhaust = exhaustAll;
  3850. // node_modules/rxjs/dist/esm5/internal/operators/expand.js
  3851. function expand(project, concurrent, scheduler) {
  3852. if (concurrent === void 0) {
  3853. concurrent = Infinity;
  3854. }
  3855. concurrent = (concurrent || 0) < 1 ? Infinity : concurrent;
  3856. return operate(function(source, subscriber) {
  3857. return mergeInternals(source, subscriber, project, concurrent, void 0, true, scheduler);
  3858. });
  3859. }
  3860. // node_modules/rxjs/dist/esm5/internal/operators/finalize.js
  3861. function finalize(callback) {
  3862. return operate(function(source, subscriber) {
  3863. try {
  3864. source.subscribe(subscriber);
  3865. } finally {
  3866. subscriber.add(callback);
  3867. }
  3868. });
  3869. }
  3870. // node_modules/rxjs/dist/esm5/internal/operators/find.js
  3871. function find(predicate, thisArg) {
  3872. return operate(createFind(predicate, thisArg, "value"));
  3873. }
  3874. function createFind(predicate, thisArg, emit) {
  3875. var findIndex2 = emit === "index";
  3876. return function(source, subscriber) {
  3877. var index = 0;
  3878. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  3879. var i = index++;
  3880. if (predicate.call(thisArg, value, i, source)) {
  3881. subscriber.next(findIndex2 ? i : value);
  3882. subscriber.complete();
  3883. }
  3884. }, function() {
  3885. subscriber.next(findIndex2 ? -1 : void 0);
  3886. subscriber.complete();
  3887. }));
  3888. };
  3889. }
  3890. // node_modules/rxjs/dist/esm5/internal/operators/findIndex.js
  3891. function findIndex(predicate, thisArg) {
  3892. return operate(createFind(predicate, thisArg, "index"));
  3893. }
  3894. // node_modules/rxjs/dist/esm5/internal/operators/first.js
  3895. function first(predicate, defaultValue) {
  3896. var hasDefaultValue = arguments.length >= 2;
  3897. return function(source) {
  3898. return source.pipe(predicate ? filter(function(v, i) {
  3899. return predicate(v, i, source);
  3900. }) : identity, take(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(function() {
  3901. return new EmptyError();
  3902. }));
  3903. };
  3904. }
  3905. // node_modules/rxjs/dist/esm5/internal/operators/groupBy.js
  3906. function groupBy(keySelector, elementOrOptions, duration, connector) {
  3907. return operate(function(source, subscriber) {
  3908. var element;
  3909. if (!elementOrOptions || typeof elementOrOptions === "function") {
  3910. element = elementOrOptions;
  3911. } else {
  3912. duration = elementOrOptions.duration, element = elementOrOptions.element, connector = elementOrOptions.connector;
  3913. }
  3914. var groups = /* @__PURE__ */ new Map();
  3915. var notify = function(cb) {
  3916. groups.forEach(cb);
  3917. cb(subscriber);
  3918. };
  3919. var handleError = function(err) {
  3920. return notify(function(consumer) {
  3921. return consumer.error(err);
  3922. });
  3923. };
  3924. var activeGroups = 0;
  3925. var teardownAttempted = false;
  3926. var groupBySourceSubscriber = new OperatorSubscriber(subscriber, function(value) {
  3927. try {
  3928. var key_1 = keySelector(value);
  3929. var group_1 = groups.get(key_1);
  3930. if (!group_1) {
  3931. groups.set(key_1, group_1 = connector ? connector() : new Subject());
  3932. var grouped = createGroupedObservable(key_1, group_1);
  3933. subscriber.next(grouped);
  3934. if (duration) {
  3935. var durationSubscriber_1 = createOperatorSubscriber(group_1, function() {
  3936. group_1.complete();
  3937. durationSubscriber_1 === null || durationSubscriber_1 === void 0 ? void 0 : durationSubscriber_1.unsubscribe();
  3938. }, void 0, void 0, function() {
  3939. return groups.delete(key_1);
  3940. });
  3941. groupBySourceSubscriber.add(innerFrom(duration(grouped)).subscribe(durationSubscriber_1));
  3942. }
  3943. }
  3944. group_1.next(element ? element(value) : value);
  3945. } catch (err) {
  3946. handleError(err);
  3947. }
  3948. }, function() {
  3949. return notify(function(consumer) {
  3950. return consumer.complete();
  3951. });
  3952. }, handleError, function() {
  3953. return groups.clear();
  3954. }, function() {
  3955. teardownAttempted = true;
  3956. return activeGroups === 0;
  3957. });
  3958. source.subscribe(groupBySourceSubscriber);
  3959. function createGroupedObservable(key, groupSubject) {
  3960. var result = new Observable(function(groupSubscriber) {
  3961. activeGroups++;
  3962. var innerSub = groupSubject.subscribe(groupSubscriber);
  3963. return function() {
  3964. innerSub.unsubscribe();
  3965. --activeGroups === 0 && teardownAttempted && groupBySourceSubscriber.unsubscribe();
  3966. };
  3967. });
  3968. result.key = key;
  3969. return result;
  3970. }
  3971. });
  3972. }
  3973. // node_modules/rxjs/dist/esm5/internal/operators/isEmpty.js
  3974. function isEmpty() {
  3975. return operate(function(source, subscriber) {
  3976. source.subscribe(createOperatorSubscriber(subscriber, function() {
  3977. subscriber.next(false);
  3978. subscriber.complete();
  3979. }, function() {
  3980. subscriber.next(true);
  3981. subscriber.complete();
  3982. }));
  3983. });
  3984. }
  3985. // node_modules/rxjs/dist/esm5/internal/operators/takeLast.js
  3986. function takeLast(count2) {
  3987. return count2 <= 0 ? function() {
  3988. return EMPTY;
  3989. } : operate(function(source, subscriber) {
  3990. var buffer2 = [];
  3991. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  3992. buffer2.push(value);
  3993. count2 < buffer2.length && buffer2.shift();
  3994. }, function() {
  3995. var e_1, _a;
  3996. try {
  3997. for (var buffer_1 = __values(buffer2), buffer_1_1 = buffer_1.next(); !buffer_1_1.done; buffer_1_1 = buffer_1.next()) {
  3998. var value = buffer_1_1.value;
  3999. subscriber.next(value);
  4000. }
  4001. } catch (e_1_1) {
  4002. e_1 = { error: e_1_1 };
  4003. } finally {
  4004. try {
  4005. if (buffer_1_1 && !buffer_1_1.done && (_a = buffer_1.return))
  4006. _a.call(buffer_1);
  4007. } finally {
  4008. if (e_1)
  4009. throw e_1.error;
  4010. }
  4011. }
  4012. subscriber.complete();
  4013. }, void 0, function() {
  4014. buffer2 = null;
  4015. }));
  4016. });
  4017. }
  4018. // node_modules/rxjs/dist/esm5/internal/operators/last.js
  4019. function last2(predicate, defaultValue) {
  4020. var hasDefaultValue = arguments.length >= 2;
  4021. return function(source) {
  4022. return source.pipe(predicate ? filter(function(v, i) {
  4023. return predicate(v, i, source);
  4024. }) : identity, takeLast(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(function() {
  4025. return new EmptyError();
  4026. }));
  4027. };
  4028. }
  4029. // node_modules/rxjs/dist/esm5/internal/operators/materialize.js
  4030. function materialize() {
  4031. return operate(function(source, subscriber) {
  4032. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  4033. subscriber.next(Notification.createNext(value));
  4034. }, function() {
  4035. subscriber.next(Notification.createComplete());
  4036. subscriber.complete();
  4037. }, function(err) {
  4038. subscriber.next(Notification.createError(err));
  4039. subscriber.complete();
  4040. }));
  4041. });
  4042. }
  4043. // node_modules/rxjs/dist/esm5/internal/operators/max.js
  4044. function max(comparer) {
  4045. return reduce(isFunction(comparer) ? function(x, y) {
  4046. return comparer(x, y) > 0 ? x : y;
  4047. } : function(x, y) {
  4048. return x > y ? x : y;
  4049. });
  4050. }
  4051. // node_modules/rxjs/dist/esm5/internal/operators/flatMap.js
  4052. var flatMap = mergeMap;
  4053. // node_modules/rxjs/dist/esm5/internal/operators/mergeMapTo.js
  4054. function mergeMapTo(innerObservable, resultSelector, concurrent) {
  4055. if (concurrent === void 0) {
  4056. concurrent = Infinity;
  4057. }
  4058. if (isFunction(resultSelector)) {
  4059. return mergeMap(function() {
  4060. return innerObservable;
  4061. }, resultSelector, concurrent);
  4062. }
  4063. if (typeof resultSelector === "number") {
  4064. concurrent = resultSelector;
  4065. }
  4066. return mergeMap(function() {
  4067. return innerObservable;
  4068. }, concurrent);
  4069. }
  4070. // node_modules/rxjs/dist/esm5/internal/operators/mergeScan.js
  4071. function mergeScan(accumulator, seed, concurrent) {
  4072. if (concurrent === void 0) {
  4073. concurrent = Infinity;
  4074. }
  4075. return operate(function(source, subscriber) {
  4076. var state = seed;
  4077. return mergeInternals(source, subscriber, function(value, index) {
  4078. return accumulator(state, value, index);
  4079. }, concurrent, function(value) {
  4080. state = value;
  4081. }, false, void 0, function() {
  4082. return state = null;
  4083. });
  4084. });
  4085. }
  4086. // node_modules/rxjs/dist/esm5/internal/operators/merge.js
  4087. function merge2() {
  4088. var args = [];
  4089. for (var _i = 0; _i < arguments.length; _i++) {
  4090. args[_i] = arguments[_i];
  4091. }
  4092. var scheduler = popScheduler(args);
  4093. var concurrent = popNumber(args, Infinity);
  4094. args = argsOrArgArray(args);
  4095. return operate(function(source, subscriber) {
  4096. mergeAll(concurrent)(from(__spreadArray([source], __read(args)), scheduler)).subscribe(subscriber);
  4097. });
  4098. }
  4099. // node_modules/rxjs/dist/esm5/internal/operators/mergeWith.js
  4100. function mergeWith() {
  4101. var otherSources = [];
  4102. for (var _i = 0; _i < arguments.length; _i++) {
  4103. otherSources[_i] = arguments[_i];
  4104. }
  4105. return merge2.apply(void 0, __spreadArray([], __read(otherSources)));
  4106. }
  4107. // node_modules/rxjs/dist/esm5/internal/operators/min.js
  4108. function min(comparer) {
  4109. return reduce(isFunction(comparer) ? function(x, y) {
  4110. return comparer(x, y) < 0 ? x : y;
  4111. } : function(x, y) {
  4112. return x < y ? x : y;
  4113. });
  4114. }
  4115. // node_modules/rxjs/dist/esm5/internal/operators/multicast.js
  4116. function multicast(subjectOrSubjectFactory, selector) {
  4117. var subjectFactory = isFunction(subjectOrSubjectFactory) ? subjectOrSubjectFactory : function() {
  4118. return subjectOrSubjectFactory;
  4119. };
  4120. if (isFunction(selector)) {
  4121. return connect(selector, {
  4122. connector: subjectFactory
  4123. });
  4124. }
  4125. return function(source) {
  4126. return new ConnectableObservable(source, subjectFactory);
  4127. };
  4128. }
  4129. // node_modules/rxjs/dist/esm5/internal/operators/onErrorResumeNextWith.js
  4130. function onErrorResumeNextWith() {
  4131. var sources = [];
  4132. for (var _i = 0; _i < arguments.length; _i++) {
  4133. sources[_i] = arguments[_i];
  4134. }
  4135. var nextSources = argsOrArgArray(sources);
  4136. return function(source) {
  4137. return onErrorResumeNext.apply(void 0, __spreadArray([source], __read(nextSources)));
  4138. };
  4139. }
  4140. // node_modules/rxjs/dist/esm5/internal/operators/pairwise.js
  4141. function pairwise() {
  4142. return operate(function(source, subscriber) {
  4143. var prev;
  4144. var hasPrev = false;
  4145. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  4146. var p = prev;
  4147. prev = value;
  4148. hasPrev && subscriber.next([p, value]);
  4149. hasPrev = true;
  4150. }));
  4151. });
  4152. }
  4153. // node_modules/rxjs/dist/esm5/internal/operators/pluck.js
  4154. function pluck() {
  4155. var properties = [];
  4156. for (var _i = 0; _i < arguments.length; _i++) {
  4157. properties[_i] = arguments[_i];
  4158. }
  4159. var length = properties.length;
  4160. if (length === 0) {
  4161. throw new Error("list of properties cannot be empty.");
  4162. }
  4163. return map(function(x) {
  4164. var currentProp = x;
  4165. for (var i = 0; i < length; i++) {
  4166. var p = currentProp === null || currentProp === void 0 ? void 0 : currentProp[properties[i]];
  4167. if (typeof p !== "undefined") {
  4168. currentProp = p;
  4169. } else {
  4170. return void 0;
  4171. }
  4172. }
  4173. return currentProp;
  4174. });
  4175. }
  4176. // node_modules/rxjs/dist/esm5/internal/operators/publish.js
  4177. function publish(selector) {
  4178. return selector ? function(source) {
  4179. return connect(selector)(source);
  4180. } : function(source) {
  4181. return multicast(new Subject())(source);
  4182. };
  4183. }
  4184. // node_modules/rxjs/dist/esm5/internal/operators/publishBehavior.js
  4185. function publishBehavior(initialValue) {
  4186. return function(source) {
  4187. var subject = new BehaviorSubject(initialValue);
  4188. return new ConnectableObservable(source, function() {
  4189. return subject;
  4190. });
  4191. };
  4192. }
  4193. // node_modules/rxjs/dist/esm5/internal/operators/publishLast.js
  4194. function publishLast() {
  4195. return function(source) {
  4196. var subject = new AsyncSubject();
  4197. return new ConnectableObservable(source, function() {
  4198. return subject;
  4199. });
  4200. };
  4201. }
  4202. // node_modules/rxjs/dist/esm5/internal/operators/publishReplay.js
  4203. function publishReplay(bufferSize, windowTime2, selectorOrScheduler, timestampProvider) {
  4204. if (selectorOrScheduler && !isFunction(selectorOrScheduler)) {
  4205. timestampProvider = selectorOrScheduler;
  4206. }
  4207. var selector = isFunction(selectorOrScheduler) ? selectorOrScheduler : void 0;
  4208. return function(source) {
  4209. return multicast(new ReplaySubject(bufferSize, windowTime2, timestampProvider), selector)(source);
  4210. };
  4211. }
  4212. // node_modules/rxjs/dist/esm5/internal/operators/raceWith.js
  4213. function raceWith() {
  4214. var otherSources = [];
  4215. for (var _i = 0; _i < arguments.length; _i++) {
  4216. otherSources[_i] = arguments[_i];
  4217. }
  4218. return !otherSources.length ? identity : operate(function(source, subscriber) {
  4219. raceInit(__spreadArray([source], __read(otherSources)))(subscriber);
  4220. });
  4221. }
  4222. // node_modules/rxjs/dist/esm5/internal/operators/repeat.js
  4223. function repeat(countOrConfig) {
  4224. var _a;
  4225. var count2 = Infinity;
  4226. var delay2;
  4227. if (countOrConfig != null) {
  4228. if (typeof countOrConfig === "object") {
  4229. _a = countOrConfig.count, count2 = _a === void 0 ? Infinity : _a, delay2 = countOrConfig.delay;
  4230. } else {
  4231. count2 = countOrConfig;
  4232. }
  4233. }
  4234. return count2 <= 0 ? function() {
  4235. return EMPTY;
  4236. } : operate(function(source, subscriber) {
  4237. var soFar = 0;
  4238. var sourceSub;
  4239. var resubscribe = function() {
  4240. sourceSub === null || sourceSub === void 0 ? void 0 : sourceSub.unsubscribe();
  4241. sourceSub = null;
  4242. if (delay2 != null) {
  4243. var notifier = typeof delay2 === "number" ? timer(delay2) : innerFrom(delay2(soFar));
  4244. var notifierSubscriber_1 = createOperatorSubscriber(subscriber, function() {
  4245. notifierSubscriber_1.unsubscribe();
  4246. subscribeToSource();
  4247. });
  4248. notifier.subscribe(notifierSubscriber_1);
  4249. } else {
  4250. subscribeToSource();
  4251. }
  4252. };
  4253. var subscribeToSource = function() {
  4254. var syncUnsub = false;
  4255. sourceSub = source.subscribe(createOperatorSubscriber(subscriber, void 0, function() {
  4256. if (++soFar < count2) {
  4257. if (sourceSub) {
  4258. resubscribe();
  4259. } else {
  4260. syncUnsub = true;
  4261. }
  4262. } else {
  4263. subscriber.complete();
  4264. }
  4265. }));
  4266. if (syncUnsub) {
  4267. resubscribe();
  4268. }
  4269. };
  4270. subscribeToSource();
  4271. });
  4272. }
  4273. // node_modules/rxjs/dist/esm5/internal/operators/repeatWhen.js
  4274. function repeatWhen(notifier) {
  4275. return operate(function(source, subscriber) {
  4276. var innerSub;
  4277. var syncResub = false;
  4278. var completions$;
  4279. var isNotifierComplete = false;
  4280. var isMainComplete = false;
  4281. var checkComplete = function() {
  4282. return isMainComplete && isNotifierComplete && (subscriber.complete(), true);
  4283. };
  4284. var getCompletionSubject = function() {
  4285. if (!completions$) {
  4286. completions$ = new Subject();
  4287. innerFrom(notifier(completions$)).subscribe(createOperatorSubscriber(subscriber, function() {
  4288. if (innerSub) {
  4289. subscribeForRepeatWhen();
  4290. } else {
  4291. syncResub = true;
  4292. }
  4293. }, function() {
  4294. isNotifierComplete = true;
  4295. checkComplete();
  4296. }));
  4297. }
  4298. return completions$;
  4299. };
  4300. var subscribeForRepeatWhen = function() {
  4301. isMainComplete = false;
  4302. innerSub = source.subscribe(createOperatorSubscriber(subscriber, void 0, function() {
  4303. isMainComplete = true;
  4304. !checkComplete() && getCompletionSubject().next();
  4305. }));
  4306. if (syncResub) {
  4307. innerSub.unsubscribe();
  4308. innerSub = null;
  4309. syncResub = false;
  4310. subscribeForRepeatWhen();
  4311. }
  4312. };
  4313. subscribeForRepeatWhen();
  4314. });
  4315. }
  4316. // node_modules/rxjs/dist/esm5/internal/operators/retry.js
  4317. function retry(configOrCount) {
  4318. if (configOrCount === void 0) {
  4319. configOrCount = Infinity;
  4320. }
  4321. var config2;
  4322. if (configOrCount && typeof configOrCount === "object") {
  4323. config2 = configOrCount;
  4324. } else {
  4325. config2 = {
  4326. count: configOrCount
  4327. };
  4328. }
  4329. var _a = config2.count, count2 = _a === void 0 ? Infinity : _a, delay2 = config2.delay, _b = config2.resetOnSuccess, resetOnSuccess = _b === void 0 ? false : _b;
  4330. return count2 <= 0 ? identity : operate(function(source, subscriber) {
  4331. var soFar = 0;
  4332. var innerSub;
  4333. var subscribeForRetry = function() {
  4334. var syncUnsub = false;
  4335. innerSub = source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  4336. if (resetOnSuccess) {
  4337. soFar = 0;
  4338. }
  4339. subscriber.next(value);
  4340. }, void 0, function(err) {
  4341. if (soFar++ < count2) {
  4342. var resub_1 = function() {
  4343. if (innerSub) {
  4344. innerSub.unsubscribe();
  4345. innerSub = null;
  4346. subscribeForRetry();
  4347. } else {
  4348. syncUnsub = true;
  4349. }
  4350. };
  4351. if (delay2 != null) {
  4352. var notifier = typeof delay2 === "number" ? timer(delay2) : innerFrom(delay2(err, soFar));
  4353. var notifierSubscriber_1 = createOperatorSubscriber(subscriber, function() {
  4354. notifierSubscriber_1.unsubscribe();
  4355. resub_1();
  4356. }, function() {
  4357. subscriber.complete();
  4358. });
  4359. notifier.subscribe(notifierSubscriber_1);
  4360. } else {
  4361. resub_1();
  4362. }
  4363. } else {
  4364. subscriber.error(err);
  4365. }
  4366. }));
  4367. if (syncUnsub) {
  4368. innerSub.unsubscribe();
  4369. innerSub = null;
  4370. subscribeForRetry();
  4371. }
  4372. };
  4373. subscribeForRetry();
  4374. });
  4375. }
  4376. // node_modules/rxjs/dist/esm5/internal/operators/retryWhen.js
  4377. function retryWhen(notifier) {
  4378. return operate(function(source, subscriber) {
  4379. var innerSub;
  4380. var syncResub = false;
  4381. var errors$;
  4382. var subscribeForRetryWhen = function() {
  4383. innerSub = source.subscribe(createOperatorSubscriber(subscriber, void 0, void 0, function(err) {
  4384. if (!errors$) {
  4385. errors$ = new Subject();
  4386. innerFrom(notifier(errors$)).subscribe(createOperatorSubscriber(subscriber, function() {
  4387. return innerSub ? subscribeForRetryWhen() : syncResub = true;
  4388. }));
  4389. }
  4390. if (errors$) {
  4391. errors$.next(err);
  4392. }
  4393. }));
  4394. if (syncResub) {
  4395. innerSub.unsubscribe();
  4396. innerSub = null;
  4397. syncResub = false;
  4398. subscribeForRetryWhen();
  4399. }
  4400. };
  4401. subscribeForRetryWhen();
  4402. });
  4403. }
  4404. // node_modules/rxjs/dist/esm5/internal/operators/sample.js
  4405. function sample(notifier) {
  4406. return operate(function(source, subscriber) {
  4407. var hasValue = false;
  4408. var lastValue = null;
  4409. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  4410. hasValue = true;
  4411. lastValue = value;
  4412. }));
  4413. innerFrom(notifier).subscribe(createOperatorSubscriber(subscriber, function() {
  4414. if (hasValue) {
  4415. hasValue = false;
  4416. var value = lastValue;
  4417. lastValue = null;
  4418. subscriber.next(value);
  4419. }
  4420. }, noop));
  4421. });
  4422. }
  4423. // node_modules/rxjs/dist/esm5/internal/operators/sampleTime.js
  4424. function sampleTime(period, scheduler) {
  4425. if (scheduler === void 0) {
  4426. scheduler = asyncScheduler;
  4427. }
  4428. return sample(interval(period, scheduler));
  4429. }
  4430. // node_modules/rxjs/dist/esm5/internal/operators/scan.js
  4431. function scan(accumulator, seed) {
  4432. return operate(scanInternals(accumulator, seed, arguments.length >= 2, true));
  4433. }
  4434. // node_modules/rxjs/dist/esm5/internal/operators/sequenceEqual.js
  4435. function sequenceEqual(compareTo, comparator) {
  4436. if (comparator === void 0) {
  4437. comparator = function(a, b) {
  4438. return a === b;
  4439. };
  4440. }
  4441. return operate(function(source, subscriber) {
  4442. var aState = createState();
  4443. var bState = createState();
  4444. var emit = function(isEqual) {
  4445. subscriber.next(isEqual);
  4446. subscriber.complete();
  4447. };
  4448. var createSubscriber = function(selfState, otherState) {
  4449. var sequenceEqualSubscriber = createOperatorSubscriber(subscriber, function(a) {
  4450. var buffer2 = otherState.buffer, complete = otherState.complete;
  4451. if (buffer2.length === 0) {
  4452. complete ? emit(false) : selfState.buffer.push(a);
  4453. } else {
  4454. !comparator(a, buffer2.shift()) && emit(false);
  4455. }
  4456. }, function() {
  4457. selfState.complete = true;
  4458. var complete = otherState.complete, buffer2 = otherState.buffer;
  4459. complete && emit(buffer2.length === 0);
  4460. sequenceEqualSubscriber === null || sequenceEqualSubscriber === void 0 ? void 0 : sequenceEqualSubscriber.unsubscribe();
  4461. });
  4462. return sequenceEqualSubscriber;
  4463. };
  4464. source.subscribe(createSubscriber(aState, bState));
  4465. innerFrom(compareTo).subscribe(createSubscriber(bState, aState));
  4466. });
  4467. }
  4468. function createState() {
  4469. return {
  4470. buffer: [],
  4471. complete: false
  4472. };
  4473. }
  4474. // node_modules/rxjs/dist/esm5/internal/operators/share.js
  4475. function share(options) {
  4476. if (options === void 0) {
  4477. options = {};
  4478. }
  4479. var _a = options.connector, connector = _a === void 0 ? function() {
  4480. return new Subject();
  4481. } : _a, _b = options.resetOnError, resetOnError = _b === void 0 ? true : _b, _c = options.resetOnComplete, resetOnComplete = _c === void 0 ? true : _c, _d = options.resetOnRefCountZero, resetOnRefCountZero = _d === void 0 ? true : _d;
  4482. return function(wrapperSource) {
  4483. var connection;
  4484. var resetConnection;
  4485. var subject;
  4486. var refCount2 = 0;
  4487. var hasCompleted = false;
  4488. var hasErrored = false;
  4489. var cancelReset = function() {
  4490. resetConnection === null || resetConnection === void 0 ? void 0 : resetConnection.unsubscribe();
  4491. resetConnection = void 0;
  4492. };
  4493. var reset = function() {
  4494. cancelReset();
  4495. connection = subject = void 0;
  4496. hasCompleted = hasErrored = false;
  4497. };
  4498. var resetAndUnsubscribe = function() {
  4499. var conn = connection;
  4500. reset();
  4501. conn === null || conn === void 0 ? void 0 : conn.unsubscribe();
  4502. };
  4503. return operate(function(source, subscriber) {
  4504. refCount2++;
  4505. if (!hasErrored && !hasCompleted) {
  4506. cancelReset();
  4507. }
  4508. var dest = subject = subject !== null && subject !== void 0 ? subject : connector();
  4509. subscriber.add(function() {
  4510. refCount2--;
  4511. if (refCount2 === 0 && !hasErrored && !hasCompleted) {
  4512. resetConnection = handleReset(resetAndUnsubscribe, resetOnRefCountZero);
  4513. }
  4514. });
  4515. dest.subscribe(subscriber);
  4516. if (!connection && refCount2 > 0) {
  4517. connection = new SafeSubscriber({
  4518. next: function(value) {
  4519. return dest.next(value);
  4520. },
  4521. error: function(err) {
  4522. hasErrored = true;
  4523. cancelReset();
  4524. resetConnection = handleReset(reset, resetOnError, err);
  4525. dest.error(err);
  4526. },
  4527. complete: function() {
  4528. hasCompleted = true;
  4529. cancelReset();
  4530. resetConnection = handleReset(reset, resetOnComplete);
  4531. dest.complete();
  4532. }
  4533. });
  4534. innerFrom(source).subscribe(connection);
  4535. }
  4536. })(wrapperSource);
  4537. };
  4538. }
  4539. function handleReset(reset, on) {
  4540. var args = [];
  4541. for (var _i = 2; _i < arguments.length; _i++) {
  4542. args[_i - 2] = arguments[_i];
  4543. }
  4544. if (on === true) {
  4545. reset();
  4546. return;
  4547. }
  4548. if (on === false) {
  4549. return;
  4550. }
  4551. var onSubscriber = new SafeSubscriber({
  4552. next: function() {
  4553. onSubscriber.unsubscribe();
  4554. reset();
  4555. }
  4556. });
  4557. return innerFrom(on.apply(void 0, __spreadArray([], __read(args)))).subscribe(onSubscriber);
  4558. }
  4559. // node_modules/rxjs/dist/esm5/internal/operators/shareReplay.js
  4560. function shareReplay(configOrBufferSize, windowTime2, scheduler) {
  4561. var _a, _b, _c;
  4562. var bufferSize;
  4563. var refCount2 = false;
  4564. if (configOrBufferSize && typeof configOrBufferSize === "object") {
  4565. _a = configOrBufferSize.bufferSize, bufferSize = _a === void 0 ? Infinity : _a, _b = configOrBufferSize.windowTime, windowTime2 = _b === void 0 ? Infinity : _b, _c = configOrBufferSize.refCount, refCount2 = _c === void 0 ? false : _c, scheduler = configOrBufferSize.scheduler;
  4566. } else {
  4567. bufferSize = configOrBufferSize !== null && configOrBufferSize !== void 0 ? configOrBufferSize : Infinity;
  4568. }
  4569. return share({
  4570. connector: function() {
  4571. return new ReplaySubject(bufferSize, windowTime2, scheduler);
  4572. },
  4573. resetOnError: true,
  4574. resetOnComplete: false,
  4575. resetOnRefCountZero: refCount2
  4576. });
  4577. }
  4578. // node_modules/rxjs/dist/esm5/internal/operators/single.js
  4579. function single(predicate) {
  4580. return operate(function(source, subscriber) {
  4581. var hasValue = false;
  4582. var singleValue;
  4583. var seenValue = false;
  4584. var index = 0;
  4585. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  4586. seenValue = true;
  4587. if (!predicate || predicate(value, index++, source)) {
  4588. hasValue && subscriber.error(new SequenceError("Too many matching values"));
  4589. hasValue = true;
  4590. singleValue = value;
  4591. }
  4592. }, function() {
  4593. if (hasValue) {
  4594. subscriber.next(singleValue);
  4595. subscriber.complete();
  4596. } else {
  4597. subscriber.error(seenValue ? new NotFoundError("No matching values") : new EmptyError());
  4598. }
  4599. }));
  4600. });
  4601. }
  4602. // node_modules/rxjs/dist/esm5/internal/operators/skip.js
  4603. function skip(count2) {
  4604. return filter(function(_, index) {
  4605. return count2 <= index;
  4606. });
  4607. }
  4608. // node_modules/rxjs/dist/esm5/internal/operators/skipLast.js
  4609. function skipLast(skipCount) {
  4610. return skipCount <= 0 ? identity : operate(function(source, subscriber) {
  4611. var ring = new Array(skipCount);
  4612. var seen = 0;
  4613. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  4614. var valueIndex = seen++;
  4615. if (valueIndex < skipCount) {
  4616. ring[valueIndex] = value;
  4617. } else {
  4618. var index = valueIndex % skipCount;
  4619. var oldValue = ring[index];
  4620. ring[index] = value;
  4621. subscriber.next(oldValue);
  4622. }
  4623. }));
  4624. return function() {
  4625. ring = null;
  4626. };
  4627. });
  4628. }
  4629. // node_modules/rxjs/dist/esm5/internal/operators/skipUntil.js
  4630. function skipUntil(notifier) {
  4631. return operate(function(source, subscriber) {
  4632. var taking = false;
  4633. var skipSubscriber = createOperatorSubscriber(subscriber, function() {
  4634. skipSubscriber === null || skipSubscriber === void 0 ? void 0 : skipSubscriber.unsubscribe();
  4635. taking = true;
  4636. }, noop);
  4637. innerFrom(notifier).subscribe(skipSubscriber);
  4638. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  4639. return taking && subscriber.next(value);
  4640. }));
  4641. });
  4642. }
  4643. // node_modules/rxjs/dist/esm5/internal/operators/skipWhile.js
  4644. function skipWhile(predicate) {
  4645. return operate(function(source, subscriber) {
  4646. var taking = false;
  4647. var index = 0;
  4648. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  4649. return (taking || (taking = !predicate(value, index++))) && subscriber.next(value);
  4650. }));
  4651. });
  4652. }
  4653. // node_modules/rxjs/dist/esm5/internal/operators/startWith.js
  4654. function startWith() {
  4655. var values = [];
  4656. for (var _i = 0; _i < arguments.length; _i++) {
  4657. values[_i] = arguments[_i];
  4658. }
  4659. var scheduler = popScheduler(values);
  4660. return operate(function(source, subscriber) {
  4661. (scheduler ? concat(values, source, scheduler) : concat(values, source)).subscribe(subscriber);
  4662. });
  4663. }
  4664. // node_modules/rxjs/dist/esm5/internal/operators/switchMap.js
  4665. function switchMap(project, resultSelector) {
  4666. return operate(function(source, subscriber) {
  4667. var innerSubscriber = null;
  4668. var index = 0;
  4669. var isComplete = false;
  4670. var checkComplete = function() {
  4671. return isComplete && !innerSubscriber && subscriber.complete();
  4672. };
  4673. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  4674. innerSubscriber === null || innerSubscriber === void 0 ? void 0 : innerSubscriber.unsubscribe();
  4675. var innerIndex = 0;
  4676. var outerIndex = index++;
  4677. innerFrom(project(value, outerIndex)).subscribe(innerSubscriber = createOperatorSubscriber(subscriber, function(innerValue) {
  4678. return subscriber.next(resultSelector ? resultSelector(value, innerValue, outerIndex, innerIndex++) : innerValue);
  4679. }, function() {
  4680. innerSubscriber = null;
  4681. checkComplete();
  4682. }));
  4683. }, function() {
  4684. isComplete = true;
  4685. checkComplete();
  4686. }));
  4687. });
  4688. }
  4689. // node_modules/rxjs/dist/esm5/internal/operators/switchAll.js
  4690. function switchAll() {
  4691. return switchMap(identity);
  4692. }
  4693. // node_modules/rxjs/dist/esm5/internal/operators/switchMapTo.js
  4694. function switchMapTo(innerObservable, resultSelector) {
  4695. return isFunction(resultSelector) ? switchMap(function() {
  4696. return innerObservable;
  4697. }, resultSelector) : switchMap(function() {
  4698. return innerObservable;
  4699. });
  4700. }
  4701. // node_modules/rxjs/dist/esm5/internal/operators/switchScan.js
  4702. function switchScan(accumulator, seed) {
  4703. return operate(function(source, subscriber) {
  4704. var state = seed;
  4705. switchMap(function(value, index) {
  4706. return accumulator(state, value, index);
  4707. }, function(_, innerValue) {
  4708. return state = innerValue, innerValue;
  4709. })(source).subscribe(subscriber);
  4710. return function() {
  4711. state = null;
  4712. };
  4713. });
  4714. }
  4715. // node_modules/rxjs/dist/esm5/internal/operators/takeUntil.js
  4716. function takeUntil(notifier) {
  4717. return operate(function(source, subscriber) {
  4718. innerFrom(notifier).subscribe(createOperatorSubscriber(subscriber, function() {
  4719. return subscriber.complete();
  4720. }, noop));
  4721. !subscriber.closed && source.subscribe(subscriber);
  4722. });
  4723. }
  4724. // node_modules/rxjs/dist/esm5/internal/operators/takeWhile.js
  4725. function takeWhile(predicate, inclusive) {
  4726. if (inclusive === void 0) {
  4727. inclusive = false;
  4728. }
  4729. return operate(function(source, subscriber) {
  4730. var index = 0;
  4731. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  4732. var result = predicate(value, index++);
  4733. (result || inclusive) && subscriber.next(value);
  4734. !result && subscriber.complete();
  4735. }));
  4736. });
  4737. }
  4738. // node_modules/rxjs/dist/esm5/internal/operators/tap.js
  4739. function tap(observerOrNext, error, complete) {
  4740. var tapObserver = isFunction(observerOrNext) || error || complete ? { next: observerOrNext, error, complete } : observerOrNext;
  4741. return tapObserver ? operate(function(source, subscriber) {
  4742. var _a;
  4743. (_a = tapObserver.subscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver);
  4744. var isUnsub = true;
  4745. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  4746. var _a2;
  4747. (_a2 = tapObserver.next) === null || _a2 === void 0 ? void 0 : _a2.call(tapObserver, value);
  4748. subscriber.next(value);
  4749. }, function() {
  4750. var _a2;
  4751. isUnsub = false;
  4752. (_a2 = tapObserver.complete) === null || _a2 === void 0 ? void 0 : _a2.call(tapObserver);
  4753. subscriber.complete();
  4754. }, function(err) {
  4755. var _a2;
  4756. isUnsub = false;
  4757. (_a2 = tapObserver.error) === null || _a2 === void 0 ? void 0 : _a2.call(tapObserver, err);
  4758. subscriber.error(err);
  4759. }, function() {
  4760. var _a2, _b;
  4761. if (isUnsub) {
  4762. (_a2 = tapObserver.unsubscribe) === null || _a2 === void 0 ? void 0 : _a2.call(tapObserver);
  4763. }
  4764. (_b = tapObserver.finalize) === null || _b === void 0 ? void 0 : _b.call(tapObserver);
  4765. }));
  4766. }) : identity;
  4767. }
  4768. // node_modules/rxjs/dist/esm5/internal/operators/throttle.js
  4769. function throttle(durationSelector, config2) {
  4770. return operate(function(source, subscriber) {
  4771. var _a = config2 !== null && config2 !== void 0 ? config2 : {}, _b = _a.leading, leading = _b === void 0 ? true : _b, _c = _a.trailing, trailing = _c === void 0 ? false : _c;
  4772. var hasValue = false;
  4773. var sendValue = null;
  4774. var throttled = null;
  4775. var isComplete = false;
  4776. var endThrottling = function() {
  4777. throttled === null || throttled === void 0 ? void 0 : throttled.unsubscribe();
  4778. throttled = null;
  4779. if (trailing) {
  4780. send();
  4781. isComplete && subscriber.complete();
  4782. }
  4783. };
  4784. var cleanupThrottling = function() {
  4785. throttled = null;
  4786. isComplete && subscriber.complete();
  4787. };
  4788. var startThrottle = function(value) {
  4789. return throttled = innerFrom(durationSelector(value)).subscribe(createOperatorSubscriber(subscriber, endThrottling, cleanupThrottling));
  4790. };
  4791. var send = function() {
  4792. if (hasValue) {
  4793. hasValue = false;
  4794. var value = sendValue;
  4795. sendValue = null;
  4796. subscriber.next(value);
  4797. !isComplete && startThrottle(value);
  4798. }
  4799. };
  4800. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  4801. hasValue = true;
  4802. sendValue = value;
  4803. !(throttled && !throttled.closed) && (leading ? send() : startThrottle(value));
  4804. }, function() {
  4805. isComplete = true;
  4806. !(trailing && hasValue && throttled && !throttled.closed) && subscriber.complete();
  4807. }));
  4808. });
  4809. }
  4810. // node_modules/rxjs/dist/esm5/internal/operators/throttleTime.js
  4811. function throttleTime(duration, scheduler, config2) {
  4812. if (scheduler === void 0) {
  4813. scheduler = asyncScheduler;
  4814. }
  4815. var duration$ = timer(duration, scheduler);
  4816. return throttle(function() {
  4817. return duration$;
  4818. }, config2);
  4819. }
  4820. // node_modules/rxjs/dist/esm5/internal/operators/timeInterval.js
  4821. function timeInterval(scheduler) {
  4822. if (scheduler === void 0) {
  4823. scheduler = asyncScheduler;
  4824. }
  4825. return operate(function(source, subscriber) {
  4826. var last3 = scheduler.now();
  4827. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  4828. var now = scheduler.now();
  4829. var interval2 = now - last3;
  4830. last3 = now;
  4831. subscriber.next(new TimeInterval(value, interval2));
  4832. }));
  4833. });
  4834. }
  4835. var TimeInterval = function() {
  4836. function TimeInterval2(value, interval2) {
  4837. this.value = value;
  4838. this.interval = interval2;
  4839. }
  4840. return TimeInterval2;
  4841. }();
  4842. // node_modules/rxjs/dist/esm5/internal/operators/timeoutWith.js
  4843. function timeoutWith(due, withObservable, scheduler) {
  4844. var first2;
  4845. var each;
  4846. var _with;
  4847. scheduler = scheduler !== null && scheduler !== void 0 ? scheduler : async;
  4848. if (isValidDate(due)) {
  4849. first2 = due;
  4850. } else if (typeof due === "number") {
  4851. each = due;
  4852. }
  4853. if (withObservable) {
  4854. _with = function() {
  4855. return withObservable;
  4856. };
  4857. } else {
  4858. throw new TypeError("No observable provided to switch to");
  4859. }
  4860. if (first2 == null && each == null) {
  4861. throw new TypeError("No timeout provided.");
  4862. }
  4863. return timeout({
  4864. first: first2,
  4865. each,
  4866. scheduler,
  4867. with: _with
  4868. });
  4869. }
  4870. // node_modules/rxjs/dist/esm5/internal/operators/timestamp.js
  4871. function timestamp(timestampProvider) {
  4872. if (timestampProvider === void 0) {
  4873. timestampProvider = dateTimestampProvider;
  4874. }
  4875. return map(function(value) {
  4876. return { value, timestamp: timestampProvider.now() };
  4877. });
  4878. }
  4879. // node_modules/rxjs/dist/esm5/internal/operators/window.js
  4880. function window(windowBoundaries) {
  4881. return operate(function(source, subscriber) {
  4882. var windowSubject = new Subject();
  4883. subscriber.next(windowSubject.asObservable());
  4884. var errorHandler = function(err) {
  4885. windowSubject.error(err);
  4886. subscriber.error(err);
  4887. };
  4888. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  4889. return windowSubject === null || windowSubject === void 0 ? void 0 : windowSubject.next(value);
  4890. }, function() {
  4891. windowSubject.complete();
  4892. subscriber.complete();
  4893. }, errorHandler));
  4894. innerFrom(windowBoundaries).subscribe(createOperatorSubscriber(subscriber, function() {
  4895. windowSubject.complete();
  4896. subscriber.next(windowSubject = new Subject());
  4897. }, noop, errorHandler));
  4898. return function() {
  4899. windowSubject === null || windowSubject === void 0 ? void 0 : windowSubject.unsubscribe();
  4900. windowSubject = null;
  4901. };
  4902. });
  4903. }
  4904. // node_modules/rxjs/dist/esm5/internal/operators/windowCount.js
  4905. function windowCount(windowSize, startWindowEvery) {
  4906. if (startWindowEvery === void 0) {
  4907. startWindowEvery = 0;
  4908. }
  4909. var startEvery = startWindowEvery > 0 ? startWindowEvery : windowSize;
  4910. return operate(function(source, subscriber) {
  4911. var windows = [new Subject()];
  4912. var starts = [];
  4913. var count2 = 0;
  4914. subscriber.next(windows[0].asObservable());
  4915. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  4916. var e_1, _a;
  4917. try {
  4918. for (var windows_1 = __values(windows), windows_1_1 = windows_1.next(); !windows_1_1.done; windows_1_1 = windows_1.next()) {
  4919. var window_1 = windows_1_1.value;
  4920. window_1.next(value);
  4921. }
  4922. } catch (e_1_1) {
  4923. e_1 = { error: e_1_1 };
  4924. } finally {
  4925. try {
  4926. if (windows_1_1 && !windows_1_1.done && (_a = windows_1.return))
  4927. _a.call(windows_1);
  4928. } finally {
  4929. if (e_1)
  4930. throw e_1.error;
  4931. }
  4932. }
  4933. var c = count2 - windowSize + 1;
  4934. if (c >= 0 && c % startEvery === 0) {
  4935. windows.shift().complete();
  4936. }
  4937. if (++count2 % startEvery === 0) {
  4938. var window_2 = new Subject();
  4939. windows.push(window_2);
  4940. subscriber.next(window_2.asObservable());
  4941. }
  4942. }, function() {
  4943. while (windows.length > 0) {
  4944. windows.shift().complete();
  4945. }
  4946. subscriber.complete();
  4947. }, function(err) {
  4948. while (windows.length > 0) {
  4949. windows.shift().error(err);
  4950. }
  4951. subscriber.error(err);
  4952. }, function() {
  4953. starts = null;
  4954. windows = null;
  4955. }));
  4956. });
  4957. }
  4958. // node_modules/rxjs/dist/esm5/internal/operators/windowTime.js
  4959. function windowTime(windowTimeSpan) {
  4960. var _a, _b;
  4961. var otherArgs = [];
  4962. for (var _i = 1; _i < arguments.length; _i++) {
  4963. otherArgs[_i - 1] = arguments[_i];
  4964. }
  4965. var scheduler = (_a = popScheduler(otherArgs)) !== null && _a !== void 0 ? _a : asyncScheduler;
  4966. var windowCreationInterval = (_b = otherArgs[0]) !== null && _b !== void 0 ? _b : null;
  4967. var maxWindowSize = otherArgs[1] || Infinity;
  4968. return operate(function(source, subscriber) {
  4969. var windowRecords = [];
  4970. var restartOnClose = false;
  4971. var closeWindow = function(record) {
  4972. var window2 = record.window, subs = record.subs;
  4973. window2.complete();
  4974. subs.unsubscribe();
  4975. arrRemove(windowRecords, record);
  4976. restartOnClose && startWindow();
  4977. };
  4978. var startWindow = function() {
  4979. if (windowRecords) {
  4980. var subs = new Subscription();
  4981. subscriber.add(subs);
  4982. var window_1 = new Subject();
  4983. var record_1 = {
  4984. window: window_1,
  4985. subs,
  4986. seen: 0
  4987. };
  4988. windowRecords.push(record_1);
  4989. subscriber.next(window_1.asObservable());
  4990. executeSchedule(subs, scheduler, function() {
  4991. return closeWindow(record_1);
  4992. }, windowTimeSpan);
  4993. }
  4994. };
  4995. if (windowCreationInterval !== null && windowCreationInterval >= 0) {
  4996. executeSchedule(subscriber, scheduler, startWindow, windowCreationInterval, true);
  4997. } else {
  4998. restartOnClose = true;
  4999. }
  5000. startWindow();
  5001. var loop = function(cb) {
  5002. return windowRecords.slice().forEach(cb);
  5003. };
  5004. var terminate = function(cb) {
  5005. loop(function(_a2) {
  5006. var window2 = _a2.window;
  5007. return cb(window2);
  5008. });
  5009. cb(subscriber);
  5010. subscriber.unsubscribe();
  5011. };
  5012. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  5013. loop(function(record) {
  5014. record.window.next(value);
  5015. maxWindowSize <= ++record.seen && closeWindow(record);
  5016. });
  5017. }, function() {
  5018. return terminate(function(consumer) {
  5019. return consumer.complete();
  5020. });
  5021. }, function(err) {
  5022. return terminate(function(consumer) {
  5023. return consumer.error(err);
  5024. });
  5025. }));
  5026. return function() {
  5027. windowRecords = null;
  5028. };
  5029. });
  5030. }
  5031. // node_modules/rxjs/dist/esm5/internal/operators/windowToggle.js
  5032. function windowToggle(openings, closingSelector) {
  5033. return operate(function(source, subscriber) {
  5034. var windows = [];
  5035. var handleError = function(err) {
  5036. while (0 < windows.length) {
  5037. windows.shift().error(err);
  5038. }
  5039. subscriber.error(err);
  5040. };
  5041. innerFrom(openings).subscribe(createOperatorSubscriber(subscriber, function(openValue) {
  5042. var window2 = new Subject();
  5043. windows.push(window2);
  5044. var closingSubscription = new Subscription();
  5045. var closeWindow = function() {
  5046. arrRemove(windows, window2);
  5047. window2.complete();
  5048. closingSubscription.unsubscribe();
  5049. };
  5050. var closingNotifier;
  5051. try {
  5052. closingNotifier = innerFrom(closingSelector(openValue));
  5053. } catch (err) {
  5054. handleError(err);
  5055. return;
  5056. }
  5057. subscriber.next(window2.asObservable());
  5058. closingSubscription.add(closingNotifier.subscribe(createOperatorSubscriber(subscriber, closeWindow, noop, handleError)));
  5059. }, noop));
  5060. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  5061. var e_1, _a;
  5062. var windowsCopy = windows.slice();
  5063. try {
  5064. for (var windowsCopy_1 = __values(windowsCopy), windowsCopy_1_1 = windowsCopy_1.next(); !windowsCopy_1_1.done; windowsCopy_1_1 = windowsCopy_1.next()) {
  5065. var window_1 = windowsCopy_1_1.value;
  5066. window_1.next(value);
  5067. }
  5068. } catch (e_1_1) {
  5069. e_1 = { error: e_1_1 };
  5070. } finally {
  5071. try {
  5072. if (windowsCopy_1_1 && !windowsCopy_1_1.done && (_a = windowsCopy_1.return))
  5073. _a.call(windowsCopy_1);
  5074. } finally {
  5075. if (e_1)
  5076. throw e_1.error;
  5077. }
  5078. }
  5079. }, function() {
  5080. while (0 < windows.length) {
  5081. windows.shift().complete();
  5082. }
  5083. subscriber.complete();
  5084. }, handleError, function() {
  5085. while (0 < windows.length) {
  5086. windows.shift().unsubscribe();
  5087. }
  5088. }));
  5089. });
  5090. }
  5091. // node_modules/rxjs/dist/esm5/internal/operators/windowWhen.js
  5092. function windowWhen(closingSelector) {
  5093. return operate(function(source, subscriber) {
  5094. var window2;
  5095. var closingSubscriber;
  5096. var handleError = function(err) {
  5097. window2.error(err);
  5098. subscriber.error(err);
  5099. };
  5100. var openWindow = function() {
  5101. closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe();
  5102. window2 === null || window2 === void 0 ? void 0 : window2.complete();
  5103. window2 = new Subject();
  5104. subscriber.next(window2.asObservable());
  5105. var closingNotifier;
  5106. try {
  5107. closingNotifier = innerFrom(closingSelector());
  5108. } catch (err) {
  5109. handleError(err);
  5110. return;
  5111. }
  5112. closingNotifier.subscribe(closingSubscriber = createOperatorSubscriber(subscriber, openWindow, openWindow, handleError));
  5113. };
  5114. openWindow();
  5115. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  5116. return window2.next(value);
  5117. }, function() {
  5118. window2.complete();
  5119. subscriber.complete();
  5120. }, handleError, function() {
  5121. closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe();
  5122. window2 = null;
  5123. }));
  5124. });
  5125. }
  5126. // node_modules/rxjs/dist/esm5/internal/operators/withLatestFrom.js
  5127. function withLatestFrom() {
  5128. var inputs = [];
  5129. for (var _i = 0; _i < arguments.length; _i++) {
  5130. inputs[_i] = arguments[_i];
  5131. }
  5132. var project = popResultSelector(inputs);
  5133. return operate(function(source, subscriber) {
  5134. var len = inputs.length;
  5135. var otherValues = new Array(len);
  5136. var hasValue = inputs.map(function() {
  5137. return false;
  5138. });
  5139. var ready = false;
  5140. var _loop_1 = function(i2) {
  5141. innerFrom(inputs[i2]).subscribe(createOperatorSubscriber(subscriber, function(value) {
  5142. otherValues[i2] = value;
  5143. if (!ready && !hasValue[i2]) {
  5144. hasValue[i2] = true;
  5145. (ready = hasValue.every(identity)) && (hasValue = null);
  5146. }
  5147. }, noop));
  5148. };
  5149. for (var i = 0; i < len; i++) {
  5150. _loop_1(i);
  5151. }
  5152. source.subscribe(createOperatorSubscriber(subscriber, function(value) {
  5153. if (ready) {
  5154. var values = __spreadArray([value], __read(otherValues));
  5155. subscriber.next(project ? project.apply(void 0, __spreadArray([], __read(values))) : values);
  5156. }
  5157. }));
  5158. });
  5159. }
  5160. // node_modules/rxjs/dist/esm5/internal/operators/zipAll.js
  5161. function zipAll(project) {
  5162. return joinAllInternals(zip, project);
  5163. }
  5164. // node_modules/rxjs/dist/esm5/internal/operators/zip.js
  5165. function zip2() {
  5166. var sources = [];
  5167. for (var _i = 0; _i < arguments.length; _i++) {
  5168. sources[_i] = arguments[_i];
  5169. }
  5170. return operate(function(source, subscriber) {
  5171. zip.apply(void 0, __spreadArray([source], __read(sources))).subscribe(subscriber);
  5172. });
  5173. }
  5174. // node_modules/rxjs/dist/esm5/internal/operators/zipWith.js
  5175. function zipWith() {
  5176. var otherInputs = [];
  5177. for (var _i = 0; _i < arguments.length; _i++) {
  5178. otherInputs[_i] = arguments[_i];
  5179. }
  5180. return zip2.apply(void 0, __spreadArray([], __read(otherInputs)));
  5181. }
  5182. export {
  5183. ArgumentOutOfRangeError,
  5184. AsyncSubject,
  5185. BehaviorSubject,
  5186. ConnectableObservable,
  5187. EMPTY,
  5188. EmptyError,
  5189. NEVER,
  5190. NotFoundError,
  5191. Notification,
  5192. NotificationKind,
  5193. ObjectUnsubscribedError,
  5194. Observable,
  5195. ReplaySubject,
  5196. Scheduler,
  5197. SequenceError,
  5198. Subject,
  5199. Subscriber,
  5200. Subscription,
  5201. TimeoutError,
  5202. UnsubscriptionError,
  5203. VirtualAction,
  5204. VirtualTimeScheduler,
  5205. animationFrame,
  5206. animationFrameScheduler,
  5207. animationFrames,
  5208. asap,
  5209. asapScheduler,
  5210. async,
  5211. asyncScheduler,
  5212. audit,
  5213. auditTime,
  5214. bindCallback,
  5215. bindNodeCallback,
  5216. buffer,
  5217. bufferCount,
  5218. bufferTime,
  5219. bufferToggle,
  5220. bufferWhen,
  5221. catchError,
  5222. combineAll,
  5223. combineLatest,
  5224. combineLatestAll,
  5225. combineLatestWith,
  5226. concat,
  5227. concatAll,
  5228. concatMap,
  5229. concatMapTo,
  5230. concatWith,
  5231. config,
  5232. connect,
  5233. connectable,
  5234. count,
  5235. debounce,
  5236. debounceTime,
  5237. defaultIfEmpty,
  5238. defer,
  5239. delay,
  5240. delayWhen,
  5241. dematerialize,
  5242. distinct,
  5243. distinctUntilChanged,
  5244. distinctUntilKeyChanged,
  5245. elementAt,
  5246. empty,
  5247. endWith,
  5248. every,
  5249. exhaust,
  5250. exhaustAll,
  5251. exhaustMap,
  5252. expand,
  5253. filter,
  5254. finalize,
  5255. find,
  5256. findIndex,
  5257. first,
  5258. firstValueFrom,
  5259. flatMap,
  5260. forkJoin,
  5261. from,
  5262. fromEvent,
  5263. fromEventPattern,
  5264. generate,
  5265. groupBy,
  5266. identity,
  5267. ignoreElements,
  5268. iif,
  5269. interval,
  5270. isEmpty,
  5271. isObservable,
  5272. last2 as last,
  5273. lastValueFrom,
  5274. map,
  5275. mapTo,
  5276. materialize,
  5277. max,
  5278. merge,
  5279. mergeAll,
  5280. mergeMap,
  5281. mergeMapTo,
  5282. mergeScan,
  5283. mergeWith,
  5284. min,
  5285. multicast,
  5286. never,
  5287. noop,
  5288. observable,
  5289. observeOn,
  5290. of,
  5291. onErrorResumeNext,
  5292. onErrorResumeNextWith,
  5293. pairs,
  5294. pairwise,
  5295. partition,
  5296. pipe,
  5297. pluck,
  5298. publish,
  5299. publishBehavior,
  5300. publishLast,
  5301. publishReplay,
  5302. queue,
  5303. queueScheduler,
  5304. race,
  5305. raceWith,
  5306. range,
  5307. reduce,
  5308. refCount,
  5309. repeat,
  5310. repeatWhen,
  5311. retry,
  5312. retryWhen,
  5313. sample,
  5314. sampleTime,
  5315. scan,
  5316. scheduled,
  5317. sequenceEqual,
  5318. share,
  5319. shareReplay,
  5320. single,
  5321. skip,
  5322. skipLast,
  5323. skipUntil,
  5324. skipWhile,
  5325. startWith,
  5326. subscribeOn,
  5327. switchAll,
  5328. switchMap,
  5329. switchMapTo,
  5330. switchScan,
  5331. take,
  5332. takeLast,
  5333. takeUntil,
  5334. takeWhile,
  5335. tap,
  5336. throttle,
  5337. throttleTime,
  5338. throwError,
  5339. throwIfEmpty,
  5340. timeInterval,
  5341. timeout,
  5342. timeoutWith,
  5343. timer,
  5344. timestamp,
  5345. toArray,
  5346. using,
  5347. window,
  5348. windowCount,
  5349. windowTime,
  5350. windowToggle,
  5351. windowWhen,
  5352. withLatestFrom,
  5353. zip,
  5354. zipAll,
  5355. zipWith
  5356. };
  5357. //# sourceMappingURL=rxjs.js.map