share-embed.68f7476360.js 1.5 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912
  1. !function(e) {
  2. function t(t) {
  3. for (var n, i, o = t[0], a = t[1], s = 0, u = []; s < o.length; s++)
  4. i = o[s],
  5. Object.prototype.hasOwnProperty.call(r, i) && r[i] && u.push(r[i][0]),
  6. r[i] = 0;
  7. for (n in a)
  8. Object.prototype.hasOwnProperty.call(a, n) && (e[n] = a[n]);
  9. for (l && l(t); u.length; )
  10. u.shift()()
  11. }
  12. var n = {}
  13. , r = {
  14. 277: 0
  15. };
  16. function i(t) {
  17. if (n[t])
  18. return n[t].exports;
  19. var r = n[t] = {
  20. i: t,
  21. l: !1,
  22. exports: {}
  23. };
  24. return e[t].call(r.exports, r, r.exports, i),
  25. r.l = !0,
  26. r.exports
  27. }
  28. i.e = function(e) {
  29. var t = []
  30. , n = r[e];
  31. if (0 !== n)
  32. if (n)
  33. t.push(n[2]);
  34. else {
  35. var o = new Promise((function(t, i) {
  36. n = r[e] = [t, i]
  37. }
  38. ));
  39. t.push(n[2] = o);
  40. var a, s = document.createElement("script");
  41. s.charset = "utf-8",
  42. s.timeout = 120,
  43. i.nc && s.setAttribute("nonce", i.nc),
  44. s.src = function(e) {
  45. return i.p + "js/" + ({}[e] || e) + "." + {
  46. 303: "27a8ef6801"
  47. }[e] + ".js"
  48. }(e);
  49. var l = new Error;
  50. a = function(t) {
  51. s.onerror = s.onload = null,
  52. clearTimeout(u);
  53. var n = r[e];
  54. if (0 !== n) {
  55. if (n) {
  56. var i = t && ("load" === t.type ? "missing" : t.type)
  57. , o = t && t.target && t.target.src;
  58. l.message = "Loading chunk " + e + " failed.\n(" + i + ": " + o + ")",
  59. l.name = "ChunkLoadError",
  60. l.type = i,
  61. l.request = o,
  62. n[1](l)
  63. }
  64. r[e] = void 0
  65. }
  66. }
  67. ;
  68. var u = setTimeout((function() {
  69. a({
  70. type: "timeout",
  71. target: s
  72. })
  73. }
  74. ), 12e4);
  75. s.onerror = s.onload = a,
  76. document.head.appendChild(s)
  77. }
  78. return Promise.all(t)
  79. }
  80. ,
  81. i.m = e,
  82. i.c = n,
  83. i.d = function(e, t, n) {
  84. i.o(e, t) || Object.defineProperty(e, t, {
  85. enumerable: !0,
  86. get: n
  87. })
  88. }
  89. ,
  90. i.r = function(e) {
  91. "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
  92. value: "Module"
  93. }),
  94. Object.defineProperty(e, "__esModule", {
  95. value: !0
  96. })
  97. }
  98. ,
  99. i.t = function(e, t) {
  100. if (1 & t && (e = i(e)),
  101. 8 & t)
  102. return e;
  103. if (4 & t && "object" == typeof e && e && e.__esModule)
  104. return e;
  105. var n = Object.create(null);
  106. if (i.r(n),
  107. Object.defineProperty(n, "default", {
  108. enumerable: !0,
  109. value: e
  110. }),
  111. 2 & t && "string" != typeof e)
  112. for (var r in e)
  113. i.d(n, r, function(t) {
  114. return e[t]
  115. }
  116. .bind(null, r));
  117. return n
  118. }
  119. ,
  120. i.n = function(e) {
  121. var t = e && e.__esModule ? function() {
  122. return e.default
  123. }
  124. : function() {
  125. return e
  126. }
  127. ;
  128. return i.d(t, "a", t),
  129. t
  130. }
  131. ,
  132. i.o = function(e, t) {
  133. return Object.prototype.hasOwnProperty.call(e, t)
  134. }
  135. ,
  136. i.p = "",
  137. i.oe = function(e) {
  138. throw console.error(e),
  139. e
  140. }
  141. ;
  142. var o = window.wepbackJsonp1667381142044 = window.wepbackJsonp1667381142044 || []
  143. , a = o.push.bind(o);
  144. o.push = t,
  145. o = o.slice();
  146. for (var s = 0; s < o.length; s++)
  147. t(o[s]);
  148. var l = a;
  149. i(i.s = 1049)
  150. }({
  151. 0: function(e, t, n) {
  152. "use strict";
  153. function r(e, t, n, r, i, o, a, s) {
  154. var l, u = "function" == typeof e ? e.options : e;
  155. if (t && (u.render = t,
  156. u.staticRenderFns = n,
  157. u._compiled = !0),
  158. r && (u.functional = !0),
  159. o && (u._scopeId = "data-v-" + o),
  160. a ? (l = function(e) {
  161. (e = e || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || "undefined" == typeof __VUE_SSR_CONTEXT__ || (e = __VUE_SSR_CONTEXT__),
  162. i && i.call(this, e),
  163. e && e._registeredComponents && e._registeredComponents.add(a)
  164. }
  165. ,
  166. u._ssrRegister = l) : i && (l = s ? function() {
  167. i.call(this, (u.functional ? this.parent : this).$root.$options.shadowRoot)
  168. }
  169. : i),
  170. l)
  171. if (u.functional) {
  172. u._injectStyles = l;
  173. var c = u.render;
  174. u.render = function(e, t) {
  175. return l.call(t),
  176. c(e, t)
  177. }
  178. } else {
  179. var d = u.beforeCreate;
  180. u.beforeCreate = d ? [].concat(d, l) : [l]
  181. }
  182. return {
  183. exports: e,
  184. options: u
  185. }
  186. }
  187. n.d(t, "a", (function() {
  188. return r
  189. }
  190. ))
  191. },
  192. 1: function(e, t, n) {
  193. "use strict";
  194. n.r(t),
  195. n.d(t, "computed", (function() {
  196. return Oe
  197. }
  198. )),
  199. n.d(t, "createApp", (function() {
  200. return je
  201. }
  202. )),
  203. n.d(t, "customRef", (function() {
  204. return $
  205. }
  206. )),
  207. n.d(t, "defineComponent", (function() {
  208. return qe
  209. }
  210. )),
  211. n.d(t, "del", (function() {
  212. return ue
  213. }
  214. )),
  215. n.d(t, "getCurrentInstance", (function() {
  216. return x
  217. }
  218. )),
  219. n.d(t, "h", (function() {
  220. return Ne
  221. }
  222. )),
  223. n.d(t, "inject", (function() {
  224. return Pe
  225. }
  226. )),
  227. n.d(t, "isRaw", (function() {
  228. return X
  229. }
  230. )),
  231. n.d(t, "isReactive", (function() {
  232. return Q
  233. }
  234. )),
  235. n.d(t, "isReadonly", (function() {
  236. return J
  237. }
  238. )),
  239. n.d(t, "isRef", (function() {
  240. return W
  241. }
  242. )),
  243. n.d(t, "markRaw", (function() {
  244. return ae
  245. }
  246. )),
  247. n.d(t, "nextTick", (function() {
  248. return De
  249. }
  250. )),
  251. n.d(t, "onActivated", (function() {
  252. return be
  253. }
  254. )),
  255. n.d(t, "onBeforeMount", (function() {
  256. return fe
  257. }
  258. )),
  259. n.d(t, "onBeforeUnmount", (function() {
  260. return me
  261. }
  262. )),
  263. n.d(t, "onBeforeUpdate", (function() {
  264. return pe
  265. }
  266. )),
  267. n.d(t, "onDeactivated", (function() {
  268. return _e
  269. }
  270. )),
  271. n.d(t, "onErrorCaptured", (function() {
  272. return ye
  273. }
  274. )),
  275. n.d(t, "onMounted", (function() {
  276. return he
  277. }
  278. )),
  279. n.d(t, "onServerPrefetch", (function() {
  280. return we
  281. }
  282. )),
  283. n.d(t, "onUnmounted", (function() {
  284. return ve
  285. }
  286. )),
  287. n.d(t, "onUpdated", (function() {
  288. return ge
  289. }
  290. )),
  291. n.d(t, "provide", (function() {
  292. return Le
  293. }
  294. )),
  295. n.d(t, "proxyRefs", (function() {
  296. return Y
  297. }
  298. )),
  299. n.d(t, "reactive", (function() {
  300. return ie
  301. }
  302. )),
  303. n.d(t, "ref", (function() {
  304. return U
  305. }
  306. )),
  307. n.d(t, "set", (function() {
  308. return le
  309. }
  310. )),
  311. n.d(t, "shallowReactive", (function() {
  312. return re
  313. }
  314. )),
  315. n.d(t, "shallowReadonly", (function() {
  316. return oe
  317. }
  318. )),
  319. n.d(t, "shallowRef", (function() {
  320. return Z
  321. }
  322. )),
  323. n.d(t, "toRaw", (function() {
  324. return se
  325. }
  326. )),
  327. n.d(t, "toRef", (function() {
  328. return G
  329. }
  330. )),
  331. n.d(t, "toRefs", (function() {
  332. return V
  333. }
  334. )),
  335. n.d(t, "triggerRef", (function() {
  336. return q
  337. }
  338. )),
  339. n.d(t, "unref", (function() {
  340. return H
  341. }
  342. )),
  343. n.d(t, "useCSSModule", (function() {
  344. return ze
  345. }
  346. )),
  347. n.d(t, "version", (function() {
  348. return Ye
  349. }
  350. )),
  351. n.d(t, "watch", (function() {
  352. return Ee
  353. }
  354. )),
  355. n.d(t, "watchEffect", (function() {
  356. return Ae
  357. }
  358. ));
  359. var r = n(60);
  360. function i(e) {
  361. return "function" == typeof e && /native code/.test(e.toString())
  362. }
  363. var o = "undefined" != typeof Symbol && i(Symbol) && "undefined" != typeof Reflect && i(Reflect.ownKeys)
  364. , a = function(e) {
  365. return e
  366. }
  367. , s = {
  368. enumerable: !0,
  369. configurable: !0,
  370. get: a,
  371. set: a
  372. };
  373. function l(e, t, n) {
  374. var r = n.get
  375. , i = n.set;
  376. s.get = r || a,
  377. s.set = i || a,
  378. Object.defineProperty(e, t, s)
  379. }
  380. function u(e, t, n, r) {
  381. Object.defineProperty(e, t, {
  382. value: n,
  383. enumerable: !!r,
  384. writable: !0,
  385. configurable: !0
  386. })
  387. }
  388. function c(e, t) {
  389. return Object.hasOwnProperty.call(e, t)
  390. }
  391. function d(e) {
  392. return Array.isArray(e)
  393. }
  394. function f(e) {
  395. var t = parseFloat(String(e));
  396. return t >= 0 && Math.floor(t) === t && isFinite(e)
  397. }
  398. function h(e) {
  399. return "[object Object]" === function(e) {
  400. return Object.prototype.toString.call(e)
  401. }(e)
  402. }
  403. function p(e) {
  404. return "function" == typeof e
  405. }
  406. function g(e, t) {
  407. r.default.util.warn(e, t)
  408. }
  409. var m = void 0;
  410. try {
  411. var v = n(60);
  412. v && w(v) ? m = v : v && "default"in v && w(v.default) && (m = v.default)
  413. } catch (e) {}
  414. var y, b = null, _ = null;
  415. function w(e) {
  416. return e && "function" == typeof e && "Vue" === e.name
  417. }
  418. function S() {
  419. return b
  420. }
  421. function x() {
  422. return _
  423. }
  424. function k(e) {
  425. _ = e
  426. }
  427. function I(e) {
  428. return x()
  429. }
  430. function C(e, t) {
  431. void 0 === t && (t = {});
  432. var n = e.config.silent;
  433. e.config.silent = !0;
  434. var r = new e(t);
  435. return e.config.silent = n,
  436. r
  437. }
  438. function M(e, t) {
  439. return function() {
  440. for (var n = [], r = 0; r < arguments.length; r++)
  441. n[r] = arguments[r];
  442. return e.$scopedSlots[t] ? e.$scopedSlots[t].apply(e, n) : g("slots." + t + '() got called outside of the "render()" scope', e)
  443. }
  444. }
  445. var T = function() {
  446. return (T = Object.assign || function(e) {
  447. for (var t, n = 1, r = arguments.length; n < r; n++)
  448. for (var i in t = arguments[n])
  449. Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
  450. return e
  451. }
  452. ).apply(this, arguments)
  453. };
  454. /*! *****************************************************************************
  455. Copyright (c) Microsoft Corporation.
  456. Permission to use, copy, modify, and/or distribute this software for any
  457. purpose with or without fee is hereby granted.
  458. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  459. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  460. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  461. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  462. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  463. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  464. PERFORMANCE OF THIS SOFTWARE.
  465. ***************************************************************************** */
  466. function A(e) {
  467. var t = "function" == typeof Symbol && Symbol.iterator
  468. , n = t && e[t]
  469. , r = 0;
  470. if (n)
  471. return n.call(e);
  472. if (e && "number" == typeof e.length)
  473. return {
  474. next: function() {
  475. return e && r >= e.length && (e = void 0),
  476. {
  477. value: e && e[r++],
  478. done: !e
  479. }
  480. }
  481. };
  482. throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.")
  483. }
  484. function E(e, t) {
  485. var n = "function" == typeof Symbol && e[Symbol.iterator];
  486. if (!n)
  487. return e;
  488. var r, i, o = n.call(e), a = [];
  489. try {
  490. for (; (void 0 === t || t-- > 0) && !(r = o.next()).done; )
  491. a.push(r.value)
  492. } catch (e) {
  493. i = {
  494. error: e
  495. }
  496. } finally {
  497. try {
  498. r && !r.done && (n = o.return) && n.call(o)
  499. } finally {
  500. if (i)
  501. throw i.error
  502. }
  503. }
  504. return a
  505. }
  506. function O() {
  507. for (var e = [], t = 0; t < arguments.length; t++)
  508. e = e.concat(E(arguments[t]));
  509. return e
  510. }
  511. function B(e) {
  512. return o ? Symbol.for(e) : e
  513. }
  514. var L = B("composition-api.preFlushQueue")
  515. , P = B("composition-api.postFlushQueue")
  516. , R = "composition-api.refKey"
  517. , z = new WeakMap
  518. , j = new WeakMap
  519. , F = new WeakMap
  520. , D = function(e) {
  521. l(this, "value", {
  522. get: e.get,
  523. set: e.set
  524. })
  525. };
  526. function N(e, t) {
  527. var n = new D(e)
  528. , r = Object.seal(n);
  529. return F.set(r, !0),
  530. r
  531. }
  532. function U(e) {
  533. var t;
  534. if (W(e))
  535. return e;
  536. var n = ie(((t = {})[R] = e,
  537. t));
  538. return N({
  539. get: function() {
  540. return n[R]
  541. },
  542. set: function(e) {
  543. return n[R] = e
  544. }
  545. })
  546. }
  547. function W(e) {
  548. return e instanceof D
  549. }
  550. function H(e) {
  551. return W(e) ? e.value : e
  552. }
  553. function V(e) {
  554. if (!h(e))
  555. return e;
  556. var t = {};
  557. for (var n in e)
  558. t[n] = G(e, n);
  559. return t
  560. }
  561. function $(e) {
  562. var t = U(0);
  563. return N(e((function() {
  564. t.value
  565. }
  566. ), (function() {
  567. ++t.value
  568. }
  569. )))
  570. }
  571. function G(e, t) {
  572. var n = e[t];
  573. return W(n) ? n : N({
  574. get: function() {
  575. return e[t]
  576. },
  577. set: function(n) {
  578. return e[t] = n
  579. }
  580. })
  581. }
  582. function Z(e) {
  583. var t;
  584. if (W(e))
  585. return e;
  586. var n = re(((t = {})[R] = e,
  587. t));
  588. return N({
  589. get: function() {
  590. return n[R]
  591. },
  592. set: function(e) {
  593. return n[R] = e
  594. }
  595. })
  596. }
  597. function q(e) {
  598. W(e) && (e.value = e.value)
  599. }
  600. function Y(e) {
  601. var t, n, r;
  602. if (Q(e))
  603. return e;
  604. var i = ie(((t = {})[R] = e,
  605. t))
  606. , o = function(e) {
  607. l(i, e, {
  608. get: function() {
  609. return W(i[e]) ? i[e].value : i[e]
  610. },
  611. set: function(t) {
  612. if (W(i[e]))
  613. return i[e].value = H(t);
  614. i[e] = H(t)
  615. }
  616. })
  617. };
  618. try {
  619. for (var a = A(Object.keys(e)), s = a.next(); !s.done; s = a.next()) {
  620. o(s.value)
  621. }
  622. } catch (e) {
  623. n = {
  624. error: e
  625. }
  626. } finally {
  627. try {
  628. s && !s.done && (r = a.return) && r.call(a)
  629. } finally {
  630. if (n)
  631. throw n.error
  632. }
  633. }
  634. return i
  635. }
  636. function X(e) {
  637. var t;
  638. return Boolean((null == e ? void 0 : e.__ob__) && (null === (t = e.__ob__) || void 0 === t ? void 0 : t.__raw__))
  639. }
  640. function J(e) {
  641. return F.has(e)
  642. }
  643. function Q(e) {
  644. var t;
  645. return Boolean((null == e ? void 0 : e.__ob__) && !(null === (t = e.__ob__) || void 0 === t ? void 0 : t.__raw__))
  646. }
  647. function K(e) {
  648. if (!(!h(e) || X(e) || Array.isArray(e) || W(e) || (t = e,
  649. n = S(),
  650. n && t instanceof n) || z.has(e))) {
  651. var t, n;
  652. z.set(e, !0);
  653. for (var r = Object.keys(e), i = 0; i < r.length; i++)
  654. ee(e, r[i])
  655. }
  656. }
  657. function ee(e, t, n) {
  658. if ("__ob__" !== t && !X(e[t])) {
  659. var r, i, o = Object.getOwnPropertyDescriptor(e, t);
  660. if (o) {
  661. if (!1 === o.configurable)
  662. return;
  663. r = o.get,
  664. i = o.set,
  665. r && !i || 2 !== arguments.length || (n = e[t])
  666. }
  667. K(n),
  668. Object.defineProperty(e, t, {
  669. enumerable: !0,
  670. configurable: !0,
  671. get: function() {
  672. var i = r ? r.call(e) : n;
  673. return t !== R && W(i) ? i.value : i
  674. },
  675. set: function(o) {
  676. if (!r || i) {
  677. var a = r ? r.call(e) : n;
  678. t !== R && W(a) && !W(o) ? a.value = o : i ? i.call(e, o) : n = o,
  679. K(o)
  680. }
  681. }
  682. })
  683. }
  684. }
  685. function te(e) {
  686. var t, n = b || m;
  687. n.observable ? t = n.observable(e) : t = C(n, {
  688. data: {
  689. $$state: e
  690. }
  691. })._data.$$state;
  692. return c(t, "__ob__") || u(t, "__ob__", function(e) {
  693. void 0 === e && (e = {});
  694. return {
  695. value: e,
  696. dep: {
  697. notify: a,
  698. depend: a,
  699. addSub: a,
  700. removeSub: a
  701. }
  702. }
  703. }(t)),
  704. t
  705. }
  706. function ne() {
  707. return te({}).__ob__
  708. }
  709. function re(e) {
  710. var t, n;
  711. if (!h(e) && !d(e) || X(e) || !Object.isExtensible(e))
  712. return e;
  713. var r = te({});
  714. K(r);
  715. var i = r.__ob__
  716. , o = function(t) {
  717. var n, o, s = e[t], l = Object.getOwnPropertyDescriptor(e, t);
  718. if (l) {
  719. if (!1 === l.configurable)
  720. return "continue";
  721. n = l.get,
  722. o = l.set,
  723. n && !o || 2 !== a.length || (s = e[t])
  724. }
  725. Object.defineProperty(r, t, {
  726. enumerable: !0,
  727. configurable: !0,
  728. get: function() {
  729. var t, r = n ? n.call(e) : s;
  730. return null === (t = i.dep) || void 0 === t || t.depend(),
  731. r
  732. },
  733. set: function(t) {
  734. var r;
  735. n && !o || (o ? o.call(e, t) : s = t,
  736. null === (r = i.dep) || void 0 === r || r.notify())
  737. }
  738. })
  739. }
  740. , a = arguments;
  741. try {
  742. for (var s = A(Object.keys(e)), l = s.next(); !l.done; l = s.next()) {
  743. var u = l.value;
  744. o(u)
  745. }
  746. } catch (e) {
  747. t = {
  748. error: e
  749. }
  750. } finally {
  751. try {
  752. l && !l.done && (n = s.return) && n.call(s)
  753. } finally {
  754. if (t)
  755. throw t.error
  756. }
  757. }
  758. return r
  759. }
  760. function ie(e) {
  761. if (!h(e) && !d(e) || X(e) || !Object.isExtensible(e))
  762. return e;
  763. var t = te(e);
  764. return K(t),
  765. t
  766. }
  767. function oe(e) {
  768. var t, n;
  769. if (!h(e) && !d(e) || !Object.isExtensible(e))
  770. return e;
  771. var r = {}
  772. , i = ie({})
  773. , o = i.__ob__
  774. , a = function(t) {
  775. var n, i = e[t], a = void 0, l = Object.getOwnPropertyDescriptor(e, t);
  776. if (l) {
  777. if (!1 === l.configurable)
  778. return "continue";
  779. n = l.get,
  780. a = l.set,
  781. n && !a || 2 !== s.length || (i = e[t])
  782. }
  783. Object.defineProperty(r, t, {
  784. enumerable: !0,
  785. configurable: !0,
  786. get: function() {
  787. var t = n ? n.call(e) : i;
  788. return o.dep.depend(),
  789. t
  790. },
  791. set: function(e) {
  792. 0
  793. }
  794. })
  795. }
  796. , s = arguments;
  797. try {
  798. for (var l = A(Object.keys(e)), u = l.next(); !u.done; u = l.next()) {
  799. var c = u.value;
  800. a(c)
  801. }
  802. } catch (e) {
  803. t = {
  804. error: e
  805. }
  806. } finally {
  807. try {
  808. u && !u.done && (n = l.return) && n.call(l)
  809. } finally {
  810. if (t)
  811. throw t.error
  812. }
  813. }
  814. return F.set(r, !0),
  815. r
  816. }
  817. function ae(e) {
  818. if (!h(e) && !d(e) || !Object.isExtensible(e))
  819. return e;
  820. var t = ne();
  821. return t.__raw__ = !0,
  822. u(e, "__ob__", t),
  823. j.set(e, !0),
  824. e
  825. }
  826. function se(e) {
  827. var t, n;
  828. return X(e) || !Object.isExtensible(e) ? e : (null === (n = null === (t = e) || void 0 === t ? void 0 : t.__ob__) || void 0 === n ? void 0 : n.value) || e
  829. }
  830. function le(e, t, n) {
  831. var r = S().util
  832. , i = (r.warn,
  833. r.defineReactive);
  834. if (d(e) && f(t))
  835. return e.length = Math.max(e.length, t),
  836. e.splice(t, 1, n),
  837. n;
  838. if (t in e && !(t in Object.prototype))
  839. return e[t] = n,
  840. n;
  841. var o = e.__ob__;
  842. return e._isVue || o && o.vmCount ? n : o ? (i(o.value, t, n),
  843. ee(e, t, n),
  844. o.dep.notify(),
  845. n) : (e[t] = n,
  846. n)
  847. }
  848. function ue(e, t) {
  849. S().util.warn;
  850. if (Array.isArray(e) && f(t))
  851. e.splice(t, 1);
  852. else {
  853. var n = e.__ob__;
  854. e._isVue || n && n.vmCount || c(e, t) && (delete e[t],
  855. n && n.dep.notify())
  856. }
  857. }
  858. function ce(e) {
  859. return function(t) {
  860. var n, r = I(((n = e)[0].toUpperCase(),
  861. n.slice(1)));
  862. r && function(e, t, n, r) {
  863. var i = t.$options
  864. , o = e.config.optionMergeStrategies[n];
  865. i[n] = o(i[n], function(e, t) {
  866. return function() {
  867. for (var n = [], r = 0; r < arguments.length; r++)
  868. n[r] = arguments[r];
  869. var i = x();
  870. k(e);
  871. try {
  872. return t.apply(void 0, O(n))
  873. } finally {
  874. k(i)
  875. }
  876. }
  877. }(t, r))
  878. }(S(), r, e, t)
  879. }
  880. }
  881. var de, fe = ce("beforeMount"), he = ce("mounted"), pe = ce("beforeUpdate"), ge = ce("updated"), me = ce("beforeDestroy"), ve = ce("destroyed"), ye = ce("errorCaptured"), be = ce("activated"), _e = ce("deactivated"), we = ce("serverPrefetch");
  882. function Se() {
  883. Ie(this, L)
  884. }
  885. function xe() {
  886. Ie(this, P)
  887. }
  888. function ke() {
  889. var e = x();
  890. return e ? function(e) {
  891. return void 0 !== e[L]
  892. }(e) || function(e) {
  893. e[L] = [],
  894. e[P] = [],
  895. e.$on("hook:beforeUpdate", Se),
  896. e.$on("hook:updated", xe)
  897. }(e) : (de || (de = C(S())),
  898. e = de),
  899. e
  900. }
  901. function Ie(e, t) {
  902. for (var n = e[t], r = 0; r < n.length; r++)
  903. n[r]();
  904. n.length = 0
  905. }
  906. function Ce(e, t, n) {
  907. var r = function() {
  908. e.$nextTick((function() {
  909. e[L].length && Ie(e, L),
  910. e[P].length && Ie(e, P)
  911. }
  912. ))
  913. };
  914. switch (n) {
  915. case "pre":
  916. r(),
  917. e[L].push(t);
  918. break;
  919. case "post":
  920. r(),
  921. e[P].push(t);
  922. break;
  923. default:
  924. !function(e, t) {
  925. if (!e)
  926. throw new Error("[vue-composition-api] " + t)
  927. }(!1, 'flush must be one of ["post", "pre", "sync"], but got ' + n)
  928. }
  929. }
  930. function Me(e, t) {
  931. var n = e.teardown;
  932. e.teardown = function() {
  933. for (var r = [], i = 0; i < arguments.length; i++)
  934. r[i] = arguments[i];
  935. n.apply(e, r),
  936. t()
  937. }
  938. }
  939. function Te(e, t, n, r) {
  940. var i, o, s = r.flush, l = "sync" === s, u = function(e) {
  941. o = function() {
  942. try {
  943. e()
  944. } catch (e) {
  945. !function(e, t, n) {
  946. if ("undefined" == typeof window || "undefined" == typeof console)
  947. throw e;
  948. console.error(e)
  949. }(e)
  950. }
  951. }
  952. }, c = function() {
  953. o && (o(),
  954. o = null)
  955. }, d = function(t) {
  956. return l || e === de ? t : function() {
  957. for (var n = [], r = 0; r < arguments.length; r++)
  958. n[r] = arguments[r];
  959. return Ce(e, (function() {
  960. t.apply(void 0, O(n))
  961. }
  962. ), s)
  963. }
  964. };
  965. if (null === n) {
  966. var f = !1
  967. , h = function(e, t, n, r) {
  968. var i = e._watchers.length;
  969. return e.$watch(t, n, {
  970. immediate: r.immediateInvokeCallback,
  971. deep: r.deep,
  972. lazy: r.noRun,
  973. sync: r.sync,
  974. before: r.before
  975. }),
  976. e._watchers[i]
  977. }(e, (function() {
  978. if (!f)
  979. try {
  980. f = !0,
  981. t(u)
  982. } finally {
  983. f = !1
  984. }
  985. }
  986. ), a, {
  987. deep: r.deep || !1,
  988. sync: l,
  989. before: c
  990. });
  991. Me(h, c),
  992. h.lazy = !1;
  993. var m = h.get.bind(h);
  994. return h.get = d(m),
  995. function() {
  996. h.teardown()
  997. }
  998. }
  999. var v, y = r.deep;
  1000. Array.isArray(t) ? v = function() {
  1001. return t.map((function(e) {
  1002. return W(e) ? e.value : e()
  1003. }
  1004. ))
  1005. }
  1006. : W(t) ? v = function() {
  1007. return t.value
  1008. }
  1009. : Q(t) ? (v = function() {
  1010. return t
  1011. }
  1012. ,
  1013. y = !0) : p(t) ? v = t : (v = a,
  1014. g("Invalid watch source: " + JSON.stringify(t) + ".\n A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.", e));
  1015. var b = function(e, t) {
  1016. c(),
  1017. n(e, t, u)
  1018. }
  1019. , _ = d(b);
  1020. if (r.immediate) {
  1021. var w = _
  1022. , S = function(e, t) {
  1023. S = w,
  1024. b(e, t)
  1025. };
  1026. _ = function(e, t) {
  1027. S(e, t)
  1028. }
  1029. }
  1030. var x = e.$watch(v, _, {
  1031. immediate: r.immediate,
  1032. deep: y,
  1033. sync: l
  1034. })
  1035. , k = e._watchers[e._watchers.length - 1];
  1036. return Q(k.value) && (null === (i = k.value.__ob__) || void 0 === i ? void 0 : i.dep) && y && k.value.__ob__.dep.addSub({
  1037. update: function() {
  1038. k.run()
  1039. }
  1040. }),
  1041. Me(k, c),
  1042. function() {
  1043. x()
  1044. }
  1045. }
  1046. function Ae(e, t) {
  1047. var n = function(e) {
  1048. return T({
  1049. immediate: !0,
  1050. deep: !1,
  1051. flush: "pre"
  1052. }, e)
  1053. }(t);
  1054. return Te(ke(), e, null, n)
  1055. }
  1056. function Ee(e, t, n) {
  1057. var r = null;
  1058. "function" == typeof t ? r = t : (n = t,
  1059. r = null);
  1060. var i = function(e) {
  1061. return T({
  1062. immediate: !1,
  1063. deep: !1,
  1064. flush: "pre"
  1065. }, e)
  1066. }(n);
  1067. return Te(ke(), e, r, i)
  1068. }
  1069. function Oe(e) {
  1070. var t, n, r, i, o = x();
  1071. if ("function" == typeof e ? t = e : (t = e.get,
  1072. n = e.set),
  1073. o && !o.$isServer) {
  1074. var s, l = function() {
  1075. if (!y) {
  1076. var e = C(S(), {
  1077. computed: {
  1078. value: function() {
  1079. return 0
  1080. }
  1081. }
  1082. })
  1083. , t = e._computedWatchers.value.constructor
  1084. , n = e._data.__ob__.dep.constructor;
  1085. y = {
  1086. Watcher: t,
  1087. Dep: n
  1088. },
  1089. e.$destroy()
  1090. }
  1091. return y
  1092. }(), u = l.Watcher, c = l.Dep;
  1093. i = function() {
  1094. return s || (s = new u(o,t,a,{
  1095. lazy: !0
  1096. })),
  1097. s.dirty && s.evaluate(),
  1098. c.target && s.depend(),
  1099. s.value
  1100. }
  1101. ,
  1102. r = function(e) {
  1103. n && n(e)
  1104. }
  1105. } else {
  1106. var d = C(S(), {
  1107. computed: {
  1108. $$state: {
  1109. get: t,
  1110. set: n
  1111. }
  1112. }
  1113. });
  1114. o && o.$on("hook:destroyed", (function() {
  1115. return d.$destroy()
  1116. }
  1117. )),
  1118. i = function() {
  1119. return d.$$state
  1120. }
  1121. ,
  1122. r = function(e) {
  1123. d.$$state = e
  1124. }
  1125. }
  1126. return N({
  1127. get: i,
  1128. set: r
  1129. })
  1130. }
  1131. var Be = {};
  1132. function Le(e, t) {
  1133. var n = I();
  1134. if (n) {
  1135. if (!n._provided) {
  1136. var r = {};
  1137. Object.defineProperty(n, "_provided", {
  1138. get: function() {
  1139. return r
  1140. },
  1141. set: function(e) {
  1142. return Object.assign(r, e)
  1143. }
  1144. })
  1145. }
  1146. n._provided[e] = t
  1147. }
  1148. }
  1149. function Pe(e, t, n) {
  1150. if (void 0 === n && (n = !1),
  1151. !e)
  1152. return t;
  1153. var r = x();
  1154. if (r) {
  1155. var i = function(e, t) {
  1156. for (var n = t; n; ) {
  1157. if (n._provided && c(n._provided, e))
  1158. return n._provided[e];
  1159. n = n.$parent
  1160. }
  1161. return Be
  1162. }(e, r);
  1163. return i !== Be ? i : n && p(t) ? t() : t
  1164. }
  1165. g("inject() can only be used inside setup() or functional components.")
  1166. }
  1167. var Re = {}
  1168. , ze = function(e) {
  1169. void 0 === e && (e = "$style");
  1170. var t = x();
  1171. if (!t)
  1172. return Re;
  1173. var n = t[e];
  1174. return n || Re
  1175. };
  1176. function je(e, t) {
  1177. void 0 === t && (t = void 0);
  1178. var n = S()
  1179. , r = void 0;
  1180. return {
  1181. config: n.config,
  1182. use: n.use.bind(n),
  1183. mixin: n.mixin.bind(n),
  1184. component: n.component.bind(n),
  1185. directive: n.directive.bind(n),
  1186. mount: function(i, o) {
  1187. return r || ((r = new n(T({
  1188. propsData: t
  1189. }, e))).$mount(i, o),
  1190. r)
  1191. },
  1192. unmount: function() {
  1193. r && (r.$destroy(),
  1194. r = void 0)
  1195. }
  1196. }
  1197. }
  1198. var Fe, De = function() {
  1199. for (var e, t = [], n = 0; n < arguments.length; n++)
  1200. t[n] = arguments[n];
  1201. return null === (e = S()) || void 0 === e ? void 0 : e.nextTick.apply(this, t)
  1202. }, Ne = function() {
  1203. for (var e = [], t = 0; t < arguments.length; t++)
  1204. e[t] = arguments[t];
  1205. var n = x();
  1206. return n ? n.$createElement.apply(n, e) : (g("`createElement()` has been called outside of render function."),
  1207. Fe || (Fe = C(S()).$createElement),
  1208. Fe.apply(Fe, e))
  1209. };
  1210. var Ue = {
  1211. set: function(e, t, n) {
  1212. (e.__composition_api_state__ = e.__composition_api_state__ || {})[t] = n
  1213. },
  1214. get: function(e, t) {
  1215. return (e.__composition_api_state__ || {})[t]
  1216. }
  1217. };
  1218. function We(e) {
  1219. var t = Ue.get(e, "rawBindings") || {};
  1220. if (t && Object.keys(t).length) {
  1221. for (var n = e.$refs, r = Ue.get(e, "refs") || [], i = 0; i < r.length; i++) {
  1222. var o = t[l = r[i]];
  1223. !n[l] && o && W(o) && (o.value = null)
  1224. }
  1225. var a = Object.keys(n)
  1226. , s = [];
  1227. for (i = 0; i < a.length; i++) {
  1228. var l;
  1229. o = t[l = a[i]];
  1230. n[l] && o && W(o) && (o.value = n[l],
  1231. s.push(l))
  1232. }
  1233. Ue.set(e, "refs", s)
  1234. }
  1235. }
  1236. function He(e, t) {
  1237. var n = e.$options._parentVnode;
  1238. if (n) {
  1239. for (var r = Ue.get(e, "slots") || [], i = function(e, t) {
  1240. var n;
  1241. if (e) {
  1242. if (e._normalized)
  1243. return e._normalized;
  1244. for (var r in n = {},
  1245. e)
  1246. e[r] && "$" !== r[0] && (n[r] = !0)
  1247. } else
  1248. n = {};
  1249. for (var r in t)
  1250. r in n || (n[r] = !0);
  1251. return n
  1252. }(n.data.scopedSlots, e.$slots), o = 0; o < r.length; o++) {
  1253. i[s = r[o]] || delete t[s]
  1254. }
  1255. var a = Object.keys(i);
  1256. for (o = 0; o < a.length; o++) {
  1257. var s;
  1258. t[s = a[o]] || (t[s] = M(e, s))
  1259. }
  1260. Ue.set(e, "slots", a)
  1261. }
  1262. }
  1263. function Ve(e, t, n) {
  1264. var r = x();
  1265. k(e);
  1266. try {
  1267. return t(e)
  1268. } catch (e) {
  1269. if (!n)
  1270. throw e;
  1271. n(e)
  1272. } finally {
  1273. k(r)
  1274. }
  1275. }
  1276. function $e(e) {
  1277. e.mixin({
  1278. beforeCreate: function() {
  1279. var e = this
  1280. , t = e.$options
  1281. , n = t.setup
  1282. , r = t.render;
  1283. r && (t.render = function() {
  1284. for (var t = this, n = [], i = 0; i < arguments.length; i++)
  1285. n[i] = arguments[i];
  1286. return Ve(e, (function() {
  1287. return r.apply(t, n)
  1288. }
  1289. ))
  1290. }
  1291. );
  1292. if (!n)
  1293. return;
  1294. if ("function" != typeof n)
  1295. return void 0;
  1296. var i = t.data;
  1297. t.data = function() {
  1298. return function(e, t) {
  1299. void 0 === t && (t = {});
  1300. var n, r = e.$options.setup, i = function(e) {
  1301. var t = {
  1302. slots: {}
  1303. };
  1304. ["root", "parent", "refs", "attrs", "listeners", "isServer", "ssrContext"].forEach((function(n) {
  1305. var r, i, o;
  1306. Array.isArray(n) ? (r = E(n, 2),
  1307. i = r[0],
  1308. o = r[1]) : i = o = n,
  1309. o = "$" + o,
  1310. l(t, i, {
  1311. get: function() {
  1312. return e[o]
  1313. },
  1314. set: function() {
  1315. g("Cannot assign to '" + i + "' because it is a read-only property", e)
  1316. }
  1317. })
  1318. }
  1319. )),
  1320. ["emit"].forEach((function(n) {
  1321. var r = "$" + n;
  1322. l(t, n, {
  1323. get: function() {
  1324. return function() {
  1325. for (var t = [], n = 0; n < arguments.length; n++)
  1326. t[n] = arguments[n];
  1327. var i = e[r];
  1328. i.apply(e, t)
  1329. }
  1330. }
  1331. })
  1332. }
  1333. )),
  1334. !1;
  1335. return t
  1336. }(e);
  1337. if (u(t, "__ob__", ne()),
  1338. He(e, i.slots),
  1339. Ve(e, (function() {
  1340. n = r(t, i)
  1341. }
  1342. )),
  1343. !n)
  1344. return;
  1345. if (p(n)) {
  1346. var o = n;
  1347. return void (e.$options.render = function() {
  1348. return He(e, i.slots),
  1349. Ve(e, (function() {
  1350. return o()
  1351. }
  1352. ))
  1353. }
  1354. )
  1355. }
  1356. if (h(n)) {
  1357. Q(n) && (n = V(n)),
  1358. Ue.set(e, "rawBindings", n);
  1359. var a = n;
  1360. return void Object.keys(a).forEach((function(t) {
  1361. var n, r = a[t];
  1362. W(r) || (Q(r) ? d(r) && (r = U(r)) : p(r) ? r = r.bind(e) : null === (n = r) || "object" != typeof n ? r = U(r) : function e(t, n) {
  1363. void 0 === n && (n = new Map);
  1364. if (n.has(t))
  1365. return n.get(t);
  1366. if (n.set(t, !1),
  1367. Array.isArray(t) && Q(t))
  1368. return n.set(t, !0),
  1369. !0;
  1370. if (!h(t) || X(t))
  1371. return !1;
  1372. return Object.keys(t).some((function(r) {
  1373. return e(t[r], n)
  1374. }
  1375. ))
  1376. }(r) && function e(t) {
  1377. if (!h(t) || W(t) || Q(t) || X(t))
  1378. return;
  1379. var n = S().util.defineReactive;
  1380. Object.keys(t).forEach((function(r) {
  1381. var i = t[r];
  1382. n(t, r, i),
  1383. i && e(i)
  1384. }
  1385. ))
  1386. }(r)),
  1387. function(e, t, n) {
  1388. var r = e.$options.props;
  1389. t in e || r && c(r, t) || (W(n) ? l(e, t, {
  1390. get: function() {
  1391. return n.value
  1392. },
  1393. set: function(e) {
  1394. n.value = e
  1395. }
  1396. }) : e[t] = n)
  1397. }(e, t, r)
  1398. }
  1399. ))
  1400. }
  1401. 0
  1402. }(e, e.$props),
  1403. "function" == typeof i ? i.call(e, e) : i || {}
  1404. }
  1405. },
  1406. mounted: function() {
  1407. We(this)
  1408. },
  1409. updated: function() {
  1410. We(this)
  1411. }
  1412. })
  1413. }
  1414. function Ge(e) {
  1415. (function(e) {
  1416. return c(e, "__composition_api_installed__")
  1417. }
  1418. )(e) || (e.config.optionMergeStrategies.setup = function(e, t) {
  1419. return function(n, r) {
  1420. return function e(t, n) {
  1421. if (!t)
  1422. return n;
  1423. if (!n)
  1424. return t;
  1425. for (var r, i, a, s = o ? Reflect.ownKeys(t) : Object.keys(t), l = 0; l < s.length; l++)
  1426. "__ob__" !== (r = s[l]) && (i = n[r],
  1427. a = t[r],
  1428. c(n, r) ? i !== a && h(i) && !W(i) && h(a) && !W(a) && e(a, i) : n[r] = a);
  1429. return n
  1430. }("function" == typeof e ? e(n, r) || {} : void 0, "function" == typeof t ? t(n, r) || {} : void 0)
  1431. }
  1432. }
  1433. ,
  1434. function(e) {
  1435. b = e,
  1436. Object.defineProperty(e, "__composition_api_installed__", {
  1437. configurable: !0,
  1438. writable: !0,
  1439. value: !0
  1440. })
  1441. }(e),
  1442. $e(e))
  1443. }
  1444. var Ze = {
  1445. install: function(e) {
  1446. return Ge(e)
  1447. }
  1448. };
  1449. function qe(e) {
  1450. return e
  1451. }
  1452. var Ye = "1.0.0-beta.19";
  1453. "undefined" != typeof window && window.Vue && window.Vue.use(Ze),
  1454. t.default = Ze
  1455. },
  1456. 1049: function(e, t, n) {
  1457. "use strict";
  1458. n.r(t);
  1459. var r = n(4)
  1460. , i = n(60)
  1461. , o = n(451)
  1462. , a = n(23)
  1463. , s = n(279)
  1464. , l = n(280)
  1465. , u = n(1);
  1466. class c {
  1467. constructor() {
  1468. this.handlers = {},
  1469. this.channelSetupPromise = new Promise(e=>{
  1470. window.addEventListener("message", t=>{
  1471. const [n,{port: r}] = t.data;
  1472. "setup-channel" === n && (r.start(),
  1473. r.addEventListener("message", this.eventDispatcher.bind(this)),
  1474. this.port = r,
  1475. r.postMessage(["channel-ready"]),
  1476. e(null))
  1477. }
  1478. )
  1479. }
  1480. )
  1481. }
  1482. eventDispatcher(e) {
  1483. return Object(r.a)(this, void 0, void 0, (function*() {
  1484. if (yield this.channelSetupPromise,
  1485. !this.port)
  1486. return;
  1487. const [t,n,r] = e.data
  1488. , i = this.handlers[t];
  1489. i && this.port.postMessage([r, yield i(n)])
  1490. }
  1491. ))
  1492. }
  1493. addEventListener(e, t) {
  1494. this.handlers[e] = t
  1495. }
  1496. removeEventListener(e) {
  1497. delete this.handlers[e]
  1498. }
  1499. emit(e, t) {
  1500. return Object(r.a)(this, void 0, void 0, (function*() {
  1501. yield this.channelSetupPromise,
  1502. this.port && this.port.postMessage(["event", e, t])
  1503. }
  1504. ))
  1505. }
  1506. }
  1507. const d = e=>{
  1508. const t = Object(l.createServices)()
  1509. , n = document.createElement("div");
  1510. n.classList.add("h-100", "w-100");
  1511. const a = document.createElement("div");
  1512. n.appendChild(a),
  1513. document.body.appendChild(n);
  1514. const s = (location.pathname.match(/^\/(m|embed)\/(([0-9A-Za-z])+)/) || [])[2]
  1515. , u = s ? "https://www.xmind.app/m/" + s : ""
  1516. , c = new i.default({
  1517. el: a,
  1518. provide: t,
  1519. render: t=>t(o.default, {
  1520. props: {
  1521. fileInformationPromise: e(),
  1522. xmindShareLink: u
  1523. }
  1524. })
  1525. });
  1526. return {
  1527. services: t,
  1528. destroy: ()=>Object(r.a)(void 0, void 0, void 0, (function*() {
  1529. var e;
  1530. c.$destroy(),
  1531. yield new Promise(e=>setTimeout(e)),
  1532. null === (e = n.parentElement) || void 0 === e || e.removeChild(n)
  1533. }
  1534. ))
  1535. }
  1536. }
  1537. ;
  1538. (()=>{
  1539. const e = (location.pathname.match(/^\/(m|embed)\/(([0-9A-Za-z])+)/) || [])[2];
  1540. let t;
  1541. if (e)
  1542. t = d(()=>Object(r.a)(void 0, void 0, void 0, (function*() {
  1543. const {downloadUrl: t} = yield window.api.getShareMapContentUrl(e)
  1544. , n = yield Object(a.downloadFromRemoteAddress)(t, {}, new s.ShareStorage);
  1545. if (n)
  1546. return {
  1547. fileBinaryContent: n.data,
  1548. fileDownloadURL: t,
  1549. fileDownloadHeaders: {}
  1550. }
  1551. }
  1552. )));
  1553. else {
  1554. const e = new c;
  1555. e.addEventListener("open-file", n=>Object(r.a)(void 0, void 0, void 0, (function*() {
  1556. null == t || t.destroy(),
  1557. t = d(()=>Object(r.a)(void 0, void 0, void 0, (function*() {
  1558. return {
  1559. fileBinaryContent: n,
  1560. fileDownloadHeaders: {},
  1561. fileDownloadURL: ""
  1562. }
  1563. }
  1564. )));
  1565. const {services: i} = t
  1566. , {store: o} = i;
  1567. Object(u.watch)(()=>o.workbook.state.value.sheets, t=>e.emit("sheets-load", t)),
  1568. Object(u.watch)(()=>o.workbook.state.value.currentSheetId, t=>e.emit("sheet-switch", t)),
  1569. Object(u.watch)(()=>o.workbook.state.value.zoomScale, t=>e.emit("zoom-change", t)),
  1570. Object(u.watch)(()=>o.workbook.state.value.isReady, t=>e.emit("map-ready", t))
  1571. }
  1572. ))),
  1573. e.addEventListener("fit-map", ()=>Object(r.a)(void 0, void 0, void 0, (function*() {
  1574. t.services.store.workbook.actions.fitMap()
  1575. }
  1576. ))),
  1577. e.addEventListener("zoom", e=>Object(r.a)(void 0, void 0, void 0, (function*() {
  1578. t && t.services.store.workbook.actions.zoom(e)
  1579. }
  1580. ))),
  1581. e.addEventListener("switch-sheet", e=>Object(r.a)(void 0, void 0, void 0, (function*() {
  1582. t && t.services.store.workbook.actions.switchSheet(e)
  1583. }
  1584. )))
  1585. }
  1586. }
  1587. )()
  1588. },
  1589. 109: function(e, t, n) {
  1590. "use strict";
  1591. Object.defineProperty(t, "__esModule", {
  1592. value: !0
  1593. }),
  1594. t.findAncestralMainTopicIdFrom = t.findHeaderTopic = t.computeSiblingTopics = t.computeRootTopics = t.computeSubtopicsOf = t.computeSlideContent = void 0;
  1595. const r = n(165);
  1596. function i(e, t) {
  1597. return t.getSubtopics(e).map(e=>{
  1598. var n;
  1599. return null !== (n = t.getTopicAttributes(e)) && void 0 !== n ? n : {
  1600. id: e,
  1601. title: ""
  1602. }
  1603. }
  1604. )
  1605. }
  1606. function o(e) {
  1607. const t = e.getStartingTopicId()
  1608. , n = e.getFloatingTopics ? e.getFloatingTopics() : [];
  1609. return t ? [t, ...n] : n
  1610. }
  1611. function a(e, t) {
  1612. const n = t.indexOf(e);
  1613. return {
  1614. previousSiblingTopicId: n < 1 ? null : t[n - 1],
  1615. nextSiblingTopicId: n < 0 || n >= t.length - 1 ? null : t[n + 1]
  1616. }
  1617. }
  1618. function s(e, t) {
  1619. const n = l(e, t);
  1620. return n && n !== e ? t.getTopicAttributes(n) : null
  1621. }
  1622. function l(e, t) {
  1623. let n = t.getParentTopicId(e);
  1624. for (; n; ) {
  1625. const r = t.getParentTopicId(n);
  1626. if (!r)
  1627. return e;
  1628. e = n,
  1629. n = r
  1630. }
  1631. return null
  1632. }
  1633. t.computeSlideContent = function(e, t) {
  1634. var n;
  1635. const l = t.getTopicAttributes(e);
  1636. if (!l)
  1637. return null;
  1638. const u = r.computeTopicLevel(e, t)
  1639. , c = i(e, t)
  1640. , d = s(e, t)
  1641. , f = l.calloutTopicId ? t.getTopicAttributes(l.calloutTopicId) : null
  1642. , h = t.getParentTopicId(e)
  1643. , p = h ? t.getTopicAttributes(h) : null
  1644. , g = "summaryTopic" === u ? [] : "floatingTopic" === u ? o(t) : h ? t.getSubtopics(h) : o(t)
  1645. , {previousSiblingTopicId: m, nextSiblingTopicId: v} = a(e, g)
  1646. , y = (null !== (n = null == p ? void 0 : p.summaries) && void 0 !== n ? n : []).find(t=>t.topicId === e);
  1647. return {
  1648. topic: l,
  1649. topicLevel: u,
  1650. parentTopicId: h,
  1651. previousSiblingTopicId: m,
  1652. nextSiblingTopicId: v,
  1653. subtopics: c,
  1654. headerTopic: d,
  1655. calloutTopic: f,
  1656. summarySubtopics: h && y ? i(h, t).slice(y.startIndex, y.endIndex + 1) : []
  1657. }
  1658. }
  1659. ,
  1660. t.computeSubtopicsOf = i,
  1661. t.computeRootTopics = o,
  1662. t.computeSiblingTopics = a,
  1663. t.findHeaderTopic = s,
  1664. t.findAncestralMainTopicIdFrom = l
  1665. },
  1666. 110: function(e, t, n) {
  1667. "use strict";
  1668. Object.defineProperty(t, "__esModule", {
  1669. value: !0
  1670. }),
  1671. t.findPresentationContext = void 0,
  1672. t.findPresentationContext = function e(t, n) {
  1673. return n in t ? t : t.superview ? e(t.superview, n) : null
  1674. }
  1675. },
  1676. 111: function(e, t, n) {
  1677. "use strict";
  1678. Object.defineProperty(t, "__esModule", {
  1679. value: !0
  1680. }),
  1681. t.GroupView = void 0;
  1682. const r = n(51)
  1683. , i = n(112)
  1684. , o = n(50)
  1685. , a = n(110)
  1686. , s = n(12);
  1687. class l extends r.BoxView {
  1688. constructor() {
  1689. super(...arguments),
  1690. this._subviews = [],
  1691. this.lastMaskImage = ""
  1692. }
  1693. createViewElement() {
  1694. const e = document.createElement("div");
  1695. return e.style.display = "block",
  1696. e.style.position = "absolute",
  1697. e.style.overflow = "visible",
  1698. e.classList.add("pancake-view-group"),
  1699. e.addEventListener("DOMNodeInsertedIntoDocument", ()=>{
  1700. this.clippedEl.scrollTop = this.scrollOffset,
  1701. this.updateMask()
  1702. }
  1703. ),
  1704. e
  1705. }
  1706. get clippedEl() {
  1707. return this._clippedEl || (this._clippedEl = document.createElement("div"),
  1708. this._clippedEl.classList.add("pancake-view-group-clip"),
  1709. this._clippedEl.style.position = "relative",
  1710. this._clippedEl.style.width = "100%",
  1711. this._clippedEl.style.height = "0",
  1712. this._clippedEl.style.overflow = "scroll",
  1713. this.el.appendChild(this._clippedEl),
  1714. this._clippedEl.addEventListener("wheel", e=>e.stopPropagation()),
  1715. this._clippedEl.addEventListener("scroll", e=>{
  1716. e.stopPropagation(),
  1717. this.onScrollUpdate()
  1718. }
  1719. )),
  1720. this._clippedEl
  1721. }
  1722. get contentEl() {
  1723. return this._contentEl || (this._contentEl = document.createElement("div"),
  1724. this._contentEl.style.position = "relative",
  1725. this._contentEl.style.width = "100%",
  1726. this._contentEl.style.height = "0",
  1727. this._contentEl.style.overflow = "visible",
  1728. this.clippedEl.appendChild(this._contentEl)),
  1729. this._contentEl
  1730. }
  1731. connect() {
  1732. super.connect();
  1733. for (const e of this._subviews)
  1734. e.connect()
  1735. }
  1736. disconnect() {
  1737. for (const e of this._subviews)
  1738. e.disconnect();
  1739. super.disconnect()
  1740. }
  1741. get subviews() {
  1742. return [...this._subviews]
  1743. }
  1744. update() {
  1745. var e, t, n, r, l;
  1746. const u = this.renderedState.id;
  1747. super.update();
  1748. const c = [...this._subviews]
  1749. , d = this.box.children;
  1750. for (let e = 0; e < d.length; e++) {
  1751. const t = d[e];
  1752. let n = c[e];
  1753. if (n)
  1754. if (n.box.id === t.id)
  1755. n.box = t,
  1756. n.update();
  1757. else {
  1758. const r = c.slice(e + 1).find(e=>e.box.id === t.id);
  1759. if (r)
  1760. this.contentEl.insertBefore(r.el, n.el),
  1761. r.box = t,
  1762. r.update(),
  1763. c.splice(e, 0, r);
  1764. else {
  1765. const r = i.createBoxView(this, t);
  1766. this.contentEl.insertBefore(r.el, n.el),
  1767. r.update(),
  1768. c.splice(e, 0, r),
  1769. this.connected && r.connect()
  1770. }
  1771. }
  1772. else
  1773. n = i.createBoxView(this, t),
  1774. this.contentEl.appendChild(n.el),
  1775. n.update(),
  1776. c.push(n)
  1777. }
  1778. for (; c.length > d.length; ) {
  1779. const e = c.pop();
  1780. this.connected && e.disconnect(),
  1781. this.contentEl.removeChild(e.el)
  1782. }
  1783. if (this._subviews = c,
  1784. this.clippedEl.style.height = this.el.style.height,
  1785. "scroll" === this.box.overflow)
  1786. if (this.box.contentHeight > this.box.bounds.height) {
  1787. const t = this.connected && "presenterPerspective" === (null === (e = a.findPresentationContext(this, "slideState")) || void 0 === e ? void 0 : e.slideState.mode);
  1788. this.clippedEl.style.overflow = t ? "scroll" : "hidden"
  1789. } else
  1790. this.clippedEl.style.overflow = "visible";
  1791. else
  1792. this.clippedEl.style.overflow = null !== (t = this.box.overflow) && void 0 !== t ? t : "hidden";
  1793. this.contentEl.style.height = s.toCSSLength(this.contentHeight),
  1794. this.el.style.pointerEvents = !1 === this.box.mouseInteraction ? "none" : "";
  1795. const f = null !== (r = null !== (n = this.state.scrollOffset) && void 0 !== n ? n : this.box.scrollOffset) && void 0 !== r ? r : 0;
  1796. this.box.id === u && f === (null !== (l = this.renderedState.scrollOffset) && void 0 !== l ? l : 0) || o.ViewAnimator.perform(this, {
  1797. scrollOffset: f
  1798. })
  1799. }
  1800. onScrollUpdate() {
  1801. var e, t;
  1802. const n = null !== (e = this.renderedState.scrollOffset) && void 0 !== e ? e : 0
  1803. , r = Math.round(this.clippedEl.scrollTop);
  1804. this.renderedState.scrollOffset = r,
  1805. this.updateMask(),
  1806. this.connected && Math.abs(r - n) > 1 && (null === (t = a.findPresentationContext(this, "groupViewDidGetScrolled")) || void 0 === t || t.groupViewDidGetScrolled(this))
  1807. }
  1808. set scrollOffset(e) {
  1809. var t;
  1810. null !== (t = (e = Math.round(e)) === this.renderedState.scrollOffset) && void 0 !== t && t || (this.renderedState.scrollOffset = e,
  1811. this.clippedEl.scrollTop = e,
  1812. this.updateMask())
  1813. }
  1814. get scrollOffset() {
  1815. var e;
  1816. return null !== (e = this.renderedState.scrollOffset) && void 0 !== e ? e : 0
  1817. }
  1818. get contentHeight() {
  1819. return this.box.contentHeight
  1820. }
  1821. get viewportHeight() {
  1822. return this.box.bounds.height
  1823. }
  1824. updateMask() {
  1825. const e = this._computeMaskImage(!0);
  1826. e != this.lastMaskImage && (this.lastMaskImage = e,
  1827. this.contentEl.style.maskImage = e,
  1828. this.contentEl.style.webkitMaskImage = e)
  1829. }
  1830. computeMaskImage() {
  1831. return this._computeMaskImage(!1)
  1832. }
  1833. _computeMaskImage(e) {
  1834. var t, n, r;
  1835. const i = this.contentHeight
  1836. , o = this.viewportHeight;
  1837. let a = "";
  1838. if (i > o) {
  1839. const s = null !== (n = null === (t = this.box) || void 0 === t ? void 0 : t.scrollFaderSize) && void 0 !== n ? n : 0
  1840. , l = this.scrollOffset
  1841. , u = i - o - l
  1842. , c = Math.max(s - l, 0) / s
  1843. , d = Math.max(s - u, 0) / s
  1844. , f = e ? l : 0
  1845. , h = f
  1846. , p = f + s
  1847. , g = f + o - s
  1848. , m = f + o;
  1849. if ("twoStops" === (null === (r = this.box) || void 0 === r ? void 0 : r.scrollFaderType)) {
  1850. const e = .0729 * s
  1851. , t = .8095 * s;
  1852. a = `linear-gradient(to bottom, rgba(0,0,0,${c}) ${h + e}px, rgba(0,0,0,${c + .8 * (1 - c)}) ${h + t}px, black ${p}px, black ${g}px, rgba(0,0,0,${d + .8 * (1 - d)}) ${m - t}px, rgba(0,0,0,${d}) ${m - e}px)`
  1853. } else {
  1854. const e = .05 * s;
  1855. a = `linear-gradient(to bottom, transparent ${h}px, rgba(0,0,0,${c}) ${h + e}px, black ${p}px, black ${g}px, rgba(0,0,0,${d}) ${m - e}px, transparent ${m}px)`
  1856. }
  1857. }
  1858. return a
  1859. }
  1860. }
  1861. t.GroupView = l
  1862. },
  1863. 112: function(e, t, n) {
  1864. "use strict";
  1865. Object.defineProperty(t, "__esModule", {
  1866. value: !0
  1867. }),
  1868. t.createBoxView = void 0;
  1869. const r = n(168)
  1870. , i = n(111)
  1871. , o = n(169)
  1872. , a = n(170)
  1873. , s = n(171);
  1874. t.createBoxView = function(e, t) {
  1875. switch (t.contentType) {
  1876. case "text":
  1877. return new r.TextView({
  1878. superview: e,
  1879. box: t
  1880. });
  1881. case "shape":
  1882. return new o.ShapeView({
  1883. superview: e,
  1884. box: t
  1885. });
  1886. case "group":
  1887. return new i.GroupView({
  1888. superview: e,
  1889. box: t
  1890. });
  1891. case "image":
  1892. return new a.ImageView({
  1893. superview: e,
  1894. box: t
  1895. });
  1896. case "svg-template":
  1897. return new s.SVGTemplateView({
  1898. superview: e,
  1899. box: t
  1900. })
  1901. }
  1902. }
  1903. },
  1904. 113: function(e, t, n) {
  1905. "use strict";
  1906. Object.defineProperty(t, "__esModule", {
  1907. value: !0
  1908. }),
  1909. t.IndexRange = void 0;
  1910. class r {
  1911. constructor(e, t) {
  1912. if (this._start = "string" == typeof e ? parseInt(e, 10) : e,
  1913. this._end = "string" == typeof t ? parseInt(t, 10) : t,
  1914. this._start > this._end)
  1915. throw new Error("Invalid range: End before start: " + this._start + " " + this._end)
  1916. }
  1917. static fromString(e) {
  1918. const t = e.match(/^(\d+)-(\d+)$/);
  1919. return t ? new r(t[1],t[2]) : null
  1920. }
  1921. get location() {
  1922. return this._start
  1923. }
  1924. get lowerBound() {
  1925. return this._start
  1926. }
  1927. get upperBound() {
  1928. return this._end + 1
  1929. }
  1930. get start() {
  1931. return this._start
  1932. }
  1933. get end() {
  1934. return this._end
  1935. }
  1936. get count() {
  1937. return this._end - this._start + 1
  1938. }
  1939. get length() {
  1940. return this._end - this._start + 1
  1941. }
  1942. static sort(e) {
  1943. return e.sort((e,t)=>e.start - t.start)
  1944. }
  1945. join(e) {
  1946. return this.overlaps(e) || this.contiguous(e) ? new r(Math.min(this._start, e.start),Math.max(this._end, e.end)) : null
  1947. }
  1948. contains(e) {
  1949. return (e = "string" == typeof e ? parseInt(e, 10) : e) >= this._start && e <= this._end
  1950. }
  1951. equals(e) {
  1952. return e.start === this._start && e.end === this._end
  1953. }
  1954. overlaps(e) {
  1955. const t = r.sort([e, this]);
  1956. return t[0].end >= t[1].start
  1957. }
  1958. contiguous(e) {
  1959. const t = r.sort([e, this]);
  1960. return t[0].end + 1 === t[1].start
  1961. }
  1962. toString() {
  1963. return this._start + "-" + this._end
  1964. }
  1965. static compact(e) {
  1966. if (e.length < 2)
  1967. return e;
  1968. let t = (e = r.sort(e))[0];
  1969. const n = [];
  1970. for (let i = 1; i < e.length; i++) {
  1971. const o = e[i];
  1972. t.overlaps(new r(o.start - 1,o.end)) ? t = t.join(o) || t : (n.push(t),
  1973. t = o),
  1974. i === e.length - 1 && n.push(t)
  1975. }
  1976. return n
  1977. }
  1978. static subtract(e, t) {
  1979. Array.isArray(e) || (e = [e]);
  1980. let n = (e = r.sort(e).reverse()).length;
  1981. const i = [];
  1982. for (; n--; ) {
  1983. const o = e[n];
  1984. t.start <= o.start && t.end >= o.end ? e.splice(n, 1) : t.start > o.start && t.end < o.end ? (e.splice(n, 1),
  1985. i.push(new r(o.start,t.start - 1)),
  1986. i.push(new r(t.end + 1,o.end))) : t.end < o.end && t.end >= o.start ? (e.splice(n, 1),
  1987. i.push(new r(t.end + 1,o.end))) : t.end > o.end && t.start <= o.end && (e.splice(n, 1),
  1988. i.push(new r(o.start,t.start - 1)))
  1989. }
  1990. return r.sort(e.concat(i))
  1991. }
  1992. }
  1993. t.IndexRange = r
  1994. },
  1995. 116: function(e, t) {
  1996. e.exports = function(e) {
  1997. return e.webpackPolyfill || (e.deprecate = function() {}
  1998. ,
  1999. e.paths = [],
  2000. e.children || (e.children = []),
  2001. Object.defineProperty(e, "loaded", {
  2002. enumerable: !0,
  2003. get: function() {
  2004. return e.l
  2005. }
  2006. }),
  2007. Object.defineProperty(e, "id", {
  2008. enumerable: !0,
  2009. get: function() {
  2010. return e.i
  2011. }
  2012. }),
  2013. e.webpackPolyfill = 1),
  2014. e
  2015. }
  2016. },
  2017. 117: function(e, t, n) {
  2018. "use strict";
  2019. e.exports = function(e, t) {
  2020. return function() {
  2021. for (var n = new Array(arguments.length), r = 0; r < n.length; r++)
  2022. n[r] = arguments[r];
  2023. return e.apply(t, n)
  2024. }
  2025. }
  2026. },
  2027. 118: function(e, t, n) {
  2028. "use strict";
  2029. var r = n(14)
  2030. , i = n(192)
  2031. , o = n(194)
  2032. , a = n(195)
  2033. , s = n(196)
  2034. , l = n(119)
  2035. , u = "undefined" != typeof window && window.btoa && window.btoa.bind(window) || n(197);
  2036. e.exports = function(e) {
  2037. return new Promise((function(t, c) {
  2038. var d = e.data
  2039. , f = e.headers;
  2040. r.isFormData(d) && delete f["Content-Type"];
  2041. var h = new XMLHttpRequest
  2042. , p = "onreadystatechange"
  2043. , g = !1;
  2044. if ("undefined" == typeof window || !window.XDomainRequest || "withCredentials"in h || s(e.url) || (h = new window.XDomainRequest,
  2045. p = "onload",
  2046. g = !0,
  2047. h.onprogress = function() {}
  2048. ,
  2049. h.ontimeout = function() {}
  2050. ),
  2051. e.auth) {
  2052. var m = e.auth.username || ""
  2053. , v = e.auth.password || "";
  2054. f.Authorization = "Basic " + u(m + ":" + v)
  2055. }
  2056. if (h.open(e.method.toUpperCase(), o(e.url, e.params, e.paramsSerializer), !0),
  2057. h.timeout = e.timeout,
  2058. h[p] = function() {
  2059. if (h && (4 === h.readyState || g) && (0 !== h.status || h.responseURL && 0 === h.responseURL.indexOf("file:"))) {
  2060. var n = "getAllResponseHeaders"in h ? a(h.getAllResponseHeaders()) : null
  2061. , r = {
  2062. data: e.responseType && "text" !== e.responseType ? h.response : h.responseText,
  2063. status: 1223 === h.status ? 204 : h.status,
  2064. statusText: 1223 === h.status ? "No Content" : h.statusText,
  2065. headers: n,
  2066. config: e,
  2067. request: h
  2068. };
  2069. i(t, c, r),
  2070. h = null
  2071. }
  2072. }
  2073. ,
  2074. h.onerror = function() {
  2075. c(l("Network Error", e, null, h)),
  2076. h = null
  2077. }
  2078. ,
  2079. h.ontimeout = function() {
  2080. c(l("timeout of " + e.timeout + "ms exceeded", e, "ECONNABORTED", h)),
  2081. h = null
  2082. }
  2083. ,
  2084. r.isStandardBrowserEnv()) {
  2085. var y = n(198)
  2086. , b = (e.withCredentials || s(e.url)) && e.xsrfCookieName ? y.read(e.xsrfCookieName) : void 0;
  2087. b && (f[e.xsrfHeaderName] = b)
  2088. }
  2089. if ("setRequestHeader"in h && r.forEach(f, (function(e, t) {
  2090. void 0 === d && "content-type" === t.toLowerCase() ? delete f[t] : h.setRequestHeader(t, e)
  2091. }
  2092. )),
  2093. e.withCredentials && (h.withCredentials = !0),
  2094. e.responseType)
  2095. try {
  2096. h.responseType = e.responseType
  2097. } catch (t) {
  2098. if ("json" !== e.responseType)
  2099. throw t
  2100. }
  2101. "function" == typeof e.onDownloadProgress && h.addEventListener("progress", e.onDownloadProgress),
  2102. "function" == typeof e.onUploadProgress && h.upload && h.upload.addEventListener("progress", e.onUploadProgress),
  2103. e.cancelToken && e.cancelToken.promise.then((function(e) {
  2104. h && (h.abort(),
  2105. c(e),
  2106. h = null)
  2107. }
  2108. )),
  2109. void 0 === d && (d = null),
  2110. h.send(d)
  2111. }
  2112. ))
  2113. }
  2114. },
  2115. 119: function(e, t, n) {
  2116. "use strict";
  2117. var r = n(193);
  2118. e.exports = function(e, t, n, i, o) {
  2119. var a = new Error(e);
  2120. return r(a, t, n, i, o)
  2121. }
  2122. },
  2123. 12: function(e, t, n) {
  2124. "use strict";
  2125. Object.defineProperty(t, "__esModule", {
  2126. value: !0
  2127. }),
  2128. t.isSvg = t.getClippedBoundsOfElement = t.fillText = t.emptyElement = t.escapeHtmlTag = t.toCSSTextAlign = t.toCSSFont = t.toCSSLength = void 0,
  2129. t.toCSSLength = function(e) {
  2130. return void 0 === e ? "" : e + "px"
  2131. }
  2132. ,
  2133. t.toCSSFont = function(e) {
  2134. var t, n, r, i, o;
  2135. const a = (null !== (t = null == e ? void 0 : e.fontFamily) && void 0 !== t ? t : ["sans-serif"]).map(e=>e.indexOf(" ") >= 0 ? `'${e}'` : e).join(", ")
  2136. , s = null !== (n = null == e ? void 0 : e.fontSize) && void 0 !== n ? n : "12px"
  2137. , l = null !== (r = null == e ? void 0 : e.lineHeight) && void 0 !== r ? r : "1em"
  2138. , u = null !== (i = null == e ? void 0 : e.fontWeight) && void 0 !== i ? i : "normal";
  2139. return `${null !== (o = null == e ? void 0 : e.fontStyle) && void 0 !== o ? o : "normal"} ${u} ${s}/${l} ${a}`
  2140. }
  2141. ,
  2142. t.toCSSTextAlign = function(e) {
  2143. if (e)
  2144. switch (e) {
  2145. case "leading":
  2146. return "left";
  2147. case "center":
  2148. return "center";
  2149. case "trailing":
  2150. return "right"
  2151. }
  2152. }
  2153. ;
  2154. const r = {
  2155. "&": "&amp;",
  2156. "<": "&lt;",
  2157. ">": "&gt;"
  2158. };
  2159. t.escapeHtmlTag = function(e) {
  2160. return e.replace(/[&<>]/g, (function(e) {
  2161. return r[e] || e
  2162. }
  2163. ))
  2164. }
  2165. ,
  2166. t.emptyElement = function(e) {
  2167. for (let t = e.lastChild; t; t = e.lastChild)
  2168. e.removeChild(t)
  2169. }
  2170. ,
  2171. t.fillText = function(e, t) {
  2172. t.split(/\r\n|\r|\n/g).forEach((t,n)=>{
  2173. n > 0 && e.appendChild(document.createElement("br")),
  2174. e.appendChild(document.createTextNode(t))
  2175. }
  2176. )
  2177. }
  2178. ,
  2179. t.getClippedBoundsOfElement = function(e, t) {
  2180. const n = {
  2181. x: e.offsetLeft,
  2182. y: e.offsetTop,
  2183. width: e.offsetWidth,
  2184. height: e.offsetHeight
  2185. };
  2186. let r = e.offsetParent;
  2187. for (; r && r !== t; ) {
  2188. n.x -= r.scrollLeft,
  2189. n.y -= r.scrollTop;
  2190. const t = getComputedStyle(r);
  2191. "visible" !== t.overflowX && (n.x < 0 && (n.width += n.x,
  2192. n.x = 0),
  2193. n.x + n.width > r.offsetWidth && (n.width = r.offsetWidth - n.x)),
  2194. "visible" !== t.overflowY && (n.y < 0 && (n.height += n.y,
  2195. n.y = 0),
  2196. n.y + n.height > r.offsetHeight && (n.height = r.offsetHeight - n.y)),
  2197. n.x += r.offsetLeft,
  2198. n.y += r.offsetTop,
  2199. e = r,
  2200. r = r.offsetParent
  2201. }
  2202. return n
  2203. }
  2204. ,
  2205. t.isSvg = function(e) {
  2206. return !(new DOMParser).parseFromString(e, "image/svg+xml").querySelector("parsererror")
  2207. }
  2208. },
  2209. 120: function(e, t, n) {
  2210. "use strict";
  2211. e.exports = function(e) {
  2212. return !(!e || !e.__CANCEL__)
  2213. }
  2214. },
  2215. 121: function(e, t, n) {
  2216. "use strict";
  2217. function r(e) {
  2218. this.message = e
  2219. }
  2220. r.prototype.toString = function() {
  2221. return "Cancel" + (this.message ? ": " + this.message : "")
  2222. }
  2223. ,
  2224. r.prototype.__CANCEL__ = !0,
  2225. e.exports = r
  2226. },
  2227. 13: function(e, t, n) {
  2228. "use strict";
  2229. function r(e, t) {
  2230. return "none" === t ? e : t.reduce((e,t)=>"translate"in t ? i(e, t.translate) : "scale"in t ? o(e, t.scale) : a(e, t.rotate), e)
  2231. }
  2232. function i({x: e, y: t}, n) {
  2233. return {
  2234. x: e + n.x,
  2235. y: t + n.y
  2236. }
  2237. }
  2238. function o({x: e, y: t}, n) {
  2239. return {
  2240. x: e * n.x,
  2241. y: t * n.y
  2242. }
  2243. }
  2244. function a(e, t) {
  2245. return e
  2246. }
  2247. Object.defineProperty(t, "__esModule", {
  2248. value: !0
  2249. }),
  2250. t.intersectRect = t.intersectDOMRect = t.invertTransform = t.scaleSize = t.transformRect = t.rotatePoint = t.scalePoint = t.translatePoint = t.transformPoint = t.calc = t.zeroInsets = t.zeroSize = t.zeroPoint = t.zeroRect = t.isPointInRect = void 0,
  2251. t.isPointInRect = function(e, t) {
  2252. return t.x <= e.x && t.y <= e.y && t.x + t.width >= e.x && t.y + t.height >= e.y
  2253. }
  2254. ,
  2255. t.zeroRect = function() {
  2256. return {
  2257. x: 0,
  2258. y: 0,
  2259. width: 0,
  2260. height: 0
  2261. }
  2262. }
  2263. ,
  2264. t.zeroPoint = function() {
  2265. return {
  2266. x: 0,
  2267. y: 0
  2268. }
  2269. }
  2270. ,
  2271. t.zeroSize = function() {
  2272. return {
  2273. width: 0,
  2274. height: 0
  2275. }
  2276. }
  2277. ,
  2278. t.zeroInsets = function() {
  2279. return {
  2280. left: 0,
  2281. top: 0,
  2282. right: 0,
  2283. bottom: 0
  2284. }
  2285. }
  2286. ,
  2287. t.calc = function(e, t, n) {
  2288. switch (t) {
  2289. case "vh":
  2290. return n.height * e;
  2291. case "vw":
  2292. return n.width * e;
  2293. case "vmax":
  2294. return Math.max(n.width, n.height) * e;
  2295. case "vmin":
  2296. return Math.min(n.width, n.height) * e
  2297. }
  2298. }
  2299. ,
  2300. t.transformPoint = r,
  2301. t.translatePoint = i,
  2302. t.scalePoint = o,
  2303. t.rotatePoint = a,
  2304. t.transformRect = function(e, t) {
  2305. if ("none" === t)
  2306. return e;
  2307. const n = r(e, t)
  2308. , i = r({
  2309. x: e.x + e.width,
  2310. y: e.y + e.height
  2311. }, t);
  2312. return {
  2313. x: Math.min(n.x, i.x),
  2314. y: Math.min(n.y, i.y),
  2315. width: Math.abs(i.x - n.x),
  2316. height: Math.abs(i.y - n.y)
  2317. }
  2318. }
  2319. ,
  2320. t.scaleSize = function({width: e, height: t}, n) {
  2321. return {
  2322. width: e * n.x,
  2323. height: t * n.y
  2324. }
  2325. }
  2326. ,
  2327. t.invertTransform = function(e) {
  2328. return "none" === e ? "none" : e.map(e=>"translate"in e ? {
  2329. translate: {
  2330. x: -e.translate.x,
  2331. y: -e.translate.y
  2332. }
  2333. } : "scale"in e ? {
  2334. scale: {
  2335. x: 1 / e.scale.x,
  2336. y: 1 / e.scale.y
  2337. }
  2338. } : {
  2339. rotate: -e.rotate
  2340. }).reverse()
  2341. }
  2342. ,
  2343. t.intersectDOMRect = function(e, t) {
  2344. return !(t.left > e.right || t.right < e.left || t.top > e.bottom || t.bottom < e.top)
  2345. }
  2346. ,
  2347. t.intersectRect = function(e, t) {
  2348. return !(t.x > e.x + e.width || t.x + e.width < e.x || t.y > e.y + e.height || t.y + t.height < e.y)
  2349. }
  2350. },
  2351. 132: function(e, t, n) {
  2352. "use strict";
  2353. var r = n(133)
  2354. , i = n.n(r);
  2355. t.default = i.a
  2356. },
  2357. 133: function(e, t, n) {
  2358. "use strict";
  2359. Object.defineProperty(t, "__esModule", {
  2360. value: !0
  2361. });
  2362. var r = n(1);
  2363. t.default = (0,
  2364. r.defineComponent)({
  2365. name: "loading-animation",
  2366. props: {
  2367. videoLink: String,
  2368. gifLink: String
  2369. },
  2370. setup: function() {
  2371. return {}
  2372. }
  2373. })
  2374. },
  2375. 134: function(e, t, n) {
  2376. "use strict";
  2377. var r = n(135)
  2378. , i = n.n(r);
  2379. t.default = i.a
  2380. },
  2381. 135: function(e, t, n) {
  2382. "use strict";
  2383. Object.defineProperty(t, "__esModule", {
  2384. value: !0
  2385. });
  2386. var r = n(1)
  2387. , i = n(174);
  2388. t.default = (0,
  2389. r.defineComponent)({
  2390. name: "frame-zoom-scale-bar",
  2391. props: {
  2392. zoomScale: {
  2393. type: Number,
  2394. default: 100
  2395. },
  2396. buttonStyles: String
  2397. },
  2398. setup: function(e, t) {
  2399. return {
  2400. handleZoom: function(e) {
  2401. return t.emit("zoom", e)
  2402. },
  2403. PresetZoomScales: i.PresetZoomScales,
  2404. handleZoomIn: function() {
  2405. return t.emit("zoom-in")
  2406. },
  2407. handleZoomOut: function() {
  2408. return t.emit("zoom-out")
  2409. },
  2410. handleFitMap: function() {
  2411. return t.emit("fit-map")
  2412. }
  2413. }
  2414. }
  2415. })
  2416. },
  2417. 136: function(e, t, n) {
  2418. "use strict";
  2419. var r = n(137)
  2420. , i = n.n(r);
  2421. t.default = i.a
  2422. },
  2423. 137: function(e, t, n) {
  2424. "use strict";
  2425. Object.defineProperty(t, "__esModule", {
  2426. value: !0
  2427. });
  2428. var r = n(1);
  2429. t.default = (0,
  2430. r.defineComponent)({
  2431. name: "frame-sheets-bar",
  2432. props: {
  2433. buttonStyles: String,
  2434. currentSheetId: String,
  2435. sheets: {
  2436. validator: function(e) {
  2437. return !(!Array.isArray(e) || !e.every((function(e) {
  2438. return e && "string" == typeof e.title && "string" == typeof e.id
  2439. }
  2440. )))
  2441. }
  2442. }
  2443. },
  2444. setup: function(e, t) {
  2445. var n = (0,
  2446. r.computed)((function() {
  2447. return e.sheets.find((function(t) {
  2448. return t.id === e.currentSheetId
  2449. }
  2450. ))
  2451. }
  2452. ));
  2453. return {
  2454. currentSheet: n,
  2455. handleSwitchSheet: function(e) {
  2456. n.value && n.value === e || t.emit("switch-sheet", e)
  2457. }
  2458. }
  2459. }
  2460. })
  2461. },
  2462. 138: function(e, t, n) {
  2463. (function(t, n, r) {
  2464. e.exports = function e(t, n, r) {
  2465. function i(a, s) {
  2466. if (!n[a]) {
  2467. if (!t[a]) {
  2468. if (o)
  2469. return o(a, !0);
  2470. var l = new Error("Cannot find module '" + a + "'");
  2471. throw l.code = "MODULE_NOT_FOUND",
  2472. l
  2473. }
  2474. var u = n[a] = {
  2475. exports: {}
  2476. };
  2477. t[a][0].call(u.exports, (function(e) {
  2478. return i(t[a][1][e] || e)
  2479. }
  2480. ), u, u.exports, e, t, n, r)
  2481. }
  2482. return n[a].exports
  2483. }
  2484. for (var o = !1, a = 0; a < r.length; a++)
  2485. i(r[a]);
  2486. return i
  2487. }({
  2488. 1: [function(e, t, n) {
  2489. "use strict";
  2490. var r = e("./utils")
  2491. , i = e("./support")
  2492. , o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
  2493. n.encode = function(e) {
  2494. for (var t, n, i, a, s, l, u, c = [], d = 0, f = e.length, h = f, p = "string" !== r.getTypeOf(e); d < e.length; )
  2495. h = f - d,
  2496. i = p ? (t = e[d++],
  2497. n = d < f ? e[d++] : 0,
  2498. d < f ? e[d++] : 0) : (t = e.charCodeAt(d++),
  2499. n = d < f ? e.charCodeAt(d++) : 0,
  2500. d < f ? e.charCodeAt(d++) : 0),
  2501. a = t >> 2,
  2502. s = (3 & t) << 4 | n >> 4,
  2503. l = 1 < h ? (15 & n) << 2 | i >> 6 : 64,
  2504. u = 2 < h ? 63 & i : 64,
  2505. c.push(o.charAt(a) + o.charAt(s) + o.charAt(l) + o.charAt(u));
  2506. return c.join("")
  2507. }
  2508. ,
  2509. n.decode = function(e) {
  2510. var t, n, r, a, s, l, u = 0, c = 0, d = "data:";
  2511. if (e.substr(0, d.length) === d)
  2512. throw new Error("Invalid base64 input, it looks like a data url.");
  2513. var f, h = 3 * (e = e.replace(/[^A-Za-z0-9\+\/\=]/g, "")).length / 4;
  2514. if (e.charAt(e.length - 1) === o.charAt(64) && h--,
  2515. e.charAt(e.length - 2) === o.charAt(64) && h--,
  2516. h % 1 != 0)
  2517. throw new Error("Invalid base64 input, bad content length.");
  2518. for (f = i.uint8array ? new Uint8Array(0 | h) : new Array(0 | h); u < e.length; )
  2519. t = o.indexOf(e.charAt(u++)) << 2 | (a = o.indexOf(e.charAt(u++))) >> 4,
  2520. n = (15 & a) << 4 | (s = o.indexOf(e.charAt(u++))) >> 2,
  2521. r = (3 & s) << 6 | (l = o.indexOf(e.charAt(u++))),
  2522. f[c++] = t,
  2523. 64 !== s && (f[c++] = n),
  2524. 64 !== l && (f[c++] = r);
  2525. return f
  2526. }
  2527. }
  2528. , {
  2529. "./support": 30,
  2530. "./utils": 32
  2531. }],
  2532. 2: [function(e, t, n) {
  2533. "use strict";
  2534. var r = e("./external")
  2535. , i = e("./stream/DataWorker")
  2536. , o = e("./stream/Crc32Probe")
  2537. , a = e("./stream/DataLengthProbe");
  2538. function s(e, t, n, r, i) {
  2539. this.compressedSize = e,
  2540. this.uncompressedSize = t,
  2541. this.crc32 = n,
  2542. this.compression = r,
  2543. this.compressedContent = i
  2544. }
  2545. s.prototype = {
  2546. getContentWorker: function() {
  2547. var e = new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length"))
  2548. , t = this;
  2549. return e.on("end", (function() {
  2550. if (this.streamInfo.data_length !== t.uncompressedSize)
  2551. throw new Error("Bug : uncompressed data size mismatch")
  2552. }
  2553. )),
  2554. e
  2555. },
  2556. getCompressedWorker: function() {
  2557. return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression)
  2558. }
  2559. },
  2560. s.createWorkerFrom = function(e, t, n) {
  2561. return e.pipe(new o).pipe(new a("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new a("compressedSize")).withStreamInfo("compression", t)
  2562. }
  2563. ,
  2564. t.exports = s
  2565. }
  2566. , {
  2567. "./external": 6,
  2568. "./stream/Crc32Probe": 25,
  2569. "./stream/DataLengthProbe": 26,
  2570. "./stream/DataWorker": 27
  2571. }],
  2572. 3: [function(e, t, n) {
  2573. "use strict";
  2574. var r = e("./stream/GenericWorker");
  2575. n.STORE = {
  2576. magic: "\0\0",
  2577. compressWorker: function(e) {
  2578. return new r("STORE compression")
  2579. },
  2580. uncompressWorker: function() {
  2581. return new r("STORE decompression")
  2582. }
  2583. },
  2584. n.DEFLATE = e("./flate")
  2585. }
  2586. , {
  2587. "./flate": 7,
  2588. "./stream/GenericWorker": 28
  2589. }],
  2590. 4: [function(e, t, n) {
  2591. "use strict";
  2592. var r = e("./utils")
  2593. , i = function() {
  2594. for (var e, t = [], n = 0; n < 256; n++) {
  2595. e = n;
  2596. for (var r = 0; r < 8; r++)
  2597. e = 1 & e ? 3988292384 ^ e >>> 1 : e >>> 1;
  2598. t[n] = e
  2599. }
  2600. return t
  2601. }();
  2602. t.exports = function(e, t) {
  2603. return void 0 !== e && e.length ? "string" !== r.getTypeOf(e) ? function(e, t, n, r) {
  2604. var o = i
  2605. , a = 0 + n;
  2606. e ^= -1;
  2607. for (var s = 0; s < a; s++)
  2608. e = e >>> 8 ^ o[255 & (e ^ t[s])];
  2609. return -1 ^ e
  2610. }(0 | t, e, e.length) : function(e, t, n, r) {
  2611. var o = i
  2612. , a = 0 + n;
  2613. e ^= -1;
  2614. for (var s = 0; s < a; s++)
  2615. e = e >>> 8 ^ o[255 & (e ^ t.charCodeAt(s))];
  2616. return -1 ^ e
  2617. }(0 | t, e, e.length) : 0
  2618. }
  2619. }
  2620. , {
  2621. "./utils": 32
  2622. }],
  2623. 5: [function(e, t, n) {
  2624. "use strict";
  2625. n.base64 = !1,
  2626. n.binary = !1,
  2627. n.dir = !1,
  2628. n.createFolders = !0,
  2629. n.date = null,
  2630. n.compression = null,
  2631. n.compressionOptions = null,
  2632. n.comment = null,
  2633. n.unixPermissions = null,
  2634. n.dosPermissions = null
  2635. }
  2636. , {}],
  2637. 6: [function(e, t, n) {
  2638. "use strict";
  2639. var r;
  2640. r = "undefined" != typeof Promise ? Promise : e("lie"),
  2641. t.exports = {
  2642. Promise: r
  2643. }
  2644. }
  2645. , {
  2646. lie: 37
  2647. }],
  2648. 7: [function(e, t, n) {
  2649. "use strict";
  2650. var r = "undefined" != typeof Uint8Array && "undefined" != typeof Uint16Array && "undefined" != typeof Uint32Array
  2651. , i = e("pako")
  2652. , o = e("./utils")
  2653. , a = e("./stream/GenericWorker")
  2654. , s = r ? "uint8array" : "array";
  2655. function l(e, t) {
  2656. a.call(this, "FlateWorker/" + e),
  2657. this._pako = null,
  2658. this._pakoAction = e,
  2659. this._pakoOptions = t,
  2660. this.meta = {}
  2661. }
  2662. n.magic = "\b\0",
  2663. o.inherits(l, a),
  2664. l.prototype.processChunk = function(e) {
  2665. this.meta = e.meta,
  2666. null === this._pako && this._createPako(),
  2667. this._pako.push(o.transformTo(s, e.data), !1)
  2668. }
  2669. ,
  2670. l.prototype.flush = function() {
  2671. a.prototype.flush.call(this),
  2672. null === this._pako && this._createPako(),
  2673. this._pako.push([], !0)
  2674. }
  2675. ,
  2676. l.prototype.cleanUp = function() {
  2677. a.prototype.cleanUp.call(this),
  2678. this._pako = null
  2679. }
  2680. ,
  2681. l.prototype._createPako = function() {
  2682. this._pako = new i[this._pakoAction]({
  2683. raw: !0,
  2684. level: this._pakoOptions.level || -1
  2685. });
  2686. var e = this;
  2687. this._pako.onData = function(t) {
  2688. e.push({
  2689. data: t,
  2690. meta: e.meta
  2691. })
  2692. }
  2693. }
  2694. ,
  2695. n.compressWorker = function(e) {
  2696. return new l("Deflate",e)
  2697. }
  2698. ,
  2699. n.uncompressWorker = function() {
  2700. return new l("Inflate",{})
  2701. }
  2702. }
  2703. , {
  2704. "./stream/GenericWorker": 28,
  2705. "./utils": 32,
  2706. pako: 38
  2707. }],
  2708. 8: [function(e, t, n) {
  2709. "use strict";
  2710. function r(e, t) {
  2711. var n, r = "";
  2712. for (n = 0; n < t; n++)
  2713. r += String.fromCharCode(255 & e),
  2714. e >>>= 8;
  2715. return r
  2716. }
  2717. function i(e, t, n, i, a, c) {
  2718. var d, f, h = e.file, p = e.compression, g = c !== s.utf8encode, m = o.transformTo("string", c(h.name)), v = o.transformTo("string", s.utf8encode(h.name)), y = h.comment, b = o.transformTo("string", c(y)), _ = o.transformTo("string", s.utf8encode(y)), w = v.length !== h.name.length, S = _.length !== y.length, x = "", k = "", I = "", C = h.dir, M = h.date, T = {
  2719. crc32: 0,
  2720. compressedSize: 0,
  2721. uncompressedSize: 0
  2722. };
  2723. t && !n || (T.crc32 = e.crc32,
  2724. T.compressedSize = e.compressedSize,
  2725. T.uncompressedSize = e.uncompressedSize);
  2726. var A = 0;
  2727. t && (A |= 8),
  2728. g || !w && !S || (A |= 2048);
  2729. var E = 0
  2730. , O = 0;
  2731. C && (E |= 16),
  2732. "UNIX" === a ? (O = 798,
  2733. E |= function(e, t) {
  2734. var n = e;
  2735. return e || (n = t ? 16893 : 33204),
  2736. (65535 & n) << 16
  2737. }(h.unixPermissions, C)) : (O = 20,
  2738. E |= function(e) {
  2739. return 63 & (e || 0)
  2740. }(h.dosPermissions)),
  2741. d = M.getUTCHours(),
  2742. d <<= 6,
  2743. d |= M.getUTCMinutes(),
  2744. d <<= 5,
  2745. d |= M.getUTCSeconds() / 2,
  2746. f = M.getUTCFullYear() - 1980,
  2747. f <<= 4,
  2748. f |= M.getUTCMonth() + 1,
  2749. f <<= 5,
  2750. f |= M.getUTCDate(),
  2751. w && (k = r(1, 1) + r(l(m), 4) + v,
  2752. x += "up" + r(k.length, 2) + k),
  2753. S && (I = r(1, 1) + r(l(b), 4) + _,
  2754. x += "uc" + r(I.length, 2) + I);
  2755. var B = "";
  2756. return B += "\n\0",
  2757. B += r(A, 2),
  2758. B += p.magic,
  2759. B += r(d, 2),
  2760. B += r(f, 2),
  2761. B += r(T.crc32, 4),
  2762. B += r(T.compressedSize, 4),
  2763. B += r(T.uncompressedSize, 4),
  2764. B += r(m.length, 2),
  2765. B += r(x.length, 2),
  2766. {
  2767. fileRecord: u.LOCAL_FILE_HEADER + B + m + x,
  2768. dirRecord: u.CENTRAL_FILE_HEADER + r(O, 2) + B + r(b.length, 2) + "\0\0\0\0" + r(E, 4) + r(i, 4) + m + x + b
  2769. }
  2770. }
  2771. var o = e("../utils")
  2772. , a = e("../stream/GenericWorker")
  2773. , s = e("../utf8")
  2774. , l = e("../crc32")
  2775. , u = e("../signature");
  2776. function c(e, t, n, r) {
  2777. a.call(this, "ZipFileWorker"),
  2778. this.bytesWritten = 0,
  2779. this.zipComment = t,
  2780. this.zipPlatform = n,
  2781. this.encodeFileName = r,
  2782. this.streamFiles = e,
  2783. this.accumulate = !1,
  2784. this.contentBuffer = [],
  2785. this.dirRecords = [],
  2786. this.currentSourceOffset = 0,
  2787. this.entriesCount = 0,
  2788. this.currentFile = null,
  2789. this._sources = []
  2790. }
  2791. o.inherits(c, a),
  2792. c.prototype.push = function(e) {
  2793. var t = e.meta.percent || 0
  2794. , n = this.entriesCount
  2795. , r = this._sources.length;
  2796. this.accumulate ? this.contentBuffer.push(e) : (this.bytesWritten += e.data.length,
  2797. a.prototype.push.call(this, {
  2798. data: e.data,
  2799. meta: {
  2800. currentFile: this.currentFile,
  2801. percent: n ? (t + 100 * (n - r - 1)) / n : 100
  2802. }
  2803. }))
  2804. }
  2805. ,
  2806. c.prototype.openedSource = function(e) {
  2807. this.currentSourceOffset = this.bytesWritten,
  2808. this.currentFile = e.file.name;
  2809. var t = this.streamFiles && !e.file.dir;
  2810. if (t) {
  2811. var n = i(e, t, !1, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
  2812. this.push({
  2813. data: n.fileRecord,
  2814. meta: {
  2815. percent: 0
  2816. }
  2817. })
  2818. } else
  2819. this.accumulate = !0
  2820. }
  2821. ,
  2822. c.prototype.closedSource = function(e) {
  2823. this.accumulate = !1;
  2824. var t = this.streamFiles && !e.file.dir
  2825. , n = i(e, t, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
  2826. if (this.dirRecords.push(n.dirRecord),
  2827. t)
  2828. this.push({
  2829. data: function(e) {
  2830. return u.DATA_DESCRIPTOR + r(e.crc32, 4) + r(e.compressedSize, 4) + r(e.uncompressedSize, 4)
  2831. }(e),
  2832. meta: {
  2833. percent: 100
  2834. }
  2835. });
  2836. else
  2837. for (this.push({
  2838. data: n.fileRecord,
  2839. meta: {
  2840. percent: 0
  2841. }
  2842. }); this.contentBuffer.length; )
  2843. this.push(this.contentBuffer.shift());
  2844. this.currentFile = null
  2845. }
  2846. ,
  2847. c.prototype.flush = function() {
  2848. for (var e = this.bytesWritten, t = 0; t < this.dirRecords.length; t++)
  2849. this.push({
  2850. data: this.dirRecords[t],
  2851. meta: {
  2852. percent: 100
  2853. }
  2854. });
  2855. var n = this.bytesWritten - e
  2856. , i = function(e, t, n, i, a) {
  2857. var s = o.transformTo("string", a(i));
  2858. return u.CENTRAL_DIRECTORY_END + "\0\0\0\0" + r(e, 2) + r(e, 2) + r(t, 4) + r(n, 4) + r(s.length, 2) + s
  2859. }(this.dirRecords.length, n, e, this.zipComment, this.encodeFileName);
  2860. this.push({
  2861. data: i,
  2862. meta: {
  2863. percent: 100
  2864. }
  2865. })
  2866. }
  2867. ,
  2868. c.prototype.prepareNextSource = function() {
  2869. this.previous = this._sources.shift(),
  2870. this.openedSource(this.previous.streamInfo),
  2871. this.isPaused ? this.previous.pause() : this.previous.resume()
  2872. }
  2873. ,
  2874. c.prototype.registerPrevious = function(e) {
  2875. this._sources.push(e);
  2876. var t = this;
  2877. return e.on("data", (function(e) {
  2878. t.processChunk(e)
  2879. }
  2880. )),
  2881. e.on("end", (function() {
  2882. t.closedSource(t.previous.streamInfo),
  2883. t._sources.length ? t.prepareNextSource() : t.end()
  2884. }
  2885. )),
  2886. e.on("error", (function(e) {
  2887. t.error(e)
  2888. }
  2889. )),
  2890. this
  2891. }
  2892. ,
  2893. c.prototype.resume = function() {
  2894. return !!a.prototype.resume.call(this) && (!this.previous && this._sources.length ? (this.prepareNextSource(),
  2895. !0) : this.previous || this._sources.length || this.generatedError ? void 0 : (this.end(),
  2896. !0))
  2897. }
  2898. ,
  2899. c.prototype.error = function(e) {
  2900. var t = this._sources;
  2901. if (!a.prototype.error.call(this, e))
  2902. return !1;
  2903. for (var n = 0; n < t.length; n++)
  2904. try {
  2905. t[n].error(e)
  2906. } catch (e) {}
  2907. return !0
  2908. }
  2909. ,
  2910. c.prototype.lock = function() {
  2911. a.prototype.lock.call(this);
  2912. for (var e = this._sources, t = 0; t < e.length; t++)
  2913. e[t].lock()
  2914. }
  2915. ,
  2916. t.exports = c
  2917. }
  2918. , {
  2919. "../crc32": 4,
  2920. "../signature": 23,
  2921. "../stream/GenericWorker": 28,
  2922. "../utf8": 31,
  2923. "../utils": 32
  2924. }],
  2925. 9: [function(e, t, n) {
  2926. "use strict";
  2927. var r = e("../compressions")
  2928. , i = e("./ZipFileWorker");
  2929. n.generateWorker = function(e, t, n) {
  2930. var o = new i(t.streamFiles,n,t.platform,t.encodeFileName)
  2931. , a = 0;
  2932. try {
  2933. e.forEach((function(e, n) {
  2934. a++;
  2935. var i = function(e, t) {
  2936. var n = e || t
  2937. , i = r[n];
  2938. if (!i)
  2939. throw new Error(n + " is not a valid compression method !");
  2940. return i
  2941. }(n.options.compression, t.compression)
  2942. , s = n.options.compressionOptions || t.compressionOptions || {}
  2943. , l = n.dir
  2944. , u = n.date;
  2945. n._compressWorker(i, s).withStreamInfo("file", {
  2946. name: e,
  2947. dir: l,
  2948. date: u,
  2949. comment: n.comment || "",
  2950. unixPermissions: n.unixPermissions,
  2951. dosPermissions: n.dosPermissions
  2952. }).pipe(o)
  2953. }
  2954. )),
  2955. o.entriesCount = a
  2956. } catch (e) {
  2957. o.error(e)
  2958. }
  2959. return o
  2960. }
  2961. }
  2962. , {
  2963. "../compressions": 3,
  2964. "./ZipFileWorker": 8
  2965. }],
  2966. 10: [function(e, t, n) {
  2967. "use strict";
  2968. function r() {
  2969. if (!(this instanceof r))
  2970. return new r;
  2971. if (arguments.length)
  2972. throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");
  2973. this.files = Object.create(null),
  2974. this.comment = null,
  2975. this.root = "",
  2976. this.clone = function() {
  2977. var e = new r;
  2978. for (var t in this)
  2979. "function" != typeof this[t] && (e[t] = this[t]);
  2980. return e
  2981. }
  2982. }
  2983. (r.prototype = e("./object")).loadAsync = e("./load"),
  2984. r.support = e("./support"),
  2985. r.defaults = e("./defaults"),
  2986. r.version = "3.7.1",
  2987. r.loadAsync = function(e, t) {
  2988. return (new r).loadAsync(e, t)
  2989. }
  2990. ,
  2991. r.external = e("./external"),
  2992. t.exports = r
  2993. }
  2994. , {
  2995. "./defaults": 5,
  2996. "./external": 6,
  2997. "./load": 11,
  2998. "./object": 15,
  2999. "./support": 30
  3000. }],
  3001. 11: [function(e, t, n) {
  3002. "use strict";
  3003. var r = e("./utils")
  3004. , i = e("./external")
  3005. , o = e("./utf8")
  3006. , a = e("./zipEntries")
  3007. , s = e("./stream/Crc32Probe")
  3008. , l = e("./nodejsUtils");
  3009. function u(e) {
  3010. return new i.Promise((function(t, n) {
  3011. var r = e.decompressed.getContentWorker().pipe(new s);
  3012. r.on("error", (function(e) {
  3013. n(e)
  3014. }
  3015. )).on("end", (function() {
  3016. r.streamInfo.crc32 !== e.decompressed.crc32 ? n(new Error("Corrupted zip : CRC32 mismatch")) : t()
  3017. }
  3018. )).resume()
  3019. }
  3020. ))
  3021. }
  3022. t.exports = function(e, t) {
  3023. var n = this;
  3024. return t = r.extend(t || {}, {
  3025. base64: !1,
  3026. checkCRC32: !1,
  3027. optimizedBinaryString: !1,
  3028. createFolders: !1,
  3029. decodeFileName: o.utf8decode
  3030. }),
  3031. l.isNode && l.isStream(e) ? i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : r.prepareContent("the loaded zip file", e, !0, t.optimizedBinaryString, t.base64).then((function(e) {
  3032. var n = new a(t);
  3033. return n.load(e),
  3034. n
  3035. }
  3036. )).then((function(e) {
  3037. var n = [i.Promise.resolve(e)]
  3038. , r = e.files;
  3039. if (t.checkCRC32)
  3040. for (var o = 0; o < r.length; o++)
  3041. n.push(u(r[o]));
  3042. return i.Promise.all(n)
  3043. }
  3044. )).then((function(e) {
  3045. for (var r = e.shift(), i = r.files, o = 0; o < i.length; o++) {
  3046. var a = i[o];
  3047. n.file(a.fileNameStr, a.decompressed, {
  3048. binary: !0,
  3049. optimizedBinaryString: !0,
  3050. date: a.date,
  3051. dir: a.dir,
  3052. comment: a.fileCommentStr.length ? a.fileCommentStr : null,
  3053. unixPermissions: a.unixPermissions,
  3054. dosPermissions: a.dosPermissions,
  3055. createFolders: t.createFolders
  3056. })
  3057. }
  3058. return r.zipComment.length && (n.comment = r.zipComment),
  3059. n
  3060. }
  3061. ))
  3062. }
  3063. }
  3064. , {
  3065. "./external": 6,
  3066. "./nodejsUtils": 14,
  3067. "./stream/Crc32Probe": 25,
  3068. "./utf8": 31,
  3069. "./utils": 32,
  3070. "./zipEntries": 33
  3071. }],
  3072. 12: [function(e, t, n) {
  3073. "use strict";
  3074. var r = e("../utils")
  3075. , i = e("../stream/GenericWorker");
  3076. function o(e, t) {
  3077. i.call(this, "Nodejs stream input adapter for " + e),
  3078. this._upstreamEnded = !1,
  3079. this._bindStream(t)
  3080. }
  3081. r.inherits(o, i),
  3082. o.prototype._bindStream = function(e) {
  3083. var t = this;
  3084. (this._stream = e).pause(),
  3085. e.on("data", (function(e) {
  3086. t.push({
  3087. data: e,
  3088. meta: {
  3089. percent: 0
  3090. }
  3091. })
  3092. }
  3093. )).on("error", (function(e) {
  3094. t.isPaused ? this.generatedError = e : t.error(e)
  3095. }
  3096. )).on("end", (function() {
  3097. t.isPaused ? t._upstreamEnded = !0 : t.end()
  3098. }
  3099. ))
  3100. }
  3101. ,
  3102. o.prototype.pause = function() {
  3103. return !!i.prototype.pause.call(this) && (this._stream.pause(),
  3104. !0)
  3105. }
  3106. ,
  3107. o.prototype.resume = function() {
  3108. return !!i.prototype.resume.call(this) && (this._upstreamEnded ? this.end() : this._stream.resume(),
  3109. !0)
  3110. }
  3111. ,
  3112. t.exports = o
  3113. }
  3114. , {
  3115. "../stream/GenericWorker": 28,
  3116. "../utils": 32
  3117. }],
  3118. 13: [function(e, t, n) {
  3119. "use strict";
  3120. var r = e("readable-stream").Readable;
  3121. function i(e, t, n) {
  3122. r.call(this, t),
  3123. this._helper = e;
  3124. var i = this;
  3125. e.on("data", (function(e, t) {
  3126. i.push(e) || i._helper.pause(),
  3127. n && n(t)
  3128. }
  3129. )).on("error", (function(e) {
  3130. i.emit("error", e)
  3131. }
  3132. )).on("end", (function() {
  3133. i.push(null)
  3134. }
  3135. ))
  3136. }
  3137. e("../utils").inherits(i, r),
  3138. i.prototype._read = function() {
  3139. this._helper.resume()
  3140. }
  3141. ,
  3142. t.exports = i
  3143. }
  3144. , {
  3145. "../utils": 32,
  3146. "readable-stream": 16
  3147. }],
  3148. 14: [function(e, n, r) {
  3149. "use strict";
  3150. n.exports = {
  3151. isNode: void 0 !== t,
  3152. newBufferFrom: function(e, n) {
  3153. if (t.from && t.from !== Uint8Array.from)
  3154. return t.from(e, n);
  3155. if ("number" == typeof e)
  3156. throw new Error('The "data" argument must not be a number');
  3157. return new t(e,n)
  3158. },
  3159. allocBuffer: function(e) {
  3160. if (t.alloc)
  3161. return t.alloc(e);
  3162. var n = new t(e);
  3163. return n.fill(0),
  3164. n
  3165. },
  3166. isBuffer: function(e) {
  3167. return t.isBuffer(e)
  3168. },
  3169. isStream: function(e) {
  3170. return e && "function" == typeof e.on && "function" == typeof e.pause && "function" == typeof e.resume
  3171. }
  3172. }
  3173. }
  3174. , {}],
  3175. 15: [function(e, t, n) {
  3176. "use strict";
  3177. function r(e, t, n) {
  3178. var r, i = o.getTypeOf(t), s = o.extend(n || {}, l);
  3179. s.date = s.date || new Date,
  3180. null !== s.compression && (s.compression = s.compression.toUpperCase()),
  3181. "string" == typeof s.unixPermissions && (s.unixPermissions = parseInt(s.unixPermissions, 8)),
  3182. s.unixPermissions && 16384 & s.unixPermissions && (s.dir = !0),
  3183. s.dosPermissions && 16 & s.dosPermissions && (s.dir = !0),
  3184. s.dir && (e = g(e)),
  3185. s.createFolders && (r = p(e)) && m.call(this, r, !0);
  3186. var d, v = "string" === i && !1 === s.binary && !1 === s.base64;
  3187. n && void 0 !== n.binary || (s.binary = !v),
  3188. (t instanceof u && 0 === t.uncompressedSize || s.dir || !t || 0 === t.length) && (s.base64 = !1,
  3189. s.binary = !0,
  3190. t = "",
  3191. s.compression = "STORE",
  3192. i = "string"),
  3193. d = t instanceof u || t instanceof a ? t : f.isNode && f.isStream(t) ? new h(e,t) : o.prepareContent(e, t, s.binary, s.optimizedBinaryString, s.base64);
  3194. var y = new c(e,d,s);
  3195. this.files[e] = y
  3196. }
  3197. var i = e("./utf8")
  3198. , o = e("./utils")
  3199. , a = e("./stream/GenericWorker")
  3200. , s = e("./stream/StreamHelper")
  3201. , l = e("./defaults")
  3202. , u = e("./compressedObject")
  3203. , c = e("./zipObject")
  3204. , d = e("./generate")
  3205. , f = e("./nodejsUtils")
  3206. , h = e("./nodejs/NodejsStreamInputAdapter")
  3207. , p = function(e) {
  3208. "/" === e.slice(-1) && (e = e.substring(0, e.length - 1));
  3209. var t = e.lastIndexOf("/");
  3210. return 0 < t ? e.substring(0, t) : ""
  3211. }
  3212. , g = function(e) {
  3213. return "/" !== e.slice(-1) && (e += "/"),
  3214. e
  3215. }
  3216. , m = function(e, t) {
  3217. return t = void 0 !== t ? t : l.createFolders,
  3218. e = g(e),
  3219. this.files[e] || r.call(this, e, null, {
  3220. dir: !0,
  3221. createFolders: t
  3222. }),
  3223. this.files[e]
  3224. };
  3225. function v(e) {
  3226. return "[object RegExp]" === Object.prototype.toString.call(e)
  3227. }
  3228. var y = {
  3229. load: function() {
  3230. throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")
  3231. },
  3232. forEach: function(e) {
  3233. var t, n, r;
  3234. for (t in this.files)
  3235. r = this.files[t],
  3236. (n = t.slice(this.root.length, t.length)) && t.slice(0, this.root.length) === this.root && e(n, r)
  3237. },
  3238. filter: function(e) {
  3239. var t = [];
  3240. return this.forEach((function(n, r) {
  3241. e(n, r) && t.push(r)
  3242. }
  3243. )),
  3244. t
  3245. },
  3246. file: function(e, t, n) {
  3247. if (1 !== arguments.length)
  3248. return e = this.root + e,
  3249. r.call(this, e, t, n),
  3250. this;
  3251. if (v(e)) {
  3252. var i = e;
  3253. return this.filter((function(e, t) {
  3254. return !t.dir && i.test(e)
  3255. }
  3256. ))
  3257. }
  3258. var o = this.files[this.root + e];
  3259. return o && !o.dir ? o : null
  3260. },
  3261. folder: function(e) {
  3262. if (!e)
  3263. return this;
  3264. if (v(e))
  3265. return this.filter((function(t, n) {
  3266. return n.dir && e.test(t)
  3267. }
  3268. ));
  3269. var t = this.root + e
  3270. , n = m.call(this, t)
  3271. , r = this.clone();
  3272. return r.root = n.name,
  3273. r
  3274. },
  3275. remove: function(e) {
  3276. e = this.root + e;
  3277. var t = this.files[e];
  3278. if (t || ("/" !== e.slice(-1) && (e += "/"),
  3279. t = this.files[e]),
  3280. t && !t.dir)
  3281. delete this.files[e];
  3282. else
  3283. for (var n = this.filter((function(t, n) {
  3284. return n.name.slice(0, e.length) === e
  3285. }
  3286. )), r = 0; r < n.length; r++)
  3287. delete this.files[n[r].name];
  3288. return this
  3289. },
  3290. generate: function(e) {
  3291. throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")
  3292. },
  3293. generateInternalStream: function(e) {
  3294. var t, n = {};
  3295. try {
  3296. if ((n = o.extend(e || {}, {
  3297. streamFiles: !1,
  3298. compression: "STORE",
  3299. compressionOptions: null,
  3300. type: "",
  3301. platform: "DOS",
  3302. comment: null,
  3303. mimeType: "application/zip",
  3304. encodeFileName: i.utf8encode
  3305. })).type = n.type.toLowerCase(),
  3306. n.compression = n.compression.toUpperCase(),
  3307. "binarystring" === n.type && (n.type = "string"),
  3308. !n.type)
  3309. throw new Error("No output type specified.");
  3310. o.checkSupport(n.type),
  3311. "darwin" !== n.platform && "freebsd" !== n.platform && "linux" !== n.platform && "sunos" !== n.platform || (n.platform = "UNIX"),
  3312. "win32" === n.platform && (n.platform = "DOS");
  3313. var r = n.comment || this.comment || "";
  3314. t = d.generateWorker(this, n, r)
  3315. } catch (e) {
  3316. (t = new a("error")).error(e)
  3317. }
  3318. return new s(t,n.type || "string",n.mimeType)
  3319. },
  3320. generateAsync: function(e, t) {
  3321. return this.generateInternalStream(e).accumulate(t)
  3322. },
  3323. generateNodeStream: function(e, t) {
  3324. return (e = e || {}).type || (e.type = "nodebuffer"),
  3325. this.generateInternalStream(e).toNodejsStream(t)
  3326. }
  3327. };
  3328. t.exports = y
  3329. }
  3330. , {
  3331. "./compressedObject": 2,
  3332. "./defaults": 5,
  3333. "./generate": 9,
  3334. "./nodejs/NodejsStreamInputAdapter": 12,
  3335. "./nodejsUtils": 14,
  3336. "./stream/GenericWorker": 28,
  3337. "./stream/StreamHelper": 29,
  3338. "./utf8": 31,
  3339. "./utils": 32,
  3340. "./zipObject": 35
  3341. }],
  3342. 16: [function(e, t, n) {
  3343. t.exports = e("stream")
  3344. }
  3345. , {
  3346. stream: void 0
  3347. }],
  3348. 17: [function(e, t, n) {
  3349. "use strict";
  3350. var r = e("./DataReader");
  3351. function i(e) {
  3352. r.call(this, e);
  3353. for (var t = 0; t < this.data.length; t++)
  3354. e[t] = 255 & e[t]
  3355. }
  3356. e("../utils").inherits(i, r),
  3357. i.prototype.byteAt = function(e) {
  3358. return this.data[this.zero + e]
  3359. }
  3360. ,
  3361. i.prototype.lastIndexOfSignature = function(e) {
  3362. for (var t = e.charCodeAt(0), n = e.charCodeAt(1), r = e.charCodeAt(2), i = e.charCodeAt(3), o = this.length - 4; 0 <= o; --o)
  3363. if (this.data[o] === t && this.data[o + 1] === n && this.data[o + 2] === r && this.data[o + 3] === i)
  3364. return o - this.zero;
  3365. return -1
  3366. }
  3367. ,
  3368. i.prototype.readAndCheckSignature = function(e) {
  3369. var t = e.charCodeAt(0)
  3370. , n = e.charCodeAt(1)
  3371. , r = e.charCodeAt(2)
  3372. , i = e.charCodeAt(3)
  3373. , o = this.readData(4);
  3374. return t === o[0] && n === o[1] && r === o[2] && i === o[3]
  3375. }
  3376. ,
  3377. i.prototype.readData = function(e) {
  3378. if (this.checkOffset(e),
  3379. 0 === e)
  3380. return [];
  3381. var t = this.data.slice(this.zero + this.index, this.zero + this.index + e);
  3382. return this.index += e,
  3383. t
  3384. }
  3385. ,
  3386. t.exports = i
  3387. }
  3388. , {
  3389. "../utils": 32,
  3390. "./DataReader": 18
  3391. }],
  3392. 18: [function(e, t, n) {
  3393. "use strict";
  3394. var r = e("../utils");
  3395. function i(e) {
  3396. this.data = e,
  3397. this.length = e.length,
  3398. this.index = 0,
  3399. this.zero = 0
  3400. }
  3401. i.prototype = {
  3402. checkOffset: function(e) {
  3403. this.checkIndex(this.index + e)
  3404. },
  3405. checkIndex: function(e) {
  3406. if (this.length < this.zero + e || e < 0)
  3407. throw new Error("End of data reached (data length = " + this.length + ", asked index = " + e + "). Corrupted zip ?")
  3408. },
  3409. setIndex: function(e) {
  3410. this.checkIndex(e),
  3411. this.index = e
  3412. },
  3413. skip: function(e) {
  3414. this.setIndex(this.index + e)
  3415. },
  3416. byteAt: function(e) {},
  3417. readInt: function(e) {
  3418. var t, n = 0;
  3419. for (this.checkOffset(e),
  3420. t = this.index + e - 1; t >= this.index; t--)
  3421. n = (n << 8) + this.byteAt(t);
  3422. return this.index += e,
  3423. n
  3424. },
  3425. readString: function(e) {
  3426. return r.transformTo("string", this.readData(e))
  3427. },
  3428. readData: function(e) {},
  3429. lastIndexOfSignature: function(e) {},
  3430. readAndCheckSignature: function(e) {},
  3431. readDate: function() {
  3432. var e = this.readInt(4);
  3433. return new Date(Date.UTC(1980 + (e >> 25 & 127), (e >> 21 & 15) - 1, e >> 16 & 31, e >> 11 & 31, e >> 5 & 63, (31 & e) << 1))
  3434. }
  3435. },
  3436. t.exports = i
  3437. }
  3438. , {
  3439. "../utils": 32
  3440. }],
  3441. 19: [function(e, t, n) {
  3442. "use strict";
  3443. var r = e("./Uint8ArrayReader");
  3444. function i(e) {
  3445. r.call(this, e)
  3446. }
  3447. e("../utils").inherits(i, r),
  3448. i.prototype.readData = function(e) {
  3449. this.checkOffset(e);
  3450. var t = this.data.slice(this.zero + this.index, this.zero + this.index + e);
  3451. return this.index += e,
  3452. t
  3453. }
  3454. ,
  3455. t.exports = i
  3456. }
  3457. , {
  3458. "../utils": 32,
  3459. "./Uint8ArrayReader": 21
  3460. }],
  3461. 20: [function(e, t, n) {
  3462. "use strict";
  3463. var r = e("./DataReader");
  3464. function i(e) {
  3465. r.call(this, e)
  3466. }
  3467. e("../utils").inherits(i, r),
  3468. i.prototype.byteAt = function(e) {
  3469. return this.data.charCodeAt(this.zero + e)
  3470. }
  3471. ,
  3472. i.prototype.lastIndexOfSignature = function(e) {
  3473. return this.data.lastIndexOf(e) - this.zero
  3474. }
  3475. ,
  3476. i.prototype.readAndCheckSignature = function(e) {
  3477. return e === this.readData(4)
  3478. }
  3479. ,
  3480. i.prototype.readData = function(e) {
  3481. this.checkOffset(e);
  3482. var t = this.data.slice(this.zero + this.index, this.zero + this.index + e);
  3483. return this.index += e,
  3484. t
  3485. }
  3486. ,
  3487. t.exports = i
  3488. }
  3489. , {
  3490. "../utils": 32,
  3491. "./DataReader": 18
  3492. }],
  3493. 21: [function(e, t, n) {
  3494. "use strict";
  3495. var r = e("./ArrayReader");
  3496. function i(e) {
  3497. r.call(this, e)
  3498. }
  3499. e("../utils").inherits(i, r),
  3500. i.prototype.readData = function(e) {
  3501. if (this.checkOffset(e),
  3502. 0 === e)
  3503. return new Uint8Array(0);
  3504. var t = this.data.subarray(this.zero + this.index, this.zero + this.index + e);
  3505. return this.index += e,
  3506. t
  3507. }
  3508. ,
  3509. t.exports = i
  3510. }
  3511. , {
  3512. "../utils": 32,
  3513. "./ArrayReader": 17
  3514. }],
  3515. 22: [function(e, t, n) {
  3516. "use strict";
  3517. var r = e("../utils")
  3518. , i = e("../support")
  3519. , o = e("./ArrayReader")
  3520. , a = e("./StringReader")
  3521. , s = e("./NodeBufferReader")
  3522. , l = e("./Uint8ArrayReader");
  3523. t.exports = function(e) {
  3524. var t = r.getTypeOf(e);
  3525. return r.checkSupport(t),
  3526. "string" !== t || i.uint8array ? "nodebuffer" === t ? new s(e) : i.uint8array ? new l(r.transformTo("uint8array", e)) : new o(r.transformTo("array", e)) : new a(e)
  3527. }
  3528. }
  3529. , {
  3530. "../support": 30,
  3531. "../utils": 32,
  3532. "./ArrayReader": 17,
  3533. "./NodeBufferReader": 19,
  3534. "./StringReader": 20,
  3535. "./Uint8ArrayReader": 21
  3536. }],
  3537. 23: [function(e, t, n) {
  3538. "use strict";
  3539. n.LOCAL_FILE_HEADER = "PK",
  3540. n.CENTRAL_FILE_HEADER = "PK",
  3541. n.CENTRAL_DIRECTORY_END = "PK",
  3542. n.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK",
  3543. n.ZIP64_CENTRAL_DIRECTORY_END = "PK",
  3544. n.DATA_DESCRIPTOR = "PK\b"
  3545. }
  3546. , {}],
  3547. 24: [function(e, t, n) {
  3548. "use strict";
  3549. var r = e("./GenericWorker")
  3550. , i = e("../utils");
  3551. function o(e) {
  3552. r.call(this, "ConvertWorker to " + e),
  3553. this.destType = e
  3554. }
  3555. i.inherits(o, r),
  3556. o.prototype.processChunk = function(e) {
  3557. this.push({
  3558. data: i.transformTo(this.destType, e.data),
  3559. meta: e.meta
  3560. })
  3561. }
  3562. ,
  3563. t.exports = o
  3564. }
  3565. , {
  3566. "../utils": 32,
  3567. "./GenericWorker": 28
  3568. }],
  3569. 25: [function(e, t, n) {
  3570. "use strict";
  3571. var r = e("./GenericWorker")
  3572. , i = e("../crc32");
  3573. function o() {
  3574. r.call(this, "Crc32Probe"),
  3575. this.withStreamInfo("crc32", 0)
  3576. }
  3577. e("../utils").inherits(o, r),
  3578. o.prototype.processChunk = function(e) {
  3579. this.streamInfo.crc32 = i(e.data, this.streamInfo.crc32 || 0),
  3580. this.push(e)
  3581. }
  3582. ,
  3583. t.exports = o
  3584. }
  3585. , {
  3586. "../crc32": 4,
  3587. "../utils": 32,
  3588. "./GenericWorker": 28
  3589. }],
  3590. 26: [function(e, t, n) {
  3591. "use strict";
  3592. var r = e("../utils")
  3593. , i = e("./GenericWorker");
  3594. function o(e) {
  3595. i.call(this, "DataLengthProbe for " + e),
  3596. this.propName = e,
  3597. this.withStreamInfo(e, 0)
  3598. }
  3599. r.inherits(o, i),
  3600. o.prototype.processChunk = function(e) {
  3601. if (e) {
  3602. var t = this.streamInfo[this.propName] || 0;
  3603. this.streamInfo[this.propName] = t + e.data.length
  3604. }
  3605. i.prototype.processChunk.call(this, e)
  3606. }
  3607. ,
  3608. t.exports = o
  3609. }
  3610. , {
  3611. "../utils": 32,
  3612. "./GenericWorker": 28
  3613. }],
  3614. 27: [function(e, t, n) {
  3615. "use strict";
  3616. var r = e("../utils")
  3617. , i = e("./GenericWorker");
  3618. function o(e) {
  3619. i.call(this, "DataWorker");
  3620. var t = this;
  3621. this.dataIsReady = !1,
  3622. this.index = 0,
  3623. this.max = 0,
  3624. this.data = null,
  3625. this.type = "",
  3626. this._tickScheduled = !1,
  3627. e.then((function(e) {
  3628. t.dataIsReady = !0,
  3629. t.data = e,
  3630. t.max = e && e.length || 0,
  3631. t.type = r.getTypeOf(e),
  3632. t.isPaused || t._tickAndRepeat()
  3633. }
  3634. ), (function(e) {
  3635. t.error(e)
  3636. }
  3637. ))
  3638. }
  3639. r.inherits(o, i),
  3640. o.prototype.cleanUp = function() {
  3641. i.prototype.cleanUp.call(this),
  3642. this.data = null
  3643. }
  3644. ,
  3645. o.prototype.resume = function() {
  3646. return !!i.prototype.resume.call(this) && (!this._tickScheduled && this.dataIsReady && (this._tickScheduled = !0,
  3647. r.delay(this._tickAndRepeat, [], this)),
  3648. !0)
  3649. }
  3650. ,
  3651. o.prototype._tickAndRepeat = function() {
  3652. this._tickScheduled = !1,
  3653. this.isPaused || this.isFinished || (this._tick(),
  3654. this.isFinished || (r.delay(this._tickAndRepeat, [], this),
  3655. this._tickScheduled = !0))
  3656. }
  3657. ,
  3658. o.prototype._tick = function() {
  3659. if (this.isPaused || this.isFinished)
  3660. return !1;
  3661. var e = null
  3662. , t = Math.min(this.max, this.index + 16384);
  3663. if (this.index >= this.max)
  3664. return this.end();
  3665. switch (this.type) {
  3666. case "string":
  3667. e = this.data.substring(this.index, t);
  3668. break;
  3669. case "uint8array":
  3670. e = this.data.subarray(this.index, t);
  3671. break;
  3672. case "array":
  3673. case "nodebuffer":
  3674. e = this.data.slice(this.index, t)
  3675. }
  3676. return this.index = t,
  3677. this.push({
  3678. data: e,
  3679. meta: {
  3680. percent: this.max ? this.index / this.max * 100 : 0
  3681. }
  3682. })
  3683. }
  3684. ,
  3685. t.exports = o
  3686. }
  3687. , {
  3688. "../utils": 32,
  3689. "./GenericWorker": 28
  3690. }],
  3691. 28: [function(e, t, n) {
  3692. "use strict";
  3693. function r(e) {
  3694. this.name = e || "default",
  3695. this.streamInfo = {},
  3696. this.generatedError = null,
  3697. this.extraStreamInfo = {},
  3698. this.isPaused = !0,
  3699. this.isFinished = !1,
  3700. this.isLocked = !1,
  3701. this._listeners = {
  3702. data: [],
  3703. end: [],
  3704. error: []
  3705. },
  3706. this.previous = null
  3707. }
  3708. r.prototype = {
  3709. push: function(e) {
  3710. this.emit("data", e)
  3711. },
  3712. end: function() {
  3713. if (this.isFinished)
  3714. return !1;
  3715. this.flush();
  3716. try {
  3717. this.emit("end"),
  3718. this.cleanUp(),
  3719. this.isFinished = !0
  3720. } catch (e) {
  3721. this.emit("error", e)
  3722. }
  3723. return !0
  3724. },
  3725. error: function(e) {
  3726. return !this.isFinished && (this.isPaused ? this.generatedError = e : (this.isFinished = !0,
  3727. this.emit("error", e),
  3728. this.previous && this.previous.error(e),
  3729. this.cleanUp()),
  3730. !0)
  3731. },
  3732. on: function(e, t) {
  3733. return this._listeners[e].push(t),
  3734. this
  3735. },
  3736. cleanUp: function() {
  3737. this.streamInfo = this.generatedError = this.extraStreamInfo = null,
  3738. this._listeners = []
  3739. },
  3740. emit: function(e, t) {
  3741. if (this._listeners[e])
  3742. for (var n = 0; n < this._listeners[e].length; n++)
  3743. this._listeners[e][n].call(this, t)
  3744. },
  3745. pipe: function(e) {
  3746. return e.registerPrevious(this)
  3747. },
  3748. registerPrevious: function(e) {
  3749. if (this.isLocked)
  3750. throw new Error("The stream '" + this + "' has already been used.");
  3751. this.streamInfo = e.streamInfo,
  3752. this.mergeStreamInfo(),
  3753. this.previous = e;
  3754. var t = this;
  3755. return e.on("data", (function(e) {
  3756. t.processChunk(e)
  3757. }
  3758. )),
  3759. e.on("end", (function() {
  3760. t.end()
  3761. }
  3762. )),
  3763. e.on("error", (function(e) {
  3764. t.error(e)
  3765. }
  3766. )),
  3767. this
  3768. },
  3769. pause: function() {
  3770. return !this.isPaused && !this.isFinished && (this.isPaused = !0,
  3771. this.previous && this.previous.pause(),
  3772. !0)
  3773. },
  3774. resume: function() {
  3775. if (!this.isPaused || this.isFinished)
  3776. return !1;
  3777. var e = this.isPaused = !1;
  3778. return this.generatedError && (this.error(this.generatedError),
  3779. e = !0),
  3780. this.previous && this.previous.resume(),
  3781. !e
  3782. },
  3783. flush: function() {},
  3784. processChunk: function(e) {
  3785. this.push(e)
  3786. },
  3787. withStreamInfo: function(e, t) {
  3788. return this.extraStreamInfo[e] = t,
  3789. this.mergeStreamInfo(),
  3790. this
  3791. },
  3792. mergeStreamInfo: function() {
  3793. for (var e in this.extraStreamInfo)
  3794. this.extraStreamInfo.hasOwnProperty(e) && (this.streamInfo[e] = this.extraStreamInfo[e])
  3795. },
  3796. lock: function() {
  3797. if (this.isLocked)
  3798. throw new Error("The stream '" + this + "' has already been used.");
  3799. this.isLocked = !0,
  3800. this.previous && this.previous.lock()
  3801. },
  3802. toString: function() {
  3803. var e = "Worker " + this.name;
  3804. return this.previous ? this.previous + " -> " + e : e
  3805. }
  3806. },
  3807. t.exports = r
  3808. }
  3809. , {}],
  3810. 29: [function(e, n, r) {
  3811. "use strict";
  3812. var i = e("../utils")
  3813. , o = e("./ConvertWorker")
  3814. , a = e("./GenericWorker")
  3815. , s = e("../base64")
  3816. , l = e("../support")
  3817. , u = e("../external")
  3818. , c = null;
  3819. if (l.nodestream)
  3820. try {
  3821. c = e("../nodejs/NodejsStreamOutputAdapter")
  3822. } catch (e) {}
  3823. function d(e, t, n) {
  3824. var r = t;
  3825. switch (t) {
  3826. case "blob":
  3827. case "arraybuffer":
  3828. r = "uint8array";
  3829. break;
  3830. case "base64":
  3831. r = "string"
  3832. }
  3833. try {
  3834. this._internalType = r,
  3835. this._outputType = t,
  3836. this._mimeType = n,
  3837. i.checkSupport(r),
  3838. this._worker = e.pipe(new o(r)),
  3839. e.lock()
  3840. } catch (e) {
  3841. this._worker = new a("error"),
  3842. this._worker.error(e)
  3843. }
  3844. }
  3845. d.prototype = {
  3846. accumulate: function(e) {
  3847. return function(e, n) {
  3848. return new u.Promise((function(r, o) {
  3849. var a = []
  3850. , l = e._internalType
  3851. , u = e._outputType
  3852. , c = e._mimeType;
  3853. e.on("data", (function(e, t) {
  3854. a.push(e),
  3855. n && n(t)
  3856. }
  3857. )).on("error", (function(e) {
  3858. a = [],
  3859. o(e)
  3860. }
  3861. )).on("end", (function() {
  3862. try {
  3863. var e = function(e, t, n) {
  3864. switch (e) {
  3865. case "blob":
  3866. return i.newBlob(i.transformTo("arraybuffer", t), n);
  3867. case "base64":
  3868. return s.encode(t);
  3869. default:
  3870. return i.transformTo(e, t)
  3871. }
  3872. }(u, function(e, n) {
  3873. var r, i = 0, o = null, a = 0;
  3874. for (r = 0; r < n.length; r++)
  3875. a += n[r].length;
  3876. switch (e) {
  3877. case "string":
  3878. return n.join("");
  3879. case "array":
  3880. return Array.prototype.concat.apply([], n);
  3881. case "uint8array":
  3882. for (o = new Uint8Array(a),
  3883. r = 0; r < n.length; r++)
  3884. o.set(n[r], i),
  3885. i += n[r].length;
  3886. return o;
  3887. case "nodebuffer":
  3888. return t.concat(n);
  3889. default:
  3890. throw new Error("concat : unsupported type '" + e + "'")
  3891. }
  3892. }(l, a), c);
  3893. r(e)
  3894. } catch (e) {
  3895. o(e)
  3896. }
  3897. a = []
  3898. }
  3899. )).resume()
  3900. }
  3901. ))
  3902. }(this, e)
  3903. },
  3904. on: function(e, t) {
  3905. var n = this;
  3906. return "data" === e ? this._worker.on(e, (function(e) {
  3907. t.call(n, e.data, e.meta)
  3908. }
  3909. )) : this._worker.on(e, (function() {
  3910. i.delay(t, arguments, n)
  3911. }
  3912. )),
  3913. this
  3914. },
  3915. resume: function() {
  3916. return i.delay(this._worker.resume, [], this._worker),
  3917. this
  3918. },
  3919. pause: function() {
  3920. return this._worker.pause(),
  3921. this
  3922. },
  3923. toNodejsStream: function(e) {
  3924. if (i.checkSupport("nodestream"),
  3925. "nodebuffer" !== this._outputType)
  3926. throw new Error(this._outputType + " is not supported by this method");
  3927. return new c(this,{
  3928. objectMode: "nodebuffer" !== this._outputType
  3929. },e)
  3930. }
  3931. },
  3932. n.exports = d
  3933. }
  3934. , {
  3935. "../base64": 1,
  3936. "../external": 6,
  3937. "../nodejs/NodejsStreamOutputAdapter": 13,
  3938. "../support": 30,
  3939. "../utils": 32,
  3940. "./ConvertWorker": 24,
  3941. "./GenericWorker": 28
  3942. }],
  3943. 30: [function(e, n, r) {
  3944. "use strict";
  3945. if (r.base64 = !0,
  3946. r.array = !0,
  3947. r.string = !0,
  3948. r.arraybuffer = "undefined" != typeof ArrayBuffer && "undefined" != typeof Uint8Array,
  3949. r.nodebuffer = void 0 !== t,
  3950. r.uint8array = "undefined" != typeof Uint8Array,
  3951. "undefined" == typeof ArrayBuffer)
  3952. r.blob = !1;
  3953. else {
  3954. var i = new ArrayBuffer(0);
  3955. try {
  3956. r.blob = 0 === new Blob([i],{
  3957. type: "application/zip"
  3958. }).size
  3959. } catch (e) {
  3960. try {
  3961. var o = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder);
  3962. o.append(i),
  3963. r.blob = 0 === o.getBlob("application/zip").size
  3964. } catch (e) {
  3965. r.blob = !1
  3966. }
  3967. }
  3968. }
  3969. try {
  3970. r.nodestream = !!e("readable-stream").Readable
  3971. } catch (e) {
  3972. r.nodestream = !1
  3973. }
  3974. }
  3975. , {
  3976. "readable-stream": 16
  3977. }],
  3978. 31: [function(e, t, n) {
  3979. "use strict";
  3980. for (var r = e("./utils"), i = e("./support"), o = e("./nodejsUtils"), a = e("./stream/GenericWorker"), s = new Array(256), l = 0; l < 256; l++)
  3981. s[l] = 252 <= l ? 6 : 248 <= l ? 5 : 240 <= l ? 4 : 224 <= l ? 3 : 192 <= l ? 2 : 1;
  3982. function u() {
  3983. a.call(this, "utf-8 decode"),
  3984. this.leftOver = null
  3985. }
  3986. function c() {
  3987. a.call(this, "utf-8 encode")
  3988. }
  3989. s[254] = s[254] = 1,
  3990. n.utf8encode = function(e) {
  3991. return i.nodebuffer ? o.newBufferFrom(e, "utf-8") : function(e) {
  3992. var t, n, r, o, a, s = e.length, l = 0;
  3993. for (o = 0; o < s; o++)
  3994. 55296 == (64512 & (n = e.charCodeAt(o))) && o + 1 < s && 56320 == (64512 & (r = e.charCodeAt(o + 1))) && (n = 65536 + (n - 55296 << 10) + (r - 56320),
  3995. o++),
  3996. l += n < 128 ? 1 : n < 2048 ? 2 : n < 65536 ? 3 : 4;
  3997. for (t = i.uint8array ? new Uint8Array(l) : new Array(l),
  3998. o = a = 0; a < l; o++)
  3999. 55296 == (64512 & (n = e.charCodeAt(o))) && o + 1 < s && 56320 == (64512 & (r = e.charCodeAt(o + 1))) && (n = 65536 + (n - 55296 << 10) + (r - 56320),
  4000. o++),
  4001. n < 128 ? t[a++] = n : (n < 2048 ? t[a++] = 192 | n >>> 6 : (n < 65536 ? t[a++] = 224 | n >>> 12 : (t[a++] = 240 | n >>> 18,
  4002. t[a++] = 128 | n >>> 12 & 63),
  4003. t[a++] = 128 | n >>> 6 & 63),
  4004. t[a++] = 128 | 63 & n);
  4005. return t
  4006. }(e)
  4007. }
  4008. ,
  4009. n.utf8decode = function(e) {
  4010. return i.nodebuffer ? r.transformTo("nodebuffer", e).toString("utf-8") : function(e) {
  4011. var t, n, i, o, a = e.length, l = new Array(2 * a);
  4012. for (t = n = 0; t < a; )
  4013. if ((i = e[t++]) < 128)
  4014. l[n++] = i;
  4015. else if (4 < (o = s[i]))
  4016. l[n++] = 65533,
  4017. t += o - 1;
  4018. else {
  4019. for (i &= 2 === o ? 31 : 3 === o ? 15 : 7; 1 < o && t < a; )
  4020. i = i << 6 | 63 & e[t++],
  4021. o--;
  4022. 1 < o ? l[n++] = 65533 : i < 65536 ? l[n++] = i : (i -= 65536,
  4023. l[n++] = 55296 | i >> 10 & 1023,
  4024. l[n++] = 56320 | 1023 & i)
  4025. }
  4026. return l.length !== n && (l.subarray ? l = l.subarray(0, n) : l.length = n),
  4027. r.applyFromCharCode(l)
  4028. }(e = r.transformTo(i.uint8array ? "uint8array" : "array", e))
  4029. }
  4030. ,
  4031. r.inherits(u, a),
  4032. u.prototype.processChunk = function(e) {
  4033. var t = r.transformTo(i.uint8array ? "uint8array" : "array", e.data);
  4034. if (this.leftOver && this.leftOver.length) {
  4035. if (i.uint8array) {
  4036. var o = t;
  4037. (t = new Uint8Array(o.length + this.leftOver.length)).set(this.leftOver, 0),
  4038. t.set(o, this.leftOver.length)
  4039. } else
  4040. t = this.leftOver.concat(t);
  4041. this.leftOver = null
  4042. }
  4043. var a = function(e, t) {
  4044. var n;
  4045. for ((t = t || e.length) > e.length && (t = e.length),
  4046. n = t - 1; 0 <= n && 128 == (192 & e[n]); )
  4047. n--;
  4048. return n < 0 || 0 === n ? t : n + s[e[n]] > t ? n : t
  4049. }(t)
  4050. , l = t;
  4051. a !== t.length && (i.uint8array ? (l = t.subarray(0, a),
  4052. this.leftOver = t.subarray(a, t.length)) : (l = t.slice(0, a),
  4053. this.leftOver = t.slice(a, t.length))),
  4054. this.push({
  4055. data: n.utf8decode(l),
  4056. meta: e.meta
  4057. })
  4058. }
  4059. ,
  4060. u.prototype.flush = function() {
  4061. this.leftOver && this.leftOver.length && (this.push({
  4062. data: n.utf8decode(this.leftOver),
  4063. meta: {}
  4064. }),
  4065. this.leftOver = null)
  4066. }
  4067. ,
  4068. n.Utf8DecodeWorker = u,
  4069. r.inherits(c, a),
  4070. c.prototype.processChunk = function(e) {
  4071. this.push({
  4072. data: n.utf8encode(e.data),
  4073. meta: e.meta
  4074. })
  4075. }
  4076. ,
  4077. n.Utf8EncodeWorker = c
  4078. }
  4079. , {
  4080. "./nodejsUtils": 14,
  4081. "./stream/GenericWorker": 28,
  4082. "./support": 30,
  4083. "./utils": 32
  4084. }],
  4085. 32: [function(e, t, n) {
  4086. "use strict";
  4087. var r = e("./support")
  4088. , i = e("./base64")
  4089. , o = e("./nodejsUtils")
  4090. , a = e("set-immediate-shim")
  4091. , s = e("./external");
  4092. function l(e) {
  4093. return e
  4094. }
  4095. function u(e, t) {
  4096. for (var n = 0; n < e.length; ++n)
  4097. t[n] = 255 & e.charCodeAt(n);
  4098. return t
  4099. }
  4100. n.newBlob = function(e, t) {
  4101. n.checkSupport("blob");
  4102. try {
  4103. return new Blob([e],{
  4104. type: t
  4105. })
  4106. } catch (n) {
  4107. try {
  4108. var r = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder);
  4109. return r.append(e),
  4110. r.getBlob(t)
  4111. } catch (e) {
  4112. throw new Error("Bug : can't construct the Blob.")
  4113. }
  4114. }
  4115. }
  4116. ;
  4117. var c = {
  4118. stringifyByChunk: function(e, t, n) {
  4119. var r = []
  4120. , i = 0
  4121. , o = e.length;
  4122. if (o <= n)
  4123. return String.fromCharCode.apply(null, e);
  4124. for (; i < o; )
  4125. "array" === t || "nodebuffer" === t ? r.push(String.fromCharCode.apply(null, e.slice(i, Math.min(i + n, o)))) : r.push(String.fromCharCode.apply(null, e.subarray(i, Math.min(i + n, o)))),
  4126. i += n;
  4127. return r.join("")
  4128. },
  4129. stringifyByChar: function(e) {
  4130. for (var t = "", n = 0; n < e.length; n++)
  4131. t += String.fromCharCode(e[n]);
  4132. return t
  4133. },
  4134. applyCanBeUsed: {
  4135. uint8array: function() {
  4136. try {
  4137. return r.uint8array && 1 === String.fromCharCode.apply(null, new Uint8Array(1)).length
  4138. } catch (e) {
  4139. return !1
  4140. }
  4141. }(),
  4142. nodebuffer: function() {
  4143. try {
  4144. return r.nodebuffer && 1 === String.fromCharCode.apply(null, o.allocBuffer(1)).length
  4145. } catch (e) {
  4146. return !1
  4147. }
  4148. }()
  4149. }
  4150. };
  4151. function d(e) {
  4152. var t = 65536
  4153. , r = n.getTypeOf(e)
  4154. , i = !0;
  4155. if ("uint8array" === r ? i = c.applyCanBeUsed.uint8array : "nodebuffer" === r && (i = c.applyCanBeUsed.nodebuffer),
  4156. i)
  4157. for (; 1 < t; )
  4158. try {
  4159. return c.stringifyByChunk(e, r, t)
  4160. } catch (e) {
  4161. t = Math.floor(t / 2)
  4162. }
  4163. return c.stringifyByChar(e)
  4164. }
  4165. function f(e, t) {
  4166. for (var n = 0; n < e.length; n++)
  4167. t[n] = e[n];
  4168. return t
  4169. }
  4170. n.applyFromCharCode = d;
  4171. var h = {};
  4172. h.string = {
  4173. string: l,
  4174. array: function(e) {
  4175. return u(e, new Array(e.length))
  4176. },
  4177. arraybuffer: function(e) {
  4178. return h.string.uint8array(e).buffer
  4179. },
  4180. uint8array: function(e) {
  4181. return u(e, new Uint8Array(e.length))
  4182. },
  4183. nodebuffer: function(e) {
  4184. return u(e, o.allocBuffer(e.length))
  4185. }
  4186. },
  4187. h.array = {
  4188. string: d,
  4189. array: l,
  4190. arraybuffer: function(e) {
  4191. return new Uint8Array(e).buffer
  4192. },
  4193. uint8array: function(e) {
  4194. return new Uint8Array(e)
  4195. },
  4196. nodebuffer: function(e) {
  4197. return o.newBufferFrom(e)
  4198. }
  4199. },
  4200. h.arraybuffer = {
  4201. string: function(e) {
  4202. return d(new Uint8Array(e))
  4203. },
  4204. array: function(e) {
  4205. return f(new Uint8Array(e), new Array(e.byteLength))
  4206. },
  4207. arraybuffer: l,
  4208. uint8array: function(e) {
  4209. return new Uint8Array(e)
  4210. },
  4211. nodebuffer: function(e) {
  4212. return o.newBufferFrom(new Uint8Array(e))
  4213. }
  4214. },
  4215. h.uint8array = {
  4216. string: d,
  4217. array: function(e) {
  4218. return f(e, new Array(e.length))
  4219. },
  4220. arraybuffer: function(e) {
  4221. return e.buffer
  4222. },
  4223. uint8array: l,
  4224. nodebuffer: function(e) {
  4225. return o.newBufferFrom(e)
  4226. }
  4227. },
  4228. h.nodebuffer = {
  4229. string: d,
  4230. array: function(e) {
  4231. return f(e, new Array(e.length))
  4232. },
  4233. arraybuffer: function(e) {
  4234. return h.nodebuffer.uint8array(e).buffer
  4235. },
  4236. uint8array: function(e) {
  4237. return f(e, new Uint8Array(e.length))
  4238. },
  4239. nodebuffer: l
  4240. },
  4241. n.transformTo = function(e, t) {
  4242. if (t = t || "",
  4243. !e)
  4244. return t;
  4245. n.checkSupport(e);
  4246. var r = n.getTypeOf(t);
  4247. return h[r][e](t)
  4248. }
  4249. ,
  4250. n.getTypeOf = function(e) {
  4251. return "string" == typeof e ? "string" : "[object Array]" === Object.prototype.toString.call(e) ? "array" : r.nodebuffer && o.isBuffer(e) ? "nodebuffer" : r.uint8array && e instanceof Uint8Array ? "uint8array" : r.arraybuffer && e instanceof ArrayBuffer ? "arraybuffer" : void 0
  4252. }
  4253. ,
  4254. n.checkSupport = function(e) {
  4255. if (!r[e.toLowerCase()])
  4256. throw new Error(e + " is not supported by this platform")
  4257. }
  4258. ,
  4259. n.MAX_VALUE_16BITS = 65535,
  4260. n.MAX_VALUE_32BITS = -1,
  4261. n.pretty = function(e) {
  4262. var t, n, r = "";
  4263. for (n = 0; n < (e || "").length; n++)
  4264. r += "\\x" + ((t = e.charCodeAt(n)) < 16 ? "0" : "") + t.toString(16).toUpperCase();
  4265. return r
  4266. }
  4267. ,
  4268. n.delay = function(e, t, n) {
  4269. a((function() {
  4270. e.apply(n || null, t || [])
  4271. }
  4272. ))
  4273. }
  4274. ,
  4275. n.inherits = function(e, t) {
  4276. function n() {}
  4277. n.prototype = t.prototype,
  4278. e.prototype = new n
  4279. }
  4280. ,
  4281. n.extend = function() {
  4282. var e, t, n = {};
  4283. for (e = 0; e < arguments.length; e++)
  4284. for (t in arguments[e])
  4285. arguments[e].hasOwnProperty(t) && void 0 === n[t] && (n[t] = arguments[e][t]);
  4286. return n
  4287. }
  4288. ,
  4289. n.prepareContent = function(e, t, o, a, l) {
  4290. return s.Promise.resolve(t).then((function(e) {
  4291. return r.blob && (e instanceof Blob || -1 !== ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(e))) && "undefined" != typeof FileReader ? new s.Promise((function(t, n) {
  4292. var r = new FileReader;
  4293. r.onload = function(e) {
  4294. t(e.target.result)
  4295. }
  4296. ,
  4297. r.onerror = function(e) {
  4298. n(e.target.error)
  4299. }
  4300. ,
  4301. r.readAsArrayBuffer(e)
  4302. }
  4303. )) : e
  4304. }
  4305. )).then((function(t) {
  4306. var c = n.getTypeOf(t);
  4307. return c ? ("arraybuffer" === c ? t = n.transformTo("uint8array", t) : "string" === c && (l ? t = i.decode(t) : o && !0 !== a && (t = function(e) {
  4308. return u(e, r.uint8array ? new Uint8Array(e.length) : new Array(e.length))
  4309. }(t))),
  4310. t) : s.Promise.reject(new Error("Can't read the data of '" + e + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))
  4311. }
  4312. ))
  4313. }
  4314. }
  4315. , {
  4316. "./base64": 1,
  4317. "./external": 6,
  4318. "./nodejsUtils": 14,
  4319. "./support": 30,
  4320. "set-immediate-shim": 54
  4321. }],
  4322. 33: [function(e, t, n) {
  4323. "use strict";
  4324. var r = e("./reader/readerFor")
  4325. , i = e("./utils")
  4326. , o = e("./signature")
  4327. , a = e("./zipEntry")
  4328. , s = (e("./utf8"),
  4329. e("./support"));
  4330. function l(e) {
  4331. this.files = [],
  4332. this.loadOptions = e
  4333. }
  4334. l.prototype = {
  4335. checkSignature: function(e) {
  4336. if (!this.reader.readAndCheckSignature(e)) {
  4337. this.reader.index -= 4;
  4338. var t = this.reader.readString(4);
  4339. throw new Error("Corrupted zip or bug: unexpected signature (" + i.pretty(t) + ", expected " + i.pretty(e) + ")")
  4340. }
  4341. },
  4342. isSignature: function(e, t) {
  4343. var n = this.reader.index;
  4344. this.reader.setIndex(e);
  4345. var r = this.reader.readString(4) === t;
  4346. return this.reader.setIndex(n),
  4347. r
  4348. },
  4349. readBlockEndOfCentral: function() {
  4350. this.diskNumber = this.reader.readInt(2),
  4351. this.diskWithCentralDirStart = this.reader.readInt(2),
  4352. this.centralDirRecordsOnThisDisk = this.reader.readInt(2),
  4353. this.centralDirRecords = this.reader.readInt(2),
  4354. this.centralDirSize = this.reader.readInt(4),
  4355. this.centralDirOffset = this.reader.readInt(4),
  4356. this.zipCommentLength = this.reader.readInt(2);
  4357. var e = this.reader.readData(this.zipCommentLength)
  4358. , t = s.uint8array ? "uint8array" : "array"
  4359. , n = i.transformTo(t, e);
  4360. this.zipComment = this.loadOptions.decodeFileName(n)
  4361. },
  4362. readBlockZip64EndOfCentral: function() {
  4363. this.zip64EndOfCentralSize = this.reader.readInt(8),
  4364. this.reader.skip(4),
  4365. this.diskNumber = this.reader.readInt(4),
  4366. this.diskWithCentralDirStart = this.reader.readInt(4),
  4367. this.centralDirRecordsOnThisDisk = this.reader.readInt(8),
  4368. this.centralDirRecords = this.reader.readInt(8),
  4369. this.centralDirSize = this.reader.readInt(8),
  4370. this.centralDirOffset = this.reader.readInt(8),
  4371. this.zip64ExtensibleData = {};
  4372. for (var e, t, n, r = this.zip64EndOfCentralSize - 44; 0 < r; )
  4373. e = this.reader.readInt(2),
  4374. t = this.reader.readInt(4),
  4375. n = this.reader.readData(t),
  4376. this.zip64ExtensibleData[e] = {
  4377. id: e,
  4378. length: t,
  4379. value: n
  4380. }
  4381. },
  4382. readBlockZip64EndOfCentralLocator: function() {
  4383. if (this.diskWithZip64CentralDirStart = this.reader.readInt(4),
  4384. this.relativeOffsetEndOfZip64CentralDir = this.reader.readInt(8),
  4385. this.disksCount = this.reader.readInt(4),
  4386. 1 < this.disksCount)
  4387. throw new Error("Multi-volumes zip are not supported")
  4388. },
  4389. readLocalFiles: function() {
  4390. var e, t;
  4391. for (e = 0; e < this.files.length; e++)
  4392. t = this.files[e],
  4393. this.reader.setIndex(t.localHeaderOffset),
  4394. this.checkSignature(o.LOCAL_FILE_HEADER),
  4395. t.readLocalPart(this.reader),
  4396. t.handleUTF8(),
  4397. t.processAttributes()
  4398. },
  4399. readCentralDir: function() {
  4400. var e;
  4401. for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER); )
  4402. (e = new a({
  4403. zip64: this.zip64
  4404. },this.loadOptions)).readCentralPart(this.reader),
  4405. this.files.push(e);
  4406. if (this.centralDirRecords !== this.files.length && 0 !== this.centralDirRecords && 0 === this.files.length)
  4407. throw new Error("Corrupted zip or bug: expected " + this.centralDirRecords + " records in central dir, got " + this.files.length)
  4408. },
  4409. readEndOfCentral: function() {
  4410. var e = this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);
  4411. if (e < 0)
  4412. throw this.isSignature(0, o.LOCAL_FILE_HEADER) ? new Error("Corrupted zip: can't find end of central directory") : new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");
  4413. this.reader.setIndex(e);
  4414. var t = e;
  4415. if (this.checkSignature(o.CENTRAL_DIRECTORY_END),
  4416. this.readBlockEndOfCentral(),
  4417. this.diskNumber === i.MAX_VALUE_16BITS || this.diskWithCentralDirStart === i.MAX_VALUE_16BITS || this.centralDirRecordsOnThisDisk === i.MAX_VALUE_16BITS || this.centralDirRecords === i.MAX_VALUE_16BITS || this.centralDirSize === i.MAX_VALUE_32BITS || this.centralDirOffset === i.MAX_VALUE_32BITS) {
  4418. if (this.zip64 = !0,
  4419. (e = this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR)) < 0)
  4420. throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");
  4421. if (this.reader.setIndex(e),
  4422. this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),
  4423. this.readBlockZip64EndOfCentralLocator(),
  4424. !this.isSignature(this.relativeOffsetEndOfZip64CentralDir, o.ZIP64_CENTRAL_DIRECTORY_END) && (this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),
  4425. this.relativeOffsetEndOfZip64CentralDir < 0))
  4426. throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");
  4427. this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),
  4428. this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),
  4429. this.readBlockZip64EndOfCentral()
  4430. }
  4431. var n = this.centralDirOffset + this.centralDirSize;
  4432. this.zip64 && (n += 20,
  4433. n += 12 + this.zip64EndOfCentralSize);
  4434. var r = t - n;
  4435. if (0 < r)
  4436. this.isSignature(t, o.CENTRAL_FILE_HEADER) || (this.reader.zero = r);
  4437. else if (r < 0)
  4438. throw new Error("Corrupted zip: missing " + Math.abs(r) + " bytes.")
  4439. },
  4440. prepareReader: function(e) {
  4441. this.reader = r(e)
  4442. },
  4443. load: function(e) {
  4444. this.prepareReader(e),
  4445. this.readEndOfCentral(),
  4446. this.readCentralDir(),
  4447. this.readLocalFiles()
  4448. }
  4449. },
  4450. t.exports = l
  4451. }
  4452. , {
  4453. "./reader/readerFor": 22,
  4454. "./signature": 23,
  4455. "./support": 30,
  4456. "./utf8": 31,
  4457. "./utils": 32,
  4458. "./zipEntry": 34
  4459. }],
  4460. 34: [function(e, t, n) {
  4461. "use strict";
  4462. var r = e("./reader/readerFor")
  4463. , i = e("./utils")
  4464. , o = e("./compressedObject")
  4465. , a = e("./crc32")
  4466. , s = e("./utf8")
  4467. , l = e("./compressions")
  4468. , u = e("./support");
  4469. function c(e, t) {
  4470. this.options = e,
  4471. this.loadOptions = t
  4472. }
  4473. c.prototype = {
  4474. isEncrypted: function() {
  4475. return 1 == (1 & this.bitFlag)
  4476. },
  4477. useUTF8: function() {
  4478. return 2048 == (2048 & this.bitFlag)
  4479. },
  4480. readLocalPart: function(e) {
  4481. var t, n;
  4482. if (e.skip(22),
  4483. this.fileNameLength = e.readInt(2),
  4484. n = e.readInt(2),
  4485. this.fileName = e.readData(this.fileNameLength),
  4486. e.skip(n),
  4487. -1 === this.compressedSize || -1 === this.uncompressedSize)
  4488. throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");
  4489. if (null === (t = function(e) {
  4490. for (var t in l)
  4491. if (l.hasOwnProperty(t) && l[t].magic === e)
  4492. return l[t];
  4493. return null
  4494. }(this.compressionMethod)))
  4495. throw new Error("Corrupted zip : compression " + i.pretty(this.compressionMethod) + " unknown (inner file : " + i.transformTo("string", this.fileName) + ")");
  4496. this.decompressed = new o(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))
  4497. },
  4498. readCentralPart: function(e) {
  4499. this.versionMadeBy = e.readInt(2),
  4500. e.skip(2),
  4501. this.bitFlag = e.readInt(2),
  4502. this.compressionMethod = e.readString(2),
  4503. this.date = e.readDate(),
  4504. this.crc32 = e.readInt(4),
  4505. this.compressedSize = e.readInt(4),
  4506. this.uncompressedSize = e.readInt(4);
  4507. var t = e.readInt(2);
  4508. if (this.extraFieldsLength = e.readInt(2),
  4509. this.fileCommentLength = e.readInt(2),
  4510. this.diskNumberStart = e.readInt(2),
  4511. this.internalFileAttributes = e.readInt(2),
  4512. this.externalFileAttributes = e.readInt(4),
  4513. this.localHeaderOffset = e.readInt(4),
  4514. this.isEncrypted())
  4515. throw new Error("Encrypted zip are not supported");
  4516. e.skip(t),
  4517. this.readExtraFields(e),
  4518. this.parseZIP64ExtraField(e),
  4519. this.fileComment = e.readData(this.fileCommentLength)
  4520. },
  4521. processAttributes: function() {
  4522. this.unixPermissions = null,
  4523. this.dosPermissions = null;
  4524. var e = this.versionMadeBy >> 8;
  4525. this.dir = !!(16 & this.externalFileAttributes),
  4526. 0 == e && (this.dosPermissions = 63 & this.externalFileAttributes),
  4527. 3 == e && (this.unixPermissions = this.externalFileAttributes >> 16 & 65535),
  4528. this.dir || "/" !== this.fileNameStr.slice(-1) || (this.dir = !0)
  4529. },
  4530. parseZIP64ExtraField: function(e) {
  4531. if (this.extraFields[1]) {
  4532. var t = r(this.extraFields[1].value);
  4533. this.uncompressedSize === i.MAX_VALUE_32BITS && (this.uncompressedSize = t.readInt(8)),
  4534. this.compressedSize === i.MAX_VALUE_32BITS && (this.compressedSize = t.readInt(8)),
  4535. this.localHeaderOffset === i.MAX_VALUE_32BITS && (this.localHeaderOffset = t.readInt(8)),
  4536. this.diskNumberStart === i.MAX_VALUE_32BITS && (this.diskNumberStart = t.readInt(4))
  4537. }
  4538. },
  4539. readExtraFields: function(e) {
  4540. var t, n, r, i = e.index + this.extraFieldsLength;
  4541. for (this.extraFields || (this.extraFields = {}); e.index + 4 < i; )
  4542. t = e.readInt(2),
  4543. n = e.readInt(2),
  4544. r = e.readData(n),
  4545. this.extraFields[t] = {
  4546. id: t,
  4547. length: n,
  4548. value: r
  4549. };
  4550. e.setIndex(i)
  4551. },
  4552. handleUTF8: function() {
  4553. var e = u.uint8array ? "uint8array" : "array";
  4554. if (this.useUTF8())
  4555. this.fileNameStr = s.utf8decode(this.fileName),
  4556. this.fileCommentStr = s.utf8decode(this.fileComment);
  4557. else {
  4558. var t = this.findExtraFieldUnicodePath();
  4559. if (null !== t)
  4560. this.fileNameStr = t;
  4561. else {
  4562. var n = i.transformTo(e, this.fileName);
  4563. this.fileNameStr = this.loadOptions.decodeFileName(n)
  4564. }
  4565. var r = this.findExtraFieldUnicodeComment();
  4566. if (null !== r)
  4567. this.fileCommentStr = r;
  4568. else {
  4569. var o = i.transformTo(e, this.fileComment);
  4570. this.fileCommentStr = this.loadOptions.decodeFileName(o)
  4571. }
  4572. }
  4573. },
  4574. findExtraFieldUnicodePath: function() {
  4575. var e = this.extraFields[28789];
  4576. if (e) {
  4577. var t = r(e.value);
  4578. return 1 !== t.readInt(1) || a(this.fileName) !== t.readInt(4) ? null : s.utf8decode(t.readData(e.length - 5))
  4579. }
  4580. return null
  4581. },
  4582. findExtraFieldUnicodeComment: function() {
  4583. var e = this.extraFields[25461];
  4584. if (e) {
  4585. var t = r(e.value);
  4586. return 1 !== t.readInt(1) || a(this.fileComment) !== t.readInt(4) ? null : s.utf8decode(t.readData(e.length - 5))
  4587. }
  4588. return null
  4589. }
  4590. },
  4591. t.exports = c
  4592. }
  4593. , {
  4594. "./compressedObject": 2,
  4595. "./compressions": 3,
  4596. "./crc32": 4,
  4597. "./reader/readerFor": 22,
  4598. "./support": 30,
  4599. "./utf8": 31,
  4600. "./utils": 32
  4601. }],
  4602. 35: [function(e, t, n) {
  4603. "use strict";
  4604. function r(e, t, n) {
  4605. this.name = e,
  4606. this.dir = n.dir,
  4607. this.date = n.date,
  4608. this.comment = n.comment,
  4609. this.unixPermissions = n.unixPermissions,
  4610. this.dosPermissions = n.dosPermissions,
  4611. this._data = t,
  4612. this._dataBinary = n.binary,
  4613. this.options = {
  4614. compression: n.compression,
  4615. compressionOptions: n.compressionOptions
  4616. }
  4617. }
  4618. var i = e("./stream/StreamHelper")
  4619. , o = e("./stream/DataWorker")
  4620. , a = e("./utf8")
  4621. , s = e("./compressedObject")
  4622. , l = e("./stream/GenericWorker");
  4623. r.prototype = {
  4624. internalStream: function(e) {
  4625. var t = null
  4626. , n = "string";
  4627. try {
  4628. if (!e)
  4629. throw new Error("No output type specified.");
  4630. var r = "string" === (n = e.toLowerCase()) || "text" === n;
  4631. "binarystring" !== n && "text" !== n || (n = "string"),
  4632. t = this._decompressWorker();
  4633. var o = !this._dataBinary;
  4634. o && !r && (t = t.pipe(new a.Utf8EncodeWorker)),
  4635. !o && r && (t = t.pipe(new a.Utf8DecodeWorker))
  4636. } catch (e) {
  4637. (t = new l("error")).error(e)
  4638. }
  4639. return new i(t,n,"")
  4640. },
  4641. async: function(e, t) {
  4642. return this.internalStream(e).accumulate(t)
  4643. },
  4644. nodeStream: function(e, t) {
  4645. return this.internalStream(e || "nodebuffer").toNodejsStream(t)
  4646. },
  4647. _compressWorker: function(e, t) {
  4648. if (this._data instanceof s && this._data.compression.magic === e.magic)
  4649. return this._data.getCompressedWorker();
  4650. var n = this._decompressWorker();
  4651. return this._dataBinary || (n = n.pipe(new a.Utf8EncodeWorker)),
  4652. s.createWorkerFrom(n, e, t)
  4653. },
  4654. _decompressWorker: function() {
  4655. return this._data instanceof s ? this._data.getContentWorker() : this._data instanceof l ? this._data : new o(this._data)
  4656. }
  4657. };
  4658. for (var u = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], c = function() {
  4659. throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")
  4660. }, d = 0; d < u.length; d++)
  4661. r.prototype[u[d]] = c;
  4662. t.exports = r
  4663. }
  4664. , {
  4665. "./compressedObject": 2,
  4666. "./stream/DataWorker": 27,
  4667. "./stream/GenericWorker": 28,
  4668. "./stream/StreamHelper": 29,
  4669. "./utf8": 31
  4670. }],
  4671. 36: [function(e, t, r) {
  4672. (function(e) {
  4673. "use strict";
  4674. var n, r, i = e.MutationObserver || e.WebKitMutationObserver;
  4675. if (i) {
  4676. var o = 0
  4677. , a = new i(c)
  4678. , s = e.document.createTextNode("");
  4679. a.observe(s, {
  4680. characterData: !0
  4681. }),
  4682. n = function() {
  4683. s.data = o = ++o % 2
  4684. }
  4685. } else if (e.setImmediate || void 0 === e.MessageChannel)
  4686. n = "document"in e && "onreadystatechange"in e.document.createElement("script") ? function() {
  4687. var t = e.document.createElement("script");
  4688. t.onreadystatechange = function() {
  4689. c(),
  4690. t.onreadystatechange = null,
  4691. t.parentNode.removeChild(t),
  4692. t = null
  4693. }
  4694. ,
  4695. e.document.documentElement.appendChild(t)
  4696. }
  4697. : function() {
  4698. setTimeout(c, 0)
  4699. }
  4700. ;
  4701. else {
  4702. var l = new e.MessageChannel;
  4703. l.port1.onmessage = c,
  4704. n = function() {
  4705. l.port2.postMessage(0)
  4706. }
  4707. }
  4708. var u = [];
  4709. function c() {
  4710. var e, t;
  4711. r = !0;
  4712. for (var n = u.length; n; ) {
  4713. for (t = u,
  4714. u = [],
  4715. e = -1; ++e < n; )
  4716. t[e]();
  4717. n = u.length
  4718. }
  4719. r = !1
  4720. }
  4721. t.exports = function(e) {
  4722. 1 !== u.push(e) || r || n()
  4723. }
  4724. }
  4725. ).call(this, void 0 !== n ? n : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {})
  4726. }
  4727. , {}],
  4728. 37: [function(e, t, n) {
  4729. "use strict";
  4730. var r = e("immediate");
  4731. function i() {}
  4732. var o = {}
  4733. , a = ["REJECTED"]
  4734. , s = ["FULFILLED"]
  4735. , l = ["PENDING"];
  4736. function u(e) {
  4737. if ("function" != typeof e)
  4738. throw new TypeError("resolver must be a function");
  4739. this.state = l,
  4740. this.queue = [],
  4741. this.outcome = void 0,
  4742. e !== i && h(this, e)
  4743. }
  4744. function c(e, t, n) {
  4745. this.promise = e,
  4746. "function" == typeof t && (this.onFulfilled = t,
  4747. this.callFulfilled = this.otherCallFulfilled),
  4748. "function" == typeof n && (this.onRejected = n,
  4749. this.callRejected = this.otherCallRejected)
  4750. }
  4751. function d(e, t, n) {
  4752. r((function() {
  4753. var r;
  4754. try {
  4755. r = t(n)
  4756. } catch (r) {
  4757. return o.reject(e, r)
  4758. }
  4759. r === e ? o.reject(e, new TypeError("Cannot resolve promise with itself")) : o.resolve(e, r)
  4760. }
  4761. ))
  4762. }
  4763. function f(e) {
  4764. var t = e && e.then;
  4765. if (e && ("object" == typeof e || "function" == typeof e) && "function" == typeof t)
  4766. return function() {
  4767. t.apply(e, arguments)
  4768. }
  4769. }
  4770. function h(e, t) {
  4771. var n = !1;
  4772. function r(t) {
  4773. n || (n = !0,
  4774. o.reject(e, t))
  4775. }
  4776. function i(t) {
  4777. n || (n = !0,
  4778. o.resolve(e, t))
  4779. }
  4780. var a = p((function() {
  4781. t(i, r)
  4782. }
  4783. ));
  4784. "error" === a.status && r(a.value)
  4785. }
  4786. function p(e, t) {
  4787. var n = {};
  4788. try {
  4789. n.value = e(t),
  4790. n.status = "success"
  4791. } catch (e) {
  4792. n.status = "error",
  4793. n.value = e
  4794. }
  4795. return n
  4796. }
  4797. (t.exports = u).prototype.finally = function(e) {
  4798. if ("function" != typeof e)
  4799. return this;
  4800. var t = this.constructor;
  4801. return this.then((function(n) {
  4802. return t.resolve(e()).then((function() {
  4803. return n
  4804. }
  4805. ))
  4806. }
  4807. ), (function(n) {
  4808. return t.resolve(e()).then((function() {
  4809. throw n
  4810. }
  4811. ))
  4812. }
  4813. ))
  4814. }
  4815. ,
  4816. u.prototype.catch = function(e) {
  4817. return this.then(null, e)
  4818. }
  4819. ,
  4820. u.prototype.then = function(e, t) {
  4821. if ("function" != typeof e && this.state === s || "function" != typeof t && this.state === a)
  4822. return this;
  4823. var n = new this.constructor(i);
  4824. return this.state !== l ? d(n, this.state === s ? e : t, this.outcome) : this.queue.push(new c(n,e,t)),
  4825. n
  4826. }
  4827. ,
  4828. c.prototype.callFulfilled = function(e) {
  4829. o.resolve(this.promise, e)
  4830. }
  4831. ,
  4832. c.prototype.otherCallFulfilled = function(e) {
  4833. d(this.promise, this.onFulfilled, e)
  4834. }
  4835. ,
  4836. c.prototype.callRejected = function(e) {
  4837. o.reject(this.promise, e)
  4838. }
  4839. ,
  4840. c.prototype.otherCallRejected = function(e) {
  4841. d(this.promise, this.onRejected, e)
  4842. }
  4843. ,
  4844. o.resolve = function(e, t) {
  4845. var n = p(f, t);
  4846. if ("error" === n.status)
  4847. return o.reject(e, n.value);
  4848. var r = n.value;
  4849. if (r)
  4850. h(e, r);
  4851. else {
  4852. e.state = s,
  4853. e.outcome = t;
  4854. for (var i = -1, a = e.queue.length; ++i < a; )
  4855. e.queue[i].callFulfilled(t)
  4856. }
  4857. return e
  4858. }
  4859. ,
  4860. o.reject = function(e, t) {
  4861. e.state = a,
  4862. e.outcome = t;
  4863. for (var n = -1, r = e.queue.length; ++n < r; )
  4864. e.queue[n].callRejected(t);
  4865. return e
  4866. }
  4867. ,
  4868. u.resolve = function(e) {
  4869. return e instanceof this ? e : o.resolve(new this(i), e)
  4870. }
  4871. ,
  4872. u.reject = function(e) {
  4873. var t = new this(i);
  4874. return o.reject(t, e)
  4875. }
  4876. ,
  4877. u.all = function(e) {
  4878. var t = this;
  4879. if ("[object Array]" !== Object.prototype.toString.call(e))
  4880. return this.reject(new TypeError("must be an array"));
  4881. var n = e.length
  4882. , r = !1;
  4883. if (!n)
  4884. return this.resolve([]);
  4885. for (var a = new Array(n), s = 0, l = -1, u = new this(i); ++l < n; )
  4886. c(e[l], l);
  4887. return u;
  4888. function c(e, i) {
  4889. t.resolve(e).then((function(e) {
  4890. a[i] = e,
  4891. ++s !== n || r || (r = !0,
  4892. o.resolve(u, a))
  4893. }
  4894. ), (function(e) {
  4895. r || (r = !0,
  4896. o.reject(u, e))
  4897. }
  4898. ))
  4899. }
  4900. }
  4901. ,
  4902. u.race = function(e) {
  4903. if ("[object Array]" !== Object.prototype.toString.call(e))
  4904. return this.reject(new TypeError("must be an array"));
  4905. var t = e.length
  4906. , n = !1;
  4907. if (!t)
  4908. return this.resolve([]);
  4909. for (var r, a = -1, s = new this(i); ++a < t; )
  4910. r = e[a],
  4911. this.resolve(r).then((function(e) {
  4912. n || (n = !0,
  4913. o.resolve(s, e))
  4914. }
  4915. ), (function(e) {
  4916. n || (n = !0,
  4917. o.reject(s, e))
  4918. }
  4919. ));
  4920. return s
  4921. }
  4922. }
  4923. , {
  4924. immediate: 36
  4925. }],
  4926. 38: [function(e, t, n) {
  4927. "use strict";
  4928. var r = {};
  4929. (0,
  4930. e("./lib/utils/common").assign)(r, e("./lib/deflate"), e("./lib/inflate"), e("./lib/zlib/constants")),
  4931. t.exports = r
  4932. }
  4933. , {
  4934. "./lib/deflate": 39,
  4935. "./lib/inflate": 40,
  4936. "./lib/utils/common": 41,
  4937. "./lib/zlib/constants": 44
  4938. }],
  4939. 39: [function(e, t, n) {
  4940. "use strict";
  4941. var r = e("./zlib/deflate")
  4942. , i = e("./utils/common")
  4943. , o = e("./utils/strings")
  4944. , a = e("./zlib/messages")
  4945. , s = e("./zlib/zstream")
  4946. , l = Object.prototype.toString;
  4947. function u(e) {
  4948. if (!(this instanceof u))
  4949. return new u(e);
  4950. this.options = i.assign({
  4951. level: -1,
  4952. method: 8,
  4953. chunkSize: 16384,
  4954. windowBits: 15,
  4955. memLevel: 8,
  4956. strategy: 0,
  4957. to: ""
  4958. }, e || {});
  4959. var t = this.options;
  4960. t.raw && 0 < t.windowBits ? t.windowBits = -t.windowBits : t.gzip && 0 < t.windowBits && t.windowBits < 16 && (t.windowBits += 16),
  4961. this.err = 0,
  4962. this.msg = "",
  4963. this.ended = !1,
  4964. this.chunks = [],
  4965. this.strm = new s,
  4966. this.strm.avail_out = 0;
  4967. var n = r.deflateInit2(this.strm, t.level, t.method, t.windowBits, t.memLevel, t.strategy);
  4968. if (0 !== n)
  4969. throw new Error(a[n]);
  4970. if (t.header && r.deflateSetHeader(this.strm, t.header),
  4971. t.dictionary) {
  4972. var c;
  4973. if (c = "string" == typeof t.dictionary ? o.string2buf(t.dictionary) : "[object ArrayBuffer]" === l.call(t.dictionary) ? new Uint8Array(t.dictionary) : t.dictionary,
  4974. 0 !== (n = r.deflateSetDictionary(this.strm, c)))
  4975. throw new Error(a[n]);
  4976. this._dict_set = !0
  4977. }
  4978. }
  4979. function c(e, t) {
  4980. var n = new u(t);
  4981. if (n.push(e, !0),
  4982. n.err)
  4983. throw n.msg || a[n.err];
  4984. return n.result
  4985. }
  4986. u.prototype.push = function(e, t) {
  4987. var n, a, s = this.strm, u = this.options.chunkSize;
  4988. if (this.ended)
  4989. return !1;
  4990. a = t === ~~t ? t : !0 === t ? 4 : 0,
  4991. "string" == typeof e ? s.input = o.string2buf(e) : "[object ArrayBuffer]" === l.call(e) ? s.input = new Uint8Array(e) : s.input = e,
  4992. s.next_in = 0,
  4993. s.avail_in = s.input.length;
  4994. do {
  4995. if (0 === s.avail_out && (s.output = new i.Buf8(u),
  4996. s.next_out = 0,
  4997. s.avail_out = u),
  4998. 1 !== (n = r.deflate(s, a)) && 0 !== n)
  4999. return this.onEnd(n),
  5000. !(this.ended = !0);
  5001. 0 !== s.avail_out && (0 !== s.avail_in || 4 !== a && 2 !== a) || ("string" === this.options.to ? this.onData(o.buf2binstring(i.shrinkBuf(s.output, s.next_out))) : this.onData(i.shrinkBuf(s.output, s.next_out)))
  5002. } while ((0 < s.avail_in || 0 === s.avail_out) && 1 !== n);
  5003. return 4 === a ? (n = r.deflateEnd(this.strm),
  5004. this.onEnd(n),
  5005. this.ended = !0,
  5006. 0 === n) : 2 !== a || (this.onEnd(0),
  5007. !(s.avail_out = 0))
  5008. }
  5009. ,
  5010. u.prototype.onData = function(e) {
  5011. this.chunks.push(e)
  5012. }
  5013. ,
  5014. u.prototype.onEnd = function(e) {
  5015. 0 === e && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = i.flattenChunks(this.chunks)),
  5016. this.chunks = [],
  5017. this.err = e,
  5018. this.msg = this.strm.msg
  5019. }
  5020. ,
  5021. n.Deflate = u,
  5022. n.deflate = c,
  5023. n.deflateRaw = function(e, t) {
  5024. return (t = t || {}).raw = !0,
  5025. c(e, t)
  5026. }
  5027. ,
  5028. n.gzip = function(e, t) {
  5029. return (t = t || {}).gzip = !0,
  5030. c(e, t)
  5031. }
  5032. }
  5033. , {
  5034. "./utils/common": 41,
  5035. "./utils/strings": 42,
  5036. "./zlib/deflate": 46,
  5037. "./zlib/messages": 51,
  5038. "./zlib/zstream": 53
  5039. }],
  5040. 40: [function(e, t, n) {
  5041. "use strict";
  5042. var r = e("./zlib/inflate")
  5043. , i = e("./utils/common")
  5044. , o = e("./utils/strings")
  5045. , a = e("./zlib/constants")
  5046. , s = e("./zlib/messages")
  5047. , l = e("./zlib/zstream")
  5048. , u = e("./zlib/gzheader")
  5049. , c = Object.prototype.toString;
  5050. function d(e) {
  5051. if (!(this instanceof d))
  5052. return new d(e);
  5053. this.options = i.assign({
  5054. chunkSize: 16384,
  5055. windowBits: 0,
  5056. to: ""
  5057. }, e || {});
  5058. var t = this.options;
  5059. t.raw && 0 <= t.windowBits && t.windowBits < 16 && (t.windowBits = -t.windowBits,
  5060. 0 === t.windowBits && (t.windowBits = -15)),
  5061. !(0 <= t.windowBits && t.windowBits < 16) || e && e.windowBits || (t.windowBits += 32),
  5062. 15 < t.windowBits && t.windowBits < 48 && 0 == (15 & t.windowBits) && (t.windowBits |= 15),
  5063. this.err = 0,
  5064. this.msg = "",
  5065. this.ended = !1,
  5066. this.chunks = [],
  5067. this.strm = new l,
  5068. this.strm.avail_out = 0;
  5069. var n = r.inflateInit2(this.strm, t.windowBits);
  5070. if (n !== a.Z_OK)
  5071. throw new Error(s[n]);
  5072. this.header = new u,
  5073. r.inflateGetHeader(this.strm, this.header)
  5074. }
  5075. function f(e, t) {
  5076. var n = new d(t);
  5077. if (n.push(e, !0),
  5078. n.err)
  5079. throw n.msg || s[n.err];
  5080. return n.result
  5081. }
  5082. d.prototype.push = function(e, t) {
  5083. var n, s, l, u, d, f, h = this.strm, p = this.options.chunkSize, g = this.options.dictionary, m = !1;
  5084. if (this.ended)
  5085. return !1;
  5086. s = t === ~~t ? t : !0 === t ? a.Z_FINISH : a.Z_NO_FLUSH,
  5087. "string" == typeof e ? h.input = o.binstring2buf(e) : "[object ArrayBuffer]" === c.call(e) ? h.input = new Uint8Array(e) : h.input = e,
  5088. h.next_in = 0,
  5089. h.avail_in = h.input.length;
  5090. do {
  5091. if (0 === h.avail_out && (h.output = new i.Buf8(p),
  5092. h.next_out = 0,
  5093. h.avail_out = p),
  5094. (n = r.inflate(h, a.Z_NO_FLUSH)) === a.Z_NEED_DICT && g && (f = "string" == typeof g ? o.string2buf(g) : "[object ArrayBuffer]" === c.call(g) ? new Uint8Array(g) : g,
  5095. n = r.inflateSetDictionary(this.strm, f)),
  5096. n === a.Z_BUF_ERROR && !0 === m && (n = a.Z_OK,
  5097. m = !1),
  5098. n !== a.Z_STREAM_END && n !== a.Z_OK)
  5099. return this.onEnd(n),
  5100. !(this.ended = !0);
  5101. h.next_out && (0 !== h.avail_out && n !== a.Z_STREAM_END && (0 !== h.avail_in || s !== a.Z_FINISH && s !== a.Z_SYNC_FLUSH) || ("string" === this.options.to ? (l = o.utf8border(h.output, h.next_out),
  5102. u = h.next_out - l,
  5103. d = o.buf2string(h.output, l),
  5104. h.next_out = u,
  5105. h.avail_out = p - u,
  5106. u && i.arraySet(h.output, h.output, l, u, 0),
  5107. this.onData(d)) : this.onData(i.shrinkBuf(h.output, h.next_out)))),
  5108. 0 === h.avail_in && 0 === h.avail_out && (m = !0)
  5109. } while ((0 < h.avail_in || 0 === h.avail_out) && n !== a.Z_STREAM_END);
  5110. return n === a.Z_STREAM_END && (s = a.Z_FINISH),
  5111. s === a.Z_FINISH ? (n = r.inflateEnd(this.strm),
  5112. this.onEnd(n),
  5113. this.ended = !0,
  5114. n === a.Z_OK) : s !== a.Z_SYNC_FLUSH || (this.onEnd(a.Z_OK),
  5115. !(h.avail_out = 0))
  5116. }
  5117. ,
  5118. d.prototype.onData = function(e) {
  5119. this.chunks.push(e)
  5120. }
  5121. ,
  5122. d.prototype.onEnd = function(e) {
  5123. e === a.Z_OK && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = i.flattenChunks(this.chunks)),
  5124. this.chunks = [],
  5125. this.err = e,
  5126. this.msg = this.strm.msg
  5127. }
  5128. ,
  5129. n.Inflate = d,
  5130. n.inflate = f,
  5131. n.inflateRaw = function(e, t) {
  5132. return (t = t || {}).raw = !0,
  5133. f(e, t)
  5134. }
  5135. ,
  5136. n.ungzip = f
  5137. }
  5138. , {
  5139. "./utils/common": 41,
  5140. "./utils/strings": 42,
  5141. "./zlib/constants": 44,
  5142. "./zlib/gzheader": 47,
  5143. "./zlib/inflate": 49,
  5144. "./zlib/messages": 51,
  5145. "./zlib/zstream": 53
  5146. }],
  5147. 41: [function(e, t, n) {
  5148. "use strict";
  5149. var r = "undefined" != typeof Uint8Array && "undefined" != typeof Uint16Array && "undefined" != typeof Int32Array;
  5150. n.assign = function(e) {
  5151. for (var t = Array.prototype.slice.call(arguments, 1); t.length; ) {
  5152. var n = t.shift();
  5153. if (n) {
  5154. if ("object" != typeof n)
  5155. throw new TypeError(n + "must be non-object");
  5156. for (var r in n)
  5157. n.hasOwnProperty(r) && (e[r] = n[r])
  5158. }
  5159. }
  5160. return e
  5161. }
  5162. ,
  5163. n.shrinkBuf = function(e, t) {
  5164. return e.length === t ? e : e.subarray ? e.subarray(0, t) : (e.length = t,
  5165. e)
  5166. }
  5167. ;
  5168. var i = {
  5169. arraySet: function(e, t, n, r, i) {
  5170. if (t.subarray && e.subarray)
  5171. e.set(t.subarray(n, n + r), i);
  5172. else
  5173. for (var o = 0; o < r; o++)
  5174. e[i + o] = t[n + o]
  5175. },
  5176. flattenChunks: function(e) {
  5177. var t, n, r, i, o, a;
  5178. for (t = r = 0,
  5179. n = e.length; t < n; t++)
  5180. r += e[t].length;
  5181. for (a = new Uint8Array(r),
  5182. t = i = 0,
  5183. n = e.length; t < n; t++)
  5184. o = e[t],
  5185. a.set(o, i),
  5186. i += o.length;
  5187. return a
  5188. }
  5189. }
  5190. , o = {
  5191. arraySet: function(e, t, n, r, i) {
  5192. for (var o = 0; o < r; o++)
  5193. e[i + o] = t[n + o]
  5194. },
  5195. flattenChunks: function(e) {
  5196. return [].concat.apply([], e)
  5197. }
  5198. };
  5199. n.setTyped = function(e) {
  5200. e ? (n.Buf8 = Uint8Array,
  5201. n.Buf16 = Uint16Array,
  5202. n.Buf32 = Int32Array,
  5203. n.assign(n, i)) : (n.Buf8 = Array,
  5204. n.Buf16 = Array,
  5205. n.Buf32 = Array,
  5206. n.assign(n, o))
  5207. }
  5208. ,
  5209. n.setTyped(r)
  5210. }
  5211. , {}],
  5212. 42: [function(e, t, n) {
  5213. "use strict";
  5214. var r = e("./common")
  5215. , i = !0
  5216. , o = !0;
  5217. try {
  5218. String.fromCharCode.apply(null, [0])
  5219. } catch (e) {
  5220. i = !1
  5221. }
  5222. try {
  5223. String.fromCharCode.apply(null, new Uint8Array(1))
  5224. } catch (e) {
  5225. o = !1
  5226. }
  5227. for (var a = new r.Buf8(256), s = 0; s < 256; s++)
  5228. a[s] = 252 <= s ? 6 : 248 <= s ? 5 : 240 <= s ? 4 : 224 <= s ? 3 : 192 <= s ? 2 : 1;
  5229. function l(e, t) {
  5230. if (t < 65537 && (e.subarray && o || !e.subarray && i))
  5231. return String.fromCharCode.apply(null, r.shrinkBuf(e, t));
  5232. for (var n = "", a = 0; a < t; a++)
  5233. n += String.fromCharCode(e[a]);
  5234. return n
  5235. }
  5236. a[254] = a[254] = 1,
  5237. n.string2buf = function(e) {
  5238. var t, n, i, o, a, s = e.length, l = 0;
  5239. for (o = 0; o < s; o++)
  5240. 55296 == (64512 & (n = e.charCodeAt(o))) && o + 1 < s && 56320 == (64512 & (i = e.charCodeAt(o + 1))) && (n = 65536 + (n - 55296 << 10) + (i - 56320),
  5241. o++),
  5242. l += n < 128 ? 1 : n < 2048 ? 2 : n < 65536 ? 3 : 4;
  5243. for (t = new r.Buf8(l),
  5244. o = a = 0; a < l; o++)
  5245. 55296 == (64512 & (n = e.charCodeAt(o))) && o + 1 < s && 56320 == (64512 & (i = e.charCodeAt(o + 1))) && (n = 65536 + (n - 55296 << 10) + (i - 56320),
  5246. o++),
  5247. n < 128 ? t[a++] = n : (n < 2048 ? t[a++] = 192 | n >>> 6 : (n < 65536 ? t[a++] = 224 | n >>> 12 : (t[a++] = 240 | n >>> 18,
  5248. t[a++] = 128 | n >>> 12 & 63),
  5249. t[a++] = 128 | n >>> 6 & 63),
  5250. t[a++] = 128 | 63 & n);
  5251. return t
  5252. }
  5253. ,
  5254. n.buf2binstring = function(e) {
  5255. return l(e, e.length)
  5256. }
  5257. ,
  5258. n.binstring2buf = function(e) {
  5259. for (var t = new r.Buf8(e.length), n = 0, i = t.length; n < i; n++)
  5260. t[n] = e.charCodeAt(n);
  5261. return t
  5262. }
  5263. ,
  5264. n.buf2string = function(e, t) {
  5265. var n, r, i, o, s = t || e.length, u = new Array(2 * s);
  5266. for (n = r = 0; n < s; )
  5267. if ((i = e[n++]) < 128)
  5268. u[r++] = i;
  5269. else if (4 < (o = a[i]))
  5270. u[r++] = 65533,
  5271. n += o - 1;
  5272. else {
  5273. for (i &= 2 === o ? 31 : 3 === o ? 15 : 7; 1 < o && n < s; )
  5274. i = i << 6 | 63 & e[n++],
  5275. o--;
  5276. 1 < o ? u[r++] = 65533 : i < 65536 ? u[r++] = i : (i -= 65536,
  5277. u[r++] = 55296 | i >> 10 & 1023,
  5278. u[r++] = 56320 | 1023 & i)
  5279. }
  5280. return l(u, r)
  5281. }
  5282. ,
  5283. n.utf8border = function(e, t) {
  5284. var n;
  5285. for ((t = t || e.length) > e.length && (t = e.length),
  5286. n = t - 1; 0 <= n && 128 == (192 & e[n]); )
  5287. n--;
  5288. return n < 0 || 0 === n ? t : n + a[e[n]] > t ? n : t
  5289. }
  5290. }
  5291. , {
  5292. "./common": 41
  5293. }],
  5294. 43: [function(e, t, n) {
  5295. "use strict";
  5296. t.exports = function(e, t, n, r) {
  5297. for (var i = 65535 & e | 0, o = e >>> 16 & 65535 | 0, a = 0; 0 !== n; ) {
  5298. for (n -= a = 2e3 < n ? 2e3 : n; o = o + (i = i + t[r++] | 0) | 0,
  5299. --a; )
  5300. ;
  5301. i %= 65521,
  5302. o %= 65521
  5303. }
  5304. return i | o << 16 | 0
  5305. }
  5306. }
  5307. , {}],
  5308. 44: [function(e, t, n) {
  5309. "use strict";
  5310. t.exports = {
  5311. Z_NO_FLUSH: 0,
  5312. Z_PARTIAL_FLUSH: 1,
  5313. Z_SYNC_FLUSH: 2,
  5314. Z_FULL_FLUSH: 3,
  5315. Z_FINISH: 4,
  5316. Z_BLOCK: 5,
  5317. Z_TREES: 6,
  5318. Z_OK: 0,
  5319. Z_STREAM_END: 1,
  5320. Z_NEED_DICT: 2,
  5321. Z_ERRNO: -1,
  5322. Z_STREAM_ERROR: -2,
  5323. Z_DATA_ERROR: -3,
  5324. Z_BUF_ERROR: -5,
  5325. Z_NO_COMPRESSION: 0,
  5326. Z_BEST_SPEED: 1,
  5327. Z_BEST_COMPRESSION: 9,
  5328. Z_DEFAULT_COMPRESSION: -1,
  5329. Z_FILTERED: 1,
  5330. Z_HUFFMAN_ONLY: 2,
  5331. Z_RLE: 3,
  5332. Z_FIXED: 4,
  5333. Z_DEFAULT_STRATEGY: 0,
  5334. Z_BINARY: 0,
  5335. Z_TEXT: 1,
  5336. Z_UNKNOWN: 2,
  5337. Z_DEFLATED: 8
  5338. }
  5339. }
  5340. , {}],
  5341. 45: [function(e, t, n) {
  5342. "use strict";
  5343. var r = function() {
  5344. for (var e, t = [], n = 0; n < 256; n++) {
  5345. e = n;
  5346. for (var r = 0; r < 8; r++)
  5347. e = 1 & e ? 3988292384 ^ e >>> 1 : e >>> 1;
  5348. t[n] = e
  5349. }
  5350. return t
  5351. }();
  5352. t.exports = function(e, t, n, i) {
  5353. var o = r
  5354. , a = i + n;
  5355. e ^= -1;
  5356. for (var s = i; s < a; s++)
  5357. e = e >>> 8 ^ o[255 & (e ^ t[s])];
  5358. return -1 ^ e
  5359. }
  5360. }
  5361. , {}],
  5362. 46: [function(e, t, n) {
  5363. "use strict";
  5364. var r, i = e("../utils/common"), o = e("./trees"), a = e("./adler32"), s = e("./crc32"), l = e("./messages"), u = -2, c = 258, d = 262, f = 113;
  5365. function h(e, t) {
  5366. return e.msg = l[t],
  5367. t
  5368. }
  5369. function p(e) {
  5370. return (e << 1) - (4 < e ? 9 : 0)
  5371. }
  5372. function g(e) {
  5373. for (var t = e.length; 0 <= --t; )
  5374. e[t] = 0
  5375. }
  5376. function m(e) {
  5377. var t = e.state
  5378. , n = t.pending;
  5379. n > e.avail_out && (n = e.avail_out),
  5380. 0 !== n && (i.arraySet(e.output, t.pending_buf, t.pending_out, n, e.next_out),
  5381. e.next_out += n,
  5382. t.pending_out += n,
  5383. e.total_out += n,
  5384. e.avail_out -= n,
  5385. t.pending -= n,
  5386. 0 === t.pending && (t.pending_out = 0))
  5387. }
  5388. function v(e, t) {
  5389. o._tr_flush_block(e, 0 <= e.block_start ? e.block_start : -1, e.strstart - e.block_start, t),
  5390. e.block_start = e.strstart,
  5391. m(e.strm)
  5392. }
  5393. function y(e, t) {
  5394. e.pending_buf[e.pending++] = t
  5395. }
  5396. function b(e, t) {
  5397. e.pending_buf[e.pending++] = t >>> 8 & 255,
  5398. e.pending_buf[e.pending++] = 255 & t
  5399. }
  5400. function _(e, t) {
  5401. var n, r, i = e.max_chain_length, o = e.strstart, a = e.prev_length, s = e.nice_match, l = e.strstart > e.w_size - d ? e.strstart - (e.w_size - d) : 0, u = e.window, f = e.w_mask, h = e.prev, p = e.strstart + c, g = u[o + a - 1], m = u[o + a];
  5402. e.prev_length >= e.good_match && (i >>= 2),
  5403. s > e.lookahead && (s = e.lookahead);
  5404. do {
  5405. if (u[(n = t) + a] === m && u[n + a - 1] === g && u[n] === u[o] && u[++n] === u[o + 1]) {
  5406. o += 2,
  5407. n++;
  5408. do {} while (u[++o] === u[++n] && u[++o] === u[++n] && u[++o] === u[++n] && u[++o] === u[++n] && u[++o] === u[++n] && u[++o] === u[++n] && u[++o] === u[++n] && u[++o] === u[++n] && o < p);
  5409. if (r = c - (p - o),
  5410. o = p - c,
  5411. a < r) {
  5412. if (e.match_start = t,
  5413. s <= (a = r))
  5414. break;
  5415. g = u[o + a - 1],
  5416. m = u[o + a]
  5417. }
  5418. }
  5419. } while ((t = h[t & f]) > l && 0 != --i);
  5420. return a <= e.lookahead ? a : e.lookahead
  5421. }
  5422. function w(e) {
  5423. var t, n, r, o, l, u, c, f, h, p, g = e.w_size;
  5424. do {
  5425. if (o = e.window_size - e.lookahead - e.strstart,
  5426. e.strstart >= g + (g - d)) {
  5427. for (i.arraySet(e.window, e.window, g, g, 0),
  5428. e.match_start -= g,
  5429. e.strstart -= g,
  5430. e.block_start -= g,
  5431. t = n = e.hash_size; r = e.head[--t],
  5432. e.head[t] = g <= r ? r - g : 0,
  5433. --n; )
  5434. ;
  5435. for (t = n = g; r = e.prev[--t],
  5436. e.prev[t] = g <= r ? r - g : 0,
  5437. --n; )
  5438. ;
  5439. o += g
  5440. }
  5441. if (0 === e.strm.avail_in)
  5442. break;
  5443. if (u = e.strm,
  5444. c = e.window,
  5445. f = e.strstart + e.lookahead,
  5446. p = void 0,
  5447. (h = o) < (p = u.avail_in) && (p = h),
  5448. n = 0 === p ? 0 : (u.avail_in -= p,
  5449. i.arraySet(c, u.input, u.next_in, p, f),
  5450. 1 === u.state.wrap ? u.adler = a(u.adler, c, p, f) : 2 === u.state.wrap && (u.adler = s(u.adler, c, p, f)),
  5451. u.next_in += p,
  5452. u.total_in += p,
  5453. p),
  5454. e.lookahead += n,
  5455. e.lookahead + e.insert >= 3)
  5456. for (l = e.strstart - e.insert,
  5457. e.ins_h = e.window[l],
  5458. e.ins_h = (e.ins_h << e.hash_shift ^ e.window[l + 1]) & e.hash_mask; e.insert && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[l + 3 - 1]) & e.hash_mask,
  5459. e.prev[l & e.w_mask] = e.head[e.ins_h],
  5460. e.head[e.ins_h] = l,
  5461. l++,
  5462. e.insert--,
  5463. !(e.lookahead + e.insert < 3)); )
  5464. ;
  5465. } while (e.lookahead < d && 0 !== e.strm.avail_in)
  5466. }
  5467. function S(e, t) {
  5468. for (var n, r; ; ) {
  5469. if (e.lookahead < d) {
  5470. if (w(e),
  5471. e.lookahead < d && 0 === t)
  5472. return 1;
  5473. if (0 === e.lookahead)
  5474. break
  5475. }
  5476. if (n = 0,
  5477. e.lookahead >= 3 && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + 3 - 1]) & e.hash_mask,
  5478. n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h],
  5479. e.head[e.ins_h] = e.strstart),
  5480. 0 !== n && e.strstart - n <= e.w_size - d && (e.match_length = _(e, n)),
  5481. e.match_length >= 3)
  5482. if (r = o._tr_tally(e, e.strstart - e.match_start, e.match_length - 3),
  5483. e.lookahead -= e.match_length,
  5484. e.match_length <= e.max_lazy_match && e.lookahead >= 3) {
  5485. for (e.match_length--; e.strstart++,
  5486. e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + 3 - 1]) & e.hash_mask,
  5487. n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h],
  5488. e.head[e.ins_h] = e.strstart,
  5489. 0 != --e.match_length; )
  5490. ;
  5491. e.strstart++
  5492. } else
  5493. e.strstart += e.match_length,
  5494. e.match_length = 0,
  5495. e.ins_h = e.window[e.strstart],
  5496. e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + 1]) & e.hash_mask;
  5497. else
  5498. r = o._tr_tally(e, 0, e.window[e.strstart]),
  5499. e.lookahead--,
  5500. e.strstart++;
  5501. if (r && (v(e, !1),
  5502. 0 === e.strm.avail_out))
  5503. return 1
  5504. }
  5505. return e.insert = e.strstart < 2 ? e.strstart : 2,
  5506. 4 === t ? (v(e, !0),
  5507. 0 === e.strm.avail_out ? 3 : 4) : e.last_lit && (v(e, !1),
  5508. 0 === e.strm.avail_out) ? 1 : 2
  5509. }
  5510. function x(e, t) {
  5511. for (var n, r, i; ; ) {
  5512. if (e.lookahead < d) {
  5513. if (w(e),
  5514. e.lookahead < d && 0 === t)
  5515. return 1;
  5516. if (0 === e.lookahead)
  5517. break
  5518. }
  5519. if (n = 0,
  5520. e.lookahead >= 3 && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + 3 - 1]) & e.hash_mask,
  5521. n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h],
  5522. e.head[e.ins_h] = e.strstart),
  5523. e.prev_length = e.match_length,
  5524. e.prev_match = e.match_start,
  5525. e.match_length = 2,
  5526. 0 !== n && e.prev_length < e.max_lazy_match && e.strstart - n <= e.w_size - d && (e.match_length = _(e, n),
  5527. e.match_length <= 5 && (1 === e.strategy || 3 === e.match_length && 4096 < e.strstart - e.match_start) && (e.match_length = 2)),
  5528. e.prev_length >= 3 && e.match_length <= e.prev_length) {
  5529. for (i = e.strstart + e.lookahead - 3,
  5530. r = o._tr_tally(e, e.strstart - 1 - e.prev_match, e.prev_length - 3),
  5531. e.lookahead -= e.prev_length - 1,
  5532. e.prev_length -= 2; ++e.strstart <= i && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + 3 - 1]) & e.hash_mask,
  5533. n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h],
  5534. e.head[e.ins_h] = e.strstart),
  5535. 0 != --e.prev_length; )
  5536. ;
  5537. if (e.match_available = 0,
  5538. e.match_length = 2,
  5539. e.strstart++,
  5540. r && (v(e, !1),
  5541. 0 === e.strm.avail_out))
  5542. return 1
  5543. } else if (e.match_available) {
  5544. if ((r = o._tr_tally(e, 0, e.window[e.strstart - 1])) && v(e, !1),
  5545. e.strstart++,
  5546. e.lookahead--,
  5547. 0 === e.strm.avail_out)
  5548. return 1
  5549. } else
  5550. e.match_available = 1,
  5551. e.strstart++,
  5552. e.lookahead--
  5553. }
  5554. return e.match_available && (r = o._tr_tally(e, 0, e.window[e.strstart - 1]),
  5555. e.match_available = 0),
  5556. e.insert = e.strstart < 2 ? e.strstart : 2,
  5557. 4 === t ? (v(e, !0),
  5558. 0 === e.strm.avail_out ? 3 : 4) : e.last_lit && (v(e, !1),
  5559. 0 === e.strm.avail_out) ? 1 : 2
  5560. }
  5561. function k(e, t, n, r, i) {
  5562. this.good_length = e,
  5563. this.max_lazy = t,
  5564. this.nice_length = n,
  5565. this.max_chain = r,
  5566. this.func = i
  5567. }
  5568. function I() {
  5569. this.strm = null,
  5570. this.status = 0,
  5571. this.pending_buf = null,
  5572. this.pending_buf_size = 0,
  5573. this.pending_out = 0,
  5574. this.pending = 0,
  5575. this.wrap = 0,
  5576. this.gzhead = null,
  5577. this.gzindex = 0,
  5578. this.method = 8,
  5579. this.last_flush = -1,
  5580. this.w_size = 0,
  5581. this.w_bits = 0,
  5582. this.w_mask = 0,
  5583. this.window = null,
  5584. this.window_size = 0,
  5585. this.prev = null,
  5586. this.head = null,
  5587. this.ins_h = 0,
  5588. this.hash_size = 0,
  5589. this.hash_bits = 0,
  5590. this.hash_mask = 0,
  5591. this.hash_shift = 0,
  5592. this.block_start = 0,
  5593. this.match_length = 0,
  5594. this.prev_match = 0,
  5595. this.match_available = 0,
  5596. this.strstart = 0,
  5597. this.match_start = 0,
  5598. this.lookahead = 0,
  5599. this.prev_length = 0,
  5600. this.max_chain_length = 0,
  5601. this.max_lazy_match = 0,
  5602. this.level = 0,
  5603. this.strategy = 0,
  5604. this.good_match = 0,
  5605. this.nice_match = 0,
  5606. this.dyn_ltree = new i.Buf16(1146),
  5607. this.dyn_dtree = new i.Buf16(122),
  5608. this.bl_tree = new i.Buf16(78),
  5609. g(this.dyn_ltree),
  5610. g(this.dyn_dtree),
  5611. g(this.bl_tree),
  5612. this.l_desc = null,
  5613. this.d_desc = null,
  5614. this.bl_desc = null,
  5615. this.bl_count = new i.Buf16(16),
  5616. this.heap = new i.Buf16(573),
  5617. g(this.heap),
  5618. this.heap_len = 0,
  5619. this.heap_max = 0,
  5620. this.depth = new i.Buf16(573),
  5621. g(this.depth),
  5622. this.l_buf = 0,
  5623. this.lit_bufsize = 0,
  5624. this.last_lit = 0,
  5625. this.d_buf = 0,
  5626. this.opt_len = 0,
  5627. this.static_len = 0,
  5628. this.matches = 0,
  5629. this.insert = 0,
  5630. this.bi_buf = 0,
  5631. this.bi_valid = 0
  5632. }
  5633. function C(e) {
  5634. var t;
  5635. return e && e.state ? (e.total_in = e.total_out = 0,
  5636. e.data_type = 2,
  5637. (t = e.state).pending = 0,
  5638. t.pending_out = 0,
  5639. t.wrap < 0 && (t.wrap = -t.wrap),
  5640. t.status = t.wrap ? 42 : f,
  5641. e.adler = 2 === t.wrap ? 0 : 1,
  5642. t.last_flush = 0,
  5643. o._tr_init(t),
  5644. 0) : h(e, u)
  5645. }
  5646. function M(e) {
  5647. var t = C(e);
  5648. return 0 === t && function(e) {
  5649. e.window_size = 2 * e.w_size,
  5650. g(e.head),
  5651. e.max_lazy_match = r[e.level].max_lazy,
  5652. e.good_match = r[e.level].good_length,
  5653. e.nice_match = r[e.level].nice_length,
  5654. e.max_chain_length = r[e.level].max_chain,
  5655. e.strstart = 0,
  5656. e.block_start = 0,
  5657. e.lookahead = 0,
  5658. e.insert = 0,
  5659. e.match_length = e.prev_length = 2,
  5660. e.match_available = 0,
  5661. e.ins_h = 0
  5662. }(e.state),
  5663. t
  5664. }
  5665. function T(e, t, n, r, o, a) {
  5666. if (!e)
  5667. return u;
  5668. var s = 1;
  5669. if (-1 === t && (t = 6),
  5670. r < 0 ? (s = 0,
  5671. r = -r) : 15 < r && (s = 2,
  5672. r -= 16),
  5673. o < 1 || 9 < o || 8 !== n || r < 8 || 15 < r || t < 0 || 9 < t || a < 0 || 4 < a)
  5674. return h(e, u);
  5675. 8 === r && (r = 9);
  5676. var l = new I;
  5677. return (e.state = l).strm = e,
  5678. l.wrap = s,
  5679. l.gzhead = null,
  5680. l.w_bits = r,
  5681. l.w_size = 1 << l.w_bits,
  5682. l.w_mask = l.w_size - 1,
  5683. l.hash_bits = o + 7,
  5684. l.hash_size = 1 << l.hash_bits,
  5685. l.hash_mask = l.hash_size - 1,
  5686. l.hash_shift = ~~((l.hash_bits + 3 - 1) / 3),
  5687. l.window = new i.Buf8(2 * l.w_size),
  5688. l.head = new i.Buf16(l.hash_size),
  5689. l.prev = new i.Buf16(l.w_size),
  5690. l.lit_bufsize = 1 << o + 6,
  5691. l.pending_buf_size = 4 * l.lit_bufsize,
  5692. l.pending_buf = new i.Buf8(l.pending_buf_size),
  5693. l.d_buf = 1 * l.lit_bufsize,
  5694. l.l_buf = 3 * l.lit_bufsize,
  5695. l.level = t,
  5696. l.strategy = a,
  5697. l.method = n,
  5698. M(e)
  5699. }
  5700. r = [new k(0,0,0,0,(function(e, t) {
  5701. var n = 65535;
  5702. for (n > e.pending_buf_size - 5 && (n = e.pending_buf_size - 5); ; ) {
  5703. if (e.lookahead <= 1) {
  5704. if (w(e),
  5705. 0 === e.lookahead && 0 === t)
  5706. return 1;
  5707. if (0 === e.lookahead)
  5708. break
  5709. }
  5710. e.strstart += e.lookahead,
  5711. e.lookahead = 0;
  5712. var r = e.block_start + n;
  5713. if ((0 === e.strstart || e.strstart >= r) && (e.lookahead = e.strstart - r,
  5714. e.strstart = r,
  5715. v(e, !1),
  5716. 0 === e.strm.avail_out))
  5717. return 1;
  5718. if (e.strstart - e.block_start >= e.w_size - d && (v(e, !1),
  5719. 0 === e.strm.avail_out))
  5720. return 1
  5721. }
  5722. return e.insert = 0,
  5723. 4 === t ? (v(e, !0),
  5724. 0 === e.strm.avail_out ? 3 : 4) : (e.strstart > e.block_start && (v(e, !1),
  5725. e.strm.avail_out),
  5726. 1)
  5727. }
  5728. )), new k(4,4,8,4,S), new k(4,5,16,8,S), new k(4,6,32,32,S), new k(4,4,16,16,x), new k(8,16,32,32,x), new k(8,16,128,128,x), new k(8,32,128,256,x), new k(32,128,258,1024,x), new k(32,258,258,4096,x)],
  5729. n.deflateInit = function(e, t) {
  5730. return T(e, t, 8, 15, 8, 0)
  5731. }
  5732. ,
  5733. n.deflateInit2 = T,
  5734. n.deflateReset = M,
  5735. n.deflateResetKeep = C,
  5736. n.deflateSetHeader = function(e, t) {
  5737. return e && e.state ? 2 !== e.state.wrap ? u : (e.state.gzhead = t,
  5738. 0) : u
  5739. }
  5740. ,
  5741. n.deflate = function(e, t) {
  5742. var n, i, a, l;
  5743. if (!e || !e.state || 5 < t || t < 0)
  5744. return e ? h(e, u) : u;
  5745. if (i = e.state,
  5746. !e.output || !e.input && 0 !== e.avail_in || 666 === i.status && 4 !== t)
  5747. return h(e, 0 === e.avail_out ? -5 : u);
  5748. if (i.strm = e,
  5749. n = i.last_flush,
  5750. i.last_flush = t,
  5751. 42 === i.status)
  5752. if (2 === i.wrap)
  5753. e.adler = 0,
  5754. y(i, 31),
  5755. y(i, 139),
  5756. y(i, 8),
  5757. i.gzhead ? (y(i, (i.gzhead.text ? 1 : 0) + (i.gzhead.hcrc ? 2 : 0) + (i.gzhead.extra ? 4 : 0) + (i.gzhead.name ? 8 : 0) + (i.gzhead.comment ? 16 : 0)),
  5758. y(i, 255 & i.gzhead.time),
  5759. y(i, i.gzhead.time >> 8 & 255),
  5760. y(i, i.gzhead.time >> 16 & 255),
  5761. y(i, i.gzhead.time >> 24 & 255),
  5762. y(i, 9 === i.level ? 2 : 2 <= i.strategy || i.level < 2 ? 4 : 0),
  5763. y(i, 255 & i.gzhead.os),
  5764. i.gzhead.extra && i.gzhead.extra.length && (y(i, 255 & i.gzhead.extra.length),
  5765. y(i, i.gzhead.extra.length >> 8 & 255)),
  5766. i.gzhead.hcrc && (e.adler = s(e.adler, i.pending_buf, i.pending, 0)),
  5767. i.gzindex = 0,
  5768. i.status = 69) : (y(i, 0),
  5769. y(i, 0),
  5770. y(i, 0),
  5771. y(i, 0),
  5772. y(i, 0),
  5773. y(i, 9 === i.level ? 2 : 2 <= i.strategy || i.level < 2 ? 4 : 0),
  5774. y(i, 3),
  5775. i.status = f);
  5776. else {
  5777. var d = 8 + (i.w_bits - 8 << 4) << 8;
  5778. d |= (2 <= i.strategy || i.level < 2 ? 0 : i.level < 6 ? 1 : 6 === i.level ? 2 : 3) << 6,
  5779. 0 !== i.strstart && (d |= 32),
  5780. d += 31 - d % 31,
  5781. i.status = f,
  5782. b(i, d),
  5783. 0 !== i.strstart && (b(i, e.adler >>> 16),
  5784. b(i, 65535 & e.adler)),
  5785. e.adler = 1
  5786. }
  5787. if (69 === i.status)
  5788. if (i.gzhead.extra) {
  5789. for (a = i.pending; i.gzindex < (65535 & i.gzhead.extra.length) && (i.pending !== i.pending_buf_size || (i.gzhead.hcrc && i.pending > a && (e.adler = s(e.adler, i.pending_buf, i.pending - a, a)),
  5790. m(e),
  5791. a = i.pending,
  5792. i.pending !== i.pending_buf_size)); )
  5793. y(i, 255 & i.gzhead.extra[i.gzindex]),
  5794. i.gzindex++;
  5795. i.gzhead.hcrc && i.pending > a && (e.adler = s(e.adler, i.pending_buf, i.pending - a, a)),
  5796. i.gzindex === i.gzhead.extra.length && (i.gzindex = 0,
  5797. i.status = 73)
  5798. } else
  5799. i.status = 73;
  5800. if (73 === i.status)
  5801. if (i.gzhead.name) {
  5802. a = i.pending;
  5803. do {
  5804. if (i.pending === i.pending_buf_size && (i.gzhead.hcrc && i.pending > a && (e.adler = s(e.adler, i.pending_buf, i.pending - a, a)),
  5805. m(e),
  5806. a = i.pending,
  5807. i.pending === i.pending_buf_size)) {
  5808. l = 1;
  5809. break
  5810. }
  5811. l = i.gzindex < i.gzhead.name.length ? 255 & i.gzhead.name.charCodeAt(i.gzindex++) : 0,
  5812. y(i, l)
  5813. } while (0 !== l);
  5814. i.gzhead.hcrc && i.pending > a && (e.adler = s(e.adler, i.pending_buf, i.pending - a, a)),
  5815. 0 === l && (i.gzindex = 0,
  5816. i.status = 91)
  5817. } else
  5818. i.status = 91;
  5819. if (91 === i.status)
  5820. if (i.gzhead.comment) {
  5821. a = i.pending;
  5822. do {
  5823. if (i.pending === i.pending_buf_size && (i.gzhead.hcrc && i.pending > a && (e.adler = s(e.adler, i.pending_buf, i.pending - a, a)),
  5824. m(e),
  5825. a = i.pending,
  5826. i.pending === i.pending_buf_size)) {
  5827. l = 1;
  5828. break
  5829. }
  5830. l = i.gzindex < i.gzhead.comment.length ? 255 & i.gzhead.comment.charCodeAt(i.gzindex++) : 0,
  5831. y(i, l)
  5832. } while (0 !== l);
  5833. i.gzhead.hcrc && i.pending > a && (e.adler = s(e.adler, i.pending_buf, i.pending - a, a)),
  5834. 0 === l && (i.status = 103)
  5835. } else
  5836. i.status = 103;
  5837. if (103 === i.status && (i.gzhead.hcrc ? (i.pending + 2 > i.pending_buf_size && m(e),
  5838. i.pending + 2 <= i.pending_buf_size && (y(i, 255 & e.adler),
  5839. y(i, e.adler >> 8 & 255),
  5840. e.adler = 0,
  5841. i.status = f)) : i.status = f),
  5842. 0 !== i.pending) {
  5843. if (m(e),
  5844. 0 === e.avail_out)
  5845. return i.last_flush = -1,
  5846. 0
  5847. } else if (0 === e.avail_in && p(t) <= p(n) && 4 !== t)
  5848. return h(e, -5);
  5849. if (666 === i.status && 0 !== e.avail_in)
  5850. return h(e, -5);
  5851. if (0 !== e.avail_in || 0 !== i.lookahead || 0 !== t && 666 !== i.status) {
  5852. var _ = 2 === i.strategy ? function(e, t) {
  5853. for (var n; ; ) {
  5854. if (0 === e.lookahead && (w(e),
  5855. 0 === e.lookahead)) {
  5856. if (0 === t)
  5857. return 1;
  5858. break
  5859. }
  5860. if (e.match_length = 0,
  5861. n = o._tr_tally(e, 0, e.window[e.strstart]),
  5862. e.lookahead--,
  5863. e.strstart++,
  5864. n && (v(e, !1),
  5865. 0 === e.strm.avail_out))
  5866. return 1
  5867. }
  5868. return e.insert = 0,
  5869. 4 === t ? (v(e, !0),
  5870. 0 === e.strm.avail_out ? 3 : 4) : e.last_lit && (v(e, !1),
  5871. 0 === e.strm.avail_out) ? 1 : 2
  5872. }(i, t) : 3 === i.strategy ? function(e, t) {
  5873. for (var n, r, i, a, s = e.window; ; ) {
  5874. if (e.lookahead <= c) {
  5875. if (w(e),
  5876. e.lookahead <= c && 0 === t)
  5877. return 1;
  5878. if (0 === e.lookahead)
  5879. break
  5880. }
  5881. if (e.match_length = 0,
  5882. e.lookahead >= 3 && 0 < e.strstart && (r = s[i = e.strstart - 1]) === s[++i] && r === s[++i] && r === s[++i]) {
  5883. a = e.strstart + c;
  5884. do {} while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && i < a);
  5885. e.match_length = c - (a - i),
  5886. e.match_length > e.lookahead && (e.match_length = e.lookahead)
  5887. }
  5888. if (e.match_length >= 3 ? (n = o._tr_tally(e, 1, e.match_length - 3),
  5889. e.lookahead -= e.match_length,
  5890. e.strstart += e.match_length,
  5891. e.match_length = 0) : (n = o._tr_tally(e, 0, e.window[e.strstart]),
  5892. e.lookahead--,
  5893. e.strstart++),
  5894. n && (v(e, !1),
  5895. 0 === e.strm.avail_out))
  5896. return 1
  5897. }
  5898. return e.insert = 0,
  5899. 4 === t ? (v(e, !0),
  5900. 0 === e.strm.avail_out ? 3 : 4) : e.last_lit && (v(e, !1),
  5901. 0 === e.strm.avail_out) ? 1 : 2
  5902. }(i, t) : r[i.level].func(i, t);
  5903. if (3 !== _ && 4 !== _ || (i.status = 666),
  5904. 1 === _ || 3 === _)
  5905. return 0 === e.avail_out && (i.last_flush = -1),
  5906. 0;
  5907. if (2 === _ && (1 === t ? o._tr_align(i) : 5 !== t && (o._tr_stored_block(i, 0, 0, !1),
  5908. 3 === t && (g(i.head),
  5909. 0 === i.lookahead && (i.strstart = 0,
  5910. i.block_start = 0,
  5911. i.insert = 0))),
  5912. m(e),
  5913. 0 === e.avail_out))
  5914. return i.last_flush = -1,
  5915. 0
  5916. }
  5917. return 4 !== t ? 0 : i.wrap <= 0 ? 1 : (2 === i.wrap ? (y(i, 255 & e.adler),
  5918. y(i, e.adler >> 8 & 255),
  5919. y(i, e.adler >> 16 & 255),
  5920. y(i, e.adler >> 24 & 255),
  5921. y(i, 255 & e.total_in),
  5922. y(i, e.total_in >> 8 & 255),
  5923. y(i, e.total_in >> 16 & 255),
  5924. y(i, e.total_in >> 24 & 255)) : (b(i, e.adler >>> 16),
  5925. b(i, 65535 & e.adler)),
  5926. m(e),
  5927. 0 < i.wrap && (i.wrap = -i.wrap),
  5928. 0 !== i.pending ? 0 : 1)
  5929. }
  5930. ,
  5931. n.deflateEnd = function(e) {
  5932. var t;
  5933. return e && e.state ? 42 !== (t = e.state.status) && 69 !== t && 73 !== t && 91 !== t && 103 !== t && t !== f && 666 !== t ? h(e, u) : (e.state = null,
  5934. t === f ? h(e, -3) : 0) : u
  5935. }
  5936. ,
  5937. n.deflateSetDictionary = function(e, t) {
  5938. var n, r, o, s, l, c, d, f, h = t.length;
  5939. if (!e || !e.state)
  5940. return u;
  5941. if (2 === (s = (n = e.state).wrap) || 1 === s && 42 !== n.status || n.lookahead)
  5942. return u;
  5943. for (1 === s && (e.adler = a(e.adler, t, h, 0)),
  5944. n.wrap = 0,
  5945. h >= n.w_size && (0 === s && (g(n.head),
  5946. n.strstart = 0,
  5947. n.block_start = 0,
  5948. n.insert = 0),
  5949. f = new i.Buf8(n.w_size),
  5950. i.arraySet(f, t, h - n.w_size, n.w_size, 0),
  5951. t = f,
  5952. h = n.w_size),
  5953. l = e.avail_in,
  5954. c = e.next_in,
  5955. d = e.input,
  5956. e.avail_in = h,
  5957. e.next_in = 0,
  5958. e.input = t,
  5959. w(n); n.lookahead >= 3; ) {
  5960. for (r = n.strstart,
  5961. o = n.lookahead - 2; n.ins_h = (n.ins_h << n.hash_shift ^ n.window[r + 3 - 1]) & n.hash_mask,
  5962. n.prev[r & n.w_mask] = n.head[n.ins_h],
  5963. n.head[n.ins_h] = r,
  5964. r++,
  5965. --o; )
  5966. ;
  5967. n.strstart = r,
  5968. n.lookahead = 2,
  5969. w(n)
  5970. }
  5971. return n.strstart += n.lookahead,
  5972. n.block_start = n.strstart,
  5973. n.insert = n.lookahead,
  5974. n.lookahead = 0,
  5975. n.match_length = n.prev_length = 2,
  5976. n.match_available = 0,
  5977. e.next_in = c,
  5978. e.input = d,
  5979. e.avail_in = l,
  5980. n.wrap = s,
  5981. 0
  5982. }
  5983. ,
  5984. n.deflateInfo = "pako deflate (from Nodeca project)"
  5985. }
  5986. , {
  5987. "../utils/common": 41,
  5988. "./adler32": 43,
  5989. "./crc32": 45,
  5990. "./messages": 51,
  5991. "./trees": 52
  5992. }],
  5993. 47: [function(e, t, n) {
  5994. "use strict";
  5995. t.exports = function() {
  5996. this.text = 0,
  5997. this.time = 0,
  5998. this.xflags = 0,
  5999. this.os = 0,
  6000. this.extra = null,
  6001. this.extra_len = 0,
  6002. this.name = "",
  6003. this.comment = "",
  6004. this.hcrc = 0,
  6005. this.done = !1
  6006. }
  6007. }
  6008. , {}],
  6009. 48: [function(e, t, n) {
  6010. "use strict";
  6011. t.exports = function(e, t) {
  6012. var n, r, i, o, a, s, l, u, c, d, f, h, p, g, m, v, y, b, _, w, S, x, k, I, C;
  6013. n = e.state,
  6014. r = e.next_in,
  6015. I = e.input,
  6016. i = r + (e.avail_in - 5),
  6017. o = e.next_out,
  6018. C = e.output,
  6019. a = o - (t - e.avail_out),
  6020. s = o + (e.avail_out - 257),
  6021. l = n.dmax,
  6022. u = n.wsize,
  6023. c = n.whave,
  6024. d = n.wnext,
  6025. f = n.window,
  6026. h = n.hold,
  6027. p = n.bits,
  6028. g = n.lencode,
  6029. m = n.distcode,
  6030. v = (1 << n.lenbits) - 1,
  6031. y = (1 << n.distbits) - 1;
  6032. e: do {
  6033. p < 15 && (h += I[r++] << p,
  6034. p += 8,
  6035. h += I[r++] << p,
  6036. p += 8),
  6037. b = g[h & v];
  6038. t: for (; ; ) {
  6039. if (h >>>= _ = b >>> 24,
  6040. p -= _,
  6041. 0 == (_ = b >>> 16 & 255))
  6042. C[o++] = 65535 & b;
  6043. else {
  6044. if (!(16 & _)) {
  6045. if (0 == (64 & _)) {
  6046. b = g[(65535 & b) + (h & (1 << _) - 1)];
  6047. continue t
  6048. }
  6049. if (32 & _) {
  6050. n.mode = 12;
  6051. break e
  6052. }
  6053. e.msg = "invalid literal/length code",
  6054. n.mode = 30;
  6055. break e
  6056. }
  6057. w = 65535 & b,
  6058. (_ &= 15) && (p < _ && (h += I[r++] << p,
  6059. p += 8),
  6060. w += h & (1 << _) - 1,
  6061. h >>>= _,
  6062. p -= _),
  6063. p < 15 && (h += I[r++] << p,
  6064. p += 8,
  6065. h += I[r++] << p,
  6066. p += 8),
  6067. b = m[h & y];
  6068. n: for (; ; ) {
  6069. if (h >>>= _ = b >>> 24,
  6070. p -= _,
  6071. !(16 & (_ = b >>> 16 & 255))) {
  6072. if (0 == (64 & _)) {
  6073. b = m[(65535 & b) + (h & (1 << _) - 1)];
  6074. continue n
  6075. }
  6076. e.msg = "invalid distance code",
  6077. n.mode = 30;
  6078. break e
  6079. }
  6080. if (S = 65535 & b,
  6081. p < (_ &= 15) && (h += I[r++] << p,
  6082. (p += 8) < _ && (h += I[r++] << p,
  6083. p += 8)),
  6084. l < (S += h & (1 << _) - 1)) {
  6085. e.msg = "invalid distance too far back",
  6086. n.mode = 30;
  6087. break e
  6088. }
  6089. if (h >>>= _,
  6090. p -= _,
  6091. (_ = o - a) < S) {
  6092. if (c < (_ = S - _) && n.sane) {
  6093. e.msg = "invalid distance too far back",
  6094. n.mode = 30;
  6095. break e
  6096. }
  6097. if (k = f,
  6098. (x = 0) === d) {
  6099. if (x += u - _,
  6100. _ < w) {
  6101. for (w -= _; C[o++] = f[x++],
  6102. --_; )
  6103. ;
  6104. x = o - S,
  6105. k = C
  6106. }
  6107. } else if (d < _) {
  6108. if (x += u + d - _,
  6109. (_ -= d) < w) {
  6110. for (w -= _; C[o++] = f[x++],
  6111. --_; )
  6112. ;
  6113. if (x = 0,
  6114. d < w) {
  6115. for (w -= _ = d; C[o++] = f[x++],
  6116. --_; )
  6117. ;
  6118. x = o - S,
  6119. k = C
  6120. }
  6121. }
  6122. } else if (x += d - _,
  6123. _ < w) {
  6124. for (w -= _; C[o++] = f[x++],
  6125. --_; )
  6126. ;
  6127. x = o - S,
  6128. k = C
  6129. }
  6130. for (; 2 < w; )
  6131. C[o++] = k[x++],
  6132. C[o++] = k[x++],
  6133. C[o++] = k[x++],
  6134. w -= 3;
  6135. w && (C[o++] = k[x++],
  6136. 1 < w && (C[o++] = k[x++]))
  6137. } else {
  6138. for (x = o - S; C[o++] = C[x++],
  6139. C[o++] = C[x++],
  6140. C[o++] = C[x++],
  6141. 2 < (w -= 3); )
  6142. ;
  6143. w && (C[o++] = C[x++],
  6144. 1 < w && (C[o++] = C[x++]))
  6145. }
  6146. break
  6147. }
  6148. }
  6149. break
  6150. }
  6151. } while (r < i && o < s);
  6152. r -= w = p >> 3,
  6153. h &= (1 << (p -= w << 3)) - 1,
  6154. e.next_in = r,
  6155. e.next_out = o,
  6156. e.avail_in = r < i ? i - r + 5 : 5 - (r - i),
  6157. e.avail_out = o < s ? s - o + 257 : 257 - (o - s),
  6158. n.hold = h,
  6159. n.bits = p
  6160. }
  6161. }
  6162. , {}],
  6163. 49: [function(e, t, n) {
  6164. "use strict";
  6165. var r = e("../utils/common")
  6166. , i = e("./adler32")
  6167. , o = e("./crc32")
  6168. , a = e("./inffast")
  6169. , s = e("./inftrees")
  6170. , l = -2;
  6171. function u(e) {
  6172. return (e >>> 24 & 255) + (e >>> 8 & 65280) + ((65280 & e) << 8) + ((255 & e) << 24)
  6173. }
  6174. function c() {
  6175. this.mode = 0,
  6176. this.last = !1,
  6177. this.wrap = 0,
  6178. this.havedict = !1,
  6179. this.flags = 0,
  6180. this.dmax = 0,
  6181. this.check = 0,
  6182. this.total = 0,
  6183. this.head = null,
  6184. this.wbits = 0,
  6185. this.wsize = 0,
  6186. this.whave = 0,
  6187. this.wnext = 0,
  6188. this.window = null,
  6189. this.hold = 0,
  6190. this.bits = 0,
  6191. this.length = 0,
  6192. this.offset = 0,
  6193. this.extra = 0,
  6194. this.lencode = null,
  6195. this.distcode = null,
  6196. this.lenbits = 0,
  6197. this.distbits = 0,
  6198. this.ncode = 0,
  6199. this.nlen = 0,
  6200. this.ndist = 0,
  6201. this.have = 0,
  6202. this.next = null,
  6203. this.lens = new r.Buf16(320),
  6204. this.work = new r.Buf16(288),
  6205. this.lendyn = null,
  6206. this.distdyn = null,
  6207. this.sane = 0,
  6208. this.back = 0,
  6209. this.was = 0
  6210. }
  6211. function d(e) {
  6212. var t;
  6213. return e && e.state ? (t = e.state,
  6214. e.total_in = e.total_out = t.total = 0,
  6215. e.msg = "",
  6216. t.wrap && (e.adler = 1 & t.wrap),
  6217. t.mode = 1,
  6218. t.last = 0,
  6219. t.havedict = 0,
  6220. t.dmax = 32768,
  6221. t.head = null,
  6222. t.hold = 0,
  6223. t.bits = 0,
  6224. t.lencode = t.lendyn = new r.Buf32(852),
  6225. t.distcode = t.distdyn = new r.Buf32(592),
  6226. t.sane = 1,
  6227. t.back = -1,
  6228. 0) : l
  6229. }
  6230. function f(e) {
  6231. var t;
  6232. return e && e.state ? ((t = e.state).wsize = 0,
  6233. t.whave = 0,
  6234. t.wnext = 0,
  6235. d(e)) : l
  6236. }
  6237. function h(e, t) {
  6238. var n, r;
  6239. return e && e.state ? (r = e.state,
  6240. t < 0 ? (n = 0,
  6241. t = -t) : (n = 1 + (t >> 4),
  6242. t < 48 && (t &= 15)),
  6243. t && (t < 8 || 15 < t) ? l : (null !== r.window && r.wbits !== t && (r.window = null),
  6244. r.wrap = n,
  6245. r.wbits = t,
  6246. f(e))) : l
  6247. }
  6248. function p(e, t) {
  6249. var n, r;
  6250. return e ? (r = new c,
  6251. (e.state = r).window = null,
  6252. 0 !== (n = h(e, t)) && (e.state = null),
  6253. n) : l
  6254. }
  6255. var g, m, v = !0;
  6256. function y(e) {
  6257. if (v) {
  6258. var t;
  6259. for (g = new r.Buf32(512),
  6260. m = new r.Buf32(32),
  6261. t = 0; t < 144; )
  6262. e.lens[t++] = 8;
  6263. for (; t < 256; )
  6264. e.lens[t++] = 9;
  6265. for (; t < 280; )
  6266. e.lens[t++] = 7;
  6267. for (; t < 288; )
  6268. e.lens[t++] = 8;
  6269. for (s(1, e.lens, 0, 288, g, 0, e.work, {
  6270. bits: 9
  6271. }),
  6272. t = 0; t < 32; )
  6273. e.lens[t++] = 5;
  6274. s(2, e.lens, 0, 32, m, 0, e.work, {
  6275. bits: 5
  6276. }),
  6277. v = !1
  6278. }
  6279. e.lencode = g,
  6280. e.lenbits = 9,
  6281. e.distcode = m,
  6282. e.distbits = 5
  6283. }
  6284. function b(e, t, n, i) {
  6285. var o, a = e.state;
  6286. return null === a.window && (a.wsize = 1 << a.wbits,
  6287. a.wnext = 0,
  6288. a.whave = 0,
  6289. a.window = new r.Buf8(a.wsize)),
  6290. i >= a.wsize ? (r.arraySet(a.window, t, n - a.wsize, a.wsize, 0),
  6291. a.wnext = 0,
  6292. a.whave = a.wsize) : (i < (o = a.wsize - a.wnext) && (o = i),
  6293. r.arraySet(a.window, t, n - i, o, a.wnext),
  6294. (i -= o) ? (r.arraySet(a.window, t, n - i, i, 0),
  6295. a.wnext = i,
  6296. a.whave = a.wsize) : (a.wnext += o,
  6297. a.wnext === a.wsize && (a.wnext = 0),
  6298. a.whave < a.wsize && (a.whave += o))),
  6299. 0
  6300. }
  6301. n.inflateReset = f,
  6302. n.inflateReset2 = h,
  6303. n.inflateResetKeep = d,
  6304. n.inflateInit = function(e) {
  6305. return p(e, 15)
  6306. }
  6307. ,
  6308. n.inflateInit2 = p,
  6309. n.inflate = function(e, t) {
  6310. var n, c, d, f, h, p, g, m, v, _, w, S, x, k, I, C, M, T, A, E, O, B, L, P, R = 0, z = new r.Buf8(4), j = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
  6311. if (!e || !e.state || !e.output || !e.input && 0 !== e.avail_in)
  6312. return l;
  6313. 12 === (n = e.state).mode && (n.mode = 13),
  6314. h = e.next_out,
  6315. d = e.output,
  6316. g = e.avail_out,
  6317. f = e.next_in,
  6318. c = e.input,
  6319. p = e.avail_in,
  6320. m = n.hold,
  6321. v = n.bits,
  6322. _ = p,
  6323. w = g,
  6324. B = 0;
  6325. e: for (; ; )
  6326. switch (n.mode) {
  6327. case 1:
  6328. if (0 === n.wrap) {
  6329. n.mode = 13;
  6330. break
  6331. }
  6332. for (; v < 16; ) {
  6333. if (0 === p)
  6334. break e;
  6335. p--,
  6336. m += c[f++] << v,
  6337. v += 8
  6338. }
  6339. if (2 & n.wrap && 35615 === m) {
  6340. z[n.check = 0] = 255 & m,
  6341. z[1] = m >>> 8 & 255,
  6342. n.check = o(n.check, z, 2, 0),
  6343. v = m = 0,
  6344. n.mode = 2;
  6345. break
  6346. }
  6347. if (n.flags = 0,
  6348. n.head && (n.head.done = !1),
  6349. !(1 & n.wrap) || (((255 & m) << 8) + (m >> 8)) % 31) {
  6350. e.msg = "incorrect header check",
  6351. n.mode = 30;
  6352. break
  6353. }
  6354. if (8 != (15 & m)) {
  6355. e.msg = "unknown compression method",
  6356. n.mode = 30;
  6357. break
  6358. }
  6359. if (v -= 4,
  6360. O = 8 + (15 & (m >>>= 4)),
  6361. 0 === n.wbits)
  6362. n.wbits = O;
  6363. else if (O > n.wbits) {
  6364. e.msg = "invalid window size",
  6365. n.mode = 30;
  6366. break
  6367. }
  6368. n.dmax = 1 << O,
  6369. e.adler = n.check = 1,
  6370. n.mode = 512 & m ? 10 : 12,
  6371. v = m = 0;
  6372. break;
  6373. case 2:
  6374. for (; v < 16; ) {
  6375. if (0 === p)
  6376. break e;
  6377. p--,
  6378. m += c[f++] << v,
  6379. v += 8
  6380. }
  6381. if (n.flags = m,
  6382. 8 != (255 & n.flags)) {
  6383. e.msg = "unknown compression method",
  6384. n.mode = 30;
  6385. break
  6386. }
  6387. if (57344 & n.flags) {
  6388. e.msg = "unknown header flags set",
  6389. n.mode = 30;
  6390. break
  6391. }
  6392. n.head && (n.head.text = m >> 8 & 1),
  6393. 512 & n.flags && (z[0] = 255 & m,
  6394. z[1] = m >>> 8 & 255,
  6395. n.check = o(n.check, z, 2, 0)),
  6396. v = m = 0,
  6397. n.mode = 3;
  6398. case 3:
  6399. for (; v < 32; ) {
  6400. if (0 === p)
  6401. break e;
  6402. p--,
  6403. m += c[f++] << v,
  6404. v += 8
  6405. }
  6406. n.head && (n.head.time = m),
  6407. 512 & n.flags && (z[0] = 255 & m,
  6408. z[1] = m >>> 8 & 255,
  6409. z[2] = m >>> 16 & 255,
  6410. z[3] = m >>> 24 & 255,
  6411. n.check = o(n.check, z, 4, 0)),
  6412. v = m = 0,
  6413. n.mode = 4;
  6414. case 4:
  6415. for (; v < 16; ) {
  6416. if (0 === p)
  6417. break e;
  6418. p--,
  6419. m += c[f++] << v,
  6420. v += 8
  6421. }
  6422. n.head && (n.head.xflags = 255 & m,
  6423. n.head.os = m >> 8),
  6424. 512 & n.flags && (z[0] = 255 & m,
  6425. z[1] = m >>> 8 & 255,
  6426. n.check = o(n.check, z, 2, 0)),
  6427. v = m = 0,
  6428. n.mode = 5;
  6429. case 5:
  6430. if (1024 & n.flags) {
  6431. for (; v < 16; ) {
  6432. if (0 === p)
  6433. break e;
  6434. p--,
  6435. m += c[f++] << v,
  6436. v += 8
  6437. }
  6438. n.length = m,
  6439. n.head && (n.head.extra_len = m),
  6440. 512 & n.flags && (z[0] = 255 & m,
  6441. z[1] = m >>> 8 & 255,
  6442. n.check = o(n.check, z, 2, 0)),
  6443. v = m = 0
  6444. } else
  6445. n.head && (n.head.extra = null);
  6446. n.mode = 6;
  6447. case 6:
  6448. if (1024 & n.flags && (p < (S = n.length) && (S = p),
  6449. S && (n.head && (O = n.head.extra_len - n.length,
  6450. n.head.extra || (n.head.extra = new Array(n.head.extra_len)),
  6451. r.arraySet(n.head.extra, c, f, S, O)),
  6452. 512 & n.flags && (n.check = o(n.check, c, S, f)),
  6453. p -= S,
  6454. f += S,
  6455. n.length -= S),
  6456. n.length))
  6457. break e;
  6458. n.length = 0,
  6459. n.mode = 7;
  6460. case 7:
  6461. if (2048 & n.flags) {
  6462. if (0 === p)
  6463. break e;
  6464. for (S = 0; O = c[f + S++],
  6465. n.head && O && n.length < 65536 && (n.head.name += String.fromCharCode(O)),
  6466. O && S < p; )
  6467. ;
  6468. if (512 & n.flags && (n.check = o(n.check, c, S, f)),
  6469. p -= S,
  6470. f += S,
  6471. O)
  6472. break e
  6473. } else
  6474. n.head && (n.head.name = null);
  6475. n.length = 0,
  6476. n.mode = 8;
  6477. case 8:
  6478. if (4096 & n.flags) {
  6479. if (0 === p)
  6480. break e;
  6481. for (S = 0; O = c[f + S++],
  6482. n.head && O && n.length < 65536 && (n.head.comment += String.fromCharCode(O)),
  6483. O && S < p; )
  6484. ;
  6485. if (512 & n.flags && (n.check = o(n.check, c, S, f)),
  6486. p -= S,
  6487. f += S,
  6488. O)
  6489. break e
  6490. } else
  6491. n.head && (n.head.comment = null);
  6492. n.mode = 9;
  6493. case 9:
  6494. if (512 & n.flags) {
  6495. for (; v < 16; ) {
  6496. if (0 === p)
  6497. break e;
  6498. p--,
  6499. m += c[f++] << v,
  6500. v += 8
  6501. }
  6502. if (m !== (65535 & n.check)) {
  6503. e.msg = "header crc mismatch",
  6504. n.mode = 30;
  6505. break
  6506. }
  6507. v = m = 0
  6508. }
  6509. n.head && (n.head.hcrc = n.flags >> 9 & 1,
  6510. n.head.done = !0),
  6511. e.adler = n.check = 0,
  6512. n.mode = 12;
  6513. break;
  6514. case 10:
  6515. for (; v < 32; ) {
  6516. if (0 === p)
  6517. break e;
  6518. p--,
  6519. m += c[f++] << v,
  6520. v += 8
  6521. }
  6522. e.adler = n.check = u(m),
  6523. v = m = 0,
  6524. n.mode = 11;
  6525. case 11:
  6526. if (0 === n.havedict)
  6527. return e.next_out = h,
  6528. e.avail_out = g,
  6529. e.next_in = f,
  6530. e.avail_in = p,
  6531. n.hold = m,
  6532. n.bits = v,
  6533. 2;
  6534. e.adler = n.check = 1,
  6535. n.mode = 12;
  6536. case 12:
  6537. if (5 === t || 6 === t)
  6538. break e;
  6539. case 13:
  6540. if (n.last) {
  6541. m >>>= 7 & v,
  6542. v -= 7 & v,
  6543. n.mode = 27;
  6544. break
  6545. }
  6546. for (; v < 3; ) {
  6547. if (0 === p)
  6548. break e;
  6549. p--,
  6550. m += c[f++] << v,
  6551. v += 8
  6552. }
  6553. switch (n.last = 1 & m,
  6554. v -= 1,
  6555. 3 & (m >>>= 1)) {
  6556. case 0:
  6557. n.mode = 14;
  6558. break;
  6559. case 1:
  6560. if (y(n),
  6561. n.mode = 20,
  6562. 6 !== t)
  6563. break;
  6564. m >>>= 2,
  6565. v -= 2;
  6566. break e;
  6567. case 2:
  6568. n.mode = 17;
  6569. break;
  6570. case 3:
  6571. e.msg = "invalid block type",
  6572. n.mode = 30
  6573. }
  6574. m >>>= 2,
  6575. v -= 2;
  6576. break;
  6577. case 14:
  6578. for (m >>>= 7 & v,
  6579. v -= 7 & v; v < 32; ) {
  6580. if (0 === p)
  6581. break e;
  6582. p--,
  6583. m += c[f++] << v,
  6584. v += 8
  6585. }
  6586. if ((65535 & m) != (m >>> 16 ^ 65535)) {
  6587. e.msg = "invalid stored block lengths",
  6588. n.mode = 30;
  6589. break
  6590. }
  6591. if (n.length = 65535 & m,
  6592. v = m = 0,
  6593. n.mode = 15,
  6594. 6 === t)
  6595. break e;
  6596. case 15:
  6597. n.mode = 16;
  6598. case 16:
  6599. if (S = n.length) {
  6600. if (p < S && (S = p),
  6601. g < S && (S = g),
  6602. 0 === S)
  6603. break e;
  6604. r.arraySet(d, c, f, S, h),
  6605. p -= S,
  6606. f += S,
  6607. g -= S,
  6608. h += S,
  6609. n.length -= S;
  6610. break
  6611. }
  6612. n.mode = 12;
  6613. break;
  6614. case 17:
  6615. for (; v < 14; ) {
  6616. if (0 === p)
  6617. break e;
  6618. p--,
  6619. m += c[f++] << v,
  6620. v += 8
  6621. }
  6622. if (n.nlen = 257 + (31 & m),
  6623. m >>>= 5,
  6624. v -= 5,
  6625. n.ndist = 1 + (31 & m),
  6626. m >>>= 5,
  6627. v -= 5,
  6628. n.ncode = 4 + (15 & m),
  6629. m >>>= 4,
  6630. v -= 4,
  6631. 286 < n.nlen || 30 < n.ndist) {
  6632. e.msg = "too many length or distance symbols",
  6633. n.mode = 30;
  6634. break
  6635. }
  6636. n.have = 0,
  6637. n.mode = 18;
  6638. case 18:
  6639. for (; n.have < n.ncode; ) {
  6640. for (; v < 3; ) {
  6641. if (0 === p)
  6642. break e;
  6643. p--,
  6644. m += c[f++] << v,
  6645. v += 8
  6646. }
  6647. n.lens[j[n.have++]] = 7 & m,
  6648. m >>>= 3,
  6649. v -= 3
  6650. }
  6651. for (; n.have < 19; )
  6652. n.lens[j[n.have++]] = 0;
  6653. if (n.lencode = n.lendyn,
  6654. n.lenbits = 7,
  6655. L = {
  6656. bits: n.lenbits
  6657. },
  6658. B = s(0, n.lens, 0, 19, n.lencode, 0, n.work, L),
  6659. n.lenbits = L.bits,
  6660. B) {
  6661. e.msg = "invalid code lengths set",
  6662. n.mode = 30;
  6663. break
  6664. }
  6665. n.have = 0,
  6666. n.mode = 19;
  6667. case 19:
  6668. for (; n.have < n.nlen + n.ndist; ) {
  6669. for (; C = (R = n.lencode[m & (1 << n.lenbits) - 1]) >>> 16 & 255,
  6670. M = 65535 & R,
  6671. !((I = R >>> 24) <= v); ) {
  6672. if (0 === p)
  6673. break e;
  6674. p--,
  6675. m += c[f++] << v,
  6676. v += 8
  6677. }
  6678. if (M < 16)
  6679. m >>>= I,
  6680. v -= I,
  6681. n.lens[n.have++] = M;
  6682. else {
  6683. if (16 === M) {
  6684. for (P = I + 2; v < P; ) {
  6685. if (0 === p)
  6686. break e;
  6687. p--,
  6688. m += c[f++] << v,
  6689. v += 8
  6690. }
  6691. if (m >>>= I,
  6692. v -= I,
  6693. 0 === n.have) {
  6694. e.msg = "invalid bit length repeat",
  6695. n.mode = 30;
  6696. break
  6697. }
  6698. O = n.lens[n.have - 1],
  6699. S = 3 + (3 & m),
  6700. m >>>= 2,
  6701. v -= 2
  6702. } else if (17 === M) {
  6703. for (P = I + 3; v < P; ) {
  6704. if (0 === p)
  6705. break e;
  6706. p--,
  6707. m += c[f++] << v,
  6708. v += 8
  6709. }
  6710. v -= I,
  6711. O = 0,
  6712. S = 3 + (7 & (m >>>= I)),
  6713. m >>>= 3,
  6714. v -= 3
  6715. } else {
  6716. for (P = I + 7; v < P; ) {
  6717. if (0 === p)
  6718. break e;
  6719. p--,
  6720. m += c[f++] << v,
  6721. v += 8
  6722. }
  6723. v -= I,
  6724. O = 0,
  6725. S = 11 + (127 & (m >>>= I)),
  6726. m >>>= 7,
  6727. v -= 7
  6728. }
  6729. if (n.have + S > n.nlen + n.ndist) {
  6730. e.msg = "invalid bit length repeat",
  6731. n.mode = 30;
  6732. break
  6733. }
  6734. for (; S--; )
  6735. n.lens[n.have++] = O
  6736. }
  6737. }
  6738. if (30 === n.mode)
  6739. break;
  6740. if (0 === n.lens[256]) {
  6741. e.msg = "invalid code -- missing end-of-block",
  6742. n.mode = 30;
  6743. break
  6744. }
  6745. if (n.lenbits = 9,
  6746. L = {
  6747. bits: n.lenbits
  6748. },
  6749. B = s(1, n.lens, 0, n.nlen, n.lencode, 0, n.work, L),
  6750. n.lenbits = L.bits,
  6751. B) {
  6752. e.msg = "invalid literal/lengths set",
  6753. n.mode = 30;
  6754. break
  6755. }
  6756. if (n.distbits = 6,
  6757. n.distcode = n.distdyn,
  6758. L = {
  6759. bits: n.distbits
  6760. },
  6761. B = s(2, n.lens, n.nlen, n.ndist, n.distcode, 0, n.work, L),
  6762. n.distbits = L.bits,
  6763. B) {
  6764. e.msg = "invalid distances set",
  6765. n.mode = 30;
  6766. break
  6767. }
  6768. if (n.mode = 20,
  6769. 6 === t)
  6770. break e;
  6771. case 20:
  6772. n.mode = 21;
  6773. case 21:
  6774. if (6 <= p && 258 <= g) {
  6775. e.next_out = h,
  6776. e.avail_out = g,
  6777. e.next_in = f,
  6778. e.avail_in = p,
  6779. n.hold = m,
  6780. n.bits = v,
  6781. a(e, w),
  6782. h = e.next_out,
  6783. d = e.output,
  6784. g = e.avail_out,
  6785. f = e.next_in,
  6786. c = e.input,
  6787. p = e.avail_in,
  6788. m = n.hold,
  6789. v = n.bits,
  6790. 12 === n.mode && (n.back = -1);
  6791. break
  6792. }
  6793. for (n.back = 0; C = (R = n.lencode[m & (1 << n.lenbits) - 1]) >>> 16 & 255,
  6794. M = 65535 & R,
  6795. !((I = R >>> 24) <= v); ) {
  6796. if (0 === p)
  6797. break e;
  6798. p--,
  6799. m += c[f++] << v,
  6800. v += 8
  6801. }
  6802. if (C && 0 == (240 & C)) {
  6803. for (T = I,
  6804. A = C,
  6805. E = M; C = (R = n.lencode[E + ((m & (1 << T + A) - 1) >> T)]) >>> 16 & 255,
  6806. M = 65535 & R,
  6807. !(T + (I = R >>> 24) <= v); ) {
  6808. if (0 === p)
  6809. break e;
  6810. p--,
  6811. m += c[f++] << v,
  6812. v += 8
  6813. }
  6814. m >>>= T,
  6815. v -= T,
  6816. n.back += T
  6817. }
  6818. if (m >>>= I,
  6819. v -= I,
  6820. n.back += I,
  6821. n.length = M,
  6822. 0 === C) {
  6823. n.mode = 26;
  6824. break
  6825. }
  6826. if (32 & C) {
  6827. n.back = -1,
  6828. n.mode = 12;
  6829. break
  6830. }
  6831. if (64 & C) {
  6832. e.msg = "invalid literal/length code",
  6833. n.mode = 30;
  6834. break
  6835. }
  6836. n.extra = 15 & C,
  6837. n.mode = 22;
  6838. case 22:
  6839. if (n.extra) {
  6840. for (P = n.extra; v < P; ) {
  6841. if (0 === p)
  6842. break e;
  6843. p--,
  6844. m += c[f++] << v,
  6845. v += 8
  6846. }
  6847. n.length += m & (1 << n.extra) - 1,
  6848. m >>>= n.extra,
  6849. v -= n.extra,
  6850. n.back += n.extra
  6851. }
  6852. n.was = n.length,
  6853. n.mode = 23;
  6854. case 23:
  6855. for (; C = (R = n.distcode[m & (1 << n.distbits) - 1]) >>> 16 & 255,
  6856. M = 65535 & R,
  6857. !((I = R >>> 24) <= v); ) {
  6858. if (0 === p)
  6859. break e;
  6860. p--,
  6861. m += c[f++] << v,
  6862. v += 8
  6863. }
  6864. if (0 == (240 & C)) {
  6865. for (T = I,
  6866. A = C,
  6867. E = M; C = (R = n.distcode[E + ((m & (1 << T + A) - 1) >> T)]) >>> 16 & 255,
  6868. M = 65535 & R,
  6869. !(T + (I = R >>> 24) <= v); ) {
  6870. if (0 === p)
  6871. break e;
  6872. p--,
  6873. m += c[f++] << v,
  6874. v += 8
  6875. }
  6876. m >>>= T,
  6877. v -= T,
  6878. n.back += T
  6879. }
  6880. if (m >>>= I,
  6881. v -= I,
  6882. n.back += I,
  6883. 64 & C) {
  6884. e.msg = "invalid distance code",
  6885. n.mode = 30;
  6886. break
  6887. }
  6888. n.offset = M,
  6889. n.extra = 15 & C,
  6890. n.mode = 24;
  6891. case 24:
  6892. if (n.extra) {
  6893. for (P = n.extra; v < P; ) {
  6894. if (0 === p)
  6895. break e;
  6896. p--,
  6897. m += c[f++] << v,
  6898. v += 8
  6899. }
  6900. n.offset += m & (1 << n.extra) - 1,
  6901. m >>>= n.extra,
  6902. v -= n.extra,
  6903. n.back += n.extra
  6904. }
  6905. if (n.offset > n.dmax) {
  6906. e.msg = "invalid distance too far back",
  6907. n.mode = 30;
  6908. break
  6909. }
  6910. n.mode = 25;
  6911. case 25:
  6912. if (0 === g)
  6913. break e;
  6914. if (S = w - g,
  6915. n.offset > S) {
  6916. if ((S = n.offset - S) > n.whave && n.sane) {
  6917. e.msg = "invalid distance too far back",
  6918. n.mode = 30;
  6919. break
  6920. }
  6921. x = S > n.wnext ? (S -= n.wnext,
  6922. n.wsize - S) : n.wnext - S,
  6923. S > n.length && (S = n.length),
  6924. k = n.window
  6925. } else
  6926. k = d,
  6927. x = h - n.offset,
  6928. S = n.length;
  6929. for (g < S && (S = g),
  6930. g -= S,
  6931. n.length -= S; d[h++] = k[x++],
  6932. --S; )
  6933. ;
  6934. 0 === n.length && (n.mode = 21);
  6935. break;
  6936. case 26:
  6937. if (0 === g)
  6938. break e;
  6939. d[h++] = n.length,
  6940. g--,
  6941. n.mode = 21;
  6942. break;
  6943. case 27:
  6944. if (n.wrap) {
  6945. for (; v < 32; ) {
  6946. if (0 === p)
  6947. break e;
  6948. p--,
  6949. m |= c[f++] << v,
  6950. v += 8
  6951. }
  6952. if (w -= g,
  6953. e.total_out += w,
  6954. n.total += w,
  6955. w && (e.adler = n.check = n.flags ? o(n.check, d, w, h - w) : i(n.check, d, w, h - w)),
  6956. w = g,
  6957. (n.flags ? m : u(m)) !== n.check) {
  6958. e.msg = "incorrect data check",
  6959. n.mode = 30;
  6960. break
  6961. }
  6962. v = m = 0
  6963. }
  6964. n.mode = 28;
  6965. case 28:
  6966. if (n.wrap && n.flags) {
  6967. for (; v < 32; ) {
  6968. if (0 === p)
  6969. break e;
  6970. p--,
  6971. m += c[f++] << v,
  6972. v += 8
  6973. }
  6974. if (m !== (4294967295 & n.total)) {
  6975. e.msg = "incorrect length check",
  6976. n.mode = 30;
  6977. break
  6978. }
  6979. v = m = 0
  6980. }
  6981. n.mode = 29;
  6982. case 29:
  6983. B = 1;
  6984. break e;
  6985. case 30:
  6986. B = -3;
  6987. break e;
  6988. case 31:
  6989. return -4;
  6990. case 32:
  6991. default:
  6992. return l
  6993. }
  6994. return e.next_out = h,
  6995. e.avail_out = g,
  6996. e.next_in = f,
  6997. e.avail_in = p,
  6998. n.hold = m,
  6999. n.bits = v,
  7000. (n.wsize || w !== e.avail_out && n.mode < 30 && (n.mode < 27 || 4 !== t)) && b(e, e.output, e.next_out, w - e.avail_out) ? (n.mode = 31,
  7001. -4) : (_ -= e.avail_in,
  7002. w -= e.avail_out,
  7003. e.total_in += _,
  7004. e.total_out += w,
  7005. n.total += w,
  7006. n.wrap && w && (e.adler = n.check = n.flags ? o(n.check, d, w, e.next_out - w) : i(n.check, d, w, e.next_out - w)),
  7007. e.data_type = n.bits + (n.last ? 64 : 0) + (12 === n.mode ? 128 : 0) + (20 === n.mode || 15 === n.mode ? 256 : 0),
  7008. (0 == _ && 0 === w || 4 === t) && 0 === B && (B = -5),
  7009. B)
  7010. }
  7011. ,
  7012. n.inflateEnd = function(e) {
  7013. if (!e || !e.state)
  7014. return l;
  7015. var t = e.state;
  7016. return t.window && (t.window = null),
  7017. e.state = null,
  7018. 0
  7019. }
  7020. ,
  7021. n.inflateGetHeader = function(e, t) {
  7022. var n;
  7023. return e && e.state ? 0 == (2 & (n = e.state).wrap) ? l : ((n.head = t).done = !1,
  7024. 0) : l
  7025. }
  7026. ,
  7027. n.inflateSetDictionary = function(e, t) {
  7028. var n, r = t.length;
  7029. return e && e.state ? 0 !== (n = e.state).wrap && 11 !== n.mode ? l : 11 === n.mode && i(1, t, r, 0) !== n.check ? -3 : b(e, t, r, r) ? (n.mode = 31,
  7030. -4) : (n.havedict = 1,
  7031. 0) : l
  7032. }
  7033. ,
  7034. n.inflateInfo = "pako inflate (from Nodeca project)"
  7035. }
  7036. , {
  7037. "../utils/common": 41,
  7038. "./adler32": 43,
  7039. "./crc32": 45,
  7040. "./inffast": 48,
  7041. "./inftrees": 50
  7042. }],
  7043. 50: [function(e, t, n) {
  7044. "use strict";
  7045. var r = e("../utils/common")
  7046. , i = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0]
  7047. , o = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78]
  7048. , a = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0]
  7049. , s = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
  7050. t.exports = function(e, t, n, l, u, c, d, f) {
  7051. var h, p, g, m, v, y, b, _, w, S = f.bits, x = 0, k = 0, I = 0, C = 0, M = 0, T = 0, A = 0, E = 0, O = 0, B = 0, L = null, P = 0, R = new r.Buf16(16), z = new r.Buf16(16), j = null, F = 0;
  7052. for (x = 0; x <= 15; x++)
  7053. R[x] = 0;
  7054. for (k = 0; k < l; k++)
  7055. R[t[n + k]]++;
  7056. for (M = S,
  7057. C = 15; 1 <= C && 0 === R[C]; C--)
  7058. ;
  7059. if (C < M && (M = C),
  7060. 0 === C)
  7061. return u[c++] = 20971520,
  7062. u[c++] = 20971520,
  7063. f.bits = 1,
  7064. 0;
  7065. for (I = 1; I < C && 0 === R[I]; I++)
  7066. ;
  7067. for (M < I && (M = I),
  7068. x = E = 1; x <= 15; x++)
  7069. if (E <<= 1,
  7070. (E -= R[x]) < 0)
  7071. return -1;
  7072. if (0 < E && (0 === e || 1 !== C))
  7073. return -1;
  7074. for (z[1] = 0,
  7075. x = 1; x < 15; x++)
  7076. z[x + 1] = z[x] + R[x];
  7077. for (k = 0; k < l; k++)
  7078. 0 !== t[n + k] && (d[z[t[n + k]]++] = k);
  7079. if (y = 0 === e ? (L = j = d,
  7080. 19) : 1 === e ? (L = i,
  7081. P -= 257,
  7082. j = o,
  7083. F -= 257,
  7084. 256) : (L = a,
  7085. j = s,
  7086. -1),
  7087. x = I,
  7088. v = c,
  7089. A = k = B = 0,
  7090. g = -1,
  7091. m = (O = 1 << (T = M)) - 1,
  7092. 1 === e && 852 < O || 2 === e && 592 < O)
  7093. return 1;
  7094. for (; ; ) {
  7095. for (b = x - A,
  7096. w = d[k] < y ? (_ = 0,
  7097. d[k]) : d[k] > y ? (_ = j[F + d[k]],
  7098. L[P + d[k]]) : (_ = 96,
  7099. 0),
  7100. h = 1 << x - A,
  7101. I = p = 1 << T; u[v + (B >> A) + (p -= h)] = b << 24 | _ << 16 | w | 0,
  7102. 0 !== p; )
  7103. ;
  7104. for (h = 1 << x - 1; B & h; )
  7105. h >>= 1;
  7106. if (0 !== h ? (B &= h - 1,
  7107. B += h) : B = 0,
  7108. k++,
  7109. 0 == --R[x]) {
  7110. if (x === C)
  7111. break;
  7112. x = t[n + d[k]]
  7113. }
  7114. if (M < x && (B & m) !== g) {
  7115. for (0 === A && (A = M),
  7116. v += I,
  7117. E = 1 << (T = x - A); T + A < C && !((E -= R[T + A]) <= 0); )
  7118. T++,
  7119. E <<= 1;
  7120. if (O += 1 << T,
  7121. 1 === e && 852 < O || 2 === e && 592 < O)
  7122. return 1;
  7123. u[g = B & m] = M << 24 | T << 16 | v - c | 0
  7124. }
  7125. }
  7126. return 0 !== B && (u[v + B] = x - A << 24 | 64 << 16 | 0),
  7127. f.bits = M,
  7128. 0
  7129. }
  7130. }
  7131. , {
  7132. "../utils/common": 41
  7133. }],
  7134. 51: [function(e, t, n) {
  7135. "use strict";
  7136. t.exports = {
  7137. 2: "need dictionary",
  7138. 1: "stream end",
  7139. 0: "",
  7140. "-1": "file error",
  7141. "-2": "stream error",
  7142. "-3": "data error",
  7143. "-4": "insufficient memory",
  7144. "-5": "buffer error",
  7145. "-6": "incompatible version"
  7146. }
  7147. }
  7148. , {}],
  7149. 52: [function(e, t, n) {
  7150. "use strict";
  7151. var r = e("../utils/common");
  7152. function i(e) {
  7153. for (var t = e.length; 0 <= --t; )
  7154. e[t] = 0
  7155. }
  7156. var o = 256
  7157. , a = 286
  7158. , s = 30
  7159. , l = 15
  7160. , u = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0]
  7161. , c = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]
  7162. , d = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7]
  7163. , f = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]
  7164. , h = new Array(576);
  7165. i(h);
  7166. var p = new Array(60);
  7167. i(p);
  7168. var g = new Array(512);
  7169. i(g);
  7170. var m = new Array(256);
  7171. i(m);
  7172. var v = new Array(29);
  7173. i(v);
  7174. var y, b, _, w = new Array(s);
  7175. function S(e, t, n, r, i) {
  7176. this.static_tree = e,
  7177. this.extra_bits = t,
  7178. this.extra_base = n,
  7179. this.elems = r,
  7180. this.max_length = i,
  7181. this.has_stree = e && e.length
  7182. }
  7183. function x(e, t) {
  7184. this.dyn_tree = e,
  7185. this.max_code = 0,
  7186. this.stat_desc = t
  7187. }
  7188. function k(e) {
  7189. return e < 256 ? g[e] : g[256 + (e >>> 7)]
  7190. }
  7191. function I(e, t) {
  7192. e.pending_buf[e.pending++] = 255 & t,
  7193. e.pending_buf[e.pending++] = t >>> 8 & 255
  7194. }
  7195. function C(e, t, n) {
  7196. e.bi_valid > 16 - n ? (e.bi_buf |= t << e.bi_valid & 65535,
  7197. I(e, e.bi_buf),
  7198. e.bi_buf = t >> 16 - e.bi_valid,
  7199. e.bi_valid += n - 16) : (e.bi_buf |= t << e.bi_valid & 65535,
  7200. e.bi_valid += n)
  7201. }
  7202. function M(e, t, n) {
  7203. C(e, n[2 * t], n[2 * t + 1])
  7204. }
  7205. function T(e, t) {
  7206. for (var n = 0; n |= 1 & e,
  7207. e >>>= 1,
  7208. n <<= 1,
  7209. 0 < --t; )
  7210. ;
  7211. return n >>> 1
  7212. }
  7213. function A(e, t, n) {
  7214. var r, i, o = new Array(16), a = 0;
  7215. for (r = 1; r <= l; r++)
  7216. o[r] = a = a + n[r - 1] << 1;
  7217. for (i = 0; i <= t; i++) {
  7218. var s = e[2 * i + 1];
  7219. 0 !== s && (e[2 * i] = T(o[s]++, s))
  7220. }
  7221. }
  7222. function E(e) {
  7223. var t;
  7224. for (t = 0; t < a; t++)
  7225. e.dyn_ltree[2 * t] = 0;
  7226. for (t = 0; t < s; t++)
  7227. e.dyn_dtree[2 * t] = 0;
  7228. for (t = 0; t < 19; t++)
  7229. e.bl_tree[2 * t] = 0;
  7230. e.dyn_ltree[512] = 1,
  7231. e.opt_len = e.static_len = 0,
  7232. e.last_lit = e.matches = 0
  7233. }
  7234. function O(e) {
  7235. 8 < e.bi_valid ? I(e, e.bi_buf) : 0 < e.bi_valid && (e.pending_buf[e.pending++] = e.bi_buf),
  7236. e.bi_buf = 0,
  7237. e.bi_valid = 0
  7238. }
  7239. function B(e, t, n, r) {
  7240. var i = 2 * t
  7241. , o = 2 * n;
  7242. return e[i] < e[o] || e[i] === e[o] && r[t] <= r[n]
  7243. }
  7244. function L(e, t, n) {
  7245. for (var r = e.heap[n], i = n << 1; i <= e.heap_len && (i < e.heap_len && B(t, e.heap[i + 1], e.heap[i], e.depth) && i++,
  7246. !B(t, r, e.heap[i], e.depth)); )
  7247. e.heap[n] = e.heap[i],
  7248. n = i,
  7249. i <<= 1;
  7250. e.heap[n] = r
  7251. }
  7252. function P(e, t, n) {
  7253. var r, i, a, s, l = 0;
  7254. if (0 !== e.last_lit)
  7255. for (; r = e.pending_buf[e.d_buf + 2 * l] << 8 | e.pending_buf[e.d_buf + 2 * l + 1],
  7256. i = e.pending_buf[e.l_buf + l],
  7257. l++,
  7258. 0 === r ? M(e, i, t) : (M(e, (a = m[i]) + o + 1, t),
  7259. 0 !== (s = u[a]) && C(e, i -= v[a], s),
  7260. M(e, a = k(--r), n),
  7261. 0 !== (s = c[a]) && C(e, r -= w[a], s)),
  7262. l < e.last_lit; )
  7263. ;
  7264. M(e, 256, t)
  7265. }
  7266. function R(e, t) {
  7267. var n, r, i, o = t.dyn_tree, a = t.stat_desc.static_tree, s = t.stat_desc.has_stree, u = t.stat_desc.elems, c = -1;
  7268. for (e.heap_len = 0,
  7269. e.heap_max = 573,
  7270. n = 0; n < u; n++)
  7271. 0 !== o[2 * n] ? (e.heap[++e.heap_len] = c = n,
  7272. e.depth[n] = 0) : o[2 * n + 1] = 0;
  7273. for (; e.heap_len < 2; )
  7274. o[2 * (i = e.heap[++e.heap_len] = c < 2 ? ++c : 0)] = 1,
  7275. e.depth[i] = 0,
  7276. e.opt_len--,
  7277. s && (e.static_len -= a[2 * i + 1]);
  7278. for (t.max_code = c,
  7279. n = e.heap_len >> 1; 1 <= n; n--)
  7280. L(e, o, n);
  7281. for (i = u; n = e.heap[1],
  7282. e.heap[1] = e.heap[e.heap_len--],
  7283. L(e, o, 1),
  7284. r = e.heap[1],
  7285. e.heap[--e.heap_max] = n,
  7286. e.heap[--e.heap_max] = r,
  7287. o[2 * i] = o[2 * n] + o[2 * r],
  7288. e.depth[i] = (e.depth[n] >= e.depth[r] ? e.depth[n] : e.depth[r]) + 1,
  7289. o[2 * n + 1] = o[2 * r + 1] = i,
  7290. e.heap[1] = i++,
  7291. L(e, o, 1),
  7292. 2 <= e.heap_len; )
  7293. ;
  7294. e.heap[--e.heap_max] = e.heap[1],
  7295. function(e, t) {
  7296. var n, r, i, o, a, s, u = t.dyn_tree, c = t.max_code, d = t.stat_desc.static_tree, f = t.stat_desc.has_stree, h = t.stat_desc.extra_bits, p = t.stat_desc.extra_base, g = t.stat_desc.max_length, m = 0;
  7297. for (o = 0; o <= l; o++)
  7298. e.bl_count[o] = 0;
  7299. for (u[2 * e.heap[e.heap_max] + 1] = 0,
  7300. n = e.heap_max + 1; n < 573; n++)
  7301. g < (o = u[2 * u[2 * (r = e.heap[n]) + 1] + 1] + 1) && (o = g,
  7302. m++),
  7303. u[2 * r + 1] = o,
  7304. c < r || (e.bl_count[o]++,
  7305. a = 0,
  7306. p <= r && (a = h[r - p]),
  7307. s = u[2 * r],
  7308. e.opt_len += s * (o + a),
  7309. f && (e.static_len += s * (d[2 * r + 1] + a)));
  7310. if (0 !== m) {
  7311. do {
  7312. for (o = g - 1; 0 === e.bl_count[o]; )
  7313. o--;
  7314. e.bl_count[o]--,
  7315. e.bl_count[o + 1] += 2,
  7316. e.bl_count[g]--,
  7317. m -= 2
  7318. } while (0 < m);
  7319. for (o = g; 0 !== o; o--)
  7320. for (r = e.bl_count[o]; 0 !== r; )
  7321. c < (i = e.heap[--n]) || (u[2 * i + 1] !== o && (e.opt_len += (o - u[2 * i + 1]) * u[2 * i],
  7322. u[2 * i + 1] = o),
  7323. r--)
  7324. }
  7325. }(e, t),
  7326. A(o, c, e.bl_count)
  7327. }
  7328. function z(e, t, n) {
  7329. var r, i, o = -1, a = t[1], s = 0, l = 7, u = 4;
  7330. for (0 === a && (l = 138,
  7331. u = 3),
  7332. t[2 * (n + 1) + 1] = 65535,
  7333. r = 0; r <= n; r++)
  7334. i = a,
  7335. a = t[2 * (r + 1) + 1],
  7336. ++s < l && i === a || (s < u ? e.bl_tree[2 * i] += s : 0 !== i ? (i !== o && e.bl_tree[2 * i]++,
  7337. e.bl_tree[32]++) : s <= 10 ? e.bl_tree[34]++ : e.bl_tree[36]++,
  7338. o = i,
  7339. u = (s = 0) === a ? (l = 138,
  7340. 3) : i === a ? (l = 6,
  7341. 3) : (l = 7,
  7342. 4))
  7343. }
  7344. function j(e, t, n) {
  7345. var r, i, o = -1, a = t[1], s = 0, l = 7, u = 4;
  7346. for (0 === a && (l = 138,
  7347. u = 3),
  7348. r = 0; r <= n; r++)
  7349. if (i = a,
  7350. a = t[2 * (r + 1) + 1],
  7351. !(++s < l && i === a)) {
  7352. if (s < u)
  7353. for (; M(e, i, e.bl_tree),
  7354. 0 != --s; )
  7355. ;
  7356. else
  7357. 0 !== i ? (i !== o && (M(e, i, e.bl_tree),
  7358. s--),
  7359. M(e, 16, e.bl_tree),
  7360. C(e, s - 3, 2)) : s <= 10 ? (M(e, 17, e.bl_tree),
  7361. C(e, s - 3, 3)) : (M(e, 18, e.bl_tree),
  7362. C(e, s - 11, 7));
  7363. o = i,
  7364. u = (s = 0) === a ? (l = 138,
  7365. 3) : i === a ? (l = 6,
  7366. 3) : (l = 7,
  7367. 4)
  7368. }
  7369. }
  7370. i(w);
  7371. var F = !1;
  7372. function D(e, t, n, i) {
  7373. C(e, 0 + (i ? 1 : 0), 3),
  7374. function(e, t, n, i) {
  7375. O(e),
  7376. I(e, n),
  7377. I(e, ~n),
  7378. r.arraySet(e.pending_buf, e.window, t, n, e.pending),
  7379. e.pending += n
  7380. }(e, t, n)
  7381. }
  7382. n._tr_init = function(e) {
  7383. F || (function() {
  7384. var e, t, n, r, i, o = new Array(16);
  7385. for (r = n = 0; r < 28; r++)
  7386. for (v[r] = n,
  7387. e = 0; e < 1 << u[r]; e++)
  7388. m[n++] = r;
  7389. for (m[n - 1] = r,
  7390. r = i = 0; r < 16; r++)
  7391. for (w[r] = i,
  7392. e = 0; e < 1 << c[r]; e++)
  7393. g[i++] = r;
  7394. for (i >>= 7; r < s; r++)
  7395. for (w[r] = i << 7,
  7396. e = 0; e < 1 << c[r] - 7; e++)
  7397. g[256 + i++] = r;
  7398. for (t = 0; t <= l; t++)
  7399. o[t] = 0;
  7400. for (e = 0; e <= 143; )
  7401. h[2 * e + 1] = 8,
  7402. e++,
  7403. o[8]++;
  7404. for (; e <= 255; )
  7405. h[2 * e + 1] = 9,
  7406. e++,
  7407. o[9]++;
  7408. for (; e <= 279; )
  7409. h[2 * e + 1] = 7,
  7410. e++,
  7411. o[7]++;
  7412. for (; e <= 287; )
  7413. h[2 * e + 1] = 8,
  7414. e++,
  7415. o[8]++;
  7416. for (A(h, 287, o),
  7417. e = 0; e < s; e++)
  7418. p[2 * e + 1] = 5,
  7419. p[2 * e] = T(e, 5);
  7420. y = new S(h,u,257,a,l),
  7421. b = new S(p,c,0,s,l),
  7422. _ = new S(new Array(0),d,0,19,7)
  7423. }(),
  7424. F = !0),
  7425. e.l_desc = new x(e.dyn_ltree,y),
  7426. e.d_desc = new x(e.dyn_dtree,b),
  7427. e.bl_desc = new x(e.bl_tree,_),
  7428. e.bi_buf = 0,
  7429. e.bi_valid = 0,
  7430. E(e)
  7431. }
  7432. ,
  7433. n._tr_stored_block = D,
  7434. n._tr_flush_block = function(e, t, n, r) {
  7435. var i, a, s = 0;
  7436. 0 < e.level ? (2 === e.strm.data_type && (e.strm.data_type = function(e) {
  7437. var t, n = 4093624447;
  7438. for (t = 0; t <= 31; t++,
  7439. n >>>= 1)
  7440. if (1 & n && 0 !== e.dyn_ltree[2 * t])
  7441. return 0;
  7442. if (0 !== e.dyn_ltree[18] || 0 !== e.dyn_ltree[20] || 0 !== e.dyn_ltree[26])
  7443. return 1;
  7444. for (t = 32; t < o; t++)
  7445. if (0 !== e.dyn_ltree[2 * t])
  7446. return 1;
  7447. return 0
  7448. }(e)),
  7449. R(e, e.l_desc),
  7450. R(e, e.d_desc),
  7451. s = function(e) {
  7452. var t;
  7453. for (z(e, e.dyn_ltree, e.l_desc.max_code),
  7454. z(e, e.dyn_dtree, e.d_desc.max_code),
  7455. R(e, e.bl_desc),
  7456. t = 18; 3 <= t && 0 === e.bl_tree[2 * f[t] + 1]; t--)
  7457. ;
  7458. return e.opt_len += 3 * (t + 1) + 5 + 5 + 4,
  7459. t
  7460. }(e),
  7461. i = e.opt_len + 3 + 7 >>> 3,
  7462. (a = e.static_len + 3 + 7 >>> 3) <= i && (i = a)) : i = a = n + 5,
  7463. n + 4 <= i && -1 !== t ? D(e, t, n, r) : 4 === e.strategy || a === i ? (C(e, 2 + (r ? 1 : 0), 3),
  7464. P(e, h, p)) : (C(e, 4 + (r ? 1 : 0), 3),
  7465. function(e, t, n, r) {
  7466. var i;
  7467. for (C(e, t - 257, 5),
  7468. C(e, n - 1, 5),
  7469. C(e, r - 4, 4),
  7470. i = 0; i < r; i++)
  7471. C(e, e.bl_tree[2 * f[i] + 1], 3);
  7472. j(e, e.dyn_ltree, t - 1),
  7473. j(e, e.dyn_dtree, n - 1)
  7474. }(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, s + 1),
  7475. P(e, e.dyn_ltree, e.dyn_dtree)),
  7476. E(e),
  7477. r && O(e)
  7478. }
  7479. ,
  7480. n._tr_tally = function(e, t, n) {
  7481. return e.pending_buf[e.d_buf + 2 * e.last_lit] = t >>> 8 & 255,
  7482. e.pending_buf[e.d_buf + 2 * e.last_lit + 1] = 255 & t,
  7483. e.pending_buf[e.l_buf + e.last_lit] = 255 & n,
  7484. e.last_lit++,
  7485. 0 === t ? e.dyn_ltree[2 * n]++ : (e.matches++,
  7486. t--,
  7487. e.dyn_ltree[2 * (m[n] + o + 1)]++,
  7488. e.dyn_dtree[2 * k(t)]++),
  7489. e.last_lit === e.lit_bufsize - 1
  7490. }
  7491. ,
  7492. n._tr_align = function(e) {
  7493. C(e, 2, 3),
  7494. M(e, 256, h),
  7495. function(e) {
  7496. 16 === e.bi_valid ? (I(e, e.bi_buf),
  7497. e.bi_buf = 0,
  7498. e.bi_valid = 0) : 8 <= e.bi_valid && (e.pending_buf[e.pending++] = 255 & e.bi_buf,
  7499. e.bi_buf >>= 8,
  7500. e.bi_valid -= 8)
  7501. }(e)
  7502. }
  7503. }
  7504. , {
  7505. "../utils/common": 41
  7506. }],
  7507. 53: [function(e, t, n) {
  7508. "use strict";
  7509. t.exports = function() {
  7510. this.input = null,
  7511. this.next_in = 0,
  7512. this.avail_in = 0,
  7513. this.total_in = 0,
  7514. this.output = null,
  7515. this.next_out = 0,
  7516. this.avail_out = 0,
  7517. this.total_out = 0,
  7518. this.msg = "",
  7519. this.state = null,
  7520. this.data_type = 2,
  7521. this.adler = 0
  7522. }
  7523. }
  7524. , {}],
  7525. 54: [function(e, t, n) {
  7526. "use strict";
  7527. t.exports = "function" == typeof r ? r : function() {
  7528. var e = [].slice.apply(arguments);
  7529. e.splice(1, 0, 0),
  7530. setTimeout.apply(null, e)
  7531. }
  7532. }
  7533. , {}]
  7534. }, {}, [10])(10)
  7535. }
  7536. ).call(this, n(324).Buffer, n(20), n(184).setImmediate)
  7537. },
  7538. 139: function(e) {
  7539. e.exports = JSON.parse('{"tagMarkers":{"id":"tagMarkers","markers":[{"markerId":"tag-red","groupId":"tagMarkers","resource":"markers/tagMarkers/tag-red.svg","hidden":false},{"markerId":"tag-orange","groupId":"tagMarkers","resource":"markers/tagMarkers/tag-orange.svg","hidden":false},{"markerId":"tag-yellow","groupId":"tagMarkers","resource":"markers/tagMarkers/tag-yellow.svg","hidden":false},{"markerId":"tag-green","groupId":"tagMarkers","resource":"markers/tagMarkers/tag-green.svg","hidden":false},{"markerId":"tag-blue","groupId":"tagMarkers","resource":"markers/tagMarkers/tag-blue.svg","hidden":false},{"markerId":"tag-dark-purple","groupId":"tagMarkers","resource":"markers/tagMarkers/tag-dark-purple.svg","hidden":false},{"markerId":"tag-grey","groupId":"tagMarkers","resource":"markers/tagMarkers/tag-grey.svg","hidden":false},{"markerId":"tag-dark-blue","groupId":"tagMarkers","resource":"markers/tagMarkers/tag-dark-blue.svg","hidden":true}],"hidden":false},"priorityMarkers":{"id":"priorityMarkers","markers":[{"markerId":"priority-1","groupId":"priorityMarkers","resource":"markers/priorityMarkers/priority-1.svg","hidden":false},{"markerId":"priority-2","groupId":"priorityMarkers","resource":"markers/priorityMarkers/priority-2.svg","hidden":false},{"markerId":"priority-3","groupId":"priorityMarkers","resource":"markers/priorityMarkers/priority-3.svg","hidden":false},{"markerId":"priority-4","groupId":"priorityMarkers","resource":"markers/priorityMarkers/priority-4.svg","hidden":false},{"markerId":"priority-5","groupId":"priorityMarkers","resource":"markers/priorityMarkers/priority-5.svg","hidden":false},{"markerId":"priority-6","groupId":"priorityMarkers","resource":"markers/priorityMarkers/priority-6.svg","hidden":false},{"markerId":"priority-7","groupId":"priorityMarkers","resource":"markers/priorityMarkers/priority-7.svg","hidden":false},{"markerId":"priority-8","groupId":"priorityMarkers","resource":"markers/priorityMarkers/priority-8.svg","hidden":true},{"markerId":"priority-9","groupId":"priorityMarkers","resource":"markers/priorityMarkers/priority-9.svg","hidden":true}],"hidden":false},"smileyMarkers":{"id":"smileyMarkers","markers":[{"markerId":"smiley-laugh","groupId":"smileyMarkers","resource":"markers/smileyMarkers/smiley-laugh.svg","hidden":false},{"markerId":"smiley-smile","groupId":"smileyMarkers","resource":"markers/smileyMarkers/smiley-smile.svg","hidden":false},{"markerId":"smiley-cry","groupId":"smileyMarkers","resource":"markers/smileyMarkers/smiley-cry.svg","hidden":false},{"markerId":"smiley-surprise","groupId":"smileyMarkers","resource":"markers/smileyMarkers/smiley-surprise.svg","hidden":false},{"markerId":"smiley-boring","groupId":"smileyMarkers","resource":"markers/smileyMarkers/smiley-boring.svg","hidden":false},{"markerId":"smiley-angry","groupId":"smileyMarkers","resource":"markers/smileyMarkers/smiley-angry.svg","hidden":false},{"markerId":"smiley-embarrass","groupId":"smileyMarkers","resource":"markers/smileyMarkers/smiley-embarrass.svg","hidden":false},{"markerId":"smiley-think","groupId":"smileyMarkers","resource":"markers/smileyMarkers/smiley-think.svg","hidden":false},{"markerId":"smiley-love","groupId":"smileyMarkers","resource":"markers/smileyMarkers/smiley-love.svg","hidden":false},{"markerId":"smiley-sad","groupId":"smileyMarkers","resource":"markers/smileyMarkers/smiley-sad.svg","hidden":false},{"markerId":"smiley-cry-laugh","groupId":"smileyMarkers","resource":"markers/smileyMarkers/smiley-cry-laugh.svg","hidden":false},{"markerId":"smiley-adore","groupId":"smileyMarkers","resource":"markers/smileyMarkers/smiley-adore.svg","hidden":false},{"markerId":"smiley-devil","groupId":"smileyMarkers","resource":"markers/smileyMarkers/smiley-devil.svg","hidden":false},{"markerId":"smiley-upset","groupId":"smileyMarkers","resource":"markers/smileyMarkers/smiley-upset.svg","hidden":false}],"hidden":true},"taskMarkers":{"id":"taskMarkers","markers":[{"markerId":"task-start","groupId":"taskMarkers","resource":"markers/taskMarkers/task-start.svg","hidden":false},{"markerId":"task-oct","groupId":"taskMarkers","resource":"markers/taskMarkers/task-oct.svg","hidden":false},{"markerId":"task-quarter","groupId":"taskMarkers","resource":"markers/taskMarkers/task-quarter.svg","hidden":true},{"markerId":"task-3oct","groupId":"taskMarkers","resource":"markers/taskMarkers/task-3oct.svg","hidden":false},{"markerId":"task-half","groupId":"taskMarkers","resource":"markers/taskMarkers/task-half.svg","hidden":false},{"markerId":"task-5oct","groupId":"taskMarkers","resource":"markers/taskMarkers/task-5oct.svg","hidden":false},{"markerId":"task-3quar","groupId":"taskMarkers","resource":"markers/taskMarkers/task-3quar.svg","hidden":true},{"markerId":"task-7oct","groupId":"taskMarkers","resource":"markers/taskMarkers/task-7oct.svg","hidden":false},{"markerId":"task-done","groupId":"taskMarkers","resource":"markers/taskMarkers/task-done.svg","hidden":false},{"markerId":"task-pause","groupId":"taskMarkers","resource":"markers/taskMarkers/task-pause.png","hidden":true}],"hidden":false},"flagMarkers":{"id":"flagMarkers","markers":[{"markerId":"flag-red","groupId":"flagMarkers","resource":"markers/flagMarkers/flag-red.svg","hidden":false},{"markerId":"flag-orange","groupId":"flagMarkers","resource":"markers/flagMarkers/flag-orange.svg","hidden":false},{"markerId":"flag-yellow","groupId":"flagMarkers","resource":"markers/flagMarkers/flag-yellow.svg","hidden":false},{"markerId":"flag-green","groupId":"flagMarkers","resource":"markers/flagMarkers/flag-green.svg","hidden":false},{"markerId":"flag-blue","groupId":"flagMarkers","resource":"markers/flagMarkers/flag-blue.svg","hidden":false},{"markerId":"flag-purple","groupId":"flagMarkers","resource":"markers/flagMarkers/flag-purple.svg","hidden":false},{"markerId":"flag-gray","groupId":"flagMarkers","resource":"markers/flagMarkers/flag-gray.svg","hidden":false},{"markerId":"flag-dark-blue","groupId":"flagMarkers","resource":"markers/flagMarkers/flag-dark-blue.svg","hidden":true},{"markerId":"flag-dark-green","groupId":"flagMarkers","resource":"markers/flagMarkers/flag-dark-green.svg","hidden":true},{"markerId":"flag-dark-gray","groupId":"flagMarkers","resource":"markers/flagMarkers/flag-dark-gray.svg","hidden":true}],"hidden":false},"starMarkers":{"id":"starMarkers","markers":[{"markerId":"star-red","groupId":"starMarkers","resource":"markers/starMarkers/star-red.svg","hidden":false},{"markerId":"star-orange","groupId":"starMarkers","resource":"markers/starMarkers/star-orange.svg","hidden":false},{"markerId":"star-yellow","groupId":"starMarkers","resource":"markers/starMarkers/star-yellow.svg","hidden":false},{"markerId":"star-green","groupId":"starMarkers","resource":"markers/starMarkers/star-green.svg","hidden":false},{"markerId":"star-blue","groupId":"starMarkers","resource":"markers/starMarkers/star-blue.svg","hidden":false},{"markerId":"star-purple","groupId":"starMarkers","resource":"markers/starMarkers/star-purple.svg","hidden":false},{"markerId":"star-gray","groupId":"starMarkers","resource":"markers/starMarkers/star-gray.svg","hidden":false},{"markerId":"star-dark-blue","groupId":"starMarkers","resource":"markers/starMarkers/star-dark-blue.svg","hidden":true},{"markerId":"star-dark-green","groupId":"starMarkers","resource":"markers/starMarkers/star-dark-green.svg","hidden":true},{"markerId":"star-dark-gray","groupId":"starMarkers","resource":"markers/starMarkers/star-dark-gray.svg","hidden":true}],"hidden":false},"peopleMarkers":{"id":"peopleMarkers","markers":[{"markerId":"people-red","groupId":"peopleMarkers","resource":"markers/peopleMarkers/people-red.svg","hidden":false},{"markerId":"people-orange","groupId":"peopleMarkers","resource":"markers/peopleMarkers/people-orange.svg","hidden":false},{"markerId":"people-yellow","groupId":"peopleMarkers","resource":"markers/peopleMarkers/people-yellow.svg","hidden":false},{"markerId":"people-green","groupId":"peopleMarkers","resource":"markers/peopleMarkers/people-green.svg","hidden":false},{"markerId":"people-blue","groupId":"peopleMarkers","resource":"markers/peopleMarkers/people-blue.svg","hidden":false},{"markerId":"people-purple","groupId":"peopleMarkers","resource":"markers/peopleMarkers/people-purple.svg","hidden":false},{"markerId":"people-gray","groupId":"peopleMarkers","resource":"markers/peopleMarkers/people-gray.svg","hidden":false},{"markerId":"people-dark-blue","groupId":"peopleMarkers","resource":"markers/peopleMarkers/people-dark-blue.svg","hidden":true},{"markerId":"people-dark-green","groupId":"peopleMarkers","resource":"markers/peopleMarkers/people-dark-green.svg","hidden":true},{"markerId":"people-dark-gray","groupId":"peopleMarkers","resource":"markers/peopleMarkers/people-dark-gray.svg","hidden":true}],"hidden":false},"arrowMarkers":{"id":"arrowMarkers","markers":[{"markerId":"arrow-left","groupId":"arrowMarkers","resource":"markers/arrowMarkers/arrow-left.svg","hidden":false},{"markerId":"arrow-right","groupId":"arrowMarkers","resource":"markers/arrowMarkers/arrow-right.svg","hidden":false},{"markerId":"arrow-up","groupId":"arrowMarkers","resource":"markers/arrowMarkers/arrow-up.svg","hidden":false},{"markerId":"arrow-down","groupId":"arrowMarkers","resource":"markers/arrowMarkers/arrow-down.svg","hidden":false},{"markerId":"arrow-left-right","groupId":"arrowMarkers","resource":"markers/arrowMarkers/arrow-left-right.svg","hidden":false},{"markerId":"arrow-up-down","groupId":"arrowMarkers","resource":"markers/arrowMarkers/arrow-up-down.svg","hidden":false},{"markerId":"arrow-refresh","groupId":"arrowMarkers","resource":"markers/arrowMarkers/arrow-refresh.svg","hidden":false},{"markerId":"arrow-up-right","groupId":"arrowMarkers","resource":"markers/arrowMarkers/arrow-up-right.svg","hidden":true},{"markerId":"arrow-down-right","groupId":"arrowMarkers","resource":"markers/arrowMarkers/arrow-down-right.svg","hidden":true},{"markerId":"arrow-down-left","groupId":"arrowMarkers","resource":"markers/arrowMarkers/arrow-down-left.svg","hidden":true},{"markerId":"arrow-up-left","groupId":"arrowMarkers","resource":"markers/arrowMarkers/arrow-up-left.svg","hidden":true}],"hidden":true},"academicMarkers":{"id":"academicMarkers","markers":[{"markerId":"c_symbol_quote","groupId":"academicMarkers","resource":"markers/academicMarkers/c_symbol_quote.svg","hidden":false},{"markerId":"c_symbol_apostrophe","groupId":"academicMarkers","resource":"markers/academicMarkers/c_symbol_apostrophe.svg","hidden":false},{"markerId":"symbol-question","groupId":"academicMarkers","resource":"markers/academicMarkers/symbol-question.svg","hidden":false},{"markerId":"symbol-attention","groupId":"academicMarkers","resource":"markers/academicMarkers/symbol-attention.svg","hidden":false},{"markerId":"symbol-pause","groupId":"academicMarkers","resource":"markers/academicMarkers/symbol-pause.svg","hidden":false},{"markerId":"symbol-wrong","groupId":"academicMarkers","resource":"markers/academicMarkers/symbol-wrong.svg","hidden":false},{"markerId":"symbol-about","groupId":"academicMarkers","resource":"markers/academicMarkers/symbol-about.svg","hidden":false},{"markerId":"symbol-plus","groupId":"academicMarkers","resource":"markers/academicMarkers/symbol-plus.svg","hidden":false},{"markerId":"symbol-minus","groupId":"academicMarkers","resource":"markers/academicMarkers/symbol-minus.svg","hidden":false},{"markerId":"symbol-divide","groupId":"academicMarkers","resource":"markers/academicMarkers/symbol-divide.svg","hidden":false},{"markerId":"symbol-equality","groupId":"academicMarkers","resource":"markers/academicMarkers/symbol-equality.svg","hidden":false},{"markerId":"symbol-right","groupId":"academicMarkers","resource":"markers/academicMarkers/symbol-right.svg","hidden":false},{"markerId":"symbol-code","groupId":"academicMarkers","resource":"markers/academicMarkers/symbol-code.svg","hidden":false},{"markerId":"symbol-not-equality","groupId":"academicMarkers","resource":"markers/academicMarkers/symbol-not-equality.svg","hidden":false}],"hidden":true},"socialMarkers":{"id":"socialMarkers","markers":[{"markerId":"c_symbol_broken_heart","groupId":"socialMarkers","resource":"markers/socialMarkers/c_symbol_broken_heart.svg","hidden":false},{"markerId":"c_symbol_contact","groupId":"socialMarkers","resource":"markers/socialMarkers/c_symbol_contact.svg","hidden":false},{"markerId":"symbol-no-entry","groupId":"socialMarkers","resource":"markers/socialMarkers/symbol-no-entry.svg","hidden":false},{"markerId":"symbol-notice","groupId":"socialMarkers","resource":"markers/socialMarkers/symbol-notice.svg","hidden":false},{"markerId":"symbol-rss","groupId":"socialMarkers","resource":"markers/socialMarkers/symbol-rss.svg","hidden":false},{"markerId":"symbol_forward","groupId":"socialMarkers","resource":"markers/socialMarkers/symbol_forward.svg","hidden":false},{"markerId":"symbol-share","groupId":"socialMarkers","resource":"markers/socialMarkers/symbol-share.svg","hidden":false},{"markerId":"symbol-comment","groupId":"socialMarkers","resource":"markers/socialMarkers/symbol-comment.svg","hidden":false}],"hidden":true},"celebrationMarkers":{"id":"celebrationMarkers","markers":[{"markerId":"celebration-ribbon","groupId":"celebrationMarkers","resource":"markers/celebrationMarkers/celebration-ribbon.svg","hidden":true},{"markerId":"celebration-clap","groupId":"celebrationMarkers","resource":"markers/celebrationMarkers/celebration-clap.svg","hidden":true},{"markerId":"celebration-100","groupId":"celebrationMarkers","resource":"markers/celebrationMarkers/celebration-100.svg","hidden":true},{"markerId":"celebration-birthday","groupId":"celebrationMarkers","resource":"markers/celebrationMarkers/celebration-birthday.svg","hidden":true},{"markerId":"celebration-king","groupId":"celebrationMarkers","resource":"markers/celebrationMarkers/celebration-king.svg","hidden":true},{"markerId":"celebration-cheers","groupId":"celebrationMarkers","resource":"markers/celebrationMarkers/celebration-cheers.svg","hidden":true},{"markerId":"celebration-boom","groupId":"celebrationMarkers","resource":"markers/celebrationMarkers/celebration-boom.svg","hidden":true},{"markerId":"celebration-kiss","groupId":"celebrationMarkers","resource":"markers/celebrationMarkers/celebration-kiss.svg","hidden":true},{"markerId":"celebration-five","groupId":"celebrationMarkers","resource":"markers/celebrationMarkers/celebration-five.svg","hidden":true}],"hidden":true},"symbolMarkers":{"id":"symbolMarkers","markers":[{"markerId":"c_symbol_heart","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_heart.svg","hidden":false},{"markerId":"c_symbol_like","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_like.svg","hidden":false},{"markerId":"c_symbol_dislike","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_dislike.svg","hidden":false},{"markerId":"symbol-pin","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-pin.svg","hidden":false},{"markerId":"symbol-idea","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-idea.svg","hidden":false},{"markerId":"symbol-lightning","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-lightning.svg","hidden":false},{"markerId":"c_symbol_hourglass","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_hourglass.svg","hidden":false},{"markerId":"c_symbol_telephone","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_telephone.svg","hidden":false},{"markerId":"c_symbol_pen","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_pen.svg","hidden":false},{"markerId":"c_symbol_music","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_music.svg","hidden":false},{"markerId":"symbol-entertainment","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-entertainment.svg","hidden":false},{"markerId":"symbol-100","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-100.svg","hidden":false},{"markerId":"c_symbol_flight","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_flight.svg","hidden":false},{"markerId":"symbol-run","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-run.svg","hidden":false},{"markerId":"symbol-exclam","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-exclam.svg","hidden":false},{"markerId":"symbol-question","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-question.svg","hidden":false},{"markerId":"symbol-plus","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-plus.svg","hidden":true},{"markerId":"symbol-minus","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-minus.svg","hidden":true},{"markerId":"symbol-info","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-info.svg","hidden":true},{"markerId":"symbol-attention","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-attention.svg","hidden":true},{"markerId":"symbol-wrong","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-wrong.svg","hidden":true},{"markerId":"symbol-right","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-right.svg","hidden":true},{"markerId":"symbol-pause","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-pause.svg","hidden":true},{"markerId":"c_simbol-plus","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_simbol-plus.svg","hidden":true},{"markerId":"c_simbol-minus","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_simbol-minus.svg","hidden":true},{"markerId":"c_simbol-question","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_simbol-question.svg","hidden":true},{"markerId":"c_simbol-info","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_simbol-info.svg","hidden":true},{"markerId":"c_simbol-wrong","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_simbol-wrong.svg","hidden":true},{"markerId":"c_simbol-right","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_simbol-right.svg","hidden":true},{"markerId":"c_simbol-pause","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_simbol-pause.svg","hidden":true},{"markerId":"c_symbol_contact","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_contact.svg","hidden":true},{"markerId":"c_symbol_drink","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_drink.svg","hidden":true},{"markerId":"c_symbol_line_graph","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_line_graph.svg","hidden":true},{"markerId":"c_symbol_medals","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_medals.svg","hidden":true},{"markerId":"c_symbol_thermometer","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_thermometer.svg","hidden":true},{"markerId":"c_symbol_money","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_money.svg","hidden":true},{"markerId":"c_symbol_bar_chart","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_bar_chart.svg","hidden":true},{"markerId":"c_simbol-exclam","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_simbol-exclam.svg","hidden":true},{"markerId":"c_symbol_pie_chart","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_pie_chart.svg","hidden":true},{"markerId":"c_symbol_shopping_cart","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_shopping_cart.svg","hidden":true},{"markerId":"c_symbol_exercise","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_exercise.svg","hidden":true},{"markerId":"c_symbol_trophy","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_trophy.svg","hidden":true},{"markerId":"symbol-unlock","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-unlock.svg","hidden":true},{"markerId":"c_symbol_lock","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_lock.svg","hidden":true},{"markerId":"symbol-diamond","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-diamond.svg","hidden":true}],"hidden":false},"monthMarkers":{"id":"monthMarkers","markers":[{"markerId":"month-jan","groupId":"monthMarkers","resource":"markers/monthMarkers/month-jan.svg","hidden":false},{"markerId":"month-feb","groupId":"monthMarkers","resource":"markers/monthMarkers/month-feb.svg","hidden":false},{"markerId":"month-mar","groupId":"monthMarkers","resource":"markers/monthMarkers/month-mar.svg","hidden":false},{"markerId":"month-apr","groupId":"monthMarkers","resource":"markers/monthMarkers/month-apr.svg","hidden":false},{"markerId":"month-may","groupId":"monthMarkers","resource":"markers/monthMarkers/month-may.svg","hidden":false},{"markerId":"month-jun","groupId":"monthMarkers","resource":"markers/monthMarkers/month-jun.svg","hidden":false},{"markerId":"month-jul","groupId":"monthMarkers","resource":"markers/monthMarkers/month-jul.svg","hidden":false},{"markerId":"month-aug","groupId":"monthMarkers","resource":"markers/monthMarkers/month-aug.svg","hidden":false},{"markerId":"month-sep","groupId":"monthMarkers","resource":"markers/monthMarkers/month-sep.svg","hidden":false},{"markerId":"month-oct","groupId":"monthMarkers","resource":"markers/monthMarkers/month-oct.svg","hidden":false},{"markerId":"month-nov","groupId":"monthMarkers","resource":"markers/monthMarkers/month-nov.svg","hidden":false},{"markerId":"month-dec","groupId":"monthMarkers","resource":"markers/monthMarkers/month-dec.svg","hidden":false}],"hidden":true},"weekMarkers":{"id":"weekMarkers","markers":[{"markerId":"week-sun","groupId":"weekMarkers","resource":"markers/weekMarkers/week-sun.svg","hidden":false},{"markerId":"week-mon","groupId":"weekMarkers","resource":"markers/weekMarkers/week-mon.svg","hidden":false},{"markerId":"week-tue","groupId":"weekMarkers","resource":"markers/weekMarkers/week-tue.svg","hidden":false},{"markerId":"week-wed","groupId":"weekMarkers","resource":"markers/weekMarkers/week-wed.svg","hidden":false},{"markerId":"week-thu","groupId":"weekMarkers","resource":"markers/weekMarkers/week-thu.svg","hidden":false},{"markerId":"week-fri","groupId":"weekMarkers","resource":"markers/weekMarkers/week-fri.svg","hidden":false},{"markerId":"week-sat","groupId":"weekMarkers","resource":"markers/weekMarkers/week-sat.svg","hidden":false}],"hidden":true},"halfStarMarkers":{"id":"halfStarMarkers","markers":[{"markerId":"half-star-green","groupId":"halfStarMarkers","resource":"markers/halfStarMarkers/half-star-green.png","hidden":true},{"markerId":"half-star-red","groupId":"halfStarMarkers","resource":"markers/halfStarMarkers/half-star-red.png","hidden":true},{"markerId":"half-star-yellow","groupId":"halfStarMarkers","resource":"markers/halfStarMarkers/half-star-yellow.png","hidden":true},{"markerId":"half-star-purple","groupId":"halfStarMarkers","resource":"markers/halfStarMarkers/half-star-purple.png","hidden":true},{"markerId":"half-star-blue","groupId":"halfStarMarkers","resource":"markers/halfStarMarkers/half-star-blue.png","hidden":true},{"markerId":"half-star-gray","groupId":"halfStarMarkers","resource":"markers/halfStarMarkers/half-star-gray.png","hidden":true}],"hidden":true},"otherMarkers":{"id":"otherMarkers","markers":[{"markerId":"other-calendar","groupId":"otherMarkers","resource":"markers/otherMarkers/other-calendar.png","hidden":true},{"markerId":"other-email","groupId":"otherMarkers","resource":"markers/otherMarkers/other-email.png","hidden":true},{"markerId":"other-phone","groupId":"otherMarkers","resource":"markers/otherMarkers/other-phone.png","hidden":true},{"markerId":"other-phone2","groupId":"otherMarkers","resource":"markers/otherMarkers/other-phone2.png","hidden":true},{"markerId":"other-fax","groupId":"otherMarkers","resource":"markers/otherMarkers/other-fax.png","hidden":true},{"markerId":"other-people","groupId":"otherMarkers","resource":"markers/otherMarkers/other-people.png","hidden":true},{"markerId":"other-people2","groupId":"otherMarkers","resource":"markers/otherMarkers/other-people2.png","hidden":true},{"markerId":"other-clock","groupId":"otherMarkers","resource":"markers/otherMarkers/other-clock.png","hidden":true},{"markerId":"other-coffee-cup","groupId":"otherMarkers","resource":"markers/otherMarkers/other-coffee-cup.png","hidden":true},{"markerId":"other-question","groupId":"otherMarkers","resource":"markers/otherMarkers/other-question.svg","hidden":true},{"markerId":"other-exclam","groupId":"otherMarkers","resource":"markers/otherMarkers/other-exclam.svg","hidden":true},{"markerId":"other-lightbulb","groupId":"otherMarkers","resource":"markers/otherMarkers/other-lightbulb.png","hidden":true},{"markerId":"other-businesscard","groupId":"otherMarkers","resource":"markers/otherMarkers/other-businesscard.png","hidden":true},{"markerId":"other-social","groupId":"otherMarkers","resource":"markers/otherMarkers/other-social.png","hidden":true},{"markerId":"other-chat","groupId":"otherMarkers","resource":"markers/otherMarkers/other-chat.png","hidden":true},{"markerId":"other-note","groupId":"otherMarkers","resource":"markers/otherMarkers/other-note.png","hidden":true},{"markerId":"other-lock","groupId":"otherMarkers","resource":"markers/otherMarkers/other-lock.png","hidden":true},{"markerId":"other-unlock","groupId":"otherMarkers","resource":"markers/otherMarkers/other-unlock.png","hidden":true},{"markerId":"other-yes","groupId":"otherMarkers","resource":"markers/otherMarkers/other-yes.svg","hidden":true},{"markerId":"other-no","groupId":"otherMarkers","resource":"markers/otherMarkers/other-no.svg","hidden":true},{"markerId":"other-bomb","groupId":"otherMarkers","resource":"markers/otherMarkers/other-bomb.png","hidden":true},{"markerId":"symbol-info","groupId":"otherMarkers","resource":"markers/otherMarkers/symbol-info.svg","hidden":true},{"markerId":"c_symbol_line_graph","groupId":"otherMarkers","resource":"markers/otherMarkers/c_symbol_line_graph.svg","hidden":true},{"markerId":"c_symbol_shopping_cart","groupId":"otherMarkers","resource":"markers/otherMarkers/c_symbol_shopping_cart.svg","hidden":true},{"markerId":"c_symbol_medals","groupId":"otherMarkers","resource":"markers/otherMarkers/c_symbol_medals.svg","hidden":true},{"markerId":"c_symbol_trophy","groupId":"otherMarkers","resource":"markers/otherMarkers/c_symbol_trophy.svg","hidden":true},{"markerId":"symbol-image","groupId":"otherMarkers","resource":"markers/otherMarkers/symbol-image.svg","hidden":true},{"markerId":"c_symbol_exercise","groupId":"otherMarkers","resource":"markers/otherMarkers/c_symbol_exercise.svg","hidden":true},{"markerId":"c_simbol-plus","groupId":"otherMarkers","resource":"markers/otherMarkers/c_simbol-plus.svg","hidden":true},{"markerId":"c_simbol-minus","groupId":"otherMarkers","resource":"markers/otherMarkers/c_simbol-minus.svg","hidden":true},{"markerId":"c_simbol-question","groupId":"otherMarkers","resource":"markers/otherMarkers/c_simbol-question.svg","hidden":true},{"markerId":"c_simbol-info","groupId":"otherMarkers","resource":"markers/otherMarkers/c_simbol-info.svg","hidden":true},{"markerId":"c_simbol-wrong","groupId":"otherMarkers","resource":"markers/otherMarkers/c_simbol-wrong.svg","hidden":true},{"markerId":"c_simbol-right","groupId":"otherMarkers","resource":"markers/otherMarkers/c_simbol-right.svg","hidden":true},{"markerId":"c_simbol-pause","groupId":"otherMarkers","resource":"markers/otherMarkers/c_simbol-pause.svg","hidden":true},{"markerId":"c_symbol_thermometer","groupId":"otherMarkers","resource":"markers/otherMarkers/c_symbol_thermometer.svg","hidden":true}],"hidden":true}}')
  7540. },
  7541. 14: function(e, t, n) {
  7542. "use strict";
  7543. var r = n(117)
  7544. , i = n(189)
  7545. , o = Object.prototype.toString;
  7546. function a(e) {
  7547. return "[object Array]" === o.call(e)
  7548. }
  7549. function s(e) {
  7550. return null !== e && "object" == typeof e
  7551. }
  7552. function l(e) {
  7553. return "[object Function]" === o.call(e)
  7554. }
  7555. function u(e, t) {
  7556. if (null != e)
  7557. if ("object" != typeof e && (e = [e]),
  7558. a(e))
  7559. for (var n = 0, r = e.length; n < r; n++)
  7560. t.call(null, e[n], n, e);
  7561. else
  7562. for (var i in e)
  7563. Object.prototype.hasOwnProperty.call(e, i) && t.call(null, e[i], i, e)
  7564. }
  7565. e.exports = {
  7566. isArray: a,
  7567. isArrayBuffer: function(e) {
  7568. return "[object ArrayBuffer]" === o.call(e)
  7569. },
  7570. isBuffer: i,
  7571. isFormData: function(e) {
  7572. return "undefined" != typeof FormData && e instanceof FormData
  7573. },
  7574. isArrayBufferView: function(e) {
  7575. return "undefined" != typeof ArrayBuffer && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer && e.buffer instanceof ArrayBuffer
  7576. },
  7577. isString: function(e) {
  7578. return "string" == typeof e
  7579. },
  7580. isNumber: function(e) {
  7581. return "number" == typeof e
  7582. },
  7583. isObject: s,
  7584. isUndefined: function(e) {
  7585. return void 0 === e
  7586. },
  7587. isDate: function(e) {
  7588. return "[object Date]" === o.call(e)
  7589. },
  7590. isFile: function(e) {
  7591. return "[object File]" === o.call(e)
  7592. },
  7593. isBlob: function(e) {
  7594. return "[object Blob]" === o.call(e)
  7595. },
  7596. isFunction: l,
  7597. isStream: function(e) {
  7598. return s(e) && l(e.pipe)
  7599. },
  7600. isURLSearchParams: function(e) {
  7601. return "undefined" != typeof URLSearchParams && e instanceof URLSearchParams
  7602. },
  7603. isStandardBrowserEnv: function() {
  7604. return ("undefined" == typeof navigator || "ReactNative" !== navigator.product) && ("undefined" != typeof window && "undefined" != typeof document)
  7605. },
  7606. forEach: u,
  7607. merge: function e() {
  7608. var t = {};
  7609. function n(n, r) {
  7610. "object" == typeof t[r] && "object" == typeof n ? t[r] = e(t[r], n) : t[r] = n
  7611. }
  7612. for (var r = 0, i = arguments.length; r < i; r++)
  7613. u(arguments[r], n);
  7614. return t
  7615. },
  7616. extend: function(e, t, n) {
  7617. return u(t, (function(t, i) {
  7618. e[i] = n && "function" == typeof t ? r(t, n) : t
  7619. }
  7620. )),
  7621. e
  7622. },
  7623. trim: function(e) {
  7624. return e.replace(/^\s*/, "").replace(/\s*$/, "")
  7625. }
  7626. }
  7627. },
  7628. 143: function(e, t, n) {
  7629. "use strict";
  7630. var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) {
  7631. void 0 === r && (r = n),
  7632. Object.defineProperty(e, r, {
  7633. enumerable: !0,
  7634. get: function() {
  7635. return t[n]
  7636. }
  7637. })
  7638. }
  7639. : function(e, t, n, r) {
  7640. void 0 === r && (r = n),
  7641. e[r] = t[n]
  7642. }
  7643. )
  7644. , i = this && this.__exportStar || function(e, t) {
  7645. for (var n in e)
  7646. "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n)
  7647. }
  7648. ;
  7649. Object.defineProperty(t, "__esModule", {
  7650. value: !0
  7651. }),
  7652. i(n(5), t),
  7653. i(n(75), t),
  7654. i(n(275), t)
  7655. },
  7656. 144: function(e, t, n) {
  7657. e.exports = n(188)
  7658. },
  7659. 15: function(e, t, n) {
  7660. "use strict";
  7661. var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) {
  7662. void 0 === r && (r = n),
  7663. Object.defineProperty(e, r, {
  7664. enumerable: !0,
  7665. get: function() {
  7666. return t[n]
  7667. }
  7668. })
  7669. }
  7670. : function(e, t, n, r) {
  7671. void 0 === r && (r = n),
  7672. e[r] = t[n]
  7673. }
  7674. )
  7675. , i = this && this.__exportStar || function(e, t) {
  7676. for (var n in e)
  7677. "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n)
  7678. }
  7679. ;
  7680. Object.defineProperty(t, "__esModule", {
  7681. value: !0
  7682. }),
  7683. t.lightAppearance = t.defaultAppearance = t.dimensionOf = t.appearanceOf = t.allDimensions = t.allAppearances = void 0;
  7684. const o = n(5)
  7685. , a = n(32)
  7686. , s = n(245);
  7687. Object.defineProperty(t, "defaultAppearance", {
  7688. enumerable: !0,
  7689. get: function() {
  7690. return s.defaultAppearance
  7691. }
  7692. });
  7693. const l = n(246);
  7694. Object.defineProperty(t, "lightAppearance", {
  7695. enumerable: !0,
  7696. get: function() {
  7697. return l.lightAppearance
  7698. }
  7699. });
  7700. const u = n(247);
  7701. i(n(248), t),
  7702. t.allAppearances = {
  7703. default: s.defaultAppearance,
  7704. light: l.lightAppearance
  7705. },
  7706. t.allDimensions = {
  7707. "16:9": a.defaultDimension,
  7708. "9:16": u.portraitDimension,
  7709. "3:4": u.portraitDimension,
  7710. "4:3": a.defaultDimension
  7711. },
  7712. t.appearanceOf = function(e) {
  7713. return t.allAppearances[e]
  7714. }
  7715. ,
  7716. t.dimensionOf = function(e) {
  7717. let n = null
  7718. , r = null;
  7719. return Object.keys(o.slideSizes).forEach(t=>{
  7720. const {width: i, height: a} = o.slideSizes[t]
  7721. , s = Math.abs(i / a - e.width / e.height);
  7722. (null === n || n > s) && (n = s,
  7723. r = t)
  7724. }
  7725. ),
  7726. r ? t.allDimensions[r] : a.defaultDimension
  7727. }
  7728. },
  7729. 156: function(e, t, n) {
  7730. "use strict";
  7731. function r(e, t) {
  7732. let n = null;
  7733. return i(e, (e,r)=>{
  7734. if (t(e))
  7735. return n = e,
  7736. r()
  7737. }
  7738. ),
  7739. n
  7740. }
  7741. function i(e, t) {
  7742. let n = !1;
  7743. for (const r of e) {
  7744. if (t(r, ()=>{
  7745. n = !0
  7746. }
  7747. ),
  7748. n)
  7749. return;
  7750. if ("group" === r.contentType && (i(r.children, (e,r)=>{
  7751. t(e, ()=>{
  7752. n = !0,
  7753. r()
  7754. }
  7755. )
  7756. }
  7757. ),
  7758. n))
  7759. return
  7760. }
  7761. }
  7762. Object.defineProperty(t, "__esModule", {
  7763. value: !0
  7764. }),
  7765. t.mutateBoxes = t.forEachBox = t.assertBox = t.getBoxById = t.filterBoxes = t.findBox = t.toBoxRoles = t.contentOfSummary = t.braceShapeOfSummary = t.bottomBraceOfSummary = t.topBraceOfSummary = t.subtopicEllipsisOfSummary = t.headerLineOfTopic = t.treeBranchOfTopic = t.arrowOfTopic = t.subtopicListGroupOfTopic = t.separatorLineOfTopic = t.bulletDotOfTopic = t.bottomCurlyBraceOfTopic = t.topCurlyBraceOfTopic = t.curlyBraceOfTopic = t.contentGroupOfTopic = t.imageOfTopic = t.calloutOfTopic = t.noteOfTopic = t.labelListOfTopic = t.labelTextOfTopic = t.labelBorderOfTopic = t.labelOfTopic = t.markerListOfTopic = t.markerOfTopic = t.shadowTitleTextOfTopic = t.titleTextOfTopic = t.titleOfTopic = void 0,
  7766. t.titleOfTopic = function(e) {
  7767. return "topic:title:" + e
  7768. }
  7769. ,
  7770. t.titleTextOfTopic = function(e) {
  7771. return "topic:title-text:" + e
  7772. }
  7773. ,
  7774. t.shadowTitleTextOfTopic = function(e) {
  7775. return "topic:shadow-title-text:" + e
  7776. }
  7777. ,
  7778. t.markerOfTopic = function(e, t) {
  7779. return `topic:marker:${e}:${t}`
  7780. }
  7781. ,
  7782. t.markerListOfTopic = function(e) {
  7783. return "topic:marker-list:" + e
  7784. }
  7785. ,
  7786. t.labelOfTopic = function(e, t) {
  7787. return `topic:label:${e}:${t}`
  7788. }
  7789. ,
  7790. t.labelBorderOfTopic = function(e, t) {
  7791. return `topic:label-border:${e}:${t}`
  7792. }
  7793. ,
  7794. t.labelTextOfTopic = function(e, t) {
  7795. return `topic:label-text:${e}:${t}`
  7796. }
  7797. ,
  7798. t.labelListOfTopic = function(e) {
  7799. return "topic:label-list:" + e
  7800. }
  7801. ,
  7802. t.noteOfTopic = function(e) {
  7803. return "topic:note:" + e
  7804. }
  7805. ,
  7806. t.calloutOfTopic = function(e) {
  7807. return "topic:callout:" + e
  7808. }
  7809. ,
  7810. t.imageOfTopic = function(e) {
  7811. return "topic:image:" + e
  7812. }
  7813. ,
  7814. t.contentGroupOfTopic = function(e) {
  7815. return "topic:content-group:" + e
  7816. }
  7817. ,
  7818. t.curlyBraceOfTopic = function(e) {
  7819. return "topic:curly-brace:" + e
  7820. }
  7821. ,
  7822. t.topCurlyBraceOfTopic = function(e) {
  7823. return "topic:top-curly-brace:" + e
  7824. }
  7825. ,
  7826. t.bottomCurlyBraceOfTopic = function(e) {
  7827. return "topic:bottom-curly-brace:" + e
  7828. }
  7829. ,
  7830. t.bulletDotOfTopic = function(e) {
  7831. return "topic:bullet-dot:" + e
  7832. }
  7833. ,
  7834. t.separatorLineOfTopic = function(e) {
  7835. return "topic:separator-line:" + e
  7836. }
  7837. ,
  7838. t.subtopicListGroupOfTopic = function(e) {
  7839. return "topic:subtopic-list-group:" + e
  7840. }
  7841. ,
  7842. t.arrowOfTopic = function(e) {
  7843. return "topic:arrow:" + e
  7844. }
  7845. ,
  7846. t.treeBranchOfTopic = function(e) {
  7847. return "topic:tree-branch:" + e
  7848. }
  7849. ,
  7850. t.headerLineOfTopic = function(e) {
  7851. return "topic:header-underline:" + e
  7852. }
  7853. ,
  7854. t.subtopicEllipsisOfSummary = function(e) {
  7855. return "topic:summary-subtopic-ellipsis:" + e
  7856. }
  7857. ,
  7858. t.topBraceOfSummary = function(e) {
  7859. return "topic:summary-top-brace:" + e
  7860. }
  7861. ,
  7862. t.bottomBraceOfSummary = function(e) {
  7863. return "topic:summary-bottom-brace:" + e
  7864. }
  7865. ,
  7866. t.braceShapeOfSummary = function(e) {
  7867. return "topic:summary-brace-shape:" + e
  7868. }
  7869. ,
  7870. t.contentOfSummary = function(e) {
  7871. return "topic:summary-content:" + e
  7872. }
  7873. ,
  7874. t.toBoxRoles = function(e) {
  7875. return Object.keys(e).filter(t=>e[t])
  7876. }
  7877. ,
  7878. t.findBox = r,
  7879. t.filterBoxes = function(e, t) {
  7880. const n = [];
  7881. return i(e, e=>{
  7882. t(e) && n.push(e)
  7883. }
  7884. ),
  7885. n
  7886. }
  7887. ,
  7888. t.getBoxById = function(e, t, n) {
  7889. const i = r(e, e=>e.id === t);
  7890. return i && n && i.contentType !== n ? null : i
  7891. }
  7892. ,
  7893. t.assertBox = function(e) {
  7894. if (!e)
  7895. throw new Error("Box is null or undefined");
  7896. return e
  7897. }
  7898. ,
  7899. t.forEachBox = i,
  7900. t.mutateBoxes = function e(t, n) {
  7901. return t.map(t=>("group" === t.contentType && (t = Object.assign(Object.assign({}, t), {
  7902. children: e(t.children, n)
  7903. })),
  7904. n(t)))
  7905. }
  7906. },
  7907. 157: function(e, t, n) {
  7908. "use strict";
  7909. var r = this && this.__rest || function(e, t) {
  7910. var n = {};
  7911. for (var r in e)
  7912. Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
  7913. if (null != e && "function" == typeof Object.getOwnPropertySymbols) {
  7914. var i = 0;
  7915. for (r = Object.getOwnPropertySymbols(e); i < r.length; i++)
  7916. t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]])
  7917. }
  7918. return n
  7919. }
  7920. ;
  7921. function i(e, t) {
  7922. var n, i, o;
  7923. if (e = null != e ? e : {},
  7924. !t)
  7925. return e;
  7926. const {boxes: a} = t
  7927. , s = r(t, ["boxes"]);
  7928. for (const t of null != a ? a : []) {
  7929. e = (null === (n = e.boxes) || void 0 === n ? void 0 : n.find(e=>e.id === t.id)) ? Object.assign(Object.assign({}, e), {
  7930. boxes: (null !== (i = e.boxes) && void 0 !== i ? i : []).map(e=>e.id === t.id ? Object.assign(Object.assign({}, e), t) : e)
  7931. }) : Object.assign(Object.assign({}, e), {
  7932. boxes: [...null !== (o = e.boxes) && void 0 !== o ? o : [], Object.assign({}, t)]
  7933. })
  7934. }
  7935. return Object.keys(s).length > 0 && (e = Object.assign(Object.assign({}, e), s)),
  7936. e
  7937. }
  7938. Object.defineProperty(t, "__esModule", {
  7939. value: !0
  7940. }),
  7941. t.isSlideContentFeatureCoveredBy = t.addSlideContentFeatures = t.setBoxStateForRevertedPresenterPerspectiveMode = t.setBoxStateForPresenterPerspectiveMode = t.mergeSlideState = t.setBoxEnteringState = t.addSlideAdditionalEnteringStates = t.setSlideEnteringState = t.addSlideEnteringAnimations = t.addSlideLeavingAnimations = t.addSlideAliases = t.slideSizes = t.slideSize_9_16 = t.slideSize_3_4 = t.slideSize_16_9 = t.slideSize_4_3 = void 0,
  7942. t.slideSize_4_3 = {
  7943. width: 1200,
  7944. height: 900
  7945. },
  7946. t.slideSize_16_9 = {
  7947. width: 1600,
  7948. height: 900
  7949. },
  7950. t.slideSize_3_4 = {
  7951. width: 900,
  7952. height: 1200
  7953. },
  7954. t.slideSize_9_16 = {
  7955. width: 900,
  7956. height: 1600
  7957. },
  7958. t.slideSizes = {
  7959. "4:3": t.slideSize_4_3,
  7960. "16:9": t.slideSize_16_9,
  7961. "3:4": t.slideSize_3_4,
  7962. "9:16": t.slideSize_9_16
  7963. },
  7964. t.addSlideAliases = function(e, ...t) {
  7965. var n;
  7966. e.aliases = [...null !== (n = e.aliases) && void 0 !== n ? n : [], ...t]
  7967. }
  7968. ,
  7969. t.addSlideLeavingAnimations = function(e, t) {
  7970. var n;
  7971. e.leavingAnimations = [...null !== (n = e.leavingAnimations) && void 0 !== n ? n : [], ...t]
  7972. }
  7973. ,
  7974. t.addSlideEnteringAnimations = function(e, t) {
  7975. var n;
  7976. e.enteringAnimations = [...null !== (n = e.enteringAnimations) && void 0 !== n ? n : [], ...t]
  7977. }
  7978. ,
  7979. t.setSlideEnteringState = function(e, t) {
  7980. e.enteringStates = t
  7981. }
  7982. ,
  7983. t.addSlideAdditionalEnteringStates = function(e, t) {
  7984. var n;
  7985. e.additionalEnteringStates = [...null !== (n = e.additionalEnteringStates) && void 0 !== n ? n : [], ...t]
  7986. }
  7987. ,
  7988. t.setBoxEnteringState = function(e, t) {
  7989. e.enteringStates = i(e.enteringStates, {
  7990. boxes: [t]
  7991. })
  7992. }
  7993. ,
  7994. t.mergeSlideState = i,
  7995. t.setBoxStateForPresenterPerspectiveMode = function(e, t) {
  7996. e.presenterPerspectiveStates = i(e.presenterPerspectiveStates, {
  7997. boxes: [t]
  7998. })
  7999. }
  8000. ,
  8001. t.setBoxStateForRevertedPresenterPerspectiveMode = function(e, t) {
  8002. e.revertedPresenterPerspectiveStates = i(e.revertedPresenterPerspectiveStates, {
  8003. boxes: [t]
  8004. })
  8005. }
  8006. ,
  8007. t.addSlideContentFeatures = function(e, ...t) {
  8008. var n;
  8009. e.contentFeatures = [...null !== (n = e.contentFeatures) && void 0 !== n ? n : [], ...t]
  8010. }
  8011. ,
  8012. t.isSlideContentFeatureCoveredBy = function(e, t) {
  8013. return e.kind === t.kind && e.topicId === t.topicId && ("partial" === e.integrity || "full" === t.integrity)
  8014. }
  8015. },
  8016. 158: function(e, t, n) {
  8017. "use strict";
  8018. Object.defineProperty(t, "__esModule", {
  8019. value: !0
  8020. }),
  8021. t.computeUserListSlideLayout = t.computeDefaultSummarySlideLayout = t.computeDefaultListSlideLayout = t.computeDefaultTopicSlideLayout = t.computeSlideLayout = t.getEligibleSlideLayouts = void 0;
  8022. const r = n(159);
  8023. function i(e) {
  8024. return e.image && 0 !== e.image.size.width && 0 !== e.image.size.height ? "image-topic-slide" : "topic-slide"
  8025. }
  8026. function o(e, t, n, r) {
  8027. if (1 === r.length)
  8028. return "only-child";
  8029. const i = e.width < e.height;
  8030. return "centralTopic" === n || "mainTopic" === n && r.length > 1 && t.title.length <= 24 && r.every(e=>e.title.length <= 24) ? i ? "tree-chart" : "brace-list" : "lyric-list"
  8031. }
  8032. function a() {
  8033. return "summary"
  8034. }
  8035. function s(e, t) {
  8036. var n;
  8037. return null !== (n = e.listSlideLayout) && void 0 !== n ? n : null
  8038. }
  8039. t.getEligibleSlideLayouts = function(e, t) {
  8040. return Object.values(r.layoutEngines).filter(n=>n.isEligibleFor(e, t)).map(e=>e.id)
  8041. }
  8042. ,
  8043. t.computeSlideLayout = function(e, t, n, a={}) {
  8044. const {topic: l, topicLevel: u, subtopics: c} = n;
  8045. switch (e) {
  8046. case "topic":
  8047. return i(l);
  8048. case "list":
  8049. if (!a.ignoresUserValue) {
  8050. const t = s(l, c.length);
  8051. if (t && t in r.layoutEngines && r.layoutEngines[t].isEligibleFor(e, n))
  8052. return t
  8053. }
  8054. return o(t, l, u, c);
  8055. case "summary":
  8056. return "summary"
  8057. }
  8058. }
  8059. ,
  8060. t.computeDefaultTopicSlideLayout = i,
  8061. t.computeDefaultListSlideLayout = o,
  8062. t.computeDefaultSummarySlideLayout = a,
  8063. t.computeUserListSlideLayout = s
  8064. },
  8065. 159: function(e, t, n) {
  8066. "use strict";
  8067. Object.defineProperty(t, "__esModule", {
  8068. value: !0
  8069. }),
  8070. t.layoutEngines = void 0;
  8071. const r = n(244)
  8072. , i = n(249)
  8073. , o = n(250)
  8074. , a = n(251)
  8075. , s = n(252)
  8076. , l = n(253)
  8077. , u = n(254)
  8078. , c = n(255);
  8079. t.layoutEngines = {
  8080. "topic-slide": {
  8081. id: "topic-slide",
  8082. isEligibleFor: r.isTopicSlideLayoutEligibleFor,
  8083. layoutTemplateSlide: r.layoutTopicSlide,
  8084. generatePresentationalSlide: r.generateTopicSlide
  8085. },
  8086. "image-topic-slide": {
  8087. id: "image-topic-slide",
  8088. isEligibleFor: i.isImageTopicSlideLayoutEligibleFor,
  8089. layoutTemplateSlide: i.layoutImageTopicSlide,
  8090. generatePresentationalSlide: i.generateImageTopicSlide
  8091. },
  8092. "only-child": {
  8093. id: "only-child",
  8094. isEligibleFor: s.isOnlyChildLayoutEligibleFor,
  8095. layoutTemplateSlide: s.layoutOnlyChildListSlide,
  8096. generatePresentationalSlide: s.generateOnlyChildListSlide
  8097. },
  8098. "brace-list": {
  8099. id: "brace-list",
  8100. isEligibleFor: o.isBraceListLayoutEligibleFor,
  8101. layoutTemplateSlide: o.layoutBraceListSlide,
  8102. generatePresentationalSlide: o.generateBraceListSlide
  8103. },
  8104. "bullet-list": {
  8105. id: "bullet-list",
  8106. isEligibleFor: a.isBulletListLayoutEligibleFor,
  8107. layoutTemplateSlide: a.layoutBulletListSlide,
  8108. generatePresentationalSlide: a.generateBulletListSlide
  8109. },
  8110. "lyric-list": {
  8111. id: "lyric-list",
  8112. isEligibleFor: u.isLyricListLayoutEligibleFor,
  8113. layoutTemplateSlide: u.layoutLyricListSlide,
  8114. generatePresentationalSlide: u.generateLyricListSlide
  8115. },
  8116. "tree-chart": {
  8117. id: "tree-chart",
  8118. isEligibleFor: c.isTreeChartLayoutEligibleFor,
  8119. layoutTemplateSlide: c.layoutTreeChartSlide,
  8120. generatePresentationalSlide: c.generateTreeChartSlide
  8121. },
  8122. summary: {
  8123. id: "summary",
  8124. isEligibleFor: l.isSummaryLayoutEligibleFor,
  8125. layoutTemplateSlide: l.layoutSummarySlide,
  8126. generatePresentationalSlide: l.generateSummarySlide
  8127. }
  8128. }
  8129. },
  8130. 160: function(e, t, n) {
  8131. "use strict";
  8132. Object.defineProperty(t, "__esModule", {
  8133. value: !0
  8134. }),
  8135. t.computeCalloutTextBox = void 0;
  8136. const r = n(5)
  8137. , i = n(12)
  8138. , o = n(13)
  8139. , a = n(15)
  8140. , s = n(42)
  8141. , l = n(61);
  8142. t.computeCalloutTextBox = function(e, t, n, u, c, d) {
  8143. var f;
  8144. const {maxWidth: h, fontSize: p} = d
  8145. , g = null !== (f = d.roles) && void 0 !== f ? f : []
  8146. , m = {
  8147. id: r.calloutOfTopic(u),
  8148. roles: ["callout", ...g],
  8149. bounds: o.zeroRect(),
  8150. absBounds: o.zeroRect(),
  8151. contentType: "text",
  8152. text: c,
  8153. fontSize: i.toCSSLength(p),
  8154. lineHeight: l.computeTextLineHeight(p),
  8155. overflowWrap: "break-word"
  8156. };
  8157. "textAlignment"in d && (m.textAlignment = d.textAlignment),
  8158. a.initializeBoxStyle(m, e, t, {
  8159. layout: n
  8160. });
  8161. const v = s.measureText(m, {
  8162. maxWidth: h
  8163. });
  8164. return m.bounds.width = v.width,
  8165. m.bounds.height = v.height,
  8166. m
  8167. }
  8168. },
  8169. 161: function(e, t, n) {
  8170. "use strict";
  8171. Object.defineProperty(t, "__esModule", {
  8172. value: !0
  8173. }),
  8174. t.computeLabelGroup = t.computeLabelListGroupBox = t.labelMaxLineCount = void 0;
  8175. const r = n(5)
  8176. , i = n(12)
  8177. , o = n(13)
  8178. , a = n(15)
  8179. , s = n(42)
  8180. , l = n(34)
  8181. , u = n(43)
  8182. , c = n(162)
  8183. , d = n(61);
  8184. t.labelMaxLineCount = 1,
  8185. t.computeLabelListGroupBox = function(e, t, n, i, s, l) {
  8186. var u;
  8187. const {maxWidth: d, labelSpacing: f, lineSpacing: h, alignment: p} = l
  8188. , g = null !== (u = l.listRoles) && void 0 !== u ? u : []
  8189. , m = new Array(s.length - 1).fill(f)
  8190. , v = s.map(e=>Object.assign(Object.assign({}, e), {
  8191. bounds: Object.assign({}, e.bounds)
  8192. }))
  8193. , y = c.layoutFlex(v, {
  8194. spacings: m,
  8195. direction: "row",
  8196. wrap: "wrap",
  8197. maxWidth: d,
  8198. justifyContent: "leading" === p ? "start" : "trailing" === p ? "end" : "center",
  8199. lineSpacing: h
  8200. })
  8201. , b = y.width
  8202. , _ = y.height
  8203. , w = {
  8204. id: r.labelListOfTopic(i),
  8205. roles: [...g],
  8206. bounds: {
  8207. x: 0,
  8208. y: 0,
  8209. width: b,
  8210. height: _
  8211. },
  8212. absBounds: o.zeroRect(),
  8213. contentType: "group",
  8214. children: [...v],
  8215. contentHeight: y.height,
  8216. overflow: "visible"
  8217. };
  8218. return a.initializeBoxStyle(w, e, t, {
  8219. layout: n
  8220. }),
  8221. w
  8222. }
  8223. ,
  8224. t.computeLabelGroup = function(e, n, c, f, h, p, g) {
  8225. var m, v, y, b, _;
  8226. const {maxWidth: w, minWidth: S, fontSize: x, leftPadding: k, rightPadding: I} = g
  8227. , C = null !== (m = g.groupRoles) && void 0 !== m ? m : []
  8228. , M = null !== (v = g.textRoles) && void 0 !== v ? v : []
  8229. , T = null !== (y = g.borderRoles) && void 0 !== y ? y : []
  8230. , A = w - k - I;
  8231. function E(t) {
  8232. const l = {
  8233. id: r.labelTextOfTopic(f, p),
  8234. roles: ["label", ...M],
  8235. bounds: o.zeroRect(),
  8236. absBounds: o.zeroRect(),
  8237. contentType: "text",
  8238. text: t,
  8239. fontSize: i.toCSSLength(x),
  8240. lineHeight: d.computeTextLineHeight(x),
  8241. overflowWrap: "normal"
  8242. };
  8243. a.initializeBoxStyle(l, e, n, {
  8244. layout: c
  8245. });
  8246. const u = s.measureText(l, {
  8247. maxWidth: A
  8248. });
  8249. return l.bounds.width = u.width,
  8250. l.bounds.height = u.height,
  8251. {
  8252. textBox: l,
  8253. textMeasurement: u
  8254. }
  8255. }
  8256. const O = l.rangedIntegers(h.length, 1)
  8257. , B = l.mapValues(O, e=>u.getTruncatedText(h, e))
  8258. , L = l.mapValues(B, E)
  8259. , P = null !== (b = l.findClosestMatch(L, e=>function({textMeasurement: e}) {
  8260. return e.width <= A
  8261. }(e) && function({textMeasurement: e}) {
  8262. return e.lineCount <= t.labelMaxLineCount
  8263. }(e))) && void 0 !== b ? b : E(u.getTruncatedText(h, 1))
  8264. , {textBox: R, textMeasurement: z} = P
  8265. , j = Math.max(S, Math.min(w, R.bounds.width + k + I))
  8266. , F = z.lineHeight
  8267. , D = (j - k - I - R.bounds.width) / 2
  8268. , N = (F - R.bounds.height) / 2;
  8269. R.bounds.x = k + D,
  8270. R.bounds.y = N;
  8271. const U = {
  8272. id: r.labelBorderOfTopic(f, p),
  8273. roles: ["labelBorder", ...T],
  8274. bounds: {
  8275. x: 0,
  8276. y: 0,
  8277. width: j,
  8278. height: F
  8279. },
  8280. absBounds: o.zeroRect(),
  8281. contentType: "shape",
  8282. shapePath: ""
  8283. };
  8284. a.initializeBoxStyle(U, e, n, {
  8285. layout: c
  8286. }),
  8287. U.shapePath = function(e, t) {
  8288. const n = (e.height - t) / 2
  8289. , r = t / 2
  8290. , i = 2 * n + t
  8291. , o = Math.max(e.width - i, 0)
  8292. , a = Math.max(e.height - i, 0);
  8293. return `\n M${n + r},${r}\n h${o}\n a${n},${n} 0 0 1 ${n},${n}\n v${a}\n a${n},${n} 0 0 1 -${n},${n}\n h-${o}\n a${n},${n} 0 0 1 -${n},-${n}\n v-${a}\n a${n},${n} 0 0 1 ${n},-${n}\n z`
  8294. }({
  8295. x: 0,
  8296. y: 0,
  8297. width: j,
  8298. height: F
  8299. }, null !== (_ = U.lineWidth) && void 0 !== _ ? _ : 1);
  8300. const W = {
  8301. id: r.labelOfTopic(f, p),
  8302. roles: [...C],
  8303. bounds: {
  8304. x: 0,
  8305. y: 0,
  8306. width: j,
  8307. height: F
  8308. },
  8309. absBounds: o.zeroRect(),
  8310. contentType: "group",
  8311. children: [U, R],
  8312. contentHeight: F,
  8313. overflow: "visible"
  8314. };
  8315. return a.initializeBoxStyle(W, e, n, {
  8316. layout: c
  8317. }),
  8318. {
  8319. groupBox: W,
  8320. textBox: R,
  8321. textMeasurement: z,
  8322. borderShapeBox: U
  8323. }
  8324. }
  8325. },
  8326. 162: function(e, t, n) {
  8327. "use strict";
  8328. Object.defineProperty(t, "__esModule", {
  8329. value: !0
  8330. }),
  8331. t.layoutFlex = void 0;
  8332. const r = n(13);
  8333. t.layoutFlex = function(e, t={}) {
  8334. var n, i, o, a, s, l, u, c, d;
  8335. const f = null !== (n = t.direction) && void 0 !== n ? n : "row"
  8336. , h = Object.assign({}, null !== (i = t.paddings) && void 0 !== i ? i : r.zeroInsets());
  8337. "column" === f && (e.forEach(e=>{
  8338. const {width: t, height: n} = e.bounds;
  8339. e.bounds.width = n,
  8340. e.bounds.height = t
  8341. }
  8342. ),
  8343. [h.left,h.top] = [h.top, h.left],
  8344. [h.right,h.bottom] = [h.bottom, h.right]);
  8345. const p = "column" === f ? null !== (o = t.maxHeight) && void 0 !== o ? o : 0 : null !== (a = t.maxWidth) && void 0 !== a ? a : 0
  8346. , g = null !== (s = t.spacings) && void 0 !== s ? s : []
  8347. , m = null !== (l = t.wrap) && void 0 !== l ? l : "nowrap"
  8348. , v = null !== (u = t.justifyContent) && void 0 !== u ? u : "start"
  8349. , y = null !== (c = t.alignItems) && void 0 !== c ? c : "start"
  8350. , b = null !== (d = t.lineSpacing) && void 0 !== d ? d : 0;
  8351. let _ = h.left
  8352. , w = h.top
  8353. , S = 0
  8354. , x = 0;
  8355. const k = [];
  8356. let I = {
  8357. width: 0,
  8358. height: 0,
  8359. boxes: []
  8360. };
  8361. function C() {
  8362. S = Math.max(S, I.width),
  8363. k.length > 0 && (x += b),
  8364. x += I.height,
  8365. _ = h.left,
  8366. w += I.height + b,
  8367. k.push(I),
  8368. I = {
  8369. width: 0,
  8370. height: 0,
  8371. boxes: []
  8372. }
  8373. }
  8374. e.forEach((e,t)=>{
  8375. var n, r;
  8376. I.boxes.length > 0 && (I.width += null !== (n = g[t - 1]) && void 0 !== n ? n : 0);
  8377. const {width: i, height: o} = e.bounds;
  8378. "wrap" === m && p > 0 && _ + i + h.right > p && C(),
  8379. e.bounds.x = _,
  8380. e.bounds.y = w;
  8381. const a = null !== (r = g[t]) && void 0 !== r ? r : 0;
  8382. _ += i + a,
  8383. I.width += i,
  8384. I.height = Math.max(I.height, o),
  8385. I.boxes.push(e)
  8386. }
  8387. ),
  8388. I.boxes.length > 0 && C();
  8389. for (const e of k) {
  8390. const t = "center" === v && S > 0 ? (S - e.width) / 2 : "end" === v && S > 0 ? S - e.width : 0;
  8391. e.boxes.forEach(n=>{
  8392. n.bounds.x += t;
  8393. const r = "center" === y ? (e.height - n.bounds.height) / 2 : "end" === y ? e.height - n.bounds.height : 0;
  8394. n.bounds.y += r
  8395. }
  8396. )
  8397. }
  8398. return "column" === f && e.forEach(e=>{
  8399. const t = e.bounds
  8400. , {x: n, y: r, width: i, height: o} = t;
  8401. t.x = r,
  8402. t.y = n,
  8403. t.width = o,
  8404. t.height = i
  8405. }
  8406. ),
  8407. "column" === f ? {
  8408. width: x + h.top + h.bottom,
  8409. height: S + h.left + h.right
  8410. } : {
  8411. width: S + h.left + h.right,
  8412. height: x + h.top + h.bottom
  8413. }
  8414. }
  8415. },
  8416. 163: function(e, t, n) {
  8417. "use strict";
  8418. Object.defineProperty(t, "__esModule", {
  8419. value: !0
  8420. }),
  8421. t.computeNoteTextBox = void 0;
  8422. const r = n(5)
  8423. , i = n(12)
  8424. , o = n(13)
  8425. , a = n(15)
  8426. , s = n(42)
  8427. , l = n(61);
  8428. t.computeNoteTextBox = function(e, t, n, u, c, d) {
  8429. var f;
  8430. const {maxWidth: h, fontSize: p} = d
  8431. , g = null !== (f = d.roles) && void 0 !== f ? f : []
  8432. , m = {
  8433. id: r.noteOfTopic(u),
  8434. roles: ["note", ...g],
  8435. bounds: o.zeroRect(),
  8436. absBounds: o.zeroRect(),
  8437. contentType: "text",
  8438. text: c,
  8439. fontSize: i.toCSSLength(p),
  8440. lineHeight: l.computeTextLineHeight(p),
  8441. overflowWrap: "break-word"
  8442. };
  8443. "textAlignment"in d && (m.textAlignment = d.textAlignment),
  8444. a.initializeBoxStyle(m, e, t, {
  8445. layout: n
  8446. });
  8447. const v = s.measureText(m, {
  8448. maxWidth: h
  8449. });
  8450. return m.bounds.width = v.width,
  8451. m.bounds.height = v.height,
  8452. m
  8453. }
  8454. },
  8455. 164: function(e, t, n) {
  8456. "use strict";
  8457. Object.defineProperty(t, "__esModule", {
  8458. value: !0
  8459. }),
  8460. t.searchForBestTopicSlideContent = t.computeTopicSlideContentGroup = void 0;
  8461. const r = n(5)
  8462. , i = n(13)
  8463. , o = n(15)
  8464. , a = n(34)
  8465. , s = n(162);
  8466. t.computeTopicSlideContentGroup = function(e, t, n, a, l, u) {
  8467. const {maxWidth: c, maxHeight: d, paddings: f, contentAlignment: h, spacingBetweenTitleAndLabelList: p, spacingBetweenTitleAndNote: g, spacingBetweenLabelListAndNote: m, spacingBetweenCalloutAndTitle: v, scrollFaderSize: y, imagePlacement: b, spacingAroundImage: _} = u
  8468. , w = []
  8469. , S = []
  8470. , x = l.imageBox ? Object.assign({}, l.imageBox) : null;
  8471. x && "aboveTitle" === b && (w.push(x),
  8472. S.push(null != _ ? _ : 0),
  8473. x.bounds = Object.assign({}, x.bounds));
  8474. const k = l.calloutTextBox ? Object.assign({}, l.calloutTextBox) : null;
  8475. k && (w.push(k),
  8476. S.push(null != v ? v : 0),
  8477. k.bounds = Object.assign({}, k.bounds),
  8478. k.textAlignment = h);
  8479. const I = Object.assign(Object.assign({}, l.titleGroup), {
  8480. groupBox: Object.assign({}, l.titleGroup.groupBox)
  8481. });
  8482. I.groupBox.bounds = Object.assign({}, I.groupBox.bounds),
  8483. w.push(I.groupBox);
  8484. const C = l.labelListGroupBox ? Object.assign({}, l.labelListGroupBox) : null;
  8485. C && (S.push(null != p ? p : 0),
  8486. w.push(C),
  8487. C.bounds = Object.assign({}, C.bounds));
  8488. const M = l.noteTextBox ? Object.assign({}, l.noteTextBox) : null;
  8489. M && (S.push(C ? null != m ? m : 0 : null != g ? g : 0),
  8490. w.push(M),
  8491. M.bounds = Object.assign({}, M.bounds),
  8492. M.textAlignment = h),
  8493. x && "belowTitle" === b && (w.push(x),
  8494. S.push(null != _ ? _ : 0),
  8495. x.bounds = Object.assign({}, x.bounds));
  8496. const T = s.layoutFlex(w, {
  8497. spacings: S,
  8498. maxWidth: c,
  8499. maxHeight: d,
  8500. paddings: f,
  8501. direction: "column",
  8502. alignItems: "leading" === h ? "start" : "trailing" === h ? "end" : "center"
  8503. })
  8504. , A = Math.min(c, T.width)
  8505. , E = Math.min(d, T.height)
  8506. , O = {
  8507. id: r.contentGroupOfTopic(a),
  8508. roles: [],
  8509. bounds: {
  8510. x: 0,
  8511. y: 0,
  8512. width: A,
  8513. height: E
  8514. },
  8515. absBounds: i.zeroRect(),
  8516. contentType: "group",
  8517. children: w,
  8518. contentHeight: T.height,
  8519. overflow: T.height > d ? "scroll" : "visible",
  8520. scrollFaderSize: y,
  8521. scrollFaderType: "twoStops"
  8522. };
  8523. return o.initializeBoxStyle(O, e, t, {
  8524. layout: n
  8525. }),
  8526. {
  8527. groupBox: O,
  8528. titleGroup: I,
  8529. labelListGroupBox: C,
  8530. noteTextBox: M,
  8531. calloutTextBox: k,
  8532. imageBox: x
  8533. }
  8534. }
  8535. ,
  8536. t.searchForBestTopicSlideContent = function(e, t, n, r) {
  8537. var i;
  8538. const {maxHeight: o, singleLineTitleMaxFontSize: s, singleLineTitleMinFontSize: l, doubleLineTitleMaxFontSize: u, doubleLineTitleMinFontSize: c, multilineTitleMaxFontSize: d, multilineTitleMinFontSize: f} = r
  8539. , h = null !== (i = r.compactMaxHeight) && void 0 !== i ? i : null;
  8540. let p = a.rangedIntegers(s, l)
  8541. , g = a.mapValues(p, t=>e(t))
  8542. , m = a.findClosestMatch(g, e=>t(e) <= 1);
  8543. if (m)
  8544. return m;
  8545. if (p = a.rangedIntegers(u, c),
  8546. g = a.mapValues(p, t=>e(t)),
  8547. m = a.findClosestMatch(g, e=>t(e) <= 2),
  8548. m)
  8549. return m;
  8550. if (null !== h) {
  8551. if (p = a.rangedIntegers(d, f),
  8552. g = a.mapValues(p, t=>e(t)),
  8553. m = a.findClosestMatch(g, e=>n(e) <= h),
  8554. m)
  8555. return m;
  8556. const t = e(f);
  8557. if (n(t) <= o)
  8558. return t
  8559. } else if (p = a.rangedIntegers(d, f),
  8560. g = a.mapValues(p, t=>e(t)),
  8561. m = a.findClosestMatch(g, e=>n(e) <= o),
  8562. m)
  8563. return m;
  8564. return e(d)
  8565. }
  8566. },
  8567. 165: function(e, t, n) {
  8568. "use strict";
  8569. Object.defineProperty(t, "__esModule", {
  8570. value: !0
  8571. }),
  8572. t.computeTopicLevel = void 0,
  8573. t.computeTopicLevel = function(e, t) {
  8574. var n;
  8575. if ((t.getFloatingTopics ? t.getFloatingTopics() : []).includes(e))
  8576. return "floatingTopic";
  8577. const r = t.getParentTopicId(e);
  8578. if (!r)
  8579. return "centralTopic";
  8580. const {summaries: i} = null !== (n = t.getTopicAttributes(r)) && void 0 !== n ? n : {
  8581. id: r,
  8582. title: ""
  8583. };
  8584. return (null != i ? i : []).some(t=>t.topicId === e) ? "summaryTopic" : (r ? t.getParentTopicId(r) : null) ? "subtopic" : "mainTopic"
  8585. }
  8586. },
  8587. 166: function(e, t, n) {
  8588. "use strict";
  8589. function r() {
  8590. let e = 0;
  8591. return ()=>{
  8592. const t = e;
  8593. return e += 1,
  8594. t
  8595. }
  8596. }
  8597. function i(e, t) {
  8598. return t.filter(({endIndex: t})=>t === e).sort((e,t)=>t.startIndex - e.startIndex)
  8599. }
  8600. Object.defineProperty(t, "__esModule", {
  8601. value: !0
  8602. }),
  8603. t.computeSummariesEndingAt = t.makeIndexGenerator = t.describeSlideSequenceForTopic = void 0,
  8604. t.describeSlideSequenceForTopic = function(e) {
  8605. var t;
  8606. const n = []
  8607. , {topic: o, topicLevel: a, subtopics: s, previousSiblingTopicId: l, nextSiblingTopicId: u} = e
  8608. , {id: c} = o;
  8609. "floatingTopic" === a ? l && n.push({
  8610. alias: {
  8611. kind: "endOfTopic",
  8612. topicId: l
  8613. },
  8614. nextSlide: {
  8615. kind: "outroOfTopic",
  8616. topicId: l
  8617. }
  8618. }) : "summaryTopic" === a ? (n.push({
  8619. alias: {
  8620. kind: "introOfSummary",
  8621. topicId: c
  8622. }
  8623. }),
  8624. n.push({
  8625. type: "summary",
  8626. alias: {
  8627. kind: "startOfSummary",
  8628. topicId: c
  8629. }
  8630. })) : "centralTopic" !== a && n.push({
  8631. alias: {
  8632. kind: "introOfTopic",
  8633. topicId: c
  8634. }
  8635. }),
  8636. n.push({
  8637. type: "topic",
  8638. alias: {
  8639. kind: "startOfTopic",
  8640. topicId: c
  8641. },
  8642. previousSlide: {
  8643. kind: "introOfTopic",
  8644. topicId: c
  8645. }
  8646. });
  8647. const d = r()
  8648. , f = null !== (t = o.summaries) && void 0 !== t ? t : [];
  8649. if (s.length > 0) {
  8650. n.push({
  8651. type: "list",
  8652. alias: {
  8653. kind: "listOfTopic",
  8654. topicId: c,
  8655. index: d()
  8656. },
  8657. layoutOptions: {
  8658. numberOfVisitedTopics: 0
  8659. },
  8660. autoForwarding: !0,
  8661. autoBackwarding: !0
  8662. });
  8663. for (let e = 0; e < s.length; e++) {
  8664. const t = e;
  8665. n.push({
  8666. type: "list",
  8667. alias: {
  8668. kind: "listOfTopic",
  8669. topicId: c,
  8670. index: d()
  8671. },
  8672. layoutOptions: {
  8673. numberOfVisitedTopics: t
  8674. }
  8675. });
  8676. const r = s[e];
  8677. n.push({
  8678. alias: {
  8679. kind: "startOfTopic",
  8680. topicId: r.id
  8681. },
  8682. previousSlide: {
  8683. kind: "introOfTopic",
  8684. topicId: r.id
  8685. }
  8686. }),
  8687. n.push({
  8688. alias: {
  8689. kind: "endOfTopic",
  8690. topicId: r.id
  8691. },
  8692. nextSlide: {
  8693. kind: "outroOfTopic",
  8694. topicId: r.id
  8695. }
  8696. });
  8697. for (const r of i(e, f)) {
  8698. const e = r.topicId
  8699. , i = d();
  8700. n.push({
  8701. type: "list",
  8702. alias: {
  8703. kind: "listOfTopic",
  8704. topicId: c,
  8705. index: i
  8706. },
  8707. layoutOptions: {
  8708. numberOfVisitedTopics: t
  8709. },
  8710. autoForwarding: !0
  8711. }),
  8712. n.push({
  8713. alias: {
  8714. kind: "startOfSummary",
  8715. topicId: e
  8716. },
  8717. previousSlide: {
  8718. kind: "introOfSummary",
  8719. topicId: e
  8720. }
  8721. }),
  8722. n.push({
  8723. alias: {
  8724. kind: "endOfSummary",
  8725. topicId: e
  8726. },
  8727. nextSlide: {
  8728. kind: "outroOfSummary",
  8729. topicId: e
  8730. }
  8731. })
  8732. }
  8733. const o = e < s.length - 1;
  8734. n.push({
  8735. type: "list",
  8736. alias: {
  8737. kind: "listOfTopic",
  8738. topicId: c,
  8739. index: d()
  8740. },
  8741. layoutOptions: {
  8742. numberOfVisitedTopics: t
  8743. },
  8744. autoForwarding: o,
  8745. autoBackwarding: o
  8746. })
  8747. }
  8748. }
  8749. return "centralTopic" === a || "floatingTopic" === a ? u ? n.push({
  8750. alias: {
  8751. kind: "startOfTopic",
  8752. topicId: u
  8753. },
  8754. previousSlide: {
  8755. kind: "endOfTopic",
  8756. topicId: c
  8757. },
  8758. previousSlide2: {
  8759. kind: "introOfTopic",
  8760. topicId: u
  8761. }
  8762. }) : n.push({
  8763. previousSlide: {
  8764. kind: "endOfTopic",
  8765. topicId: c
  8766. }
  8767. }) : "summaryTopic" === a ? (n.push({
  8768. type: "summary",
  8769. alias: {
  8770. kind: "outroOfTopic",
  8771. topicId: c
  8772. },
  8773. previousSlide: {
  8774. kind: "endOfTopic",
  8775. topicId: c
  8776. },
  8777. autoForwarding: !0
  8778. }),
  8779. n.push({
  8780. alias: {
  8781. kind: "outroOfSummary",
  8782. topicId: c
  8783. },
  8784. previousSlide: {
  8785. kind: "endOfSummary",
  8786. topicId: c
  8787. }
  8788. })) : n.push({
  8789. alias: {
  8790. kind: "outroOfTopic",
  8791. topicId: c
  8792. },
  8793. previousSlide: {
  8794. kind: "endOfTopic",
  8795. topicId: c
  8796. }
  8797. }),
  8798. n
  8799. }
  8800. ,
  8801. t.makeIndexGenerator = r,
  8802. t.computeSummariesEndingAt = i
  8803. },
  8804. 167: function(e, t, n) {
  8805. "use strict";
  8806. Object.defineProperty(t, "__esModule", {
  8807. value: !0
  8808. }),
  8809. t.inSlideScrollOffsetRatio = t.computeMultistepBoxChange = t.computeMultistepBoxChangeInSlide = t.computeMultistepChange = void 0;
  8810. const r = n(5);
  8811. function i(e, t, n) {
  8812. var i, a;
  8813. for (const s of null !== (i = e.multistepBoxes) && void 0 !== i ? i : []) {
  8814. const i = r.findBox(e.boxes, e=>e.id === s);
  8815. if (i) {
  8816. const e = o(i, null === (a = t.boxes) || void 0 === a ? void 0 : a.find(e=>e.id === s), n);
  8817. if (e)
  8818. return {
  8819. boxes: [e]
  8820. }
  8821. }
  8822. }
  8823. return null
  8824. }
  8825. function o(e, n, r) {
  8826. var i, o;
  8827. if ("group" === e.contentType && e.contentHeight > e.bounds.height) {
  8828. const a = Math.round(null !== (o = null !== (i = null == n ? void 0 : n.scrollOffset) && void 0 !== i ? i : e.scrollOffset) && void 0 !== o ? o : 0)
  8829. , s = e.bounds.height * t.inSlideScrollOffsetRatio
  8830. , l = Math.round(r.scroll(a, s))
  8831. , u = 0
  8832. , c = Math.round(Math.max(u, e.contentHeight - e.bounds.height))
  8833. , d = Math.max(u, Math.min(c, l));
  8834. return d === a ? null : {
  8835. id: e.id,
  8836. scrollOffset: d
  8837. }
  8838. }
  8839. return null
  8840. }
  8841. t.computeMultistepChange = function(e, t, n) {
  8842. switch (e.kind) {
  8843. case "forward":
  8844. return i(t, n, {
  8845. scroll: (e,t)=>e + t
  8846. });
  8847. case "backward":
  8848. return i(t, n, {
  8849. scroll: (e,t)=>e - t
  8850. });
  8851. case "present":
  8852. case "fastForward":
  8853. case "fastBackward":
  8854. case "changeAppearance":
  8855. case "changeSlideSize":
  8856. return null
  8857. }
  8858. }
  8859. ,
  8860. t.computeMultistepBoxChangeInSlide = i,
  8861. t.computeMultistepBoxChange = o,
  8862. t.inSlideScrollOffsetRatio = .8
  8863. },
  8864. 168: function(e, t, n) {
  8865. "use strict";
  8866. Object.defineProperty(t, "__esModule", {
  8867. value: !0
  8868. }),
  8869. t.TextView = void 0;
  8870. const r = n(12)
  8871. , i = n(51);
  8872. class o extends i.BoxView {
  8873. createViewElement() {
  8874. const e = document.createElement("div");
  8875. return e.style.display = "block",
  8876. e.style.position = "absolute",
  8877. e.style.userSelect = "none",
  8878. e.style.overflow = "visible",
  8879. e.classList.add("pancake-view-text-view"),
  8880. e
  8881. }
  8882. get textEl() {
  8883. var e;
  8884. return null !== (e = this._textEl) && void 0 !== e ? e : this._textEl = this._createTextElement()
  8885. }
  8886. _createTextElement() {
  8887. const e = document.createElement("div");
  8888. return e.style.userSelect = "none",
  8889. e.style.overflow = "visible",
  8890. e.style.overflowWrap = "break-word",
  8891. e.style.display = "block",
  8892. e.style.position = "absolute",
  8893. e.style.left = "0px",
  8894. e.style.top = "0px",
  8895. this.el.appendChild(e),
  8896. e
  8897. }
  8898. update() {
  8899. var e, t, n, i, o, a;
  8900. super.update();
  8901. const s = r.toCSSLength(this.box.bounds.width)
  8902. , l = r.toCSSLength(this.box.bounds.height);
  8903. this.textEl.style.width = s,
  8904. this.textEl.style.height = l,
  8905. this.textEl.style.font = r.toCSSFont(this.box),
  8906. this.textEl.style.color = null !== (e = this.box.textColor) && void 0 !== e ? e : "",
  8907. this.textEl.style.textAlign = null !== (t = r.toCSSTextAlign(this.box.textAlignment)) && void 0 !== t ? t : "",
  8908. this.textEl.style.overflowWrap = null !== (n = this.box.overflowWrap) && void 0 !== n ? n : "",
  8909. this.textEl.style.textIndent = null !== (i = this.box.textIndent) && void 0 !== i ? i : "",
  8910. this.textEl.style.textShadow = null !== (o = this.box.textShadow) && void 0 !== o ? o : "",
  8911. this.textEl.style.letterSpacing = null !== (a = this.box.letterSpacing) && void 0 !== a ? a : "";
  8912. const u = this.textEl;
  8913. u && (r.emptyElement(u),
  8914. r.fillText(u, this.box.text))
  8915. }
  8916. }
  8917. t.TextView = o
  8918. },
  8919. 169: function(e, t, n) {
  8920. "use strict";
  8921. Object.defineProperty(t, "__esModule", {
  8922. value: !0
  8923. }),
  8924. t.ShapeView = void 0;
  8925. const r = n(12)
  8926. , i = n(51)
  8927. , o = n(50);
  8928. class a extends i.BoxView {
  8929. createViewElement() {
  8930. const e = document.createElementNS("http://www.w3.org/2000/svg", "svg");
  8931. return e.style.position = "absolute",
  8932. e.style.pointerEvents = "none",
  8933. e
  8934. }
  8935. get shape() {
  8936. if (!this._shape) {
  8937. if (this._shape = document.createElementNS("http://www.w3.org/2000/svg", "path"),
  8938. this.box.markerStart) {
  8939. const e = document.createElementNS("http://www.w3.org/2000/svg", "defs")
  8940. , t = document.createElementNS("http://www.w3.org/2000/svg", "marker")
  8941. , n = `marker-start-${(new Date).getTime()}-${Math.floor(1e3 * Math.random())}`;
  8942. t.id = n,
  8943. t.setAttribute("markerUnits", "userSpaceOnUse"),
  8944. t.setAttribute("markerWidth", "" + this.box.markerStart.size.width),
  8945. t.setAttribute("markerHeight", "" + this.box.markerStart.size.height),
  8946. t.setAttribute("refX", "" + (this.box.markerStart.ref ? this.box.markerStart.ref.x : 0)),
  8947. t.setAttribute("refY", "" + (this.box.markerStart.ref ? this.box.markerStart.ref.y : 0));
  8948. const r = document.createElementNS("http://www.w3.org/2000/svg", "path");
  8949. r.setAttribute("d", this.box.markerStart.path),
  8950. t.appendChild(r),
  8951. e.appendChild(t),
  8952. this.el.appendChild(e),
  8953. this.shape.style.markerStart = `url(#${n})`,
  8954. this._markerStartEl = t
  8955. }
  8956. this.el.appendChild(this._shape)
  8957. }
  8958. return this._shape
  8959. }
  8960. update() {
  8961. var e, t, n, i, a, s, l, u, c, d, f, h, p;
  8962. super.update(),
  8963. this.el.setAttribute("viewBox", `0 0 ${this.box.bounds.width} ${this.box.bounds.height}`),
  8964. this.shape.setAttribute("d", null !== (e = this.box.shapePath) && void 0 !== e ? e : "");
  8965. const g = this.state;
  8966. this.shape.style.fill = null !== (n = null !== (t = g.fillColor) && void 0 !== t ? t : this.box.fillColor) && void 0 !== n ? n : "transparent",
  8967. this.shape.style.stroke = null !== (a = null !== (i = g.strokeColor) && void 0 !== i ? i : this.box.strokeColor) && void 0 !== a ? a : "transparent",
  8968. this.shape.style.strokeWidth = r.toCSSLength(null !== (l = null !== (s = g.lineWidth) && void 0 !== s ? s : this.box.lineWidth) && void 0 !== l ? l : 0),
  8969. this.shape.style.strokeLinecap = null !== (c = null !== (u = g.lineCap) && void 0 !== u ? u : this.box.lineCap) && void 0 !== c ? c : "",
  8970. this.shape.style.strokeLinejoin = null !== (f = null !== (d = g.lineJoin) && void 0 !== d ? d : this.box.lineJoin) && void 0 !== f ? f : "",
  8971. this._markerStartEl && (this._markerStartEl.style.fill = null !== (p = null !== (h = g.strokeColor) && void 0 !== h ? h : this.box.strokeColor) && void 0 !== p ? p : "transparent"),
  8972. this.updateStyle(g, "strokeOffset", e=>o.ViewAnimator.perform(this.shape, {
  8973. strokeOffset: null != e ? e : 0
  8974. }))
  8975. }
  8976. }
  8977. t.ShapeView = a
  8978. },
  8979. 170: function(e, t, n) {
  8980. "use strict";
  8981. Object.defineProperty(t, "__esModule", {
  8982. value: !0
  8983. }),
  8984. t.ImageView = void 0;
  8985. const r = n(12)
  8986. , i = n(51);
  8987. class o extends i.BoxView {
  8988. createViewElement() {
  8989. const e = document.createElement("img");
  8990. return e.style.display = "block",
  8991. e.style.position = "absolute",
  8992. e.style.userSelect = "none",
  8993. e
  8994. }
  8995. update() {
  8996. var e;
  8997. super.update();
  8998. const t = r.toCSSLength(this.box.bounds.width)
  8999. , n = r.toCSSLength(this.box.bounds.height);
  9000. this.el.style.width = t,
  9001. this.el.style.height = n,
  9002. this.el.style.objectFit = null !== (e = this.box.objectFit) && void 0 !== e ? e : "",
  9003. this.el.src = this.box.imageSource
  9004. }
  9005. }
  9006. t.ImageView = o
  9007. },
  9008. 171: function(e, t, n) {
  9009. "use strict";
  9010. Object.defineProperty(t, "__esModule", {
  9011. value: !0
  9012. }),
  9013. t.SVGTemplateView = void 0;
  9014. const r = n(51)
  9015. , i = n(12);
  9016. class o extends r.BoxView {
  9017. createViewElement() {
  9018. const e = document.createElement("div");
  9019. return e.style.display = "block",
  9020. e.style.position = "absolute",
  9021. e.style.userSelect = "none",
  9022. e
  9023. }
  9024. get svgEl() {
  9025. var e;
  9026. return null !== (e = this._svgEl) && void 0 !== e ? e : this._svgEl = this._createSVGElement()
  9027. }
  9028. _createSVGElement() {
  9029. var e;
  9030. const t = this._createSvgDom(this.box.svg);
  9031. return t.setAttribute("fill", null !== (e = this.box.fillColor) && void 0 !== e ? e : ""),
  9032. this.el.appendChild(t),
  9033. t
  9034. }
  9035. update() {
  9036. super.update();
  9037. const e = i.toCSSLength(this.box.bounds.width)
  9038. , t = i.toCSSLength(this.box.bounds.height);
  9039. this.svgEl.style.width = e,
  9040. this.svgEl.style.height = t
  9041. }
  9042. _createSvgDom(e) {
  9043. return (new DOMParser).parseFromString(e, "image/svg+xml").documentElement
  9044. }
  9045. }
  9046. t.SVGTemplateView = o
  9047. },
  9048. 172: function(e, t, n) {
  9049. "use strict";
  9050. var r = this && this.__awaiter || function(e, t, n, r) {
  9051. return new (n || (n = Promise))((function(i, o) {
  9052. function a(e) {
  9053. try {
  9054. l(r.next(e))
  9055. } catch (e) {
  9056. o(e)
  9057. }
  9058. }
  9059. function s(e) {
  9060. try {
  9061. l(r.throw(e))
  9062. } catch (e) {
  9063. o(e)
  9064. }
  9065. }
  9066. function l(e) {
  9067. var t;
  9068. e.done ? i(e.value) : (t = e.value,
  9069. t instanceof n ? t : new n((function(e) {
  9070. e(t)
  9071. }
  9072. ))).then(a, s)
  9073. }
  9074. l((r = r.apply(e, t || [])).next())
  9075. }
  9076. ))
  9077. }
  9078. , i = this && this.__importDefault || function(e) {
  9079. return e && e.__esModule ? e : {
  9080. default: e
  9081. }
  9082. }
  9083. ;
  9084. Object.defineProperty(t, "__esModule", {
  9085. value: !0
  9086. }),
  9087. t.SlideView = void 0;
  9088. const o = n(76)
  9089. , a = n(51)
  9090. , s = n(112)
  9091. , l = n(50)
  9092. , u = n(111)
  9093. , c = n(12)
  9094. , d = n(110)
  9095. , f = i(n(70))
  9096. , h = n(13);
  9097. class p extends o.View {
  9098. constructor() {
  9099. super(...arguments),
  9100. this.slide = null,
  9101. this.slideState = {},
  9102. this._boxViews = [],
  9103. this._renderedState = {}
  9104. }
  9105. createViewElement() {
  9106. const e = document.createElement("div");
  9107. return e.style.display = "block",
  9108. e.style.position = "relative",
  9109. e.style.overflow = "hidden",
  9110. e
  9111. }
  9112. get positionMode() {
  9113. return "absolute" === this.el.style.position ? "manual" : "auto"
  9114. }
  9115. set positionMode(e) {
  9116. this.el.style.position = "manual" === e ? "absolute" : "relative"
  9117. }
  9118. get backgroundEl() {
  9119. var e;
  9120. return null !== (e = this._backgroundEl) && void 0 !== e ? e : this._backgroundEl = this.createBackgroundElement()
  9121. }
  9122. createBackgroundElement() {
  9123. const e = this.createLayerElement();
  9124. return this.el.insertBefore(e, this.el.firstChild),
  9125. e
  9126. }
  9127. get contentEl() {
  9128. var e;
  9129. return null !== (e = this._contentEl) && void 0 !== e ? e : this._contentEl = this.createContentElement()
  9130. }
  9131. createContentElement() {
  9132. const e = this.createLayerElement();
  9133. return this.el.appendChild(e),
  9134. e
  9135. }
  9136. createLayerElement() {
  9137. const e = document.createElement("div");
  9138. return e.style.display = "block",
  9139. e.style.position = "absolute",
  9140. e.style.top = "0px",
  9141. e.style.left = "0px",
  9142. e.style.backgroundColor = "none",
  9143. e
  9144. }
  9145. get boxViews() {
  9146. return [...this._boxViews]
  9147. }
  9148. update() {
  9149. var e, t, n, r, i, o;
  9150. super.update();
  9151. const a = null !== (t = null === (e = this.slide) || void 0 === e ? void 0 : e.width) && void 0 !== t ? t : 1
  9152. , u = null !== (r = null === (n = this.slide) || void 0 === n ? void 0 : n.height) && void 0 !== r ? r : 1
  9153. , d = c.toCSSLength(a)
  9154. , f = c.toCSSLength(u);
  9155. this.el.style.width = d,
  9156. this.el.style.height = f,
  9157. this.backgroundEl.style.width = d,
  9158. this.backgroundEl.style.height = f,
  9159. this.contentEl.style.width = d,
  9160. this.contentEl.style.height = f;
  9161. const h = this.slideState;
  9162. this._updateStyle(h, "opacity", e=>l.ViewAnimator.perform(this.el, {
  9163. opacity: null != e ? e : 1
  9164. })),
  9165. this._updateStyle(h, "backgroundOpacity", e=>l.ViewAnimator.perform(this.backgroundEl, {
  9166. opacity: null != e ? e : 1
  9167. })),
  9168. this._updateStyle(h, "backgroundColor", e=>l.ViewAnimator.perform(this.backgroundEl, {
  9169. backgroundColor: null != e ? e : "none"
  9170. }));
  9171. const p = [...this._boxViews]
  9172. , g = null !== (o = null === (i = this.slide) || void 0 === i ? void 0 : i.boxes) && void 0 !== o ? o : [];
  9173. for (let e = 0; e < g.length; e++) {
  9174. const t = g[e];
  9175. let n = p[e];
  9176. if (n)
  9177. if (n.box.id === t.id)
  9178. n.box = t,
  9179. n.update();
  9180. else {
  9181. const r = p.slice(e + 1).find(e=>e.box.id === t.id);
  9182. if (r)
  9183. this.contentEl.insertBefore(r.el, n.el),
  9184. r.box = t,
  9185. r.update(),
  9186. p.splice(e, 0, r);
  9187. else {
  9188. const r = s.createBoxView(this, t);
  9189. this.contentEl.insertBefore(r.el, n.el),
  9190. r.update(),
  9191. p.splice(e, 0, r),
  9192. this.connected && r.connect()
  9193. }
  9194. }
  9195. else
  9196. n = s.createBoxView(this, t),
  9197. this.contentEl.appendChild(n.el),
  9198. n.update(),
  9199. p.push(n)
  9200. }
  9201. for (; p.length > g.length; ) {
  9202. const e = p.pop();
  9203. this.connected && e.disconnect(),
  9204. this.contentEl.removeChild(e.el)
  9205. }
  9206. this._boxViews = p,
  9207. this._updateHitRegionEls(h)
  9208. }
  9209. _updateStyle(e, t, n) {
  9210. var r, i;
  9211. const o = null !== (r = null == e ? void 0 : e[t]) && void 0 !== r ? r : null === (i = this.slide) || void 0 === i ? void 0 : i[t];
  9212. o !== this._renderedState[t] && (n(o),
  9213. this._renderedState[t] = o)
  9214. }
  9215. stackWith(e) {
  9216. this.el.insertBefore(e.contentEl, this.contentEl.nextSibling),
  9217. this.el.insertBefore(e.backgroundEl, this.backgroundEl.nextSibling)
  9218. }
  9219. unstackWith(e) {
  9220. e.el.appendChild(e.contentEl),
  9221. e.el.insertBefore(e.backgroundEl, e.el.firstChild)
  9222. }
  9223. getBoxViewById(e) {
  9224. return this.findBoxView(t=>t.box.id === e)
  9225. }
  9226. findBoxView(e) {
  9227. let t = null;
  9228. return this.forEachBoxView((n,r)=>{
  9229. if (e(n))
  9230. return t = n,
  9231. r()
  9232. }
  9233. ),
  9234. t
  9235. }
  9236. forEachBoxView(e) {
  9237. return a.forEachBoxViewIn(this._boxViews, e)
  9238. }
  9239. connect() {
  9240. super.connect();
  9241. for (const e of this._boxViews)
  9242. e.connect()
  9243. }
  9244. disconnect() {
  9245. for (const e of this._boxViews)
  9246. e.disconnect();
  9247. super.disconnect()
  9248. }
  9249. clone() {
  9250. const e = new p;
  9251. e.slide = this.slide,
  9252. e.update();
  9253. const t = {};
  9254. return this.forEachBoxView((function(e) {
  9255. e instanceof u.GroupView && (t[e.box.id] = e.scrollOffset)
  9256. }
  9257. )),
  9258. e.forEachBoxView((function(e) {
  9259. if (e instanceof u.GroupView) {
  9260. const n = t[e.box.id];
  9261. void 0 !== n && (e.scrollOffset = n)
  9262. }
  9263. }
  9264. )),
  9265. e
  9266. }
  9267. get hitRegionEls() {
  9268. var e;
  9269. return null !== (e = this._hitRegionEls) && void 0 !== e ? e : []
  9270. }
  9271. _createHitRegionEl() {
  9272. const e = document.createElement("div");
  9273. return e.style.position = "absolute",
  9274. e.style.borderStyle = "solid",
  9275. e.style.transition = "opacity 0.15s ease-in-out",
  9276. e.style.userSelect = "none",
  9277. e.style.pointerEvents = "none",
  9278. e.style.opacity = "0",
  9279. e.style.setProperty("backdrop-filter", "blur(20px)"),
  9280. this.el.insertBefore(e, this.contentEl),
  9281. e
  9282. }
  9283. _updateHitRegionEl(e, t, n) {
  9284. var r, i, o, a, s, l, u, d, f, h, p, g, m;
  9285. const v = e;
  9286. v.style.opacity = "" + t.opacity,
  9287. v.style.background = null !== (o = null !== (r = null == n ? void 0 : n.hitRegionFillColor) && void 0 !== r ? r : null === (i = this.slide) || void 0 === i ? void 0 : i.hitRegionFillColor) && void 0 !== o ? o : "rgba(0,0,0,0.5)",
  9288. v.style.borderRadius = c.toCSSLength(null !== (a = null == n ? void 0 : n.hitRegionCornerRadius) && void 0 !== a ? a : null === (s = this.slide) || void 0 === s ? void 0 : s.hitRegionCornerRadius),
  9289. v.style.borderWidth = c.toCSSLength(null !== (l = null == n ? void 0 : n.hitRegionLineWidth) && void 0 !== l ? l : null === (u = this.slide) || void 0 === u ? void 0 : u.hitRegionLineWidth),
  9290. v.style.borderColor = null !== (h = null !== (d = null == n ? void 0 : n.hitRegionStrokeColor) && void 0 !== d ? d : null === (f = this.slide) || void 0 === f ? void 0 : f.hitRegionStrokeColor) && void 0 !== h ? h : "rgba(0,0,0,0.6)",
  9291. v.style.boxShadow = null !== (m = null !== (p = null == n ? void 0 : n.hitRegionBoxShadow) && void 0 !== p ? p : null === (g = this.slide) || void 0 === g ? void 0 : g.hitRegionBoxShadow) && void 0 !== m ? m : "",
  9292. v.style.transform = `translate(${c.toCSSLength(t.x)}, ${c.toCSSLength(t.y)})`,
  9293. v.style.width = c.toCSSLength(t.width),
  9294. v.style.height = c.toCSSLength(t.height)
  9295. }
  9296. enterHitRegionActiveEffect(e, t=200) {
  9297. var n, i;
  9298. return r(this, void 0, void 0, (function*() {
  9299. const r = this.hitRegionEls.find(t=>h.intersectDOMRect(t.getBoundingClientRect(), e.el.getBoundingClientRect()));
  9300. r && (yield Promise.all([f.default({
  9301. targets: r,
  9302. background: null !== (i = null === (n = this.slide) || void 0 === n ? void 0 : n.hitRegionActiveFillColor) && void 0 !== i ? i : "rgba(196, 196, 196, 0.3)",
  9303. easing: "easeOutQuad",
  9304. duration: t
  9305. }).finished, f.default({
  9306. targets: [r, e.el],
  9307. scale: .97,
  9308. easing: "easeOutQuad",
  9309. duration: t
  9310. }).finished]))
  9311. }
  9312. ))
  9313. }
  9314. cancelHitRegionActiveEffect(e, t=100) {
  9315. var n, i;
  9316. return r(this, void 0, void 0, (function*() {
  9317. const r = this.hitRegionEls.find(t=>h.intersectDOMRect(t.getBoundingClientRect(), e.el.getBoundingClientRect()));
  9318. r && (yield Promise.all([f.default({
  9319. targets: r,
  9320. background: null !== (i = null === (n = this.slide) || void 0 === n ? void 0 : n.hitRegionFillColor) && void 0 !== i ? i : "rgba(196, 196, 196, 0.3)",
  9321. easing: "easeOutQuad",
  9322. duration: t
  9323. }).finished, f.default({
  9324. targets: [r, e.el],
  9325. scale: 1,
  9326. easing: "easeOutQuad",
  9327. duration: t
  9328. }).finished]))
  9329. }
  9330. ))
  9331. }
  9332. _updateHitRegionEls(e) {
  9333. var t;
  9334. const n = null === (t = d.findPresentationContext(this, "presentationState")) || void 0 === t ? void 0 : t.presentationState
  9335. , r = null == n ? void 0 : n.hitRegions;
  9336. r ? 1 === r.length && 1 === this.hitRegionEls.length ? this._updateHitRegionEl(this.hitRegionEls[0], r[0], e) : (this.hitRegionEls.forEach(e=>this.el.removeChild(e)),
  9337. this._hitRegionEls = [],
  9338. r.forEach(t=>{
  9339. var n;
  9340. const r = this._createHitRegionEl();
  9341. this._updateHitRegionEl(r, t, e),
  9342. null === (n = this._hitRegionEls) || void 0 === n || n.push(r)
  9343. }
  9344. )) : (this.hitRegionEls.forEach(e=>this.el.removeChild(e)),
  9345. this._hitRegionEls = [])
  9346. }
  9347. }
  9348. t.SlideView = p
  9349. },
  9350. 173: function(e, t, n) {
  9351. (function(e, r) {
  9352. var i;
  9353. /**
  9354. * @license
  9355. * Lodash <https://lodash.com/>
  9356. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  9357. * Released under MIT license <https://lodash.com/license>
  9358. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  9359. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  9360. */
  9361. (function() {
  9362. var o = "Expected a function"
  9363. , a = "__lodash_placeholder__"
  9364. , s = [["ary", 128], ["bind", 1], ["bindKey", 2], ["curry", 8], ["curryRight", 16], ["flip", 512], ["partial", 32], ["partialRight", 64], ["rearg", 256]]
  9365. , l = "[object Arguments]"
  9366. , u = "[object Array]"
  9367. , c = "[object Boolean]"
  9368. , d = "[object Date]"
  9369. , f = "[object Error]"
  9370. , h = "[object Function]"
  9371. , p = "[object GeneratorFunction]"
  9372. , g = "[object Map]"
  9373. , m = "[object Number]"
  9374. , v = "[object Object]"
  9375. , y = "[object RegExp]"
  9376. , b = "[object Set]"
  9377. , _ = "[object String]"
  9378. , w = "[object Symbol]"
  9379. , S = "[object WeakMap]"
  9380. , x = "[object ArrayBuffer]"
  9381. , k = "[object DataView]"
  9382. , I = "[object Float32Array]"
  9383. , C = "[object Float64Array]"
  9384. , M = "[object Int8Array]"
  9385. , T = "[object Int16Array]"
  9386. , A = "[object Int32Array]"
  9387. , E = "[object Uint8Array]"
  9388. , O = "[object Uint16Array]"
  9389. , B = "[object Uint32Array]"
  9390. , L = /\b__p \+= '';/g
  9391. , P = /\b(__p \+=) '' \+/g
  9392. , R = /(__e\(.*?\)|\b__t\)) \+\n'';/g
  9393. , z = /&(?:amp|lt|gt|quot|#39);/g
  9394. , j = /[&<>"']/g
  9395. , F = RegExp(z.source)
  9396. , D = RegExp(j.source)
  9397. , N = /<%-([\s\S]+?)%>/g
  9398. , U = /<%([\s\S]+?)%>/g
  9399. , W = /<%=([\s\S]+?)%>/g
  9400. , H = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/
  9401. , V = /^\w*$/
  9402. , $ = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g
  9403. , G = /[\\^$.*+?()[\]{}|]/g
  9404. , Z = RegExp(G.source)
  9405. , q = /^\s+|\s+$/g
  9406. , Y = /^\s+/
  9407. , X = /\s+$/
  9408. , J = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/
  9409. , Q = /\{\n\/\* \[wrapped with (.+)\] \*/
  9410. , K = /,? & /
  9411. , ee = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g
  9412. , te = /\\(\\)?/g
  9413. , ne = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g
  9414. , re = /\w*$/
  9415. , ie = /^[-+]0x[0-9a-f]+$/i
  9416. , oe = /^0b[01]+$/i
  9417. , ae = /^\[object .+?Constructor\]$/
  9418. , se = /^0o[0-7]+$/i
  9419. , le = /^(?:0|[1-9]\d*)$/
  9420. , ue = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g
  9421. , ce = /($^)/
  9422. , de = /['\n\r\u2028\u2029\\]/g
  9423. , fe = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff"
  9424. , he = "\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000"
  9425. , pe = "[\\ud800-\\udfff]"
  9426. , ge = "[" + he + "]"
  9427. , me = "[" + fe + "]"
  9428. , ve = "\\d+"
  9429. , ye = "[\\u2700-\\u27bf]"
  9430. , be = "[a-z\\xdf-\\xf6\\xf8-\\xff]"
  9431. , _e = "[^\\ud800-\\udfff" + he + ve + "\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]"
  9432. , we = "\\ud83c[\\udffb-\\udfff]"
  9433. , Se = "[^\\ud800-\\udfff]"
  9434. , xe = "(?:\\ud83c[\\udde6-\\uddff]){2}"
  9435. , ke = "[\\ud800-\\udbff][\\udc00-\\udfff]"
  9436. , Ie = "[A-Z\\xc0-\\xd6\\xd8-\\xde]"
  9437. , Ce = "(?:" + be + "|" + _e + ")"
  9438. , Me = "(?:" + Ie + "|" + _e + ")"
  9439. , Te = "(?:" + me + "|" + we + ")" + "?"
  9440. , Ae = "[\\ufe0e\\ufe0f]?" + Te + ("(?:\\u200d(?:" + [Se, xe, ke].join("|") + ")[\\ufe0e\\ufe0f]?" + Te + ")*")
  9441. , Ee = "(?:" + [ye, xe, ke].join("|") + ")" + Ae
  9442. , Oe = "(?:" + [Se + me + "?", me, xe, ke, pe].join("|") + ")"
  9443. , Be = RegExp("['’]", "g")
  9444. , Le = RegExp(me, "g")
  9445. , Pe = RegExp(we + "(?=" + we + ")|" + Oe + Ae, "g")
  9446. , Re = RegExp([Ie + "?" + be + "+(?:['’](?:d|ll|m|re|s|t|ve))?(?=" + [ge, Ie, "$"].join("|") + ")", Me + "+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=" + [ge, Ie + Ce, "$"].join("|") + ")", Ie + "?" + Ce + "+(?:['’](?:d|ll|m|re|s|t|ve))?", Ie + "+(?:['’](?:D|LL|M|RE|S|T|VE))?", "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", ve, Ee].join("|"), "g")
  9447. , ze = RegExp("[\\u200d\\ud800-\\udfff" + fe + "\\ufe0e\\ufe0f]")
  9448. , je = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/
  9449. , Fe = ["Array", "Buffer", "DataView", "Date", "Error", "Float32Array", "Float64Array", "Function", "Int8Array", "Int16Array", "Int32Array", "Map", "Math", "Object", "Promise", "RegExp", "Set", "String", "Symbol", "TypeError", "Uint8Array", "Uint8ClampedArray", "Uint16Array", "Uint32Array", "WeakMap", "_", "clearTimeout", "isFinite", "parseInt", "setTimeout"]
  9450. , De = -1
  9451. , Ne = {};
  9452. Ne[I] = Ne[C] = Ne[M] = Ne[T] = Ne[A] = Ne[E] = Ne["[object Uint8ClampedArray]"] = Ne[O] = Ne[B] = !0,
  9453. Ne[l] = Ne[u] = Ne[x] = Ne[c] = Ne[k] = Ne[d] = Ne[f] = Ne[h] = Ne[g] = Ne[m] = Ne[v] = Ne[y] = Ne[b] = Ne[_] = Ne[S] = !1;
  9454. var Ue = {};
  9455. Ue[l] = Ue[u] = Ue[x] = Ue[k] = Ue[c] = Ue[d] = Ue[I] = Ue[C] = Ue[M] = Ue[T] = Ue[A] = Ue[g] = Ue[m] = Ue[v] = Ue[y] = Ue[b] = Ue[_] = Ue[w] = Ue[E] = Ue["[object Uint8ClampedArray]"] = Ue[O] = Ue[B] = !0,
  9456. Ue[f] = Ue[h] = Ue[S] = !1;
  9457. var We = {
  9458. "\\": "\\",
  9459. "'": "'",
  9460. "\n": "n",
  9461. "\r": "r",
  9462. "\u2028": "u2028",
  9463. "\u2029": "u2029"
  9464. }
  9465. , He = parseFloat
  9466. , Ve = parseInt
  9467. , $e = "object" == typeof e && e && e.Object === Object && e
  9468. , Ge = "object" == typeof self && self && self.Object === Object && self
  9469. , Ze = $e || Ge || Function("return this")()
  9470. , qe = t && !t.nodeType && t
  9471. , Ye = qe && "object" == typeof r && r && !r.nodeType && r
  9472. , Xe = Ye && Ye.exports === qe
  9473. , Je = Xe && $e.process
  9474. , Qe = function() {
  9475. try {
  9476. var e = Ye && Ye.require && Ye.require("util").types;
  9477. return e || Je && Je.binding && Je.binding("util")
  9478. } catch (e) {}
  9479. }()
  9480. , Ke = Qe && Qe.isArrayBuffer
  9481. , et = Qe && Qe.isDate
  9482. , tt = Qe && Qe.isMap
  9483. , nt = Qe && Qe.isRegExp
  9484. , rt = Qe && Qe.isSet
  9485. , it = Qe && Qe.isTypedArray;
  9486. function ot(e, t, n) {
  9487. switch (n.length) {
  9488. case 0:
  9489. return e.call(t);
  9490. case 1:
  9491. return e.call(t, n[0]);
  9492. case 2:
  9493. return e.call(t, n[0], n[1]);
  9494. case 3:
  9495. return e.call(t, n[0], n[1], n[2])
  9496. }
  9497. return e.apply(t, n)
  9498. }
  9499. function at(e, t, n, r) {
  9500. for (var i = -1, o = null == e ? 0 : e.length; ++i < o; ) {
  9501. var a = e[i];
  9502. t(r, a, n(a), e)
  9503. }
  9504. return r
  9505. }
  9506. function st(e, t) {
  9507. for (var n = -1, r = null == e ? 0 : e.length; ++n < r && !1 !== t(e[n], n, e); )
  9508. ;
  9509. return e
  9510. }
  9511. function lt(e, t) {
  9512. for (var n = null == e ? 0 : e.length; n-- && !1 !== t(e[n], n, e); )
  9513. ;
  9514. return e
  9515. }
  9516. function ut(e, t) {
  9517. for (var n = -1, r = null == e ? 0 : e.length; ++n < r; )
  9518. if (!t(e[n], n, e))
  9519. return !1;
  9520. return !0
  9521. }
  9522. function ct(e, t) {
  9523. for (var n = -1, r = null == e ? 0 : e.length, i = 0, o = []; ++n < r; ) {
  9524. var a = e[n];
  9525. t(a, n, e) && (o[i++] = a)
  9526. }
  9527. return o
  9528. }
  9529. function dt(e, t) {
  9530. return !!(null == e ? 0 : e.length) && wt(e, t, 0) > -1
  9531. }
  9532. function ft(e, t, n) {
  9533. for (var r = -1, i = null == e ? 0 : e.length; ++r < i; )
  9534. if (n(t, e[r]))
  9535. return !0;
  9536. return !1
  9537. }
  9538. function ht(e, t) {
  9539. for (var n = -1, r = null == e ? 0 : e.length, i = Array(r); ++n < r; )
  9540. i[n] = t(e[n], n, e);
  9541. return i
  9542. }
  9543. function pt(e, t) {
  9544. for (var n = -1, r = t.length, i = e.length; ++n < r; )
  9545. e[i + n] = t[n];
  9546. return e
  9547. }
  9548. function gt(e, t, n, r) {
  9549. var i = -1
  9550. , o = null == e ? 0 : e.length;
  9551. for (r && o && (n = e[++i]); ++i < o; )
  9552. n = t(n, e[i], i, e);
  9553. return n
  9554. }
  9555. function mt(e, t, n, r) {
  9556. var i = null == e ? 0 : e.length;
  9557. for (r && i && (n = e[--i]); i--; )
  9558. n = t(n, e[i], i, e);
  9559. return n
  9560. }
  9561. function vt(e, t) {
  9562. for (var n = -1, r = null == e ? 0 : e.length; ++n < r; )
  9563. if (t(e[n], n, e))
  9564. return !0;
  9565. return !1
  9566. }
  9567. var yt = It("length");
  9568. function bt(e, t, n) {
  9569. var r;
  9570. return n(e, (function(e, n, i) {
  9571. if (t(e, n, i))
  9572. return r = n,
  9573. !1
  9574. }
  9575. )),
  9576. r
  9577. }
  9578. function _t(e, t, n, r) {
  9579. for (var i = e.length, o = n + (r ? 1 : -1); r ? o-- : ++o < i; )
  9580. if (t(e[o], o, e))
  9581. return o;
  9582. return -1
  9583. }
  9584. function wt(e, t, n) {
  9585. return t == t ? function(e, t, n) {
  9586. var r = n - 1
  9587. , i = e.length;
  9588. for (; ++r < i; )
  9589. if (e[r] === t)
  9590. return r;
  9591. return -1
  9592. }(e, t, n) : _t(e, xt, n)
  9593. }
  9594. function St(e, t, n, r) {
  9595. for (var i = n - 1, o = e.length; ++i < o; )
  9596. if (r(e[i], t))
  9597. return i;
  9598. return -1
  9599. }
  9600. function xt(e) {
  9601. return e != e
  9602. }
  9603. function kt(e, t) {
  9604. var n = null == e ? 0 : e.length;
  9605. return n ? Tt(e, t) / n : NaN
  9606. }
  9607. function It(e) {
  9608. return function(t) {
  9609. return null == t ? void 0 : t[e]
  9610. }
  9611. }
  9612. function Ct(e) {
  9613. return function(t) {
  9614. return null == e ? void 0 : e[t]
  9615. }
  9616. }
  9617. function Mt(e, t, n, r, i) {
  9618. return i(e, (function(e, i, o) {
  9619. n = r ? (r = !1,
  9620. e) : t(n, e, i, o)
  9621. }
  9622. )),
  9623. n
  9624. }
  9625. function Tt(e, t) {
  9626. for (var n, r = -1, i = e.length; ++r < i; ) {
  9627. var o = t(e[r]);
  9628. void 0 !== o && (n = void 0 === n ? o : n + o)
  9629. }
  9630. return n
  9631. }
  9632. function At(e, t) {
  9633. for (var n = -1, r = Array(e); ++n < e; )
  9634. r[n] = t(n);
  9635. return r
  9636. }
  9637. function Et(e) {
  9638. return function(t) {
  9639. return e(t)
  9640. }
  9641. }
  9642. function Ot(e, t) {
  9643. return ht(t, (function(t) {
  9644. return e[t]
  9645. }
  9646. ))
  9647. }
  9648. function Bt(e, t) {
  9649. return e.has(t)
  9650. }
  9651. function Lt(e, t) {
  9652. for (var n = -1, r = e.length; ++n < r && wt(t, e[n], 0) > -1; )
  9653. ;
  9654. return n
  9655. }
  9656. function Pt(e, t) {
  9657. for (var n = e.length; n-- && wt(t, e[n], 0) > -1; )
  9658. ;
  9659. return n
  9660. }
  9661. function Rt(e, t) {
  9662. for (var n = e.length, r = 0; n--; )
  9663. e[n] === t && ++r;
  9664. return r
  9665. }
  9666. var zt = Ct({
  9667. "À": "A",
  9668. "Á": "A",
  9669. "Â": "A",
  9670. "Ã": "A",
  9671. "Ä": "A",
  9672. "Å": "A",
  9673. "à": "a",
  9674. "á": "a",
  9675. "â": "a",
  9676. "ã": "a",
  9677. "ä": "a",
  9678. "å": "a",
  9679. "Ç": "C",
  9680. "ç": "c",
  9681. "Ð": "D",
  9682. "ð": "d",
  9683. "È": "E",
  9684. "É": "E",
  9685. "Ê": "E",
  9686. "Ë": "E",
  9687. "è": "e",
  9688. "é": "e",
  9689. "ê": "e",
  9690. "ë": "e",
  9691. "Ì": "I",
  9692. "Í": "I",
  9693. "Î": "I",
  9694. "Ï": "I",
  9695. "ì": "i",
  9696. "í": "i",
  9697. "î": "i",
  9698. "ï": "i",
  9699. "Ñ": "N",
  9700. "ñ": "n",
  9701. "Ò": "O",
  9702. "Ó": "O",
  9703. "Ô": "O",
  9704. "Õ": "O",
  9705. "Ö": "O",
  9706. "Ø": "O",
  9707. "ò": "o",
  9708. "ó": "o",
  9709. "ô": "o",
  9710. "õ": "o",
  9711. "ö": "o",
  9712. "ø": "o",
  9713. "Ù": "U",
  9714. "Ú": "U",
  9715. "Û": "U",
  9716. "Ü": "U",
  9717. "ù": "u",
  9718. "ú": "u",
  9719. "û": "u",
  9720. "ü": "u",
  9721. "Ý": "Y",
  9722. "ý": "y",
  9723. "ÿ": "y",
  9724. "Æ": "Ae",
  9725. "æ": "ae",
  9726. "Þ": "Th",
  9727. "þ": "th",
  9728. "ß": "ss",
  9729. "Ā": "A",
  9730. "Ă": "A",
  9731. "Ą": "A",
  9732. "ā": "a",
  9733. "ă": "a",
  9734. "ą": "a",
  9735. "Ć": "C",
  9736. "Ĉ": "C",
  9737. "Ċ": "C",
  9738. "Č": "C",
  9739. "ć": "c",
  9740. "ĉ": "c",
  9741. "ċ": "c",
  9742. "č": "c",
  9743. "Ď": "D",
  9744. "Đ": "D",
  9745. "ď": "d",
  9746. "đ": "d",
  9747. "Ē": "E",
  9748. "Ĕ": "E",
  9749. "Ė": "E",
  9750. "Ę": "E",
  9751. "Ě": "E",
  9752. "ē": "e",
  9753. "ĕ": "e",
  9754. "ė": "e",
  9755. "ę": "e",
  9756. "ě": "e",
  9757. "Ĝ": "G",
  9758. "Ğ": "G",
  9759. "Ġ": "G",
  9760. "Ģ": "G",
  9761. "ĝ": "g",
  9762. "ğ": "g",
  9763. "ġ": "g",
  9764. "ģ": "g",
  9765. "Ĥ": "H",
  9766. "Ħ": "H",
  9767. "ĥ": "h",
  9768. "ħ": "h",
  9769. "Ĩ": "I",
  9770. "Ī": "I",
  9771. "Ĭ": "I",
  9772. "Į": "I",
  9773. "İ": "I",
  9774. "ĩ": "i",
  9775. "ī": "i",
  9776. "ĭ": "i",
  9777. "į": "i",
  9778. "ı": "i",
  9779. "Ĵ": "J",
  9780. "ĵ": "j",
  9781. "Ķ": "K",
  9782. "ķ": "k",
  9783. "ĸ": "k",
  9784. "Ĺ": "L",
  9785. "Ļ": "L",
  9786. "Ľ": "L",
  9787. "Ŀ": "L",
  9788. "Ł": "L",
  9789. "ĺ": "l",
  9790. "ļ": "l",
  9791. "ľ": "l",
  9792. "ŀ": "l",
  9793. "ł": "l",
  9794. "Ń": "N",
  9795. "Ņ": "N",
  9796. "Ň": "N",
  9797. "Ŋ": "N",
  9798. "ń": "n",
  9799. "ņ": "n",
  9800. "ň": "n",
  9801. "ŋ": "n",
  9802. "Ō": "O",
  9803. "Ŏ": "O",
  9804. "Ő": "O",
  9805. "ō": "o",
  9806. "ŏ": "o",
  9807. "ő": "o",
  9808. "Ŕ": "R",
  9809. "Ŗ": "R",
  9810. "Ř": "R",
  9811. "ŕ": "r",
  9812. "ŗ": "r",
  9813. "ř": "r",
  9814. "Ś": "S",
  9815. "Ŝ": "S",
  9816. "Ş": "S",
  9817. "Š": "S",
  9818. "ś": "s",
  9819. "ŝ": "s",
  9820. "ş": "s",
  9821. "š": "s",
  9822. "Ţ": "T",
  9823. "Ť": "T",
  9824. "Ŧ": "T",
  9825. "ţ": "t",
  9826. "ť": "t",
  9827. "ŧ": "t",
  9828. "Ũ": "U",
  9829. "Ū": "U",
  9830. "Ŭ": "U",
  9831. "Ů": "U",
  9832. "Ű": "U",
  9833. "Ų": "U",
  9834. "ũ": "u",
  9835. "ū": "u",
  9836. "ŭ": "u",
  9837. "ů": "u",
  9838. "ű": "u",
  9839. "ų": "u",
  9840. "Ŵ": "W",
  9841. "ŵ": "w",
  9842. "Ŷ": "Y",
  9843. "ŷ": "y",
  9844. "Ÿ": "Y",
  9845. "Ź": "Z",
  9846. "Ż": "Z",
  9847. "Ž": "Z",
  9848. "ź": "z",
  9849. "ż": "z",
  9850. "ž": "z",
  9851. "IJ": "IJ",
  9852. "ij": "ij",
  9853. "Œ": "Oe",
  9854. "œ": "oe",
  9855. "ʼn": "'n",
  9856. "ſ": "s"
  9857. })
  9858. , jt = Ct({
  9859. "&": "&amp;",
  9860. "<": "&lt;",
  9861. ">": "&gt;",
  9862. '"': "&quot;",
  9863. "'": "&#39;"
  9864. });
  9865. function Ft(e) {
  9866. return "\\" + We[e]
  9867. }
  9868. function Dt(e) {
  9869. return ze.test(e)
  9870. }
  9871. function Nt(e) {
  9872. var t = -1
  9873. , n = Array(e.size);
  9874. return e.forEach((function(e, r) {
  9875. n[++t] = [r, e]
  9876. }
  9877. )),
  9878. n
  9879. }
  9880. function Ut(e, t) {
  9881. return function(n) {
  9882. return e(t(n))
  9883. }
  9884. }
  9885. function Wt(e, t) {
  9886. for (var n = -1, r = e.length, i = 0, o = []; ++n < r; ) {
  9887. var s = e[n];
  9888. s !== t && s !== a || (e[n] = a,
  9889. o[i++] = n)
  9890. }
  9891. return o
  9892. }
  9893. function Ht(e) {
  9894. var t = -1
  9895. , n = Array(e.size);
  9896. return e.forEach((function(e) {
  9897. n[++t] = e
  9898. }
  9899. )),
  9900. n
  9901. }
  9902. function Vt(e) {
  9903. var t = -1
  9904. , n = Array(e.size);
  9905. return e.forEach((function(e) {
  9906. n[++t] = [e, e]
  9907. }
  9908. )),
  9909. n
  9910. }
  9911. function $t(e) {
  9912. return Dt(e) ? function(e) {
  9913. var t = Pe.lastIndex = 0;
  9914. for (; Pe.test(e); )
  9915. ++t;
  9916. return t
  9917. }(e) : yt(e)
  9918. }
  9919. function Gt(e) {
  9920. return Dt(e) ? function(e) {
  9921. return e.match(Pe) || []
  9922. }(e) : function(e) {
  9923. return e.split("")
  9924. }(e)
  9925. }
  9926. var Zt = Ct({
  9927. "&amp;": "&",
  9928. "&lt;": "<",
  9929. "&gt;": ">",
  9930. "&quot;": '"',
  9931. "&#39;": "'"
  9932. });
  9933. var qt = function e(t) {
  9934. var n, r = (t = null == t ? Ze : qt.defaults(Ze.Object(), t, qt.pick(Ze, Fe))).Array, i = t.Date, fe = t.Error, he = t.Function, pe = t.Math, ge = t.Object, me = t.RegExp, ve = t.String, ye = t.TypeError, be = r.prototype, _e = he.prototype, we = ge.prototype, Se = t["__core-js_shared__"], xe = _e.toString, ke = we.hasOwnProperty, Ie = 0, Ce = (n = /[^.]+$/.exec(Se && Se.keys && Se.keys.IE_PROTO || "")) ? "Symbol(src)_1." + n : "", Me = we.toString, Te = xe.call(ge), Ae = Ze._, Ee = me("^" + xe.call(ke).replace(G, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), Oe = Xe ? t.Buffer : void 0, Pe = t.Symbol, ze = t.Uint8Array, We = Oe ? Oe.allocUnsafe : void 0, $e = Ut(ge.getPrototypeOf, ge), Ge = ge.create, qe = we.propertyIsEnumerable, Ye = be.splice, Je = Pe ? Pe.isConcatSpreadable : void 0, Qe = Pe ? Pe.iterator : void 0, yt = Pe ? Pe.toStringTag : void 0, Ct = function() {
  9935. try {
  9936. var e = Ki(ge, "defineProperty");
  9937. return e({}, "", {}),
  9938. e
  9939. } catch (e) {}
  9940. }(), Yt = t.clearTimeout !== Ze.clearTimeout && t.clearTimeout, Xt = i && i.now !== Ze.Date.now && i.now, Jt = t.setTimeout !== Ze.setTimeout && t.setTimeout, Qt = pe.ceil, Kt = pe.floor, en = ge.getOwnPropertySymbols, tn = Oe ? Oe.isBuffer : void 0, nn = t.isFinite, rn = be.join, on = Ut(ge.keys, ge), an = pe.max, sn = pe.min, ln = i.now, un = t.parseInt, cn = pe.random, dn = be.reverse, fn = Ki(t, "DataView"), hn = Ki(t, "Map"), pn = Ki(t, "Promise"), gn = Ki(t, "Set"), mn = Ki(t, "WeakMap"), vn = Ki(ge, "create"), yn = mn && new mn, bn = {}, _n = Mo(fn), wn = Mo(hn), Sn = Mo(pn), xn = Mo(gn), kn = Mo(mn), In = Pe ? Pe.prototype : void 0, Cn = In ? In.valueOf : void 0, Mn = In ? In.toString : void 0;
  9941. function Tn(e) {
  9942. if (Va(e) && !La(e) && !(e instanceof Bn)) {
  9943. if (e instanceof On)
  9944. return e;
  9945. if (ke.call(e, "__wrapped__"))
  9946. return To(e)
  9947. }
  9948. return new On(e)
  9949. }
  9950. var An = function() {
  9951. function e() {}
  9952. return function(t) {
  9953. if (!Ha(t))
  9954. return {};
  9955. if (Ge)
  9956. return Ge(t);
  9957. e.prototype = t;
  9958. var n = new e;
  9959. return e.prototype = void 0,
  9960. n
  9961. }
  9962. }();
  9963. function En() {}
  9964. function On(e, t) {
  9965. this.__wrapped__ = e,
  9966. this.__actions__ = [],
  9967. this.__chain__ = !!t,
  9968. this.__index__ = 0,
  9969. this.__values__ = void 0
  9970. }
  9971. function Bn(e) {
  9972. this.__wrapped__ = e,
  9973. this.__actions__ = [],
  9974. this.__dir__ = 1,
  9975. this.__filtered__ = !1,
  9976. this.__iteratees__ = [],
  9977. this.__takeCount__ = 4294967295,
  9978. this.__views__ = []
  9979. }
  9980. function Ln(e) {
  9981. var t = -1
  9982. , n = null == e ? 0 : e.length;
  9983. for (this.clear(); ++t < n; ) {
  9984. var r = e[t];
  9985. this.set(r[0], r[1])
  9986. }
  9987. }
  9988. function Pn(e) {
  9989. var t = -1
  9990. , n = null == e ? 0 : e.length;
  9991. for (this.clear(); ++t < n; ) {
  9992. var r = e[t];
  9993. this.set(r[0], r[1])
  9994. }
  9995. }
  9996. function Rn(e) {
  9997. var t = -1
  9998. , n = null == e ? 0 : e.length;
  9999. for (this.clear(); ++t < n; ) {
  10000. var r = e[t];
  10001. this.set(r[0], r[1])
  10002. }
  10003. }
  10004. function zn(e) {
  10005. var t = -1
  10006. , n = null == e ? 0 : e.length;
  10007. for (this.__data__ = new Rn; ++t < n; )
  10008. this.add(e[t])
  10009. }
  10010. function jn(e) {
  10011. var t = this.__data__ = new Pn(e);
  10012. this.size = t.size
  10013. }
  10014. function Fn(e, t) {
  10015. var n = La(e)
  10016. , r = !n && Ba(e)
  10017. , i = !n && !r && ja(e)
  10018. , o = !n && !r && !i && Qa(e)
  10019. , a = n || r || i || o
  10020. , s = a ? At(e.length, ve) : []
  10021. , l = s.length;
  10022. for (var u in e)
  10023. !t && !ke.call(e, u) || a && ("length" == u || i && ("offset" == u || "parent" == u) || o && ("buffer" == u || "byteLength" == u || "byteOffset" == u) || ao(u, l)) || s.push(u);
  10024. return s
  10025. }
  10026. function Dn(e) {
  10027. var t = e.length;
  10028. return t ? e[zr(0, t - 1)] : void 0
  10029. }
  10030. function Nn(e, t) {
  10031. return ko(vi(e), Yn(t, 0, e.length))
  10032. }
  10033. function Un(e) {
  10034. return ko(vi(e))
  10035. }
  10036. function Wn(e, t, n) {
  10037. (void 0 !== n && !Aa(e[t], n) || void 0 === n && !(t in e)) && Zn(e, t, n)
  10038. }
  10039. function Hn(e, t, n) {
  10040. var r = e[t];
  10041. ke.call(e, t) && Aa(r, n) && (void 0 !== n || t in e) || Zn(e, t, n)
  10042. }
  10043. function Vn(e, t) {
  10044. for (var n = e.length; n--; )
  10045. if (Aa(e[n][0], t))
  10046. return n;
  10047. return -1
  10048. }
  10049. function $n(e, t, n, r) {
  10050. return er(e, (function(e, i, o) {
  10051. t(r, e, n(e), o)
  10052. }
  10053. )),
  10054. r
  10055. }
  10056. function Gn(e, t) {
  10057. return e && yi(t, _s(t), e)
  10058. }
  10059. function Zn(e, t, n) {
  10060. "__proto__" == t && Ct ? Ct(e, t, {
  10061. configurable: !0,
  10062. enumerable: !0,
  10063. value: n,
  10064. writable: !0
  10065. }) : e[t] = n
  10066. }
  10067. function qn(e, t) {
  10068. for (var n = -1, i = t.length, o = r(i), a = null == e; ++n < i; )
  10069. o[n] = a ? void 0 : gs(e, t[n]);
  10070. return o
  10071. }
  10072. function Yn(e, t, n) {
  10073. return e == e && (void 0 !== n && (e = e <= n ? e : n),
  10074. void 0 !== t && (e = e >= t ? e : t)),
  10075. e
  10076. }
  10077. function Xn(e, t, n, r, i, o) {
  10078. var a, s = 1 & t, u = 2 & t, f = 4 & t;
  10079. if (n && (a = i ? n(e, r, i, o) : n(e)),
  10080. void 0 !== a)
  10081. return a;
  10082. if (!Ha(e))
  10083. return e;
  10084. var S = La(e);
  10085. if (S) {
  10086. if (a = function(e) {
  10087. var t = e.length
  10088. , n = new e.constructor(t);
  10089. t && "string" == typeof e[0] && ke.call(e, "index") && (n.index = e.index,
  10090. n.input = e.input);
  10091. return n
  10092. }(e),
  10093. !s)
  10094. return vi(e, a)
  10095. } else {
  10096. var L = no(e)
  10097. , P = L == h || L == p;
  10098. if (ja(e))
  10099. return di(e, s);
  10100. if (L == v || L == l || P && !i) {
  10101. if (a = u || P ? {} : io(e),
  10102. !s)
  10103. return u ? function(e, t) {
  10104. return yi(e, to(e), t)
  10105. }(e, function(e, t) {
  10106. return e && yi(t, ws(t), e)
  10107. }(a, e)) : function(e, t) {
  10108. return yi(e, eo(e), t)
  10109. }(e, Gn(a, e))
  10110. } else {
  10111. if (!Ue[L])
  10112. return i ? e : {};
  10113. a = function(e, t, n) {
  10114. var r = e.constructor;
  10115. switch (t) {
  10116. case x:
  10117. return fi(e);
  10118. case c:
  10119. case d:
  10120. return new r(+e);
  10121. case k:
  10122. return function(e, t) {
  10123. var n = t ? fi(e.buffer) : e.buffer;
  10124. return new e.constructor(n,e.byteOffset,e.byteLength)
  10125. }(e, n);
  10126. case I:
  10127. case C:
  10128. case M:
  10129. case T:
  10130. case A:
  10131. case E:
  10132. case "[object Uint8ClampedArray]":
  10133. case O:
  10134. case B:
  10135. return hi(e, n);
  10136. case g:
  10137. return new r;
  10138. case m:
  10139. case _:
  10140. return new r(e);
  10141. case y:
  10142. return function(e) {
  10143. var t = new e.constructor(e.source,re.exec(e));
  10144. return t.lastIndex = e.lastIndex,
  10145. t
  10146. }(e);
  10147. case b:
  10148. return new r;
  10149. case w:
  10150. return i = e,
  10151. Cn ? ge(Cn.call(i)) : {}
  10152. }
  10153. var i
  10154. }(e, L, s)
  10155. }
  10156. }
  10157. o || (o = new jn);
  10158. var R = o.get(e);
  10159. if (R)
  10160. return R;
  10161. o.set(e, a),
  10162. Ya(e) ? e.forEach((function(r) {
  10163. a.add(Xn(r, t, n, r, e, o))
  10164. }
  10165. )) : $a(e) && e.forEach((function(r, i) {
  10166. a.set(i, Xn(r, t, n, i, e, o))
  10167. }
  10168. ));
  10169. var z = S ? void 0 : (f ? u ? Gi : $i : u ? ws : _s)(e);
  10170. return st(z || e, (function(r, i) {
  10171. z && (r = e[i = r]),
  10172. Hn(a, i, Xn(r, t, n, i, e, o))
  10173. }
  10174. )),
  10175. a
  10176. }
  10177. function Jn(e, t, n) {
  10178. var r = n.length;
  10179. if (null == e)
  10180. return !r;
  10181. for (e = ge(e); r--; ) {
  10182. var i = n[r]
  10183. , o = t[i]
  10184. , a = e[i];
  10185. if (void 0 === a && !(i in e) || !o(a))
  10186. return !1
  10187. }
  10188. return !0
  10189. }
  10190. function Qn(e, t, n) {
  10191. if ("function" != typeof e)
  10192. throw new ye(o);
  10193. return _o((function() {
  10194. e.apply(void 0, n)
  10195. }
  10196. ), t)
  10197. }
  10198. function Kn(e, t, n, r) {
  10199. var i = -1
  10200. , o = dt
  10201. , a = !0
  10202. , s = e.length
  10203. , l = []
  10204. , u = t.length;
  10205. if (!s)
  10206. return l;
  10207. n && (t = ht(t, Et(n))),
  10208. r ? (o = ft,
  10209. a = !1) : t.length >= 200 && (o = Bt,
  10210. a = !1,
  10211. t = new zn(t));
  10212. e: for (; ++i < s; ) {
  10213. var c = e[i]
  10214. , d = null == n ? c : n(c);
  10215. if (c = r || 0 !== c ? c : 0,
  10216. a && d == d) {
  10217. for (var f = u; f--; )
  10218. if (t[f] === d)
  10219. continue e;
  10220. l.push(c)
  10221. } else
  10222. o(t, d, r) || l.push(c)
  10223. }
  10224. return l
  10225. }
  10226. Tn.templateSettings = {
  10227. escape: N,
  10228. evaluate: U,
  10229. interpolate: W,
  10230. variable: "",
  10231. imports: {
  10232. _: Tn
  10233. }
  10234. },
  10235. Tn.prototype = En.prototype,
  10236. Tn.prototype.constructor = Tn,
  10237. On.prototype = An(En.prototype),
  10238. On.prototype.constructor = On,
  10239. Bn.prototype = An(En.prototype),
  10240. Bn.prototype.constructor = Bn,
  10241. Ln.prototype.clear = function() {
  10242. this.__data__ = vn ? vn(null) : {},
  10243. this.size = 0
  10244. }
  10245. ,
  10246. Ln.prototype.delete = function(e) {
  10247. var t = this.has(e) && delete this.__data__[e];
  10248. return this.size -= t ? 1 : 0,
  10249. t
  10250. }
  10251. ,
  10252. Ln.prototype.get = function(e) {
  10253. var t = this.__data__;
  10254. if (vn) {
  10255. var n = t[e];
  10256. return "__lodash_hash_undefined__" === n ? void 0 : n
  10257. }
  10258. return ke.call(t, e) ? t[e] : void 0
  10259. }
  10260. ,
  10261. Ln.prototype.has = function(e) {
  10262. var t = this.__data__;
  10263. return vn ? void 0 !== t[e] : ke.call(t, e)
  10264. }
  10265. ,
  10266. Ln.prototype.set = function(e, t) {
  10267. var n = this.__data__;
  10268. return this.size += this.has(e) ? 0 : 1,
  10269. n[e] = vn && void 0 === t ? "__lodash_hash_undefined__" : t,
  10270. this
  10271. }
  10272. ,
  10273. Pn.prototype.clear = function() {
  10274. this.__data__ = [],
  10275. this.size = 0
  10276. }
  10277. ,
  10278. Pn.prototype.delete = function(e) {
  10279. var t = this.__data__
  10280. , n = Vn(t, e);
  10281. return !(n < 0) && (n == t.length - 1 ? t.pop() : Ye.call(t, n, 1),
  10282. --this.size,
  10283. !0)
  10284. }
  10285. ,
  10286. Pn.prototype.get = function(e) {
  10287. var t = this.__data__
  10288. , n = Vn(t, e);
  10289. return n < 0 ? void 0 : t[n][1]
  10290. }
  10291. ,
  10292. Pn.prototype.has = function(e) {
  10293. return Vn(this.__data__, e) > -1
  10294. }
  10295. ,
  10296. Pn.prototype.set = function(e, t) {
  10297. var n = this.__data__
  10298. , r = Vn(n, e);
  10299. return r < 0 ? (++this.size,
  10300. n.push([e, t])) : n[r][1] = t,
  10301. this
  10302. }
  10303. ,
  10304. Rn.prototype.clear = function() {
  10305. this.size = 0,
  10306. this.__data__ = {
  10307. hash: new Ln,
  10308. map: new (hn || Pn),
  10309. string: new Ln
  10310. }
  10311. }
  10312. ,
  10313. Rn.prototype.delete = function(e) {
  10314. var t = Ji(this, e).delete(e);
  10315. return this.size -= t ? 1 : 0,
  10316. t
  10317. }
  10318. ,
  10319. Rn.prototype.get = function(e) {
  10320. return Ji(this, e).get(e)
  10321. }
  10322. ,
  10323. Rn.prototype.has = function(e) {
  10324. return Ji(this, e).has(e)
  10325. }
  10326. ,
  10327. Rn.prototype.set = function(e, t) {
  10328. var n = Ji(this, e)
  10329. , r = n.size;
  10330. return n.set(e, t),
  10331. this.size += n.size == r ? 0 : 1,
  10332. this
  10333. }
  10334. ,
  10335. zn.prototype.add = zn.prototype.push = function(e) {
  10336. return this.__data__.set(e, "__lodash_hash_undefined__"),
  10337. this
  10338. }
  10339. ,
  10340. zn.prototype.has = function(e) {
  10341. return this.__data__.has(e)
  10342. }
  10343. ,
  10344. jn.prototype.clear = function() {
  10345. this.__data__ = new Pn,
  10346. this.size = 0
  10347. }
  10348. ,
  10349. jn.prototype.delete = function(e) {
  10350. var t = this.__data__
  10351. , n = t.delete(e);
  10352. return this.size = t.size,
  10353. n
  10354. }
  10355. ,
  10356. jn.prototype.get = function(e) {
  10357. return this.__data__.get(e)
  10358. }
  10359. ,
  10360. jn.prototype.has = function(e) {
  10361. return this.__data__.has(e)
  10362. }
  10363. ,
  10364. jn.prototype.set = function(e, t) {
  10365. var n = this.__data__;
  10366. if (n instanceof Pn) {
  10367. var r = n.__data__;
  10368. if (!hn || r.length < 199)
  10369. return r.push([e, t]),
  10370. this.size = ++n.size,
  10371. this;
  10372. n = this.__data__ = new Rn(r)
  10373. }
  10374. return n.set(e, t),
  10375. this.size = n.size,
  10376. this
  10377. }
  10378. ;
  10379. var er = wi(lr)
  10380. , tr = wi(ur, !0);
  10381. function nr(e, t) {
  10382. var n = !0;
  10383. return er(e, (function(e, r, i) {
  10384. return n = !!t(e, r, i)
  10385. }
  10386. )),
  10387. n
  10388. }
  10389. function rr(e, t, n) {
  10390. for (var r = -1, i = e.length; ++r < i; ) {
  10391. var o = e[r]
  10392. , a = t(o);
  10393. if (null != a && (void 0 === s ? a == a && !Ja(a) : n(a, s)))
  10394. var s = a
  10395. , l = o
  10396. }
  10397. return l
  10398. }
  10399. function ir(e, t) {
  10400. var n = [];
  10401. return er(e, (function(e, r, i) {
  10402. t(e, r, i) && n.push(e)
  10403. }
  10404. )),
  10405. n
  10406. }
  10407. function or(e, t, n, r, i) {
  10408. var o = -1
  10409. , a = e.length;
  10410. for (n || (n = oo),
  10411. i || (i = []); ++o < a; ) {
  10412. var s = e[o];
  10413. t > 0 && n(s) ? t > 1 ? or(s, t - 1, n, r, i) : pt(i, s) : r || (i[i.length] = s)
  10414. }
  10415. return i
  10416. }
  10417. var ar = Si()
  10418. , sr = Si(!0);
  10419. function lr(e, t) {
  10420. return e && ar(e, t, _s)
  10421. }
  10422. function ur(e, t) {
  10423. return e && sr(e, t, _s)
  10424. }
  10425. function cr(e, t) {
  10426. return ct(t, (function(t) {
  10427. return Na(e[t])
  10428. }
  10429. ))
  10430. }
  10431. function dr(e, t) {
  10432. for (var n = 0, r = (t = si(t, e)).length; null != e && n < r; )
  10433. e = e[Co(t[n++])];
  10434. return n && n == r ? e : void 0
  10435. }
  10436. function fr(e, t, n) {
  10437. var r = t(e);
  10438. return La(e) ? r : pt(r, n(e))
  10439. }
  10440. function hr(e) {
  10441. return null == e ? void 0 === e ? "[object Undefined]" : "[object Null]" : yt && yt in ge(e) ? function(e) {
  10442. var t = ke.call(e, yt)
  10443. , n = e[yt];
  10444. try {
  10445. e[yt] = void 0;
  10446. var r = !0
  10447. } catch (e) {}
  10448. var i = Me.call(e);
  10449. r && (t ? e[yt] = n : delete e[yt]);
  10450. return i
  10451. }(e) : function(e) {
  10452. return Me.call(e)
  10453. }(e)
  10454. }
  10455. function pr(e, t) {
  10456. return e > t
  10457. }
  10458. function gr(e, t) {
  10459. return null != e && ke.call(e, t)
  10460. }
  10461. function mr(e, t) {
  10462. return null != e && t in ge(e)
  10463. }
  10464. function vr(e, t, n) {
  10465. for (var i = n ? ft : dt, o = e[0].length, a = e.length, s = a, l = r(a), u = 1 / 0, c = []; s--; ) {
  10466. var d = e[s];
  10467. s && t && (d = ht(d, Et(t))),
  10468. u = sn(d.length, u),
  10469. l[s] = !n && (t || o >= 120 && d.length >= 120) ? new zn(s && d) : void 0
  10470. }
  10471. d = e[0];
  10472. var f = -1
  10473. , h = l[0];
  10474. e: for (; ++f < o && c.length < u; ) {
  10475. var p = d[f]
  10476. , g = t ? t(p) : p;
  10477. if (p = n || 0 !== p ? p : 0,
  10478. !(h ? Bt(h, g) : i(c, g, n))) {
  10479. for (s = a; --s; ) {
  10480. var m = l[s];
  10481. if (!(m ? Bt(m, g) : i(e[s], g, n)))
  10482. continue e
  10483. }
  10484. h && h.push(g),
  10485. c.push(p)
  10486. }
  10487. }
  10488. return c
  10489. }
  10490. function yr(e, t, n) {
  10491. var r = null == (e = mo(e, t = si(t, e))) ? e : e[Co(Do(t))];
  10492. return null == r ? void 0 : ot(r, e, n)
  10493. }
  10494. function br(e) {
  10495. return Va(e) && hr(e) == l
  10496. }
  10497. function _r(e, t, n, r, i) {
  10498. return e === t || (null == e || null == t || !Va(e) && !Va(t) ? e != e && t != t : function(e, t, n, r, i, o) {
  10499. var a = La(e)
  10500. , s = La(t)
  10501. , h = a ? u : no(e)
  10502. , p = s ? u : no(t)
  10503. , S = (h = h == l ? v : h) == v
  10504. , I = (p = p == l ? v : p) == v
  10505. , C = h == p;
  10506. if (C && ja(e)) {
  10507. if (!ja(t))
  10508. return !1;
  10509. a = !0,
  10510. S = !1
  10511. }
  10512. if (C && !S)
  10513. return o || (o = new jn),
  10514. a || Qa(e) ? Hi(e, t, n, r, i, o) : function(e, t, n, r, i, o, a) {
  10515. switch (n) {
  10516. case k:
  10517. if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
  10518. return !1;
  10519. e = e.buffer,
  10520. t = t.buffer;
  10521. case x:
  10522. return !(e.byteLength != t.byteLength || !o(new ze(e), new ze(t)));
  10523. case c:
  10524. case d:
  10525. case m:
  10526. return Aa(+e, +t);
  10527. case f:
  10528. return e.name == t.name && e.message == t.message;
  10529. case y:
  10530. case _:
  10531. return e == t + "";
  10532. case g:
  10533. var s = Nt;
  10534. case b:
  10535. var l = 1 & r;
  10536. if (s || (s = Ht),
  10537. e.size != t.size && !l)
  10538. return !1;
  10539. var u = a.get(e);
  10540. if (u)
  10541. return u == t;
  10542. r |= 2,
  10543. a.set(e, t);
  10544. var h = Hi(s(e), s(t), r, i, o, a);
  10545. return a.delete(e),
  10546. h;
  10547. case w:
  10548. if (Cn)
  10549. return Cn.call(e) == Cn.call(t)
  10550. }
  10551. return !1
  10552. }(e, t, h, n, r, i, o);
  10553. if (!(1 & n)) {
  10554. var M = S && ke.call(e, "__wrapped__")
  10555. , T = I && ke.call(t, "__wrapped__");
  10556. if (M || T) {
  10557. var A = M ? e.value() : e
  10558. , E = T ? t.value() : t;
  10559. return o || (o = new jn),
  10560. i(A, E, n, r, o)
  10561. }
  10562. }
  10563. if (!C)
  10564. return !1;
  10565. return o || (o = new jn),
  10566. function(e, t, n, r, i, o) {
  10567. var a = 1 & n
  10568. , s = $i(e)
  10569. , l = s.length
  10570. , u = $i(t).length;
  10571. if (l != u && !a)
  10572. return !1;
  10573. var c = l;
  10574. for (; c--; ) {
  10575. var d = s[c];
  10576. if (!(a ? d in t : ke.call(t, d)))
  10577. return !1
  10578. }
  10579. var f = o.get(e);
  10580. if (f && o.get(t))
  10581. return f == t;
  10582. var h = !0;
  10583. o.set(e, t),
  10584. o.set(t, e);
  10585. var p = a;
  10586. for (; ++c < l; ) {
  10587. d = s[c];
  10588. var g = e[d]
  10589. , m = t[d];
  10590. if (r)
  10591. var v = a ? r(m, g, d, t, e, o) : r(g, m, d, e, t, o);
  10592. if (!(void 0 === v ? g === m || i(g, m, n, r, o) : v)) {
  10593. h = !1;
  10594. break
  10595. }
  10596. p || (p = "constructor" == d)
  10597. }
  10598. if (h && !p) {
  10599. var y = e.constructor
  10600. , b = t.constructor;
  10601. y == b || !("constructor"in e) || !("constructor"in t) || "function" == typeof y && y instanceof y && "function" == typeof b && b instanceof b || (h = !1)
  10602. }
  10603. return o.delete(e),
  10604. o.delete(t),
  10605. h
  10606. }(e, t, n, r, i, o)
  10607. }(e, t, n, r, _r, i))
  10608. }
  10609. function wr(e, t, n, r) {
  10610. var i = n.length
  10611. , o = i
  10612. , a = !r;
  10613. if (null == e)
  10614. return !o;
  10615. for (e = ge(e); i--; ) {
  10616. var s = n[i];
  10617. if (a && s[2] ? s[1] !== e[s[0]] : !(s[0]in e))
  10618. return !1
  10619. }
  10620. for (; ++i < o; ) {
  10621. var l = (s = n[i])[0]
  10622. , u = e[l]
  10623. , c = s[1];
  10624. if (a && s[2]) {
  10625. if (void 0 === u && !(l in e))
  10626. return !1
  10627. } else {
  10628. var d = new jn;
  10629. if (r)
  10630. var f = r(u, c, l, e, t, d);
  10631. if (!(void 0 === f ? _r(c, u, 3, r, d) : f))
  10632. return !1
  10633. }
  10634. }
  10635. return !0
  10636. }
  10637. function Sr(e) {
  10638. return !(!Ha(e) || (t = e,
  10639. Ce && Ce in t)) && (Na(e) ? Ee : ae).test(Mo(e));
  10640. var t
  10641. }
  10642. function xr(e) {
  10643. return "function" == typeof e ? e : null == e ? Gs : "object" == typeof e ? La(e) ? Ar(e[0], e[1]) : Tr(e) : tl(e)
  10644. }
  10645. function kr(e) {
  10646. if (!fo(e))
  10647. return on(e);
  10648. var t = [];
  10649. for (var n in ge(e))
  10650. ke.call(e, n) && "constructor" != n && t.push(n);
  10651. return t
  10652. }
  10653. function Ir(e) {
  10654. if (!Ha(e))
  10655. return function(e) {
  10656. var t = [];
  10657. if (null != e)
  10658. for (var n in ge(e))
  10659. t.push(n);
  10660. return t
  10661. }(e);
  10662. var t = fo(e)
  10663. , n = [];
  10664. for (var r in e)
  10665. ("constructor" != r || !t && ke.call(e, r)) && n.push(r);
  10666. return n
  10667. }
  10668. function Cr(e, t) {
  10669. return e < t
  10670. }
  10671. function Mr(e, t) {
  10672. var n = -1
  10673. , i = Ra(e) ? r(e.length) : [];
  10674. return er(e, (function(e, r, o) {
  10675. i[++n] = t(e, r, o)
  10676. }
  10677. )),
  10678. i
  10679. }
  10680. function Tr(e) {
  10681. var t = Qi(e);
  10682. return 1 == t.length && t[0][2] ? po(t[0][0], t[0][1]) : function(n) {
  10683. return n === e || wr(n, e, t)
  10684. }
  10685. }
  10686. function Ar(e, t) {
  10687. return lo(e) && ho(t) ? po(Co(e), t) : function(n) {
  10688. var r = gs(n, e);
  10689. return void 0 === r && r === t ? ms(n, e) : _r(t, r, 3)
  10690. }
  10691. }
  10692. function Er(e, t, n, r, i) {
  10693. e !== t && ar(t, (function(o, a) {
  10694. if (i || (i = new jn),
  10695. Ha(o))
  10696. !function(e, t, n, r, i, o, a) {
  10697. var s = yo(e, n)
  10698. , l = yo(t, n)
  10699. , u = a.get(l);
  10700. if (u)
  10701. return void Wn(e, n, u);
  10702. var c = o ? o(s, l, n + "", e, t, a) : void 0
  10703. , d = void 0 === c;
  10704. if (d) {
  10705. var f = La(l)
  10706. , h = !f && ja(l)
  10707. , p = !f && !h && Qa(l);
  10708. c = l,
  10709. f || h || p ? La(s) ? c = s : za(s) ? c = vi(s) : h ? (d = !1,
  10710. c = di(l, !0)) : p ? (d = !1,
  10711. c = hi(l, !0)) : c = [] : Za(l) || Ba(l) ? (c = s,
  10712. Ba(s) ? c = as(s) : Ha(s) && !Na(s) || (c = io(l))) : d = !1
  10713. }
  10714. d && (a.set(l, c),
  10715. i(c, l, r, o, a),
  10716. a.delete(l));
  10717. Wn(e, n, c)
  10718. }(e, t, a, n, Er, r, i);
  10719. else {
  10720. var s = r ? r(yo(e, a), o, a + "", e, t, i) : void 0;
  10721. void 0 === s && (s = o),
  10722. Wn(e, a, s)
  10723. }
  10724. }
  10725. ), ws)
  10726. }
  10727. function Or(e, t) {
  10728. var n = e.length;
  10729. if (n)
  10730. return ao(t += t < 0 ? n : 0, n) ? e[t] : void 0
  10731. }
  10732. function Br(e, t, n) {
  10733. var r = -1;
  10734. return t = ht(t.length ? t : [Gs], Et(Xi())),
  10735. function(e, t) {
  10736. var n = e.length;
  10737. for (e.sort(t); n--; )
  10738. e[n] = e[n].value;
  10739. return e
  10740. }(Mr(e, (function(e, n, i) {
  10741. return {
  10742. criteria: ht(t, (function(t) {
  10743. return t(e)
  10744. }
  10745. )),
  10746. index: ++r,
  10747. value: e
  10748. }
  10749. }
  10750. )), (function(e, t) {
  10751. return function(e, t, n) {
  10752. var r = -1
  10753. , i = e.criteria
  10754. , o = t.criteria
  10755. , a = i.length
  10756. , s = n.length;
  10757. for (; ++r < a; ) {
  10758. var l = pi(i[r], o[r]);
  10759. if (l) {
  10760. if (r >= s)
  10761. return l;
  10762. var u = n[r];
  10763. return l * ("desc" == u ? -1 : 1)
  10764. }
  10765. }
  10766. return e.index - t.index
  10767. }(e, t, n)
  10768. }
  10769. ))
  10770. }
  10771. function Lr(e, t, n) {
  10772. for (var r = -1, i = t.length, o = {}; ++r < i; ) {
  10773. var a = t[r]
  10774. , s = dr(e, a);
  10775. n(s, a) && Ur(o, si(a, e), s)
  10776. }
  10777. return o
  10778. }
  10779. function Pr(e, t, n, r) {
  10780. var i = r ? St : wt
  10781. , o = -1
  10782. , a = t.length
  10783. , s = e;
  10784. for (e === t && (t = vi(t)),
  10785. n && (s = ht(e, Et(n))); ++o < a; )
  10786. for (var l = 0, u = t[o], c = n ? n(u) : u; (l = i(s, c, l, r)) > -1; )
  10787. s !== e && Ye.call(s, l, 1),
  10788. Ye.call(e, l, 1);
  10789. return e
  10790. }
  10791. function Rr(e, t) {
  10792. for (var n = e ? t.length : 0, r = n - 1; n--; ) {
  10793. var i = t[n];
  10794. if (n == r || i !== o) {
  10795. var o = i;
  10796. ao(i) ? Ye.call(e, i, 1) : Kr(e, i)
  10797. }
  10798. }
  10799. return e
  10800. }
  10801. function zr(e, t) {
  10802. return e + Kt(cn() * (t - e + 1))
  10803. }
  10804. function jr(e, t) {
  10805. var n = "";
  10806. if (!e || t < 1 || t > 9007199254740991)
  10807. return n;
  10808. do {
  10809. t % 2 && (n += e),
  10810. (t = Kt(t / 2)) && (e += e)
  10811. } while (t);
  10812. return n
  10813. }
  10814. function Fr(e, t) {
  10815. return wo(go(e, t, Gs), e + "")
  10816. }
  10817. function Dr(e) {
  10818. return Dn(As(e))
  10819. }
  10820. function Nr(e, t) {
  10821. var n = As(e);
  10822. return ko(n, Yn(t, 0, n.length))
  10823. }
  10824. function Ur(e, t, n, r) {
  10825. if (!Ha(e))
  10826. return e;
  10827. for (var i = -1, o = (t = si(t, e)).length, a = o - 1, s = e; null != s && ++i < o; ) {
  10828. var l = Co(t[i])
  10829. , u = n;
  10830. if (i != a) {
  10831. var c = s[l];
  10832. void 0 === (u = r ? r(c, l, s) : void 0) && (u = Ha(c) ? c : ao(t[i + 1]) ? [] : {})
  10833. }
  10834. Hn(s, l, u),
  10835. s = s[l]
  10836. }
  10837. return e
  10838. }
  10839. var Wr = yn ? function(e, t) {
  10840. return yn.set(e, t),
  10841. e
  10842. }
  10843. : Gs
  10844. , Hr = Ct ? function(e, t) {
  10845. return Ct(e, "toString", {
  10846. configurable: !0,
  10847. enumerable: !1,
  10848. value: Hs(t),
  10849. writable: !0
  10850. })
  10851. }
  10852. : Gs;
  10853. function Vr(e) {
  10854. return ko(As(e))
  10855. }
  10856. function $r(e, t, n) {
  10857. var i = -1
  10858. , o = e.length;
  10859. t < 0 && (t = -t > o ? 0 : o + t),
  10860. (n = n > o ? o : n) < 0 && (n += o),
  10861. o = t > n ? 0 : n - t >>> 0,
  10862. t >>>= 0;
  10863. for (var a = r(o); ++i < o; )
  10864. a[i] = e[i + t];
  10865. return a
  10866. }
  10867. function Gr(e, t) {
  10868. var n;
  10869. return er(e, (function(e, r, i) {
  10870. return !(n = t(e, r, i))
  10871. }
  10872. )),
  10873. !!n
  10874. }
  10875. function Zr(e, t, n) {
  10876. var r = 0
  10877. , i = null == e ? r : e.length;
  10878. if ("number" == typeof t && t == t && i <= 2147483647) {
  10879. for (; r < i; ) {
  10880. var o = r + i >>> 1
  10881. , a = e[o];
  10882. null !== a && !Ja(a) && (n ? a <= t : a < t) ? r = o + 1 : i = o
  10883. }
  10884. return i
  10885. }
  10886. return qr(e, t, Gs, n)
  10887. }
  10888. function qr(e, t, n, r) {
  10889. t = n(t);
  10890. for (var i = 0, o = null == e ? 0 : e.length, a = t != t, s = null === t, l = Ja(t), u = void 0 === t; i < o; ) {
  10891. var c = Kt((i + o) / 2)
  10892. , d = n(e[c])
  10893. , f = void 0 !== d
  10894. , h = null === d
  10895. , p = d == d
  10896. , g = Ja(d);
  10897. if (a)
  10898. var m = r || p;
  10899. else
  10900. m = u ? p && (r || f) : s ? p && f && (r || !h) : l ? p && f && !h && (r || !g) : !h && !g && (r ? d <= t : d < t);
  10901. m ? i = c + 1 : o = c
  10902. }
  10903. return sn(o, 4294967294)
  10904. }
  10905. function Yr(e, t) {
  10906. for (var n = -1, r = e.length, i = 0, o = []; ++n < r; ) {
  10907. var a = e[n]
  10908. , s = t ? t(a) : a;
  10909. if (!n || !Aa(s, l)) {
  10910. var l = s;
  10911. o[i++] = 0 === a ? 0 : a
  10912. }
  10913. }
  10914. return o
  10915. }
  10916. function Xr(e) {
  10917. return "number" == typeof e ? e : Ja(e) ? NaN : +e
  10918. }
  10919. function Jr(e) {
  10920. if ("string" == typeof e)
  10921. return e;
  10922. if (La(e))
  10923. return ht(e, Jr) + "";
  10924. if (Ja(e))
  10925. return Mn ? Mn.call(e) : "";
  10926. var t = e + "";
  10927. return "0" == t && 1 / e == -1 / 0 ? "-0" : t
  10928. }
  10929. function Qr(e, t, n) {
  10930. var r = -1
  10931. , i = dt
  10932. , o = e.length
  10933. , a = !0
  10934. , s = []
  10935. , l = s;
  10936. if (n)
  10937. a = !1,
  10938. i = ft;
  10939. else if (o >= 200) {
  10940. var u = t ? null : ji(e);
  10941. if (u)
  10942. return Ht(u);
  10943. a = !1,
  10944. i = Bt,
  10945. l = new zn
  10946. } else
  10947. l = t ? [] : s;
  10948. e: for (; ++r < o; ) {
  10949. var c = e[r]
  10950. , d = t ? t(c) : c;
  10951. if (c = n || 0 !== c ? c : 0,
  10952. a && d == d) {
  10953. for (var f = l.length; f--; )
  10954. if (l[f] === d)
  10955. continue e;
  10956. t && l.push(d),
  10957. s.push(c)
  10958. } else
  10959. i(l, d, n) || (l !== s && l.push(d),
  10960. s.push(c))
  10961. }
  10962. return s
  10963. }
  10964. function Kr(e, t) {
  10965. return null == (e = mo(e, t = si(t, e))) || delete e[Co(Do(t))]
  10966. }
  10967. function ei(e, t, n, r) {
  10968. return Ur(e, t, n(dr(e, t)), r)
  10969. }
  10970. function ti(e, t, n, r) {
  10971. for (var i = e.length, o = r ? i : -1; (r ? o-- : ++o < i) && t(e[o], o, e); )
  10972. ;
  10973. return n ? $r(e, r ? 0 : o, r ? o + 1 : i) : $r(e, r ? o + 1 : 0, r ? i : o)
  10974. }
  10975. function ni(e, t) {
  10976. var n = e;
  10977. return n instanceof Bn && (n = n.value()),
  10978. gt(t, (function(e, t) {
  10979. return t.func.apply(t.thisArg, pt([e], t.args))
  10980. }
  10981. ), n)
  10982. }
  10983. function ri(e, t, n) {
  10984. var i = e.length;
  10985. if (i < 2)
  10986. return i ? Qr(e[0]) : [];
  10987. for (var o = -1, a = r(i); ++o < i; )
  10988. for (var s = e[o], l = -1; ++l < i; )
  10989. l != o && (a[o] = Kn(a[o] || s, e[l], t, n));
  10990. return Qr(or(a, 1), t, n)
  10991. }
  10992. function ii(e, t, n) {
  10993. for (var r = -1, i = e.length, o = t.length, a = {}; ++r < i; ) {
  10994. var s = r < o ? t[r] : void 0;
  10995. n(a, e[r], s)
  10996. }
  10997. return a
  10998. }
  10999. function oi(e) {
  11000. return za(e) ? e : []
  11001. }
  11002. function ai(e) {
  11003. return "function" == typeof e ? e : Gs
  11004. }
  11005. function si(e, t) {
  11006. return La(e) ? e : lo(e, t) ? [e] : Io(ss(e))
  11007. }
  11008. var li = Fr;
  11009. function ui(e, t, n) {
  11010. var r = e.length;
  11011. return n = void 0 === n ? r : n,
  11012. !t && n >= r ? e : $r(e, t, n)
  11013. }
  11014. var ci = Yt || function(e) {
  11015. return Ze.clearTimeout(e)
  11016. }
  11017. ;
  11018. function di(e, t) {
  11019. if (t)
  11020. return e.slice();
  11021. var n = e.length
  11022. , r = We ? We(n) : new e.constructor(n);
  11023. return e.copy(r),
  11024. r
  11025. }
  11026. function fi(e) {
  11027. var t = new e.constructor(e.byteLength);
  11028. return new ze(t).set(new ze(e)),
  11029. t
  11030. }
  11031. function hi(e, t) {
  11032. var n = t ? fi(e.buffer) : e.buffer;
  11033. return new e.constructor(n,e.byteOffset,e.length)
  11034. }
  11035. function pi(e, t) {
  11036. if (e !== t) {
  11037. var n = void 0 !== e
  11038. , r = null === e
  11039. , i = e == e
  11040. , o = Ja(e)
  11041. , a = void 0 !== t
  11042. , s = null === t
  11043. , l = t == t
  11044. , u = Ja(t);
  11045. if (!s && !u && !o && e > t || o && a && l && !s && !u || r && a && l || !n && l || !i)
  11046. return 1;
  11047. if (!r && !o && !u && e < t || u && n && i && !r && !o || s && n && i || !a && i || !l)
  11048. return -1
  11049. }
  11050. return 0
  11051. }
  11052. function gi(e, t, n, i) {
  11053. for (var o = -1, a = e.length, s = n.length, l = -1, u = t.length, c = an(a - s, 0), d = r(u + c), f = !i; ++l < u; )
  11054. d[l] = t[l];
  11055. for (; ++o < s; )
  11056. (f || o < a) && (d[n[o]] = e[o]);
  11057. for (; c--; )
  11058. d[l++] = e[o++];
  11059. return d
  11060. }
  11061. function mi(e, t, n, i) {
  11062. for (var o = -1, a = e.length, s = -1, l = n.length, u = -1, c = t.length, d = an(a - l, 0), f = r(d + c), h = !i; ++o < d; )
  11063. f[o] = e[o];
  11064. for (var p = o; ++u < c; )
  11065. f[p + u] = t[u];
  11066. for (; ++s < l; )
  11067. (h || o < a) && (f[p + n[s]] = e[o++]);
  11068. return f
  11069. }
  11070. function vi(e, t) {
  11071. var n = -1
  11072. , i = e.length;
  11073. for (t || (t = r(i)); ++n < i; )
  11074. t[n] = e[n];
  11075. return t
  11076. }
  11077. function yi(e, t, n, r) {
  11078. var i = !n;
  11079. n || (n = {});
  11080. for (var o = -1, a = t.length; ++o < a; ) {
  11081. var s = t[o]
  11082. , l = r ? r(n[s], e[s], s, n, e) : void 0;
  11083. void 0 === l && (l = e[s]),
  11084. i ? Zn(n, s, l) : Hn(n, s, l)
  11085. }
  11086. return n
  11087. }
  11088. function bi(e, t) {
  11089. return function(n, r) {
  11090. var i = La(n) ? at : $n
  11091. , o = t ? t() : {};
  11092. return i(n, e, Xi(r, 2), o)
  11093. }
  11094. }
  11095. function _i(e) {
  11096. return Fr((function(t, n) {
  11097. var r = -1
  11098. , i = n.length
  11099. , o = i > 1 ? n[i - 1] : void 0
  11100. , a = i > 2 ? n[2] : void 0;
  11101. for (o = e.length > 3 && "function" == typeof o ? (i--,
  11102. o) : void 0,
  11103. a && so(n[0], n[1], a) && (o = i < 3 ? void 0 : o,
  11104. i = 1),
  11105. t = ge(t); ++r < i; ) {
  11106. var s = n[r];
  11107. s && e(t, s, r, o)
  11108. }
  11109. return t
  11110. }
  11111. ))
  11112. }
  11113. function wi(e, t) {
  11114. return function(n, r) {
  11115. if (null == n)
  11116. return n;
  11117. if (!Ra(n))
  11118. return e(n, r);
  11119. for (var i = n.length, o = t ? i : -1, a = ge(n); (t ? o-- : ++o < i) && !1 !== r(a[o], o, a); )
  11120. ;
  11121. return n
  11122. }
  11123. }
  11124. function Si(e) {
  11125. return function(t, n, r) {
  11126. for (var i = -1, o = ge(t), a = r(t), s = a.length; s--; ) {
  11127. var l = a[e ? s : ++i];
  11128. if (!1 === n(o[l], l, o))
  11129. break
  11130. }
  11131. return t
  11132. }
  11133. }
  11134. function xi(e) {
  11135. return function(t) {
  11136. var n = Dt(t = ss(t)) ? Gt(t) : void 0
  11137. , r = n ? n[0] : t.charAt(0)
  11138. , i = n ? ui(n, 1).join("") : t.slice(1);
  11139. return r[e]() + i
  11140. }
  11141. }
  11142. function ki(e) {
  11143. return function(t) {
  11144. return gt(Ns(Bs(t).replace(Be, "")), e, "")
  11145. }
  11146. }
  11147. function Ii(e) {
  11148. return function() {
  11149. var t = arguments;
  11150. switch (t.length) {
  11151. case 0:
  11152. return new e;
  11153. case 1:
  11154. return new e(t[0]);
  11155. case 2:
  11156. return new e(t[0],t[1]);
  11157. case 3:
  11158. return new e(t[0],t[1],t[2]);
  11159. case 4:
  11160. return new e(t[0],t[1],t[2],t[3]);
  11161. case 5:
  11162. return new e(t[0],t[1],t[2],t[3],t[4]);
  11163. case 6:
  11164. return new e(t[0],t[1],t[2],t[3],t[4],t[5]);
  11165. case 7:
  11166. return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])
  11167. }
  11168. var n = An(e.prototype)
  11169. , r = e.apply(n, t);
  11170. return Ha(r) ? r : n
  11171. }
  11172. }
  11173. function Ci(e) {
  11174. return function(t, n, r) {
  11175. var i = ge(t);
  11176. if (!Ra(t)) {
  11177. var o = Xi(n, 3);
  11178. t = _s(t),
  11179. n = function(e) {
  11180. return o(i[e], e, i)
  11181. }
  11182. }
  11183. var a = e(t, n, r);
  11184. return a > -1 ? i[o ? t[a] : a] : void 0
  11185. }
  11186. }
  11187. function Mi(e) {
  11188. return Vi((function(t) {
  11189. var n = t.length
  11190. , r = n
  11191. , i = On.prototype.thru;
  11192. for (e && t.reverse(); r--; ) {
  11193. var a = t[r];
  11194. if ("function" != typeof a)
  11195. throw new ye(o);
  11196. if (i && !s && "wrapper" == qi(a))
  11197. var s = new On([],!0)
  11198. }
  11199. for (r = s ? r : n; ++r < n; ) {
  11200. var l = qi(a = t[r])
  11201. , u = "wrapper" == l ? Zi(a) : void 0;
  11202. s = u && uo(u[0]) && 424 == u[1] && !u[4].length && 1 == u[9] ? s[qi(u[0])].apply(s, u[3]) : 1 == a.length && uo(a) ? s[l]() : s.thru(a)
  11203. }
  11204. return function() {
  11205. var e = arguments
  11206. , r = e[0];
  11207. if (s && 1 == e.length && La(r))
  11208. return s.plant(r).value();
  11209. for (var i = 0, o = n ? t[i].apply(this, e) : r; ++i < n; )
  11210. o = t[i].call(this, o);
  11211. return o
  11212. }
  11213. }
  11214. ))
  11215. }
  11216. function Ti(e, t, n, i, o, a, s, l, u, c) {
  11217. var d = 128 & t
  11218. , f = 1 & t
  11219. , h = 2 & t
  11220. , p = 24 & t
  11221. , g = 512 & t
  11222. , m = h ? void 0 : Ii(e);
  11223. return function v() {
  11224. for (var y = arguments.length, b = r(y), _ = y; _--; )
  11225. b[_] = arguments[_];
  11226. if (p)
  11227. var w = Yi(v)
  11228. , S = Rt(b, w);
  11229. if (i && (b = gi(b, i, o, p)),
  11230. a && (b = mi(b, a, s, p)),
  11231. y -= S,
  11232. p && y < c) {
  11233. var x = Wt(b, w);
  11234. return Ri(e, t, Ti, v.placeholder, n, b, x, l, u, c - y)
  11235. }
  11236. var k = f ? n : this
  11237. , I = h ? k[e] : e;
  11238. return y = b.length,
  11239. l ? b = vo(b, l) : g && y > 1 && b.reverse(),
  11240. d && u < y && (b.length = u),
  11241. this && this !== Ze && this instanceof v && (I = m || Ii(I)),
  11242. I.apply(k, b)
  11243. }
  11244. }
  11245. function Ai(e, t) {
  11246. return function(n, r) {
  11247. return function(e, t, n, r) {
  11248. return lr(e, (function(e, i, o) {
  11249. t(r, n(e), i, o)
  11250. }
  11251. )),
  11252. r
  11253. }(n, e, t(r), {})
  11254. }
  11255. }
  11256. function Ei(e, t) {
  11257. return function(n, r) {
  11258. var i;
  11259. if (void 0 === n && void 0 === r)
  11260. return t;
  11261. if (void 0 !== n && (i = n),
  11262. void 0 !== r) {
  11263. if (void 0 === i)
  11264. return r;
  11265. "string" == typeof n || "string" == typeof r ? (n = Jr(n),
  11266. r = Jr(r)) : (n = Xr(n),
  11267. r = Xr(r)),
  11268. i = e(n, r)
  11269. }
  11270. return i
  11271. }
  11272. }
  11273. function Oi(e) {
  11274. return Vi((function(t) {
  11275. return t = ht(t, Et(Xi())),
  11276. Fr((function(n) {
  11277. var r = this;
  11278. return e(t, (function(e) {
  11279. return ot(e, r, n)
  11280. }
  11281. ))
  11282. }
  11283. ))
  11284. }
  11285. ))
  11286. }
  11287. function Bi(e, t) {
  11288. var n = (t = void 0 === t ? " " : Jr(t)).length;
  11289. if (n < 2)
  11290. return n ? jr(t, e) : t;
  11291. var r = jr(t, Qt(e / $t(t)));
  11292. return Dt(t) ? ui(Gt(r), 0, e).join("") : r.slice(0, e)
  11293. }
  11294. function Li(e) {
  11295. return function(t, n, i) {
  11296. return i && "number" != typeof i && so(t, n, i) && (n = i = void 0),
  11297. t = ns(t),
  11298. void 0 === n ? (n = t,
  11299. t = 0) : n = ns(n),
  11300. function(e, t, n, i) {
  11301. for (var o = -1, a = an(Qt((t - e) / (n || 1)), 0), s = r(a); a--; )
  11302. s[i ? a : ++o] = e,
  11303. e += n;
  11304. return s
  11305. }(t, n, i = void 0 === i ? t < n ? 1 : -1 : ns(i), e)
  11306. }
  11307. }
  11308. function Pi(e) {
  11309. return function(t, n) {
  11310. return "string" == typeof t && "string" == typeof n || (t = os(t),
  11311. n = os(n)),
  11312. e(t, n)
  11313. }
  11314. }
  11315. function Ri(e, t, n, r, i, o, a, s, l, u) {
  11316. var c = 8 & t;
  11317. t |= c ? 32 : 64,
  11318. 4 & (t &= ~(c ? 64 : 32)) || (t &= -4);
  11319. var d = [e, t, i, c ? o : void 0, c ? a : void 0, c ? void 0 : o, c ? void 0 : a, s, l, u]
  11320. , f = n.apply(void 0, d);
  11321. return uo(e) && bo(f, d),
  11322. f.placeholder = r,
  11323. So(f, e, t)
  11324. }
  11325. function zi(e) {
  11326. var t = pe[e];
  11327. return function(e, n) {
  11328. if (e = os(e),
  11329. (n = null == n ? 0 : sn(rs(n), 292)) && nn(e)) {
  11330. var r = (ss(e) + "e").split("e");
  11331. return +((r = (ss(t(r[0] + "e" + (+r[1] + n))) + "e").split("e"))[0] + "e" + (+r[1] - n))
  11332. }
  11333. return t(e)
  11334. }
  11335. }
  11336. var ji = gn && 1 / Ht(new gn([, -0]))[1] == 1 / 0 ? function(e) {
  11337. return new gn(e)
  11338. }
  11339. : Js;
  11340. function Fi(e) {
  11341. return function(t) {
  11342. var n = no(t);
  11343. return n == g ? Nt(t) : n == b ? Vt(t) : function(e, t) {
  11344. return ht(t, (function(t) {
  11345. return [t, e[t]]
  11346. }
  11347. ))
  11348. }(t, e(t))
  11349. }
  11350. }
  11351. function Di(e, t, n, i, s, l, u, c) {
  11352. var d = 2 & t;
  11353. if (!d && "function" != typeof e)
  11354. throw new ye(o);
  11355. var f = i ? i.length : 0;
  11356. if (f || (t &= -97,
  11357. i = s = void 0),
  11358. u = void 0 === u ? u : an(rs(u), 0),
  11359. c = void 0 === c ? c : rs(c),
  11360. f -= s ? s.length : 0,
  11361. 64 & t) {
  11362. var h = i
  11363. , p = s;
  11364. i = s = void 0
  11365. }
  11366. var g = d ? void 0 : Zi(e)
  11367. , m = [e, t, n, i, s, h, p, l, u, c];
  11368. if (g && function(e, t) {
  11369. var n = e[1]
  11370. , r = t[1]
  11371. , i = n | r
  11372. , o = i < 131
  11373. , s = 128 == r && 8 == n || 128 == r && 256 == n && e[7].length <= t[8] || 384 == r && t[7].length <= t[8] && 8 == n;
  11374. if (!o && !s)
  11375. return e;
  11376. 1 & r && (e[2] = t[2],
  11377. i |= 1 & n ? 0 : 4);
  11378. var l = t[3];
  11379. if (l) {
  11380. var u = e[3];
  11381. e[3] = u ? gi(u, l, t[4]) : l,
  11382. e[4] = u ? Wt(e[3], a) : t[4]
  11383. }
  11384. (l = t[5]) && (u = e[5],
  11385. e[5] = u ? mi(u, l, t[6]) : l,
  11386. e[6] = u ? Wt(e[5], a) : t[6]);
  11387. (l = t[7]) && (e[7] = l);
  11388. 128 & r && (e[8] = null == e[8] ? t[8] : sn(e[8], t[8]));
  11389. null == e[9] && (e[9] = t[9]);
  11390. e[0] = t[0],
  11391. e[1] = i
  11392. }(m, g),
  11393. e = m[0],
  11394. t = m[1],
  11395. n = m[2],
  11396. i = m[3],
  11397. s = m[4],
  11398. !(c = m[9] = void 0 === m[9] ? d ? 0 : e.length : an(m[9] - f, 0)) && 24 & t && (t &= -25),
  11399. t && 1 != t)
  11400. v = 8 == t || 16 == t ? function(e, t, n) {
  11401. var i = Ii(e);
  11402. return function o() {
  11403. for (var a = arguments.length, s = r(a), l = a, u = Yi(o); l--; )
  11404. s[l] = arguments[l];
  11405. var c = a < 3 && s[0] !== u && s[a - 1] !== u ? [] : Wt(s, u);
  11406. if ((a -= c.length) < n)
  11407. return Ri(e, t, Ti, o.placeholder, void 0, s, c, void 0, void 0, n - a);
  11408. var d = this && this !== Ze && this instanceof o ? i : e;
  11409. return ot(d, this, s)
  11410. }
  11411. }(e, t, c) : 32 != t && 33 != t || s.length ? Ti.apply(void 0, m) : function(e, t, n, i) {
  11412. var o = 1 & t
  11413. , a = Ii(e);
  11414. return function t() {
  11415. for (var s = -1, l = arguments.length, u = -1, c = i.length, d = r(c + l), f = this && this !== Ze && this instanceof t ? a : e; ++u < c; )
  11416. d[u] = i[u];
  11417. for (; l--; )
  11418. d[u++] = arguments[++s];
  11419. return ot(f, o ? n : this, d)
  11420. }
  11421. }(e, t, n, i);
  11422. else
  11423. var v = function(e, t, n) {
  11424. var r = 1 & t
  11425. , i = Ii(e);
  11426. return function t() {
  11427. var o = this && this !== Ze && this instanceof t ? i : e;
  11428. return o.apply(r ? n : this, arguments)
  11429. }
  11430. }(e, t, n);
  11431. return So((g ? Wr : bo)(v, m), e, t)
  11432. }
  11433. function Ni(e, t, n, r) {
  11434. return void 0 === e || Aa(e, we[n]) && !ke.call(r, n) ? t : e
  11435. }
  11436. function Ui(e, t, n, r, i, o) {
  11437. return Ha(e) && Ha(t) && (o.set(t, e),
  11438. Er(e, t, void 0, Ui, o),
  11439. o.delete(t)),
  11440. e
  11441. }
  11442. function Wi(e) {
  11443. return Za(e) ? void 0 : e
  11444. }
  11445. function Hi(e, t, n, r, i, o) {
  11446. var a = 1 & n
  11447. , s = e.length
  11448. , l = t.length;
  11449. if (s != l && !(a && l > s))
  11450. return !1;
  11451. var u = o.get(e);
  11452. if (u && o.get(t))
  11453. return u == t;
  11454. var c = -1
  11455. , d = !0
  11456. , f = 2 & n ? new zn : void 0;
  11457. for (o.set(e, t),
  11458. o.set(t, e); ++c < s; ) {
  11459. var h = e[c]
  11460. , p = t[c];
  11461. if (r)
  11462. var g = a ? r(p, h, c, t, e, o) : r(h, p, c, e, t, o);
  11463. if (void 0 !== g) {
  11464. if (g)
  11465. continue;
  11466. d = !1;
  11467. break
  11468. }
  11469. if (f) {
  11470. if (!vt(t, (function(e, t) {
  11471. if (!Bt(f, t) && (h === e || i(h, e, n, r, o)))
  11472. return f.push(t)
  11473. }
  11474. ))) {
  11475. d = !1;
  11476. break
  11477. }
  11478. } else if (h !== p && !i(h, p, n, r, o)) {
  11479. d = !1;
  11480. break
  11481. }
  11482. }
  11483. return o.delete(e),
  11484. o.delete(t),
  11485. d
  11486. }
  11487. function Vi(e) {
  11488. return wo(go(e, void 0, Po), e + "")
  11489. }
  11490. function $i(e) {
  11491. return fr(e, _s, eo)
  11492. }
  11493. function Gi(e) {
  11494. return fr(e, ws, to)
  11495. }
  11496. var Zi = yn ? function(e) {
  11497. return yn.get(e)
  11498. }
  11499. : Js;
  11500. function qi(e) {
  11501. for (var t = e.name + "", n = bn[t], r = ke.call(bn, t) ? n.length : 0; r--; ) {
  11502. var i = n[r]
  11503. , o = i.func;
  11504. if (null == o || o == e)
  11505. return i.name
  11506. }
  11507. return t
  11508. }
  11509. function Yi(e) {
  11510. return (ke.call(Tn, "placeholder") ? Tn : e).placeholder
  11511. }
  11512. function Xi() {
  11513. var e = Tn.iteratee || Zs;
  11514. return e = e === Zs ? xr : e,
  11515. arguments.length ? e(arguments[0], arguments[1]) : e
  11516. }
  11517. function Ji(e, t) {
  11518. var n, r, i = e.__data__;
  11519. return ("string" == (r = typeof (n = t)) || "number" == r || "symbol" == r || "boolean" == r ? "__proto__" !== n : null === n) ? i["string" == typeof t ? "string" : "hash"] : i.map
  11520. }
  11521. function Qi(e) {
  11522. for (var t = _s(e), n = t.length; n--; ) {
  11523. var r = t[n]
  11524. , i = e[r];
  11525. t[n] = [r, i, ho(i)]
  11526. }
  11527. return t
  11528. }
  11529. function Ki(e, t) {
  11530. var n = function(e, t) {
  11531. return null == e ? void 0 : e[t]
  11532. }(e, t);
  11533. return Sr(n) ? n : void 0
  11534. }
  11535. var eo = en ? function(e) {
  11536. return null == e ? [] : (e = ge(e),
  11537. ct(en(e), (function(t) {
  11538. return qe.call(e, t)
  11539. }
  11540. )))
  11541. }
  11542. : il
  11543. , to = en ? function(e) {
  11544. for (var t = []; e; )
  11545. pt(t, eo(e)),
  11546. e = $e(e);
  11547. return t
  11548. }
  11549. : il
  11550. , no = hr;
  11551. function ro(e, t, n) {
  11552. for (var r = -1, i = (t = si(t, e)).length, o = !1; ++r < i; ) {
  11553. var a = Co(t[r]);
  11554. if (!(o = null != e && n(e, a)))
  11555. break;
  11556. e = e[a]
  11557. }
  11558. return o || ++r != i ? o : !!(i = null == e ? 0 : e.length) && Wa(i) && ao(a, i) && (La(e) || Ba(e))
  11559. }
  11560. function io(e) {
  11561. return "function" != typeof e.constructor || fo(e) ? {} : An($e(e))
  11562. }
  11563. function oo(e) {
  11564. return La(e) || Ba(e) || !!(Je && e && e[Je])
  11565. }
  11566. function ao(e, t) {
  11567. var n = typeof e;
  11568. return !!(t = null == t ? 9007199254740991 : t) && ("number" == n || "symbol" != n && le.test(e)) && e > -1 && e % 1 == 0 && e < t
  11569. }
  11570. function so(e, t, n) {
  11571. if (!Ha(n))
  11572. return !1;
  11573. var r = typeof t;
  11574. return !!("number" == r ? Ra(n) && ao(t, n.length) : "string" == r && t in n) && Aa(n[t], e)
  11575. }
  11576. function lo(e, t) {
  11577. if (La(e))
  11578. return !1;
  11579. var n = typeof e;
  11580. return !("number" != n && "symbol" != n && "boolean" != n && null != e && !Ja(e)) || (V.test(e) || !H.test(e) || null != t && e in ge(t))
  11581. }
  11582. function uo(e) {
  11583. var t = qi(e)
  11584. , n = Tn[t];
  11585. if ("function" != typeof n || !(t in Bn.prototype))
  11586. return !1;
  11587. if (e === n)
  11588. return !0;
  11589. var r = Zi(n);
  11590. return !!r && e === r[0]
  11591. }
  11592. (fn && no(new fn(new ArrayBuffer(1))) != k || hn && no(new hn) != g || pn && "[object Promise]" != no(pn.resolve()) || gn && no(new gn) != b || mn && no(new mn) != S) && (no = function(e) {
  11593. var t = hr(e)
  11594. , n = t == v ? e.constructor : void 0
  11595. , r = n ? Mo(n) : "";
  11596. if (r)
  11597. switch (r) {
  11598. case _n:
  11599. return k;
  11600. case wn:
  11601. return g;
  11602. case Sn:
  11603. return "[object Promise]";
  11604. case xn:
  11605. return b;
  11606. case kn:
  11607. return S
  11608. }
  11609. return t
  11610. }
  11611. );
  11612. var co = Se ? Na : ol;
  11613. function fo(e) {
  11614. var t = e && e.constructor;
  11615. return e === ("function" == typeof t && t.prototype || we)
  11616. }
  11617. function ho(e) {
  11618. return e == e && !Ha(e)
  11619. }
  11620. function po(e, t) {
  11621. return function(n) {
  11622. return null != n && (n[e] === t && (void 0 !== t || e in ge(n)))
  11623. }
  11624. }
  11625. function go(e, t, n) {
  11626. return t = an(void 0 === t ? e.length - 1 : t, 0),
  11627. function() {
  11628. for (var i = arguments, o = -1, a = an(i.length - t, 0), s = r(a); ++o < a; )
  11629. s[o] = i[t + o];
  11630. o = -1;
  11631. for (var l = r(t + 1); ++o < t; )
  11632. l[o] = i[o];
  11633. return l[t] = n(s),
  11634. ot(e, this, l)
  11635. }
  11636. }
  11637. function mo(e, t) {
  11638. return t.length < 2 ? e : dr(e, $r(t, 0, -1))
  11639. }
  11640. function vo(e, t) {
  11641. for (var n = e.length, r = sn(t.length, n), i = vi(e); r--; ) {
  11642. var o = t[r];
  11643. e[r] = ao(o, n) ? i[o] : void 0
  11644. }
  11645. return e
  11646. }
  11647. function yo(e, t) {
  11648. if (("constructor" !== t || "function" != typeof e[t]) && "__proto__" != t)
  11649. return e[t]
  11650. }
  11651. var bo = xo(Wr)
  11652. , _o = Jt || function(e, t) {
  11653. return Ze.setTimeout(e, t)
  11654. }
  11655. , wo = xo(Hr);
  11656. function So(e, t, n) {
  11657. var r = t + "";
  11658. return wo(e, function(e, t) {
  11659. var n = t.length;
  11660. if (!n)
  11661. return e;
  11662. var r = n - 1;
  11663. return t[r] = (n > 1 ? "& " : "") + t[r],
  11664. t = t.join(n > 2 ? ", " : " "),
  11665. e.replace(J, "{\n/* [wrapped with " + t + "] */\n")
  11666. }(r, function(e, t) {
  11667. return st(s, (function(n) {
  11668. var r = "_." + n[0];
  11669. t & n[1] && !dt(e, r) && e.push(r)
  11670. }
  11671. )),
  11672. e.sort()
  11673. }(function(e) {
  11674. var t = e.match(Q);
  11675. return t ? t[1].split(K) : []
  11676. }(r), n)))
  11677. }
  11678. function xo(e) {
  11679. var t = 0
  11680. , n = 0;
  11681. return function() {
  11682. var r = ln()
  11683. , i = 16 - (r - n);
  11684. if (n = r,
  11685. i > 0) {
  11686. if (++t >= 800)
  11687. return arguments[0]
  11688. } else
  11689. t = 0;
  11690. return e.apply(void 0, arguments)
  11691. }
  11692. }
  11693. function ko(e, t) {
  11694. var n = -1
  11695. , r = e.length
  11696. , i = r - 1;
  11697. for (t = void 0 === t ? r : t; ++n < t; ) {
  11698. var o = zr(n, i)
  11699. , a = e[o];
  11700. e[o] = e[n],
  11701. e[n] = a
  11702. }
  11703. return e.length = t,
  11704. e
  11705. }
  11706. var Io = function(e) {
  11707. var t = xa(e, (function(e) {
  11708. return 500 === n.size && n.clear(),
  11709. e
  11710. }
  11711. ))
  11712. , n = t.cache;
  11713. return t
  11714. }((function(e) {
  11715. var t = [];
  11716. return 46 === e.charCodeAt(0) && t.push(""),
  11717. e.replace($, (function(e, n, r, i) {
  11718. t.push(r ? i.replace(te, "$1") : n || e)
  11719. }
  11720. )),
  11721. t
  11722. }
  11723. ));
  11724. function Co(e) {
  11725. if ("string" == typeof e || Ja(e))
  11726. return e;
  11727. var t = e + "";
  11728. return "0" == t && 1 / e == -1 / 0 ? "-0" : t
  11729. }
  11730. function Mo(e) {
  11731. if (null != e) {
  11732. try {
  11733. return xe.call(e)
  11734. } catch (e) {}
  11735. try {
  11736. return e + ""
  11737. } catch (e) {}
  11738. }
  11739. return ""
  11740. }
  11741. function To(e) {
  11742. if (e instanceof Bn)
  11743. return e.clone();
  11744. var t = new On(e.__wrapped__,e.__chain__);
  11745. return t.__actions__ = vi(e.__actions__),
  11746. t.__index__ = e.__index__,
  11747. t.__values__ = e.__values__,
  11748. t
  11749. }
  11750. var Ao = Fr((function(e, t) {
  11751. return za(e) ? Kn(e, or(t, 1, za, !0)) : []
  11752. }
  11753. ))
  11754. , Eo = Fr((function(e, t) {
  11755. var n = Do(t);
  11756. return za(n) && (n = void 0),
  11757. za(e) ? Kn(e, or(t, 1, za, !0), Xi(n, 2)) : []
  11758. }
  11759. ))
  11760. , Oo = Fr((function(e, t) {
  11761. var n = Do(t);
  11762. return za(n) && (n = void 0),
  11763. za(e) ? Kn(e, or(t, 1, za, !0), void 0, n) : []
  11764. }
  11765. ));
  11766. function Bo(e, t, n) {
  11767. var r = null == e ? 0 : e.length;
  11768. if (!r)
  11769. return -1;
  11770. var i = null == n ? 0 : rs(n);
  11771. return i < 0 && (i = an(r + i, 0)),
  11772. _t(e, Xi(t, 3), i)
  11773. }
  11774. function Lo(e, t, n) {
  11775. var r = null == e ? 0 : e.length;
  11776. if (!r)
  11777. return -1;
  11778. var i = r - 1;
  11779. return void 0 !== n && (i = rs(n),
  11780. i = n < 0 ? an(r + i, 0) : sn(i, r - 1)),
  11781. _t(e, Xi(t, 3), i, !0)
  11782. }
  11783. function Po(e) {
  11784. return (null == e ? 0 : e.length) ? or(e, 1) : []
  11785. }
  11786. function Ro(e) {
  11787. return e && e.length ? e[0] : void 0
  11788. }
  11789. var zo = Fr((function(e) {
  11790. var t = ht(e, oi);
  11791. return t.length && t[0] === e[0] ? vr(t) : []
  11792. }
  11793. ))
  11794. , jo = Fr((function(e) {
  11795. var t = Do(e)
  11796. , n = ht(e, oi);
  11797. return t === Do(n) ? t = void 0 : n.pop(),
  11798. n.length && n[0] === e[0] ? vr(n, Xi(t, 2)) : []
  11799. }
  11800. ))
  11801. , Fo = Fr((function(e) {
  11802. var t = Do(e)
  11803. , n = ht(e, oi);
  11804. return (t = "function" == typeof t ? t : void 0) && n.pop(),
  11805. n.length && n[0] === e[0] ? vr(n, void 0, t) : []
  11806. }
  11807. ));
  11808. function Do(e) {
  11809. var t = null == e ? 0 : e.length;
  11810. return t ? e[t - 1] : void 0
  11811. }
  11812. var No = Fr(Uo);
  11813. function Uo(e, t) {
  11814. return e && e.length && t && t.length ? Pr(e, t) : e
  11815. }
  11816. var Wo = Vi((function(e, t) {
  11817. var n = null == e ? 0 : e.length
  11818. , r = qn(e, t);
  11819. return Rr(e, ht(t, (function(e) {
  11820. return ao(e, n) ? +e : e
  11821. }
  11822. )).sort(pi)),
  11823. r
  11824. }
  11825. ));
  11826. function Ho(e) {
  11827. return null == e ? e : dn.call(e)
  11828. }
  11829. var Vo = Fr((function(e) {
  11830. return Qr(or(e, 1, za, !0))
  11831. }
  11832. ))
  11833. , $o = Fr((function(e) {
  11834. var t = Do(e);
  11835. return za(t) && (t = void 0),
  11836. Qr(or(e, 1, za, !0), Xi(t, 2))
  11837. }
  11838. ))
  11839. , Go = Fr((function(e) {
  11840. var t = Do(e);
  11841. return t = "function" == typeof t ? t : void 0,
  11842. Qr(or(e, 1, za, !0), void 0, t)
  11843. }
  11844. ));
  11845. function Zo(e) {
  11846. if (!e || !e.length)
  11847. return [];
  11848. var t = 0;
  11849. return e = ct(e, (function(e) {
  11850. if (za(e))
  11851. return t = an(e.length, t),
  11852. !0
  11853. }
  11854. )),
  11855. At(t, (function(t) {
  11856. return ht(e, It(t))
  11857. }
  11858. ))
  11859. }
  11860. function qo(e, t) {
  11861. if (!e || !e.length)
  11862. return [];
  11863. var n = Zo(e);
  11864. return null == t ? n : ht(n, (function(e) {
  11865. return ot(t, void 0, e)
  11866. }
  11867. ))
  11868. }
  11869. var Yo = Fr((function(e, t) {
  11870. return za(e) ? Kn(e, t) : []
  11871. }
  11872. ))
  11873. , Xo = Fr((function(e) {
  11874. return ri(ct(e, za))
  11875. }
  11876. ))
  11877. , Jo = Fr((function(e) {
  11878. var t = Do(e);
  11879. return za(t) && (t = void 0),
  11880. ri(ct(e, za), Xi(t, 2))
  11881. }
  11882. ))
  11883. , Qo = Fr((function(e) {
  11884. var t = Do(e);
  11885. return t = "function" == typeof t ? t : void 0,
  11886. ri(ct(e, za), void 0, t)
  11887. }
  11888. ))
  11889. , Ko = Fr(Zo);
  11890. var ea = Fr((function(e) {
  11891. var t = e.length
  11892. , n = t > 1 ? e[t - 1] : void 0;
  11893. return n = "function" == typeof n ? (e.pop(),
  11894. n) : void 0,
  11895. qo(e, n)
  11896. }
  11897. ));
  11898. function ta(e) {
  11899. var t = Tn(e);
  11900. return t.__chain__ = !0,
  11901. t
  11902. }
  11903. function na(e, t) {
  11904. return t(e)
  11905. }
  11906. var ra = Vi((function(e) {
  11907. var t = e.length
  11908. , n = t ? e[0] : 0
  11909. , r = this.__wrapped__
  11910. , i = function(t) {
  11911. return qn(t, e)
  11912. };
  11913. return !(t > 1 || this.__actions__.length) && r instanceof Bn && ao(n) ? ((r = r.slice(n, +n + (t ? 1 : 0))).__actions__.push({
  11914. func: na,
  11915. args: [i],
  11916. thisArg: void 0
  11917. }),
  11918. new On(r,this.__chain__).thru((function(e) {
  11919. return t && !e.length && e.push(void 0),
  11920. e
  11921. }
  11922. ))) : this.thru(i)
  11923. }
  11924. ));
  11925. var ia = bi((function(e, t, n) {
  11926. ke.call(e, n) ? ++e[n] : Zn(e, n, 1)
  11927. }
  11928. ));
  11929. var oa = Ci(Bo)
  11930. , aa = Ci(Lo);
  11931. function sa(e, t) {
  11932. return (La(e) ? st : er)(e, Xi(t, 3))
  11933. }
  11934. function la(e, t) {
  11935. return (La(e) ? lt : tr)(e, Xi(t, 3))
  11936. }
  11937. var ua = bi((function(e, t, n) {
  11938. ke.call(e, n) ? e[n].push(t) : Zn(e, n, [t])
  11939. }
  11940. ));
  11941. var ca = Fr((function(e, t, n) {
  11942. var i = -1
  11943. , o = "function" == typeof t
  11944. , a = Ra(e) ? r(e.length) : [];
  11945. return er(e, (function(e) {
  11946. a[++i] = o ? ot(t, e, n) : yr(e, t, n)
  11947. }
  11948. )),
  11949. a
  11950. }
  11951. ))
  11952. , da = bi((function(e, t, n) {
  11953. Zn(e, n, t)
  11954. }
  11955. ));
  11956. function fa(e, t) {
  11957. return (La(e) ? ht : Mr)(e, Xi(t, 3))
  11958. }
  11959. var ha = bi((function(e, t, n) {
  11960. e[n ? 0 : 1].push(t)
  11961. }
  11962. ), (function() {
  11963. return [[], []]
  11964. }
  11965. ));
  11966. var pa = Fr((function(e, t) {
  11967. if (null == e)
  11968. return [];
  11969. var n = t.length;
  11970. return n > 1 && so(e, t[0], t[1]) ? t = [] : n > 2 && so(t[0], t[1], t[2]) && (t = [t[0]]),
  11971. Br(e, or(t, 1), [])
  11972. }
  11973. ))
  11974. , ga = Xt || function() {
  11975. return Ze.Date.now()
  11976. }
  11977. ;
  11978. function ma(e, t, n) {
  11979. return t = n ? void 0 : t,
  11980. Di(e, 128, void 0, void 0, void 0, void 0, t = e && null == t ? e.length : t)
  11981. }
  11982. function va(e, t) {
  11983. var n;
  11984. if ("function" != typeof t)
  11985. throw new ye(o);
  11986. return e = rs(e),
  11987. function() {
  11988. return --e > 0 && (n = t.apply(this, arguments)),
  11989. e <= 1 && (t = void 0),
  11990. n
  11991. }
  11992. }
  11993. var ya = Fr((function(e, t, n) {
  11994. var r = 1;
  11995. if (n.length) {
  11996. var i = Wt(n, Yi(ya));
  11997. r |= 32
  11998. }
  11999. return Di(e, r, t, n, i)
  12000. }
  12001. ))
  12002. , ba = Fr((function(e, t, n) {
  12003. var r = 3;
  12004. if (n.length) {
  12005. var i = Wt(n, Yi(ba));
  12006. r |= 32
  12007. }
  12008. return Di(t, r, e, n, i)
  12009. }
  12010. ));
  12011. function _a(e, t, n) {
  12012. var r, i, a, s, l, u, c = 0, d = !1, f = !1, h = !0;
  12013. if ("function" != typeof e)
  12014. throw new ye(o);
  12015. function p(t) {
  12016. var n = r
  12017. , o = i;
  12018. return r = i = void 0,
  12019. c = t,
  12020. s = e.apply(o, n)
  12021. }
  12022. function g(e) {
  12023. return c = e,
  12024. l = _o(v, t),
  12025. d ? p(e) : s
  12026. }
  12027. function m(e) {
  12028. var n = e - u;
  12029. return void 0 === u || n >= t || n < 0 || f && e - c >= a
  12030. }
  12031. function v() {
  12032. var e = ga();
  12033. if (m(e))
  12034. return y(e);
  12035. l = _o(v, function(e) {
  12036. var n = t - (e - u);
  12037. return f ? sn(n, a - (e - c)) : n
  12038. }(e))
  12039. }
  12040. function y(e) {
  12041. return l = void 0,
  12042. h && r ? p(e) : (r = i = void 0,
  12043. s)
  12044. }
  12045. function b() {
  12046. var e = ga()
  12047. , n = m(e);
  12048. if (r = arguments,
  12049. i = this,
  12050. u = e,
  12051. n) {
  12052. if (void 0 === l)
  12053. return g(u);
  12054. if (f)
  12055. return ci(l),
  12056. l = _o(v, t),
  12057. p(u)
  12058. }
  12059. return void 0 === l && (l = _o(v, t)),
  12060. s
  12061. }
  12062. return t = os(t) || 0,
  12063. Ha(n) && (d = !!n.leading,
  12064. a = (f = "maxWait"in n) ? an(os(n.maxWait) || 0, t) : a,
  12065. h = "trailing"in n ? !!n.trailing : h),
  12066. b.cancel = function() {
  12067. void 0 !== l && ci(l),
  12068. c = 0,
  12069. r = u = i = l = void 0
  12070. }
  12071. ,
  12072. b.flush = function() {
  12073. return void 0 === l ? s : y(ga())
  12074. }
  12075. ,
  12076. b
  12077. }
  12078. var wa = Fr((function(e, t) {
  12079. return Qn(e, 1, t)
  12080. }
  12081. ))
  12082. , Sa = Fr((function(e, t, n) {
  12083. return Qn(e, os(t) || 0, n)
  12084. }
  12085. ));
  12086. function xa(e, t) {
  12087. if ("function" != typeof e || null != t && "function" != typeof t)
  12088. throw new ye(o);
  12089. var n = function() {
  12090. var r = arguments
  12091. , i = t ? t.apply(this, r) : r[0]
  12092. , o = n.cache;
  12093. if (o.has(i))
  12094. return o.get(i);
  12095. var a = e.apply(this, r);
  12096. return n.cache = o.set(i, a) || o,
  12097. a
  12098. };
  12099. return n.cache = new (xa.Cache || Rn),
  12100. n
  12101. }
  12102. function ka(e) {
  12103. if ("function" != typeof e)
  12104. throw new ye(o);
  12105. return function() {
  12106. var t = arguments;
  12107. switch (t.length) {
  12108. case 0:
  12109. return !e.call(this);
  12110. case 1:
  12111. return !e.call(this, t[0]);
  12112. case 2:
  12113. return !e.call(this, t[0], t[1]);
  12114. case 3:
  12115. return !e.call(this, t[0], t[1], t[2])
  12116. }
  12117. return !e.apply(this, t)
  12118. }
  12119. }
  12120. xa.Cache = Rn;
  12121. var Ia = li((function(e, t) {
  12122. var n = (t = 1 == t.length && La(t[0]) ? ht(t[0], Et(Xi())) : ht(or(t, 1), Et(Xi()))).length;
  12123. return Fr((function(r) {
  12124. for (var i = -1, o = sn(r.length, n); ++i < o; )
  12125. r[i] = t[i].call(this, r[i]);
  12126. return ot(e, this, r)
  12127. }
  12128. ))
  12129. }
  12130. ))
  12131. , Ca = Fr((function(e, t) {
  12132. return Di(e, 32, void 0, t, Wt(t, Yi(Ca)))
  12133. }
  12134. ))
  12135. , Ma = Fr((function(e, t) {
  12136. return Di(e, 64, void 0, t, Wt(t, Yi(Ma)))
  12137. }
  12138. ))
  12139. , Ta = Vi((function(e, t) {
  12140. return Di(e, 256, void 0, void 0, void 0, t)
  12141. }
  12142. ));
  12143. function Aa(e, t) {
  12144. return e === t || e != e && t != t
  12145. }
  12146. var Ea = Pi(pr)
  12147. , Oa = Pi((function(e, t) {
  12148. return e >= t
  12149. }
  12150. ))
  12151. , Ba = br(function() {
  12152. return arguments
  12153. }()) ? br : function(e) {
  12154. return Va(e) && ke.call(e, "callee") && !qe.call(e, "callee")
  12155. }
  12156. , La = r.isArray
  12157. , Pa = Ke ? Et(Ke) : function(e) {
  12158. return Va(e) && hr(e) == x
  12159. }
  12160. ;
  12161. function Ra(e) {
  12162. return null != e && Wa(e.length) && !Na(e)
  12163. }
  12164. function za(e) {
  12165. return Va(e) && Ra(e)
  12166. }
  12167. var ja = tn || ol
  12168. , Fa = et ? Et(et) : function(e) {
  12169. return Va(e) && hr(e) == d
  12170. }
  12171. ;
  12172. function Da(e) {
  12173. if (!Va(e))
  12174. return !1;
  12175. var t = hr(e);
  12176. return t == f || "[object DOMException]" == t || "string" == typeof e.message && "string" == typeof e.name && !Za(e)
  12177. }
  12178. function Na(e) {
  12179. if (!Ha(e))
  12180. return !1;
  12181. var t = hr(e);
  12182. return t == h || t == p || "[object AsyncFunction]" == t || "[object Proxy]" == t
  12183. }
  12184. function Ua(e) {
  12185. return "number" == typeof e && e == rs(e)
  12186. }
  12187. function Wa(e) {
  12188. return "number" == typeof e && e > -1 && e % 1 == 0 && e <= 9007199254740991
  12189. }
  12190. function Ha(e) {
  12191. var t = typeof e;
  12192. return null != e && ("object" == t || "function" == t)
  12193. }
  12194. function Va(e) {
  12195. return null != e && "object" == typeof e
  12196. }
  12197. var $a = tt ? Et(tt) : function(e) {
  12198. return Va(e) && no(e) == g
  12199. }
  12200. ;
  12201. function Ga(e) {
  12202. return "number" == typeof e || Va(e) && hr(e) == m
  12203. }
  12204. function Za(e) {
  12205. if (!Va(e) || hr(e) != v)
  12206. return !1;
  12207. var t = $e(e);
  12208. if (null === t)
  12209. return !0;
  12210. var n = ke.call(t, "constructor") && t.constructor;
  12211. return "function" == typeof n && n instanceof n && xe.call(n) == Te
  12212. }
  12213. var qa = nt ? Et(nt) : function(e) {
  12214. return Va(e) && hr(e) == y
  12215. }
  12216. ;
  12217. var Ya = rt ? Et(rt) : function(e) {
  12218. return Va(e) && no(e) == b
  12219. }
  12220. ;
  12221. function Xa(e) {
  12222. return "string" == typeof e || !La(e) && Va(e) && hr(e) == _
  12223. }
  12224. function Ja(e) {
  12225. return "symbol" == typeof e || Va(e) && hr(e) == w
  12226. }
  12227. var Qa = it ? Et(it) : function(e) {
  12228. return Va(e) && Wa(e.length) && !!Ne[hr(e)]
  12229. }
  12230. ;
  12231. var Ka = Pi(Cr)
  12232. , es = Pi((function(e, t) {
  12233. return e <= t
  12234. }
  12235. ));
  12236. function ts(e) {
  12237. if (!e)
  12238. return [];
  12239. if (Ra(e))
  12240. return Xa(e) ? Gt(e) : vi(e);
  12241. if (Qe && e[Qe])
  12242. return function(e) {
  12243. for (var t, n = []; !(t = e.next()).done; )
  12244. n.push(t.value);
  12245. return n
  12246. }(e[Qe]());
  12247. var t = no(e);
  12248. return (t == g ? Nt : t == b ? Ht : As)(e)
  12249. }
  12250. function ns(e) {
  12251. return e ? (e = os(e)) === 1 / 0 || e === -1 / 0 ? 17976931348623157e292 * (e < 0 ? -1 : 1) : e == e ? e : 0 : 0 === e ? e : 0
  12252. }
  12253. function rs(e) {
  12254. var t = ns(e)
  12255. , n = t % 1;
  12256. return t == t ? n ? t - n : t : 0
  12257. }
  12258. function is(e) {
  12259. return e ? Yn(rs(e), 0, 4294967295) : 0
  12260. }
  12261. function os(e) {
  12262. if ("number" == typeof e)
  12263. return e;
  12264. if (Ja(e))
  12265. return NaN;
  12266. if (Ha(e)) {
  12267. var t = "function" == typeof e.valueOf ? e.valueOf() : e;
  12268. e = Ha(t) ? t + "" : t
  12269. }
  12270. if ("string" != typeof e)
  12271. return 0 === e ? e : +e;
  12272. e = e.replace(q, "");
  12273. var n = oe.test(e);
  12274. return n || se.test(e) ? Ve(e.slice(2), n ? 2 : 8) : ie.test(e) ? NaN : +e
  12275. }
  12276. function as(e) {
  12277. return yi(e, ws(e))
  12278. }
  12279. function ss(e) {
  12280. return null == e ? "" : Jr(e)
  12281. }
  12282. var ls = _i((function(e, t) {
  12283. if (fo(t) || Ra(t))
  12284. yi(t, _s(t), e);
  12285. else
  12286. for (var n in t)
  12287. ke.call(t, n) && Hn(e, n, t[n])
  12288. }
  12289. ))
  12290. , us = _i((function(e, t) {
  12291. yi(t, ws(t), e)
  12292. }
  12293. ))
  12294. , cs = _i((function(e, t, n, r) {
  12295. yi(t, ws(t), e, r)
  12296. }
  12297. ))
  12298. , ds = _i((function(e, t, n, r) {
  12299. yi(t, _s(t), e, r)
  12300. }
  12301. ))
  12302. , fs = Vi(qn);
  12303. var hs = Fr((function(e, t) {
  12304. e = ge(e);
  12305. var n = -1
  12306. , r = t.length
  12307. , i = r > 2 ? t[2] : void 0;
  12308. for (i && so(t[0], t[1], i) && (r = 1); ++n < r; )
  12309. for (var o = t[n], a = ws(o), s = -1, l = a.length; ++s < l; ) {
  12310. var u = a[s]
  12311. , c = e[u];
  12312. (void 0 === c || Aa(c, we[u]) && !ke.call(e, u)) && (e[u] = o[u])
  12313. }
  12314. return e
  12315. }
  12316. ))
  12317. , ps = Fr((function(e) {
  12318. return e.push(void 0, Ui),
  12319. ot(xs, void 0, e)
  12320. }
  12321. ));
  12322. function gs(e, t, n) {
  12323. var r = null == e ? void 0 : dr(e, t);
  12324. return void 0 === r ? n : r
  12325. }
  12326. function ms(e, t) {
  12327. return null != e && ro(e, t, mr)
  12328. }
  12329. var vs = Ai((function(e, t, n) {
  12330. null != t && "function" != typeof t.toString && (t = Me.call(t)),
  12331. e[t] = n
  12332. }
  12333. ), Hs(Gs))
  12334. , ys = Ai((function(e, t, n) {
  12335. null != t && "function" != typeof t.toString && (t = Me.call(t)),
  12336. ke.call(e, t) ? e[t].push(n) : e[t] = [n]
  12337. }
  12338. ), Xi)
  12339. , bs = Fr(yr);
  12340. function _s(e) {
  12341. return Ra(e) ? Fn(e) : kr(e)
  12342. }
  12343. function ws(e) {
  12344. return Ra(e) ? Fn(e, !0) : Ir(e)
  12345. }
  12346. var Ss = _i((function(e, t, n) {
  12347. Er(e, t, n)
  12348. }
  12349. ))
  12350. , xs = _i((function(e, t, n, r) {
  12351. Er(e, t, n, r)
  12352. }
  12353. ))
  12354. , ks = Vi((function(e, t) {
  12355. var n = {};
  12356. if (null == e)
  12357. return n;
  12358. var r = !1;
  12359. t = ht(t, (function(t) {
  12360. return t = si(t, e),
  12361. r || (r = t.length > 1),
  12362. t
  12363. }
  12364. )),
  12365. yi(e, Gi(e), n),
  12366. r && (n = Xn(n, 7, Wi));
  12367. for (var i = t.length; i--; )
  12368. Kr(n, t[i]);
  12369. return n
  12370. }
  12371. ));
  12372. var Is = Vi((function(e, t) {
  12373. return null == e ? {} : function(e, t) {
  12374. return Lr(e, t, (function(t, n) {
  12375. return ms(e, n)
  12376. }
  12377. ))
  12378. }(e, t)
  12379. }
  12380. ));
  12381. function Cs(e, t) {
  12382. if (null == e)
  12383. return {};
  12384. var n = ht(Gi(e), (function(e) {
  12385. return [e]
  12386. }
  12387. ));
  12388. return t = Xi(t),
  12389. Lr(e, n, (function(e, n) {
  12390. return t(e, n[0])
  12391. }
  12392. ))
  12393. }
  12394. var Ms = Fi(_s)
  12395. , Ts = Fi(ws);
  12396. function As(e) {
  12397. return null == e ? [] : Ot(e, _s(e))
  12398. }
  12399. var Es = ki((function(e, t, n) {
  12400. return t = t.toLowerCase(),
  12401. e + (n ? Os(t) : t)
  12402. }
  12403. ));
  12404. function Os(e) {
  12405. return Ds(ss(e).toLowerCase())
  12406. }
  12407. function Bs(e) {
  12408. return (e = ss(e)) && e.replace(ue, zt).replace(Le, "")
  12409. }
  12410. var Ls = ki((function(e, t, n) {
  12411. return e + (n ? "-" : "") + t.toLowerCase()
  12412. }
  12413. ))
  12414. , Ps = ki((function(e, t, n) {
  12415. return e + (n ? " " : "") + t.toLowerCase()
  12416. }
  12417. ))
  12418. , Rs = xi("toLowerCase");
  12419. var zs = ki((function(e, t, n) {
  12420. return e + (n ? "_" : "") + t.toLowerCase()
  12421. }
  12422. ));
  12423. var js = ki((function(e, t, n) {
  12424. return e + (n ? " " : "") + Ds(t)
  12425. }
  12426. ));
  12427. var Fs = ki((function(e, t, n) {
  12428. return e + (n ? " " : "") + t.toUpperCase()
  12429. }
  12430. ))
  12431. , Ds = xi("toUpperCase");
  12432. function Ns(e, t, n) {
  12433. return e = ss(e),
  12434. void 0 === (t = n ? void 0 : t) ? function(e) {
  12435. return je.test(e)
  12436. }(e) ? function(e) {
  12437. return e.match(Re) || []
  12438. }(e) : function(e) {
  12439. return e.match(ee) || []
  12440. }(e) : e.match(t) || []
  12441. }
  12442. var Us = Fr((function(e, t) {
  12443. try {
  12444. return ot(e, void 0, t)
  12445. } catch (e) {
  12446. return Da(e) ? e : new fe(e)
  12447. }
  12448. }
  12449. ))
  12450. , Ws = Vi((function(e, t) {
  12451. return st(t, (function(t) {
  12452. t = Co(t),
  12453. Zn(e, t, ya(e[t], e))
  12454. }
  12455. )),
  12456. e
  12457. }
  12458. ));
  12459. function Hs(e) {
  12460. return function() {
  12461. return e
  12462. }
  12463. }
  12464. var Vs = Mi()
  12465. , $s = Mi(!0);
  12466. function Gs(e) {
  12467. return e
  12468. }
  12469. function Zs(e) {
  12470. return xr("function" == typeof e ? e : Xn(e, 1))
  12471. }
  12472. var qs = Fr((function(e, t) {
  12473. return function(n) {
  12474. return yr(n, e, t)
  12475. }
  12476. }
  12477. ))
  12478. , Ys = Fr((function(e, t) {
  12479. return function(n) {
  12480. return yr(e, n, t)
  12481. }
  12482. }
  12483. ));
  12484. function Xs(e, t, n) {
  12485. var r = _s(t)
  12486. , i = cr(t, r);
  12487. null != n || Ha(t) && (i.length || !r.length) || (n = t,
  12488. t = e,
  12489. e = this,
  12490. i = cr(t, _s(t)));
  12491. var o = !(Ha(n) && "chain"in n && !n.chain)
  12492. , a = Na(e);
  12493. return st(i, (function(n) {
  12494. var r = t[n];
  12495. e[n] = r,
  12496. a && (e.prototype[n] = function() {
  12497. var t = this.__chain__;
  12498. if (o || t) {
  12499. var n = e(this.__wrapped__)
  12500. , i = n.__actions__ = vi(this.__actions__);
  12501. return i.push({
  12502. func: r,
  12503. args: arguments,
  12504. thisArg: e
  12505. }),
  12506. n.__chain__ = t,
  12507. n
  12508. }
  12509. return r.apply(e, pt([this.value()], arguments))
  12510. }
  12511. )
  12512. }
  12513. )),
  12514. e
  12515. }
  12516. function Js() {}
  12517. var Qs = Oi(ht)
  12518. , Ks = Oi(ut)
  12519. , el = Oi(vt);
  12520. function tl(e) {
  12521. return lo(e) ? It(Co(e)) : function(e) {
  12522. return function(t) {
  12523. return dr(t, e)
  12524. }
  12525. }(e)
  12526. }
  12527. var nl = Li()
  12528. , rl = Li(!0);
  12529. function il() {
  12530. return []
  12531. }
  12532. function ol() {
  12533. return !1
  12534. }
  12535. var al = Ei((function(e, t) {
  12536. return e + t
  12537. }
  12538. ), 0)
  12539. , sl = zi("ceil")
  12540. , ll = Ei((function(e, t) {
  12541. return e / t
  12542. }
  12543. ), 1)
  12544. , ul = zi("floor");
  12545. var cl, dl = Ei((function(e, t) {
  12546. return e * t
  12547. }
  12548. ), 1), fl = zi("round"), hl = Ei((function(e, t) {
  12549. return e - t
  12550. }
  12551. ), 0);
  12552. return Tn.after = function(e, t) {
  12553. if ("function" != typeof t)
  12554. throw new ye(o);
  12555. return e = rs(e),
  12556. function() {
  12557. if (--e < 1)
  12558. return t.apply(this, arguments)
  12559. }
  12560. }
  12561. ,
  12562. Tn.ary = ma,
  12563. Tn.assign = ls,
  12564. Tn.assignIn = us,
  12565. Tn.assignInWith = cs,
  12566. Tn.assignWith = ds,
  12567. Tn.at = fs,
  12568. Tn.before = va,
  12569. Tn.bind = ya,
  12570. Tn.bindAll = Ws,
  12571. Tn.bindKey = ba,
  12572. Tn.castArray = function() {
  12573. if (!arguments.length)
  12574. return [];
  12575. var e = arguments[0];
  12576. return La(e) ? e : [e]
  12577. }
  12578. ,
  12579. Tn.chain = ta,
  12580. Tn.chunk = function(e, t, n) {
  12581. t = (n ? so(e, t, n) : void 0 === t) ? 1 : an(rs(t), 0);
  12582. var i = null == e ? 0 : e.length;
  12583. if (!i || t < 1)
  12584. return [];
  12585. for (var o = 0, a = 0, s = r(Qt(i / t)); o < i; )
  12586. s[a++] = $r(e, o, o += t);
  12587. return s
  12588. }
  12589. ,
  12590. Tn.compact = function(e) {
  12591. for (var t = -1, n = null == e ? 0 : e.length, r = 0, i = []; ++t < n; ) {
  12592. var o = e[t];
  12593. o && (i[r++] = o)
  12594. }
  12595. return i
  12596. }
  12597. ,
  12598. Tn.concat = function() {
  12599. var e = arguments.length;
  12600. if (!e)
  12601. return [];
  12602. for (var t = r(e - 1), n = arguments[0], i = e; i--; )
  12603. t[i - 1] = arguments[i];
  12604. return pt(La(n) ? vi(n) : [n], or(t, 1))
  12605. }
  12606. ,
  12607. Tn.cond = function(e) {
  12608. var t = null == e ? 0 : e.length
  12609. , n = Xi();
  12610. return e = t ? ht(e, (function(e) {
  12611. if ("function" != typeof e[1])
  12612. throw new ye(o);
  12613. return [n(e[0]), e[1]]
  12614. }
  12615. )) : [],
  12616. Fr((function(n) {
  12617. for (var r = -1; ++r < t; ) {
  12618. var i = e[r];
  12619. if (ot(i[0], this, n))
  12620. return ot(i[1], this, n)
  12621. }
  12622. }
  12623. ))
  12624. }
  12625. ,
  12626. Tn.conforms = function(e) {
  12627. return function(e) {
  12628. var t = _s(e);
  12629. return function(n) {
  12630. return Jn(n, e, t)
  12631. }
  12632. }(Xn(e, 1))
  12633. }
  12634. ,
  12635. Tn.constant = Hs,
  12636. Tn.countBy = ia,
  12637. Tn.create = function(e, t) {
  12638. var n = An(e);
  12639. return null == t ? n : Gn(n, t)
  12640. }
  12641. ,
  12642. Tn.curry = function e(t, n, r) {
  12643. var i = Di(t, 8, void 0, void 0, void 0, void 0, void 0, n = r ? void 0 : n);
  12644. return i.placeholder = e.placeholder,
  12645. i
  12646. }
  12647. ,
  12648. Tn.curryRight = function e(t, n, r) {
  12649. var i = Di(t, 16, void 0, void 0, void 0, void 0, void 0, n = r ? void 0 : n);
  12650. return i.placeholder = e.placeholder,
  12651. i
  12652. }
  12653. ,
  12654. Tn.debounce = _a,
  12655. Tn.defaults = hs,
  12656. Tn.defaultsDeep = ps,
  12657. Tn.defer = wa,
  12658. Tn.delay = Sa,
  12659. Tn.difference = Ao,
  12660. Tn.differenceBy = Eo,
  12661. Tn.differenceWith = Oo,
  12662. Tn.drop = function(e, t, n) {
  12663. var r = null == e ? 0 : e.length;
  12664. return r ? $r(e, (t = n || void 0 === t ? 1 : rs(t)) < 0 ? 0 : t, r) : []
  12665. }
  12666. ,
  12667. Tn.dropRight = function(e, t, n) {
  12668. var r = null == e ? 0 : e.length;
  12669. return r ? $r(e, 0, (t = r - (t = n || void 0 === t ? 1 : rs(t))) < 0 ? 0 : t) : []
  12670. }
  12671. ,
  12672. Tn.dropRightWhile = function(e, t) {
  12673. return e && e.length ? ti(e, Xi(t, 3), !0, !0) : []
  12674. }
  12675. ,
  12676. Tn.dropWhile = function(e, t) {
  12677. return e && e.length ? ti(e, Xi(t, 3), !0) : []
  12678. }
  12679. ,
  12680. Tn.fill = function(e, t, n, r) {
  12681. var i = null == e ? 0 : e.length;
  12682. return i ? (n && "number" != typeof n && so(e, t, n) && (n = 0,
  12683. r = i),
  12684. function(e, t, n, r) {
  12685. var i = e.length;
  12686. for ((n = rs(n)) < 0 && (n = -n > i ? 0 : i + n),
  12687. (r = void 0 === r || r > i ? i : rs(r)) < 0 && (r += i),
  12688. r = n > r ? 0 : is(r); n < r; )
  12689. e[n++] = t;
  12690. return e
  12691. }(e, t, n, r)) : []
  12692. }
  12693. ,
  12694. Tn.filter = function(e, t) {
  12695. return (La(e) ? ct : ir)(e, Xi(t, 3))
  12696. }
  12697. ,
  12698. Tn.flatMap = function(e, t) {
  12699. return or(fa(e, t), 1)
  12700. }
  12701. ,
  12702. Tn.flatMapDeep = function(e, t) {
  12703. return or(fa(e, t), 1 / 0)
  12704. }
  12705. ,
  12706. Tn.flatMapDepth = function(e, t, n) {
  12707. return n = void 0 === n ? 1 : rs(n),
  12708. or(fa(e, t), n)
  12709. }
  12710. ,
  12711. Tn.flatten = Po,
  12712. Tn.flattenDeep = function(e) {
  12713. return (null == e ? 0 : e.length) ? or(e, 1 / 0) : []
  12714. }
  12715. ,
  12716. Tn.flattenDepth = function(e, t) {
  12717. return (null == e ? 0 : e.length) ? or(e, t = void 0 === t ? 1 : rs(t)) : []
  12718. }
  12719. ,
  12720. Tn.flip = function(e) {
  12721. return Di(e, 512)
  12722. }
  12723. ,
  12724. Tn.flow = Vs,
  12725. Tn.flowRight = $s,
  12726. Tn.fromPairs = function(e) {
  12727. for (var t = -1, n = null == e ? 0 : e.length, r = {}; ++t < n; ) {
  12728. var i = e[t];
  12729. r[i[0]] = i[1]
  12730. }
  12731. return r
  12732. }
  12733. ,
  12734. Tn.functions = function(e) {
  12735. return null == e ? [] : cr(e, _s(e))
  12736. }
  12737. ,
  12738. Tn.functionsIn = function(e) {
  12739. return null == e ? [] : cr(e, ws(e))
  12740. }
  12741. ,
  12742. Tn.groupBy = ua,
  12743. Tn.initial = function(e) {
  12744. return (null == e ? 0 : e.length) ? $r(e, 0, -1) : []
  12745. }
  12746. ,
  12747. Tn.intersection = zo,
  12748. Tn.intersectionBy = jo,
  12749. Tn.intersectionWith = Fo,
  12750. Tn.invert = vs,
  12751. Tn.invertBy = ys,
  12752. Tn.invokeMap = ca,
  12753. Tn.iteratee = Zs,
  12754. Tn.keyBy = da,
  12755. Tn.keys = _s,
  12756. Tn.keysIn = ws,
  12757. Tn.map = fa,
  12758. Tn.mapKeys = function(e, t) {
  12759. var n = {};
  12760. return t = Xi(t, 3),
  12761. lr(e, (function(e, r, i) {
  12762. Zn(n, t(e, r, i), e)
  12763. }
  12764. )),
  12765. n
  12766. }
  12767. ,
  12768. Tn.mapValues = function(e, t) {
  12769. var n = {};
  12770. return t = Xi(t, 3),
  12771. lr(e, (function(e, r, i) {
  12772. Zn(n, r, t(e, r, i))
  12773. }
  12774. )),
  12775. n
  12776. }
  12777. ,
  12778. Tn.matches = function(e) {
  12779. return Tr(Xn(e, 1))
  12780. }
  12781. ,
  12782. Tn.matchesProperty = function(e, t) {
  12783. return Ar(e, Xn(t, 1))
  12784. }
  12785. ,
  12786. Tn.memoize = xa,
  12787. Tn.merge = Ss,
  12788. Tn.mergeWith = xs,
  12789. Tn.method = qs,
  12790. Tn.methodOf = Ys,
  12791. Tn.mixin = Xs,
  12792. Tn.negate = ka,
  12793. Tn.nthArg = function(e) {
  12794. return e = rs(e),
  12795. Fr((function(t) {
  12796. return Or(t, e)
  12797. }
  12798. ))
  12799. }
  12800. ,
  12801. Tn.omit = ks,
  12802. Tn.omitBy = function(e, t) {
  12803. return Cs(e, ka(Xi(t)))
  12804. }
  12805. ,
  12806. Tn.once = function(e) {
  12807. return va(2, e)
  12808. }
  12809. ,
  12810. Tn.orderBy = function(e, t, n, r) {
  12811. return null == e ? [] : (La(t) || (t = null == t ? [] : [t]),
  12812. La(n = r ? void 0 : n) || (n = null == n ? [] : [n]),
  12813. Br(e, t, n))
  12814. }
  12815. ,
  12816. Tn.over = Qs,
  12817. Tn.overArgs = Ia,
  12818. Tn.overEvery = Ks,
  12819. Tn.overSome = el,
  12820. Tn.partial = Ca,
  12821. Tn.partialRight = Ma,
  12822. Tn.partition = ha,
  12823. Tn.pick = Is,
  12824. Tn.pickBy = Cs,
  12825. Tn.property = tl,
  12826. Tn.propertyOf = function(e) {
  12827. return function(t) {
  12828. return null == e ? void 0 : dr(e, t)
  12829. }
  12830. }
  12831. ,
  12832. Tn.pull = No,
  12833. Tn.pullAll = Uo,
  12834. Tn.pullAllBy = function(e, t, n) {
  12835. return e && e.length && t && t.length ? Pr(e, t, Xi(n, 2)) : e
  12836. }
  12837. ,
  12838. Tn.pullAllWith = function(e, t, n) {
  12839. return e && e.length && t && t.length ? Pr(e, t, void 0, n) : e
  12840. }
  12841. ,
  12842. Tn.pullAt = Wo,
  12843. Tn.range = nl,
  12844. Tn.rangeRight = rl,
  12845. Tn.rearg = Ta,
  12846. Tn.reject = function(e, t) {
  12847. return (La(e) ? ct : ir)(e, ka(Xi(t, 3)))
  12848. }
  12849. ,
  12850. Tn.remove = function(e, t) {
  12851. var n = [];
  12852. if (!e || !e.length)
  12853. return n;
  12854. var r = -1
  12855. , i = []
  12856. , o = e.length;
  12857. for (t = Xi(t, 3); ++r < o; ) {
  12858. var a = e[r];
  12859. t(a, r, e) && (n.push(a),
  12860. i.push(r))
  12861. }
  12862. return Rr(e, i),
  12863. n
  12864. }
  12865. ,
  12866. Tn.rest = function(e, t) {
  12867. if ("function" != typeof e)
  12868. throw new ye(o);
  12869. return Fr(e, t = void 0 === t ? t : rs(t))
  12870. }
  12871. ,
  12872. Tn.reverse = Ho,
  12873. Tn.sampleSize = function(e, t, n) {
  12874. return t = (n ? so(e, t, n) : void 0 === t) ? 1 : rs(t),
  12875. (La(e) ? Nn : Nr)(e, t)
  12876. }
  12877. ,
  12878. Tn.set = function(e, t, n) {
  12879. return null == e ? e : Ur(e, t, n)
  12880. }
  12881. ,
  12882. Tn.setWith = function(e, t, n, r) {
  12883. return r = "function" == typeof r ? r : void 0,
  12884. null == e ? e : Ur(e, t, n, r)
  12885. }
  12886. ,
  12887. Tn.shuffle = function(e) {
  12888. return (La(e) ? Un : Vr)(e)
  12889. }
  12890. ,
  12891. Tn.slice = function(e, t, n) {
  12892. var r = null == e ? 0 : e.length;
  12893. return r ? (n && "number" != typeof n && so(e, t, n) ? (t = 0,
  12894. n = r) : (t = null == t ? 0 : rs(t),
  12895. n = void 0 === n ? r : rs(n)),
  12896. $r(e, t, n)) : []
  12897. }
  12898. ,
  12899. Tn.sortBy = pa,
  12900. Tn.sortedUniq = function(e) {
  12901. return e && e.length ? Yr(e) : []
  12902. }
  12903. ,
  12904. Tn.sortedUniqBy = function(e, t) {
  12905. return e && e.length ? Yr(e, Xi(t, 2)) : []
  12906. }
  12907. ,
  12908. Tn.split = function(e, t, n) {
  12909. return n && "number" != typeof n && so(e, t, n) && (t = n = void 0),
  12910. (n = void 0 === n ? 4294967295 : n >>> 0) ? (e = ss(e)) && ("string" == typeof t || null != t && !qa(t)) && !(t = Jr(t)) && Dt(e) ? ui(Gt(e), 0, n) : e.split(t, n) : []
  12911. }
  12912. ,
  12913. Tn.spread = function(e, t) {
  12914. if ("function" != typeof e)
  12915. throw new ye(o);
  12916. return t = null == t ? 0 : an(rs(t), 0),
  12917. Fr((function(n) {
  12918. var r = n[t]
  12919. , i = ui(n, 0, t);
  12920. return r && pt(i, r),
  12921. ot(e, this, i)
  12922. }
  12923. ))
  12924. }
  12925. ,
  12926. Tn.tail = function(e) {
  12927. var t = null == e ? 0 : e.length;
  12928. return t ? $r(e, 1, t) : []
  12929. }
  12930. ,
  12931. Tn.take = function(e, t, n) {
  12932. return e && e.length ? $r(e, 0, (t = n || void 0 === t ? 1 : rs(t)) < 0 ? 0 : t) : []
  12933. }
  12934. ,
  12935. Tn.takeRight = function(e, t, n) {
  12936. var r = null == e ? 0 : e.length;
  12937. return r ? $r(e, (t = r - (t = n || void 0 === t ? 1 : rs(t))) < 0 ? 0 : t, r) : []
  12938. }
  12939. ,
  12940. Tn.takeRightWhile = function(e, t) {
  12941. return e && e.length ? ti(e, Xi(t, 3), !1, !0) : []
  12942. }
  12943. ,
  12944. Tn.takeWhile = function(e, t) {
  12945. return e && e.length ? ti(e, Xi(t, 3)) : []
  12946. }
  12947. ,
  12948. Tn.tap = function(e, t) {
  12949. return t(e),
  12950. e
  12951. }
  12952. ,
  12953. Tn.throttle = function(e, t, n) {
  12954. var r = !0
  12955. , i = !0;
  12956. if ("function" != typeof e)
  12957. throw new ye(o);
  12958. return Ha(n) && (r = "leading"in n ? !!n.leading : r,
  12959. i = "trailing"in n ? !!n.trailing : i),
  12960. _a(e, t, {
  12961. leading: r,
  12962. maxWait: t,
  12963. trailing: i
  12964. })
  12965. }
  12966. ,
  12967. Tn.thru = na,
  12968. Tn.toArray = ts,
  12969. Tn.toPairs = Ms,
  12970. Tn.toPairsIn = Ts,
  12971. Tn.toPath = function(e) {
  12972. return La(e) ? ht(e, Co) : Ja(e) ? [e] : vi(Io(ss(e)))
  12973. }
  12974. ,
  12975. Tn.toPlainObject = as,
  12976. Tn.transform = function(e, t, n) {
  12977. var r = La(e)
  12978. , i = r || ja(e) || Qa(e);
  12979. if (t = Xi(t, 4),
  12980. null == n) {
  12981. var o = e && e.constructor;
  12982. n = i ? r ? new o : [] : Ha(e) && Na(o) ? An($e(e)) : {}
  12983. }
  12984. return (i ? st : lr)(e, (function(e, r, i) {
  12985. return t(n, e, r, i)
  12986. }
  12987. )),
  12988. n
  12989. }
  12990. ,
  12991. Tn.unary = function(e) {
  12992. return ma(e, 1)
  12993. }
  12994. ,
  12995. Tn.union = Vo,
  12996. Tn.unionBy = $o,
  12997. Tn.unionWith = Go,
  12998. Tn.uniq = function(e) {
  12999. return e && e.length ? Qr(e) : []
  13000. }
  13001. ,
  13002. Tn.uniqBy = function(e, t) {
  13003. return e && e.length ? Qr(e, Xi(t, 2)) : []
  13004. }
  13005. ,
  13006. Tn.uniqWith = function(e, t) {
  13007. return t = "function" == typeof t ? t : void 0,
  13008. e && e.length ? Qr(e, void 0, t) : []
  13009. }
  13010. ,
  13011. Tn.unset = function(e, t) {
  13012. return null == e || Kr(e, t)
  13013. }
  13014. ,
  13015. Tn.unzip = Zo,
  13016. Tn.unzipWith = qo,
  13017. Tn.update = function(e, t, n) {
  13018. return null == e ? e : ei(e, t, ai(n))
  13019. }
  13020. ,
  13021. Tn.updateWith = function(e, t, n, r) {
  13022. return r = "function" == typeof r ? r : void 0,
  13023. null == e ? e : ei(e, t, ai(n), r)
  13024. }
  13025. ,
  13026. Tn.values = As,
  13027. Tn.valuesIn = function(e) {
  13028. return null == e ? [] : Ot(e, ws(e))
  13029. }
  13030. ,
  13031. Tn.without = Yo,
  13032. Tn.words = Ns,
  13033. Tn.wrap = function(e, t) {
  13034. return Ca(ai(t), e)
  13035. }
  13036. ,
  13037. Tn.xor = Xo,
  13038. Tn.xorBy = Jo,
  13039. Tn.xorWith = Qo,
  13040. Tn.zip = Ko,
  13041. Tn.zipObject = function(e, t) {
  13042. return ii(e || [], t || [], Hn)
  13043. }
  13044. ,
  13045. Tn.zipObjectDeep = function(e, t) {
  13046. return ii(e || [], t || [], Ur)
  13047. }
  13048. ,
  13049. Tn.zipWith = ea,
  13050. Tn.entries = Ms,
  13051. Tn.entriesIn = Ts,
  13052. Tn.extend = us,
  13053. Tn.extendWith = cs,
  13054. Xs(Tn, Tn),
  13055. Tn.add = al,
  13056. Tn.attempt = Us,
  13057. Tn.camelCase = Es,
  13058. Tn.capitalize = Os,
  13059. Tn.ceil = sl,
  13060. Tn.clamp = function(e, t, n) {
  13061. return void 0 === n && (n = t,
  13062. t = void 0),
  13063. void 0 !== n && (n = (n = os(n)) == n ? n : 0),
  13064. void 0 !== t && (t = (t = os(t)) == t ? t : 0),
  13065. Yn(os(e), t, n)
  13066. }
  13067. ,
  13068. Tn.clone = function(e) {
  13069. return Xn(e, 4)
  13070. }
  13071. ,
  13072. Tn.cloneDeep = function(e) {
  13073. return Xn(e, 5)
  13074. }
  13075. ,
  13076. Tn.cloneDeepWith = function(e, t) {
  13077. return Xn(e, 5, t = "function" == typeof t ? t : void 0)
  13078. }
  13079. ,
  13080. Tn.cloneWith = function(e, t) {
  13081. return Xn(e, 4, t = "function" == typeof t ? t : void 0)
  13082. }
  13083. ,
  13084. Tn.conformsTo = function(e, t) {
  13085. return null == t || Jn(e, t, _s(t))
  13086. }
  13087. ,
  13088. Tn.deburr = Bs,
  13089. Tn.defaultTo = function(e, t) {
  13090. return null == e || e != e ? t : e
  13091. }
  13092. ,
  13093. Tn.divide = ll,
  13094. Tn.endsWith = function(e, t, n) {
  13095. e = ss(e),
  13096. t = Jr(t);
  13097. var r = e.length
  13098. , i = n = void 0 === n ? r : Yn(rs(n), 0, r);
  13099. return (n -= t.length) >= 0 && e.slice(n, i) == t
  13100. }
  13101. ,
  13102. Tn.eq = Aa,
  13103. Tn.escape = function(e) {
  13104. return (e = ss(e)) && D.test(e) ? e.replace(j, jt) : e
  13105. }
  13106. ,
  13107. Tn.escapeRegExp = function(e) {
  13108. return (e = ss(e)) && Z.test(e) ? e.replace(G, "\\$&") : e
  13109. }
  13110. ,
  13111. Tn.every = function(e, t, n) {
  13112. var r = La(e) ? ut : nr;
  13113. return n && so(e, t, n) && (t = void 0),
  13114. r(e, Xi(t, 3))
  13115. }
  13116. ,
  13117. Tn.find = oa,
  13118. Tn.findIndex = Bo,
  13119. Tn.findKey = function(e, t) {
  13120. return bt(e, Xi(t, 3), lr)
  13121. }
  13122. ,
  13123. Tn.findLast = aa,
  13124. Tn.findLastIndex = Lo,
  13125. Tn.findLastKey = function(e, t) {
  13126. return bt(e, Xi(t, 3), ur)
  13127. }
  13128. ,
  13129. Tn.floor = ul,
  13130. Tn.forEach = sa,
  13131. Tn.forEachRight = la,
  13132. Tn.forIn = function(e, t) {
  13133. return null == e ? e : ar(e, Xi(t, 3), ws)
  13134. }
  13135. ,
  13136. Tn.forInRight = function(e, t) {
  13137. return null == e ? e : sr(e, Xi(t, 3), ws)
  13138. }
  13139. ,
  13140. Tn.forOwn = function(e, t) {
  13141. return e && lr(e, Xi(t, 3))
  13142. }
  13143. ,
  13144. Tn.forOwnRight = function(e, t) {
  13145. return e && ur(e, Xi(t, 3))
  13146. }
  13147. ,
  13148. Tn.get = gs,
  13149. Tn.gt = Ea,
  13150. Tn.gte = Oa,
  13151. Tn.has = function(e, t) {
  13152. return null != e && ro(e, t, gr)
  13153. }
  13154. ,
  13155. Tn.hasIn = ms,
  13156. Tn.head = Ro,
  13157. Tn.identity = Gs,
  13158. Tn.includes = function(e, t, n, r) {
  13159. e = Ra(e) ? e : As(e),
  13160. n = n && !r ? rs(n) : 0;
  13161. var i = e.length;
  13162. return n < 0 && (n = an(i + n, 0)),
  13163. Xa(e) ? n <= i && e.indexOf(t, n) > -1 : !!i && wt(e, t, n) > -1
  13164. }
  13165. ,
  13166. Tn.indexOf = function(e, t, n) {
  13167. var r = null == e ? 0 : e.length;
  13168. if (!r)
  13169. return -1;
  13170. var i = null == n ? 0 : rs(n);
  13171. return i < 0 && (i = an(r + i, 0)),
  13172. wt(e, t, i)
  13173. }
  13174. ,
  13175. Tn.inRange = function(e, t, n) {
  13176. return t = ns(t),
  13177. void 0 === n ? (n = t,
  13178. t = 0) : n = ns(n),
  13179. function(e, t, n) {
  13180. return e >= sn(t, n) && e < an(t, n)
  13181. }(e = os(e), t, n)
  13182. }
  13183. ,
  13184. Tn.invoke = bs,
  13185. Tn.isArguments = Ba,
  13186. Tn.isArray = La,
  13187. Tn.isArrayBuffer = Pa,
  13188. Tn.isArrayLike = Ra,
  13189. Tn.isArrayLikeObject = za,
  13190. Tn.isBoolean = function(e) {
  13191. return !0 === e || !1 === e || Va(e) && hr(e) == c
  13192. }
  13193. ,
  13194. Tn.isBuffer = ja,
  13195. Tn.isDate = Fa,
  13196. Tn.isElement = function(e) {
  13197. return Va(e) && 1 === e.nodeType && !Za(e)
  13198. }
  13199. ,
  13200. Tn.isEmpty = function(e) {
  13201. if (null == e)
  13202. return !0;
  13203. if (Ra(e) && (La(e) || "string" == typeof e || "function" == typeof e.splice || ja(e) || Qa(e) || Ba(e)))
  13204. return !e.length;
  13205. var t = no(e);
  13206. if (t == g || t == b)
  13207. return !e.size;
  13208. if (fo(e))
  13209. return !kr(e).length;
  13210. for (var n in e)
  13211. if (ke.call(e, n))
  13212. return !1;
  13213. return !0
  13214. }
  13215. ,
  13216. Tn.isEqual = function(e, t) {
  13217. return _r(e, t)
  13218. }
  13219. ,
  13220. Tn.isEqualWith = function(e, t, n) {
  13221. var r = (n = "function" == typeof n ? n : void 0) ? n(e, t) : void 0;
  13222. return void 0 === r ? _r(e, t, void 0, n) : !!r
  13223. }
  13224. ,
  13225. Tn.isError = Da,
  13226. Tn.isFinite = function(e) {
  13227. return "number" == typeof e && nn(e)
  13228. }
  13229. ,
  13230. Tn.isFunction = Na,
  13231. Tn.isInteger = Ua,
  13232. Tn.isLength = Wa,
  13233. Tn.isMap = $a,
  13234. Tn.isMatch = function(e, t) {
  13235. return e === t || wr(e, t, Qi(t))
  13236. }
  13237. ,
  13238. Tn.isMatchWith = function(e, t, n) {
  13239. return n = "function" == typeof n ? n : void 0,
  13240. wr(e, t, Qi(t), n)
  13241. }
  13242. ,
  13243. Tn.isNaN = function(e) {
  13244. return Ga(e) && e != +e
  13245. }
  13246. ,
  13247. Tn.isNative = function(e) {
  13248. if (co(e))
  13249. throw new fe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");
  13250. return Sr(e)
  13251. }
  13252. ,
  13253. Tn.isNil = function(e) {
  13254. return null == e
  13255. }
  13256. ,
  13257. Tn.isNull = function(e) {
  13258. return null === e
  13259. }
  13260. ,
  13261. Tn.isNumber = Ga,
  13262. Tn.isObject = Ha,
  13263. Tn.isObjectLike = Va,
  13264. Tn.isPlainObject = Za,
  13265. Tn.isRegExp = qa,
  13266. Tn.isSafeInteger = function(e) {
  13267. return Ua(e) && e >= -9007199254740991 && e <= 9007199254740991
  13268. }
  13269. ,
  13270. Tn.isSet = Ya,
  13271. Tn.isString = Xa,
  13272. Tn.isSymbol = Ja,
  13273. Tn.isTypedArray = Qa,
  13274. Tn.isUndefined = function(e) {
  13275. return void 0 === e
  13276. }
  13277. ,
  13278. Tn.isWeakMap = function(e) {
  13279. return Va(e) && no(e) == S
  13280. }
  13281. ,
  13282. Tn.isWeakSet = function(e) {
  13283. return Va(e) && "[object WeakSet]" == hr(e)
  13284. }
  13285. ,
  13286. Tn.join = function(e, t) {
  13287. return null == e ? "" : rn.call(e, t)
  13288. }
  13289. ,
  13290. Tn.kebabCase = Ls,
  13291. Tn.last = Do,
  13292. Tn.lastIndexOf = function(e, t, n) {
  13293. var r = null == e ? 0 : e.length;
  13294. if (!r)
  13295. return -1;
  13296. var i = r;
  13297. return void 0 !== n && (i = (i = rs(n)) < 0 ? an(r + i, 0) : sn(i, r - 1)),
  13298. t == t ? function(e, t, n) {
  13299. for (var r = n + 1; r--; )
  13300. if (e[r] === t)
  13301. return r;
  13302. return r
  13303. }(e, t, i) : _t(e, xt, i, !0)
  13304. }
  13305. ,
  13306. Tn.lowerCase = Ps,
  13307. Tn.lowerFirst = Rs,
  13308. Tn.lt = Ka,
  13309. Tn.lte = es,
  13310. Tn.max = function(e) {
  13311. return e && e.length ? rr(e, Gs, pr) : void 0
  13312. }
  13313. ,
  13314. Tn.maxBy = function(e, t) {
  13315. return e && e.length ? rr(e, Xi(t, 2), pr) : void 0
  13316. }
  13317. ,
  13318. Tn.mean = function(e) {
  13319. return kt(e, Gs)
  13320. }
  13321. ,
  13322. Tn.meanBy = function(e, t) {
  13323. return kt(e, Xi(t, 2))
  13324. }
  13325. ,
  13326. Tn.min = function(e) {
  13327. return e && e.length ? rr(e, Gs, Cr) : void 0
  13328. }
  13329. ,
  13330. Tn.minBy = function(e, t) {
  13331. return e && e.length ? rr(e, Xi(t, 2), Cr) : void 0
  13332. }
  13333. ,
  13334. Tn.stubArray = il,
  13335. Tn.stubFalse = ol,
  13336. Tn.stubObject = function() {
  13337. return {}
  13338. }
  13339. ,
  13340. Tn.stubString = function() {
  13341. return ""
  13342. }
  13343. ,
  13344. Tn.stubTrue = function() {
  13345. return !0
  13346. }
  13347. ,
  13348. Tn.multiply = dl,
  13349. Tn.nth = function(e, t) {
  13350. return e && e.length ? Or(e, rs(t)) : void 0
  13351. }
  13352. ,
  13353. Tn.noConflict = function() {
  13354. return Ze._ === this && (Ze._ = Ae),
  13355. this
  13356. }
  13357. ,
  13358. Tn.noop = Js,
  13359. Tn.now = ga,
  13360. Tn.pad = function(e, t, n) {
  13361. e = ss(e);
  13362. var r = (t = rs(t)) ? $t(e) : 0;
  13363. if (!t || r >= t)
  13364. return e;
  13365. var i = (t - r) / 2;
  13366. return Bi(Kt(i), n) + e + Bi(Qt(i), n)
  13367. }
  13368. ,
  13369. Tn.padEnd = function(e, t, n) {
  13370. e = ss(e);
  13371. var r = (t = rs(t)) ? $t(e) : 0;
  13372. return t && r < t ? e + Bi(t - r, n) : e
  13373. }
  13374. ,
  13375. Tn.padStart = function(e, t, n) {
  13376. e = ss(e);
  13377. var r = (t = rs(t)) ? $t(e) : 0;
  13378. return t && r < t ? Bi(t - r, n) + e : e
  13379. }
  13380. ,
  13381. Tn.parseInt = function(e, t, n) {
  13382. return n || null == t ? t = 0 : t && (t = +t),
  13383. un(ss(e).replace(Y, ""), t || 0)
  13384. }
  13385. ,
  13386. Tn.random = function(e, t, n) {
  13387. if (n && "boolean" != typeof n && so(e, t, n) && (t = n = void 0),
  13388. void 0 === n && ("boolean" == typeof t ? (n = t,
  13389. t = void 0) : "boolean" == typeof e && (n = e,
  13390. e = void 0)),
  13391. void 0 === e && void 0 === t ? (e = 0,
  13392. t = 1) : (e = ns(e),
  13393. void 0 === t ? (t = e,
  13394. e = 0) : t = ns(t)),
  13395. e > t) {
  13396. var r = e;
  13397. e = t,
  13398. t = r
  13399. }
  13400. if (n || e % 1 || t % 1) {
  13401. var i = cn();
  13402. return sn(e + i * (t - e + He("1e-" + ((i + "").length - 1))), t)
  13403. }
  13404. return zr(e, t)
  13405. }
  13406. ,
  13407. Tn.reduce = function(e, t, n) {
  13408. var r = La(e) ? gt : Mt
  13409. , i = arguments.length < 3;
  13410. return r(e, Xi(t, 4), n, i, er)
  13411. }
  13412. ,
  13413. Tn.reduceRight = function(e, t, n) {
  13414. var r = La(e) ? mt : Mt
  13415. , i = arguments.length < 3;
  13416. return r(e, Xi(t, 4), n, i, tr)
  13417. }
  13418. ,
  13419. Tn.repeat = function(e, t, n) {
  13420. return t = (n ? so(e, t, n) : void 0 === t) ? 1 : rs(t),
  13421. jr(ss(e), t)
  13422. }
  13423. ,
  13424. Tn.replace = function() {
  13425. var e = arguments
  13426. , t = ss(e[0]);
  13427. return e.length < 3 ? t : t.replace(e[1], e[2])
  13428. }
  13429. ,
  13430. Tn.result = function(e, t, n) {
  13431. var r = -1
  13432. , i = (t = si(t, e)).length;
  13433. for (i || (i = 1,
  13434. e = void 0); ++r < i; ) {
  13435. var o = null == e ? void 0 : e[Co(t[r])];
  13436. void 0 === o && (r = i,
  13437. o = n),
  13438. e = Na(o) ? o.call(e) : o
  13439. }
  13440. return e
  13441. }
  13442. ,
  13443. Tn.round = fl,
  13444. Tn.runInContext = e,
  13445. Tn.sample = function(e) {
  13446. return (La(e) ? Dn : Dr)(e)
  13447. }
  13448. ,
  13449. Tn.size = function(e) {
  13450. if (null == e)
  13451. return 0;
  13452. if (Ra(e))
  13453. return Xa(e) ? $t(e) : e.length;
  13454. var t = no(e);
  13455. return t == g || t == b ? e.size : kr(e).length
  13456. }
  13457. ,
  13458. Tn.snakeCase = zs,
  13459. Tn.some = function(e, t, n) {
  13460. var r = La(e) ? vt : Gr;
  13461. return n && so(e, t, n) && (t = void 0),
  13462. r(e, Xi(t, 3))
  13463. }
  13464. ,
  13465. Tn.sortedIndex = function(e, t) {
  13466. return Zr(e, t)
  13467. }
  13468. ,
  13469. Tn.sortedIndexBy = function(e, t, n) {
  13470. return qr(e, t, Xi(n, 2))
  13471. }
  13472. ,
  13473. Tn.sortedIndexOf = function(e, t) {
  13474. var n = null == e ? 0 : e.length;
  13475. if (n) {
  13476. var r = Zr(e, t);
  13477. if (r < n && Aa(e[r], t))
  13478. return r
  13479. }
  13480. return -1
  13481. }
  13482. ,
  13483. Tn.sortedLastIndex = function(e, t) {
  13484. return Zr(e, t, !0)
  13485. }
  13486. ,
  13487. Tn.sortedLastIndexBy = function(e, t, n) {
  13488. return qr(e, t, Xi(n, 2), !0)
  13489. }
  13490. ,
  13491. Tn.sortedLastIndexOf = function(e, t) {
  13492. if (null == e ? 0 : e.length) {
  13493. var n = Zr(e, t, !0) - 1;
  13494. if (Aa(e[n], t))
  13495. return n
  13496. }
  13497. return -1
  13498. }
  13499. ,
  13500. Tn.startCase = js,
  13501. Tn.startsWith = function(e, t, n) {
  13502. return e = ss(e),
  13503. n = null == n ? 0 : Yn(rs(n), 0, e.length),
  13504. t = Jr(t),
  13505. e.slice(n, n + t.length) == t
  13506. }
  13507. ,
  13508. Tn.subtract = hl,
  13509. Tn.sum = function(e) {
  13510. return e && e.length ? Tt(e, Gs) : 0
  13511. }
  13512. ,
  13513. Tn.sumBy = function(e, t) {
  13514. return e && e.length ? Tt(e, Xi(t, 2)) : 0
  13515. }
  13516. ,
  13517. Tn.template = function(e, t, n) {
  13518. var r = Tn.templateSettings;
  13519. n && so(e, t, n) && (t = void 0),
  13520. e = ss(e),
  13521. t = cs({}, t, r, Ni);
  13522. var i, o, a = cs({}, t.imports, r.imports, Ni), s = _s(a), l = Ot(a, s), u = 0, c = t.interpolate || ce, d = "__p += '", f = me((t.escape || ce).source + "|" + c.source + "|" + (c === W ? ne : ce).source + "|" + (t.evaluate || ce).source + "|$", "g"), h = "//# sourceURL=" + (ke.call(t, "sourceURL") ? (t.sourceURL + "").replace(/[\r\n]/g, " ") : "lodash.templateSources[" + ++De + "]") + "\n";
  13523. e.replace(f, (function(t, n, r, a, s, l) {
  13524. return r || (r = a),
  13525. d += e.slice(u, l).replace(de, Ft),
  13526. n && (i = !0,
  13527. d += "' +\n__e(" + n + ") +\n'"),
  13528. s && (o = !0,
  13529. d += "';\n" + s + ";\n__p += '"),
  13530. r && (d += "' +\n((__t = (" + r + ")) == null ? '' : __t) +\n'"),
  13531. u = l + t.length,
  13532. t
  13533. }
  13534. )),
  13535. d += "';\n";
  13536. var p = ke.call(t, "variable") && t.variable;
  13537. p || (d = "with (obj) {\n" + d + "\n}\n"),
  13538. d = (o ? d.replace(L, "") : d).replace(P, "$1").replace(R, "$1;"),
  13539. d = "function(" + (p || "obj") + ") {\n" + (p ? "" : "obj || (obj = {});\n") + "var __t, __p = ''" + (i ? ", __e = _.escape" : "") + (o ? ", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n" : ";\n") + d + "return __p\n}";
  13540. var g = Us((function() {
  13541. return he(s, h + "return " + d).apply(void 0, l)
  13542. }
  13543. ));
  13544. if (g.source = d,
  13545. Da(g))
  13546. throw g;
  13547. return g
  13548. }
  13549. ,
  13550. Tn.times = function(e, t) {
  13551. if ((e = rs(e)) < 1 || e > 9007199254740991)
  13552. return [];
  13553. var n = 4294967295
  13554. , r = sn(e, 4294967295);
  13555. e -= 4294967295;
  13556. for (var i = At(r, t = Xi(t)); ++n < e; )
  13557. t(n);
  13558. return i
  13559. }
  13560. ,
  13561. Tn.toFinite = ns,
  13562. Tn.toInteger = rs,
  13563. Tn.toLength = is,
  13564. Tn.toLower = function(e) {
  13565. return ss(e).toLowerCase()
  13566. }
  13567. ,
  13568. Tn.toNumber = os,
  13569. Tn.toSafeInteger = function(e) {
  13570. return e ? Yn(rs(e), -9007199254740991, 9007199254740991) : 0 === e ? e : 0
  13571. }
  13572. ,
  13573. Tn.toString = ss,
  13574. Tn.toUpper = function(e) {
  13575. return ss(e).toUpperCase()
  13576. }
  13577. ,
  13578. Tn.trim = function(e, t, n) {
  13579. if ((e = ss(e)) && (n || void 0 === t))
  13580. return e.replace(q, "");
  13581. if (!e || !(t = Jr(t)))
  13582. return e;
  13583. var r = Gt(e)
  13584. , i = Gt(t);
  13585. return ui(r, Lt(r, i), Pt(r, i) + 1).join("")
  13586. }
  13587. ,
  13588. Tn.trimEnd = function(e, t, n) {
  13589. if ((e = ss(e)) && (n || void 0 === t))
  13590. return e.replace(X, "");
  13591. if (!e || !(t = Jr(t)))
  13592. return e;
  13593. var r = Gt(e);
  13594. return ui(r, 0, Pt(r, Gt(t)) + 1).join("")
  13595. }
  13596. ,
  13597. Tn.trimStart = function(e, t, n) {
  13598. if ((e = ss(e)) && (n || void 0 === t))
  13599. return e.replace(Y, "");
  13600. if (!e || !(t = Jr(t)))
  13601. return e;
  13602. var r = Gt(e);
  13603. return ui(r, Lt(r, Gt(t))).join("")
  13604. }
  13605. ,
  13606. Tn.truncate = function(e, t) {
  13607. var n = 30
  13608. , r = "...";
  13609. if (Ha(t)) {
  13610. var i = "separator"in t ? t.separator : i;
  13611. n = "length"in t ? rs(t.length) : n,
  13612. r = "omission"in t ? Jr(t.omission) : r
  13613. }
  13614. var o = (e = ss(e)).length;
  13615. if (Dt(e)) {
  13616. var a = Gt(e);
  13617. o = a.length
  13618. }
  13619. if (n >= o)
  13620. return e;
  13621. var s = n - $t(r);
  13622. if (s < 1)
  13623. return r;
  13624. var l = a ? ui(a, 0, s).join("") : e.slice(0, s);
  13625. if (void 0 === i)
  13626. return l + r;
  13627. if (a && (s += l.length - s),
  13628. qa(i)) {
  13629. if (e.slice(s).search(i)) {
  13630. var u, c = l;
  13631. for (i.global || (i = me(i.source, ss(re.exec(i)) + "g")),
  13632. i.lastIndex = 0; u = i.exec(c); )
  13633. var d = u.index;
  13634. l = l.slice(0, void 0 === d ? s : d)
  13635. }
  13636. } else if (e.indexOf(Jr(i), s) != s) {
  13637. var f = l.lastIndexOf(i);
  13638. f > -1 && (l = l.slice(0, f))
  13639. }
  13640. return l + r
  13641. }
  13642. ,
  13643. Tn.unescape = function(e) {
  13644. return (e = ss(e)) && F.test(e) ? e.replace(z, Zt) : e
  13645. }
  13646. ,
  13647. Tn.uniqueId = function(e) {
  13648. var t = ++Ie;
  13649. return ss(e) + t
  13650. }
  13651. ,
  13652. Tn.upperCase = Fs,
  13653. Tn.upperFirst = Ds,
  13654. Tn.each = sa,
  13655. Tn.eachRight = la,
  13656. Tn.first = Ro,
  13657. Xs(Tn, (cl = {},
  13658. lr(Tn, (function(e, t) {
  13659. ke.call(Tn.prototype, t) || (cl[t] = e)
  13660. }
  13661. )),
  13662. cl), {
  13663. chain: !1
  13664. }),
  13665. Tn.VERSION = "4.17.14",
  13666. st(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], (function(e) {
  13667. Tn[e].placeholder = Tn
  13668. }
  13669. )),
  13670. st(["drop", "take"], (function(e, t) {
  13671. Bn.prototype[e] = function(n) {
  13672. n = void 0 === n ? 1 : an(rs(n), 0);
  13673. var r = this.__filtered__ && !t ? new Bn(this) : this.clone();
  13674. return r.__filtered__ ? r.__takeCount__ = sn(n, r.__takeCount__) : r.__views__.push({
  13675. size: sn(n, 4294967295),
  13676. type: e + (r.__dir__ < 0 ? "Right" : "")
  13677. }),
  13678. r
  13679. }
  13680. ,
  13681. Bn.prototype[e + "Right"] = function(t) {
  13682. return this.reverse()[e](t).reverse()
  13683. }
  13684. }
  13685. )),
  13686. st(["filter", "map", "takeWhile"], (function(e, t) {
  13687. var n = t + 1
  13688. , r = 1 == n || 3 == n;
  13689. Bn.prototype[e] = function(e) {
  13690. var t = this.clone();
  13691. return t.__iteratees__.push({
  13692. iteratee: Xi(e, 3),
  13693. type: n
  13694. }),
  13695. t.__filtered__ = t.__filtered__ || r,
  13696. t
  13697. }
  13698. }
  13699. )),
  13700. st(["head", "last"], (function(e, t) {
  13701. var n = "take" + (t ? "Right" : "");
  13702. Bn.prototype[e] = function() {
  13703. return this[n](1).value()[0]
  13704. }
  13705. }
  13706. )),
  13707. st(["initial", "tail"], (function(e, t) {
  13708. var n = "drop" + (t ? "" : "Right");
  13709. Bn.prototype[e] = function() {
  13710. return this.__filtered__ ? new Bn(this) : this[n](1)
  13711. }
  13712. }
  13713. )),
  13714. Bn.prototype.compact = function() {
  13715. return this.filter(Gs)
  13716. }
  13717. ,
  13718. Bn.prototype.find = function(e) {
  13719. return this.filter(e).head()
  13720. }
  13721. ,
  13722. Bn.prototype.findLast = function(e) {
  13723. return this.reverse().find(e)
  13724. }
  13725. ,
  13726. Bn.prototype.invokeMap = Fr((function(e, t) {
  13727. return "function" == typeof e ? new Bn(this) : this.map((function(n) {
  13728. return yr(n, e, t)
  13729. }
  13730. ))
  13731. }
  13732. )),
  13733. Bn.prototype.reject = function(e) {
  13734. return this.filter(ka(Xi(e)))
  13735. }
  13736. ,
  13737. Bn.prototype.slice = function(e, t) {
  13738. e = rs(e);
  13739. var n = this;
  13740. return n.__filtered__ && (e > 0 || t < 0) ? new Bn(n) : (e < 0 ? n = n.takeRight(-e) : e && (n = n.drop(e)),
  13741. void 0 !== t && (n = (t = rs(t)) < 0 ? n.dropRight(-t) : n.take(t - e)),
  13742. n)
  13743. }
  13744. ,
  13745. Bn.prototype.takeRightWhile = function(e) {
  13746. return this.reverse().takeWhile(e).reverse()
  13747. }
  13748. ,
  13749. Bn.prototype.toArray = function() {
  13750. return this.take(4294967295)
  13751. }
  13752. ,
  13753. lr(Bn.prototype, (function(e, t) {
  13754. var n = /^(?:filter|find|map|reject)|While$/.test(t)
  13755. , r = /^(?:head|last)$/.test(t)
  13756. , i = Tn[r ? "take" + ("last" == t ? "Right" : "") : t]
  13757. , o = r || /^find/.test(t);
  13758. i && (Tn.prototype[t] = function() {
  13759. var t = this.__wrapped__
  13760. , a = r ? [1] : arguments
  13761. , s = t instanceof Bn
  13762. , l = a[0]
  13763. , u = s || La(t)
  13764. , c = function(e) {
  13765. var t = i.apply(Tn, pt([e], a));
  13766. return r && d ? t[0] : t
  13767. };
  13768. u && n && "function" == typeof l && 1 != l.length && (s = u = !1);
  13769. var d = this.__chain__
  13770. , f = !!this.__actions__.length
  13771. , h = o && !d
  13772. , p = s && !f;
  13773. if (!o && u) {
  13774. t = p ? t : new Bn(this);
  13775. var g = e.apply(t, a);
  13776. return g.__actions__.push({
  13777. func: na,
  13778. args: [c],
  13779. thisArg: void 0
  13780. }),
  13781. new On(g,d)
  13782. }
  13783. return h && p ? e.apply(this, a) : (g = this.thru(c),
  13784. h ? r ? g.value()[0] : g.value() : g)
  13785. }
  13786. )
  13787. }
  13788. )),
  13789. st(["pop", "push", "shift", "sort", "splice", "unshift"], (function(e) {
  13790. var t = be[e]
  13791. , n = /^(?:push|sort|unshift)$/.test(e) ? "tap" : "thru"
  13792. , r = /^(?:pop|shift)$/.test(e);
  13793. Tn.prototype[e] = function() {
  13794. var e = arguments;
  13795. if (r && !this.__chain__) {
  13796. var i = this.value();
  13797. return t.apply(La(i) ? i : [], e)
  13798. }
  13799. return this[n]((function(n) {
  13800. return t.apply(La(n) ? n : [], e)
  13801. }
  13802. ))
  13803. }
  13804. }
  13805. )),
  13806. lr(Bn.prototype, (function(e, t) {
  13807. var n = Tn[t];
  13808. if (n) {
  13809. var r = n.name + "";
  13810. ke.call(bn, r) || (bn[r] = []),
  13811. bn[r].push({
  13812. name: t,
  13813. func: n
  13814. })
  13815. }
  13816. }
  13817. )),
  13818. bn[Ti(void 0, 2).name] = [{
  13819. name: "wrapper",
  13820. func: void 0
  13821. }],
  13822. Bn.prototype.clone = function() {
  13823. var e = new Bn(this.__wrapped__);
  13824. return e.__actions__ = vi(this.__actions__),
  13825. e.__dir__ = this.__dir__,
  13826. e.__filtered__ = this.__filtered__,
  13827. e.__iteratees__ = vi(this.__iteratees__),
  13828. e.__takeCount__ = this.__takeCount__,
  13829. e.__views__ = vi(this.__views__),
  13830. e
  13831. }
  13832. ,
  13833. Bn.prototype.reverse = function() {
  13834. if (this.__filtered__) {
  13835. var e = new Bn(this);
  13836. e.__dir__ = -1,
  13837. e.__filtered__ = !0
  13838. } else
  13839. (e = this.clone()).__dir__ *= -1;
  13840. return e
  13841. }
  13842. ,
  13843. Bn.prototype.value = function() {
  13844. var e = this.__wrapped__.value()
  13845. , t = this.__dir__
  13846. , n = La(e)
  13847. , r = t < 0
  13848. , i = n ? e.length : 0
  13849. , o = function(e, t, n) {
  13850. var r = -1
  13851. , i = n.length;
  13852. for (; ++r < i; ) {
  13853. var o = n[r]
  13854. , a = o.size;
  13855. switch (o.type) {
  13856. case "drop":
  13857. e += a;
  13858. break;
  13859. case "dropRight":
  13860. t -= a;
  13861. break;
  13862. case "take":
  13863. t = sn(t, e + a);
  13864. break;
  13865. case "takeRight":
  13866. e = an(e, t - a)
  13867. }
  13868. }
  13869. return {
  13870. start: e,
  13871. end: t
  13872. }
  13873. }(0, i, this.__views__)
  13874. , a = o.start
  13875. , s = o.end
  13876. , l = s - a
  13877. , u = r ? s : a - 1
  13878. , c = this.__iteratees__
  13879. , d = c.length
  13880. , f = 0
  13881. , h = sn(l, this.__takeCount__);
  13882. if (!n || !r && i == l && h == l)
  13883. return ni(e, this.__actions__);
  13884. var p = [];
  13885. e: for (; l-- && f < h; ) {
  13886. for (var g = -1, m = e[u += t]; ++g < d; ) {
  13887. var v = c[g]
  13888. , y = v.iteratee
  13889. , b = v.type
  13890. , _ = y(m);
  13891. if (2 == b)
  13892. m = _;
  13893. else if (!_) {
  13894. if (1 == b)
  13895. continue e;
  13896. break e
  13897. }
  13898. }
  13899. p[f++] = m
  13900. }
  13901. return p
  13902. }
  13903. ,
  13904. Tn.prototype.at = ra,
  13905. Tn.prototype.chain = function() {
  13906. return ta(this)
  13907. }
  13908. ,
  13909. Tn.prototype.commit = function() {
  13910. return new On(this.value(),this.__chain__)
  13911. }
  13912. ,
  13913. Tn.prototype.next = function() {
  13914. void 0 === this.__values__ && (this.__values__ = ts(this.value()));
  13915. var e = this.__index__ >= this.__values__.length;
  13916. return {
  13917. done: e,
  13918. value: e ? void 0 : this.__values__[this.__index__++]
  13919. }
  13920. }
  13921. ,
  13922. Tn.prototype.plant = function(e) {
  13923. for (var t, n = this; n instanceof En; ) {
  13924. var r = To(n);
  13925. r.__index__ = 0,
  13926. r.__values__ = void 0,
  13927. t ? i.__wrapped__ = r : t = r;
  13928. var i = r;
  13929. n = n.__wrapped__
  13930. }
  13931. return i.__wrapped__ = e,
  13932. t
  13933. }
  13934. ,
  13935. Tn.prototype.reverse = function() {
  13936. var e = this.__wrapped__;
  13937. if (e instanceof Bn) {
  13938. var t = e;
  13939. return this.__actions__.length && (t = new Bn(this)),
  13940. (t = t.reverse()).__actions__.push({
  13941. func: na,
  13942. args: [Ho],
  13943. thisArg: void 0
  13944. }),
  13945. new On(t,this.__chain__)
  13946. }
  13947. return this.thru(Ho)
  13948. }
  13949. ,
  13950. Tn.prototype.toJSON = Tn.prototype.valueOf = Tn.prototype.value = function() {
  13951. return ni(this.__wrapped__, this.__actions__)
  13952. }
  13953. ,
  13954. Tn.prototype.first = Tn.prototype.head,
  13955. Qe && (Tn.prototype[Qe] = function() {
  13956. return this
  13957. }
  13958. ),
  13959. Tn
  13960. }();
  13961. Ze._ = qt,
  13962. void 0 === (i = function() {
  13963. return qt
  13964. }
  13965. .call(t, n, t, r)) || (r.exports = i)
  13966. }
  13967. ).call(this)
  13968. }
  13969. ).call(this, n(20), n(116)(e))
  13970. },
  13971. 174: function(e, t, n) {
  13972. "use strict";
  13973. n.r(t),
  13974. n.d(t, "PresetZoomScales", (function() {
  13975. return r
  13976. }
  13977. ));
  13978. const r = [500, 400, 300, 200, 150, 120, 100, 80, 50, 20]
  13979. },
  13980. 175: function(e, t, n) {
  13981. "use strict";
  13982. n.d(t, "a", (function() {
  13983. return r
  13984. }
  13985. ));
  13986. const r = e=>function(e) {
  13987. for (var t, n = "", r = e.length, i = 0; i < r; i++)
  13988. t = e[i],
  13989. n += String.fromCharCode(t > 251 && t < 254 && i + 5 < r ? 1073741824 * (t - 252) + (e[++i] - 128 << 24) + (e[++i] - 128 << 18) + (e[++i] - 128 << 12) + (e[++i] - 128 << 6) + e[++i] - 128 : t > 247 && t < 252 && i + 4 < r ? (t - 248 << 24) + (e[++i] - 128 << 18) + (e[++i] - 128 << 12) + (e[++i] - 128 << 6) + e[++i] - 128 : t > 239 && t < 248 && i + 3 < r ? (t - 240 << 18) + (e[++i] - 128 << 12) + (e[++i] - 128 << 6) + e[++i] - 128 : t > 223 && t < 240 && i + 2 < r ? (t - 224 << 12) + (e[++i] - 128 << 6) + e[++i] - 128 : t > 191 && t < 224 && i + 1 < r ? (t - 192 << 6) + e[++i] - 128 : t);
  13990. return n
  13991. }(function(e, t) {
  13992. for (var n, r, i, o = e.replace(/[^A-Za-z0-9\+\/]/g, ""), a = o.length, s = t ? Math.ceil((3 * a + 1 >>> 2) / t) * t : 3 * a + 1 >>> 2, l = new Uint8Array(s), u = 0, c = 0, d = 0; d < a; d++)
  13993. if (r = 3 & d,
  13994. u |= ((i = o.charCodeAt(d)) > 64 && i < 91 ? i - 65 : i > 96 && i < 123 ? i - 71 : i > 47 && i < 58 ? i + 4 : 43 === i ? 62 : 47 === i ? 63 : 0) << 18 - 6 * r,
  13995. 3 === r || a - d == 1) {
  13996. for (n = 0; n < 3 && c < s; n++,
  13997. c++)
  13998. l[c] = u >>> (16 >>> n & 24) & 255;
  13999. u = 0
  14000. }
  14001. return l
  14002. }(e))
  14003. },
  14004. 181: function(e, t, n) {
  14005. "use strict";
  14006. n.d(t, "a", (function() {
  14007. return r
  14008. }
  14009. )),
  14010. n.d(t, "b", (function() {
  14011. return i
  14012. }
  14013. ));
  14014. var r = function() {
  14015. var e = this.$createElement
  14016. , t = this._self._c || e;
  14017. return t("div", {
  14018. staticClass: "share-map__loading position-fixed"
  14019. }, [t("div", {
  14020. staticClass: "p-3 spinner",
  14021. attrs: {
  14022. "uk-spinner": "ratio: 1.4"
  14023. }
  14024. }, [t("svg", {
  14025. attrs: {
  14026. width: "42",
  14027. height: "42",
  14028. viewBox: "0 0 30 30",
  14029. xmlns: "http://www.w3.org/2000/svg"
  14030. }
  14031. }, [t("circle", {
  14032. staticStyle: {
  14033. "stroke-width": "0.714286px"
  14034. },
  14035. attrs: {
  14036. fill: "none",
  14037. stroke: "#000",
  14038. cx: "15",
  14039. cy: "15",
  14040. r: "14"
  14041. }
  14042. })])]), this._v(" "), t("div", {
  14043. staticClass: "text-muted"
  14044. }, [this._v("\n Loading...\n ")])])
  14045. }
  14046. , i = []
  14047. },
  14048. 182: function(e, t, n) {
  14049. "use strict";
  14050. n.d(t, "a", (function() {
  14051. return r
  14052. }
  14053. )),
  14054. n.d(t, "b", (function() {
  14055. return i
  14056. }
  14057. ));
  14058. var r = function() {
  14059. var e = this
  14060. , t = e.$createElement
  14061. , n = e._self._c || t;
  14062. return n("div", [n("button", {
  14063. staticClass: "btn dropdown-toggle",
  14064. attrs: {
  14065. type: "button",
  14066. "data-toggle": "dropdown",
  14067. "aria-haspopup": "true",
  14068. "aria-expanded": "false",
  14069. "data-offset": "0, 12"
  14070. }
  14071. }, [e._v("\n " + e._s(e.zoomScale) + "%\n ")]), e._v(" "), n("div", {
  14072. staticClass: "dropdown-menu",
  14073. staticStyle: {
  14074. "min-width": "100px",
  14075. "max-height": "80vh",
  14076. overflow: "auto"
  14077. }
  14078. }, e._l(e.PresetZoomScales, (function(t) {
  14079. return n("a", {
  14080. staticClass: "dropdown-item",
  14081. attrs: {
  14082. href: "#"
  14083. },
  14084. on: {
  14085. click: function(n) {
  14086. return e.handleZoom(t)
  14087. }
  14088. }
  14089. }, [e._v("\n " + e._s(t) + " %\n ")])
  14090. }
  14091. )), 0)])
  14092. }
  14093. , i = []
  14094. },
  14095. 183: function(e, t, n) {
  14096. "use strict";
  14097. n.d(t, "a", (function() {
  14098. return r
  14099. }
  14100. )),
  14101. n.d(t, "b", (function() {
  14102. return i
  14103. }
  14104. ));
  14105. var r = function() {
  14106. var e = this
  14107. , t = e.$createElement
  14108. , n = e._self._c || t;
  14109. return n("div", {
  14110. staticClass: "sheets-bar"
  14111. }, [n("button", {
  14112. staticClass: "btn dropdown-toggle",
  14113. class: {
  14114. "dropdown-toggle": e.sheets.length > 1
  14115. },
  14116. style: e.buttonStyles,
  14117. attrs: {
  14118. type: "button",
  14119. "data-toggle": "dropdown",
  14120. "aria-haspopup": "true",
  14121. "aria-expanded": "false",
  14122. "data-offset": "0, 12"
  14123. }
  14124. }, [e._v("\n " + e._s(e.currentSheet && e.currentSheet.title) + "\n ")]), e._v(" "), n("div", {
  14125. directives: [{
  14126. name: "show",
  14127. rawName: "v-show",
  14128. value: e.sheets.length > 1,
  14129. expression: "sheets.length > 1"
  14130. }],
  14131. staticClass: "dropdown-menu"
  14132. }, e._l(e.sheets, (function(t) {
  14133. return n("a", {
  14134. staticClass: "dropdown-item",
  14135. attrs: {
  14136. href: "#"
  14137. },
  14138. on: {
  14139. click: function(n) {
  14140. return e.handleSwitchSheet(t.id)
  14141. }
  14142. }
  14143. }, [e._v("\n " + e._s(t.title) + "\n ")])
  14144. }
  14145. )), 0)])
  14146. }
  14147. , i = []
  14148. },
  14149. 184: function(e, t, n) {
  14150. (function(e) {
  14151. var r = void 0 !== e && e || "undefined" != typeof self && self || window
  14152. , i = Function.prototype.apply;
  14153. function o(e, t) {
  14154. this._id = e,
  14155. this._clearFn = t
  14156. }
  14157. t.setTimeout = function() {
  14158. return new o(i.call(setTimeout, r, arguments),clearTimeout)
  14159. }
  14160. ,
  14161. t.setInterval = function() {
  14162. return new o(i.call(setInterval, r, arguments),clearInterval)
  14163. }
  14164. ,
  14165. t.clearTimeout = t.clearInterval = function(e) {
  14166. e && e.close()
  14167. }
  14168. ,
  14169. o.prototype.unref = o.prototype.ref = function() {}
  14170. ,
  14171. o.prototype.close = function() {
  14172. this._clearFn.call(r, this._id)
  14173. }
  14174. ,
  14175. t.enroll = function(e, t) {
  14176. clearTimeout(e._idleTimeoutId),
  14177. e._idleTimeout = t
  14178. }
  14179. ,
  14180. t.unenroll = function(e) {
  14181. clearTimeout(e._idleTimeoutId),
  14182. e._idleTimeout = -1
  14183. }
  14184. ,
  14185. t._unrefActive = t.active = function(e) {
  14186. clearTimeout(e._idleTimeoutId);
  14187. var t = e._idleTimeout;
  14188. t >= 0 && (e._idleTimeoutId = setTimeout((function() {
  14189. e._onTimeout && e._onTimeout()
  14190. }
  14191. ), t))
  14192. }
  14193. ,
  14194. n(277),
  14195. t.setImmediate = "undefined" != typeof self && self.setImmediate || void 0 !== e && e.setImmediate || this && this.setImmediate,
  14196. t.clearImmediate = "undefined" != typeof self && self.clearImmediate || void 0 !== e && e.clearImmediate || this && this.clearImmediate
  14197. }
  14198. ).call(this, n(20))
  14199. },
  14200. 188: function(e, t, n) {
  14201. "use strict";
  14202. var r = n(14)
  14203. , i = n(117)
  14204. , o = n(190)
  14205. , a = n(94);
  14206. function s(e) {
  14207. var t = new o(e)
  14208. , n = i(o.prototype.request, t);
  14209. return r.extend(n, o.prototype, t),
  14210. r.extend(n, t),
  14211. n
  14212. }
  14213. var l = s(a);
  14214. l.Axios = o,
  14215. l.create = function(e) {
  14216. return s(r.merge(a, e))
  14217. }
  14218. ,
  14219. l.Cancel = n(121),
  14220. l.CancelToken = n(204),
  14221. l.isCancel = n(120),
  14222. l.all = function(e) {
  14223. return Promise.all(e)
  14224. }
  14225. ,
  14226. l.spread = n(205),
  14227. e.exports = l,
  14228. e.exports.default = l
  14229. },
  14230. 189: function(e, t) {
  14231. function n(e) {
  14232. return !!e.constructor && "function" == typeof e.constructor.isBuffer && e.constructor.isBuffer(e)
  14233. }
  14234. /*!
  14235. * Determine if an object is a Buffer
  14236. *
  14237. * @author Feross Aboukhadijeh <https://feross.org>
  14238. * @license MIT
  14239. */
  14240. e.exports = function(e) {
  14241. return null != e && (n(e) || function(e) {
  14242. return "function" == typeof e.readFloatLE && "function" == typeof e.slice && n(e.slice(0, 0))
  14243. }(e) || !!e._isBuffer)
  14244. }
  14245. },
  14246. 190: function(e, t, n) {
  14247. "use strict";
  14248. var r = n(94)
  14249. , i = n(14)
  14250. , o = n(199)
  14251. , a = n(200);
  14252. function s(e) {
  14253. this.defaults = e,
  14254. this.interceptors = {
  14255. request: new o,
  14256. response: new o
  14257. }
  14258. }
  14259. s.prototype.request = function(e) {
  14260. "string" == typeof e && (e = i.merge({
  14261. url: arguments[0]
  14262. }, arguments[1])),
  14263. (e = i.merge(r, {
  14264. method: "get"
  14265. }, this.defaults, e)).method = e.method.toLowerCase();
  14266. var t = [a, void 0]
  14267. , n = Promise.resolve(e);
  14268. for (this.interceptors.request.forEach((function(e) {
  14269. t.unshift(e.fulfilled, e.rejected)
  14270. }
  14271. )),
  14272. this.interceptors.response.forEach((function(e) {
  14273. t.push(e.fulfilled, e.rejected)
  14274. }
  14275. )); t.length; )
  14276. n = n.then(t.shift(), t.shift());
  14277. return n
  14278. }
  14279. ,
  14280. i.forEach(["delete", "get", "head", "options"], (function(e) {
  14281. s.prototype[e] = function(t, n) {
  14282. return this.request(i.merge(n || {}, {
  14283. method: e,
  14284. url: t
  14285. }))
  14286. }
  14287. }
  14288. )),
  14289. i.forEach(["post", "put", "patch"], (function(e) {
  14290. s.prototype[e] = function(t, n, r) {
  14291. return this.request(i.merge(r || {}, {
  14292. method: e,
  14293. url: t,
  14294. data: n
  14295. }))
  14296. }
  14297. }
  14298. )),
  14299. e.exports = s
  14300. },
  14301. 191: function(e, t, n) {
  14302. "use strict";
  14303. var r = n(14);
  14304. e.exports = function(e, t) {
  14305. r.forEach(e, (function(n, r) {
  14306. r !== t && r.toUpperCase() === t.toUpperCase() && (e[t] = n,
  14307. delete e[r])
  14308. }
  14309. ))
  14310. }
  14311. },
  14312. 192: function(e, t, n) {
  14313. "use strict";
  14314. var r = n(119);
  14315. e.exports = function(e, t, n) {
  14316. var i = n.config.validateStatus;
  14317. n.status && i && !i(n.status) ? t(r("Request failed with status code " + n.status, n.config, null, n.request, n)) : e(n)
  14318. }
  14319. },
  14320. 193: function(e, t, n) {
  14321. "use strict";
  14322. e.exports = function(e, t, n, r, i) {
  14323. return e.config = t,
  14324. n && (e.code = n),
  14325. e.request = r,
  14326. e.response = i,
  14327. e
  14328. }
  14329. },
  14330. 194: function(e, t, n) {
  14331. "use strict";
  14332. var r = n(14);
  14333. function i(e) {
  14334. return encodeURIComponent(e).replace(/%40/gi, "@").replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]")
  14335. }
  14336. e.exports = function(e, t, n) {
  14337. if (!t)
  14338. return e;
  14339. var o;
  14340. if (n)
  14341. o = n(t);
  14342. else if (r.isURLSearchParams(t))
  14343. o = t.toString();
  14344. else {
  14345. var a = [];
  14346. r.forEach(t, (function(e, t) {
  14347. null != e && (r.isArray(e) ? t += "[]" : e = [e],
  14348. r.forEach(e, (function(e) {
  14349. r.isDate(e) ? e = e.toISOString() : r.isObject(e) && (e = JSON.stringify(e)),
  14350. a.push(i(t) + "=" + i(e))
  14351. }
  14352. )))
  14353. }
  14354. )),
  14355. o = a.join("&")
  14356. }
  14357. return o && (e += (-1 === e.indexOf("?") ? "?" : "&") + o),
  14358. e
  14359. }
  14360. },
  14361. 195: function(e, t, n) {
  14362. "use strict";
  14363. var r = n(14)
  14364. , i = ["age", "authorization", "content-length", "content-type", "etag", "expires", "from", "host", "if-modified-since", "if-unmodified-since", "last-modified", "location", "max-forwards", "proxy-authorization", "referer", "retry-after", "user-agent"];
  14365. e.exports = function(e) {
  14366. var t, n, o, a = {};
  14367. return e ? (r.forEach(e.split("\n"), (function(e) {
  14368. if (o = e.indexOf(":"),
  14369. t = r.trim(e.substr(0, o)).toLowerCase(),
  14370. n = r.trim(e.substr(o + 1)),
  14371. t) {
  14372. if (a[t] && i.indexOf(t) >= 0)
  14373. return;
  14374. a[t] = "set-cookie" === t ? (a[t] ? a[t] : []).concat([n]) : a[t] ? a[t] + ", " + n : n
  14375. }
  14376. }
  14377. )),
  14378. a) : a
  14379. }
  14380. },
  14381. 196: function(e, t, n) {
  14382. "use strict";
  14383. var r = n(14);
  14384. e.exports = r.isStandardBrowserEnv() ? function() {
  14385. var e, t = /(msie|trident)/i.test(navigator.userAgent), n = document.createElement("a");
  14386. function i(e) {
  14387. var r = e;
  14388. return t && (n.setAttribute("href", r),
  14389. r = n.href),
  14390. n.setAttribute("href", r),
  14391. {
  14392. href: n.href,
  14393. protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
  14394. host: n.host,
  14395. search: n.search ? n.search.replace(/^\?/, "") : "",
  14396. hash: n.hash ? n.hash.replace(/^#/, "") : "",
  14397. hostname: n.hostname,
  14398. port: n.port,
  14399. pathname: "/" === n.pathname.charAt(0) ? n.pathname : "/" + n.pathname
  14400. }
  14401. }
  14402. return e = i(window.location.href),
  14403. function(t) {
  14404. var n = r.isString(t) ? i(t) : t;
  14405. return n.protocol === e.protocol && n.host === e.host
  14406. }
  14407. }() : function() {
  14408. return !0
  14409. }
  14410. },
  14411. 197: function(e, t, n) {
  14412. "use strict";
  14413. function r() {
  14414. this.message = "String contains an invalid character"
  14415. }
  14416. r.prototype = new Error,
  14417. r.prototype.code = 5,
  14418. r.prototype.name = "InvalidCharacterError",
  14419. e.exports = function(e) {
  14420. for (var t, n, i = String(e), o = "", a = 0, s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; i.charAt(0 | a) || (s = "=",
  14421. a % 1); o += s.charAt(63 & t >> 8 - a % 1 * 8)) {
  14422. if ((n = i.charCodeAt(a += 3 / 4)) > 255)
  14423. throw new r;
  14424. t = t << 8 | n
  14425. }
  14426. return o
  14427. }
  14428. },
  14429. 198: function(e, t, n) {
  14430. "use strict";
  14431. var r = n(14);
  14432. e.exports = r.isStandardBrowserEnv() ? {
  14433. write: function(e, t, n, i, o, a) {
  14434. var s = [];
  14435. s.push(e + "=" + encodeURIComponent(t)),
  14436. r.isNumber(n) && s.push("expires=" + new Date(n).toGMTString()),
  14437. r.isString(i) && s.push("path=" + i),
  14438. r.isString(o) && s.push("domain=" + o),
  14439. !0 === a && s.push("secure"),
  14440. document.cookie = s.join("; ")
  14441. },
  14442. read: function(e) {
  14443. var t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
  14444. return t ? decodeURIComponent(t[3]) : null
  14445. },
  14446. remove: function(e) {
  14447. this.write(e, "", Date.now() - 864e5)
  14448. }
  14449. } : {
  14450. write: function() {},
  14451. read: function() {
  14452. return null
  14453. },
  14454. remove: function() {}
  14455. }
  14456. },
  14457. 199: function(e, t, n) {
  14458. "use strict";
  14459. var r = n(14);
  14460. function i() {
  14461. this.handlers = []
  14462. }
  14463. i.prototype.use = function(e, t) {
  14464. return this.handlers.push({
  14465. fulfilled: e,
  14466. rejected: t
  14467. }),
  14468. this.handlers.length - 1
  14469. }
  14470. ,
  14471. i.prototype.eject = function(e) {
  14472. this.handlers[e] && (this.handlers[e] = null)
  14473. }
  14474. ,
  14475. i.prototype.forEach = function(e) {
  14476. r.forEach(this.handlers, (function(t) {
  14477. null !== t && e(t)
  14478. }
  14479. ))
  14480. }
  14481. ,
  14482. e.exports = i
  14483. },
  14484. 2: function(e, t, n) {
  14485. "use strict";
  14486. e.exports = function(e) {
  14487. var t = [];
  14488. return t.toString = function() {
  14489. return this.map((function(t) {
  14490. var n = function(e, t) {
  14491. var n = e[1] || ""
  14492. , r = e[3];
  14493. if (!r)
  14494. return n;
  14495. if (t && "function" == typeof btoa) {
  14496. var i = (a = r,
  14497. s = btoa(unescape(encodeURIComponent(JSON.stringify(a)))),
  14498. l = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),
  14499. "/*# ".concat(l, " */"))
  14500. , o = r.sources.map((function(e) {
  14501. return "/*# sourceURL=".concat(r.sourceRoot).concat(e, " */")
  14502. }
  14503. ));
  14504. return [n].concat(o).concat([i]).join("\n")
  14505. }
  14506. var a, s, l;
  14507. return [n].join("\n")
  14508. }(t, e);
  14509. return t[2] ? "@media ".concat(t[2], "{").concat(n, "}") : n
  14510. }
  14511. )).join("")
  14512. }
  14513. ,
  14514. t.i = function(e, n) {
  14515. "string" == typeof e && (e = [[null, e, ""]]);
  14516. for (var r = {}, i = 0; i < this.length; i++) {
  14517. var o = this[i][0];
  14518. null != o && (r[o] = !0)
  14519. }
  14520. for (var a = 0; a < e.length; a++) {
  14521. var s = e[a];
  14522. null != s[0] && r[s[0]] || (n && !s[2] ? s[2] = n : n && (s[2] = "(".concat(s[2], ") and (").concat(n, ")")),
  14523. t.push(s))
  14524. }
  14525. }
  14526. ,
  14527. t
  14528. }
  14529. },
  14530. 20: function(e, t) {
  14531. var n;
  14532. n = function() {
  14533. return this
  14534. }();
  14535. try {
  14536. n = n || new Function("return this")()
  14537. } catch (e) {
  14538. "object" == typeof window && (n = window)
  14539. }
  14540. e.exports = n
  14541. },
  14542. 200: function(e, t, n) {
  14543. "use strict";
  14544. var r = n(14)
  14545. , i = n(201)
  14546. , o = n(120)
  14547. , a = n(94)
  14548. , s = n(202)
  14549. , l = n(203);
  14550. function u(e) {
  14551. e.cancelToken && e.cancelToken.throwIfRequested()
  14552. }
  14553. e.exports = function(e) {
  14554. return u(e),
  14555. e.baseURL && !s(e.url) && (e.url = l(e.baseURL, e.url)),
  14556. e.headers = e.headers || {},
  14557. e.data = i(e.data, e.headers, e.transformRequest),
  14558. e.headers = r.merge(e.headers.common || {}, e.headers[e.method] || {}, e.headers || {}),
  14559. r.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (function(t) {
  14560. delete e.headers[t]
  14561. }
  14562. )),
  14563. (e.adapter || a.adapter)(e).then((function(t) {
  14564. return u(e),
  14565. t.data = i(t.data, t.headers, e.transformResponse),
  14566. t
  14567. }
  14568. ), (function(t) {
  14569. return o(t) || (u(e),
  14570. t && t.response && (t.response.data = i(t.response.data, t.response.headers, e.transformResponse))),
  14571. Promise.reject(t)
  14572. }
  14573. ))
  14574. }
  14575. },
  14576. 201: function(e, t, n) {
  14577. "use strict";
  14578. var r = n(14);
  14579. e.exports = function(e, t, n) {
  14580. return r.forEach(n, (function(n) {
  14581. e = n(e, t)
  14582. }
  14583. )),
  14584. e
  14585. }
  14586. },
  14587. 202: function(e, t, n) {
  14588. "use strict";
  14589. e.exports = function(e) {
  14590. return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)
  14591. }
  14592. },
  14593. 203: function(e, t, n) {
  14594. "use strict";
  14595. e.exports = function(e, t) {
  14596. return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : e
  14597. }
  14598. },
  14599. 204: function(e, t, n) {
  14600. "use strict";
  14601. var r = n(121);
  14602. function i(e) {
  14603. if ("function" != typeof e)
  14604. throw new TypeError("executor must be a function.");
  14605. var t;
  14606. this.promise = new Promise((function(e) {
  14607. t = e
  14608. }
  14609. ));
  14610. var n = this;
  14611. e((function(e) {
  14612. n.reason || (n.reason = new r(e),
  14613. t(n.reason))
  14614. }
  14615. ))
  14616. }
  14617. i.prototype.throwIfRequested = function() {
  14618. if (this.reason)
  14619. throw this.reason
  14620. }
  14621. ,
  14622. i.source = function() {
  14623. var e;
  14624. return {
  14625. token: new i((function(t) {
  14626. e = t
  14627. }
  14628. )),
  14629. cancel: e
  14630. }
  14631. }
  14632. ,
  14633. e.exports = i
  14634. },
  14635. 205: function(e, t, n) {
  14636. "use strict";
  14637. e.exports = function(e) {
  14638. return function(t) {
  14639. return e.apply(null, t)
  14640. }
  14641. }
  14642. },
  14643. 216: function(e, t, n) {
  14644. var r = n(309);
  14645. "string" == typeof r && (r = [[e.i, r, ""]]),
  14646. r.locals && (e.exports = r.locals);
  14647. (0,
  14648. n(3).default)("5c03a8fc", r, !0, {})
  14649. },
  14650. 217: function(e, t, n) {
  14651. var r = n(311);
  14652. "string" == typeof r && (r = [[e.i, r, ""]]),
  14653. r.locals && (e.exports = r.locals);
  14654. (0,
  14655. n(3).default)("6e1ff704", r, !0, {})
  14656. },
  14657. 218: function(e, t, n) {
  14658. var r = n(313);
  14659. "string" == typeof r && (r = [[e.i, r, ""]]),
  14660. r.locals && (e.exports = r.locals);
  14661. (0,
  14662. n(3).default)("696520d7", r, !0, {})
  14663. },
  14664. 219: function(e, t, n) {
  14665. var r = n(315);
  14666. "string" == typeof r && (r = [[e.i, r, ""]]),
  14667. r.locals && (e.exports = r.locals);
  14668. (0,
  14669. n(3).default)("e5c90d10", r, !0, {})
  14670. },
  14671. 220: function(e, t, n) {
  14672. var r = n(317);
  14673. "string" == typeof r && (r = [[e.i, r, ""]]),
  14674. r.locals && (e.exports = r.locals);
  14675. (0,
  14676. n(3).default)("6f31f93c", r, !0, {})
  14677. },
  14678. 221: function(e, t, n) {
  14679. var r = n(319);
  14680. "string" == typeof r && (r = [[e.i, r, ""]]),
  14681. r.locals && (e.exports = r.locals);
  14682. (0,
  14683. n(3).default)("3136a8f2", r, !0, {})
  14684. },
  14685. 222: function(e, t, n) {
  14686. var r = n(321);
  14687. "string" == typeof r && (r = [[e.i, r, ""]]),
  14688. r.locals && (e.exports = r.locals);
  14689. (0,
  14690. n(3).default)("6b8b3692", r, !0, {})
  14691. },
  14692. 223: function(e, t, n) {
  14693. var r = n(323);
  14694. "string" == typeof r && (r = [[e.i, r, ""]]),
  14695. r.locals && (e.exports = r.locals);
  14696. (0,
  14697. n(3).default)("0c5a7b5c", r, !0, {})
  14698. },
  14699. 224: function(e, t, n) {
  14700. var r = n(329);
  14701. "string" == typeof r && (r = [[e.i, r, ""]]),
  14702. r.locals && (e.exports = r.locals);
  14703. (0,
  14704. n(3).default)("09c0e74f", r, !0, {})
  14705. },
  14706. 225: function(e, t, n) {
  14707. var r = n(331);
  14708. "string" == typeof r && (r = [[e.i, r, ""]]),
  14709. r.locals && (e.exports = r.locals);
  14710. (0,
  14711. n(3).default)("e3196ad2", r, !0, {})
  14712. },
  14713. 226: function(e, t, n) {
  14714. "use strict";
  14715. var r = n(181)
  14716. , i = n(132)
  14717. , o = (n(308),
  14718. n(0))
  14719. , a = Object(o.a)(i.default, r.a, r.b, !1, null, "41ebd106", null);
  14720. t.default = a.exports
  14721. },
  14722. 227: function(e, t, n) {
  14723. "use strict";
  14724. var r = n(182)
  14725. , i = n(134)
  14726. , o = (n(310),
  14727. n(0))
  14728. , a = Object(o.a)(i.default, r.a, r.b, !1, null, "700a78a7", null);
  14729. t.default = a.exports
  14730. },
  14731. 228: function(e, t, n) {
  14732. "use strict";
  14733. var r = n(183)
  14734. , i = n(136)
  14735. , o = (n(312),
  14736. n(0))
  14737. , a = Object(o.a)(i.default, r.a, r.b, !1, null, "61c0885c", null);
  14738. t.default = a.exports
  14739. },
  14740. 229: function(e, t, n) {
  14741. "use strict";
  14742. n.d(t, "a", (function() {
  14743. return i
  14744. }
  14745. ));
  14746. var r = n(1);
  14747. const i = e=>{
  14748. const {store: t} = e;
  14749. return {
  14750. isAppearanceDarkMode: Object(r.computed)(()=>{
  14751. const e = t.workbook.state.value.currentSheetBackgroundColor;
  14752. let n = 255
  14753. , r = 255
  14754. , i = 255;
  14755. if (e && e.startsWith("rgb")) {
  14756. const t = /rgba?\((\d+),(\d+),(\d+),(\d+)/.exec(e);
  14757. if (!t)
  14758. return;
  14759. n = parseInt(t[1]),
  14760. i = parseInt(t[2]),
  14761. r = parseInt(t[3])
  14762. }
  14763. if (e && e.startsWith("#")) {
  14764. const t = function(e) {
  14765. const t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);
  14766. return t ? {
  14767. r: parseInt(t[1], 16),
  14768. g: parseInt(t[2], 16),
  14769. b: parseInt(t[3], 16)
  14770. } : null
  14771. }(e);
  14772. if (!t)
  14773. return;
  14774. n = t.r,
  14775. i = t.g,
  14776. r = t.b
  14777. }
  14778. return n < 85 && i < 85 && r < 85
  14779. }
  14780. )
  14781. }
  14782. }
  14783. },
  14784. 23: function(e, t, n) {
  14785. "use strict";
  14786. n.r(t),
  14787. n.d(t, "nonReactive", (function() {
  14788. return a
  14789. }
  14790. )),
  14791. n.d(t, "downloadFromRemoteAddress", (function() {
  14792. return s
  14793. }
  14794. )),
  14795. n.d(t, "isSupportFullScreen", (function() {
  14796. return l
  14797. }
  14798. )),
  14799. n.d(t, "requestFullScreen", (function() {
  14800. return u
  14801. }
  14802. )),
  14803. n.d(t, "fullScreenElement", (function() {
  14804. return c
  14805. }
  14806. )),
  14807. n.d(t, "exitFullScreen", (function() {
  14808. return d
  14809. }
  14810. )),
  14811. n.d(t, "isFullScreen", (function() {
  14812. return f
  14813. }
  14814. )),
  14815. n.d(t, "onFullScreenChanged", (function() {
  14816. return h
  14817. }
  14818. )),
  14819. n.d(t, "download", (function() {
  14820. return p
  14821. }
  14822. ));
  14823. var r = n(4)
  14824. , i = n(144)
  14825. , o = n.n(i);
  14826. function a(e) {
  14827. return Object.defineProperty({}, "value", {
  14828. value: e,
  14829. writable: !0,
  14830. enumerable: !0,
  14831. configurable: !1
  14832. })
  14833. }
  14834. const s = (e,t,n)=>Object(r.a)(void 0, void 0, void 0, (function*() {
  14835. const r = new URL(e)
  14836. , i = null === r.searchParams.get("no-cache")
  14837. , a = [r.origin + r.pathname, r.searchParams.get("version") || ""].filter(Boolean).join("@")
  14838. , s = yield n.getSharedMap(a);
  14839. if (s && i)
  14840. return {
  14841. data: s,
  14842. cacheKey: a
  14843. };
  14844. if (!e)
  14845. return;
  14846. const l = yield o.a.get(e, {
  14847. responseType: "arraybuffer",
  14848. headers: Object.assign({}, t)
  14849. });
  14850. return l && l.status >= 200 && l.status < 300 ? (i && (yield n.setSharedMap(a, l.data)),
  14851. {
  14852. data: l.data,
  14853. cacheKey: a
  14854. }) : void 0
  14855. }
  14856. ));
  14857. function l() {
  14858. return ["fullscreenElement", "webkitFullscreenElement", "mozFullScreenElement", "msFullscreenElement"].some(e=>e in document)
  14859. }
  14860. function u(e) {
  14861. return e || (e = document.documentElement),
  14862. e.requestFullscreen ? e.requestFullscreen() : e.mozRequestFullScreen ? e.mozRequestFullScreen() : e.webkitRequestFullscreen ? e.webkitRequestFullscreen() : e.msRequestFullscreen ? e.msRequestFullscreen() : void 0
  14863. }
  14864. function c() {
  14865. return document.fullscreenElement || document.webkitFullscreenElement || document.mozFullScreenElement || document.msFullscreenElement
  14866. }
  14867. function d() {
  14868. document.exitFullscreen ? document.exitFullscreen() : document.webkitExitFullscreen ? document.webkitExitFullscreen() : document.mozCancelFullScreen ? document.mozCancelFullScreen() : document.msExitFullscreen && document.msExitFullscreen()
  14869. }
  14870. function f() {
  14871. return document.fullscreenElement && null !== document.fullscreenElement || document.webkitFullscreenElement && null !== document.webkitFullscreenElement || document.mozFullScreenElement && null !== document.mozFullScreenElement || document.msFullscreenElement && null !== document.msFullscreenElement
  14872. }
  14873. function h(e) {
  14874. return document.addEventListener("webkitfullscreenchange", e, !1),
  14875. document.addEventListener("mozfullscreenchange", e, !1),
  14876. document.addEventListener("fullscreenchange", e, !1),
  14877. document.addEventListener("MSFullscreenChange", e, !1),
  14878. ()=>{
  14879. document.removeEventListener("webkitfullscreenchange", e, !1),
  14880. document.removeEventListener("mozfullscreenchange", e, !1),
  14881. document.removeEventListener("fullscreenchange", e, !1),
  14882. document.removeEventListener("MSFullscreenChange", e, !1)
  14883. }
  14884. }
  14885. function p(e, t) {
  14886. const n = e instanceof Blob ? e : new Blob([e]);
  14887. if (navigator.msSaveBlob)
  14888. navigator.msSaveBlob(n, t);
  14889. else {
  14890. const e = document.createElement("a");
  14891. if (void 0 !== e.download) {
  14892. const r = URL.createObjectURL(n);
  14893. e.setAttribute("href", r),
  14894. e.setAttribute("download", t),
  14895. e.style.visibility = "hidden",
  14896. e.style.position = "fixed",
  14897. e.style.top = "-100%",
  14898. document.body.appendChild(e),
  14899. e.click(),
  14900. document.body.removeChild(e)
  14901. }
  14902. }
  14903. }
  14904. },
  14905. 230: function(e) {
  14906. e.exports = JSON.parse('[{"id":"Business","items":[{"name":"cash"},{"name":"briefcase"},{"name":"calculator"},{"name":"discuss"},{"name":"coffee"},{"name":"contact"},{"name":"clock"},{"name":"envelope"},{"name":"file_search"},{"name":"file"},{"name":"presentation_mindmaps"},{"name":"mailbox"},{"name":"newpaper"},{"name":"notebook"},{"name":"paper_with_words"},{"name":"printer"},{"name":"todolist"},{"name":"file_encrypt"},{"name":"memo"},{"name":"resume"},{"name":"imgae"},{"name":"magnifier"},{"name":"target"},{"name":"coin_dollar"},{"name":"microphone"},{"name":"work_card"},{"name":"approve"},{"name":"stamp"},{"name":"video_meeting"},{"name":"meeting"},{"name":"support"},{"name":"team"},{"name":"phone_call"},{"name":"email"},{"name":"chart_up"},{"name":"chart_down"},{"name":"calendar"},{"name":"winner"},{"name":"faq"},{"name":"account"},{"name":"infomation"},{"name":"question"},{"name":"trash"},{"name":"global"}]},{"id":"Education","items":[{"name":"science"},{"name":"law"},{"name":"law1"},{"name":"pendulum"},{"name":"blackboard"},{"name":"book"},{"name":"biology"},{"name":"graduate_hat"},{"name":"flag"},{"name":"badge"},{"name":"hourglass"},{"name":"paper_boat"},{"name":"reading_note"},{"name":"bag"},{"name":"telescope"},{"name":"dividers"},{"name":"beakerflask"},{"name":"filter"},{"name":"fill_color"},{"name":"scissors"},{"name":"sketch"},{"name":"semicircle_ruler"},{"name":"ruler"},{"name":"triangle_ruler"},{"name":"pen"},{"name":"highlighter"},{"name":"crayon"},{"name":"paintbrush"},{"name":"pencil"},{"name":"fountain_pen"},{"name":"eraser"},{"name":"colorboard"},{"name":"puzzle"},{"name":"teaching"},{"name":"translate"},{"name":"math"},{"name":"lightbulb"},{"name":"yes"},{"name":"no"},{"name":"yes_and_no"}]},{"id":"Technology","items":[{"name":"service"},{"name":"service_inter"},{"name":"processor"},{"name":"window"},{"name":"code"},{"name":"terminal"},{"name":"modem"},{"name":"click"},{"name":"file_sharing"},{"name":"adjustment"},{"name":"data_transfer"},{"name":"cloud_transfer"},{"name":"cloud"},{"name":"rss"},{"name":"message"},{"name":"wireless"},{"name":"rounter"},{"name":"adaptor"},{"name":"internet"},{"name":"sdcard"},{"name":"save"},{"name":"ssd"},{"name":"sim"},{"name":"mobile"},{"name":"laptop"},{"name":"display_screen"},{"name":"pad"},{"name":"device"},{"name":"mouse"},{"name":"keyboard"},{"name":"visual_reality"},{"name":"smart_watch"},{"name":"headphone"},{"name":"online_support"},{"name":"earphone"},{"name":"louder"},{"name":"radio"},{"name":"cd"},{"name":"music_player"},{"name":"polaroid"},{"name":"projector"},{"name":"pc"},{"name":"action_camera"},{"name":"video_camera"},{"name":"cctv_camera"},{"name":"old_video_camera"},{"name":"clapperboard"},{"name":"game"},{"name":"game1"},{"name":"telephone"},{"name":"lens"},{"name":"television"},{"name":"tv"},{"name":"battery"},{"name":"battery1"},{"name":"gauge"}]},{"id":"Mood","items":[{"name":"smile_through_tears"},{"name":"awkard"},{"name":"cool"},{"name":"worried"},{"name":"like"},{"name":"shy"},{"name":"fall_ill"},{"name":"laugh"},{"name":"smile"},{"name":"sad"},{"name":"kiss"},{"name":"rolling_eyes"},{"name":"rolling_on_the_floor_laughing"},{"name":"thinking"},{"name":"weary"},{"name":"boring"},{"name":"angry"},{"name":"embarrass"},{"name":"o"},{"name":"ooooo"},{"name":"speechless"},{"name":"piss_off"},{"name":"pleased"},{"name":"boom"},{"name":"red_heard"},{"name":"blue_heard"},{"name":"purple_heard"},{"name":"brown_heard"},{"name":"two_heards"},{"name":"one_hundred"},{"name":"pointing_right"},{"name":"fold_hand"},{"name":"look"}]},{"id":"Travel","items":[{"name":"big_ben"},{"name":"statue_of_liberty"},{"name":"great_wall"},{"name":"eiffel_tower"},{"name":"opera_house"},{"name":"rome"},{"name":"motel"},{"name":"enterprise"},{"name":"store"},{"name":"school"},{"name":"building"},{"name":"museum"},{"name":"bank"},{"name":"park"},{"name":"lighthouse"},{"name":"oil_station"},{"name":"bridge"},{"name":"tent"},{"name":"mountain"},{"name":"desert"},{"name":"volcano"},{"name":"forest"},{"name":"beach"},{"name":"map"},{"name":"compass"},{"name":"hotair_ballon"},{"name":"plane"},{"name":"steamship"},{"name":"bus"},{"name":"taxi"},{"name":"jeep"},{"name":"emergency_car"},{"name":"delivery"},{"name":"camper"},{"name":"tractor"},{"name":"uavs"},{"name":"helicopter"},{"name":"tank"},{"name":"cablecar"},{"name":"subway"},{"name":"scooter"},{"name":"segway"},{"name":"scooter1"},{"name":"passport"},{"name":"id_card"},{"name":"parking"},{"name":"turn_sign"},{"name":"traffic_light"},{"name":"parking1"},{"name":"barrier"},{"name":"traffic_cone"},{"name":"credit"},{"name":"luggage"},{"name":"ticket"},{"name":"wallet"},{"name":"umbralla"},{"name":"soap"},{"name":"toothbrush"},{"name":"adaptor1"},{"name":"torch"},{"name":"sign"},{"name":"takeoff"},{"name":"camera"}]},{"id":"Holiday","items":[{"name":"magic"},{"name":"magic_band"},{"name":"ballon"},{"name":"confetti"},{"name":"framecracker"},{"name":"note"},{"name":"movie_theater"},{"name":"lantern"},{"name":"snowman"},{"name":"easter_egg"},{"name":"ghost"},{"name":"gift"},{"name":"birthday_card"},{"name":"cake"},{"name":"porker"},{"name":"counter"},{"name":"sing"},{"name":"christmas_sock"},{"name":"christmas_trees"},{"name":"christmas_hats"}]},{"id":"Daily Goods","items":[{"name":"washing_machine"},{"name":"hair_dryer"},{"name":"fans"},{"name":"fridge"},{"name":"microwave"},{"name":"desk"},{"name":"cabinet"},{"name":"chair"},{"name":"sofa"},{"name":"bed"},{"name":"shelf"},{"name":"bathtube"},{"name":"frame"},{"name":"pan"},{"name":"fork"},{"name":"ladder"},{"name":"besom"},{"name":"trash1"},{"name":"plastic_bag"},{"name":"weight"},{"name":"brush"},{"name":"alarm"},{"name":"lock"},{"name":"key"},{"name":"shirts"},{"name":"tshirts"},{"name":"vest"},{"name":"dress"},{"name":"skirts"},{"name":"pants"},{"name":"glove"},{"name":"scarf"},{"name":"fish_hat"},{"name":"cap"},{"name":"glass"},{"name":"sleeper"},{"name":"sleeper1"},{"name":"socks"},{"name":"shoes"},{"name":"high_heel_shoe"},{"name":"watch"},{"name":"cosmetics"},{"name":"perfume"},{"name":"scissor"},{"name":"lipstick"},{"name":"powder_puff"},{"name":"razor"},{"name":"comb"},{"name":"suncream"},{"name":"cosmetics1"},{"name":"cream"},{"name":"mask"}]},{"id":"Animal","items":[{"name":"bird"},{"name":"ladybug"},{"name":"butterfly"},{"name":"cat"},{"name":"dog"},{"name":"lion"},{"name":"monkey"},{"name":"cow"},{"name":"sheep"},{"name":"pig"},{"name":"horse"},{"name":"camelo"},{"name":"hatching_chicken"},{"name":"chicken"},{"name":"goose"},{"name":"seagull"},{"name":"snake"},{"name":"bat"},{"name":"bee"},{"name":"dolphin"},{"name":"shark"},{"name":"turtle"},{"name":"octpus"},{"name":"fish"}]},{"id":"Weather","items":[{"name":"cloud1"},{"name":"dust_storms"},{"name":"fog"},{"name":"tornado"},{"name":"thunder_and_cloud"},{"name":"moon"},{"name":"raining"},{"name":"snow"},{"name":"sun_and_cloud"},{"name":"snow1"},{"name":"bolt.cloud"},{"name":"humidity"},{"name":"templature_down"},{"name":"templature_up"},{"name":"templature.cold"},{"name":"templature.hot"},{"name":"wind"},{"name":"sun"},{"name":"thunder"},{"name":"moon1"},{"name":"sunrise"},{"name":"sunset"}]},{"id":"Sport","items":[{"name":"barbell"},{"name":"muscle"},{"name":"basketball"},{"name":"football"},{"name":"american_football"},{"name":"golf"},{"name":"badminton"},{"name":"volleyball"},{"name":"baseball"},{"name":"pingpong"},{"name":"tennis"},{"name":"skateboard"},{"name":"hiking"},{"name":"running"},{"name":"swimming"},{"name":"swimming_pool"},{"name":"stopwatch"}]},{"id":"Food & Drink","items":[{"name":"apple"},{"name":"cheery"},{"name":"grape"},{"name":"lemon"},{"name":"watermelon"},{"name":"orange"},{"name":"banana"},{"name":"tomato"},{"name":"pineapple"},{"name":"pear"},{"name":"mango"},{"name":"avocado"},{"name":"kiwi"},{"name":"durian"},{"name":"strawberry"},{"name":"blue_berry"},{"name":"mushroom"},{"name":"green_pepper"},{"name":"red_pepper"},{"name":"eggplant"},{"name":"broccoli"},{"name":"carrot"},{"name":"instant_noodles"},{"name":"lolipop"},{"name":"honey"},{"name":"icecream"},{"name":"dought"},{"name":"pancake"},{"name":"bread"},{"name":"croissant"},{"name":"toast"},{"name":"cheese"},{"name":"cake1"},{"name":"peanut"},{"name":"cashew_nut"},{"name":"almond"},{"name":"walnut"},{"name":"hazelnut"},{"name":"taco"},{"name":"chips"},{"name":"pizza"},{"name":"rice_roll"},{"name":"rice"},{"name":"hamburger"},{"name":"meat"},{"name":"dumpling"},{"name":"sushi"},{"name":"ramen_nooddle"},{"name":"salad"},{"name":"water"},{"name":"drink"},{"name":"tea"},{"name":"beer"},{"name":"milk"},{"name":"cocktail"}]},{"id":"Gesture","items":[{"name":"touch"},{"name":"press"},{"name":"hold_and_press"},{"name":"touch1"},{"name":"swipe_right"},{"name":"swipe_left"},{"name":"expand"},{"name":"pinch"},{"name":"two.finger"},{"name":"three.finger"},{"name":"fist"},{"name":"coorporation"},{"name":"thumbs_up"},{"name":"thumbs.down"}]},{"id":"Others","items":[{"name":"double_cube"},{"name":"package"},{"name":"shopbag"},{"name":"shield"},{"name":"flowchart"},{"name":"pacman"},{"name":"bomb"},{"name":"shopcart"},{"name":"gear"},{"name":"delivery1"},{"name":"speaker"},{"name":"rocket"},{"name":"astronaut"},{"name":"space_ship"},{"name":"ufo"},{"name":"asteroid"},{"name":"virus"},{"name":"ear"},{"name":"eye"},{"name":"warning"},{"name":"pill"},{"name":"thermometer"},{"name":"fingerprint"},{"name":"neuron"},{"name":"chain"},{"name":"male"},{"name":"female"},{"name":"clip"}]}]')
  14907. },
  14908. 231: function(e) {
  14909. e.exports = JSON.parse('[{"id":"Productivity","items":[{"name":"calendar_planning"},{"name":"computer"},{"name":"presentation"},{"name":"briefcase"},{"name":"finance"},{"name":"inspiration"},{"name":"painting"},{"name":"sketch"}]},{"id":"Travel","items":[{"name":"beach"},{"name":"forest"},{"name":"space"},{"name":"travel"},{"name":"steamship"},{"name":"plane"},{"name":"taxi"},{"name":"bus"},{"name":"hotair_ballon"},{"name":"helicopter"}]},{"id":"Holiday","items":[{"name":"happy_birthday"},{"name":"moon"},{"name":"halloween"},{"name":"christmas"},{"name":"spring_festival"},{"name":"confetti"},{"name":"magic"},{"name":"movies"},{"name":"open_air"}]},{"id":"Food & Drink","items":[{"name":"fastfood"},{"name":"meat"},{"name":"dim_sum"},{"name":"vegetable"},{"name":"fruit"},{"name":"dessert"},{"name":"coffee"},{"name":"beers"}]},{"id":"Others","items":[{"name":"social"},{"name":"clothes"},{"name":"yes"},{"name":"boom"},{"name":"wow"}]}]')
  14910. },
  14911. 232: function(e, t, n) {
  14912. "use strict";
  14913. var r = n(4)
  14914. , i = n(1);
  14915. var o = Object(i.defineComponent)({
  14916. name: "BaseOverlay",
  14917. props: {
  14918. isActivated: {
  14919. type: Boolean,
  14920. default: !1
  14921. },
  14922. backgroundColor: {
  14923. type: String,
  14924. default: "transparent"
  14925. }
  14926. },
  14927. setup(e, t) {
  14928. const n = Object(i.ref)()
  14929. , r = Object(i.ref)({
  14930. zIndex: "0"
  14931. })
  14932. , o = ()=>{
  14933. t.emit("close")
  14934. }
  14935. , a = t=>{
  14936. t.defaultPrevented || "escape" === t.key.toLowerCase() && e.escClose && (o(),
  14937. t.preventDefault())
  14938. }
  14939. ;
  14940. Object(i.onBeforeUnmount)(()=>{
  14941. s(),
  14942. l()
  14943. }
  14944. );
  14945. const s = ()=>{
  14946. n.value && (document.body.removeChild(n.value),
  14947. n.value = null)
  14948. }
  14949. , l = ()=>{
  14950. document.removeEventListener("keydown", a)
  14951. }
  14952. ;
  14953. return Object(i.watch)(()=>e.isActivated, t=>{
  14954. t ? (s(),
  14955. n.value = document.createElement("div"),
  14956. n.value.classList.add("overlay"),
  14957. n.value.style.position = "fixed",
  14958. n.value.style.width = "100vw",
  14959. n.value.style.height = "100vh",
  14960. n.value.style.left = "0",
  14961. n.value.style.top = "0",
  14962. n.value.style.zIndex = "1000",
  14963. n.value.style.backgroundColor = e.backgroundColor,
  14964. n.value.addEventListener("click", o),
  14965. r.value.zIndex = "1001",
  14966. document.body.appendChild(n.value),
  14967. document.addEventListener("keydown", a)) : (s(),
  14968. l())
  14969. }
  14970. , {
  14971. immediate: !0
  14972. }),
  14973. {
  14974. containerStyle: r,
  14975. emitClose: o
  14976. }
  14977. }
  14978. })
  14979. , a = n(0)
  14980. , s = Object(a.a)(o, (function() {
  14981. var e = this
  14982. , t = e.$createElement;
  14983. return (e._self._c || t)("div", {
  14984. staticStyle: {
  14985. position: "fixed",
  14986. left: "0",
  14987. top: "0",
  14988. "background-color": "transparent"
  14989. },
  14990. style: e.containerStyle,
  14991. on: {
  14992. keypress: function(t) {
  14993. return !t.type.indexOf("key") && e._k(t.keyCode, "esc", 27, t.key, ["Esc", "Escape"]) ? null : (t.stopPropagation(),
  14994. t.preventDefault(),
  14995. e.emitClose.apply(null, arguments))
  14996. }
  14997. }
  14998. }, [e._t("default")], 2)
  14999. }
  15000. ), [], !1, null, null, null).exports
  15001. , l = Object(i.defineComponent)({
  15002. name: "PopoverWrapper",
  15003. components: {
  15004. AppBaseOverlay: s
  15005. },
  15006. props: {
  15007. width: {
  15008. type: Number,
  15009. default: 0
  15010. },
  15011. height: {
  15012. type: Number,
  15013. default: null
  15014. },
  15015. maxHeight: {
  15016. type: Number,
  15017. default: null
  15018. },
  15019. minHeight: {
  15020. type: Number,
  15021. default: null
  15022. },
  15023. x: {
  15024. type: Number,
  15025. default: 0
  15026. },
  15027. y: {
  15028. type: Number,
  15029. default: 0
  15030. },
  15031. value: {
  15032. type: Boolean,
  15033. default: !1
  15034. }
  15035. },
  15036. setup(e, t) {
  15037. Object(i.watch)(()=>e.value, (e,t)=>Object(r.a)(this, void 0, void 0, (function*() {}
  15038. )));
  15039. return {
  15040. emitNewValue: e=>{
  15041. t.emit("input", e)
  15042. }
  15043. ,
  15044. containerStyles: Object(i.computed)(()=>{
  15045. const t = e=>"number" == typeof e ? e + "px" : "auto";
  15046. return {
  15047. left: e.x + "px",
  15048. top: e.y + "px",
  15049. "max-width": e.width || "auto",
  15050. "max-height": t(e.height ? e.height : e.maxHeight),
  15051. "min-height": t(e.height ? e.height : e.minHeight),
  15052. height: t(e.height),
  15053. width: t(e.width)
  15054. }
  15055. }
  15056. )
  15057. }
  15058. }
  15059. })
  15060. , u = (n(318),
  15061. Object(a.a)(l, (function() {
  15062. var e = this
  15063. , t = e.$createElement
  15064. , n = e._self._c || t;
  15065. return n("div", {
  15066. directives: [{
  15067. name: "show",
  15068. rawName: "v-show",
  15069. value: e.value,
  15070. expression: "value"
  15071. }]
  15072. }, [n("div", {
  15073. staticClass: "popover-arrow",
  15074. staticStyle: {
  15075. position: "fixed",
  15076. width: "0",
  15077. height: "0"
  15078. },
  15079. style: {
  15080. left: e.x + "px",
  15081. top: e.y + "px"
  15082. }
  15083. }), e._v(" "), n("app-base-overlay", {
  15084. staticClass: "popover-body position-fixed overflow-hidden",
  15085. style: e.containerStyles,
  15086. attrs: {
  15087. "is-activated": e.value
  15088. },
  15089. on: {
  15090. close: function(t) {
  15091. return e.emitNewValue(!1)
  15092. }
  15093. }
  15094. }, [n("div", {
  15095. staticClass: "h-100 w-100",
  15096. staticStyle: {
  15097. "background-color": "white"
  15098. }
  15099. }, [e._t("default")], 2)])], 1)
  15100. }
  15101. ), [], !1, null, "6c7a3c30", null).exports)
  15102. , c = n(60);
  15103. var d = Object(i.defineComponent)({
  15104. name: "AppBaseTopicLocatorPopover",
  15105. components: {
  15106. AppPopoverWrapper: u
  15107. },
  15108. props: {
  15109. topicId: {
  15110. type: String
  15111. },
  15112. value: {
  15113. type: Boolean,
  15114. required: !0
  15115. },
  15116. height: {
  15117. type: Number,
  15118. default: null
  15119. },
  15120. width: {
  15121. type: Number,
  15122. required: !0
  15123. },
  15124. paddingTop: {
  15125. type: Number,
  15126. default: 0
  15127. },
  15128. paddingLeft: {
  15129. type: Number,
  15130. default: 0
  15131. },
  15132. paddingBottom: {
  15133. type: Number,
  15134. default: 0
  15135. },
  15136. paddingRight: {
  15137. type: Number,
  15138. default: 0
  15139. }
  15140. },
  15141. setup(e, t) {
  15142. const n = Object(i.inject)("store")
  15143. , o = Object(i.ref)({
  15144. x: 0,
  15145. y: 0
  15146. })
  15147. , a = Object(i.ref)(!1)
  15148. , s = Object(i.computed)(()=>({
  15149. top: e.paddingTop + 16,
  15150. left: e.paddingLeft + 16,
  15151. right: e.paddingRight + 16,
  15152. bottom: e.paddingBottom + 16
  15153. }))
  15154. , l = ()=>Object(r.a)(this, void 0, void 0, (function*() {
  15155. if (!e.topicId)
  15156. return;
  15157. const t = n.workbook.getters.currentSheetViewportBounds.value
  15158. , r = n.workbook.getters.getTopicBounds(e.topicId);
  15159. if (!r || !t)
  15160. return;
  15161. const i = {
  15162. x: r.x - (s.value.left + s.value.right),
  15163. y: r.y - (s.value.top + s.value.bottom),
  15164. width: r.width,
  15165. height: r.height
  15166. }
  15167. , o = {
  15168. width: e.width,
  15169. height: e.height
  15170. }
  15171. , a = {
  15172. width: t.width - (s.value.left + s.value.right),
  15173. height: t.height - (s.value.top + s.value.bottom)
  15174. }
  15175. , {isOverflowInViewportTop: l, isOverflowInViewportBottom: u, isOverflowInViewportLeft: c, isOverflowInViewportRight: d, overflowTop: f, overflowBottom: h, overflowRight: p, overflowLeft: g} = ((e,t,n,r=0)=>{
  15176. const i = t.height
  15177. , o = t.width
  15178. , a = Math.abs(Math.min(0, (e.width - o) / 2))
  15179. , s = Math.min(0, e.y - e.height)
  15180. , l = Math.min(0, n.height - (e.height + r + e.y + i))
  15181. , u = Math.min(0, e.x - a)
  15182. , c = Math.min(0, n.width - (e.x + e.width + a));
  15183. return {
  15184. overflowTop: s,
  15185. overflowBottom: l,
  15186. overflowRight: c,
  15187. overflowLeft: u,
  15188. isOverflowInViewportTop: s < 0,
  15189. isOverflowInViewportBottom: l < 0,
  15190. isOverflowInViewportLeft: u < 0,
  15191. isOverflowInViewportRight: c < 0
  15192. }
  15193. }
  15194. )(i, o, a, 0);
  15195. let m = 0
  15196. , v = 0;
  15197. l && (v = -(f + s.value.top)),
  15198. u && (v = h + (s.value.top + s.value.bottom)),
  15199. c && (m = -(g + s.value.left)),
  15200. d && (m = p - (s.value.left + s.value.right)),
  15201. (l || u || c || d) && (v || m) && (yield new Promise(e=>{
  15202. n.workbook.actions.moveViewport({
  15203. deltaY: v,
  15204. deltaX: m,
  15205. option: {
  15206. animate: !1,
  15207. finishToRun: e
  15208. }
  15209. })
  15210. }
  15211. ))
  15212. }
  15213. ))
  15214. , u = ()=>Object(r.a)(this, void 0, void 0, (function*() {
  15215. if (!e.topicId)
  15216. return;
  15217. yield l();
  15218. const t = n.workbook.getters.getTopicBounds(e.topicId);
  15219. t ? (o.value = {
  15220. x: t.x + t.width / 2,
  15221. y: t.y + t.height + 0
  15222. },
  15223. yield c.default.nextTick()) : a.value = !1
  15224. }
  15225. ))
  15226. , d = e=>Object(r.a)(this, void 0, void 0, (function*() {
  15227. e ? (yield u(),
  15228. a.value = !0,
  15229. t.emit("show")) : (a.value = !1,
  15230. t.emit("hide"))
  15231. }
  15232. ));
  15233. return Object(i.watch)(()=>e.value, e=>Object(r.a)(this, void 0, void 0, (function*() {
  15234. return d(e)
  15235. }
  15236. ))),
  15237. Object(i.watch)(()=>e.width || e.height, ()=>u()),
  15238. Object(i.watch)(()=>e.topicId, ()=>u()),
  15239. {
  15240. proxyExternalValue: a,
  15241. coordinate: o
  15242. }
  15243. }
  15244. })
  15245. , f = Object(a.a)(d, (function() {
  15246. var e = this
  15247. , t = e.$createElement
  15248. , n = e._self._c || t;
  15249. return n("div", [n("app-popover-wrapper", {
  15250. attrs: {
  15251. x: e.coordinate.x,
  15252. y: e.coordinate.y,
  15253. height: e.height,
  15254. width: e.width,
  15255. value: e.proxyExternalValue
  15256. },
  15257. on: {
  15258. input: function(t) {
  15259. return e.$emit("input", t)
  15260. }
  15261. }
  15262. }, [e._t("default")], 2)], 1)
  15263. }
  15264. ), [], !1, null, null, null).exports
  15265. , h = Object(i.defineComponent)({
  15266. name: "AppNotesPopover",
  15267. components: {
  15268. AppBaseTopicLocatorPopover: f
  15269. },
  15270. props: {
  15271. paddingTop: {
  15272. type: Number,
  15273. default: 0
  15274. },
  15275. paddingLeft: {
  15276. type: Number,
  15277. default: 0
  15278. },
  15279. paddingBottom: {
  15280. type: Number,
  15281. default: -100
  15282. },
  15283. paddingRight: {
  15284. type: Number,
  15285. default: 0
  15286. }
  15287. },
  15288. setup() {
  15289. const e = Object(i.inject)("store")
  15290. , t = Object(i.ref)()
  15291. , n = Object(i.ref)(!1);
  15292. Object(i.watch)(()=>e.workbook.state.value.events.click, (e,r)=>{
  15293. e.triggerId && e.triggerId !== r.triggerId && "notes" === e.currentTargetType && (t.value = e.currentTargetId,
  15294. n.value = !0)
  15295. }
  15296. );
  15297. const r = Object(i.computed)(()=>{
  15298. if (!t.value)
  15299. return "";
  15300. const n = e.workbook.getters.getNotesById(t.value);
  15301. return n.realHTML && n.realHTML.content || n.plain && n.plain.content || ""
  15302. }
  15303. );
  15304. Object(i.watch)(()=>r.value, ()=>{
  15305. if (!o.value || !o.value.contentWindow)
  15306. return;
  15307. const e = document.createElement("div");
  15308. e.innerHTML = r.value,
  15309. e.querySelectorAll("script").forEach(e=>{
  15310. var t;
  15311. return null === (t = e.parentNode) || void 0 === t ? void 0 : t.removeChild(e)
  15312. }
  15313. );
  15314. let t = "<style> img { width: 100%; height: auto } body, html{ width: 100%; height: 100%; box-sizing: border-box; margin: 0; padding: 0 }; html { overflow: auto } </style>";
  15315. t += e.innerHTML,
  15316. o.value.contentWindow.document.body.innerHTML = t
  15317. }
  15318. ),
  15319. Object(i.onMounted)(()=>{
  15320. o.value && o.value.contentWindow && o.value.contentWindow.document.body.addEventListener("click", e=>{
  15321. var t;
  15322. if ("a" === (null === (t = e.target) || void 0 === t ? void 0 : t.tagName.toLowerCase())) {
  15323. e.preventDefault();
  15324. const t = e.target.getAttribute("href");
  15325. t && window.open(t)
  15326. }
  15327. }
  15328. )
  15329. }
  15330. );
  15331. const o = Object(i.ref)();
  15332. return {
  15333. iframe: o,
  15334. isNotesPopoverOpened: n,
  15335. notesContent: r,
  15336. currentClickedNoteTopicId: t,
  15337. handleVisibleChange: e=>{
  15338. n.value = e,
  15339. e || (t.value = "")
  15340. }
  15341. }
  15342. }
  15343. })
  15344. , p = Object(a.a)(h, (function() {
  15345. var e = this
  15346. , t = e.$createElement
  15347. , n = e._self._c || t;
  15348. return n("div", {
  15349. staticClass: "note-editor"
  15350. }, [n("app-base-topic-locator-popover", {
  15351. attrs: {
  15352. "topic-id": e.currentClickedNoteTopicId,
  15353. value: e.isNotesPopoverOpened,
  15354. "padding-top": e.paddingTop,
  15355. "padding-left": e.paddingLeft,
  15356. "padding-right": e.paddingRight,
  15357. "padding-bottom": e.paddingBottom,
  15358. height: 280,
  15359. width: 400
  15360. },
  15361. on: {
  15362. input: e.handleVisibleChange
  15363. }
  15364. }, [n("div", {
  15365. staticClass: "py-3 position-relative d-flex flex-column w-100 h-100"
  15366. }, [n("h6", {
  15367. staticClass: "px-3 w-100 text-white text-muted"
  15368. }, [e._v("\n " + e._s("Note") + "\n ")]), e._v(" "), n("div", {
  15369. staticClass: "pl-3 w-100 h-100"
  15370. }, [n("iframe", {
  15371. ref: "iframe",
  15372. staticClass: "w-100 h-100 border-0"
  15373. })])])])], 1)
  15374. }
  15375. ), [], !1, null, null, null).exports
  15376. , g = Object(i.defineComponent)({
  15377. name: "AppInformationPopover",
  15378. components: {
  15379. AppBaseTopicLocatorPopover: f
  15380. },
  15381. props: {
  15382. paddingTop: {
  15383. type: Number,
  15384. default: 0
  15385. },
  15386. paddingLeft: {
  15387. type: Number,
  15388. default: 0
  15389. },
  15390. paddingBottom: {
  15391. type: Number,
  15392. default: 0
  15393. },
  15394. paddingRight: {
  15395. type: Number,
  15396. default: 0
  15397. }
  15398. },
  15399. setup() {
  15400. const e = Object(i.inject)("store")
  15401. , t = Object(i.ref)(!1)
  15402. , n = Object(i.ref)();
  15403. Object(i.watch)(()=>e.workbook.state.value.events.click, (e,r)=>{
  15404. e.triggerId && e.triggerId !== r.triggerId && "info-more" === e.currentTargetType && (n.value = e.currentTargetId,
  15405. t.value = !0)
  15406. }
  15407. );
  15408. const o = Object(i.ref)(0)
  15409. , a = Object(i.ref)({
  15410. note: null,
  15411. hyperlink: "",
  15412. comments: "",
  15413. audioNote: "",
  15414. taskInfo: "",
  15415. topicLink: "",
  15416. attachment: ""
  15417. })
  15418. , s = ()=>Object(r.a)(this, void 0, void 0, (function*() {
  15419. const e = Object.values(a.value).filter(e=>Boolean(e)).length;
  15420. o.value = 24 + 50 * e
  15421. }
  15422. ));
  15423. return Object(i.watch)(()=>t.value, i=>Object(r.a)(this, void 0, void 0, (function*() {
  15424. i && (()=>{
  15425. if (!t.value || !n.value)
  15426. return;
  15427. a.value = {
  15428. note: null,
  15429. hyperlink: "",
  15430. comments: "",
  15431. audioNote: "",
  15432. taskInfo: "",
  15433. topicLink: "",
  15434. attachment: ""
  15435. },
  15436. a.value.note = e.workbook.getters.getNotesById(n.value);
  15437. e.workbook.getters.getAudioNoteById(n.value) && (a.value.audioNote = e.workbook.getters.getTopicTitleById(n.value) || "");
  15438. const r = e.workbook.getters.getExtensionById(n.value);
  15439. Array.isArray(r) && (a.value.taskInfo = r.find(e=>"org.xmind.ui.taskInfo" === e.provider));
  15440. const i = e.workbook.getters.getHrefById(n.value);
  15441. if (i)
  15442. if (i.startsWith("xmind:#")) {
  15443. const t = i.replace("xmind:#", "")
  15444. , n = e.workbook.getters.getTopicTitleById(t) || ""
  15445. , r = e.workbook.getters.getSheetTitleByTopicId(t) || "";
  15446. a.value.topicLink = `${n}(${r})`
  15447. } else
  15448. i.startsWith("xap:") ? a.value.attachment = e.workbook.getters.getTopicTitleById(n.value) || i.split("/").pop() || "attachment" : (i.startsWith("file:") || i.startsWith("http:") || i.startsWith("https:") || console.warn("unknown url schema", i),
  15449. a.value.hyperlink = i)
  15450. }
  15451. )()
  15452. }
  15453. ))),
  15454. Object(i.watch)(()=>a.value, ()=>s()),
  15455. {
  15456. isInformationPopoverOpened: t,
  15457. current: a,
  15458. popoverHeight: o,
  15459. handleVisibleChange: e=>{
  15460. t.value = Boolean(e),
  15461. s()
  15462. }
  15463. ,
  15464. handleOpenNotePopover: ()=>{
  15465. e.workbook.state.value.events.click = {
  15466. triggerId: window.Snowbrush.utils.UUID(),
  15467. currentTargetId: n.value || "",
  15468. clientX: 0,
  15469. clientY: 0,
  15470. currentTargetType: "notes"
  15471. },
  15472. t.value = !1
  15473. }
  15474. ,
  15475. currentTargetId: n,
  15476. handleOpenHref: ()=>{
  15477. n.value && (e.workbook.actions.openHref(e.workbook.getters.getHrefById(n.value)),
  15478. t.value = !1)
  15479. }
  15480. }
  15481. }
  15482. })
  15483. , m = (n(320),
  15484. Object(a.a)(g, (function() {
  15485. var e = this
  15486. , t = e.$createElement
  15487. , n = e._self._c || t;
  15488. return n("div", {
  15489. staticClass: "information-more"
  15490. }, [n("app-base-topic-locator-popover", {
  15491. attrs: {
  15492. "topic-id": e.currentTargetId,
  15493. value: e.isInformationPopoverOpened,
  15494. "padding-top": e.paddingTop,
  15495. "padding-left": e.paddingLeft,
  15496. "information.vue": "",
  15497. "padding-right": e.paddingRight,
  15498. "padding-bottom": e.paddingBottom,
  15499. width: 280,
  15500. height: e.popoverHeight
  15501. },
  15502. on: {
  15503. input: e.handleVisibleChange
  15504. }
  15505. }, [n("div", {
  15506. staticClass: "d-flex flex-column py-2"
  15507. }, [e.current.note ? n("button", {
  15508. staticClass: "btn btn-light text-left align-items-center information-more-item px-2 py-2 d-flex justify-content-center",
  15509. on: {
  15510. click: e.handleOpenNotePopover
  15511. }
  15512. }, [n("img", {
  15513. staticClass: "information-more-item__icon ml-2 uk-background-norepeat flex-no-shrink",
  15514. attrs: {
  15515. draggable: "false",
  15516. src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+aWNfbm90ZXM8L3RpdGxlPiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4gICAgPGRlZnM+PC9kZWZzPiAgICA8ZyBpZD0iUGFnZS0xIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJpbmZvcm1hdGlvbi1jYXJkLeaWsOWinmNvbW1lbnRz5Y+K5YW25LuWIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTMyLjAwMDAwMCwgLTQyLjAwMDAwMCkiPiAgICAgICAgICAgIDxnIGlkPSJHcm91cC0zOCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTMyLjAwMDAwMCwgNDIuMDAwMDAwKSI+ICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMTMiIGZpbGw9IiNGNEQ2MDciIGN4PSIxMCIgY3k9IjEwIiByPSIxMCI+PC9jaXJjbGU+ICAgICAgICAgICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGUtMjAtQ29weS0yIiBmaWxsPSIjMjIyNjJBIiB4PSI2IiB5PSI2IiB3aWR0aD0iOCIgaGVpZ2h0PSIxIj48L3JlY3Q+ICAgICAgICAgICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGUtMjMiIGZpbGw9IiMyMjI2MkEiIHg9IjYiIHk9IjEwIiB3aWR0aD0iOCIgaGVpZ2h0PSIxIj48L3JlY3Q+ICAgICAgICAgICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGUtMjMtQ29weSIgZmlsbD0iIzIyMjYyQSIgeD0iNiIgeT0iMTQiIHdpZHRoPSI0IiBoZWlnaHQ9IjEiPjwvcmVjdD4gICAgICAgICAgICA8L2c+ICAgICAgICA8L2c+ICAgIDwvZz48L3N2Zz4="
  15517. }
  15518. }), e._v(" "), n("span", {
  15519. staticClass: "information-more-item__title ml-2 uk-text-left overflow-hidden w-100"
  15520. }, [e._v("\n " + e._s(e.current.note.plain.content) + "\n ")])]) : e._e(), e._v(" "), e.current.hyperlink ? n("button", {
  15521. staticClass: "btn btn-light text-left align-items-center information-more-item px-2 py-2 d-flex justify-content-center",
  15522. on: {
  15523. click: e.handleOpenHref
  15524. }
  15525. }, [n("img", {
  15526. staticClass: "information-more-item__icon ml-2 uk-preserve uk-background-norepeat flex-no-shrink",
  15527. attrs: {
  15528. draggable: "false",
  15529. src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+aWNfaHlwZXJsaW5rPC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPjwvZGVmcz4gICAgPGcgaWQ9IlBhZ2UtMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+ICAgICAgICA8ZyBpZD0iaW5mb3JtYXRpb24tY2FyZC3mlrDlop5jb21tZW50c+WPiuWFtuS7liIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTE2MC4wMDAwMDAsIC00Mi4wMDAwMDApIj4gICAgICAgICAgICA8ZyBpZD0iR3JvdXAtMzktQ29weS0yIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNjAuMDAwMDAwLCA0Mi4wMDAwMDApIj4gICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbC0xMyIgZmlsbD0iIzBCQUNGRCIgY3g9IjEwIiBjeT0iMTAiIHI9IjEwIj48L2NpcmNsZT4gICAgICAgICAgICAgICAgPGcgaWQ9Ikdyb3VwLTQxIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMC4wNzEwNjgsIDEwLjA3MTA2OCkgcm90YXRlKC0zMTUuMDAwMDAwKSB0cmFuc2xhdGUoLTEwLjA3MTA2OCwgLTEwLjA3MTA2OCkgdHJhbnNsYXRlKDYuNTcxMDY4LCAzLjU3MTA2OCkiPiAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTAsNS41IEwwLDMuNSBDMCwxLjU2NzAwMzM4IDEuNTY3MDAzMzgsMCAzLjUsMCBDNS40MzI5OTY2MiwwIDcsMS41NjcwMDMzOCA3LDMuNSBDNywzLjk0MDk3MjIyIDcsNC42MDc2Mzg4OSA3LDUuNSIgaWQ9IlJlY3RhbmdsZS0yMCIgc3Ryb2tlPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLTMxIiBmaWxsPSIjRkZGRkZGIiB4PSIyLjUiIHk9IjQuNSIgd2lkdGg9IjIiIGhlaWdodD0iNCIgcng9IjEiPjwvcmVjdD4gICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0wLDEzIEwwLDExIEMwLDkuMDY3MDAzMzggMS41NjcwMDMzOCw3LjUgMy41LDcuNSBDNS40MzI5OTY2Miw3LjUgNyw5LjA2NzAwMzM4IDcsMTEgQzcsMTEuNDQwOTcyMiA3LDEyLjEwNzYzODkgNywxMyIgaWQ9IlJlY3RhbmdsZS0yMCIgc3Ryb2tlPSIjRkZGRkZGIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzLjUwMDAwMCwgMTAuMjUwMDAwKSBzY2FsZSgxLCAtMSkgdHJhbnNsYXRlKC0zLjUwMDAwMCwgLTEwLjI1MDAwMCkgIj48L3BhdGg+ICAgICAgICAgICAgICAgIDwvZz4gICAgICAgICAgICA8L2c+ICAgICAgICA8L2c+ICAgIDwvZz48L3N2Zz4="
  15530. }
  15531. }), e._v(" "), n("span", {
  15532. staticClass: "information-more-item__title ml-2 uk-text-left overflow-hidden w-100"
  15533. }, [e._v("\n " + e._s(e.current.hyperlink) + "\n ")])]) : e._e(), e._v(" "), e.current.topicLink ? n("button", {
  15534. staticClass: "btn btn-light text-left align-items-center information-more-item px-2 py-2 d-flex justify-content-center",
  15535. on: {
  15536. click: e.handleOpenHref
  15537. }
  15538. }, [n("img", {
  15539. staticClass: "information-more-item__icon ml-2 uk-preserve uk-background-norepeat flex-no-shrink",
  15540. attrs: {
  15541. draggable: "false",
  15542. src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+aWNfaHlwZXJsaW5rPC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPjwvZGVmcz4gICAgPGcgaWQ9IlBhZ2UtMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+ICAgICAgICA8ZyBpZD0iaW5mb3JtYXRpb24tY2FyZC3mlrDlop5jb21tZW50c+WPiuWFtuS7liIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTE2MC4wMDAwMDAsIC00Mi4wMDAwMDApIj4gICAgICAgICAgICA8ZyBpZD0iR3JvdXAtMzktQ29weS0yIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNjAuMDAwMDAwLCA0Mi4wMDAwMDApIj4gICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbC0xMyIgZmlsbD0iIzBCQUNGRCIgY3g9IjEwIiBjeT0iMTAiIHI9IjEwIj48L2NpcmNsZT4gICAgICAgICAgICAgICAgPGcgaWQ9Ikdyb3VwLTQxIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMC4wNzEwNjgsIDEwLjA3MTA2OCkgcm90YXRlKC0zMTUuMDAwMDAwKSB0cmFuc2xhdGUoLTEwLjA3MTA2OCwgLTEwLjA3MTA2OCkgdHJhbnNsYXRlKDYuNTcxMDY4LCAzLjU3MTA2OCkiPiAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTAsNS41IEwwLDMuNSBDMCwxLjU2NzAwMzM4IDEuNTY3MDAzMzgsMCAzLjUsMCBDNS40MzI5OTY2MiwwIDcsMS41NjcwMDMzOCA3LDMuNSBDNywzLjk0MDk3MjIyIDcsNC42MDc2Mzg4OSA3LDUuNSIgaWQ9IlJlY3RhbmdsZS0yMCIgc3Ryb2tlPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLTMxIiBmaWxsPSIjRkZGRkZGIiB4PSIyLjUiIHk9IjQuNSIgd2lkdGg9IjIiIGhlaWdodD0iNCIgcng9IjEiPjwvcmVjdD4gICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0wLDEzIEwwLDExIEMwLDkuMDY3MDAzMzggMS41NjcwMDMzOCw3LjUgMy41LDcuNSBDNS40MzI5OTY2Miw3LjUgNyw5LjA2NzAwMzM4IDcsMTEgQzcsMTEuNDQwOTcyMiA3LDEyLjEwNzYzODkgNywxMyIgaWQ9IlJlY3RhbmdsZS0yMCIgc3Ryb2tlPSIjRkZGRkZGIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzLjUwMDAwMCwgMTAuMjUwMDAwKSBzY2FsZSgxLCAtMSkgdHJhbnNsYXRlKC0zLjUwMDAwMCwgLTEwLjI1MDAwMCkgIj48L3BhdGg+ICAgICAgICAgICAgICAgIDwvZz4gICAgICAgICAgICA8L2c+ICAgICAgICA8L2c+ICAgIDwvZz48L3N2Zz4="
  15543. }
  15544. }), e._v(" "), n("span", {
  15545. staticClass: "information-more-item__title ml-2 uk-text-left overflow-hidden w-100"
  15546. }, [e._v("\n " + e._s(e.current.topicLink) + "\n ")])]) : e._e(), e._v(" "), e.current.attachment ? n("button", {
  15547. staticClass: "btn btn-light text-left align-items-center information-more-item px-2 py-2 d-flex justify-content-center",
  15548. attrs: {
  15549. disabled: ""
  15550. },
  15551. on: {
  15552. click: e.handleOpenHref
  15553. }
  15554. }, [n("img", {
  15555. staticClass: "information-more-item__icon ml-2 uk-preserve uk-background-norepeat flex-no-shrink",
  15556. attrs: {
  15557. draggable: "false",
  15558. src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+aWNfYXR0YWNobWVudDwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImluZm9ybWF0aW9uLWNhcmQt5paw5aKeY29tbWVudHPlj4rlhbbku5YiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xODguMDAwMDAwLCAtNDIuMDAwMDAwKSI+ICAgICAgICAgICAgPGcgaWQ9Ikdyb3VwLTM5LUNvcHkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE4OC4wMDAwMDAsIDQyLjAwMDAwMCkiPiAgICAgICAgICAgICAgICA8ZyBpZD0iR3JvdXAtMzgtQ29weSI+ICAgICAgICAgICAgICAgICAgICA8ZyBpZD0iR3JvdXAtMzYtQ29weSI+ICAgICAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbC0xMyIgZmlsbD0iIzFDMTk0QyIgY3g9IjEwIiBjeT0iMTAiIHI9IjEwIj48L2NpcmNsZT4gICAgICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNNywxNiBMNyw1IEw3LDUgQzcsNC40NDc3MTUyNSA3LjQ0NzcxNTI1LDQgOCw0IEwxMyw0IEwxMyw0IEMxMy41NTIyODQ3LDQgMTQsNC40NDc3MTUyNSAxNCw1IEwxNCwxNSBMMTQsMTUgQzE0LDE1LjU1MjI4NDcgMTMuNTUyMjg0NywxNiAxMywxNiBMMTEsMTYgTDExLDE2IEMxMC40NDc3MTUzLDE2IDEwLDE1LjU1MjI4NDcgMTAsMTUgTDEwLDguMzk5NjM0NzUiIGlkPSJQYXRoLTEwLUNvcHkiIHN0cm9rZT0iI0ZGRkZGRiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMC41MDAwMDAsIDEwLjAwMDAwMCkgcm90YXRlKC0zMTUuMDAwMDAwKSB0cmFuc2xhdGUoLTEwLjUwMDAwMCwgLTEwLjAwMDAwMCkgIj48L3BhdGg+ICAgICAgICAgICAgICAgICAgICA8L2c+ICAgICAgICAgICAgICAgIDwvZz4gICAgICAgICAgICA8L2c+ICAgICAgICA8L2c+ICAgIDwvZz48L3N2Zz4="
  15559. }
  15560. }), e._v(" "), n("span", {
  15561. staticClass: "information-more-item__title ml-2 uk-text-left overflow-hidden w-100",
  15562. attrs: {
  15563. title: e.current.attachment
  15564. }
  15565. }, [e._v("\n " + e._s(e.current.attachment) + "\n ")])]) : e._e(), e._v(" "), e.current.audioNote ? n("button", {
  15566. staticClass: "btn btn-light text-left align-items-center information-more-item px-2 py-2 d-flex justify-content-center",
  15567. attrs: {
  15568. disabled: ""
  15569. }
  15570. }, [n("img", {
  15571. staticClass: "information-more-item__icon ml-2 uk-preserve uk-background-norepeat flex-no-shrink",
  15572. attrs: {
  15573. draggable: "false",
  15574. src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+aWNfYXR0YWNobWVudDwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImluZm9ybWF0aW9uLWNhcmQt5paw5aKeY29tbWVudHPlj4rlhbbku5YiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xODguMDAwMDAwLCAtNDIuMDAwMDAwKSI+ICAgICAgICAgICAgPGcgaWQ9Ikdyb3VwLTM5LUNvcHkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE4OC4wMDAwMDAsIDQyLjAwMDAwMCkiPiAgICAgICAgICAgICAgICA8ZyBpZD0iR3JvdXAtMzgtQ29weSI+ICAgICAgICAgICAgICAgICAgICA8ZyBpZD0iR3JvdXAtMzYtQ29weSI+ICAgICAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbC0xMyIgZmlsbD0iIzFDMTk0QyIgY3g9IjEwIiBjeT0iMTAiIHI9IjEwIj48L2NpcmNsZT4gICAgICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNNywxNiBMNyw1IEw3LDUgQzcsNC40NDc3MTUyNSA3LjQ0NzcxNTI1LDQgOCw0IEwxMyw0IEwxMyw0IEMxMy41NTIyODQ3LDQgMTQsNC40NDc3MTUyNSAxNCw1IEwxNCwxNSBMMTQsMTUgQzE0LDE1LjU1MjI4NDcgMTMuNTUyMjg0NywxNiAxMywxNiBMMTEsMTYgTDExLDE2IEMxMC40NDc3MTUzLDE2IDEwLDE1LjU1MjI4NDcgMTAsMTUgTDEwLDguMzk5NjM0NzUiIGlkPSJQYXRoLTEwLUNvcHkiIHN0cm9rZT0iI0ZGRkZGRiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMC41MDAwMDAsIDEwLjAwMDAwMCkgcm90YXRlKC0zMTUuMDAwMDAwKSB0cmFuc2xhdGUoLTEwLjUwMDAwMCwgLTEwLjAwMDAwMCkgIj48L3BhdGg+ICAgICAgICAgICAgICAgICAgICA8L2c+ICAgICAgICAgICAgICAgIDwvZz4gICAgICAgICAgICA8L2c+ICAgICAgICA8L2c+ICAgIDwvZz48L3N2Zz4="
  15575. }
  15576. }), e._v(" "), n("span", {
  15577. staticClass: "information-more-item__title ml-2 uk-text-left overflow-hidden w-100",
  15578. attrs: {
  15579. title: e.current.audioNote
  15580. }
  15581. }, [e._v("\n " + e._s(e.current.audioNote) + "\n ")])]) : e._e()])])], 1)
  15582. }
  15583. ), [], !1, null, "3759f7df", null).exports);
  15584. var v = Object(i.defineComponent)({
  15585. name: "BaseMap",
  15586. components: {
  15587. AppNotes: p,
  15588. AppInfo: m
  15589. },
  15590. props: {
  15591. fileBinaryContent: {
  15592. type: ArrayBuffer,
  15593. validator: e=>e instanceof ArrayBuffer,
  15594. required: !0
  15595. }
  15596. },
  15597. setup(e, t) {
  15598. const n = Object(i.ref)()
  15599. , o = Object(i.inject)("store");
  15600. let a, s;
  15601. return Object(i.onMounted)(()=>Object(r.a)(this, void 0, void 0, (function*() {
  15602. e.fileBinaryContent && (yield o.workbook.actions.init(n.value, e.fileBinaryContent),
  15603. a = ((e,t=document)=>{
  15604. const n = t=>{
  15605. const n = t
  15606. , r = [];
  15607. (n.ctrlKey || n.metaKey) && r.push("ctrl"),
  15608. n.altKey && r.push("alt"),
  15609. n.shiftKey && r.push("shift");
  15610. const i = {
  15611. " ": "space"
  15612. }
  15613. , o = (n.key || "").toLowerCase();
  15614. o && -1 === ["control", "shift"].indexOf(o) && r.push(i[o] || o);
  15615. const a = r.join("+");
  15616. e.filter(e=>{
  15617. if ("tester"in e)
  15618. return e.tester(r);
  15619. let t = [];
  15620. return "composition"in e && t.push(e.composition),
  15621. "compositions"in e && (t = e.compositions.slice()),
  15622. t = t.map(e=>e.replace(/ /g, "").toLowerCase()),
  15623. -1 !== t.indexOf(a)
  15624. }
  15625. ).forEach(e=>e.handler(n))
  15626. }
  15627. ;
  15628. return t.addEventListener("keydown", n),
  15629. ()=>{
  15630. t.removeEventListener("keydown", n)
  15631. }
  15632. }
  15633. )([{
  15634. composition: "Ctrl + =",
  15635. handler: e=>{
  15636. e.preventDefault(),
  15637. o.workbook.actions.zoomOut()
  15638. }
  15639. }, {
  15640. composition: "Ctrl + -",
  15641. handler: e=>{
  15642. e.preventDefault(),
  15643. o.workbook.actions.zoomIn()
  15644. }
  15645. }], n.value),
  15646. s = ((e,t)=>{
  15647. let n = 0;
  15648. const r = ()=>{
  15649. n = t.workbook.state.value.zoomScale
  15650. }
  15651. , i = e=>{
  15652. n && t.workbook.actions.zoom(e.scale * n)
  15653. }
  15654. , o = ()=>{
  15655. n = void 0
  15656. }
  15657. ;
  15658. if (e)
  15659. return e.addEventListener("gesturestart", r),
  15660. e.addEventListener("gesturechange", i),
  15661. e.addEventListener("gestureend", o),
  15662. ()=>{
  15663. e.removeEventListener("gesturestart", r),
  15664. e.removeEventListener("gesturechange", i),
  15665. e.removeEventListener("gestureend", o)
  15666. }
  15667. }
  15668. )(n.value, o))
  15669. }
  15670. ))),
  15671. Object(i.onBeforeUnmount)(()=>Object(r.a)(this, void 0, void 0, (function*() {
  15672. a && a(),
  15673. s && s(),
  15674. yield o.workbook.actions.destroy()
  15675. }
  15676. ))),
  15677. {
  15678. workbookContainer: n
  15679. }
  15680. }
  15681. })
  15682. , y = (n(322),
  15683. Object(a.a)(v, (function() {
  15684. var e = this.$createElement
  15685. , t = this._self._c || e;
  15686. return t("div", {
  15687. staticClass: "h-100 w-100 position-relative"
  15688. }, [t("div", {
  15689. ref: "workbookContainer",
  15690. staticClass: "h-100 w-100"
  15691. }), this._v(" "), t("app-notes"), this._v(" "), t("app-info")], 1)
  15692. }
  15693. ), [], !1, null, null, null));
  15694. t.a = y.exports
  15695. },
  15696. 233: function(e, t, n) {
  15697. "use strict";
  15698. var r = n(4)
  15699. , i = n(1)
  15700. , o = n(143)
  15701. , a = n(80);
  15702. class s {
  15703. constructor(e, t) {
  15704. var n;
  15705. this.store = e,
  15706. this.storage = t,
  15707. this.endingScreenBackground = "#FFFFFF",
  15708. this.topicMap = new Map,
  15709. this.parentMap = new Map,
  15710. this.endingScreenImageSnapshot = null;
  15711. const r = this.getRootTopic();
  15712. this.collectTopic(r),
  15713. this.endingScreenBackground = e.workbook.getters.getTopicViewBackgroundColor() || this.endingScreenBackground,
  15714. null === (n = this.store.workbook.getters.getMapImage(this.endingScreenBackground)) || void 0 === n || n.then(e=>{
  15715. this.endingScreenImageSnapshot = e
  15716. }
  15717. )
  15718. }
  15719. childrenOfTopic(e) {
  15720. return e && e.children ? e.children : null
  15721. }
  15722. collectTopic(e) {
  15723. return Object(r.a)(this, void 0, void 0, (function*() {
  15724. const t = e;
  15725. t.imageAttributes = Object(a.b)(e, this.storage, this.store),
  15726. this.topicMap.set(e.id, t);
  15727. const n = this.childrenOfTopic(e);
  15728. if (n) {
  15729. if (n.attached)
  15730. for (const t of n.attached)
  15731. this.collectTopic(t),
  15732. this.parentMap.set(t.id, e.id);
  15733. if (n.detached)
  15734. for (const t of n.detached)
  15735. this.collectTopic(t),
  15736. this.parentMap.set(t.id, e.id);
  15737. if (n.summary)
  15738. for (const t of n.summary)
  15739. this.collectTopic(t),
  15740. this.parentMap.set(t.id, e.id);
  15741. if (n.callout)
  15742. for (const t of n.callout)
  15743. this.collectTopic(t),
  15744. this.parentMap.set(t.id, e.id)
  15745. }
  15746. }
  15747. ))
  15748. }
  15749. getRootTopic() {
  15750. return this.store.workbook.getters.getRootTopic()
  15751. }
  15752. getStartingTopicId() {
  15753. return this.getRootTopic().id
  15754. }
  15755. getSubtopics(e) {
  15756. const t = this.childrenOfTopic(this.topicMap.get(e));
  15757. return t && t.attached ? t.attached.map(e=>e.id) : []
  15758. }
  15759. getParentTopicId(e) {
  15760. const t = this.parentMap.get(e);
  15761. return t || ""
  15762. }
  15763. getFloatingTopics() {
  15764. const e = this.getRootTopic().id
  15765. , t = this.childrenOfTopic(e);
  15766. return t && t.detached ? t.detached.map(e=>e.id) : []
  15767. }
  15768. getTopicAttributes(e) {
  15769. const t = this.store.workbook.getters.getResourceUrlPrefix();
  15770. return Object(a.e)(this.topicMap.get(e), t)
  15771. }
  15772. getEndingScreenContent() {
  15773. return Object(r.a)(this, void 0, void 0, (function*() {
  15774. return this.endingScreenImageSnapshot ? this.endingScreenImageSnapshot : yield this.store.workbook.getters.getMapImage(this.endingScreenBackground)
  15775. }
  15776. ))
  15777. }
  15778. getThemeIdFromExtension() {
  15779. const e = this.getRootTopic();
  15780. return Object(a.c)(e).preferredThemeId
  15781. }
  15782. }
  15783. class l {
  15784. constructor(e, t, n) {
  15785. this.store = e,
  15786. this.containerElement = t,
  15787. this.keyBinding = e=>{
  15788. switch (e.code) {
  15789. case "Space":
  15790. case "ArrowRight":
  15791. case "ArrowDown":
  15792. this.next();
  15793. break;
  15794. case "ArrowUp":
  15795. case "ArrowLeft":
  15796. this.prev()
  15797. }
  15798. }
  15799. ,
  15800. this.contentProvider = new s(this.store,n),
  15801. this.slideShow = new o.Slideshow(this.contentProvider),
  15802. this.view = new o.PresentationView({}),
  15803. this.view.el.style.left = "0",
  15804. this.view.el.style.top = "0",
  15805. this.view.el.style.width = "100%",
  15806. this.view.el.style.height = "100%",
  15807. t.appendChild(this.view.el),
  15808. this.slideShow.addPresenter(this.view),
  15809. this.view.update(),
  15810. this.view.connect(),
  15811. this.slideShow.present();
  15812. const r = this.getThemeId();
  15813. this.changeThemeId(r),
  15814. window.addEventListener("keyup", this.keyBinding)
  15815. }
  15816. next() {
  15817. this.slideShow.forward()
  15818. }
  15819. prev() {
  15820. this.slideShow.backward()
  15821. }
  15822. fastForward() {
  15823. this.slideShow.fastForward()
  15824. }
  15825. fastBackward() {
  15826. this.slideShow.fastBackward()
  15827. }
  15828. get animationEnabled() {
  15829. return !this.slideShow.disablesAnimations
  15830. }
  15831. set animationEnabled(e) {
  15832. this.slideShow.disablesAnimations = !e
  15833. }
  15834. getThemeId() {
  15835. return this.contentProvider.getThemeIdFromExtension() || this.slideShow.slideAppearanceId || "default"
  15836. }
  15837. changeThemeId(e) {
  15838. this.slideShow.changeSlideTheme(e)
  15839. }
  15840. unMount() {
  15841. window.removeEventListener("keyup", this.keyBinding),
  15842. this.view.disconnect(),
  15843. this.slideShow.removePresenter(this.view),
  15844. this.view.el.parentElement === this.containerElement && this.containerElement.removeChild(this.view.el)
  15845. }
  15846. }
  15847. var u = n(23)
  15848. , c = Object(i.defineComponent)({
  15849. name: "share-pitch-menu-settings",
  15850. components: {},
  15851. props: {
  15852. animation: Boolean,
  15853. themeId: String
  15854. },
  15855. setup: (e,t)=>({
  15856. toggleAnimation: ()=>t.emit("toggleAnimation"),
  15857. changeTheme: e=>t.emit("changeTheme", e)
  15858. })
  15859. })
  15860. , d = (n(328),
  15861. n(0))
  15862. , f = Object(d.a)(c, (function() {
  15863. var e = this
  15864. , t = e.$createElement
  15865. , n = e._self._c || t;
  15866. return n("div", {
  15867. staticClass: "share-pitch-menu__settings"
  15868. }, [n("button", {
  15869. staticClass: "btn btn-icon",
  15870. attrs: {
  15871. type: "button",
  15872. "data-toggle": "dropdown",
  15873. "aria-haspopup": "true",
  15874. "aria-expanded": "false",
  15875. "data-offset": "72, 18"
  15876. }
  15877. }, [n("svg", {
  15878. attrs: {
  15879. width: "24",
  15880. height: "24",
  15881. viewBox: "0 0 24 24",
  15882. fill: "none",
  15883. xmlns: "http://www.w3.org/2000/svg"
  15884. }
  15885. }, [n("path", {
  15886. attrs: {
  15887. "fill-rule": "evenodd",
  15888. "clip-rule": "evenodd",
  15889. d: "M14.4782 20.7851C14.2943 21.5214 13.6966 22 12.9333 22H11.0667C10.2943 22 9.69655 21.5214 9.52184 20.7851L9.15402 19.1744L8.90575 19.0824L7.49885 19.9567C6.85517 20.3617 6.09195 20.2513 5.55862 19.7082L4.26207 18.4197C3.71954 17.8675 3.61839 17.1127 4.02299 16.4777L4.89655 15.0695L4.81379 14.8486L3.2046 14.4712C2.47816 14.2872 2 13.6889 2 12.925V11.1118C2 10.3479 2.46897 9.74966 3.2046 9.56558L4.7954 9.17902L4.88736 8.93971L4.01379 7.54073C3.6092 6.90566 3.71034 6.15094 4.25287 5.58951L5.54943 4.30097C6.08276 3.75794 6.83678 3.6567 7.48966 4.05246L8.89655 4.91763L9.15402 4.82559L9.52184 3.20571C9.69655 2.4694 10.2943 2 11.0667 2H12.9333C13.6966 2 14.2943 2.4694 14.4782 3.20571L14.846 4.82559L15.1034 4.91763L16.5103 4.05246C17.154 3.6567 17.9172 3.75794 18.4506 4.30097L19.7379 5.58951C20.2897 6.15094 20.3816 6.90566 19.977 7.54073L19.1034 8.93971L19.1954 9.17902L20.7954 9.56558C21.531 9.74966 22 10.3479 22 11.1118V12.925C22 13.6889 21.5218 14.2872 20.7954 14.4712L19.1862 14.8486L19.0943 15.0695L19.9678 16.4777C20.3724 17.1127 20.2805 17.8675 19.7287 18.4197L18.4414 19.7082C17.8989 20.2513 17.1356 20.3617 16.492 19.9567L15.0851 19.0824L14.846 19.1744L14.4782 20.7851ZM11.3057 20.3065H12.6942C12.8506 20.3065 12.9241 20.2421 12.9517 20.104L13.5034 17.8398C14.1103 17.6926 14.6345 17.4625 15.0942 17.1772L17.0712 18.4013C17.1908 18.4749 17.3011 18.4657 17.4115 18.3553L18.377 17.3797C18.4873 17.2784 18.4873 17.1772 18.4138 17.0483L17.1908 15.0695C17.4483 14.6369 17.6965 14.0755 17.8345 13.4956L20.1057 12.9526C20.2437 12.9342 20.308 12.8514 20.308 12.6949V11.3327C20.308 11.167 20.2529 11.1026 20.1057 11.0658L17.8437 10.532C17.7057 9.91532 17.4299 9.34468 17.2092 8.93051L18.423 6.96088C18.5057 6.83203 18.5057 6.72158 18.3954 6.62034L17.4207 5.66314C17.3103 5.55269 17.2092 5.54349 17.0712 5.61712L15.1034 6.82282C14.6437 6.56512 14.1011 6.31661 13.5034 6.16935L12.9517 3.89599C12.9241 3.74873 12.8506 3.68431 12.6942 3.68431H11.3057C11.1494 3.68431 11.0666 3.75794 11.0483 3.89599L10.5057 6.16015C9.91722 6.30741 9.30113 6.56512 8.88734 6.82282L6.91952 5.61712C6.78159 5.53428 6.68044 5.55269 6.5701 5.65393L5.59538 6.61113C5.49423 6.72158 5.49423 6.83203 5.5678 6.96088L6.79078 8.93051C6.5609 9.34468 6.29423 9.91532 6.1563 10.532L3.89423 11.0658C3.74711 11.1026 3.68274 11.167 3.68274 11.3327V12.6949C3.68274 12.8514 3.7563 12.9342 3.89423 12.9526L6.1655 13.4956C6.30343 14.0755 6.54251 14.6277 6.79998 15.0695L5.57699 17.0575C5.50343 17.1772 5.50343 17.2876 5.61377 17.3889L6.57929 18.3553C6.68964 18.4657 6.79998 18.4749 6.91952 18.4013L8.90573 17.1772C9.3563 17.4625 9.91722 17.7018 10.4965 17.8398L11.0483 20.104C11.0666 20.2421 11.1494 20.3065 11.3057 20.3065ZM12.0046 15.4929C13.9172 15.4929 15.4896 13.919 15.4896 11.9954C15.4896 10.0902 13.9172 8.51634 12.0046 8.51634C10.0827 8.51634 8.50114 10.0902 8.50114 11.9954C8.50114 13.919 10.0827 15.4929 12.0046 15.4929ZM10.1012 11.9954C10.1012 13.0446 10.9563 13.9006 12.0046 13.9006C13.0253 13.9006 13.8805 13.0354 13.8805 11.9954C13.8805 10.9646 13.0253 10.1086 12.0046 10.1086C10.9655 10.1086 10.1012 10.9646 10.1012 11.9954Z",
  15890. fill: "currentcolor"
  15891. }
  15892. })])]), e._v(" "), n("div", {
  15893. staticClass: "dropdown-menu dropdown-menu-right",
  15894. on: {
  15895. click: function(e) {
  15896. return e.stopPropagation(),
  15897. function() {}
  15898. .apply(null, arguments)
  15899. }
  15900. }
  15901. }, [n("div", {
  15902. staticClass: "menu-container"
  15903. }, [n("div", {
  15904. staticClass: "menu-block"
  15905. }, [n("span", {
  15906. staticClass: "font-weight-bold dropdown-title d-block"
  15907. }, [e._v("Settings")]), e._v(" "), n("span", {
  15908. staticClass: "d-block",
  15909. staticStyle: {
  15910. "margin-bottom": "6px"
  15911. }
  15912. }, [e._v("Appearance")]), e._v(" "), n("div", {
  15913. staticClass: "d-flex"
  15914. }, [n("button", {
  15915. staticClass: "btn btn-icon",
  15916. class: {
  15917. active: "default" === e.themeId
  15918. },
  15919. attrs: {
  15920. type: "button"
  15921. },
  15922. on: {
  15923. click: function(t) {
  15924. return t.preventDefault(),
  15925. t.stopPropagation(),
  15926. e.changeTheme("default")
  15927. }
  15928. }
  15929. }, [n("svg", {
  15930. attrs: {
  15931. width: "16",
  15932. height: "16",
  15933. viewBox: "0 0 16 16",
  15934. fill: "none",
  15935. xmlns: "http://www.w3.org/2000/svg"
  15936. }
  15937. }, [n("path", {
  15938. attrs: {
  15939. "fill-rule": "evenodd",
  15940. "clip-rule": "evenodd",
  15941. d: "M1 11.2299C4.33413 11.7777 7.59894 9.87986 8.55241 6.68729C9.15077 4.68374 8.7083 2.60738 7.53235 1C8.62048 1.0465 9.71996 1.33069 10.7489 1.87536C14.299 3.75463 15.6649 8.02319 13.7997 11.4095C11.9344 14.7957 7.54441 16.0174 3.99428 14.1381C2.67826 13.4415 1.66239 12.4165 1 11.2299Z",
  15942. fill: "currentcolor"
  15943. }
  15944. })])]), e._v(" "), n("button", {
  15945. staticClass: "btn btn-icon ml-spacing-small",
  15946. class: {
  15947. active: "light" === e.themeId
  15948. },
  15949. attrs: {
  15950. type: "button"
  15951. },
  15952. on: {
  15953. click: function(t) {
  15954. return t.preventDefault(),
  15955. t.stopPropagation(),
  15956. e.changeTheme("light")
  15957. }
  15958. }
  15959. }, [n("svg", {
  15960. attrs: {
  15961. width: "16",
  15962. height: "16",
  15963. viewBox: "0 0 16 16",
  15964. fill: "none",
  15965. xmlns: "http://www.w3.org/2000/svg"
  15966. }
  15967. }, [n("path", {
  15968. attrs: {
  15969. d: "M8.79427 0.831909C8.79427 0.390081 8.4361 0.0319092 7.99427 0.0319092C7.55244 0.0319092 7.19427 0.390081 7.19427 0.831909H8.79427ZM7.19427 2.63191C7.19427 3.07374 7.55244 3.43191 7.99427 3.43191C8.4361 3.43191 8.79427 3.07374 8.79427 2.63191H7.19427ZM8.79427 13.37C8.79427 12.9282 8.4361 12.57 7.99427 12.57C7.55244 12.57 7.19427 12.9282 7.19427 13.37H8.79427ZM7.19427 15.17C7.19427 15.6118 7.55244 15.97 7.99427 15.97C8.4361 15.97 8.79427 15.6118 8.79427 15.17H7.19427ZM13.6292 3.49736C13.9417 3.18494 13.9417 2.6784 13.6292 2.36599C13.3168 2.05357 12.8103 2.05357 12.4979 2.36599L13.6292 3.49736ZM11.2251 3.63878C10.9126 3.9512 10.9126 4.45773 11.2251 4.77015C11.5375 5.08257 12.044 5.08257 12.3564 4.77015L11.2251 3.63878ZM4.76348 12.3631C5.0759 12.0507 5.0759 11.5442 4.76348 11.2317C4.45106 10.9193 3.94453 10.9193 3.63211 11.2317L4.76348 12.3631ZM2.35931 12.5045C2.04689 12.817 2.04689 13.3235 2.35931 13.6359C2.67173 13.9483 3.17826 13.9483 3.49068 13.6359L2.35931 12.5045ZM15.1632 8.80096C15.6051 8.80096 15.9632 8.44279 15.9632 8.00096C15.9632 7.55913 15.6051 7.20096 15.1632 7.20096V8.80096ZM13.3632 7.20096C12.9214 7.20096 12.5632 7.55913 12.5632 8.00096C12.5632 8.44279 12.9214 8.80096 13.3632 8.80096V7.20096ZM2.6252 8.80098C3.06702 8.80098 3.4252 8.44281 3.4252 8.00098C3.4252 7.55915 3.06702 7.20098 2.6252 7.20098V8.80098ZM0.825195 7.20098C0.383368 7.20098 0.0251953 7.55915 0.0251953 8.00098C0.0251953 8.44281 0.383368 8.80098 0.825195 8.80098V7.20098ZM12.4978 13.6359C12.8102 13.9483 13.3167 13.9483 13.6291 13.6359C13.9416 13.3235 13.9416 12.817 13.6291 12.5045L12.4978 13.6359ZM12.3564 11.2318C12.0439 10.9193 11.5374 10.9193 11.225 11.2318C10.9126 11.5442 10.9126 12.0507 11.225 12.3631L12.3564 11.2318ZM3.63209 4.77025C3.94451 5.08267 4.45104 5.08267 4.76346 4.77025C5.07588 4.45783 5.07588 3.9513 4.76346 3.63888L3.63209 4.77025ZM3.49067 2.36609C3.17825 2.05367 2.67171 2.05367 2.3593 2.36609C2.04688 2.67851 2.04688 3.18504 2.3593 3.49746L3.49067 2.36609ZM7.19427 0.831909V2.63191H8.79427V0.831909H7.19427ZM7.19427 13.37V15.17H8.79427V13.37H7.19427ZM12.4979 2.36599L11.2251 3.63878L12.3564 4.77015L13.6292 3.49736L12.4979 2.36599ZM3.63211 11.2317L2.35931 12.5045L3.49068 13.6359L4.76348 12.3631L3.63211 11.2317ZM15.1632 7.20096H13.3632V8.80096H15.1632V7.20096ZM2.6252 7.20098H0.825195V8.80098H2.6252V7.20098ZM13.6291 12.5045L12.3564 11.2318L11.225 12.3631L12.4978 13.6359L13.6291 12.5045ZM4.76346 3.63888L3.49067 2.36609L2.3593 3.49746L3.63209 4.77025L4.76346 3.63888ZM10.2001 7.99998C10.2001 9.21501 9.21516 10.2 8.00013 10.2V11.8C10.0988 11.8 11.8001 10.0987 11.8001 7.99998H10.2001ZM8.00013 10.2C6.78511 10.2 5.80013 9.21501 5.80013 7.99998H4.20013C4.20013 10.0987 5.90145 11.8 8.00013 11.8V10.2ZM5.80013 7.99998C5.80013 6.78496 6.78511 5.79998 8.00013 5.79998V4.19998C5.90145 4.19998 4.20013 5.9013 4.20013 7.99998H5.80013ZM8.00013 5.79998C9.21516 5.79998 10.2001 6.78496 10.2001 7.99998H11.8001C11.8001 5.9013 10.0988 4.19998 8.00013 4.19998V5.79998Z",
  15970. fill: "currentcolor"
  15971. }
  15972. })])])])]), e._v(" "), n("hr", {
  15973. staticStyle: {
  15974. margin: "0"
  15975. }
  15976. }), e._v(" "), n("div", {
  15977. staticClass: "menu-block"
  15978. }, [n("div", {
  15979. staticClass: "d-md-flex flex-base-line"
  15980. }, [n("input", {
  15981. attrs: {
  15982. type: "checkbox",
  15983. id: "animation-checkbox",
  15984. name: "animation"
  15985. },
  15986. domProps: {
  15987. value: e.animation,
  15988. checked: e.animation
  15989. },
  15990. on: {
  15991. input: e.toggleAnimation
  15992. }
  15993. }), e._v(" "), e._m(0)])])])])])
  15994. }
  15995. ), [function() {
  15996. var e = this.$createElement
  15997. , t = this._self._c || e;
  15998. return t("label", {
  15999. staticStyle: {
  16000. "margin-left": "4px",
  16001. transform: "translateY(-1px)"
  16002. },
  16003. attrs: {
  16004. for: "animation-checkbox"
  16005. }
  16006. }, [t("span", [this._v("Animation")])])
  16007. }
  16008. ], !1, null, "5e5182e9", null).exports
  16009. , h = Object(i.defineComponent)({
  16010. name: "PicthMode",
  16011. props: {
  16012. resourceStorage: Object
  16013. },
  16014. components: {
  16015. SharePitchMenuSettings: f
  16016. },
  16017. setup(e, t) {
  16018. const n = Object(i.getCurrentInstance)()
  16019. , o = Object(i.inject)("store")
  16020. , a = Object(i.ref)(!1)
  16021. , s = Object(i.ref)()
  16022. , c = Object(i.ref)(!1)
  16023. , d = Object(i.ref)("default");
  16024. let f;
  16025. const h = ()=>{
  16026. Object(u.isFullScreen)() || (f && f.unMount(),
  16027. a.value = !1)
  16028. }
  16029. , p = ()=>{
  16030. Object(u.exitFullScreen)(),
  16031. f && f.unMount(),
  16032. a.value = !1
  16033. }
  16034. ;
  16035. let g;
  16036. return Object(i.onMounted)(()=>Object(r.a)(this, void 0, void 0, (function*() {
  16037. Object(u.isSupportFullScreen)() && (g = Object(u.onFullScreenChanged)(h),
  16038. yield Object(u.requestFullScreen)(n.$el),
  16039. yield new Promise(e=>setTimeout(e, 500)),
  16040. Object(u.fullScreenElement)() === n.$el && (a.value = !0,
  16041. yield new Promise(e=>setTimeout(e, 200)),
  16042. s.value && (f = new l(o,s.value,e.resourceStorage),
  16043. c.value = f.animationEnabled,
  16044. d.value = f.getThemeId(),
  16045. f.slideShow.on("finish", p))))
  16046. }
  16047. ))),
  16048. Object(i.onBeforeUnmount)(()=>{
  16049. "function" == typeof g && g()
  16050. }
  16051. ),
  16052. {
  16053. isContainerReady: a,
  16054. pitchContainer: s,
  16055. themeId: d,
  16056. exitPitch: p,
  16057. next: ()=>f && f.next(),
  16058. prev: ()=>f && f.prev(),
  16059. fastForward: ()=>f && f.fastForward(),
  16060. fastBackward: ()=>f && f.fastBackward(),
  16061. animationEnabled: c,
  16062. toggleAnimation: ()=>{
  16063. f && (f.animationEnabled = !f.animationEnabled,
  16064. c.value = f.animationEnabled)
  16065. }
  16066. ,
  16067. changeTheme: e=>{
  16068. f && (f.changeThemeId(e),
  16069. d.value = e)
  16070. }
  16071. }
  16072. }
  16073. })
  16074. , p = (n(330),
  16075. Object(d.a)(h, (function() {
  16076. var e = this
  16077. , t = e.$createElement
  16078. , n = e._self._c || t;
  16079. return n("div", {
  16080. staticClass: "position-relative"
  16081. }, [n("div", {
  16082. directives: [{
  16083. name: "show",
  16084. rawName: "v-show",
  16085. value: e.isContainerReady,
  16086. expression: "isContainerReady"
  16087. }],
  16088. ref: "pitchContainer",
  16089. staticClass: "pitch-mode-container w-100 h-100"
  16090. }), e._v(" "), e.isContainerReady ? n("div", {
  16091. staticClass: "pitch-mask",
  16092. on: {
  16093. click: e.next
  16094. }
  16095. }) : e._e(), e._v(" "), e.isContainerReady ? n("div", {
  16096. staticClass: "top-right-bar d-flex",
  16097. class: {
  16098. dark: "default" === e.themeId
  16099. }
  16100. }, [n("div", {
  16101. ref: "topBarRightElement",
  16102. staticClass: "flex-middle align-items-center floating-bar d-flex",
  16103. staticStyle: {
  16104. "flex-shrink": "0"
  16105. }
  16106. }, [n("div", [n("button", {
  16107. staticClass: "btn btn-text",
  16108. attrs: {
  16109. type: "button"
  16110. },
  16111. on: {
  16112. click: e.exitPitch
  16113. }
  16114. }, [n("span", [e._v("Exit")])])]), e._v(" "), n("hr", {
  16115. staticClass: "floating-bar__vertical-separator"
  16116. }), e._v(" "), n("share-pitch-menu-settings", {
  16117. attrs: {
  16118. animation: e.animationEnabled,
  16119. themeId: e.themeId
  16120. },
  16121. on: {
  16122. toggleAnimation: e.toggleAnimation,
  16123. changeTheme: e.changeTheme
  16124. }
  16125. })], 1), e._v(" "), n("div", {
  16126. ref: "topBarRightElement",
  16127. staticClass: "flex-middle align-items-center floating-bar d-flex ml-spacing",
  16128. staticStyle: {
  16129. "flex-shrink": "0"
  16130. }
  16131. }, [n("div", [n("button", {
  16132. staticClass: "btn btn-icon",
  16133. attrs: {
  16134. type: "button"
  16135. },
  16136. on: {
  16137. click: e.fastBackward
  16138. }
  16139. }, [n("svg", {
  16140. attrs: {
  16141. width: "24",
  16142. height: "24",
  16143. viewBox: "0 0 24 24",
  16144. fill: "none",
  16145. xmlns: "http://www.w3.org/2000/svg"
  16146. }
  16147. }, [n("path", {
  16148. attrs: {
  16149. d: "M20.1674 18.7698L20.1674 18.7698L20.173 18.7729C20.5208 18.972 20.6627 19 20.7723 19C20.8739 19 20.9031 18.9694 20.9149 18.9564C20.9336 18.9358 21 18.8454 21 18.6146L21 6.3854C21 6.16097 20.9347 6.06877 20.9134 6.04514C20.8991 6.0293 20.869 6 20.7723 6C20.6627 6 20.5208 6.02796 20.173 6.22705L20.173 6.22707L20.1674 6.2302L9.81595 12.0684C9.46095 12.274 9.31975 12.3939 9.26303 12.4604C9.25734 12.4671 9.25349 12.4721 9.251 12.4756C9.2505 12.4807 9.25 12.4886 9.25 12.5C9.25 12.5136 9.2507 12.5224 9.25133 12.5276C9.25379 12.5312 9.25798 12.5368 9.26471 12.5448C9.31986 12.6098 9.45975 12.7296 9.81201 12.9294C9.81236 12.9296 9.81271 12.9298 9.81306 12.93L20.1674 18.7698Z",
  16150. stroke: "currentcolor",
  16151. "stroke-width": "2"
  16152. }
  16153. }), e._v(" "), n("path", {
  16154. attrs: {
  16155. d: "M13 20L2.68164 12.9648C2.35414 12.7415 2.35414 12.2585 2.68164 12.0352L13 5",
  16156. stroke: "currentcolor",
  16157. "stroke-width": "2",
  16158. "stroke-linecap": "round",
  16159. "stroke-linejoin": "round"
  16160. }
  16161. })])])]), e._v(" "), n("div", {
  16162. staticClass: "ml-spacing"
  16163. }, [n("button", {
  16164. staticClass: "btn btn-icon",
  16165. attrs: {
  16166. type: "button"
  16167. },
  16168. on: {
  16169. click: e.prev
  16170. }
  16171. }, [n("svg", {
  16172. attrs: {
  16173. width: "24",
  16174. height: "24",
  16175. viewBox: "0 0 24 24",
  16176. fill: "none",
  16177. xmlns: "http://www.w3.org/2000/svg"
  16178. }
  16179. }, [n("path", {
  16180. attrs: {
  16181. d: "M17.1426 18.7559L17.1426 18.7559L17.1482 18.7593C17.5045 18.9729 17.6458 19 17.75 19C17.8419 19 17.8726 18.9728 17.8933 18.9489C17.9243 18.9131 18 18.7934 18 18.5222L18 5.47777C18 5.21323 17.9253 5.09171 17.8919 5.05285C17.8685 5.02573 17.8369 5 17.75 5C17.6458 5 17.5045 5.02708 17.1482 5.24074L17.1482 5.24076L17.1426 5.24407L6.60288 11.4715C6.24274 11.69 6.09508 11.8198 6.03226 11.8969C6.01961 11.9125 6.01324 11.9227 6.01032 11.9277C6.00757 11.9326 6.00666 11.935 6.00626 11.9362C6.00583 11.9374 6.00451 11.9414 6.00316 11.9499C6.00175 11.9589 6 11.9749 6 12C6 12.0473 6.00612 12.0647 6.00682 12.0667L6.00686 12.0668L6.00689 12.0669C6.00734 12.0683 6.01135 12.0806 6.03388 12.1085C6.09524 12.1842 6.24166 12.3139 6.59905 12.5262C6.59936 12.5264 6.59967 12.5266 6.59998 12.5268L17.1426 18.7559Z",
  16182. stroke: "currentcolor",
  16183. "stroke-width": "2"
  16184. }
  16185. })])])]), e._v(" "), n("div", {
  16186. staticClass: "ml-spacing"
  16187. }, [n("button", {
  16188. staticClass: "btn btn-icon",
  16189. attrs: {
  16190. type: "button"
  16191. },
  16192. on: {
  16193. click: e.next
  16194. }
  16195. }, [n("svg", {
  16196. attrs: {
  16197. width: "24",
  16198. height: "24",
  16199. viewBox: "0 0 24 24",
  16200. fill: "none",
  16201. xmlns: "http://www.w3.org/2000/svg"
  16202. }
  16203. }, [n("path", {
  16204. attrs: {
  16205. d: "M6.85738 18.7559L6.85737 18.7559L6.85178 18.7593C6.49548 18.9729 6.35422 19 6.25 19C6.15808 19 6.1274 18.9728 6.10669 18.9489C6.07573 18.9131 6 18.7934 6 18.5222L6 5.47777C6 5.21323 6.07466 5.09171 6.10813 5.05285C6.13149 5.02573 6.16307 5 6.25 5C6.35422 5 6.49548 5.02708 6.85178 5.24074L6.85177 5.24076L6.85738 5.24407L17.3971 11.4715C17.7573 11.69 17.9049 11.8198 17.9677 11.8969C17.9804 11.9125 17.9868 11.9227 17.9897 11.9277C17.9924 11.9326 17.9933 11.935 17.9937 11.9362C17.9942 11.9374 17.9955 11.9414 17.9968 11.9499C17.9983 11.9589 18 11.9749 18 12C18 12.0473 17.9939 12.0647 17.9932 12.0667L17.9931 12.0668L17.9931 12.0669C17.9927 12.0683 17.9887 12.0806 17.9661 12.1085C17.9048 12.1842 17.7583 12.3139 17.401 12.5262C17.4006 12.5264 17.4003 12.5266 17.4 12.5268L6.85738 18.7559Z",
  16206. stroke: "currentcolor",
  16207. "stroke-width": "2"
  16208. }
  16209. })])])]), e._v(" "), n("div", {
  16210. staticClass: "ml-spacing"
  16211. }, [n("button", {
  16212. staticClass: "btn btn-icon",
  16213. attrs: {
  16214. type: "button"
  16215. },
  16216. on: {
  16217. click: e.fastForward
  16218. }
  16219. }, [n("svg", {
  16220. attrs: {
  16221. width: "24",
  16222. height: "24",
  16223. viewBox: "0 0 24 24",
  16224. fill: "none",
  16225. xmlns: "http://www.w3.org/2000/svg"
  16226. }
  16227. }, [n("path", {
  16228. attrs: {
  16229. d: "M3.83257 18.7698L3.83256 18.7698L3.82704 18.7729C3.47922 18.972 3.3373 19 3.22768 19C3.12615 19 3.0969 18.9694 3.08512 18.9564C3.06642 18.9358 3 18.8454 3 18.6146L3 6.3854C3 6.16097 3.06529 6.06877 3.08661 6.04514C3.10091 6.0293 3.13097 6 3.22768 6C3.3373 6 3.47923 6.02796 3.82704 6.22705L3.82703 6.22707L3.83257 6.2302L14.1841 12.0684C14.5391 12.274 14.6802 12.3939 14.737 12.4604C14.7427 12.4671 14.7465 12.4721 14.749 12.4756C14.7495 12.4807 14.75 12.4886 14.75 12.5C14.75 12.5136 14.7493 12.5224 14.7487 12.5276C14.7462 12.5312 14.742 12.5368 14.7353 12.5448C14.6801 12.6098 14.5403 12.7296 14.188 12.9294C14.1876 12.9296 14.1873 12.9298 14.1869 12.93L3.83257 18.7698Z",
  16230. stroke: "currentcolor",
  16231. "stroke-width": "2"
  16232. }
  16233. }), e._v(" "), n("path", {
  16234. attrs: {
  16235. d: "M11 20L21.3184 12.9648C21.6459 12.7415 21.6459 12.2585 21.3184 12.0352L11 5",
  16236. stroke: "currentcolor",
  16237. "stroke-width": "2",
  16238. "stroke-linecap": "round",
  16239. "stroke-linejoin": "round"
  16240. }
  16241. })])])])])]) : e._e()])
  16242. }
  16243. ), [], !1, null, "2012282a", null));
  16244. t.a = p.exports
  16245. },
  16246. 234: function(e, t, n) {
  16247. "use strict";
  16248. var r = n(1);
  16249. const i = (e,t=0)=>{
  16250. let n = "";
  16251. return e.querySelectorAll(":scope > li").forEach(e=>{
  16252. const r = e.querySelector(":scope > span")
  16253. , o = r && r.textContent
  16254. , a = e.querySelector(":scope > ol");
  16255. n = n + "".padStart(2 * t, " ") + o + "\n",
  16256. a && (n += i(a, t + 1))
  16257. }
  16258. ),
  16259. n
  16260. }
  16261. ;
  16262. var o = Object(r.defineComponent)({
  16263. name: "share-map-menu-operation",
  16264. components: {},
  16265. props: {
  16266. profileName: String,
  16267. fileSize: String,
  16268. username: String,
  16269. createdTime: String,
  16270. isXmindShareFile: Boolean,
  16271. isDownloadable: Boolean,
  16272. isFromAdmin: Boolean
  16273. },
  16274. setup(e, t) {
  16275. const n = navigator.userAgent.toLowerCase().includes("mobile")
  16276. , o = Object(r.computed)(()=>"https://www.xmind.app/share/" + e.username);
  16277. return {
  16278. isMenuEnable: Object(r.computed)(()=>e.isXmindShareFile || e.isDownloadable || e.isFromAdmin || !n && e.isDownloadable),
  16279. isMobile: n,
  16280. userProfilePage: o,
  16281. handleDownload: ()=>{
  16282. t.emit("download")
  16283. }
  16284. ,
  16285. handleOpenWithApp: ()=>{
  16286. t.emit("open-with-app")
  16287. }
  16288. ,
  16289. handleCopyOutline: ()=>{
  16290. !function(e) {
  16291. const t = document.createElement("textarea");
  16292. t.value = e,
  16293. document.body.appendChild(t);
  16294. if (navigator.userAgent.match(/ipad|iphone/i)) {
  16295. const e = document.createRange();
  16296. e.selectNodeContents(t);
  16297. const n = window.getSelection();
  16298. if (!n)
  16299. return;
  16300. n.removeAllRanges(),
  16301. n.addRange(e),
  16302. t.setSelectionRange(0, t.value.length)
  16303. } else
  16304. t.select();
  16305. document.execCommand("copy"),
  16306. document.body.removeChild(t)
  16307. }(i(document.querySelector("#outline > ol")))
  16308. }
  16309. }
  16310. }
  16311. })
  16312. , a = (n(316),
  16313. n(0))
  16314. , s = Object(a.a)(o, (function() {
  16315. var e = this
  16316. , t = e.$createElement
  16317. , n = e._self._c || t;
  16318. return e.isMenuEnable ? n("div", {
  16319. staticClass: "share-map-menu__operation"
  16320. }, [n("button", {
  16321. staticClass: "btn btn-icon",
  16322. attrs: {
  16323. type: "button",
  16324. "data-toggle": "dropdown",
  16325. "aria-haspopup": "true",
  16326. "aria-expanded": "false",
  16327. "data-offset": "0, 12"
  16328. }
  16329. }, [n("svg", {
  16330. attrs: {
  16331. xmlns: "http://www.w3.org/2000/svg",
  16332. width: "24",
  16333. height: "24",
  16334. viewBox: "0 0 24 24",
  16335. fill: "none"
  16336. }
  16337. }, [n("path", {
  16338. attrs: {
  16339. "fill-rule": "evenodd",
  16340. "clip-rule": "evenodd",
  16341. d: "M6 10C4.9 10 4 10.9 4 12C4 13.1 4.9 14 6 14C7.1 14 8 13.1 8 12C8 10.9 7.1 10 6 10ZM18 10C16.9 10 16 10.9 16 12C16 13.1 16.9 14 18 14C19.1 14 20 13.1 20 12C20 10.9 19.1 10 18 10ZM10 12C10 10.9 10.9 10 12 10C13.1 10 14 10.9 14 12C14 13.1 13.1 14 12 14C10.9 14 10 13.1 10 12Z",
  16342. fill: "currentcolor"
  16343. }
  16344. })])]), e._v(" "), n("div", {
  16345. staticClass: "dropdown-menu dropdown-menu-right"
  16346. }, [e.isXmindShareFile ? n("a", {
  16347. staticClass: "dropdown-item",
  16348. attrs: {
  16349. href: e.userProfilePage,
  16350. target: "_blank"
  16351. }
  16352. }, [n("span", {
  16353. staticClass: "w-100 d-inline-block",
  16354. staticStyle: {
  16355. "text-overflow": "ellipsis",
  16356. "max-width": "240px",
  16357. overflow: "hidden"
  16358. }
  16359. }, [e._v("\n Upload by\n ")]), e._v(" "), n("br"), e._v(" "), n("span", {
  16360. staticClass: "small muted flex-no-shrink"
  16361. }, [e._v("\n " + e._s(e.profileName) + " on " + e._s(e.createdTime) + "\n ")])]) : e._e(), e._v(" "), e.isDownloadable ? n("a", {
  16362. staticClass: "dropdown-item d-flex justify-content-between",
  16363. attrs: {
  16364. href: "#"
  16365. },
  16366. on: {
  16367. click: e.handleDownload
  16368. }
  16369. }, [e._v("\n Download\n "), n("span", {
  16370. staticClass: "small muted flex-no-shrink"
  16371. }, [e._v("\n " + e._s(e.fileSize) + "\n ")])]) : e._e(), e._v(" "), e.isFromAdmin ? n("a", {
  16372. staticClass: "dropdown-item",
  16373. attrs: {
  16374. href: "#"
  16375. },
  16376. on: {
  16377. click: e.handleCopyOutline
  16378. }
  16379. }, [e._v("\n Copy Outline\n ")]) : e._e(), e._v(" "), !e.isMobile && e.isDownloadable ? [n("a", {
  16380. staticClass: "dropdown-divider"
  16381. }), e._v(" "), n("a", {
  16382. staticClass: "dropdown-item",
  16383. attrs: {
  16384. href: "#"
  16385. },
  16386. on: {
  16387. click: e.handleOpenWithApp
  16388. }
  16389. }, [e._v("\n Open With App\n ")])] : e._e()], 2)]) : e._e()
  16390. }
  16391. ), [], !1, null, "3c5647e8", null);
  16392. t.a = s.exports
  16393. },
  16394. 235: function(e, t, n) {
  16395. "use strict";
  16396. var r = n(1)
  16397. , i = Object(r.defineComponent)({
  16398. name: "share-map-menu-social",
  16399. components: {},
  16400. props: {
  16401. shareEmbedWidth: Number,
  16402. shareEmbedHeight: Number,
  16403. manifests: {
  16404. type: Object,
  16405. required: !0
  16406. }
  16407. },
  16408. setup(e, t) {
  16409. var n;
  16410. const i = encodeURI(window.location.href)
  16411. , o = encodeURIComponent((null === (n = document.querySelector("title")) || void 0 === n ? void 0 : n.textContent) || "")
  16412. , a = Object(r.computed)(()=>{
  16413. const t = 750 * (e.shareEmbedHeight / e.shareEmbedWidth);
  16414. return Math.min(Math.max(422, t), 1e3)
  16415. }
  16416. );
  16417. return {
  16418. computedShareEmbedHeight: a,
  16419. handleFacebookShare: ()=>window.open("https://www.facebook.com/sharer/sharer.php?u=" + i, "Share to Facebook", "width=750, height=" + a.value),
  16420. handleTwitterShare: ()=>window.open("http://twitter.com/share?text=" + o + "&url=" + i + "&hashtags=XMind", "Share to Twitter", "width=750, height=" + a.value),
  16421. handleLinkedInShare: ()=>window.open("https://www.linkedin.com/shareArticle?mini=true&url=" + i + "&title=" + o, "Share to Linkedin", "width=750, height=" + a.value),
  16422. handleOpenShareEmbedCodeDialog: ()=>t.emit("open-share-code")
  16423. }
  16424. }
  16425. })
  16426. , o = (n(314),
  16427. n(0))
  16428. , a = Object(o.a)(i, (function() {
  16429. var e = this
  16430. , t = e.$createElement
  16431. , n = e._self._c || t;
  16432. return n("div", {
  16433. staticClass: "share-map-menu__social"
  16434. }, [[n("button", {
  16435. staticClass: "btn btn-icon",
  16436. attrs: {
  16437. type: "button",
  16438. "data-toggle": "dropdown",
  16439. "data-offset": "0, 12",
  16440. "aria-haspopup": "true",
  16441. "aria-expanded": "false"
  16442. }
  16443. }, [n("svg", {
  16444. attrs: {
  16445. xmlns: "http://www.w3.org/2000/svg",
  16446. width: "24",
  16447. height: "24",
  16448. viewBox: "0 0 24 24",
  16449. fill: "none"
  16450. }
  16451. }, [n("path", {
  16452. attrs: {
  16453. d: "M17.3333 15.5156C16.6578 15.5156 16.0533 15.7822 15.5911 16.2L9.25333 12.5111C9.29778 12.3067 9.33333 12.1022 9.33333 11.8889C9.33333 11.6756 9.29778 11.4711 9.25333 11.2667L15.52 7.61333C16 8.05778 16.6311 8.33333 17.3333 8.33333C18.8089 8.33333 20 7.14222 20 5.66667C20 4.19111 18.8089 3 17.3333 3C15.8578 3 14.6667 4.19111 14.6667 5.66667C14.6667 5.88 14.7022 6.08444 14.7467 6.28889L8.48 9.94222C8 9.49778 7.36889 9.22222 6.66667 9.22222C5.19111 9.22222 4 10.4133 4 11.8889C4 13.3644 5.19111 14.5556 6.66667 14.5556C7.36889 14.5556 8 14.28 8.48 13.8356L14.8089 17.5333C14.7644 17.72 14.7378 17.9156 14.7378 18.1111C14.7378 19.5422 15.9022 20.7067 17.3333 20.7067C18.7644 20.7067 19.9289 19.5422 19.9289 18.1111C19.9289 16.68 18.7644 15.5156 17.3333 15.5156Z",
  16454. fill: "currentcolor"
  16455. }
  16456. })])]), e._v(" "), n("div", {
  16457. staticClass: "dropdown-menu dropdown-menu-right"
  16458. }, [n("a", {
  16459. staticClass: "code dropdown-item d-flex align-items-center",
  16460. attrs: {
  16461. href: "#"
  16462. },
  16463. on: {
  16464. click: e.handleOpenShareEmbedCodeDialog
  16465. }
  16466. }, [n("svg", {
  16467. attrs: {
  16468. width: "24",
  16469. height: "24",
  16470. viewBox: "0 0 24 24",
  16471. fill: "none",
  16472. xmlns: "http://www.w3.org/2000/svg"
  16473. }
  16474. }, [n("path", {
  16475. attrs: {
  16476. d: "M8.41 7.41L7 6L1 12L7 18L8.41 16.59L3.83 12L8.41 7.41Z",
  16477. fill: "currentcolor",
  16478. stroke: "currentcolor"
  16479. }
  16480. }), e._v(" "), n("path", {
  16481. attrs: {
  16482. d: "M15.59 7.41L17 6L23 12L17 18L15.59 16.59L20.17 12L15.59 7.41Z",
  16483. fill: "currentcolor",
  16484. stroke: "currentcolor"
  16485. }
  16486. })]), e._v(" "), n("span", {}, [e._v(" Embed Code ")])]), e._v(" "), n("a", {
  16487. staticClass: "dropdown-item facebook d-flex align-items-center",
  16488. attrs: {
  16489. href: "#"
  16490. },
  16491. on: {
  16492. click: e.handleFacebookShare
  16493. }
  16494. }, [n("img", {
  16495. attrs: {
  16496. src: e.manifests.facebookIcon
  16497. }
  16498. }), e._v(" "), n("span", {}, [e._v(" Facebook ")])]), e._v(" "), n("a", {
  16499. staticClass: "dropdown-item twitter d-flex align-items-center",
  16500. attrs: {
  16501. href: "#"
  16502. },
  16503. on: {
  16504. click: e.handleTwitterShare
  16505. }
  16506. }, [n("img", {
  16507. attrs: {
  16508. src: e.manifests.twitterIcon
  16509. }
  16510. }), e._v(" "), n("span", {}, [e._v(" Twitter ")])]), e._v(" "), n("a", {
  16511. staticClass: "dropdown-item linkedin d-flex align-items-end",
  16512. attrs: {
  16513. href: "#"
  16514. },
  16515. on: {
  16516. click: e.handleLinkedInShare
  16517. }
  16518. }, [n("img", {
  16519. attrs: {
  16520. src: e.manifests.linkedinIcon
  16521. }
  16522. }), e._v(" "), n("span", {}, [e._v(" LinkedIn ")])]), e._v(" "), e._t("default")], 2)]], 2)
  16523. }
  16524. ), [], !1, null, "40b1f39d", null);
  16525. t.a = a.exports
  16526. },
  16527. 239: function(e, t, n) {
  16528. "use strict";
  16529. Object.defineProperty(t, "__esModule", {
  16530. value: !0
  16531. })
  16532. },
  16533. 240: function(e, t, n) {
  16534. "use strict";
  16535. Object.defineProperty(t, "__esModule", {
  16536. value: !0
  16537. })
  16538. },
  16539. 241: function(e, t, n) {
  16540. "use strict";
  16541. Object.defineProperty(t, "__esModule", {
  16542. value: !0
  16543. })
  16544. },
  16545. 242: function(e, t, n) {
  16546. "use strict";
  16547. Object.defineProperty(t, "__esModule", {
  16548. value: !0
  16549. })
  16550. },
  16551. 243: function(e, t, n) {
  16552. "use strict";
  16553. Object.defineProperty(t, "__esModule", {
  16554. value: !0
  16555. }),
  16556. t.computeSlideContent = t.computeTopicLevel = t.computeSlideLayout = t.getEligibleSlideLayouts = void 0;
  16557. const r = n(158)
  16558. , i = n(165)
  16559. , o = n(109);
  16560. t.getEligibleSlideLayouts = function(e, t) {
  16561. return r.getEligibleSlideLayouts(e, t)
  16562. }
  16563. ,
  16564. t.computeSlideLayout = function(e, t, n, i={}) {
  16565. return r.computeSlideLayout(e, t, n, i)
  16566. }
  16567. ,
  16568. t.computeTopicLevel = function(e, t) {
  16569. return i.computeTopicLevel(e, t)
  16570. }
  16571. ,
  16572. t.computeSlideContent = function(e, t) {
  16573. return o.computeSlideContent(e, t)
  16574. }
  16575. },
  16576. 244: function(e, t, n) {
  16577. "use strict";
  16578. Object.defineProperty(t, "__esModule", {
  16579. value: !0
  16580. }),
  16581. t.generateTopicSlide = t.layoutTopicSlide = t.isTopicSlideLayoutEligibleFor = void 0;
  16582. const r = n(5)
  16583. , i = n(15)
  16584. , o = n(33)
  16585. , a = n(41)
  16586. , s = n(160)
  16587. , l = n(161)
  16588. , u = n(163)
  16589. , c = n(35)
  16590. , d = n(36)
  16591. , f = n(164)
  16592. , h = n(44)
  16593. , p = n(32)
  16594. , g = "topic-slide";
  16595. t.isTopicSlideLayoutEligibleFor = function(e) {
  16596. return "topic" === e
  16597. }
  16598. ,
  16599. t.layoutTopicSlide = function(e, t, n={}) {
  16600. var m, v, y, b, _, w, S;
  16601. const {topic: x, headerTopic: k, calloutTopic: I} = t
  16602. , {id: C} = x
  16603. , M = null !== (m = null == n ? void 0 : n.dimension) && void 0 !== m ? m : p.defaultDimension
  16604. , T = null !== (v = null == n ? void 0 : n.appearance) && void 0 !== v ? v : i.defaultAppearance;
  16605. i.initializeSlideStyle(e, M, T, {
  16606. layout: g
  16607. });
  16608. const A = i.calcLength(M.hSlidePadding, e)
  16609. , E = i.calcLength(M.vSlidePadding, e)
  16610. , O = Math.round(i.calcLength(M.topicSlideTitleFontSizeLarge, e))
  16611. , B = Math.round(i.calcLength(M.topicSlideTitleFontSizeMedium, e))
  16612. , L = Math.round(i.calcLength(M.topicSlideTitleFontSizeSmall, e))
  16613. , P = i.calcLength(M.hPaddingSmall, e)
  16614. , R = O
  16615. , z = B
  16616. , j = Math.round(.8 * O)
  16617. , F = B
  16618. , D = B
  16619. , N = L
  16620. , U = i.calcLength(M.topicSlideLabelFontSize, e)
  16621. , W = i.calcLength(M.topicSlideLabelMinWidth, e)
  16622. , H = i.calcLength(M.hPaddingSmall, e)
  16623. , V = i.calcLength(M.hPaddingSmall, e)
  16624. , $ = i.calcLength(M.vPaddingXSmall, e)
  16625. , G = i.calcLength(M.vPaddingXSmall, e)
  16626. , Z = i.calcLength(M.topicSlideCalloutFontSize, e)
  16627. , q = i.calcLength(M.topicSlideNoteFontSize, e)
  16628. , Y = i.calcLength(M.vPaddingXXSmall, e)
  16629. , X = i.calcLength(M.vPaddingXXSmall, e)
  16630. , J = i.calcLength(M.vPaddingLarge, e)
  16631. , Q = i.calcLength(M.vPaddingLarge, e)
  16632. , K = i.calcLength(M.topicSlideTitleScrollFaderHeight, e)
  16633. , ee = e.width - A - A
  16634. , te = {
  16635. left: A,
  16636. top: E,
  16637. right: A,
  16638. bottom: E
  16639. }
  16640. , ne = null !== (y = null == I ? void 0 : I.title) && void 0 !== y ? y : ""
  16641. , re = ne ? s.computeCalloutTextBox(e, T, g, C, ne, {
  16642. maxWidth: ee,
  16643. fontSize: Z
  16644. }) : null
  16645. , ie = (null !== (b = x.labels) && void 0 !== b ? b : []).map((t,n)=>l.computeLabelGroup(e, T, g, C, t, n, {
  16646. maxWidth: ee,
  16647. minWidth: W,
  16648. fontSize: U,
  16649. leftPadding: H,
  16650. rightPadding: V
  16651. }))
  16652. , oe = null !== (w = null === (_ = x.note) || void 0 === _ ? void 0 : _.plainText) && void 0 !== w ? w : ""
  16653. , ae = oe ? u.computeNoteTextBox(e, T, g, C, oe, {
  16654. maxWidth: ee,
  16655. fontSize: q
  16656. }) : null
  16657. , se = d.computeTopicTitle(x)
  16658. , le = null !== (S = x.markers) && void 0 !== S ? S : []
  16659. , ue = le.slice(0, M.maxMarkerCount)
  16660. , ce = !re && ie.length <= 0 && !ae ? e.height - E - E : null
  16661. , de = f.searchForBestTopicSlideContent((function(t) {
  16662. const n = c.computeTopicTitleGroup(e, T, g, C, se, ue, {
  16663. maxWidth: ee,
  16664. fontSize: t,
  16665. markerRightMargin: P,
  16666. textRoles: ["title"]
  16667. });
  16668. let r;
  16669. n.textMeasurement.lineCount > 1 ? (n.textBox.textAlignment = "leading",
  16670. r = "leading") : r = "center";
  16671. const i = ie.length > 0 ? l.computeLabelListGroupBox(e, T, g, C, ie.map(({groupBox: e})=>e), {
  16672. maxWidth: ee,
  16673. labelSpacing: $,
  16674. lineSpacing: G,
  16675. alignment: r
  16676. }) : null;
  16677. return f.computeTopicSlideContentGroup(e, T, g, C, {
  16678. titleGroup: n,
  16679. calloutTextBox: re,
  16680. labelListGroupBox: i,
  16681. noteTextBox: ae
  16682. }, {
  16683. maxWidth: e.width,
  16684. maxHeight: e.height,
  16685. paddings: te,
  16686. contentAlignment: r,
  16687. spacingBetweenCalloutAndTitle: Y,
  16688. spacingBetweenTitleAndLabelList: X,
  16689. spacingBetweenTitleAndNote: J,
  16690. spacingBetweenLabelListAndNote: Q,
  16691. scrollFaderSize: K
  16692. })
  16693. }
  16694. ), (function(e) {
  16695. return e.titleGroup.textMeasurement.lineCount
  16696. }
  16697. ), (function(e) {
  16698. return e.groupBox.contentHeight
  16699. }
  16700. ), {
  16701. maxHeight: e.height,
  16702. compactMaxHeight: ce,
  16703. singleLineTitleMaxFontSize: R,
  16704. singleLineTitleMinFontSize: z,
  16705. doubleLineTitleMaxFontSize: j,
  16706. doubleLineTitleMinFontSize: F,
  16707. multilineTitleMaxFontSize: D,
  16708. multilineTitleMinFontSize: N
  16709. })
  16710. , {groupBox: fe} = de;
  16711. fe.bounds.x = (e.width - fe.bounds.width) / 2,
  16712. fe.bounds.y = (e.height - fe.bounds.height) / 2,
  16713. e.boxes.push(fe),
  16714. k && a.addHeaderBoxes(e, k, M, T, g),
  16715. o.computeAbsoluteBounds(e.boxes),
  16716. r.addSlideContentFeatures(e, ...h.computeContentFeaturesForTitleGroup(de.titleGroup, C, se, le)),
  16717. de.calloutTextBox && r.addSlideContentFeatures(e, {
  16718. kind: "callout",
  16719. topicId: C,
  16720. integrity: "full"
  16721. }),
  16722. de.labelListGroupBox && r.addSlideContentFeatures(e, {
  16723. kind: "labels",
  16724. topicId: C,
  16725. integrity: "full"
  16726. }),
  16727. de.noteTextBox && r.addSlideContentFeatures(e, {
  16728. kind: "note",
  16729. topicId: C,
  16730. integrity: "full"
  16731. })
  16732. }
  16733. ,
  16734. t.generateTopicSlide = function(e) {
  16735. const t = Object.assign({}, e)
  16736. , n = r.assertBox(r.getBoxById(t.boxes, r.contentGroupOfTopic(t.topicId), "group"));
  16737. return n.contentHeight > n.bounds.height && (t.multistepBoxes = [n.id],
  16738. r.addSlideLeavingAnimations(t, [{
  16739. durationMultiplier: 1,
  16740. easing: "easeInOutCubic",
  16741. on: "preTransition",
  16742. effect: "mutate",
  16743. finalState: {
  16744. boxes: [{
  16745. id: n.id,
  16746. scrollOffset: 0
  16747. }]
  16748. }
  16749. }])),
  16750. function(e) {
  16751. "centralTopic" == e.topicLevel || "floatingTopic" == e.topicLevel ? function(e) {
  16752. const t = [...r.assertBox(r.getBoxById(e.boxes, r.contentGroupOfTopic(e.topicId), "group")).children].sort((e,t)=>e.bounds.y - t.bounds.y);
  16753. let n = 0;
  16754. t.forEach(t=>{
  16755. var i;
  16756. r.setBoxEnteringState(e, {
  16757. id: t.id,
  16758. transform: [{
  16759. translate: {
  16760. x: 0,
  16761. y: t.bounds.height / 5
  16762. }
  16763. }],
  16764. opacity: 0
  16765. }),
  16766. r.addSlideEnteringAnimations(e, [{
  16767. durationMultiplier: 1.75,
  16768. delayMultiplier: n,
  16769. easing: "easeInOutCubic",
  16770. on: "postTransition",
  16771. effect: "mutate",
  16772. finalState: {
  16773. boxes: [{
  16774. id: t.id,
  16775. transform: [{
  16776. translate: {
  16777. x: 0,
  16778. y: 0
  16779. }
  16780. }]
  16781. }]
  16782. }
  16783. }]),
  16784. r.addSlideEnteringAnimations(e, [{
  16785. durationMultiplier: 2.5,
  16786. delayMultiplier: n,
  16787. easing: "easeInOutCubic",
  16788. on: "postTransition",
  16789. effect: "mutate",
  16790. finalState: {
  16791. boxes: [{
  16792. id: t.id,
  16793. opacity: null !== (i = t.opacity) && void 0 !== i ? i : 1
  16794. }]
  16795. }
  16796. }]),
  16797. n += .75
  16798. }
  16799. )
  16800. }(e) : function(e) {
  16801. const t = r.titleOfTopic(e.topicId)
  16802. , n = r.assertBox(r.getBoxById(e.boxes, r.contentGroupOfTopic(e.topicId), "group"));
  16803. n.children.forEach(n=>{
  16804. var i;
  16805. n.id !== t && (r.setBoxEnteringState(e, {
  16806. id: n.id,
  16807. opacity: 0
  16808. }),
  16809. r.addSlideEnteringAnimations(e, [{
  16810. on: "postTransition",
  16811. durationMultiplier: 1,
  16812. delayMultiplier: .75,
  16813. effect: "mutate",
  16814. easing: "easeOutQuad",
  16815. finalState: {
  16816. boxes: [{
  16817. id: n.id,
  16818. opacity: null !== (i = n.opacity) && void 0 !== i ? i : 1
  16819. }]
  16820. }
  16821. }]))
  16822. }
  16823. )
  16824. }(e)
  16825. }(t),
  16826. t
  16827. }
  16828. },
  16829. 245: function(e, t, n) {
  16830. "use strict";
  16831. Object.defineProperty(t, "__esModule", {
  16832. value: !0
  16833. }),
  16834. t.defaultAppearance = void 0,
  16835. t.defaultAppearance = {
  16836. slideStyles: {
  16837. slide: {
  16838. opacity: 1,
  16839. backgroundColor: "#000",
  16840. backgroundOpacity: 1,
  16841. foregroundColor: "white",
  16842. hitRegionFillColor: "rgba(196, 196, 196, 0.12)",
  16843. hitRegionActiveFillColor: "rgba(196, 196, 196, 0.3)",
  16844. hitRegionBoxShadow: "0px 1px 21px -7px rgba(0, 0, 0, 0.25)",
  16845. hitRegionStrokeColor: "rgba(185, 185, 185, 0.1)",
  16846. hitRegionCornerRadius: 18,
  16847. hitRegionLineWidth: 1,
  16848. opacityForPendingSubtopicsUnderPresenterPerspectiveMode: .3
  16849. }
  16850. },
  16851. boxStyles: {
  16852. box: {
  16853. opacity: 1,
  16854. transform: "none"
  16855. },
  16856. "box.text": {
  16857. fontFamily: ["SF Pro Display", "-apple-system", "Helvetica Neue", "Helvetica", "Arial", "PingFang SC", "Microsoft YaHei", "sans-serif"],
  16858. fontSize: "24px",
  16859. lineHeight: "1em",
  16860. fontWeight: "normal",
  16861. fontStyle: "normal",
  16862. textColor: "#fff",
  16863. textAlignment: "leading"
  16864. },
  16865. "box.shape": {
  16866. lineWidth: 1,
  16867. lineCap: "round"
  16868. },
  16869. "box.headerLine": {
  16870. strokeColor: "#fff",
  16871. lineCap: "round"
  16872. },
  16873. "box.labelBorder": {
  16874. strokeColor: "#fff",
  16875. lineWidth: 2
  16876. },
  16877. "box.note": {
  16878. fontWeight: "normal",
  16879. opacity: .8
  16880. },
  16881. "box.callout": {
  16882. fontWeight: "normal",
  16883. fontStyle: "italic",
  16884. opacity: .6
  16885. },
  16886. "slide.layout-topic-slide box.title": {
  16887. fontWeight: "bold",
  16888. textAlignment: "center",
  16889. overflowWrap: "break-word"
  16890. },
  16891. "slide.layout-image-topic-slide box.title": {
  16892. fontWeight: "bold",
  16893. textAlignment: "leading",
  16894. overflowWrap: "break-word"
  16895. },
  16896. "slide.layout-image-topic-slide.image-placement-full box.text": {
  16897. textShadow: "0 0 8px rgba(0, 0, 0, 0.3)"
  16898. },
  16899. "slide.layout-image-topic-slide.image-placement-full box.image": {
  16900. objectFit: "cover"
  16901. },
  16902. "slide.layout-brace-list box.title": {
  16903. fontWeight: "bold",
  16904. textAlignment: "center"
  16905. },
  16906. "slide.layout-brace-list box.subtopic": {
  16907. overflowWrap: "break-word"
  16908. },
  16909. "slide.layout-brace-list box.curlyBrace": {
  16910. strokeColor: "#fff",
  16911. lineWidth: 8,
  16912. lineCap: "round"
  16913. },
  16914. "slide.layout-bullet-list box.title": {
  16915. fontSize: "60px",
  16916. fontWeight: "bold"
  16917. },
  16918. "slide.layout-bullet-list box.subtopic": {
  16919. overflowWrap: "break-word"
  16920. },
  16921. "slide.layout-bullet-list box.bulletDot": {
  16922. fillColor: "#fff"
  16923. },
  16924. "slide.layout-lyric-list box.title": {
  16925. fontSize: "60px",
  16926. fontWeight: "bold"
  16927. },
  16928. "slide.layout-lyric-list box.subtopic": {
  16929. overflowWrap: "break-word"
  16930. },
  16931. "slide.layout-lyric-list box.arrow": {
  16932. fillColor: "#fff"
  16933. },
  16934. "slide.layout-tree-chart box.title": {
  16935. fontWeight: "bold",
  16936. textAlignment: "leading"
  16937. },
  16938. "slide.layout-tree-chart box.treeBranch": {
  16939. strokeColor: "#fff",
  16940. lineWidth: 8,
  16941. lineCap: "round",
  16942. lineJoin: "round"
  16943. },
  16944. "slide.layout-tree-chart box.subtopic": {
  16945. overflowWrap: "break-word"
  16946. },
  16947. "slide.layout-summary box.curlyBrace": {
  16948. strokeColor: "#fff",
  16949. lineWidth: 4,
  16950. lineCap: "round",
  16951. lineJoin: "round"
  16952. },
  16953. "slide.layout-summary box.title": {
  16954. fontWeight: "bold",
  16955. textAlignment: "center"
  16956. },
  16957. "slide.layout-only-child box.title": {
  16958. fontSize: "82px",
  16959. fontWeight: "bold"
  16960. },
  16961. "slide.layout-only-child box.subtopic": {
  16962. overflowWrap: "break-word"
  16963. },
  16964. "slide.layout-only-child box.separatorLine": {
  16965. strokeColor: "#fff",
  16966. lineCap: "round"
  16967. }
  16968. }
  16969. }
  16970. },
  16971. 246: function(e, t, n) {
  16972. "use strict";
  16973. Object.defineProperty(t, "__esModule", {
  16974. value: !0
  16975. }),
  16976. t.lightAppearance = void 0,
  16977. t.lightAppearance = {
  16978. slideStyles: {
  16979. slide: {
  16980. opacity: 1,
  16981. backgroundColor: "#f9f9f9",
  16982. backgroundOpacity: 1,
  16983. foregroundColor: "black",
  16984. hitRegionFillColor: "rgba(196, 196, 196, 0.12)",
  16985. hitRegionActiveFillColor: "rgba(196, 196, 196, 0.3)",
  16986. hitRegionBoxShadow: "0px 1px 21px -7px rgba(0, 0, 0, 0.15)",
  16987. hitRegionStrokeColor: "rgba(185, 185, 185, 0.1)",
  16988. hitRegionLineWidth: 1,
  16989. hitRegionCornerRadius: 18,
  16990. opacityForPendingSubtopicsUnderPresenterPerspectiveMode: .2
  16991. }
  16992. },
  16993. boxStyles: {
  16994. box: {
  16995. opacity: 1,
  16996. transform: "none"
  16997. },
  16998. "box.text": {
  16999. fontFamily: ["SF Pro Display", "-apple-system", "Helvetica Neue", "Helvetica", "Arial", "PingFang SC", "Microsoft YaHei", "sans-serif"],
  17000. fontSize: "24px",
  17001. lineHeight: "1em",
  17002. fontWeight: "normal",
  17003. fontStyle: "normal",
  17004. textColor: "#000",
  17005. textAlignment: "leading"
  17006. },
  17007. "box.shape": {
  17008. lineWidth: 1,
  17009. lineCap: "round"
  17010. },
  17011. "box.headerLine": {
  17012. strokeColor: "#000",
  17013. lineCap: "round"
  17014. },
  17015. "box.labelBorder": {
  17016. strokeColor: "#000",
  17017. lineWidth: 2
  17018. },
  17019. "box.note": {
  17020. fontWeight: "normal",
  17021. opacity: .8
  17022. },
  17023. "box.callout": {
  17024. fontWeight: "normal",
  17025. fontStyle: "italic",
  17026. opacity: .6
  17027. },
  17028. "slide.layout-topic-slide box.title": {
  17029. fontWeight: "bold",
  17030. textAlignment: "center",
  17031. overflowWrap: "break-word"
  17032. },
  17033. "slide.layout-image-topic-slide box.title": {
  17034. fontWeight: "bold",
  17035. textAlignment: "leading",
  17036. overflowWrap: "break-word"
  17037. },
  17038. "slide.layout-image-topic-slide.image-placement-full box.text": {
  17039. textShadow: "0 0 8px rgba(0, 0, 0, 0.3)"
  17040. },
  17041. "slide.layout-image-topic-slide.image-placement-full box.image": {
  17042. objectFit: "cover"
  17043. },
  17044. "slide.layout-brace-list box.title": {
  17045. fontWeight: "bold",
  17046. textAlignment: "center"
  17047. },
  17048. "slide.layout-brace-list box.subtopic": {
  17049. overflowWrap: "break-word"
  17050. },
  17051. "slide.layout-brace-list box.curlyBrace": {
  17052. strokeColor: "#000",
  17053. lineWidth: 8,
  17054. lineCap: "round"
  17055. },
  17056. "slide.layout-lyric-list box.title": {
  17057. fontSize: "60px",
  17058. fontWeight: "bold"
  17059. },
  17060. "slide.layout-lyric-list box.subtopic": {
  17061. overflowWrap: "break-word"
  17062. },
  17063. "slide.layout-lyric-list box.arrow": {
  17064. fillColor: "#000"
  17065. },
  17066. "slide.layout-bullet-list box.title": {
  17067. fontSize: "60px",
  17068. fontWeight: "bold"
  17069. },
  17070. "slide.layout-bullet-list box.subtopic": {
  17071. overflowWrap: "break-word"
  17072. },
  17073. "slide.layout-bullet-list box.bulletDot": {
  17074. fillColor: "#000"
  17075. },
  17076. "slide.layout-tree-chart box.title": {
  17077. fontWeight: "bold",
  17078. textAlignment: "leading"
  17079. },
  17080. "slide.layout-tree-chart box.treeBranch": {
  17081. strokeColor: "#000",
  17082. lineWidth: 8,
  17083. lineCap: "round",
  17084. lineJoin: "round"
  17085. },
  17086. "slide.layout-tree-chart box.subtopic": {
  17087. overflowWrap: "break-word"
  17088. },
  17089. "slide.layout-summary box.curlyBrace": {
  17090. strokeColor: "#000",
  17091. lineWidth: 4,
  17092. lineCap: "round",
  17093. lineJoin: "round"
  17094. },
  17095. "slide.layout-summary box.title": {
  17096. fontWeight: "bold",
  17097. textAlignment: "center"
  17098. },
  17099. "slide.layout-only-child box.title": {
  17100. fontSize: "82px",
  17101. fontWeight: "bold"
  17102. },
  17103. "slide.layout-only-child box.subtopic": {
  17104. overflowWrap: "break-word"
  17105. },
  17106. "slide.layout-only-child box.separatorLine": {
  17107. strokeColor: "#000",
  17108. lineCap: "round"
  17109. }
  17110. }
  17111. }
  17112. },
  17113. 247: function(e, t, n) {
  17114. "use strict";
  17115. Object.defineProperty(t, "__esModule", {
  17116. value: !0
  17117. }),
  17118. t.portraitDimension = void 0,
  17119. t.portraitDimension = {
  17120. vPaddingXXSmall: {
  17121. pct: 2,
  17122. unit: "vmin"
  17123. },
  17124. vPaddingXSmall: {
  17125. pct: 5,
  17126. unit: "vmin"
  17127. },
  17128. vPaddingSmall: {
  17129. pct: 11,
  17130. unit: "vmin"
  17131. },
  17132. vPaddingNormal: {
  17133. pct: 13,
  17134. unit: "vmin"
  17135. },
  17136. vPaddingMedium: {
  17137. pct: 15,
  17138. unit: "vmin"
  17139. },
  17140. vPaddingLarge: {
  17141. pct: 20,
  17142. unit: "vmin"
  17143. },
  17144. vPaddingXLarge: {
  17145. pct: 30,
  17146. unit: "vmin"
  17147. },
  17148. hPaddingXSmall: {
  17149. pct: 1,
  17150. unit: "vmin"
  17151. },
  17152. hPaddingSmall: {
  17153. pct: 2,
  17154. unit: "vmin"
  17155. },
  17156. hPaddingNormal: {
  17157. pct: 3,
  17158. unit: "vmin"
  17159. },
  17160. hPaddingMedium: {
  17161. pct: 5,
  17162. unit: "vmin"
  17163. },
  17164. hPaddingLarge: {
  17165. pct: 8,
  17166. unit: "vmin"
  17167. },
  17168. hPaddingXLarge: {
  17169. pct: 11,
  17170. unit: "vmin"
  17171. },
  17172. hSlidePadding: {
  17173. pct: 100 / 15,
  17174. unit: "vw"
  17175. },
  17176. vSlidePadding: {
  17177. pct: 12.5,
  17178. unit: "vh"
  17179. },
  17180. scrollFaderHeight: {
  17181. pct: 12.5,
  17182. unit: "vh"
  17183. },
  17184. topicSlideTitleFontSizeLarge: {
  17185. pct: 14,
  17186. unit: "vmin"
  17187. },
  17188. topicSlideTitleFontSizeMedium: {
  17189. pct: 8,
  17190. unit: "vmin"
  17191. },
  17192. topicSlideTitleFontSizeSmall: {
  17193. pct: 7,
  17194. unit: "vmin"
  17195. },
  17196. topicSlideTitleScrollFaderHeight: {
  17197. pct: 25,
  17198. unit: "vh"
  17199. },
  17200. topicSlideSingleLineTitleAlignment: "center",
  17201. topicSlideMultilineTitleAlignment: "leading",
  17202. topicSlideLabelFontSize: {
  17203. pct: 4,
  17204. unit: "vmin"
  17205. },
  17206. topicSlideLabelMinWidth: {
  17207. pct: 9,
  17208. unit: "vmin"
  17209. },
  17210. topicSlideNoteFontSize: {
  17211. pct: 5,
  17212. unit: "vmin"
  17213. },
  17214. topicSlideCalloutFontSize: {
  17215. pct: 6,
  17216. unit: "vmin"
  17217. },
  17218. imageTopicSlideSmallImageDefiningWidth: 400,
  17219. imageTopicSlideHLayoutImageZoneWidth: {
  17220. pct: 700 / 15,
  17221. unit: "vw"
  17222. },
  17223. imageTopicSlideHLayoutImageZoneWidthForSmallImage: {
  17224. pct: 20,
  17225. unit: "vw"
  17226. },
  17227. imageTopicSlideHLayoutSpacingAroundImage: {
  17228. pct: 100 / 15,
  17229. unit: "vw"
  17230. },
  17231. imageTopicSlideHLayoutTitleFontSizeLarge: {
  17232. pct: 10,
  17233. unit: "vmin"
  17234. },
  17235. imageTopicSlideHLayoutTitleFontSizeMedium: {
  17236. pct: 8,
  17237. unit: "vmin"
  17238. },
  17239. imageTopicSlideHLayoutTitleFontSizeSmall: {
  17240. pct: 7,
  17241. unit: "vmin"
  17242. },
  17243. imageTopicSlideVLayoutImageZoneHeight: {
  17244. pct: 62.5,
  17245. unit: "vh"
  17246. },
  17247. imageTopicSlideVLayoutImageZoneHeightForSmallImage: {
  17248. pct: 25,
  17249. unit: "vh"
  17250. },
  17251. imageTopicSlideVLayoutTitleFontSizeLarge: {
  17252. pct: 14,
  17253. unit: "vmin"
  17254. },
  17255. imageTopicSlideVLayoutTitleFontSizeMedium: {
  17256. pct: 8,
  17257. unit: "vmin"
  17258. },
  17259. imageTopicSlideVLayoutTitleFontSizeSmall: {
  17260. pct: 7,
  17261. unit: "vmin"
  17262. },
  17263. headerZoneWidth: {
  17264. pct: 20,
  17265. unit: "vmax"
  17266. },
  17267. headerZoneHeight: {
  17268. pct: 4,
  17269. unit: "vmin"
  17270. },
  17271. headerTextFontSize: {
  17272. pct: 4,
  17273. unit: "vmin"
  17274. },
  17275. headerTextLeftMargin: {
  17276. pct: 100 / 15,
  17277. unit: "vmin"
  17278. },
  17279. headerMarkerRightMargin: {
  17280. pct: .375,
  17281. unit: "vmin"
  17282. },
  17283. headerLineTopMargin: {
  17284. pct: 1,
  17285. unit: "vmin"
  17286. },
  17287. headerLineLength: {
  17288. pct: 5,
  17289. unit: "vmin"
  17290. },
  17291. headerLineWidth: 4,
  17292. braceListSlideParentTopicMaxFontSize: {
  17293. pct: 14,
  17294. unit: "vmin"
  17295. },
  17296. braceListSlideParentTopicMinFontSize: {
  17297. pct: 11,
  17298. unit: "vmin"
  17299. },
  17300. braceListSlideSubtopicMaxFontSize: {
  17301. pct: 8,
  17302. unit: "vmin"
  17303. },
  17304. braceListSlideSubtopicMinFontSize: {
  17305. pct: 7,
  17306. unit: "vmin"
  17307. },
  17308. braceListSlideScrollFaderHeight: {
  17309. pct: 12.5,
  17310. unit: "vh"
  17311. },
  17312. bulletListSlideParentTopicDefaultFontSize: {
  17313. pct: 14,
  17314. unit: "vmin"
  17315. },
  17316. bulletListSlideSubtopicMaxFontSize: {
  17317. pct: 8,
  17318. unit: "vmin"
  17319. },
  17320. bulletListSlideSubtopicMinFontSize: {
  17321. pct: 7,
  17322. unit: "vmin"
  17323. },
  17324. lyricListSlideParentTopicDefaultFontSize: {
  17325. pct: 14,
  17326. unit: "vmin"
  17327. },
  17328. lyricListSlideSubtopicMaxFontSize: {
  17329. pct: 8,
  17330. unit: "vmin"
  17331. },
  17332. lyricListSlideSubtopicMinFontSize: {
  17333. pct: 7,
  17334. unit: "vmin"
  17335. },
  17336. treeChartSlideParentTopicMaxFontSize: {
  17337. pct: 14,
  17338. unit: "vmin"
  17339. },
  17340. treeChartSlideParentTopicMinFontSize: {
  17341. pct: 11,
  17342. unit: "vmin"
  17343. },
  17344. treeChartSlideSubtopicMaxFontSize: {
  17345. pct: 8,
  17346. unit: "vmin"
  17347. },
  17348. treeChartSlideSubtopicMinFontSize: {
  17349. pct: 7,
  17350. unit: "vmin"
  17351. },
  17352. summarySlideTopicMaxFontSize: {
  17353. pct: 14,
  17354. unit: "vmin"
  17355. },
  17356. summarySlideTopicMinFontSize: {
  17357. pct: 8,
  17358. unit: "vmin"
  17359. },
  17360. summarySlideTopicMarkerRightMargin: {
  17361. pct: 1.2,
  17362. unit: "vmin"
  17363. },
  17364. summarySlideSubtopicFontSize: {
  17365. pct: 8,
  17366. unit: "vmin"
  17367. },
  17368. summarySlideSubtopicMarkerRightMargin: {
  17369. pct: 1.2,
  17370. unit: "vmin"
  17371. },
  17372. summarySlideLineHeight: {
  17373. pct: 3.125,
  17374. unit: "vh"
  17375. },
  17376. summarySlideLineStrokeWidth: 4,
  17377. summaryScrollFaderHeight: {
  17378. pct: 25,
  17379. unit: "vh"
  17380. },
  17381. lyricListSlideArrowWidth: 46,
  17382. lyricListSlideArrowHeight: 36,
  17383. lyricListSlideArrowCornerRadius: 4,
  17384. treeChartBranchStrokeWidth: 8,
  17385. onlyChildSlideSeparatorLineWidth: 4,
  17386. maxMarkerCount: 3,
  17387. hitRegionHPadding: {
  17388. pct: 1,
  17389. unit: "vmin"
  17390. },
  17391. hitRegionVPadding: {
  17392. pct: 1,
  17393. unit: "vmin"
  17394. }
  17395. }
  17396. },
  17397. 248: function(e, t, n) {
  17398. "use strict";
  17399. Object.defineProperty(t, "__esModule", {
  17400. value: !0
  17401. }),
  17402. t.matchesClasses = t.matchesStates = t.addStates = t.split = t.matchesBox = t.pickBoxStyle = t.computeBoxStyle = t.initializeBoxStyle = t.matchesSlide = t.computeSlideStyle = t.initializeSlideStyle = t.calcLength = void 0;
  17403. const r = n(13);
  17404. function i(e, t) {
  17405. return "number" == typeof e ? e : r.calc(e.pct / 100, e.unit, t)
  17406. }
  17407. function o(e, t={}) {
  17408. const n = {
  17409. classes: new Set,
  17410. states: new Set
  17411. };
  17412. t.type && n.classes.add(t.type),
  17413. t.layout && n.classes.add("layout-" + t.layout),
  17414. t.imagePlacement && n.classes.add("image-placement-" + t.imagePlacement),
  17415. t.states && d(t.states, n.states);
  17416. const r = {};
  17417. if (e.slideStyles)
  17418. for (const t in e.slideStyles)
  17419. a(t, n) && p(r, e.slideStyles[t]);
  17420. return r
  17421. }
  17422. function a(e, t) {
  17423. const n = c(e);
  17424. return !!n.slide && (!!h(n.slide.classes, t.classes) && !!f(n.slide.states, t.states))
  17425. }
  17426. function s(e, t={}) {
  17427. const n = {
  17428. slideClasses: new Set,
  17429. slideStates: new Set,
  17430. classes: new Set
  17431. };
  17432. t.slideType && n.slideClasses.add(t.slideType),
  17433. t.slideLayout && n.slideClasses.add("layout-" + t.slideLayout),
  17434. t.slideImagePlacement && n.slideClasses.add("image-placement-" + t.slideImagePlacement),
  17435. t.slideStates && d(t.slideStates, n.slideStates),
  17436. t.contentType && n.classes.add(t.contentType),
  17437. t.roles && t.roles.forEach(e=>n.classes.add(e));
  17438. const r = {};
  17439. if (e.boxStyles)
  17440. for (const t in e.boxStyles)
  17441. l(t, n) && p(r, e.boxStyles[t]);
  17442. return r
  17443. }
  17444. function l(e, t) {
  17445. var n, r;
  17446. const i = c(e);
  17447. return !!i.box && (!!h(i.box.classes, t.classes) && (!!f(null !== (r = null === (n = i.slide) || void 0 === n ? void 0 : n.states) && void 0 !== r ? r : [], t.slideStates) && !(i.slide && !h(i.slide.classes, t.slideClasses))))
  17448. }
  17449. function u(e, t) {
  17450. return e.split(t).filter(Boolean)
  17451. }
  17452. function c(e) {
  17453. var t, n;
  17454. const r = {}
  17455. , i = /([\w-_]+)(\.[\w-_.]+)?(:[\w-_:]+)?/g;
  17456. let o;
  17457. for (; null !== (o = i.exec(e)); ) {
  17458. const e = o[1]
  17459. , i = u(null !== (t = o[2]) && void 0 !== t ? t : "", ".")
  17460. , a = u(null !== (n = o[3]) && void 0 !== n ? n : "", ":");
  17461. r[e] = {
  17462. classes: i,
  17463. states: a
  17464. }
  17465. }
  17466. return r
  17467. }
  17468. function d(e, t) {
  17469. for (const n in e)
  17470. e[n] && t.add(n)
  17471. }
  17472. function f(e, t) {
  17473. if (e.length !== t.size)
  17474. return !1;
  17475. for (const n of e)
  17476. if (!t.has(n))
  17477. return !1;
  17478. return !0
  17479. }
  17480. function h(e, t) {
  17481. return e.every(e=>t.has(e))
  17482. }
  17483. function p(e, t) {
  17484. t && Object.assign(e, t)
  17485. }
  17486. t.calcLength = i,
  17487. t.initializeSlideStyle = function(e, t, n, r={}) {
  17488. const a = o(n, {
  17489. type: e.type,
  17490. layout: r.layout,
  17491. imagePlacement: e.imagePlacement,
  17492. states: r.states
  17493. });
  17494. t.hitRegionHPadding && (a.hitRegionHPadding = i(t.hitRegionHPadding, e)),
  17495. t.hitRegionVPadding && (a.hitRegionVPadding = i(t.hitRegionVPadding, e)),
  17496. t.hitRegionLineWidth && (a.hitRegionLineWidth = i(t.hitRegionLineWidth, e)),
  17497. t.hitRegionCornerRadius && (a.hitRegionCornerRadius = i(t.hitRegionCornerRadius, e));
  17498. const s = Object.assign({}, e);
  17499. Object.assign(e, a, s)
  17500. }
  17501. ,
  17502. t.computeSlideStyle = o,
  17503. t.matchesSlide = a,
  17504. t.initializeBoxStyle = function(e, t, n, r={}) {
  17505. const i = s(n, {
  17506. contentType: e.contentType,
  17507. roles: e.roles,
  17508. slideType: t.type,
  17509. slideLayout: r.layout,
  17510. slideImagePlacement: t.imagePlacement,
  17511. slideStates: r.slideStates
  17512. })
  17513. , o = Object.assign({}, e);
  17514. Object.assign(e, i, o)
  17515. }
  17516. ,
  17517. t.computeBoxStyle = s,
  17518. t.pickBoxStyle = function(e, t) {
  17519. const n = Object.assign({}, t);
  17520. return function(e, t) {
  17521. if (!t)
  17522. return;
  17523. for (const n in e)
  17524. n in t && (e[n] = t[n])
  17525. }(n, e),
  17526. n
  17527. }
  17528. ,
  17529. t.matchesBox = l,
  17530. t.split = u,
  17531. t.addStates = d,
  17532. t.matchesStates = f,
  17533. t.matchesClasses = h
  17534. },
  17535. 249: function(e, t, n) {
  17536. "use strict";
  17537. Object.defineProperty(t, "__esModule", {
  17538. value: !0
  17539. }),
  17540. t.generateImageTopicSlide = t.layoutImageTopicSlide = t.isImageTopicSlideLayoutEligibleFor = void 0;
  17541. const r = n(5)
  17542. , i = n(15)
  17543. , o = n(13)
  17544. , a = n(33)
  17545. , s = n(161)
  17546. , l = n(41)
  17547. , u = n(36)
  17548. , c = n(160)
  17549. , d = n(163)
  17550. , f = n(164)
  17551. , h = n(35)
  17552. , p = n(44)
  17553. , g = n(32)
  17554. , m = n(12)
  17555. , v = "image-topic-slide";
  17556. t.isImageTopicSlideLayoutEligibleFor = function(e, {topic: t}) {
  17557. return "topic" === e && !!t.image
  17558. }
  17559. ,
  17560. t.layoutImageTopicSlide = function(e, t, n={}) {
  17561. var y, b, _, w, S, x, k, I;
  17562. const {topic: C, headerTopic: M, calloutTopic: T} = t
  17563. , {id: A, image: E} = C;
  17564. if (!E)
  17565. throw new Error("Missing image attributes for Topic Slide With Image");
  17566. const O = null !== (y = null == n ? void 0 : n.dimension) && void 0 !== y ? y : g.defaultDimension
  17567. , B = null !== (b = null == n ? void 0 : n.appearance) && void 0 !== b ? b : i.defaultAppearance
  17568. , L = i.calcLength(O.hSlidePadding, e)
  17569. , P = i.calcLength(O.vSlidePadding, e)
  17570. , R = i.calcLength(O.imageTopicSlideSmallImageDefiningWidth, e)
  17571. , z = E.size.width < R ? "small" : "normal"
  17572. , j = null !== (_ = C.topicSlideImagePlacement) && void 0 !== _ ? _ : function(e, t, n) {
  17573. const r = m.isSvg(e.source) ? "aboveTitle" : "left";
  17574. if (n.width < n.height)
  17575. return "aboveTitle";
  17576. if ("small" === t)
  17577. return r;
  17578. if ((0 === e.size.width || 0 === e.size.height ? 1 : e.size.width / e.size.height) >= 2)
  17579. return "aboveTitle";
  17580. return r
  17581. }(E, z, {
  17582. width: e.width,
  17583. height: e.height
  17584. });
  17585. e.imagePlacement = j,
  17586. i.initializeSlideStyle(e, O, B, {
  17587. layout: v
  17588. });
  17589. const F = u.computeTopicTitle(C)
  17590. , D = null !== (w = C.markers) && void 0 !== w ? w : []
  17591. , N = null !== (S = null == T ? void 0 : T.title) && void 0 !== S ? S : ""
  17592. , U = null !== (x = C.labels) && void 0 !== x ? x : []
  17593. , W = null !== (I = null === (k = C.note) || void 0 === k ? void 0 : k.plainText) && void 0 !== I ? I : ""
  17594. , H = F.length > 0 || D.length > 0
  17595. , V = N.length > 0 || U.length > 0 || W.length > 0
  17596. , $ = "full" === j ? e.width : !H && !V || "left" !== j && "right" !== j ? H || V || "small" !== z ? e.width - L - L : e.width - 4 * L : i.calcLength("small" === z ? O.imageTopicSlideHLayoutImageZoneWidthForSmallImage : O.imageTopicSlideHLayoutImageZoneWidth, e)
  17597. , G = "full" === j ? e.height : !H && !V || "aboveTitle" !== j && "belowTitle" !== j ? H || V || "small" !== z ? e.height - P - P : e.height - 4 * P : i.calcLength("small" === z ? O.imageTopicSlideVLayoutImageZoneHeightForSmallImage : O.imageTopicSlideVLayoutImageZoneHeight, e)
  17598. , Z = 0 === E.size.width || 0 === E.size.height ? 1 : Math.min($ / E.size.width, G / E.size.height)
  17599. , q = "full" === j ? e.width : E.size.width * Z
  17600. , Y = "full" === j ? e.height : E.size.height * Z;
  17601. let X;
  17602. X = "aboveTitle" === j || "belowTitle" === j ? i.calcLength(O.vPaddingSmall, e) : "left" === j || "right" === j ? i.calcLength(O.imageTopicSlideHLayoutSpacingAroundImage, e) : 0;
  17603. const J = i.calcLength(O.hPaddingSmall, e);
  17604. let Q, K, ee;
  17605. "aboveTitle" === j || "belowTitle" === j ? (Q = Math.round(i.calcLength(O.imageTopicSlideVLayoutTitleFontSizeLarge, e)),
  17606. K = Math.round(i.calcLength(O.imageTopicSlideVLayoutTitleFontSizeMedium, e)),
  17607. ee = Math.round(i.calcLength(O.imageTopicSlideVLayoutTitleFontSizeSmall, e))) : "left" === j || "right" === j ? (Q = Math.round(i.calcLength(O.imageTopicSlideHLayoutTitleFontSizeLarge, e)),
  17608. K = Math.round(i.calcLength(O.imageTopicSlideHLayoutTitleFontSizeMedium, e)),
  17609. ee = Math.round(i.calcLength(O.imageTopicSlideHLayoutTitleFontSizeSmall, e))) : (Q = Math.round(i.calcLength(O.topicSlideTitleFontSizeLarge, e)),
  17610. K = Math.round(i.calcLength(O.topicSlideTitleFontSizeMedium, e)),
  17611. ee = Math.round(i.calcLength(O.topicSlideTitleFontSizeSmall, e)));
  17612. const te = Q
  17613. , ne = K
  17614. , re = Math.round(.8 * Q)
  17615. , ie = K
  17616. , oe = K
  17617. , ae = ee
  17618. , se = i.calcLength(O.topicSlideLabelFontSize, e)
  17619. , le = i.calcLength(O.topicSlideLabelMinWidth, e)
  17620. , ue = i.calcLength(O.hPaddingSmall, e)
  17621. , ce = i.calcLength(O.hPaddingSmall, e)
  17622. , de = i.calcLength(O.vPaddingXSmall, e)
  17623. , fe = i.calcLength(O.vPaddingXSmall, e)
  17624. , he = i.calcLength(O.topicSlideCalloutFontSize, e)
  17625. , pe = i.calcLength(O.topicSlideNoteFontSize, e)
  17626. , ge = i.calcLength(O.vPaddingXXSmall, e)
  17627. , me = i.calcLength(O.vPaddingXXSmall, e)
  17628. , ve = i.calcLength(O.vPaddingLarge, e)
  17629. , ye = i.calcLength(O.vPaddingMedium, e)
  17630. , be = i.calcLength(O.topicSlideTitleScrollFaderHeight, e)
  17631. , _e = "left" === j || "right" === j ? e.width - L - $ - X - L : e.width
  17632. , we = "left" === j || "right" === j ? _e : _e - L - L
  17633. , Se = {
  17634. left: "left" === j || "right" === j ? 0 : L,
  17635. top: P,
  17636. right: "left" === j || "right" === j ? 0 : L,
  17637. bottom: P
  17638. }
  17639. , xe = e.height
  17640. , ke = V ? null : xe - P - P;
  17641. let Ie;
  17642. Ie = m.isSvg(E.source) ? {
  17643. id: r.imageOfTopic(A),
  17644. roles: ["primaryImage"],
  17645. bounds: {
  17646. x: 0,
  17647. y: 0,
  17648. width: q,
  17649. height: Y
  17650. },
  17651. absBounds: o.zeroRect(),
  17652. contentType: "svg-template",
  17653. svg: E.source,
  17654. fillColor: e.foregroundColor
  17655. } : {
  17656. id: r.imageOfTopic(A),
  17657. roles: ["primaryImage"],
  17658. bounds: {
  17659. x: 0,
  17660. y: 0,
  17661. width: q,
  17662. height: Y
  17663. },
  17664. absBounds: o.zeroRect(),
  17665. contentType: "image",
  17666. imageSource: E.source
  17667. },
  17668. i.initializeBoxStyle(Ie, e, B, {
  17669. layout: v
  17670. });
  17671. const Ce = N ? c.computeCalloutTextBox(e, B, v, A, N, {
  17672. maxWidth: we,
  17673. fontSize: he
  17674. }) : null
  17675. , Me = U.map((t,n)=>s.computeLabelGroup(e, B, v, A, t, n, {
  17676. maxWidth: we,
  17677. minWidth: le,
  17678. fontSize: se,
  17679. leftPadding: ue,
  17680. rightPadding: ce
  17681. }))
  17682. , Te = W ? d.computeNoteTextBox(e, B, v, A, W, {
  17683. maxWidth: we,
  17684. fontSize: pe
  17685. }) : null
  17686. , Ae = D.slice(0, O.maxMarkerCount)
  17687. , Ee = H || V ? f.searchForBestTopicSlideContent((function(t) {
  17688. const n = h.computeTopicTitleGroup(e, B, v, A, F, Ae, {
  17689. maxWidth: we,
  17690. fontSize: t,
  17691. markerRightMargin: J,
  17692. textRoles: ["title"]
  17693. });
  17694. let r;
  17695. n.textMeasurement.lineCount > 1 || "left" === j || "right" === j || "full" !== j && Ie.bounds.width > $ - 1 ? (n.textBox.textAlignment = "leading",
  17696. r = "leading") : r = "center";
  17697. const i = Me.length > 0 ? s.computeLabelListGroupBox(e, B, v, A, Me.map(({groupBox: e})=>e), {
  17698. maxWidth: we,
  17699. labelSpacing: de,
  17700. lineSpacing: fe,
  17701. alignment: r
  17702. }) : null;
  17703. return f.computeTopicSlideContentGroup(e, B, v, A, {
  17704. titleGroup: n,
  17705. calloutTextBox: Ce,
  17706. labelListGroupBox: i,
  17707. noteTextBox: Te,
  17708. imageBox: "aboveTitle" === j || "belowTitle" === j ? Ie : null
  17709. }, {
  17710. maxWidth: _e,
  17711. maxHeight: xe,
  17712. paddings: Se,
  17713. contentAlignment: r,
  17714. spacingBetweenCalloutAndTitle: ge,
  17715. spacingBetweenTitleAndLabelList: me,
  17716. spacingBetweenTitleAndNote: ve,
  17717. spacingBetweenLabelListAndNote: ye,
  17718. scrollFaderSize: be,
  17719. spacingAroundImage: X,
  17720. imagePlacement: "belowTitle" === j ? "belowTitle" : "aboveTitle"
  17721. })
  17722. }
  17723. ), (function(e) {
  17724. return e.titleGroup.textMeasurement.lineCount
  17725. }
  17726. ), (function(e) {
  17727. return e.groupBox.contentHeight
  17728. }
  17729. ), {
  17730. maxHeight: e.height,
  17731. compactMaxHeight: ke,
  17732. singleLineTitleMaxFontSize: te,
  17733. singleLineTitleMinFontSize: ne,
  17734. doubleLineTitleMaxFontSize: re,
  17735. doubleLineTitleMinFontSize: ie,
  17736. multilineTitleMaxFontSize: oe,
  17737. multilineTitleMinFontSize: ae
  17738. }) : null
  17739. , Oe = null == Ee ? void 0 : Ee.groupBox;
  17740. if (Oe)
  17741. if ("left" === j) {
  17742. const t = Ie.bounds.width + X + Oe.bounds.width
  17743. , n = Math.max(Ie.bounds.height, Oe.bounds.height)
  17744. , r = (e.width - t) / 2
  17745. , i = (e.height - n) / 2;
  17746. Ie.bounds.x = r,
  17747. Oe.bounds.x = Ie.bounds.x + Ie.bounds.width + X,
  17748. Ie.bounds.y = i + (n - Ie.bounds.height) / 2,
  17749. Oe.bounds.y = i + (n - Oe.bounds.height) / 2
  17750. } else if ("right" === j) {
  17751. const t = Oe.bounds.width + X + Ie.bounds.width
  17752. , n = Math.max(Ie.bounds.height, Oe.bounds.height)
  17753. , r = (e.width - t) / 2
  17754. , i = (e.height - n) / 2;
  17755. Oe.bounds.x = r,
  17756. Ie.bounds.x = Oe.bounds.x + Oe.bounds.width + X,
  17757. Oe.bounds.y = i + (n - Oe.bounds.height) / 2,
  17758. Ie.bounds.y = i + (n - Ie.bounds.height) / 2
  17759. } else if ("aboveTitle" === j || "belowTitle" === j)
  17760. Oe.bounds.x = (e.width - Oe.bounds.width) / 2,
  17761. Oe.bounds.y = (e.height - Oe.bounds.height) / 2;
  17762. else {
  17763. if ("full" !== j)
  17764. throw new Error(`Undetermined slide layout for image placed for "${j}"`);
  17765. Oe.bounds.x = (e.width - Oe.bounds.width) / 2,
  17766. Oe.bounds.y = (e.height - Oe.bounds.height) / 2,
  17767. Ie.bounds.x = 0,
  17768. Ie.bounds.y = 0
  17769. }
  17770. else
  17771. Ie.bounds.x = (e.width - Ie.bounds.width) / 2,
  17772. Ie.bounds.y = (e.height - Ie.bounds.height) / 2;
  17773. Ee ? ("full" === j && e.boxes.push(Ie),
  17774. e.boxes.push(Ee.groupBox),
  17775. "left" !== j && "right" !== j || e.boxes.push(Ie)) : e.boxes.push(Ie),
  17776. M && l.addHeaderBoxes(e, M, O, B, v),
  17777. a.computeAbsoluteBounds(e.boxes),
  17778. e.shouldSkipImageAnimations = h.shouldShowPlaceholder(F.length > 0, Ae.length > 0),
  17779. r.addSlideContentFeatures(e, {
  17780. kind: "image",
  17781. topicId: A,
  17782. integrity: "full"
  17783. }),
  17784. Ee && (r.addSlideContentFeatures(e, ...p.computeContentFeaturesForTitleGroup(Ee.titleGroup, A, F, D)),
  17785. Ee.calloutTextBox && r.addSlideContentFeatures(e, {
  17786. kind: "callout",
  17787. topicId: A,
  17788. integrity: "full"
  17789. }),
  17790. Ee.labelListGroupBox && r.addSlideContentFeatures(e, {
  17791. kind: "labels",
  17792. topicId: A,
  17793. integrity: "full"
  17794. }),
  17795. Ee.noteTextBox && r.addSlideContentFeatures(e, {
  17796. kind: "note",
  17797. topicId: A,
  17798. integrity: "full"
  17799. }))
  17800. }
  17801. ,
  17802. t.generateImageTopicSlide = function(e) {
  17803. const t = Object.assign({}, e)
  17804. , n = r.getBoxById(t.boxes, r.contentGroupOfTopic(t.topicId), "group");
  17805. return n && n.contentHeight > n.bounds.height && (t.multistepBoxes = [n.id],
  17806. r.addSlideLeavingAnimations(t, [{
  17807. durationMultiplier: 1,
  17808. easing: "easeInOutCubic",
  17809. on: "preTransition",
  17810. effect: "mutate",
  17811. finalState: {
  17812. boxes: [{
  17813. id: n.id,
  17814. scrollOffset: 0
  17815. }]
  17816. }
  17817. }])),
  17818. function(e) {
  17819. const t = r.assertBox(r.getBoxById(e.boxes, r.imageOfTopic(e.topicId)))
  17820. , n = r.getBoxById(e.boxes, r.contentGroupOfTopic(e.topicId), "group");
  17821. "centralTopic" == e.topicLevel || "floatingTopic" == e.topicLevel ? "full" === e.imagePlacement ? function(e, t, n) {
  17822. var i;
  17823. if (r.setBoxEnteringState(e, {
  17824. id: t.id,
  17825. opacity: 0,
  17826. transform: [{
  17827. scale: {
  17828. x: 1.2,
  17829. y: 1.2
  17830. }
  17831. }]
  17832. }),
  17833. r.addSlideEnteringAnimations(e, [{
  17834. on: "postTransition",
  17835. groups: ["scaleDownImage"],
  17836. durationMultiplier: 2.5,
  17837. effect: "mutate",
  17838. easing: "easeInOutCubic",
  17839. finalState: {
  17840. boxes: [{
  17841. id: t.id,
  17842. opacity: null !== (i = t.opacity) && void 0 !== i ? i : 1
  17843. }]
  17844. }
  17845. }]),
  17846. r.addSlideEnteringAnimations(e, [{
  17847. on: "postTransition",
  17848. groups: ["scaleDownImage"],
  17849. durationMultiplier: 1.75,
  17850. effect: "mutate",
  17851. easing: "easeInOutCubic",
  17852. finalState: {
  17853. boxes: [{
  17854. id: t.id,
  17855. transform: [{
  17856. scale: {
  17857. x: 1,
  17858. y: 1
  17859. }
  17860. }]
  17861. }]
  17862. }
  17863. }]),
  17864. n) {
  17865. let t = 0;
  17866. [...n.children].sort((e,t)=>e.bounds.y - t.bounds.y).forEach(n=>{
  17867. var i;
  17868. r.setBoxEnteringState(e, {
  17869. id: n.id,
  17870. transform: [{
  17871. translate: {
  17872. x: 0,
  17873. y: n.bounds.height / 5
  17874. }
  17875. }],
  17876. opacity: 0
  17877. }),
  17878. r.addSlideEnteringAnimations(e, [{
  17879. after: "scaleDownImage",
  17880. delayMultiplier: t,
  17881. durationMultiplier: 1.75,
  17882. effect: "mutate",
  17883. easing: "easeInOutCubic",
  17884. finalState: {
  17885. boxes: [{
  17886. id: n.id,
  17887. transform: [{
  17888. translate: {
  17889. x: 0,
  17890. y: 0
  17891. }
  17892. }]
  17893. }]
  17894. }
  17895. }]),
  17896. r.addSlideEnteringAnimations(e, [{
  17897. after: "scaleDownImage",
  17898. delayMultiplier: t,
  17899. durationMultiplier: 2.5,
  17900. effect: "mutate",
  17901. easing: "easeInOutCubic",
  17902. finalState: {
  17903. boxes: [{
  17904. id: n.id,
  17905. opacity: null !== (i = n.opacity) && void 0 !== i ? i : 1
  17906. }]
  17907. }
  17908. }]),
  17909. t += .75
  17910. }
  17911. )
  17912. }
  17913. }(e, t, n) : n ? function(e, t, n) {
  17914. var i;
  17915. let o = 0;
  17916. const a = r.titleOfTopic(e.topicId);
  17917. let s = 0;
  17918. [...n.children].sort((e,t)=>e.bounds.y - t.bounds.y).forEach(t=>{
  17919. var n;
  17920. t.id == a && (s = o),
  17921. r.setBoxEnteringState(e, {
  17922. id: t.id,
  17923. transform: [{
  17924. translate: {
  17925. x: 0,
  17926. y: t.bounds.height / 5
  17927. }
  17928. }],
  17929. opacity: 0
  17930. }),
  17931. r.addSlideEnteringAnimations(e, [{
  17932. on: "postTransition",
  17933. delayMultiplier: o,
  17934. durationMultiplier: 1.75,
  17935. effect: "mutate",
  17936. easing: "easeInOutCubic",
  17937. finalState: {
  17938. boxes: [{
  17939. id: t.id,
  17940. transform: [{
  17941. translate: {
  17942. x: 0,
  17943. y: 0
  17944. }
  17945. }]
  17946. }]
  17947. }
  17948. }]),
  17949. r.addSlideEnteringAnimations(e, [{
  17950. on: "postTransition",
  17951. delayMultiplier: o,
  17952. durationMultiplier: 2.5,
  17953. effect: "mutate",
  17954. easing: "easeInOutCubic",
  17955. finalState: {
  17956. boxes: [{
  17957. id: t.id,
  17958. opacity: null !== (n = t.opacity) && void 0 !== n ? n : 1
  17959. }]
  17960. }
  17961. }]),
  17962. o += .75
  17963. }
  17964. ),
  17965. ("left" === e.imagePlacement || "right" === e.imagePlacement) && (r.setBoxEnteringState(e, {
  17966. id: t.id,
  17967. transform: [{
  17968. translate: {
  17969. x: 0,
  17970. y: t.bounds.height / 5
  17971. }
  17972. }],
  17973. opacity: 0
  17974. }),
  17975. r.addSlideEnteringAnimations(e, [{
  17976. on: "postTransition",
  17977. delayMultiplier: s,
  17978. durationMultiplier: 1.75,
  17979. effect: "mutate",
  17980. easing: "easeInOutCubic",
  17981. finalState: {
  17982. boxes: [{
  17983. id: t.id,
  17984. transform: [{
  17985. translate: {
  17986. x: 0,
  17987. y: 0
  17988. }
  17989. }]
  17990. }]
  17991. }
  17992. }]),
  17993. r.addSlideEnteringAnimations(e, [{
  17994. on: "postTransition",
  17995. delayMultiplier: s,
  17996. durationMultiplier: 2.5,
  17997. effect: "mutate",
  17998. easing: "easeInOutCubic",
  17999. finalState: {
  18000. boxes: [{
  18001. id: t.id,
  18002. opacity: null !== (i = t.opacity) && void 0 !== i ? i : 1
  18003. }]
  18004. }
  18005. }]))
  18006. }(e, t, n) : function(e, t) {
  18007. var n;
  18008. r.setBoxEnteringState(e, {
  18009. id: t.id,
  18010. transform: [{
  18011. translate: {
  18012. x: 0,
  18013. y: t.bounds.height / 5
  18014. }
  18015. }],
  18016. opacity: 0
  18017. }),
  18018. r.addSlideEnteringAnimations(e, [{
  18019. on: "postTransition",
  18020. durationMultiplier: 1.75,
  18021. effect: "mutate",
  18022. easing: "easeInOutCubic",
  18023. finalState: {
  18024. boxes: [{
  18025. id: t.id,
  18026. transform: [{
  18027. translate: {
  18028. x: 0,
  18029. y: 0
  18030. }
  18031. }]
  18032. }]
  18033. }
  18034. }]),
  18035. r.addSlideEnteringAnimations(e, [{
  18036. on: "postTransition",
  18037. durationMultiplier: 2.5,
  18038. effect: "mutate",
  18039. easing: "easeInOutCubic",
  18040. finalState: {
  18041. boxes: [{
  18042. id: t.id,
  18043. opacity: null !== (n = t.opacity) && void 0 !== n ? n : 1
  18044. }]
  18045. }
  18046. }])
  18047. }(e, t) : function(e, t, n) {
  18048. var i;
  18049. const o = r.imageOfTopic(e.topicId)
  18050. , a = r.titleOfTopic(e.topicId);
  18051. e.shouldSkipImageAnimations || (r.setBoxEnteringState(e, {
  18052. id: t.id,
  18053. opacity: 0
  18054. }),
  18055. r.addSlideEnteringAnimations(e, [{
  18056. on: "postTransition",
  18057. durationMultiplier: 1,
  18058. delayMultiplier: .75,
  18059. effect: "mutate",
  18060. easing: "easeOutQuad",
  18061. finalState: {
  18062. boxes: [{
  18063. id: t.id,
  18064. opacity: null !== (i = t.opacity) && void 0 !== i ? i : 1
  18065. }]
  18066. }
  18067. }]));
  18068. n && n.children.forEach(t=>{
  18069. var n;
  18070. t.id !== o && t.id !== a && (r.setBoxEnteringState(e, {
  18071. id: t.id,
  18072. opacity: 0
  18073. }),
  18074. r.addSlideEnteringAnimations(e, [{
  18075. on: "postTransition",
  18076. durationMultiplier: 1,
  18077. delayMultiplier: .75,
  18078. effect: "mutate",
  18079. easing: "easeOutQuad",
  18080. finalState: {
  18081. boxes: [{
  18082. id: t.id,
  18083. opacity: null !== (n = t.opacity) && void 0 !== n ? n : 1
  18084. }]
  18085. }
  18086. }]))
  18087. }
  18088. )
  18089. }(e, t, n)
  18090. }(t),
  18091. t
  18092. }
  18093. },
  18094. 250: function(e, t, n) {
  18095. "use strict";
  18096. Object.defineProperty(t, "__esModule", {
  18097. value: !0
  18098. }),
  18099. t.generateBraceListSlide = t.layoutBraceListSlide = t.isBraceListLayoutEligibleFor = void 0;
  18100. const r = n(5)
  18101. , i = n(13)
  18102. , o = n(15)
  18103. , a = n(34)
  18104. , s = n(33)
  18105. , l = n(43)
  18106. , u = n(41)
  18107. , c = n(36)
  18108. , d = n(35)
  18109. , f = n(92)
  18110. , h = n(93)
  18111. , p = n(44)
  18112. , g = n(32)
  18113. , m = n(62)
  18114. , v = "brace-list"
  18115. , y = 20
  18116. , b = 20
  18117. , _ = 10
  18118. , w = 20
  18119. , S = 30
  18120. , x = 20;
  18121. t.isBraceListLayoutEligibleFor = function(e, {subtopics: t}) {
  18122. return "list" === e && t.length > 1
  18123. }
  18124. ,
  18125. t.layoutBraceListSlide = function(e, t, n={}) {
  18126. var f, h;
  18127. const {topic: k, subtopics: I, headerTopic: C} = t
  18128. , M = null !== (f = null == n ? void 0 : n.dimension) && void 0 !== f ? f : g.defaultDimension
  18129. , T = null !== (h = null == n ? void 0 : n.appearance) && void 0 !== h ? h : o.defaultAppearance;
  18130. o.initializeSlideStyle(e, M, T, {
  18131. layout: v
  18132. });
  18133. const A = o.calcLength(M.hSlidePadding, e)
  18134. , E = o.calcLength(M.vSlidePadding, e)
  18135. , O = e.width - A - A
  18136. , B = .3 * O
  18137. , L = e.height - E - E
  18138. , P = Math.round(o.calcLength(M.braceListSlideParentTopicMaxFontSize, e))
  18139. , R = Math.round(o.calcLength(M.braceListSlideParentTopicMinFontSize, e))
  18140. , z = o.calcLength(M.hPaddingXSmall, e)
  18141. , j = o.calcLength(M.hPaddingSmall, e)
  18142. , F = o.calcLength(M.hPaddingNormal, e)
  18143. , D = j + 50 + F
  18144. , N = e.height
  18145. , U = {
  18146. left: 0,
  18147. top: E,
  18148. right: A,
  18149. bottom: E
  18150. }
  18151. , W = O - B - D + U.right
  18152. , H = e.height
  18153. , V = o.calcLength(M.vPaddingNormal, e)
  18154. , $ = Math.round(o.calcLength(M.braceListSlideSubtopicMaxFontSize, e))
  18155. , G = Math.round(o.calcLength(M.braceListSlideSubtopicMinFontSize, e))
  18156. , Z = o.calcLength(M.hPaddingXSmall, e)
  18157. , q = o.calcLength(M.braceListSlideScrollFaderHeight, e)
  18158. , Y = function(e, t, n, r, i) {
  18159. var o;
  18160. const {maxFontSize: s, minFontSize: u, markerRightMargin: f, maxWidth: h, maxLineCount: g, preferredLineCount: y} = i;
  18161. function b(e) {
  18162. return e.textMeasurement.width <= h
  18163. }
  18164. function _(e) {
  18165. return e.textMeasurement.lineCount <= y
  18166. }
  18167. function w(e) {
  18168. return e.textMeasurement.lineCount <= g
  18169. }
  18170. const S = null !== (o = e.markers) && void 0 !== o ? o : []
  18171. , x = S.slice(0, n.maxMarkerCount)
  18172. , k = m.computePlaceholder(e);
  18173. function I(n, i, o) {
  18174. return d.computeTopicTitleGroup(t, r, v, e.id, n, x, {
  18175. maxWidth: h,
  18176. fontSize: i,
  18177. markerRightMargin: f,
  18178. overflowWrap: o,
  18179. textRoles: ["title"],
  18180. requestForHit: {
  18181. kind: "fastBackward"
  18182. },
  18183. placeholder: k
  18184. })
  18185. }
  18186. const C = c.computeTopicTitle(e);
  18187. let M = C
  18188. , T = s
  18189. , A = "normal"
  18190. , E = I(M, T, A);
  18191. if (b(E) && _(E))
  18192. return Object.assign(Object.assign({}, E), {
  18193. contentFeatures: p.computeContentFeaturesForTitleGroup(E, e.id, C, S)
  18194. });
  18195. if (T = u,
  18196. E = I(M, T, A),
  18197. b(E)) {
  18198. if (_(E)) {
  18199. const e = a.rangedIntegers(s, u)
  18200. , t = a.mapValues(e, e=>({
  18201. fontSize: e,
  18202. group: I(M, e, A)
  18203. }))
  18204. , n = a.findClosestMatch(t, ({group: e})=>b(e) && _(e));
  18205. if (!n)
  18206. throw new Error("Unable to find the best font size for parent topic of brace list slide");
  18207. T = n.fontSize,
  18208. E = n.group
  18209. }
  18210. } else {
  18211. A = "break-word";
  18212. const e = a.rangedIntegers(s, u)
  18213. , t = a.mapValues(e, e=>({
  18214. fontSize: e,
  18215. group: I(M, e, A)
  18216. }))
  18217. , n = a.findClosestMatch(t, ({group: e})=>_(e));
  18218. n ? (T = n.fontSize,
  18219. E = n.group) : (T = u,
  18220. E = I(M, T, A))
  18221. }
  18222. if (!w(E)) {
  18223. const e = a.rangedIntegers(M.length - 1, 1)
  18224. , t = a.mapValues(e, e=>l.getTruncatedText(M, e))
  18225. , n = a.mapValues(t, e=>({
  18226. text: e,
  18227. group: I(e, T, A)
  18228. }))
  18229. , r = a.findClosestMatch(n, ({group: e})=>w(e));
  18230. r ? (M = r.text,
  18231. E = r.group) : (M = l.getTruncatedText(M, 1),
  18232. E = I(M, T, A))
  18233. }
  18234. return Object.assign(Object.assign({}, E), {
  18235. contentFeatures: p.computeContentFeaturesForTitleGroup(E, e.id, C, S)
  18236. })
  18237. }(k, e, M, T, {
  18238. maxFontSize: P,
  18239. minFontSize: R,
  18240. markerRightMargin: z,
  18241. maxWidth: B,
  18242. maxLineCount: 5,
  18243. preferredLineCount: 2
  18244. })
  18245. , X = function(e, t, n, s, u, f) {
  18246. const {paddings: h, maxWidth: g, maxHeight: y, maxFontSize: b, minFontSize: _, preferredLineCount: w, maxLineCount: S, markerRightMargin: x, minSpacing: k, scrollFaderSize: I} = f;
  18247. function C(e) {
  18248. return e.groupBox.bounds.height <= y
  18249. }
  18250. function M(e) {
  18251. return e.textMeasurement.lineCount <= w
  18252. }
  18253. const T = t.map(e=>{
  18254. var t;
  18255. return {
  18256. topicId: e.id,
  18257. text: c.computeTopicTitle(e),
  18258. markers: null !== (t = e.markers) && void 0 !== t ? t : [],
  18259. placeholder: m.computePlaceholder(e)
  18260. }
  18261. }
  18262. );
  18263. function A(t) {
  18264. let c = h.top
  18265. , f = 0
  18266. , m = 0
  18267. , b = 0;
  18268. const _ = []
  18269. , w = T.map(({topicId: e, text: r, markers: i, placeholder: o})=>{
  18270. var y;
  18271. const w = i.slice(0, s.maxMarkerCount);
  18272. function I(r) {
  18273. return d.computeTopicTitleGroup(n, u, v, e, r, w, {
  18274. maxWidth: g,
  18275. fontSize: t,
  18276. markerRightMargin: x,
  18277. textRoles: ["subtopic"],
  18278. requestForHit: {
  18279. kind: "present",
  18280. topicId: e,
  18281. viaIntro: !0
  18282. },
  18283. placeholder: o
  18284. })
  18285. }
  18286. let C = I(r);
  18287. if (!function(e) {
  18288. return e.textMeasurement.lineCount <= S
  18289. }(C)) {
  18290. const e = a.rangedIntegers(r.length - 1, 1)
  18291. , t = a.mapValues(e, e=>l.getTruncatedText(r, e))
  18292. , n = a.mapValues(t, e=>I(e));
  18293. C = null !== (y = a.findClosestMatch(n, M)) && void 0 !== y ? y : I(l.getTruncatedText(r, 1))
  18294. }
  18295. const T = C.groupBox.bounds;
  18296. return T.x = h.left,
  18297. T.y = c,
  18298. c += T.height + k,
  18299. f = Math.max(f, T.width),
  18300. m > 0 && (m += k),
  18301. m += T.height,
  18302. b += T.height,
  18303. _.push(...p.computeContentFeaturesForTitleGroup(C, e, r, i)),
  18304. C
  18305. }
  18306. );
  18307. f += h.left + h.right,
  18308. m += h.top + h.bottom;
  18309. const C = {
  18310. id: r.subtopicListGroupOfTopic(e),
  18311. roles: ["subtopicListGroup"],
  18312. bounds: {
  18313. x: 0,
  18314. y: 0,
  18315. width: Math.min(f, g),
  18316. height: Math.min(m, y)
  18317. },
  18318. absBounds: i.zeroRect(),
  18319. contentType: "group",
  18320. children: w.map(e=>e.groupBox),
  18321. contentHeight: m,
  18322. overflow: m > y ? "scroll" : "hidden",
  18323. scrollFaderSize: I
  18324. };
  18325. return o.initializeBoxStyle(C, n, u, {
  18326. layout: v
  18327. }),
  18328. {
  18329. groupBox: C,
  18330. subtopicGroups: w,
  18331. subtopicTotalHeight: b,
  18332. contentFeatures: _
  18333. }
  18334. }
  18335. let E, O;
  18336. const B = a.rangedIntegers(b, _)
  18337. , L = a.mapValues(B, e=>({
  18338. fontSize: e,
  18339. group: A(e)
  18340. }))
  18341. , P = a.findClosestMatch(L, ({group: e})=>function(e) {
  18342. return e.subtopicGroups.every(M)
  18343. }(e));
  18344. P ? (E = P.fontSize,
  18345. O = P.group) : (E = _,
  18346. O = A(E));
  18347. if (!C(O) && E > _) {
  18348. const e = a.rangedIntegers(E, _)
  18349. , t = a.mapValues(e, e=>({
  18350. fontSize: e,
  18351. group: A(e)
  18352. }))
  18353. , n = a.findClosestMatch(t, ({group: e})=>C(e));
  18354. n ? (E = n.fontSize,
  18355. O = n.group) : (E = b,
  18356. O = A(E))
  18357. }
  18358. if (O.groupBox.bounds.height < y && t.length > 1) {
  18359. const e = Math.max(k, 2 === t.length ? (y - h.top - h.bottom - O.subtopicTotalHeight) / 3 : (y - h.top - h.bottom - O.subtopicTotalHeight) / (t.length - 1));
  18360. if (e !== k) {
  18361. let t = h.top
  18362. , n = 0;
  18363. for (const r of O.subtopicGroups) {
  18364. const i = r.groupBox.bounds;
  18365. i.y = t,
  18366. t += i.height + e,
  18367. n > 0 && (n += e),
  18368. n += i.height
  18369. }
  18370. n += h.top + h.bottom,
  18371. O.groupBox.contentHeight = n,
  18372. O.groupBox.bounds.height = Math.min(n, y)
  18373. }
  18374. }
  18375. return O
  18376. }(k.id, I, e, M, T, {
  18377. paddings: U,
  18378. maxWidth: W,
  18379. maxHeight: H,
  18380. maxFontSize: $,
  18381. minFontSize: G,
  18382. markerRightMargin: Z,
  18383. preferredLineCount: 2,
  18384. maxLineCount: 3,
  18385. minSpacing: V,
  18386. scrollFaderSize: q
  18387. })
  18388. , J = function(e, t, n, a) {
  18389. const {contentHeight: s, contentLineHeight: l, curveWidth: u, leftPadding: c, rightPadding: d} = a
  18390. , f = {
  18391. x: 0,
  18392. y: 0,
  18393. width: c + u + d,
  18394. height: s
  18395. }
  18396. , h = c
  18397. , p = _
  18398. , g = s / 2
  18399. , m = s / 2 - S - w - l / 2
  18400. , k = {
  18401. id: r.topCurlyBraceOfTopic(e),
  18402. roles: ["curlyBrace"],
  18403. bounds: Object.assign({}, f),
  18404. absBounds: i.zeroRect(),
  18405. contentType: "shape",
  18406. shapePath: m > 0 ? `M${h} ${g} c${y / 2} 0 ${y} ${-S / 2} ${y} ${-S} l0 ${-m} c0 ${-w / 2} ${b / 2} ${-w} ${b} ${-w} l${p} 0` : `M${h} ${g} l${y + b + _} 0`
  18407. };
  18408. o.initializeBoxStyle(k, t, n, {
  18409. layout: v
  18410. });
  18411. const I = {
  18412. id: r.bottomCurlyBraceOfTopic(e),
  18413. roles: ["curlyBrace"],
  18414. bounds: Object.assign({}, f),
  18415. absBounds: i.zeroRect(),
  18416. contentType: "shape",
  18417. shapePath: m > 0 ? `M${h} ${g} c${y / 2} 0 ${y} ${S / 2} ${y} ${S} l0 ${m} c0 ${x / 2} ${b / 2} ${x} ${b} ${x} l${p} 0` : `M${h} ${g} l${y + b + _} 0`
  18418. };
  18419. o.initializeBoxStyle(I, t, n, {
  18420. layout: v
  18421. });
  18422. return {
  18423. groupBox: {
  18424. id: r.curlyBraceOfTopic(e),
  18425. roles: ["curlyBraceGroup"],
  18426. bounds: Object.assign({}, f),
  18427. absBounds: i.zeroRect(),
  18428. contentType: "group",
  18429. children: [k, I],
  18430. contentHeight: f.height,
  18431. overflow: "visible",
  18432. opacity: 1
  18433. },
  18434. topCurveShape: k,
  18435. bottomCurveShape: I
  18436. }
  18437. }(k.id, e, T, {
  18438. curveWidth: 50,
  18439. leftPadding: j,
  18440. rightPadding: F,
  18441. contentHeight: X.groupBox.bounds.height - U.top - U.bottom,
  18442. contentLineHeight: X.subtopicGroups[0].textMeasurement.lineHeight
  18443. })
  18444. , Q = A + (O - (B + D + X.groupBox.bounds.width)) / 2
  18445. , K = A + O / 2 - D - B
  18446. , ee = Math.min(Q, K)
  18447. , te = ee + B
  18448. , ne = te + D
  18449. , re = E;
  18450. Y.groupBox.bounds.x = ee + (B - Y.groupBox.bounds.width) / 2,
  18451. Y.groupBox.bounds.y = re + (L - Y.groupBox.bounds.height) / 2,
  18452. X.groupBox.bounds.x = ne,
  18453. X.groupBox.bounds.y = 0 + (H - X.groupBox.bounds.height) / 2,
  18454. J.groupBox.bounds.x = te,
  18455. J.groupBox.bounds.y = 0 + (N - J.groupBox.bounds.height) / 2,
  18456. e.boxes.push(Y.groupBox),
  18457. e.boxes.push(X.groupBox),
  18458. e.boxes.push(J.groupBox),
  18459. C && u.addHeaderBoxes(e, C, M, T, v),
  18460. s.computeAbsoluteBounds(e.boxes),
  18461. r.addSlideContentFeatures(e, ...Y.contentFeatures, ...X.contentFeatures)
  18462. }
  18463. ,
  18464. t.generateBraceListSlide = function(e, t, n={}) {
  18465. var i;
  18466. const {subtopics: o} = t
  18467. , a = null !== (i = n.numberOfVisitedTopics) && void 0 !== i ? i : 0
  18468. , s = Object.assign({}, e);
  18469. o.forEach(({id: e},t)=>{
  18470. t > a && f.computePendingBoxStates(s, r.titleOfTopic(e))
  18471. }
  18472. );
  18473. const l = a;
  18474. return h.computeSubtopicListScrollingStates(s, r.subtopicListGroupOfTopic(s.topicId), r.titleOfTopic(o[l].id), (e,t)=>t.bounds.height / 2 - e.bounds.height / 2),
  18475. function(e) {
  18476. var t;
  18477. const n = r.assertBox(r.getBoxById(e.boxes, r.subtopicListGroupOfTopic(e.topicId)))
  18478. , i = r.assertBox(r.getBoxById(e.boxes, r.topCurlyBraceOfTopic(e.topicId)))
  18479. , o = r.assertBox(r.getBoxById(e.boxes, r.bottomCurlyBraceOfTopic(e.topicId)));
  18480. (null === (t = e.aliases) || void 0 === t ? void 0 : t.some(t=>"listOfTopic" === t.kind && t.topicId === e.topicId && 0 === t.index)) && (r.setSlideEnteringState(e, {
  18481. boxes: [{
  18482. id: n.id,
  18483. opacity: 0
  18484. }, {
  18485. id: i.id,
  18486. opacity: 0,
  18487. strokeOffset: 1
  18488. }, {
  18489. id: o.id,
  18490. opacity: 0,
  18491. strokeOffset: 1
  18492. }]
  18493. }),
  18494. r.addSlideEnteringAnimations(e, [{
  18495. on: "postTransition",
  18496. durationMultiplier: 1,
  18497. delayMultiplier: .75,
  18498. effect: "mutate",
  18499. easing: "easeOutQuad",
  18500. finalState: {
  18501. boxes: [{
  18502. id: n.id,
  18503. opacity: 1
  18504. }]
  18505. }
  18506. }, {
  18507. on: "postTransition",
  18508. groups: ["curlyBracesVisible"],
  18509. durationMultiplier: 0,
  18510. delayMultiplier: .5,
  18511. effect: "mutate",
  18512. easing: "easeOutQuad",
  18513. finalState: {
  18514. boxes: [{
  18515. id: i.id,
  18516. opacity: 1
  18517. }, {
  18518. id: o.id,
  18519. opacity: 1
  18520. }]
  18521. }
  18522. }, {
  18523. after: "curlyBracesVisible",
  18524. groups: ["curlyBracesReady"],
  18525. durationMultiplier: 1,
  18526. effect: "mutate",
  18527. easing: "easeOutQuad",
  18528. finalState: {
  18529. boxes: [{
  18530. id: i.id,
  18531. strokeOffset: 0
  18532. }, {
  18533. id: o.id,
  18534. strokeOffset: 0
  18535. }]
  18536. }
  18537. }]))
  18538. }(s),
  18539. s
  18540. }
  18541. },
  18542. 251: function(e, t, n) {
  18543. "use strict";
  18544. Object.defineProperty(t, "__esModule", {
  18545. value: !0
  18546. }),
  18547. t.generateBulletListSlide = t.layoutBulletListSlide = t.isBulletListLayoutEligibleFor = void 0;
  18548. const r = n(5)
  18549. , i = n(13)
  18550. , o = n(15)
  18551. , a = n(34)
  18552. , s = n(33)
  18553. , l = n(43)
  18554. , u = n(41)
  18555. , c = n(36)
  18556. , d = n(35)
  18557. , f = n(92)
  18558. , h = n(93)
  18559. , p = n(44)
  18560. , g = n(32)
  18561. , m = n(62)
  18562. , v = "bullet-list";
  18563. t.isBulletListLayoutEligibleFor = function(e) {
  18564. return "list" === e
  18565. }
  18566. ,
  18567. t.layoutBulletListSlide = function(e, t, n={}) {
  18568. var f, h, y;
  18569. const {topic: b, subtopics: _, headerTopic: w} = t
  18570. , S = null !== (f = n.numberOfVisitedTopics) && void 0 !== f ? f : 0
  18571. , x = null !== (h = null == n ? void 0 : n.dimension) && void 0 !== h ? h : g.defaultDimension
  18572. , k = null !== (y = null == n ? void 0 : n.appearance) && void 0 !== y ? y : o.defaultAppearance;
  18573. o.initializeSlideStyle(e, x, k, {
  18574. layout: v
  18575. });
  18576. const I = o.calcLength(x.hSlidePadding, e)
  18577. , C = o.calcLength(x.vSlidePadding, e)
  18578. , M = e.width - I - I
  18579. , T = o.calcLength(x.bulletListSlideParentTopicDefaultFontSize, e)
  18580. , A = o.calcLength(x.hPaddingXSmall, e)
  18581. , E = o.calcLength(x.vPaddingXSmall, e)
  18582. , O = {
  18583. left: I,
  18584. top: o.calcLength(x.vPaddingNormal, e),
  18585. right: I,
  18586. bottom: C
  18587. }
  18588. , B = o.calcLength(x.scrollFaderHeight, e)
  18589. , L = Math.round(o.calcLength(x.bulletListSlideSubtopicMaxFontSize, e))
  18590. , P = Math.round(o.calcLength(x.bulletListSlideSubtopicMinFontSize, e))
  18591. , R = o.calcLength(x.hPaddingXSmall, e)
  18592. , z = o.calcLength(x.vPaddingSmall, e)
  18593. , j = o.calcLength(x.hPaddingSmall, e)
  18594. , F = function(e, t, n, r, i) {
  18595. var o;
  18596. const {fontSize: s, markerRightMargin: u, maxWidth: f, maxLineCount: h} = i;
  18597. const g = null !== (o = e.markers) && void 0 !== o ? o : []
  18598. , y = g.slice(0, n.maxMarkerCount)
  18599. , b = m.computePlaceholder(e);
  18600. function _(n) {
  18601. return d.computeTopicTitleGroup(t, r, v, e.id, n, y, {
  18602. maxWidth: f,
  18603. fontSize: s,
  18604. markerRightMargin: u,
  18605. overflowWrap: "break-word",
  18606. textRoles: ["title"],
  18607. requestForHit: {
  18608. kind: "fastBackward"
  18609. },
  18610. placeholder: b
  18611. })
  18612. }
  18613. const w = c.computeTopicTitle(e);
  18614. let S, x = w;
  18615. if (x.length > 1) {
  18616. const e = a.rangedIntegers(x.length, 1)
  18617. , t = a.mapValues(e, e=>l.getTruncatedText(x, e))
  18618. , n = a.mapValues(t, e=>({
  18619. text: e,
  18620. group: _(e)
  18621. }))
  18622. , r = a.findClosestMatch(n, ({group: e})=>function(e) {
  18623. return e.textMeasurement.lineCount <= h
  18624. }(e));
  18625. r ? (x = r.text,
  18626. S = r.group) : (x = l.getTruncatedText(x, 1),
  18627. S = _(x))
  18628. } else
  18629. S = _(x);
  18630. return Object.assign(Object.assign({}, S), {
  18631. contentFeatures: p.computeContentFeaturesForTitleGroup(S, e.id, w, g)
  18632. })
  18633. }(b, e, x, k, {
  18634. fontSize: T,
  18635. markerRightMargin: A,
  18636. maxWidth: M,
  18637. maxLineCount: 1
  18638. })
  18639. , D = e.width
  18640. , N = e.height - C - F.groupBox.bounds.height - E
  18641. , U = function(e, t, n, s, u, f) {
  18642. const {paddings: h, maxWidth: g, maxHeight: y, maxFontSize: b, minFontSize: _, preferredLineCount: w, maxLineCount: S, markerRightMargin: x, subtopicSpacing: k, scrollFaderSize: I, numberOfVisitedTopics: C, bulletDotSizeRatio: M, bulletDotRightMargin: T} = f;
  18643. function A(e) {
  18644. return e.groupBox.contentHeight <= y
  18645. }
  18646. function E(e) {
  18647. return e.textMeasurement.lineCount <= w
  18648. }
  18649. const O = t.map(e=>{
  18650. var t;
  18651. return {
  18652. topicId: e.id,
  18653. text: c.computeTopicTitle(e),
  18654. markers: null !== (t = e.markers) && void 0 !== t ? t : [],
  18655. placeholder: m.computePlaceholder(e)
  18656. }
  18657. }
  18658. );
  18659. function B(t) {
  18660. const c = []
  18661. , f = []
  18662. , m = t * M
  18663. , b = [];
  18664. let _ = h.top
  18665. , w = 0;
  18666. O.forEach(({topicId: e, text: y, markers: I, placeholder: M},A)=>{
  18667. var O;
  18668. const B = A > C
  18669. , L = g - h.left - m - T - h.right
  18670. , P = I.slice(0, s.maxMarkerCount);
  18671. function R(i) {
  18672. return d.computeTopicTitleGroup(n, u, v, e, i, P, {
  18673. maxWidth: L,
  18674. fontSize: t,
  18675. markerRightMargin: x,
  18676. textRoles: ["subtopic"],
  18677. groupRoles: r.toBoxRoles({
  18678. pending: B
  18679. }),
  18680. requestForHit: {
  18681. kind: "present",
  18682. topicId: e,
  18683. viaIntro: !0
  18684. },
  18685. placeholder: M
  18686. })
  18687. }
  18688. let z = R(y);
  18689. if (!function(e) {
  18690. return e.textMeasurement.lineCount <= S
  18691. }(z)) {
  18692. const e = a.rangedIntegers(y.length - 1, 1)
  18693. , t = a.mapValues(e, e=>l.getTruncatedText(y, e))
  18694. , n = a.mapValues(t, e=>R(e));
  18695. z = null !== (O = a.findClosestMatch(n, E)) && void 0 !== O ? O : R(l.getTruncatedText(y, 1))
  18696. }
  18697. const j = m
  18698. , F = z.textMeasurement.lineHeight
  18699. , D = function(e, t, n, a, s, l={}) {
  18700. var u;
  18701. const c = null !== (u = l.additionalRoles) && void 0 !== u ? u : []
  18702. , d = Math.min(a, s) / 2
  18703. , f = `M ${a / 2 - d},${s / 2} a ${d},${d} 0 1,1 ${2 * d},0 a ${d},${d} 0 1,1 -${2 * d},0`
  18704. , h = {
  18705. id: r.bulletDotOfTopic(e),
  18706. roles: ["bulletDot", ...c],
  18707. bounds: {
  18708. x: 0,
  18709. y: 0,
  18710. width: a,
  18711. height: s
  18712. },
  18713. absBounds: i.zeroRect(),
  18714. contentType: "shape",
  18715. shapePath: f
  18716. };
  18717. return o.initializeBoxStyle(h, t, n, {
  18718. layout: v
  18719. }),
  18720. h
  18721. }(e, n, u, j, F, {
  18722. additionalRoles: r.toBoxRoles({
  18723. pending: B
  18724. })
  18725. })
  18726. , N = z.groupBox.bounds;
  18727. D.bounds.x = h.left,
  18728. N.x = D.bounds.x + D.bounds.width + T,
  18729. D.bounds.y = _,
  18730. N.y = _,
  18731. _ += N.height + k,
  18732. w > 0 && (w += k),
  18733. w += N.height,
  18734. c.push(z),
  18735. f.push(D),
  18736. b.push(...p.computeContentFeaturesForTitleGroup(z, e, y, I))
  18737. }
  18738. ),
  18739. w += h.top + h.bottom;
  18740. const A = {
  18741. id: r.subtopicListGroupOfTopic(e),
  18742. roles: ["subtopicListGroup"],
  18743. bounds: {
  18744. x: 0,
  18745. y: 0,
  18746. width: g,
  18747. height: Math.min(w, y)
  18748. },
  18749. absBounds: i.zeroRect(),
  18750. contentType: "group",
  18751. children: [...c.map(e=>e.groupBox), ...f],
  18752. contentHeight: w,
  18753. overflow: w > y ? "scroll" : "hidden",
  18754. scrollFaderSize: I
  18755. };
  18756. return o.initializeBoxStyle(A, n, u, {
  18757. layout: v
  18758. }),
  18759. {
  18760. groupBox: A,
  18761. subtopicGroups: c,
  18762. bulletDotShapes: f,
  18763. contentFeatures: b
  18764. }
  18765. }
  18766. let L, P;
  18767. const R = a.rangedIntegers(b, _)
  18768. , z = a.mapValues(R, e=>({
  18769. fontSize: e,
  18770. group: B(e)
  18771. }))
  18772. , j = a.findClosestMatch(z, ({group: e})=>function(e) {
  18773. return e.subtopicGroups.every(E)
  18774. }(e));
  18775. j ? (L = j.fontSize,
  18776. P = j.group) : (L = _,
  18777. P = B(L));
  18778. if (!A(P) && L > _) {
  18779. const e = a.rangedIntegers(L, _)
  18780. , t = a.mapValues(e, e=>({
  18781. fontSize: e,
  18782. group: B(e)
  18783. }))
  18784. , n = a.findClosestMatch(t, ({group: e})=>A(e));
  18785. n ? (L = n.fontSize,
  18786. P = n.group) : (L = b,
  18787. P = B(L))
  18788. }
  18789. return P
  18790. }(b.id, _, e, x, k, {
  18791. paddings: O,
  18792. maxWidth: D,
  18793. maxHeight: N,
  18794. maxFontSize: L,
  18795. minFontSize: P,
  18796. markerRightMargin: R,
  18797. preferredLineCount: 2,
  18798. maxLineCount: 3,
  18799. subtopicSpacing: z,
  18800. scrollFaderSize: B,
  18801. numberOfVisitedTopics: S,
  18802. bulletDotSizeRatio: .3,
  18803. bulletDotRightMargin: j
  18804. });
  18805. F.groupBox.bounds.x = I,
  18806. F.groupBox.bounds.y = C,
  18807. U.groupBox.bounds.x = 0,
  18808. U.groupBox.bounds.y = F.groupBox.bounds.y + F.groupBox.bounds.height + E,
  18809. e.boxes.push(F.groupBox),
  18810. e.boxes.push(U.groupBox),
  18811. w && u.addHeaderBoxes(e, w, x, k, v),
  18812. s.computeAbsoluteBounds(e.boxes),
  18813. r.addSlideContentFeatures(e, ...F.contentFeatures, ...U.contentFeatures)
  18814. }
  18815. ,
  18816. t.generateBulletListSlide = function(e, t, n={}) {
  18817. var i;
  18818. const {subtopics: o} = t
  18819. , a = null !== (i = n.numberOfVisitedTopics) && void 0 !== i ? i : 0
  18820. , s = Object.assign({}, e);
  18821. o.forEach(({id: e},t)=>{
  18822. t > a && (f.computePendingBoxStates(s, r.titleOfTopic(e)),
  18823. f.computePendingBoxStates(s, r.bulletDotOfTopic(e)))
  18824. }
  18825. );
  18826. const l = a;
  18827. return h.computeSubtopicListScrollingStates(s, r.subtopicListGroupOfTopic(s.topicId), r.titleOfTopic(o[l].id), (e,t)=>t.bounds.height / 2 - e.bounds.height / 2),
  18828. function(e) {
  18829. var t;
  18830. const n = r.assertBox(r.getBoxById(e.boxes, r.subtopicListGroupOfTopic(e.topicId)));
  18831. (null === (t = e.aliases) || void 0 === t ? void 0 : t.some(t=>"listOfTopic" === t.kind && t.topicId === e.topicId && 0 === t.index)) && (r.setSlideEnteringState(e, {
  18832. boxes: [{
  18833. id: n.id,
  18834. opacity: 0
  18835. }]
  18836. }),
  18837. r.addSlideEnteringAnimations(e, [{
  18838. on: "postTransition",
  18839. durationMultiplier: 1,
  18840. delayMultiplier: .75,
  18841. effect: "mutate",
  18842. easing: "easeOutQuad",
  18843. finalState: {
  18844. boxes: [{
  18845. id: n.id,
  18846. opacity: 1
  18847. }]
  18848. }
  18849. }]))
  18850. }(s),
  18851. s
  18852. }
  18853. },
  18854. 252: function(e, t, n) {
  18855. "use strict";
  18856. Object.defineProperty(t, "__esModule", {
  18857. value: !0
  18858. }),
  18859. t.generateOnlyChildListSlide = t.layoutOnlyChildListSlide = t.isOnlyChildLayoutEligibleFor = void 0;
  18860. const r = n(5)
  18861. , i = n(13)
  18862. , o = n(15)
  18863. , a = n(34)
  18864. , s = n(43)
  18865. , l = n(36)
  18866. , u = n(33)
  18867. , c = n(41)
  18868. , d = n(35)
  18869. , f = n(44)
  18870. , h = n(32)
  18871. , p = n(62)
  18872. , g = "only-child";
  18873. function m(e) {
  18874. const t = e.subtopics[0];
  18875. if (!t)
  18876. throw new Error("No subtopics found for Only Child layout");
  18877. return t
  18878. }
  18879. t.isOnlyChildLayoutEligibleFor = function() {
  18880. return !1
  18881. }
  18882. ,
  18883. t.layoutOnlyChildListSlide = function(e, t, n={}) {
  18884. var v, y;
  18885. const {topic: b, headerTopic: _} = t
  18886. , w = m(t)
  18887. , S = null !== (v = null == n ? void 0 : n.dimension) && void 0 !== v ? v : h.defaultDimension
  18888. , x = null !== (y = null == n ? void 0 : n.appearance) && void 0 !== y ? y : o.defaultAppearance;
  18889. o.initializeSlideStyle(e, S, x, {
  18890. layout: g
  18891. });
  18892. const k = o.calcLength(S.hSlidePadding, e)
  18893. , I = o.calcLength(S.vSlidePadding, e)
  18894. , C = e.width - k - k
  18895. , M = e.height - I - I
  18896. , T = i.calc(.14, "vmin", e)
  18897. , A = o.calcLength(S.hPaddingXSmall, e)
  18898. , E = C
  18899. , O = o.calcLength(S.hPaddingXSmall, e)
  18900. , B = i.calc(.1, "vmin", e)
  18901. , L = i.calc(.04, "vmin", e)
  18902. , P = C
  18903. , R = o.calcLength(S.onlyChildSlideSeparatorLineWidth, e)
  18904. , z = o.calcLength(e.width > e.height ? S.vPaddingSmall : S.vPaddingXSmall, e)
  18905. , j = o.calcLength(e.width > e.height ? S.vPaddingSmall : S.vPaddingXSmall, e)
  18906. , F = C
  18907. , D = R + z + j
  18908. , N = function(e, t, n, r, i) {
  18909. var o, u;
  18910. const {fontSize: c, maxWidth: h, markerRightMargin: m, maxLineCount: v} = i;
  18911. const y = null !== (o = e.markers) && void 0 !== o ? o : []
  18912. , b = y.slice(0, n.maxMarkerCount)
  18913. , _ = p.computePlaceholder(e);
  18914. function w(n) {
  18915. return d.computeTopicTitleGroup(t, r, g, e.id, n, b, {
  18916. maxWidth: h,
  18917. fontSize: c,
  18918. markerRightMargin: m,
  18919. overflowWrap: "break-word",
  18920. textRoles: ["title"],
  18921. requestForHit: {
  18922. kind: "fastBackward"
  18923. },
  18924. placeholder: _
  18925. })
  18926. }
  18927. const S = l.computeTopicTitle(e)
  18928. , x = a.rangedIntegers(S.length, 1)
  18929. , k = a.mapValues(x, e=>s.getTruncatedText(S, e))
  18930. , I = a.mapValues(k, w)
  18931. , C = null !== (u = a.findClosestMatch(I, (function(e) {
  18932. return e.textMeasurement.lineCount <= v
  18933. }
  18934. ))) && void 0 !== u ? u : w(s.getTruncatedText(S, 1));
  18935. return Object.assign(Object.assign({}, C), {
  18936. contentFeatures: f.computeContentFeaturesForTitleGroup(C, e.id, S, y)
  18937. })
  18938. }(b, e, S, x, {
  18939. maxWidth: E,
  18940. fontSize: T,
  18941. markerRightMargin: A,
  18942. maxLineCount: 2
  18943. })
  18944. , U = function(e, t, n, r, i) {
  18945. var o, u;
  18946. const {maxWidth: c, maxHeight: h, maxFontSize: m, minFontSize: v, preferredLineCount: y, maxLineCount: b, markerRightMargin: _} = i;
  18947. const w = l.computeTopicTitle(e)
  18948. , S = null !== (o = e.markers) && void 0 !== o ? o : []
  18949. , x = p.computePlaceholder(e)
  18950. , k = S.slice(0, n.maxMarkerCount);
  18951. function I(n, i) {
  18952. return d.computeTopicTitleGroup(t, r, g, e.id, n, k, {
  18953. maxWidth: c,
  18954. fontSize: i,
  18955. markerRightMargin: _,
  18956. textRoles: ["subtopic"],
  18957. requestForHit: {
  18958. kind: "present",
  18959. topicId: e.id,
  18960. viaIntro: !0
  18961. },
  18962. placeholder: x
  18963. })
  18964. }
  18965. const C = a.rangedIntegers(m, v)
  18966. , M = a.mapValues(C, e=>I(w, e))
  18967. , T = a.findClosestMatch(M, (function(e) {
  18968. return e.groupBox.bounds.height <= h
  18969. }
  18970. ));
  18971. if (T)
  18972. return Object.assign(Object.assign({}, T), {
  18973. contentFeatures: f.computeContentFeaturesForTitleGroup(T, e.id, w, S)
  18974. });
  18975. const A = m;
  18976. let E = I(w, A);
  18977. if (!function(e) {
  18978. return e.textMeasurement.lineCount <= b
  18979. }(E)) {
  18980. const e = a.rangedIntegers(w.length - 1, 1)
  18981. , t = a.mapValues(e, e=>s.getTruncatedText(w, e))
  18982. , n = a.mapValues(t, e=>I(e, A));
  18983. E = null !== (u = a.findClosestMatch(n, (function(e) {
  18984. return e.textMeasurement.lineCount <= y
  18985. }
  18986. ))) && void 0 !== u ? u : I(s.getTruncatedText(w, 1), A)
  18987. }
  18988. return Object.assign(Object.assign({}, E), {
  18989. contentFeatures: f.computeContentFeaturesForTitleGroup(E, e.id, w, S)
  18990. })
  18991. }(w, e, S, x, {
  18992. maxWidth: P,
  18993. maxHeight: M - N.groupBox.bounds.height - D,
  18994. maxFontSize: B,
  18995. minFontSize: L,
  18996. preferredLineCount: 2,
  18997. maxLineCount: 3,
  18998. markerRightMargin: O
  18999. })
  19000. , W = Math.min(F, Math.max(N.groupBox.bounds.width, U.groupBox.bounds.width))
  19001. , H = function(e, t, n, a) {
  19002. const {lineLength: s, lineWidth: l, topPadding: u, bottomPadding: c} = a
  19003. , d = {
  19004. id: r.separatorLineOfTopic(e),
  19005. roles: ["separatorLine"],
  19006. bounds: {
  19007. x: 0,
  19008. y: 0,
  19009. width: s,
  19010. height: u + l + c
  19011. },
  19012. absBounds: i.zeroRect(),
  19013. contentType: "shape",
  19014. shapePath: `M${l / 2} ${u + l / 2}l${s - l} 0`,
  19015. lineWidth: l
  19016. };
  19017. return o.initializeBoxStyle(d, t, n, {
  19018. layout: g
  19019. }),
  19020. d
  19021. }(b.id, e, x, {
  19022. lineWidth: R,
  19023. lineLength: W,
  19024. topPadding: z,
  19025. bottomPadding: j
  19026. })
  19027. , V = (M - (N.groupBox.bounds.height + H.bounds.height + U.groupBox.bounds.height)) / 2;
  19028. N.groupBox.bounds.x = k,
  19029. N.groupBox.bounds.y = I + V,
  19030. H.bounds.x = k,
  19031. H.bounds.y = N.groupBox.bounds.y + N.groupBox.bounds.height,
  19032. U.groupBox.bounds.x = k,
  19033. U.groupBox.bounds.y = H.bounds.y + H.bounds.height,
  19034. e.boxes.push(N.groupBox),
  19035. e.boxes.push(U.groupBox),
  19036. e.boxes.push(H),
  19037. _ && c.addHeaderBoxes(e, _, S, x, g),
  19038. u.computeAbsoluteBounds(e.boxes),
  19039. r.addSlideContentFeatures(e, ...N.contentFeatures, ...U.contentFeatures)
  19040. }
  19041. ,
  19042. t.generateOnlyChildListSlide = function(e, t) {
  19043. var n, i;
  19044. const o = Object.assign({}, e)
  19045. , {id: a} = m(t)
  19046. , s = r.assertBox(r.getBoxById(o.boxes, r.titleOfTopic(a), "group"))
  19047. , l = r.assertBox(r.getBoxById(o.boxes, r.separatorLineOfTopic(o.topicId)));
  19048. return s.contentHeight > s.bounds.height && (null === (n = o.aliases) || void 0 === n ? void 0 : n.some(e=>"listOfTopic" === e.kind && e.topicId === o.topicId && 0 === e.index)) && (o.multistepBoxes = [...null !== (i = o.multistepBoxes) && void 0 !== i ? i : [], s.id],
  19049. r.addSlideLeavingAnimations(o, [{
  19050. durationMultiplier: 1,
  19051. easing: "easeInOutCubic",
  19052. on: "preTransition",
  19053. effect: "mutate",
  19054. finalState: {
  19055. boxes: [{
  19056. id: s.id,
  19057. scrollOffset: 0
  19058. }]
  19059. }
  19060. }])),
  19061. function(e, {subtopicGroupBox: t, separatorLineBox: n}) {
  19062. var i;
  19063. (null === (i = e.aliases) || void 0 === i ? void 0 : i.some(t=>"listOfTopic" === t.kind && t.topicId === e.topicId && 0 === t.index)) && (r.setSlideEnteringState(e, {
  19064. boxes: [{
  19065. id: t.id,
  19066. opacity: 0
  19067. }, {
  19068. id: n.id,
  19069. opacity: 0,
  19070. strokeOffset: 1
  19071. }]
  19072. }),
  19073. r.addSlideEnteringAnimations(e, [{
  19074. on: "postTransition",
  19075. durationMultiplier: 1,
  19076. delayMultiplier: .75,
  19077. effect: "mutate",
  19078. easing: "easeOutQuad",
  19079. finalState: {
  19080. boxes: [{
  19081. id: t.id,
  19082. opacity: 1
  19083. }]
  19084. }
  19085. }, {
  19086. on: "postTransition",
  19087. groups: ["separatorVisible"],
  19088. durationMultiplier: 0,
  19089. delayMultiplier: .5,
  19090. effect: "mutate",
  19091. easing: "easeOutQuad",
  19092. finalState: {
  19093. boxes: [{
  19094. id: n.id,
  19095. opacity: 1
  19096. }]
  19097. }
  19098. }, {
  19099. after: "separatorVisible",
  19100. durationMultiplier: 1,
  19101. effect: "mutate",
  19102. easing: "easeOutQuad",
  19103. finalState: {
  19104. boxes: [{
  19105. id: n.id,
  19106. strokeOffset: 0
  19107. }]
  19108. }
  19109. }]))
  19110. }(o, {
  19111. subtopicGroupBox: s,
  19112. separatorLineBox: l
  19113. }),
  19114. o
  19115. }
  19116. },
  19117. 253: function(e, t, n) {
  19118. "use strict";
  19119. Object.defineProperty(t, "__esModule", {
  19120. value: !0
  19121. }),
  19122. t.generateSummarySlide = t.layoutSummarySlide = t.isSummaryLayoutEligibleFor = void 0;
  19123. const r = n(5)
  19124. , i = n(13)
  19125. , o = n(33)
  19126. , a = n(15)
  19127. , s = n(12)
  19128. , l = n(42)
  19129. , u = n(34)
  19130. , c = n(41)
  19131. , d = n(35)
  19132. , f = n(43)
  19133. , h = n(36)
  19134. , p = n(44)
  19135. , g = n(32)
  19136. , m = n(61)
  19137. , v = n(62)
  19138. , y = "summary";
  19139. function b(e, t, n, g, b) {
  19140. const {topic: _, headerTopic: w, summarySubtopics: S} = t
  19141. , {hSlidePadding: x, vSlidePadding: k, summaryTopicMaxFontSize: I, summaryTopicMinFontSize: C, summaryTopicMarkerRightMargin: M, subtopicFontSize: T, subtopicMarkerRightMargin: A, subtopicMaxLineCount: E, summarySlideLineStrokeWidth: O} = b
  19142. , B = e.width - 2 * x
  19143. , L = e.height - 2 * k
  19144. , P = .3 * B
  19145. , R = L
  19146. , z = S.length > 1 ? "brace" : "flatLine"
  19147. , j = S.length > 1 ? a.calcLength({
  19148. pct: 100 / 15,
  19149. unit: "vw"
  19150. }, e) : a.calcLength({
  19151. pct: 100 / 15 * 2,
  19152. unit: "vw"
  19153. }, e)
  19154. , F = (S.length,
  19155. a.calcLength(n.hPaddingNormal, e))
  19156. , D = S.length > 1 ? a.calcLength(n.hPaddingXSmall, e) : a.calcLength(n.hPaddingNormal, e)
  19157. , N = F + j + D
  19158. , U = L
  19159. , W = B - P - N
  19160. , H = L
  19161. , V = a.calcLength(n.vPaddingMedium, e)
  19162. , $ = function(e, t, n, r, i) {
  19163. var o;
  19164. const {maxWidth: a, maxFontSize: s, minFontSize: l, markerRightMargin: c, preferredLineCount: g, maxLineCount: m} = i;
  19165. function b(e) {
  19166. return e.groupBox.bounds.width <= a
  19167. }
  19168. function _(e) {
  19169. return e.textMeasurement.lineCount <= g
  19170. }
  19171. function w(e) {
  19172. return e.textMeasurement.lineCount <= m
  19173. }
  19174. const S = null !== (o = e.markers) && void 0 !== o ? o : []
  19175. , x = S.slice(0, n.maxMarkerCount)
  19176. , k = v.computePlaceholder(e);
  19177. function I(n, i, o) {
  19178. return d.computeTopicTitleGroup(t, r, y, e.id, n, x, {
  19179. maxWidth: a,
  19180. fontSize: i,
  19181. markerRightMargin: c,
  19182. overflowWrap: o,
  19183. textRoles: ["title"],
  19184. requestForHit: {
  19185. kind: "present",
  19186. topicId: e.id
  19187. },
  19188. placeholder: k
  19189. })
  19190. }
  19191. const C = h.computeTopicTitle(e);
  19192. let M = C
  19193. , T = s
  19194. , A = "normal"
  19195. , E = I(M, T, A);
  19196. if (b(E) && _(E))
  19197. return Object.assign(Object.assign({}, E), {
  19198. contentFeatures: p.computeContentFeaturesForTitleGroup(E, e.id, C, S)
  19199. });
  19200. if (T = l,
  19201. E = I(M, T, A),
  19202. b(E)) {
  19203. if (_(E)) {
  19204. const e = u.rangedIntegers(s, l)
  19205. , t = u.mapValues(e, e=>({
  19206. fontSize: e,
  19207. group: I(M, e, A)
  19208. }))
  19209. , n = u.findClosestMatch(t, ({group: e})=>b(e) && _(e));
  19210. if (!n)
  19211. throw new Error("Unable to find the best font size for parent topic of summary slide");
  19212. T = n.fontSize,
  19213. E = n.group
  19214. }
  19215. } else {
  19216. A = "break-word";
  19217. const e = u.rangedIntegers(s, l)
  19218. , t = u.mapValues(e, e=>({
  19219. fontSize: e,
  19220. group: I(M, e, A)
  19221. }))
  19222. , n = u.findClosestMatch(t, ({group: e})=>_(e));
  19223. n ? (T = n.fontSize,
  19224. E = n.group) : (T = l,
  19225. E = I(M, T, A))
  19226. }
  19227. if (!w(E)) {
  19228. const e = u.rangedIntegers(M.length - 1, 1)
  19229. , t = u.mapValues(e, e=>f.getTruncatedText(M, e))
  19230. , n = u.mapValues(t, e=>({
  19231. text: e,
  19232. group: I(e, T, A)
  19233. }))
  19234. , r = u.findClosestMatch(n, ({group: e})=>w(e));
  19235. r ? (M = r.text,
  19236. E = r.group) : (M = f.getTruncatedText(M, 1),
  19237. E = I(M, T, A))
  19238. }
  19239. return Object.assign(Object.assign({}, E), {
  19240. contentFeatures: p.computeContentFeaturesForTitleGroup(E, e.id, C, S)
  19241. })
  19242. }(_, e, n, g, {
  19243. maxWidth: P,
  19244. maxFontSize: I,
  19245. minFontSize: C,
  19246. markerRightMargin: M,
  19247. preferredLineCount: 2,
  19248. maxLineCount: 5
  19249. })
  19250. , G = $.groupBox.bounds.width
  19251. , Z = $.groupBox.bounds.height
  19252. , q = function(e, t, n, o, c, g) {
  19253. var b, _;
  19254. const {maxWidth: w, maxHeight: S, fontSize: x, markerRightMargin: k, maxLineCount: I, spacingForMultipleSubtopics: C} = g;
  19255. function M(e) {
  19256. return e.textMeasurement.lineCount <= I
  19257. }
  19258. function T(e, t, r, i) {
  19259. return d.computeTopicTitleGroup(n, c, y, e, t, r, {
  19260. maxWidth: w,
  19261. fontSize: x,
  19262. markerRightMargin: k,
  19263. textRoles: ["subtopic"],
  19264. requestForHit: {
  19265. kind: "present",
  19266. topicId: e,
  19267. viaIntro: !0
  19268. },
  19269. placeholder: i
  19270. })
  19271. }
  19272. const A = t.length
  19273. , E = (A > 2 ? [t[0], t[t.length - 1]] : t).map(e=>{
  19274. var t, n;
  19275. const r = h.computeTopicTitle(e)
  19276. , i = null !== (t = e.markers) && void 0 !== t ? t : []
  19277. , a = i.slice(0, o.maxMarkerCount)
  19278. , s = v.computePlaceholder(e)
  19279. , l = u.rangedIntegers(r.length, 1)
  19280. , c = u.mapValues(l, e=>f.getTruncatedText(r, e))
  19281. , d = u.mapValues(c, t=>T(e.id, t, a, s))
  19282. , g = null !== (n = u.findClosestMatch(d, M)) && void 0 !== n ? n : T(e.id, f.getTruncatedText(r, 1), a, s);
  19283. return Object.assign(Object.assign({}, g), {
  19284. contentFeatures: p.computeContentFeaturesForTitleGroup(g, e.id, r, i)
  19285. })
  19286. }
  19287. )
  19288. , O = E.reduce((e,t)=>Math.max(e, t.groupBox.bounds.width), 0)
  19289. , B = E.reduce((e,t)=>e + t.groupBox.bounds.height, 0)
  19290. , L = A > 2 ? function(e, t, n, o, u) {
  19291. const c = {
  19292. id: r.subtopicEllipsisOfSummary(e),
  19293. roles: ["subtopic"],
  19294. bounds: i.zeroRect(),
  19295. absBounds: i.zeroRect(),
  19296. contentType: "text",
  19297. text: "...",
  19298. fontSize: s.toCSSLength(o),
  19299. lineHeight: m.computeTextLineHeight(o)
  19300. };
  19301. a.initializeBoxStyle(c, t, n, {
  19302. layout: y
  19303. });
  19304. const d = l.measureText(c, {
  19305. maxWidth: u
  19306. })
  19307. , {width: f, height: h} = d;
  19308. return c.bounds.width = f,
  19309. c.bounds.height = h,
  19310. c
  19311. }(e, n, c, x, w) : null
  19312. , P = null !== (b = null == L ? void 0 : L.bounds.width) && void 0 !== b ? b : 0
  19313. , R = null !== (_ = null == L ? void 0 : L.bounds.height) && void 0 !== _ ? _ : 0
  19314. , z = {
  19315. id: r.subtopicListGroupOfTopic(e),
  19316. roles: ["subtopicListGroup"],
  19317. bounds: i.zeroRect(),
  19318. absBounds: i.zeroRect(),
  19319. contentType: "group",
  19320. children: [],
  19321. overflow: "visible",
  19322. contentHeight: 0
  19323. };
  19324. a.initializeBoxStyle(z, n, c, {
  19325. layout: y
  19326. });
  19327. const j = Math.min(w, Math.max(O, P))
  19328. , F = B + R
  19329. , D = A > 2 ? C : (S - F) / 3;
  19330. let N = 0
  19331. , U = 0;
  19332. E.forEach((e,t)=>{
  19333. t === E.length - 1 && L && (L.bounds.y = N,
  19334. L.bounds.x = j - L.bounds.width,
  19335. z.children.push(L),
  19336. N += L.bounds.height + D,
  19337. U > 0 && (U += D),
  19338. U += L.bounds.height),
  19339. e.groupBox.bounds.y = N,
  19340. e.groupBox.bounds.x = j - e.groupBox.bounds.width,
  19341. z.children.push(e.groupBox),
  19342. N += e.groupBox.bounds.height + D,
  19343. U > 0 && (U += D),
  19344. U += e.groupBox.bounds.height
  19345. }
  19346. ),
  19347. z.contentHeight = U,
  19348. z.bounds.width = j,
  19349. z.bounds.height = Math.min(S, U);
  19350. const W = E.reduce((e,t)=>[...e, ...t.contentFeatures], []);
  19351. return {
  19352. groupBox: z,
  19353. subtopicGroups: E,
  19354. ellipsisBox: L,
  19355. contentFeatures: W
  19356. }
  19357. }(_.id, S, e, n, g, {
  19358. maxWidth: W,
  19359. maxHeight: H,
  19360. fontSize: T,
  19361. markerRightMargin: A,
  19362. maxLineCount: E,
  19363. spacingForMultipleSubtopics: V
  19364. })
  19365. , Y = q.groupBox.bounds.width
  19366. , X = q.groupBox.bounds.height
  19367. , J = (H - X) / 2
  19368. , Q = H - X - J
  19369. , K = J + (q.subtopicGroups.length > 0 ? q.subtopicGroups[0].groupBox.bounds.height / 2 : 0)
  19370. , ee = Q + (q.subtopicGroups.length > 0 ? q.subtopicGroups[q.subtopicGroups.length - 1].groupBox.bounds.height / 2 : 0)
  19371. , te = function(e, t, n, o) {
  19372. const {type: s, width: l, height: u, leftPadding: c, rightPadding: d, topPadding: f, bottomPadding: h, summarySlideLineStrokeWidth: p} = o
  19373. , g = l - c - d
  19374. , m = []
  19375. , v = {
  19376. id: r.braceShapeOfSummary(e),
  19377. roles: ["curlyBraceGroup"],
  19378. bounds: {
  19379. x: 0,
  19380. y: 0,
  19381. width: l,
  19382. height: u
  19383. },
  19384. absBounds: i.zeroRect(),
  19385. contentType: "group",
  19386. children: [],
  19387. contentHeight: u,
  19388. overflow: "visible"
  19389. };
  19390. if (a.initializeBoxStyle(v, t, n, {
  19391. layout: y
  19392. }),
  19393. "flatLine" === s) {
  19394. const o = {
  19395. id: r.topBraceOfSummary(e),
  19396. roles: ["curlyBrace"],
  19397. bounds: {
  19398. x: 0,
  19399. y: 0,
  19400. width: l,
  19401. height: u
  19402. },
  19403. absBounds: i.zeroRect(),
  19404. contentType: "shape",
  19405. shapePath: `M${c} ${u / 2} l${g} 0`,
  19406. lineWidth: p
  19407. };
  19408. a.initializeBoxStyle(o, t, n, {
  19409. layout: y
  19410. }),
  19411. m.push(o),
  19412. v.children.push(o)
  19413. } else {
  19414. const o = c
  19415. , s = c + g / 2
  19416. , d = c + g
  19417. , b = f
  19418. , _ = u / 2
  19419. , w = u - h
  19420. , S = {
  19421. id: r.topBraceOfSummary(e),
  19422. roles: ["curlyBrace"],
  19423. bounds: {
  19424. x: 0,
  19425. y: 0,
  19426. width: l,
  19427. height: u
  19428. },
  19429. absBounds: i.zeroRect(),
  19430. contentType: "shape",
  19431. shapePath: `M${o} ${b} L${s} ${b} L${s} ${_} L${d} ${_}`,
  19432. lineWidth: p
  19433. };
  19434. a.initializeBoxStyle(S, t, n, {
  19435. layout: y
  19436. });
  19437. const x = {
  19438. id: r.bottomBraceOfSummary(e),
  19439. roles: ["curlyBrace"],
  19440. bounds: {
  19441. x: 0,
  19442. y: 0,
  19443. width: l,
  19444. height: u
  19445. },
  19446. absBounds: i.zeroRect(),
  19447. contentType: "shape",
  19448. shapePath: `M${o} ${w} L${s} ${w} L${s} ${_}`,
  19449. lineWidth: p
  19450. };
  19451. a.initializeBoxStyle(x, t, n, {
  19452. layout: y
  19453. }),
  19454. m.push(S),
  19455. m.push(x),
  19456. v.children.push(S),
  19457. v.children.push(x)
  19458. }
  19459. return {
  19460. groupBox: v,
  19461. lineShapes: m
  19462. }
  19463. }(_.id, e, g, {
  19464. type: z,
  19465. width: N,
  19466. height: U,
  19467. leftPadding: F,
  19468. rightPadding: D,
  19469. topPadding: K,
  19470. bottomPadding: ee,
  19471. summarySlideLineStrokeWidth: O
  19472. })
  19473. , ne = te.groupBox.bounds.width
  19474. , re = te.groupBox.bounds.height
  19475. , ie = x + (B - (Y + N + P)) / 2
  19476. , oe = x + B / 2 - j / 2 - F - Y
  19477. , ae = Math.max(ie, oe)
  19478. , se = ae
  19479. , le = ae + Y
  19480. , ue = le + N
  19481. , ce = k + J
  19482. , de = k
  19483. , fe = k;
  19484. $.groupBox.bounds.x = ue + (P - G) / 2,
  19485. $.groupBox.bounds.y = fe + (R - Z) / 2,
  19486. te.groupBox.bounds.x = le + (N - ne) / 2,
  19487. te.groupBox.bounds.y = de + (U - re) / 2,
  19488. q.groupBox.bounds.x = se,
  19489. q.groupBox.bounds.y = ce,
  19490. e.boxes.push($.groupBox),
  19491. e.boxes.push(q.groupBox),
  19492. e.boxes.push(te.groupBox),
  19493. w && c.addHeaderBoxes(e, w, n, g, y),
  19494. o.computeAbsoluteBounds(e.boxes),
  19495. r.addSlideContentFeatures(e, ...$.contentFeatures, ...q.contentFeatures)
  19496. }
  19497. function _(e, t, n, s, l) {
  19498. const {topic: f, headerTopic: g, summarySubtopics: m} = t
  19499. , {hSlidePadding: b, vSlidePadding: _, summaryTopicMaxFontSize: S, summaryTopicMinFontSize: x, summaryTopicMarkerRightMargin: k, subtopicFontSize: I, subtopicMarkerRightMargin: C, subtopicMaxLineCount: M, summarySlideLineStrokeWidth: T} = l
  19500. , A = e.width - 2 * b
  19501. , E = g ? e.height - _ : e.height
  19502. , O = a.calcLength(n.summaryScrollFaderHeight, e)
  19503. , B = A
  19504. , L = a.calcLength(n.vPaddingSmall, e)
  19505. , P = a.calcLength(n.vPaddingSmall, e)
  19506. , R = a.calcLength(n.vPaddingXSmall, e)
  19507. , z = a.calcLength(n.summarySlideLineHeight, e)
  19508. , j = A
  19509. , F = P + z + R
  19510. , D = function(e, t, n, o) {
  19511. const {width: s, height: l, topPadding: u, summaryVerticalLineHeight: c, summarySlideLineStrokeWidth: d} = o
  19512. , f = {
  19513. id: r.braceShapeOfSummary(e),
  19514. roles: ["curlyBraceGroup"],
  19515. bounds: {
  19516. x: 0,
  19517. y: 0,
  19518. width: s,
  19519. height: l
  19520. },
  19521. absBounds: i.zeroRect(),
  19522. contentType: "group",
  19523. children: [],
  19524. contentHeight: l,
  19525. overflow: "visible"
  19526. }
  19527. , h = []
  19528. , p = {
  19529. id: r.topBraceOfSummary(e),
  19530. roles: ["curlyBrace"],
  19531. bounds: {
  19532. x: 0,
  19533. y: 0,
  19534. width: s,
  19535. height: l
  19536. },
  19537. absBounds: i.zeroRect(),
  19538. contentType: "shape",
  19539. shapePath: `M ${d} ${u} L ${s - d} ${u} L ${s / 2} ${u} L ${s / 2} ${u + c} `,
  19540. lineWidth: d
  19541. };
  19542. return a.initializeBoxStyle(p, t, n, {
  19543. layout: y
  19544. }),
  19545. h.push(p),
  19546. f.children.push(p),
  19547. a.initializeBoxStyle(f, t, n, {
  19548. layout: y
  19549. }),
  19550. {
  19551. groupBox: f,
  19552. lineShapes: h
  19553. }
  19554. }(f.id, e, s, {
  19555. width: j,
  19556. height: F,
  19557. topPadding: P,
  19558. summaryVerticalLineHeight: z,
  19559. summarySlideLineStrokeWidth: T
  19560. })
  19561. , N = Math.min(m.length, 2);
  19562. let U = w(f.id, m, e, n, s, {
  19563. maxWidth: B,
  19564. fontSize: I,
  19565. markerRightMargin: C,
  19566. maxLineCount: M,
  19567. subtopicSpacing: L,
  19568. maxSubtopicCount: N
  19569. });
  19570. const W = U.groupBox.bounds.height
  19571. , H = A;
  19572. N < m.length && (U = w(f.id, m, e, n, s, {
  19573. maxWidth: B,
  19574. fontSize: I,
  19575. markerRightMargin: C,
  19576. maxLineCount: M,
  19577. subtopicSpacing: L,
  19578. maxSubtopicCount: m.length
  19579. }));
  19580. const V = function(e, t, n, r, i) {
  19581. var o;
  19582. const {maxWidth: a, maxHeight: s, maxFontSize: l, minFontSize: c, markerRightMargin: f} = i;
  19583. function g(e) {
  19584. return e.groupBox.contentHeight <= s
  19585. }
  19586. const m = null !== (o = e.markers) && void 0 !== o ? o : []
  19587. , b = m.slice(0, n.maxMarkerCount)
  19588. , _ = v.computePlaceholder(e);
  19589. function w(n, i, o) {
  19590. return d.computeTopicTitleGroup(t, r, y, e.id, n, b, {
  19591. maxWidth: a,
  19592. fontSize: i,
  19593. markerRightMargin: f,
  19594. overflowWrap: o,
  19595. textRoles: ["title"],
  19596. textAlignment: "leading",
  19597. requestForHit: {
  19598. kind: "present",
  19599. topicId: e.id
  19600. },
  19601. placeholder: _
  19602. })
  19603. }
  19604. const S = h.computeTopicTitle(e);
  19605. let x = l;
  19606. let k = w(S, x, "break-word");
  19607. if (g(k))
  19608. return Object.assign(Object.assign({}, k), {
  19609. contentFeatures: p.computeContentFeaturesForTitleGroup(k, e.id, S, m)
  19610. });
  19611. if (x = c,
  19612. k = w(S, x, "break-word"),
  19613. g(k)) {
  19614. const e = u.rangedIntegers(l, c)
  19615. , t = u.mapValues(e, e=>({
  19616. fontSize: e,
  19617. group: w(S, e, "break-word")
  19618. }))
  19619. , n = u.findClosestMatch(t, ({group: e})=>g(e));
  19620. if (!n)
  19621. throw new Error("Unable to find the best font size for parent topic of summary slide");
  19622. x = n.fontSize,
  19623. k = n.group
  19624. }
  19625. return Object.assign(Object.assign({}, k), {
  19626. contentFeatures: p.computeContentFeaturesForTitleGroup(k, e.id, S, m)
  19627. })
  19628. }(f, e, n, s, {
  19629. maxWidth: H,
  19630. maxHeight: E - U.groupBox.bounds.height - D.groupBox.bounds.height,
  19631. maxFontSize: S,
  19632. minFontSize: x,
  19633. markerRightMargin: k
  19634. })
  19635. , $ = U.groupBox.bounds.height + D.groupBox.bounds.height + V.groupBox.bounds.height;
  19636. U.groupBox.bounds.x = b,
  19637. U.groupBox.bounds.y = 0,
  19638. D.groupBox.bounds.x = b,
  19639. D.groupBox.bounds.y = U.groupBox.bounds.y + U.groupBox.bounds.height,
  19640. V.groupBox.bounds.x = b,
  19641. V.groupBox.bounds.y = D.groupBox.bounds.y + D.groupBox.bounds.height;
  19642. const G = {
  19643. id: r.contentOfSummary(e.topicId),
  19644. roles: [],
  19645. bounds: {
  19646. x: 0,
  19647. y: 0,
  19648. width: e.width,
  19649. height: E
  19650. },
  19651. absBounds: i.zeroRect(),
  19652. contentType: "group",
  19653. children: [V.groupBox, U.groupBox, D.groupBox],
  19654. contentHeight: $,
  19655. overflow: "scroll",
  19656. scrollFaderSize: O
  19657. };
  19658. a.initializeBoxStyle(G, e, s, {
  19659. layout: y
  19660. }),
  19661. e.boxes.push(G),
  19662. g && c.addHeaderBoxes(e, g, n, s, y),
  19663. G.contentHeight <= e.height - 2 * _ ? G.bounds.y = (e.height - $) / 2 : (G.contentHeight += _,
  19664. G.bounds.y = e.height - E,
  19665. m.length > N && (G.scrollOffset = Math.min(U.groupBox.bounds.height - W, G.contentHeight - E))),
  19666. o.computeAbsoluteBounds(e.boxes),
  19667. r.addSlideContentFeatures(e, ...V.contentFeatures, ...U.contentFeatures)
  19668. }
  19669. function w(e, t, n, o, s, l) {
  19670. const {maxWidth: c, fontSize: g, markerRightMargin: m, maxLineCount: b, subtopicSpacing: _, maxSubtopicCount: w} = l;
  19671. function S(e) {
  19672. return e.textMeasurement.lineCount <= b
  19673. }
  19674. function x(e, t, r, i) {
  19675. return d.computeTopicTitleGroup(n, s, y, e, t, r, {
  19676. maxWidth: c,
  19677. fontSize: g,
  19678. markerRightMargin: m,
  19679. textRoles: ["subtopic"],
  19680. requestForHit: {
  19681. kind: "present",
  19682. topicId: e,
  19683. viaIntro: !0
  19684. },
  19685. placeholder: i
  19686. })
  19687. }
  19688. const k = (t.length > w ? t.slice(t.length - w, t.length) : t).map(e=>{
  19689. var t, n;
  19690. const r = h.computeTopicTitle(e)
  19691. , i = null !== (t = e.markers) && void 0 !== t ? t : []
  19692. , a = i.slice(0, o.maxMarkerCount)
  19693. , s = v.computePlaceholder(e)
  19694. , l = u.rangedIntegers(r.length, 1)
  19695. , c = u.mapValues(l, e=>f.getTruncatedText(r, e))
  19696. , d = u.mapValues(c, t=>x(e.id, t, a, s))
  19697. , g = null !== (n = u.findClosestMatch(d, S)) && void 0 !== n ? n : x(e.id, f.getTruncatedText(r, 1), a, s);
  19698. return Object.assign(Object.assign({}, g), {
  19699. contentFeatures: p.computeContentFeaturesForTitleGroup(g, e.id, r, i)
  19700. })
  19701. }
  19702. )
  19703. , I = {
  19704. id: r.subtopicListGroupOfTopic(e),
  19705. roles: ["subtopicListGroup"],
  19706. bounds: i.zeroRect(),
  19707. absBounds: i.zeroRect(),
  19708. contentType: "group",
  19709. children: [],
  19710. overflow: "scroll",
  19711. contentHeight: 0
  19712. };
  19713. a.initializeBoxStyle(I, n, s, {
  19714. layout: y
  19715. });
  19716. const C = c;
  19717. let M = 0
  19718. , T = M;
  19719. k.forEach((e,t)=>{
  19720. e.groupBox.bounds.y = M,
  19721. e.groupBox.bounds.x = 0,
  19722. I.children.push(e.groupBox),
  19723. M += e.groupBox.bounds.height,
  19724. T += e.groupBox.bounds.height,
  19725. t < k.length - 1 && (M += _,
  19726. T += _)
  19727. }
  19728. ),
  19729. I.contentHeight = T,
  19730. I.bounds.width = C,
  19731. I.bounds.height = T;
  19732. const A = k.reduce((e,t)=>[...e, ...t.contentFeatures], []);
  19733. return {
  19734. groupBox: I,
  19735. subtopicGroups: k,
  19736. ellipsisBox: null,
  19737. contentFeatures: A
  19738. }
  19739. }
  19740. t.isSummaryLayoutEligibleFor = function(e) {
  19741. return "summary" === e
  19742. }
  19743. ,
  19744. t.layoutSummarySlide = function(e, t, n={}) {
  19745. var r, i;
  19746. const o = null !== (r = null == n ? void 0 : n.dimension) && void 0 !== r ? r : g.defaultDimension
  19747. , s = null !== (i = null == n ? void 0 : n.appearance) && void 0 !== i ? i : a.defaultAppearance;
  19748. a.initializeSlideStyle(e, o, s, {
  19749. layout: y
  19750. });
  19751. const l = a.calcLength(o.hSlidePadding, e)
  19752. , u = a.calcLength(o.vSlidePadding, e)
  19753. , c = a.calcLength(o.summarySlideTopicMaxFontSize, e)
  19754. , d = a.calcLength(o.summarySlideTopicMinFontSize, e)
  19755. , f = a.calcLength(o.summarySlideTopicMarkerRightMargin, e)
  19756. , h = a.calcLength(o.summarySlideSubtopicFontSize, e)
  19757. , p = a.calcLength(o.summarySlideSubtopicMarkerRightMargin, e)
  19758. , m = a.calcLength(o.summarySlideLineStrokeWidth, e);
  19759. (e.width > e.height ? b : _)(e, t, o, s, {
  19760. hSlidePadding: l,
  19761. vSlidePadding: u,
  19762. summaryTopicMaxFontSize: c,
  19763. summaryTopicMinFontSize: d,
  19764. summaryTopicMarkerRightMargin: f,
  19765. subtopicFontSize: h,
  19766. subtopicMarkerRightMargin: p,
  19767. subtopicMaxLineCount: 1,
  19768. summarySlideLineStrokeWidth: m
  19769. })
  19770. }
  19771. ,
  19772. t.generateSummarySlide = function(e) {
  19773. var t, n;
  19774. const i = Object.assign({}, e)
  19775. , o = r.assertBox(r.getBoxById(i.boxes, r.titleOfTopic(i.topicId), "group"));
  19776. o.contentHeight > o.bounds.height && (i.multistepBoxes = [...null !== (t = i.multistepBoxes) && void 0 !== t ? t : [], o.id]);
  19777. const a = r.getBoxById(i.boxes, r.contentOfSummary(i.topicId));
  19778. return a && a.contentHeight > a.bounds.height && (i.multistepBoxes = [...null !== (n = i.multistepBoxes) && void 0 !== n ? n : [], a.id]),
  19779. function(e) {
  19780. var t, n, i;
  19781. if (null === (t = e.aliases) || void 0 === t ? void 0 : t.some(t=>"startOfSummary" === t.kind && t.topicId === e.topicId)) {
  19782. const t = r.assertBox(r.getBoxById(e.boxes, r.titleOfTopic(e.topicId)))
  19783. , o = [r.topBraceOfSummary(e.topicId), r.bottomBraceOfSummary(e.topicId)]
  19784. , a = r.filterBoxes(e.boxes, e=>o.some(t=>t === e.id));
  19785. for (const {id: t} of a)
  19786. r.setBoxEnteringState(e, {
  19787. id: t,
  19788. opacity: 0,
  19789. strokeOffset: 1
  19790. });
  19791. r.setBoxEnteringState(e, {
  19792. id: t.id,
  19793. opacity: 0
  19794. });
  19795. const s = r.getBoxById(e.boxes, r.contentOfSummary(e.topicId));
  19796. s && s.scrollOffset ? (r.setBoxEnteringState(e, {
  19797. id: s.id,
  19798. scrollOffset: 0
  19799. }),
  19800. r.addSlideEnteringAnimations(e, [{
  19801. on: "postTransition",
  19802. groups: ["subtopicListVisible"],
  19803. durationMultiplier: 1,
  19804. delayMultiplier: .5,
  19805. effect: "mutate",
  19806. easing: "easeOutQuad",
  19807. finalState: {
  19808. boxes: [{
  19809. id: s.id,
  19810. scrollOffset: s.scrollOffset
  19811. }]
  19812. }
  19813. }]),
  19814. r.addSlideEnteringAnimations(e, [{
  19815. after: "subtopicListVisible",
  19816. groups: ["curlyBracesVisible"],
  19817. durationMultiplier: 0,
  19818. delayMultiplier: .5,
  19819. effect: "mutate",
  19820. easing: "easeOutQuad",
  19821. finalState: {
  19822. boxes: a.map(({id: e})=>({
  19823. id: e,
  19824. opacity: 1
  19825. }))
  19826. }
  19827. }, {
  19828. after: "curlyBracesVisible",
  19829. groups: ["curlyBracesReady"],
  19830. durationMultiplier: 1,
  19831. effect: "mutate",
  19832. easing: "easeOutQuad",
  19833. finalState: {
  19834. boxes: a.map(({id: e})=>({
  19835. id: e,
  19836. strokeOffset: 0
  19837. }))
  19838. }
  19839. }]),
  19840. r.addSlideEnteringAnimations(e, [{
  19841. after: "curlyBracesReady",
  19842. durationMultiplier: 1,
  19843. delayMultiplier: .75,
  19844. effect: "mutate",
  19845. easing: "easeOutQuad",
  19846. finalState: {
  19847. boxes: [{
  19848. id: t.id,
  19849. opacity: null !== (n = t.opacity) && void 0 !== n ? n : 1
  19850. }]
  19851. }
  19852. }])) : (r.addSlideEnteringAnimations(e, [{
  19853. on: "postTransition",
  19854. groups: ["curlyBracesVisible"],
  19855. durationMultiplier: 0,
  19856. delayMultiplier: .5,
  19857. effect: "mutate",
  19858. easing: "easeOutQuad",
  19859. finalState: {
  19860. boxes: a.map(({id: e})=>({
  19861. id: e,
  19862. opacity: 1
  19863. }))
  19864. }
  19865. }, {
  19866. after: "curlyBracesVisible",
  19867. groups: ["curlyBracesReady"],
  19868. durationMultiplier: 1,
  19869. effect: "mutate",
  19870. easing: "easeOutQuad",
  19871. finalState: {
  19872. boxes: a.map(({id: e})=>({
  19873. id: e,
  19874. strokeOffset: 0
  19875. }))
  19876. }
  19877. }]),
  19878. r.addSlideEnteringAnimations(e, [{
  19879. on: "postTransition",
  19880. durationMultiplier: 1,
  19881. delayMultiplier: .75,
  19882. effect: "mutate",
  19883. easing: "easeOutQuad",
  19884. finalState: {
  19885. boxes: [{
  19886. id: t.id,
  19887. opacity: null !== (i = t.opacity) && void 0 !== i ? i : 1
  19888. }]
  19889. }
  19890. }]))
  19891. }
  19892. }(i),
  19893. i
  19894. }
  19895. },
  19896. 254: function(e, t, n) {
  19897. "use strict";
  19898. Object.defineProperty(t, "__esModule", {
  19899. value: !0
  19900. }),
  19901. t.generateLyricListSlide = t.layoutLyricListSlide = t.isLyricListLayoutEligibleFor = void 0;
  19902. const r = n(5)
  19903. , i = n(12)
  19904. , o = n(34)
  19905. , a = n(13)
  19906. , s = n(15)
  19907. , l = n(32)
  19908. , u = n(42)
  19909. , c = n(33)
  19910. , d = n(44)
  19911. , f = n(92)
  19912. , h = n(62)
  19913. , p = n(93)
  19914. , g = n(41)
  19915. , m = n(61)
  19916. , v = n(36)
  19917. , y = n(35)
  19918. , b = n(43)
  19919. , _ = "lyric-list";
  19920. function w(e, t) {
  19921. var n;
  19922. t && (r.setBoxEnteringState(e, {
  19923. id: t.id,
  19924. transform: [{
  19925. translate: {
  19926. x: 0,
  19927. y: t.bounds.height
  19928. }
  19929. }],
  19930. opacity: 0
  19931. }),
  19932. r.addSlideEnteringAnimations(e, [{
  19933. durationMultiplier: 1.75,
  19934. delayMultiplier: .75,
  19935. easing: "easeInOutCubic",
  19936. on: "postTransition",
  19937. effect: "mutate",
  19938. finalState: {
  19939. boxes: [{
  19940. id: t.id,
  19941. transform: [{
  19942. translate: {
  19943. x: 0,
  19944. y: 0
  19945. }
  19946. }]
  19947. }]
  19948. }
  19949. }]),
  19950. r.addSlideEnteringAnimations(e, [{
  19951. durationMultiplier: 2.5,
  19952. delayMultiplier: .75,
  19953. easing: "easeInOutCubic",
  19954. on: "postTransition",
  19955. effect: "mutate",
  19956. finalState: {
  19957. boxes: [{
  19958. id: t.id,
  19959. opacity: null !== (n = t.opacity) && void 0 !== n ? n : 1
  19960. }]
  19961. }
  19962. }]))
  19963. }
  19964. t.isLyricListLayoutEligibleFor = function(e, {subtopics: t}) {
  19965. return "list" === e && t.length > 1
  19966. }
  19967. ,
  19968. t.layoutLyricListSlide = function(e, t, n={}) {
  19969. var f, p;
  19970. const {topic: w, subtopics: S, headerTopic: x} = t
  19971. , k = null !== (f = null == n ? void 0 : n.dimension) && void 0 !== f ? f : l.defaultDimension
  19972. , I = null !== (p = null == n ? void 0 : n.appearance) && void 0 !== p ? p : s.defaultAppearance;
  19973. s.initializeSlideStyle(e, k, I, {
  19974. layout: _
  19975. });
  19976. const C = s.calcLength(k.hSlidePadding, e)
  19977. , M = s.calcLength(k.vSlidePadding, e)
  19978. , T = {
  19979. left: C,
  19980. top: 0,
  19981. right: C,
  19982. bottom: 0
  19983. }
  19984. , A = e.width - C - C
  19985. , E = s.calcLength(k.lyricListSlideParentTopicDefaultFontSize, e)
  19986. , O = s.calcLength(k.hPaddingXSmall, e)
  19987. , B = s.calcLength(k.vPaddingXSmall, e)
  19988. , L = Math.round(s.calcLength(k.lyricListSlideSubtopicMaxFontSize, e))
  19989. , P = Math.round(s.calcLength(k.lyricListSlideSubtopicMinFontSize, e))
  19990. , R = s.calcLength(k.hPaddingXSmall, e)
  19991. , z = s.calcLength(k.scrollFaderHeight, e)
  19992. , j = s.calcLength(k.vPaddingSmall, e)
  19993. , F = s.calcLength(k.lyricListSlideArrowWidth, e)
  19994. , D = s.calcLength(k.lyricListSlideArrowHeight, e)
  19995. , N = s.calcLength(k.lyricListSlideArrowCornerRadius, e)
  19996. , U = function(e, t, n, r, i) {
  19997. var a;
  19998. const {fontSize: s, markerRightMargin: l, maxWidth: u, maxLineCount: c} = i;
  19999. const f = null !== (a = e.markers) && void 0 !== a ? a : []
  20000. , p = f.slice(0, n.maxMarkerCount)
  20001. , g = h.computePlaceholder(e);
  20002. function m(n) {
  20003. return y.computeTopicTitleGroup(t, r, _, e.id, n, p, {
  20004. maxWidth: u,
  20005. fontSize: s,
  20006. markerRightMargin: l,
  20007. overflowWrap: "break-word",
  20008. textRoles: ["title"],
  20009. requestForHit: {
  20010. kind: "fastBackward"
  20011. },
  20012. placeholder: g
  20013. })
  20014. }
  20015. const w = v.computeTopicTitle(e);
  20016. let S, x = w;
  20017. if (x.length > 1) {
  20018. const e = o.rangedIntegers(x.length, 1)
  20019. , t = o.mapValues(e, e=>b.getTruncatedText(x, e))
  20020. , n = o.mapValues(t, e=>({
  20021. text: e,
  20022. group: m(e)
  20023. }))
  20024. , r = o.findClosestMatch(n, ({group: e})=>function(e) {
  20025. return e.textMeasurement.lineCount <= c
  20026. }(e));
  20027. r ? (x = r.text,
  20028. S = r.group) : (x = b.getTruncatedText(x, 1),
  20029. S = m(x))
  20030. } else
  20031. S = m(x);
  20032. return Object.assign(Object.assign({}, S), {
  20033. contentFeatures: d.computeContentFeaturesForTitleGroup(S, e.id, w, f)
  20034. })
  20035. }(w, e, k, I, {
  20036. fontSize: E,
  20037. markerRightMargin: O,
  20038. maxWidth: A,
  20039. maxLineCount: 1
  20040. })
  20041. , W = e.width
  20042. , H = e.height - 2 * M - U.groupBox.bounds.height - B
  20043. , V = H / 2
  20044. , $ = function(e, t, n, l, c, f) {
  20045. const {paddings: p, maxWidth: g, maxHeight: w, maxFontSize: S, minFontSize: x, preferredLineCount: k, maxLineCount: I, markerRightMargin: C, subtopicSpacing: M, scrollFaderSize: T, currentSubtopicOffset: A} = f;
  20046. function E(e) {
  20047. return e.textMeasurement.lineCount <= k
  20048. }
  20049. const O = t.map(e=>{
  20050. var t;
  20051. return {
  20052. topicId: e.id,
  20053. text: v.computeTopicTitle(e),
  20054. markers: null !== (t = e.markers) && void 0 !== t ? t : [],
  20055. placeholder: h.computePlaceholder(e)
  20056. }
  20057. }
  20058. );
  20059. function B(t) {
  20060. let f = p.top
  20061. , h = p.top
  20062. , v = 0;
  20063. const S = []
  20064. , x = [];
  20065. O.forEach(({topicId: e, text: k, markers: T, placeholder: B},L)=>{
  20066. var P;
  20067. const R = g - p.left - p.right
  20068. , z = T.slice(0, l.maxMarkerCount);
  20069. function j(l) {
  20070. return function(e, t, n, l, c, d, f) {
  20071. var h, p, g, v;
  20072. const {maxWidth: b, fontSize: _, markerRightMargin: w, placeholder: S} = f
  20073. , x = null !== (h = f.textRoles) && void 0 !== h ? h : []
  20074. , k = null !== (p = f.markerRoles) && void 0 !== p ? p : []
  20075. , I = null !== (g = f.imagePlaceholderRoles) && void 0 !== g ? g : []
  20076. , C = null !== (v = f.groupRoles) && void 0 !== v ? v : []
  20077. , M = d.length
  20078. , T = _
  20079. , A = _
  20080. , E = _
  20081. , O = _
  20082. , B = (T + w) * M
  20083. , L = {
  20084. id: r.titleTextOfTopic(l),
  20085. roles: [...x],
  20086. bounds: a.zeroRect(),
  20087. absBounds: a.zeroRect(),
  20088. contentType: "text",
  20089. text: c,
  20090. fontSize: i.toCSSLength(_),
  20091. textIndent: i.toCSSLength(B),
  20092. lineHeight: m.computeTextLineHeight(_),
  20093. fontWeight: "bold",
  20094. opacity: 0
  20095. };
  20096. "textAlignment"in f ? L.textAlignment = f.textAlignment : M > 0 && (L.textAlignment = "leading");
  20097. "overflowWrap"in f && (L.overflowWrap = f.overflowWrap);
  20098. s.initializeBoxStyle(L, e, t, {
  20099. layout: n
  20100. });
  20101. const P = u.measureText(L, {
  20102. maxWidth: b
  20103. });
  20104. L.bounds.width = P.width,
  20105. L.bounds.height = P.height,
  20106. L.lineCount = P.lineCount;
  20107. const R = {
  20108. id: r.shadowTitleTextOfTopic(l),
  20109. roles: [...x],
  20110. bounds: a.zeroRect(),
  20111. absBounds: a.zeroRect(),
  20112. contentType: "text",
  20113. text: c,
  20114. fontSize: i.toCSSLength(_),
  20115. textIndent: i.toCSSLength(B),
  20116. lineHeight: m.computeTextLineHeight(_)
  20117. };
  20118. "textAlignment"in f ? R.textAlignment = f.textAlignment : M > 0 && (R.textAlignment = "leading");
  20119. "overflowWrap"in f && (R.overflowWrap = f.overflowWrap);
  20120. let z;
  20121. s.initializeBoxStyle(R, e, t, {
  20122. layout: n
  20123. });
  20124. const j = o.rangedIntegers(1, 20)
  20125. , F = o.mapValues(j, e=>u.measureText(Object.assign({}, R, {
  20126. letterSpacing: .005 * e + "em"
  20127. }), {
  20128. maxWidth: b
  20129. }));
  20130. let D;
  20131. D = 1 === P.lineCount ? o.findClosestMatch(F, e=>e.width - P.width >= 0) : o.findClosestMatch(F, e=>e.lineCount === P.lineCount);
  20132. D ? (z = D,
  20133. R.letterSpacing = D.letterSpacing) : z = u.measureText(R, {
  20134. maxWidth: b
  20135. });
  20136. const N = z.lineHeight;
  20137. R.bounds.width = z.width,
  20138. R.bounds.height = z.height,
  20139. R.lineCount = z.lineCount;
  20140. const U = []
  20141. , W = N;
  20142. let H, V, $, G = 0, Z = 0;
  20143. for (let i = 0; i < M; i++) {
  20144. const o = d[i]
  20145. , u = {
  20146. id: r.markerOfTopic(l, i),
  20147. roles: ["marker", ...k],
  20148. bounds: {
  20149. x: Z,
  20150. y: (W - A) / 2,
  20151. width: T,
  20152. height: A
  20153. },
  20154. absBounds: a.zeroRect(),
  20155. contentType: "image",
  20156. imageSource: o.imageSource
  20157. };
  20158. s.initializeBoxStyle(u, e, t, {
  20159. layout: n
  20160. }),
  20161. Z += T + w,
  20162. G > 0 && (G += w),
  20163. G += T,
  20164. U.push(u)
  20165. }
  20166. y.shouldShowPlaceholder(c.length > 0, M > 0) && "image" === S ? (V = N,
  20167. $ = N,
  20168. H = {
  20169. id: r.imageOfTopic(l),
  20170. roles: ["imagePlaceholder", ...I],
  20171. bounds: {
  20172. x: (V - E) / 2,
  20173. y: ($ - O) / 2,
  20174. width: E,
  20175. height: O
  20176. },
  20177. absBounds: a.zeroRect(),
  20178. contentType: "svg-template",
  20179. svg: y.getPlaceholderImageSource(),
  20180. fillColor: e.foregroundColor
  20181. },
  20182. s.initializeBoxStyle(H, e, t, {
  20183. layout: n
  20184. })) : (V = 0,
  20185. $ = 0,
  20186. H = null);
  20187. const q = Math.max(Math.max(R.bounds.width, L.bounds.width), G, V)
  20188. , Y = Math.max(Math.max(R.bounds.height, L.bounds.height), N, W, $)
  20189. , X = {
  20190. id: r.titleOfTopic(l),
  20191. roles: [...C],
  20192. bounds: {
  20193. x: 0,
  20194. y: 0,
  20195. width: q,
  20196. height: Y
  20197. },
  20198. absBounds: a.zeroRect(),
  20199. contentType: "group",
  20200. children: [R, L, ...U, ...H ? [H] : []],
  20201. contentHeight: Y,
  20202. overflow: "visible"
  20203. };
  20204. "requestForHit"in f && (X.requestForHit = f.requestForHit);
  20205. return s.initializeBoxStyle(X, e, t, {
  20206. layout: n
  20207. }),
  20208. {
  20209. groupBox: X,
  20210. textBox: R,
  20211. markerImageBoxes: U,
  20212. textMeasurement: P,
  20213. imagePlaceholderBox: H,
  20214. lineHeight: N
  20215. }
  20216. }(n, c, _, e, l, z, {
  20217. maxWidth: R,
  20218. fontSize: t,
  20219. markerRightMargin: C,
  20220. textRoles: ["subtopic"],
  20221. requestForHit: {
  20222. kind: "present",
  20223. topicId: e,
  20224. viaIntro: !0
  20225. },
  20226. placeholder: B
  20227. })
  20228. }
  20229. let F = j(k);
  20230. if (!function(e) {
  20231. return e.textMeasurement.lineCount <= I
  20232. }(F)) {
  20233. const e = o.rangedIntegers(k.length - 1, 1)
  20234. , t = o.mapValues(e, e=>b.getTruncatedText(k, e))
  20235. , n = o.mapValues(t, e=>j(e));
  20236. F = null !== (P = o.findClosestMatch(n, E)) && void 0 !== P ? P : j(b.getTruncatedText(k, 1))
  20237. }
  20238. 0 === L && (f = A - F.lineHeight / 2,
  20239. h += f,
  20240. v = f);
  20241. const D = F.groupBox.bounds;
  20242. D.x = p.left,
  20243. D.y = f,
  20244. f += D.height + M,
  20245. L > 0 && L < O.length && (h += M),
  20246. h += D.height,
  20247. L === O.length - 1 && (h += w - A - (F.groupBox.bounds.height - F.lineHeight / 2)),
  20248. h += p.bottom,
  20249. S.push(F),
  20250. x.push(...d.computeContentFeaturesForTitleGroup(F, e, k, T))
  20251. }
  20252. );
  20253. const k = {
  20254. id: r.subtopicListGroupOfTopic(e),
  20255. roles: ["subtopicListGroup"],
  20256. bounds: {
  20257. x: 0,
  20258. y: 0,
  20259. width: g,
  20260. height: Math.min(h, w)
  20261. },
  20262. absBounds: a.zeroRect(),
  20263. contentType: "group",
  20264. children: [...S.map(e=>e.groupBox)],
  20265. contentHeight: h,
  20266. overflow: h > w ? "scroll" : "hidden",
  20267. scrollFaderSize: T,
  20268. scrollOffset: v
  20269. };
  20270. return s.initializeBoxStyle(k, n, c, {
  20271. layout: _
  20272. }),
  20273. {
  20274. groupBox: k,
  20275. subtopicGroups: S,
  20276. contentFeatures: x
  20277. }
  20278. }
  20279. let L, P;
  20280. const R = o.rangedIntegers(S, x)
  20281. , z = o.mapValues(R, e=>({
  20282. fontSize: e,
  20283. group: B(e)
  20284. }))
  20285. , j = o.findClosestMatch(z, ({group: e})=>function(e) {
  20286. return e.groupBox.bounds.height <= w
  20287. }(e));
  20288. j ? (L = j.fontSize,
  20289. P = j.group) : (L = S,
  20290. P = B(L));
  20291. return P
  20292. }(w.id, S, e, k, I, {
  20293. paddings: T,
  20294. maxWidth: W,
  20295. maxHeight: H,
  20296. maxFontSize: L,
  20297. minFontSize: P,
  20298. markerRightMargin: R,
  20299. preferredLineCount: 2,
  20300. maxLineCount: 3,
  20301. subtopicSpacing: j,
  20302. scrollFaderSize: z,
  20303. currentSubtopicOffset: V
  20304. })
  20305. , G = function(e, t, n, i) {
  20306. const {arrowWidth: o, arrowHeight: l, arrowCornerRadius: u} = i
  20307. , c = o * (1 - 2 * u / l)
  20308. , d = `M 0 0 L ${c} ${l / 2 - u} C ${o - u} ${(l - u) / 2} ${o - u} ${(l + u) / 2} ${c} ${l / 2 + u} L 0 ${l} Z`
  20309. , f = {
  20310. id: r.arrowOfTopic(e),
  20311. roles: ["arrow"],
  20312. bounds: {
  20313. x: 0,
  20314. y: 0,
  20315. width: o,
  20316. height: l
  20317. },
  20318. absBounds: a.zeroRect(),
  20319. contentType: "shape",
  20320. shapePath: d
  20321. };
  20322. return s.initializeBoxStyle(f, t, n, {
  20323. layout: _
  20324. }),
  20325. f
  20326. }(w.id, e, I, {
  20327. arrowWidth: F,
  20328. arrowHeight: D,
  20329. arrowCornerRadius: N
  20330. });
  20331. U.groupBox.bounds.x = C,
  20332. U.groupBox.bounds.y = M,
  20333. $.groupBox.bounds.x = 0,
  20334. $.groupBox.bounds.y = U.groupBox.bounds.y + U.groupBox.bounds.height + B,
  20335. G.bounds.x = 0,
  20336. G.bounds.y = $.groupBox.bounds.y + ($.groupBox.bounds.height - D) / 2,
  20337. e.boxes.push(U.groupBox),
  20338. e.boxes.push($.groupBox),
  20339. e.boxes.push(G),
  20340. x && g.addHeaderBoxes(e, x, k, I, _),
  20341. c.computeAbsoluteBounds(e.boxes),
  20342. r.addSlideContentFeatures(e, ...U.contentFeatures, ...$.contentFeatures)
  20343. }
  20344. ,
  20345. t.generateLyricListSlide = function(e, t, n={}) {
  20346. var i;
  20347. const {subtopics: o} = t
  20348. , a = null !== (i = n.numberOfVisitedTopics) && void 0 !== i ? i : 0
  20349. , s = Object.assign({}, e);
  20350. o.forEach(({id: e},t)=>{
  20351. t > a ? f.computePendingBoxStates(s, r.titleOfTopic(e)) : t < a && function(e, t) {
  20352. e.boxes = r.mutateBoxes(e.boxes, e=>e.id !== t ? e : Object.assign(Object.assign({}, e), {
  20353. opacity: .4
  20354. }))
  20355. }(s, r.titleOfTopic(e)),
  20356. function(e, t, n) {
  20357. e.boxes = r.mutateBoxes(e.boxes, e=>e.id === r.titleTextOfTopic(t) ? Object.assign(Object.assign({}, e), {
  20358. opacity: n ? 0 : 1
  20359. }) : e.id === r.shadowTitleTextOfTopic(t) ? Object.assign(Object.assign({}, e), {
  20360. opacity: n ? 1 : 0
  20361. }) : e)
  20362. }(s, e, t !== a)
  20363. }
  20364. );
  20365. const l = a
  20366. , u = r.assertBox(r.getBoxById(s.boxes, r.subtopicListGroupOfTopic(s.topicId)));
  20367. return p.computeSubtopicListScrollingStates(s, u.id, r.titleOfTopic(o[l].id), (e,t)=>{
  20368. const n = r.assertBox(r.getBoxById(s.boxes, r.titleTextOfTopic(o[l].id)));
  20369. return "lineCount"in n && n.lineCount ? n.bounds.height / n.lineCount / 2 - e.bounds.height / 2 : t.bounds.height / 2 - e.bounds.height / 2
  20370. }
  20371. ),
  20372. function(e) {
  20373. var t, n;
  20374. if (null === (t = e.aliases) || void 0 === t ? void 0 : t.some(t=>"listOfTopic" === t.kind && t.topicId === e.topicId && 0 === t.index)) {
  20375. e.subtopics.forEach(t=>{
  20376. const n = r.assertBox(r.getBoxById(e.boxes, r.titleOfTopic(t)))
  20377. , i = r.assertBox(r.getBoxById(e.boxes, r.shadowTitleTextOfTopic(t)));
  20378. w(e, n),
  20379. w(e, i)
  20380. }
  20381. );
  20382. const t = r.assertBox(r.getBoxById(e.boxes, r.arrowOfTopic(e.topicId)));
  20383. r.setBoxEnteringState(e, {
  20384. id: t.id,
  20385. opacity: 0
  20386. }),
  20387. r.addSlideEnteringAnimations(e, [{
  20388. durationMultiplier: 2.5,
  20389. delayMultiplier: .75,
  20390. easing: "easeInOutCubic",
  20391. on: "postTransition",
  20392. effect: "mutate",
  20393. finalState: {
  20394. boxes: [{
  20395. id: t.id,
  20396. opacity: null !== (n = t.opacity) && void 0 !== n ? n : 1
  20397. }]
  20398. }
  20399. }])
  20400. }
  20401. }(s),
  20402. s
  20403. }
  20404. },
  20405. 255: function(e, t, n) {
  20406. "use strict";
  20407. Object.defineProperty(t, "__esModule", {
  20408. value: !0
  20409. }),
  20410. t.generateTreeChartSlide = t.layoutTreeChartSlide = t.isTreeChartLayoutEligibleFor = void 0;
  20411. const r = n(5)
  20412. , i = n(13)
  20413. , o = n(15)
  20414. , a = n(34)
  20415. , s = n(33)
  20416. , l = n(43)
  20417. , u = n(41)
  20418. , c = n(36)
  20419. , d = n(35)
  20420. , f = n(44)
  20421. , h = n(92)
  20422. , p = n(93)
  20423. , g = n(32)
  20424. , m = n(62)
  20425. , v = "tree-chart";
  20426. function y(e) {
  20427. const t = r.findBox(e.children, e=>"text" === e.contentType);
  20428. return t && "lineCount"in t && t.lineCount ? t.bounds.height / t.lineCount / 2 : e.bounds.height / 2
  20429. }
  20430. t.isTreeChartLayoutEligibleFor = function(e, {subtopics: t}) {
  20431. return "list" === e && t.length > 1
  20432. }
  20433. ,
  20434. t.layoutTreeChartSlide = function(e, t, n={}) {
  20435. var h, p;
  20436. const {topic: b, subtopics: _, headerTopic: w} = t
  20437. , S = null !== (h = null == n ? void 0 : n.dimension) && void 0 !== h ? h : g.defaultDimension
  20438. , x = null !== (p = null == n ? void 0 : n.appearance) && void 0 !== p ? p : o.defaultAppearance;
  20439. o.initializeSlideStyle(e, S, x, {
  20440. layout: v
  20441. });
  20442. const k = o.calcLength(S.hSlidePadding, e)
  20443. , I = o.calcLength(S.vSlidePadding, e)
  20444. , C = e.width - k - k
  20445. , M = C
  20446. , T = Math.round(o.calcLength(S.treeChartSlideParentTopicMaxFontSize, e))
  20447. , A = Math.round(o.calcLength(S.treeChartSlideParentTopicMinFontSize, e))
  20448. , E = o.calcLength(S.hPaddingXSmall, e)
  20449. , O = o.calcLength(S.vPaddingXSmall, e)
  20450. , B = {
  20451. left: 0,
  20452. top: o.calcLength(S.vPaddingMedium, e),
  20453. right: 0,
  20454. bottom: I
  20455. }
  20456. , L = o.calcLength(S.vPaddingSmall, e)
  20457. , P = Math.round(o.calcLength(S.treeChartSlideSubtopicMaxFontSize, e))
  20458. , R = Math.round(o.calcLength(S.treeChartSlideSubtopicMinFontSize, e))
  20459. , z = o.calcLength(S.hPaddingXSmall, e)
  20460. , j = o.calcLength(S.scrollFaderHeight, e)
  20461. , F = C / 6
  20462. , D = o.calcLength(S.hPaddingSmall, e)
  20463. , N = C / 12
  20464. , U = o.calcLength(S.treeChartBranchStrokeWidth, e)
  20465. , W = function(e, t, n, r, i) {
  20466. var o;
  20467. const {maxFontSize: s, minFontSize: u, markerRightMargin: h, maxWidth: p, maxLineCount: g, preferredLineCount: y} = i;
  20468. function b(e) {
  20469. return e.textMeasurement.width <= p
  20470. }
  20471. function _(e) {
  20472. return e.textMeasurement.lineCount <= y
  20473. }
  20474. function w(e) {
  20475. return e.textMeasurement.lineCount <= g
  20476. }
  20477. const S = null !== (o = e.markers) && void 0 !== o ? o : []
  20478. , x = S.slice(0, n.maxMarkerCount)
  20479. , k = m.computePlaceholder(e);
  20480. function I(n, i, o) {
  20481. return d.computeTopicTitleGroup(t, r, v, e.id, n, x, {
  20482. maxWidth: p,
  20483. fontSize: i,
  20484. markerRightMargin: h,
  20485. overflowWrap: o,
  20486. textRoles: ["title"],
  20487. requestForHit: {
  20488. kind: "fastBackward"
  20489. },
  20490. placeholder: k
  20491. })
  20492. }
  20493. const C = c.computeTopicTitle(e);
  20494. let M = C
  20495. , T = s
  20496. , A = "normal"
  20497. , E = I(M, T, A);
  20498. if (b(E) && _(E))
  20499. return Object.assign(Object.assign({}, E), {
  20500. contentFeatures: f.computeContentFeaturesForTitleGroup(E, e.id, C, S)
  20501. });
  20502. if (T = u,
  20503. E = I(M, T, A),
  20504. b(E)) {
  20505. if (_(E)) {
  20506. const e = a.rangedIntegers(s, u)
  20507. , t = a.mapValues(e, e=>({
  20508. fontSize: e,
  20509. group: I(M, e, A)
  20510. }))
  20511. , n = a.findClosestMatch(t, ({group: e})=>b(e) && _(e));
  20512. if (!n)
  20513. throw new Error("Unable to find the best font size for parent topic of brace list slide");
  20514. T = n.fontSize,
  20515. E = n.group
  20516. }
  20517. } else {
  20518. A = "break-word";
  20519. const e = a.rangedIntegers(s, u)
  20520. , t = a.mapValues(e, e=>({
  20521. fontSize: e,
  20522. group: I(M, e, A)
  20523. }))
  20524. , n = a.findClosestMatch(t, ({group: e})=>_(e));
  20525. n ? (T = n.fontSize,
  20526. E = n.group) : (T = u,
  20527. E = I(M, T, A))
  20528. }
  20529. if (!w(E)) {
  20530. const e = a.rangedIntegers(M.length - 1, 1)
  20531. , t = a.mapValues(e, e=>l.getTruncatedText(M, e))
  20532. , n = a.mapValues(t, e=>({
  20533. text: e,
  20534. group: I(e, T, A)
  20535. }))
  20536. , r = a.findClosestMatch(n, ({group: e})=>w(e));
  20537. r ? (M = r.text,
  20538. E = r.group) : (M = l.getTruncatedText(M, 1),
  20539. E = I(M, T, A))
  20540. }
  20541. return Object.assign(Object.assign({}, E), {
  20542. contentFeatures: f.computeContentFeaturesForTitleGroup(E, e.id, C, S)
  20543. })
  20544. }(b, e, S, x, {
  20545. maxFontSize: T,
  20546. minFontSize: A,
  20547. markerRightMargin: E,
  20548. maxWidth: M,
  20549. maxLineCount: 2,
  20550. preferredLineCount: 1
  20551. })
  20552. , H = e.width - k - k
  20553. , V = e.height - I - W.groupBox.bounds.height - O
  20554. , $ = function(e, t, n, s, u, h) {
  20555. const {paddings: p, maxWidth: g, maxHeight: b, maxFontSize: _, minFontSize: w, markerRightMargin: S, maxLineCount: x, scrollFaderSize: k, subtopicSpacing: I, treeBranchLeftMargin: C, treeBranchRightMargin: M, treeBranchWidth: T, treeBranchStrokeWidth: A} = h;
  20556. function E(e) {
  20557. return e.textMeasurement.lineCount <= x
  20558. }
  20559. const O = t.map(e=>{
  20560. var t;
  20561. return {
  20562. topicId: e.id,
  20563. text: c.computeTopicTitle(e),
  20564. markers: null !== (t = e.markers) && void 0 !== t ? t : [],
  20565. placeholder: m.computePlaceholder(e)
  20566. }
  20567. }
  20568. );
  20569. function B(t) {
  20570. const c = []
  20571. , h = []
  20572. , m = [];
  20573. let _ = p.top
  20574. , w = p.top;
  20575. O.forEach(({topicId: e, text: b, markers: x, placeholder: k})=>{
  20576. var O;
  20577. const B = g - C - M - T
  20578. , L = x.slice(0, s.maxMarkerCount);
  20579. function P(r) {
  20580. return d.computeTopicTitleGroup(n, u, v, e, r, L, {
  20581. maxWidth: B,
  20582. fontSize: t,
  20583. markerRightMargin: S,
  20584. textRoles: ["subtopic"],
  20585. requestForHit: {
  20586. kind: "present",
  20587. topicId: e,
  20588. viaIntro: !0
  20589. },
  20590. placeholder: k
  20591. })
  20592. }
  20593. const R = a.rangedIntegers(b.length, 1)
  20594. , z = a.mapValues(R, e=>l.getTruncatedText(b, e))
  20595. , j = a.mapValues(z, e=>P(e))
  20596. , F = null !== (O = a.findClosestMatch(j, E)) && void 0 !== O ? O : P(l.getTruncatedText(b, 1))
  20597. , D = F.groupBox.bounds;
  20598. let N;
  20599. if (D.x = C + M + T,
  20600. D.y = _,
  20601. _ += D.height + I,
  20602. w > 0 && (w += I),
  20603. w += D.height,
  20604. c.length > 0) {
  20605. const e = c[c.length - 1].groupBox;
  20606. N = e.bounds.height - y(e) + T / 2 + I + y(F.groupBox) + A / 2
  20607. } else
  20608. N = p.top + y(F.groupBox) - A;
  20609. const U = function(e, t, n, a, s, l, u, c={}) {
  20610. var d;
  20611. const f = null !== (d = c.additionalRoles) && void 0 !== d ? d : [];
  20612. let h, p;
  20613. if (u)
  20614. h = `M ${l / 2}, ${l / 2} L ${l / 2}, ${s - a / 2 - l / 2} A ${a / 2} ${a / 2} 0 0 0 ${a / 2 + l / 2} ${s - l / 2} L ${a - l / 2}, ${s - l / 2}`;
  20615. else {
  20616. const e = Math.sqrt(Math.pow(a / 2 + l / 2, 2) - Math.pow(a / 2 - l / 2, 2));
  20617. h = `M ${l / 2}, ${e} L ${l / 2}, ${s - a / 2 - l / 2} A ${a / 2} ${a / 2} 0 0 0 ${a / 2 + l / 2} ${s - l / 2} L ${a - l / 2}, ${s - l / 2}`;
  20618. p = {
  20619. size: {
  20620. width: l,
  20621. height: e
  20622. },
  20623. ref: {
  20624. x: l / 2,
  20625. y: e
  20626. },
  20627. path: `M 0, 0 L 0, ${e} L ${l}, ${e} A ${a / 2 + l / 2} ${a / 2 + l / 2} 0 0 1 0,0`
  20628. }
  20629. }
  20630. const g = {
  20631. id: r.treeBranchOfTopic(e),
  20632. roles: ["treeBranch", ...f],
  20633. bounds: {
  20634. x: 0,
  20635. y: 0,
  20636. width: a,
  20637. height: s
  20638. },
  20639. absBounds: i.zeroRect(),
  20640. contentType: "shape",
  20641. shapePath: h,
  20642. markerStart: p
  20643. };
  20644. return o.initializeBoxStyle(g, t, n, {
  20645. layout: v
  20646. }),
  20647. g
  20648. }(e, n, u, T, N, A, 0 === c.length);
  20649. U.bounds.x = C - A / 2,
  20650. U.bounds.y = D.y + y(F.groupBox) + A / 2 - U.bounds.height,
  20651. c.push(F),
  20652. h.push(U),
  20653. m.push(...f.computeContentFeaturesForTitleGroup(F, e, b, x))
  20654. }
  20655. ),
  20656. w += p.bottom;
  20657. const x = {
  20658. id: r.subtopicListGroupOfTopic(e),
  20659. roles: ["subtopicListGroup"],
  20660. bounds: {
  20661. x: 0,
  20662. y: 0,
  20663. width: g,
  20664. height: Math.min(w, b)
  20665. },
  20666. absBounds: i.zeroRect(),
  20667. contentType: "group",
  20668. children: [...c.map(e=>e.groupBox), ...h],
  20669. contentHeight: w,
  20670. overflow: w > b ? "scroll" : "hidden",
  20671. scrollFaderSize: k
  20672. };
  20673. return o.initializeBoxStyle(x, n, u, {
  20674. layout: v
  20675. }),
  20676. {
  20677. groupBox: x,
  20678. subtopicGroups: c,
  20679. treeBranchShapes: h,
  20680. contentFeatures: m
  20681. }
  20682. }
  20683. let L, P;
  20684. const R = a.rangedIntegers(_, w)
  20685. , z = a.mapValues(R, e=>({
  20686. fontSize: e,
  20687. group: B(e)
  20688. }))
  20689. , j = a.findClosestMatch(z, ({group: e})=>function(e) {
  20690. return e.groupBox.contentHeight <= b
  20691. }(e));
  20692. j ? (L = j.fontSize,
  20693. P = j.group) : (L = _,
  20694. P = B(L));
  20695. return P
  20696. }(b.id, _, e, S, x, {
  20697. paddings: B,
  20698. maxWidth: H,
  20699. maxHeight: V,
  20700. maxFontSize: P,
  20701. minFontSize: R,
  20702. markerRightMargin: z,
  20703. maxLineCount: 2,
  20704. scrollFaderSize: j,
  20705. subtopicSpacing: L,
  20706. treeBranchLeftMargin: F,
  20707. treeBranchRightMargin: D,
  20708. treeBranchWidth: N,
  20709. treeBranchStrokeWidth: U
  20710. });
  20711. W.groupBox.bounds.x = k,
  20712. W.groupBox.bounds.y = I,
  20713. $.groupBox.bounds.x = k,
  20714. $.groupBox.bounds.y = W.groupBox.bounds.y + W.groupBox.bounds.height + O,
  20715. e.boxes.push(W.groupBox),
  20716. e.boxes.push($.groupBox),
  20717. w && u.addHeaderBoxes(e, w, S, x, v),
  20718. s.computeAbsoluteBounds(e.boxes),
  20719. r.addSlideContentFeatures(e, ...W.contentFeatures, ...$.contentFeatures)
  20720. }
  20721. ,
  20722. t.generateTreeChartSlide = function(e, t, n={}) {
  20723. var i;
  20724. const {subtopics: o} = t
  20725. , a = null !== (i = n.numberOfVisitedTopics) && void 0 !== i ? i : 0
  20726. , s = Object.assign({}, e);
  20727. o.forEach(({id: e},t)=>{
  20728. var n;
  20729. (t > a || (null === (n = s.aliases) || void 0 === n ? void 0 : n.some(e=>"listOfTopic" === e.kind && e.topicId === s.topicId && 0 === e.index))) && (h.computePendingBoxStates(s, r.titleOfTopic(e)),
  20730. h.computePendingBoxStates(s, r.treeBranchOfTopic(e)))
  20731. }
  20732. );
  20733. const l = a
  20734. , u = r.assertBox(r.getBoxById(s.boxes, r.subtopicListGroupOfTopic(s.topicId)))
  20735. , c = r.assertBox(r.getBoxById(s.boxes, r.titleOfTopic(o[o.length - 1].id)))
  20736. , d = u.contentHeight - c.bounds.y - c.bounds.height;
  20737. if (p.computeSubtopicListScrollingStates(s, u.id, r.titleOfTopic(o[l].id), (e,t)=>t.bounds.height - e.bounds.height + d),
  20738. a < o.length) {
  20739. const e = o[a].id
  20740. , t = r.assertBox(r.getBoxById(s.boxes, r.titleOfTopic(e)))
  20741. , n = r.assertBox(r.getBoxById(s.boxes, r.treeBranchOfTopic(e)));
  20742. !function(e, {titleBox: t, treeBranchShape: n}) {
  20743. const i = -(t.bounds.x - n.bounds.x - n.bounds.width);
  20744. e.autoForwarding || (r.addSlideAdditionalEnteringStates(e, [{
  20745. state: {
  20746. boxes: [{
  20747. id: n.id,
  20748. strokeOffset: 1,
  20749. opacity: 0
  20750. }, {
  20751. id: t.id,
  20752. opacity: 0,
  20753. transform: [{
  20754. translate: {
  20755. x: i,
  20756. y: 0
  20757. }
  20758. }]
  20759. }]
  20760. },
  20761. when: {
  20762. request: "forward",
  20763. sourceSlideType: e.type,
  20764. sourceSlideTopicId: e.topicId
  20765. }
  20766. }]),
  20767. r.addSlideEnteringAnimations(e, [{
  20768. on: "postTransition",
  20769. durationMultiplier: 1.5,
  20770. effect: "mutate",
  20771. easing: "easeOutQuad",
  20772. finalState: {
  20773. boxes: [{
  20774. id: n.id,
  20775. strokeOffset: 0
  20776. }]
  20777. },
  20778. when: {
  20779. request: "forward",
  20780. sourceSlideType: e.type,
  20781. sourceSlideTopicId: e.topicId
  20782. }
  20783. }, {
  20784. on: "postTransition",
  20785. durationMultiplier: 1.5,
  20786. effect: "mutate",
  20787. easing: "easeOutQuad",
  20788. finalState: {
  20789. boxes: [{
  20790. id: n.id,
  20791. opacity: 1
  20792. }]
  20793. },
  20794. when: {
  20795. request: "forward",
  20796. sourceSlideType: e.type,
  20797. sourceSlideTopicId: e.topicId
  20798. }
  20799. }, {
  20800. on: "postTransition",
  20801. durationMultiplier: 1,
  20802. delayMultiplier: 1.5,
  20803. effect: "mutate",
  20804. easing: "easeOutQuad",
  20805. finalState: {
  20806. boxes: [{
  20807. id: t.id,
  20808. opacity: 1
  20809. }]
  20810. },
  20811. when: {
  20812. request: "forward",
  20813. sourceSlideType: e.type,
  20814. sourceSlideTopicId: e.topicId
  20815. }
  20816. }, {
  20817. on: "postTransition",
  20818. durationMultiplier: 1,
  20819. delayMultiplier: 1.5,
  20820. effect: "mutate",
  20821. easing: "easeOutQuad",
  20822. finalState: {
  20823. boxes: [{
  20824. id: t.id,
  20825. transform: [{
  20826. translate: {
  20827. x: 0,
  20828. y: 0
  20829. }
  20830. }]
  20831. }]
  20832. },
  20833. when: {
  20834. request: "forward",
  20835. sourceSlideType: e.type,
  20836. sourceSlideTopicId: e.topicId
  20837. }
  20838. }]))
  20839. }(s, {
  20840. titleBox: t,
  20841. treeBranchShape: n
  20842. })
  20843. }
  20844. return s
  20845. }
  20846. },
  20847. 256: function(e, t, n) {
  20848. "use strict";
  20849. var r = this && this.__awaiter || function(e, t, n, r) {
  20850. return new (n || (n = Promise))((function(i, o) {
  20851. function a(e) {
  20852. try {
  20853. l(r.next(e))
  20854. } catch (e) {
  20855. o(e)
  20856. }
  20857. }
  20858. function s(e) {
  20859. try {
  20860. l(r.throw(e))
  20861. } catch (e) {
  20862. o(e)
  20863. }
  20864. }
  20865. function l(e) {
  20866. var t;
  20867. e.done ? i(e.value) : (t = e.value,
  20868. t instanceof n ? t : new n((function(e) {
  20869. e(t)
  20870. }
  20871. ))).then(a, s)
  20872. }
  20873. l((r = r.apply(e, t || [])).next())
  20874. }
  20875. ))
  20876. }
  20877. ;
  20878. Object.defineProperty(t, "__esModule", {
  20879. value: !0
  20880. }),
  20881. t.Slideshow = void 0;
  20882. const i = n(157)
  20883. , o = n(156)
  20884. , a = n(257)
  20885. , s = n(258)
  20886. , l = n(259)
  20887. , u = n(260)
  20888. , c = n(261)
  20889. , d = n(167)
  20890. , f = n(109);
  20891. t.Slideshow = class {
  20892. constructor(e) {
  20893. var t, n;
  20894. this._disablesAnimations = !1,
  20895. this._contentCache = new Map,
  20896. this._templateSlides = new Map,
  20897. this._slideStore = new a.SlideStore,
  20898. this._presenters = [],
  20899. this._currentSlide = null,
  20900. this._isPerformingTransition = !1,
  20901. this._isPerformingEndingScreenTransition = !1,
  20902. this._slideBeforeEndingScreen = null,
  20903. this._numberOfPendingTransitionRequests = 0,
  20904. this._isHandlingTransitionRequest = !1,
  20905. this._slideState = {},
  20906. this.eventCallbacks = new Map,
  20907. this.baseDuration = 400,
  20908. this.restoreSlideDurationMultiplier = 1,
  20909. this.inSlideAnimationDurationMultiplier = 1,
  20910. this.presentEndingScreenDurationMultiplier = 2.5,
  20911. this.dismissEndingScreenDurationMultiplier = 1,
  20912. this._slideSize = null !== (t = "string" == typeof e.slideSize ? i.slideSizes[e.slideSize] : e.slideSize) && void 0 !== t ? t : i.slideSize_16_9,
  20913. this._contentProvider = "contentProvider"in e ? e.contentProvider : e,
  20914. this._slideAppearanceId = null !== (n = e.slideTheme) && void 0 !== n ? n : "default",
  20915. this._enqueueAsyncJob = c.makeAsyncQueue()
  20916. }
  20917. get slideSize() {
  20918. return this._slideSize
  20919. }
  20920. get slideAppearanceId() {
  20921. return this._slideAppearanceId
  20922. }
  20923. get contentProvider() {
  20924. return this._contentProvider
  20925. }
  20926. get currentSlide() {
  20927. return this._currentSlide
  20928. }
  20929. get currentTopicId() {
  20930. var e, t;
  20931. return null !== (t = null === (e = this._currentSlide) || void 0 === e ? void 0 : e.topicId) && void 0 !== t ? t : null
  20932. }
  20933. get isPerformingTransition() {
  20934. return this._isPerformingTransition || this._isPerformingEndingScreenTransition
  20935. }
  20936. get slideState() {
  20937. return this._slideState
  20938. }
  20939. get isShowingEndingScreen() {
  20940. return null !== this._slideBeforeEndingScreen
  20941. }
  20942. get isShowingNothing() {
  20943. return null === this._currentSlide && !this.isShowingEndingScreen
  20944. }
  20945. getTransition(e, t) {
  20946. return l.computeTransition(this, e, this.baseDuration, t, {
  20947. disablesAnimations: this._disablesAnimations
  20948. })
  20949. }
  20950. getStartingSlide(e) {
  20951. const t = null != e ? e : this._contentProvider.getStartingTopicId();
  20952. return t ? this.getSlideByAlias({
  20953. kind: "startOfTopic",
  20954. topicId: t
  20955. }) : null
  20956. }
  20957. getSlideContent(e) {
  20958. const t = e
  20959. , n = this._contentCache.get(t);
  20960. if (void 0 !== n)
  20961. return n;
  20962. const r = f.computeSlideContent(e, this._contentProvider);
  20963. return this._contentCache.set(t, r),
  20964. r
  20965. }
  20966. getTemplateSlide(e, t) {
  20967. var n;
  20968. const r = `${e}:${t}`;
  20969. let i = null !== (n = this._templateSlides.get(r)) && void 0 !== n ? n : null;
  20970. if (!i) {
  20971. const n = this.getSlideContent(t);
  20972. n && (i = s.generateTemplateSlideFor(e, n, {
  20973. slideSize: this.slideSize,
  20974. appearanceId: this.slideAppearanceId
  20975. }),
  20976. i && this._templateSlides.set(r, i))
  20977. }
  20978. return i
  20979. }
  20980. getSlideByAlias(e) {
  20981. var t;
  20982. let n = this._slideStore.getSlide(e);
  20983. if (!n) {
  20984. const r = s.getTopicIdForGeneratingSlideByAlias(e, this._contentProvider);
  20985. if (r) {
  20986. const i = this.getSlideContent(r);
  20987. if (i) {
  20988. const o = s.generatePresentationalSlidesFor(i, (e,t)=>this.getTemplateSlide(e, t));
  20989. for (const e of o)
  20990. for (const n of null !== (t = e.aliases) && void 0 !== t ? t : [])
  20991. this._slideStore.setSlide(n, e),
  20992. this._slideStore.addSlideGeneratedForTopic(r, n);
  20993. n = this._slideStore.getSlide(e)
  20994. }
  20995. }
  20996. }
  20997. return n
  20998. }
  20999. isSlideSkipped(e) {
  21000. return "skip" === u.computeSlideVisibility(e, this)
  21001. }
  21002. present(e) {
  21003. return r(this, void 0, void 0, (function*() {
  21004. return yield this._enqueueTransitionRequest({
  21005. kind: "present",
  21006. topicId: e
  21007. })
  21008. }
  21009. ))
  21010. }
  21011. forward() {
  21012. return r(this, void 0, void 0, (function*() {
  21013. return yield this._enqueueTransitionRequest({
  21014. kind: "forward"
  21015. })
  21016. }
  21017. ))
  21018. }
  21019. backward() {
  21020. return r(this, void 0, void 0, (function*() {
  21021. return yield this._enqueueTransitionRequest({
  21022. kind: "backward"
  21023. })
  21024. }
  21025. ))
  21026. }
  21027. fastBackward() {
  21028. return r(this, void 0, void 0, (function*() {
  21029. return yield this._enqueueTransitionRequest({
  21030. kind: "fastBackward"
  21031. })
  21032. }
  21033. ))
  21034. }
  21035. fastForward() {
  21036. return r(this, void 0, void 0, (function*() {
  21037. return yield this._enqueueTransitionRequest({
  21038. kind: "fastForward"
  21039. })
  21040. }
  21041. ))
  21042. }
  21043. changeSlideSize(e) {
  21044. return r(this, void 0, void 0, (function*() {
  21045. return yield this._enqueueTransitionRequest({
  21046. kind: "changeSlideSize",
  21047. slideSize: e
  21048. })
  21049. }
  21050. ))
  21051. }
  21052. changeSlideTheme(e) {
  21053. return r(this, void 0, void 0, (function*() {
  21054. return yield this._enqueueTransitionRequest({
  21055. kind: "changeAppearance",
  21056. appearanceId: e
  21057. })
  21058. }
  21059. ))
  21060. }
  21061. get disablesAnimations() {
  21062. return this._disablesAnimations
  21063. }
  21064. set disablesAnimations(e) {
  21065. this._disablesAnimations = e,
  21066. this._preloadNextSlideTransition()
  21067. }
  21068. addPresenter(e) {
  21069. this._presenters = [...this._presenters, e],
  21070. e.delegate = this
  21071. }
  21072. removePresenter(e) {
  21073. delete e.delegate,
  21074. this._presenters = this._presenters.filter(t=>t !== e)
  21075. }
  21076. presenterDidReceivePointerInteraction(e, t) {
  21077. switch (t.kind) {
  21078. case "hit":
  21079. return this._handleHitInteraction(t);
  21080. case "scroll":
  21081. return this._handleScrollInteraction(t);
  21082. case "activate":
  21083. case "deactivate":
  21084. return this._handleActivationInteraction(t)
  21085. }
  21086. }
  21087. _handleHitInteraction(e) {
  21088. if (this._isHandlingTransitionRequest)
  21089. return;
  21090. const t = this.currentSlide;
  21091. if (e.boxId && t && "presenterPerspective" === this.mode) {
  21092. const n = o.findBox(t.boxes, t=>t.id === e.boxId);
  21093. if (n && n.requestForHit)
  21094. return void this._enqueueTransitionRequest(n.requestForHit)
  21095. }
  21096. this._enqueueTransitionRequest({
  21097. kind: "forward"
  21098. })
  21099. }
  21100. _handleScrollInteraction(e) {
  21101. if (this._isHandlingTransitionRequest)
  21102. return;
  21103. if (!this._currentSlide)
  21104. return;
  21105. const {boxId: t, scrollOffset: n} = e;
  21106. this._changeState([e=>i.mergeSlideState(e, {
  21107. boxes: [{
  21108. id: t,
  21109. scrollOffset: n
  21110. }]
  21111. }), this._setMode("presenterPerspective"), this._updatePresenterPerspectiveState()])
  21112. }
  21113. _handleActivationInteraction(e) {
  21114. "activate" === e.kind ? this.mode = "presenterPerspective" : "deactivate" === e.kind && (this.mode = "presentation")
  21115. }
  21116. _changeState(e, t=0) {
  21117. return r(this, void 0, void 0, (function*() {
  21118. const n = this._disablesAnimations ? 0 : this.baseDuration * t;
  21119. this.emit({
  21120. type: "stateWillChange",
  21121. slideshow: this
  21122. }),
  21123. this._slideState = e.reduce((e,t)=>t(e), this._slideState),
  21124. yield Promise.all(this._presenters.map(e=>e.performStateChange(this._slideState, {
  21125. duration: n,
  21126. easing: "easeInOutCubic"
  21127. }))),
  21128. this.emit({
  21129. type: "stateDidChange",
  21130. slideshow: this
  21131. })
  21132. }
  21133. ))
  21134. }
  21135. get mode() {
  21136. var e;
  21137. return null !== (e = this._slideState.mode) && void 0 !== e ? e : "presentation"
  21138. }
  21139. set mode(e) {
  21140. this._enqueueAsyncJob(()=>this._changeState([this._setMode(e), this._updatePresenterPerspectiveState()]))
  21141. }
  21142. _setMode(e) {
  21143. return t=>i.mergeSlideState(t, {
  21144. mode: e
  21145. })
  21146. }
  21147. _updatePresenterPerspectiveState() {
  21148. const e = this._currentSlide;
  21149. return t=>i.mergeSlideState(t, "presenterPerspective" === t.mode ? null == e ? void 0 : e.presenterPerspectiveStates : null == e ? void 0 : e.revertedPresenterPerspectiveStates)
  21150. }
  21151. _enqueueTransitionRequest(e) {
  21152. return this._numberOfPendingTransitionRequests >= 1 ? Promise.resolve({
  21153. ignored: !0
  21154. }) : (this._numberOfPendingTransitionRequests += 1,
  21155. new Promise((t,n)=>{
  21156. this._enqueueAsyncJob(()=>(this._isHandlingTransitionRequest = !0,
  21157. this._numberOfPendingTransitionRequests -= 1,
  21158. this.emit({
  21159. type: "transitionStart",
  21160. request: e,
  21161. slideshow: this
  21162. }),
  21163. this._handleTransitionRequest(e).then(()=>{
  21164. t({})
  21165. }
  21166. ).catch(e=>{
  21167. n(e)
  21168. }
  21169. ).then(()=>{
  21170. this.emit({
  21171. type: "transitionEnd",
  21172. request: e,
  21173. slideshow: this
  21174. }),
  21175. this._isHandlingTransitionRequest = !1,
  21176. this._preloadNextSlideTransition(),
  21177. this.isShowingNothing && this.emit({
  21178. type: "finish",
  21179. slideshow: this
  21180. })
  21181. }
  21182. )))
  21183. }
  21184. ))
  21185. }
  21186. _handleTransitionRequest(e) {
  21187. return r(this, void 0, void 0, (function*() {
  21188. if ("changeSlideSize" === e.kind)
  21189. return void (yield this._handleChangeSlideSizeRequest(e.slideSize));
  21190. if ("changeAppearance" === e.kind)
  21191. return void (yield this._handleChangeAppearanceRequest(e.appearanceId));
  21192. if (this.isShowingEndingScreen)
  21193. return void (yield this._handleTransitionRequestFromEndingScreen(e));
  21194. if (yield this._tryPerformInSlideAnimations(e))
  21195. return;
  21196. let t = e;
  21197. for (; t; )
  21198. t = yield this._performSlideTransitionByRequest(t, {
  21199. isAutomaticallyRequested: t !== e
  21200. })
  21201. }
  21202. ))
  21203. }
  21204. _performSlideTransitionByRequest(e, t={}) {
  21205. var n, i, o, a, s;
  21206. return r(this, void 0, void 0, (function*() {
  21207. const r = this._currentSlide
  21208. , l = this.getTransition(e, r);
  21209. return l && l.sourceSlide !== l.targetSlide ? (t.isAutomaticallyRequested || (yield this._changeState([this._setMode("presentation")], this.restoreSlideDurationMultiplier)),
  21210. yield Promise.all([this._performTransition(l), l.targetSlide ? Promise.resolve() : this._presentEndingScreen(r, {
  21211. duration: this.baseDuration * this.presentEndingScreenDurationMultiplier
  21212. })]),
  21213. t.isAutomaticallyRequested || (yield this._changeState([()=>({})], this.restoreSlideDurationMultiplier)),
  21214. null !== (i = null === (n = l.targetSlide) || void 0 === n ? void 0 : n.autoForwarding) && void 0 !== i && i && "backward" !== e.kind && "fastBackward" !== e.kind ? {
  21215. kind: "forward"
  21216. } : null === (a = null === (o = l.targetSlide) || void 0 === o ? void 0 : o.autoBackwarding) || void 0 === a || !a || "backward" !== e.kind && "fastBackward" !== e.kind ? "present" === e.kind && e.viaIntro && l.targetSlide && !(null === (s = l.targetSlide.aliases) || void 0 === s ? void 0 : s.some(t=>"startOfTopic" === t.kind && t.topicId === e.topicId)) ? {
  21217. kind: "present",
  21218. topicId: e.topicId
  21219. } : null : {
  21220. kind: "backward"
  21221. }) : null
  21222. }
  21223. ))
  21224. }
  21225. _handleChangeSlideSizeRequest(e) {
  21226. return r(this, void 0, void 0, (function*() {
  21227. e !== this._slideSize && (yield this._changeSlideAppearanceOrDimension(()=>{
  21228. this._slideSize = e
  21229. }
  21230. ))
  21231. }
  21232. ))
  21233. }
  21234. _handleChangeAppearanceRequest(e) {
  21235. return r(this, void 0, void 0, (function*() {
  21236. e !== this._slideAppearanceId && (yield this._changeSlideAppearanceOrDimension(()=>{
  21237. this._slideAppearanceId = e
  21238. }
  21239. ))
  21240. }
  21241. ))
  21242. }
  21243. _changeSlideAppearanceOrDimension(e) {
  21244. return r(this, void 0, void 0, (function*() {
  21245. const t = this._currentSlide;
  21246. if (!t)
  21247. return;
  21248. if (!t.aliases || 0 === t.aliases.length)
  21249. return;
  21250. const n = t.aliases[0];
  21251. this._templateSlides.clear(),
  21252. this._slideStore.clear(),
  21253. e();
  21254. const r = this.getSlideByAlias(n);
  21255. if (!r)
  21256. throw new Error("Failed to find the target slide after changing slide theme.");
  21257. const i = this.mode;
  21258. "presenterPerspective" === i && (yield this._changeState([this._setMode("presentation")])),
  21259. yield this._performTransition({
  21260. effect: "dissolve",
  21261. duration: this.baseDuration,
  21262. baseDuration: this.baseDuration,
  21263. sourceSlide: t,
  21264. targetSlide: r
  21265. }),
  21266. "presenterPerspective" === i && (yield this._changeState([this._setMode("presenterPerspective"), this._updatePresenterPerspectiveState()]))
  21267. }
  21268. ))
  21269. }
  21270. _preloadNextSlideTransition() {
  21271. if (null === this._currentSlide)
  21272. return;
  21273. const e = this.getTransition({
  21274. kind: "forward"
  21275. }, this._currentSlide);
  21276. if (e && e.sourceSlide !== e.targetSlide)
  21277. for (const t of this._presenters)
  21278. t.preloadTransition && t.preloadTransition(e)
  21279. }
  21280. _handleTransitionRequestFromEndingScreen(e) {
  21281. return r(this, void 0, void 0, (function*() {
  21282. if ("forward" === e.kind)
  21283. yield this._dismissEndingScreen({
  21284. animated: !0,
  21285. duration: this.baseDuration * this.dismissEndingScreenDurationMultiplier
  21286. });
  21287. else if ("backward" === e.kind) {
  21288. const e = this._slideBeforeEndingScreen;
  21289. yield this._dismissEndingScreen({
  21290. animated: !1,
  21291. duration: 0
  21292. }),
  21293. yield this._performTransition({
  21294. effect: "none",
  21295. duration: 0,
  21296. baseDuration: this.baseDuration,
  21297. sourceSlide: null,
  21298. targetSlide: e
  21299. })
  21300. }
  21301. }
  21302. ))
  21303. }
  21304. _tryPerformInSlideAnimations(e) {
  21305. return r(this, void 0, void 0, (function*() {
  21306. const t = this._currentSlide;
  21307. if (!t)
  21308. return !1;
  21309. const n = d.computeMultistepChange(e, t, this._slideState);
  21310. return !(!n || 0 === Object.keys(n).length) && (yield this._changeState([e=>i.mergeSlideState(e, n), this._setMode("presentation"), this._updatePresenterPerspectiveState()], this.inSlideAnimationDurationMultiplier),
  21311. !0)
  21312. }
  21313. ))
  21314. }
  21315. _performTransition(e) {
  21316. return r(this, void 0, void 0, (function*() {
  21317. this._isPerformingTransition = !0,
  21318. yield Promise.all(this._presenters.map(t=>t.performTransition(e))),
  21319. this._isPerformingTransition = !1,
  21320. this._currentSlide = e.targetSlide
  21321. }
  21322. ))
  21323. }
  21324. _presentEndingScreen(e, t) {
  21325. return r(this, void 0, void 0, (function*() {
  21326. const n = this._presenters.filter(e=>"presentEndingScreen"in e);
  21327. if (n.length <= 0)
  21328. return;
  21329. if (!this._contentProvider.getEndingScreenContent)
  21330. return;
  21331. const r = yield this._contentProvider.getEndingScreenContent();
  21332. r && (this._slideBeforeEndingScreen = e,
  21333. this._isPerformingEndingScreenTransition = !0,
  21334. yield Promise.all(n.map(e=>e.presentEndingScreen(r, this.slideSize, t))),
  21335. this._isPerformingEndingScreenTransition = !1)
  21336. }
  21337. ))
  21338. }
  21339. _dismissEndingScreen(e) {
  21340. return r(this, void 0, void 0, (function*() {
  21341. this._presenters.filter(e=>"presentEndingScreen"in e).length <= 0 || (this._isPerformingEndingScreenTransition = !0,
  21342. yield Promise.all(this._presenters.filter(e=>"dismissEndingScreen"in e).map(t=>t.dismissEndingScreen(e))),
  21343. this._isPerformingEndingScreenTransition = !1),
  21344. this._slideBeforeEndingScreen = null
  21345. }
  21346. ))
  21347. }
  21348. on(e, t) {
  21349. var n;
  21350. const r = null !== (n = this.eventCallbacks.get(e)) && void 0 !== n ? n : [];
  21351. this.eventCallbacks.set(e, [...r, t])
  21352. }
  21353. off(e, t) {
  21354. var n;
  21355. let r = null !== (n = this.eventCallbacks.get(e)) && void 0 !== n ? n : [];
  21356. r = r.filter(e=>e !== t),
  21357. this.eventCallbacks.set(e, r)
  21358. }
  21359. emit(e) {
  21360. const t = this.eventCallbacks.get(e.type);
  21361. if (t)
  21362. for (const n of t)
  21363. n(e)
  21364. }
  21365. }
  21366. },
  21367. 257: function(e, t, n) {
  21368. "use strict";
  21369. Object.defineProperty(t, "__esModule", {
  21370. value: !0
  21371. }),
  21372. t.hash = t.SlideStore = void 0;
  21373. function r(e) {
  21374. var t;
  21375. return `${e.kind}:${null !== (t = e.index) && void 0 !== t ? t : "x"}:${e.topicId}`
  21376. }
  21377. t.SlideStore = class {
  21378. constructor() {
  21379. this._slides = new Map,
  21380. this._slideGenerations = new Map
  21381. }
  21382. getSlide(e) {
  21383. var t;
  21384. return null !== (t = this._slides.get(r(e))) && void 0 !== t ? t : null
  21385. }
  21386. setSlide(e, t) {
  21387. this._slides.set(r(e), t)
  21388. }
  21389. hasSlidesGeneratedForTopic(e) {
  21390. return this._slideGenerations.has(e)
  21391. }
  21392. getSlidesGeneratedForTopic(e) {
  21393. var t, n;
  21394. return null !== (n = null === (t = this._slideGenerations.get(e)) || void 0 === t ? void 0 : t.slides) && void 0 !== n ? n : []
  21395. }
  21396. addSlideGeneratedForTopic(e, t) {
  21397. var n;
  21398. const r = null !== (n = this._slideGenerations.get(e)) && void 0 !== n ? n : {
  21399. slides: []
  21400. };
  21401. r.slides.push(t),
  21402. this._slideGenerations.set(e, r)
  21403. }
  21404. clear() {
  21405. this._slides = new Map,
  21406. this._slideGenerations = new Map
  21407. }
  21408. }
  21409. ,
  21410. t.hash = r
  21411. },
  21412. 258: function(e, t, n) {
  21413. "use strict";
  21414. Object.defineProperty(t, "__esModule", {
  21415. value: !0
  21416. }),
  21417. t.generateSlideFromDescriptor = t.generatePresentationalSlidesFor = t.getTopicIdForGeneratingSlideByAlias = t.generateTemplateSlideFor = void 0;
  21418. const r = n(5)
  21419. , i = n(159)
  21420. , o = n(15)
  21421. , a = n(166)
  21422. , s = n(42)
  21423. , l = n(158)
  21424. , u = n(109);
  21425. function c(e, t, n, o, a) {
  21426. var s, l;
  21427. if (!e.type || !e.alias)
  21428. return null;
  21429. const {alias: u, type: c, layoutOptions: d, autoForwarding: f, autoBackwarding: h} = e
  21430. , {topic: {id: p}} = o
  21431. , g = a(c, p);
  21432. if (!g)
  21433. throw new Error(`Unable to obtain template slide for type "${c}" and topicId "${p}"`);
  21434. let m = Object.assign(Object.assign({}, g), {
  21435. aliases: [...null !== (s = g.aliases) && void 0 !== s ? s : []]
  21436. });
  21437. return r.addSlideAliases(m, u),
  21438. (null == t ? void 0 : t.alias) && (m.previousSlide = t.alias),
  21439. (null == n ? void 0 : n.alias) && (m.nextSlide = n.alias),
  21440. (null == t ? void 0 : t.nextSlide) && r.addSlideAliases(m, t.nextSlide),
  21441. (null == n ? void 0 : n.previousSlide) && r.addSlideAliases(m, n.previousSlide),
  21442. (null == n ? void 0 : n.previousSlide2) && r.addSlideAliases(m, n.previousSlide2),
  21443. void 0 !== f && (m.autoForwarding = f),
  21444. void 0 !== h && (m.autoBackwarding = h),
  21445. m.layout in i.layoutEngines && (m = null !== (l = i.layoutEngines[m.layout].generatePresentationalSlide(m, o, d)) && void 0 !== l ? l : m),
  21446. m
  21447. }
  21448. t.generateTemplateSlideFor = function(e, t, n={}) {
  21449. var a, u, c, d;
  21450. const f = o.appearanceOf(null !== (a = n.appearanceId) && void 0 !== a ? a : "default")
  21451. , h = null !== (u = n.slideSize) && void 0 !== u ? u : r.slideSize_16_9
  21452. , p = o.dimensionOf(h)
  21453. , {topic: {id: g}, parentTopicId: m, topicLevel: v} = t
  21454. , y = l.computeSlideLayout(e, h, t)
  21455. , b = {
  21456. type: e,
  21457. layout: y,
  21458. topicId: g,
  21459. parentTopicId: m,
  21460. subtopics: t.subtopics.map(e=>e.id),
  21461. headerTopicId: null === (c = t.headerTopic) || void 0 === c ? void 0 : c.id,
  21462. calloutTopicId: null === (d = t.calloutTopic) || void 0 === d ? void 0 : d.id,
  21463. topicLevel: v,
  21464. boxes: [],
  21465. width: h.width,
  21466. height: h.height
  21467. };
  21468. return y && y in i.layoutEngines && i.layoutEngines[y].layoutTemplateSlide(b, t, {
  21469. dimension: p,
  21470. appearance: f
  21471. }),
  21472. s.disposeTextMeasurementHelpers(),
  21473. b
  21474. }
  21475. ,
  21476. t.getTopicIdForGeneratingSlideByAlias = function(e, t) {
  21477. var n, r;
  21478. if ("introOfSummary" === e.kind || "outroOfSummary" === e.kind)
  21479. return t.getParentTopicId(e.topicId);
  21480. if ("introOfTopic" === e.kind || "outroOfTopic" === e.kind) {
  21481. const i = t.getParentTopicId(e.topicId);
  21482. if (!i || (null === (r = null === (n = t.getFloatingTopics) || void 0 === n ? void 0 : n.call(t)) || void 0 === r ? void 0 : r.includes(e.topicId))) {
  21483. const n = u.computeRootTopics(t)
  21484. , {previousSiblingTopicId: r, nextSiblingTopicId: i} = u.computeSiblingTopics(e.topicId, n);
  21485. return "introOfTopic" === e.kind ? r : i
  21486. }
  21487. return i
  21488. }
  21489. return e.topicId
  21490. }
  21491. ,
  21492. t.generatePresentationalSlidesFor = function(e, t) {
  21493. var n, r;
  21494. const i = a.describeSlideSequenceForTopic(e)
  21495. , o = [];
  21496. for (let a = 0; a < i.length; a++) {
  21497. const s = c(i[a], null !== (n = i[a - 1]) && void 0 !== n ? n : null, null !== (r = i[a + 1]) && void 0 !== r ? r : null, e, t);
  21498. s && o.push(s)
  21499. }
  21500. return o
  21501. }
  21502. ,
  21503. t.generateSlideFromDescriptor = c
  21504. },
  21505. 259: function(e, t, n) {
  21506. "use strict";
  21507. Object.defineProperty(t, "__esModule", {
  21508. value: !0
  21509. }),
  21510. t.computeTransitionEffect = t.doComputeTransition = t.findNonSkippedSlide = t.findTargetSlideForFastForwardTransition = t.findTargetSlideForFastBackwardTransition = t.findTargetSlideForPresentTransition = t.findTargetSlideForBackwardTransition = t.findTargetSlideForForwardTransition = t.computeTransition = void 0;
  21511. const r = n(5);
  21512. function i(e, t) {
  21513. if (!t)
  21514. return e.getStartingSlide();
  21515. const n = t.nextSlide ? e.getSlideByAlias(t.nextSlide) : null;
  21516. return u(e, n, e=>e.nextSlide)
  21517. }
  21518. function o(e, t) {
  21519. var n;
  21520. if (!t)
  21521. return null;
  21522. const r = t.previousSlide ? e.getSlideByAlias(t.previousSlide) : null;
  21523. return null !== (n = u(e, r, e=>e.previousSlide)) && void 0 !== n ? n : t
  21524. }
  21525. function a(e, t, n, r) {
  21526. var i;
  21527. let o = null;
  21528. return n && r && (o = e.getSlideByAlias({
  21529. kind: "introOfTopic",
  21530. topicId: n
  21531. }),
  21532. o === t && (o = null)),
  21533. null !== (i = null != o ? o : e.getStartingSlide(n)) && void 0 !== i ? i : t
  21534. }
  21535. function s(e, t, n) {
  21536. var r;
  21537. const i = null != n ? n : null == t ? void 0 : t.topicId;
  21538. if (!i)
  21539. return null;
  21540. const o = null !== (r = e.getSlideByAlias("summary" === (null == t ? void 0 : t.type) ? {
  21541. kind: "introOfSummary",
  21542. topicId: i
  21543. } : {
  21544. kind: "introOfTopic",
  21545. topicId: i
  21546. })) && void 0 !== r ? r : e.getSlideByAlias({
  21547. kind: "startOfTopic",
  21548. topicId: i
  21549. });
  21550. return null != o ? o : t
  21551. }
  21552. function l(e, t, n) {
  21553. var r;
  21554. const i = null != n ? n : null == t ? void 0 : t.topicId;
  21555. if (!i)
  21556. return null;
  21557. const o = null !== (r = e.getSlideByAlias("summary" === (null == t ? void 0 : t.type) ? {
  21558. kind: "outroOfSummary",
  21559. topicId: i
  21560. } : {
  21561. kind: "outroOfTopic",
  21562. topicId: i
  21563. })) && void 0 !== r ? r : e.getSlideByAlias({
  21564. kind: "endOfTopic",
  21565. topicId: i
  21566. });
  21567. return null != o ? o : t
  21568. }
  21569. function u(e, t, n) {
  21570. for (; t && e.isSlideSkipped(t); ) {
  21571. const r = n(t);
  21572. t = r ? e.getSlideByAlias(r) : null
  21573. }
  21574. return t
  21575. }
  21576. function c(e, t, n, i, o={}) {
  21577. var a, s;
  21578. if (n === i)
  21579. return null;
  21580. const l = o.disablesEffect ? {
  21581. effect: "none",
  21582. duration: 0
  21583. } : f(t, n, i)
  21584. , u = Object.assign(Object.assign({}, l), {
  21585. baseDuration: t,
  21586. sourceSlide: n,
  21587. targetSlide: i
  21588. });
  21589. return !o.disablesSourceSlideAnimations && n && (u.sourceSlideAnimations = n.leavingAnimations),
  21590. !o.disablesTargetSlideAnimations && i && (u.targetSlideEnteringState = i.enteringStates,
  21591. null === (a = i.additionalEnteringStates) || void 0 === a || a.forEach(t=>{
  21592. d(e, n, t.when) && (u.targetSlideEnteringState = r.mergeSlideState(u.targetSlideEnteringState, t.state))
  21593. }
  21594. ),
  21595. null === (s = i.enteringAnimations) || void 0 === s || s.forEach(t=>{
  21596. d(e, n, t.when) && (u.targetSlideAnimations || (u.targetSlideAnimations = []),
  21597. u.targetSlideAnimations.push(t))
  21598. }
  21599. )),
  21600. u
  21601. }
  21602. function d(e, t, n) {
  21603. return !n || (!n.request || n.request === e.kind) && ((!n.sourceSlideType || n.sourceSlideType === (null == t ? void 0 : t.type)) && (!n.sourceSlideTopicId || n.sourceSlideTopicId === (null == t ? void 0 : t.topicId)))
  21604. }
  21605. function f(e, t, n) {
  21606. return "topic" !== (null == n ? void 0 : n.type) || "centralTopic" != (null == n ? void 0 : n.topicLevel) && "floatingTopic" != (null == n ? void 0 : n.topicLevel) ? t && n ? t.topicId === n.topicId ? "list" === t.type && "topic" === n.type ? {
  21607. effect: "magicMove",
  21608. duration: 2.5 * e
  21609. } : t.type === n.type ? {
  21610. effect: "animateInSlide",
  21611. duration: 1.5 * e
  21612. } : {
  21613. effect: "magicMove",
  21614. duration: 2.5 * e
  21615. } : (t.topicId === n.parentTopicId || (n.topicId,
  21616. t.parentTopicId),
  21617. {
  21618. effect: "magicMove",
  21619. duration: 2.5 * e
  21620. }) : {
  21621. effect: "dissolve",
  21622. duration: e
  21623. } : {
  21624. effect: "dissolve",
  21625. duration: 1.5 * e
  21626. }
  21627. }
  21628. t.computeTransition = function(e, t, n, r, u={}) {
  21629. switch (t.kind) {
  21630. case "present":
  21631. return c(t, n, r, a(e, r, t.topicId, t.viaIntro), {
  21632. disablesEffect: u.disablesAnimations,
  21633. disablesSourceSlideAnimations: u.disablesAnimations,
  21634. disablesTargetSlideAnimations: !!t.viaIntro || u.disablesAnimations
  21635. });
  21636. case "forward":
  21637. return c(t, n, r, i(e, r), {
  21638. disablesEffect: u.disablesAnimations,
  21639. disablesSourceSlideAnimations: u.disablesAnimations,
  21640. disablesTargetSlideAnimations: u.disablesAnimations
  21641. });
  21642. case "backward":
  21643. return c(t, n, r, o(e, r), {
  21644. disablesEffect: !0,
  21645. disablesSourceSlideAnimations: !0,
  21646. disablesTargetSlideAnimations: !0
  21647. });
  21648. case "fastBackward":
  21649. return c(t, n, r, s(e, r, t.topicId), {
  21650. disablesEffect: u.disablesAnimations,
  21651. disablesSourceSlideAnimations: !0,
  21652. disablesTargetSlideAnimations: !0
  21653. });
  21654. case "fastForward":
  21655. return c(t, n, r, l(e, r, t.topicId), {
  21656. disablesEffect: u.disablesAnimations,
  21657. disablesSourceSlideAnimations: u.disablesAnimations,
  21658. disablesTargetSlideAnimations: u.disablesAnimations
  21659. });
  21660. case "changeAppearance":
  21661. case "changeSlideSize":
  21662. return null
  21663. }
  21664. }
  21665. ,
  21666. t.findTargetSlideForForwardTransition = i,
  21667. t.findTargetSlideForBackwardTransition = o,
  21668. t.findTargetSlideForPresentTransition = a,
  21669. t.findTargetSlideForFastBackwardTransition = s,
  21670. t.findTargetSlideForFastForwardTransition = l,
  21671. t.findNonSkippedSlide = u,
  21672. t.doComputeTransition = c,
  21673. t.computeTransitionEffect = f
  21674. },
  21675. 260: function(e, t, n) {
  21676. "use strict";
  21677. Object.defineProperty(t, "__esModule", {
  21678. value: !0
  21679. }),
  21680. t.computeUserSlideVisibility = t.computeDefaultSummarySlideVisibility = t.computeExitListSlideVisibility = t.computeDefaultListSlideVisibility = t.computeDefaultTopicSlideVisibilityByContent = t.computeDefaultTopicSlideVisibilityByTopicLevel = t.computeSlideVisibility = void 0;
  21681. const r = n(5);
  21682. function i(e, t) {
  21683. var n, r, i, s, u;
  21684. const d = t.getSlideContent(e.topicId);
  21685. if (!d)
  21686. return "skip";
  21687. const {topic: f, topicLevel: h} = d;
  21688. switch (e.type) {
  21689. case "topic":
  21690. return null !== (r = null !== (n = c(f.topicSlide)) && void 0 !== n ? n : o(h)) && void 0 !== r ? r : a(e, t);
  21691. case "list":
  21692. return null !== (s = null !== (i = c(f.listSlides)) && void 0 !== i ? i : l(e, t)) && void 0 !== s ? s : "show";
  21693. case "summary":
  21694. return null !== (u = c(f.summarySlide)) && void 0 !== u ? u : "show"
  21695. }
  21696. }
  21697. function o(e) {
  21698. return "centralTopic" === e || "mainTopic" === e || "floatingTopic" === e ? "show" : null
  21699. }
  21700. function a(e, t) {
  21701. var n, o;
  21702. const a = t.getSlideByAlias({
  21703. kind: "introOfTopic",
  21704. topicId: e.topicId
  21705. });
  21706. if (!a || a === e)
  21707. return "show";
  21708. if ("skip" === i(a, t))
  21709. return "show";
  21710. const s = null !== (n = e.contentFeatures) && void 0 !== n ? n : []
  21711. , l = null !== (o = a.contentFeatures) && void 0 !== o ? o : [];
  21712. return s.some(e=>l.every(t=>!r.isSlideContentFeatureCoveredBy(e, t))) ? "show" : "skip"
  21713. }
  21714. function s() {
  21715. return "show"
  21716. }
  21717. function l(e, t) {
  21718. var n, r;
  21719. const o = null === (n = e.aliases) || void 0 === n ? void 0 : n.find(e=>"outroOfTopic" === e.kind);
  21720. if (!o)
  21721. return null;
  21722. const a = e
  21723. , s = o;
  21724. function l(e) {
  21725. return "introOfTopic" === e.kind && e.topicId === s.topicId
  21726. }
  21727. let u = a.previousSlide ? t.getSlideByAlias(a.previousSlide) : null;
  21728. for (; null !== u && !(null === (r = u.aliases) || void 0 === r ? void 0 : r.some(l)); ) {
  21729. if ("skip" !== i(u, t))
  21730. return "show";
  21731. u = u.previousSlide ? t.getSlideByAlias(u.previousSlide) : null
  21732. }
  21733. return u ? "skip" : null
  21734. }
  21735. function u() {
  21736. return "show"
  21737. }
  21738. function c(e) {
  21739. return "skip" === e ? "skip" : "show" === e ? "show" : null
  21740. }
  21741. t.computeSlideVisibility = i,
  21742. t.computeDefaultTopicSlideVisibilityByTopicLevel = o,
  21743. t.computeDefaultTopicSlideVisibilityByContent = a,
  21744. t.computeDefaultListSlideVisibility = s,
  21745. t.computeExitListSlideVisibility = l,
  21746. t.computeDefaultSummarySlideVisibility = u,
  21747. t.computeUserSlideVisibility = c
  21748. },
  21749. 261: function(e, t, n) {
  21750. "use strict";
  21751. Object.defineProperty(t, "__esModule", {
  21752. value: !0
  21753. }),
  21754. t.makeAsyncQueue = void 0,
  21755. t.makeAsyncQueue = function() {
  21756. const e = [];
  21757. let t = !1;
  21758. const n = ()=>{
  21759. if (t)
  21760. return;
  21761. const r = e.shift();
  21762. r && (t = !0,
  21763. r().then(()=>{
  21764. t = !1,
  21765. n()
  21766. }
  21767. ).catch(()=>{
  21768. t = !1,
  21769. n()
  21770. }
  21771. ))
  21772. }
  21773. ;
  21774. return t=>{
  21775. e.push(t),
  21776. n()
  21777. }
  21778. }
  21779. },
  21780. 262: function(e, t, n) {
  21781. "use strict";
  21782. var r = this && this.__awaiter || function(e, t, n, r) {
  21783. return new (n || (n = Promise))((function(i, o) {
  21784. function a(e) {
  21785. try {
  21786. l(r.next(e))
  21787. } catch (e) {
  21788. o(e)
  21789. }
  21790. }
  21791. function s(e) {
  21792. try {
  21793. l(r.throw(e))
  21794. } catch (e) {
  21795. o(e)
  21796. }
  21797. }
  21798. function l(e) {
  21799. var t;
  21800. e.done ? i(e.value) : (t = e.value,
  21801. t instanceof n ? t : new n((function(e) {
  21802. e(t)
  21803. }
  21804. ))).then(a, s)
  21805. }
  21806. l((r = r.apply(e, t || [])).next())
  21807. }
  21808. ))
  21809. }
  21810. ;
  21811. Object.defineProperty(t, "__esModule", {
  21812. value: !0
  21813. }),
  21814. t.PresentationView = void 0;
  21815. const i = n(5)
  21816. , o = n(263)
  21817. , a = n(271)
  21818. , s = n(12)
  21819. , l = n(172)
  21820. , u = n(76)
  21821. , c = n(274)
  21822. , d = n(50)
  21823. , f = n(173)
  21824. , h = n(33);
  21825. class p extends u.View {
  21826. constructor(e={}) {
  21827. var t;
  21828. super(e),
  21829. this.allowsActivatingPresenterPerspectiveMode = !1,
  21830. this.allowsRenderingHitRegions = !0,
  21831. this._mode = "presentation",
  21832. this._slidePresentationState = {},
  21833. this._hitRegionBoxId = null,
  21834. this._isHandlingScrollEvent = !1,
  21835. this._millisecondsForTimeoutWaitingScroll = 600,
  21836. this._endingScreenView = null,
  21837. this._eventListener = e=>{
  21838. switch (e.type) {
  21839. case "click":
  21840. return this._onClick(e);
  21841. case "mousemove":
  21842. return this._onMouseMove(e);
  21843. case "mouseenter":
  21844. return this._onMouseEnter();
  21845. case "mouseleave":
  21846. return this._onMouseLeave()
  21847. }
  21848. }
  21849. ,
  21850. this._pointerMovementStartPoint = null,
  21851. this._thresholdDistanceForPointerMovementActivatingPresenterPerspectiveMode = 100,
  21852. this._timeoutToDeactivatePresenterPerspectiveMode = null,
  21853. this._millisecondsForTimeoutToDeactivatePresenterPerspectiveMode = 5e3,
  21854. this._slideView = this._createSlideView(null !== (t = e.initialSlide) && void 0 !== t ? t : null)
  21855. }
  21856. get slideView() {
  21857. return this._slideView
  21858. }
  21859. get presentationState() {
  21860. return this._slidePresentationState
  21861. }
  21862. startCountdownToDeactivatePresenterPerspectiveMode() {
  21863. this._startCountdownToDeactivatePresenterPerspectiveMode()
  21864. }
  21865. discardCountdownToDeactivatePresenterPerspectiveMode() {
  21866. this._discardCountdownToDeactivatePresenterPerspectiveMode()
  21867. }
  21868. createViewElement() {
  21869. const e = document.createElement("div");
  21870. return e.style.userSelect = "none",
  21871. e.style.backgroundColor = "#000",
  21872. this._addStylesViaCSS(e),
  21873. e
  21874. }
  21875. _addStylesViaCSS(e) {
  21876. const t = `pancake-presentation-view-${(new Date).getTime()}-${Math.floor(1e3 * Math.random())}`;
  21877. e.classList.add(t);
  21878. const n = this._makeStyleSheet(t)
  21879. , r = document.createElement("style");
  21880. r.setAttribute("type", "text/css"),
  21881. r.textContent = n,
  21882. e.appendChild(r)
  21883. }
  21884. _makeStyleSheet(e) {
  21885. return `.${e} ::-webkit-scrollbar { display: none; }`
  21886. }
  21887. get contentEl() {
  21888. var e;
  21889. return null !== (e = this._contentEl) && void 0 !== e ? e : this._contentEl = this.createContentElement()
  21890. }
  21891. createContentElement() {
  21892. const e = document.createElement("div");
  21893. return e.style.position = "absolute",
  21894. e.style.transformOrigin = "0 0",
  21895. e.style.backgroundColor = "#000",
  21896. this.el.appendChild(e),
  21897. e
  21898. }
  21899. update() {
  21900. super.update(),
  21901. this.slideView.slide && this.layout(this.slideView.slide.width, this.slideView.slide.height),
  21902. this._slidePresentationState.showCursor = this.allowsRenderingHitRegions,
  21903. this._slidePresentationState.hitRegions = this._computeHitRegionsState(),
  21904. this.slideView.update(),
  21905. this.connected && (this.el.style.cursor = "presenterPerspective" === this._mode && this._slidePresentationState.showCursor ? "" : "none")
  21906. }
  21907. layout(e, t) {
  21908. const n = this.el.clientWidth
  21909. , r = this.el.clientHeight
  21910. , i = Math.round(1e4 * Math.min(n / e, r / t)) / 1e4
  21911. , o = {
  21912. x: (n - e * i) / 2,
  21913. y: (r - t * i) / 2
  21914. };
  21915. this.contentEl.style.left = s.toCSSLength(o.x),
  21916. this.contentEl.style.top = s.toCSSLength(o.y),
  21917. this.contentEl.style.width = s.toCSSLength(e),
  21918. this.contentEl.style.height = s.toCSSLength(t),
  21919. this.contentEl.style.transform = `scale(${i}, ${i})`
  21920. }
  21921. performTransition(e) {
  21922. var t, n;
  21923. return r(this, void 0, void 0, (function*() {
  21924. this._discardCountdownToDeactivatePresenterPerspectiveMode(),
  21925. this._hitRegionBoxId = null;
  21926. const r = new a.AnimationExecutor(null !== (t = e.sourceSlideAnimations) && void 0 !== t ? t : [])
  21927. , i = new a.AnimationExecutor(null !== (n = e.targetSlideAnimations) && void 0 !== n ? n : [])
  21928. , s = this.slideView;
  21929. yield r.performAnimationsOnStage(e.baseDuration, "preTransition", s);
  21930. const l = this._createTargetSlideViewForTransition(e, s)
  21931. , u = this.computeTransitionEffect(e, s, l);
  21932. yield Promise.all([o.performTransitionEffect(e.duration, u, s, l), r.performAnimationsOnStage(e.duration, "transition", s), i.performAnimationsOnStage(e.duration, "transition", l)]),
  21933. s != l && this._destroySlideView(s),
  21934. yield i.performAnimationsOnStage(e.baseDuration, "postTransition", l),
  21935. this._slideView = l,
  21936. this._slideView.slide = e.targetSlide,
  21937. this._slideView.update(),
  21938. "presenterPerspective" === this._mode && this._startCountdownToDeactivatePresenterPerspectiveMode()
  21939. }
  21940. ))
  21941. }
  21942. _createTargetSlideViewForTransition(e, t, n={}) {
  21943. if (this._shouldReuseSlideViewForTransition(e))
  21944. return t;
  21945. {
  21946. const t = e.targetSlideEnteringState;
  21947. return this._createSlideView(e.targetSlide, Object.assign({
  21948. initialState: t
  21949. }, n))
  21950. }
  21951. }
  21952. _shouldReuseSlideViewForTransition(e) {
  21953. if ("animateInSlide" === e.effect)
  21954. return !0;
  21955. if ("none" === e.effect) {
  21956. const {sourceSlide: t, targetSlide: n} = e;
  21957. return (null == t ? void 0 : t.type) === (null == n ? void 0 : n.type) && (null == t ? void 0 : t.topicId) === (null == n ? void 0 : n.topicId)
  21958. }
  21959. return !1
  21960. }
  21961. preloadTransition(e) {
  21962. var t;
  21963. return r(this, void 0, void 0, (function*() {
  21964. const n = this._createSlideView(this.slideView.slide, {
  21965. initialState: this.slideView.slideState,
  21966. belowAll: !0
  21967. })
  21968. , r = new a.AnimationExecutor(null !== (t = e.sourceSlideAnimations) && void 0 !== t ? t : []);
  21969. yield r.performAnimationsOnStage(0, "preTransition", n);
  21970. const i = this._createTargetSlideViewForTransition(e, n, {
  21971. belowAll: !0
  21972. });
  21973. this.computeTransitionEffect(e, n, i, {
  21974. force: !0
  21975. }),
  21976. this._destroySlideView(n),
  21977. n != i && this._destroySlideView(i)
  21978. }
  21979. ))
  21980. }
  21981. computeTransitionEffect(e, t, n, r={}) {
  21982. let i = this._computedTransitionEffect;
  21983. return !r.force && i && f.isEqual(i.transition, e) || (i = {
  21984. effect: o.computeTransitionEffect(e, t, n),
  21985. transition: e
  21986. },
  21987. this._computedTransitionEffect = i),
  21988. i.effect
  21989. }
  21990. _createSlideView(e, {initialState: t, belowAll: n}={}) {
  21991. const r = new l.SlideView({
  21992. superview: this
  21993. });
  21994. return r.positionMode = "manual",
  21995. e && this.layout(e.width, e.height),
  21996. n ? this.contentEl.insertBefore(r.el, this.contentEl.firstElementChild) : this.contentEl.appendChild(r.el),
  21997. r.slide = e,
  21998. t && (r.slideState = t),
  21999. r.update(),
  22000. this.connected && r.connect(),
  22001. r
  22002. }
  22003. _destroySlideView(e) {
  22004. this.connected && e.disconnect(),
  22005. e.el.parentElement == this.contentEl && this.contentEl.removeChild(e.el)
  22006. }
  22007. presentEndingScreen(e, t, n={}) {
  22008. var i, o;
  22009. return r(this, void 0, void 0, (function*() {
  22010. const r = null !== (i = this._endingScreenView) && void 0 !== i ? i : this._endingScreenView = new c.EndingScreenView({
  22011. superview: this,
  22012. size: t
  22013. });
  22014. r.content = e,
  22015. this.contentEl.appendChild(r.el),
  22016. r.update(),
  22017. r.connect(),
  22018. yield r.present(null !== (o = n.duration) && void 0 !== o ? o : 1e3)
  22019. }
  22020. ))
  22021. }
  22022. dismissEndingScreen(e={}) {
  22023. var t;
  22024. return r(this, void 0, void 0, (function*() {
  22025. const n = this._endingScreenView;
  22026. n && (!1 !== e.animated && (yield n.dismiss(null !== (t = e.duration) && void 0 !== t ? t : 1e3)),
  22027. n.disconnect(),
  22028. this.contentEl.removeChild(n.el),
  22029. this._endingScreenView = null)
  22030. }
  22031. ))
  22032. }
  22033. performStateChange(e, t) {
  22034. var n;
  22035. return r(this, void 0, void 0, (function*() {
  22036. this._discardCountdownToDeactivatePresenterPerspectiveMode(),
  22037. this._mode = null !== (n = e.mode) && void 0 !== n ? n : "presentation",
  22038. this.slideView.slideState = e,
  22039. t && t.duration && t.duration > 0 ? yield new d.ViewAnimator({
  22040. duration: t.duration,
  22041. easing: t.easing
  22042. }).animate(()=>{
  22043. this.update()
  22044. }
  22045. ).play() : this.update(),
  22046. "presenterPerspective" === this._mode && this._startCountdownToDeactivatePresenterPerspectiveMode()
  22047. }
  22048. ))
  22049. }
  22050. groupViewDidGetScrolled(e) {
  22051. var t;
  22052. this._handleScrollEvent();
  22053. const n = e.box.id
  22054. , r = e.scrollOffset;
  22055. null === (t = this.delegate) || void 0 === t || t.presenterDidReceivePointerInteraction(this, {
  22056. kind: "scroll",
  22057. boxId: n,
  22058. scrollOffset: r
  22059. })
  22060. }
  22061. boxViewDidGetHit(e) {
  22062. var t;
  22063. const n = e.box.id;
  22064. null === (t = this.delegate) || void 0 === t || t.presenterDidReceivePointerInteraction(this, {
  22065. kind: "hit",
  22066. boxId: n
  22067. })
  22068. }
  22069. boxViewDidGetPointerEntered(e) {
  22070. this._hitRegionBoxId = e.box.id,
  22071. "hovered" === this._hitRegionTrackingMode && this.update()
  22072. }
  22073. boxViewDidGetPointerLeft(e) {
  22074. this._hitRegionBoxId === e.box.id && (this._hitRegionBoxId = null,
  22075. "hovered" === this._hitRegionTrackingMode && this.update())
  22076. }
  22077. boxViewDidGetPointerCaptured(e) {
  22078. this.slideView.enterHitRegionActiveEffect(e)
  22079. }
  22080. boxViewDidGetPointerReleased(e) {
  22081. this.slideView.cancelHitRegionActiveEffect(e)
  22082. }
  22083. connect() {
  22084. super.connect(),
  22085. this.el.addEventListener("click", this._eventListener),
  22086. this.el.addEventListener("mousemove", this._eventListener),
  22087. this.el.addEventListener("mouseenter", this._eventListener),
  22088. this.el.addEventListener("mouseleave", this._eventListener),
  22089. this.update()
  22090. }
  22091. disconnect() {
  22092. this.el.removeEventListener("mouseleave", this._eventListener),
  22093. this.el.removeEventListener("mouseenter", this._eventListener),
  22094. this.el.removeEventListener("mousemove", this._eventListener),
  22095. this.el.removeEventListener("click", this._eventListener),
  22096. super.disconnect(),
  22097. this.update()
  22098. }
  22099. _handleScrollEvent() {
  22100. clearTimeout(this._scrollingHandlerTimer),
  22101. this._isHandlingScrollEvent || (this._isHandlingScrollEvent = !0,
  22102. this.update()),
  22103. this._scrollingHandlerTimer = setTimeout(()=>{
  22104. this._isHandlingScrollEvent = !1,
  22105. this.update()
  22106. }
  22107. , this._millisecondsForTimeoutWaitingScroll)
  22108. }
  22109. _onClick(e) {
  22110. const t = this.delegate;
  22111. t && (e.stopPropagation(),
  22112. t.presenterDidReceivePointerInteraction(this, {
  22113. kind: "hit"
  22114. }),
  22115. this._startCountdownToDeactivatePresenterPerspectiveMode())
  22116. }
  22117. _onMouseMove(e) {
  22118. var t;
  22119. if (this.allowsActivatingPresenterPerspectiveMode)
  22120. if ("presenterPerspective" === this._mode)
  22121. this._pointerMovementStartPoint = null;
  22122. else {
  22123. const n = this._computePointerLocation(e);
  22124. this._pointerMovementStartPoint ? this._isPointBeyondThresholdDistance(n, this._pointerMovementStartPoint, this._thresholdDistanceForPointerMovementActivatingPresenterPerspectiveMode) && (this._hitRegionTrackingMode = "hovered",
  22125. null === (t = this.delegate) || void 0 === t || t.presenterDidReceivePointerInteraction(this, {
  22126. kind: "activate"
  22127. })) : this._pointerMovementStartPoint = n
  22128. }
  22129. else
  22130. this._pointerMovementStartPoint = null;
  22131. this._startCountdownToDeactivatePresenterPerspectiveMode()
  22132. }
  22133. onTwoFingerTap() {
  22134. var e;
  22135. this.allowsActivatingPresenterPerspectiveMode && (this._hitRegionTrackingMode = "all",
  22136. null === (e = this.delegate) || void 0 === e || e.presenterDidReceivePointerInteraction(this, {
  22137. kind: "activate"
  22138. }),
  22139. this._startCountdownToDeactivatePresenterPerspectiveMode())
  22140. }
  22141. _computePointerLocation(e) {
  22142. return {
  22143. x: e.clientX,
  22144. y: e.clientY
  22145. }
  22146. }
  22147. _startCountdownToDeactivatePresenterPerspectiveMode() {
  22148. var e, t;
  22149. this._discardCountdownToDeactivatePresenterPerspectiveMode(),
  22150. this.allowsActivatingPresenterPerspectiveMode && ("hovered" === this._hitRegionTrackingMode && null !== (t = null === (e = this._slidePresentationState.hitRegions) || void 0 === e ? void 0 : e.length) && void 0 !== t && t || (this._timeoutToDeactivatePresenterPerspectiveMode = setTimeout(()=>{
  22151. var e;
  22152. this._pointerMovementStartPoint = null,
  22153. null === (e = this.delegate) || void 0 === e || e.presenterDidReceivePointerInteraction(this, {
  22154. kind: "deactivate"
  22155. })
  22156. }
  22157. , this._millisecondsForTimeoutToDeactivatePresenterPerspectiveMode)))
  22158. }
  22159. _discardCountdownToDeactivatePresenterPerspectiveMode() {
  22160. const e = this._timeoutToDeactivatePresenterPerspectiveMode;
  22161. e && (clearTimeout(e),
  22162. this._timeoutToDeactivatePresenterPerspectiveMode = null)
  22163. }
  22164. _isPointBeyondThresholdDistance(e, t, n) {
  22165. return Math.abs(e.x - t.x) > n || Math.abs(e.y - t.y) > n
  22166. }
  22167. _onMouseEnter() {
  22168. this._startCountdownToDeactivatePresenterPerspectiveMode()
  22169. }
  22170. _onMouseLeave() {
  22171. this._startCountdownToDeactivatePresenterPerspectiveMode()
  22172. }
  22173. _computeHitRegionsState() {
  22174. var e, t, n, r, o, a, s;
  22175. const l = []
  22176. , u = this.slideView.slide
  22177. , c = this.slideView.slideState
  22178. , d = null !== (n = null !== (e = null == c ? void 0 : c.hitRegionHPadding) && void 0 !== e ? e : null === (t = this.slideView.slide) || void 0 === t ? void 0 : t.hitRegionHPadding) && void 0 !== n ? n : 0
  22179. , f = null !== (a = null !== (r = null == c ? void 0 : c.hitRegionVPadding) && void 0 !== r ? r : null === (o = this.slideView.slide) || void 0 === o ? void 0 : o.hitRegionVPadding) && void 0 !== a ? a : 0;
  22180. if (u && c && this.allowsRenderingHitRegions && "presenterPerspective" === this._mode)
  22181. if ("all" === this._hitRegionTrackingMode) {
  22182. if (!this._isHandlingScrollEvent) {
  22183. const e = i.filterBoxes(u.boxes, e=>!!e.requestForHit).map(e=>{
  22184. var t;
  22185. return h.computeHitRegionBounds(e.id, u.boxes, null !== (t = c.boxes) && void 0 !== t ? t : [], {
  22186. x: 0,
  22187. y: 0,
  22188. width: u.width,
  22189. height: u.height
  22190. }, d, f)
  22191. }
  22192. ).filter(e=>!!e);
  22193. l.push(...e)
  22194. }
  22195. } else if ("hovered" === this._hitRegionTrackingMode) {
  22196. const e = this._hitRegionBoxId;
  22197. if (e) {
  22198. const t = h.computeHitRegionBounds(e, u.boxes, null !== (s = c.boxes) && void 0 !== s ? s : [], {
  22199. x: 0,
  22200. y: 0,
  22201. width: u.width,
  22202. height: u.height
  22203. }, d, f);
  22204. t && (t.opacity = 1,
  22205. l.push(t))
  22206. }
  22207. }
  22208. return l
  22209. }
  22210. }
  22211. t.PresentationView = p
  22212. },
  22213. 263: function(e, t, n) {
  22214. "use strict";
  22215. Object.defineProperty(t, "__esModule", {
  22216. value: !0
  22217. }),
  22218. t.performTransitionEffect = t.computeTransitionEffect = void 0;
  22219. const r = n(264)
  22220. , i = n(265)
  22221. , o = n(269)
  22222. , a = n(270);
  22223. t.computeTransitionEffect = function(e, t, n) {
  22224. switch (e.effect) {
  22225. case "none":
  22226. return r.computeNoTransitionEffect();
  22227. case "animateInSlide":
  22228. return a.computeAnimateInSlideTransitionEffect(e);
  22229. case "magicMove":
  22230. return i.computeMagicMoveTransitionEffect(e, t, n);
  22231. case "dissolve":
  22232. return o.computeDissolveTransitionEffect()
  22233. }
  22234. }
  22235. ,
  22236. t.performTransitionEffect = function(e, t, n, s) {
  22237. switch (t.effect) {
  22238. case "none":
  22239. return r.performNoTransitionEffect();
  22240. case "animateInSlide":
  22241. return a.performAnimateInSlideTransitionEffect(e, t, s);
  22242. case "magicMove":
  22243. return i.performMagicMoveTransitionEffect(e, t, n, s);
  22244. case "dissolve":
  22245. return o.performDissolveTransitionEffect(e, n, s)
  22246. }
  22247. }
  22248. },
  22249. 264: function(e, t, n) {
  22250. "use strict";
  22251. var r = this && this.__awaiter || function(e, t, n, r) {
  22252. return new (n || (n = Promise))((function(i, o) {
  22253. function a(e) {
  22254. try {
  22255. l(r.next(e))
  22256. } catch (e) {
  22257. o(e)
  22258. }
  22259. }
  22260. function s(e) {
  22261. try {
  22262. l(r.throw(e))
  22263. } catch (e) {
  22264. o(e)
  22265. }
  22266. }
  22267. function l(e) {
  22268. var t;
  22269. e.done ? i(e.value) : (t = e.value,
  22270. t instanceof n ? t : new n((function(e) {
  22271. e(t)
  22272. }
  22273. ))).then(a, s)
  22274. }
  22275. l((r = r.apply(e, t || [])).next())
  22276. }
  22277. ))
  22278. }
  22279. ;
  22280. Object.defineProperty(t, "__esModule", {
  22281. value: !0
  22282. }),
  22283. t.performNoTransitionEffect = t.computeNoTransitionEffect = void 0,
  22284. t.computeNoTransitionEffect = function() {
  22285. return {
  22286. effect: "none"
  22287. }
  22288. }
  22289. ,
  22290. t.performNoTransitionEffect = function() {
  22291. return r(this, void 0, void 0, (function*() {
  22292. return Promise.resolve()
  22293. }
  22294. ))
  22295. }
  22296. },
  22297. 265: function(e, t, n) {
  22298. "use strict";
  22299. var r = this && this.__awaiter || function(e, t, n, r) {
  22300. return new (n || (n = Promise))((function(i, o) {
  22301. function a(e) {
  22302. try {
  22303. l(r.next(e))
  22304. } catch (e) {
  22305. o(e)
  22306. }
  22307. }
  22308. function s(e) {
  22309. try {
  22310. l(r.throw(e))
  22311. } catch (e) {
  22312. o(e)
  22313. }
  22314. }
  22315. function l(e) {
  22316. var t;
  22317. e.done ? i(e.value) : (t = e.value,
  22318. t instanceof n ? t : new n((function(e) {
  22319. e(t)
  22320. }
  22321. ))).then(a, s)
  22322. }
  22323. l((r = r.apply(e, t || [])).next())
  22324. }
  22325. ))
  22326. }
  22327. , i = this && this.__importDefault || function(e) {
  22328. return e && e.__esModule ? e : {
  22329. default: e
  22330. }
  22331. }
  22332. ;
  22333. Object.defineProperty(t, "__esModule", {
  22334. value: !0
  22335. }),
  22336. t.performMagicMoveTransitionEffect = t.computeMagicMoveTransitionEffect = void 0;
  22337. const o = i(n(70))
  22338. , a = n(75)
  22339. , s = n(170)
  22340. , l = n(171)
  22341. , u = n(12)
  22342. , c = n(266);
  22343. function d(e) {
  22344. var t, n;
  22345. let r = null !== (t = e.box.opacity) && void 0 !== t ? t : 1
  22346. , i = e.superview;
  22347. for (; i && i instanceof a.BoxView; )
  22348. r *= null !== (n = i.box.opacity) && void 0 !== n ? n : 1,
  22349. i = i.superview;
  22350. return r
  22351. }
  22352. t.computeMagicMoveTransitionEffect = function(e, t, n) {
  22353. const r = {
  22354. effect: "magicMove",
  22355. textDataSet: {},
  22356. imageDataSet: {},
  22357. hideDataSet: new Set,
  22358. shapeDataSet: new Set,
  22359. showDataSet: new Set
  22360. }
  22361. , i = t.clone()
  22362. , o = n.clone()
  22363. , f = document.createElement("div");
  22364. function h(e, t) {
  22365. var n;
  22366. return null !== (n = null == t ? void 0 : t.some(t=>{
  22367. var n;
  22368. return "mutate" === t.effect && (null === (n = t.finalState.boxes) || void 0 === n ? void 0 : n.some(t=>t.id === e))
  22369. }
  22370. )) && void 0 !== n && n
  22371. }
  22372. f.style.width = "0",
  22373. f.style.height = "0",
  22374. f.style.position = "absolute",
  22375. f.style.left = "0",
  22376. f.style.top = "0",
  22377. f.style.pointerEvents = "none",
  22378. f.style.opacity = "0",
  22379. f.style.visibility = "hidden",
  22380. f.style.overflow = "hidden",
  22381. document.body.insertBefore(f, document.body.firstElementChild),
  22382. i.el.style.position = "absolute",
  22383. i.el.style.left = "0",
  22384. i.el.style.top = "0",
  22385. o.el.style.position = "absolute",
  22386. o.el.style.left = "0",
  22387. o.el.style.top = "0",
  22388. f.appendChild(i.el),
  22389. f.appendChild(o.el);
  22390. const p = new Set;
  22391. return i.forEachBoxView(f=>{
  22392. if (!function(t) {
  22393. return !function(e, t) {
  22394. var n, r;
  22395. return null !== (r = null === (n = null == t ? void 0 : t.boxes) || void 0 === n ? void 0 : n.some(t=>t.id === e)) && void 0 !== r && r
  22396. }(t, e.targetSlideEnteringState) && !h(t, e.sourceSlideAnimations) && !h(t, e.targetSlideAnimations)
  22397. }(f.box.id))
  22398. return;
  22399. const g = f.box.id
  22400. , m = o.getBoxViewById(g);
  22401. m && f instanceof a.TextView && m instanceof a.TextView ? function(e, n, s) {
  22402. function l(e) {
  22403. if (e.superview instanceof a.GroupView) {
  22404. const t = e.superview.box;
  22405. if (void 0 === t.overflow || t.contentHeight > t.bounds.height)
  22406. return t.absBounds
  22407. }
  22408. return {
  22409. x: 0,
  22410. y: 0,
  22411. width: t.slide.width,
  22412. height: t.slide.height
  22413. }
  22414. }
  22415. const u = l(n)
  22416. , f = l(s)
  22417. , h = {
  22418. boxId: e,
  22419. magicMove: new c.TextMagicMove({
  22420. textEl: n.textEl,
  22421. clipRect: new DOMRect(u.x,u.y,u.width,u.height),
  22422. rootEl: i.el,
  22423. opacity: d(n)
  22424. },{
  22425. textEl: s.textEl,
  22426. clipRect: new DOMRect(f.x,f.y,f.width,f.height),
  22427. rootEl: o.el,
  22428. opacity: d(s)
  22429. })
  22430. };
  22431. n.superview instanceof a.GroupView && (h.source = {
  22432. mask: n.superview.computeMaskImage()
  22433. }),
  22434. s.superview instanceof a.GroupView && (h.target = {
  22435. mask: s.superview.computeMaskImage()
  22436. }),
  22437. r.textDataSet[e] = h
  22438. }(g, f, m) : m && f instanceof a.ShapeView && m instanceof a.ShapeView ? r.shapeDataSet.add(g) : m && (f instanceof s.ImageView || f instanceof l.SVGTemplateView) && (m instanceof s.ImageView || m instanceof l.SVGTemplateView) ? function(a, s, l) {
  22439. const c = {
  22440. boxId: a
  22441. }
  22442. , f = s.box.absBounds
  22443. , h = l.box.absBounds
  22444. , p = u.getClippedBoundsOfElement(s.el, i.el)
  22445. , g = u.getClippedBoundsOfElement(l.el, o.el)
  22446. , m = d(s)
  22447. , v = d(l)
  22448. , y = m > 0 && p.width >= .9 * f.width && p.height >= .9 * f.height
  22449. , b = v > 0 && g.width >= .9 * h.height && g.height >= .9 * h.height;
  22450. if (y && b) {
  22451. const r = s.el.getBoundingClientRect()
  22452. , i = l.el.getBoundingClientRect()
  22453. , o = t.getBoxViewById(a);
  22454. if ("imageSource"in s.box && "imageSource"in l.box && s.box.imageSource === l.box.imageSource || "svg"in s.box && "svg"in l.box && s.box.svg === l.box.svg)
  22455. o && (c.source = {
  22456. left: r.x + "px",
  22457. top: r.y + "px",
  22458. animeParams: [{
  22459. translateX: i.x - r.x,
  22460. translateY: i.y - r.y,
  22461. scaleX: i.width / Math.max(1, r.width),
  22462. scaleY: i.width / Math.max(1, r.width),
  22463. opacity: v
  22464. }]
  22465. });
  22466. else {
  22467. const t = n.getBoxViewById(a);
  22468. if (o && t) {
  22469. const n = null == o ? void 0 : o.box.roles.includes("imagePlaceholder")
  22470. , a = i.width / Math.max(1, r.width)
  22471. , s = i.height / Math.max(1, r.height)
  22472. , l = Math.max(a, s);
  22473. c.source = {
  22474. left: r.x + "px",
  22475. top: r.y + "px",
  22476. animeParams: [{
  22477. translateX: i.x - r.x,
  22478. translateY: i.y - r.y,
  22479. scaleX: [1, n ? l : a],
  22480. scaleY: [1, n ? l : s]
  22481. }, {
  22482. opacity: [m, 0],
  22483. duration: n ? .5 * e.duration : e.duration
  22484. }]
  22485. };
  22486. const u = null == t ? void 0 : t.box.roles.includes("imagePlaceholder")
  22487. , d = r.width / Math.max(1, i.width)
  22488. , f = r.height / Math.max(1, i.height)
  22489. , h = Math.max(d, f);
  22490. c.target = {
  22491. left: i.x + "px",
  22492. top: i.y + "px",
  22493. animeParams: [{
  22494. translateX: [r.x - i.x, 0],
  22495. translateY: [r.y - i.y, 0],
  22496. scaleX: [u ? h : d, 1],
  22497. scaleY: [u ? h : f, 1]
  22498. }, {
  22499. opacity: [0, v],
  22500. duration: u ? .5 * e.duration : e.duration,
  22501. delay: u ? .5 * e.duration : 0
  22502. }]
  22503. }
  22504. }
  22505. }
  22506. } else {
  22507. if (y) {
  22508. if (t.getBoxViewById(a)) {
  22509. const e = s.el.getBoundingClientRect();
  22510. c.source = {
  22511. left: e.x + "px",
  22512. top: e.y + "px",
  22513. animeParams: [{
  22514. opacity: v
  22515. }]
  22516. }
  22517. }
  22518. }
  22519. if (b) {
  22520. if (n.getBoxViewById(a)) {
  22521. const e = l.el.getBoundingClientRect();
  22522. c.target = {
  22523. left: e.x + "px",
  22524. top: e.y + "px",
  22525. animeParams: [{
  22526. opacity: [0, v]
  22527. }]
  22528. }
  22529. }
  22530. }
  22531. }
  22532. r.imageDataSet[a] = c
  22533. }(g, f, m) : r.hideDataSet.add(g),
  22534. p.add(g)
  22535. }
  22536. ),
  22537. o.forEachBoxView(e=>{
  22538. p.has(e.box.id) || r.showDataSet.add(e.box.id)
  22539. }
  22540. ),
  22541. document.body.removeChild(f),
  22542. r
  22543. }
  22544. ,
  22545. t.performMagicMoveTransitionEffect = function(e, t, n, i) {
  22546. return r(this, void 0, void 0, (function*() {
  22547. const r = o.default.timeline({
  22548. easing: "easeInOutQuart",
  22549. duration: e,
  22550. autoplay: !1
  22551. });
  22552. n.stackWith(i);
  22553. const a = n.el.parentElement
  22554. , s = document.createElement("div");
  22555. s.style.width = "100%",
  22556. s.style.height = "100%",
  22557. s.style.position = "absolute",
  22558. s.style.left = "0",
  22559. s.style.top = "0",
  22560. null == a || a.appendChild(s);
  22561. const l = []
  22562. , u = [];
  22563. function c(e) {
  22564. const t = n.getBoxViewById(e);
  22565. if (!t)
  22566. return;
  22567. u.push(t.el);
  22568. const r = t.el.style.visibility;
  22569. l.push(()=>{
  22570. t.el.style.visibility = r
  22571. }
  22572. )
  22573. }
  22574. function d(e) {
  22575. const t = i.getBoxViewById(e);
  22576. if (!t)
  22577. return;
  22578. const n = t.el.style.visibility;
  22579. t.el.style.visibility = "hidden",
  22580. l.push(()=>{
  22581. t.el.style.visibility = n
  22582. }
  22583. )
  22584. }
  22585. n.forEachBoxView(o=>{
  22586. const a = o.box.id;
  22587. t.hideDataSet.has(a) ? function(t) {
  22588. const i = n.getBoxViewById(t);
  22589. i && (i.el.style.transform += "translateZ(0)",
  22590. i.el.style.willChange = "opacity",
  22591. r.add({
  22592. targets: i.el,
  22593. opacity: 0,
  22594. duration: .5 * e
  22595. }, 0))
  22596. }(a) : t.shapeDataSet.has(a) ? function(t, i, o) {
  22597. const a = n.getBoxViewById(t);
  22598. d(t),
  22599. r.add({
  22600. targets: a.shape,
  22601. d: [{
  22602. value: i.box.shapePath
  22603. }, {
  22604. value: o.box.shapePath
  22605. }],
  22606. duration: .5 * e
  22607. }, .5 * e)
  22608. }(a, o, i.getBoxViewById(a)) : t.imageDataSet[a] ? function(t) {
  22609. if (t.source) {
  22610. const i = n.getBoxViewById(t.boxId);
  22611. if (i) {
  22612. const n = i.el.cloneNode(!0);
  22613. s.appendChild(n);
  22614. const o = n.style;
  22615. o.left = t.source.left,
  22616. o.top = t.source.top,
  22617. o.transformOrigin = "0 0",
  22618. t.source.animeParams.forEach(t=>{
  22619. r.add(Object.assign({
  22620. targets: n,
  22621. duration: e
  22622. }, t), 0)
  22623. }
  22624. )
  22625. }
  22626. }
  22627. if (t.target) {
  22628. const n = i.getBoxViewById(t.boxId);
  22629. if (n) {
  22630. const i = n.el.cloneNode(!0);
  22631. s.appendChild(i),
  22632. i.style.left = t.target.left,
  22633. i.style.top = t.target.top,
  22634. i.style.transformOrigin = "0 0",
  22635. t.target.animeParams.forEach(t=>{
  22636. r.add(Object.assign({
  22637. targets: i,
  22638. duration: e
  22639. }, t), 0)
  22640. }
  22641. )
  22642. }
  22643. }
  22644. c(t.boxId),
  22645. d(t.boxId)
  22646. }(t.imageDataSet[a]) : t.textDataSet[a] && function(t) {
  22647. var n, i;
  22648. const o = {
  22649. from: null,
  22650. to: null
  22651. };
  22652. (null === (n = t.source) || void 0 === n ? void 0 : n.mask) && (o.from = document.createElement("div"),
  22653. o.from.style.maskImage = t.source.mask,
  22654. o.from.style.webkitMaskImage = t.source.mask),
  22655. (null === (i = t.target) || void 0 === i ? void 0 : i.mask) && (o.to = document.createElement("div"),
  22656. o.to.style.maskImage = t.target.mask,
  22657. o.to.style.webkitMaskImage = t.target.mask),
  22658. t.magicMove.play(e, s, r, o),
  22659. c(t.boxId),
  22660. d(t.boxId)
  22661. }(t.textDataSet[a])
  22662. }
  22663. ),
  22664. i.forEachBoxView(n=>{
  22665. const o = n.box.id;
  22666. t.showDataSet.has(o) && function(t) {
  22667. const n = i.getBoxViewById(t);
  22668. n && (n.el.style.transform += "translateZ(0)",
  22669. n.el.style.willChange = "opacity",
  22670. r.add({
  22671. targets: n.el,
  22672. opacity: [0, n.el.style.opacity],
  22673. duration: .5 * e
  22674. }, .5 * e))
  22675. }(o)
  22676. }
  22677. ),
  22678. setTimeout((function() {
  22679. for (const e of u)
  22680. e.style.visibility = "hidden";
  22681. r.restart()
  22682. }
  22683. ), 0),
  22684. yield r.finished,
  22685. l.forEach(e=>e()),
  22686. null == a || a.removeChild(s),
  22687. n.unstackWith(i)
  22688. }
  22689. ))
  22690. }
  22691. },
  22692. 266: function(e, t, n) {
  22693. "use strict";
  22694. Object.defineProperty(t, "__esModule", {
  22695. value: !0
  22696. }),
  22697. t.TextMagicMove = void 0;
  22698. const r = n(113)
  22699. , i = n(267);
  22700. function o(e) {
  22701. return (new Array).concat(...e)
  22702. }
  22703. function a() {
  22704. const e = document.createElement("div");
  22705. return e.style.position = "absolute",
  22706. e.style.opacity = "0",
  22707. e.style.visibility = "0",
  22708. e.style.width = "0",
  22709. e.style.height = "0",
  22710. e
  22711. }
  22712. function s(e, t) {
  22713. if (e === t)
  22714. return !0;
  22715. const n = Math.abs(e - t);
  22716. return n < Number.EPSILON || n <= Number.EPSILON * Math.min(Math.abs(e), Math.abs(t))
  22717. }
  22718. class l {
  22719. constructor(e) {
  22720. let t;
  22721. for (; e; ) {
  22722. if (e.nodeType == Node.ELEMENT_NODE) {
  22723. t = e;
  22724. break
  22725. }
  22726. e = e.parentNode
  22727. }
  22728. if (t) {
  22729. const t = getComputedStyle(e);
  22730. this.background = t.background,
  22731. this.color = t.color,
  22732. this.font = t.font,
  22733. this.opacity = t.opacity,
  22734. this.writingMode = t.writingMode
  22735. } else
  22736. this.background = "",
  22737. this.color = "black",
  22738. this.font = "",
  22739. this.opacity = "1",
  22740. this.writingMode = "horizontal-tb"
  22741. }
  22742. }
  22743. class u {
  22744. constructor(e, t) {
  22745. this.node = e,
  22746. this.contentRange = t,
  22747. this.style = new l(e)
  22748. }
  22749. }
  22750. class c {
  22751. constructor(e, t) {
  22752. this.from = e,
  22753. this.to = t
  22754. }
  22755. toString() {
  22756. let e = "";
  22757. return this.from ? e += `(${this.from.range.location}, ${this.from.range.length})=>` : e += "(nil, nil)=>",
  22758. this.to ? e += `(${this.to.range.location}, ${this.to.range.length})` : e += "(nil, nil)",
  22759. e
  22760. }
  22761. }
  22762. class d {
  22763. constructor(e) {
  22764. this.content = "",
  22765. this.charRects = [],
  22766. this.unitBreakIndices = new Set,
  22767. this.zeroKerningIndices = new Set,
  22768. this.nodeInfos = [],
  22769. this.nonVisibleRanges = [],
  22770. this.clippedRanges = [],
  22771. this.visibleRange = new r.IndexRange(-1,-1);
  22772. const t = e.textEl;
  22773. this.clipRect = e.clipRect,
  22774. this.rootElBBox = e.rootEl.getBoundingClientRect(),
  22775. this.opacity = e.opacity,
  22776. this.handleElement(t),
  22777. this.computeValidRanges(),
  22778. this.findUnitBreakIndices();
  22779. const n = t.getBoundingClientRect()
  22780. , i = new Range;
  22781. i.setStartBefore(t),
  22782. i.setEndAfter(t);
  22783. const o = i.getBoundingClientRect();
  22784. this.containerBBox = new DOMRect(Math.min(n.x, o.x),Math.min(n.y, o.y),Math.max(n.width, o.width),Math.max(n.height, o.height))
  22785. }
  22786. static get kerningTestWrapper() {
  22787. if (!d._kerningTestWrapper) {
  22788. const e = a();
  22789. e.style.overflow = "hidden",
  22790. e.style.whiteSpace = "nowrap",
  22791. d._kerningTestWrapper = e,
  22792. document.body.appendChild(e)
  22793. }
  22794. return d._kerningTestWrapper
  22795. }
  22796. handleElement(e) {
  22797. var t, n;
  22798. let i = e.firstChild;
  22799. for (; i && i != e.lastChild; )
  22800. switch (i.nodeType) {
  22801. case Node.TEXT_NODE:
  22802. {
  22803. const r = i.nextSibling;
  22804. r && r.nodeType == Node.TEXT_NODE ? (i.textContent = (null !== (t = i.textContent) && void 0 !== t ? t : "") + (null !== (n = r.textContent) && void 0 !== n ? n : ""),
  22805. e.removeChild(r)) : i = r;
  22806. break
  22807. }
  22808. default:
  22809. i = i.nextSibling
  22810. }
  22811. const o = Array.prototype.slice.call(e.childNodes, 0);
  22812. for (const t of o)
  22813. if (t.nodeType == Node.TEXT_NODE) {
  22814. const n = t.textContent;
  22815. if (!n)
  22816. continue;
  22817. const i = this.content.length;
  22818. this.nodeInfos.push(new u(e,new r.IndexRange(i,i + n.length - 1))),
  22819. this.content += n;
  22820. const o = new Range;
  22821. for (let e = 0; e < n.length; ++e) {
  22822. o.setStart(t, e),
  22823. o.setEnd(t, e + 1);
  22824. let n = Array.prototype.slice.call(o.getClientRects()).filter(e=>0 != e.width && 0 != e.height)[0];
  22825. n || (n = o.getBoundingClientRect()),
  22826. n.x -= this.rootElBBox.x,
  22827. n.y -= this.rootElBBox.y,
  22828. this.charRects.push(n)
  22829. }
  22830. } else if (t.nodeType == Node.ELEMENT_NODE) {
  22831. "BR" == t.tagName ? this.unitBreakIndices.add(this.content.length) : this.handleElement(t);
  22832. continue
  22833. }
  22834. }
  22835. findUnitBreakIndices() {
  22836. for (const e of this.nodeInfos) {
  22837. if (e.style.writingMode.startsWith("vertical"))
  22838. for (let t = e.contentRange.start + 1; t <= e.contentRange.end; ++t) {
  22839. const e = this.charRects[t - 1]
  22840. , n = this.charRects[t];
  22841. Math.abs(e.x - n.x) > e.width / 2 && this.unitBreakIndices.add(t)
  22842. }
  22843. else
  22844. for (let t = e.contentRange.start + 1; t <= e.contentRange.end; ++t) {
  22845. const e = this.charRects[t - 1]
  22846. , n = this.charRects[t];
  22847. Math.abs(e.y - n.y) > e.height / 2 && this.unitBreakIndices.add(t)
  22848. }
  22849. this.unitBreakIndices.add(e.contentRange.upperBound)
  22850. }
  22851. for (const e of this.nonVisibleRanges)
  22852. this.unitBreakIndices.add(e.upperBound);
  22853. for (const e of this.clippedRanges)
  22854. this.unitBreakIndices.add(e.upperBound);
  22855. this.unitBreakIndices.add(this.visibleRange.upperBound),
  22856. this.unitBreakIndices.delete(0)
  22857. }
  22858. computeValidRanges() {
  22859. const e = this.clipRect.top
  22860. , t = this.clipRect.right
  22861. , n = this.clipRect.bottom
  22862. , i = this.clipRect.left;
  22863. for (let o = 0; o < this.charRects.length; ++o) {
  22864. const a = this.charRects[o];
  22865. if (a.bottom <= e || a.top >= n || a.right <= i || a.left >= t) {
  22866. let e = this.nonVisibleRanges[this.nonVisibleRanges.length - 1];
  22867. e && e.upperBound === o ? e._end = o : (e = new r.IndexRange(o,o),
  22868. this.nonVisibleRanges.push(e))
  22869. } else {
  22870. const s = .12 * a.width
  22871. , l = .12 * a.height;
  22872. if (a.top + l >= e && a.bottom - l <= n && a.left + s >= i && a.right - s <= t)
  22873. -1 === this.visibleRange.start && (this.visibleRange._start = o),
  22874. this.visibleRange._end = o;
  22875. else {
  22876. let e = this.clippedRanges[this.clippedRanges.length - 1];
  22877. e && e.upperBound == o ? e._end = o : (e = new r.IndexRange(o,o),
  22878. this.clippedRanges.push(e))
  22879. }
  22880. }
  22881. }
  22882. }
  22883. computeKerning(e) {
  22884. var t;
  22885. const n = d.kerningTestWrapper;
  22886. n.innerHTML = "",
  22887. n.style.fontKerning = "";
  22888. const r = [];
  22889. for (; e.length > 0; ) {
  22890. const t = e[0]
  22891. , i = this.nodeInfos.find(e=>e.contentRange.contains(t));
  22892. let o = void 0
  22893. , a = 1;
  22894. i && (o = document.createElement("div"),
  22895. o.style.font = i.style.font,
  22896. o.style.writingMode = i.style.writingMode,
  22897. n.appendChild(o),
  22898. a = e.findIndex(e=>e >= 0 && !i.contentRange.contains(e)),
  22899. -1 === a && (a = e.length)),
  22900. r.push({
  22901. nodeInfo: i,
  22902. testEl: o,
  22903. indices: e.splice(0, a)
  22904. })
  22905. }
  22906. const i = [];
  22907. for (const e of r)
  22908. for (const n of e.indices)
  22909. if (n <= 0 || this.unitBreakIndices.has(n) || this.zeroKerningIndices.has(n))
  22910. i.push(void 0);
  22911. else {
  22912. const r = document.createElement("div");
  22913. r.textContent = this.content.substr(n - 1, 2),
  22914. null === (t = e.testEl) || void 0 === t || t.appendChild(r),
  22915. i.push(r)
  22916. }
  22917. const o = new Range;
  22918. function a(e) {
  22919. return (null == e ? void 0 : e.firstChild) ? (o.setStart(e.firstChild, 1),
  22920. o.setEnd(e.firstChild, 2),
  22921. o.getBoundingClientRect().width) : 0
  22922. }
  22923. const s = i.map(a);
  22924. n.style.fontKerning = "none";
  22925. const l = i.map(a);
  22926. return s.map((e,t)=>e - l[t])
  22927. }
  22928. computeUnitStates(e) {
  22929. const t = this.computeKerning(e.map(e=>e ? e.start : -1));
  22930. return e.map((e,n)=>{
  22931. if (!e)
  22932. return;
  22933. if (-1 === e.start || -1 === e.end)
  22934. return;
  22935. const r = this.charRects[e.start];
  22936. let i = 0;
  22937. for (let t = e.start; t <= e.end; ++t)
  22938. i = Math.max(i, this.charRects[t].height);
  22939. return {
  22940. range: e,
  22941. style: this.nodeInfos.find(t=>t.contentRange.contains(e.start)).style,
  22942. x: r.x,
  22943. y: r.y,
  22944. lineHeight: i,
  22945. kerning: t[n]
  22946. }
  22947. }
  22948. )
  22949. }
  22950. getVisibleState(e) {
  22951. return this.visibleRange.contains(e.start) ? {
  22952. visible: !0,
  22953. clipped: !1
  22954. } : this.clippedRanges.find(t=>t.contains(e.start)) ? {
  22955. visible: !0,
  22956. clipped: !0
  22957. } : {
  22958. visible: !1,
  22959. clipped: !1
  22960. }
  22961. }
  22962. get visibleContent() {
  22963. return this.content.substr(this.visibleRange.location, this.visibleRange.length)
  22964. }
  22965. }
  22966. const f = /[^\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,\-./:;<=>?@[\]^_`{|}~\s]+/g;
  22967. class h {
  22968. constructor(e, t) {
  22969. if (this.units = [],
  22970. null == t) {
  22971. const t = e;
  22972. this.fromInfo = t.fromInfo,
  22973. this.toInfo = t.toInfo,
  22974. this.units = t.units
  22975. } else
  22976. this.fromInfo = new d(e),
  22977. this.toInfo = new d(t),
  22978. this.fromInfo.visibleRange.start === this.toInfo.visibleRange.start && this.fromInfo.visibleRange.end === this.toInfo.visibleRange.end && this.fromInfo.content === this.toInfo.content ? this.createUnitIdentical() : this.createUnit()
  22979. }
  22980. serialize() {
  22981. return {
  22982. fromInfo: this.fromInfo,
  22983. toInfo: this.toInfo,
  22984. units: this.units
  22985. }
  22986. }
  22987. static deserialize(e) {
  22988. return new h(e,null)
  22989. }
  22990. createUnitIdentical() {
  22991. const e = Array.from(new Set([...Array.from(this.fromInfo.unitBreakIndices), ...Array.from(this.toInfo.unitBreakIndices)])).sort((e,t)=>e - t).reduce((e,t)=>{
  22992. const n = 0 == e.length ? 0 : e[e.length - 1].upperBound;
  22993. return e.push(new r.IndexRange(n,t - 1)),
  22994. e
  22995. }
  22996. , new Array)
  22997. , t = this.fromInfo.computeUnitStates(e)
  22998. , n = this.toInfo.computeUnitStates(e)
  22999. , i = [];
  23000. for (let r = 0; r < e.length; ++r) {
  23001. const o = e[r]
  23002. , a = this.fromInfo.getVisibleState(o)
  23003. , s = this.toInfo.getVisibleState(o);
  23004. !a.visible || a.clipped || !s.visible || s.clipped ? (a.visible && i.push(new c(t[r],void 0)),
  23005. s.visible && i.push(new c(void 0,n[r]))) : i.push(new c(t[r],n[r]))
  23006. }
  23007. this.units = i
  23008. }
  23009. printUnits(e) {
  23010. let t = "";
  23011. for (const n of e)
  23012. n.from ? t += this.fromInfo.content.substring(n.from.range.location, n.from.range.upperBound) + `(${n.from.range})` : t += "nil",
  23013. t += "=>",
  23014. n.to ? t += this.toInfo.content.substring(n.to.range.location, n.to.range.upperBound) + `(${n.to.range})` : t += "nil",
  23015. t += "\n"
  23016. }
  23017. play(e, t, n, r) {
  23018. var i, o;
  23019. const l = [];
  23020. let u = null
  23021. , c = null;
  23022. const d = this.fromInfo.clipRect
  23023. , f = this.toInfo.clipRect
  23024. , h = a();
  23025. h.style.whiteSpace = "nowrap",
  23026. document.body.appendChild(h);
  23027. for (const t of this.units) {
  23028. if (!t.from && !t.to)
  23029. continue;
  23030. let a = null
  23031. , p = null;
  23032. if (t.from && (a = document.createElement("span"),
  23033. a.textContent = this.fromInfo.content.substring(t.from.range.location, t.from.range.upperBound),
  23034. this.styleLayer(a, t.from, t.from.style),
  23035. a.style.textIndent = t.from.kerning + "px",
  23036. h.appendChild(a)),
  23037. t.to && (p = document.createElement("span"),
  23038. p.textContent = this.toInfo.content.substring(t.to.range.location, t.to.range.upperBound),
  23039. this.styleLayer(p, t.to, t.to.style),
  23040. p.style.textIndent = t.to.kerning + "px",
  23041. h.appendChild(p)),
  23042. a && p) {
  23043. const r = t.from.x
  23044. , i = t.from.y
  23045. , o = a.clientWidth
  23046. , u = a.clientHeight
  23047. , c = t.to.x
  23048. , d = t.to.y
  23049. , f = p.clientWidth
  23050. , h = p.clientHeight;
  23051. if (!(s(o, f) && s(u, h) && t.from.style.font == t.to.style.font && s(t.from.lineHeight, t.to.lineHeight) && s(t.from.kerning, t.to.kerning) && a.textContent == p.textContent))
  23052. n.add({
  23053. targets: a,
  23054. translateX: [0, c - r],
  23055. translateY: [0, d - i],
  23056. scaleX: [1, f / o],
  23057. scaleY: [1, h / u]
  23058. }, 0),
  23059. n.add({
  23060. targets: p,
  23061. translateX: [r - c, 0],
  23062. translateY: [i - d, 0],
  23063. scaleX: [o / f, 1],
  23064. scaleY: [u / h, 1]
  23065. }, 0),
  23066. n.add({
  23067. targets: a,
  23068. easing: "easeInQuart",
  23069. opacity: [this.fromInfo.opacity, 0],
  23070. duration: .12 * e
  23071. }, 300),
  23072. n.add({
  23073. targets: p,
  23074. easing: "easeOutQuart",
  23075. opacity: [0, this.toInfo.opacity],
  23076. duration: .12 * e
  23077. }, 300),
  23078. l.push(a),
  23079. l.push(p);
  23080. else {
  23081. const o = {
  23082. targets: a,
  23083. duration: e
  23084. };
  23085. let u = !1;
  23086. s(c, r) || (o.translateX = [0, c - r],
  23087. u = !0),
  23088. s(d, i) || (o.translateY = [0, d - i],
  23089. u = !0);
  23090. const f = this.fromInfo.opacity * parseFloat(t.from.style.opacity)
  23091. , h = this.toInfo.opacity * parseFloat(t.to.style.opacity);
  23092. s(f, h) || (a.style.opacity = "",
  23093. o.opacity = [f, h],
  23094. u = !0),
  23095. t.from.style.color != t.to.style.color && (o.color = [t.from.style.color, t.to.style.color],
  23096. u = !0),
  23097. t.from.style.background != t.to.style.background && (o.background = [t.from.style.background, t.to.style.background],
  23098. u = !0),
  23099. u && n.add(o, 0),
  23100. l.push(a)
  23101. }
  23102. } else
  23103. a ? (u || (u = null !== (i = null == r ? void 0 : r.from) && void 0 !== i ? i : document.createElement("div"),
  23104. u.style.overflow = "hidden",
  23105. u.style.position = "absolute",
  23106. u.style.left = d.x + "px",
  23107. u.style.top = d.y + "px",
  23108. u.style.width = d.width + "px",
  23109. u.style.height = d.height + "px",
  23110. l.unshift(u)),
  23111. a.style.transform = `translate(${-d.x}px, ${-d.y}px)`,
  23112. u.appendChild(a),
  23113. n.add({
  23114. targets: a,
  23115. opacity: [this.fromInfo.opacity, 0],
  23116. duration: .5 * e
  23117. }, 0)) : p && (c || (c = null !== (o = null == r ? void 0 : r.to) && void 0 !== o ? o : document.createElement("div"),
  23118. c.style.overflow = "hidden",
  23119. c.style.position = "absolute",
  23120. c.style.left = f.x + "px",
  23121. c.style.top = f.y + "px",
  23122. c.style.width = f.width + "px",
  23123. c.style.height = f.height + "px",
  23124. l.unshift(c)),
  23125. p.style.transform = `translate(${-f.x}px, ${-f.y}px)`,
  23126. p.style.opacity = "0",
  23127. c.appendChild(p),
  23128. n.add({
  23129. targets: p,
  23130. opacity: [0, this.toInfo.opacity],
  23131. duration: .5 * e
  23132. }, .5 * e))
  23133. }
  23134. document.body.removeChild(h);
  23135. for (const e of l)
  23136. t.appendChild(e)
  23137. }
  23138. styleLayer(e, t, n) {
  23139. e.style.position = "absolute",
  23140. e.style.left = t.x + "px",
  23141. e.style.top = t.y + "px",
  23142. e.style.font = n.font,
  23143. e.style.background = n.background,
  23144. e.style.color = n.color,
  23145. e.style.transformOrigin = "0 0",
  23146. e.style.whiteSpace = "nowrap",
  23147. e.style.lineHeight = t.lineHeight + "px",
  23148. e.style.transform = "translateZ(0)",
  23149. e.style.willChange = "transform, opacity"
  23150. }
  23151. computeWords(e) {
  23152. const t = []
  23153. , n = [0];
  23154. e.replace(f, (function(e, t) {
  23155. return n.push(t),
  23156. n.push(t + e.length),
  23157. e
  23158. }
  23159. )),
  23160. n.push(e.length);
  23161. for (let o = 1; o < n.length; ++o) {
  23162. let a = n[o - 1]
  23163. , s = n[o];
  23164. for (; a < s; ) {
  23165. const t = e.charAt(a);
  23166. if (" " != t && "\t" != t && "\n" != t)
  23167. break;
  23168. a += 1
  23169. }
  23170. for (; s > a; ) {
  23171. const t = e.charAt(s - 1);
  23172. if (" " != t && "\t" != t && "\n" != t)
  23173. break;
  23174. s -= 1
  23175. }
  23176. s > a && t.push(new i.Word(new r.IndexRange(a,s - 1),e))
  23177. }
  23178. return t
  23179. }
  23180. createUnit() {
  23181. const e = this.computeWords(this.fromInfo.visibleContent)
  23182. , t = this.computeWords(this.toInfo.visibleContent)
  23183. , n = {
  23184. inserted: [],
  23185. deleted: []
  23186. };
  23187. let i = this.performDiff(e, t, n);
  23188. function a(e, t) {
  23189. const n = e.length > 0 ? e[e.length - 1] : void 0;
  23190. if (n) {
  23191. let r = n.range.upperBound;
  23192. for (; r < n.base.length; ) {
  23193. const e = n.base[r];
  23194. if (" " != e && "\t" != e && "\n" != e)
  23195. break;
  23196. ++r
  23197. }
  23198. if (r === t.range.lowerBound)
  23199. return n.range._end = t.range._end,
  23200. e
  23201. }
  23202. return e.push(t),
  23203. e
  23204. }
  23205. i = i.concat(this.handleCJKChange(n));
  23206. const s = o(n.deleted).reduce(a, new Array)
  23207. , l = o(n.inserted).reduce(a, new Array);
  23208. if (l.length > 0 && s.length > 0) {
  23209. const e = l[0]
  23210. , t = s[0];
  23211. let n = e.value
  23212. , o = t.value;
  23213. n.endsWith("...") && n.length > 3 ? (n = n.replace("...", ""),
  23214. o.startsWith(n) && (i.push({
  23215. from: new r.IndexRange(t.range.start,t.range.start + n.length - 1),
  23216. to: new r.IndexRange(e.range.start,e.range.start + n.length - 1)
  23217. }),
  23218. e.range._start += n.length,
  23219. t.range._start += n.length)) : o.endsWith("...") && o.length > 3 && (o = o.replace("...", ""),
  23220. n.startsWith(o) && (i.push({
  23221. from: new r.IndexRange(t.range.start,t.range.start + o.length - 1),
  23222. to: new r.IndexRange(e.range.start,e.range.start + o.length - 1)
  23223. }),
  23224. e.range._start += o.length,
  23225. t.range._start += o.length))
  23226. }
  23227. i = i.concat(s.map(e=>({
  23228. from: e.range,
  23229. to: void 0
  23230. }))),
  23231. i = i.concat(l.map(e=>({
  23232. to: e.range,
  23233. from: void 0
  23234. }))),
  23235. i = i.map(e=>{
  23236. const t = this.fromInfo.visibleRange.start
  23237. , n = this.toInfo.visibleRange.start;
  23238. return e.from && (e.from = new r.IndexRange(e.from.start + t,e.from.end + t)),
  23239. e.to && (e.to = new r.IndexRange(e.to.start + n,e.to.end + n)),
  23240. e
  23241. }
  23242. ),
  23243. i = i.concat(this.fromInfo.clippedRanges.map(e=>({
  23244. from: e,
  23245. to: void 0
  23246. }))),
  23247. i = i.concat(this.toInfo.clippedRanges.map(e=>({
  23248. from: void 0,
  23249. to: e
  23250. }))),
  23251. i = o(i.map(e=>{
  23252. let t = [];
  23253. const n = e.from;
  23254. n && (t = t.concat(Array.from(this.fromInfo.unitBreakIndices).filter(e=>e > n.start && e <= n.end).map(e=>e - n.start)),
  23255. t.push(n.upperBound - n.start));
  23256. const i = e.to;
  23257. i && (t = t.concat(Array.from(this.toInfo.unitBreakIndices).filter(e=>e > i.start && e <= i.end).map(e=>e - i.start)),
  23258. t.push(i.upperBound - i.start)),
  23259. t = t.sort((e,t)=>e - t);
  23260. const o = [];
  23261. let a = 0;
  23262. for (const e of t) {
  23263. if (e === a)
  23264. continue;
  23265. const t = {
  23266. from: void 0,
  23267. to: void 0
  23268. };
  23269. n && (t.from = new r.IndexRange(n.start + a,n.start + e - 1)),
  23270. i && (t.to = new r.IndexRange(i.start + a,i.start + e - 1)),
  23271. o.push(t),
  23272. a = e
  23273. }
  23274. return o
  23275. }
  23276. )),
  23277. i = i.sort((e,t)=>e.from && t.from ? e.from.start - t.from.start : e.to && t.to ? e.to.start - t.to.start : 0);
  23278. const u = this.fromInfo.computeUnitStates(i.map(e=>e.from))
  23279. , d = this.toInfo.computeUnitStates(i.map(e=>e.to));
  23280. this.units = u.map((e,t)=>new c(e,d[t]))
  23281. }
  23282. performDiff(e, t, n) {
  23283. return i.diff(e, t).reduce((function(r, i) {
  23284. if (i.oldIndex < 0 && i.newIndex < 0)
  23285. return r;
  23286. if (i.oldIndex < 0) {
  23287. const e = t.slice(i.newIndex, i.newIndex + i.length);
  23288. return n.inserted.push(e),
  23289. r
  23290. }
  23291. if (i.newIndex < 0) {
  23292. const t = e.slice(i.oldIndex, i.oldIndex + i.length);
  23293. return n.deleted.push(t),
  23294. r
  23295. }
  23296. let o = e[i.oldIndex].range
  23297. , a = t[i.newIndex].range;
  23298. for (let n = 0; n < i.length; ++n) {
  23299. const s = e[i.oldIndex + n].range
  23300. , l = t[i.newIndex + n].range;
  23301. s.upperBound - o.location != l.upperBound - a.location ? (r.push({
  23302. from: o,
  23303. to: a
  23304. }),
  23305. o = s,
  23306. a = l) : (o._end = s.upperBound - 1,
  23307. a._end = l.upperBound - 1)
  23308. }
  23309. return r.push({
  23310. from: o,
  23311. to: a
  23312. }),
  23313. r
  23314. }
  23315. ), new Array)
  23316. }
  23317. hasCJKChar(e) {
  23318. return !!e.match(h.cjkRegex)
  23319. }
  23320. handleCJKChange(e) {
  23321. let t = !1;
  23322. const n = e=>{
  23323. if (this.hasCJKChar(e.value)) {
  23324. t = t || e.range.length > 1;
  23325. const n = [];
  23326. for (let t = 0; t < e.range.length; ++t)
  23327. n.push(new i.Word(new r.IndexRange(e.range.lowerBound + t,e.range.lowerBound + t),e.base));
  23328. return n
  23329. }
  23330. return [e]
  23331. }
  23332. , a = o(o(e.deleted).map(n))
  23333. , s = o(o(e.inserted).map(n));
  23334. if (!t)
  23335. return [];
  23336. const l = {
  23337. inserted: [],
  23338. deleted: []
  23339. }
  23340. , u = this.performDiff(a, s, l);
  23341. return e.deleted = l.deleted,
  23342. e.inserted = l.inserted,
  23343. u
  23344. }
  23345. }
  23346. t.TextMagicMove = h,
  23347. h.cjkRegex = /[\u4E00-\u9FFF\u3400-\u4DBF\u3040-\u30ff\uf900-\ufaff\uff66-\uff9f]/
  23348. },
  23349. 267: function(e, t, n) {
  23350. "use strict";
  23351. Object.defineProperty(t, "__esModule", {
  23352. value: !0
  23353. }),
  23354. t.diff = t.DiffResult = t.Word = void 0;
  23355. const r = n(268)
  23356. , i = n(113);
  23357. t.Word = class {
  23358. constructor(e, t) {
  23359. this.range = e,
  23360. this.base = t
  23361. }
  23362. get value() {
  23363. return this.base.substr(this.range.location, this.range.length)
  23364. }
  23365. isEqualTo(e) {
  23366. return this.value == e.value
  23367. }
  23368. get diffIdentifier() {
  23369. return this.value
  23370. }
  23371. toString() {
  23372. return `${this.value}{${this.range.location}, ${this.range.location + this.range.length}}`
  23373. }
  23374. }
  23375. ;
  23376. class o {
  23377. constructor(e, t, n) {
  23378. this.oldIndex = e,
  23379. this.newIndex = t,
  23380. this.length = n
  23381. }
  23382. get debugDescription() {
  23383. return `[Diff@(${this.oldIndex},${this.length})=>(${this.newIndex},${this.length})]`
  23384. }
  23385. }
  23386. t.DiffResult = o;
  23387. class a {
  23388. constructor(e=new Set, t=new Set) {
  23389. this.oldIndices = e,
  23390. this.newIndices = t
  23391. }
  23392. appearAtOld(e) {
  23393. this.oldIndices.add(e)
  23394. }
  23395. appearAtNew(e) {
  23396. this.newIndices.add(e)
  23397. }
  23398. removeOldIndex(e) {
  23399. this.oldIndices.delete(e)
  23400. }
  23401. removeNewIndex(e) {
  23402. this.newIndices.delete(e)
  23403. }
  23404. get debugDescription() {
  23405. return this.oldIndices + "|" + this.newIndices
  23406. }
  23407. }
  23408. class s {
  23409. constructor(e, t, n) {
  23410. this.oldIndex = e,
  23411. this.newIndex = t,
  23412. this.length = n
  23413. }
  23414. }
  23415. t.diff = function(e, t) {
  23416. var n;
  23417. const l = {}
  23418. , u = new r.IndexSet
  23419. , c = [];
  23420. for (let e = 0; e < t.length; ++e) {
  23421. const n = t[e].diffIdentifier
  23422. , r = l[n];
  23423. if (r)
  23424. r.appearAtNew(e);
  23425. else {
  23426. const t = new a;
  23427. t.appearAtNew(e),
  23428. l[n] = t
  23429. }
  23430. }
  23431. for (let t = 0; t < e.length; ++t)
  23432. null === (n = l[e[t].diffIdentifier]) || void 0 === n || n.appearAtOld(t);
  23433. const d = e.length
  23434. , f = Array(d).fill(0).map((e,t)=>t).reverse()
  23435. , h = new Set(f);
  23436. function p() {
  23437. if (f.length > 0) {
  23438. const e = f.pop();
  23439. e && h.delete(e)
  23440. }
  23441. }
  23442. function g(e) {
  23443. const t = f.indexOf(e);
  23444. t >= 0 && f.splice(t, 1),
  23445. h.delete(e)
  23446. }
  23447. for (; f.length > 0; ) {
  23448. const t = f[f.length - 1]
  23449. , n = l[e[t].diffIdentifier];
  23450. if (!n) {
  23451. p(),
  23452. u.addIndexes(t),
  23453. e[t];
  23454. continue
  23455. }
  23456. if (0 == n.oldIndices.size) {
  23457. p(),
  23458. e[t];
  23459. continue
  23460. }
  23461. if (0 == n.newIndices.size) {
  23462. p(),
  23463. u.addIndexes(t),
  23464. e[t];
  23465. continue
  23466. }
  23467. const r = Array.from(n.oldIndices).map(t=>{
  23468. let r = t + 1
  23469. , i = n.newIndices;
  23470. for (; h.has(r); ) {
  23471. const t = l[e[r].diffIdentifier];
  23472. if (!t)
  23473. break;
  23474. const n = new Set(Array.from(i).map(e=>e + 1))
  23475. , o = new Set(Array.from(t.newIndices).filter(e=>n.has(e)));
  23476. if (0 == o.size)
  23477. break;
  23478. i = o,
  23479. r += 1
  23480. }
  23481. const o = r - t;
  23482. return new s(t,Math.min(...i) - o + 1,o)
  23483. }
  23484. ).sort((e,t)=>e.length == t.length ? t.oldIndex - e.oldIndex : e.length - t.length).pop();
  23485. r.oldIndex,
  23486. r.length,
  23487. r.newIndex,
  23488. r.length;
  23489. for (let t = r.oldIndex; t < r.oldIndex + r.length; ++t) {
  23490. g(t);
  23491. const n = l[e[t].diffIdentifier];
  23492. n && (n.removeOldIndex(t),
  23493. n.removeNewIndex(r.newIndex + (t - r.oldIndex)))
  23494. }
  23495. c.push([new i.IndexRange(r.oldIndex,r.oldIndex + r.length - 1), new i.IndexRange(r.newIndex,r.newIndex + r.length - 1)])
  23496. }
  23497. return function(e, t, n) {
  23498. const r = [];
  23499. for (const t of e._ranges)
  23500. r.push(new o(t.lowerBound,-1,t.count));
  23501. for (const e of t._ranges)
  23502. r.push(new o(-1,e.lowerBound,e.count));
  23503. for (const e of n)
  23504. r.push(new o(e[0].location,e[1].location,e[0].length));
  23505. return r
  23506. }(u, new r.IndexSet(Object.values(l).reduce((e,t)=>e.concat(Array.from(t.newIndices)), [])), c)
  23507. }
  23508. },
  23509. 268: function(e, t, n) {
  23510. "use strict";
  23511. Object.defineProperty(t, "__esModule", {
  23512. value: !0
  23513. }),
  23514. t.IndexSet = void 0;
  23515. const r = n(113);
  23516. class i {
  23517. constructor(e=[]) {
  23518. if (this._ranges = [],
  23519. this._count = 0,
  23520. void 0 !== e && (!Array.isArray(e) || 0 !== e.length))
  23521. if ("string" == typeof e)
  23522. this._fromString(e);
  23523. else {
  23524. (Array.isArray(e) && e.length > 0 ? e[0] : e)instanceof r.IndexRange ? this.addRanges(e) : this.addIndexes(e)
  23525. }
  23526. }
  23527. static fromString(e) {
  23528. return new i(e)
  23529. }
  23530. addRanges(e) {
  23531. Array.isArray(e) || (e = [e]),
  23532. this._addRanges(e)
  23533. }
  23534. removeRange(e) {
  23535. this._removeRange(e)
  23536. }
  23537. addIndexes(e) {
  23538. let t;
  23539. t = "number" == typeof e || "string" == typeof e ? [e] : e;
  23540. let n = [];
  23541. for (let e = 0; e < t.length; e++) {
  23542. const r = t[e];
  23543. n.push("string" == typeof r ? parseInt(r, 10) : r)
  23544. }
  23545. n = n.sort((function(e, t) {
  23546. return e - t
  23547. }
  23548. ));
  23549. const i = [];
  23550. let o = void 0
  23551. , a = void 0;
  23552. for (let e = 0; e < n.length; e++) {
  23553. const t = n[e];
  23554. void 0 === o && (o = a = t),
  23555. t - a < 2 ? a = t : (i.push(new r.IndexRange(o,a)),
  23556. o = a = t)
  23557. }
  23558. i.push(new r.IndexRange(o,a)),
  23559. this._addRanges(i)
  23560. }
  23561. removeIndexes(e) {
  23562. let t;
  23563. t = "number" == typeof e || "string" == typeof e ? [e] : e;
  23564. for (let e = 0; e < t.length; e++) {
  23565. const n = t[e]
  23566. , i = new r.IndexRange(n,n);
  23567. this._removeRange(i)
  23568. }
  23569. }
  23570. contains(e) {
  23571. e = "string" == typeof e ? parseInt(e, 10) : e;
  23572. for (let t = 0; t < this._ranges.length; t++) {
  23573. if (this._ranges[t].contains(e))
  23574. return !0
  23575. }
  23576. return !1
  23577. }
  23578. get count() {
  23579. return this._count
  23580. }
  23581. indexAt(e) {
  23582. if (e >= this._count || e < 0)
  23583. throw new Error("Index out of range");
  23584. let t = 0
  23585. , n = 0;
  23586. for (let r = 0; r < this._ranges.length; r++) {
  23587. const i = this._ranges[r];
  23588. if (n += i.length,
  23589. e >= t && e < n) {
  23590. const n = e - t;
  23591. return i.start + n
  23592. }
  23593. t += i.length
  23594. }
  23595. return -1
  23596. }
  23597. get firstIndex() {
  23598. return 0 === this._ranges.length ? null : this._ranges[0].start
  23599. }
  23600. get lastIndex() {
  23601. const e = this._ranges.length;
  23602. return 0 === e ? null : this._ranges[e - 1].end
  23603. }
  23604. pagedRanges(e) {
  23605. if (0 === this._ranges.length || void 0 === e)
  23606. return this._ranges;
  23607. const t = [];
  23608. for (let n = 0; n < this._ranges.length; n++) {
  23609. const i = this._ranges[n];
  23610. if (i.length <= e)
  23611. t.push(i);
  23612. else {
  23613. const n = Math.floor(i.length / e)
  23614. , o = i.length % e;
  23615. for (let o = 0; o < n; o++) {
  23616. const n = i.start + e * o;
  23617. t.push(new r.IndexRange(n,n + e - 1))
  23618. }
  23619. o > 0 && t.push(new r.IndexRange(e * n,e * n + o - 1))
  23620. }
  23621. }
  23622. return t
  23623. }
  23624. toString() {
  23625. if (0 === this._ranges.length)
  23626. return "";
  23627. const e = r.IndexRange.compact(this._ranges)
  23628. , t = [];
  23629. for (let n = 0; n < e.length; n++)
  23630. t.push(e[n].toString());
  23631. return t.join(",")
  23632. }
  23633. _addRanges(e) {
  23634. this._ranges = r.IndexRange.compact(this._ranges.concat(e)),
  23635. this._updateCount()
  23636. }
  23637. _removeRange(e) {
  23638. this._ranges.length > 0 && (this._ranges = r.IndexRange.subtract(this._ranges, e)),
  23639. this._updateCount()
  23640. }
  23641. _updateCount() {
  23642. let e = 0;
  23643. for (let t = 0; t < this._ranges.length; t++) {
  23644. e += this._ranges[t].length
  23645. }
  23646. this._count = e
  23647. }
  23648. _fromString(e) {
  23649. const t = e.split(",")
  23650. , n = [];
  23651. for (let e = 0; e < t.length; e++) {
  23652. const i = r.IndexRange.fromString(t[e]);
  23653. if (!i)
  23654. throw new Error("Invalid range");
  23655. n.push(i)
  23656. }
  23657. this._ranges = [],
  23658. this._count = 0,
  23659. this._addRanges(n)
  23660. }
  23661. }
  23662. t.IndexSet = i
  23663. },
  23664. 269: function(e, t, n) {
  23665. "use strict";
  23666. var r = this && this.__awaiter || function(e, t, n, r) {
  23667. return new (n || (n = Promise))((function(i, o) {
  23668. function a(e) {
  23669. try {
  23670. l(r.next(e))
  23671. } catch (e) {
  23672. o(e)
  23673. }
  23674. }
  23675. function s(e) {
  23676. try {
  23677. l(r.throw(e))
  23678. } catch (e) {
  23679. o(e)
  23680. }
  23681. }
  23682. function l(e) {
  23683. var t;
  23684. e.done ? i(e.value) : (t = e.value,
  23685. t instanceof n ? t : new n((function(e) {
  23686. e(t)
  23687. }
  23688. ))).then(a, s)
  23689. }
  23690. l((r = r.apply(e, t || [])).next())
  23691. }
  23692. ))
  23693. }
  23694. , i = this && this.__importDefault || function(e) {
  23695. return e && e.__esModule ? e : {
  23696. default: e
  23697. }
  23698. }
  23699. ;
  23700. Object.defineProperty(t, "__esModule", {
  23701. value: !0
  23702. }),
  23703. t.performDissolveTransitionEffect = t.computeDissolveTransitionEffect = void 0;
  23704. const o = i(n(70));
  23705. t.computeDissolveTransitionEffect = function() {
  23706. return {
  23707. effect: "dissolve"
  23708. }
  23709. }
  23710. ,
  23711. t.performDissolveTransitionEffect = function(e, t, n) {
  23712. return r(this, void 0, void 0, (function*() {
  23713. const r = parseFloat(n.el.style.opacity || "1");
  23714. yield Promise.all([o.default({
  23715. targets: [t.el],
  23716. opacity: 0,
  23717. duration: e,
  23718. easing: "easeOutQuad"
  23719. }).finished, o.default({
  23720. targets: [n.el],
  23721. opacity: [0, r],
  23722. duration: e,
  23723. easing: "easeInQuad"
  23724. }).finished])
  23725. }
  23726. ))
  23727. }
  23728. },
  23729. 270: function(e, t, n) {
  23730. "use strict";
  23731. var r = this && this.__awaiter || function(e, t, n, r) {
  23732. return new (n || (n = Promise))((function(i, o) {
  23733. function a(e) {
  23734. try {
  23735. l(r.next(e))
  23736. } catch (e) {
  23737. o(e)
  23738. }
  23739. }
  23740. function s(e) {
  23741. try {
  23742. l(r.throw(e))
  23743. } catch (e) {
  23744. o(e)
  23745. }
  23746. }
  23747. function l(e) {
  23748. var t;
  23749. e.done ? i(e.value) : (t = e.value,
  23750. t instanceof n ? t : new n((function(e) {
  23751. e(t)
  23752. }
  23753. ))).then(a, s)
  23754. }
  23755. l((r = r.apply(e, t || [])).next())
  23756. }
  23757. ))
  23758. }
  23759. ;
  23760. Object.defineProperty(t, "__esModule", {
  23761. value: !0
  23762. }),
  23763. t.performAnimateInSlideTransitionEffect = t.computeAnimateInSlideTransitionEffect = void 0;
  23764. const i = n(5)
  23765. , o = n(75);
  23766. t.computeAnimateInSlideTransitionEffect = function(e) {
  23767. return {
  23768. effect: "animateInSlide",
  23769. targetSlide: e.targetSlide,
  23770. targetSlideEnteringState: e.targetSlideEnteringState
  23771. }
  23772. }
  23773. ,
  23774. t.performAnimateInSlideTransitionEffect = function(e, t, n) {
  23775. return r(this, void 0, void 0, (function*() {
  23776. n.slide = t.targetSlide,
  23777. t.targetSlideEnteringState && (n.slideState = i.mergeSlideState(n.slideState, t.targetSlideEnteringState)),
  23778. yield new o.ViewAnimator({
  23779. duration: e,
  23780. easing: "easeInOutCubic"
  23781. }).animate(()=>{
  23782. n.update()
  23783. }
  23784. ).play()
  23785. }
  23786. ))
  23787. }
  23788. },
  23789. 271: function(e, t, n) {
  23790. "use strict";
  23791. var r = this && this.__awaiter || function(e, t, n, r) {
  23792. return new (n || (n = Promise))((function(i, o) {
  23793. function a(e) {
  23794. try {
  23795. l(r.next(e))
  23796. } catch (e) {
  23797. o(e)
  23798. }
  23799. }
  23800. function s(e) {
  23801. try {
  23802. l(r.throw(e))
  23803. } catch (e) {
  23804. o(e)
  23805. }
  23806. }
  23807. function l(e) {
  23808. var t;
  23809. e.done ? i(e.value) : (t = e.value,
  23810. t instanceof n ? t : new n((function(e) {
  23811. e(t)
  23812. }
  23813. ))).then(a, s)
  23814. }
  23815. l((r = r.apply(e, t || [])).next())
  23816. }
  23817. ))
  23818. }
  23819. , i = this && this.__importDefault || function(e) {
  23820. return e && e.__esModule ? e : {
  23821. default: e
  23822. }
  23823. }
  23824. ;
  23825. Object.defineProperty(t, "__esModule", {
  23826. value: !0
  23827. }),
  23828. t.AnimationExecutor = t.performAnimation = void 0;
  23829. const o = n(272)
  23830. , a = n(273);
  23831. function s(e, t, n) {
  23832. var i, s;
  23833. return r(this, void 0, void 0, (function*() {
  23834. const r = Math.floor((null !== (i = t.delayMultiplier) && void 0 !== i ? i : 0) * e);
  23835. r > 0 && (yield new Promise(e=>setTimeout(()=>e(), r)));
  23836. const l = Math.floor((null !== (s = t.durationMultiplier) && void 0 !== s ? s : 1) * e);
  23837. switch (t.effect) {
  23838. case "sleep":
  23839. yield o.performSleepAnimation(l);
  23840. break;
  23841. case "mutate":
  23842. yield a.performSlideMutationAnimation(l, n, t.finalState, t.easing)
  23843. }
  23844. }
  23845. ))
  23846. }
  23847. i(n(70)).default.suspendWhenDocumentHidden = !1,
  23848. t.performAnimation = s;
  23849. t.AnimationExecutor = class {
  23850. constructor(e) {
  23851. var t, n, r;
  23852. this.onStage = {
  23853. preTransition: [],
  23854. transition: [],
  23855. postTransition: []
  23856. },
  23857. this.afterGroup = {},
  23858. this.groupCountDown = {};
  23859. for (const i of e) {
  23860. if ("on"in i)
  23861. this.onStage[i.on].push(i);
  23862. else {
  23863. const e = null !== (t = this.afterGroup[i.after]) && void 0 !== t ? t : [];
  23864. e.push(i),
  23865. this.afterGroup[i.after] = e
  23866. }
  23867. for (const e of null !== (n = i.groups) && void 0 !== n ? n : [])
  23868. this.groupCountDown[e] = (null !== (r = this.groupCountDown[e]) && void 0 !== r ? r : 0) + 1
  23869. }
  23870. }
  23871. performAnimationsOnStage(e, t, n) {
  23872. return r(this, void 0, void 0, (function*() {
  23873. yield Promise.all(this.onStage[t].map(t=>this.performAnimationAndDescendantGroups(e, t, n)))
  23874. }
  23875. ))
  23876. }
  23877. performAnimationAndDescendantGroups(e, t, n) {
  23878. return r(this, void 0, void 0, (function*() {
  23879. yield s(e, t, n),
  23880. yield this.performGroupedAnimationsAfter(e, t, n)
  23881. }
  23882. ))
  23883. }
  23884. performGroupedAnimationsAfter(e, t, n) {
  23885. var i, o;
  23886. return r(this, void 0, void 0, (function*() {
  23887. let r = [];
  23888. for (const e of null !== (i = t.groups) && void 0 !== i ? i : [])
  23889. this.groupCountDown[e] -= 1,
  23890. 0 === this.groupCountDown[e] && (r = r.concat(null !== (o = this.afterGroup[e]) && void 0 !== o ? o : []));
  23891. yield Promise.all(r.map(t=>this.performAnimationAndDescendantGroups(e, t, n)))
  23892. }
  23893. ))
  23894. }
  23895. }
  23896. },
  23897. 272: function(e, t, n) {
  23898. "use strict";
  23899. var r = this && this.__awaiter || function(e, t, n, r) {
  23900. return new (n || (n = Promise))((function(i, o) {
  23901. function a(e) {
  23902. try {
  23903. l(r.next(e))
  23904. } catch (e) {
  23905. o(e)
  23906. }
  23907. }
  23908. function s(e) {
  23909. try {
  23910. l(r.throw(e))
  23911. } catch (e) {
  23912. o(e)
  23913. }
  23914. }
  23915. function l(e) {
  23916. var t;
  23917. e.done ? i(e.value) : (t = e.value,
  23918. t instanceof n ? t : new n((function(e) {
  23919. e(t)
  23920. }
  23921. ))).then(a, s)
  23922. }
  23923. l((r = r.apply(e, t || [])).next())
  23924. }
  23925. ))
  23926. }
  23927. ;
  23928. Object.defineProperty(t, "__esModule", {
  23929. value: !0
  23930. }),
  23931. t.performSleepAnimation = void 0,
  23932. t.performSleepAnimation = function(e) {
  23933. return r(this, void 0, void 0, (function*() {
  23934. if (!(e <= 0))
  23935. return new Promise(t=>setTimeout(t, e))
  23936. }
  23937. ))
  23938. }
  23939. },
  23940. 273: function(e, t, n) {
  23941. "use strict";
  23942. var r = this && this.__awaiter || function(e, t, n, r) {
  23943. return new (n || (n = Promise))((function(i, o) {
  23944. function a(e) {
  23945. try {
  23946. l(r.next(e))
  23947. } catch (e) {
  23948. o(e)
  23949. }
  23950. }
  23951. function s(e) {
  23952. try {
  23953. l(r.throw(e))
  23954. } catch (e) {
  23955. o(e)
  23956. }
  23957. }
  23958. function l(e) {
  23959. var t;
  23960. e.done ? i(e.value) : (t = e.value,
  23961. t instanceof n ? t : new n((function(e) {
  23962. e(t)
  23963. }
  23964. ))).then(a, s)
  23965. }
  23966. l((r = r.apply(e, t || [])).next())
  23967. }
  23968. ))
  23969. }
  23970. ;
  23971. Object.defineProperty(t, "__esModule", {
  23972. value: !0
  23973. }),
  23974. t.performSlideMutationAnimation = void 0;
  23975. const i = n(5)
  23976. , o = n(75);
  23977. t.performSlideMutationAnimation = function(e, t, n, a) {
  23978. return r(this, void 0, void 0, (function*() {
  23979. t.slideState = i.mergeSlideState(t.slideState, n),
  23980. e > 0 ? yield new o.ViewAnimator({
  23981. duration: e,
  23982. easing: a
  23983. }).animate(()=>{
  23984. t.update()
  23985. }
  23986. ).play() : t.update()
  23987. }
  23988. ))
  23989. }
  23990. },
  23991. 274: function(e, t, n) {
  23992. "use strict";
  23993. var r = this && this.__awaiter || function(e, t, n, r) {
  23994. return new (n || (n = Promise))((function(i, o) {
  23995. function a(e) {
  23996. try {
  23997. l(r.next(e))
  23998. } catch (e) {
  23999. o(e)
  24000. }
  24001. }
  24002. function s(e) {
  24003. try {
  24004. l(r.throw(e))
  24005. } catch (e) {
  24006. o(e)
  24007. }
  24008. }
  24009. function l(e) {
  24010. var t;
  24011. e.done ? i(e.value) : (t = e.value,
  24012. t instanceof n ? t : new n((function(e) {
  24013. e(t)
  24014. }
  24015. ))).then(a, s)
  24016. }
  24017. l((r = r.apply(e, t || [])).next())
  24018. }
  24019. ))
  24020. }
  24021. ;
  24022. Object.defineProperty(t, "__esModule", {
  24023. value: !0
  24024. }),
  24025. t.EndingScreenView = void 0;
  24026. const i = n(12)
  24027. , o = n(76)
  24028. , a = n(50);
  24029. class s extends o.View {
  24030. constructor(e) {
  24031. super(e),
  24032. this.content = null,
  24033. this._size = e.size
  24034. }
  24035. createViewElement() {
  24036. return document.createElement("div")
  24037. }
  24038. update() {
  24039. var e, t;
  24040. super.update(),
  24041. this.el.style.position = "absolute",
  24042. this.el.style.left = "0px",
  24043. this.el.style.top = "0px",
  24044. this.el.style.width = i.toCSSLength(this._size.width),
  24045. this.el.style.height = i.toCSSLength(this._size.height),
  24046. this.el.style.transformOrigin = "center center",
  24047. this.el.style.opacity = "1",
  24048. this.el.style.transform = "";
  24049. const n = this.content;
  24050. if (n && n.svgString === this._appliedSVGString || (this._contentEl && this.el.removeChild(this._contentEl),
  24051. delete this._contentEl,
  24052. delete this._appliedSVGString),
  24053. n) {
  24054. const t = null !== (e = this._contentEl) && void 0 !== e ? e : this._contentEl = this._createContentElement(n);
  24055. t.parentElement !== this.el && this.el.appendChild(t),
  24056. this._updateContentElement(t, n),
  24057. this._appliedSVGString = n.svgString
  24058. }
  24059. this.el.style.backgroundColor = null !== (t = null == n ? void 0 : n.backgroundColor) && void 0 !== t ? t : "none"
  24060. }
  24061. _createContentElement(e) {
  24062. return (new DOMParser).parseFromString(e.svgString, "image/svg+xml").documentElement
  24063. }
  24064. _updateContentElement(e, t) {
  24065. const n = this._size
  24066. , r = Math.min(n.width / t.width, n.height / t.height)
  24067. , o = Math.floor(t.width * r)
  24068. , a = Math.floor(t.height * r)
  24069. , s = (n.width - o) / 2
  24070. , l = (n.height - a) / 2;
  24071. e.style.position = "absolute",
  24072. e.style.left = i.toCSSLength(s),
  24073. e.style.top = i.toCSSLength(l),
  24074. e.style.width = i.toCSSLength(o),
  24075. e.style.height = i.toCSSLength(a)
  24076. }
  24077. setOpacity(e) {
  24078. a.ViewAnimator.perform(this.el, {
  24079. opacity: e
  24080. })
  24081. }
  24082. setScale(e) {
  24083. a.ViewAnimator.perform(this.el, {
  24084. transform: [{
  24085. scale: {
  24086. x: e,
  24087. y: e
  24088. }
  24089. }]
  24090. })
  24091. }
  24092. present(e) {
  24093. return r(this, void 0, void 0, (function*() {
  24094. this.setOpacity(0),
  24095. this.setScale(1.3),
  24096. yield new a.ViewAnimator({
  24097. duration: e,
  24098. easing: "easeInOutCubic"
  24099. }).animate(()=>{
  24100. this.setOpacity(1),
  24101. this.setScale(1)
  24102. }
  24103. ).play()
  24104. }
  24105. ))
  24106. }
  24107. dismiss(e) {
  24108. return r(this, void 0, void 0, (function*() {
  24109. yield new a.ViewAnimator({
  24110. duration: e,
  24111. easing: "linear"
  24112. }).animate(()=>{
  24113. this.setOpacity(0)
  24114. }
  24115. ).play()
  24116. }
  24117. ))
  24118. }
  24119. }
  24120. t.EndingScreenView = s
  24121. },
  24122. 275: function(e, t, n) {
  24123. "use strict";
  24124. Object.defineProperty(t, "__esModule", {
  24125. value: !0
  24126. }),
  24127. t.SlideshowExporter = t.slideSequence = void 0;
  24128. const r = n(5)
  24129. , i = n(276)
  24130. , o = n(12)
  24131. , a = n(167)
  24132. , s = n(75)
  24133. , l = n(166)
  24134. , u = n(42);
  24135. function c(e) {
  24136. var t;
  24137. const n = []
  24138. , r = []
  24139. , i = e.getStartingTopicId();
  24140. let o;
  24141. for (i && r.push(i); o = r.pop(); ) {
  24142. n.push({
  24143. topicId: o,
  24144. type: "topic"
  24145. });
  24146. const i = e.getSubtopics(o);
  24147. i.length > 0 && (n.push({
  24148. topicId: o,
  24149. type: "list"
  24150. }),
  24151. r.push(...i.slice().reverse()));
  24152. const a = e.getParentTopicId(o);
  24153. if (!a)
  24154. continue;
  24155. const {summaries: s} = null !== (t = e.getTopicAttributes(a)) && void 0 !== t ? t : {};
  24156. if (a && s) {
  24157. const t = e.getSubtopics(a);
  24158. for (const e of l.computeSummariesEndingAt(t.indexOf(o), s))
  24159. n.push({
  24160. topicId: e.topicId,
  24161. type: "summary"
  24162. }),
  24163. n.push({
  24164. topicId: e.topicId,
  24165. type: "topic"
  24166. })
  24167. }
  24168. }
  24169. return n
  24170. }
  24171. t.slideSequence = c;
  24172. t.SlideshowExporter = class {
  24173. constructor(e) {
  24174. this._fontFamilyInPptx = "Arial",
  24175. this._slideshow = e
  24176. }
  24177. exportPptxSlides() {
  24178. const e = [];
  24179. for (const t of this.collectSlidesForPptx())
  24180. e.push(this.parseSlideContent(t));
  24181. return e
  24182. }
  24183. exportHtmlPages() {
  24184. function e(e, t) {
  24185. const n = new s.SlideView;
  24186. n.slide = e,
  24187. t && (n.slideState = t),
  24188. n.update();
  24189. return n.el.querySelectorAll("svg").forEach(e=>{
  24190. var t;
  24191. const n = e.parentElement;
  24192. null == n || n.removeChild(e);
  24193. const r = document.createElement("div");
  24194. r.setAttribute("style", null !== (t = e.getAttribute("style")) && void 0 !== t ? t : ""),
  24195. e.setAttribute("width", e.style.width + ""),
  24196. e.setAttribute("height", e.style.height + ""),
  24197. e.removeAttribute("style"),
  24198. r.appendChild(e),
  24199. null == n || n.appendChild(r)
  24200. }
  24201. ),
  24202. n
  24203. }
  24204. function t(e) {
  24205. const t = [];
  24206. let n = e.slideState;
  24207. for (; e.slide; ) {
  24208. const i = a.computeMultistepChange({
  24209. kind: "forward"
  24210. }, e.slide, n);
  24211. if (!i || 0 === Object.keys(i).length)
  24212. break;
  24213. const o = new s.SlideView;
  24214. o.slide = e.slide,
  24215. o.slideState = r.mergeSlideState(e.slideState, i),
  24216. n = o.slideState,
  24217. o.update(),
  24218. t.push(o)
  24219. }
  24220. return t
  24221. }
  24222. const n = [];
  24223. for (const r of this.collectSlidesForPdf()) {
  24224. const i = e(r);
  24225. n.push(i.el),
  24226. n.push(...t(i).map(e=>e.el))
  24227. }
  24228. return n
  24229. }
  24230. parseSlideContent(e) {
  24231. var t, n;
  24232. const r = [];
  24233. return e.boxes.forEach(e=>{
  24234. this.parseBoxContent(r, e)
  24235. }
  24236. ),
  24237. u.disposeTextMeasurementHelpers(),
  24238. {
  24239. backgroundColor: i.normalizeTo6DigitsRgb(null !== (t = e.backgroundColor) && void 0 !== t ? t : "#000"),
  24240. backgroundTransparency: i.convertOpacityToTransparency(null !== (n = e.backgroundOpacity) && void 0 !== n ? n : 1),
  24241. boxes: r
  24242. }
  24243. }
  24244. parseBoxContent(e, t, n=0) {
  24245. if (0 !== t.opacity)
  24246. switch (t.contentType) {
  24247. case "text":
  24248. {
  24249. const r = this.adjustFontSizeToFitBox(t);
  24250. e.push(Object.assign(Object.assign({}, this.toPositionedBox(r, n)), this.toPptxText(r)));
  24251. break
  24252. }
  24253. case "image":
  24254. case "svg-template":
  24255. e.push(Object.assign(Object.assign({}, this.toPositionedBox(t, n)), this.toPptxImage(t)));
  24256. break;
  24257. case "shape":
  24258. this.parseShapeBoxContent(e, t, n);
  24259. break;
  24260. case "group":
  24261. t.scrollOffset && (n += t.scrollOffset),
  24262. t.children.forEach(t=>{
  24263. this.parseBoxContent(e, t, n)
  24264. }
  24265. )
  24266. }
  24267. }
  24268. parseShapeBoxContent(e, t, n) {
  24269. var r, i, a, s, l, u;
  24270. const c = document.createElementNS("http://www.w3.org/2000/svg", "svg");
  24271. c.style.position = "absolute",
  24272. c.style.transformOrigin = "0 0",
  24273. c.setAttribute("viewBox", `0 0 ${t.bounds.width} ${t.bounds.height}`);
  24274. const d = document.createElementNS("http://www.w3.org/2000/svg", "path");
  24275. d.setAttribute("d", null !== (r = t.shapePath) && void 0 !== r ? r : ""),
  24276. d.style.fill = null !== (i = t.fillColor) && void 0 !== i ? i : "transparent",
  24277. t.fillColor || (d.style.fillOpacity = "0"),
  24278. d.style.stroke = null !== (a = t.strokeColor) && void 0 !== a ? a : "transparent",
  24279. d.style.strokeWidth = o.toCSSLength(null !== (s = t.lineWidth) && void 0 !== s ? s : 0),
  24280. d.style.strokeLinecap = null !== (l = t.lineCap) && void 0 !== l ? l : "",
  24281. d.style.strokeLinejoin = null !== (u = t.lineJoin) && void 0 !== u ? u : "",
  24282. c.appendChild(d);
  24283. const f = (new XMLSerializer).serializeToString(c)
  24284. , h = unescape(encodeURIComponent(f))
  24285. , p = "data:image/svg+xml;base64," + window.btoa(h);
  24286. e.push(Object.assign({
  24287. data: p
  24288. }, this.toPositionedBox(t, n)))
  24289. }
  24290. collectSlidesForPdf() {
  24291. const e = [];
  24292. let t = this._slideshow.getStartingSlide();
  24293. if (t)
  24294. for (e.push(t); ; ) {
  24295. const n = this._slideshow.getTransition({
  24296. kind: "forward"
  24297. }, t);
  24298. if (!n || !n.targetSlide)
  24299. break;
  24300. t = n.targetSlide,
  24301. 0 != t.boxes.length && 1 != t.autoForwarding && e.push(t)
  24302. }
  24303. return e
  24304. }
  24305. collectSlidesForPptx() {
  24306. return c(this._slideshow.contentProvider).map(({topicId: e, type: t})=>this._slideshow.getTemplateSlide(t, e)).filter(e=>!!e).filter(e=>!this._slideshow.isSlideSkipped(e))
  24307. }
  24308. toPptxText(e) {
  24309. var t, n, r;
  24310. const o = i.convertFontSizeToPt(null !== (t = e.fontSize) && void 0 !== t ? t : "12px", this._slideshow.slideSize.height);
  24311. return {
  24312. text: e.text,
  24313. color: i.normalizeTo6DigitsRgb(null !== (n = e.textColor) && void 0 !== n ? n : "#fff"),
  24314. fontSize: o,
  24315. fontFace: this._fontFamilyInPptx,
  24316. bold: "bold" == e.fontWeight,
  24317. align: i.convertTextAlignmentToHAlign(null !== (r = e.textAlignment) && void 0 !== r ? r : "center"),
  24318. valign: "top",
  24319. margin: 0,
  24320. shrinkText: !0,
  24321. lineSpacing: i.convertLineHeightToLineSpacingInPt(this._slideshow.slideSize.height, o, e.lineHeight)
  24322. }
  24323. }
  24324. toPptxImage(e) {
  24325. var t;
  24326. const n = {};
  24327. if ("imageSource"in e)
  24328. e.imageSource.startsWith("data:") ? n.data = e.imageSource : n.path = e.imageSource;
  24329. else {
  24330. const r = (new DOMParser).parseFromString(e.svg, "image/svg+xml").documentElement;
  24331. r.setAttribute("fill", null !== (t = e.fillColor) && void 0 !== t ? t : "");
  24332. const i = (new XMLSerializer).serializeToString(r)
  24333. , o = unescape(encodeURIComponent(i))
  24334. , a = btoa(o);
  24335. n.data = "data:image/svg+xml;base64," + a
  24336. }
  24337. return n
  24338. }
  24339. toPositionedBox(e, t) {
  24340. var n;
  24341. const {width: r, height: o} = this._slideshow.slideSize
  24342. , {x: a, y: s, width: l, height: u} = e.absBounds;
  24343. return {
  24344. x: "textIndent"in e ? i.toPercentage(a + parseFloat(null !== (n = e.textIndent) && void 0 !== n ? n : "0"), r) : i.toPercentage(a, r),
  24345. y: i.toPercentage(s - t, o),
  24346. w: "text"in e ? i.toCeilPercentage(l, r) : i.toPercentage(l, r),
  24347. h: "text"in e ? i.toCeilPercentage(u, o) : i.toPercentage(u, o)
  24348. }
  24349. }
  24350. adjustFontSizeToFitBox(e) {
  24351. const t = Object.assign({}, e, {
  24352. fontFamily: [this._fontFamilyInPptx]
  24353. });
  24354. let {height: n, fontSize: r} = u.measureText(t, {
  24355. maxWidth: t.absBounds.width
  24356. });
  24357. for (; n > t.absBounds.height; ) {
  24358. t.fontSize = r - 1 + "px";
  24359. const e = u.measureText(t, {
  24360. maxWidth: t.absBounds.width
  24361. });
  24362. n = e.height,
  24363. r = e.fontSize
  24364. }
  24365. return t
  24366. }
  24367. }
  24368. },
  24369. 276: function(e, t, n) {
  24370. "use strict";
  24371. function r(e) {
  24372. return 5.625 * e * 72
  24373. }
  24374. Object.defineProperty(t, "__esModule", {
  24375. value: !0
  24376. }),
  24377. t.convertTextAlignmentToHAlign = t.convertOpacityToTransparency = t.normalizeTo6DigitsRgb = t.convertLineHeightToLineSpacingInPt = t.convertFontSizeToPt = t.convertPercentageToPt = t.toCeilPercentage = t.toPercentage = void 0,
  24378. t.toPercentage = function(e, t) {
  24379. return (e / t * 100).toFixed(2) + "%"
  24380. }
  24381. ,
  24382. t.toCeilPercentage = function(e, t) {
  24383. return Math.ceil(e / t * 100).toFixed(2) + "%"
  24384. }
  24385. ,
  24386. t.convertPercentageToPt = r,
  24387. t.convertFontSizeToPt = function(e, t) {
  24388. return r(parseFloat(e) / t * .94)
  24389. }
  24390. ,
  24391. t.convertLineHeightToLineSpacingInPt = function(e, t, n) {
  24392. if (n)
  24393. return n.endsWith("em") ? t * parseFloat(n) : n.endsWith("px") ? r(parseFloat(n) / e) : void 0
  24394. }
  24395. ,
  24396. t.normalizeTo6DigitsRgb = function(e) {
  24397. if (3 != e.slice(1).length)
  24398. return e;
  24399. let t = e.split("").map(e=>"#" == e ? e : e + e).join("");
  24400. return "#" != t[0] && (t = "#" + e),
  24401. t
  24402. }
  24403. ,
  24404. t.convertOpacityToTransparency = function(e) {
  24405. return 100 * (1 - e)
  24406. }
  24407. ,
  24408. t.convertTextAlignmentToHAlign = function(e) {
  24409. switch (e) {
  24410. case "leading":
  24411. return "left";
  24412. case "trailing":
  24413. return "right";
  24414. default:
  24415. return "center"
  24416. }
  24417. }
  24418. },
  24419. 277: function(e, t, n) {
  24420. (function(e, t) {
  24421. !function(e, n) {
  24422. "use strict";
  24423. if (!e.setImmediate) {
  24424. var r, i, o, a, s, l = 1, u = {}, c = !1, d = e.document, f = Object.getPrototypeOf && Object.getPrototypeOf(e);
  24425. f = f && f.setTimeout ? f : e,
  24426. "[object process]" === {}.toString.call(e.process) ? r = function(e) {
  24427. t.nextTick((function() {
  24428. p(e)
  24429. }
  24430. ))
  24431. }
  24432. : !function() {
  24433. if (e.postMessage && !e.importScripts) {
  24434. var t = !0
  24435. , n = e.onmessage;
  24436. return e.onmessage = function() {
  24437. t = !1
  24438. }
  24439. ,
  24440. e.postMessage("", "*"),
  24441. e.onmessage = n,
  24442. t
  24443. }
  24444. }() ? e.MessageChannel ? ((o = new MessageChannel).port1.onmessage = function(e) {
  24445. p(e.data)
  24446. }
  24447. ,
  24448. r = function(e) {
  24449. o.port2.postMessage(e)
  24450. }
  24451. ) : d && "onreadystatechange"in d.createElement("script") ? (i = d.documentElement,
  24452. r = function(e) {
  24453. var t = d.createElement("script");
  24454. t.onreadystatechange = function() {
  24455. p(e),
  24456. t.onreadystatechange = null,
  24457. i.removeChild(t),
  24458. t = null
  24459. }
  24460. ,
  24461. i.appendChild(t)
  24462. }
  24463. ) : r = function(e) {
  24464. setTimeout(p, 0, e)
  24465. }
  24466. : (a = "setImmediate$" + Math.random() + "$",
  24467. s = function(t) {
  24468. t.source === e && "string" == typeof t.data && 0 === t.data.indexOf(a) && p(+t.data.slice(a.length))
  24469. }
  24470. ,
  24471. e.addEventListener ? e.addEventListener("message", s, !1) : e.attachEvent("onmessage", s),
  24472. r = function(t) {
  24473. e.postMessage(a + t, "*")
  24474. }
  24475. ),
  24476. f.setImmediate = function(e) {
  24477. "function" != typeof e && (e = new Function("" + e));
  24478. for (var t = new Array(arguments.length - 1), n = 0; n < t.length; n++)
  24479. t[n] = arguments[n + 1];
  24480. var i = {
  24481. callback: e,
  24482. args: t
  24483. };
  24484. return u[l] = i,
  24485. r(l),
  24486. l++
  24487. }
  24488. ,
  24489. f.clearImmediate = h
  24490. }
  24491. function h(e) {
  24492. delete u[e]
  24493. }
  24494. function p(e) {
  24495. if (c)
  24496. setTimeout(p, 0, e);
  24497. else {
  24498. var t = u[e];
  24499. if (t) {
  24500. c = !0;
  24501. try {
  24502. !function(e) {
  24503. var t = e.callback
  24504. , n = e.args;
  24505. switch (n.length) {
  24506. case 0:
  24507. t();
  24508. break;
  24509. case 1:
  24510. t(n[0]);
  24511. break;
  24512. case 2:
  24513. t(n[0], n[1]);
  24514. break;
  24515. case 3:
  24516. t(n[0], n[1], n[2]);
  24517. break;
  24518. default:
  24519. t.apply(void 0, n)
  24520. }
  24521. }(t)
  24522. } finally {
  24523. h(e),
  24524. c = !1
  24525. }
  24526. }
  24527. }
  24528. }
  24529. }("undefined" == typeof self ? void 0 === e ? this : e : self)
  24530. }
  24531. ).call(this, n(20), n(69))
  24532. },
  24533. 279: function(e, t, n) {
  24534. "use strict";
  24535. n.r(t),
  24536. n.d(t, "ShareStorage", (function() {
  24537. return a
  24538. }
  24539. ));
  24540. var r = n(4)
  24541. , i = n(90)
  24542. , o = n.n(i);
  24543. class a {
  24544. constructor() {
  24545. this.storage = void 0,
  24546. this.fallbackCahced = {},
  24547. this.waitUntilDbReady(),
  24548. this.autoClean()
  24549. }
  24550. waitUntilDbReady() {
  24551. return Object(r.a)(this, void 0, void 0, (function*() {
  24552. try {
  24553. yield o.a.ready()
  24554. } catch (e) {
  24555. return
  24556. }
  24557. this.storage = o.a.createInstance({
  24558. name: "Share-" + a.SHARE_STORAGE_VERSION,
  24559. driver: [o.a.INDEXEDDB, o.a.WEBSQL, o.a.LOCALSTORAGE]
  24560. })
  24561. }
  24562. ))
  24563. }
  24564. setItem(e, t) {
  24565. return Object(r.a)(this, void 0, void 0, (function*() {
  24566. yield this.waitUntilDbReady();
  24567. const n = ()=>this.fallbackCahced[e] = t;
  24568. if (this.storage)
  24569. try {
  24570. this.storage.setItem(e, t)
  24571. } catch (e) {
  24572. return n(),
  24573. void console.error("Error", e)
  24574. }
  24575. else
  24576. n()
  24577. }
  24578. ))
  24579. }
  24580. getItem(e) {
  24581. return Object(r.a)(this, void 0, void 0, (function*() {
  24582. return yield this.waitUntilDbReady(),
  24583. this.fallbackCahced[e] || this.storage && (yield this.storage.getItem(e))
  24584. }
  24585. ))
  24586. }
  24587. removeItem(e) {
  24588. return Object(r.a)(this, void 0, void 0, (function*() {
  24589. delete this.fallbackCahced[e],
  24590. yield this.waitUntilDbReady(),
  24591. this.storage && (yield this.storage.removeItem(e))
  24592. }
  24593. ))
  24594. }
  24595. getRealItemKey(e) {
  24596. return Object(r.a)(this, void 0, void 0, (function*() {
  24597. yield this.waitUntilDbReady();
  24598. let t = [];
  24599. return t = this.storage ? yield this.storage.keys() : Object.keys(this.fallbackCahced),
  24600. t.find(t=>t.startsWith(e + "#"))
  24601. }
  24602. ))
  24603. }
  24604. autoClean() {
  24605. return Object(r.a)(this, void 0, void 0, (function*() {
  24606. if (yield this.waitUntilDbReady(),
  24607. !this.storage)
  24608. return;
  24609. const e = (yield this.storage.keys()).sort((e,t)=>e.split("#")[1] > t.split("#")[1] ? 1 : -1).slice(0, -1 * a.MAX_CACHE_AMOUNT);
  24610. for (const t of e)
  24611. yield this.storage.removeItem(t)
  24612. }
  24613. ))
  24614. }
  24615. getSharedMap(e) {
  24616. return Object(r.a)(this, void 0, void 0, (function*() {
  24617. const t = yield this.getRealItemKey(e);
  24618. if (t)
  24619. return yield this.getItem(t)
  24620. }
  24621. ))
  24622. }
  24623. setSharedMap(e, t) {
  24624. return Object(r.a)(this, void 0, void 0, (function*() {
  24625. const n = yield this.getRealItemKey(e);
  24626. n && (yield this.removeItem(n)),
  24627. yield this.setItem(e + "#" + Date.now(), t)
  24628. }
  24629. ))
  24630. }
  24631. removeSharedMap(e) {
  24632. return Object(r.a)(this, void 0, void 0, (function*() {
  24633. const t = yield this.getRealItemKey(e);
  24634. t && (yield this.removeItem(t))
  24635. }
  24636. ))
  24637. }
  24638. }
  24639. a.SHARE_STORAGE_VERSION = "2.0",
  24640. a.MAX_CACHE_AMOUNT = 5
  24641. },
  24642. 280: function(e, t, n) {
  24643. "use strict";
  24644. n.r(t),
  24645. n.d(t, "createServices", (function() {
  24646. return b
  24647. }
  24648. ));
  24649. var r = n(1)
  24650. , i = n(4);
  24651. var o = n(60)
  24652. , a = n(138)
  24653. , s = n.n(a);
  24654. const l = function(e) {
  24655. const t = []
  24656. , n = e.model.toJSON();
  24657. for (let r = 0; r < n.sheetOrder.length; r++) {
  24658. const i = e.model.getSheetByIndex(r).toJSON();
  24659. i.id = n.sheetOrder[r];
  24660. for (const e of n.sheets)
  24661. if (i.id === e.id) {
  24662. i.title = e.title;
  24663. break
  24664. }
  24665. t.push(i)
  24666. }
  24667. return {
  24668. sheets: t
  24669. }
  24670. };
  24671. function u(e, t, r={}) {
  24672. return Object(i.a)(this, void 0, void 0, (function*() {
  24673. const [r] = yield Promise.all([n.e(303).then(n.t.bind(null, 1177, 7))]);
  24674. if (e) {
  24675. window.mode;
  24676. const n = "https://assets.xmind.net/static/snowbird@0.0.23/"
  24677. , o = yield function(e) {
  24678. return Object(i.a)(this, void 0, void 0, (function*() {
  24679. const {file: t, container: n, password: r, Snowbrush: i, resourceUrlPrefix: o, languageCode: a} = e
  24680. , {fromXMind: l, isFileEncrypted: u} = i.formatconverter;
  24681. i.config({
  24682. [i.constant.CONFIG.URL_PREFIX]: o,
  24683. [i.constant.CONFIG.LANGUAGE]: a,
  24684. [i.constant.CONFIG.MAX_SCALE]: 500,
  24685. [i.constant.CONFIG.NO_ANIMATION]: !0,
  24686. [i.constant.CONFIG.MIN_SCALE]: 20,
  24687. [i.constant.CONFIG.NO_KEYBIND]: !0,
  24688. [i.constant.CONFIG.INFO_ITEM_STYLE]: i.constant.INFO_ITEM_STYLE_TYPE.FASHION,
  24689. [i.constant.CONFIG.NO_EDIT_RECEIVER]: !0,
  24690. [i.constant.CONFIG.FAKE_IMAGE]: !1,
  24691. [i.constant.CONFIG.HIDE_COLLAPSE_BTN]: !1,
  24692. [i.constant.CONFIG.READONLY]: !0
  24693. });
  24694. const c = yield function(e, t) {
  24695. return new Promise((n,r)=>{
  24696. (new s.a).loadAsync(e).then(e=>{
  24697. l(e, {
  24698. password: t
  24699. }).then(e=>{
  24700. const t = {
  24701. sheets: e.sheets.map(e=>({
  24702. id: e.id,
  24703. title: e.title
  24704. })),
  24705. id: i.utils.UUID()
  24706. };
  24707. n({
  24708. workbook: t,
  24709. sheets: e.sheets,
  24710. resources: e.manifest.resources,
  24711. isOldVersion: e.isOldVersion
  24712. })
  24713. }
  24714. ).catch(t=>{
  24715. u(e).then(e=>r(e ? "PasswordError" : t)).catch(e=>r(e))
  24716. }
  24717. )
  24718. }
  24719. )
  24720. }
  24721. )
  24722. }(t, r)
  24723. , d = new i.Model.Workbook(c.workbook);
  24724. c.sheets.forEach(e=>{
  24725. d.addSheet(e.id, e)
  24726. }
  24727. );
  24728. const f = new i.WorkbookEditor({
  24729. el: n,
  24730. model: d
  24731. });
  24732. f.config(i.constant.CONFIG.XAP_LOADER, e=>{
  24733. let t = e.substring("xap:".length, e.length)
  24734. , n = c.resources && c.resources[t];
  24735. return new Promise(e=>{
  24736. let r = "";
  24737. switch (!0) {
  24738. case t.endsWith(".svg"):
  24739. r = "image/svg+xml";
  24740. break;
  24741. case t.endsWith(".png"):
  24742. r = "image/png";
  24743. break;
  24744. case t.endsWith(".jpg"):
  24745. case t.endsWith(".jpeg"):
  24746. r = "image/jpeg";
  24747. break;
  24748. case t.endsWith("gif"):
  24749. r = "image/gif"
  24750. }
  24751. let i = new Blob([n],{
  24752. type: r
  24753. });
  24754. const o = new FileReader;
  24755. o.readAsDataURL(i),
  24756. o.onloadend = function() {
  24757. e(o.result)
  24758. }
  24759. }
  24760. )
  24761. }
  24762. );
  24763. return {
  24764. workbookEditor: f,
  24765. switchSheetTo: f.switchTo.bind(f),
  24766. getSheetsCount: ()=>f.sheetEditors.length,
  24767. getSheetTitle: e=>f.model.getSheetByIndex(e).title,
  24768. collapseBranch: (()=>f.execAction("collapseBranch")).bind(f),
  24769. extendBranch: (()=>f.execAction("extendBranch")).bind(f),
  24770. zoom: (e=>f.execAction("zoom", {
  24771. scale: e
  24772. })).bind(f),
  24773. getZoomPencentage: f.getZoomPencentage.bind(f),
  24774. close: ()=>{
  24775. f.remove()
  24776. }
  24777. }
  24778. }
  24779. ))
  24780. }({
  24781. Snowbrush: r.default,
  24782. container: t,
  24783. file: e,
  24784. languageCode: "en-US",
  24785. resourceUrlPrefix: n,
  24786. password: ""
  24787. });
  24788. return Object.assign(Object.assign({}, o), {
  24789. resourceUrlPrefix: n,
  24790. model: l(o.workbookEditor)
  24791. })
  24792. }
  24793. }
  24794. ))
  24795. }
  24796. var c = n(174)
  24797. , d = n(84);
  24798. class f {
  24799. constructor(e) {
  24800. this.state = e
  24801. }
  24802. }
  24803. class h {
  24804. constructor(e) {
  24805. this.state = e
  24806. }
  24807. }
  24808. var p = n(23);
  24809. class g extends h {
  24810. getReadonlyWorkbook() {
  24811. if (this.state.value.readonlyWorkbook.value)
  24812. return this.state.value.readonlyWorkbook.value;
  24813. throw new Error("Readonly workbook are not initialized!")
  24814. }
  24815. getSheetEditor(e) {
  24816. const t = this.getReadonlyWorkbook();
  24817. return e ? t.workbookEditor.getSheetEditorById(e) : t.workbookEditor.getCurrentSheetEditor()
  24818. }
  24819. get currentSheetViewportBounds() {
  24820. return Object(r.computed)(()=>{
  24821. const e = this.getSheetEditor(this.state.value.currentSheetId);
  24822. if (!e)
  24823. return null;
  24824. return {
  24825. scrollLeft: e.el.scrollLeft,
  24826. scrollTop: e.el.scrollTop,
  24827. width: e.el.offsetWidth,
  24828. height: e.el.offsetHeight
  24829. }
  24830. }
  24831. )
  24832. }
  24833. getTopicBounds(e, t) {
  24834. const n = this.getSheetEditor(t);
  24835. if (!n)
  24836. return null;
  24837. const r = n.getComponentViewById(e);
  24838. if (!r)
  24839. return null;
  24840. const i = r.el.getBoundingClientRect();
  24841. return {
  24842. width: i.width,
  24843. height: i.height,
  24844. x: i.x || i.left,
  24845. y: i.y || i.top
  24846. }
  24847. }
  24848. getModel(e, t, n) {
  24849. const r = this.getSheetEditor(n);
  24850. if (!r)
  24851. return null;
  24852. const i = r.getComponentViewById(e);
  24853. return i ? i.model && i.model.get(t) : null
  24854. }
  24855. getNotesById(e, t) {
  24856. return this.getModel(e, "notes", t)
  24857. }
  24858. getHrefById(e, t) {
  24859. return this.getModel(e, "href", t)
  24860. }
  24861. getCommentsById(e, t) {
  24862. return this.getModel(e, "comments", t)
  24863. }
  24864. getExtensionById(e, t) {
  24865. return this.getModel(e, "extensions", t)
  24866. }
  24867. getLabelsById(e, t) {
  24868. return this.getModel(e, "labels", t)
  24869. }
  24870. getAudioNoteById(e, t) {
  24871. const n = this.getSheetEditor(t);
  24872. if (!n)
  24873. return null;
  24874. return n.getComponentViewById(e).model.getAudioNotes()
  24875. }
  24876. getTopicTitleById(e, t) {
  24877. var n, r;
  24878. const i = null === (n = this.getReadonlyWorkbook()) || void 0 === n ? void 0 : n.workbookEditor
  24879. , o = i.model.sheets;
  24880. for (const t of o) {
  24881. const t = null === (r = i.getComponentViewById(e)) || void 0 === r ? void 0 : r.model;
  24882. if (t)
  24883. return t.getTitle()
  24884. }
  24885. }
  24886. getSheetTitleByTopicId(e) {
  24887. var t;
  24888. const n = (null === (t = this.getReadonlyWorkbook()) || void 0 === t ? void 0 : t.workbookEditor).model.sheets;
  24889. for (const t of n) {
  24890. if (t.findComponentById(e))
  24891. return t.attributes.title
  24892. }
  24893. }
  24894. getViewportBounds(e) {
  24895. const t = this.getSheetEditor(e);
  24896. if (!t)
  24897. return null;
  24898. return {
  24899. scrollLeft: t.el.scrollLeft,
  24900. scrollTop: t.el.scrollTop,
  24901. width: t.el.offsetWidth,
  24902. height: t.el.offsetHeight
  24903. }
  24904. }
  24905. getRootTopic(e) {
  24906. const t = this.getSheetEditor(e);
  24907. return t && t.model ? t.model.attributes.rootTopic : null
  24908. }
  24909. getResourceUrlPrefix() {
  24910. const e = this.getReadonlyWorkbook();
  24911. return e && e.resourceUrlPrefix
  24912. }
  24913. getTopicViewBackgroundColor(e) {
  24914. const t = this.getSheetEditor(e);
  24915. if (!t)
  24916. return;
  24917. const n = t.getSheetView();
  24918. return n && n.figure && n.figure.backgroundColor ? n.figure.backgroundColor : void 0
  24919. }
  24920. getTopicImageSize(e, t) {
  24921. const n = this.getSheetEditor(t);
  24922. if (!n)
  24923. return;
  24924. const r = n.getComponentViewById(e);
  24925. if (!r)
  24926. return;
  24927. let i = 0
  24928. , o = 0;
  24929. if (r && r.topicView && r.topicView.image && r.topicView.image.figure && r.topicView.image.figure.originalSize) {
  24930. const e = r.topicView.image.figure.originalSize;
  24931. i = e.width,
  24932. o = e.height
  24933. }
  24934. return {
  24935. width: i,
  24936. height: o
  24937. }
  24938. }
  24939. getMapImage(e, t) {
  24940. const n = this.getSheetEditor(t);
  24941. return n ? n.exportImage({
  24942. format: "SVG"
  24943. }).then(t=>({
  24944. width: t.width,
  24945. height: t.height,
  24946. svgString: t.data,
  24947. backgroundColor: e
  24948. })) : null
  24949. }
  24950. }
  24951. class m extends f {
  24952. init(e, t) {
  24953. return Object(i.a)(this, void 0, void 0, (function*() {
  24954. this.state.value.readonlyWorkbook.value && (console.warn("A workbook already activated, closing .."),
  24955. this.state.value.readonlyWorkbook.value.close());
  24956. const n = yield u(t, e);
  24957. if (n) {
  24958. this.state.value.readonlyWorkbook.value = n,
  24959. this.state.value.sheets = n.model.sheets.map(e=>({
  24960. title: e.title,
  24961. id: e.id
  24962. }));
  24963. const e = n.workbookEditor
  24964. , t = window.Snowbrush
  24965. , r = ()=>{
  24966. const t = e.getCurrentSheetEditor();
  24967. t && (this.state.value.zoomScale = t.getSVGView().getScale())
  24968. }
  24969. , o = ()=>{
  24970. const t = e.getCurrentSheetEditor();
  24971. t && (this.state.value.currentSheetId = t.model.getId())
  24972. }
  24973. , a = ()=>{
  24974. const n = e.getCurrentSheetEditor();
  24975. if (!n)
  24976. return;
  24977. const r = n.model.getId()
  24978. , i = e.getComponentViewById(r);
  24979. i && (this.state.value.currentSheetBackgroundColor = t.utils.styleManager.getStyleValue(i, "svg:fill"))
  24980. }
  24981. , s = ()=>Object(i.a)(this, void 0, void 0, (function*() {
  24982. yield new Promise(e=>setTimeout(e));
  24983. const t = e.getCurrentSheetEditor();
  24984. if (t) {
  24985. const e = t.getContentBound();
  24986. this.state.value.firstSheetContentBounds.height = e.height,
  24987. this.state.value.firstSheetContentBounds.width = e.width
  24988. }
  24989. }
  24990. ));
  24991. e.on(t.constant.EVENTS.SCALE_CHANGED, ()=>{
  24992. r()
  24993. }
  24994. ),
  24995. e.on(t.constant.EVENTS.SHEET_SWITCHED, ()=>{
  24996. r(),
  24997. o(),
  24998. a()
  24999. }
  25000. ),
  25001. n.switchSheetTo(0),
  25002. r(),
  25003. o(),
  25004. s(),
  25005. e.onEvent("click", t.constant.VIEW_TYPE.INFORMATION_ICON, e=>{
  25006. let n = null
  25007. , r = e.sbView.parent().model.get("id");
  25008. const i = e.sbView && e.sbView.iconType;
  25009. i && (i === t.constant.VIEW_TYPE.NOTE ? (r = e.sbView.parent().model.getId(),
  25010. n = "notes") : i === t.constant.VIEW_TYPE.HREF ? n = "hyperlink" : "jump" === i ? n = "topiclink" : i == t.constant.VIEW_TYPE.COMMENT || t.constant.VIEW_TYPE.TASK == i ? n = "comment" : i === t.constant.VIEW_TYPE.ATTACHMENT ? n = "attachment" : i === t.constant.VIEW_TYPE.FILE ? n = "file" : i === t.constant.VIEW_TYPE.INFO_MORE ? n = "info-more" : i === t.constant.VIEW_TYPE.AUDIO ? n = "audio-note" : console.warn("Unprocessed iconType " + i)),
  25011. n && r && (this.state.value.events.click = {
  25012. triggerId: t.utils.UUID(),
  25013. currentTargetId: r,
  25014. clientX: e.clientX,
  25015. clientY: e.clientY,
  25016. currentTargetType: n
  25017. })
  25018. }
  25019. ),
  25020. this.unlistenFullscreenEvents = Object(p.onFullScreenChanged)(()=>{
  25021. this.state.value.isFullscreen = Object(p.isFullScreen)()
  25022. }
  25023. ),
  25024. this.state.value.isReady = !0
  25025. }
  25026. }
  25027. ))
  25028. }
  25029. getReadonlyWorkbook() {
  25030. if (this.state.value.readonlyWorkbook.value)
  25031. return this.state.value.readonlyWorkbook.value;
  25032. throw new Error("Readonly workbook are not initialized!")
  25033. }
  25034. zoomScale(e) {
  25035. const {offset: t} = e
  25036. , n = this.getReadonlyWorkbook()
  25037. , r = n.workbookEditor.getCurrentSheetEditor().getSVGView().getScale()
  25038. , i = [...new Set(c.PresetZoomScales.concat([r]))].sort((e,t)=>e > t ? 1 : -1);
  25039. return n.zoom(i[i.indexOf(r) + t] || r)
  25040. }
  25041. execAction(e, t) {
  25042. const n = this.getReadonlyWorkbook().workbookEditor;
  25043. let r = (t && t.targetIds && t.targetIds.slice(0) || []).map(e=>n.getComponentViewById(e)).filter(Boolean);
  25044. return Array.isArray(r) && r.length || (r = n.getSelections()),
  25045. n.execAction.apply(n, [e, Object.assign(Object.assign({}, t), {
  25046. targets: r
  25047. })])
  25048. }
  25049. zoom(e) {
  25050. this.getReadonlyWorkbook().zoom(e)
  25051. }
  25052. zoomIn() {
  25053. this.zoomScale({
  25054. offset: -1
  25055. })
  25056. }
  25057. zoomOut() {
  25058. this.zoomScale({
  25059. offset: 1
  25060. })
  25061. }
  25062. fitMap() {
  25063. const e = window.Snowbrush;
  25064. this.execAction(e.constant.ACTION_NAMES.FIT_MAP)
  25065. }
  25066. switchSheet(e) {
  25067. const t = this.getReadonlyWorkbook()
  25068. , n = this.state.value.sheets.findIndex(t=>t.id === e);
  25069. -1 !== n ? t.workbookEditor.switchTo(n) : console.error("Sheet not found!", e)
  25070. }
  25071. moveViewport(e) {
  25072. const t = window.Snowbrush;
  25073. return this.execAction(t.constant.ACTION_NAMES.MOVE_VIEWPORT, e)
  25074. }
  25075. openWithApp(e) {
  25076. return Object(i.a)(this, void 0, void 0, (function*() {
  25077. const t = window.navigator.userAgent.toLowerCase()
  25078. , n = ["mobile", "android", "ios"].some(e=>t.includes(e));
  25079. document.location.href = n ? `xmind://${location.hostname}/openFile?url=${encodeURIComponent(e)}&name=${encodeURIComponent(d.b.name)}` : "xmind-zen://editor/open-url?url=" + encodeURIComponent(e)
  25080. }
  25081. ))
  25082. }
  25083. openHref(e) {
  25084. return Object(i.a)(this, void 0, void 0, (function*() {
  25085. const t = window.Snowbrush;
  25086. if (e.startsWith("xmind:#")) {
  25087. const n = e.replace("xmind:#", "");
  25088. this.execAction(t.constant.ACTION_NAMES.SELECT_TOPIC_BY_ID, {
  25089. componentId: n,
  25090. callback: ({reject: e})=>{
  25091. e && alert("The target topic may have been deleted.")
  25092. }
  25093. })
  25094. } else
  25095. e.startsWith("file:") || e.startsWith("http:") || e.startsWith("https:") ? window.open(e) : window.location.href = e
  25096. }
  25097. ))
  25098. }
  25099. destroy() {
  25100. return Object(i.a)(this, void 0, void 0, (function*() {
  25101. this.unlistenFullscreenEvents && this.unlistenFullscreenEvents();
  25102. this.getReadonlyWorkbook().close()
  25103. }
  25104. ))
  25105. }
  25106. requestFullscreen() {
  25107. Object(p.requestFullScreen)(document.body)
  25108. }
  25109. exitFullscreen() {
  25110. Object(p.exitFullScreen)()
  25111. }
  25112. toggleFullscreen() {
  25113. Object(p.isFullScreen)() ? this.exitFullscreen() : this.requestFullscreen()
  25114. }
  25115. openEmbedCodeDialog() {
  25116. const e = this.state.value.firstSheetContentBounds.height / this.state.value.firstSheetContentBounds.width
  25117. , t = Math.min(750, this.state.value.firstSheetContentBounds.width)
  25118. , n = Math.min(Math.max(422, t * e), 1e3)
  25119. , r = (location.pathname.match(/^\/(m|embed)\/(([0-9A-Za-z])+)/) || [])[2]
  25120. , o = document.createElement("textarea");
  25121. o.readOnly = !0,
  25122. o.classList.add("share-embed-code-textarea"),
  25123. o.innerText = `<iframe src='https://www.xmind.app/embed/${r}/' width='${t.toFixed(0)}' height='${n.toFixed(0)}' frameborder='0' scrolling='no' allowfullscreen="true"></iframe>`;
  25124. const a = new window.utils.Dialog({
  25125. title: "Embed Code",
  25126. contents: [o, '<span class="form-text text-muted">Copy the code to embed this map into your article. The embed map can even be zoomed in / out.</span>'],
  25127. confirmText: "COPY TO CLIPBOARD",
  25128. confirmAction: ()=>Object(i.a)(this, void 0, void 0, (function*() {
  25129. o.select(),
  25130. o.setSelectionRange(0, o.value.length),
  25131. document.execCommand("copy")
  25132. }
  25133. )),
  25134. closeAction(e) {
  25135. return Object(i.a)(this, void 0, void 0, (function*() {
  25136. e.hide()
  25137. }
  25138. ))
  25139. }
  25140. });
  25141. a.$cancel.hide(),
  25142. a.show()
  25143. }
  25144. }
  25145. class v extends f {
  25146. }
  25147. const y = ()=>{
  25148. const e = Object(r.ref)({
  25149. isReady: !1,
  25150. isFullscreen: !1,
  25151. readonlyWorkbook: Object(p.nonReactive)(void 0),
  25152. zoomScale: 100,
  25153. sheets: [],
  25154. currentSheetId: "",
  25155. currentSheetBackgroundColor: "",
  25156. events: {
  25157. click: {
  25158. triggerId: "",
  25159. clientX: 0,
  25160. clientY: 0,
  25161. currentTargetId: "",
  25162. currentTargetType: null
  25163. }
  25164. },
  25165. firstSheetContentBounds: {
  25166. width: 720,
  25167. height: 360
  25168. }
  25169. })
  25170. , t = new m(e)
  25171. , n = new g(e)
  25172. , i = Object(r.ref)({
  25173. isWorkbookLoading: !0,
  25174. fileDownloadURL: "",
  25175. fileSize: 0
  25176. });
  25177. return {
  25178. workbook: {
  25179. state: e,
  25180. actions: t,
  25181. getters: n
  25182. },
  25183. frame: {
  25184. state: i,
  25185. actions: new v(i)
  25186. }
  25187. }
  25188. }
  25189. ;
  25190. o.default.use(r.default);
  25191. const b = ()=>{
  25192. const e = y();
  25193. return (e=>{
  25194. Object(r.watch)(()=>e.workbook.state.value.events.click, (t,n)=>Object(i.a)(void 0, void 0, void 0, (function*() {
  25195. if (t.triggerId && t.triggerId !== n.triggerId)
  25196. return "hyperlink" === t.currentTargetType || "topiclink" === t.currentTargetType ? e.workbook.actions.openHref(e.workbook.getters.getHrefById(t.currentTargetId)) : void 0
  25197. }
  25198. )))
  25199. }
  25200. )(e),
  25201. (e=>{
  25202. const t = window.navigator.userAgent.toLowerCase();
  25203. t.includes("safari") && !t.includes("mobile") && (document.addEventListener("gesturestart", e=>{
  25204. e.preventDefault(),
  25205. e.stopPropagation(),
  25206. e.stopImmediatePropagation()
  25207. }
  25208. ),
  25209. document.addEventListener("gesturechange", e=>{
  25210. e.preventDefault(),
  25211. e.stopPropagation(),
  25212. e.stopImmediatePropagation()
  25213. }
  25214. ),
  25215. document.addEventListener("gestureend", e=>{
  25216. e.preventDefault(),
  25217. e.stopPropagation(),
  25218. e.stopImmediatePropagation()
  25219. }
  25220. ))
  25221. }
  25222. )(),
  25223. {
  25224. store: e
  25225. }
  25226. }
  25227. },
  25228. 3: function(e, t, n) {
  25229. "use strict";
  25230. function r(e, t) {
  25231. for (var n = [], r = {}, i = 0; i < t.length; i++) {
  25232. var o = t[i]
  25233. , a = o[0]
  25234. , s = {
  25235. id: e + ":" + i,
  25236. css: o[1],
  25237. media: o[2],
  25238. sourceMap: o[3]
  25239. };
  25240. r[a] ? r[a].parts.push(s) : n.push(r[a] = {
  25241. id: a,
  25242. parts: [s]
  25243. })
  25244. }
  25245. return n
  25246. }
  25247. n.r(t),
  25248. n.d(t, "default", (function() {
  25249. return h
  25250. }
  25251. ));
  25252. var i = "undefined" != typeof document;
  25253. if ("undefined" != typeof DEBUG && DEBUG && !i)
  25254. throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");
  25255. var o = {}
  25256. , a = i && (document.head || document.getElementsByTagName("head")[0])
  25257. , s = null
  25258. , l = 0
  25259. , u = !1
  25260. , c = function() {}
  25261. , d = null
  25262. , f = "undefined" != typeof navigator && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase());
  25263. function h(e, t, n, i) {
  25264. u = n,
  25265. d = i || {};
  25266. var a = r(e, t);
  25267. return p(a),
  25268. function(t) {
  25269. for (var n = [], i = 0; i < a.length; i++) {
  25270. var s = a[i];
  25271. (l = o[s.id]).refs--,
  25272. n.push(l)
  25273. }
  25274. t ? p(a = r(e, t)) : a = [];
  25275. for (i = 0; i < n.length; i++) {
  25276. var l;
  25277. if (0 === (l = n[i]).refs) {
  25278. for (var u = 0; u < l.parts.length; u++)
  25279. l.parts[u]();
  25280. delete o[l.id]
  25281. }
  25282. }
  25283. }
  25284. }
  25285. function p(e) {
  25286. for (var t = 0; t < e.length; t++) {
  25287. var n = e[t]
  25288. , r = o[n.id];
  25289. if (r) {
  25290. r.refs++;
  25291. for (var i = 0; i < r.parts.length; i++)
  25292. r.parts[i](n.parts[i]);
  25293. for (; i < n.parts.length; i++)
  25294. r.parts.push(m(n.parts[i]));
  25295. r.parts.length > n.parts.length && (r.parts.length = n.parts.length)
  25296. } else {
  25297. var a = [];
  25298. for (i = 0; i < n.parts.length; i++)
  25299. a.push(m(n.parts[i]));
  25300. o[n.id] = {
  25301. id: n.id,
  25302. refs: 1,
  25303. parts: a
  25304. }
  25305. }
  25306. }
  25307. }
  25308. function g() {
  25309. var e = document.createElement("style");
  25310. return e.type = "text/css",
  25311. a.appendChild(e),
  25312. e
  25313. }
  25314. function m(e) {
  25315. var t, n, r = document.querySelector('style[data-vue-ssr-id~="' + e.id + '"]');
  25316. if (r) {
  25317. if (u)
  25318. return c;
  25319. r.parentNode.removeChild(r)
  25320. }
  25321. if (f) {
  25322. var i = l++;
  25323. r = s || (s = g()),
  25324. t = b.bind(null, r, i, !1),
  25325. n = b.bind(null, r, i, !0)
  25326. } else
  25327. r = g(),
  25328. t = _.bind(null, r),
  25329. n = function() {
  25330. r.parentNode.removeChild(r)
  25331. }
  25332. ;
  25333. return t(e),
  25334. function(r) {
  25335. if (r) {
  25336. if (r.css === e.css && r.media === e.media && r.sourceMap === e.sourceMap)
  25337. return;
  25338. t(e = r)
  25339. } else
  25340. n()
  25341. }
  25342. }
  25343. var v, y = (v = [],
  25344. function(e, t) {
  25345. return v[e] = t,
  25346. v.filter(Boolean).join("\n")
  25347. }
  25348. );
  25349. function b(e, t, n, r) {
  25350. var i = n ? "" : r.css;
  25351. if (e.styleSheet)
  25352. e.styleSheet.cssText = y(t, i);
  25353. else {
  25354. var o = document.createTextNode(i)
  25355. , a = e.childNodes;
  25356. a[t] && e.removeChild(a[t]),
  25357. a.length ? e.insertBefore(o, a[t]) : e.appendChild(o)
  25358. }
  25359. }
  25360. function _(e, t) {
  25361. var n = t.css
  25362. , r = t.media
  25363. , i = t.sourceMap;
  25364. if (r && e.setAttribute("media", r),
  25365. d.ssrId && e.setAttribute("data-vue-ssr-id", t.id),
  25366. i && (n += "\n/*# sourceURL=" + i.sources[0] + " */",
  25367. n += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(i)))) + " */"),
  25368. e.styleSheet)
  25369. e.styleSheet.cssText = n;
  25370. else {
  25371. for (; e.firstChild; )
  25372. e.removeChild(e.firstChild);
  25373. e.appendChild(document.createTextNode(n))
  25374. }
  25375. }
  25376. },
  25377. 308: function(e, t, n) {
  25378. "use strict";
  25379. n(216)
  25380. },
  25381. 309: function(e, t, n) {
  25382. (e.exports = n(2)(!1)).push([e.i, ".xm-color-g10[data-v-41ebd106]{color:#fcfcfc}.xm-color-g20[data-v-41ebd106]{color:#f9f9f9}.xm-color-g30[data-v-41ebd106]{color:#ebebeb}.xm-color-g40[data-v-41ebd106]{color:#d6d6d6}.xm-color-g50[data-v-41ebd106]{color:#b2b2b2}.xm-color-g60[data-v-41ebd106]{color:#8c8c8c}.xm-color-g70[data-v-41ebd106]{color:#666}.xm-color-g80[data-v-41ebd106]{color:#2b2b2b}.xm-color-g90[data-v-41ebd106]{color:#111}.share-map__loading[data-v-41ebd106]{height:100%;width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column}.share-map__loading .dot-animate[data-v-41ebd106]{display:inline-block;overflow:visible;width:1px}.share-map__loading .spinner>*[data-v-41ebd106]{animation:uk-spinner-rotate-data-v-41ebd106 1.4s linear infinite}@keyframes uk-spinner-rotate-data-v-41ebd106{0%{transform:rotate(0deg)}100%{transform:rotate(270deg)}}.share-map__loading .spinner>*>*[data-v-41ebd106]{stroke-dasharray:88px;stroke-dashoffset:0;transform-origin:center;animation:uk-spinner-dash-data-v-41ebd106 1.4s ease-in-out infinite;stroke-width:1;stroke-linecap:round}@keyframes uk-spinner-dash-data-v-41ebd106{0%{stroke-dashoffset:88px}50%{stroke-dashoffset:22px;transform:rotate(135deg)}100%{stroke-dashoffset:88px;transform:rotate(450deg)}}\n", ""])
  25383. },
  25384. 310: function(e, t, n) {
  25385. "use strict";
  25386. n(217)
  25387. },
  25388. 311: function(e, t, n) {
  25389. (e.exports = n(2)(!1)).push([e.i, ".xm-color-g10[data-v-700a78a7]{color:#fcfcfc}.xm-color-g20[data-v-700a78a7]{color:#f9f9f9}.xm-color-g30[data-v-700a78a7]{color:#ebebeb}.xm-color-g40[data-v-700a78a7]{color:#d6d6d6}.xm-color-g50[data-v-700a78a7]{color:#b2b2b2}.xm-color-g60[data-v-700a78a7]{color:#8c8c8c}.xm-color-g70[data-v-700a78a7]{color:#666}.xm-color-g80[data-v-700a78a7]{color:#2b2b2b}.xm-color-g90[data-v-700a78a7]{color:#111}.dropdown-toggle[data-v-700a78a7]{min-width:80px}\n", ""])
  25390. },
  25391. 312: function(e, t, n) {
  25392. "use strict";
  25393. n(218)
  25394. },
  25395. 313: function(e, t, n) {
  25396. (e.exports = n(2)(!1)).push([e.i, ".xm-color-g10[data-v-61c0885c]{color:#fcfcfc}.xm-color-g20[data-v-61c0885c]{color:#f9f9f9}.xm-color-g30[data-v-61c0885c]{color:#ebebeb}.xm-color-g40[data-v-61c0885c]{color:#d6d6d6}.xm-color-g50[data-v-61c0885c]{color:#b2b2b2}.xm-color-g60[data-v-61c0885c]{color:#8c8c8c}.xm-color-g70[data-v-61c0885c]{color:#666}.xm-color-g80[data-v-61c0885c]{color:#2b2b2b}.xm-color-g90[data-v-61c0885c]{color:#111}\n", ""])
  25397. },
  25398. 314: function(e, t, n) {
  25399. "use strict";
  25400. n(219)
  25401. },
  25402. 315: function(e, t, n) {
  25403. (e.exports = n(2)(!1)).push([e.i, ".xm-color-g10[data-v-40b1f39d]{color:#fcfcfc}.xm-color-g20[data-v-40b1f39d]{color:#f9f9f9}.xm-color-g30[data-v-40b1f39d]{color:#ebebeb}.xm-color-g40[data-v-40b1f39d]{color:#d6d6d6}.xm-color-g50[data-v-40b1f39d]{color:#b2b2b2}.xm-color-g60[data-v-40b1f39d]{color:#8c8c8c}.xm-color-g70[data-v-40b1f39d]{color:#666}.xm-color-g80[data-v-40b1f39d]{color:#2b2b2b}.xm-color-g90[data-v-40b1f39d]{color:#111}.share-map-menu__social a[data-v-40b1f39d]{width:100%;white-space:nowrap}\n", ""])
  25404. },
  25405. 316: function(e, t, n) {
  25406. "use strict";
  25407. n(220)
  25408. },
  25409. 317: function(e, t, n) {
  25410. (e.exports = n(2)(!1)).push([e.i, ".xm-color-g10[data-v-3c5647e8]{color:#fcfcfc}.xm-color-g20[data-v-3c5647e8]{color:#f9f9f9}.xm-color-g30[data-v-3c5647e8]{color:#ebebeb}.xm-color-g40[data-v-3c5647e8]{color:#d6d6d6}.xm-color-g50[data-v-3c5647e8]{color:#b2b2b2}.xm-color-g60[data-v-3c5647e8]{color:#8c8c8c}.xm-color-g70[data-v-3c5647e8]{color:#666}.xm-color-g80[data-v-3c5647e8]{color:#2b2b2b}.xm-color-g90[data-v-3c5647e8]{color:#111}a[data-v-3c5647e8]{display:block;width:100%;white-space:nowrap}svg[data-v-3c5647e8]{width:16px;height:16px}.muted[data-v-3c5647e8]{opacity:0.6}\n", ""])
  25411. },
  25412. 318: function(e, t, n) {
  25413. "use strict";
  25414. n(221)
  25415. },
  25416. 319: function(e, t, n) {
  25417. (e.exports = n(2)(!1)).push([e.i, '.xm-color-g10[data-v-6c7a3c30]{color:#fcfcfc}.xm-color-g20[data-v-6c7a3c30]{color:#f9f9f9}.xm-color-g30[data-v-6c7a3c30]{color:#ebebeb}.xm-color-g40[data-v-6c7a3c30]{color:#d6d6d6}.xm-color-g50[data-v-6c7a3c30]{color:#b2b2b2}.xm-color-g60[data-v-6c7a3c30]{color:#8c8c8c}.xm-color-g70[data-v-6c7a3c30]{color:#666}.xm-color-g80[data-v-6c7a3c30]{color:#2b2b2b}.xm-color-g90[data-v-6c7a3c30]{color:#111}.popover-body[data-v-6c7a3c30]{padding:0;margin-top:8px;transform:translateX(-50%);box-shadow:0 4px 18px 0 rgba(117,135,149,0.3),0 0 0 .5px #D8D8D8}.popover-body[data-v-6c7a3c30]::after{content:" ";display:block;position:absolute;width:0;height:0;border-style:solid}.popover-body[data-v-6c7a3c30]::after{bottom:100%;left:50%;margin-left:-8px;border-color:transparent;border-width:8px;border-bottom-color:#fff}\n', ""])
  25418. },
  25419. 32: function(e, t, n) {
  25420. "use strict";
  25421. Object.defineProperty(t, "__esModule", {
  25422. value: !0
  25423. }),
  25424. t.defaultDimension = void 0,
  25425. t.defaultDimension = {
  25426. vPaddingXXSmall: {
  25427. pct: 1,
  25428. unit: "vmin"
  25429. },
  25430. vPaddingXSmall: {
  25431. pct: 2,
  25432. unit: "vmin"
  25433. },
  25434. vPaddingSmall: {
  25435. pct: 4,
  25436. unit: "vmin"
  25437. },
  25438. vPaddingNormal: {
  25439. pct: 6,
  25440. unit: "vmin"
  25441. },
  25442. vPaddingMedium: {
  25443. pct: 8,
  25444. unit: "vmin"
  25445. },
  25446. vPaddingLarge: {
  25447. pct: 16,
  25448. unit: "vmin"
  25449. },
  25450. vPaddingXLarge: {
  25451. pct: 25,
  25452. unit: "vmin"
  25453. },
  25454. hPaddingXSmall: {
  25455. pct: 1,
  25456. unit: "vmin"
  25457. },
  25458. hPaddingSmall: {
  25459. pct: 2,
  25460. unit: "vmin"
  25461. },
  25462. hPaddingNormal: {
  25463. pct: 3,
  25464. unit: "vmin"
  25465. },
  25466. hPaddingMedium: {
  25467. pct: 4,
  25468. unit: "vmin"
  25469. },
  25470. hPaddingLarge: {
  25471. pct: 5,
  25472. unit: "vmin"
  25473. },
  25474. hPaddingXLarge: {
  25475. pct: 7,
  25476. unit: "vmin"
  25477. },
  25478. hSlidePadding: {
  25479. pct: 100 / 15,
  25480. unit: "vw"
  25481. },
  25482. vSlidePadding: {
  25483. pct: 12.5,
  25484. unit: "vh"
  25485. },
  25486. scrollFaderHeight: {
  25487. pct: 12.5,
  25488. unit: "vh"
  25489. },
  25490. topicSlideTitleFontSizeLarge: {
  25491. pct: 15,
  25492. unit: "vmin"
  25493. },
  25494. topicSlideTitleFontSizeMedium: {
  25495. pct: 8,
  25496. unit: "vmin"
  25497. },
  25498. topicSlideTitleFontSizeSmall: {
  25499. pct: 5,
  25500. unit: "vmin"
  25501. },
  25502. topicSlideTitleScrollFaderHeight: {
  25503. pct: 12.5,
  25504. unit: "vh"
  25505. },
  25506. topicSlideSingleLineTitleAlignment: "center",
  25507. topicSlideMultilineTitleAlignment: "leading",
  25508. topicSlideLabelFontSize: {
  25509. pct: 3,
  25510. unit: "vmin"
  25511. },
  25512. topicSlideLabelMinWidth: {
  25513. pct: 9,
  25514. unit: "vmin"
  25515. },
  25516. topicSlideNoteFontSize: {
  25517. pct: 4,
  25518. unit: "vmin"
  25519. },
  25520. topicSlideCalloutFontSize: {
  25521. pct: 4,
  25522. unit: "vmin"
  25523. },
  25524. imageTopicSlideSmallImageDefiningWidth: 400,
  25525. imageTopicSlideHLayoutImageZoneWidth: {
  25526. pct: 700 / 15,
  25527. unit: "vw"
  25528. },
  25529. imageTopicSlideHLayoutImageZoneWidthForSmallImage: {
  25530. pct: 20,
  25531. unit: "vw"
  25532. },
  25533. imageTopicSlideHLayoutSpacingAroundImage: {
  25534. pct: 100 / 15,
  25535. unit: "vw"
  25536. },
  25537. imageTopicSlideHLayoutTitleFontSizeLarge: {
  25538. pct: 10,
  25539. unit: "vmin"
  25540. },
  25541. imageTopicSlideHLayoutTitleFontSizeMedium: {
  25542. pct: 8,
  25543. unit: "vmin"
  25544. },
  25545. imageTopicSlideHLayoutTitleFontSizeSmall: {
  25546. pct: 7,
  25547. unit: "vmin"
  25548. },
  25549. imageTopicSlideVLayoutImageZoneHeight: {
  25550. pct: 62.5,
  25551. unit: "vh"
  25552. },
  25553. imageTopicSlideVLayoutImageZoneHeightForSmallImage: {
  25554. pct: 25,
  25555. unit: "vh"
  25556. },
  25557. imageTopicSlideVLayoutTitleFontSizeLarge: {
  25558. pct: 7,
  25559. unit: "vmin"
  25560. },
  25561. imageTopicSlideVLayoutTitleFontSizeMedium: {
  25562. pct: 6,
  25563. unit: "vmin"
  25564. },
  25565. imageTopicSlideVLayoutTitleFontSizeSmall: {
  25566. pct: 4.5,
  25567. unit: "vmin"
  25568. },
  25569. headerZoneWidth: {
  25570. pct: 20,
  25571. unit: "vw"
  25572. },
  25573. headerZoneHeight: {
  25574. pct: 2.5,
  25575. unit: "vh"
  25576. },
  25577. headerTextFontSize: {
  25578. pct: 2.5,
  25579. unit: "vmin"
  25580. },
  25581. headerTextLeftMargin: {
  25582. pct: 5,
  25583. unit: "vmin"
  25584. },
  25585. headerMarkerRightMargin: {
  25586. pct: .375,
  25587. unit: "vmin"
  25588. },
  25589. headerLineTopMargin: {
  25590. pct: 1,
  25591. unit: "vmin"
  25592. },
  25593. headerLineLength: {
  25594. pct: 5,
  25595. unit: "vmin"
  25596. },
  25597. headerLineWidth: 4,
  25598. braceListSlideParentTopicMaxFontSize: {
  25599. pct: 10,
  25600. unit: "vmin"
  25601. },
  25602. braceListSlideParentTopicMinFontSize: {
  25603. pct: 7,
  25604. unit: "vmin"
  25605. },
  25606. braceListSlideSubtopicMaxFontSize: {
  25607. pct: 8,
  25608. unit: "vmin"
  25609. },
  25610. braceListSlideSubtopicMinFontSize: {
  25611. pct: 4.5,
  25612. unit: "vmin"
  25613. },
  25614. braceListSlideScrollFaderHeight: {
  25615. pct: 25,
  25616. unit: "vh"
  25617. },
  25618. bulletListSlideParentTopicDefaultFontSize: {
  25619. pct: 11,
  25620. unit: "vmin"
  25621. },
  25622. bulletListSlideSubtopicMaxFontSize: {
  25623. pct: 6,
  25624. unit: "vmin"
  25625. },
  25626. bulletListSlideSubtopicMinFontSize: {
  25627. pct: 4.5,
  25628. unit: "vmin"
  25629. },
  25630. lyricListSlideParentTopicDefaultFontSize: {
  25631. pct: 11,
  25632. unit: "vmin"
  25633. },
  25634. lyricListSlideSubtopicMaxFontSize: {
  25635. pct: 6,
  25636. unit: "vmin"
  25637. },
  25638. lyricListSlideSubtopicMinFontSize: {
  25639. pct: 4.5,
  25640. unit: "vmin"
  25641. },
  25642. treeChartSlideParentTopicMaxFontSize: {
  25643. pct: 14,
  25644. unit: "vmin"
  25645. },
  25646. treeChartSlideParentTopicMinFontSize: {
  25647. pct: 11,
  25648. unit: "vmin"
  25649. },
  25650. treeChartSlideSubtopicMaxFontSize: {
  25651. pct: 8,
  25652. unit: "vmin"
  25653. },
  25654. treeChartSlideSubtopicMinFontSize: {
  25655. pct: 7,
  25656. unit: "vmin"
  25657. },
  25658. summarySlideTopicMaxFontSize: {
  25659. pct: 10,
  25660. unit: "vmin"
  25661. },
  25662. summarySlideTopicMinFontSize: {
  25663. pct: 6,
  25664. unit: "vmin"
  25665. },
  25666. summarySlideTopicMarkerRightMargin: {
  25667. pct: 1.2,
  25668. unit: "vmin"
  25669. },
  25670. summarySlideSubtopicFontSize: {
  25671. pct: 8,
  25672. unit: "vmin"
  25673. },
  25674. summarySlideSubtopicMarkerRightMargin: {
  25675. pct: 1.2,
  25676. unit: "vmin"
  25677. },
  25678. summarySlideLineHeight: {
  25679. pct: 3.125,
  25680. unit: "vh"
  25681. },
  25682. summarySlideLineStrokeWidth: 5,
  25683. summaryScrollFaderHeight: {
  25684. pct: 12.5,
  25685. unit: "vh"
  25686. },
  25687. lyricListSlideArrowWidth: 46,
  25688. lyricListSlideArrowHeight: 36,
  25689. lyricListSlideArrowCornerRadius: 4,
  25690. treeChartBranchStrokeWidth: 8,
  25691. onlyChildSlideSeparatorLineWidth: 4,
  25692. maxMarkerCount: 3,
  25693. hitRegionHPadding: {
  25694. pct: 1,
  25695. unit: "vmin"
  25696. },
  25697. hitRegionVPadding: {
  25698. pct: 1,
  25699. unit: "vmin"
  25700. }
  25701. }
  25702. },
  25703. 320: function(e, t, n) {
  25704. "use strict";
  25705. n(222)
  25706. },
  25707. 321: function(e, t, n) {
  25708. (e.exports = n(2)(!1)).push([e.i, ".xm-color-g10[data-v-3759f7df]{color:#fcfcfc}.xm-color-g20[data-v-3759f7df]{color:#f9f9f9}.xm-color-g30[data-v-3759f7df]{color:#ebebeb}.xm-color-g40[data-v-3759f7df]{color:#d6d6d6}.xm-color-g50[data-v-3759f7df]{color:#b2b2b2}.xm-color-g60[data-v-3759f7df]{color:#8c8c8c}.xm-color-g70[data-v-3759f7df]{color:#666}.xm-color-g80[data-v-3759f7df]{color:#2b2b2b}.xm-color-g90[data-v-3759f7df]{color:#111}.information-more-item[data-v-3759f7df]{line-height:34px}.information-more-item .information-more-item__icon[data-v-3759f7df]{width:14px;height:14px}.information-more-item .information-more-item__title[data-v-3759f7df]{line-height:34px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block}.information-more-item .information-more-item__delete-button[data-v-3759f7df]{line-height:34px;min-width:26px;visibility:hidden;opacity:0;transition:.2s ease opacity}.information-more-item:hover .information-more-item__delete-button[data-v-3759f7df]{visibility:visible;opacity:1}.btn[data-v-3759f7df]{text-transform:none}\n", ""])
  25709. },
  25710. 322: function(e, t, n) {
  25711. "use strict";
  25712. n(223)
  25713. },
  25714. 323: function(e, t, n) {
  25715. (e.exports = n(2)(!1)).push([e.i, '.xm-color-g10{color:#fcfcfc}.xm-color-g20{color:#f9f9f9}.xm-color-g30{color:#ebebeb}.xm-color-g40{color:#d6d6d6}.xm-color-g50{color:#b2b2b2}.xm-color-g60{color:#8c8c8c}.xm-color-g70{color:#666}.xm-color-g80{color:#2b2b2b}.xm-color-g90{color:#111}[data-name*=select-box],[data-name="resize-box"],[data-name="matrix-plus-box"]{display:none}[data-name="relationship"]{pointer-events:none;user-select:none}.workbook-item::-webkit-scrollbar{display:none}\n', ""])
  25716. },
  25717. 324: function(e, t, n) {
  25718. "use strict";
  25719. (function(e) {
  25720. /*!
  25721. * The buffer module from node.js, for the browser.
  25722. *
  25723. * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
  25724. * @license MIT
  25725. */
  25726. var r = n(325)
  25727. , i = n(326)
  25728. , o = n(327);
  25729. function a() {
  25730. return l.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823
  25731. }
  25732. function s(e, t) {
  25733. if (a() < t)
  25734. throw new RangeError("Invalid typed array length");
  25735. return l.TYPED_ARRAY_SUPPORT ? (e = new Uint8Array(t)).__proto__ = l.prototype : (null === e && (e = new l(t)),
  25736. e.length = t),
  25737. e
  25738. }
  25739. function l(e, t, n) {
  25740. if (!(l.TYPED_ARRAY_SUPPORT || this instanceof l))
  25741. return new l(e,t,n);
  25742. if ("number" == typeof e) {
  25743. if ("string" == typeof t)
  25744. throw new Error("If encoding is specified then the first argument must be a string");
  25745. return d(this, e)
  25746. }
  25747. return u(this, e, t, n)
  25748. }
  25749. function u(e, t, n, r) {
  25750. if ("number" == typeof t)
  25751. throw new TypeError('"value" argument must not be a number');
  25752. return "undefined" != typeof ArrayBuffer && t instanceof ArrayBuffer ? function(e, t, n, r) {
  25753. if (t.byteLength,
  25754. n < 0 || t.byteLength < n)
  25755. throw new RangeError("'offset' is out of bounds");
  25756. if (t.byteLength < n + (r || 0))
  25757. throw new RangeError("'length' is out of bounds");
  25758. t = void 0 === n && void 0 === r ? new Uint8Array(t) : void 0 === r ? new Uint8Array(t,n) : new Uint8Array(t,n,r);
  25759. l.TYPED_ARRAY_SUPPORT ? (e = t).__proto__ = l.prototype : e = f(e, t);
  25760. return e
  25761. }(e, t, n, r) : "string" == typeof t ? function(e, t, n) {
  25762. "string" == typeof n && "" !== n || (n = "utf8");
  25763. if (!l.isEncoding(n))
  25764. throw new TypeError('"encoding" must be a valid string encoding');
  25765. var r = 0 | p(t, n)
  25766. , i = (e = s(e, r)).write(t, n);
  25767. i !== r && (e = e.slice(0, i));
  25768. return e
  25769. }(e, t, n) : function(e, t) {
  25770. if (l.isBuffer(t)) {
  25771. var n = 0 | h(t.length);
  25772. return 0 === (e = s(e, n)).length || t.copy(e, 0, 0, n),
  25773. e
  25774. }
  25775. if (t) {
  25776. if ("undefined" != typeof ArrayBuffer && t.buffer instanceof ArrayBuffer || "length"in t)
  25777. return "number" != typeof t.length || (r = t.length) != r ? s(e, 0) : f(e, t);
  25778. if ("Buffer" === t.type && o(t.data))
  25779. return f(e, t.data)
  25780. }
  25781. var r;
  25782. throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")
  25783. }(e, t)
  25784. }
  25785. function c(e) {
  25786. if ("number" != typeof e)
  25787. throw new TypeError('"size" argument must be a number');
  25788. if (e < 0)
  25789. throw new RangeError('"size" argument must not be negative')
  25790. }
  25791. function d(e, t) {
  25792. if (c(t),
  25793. e = s(e, t < 0 ? 0 : 0 | h(t)),
  25794. !l.TYPED_ARRAY_SUPPORT)
  25795. for (var n = 0; n < t; ++n)
  25796. e[n] = 0;
  25797. return e
  25798. }
  25799. function f(e, t) {
  25800. var n = t.length < 0 ? 0 : 0 | h(t.length);
  25801. e = s(e, n);
  25802. for (var r = 0; r < n; r += 1)
  25803. e[r] = 255 & t[r];
  25804. return e
  25805. }
  25806. function h(e) {
  25807. if (e >= a())
  25808. throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + a().toString(16) + " bytes");
  25809. return 0 | e
  25810. }
  25811. function p(e, t) {
  25812. if (l.isBuffer(e))
  25813. return e.length;
  25814. if ("undefined" != typeof ArrayBuffer && "function" == typeof ArrayBuffer.isView && (ArrayBuffer.isView(e) || e instanceof ArrayBuffer))
  25815. return e.byteLength;
  25816. "string" != typeof e && (e = "" + e);
  25817. var n = e.length;
  25818. if (0 === n)
  25819. return 0;
  25820. for (var r = !1; ; )
  25821. switch (t) {
  25822. case "ascii":
  25823. case "latin1":
  25824. case "binary":
  25825. return n;
  25826. case "utf8":
  25827. case "utf-8":
  25828. case void 0:
  25829. return N(e).length;
  25830. case "ucs2":
  25831. case "ucs-2":
  25832. case "utf16le":
  25833. case "utf-16le":
  25834. return 2 * n;
  25835. case "hex":
  25836. return n >>> 1;
  25837. case "base64":
  25838. return U(e).length;
  25839. default:
  25840. if (r)
  25841. return N(e).length;
  25842. t = ("" + t).toLowerCase(),
  25843. r = !0
  25844. }
  25845. }
  25846. function g(e, t, n) {
  25847. var r = !1;
  25848. if ((void 0 === t || t < 0) && (t = 0),
  25849. t > this.length)
  25850. return "";
  25851. if ((void 0 === n || n > this.length) && (n = this.length),
  25852. n <= 0)
  25853. return "";
  25854. if ((n >>>= 0) <= (t >>>= 0))
  25855. return "";
  25856. for (e || (e = "utf8"); ; )
  25857. switch (e) {
  25858. case "hex":
  25859. return A(this, t, n);
  25860. case "utf8":
  25861. case "utf-8":
  25862. return C(this, t, n);
  25863. case "ascii":
  25864. return M(this, t, n);
  25865. case "latin1":
  25866. case "binary":
  25867. return T(this, t, n);
  25868. case "base64":
  25869. return I(this, t, n);
  25870. case "ucs2":
  25871. case "ucs-2":
  25872. case "utf16le":
  25873. case "utf-16le":
  25874. return E(this, t, n);
  25875. default:
  25876. if (r)
  25877. throw new TypeError("Unknown encoding: " + e);
  25878. e = (e + "").toLowerCase(),
  25879. r = !0
  25880. }
  25881. }
  25882. function m(e, t, n) {
  25883. var r = e[t];
  25884. e[t] = e[n],
  25885. e[n] = r
  25886. }
  25887. function v(e, t, n, r, i) {
  25888. if (0 === e.length)
  25889. return -1;
  25890. if ("string" == typeof n ? (r = n,
  25891. n = 0) : n > 2147483647 ? n = 2147483647 : n < -2147483648 && (n = -2147483648),
  25892. n = +n,
  25893. isNaN(n) && (n = i ? 0 : e.length - 1),
  25894. n < 0 && (n = e.length + n),
  25895. n >= e.length) {
  25896. if (i)
  25897. return -1;
  25898. n = e.length - 1
  25899. } else if (n < 0) {
  25900. if (!i)
  25901. return -1;
  25902. n = 0
  25903. }
  25904. if ("string" == typeof t && (t = l.from(t, r)),
  25905. l.isBuffer(t))
  25906. return 0 === t.length ? -1 : y(e, t, n, r, i);
  25907. if ("number" == typeof t)
  25908. return t &= 255,
  25909. l.TYPED_ARRAY_SUPPORT && "function" == typeof Uint8Array.prototype.indexOf ? i ? Uint8Array.prototype.indexOf.call(e, t, n) : Uint8Array.prototype.lastIndexOf.call(e, t, n) : y(e, [t], n, r, i);
  25910. throw new TypeError("val must be string, number or Buffer")
  25911. }
  25912. function y(e, t, n, r, i) {
  25913. var o, a = 1, s = e.length, l = t.length;
  25914. if (void 0 !== r && ("ucs2" === (r = String(r).toLowerCase()) || "ucs-2" === r || "utf16le" === r || "utf-16le" === r)) {
  25915. if (e.length < 2 || t.length < 2)
  25916. return -1;
  25917. a = 2,
  25918. s /= 2,
  25919. l /= 2,
  25920. n /= 2
  25921. }
  25922. function u(e, t) {
  25923. return 1 === a ? e[t] : e.readUInt16BE(t * a)
  25924. }
  25925. if (i) {
  25926. var c = -1;
  25927. for (o = n; o < s; o++)
  25928. if (u(e, o) === u(t, -1 === c ? 0 : o - c)) {
  25929. if (-1 === c && (c = o),
  25930. o - c + 1 === l)
  25931. return c * a
  25932. } else
  25933. -1 !== c && (o -= o - c),
  25934. c = -1
  25935. } else
  25936. for (n + l > s && (n = s - l),
  25937. o = n; o >= 0; o--) {
  25938. for (var d = !0, f = 0; f < l; f++)
  25939. if (u(e, o + f) !== u(t, f)) {
  25940. d = !1;
  25941. break
  25942. }
  25943. if (d)
  25944. return o
  25945. }
  25946. return -1
  25947. }
  25948. function b(e, t, n, r) {
  25949. n = Number(n) || 0;
  25950. var i = e.length - n;
  25951. r ? (r = Number(r)) > i && (r = i) : r = i;
  25952. var o = t.length;
  25953. if (o % 2 != 0)
  25954. throw new TypeError("Invalid hex string");
  25955. r > o / 2 && (r = o / 2);
  25956. for (var a = 0; a < r; ++a) {
  25957. var s = parseInt(t.substr(2 * a, 2), 16);
  25958. if (isNaN(s))
  25959. return a;
  25960. e[n + a] = s
  25961. }
  25962. return a
  25963. }
  25964. function _(e, t, n, r) {
  25965. return W(N(t, e.length - n), e, n, r)
  25966. }
  25967. function w(e, t, n, r) {
  25968. return W(function(e) {
  25969. for (var t = [], n = 0; n < e.length; ++n)
  25970. t.push(255 & e.charCodeAt(n));
  25971. return t
  25972. }(t), e, n, r)
  25973. }
  25974. function S(e, t, n, r) {
  25975. return w(e, t, n, r)
  25976. }
  25977. function x(e, t, n, r) {
  25978. return W(U(t), e, n, r)
  25979. }
  25980. function k(e, t, n, r) {
  25981. return W(function(e, t) {
  25982. for (var n, r, i, o = [], a = 0; a < e.length && !((t -= 2) < 0); ++a)
  25983. n = e.charCodeAt(a),
  25984. r = n >> 8,
  25985. i = n % 256,
  25986. o.push(i),
  25987. o.push(r);
  25988. return o
  25989. }(t, e.length - n), e, n, r)
  25990. }
  25991. function I(e, t, n) {
  25992. return 0 === t && n === e.length ? r.fromByteArray(e) : r.fromByteArray(e.slice(t, n))
  25993. }
  25994. function C(e, t, n) {
  25995. n = Math.min(e.length, n);
  25996. for (var r = [], i = t; i < n; ) {
  25997. var o, a, s, l, u = e[i], c = null, d = u > 239 ? 4 : u > 223 ? 3 : u > 191 ? 2 : 1;
  25998. if (i + d <= n)
  25999. switch (d) {
  26000. case 1:
  26001. u < 128 && (c = u);
  26002. break;
  26003. case 2:
  26004. 128 == (192 & (o = e[i + 1])) && (l = (31 & u) << 6 | 63 & o) > 127 && (c = l);
  26005. break;
  26006. case 3:
  26007. o = e[i + 1],
  26008. a = e[i + 2],
  26009. 128 == (192 & o) && 128 == (192 & a) && (l = (15 & u) << 12 | (63 & o) << 6 | 63 & a) > 2047 && (l < 55296 || l > 57343) && (c = l);
  26010. break;
  26011. case 4:
  26012. o = e[i + 1],
  26013. a = e[i + 2],
  26014. s = e[i + 3],
  26015. 128 == (192 & o) && 128 == (192 & a) && 128 == (192 & s) && (l = (15 & u) << 18 | (63 & o) << 12 | (63 & a) << 6 | 63 & s) > 65535 && l < 1114112 && (c = l)
  26016. }
  26017. null === c ? (c = 65533,
  26018. d = 1) : c > 65535 && (c -= 65536,
  26019. r.push(c >>> 10 & 1023 | 55296),
  26020. c = 56320 | 1023 & c),
  26021. r.push(c),
  26022. i += d
  26023. }
  26024. return function(e) {
  26025. var t = e.length;
  26026. if (t <= 4096)
  26027. return String.fromCharCode.apply(String, e);
  26028. var n = ""
  26029. , r = 0;
  26030. for (; r < t; )
  26031. n += String.fromCharCode.apply(String, e.slice(r, r += 4096));
  26032. return n
  26033. }(r)
  26034. }
  26035. t.Buffer = l,
  26036. t.SlowBuffer = function(e) {
  26037. +e != e && (e = 0);
  26038. return l.alloc(+e)
  26039. }
  26040. ,
  26041. t.INSPECT_MAX_BYTES = 50,
  26042. l.TYPED_ARRAY_SUPPORT = void 0 !== e.TYPED_ARRAY_SUPPORT ? e.TYPED_ARRAY_SUPPORT : function() {
  26043. try {
  26044. var e = new Uint8Array(1);
  26045. return e.__proto__ = {
  26046. __proto__: Uint8Array.prototype,
  26047. foo: function() {
  26048. return 42
  26049. }
  26050. },
  26051. 42 === e.foo() && "function" == typeof e.subarray && 0 === e.subarray(1, 1).byteLength
  26052. } catch (e) {
  26053. return !1
  26054. }
  26055. }(),
  26056. t.kMaxLength = a(),
  26057. l.poolSize = 8192,
  26058. l._augment = function(e) {
  26059. return e.__proto__ = l.prototype,
  26060. e
  26061. }
  26062. ,
  26063. l.from = function(e, t, n) {
  26064. return u(null, e, t, n)
  26065. }
  26066. ,
  26067. l.TYPED_ARRAY_SUPPORT && (l.prototype.__proto__ = Uint8Array.prototype,
  26068. l.__proto__ = Uint8Array,
  26069. "undefined" != typeof Symbol && Symbol.species && l[Symbol.species] === l && Object.defineProperty(l, Symbol.species, {
  26070. value: null,
  26071. configurable: !0
  26072. })),
  26073. l.alloc = function(e, t, n) {
  26074. return function(e, t, n, r) {
  26075. return c(t),
  26076. t <= 0 ? s(e, t) : void 0 !== n ? "string" == typeof r ? s(e, t).fill(n, r) : s(e, t).fill(n) : s(e, t)
  26077. }(null, e, t, n)
  26078. }
  26079. ,
  26080. l.allocUnsafe = function(e) {
  26081. return d(null, e)
  26082. }
  26083. ,
  26084. l.allocUnsafeSlow = function(e) {
  26085. return d(null, e)
  26086. }
  26087. ,
  26088. l.isBuffer = function(e) {
  26089. return !(null == e || !e._isBuffer)
  26090. }
  26091. ,
  26092. l.compare = function(e, t) {
  26093. if (!l.isBuffer(e) || !l.isBuffer(t))
  26094. throw new TypeError("Arguments must be Buffers");
  26095. if (e === t)
  26096. return 0;
  26097. for (var n = e.length, r = t.length, i = 0, o = Math.min(n, r); i < o; ++i)
  26098. if (e[i] !== t[i]) {
  26099. n = e[i],
  26100. r = t[i];
  26101. break
  26102. }
  26103. return n < r ? -1 : r < n ? 1 : 0
  26104. }
  26105. ,
  26106. l.isEncoding = function(e) {
  26107. switch (String(e).toLowerCase()) {
  26108. case "hex":
  26109. case "utf8":
  26110. case "utf-8":
  26111. case "ascii":
  26112. case "latin1":
  26113. case "binary":
  26114. case "base64":
  26115. case "ucs2":
  26116. case "ucs-2":
  26117. case "utf16le":
  26118. case "utf-16le":
  26119. return !0;
  26120. default:
  26121. return !1
  26122. }
  26123. }
  26124. ,
  26125. l.concat = function(e, t) {
  26126. if (!o(e))
  26127. throw new TypeError('"list" argument must be an Array of Buffers');
  26128. if (0 === e.length)
  26129. return l.alloc(0);
  26130. var n;
  26131. if (void 0 === t)
  26132. for (t = 0,
  26133. n = 0; n < e.length; ++n)
  26134. t += e[n].length;
  26135. var r = l.allocUnsafe(t)
  26136. , i = 0;
  26137. for (n = 0; n < e.length; ++n) {
  26138. var a = e[n];
  26139. if (!l.isBuffer(a))
  26140. throw new TypeError('"list" argument must be an Array of Buffers');
  26141. a.copy(r, i),
  26142. i += a.length
  26143. }
  26144. return r
  26145. }
  26146. ,
  26147. l.byteLength = p,
  26148. l.prototype._isBuffer = !0,
  26149. l.prototype.swap16 = function() {
  26150. var e = this.length;
  26151. if (e % 2 != 0)
  26152. throw new RangeError("Buffer size must be a multiple of 16-bits");
  26153. for (var t = 0; t < e; t += 2)
  26154. m(this, t, t + 1);
  26155. return this
  26156. }
  26157. ,
  26158. l.prototype.swap32 = function() {
  26159. var e = this.length;
  26160. if (e % 4 != 0)
  26161. throw new RangeError("Buffer size must be a multiple of 32-bits");
  26162. for (var t = 0; t < e; t += 4)
  26163. m(this, t, t + 3),
  26164. m(this, t + 1, t + 2);
  26165. return this
  26166. }
  26167. ,
  26168. l.prototype.swap64 = function() {
  26169. var e = this.length;
  26170. if (e % 8 != 0)
  26171. throw new RangeError("Buffer size must be a multiple of 64-bits");
  26172. for (var t = 0; t < e; t += 8)
  26173. m(this, t, t + 7),
  26174. m(this, t + 1, t + 6),
  26175. m(this, t + 2, t + 5),
  26176. m(this, t + 3, t + 4);
  26177. return this
  26178. }
  26179. ,
  26180. l.prototype.toString = function() {
  26181. var e = 0 | this.length;
  26182. return 0 === e ? "" : 0 === arguments.length ? C(this, 0, e) : g.apply(this, arguments)
  26183. }
  26184. ,
  26185. l.prototype.equals = function(e) {
  26186. if (!l.isBuffer(e))
  26187. throw new TypeError("Argument must be a Buffer");
  26188. return this === e || 0 === l.compare(this, e)
  26189. }
  26190. ,
  26191. l.prototype.inspect = function() {
  26192. var e = ""
  26193. , n = t.INSPECT_MAX_BYTES;
  26194. return this.length > 0 && (e = this.toString("hex", 0, n).match(/.{2}/g).join(" "),
  26195. this.length > n && (e += " ... ")),
  26196. "<Buffer " + e + ">"
  26197. }
  26198. ,
  26199. l.prototype.compare = function(e, t, n, r, i) {
  26200. if (!l.isBuffer(e))
  26201. throw new TypeError("Argument must be a Buffer");
  26202. if (void 0 === t && (t = 0),
  26203. void 0 === n && (n = e ? e.length : 0),
  26204. void 0 === r && (r = 0),
  26205. void 0 === i && (i = this.length),
  26206. t < 0 || n > e.length || r < 0 || i > this.length)
  26207. throw new RangeError("out of range index");
  26208. if (r >= i && t >= n)
  26209. return 0;
  26210. if (r >= i)
  26211. return -1;
  26212. if (t >= n)
  26213. return 1;
  26214. if (this === e)
  26215. return 0;
  26216. for (var o = (i >>>= 0) - (r >>>= 0), a = (n >>>= 0) - (t >>>= 0), s = Math.min(o, a), u = this.slice(r, i), c = e.slice(t, n), d = 0; d < s; ++d)
  26217. if (u[d] !== c[d]) {
  26218. o = u[d],
  26219. a = c[d];
  26220. break
  26221. }
  26222. return o < a ? -1 : a < o ? 1 : 0
  26223. }
  26224. ,
  26225. l.prototype.includes = function(e, t, n) {
  26226. return -1 !== this.indexOf(e, t, n)
  26227. }
  26228. ,
  26229. l.prototype.indexOf = function(e, t, n) {
  26230. return v(this, e, t, n, !0)
  26231. }
  26232. ,
  26233. l.prototype.lastIndexOf = function(e, t, n) {
  26234. return v(this, e, t, n, !1)
  26235. }
  26236. ,
  26237. l.prototype.write = function(e, t, n, r) {
  26238. if (void 0 === t)
  26239. r = "utf8",
  26240. n = this.length,
  26241. t = 0;
  26242. else if (void 0 === n && "string" == typeof t)
  26243. r = t,
  26244. n = this.length,
  26245. t = 0;
  26246. else {
  26247. if (!isFinite(t))
  26248. throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
  26249. t |= 0,
  26250. isFinite(n) ? (n |= 0,
  26251. void 0 === r && (r = "utf8")) : (r = n,
  26252. n = void 0)
  26253. }
  26254. var i = this.length - t;
  26255. if ((void 0 === n || n > i) && (n = i),
  26256. e.length > 0 && (n < 0 || t < 0) || t > this.length)
  26257. throw new RangeError("Attempt to write outside buffer bounds");
  26258. r || (r = "utf8");
  26259. for (var o = !1; ; )
  26260. switch (r) {
  26261. case "hex":
  26262. return b(this, e, t, n);
  26263. case "utf8":
  26264. case "utf-8":
  26265. return _(this, e, t, n);
  26266. case "ascii":
  26267. return w(this, e, t, n);
  26268. case "latin1":
  26269. case "binary":
  26270. return S(this, e, t, n);
  26271. case "base64":
  26272. return x(this, e, t, n);
  26273. case "ucs2":
  26274. case "ucs-2":
  26275. case "utf16le":
  26276. case "utf-16le":
  26277. return k(this, e, t, n);
  26278. default:
  26279. if (o)
  26280. throw new TypeError("Unknown encoding: " + r);
  26281. r = ("" + r).toLowerCase(),
  26282. o = !0
  26283. }
  26284. }
  26285. ,
  26286. l.prototype.toJSON = function() {
  26287. return {
  26288. type: "Buffer",
  26289. data: Array.prototype.slice.call(this._arr || this, 0)
  26290. }
  26291. }
  26292. ;
  26293. function M(e, t, n) {
  26294. var r = "";
  26295. n = Math.min(e.length, n);
  26296. for (var i = t; i < n; ++i)
  26297. r += String.fromCharCode(127 & e[i]);
  26298. return r
  26299. }
  26300. function T(e, t, n) {
  26301. var r = "";
  26302. n = Math.min(e.length, n);
  26303. for (var i = t; i < n; ++i)
  26304. r += String.fromCharCode(e[i]);
  26305. return r
  26306. }
  26307. function A(e, t, n) {
  26308. var r = e.length;
  26309. (!t || t < 0) && (t = 0),
  26310. (!n || n < 0 || n > r) && (n = r);
  26311. for (var i = "", o = t; o < n; ++o)
  26312. i += D(e[o]);
  26313. return i
  26314. }
  26315. function E(e, t, n) {
  26316. for (var r = e.slice(t, n), i = "", o = 0; o < r.length; o += 2)
  26317. i += String.fromCharCode(r[o] + 256 * r[o + 1]);
  26318. return i
  26319. }
  26320. function O(e, t, n) {
  26321. if (e % 1 != 0 || e < 0)
  26322. throw new RangeError("offset is not uint");
  26323. if (e + t > n)
  26324. throw new RangeError("Trying to access beyond buffer length")
  26325. }
  26326. function B(e, t, n, r, i, o) {
  26327. if (!l.isBuffer(e))
  26328. throw new TypeError('"buffer" argument must be a Buffer instance');
  26329. if (t > i || t < o)
  26330. throw new RangeError('"value" argument is out of bounds');
  26331. if (n + r > e.length)
  26332. throw new RangeError("Index out of range")
  26333. }
  26334. function L(e, t, n, r) {
  26335. t < 0 && (t = 65535 + t + 1);
  26336. for (var i = 0, o = Math.min(e.length - n, 2); i < o; ++i)
  26337. e[n + i] = (t & 255 << 8 * (r ? i : 1 - i)) >>> 8 * (r ? i : 1 - i)
  26338. }
  26339. function P(e, t, n, r) {
  26340. t < 0 && (t = 4294967295 + t + 1);
  26341. for (var i = 0, o = Math.min(e.length - n, 4); i < o; ++i)
  26342. e[n + i] = t >>> 8 * (r ? i : 3 - i) & 255
  26343. }
  26344. function R(e, t, n, r, i, o) {
  26345. if (n + r > e.length)
  26346. throw new RangeError("Index out of range");
  26347. if (n < 0)
  26348. throw new RangeError("Index out of range")
  26349. }
  26350. function z(e, t, n, r, o) {
  26351. return o || R(e, 0, n, 4),
  26352. i.write(e, t, n, r, 23, 4),
  26353. n + 4
  26354. }
  26355. function j(e, t, n, r, o) {
  26356. return o || R(e, 0, n, 8),
  26357. i.write(e, t, n, r, 52, 8),
  26358. n + 8
  26359. }
  26360. l.prototype.slice = function(e, t) {
  26361. var n, r = this.length;
  26362. if ((e = ~~e) < 0 ? (e += r) < 0 && (e = 0) : e > r && (e = r),
  26363. (t = void 0 === t ? r : ~~t) < 0 ? (t += r) < 0 && (t = 0) : t > r && (t = r),
  26364. t < e && (t = e),
  26365. l.TYPED_ARRAY_SUPPORT)
  26366. (n = this.subarray(e, t)).__proto__ = l.prototype;
  26367. else {
  26368. var i = t - e;
  26369. n = new l(i,void 0);
  26370. for (var o = 0; o < i; ++o)
  26371. n[o] = this[o + e]
  26372. }
  26373. return n
  26374. }
  26375. ,
  26376. l.prototype.readUIntLE = function(e, t, n) {
  26377. e |= 0,
  26378. t |= 0,
  26379. n || O(e, t, this.length);
  26380. for (var r = this[e], i = 1, o = 0; ++o < t && (i *= 256); )
  26381. r += this[e + o] * i;
  26382. return r
  26383. }
  26384. ,
  26385. l.prototype.readUIntBE = function(e, t, n) {
  26386. e |= 0,
  26387. t |= 0,
  26388. n || O(e, t, this.length);
  26389. for (var r = this[e + --t], i = 1; t > 0 && (i *= 256); )
  26390. r += this[e + --t] * i;
  26391. return r
  26392. }
  26393. ,
  26394. l.prototype.readUInt8 = function(e, t) {
  26395. return t || O(e, 1, this.length),
  26396. this[e]
  26397. }
  26398. ,
  26399. l.prototype.readUInt16LE = function(e, t) {
  26400. return t || O(e, 2, this.length),
  26401. this[e] | this[e + 1] << 8
  26402. }
  26403. ,
  26404. l.prototype.readUInt16BE = function(e, t) {
  26405. return t || O(e, 2, this.length),
  26406. this[e] << 8 | this[e + 1]
  26407. }
  26408. ,
  26409. l.prototype.readUInt32LE = function(e, t) {
  26410. return t || O(e, 4, this.length),
  26411. (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + 16777216 * this[e + 3]
  26412. }
  26413. ,
  26414. l.prototype.readUInt32BE = function(e, t) {
  26415. return t || O(e, 4, this.length),
  26416. 16777216 * this[e] + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3])
  26417. }
  26418. ,
  26419. l.prototype.readIntLE = function(e, t, n) {
  26420. e |= 0,
  26421. t |= 0,
  26422. n || O(e, t, this.length);
  26423. for (var r = this[e], i = 1, o = 0; ++o < t && (i *= 256); )
  26424. r += this[e + o] * i;
  26425. return r >= (i *= 128) && (r -= Math.pow(2, 8 * t)),
  26426. r
  26427. }
  26428. ,
  26429. l.prototype.readIntBE = function(e, t, n) {
  26430. e |= 0,
  26431. t |= 0,
  26432. n || O(e, t, this.length);
  26433. for (var r = t, i = 1, o = this[e + --r]; r > 0 && (i *= 256); )
  26434. o += this[e + --r] * i;
  26435. return o >= (i *= 128) && (o -= Math.pow(2, 8 * t)),
  26436. o
  26437. }
  26438. ,
  26439. l.prototype.readInt8 = function(e, t) {
  26440. return t || O(e, 1, this.length),
  26441. 128 & this[e] ? -1 * (255 - this[e] + 1) : this[e]
  26442. }
  26443. ,
  26444. l.prototype.readInt16LE = function(e, t) {
  26445. t || O(e, 2, this.length);
  26446. var n = this[e] | this[e + 1] << 8;
  26447. return 32768 & n ? 4294901760 | n : n
  26448. }
  26449. ,
  26450. l.prototype.readInt16BE = function(e, t) {
  26451. t || O(e, 2, this.length);
  26452. var n = this[e + 1] | this[e] << 8;
  26453. return 32768 & n ? 4294901760 | n : n
  26454. }
  26455. ,
  26456. l.prototype.readInt32LE = function(e, t) {
  26457. return t || O(e, 4, this.length),
  26458. this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24
  26459. }
  26460. ,
  26461. l.prototype.readInt32BE = function(e, t) {
  26462. return t || O(e, 4, this.length),
  26463. this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]
  26464. }
  26465. ,
  26466. l.prototype.readFloatLE = function(e, t) {
  26467. return t || O(e, 4, this.length),
  26468. i.read(this, e, !0, 23, 4)
  26469. }
  26470. ,
  26471. l.prototype.readFloatBE = function(e, t) {
  26472. return t || O(e, 4, this.length),
  26473. i.read(this, e, !1, 23, 4)
  26474. }
  26475. ,
  26476. l.prototype.readDoubleLE = function(e, t) {
  26477. return t || O(e, 8, this.length),
  26478. i.read(this, e, !0, 52, 8)
  26479. }
  26480. ,
  26481. l.prototype.readDoubleBE = function(e, t) {
  26482. return t || O(e, 8, this.length),
  26483. i.read(this, e, !1, 52, 8)
  26484. }
  26485. ,
  26486. l.prototype.writeUIntLE = function(e, t, n, r) {
  26487. (e = +e,
  26488. t |= 0,
  26489. n |= 0,
  26490. r) || B(this, e, t, n, Math.pow(2, 8 * n) - 1, 0);
  26491. var i = 1
  26492. , o = 0;
  26493. for (this[t] = 255 & e; ++o < n && (i *= 256); )
  26494. this[t + o] = e / i & 255;
  26495. return t + n
  26496. }
  26497. ,
  26498. l.prototype.writeUIntBE = function(e, t, n, r) {
  26499. (e = +e,
  26500. t |= 0,
  26501. n |= 0,
  26502. r) || B(this, e, t, n, Math.pow(2, 8 * n) - 1, 0);
  26503. var i = n - 1
  26504. , o = 1;
  26505. for (this[t + i] = 255 & e; --i >= 0 && (o *= 256); )
  26506. this[t + i] = e / o & 255;
  26507. return t + n
  26508. }
  26509. ,
  26510. l.prototype.writeUInt8 = function(e, t, n) {
  26511. return e = +e,
  26512. t |= 0,
  26513. n || B(this, e, t, 1, 255, 0),
  26514. l.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)),
  26515. this[t] = 255 & e,
  26516. t + 1
  26517. }
  26518. ,
  26519. l.prototype.writeUInt16LE = function(e, t, n) {
  26520. return e = +e,
  26521. t |= 0,
  26522. n || B(this, e, t, 2, 65535, 0),
  26523. l.TYPED_ARRAY_SUPPORT ? (this[t] = 255 & e,
  26524. this[t + 1] = e >>> 8) : L(this, e, t, !0),
  26525. t + 2
  26526. }
  26527. ,
  26528. l.prototype.writeUInt16BE = function(e, t, n) {
  26529. return e = +e,
  26530. t |= 0,
  26531. n || B(this, e, t, 2, 65535, 0),
  26532. l.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 8,
  26533. this[t + 1] = 255 & e) : L(this, e, t, !1),
  26534. t + 2
  26535. }
  26536. ,
  26537. l.prototype.writeUInt32LE = function(e, t, n) {
  26538. return e = +e,
  26539. t |= 0,
  26540. n || B(this, e, t, 4, 4294967295, 0),
  26541. l.TYPED_ARRAY_SUPPORT ? (this[t + 3] = e >>> 24,
  26542. this[t + 2] = e >>> 16,
  26543. this[t + 1] = e >>> 8,
  26544. this[t] = 255 & e) : P(this, e, t, !0),
  26545. t + 4
  26546. }
  26547. ,
  26548. l.prototype.writeUInt32BE = function(e, t, n) {
  26549. return e = +e,
  26550. t |= 0,
  26551. n || B(this, e, t, 4, 4294967295, 0),
  26552. l.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 24,
  26553. this[t + 1] = e >>> 16,
  26554. this[t + 2] = e >>> 8,
  26555. this[t + 3] = 255 & e) : P(this, e, t, !1),
  26556. t + 4
  26557. }
  26558. ,
  26559. l.prototype.writeIntLE = function(e, t, n, r) {
  26560. if (e = +e,
  26561. t |= 0,
  26562. !r) {
  26563. var i = Math.pow(2, 8 * n - 1);
  26564. B(this, e, t, n, i - 1, -i)
  26565. }
  26566. var o = 0
  26567. , a = 1
  26568. , s = 0;
  26569. for (this[t] = 255 & e; ++o < n && (a *= 256); )
  26570. e < 0 && 0 === s && 0 !== this[t + o - 1] && (s = 1),
  26571. this[t + o] = (e / a >> 0) - s & 255;
  26572. return t + n
  26573. }
  26574. ,
  26575. l.prototype.writeIntBE = function(e, t, n, r) {
  26576. if (e = +e,
  26577. t |= 0,
  26578. !r) {
  26579. var i = Math.pow(2, 8 * n - 1);
  26580. B(this, e, t, n, i - 1, -i)
  26581. }
  26582. var o = n - 1
  26583. , a = 1
  26584. , s = 0;
  26585. for (this[t + o] = 255 & e; --o >= 0 && (a *= 256); )
  26586. e < 0 && 0 === s && 0 !== this[t + o + 1] && (s = 1),
  26587. this[t + o] = (e / a >> 0) - s & 255;
  26588. return t + n
  26589. }
  26590. ,
  26591. l.prototype.writeInt8 = function(e, t, n) {
  26592. return e = +e,
  26593. t |= 0,
  26594. n || B(this, e, t, 1, 127, -128),
  26595. l.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)),
  26596. e < 0 && (e = 255 + e + 1),
  26597. this[t] = 255 & e,
  26598. t + 1
  26599. }
  26600. ,
  26601. l.prototype.writeInt16LE = function(e, t, n) {
  26602. return e = +e,
  26603. t |= 0,
  26604. n || B(this, e, t, 2, 32767, -32768),
  26605. l.TYPED_ARRAY_SUPPORT ? (this[t] = 255 & e,
  26606. this[t + 1] = e >>> 8) : L(this, e, t, !0),
  26607. t + 2
  26608. }
  26609. ,
  26610. l.prototype.writeInt16BE = function(e, t, n) {
  26611. return e = +e,
  26612. t |= 0,
  26613. n || B(this, e, t, 2, 32767, -32768),
  26614. l.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 8,
  26615. this[t + 1] = 255 & e) : L(this, e, t, !1),
  26616. t + 2
  26617. }
  26618. ,
  26619. l.prototype.writeInt32LE = function(e, t, n) {
  26620. return e = +e,
  26621. t |= 0,
  26622. n || B(this, e, t, 4, 2147483647, -2147483648),
  26623. l.TYPED_ARRAY_SUPPORT ? (this[t] = 255 & e,
  26624. this[t + 1] = e >>> 8,
  26625. this[t + 2] = e >>> 16,
  26626. this[t + 3] = e >>> 24) : P(this, e, t, !0),
  26627. t + 4
  26628. }
  26629. ,
  26630. l.prototype.writeInt32BE = function(e, t, n) {
  26631. return e = +e,
  26632. t |= 0,
  26633. n || B(this, e, t, 4, 2147483647, -2147483648),
  26634. e < 0 && (e = 4294967295 + e + 1),
  26635. l.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 24,
  26636. this[t + 1] = e >>> 16,
  26637. this[t + 2] = e >>> 8,
  26638. this[t + 3] = 255 & e) : P(this, e, t, !1),
  26639. t + 4
  26640. }
  26641. ,
  26642. l.prototype.writeFloatLE = function(e, t, n) {
  26643. return z(this, e, t, !0, n)
  26644. }
  26645. ,
  26646. l.prototype.writeFloatBE = function(e, t, n) {
  26647. return z(this, e, t, !1, n)
  26648. }
  26649. ,
  26650. l.prototype.writeDoubleLE = function(e, t, n) {
  26651. return j(this, e, t, !0, n)
  26652. }
  26653. ,
  26654. l.prototype.writeDoubleBE = function(e, t, n) {
  26655. return j(this, e, t, !1, n)
  26656. }
  26657. ,
  26658. l.prototype.copy = function(e, t, n, r) {
  26659. if (n || (n = 0),
  26660. r || 0 === r || (r = this.length),
  26661. t >= e.length && (t = e.length),
  26662. t || (t = 0),
  26663. r > 0 && r < n && (r = n),
  26664. r === n)
  26665. return 0;
  26666. if (0 === e.length || 0 === this.length)
  26667. return 0;
  26668. if (t < 0)
  26669. throw new RangeError("targetStart out of bounds");
  26670. if (n < 0 || n >= this.length)
  26671. throw new RangeError("sourceStart out of bounds");
  26672. if (r < 0)
  26673. throw new RangeError("sourceEnd out of bounds");
  26674. r > this.length && (r = this.length),
  26675. e.length - t < r - n && (r = e.length - t + n);
  26676. var i, o = r - n;
  26677. if (this === e && n < t && t < r)
  26678. for (i = o - 1; i >= 0; --i)
  26679. e[i + t] = this[i + n];
  26680. else if (o < 1e3 || !l.TYPED_ARRAY_SUPPORT)
  26681. for (i = 0; i < o; ++i)
  26682. e[i + t] = this[i + n];
  26683. else
  26684. Uint8Array.prototype.set.call(e, this.subarray(n, n + o), t);
  26685. return o
  26686. }
  26687. ,
  26688. l.prototype.fill = function(e, t, n, r) {
  26689. if ("string" == typeof e) {
  26690. if ("string" == typeof t ? (r = t,
  26691. t = 0,
  26692. n = this.length) : "string" == typeof n && (r = n,
  26693. n = this.length),
  26694. 1 === e.length) {
  26695. var i = e.charCodeAt(0);
  26696. i < 256 && (e = i)
  26697. }
  26698. if (void 0 !== r && "string" != typeof r)
  26699. throw new TypeError("encoding must be a string");
  26700. if ("string" == typeof r && !l.isEncoding(r))
  26701. throw new TypeError("Unknown encoding: " + r)
  26702. } else
  26703. "number" == typeof e && (e &= 255);
  26704. if (t < 0 || this.length < t || this.length < n)
  26705. throw new RangeError("Out of range index");
  26706. if (n <= t)
  26707. return this;
  26708. var o;
  26709. if (t >>>= 0,
  26710. n = void 0 === n ? this.length : n >>> 0,
  26711. e || (e = 0),
  26712. "number" == typeof e)
  26713. for (o = t; o < n; ++o)
  26714. this[o] = e;
  26715. else {
  26716. var a = l.isBuffer(e) ? e : N(new l(e,r).toString())
  26717. , s = a.length;
  26718. for (o = 0; o < n - t; ++o)
  26719. this[o + t] = a[o % s]
  26720. }
  26721. return this
  26722. }
  26723. ;
  26724. var F = /[^+\/0-9A-Za-z-_]/g;
  26725. function D(e) {
  26726. return e < 16 ? "0" + e.toString(16) : e.toString(16)
  26727. }
  26728. function N(e, t) {
  26729. var n;
  26730. t = t || 1 / 0;
  26731. for (var r = e.length, i = null, o = [], a = 0; a < r; ++a) {
  26732. if ((n = e.charCodeAt(a)) > 55295 && n < 57344) {
  26733. if (!i) {
  26734. if (n > 56319) {
  26735. (t -= 3) > -1 && o.push(239, 191, 189);
  26736. continue
  26737. }
  26738. if (a + 1 === r) {
  26739. (t -= 3) > -1 && o.push(239, 191, 189);
  26740. continue
  26741. }
  26742. i = n;
  26743. continue
  26744. }
  26745. if (n < 56320) {
  26746. (t -= 3) > -1 && o.push(239, 191, 189),
  26747. i = n;
  26748. continue
  26749. }
  26750. n = 65536 + (i - 55296 << 10 | n - 56320)
  26751. } else
  26752. i && (t -= 3) > -1 && o.push(239, 191, 189);
  26753. if (i = null,
  26754. n < 128) {
  26755. if ((t -= 1) < 0)
  26756. break;
  26757. o.push(n)
  26758. } else if (n < 2048) {
  26759. if ((t -= 2) < 0)
  26760. break;
  26761. o.push(n >> 6 | 192, 63 & n | 128)
  26762. } else if (n < 65536) {
  26763. if ((t -= 3) < 0)
  26764. break;
  26765. o.push(n >> 12 | 224, n >> 6 & 63 | 128, 63 & n | 128)
  26766. } else {
  26767. if (!(n < 1114112))
  26768. throw new Error("Invalid code point");
  26769. if ((t -= 4) < 0)
  26770. break;
  26771. o.push(n >> 18 | 240, n >> 12 & 63 | 128, n >> 6 & 63 | 128, 63 & n | 128)
  26772. }
  26773. }
  26774. return o
  26775. }
  26776. function U(e) {
  26777. return r.toByteArray(function(e) {
  26778. if ((e = function(e) {
  26779. return e.trim ? e.trim() : e.replace(/^\s+|\s+$/g, "")
  26780. }(e).replace(F, "")).length < 2)
  26781. return "";
  26782. for (; e.length % 4 != 0; )
  26783. e += "=";
  26784. return e
  26785. }(e))
  26786. }
  26787. function W(e, t, n, r) {
  26788. for (var i = 0; i < r && !(i + n >= t.length || i >= e.length); ++i)
  26789. t[i + n] = e[i];
  26790. return i
  26791. }
  26792. }
  26793. ).call(this, n(20))
  26794. },
  26795. 325: function(e, t, n) {
  26796. "use strict";
  26797. t.byteLength = function(e) {
  26798. var t = u(e)
  26799. , n = t[0]
  26800. , r = t[1];
  26801. return 3 * (n + r) / 4 - r
  26802. }
  26803. ,
  26804. t.toByteArray = function(e) {
  26805. var t, n, r = u(e), a = r[0], s = r[1], l = new o(function(e, t, n) {
  26806. return 3 * (t + n) / 4 - n
  26807. }(0, a, s)), c = 0, d = s > 0 ? a - 4 : a;
  26808. for (n = 0; n < d; n += 4)
  26809. t = i[e.charCodeAt(n)] << 18 | i[e.charCodeAt(n + 1)] << 12 | i[e.charCodeAt(n + 2)] << 6 | i[e.charCodeAt(n + 3)],
  26810. l[c++] = t >> 16 & 255,
  26811. l[c++] = t >> 8 & 255,
  26812. l[c++] = 255 & t;
  26813. 2 === s && (t = i[e.charCodeAt(n)] << 2 | i[e.charCodeAt(n + 1)] >> 4,
  26814. l[c++] = 255 & t);
  26815. 1 === s && (t = i[e.charCodeAt(n)] << 10 | i[e.charCodeAt(n + 1)] << 4 | i[e.charCodeAt(n + 2)] >> 2,
  26816. l[c++] = t >> 8 & 255,
  26817. l[c++] = 255 & t);
  26818. return l
  26819. }
  26820. ,
  26821. t.fromByteArray = function(e) {
  26822. for (var t, n = e.length, i = n % 3, o = [], a = 0, s = n - i; a < s; a += 16383)
  26823. o.push(c(e, a, a + 16383 > s ? s : a + 16383));
  26824. 1 === i ? (t = e[n - 1],
  26825. o.push(r[t >> 2] + r[t << 4 & 63] + "==")) : 2 === i && (t = (e[n - 2] << 8) + e[n - 1],
  26826. o.push(r[t >> 10] + r[t >> 4 & 63] + r[t << 2 & 63] + "="));
  26827. return o.join("")
  26828. }
  26829. ;
  26830. for (var r = [], i = [], o = "undefined" != typeof Uint8Array ? Uint8Array : Array, a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", s = 0, l = a.length; s < l; ++s)
  26831. r[s] = a[s],
  26832. i[a.charCodeAt(s)] = s;
  26833. function u(e) {
  26834. var t = e.length;
  26835. if (t % 4 > 0)
  26836. throw new Error("Invalid string. Length must be a multiple of 4");
  26837. var n = e.indexOf("=");
  26838. return -1 === n && (n = t),
  26839. [n, n === t ? 0 : 4 - n % 4]
  26840. }
  26841. function c(e, t, n) {
  26842. for (var i, o, a = [], s = t; s < n; s += 3)
  26843. i = (e[s] << 16 & 16711680) + (e[s + 1] << 8 & 65280) + (255 & e[s + 2]),
  26844. a.push(r[(o = i) >> 18 & 63] + r[o >> 12 & 63] + r[o >> 6 & 63] + r[63 & o]);
  26845. return a.join("")
  26846. }
  26847. i["-".charCodeAt(0)] = 62,
  26848. i["_".charCodeAt(0)] = 63
  26849. },
  26850. 326: function(e, t) {
  26851. t.read = function(e, t, n, r, i) {
  26852. var o, a, s = 8 * i - r - 1, l = (1 << s) - 1, u = l >> 1, c = -7, d = n ? i - 1 : 0, f = n ? -1 : 1, h = e[t + d];
  26853. for (d += f,
  26854. o = h & (1 << -c) - 1,
  26855. h >>= -c,
  26856. c += s; c > 0; o = 256 * o + e[t + d],
  26857. d += f,
  26858. c -= 8)
  26859. ;
  26860. for (a = o & (1 << -c) - 1,
  26861. o >>= -c,
  26862. c += r; c > 0; a = 256 * a + e[t + d],
  26863. d += f,
  26864. c -= 8)
  26865. ;
  26866. if (0 === o)
  26867. o = 1 - u;
  26868. else {
  26869. if (o === l)
  26870. return a ? NaN : 1 / 0 * (h ? -1 : 1);
  26871. a += Math.pow(2, r),
  26872. o -= u
  26873. }
  26874. return (h ? -1 : 1) * a * Math.pow(2, o - r)
  26875. }
  26876. ,
  26877. t.write = function(e, t, n, r, i, o) {
  26878. var a, s, l, u = 8 * o - i - 1, c = (1 << u) - 1, d = c >> 1, f = 23 === i ? Math.pow(2, -24) - Math.pow(2, -77) : 0, h = r ? 0 : o - 1, p = r ? 1 : -1, g = t < 0 || 0 === t && 1 / t < 0 ? 1 : 0;
  26879. for (t = Math.abs(t),
  26880. isNaN(t) || t === 1 / 0 ? (s = isNaN(t) ? 1 : 0,
  26881. a = c) : (a = Math.floor(Math.log(t) / Math.LN2),
  26882. t * (l = Math.pow(2, -a)) < 1 && (a--,
  26883. l *= 2),
  26884. (t += a + d >= 1 ? f / l : f * Math.pow(2, 1 - d)) * l >= 2 && (a++,
  26885. l /= 2),
  26886. a + d >= c ? (s = 0,
  26887. a = c) : a + d >= 1 ? (s = (t * l - 1) * Math.pow(2, i),
  26888. a += d) : (s = t * Math.pow(2, d - 1) * Math.pow(2, i),
  26889. a = 0)); i >= 8; e[n + h] = 255 & s,
  26890. h += p,
  26891. s /= 256,
  26892. i -= 8)
  26893. ;
  26894. for (a = a << i | s,
  26895. u += i; u > 0; e[n + h] = 255 & a,
  26896. h += p,
  26897. a /= 256,
  26898. u -= 8)
  26899. ;
  26900. e[n + h - p] |= 128 * g
  26901. }
  26902. },
  26903. 327: function(e, t) {
  26904. var n = {}.toString;
  26905. e.exports = Array.isArray || function(e) {
  26906. return "[object Array]" == n.call(e)
  26907. }
  26908. },
  26909. 328: function(e, t, n) {
  26910. "use strict";
  26911. n(224)
  26912. },
  26913. 329: function(e, t, n) {
  26914. (e.exports = n(2)(!1)).push([e.i, '.xm-color-g10[data-v-5e5182e9]{color:#fcfcfc}.xm-color-g20[data-v-5e5182e9]{color:#f9f9f9}.xm-color-g30[data-v-5e5182e9]{color:#ebebeb}.xm-color-g40[data-v-5e5182e9]{color:#d6d6d6}.xm-color-g50[data-v-5e5182e9]{color:#b2b2b2}.xm-color-g60[data-v-5e5182e9]{color:#8c8c8c}.xm-color-g70[data-v-5e5182e9]{color:#666}.xm-color-g80[data-v-5e5182e9]{color:#2b2b2b}.xm-color-g90[data-v-5e5182e9]{color:#111}a[data-v-5e5182e9]{display:block;width:100%;white-space:nowrap}.flex-base-line[data-v-5e5182e9]{align-items:baseline}.muted[data-v-5e5182e9]{opacity:0.6}.ml-spacing-small[data-v-5e5182e9]{margin-left:3px}.dropdown-menu[data-v-5e5182e9]{padding:0;color:var(--dropdown-menu-color)}.dropdown-menu .menu-container[data-v-5e5182e9]{position:relative}.dropdown-menu .menu-container[data-v-5e5182e9]::before{content:"";position:absolute;width:12px;height:12px;background:var(--floating-bar-menu-background-color);top:-5px;right:calc(50% - 8px);transform:rotate(45deg)}.dropdown-menu .menu-block[data-v-5e5182e9]{padding:12px 20px}.dropdown-menu .dropdown-title[data-v-5e5182e9]{padding-top:8px;line-height:30px;font-size:24px;font-weight:600;margin-bottom:10px}.dropdown-menu .btn-icon[data-v-5e5182e9]{width:50%;height:24px}.dropdown-menu .btn-icon svg[data-v-5e5182e9]{width:16px;height:16px}.dropdown-menu .btn-icon.active[data-v-5e5182e9]{background:var(--dropdown-menu-button-active-color) !important}span[data-v-5e5182e9]{user-select:none}label[data-v-5e5182e9]{margin:0}\n', ""])
  26915. },
  26916. 33: function(e, t, n) {
  26917. "use strict";
  26918. Object.defineProperty(t, "__esModule", {
  26919. value: !0
  26920. }),
  26921. t.computeHitRegionBounds = t.computeAbsoluteBounds = void 0,
  26922. t.computeAbsoluteBounds = function e(t, n={
  26923. x: 0,
  26924. y: 0
  26925. }) {
  26926. for (const r of t)
  26927. r.absBounds.x = r.bounds.x + n.x,
  26928. r.absBounds.y = r.bounds.y + n.y,
  26929. r.absBounds.width = r.bounds.width,
  26930. r.absBounds.height = r.bounds.height,
  26931. "group" === r.contentType && e(r.children, r.absBounds)
  26932. }
  26933. ,
  26934. t.computeHitRegionBounds = function e(t, n, r, i, o, a) {
  26935. var s, l, u;
  26936. for (const c of n) {
  26937. if (c.id === t) {
  26938. const e = Object.assign({}, c.absBounds)
  26939. , t = e.y + e.height / 2;
  26940. return e.x = Math.max(e.x, i.x) - o,
  26941. e.y = Math.max(e.y - a, i.y),
  26942. e.width = Math.min(e.x + e.width + o + o, i.x + i.width) - e.x,
  26943. e.height = Math.min(t + e.height / 2 + a, i.y + i.height) - e.y,
  26944. Object.assign(e, {
  26945. opacity: e.height / (c.absBounds.height + a + a)
  26946. })
  26947. }
  26948. if ("group" === c.contentType) {
  26949. const n = "visible" === c.overflow ? i : c.absBounds;
  26950. let d = n;
  26951. const f = null !== (u = null !== (l = null === (s = r.find(e=>e.id === c.id)) || void 0 === s ? void 0 : s.scrollOffset) && void 0 !== l ? l : c.scrollOffset) && void 0 !== u ? u : 0;
  26952. f > 0 && (d = Object.assign(Object.assign({}, n), {
  26953. y: n.y + f
  26954. }));
  26955. const h = e(t, c.children, r, d, o, a);
  26956. if (h) {
  26957. const e = f > 0 ? Object.assign(Object.assign({}, h), {
  26958. y: h.y - f
  26959. }) : h;
  26960. if (e.y + e.height < n.y || e.y > n.y + n.height)
  26961. return null;
  26962. if (e.y < n.y) {
  26963. e.y = n.y;
  26964. const t = e.height - (n.y - e.y);
  26965. e.opacity = t / e.height,
  26966. e.height = t
  26967. }
  26968. return e
  26969. }
  26970. }
  26971. }
  26972. return null
  26973. }
  26974. },
  26975. 330: function(e, t, n) {
  26976. "use strict";
  26977. n(225)
  26978. },
  26979. 331: function(e, t, n) {
  26980. (e.exports = n(2)(!1)).push([e.i, ".xm-color-g10[data-v-2012282a]{color:#fcfcfc}.xm-color-g20[data-v-2012282a]{color:#f9f9f9}.xm-color-g30[data-v-2012282a]{color:#ebebeb}.xm-color-g40[data-v-2012282a]{color:#d6d6d6}.xm-color-g50[data-v-2012282a]{color:#b2b2b2}.xm-color-g60[data-v-2012282a]{color:#8c8c8c}.xm-color-g70[data-v-2012282a]{color:#666}.xm-color-g80[data-v-2012282a]{color:#2b2b2b}.xm-color-g90[data-v-2012282a]{color:#111}.top-right-bar[data-v-2012282a]{--floating-bar-verical-separator-color: rgba(0, 0, 0, 0.1);--floating-bar-color: rgba(0, 0, 0, 1);--floating-bar-context-color: rgba(255, 255, 255, 1);--floating-bar-menu-color: currentcolor;--floating-bar-menu-background-color: rgba(255, 255, 255, 1);--floating-bar-menu-item-hover-background: #eeeef0;--floating-bar-button-floating-color: rgba(0,0,0,.05);--dropdown-menu-color: #212529;--dropdown-menu-button-active-color: #eeeeee;position:absolute;top:24px;right:24px;opacity:0.15;transition:opacity .3s ease-in-out}.top-right-bar.dark[data-v-2012282a]{--floating-bar-context-color: rgba(129, 129, 137, 0.5);--floating-bar-verical-separator-color: rgba(255, 255, 255, 0.1);--floating-bar-color: rgba(255, 255, 255, 1);--floating-bar-menu-color: white;--floating-bar-menu-background-color: #414144;--floating-bar-menu-item-hover-background: rgba(118,118,128,0.7);--floating-bar-button-floating-color: rgba(118,118,128,0.5);--dropdown-menu-color: rgba(255, 255, 255, 1);--dropdown-menu-button-active-color: rgba(118, 118, 128, 0.5)}.top-right-bar .floating-bar[data-v-2012282a]{backdrop-filter:unset;-webkit-backdrop-filter:unset}.top-right-bar .floating-bar .btn[data-v-2012282a]{line-height:24px}.top-right-bar[data-v-2012282a]:hover{opacity:1}.btn-text[data-v-2012282a]{padding:4px;color:currentcolor}.pitch-mask[data-v-2012282a]{position:absolute;width:100%;height:100%;top:0;right:0}\n", ""])
  26981. },
  26982. 332: function(e, t, n) {
  26983. var r = n(471);
  26984. "string" == typeof r && (r = [[e.i, r, ""]]),
  26985. r.locals && (e.exports = r.locals);
  26986. (0,
  26987. n(3).default)("be704580", r, !0, {})
  26988. },
  26989. 34: function(e, t, n) {
  26990. "use strict";
  26991. Object.defineProperty(t, "__esModule", {
  26992. value: !0
  26993. }),
  26994. t.mapValues = t.rangedIntegers = t.findClosestMatch = void 0,
  26995. t.findClosestMatch = function(e, t) {
  26996. let n = null
  26997. , r = e(!0);
  26998. for (; null !== r; ) {
  26999. const i = t(r);
  27000. i && (n = r),
  27001. r = e(!i)
  27002. }
  27003. return n
  27004. }
  27005. ,
  27006. t.rangedIntegers = function(e, t) {
  27007. const n = e < t
  27008. , r = n ? Math.floor : Math.ceil;
  27009. let i = null;
  27010. return o=>{
  27011. if (null === i)
  27012. return i = e,
  27013. e;
  27014. if (o) {
  27015. if (e = i + (n ? 1 : -1),
  27016. n ? i >= t : i <= t)
  27017. return null
  27018. } else if (t = i + (n ? -1 : 1),
  27019. n ? i <= e : i >= e)
  27020. return null;
  27021. return i = r((e + t) / 2),
  27022. i
  27023. }
  27024. }
  27025. ,
  27026. t.mapValues = function(e, t) {
  27027. return n=>{
  27028. const r = e(n);
  27029. return null === r ? null : t(r)
  27030. }
  27031. }
  27032. },
  27033. 35: function(e, t, n) {
  27034. "use strict";
  27035. Object.defineProperty(t, "__esModule", {
  27036. value: !0
  27037. }),
  27038. t.getPlaceholderImageSource = t.shouldShowPlaceholder = t.computeTopicTitleGroup = void 0;
  27039. const r = n(5)
  27040. , i = n(12)
  27041. , o = n(13)
  27042. , a = n(15)
  27043. , s = n(42)
  27044. , l = n(61);
  27045. function u(e, t) {
  27046. return !e && !t
  27047. }
  27048. function c() {
  27049. return '<svg width="39" height="31" viewBox="0 0 39 31" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M33.14 3.94984H5.84824C4.34096 3.94984 3.11906 5.12474 3.11906 6.57405V25.3184C3.11906 26.7677 4.34096 27.9426 5.84824 27.9426H33.14C34.6473 27.9426 35.8692 26.7677 35.8692 25.3184V6.57405C35.8692 5.12473 34.6473 3.94984 33.14 3.94984ZM5.84824 0.950737C2.61835 0.950737 0 3.46838 0 6.57405V25.3184C0 28.4241 2.61835 30.9417 5.84824 30.9417H33.14C36.3699 30.9417 38.9883 28.4241 38.9883 25.3184V6.57405C38.9883 3.46838 36.3699 0.950737 33.14 0.950737H5.84824Z"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M29.3493 12.7836L38.3863 20.4546L36.3221 22.703L29.3133 16.7536L18.9795 25.2219L11.7384 19.6285L2.90691 26.6484L0.919604 24.3369L11.7102 15.7598L18.9207 21.3295L29.3493 12.7836Z"/>\n <path d="M16.7488 11.0501C16.7488 12.574 15.4641 13.8093 13.8792 13.8093C12.2944 13.8093 11.0096 12.574 11.0096 11.0501C11.0096 9.52619 12.2944 8.29083 13.8792 8.29083C15.4641 8.29083 16.7488 9.52619 16.7488 11.0501Z"/>\n </svg>'
  27050. }
  27051. t.computeTopicTitleGroup = function(e, t, n, d, f, h, p) {
  27052. var g, m, v, y;
  27053. const {maxWidth: b, fontSize: _, markerRightMargin: w, placeholder: S, maxHeight: x, scrollFaderSize: k} = p
  27054. , I = null !== (g = p.textRoles) && void 0 !== g ? g : []
  27055. , C = null !== (m = p.markerRoles) && void 0 !== m ? m : []
  27056. , M = null !== (v = p.imagePlaceholderRoles) && void 0 !== v ? v : []
  27057. , T = null !== (y = p.groupRoles) && void 0 !== y ? y : []
  27058. , A = h.length
  27059. , E = _
  27060. , O = _
  27061. , B = _
  27062. , L = _
  27063. , P = (E + w) * A
  27064. , R = p.lineHeight ? i.toCSSLength(p.lineHeight) : l.computeTextLineHeight(_)
  27065. , z = {
  27066. id: r.titleTextOfTopic(d),
  27067. roles: [...I],
  27068. bounds: o.zeroRect(),
  27069. absBounds: o.zeroRect(),
  27070. contentType: "text",
  27071. text: f,
  27072. fontSize: i.toCSSLength(_),
  27073. textIndent: i.toCSSLength(P),
  27074. lineHeight: R
  27075. };
  27076. "textAlignment"in p ? z.textAlignment = p.textAlignment : A > 0 && (z.textAlignment = "leading"),
  27077. "overflowWrap"in p && (z.overflowWrap = p.overflowWrap),
  27078. a.initializeBoxStyle(z, e, t, {
  27079. layout: n
  27080. });
  27081. const j = s.measureText(z, {
  27082. maxWidth: b
  27083. })
  27084. , {lineHeight: F, width: D, height: N} = j;
  27085. z.bounds.width = D,
  27086. z.bounds.height = N,
  27087. z.lineCount = j.lineCount;
  27088. const U = []
  27089. , W = F;
  27090. let H, V, $, G = 0, Z = 0;
  27091. for (let i = 0; i < A; i++) {
  27092. const s = h[i]
  27093. , l = {
  27094. id: r.markerOfTopic(d, i),
  27095. roles: ["marker", ...C],
  27096. bounds: {
  27097. x: Z,
  27098. y: (W - O) / 2,
  27099. width: E,
  27100. height: O
  27101. },
  27102. absBounds: o.zeroRect(),
  27103. contentType: "image",
  27104. imageSource: s.imageSource
  27105. };
  27106. a.initializeBoxStyle(l, e, t, {
  27107. layout: n
  27108. }),
  27109. Z += E + w,
  27110. G > 0 && (G += w),
  27111. G += E,
  27112. U.push(l)
  27113. }
  27114. u(f.length > 0, A > 0) && "image" === S ? (V = F,
  27115. $ = F,
  27116. H = {
  27117. id: r.imageOfTopic(d),
  27118. roles: ["imagePlaceholder", ...M],
  27119. bounds: {
  27120. x: (V - B) / 2,
  27121. y: ($ - L) / 2,
  27122. width: B,
  27123. height: L
  27124. },
  27125. absBounds: o.zeroRect(),
  27126. contentType: "svg-template",
  27127. fillColor: e.foregroundColor,
  27128. svg: c()
  27129. },
  27130. a.initializeBoxStyle(H, e, t, {
  27131. layout: n
  27132. })) : (V = 0,
  27133. $ = 0,
  27134. H = null);
  27135. const q = Math.max(D, G, V)
  27136. , Y = Math.max(N, F, W, $)
  27137. , X = x && Y > x ? x : Y
  27138. , J = {
  27139. id: r.titleOfTopic(d),
  27140. roles: [...T],
  27141. bounds: {
  27142. x: 0,
  27143. y: 0,
  27144. width: q,
  27145. height: X
  27146. },
  27147. absBounds: o.zeroRect(),
  27148. contentType: "group",
  27149. children: [z, ...U, ...H ? [H] : []],
  27150. contentHeight: Y,
  27151. overflow: X < Y ? "scroll" : "visible",
  27152. scrollFaderSize: k
  27153. };
  27154. return "requestForHit"in p && (J.requestForHit = p.requestForHit),
  27155. a.initializeBoxStyle(J, e, t, {
  27156. layout: n
  27157. }),
  27158. {
  27159. groupBox: J,
  27160. textBox: z,
  27161. markerImageBoxes: U,
  27162. textMeasurement: j,
  27163. imagePlaceholderBox: H
  27164. }
  27165. }
  27166. ,
  27167. t.shouldShowPlaceholder = u,
  27168. t.getPlaceholderImageSource = c
  27169. },
  27170. 36: function(e, t, n) {
  27171. "use strict";
  27172. Object.defineProperty(t, "__esModule", {
  27173. value: !0
  27174. }),
  27175. t.computeTopicTitle = void 0,
  27176. t.computeTopicTitle = function(e) {
  27177. var t, n;
  27178. const r = e.title;
  27179. return 0 === r.length && !e.image && (e.note && (null !== (n = null !== (t = e.note.html) && void 0 !== t ? t : e.note.plainText) && void 0 !== n ? n : "").length > 0 || e.labels && e.labels.length > 0) ? " ".repeat(6) : r
  27180. }
  27181. },
  27182. 4: function(e, t, n) {
  27183. "use strict";
  27184. n.d(t, "a", (function() {
  27185. return r
  27186. }
  27187. ));
  27188. function r(e, t, n, r) {
  27189. return new (n || (n = Promise))((function(i, o) {
  27190. function a(e) {
  27191. try {
  27192. l(r.next(e))
  27193. } catch (e) {
  27194. o(e)
  27195. }
  27196. }
  27197. function s(e) {
  27198. try {
  27199. l(r.throw(e))
  27200. } catch (e) {
  27201. o(e)
  27202. }
  27203. }
  27204. function l(e) {
  27205. var t;
  27206. e.done ? i(e.value) : (t = e.value,
  27207. t instanceof n ? t : new n((function(e) {
  27208. e(t)
  27209. }
  27210. ))).then(a, s)
  27211. }
  27212. l((r = r.apply(e, t || [])).next())
  27213. }
  27214. ))
  27215. }
  27216. Object.create;
  27217. Object.create
  27218. },
  27219. 41: function(e, t, n) {
  27220. "use strict";
  27221. Object.defineProperty(t, "__esModule", {
  27222. value: !0
  27223. }),
  27224. t.addHeaderBoxes = void 0;
  27225. const r = n(5)
  27226. , i = n(15)
  27227. , o = n(13)
  27228. , a = n(34)
  27229. , s = n(35)
  27230. , l = n(36)
  27231. , u = n(43);
  27232. t.addHeaderBoxes = function(e, t, n, c, d) {
  27233. var f, h;
  27234. const p = i.calcLength(n.headerZoneWidth, e)
  27235. , g = Math.round(i.calcLength(n.headerZoneHeight, e))
  27236. , m = Math.round(i.calcLength(n.headerTextFontSize, e))
  27237. , v = i.calcLength(n.headerMarkerRightMargin, e)
  27238. , y = i.calcLength(n.vPaddingSmall, e)
  27239. , b = i.calcLength(n.headerTextLeftMargin, e)
  27240. , _ = i.calcLength(n.headerLineTopMargin, e)
  27241. , w = Math.round(i.calcLength(n.headerLineLength, e))
  27242. , S = Math.round(i.calcLength(n.headerLineWidth, e))
  27243. , x = null !== (f = t.markers) && void 0 !== f ? f : [];
  27244. function k(n) {
  27245. return s.computeTopicTitleGroup(e, c, d, t.id, n, x, {
  27246. maxWidth: p,
  27247. fontSize: m,
  27248. markerRightMargin: v,
  27249. overflowWrap: "normal",
  27250. lineHeight: g,
  27251. textRoles: ["header"],
  27252. requestForHit: {
  27253. kind: "fastBackward",
  27254. topicId: t.id
  27255. }
  27256. })
  27257. }
  27258. const I = l.computeTopicTitle(t)
  27259. , C = a.rangedIntegers(I.length, 1)
  27260. , M = a.mapValues(C, e=>u.getTruncatedText(I, e))
  27261. , T = a.mapValues(M, k)
  27262. , A = null !== (h = a.findClosestMatch(T, (function(e) {
  27263. return e.textMeasurement.lineCount <= 1
  27264. }
  27265. ))) && void 0 !== h ? h : k(u.getTruncatedText(I, 1));
  27266. A.groupBox.bounds.x = b,
  27267. A.groupBox.bounds.y = y;
  27268. const E = {
  27269. id: r.headerLineOfTopic(t.id),
  27270. roles: ["headerLine"],
  27271. bounds: {
  27272. x: b,
  27273. y: y + g + _,
  27274. width: w,
  27275. height: S
  27276. },
  27277. absBounds: o.zeroRect(),
  27278. contentType: "shape",
  27279. shapePath: `M${S / 2} ${S / 2} l${w - S} 0`,
  27280. lineWidth: S
  27281. };
  27282. i.initializeBoxStyle(E, e, c, {
  27283. layout: d
  27284. }),
  27285. e.boxes.push(A.groupBox),
  27286. e.boxes.push(E)
  27287. }
  27288. },
  27289. 42: function(e, t, n) {
  27290. "use strict";
  27291. Object.defineProperty(t, "__esModule", {
  27292. value: !0
  27293. }),
  27294. t.disposeTextMeasurementHelpers = t.measureText = void 0;
  27295. const r = n(12);
  27296. t.measureText = function(e, t) {
  27297. var n, a, s, l;
  27298. const u = null != i ? i : i = new o
  27299. , c = null !== (n = e.text) && void 0 !== n ? n : "";
  27300. return u.measureText(c, {
  27301. font: r.toCSSFont(e),
  27302. "text-indent": null !== (a = e.textIndent) && void 0 !== a ? a : "",
  27303. "overflow-wrap": null !== (s = e.overflowWrap) && void 0 !== s ? s : "",
  27304. "letter-spacing": null !== (l = e.letterSpacing) && void 0 !== l ? l : ""
  27305. }, t.maxWidth)
  27306. }
  27307. ,
  27308. t.disposeTextMeasurementHelpers = function() {
  27309. i && i.remove(),
  27310. i = null
  27311. }
  27312. ;
  27313. let i = null;
  27314. class o {
  27315. constructor() {
  27316. this.el = document.createElement("div"),
  27317. this.el.style.visibility = "hidden",
  27318. this.el.style.position = "absolute",
  27319. this.el.style.width = "0",
  27320. this.el.style.height = "0",
  27321. this.el.style.left = "0",
  27322. this.el.style.top = "0",
  27323. this.el.style.opacity = "0",
  27324. this.el.style.pointerEvents = "none";
  27325. const e = document.createElement("div");
  27326. e.style.position = "absolute",
  27327. e.style.width = "10000px",
  27328. e.style.height = "0",
  27329. this.div = document.createElement("div"),
  27330. this.div.style.position = "absolute",
  27331. this.div.style.left = "0",
  27332. this.div.style.top = "0",
  27333. this.span = document.createElement("span"),
  27334. this.div.appendChild(this.span),
  27335. e.appendChild(this.div),
  27336. this.el.appendChild(e),
  27337. document.body.appendChild(this.el)
  27338. }
  27339. remove() {
  27340. document.body.removeChild(this.el)
  27341. }
  27342. measureText(e, t, n) {
  27343. this.span.innerHTML = "",
  27344. r.fillText(this.span, e),
  27345. this.div.style.maxWidth = r.toCSSLength(n);
  27346. for (const e in t)
  27347. this.div.style.setProperty(e, t[e]);
  27348. const i = this.span.getBoundingClientRect()
  27349. , o = Math.ceil(i.right)
  27350. , a = Math.ceil(Math.max(i.height, this.span.scrollHeight, this.div.getBoundingClientRect().height, this.div.scrollHeight))
  27351. , s = getComputedStyle(this.div)
  27352. , l = parseFloat(s.getPropertyValue("font-size"))
  27353. , u = parseFloat(s.getPropertyValue("line-height"))
  27354. , c = s.getPropertyValue("letter-spacing")
  27355. , d = Math.round(a / u);
  27356. return {
  27357. width: o,
  27358. height: d * u,
  27359. fontSize: l,
  27360. lineHeight: u,
  27361. lineCount: d,
  27362. letterSpacing: c
  27363. }
  27364. }
  27365. }
  27366. },
  27367. 43: function(e, t, n) {
  27368. "use strict";
  27369. Object.defineProperty(t, "__esModule", {
  27370. value: !0
  27371. }),
  27372. t.getTruncatedText = void 0,
  27373. t.getTruncatedText = function(e, t) {
  27374. return t === e.length ? e : e.slice(0, t) + "..."
  27375. }
  27376. },
  27377. 44: function(e, t, n) {
  27378. "use strict";
  27379. Object.defineProperty(t, "__esModule", {
  27380. value: !0
  27381. }),
  27382. t.computeContentFeaturesForTitleGroup = void 0,
  27383. t.computeContentFeaturesForTitleGroup = function(e, t, n, r) {
  27384. const i = [];
  27385. return i.push({
  27386. kind: "title",
  27387. topicId: t,
  27388. integrity: e.textBox.text !== n ? "partial" : "full"
  27389. }),
  27390. e.markerImageBoxes.length > 0 && i.push({
  27391. kind: "markers",
  27392. topicId: t,
  27393. integrity: e.markerImageBoxes.length < r.length ? "partial" : "full"
  27394. }),
  27395. i
  27396. }
  27397. },
  27398. 451: function(e, t, n) {
  27399. "use strict";
  27400. n.r(t);
  27401. var r = n(4)
  27402. , i = n(1)
  27403. , o = n(226)
  27404. , a = n(227)
  27405. , s = n(228)
  27406. , l = n(235)
  27407. , u = n(234)
  27408. , c = n(84)
  27409. , d = n(232)
  27410. , f = n(229)
  27411. , h = n(233)
  27412. , p = n(80)
  27413. , g = Object(i.defineComponent)({
  27414. name: "share-embed",
  27415. components: {
  27416. LoadingAnimation: o.default,
  27417. FrameZoomScaleBar: a.default,
  27418. FrameSheetsBar: s.default,
  27419. FrameShareMenuSocial: l.a,
  27420. FrameShareMenuOperation: u.a,
  27421. BaseMap: d.a,
  27422. PitchMode: h.a
  27423. },
  27424. props: {
  27425. fileInformationPromise: {
  27426. type: Promise,
  27427. required: !0
  27428. },
  27429. xmindShareLink: {
  27430. type: String,
  27431. default: ""
  27432. }
  27433. },
  27434. setup(e) {
  27435. const t = Object(i.ref)()
  27436. , n = Object(i.ref)()
  27437. , o = Object(i.ref)({})
  27438. , a = Object(i.ref)("")
  27439. , s = Object(i.ref)()
  27440. , l = navigator.userAgent.toLowerCase().includes("mobile")
  27441. , u = /iphone|ipad/.test(navigator.userAgent.toLowerCase())
  27442. , d = Object(i.inject)("store")
  27443. , {isAppearanceDarkMode: h} = Object(f.a)({
  27444. store: d
  27445. })
  27446. , g = Object(i.ref)(0)
  27447. , m = Object(i.ref)(new p.a)
  27448. , v = Object(i.computed)(()=>d.workbook.state.value.isFullscreen);
  27449. e.fileInformationPromise.then(e=>Object(r.a)(this, void 0, void 0, (function*() {
  27450. var t;
  27451. a.value = e.fileDownloadURL,
  27452. s.value = e.fileBinaryContent,
  27453. d.frame.state.value.fileDownloadURL = e.fileDownloadURL,
  27454. d.frame.state.value.fileSize = (null === (t = s.value) || void 0 === t ? void 0 : t.byteLength) || 0,
  27455. Object(p.d)(s.value, m.value)
  27456. }
  27457. )));
  27458. const y = Object(i.watch)(()=>d.workbook.state.value.isReady, e=>{
  27459. e && (d.workbook.actions.fitMap(),
  27460. y && y())
  27461. }
  27462. )
  27463. , b = Object(i.computed)(()=>d.workbook.state.value.sheets)
  27464. , _ = Object(i.computed)(()=>d.workbook.state.value.zoomScale)
  27465. , w = Object(i.computed)(()=>!d.workbook.state.value.isReady)
  27466. , S = Object(i.computed)(()=>d.workbook.state.value.currentSheetId);
  27467. return {
  27468. container: n,
  27469. manifests: c.a,
  27470. handleZoomIn: ()=>d.workbook.actions.zoomIn(),
  27471. handleZoomOut: ()=>d.workbook.actions.zoomOut(),
  27472. handleZoom: e=>d.workbook.actions.zoom(e),
  27473. handleToggleFullscreen: ()=>d.workbook.actions.toggleFullscreen(),
  27474. handleSwitchSheet: e=>d.workbook.actions.switchSheet(e),
  27475. handleGotoXmind: ()=>window.open("https://www.xmind.app"),
  27476. handleGotoXmindShare: ()=>window.open(e.xmindShareLink),
  27477. workbookContainer: t,
  27478. sheets: b,
  27479. zoomScale: _,
  27480. isLoadingShareMap: w,
  27481. isAppearanceDarkMode: h,
  27482. isFullScreen: v,
  27483. currentSheetId: S,
  27484. fileDownloadURL: a,
  27485. fileDownloadHeaders: o,
  27486. fileBinaryContent: s,
  27487. isMobile: l,
  27488. isIphone: u,
  27489. resourceStorage: m,
  27490. pitchModeKey: g
  27491. }
  27492. }
  27493. })
  27494. , m = (n(470),
  27495. n(0))
  27496. , v = Object(m.a)(g, (function() {
  27497. var e = this
  27498. , t = e.$createElement
  27499. , n = e._self._c || t;
  27500. return n("div", {
  27501. ref: "container",
  27502. staticClass: "share-embed h-100 w-100 position-relative",
  27503. class: {
  27504. dark: e.isAppearanceDarkMode
  27505. }
  27506. }, [e.fileBinaryContent ? n("base-map", {
  27507. staticClass: "h-100 w-100",
  27508. attrs: {
  27509. "file-binary-content": e.fileBinaryContent
  27510. }
  27511. }) : e._e(), e._v(" "), e.pitchModeKey ? n("pitch-mode", {
  27512. key: e.pitchModeKey,
  27513. attrs: {
  27514. "resource-storage": e.resourceStorage
  27515. }
  27516. }) : e._e(), e._v(" "), n("div", {
  27517. staticClass: "xmind-logo top-left-bar position-absolute d-flex justify-content-center align-items-center"
  27518. }, [n("img", {
  27519. staticClass: "xmind-logo__img",
  27520. attrs: {
  27521. src: e.manifests.xmindLogo
  27522. },
  27523. on: {
  27524. click: e.handleGotoXmind
  27525. }
  27526. })]), e._v(" "), e.isLoadingShareMap ? n("loading-animation", {
  27527. attrs: {
  27528. "video-link": e.manifests.structureAnimationVideo,
  27529. "gif-link": e.manifests.structureAnimationGIF
  27530. }
  27531. }) : n("div", {
  27532. staticClass: "bottom-right-bar floating-bar position-absolute d-flex flex-middle ml-spacing"
  27533. }, [e.sheets.length > 1 ? [n("frame-sheets-bar", {
  27534. attrs: {
  27535. "current-sheet-id": e.currentSheetId,
  27536. sheets: e.sheets
  27537. },
  27538. on: {
  27539. "switch-sheet": e.handleSwitchSheet
  27540. }
  27541. }), e._v(" "), n("hr", {
  27542. staticClass: "floating-bar__vertical-separator"
  27543. })] : e._e(), e._v(" "), n("frame-zoom-scale-bar", {
  27544. attrs: {
  27545. "zoom-scale": e.zoomScale
  27546. },
  27547. on: {
  27548. "zoom-in": e.handleZoomIn,
  27549. "zoom-out": e.handleZoomOut,
  27550. zoom: e.handleZoom
  27551. }
  27552. }), e._v(" "), e.isMobile ? e._e() : n("button", {
  27553. staticClass: "btn btn-icon ml-spacing",
  27554. on: {
  27555. click: e.handleToggleFullscreen
  27556. }
  27557. }, [n("svg", {
  27558. attrs: {
  27559. width: "24",
  27560. height: "24",
  27561. viewBox: "0 0 24 24",
  27562. fill: "none",
  27563. xmlns: "http://www.w3.org/2000/svg"
  27564. }
  27565. }, [n("path", {
  27566. attrs: {
  27567. d: "M4.8002 4.5C4.21024 4.5 3.69109 4.77329 3.33199 5.13262C2.97297 5.49186 2.7002 6.01088 2.7002 6.6V10.2C2.7002 10.6971 3.10314 11.1 3.6002 11.1C4.09725 11.1 4.5002 10.6971 4.5002 10.2V6.6C4.5002 6.57262 4.51861 6.49164 4.60518 6.40501C4.69168 6.31846 4.77253 6.3 4.8002 6.3H9.0002C9.49725 6.3 9.9002 5.89706 9.9002 5.4C9.9002 4.90294 9.49725 4.5 9.0002 4.5H4.8002Z",
  27568. fill: "#27292A"
  27569. }
  27570. }), e._v(" "), n("path", {
  27571. attrs: {
  27572. d: "M4.5002 13.8C4.5002 13.3029 4.09725 12.9 3.6002 12.9C3.10314 12.9 2.7002 13.3029 2.7002 13.8V17.4C2.7002 17.9927 2.98749 18.5101 3.3388 18.8614C3.69011 19.2127 4.20749 19.5 4.8002 19.5H8.4002C8.89725 19.5 9.3002 19.0971 9.3002 18.6C9.3002 18.1029 8.89725 17.7 8.4002 17.7H4.8002C4.7929 17.7 4.71028 17.6873 4.61159 17.5886C4.5129 17.4899 4.5002 17.4073 4.5002 17.4V13.8Z",
  27573. fill: "#27292A"
  27574. }
  27575. }), e._v(" "), n("path", {
  27576. attrs: {
  27577. d: "M14.1002 5.4C14.1002 4.90294 14.5031 4.5 15.0002 4.5H19.2508C20.3649 4.5 21.2691 5.40298 21.2691 6.51713V10.2C21.2691 10.6971 20.8661 11.1 20.3691 11.1C19.872 11.1 19.4691 10.6971 19.4691 10.2V6.51713C19.4691 6.39827 19.372 6.3 19.2508 6.3H15.0002C14.5031 6.3 14.1002 5.89706 14.1002 5.4Z",
  27578. fill: "#27292A"
  27579. }
  27580. }), e._v(" "), n("path", {
  27581. attrs: {
  27582. d: "M21.3002 13.8C21.3002 13.3029 20.8973 12.9 20.4002 12.9C19.9031 12.9 19.5002 13.3029 19.5002 13.8V17.4C19.5002 17.4282 19.4816 17.509 19.3954 17.5952C19.3092 17.6814 19.2284 17.7 19.2002 17.7H15.6002C15.1031 17.7 14.7002 18.1029 14.7002 18.6C14.7002 19.0971 15.1031 19.5 15.6002 19.5H19.2002C19.7896 19.5 20.3088 19.2274 20.6682 18.868C21.0276 18.5086 21.3002 17.9894 21.3002 17.4V13.8Z",
  27583. fill: "#27292A"
  27584. }
  27585. })])]), e._v(" "), e.isIphone ? e._e() : n("div", {
  27586. staticClass: "ml-spacing"
  27587. }, [n("button", {
  27588. staticClass: "btn btn-icon",
  27589. attrs: {
  27590. type: "button"
  27591. },
  27592. on: {
  27593. click: function(t) {
  27594. e.pitchModeKey += 1
  27595. }
  27596. }
  27597. }, [n("svg", {
  27598. attrs: {
  27599. width: "24",
  27600. height: "24",
  27601. viewBox: "0 0 24 24",
  27602. fill: "none",
  27603. xmlns: "http://www.w3.org/2000/svg"
  27604. }
  27605. }, [n("path", {
  27606. attrs: {
  27607. d: "M10.0357 15C10.1964 15 10.338 14.9487 10.514 14.8563L15.0332 12.52C15.3622 12.3489 15.5 12.2155 15.5 12C15.5 11.7845 15.3622 11.6545 15.0332 11.48L10.514 9.14367C10.338 9.05131 10.1964 9 10.0357 9C9.72194 9 9.5 9.21551 9.5 9.55416V14.4458C9.5 14.7879 9.72194 15 10.0357 15Z",
  27608. fill: "currentcolor"
  27609. }
  27610. }), e._v(" "), n("rect", {
  27611. attrs: {
  27612. x: "3",
  27613. y: "5",
  27614. width: "18",
  27615. height: "14",
  27616. rx: "3",
  27617. stroke: "currentcolor",
  27618. "stroke-width": "2"
  27619. }
  27620. })])])]), e._v(" "), n("button", {
  27621. directives: [{
  27622. name: "show",
  27623. rawName: "v-show",
  27624. value: e.xmindShareLink,
  27625. expression: "xmindShareLink"
  27626. }],
  27627. staticClass: "btn btn-icon ml-spacing",
  27628. on: {
  27629. click: e.handleGotoXmindShare
  27630. }
  27631. }, [n("span", {
  27632. staticClass: "icon-jump"
  27633. })])], 2)], 1)
  27634. }
  27635. ), [], !1, null, null, null);
  27636. t.default = v.exports
  27637. },
  27638. 470: function(e, t, n) {
  27639. "use strict";
  27640. n(332)
  27641. },
  27642. 471: function(e, t, n) {
  27643. (e.exports = n(2)(!1)).push([e.i, ".xm-color-g10{color:#fcfcfc}.xm-color-g20{color:#f9f9f9}.xm-color-g30{color:#ebebeb}.xm-color-g40{color:#d6d6d6}.xm-color-g50{color:#b2b2b2}.xm-color-g60{color:#8c8c8c}.xm-color-g70{color:#666}.xm-color-g80{color:#2b2b2b}.xm-color-g90{color:#111}.share-embed{background-color:white}.share-embed .xmind-logo .xmind-logo__img{cursor:pointer}.share-embed .top-left-bar{left:14px;top:14px}.share-embed .top-left-bar .top-left-bar__title{line-height:1.25;font-size:20px;padding-left:18px;padding-right:18px;padding-top:4px;padding-bottom:3px}.share-embed .top-left-bar .top-left-bar__title a{color:inherit}.share-embed .top-left-bar .top-left-bar__title a:hover{text-decoration:none}.share-embed .bottom-right-bar{right:14px;bottom:14px}\n", ""])
  27644. },
  27645. 5: function(e, t, n) {
  27646. "use strict";
  27647. var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) {
  27648. void 0 === r && (r = n),
  27649. Object.defineProperty(e, r, {
  27650. enumerable: !0,
  27651. get: function() {
  27652. return t[n]
  27653. }
  27654. })
  27655. }
  27656. : function(e, t, n, r) {
  27657. void 0 === r && (r = n),
  27658. e[r] = t[n]
  27659. }
  27660. )
  27661. , i = this && this.__exportStar || function(e, t) {
  27662. for (var n in e)
  27663. "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n)
  27664. }
  27665. ;
  27666. Object.defineProperty(t, "__esModule", {
  27667. value: !0
  27668. }),
  27669. i(n(239), t),
  27670. i(n(240), t),
  27671. i(n(156), t),
  27672. i(n(157), t),
  27673. i(n(241), t),
  27674. i(n(242), t),
  27675. i(n(243), t),
  27676. i(n(256), t)
  27677. },
  27678. 50: function(e, t, n) {
  27679. "use strict";
  27680. var r = this && this.__importDefault || function(e) {
  27681. return e && e.__esModule ? e : {
  27682. default: e
  27683. }
  27684. }
  27685. ;
  27686. Object.defineProperty(t, "__esModule", {
  27687. value: !0
  27688. }),
  27689. t.ViewAnimator = void 0;
  27690. const i = r(n(70));
  27691. class o {
  27692. constructor(e) {
  27693. var t;
  27694. this._pendingChanges = new Map,
  27695. this.duration = e.duration,
  27696. this.easing = null !== (t = e.easing) && void 0 !== t ? t : "linear"
  27697. }
  27698. registerPendingChange(e, t) {
  27699. var n;
  27700. const r = null !== (n = this._pendingChanges.get(e)) && void 0 !== n ? n : {};
  27701. this._pendingChanges.set(e, Object.assign(Object.assign({}, r), t))
  27702. }
  27703. animate(e) {
  27704. const t = o.current;
  27705. return o.current = this,
  27706. e(),
  27707. o.current = t,
  27708. this
  27709. }
  27710. play() {
  27711. const e = this._pendingChanges;
  27712. this._pendingChanges = new Map;
  27713. const t = {
  27714. duration: this.duration,
  27715. easing: this.easing
  27716. };
  27717. return Promise.all(Array.from(e, ([e,n])=>i.default(Object.assign(Object.assign(Object.assign({}, a(n, e)), t), {
  27718. targets: e
  27719. })).finished)).then(()=>{}
  27720. )
  27721. }
  27722. static perform(e, t) {
  27723. o.current ? o.current.registerPendingChange(e, t) : i.default.set(e, a(t, e))
  27724. }
  27725. }
  27726. function a(e, t) {
  27727. const n = Object.assign({}, e);
  27728. return void 0 !== e.strokeOffset ? (n.strokeDashoffset = i.default.setDashoffset(t) * e.strokeOffset,
  27729. delete n.strokeOffset) : e.transform && ("none" !== e.transform && e.transform.forEach(e=>{
  27730. "translate"in e && (n.translateX = e.translate.x,
  27731. n.translateY = e.translate.y),
  27732. "scale"in e && (n.scaleX = e.scale.x,
  27733. n.scaleY = e.scale.y),
  27734. "rotate"in e && (n.rotate = e.rotate)
  27735. }
  27736. ),
  27737. delete n.transform),
  27738. n
  27739. }
  27740. t.ViewAnimator = o,
  27741. o.current = null
  27742. },
  27743. 51: function(e, t, n) {
  27744. "use strict";
  27745. Object.defineProperty(t, "__esModule", {
  27746. value: !0
  27747. }),
  27748. t.htmlClassesForBox = t.forEachBoxViewIn = t.BoxView = void 0;
  27749. const r = n(12)
  27750. , i = n(76)
  27751. , o = n(50)
  27752. , a = n(110);
  27753. class s extends i.View {
  27754. constructor(e) {
  27755. super(e),
  27756. this._cachedState = null,
  27757. this._eventListener = e=>{
  27758. switch (e.type) {
  27759. case "click":
  27760. return this._onClick(e);
  27761. case "mouseenter":
  27762. return this._onMouseEnter(e);
  27763. case "mouseleave":
  27764. return this._onMouseLeave(e);
  27765. case "mousedown":
  27766. return this._onMouseDown(e);
  27767. case "mouseup":
  27768. return this._onMouseUp(e)
  27769. }
  27770. }
  27771. ,
  27772. this.box = e.box,
  27773. this.renderedState = {
  27774. id: e.box.id
  27775. }
  27776. }
  27777. get state() {
  27778. var e, t, n;
  27779. if (this._cachedState)
  27780. return this._cachedState;
  27781. const r = null === (e = a.findPresentationContext(this, "slideState")) || void 0 === e ? void 0 : e.slideState;
  27782. return this._cachedState = null !== (n = null === (t = null == r ? void 0 : r.boxes) || void 0 === t ? void 0 : t.find(e=>e.id === this.box.id)) && void 0 !== n ? n : {
  27783. id: this.box.id
  27784. },
  27785. this._cachedState
  27786. }
  27787. update() {
  27788. var e, t;
  27789. super.update(),
  27790. this._cachedState = null,
  27791. this.renderedState.id = this.box.id;
  27792. const n = this.box.bounds;
  27793. this.el.style.left = r.toCSSLength(n.x),
  27794. this.el.style.top = r.toCSSLength(n.y),
  27795. this.el.style.width = r.toCSSLength(n.width),
  27796. this.el.style.height = r.toCSSLength(n.height),
  27797. this.el.style.transformOrigin = "center center",
  27798. this.el.setAttribute("class", l(this.box)),
  27799. this.updateStyle(this.state, "opacity", e=>o.ViewAnimator.perform(this.el, {
  27800. opacity: null != e ? e : 1
  27801. })),
  27802. this.updateStyle(this.state, "transform", e=>o.ViewAnimator.perform(this.el, {
  27803. transform: null != e ? e : "none"
  27804. }));
  27805. const i = this.connected && "presenterPerspective" === (null === (e = a.findPresentationContext(this, "slideState")) || void 0 === e ? void 0 : e.slideState.mode) && (null === (t = a.findPresentationContext(this, "presentationState")) || void 0 === t ? void 0 : t.presentationState.showCursor);
  27806. this.el.style.cursor = this.box.requestForHit && i ? "pointer" : ""
  27807. }
  27808. updateStyle(e, t, n) {
  27809. var r;
  27810. const i = null !== (r = null == e ? void 0 : e[t]) && void 0 !== r ? r : this.box[t];
  27811. i !== this.renderedState[t] && (n(i),
  27812. this.renderedState[t] = i)
  27813. }
  27814. connect() {
  27815. super.connect(),
  27816. this.el.addEventListener("click", this._eventListener),
  27817. this.el.addEventListener("mouseenter", this._eventListener),
  27818. this.el.addEventListener("mouseleave", this._eventListener),
  27819. this.el.addEventListener("mousedown", this._eventListener),
  27820. this.el.addEventListener("mouseup", this._eventListener)
  27821. }
  27822. disconnect() {
  27823. this.el.removeEventListener("click", this._eventListener),
  27824. this.el.removeEventListener("mouseenter", this._eventListener),
  27825. this.el.removeEventListener("mouseleave", this._eventListener),
  27826. this.el.removeEventListener("mousedown", this._eventListener),
  27827. this.el.removeEventListener("mouseup", this._eventListener),
  27828. super.disconnect()
  27829. }
  27830. _onClick(e) {
  27831. if (!this.box.requestForHit)
  27832. return;
  27833. const t = a.findPresentationContext(this, "boxViewDidGetHit");
  27834. t && (e.stopPropagation(),
  27835. t.boxViewDidGetHit(this))
  27836. }
  27837. _onMouseEnter(e) {
  27838. var t;
  27839. this.box.requestForHit && (null === (t = a.findPresentationContext(this, "boxViewDidGetPointerEntered")) || void 0 === t || t.boxViewDidGetPointerEntered(this))
  27840. }
  27841. _onMouseLeave(e) {
  27842. var t;
  27843. this.box.requestForHit && (null === (t = a.findPresentationContext(this, "boxViewDidGetPointerLeft")) || void 0 === t || t.boxViewDidGetPointerLeft(this))
  27844. }
  27845. _onMouseDown(e) {
  27846. var t;
  27847. this.box.requestForHit && (null === (t = a.findPresentationContext(this, "boxViewDidGetPointerCaptured")) || void 0 === t || t.boxViewDidGetPointerCaptured(this))
  27848. }
  27849. _onMouseUp(e) {
  27850. var t;
  27851. this.box.requestForHit && (null === (t = a.findPresentationContext(this, "boxViewDidGetPointerReleased")) || void 0 === t || t.boxViewDidGetPointerReleased(this))
  27852. }
  27853. }
  27854. function l(e) {
  27855. switch (e.contentType) {
  27856. case "text":
  27857. return "pancake-view-text";
  27858. case "group":
  27859. return "pancake-view-group";
  27860. case "image":
  27861. return "pancake-view-image";
  27862. case "shape":
  27863. return "pancake-view-shape";
  27864. case "svg-template":
  27865. return "pancake-view-svg-template"
  27866. }
  27867. }
  27868. t.BoxView = s,
  27869. t.forEachBoxViewIn = function e(t, n) {
  27870. let r = !1;
  27871. for (const i of t) {
  27872. if (n(i, ()=>{
  27873. r = !0
  27874. }
  27875. ),
  27876. r)
  27877. return;
  27878. if ("group" === i.box.contentType && "subviews"in i && (e(i.subviews, (e,t)=>{
  27879. n(e, ()=>{
  27880. r = !0,
  27881. t()
  27882. }
  27883. )
  27884. }
  27885. ),
  27886. r))
  27887. return
  27888. }
  27889. }
  27890. ,
  27891. t.htmlClassesForBox = l
  27892. },
  27893. 60: function(e, t, n) {
  27894. "use strict";
  27895. n.r(t),
  27896. function(e, n) {
  27897. /*!
  27898. * Vue.js v2.6.14
  27899. * (c) 2014-2021 Evan You
  27900. * Released under the MIT License.
  27901. */
  27902. var r = Object.freeze({});
  27903. function i(e) {
  27904. return null == e
  27905. }
  27906. function o(e) {
  27907. return null != e
  27908. }
  27909. function a(e) {
  27910. return !0 === e
  27911. }
  27912. function s(e) {
  27913. return "string" == typeof e || "number" == typeof e || "symbol" == typeof e || "boolean" == typeof e
  27914. }
  27915. function l(e) {
  27916. return null !== e && "object" == typeof e
  27917. }
  27918. var u = Object.prototype.toString;
  27919. function c(e) {
  27920. return "[object Object]" === u.call(e)
  27921. }
  27922. function d(e) {
  27923. return "[object RegExp]" === u.call(e)
  27924. }
  27925. function f(e) {
  27926. var t = parseFloat(String(e));
  27927. return t >= 0 && Math.floor(t) === t && isFinite(e)
  27928. }
  27929. function h(e) {
  27930. return o(e) && "function" == typeof e.then && "function" == typeof e.catch
  27931. }
  27932. function p(e) {
  27933. return null == e ? "" : Array.isArray(e) || c(e) && e.toString === u ? JSON.stringify(e, null, 2) : String(e)
  27934. }
  27935. function g(e) {
  27936. var t = parseFloat(e);
  27937. return isNaN(t) ? e : t
  27938. }
  27939. function m(e, t) {
  27940. for (var n = Object.create(null), r = e.split(","), i = 0; i < r.length; i++)
  27941. n[r[i]] = !0;
  27942. return t ? function(e) {
  27943. return n[e.toLowerCase()]
  27944. }
  27945. : function(e) {
  27946. return n[e]
  27947. }
  27948. }
  27949. m("slot,component", !0);
  27950. var v = m("key,ref,slot,slot-scope,is");
  27951. function y(e, t) {
  27952. if (e.length) {
  27953. var n = e.indexOf(t);
  27954. if (n > -1)
  27955. return e.splice(n, 1)
  27956. }
  27957. }
  27958. var b = Object.prototype.hasOwnProperty;
  27959. function _(e, t) {
  27960. return b.call(e, t)
  27961. }
  27962. function w(e) {
  27963. var t = Object.create(null);
  27964. return function(n) {
  27965. return t[n] || (t[n] = e(n))
  27966. }
  27967. }
  27968. var S = /-(\w)/g
  27969. , x = w((function(e) {
  27970. return e.replace(S, (function(e, t) {
  27971. return t ? t.toUpperCase() : ""
  27972. }
  27973. ))
  27974. }
  27975. ))
  27976. , k = w((function(e) {
  27977. return e.charAt(0).toUpperCase() + e.slice(1)
  27978. }
  27979. ))
  27980. , I = /\B([A-Z])/g
  27981. , C = w((function(e) {
  27982. return e.replace(I, "-$1").toLowerCase()
  27983. }
  27984. ));
  27985. var M = Function.prototype.bind ? function(e, t) {
  27986. return e.bind(t)
  27987. }
  27988. : function(e, t) {
  27989. function n(n) {
  27990. var r = arguments.length;
  27991. return r ? r > 1 ? e.apply(t, arguments) : e.call(t, n) : e.call(t)
  27992. }
  27993. return n._length = e.length,
  27994. n
  27995. }
  27996. ;
  27997. function T(e, t) {
  27998. t = t || 0;
  27999. for (var n = e.length - t, r = new Array(n); n--; )
  28000. r[n] = e[n + t];
  28001. return r
  28002. }
  28003. function A(e, t) {
  28004. for (var n in t)
  28005. e[n] = t[n];
  28006. return e
  28007. }
  28008. function E(e) {
  28009. for (var t = {}, n = 0; n < e.length; n++)
  28010. e[n] && A(t, e[n]);
  28011. return t
  28012. }
  28013. function O(e, t, n) {}
  28014. var B = function(e, t, n) {
  28015. return !1
  28016. }
  28017. , L = function(e) {
  28018. return e
  28019. };
  28020. function P(e, t) {
  28021. if (e === t)
  28022. return !0;
  28023. var n = l(e)
  28024. , r = l(t);
  28025. if (!n || !r)
  28026. return !n && !r && String(e) === String(t);
  28027. try {
  28028. var i = Array.isArray(e)
  28029. , o = Array.isArray(t);
  28030. if (i && o)
  28031. return e.length === t.length && e.every((function(e, n) {
  28032. return P(e, t[n])
  28033. }
  28034. ));
  28035. if (e instanceof Date && t instanceof Date)
  28036. return e.getTime() === t.getTime();
  28037. if (i || o)
  28038. return !1;
  28039. var a = Object.keys(e)
  28040. , s = Object.keys(t);
  28041. return a.length === s.length && a.every((function(n) {
  28042. return P(e[n], t[n])
  28043. }
  28044. ))
  28045. } catch (e) {
  28046. return !1
  28047. }
  28048. }
  28049. function R(e, t) {
  28050. for (var n = 0; n < e.length; n++)
  28051. if (P(e[n], t))
  28052. return n;
  28053. return -1
  28054. }
  28055. function z(e) {
  28056. var t = !1;
  28057. return function() {
  28058. t || (t = !0,
  28059. e.apply(this, arguments))
  28060. }
  28061. }
  28062. var j = ["component", "directive", "filter"]
  28063. , F = ["beforeCreate", "created", "beforeMount", "mounted", "beforeUpdate", "updated", "beforeDestroy", "destroyed", "activated", "deactivated", "errorCaptured", "serverPrefetch"]
  28064. , D = {
  28065. optionMergeStrategies: Object.create(null),
  28066. silent: !1,
  28067. productionTip: !1,
  28068. devtools: !1,
  28069. performance: !1,
  28070. errorHandler: null,
  28071. warnHandler: null,
  28072. ignoredElements: [],
  28073. keyCodes: Object.create(null),
  28074. isReservedTag: B,
  28075. isReservedAttr: B,
  28076. isUnknownElement: B,
  28077. getTagNamespace: O,
  28078. parsePlatformTagName: L,
  28079. mustUseProp: B,
  28080. async: !0,
  28081. _lifecycleHooks: F
  28082. }
  28083. , N = /a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;
  28084. function U(e, t, n, r) {
  28085. Object.defineProperty(e, t, {
  28086. value: n,
  28087. enumerable: !!r,
  28088. writable: !0,
  28089. configurable: !0
  28090. })
  28091. }
  28092. var W = new RegExp("[^" + N.source + ".$_\\d]");
  28093. var H, V = "__proto__"in {}, $ = "undefined" != typeof window, G = "undefined" != typeof WXEnvironment && !!WXEnvironment.platform, Z = G && WXEnvironment.platform.toLowerCase(), q = $ && window.navigator.userAgent.toLowerCase(), Y = q && /msie|trident/.test(q), X = q && q.indexOf("msie 9.0") > 0, J = q && q.indexOf("edge/") > 0, Q = (q && q.indexOf("android"),
  28094. q && /iphone|ipad|ipod|ios/.test(q) || "ios" === Z), K = (q && /chrome\/\d+/.test(q),
  28095. q && /phantomjs/.test(q),
  28096. q && q.match(/firefox\/(\d+)/)), ee = {}.watch, te = !1;
  28097. if ($)
  28098. try {
  28099. var ne = {};
  28100. Object.defineProperty(ne, "passive", {
  28101. get: function() {
  28102. te = !0
  28103. }
  28104. }),
  28105. window.addEventListener("test-passive", null, ne)
  28106. } catch (e) {}
  28107. var re = function() {
  28108. return void 0 === H && (H = !$ && !G && void 0 !== e && (e.process && "server" === e.process.env.VUE_ENV)),
  28109. H
  28110. }
  28111. , ie = $ && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  28112. function oe(e) {
  28113. return "function" == typeof e && /native code/.test(e.toString())
  28114. }
  28115. var ae, se = "undefined" != typeof Symbol && oe(Symbol) && "undefined" != typeof Reflect && oe(Reflect.ownKeys);
  28116. ae = "undefined" != typeof Set && oe(Set) ? Set : function() {
  28117. function e() {
  28118. this.set = Object.create(null)
  28119. }
  28120. return e.prototype.has = function(e) {
  28121. return !0 === this.set[e]
  28122. }
  28123. ,
  28124. e.prototype.add = function(e) {
  28125. this.set[e] = !0
  28126. }
  28127. ,
  28128. e.prototype.clear = function() {
  28129. this.set = Object.create(null)
  28130. }
  28131. ,
  28132. e
  28133. }();
  28134. var le = O
  28135. , ue = 0
  28136. , ce = function() {
  28137. this.id = ue++,
  28138. this.subs = []
  28139. };
  28140. ce.prototype.addSub = function(e) {
  28141. this.subs.push(e)
  28142. }
  28143. ,
  28144. ce.prototype.removeSub = function(e) {
  28145. y(this.subs, e)
  28146. }
  28147. ,
  28148. ce.prototype.depend = function() {
  28149. ce.target && ce.target.addDep(this)
  28150. }
  28151. ,
  28152. ce.prototype.notify = function() {
  28153. var e = this.subs.slice();
  28154. for (var t = 0, n = e.length; t < n; t++)
  28155. e[t].update()
  28156. }
  28157. ,
  28158. ce.target = null;
  28159. var de = [];
  28160. function fe(e) {
  28161. de.push(e),
  28162. ce.target = e
  28163. }
  28164. function he() {
  28165. de.pop(),
  28166. ce.target = de[de.length - 1]
  28167. }
  28168. var pe = function(e, t, n, r, i, o, a, s) {
  28169. this.tag = e,
  28170. this.data = t,
  28171. this.children = n,
  28172. this.text = r,
  28173. this.elm = i,
  28174. this.ns = void 0,
  28175. this.context = o,
  28176. this.fnContext = void 0,
  28177. this.fnOptions = void 0,
  28178. this.fnScopeId = void 0,
  28179. this.key = t && t.key,
  28180. this.componentOptions = a,
  28181. this.componentInstance = void 0,
  28182. this.parent = void 0,
  28183. this.raw = !1,
  28184. this.isStatic = !1,
  28185. this.isRootInsert = !0,
  28186. this.isComment = !1,
  28187. this.isCloned = !1,
  28188. this.isOnce = !1,
  28189. this.asyncFactory = s,
  28190. this.asyncMeta = void 0,
  28191. this.isAsyncPlaceholder = !1
  28192. }
  28193. , ge = {
  28194. child: {
  28195. configurable: !0
  28196. }
  28197. };
  28198. ge.child.get = function() {
  28199. return this.componentInstance
  28200. }
  28201. ,
  28202. Object.defineProperties(pe.prototype, ge);
  28203. var me = function(e) {
  28204. void 0 === e && (e = "");
  28205. var t = new pe;
  28206. return t.text = e,
  28207. t.isComment = !0,
  28208. t
  28209. };
  28210. function ve(e) {
  28211. return new pe(void 0,void 0,void 0,String(e))
  28212. }
  28213. function ye(e) {
  28214. var t = new pe(e.tag,e.data,e.children && e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);
  28215. return t.ns = e.ns,
  28216. t.isStatic = e.isStatic,
  28217. t.key = e.key,
  28218. t.isComment = e.isComment,
  28219. t.fnContext = e.fnContext,
  28220. t.fnOptions = e.fnOptions,
  28221. t.fnScopeId = e.fnScopeId,
  28222. t.asyncMeta = e.asyncMeta,
  28223. t.isCloned = !0,
  28224. t
  28225. }
  28226. var be = Array.prototype
  28227. , _e = Object.create(be);
  28228. ["push", "pop", "shift", "unshift", "splice", "sort", "reverse"].forEach((function(e) {
  28229. var t = be[e];
  28230. U(_e, e, (function() {
  28231. for (var n = [], r = arguments.length; r--; )
  28232. n[r] = arguments[r];
  28233. var i, o = t.apply(this, n), a = this.__ob__;
  28234. switch (e) {
  28235. case "push":
  28236. case "unshift":
  28237. i = n;
  28238. break;
  28239. case "splice":
  28240. i = n.slice(2)
  28241. }
  28242. return i && a.observeArray(i),
  28243. a.dep.notify(),
  28244. o
  28245. }
  28246. ))
  28247. }
  28248. ));
  28249. var we = Object.getOwnPropertyNames(_e)
  28250. , Se = !0;
  28251. function xe(e) {
  28252. Se = e
  28253. }
  28254. var ke = function(e) {
  28255. this.value = e,
  28256. this.dep = new ce,
  28257. this.vmCount = 0,
  28258. U(e, "__ob__", this),
  28259. Array.isArray(e) ? (V ? function(e, t) {
  28260. e.__proto__ = t
  28261. }(e, _e) : function(e, t, n) {
  28262. for (var r = 0, i = n.length; r < i; r++) {
  28263. var o = n[r];
  28264. U(e, o, t[o])
  28265. }
  28266. }(e, _e, we),
  28267. this.observeArray(e)) : this.walk(e)
  28268. };
  28269. function Ie(e, t) {
  28270. var n;
  28271. if (l(e) && !(e instanceof pe))
  28272. return _(e, "__ob__") && e.__ob__ instanceof ke ? n = e.__ob__ : Se && !re() && (Array.isArray(e) || c(e)) && Object.isExtensible(e) && !e._isVue && (n = new ke(e)),
  28273. t && n && n.vmCount++,
  28274. n
  28275. }
  28276. function Ce(e, t, n, r, i) {
  28277. var o = new ce
  28278. , a = Object.getOwnPropertyDescriptor(e, t);
  28279. if (!a || !1 !== a.configurable) {
  28280. var s = a && a.get
  28281. , l = a && a.set;
  28282. s && !l || 2 !== arguments.length || (n = e[t]);
  28283. var u = !i && Ie(n);
  28284. Object.defineProperty(e, t, {
  28285. enumerable: !0,
  28286. configurable: !0,
  28287. get: function() {
  28288. var t = s ? s.call(e) : n;
  28289. return ce.target && (o.depend(),
  28290. u && (u.dep.depend(),
  28291. Array.isArray(t) && Ae(t))),
  28292. t
  28293. },
  28294. set: function(t) {
  28295. var r = s ? s.call(e) : n;
  28296. t === r || t != t && r != r || s && !l || (l ? l.call(e, t) : n = t,
  28297. u = !i && Ie(t),
  28298. o.notify())
  28299. }
  28300. })
  28301. }
  28302. }
  28303. function Me(e, t, n) {
  28304. if (Array.isArray(e) && f(t))
  28305. return e.length = Math.max(e.length, t),
  28306. e.splice(t, 1, n),
  28307. n;
  28308. if (t in e && !(t in Object.prototype))
  28309. return e[t] = n,
  28310. n;
  28311. var r = e.__ob__;
  28312. return e._isVue || r && r.vmCount ? n : r ? (Ce(r.value, t, n),
  28313. r.dep.notify(),
  28314. n) : (e[t] = n,
  28315. n)
  28316. }
  28317. function Te(e, t) {
  28318. if (Array.isArray(e) && f(t))
  28319. e.splice(t, 1);
  28320. else {
  28321. var n = e.__ob__;
  28322. e._isVue || n && n.vmCount || _(e, t) && (delete e[t],
  28323. n && n.dep.notify())
  28324. }
  28325. }
  28326. function Ae(e) {
  28327. for (var t = void 0, n = 0, r = e.length; n < r; n++)
  28328. (t = e[n]) && t.__ob__ && t.__ob__.dep.depend(),
  28329. Array.isArray(t) && Ae(t)
  28330. }
  28331. ke.prototype.walk = function(e) {
  28332. for (var t = Object.keys(e), n = 0; n < t.length; n++)
  28333. Ce(e, t[n])
  28334. }
  28335. ,
  28336. ke.prototype.observeArray = function(e) {
  28337. for (var t = 0, n = e.length; t < n; t++)
  28338. Ie(e[t])
  28339. }
  28340. ;
  28341. var Ee = D.optionMergeStrategies;
  28342. function Oe(e, t) {
  28343. if (!t)
  28344. return e;
  28345. for (var n, r, i, o = se ? Reflect.ownKeys(t) : Object.keys(t), a = 0; a < o.length; a++)
  28346. "__ob__" !== (n = o[a]) && (r = e[n],
  28347. i = t[n],
  28348. _(e, n) ? r !== i && c(r) && c(i) && Oe(r, i) : Me(e, n, i));
  28349. return e
  28350. }
  28351. function Be(e, t, n) {
  28352. return n ? function() {
  28353. var r = "function" == typeof t ? t.call(n, n) : t
  28354. , i = "function" == typeof e ? e.call(n, n) : e;
  28355. return r ? Oe(r, i) : i
  28356. }
  28357. : t ? e ? function() {
  28358. return Oe("function" == typeof t ? t.call(this, this) : t, "function" == typeof e ? e.call(this, this) : e)
  28359. }
  28360. : t : e
  28361. }
  28362. function Le(e, t) {
  28363. var n = t ? e ? e.concat(t) : Array.isArray(t) ? t : [t] : e;
  28364. return n ? function(e) {
  28365. for (var t = [], n = 0; n < e.length; n++)
  28366. -1 === t.indexOf(e[n]) && t.push(e[n]);
  28367. return t
  28368. }(n) : n
  28369. }
  28370. function Pe(e, t, n, r) {
  28371. var i = Object.create(e || null);
  28372. return t ? A(i, t) : i
  28373. }
  28374. Ee.data = function(e, t, n) {
  28375. return n ? Be(e, t, n) : t && "function" != typeof t ? e : Be(e, t)
  28376. }
  28377. ,
  28378. F.forEach((function(e) {
  28379. Ee[e] = Le
  28380. }
  28381. )),
  28382. j.forEach((function(e) {
  28383. Ee[e + "s"] = Pe
  28384. }
  28385. )),
  28386. Ee.watch = function(e, t, n, r) {
  28387. if (e === ee && (e = void 0),
  28388. t === ee && (t = void 0),
  28389. !t)
  28390. return Object.create(e || null);
  28391. if (!e)
  28392. return t;
  28393. var i = {};
  28394. for (var o in A(i, e),
  28395. t) {
  28396. var a = i[o]
  28397. , s = t[o];
  28398. a && !Array.isArray(a) && (a = [a]),
  28399. i[o] = a ? a.concat(s) : Array.isArray(s) ? s : [s]
  28400. }
  28401. return i
  28402. }
  28403. ,
  28404. Ee.props = Ee.methods = Ee.inject = Ee.computed = function(e, t, n, r) {
  28405. if (!e)
  28406. return t;
  28407. var i = Object.create(null);
  28408. return A(i, e),
  28409. t && A(i, t),
  28410. i
  28411. }
  28412. ,
  28413. Ee.provide = Be;
  28414. var Re = function(e, t) {
  28415. return void 0 === t ? e : t
  28416. };
  28417. function ze(e, t, n) {
  28418. if ("function" == typeof t && (t = t.options),
  28419. function(e, t) {
  28420. var n = e.props;
  28421. if (n) {
  28422. var r, i, o = {};
  28423. if (Array.isArray(n))
  28424. for (r = n.length; r--; )
  28425. "string" == typeof (i = n[r]) && (o[x(i)] = {
  28426. type: null
  28427. });
  28428. else if (c(n))
  28429. for (var a in n)
  28430. i = n[a],
  28431. o[x(a)] = c(i) ? i : {
  28432. type: i
  28433. };
  28434. else
  28435. 0;
  28436. e.props = o
  28437. }
  28438. }(t),
  28439. function(e, t) {
  28440. var n = e.inject;
  28441. if (n) {
  28442. var r = e.inject = {};
  28443. if (Array.isArray(n))
  28444. for (var i = 0; i < n.length; i++)
  28445. r[n[i]] = {
  28446. from: n[i]
  28447. };
  28448. else if (c(n))
  28449. for (var o in n) {
  28450. var a = n[o];
  28451. r[o] = c(a) ? A({
  28452. from: o
  28453. }, a) : {
  28454. from: a
  28455. }
  28456. }
  28457. else
  28458. 0
  28459. }
  28460. }(t),
  28461. function(e) {
  28462. var t = e.directives;
  28463. if (t)
  28464. for (var n in t) {
  28465. var r = t[n];
  28466. "function" == typeof r && (t[n] = {
  28467. bind: r,
  28468. update: r
  28469. })
  28470. }
  28471. }(t),
  28472. !t._base && (t.extends && (e = ze(e, t.extends, n)),
  28473. t.mixins))
  28474. for (var r = 0, i = t.mixins.length; r < i; r++)
  28475. e = ze(e, t.mixins[r], n);
  28476. var o, a = {};
  28477. for (o in e)
  28478. s(o);
  28479. for (o in t)
  28480. _(e, o) || s(o);
  28481. function s(r) {
  28482. var i = Ee[r] || Re;
  28483. a[r] = i(e[r], t[r], n, r)
  28484. }
  28485. return a
  28486. }
  28487. function je(e, t, n, r) {
  28488. if ("string" == typeof n) {
  28489. var i = e[t];
  28490. if (_(i, n))
  28491. return i[n];
  28492. var o = x(n);
  28493. if (_(i, o))
  28494. return i[o];
  28495. var a = k(o);
  28496. return _(i, a) ? i[a] : i[n] || i[o] || i[a]
  28497. }
  28498. }
  28499. function Fe(e, t, n, r) {
  28500. var i = t[e]
  28501. , o = !_(n, e)
  28502. , a = n[e]
  28503. , s = We(Boolean, i.type);
  28504. if (s > -1)
  28505. if (o && !_(i, "default"))
  28506. a = !1;
  28507. else if ("" === a || a === C(e)) {
  28508. var l = We(String, i.type);
  28509. (l < 0 || s < l) && (a = !0)
  28510. }
  28511. if (void 0 === a) {
  28512. a = function(e, t, n) {
  28513. if (!_(t, "default"))
  28514. return;
  28515. var r = t.default;
  28516. 0;
  28517. if (e && e.$options.propsData && void 0 === e.$options.propsData[n] && void 0 !== e._props[n])
  28518. return e._props[n];
  28519. return "function" == typeof r && "Function" !== Ne(t.type) ? r.call(e) : r
  28520. }(r, i, e);
  28521. var u = Se;
  28522. xe(!0),
  28523. Ie(a),
  28524. xe(u)
  28525. }
  28526. return a
  28527. }
  28528. var De = /^\s*function (\w+)/;
  28529. function Ne(e) {
  28530. var t = e && e.toString().match(De);
  28531. return t ? t[1] : ""
  28532. }
  28533. function Ue(e, t) {
  28534. return Ne(e) === Ne(t)
  28535. }
  28536. function We(e, t) {
  28537. if (!Array.isArray(t))
  28538. return Ue(t, e) ? 0 : -1;
  28539. for (var n = 0, r = t.length; n < r; n++)
  28540. if (Ue(t[n], e))
  28541. return n;
  28542. return -1
  28543. }
  28544. function He(e, t, n) {
  28545. fe();
  28546. try {
  28547. if (t)
  28548. for (var r = t; r = r.$parent; ) {
  28549. var i = r.$options.errorCaptured;
  28550. if (i)
  28551. for (var o = 0; o < i.length; o++)
  28552. try {
  28553. if (!1 === i[o].call(r, e, t, n))
  28554. return
  28555. } catch (e) {
  28556. $e(e, r, "errorCaptured hook")
  28557. }
  28558. }
  28559. $e(e, t, n)
  28560. } finally {
  28561. he()
  28562. }
  28563. }
  28564. function Ve(e, t, n, r, i) {
  28565. var o;
  28566. try {
  28567. (o = n ? e.apply(t, n) : e.call(t)) && !o._isVue && h(o) && !o._handled && (o.catch((function(e) {
  28568. return He(e, r, i + " (Promise/async)")
  28569. }
  28570. )),
  28571. o._handled = !0)
  28572. } catch (e) {
  28573. He(e, r, i)
  28574. }
  28575. return o
  28576. }
  28577. function $e(e, t, n) {
  28578. if (D.errorHandler)
  28579. try {
  28580. return D.errorHandler.call(null, e, t, n)
  28581. } catch (t) {
  28582. t !== e && Ge(t, null, "config.errorHandler")
  28583. }
  28584. Ge(e, t, n)
  28585. }
  28586. function Ge(e, t, n) {
  28587. if (!$ && !G || "undefined" == typeof console)
  28588. throw e;
  28589. console.error(e)
  28590. }
  28591. var Ze, qe = !1, Ye = [], Xe = !1;
  28592. function Je() {
  28593. Xe = !1;
  28594. var e = Ye.slice(0);
  28595. Ye.length = 0;
  28596. for (var t = 0; t < e.length; t++)
  28597. e[t]()
  28598. }
  28599. if ("undefined" != typeof Promise && oe(Promise)) {
  28600. var Qe = Promise.resolve();
  28601. Ze = function() {
  28602. Qe.then(Je),
  28603. Q && setTimeout(O)
  28604. }
  28605. ,
  28606. qe = !0
  28607. } else if (Y || "undefined" == typeof MutationObserver || !oe(MutationObserver) && "[object MutationObserverConstructor]" !== MutationObserver.toString())
  28608. Ze = void 0 !== n && oe(n) ? function() {
  28609. n(Je)
  28610. }
  28611. : function() {
  28612. setTimeout(Je, 0)
  28613. }
  28614. ;
  28615. else {
  28616. var Ke = 1
  28617. , et = new MutationObserver(Je)
  28618. , tt = document.createTextNode(String(Ke));
  28619. et.observe(tt, {
  28620. characterData: !0
  28621. }),
  28622. Ze = function() {
  28623. Ke = (Ke + 1) % 2,
  28624. tt.data = String(Ke)
  28625. }
  28626. ,
  28627. qe = !0
  28628. }
  28629. function nt(e, t) {
  28630. var n;
  28631. if (Ye.push((function() {
  28632. if (e)
  28633. try {
  28634. e.call(t)
  28635. } catch (e) {
  28636. He(e, t, "nextTick")
  28637. }
  28638. else
  28639. n && n(t)
  28640. }
  28641. )),
  28642. Xe || (Xe = !0,
  28643. Ze()),
  28644. !e && "undefined" != typeof Promise)
  28645. return new Promise((function(e) {
  28646. n = e
  28647. }
  28648. ))
  28649. }
  28650. var rt = new ae;
  28651. function it(e) {
  28652. !function e(t, n) {
  28653. var r, i, o = Array.isArray(t);
  28654. if (!o && !l(t) || Object.isFrozen(t) || t instanceof pe)
  28655. return;
  28656. if (t.__ob__) {
  28657. var a = t.__ob__.dep.id;
  28658. if (n.has(a))
  28659. return;
  28660. n.add(a)
  28661. }
  28662. if (o)
  28663. for (r = t.length; r--; )
  28664. e(t[r], n);
  28665. else
  28666. for (i = Object.keys(t),
  28667. r = i.length; r--; )
  28668. e(t[i[r]], n)
  28669. }(e, rt),
  28670. rt.clear()
  28671. }
  28672. var ot = w((function(e) {
  28673. var t = "&" === e.charAt(0)
  28674. , n = "~" === (e = t ? e.slice(1) : e).charAt(0)
  28675. , r = "!" === (e = n ? e.slice(1) : e).charAt(0);
  28676. return {
  28677. name: e = r ? e.slice(1) : e,
  28678. once: n,
  28679. capture: r,
  28680. passive: t
  28681. }
  28682. }
  28683. ));
  28684. function at(e, t) {
  28685. function n() {
  28686. var e = arguments
  28687. , r = n.fns;
  28688. if (!Array.isArray(r))
  28689. return Ve(r, null, arguments, t, "v-on handler");
  28690. for (var i = r.slice(), o = 0; o < i.length; o++)
  28691. Ve(i[o], null, e, t, "v-on handler")
  28692. }
  28693. return n.fns = e,
  28694. n
  28695. }
  28696. function st(e, t, n, r, o, s) {
  28697. var l, u, c, d;
  28698. for (l in e)
  28699. u = e[l],
  28700. c = t[l],
  28701. d = ot(l),
  28702. i(u) || (i(c) ? (i(u.fns) && (u = e[l] = at(u, s)),
  28703. a(d.once) && (u = e[l] = o(d.name, u, d.capture)),
  28704. n(d.name, u, d.capture, d.passive, d.params)) : u !== c && (c.fns = u,
  28705. e[l] = c));
  28706. for (l in t)
  28707. i(e[l]) && r((d = ot(l)).name, t[l], d.capture)
  28708. }
  28709. function lt(e, t, n) {
  28710. var r;
  28711. e instanceof pe && (e = e.data.hook || (e.data.hook = {}));
  28712. var s = e[t];
  28713. function l() {
  28714. n.apply(this, arguments),
  28715. y(r.fns, l)
  28716. }
  28717. i(s) ? r = at([l]) : o(s.fns) && a(s.merged) ? (r = s).fns.push(l) : r = at([s, l]),
  28718. r.merged = !0,
  28719. e[t] = r
  28720. }
  28721. function ut(e, t, n, r, i) {
  28722. if (o(t)) {
  28723. if (_(t, n))
  28724. return e[n] = t[n],
  28725. i || delete t[n],
  28726. !0;
  28727. if (_(t, r))
  28728. return e[n] = t[r],
  28729. i || delete t[r],
  28730. !0
  28731. }
  28732. return !1
  28733. }
  28734. function ct(e) {
  28735. return s(e) ? [ve(e)] : Array.isArray(e) ? function e(t, n) {
  28736. var r, l, u, c, d = [];
  28737. for (r = 0; r < t.length; r++)
  28738. i(l = t[r]) || "boolean" == typeof l || (u = d.length - 1,
  28739. c = d[u],
  28740. Array.isArray(l) ? l.length > 0 && (dt((l = e(l, (n || "") + "_" + r))[0]) && dt(c) && (d[u] = ve(c.text + l[0].text),
  28741. l.shift()),
  28742. d.push.apply(d, l)) : s(l) ? dt(c) ? d[u] = ve(c.text + l) : "" !== l && d.push(ve(l)) : dt(l) && dt(c) ? d[u] = ve(c.text + l.text) : (a(t._isVList) && o(l.tag) && i(l.key) && o(n) && (l.key = "__vlist" + n + "_" + r + "__"),
  28743. d.push(l)));
  28744. return d
  28745. }(e) : void 0
  28746. }
  28747. function dt(e) {
  28748. return o(e) && o(e.text) && !1 === e.isComment
  28749. }
  28750. function ft(e, t) {
  28751. if (e) {
  28752. for (var n = Object.create(null), r = se ? Reflect.ownKeys(e) : Object.keys(e), i = 0; i < r.length; i++) {
  28753. var o = r[i];
  28754. if ("__ob__" !== o) {
  28755. for (var a = e[o].from, s = t; s; ) {
  28756. if (s._provided && _(s._provided, a)) {
  28757. n[o] = s._provided[a];
  28758. break
  28759. }
  28760. s = s.$parent
  28761. }
  28762. if (!s)
  28763. if ("default"in e[o]) {
  28764. var l = e[o].default;
  28765. n[o] = "function" == typeof l ? l.call(t) : l
  28766. } else
  28767. 0
  28768. }
  28769. }
  28770. return n
  28771. }
  28772. }
  28773. function ht(e, t) {
  28774. if (!e || !e.length)
  28775. return {};
  28776. for (var n = {}, r = 0, i = e.length; r < i; r++) {
  28777. var o = e[r]
  28778. , a = o.data;
  28779. if (a && a.attrs && a.attrs.slot && delete a.attrs.slot,
  28780. o.context !== t && o.fnContext !== t || !a || null == a.slot)
  28781. (n.default || (n.default = [])).push(o);
  28782. else {
  28783. var s = a.slot
  28784. , l = n[s] || (n[s] = []);
  28785. "template" === o.tag ? l.push.apply(l, o.children || []) : l.push(o)
  28786. }
  28787. }
  28788. for (var u in n)
  28789. n[u].every(pt) && delete n[u];
  28790. return n
  28791. }
  28792. function pt(e) {
  28793. return e.isComment && !e.asyncFactory || " " === e.text
  28794. }
  28795. function gt(e) {
  28796. return e.isComment && e.asyncFactory
  28797. }
  28798. function mt(e, t, n) {
  28799. var i, o = Object.keys(t).length > 0, a = e ? !!e.$stable : !o, s = e && e.$key;
  28800. if (e) {
  28801. if (e._normalized)
  28802. return e._normalized;
  28803. if (a && n && n !== r && s === n.$key && !o && !n.$hasNormal)
  28804. return n;
  28805. for (var l in i = {},
  28806. e)
  28807. e[l] && "$" !== l[0] && (i[l] = vt(t, l, e[l]))
  28808. } else
  28809. i = {};
  28810. for (var u in t)
  28811. u in i || (i[u] = yt(t, u));
  28812. return e && Object.isExtensible(e) && (e._normalized = i),
  28813. U(i, "$stable", a),
  28814. U(i, "$key", s),
  28815. U(i, "$hasNormal", o),
  28816. i
  28817. }
  28818. function vt(e, t, n) {
  28819. var r = function() {
  28820. var e = arguments.length ? n.apply(null, arguments) : n({})
  28821. , t = (e = e && "object" == typeof e && !Array.isArray(e) ? [e] : ct(e)) && e[0];
  28822. return e && (!t || 1 === e.length && t.isComment && !gt(t)) ? void 0 : e
  28823. };
  28824. return n.proxy && Object.defineProperty(e, t, {
  28825. get: r,
  28826. enumerable: !0,
  28827. configurable: !0
  28828. }),
  28829. r
  28830. }
  28831. function yt(e, t) {
  28832. return function() {
  28833. return e[t]
  28834. }
  28835. }
  28836. function bt(e, t) {
  28837. var n, r, i, a, s;
  28838. if (Array.isArray(e) || "string" == typeof e)
  28839. for (n = new Array(e.length),
  28840. r = 0,
  28841. i = e.length; r < i; r++)
  28842. n[r] = t(e[r], r);
  28843. else if ("number" == typeof e)
  28844. for (n = new Array(e),
  28845. r = 0; r < e; r++)
  28846. n[r] = t(r + 1, r);
  28847. else if (l(e))
  28848. if (se && e[Symbol.iterator]) {
  28849. n = [];
  28850. for (var u = e[Symbol.iterator](), c = u.next(); !c.done; )
  28851. n.push(t(c.value, n.length)),
  28852. c = u.next()
  28853. } else
  28854. for (a = Object.keys(e),
  28855. n = new Array(a.length),
  28856. r = 0,
  28857. i = a.length; r < i; r++)
  28858. s = a[r],
  28859. n[r] = t(e[s], s, r);
  28860. return o(n) || (n = []),
  28861. n._isVList = !0,
  28862. n
  28863. }
  28864. function _t(e, t, n, r) {
  28865. var i, o = this.$scopedSlots[e];
  28866. o ? (n = n || {},
  28867. r && (n = A(A({}, r), n)),
  28868. i = o(n) || ("function" == typeof t ? t() : t)) : i = this.$slots[e] || ("function" == typeof t ? t() : t);
  28869. var a = n && n.slot;
  28870. return a ? this.$createElement("template", {
  28871. slot: a
  28872. }, i) : i
  28873. }
  28874. function wt(e) {
  28875. return je(this.$options, "filters", e) || L
  28876. }
  28877. function St(e, t) {
  28878. return Array.isArray(e) ? -1 === e.indexOf(t) : e !== t
  28879. }
  28880. function xt(e, t, n, r, i) {
  28881. var o = D.keyCodes[t] || n;
  28882. return i && r && !D.keyCodes[t] ? St(i, r) : o ? St(o, e) : r ? C(r) !== t : void 0 === e
  28883. }
  28884. function kt(e, t, n, r, i) {
  28885. if (n)
  28886. if (l(n)) {
  28887. var o;
  28888. Array.isArray(n) && (n = E(n));
  28889. var a = function(a) {
  28890. if ("class" === a || "style" === a || v(a))
  28891. o = e;
  28892. else {
  28893. var s = e.attrs && e.attrs.type;
  28894. o = r || D.mustUseProp(t, s, a) ? e.domProps || (e.domProps = {}) : e.attrs || (e.attrs = {})
  28895. }
  28896. var l = x(a)
  28897. , u = C(a);
  28898. l in o || u in o || (o[a] = n[a],
  28899. i && ((e.on || (e.on = {}))["update:" + a] = function(e) {
  28900. n[a] = e
  28901. }
  28902. ))
  28903. };
  28904. for (var s in n)
  28905. a(s)
  28906. } else
  28907. ;return e
  28908. }
  28909. function It(e, t) {
  28910. var n = this._staticTrees || (this._staticTrees = [])
  28911. , r = n[e];
  28912. return r && !t || Mt(r = n[e] = this.$options.staticRenderFns[e].call(this._renderProxy, null, this), "__static__" + e, !1),
  28913. r
  28914. }
  28915. function Ct(e, t, n) {
  28916. return Mt(e, "__once__" + t + (n ? "_" + n : ""), !0),
  28917. e
  28918. }
  28919. function Mt(e, t, n) {
  28920. if (Array.isArray(e))
  28921. for (var r = 0; r < e.length; r++)
  28922. e[r] && "string" != typeof e[r] && Tt(e[r], t + "_" + r, n);
  28923. else
  28924. Tt(e, t, n)
  28925. }
  28926. function Tt(e, t, n) {
  28927. e.isStatic = !0,
  28928. e.key = t,
  28929. e.isOnce = n
  28930. }
  28931. function At(e, t) {
  28932. if (t)
  28933. if (c(t)) {
  28934. var n = e.on = e.on ? A({}, e.on) : {};
  28935. for (var r in t) {
  28936. var i = n[r]
  28937. , o = t[r];
  28938. n[r] = i ? [].concat(i, o) : o
  28939. }
  28940. } else
  28941. ;return e
  28942. }
  28943. function Et(e, t, n, r) {
  28944. t = t || {
  28945. $stable: !n
  28946. };
  28947. for (var i = 0; i < e.length; i++) {
  28948. var o = e[i];
  28949. Array.isArray(o) ? Et(o, t, n) : o && (o.proxy && (o.fn.proxy = !0),
  28950. t[o.key] = o.fn)
  28951. }
  28952. return r && (t.$key = r),
  28953. t
  28954. }
  28955. function Ot(e, t) {
  28956. for (var n = 0; n < t.length; n += 2) {
  28957. var r = t[n];
  28958. "string" == typeof r && r && (e[t[n]] = t[n + 1])
  28959. }
  28960. return e
  28961. }
  28962. function Bt(e, t) {
  28963. return "string" == typeof e ? t + e : e
  28964. }
  28965. function Lt(e) {
  28966. e._o = Ct,
  28967. e._n = g,
  28968. e._s = p,
  28969. e._l = bt,
  28970. e._t = _t,
  28971. e._q = P,
  28972. e._i = R,
  28973. e._m = It,
  28974. e._f = wt,
  28975. e._k = xt,
  28976. e._b = kt,
  28977. e._v = ve,
  28978. e._e = me,
  28979. e._u = Et,
  28980. e._g = At,
  28981. e._d = Ot,
  28982. e._p = Bt
  28983. }
  28984. function Pt(e, t, n, i, o) {
  28985. var s, l = this, u = o.options;
  28986. _(i, "_uid") ? (s = Object.create(i))._original = i : (s = i,
  28987. i = i._original);
  28988. var c = a(u._compiled)
  28989. , d = !c;
  28990. this.data = e,
  28991. this.props = t,
  28992. this.children = n,
  28993. this.parent = i,
  28994. this.listeners = e.on || r,
  28995. this.injections = ft(u.inject, i),
  28996. this.slots = function() {
  28997. return l.$slots || mt(e.scopedSlots, l.$slots = ht(n, i)),
  28998. l.$slots
  28999. }
  29000. ,
  29001. Object.defineProperty(this, "scopedSlots", {
  29002. enumerable: !0,
  29003. get: function() {
  29004. return mt(e.scopedSlots, this.slots())
  29005. }
  29006. }),
  29007. c && (this.$options = u,
  29008. this.$slots = this.slots(),
  29009. this.$scopedSlots = mt(e.scopedSlots, this.$slots)),
  29010. u._scopeId ? this._c = function(e, t, n, r) {
  29011. var o = Ut(s, e, t, n, r, d);
  29012. return o && !Array.isArray(o) && (o.fnScopeId = u._scopeId,
  29013. o.fnContext = i),
  29014. o
  29015. }
  29016. : this._c = function(e, t, n, r) {
  29017. return Ut(s, e, t, n, r, d)
  29018. }
  29019. }
  29020. function Rt(e, t, n, r, i) {
  29021. var o = ye(e);
  29022. return o.fnContext = n,
  29023. o.fnOptions = r,
  29024. t.slot && ((o.data || (o.data = {})).slot = t.slot),
  29025. o
  29026. }
  29027. function zt(e, t) {
  29028. for (var n in t)
  29029. e[x(n)] = t[n]
  29030. }
  29031. Lt(Pt.prototype);
  29032. var jt = {
  29033. init: function(e, t) {
  29034. if (e.componentInstance && !e.componentInstance._isDestroyed && e.data.keepAlive) {
  29035. var n = e;
  29036. jt.prepatch(n, n)
  29037. } else {
  29038. (e.componentInstance = function(e, t) {
  29039. var n = {
  29040. _isComponent: !0,
  29041. _parentVnode: e,
  29042. parent: t
  29043. }
  29044. , r = e.data.inlineTemplate;
  29045. o(r) && (n.render = r.render,
  29046. n.staticRenderFns = r.staticRenderFns);
  29047. return new e.componentOptions.Ctor(n)
  29048. }(e, Xt)).$mount(t ? e.elm : void 0, t)
  29049. }
  29050. },
  29051. prepatch: function(e, t) {
  29052. var n = t.componentOptions;
  29053. !function(e, t, n, i, o) {
  29054. 0;
  29055. var a = i.data.scopedSlots
  29056. , s = e.$scopedSlots
  29057. , l = !!(a && !a.$stable || s !== r && !s.$stable || a && e.$scopedSlots.$key !== a.$key || !a && e.$scopedSlots.$key)
  29058. , u = !!(o || e.$options._renderChildren || l);
  29059. e.$options._parentVnode = i,
  29060. e.$vnode = i,
  29061. e._vnode && (e._vnode.parent = i);
  29062. if (e.$options._renderChildren = o,
  29063. e.$attrs = i.data.attrs || r,
  29064. e.$listeners = n || r,
  29065. t && e.$options.props) {
  29066. xe(!1);
  29067. for (var c = e._props, d = e.$options._propKeys || [], f = 0; f < d.length; f++) {
  29068. var h = d[f]
  29069. , p = e.$options.props;
  29070. c[h] = Fe(h, p, t, e)
  29071. }
  29072. xe(!0),
  29073. e.$options.propsData = t
  29074. }
  29075. n = n || r;
  29076. var g = e.$options._parentListeners;
  29077. e.$options._parentListeners = n,
  29078. Yt(e, n, g),
  29079. u && (e.$slots = ht(o, i.context),
  29080. e.$forceUpdate());
  29081. 0
  29082. }(t.componentInstance = e.componentInstance, n.propsData, n.listeners, t, n.children)
  29083. },
  29084. insert: function(e) {
  29085. var t, n = e.context, r = e.componentInstance;
  29086. r._isMounted || (r._isMounted = !0,
  29087. en(r, "mounted")),
  29088. e.data.keepAlive && (n._isMounted ? ((t = r)._inactive = !1,
  29089. nn.push(t)) : Kt(r, !0))
  29090. },
  29091. destroy: function(e) {
  29092. var t = e.componentInstance;
  29093. t._isDestroyed || (e.data.keepAlive ? function e(t, n) {
  29094. if (n && (t._directInactive = !0,
  29095. Qt(t)))
  29096. return;
  29097. if (!t._inactive) {
  29098. t._inactive = !0;
  29099. for (var r = 0; r < t.$children.length; r++)
  29100. e(t.$children[r]);
  29101. en(t, "deactivated")
  29102. }
  29103. }(t, !0) : t.$destroy())
  29104. }
  29105. }
  29106. , Ft = Object.keys(jt);
  29107. function Dt(e, t, n, s, u) {
  29108. if (!i(e)) {
  29109. var c = n.$options._base;
  29110. if (l(e) && (e = c.extend(e)),
  29111. "function" == typeof e) {
  29112. var d;
  29113. if (i(e.cid) && void 0 === (e = function(e, t) {
  29114. if (a(e.error) && o(e.errorComp))
  29115. return e.errorComp;
  29116. if (o(e.resolved))
  29117. return e.resolved;
  29118. var n = Ht;
  29119. n && o(e.owners) && -1 === e.owners.indexOf(n) && e.owners.push(n);
  29120. if (a(e.loading) && o(e.loadingComp))
  29121. return e.loadingComp;
  29122. if (n && !o(e.owners)) {
  29123. var r = e.owners = [n]
  29124. , s = !0
  29125. , u = null
  29126. , c = null;
  29127. n.$on("hook:destroyed", (function() {
  29128. return y(r, n)
  29129. }
  29130. ));
  29131. var d = function(e) {
  29132. for (var t = 0, n = r.length; t < n; t++)
  29133. r[t].$forceUpdate();
  29134. e && (r.length = 0,
  29135. null !== u && (clearTimeout(u),
  29136. u = null),
  29137. null !== c && (clearTimeout(c),
  29138. c = null))
  29139. }
  29140. , f = z((function(n) {
  29141. e.resolved = Vt(n, t),
  29142. s ? r.length = 0 : d(!0)
  29143. }
  29144. ))
  29145. , p = z((function(t) {
  29146. o(e.errorComp) && (e.error = !0,
  29147. d(!0))
  29148. }
  29149. ))
  29150. , g = e(f, p);
  29151. return l(g) && (h(g) ? i(e.resolved) && g.then(f, p) : h(g.component) && (g.component.then(f, p),
  29152. o(g.error) && (e.errorComp = Vt(g.error, t)),
  29153. o(g.loading) && (e.loadingComp = Vt(g.loading, t),
  29154. 0 === g.delay ? e.loading = !0 : u = setTimeout((function() {
  29155. u = null,
  29156. i(e.resolved) && i(e.error) && (e.loading = !0,
  29157. d(!1))
  29158. }
  29159. ), g.delay || 200)),
  29160. o(g.timeout) && (c = setTimeout((function() {
  29161. c = null,
  29162. i(e.resolved) && p(null)
  29163. }
  29164. ), g.timeout)))),
  29165. s = !1,
  29166. e.loading ? e.loadingComp : e.resolved
  29167. }
  29168. }(d = e, c)))
  29169. return function(e, t, n, r, i) {
  29170. var o = me();
  29171. return o.asyncFactory = e,
  29172. o.asyncMeta = {
  29173. data: t,
  29174. context: n,
  29175. children: r,
  29176. tag: i
  29177. },
  29178. o
  29179. }(d, t, n, s, u);
  29180. t = t || {},
  29181. xn(e),
  29182. o(t.model) && function(e, t) {
  29183. var n = e.model && e.model.prop || "value"
  29184. , r = e.model && e.model.event || "input";
  29185. (t.attrs || (t.attrs = {}))[n] = t.model.value;
  29186. var i = t.on || (t.on = {})
  29187. , a = i[r]
  29188. , s = t.model.callback;
  29189. o(a) ? (Array.isArray(a) ? -1 === a.indexOf(s) : a !== s) && (i[r] = [s].concat(a)) : i[r] = s
  29190. }(e.options, t);
  29191. var f = function(e, t, n) {
  29192. var r = t.options.props;
  29193. if (!i(r)) {
  29194. var a = {}
  29195. , s = e.attrs
  29196. , l = e.props;
  29197. if (o(s) || o(l))
  29198. for (var u in r) {
  29199. var c = C(u);
  29200. ut(a, l, u, c, !0) || ut(a, s, u, c, !1)
  29201. }
  29202. return a
  29203. }
  29204. }(t, e);
  29205. if (a(e.options.functional))
  29206. return function(e, t, n, i, a) {
  29207. var s = e.options
  29208. , l = {}
  29209. , u = s.props;
  29210. if (o(u))
  29211. for (var c in u)
  29212. l[c] = Fe(c, u, t || r);
  29213. else
  29214. o(n.attrs) && zt(l, n.attrs),
  29215. o(n.props) && zt(l, n.props);
  29216. var d = new Pt(n,l,a,i,e)
  29217. , f = s.render.call(null, d._c, d);
  29218. if (f instanceof pe)
  29219. return Rt(f, n, d.parent, s, d);
  29220. if (Array.isArray(f)) {
  29221. for (var h = ct(f) || [], p = new Array(h.length), g = 0; g < h.length; g++)
  29222. p[g] = Rt(h[g], n, d.parent, s, d);
  29223. return p
  29224. }
  29225. }(e, f, t, n, s);
  29226. var p = t.on;
  29227. if (t.on = t.nativeOn,
  29228. a(e.options.abstract)) {
  29229. var g = t.slot;
  29230. t = {},
  29231. g && (t.slot = g)
  29232. }
  29233. !function(e) {
  29234. for (var t = e.hook || (e.hook = {}), n = 0; n < Ft.length; n++) {
  29235. var r = Ft[n]
  29236. , i = t[r]
  29237. , o = jt[r];
  29238. i === o || i && i._merged || (t[r] = i ? Nt(o, i) : o)
  29239. }
  29240. }(t);
  29241. var m = e.options.name || u;
  29242. return new pe("vue-component-" + e.cid + (m ? "-" + m : ""),t,void 0,void 0,void 0,n,{
  29243. Ctor: e,
  29244. propsData: f,
  29245. listeners: p,
  29246. tag: u,
  29247. children: s
  29248. },d)
  29249. }
  29250. }
  29251. }
  29252. function Nt(e, t) {
  29253. var n = function(n, r) {
  29254. e(n, r),
  29255. t(n, r)
  29256. };
  29257. return n._merged = !0,
  29258. n
  29259. }
  29260. function Ut(e, t, n, r, u, c) {
  29261. return (Array.isArray(n) || s(n)) && (u = r,
  29262. r = n,
  29263. n = void 0),
  29264. a(c) && (u = 2),
  29265. function(e, t, n, r, s) {
  29266. if (o(n) && o(n.__ob__))
  29267. return me();
  29268. o(n) && o(n.is) && (t = n.is);
  29269. if (!t)
  29270. return me();
  29271. 0;
  29272. Array.isArray(r) && "function" == typeof r[0] && ((n = n || {}).scopedSlots = {
  29273. default: r[0]
  29274. },
  29275. r.length = 0);
  29276. 2 === s ? r = ct(r) : 1 === s && (r = function(e) {
  29277. for (var t = 0; t < e.length; t++)
  29278. if (Array.isArray(e[t]))
  29279. return Array.prototype.concat.apply([], e);
  29280. return e
  29281. }(r));
  29282. var u, c;
  29283. if ("string" == typeof t) {
  29284. var d;
  29285. c = e.$vnode && e.$vnode.ns || D.getTagNamespace(t),
  29286. u = D.isReservedTag(t) ? new pe(D.parsePlatformTagName(t),n,r,void 0,void 0,e) : n && n.pre || !o(d = je(e.$options, "components", t)) ? new pe(t,n,r,void 0,void 0,e) : Dt(d, n, e, r, t)
  29287. } else
  29288. u = Dt(t, n, e, r);
  29289. return Array.isArray(u) ? u : o(u) ? (o(c) && function e(t, n, r) {
  29290. t.ns = n,
  29291. "foreignObject" === t.tag && (n = void 0,
  29292. r = !0);
  29293. if (o(t.children))
  29294. for (var s = 0, l = t.children.length; s < l; s++) {
  29295. var u = t.children[s];
  29296. o(u.tag) && (i(u.ns) || a(r) && "svg" !== u.tag) && e(u, n, r)
  29297. }
  29298. }(u, c),
  29299. o(n) && function(e) {
  29300. l(e.style) && it(e.style);
  29301. l(e.class) && it(e.class)
  29302. }(n),
  29303. u) : me()
  29304. }(e, t, n, r, u)
  29305. }
  29306. var Wt, Ht = null;
  29307. function Vt(e, t) {
  29308. return (e.__esModule || se && "Module" === e[Symbol.toStringTag]) && (e = e.default),
  29309. l(e) ? t.extend(e) : e
  29310. }
  29311. function $t(e) {
  29312. if (Array.isArray(e))
  29313. for (var t = 0; t < e.length; t++) {
  29314. var n = e[t];
  29315. if (o(n) && (o(n.componentOptions) || gt(n)))
  29316. return n
  29317. }
  29318. }
  29319. function Gt(e, t) {
  29320. Wt.$on(e, t)
  29321. }
  29322. function Zt(e, t) {
  29323. Wt.$off(e, t)
  29324. }
  29325. function qt(e, t) {
  29326. var n = Wt;
  29327. return function r() {
  29328. var i = t.apply(null, arguments);
  29329. null !== i && n.$off(e, r)
  29330. }
  29331. }
  29332. function Yt(e, t, n) {
  29333. Wt = e,
  29334. st(t, n || {}, Gt, Zt, qt, e),
  29335. Wt = void 0
  29336. }
  29337. var Xt = null;
  29338. function Jt(e) {
  29339. var t = Xt;
  29340. return Xt = e,
  29341. function() {
  29342. Xt = t
  29343. }
  29344. }
  29345. function Qt(e) {
  29346. for (; e && (e = e.$parent); )
  29347. if (e._inactive)
  29348. return !0;
  29349. return !1
  29350. }
  29351. function Kt(e, t) {
  29352. if (t) {
  29353. if (e._directInactive = !1,
  29354. Qt(e))
  29355. return
  29356. } else if (e._directInactive)
  29357. return;
  29358. if (e._inactive || null === e._inactive) {
  29359. e._inactive = !1;
  29360. for (var n = 0; n < e.$children.length; n++)
  29361. Kt(e.$children[n]);
  29362. en(e, "activated")
  29363. }
  29364. }
  29365. function en(e, t) {
  29366. fe();
  29367. var n = e.$options[t]
  29368. , r = t + " hook";
  29369. if (n)
  29370. for (var i = 0, o = n.length; i < o; i++)
  29371. Ve(n[i], e, null, e, r);
  29372. e._hasHookEvent && e.$emit("hook:" + t),
  29373. he()
  29374. }
  29375. var tn = []
  29376. , nn = []
  29377. , rn = {}
  29378. , on = !1
  29379. , an = !1
  29380. , sn = 0;
  29381. var ln = 0
  29382. , un = Date.now;
  29383. if ($ && !Y) {
  29384. var cn = window.performance;
  29385. cn && "function" == typeof cn.now && un() > document.createEvent("Event").timeStamp && (un = function() {
  29386. return cn.now()
  29387. }
  29388. )
  29389. }
  29390. function dn() {
  29391. var e, t;
  29392. for (ln = un(),
  29393. an = !0,
  29394. tn.sort((function(e, t) {
  29395. return e.id - t.id
  29396. }
  29397. )),
  29398. sn = 0; sn < tn.length; sn++)
  29399. (e = tn[sn]).before && e.before(),
  29400. t = e.id,
  29401. rn[t] = null,
  29402. e.run();
  29403. var n = nn.slice()
  29404. , r = tn.slice();
  29405. sn = tn.length = nn.length = 0,
  29406. rn = {},
  29407. on = an = !1,
  29408. function(e) {
  29409. for (var t = 0; t < e.length; t++)
  29410. e[t]._inactive = !0,
  29411. Kt(e[t], !0)
  29412. }(n),
  29413. function(e) {
  29414. var t = e.length;
  29415. for (; t--; ) {
  29416. var n = e[t]
  29417. , r = n.vm;
  29418. r._watcher === n && r._isMounted && !r._isDestroyed && en(r, "updated")
  29419. }
  29420. }(r),
  29421. ie && D.devtools && ie.emit("flush")
  29422. }
  29423. var fn = 0
  29424. , hn = function(e, t, n, r, i) {
  29425. this.vm = e,
  29426. i && (e._watcher = this),
  29427. e._watchers.push(this),
  29428. r ? (this.deep = !!r.deep,
  29429. this.user = !!r.user,
  29430. this.lazy = !!r.lazy,
  29431. this.sync = !!r.sync,
  29432. this.before = r.before) : this.deep = this.user = this.lazy = this.sync = !1,
  29433. this.cb = n,
  29434. this.id = ++fn,
  29435. this.active = !0,
  29436. this.dirty = this.lazy,
  29437. this.deps = [],
  29438. this.newDeps = [],
  29439. this.depIds = new ae,
  29440. this.newDepIds = new ae,
  29441. this.expression = "",
  29442. "function" == typeof t ? this.getter = t : (this.getter = function(e) {
  29443. if (!W.test(e)) {
  29444. var t = e.split(".");
  29445. return function(e) {
  29446. for (var n = 0; n < t.length; n++) {
  29447. if (!e)
  29448. return;
  29449. e = e[t[n]]
  29450. }
  29451. return e
  29452. }
  29453. }
  29454. }(t),
  29455. this.getter || (this.getter = O)),
  29456. this.value = this.lazy ? void 0 : this.get()
  29457. };
  29458. hn.prototype.get = function() {
  29459. var e;
  29460. fe(this);
  29461. var t = this.vm;
  29462. try {
  29463. e = this.getter.call(t, t)
  29464. } catch (e) {
  29465. if (!this.user)
  29466. throw e;
  29467. He(e, t, 'getter for watcher "' + this.expression + '"')
  29468. } finally {
  29469. this.deep && it(e),
  29470. he(),
  29471. this.cleanupDeps()
  29472. }
  29473. return e
  29474. }
  29475. ,
  29476. hn.prototype.addDep = function(e) {
  29477. var t = e.id;
  29478. this.newDepIds.has(t) || (this.newDepIds.add(t),
  29479. this.newDeps.push(e),
  29480. this.depIds.has(t) || e.addSub(this))
  29481. }
  29482. ,
  29483. hn.prototype.cleanupDeps = function() {
  29484. for (var e = this.deps.length; e--; ) {
  29485. var t = this.deps[e];
  29486. this.newDepIds.has(t.id) || t.removeSub(this)
  29487. }
  29488. var n = this.depIds;
  29489. this.depIds = this.newDepIds,
  29490. this.newDepIds = n,
  29491. this.newDepIds.clear(),
  29492. n = this.deps,
  29493. this.deps = this.newDeps,
  29494. this.newDeps = n,
  29495. this.newDeps.length = 0
  29496. }
  29497. ,
  29498. hn.prototype.update = function() {
  29499. this.lazy ? this.dirty = !0 : this.sync ? this.run() : function(e) {
  29500. var t = e.id;
  29501. if (null == rn[t]) {
  29502. if (rn[t] = !0,
  29503. an) {
  29504. for (var n = tn.length - 1; n > sn && tn[n].id > e.id; )
  29505. n--;
  29506. tn.splice(n + 1, 0, e)
  29507. } else
  29508. tn.push(e);
  29509. on || (on = !0,
  29510. nt(dn))
  29511. }
  29512. }(this)
  29513. }
  29514. ,
  29515. hn.prototype.run = function() {
  29516. if (this.active) {
  29517. var e = this.get();
  29518. if (e !== this.value || l(e) || this.deep) {
  29519. var t = this.value;
  29520. if (this.value = e,
  29521. this.user) {
  29522. var n = 'callback for watcher "' + this.expression + '"';
  29523. Ve(this.cb, this.vm, [e, t], this.vm, n)
  29524. } else
  29525. this.cb.call(this.vm, e, t)
  29526. }
  29527. }
  29528. }
  29529. ,
  29530. hn.prototype.evaluate = function() {
  29531. this.value = this.get(),
  29532. this.dirty = !1
  29533. }
  29534. ,
  29535. hn.prototype.depend = function() {
  29536. for (var e = this.deps.length; e--; )
  29537. this.deps[e].depend()
  29538. }
  29539. ,
  29540. hn.prototype.teardown = function() {
  29541. if (this.active) {
  29542. this.vm._isBeingDestroyed || y(this.vm._watchers, this);
  29543. for (var e = this.deps.length; e--; )
  29544. this.deps[e].removeSub(this);
  29545. this.active = !1
  29546. }
  29547. }
  29548. ;
  29549. var pn = {
  29550. enumerable: !0,
  29551. configurable: !0,
  29552. get: O,
  29553. set: O
  29554. };
  29555. function gn(e, t, n) {
  29556. pn.get = function() {
  29557. return this[t][n]
  29558. }
  29559. ,
  29560. pn.set = function(e) {
  29561. this[t][n] = e
  29562. }
  29563. ,
  29564. Object.defineProperty(e, n, pn)
  29565. }
  29566. function mn(e) {
  29567. e._watchers = [];
  29568. var t = e.$options;
  29569. t.props && function(e, t) {
  29570. var n = e.$options.propsData || {}
  29571. , r = e._props = {}
  29572. , i = e.$options._propKeys = [];
  29573. e.$parent && xe(!1);
  29574. var o = function(o) {
  29575. i.push(o);
  29576. var a = Fe(o, t, n, e);
  29577. Ce(r, o, a),
  29578. o in e || gn(e, "_props", o)
  29579. };
  29580. for (var a in t)
  29581. o(a);
  29582. xe(!0)
  29583. }(e, t.props),
  29584. t.methods && function(e, t) {
  29585. e.$options.props;
  29586. for (var n in t)
  29587. e[n] = "function" != typeof t[n] ? O : M(t[n], e)
  29588. }(e, t.methods),
  29589. t.data ? function(e) {
  29590. var t = e.$options.data;
  29591. c(t = e._data = "function" == typeof t ? function(e, t) {
  29592. fe();
  29593. try {
  29594. return e.call(t, t)
  29595. } catch (e) {
  29596. return He(e, t, "data()"),
  29597. {}
  29598. } finally {
  29599. he()
  29600. }
  29601. }(t, e) : t || {}) || (t = {});
  29602. var n = Object.keys(t)
  29603. , r = e.$options.props
  29604. , i = (e.$options.methods,
  29605. n.length);
  29606. for (; i--; ) {
  29607. var o = n[i];
  29608. 0,
  29609. r && _(r, o) || (a = void 0,
  29610. 36 !== (a = (o + "").charCodeAt(0)) && 95 !== a && gn(e, "_data", o))
  29611. }
  29612. var a;
  29613. Ie(t, !0)
  29614. }(e) : Ie(e._data = {}, !0),
  29615. t.computed && function(e, t) {
  29616. var n = e._computedWatchers = Object.create(null)
  29617. , r = re();
  29618. for (var i in t) {
  29619. var o = t[i]
  29620. , a = "function" == typeof o ? o : o.get;
  29621. 0,
  29622. r || (n[i] = new hn(e,a || O,O,vn)),
  29623. i in e || yn(e, i, o)
  29624. }
  29625. }(e, t.computed),
  29626. t.watch && t.watch !== ee && function(e, t) {
  29627. for (var n in t) {
  29628. var r = t[n];
  29629. if (Array.isArray(r))
  29630. for (var i = 0; i < r.length; i++)
  29631. wn(e, n, r[i]);
  29632. else
  29633. wn(e, n, r)
  29634. }
  29635. }(e, t.watch)
  29636. }
  29637. var vn = {
  29638. lazy: !0
  29639. };
  29640. function yn(e, t, n) {
  29641. var r = !re();
  29642. "function" == typeof n ? (pn.get = r ? bn(t) : _n(n),
  29643. pn.set = O) : (pn.get = n.get ? r && !1 !== n.cache ? bn(t) : _n(n.get) : O,
  29644. pn.set = n.set || O),
  29645. Object.defineProperty(e, t, pn)
  29646. }
  29647. function bn(e) {
  29648. return function() {
  29649. var t = this._computedWatchers && this._computedWatchers[e];
  29650. if (t)
  29651. return t.dirty && t.evaluate(),
  29652. ce.target && t.depend(),
  29653. t.value
  29654. }
  29655. }
  29656. function _n(e) {
  29657. return function() {
  29658. return e.call(this, this)
  29659. }
  29660. }
  29661. function wn(e, t, n, r) {
  29662. return c(n) && (r = n,
  29663. n = n.handler),
  29664. "string" == typeof n && (n = e[n]),
  29665. e.$watch(t, n, r)
  29666. }
  29667. var Sn = 0;
  29668. function xn(e) {
  29669. var t = e.options;
  29670. if (e.super) {
  29671. var n = xn(e.super);
  29672. if (n !== e.superOptions) {
  29673. e.superOptions = n;
  29674. var r = function(e) {
  29675. var t, n = e.options, r = e.sealedOptions;
  29676. for (var i in n)
  29677. n[i] !== r[i] && (t || (t = {}),
  29678. t[i] = n[i]);
  29679. return t
  29680. }(e);
  29681. r && A(e.extendOptions, r),
  29682. (t = e.options = ze(n, e.extendOptions)).name && (t.components[t.name] = e)
  29683. }
  29684. }
  29685. return t
  29686. }
  29687. function kn(e) {
  29688. this._init(e)
  29689. }
  29690. function In(e) {
  29691. e.cid = 0;
  29692. var t = 1;
  29693. e.extend = function(e) {
  29694. e = e || {};
  29695. var n = this
  29696. , r = n.cid
  29697. , i = e._Ctor || (e._Ctor = {});
  29698. if (i[r])
  29699. return i[r];
  29700. var o = e.name || n.options.name;
  29701. var a = function(e) {
  29702. this._init(e)
  29703. };
  29704. return (a.prototype = Object.create(n.prototype)).constructor = a,
  29705. a.cid = t++,
  29706. a.options = ze(n.options, e),
  29707. a.super = n,
  29708. a.options.props && function(e) {
  29709. var t = e.options.props;
  29710. for (var n in t)
  29711. gn(e.prototype, "_props", n)
  29712. }(a),
  29713. a.options.computed && function(e) {
  29714. var t = e.options.computed;
  29715. for (var n in t)
  29716. yn(e.prototype, n, t[n])
  29717. }(a),
  29718. a.extend = n.extend,
  29719. a.mixin = n.mixin,
  29720. a.use = n.use,
  29721. j.forEach((function(e) {
  29722. a[e] = n[e]
  29723. }
  29724. )),
  29725. o && (a.options.components[o] = a),
  29726. a.superOptions = n.options,
  29727. a.extendOptions = e,
  29728. a.sealedOptions = A({}, a.options),
  29729. i[r] = a,
  29730. a
  29731. }
  29732. }
  29733. function Cn(e) {
  29734. return e && (e.Ctor.options.name || e.tag)
  29735. }
  29736. function Mn(e, t) {
  29737. return Array.isArray(e) ? e.indexOf(t) > -1 : "string" == typeof e ? e.split(",").indexOf(t) > -1 : !!d(e) && e.test(t)
  29738. }
  29739. function Tn(e, t) {
  29740. var n = e.cache
  29741. , r = e.keys
  29742. , i = e._vnode;
  29743. for (var o in n) {
  29744. var a = n[o];
  29745. if (a) {
  29746. var s = a.name;
  29747. s && !t(s) && An(n, o, r, i)
  29748. }
  29749. }
  29750. }
  29751. function An(e, t, n, r) {
  29752. var i = e[t];
  29753. !i || r && i.tag === r.tag || i.componentInstance.$destroy(),
  29754. e[t] = null,
  29755. y(n, t)
  29756. }
  29757. !function(e) {
  29758. e.prototype._init = function(e) {
  29759. var t = this;
  29760. t._uid = Sn++,
  29761. t._isVue = !0,
  29762. e && e._isComponent ? function(e, t) {
  29763. var n = e.$options = Object.create(e.constructor.options)
  29764. , r = t._parentVnode;
  29765. n.parent = t.parent,
  29766. n._parentVnode = r;
  29767. var i = r.componentOptions;
  29768. n.propsData = i.propsData,
  29769. n._parentListeners = i.listeners,
  29770. n._renderChildren = i.children,
  29771. n._componentTag = i.tag,
  29772. t.render && (n.render = t.render,
  29773. n.staticRenderFns = t.staticRenderFns)
  29774. }(t, e) : t.$options = ze(xn(t.constructor), e || {}, t),
  29775. t._renderProxy = t,
  29776. t._self = t,
  29777. function(e) {
  29778. var t = e.$options
  29779. , n = t.parent;
  29780. if (n && !t.abstract) {
  29781. for (; n.$options.abstract && n.$parent; )
  29782. n = n.$parent;
  29783. n.$children.push(e)
  29784. }
  29785. e.$parent = n,
  29786. e.$root = n ? n.$root : e,
  29787. e.$children = [],
  29788. e.$refs = {},
  29789. e._watcher = null,
  29790. e._inactive = null,
  29791. e._directInactive = !1,
  29792. e._isMounted = !1,
  29793. e._isDestroyed = !1,
  29794. e._isBeingDestroyed = !1
  29795. }(t),
  29796. function(e) {
  29797. e._events = Object.create(null),
  29798. e._hasHookEvent = !1;
  29799. var t = e.$options._parentListeners;
  29800. t && Yt(e, t)
  29801. }(t),
  29802. function(e) {
  29803. e._vnode = null,
  29804. e._staticTrees = null;
  29805. var t = e.$options
  29806. , n = e.$vnode = t._parentVnode
  29807. , i = n && n.context;
  29808. e.$slots = ht(t._renderChildren, i),
  29809. e.$scopedSlots = r,
  29810. e._c = function(t, n, r, i) {
  29811. return Ut(e, t, n, r, i, !1)
  29812. }
  29813. ,
  29814. e.$createElement = function(t, n, r, i) {
  29815. return Ut(e, t, n, r, i, !0)
  29816. }
  29817. ;
  29818. var o = n && n.data;
  29819. Ce(e, "$attrs", o && o.attrs || r, null, !0),
  29820. Ce(e, "$listeners", t._parentListeners || r, null, !0)
  29821. }(t),
  29822. en(t, "beforeCreate"),
  29823. function(e) {
  29824. var t = ft(e.$options.inject, e);
  29825. t && (xe(!1),
  29826. Object.keys(t).forEach((function(n) {
  29827. Ce(e, n, t[n])
  29828. }
  29829. )),
  29830. xe(!0))
  29831. }(t),
  29832. mn(t),
  29833. function(e) {
  29834. var t = e.$options.provide;
  29835. t && (e._provided = "function" == typeof t ? t.call(e) : t)
  29836. }(t),
  29837. en(t, "created"),
  29838. t.$options.el && t.$mount(t.$options.el)
  29839. }
  29840. }(kn),
  29841. function(e) {
  29842. var t = {
  29843. get: function() {
  29844. return this._data
  29845. }
  29846. }
  29847. , n = {
  29848. get: function() {
  29849. return this._props
  29850. }
  29851. };
  29852. Object.defineProperty(e.prototype, "$data", t),
  29853. Object.defineProperty(e.prototype, "$props", n),
  29854. e.prototype.$set = Me,
  29855. e.prototype.$delete = Te,
  29856. e.prototype.$watch = function(e, t, n) {
  29857. if (c(t))
  29858. return wn(this, e, t, n);
  29859. (n = n || {}).user = !0;
  29860. var r = new hn(this,e,t,n);
  29861. if (n.immediate) {
  29862. var i = 'callback for immediate watcher "' + r.expression + '"';
  29863. fe(),
  29864. Ve(t, this, [r.value], this, i),
  29865. he()
  29866. }
  29867. return function() {
  29868. r.teardown()
  29869. }
  29870. }
  29871. }(kn),
  29872. function(e) {
  29873. var t = /^hook:/;
  29874. e.prototype.$on = function(e, n) {
  29875. var r = this;
  29876. if (Array.isArray(e))
  29877. for (var i = 0, o = e.length; i < o; i++)
  29878. r.$on(e[i], n);
  29879. else
  29880. (r._events[e] || (r._events[e] = [])).push(n),
  29881. t.test(e) && (r._hasHookEvent = !0);
  29882. return r
  29883. }
  29884. ,
  29885. e.prototype.$once = function(e, t) {
  29886. var n = this;
  29887. function r() {
  29888. n.$off(e, r),
  29889. t.apply(n, arguments)
  29890. }
  29891. return r.fn = t,
  29892. n.$on(e, r),
  29893. n
  29894. }
  29895. ,
  29896. e.prototype.$off = function(e, t) {
  29897. var n = this;
  29898. if (!arguments.length)
  29899. return n._events = Object.create(null),
  29900. n;
  29901. if (Array.isArray(e)) {
  29902. for (var r = 0, i = e.length; r < i; r++)
  29903. n.$off(e[r], t);
  29904. return n
  29905. }
  29906. var o, a = n._events[e];
  29907. if (!a)
  29908. return n;
  29909. if (!t)
  29910. return n._events[e] = null,
  29911. n;
  29912. for (var s = a.length; s--; )
  29913. if ((o = a[s]) === t || o.fn === t) {
  29914. a.splice(s, 1);
  29915. break
  29916. }
  29917. return n
  29918. }
  29919. ,
  29920. e.prototype.$emit = function(e) {
  29921. var t = this
  29922. , n = t._events[e];
  29923. if (n) {
  29924. n = n.length > 1 ? T(n) : n;
  29925. for (var r = T(arguments, 1), i = 'event handler for "' + e + '"', o = 0, a = n.length; o < a; o++)
  29926. Ve(n[o], t, r, t, i)
  29927. }
  29928. return t
  29929. }
  29930. }(kn),
  29931. function(e) {
  29932. e.prototype._update = function(e, t) {
  29933. var n = this
  29934. , r = n.$el
  29935. , i = n._vnode
  29936. , o = Jt(n);
  29937. n._vnode = e,
  29938. n.$el = i ? n.__patch__(i, e) : n.__patch__(n.$el, e, t, !1),
  29939. o(),
  29940. r && (r.__vue__ = null),
  29941. n.$el && (n.$el.__vue__ = n),
  29942. n.$vnode && n.$parent && n.$vnode === n.$parent._vnode && (n.$parent.$el = n.$el)
  29943. }
  29944. ,
  29945. e.prototype.$forceUpdate = function() {
  29946. this._watcher && this._watcher.update()
  29947. }
  29948. ,
  29949. e.prototype.$destroy = function() {
  29950. var e = this;
  29951. if (!e._isBeingDestroyed) {
  29952. en(e, "beforeDestroy"),
  29953. e._isBeingDestroyed = !0;
  29954. var t = e.$parent;
  29955. !t || t._isBeingDestroyed || e.$options.abstract || y(t.$children, e),
  29956. e._watcher && e._watcher.teardown();
  29957. for (var n = e._watchers.length; n--; )
  29958. e._watchers[n].teardown();
  29959. e._data.__ob__ && e._data.__ob__.vmCount--,
  29960. e._isDestroyed = !0,
  29961. e.__patch__(e._vnode, null),
  29962. en(e, "destroyed"),
  29963. e.$off(),
  29964. e.$el && (e.$el.__vue__ = null),
  29965. e.$vnode && (e.$vnode.parent = null)
  29966. }
  29967. }
  29968. }(kn),
  29969. function(e) {
  29970. Lt(e.prototype),
  29971. e.prototype.$nextTick = function(e) {
  29972. return nt(e, this)
  29973. }
  29974. ,
  29975. e.prototype._render = function() {
  29976. var e, t = this, n = t.$options, r = n.render, i = n._parentVnode;
  29977. i && (t.$scopedSlots = mt(i.data.scopedSlots, t.$slots, t.$scopedSlots)),
  29978. t.$vnode = i;
  29979. try {
  29980. Ht = t,
  29981. e = r.call(t._renderProxy, t.$createElement)
  29982. } catch (n) {
  29983. He(n, t, "render"),
  29984. e = t._vnode
  29985. } finally {
  29986. Ht = null
  29987. }
  29988. return Array.isArray(e) && 1 === e.length && (e = e[0]),
  29989. e instanceof pe || (e = me()),
  29990. e.parent = i,
  29991. e
  29992. }
  29993. }(kn);
  29994. var En = [String, RegExp, Array]
  29995. , On = {
  29996. KeepAlive: {
  29997. name: "keep-alive",
  29998. abstract: !0,
  29999. props: {
  30000. include: En,
  30001. exclude: En,
  30002. max: [String, Number]
  30003. },
  30004. methods: {
  30005. cacheVNode: function() {
  30006. var e = this.cache
  30007. , t = this.keys
  30008. , n = this.vnodeToCache
  30009. , r = this.keyToCache;
  30010. if (n) {
  30011. var i = n.tag
  30012. , o = n.componentInstance
  30013. , a = n.componentOptions;
  30014. e[r] = {
  30015. name: Cn(a),
  30016. tag: i,
  30017. componentInstance: o
  30018. },
  30019. t.push(r),
  30020. this.max && t.length > parseInt(this.max) && An(e, t[0], t, this._vnode),
  30021. this.vnodeToCache = null
  30022. }
  30023. }
  30024. },
  30025. created: function() {
  30026. this.cache = Object.create(null),
  30027. this.keys = []
  30028. },
  30029. destroyed: function() {
  30030. for (var e in this.cache)
  30031. An(this.cache, e, this.keys)
  30032. },
  30033. mounted: function() {
  30034. var e = this;
  30035. this.cacheVNode(),
  30036. this.$watch("include", (function(t) {
  30037. Tn(e, (function(e) {
  30038. return Mn(t, e)
  30039. }
  30040. ))
  30041. }
  30042. )),
  30043. this.$watch("exclude", (function(t) {
  30044. Tn(e, (function(e) {
  30045. return !Mn(t, e)
  30046. }
  30047. ))
  30048. }
  30049. ))
  30050. },
  30051. updated: function() {
  30052. this.cacheVNode()
  30053. },
  30054. render: function() {
  30055. var e = this.$slots.default
  30056. , t = $t(e)
  30057. , n = t && t.componentOptions;
  30058. if (n) {
  30059. var r = Cn(n)
  30060. , i = this.include
  30061. , o = this.exclude;
  30062. if (i && (!r || !Mn(i, r)) || o && r && Mn(o, r))
  30063. return t;
  30064. var a = this.cache
  30065. , s = this.keys
  30066. , l = null == t.key ? n.Ctor.cid + (n.tag ? "::" + n.tag : "") : t.key;
  30067. a[l] ? (t.componentInstance = a[l].componentInstance,
  30068. y(s, l),
  30069. s.push(l)) : (this.vnodeToCache = t,
  30070. this.keyToCache = l),
  30071. t.data.keepAlive = !0
  30072. }
  30073. return t || e && e[0]
  30074. }
  30075. }
  30076. };
  30077. !function(e) {
  30078. var t = {
  30079. get: function() {
  30080. return D
  30081. }
  30082. };
  30083. Object.defineProperty(e, "config", t),
  30084. e.util = {
  30085. warn: le,
  30086. extend: A,
  30087. mergeOptions: ze,
  30088. defineReactive: Ce
  30089. },
  30090. e.set = Me,
  30091. e.delete = Te,
  30092. e.nextTick = nt,
  30093. e.observable = function(e) {
  30094. return Ie(e),
  30095. e
  30096. }
  30097. ,
  30098. e.options = Object.create(null),
  30099. j.forEach((function(t) {
  30100. e.options[t + "s"] = Object.create(null)
  30101. }
  30102. )),
  30103. e.options._base = e,
  30104. A(e.options.components, On),
  30105. function(e) {
  30106. e.use = function(e) {
  30107. var t = this._installedPlugins || (this._installedPlugins = []);
  30108. if (t.indexOf(e) > -1)
  30109. return this;
  30110. var n = T(arguments, 1);
  30111. return n.unshift(this),
  30112. "function" == typeof e.install ? e.install.apply(e, n) : "function" == typeof e && e.apply(null, n),
  30113. t.push(e),
  30114. this
  30115. }
  30116. }(e),
  30117. function(e) {
  30118. e.mixin = function(e) {
  30119. return this.options = ze(this.options, e),
  30120. this
  30121. }
  30122. }(e),
  30123. In(e),
  30124. function(e) {
  30125. j.forEach((function(t) {
  30126. e[t] = function(e, n) {
  30127. return n ? ("component" === t && c(n) && (n.name = n.name || e,
  30128. n = this.options._base.extend(n)),
  30129. "directive" === t && "function" == typeof n && (n = {
  30130. bind: n,
  30131. update: n
  30132. }),
  30133. this.options[t + "s"][e] = n,
  30134. n) : this.options[t + "s"][e]
  30135. }
  30136. }
  30137. ))
  30138. }(e)
  30139. }(kn),
  30140. Object.defineProperty(kn.prototype, "$isServer", {
  30141. get: re
  30142. }),
  30143. Object.defineProperty(kn.prototype, "$ssrContext", {
  30144. get: function() {
  30145. return this.$vnode && this.$vnode.ssrContext
  30146. }
  30147. }),
  30148. Object.defineProperty(kn, "FunctionalRenderContext", {
  30149. value: Pt
  30150. }),
  30151. kn.version = "2.6.14";
  30152. var Bn = m("style,class")
  30153. , Ln = m("input,textarea,option,select,progress")
  30154. , Pn = m("contenteditable,draggable,spellcheck")
  30155. , Rn = m("events,caret,typing,plaintext-only")
  30156. , zn = m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible")
  30157. , jn = "http://www.w3.org/1999/xlink"
  30158. , Fn = function(e) {
  30159. return ":" === e.charAt(5) && "xlink" === e.slice(0, 5)
  30160. }
  30161. , Dn = function(e) {
  30162. return Fn(e) ? e.slice(6, e.length) : ""
  30163. }
  30164. , Nn = function(e) {
  30165. return null == e || !1 === e
  30166. };
  30167. function Un(e) {
  30168. for (var t = e.data, n = e, r = e; o(r.componentInstance); )
  30169. (r = r.componentInstance._vnode) && r.data && (t = Wn(r.data, t));
  30170. for (; o(n = n.parent); )
  30171. n && n.data && (t = Wn(t, n.data));
  30172. return function(e, t) {
  30173. if (o(e) || o(t))
  30174. return Hn(e, Vn(t));
  30175. return ""
  30176. }(t.staticClass, t.class)
  30177. }
  30178. function Wn(e, t) {
  30179. return {
  30180. staticClass: Hn(e.staticClass, t.staticClass),
  30181. class: o(e.class) ? [e.class, t.class] : t.class
  30182. }
  30183. }
  30184. function Hn(e, t) {
  30185. return e ? t ? e + " " + t : e : t || ""
  30186. }
  30187. function Vn(e) {
  30188. return Array.isArray(e) ? function(e) {
  30189. for (var t, n = "", r = 0, i = e.length; r < i; r++)
  30190. o(t = Vn(e[r])) && "" !== t && (n && (n += " "),
  30191. n += t);
  30192. return n
  30193. }(e) : l(e) ? function(e) {
  30194. var t = "";
  30195. for (var n in e)
  30196. e[n] && (t && (t += " "),
  30197. t += n);
  30198. return t
  30199. }(e) : "string" == typeof e ? e : ""
  30200. }
  30201. var $n = {
  30202. svg: "http://www.w3.org/2000/svg",
  30203. math: "http://www.w3.org/1998/Math/MathML"
  30204. }
  30205. , Gn = m("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot")
  30206. , Zn = m("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view", !0)
  30207. , qn = function(e) {
  30208. return Gn(e) || Zn(e)
  30209. };
  30210. var Yn = Object.create(null);
  30211. var Xn = m("text,number,password,search,email,tel,url");
  30212. var Jn = Object.freeze({
  30213. createElement: function(e, t) {
  30214. var n = document.createElement(e);
  30215. return "select" !== e || t.data && t.data.attrs && void 0 !== t.data.attrs.multiple && n.setAttribute("multiple", "multiple"),
  30216. n
  30217. },
  30218. createElementNS: function(e, t) {
  30219. return document.createElementNS($n[e], t)
  30220. },
  30221. createTextNode: function(e) {
  30222. return document.createTextNode(e)
  30223. },
  30224. createComment: function(e) {
  30225. return document.createComment(e)
  30226. },
  30227. insertBefore: function(e, t, n) {
  30228. e.insertBefore(t, n)
  30229. },
  30230. removeChild: function(e, t) {
  30231. e.removeChild(t)
  30232. },
  30233. appendChild: function(e, t) {
  30234. e.appendChild(t)
  30235. },
  30236. parentNode: function(e) {
  30237. return e.parentNode
  30238. },
  30239. nextSibling: function(e) {
  30240. return e.nextSibling
  30241. },
  30242. tagName: function(e) {
  30243. return e.tagName
  30244. },
  30245. setTextContent: function(e, t) {
  30246. e.textContent = t
  30247. },
  30248. setStyleScope: function(e, t) {
  30249. e.setAttribute(t, "")
  30250. }
  30251. })
  30252. , Qn = {
  30253. create: function(e, t) {
  30254. Kn(t)
  30255. },
  30256. update: function(e, t) {
  30257. e.data.ref !== t.data.ref && (Kn(e, !0),
  30258. Kn(t))
  30259. },
  30260. destroy: function(e) {
  30261. Kn(e, !0)
  30262. }
  30263. };
  30264. function Kn(e, t) {
  30265. var n = e.data.ref;
  30266. if (o(n)) {
  30267. var r = e.context
  30268. , i = e.componentInstance || e.elm
  30269. , a = r.$refs;
  30270. t ? Array.isArray(a[n]) ? y(a[n], i) : a[n] === i && (a[n] = void 0) : e.data.refInFor ? Array.isArray(a[n]) ? a[n].indexOf(i) < 0 && a[n].push(i) : a[n] = [i] : a[n] = i
  30271. }
  30272. }
  30273. var er = new pe("",{},[])
  30274. , tr = ["create", "activate", "update", "remove", "destroy"];
  30275. function nr(e, t) {
  30276. return e.key === t.key && e.asyncFactory === t.asyncFactory && (e.tag === t.tag && e.isComment === t.isComment && o(e.data) === o(t.data) && function(e, t) {
  30277. if ("input" !== e.tag)
  30278. return !0;
  30279. var n, r = o(n = e.data) && o(n = n.attrs) && n.type, i = o(n = t.data) && o(n = n.attrs) && n.type;
  30280. return r === i || Xn(r) && Xn(i)
  30281. }(e, t) || a(e.isAsyncPlaceholder) && i(t.asyncFactory.error))
  30282. }
  30283. function rr(e, t, n) {
  30284. var r, i, a = {};
  30285. for (r = t; r <= n; ++r)
  30286. o(i = e[r].key) && (a[i] = r);
  30287. return a
  30288. }
  30289. var ir = {
  30290. create: or,
  30291. update: or,
  30292. destroy: function(e) {
  30293. or(e, er)
  30294. }
  30295. };
  30296. function or(e, t) {
  30297. (e.data.directives || t.data.directives) && function(e, t) {
  30298. var n, r, i, o = e === er, a = t === er, s = sr(e.data.directives, e.context), l = sr(t.data.directives, t.context), u = [], c = [];
  30299. for (n in l)
  30300. r = s[n],
  30301. i = l[n],
  30302. r ? (i.oldValue = r.value,
  30303. i.oldArg = r.arg,
  30304. ur(i, "update", t, e),
  30305. i.def && i.def.componentUpdated && c.push(i)) : (ur(i, "bind", t, e),
  30306. i.def && i.def.inserted && u.push(i));
  30307. if (u.length) {
  30308. var d = function() {
  30309. for (var n = 0; n < u.length; n++)
  30310. ur(u[n], "inserted", t, e)
  30311. };
  30312. o ? lt(t, "insert", d) : d()
  30313. }
  30314. c.length && lt(t, "postpatch", (function() {
  30315. for (var n = 0; n < c.length; n++)
  30316. ur(c[n], "componentUpdated", t, e)
  30317. }
  30318. ));
  30319. if (!o)
  30320. for (n in s)
  30321. l[n] || ur(s[n], "unbind", e, e, a)
  30322. }(e, t)
  30323. }
  30324. var ar = Object.create(null);
  30325. function sr(e, t) {
  30326. var n, r, i = Object.create(null);
  30327. if (!e)
  30328. return i;
  30329. for (n = 0; n < e.length; n++)
  30330. (r = e[n]).modifiers || (r.modifiers = ar),
  30331. i[lr(r)] = r,
  30332. r.def = je(t.$options, "directives", r.name);
  30333. return i
  30334. }
  30335. function lr(e) {
  30336. return e.rawName || e.name + "." + Object.keys(e.modifiers || {}).join(".")
  30337. }
  30338. function ur(e, t, n, r, i) {
  30339. var o = e.def && e.def[t];
  30340. if (o)
  30341. try {
  30342. o(n.elm, e, n, r, i)
  30343. } catch (r) {
  30344. He(r, n.context, "directive " + e.name + " " + t + " hook")
  30345. }
  30346. }
  30347. var cr = [Qn, ir];
  30348. function dr(e, t) {
  30349. var n = t.componentOptions;
  30350. if (!(o(n) && !1 === n.Ctor.options.inheritAttrs || i(e.data.attrs) && i(t.data.attrs))) {
  30351. var r, a, s = t.elm, l = e.data.attrs || {}, u = t.data.attrs || {};
  30352. for (r in o(u.__ob__) && (u = t.data.attrs = A({}, u)),
  30353. u)
  30354. a = u[r],
  30355. l[r] !== a && fr(s, r, a, t.data.pre);
  30356. for (r in (Y || J) && u.value !== l.value && fr(s, "value", u.value),
  30357. l)
  30358. i(u[r]) && (Fn(r) ? s.removeAttributeNS(jn, Dn(r)) : Pn(r) || s.removeAttribute(r))
  30359. }
  30360. }
  30361. function fr(e, t, n, r) {
  30362. r || e.tagName.indexOf("-") > -1 ? hr(e, t, n) : zn(t) ? Nn(n) ? e.removeAttribute(t) : (n = "allowfullscreen" === t && "EMBED" === e.tagName ? "true" : t,
  30363. e.setAttribute(t, n)) : Pn(t) ? e.setAttribute(t, function(e, t) {
  30364. return Nn(t) || "false" === t ? "false" : "contenteditable" === e && Rn(t) ? t : "true"
  30365. }(t, n)) : Fn(t) ? Nn(n) ? e.removeAttributeNS(jn, Dn(t)) : e.setAttributeNS(jn, t, n) : hr(e, t, n)
  30366. }
  30367. function hr(e, t, n) {
  30368. if (Nn(n))
  30369. e.removeAttribute(t);
  30370. else {
  30371. if (Y && !X && "TEXTAREA" === e.tagName && "placeholder" === t && "" !== n && !e.__ieph) {
  30372. var r = function(t) {
  30373. t.stopImmediatePropagation(),
  30374. e.removeEventListener("input", r)
  30375. };
  30376. e.addEventListener("input", r),
  30377. e.__ieph = !0
  30378. }
  30379. e.setAttribute(t, n)
  30380. }
  30381. }
  30382. var pr = {
  30383. create: dr,
  30384. update: dr
  30385. };
  30386. function gr(e, t) {
  30387. var n = t.elm
  30388. , r = t.data
  30389. , a = e.data;
  30390. if (!(i(r.staticClass) && i(r.class) && (i(a) || i(a.staticClass) && i(a.class)))) {
  30391. var s = Un(t)
  30392. , l = n._transitionClasses;
  30393. o(l) && (s = Hn(s, Vn(l))),
  30394. s !== n._prevClass && (n.setAttribute("class", s),
  30395. n._prevClass = s)
  30396. }
  30397. }
  30398. var mr, vr = {
  30399. create: gr,
  30400. update: gr
  30401. };
  30402. function yr(e, t, n) {
  30403. var r = mr;
  30404. return function i() {
  30405. var o = t.apply(null, arguments);
  30406. null !== o && wr(e, i, n, r)
  30407. }
  30408. }
  30409. var br = qe && !(K && Number(K[1]) <= 53);
  30410. function _r(e, t, n, r) {
  30411. if (br) {
  30412. var i = ln
  30413. , o = t;
  30414. t = o._wrapper = function(e) {
  30415. if (e.target === e.currentTarget || e.timeStamp >= i || e.timeStamp <= 0 || e.target.ownerDocument !== document)
  30416. return o.apply(this, arguments)
  30417. }
  30418. }
  30419. mr.addEventListener(e, t, te ? {
  30420. capture: n,
  30421. passive: r
  30422. } : n)
  30423. }
  30424. function wr(e, t, n, r) {
  30425. (r || mr).removeEventListener(e, t._wrapper || t, n)
  30426. }
  30427. function Sr(e, t) {
  30428. if (!i(e.data.on) || !i(t.data.on)) {
  30429. var n = t.data.on || {}
  30430. , r = e.data.on || {};
  30431. mr = t.elm,
  30432. function(e) {
  30433. if (o(e.__r)) {
  30434. var t = Y ? "change" : "input";
  30435. e[t] = [].concat(e.__r, e[t] || []),
  30436. delete e.__r
  30437. }
  30438. o(e.__c) && (e.change = [].concat(e.__c, e.change || []),
  30439. delete e.__c)
  30440. }(n),
  30441. st(n, r, _r, wr, yr, t.context),
  30442. mr = void 0
  30443. }
  30444. }
  30445. var xr, kr = {
  30446. create: Sr,
  30447. update: Sr
  30448. };
  30449. function Ir(e, t) {
  30450. if (!i(e.data.domProps) || !i(t.data.domProps)) {
  30451. var n, r, a = t.elm, s = e.data.domProps || {}, l = t.data.domProps || {};
  30452. for (n in o(l.__ob__) && (l = t.data.domProps = A({}, l)),
  30453. s)
  30454. n in l || (a[n] = "");
  30455. for (n in l) {
  30456. if (r = l[n],
  30457. "textContent" === n || "innerHTML" === n) {
  30458. if (t.children && (t.children.length = 0),
  30459. r === s[n])
  30460. continue;
  30461. 1 === a.childNodes.length && a.removeChild(a.childNodes[0])
  30462. }
  30463. if ("value" === n && "PROGRESS" !== a.tagName) {
  30464. a._value = r;
  30465. var u = i(r) ? "" : String(r);
  30466. Cr(a, u) && (a.value = u)
  30467. } else if ("innerHTML" === n && Zn(a.tagName) && i(a.innerHTML)) {
  30468. (xr = xr || document.createElement("div")).innerHTML = "<svg>" + r + "</svg>";
  30469. for (var c = xr.firstChild; a.firstChild; )
  30470. a.removeChild(a.firstChild);
  30471. for (; c.firstChild; )
  30472. a.appendChild(c.firstChild)
  30473. } else if (r !== s[n])
  30474. try {
  30475. a[n] = r
  30476. } catch (e) {}
  30477. }
  30478. }
  30479. }
  30480. function Cr(e, t) {
  30481. return !e.composing && ("OPTION" === e.tagName || function(e, t) {
  30482. var n = !0;
  30483. try {
  30484. n = document.activeElement !== e
  30485. } catch (e) {}
  30486. return n && e.value !== t
  30487. }(e, t) || function(e, t) {
  30488. var n = e.value
  30489. , r = e._vModifiers;
  30490. if (o(r)) {
  30491. if (r.number)
  30492. return g(n) !== g(t);
  30493. if (r.trim)
  30494. return n.trim() !== t.trim()
  30495. }
  30496. return n !== t
  30497. }(e, t))
  30498. }
  30499. var Mr = {
  30500. create: Ir,
  30501. update: Ir
  30502. }
  30503. , Tr = w((function(e) {
  30504. var t = {}
  30505. , n = /:(.+)/;
  30506. return e.split(/;(?![^(]*\))/g).forEach((function(e) {
  30507. if (e) {
  30508. var r = e.split(n);
  30509. r.length > 1 && (t[r[0].trim()] = r[1].trim())
  30510. }
  30511. }
  30512. )),
  30513. t
  30514. }
  30515. ));
  30516. function Ar(e) {
  30517. var t = Er(e.style);
  30518. return e.staticStyle ? A(e.staticStyle, t) : t
  30519. }
  30520. function Er(e) {
  30521. return Array.isArray(e) ? E(e) : "string" == typeof e ? Tr(e) : e
  30522. }
  30523. var Or, Br = /^--/, Lr = /\s*!important$/, Pr = function(e, t, n) {
  30524. if (Br.test(t))
  30525. e.style.setProperty(t, n);
  30526. else if (Lr.test(n))
  30527. e.style.setProperty(C(t), n.replace(Lr, ""), "important");
  30528. else {
  30529. var r = zr(t);
  30530. if (Array.isArray(n))
  30531. for (var i = 0, o = n.length; i < o; i++)
  30532. e.style[r] = n[i];
  30533. else
  30534. e.style[r] = n
  30535. }
  30536. }, Rr = ["Webkit", "Moz", "ms"], zr = w((function(e) {
  30537. if (Or = Or || document.createElement("div").style,
  30538. "filter" !== (e = x(e)) && e in Or)
  30539. return e;
  30540. for (var t = e.charAt(0).toUpperCase() + e.slice(1), n = 0; n < Rr.length; n++) {
  30541. var r = Rr[n] + t;
  30542. if (r in Or)
  30543. return r
  30544. }
  30545. }
  30546. ));
  30547. function jr(e, t) {
  30548. var n = t.data
  30549. , r = e.data;
  30550. if (!(i(n.staticStyle) && i(n.style) && i(r.staticStyle) && i(r.style))) {
  30551. var a, s, l = t.elm, u = r.staticStyle, c = r.normalizedStyle || r.style || {}, d = u || c, f = Er(t.data.style) || {};
  30552. t.data.normalizedStyle = o(f.__ob__) ? A({}, f) : f;
  30553. var h = function(e, t) {
  30554. var n, r = {};
  30555. if (t)
  30556. for (var i = e; i.componentInstance; )
  30557. (i = i.componentInstance._vnode) && i.data && (n = Ar(i.data)) && A(r, n);
  30558. (n = Ar(e.data)) && A(r, n);
  30559. for (var o = e; o = o.parent; )
  30560. o.data && (n = Ar(o.data)) && A(r, n);
  30561. return r
  30562. }(t, !0);
  30563. for (s in d)
  30564. i(h[s]) && Pr(l, s, "");
  30565. for (s in h)
  30566. (a = h[s]) !== d[s] && Pr(l, s, null == a ? "" : a)
  30567. }
  30568. }
  30569. var Fr = {
  30570. create: jr,
  30571. update: jr
  30572. }
  30573. , Dr = /\s+/;
  30574. function Nr(e, t) {
  30575. if (t && (t = t.trim()))
  30576. if (e.classList)
  30577. t.indexOf(" ") > -1 ? t.split(Dr).forEach((function(t) {
  30578. return e.classList.add(t)
  30579. }
  30580. )) : e.classList.add(t);
  30581. else {
  30582. var n = " " + (e.getAttribute("class") || "") + " ";
  30583. n.indexOf(" " + t + " ") < 0 && e.setAttribute("class", (n + t).trim())
  30584. }
  30585. }
  30586. function Ur(e, t) {
  30587. if (t && (t = t.trim()))
  30588. if (e.classList)
  30589. t.indexOf(" ") > -1 ? t.split(Dr).forEach((function(t) {
  30590. return e.classList.remove(t)
  30591. }
  30592. )) : e.classList.remove(t),
  30593. e.classList.length || e.removeAttribute("class");
  30594. else {
  30595. for (var n = " " + (e.getAttribute("class") || "") + " ", r = " " + t + " "; n.indexOf(r) >= 0; )
  30596. n = n.replace(r, " ");
  30597. (n = n.trim()) ? e.setAttribute("class", n) : e.removeAttribute("class")
  30598. }
  30599. }
  30600. function Wr(e) {
  30601. if (e) {
  30602. if ("object" == typeof e) {
  30603. var t = {};
  30604. return !1 !== e.css && A(t, Hr(e.name || "v")),
  30605. A(t, e),
  30606. t
  30607. }
  30608. return "string" == typeof e ? Hr(e) : void 0
  30609. }
  30610. }
  30611. var Hr = w((function(e) {
  30612. return {
  30613. enterClass: e + "-enter",
  30614. enterToClass: e + "-enter-to",
  30615. enterActiveClass: e + "-enter-active",
  30616. leaveClass: e + "-leave",
  30617. leaveToClass: e + "-leave-to",
  30618. leaveActiveClass: e + "-leave-active"
  30619. }
  30620. }
  30621. ))
  30622. , Vr = $ && !X
  30623. , $r = "transition"
  30624. , Gr = "transitionend"
  30625. , Zr = "animation"
  30626. , qr = "animationend";
  30627. Vr && (void 0 === window.ontransitionend && void 0 !== window.onwebkittransitionend && ($r = "WebkitTransition",
  30628. Gr = "webkitTransitionEnd"),
  30629. void 0 === window.onanimationend && void 0 !== window.onwebkitanimationend && (Zr = "WebkitAnimation",
  30630. qr = "webkitAnimationEnd"));
  30631. var Yr = $ ? window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : setTimeout : function(e) {
  30632. return e()
  30633. }
  30634. ;
  30635. function Xr(e) {
  30636. Yr((function() {
  30637. Yr(e)
  30638. }
  30639. ))
  30640. }
  30641. function Jr(e, t) {
  30642. var n = e._transitionClasses || (e._transitionClasses = []);
  30643. n.indexOf(t) < 0 && (n.push(t),
  30644. Nr(e, t))
  30645. }
  30646. function Qr(e, t) {
  30647. e._transitionClasses && y(e._transitionClasses, t),
  30648. Ur(e, t)
  30649. }
  30650. function Kr(e, t, n) {
  30651. var r = ti(e, t)
  30652. , i = r.type
  30653. , o = r.timeout
  30654. , a = r.propCount;
  30655. if (!i)
  30656. return n();
  30657. var s = "transition" === i ? Gr : qr
  30658. , l = 0
  30659. , u = function() {
  30660. e.removeEventListener(s, c),
  30661. n()
  30662. }
  30663. , c = function(t) {
  30664. t.target === e && ++l >= a && u()
  30665. };
  30666. setTimeout((function() {
  30667. l < a && u()
  30668. }
  30669. ), o + 1),
  30670. e.addEventListener(s, c)
  30671. }
  30672. var ei = /\b(transform|all)(,|$)/;
  30673. function ti(e, t) {
  30674. var n, r = window.getComputedStyle(e), i = (r[$r + "Delay"] || "").split(", "), o = (r[$r + "Duration"] || "").split(", "), a = ni(i, o), s = (r[Zr + "Delay"] || "").split(", "), l = (r[Zr + "Duration"] || "").split(", "), u = ni(s, l), c = 0, d = 0;
  30675. return "transition" === t ? a > 0 && (n = "transition",
  30676. c = a,
  30677. d = o.length) : "animation" === t ? u > 0 && (n = "animation",
  30678. c = u,
  30679. d = l.length) : d = (n = (c = Math.max(a, u)) > 0 ? a > u ? "transition" : "animation" : null) ? "transition" === n ? o.length : l.length : 0,
  30680. {
  30681. type: n,
  30682. timeout: c,
  30683. propCount: d,
  30684. hasTransform: "transition" === n && ei.test(r[$r + "Property"])
  30685. }
  30686. }
  30687. function ni(e, t) {
  30688. for (; e.length < t.length; )
  30689. e = e.concat(e);
  30690. return Math.max.apply(null, t.map((function(t, n) {
  30691. return ri(t) + ri(e[n])
  30692. }
  30693. )))
  30694. }
  30695. function ri(e) {
  30696. return 1e3 * Number(e.slice(0, -1).replace(",", "."))
  30697. }
  30698. function ii(e, t) {
  30699. var n = e.elm;
  30700. o(n._leaveCb) && (n._leaveCb.cancelled = !0,
  30701. n._leaveCb());
  30702. var r = Wr(e.data.transition);
  30703. if (!i(r) && !o(n._enterCb) && 1 === n.nodeType) {
  30704. for (var a = r.css, s = r.type, u = r.enterClass, c = r.enterToClass, d = r.enterActiveClass, f = r.appearClass, h = r.appearToClass, p = r.appearActiveClass, m = r.beforeEnter, v = r.enter, y = r.afterEnter, b = r.enterCancelled, _ = r.beforeAppear, w = r.appear, S = r.afterAppear, x = r.appearCancelled, k = r.duration, I = Xt, C = Xt.$vnode; C && C.parent; )
  30705. I = C.context,
  30706. C = C.parent;
  30707. var M = !I._isMounted || !e.isRootInsert;
  30708. if (!M || w || "" === w) {
  30709. var T = M && f ? f : u
  30710. , A = M && p ? p : d
  30711. , E = M && h ? h : c
  30712. , O = M && _ || m
  30713. , B = M && "function" == typeof w ? w : v
  30714. , L = M && S || y
  30715. , P = M && x || b
  30716. , R = g(l(k) ? k.enter : k);
  30717. 0;
  30718. var j = !1 !== a && !X
  30719. , F = si(B)
  30720. , D = n._enterCb = z((function() {
  30721. j && (Qr(n, E),
  30722. Qr(n, A)),
  30723. D.cancelled ? (j && Qr(n, T),
  30724. P && P(n)) : L && L(n),
  30725. n._enterCb = null
  30726. }
  30727. ));
  30728. e.data.show || lt(e, "insert", (function() {
  30729. var t = n.parentNode
  30730. , r = t && t._pending && t._pending[e.key];
  30731. r && r.tag === e.tag && r.elm._leaveCb && r.elm._leaveCb(),
  30732. B && B(n, D)
  30733. }
  30734. )),
  30735. O && O(n),
  30736. j && (Jr(n, T),
  30737. Jr(n, A),
  30738. Xr((function() {
  30739. Qr(n, T),
  30740. D.cancelled || (Jr(n, E),
  30741. F || (ai(R) ? setTimeout(D, R) : Kr(n, s, D)))
  30742. }
  30743. ))),
  30744. e.data.show && (t && t(),
  30745. B && B(n, D)),
  30746. j || F || D()
  30747. }
  30748. }
  30749. }
  30750. function oi(e, t) {
  30751. var n = e.elm;
  30752. o(n._enterCb) && (n._enterCb.cancelled = !0,
  30753. n._enterCb());
  30754. var r = Wr(e.data.transition);
  30755. if (i(r) || 1 !== n.nodeType)
  30756. return t();
  30757. if (!o(n._leaveCb)) {
  30758. var a = r.css
  30759. , s = r.type
  30760. , u = r.leaveClass
  30761. , c = r.leaveToClass
  30762. , d = r.leaveActiveClass
  30763. , f = r.beforeLeave
  30764. , h = r.leave
  30765. , p = r.afterLeave
  30766. , m = r.leaveCancelled
  30767. , v = r.delayLeave
  30768. , y = r.duration
  30769. , b = !1 !== a && !X
  30770. , _ = si(h)
  30771. , w = g(l(y) ? y.leave : y);
  30772. 0;
  30773. var S = n._leaveCb = z((function() {
  30774. n.parentNode && n.parentNode._pending && (n.parentNode._pending[e.key] = null),
  30775. b && (Qr(n, c),
  30776. Qr(n, d)),
  30777. S.cancelled ? (b && Qr(n, u),
  30778. m && m(n)) : (t(),
  30779. p && p(n)),
  30780. n._leaveCb = null
  30781. }
  30782. ));
  30783. v ? v(x) : x()
  30784. }
  30785. function x() {
  30786. S.cancelled || (!e.data.show && n.parentNode && ((n.parentNode._pending || (n.parentNode._pending = {}))[e.key] = e),
  30787. f && f(n),
  30788. b && (Jr(n, u),
  30789. Jr(n, d),
  30790. Xr((function() {
  30791. Qr(n, u),
  30792. S.cancelled || (Jr(n, c),
  30793. _ || (ai(w) ? setTimeout(S, w) : Kr(n, s, S)))
  30794. }
  30795. ))),
  30796. h && h(n, S),
  30797. b || _ || S())
  30798. }
  30799. }
  30800. function ai(e) {
  30801. return "number" == typeof e && !isNaN(e)
  30802. }
  30803. function si(e) {
  30804. if (i(e))
  30805. return !1;
  30806. var t = e.fns;
  30807. return o(t) ? si(Array.isArray(t) ? t[0] : t) : (e._length || e.length) > 1
  30808. }
  30809. function li(e, t) {
  30810. !0 !== t.data.show && ii(t)
  30811. }
  30812. var ui = function(e) {
  30813. var t, n, r = {}, l = e.modules, u = e.nodeOps;
  30814. for (t = 0; t < tr.length; ++t)
  30815. for (r[tr[t]] = [],
  30816. n = 0; n < l.length; ++n)
  30817. o(l[n][tr[t]]) && r[tr[t]].push(l[n][tr[t]]);
  30818. function c(e) {
  30819. var t = u.parentNode(e);
  30820. o(t) && u.removeChild(t, e)
  30821. }
  30822. function d(e, t, n, i, s, l, c) {
  30823. if (o(e.elm) && o(l) && (e = l[c] = ye(e)),
  30824. e.isRootInsert = !s,
  30825. !function(e, t, n, i) {
  30826. var s = e.data;
  30827. if (o(s)) {
  30828. var l = o(e.componentInstance) && s.keepAlive;
  30829. if (o(s = s.hook) && o(s = s.init) && s(e, !1),
  30830. o(e.componentInstance))
  30831. return f(e, t),
  30832. h(n, e.elm, i),
  30833. a(l) && function(e, t, n, i) {
  30834. var a, s = e;
  30835. for (; s.componentInstance; )
  30836. if (s = s.componentInstance._vnode,
  30837. o(a = s.data) && o(a = a.transition)) {
  30838. for (a = 0; a < r.activate.length; ++a)
  30839. r.activate[a](er, s);
  30840. t.push(s);
  30841. break
  30842. }
  30843. h(n, e.elm, i)
  30844. }(e, t, n, i),
  30845. !0
  30846. }
  30847. }(e, t, n, i)) {
  30848. var d = e.data
  30849. , g = e.children
  30850. , m = e.tag;
  30851. o(m) ? (e.elm = e.ns ? u.createElementNS(e.ns, m) : u.createElement(m, e),
  30852. y(e),
  30853. p(e, g, t),
  30854. o(d) && v(e, t),
  30855. h(n, e.elm, i)) : a(e.isComment) ? (e.elm = u.createComment(e.text),
  30856. h(n, e.elm, i)) : (e.elm = u.createTextNode(e.text),
  30857. h(n, e.elm, i))
  30858. }
  30859. }
  30860. function f(e, t) {
  30861. o(e.data.pendingInsert) && (t.push.apply(t, e.data.pendingInsert),
  30862. e.data.pendingInsert = null),
  30863. e.elm = e.componentInstance.$el,
  30864. g(e) ? (v(e, t),
  30865. y(e)) : (Kn(e),
  30866. t.push(e))
  30867. }
  30868. function h(e, t, n) {
  30869. o(e) && (o(n) ? u.parentNode(n) === e && u.insertBefore(e, t, n) : u.appendChild(e, t))
  30870. }
  30871. function p(e, t, n) {
  30872. if (Array.isArray(t)) {
  30873. 0;
  30874. for (var r = 0; r < t.length; ++r)
  30875. d(t[r], n, e.elm, null, !0, t, r)
  30876. } else
  30877. s(e.text) && u.appendChild(e.elm, u.createTextNode(String(e.text)))
  30878. }
  30879. function g(e) {
  30880. for (; e.componentInstance; )
  30881. e = e.componentInstance._vnode;
  30882. return o(e.tag)
  30883. }
  30884. function v(e, n) {
  30885. for (var i = 0; i < r.create.length; ++i)
  30886. r.create[i](er, e);
  30887. o(t = e.data.hook) && (o(t.create) && t.create(er, e),
  30888. o(t.insert) && n.push(e))
  30889. }
  30890. function y(e) {
  30891. var t;
  30892. if (o(t = e.fnScopeId))
  30893. u.setStyleScope(e.elm, t);
  30894. else
  30895. for (var n = e; n; )
  30896. o(t = n.context) && o(t = t.$options._scopeId) && u.setStyleScope(e.elm, t),
  30897. n = n.parent;
  30898. o(t = Xt) && t !== e.context && t !== e.fnContext && o(t = t.$options._scopeId) && u.setStyleScope(e.elm, t)
  30899. }
  30900. function b(e, t, n, r, i, o) {
  30901. for (; r <= i; ++r)
  30902. d(n[r], o, e, t, !1, n, r)
  30903. }
  30904. function _(e) {
  30905. var t, n, i = e.data;
  30906. if (o(i))
  30907. for (o(t = i.hook) && o(t = t.destroy) && t(e),
  30908. t = 0; t < r.destroy.length; ++t)
  30909. r.destroy[t](e);
  30910. if (o(t = e.children))
  30911. for (n = 0; n < e.children.length; ++n)
  30912. _(e.children[n])
  30913. }
  30914. function w(e, t, n) {
  30915. for (; t <= n; ++t) {
  30916. var r = e[t];
  30917. o(r) && (o(r.tag) ? (S(r),
  30918. _(r)) : c(r.elm))
  30919. }
  30920. }
  30921. function S(e, t) {
  30922. if (o(t) || o(e.data)) {
  30923. var n, i = r.remove.length + 1;
  30924. for (o(t) ? t.listeners += i : t = function(e, t) {
  30925. function n() {
  30926. 0 == --n.listeners && c(e)
  30927. }
  30928. return n.listeners = t,
  30929. n
  30930. }(e.elm, i),
  30931. o(n = e.componentInstance) && o(n = n._vnode) && o(n.data) && S(n, t),
  30932. n = 0; n < r.remove.length; ++n)
  30933. r.remove[n](e, t);
  30934. o(n = e.data.hook) && o(n = n.remove) ? n(e, t) : t()
  30935. } else
  30936. c(e.elm)
  30937. }
  30938. function x(e, t, n, r) {
  30939. for (var i = n; i < r; i++) {
  30940. var a = t[i];
  30941. if (o(a) && nr(e, a))
  30942. return i
  30943. }
  30944. }
  30945. function k(e, t, n, s, l, c) {
  30946. if (e !== t) {
  30947. o(t.elm) && o(s) && (t = s[l] = ye(t));
  30948. var f = t.elm = e.elm;
  30949. if (a(e.isAsyncPlaceholder))
  30950. o(t.asyncFactory.resolved) ? M(e.elm, t, n) : t.isAsyncPlaceholder = !0;
  30951. else if (a(t.isStatic) && a(e.isStatic) && t.key === e.key && (a(t.isCloned) || a(t.isOnce)))
  30952. t.componentInstance = e.componentInstance;
  30953. else {
  30954. var h, p = t.data;
  30955. o(p) && o(h = p.hook) && o(h = h.prepatch) && h(e, t);
  30956. var m = e.children
  30957. , v = t.children;
  30958. if (o(p) && g(t)) {
  30959. for (h = 0; h < r.update.length; ++h)
  30960. r.update[h](e, t);
  30961. o(h = p.hook) && o(h = h.update) && h(e, t)
  30962. }
  30963. i(t.text) ? o(m) && o(v) ? m !== v && function(e, t, n, r, a) {
  30964. var s, l, c, f = 0, h = 0, p = t.length - 1, g = t[0], m = t[p], v = n.length - 1, y = n[0], _ = n[v], S = !a;
  30965. for (0; f <= p && h <= v; )
  30966. i(g) ? g = t[++f] : i(m) ? m = t[--p] : nr(g, y) ? (k(g, y, r, n, h),
  30967. g = t[++f],
  30968. y = n[++h]) : nr(m, _) ? (k(m, _, r, n, v),
  30969. m = t[--p],
  30970. _ = n[--v]) : nr(g, _) ? (k(g, _, r, n, v),
  30971. S && u.insertBefore(e, g.elm, u.nextSibling(m.elm)),
  30972. g = t[++f],
  30973. _ = n[--v]) : nr(m, y) ? (k(m, y, r, n, h),
  30974. S && u.insertBefore(e, m.elm, g.elm),
  30975. m = t[--p],
  30976. y = n[++h]) : (i(s) && (s = rr(t, f, p)),
  30977. i(l = o(y.key) ? s[y.key] : x(y, t, f, p)) ? d(y, r, e, g.elm, !1, n, h) : nr(c = t[l], y) ? (k(c, y, r, n, h),
  30978. t[l] = void 0,
  30979. S && u.insertBefore(e, c.elm, g.elm)) : d(y, r, e, g.elm, !1, n, h),
  30980. y = n[++h]);
  30981. f > p ? b(e, i(n[v + 1]) ? null : n[v + 1].elm, n, h, v, r) : h > v && w(t, f, p)
  30982. }(f, m, v, n, c) : o(v) ? (o(e.text) && u.setTextContent(f, ""),
  30983. b(f, null, v, 0, v.length - 1, n)) : o(m) ? w(m, 0, m.length - 1) : o(e.text) && u.setTextContent(f, "") : e.text !== t.text && u.setTextContent(f, t.text),
  30984. o(p) && o(h = p.hook) && o(h = h.postpatch) && h(e, t)
  30985. }
  30986. }
  30987. }
  30988. function I(e, t, n) {
  30989. if (a(n) && o(e.parent))
  30990. e.parent.data.pendingInsert = t;
  30991. else
  30992. for (var r = 0; r < t.length; ++r)
  30993. t[r].data.hook.insert(t[r])
  30994. }
  30995. var C = m("attrs,class,staticClass,staticStyle,key");
  30996. function M(e, t, n, r) {
  30997. var i, s = t.tag, l = t.data, u = t.children;
  30998. if (r = r || l && l.pre,
  30999. t.elm = e,
  31000. a(t.isComment) && o(t.asyncFactory))
  31001. return t.isAsyncPlaceholder = !0,
  31002. !0;
  31003. if (o(l) && (o(i = l.hook) && o(i = i.init) && i(t, !0),
  31004. o(i = t.componentInstance)))
  31005. return f(t, n),
  31006. !0;
  31007. if (o(s)) {
  31008. if (o(u))
  31009. if (e.hasChildNodes())
  31010. if (o(i = l) && o(i = i.domProps) && o(i = i.innerHTML)) {
  31011. if (i !== e.innerHTML)
  31012. return !1
  31013. } else {
  31014. for (var c = !0, d = e.firstChild, h = 0; h < u.length; h++) {
  31015. if (!d || !M(d, u[h], n, r)) {
  31016. c = !1;
  31017. break
  31018. }
  31019. d = d.nextSibling
  31020. }
  31021. if (!c || d)
  31022. return !1
  31023. }
  31024. else
  31025. p(t, u, n);
  31026. if (o(l)) {
  31027. var g = !1;
  31028. for (var m in l)
  31029. if (!C(m)) {
  31030. g = !0,
  31031. v(t, n);
  31032. break
  31033. }
  31034. !g && l.class && it(l.class)
  31035. }
  31036. } else
  31037. e.data !== t.text && (e.data = t.text);
  31038. return !0
  31039. }
  31040. return function(e, t, n, s) {
  31041. if (!i(t)) {
  31042. var l, c = !1, f = [];
  31043. if (i(e))
  31044. c = !0,
  31045. d(t, f);
  31046. else {
  31047. var h = o(e.nodeType);
  31048. if (!h && nr(e, t))
  31049. k(e, t, f, null, null, s);
  31050. else {
  31051. if (h) {
  31052. if (1 === e.nodeType && e.hasAttribute("data-server-rendered") && (e.removeAttribute("data-server-rendered"),
  31053. n = !0),
  31054. a(n) && M(e, t, f))
  31055. return I(t, f, !0),
  31056. e;
  31057. l = e,
  31058. e = new pe(u.tagName(l).toLowerCase(),{},[],void 0,l)
  31059. }
  31060. var p = e.elm
  31061. , m = u.parentNode(p);
  31062. if (d(t, f, p._leaveCb ? null : m, u.nextSibling(p)),
  31063. o(t.parent))
  31064. for (var v = t.parent, y = g(t); v; ) {
  31065. for (var b = 0; b < r.destroy.length; ++b)
  31066. r.destroy[b](v);
  31067. if (v.elm = t.elm,
  31068. y) {
  31069. for (var S = 0; S < r.create.length; ++S)
  31070. r.create[S](er, v);
  31071. var x = v.data.hook.insert;
  31072. if (x.merged)
  31073. for (var C = 1; C < x.fns.length; C++)
  31074. x.fns[C]()
  31075. } else
  31076. Kn(v);
  31077. v = v.parent
  31078. }
  31079. o(m) ? w([e], 0, 0) : o(e.tag) && _(e)
  31080. }
  31081. }
  31082. return I(t, f, c),
  31083. t.elm
  31084. }
  31085. o(e) && _(e)
  31086. }
  31087. }({
  31088. nodeOps: Jn,
  31089. modules: [pr, vr, kr, Mr, Fr, $ ? {
  31090. create: li,
  31091. activate: li,
  31092. remove: function(e, t) {
  31093. !0 !== e.data.show ? oi(e, t) : t()
  31094. }
  31095. } : {}].concat(cr)
  31096. });
  31097. X && document.addEventListener("selectionchange", (function() {
  31098. var e = document.activeElement;
  31099. e && e.vmodel && vi(e, "input")
  31100. }
  31101. ));
  31102. var ci = {
  31103. inserted: function(e, t, n, r) {
  31104. "select" === n.tag ? (r.elm && !r.elm._vOptions ? lt(n, "postpatch", (function() {
  31105. ci.componentUpdated(e, t, n)
  31106. }
  31107. )) : di(e, t, n.context),
  31108. e._vOptions = [].map.call(e.options, pi)) : ("textarea" === n.tag || Xn(e.type)) && (e._vModifiers = t.modifiers,
  31109. t.modifiers.lazy || (e.addEventListener("compositionstart", gi),
  31110. e.addEventListener("compositionend", mi),
  31111. e.addEventListener("change", mi),
  31112. X && (e.vmodel = !0)))
  31113. },
  31114. componentUpdated: function(e, t, n) {
  31115. if ("select" === n.tag) {
  31116. di(e, t, n.context);
  31117. var r = e._vOptions
  31118. , i = e._vOptions = [].map.call(e.options, pi);
  31119. if (i.some((function(e, t) {
  31120. return !P(e, r[t])
  31121. }
  31122. )))
  31123. (e.multiple ? t.value.some((function(e) {
  31124. return hi(e, i)
  31125. }
  31126. )) : t.value !== t.oldValue && hi(t.value, i)) && vi(e, "change")
  31127. }
  31128. }
  31129. };
  31130. function di(e, t, n) {
  31131. fi(e, t, n),
  31132. (Y || J) && setTimeout((function() {
  31133. fi(e, t, n)
  31134. }
  31135. ), 0)
  31136. }
  31137. function fi(e, t, n) {
  31138. var r = t.value
  31139. , i = e.multiple;
  31140. if (!i || Array.isArray(r)) {
  31141. for (var o, a, s = 0, l = e.options.length; s < l; s++)
  31142. if (a = e.options[s],
  31143. i)
  31144. o = R(r, pi(a)) > -1,
  31145. a.selected !== o && (a.selected = o);
  31146. else if (P(pi(a), r))
  31147. return void (e.selectedIndex !== s && (e.selectedIndex = s));
  31148. i || (e.selectedIndex = -1)
  31149. }
  31150. }
  31151. function hi(e, t) {
  31152. return t.every((function(t) {
  31153. return !P(t, e)
  31154. }
  31155. ))
  31156. }
  31157. function pi(e) {
  31158. return "_value"in e ? e._value : e.value
  31159. }
  31160. function gi(e) {
  31161. e.target.composing = !0
  31162. }
  31163. function mi(e) {
  31164. e.target.composing && (e.target.composing = !1,
  31165. vi(e.target, "input"))
  31166. }
  31167. function vi(e, t) {
  31168. var n = document.createEvent("HTMLEvents");
  31169. n.initEvent(t, !0, !0),
  31170. e.dispatchEvent(n)
  31171. }
  31172. function yi(e) {
  31173. return !e.componentInstance || e.data && e.data.transition ? e : yi(e.componentInstance._vnode)
  31174. }
  31175. var bi = {
  31176. model: ci,
  31177. show: {
  31178. bind: function(e, t, n) {
  31179. var r = t.value
  31180. , i = (n = yi(n)).data && n.data.transition
  31181. , o = e.__vOriginalDisplay = "none" === e.style.display ? "" : e.style.display;
  31182. r && i ? (n.data.show = !0,
  31183. ii(n, (function() {
  31184. e.style.display = o
  31185. }
  31186. ))) : e.style.display = r ? o : "none"
  31187. },
  31188. update: function(e, t, n) {
  31189. var r = t.value;
  31190. !r != !t.oldValue && ((n = yi(n)).data && n.data.transition ? (n.data.show = !0,
  31191. r ? ii(n, (function() {
  31192. e.style.display = e.__vOriginalDisplay
  31193. }
  31194. )) : oi(n, (function() {
  31195. e.style.display = "none"
  31196. }
  31197. ))) : e.style.display = r ? e.__vOriginalDisplay : "none")
  31198. },
  31199. unbind: function(e, t, n, r, i) {
  31200. i || (e.style.display = e.__vOriginalDisplay)
  31201. }
  31202. }
  31203. }
  31204. , _i = {
  31205. name: String,
  31206. appear: Boolean,
  31207. css: Boolean,
  31208. mode: String,
  31209. type: String,
  31210. enterClass: String,
  31211. leaveClass: String,
  31212. enterToClass: String,
  31213. leaveToClass: String,
  31214. enterActiveClass: String,
  31215. leaveActiveClass: String,
  31216. appearClass: String,
  31217. appearActiveClass: String,
  31218. appearToClass: String,
  31219. duration: [Number, String, Object]
  31220. };
  31221. function wi(e) {
  31222. var t = e && e.componentOptions;
  31223. return t && t.Ctor.options.abstract ? wi($t(t.children)) : e
  31224. }
  31225. function Si(e) {
  31226. var t = {}
  31227. , n = e.$options;
  31228. for (var r in n.propsData)
  31229. t[r] = e[r];
  31230. var i = n._parentListeners;
  31231. for (var o in i)
  31232. t[x(o)] = i[o];
  31233. return t
  31234. }
  31235. function xi(e, t) {
  31236. if (/\d-keep-alive$/.test(t.tag))
  31237. return e("keep-alive", {
  31238. props: t.componentOptions.propsData
  31239. })
  31240. }
  31241. var ki = function(e) {
  31242. return e.tag || gt(e)
  31243. }
  31244. , Ii = function(e) {
  31245. return "show" === e.name
  31246. }
  31247. , Ci = {
  31248. name: "transition",
  31249. props: _i,
  31250. abstract: !0,
  31251. render: function(e) {
  31252. var t = this
  31253. , n = this.$slots.default;
  31254. if (n && (n = n.filter(ki)).length) {
  31255. 0;
  31256. var r = this.mode;
  31257. 0;
  31258. var i = n[0];
  31259. if (function(e) {
  31260. for (; e = e.parent; )
  31261. if (e.data.transition)
  31262. return !0
  31263. }(this.$vnode))
  31264. return i;
  31265. var o = wi(i);
  31266. if (!o)
  31267. return i;
  31268. if (this._leaving)
  31269. return xi(e, i);
  31270. var a = "__transition-" + this._uid + "-";
  31271. o.key = null == o.key ? o.isComment ? a + "comment" : a + o.tag : s(o.key) ? 0 === String(o.key).indexOf(a) ? o.key : a + o.key : o.key;
  31272. var l = (o.data || (o.data = {})).transition = Si(this)
  31273. , u = this._vnode
  31274. , c = wi(u);
  31275. if (o.data.directives && o.data.directives.some(Ii) && (o.data.show = !0),
  31276. c && c.data && !function(e, t) {
  31277. return t.key === e.key && t.tag === e.tag
  31278. }(o, c) && !gt(c) && (!c.componentInstance || !c.componentInstance._vnode.isComment)) {
  31279. var d = c.data.transition = A({}, l);
  31280. if ("out-in" === r)
  31281. return this._leaving = !0,
  31282. lt(d, "afterLeave", (function() {
  31283. t._leaving = !1,
  31284. t.$forceUpdate()
  31285. }
  31286. )),
  31287. xi(e, i);
  31288. if ("in-out" === r) {
  31289. if (gt(o))
  31290. return u;
  31291. var f, h = function() {
  31292. f()
  31293. };
  31294. lt(l, "afterEnter", h),
  31295. lt(l, "enterCancelled", h),
  31296. lt(d, "delayLeave", (function(e) {
  31297. f = e
  31298. }
  31299. ))
  31300. }
  31301. }
  31302. return i
  31303. }
  31304. }
  31305. }
  31306. , Mi = A({
  31307. tag: String,
  31308. moveClass: String
  31309. }, _i);
  31310. function Ti(e) {
  31311. e.elm._moveCb && e.elm._moveCb(),
  31312. e.elm._enterCb && e.elm._enterCb()
  31313. }
  31314. function Ai(e) {
  31315. e.data.newPos = e.elm.getBoundingClientRect()
  31316. }
  31317. function Ei(e) {
  31318. var t = e.data.pos
  31319. , n = e.data.newPos
  31320. , r = t.left - n.left
  31321. , i = t.top - n.top;
  31322. if (r || i) {
  31323. e.data.moved = !0;
  31324. var o = e.elm.style;
  31325. o.transform = o.WebkitTransform = "translate(" + r + "px," + i + "px)",
  31326. o.transitionDuration = "0s"
  31327. }
  31328. }
  31329. delete Mi.mode;
  31330. var Oi = {
  31331. Transition: Ci,
  31332. TransitionGroup: {
  31333. props: Mi,
  31334. beforeMount: function() {
  31335. var e = this
  31336. , t = this._update;
  31337. this._update = function(n, r) {
  31338. var i = Jt(e);
  31339. e.__patch__(e._vnode, e.kept, !1, !0),
  31340. e._vnode = e.kept,
  31341. i(),
  31342. t.call(e, n, r)
  31343. }
  31344. },
  31345. render: function(e) {
  31346. for (var t = this.tag || this.$vnode.data.tag || "span", n = Object.create(null), r = this.prevChildren = this.children, i = this.$slots.default || [], o = this.children = [], a = Si(this), s = 0; s < i.length; s++) {
  31347. var l = i[s];
  31348. if (l.tag)
  31349. if (null != l.key && 0 !== String(l.key).indexOf("__vlist"))
  31350. o.push(l),
  31351. n[l.key] = l,
  31352. (l.data || (l.data = {})).transition = a;
  31353. else
  31354. ;
  31355. }
  31356. if (r) {
  31357. for (var u = [], c = [], d = 0; d < r.length; d++) {
  31358. var f = r[d];
  31359. f.data.transition = a,
  31360. f.data.pos = f.elm.getBoundingClientRect(),
  31361. n[f.key] ? u.push(f) : c.push(f)
  31362. }
  31363. this.kept = e(t, null, u),
  31364. this.removed = c
  31365. }
  31366. return e(t, null, o)
  31367. },
  31368. updated: function() {
  31369. var e = this.prevChildren
  31370. , t = this.moveClass || (this.name || "v") + "-move";
  31371. e.length && this.hasMove(e[0].elm, t) && (e.forEach(Ti),
  31372. e.forEach(Ai),
  31373. e.forEach(Ei),
  31374. this._reflow = document.body.offsetHeight,
  31375. e.forEach((function(e) {
  31376. if (e.data.moved) {
  31377. var n = e.elm
  31378. , r = n.style;
  31379. Jr(n, t),
  31380. r.transform = r.WebkitTransform = r.transitionDuration = "",
  31381. n.addEventListener(Gr, n._moveCb = function e(r) {
  31382. r && r.target !== n || r && !/transform$/.test(r.propertyName) || (n.removeEventListener(Gr, e),
  31383. n._moveCb = null,
  31384. Qr(n, t))
  31385. }
  31386. )
  31387. }
  31388. }
  31389. )))
  31390. },
  31391. methods: {
  31392. hasMove: function(e, t) {
  31393. if (!Vr)
  31394. return !1;
  31395. if (this._hasMove)
  31396. return this._hasMove;
  31397. var n = e.cloneNode();
  31398. e._transitionClasses && e._transitionClasses.forEach((function(e) {
  31399. Ur(n, e)
  31400. }
  31401. )),
  31402. Nr(n, t),
  31403. n.style.display = "none",
  31404. this.$el.appendChild(n);
  31405. var r = ti(n);
  31406. return this.$el.removeChild(n),
  31407. this._hasMove = r.hasTransform
  31408. }
  31409. }
  31410. }
  31411. };
  31412. kn.config.mustUseProp = function(e, t, n) {
  31413. return "value" === n && Ln(e) && "button" !== t || "selected" === n && "option" === e || "checked" === n && "input" === e || "muted" === n && "video" === e
  31414. }
  31415. ,
  31416. kn.config.isReservedTag = qn,
  31417. kn.config.isReservedAttr = Bn,
  31418. kn.config.getTagNamespace = function(e) {
  31419. return Zn(e) ? "svg" : "math" === e ? "math" : void 0
  31420. }
  31421. ,
  31422. kn.config.isUnknownElement = function(e) {
  31423. if (!$)
  31424. return !0;
  31425. if (qn(e))
  31426. return !1;
  31427. if (e = e.toLowerCase(),
  31428. null != Yn[e])
  31429. return Yn[e];
  31430. var t = document.createElement(e);
  31431. return e.indexOf("-") > -1 ? Yn[e] = t.constructor === window.HTMLUnknownElement || t.constructor === window.HTMLElement : Yn[e] = /HTMLUnknownElement/.test(t.toString())
  31432. }
  31433. ,
  31434. A(kn.options.directives, bi),
  31435. A(kn.options.components, Oi),
  31436. kn.prototype.__patch__ = $ ? ui : O,
  31437. kn.prototype.$mount = function(e, t) {
  31438. return function(e, t, n) {
  31439. var r;
  31440. return e.$el = t,
  31441. e.$options.render || (e.$options.render = me),
  31442. en(e, "beforeMount"),
  31443. r = function() {
  31444. e._update(e._render(), n)
  31445. }
  31446. ,
  31447. new hn(e,r,O,{
  31448. before: function() {
  31449. e._isMounted && !e._isDestroyed && en(e, "beforeUpdate")
  31450. }
  31451. },!0),
  31452. n = !1,
  31453. null == e.$vnode && (e._isMounted = !0,
  31454. en(e, "mounted")),
  31455. e
  31456. }(this, e = e && $ ? function(e) {
  31457. if ("string" == typeof e) {
  31458. var t = document.querySelector(e);
  31459. return t || document.createElement("div")
  31460. }
  31461. return e
  31462. }(e) : void 0, t)
  31463. }
  31464. ,
  31465. $ && setTimeout((function() {
  31466. D.devtools && ie && ie.emit("init", kn)
  31467. }
  31468. ), 0),
  31469. t.default = kn
  31470. }
  31471. .call(this, n(20), n(184).setImmediate)
  31472. },
  31473. 61: function(e, t, n) {
  31474. "use strict";
  31475. Object.defineProperty(t, "__esModule", {
  31476. value: !0
  31477. }),
  31478. t.computeTextLineHeight = void 0,
  31479. t.computeTextLineHeight = function(e) {
  31480. return e >= 50 && e < 90 ? "1.4em" : e >= 90 ? "1.3em" : "1.5em"
  31481. }
  31482. },
  31483. 62: function(e, t, n) {
  31484. "use strict";
  31485. Object.defineProperty(t, "__esModule", {
  31486. value: !0
  31487. }),
  31488. t.computePlaceholder = void 0,
  31489. t.computePlaceholder = function(e) {
  31490. return e.image ? "image" : "none"
  31491. }
  31492. },
  31493. 69: function(e, t) {
  31494. var n, r, i = e.exports = {};
  31495. function o() {
  31496. throw new Error("setTimeout has not been defined")
  31497. }
  31498. function a() {
  31499. throw new Error("clearTimeout has not been defined")
  31500. }
  31501. function s(e) {
  31502. if (n === setTimeout)
  31503. return setTimeout(e, 0);
  31504. if ((n === o || !n) && setTimeout)
  31505. return n = setTimeout,
  31506. setTimeout(e, 0);
  31507. try {
  31508. return n(e, 0)
  31509. } catch (t) {
  31510. try {
  31511. return n.call(null, e, 0)
  31512. } catch (t) {
  31513. return n.call(this, e, 0)
  31514. }
  31515. }
  31516. }
  31517. !function() {
  31518. try {
  31519. n = "function" == typeof setTimeout ? setTimeout : o
  31520. } catch (e) {
  31521. n = o
  31522. }
  31523. try {
  31524. r = "function" == typeof clearTimeout ? clearTimeout : a
  31525. } catch (e) {
  31526. r = a
  31527. }
  31528. }();
  31529. var l, u = [], c = !1, d = -1;
  31530. function f() {
  31531. c && l && (c = !1,
  31532. l.length ? u = l.concat(u) : d = -1,
  31533. u.length && h())
  31534. }
  31535. function h() {
  31536. if (!c) {
  31537. var e = s(f);
  31538. c = !0;
  31539. for (var t = u.length; t; ) {
  31540. for (l = u,
  31541. u = []; ++d < t; )
  31542. l && l[d].run();
  31543. d = -1,
  31544. t = u.length
  31545. }
  31546. l = null,
  31547. c = !1,
  31548. function(e) {
  31549. if (r === clearTimeout)
  31550. return clearTimeout(e);
  31551. if ((r === a || !r) && clearTimeout)
  31552. return r = clearTimeout,
  31553. clearTimeout(e);
  31554. try {
  31555. r(e)
  31556. } catch (t) {
  31557. try {
  31558. return r.call(null, e)
  31559. } catch (t) {
  31560. return r.call(this, e)
  31561. }
  31562. }
  31563. }(e)
  31564. }
  31565. }
  31566. function p(e, t) {
  31567. this.fun = e,
  31568. this.array = t
  31569. }
  31570. function g() {}
  31571. i.nextTick = function(e) {
  31572. var t = new Array(arguments.length - 1);
  31573. if (arguments.length > 1)
  31574. for (var n = 1; n < arguments.length; n++)
  31575. t[n - 1] = arguments[n];
  31576. u.push(new p(e,t)),
  31577. 1 !== u.length || c || s(h)
  31578. }
  31579. ,
  31580. p.prototype.run = function() {
  31581. this.fun.apply(null, this.array)
  31582. }
  31583. ,
  31584. i.title = "browser",
  31585. i.browser = !0,
  31586. i.env = {},
  31587. i.argv = [],
  31588. i.version = "",
  31589. i.versions = {},
  31590. i.on = g,
  31591. i.addListener = g,
  31592. i.once = g,
  31593. i.off = g,
  31594. i.removeListener = g,
  31595. i.removeAllListeners = g,
  31596. i.emit = g,
  31597. i.prependListener = g,
  31598. i.prependOnceListener = g,
  31599. i.listeners = function(e) {
  31600. return []
  31601. }
  31602. ,
  31603. i.binding = function(e) {
  31604. throw new Error("process.binding is not supported")
  31605. }
  31606. ,
  31607. i.cwd = function() {
  31608. return "/"
  31609. }
  31610. ,
  31611. i.chdir = function(e) {
  31612. throw new Error("process.chdir is not supported")
  31613. }
  31614. ,
  31615. i.umask = function() {
  31616. return 0
  31617. }
  31618. },
  31619. 70: function(e, t, n) {
  31620. "use strict";
  31621. n.r(t);
  31622. var r = {
  31623. update: null,
  31624. begin: null,
  31625. loopBegin: null,
  31626. changeBegin: null,
  31627. change: null,
  31628. changeComplete: null,
  31629. loopComplete: null,
  31630. complete: null,
  31631. loop: 1,
  31632. direction: "normal",
  31633. autoplay: !0,
  31634. timelineOffset: 0
  31635. }
  31636. , i = {
  31637. duration: 1e3,
  31638. delay: 0,
  31639. endDelay: 0,
  31640. easing: "easeOutElastic(1, .5)",
  31641. round: 0
  31642. }
  31643. , o = ["translateX", "translateY", "translateZ", "rotate", "rotateX", "rotateY", "rotateZ", "scale", "scaleX", "scaleY", "scaleZ", "skew", "skewX", "skewY", "perspective", "matrix", "matrix3d"]
  31644. , a = {
  31645. CSS: {},
  31646. springs: {}
  31647. };
  31648. function s(e, t, n) {
  31649. return Math.min(Math.max(e, t), n)
  31650. }
  31651. function l(e, t) {
  31652. return e.indexOf(t) > -1
  31653. }
  31654. function u(e, t) {
  31655. return e.apply(null, t)
  31656. }
  31657. var c = {
  31658. arr: function(e) {
  31659. return Array.isArray(e)
  31660. },
  31661. obj: function(e) {
  31662. return l(Object.prototype.toString.call(e), "Object")
  31663. },
  31664. pth: function(e) {
  31665. return c.obj(e) && e.hasOwnProperty("totalLength")
  31666. },
  31667. svg: function(e) {
  31668. return e instanceof SVGElement
  31669. },
  31670. inp: function(e) {
  31671. return e instanceof HTMLInputElement
  31672. },
  31673. dom: function(e) {
  31674. return e.nodeType || c.svg(e)
  31675. },
  31676. str: function(e) {
  31677. return "string" == typeof e
  31678. },
  31679. fnc: function(e) {
  31680. return "function" == typeof e
  31681. },
  31682. und: function(e) {
  31683. return void 0 === e
  31684. },
  31685. nil: function(e) {
  31686. return c.und(e) || null === e
  31687. },
  31688. hex: function(e) {
  31689. return /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)
  31690. },
  31691. rgb: function(e) {
  31692. return /^rgb/.test(e)
  31693. },
  31694. hsl: function(e) {
  31695. return /^hsl/.test(e)
  31696. },
  31697. col: function(e) {
  31698. return c.hex(e) || c.rgb(e) || c.hsl(e)
  31699. },
  31700. key: function(e) {
  31701. return !r.hasOwnProperty(e) && !i.hasOwnProperty(e) && "targets" !== e && "keyframes" !== e
  31702. }
  31703. };
  31704. function d(e) {
  31705. var t = /\(([^)]+)\)/.exec(e);
  31706. return t ? t[1].split(",").map((function(e) {
  31707. return parseFloat(e)
  31708. }
  31709. )) : []
  31710. }
  31711. function f(e, t) {
  31712. var n = d(e)
  31713. , r = s(c.und(n[0]) ? 1 : n[0], .1, 100)
  31714. , i = s(c.und(n[1]) ? 100 : n[1], .1, 100)
  31715. , o = s(c.und(n[2]) ? 10 : n[2], .1, 100)
  31716. , l = s(c.und(n[3]) ? 0 : n[3], .1, 100)
  31717. , u = Math.sqrt(i / r)
  31718. , f = o / (2 * Math.sqrt(i * r))
  31719. , h = f < 1 ? u * Math.sqrt(1 - f * f) : 0
  31720. , p = f < 1 ? (f * u - l) / h : -l + u;
  31721. function g(e) {
  31722. var n = t ? t * e / 1e3 : e;
  31723. return n = f < 1 ? Math.exp(-n * f * u) * (1 * Math.cos(h * n) + p * Math.sin(h * n)) : (1 + p * n) * Math.exp(-n * u),
  31724. 0 === e || 1 === e ? e : 1 - n
  31725. }
  31726. return t ? g : function() {
  31727. var t = a.springs[e];
  31728. if (t)
  31729. return t;
  31730. for (var n = 0, r = 0; ; )
  31731. if (1 === g(n += 1 / 6)) {
  31732. if (++r >= 16)
  31733. break
  31734. } else
  31735. r = 0;
  31736. var i = n * (1 / 6) * 1e3;
  31737. return a.springs[e] = i,
  31738. i
  31739. }
  31740. }
  31741. function h(e) {
  31742. return void 0 === e && (e = 10),
  31743. function(t) {
  31744. return Math.ceil(s(t, 1e-6, 1) * e) * (1 / e)
  31745. }
  31746. }
  31747. var p, g, m = function() {
  31748. function e(e, t) {
  31749. return 1 - 3 * t + 3 * e
  31750. }
  31751. function t(e, t) {
  31752. return 3 * t - 6 * e
  31753. }
  31754. function n(e) {
  31755. return 3 * e
  31756. }
  31757. function r(r, i, o) {
  31758. return ((e(i, o) * r + t(i, o)) * r + n(i)) * r
  31759. }
  31760. function i(r, i, o) {
  31761. return 3 * e(i, o) * r * r + 2 * t(i, o) * r + n(i)
  31762. }
  31763. return function(e, t, n, o) {
  31764. if (0 <= e && e <= 1 && 0 <= n && n <= 1) {
  31765. var a = new Float32Array(11);
  31766. if (e !== t || n !== o)
  31767. for (var s = 0; s < 11; ++s)
  31768. a[s] = r(.1 * s, e, n);
  31769. return function(i) {
  31770. return e === t && n === o || 0 === i || 1 === i ? i : r(l(i), t, o)
  31771. }
  31772. }
  31773. function l(t) {
  31774. for (var o = 0, s = 1; 10 !== s && a[s] <= t; ++s)
  31775. o += .1;
  31776. --s;
  31777. var l = o + .1 * ((t - a[s]) / (a[s + 1] - a[s]))
  31778. , u = i(l, e, n);
  31779. return u >= .001 ? function(e, t, n, o) {
  31780. for (var a = 0; a < 4; ++a) {
  31781. var s = i(t, n, o);
  31782. if (0 === s)
  31783. return t;
  31784. t -= (r(t, n, o) - e) / s
  31785. }
  31786. return t
  31787. }(t, l, e, n) : 0 === u ? l : function(e, t, n, i, o) {
  31788. var a, s, l = 0;
  31789. do {
  31790. (a = r(s = t + (n - t) / 2, i, o) - e) > 0 ? n = s : t = s
  31791. } while (Math.abs(a) > 1e-7 && ++l < 10);
  31792. return s
  31793. }(t, o, o + .1, e, n)
  31794. }
  31795. }
  31796. }(), v = (p = {
  31797. linear: function() {
  31798. return function(e) {
  31799. return e
  31800. }
  31801. }
  31802. },
  31803. g = {
  31804. Sine: function() {
  31805. return function(e) {
  31806. return 1 - Math.cos(e * Math.PI / 2)
  31807. }
  31808. },
  31809. Circ: function() {
  31810. return function(e) {
  31811. return 1 - Math.sqrt(1 - e * e)
  31812. }
  31813. },
  31814. Back: function() {
  31815. return function(e) {
  31816. return e * e * (3 * e - 2)
  31817. }
  31818. },
  31819. Bounce: function() {
  31820. return function(e) {
  31821. for (var t, n = 4; e < ((t = Math.pow(2, --n)) - 1) / 11; )
  31822. ;
  31823. return 1 / Math.pow(4, 3 - n) - 7.5625 * Math.pow((3 * t - 2) / 22 - e, 2)
  31824. }
  31825. },
  31826. Elastic: function(e, t) {
  31827. void 0 === e && (e = 1),
  31828. void 0 === t && (t = .5);
  31829. var n = s(e, 1, 10)
  31830. , r = s(t, .1, 2);
  31831. return function(e) {
  31832. return 0 === e || 1 === e ? e : -n * Math.pow(2, 10 * (e - 1)) * Math.sin((e - 1 - r / (2 * Math.PI) * Math.asin(1 / n)) * (2 * Math.PI) / r)
  31833. }
  31834. }
  31835. },
  31836. ["Quad", "Cubic", "Quart", "Quint", "Expo"].forEach((function(e, t) {
  31837. g[e] = function() {
  31838. return function(e) {
  31839. return Math.pow(e, t + 2)
  31840. }
  31841. }
  31842. }
  31843. )),
  31844. Object.keys(g).forEach((function(e) {
  31845. var t = g[e];
  31846. p["easeIn" + e] = t,
  31847. p["easeOut" + e] = function(e, n) {
  31848. return function(r) {
  31849. return 1 - t(e, n)(1 - r)
  31850. }
  31851. }
  31852. ,
  31853. p["easeInOut" + e] = function(e, n) {
  31854. return function(r) {
  31855. return r < .5 ? t(e, n)(2 * r) / 2 : 1 - t(e, n)(-2 * r + 2) / 2
  31856. }
  31857. }
  31858. ,
  31859. p["easeOutIn" + e] = function(e, n) {
  31860. return function(r) {
  31861. return r < .5 ? (1 - t(e, n)(1 - 2 * r)) / 2 : (t(e, n)(2 * r - 1) + 1) / 2
  31862. }
  31863. }
  31864. }
  31865. )),
  31866. p);
  31867. function y(e, t) {
  31868. if (c.fnc(e))
  31869. return e;
  31870. var n = e.split("(")[0]
  31871. , r = v[n]
  31872. , i = d(e);
  31873. switch (n) {
  31874. case "spring":
  31875. return f(e, t);
  31876. case "cubicBezier":
  31877. return u(m, i);
  31878. case "steps":
  31879. return u(h, i);
  31880. default:
  31881. return u(r, i)
  31882. }
  31883. }
  31884. function b(e) {
  31885. try {
  31886. return document.querySelectorAll(e)
  31887. } catch (e) {
  31888. return
  31889. }
  31890. }
  31891. function _(e, t) {
  31892. for (var n = e.length, r = arguments.length >= 2 ? arguments[1] : void 0, i = [], o = 0; o < n; o++)
  31893. if (o in e) {
  31894. var a = e[o];
  31895. t.call(r, a, o, e) && i.push(a)
  31896. }
  31897. return i
  31898. }
  31899. function w(e) {
  31900. return e.reduce((function(e, t) {
  31901. return e.concat(c.arr(t) ? w(t) : t)
  31902. }
  31903. ), [])
  31904. }
  31905. function S(e) {
  31906. return c.arr(e) ? e : (c.str(e) && (e = b(e) || e),
  31907. e instanceof NodeList || e instanceof HTMLCollection ? [].slice.call(e) : [e])
  31908. }
  31909. function x(e, t) {
  31910. return e.some((function(e) {
  31911. return e === t
  31912. }
  31913. ))
  31914. }
  31915. function k(e) {
  31916. var t = {};
  31917. for (var n in e)
  31918. t[n] = e[n];
  31919. return t
  31920. }
  31921. function I(e, t) {
  31922. var n = k(e);
  31923. for (var r in e)
  31924. n[r] = t.hasOwnProperty(r) ? t[r] : e[r];
  31925. return n
  31926. }
  31927. function C(e, t) {
  31928. var n = k(e);
  31929. for (var r in t)
  31930. n[r] = c.und(e[r]) ? t[r] : e[r];
  31931. return n
  31932. }
  31933. function M(e) {
  31934. return c.rgb(e) ? (n = /rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(t = e)) ? "rgba(" + n[1] + ",1)" : t : c.hex(e) ? function(e) {
  31935. var t = e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i, (function(e, t, n, r) {
  31936. return t + t + n + n + r + r
  31937. }
  31938. ))
  31939. , n = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
  31940. return "rgba(" + parseInt(n[1], 16) + "," + parseInt(n[2], 16) + "," + parseInt(n[3], 16) + ",1)"
  31941. }(e) : c.hsl(e) ? function(e) {
  31942. var t, n, r, i = /hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e) || /hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e), o = parseInt(i[1], 10) / 360, a = parseInt(i[2], 10) / 100, s = parseInt(i[3], 10) / 100, l = i[4] || 1;
  31943. function u(e, t, n) {
  31944. return n < 0 && (n += 1),
  31945. n > 1 && (n -= 1),
  31946. n < 1 / 6 ? e + 6 * (t - e) * n : n < .5 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e
  31947. }
  31948. if (0 == a)
  31949. t = n = r = s;
  31950. else {
  31951. var c = s < .5 ? s * (1 + a) : s + a - s * a
  31952. , d = 2 * s - c;
  31953. t = u(d, c, o + 1 / 3),
  31954. n = u(d, c, o),
  31955. r = u(d, c, o - 1 / 3)
  31956. }
  31957. return "rgba(" + 255 * t + "," + 255 * n + "," + 255 * r + "," + l + ")"
  31958. }(e) : void 0;
  31959. var t, n
  31960. }
  31961. function T(e) {
  31962. var t = /[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);
  31963. if (t)
  31964. return t[1]
  31965. }
  31966. function A(e, t) {
  31967. return c.fnc(e) ? e(t.target, t.id, t.total) : e
  31968. }
  31969. function E(e, t) {
  31970. return e.getAttribute(t)
  31971. }
  31972. function O(e, t, n) {
  31973. if (x([n, "deg", "rad", "turn"], T(t)))
  31974. return t;
  31975. var r = a.CSS[t + n];
  31976. if (!c.und(r))
  31977. return r;
  31978. var i = document.createElement(e.tagName)
  31979. , o = e.parentNode && e.parentNode !== document ? e.parentNode : document.body;
  31980. o.appendChild(i),
  31981. i.style.position = "absolute",
  31982. i.style.width = 100 + n;
  31983. var s = 100 / i.offsetWidth;
  31984. o.removeChild(i);
  31985. var l = s * parseFloat(t);
  31986. return a.CSS[t + n] = l,
  31987. l
  31988. }
  31989. function B(e, t, n) {
  31990. if (t in e.style) {
  31991. var r = t.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase()
  31992. , i = e.style[t] || getComputedStyle(e).getPropertyValue(r) || "0";
  31993. return n ? O(e, i, n) : i
  31994. }
  31995. }
  31996. function L(e, t) {
  31997. return c.dom(e) && !c.inp(e) && (!c.nil(E(e, t)) || c.svg(e) && e[t]) ? "attribute" : c.dom(e) && x(o, t) ? "transform" : c.dom(e) && "transform" !== t && B(e, t) ? "css" : null != e[t] ? "object" : void 0
  31998. }
  31999. function P(e) {
  32000. if (c.dom(e)) {
  32001. for (var t, n = e.style.transform || "", r = /(\w+)\(([^)]*)\)/g, i = new Map; t = r.exec(n); )
  32002. i.set(t[1], t[2]);
  32003. return i
  32004. }
  32005. }
  32006. function R(e, t, n, r) {
  32007. var i = l(t, "scale") ? 1 : 0 + function(e) {
  32008. return l(e, "translate") || "perspective" === e ? "px" : l(e, "rotate") || l(e, "skew") ? "deg" : void 0
  32009. }(t)
  32010. , o = P(e).get(t) || i;
  32011. return n && (n.transforms.list.set(t, o),
  32012. n.transforms.last = t),
  32013. r ? O(e, o, r) : o
  32014. }
  32015. function z(e, t, n, r) {
  32016. switch (L(e, t)) {
  32017. case "transform":
  32018. return R(e, t, r, n);
  32019. case "css":
  32020. return B(e, t, n);
  32021. case "attribute":
  32022. return E(e, t);
  32023. default:
  32024. return e[t] || 0
  32025. }
  32026. }
  32027. function j(e, t) {
  32028. var n = /^(\*=|\+=|-=)/.exec(e);
  32029. if (!n)
  32030. return e;
  32031. var r = T(e) || 0
  32032. , i = parseFloat(t)
  32033. , o = parseFloat(e.replace(n[0], ""));
  32034. switch (n[0][0]) {
  32035. case "+":
  32036. return i + o + r;
  32037. case "-":
  32038. return i - o + r;
  32039. case "*":
  32040. return i * o + r
  32041. }
  32042. }
  32043. function F(e, t) {
  32044. if (c.col(e))
  32045. return M(e);
  32046. if (/\s/g.test(e))
  32047. return e;
  32048. var n = T(e)
  32049. , r = n ? e.substr(0, e.length - n.length) : e;
  32050. return t ? r + t : r
  32051. }
  32052. function D(e, t) {
  32053. return Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2))
  32054. }
  32055. function N(e) {
  32056. for (var t, n = e.points, r = 0, i = 0; i < n.numberOfItems; i++) {
  32057. var o = n.getItem(i);
  32058. i > 0 && (r += D(t, o)),
  32059. t = o
  32060. }
  32061. return r
  32062. }
  32063. function U(e) {
  32064. if (e.getTotalLength)
  32065. return e.getTotalLength();
  32066. switch (e.tagName.toLowerCase()) {
  32067. case "circle":
  32068. return function(e) {
  32069. return 2 * Math.PI * E(e, "r")
  32070. }(e);
  32071. case "rect":
  32072. return function(e) {
  32073. return 2 * E(e, "width") + 2 * E(e, "height")
  32074. }(e);
  32075. case "line":
  32076. return function(e) {
  32077. return D({
  32078. x: E(e, "x1"),
  32079. y: E(e, "y1")
  32080. }, {
  32081. x: E(e, "x2"),
  32082. y: E(e, "y2")
  32083. })
  32084. }(e);
  32085. case "polyline":
  32086. return N(e);
  32087. case "polygon":
  32088. return function(e) {
  32089. var t = e.points;
  32090. return N(e) + D(t.getItem(t.numberOfItems - 1), t.getItem(0))
  32091. }(e)
  32092. }
  32093. }
  32094. function W(e, t) {
  32095. var n = t || {}
  32096. , r = n.el || function(e) {
  32097. for (var t = e.parentNode; c.svg(t) && c.svg(t.parentNode); )
  32098. t = t.parentNode;
  32099. return t
  32100. }(e)
  32101. , i = r.getBoundingClientRect()
  32102. , o = E(r, "viewBox")
  32103. , a = i.width
  32104. , s = i.height
  32105. , l = n.viewBox || (o ? o.split(" ") : [0, 0, a, s]);
  32106. return {
  32107. el: r,
  32108. viewBox: l,
  32109. x: l[0] / 1,
  32110. y: l[1] / 1,
  32111. w: a,
  32112. h: s,
  32113. vW: l[2],
  32114. vH: l[3]
  32115. }
  32116. }
  32117. function H(e, t, n) {
  32118. function r(n) {
  32119. void 0 === n && (n = 0);
  32120. var r = t + n >= 1 ? t + n : 0;
  32121. return e.el.getPointAtLength(r)
  32122. }
  32123. var i = W(e.el, e.svg)
  32124. , o = r()
  32125. , a = r(-1)
  32126. , s = r(1)
  32127. , l = n ? 1 : i.w / i.vW
  32128. , u = n ? 1 : i.h / i.vH;
  32129. switch (e.property) {
  32130. case "x":
  32131. return (o.x - i.x) * l;
  32132. case "y":
  32133. return (o.y - i.y) * u;
  32134. case "angle":
  32135. return 180 * Math.atan2(s.y - a.y, s.x - a.x) / Math.PI
  32136. }
  32137. }
  32138. function V(e, t) {
  32139. var n = /[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g
  32140. , r = F(c.pth(e) ? e.totalLength : e, t) + "";
  32141. return {
  32142. original: r,
  32143. numbers: r.match(n) ? r.match(n).map(Number) : [0],
  32144. strings: c.str(e) || t ? r.split(n) : []
  32145. }
  32146. }
  32147. function $(e) {
  32148. return _(e ? w(c.arr(e) ? e.map(S) : S(e)) : [], (function(e, t, n) {
  32149. return n.indexOf(e) === t
  32150. }
  32151. ))
  32152. }
  32153. function G(e) {
  32154. var t = $(e);
  32155. return t.map((function(e, n) {
  32156. return {
  32157. target: e,
  32158. id: n,
  32159. total: t.length,
  32160. transforms: {
  32161. list: P(e)
  32162. }
  32163. }
  32164. }
  32165. ))
  32166. }
  32167. function Z(e, t) {
  32168. var n = k(t);
  32169. if (/^spring/.test(n.easing) && (n.duration = f(n.easing)),
  32170. c.arr(e)) {
  32171. var r = e.length;
  32172. 2 === r && !c.obj(e[0]) ? e = {
  32173. value: e
  32174. } : c.fnc(t.duration) || (n.duration = t.duration / r)
  32175. }
  32176. var i = c.arr(e) ? e : [e];
  32177. return i.map((function(e, n) {
  32178. var r = c.obj(e) && !c.pth(e) ? e : {
  32179. value: e
  32180. };
  32181. return c.und(r.delay) && (r.delay = n ? 0 : t.delay),
  32182. c.und(r.endDelay) && (r.endDelay = n === i.length - 1 ? t.endDelay : 0),
  32183. r
  32184. }
  32185. )).map((function(e) {
  32186. return C(e, n)
  32187. }
  32188. ))
  32189. }
  32190. function q(e, t) {
  32191. var n = []
  32192. , r = t.keyframes;
  32193. for (var i in r && (t = C(function(e) {
  32194. for (var t = _(w(e.map((function(e) {
  32195. return Object.keys(e)
  32196. }
  32197. ))), (function(e) {
  32198. return c.key(e)
  32199. }
  32200. )).reduce((function(e, t) {
  32201. return e.indexOf(t) < 0 && e.push(t),
  32202. e
  32203. }
  32204. ), []), n = {}, r = function(r) {
  32205. var i = t[r];
  32206. n[i] = e.map((function(e) {
  32207. var t = {};
  32208. for (var n in e)
  32209. c.key(n) ? n == i && (t.value = e[n]) : t[n] = e[n];
  32210. return t
  32211. }
  32212. ))
  32213. }, i = 0; i < t.length; i++)
  32214. r(i);
  32215. return n
  32216. }(r), t)),
  32217. t)
  32218. c.key(i) && n.push({
  32219. name: i,
  32220. tweens: Z(t[i], e)
  32221. });
  32222. return n
  32223. }
  32224. function Y(e, t) {
  32225. var n;
  32226. return e.tweens.map((function(r) {
  32227. var i = function(e, t) {
  32228. var n = {};
  32229. for (var r in e) {
  32230. var i = A(e[r], t);
  32231. c.arr(i) && 1 === (i = i.map((function(e) {
  32232. return A(e, t)
  32233. }
  32234. ))).length && (i = i[0]),
  32235. n[r] = i
  32236. }
  32237. return n.duration = parseFloat(n.duration),
  32238. n.delay = parseFloat(n.delay),
  32239. n
  32240. }(r, t)
  32241. , o = i.value
  32242. , a = c.arr(o) ? o[1] : o
  32243. , s = T(a)
  32244. , l = z(t.target, e.name, s, t)
  32245. , u = n ? n.to.original : l
  32246. , d = c.arr(o) ? o[0] : u
  32247. , f = T(d) || T(l)
  32248. , h = s || f;
  32249. return c.und(a) && (a = u),
  32250. i.from = V(d, h),
  32251. i.to = V(j(a, d), h),
  32252. i.start = n ? n.end : 0,
  32253. i.end = i.start + i.delay + i.duration + i.endDelay,
  32254. i.easing = y(i.easing, i.duration),
  32255. i.isPath = c.pth(o),
  32256. i.isPathTargetInsideSVG = i.isPath && c.svg(t.target),
  32257. i.isColor = c.col(i.from.original),
  32258. i.isColor && (i.round = 1),
  32259. n = i,
  32260. i
  32261. }
  32262. ))
  32263. }
  32264. var X = {
  32265. css: function(e, t, n) {
  32266. return e.style[t] = n
  32267. },
  32268. attribute: function(e, t, n) {
  32269. return e.setAttribute(t, n)
  32270. },
  32271. object: function(e, t, n) {
  32272. return e[t] = n
  32273. },
  32274. transform: function(e, t, n, r, i) {
  32275. if (r.list.set(t, n),
  32276. t === r.last || i) {
  32277. var o = "";
  32278. r.list.forEach((function(e, t) {
  32279. o += t + "(" + e + ") "
  32280. }
  32281. )),
  32282. e.style.transform = o
  32283. }
  32284. }
  32285. };
  32286. function J(e, t) {
  32287. G(e).forEach((function(e) {
  32288. for (var n in t) {
  32289. var r = A(t[n], e)
  32290. , i = e.target
  32291. , o = T(r)
  32292. , a = z(i, n, o, e)
  32293. , s = j(F(r, o || T(a)), a)
  32294. , l = L(i, n);
  32295. X[l](i, n, s, e.transforms, !0)
  32296. }
  32297. }
  32298. ))
  32299. }
  32300. function Q(e, t) {
  32301. return _(w(e.map((function(e) {
  32302. return t.map((function(t) {
  32303. return function(e, t) {
  32304. var n = L(e.target, t.name);
  32305. if (n) {
  32306. var r = Y(t, e)
  32307. , i = r[r.length - 1];
  32308. return {
  32309. type: n,
  32310. property: t.name,
  32311. animatable: e,
  32312. tweens: r,
  32313. duration: i.end,
  32314. delay: r[0].delay,
  32315. endDelay: i.endDelay
  32316. }
  32317. }
  32318. }(e, t)
  32319. }
  32320. ))
  32321. }
  32322. ))), (function(e) {
  32323. return !c.und(e)
  32324. }
  32325. ))
  32326. }
  32327. function K(e, t) {
  32328. var n = e.length
  32329. , r = function(e) {
  32330. return e.timelineOffset ? e.timelineOffset : 0
  32331. }
  32332. , i = {};
  32333. return i.duration = n ? Math.max.apply(Math, e.map((function(e) {
  32334. return r(e) + e.duration
  32335. }
  32336. ))) : t.duration,
  32337. i.delay = n ? Math.min.apply(Math, e.map((function(e) {
  32338. return r(e) + e.delay
  32339. }
  32340. ))) : t.delay,
  32341. i.endDelay = n ? i.duration - Math.max.apply(Math, e.map((function(e) {
  32342. return r(e) + e.duration - e.endDelay
  32343. }
  32344. ))) : t.endDelay,
  32345. i
  32346. }
  32347. var ee = 0;
  32348. var te = []
  32349. , ne = function() {
  32350. var e;
  32351. function t(n) {
  32352. for (var r = te.length, i = 0; i < r; ) {
  32353. var o = te[i];
  32354. o.paused ? (te.splice(i, 1),
  32355. r--) : (o.tick(n),
  32356. i++)
  32357. }
  32358. e = i > 0 ? requestAnimationFrame(t) : void 0
  32359. }
  32360. return "undefined" != typeof document && document.addEventListener("visibilitychange", (function() {
  32361. ie.suspendWhenDocumentHidden && (re() ? e = cancelAnimationFrame(e) : (te.forEach((function(e) {
  32362. return e._onDocumentVisibility()
  32363. }
  32364. )),
  32365. ne()))
  32366. }
  32367. )),
  32368. function() {
  32369. e || re() && ie.suspendWhenDocumentHidden || !(te.length > 0) || (e = requestAnimationFrame(t))
  32370. }
  32371. }();
  32372. function re() {
  32373. return !!document && document.hidden
  32374. }
  32375. function ie(e) {
  32376. void 0 === e && (e = {});
  32377. var t, n = 0, o = 0, a = 0, l = 0, u = null;
  32378. function c(e) {
  32379. var t = window.Promise && new Promise((function(e) {
  32380. return u = e
  32381. }
  32382. ));
  32383. return e.finished = t,
  32384. t
  32385. }
  32386. var d = function(e) {
  32387. var t = I(r, e)
  32388. , n = I(i, e)
  32389. , o = q(n, e)
  32390. , a = G(e.targets)
  32391. , s = Q(a, o)
  32392. , l = K(s, n)
  32393. , u = ee;
  32394. return ee++,
  32395. C(t, {
  32396. id: u,
  32397. children: [],
  32398. animatables: a,
  32399. animations: s,
  32400. duration: l.duration,
  32401. delay: l.delay,
  32402. endDelay: l.endDelay
  32403. })
  32404. }(e);
  32405. c(d);
  32406. function f() {
  32407. var e = d.direction;
  32408. "alternate" !== e && (d.direction = "normal" !== e ? "normal" : "reverse"),
  32409. d.reversed = !d.reversed,
  32410. t.forEach((function(e) {
  32411. return e.reversed = d.reversed
  32412. }
  32413. ))
  32414. }
  32415. function h(e) {
  32416. return d.reversed ? d.duration - e : e
  32417. }
  32418. function p() {
  32419. n = 0,
  32420. o = h(d.currentTime) * (1 / ie.speed)
  32421. }
  32422. function g(e, t) {
  32423. t && t.seek(e - t.timelineOffset)
  32424. }
  32425. function m(e) {
  32426. for (var t = 0, n = d.animations, r = n.length; t < r; ) {
  32427. var i = n[t]
  32428. , o = i.animatable
  32429. , a = i.tweens
  32430. , l = a.length - 1
  32431. , u = a[l];
  32432. l && (u = _(a, (function(t) {
  32433. return e < t.end
  32434. }
  32435. ))[0] || u);
  32436. for (var c = s(e - u.start - u.delay, 0, u.duration) / u.duration, f = isNaN(c) ? 1 : u.easing(c), h = u.to.strings, p = u.round, g = [], m = u.to.numbers.length, v = void 0, y = 0; y < m; y++) {
  32437. var b = void 0
  32438. , w = u.to.numbers[y]
  32439. , S = u.from.numbers[y] || 0;
  32440. b = u.isPath ? H(u.value, f * w, u.isPathTargetInsideSVG) : S + f * (w - S),
  32441. p && (u.isColor && y > 2 || (b = Math.round(b * p) / p)),
  32442. g.push(b)
  32443. }
  32444. var x = h.length;
  32445. if (x) {
  32446. v = h[0];
  32447. for (var k = 0; k < x; k++) {
  32448. h[k];
  32449. var I = h[k + 1]
  32450. , C = g[k];
  32451. isNaN(C) || (v += I ? C + I : C + " ")
  32452. }
  32453. } else
  32454. v = g[0];
  32455. X[i.type](o.target, i.property, v, o.transforms),
  32456. i.currentValue = v,
  32457. t++
  32458. }
  32459. }
  32460. function v(e) {
  32461. d[e] && !d.passThrough && d[e](d)
  32462. }
  32463. function y(e) {
  32464. var r = d.duration
  32465. , i = d.delay
  32466. , p = r - d.endDelay
  32467. , y = h(e);
  32468. d.progress = s(y / r * 100, 0, 100),
  32469. d.reversePlayback = y < d.currentTime,
  32470. t && function(e) {
  32471. if (d.reversePlayback)
  32472. for (var n = l; n--; )
  32473. g(e, t[n]);
  32474. else
  32475. for (var r = 0; r < l; r++)
  32476. g(e, t[r])
  32477. }(y),
  32478. !d.began && d.currentTime > 0 && (d.began = !0,
  32479. v("begin")),
  32480. !d.loopBegan && d.currentTime > 0 && (d.loopBegan = !0,
  32481. v("loopBegin")),
  32482. y <= i && 0 !== d.currentTime && m(0),
  32483. (y >= p && d.currentTime !== r || !r) && m(r),
  32484. y > i && y < p ? (d.changeBegan || (d.changeBegan = !0,
  32485. d.changeCompleted = !1,
  32486. v("changeBegin")),
  32487. v("change"),
  32488. m(y)) : d.changeBegan && (d.changeCompleted = !0,
  32489. d.changeBegan = !1,
  32490. v("changeComplete")),
  32491. d.currentTime = s(y, 0, r),
  32492. d.began && v("update"),
  32493. e >= r && (o = 0,
  32494. d.remaining && !0 !== d.remaining && d.remaining--,
  32495. d.remaining ? (n = a,
  32496. v("loopComplete"),
  32497. d.loopBegan = !1,
  32498. "alternate" === d.direction && f()) : (d.paused = !0,
  32499. d.completed || (d.completed = !0,
  32500. v("loopComplete"),
  32501. v("complete"),
  32502. !d.passThrough && "Promise"in window && (u(),
  32503. c(d)))))
  32504. }
  32505. return d.reset = function() {
  32506. var e = d.direction;
  32507. d.passThrough = !1,
  32508. d.currentTime = 0,
  32509. d.progress = 0,
  32510. d.paused = !0,
  32511. d.began = !1,
  32512. d.loopBegan = !1,
  32513. d.changeBegan = !1,
  32514. d.completed = !1,
  32515. d.changeCompleted = !1,
  32516. d.reversePlayback = !1,
  32517. d.reversed = "reverse" === e,
  32518. d.remaining = d.loop,
  32519. t = d.children;
  32520. for (var n = l = t.length; n--; )
  32521. d.children[n].reset();
  32522. (d.reversed && !0 !== d.loop || "alternate" === e && 1 === d.loop) && d.remaining++,
  32523. m(d.reversed ? d.duration : 0)
  32524. }
  32525. ,
  32526. d._onDocumentVisibility = p,
  32527. d.set = function(e, t) {
  32528. return J(e, t),
  32529. d
  32530. }
  32531. ,
  32532. d.tick = function(e) {
  32533. a = e,
  32534. n || (n = a),
  32535. y((a + (o - n)) * ie.speed)
  32536. }
  32537. ,
  32538. d.seek = function(e) {
  32539. y(h(e))
  32540. }
  32541. ,
  32542. d.pause = function() {
  32543. d.paused = !0,
  32544. p()
  32545. }
  32546. ,
  32547. d.play = function() {
  32548. d.paused && (d.completed && d.reset(),
  32549. d.paused = !1,
  32550. te.push(d),
  32551. p(),
  32552. ne())
  32553. }
  32554. ,
  32555. d.reverse = function() {
  32556. f(),
  32557. d.completed = !d.reversed,
  32558. p()
  32559. }
  32560. ,
  32561. d.restart = function() {
  32562. d.reset(),
  32563. d.play()
  32564. }
  32565. ,
  32566. d.remove = function(e) {
  32567. ae($(e), d)
  32568. }
  32569. ,
  32570. d.reset(),
  32571. d.autoplay && d.play(),
  32572. d
  32573. }
  32574. function oe(e, t) {
  32575. for (var n = t.length; n--; )
  32576. x(e, t[n].animatable.target) && t.splice(n, 1)
  32577. }
  32578. function ae(e, t) {
  32579. var n = t.animations
  32580. , r = t.children;
  32581. oe(e, n);
  32582. for (var i = r.length; i--; ) {
  32583. var o = r[i]
  32584. , a = o.animations;
  32585. oe(e, a),
  32586. a.length || o.children.length || r.splice(i, 1)
  32587. }
  32588. n.length || r.length || t.pause()
  32589. }
  32590. ie.version = "3.2.1",
  32591. ie.speed = 1,
  32592. ie.suspendWhenDocumentHidden = !0,
  32593. ie.running = te,
  32594. ie.remove = function(e) {
  32595. for (var t = $(e), n = te.length; n--; ) {
  32596. ae(t, te[n])
  32597. }
  32598. }
  32599. ,
  32600. ie.get = z,
  32601. ie.set = J,
  32602. ie.convertPx = O,
  32603. ie.path = function(e, t) {
  32604. var n = c.str(e) ? b(e)[0] : e
  32605. , r = t || 100;
  32606. return function(e) {
  32607. return {
  32608. property: e,
  32609. el: n,
  32610. svg: W(n),
  32611. totalLength: U(n) * (r / 100)
  32612. }
  32613. }
  32614. }
  32615. ,
  32616. ie.setDashoffset = function(e) {
  32617. var t = U(e);
  32618. return e.setAttribute("stroke-dasharray", t),
  32619. t
  32620. }
  32621. ,
  32622. ie.stagger = function(e, t) {
  32623. void 0 === t && (t = {});
  32624. var n = t.direction || "normal"
  32625. , r = t.easing ? y(t.easing) : null
  32626. , i = t.grid
  32627. , o = t.axis
  32628. , a = t.from || 0
  32629. , s = "first" === a
  32630. , l = "center" === a
  32631. , u = "last" === a
  32632. , d = c.arr(e)
  32633. , f = d ? parseFloat(e[0]) : parseFloat(e)
  32634. , h = d ? parseFloat(e[1]) : 0
  32635. , p = T(d ? e[1] : e) || 0
  32636. , g = t.start || 0 + (d ? f : 0)
  32637. , m = []
  32638. , v = 0;
  32639. return function(e, t, c) {
  32640. if (s && (a = 0),
  32641. l && (a = (c - 1) / 2),
  32642. u && (a = c - 1),
  32643. !m.length) {
  32644. for (var y = 0; y < c; y++) {
  32645. if (i) {
  32646. var b = l ? (i[0] - 1) / 2 : a % i[0]
  32647. , _ = l ? (i[1] - 1) / 2 : Math.floor(a / i[0])
  32648. , w = b - y % i[0]
  32649. , S = _ - Math.floor(y / i[0])
  32650. , x = Math.sqrt(w * w + S * S);
  32651. "x" === o && (x = -w),
  32652. "y" === o && (x = -S),
  32653. m.push(x)
  32654. } else
  32655. m.push(Math.abs(a - y));
  32656. v = Math.max.apply(Math, m)
  32657. }
  32658. r && (m = m.map((function(e) {
  32659. return r(e / v) * v
  32660. }
  32661. ))),
  32662. "reverse" === n && (m = m.map((function(e) {
  32663. return o ? e < 0 ? -1 * e : -e : Math.abs(v - e)
  32664. }
  32665. )))
  32666. }
  32667. return g + (d ? (h - f) / v : f) * (Math.round(100 * m[t]) / 100) + p
  32668. }
  32669. }
  32670. ,
  32671. ie.timeline = function(e) {
  32672. void 0 === e && (e = {});
  32673. var t = ie(e);
  32674. return t.duration = 0,
  32675. t.add = function(n, r) {
  32676. var o = te.indexOf(t)
  32677. , a = t.children;
  32678. function s(e) {
  32679. e.passThrough = !0
  32680. }
  32681. o > -1 && te.splice(o, 1);
  32682. for (var l = 0; l < a.length; l++)
  32683. s(a[l]);
  32684. var u = C(n, I(i, e));
  32685. u.targets = u.targets || e.targets;
  32686. var d = t.duration;
  32687. u.autoplay = !1,
  32688. u.direction = t.direction,
  32689. u.timelineOffset = c.und(r) ? d : j(r, d),
  32690. s(t),
  32691. t.seek(u.timelineOffset);
  32692. var f = ie(u);
  32693. s(f),
  32694. a.push(f);
  32695. var h = K(a, e);
  32696. return t.delay = h.delay,
  32697. t.endDelay = h.endDelay,
  32698. t.duration = h.duration,
  32699. t.seek(0),
  32700. t.reset(),
  32701. t.autoplay && t.play(),
  32702. t
  32703. }
  32704. ,
  32705. t
  32706. }
  32707. ,
  32708. ie.easing = y,
  32709. ie.penner = v,
  32710. ie.random = function(e, t) {
  32711. return Math.floor(Math.random() * (t - e + 1)) + e
  32712. }
  32713. ,
  32714. t.default = ie
  32715. },
  32716. 75: function(e, t, n) {
  32717. "use strict";
  32718. var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) {
  32719. void 0 === r && (r = n),
  32720. Object.defineProperty(e, r, {
  32721. enumerable: !0,
  32722. get: function() {
  32723. return t[n]
  32724. }
  32725. })
  32726. }
  32727. : function(e, t, n, r) {
  32728. void 0 === r && (r = n),
  32729. e[r] = t[n]
  32730. }
  32731. )
  32732. , i = this && this.__exportStar || function(e, t) {
  32733. for (var n in e)
  32734. "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n)
  32735. }
  32736. ;
  32737. Object.defineProperty(t, "__esModule", {
  32738. value: !0
  32739. }),
  32740. i(n(76), t),
  32741. i(n(50), t),
  32742. i(n(51), t),
  32743. i(n(168), t),
  32744. i(n(169), t),
  32745. i(n(111), t),
  32746. i(n(172), t),
  32747. i(n(262), t),
  32748. i(n(112), t)
  32749. },
  32750. 76: function(e, t, n) {
  32751. "use strict";
  32752. Object.defineProperty(t, "__esModule", {
  32753. value: !0
  32754. }),
  32755. t.View = void 0;
  32756. t.View = class {
  32757. constructor(e={}) {
  32758. var t;
  32759. this._superview = null,
  32760. this._connected = !1,
  32761. this._superview = null !== (t = e.superview) && void 0 !== t ? t : null
  32762. }
  32763. get superview() {
  32764. return this._superview
  32765. }
  32766. get el() {
  32767. var e;
  32768. return null !== (e = this._el) && void 0 !== e ? e : this._el = this.createViewElement()
  32769. }
  32770. update() {}
  32771. connect() {
  32772. this._connected = !0
  32773. }
  32774. disconnect() {
  32775. this._connected = !1
  32776. }
  32777. get connected() {
  32778. return this._connected
  32779. }
  32780. }
  32781. },
  32782. 80: function(e, t, n) {
  32783. "use strict";
  32784. n.d(t, "a", (function() {
  32785. return S
  32786. }
  32787. )),
  32788. n.d(t, "c", (function() {
  32789. return x
  32790. }
  32791. )),
  32792. n.d(t, "e", (function() {
  32793. return C
  32794. }
  32795. )),
  32796. n.d(t, "b", (function() {
  32797. return M
  32798. }
  32799. )),
  32800. n.d(t, "d", (function() {
  32801. return T
  32802. }
  32803. ));
  32804. var r = {};
  32805. n.r(r),
  32806. n.d(r, "getMarkerInfoById", (function() {
  32807. return m
  32808. }
  32809. )),
  32810. n.d(r, "getGroupInfoById", (function() {
  32811. return v
  32812. }
  32813. )),
  32814. n.d(r, "getGroupInfoList", (function() {
  32815. return y
  32816. }
  32817. )),
  32818. n.d(r, "addUserMarkerInfoList", (function() {
  32819. return b
  32820. }
  32821. )),
  32822. n.d(r, "isSiblingMarker", (function() {
  32823. return _
  32824. }
  32825. )),
  32826. n.d(r, "indexOf", (function() {
  32827. return w
  32828. }
  32829. ));
  32830. var i, o = n(4), a = n(138), s = n.n(a), l = n(139);
  32831. !function(e) {
  32832. e.tagMarkers = "tagMarkers",
  32833. e.priorityMarkers = "priorityMarkers",
  32834. e.smileyMarkers = "smileyMarkers",
  32835. e.taskMarkers = "taskMarkers",
  32836. e.flagMarkers = "flagMarkers",
  32837. e.starMarkers = "starMarkers",
  32838. e.peopleMarkers = "peopleMarkers",
  32839. e.arrowMarkers = "arrowMarkers",
  32840. e.academicMarkers = "academicMarkers",
  32841. e.socialMarkers = "socialMarkers",
  32842. e.celebrationMarkers = "celebrationMarkers",
  32843. e.symbolMarkers = "symbolMarkers",
  32844. e.monthMarkers = "monthMarkers",
  32845. e.weekMarkers = "weekMarkers",
  32846. e.halfStarMarkers = "halfStarMarkers",
  32847. e.otherMarkers = "otherMarkers"
  32848. }(i || (i = {}));
  32849. const u = [i.tagMarkers, i.priorityMarkers, i.taskMarkers, i.flagMarkers, i.starMarkers, i.peopleMarkers, i.symbolMarkers, i.smileyMarkers, i.arrowMarkers, i.academicMarkers, i.socialMarkers, i.celebrationMarkers, i.monthMarkers, i.weekMarkers, i.halfStarMarkers, i.otherMarkers];
  32850. var c;
  32851. function d(e={}) {
  32852. return {
  32853. lang: e.lang || c.EN_US
  32854. }
  32855. }
  32856. !function(e) {
  32857. e.ZH_CN = "zh-CN",
  32858. e.EN_US = "en-US",
  32859. e.ZH_HK = "zh-HK",
  32860. e.ZH_TW = "zh-TW",
  32861. e.JA_JP = "ja-JP",
  32862. e.DE_DE = "de-DE",
  32863. e.FR_FR = "fr-FR",
  32864. e.ES_ES = "es",
  32865. e.ID_ID = "id",
  32866. e.IT_IT = "it-IT",
  32867. e.KR_KR = "ko",
  32868. e.PT_PT = "pt-PT",
  32869. e.RU_RU = "ru-RU",
  32870. e.TH_TH = "th"
  32871. }(c || (c = {}));
  32872. const f = {
  32873. tagMarkers: {
  32874. "zh-CN": "标签",
  32875. "en-US": "Tag",
  32876. "zh-HK": "標記",
  32877. "zh-TW": "標記",
  32878. "ja-JP": "タグ",
  32879. "de-DE": "Tag",
  32880. "fr-FR": "Étiquette",
  32881. es: "Etiqueta",
  32882. id: "Tag",
  32883. "it-IT": "Tag",
  32884. ko: "태그",
  32885. "pt-PT": "Etiqueta",
  32886. "ru-RU": "Метка",
  32887. th: "แท็ก"
  32888. },
  32889. priorityMarkers: {
  32890. "zh-CN": "优先级",
  32891. "en-US": "Priority",
  32892. "zh-HK": "優先等級",
  32893. "zh-TW": "優先等級",
  32894. "ja-JP": "優先度",
  32895. "de-DE": "Priorität",
  32896. "fr-FR": "Priorité",
  32897. es: "Prioridad",
  32898. id: "Prioritas",
  32899. "it-IT": "Priorità",
  32900. ko: "우선순위",
  32901. "pt-PT": "Prioridade",
  32902. "ru-RU": "Приоритет",
  32903. th: "ลำดับความสำคัญ"
  32904. },
  32905. smileyMarkers: {
  32906. "zh-CN": "情绪",
  32907. "en-US": "Mood",
  32908. "zh-HK": "表情",
  32909. "zh-TW": "表情",
  32910. "ja-JP": "情緒",
  32911. "de-DE": "Emotion",
  32912. "fr-FR": "Smiley",
  32913. es: "Smiley",
  32914. id: "Smiley",
  32915. "it-IT": "Emoticon",
  32916. ko: "웃는 얼굴",
  32917. "pt-PT": "Sorriso",
  32918. "ru-RU": "Смайлик",
  32919. th: "หน้ายิ้ม"
  32920. },
  32921. taskMarkers: {
  32922. "zh-CN": "任务",
  32923. "en-US": "Task",
  32924. "zh-HK": "任務",
  32925. "zh-TW": "任務",
  32926. "ja-JP": "タスク",
  32927. "de-DE": "Aufgabe",
  32928. "fr-FR": "Tâche",
  32929. es: "Tarea",
  32930. id: "Tugas",
  32931. "it-IT": "Compito",
  32932. ko: "작업",
  32933. "pt-PT": "Tarefa",
  32934. "ru-RU": "Задача",
  32935. th: "งาน"
  32936. },
  32937. flagMarkers: {
  32938. "zh-CN": "旗帜",
  32939. "en-US": "Flag",
  32940. "zh-HK": "旗幟",
  32941. "zh-TW": "旗幟",
  32942. "ja-JP": "フラグ",
  32943. "de-DE": "Flagge",
  32944. "fr-FR": "Drapeau",
  32945. es: "Bandera",
  32946. id: "Bendera",
  32947. "it-IT": "Bandiera",
  32948. ko: "깃발",
  32949. "pt-PT": "Bandeira",
  32950. "ru-RU": "Флаг",
  32951. th: "ธง"
  32952. },
  32953. starMarkers: {
  32954. "zh-CN": "星星",
  32955. "en-US": "Star",
  32956. "zh-HK": "星星",
  32957. "zh-TW": "星星",
  32958. "ja-JP": "スター",
  32959. "de-DE": "Stern",
  32960. "fr-FR": "Étoile",
  32961. es: "Estrella",
  32962. id: "Bintang",
  32963. "it-IT": "Stella",
  32964. ko: "별",
  32965. "pt-PT": "Estrela",
  32966. "ru-RU": "Звезда",
  32967. th: "ดาว"
  32968. },
  32969. peopleMarkers: {
  32970. "zh-CN": "人像",
  32971. "en-US": "People",
  32972. "zh-HK": "人像",
  32973. "zh-TW": "人像",
  32974. "ja-JP": "人物",
  32975. "de-DE": "Menschen",
  32976. "fr-FR": "Personnes",
  32977. es: "Personas",
  32978. id: "Orang",
  32979. "it-IT": "Persone",
  32980. ko: "사람",
  32981. "pt-PT": "Pessoas",
  32982. "ru-RU": "Люди",
  32983. th: "ผู้คน"
  32984. },
  32985. arrowMarkers: {
  32986. "zh-CN": "箭头",
  32987. "en-US": "Arrow",
  32988. "zh-HK": "箭頭",
  32989. "zh-TW": "箭頭",
  32990. "ja-JP": "矢印",
  32991. "de-DE": "Pfeil",
  32992. "fr-FR": "Flèche",
  32993. es: "Flecha",
  32994. id: "Panah",
  32995. "it-IT": "Freccia",
  32996. ko: "화살표",
  32997. "pt-PT": "Seta",
  32998. "ru-RU": "Стрелка",
  32999. th: "ลูกศร"
  33000. },
  33001. academicMarkers: {
  33002. "zh-CN": "学术",
  33003. "en-US": "Academic",
  33004. "zh-HK": "學院",
  33005. "zh-TW": "學院",
  33006. "ja-JP": "アカデミック",
  33007. "de-DE": "Akademisch",
  33008. "fr-FR": "Académique",
  33009. es: "Académico",
  33010. id: "Akademik",
  33011. "it-IT": "Accademico",
  33012. ko: "학술",
  33013. "pt-PT": "Académico",
  33014. "ru-RU": "Академический",
  33015. th: "วิชาการ"
  33016. },
  33017. socialMarkers: {
  33018. "zh-CN": "社交",
  33019. "en-US": "Social",
  33020. "zh-HK": "社交",
  33021. "zh-TW": "社交",
  33022. "ja-JP": "ソーシャル",
  33023. "de-DE": "Sozial",
  33024. "fr-FR": "Social",
  33025. es: "Social",
  33026. id: "Sosial",
  33027. "it-IT": "Social",
  33028. ko: "사회",
  33029. "pt-PT": "Social",
  33030. "ru-RU": "Социальный",
  33031. th: "สังคม"
  33032. },
  33033. celebrationMarkers: {
  33034. "zh-CN": "Celebration",
  33035. "en-US": "Celebration",
  33036. "zh-HK": "Celebration",
  33037. "zh-TW": "Celebration",
  33038. "ja-JP": "Celebration",
  33039. "de-DE": "Celebration",
  33040. "fr-FR": "Celebration",
  33041. es: "Celebration",
  33042. id: "Celebration",
  33043. "it-IT": "Celebration",
  33044. ko: "Celebration",
  33045. "pt-PT": "Celebration",
  33046. "ru-RU": "Celebration",
  33047. th: "Celebration"
  33048. },
  33049. symbolMarkers: {
  33050. "zh-CN": "符号",
  33051. "en-US": "Symbol",
  33052. "zh-HK": "符號",
  33053. "zh-TW": "符號",
  33054. "ja-JP": "シンボル",
  33055. "de-DE": "Symbol",
  33056. "fr-FR": "Symbole",
  33057. es: "Símbolo",
  33058. id: "Simbol",
  33059. "it-IT": "Simbolo",
  33060. ko: "기호",
  33061. "pt-PT": "Símbolo",
  33062. "ru-RU": "Символ",
  33063. th: "สัญลักษณ์"
  33064. },
  33065. monthMarkers: {
  33066. "zh-CN": "月份",
  33067. "en-US": "Month",
  33068. "zh-HK": "月份",
  33069. "zh-TW": "月份",
  33070. "ja-JP": "月",
  33071. "de-DE": "Monat",
  33072. "fr-FR": "Mois",
  33073. es: "Mes",
  33074. id: "Bulan",
  33075. "it-IT": "Mese",
  33076. ko: "개월",
  33077. "pt-PT": "Mês",
  33078. "ru-RU": "Месяц",
  33079. th: "เดือน"
  33080. },
  33081. weekMarkers: {
  33082. "zh-CN": "星期",
  33083. "en-US": "Week",
  33084. "zh-HK": "星期",
  33085. "zh-TW": "星期",
  33086. "ja-JP": "週",
  33087. "de-DE": "Woche",
  33088. "fr-FR": "Semaine",
  33089. es: "Semana",
  33090. id: "Minggu",
  33091. "it-IT": "Settimana",
  33092. ko: "주",
  33093. "pt-PT": "Semana",
  33094. "ru-RU": "Неделя",
  33095. th: "สัปดาห์"
  33096. },
  33097. halfStarMarkers: {
  33098. "zh-CN": "半星",
  33099. "en-US": "HalfStar",
  33100. "zh-HK": "半星",
  33101. "zh-TW": "半星",
  33102. "ja-JP": "ハーフスター",
  33103. "de-DE": "Halber Stern",
  33104. "fr-FR": "Demi-étoile",
  33105. es: "HalfStar",
  33106. id: "Bintang Setengah",
  33107. "it-IT": "HalfStar",
  33108. ko: "반별",
  33109. "pt-PT": "Meia Estrela",
  33110. "ru-RU": "Ползвезды",
  33111. th: "ครึ่งดาว"
  33112. },
  33113. otherMarkers: {
  33114. "zh-CN": "其他",
  33115. "en-US": "Other",
  33116. "zh-HK": "其他",
  33117. "zh-TW": "其他",
  33118. "ja-JP": "その他",
  33119. "de-DE": "Andere",
  33120. "fr-FR": "Autre",
  33121. es: "Otros",
  33122. id: "Lainnya",
  33123. "it-IT": "Altro",
  33124. ko: "기타",
  33125. "pt-PT": "Outro",
  33126. "ru-RU": "Прочее",
  33127. th: "อื่น ๆ"
  33128. }
  33129. }
  33130. , h = {
  33131. "tag-red": {
  33132. "en-US": "Red Tag"
  33133. },
  33134. "tag-orange": {
  33135. "en-US": "Orange Tag"
  33136. },
  33137. "tag-dark-blue": {
  33138. "en-US": "Dark Blue Tag"
  33139. },
  33140. "tag-dark-purple": {
  33141. "en-US": "Dark Purple Tag"
  33142. },
  33143. "tag-green": {
  33144. "en-US": "Green Tag"
  33145. },
  33146. "tag-blue": {
  33147. "en-US": "Blue Tag"
  33148. },
  33149. "tag-grey": {
  33150. "en-US": "Grey Tag"
  33151. },
  33152. "tag-yellow": {
  33153. "en-US": "Yellow Tag"
  33154. },
  33155. "tag-purple": {
  33156. "en-US": "Purple Tag"
  33157. },
  33158. "priority-1": {
  33159. "en-US": "Priority 1"
  33160. },
  33161. "priority-2": {
  33162. "en-US": "Priority 2"
  33163. },
  33164. "priority-3": {
  33165. "en-US": "Priority 3"
  33166. },
  33167. "priority-4": {
  33168. "en-US": "Priority 4"
  33169. },
  33170. "priority-5": {
  33171. "en-US": "Priority 5"
  33172. },
  33173. "priority-6": {
  33174. "en-US": "Priority 6"
  33175. },
  33176. "priority-7": {
  33177. "en-US": "Priority 7"
  33178. },
  33179. "priority-8": {
  33180. "en-US": "Priority 8"
  33181. },
  33182. "priority-9": {
  33183. "en-US": "Priority 9"
  33184. },
  33185. "smiley-laugh": {
  33186. "en-US": "Laugh"
  33187. },
  33188. "smiley-smile": {
  33189. "en-US": "Smile"
  33190. },
  33191. "smiley-cry": {
  33192. "en-US": "Cry"
  33193. },
  33194. "smiley-surprise": {
  33195. "en-US": "Surprise"
  33196. },
  33197. "smiley-boring": {
  33198. "en-US": "Boring"
  33199. },
  33200. "smiley-angry": {
  33201. "en-US": "Angry"
  33202. },
  33203. "smiley-embarrass": {
  33204. "en-US": "Embarrass"
  33205. },
  33206. "smiley-think": {
  33207. "en-US": "Think"
  33208. },
  33209. "smiley-love": {
  33210. "en-US": "Love"
  33211. },
  33212. "smiley-sad": {
  33213. "en-US": "Sad"
  33214. },
  33215. "smiley-cry-laugh": {
  33216. "en-US": "Cry Laugh"
  33217. },
  33218. "smiley-adore": {
  33219. "en-US": "Adore"
  33220. },
  33221. "smiley-devil": {
  33222. "en-US": "Devil"
  33223. },
  33224. "smiley-upset": {
  33225. "en-US": "Upset"
  33226. },
  33227. "task-start": {
  33228. "en-US": "Task Starting"
  33229. },
  33230. "task-oct": {
  33231. "en-US": "1/8 Done"
  33232. },
  33233. "task-quarter": {
  33234. "en-US": "1/4 Done"
  33235. },
  33236. "task-3oct": {
  33237. "en-US": "3/8 Done"
  33238. },
  33239. "task-half": {
  33240. "en-US": "1/2 Done"
  33241. },
  33242. "task-5oct": {
  33243. "en-US": "5/8 Done"
  33244. },
  33245. "task-3quar": {
  33246. "en-US": "3/4 Done"
  33247. },
  33248. "task-7oct": {
  33249. "en-US": "7/8 Done"
  33250. },
  33251. "task-done": {
  33252. "en-US": "Task Done"
  33253. },
  33254. "task-pause": {
  33255. "en-US": "Task Paused"
  33256. },
  33257. "flag-red": {
  33258. "en-US": "Red Flag"
  33259. },
  33260. "flag-orange": {
  33261. "en-US": "Orange Flag"
  33262. },
  33263. "flag-yellow": {
  33264. "en-US": "Yellow Flag"
  33265. },
  33266. "flag-dark-blue": {
  33267. "en-US": "Dark Blue Flag"
  33268. },
  33269. "flag-purple": {
  33270. "en-US": "Purple Flag"
  33271. },
  33272. "flag-green": {
  33273. "en-US": "Green Flag"
  33274. },
  33275. "flag-blue": {
  33276. "en-US": "Blue Flag"
  33277. },
  33278. "flag-gray": {
  33279. "en-US": "Gray Flag"
  33280. },
  33281. "flag-dark-green": {
  33282. "en-US": "Dark Green Flag"
  33283. },
  33284. "flag-dark-gray": {
  33285. "en-US": "Dark Gray Flag"
  33286. },
  33287. "star-red": {
  33288. "en-US": "Red Star"
  33289. },
  33290. "star-orange": {
  33291. "en-US": "Orange Star"
  33292. },
  33293. "star-dark-blue": {
  33294. "en-US": "Dark Blue Star"
  33295. },
  33296. "star-purple": {
  33297. "en-US": "Purple Star"
  33298. },
  33299. "star-green": {
  33300. "en-US": "Green Star"
  33301. },
  33302. "star-blue": {
  33303. "en-US": "Blue Star"
  33304. },
  33305. "star-gray": {
  33306. "en-US": "Gray Star"
  33307. },
  33308. "star-yellow": {
  33309. "en-US": "Yellow Star"
  33310. },
  33311. "star-dark-green": {
  33312. "en-US": "Dark Green Star"
  33313. },
  33314. "star-dark-gray": {
  33315. "en-US": "Dark Gray Star"
  33316. },
  33317. "people-red": {
  33318. "en-US": "Red Avatar"
  33319. },
  33320. "people-orange": {
  33321. "en-US": "Orange Avatar"
  33322. },
  33323. "people-yellow": {
  33324. "en-US": "Yellow Avatar"
  33325. },
  33326. "people-dark-blue": {
  33327. "en-US": "Dark Blue Avatar"
  33328. },
  33329. "people-purple": {
  33330. "en-US": "Purple Avatar"
  33331. },
  33332. "people-green": {
  33333. "en-US": "Green Avatar"
  33334. },
  33335. "people-blue": {
  33336. "en-US": "Blue Avatar"
  33337. },
  33338. "people-gray": {
  33339. "en-US": "Gray Avatar"
  33340. },
  33341. "people-dark-green": {
  33342. "en-US": "Dark Green Avatar"
  33343. },
  33344. "people-dark-gray": {
  33345. "en-US": "Dark Gray Avatar"
  33346. },
  33347. "arrow-left": {
  33348. "en-US": "Left"
  33349. },
  33350. "arrow-right": {
  33351. "en-US": "Right"
  33352. },
  33353. "arrow-up": {
  33354. "en-US": "Up"
  33355. },
  33356. "arrow-down": {
  33357. "en-US": "Down"
  33358. },
  33359. "arrow-left-right": {
  33360. "en-US": "Left and Right"
  33361. },
  33362. "arrow-up-down": {
  33363. "en-US": "Up and Down"
  33364. },
  33365. "arrow-refresh": {
  33366. "en-US": "Refresh"
  33367. },
  33368. "arrow-up-right": {
  33369. "en-US": "Up and Right"
  33370. },
  33371. "arrow-down-right": {
  33372. "en-US": "Down and Right"
  33373. },
  33374. "arrow-down-left": {
  33375. "en-US": "Down and Left"
  33376. },
  33377. "arrow-up-left": {
  33378. "en-US": "Up and Left"
  33379. },
  33380. c_symbol_quote: {
  33381. "en-US": "Quote"
  33382. },
  33383. c_symbol_apostrophe: {
  33384. "en-US": "Apostrophe"
  33385. },
  33386. "symbol-question": {
  33387. "en-US": "Question"
  33388. },
  33389. "symbol-attention": {
  33390. "en-US": "Attention"
  33391. },
  33392. "symbol-pause": {
  33393. "en-US": "Pause"
  33394. },
  33395. "symbol-wrong": {
  33396. "en-US": "Wrong"
  33397. },
  33398. "symbol-about": {
  33399. "en-US": "About"
  33400. },
  33401. "symbol-plus": {
  33402. "en-US": "Plus"
  33403. },
  33404. "symbol-minus": {
  33405. "en-US": "Minus"
  33406. },
  33407. "symbol-divide": {
  33408. "en-US": "Divide"
  33409. },
  33410. "symbol-equality": {
  33411. "en-US": "Equality"
  33412. },
  33413. "symbol-right": {
  33414. "en-US": "Check"
  33415. },
  33416. "symbol-code": {
  33417. "en-US": "Code"
  33418. },
  33419. "symbol-not-equality": {
  33420. "en-US": "Not Equality"
  33421. },
  33422. c_symbol_broken_heart: {
  33423. "en-US": "Broken Heart"
  33424. },
  33425. c_symbol_heart: {
  33426. "en-US": "Heart"
  33427. },
  33428. c_symbol_like: {
  33429. "en-US": "Like"
  33430. },
  33431. c_symbol_dislike: {
  33432. "en-US": "Dislike"
  33433. },
  33434. c_symbol_contact: {
  33435. "en-US": "Contact"
  33436. },
  33437. "symbol-no-entry": {
  33438. "en-US": "No Entry"
  33439. },
  33440. "symbol-notice": {
  33441. "en-US": "Notice"
  33442. },
  33443. "symbol-rss": {
  33444. "en-US": "RSS"
  33445. },
  33446. symbol_forward: {
  33447. "en-US": "Forward"
  33448. },
  33449. "symbol-share": {
  33450. "en-US": "Share"
  33451. },
  33452. "symbol-comment": {
  33453. "en-US": "Comment"
  33454. },
  33455. "symbol-heart": {
  33456. "en-US": "Heart"
  33457. },
  33458. "symbol-like": {
  33459. "en-US": "Like"
  33460. },
  33461. "symbol-dislike": {
  33462. "en-US": "Dislike"
  33463. },
  33464. "symbol-idea": {
  33465. "en-US": "Idea"
  33466. },
  33467. "symbol-lightning": {
  33468. "en-US": "Lightning"
  33469. },
  33470. "symbol-100": {
  33471. "en-US": "100"
  33472. },
  33473. "symbol-airplane": {
  33474. "en-US": "Airplane"
  33475. },
  33476. "symbol-exclamation": {
  33477. "en-US": "Exclamation"
  33478. },
  33479. "symbol-hourglass": {
  33480. "en-US": "Hourglass"
  33481. },
  33482. "symbol-music": {
  33483. "en-US": "Music"
  33484. },
  33485. "symbol-pen": {
  33486. "en-US": "Pen"
  33487. },
  33488. "symbol-run": {
  33489. "en-US": "Run"
  33490. },
  33491. "symbol-telephone": {
  33492. "en-US": "Telephone"
  33493. },
  33494. "celebration-ribbon": {
  33495. "en-US": "Ribbon"
  33496. },
  33497. "celebration-clap": {
  33498. "en-US": "Clap"
  33499. },
  33500. "celebration-100": {
  33501. "en-US": "100"
  33502. },
  33503. "celebration-birthday": {
  33504. "en-US": "Birthday"
  33505. },
  33506. "celebration-king": {
  33507. "en-US": "Crown"
  33508. },
  33509. "celebration-cheers": {
  33510. "en-US": "Cheers"
  33511. },
  33512. "celebration-boom": {
  33513. "en-US": "Boom"
  33514. },
  33515. "celebration-kiss": {
  33516. "en-US": "Kiss"
  33517. },
  33518. "celebration-five": {
  33519. "en-US": "Give Me Five"
  33520. },
  33521. "symbol-exclam": {
  33522. "en-US": "symbolExclam"
  33523. },
  33524. "symbol-info": {
  33525. "en-US": "symbolInfo"
  33526. },
  33527. "c_simbol-plus": {
  33528. "en-US": "Plus"
  33529. },
  33530. "c_simbol-minus": {
  33531. "en-US": "Minus"
  33532. },
  33533. "c_simbol-question": {
  33534. "en-US": "Question"
  33535. },
  33536. "c_simbol-exclam": {
  33537. "en-US": "symbolExclam"
  33538. },
  33539. "c_simbol-info": {
  33540. "en-US": "symbolInfo"
  33541. },
  33542. "c_simbol-wrong": {
  33543. "en-US": "Wrong"
  33544. },
  33545. "c_simbol-right": {
  33546. "en-US": "Check"
  33547. },
  33548. "c_simbol-pause": {
  33549. "en-US": "Pause"
  33550. },
  33551. c_symbol_drink: {
  33552. "en-US": "symbolDrink"
  33553. },
  33554. c_symbol_line_graph: {
  33555. "en-US": "symbolLineGraph"
  33556. },
  33557. c_symbol_medals: {
  33558. "en-US": "symbolMedals"
  33559. },
  33560. c_symbol_thermometer: {
  33561. "en-US": "symbolThermometer"
  33562. },
  33563. c_symbol_telephone: {
  33564. "en-US": "Telephone"
  33565. },
  33566. c_symbol_pen: {
  33567. "en-US": "Pen"
  33568. },
  33569. c_symbol_money: {
  33570. "en-US": "Money"
  33571. },
  33572. c_symbol_bar_chart: {
  33573. "en-US": "Bar Chart"
  33574. },
  33575. c_symbol_pie_chart: {
  33576. "en-US": "Pie Chart"
  33577. },
  33578. c_symbol_shopping_cart: {
  33579. "en-US": "Shopping Cart"
  33580. },
  33581. c_symbol_exercise: {
  33582. "en-US": "Exercise"
  33583. },
  33584. c_symbol_hourglass: {
  33585. "en-US": "Hourglass"
  33586. },
  33587. c_symbol_flight: {
  33588. "en-US": "Flight"
  33589. },
  33590. c_symbol_music: {
  33591. "en-US": "Music"
  33592. },
  33593. "symbol-entertainment": {
  33594. "en-US": "Entertainment"
  33595. },
  33596. c_symbol_trophy: {
  33597. "en-US": "Trophy"
  33598. },
  33599. "symbol-pin": {
  33600. "en-US": "Pin"
  33601. },
  33602. "symbol-unlock": {
  33603. "en-US": "Unlock"
  33604. },
  33605. c_symbol_lock: {
  33606. "en-US": "Lock"
  33607. },
  33608. "symbol-diamond": {
  33609. "en-US": "Diamond"
  33610. },
  33611. "month-jan": {
  33612. "en-US": "January"
  33613. },
  33614. "month-feb": {
  33615. "en-US": "February"
  33616. },
  33617. "month-mar": {
  33618. "en-US": "March"
  33619. },
  33620. "month-apr": {
  33621. "en-US": "April"
  33622. },
  33623. "month-may": {
  33624. "en-US": "May"
  33625. },
  33626. "month-jun": {
  33627. "en-US": "June"
  33628. },
  33629. "month-jul": {
  33630. "en-US": "July"
  33631. },
  33632. "month-aug": {
  33633. "en-US": "August"
  33634. },
  33635. "month-sep": {
  33636. "en-US": "September"
  33637. },
  33638. "month-oct": {
  33639. "en-US": "October"
  33640. },
  33641. "month-nov": {
  33642. "en-US": "November"
  33643. },
  33644. "month-dec": {
  33645. "en-US": "December"
  33646. },
  33647. "week-sun": {
  33648. "en-US": "Sunday"
  33649. },
  33650. "week-mon": {
  33651. "en-US": "Monday"
  33652. },
  33653. "week-tue": {
  33654. "en-US": "Tuesday"
  33655. },
  33656. "week-wed": {
  33657. "en-US": "Wednesday"
  33658. },
  33659. "week-thu": {
  33660. "en-US": "Thursday"
  33661. },
  33662. "week-fri": {
  33663. "en-US": "Friday"
  33664. },
  33665. "week-sat": {
  33666. "en-US": "Saturday"
  33667. },
  33668. "half-star-green": {
  33669. "en-US": "Green"
  33670. },
  33671. "half-star-red": {
  33672. "en-US": "Red"
  33673. },
  33674. "half-star-yellow": {
  33675. "en-US": "Yellow"
  33676. },
  33677. "half-star-purple": {
  33678. "en-US": "Purple"
  33679. },
  33680. "half-star-blue": {
  33681. "en-US": "Blue"
  33682. },
  33683. "half-star-gray": {
  33684. "en-US": "Gray"
  33685. },
  33686. "other-calendar": {
  33687. "en-US": "Calendar"
  33688. },
  33689. "other-email": {
  33690. "en-US": "Email"
  33691. },
  33692. "other-phone": {
  33693. "en-US": "Phone"
  33694. },
  33695. "other-phone2": {
  33696. "en-US": "Phone"
  33697. },
  33698. "other-fax": {
  33699. "en-US": "Fax"
  33700. },
  33701. "other-people": {
  33702. "en-US": "People"
  33703. },
  33704. "other-people2": {
  33705. "en-US": "People"
  33706. },
  33707. "other-clock": {
  33708. "en-US": "Clock"
  33709. },
  33710. "other-coffee-cup": {
  33711. "en-US": "Coffee Cup"
  33712. },
  33713. "other-question": {
  33714. "en-US": "Question"
  33715. },
  33716. "other-exclam": {
  33717. "en-US": "Exclamation Mark"
  33718. },
  33719. "other-lightbulb": {
  33720. "en-US": "Light Bulb"
  33721. },
  33722. "other-businesscard": {
  33723. "en-US": "Business Card"
  33724. },
  33725. "other-social": {
  33726. "en-US": "Social"
  33727. },
  33728. "other-chat": {
  33729. "en-US": "Chat"
  33730. },
  33731. "other-note": {
  33732. "en-US": "Note"
  33733. },
  33734. "other-lock": {
  33735. "en-US": "Lock"
  33736. },
  33737. "other-unlock": {
  33738. "en-US": "Unlock"
  33739. },
  33740. "other-yes": {
  33741. "en-US": "Yes"
  33742. },
  33743. "other-no": {
  33744. "en-US": "No"
  33745. },
  33746. "other-bomb": {
  33747. "en-US": "Bomb"
  33748. },
  33749. "symbol-image": {
  33750. "en-US": "symbolImage"
  33751. }
  33752. }
  33753. , p = u.map(e=>l[e].markers).reduce((e,t)=>e.concat(t), []);
  33754. let g = {};
  33755. function m(e, t) {
  33756. var n;
  33757. const {lang: r} = d(t)
  33758. , i = p.find(t=>t.markerId === e);
  33759. return i ? Object.assign(Object.assign({}, i), {
  33760. name: i.isUserMarker ? null !== (n = i.name) && void 0 !== n ? n : "" : h[e][r]
  33761. }) : null
  33762. }
  33763. function v(e, t) {
  33764. var n;
  33765. t = d(t);
  33766. const r = Object.assign(Object.assign({}, g), l)[e];
  33767. return r ? Object.assign(Object.assign({}, r), {
  33768. name: r.isUserMarker ? null !== (n = r.name) && void 0 !== n ? n : "" : f[e][t.lang],
  33769. markers: r.markers.map(e=>m(e.markerId, t))
  33770. }) : null
  33771. }
  33772. function y(e) {
  33773. return e = d(e),
  33774. u.map(e=>l[e]).filter(e=>!e.hidden).map(t=>{
  33775. var n;
  33776. return Object.assign(Object.assign({}, t), {
  33777. name: null !== (n = f[t.id][e.lang]) && void 0 !== n ? n : f[t.id][c.EN_US],
  33778. markers: t.markers.filter(e=>!e.hidden).map(t=>m(t.markerId, e))
  33779. })
  33780. }
  33781. )
  33782. }
  33783. function b(e, t) {
  33784. const n = e=>{
  33785. for (const n in t) {
  33786. const {markers: r} = t[n];
  33787. if (Array.isArray(r) && r.includes(e))
  33788. return n
  33789. }
  33790. }
  33791. ;
  33792. for (const r in e) {
  33793. const {name: i, resource: o} = e[r];
  33794. p.push({
  33795. markerId: r,
  33796. groupId: t ? n(r) : void 0,
  33797. name: i,
  33798. resource: o,
  33799. hidden: !1,
  33800. isUserMarker: !0
  33801. })
  33802. }
  33803. if (t)
  33804. for (const e in t) {
  33805. const {name: n, markers: r} = t[e];
  33806. g = Object.assign(Object.assign({}, g), {
  33807. [e]: {
  33808. id: e,
  33809. name: n,
  33810. markers: r.map(e=>m(e)).filter(Boolean),
  33811. hidden: !1,
  33812. isUserMarker: !0
  33813. }
  33814. })
  33815. }
  33816. }
  33817. function _(e, t) {
  33818. if (e === t)
  33819. return !1;
  33820. const n = m(e)
  33821. , r = m(t);
  33822. return !(!n || !r) && n.groupId === r.groupId
  33823. }
  33824. function w(e) {
  33825. return p.findIndex(t=>t.markerId === e)
  33826. }
  33827. n(230);
  33828. n(231);
  33829. class S {
  33830. constructor() {
  33831. this._dataSet = new Map
  33832. }
  33833. put(e, t) {
  33834. this._dataSet.set(e, t)
  33835. }
  33836. get(e) {
  33837. var t;
  33838. return null !== (t = this._dataSet.get(e)) && void 0 !== t ? t : null
  33839. }
  33840. }
  33841. function x(e) {
  33842. if (!e || !e.extensions)
  33843. return {};
  33844. let t;
  33845. if ("function" == typeof e.extensions) {
  33846. const n = e.extensions();
  33847. n && n.getExtension && (t = n.getExtension("org.xmind.ui.pitchMode"))
  33848. } else
  33849. e.extensions && (t = e.extensions.find(e=>"org.xmind.ui.pitchMode" === e.provider));
  33850. return t && t.content && t.content.length && t.content[0] || {}
  33851. }
  33852. function k(e) {
  33853. return (e.summaries || []).map(e=>{
  33854. if (!e.topicId || !e.range)
  33855. return null;
  33856. const [t,n,r] = e.range.match(/\((\d+),(\d+)\)/) || []
  33857. , i = parseInt(n, 10)
  33858. , o = parseInt(r, 10);
  33859. return isNaN(i) || isNaN(o) ? null : {
  33860. topicId: e.topicId,
  33861. startIndex: i,
  33862. endIndex: o
  33863. }
  33864. }
  33865. ).filter(e=>!!e)
  33866. }
  33867. function I(e, t) {
  33868. return 0 === e.length ? [] : e.sort((e,t)=>r.indexOf(e) - r.indexOf(t)).map(e=>{
  33869. var n;
  33870. return {
  33871. markerId: e,
  33872. imageSource: r.getMarkerInfoById(e) ? t + (null === (n = r.getMarkerInfoById(e)) || void 0 === n ? void 0 : n.resource) : ""
  33873. }
  33874. }
  33875. ).filter(e=>!!e.imageSource)
  33876. }
  33877. function C(e, t) {
  33878. if (!e)
  33879. return {
  33880. id: "",
  33881. title: ""
  33882. };
  33883. const n = function(e) {
  33884. let t = null
  33885. , n = null
  33886. , r = null
  33887. , i = null
  33888. , o = null;
  33889. const a = x(e);
  33890. return void 0 !== a.topicSlide && (t = a.topicSlide ? "show" : "skip"),
  33891. void 0 !== a.listSlideDisabled && (n = !0 === a.listSlideDisabled ? "skip" : "show"),
  33892. void 0 !== a.listSlideLayout && (r = a.listSlideLayout),
  33893. void 0 !== a.topicImageAlignment && (i = a.topicImageAlignment),
  33894. void 0 !== a.summarySlideDisabled && (o = !0 === a.summarySlideDisabled ? "skip" : "show"),
  33895. {
  33896. id: e ? e.id : "",
  33897. title: "",
  33898. labels: void 0,
  33899. note: void 0,
  33900. topicSlide: t,
  33901. topicSlideAlignment: null,
  33902. topicSlideImagePlacement: i,
  33903. listSlides: n,
  33904. listSlideLayout: r,
  33905. summarySlide: o
  33906. }
  33907. }(e)
  33908. , r = e.notes && e.notes.plain ? e.notes.plain.content : void 0;
  33909. return Object.assign({}, n, {
  33910. title: e.title || "",
  33911. labels: e.labels ? e.labels.slice(0) : void 0,
  33912. note: r ? {
  33913. plainText: r
  33914. } : null,
  33915. image: e.imageAttributes,
  33916. calloutTopicId: e.children && e.children.callout && e.children.callout.length > 0 ? e.children.callout[0].id : null,
  33917. markers: I((e.markers || []).map(e=>e.markerId), t),
  33918. summaries: k(e)
  33919. })
  33920. }
  33921. function M(e, t, n) {
  33922. const r = e && e.image && e.image.src;
  33923. if (!r || !r.startsWith("xap:"))
  33924. return;
  33925. const i = t.get(r.slice("xap:".length));
  33926. if (!i)
  33927. return;
  33928. const o = btoa(new Uint8Array(i).reduce((e,t)=>e + String.fromCharCode(t), ""));
  33929. var a;
  33930. const s = `data:image/${(a = r).endsWith(".svg") ? "svg+xml" : a.endsWith(".png") ? "png" : a.endsWith(".gif") ? "gif" : "jpg"};base64,${o}`;
  33931. let l;
  33932. return l = e.image.width && e.image.height ? {
  33933. width: e.image.width,
  33934. height: e.image.height
  33935. } : n.workbook.getters.getTopicImageSize(e.id),
  33936. l = l || {
  33937. width: 0,
  33938. height: 0
  33939. },
  33940. {
  33941. source: s,
  33942. size: l
  33943. }
  33944. }
  33945. function T(e, t) {
  33946. return Object(o.a)(this, void 0, void 0, (function*() {
  33947. if (!e)
  33948. return;
  33949. const n = yield(new s.a).loadAsync(e);
  33950. if (t)
  33951. for (const [e,r] of Object.entries(n.files))
  33952. if (e.startsWith("resources/") && !r.dir) {
  33953. const n = yield r.async("arraybuffer");
  33954. t.put(e, n)
  33955. }
  33956. }
  33957. ))
  33958. }
  33959. },
  33960. 84: function(e, t, n) {
  33961. "use strict";
  33962. n.d(t, "b", (function() {
  33963. return i
  33964. }
  33965. )),
  33966. n.d(t, "a", (function() {
  33967. return o
  33968. }
  33969. ));
  33970. var r = n(175);
  33971. let i;
  33972. try {
  33973. i = JSON.parse(Object(r.a)(window.metadataString || "") || "{}")
  33974. } catch (e) {
  33975. i = {
  33976. name: "",
  33977. userName: "",
  33978. updatedTime: "",
  33979. createdTime: "",
  33980. profileName: "",
  33981. isDownloadable: !1
  33982. }
  33983. }
  33984. const o = window.manifests
  33985. },
  33986. 90: function(e, t, n) {
  33987. (function(t) {
  33988. e.exports = function e(t, n, r) {
  33989. function i(a, s) {
  33990. if (!n[a]) {
  33991. if (!t[a]) {
  33992. if (o)
  33993. return o(a, !0);
  33994. var l = new Error("Cannot find module '" + a + "'");
  33995. throw l.code = "MODULE_NOT_FOUND",
  33996. l
  33997. }
  33998. var u = n[a] = {
  33999. exports: {}
  34000. };
  34001. t[a][0].call(u.exports, (function(e) {
  34002. var n = t[a][1][e];
  34003. return i(n || e)
  34004. }
  34005. ), u, u.exports, e, t, n, r)
  34006. }
  34007. return n[a].exports
  34008. }
  34009. for (var o = !1, a = 0; a < r.length; a++)
  34010. i(r[a]);
  34011. return i
  34012. }({
  34013. 1: [function(e, n, r) {
  34014. (function(e) {
  34015. "use strict";
  34016. var t, r, i = e.MutationObserver || e.WebKitMutationObserver;
  34017. if (i) {
  34018. var o = 0
  34019. , a = new i(c)
  34020. , s = e.document.createTextNode("");
  34021. a.observe(s, {
  34022. characterData: !0
  34023. }),
  34024. t = function() {
  34025. s.data = o = ++o % 2
  34026. }
  34027. } else if (e.setImmediate || void 0 === e.MessageChannel)
  34028. t = "document"in e && "onreadystatechange"in e.document.createElement("script") ? function() {
  34029. var t = e.document.createElement("script");
  34030. t.onreadystatechange = function() {
  34031. c(),
  34032. t.onreadystatechange = null,
  34033. t.parentNode.removeChild(t),
  34034. t = null
  34035. }
  34036. ,
  34037. e.document.documentElement.appendChild(t)
  34038. }
  34039. : function() {
  34040. setTimeout(c, 0)
  34041. }
  34042. ;
  34043. else {
  34044. var l = new e.MessageChannel;
  34045. l.port1.onmessage = c,
  34046. t = function() {
  34047. l.port2.postMessage(0)
  34048. }
  34049. }
  34050. var u = [];
  34051. function c() {
  34052. var e, t;
  34053. r = !0;
  34054. for (var n = u.length; n; ) {
  34055. for (t = u,
  34056. u = [],
  34057. e = -1; ++e < n; )
  34058. t[e]();
  34059. n = u.length
  34060. }
  34061. r = !1
  34062. }
  34063. n.exports = function(e) {
  34064. 1 !== u.push(e) || r || t()
  34065. }
  34066. }
  34067. ).call(this, void 0 !== t ? t : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {})
  34068. }
  34069. , {}],
  34070. 2: [function(e, t, n) {
  34071. "use strict";
  34072. var r = e(1);
  34073. function i() {}
  34074. var o = {}
  34075. , a = ["REJECTED"]
  34076. , s = ["FULFILLED"]
  34077. , l = ["PENDING"];
  34078. function u(e) {
  34079. if ("function" != typeof e)
  34080. throw new TypeError("resolver must be a function");
  34081. this.state = l,
  34082. this.queue = [],
  34083. this.outcome = void 0,
  34084. e !== i && h(this, e)
  34085. }
  34086. function c(e, t, n) {
  34087. this.promise = e,
  34088. "function" == typeof t && (this.onFulfilled = t,
  34089. this.callFulfilled = this.otherCallFulfilled),
  34090. "function" == typeof n && (this.onRejected = n,
  34091. this.callRejected = this.otherCallRejected)
  34092. }
  34093. function d(e, t, n) {
  34094. r((function() {
  34095. var r;
  34096. try {
  34097. r = t(n)
  34098. } catch (t) {
  34099. return o.reject(e, t)
  34100. }
  34101. r === e ? o.reject(e, new TypeError("Cannot resolve promise with itself")) : o.resolve(e, r)
  34102. }
  34103. ))
  34104. }
  34105. function f(e) {
  34106. var t = e && e.then;
  34107. if (e && ("object" == typeof e || "function" == typeof e) && "function" == typeof t)
  34108. return function() {
  34109. t.apply(e, arguments)
  34110. }
  34111. }
  34112. function h(e, t) {
  34113. var n = !1;
  34114. function r(t) {
  34115. n || (n = !0,
  34116. o.reject(e, t))
  34117. }
  34118. function i(t) {
  34119. n || (n = !0,
  34120. o.resolve(e, t))
  34121. }
  34122. var a = p((function() {
  34123. t(i, r)
  34124. }
  34125. ));
  34126. "error" === a.status && r(a.value)
  34127. }
  34128. function p(e, t) {
  34129. var n = {};
  34130. try {
  34131. n.value = e(t),
  34132. n.status = "success"
  34133. } catch (e) {
  34134. n.status = "error",
  34135. n.value = e
  34136. }
  34137. return n
  34138. }
  34139. t.exports = u,
  34140. u.prototype.catch = function(e) {
  34141. return this.then(null, e)
  34142. }
  34143. ,
  34144. u.prototype.then = function(e, t) {
  34145. if ("function" != typeof e && this.state === s || "function" != typeof t && this.state === a)
  34146. return this;
  34147. var n = new this.constructor(i);
  34148. return this.state !== l ? d(n, this.state === s ? e : t, this.outcome) : this.queue.push(new c(n,e,t)),
  34149. n
  34150. }
  34151. ,
  34152. c.prototype.callFulfilled = function(e) {
  34153. o.resolve(this.promise, e)
  34154. }
  34155. ,
  34156. c.prototype.otherCallFulfilled = function(e) {
  34157. d(this.promise, this.onFulfilled, e)
  34158. }
  34159. ,
  34160. c.prototype.callRejected = function(e) {
  34161. o.reject(this.promise, e)
  34162. }
  34163. ,
  34164. c.prototype.otherCallRejected = function(e) {
  34165. d(this.promise, this.onRejected, e)
  34166. }
  34167. ,
  34168. o.resolve = function(e, t) {
  34169. var n = p(f, t);
  34170. if ("error" === n.status)
  34171. return o.reject(e, n.value);
  34172. var r = n.value;
  34173. if (r)
  34174. h(e, r);
  34175. else {
  34176. e.state = s,
  34177. e.outcome = t;
  34178. for (var i = -1, a = e.queue.length; ++i < a; )
  34179. e.queue[i].callFulfilled(t)
  34180. }
  34181. return e
  34182. }
  34183. ,
  34184. o.reject = function(e, t) {
  34185. e.state = a,
  34186. e.outcome = t;
  34187. for (var n = -1, r = e.queue.length; ++n < r; )
  34188. e.queue[n].callRejected(t);
  34189. return e
  34190. }
  34191. ,
  34192. u.resolve = function(e) {
  34193. return e instanceof this ? e : o.resolve(new this(i), e)
  34194. }
  34195. ,
  34196. u.reject = function(e) {
  34197. var t = new this(i);
  34198. return o.reject(t, e)
  34199. }
  34200. ,
  34201. u.all = function(e) {
  34202. var t = this;
  34203. if ("[object Array]" !== Object.prototype.toString.call(e))
  34204. return this.reject(new TypeError("must be an array"));
  34205. var n = e.length
  34206. , r = !1;
  34207. if (!n)
  34208. return this.resolve([]);
  34209. for (var a = new Array(n), s = 0, l = -1, u = new this(i); ++l < n; )
  34210. c(e[l], l);
  34211. return u;
  34212. function c(e, i) {
  34213. t.resolve(e).then((function(e) {
  34214. a[i] = e,
  34215. ++s !== n || r || (r = !0,
  34216. o.resolve(u, a))
  34217. }
  34218. ), (function(e) {
  34219. r || (r = !0,
  34220. o.reject(u, e))
  34221. }
  34222. ))
  34223. }
  34224. }
  34225. ,
  34226. u.race = function(e) {
  34227. var t = this;
  34228. if ("[object Array]" !== Object.prototype.toString.call(e))
  34229. return this.reject(new TypeError("must be an array"));
  34230. var n = e.length
  34231. , r = !1;
  34232. if (!n)
  34233. return this.resolve([]);
  34234. for (var a, s = -1, l = new this(i); ++s < n; )
  34235. a = e[s],
  34236. t.resolve(a).then((function(e) {
  34237. r || (r = !0,
  34238. o.resolve(l, e))
  34239. }
  34240. ), (function(e) {
  34241. r || (r = !0,
  34242. o.reject(l, e))
  34243. }
  34244. ));
  34245. return l
  34246. }
  34247. }
  34248. , {
  34249. 1: 1
  34250. }],
  34251. 3: [function(e, n, r) {
  34252. (function(t) {
  34253. "use strict";
  34254. "function" != typeof t.Promise && (t.Promise = e(2))
  34255. }
  34256. ).call(this, void 0 !== t ? t : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {})
  34257. }
  34258. , {
  34259. 2: 2
  34260. }],
  34261. 4: [function(e, t, n) {
  34262. "use strict";
  34263. var r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
  34264. return typeof e
  34265. }
  34266. : function(e) {
  34267. return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
  34268. }
  34269. , i = function() {
  34270. try {
  34271. if ("undefined" != typeof indexedDB)
  34272. return indexedDB;
  34273. if ("undefined" != typeof webkitIndexedDB)
  34274. return webkitIndexedDB;
  34275. if ("undefined" != typeof mozIndexedDB)
  34276. return mozIndexedDB;
  34277. if ("undefined" != typeof OIndexedDB)
  34278. return OIndexedDB;
  34279. if ("undefined" != typeof msIndexedDB)
  34280. return msIndexedDB
  34281. } catch (e) {
  34282. return
  34283. }
  34284. }();
  34285. function o(e, t) {
  34286. e = e || [],
  34287. t = t || {};
  34288. try {
  34289. return new Blob(e,t)
  34290. } catch (i) {
  34291. if ("TypeError" !== i.name)
  34292. throw i;
  34293. for (var n = new ("undefined" != typeof BlobBuilder ? BlobBuilder : "undefined" != typeof MSBlobBuilder ? MSBlobBuilder : "undefined" != typeof MozBlobBuilder ? MozBlobBuilder : WebKitBlobBuilder), r = 0; r < e.length; r += 1)
  34294. n.append(e[r]);
  34295. return n.getBlob(t.type)
  34296. }
  34297. }
  34298. "undefined" == typeof Promise && e(3);
  34299. var a = Promise;
  34300. function s(e, t) {
  34301. t && e.then((function(e) {
  34302. t(null, e)
  34303. }
  34304. ), (function(e) {
  34305. t(e)
  34306. }
  34307. ))
  34308. }
  34309. function l(e, t, n) {
  34310. "function" == typeof t && e.then(t),
  34311. "function" == typeof n && e.catch(n)
  34312. }
  34313. function u(e) {
  34314. return "string" != typeof e && (console.warn(e + " used as a key, but it is not a string."),
  34315. e = String(e)),
  34316. e
  34317. }
  34318. function c() {
  34319. if (arguments.length && "function" == typeof arguments[arguments.length - 1])
  34320. return arguments[arguments.length - 1]
  34321. }
  34322. var d = void 0
  34323. , f = {}
  34324. , h = Object.prototype.toString;
  34325. function p(e) {
  34326. return "boolean" == typeof d ? a.resolve(d) : function(e) {
  34327. return new a((function(t) {
  34328. var n = e.transaction("local-forage-detect-blob-support", "readwrite")
  34329. , r = o([""]);
  34330. n.objectStore("local-forage-detect-blob-support").put(r, "key"),
  34331. n.onabort = function(e) {
  34332. e.preventDefault(),
  34333. e.stopPropagation(),
  34334. t(!1)
  34335. }
  34336. ,
  34337. n.oncomplete = function() {
  34338. var e = navigator.userAgent.match(/Chrome\/(\d+)/)
  34339. , n = navigator.userAgent.match(/Edge\//);
  34340. t(n || !e || parseInt(e[1], 10) >= 43)
  34341. }
  34342. }
  34343. )).catch((function() {
  34344. return !1
  34345. }
  34346. ))
  34347. }(e).then((function(e) {
  34348. return d = e
  34349. }
  34350. ))
  34351. }
  34352. function g(e) {
  34353. var t = f[e.name]
  34354. , n = {};
  34355. n.promise = new a((function(e, t) {
  34356. n.resolve = e,
  34357. n.reject = t
  34358. }
  34359. )),
  34360. t.deferredOperations.push(n),
  34361. t.dbReady ? t.dbReady = t.dbReady.then((function() {
  34362. return n.promise
  34363. }
  34364. )) : t.dbReady = n.promise
  34365. }
  34366. function m(e) {
  34367. var t = f[e.name].deferredOperations.pop();
  34368. if (t)
  34369. return t.resolve(),
  34370. t.promise
  34371. }
  34372. function v(e, t) {
  34373. var n = f[e.name].deferredOperations.pop();
  34374. if (n)
  34375. return n.reject(t),
  34376. n.promise
  34377. }
  34378. function y(e, t) {
  34379. return new a((function(n, r) {
  34380. if (f[e.name] = f[e.name] || {
  34381. forages: [],
  34382. db: null,
  34383. dbReady: null,
  34384. deferredOperations: []
  34385. },
  34386. e.db) {
  34387. if (!t)
  34388. return n(e.db);
  34389. g(e),
  34390. e.db.close()
  34391. }
  34392. var o = [e.name];
  34393. t && o.push(e.version);
  34394. var a = i.open.apply(i, o);
  34395. t && (a.onupgradeneeded = function(t) {
  34396. var n = a.result;
  34397. try {
  34398. n.createObjectStore(e.storeName),
  34399. t.oldVersion <= 1 && n.createObjectStore("local-forage-detect-blob-support")
  34400. } catch (n) {
  34401. if ("ConstraintError" !== n.name)
  34402. throw n;
  34403. console.warn('The database "' + e.name + '" has been upgraded from version ' + t.oldVersion + " to version " + t.newVersion + ', but the storage "' + e.storeName + '" already exists.')
  34404. }
  34405. }
  34406. ),
  34407. a.onerror = function(e) {
  34408. e.preventDefault(),
  34409. r(a.error)
  34410. }
  34411. ,
  34412. a.onsuccess = function() {
  34413. n(a.result),
  34414. m(e)
  34415. }
  34416. }
  34417. ))
  34418. }
  34419. function b(e) {
  34420. return y(e, !1)
  34421. }
  34422. function _(e) {
  34423. return y(e, !0)
  34424. }
  34425. function w(e, t) {
  34426. if (!e.db)
  34427. return !0;
  34428. var n = !e.db.objectStoreNames.contains(e.storeName)
  34429. , r = e.version < e.db.version
  34430. , i = e.version > e.db.version;
  34431. if (r && (e.version !== t && console.warn('The database "' + e.name + "\" can't be downgraded from version " + e.db.version + " to version " + e.version + "."),
  34432. e.version = e.db.version),
  34433. i || n) {
  34434. if (n) {
  34435. var o = e.db.version + 1;
  34436. o > e.version && (e.version = o)
  34437. }
  34438. return !0
  34439. }
  34440. return !1
  34441. }
  34442. function S(e) {
  34443. return o([function(e) {
  34444. for (var t = e.length, n = new ArrayBuffer(t), r = new Uint8Array(n), i = 0; i < t; i++)
  34445. r[i] = e.charCodeAt(i);
  34446. return n
  34447. }(atob(e.data))], {
  34448. type: e.type
  34449. })
  34450. }
  34451. function x(e) {
  34452. return e && e.__local_forage_encoded_blob
  34453. }
  34454. function k(e) {
  34455. var t = this
  34456. , n = t._initReady().then((function() {
  34457. var e = f[t._dbInfo.name];
  34458. if (e && e.dbReady)
  34459. return e.dbReady
  34460. }
  34461. ));
  34462. return l(n, e, e),
  34463. n
  34464. }
  34465. function I(e, t, n, r) {
  34466. void 0 === r && (r = 1);
  34467. try {
  34468. var i = e.db.transaction(e.storeName, t);
  34469. n(null, i)
  34470. } catch (i) {
  34471. if (r > 0 && (!e.db || "InvalidStateError" === i.name || "NotFoundError" === i.name))
  34472. return a.resolve().then((function() {
  34473. if (!e.db || "NotFoundError" === i.name && !e.db.objectStoreNames.contains(e.storeName) && e.version <= e.db.version)
  34474. return e.db && (e.version = e.db.version + 1),
  34475. _(e)
  34476. }
  34477. )).then((function() {
  34478. return function(e) {
  34479. g(e);
  34480. for (var t = f[e.name], n = t.forages, r = 0; r < n.length; r++) {
  34481. var i = n[r];
  34482. i._dbInfo.db && (i._dbInfo.db.close(),
  34483. i._dbInfo.db = null)
  34484. }
  34485. return e.db = null,
  34486. b(e).then((function(t) {
  34487. return e.db = t,
  34488. w(e) ? _(e) : t
  34489. }
  34490. )).then((function(r) {
  34491. e.db = t.db = r;
  34492. for (var i = 0; i < n.length; i++)
  34493. n[i]._dbInfo.db = r
  34494. }
  34495. )).catch((function(t) {
  34496. throw v(e, t),
  34497. t
  34498. }
  34499. ))
  34500. }(e).then((function() {
  34501. I(e, t, n, r - 1)
  34502. }
  34503. ))
  34504. }
  34505. )).catch(n);
  34506. n(i)
  34507. }
  34508. }
  34509. var C = {
  34510. _driver: "asyncStorage",
  34511. _initStorage: function(e) {
  34512. var t = this
  34513. , n = {
  34514. db: null
  34515. };
  34516. if (e)
  34517. for (var r in e)
  34518. n[r] = e[r];
  34519. var i = f[n.name];
  34520. i || (i = {
  34521. forages: [],
  34522. db: null,
  34523. dbReady: null,
  34524. deferredOperations: []
  34525. },
  34526. f[n.name] = i),
  34527. i.forages.push(t),
  34528. t._initReady || (t._initReady = t.ready,
  34529. t.ready = k);
  34530. var o = [];
  34531. function s() {
  34532. return a.resolve()
  34533. }
  34534. for (var l = 0; l < i.forages.length; l++) {
  34535. var u = i.forages[l];
  34536. u !== t && o.push(u._initReady().catch(s))
  34537. }
  34538. var c = i.forages.slice(0);
  34539. return a.all(o).then((function() {
  34540. return n.db = i.db,
  34541. b(n)
  34542. }
  34543. )).then((function(e) {
  34544. return n.db = e,
  34545. w(n, t._defaultConfig.version) ? _(n) : e
  34546. }
  34547. )).then((function(e) {
  34548. n.db = i.db = e,
  34549. t._dbInfo = n;
  34550. for (var r = 0; r < c.length; r++) {
  34551. var o = c[r];
  34552. o !== t && (o._dbInfo.db = n.db,
  34553. o._dbInfo.version = n.version)
  34554. }
  34555. }
  34556. ))
  34557. },
  34558. _support: function() {
  34559. try {
  34560. if (!i || !i.open)
  34561. return !1;
  34562. var e = "undefined" != typeof openDatabase && /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform)
  34563. , t = "function" == typeof fetch && -1 !== fetch.toString().indexOf("[native code");
  34564. return (!e || t) && "undefined" != typeof indexedDB && "undefined" != typeof IDBKeyRange
  34565. } catch (e) {
  34566. return !1
  34567. }
  34568. }(),
  34569. iterate: function(e, t) {
  34570. var n = this
  34571. , r = new a((function(t, r) {
  34572. n.ready().then((function() {
  34573. I(n._dbInfo, "readonly", (function(i, o) {
  34574. if (i)
  34575. return r(i);
  34576. try {
  34577. var a = o.objectStore(n._dbInfo.storeName).openCursor()
  34578. , s = 1;
  34579. a.onsuccess = function() {
  34580. var n = a.result;
  34581. if (n) {
  34582. var r = n.value;
  34583. x(r) && (r = S(r));
  34584. var i = e(r, n.key, s++);
  34585. void 0 !== i ? t(i) : n.continue()
  34586. } else
  34587. t()
  34588. }
  34589. ,
  34590. a.onerror = function() {
  34591. r(a.error)
  34592. }
  34593. } catch (e) {
  34594. r(e)
  34595. }
  34596. }
  34597. ))
  34598. }
  34599. )).catch(r)
  34600. }
  34601. ));
  34602. return s(r, t),
  34603. r
  34604. },
  34605. getItem: function(e, t) {
  34606. var n = this;
  34607. e = u(e);
  34608. var r = new a((function(t, r) {
  34609. n.ready().then((function() {
  34610. I(n._dbInfo, "readonly", (function(i, o) {
  34611. if (i)
  34612. return r(i);
  34613. try {
  34614. var a = o.objectStore(n._dbInfo.storeName).get(e);
  34615. a.onsuccess = function() {
  34616. var e = a.result;
  34617. void 0 === e && (e = null),
  34618. x(e) && (e = S(e)),
  34619. t(e)
  34620. }
  34621. ,
  34622. a.onerror = function() {
  34623. r(a.error)
  34624. }
  34625. } catch (e) {
  34626. r(e)
  34627. }
  34628. }
  34629. ))
  34630. }
  34631. )).catch(r)
  34632. }
  34633. ));
  34634. return s(r, t),
  34635. r
  34636. },
  34637. setItem: function(e, t, n) {
  34638. var r = this;
  34639. e = u(e);
  34640. var i = new a((function(n, i) {
  34641. var o;
  34642. r.ready().then((function() {
  34643. return o = r._dbInfo,
  34644. "[object Blob]" === h.call(t) ? p(o.db).then((function(e) {
  34645. return e ? t : (n = t,
  34646. new a((function(e, t) {
  34647. var r = new FileReader;
  34648. r.onerror = t,
  34649. r.onloadend = function(t) {
  34650. var r = btoa(t.target.result || "");
  34651. e({
  34652. __local_forage_encoded_blob: !0,
  34653. data: r,
  34654. type: n.type
  34655. })
  34656. }
  34657. ,
  34658. r.readAsBinaryString(n)
  34659. }
  34660. )));
  34661. var n
  34662. }
  34663. )) : t
  34664. }
  34665. )).then((function(t) {
  34666. I(r._dbInfo, "readwrite", (function(o, a) {
  34667. if (o)
  34668. return i(o);
  34669. try {
  34670. var s = a.objectStore(r._dbInfo.storeName);
  34671. null === t && (t = void 0);
  34672. var l = s.put(t, e);
  34673. a.oncomplete = function() {
  34674. void 0 === t && (t = null),
  34675. n(t)
  34676. }
  34677. ,
  34678. a.onabort = a.onerror = function() {
  34679. var e = l.error ? l.error : l.transaction.error;
  34680. i(e)
  34681. }
  34682. } catch (e) {
  34683. i(e)
  34684. }
  34685. }
  34686. ))
  34687. }
  34688. )).catch(i)
  34689. }
  34690. ));
  34691. return s(i, n),
  34692. i
  34693. },
  34694. removeItem: function(e, t) {
  34695. var n = this;
  34696. e = u(e);
  34697. var r = new a((function(t, r) {
  34698. n.ready().then((function() {
  34699. I(n._dbInfo, "readwrite", (function(i, o) {
  34700. if (i)
  34701. return r(i);
  34702. try {
  34703. var a = o.objectStore(n._dbInfo.storeName).delete(e);
  34704. o.oncomplete = function() {
  34705. t()
  34706. }
  34707. ,
  34708. o.onerror = function() {
  34709. r(a.error)
  34710. }
  34711. ,
  34712. o.onabort = function() {
  34713. var e = a.error ? a.error : a.transaction.error;
  34714. r(e)
  34715. }
  34716. } catch (e) {
  34717. r(e)
  34718. }
  34719. }
  34720. ))
  34721. }
  34722. )).catch(r)
  34723. }
  34724. ));
  34725. return s(r, t),
  34726. r
  34727. },
  34728. clear: function(e) {
  34729. var t = this
  34730. , n = new a((function(e, n) {
  34731. t.ready().then((function() {
  34732. I(t._dbInfo, "readwrite", (function(r, i) {
  34733. if (r)
  34734. return n(r);
  34735. try {
  34736. var o = i.objectStore(t._dbInfo.storeName).clear();
  34737. i.oncomplete = function() {
  34738. e()
  34739. }
  34740. ,
  34741. i.onabort = i.onerror = function() {
  34742. var e = o.error ? o.error : o.transaction.error;
  34743. n(e)
  34744. }
  34745. } catch (e) {
  34746. n(e)
  34747. }
  34748. }
  34749. ))
  34750. }
  34751. )).catch(n)
  34752. }
  34753. ));
  34754. return s(n, e),
  34755. n
  34756. },
  34757. length: function(e) {
  34758. var t = this
  34759. , n = new a((function(e, n) {
  34760. t.ready().then((function() {
  34761. I(t._dbInfo, "readonly", (function(r, i) {
  34762. if (r)
  34763. return n(r);
  34764. try {
  34765. var o = i.objectStore(t._dbInfo.storeName).count();
  34766. o.onsuccess = function() {
  34767. e(o.result)
  34768. }
  34769. ,
  34770. o.onerror = function() {
  34771. n(o.error)
  34772. }
  34773. } catch (e) {
  34774. n(e)
  34775. }
  34776. }
  34777. ))
  34778. }
  34779. )).catch(n)
  34780. }
  34781. ));
  34782. return s(n, e),
  34783. n
  34784. },
  34785. key: function(e, t) {
  34786. var n = this
  34787. , r = new a((function(t, r) {
  34788. e < 0 ? t(null) : n.ready().then((function() {
  34789. I(n._dbInfo, "readonly", (function(i, o) {
  34790. if (i)
  34791. return r(i);
  34792. try {
  34793. var a = o.objectStore(n._dbInfo.storeName)
  34794. , s = !1
  34795. , l = a.openKeyCursor();
  34796. l.onsuccess = function() {
  34797. var n = l.result;
  34798. n ? 0 === e || s ? t(n.key) : (s = !0,
  34799. n.advance(e)) : t(null)
  34800. }
  34801. ,
  34802. l.onerror = function() {
  34803. r(l.error)
  34804. }
  34805. } catch (e) {
  34806. r(e)
  34807. }
  34808. }
  34809. ))
  34810. }
  34811. )).catch(r)
  34812. }
  34813. ));
  34814. return s(r, t),
  34815. r
  34816. },
  34817. keys: function(e) {
  34818. var t = this
  34819. , n = new a((function(e, n) {
  34820. t.ready().then((function() {
  34821. I(t._dbInfo, "readonly", (function(r, i) {
  34822. if (r)
  34823. return n(r);
  34824. try {
  34825. var o = i.objectStore(t._dbInfo.storeName).openKeyCursor()
  34826. , a = [];
  34827. o.onsuccess = function() {
  34828. var t = o.result;
  34829. t ? (a.push(t.key),
  34830. t.continue()) : e(a)
  34831. }
  34832. ,
  34833. o.onerror = function() {
  34834. n(o.error)
  34835. }
  34836. } catch (e) {
  34837. n(e)
  34838. }
  34839. }
  34840. ))
  34841. }
  34842. )).catch(n)
  34843. }
  34844. ));
  34845. return s(n, e),
  34846. n
  34847. },
  34848. dropInstance: function(e, t) {
  34849. t = c.apply(this, arguments);
  34850. var n = this.config();
  34851. (e = "function" != typeof e && e || {}).name || (e.name = e.name || n.name,
  34852. e.storeName = e.storeName || n.storeName);
  34853. var r, o = this;
  34854. if (e.name) {
  34855. var l = e.name === n.name && o._dbInfo.db
  34856. , u = l ? a.resolve(o._dbInfo.db) : b(e).then((function(t) {
  34857. var n = f[e.name]
  34858. , r = n.forages;
  34859. n.db = t;
  34860. for (var i = 0; i < r.length; i++)
  34861. r[i]._dbInfo.db = t;
  34862. return t
  34863. }
  34864. ));
  34865. r = e.storeName ? u.then((function(t) {
  34866. if (t.objectStoreNames.contains(e.storeName)) {
  34867. var n = t.version + 1;
  34868. g(e);
  34869. var r = f[e.name]
  34870. , o = r.forages;
  34871. t.close();
  34872. for (var s = 0; s < o.length; s++) {
  34873. var l = o[s];
  34874. l._dbInfo.db = null,
  34875. l._dbInfo.version = n
  34876. }
  34877. return new a((function(t, r) {
  34878. var o = i.open(e.name, n);
  34879. o.onerror = function(e) {
  34880. o.result.close(),
  34881. r(e)
  34882. }
  34883. ,
  34884. o.onupgradeneeded = function() {
  34885. o.result.deleteObjectStore(e.storeName)
  34886. }
  34887. ,
  34888. o.onsuccess = function() {
  34889. var e = o.result;
  34890. e.close(),
  34891. t(e)
  34892. }
  34893. }
  34894. )).then((function(e) {
  34895. r.db = e;
  34896. for (var t = 0; t < o.length; t++) {
  34897. var n = o[t];
  34898. n._dbInfo.db = e,
  34899. m(n._dbInfo)
  34900. }
  34901. }
  34902. )).catch((function(t) {
  34903. throw (v(e, t) || a.resolve()).catch((function() {}
  34904. )),
  34905. t
  34906. }
  34907. ))
  34908. }
  34909. }
  34910. )) : u.then((function(t) {
  34911. g(e);
  34912. var n = f[e.name]
  34913. , r = n.forages;
  34914. t.close();
  34915. for (var o = 0; o < r.length; o++)
  34916. r[o]._dbInfo.db = null;
  34917. return new a((function(t, n) {
  34918. var r = i.deleteDatabase(e.name);
  34919. r.onerror = r.onblocked = function(e) {
  34920. var t = r.result;
  34921. t && t.close(),
  34922. n(e)
  34923. }
  34924. ,
  34925. r.onsuccess = function() {
  34926. var e = r.result;
  34927. e && e.close(),
  34928. t(e)
  34929. }
  34930. }
  34931. )).then((function(e) {
  34932. n.db = e;
  34933. for (var t = 0; t < r.length; t++)
  34934. m(r[t]._dbInfo)
  34935. }
  34936. )).catch((function(t) {
  34937. throw (v(e, t) || a.resolve()).catch((function() {}
  34938. )),
  34939. t
  34940. }
  34941. ))
  34942. }
  34943. ))
  34944. } else
  34945. r = a.reject("Invalid arguments");
  34946. return s(r, t),
  34947. r
  34948. }
  34949. }
  34950. , M = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
  34951. , T = /^~~local_forage_type~([^~]+)~/
  34952. , A = "__lfsc__:".length
  34953. , E = A + "arbf".length
  34954. , O = Object.prototype.toString;
  34955. function B(e) {
  34956. var t, n, r, i, o, a = .75 * e.length, s = e.length, l = 0;
  34957. "=" === e[e.length - 1] && (a--,
  34958. "=" === e[e.length - 2] && a--);
  34959. var u = new ArrayBuffer(a)
  34960. , c = new Uint8Array(u);
  34961. for (t = 0; t < s; t += 4)
  34962. n = M.indexOf(e[t]),
  34963. r = M.indexOf(e[t + 1]),
  34964. i = M.indexOf(e[t + 2]),
  34965. o = M.indexOf(e[t + 3]),
  34966. c[l++] = n << 2 | r >> 4,
  34967. c[l++] = (15 & r) << 4 | i >> 2,
  34968. c[l++] = (3 & i) << 6 | 63 & o;
  34969. return u
  34970. }
  34971. function L(e) {
  34972. var t, n = new Uint8Array(e), r = "";
  34973. for (t = 0; t < n.length; t += 3)
  34974. r += M[n[t] >> 2],
  34975. r += M[(3 & n[t]) << 4 | n[t + 1] >> 4],
  34976. r += M[(15 & n[t + 1]) << 2 | n[t + 2] >> 6],
  34977. r += M[63 & n[t + 2]];
  34978. return n.length % 3 == 2 ? r = r.substring(0, r.length - 1) + "=" : n.length % 3 == 1 && (r = r.substring(0, r.length - 2) + "=="),
  34979. r
  34980. }
  34981. var P = {
  34982. serialize: function(e, t) {
  34983. var n = "";
  34984. if (e && (n = O.call(e)),
  34985. e && ("[object ArrayBuffer]" === n || e.buffer && "[object ArrayBuffer]" === O.call(e.buffer))) {
  34986. var r, i = "__lfsc__:";
  34987. e instanceof ArrayBuffer ? (r = e,
  34988. i += "arbf") : (r = e.buffer,
  34989. "[object Int8Array]" === n ? i += "si08" : "[object Uint8Array]" === n ? i += "ui08" : "[object Uint8ClampedArray]" === n ? i += "uic8" : "[object Int16Array]" === n ? i += "si16" : "[object Uint16Array]" === n ? i += "ur16" : "[object Int32Array]" === n ? i += "si32" : "[object Uint32Array]" === n ? i += "ui32" : "[object Float32Array]" === n ? i += "fl32" : "[object Float64Array]" === n ? i += "fl64" : t(new Error("Failed to get type for BinaryArray"))),
  34990. t(i + L(r))
  34991. } else if ("[object Blob]" === n) {
  34992. var o = new FileReader;
  34993. o.onload = function() {
  34994. var n = "~~local_forage_type~" + e.type + "~" + L(this.result);
  34995. t("__lfsc__:blob" + n)
  34996. }
  34997. ,
  34998. o.readAsArrayBuffer(e)
  34999. } else
  35000. try {
  35001. t(JSON.stringify(e))
  35002. } catch (n) {
  35003. console.error("Couldn't convert value into a JSON string: ", e),
  35004. t(null, n)
  35005. }
  35006. },
  35007. deserialize: function(e) {
  35008. if ("__lfsc__:" !== e.substring(0, A))
  35009. return JSON.parse(e);
  35010. var t, n = e.substring(E), r = e.substring(A, E);
  35011. if ("blob" === r && T.test(n)) {
  35012. var i = n.match(T);
  35013. t = i[1],
  35014. n = n.substring(i[0].length)
  35015. }
  35016. var a = B(n);
  35017. switch (r) {
  35018. case "arbf":
  35019. return a;
  35020. case "blob":
  35021. return o([a], {
  35022. type: t
  35023. });
  35024. case "si08":
  35025. return new Int8Array(a);
  35026. case "ui08":
  35027. return new Uint8Array(a);
  35028. case "uic8":
  35029. return new Uint8ClampedArray(a);
  35030. case "si16":
  35031. return new Int16Array(a);
  35032. case "ur16":
  35033. return new Uint16Array(a);
  35034. case "si32":
  35035. return new Int32Array(a);
  35036. case "ui32":
  35037. return new Uint32Array(a);
  35038. case "fl32":
  35039. return new Float32Array(a);
  35040. case "fl64":
  35041. return new Float64Array(a);
  35042. default:
  35043. throw new Error("Unkown type: " + r)
  35044. }
  35045. },
  35046. stringToBuffer: B,
  35047. bufferToString: L
  35048. };
  35049. function R(e, t, n, r) {
  35050. e.executeSql("CREATE TABLE IF NOT EXISTS " + t.storeName + " (id INTEGER PRIMARY KEY, key unique, value)", [], n, r)
  35051. }
  35052. function z(e, t, n, r, i, o) {
  35053. e.executeSql(n, r, i, (function(e, a) {
  35054. a.code === a.SYNTAX_ERR ? e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [t.storeName], (function(e, s) {
  35055. s.rows.length ? o(e, a) : R(e, t, (function() {
  35056. e.executeSql(n, r, i, o)
  35057. }
  35058. ), o)
  35059. }
  35060. ), o) : o(e, a)
  35061. }
  35062. ), o)
  35063. }
  35064. function j(e, t, n, r) {
  35065. var i = this;
  35066. e = u(e);
  35067. var o = new a((function(o, a) {
  35068. i.ready().then((function() {
  35069. void 0 === t && (t = null);
  35070. var s = t
  35071. , l = i._dbInfo;
  35072. l.serializer.serialize(t, (function(t, u) {
  35073. u ? a(u) : l.db.transaction((function(n) {
  35074. z(n, l, "INSERT OR REPLACE INTO " + l.storeName + " (key, value) VALUES (?, ?)", [e, t], (function() {
  35075. o(s)
  35076. }
  35077. ), (function(e, t) {
  35078. a(t)
  35079. }
  35080. ))
  35081. }
  35082. ), (function(t) {
  35083. if (t.code === t.QUOTA_ERR) {
  35084. if (r > 0)
  35085. return void o(j.apply(i, [e, s, n, r - 1]));
  35086. a(t)
  35087. }
  35088. }
  35089. ))
  35090. }
  35091. ))
  35092. }
  35093. )).catch(a)
  35094. }
  35095. ));
  35096. return s(o, n),
  35097. o
  35098. }
  35099. function F(e) {
  35100. return new a((function(t, n) {
  35101. e.transaction((function(r) {
  35102. r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'", [], (function(n, r) {
  35103. for (var i = [], o = 0; o < r.rows.length; o++)
  35104. i.push(r.rows.item(o).name);
  35105. t({
  35106. db: e,
  35107. storeNames: i
  35108. })
  35109. }
  35110. ), (function(e, t) {
  35111. n(t)
  35112. }
  35113. ))
  35114. }
  35115. ), (function(e) {
  35116. n(e)
  35117. }
  35118. ))
  35119. }
  35120. ))
  35121. }
  35122. var D = {
  35123. _driver: "webSQLStorage",
  35124. _initStorage: function(e) {
  35125. var t = this
  35126. , n = {
  35127. db: null
  35128. };
  35129. if (e)
  35130. for (var r in e)
  35131. n[r] = "string" != typeof e[r] ? e[r].toString() : e[r];
  35132. var i = new a((function(e, r) {
  35133. try {
  35134. n.db = openDatabase(n.name, String(n.version), n.description, n.size)
  35135. } catch (e) {
  35136. return r(e)
  35137. }
  35138. n.db.transaction((function(i) {
  35139. R(i, n, (function() {
  35140. t._dbInfo = n,
  35141. e()
  35142. }
  35143. ), (function(e, t) {
  35144. r(t)
  35145. }
  35146. ))
  35147. }
  35148. ), r)
  35149. }
  35150. ));
  35151. return n.serializer = P,
  35152. i
  35153. },
  35154. _support: "function" == typeof openDatabase,
  35155. iterate: function(e, t) {
  35156. var n = this
  35157. , r = new a((function(t, r) {
  35158. n.ready().then((function() {
  35159. var i = n._dbInfo;
  35160. i.db.transaction((function(n) {
  35161. z(n, i, "SELECT * FROM " + i.storeName, [], (function(n, r) {
  35162. for (var o = r.rows, a = o.length, s = 0; s < a; s++) {
  35163. var l = o.item(s)
  35164. , u = l.value;
  35165. if (u && (u = i.serializer.deserialize(u)),
  35166. void 0 !== (u = e(u, l.key, s + 1)))
  35167. return void t(u)
  35168. }
  35169. t()
  35170. }
  35171. ), (function(e, t) {
  35172. r(t)
  35173. }
  35174. ))
  35175. }
  35176. ))
  35177. }
  35178. )).catch(r)
  35179. }
  35180. ));
  35181. return s(r, t),
  35182. r
  35183. },
  35184. getItem: function(e, t) {
  35185. var n = this;
  35186. e = u(e);
  35187. var r = new a((function(t, r) {
  35188. n.ready().then((function() {
  35189. var i = n._dbInfo;
  35190. i.db.transaction((function(n) {
  35191. z(n, i, "SELECT * FROM " + i.storeName + " WHERE key = ? LIMIT 1", [e], (function(e, n) {
  35192. var r = n.rows.length ? n.rows.item(0).value : null;
  35193. r && (r = i.serializer.deserialize(r)),
  35194. t(r)
  35195. }
  35196. ), (function(e, t) {
  35197. r(t)
  35198. }
  35199. ))
  35200. }
  35201. ))
  35202. }
  35203. )).catch(r)
  35204. }
  35205. ));
  35206. return s(r, t),
  35207. r
  35208. },
  35209. setItem: function(e, t, n) {
  35210. return j.apply(this, [e, t, n, 1])
  35211. },
  35212. removeItem: function(e, t) {
  35213. var n = this;
  35214. e = u(e);
  35215. var r = new a((function(t, r) {
  35216. n.ready().then((function() {
  35217. var i = n._dbInfo;
  35218. i.db.transaction((function(n) {
  35219. z(n, i, "DELETE FROM " + i.storeName + " WHERE key = ?", [e], (function() {
  35220. t()
  35221. }
  35222. ), (function(e, t) {
  35223. r(t)
  35224. }
  35225. ))
  35226. }
  35227. ))
  35228. }
  35229. )).catch(r)
  35230. }
  35231. ));
  35232. return s(r, t),
  35233. r
  35234. },
  35235. clear: function(e) {
  35236. var t = this
  35237. , n = new a((function(e, n) {
  35238. t.ready().then((function() {
  35239. var r = t._dbInfo;
  35240. r.db.transaction((function(t) {
  35241. z(t, r, "DELETE FROM " + r.storeName, [], (function() {
  35242. e()
  35243. }
  35244. ), (function(e, t) {
  35245. n(t)
  35246. }
  35247. ))
  35248. }
  35249. ))
  35250. }
  35251. )).catch(n)
  35252. }
  35253. ));
  35254. return s(n, e),
  35255. n
  35256. },
  35257. length: function(e) {
  35258. var t = this
  35259. , n = new a((function(e, n) {
  35260. t.ready().then((function() {
  35261. var r = t._dbInfo;
  35262. r.db.transaction((function(t) {
  35263. z(t, r, "SELECT COUNT(key) as c FROM " + r.storeName, [], (function(t, n) {
  35264. var r = n.rows.item(0).c;
  35265. e(r)
  35266. }
  35267. ), (function(e, t) {
  35268. n(t)
  35269. }
  35270. ))
  35271. }
  35272. ))
  35273. }
  35274. )).catch(n)
  35275. }
  35276. ));
  35277. return s(n, e),
  35278. n
  35279. },
  35280. key: function(e, t) {
  35281. var n = this
  35282. , r = new a((function(t, r) {
  35283. n.ready().then((function() {
  35284. var i = n._dbInfo;
  35285. i.db.transaction((function(n) {
  35286. z(n, i, "SELECT key FROM " + i.storeName + " WHERE id = ? LIMIT 1", [e + 1], (function(e, n) {
  35287. var r = n.rows.length ? n.rows.item(0).key : null;
  35288. t(r)
  35289. }
  35290. ), (function(e, t) {
  35291. r(t)
  35292. }
  35293. ))
  35294. }
  35295. ))
  35296. }
  35297. )).catch(r)
  35298. }
  35299. ));
  35300. return s(r, t),
  35301. r
  35302. },
  35303. keys: function(e) {
  35304. var t = this
  35305. , n = new a((function(e, n) {
  35306. t.ready().then((function() {
  35307. var r = t._dbInfo;
  35308. r.db.transaction((function(t) {
  35309. z(t, r, "SELECT key FROM " + r.storeName, [], (function(t, n) {
  35310. for (var r = [], i = 0; i < n.rows.length; i++)
  35311. r.push(n.rows.item(i).key);
  35312. e(r)
  35313. }
  35314. ), (function(e, t) {
  35315. n(t)
  35316. }
  35317. ))
  35318. }
  35319. ))
  35320. }
  35321. )).catch(n)
  35322. }
  35323. ));
  35324. return s(n, e),
  35325. n
  35326. },
  35327. dropInstance: function(e, t) {
  35328. t = c.apply(this, arguments);
  35329. var n = this.config();
  35330. (e = "function" != typeof e && e || {}).name || (e.name = e.name || n.name,
  35331. e.storeName = e.storeName || n.storeName);
  35332. var r, i = this;
  35333. return s(r = e.name ? new a((function(t) {
  35334. var r;
  35335. r = e.name === n.name ? i._dbInfo.db : openDatabase(e.name, "", "", 0),
  35336. e.storeName ? t({
  35337. db: r,
  35338. storeNames: [e.storeName]
  35339. }) : t(F(r))
  35340. }
  35341. )).then((function(e) {
  35342. return new a((function(t, n) {
  35343. e.db.transaction((function(r) {
  35344. function i(e) {
  35345. return new a((function(t, n) {
  35346. r.executeSql("DROP TABLE IF EXISTS " + e, [], (function() {
  35347. t()
  35348. }
  35349. ), (function(e, t) {
  35350. n(t)
  35351. }
  35352. ))
  35353. }
  35354. ))
  35355. }
  35356. for (var o = [], s = 0, l = e.storeNames.length; s < l; s++)
  35357. o.push(i(e.storeNames[s]));
  35358. a.all(o).then((function() {
  35359. t()
  35360. }
  35361. )).catch((function(e) {
  35362. n(e)
  35363. }
  35364. ))
  35365. }
  35366. ), (function(e) {
  35367. n(e)
  35368. }
  35369. ))
  35370. }
  35371. ))
  35372. }
  35373. )) : a.reject("Invalid arguments"), t),
  35374. r
  35375. }
  35376. };
  35377. function N(e, t) {
  35378. var n = e.name + "/";
  35379. return e.storeName !== t.storeName && (n += e.storeName + "/"),
  35380. n
  35381. }
  35382. function U() {
  35383. return !function() {
  35384. try {
  35385. return localStorage.setItem("_localforage_support_test", !0),
  35386. localStorage.removeItem("_localforage_support_test"),
  35387. !1
  35388. } catch (e) {
  35389. return !0
  35390. }
  35391. }() || localStorage.length > 0
  35392. }
  35393. var W = {
  35394. _driver: "localStorageWrapper",
  35395. _initStorage: function(e) {
  35396. var t = {};
  35397. if (e)
  35398. for (var n in e)
  35399. t[n] = e[n];
  35400. return t.keyPrefix = N(e, this._defaultConfig),
  35401. U() ? (this._dbInfo = t,
  35402. t.serializer = P,
  35403. a.resolve()) : a.reject()
  35404. },
  35405. _support: function() {
  35406. try {
  35407. return "undefined" != typeof localStorage && "setItem"in localStorage && !!localStorage.setItem
  35408. } catch (e) {
  35409. return !1
  35410. }
  35411. }(),
  35412. iterate: function(e, t) {
  35413. var n = this
  35414. , r = n.ready().then((function() {
  35415. for (var t = n._dbInfo, r = t.keyPrefix, i = r.length, o = localStorage.length, a = 1, s = 0; s < o; s++) {
  35416. var l = localStorage.key(s);
  35417. if (0 === l.indexOf(r)) {
  35418. var u = localStorage.getItem(l);
  35419. if (u && (u = t.serializer.deserialize(u)),
  35420. void 0 !== (u = e(u, l.substring(i), a++)))
  35421. return u
  35422. }
  35423. }
  35424. }
  35425. ));
  35426. return s(r, t),
  35427. r
  35428. },
  35429. getItem: function(e, t) {
  35430. var n = this;
  35431. e = u(e);
  35432. var r = n.ready().then((function() {
  35433. var t = n._dbInfo
  35434. , r = localStorage.getItem(t.keyPrefix + e);
  35435. return r && (r = t.serializer.deserialize(r)),
  35436. r
  35437. }
  35438. ));
  35439. return s(r, t),
  35440. r
  35441. },
  35442. setItem: function(e, t, n) {
  35443. var r = this;
  35444. e = u(e);
  35445. var i = r.ready().then((function() {
  35446. void 0 === t && (t = null);
  35447. var n = t;
  35448. return new a((function(i, o) {
  35449. var a = r._dbInfo;
  35450. a.serializer.serialize(t, (function(t, r) {
  35451. if (r)
  35452. o(r);
  35453. else
  35454. try {
  35455. localStorage.setItem(a.keyPrefix + e, t),
  35456. i(n)
  35457. } catch (e) {
  35458. "QuotaExceededError" !== e.name && "NS_ERROR_DOM_QUOTA_REACHED" !== e.name || o(e),
  35459. o(e)
  35460. }
  35461. }
  35462. ))
  35463. }
  35464. ))
  35465. }
  35466. ));
  35467. return s(i, n),
  35468. i
  35469. },
  35470. removeItem: function(e, t) {
  35471. var n = this;
  35472. e = u(e);
  35473. var r = n.ready().then((function() {
  35474. var t = n._dbInfo;
  35475. localStorage.removeItem(t.keyPrefix + e)
  35476. }
  35477. ));
  35478. return s(r, t),
  35479. r
  35480. },
  35481. clear: function(e) {
  35482. var t = this
  35483. , n = t.ready().then((function() {
  35484. for (var e = t._dbInfo.keyPrefix, n = localStorage.length - 1; n >= 0; n--) {
  35485. var r = localStorage.key(n);
  35486. 0 === r.indexOf(e) && localStorage.removeItem(r)
  35487. }
  35488. }
  35489. ));
  35490. return s(n, e),
  35491. n
  35492. },
  35493. length: function(e) {
  35494. var t = this.keys().then((function(e) {
  35495. return e.length
  35496. }
  35497. ));
  35498. return s(t, e),
  35499. t
  35500. },
  35501. key: function(e, t) {
  35502. var n = this
  35503. , r = n.ready().then((function() {
  35504. var t, r = n._dbInfo;
  35505. try {
  35506. t = localStorage.key(e)
  35507. } catch (e) {
  35508. t = null
  35509. }
  35510. return t && (t = t.substring(r.keyPrefix.length)),
  35511. t
  35512. }
  35513. ));
  35514. return s(r, t),
  35515. r
  35516. },
  35517. keys: function(e) {
  35518. var t = this
  35519. , n = t.ready().then((function() {
  35520. for (var e = t._dbInfo, n = localStorage.length, r = [], i = 0; i < n; i++) {
  35521. var o = localStorage.key(i);
  35522. 0 === o.indexOf(e.keyPrefix) && r.push(o.substring(e.keyPrefix.length))
  35523. }
  35524. return r
  35525. }
  35526. ));
  35527. return s(n, e),
  35528. n
  35529. },
  35530. dropInstance: function(e, t) {
  35531. if (t = c.apply(this, arguments),
  35532. !(e = "function" != typeof e && e || {}).name) {
  35533. var n = this.config();
  35534. e.name = e.name || n.name,
  35535. e.storeName = e.storeName || n.storeName
  35536. }
  35537. var r, i = this;
  35538. return s(r = e.name ? new a((function(t) {
  35539. e.storeName ? t(N(e, i._defaultConfig)) : t(e.name + "/")
  35540. }
  35541. )).then((function(e) {
  35542. for (var t = localStorage.length - 1; t >= 0; t--) {
  35543. var n = localStorage.key(t);
  35544. 0 === n.indexOf(e) && localStorage.removeItem(n)
  35545. }
  35546. }
  35547. )) : a.reject("Invalid arguments"), t),
  35548. r
  35549. }
  35550. }
  35551. , H = function(e, t) {
  35552. for (var n, r, i = e.length, o = 0; o < i; ) {
  35553. if ((n = e[o]) === (r = t) || "number" == typeof n && "number" == typeof r && isNaN(n) && isNaN(r))
  35554. return !0;
  35555. o++
  35556. }
  35557. return !1
  35558. }
  35559. , V = Array.isArray || function(e) {
  35560. return "[object Array]" === Object.prototype.toString.call(e)
  35561. }
  35562. , $ = {}
  35563. , G = {}
  35564. , Z = {
  35565. INDEXEDDB: C,
  35566. WEBSQL: D,
  35567. LOCALSTORAGE: W
  35568. }
  35569. , q = [Z.INDEXEDDB._driver, Z.WEBSQL._driver, Z.LOCALSTORAGE._driver]
  35570. , Y = ["dropInstance"]
  35571. , X = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(Y)
  35572. , J = {
  35573. description: "",
  35574. driver: q.slice(),
  35575. name: "localforage",
  35576. size: 4980736,
  35577. storeName: "keyvaluepairs",
  35578. version: 1
  35579. };
  35580. function Q(e, t) {
  35581. e[t] = function() {
  35582. var n = arguments;
  35583. return e.ready().then((function() {
  35584. return e[t].apply(e, n)
  35585. }
  35586. ))
  35587. }
  35588. }
  35589. function K() {
  35590. for (var e = 1; e < arguments.length; e++) {
  35591. var t = arguments[e];
  35592. if (t)
  35593. for (var n in t)
  35594. t.hasOwnProperty(n) && (V(t[n]) ? arguments[0][n] = t[n].slice() : arguments[0][n] = t[n])
  35595. }
  35596. return arguments[0]
  35597. }
  35598. var ee = new (function() {
  35599. function e(t) {
  35600. for (var n in function(e, t) {
  35601. if (!(e instanceof t))
  35602. throw new TypeError("Cannot call a class as a function")
  35603. }(this, e),
  35604. Z)
  35605. if (Z.hasOwnProperty(n)) {
  35606. var r = Z[n]
  35607. , i = r._driver;
  35608. this[n] = i,
  35609. $[i] || this.defineDriver(r)
  35610. }
  35611. this._defaultConfig = K({}, J),
  35612. this._config = K({}, this._defaultConfig, t),
  35613. this._driverSet = null,
  35614. this._initDriver = null,
  35615. this._ready = !1,
  35616. this._dbInfo = null,
  35617. this._wrapLibraryMethodsWithReady(),
  35618. this.setDriver(this._config.driver).catch((function() {}
  35619. ))
  35620. }
  35621. return e.prototype.config = function(e) {
  35622. if ("object" === (void 0 === e ? "undefined" : r(e))) {
  35623. if (this._ready)
  35624. return new Error("Can't call config() after localforage has been used.");
  35625. for (var t in e) {
  35626. if ("storeName" === t && (e[t] = e[t].replace(/\W/g, "_")),
  35627. "version" === t && "number" != typeof e[t])
  35628. return new Error("Database version must be a number.");
  35629. this._config[t] = e[t]
  35630. }
  35631. return !("driver"in e) || !e.driver || this.setDriver(this._config.driver)
  35632. }
  35633. return "string" == typeof e ? this._config[e] : this._config
  35634. }
  35635. ,
  35636. e.prototype.defineDriver = function(e, t, n) {
  35637. var r = new a((function(t, n) {
  35638. try {
  35639. var r = e._driver
  35640. , i = new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");
  35641. if (!e._driver)
  35642. return void n(i);
  35643. for (var o = X.concat("_initStorage"), l = 0, u = o.length; l < u; l++) {
  35644. var c = o[l];
  35645. if ((!H(Y, c) || e[c]) && "function" != typeof e[c])
  35646. return void n(i)
  35647. }
  35648. !function() {
  35649. for (var t = function(e) {
  35650. return function() {
  35651. var t = new Error("Method " + e + " is not implemented by the current driver")
  35652. , n = a.reject(t);
  35653. return s(n, arguments[arguments.length - 1]),
  35654. n
  35655. }
  35656. }, n = 0, r = Y.length; n < r; n++) {
  35657. var i = Y[n];
  35658. e[i] || (e[i] = t(i))
  35659. }
  35660. }();
  35661. var d = function(n) {
  35662. $[r] && console.info("Redefining LocalForage driver: " + r),
  35663. $[r] = e,
  35664. G[r] = n,
  35665. t()
  35666. };
  35667. "_support"in e ? e._support && "function" == typeof e._support ? e._support().then(d, n) : d(!!e._support) : d(!0)
  35668. } catch (e) {
  35669. n(e)
  35670. }
  35671. }
  35672. ));
  35673. return l(r, t, n),
  35674. r
  35675. }
  35676. ,
  35677. e.prototype.driver = function() {
  35678. return this._driver || null
  35679. }
  35680. ,
  35681. e.prototype.getDriver = function(e, t, n) {
  35682. var r = $[e] ? a.resolve($[e]) : a.reject(new Error("Driver not found."));
  35683. return l(r, t, n),
  35684. r
  35685. }
  35686. ,
  35687. e.prototype.getSerializer = function(e) {
  35688. var t = a.resolve(P);
  35689. return l(t, e),
  35690. t
  35691. }
  35692. ,
  35693. e.prototype.ready = function(e) {
  35694. var t = this
  35695. , n = t._driverSet.then((function() {
  35696. return null === t._ready && (t._ready = t._initDriver()),
  35697. t._ready
  35698. }
  35699. ));
  35700. return l(n, e, e),
  35701. n
  35702. }
  35703. ,
  35704. e.prototype.setDriver = function(e, t, n) {
  35705. var r = this;
  35706. V(e) || (e = [e]);
  35707. var i = this._getSupportedDrivers(e);
  35708. function o() {
  35709. r._config.driver = r.driver()
  35710. }
  35711. function s(e) {
  35712. return r._extend(e),
  35713. o(),
  35714. r._ready = r._initStorage(r._config),
  35715. r._ready
  35716. }
  35717. var u = null !== this._driverSet ? this._driverSet.catch((function() {
  35718. return a.resolve()
  35719. }
  35720. )) : a.resolve();
  35721. return this._driverSet = u.then((function() {
  35722. var e = i[0];
  35723. return r._dbInfo = null,
  35724. r._ready = null,
  35725. r.getDriver(e).then((function(e) {
  35726. r._driver = e._driver,
  35727. o(),
  35728. r._wrapLibraryMethodsWithReady(),
  35729. r._initDriver = function(e) {
  35730. return function() {
  35731. var t = 0;
  35732. return function n() {
  35733. for (; t < e.length; ) {
  35734. var i = e[t];
  35735. return t++,
  35736. r._dbInfo = null,
  35737. r._ready = null,
  35738. r.getDriver(i).then(s).catch(n)
  35739. }
  35740. o();
  35741. var l = new Error("No available storage method found.");
  35742. return r._driverSet = a.reject(l),
  35743. r._driverSet
  35744. }()
  35745. }
  35746. }(i)
  35747. }
  35748. ))
  35749. }
  35750. )).catch((function() {
  35751. o();
  35752. var e = new Error("No available storage method found.");
  35753. return r._driverSet = a.reject(e),
  35754. r._driverSet
  35755. }
  35756. )),
  35757. l(this._driverSet, t, n),
  35758. this._driverSet
  35759. }
  35760. ,
  35761. e.prototype.supports = function(e) {
  35762. return !!G[e]
  35763. }
  35764. ,
  35765. e.prototype._extend = function(e) {
  35766. K(this, e)
  35767. }
  35768. ,
  35769. e.prototype._getSupportedDrivers = function(e) {
  35770. for (var t = [], n = 0, r = e.length; n < r; n++) {
  35771. var i = e[n];
  35772. this.supports(i) && t.push(i)
  35773. }
  35774. return t
  35775. }
  35776. ,
  35777. e.prototype._wrapLibraryMethodsWithReady = function() {
  35778. for (var e = 0, t = X.length; e < t; e++)
  35779. Q(this, X[e])
  35780. }
  35781. ,
  35782. e.prototype.createInstance = function(t) {
  35783. return new e(t)
  35784. }
  35785. ,
  35786. e
  35787. }());
  35788. t.exports = ee
  35789. }
  35790. , {
  35791. 3: 3
  35792. }]
  35793. }, {}, [4])(4)
  35794. }
  35795. ).call(this, n(20))
  35796. },
  35797. 92: function(e, t, n) {
  35798. "use strict";
  35799. Object.defineProperty(t, "__esModule", {
  35800. value: !0
  35801. }),
  35802. t.computePendingBoxStates = void 0;
  35803. const r = n(5);
  35804. t.computePendingBoxStates = function(e, t) {
  35805. e.boxes = r.mutateBoxes(e.boxes, n=>{
  35806. var i;
  35807. if (n.id !== t)
  35808. return n;
  35809. return r.setBoxStateForPresenterPerspectiveMode(e, {
  35810. id: n.id,
  35811. opacity: null !== (i = e.opacityForPendingSubtopicsUnderPresenterPerspectiveMode) && void 0 !== i ? i : .5
  35812. }),
  35813. r.setBoxStateForRevertedPresenterPerspectiveMode(e, {
  35814. id: n.id,
  35815. opacity: 0
  35816. }),
  35817. Object.assign(Object.assign({}, n), {
  35818. opacity: 0
  35819. })
  35820. }
  35821. )
  35822. }
  35823. },
  35824. 93: function(e, t, n) {
  35825. "use strict";
  35826. Object.defineProperty(t, "__esModule", {
  35827. value: !0
  35828. }),
  35829. t.computeCenteredScrollOffsetForTextBox = t.computeSubtopicListScrollingStates = void 0;
  35830. const r = n(5);
  35831. function i(e, t, n, r, i) {
  35832. const o = e + i
  35833. , a = Math.min(e, o)
  35834. , s = r - n;
  35835. return Math.max(0, Math.min(s, a))
  35836. }
  35837. t.computeSubtopicListScrollingStates = function(e, t, n, o) {
  35838. e.boxes = r.mutateBoxes(e.boxes, e=>{
  35839. if (e.id !== t || "group" !== e.contentType)
  35840. return e;
  35841. if (e.contentHeight <= e.bounds.height)
  35842. return e;
  35843. const r = e.children.find(e=>e.id === n);
  35844. if (!r)
  35845. return e;
  35846. const a = i(r.bounds.y, r.bounds.height, e.bounds.height, e.contentHeight, o(e, r));
  35847. return Object.assign(Object.assign({}, e), {
  35848. scrollOffset: a
  35849. })
  35850. }
  35851. )
  35852. }
  35853. ,
  35854. t.computeCenteredScrollOffsetForTextBox = i
  35855. },
  35856. 94: function(e, t, n) {
  35857. "use strict";
  35858. (function(t) {
  35859. var r = n(14)
  35860. , i = n(191)
  35861. , o = {
  35862. "Content-Type": "application/x-www-form-urlencoded"
  35863. };
  35864. function a(e, t) {
  35865. !r.isUndefined(e) && r.isUndefined(e["Content-Type"]) && (e["Content-Type"] = t)
  35866. }
  35867. var s, l = {
  35868. adapter: (("undefined" != typeof XMLHttpRequest || void 0 !== t) && (s = n(118)),
  35869. s),
  35870. transformRequest: [function(e, t) {
  35871. return i(t, "Content-Type"),
  35872. r.isFormData(e) || r.isArrayBuffer(e) || r.isBuffer(e) || r.isStream(e) || r.isFile(e) || r.isBlob(e) ? e : r.isArrayBufferView(e) ? e.buffer : r.isURLSearchParams(e) ? (a(t, "application/x-www-form-urlencoded;charset=utf-8"),
  35873. e.toString()) : r.isObject(e) ? (a(t, "application/json;charset=utf-8"),
  35874. JSON.stringify(e)) : e
  35875. }
  35876. ],
  35877. transformResponse: [function(e) {
  35878. if ("string" == typeof e)
  35879. try {
  35880. e = JSON.parse(e)
  35881. } catch (e) {}
  35882. return e
  35883. }
  35884. ],
  35885. timeout: 0,
  35886. xsrfCookieName: "XSRF-TOKEN",
  35887. xsrfHeaderName: "X-XSRF-TOKEN",
  35888. maxContentLength: -1,
  35889. validateStatus: function(e) {
  35890. return e >= 200 && e < 300
  35891. }
  35892. };
  35893. l.headers = {
  35894. common: {
  35895. Accept: "application/json, text/plain, */*"
  35896. }
  35897. },
  35898. r.forEach(["delete", "get", "head"], (function(e) {
  35899. l.headers[e] = {}
  35900. }
  35901. )),
  35902. r.forEach(["post", "put", "patch"], (function(e) {
  35903. l.headers[e] = r.merge(o)
  35904. }
  35905. )),
  35906. e.exports = l
  35907. }
  35908. ).call(this, n(69))
  35909. }
  35910. });