Nenhuma descrição
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

main.min.js 1.6MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883
  1. "use strict";
  2. function _get(t, e, i) {
  3. return (_get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get : function (t, e, i) {
  4. var n = _superPropBase(t, e);
  5. if (n) {
  6. var s = Object.getOwnPropertyDescriptor(n, e);
  7. return s.get ? s.get.call(i) : s.value
  8. }
  9. })(t, e, i || t)
  10. }
  11. function _superPropBase(t, e) {
  12. for (; !Object.prototype.hasOwnProperty.call(t, e) && null !== (t = _getPrototypeOf(t)););
  13. return t
  14. }
  15. function ownKeys(e, t) {
  16. var i = Object.keys(e);
  17. if (Object.getOwnPropertySymbols) {
  18. var n = Object.getOwnPropertySymbols(e);
  19. t && (n = n.filter(function (t) {
  20. return Object.getOwnPropertyDescriptor(e, t).enumerable
  21. })), i.push.apply(i, n)
  22. }
  23. return i
  24. }
  25. function _objectSpread(e) {
  26. for (var t = 1; t < arguments.length; t++) {
  27. var i = null != arguments[t] ? arguments[t] : {};
  28. t % 2 ? ownKeys(Object(i), !0).forEach(function (t) {
  29. _defineProperty(e, t, i[t])
  30. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : ownKeys(Object(i)).forEach(function (t) {
  31. Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(i, t))
  32. })
  33. }
  34. return e
  35. }
  36. function _defineProperty(t, e, i) {
  37. return e in t ? Object.defineProperty(t, e, {
  38. value: i,
  39. enumerable: !0,
  40. configurable: !0,
  41. writable: !0
  42. }) : t[e] = i, t
  43. }
  44. function _inherits(t, e) {
  45. if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
  46. t.prototype = Object.create(e && e.prototype, {
  47. constructor: {
  48. value: t,
  49. writable: !0,
  50. configurable: !0
  51. }
  52. }), e && _setPrototypeOf(t, e)
  53. }
  54. function _setPrototypeOf(t, e) {
  55. return (_setPrototypeOf = Object.setPrototypeOf || function (t, e) {
  56. return t.__proto__ = e, t
  57. })(t, e)
  58. }
  59. function _createSuper(n) {
  60. var s = _isNativeReflectConstruct();
  61. return function () {
  62. var t, e = _getPrototypeOf(n);
  63. if (s) {
  64. var i = _getPrototypeOf(this).constructor;
  65. t = Reflect.construct(e, arguments, i)
  66. } else t = e.apply(this, arguments);
  67. return _possibleConstructorReturn(this, t)
  68. }
  69. }
  70. function _possibleConstructorReturn(t, e) {
  71. return !e || "object" !== _typeof(e) && "function" != typeof e ? _assertThisInitialized(t) : e
  72. }
  73. function _assertThisInitialized(t) {
  74. if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  75. return t
  76. }
  77. function _isNativeReflectConstruct() {
  78. if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
  79. if (Reflect.construct.sham) return !1;
  80. if ("function" == typeof Proxy) return !0;
  81. try {
  82. return Date.prototype.toString.call(Reflect.construct(Date, [], function () {})), !0
  83. } catch (t) {
  84. return !1
  85. }
  86. }
  87. function _getPrototypeOf(t) {
  88. return (_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function (t) {
  89. return t.__proto__ || Object.getPrototypeOf(t)
  90. })(t)
  91. }
  92. function _classCallCheck(t, e) {
  93. if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function")
  94. }
  95. function _defineProperties(t, e) {
  96. for (var i = 0; i < e.length; i++) {
  97. var n = e[i];
  98. n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n)
  99. }
  100. }
  101. function _createClass(t, e, i) {
  102. return e && _defineProperties(t.prototype, e), i && _defineProperties(t, i), t
  103. }
  104. function _slicedToArray(t, e) {
  105. return _arrayWithHoles(t) || _iterableToArrayLimit(t, e) || _unsupportedIterableToArray(t, e) || _nonIterableRest()
  106. }
  107. function _nonIterableRest() {
  108. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
  109. }
  110. function _iterableToArrayLimit(t, e) {
  111. if ("undefined" != typeof Symbol && Symbol.iterator in Object(t)) {
  112. var i = [],
  113. n = !0,
  114. s = !1,
  115. o = void 0;
  116. try {
  117. for (var r, a = t[Symbol.iterator](); !(n = (r = a.next()).done) && (i.push(r.value), !e || i.length !== e); n = !0);
  118. } catch (t) {
  119. s = !0, o = t
  120. } finally {
  121. try {
  122. n || null == a.return || a.return()
  123. } finally {
  124. if (s) throw o
  125. }
  126. }
  127. return i
  128. }
  129. }
  130. function _arrayWithHoles(t) {
  131. if (Array.isArray(t)) return t
  132. }
  133. function _toConsumableArray(t) {
  134. return _arrayWithoutHoles(t) || _iterableToArray(t) || _unsupportedIterableToArray(t) || _nonIterableSpread()
  135. }
  136. function _nonIterableSpread() {
  137. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
  138. }
  139. function _unsupportedIterableToArray(t, e) {
  140. if (t) {
  141. if ("string" == typeof t) return _arrayLikeToArray(t, e);
  142. var i = Object.prototype.toString.call(t).slice(8, -1);
  143. return "Object" === i && t.constructor && (i = t.constructor.name), "Map" === i || "Set" === i ? Array.from(t) : "Arguments" === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i) ? _arrayLikeToArray(t, e) : void 0
  144. }
  145. }
  146. function _iterableToArray(t) {
  147. if ("undefined" != typeof Symbol && Symbol.iterator in Object(t)) return Array.from(t)
  148. }
  149. function _arrayWithoutHoles(t) {
  150. if (Array.isArray(t)) return _arrayLikeToArray(t)
  151. }
  152. function _arrayLikeToArray(t, e) {
  153. (null == e || e > t.length) && (e = t.length);
  154. for (var i = 0, n = new Array(e); i < e; i++) n[i] = t[i];
  155. return n
  156. }
  157. function _typeof(t) {
  158. return (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
  159. return typeof t
  160. } : function (t) {
  161. return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
  162. })(t)
  163. }
  164. function _typeof(t) {
  165. return (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
  166. return typeof t
  167. } : function (t) {
  168. return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
  169. })(t)
  170. }
  171. function _typeof(t) {
  172. return (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
  173. return typeof t
  174. } : function (t) {
  175. return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
  176. })(t)
  177. }
  178. function _typeof(t) {
  179. return (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
  180. return typeof t
  181. } : function (t) {
  182. return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
  183. })(t)
  184. }
  185. function _typeof(t) {
  186. return (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
  187. return typeof t
  188. } : function (t) {
  189. return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
  190. })(t)
  191. }
  192. function _typeof(t) {
  193. return (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
  194. return typeof t
  195. } : function (t) {
  196. return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
  197. })(t)
  198. }
  199. function _typeof(t) {
  200. return (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
  201. return typeof t
  202. } : function (t) {
  203. return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
  204. })(t)
  205. }
  206. function _get2(t, e, i) {
  207. return (_get2 = "undefined" != typeof Reflect && Reflect.get ? Reflect.get : function (t, e, i) {
  208. var n = _superPropBase(t, e);
  209. if (n) {
  210. var s = Object.getOwnPropertyDescriptor(n, e);
  211. return s.get ? s.get.call(i) : s.value
  212. }
  213. })(t, e, i || t)
  214. }
  215. function _superPropBase(t, e) {
  216. for (; !Object.prototype.hasOwnProperty.call(t, e) && null !== (t = _getPrototypeOf(t)););
  217. return t
  218. }
  219. function ownKeys(e, t) {
  220. var i = Object.keys(e);
  221. if (Object.getOwnPropertySymbols) {
  222. var n = Object.getOwnPropertySymbols(e);
  223. t && (n = n.filter(function (t) {
  224. return Object.getOwnPropertyDescriptor(e, t).enumerable
  225. })), i.push.apply(i, n)
  226. }
  227. return i
  228. }
  229. function _objectSpread(e) {
  230. for (var t = 1; t < arguments.length; t++) {
  231. var i = null != arguments[t] ? arguments[t] : {};
  232. t % 2 ? ownKeys(Object(i), !0).forEach(function (t) {
  233. _defineProperty(e, t, i[t])
  234. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : ownKeys(Object(i)).forEach(function (t) {
  235. Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(i, t))
  236. })
  237. }
  238. return e
  239. }
  240. function _defineProperty(t, e, i) {
  241. return e in t ? Object.defineProperty(t, e, {
  242. value: i,
  243. enumerable: !0,
  244. configurable: !0,
  245. writable: !0
  246. }) : t[e] = i, t
  247. }
  248. function _inherits(t, e) {
  249. if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
  250. t.prototype = Object.create(e && e.prototype, {
  251. constructor: {
  252. value: t,
  253. writable: !0,
  254. configurable: !0
  255. }
  256. }), e && _setPrototypeOf(t, e)
  257. }
  258. function _setPrototypeOf(t, e) {
  259. return (_setPrototypeOf = Object.setPrototypeOf || function (t, e) {
  260. return t.__proto__ = e, t
  261. })(t, e)
  262. }
  263. function _createSuper(n) {
  264. var s = _isNativeReflectConstruct();
  265. return function () {
  266. var t, e = _getPrototypeOf(n);
  267. if (s) {
  268. var i = _getPrototypeOf(this).constructor;
  269. t = Reflect.construct(e, arguments, i)
  270. } else t = e.apply(this, arguments);
  271. return _possibleConstructorReturn(this, t)
  272. }
  273. }
  274. function _possibleConstructorReturn(t, e) {
  275. return !e || "object" !== _typeof(e) && "function" != typeof e ? _assertThisInitialized(t) : e
  276. }
  277. function _assertThisInitialized(t) {
  278. if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  279. return t
  280. }
  281. function _isNativeReflectConstruct() {
  282. if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
  283. if (Reflect.construct.sham) return !1;
  284. if ("function" == typeof Proxy) return !0;
  285. try {
  286. return Date.prototype.toString.call(Reflect.construct(Date, [], function () {})), !0
  287. } catch (t) {
  288. return !1
  289. }
  290. }
  291. function _getPrototypeOf(t) {
  292. return (_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function (t) {
  293. return t.__proto__ || Object.getPrototypeOf(t)
  294. })(t)
  295. }
  296. function _classCallCheck(t, e) {
  297. if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function")
  298. }
  299. function _defineProperties(t, e) {
  300. for (var i = 0; i < e.length; i++) {
  301. var n = e[i];
  302. n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n)
  303. }
  304. }
  305. function _createClass(t, e, i) {
  306. return e && _defineProperties(t.prototype, e), i && _defineProperties(t, i), t
  307. }
  308. function _slicedToArray(t, e) {
  309. return _arrayWithHoles(t) || _iterableToArrayLimit(t, e) || _unsupportedIterableToArray(t, e) || _nonIterableRest()
  310. }
  311. function _nonIterableRest() {
  312. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
  313. }
  314. function _iterableToArrayLimit(t, e) {
  315. if ("undefined" != typeof Symbol && Symbol.iterator in Object(t)) {
  316. var i = [],
  317. n = !0,
  318. s = !1,
  319. o = void 0;
  320. try {
  321. for (var r, a = t[Symbol.iterator](); !(n = (r = a.next()).done) && (i.push(r.value), !e || i.length !== e); n = !0);
  322. } catch (t) {
  323. s = !0, o = t
  324. } finally {
  325. try {
  326. n || null == a.return || a.return()
  327. } finally {
  328. if (s) throw o
  329. }
  330. }
  331. return i
  332. }
  333. }
  334. function _arrayWithHoles(t) {
  335. if (Array.isArray(t)) return t
  336. }
  337. function _toConsumableArray(t) {
  338. return _arrayWithoutHoles(t) || _iterableToArray(t) || _unsupportedIterableToArray(t) || _nonIterableSpread()
  339. }
  340. function _nonIterableSpread() {
  341. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
  342. }
  343. function _unsupportedIterableToArray(t, e) {
  344. if (t) {
  345. if ("string" == typeof t) return _arrayLikeToArray(t, e);
  346. var i = Object.prototype.toString.call(t).slice(8, -1);
  347. return "Object" === i && t.constructor && (i = t.constructor.name), "Map" === i || "Set" === i ? Array.from(t) : "Arguments" === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i) ? _arrayLikeToArray(t, e) : void 0
  348. }
  349. }
  350. function _iterableToArray(t) {
  351. if ("undefined" != typeof Symbol && Symbol.iterator in Object(t)) return Array.from(t)
  352. }
  353. function _arrayWithoutHoles(t) {
  354. if (Array.isArray(t)) return _arrayLikeToArray(t)
  355. }
  356. function _arrayLikeToArray(t, e) {
  357. (null == e || e > t.length) && (e = t.length);
  358. for (var i = 0, n = new Array(e); i < e; i++) n[i] = t[i];
  359. return n
  360. }
  361. function _typeof(t) {
  362. return (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
  363. return typeof t
  364. } : function (t) {
  365. return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
  366. })(t)
  367. }! function (t, e) {
  368. "object" == ("undefined" == typeof exports ? "undefined" : _typeof(exports)) && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).bootstrap = e()
  369. }(void 0, function () {
  370. function p(t) {
  371. for (; t += Math.floor(1e6 * Math.random()), document.getElementById(t););
  372. return t
  373. }
  374. function i(t) {
  375. var e = t.getAttribute("data-bs-target");
  376. if (!e || "#" === e) {
  377. var i = t.getAttribute("href");
  378. if (!i || !i.includes("#") && !i.startsWith(".")) return null;
  379. i.includes("#") && !i.startsWith("#") && (i = "#" + i.split("#")[1]), e = i && "#" !== i ? i.trim() : null
  380. }
  381. return e
  382. }
  383. function h(t) {
  384. var e = i(t);
  385. return e && document.querySelector(e) ? e : null
  386. }
  387. function a(t) {
  388. var e = i(t);
  389. return e ? document.querySelector(e) : null
  390. }
  391. function e(t) {
  392. t.dispatchEvent(new Event("transitionend"))
  393. }
  394. function c(t) {
  395. return !(!t || "object" != _typeof(t)) && (void 0 !== t.jquery && (t = t[0]), void 0 !== t.nodeType)
  396. }
  397. function r(t) {
  398. return c(t) ? t.jquery ? t[0] : t : "string" == typeof t && 0 < t.length ? y(t) : null
  399. }
  400. function d(o, r, a) {
  401. Object.keys(a).forEach(function (t) {
  402. var e, i = a[t],
  403. n = r[t],
  404. s = n && c(n) ? "element" : null == (e = n) ? "" + e : {}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase();
  405. if (!new RegExp(i).test(s)) throw new TypeError("".concat(o.toUpperCase(), ': Option "').concat(t, '" provided type "').concat(s, '" but expected type "').concat(i, '".'))
  406. })
  407. }
  408. function s(t) {
  409. return !(!c(t) || 0 === t.getClientRects().length) && "visible" === getComputedStyle(t).getPropertyValue("visibility")
  410. }
  411. function u(t) {
  412. return !t || t.nodeType !== Node.ELEMENT_NODE || !!t.classList.contains("disabled") || (void 0 !== t.disabled ? t.disabled : t.hasAttribute("disabled") && "false" !== t.getAttribute("disabled"))
  413. }
  414. function f() {}
  415. function g(t) {
  416. return t.offsetHeight
  417. }
  418. function m() {
  419. var t = window.jQuery;
  420. return t && !document.body.hasAttribute("data-bs-no-jquery") ? t : null
  421. }
  422. function l() {
  423. return "rtl" === document.documentElement.dir
  424. }
  425. function t(n) {
  426. var t;
  427. t = function () {
  428. var t = m();
  429. if (t) {
  430. var e = n.NAME,
  431. i = t.fn[e];
  432. t.fn[e] = n.jQueryInterface, t.fn[e].Constructor = n, t.fn[e].noConflict = function () {
  433. return t.fn[e] = i, n.jQueryInterface
  434. }
  435. }
  436. }, "loading" === document.readyState ? (C.length || document.addEventListener("DOMContentLoaded", function () {
  437. C.forEach(function (t) {
  438. return t()
  439. })
  440. }), C.push(t)) : t()
  441. }
  442. function o(t) {
  443. "function" == typeof t && t()
  444. }
  445. function n(i, n) {
  446. if (!(2 < arguments.length && void 0 !== arguments[2]) || arguments[2]) {
  447. var t = function (t) {
  448. if (!t) return 0;
  449. var e = window.getComputedStyle(t),
  450. i = e.transitionDuration,
  451. n = e.transitionDelay,
  452. s = Number.parseFloat(i),
  453. o = Number.parseFloat(n);
  454. return s || o ? (i = i.split(",")[0], n = n.split(",")[0], 1e3 * (Number.parseFloat(i) + Number.parseFloat(n))) : 0
  455. }(n) + 5,
  456. s = !1;
  457. n.addEventListener("transitionend", function t(e) {
  458. e.target === n && (s = !0, n.removeEventListener("transitionend", t), o(i))
  459. }), setTimeout(function () {
  460. s || e(n)
  461. }, t)
  462. } else o(i)
  463. }
  464. function v(t, e, i, n) {
  465. var s = t.indexOf(e);
  466. if (-1 === s) return t[!i && n ? t.length - 1 : 0];
  467. var o = t.length;
  468. return s += i ? 1 : -1, n && (s = (s + o) % o), t[Math.max(0, Math.min(s, o - 1))]
  469. }
  470. var _ = function (t) {
  471. var e, i = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : document.documentElement;
  472. return (e = []).concat.apply(e, _toConsumableArray(Element.prototype.querySelectorAll.call(i, t)))
  473. },
  474. y = function (t) {
  475. var e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : document.documentElement;
  476. return Element.prototype.querySelector.call(e, t)
  477. },
  478. b = function (t, e) {
  479. var i;
  480. return (i = []).concat.apply(i, _toConsumableArray(t.children)).filter(function (t) {
  481. return t.matches(e)
  482. })
  483. },
  484. w = function (t, e) {
  485. for (var i = [], n = t.parentNode; n && n.nodeType === Node.ELEMENT_NODE && 3 !== n.nodeType;) n.matches(e) && i.push(n), n = n.parentNode;
  486. return i
  487. },
  488. k = function (t, e) {
  489. for (var i = t.previousElementSibling; i;) {
  490. if (i.matches(e)) return [i];
  491. i = i.previousElementSibling
  492. }
  493. return []
  494. },
  495. x = function (t, e) {
  496. for (var i = t.nextElementSibling; i;) {
  497. if (i.matches(e)) return [i];
  498. i = i.nextElementSibling
  499. }
  500. return []
  501. },
  502. C = [],
  503. T = /[^.]*(?=\..*)\.|.*/,
  504. S = /\..*/,
  505. D = /::\d+$/,
  506. A = {},
  507. E = 1,
  508. P = {
  509. mouseenter: "mouseover",
  510. mouseleave: "mouseout"
  511. },
  512. I = /^(mouseenter|mouseleave)/i,
  513. O = new Set(["click", "dblclick", "mouseup", "mousedown", "contextmenu", "mousewheel", "DOMMouseScroll", "mouseover", "mouseout", "mousemove", "selectstart", "selectend", "keydown", "keypress", "keyup", "orientationchange", "touchstart", "touchmove", "touchend", "touchcancel", "pointerdown", "pointermove", "pointerup", "pointerleave", "pointercancel", "gesturestart", "gesturechange", "gestureend", "focus", "blur", "change", "reset", "select", "submit", "focusin", "focusout", "load", "unload", "beforeunload", "resize", "move", "DOMContentLoaded", "readystatechange", "error", "abort", "scroll"]);
  514. function M(t, e) {
  515. return e && "".concat(e, "::").concat(E++) || t.uidEvent || E++
  516. }
  517. function N(t) {
  518. var e = M(t);
  519. return t.uidEvent = e, A[e] = A[e] || {}, A[e]
  520. }
  521. function L(t, e) {
  522. for (var i = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null, n = Object.keys(t), s = 0, o = n.length; s < o; s++) {
  523. var r = t[n[s]];
  524. if (r.originalHandler === e && r.delegationSelector === i) return r
  525. }
  526. return null
  527. }
  528. function H(t, e, i) {
  529. var n = "string" == typeof e,
  530. s = n ? i : e,
  531. o = W(t);
  532. return O.has(o) || (o = t), [n, s, o]
  533. }
  534. function j(t, e, i, n, s) {
  535. if ("string" == typeof e && t) {
  536. if (i || (i = n, n = null), I.test(e)) {
  537. var o = function (e) {
  538. return function (t) {
  539. if (!t.relatedTarget || t.relatedTarget !== t.delegateTarget && !t.delegateTarget.contains(t.relatedTarget)) return e.call(this, t)
  540. }
  541. };
  542. n ? n = o(n) : i = o(i)
  543. }
  544. var r = H(e, i, n),
  545. a = _slicedToArray(r, 3),
  546. l = a[0],
  547. c = a[1],
  548. u = a[2],
  549. h = N(t),
  550. d = h[u] || (h[u] = {}),
  551. p = L(d, c, l ? i : null);
  552. if (p) p.oneOff = p.oneOff && s;
  553. else {
  554. var f, g, m, v, _, y = M(c, e.replace(T, "")),
  555. b = l ? (m = t, v = i, _ = n, function t(e) {
  556. for (var i = m.querySelectorAll(v), n = e.target; n && n !== this; n = n.parentNode)
  557. for (var s = i.length; s--;)
  558. if (i[s] === n) return e.delegateTarget = n, t.oneOff && $.off(m, e.type, v, _), _.apply(n, [e]);
  559. return null
  560. }) : (f = t, g = i, function t(e) {
  561. return e.delegateTarget = f, t.oneOff && $.off(f, e.type, g), g.apply(f, [e])
  562. });
  563. b.delegationSelector = l ? i : null, b.originalHandler = c, b.oneOff = s, d[b.uidEvent = y] = b, t.addEventListener(u, b, l)
  564. }
  565. }
  566. }
  567. function z(t, e, i, n, s) {
  568. var o = L(e[i], n, s);
  569. o && (t.removeEventListener(i, o, Boolean(s)), delete e[i][o.uidEvent])
  570. }
  571. function W(t) {
  572. return t = t.replace(S, ""), P[t] || t
  573. }
  574. var $ = {
  575. on: function (t, e, i, n) {
  576. j(t, e, i, n, !1)
  577. },
  578. one: function (t, e, i, n) {
  579. j(t, e, i, n, !0)
  580. },
  581. off: function (a, l, t, e) {
  582. if ("string" == typeof l && a) {
  583. var i = H(l, t, e),
  584. n = _slicedToArray(i, 3),
  585. s = n[0],
  586. o = n[1],
  587. r = n[2],
  588. c = r !== l,
  589. u = N(a),
  590. h = l.startsWith(".");
  591. if (void 0 === o) {
  592. h && Object.keys(u).forEach(function (t) {
  593. var i, n, s, o, r;
  594. i = a, n = u, s = t, o = l.slice(1), r = n[s] || {}, Object.keys(r).forEach(function (t) {
  595. if (t.includes(o)) {
  596. var e = r[t];
  597. z(i, n, s, e.originalHandler, e.delegationSelector)
  598. }
  599. })
  600. });
  601. var d = u[r] || {};
  602. Object.keys(d).forEach(function (t) {
  603. var e = t.replace(D, "");
  604. if (!c || l.includes(e)) {
  605. var i = d[t];
  606. z(a, u, r, i.originalHandler, i.delegationSelector)
  607. }
  608. })
  609. } else {
  610. if (!u || !u[r]) return;
  611. z(a, u, r, o, s ? t : null)
  612. }
  613. }
  614. },
  615. trigger: function (t, e, i) {
  616. if ("string" != typeof e || !t) return null;
  617. var n, s = m(),
  618. o = W(e),
  619. r = e !== o,
  620. a = O.has(o),
  621. l = !0,
  622. c = !0,
  623. u = !1,
  624. h = null;
  625. return r && s && (n = s.Event(e, i), s(t).trigger(n), l = !n.isPropagationStopped(), c = !n.isImmediatePropagationStopped(), u = n.isDefaultPrevented()), a ? (h = document.createEvent("HTMLEvents")).initEvent(o, l, !0) : h = new CustomEvent(e, {
  626. bubbles: l,
  627. cancelable: !0
  628. }), void 0 !== i && Object.keys(i).forEach(function (t) {
  629. Object.defineProperty(h, t, {
  630. get: function () {
  631. return i[t]
  632. }
  633. })
  634. }), u && h.preventDefault(), c && t.dispatchEvent(h), h.defaultPrevented && void 0 !== n && n.preventDefault(), h
  635. }
  636. },
  637. R = new Map,
  638. F = function (t, e, i) {
  639. R.has(t) || R.set(t, new Map);
  640. var n = R.get(t);
  641. n.has(e) || 0 === n.size ? n.set(e, i) : console.error("Bootstrap doesn't allow more than one instance per element. Bound instance: ".concat(Array.from(n.keys())[0], "."))
  642. },
  643. q = function (t, e) {
  644. return R.has(t) && R.get(t).get(e) || null
  645. },
  646. B = function (t, e) {
  647. if (R.has(t)) {
  648. var i = R.get(t);
  649. i.delete(e), 0 === i.size && R.delete(t)
  650. }
  651. },
  652. U = function () {
  653. function e(t) {
  654. _classCallCheck(this, e), (t = r(t)) && (this._element = t, F(this._element, this.constructor.DATA_KEY, this))
  655. }
  656. return _createClass(e, [{
  657. key: "dispose",
  658. value: function () {
  659. var e = this;
  660. B(this._element, this.constructor.DATA_KEY), $.off(this._element, this.constructor.EVENT_KEY), Object.getOwnPropertyNames(this).forEach(function (t) {
  661. e[t] = null
  662. })
  663. }
  664. }, {
  665. key: "_queueCallback",
  666. value: function (t, e) {
  667. var i = !(2 < arguments.length && void 0 !== arguments[2]) || arguments[2];
  668. n(t, e, i)
  669. }
  670. }], [{
  671. key: "getInstance",
  672. value: function (t) {
  673. return q(t, this.DATA_KEY)
  674. }
  675. }, {
  676. key: "getOrCreateInstance",
  677. value: function (t) {
  678. var e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {};
  679. return this.getInstance(t) || new this(t, "object" == _typeof(e) ? e : null)
  680. }
  681. }, {
  682. key: "VERSION",
  683. get: function () {
  684. return "5.0.2"
  685. }
  686. }, {
  687. key: "NAME",
  688. get: function () {
  689. throw new Error('You have to implement the static method "NAME", for each component!')
  690. }
  691. }, {
  692. key: "DATA_KEY",
  693. get: function () {
  694. return "bs." + this.NAME
  695. }
  696. }, {
  697. key: "EVENT_KEY",
  698. get: function () {
  699. return "." + this.DATA_KEY
  700. }
  701. }]), e
  702. }(),
  703. Y = function (t) {
  704. _inherits(i, U);
  705. var e = _createSuper(i);
  706. function i() {
  707. return _classCallCheck(this, i), e.apply(this, arguments)
  708. }
  709. return _createClass(i, [{
  710. key: "close",
  711. value: function (t) {
  712. var e = t ? this._getRootElement(t) : this._element,
  713. i = this._triggerCloseEvent(e);
  714. null === i || i.defaultPrevented || this._removeElement(e)
  715. }
  716. }, {
  717. key: "_getRootElement",
  718. value: function (t) {
  719. return a(t) || t.closest(".alert")
  720. }
  721. }, {
  722. key: "_triggerCloseEvent",
  723. value: function (t) {
  724. return $.trigger(t, "close.bs.alert")
  725. }
  726. }, {
  727. key: "_removeElement",
  728. value: function (t) {
  729. var e = this;
  730. t.classList.remove("show");
  731. var i = t.classList.contains("fade");
  732. this._queueCallback(function () {
  733. return e._destroyElement(t)
  734. }, t, i)
  735. }
  736. }, {
  737. key: "_destroyElement",
  738. value: function (t) {
  739. t.remove(), $.trigger(t, "closed.bs.alert")
  740. }
  741. }], [{
  742. key: "jQueryInterface",
  743. value: function (e) {
  744. return this.each(function () {
  745. var t = i.getOrCreateInstance(this);
  746. "close" === e && t[e](this)
  747. })
  748. }
  749. }, {
  750. key: "handleDismiss",
  751. value: function (e) {
  752. return function (t) {
  753. t && t.preventDefault(), e.close(this)
  754. }
  755. }
  756. }, {
  757. key: "NAME",
  758. get: function () {
  759. return "alert"
  760. }
  761. }]), i
  762. }();
  763. $.on(document, "click.bs.alert.data-api", '[data-bs-dismiss="alert"]', Y.handleDismiss(new Y)), t(Y);
  764. var V = function (t) {
  765. _inherits(i, U);
  766. var e = _createSuper(i);
  767. function i() {
  768. return _classCallCheck(this, i), e.apply(this, arguments)
  769. }
  770. return _createClass(i, [{
  771. key: "toggle",
  772. value: function () {
  773. this._element.setAttribute("aria-pressed", this._element.classList.toggle("active"))
  774. }
  775. }], [{
  776. key: "jQueryInterface",
  777. value: function (e) {
  778. return this.each(function () {
  779. var t = i.getOrCreateInstance(this);
  780. "toggle" === e && t[e]()
  781. })
  782. }
  783. }, {
  784. key: "NAME",
  785. get: function () {
  786. return "button"
  787. }
  788. }]), i
  789. }();
  790. function K(t) {
  791. return "true" === t || "false" !== t && (t === Number(t).toString() ? Number(t) : "" === t || "null" === t ? null : t)
  792. }
  793. function X(t) {
  794. return t.replace(/[A-Z]/g, function (t) {
  795. return "-" + t.toLowerCase()
  796. })
  797. }
  798. $.on(document, "click.bs.button.data-api", '[data-bs-toggle="button"]', function (t) {
  799. t.preventDefault();
  800. var e = t.target.closest('[data-bs-toggle="button"]');
  801. V.getOrCreateInstance(e).toggle()
  802. }), t(V);
  803. var Q = {
  804. setDataAttribute: function (t, e, i) {
  805. t.setAttribute("data-bs-" + X(e), i)
  806. },
  807. removeDataAttribute: function (t, e) {
  808. t.removeAttribute("data-bs-" + X(e))
  809. },
  810. getDataAttributes: function (i) {
  811. if (!i) return {};
  812. var n = {};
  813. return Object.keys(i.dataset).filter(function (t) {
  814. return t.startsWith("bs")
  815. }).forEach(function (t) {
  816. var e = t.replace(/^bs/, "");
  817. e = e.charAt(0).toLowerCase() + e.slice(1, e.length), n[e] = K(i.dataset[t])
  818. }), n
  819. },
  820. getDataAttribute: function (t, e) {
  821. return K(t.getAttribute("data-bs-" + X(e)))
  822. },
  823. offset: function (t) {
  824. var e = t.getBoundingClientRect();
  825. return {
  826. top: e.top + document.body.scrollTop,
  827. left: e.left + document.body.scrollLeft
  828. }
  829. },
  830. position: function (t) {
  831. return {
  832. top: t.offsetTop,
  833. left: t.offsetLeft
  834. }
  835. }
  836. },
  837. G = {
  838. interval: 5e3,
  839. keyboard: !0,
  840. slide: !1,
  841. pause: "hover",
  842. wrap: !0,
  843. touch: !0
  844. },
  845. J = {
  846. interval: "(number|boolean)",
  847. keyboard: "boolean",
  848. slide: "(boolean|string)",
  849. pause: "(string|boolean)",
  850. wrap: "boolean",
  851. touch: "boolean"
  852. },
  853. Z = "next",
  854. tt = "prev",
  855. et = "left",
  856. it = "right",
  857. nt = {
  858. ArrowLeft: it,
  859. ArrowRight: et
  860. },
  861. st = function (t) {
  862. _inherits(o, U);
  863. var n = _createSuper(o);
  864. function o(t, e) {
  865. var i;
  866. return _classCallCheck(this, o), (i = n.call(this, t))._items = null, i._interval = null, i._activeElement = null, i._isPaused = !1, i._isSliding = !1, i.touchTimeout = null, i.touchStartX = 0, i.touchDeltaX = 0, i._config = i._getConfig(e), i._indicatorsElement = y(".carousel-indicators", i._element), i._touchSupported = "ontouchstart" in document.documentElement || 0 < navigator.maxTouchPoints, i._pointerEvent = Boolean(window.PointerEvent), i._addEventListeners(), i
  867. }
  868. return _createClass(o, [{
  869. key: "next",
  870. value: function () {
  871. this._slide(Z)
  872. }
  873. }, {
  874. key: "nextWhenVisible",
  875. value: function () {
  876. !document.hidden && s(this._element) && this.next()
  877. }
  878. }, {
  879. key: "prev",
  880. value: function () {
  881. this._slide(tt)
  882. }
  883. }, {
  884. key: "pause",
  885. value: function (t) {
  886. t || (this._isPaused = !0), y(".carousel-item-next, .carousel-item-prev", this._element) && (e(this._element), this.cycle(!0)), clearInterval(this._interval), this._interval = null
  887. }
  888. }, {
  889. key: "cycle",
  890. value: function (t) {
  891. t || (this._isPaused = !1), this._interval && (clearInterval(this._interval), this._interval = null), this._config && this._config.interval && !this._isPaused && (this._updateInterval(), this._interval = setInterval((document.visibilityState ? this.nextWhenVisible : this.next).bind(this), this._config.interval))
  892. }
  893. }, {
  894. key: "to",
  895. value: function (t) {
  896. var e = this;
  897. this._activeElement = y(".active.carousel-item", this._element);
  898. var i = this._getItemIndex(this._activeElement);
  899. if (!(t > this._items.length - 1 || t < 0))
  900. if (this._isSliding) $.one(this._element, "slid.bs.carousel", function () {
  901. return e.to(t)
  902. });
  903. else {
  904. if (i === t) return this.pause(), void this.cycle();
  905. var n = i < t ? Z : tt;
  906. this._slide(n, this._items[t])
  907. }
  908. }
  909. }, {
  910. key: "_getConfig",
  911. value: function (t) {
  912. return t = _objectSpread(_objectSpread(_objectSpread({}, G), Q.getDataAttributes(this._element)), "object" == _typeof(t) ? t : {}), d("carousel", t, J), t
  913. }
  914. }, {
  915. key: "_handleSwipe",
  916. value: function () {
  917. var t = Math.abs(this.touchDeltaX);
  918. if (!(t <= 40)) {
  919. var e = t / this.touchDeltaX;
  920. this.touchDeltaX = 0, e && this._slide(0 < e ? it : et)
  921. }
  922. }
  923. }, {
  924. key: "_addEventListeners",
  925. value: function () {
  926. var e = this;
  927. this._config.keyboard && $.on(this._element, "keydown.bs.carousel", function (t) {
  928. return e._keydown(t)
  929. }), "hover" === this._config.pause && ($.on(this._element, "mouseenter.bs.carousel", function (t) {
  930. return e.pause(t)
  931. }), $.on(this._element, "mouseleave.bs.carousel", function (t) {
  932. return e.cycle(t)
  933. })), this._config.touch && this._touchSupported && this._addTouchEventListeners()
  934. }
  935. }, {
  936. key: "_addTouchEventListeners",
  937. value: function () {
  938. function e(t) {
  939. !n._pointerEvent || "pen" !== t.pointerType && "touch" !== t.pointerType ? n._pointerEvent || (n.touchStartX = t.touches[0].clientX) : n.touchStartX = t.clientX
  940. }
  941. function i(t) {
  942. !n._pointerEvent || "pen" !== t.pointerType && "touch" !== t.pointerType || (n.touchDeltaX = t.clientX - n.touchStartX), n._handleSwipe(), "hover" === n._config.pause && (n.pause(), n.touchTimeout && clearTimeout(n.touchTimeout), n.touchTimeout = setTimeout(function (t) {
  943. return n.cycle(t)
  944. }, 500 + n._config.interval))
  945. }
  946. var n = this;
  947. _(".carousel-item img", this._element).forEach(function (t) {
  948. $.on(t, "dragstart.bs.carousel", function (t) {
  949. return t.preventDefault()
  950. })
  951. }), this._pointerEvent ? ($.on(this._element, "pointerdown.bs.carousel", function (t) {
  952. return e(t)
  953. }), $.on(this._element, "pointerup.bs.carousel", function (t) {
  954. return i(t)
  955. }), this._element.classList.add("pointer-event")) : ($.on(this._element, "touchstart.bs.carousel", function (t) {
  956. return e(t)
  957. }), $.on(this._element, "touchmove.bs.carousel", function (t) {
  958. return function (t) {
  959. n.touchDeltaX = t.touches && 1 < t.touches.length ? 0 : t.touches[0].clientX - n.touchStartX
  960. }(t)
  961. }), $.on(this._element, "touchend.bs.carousel", function (t) {
  962. return i(t)
  963. }))
  964. }
  965. }, {
  966. key: "_keydown",
  967. value: function (t) {
  968. if (!/input|textarea/i.test(t.target.tagName)) {
  969. var e = nt[t.key];
  970. e && (t.preventDefault(), this._slide(e))
  971. }
  972. }
  973. }, {
  974. key: "_getItemIndex",
  975. value: function (t) {
  976. return this._items = t && t.parentNode ? _(".carousel-item", t.parentNode) : [], this._items.indexOf(t)
  977. }
  978. }, {
  979. key: "_getItemByOrder",
  980. value: function (t, e) {
  981. var i = t === Z;
  982. return v(this._items, e, i, this._config.wrap)
  983. }
  984. }, {
  985. key: "_triggerSlideEvent",
  986. value: function (t, e) {
  987. var i = this._getItemIndex(t),
  988. n = this._getItemIndex(y(".active.carousel-item", this._element));
  989. return $.trigger(this._element, "slide.bs.carousel", {
  990. relatedTarget: t,
  991. direction: e,
  992. from: n,
  993. to: i
  994. })
  995. }
  996. }, {
  997. key: "_setActiveIndicatorElement",
  998. value: function (t) {
  999. if (this._indicatorsElement) {
  1000. var e = y(".active", this._indicatorsElement);
  1001. e.classList.remove("active"), e.removeAttribute("aria-current");
  1002. for (var i = _("[data-bs-target]", this._indicatorsElement), n = 0; n < i.length; n++)
  1003. if (Number.parseInt(i[n].getAttribute("data-bs-slide-to"), 10) === this._getItemIndex(t)) {
  1004. i[n].classList.add("active"), i[n].setAttribute("aria-current", "true");
  1005. break
  1006. }
  1007. }
  1008. }
  1009. }, {
  1010. key: "_updateInterval",
  1011. value: function () {
  1012. var t = this._activeElement || y(".active.carousel-item", this._element);
  1013. if (t) {
  1014. var e = Number.parseInt(t.getAttribute("data-bs-interval"), 10);
  1015. e ? (this._config.defaultInterval = this._config.defaultInterval || this._config.interval, this._config.interval = e) : this._config.interval = this._config.defaultInterval || this._config.interval
  1016. }
  1017. }
  1018. }, {
  1019. key: "_slide",
  1020. value: function (t, e) {
  1021. var i = this,
  1022. n = this._directionToOrder(t),
  1023. s = y(".active.carousel-item", this._element),
  1024. o = this._getItemIndex(s),
  1025. r = e || this._getItemByOrder(n, s),
  1026. a = this._getItemIndex(r),
  1027. l = Boolean(this._interval),
  1028. c = n === Z,
  1029. u = c ? "carousel-item-start" : "carousel-item-end",
  1030. h = c ? "carousel-item-next" : "carousel-item-prev",
  1031. d = this._orderToDirection(n);
  1032. if (r && r.classList.contains("active")) this._isSliding = !1;
  1033. else if (!this._isSliding && !this._triggerSlideEvent(r, d).defaultPrevented && s && r) {
  1034. this._isSliding = !0, l && this.pause(), this._setActiveIndicatorElement(r), this._activeElement = r;
  1035. var p = function () {
  1036. $.trigger(i._element, "slid.bs.carousel", {
  1037. relatedTarget: r,
  1038. direction: d,
  1039. from: o,
  1040. to: a
  1041. })
  1042. };
  1043. if (this._element.classList.contains("slide")) {
  1044. r.classList.add(h), g(r), s.classList.add(u), r.classList.add(u);
  1045. this._queueCallback(function () {
  1046. r.classList.remove(u, h), r.classList.add("active"), s.classList.remove("active", h, u), i._isSliding = !1, setTimeout(p, 0)
  1047. }, s, !0)
  1048. } else s.classList.remove("active"), r.classList.add("active"), this._isSliding = !1, p();
  1049. l && this.cycle()
  1050. }
  1051. }
  1052. }, {
  1053. key: "_directionToOrder",
  1054. value: function (t) {
  1055. return [it, et].includes(t) ? l() ? t === et ? tt : Z : t === et ? Z : tt : t
  1056. }
  1057. }, {
  1058. key: "_orderToDirection",
  1059. value: function (t) {
  1060. return [Z, tt].includes(t) ? l() ? t === tt ? et : it : t === tt ? it : et : t
  1061. }
  1062. }], [{
  1063. key: "carouselInterface",
  1064. value: function (t, e) {
  1065. var i = o.getOrCreateInstance(t, e),
  1066. n = i._config;
  1067. "object" == _typeof(e) && (n = _objectSpread(_objectSpread({}, n), e));
  1068. var s = "string" == typeof e ? e : n.slide;
  1069. if ("number" == typeof e) i.to(e);
  1070. else if ("string" == typeof s) {
  1071. if (void 0 === i[s]) throw new TypeError('No method named "'.concat(s, '"'));
  1072. i[s]()
  1073. } else n.interval && n.ride && (i.pause(), i.cycle())
  1074. }
  1075. }, {
  1076. key: "jQueryInterface",
  1077. value: function (t) {
  1078. return this.each(function () {
  1079. o.carouselInterface(this, t)
  1080. })
  1081. }
  1082. }, {
  1083. key: "dataApiClickHandler",
  1084. value: function (t) {
  1085. var e = a(this);
  1086. if (e && e.classList.contains("carousel")) {
  1087. var i = _objectSpread(_objectSpread({}, Q.getDataAttributes(e)), Q.getDataAttributes(this)),
  1088. n = this.getAttribute("data-bs-slide-to");
  1089. n && (i.interval = !1), o.carouselInterface(e, i), n && o.getInstance(e).to(n), t.preventDefault()
  1090. }
  1091. }
  1092. }, {
  1093. key: "Default",
  1094. get: function () {
  1095. return G
  1096. }
  1097. }, {
  1098. key: "NAME",
  1099. get: function () {
  1100. return "carousel"
  1101. }
  1102. }]), o
  1103. }();
  1104. $.on(document, "click.bs.carousel.data-api", "[data-bs-slide], [data-bs-slide-to]", st.dataApiClickHandler), $.on(window, "load.bs.carousel.data-api", function () {
  1105. for (var t = _('[data-bs-ride="carousel"]'), e = 0, i = t.length; e < i; e++) st.carouselInterface(t[e], st.getInstance(t[e]))
  1106. }), t(st);
  1107. var ot = {
  1108. toggle: !0,
  1109. parent: ""
  1110. },
  1111. rt = {
  1112. toggle: "boolean",
  1113. parent: "(string|element)"
  1114. },
  1115. at = function (t) {
  1116. _inherits(u, U);
  1117. var c = _createSuper(u);
  1118. function u(t, e) {
  1119. var i;
  1120. _classCallCheck(this, u), (i = c.call(this, t))._isTransitioning = !1, i._config = i._getConfig(e), i._triggerArray = _('[data-bs-toggle="collapse"][href="#'.concat(i._element.id, '"],[data-bs-toggle="collapse"][data-bs-target="#').concat(i._element.id, '"]'));
  1121. for (var n = _('[data-bs-toggle="collapse"]'), s = 0, o = n.length; s < o; s++) {
  1122. var r = n[s],
  1123. a = h(r),
  1124. l = _(a).filter(function (t) {
  1125. return t === i._element
  1126. });
  1127. null !== a && l.length && (i._selector = a, i._triggerArray.push(r))
  1128. }
  1129. return i._parent = i._config.parent ? i._getParent() : null, i._config.parent || i._addAriaAndCollapsedClass(i._element, i._triggerArray), i._config.toggle && i.toggle(), i
  1130. }
  1131. return _createClass(u, [{
  1132. key: "toggle",
  1133. value: function () {
  1134. this._element.classList.contains("show") ? this.hide() : this.show()
  1135. }
  1136. }, {
  1137. key: "show",
  1138. value: function () {
  1139. var e = this;
  1140. if (!this._isTransitioning && !this._element.classList.contains("show")) {
  1141. var t, i;
  1142. this._parent && (0 === (t = _(".show, .collapsing", this._parent).filter(function (t) {
  1143. return "string" == typeof e._config.parent ? t.getAttribute("data-bs-parent") === e._config.parent : t.classList.contains("collapse")
  1144. })).length && (t = null));
  1145. var n = y(this._selector);
  1146. if (t) {
  1147. var s = t.find(function (t) {
  1148. return n !== t
  1149. });
  1150. if ((i = s ? u.getInstance(s) : null) && i._isTransitioning) return
  1151. }
  1152. if (!$.trigger(this._element, "show.bs.collapse").defaultPrevented) {
  1153. t && t.forEach(function (t) {
  1154. n !== t && u.collapseInterface(t, "hide"), i || F(t, "bs.collapse", null)
  1155. });
  1156. var o = this._getDimension();
  1157. this._element.classList.remove("collapse"), this._element.classList.add("collapsing"), this._element.style[o] = 0, this._triggerArray.length && this._triggerArray.forEach(function (t) {
  1158. t.classList.remove("collapsed"), t.setAttribute("aria-expanded", !0)
  1159. }), this.setTransitioning(!0);
  1160. var r = "scroll" + (o[0].toUpperCase() + o.slice(1));
  1161. this._queueCallback(function () {
  1162. e._element.classList.remove("collapsing"), e._element.classList.add("collapse", "show"), e._element.style[o] = "", e.setTransitioning(!1), $.trigger(e._element, "shown.bs.collapse")
  1163. }, this._element, !0), this._element.style[o] = this._element[r] + "px"
  1164. }
  1165. }
  1166. }
  1167. }, {
  1168. key: "hide",
  1169. value: function () {
  1170. var t = this;
  1171. if (!this._isTransitioning && this._element.classList.contains("show") && !$.trigger(this._element, "hide.bs.collapse").defaultPrevented) {
  1172. var e = this._getDimension();
  1173. this._element.style[e] = this._element.getBoundingClientRect()[e] + "px", g(this._element), this._element.classList.add("collapsing"), this._element.classList.remove("collapse", "show");
  1174. var i = this._triggerArray.length;
  1175. if (0 < i)
  1176. for (var n = 0; n < i; n++) {
  1177. var s = this._triggerArray[n],
  1178. o = a(s);
  1179. o && !o.classList.contains("show") && (s.classList.add("collapsed"), s.setAttribute("aria-expanded", !1))
  1180. }
  1181. this.setTransitioning(!0), this._element.style[e] = "", this._queueCallback(function () {
  1182. t.setTransitioning(!1), t._element.classList.remove("collapsing"), t._element.classList.add("collapse"), $.trigger(t._element, "hidden.bs.collapse")
  1183. }, this._element, !0)
  1184. }
  1185. }
  1186. }, {
  1187. key: "setTransitioning",
  1188. value: function (t) {
  1189. this._isTransitioning = t
  1190. }
  1191. }, {
  1192. key: "_getConfig",
  1193. value: function (t) {
  1194. return (t = _objectSpread(_objectSpread({}, ot), t)).toggle = Boolean(t.toggle), d("collapse", t, rt), t
  1195. }
  1196. }, {
  1197. key: "_getDimension",
  1198. value: function () {
  1199. return this._element.classList.contains("width") ? "width" : "height"
  1200. }
  1201. }, {
  1202. key: "_getParent",
  1203. value: function () {
  1204. var i = this,
  1205. t = this._config.parent;
  1206. t = r(t);
  1207. var e = '[data-bs-toggle="collapse"][data-bs-parent="'.concat(t, '"]');
  1208. return _(e, t).forEach(function (t) {
  1209. var e = a(t);
  1210. i._addAriaAndCollapsedClass(e, [t])
  1211. }), t
  1212. }
  1213. }, {
  1214. key: "_addAriaAndCollapsedClass",
  1215. value: function (t, e) {
  1216. if (t && e.length) {
  1217. var i = t.classList.contains("show");
  1218. e.forEach(function (t) {
  1219. i ? t.classList.remove("collapsed") : t.classList.add("collapsed"), t.setAttribute("aria-expanded", i)
  1220. })
  1221. }
  1222. }
  1223. }], [{
  1224. key: "collapseInterface",
  1225. value: function (t, e) {
  1226. var i = u.getInstance(t),
  1227. n = _objectSpread(_objectSpread(_objectSpread({}, ot), Q.getDataAttributes(t)), "object" == _typeof(e) && e ? e : {});
  1228. if (!i && n.toggle && "string" == typeof e && /show|hide/.test(e) && (n.toggle = !1), i || (i = new u(t, n)), "string" == typeof e) {
  1229. if (void 0 === i[e]) throw new TypeError('No method named "'.concat(e, '"'));
  1230. i[e]()
  1231. }
  1232. }
  1233. }, {
  1234. key: "jQueryInterface",
  1235. value: function (t) {
  1236. return this.each(function () {
  1237. u.collapseInterface(this, t)
  1238. })
  1239. }
  1240. }, {
  1241. key: "Default",
  1242. get: function () {
  1243. return ot
  1244. }
  1245. }, {
  1246. key: "NAME",
  1247. get: function () {
  1248. return "collapse"
  1249. }
  1250. }]), u
  1251. }();
  1252. $.on(document, "click.bs.collapse.data-api", '[data-bs-toggle="collapse"]', function (t) {
  1253. ("A" === t.target.tagName || t.delegateTarget && "A" === t.delegateTarget.tagName) && t.preventDefault();
  1254. var n = Q.getDataAttributes(this),
  1255. e = h(this);
  1256. _(e).forEach(function (t) {
  1257. var e, i = at.getInstance(t);
  1258. e = i ? (null === i._parent && "string" == typeof n.parent && (i._config.parent = n.parent, i._parent = i._getParent()), "toggle") : n, at.collapseInterface(t, e)
  1259. })
  1260. }), t(at);
  1261. var lt = "top",
  1262. ct = "bottom",
  1263. ut = "right",
  1264. ht = "left",
  1265. dt = [lt, ct, ut, ht],
  1266. pt = dt.reduce(function (t, e) {
  1267. return t.concat([e + "-start", e + "-end"])
  1268. }, []),
  1269. ft = [].concat(dt, ["auto"]).reduce(function (t, e) {
  1270. return t.concat([e, e + "-start", e + "-end"])
  1271. }, []),
  1272. gt = ["beforeRead", "read", "afterRead", "beforeMain", "main", "afterMain", "beforeWrite", "write", "afterWrite"];
  1273. function mt(t) {
  1274. return t ? (t.nodeName || "").toLowerCase() : null
  1275. }
  1276. function vt(t) {
  1277. if (null == t) return window;
  1278. if ("[object Window]" === t.toString()) return t;
  1279. var e = t.ownerDocument;
  1280. return e && e.defaultView || window
  1281. }
  1282. function _t(t) {
  1283. return t instanceof vt(t).Element || t instanceof Element
  1284. }
  1285. function yt(t) {
  1286. return t instanceof vt(t).HTMLElement || t instanceof HTMLElement
  1287. }
  1288. function bt(t) {
  1289. return "undefined" != typeof ShadowRoot && (t instanceof vt(t).ShadowRoot || t instanceof ShadowRoot)
  1290. }
  1291. var wt = {
  1292. name: "applyStyles",
  1293. enabled: !0,
  1294. phase: "write",
  1295. fn: function (t) {
  1296. var s = t.state;
  1297. Object.keys(s.elements).forEach(function (t) {
  1298. var e = s.styles[t] || {},
  1299. i = s.attributes[t] || {},
  1300. n = s.elements[t];
  1301. yt(n) && mt(n) && (Object.assign(n.style, e), Object.keys(i).forEach(function (t) {
  1302. var e = i[t];
  1303. !1 === e ? n.removeAttribute(t) : n.setAttribute(t, !0 === e ? "" : e)
  1304. }))
  1305. })
  1306. },
  1307. effect: function (t) {
  1308. var s = t.state,
  1309. o = {
  1310. popper: {
  1311. position: s.options.strategy,
  1312. left: "0",
  1313. top: "0",
  1314. margin: "0"
  1315. },
  1316. arrow: {
  1317. position: "absolute"
  1318. },
  1319. reference: {}
  1320. };
  1321. return Object.assign(s.elements.popper.style, o.popper), s.styles = o, s.elements.arrow && Object.assign(s.elements.arrow.style, o.arrow),
  1322. function () {
  1323. Object.keys(s.elements).forEach(function (t) {
  1324. var e = s.elements[t],
  1325. i = s.attributes[t] || {},
  1326. n = Object.keys(s.styles.hasOwnProperty(t) ? s.styles[t] : o[t]).reduce(function (t, e) {
  1327. return t[e] = "", t
  1328. }, {});
  1329. yt(e) && mt(e) && (Object.assign(e.style, n), Object.keys(i).forEach(function (t) {
  1330. e.removeAttribute(t)
  1331. }))
  1332. })
  1333. }
  1334. },
  1335. requires: ["computeStyles"]
  1336. };
  1337. function kt(t) {
  1338. return t.split("-")[0]
  1339. }
  1340. function xt(t) {
  1341. var e = t.getBoundingClientRect();
  1342. return {
  1343. width: e.width,
  1344. height: e.height,
  1345. top: e.top,
  1346. right: e.right,
  1347. bottom: e.bottom,
  1348. left: e.left,
  1349. x: e.left,
  1350. y: e.top
  1351. }
  1352. }
  1353. function Ct(t) {
  1354. var e = xt(t),
  1355. i = t.offsetWidth,
  1356. n = t.offsetHeight;
  1357. return Math.abs(e.width - i) <= 1 && (i = e.width), Math.abs(e.height - n) <= 1 && (n = e.height), {
  1358. x: t.offsetLeft,
  1359. y: t.offsetTop,
  1360. width: i,
  1361. height: n
  1362. }
  1363. }
  1364. function Tt(t, e) {
  1365. var i = e.getRootNode && e.getRootNode();
  1366. if (t.contains(e)) return !0;
  1367. if (i && bt(i)) {
  1368. var n = e;
  1369. do {
  1370. if (n && t.isSameNode(n)) return !0;
  1371. n = n.parentNode || n.host
  1372. } while (n)
  1373. }
  1374. return !1
  1375. }
  1376. function St(t) {
  1377. return vt(t).getComputedStyle(t)
  1378. }
  1379. function Dt(t) {
  1380. return ((_t(t) ? t.ownerDocument : t.document) || window.document).documentElement
  1381. }
  1382. function At(t) {
  1383. return "html" === mt(t) ? t : t.assignedSlot || t.parentNode || (bt(t) ? t.host : null) || Dt(t)
  1384. }
  1385. function Et(t) {
  1386. return yt(t) && "fixed" !== St(t).position ? t.offsetParent : null
  1387. }
  1388. function Pt(t) {
  1389. for (var e = vt(t), i = Et(t); i && 0 <= ["table", "td", "th"].indexOf(mt(i)) && "static" === St(i).position;) i = Et(i);
  1390. return i && ("html" === mt(i) || "body" === mt(i) && "static" === St(i).position) ? e : i || function (t) {
  1391. var e = -1 !== navigator.userAgent.toLowerCase().indexOf("firefox");
  1392. if (-1 !== navigator.userAgent.indexOf("Trident") && yt(t) && "fixed" === St(t).position) return null;
  1393. for (var i = At(t); yt(i) && ["html", "body"].indexOf(mt(i)) < 0;) {
  1394. var n = St(i);
  1395. if ("none" !== n.transform || "none" !== n.perspective || "paint" === n.contain || -1 !== ["transform", "perspective"].indexOf(n.willChange) || e && "filter" === n.willChange || e && n.filter && "none" !== n.filter) return i;
  1396. i = i.parentNode
  1397. }
  1398. return null
  1399. }(t) || e
  1400. }
  1401. function It(t) {
  1402. return 0 <= ["top", "bottom"].indexOf(t) ? "x" : "y"
  1403. }
  1404. var Ot = Math.max,
  1405. Mt = Math.min,
  1406. Nt = Math.round;
  1407. function Lt(t, e, i) {
  1408. return Ot(t, Mt(e, i))
  1409. }
  1410. function Ht(t) {
  1411. return Object.assign({}, {
  1412. top: 0,
  1413. right: 0,
  1414. bottom: 0,
  1415. left: 0
  1416. }, t)
  1417. }
  1418. function jt(i, t) {
  1419. return t.reduce(function (t, e) {
  1420. return t[e] = i, t
  1421. }, {})
  1422. }
  1423. var zt = {
  1424. name: "arrow",
  1425. enabled: !0,
  1426. phase: "main",
  1427. fn: function (t) {
  1428. var e, i, n, s = t.state,
  1429. o = t.name,
  1430. r = t.options,
  1431. a = s.elements.arrow,
  1432. l = s.modifiersData.popperOffsets,
  1433. c = kt(s.placement),
  1434. u = It(c),
  1435. h = 0 <= [ht, ut].indexOf(c) ? "height" : "width";
  1436. if (a && l) {
  1437. var d = (i = r.padding, n = s, Ht("number" != typeof (i = "function" == typeof i ? i(Object.assign({}, n.rects, {
  1438. placement: n.placement
  1439. })) : i) ? i : jt(i, dt))),
  1440. p = Ct(a),
  1441. f = "y" === u ? lt : ht,
  1442. g = "y" === u ? ct : ut,
  1443. m = s.rects.reference[h] + s.rects.reference[u] - l[u] - s.rects.popper[h],
  1444. v = l[u] - s.rects.reference[u],
  1445. _ = Pt(a),
  1446. y = _ ? "y" === u ? _.clientHeight || 0 : _.clientWidth || 0 : 0,
  1447. b = m / 2 - v / 2,
  1448. w = d[f],
  1449. k = y - p[h] - d[g],
  1450. x = y / 2 - p[h] / 2 + b,
  1451. C = Lt(w, x, k),
  1452. T = u;
  1453. s.modifiersData[o] = ((e = {})[T] = C, e.centerOffset = C - x, e)
  1454. }
  1455. },
  1456. effect: function (t) {
  1457. var e = t.state,
  1458. i = t.options.element,
  1459. n = void 0 === i ? "[data-popper-arrow]" : i;
  1460. null != n && ("string" != typeof n || (n = e.elements.popper.querySelector(n))) && Tt(e.elements.popper, n) && (e.elements.arrow = n)
  1461. },
  1462. requires: ["popperOffsets"],
  1463. requiresIfExists: ["preventOverflow"]
  1464. },
  1465. Wt = {
  1466. top: "auto",
  1467. right: "auto",
  1468. bottom: "auto",
  1469. left: "auto"
  1470. };
  1471. function $t(t) {
  1472. var e, i, n, s, o, r = t.popper,
  1473. a = t.popperRect,
  1474. l = t.placement,
  1475. c = t.offsets,
  1476. u = t.position,
  1477. h = t.gpuAcceleration,
  1478. d = t.adaptive,
  1479. p = t.roundOffsets,
  1480. f = !0 === p ? (n = (i = c).x, s = i.y, o = window.devicePixelRatio || 1, {
  1481. x: Nt(Nt(n * o) / o) || 0,
  1482. y: Nt(Nt(s * o) / o) || 0
  1483. }) : "function" == typeof p ? p(c) : c,
  1484. g = f.x,
  1485. m = void 0 === g ? 0 : g,
  1486. v = f.y,
  1487. _ = void 0 === v ? 0 : v,
  1488. y = c.hasOwnProperty("x"),
  1489. b = c.hasOwnProperty("y"),
  1490. w = ht,
  1491. k = lt,
  1492. x = window;
  1493. if (d) {
  1494. var C = Pt(r),
  1495. T = "clientHeight",
  1496. S = "clientWidth";
  1497. C === vt(r) && "static" !== St(C = Dt(r)).position && (T = "scrollHeight", S = "scrollWidth"), C = C, l === lt && (k = ct, _ -= C[T] - a.height, _ *= h ? 1 : -1), l === ht && (w = ut, m -= C[S] - a.width, m *= h ? 1 : -1)
  1498. }
  1499. var D, A = Object.assign({
  1500. position: u
  1501. }, d && Wt);
  1502. return h ? Object.assign({}, A, ((D = {})[k] = b ? "0" : "", D[w] = y ? "0" : "", D.transform = (x.devicePixelRatio || 1) < 2 ? "translate(" + m + "px, " + _ + "px)" : "translate3d(" + m + "px, " + _ + "px, 0)", D)) : Object.assign({}, A, ((e = {})[k] = b ? _ + "px" : "", e[w] = y ? m + "px" : "", e.transform = "", e))
  1503. }
  1504. var Rt = {
  1505. name: "computeStyles",
  1506. enabled: !0,
  1507. phase: "beforeWrite",
  1508. fn: function (t) {
  1509. var e = t.state,
  1510. i = t.options,
  1511. n = i.gpuAcceleration,
  1512. s = void 0 === n || n,
  1513. o = i.adaptive,
  1514. r = void 0 === o || o,
  1515. a = i.roundOffsets,
  1516. l = void 0 === a || a,
  1517. c = {
  1518. placement: kt(e.placement),
  1519. popper: e.elements.popper,
  1520. popperRect: e.rects.popper,
  1521. gpuAcceleration: s
  1522. };
  1523. null != e.modifiersData.popperOffsets && (e.styles.popper = Object.assign({}, e.styles.popper, $t(Object.assign({}, c, {
  1524. offsets: e.modifiersData.popperOffsets,
  1525. position: e.options.strategy,
  1526. adaptive: r,
  1527. roundOffsets: l
  1528. })))), null != e.modifiersData.arrow && (e.styles.arrow = Object.assign({}, e.styles.arrow, $t(Object.assign({}, c, {
  1529. offsets: e.modifiersData.arrow,
  1530. position: "absolute",
  1531. adaptive: !1,
  1532. roundOffsets: l
  1533. })))), e.attributes.popper = Object.assign({}, e.attributes.popper, {
  1534. "data-popper-placement": e.placement
  1535. })
  1536. },
  1537. data: {}
  1538. },
  1539. Ft = {
  1540. passive: !0
  1541. },
  1542. qt = {
  1543. name: "eventListeners",
  1544. enabled: !0,
  1545. phase: "write",
  1546. fn: function () {},
  1547. effect: function (t) {
  1548. var e = t.state,
  1549. i = t.instance,
  1550. n = t.options,
  1551. s = n.scroll,
  1552. o = void 0 === s || s,
  1553. r = n.resize,
  1554. a = void 0 === r || r,
  1555. l = vt(e.elements.popper),
  1556. c = [].concat(e.scrollParents.reference, e.scrollParents.popper);
  1557. return o && c.forEach(function (t) {
  1558. t.addEventListener("scroll", i.update, Ft)
  1559. }), a && l.addEventListener("resize", i.update, Ft),
  1560. function () {
  1561. o && c.forEach(function (t) {
  1562. t.removeEventListener("scroll", i.update, Ft)
  1563. }), a && l.removeEventListener("resize", i.update, Ft)
  1564. }
  1565. },
  1566. data: {}
  1567. },
  1568. Bt = {
  1569. left: "right",
  1570. right: "left",
  1571. bottom: "top",
  1572. top: "bottom"
  1573. };
  1574. function Ut(t) {
  1575. return t.replace(/left|right|bottom|top/g, function (t) {
  1576. return Bt[t]
  1577. })
  1578. }
  1579. var Yt = {
  1580. start: "end",
  1581. end: "start"
  1582. };
  1583. function Vt(t) {
  1584. return t.replace(/start|end/g, function (t) {
  1585. return Yt[t]
  1586. })
  1587. }
  1588. function Kt(t) {
  1589. var e = vt(t);
  1590. return {
  1591. scrollLeft: e.pageXOffset,
  1592. scrollTop: e.pageYOffset
  1593. }
  1594. }
  1595. function Xt(t) {
  1596. return xt(Dt(t)).left + Kt(t).scrollLeft
  1597. }
  1598. function Qt(t) {
  1599. var e = St(t),
  1600. i = e.overflow,
  1601. n = e.overflowX,
  1602. s = e.overflowY;
  1603. return /auto|scroll|overlay|hidden/.test(i + s + n)
  1604. }
  1605. function Gt(t, e) {
  1606. var i;
  1607. void 0 === e && (e = []);
  1608. var n = function t(e) {
  1609. return 0 <= ["html", "body", "#document"].indexOf(mt(e)) ? e.ownerDocument.body : yt(e) && Qt(e) ? e : t(At(e))
  1610. }(t),
  1611. s = n === (null == (i = t.ownerDocument) ? void 0 : i.body),
  1612. o = vt(n),
  1613. r = s ? [o].concat(o.visualViewport || [], Qt(n) ? n : []) : n,
  1614. a = e.concat(r);
  1615. return s ? a : a.concat(Gt(At(r)))
  1616. }
  1617. function Jt(t) {
  1618. return Object.assign({}, t, {
  1619. left: t.x,
  1620. top: t.y,
  1621. right: t.x + t.width,
  1622. bottom: t.y + t.height
  1623. })
  1624. }
  1625. function Zt(t, e) {
  1626. return "viewport" === e ? Jt((f = vt(p = t), g = Dt(p), m = f.visualViewport, v = g.clientWidth, _ = g.clientHeight, b = y = 0, m && (v = m.width, _ = m.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (y = m.offsetLeft, b = m.offsetTop)), {
  1627. width: v,
  1628. height: _,
  1629. x: y + Xt(p),
  1630. y: b
  1631. })) : yt(e) ? ((d = xt(h = e)).top = d.top + h.clientTop, d.left = d.left + h.clientLeft, d.bottom = d.top + h.clientHeight, d.right = d.left + h.clientWidth, d.width = h.clientWidth, d.height = h.clientHeight, d.x = d.left, d.y = d.top, d) : Jt((i = Dt(t), s = Dt(i), o = Kt(i), r = null == (n = i.ownerDocument) ? void 0 : n.body, a = Ot(s.scrollWidth, s.clientWidth, r ? r.scrollWidth : 0, r ? r.clientWidth : 0), l = Ot(s.scrollHeight, s.clientHeight, r ? r.scrollHeight : 0, r ? r.clientHeight : 0), c = -o.scrollLeft + Xt(i), u = -o.scrollTop, "rtl" === St(r || s).direction && (c += Ot(s.clientWidth, r ? r.clientWidth : 0) - a), {
  1632. width: a,
  1633. height: l,
  1634. x: c,
  1635. y: u
  1636. }));
  1637. var i, n, s, o, r, a, l, c, u, h, d, p, f, g, m, v, _, y, b
  1638. }
  1639. function te(t) {
  1640. return t.split("-")[1]
  1641. }
  1642. function ee(t) {
  1643. var e, i = t.reference,
  1644. n = t.element,
  1645. s = t.placement,
  1646. o = s ? kt(s) : null,
  1647. r = s ? te(s) : null,
  1648. a = i.x + i.width / 2 - n.width / 2,
  1649. l = i.y + i.height / 2 - n.height / 2;
  1650. switch (o) {
  1651. case lt:
  1652. e = {
  1653. x: a,
  1654. y: i.y - n.height
  1655. };
  1656. break;
  1657. case ct:
  1658. e = {
  1659. x: a,
  1660. y: i.y + i.height
  1661. };
  1662. break;
  1663. case ut:
  1664. e = {
  1665. x: i.x + i.width,
  1666. y: l
  1667. };
  1668. break;
  1669. case ht:
  1670. e = {
  1671. x: i.x - n.width,
  1672. y: l
  1673. };
  1674. break;
  1675. default:
  1676. e = {
  1677. x: i.x,
  1678. y: i.y
  1679. }
  1680. }
  1681. var c = o ? It(o) : null;
  1682. if (null != c) {
  1683. var u = "y" === c ? "height" : "width";
  1684. switch (r) {
  1685. case "start":
  1686. e[c] = e[c] - (i[u] / 2 - n[u] / 2);
  1687. break;
  1688. case "end":
  1689. e[c] = e[c] + (i[u] / 2 - n[u] / 2)
  1690. }
  1691. }
  1692. return e
  1693. }
  1694. function ie(t, e) {
  1695. void 0 === e && (e = {});
  1696. var n, i, s, o, r, a, l, c, u, h, d = e,
  1697. p = d.placement,
  1698. f = void 0 === p ? t.placement : p,
  1699. g = d.boundary,
  1700. m = void 0 === g ? "clippingParents" : g,
  1701. v = d.rootBoundary,
  1702. _ = void 0 === v ? "viewport" : v,
  1703. y = d.elementContext,
  1704. b = void 0 === y ? "popper" : y,
  1705. w = d.altBoundary,
  1706. k = void 0 !== w && w,
  1707. x = d.padding,
  1708. C = void 0 === x ? 0 : x,
  1709. T = Ht("number" != typeof C ? C : jt(C, dt)),
  1710. S = "popper" === b ? "reference" : "popper",
  1711. D = t.elements.reference,
  1712. A = t.rects.popper,
  1713. E = t.elements[k ? S : b],
  1714. P = (n = _t(E) ? E : E.contextElement || Dt(t.elements.popper), s = _, l = "clippingParents" === (i = m) ? (r = Gt(At(o = n)), _t(a = 0 <= ["absolute", "fixed"].indexOf(St(o).position) && yt(o) ? Pt(o) : o) ? r.filter(function (t) {
  1715. return _t(t) && Tt(t, a) && "body" !== mt(t)
  1716. }) : []) : [].concat(i), c = [].concat(l, [s]), u = c[0], (h = c.reduce(function (t, e) {
  1717. var i = Zt(n, e);
  1718. return t.top = Ot(i.top, t.top), t.right = Mt(i.right, t.right), t.bottom = Mt(i.bottom, t.bottom), t.left = Ot(i.left, t.left), t
  1719. }, Zt(n, u))).width = h.right - h.left, h.height = h.bottom - h.top, h.x = h.left, h.y = h.top, h),
  1720. I = xt(D),
  1721. O = ee({
  1722. reference: I,
  1723. element: A,
  1724. strategy: "absolute",
  1725. placement: f
  1726. }),
  1727. M = Jt(Object.assign({}, A, O)),
  1728. N = "popper" === b ? M : I,
  1729. L = {
  1730. top: P.top - N.top + T.top,
  1731. bottom: N.bottom - P.bottom + T.bottom,
  1732. left: P.left - N.left + T.left,
  1733. right: N.right - P.right + T.right
  1734. },
  1735. H = t.modifiersData.offset;
  1736. if ("popper" === b && H) {
  1737. var j = H[f];
  1738. Object.keys(L).forEach(function (t) {
  1739. var e = 0 <= [ut, ct].indexOf(t) ? 1 : -1,
  1740. i = 0 <= [lt, ct].indexOf(t) ? "y" : "x";
  1741. L[t] += j[i] * e
  1742. })
  1743. }
  1744. return L
  1745. }
  1746. var ne = {
  1747. name: "flip",
  1748. enabled: !0,
  1749. phase: "main",
  1750. fn: function (t) {
  1751. var i = t.state,
  1752. e = t.options,
  1753. n = t.name;
  1754. if (!i.modifiersData[n]._skip) {
  1755. for (var s = e.mainAxis, o = void 0 === s || s, r = e.altAxis, a = void 0 === r || r, l = e.fallbackPlacements, c = e.padding, u = e.boundary, h = e.rootBoundary, d = e.altBoundary, p = e.flipVariations, f = void 0 === p || p, g = e.allowedAutoPlacements, m = i.options.placement, v = kt(m), _ = l || (v !== m && f ? function (t) {
  1756. if ("auto" === kt(t)) return [];
  1757. var e = Ut(t);
  1758. return [Vt(t), e, Vt(e)]
  1759. }(m) : [Ut(m)]), y = [m].concat(_).reduce(function (t, e) {
  1760. return t.concat("auto" === kt(e) ? function (i, t) {
  1761. void 0 === t && (t = {});
  1762. var e = t,
  1763. n = e.placement,
  1764. s = e.boundary,
  1765. o = e.rootBoundary,
  1766. r = e.padding,
  1767. a = e.flipVariations,
  1768. l = e.allowedAutoPlacements,
  1769. c = void 0 === l ? ft : l,
  1770. u = te(n),
  1771. h = u ? a ? pt : pt.filter(function (t) {
  1772. return te(t) === u
  1773. }) : dt,
  1774. d = h.filter(function (t) {
  1775. return 0 <= c.indexOf(t)
  1776. });
  1777. 0 === d.length && (d = h);
  1778. var p = d.reduce(function (t, e) {
  1779. return t[e] = ie(i, {
  1780. placement: e,
  1781. boundary: s,
  1782. rootBoundary: o,
  1783. padding: r
  1784. })[kt(e)], t
  1785. }, {});
  1786. return Object.keys(p).sort(function (t, e) {
  1787. return p[t] - p[e]
  1788. })
  1789. }(i, {
  1790. placement: e,
  1791. boundary: u,
  1792. rootBoundary: h,
  1793. padding: c,
  1794. flipVariations: f,
  1795. allowedAutoPlacements: g
  1796. }) : e)
  1797. }, []), b = i.rects.reference, w = i.rects.popper, k = new Map, x = !0, C = y[0], T = 0; T < y.length; T++) {
  1798. var S = y[T],
  1799. D = kt(S),
  1800. A = "start" === te(S),
  1801. E = 0 <= [lt, ct].indexOf(D),
  1802. P = E ? "width" : "height",
  1803. I = ie(i, {
  1804. placement: S,
  1805. boundary: u,
  1806. rootBoundary: h,
  1807. altBoundary: d,
  1808. padding: c
  1809. }),
  1810. O = E ? A ? ut : ht : A ? ct : lt;
  1811. b[P] > w[P] && (O = Ut(O));
  1812. var M = Ut(O),
  1813. N = [];
  1814. if (o && N.push(I[D] <= 0), a && N.push(I[O] <= 0, I[M] <= 0), N.every(function (t) {
  1815. return t
  1816. })) {
  1817. C = S, x = !1;
  1818. break
  1819. }
  1820. k.set(S, N)
  1821. }
  1822. if (x)
  1823. for (var L = function (i) {
  1824. var t = y.find(function (t) {
  1825. var e = k.get(t);
  1826. if (e) return e.slice(0, i).every(function (t) {
  1827. return t
  1828. })
  1829. });
  1830. if (t) return C = t, "break"
  1831. }, H = f ? 3 : 1; 0 < H && "break" !== L(H); H--);
  1832. i.placement !== C && (i.modifiersData[n]._skip = !0, i.placement = C, i.reset = !0)
  1833. }
  1834. },
  1835. requiresIfExists: ["offset"],
  1836. data: {
  1837. _skip: !1
  1838. }
  1839. };
  1840. function se(t, e, i) {
  1841. return void 0 === i && (i = {
  1842. x: 0,
  1843. y: 0
  1844. }), {
  1845. top: t.top - e.height - i.y,
  1846. right: t.right - e.width + i.x,
  1847. bottom: t.bottom - e.height + i.y,
  1848. left: t.left - e.width - i.x
  1849. }
  1850. }
  1851. function oe(e) {
  1852. return [lt, ut, ct, ht].some(function (t) {
  1853. return 0 <= e[t]
  1854. })
  1855. }
  1856. var re = {
  1857. name: "hide",
  1858. enabled: !0,
  1859. phase: "main",
  1860. requiresIfExists: ["preventOverflow"],
  1861. fn: function (t) {
  1862. var e = t.state,
  1863. i = t.name,
  1864. n = e.rects.reference,
  1865. s = e.rects.popper,
  1866. o = e.modifiersData.preventOverflow,
  1867. r = ie(e, {
  1868. elementContext: "reference"
  1869. }),
  1870. a = ie(e, {
  1871. altBoundary: !0
  1872. }),
  1873. l = se(r, n),
  1874. c = se(a, s, o),
  1875. u = oe(l),
  1876. h = oe(c);
  1877. e.modifiersData[i] = {
  1878. referenceClippingOffsets: l,
  1879. popperEscapeOffsets: c,
  1880. isReferenceHidden: u,
  1881. hasPopperEscaped: h
  1882. }, e.attributes.popper = Object.assign({}, e.attributes.popper, {
  1883. "data-popper-reference-hidden": u,
  1884. "data-popper-escaped": h
  1885. })
  1886. }
  1887. },
  1888. ae = {
  1889. name: "offset",
  1890. enabled: !0,
  1891. phase: "main",
  1892. requires: ["popperOffsets"],
  1893. fn: function (t) {
  1894. var u = t.state,
  1895. e = t.options,
  1896. i = t.name,
  1897. n = e.offset,
  1898. h = void 0 === n ? [0, 0] : n,
  1899. s = ft.reduce(function (t, e) {
  1900. return t[e] = (i = e, n = u.rects, s = h, o = kt(i), r = 0 <= [ht, lt].indexOf(o) ? -1 : 1, a = "function" == typeof s ? s(Object.assign({}, n, {
  1901. placement: i
  1902. })) : s, l = a[0], c = a[1], l = l || 0, c = (c || 0) * r, 0 <= [ht, ut].indexOf(o) ? {
  1903. x: c,
  1904. y: l
  1905. } : {
  1906. x: l,
  1907. y: c
  1908. }), t;
  1909. var i, n, s, o, r, a, l, c
  1910. }, {}),
  1911. o = s[u.placement],
  1912. r = o.x,
  1913. a = o.y;
  1914. null != u.modifiersData.popperOffsets && (u.modifiersData.popperOffsets.x += r, u.modifiersData.popperOffsets.y += a), u.modifiersData[i] = s
  1915. }
  1916. },
  1917. le = {
  1918. name: "popperOffsets",
  1919. enabled: !0,
  1920. phase: "read",
  1921. fn: function (t) {
  1922. var e = t.state,
  1923. i = t.name;
  1924. e.modifiersData[i] = ee({
  1925. reference: e.rects.reference,
  1926. element: e.rects.popper,
  1927. strategy: "absolute",
  1928. placement: e.placement
  1929. })
  1930. },
  1931. data: {}
  1932. },
  1933. ce = {
  1934. name: "preventOverflow",
  1935. enabled: !0,
  1936. phase: "main",
  1937. fn: function (t) {
  1938. var e = t.state,
  1939. i = t.options,
  1940. n = t.name,
  1941. s = i.mainAxis,
  1942. o = void 0 === s || s,
  1943. r = i.altAxis,
  1944. a = void 0 !== r && r,
  1945. l = i.boundary,
  1946. c = i.rootBoundary,
  1947. u = i.altBoundary,
  1948. h = i.padding,
  1949. d = i.tether,
  1950. p = void 0 === d || d,
  1951. f = i.tetherOffset,
  1952. g = void 0 === f ? 0 : f,
  1953. m = ie(e, {
  1954. boundary: l,
  1955. rootBoundary: c,
  1956. padding: h,
  1957. altBoundary: u
  1958. }),
  1959. v = kt(e.placement),
  1960. _ = te(e.placement),
  1961. y = !_,
  1962. b = It(v),
  1963. w = "x" === b ? "y" : "x",
  1964. k = e.modifiersData.popperOffsets,
  1965. x = e.rects.reference,
  1966. C = e.rects.popper,
  1967. T = "function" == typeof g ? g(Object.assign({}, e.rects, {
  1968. placement: e.placement
  1969. })) : g,
  1970. S = {
  1971. x: 0,
  1972. y: 0
  1973. };
  1974. if (k) {
  1975. if (o || a) {
  1976. var D = "y" === b ? lt : ht,
  1977. A = "y" === b ? ct : ut,
  1978. E = "y" === b ? "height" : "width",
  1979. P = k[b],
  1980. I = k[b] + m[D],
  1981. O = k[b] - m[A],
  1982. M = p ? -C[E] / 2 : 0,
  1983. N = "start" === _ ? x[E] : C[E],
  1984. L = "start" === _ ? -C[E] : -x[E],
  1985. H = e.elements.arrow,
  1986. j = p && H ? Ct(H) : {
  1987. width: 0,
  1988. height: 0
  1989. },
  1990. z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : {
  1991. top: 0,
  1992. right: 0,
  1993. bottom: 0,
  1994. left: 0
  1995. },
  1996. W = z[D],
  1997. $ = z[A],
  1998. R = Lt(0, x[E], j[E]),
  1999. F = y ? x[E] / 2 - M - R - W - T : N - R - W - T,
  2000. q = y ? -x[E] / 2 + M + R + $ + T : L + R + $ + T,
  2001. B = e.elements.arrow && Pt(e.elements.arrow),
  2002. U = B ? "y" === b ? B.clientTop || 0 : B.clientLeft || 0 : 0,
  2003. Y = e.modifiersData.offset ? e.modifiersData.offset[e.placement][b] : 0,
  2004. V = k[b] + F - Y - U,
  2005. K = k[b] + q - Y;
  2006. if (o) {
  2007. var X = Lt(p ? Mt(I, V) : I, P, p ? Ot(O, K) : O);
  2008. k[b] = X, S[b] = X - P
  2009. }
  2010. if (a) {
  2011. var Q = "x" === b ? lt : ht,
  2012. G = "x" === b ? ct : ut,
  2013. J = k[w],
  2014. Z = J + m[Q],
  2015. tt = J - m[G],
  2016. et = Lt(p ? Mt(Z, V) : Z, J, p ? Ot(tt, K) : tt);
  2017. k[w] = et, S[w] = et - J
  2018. }
  2019. }
  2020. e.modifiersData[n] = S
  2021. }
  2022. },
  2023. requiresIfExists: ["offset"]
  2024. };
  2025. var ue = {
  2026. placement: "bottom",
  2027. modifiers: [],
  2028. strategy: "absolute"
  2029. };
  2030. function he() {
  2031. for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++) e[i] = arguments[i];
  2032. return !e.some(function (t) {
  2033. return !(t && "function" == typeof t.getBoundingClientRect)
  2034. })
  2035. }
  2036. function de(t) {
  2037. void 0 === t && (t = {});
  2038. var e = t,
  2039. i = e.defaultModifiers,
  2040. m = void 0 === i ? [] : i,
  2041. n = e.defaultOptions,
  2042. v = void 0 === n ? ue : n;
  2043. return function (u, h, e) {
  2044. void 0 === e && (e = v);
  2045. var i, n, d = {
  2046. placement: "bottom",
  2047. orderedModifiers: [],
  2048. options: Object.assign({}, ue, v),
  2049. modifiersData: {},
  2050. elements: {
  2051. reference: u,
  2052. popper: h
  2053. },
  2054. attributes: {},
  2055. styles: {}
  2056. },
  2057. p = [],
  2058. c = !1,
  2059. f = {
  2060. state: d,
  2061. setOptions: function (t) {
  2062. g(), d.options = Object.assign({}, v, d.options, t), d.scrollParents = {
  2063. reference: _t(u) ? Gt(u) : u.contextElement ? Gt(u.contextElement) : [],
  2064. popper: Gt(h)
  2065. };
  2066. var e, i, n, s, o, r, a, l, c = (e = [].concat(m, d.options.modifiers), i = e.reduce(function (t, e) {
  2067. var i = t[e.name];
  2068. return t[e.name] = i ? Object.assign({}, i, e, {
  2069. options: Object.assign({}, i.options, e.options),
  2070. data: Object.assign({}, i.data, e.data)
  2071. }) : e, t
  2072. }, {}), n = Object.keys(i).map(function (t) {
  2073. return i[t]
  2074. }), s = n, o = new Map, r = new Set, a = [], s.forEach(function (t) {
  2075. o.set(t.name, t)
  2076. }), s.forEach(function (t) {
  2077. r.has(t.name) || function i(t) {
  2078. r.add(t.name), [].concat(t.requires || [], t.requiresIfExists || []).forEach(function (t) {
  2079. if (!r.has(t)) {
  2080. var e = o.get(t);
  2081. e && i(e)
  2082. }
  2083. }), a.push(t)
  2084. }(t)
  2085. }), l = a, gt.reduce(function (t, e) {
  2086. return t.concat(l.filter(function (t) {
  2087. return t.phase === e
  2088. }))
  2089. }, []));
  2090. return d.orderedModifiers = c.filter(function (t) {
  2091. return t.enabled
  2092. }), d.orderedModifiers.forEach(function (t) {
  2093. var e = t.name,
  2094. i = t.options,
  2095. n = void 0 === i ? {} : i,
  2096. s = t.effect;
  2097. if ("function" == typeof s) {
  2098. var o = s({
  2099. state: d,
  2100. name: e,
  2101. instance: f,
  2102. options: n
  2103. });
  2104. p.push(o || function () {})
  2105. }
  2106. }), f.update()
  2107. },
  2108. forceUpdate: function () {
  2109. if (!c) {
  2110. var t = d.elements,
  2111. e = t.reference,
  2112. i = t.popper;
  2113. if (he(e, i)) {
  2114. d.rects = {
  2115. reference: function (t, e, i) {
  2116. void 0 === i && (i = !1);
  2117. var n, s, o = Dt(e),
  2118. r = xt(t),
  2119. a = yt(e),
  2120. l = {
  2121. scrollLeft: 0,
  2122. scrollTop: 0
  2123. },
  2124. c = {
  2125. x: 0,
  2126. y: 0
  2127. };
  2128. return (a || !a && !i) && (("body" !== mt(e) || Qt(o)) && (l = (n = e) !== vt(n) && yt(n) ? {
  2129. scrollLeft: (s = n).scrollLeft,
  2130. scrollTop: s.scrollTop
  2131. } : Kt(n)), yt(e) ? ((c = xt(e)).x += e.clientLeft, c.y += e.clientTop) : o && (c.x = Xt(o))), {
  2132. x: r.left + l.scrollLeft - c.x,
  2133. y: r.top + l.scrollTop - c.y,
  2134. width: r.width,
  2135. height: r.height
  2136. }
  2137. }(e, Pt(i), "fixed" === d.options.strategy),
  2138. popper: Ct(i)
  2139. }, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function (t) {
  2140. return d.modifiersData[t.name] = Object.assign({}, t.data)
  2141. });
  2142. for (var n = 0; n < d.orderedModifiers.length; n++)
  2143. if (!0 !== d.reset) {
  2144. var s = d.orderedModifiers[n],
  2145. o = s.fn,
  2146. r = s.options,
  2147. a = void 0 === r ? {} : r,
  2148. l = s.name;
  2149. "function" == typeof o && (d = o({
  2150. state: d,
  2151. options: a,
  2152. name: l,
  2153. instance: f
  2154. }) || d)
  2155. } else d.reset = !1, n = -1
  2156. }
  2157. }
  2158. },
  2159. update: (i = function () {
  2160. return new Promise(function (t) {
  2161. f.forceUpdate(), t(d)
  2162. })
  2163. }, function () {
  2164. return n || (n = new Promise(function (t) {
  2165. Promise.resolve().then(function () {
  2166. n = void 0, t(i())
  2167. })
  2168. })), n
  2169. }),
  2170. destroy: function () {
  2171. g(), c = !0
  2172. }
  2173. };
  2174. if (!he(u, h)) return f;
  2175. function g() {
  2176. p.forEach(function (t) {
  2177. return t()
  2178. }), p = []
  2179. }
  2180. return f.setOptions(e).then(function (t) {
  2181. !c && e.onFirstUpdate && e.onFirstUpdate(t)
  2182. }), f
  2183. }
  2184. }
  2185. var pe = de(),
  2186. fe = de({
  2187. defaultModifiers: [qt, le, Rt, wt]
  2188. }),
  2189. ge = de({
  2190. defaultModifiers: [qt, le, Rt, wt, ae, ne, ce, zt, re]
  2191. }),
  2192. me = Object.freeze({
  2193. __proto__: null,
  2194. popperGenerator: de,
  2195. detectOverflow: ie,
  2196. createPopperBase: pe,
  2197. createPopper: ge,
  2198. createPopperLite: fe,
  2199. top: lt,
  2200. bottom: ct,
  2201. right: ut,
  2202. left: ht,
  2203. auto: "auto",
  2204. basePlacements: dt,
  2205. start: "start",
  2206. end: "end",
  2207. clippingParents: "clippingParents",
  2208. viewport: "viewport",
  2209. popper: "popper",
  2210. reference: "reference",
  2211. variationPlacements: pt,
  2212. placements: ft,
  2213. beforeRead: "beforeRead",
  2214. read: "read",
  2215. afterRead: "afterRead",
  2216. beforeMain: "beforeMain",
  2217. main: "main",
  2218. afterMain: "afterMain",
  2219. beforeWrite: "beforeWrite",
  2220. write: "write",
  2221. afterWrite: "afterWrite",
  2222. modifierPhases: gt,
  2223. applyStyles: wt,
  2224. arrow: zt,
  2225. computeStyles: Rt,
  2226. eventListeners: qt,
  2227. flip: ne,
  2228. hide: re,
  2229. offset: ae,
  2230. popperOffsets: le,
  2231. preventOverflow: ce
  2232. }),
  2233. ve = new RegExp("ArrowUp|ArrowDown|Escape"),
  2234. _e = l() ? "top-end" : "top-start",
  2235. ye = l() ? "top-start" : "top-end",
  2236. be = l() ? "bottom-end" : "bottom-start",
  2237. we = l() ? "bottom-start" : "bottom-end",
  2238. ke = l() ? "left-start" : "right-start",
  2239. xe = l() ? "right-start" : "left-start",
  2240. Ce = {
  2241. offset: [0, 2],
  2242. boundary: "clippingParents",
  2243. reference: "toggle",
  2244. display: "dynamic",
  2245. popperConfig: null,
  2246. autoClose: !0
  2247. },
  2248. Te = {
  2249. offset: "(array|string|function)",
  2250. boundary: "(string|element)",
  2251. reference: "(string|element|object)",
  2252. display: "string",
  2253. popperConfig: "(null|object|function)",
  2254. autoClose: "(boolean|string)"
  2255. },
  2256. Se = function (t) {
  2257. _inherits(l, U);
  2258. var n = _createSuper(l);
  2259. function l(t, e) {
  2260. var i;
  2261. return _classCallCheck(this, l), (i = n.call(this, t))._popper = null, i._config = i._getConfig(e), i._menu = i._getMenuElement(), i._inNavbar = i._detectNavbar(), i._addEventListeners(), i
  2262. }
  2263. return _createClass(l, [{
  2264. key: "toggle",
  2265. value: function () {
  2266. u(this._element) || (this._element.classList.contains("show") ? this.hide() : this.show())
  2267. }
  2268. }, {
  2269. key: "show",
  2270. value: function () {
  2271. if (!u(this._element) && !this._menu.classList.contains("show")) {
  2272. var t = l.getParentFromElement(this._element),
  2273. e = {
  2274. relatedTarget: this._element
  2275. };
  2276. if (!$.trigger(this._element, "show.bs.dropdown", e).defaultPrevented) {
  2277. var i;
  2278. if (this._inNavbar) Q.setDataAttribute(this._menu, "popper", "none");
  2279. else {
  2280. if (void 0 === me) throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");
  2281. var n = this._element;
  2282. "parent" === this._config.reference ? n = t : c(this._config.reference) ? n = r(this._config.reference) : "object" == _typeof(this._config.reference) && (n = this._config.reference);
  2283. var s = this._getPopperConfig(),
  2284. o = s.modifiers.find(function (t) {
  2285. return "applyStyles" === t.name && !1 === t.enabled
  2286. });
  2287. this._popper = ge(n, this._menu, s), o && Q.setDataAttribute(this._menu, "popper", "static")
  2288. }
  2289. "ontouchstart" in document.documentElement && !t.closest(".navbar-nav") && (i = []).concat.apply(i, _toConsumableArray(document.body.children)).forEach(function (t) {
  2290. return $.on(t, "mouseover", f)
  2291. }), this._element.focus(), this._element.setAttribute("aria-expanded", !0), this._menu.classList.toggle("show"), this._element.classList.toggle("show"), $.trigger(this._element, "shown.bs.dropdown", e)
  2292. }
  2293. }
  2294. }
  2295. }, {
  2296. key: "hide",
  2297. value: function () {
  2298. if (!u(this._element) && this._menu.classList.contains("show")) {
  2299. var t = {
  2300. relatedTarget: this._element
  2301. };
  2302. this._completeHide(t)
  2303. }
  2304. }
  2305. }, {
  2306. key: "dispose",
  2307. value: function () {
  2308. this._popper && this._popper.destroy(), _get(_getPrototypeOf(l.prototype), "dispose", this).call(this)
  2309. }
  2310. }, {
  2311. key: "update",
  2312. value: function () {
  2313. this._inNavbar = this._detectNavbar(), this._popper && this._popper.update()
  2314. }
  2315. }, {
  2316. key: "_addEventListeners",
  2317. value: function () {
  2318. var e = this;
  2319. $.on(this._element, "click.bs.dropdown", function (t) {
  2320. t.preventDefault(), e.toggle()
  2321. })
  2322. }
  2323. }, {
  2324. key: "_completeHide",
  2325. value: function (t) {
  2326. var e;
  2327. $.trigger(this._element, "hide.bs.dropdown", t).defaultPrevented || ("ontouchstart" in document.documentElement && (e = []).concat.apply(e, _toConsumableArray(document.body.children)).forEach(function (t) {
  2328. return $.off(t, "mouseover", f)
  2329. }), this._popper && this._popper.destroy(), this._menu.classList.remove("show"), this._element.classList.remove("show"), this._element.setAttribute("aria-expanded", "false"), Q.removeDataAttribute(this._menu, "popper"), $.trigger(this._element, "hidden.bs.dropdown", t))
  2330. }
  2331. }, {
  2332. key: "_getConfig",
  2333. value: function (t) {
  2334. if (t = _objectSpread(_objectSpread(_objectSpread({}, this.constructor.Default), Q.getDataAttributes(this._element)), t), d("dropdown", t, this.constructor.DefaultType), "object" == _typeof(t.reference) && !c(t.reference) && "function" != typeof t.reference.getBoundingClientRect) throw new TypeError("dropdown".toUpperCase() + ': Option "reference" provided type "object" without a required "getBoundingClientRect" method.');
  2335. return t
  2336. }
  2337. }, {
  2338. key: "_getMenuElement",
  2339. value: function () {
  2340. return x(this._element, ".dropdown-menu")[0]
  2341. }
  2342. }, {
  2343. key: "_getPlacement",
  2344. value: function () {
  2345. var t = this._element.parentNode;
  2346. if (t.classList.contains("dropend")) return ke;
  2347. if (t.classList.contains("dropstart")) return xe;
  2348. var e = "end" === getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();
  2349. return t.classList.contains("dropup") ? e ? ye : _e : e ? we : be
  2350. }
  2351. }, {
  2352. key: "_detectNavbar",
  2353. value: function () {
  2354. return null !== this._element.closest(".navbar")
  2355. }
  2356. }, {
  2357. key: "_getOffset",
  2358. value: function () {
  2359. var e = this,
  2360. i = this._config.offset;
  2361. return "string" == typeof i ? i.split(",").map(function (t) {
  2362. return Number.parseInt(t, 10)
  2363. }) : "function" == typeof i ? function (t) {
  2364. return i(t, e._element)
  2365. } : i
  2366. }
  2367. }, {
  2368. key: "_getPopperConfig",
  2369. value: function () {
  2370. var t = {
  2371. placement: this._getPlacement(),
  2372. modifiers: [{
  2373. name: "preventOverflow",
  2374. options: {
  2375. boundary: this._config.boundary
  2376. }
  2377. }, {
  2378. name: "offset",
  2379. options: {
  2380. offset: this._getOffset()
  2381. }
  2382. }]
  2383. };
  2384. return "static" === this._config.display && (t.modifiers = [{
  2385. name: "applyStyles",
  2386. enabled: !1
  2387. }]), _objectSpread(_objectSpread({}, t), "function" == typeof this._config.popperConfig ? this._config.popperConfig(t) : this._config.popperConfig)
  2388. }
  2389. }, {
  2390. key: "_selectMenuItem",
  2391. value: function (t) {
  2392. var e = t.key,
  2393. i = t.target,
  2394. n = _(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)", this._menu).filter(s);
  2395. n.length && v(n, i, "ArrowDown" === e, !n.includes(i)).focus()
  2396. }
  2397. }], [{
  2398. key: "dropdownInterface",
  2399. value: function (t, e) {
  2400. var i = l.getOrCreateInstance(t, e);
  2401. if ("string" == typeof e) {
  2402. if (void 0 === i[e]) throw new TypeError('No method named "'.concat(e, '"'));
  2403. i[e]()
  2404. }
  2405. }
  2406. }, {
  2407. key: "jQueryInterface",
  2408. value: function (t) {
  2409. return this.each(function () {
  2410. l.dropdownInterface(this, t)
  2411. })
  2412. }
  2413. }, {
  2414. key: "clearMenus",
  2415. value: function (t) {
  2416. if (!t || 2 !== t.button && ("keyup" !== t.type || "Tab" === t.key))
  2417. for (var e = _('[data-bs-toggle="dropdown"]'), i = 0, n = e.length; i < n; i++) {
  2418. var s = l.getInstance(e[i]);
  2419. if (s && !1 !== s._config.autoClose && s._element.classList.contains("show")) {
  2420. var o = {
  2421. relatedTarget: s._element
  2422. };
  2423. if (t) {
  2424. var r = t.composedPath(),
  2425. a = r.includes(s._menu);
  2426. if (r.includes(s._element) || "inside" === s._config.autoClose && !a || "outside" === s._config.autoClose && a) continue;
  2427. if (s._menu.contains(t.target) && ("keyup" === t.type && "Tab" === t.key || /input|select|option|textarea|form/i.test(t.target.tagName))) continue;
  2428. "click" === t.type && (o.clickEvent = t)
  2429. }
  2430. s._completeHide(o)
  2431. }
  2432. }
  2433. }
  2434. }, {
  2435. key: "getParentFromElement",
  2436. value: function (t) {
  2437. return a(t) || t.parentNode
  2438. }
  2439. }, {
  2440. key: "dataApiKeydownHandler",
  2441. value: function (t) {
  2442. var e = this;
  2443. if (/input|textarea/i.test(t.target.tagName) ? !("Space" === t.key || "Escape" !== t.key && ("ArrowDown" !== t.key && "ArrowUp" !== t.key || t.target.closest(".dropdown-menu"))) : ve.test(t.key)) {
  2444. var i = this.classList.contains("show");
  2445. if ((i || "Escape" !== t.key) && (t.preventDefault(), t.stopPropagation(), !u(this))) {
  2446. var n = function () {
  2447. return e.matches('[data-bs-toggle="dropdown"]') ? e : k(e, '[data-bs-toggle="dropdown"]')[0]
  2448. };
  2449. return "Escape" === t.key ? (n().focus(), void l.clearMenus()) : "ArrowUp" === t.key || "ArrowDown" === t.key ? (i || n().click(), void l.getInstance(n())._selectMenuItem(t)) : void(i && "Space" !== t.key || l.clearMenus())
  2450. }
  2451. }
  2452. }
  2453. }, {
  2454. key: "Default",
  2455. get: function () {
  2456. return Ce
  2457. }
  2458. }, {
  2459. key: "DefaultType",
  2460. get: function () {
  2461. return Te
  2462. }
  2463. }, {
  2464. key: "NAME",
  2465. get: function () {
  2466. return "dropdown"
  2467. }
  2468. }]), l
  2469. }();
  2470. $.on(document, "keydown.bs.dropdown.data-api", '[data-bs-toggle="dropdown"]', Se.dataApiKeydownHandler), $.on(document, "keydown.bs.dropdown.data-api", ".dropdown-menu", Se.dataApiKeydownHandler), $.on(document, "click.bs.dropdown.data-api", Se.clearMenus), $.on(document, "keyup.bs.dropdown.data-api", Se.clearMenus), $.on(document, "click.bs.dropdown.data-api", '[data-bs-toggle="dropdown"]', function (t) {
  2471. t.preventDefault(), Se.dropdownInterface(this)
  2472. }), t(Se);
  2473. var De = function () {
  2474. function t() {
  2475. _classCallCheck(this, t), this._element = document.body
  2476. }
  2477. return _createClass(t, [{
  2478. key: "getWidth",
  2479. value: function () {
  2480. var t = document.documentElement.clientWidth;
  2481. return Math.abs(window.innerWidth - t)
  2482. }
  2483. }, {
  2484. key: "hide",
  2485. value: function () {
  2486. var e = this.getWidth();
  2487. this._disableOverFlow(), this._setElementAttributes(this._element, "paddingRight", function (t) {
  2488. return t + e
  2489. }), this._setElementAttributes(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top", "paddingRight", function (t) {
  2490. return t + e
  2491. }), this._setElementAttributes(".sticky-top", "marginRight", function (t) {
  2492. return t - e
  2493. })
  2494. }
  2495. }, {
  2496. key: "_disableOverFlow",
  2497. value: function () {
  2498. this._saveInitialAttribute(this._element, "overflow"), this._element.style.overflow = "hidden"
  2499. }
  2500. }, {
  2501. key: "_setElementAttributes",
  2502. value: function (t, i, n) {
  2503. var s = this,
  2504. o = this.getWidth();
  2505. this._applyManipulationCallback(t, function (t) {
  2506. if (!(t !== s._element && window.innerWidth > t.clientWidth + o)) {
  2507. s._saveInitialAttribute(t, i);
  2508. var e = window.getComputedStyle(t)[i];
  2509. t.style[i] = n(Number.parseFloat(e)) + "px"
  2510. }
  2511. })
  2512. }
  2513. }, {
  2514. key: "reset",
  2515. value: function () {
  2516. this._resetElementAttributes(this._element, "overflow"), this._resetElementAttributes(this._element, "paddingRight"), this._resetElementAttributes(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top", "paddingRight"), this._resetElementAttributes(".sticky-top", "marginRight")
  2517. }
  2518. }, {
  2519. key: "_saveInitialAttribute",
  2520. value: function (t, e) {
  2521. var i = t.style[e];
  2522. i && Q.setDataAttribute(t, e, i)
  2523. }
  2524. }, {
  2525. key: "_resetElementAttributes",
  2526. value: function (t, i) {
  2527. this._applyManipulationCallback(t, function (t) {
  2528. var e = Q.getDataAttribute(t, i);
  2529. void 0 === e ? t.style.removeProperty(i) : (Q.removeDataAttribute(t, i), t.style[i] = e)
  2530. })
  2531. }
  2532. }, {
  2533. key: "_applyManipulationCallback",
  2534. value: function (t, e) {
  2535. c(t) ? e(t) : _(t, this._element).forEach(e)
  2536. }
  2537. }, {
  2538. key: "isOverflowing",
  2539. value: function () {
  2540. return 0 < this.getWidth()
  2541. }
  2542. }]), t
  2543. }(),
  2544. Ae = {
  2545. isVisible: !0,
  2546. isAnimated: !1,
  2547. rootElement: "body",
  2548. clickCallback: null
  2549. },
  2550. Ee = {
  2551. isVisible: "boolean",
  2552. isAnimated: "boolean",
  2553. rootElement: "(element|string)",
  2554. clickCallback: "(function|null)"
  2555. },
  2556. Pe = function () {
  2557. function e(t) {
  2558. _classCallCheck(this, e), this._config = this._getConfig(t), this._isAppended = !1, this._element = null
  2559. }
  2560. return _createClass(e, [{
  2561. key: "show",
  2562. value: function (t) {
  2563. this._config.isVisible ? (this._append(), this._config.isAnimated && g(this._getElement()), this._getElement().classList.add("show"), this._emulateAnimation(function () {
  2564. o(t)
  2565. })) : o(t)
  2566. }
  2567. }, {
  2568. key: "hide",
  2569. value: function (t) {
  2570. var e = this;
  2571. this._config.isVisible ? (this._getElement().classList.remove("show"), this._emulateAnimation(function () {
  2572. e.dispose(), o(t)
  2573. })) : o(t)
  2574. }
  2575. }, {
  2576. key: "_getElement",
  2577. value: function () {
  2578. if (!this._element) {
  2579. var t = document.createElement("div");
  2580. t.className = "modal-backdrop", this._config.isAnimated && t.classList.add("fade"), this._element = t
  2581. }
  2582. return this._element
  2583. }
  2584. }, {
  2585. key: "_getConfig",
  2586. value: function (t) {
  2587. return (t = _objectSpread(_objectSpread({}, Ae), "object" == _typeof(t) ? t : {})).rootElement = r(t.rootElement), d("backdrop", t, Ee), t
  2588. }
  2589. }, {
  2590. key: "_append",
  2591. value: function () {
  2592. var t = this;
  2593. this._isAppended || (this._config.rootElement.appendChild(this._getElement()), $.on(this._getElement(), "mousedown.bs.backdrop", function () {
  2594. o(t._config.clickCallback)
  2595. }), this._isAppended = !0)
  2596. }
  2597. }, {
  2598. key: "dispose",
  2599. value: function () {
  2600. this._isAppended && ($.off(this._element, "mousedown.bs.backdrop"), this._element.remove(), this._isAppended = !1)
  2601. }
  2602. }, {
  2603. key: "_emulateAnimation",
  2604. value: function (t) {
  2605. n(t, this._getElement(), this._config.isAnimated)
  2606. }
  2607. }]), e
  2608. }(),
  2609. Ie = {
  2610. backdrop: !0,
  2611. keyboard: !0,
  2612. focus: !0
  2613. },
  2614. Oe = {
  2615. backdrop: "(boolean|string)",
  2616. keyboard: "boolean",
  2617. focus: "boolean"
  2618. },
  2619. Me = function (t) {
  2620. _inherits(s, U);
  2621. var n = _createSuper(s);
  2622. function s(t, e) {
  2623. var i;
  2624. return _classCallCheck(this, s), (i = n.call(this, t))._config = i._getConfig(e), i._dialog = y(".modal-dialog", i._element), i._backdrop = i._initializeBackDrop(), i._isShown = !1, i._ignoreBackdropClick = !1, i._isTransitioning = !1, i._scrollBar = new De, i
  2625. }
  2626. return _createClass(s, [{
  2627. key: "toggle",
  2628. value: function (t) {
  2629. return this._isShown ? this.hide() : this.show(t)
  2630. }
  2631. }, {
  2632. key: "show",
  2633. value: function (t) {
  2634. var e = this;
  2635. this._isShown || this._isTransitioning || $.trigger(this._element, "show.bs.modal", {
  2636. relatedTarget: t
  2637. }).defaultPrevented || (this._isShown = !0, this._isAnimated() && (this._isTransitioning = !0), this._scrollBar.hide(), document.body.classList.add("modal-open"), this._adjustDialog(), this._setEscapeEvent(), this._setResizeEvent(), $.on(this._element, "click.dismiss.bs.modal", '[data-bs-dismiss="modal"]', function (t) {
  2638. return e.hide(t)
  2639. }), $.on(this._dialog, "mousedown.dismiss.bs.modal", function () {
  2640. $.one(e._element, "mouseup.dismiss.bs.modal", function (t) {
  2641. t.target === e._element && (e._ignoreBackdropClick = !0)
  2642. })
  2643. }), this._showBackdrop(function () {
  2644. return e._showElement(t)
  2645. }))
  2646. }
  2647. }, {
  2648. key: "hide",
  2649. value: function (t) {
  2650. var e = this;
  2651. if (t && ["A", "AREA"].includes(t.target.tagName) && t.preventDefault(), this._isShown && !this._isTransitioning && !$.trigger(this._element, "hide.bs.modal").defaultPrevented) {
  2652. this._isShown = !1;
  2653. var i = this._isAnimated();
  2654. i && (this._isTransitioning = !0), this._setEscapeEvent(), this._setResizeEvent(), $.off(document, "focusin.bs.modal"), this._element.classList.remove("show"), $.off(this._element, "click.dismiss.bs.modal"), $.off(this._dialog, "mousedown.dismiss.bs.modal"), this._queueCallback(function () {
  2655. return e._hideModal()
  2656. }, this._element, i)
  2657. }
  2658. }
  2659. }, {
  2660. key: "dispose",
  2661. value: function () {
  2662. [window, this._dialog].forEach(function (t) {
  2663. return $.off(t, ".bs.modal")
  2664. }), this._backdrop.dispose(), _get(_getPrototypeOf(s.prototype), "dispose", this).call(this), $.off(document, "focusin.bs.modal")
  2665. }
  2666. }, {
  2667. key: "handleUpdate",
  2668. value: function () {
  2669. this._adjustDialog()
  2670. }
  2671. }, {
  2672. key: "_initializeBackDrop",
  2673. value: function () {
  2674. return new Pe({
  2675. isVisible: Boolean(this._config.backdrop),
  2676. isAnimated: this._isAnimated()
  2677. })
  2678. }
  2679. }, {
  2680. key: "_getConfig",
  2681. value: function (t) {
  2682. return t = _objectSpread(_objectSpread(_objectSpread({}, Ie), Q.getDataAttributes(this._element)), "object" == _typeof(t) ? t : {}), d("modal", t, Oe), t
  2683. }
  2684. }, {
  2685. key: "_showElement",
  2686. value: function (t) {
  2687. var e = this,
  2688. i = this._isAnimated(),
  2689. n = y(".modal-body", this._dialog);
  2690. this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE || document.body.appendChild(this._element), this._element.style.display = "block", this._element.removeAttribute("aria-hidden"), this._element.setAttribute("aria-modal", !0), this._element.setAttribute("role", "dialog"), this._element.scrollTop = 0, n && (n.scrollTop = 0), i && g(this._element), this._element.classList.add("show"), this._config.focus && this._enforceFocus(), this._queueCallback(function () {
  2691. e._config.focus && e._element.focus(), e._isTransitioning = !1, $.trigger(e._element, "shown.bs.modal", {
  2692. relatedTarget: t
  2693. })
  2694. }, this._dialog, i)
  2695. }
  2696. }, {
  2697. key: "_enforceFocus",
  2698. value: function () {
  2699. var e = this;
  2700. $.off(document, "focusin.bs.modal"), $.on(document, "focusin.bs.modal", function (t) {
  2701. document === t.target || e._element === t.target || e._element.contains(t.target) || e._element.focus()
  2702. })
  2703. }
  2704. }, {
  2705. key: "_setEscapeEvent",
  2706. value: function () {
  2707. var e = this;
  2708. this._isShown ? $.on(this._element, "keydown.dismiss.bs.modal", function (t) {
  2709. e._config.keyboard && "Escape" === t.key ? (t.preventDefault(), e.hide()) : e._config.keyboard || "Escape" !== t.key || e._triggerBackdropTransition()
  2710. }) : $.off(this._element, "keydown.dismiss.bs.modal")
  2711. }
  2712. }, {
  2713. key: "_setResizeEvent",
  2714. value: function () {
  2715. var t = this;
  2716. this._isShown ? $.on(window, "resize.bs.modal", function () {
  2717. return t._adjustDialog()
  2718. }) : $.off(window, "resize.bs.modal")
  2719. }
  2720. }, {
  2721. key: "_hideModal",
  2722. value: function () {
  2723. var t = this;
  2724. this._element.style.display = "none", this._element.setAttribute("aria-hidden", !0), this._element.removeAttribute("aria-modal"), this._element.removeAttribute("role"), this._isTransitioning = !1, this._backdrop.hide(function () {
  2725. document.body.classList.remove("modal-open"), t._resetAdjustments(), t._scrollBar.reset(), $.trigger(t._element, "hidden.bs.modal")
  2726. })
  2727. }
  2728. }, {
  2729. key: "_showBackdrop",
  2730. value: function (t) {
  2731. var e = this;
  2732. $.on(this._element, "click.dismiss.bs.modal", function (t) {
  2733. e._ignoreBackdropClick ? e._ignoreBackdropClick = !1 : t.target === t.currentTarget && (!0 === e._config.backdrop ? e.hide() : "static" === e._config.backdrop && e._triggerBackdropTransition())
  2734. }), this._backdrop.show(t)
  2735. }
  2736. }, {
  2737. key: "_isAnimated",
  2738. value: function () {
  2739. return this._element.classList.contains("fade")
  2740. }
  2741. }, {
  2742. key: "_triggerBackdropTransition",
  2743. value: function () {
  2744. var t = this;
  2745. if (!$.trigger(this._element, "hidePrevented.bs.modal").defaultPrevented) {
  2746. var e = this._element,
  2747. i = e.classList,
  2748. n = e.scrollHeight,
  2749. s = e.style,
  2750. o = n > document.documentElement.clientHeight;
  2751. !o && "hidden" === s.overflowY || i.contains("modal-static") || (o || (s.overflowY = "hidden"), i.add("modal-static"), this._queueCallback(function () {
  2752. i.remove("modal-static"), o || t._queueCallback(function () {
  2753. s.overflowY = ""
  2754. }, t._dialog)
  2755. }, this._dialog), this._element.focus())
  2756. }
  2757. }
  2758. }, {
  2759. key: "_adjustDialog",
  2760. value: function () {
  2761. var t = this._element.scrollHeight > document.documentElement.clientHeight,
  2762. e = this._scrollBar.getWidth(),
  2763. i = 0 < e;
  2764. (!i && t && !l() || i && !t && l()) && (this._element.style.paddingLeft = e + "px"), (i && !t && !l() || !i && t && l()) && (this._element.style.paddingRight = e + "px")
  2765. }
  2766. }, {
  2767. key: "_resetAdjustments",
  2768. value: function () {
  2769. this._element.style.paddingLeft = "", this._element.style.paddingRight = ""
  2770. }
  2771. }], [{
  2772. key: "jQueryInterface",
  2773. value: function (e, i) {
  2774. return this.each(function () {
  2775. var t = s.getOrCreateInstance(this, e);
  2776. if ("string" == typeof e) {
  2777. if (void 0 === t[e]) throw new TypeError('No method named "'.concat(e, '"'));
  2778. t[e](i)
  2779. }
  2780. })
  2781. }
  2782. }, {
  2783. key: "Default",
  2784. get: function () {
  2785. return Ie
  2786. }
  2787. }, {
  2788. key: "NAME",
  2789. get: function () {
  2790. return "modal"
  2791. }
  2792. }]), s
  2793. }();
  2794. $.on(document, "click.bs.modal.data-api", '[data-bs-toggle="modal"]', function (t) {
  2795. var e = this,
  2796. i = a(this);
  2797. ["A", "AREA"].includes(this.tagName) && t.preventDefault(), $.one(i, "show.bs.modal", function (t) {
  2798. t.defaultPrevented || $.one(i, "hidden.bs.modal", function () {
  2799. s(e) && e.focus()
  2800. })
  2801. }), Me.getOrCreateInstance(i).toggle(this)
  2802. }), t(Me);
  2803. var Ne = {
  2804. backdrop: !0,
  2805. keyboard: !0,
  2806. scroll: !1
  2807. },
  2808. Le = {
  2809. backdrop: "boolean",
  2810. keyboard: "boolean",
  2811. scroll: "boolean"
  2812. },
  2813. He = function (t) {
  2814. _inherits(s, U);
  2815. var n = _createSuper(s);
  2816. function s(t, e) {
  2817. var i;
  2818. return _classCallCheck(this, s), (i = n.call(this, t))._config = i._getConfig(e), i._isShown = !1, i._backdrop = i._initializeBackDrop(), i._addEventListeners(), i
  2819. }
  2820. return _createClass(s, [{
  2821. key: "toggle",
  2822. value: function (t) {
  2823. return this._isShown ? this.hide() : this.show(t)
  2824. }
  2825. }, {
  2826. key: "show",
  2827. value: function (t) {
  2828. var e = this;
  2829. this._isShown || $.trigger(this._element, "show.bs.offcanvas", {
  2830. relatedTarget: t
  2831. }).defaultPrevented || (this._isShown = !0, this._element.style.visibility = "visible", this._backdrop.show(), this._config.scroll || ((new De).hide(), this._enforceFocusOnElement(this._element)), this._element.removeAttribute("aria-hidden"), this._element.setAttribute("aria-modal", !0), this._element.setAttribute("role", "dialog"), this._element.classList.add("show"), this._queueCallback(function () {
  2832. $.trigger(e._element, "shown.bs.offcanvas", {
  2833. relatedTarget: t
  2834. })
  2835. }, this._element, !0))
  2836. }
  2837. }, {
  2838. key: "hide",
  2839. value: function () {
  2840. var t = this;
  2841. this._isShown && ($.trigger(this._element, "hide.bs.offcanvas").defaultPrevented || ($.off(document, "focusin.bs.offcanvas"), this._element.blur(), this._isShown = !1, this._element.classList.remove("show"), this._backdrop.hide(), this._queueCallback(function () {
  2842. t._element.setAttribute("aria-hidden", !0), t._element.removeAttribute("aria-modal"), t._element.removeAttribute("role"), t._element.style.visibility = "hidden", t._config.scroll || (new De).reset(), $.trigger(t._element, "hidden.bs.offcanvas")
  2843. }, this._element, !0)))
  2844. }
  2845. }, {
  2846. key: "dispose",
  2847. value: function () {
  2848. this._backdrop.dispose(), _get(_getPrototypeOf(s.prototype), "dispose", this).call(this), $.off(document, "focusin.bs.offcanvas")
  2849. }
  2850. }, {
  2851. key: "_getConfig",
  2852. value: function (t) {
  2853. return t = _objectSpread(_objectSpread(_objectSpread({}, Ne), Q.getDataAttributes(this._element)), "object" == _typeof(t) ? t : {}), d("offcanvas", t, Le), t
  2854. }
  2855. }, {
  2856. key: "_initializeBackDrop",
  2857. value: function () {
  2858. var t = this;
  2859. return new Pe({
  2860. isVisible: this._config.backdrop,
  2861. isAnimated: !0,
  2862. rootElement: this._element.parentNode,
  2863. clickCallback: function () {
  2864. return t.hide()
  2865. }
  2866. })
  2867. }
  2868. }, {
  2869. key: "_enforceFocusOnElement",
  2870. value: function (e) {
  2871. $.off(document, "focusin.bs.offcanvas"), $.on(document, "focusin.bs.offcanvas", function (t) {
  2872. document === t.target || e === t.target || e.contains(t.target) || e.focus()
  2873. }), e.focus()
  2874. }
  2875. }, {
  2876. key: "_addEventListeners",
  2877. value: function () {
  2878. var e = this;
  2879. $.on(this._element, "click.dismiss.bs.offcanvas", '[data-bs-dismiss="offcanvas"]', function () {
  2880. return e.hide()
  2881. }), $.on(this._element, "keydown.dismiss.bs.offcanvas", function (t) {
  2882. e._config.keyboard && "Escape" === t.key && e.hide()
  2883. })
  2884. }
  2885. }], [{
  2886. key: "jQueryInterface",
  2887. value: function (e) {
  2888. return this.each(function () {
  2889. var t = s.getOrCreateInstance(this, e);
  2890. if ("string" == typeof e) {
  2891. if (void 0 === t[e] || e.startsWith("_") || "constructor" === e) throw new TypeError('No method named "'.concat(e, '"'));
  2892. t[e](this)
  2893. }
  2894. })
  2895. }
  2896. }, {
  2897. key: "NAME",
  2898. get: function () {
  2899. return "offcanvas"
  2900. }
  2901. }, {
  2902. key: "Default",
  2903. get: function () {
  2904. return Ne
  2905. }
  2906. }]), s
  2907. }();
  2908. $.on(document, "click.bs.offcanvas.data-api", '[data-bs-toggle="offcanvas"]', function (t) {
  2909. var e = this,
  2910. i = a(this);
  2911. if (["A", "AREA"].includes(this.tagName) && t.preventDefault(), !u(this)) {
  2912. $.one(i, "hidden.bs.offcanvas", function () {
  2913. s(e) && e.focus()
  2914. });
  2915. var n = y(".offcanvas.show");
  2916. n && n !== i && He.getInstance(n).hide(), He.getOrCreateInstance(i).toggle(this)
  2917. }
  2918. }), $.on(window, "load.bs.offcanvas.data-api", function () {
  2919. return _(".offcanvas.show").forEach(function (t) {
  2920. return He.getOrCreateInstance(t).show()
  2921. })
  2922. }), t(He);
  2923. var je = new Set(["background", "cite", "href", "itemtype", "longdesc", "poster", "src", "xlink:href"]),
  2924. ze = /^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,
  2925. We = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;
  2926. function $e(t, a, e) {
  2927. var i;
  2928. if (!t.length) return t;
  2929. if (e && "function" == typeof e) return e(t);
  2930. for (var n = (new window.DOMParser).parseFromString(t, "text/html"), l = Object.keys(a), c = (i = []).concat.apply(i, _toConsumableArray(n.body.querySelectorAll("*"))), s = function (t, e) {
  2931. var i, n = c[t],
  2932. s = n.nodeName.toLowerCase();
  2933. if (!l.includes(s)) return n.remove(), "continue";
  2934. var o = (i = []).concat.apply(i, _toConsumableArray(n.attributes)),
  2935. r = [].concat(a["*"] || [], a[s] || []);
  2936. o.forEach(function (t) {
  2937. (function (t, e) {
  2938. var i = t.nodeName.toLowerCase();
  2939. if (e.includes(i)) return !je.has(i) || Boolean(ze.test(t.nodeValue) || We.test(t.nodeValue));
  2940. for (var n = e.filter(function (t) {
  2941. return t instanceof RegExp
  2942. }), s = 0, o = n.length; s < o; s++)
  2943. if (n[s].test(i)) return !0;
  2944. return !1
  2945. })(t, r) || n.removeAttribute(t.nodeName)
  2946. })
  2947. }, o = 0, r = c.length; o < r; o++) s(o);
  2948. return n.body.innerHTML
  2949. }
  2950. var Re = new RegExp("(^|\\s)bs-tooltip\\S+", "g"),
  2951. Fe = new Set(["sanitize", "allowList", "sanitizeFn"]),
  2952. qe = {
  2953. animation: "boolean",
  2954. template: "string",
  2955. title: "(string|element|function)",
  2956. trigger: "string",
  2957. delay: "(number|object)",
  2958. html: "boolean",
  2959. selector: "(string|boolean)",
  2960. placement: "(string|function)",
  2961. offset: "(array|string|function)",
  2962. container: "(string|element|boolean)",
  2963. fallbackPlacements: "array",
  2964. boundary: "(string|element)",
  2965. customClass: "(string|function)",
  2966. sanitize: "boolean",
  2967. sanitizeFn: "(null|function)",
  2968. allowList: "object",
  2969. popperConfig: "(null|object|function)"
  2970. },
  2971. Be = {
  2972. AUTO: "auto",
  2973. TOP: "top",
  2974. RIGHT: l() ? "left" : "right",
  2975. BOTTOM: "bottom",
  2976. LEFT: l() ? "right" : "left"
  2977. },
  2978. Ue = {
  2979. animation: !0,
  2980. template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
  2981. trigger: "hover focus",
  2982. title: "",
  2983. delay: 0,
  2984. html: !1,
  2985. selector: !1,
  2986. placement: "top",
  2987. offset: [0, 0],
  2988. container: !1,
  2989. fallbackPlacements: ["top", "right", "bottom", "left"],
  2990. boundary: "clippingParents",
  2991. customClass: "",
  2992. sanitize: !0,
  2993. sanitizeFn: null,
  2994. allowList: {
  2995. "*": ["class", "dir", "id", "lang", "role", /^aria-[\w-]*$/i],
  2996. a: ["target", "href", "title", "rel"],
  2997. area: [],
  2998. b: [],
  2999. br: [],
  3000. col: [],
  3001. code: [],
  3002. div: [],
  3003. em: [],
  3004. hr: [],
  3005. h1: [],
  3006. h2: [],
  3007. h3: [],
  3008. h4: [],
  3009. h5: [],
  3010. h6: [],
  3011. i: [],
  3012. img: ["src", "srcset", "alt", "title", "width", "height"],
  3013. li: [],
  3014. ol: [],
  3015. p: [],
  3016. pre: [],
  3017. s: [],
  3018. small: [],
  3019. span: [],
  3020. sub: [],
  3021. sup: [],
  3022. strong: [],
  3023. u: [],
  3024. ul: []
  3025. },
  3026. popperConfig: null
  3027. },
  3028. Ye = {
  3029. HIDE: "hide.bs.tooltip",
  3030. HIDDEN: "hidden.bs.tooltip",
  3031. SHOW: "show.bs.tooltip",
  3032. SHOWN: "shown.bs.tooltip",
  3033. INSERTED: "inserted.bs.tooltip",
  3034. CLICK: "click.bs.tooltip",
  3035. FOCUSIN: "focusin.bs.tooltip",
  3036. FOCUSOUT: "focusout.bs.tooltip",
  3037. MOUSEENTER: "mouseenter.bs.tooltip",
  3038. MOUSELEAVE: "mouseleave.bs.tooltip"
  3039. },
  3040. Ve = function (t) {
  3041. _inherits(s, U);
  3042. var n = _createSuper(s);
  3043. function s(t, e) {
  3044. var i;
  3045. if (_classCallCheck(this, s), void 0 === me) throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");
  3046. return (i = n.call(this, t))._isEnabled = !0, i._timeout = 0, i._hoverState = "", i._activeTrigger = {}, i._popper = null, i._config = i._getConfig(e), i.tip = null, i._setListeners(), i
  3047. }
  3048. return _createClass(s, [{
  3049. key: "enable",
  3050. value: function () {
  3051. this._isEnabled = !0
  3052. }
  3053. }, {
  3054. key: "disable",
  3055. value: function () {
  3056. this._isEnabled = !1
  3057. }
  3058. }, {
  3059. key: "toggleEnabled",
  3060. value: function () {
  3061. this._isEnabled = !this._isEnabled
  3062. }
  3063. }, {
  3064. key: "toggle",
  3065. value: function (t) {
  3066. if (this._isEnabled)
  3067. if (t) {
  3068. var e = this._initializeOnDelegatedTarget(t);
  3069. e._activeTrigger.click = !e._activeTrigger.click, e._isWithActiveTrigger() ? e._enter(null, e) : e._leave(null, e)
  3070. } else {
  3071. if (this.getTipElement().classList.contains("show")) return void this._leave(null, this);
  3072. this._enter(null, this)
  3073. }
  3074. }
  3075. }, {
  3076. key: "dispose",
  3077. value: function () {
  3078. clearTimeout(this._timeout), $.off(this._element.closest(".modal"), "hide.bs.modal", this._hideModalHandler), this.tip && this.tip.remove(), this._popper && this._popper.destroy(), _get(_getPrototypeOf(s.prototype), "dispose", this).call(this)
  3079. }
  3080. }, {
  3081. key: "show",
  3082. value: function () {
  3083. var t, e, i = this;
  3084. if ("none" === this._element.style.display) throw new Error("Please use show on visible elements");
  3085. if (this.isWithContent() && this._isEnabled) {
  3086. var n = $.trigger(this._element, this.constructor.Event.SHOW),
  3087. s = function t(e) {
  3088. if (!document.documentElement.attachShadow) return null;
  3089. if ("function" != typeof e.getRootNode) return e instanceof ShadowRoot ? e : e.parentNode ? t(e.parentNode) : null;
  3090. var i = e.getRootNode();
  3091. return i instanceof ShadowRoot ? i : null
  3092. }(this._element),
  3093. o = null === s ? this._element.ownerDocument.documentElement.contains(this._element) : s.contains(this._element);
  3094. if (!n.defaultPrevented && o) {
  3095. var r = this.getTipElement(),
  3096. a = p(this.constructor.NAME);
  3097. r.setAttribute("id", a), this._element.setAttribute("aria-describedby", a), this.setContent(), this._config.animation && r.classList.add("fade");
  3098. var l = "function" == typeof this._config.placement ? this._config.placement.call(this, r, this._element) : this._config.placement,
  3099. c = this._getAttachment(l);
  3100. this._addAttachmentClass(c);
  3101. var u = this._config.container;
  3102. F(r, this.constructor.DATA_KEY, this), this._element.ownerDocument.documentElement.contains(this.tip) || (u.appendChild(r), $.trigger(this._element, this.constructor.Event.INSERTED)), this._popper ? this._popper.update() : this._popper = ge(this._element, r, this._getPopperConfig(c)), r.classList.add("show");
  3103. var h = "function" == typeof this._config.customClass ? this._config.customClass() : this._config.customClass;
  3104. h && (t = r.classList).add.apply(t, _toConsumableArray(h.split(" "))), "ontouchstart" in document.documentElement && (e = []).concat.apply(e, _toConsumableArray(document.body.children)).forEach(function (t) {
  3105. $.on(t, "mouseover", f)
  3106. });
  3107. var d = this.tip.classList.contains("fade");
  3108. this._queueCallback(function () {
  3109. var t = i._hoverState;
  3110. i._hoverState = null, $.trigger(i._element, i.constructor.Event.SHOWN), "out" === t && i._leave(null, i)
  3111. }, this.tip, d)
  3112. }
  3113. }
  3114. }
  3115. }, {
  3116. key: "hide",
  3117. value: function () {
  3118. var t, e = this;
  3119. if (this._popper) {
  3120. var i = this.getTipElement();
  3121. if (!$.trigger(this._element, this.constructor.Event.HIDE).defaultPrevented) {
  3122. i.classList.remove("show"), "ontouchstart" in document.documentElement && (t = []).concat.apply(t, _toConsumableArray(document.body.children)).forEach(function (t) {
  3123. return $.off(t, "mouseover", f)
  3124. }), this._activeTrigger.click = !1, this._activeTrigger.focus = !1, this._activeTrigger.hover = !1;
  3125. var n = this.tip.classList.contains("fade");
  3126. this._queueCallback(function () {
  3127. e._isWithActiveTrigger() || ("show" !== e._hoverState && i.remove(), e._cleanTipClass(), e._element.removeAttribute("aria-describedby"), $.trigger(e._element, e.constructor.Event.HIDDEN), e._popper && (e._popper.destroy(), e._popper = null))
  3128. }, this.tip, n), this._hoverState = ""
  3129. }
  3130. }
  3131. }
  3132. }, {
  3133. key: "update",
  3134. value: function () {
  3135. null !== this._popper && this._popper.update()
  3136. }
  3137. }, {
  3138. key: "isWithContent",
  3139. value: function () {
  3140. return Boolean(this.getTitle())
  3141. }
  3142. }, {
  3143. key: "getTipElement",
  3144. value: function () {
  3145. if (this.tip) return this.tip;
  3146. var t = document.createElement("div");
  3147. return t.innerHTML = this._config.template, this.tip = t.children[0], this.tip
  3148. }
  3149. }, {
  3150. key: "setContent",
  3151. value: function () {
  3152. var t = this.getTipElement();
  3153. this.setElementContent(y(".tooltip-inner", t), this.getTitle()), t.classList.remove("fade", "show")
  3154. }
  3155. }, {
  3156. key: "setElementContent",
  3157. value: function (t, e) {
  3158. if (null !== t) return c(e) ? (e = r(e), void(this._config.html ? e.parentNode !== t && (t.innerHTML = "", t.appendChild(e)) : t.textContent = e.textContent)) : void(this._config.html ? (this._config.sanitize && (e = $e(e, this._config.allowList, this._config.sanitizeFn)), t.innerHTML = e) : t.textContent = e)
  3159. }
  3160. }, {
  3161. key: "getTitle",
  3162. value: function () {
  3163. var t = this._element.getAttribute("data-bs-original-title");
  3164. return t || (t = "function" == typeof this._config.title ? this._config.title.call(this._element) : this._config.title), t
  3165. }
  3166. }, {
  3167. key: "updateAttachment",
  3168. value: function (t) {
  3169. return "right" === t ? "end" : "left" === t ? "start" : t
  3170. }
  3171. }, {
  3172. key: "_initializeOnDelegatedTarget",
  3173. value: function (t, e) {
  3174. var i = this.constructor.DATA_KEY;
  3175. return (e = e || q(t.delegateTarget, i)) || (e = new this.constructor(t.delegateTarget, this._getDelegateConfig()), F(t.delegateTarget, i, e)), e
  3176. }
  3177. }, {
  3178. key: "_getOffset",
  3179. value: function () {
  3180. var e = this,
  3181. i = this._config.offset;
  3182. return "string" == typeof i ? i.split(",").map(function (t) {
  3183. return Number.parseInt(t, 10)
  3184. }) : "function" == typeof i ? function (t) {
  3185. return i(t, e._element)
  3186. } : i
  3187. }
  3188. }, {
  3189. key: "_getPopperConfig",
  3190. value: function (t) {
  3191. var e = this,
  3192. i = {
  3193. placement: t,
  3194. modifiers: [{
  3195. name: "flip",
  3196. options: {
  3197. fallbackPlacements: this._config.fallbackPlacements
  3198. }
  3199. }, {
  3200. name: "offset",
  3201. options: {
  3202. offset: this._getOffset()
  3203. }
  3204. }, {
  3205. name: "preventOverflow",
  3206. options: {
  3207. boundary: this._config.boundary
  3208. }
  3209. }, {
  3210. name: "arrow",
  3211. options: {
  3212. element: ".".concat(this.constructor.NAME, "-arrow")
  3213. }
  3214. }, {
  3215. name: "onChange",
  3216. enabled: !0,
  3217. phase: "afterWrite",
  3218. fn: function (t) {
  3219. return e._handlePopperPlacementChange(t)
  3220. }
  3221. }],
  3222. onFirstUpdate: function (t) {
  3223. t.options.placement !== t.placement && e._handlePopperPlacementChange(t)
  3224. }
  3225. };
  3226. return _objectSpread(_objectSpread({}, i), "function" == typeof this._config.popperConfig ? this._config.popperConfig(i) : this._config.popperConfig)
  3227. }
  3228. }, {
  3229. key: "_addAttachmentClass",
  3230. value: function (t) {
  3231. this.getTipElement().classList.add("bs-tooltip-" + this.updateAttachment(t))
  3232. }
  3233. }, {
  3234. key: "_getAttachment",
  3235. value: function (t) {
  3236. return Be[t.toUpperCase()]
  3237. }
  3238. }, {
  3239. key: "_setListeners",
  3240. value: function () {
  3241. var n = this;
  3242. this._config.trigger.split(" ").forEach(function (t) {
  3243. if ("click" === t) $.on(n._element, n.constructor.Event.CLICK, n._config.selector, function (t) {
  3244. return n.toggle(t)
  3245. });
  3246. else if ("manual" !== t) {
  3247. var e = "hover" === t ? n.constructor.Event.MOUSEENTER : n.constructor.Event.FOCUSIN,
  3248. i = "hover" === t ? n.constructor.Event.MOUSELEAVE : n.constructor.Event.FOCUSOUT;
  3249. $.on(n._element, e, n._config.selector, function (t) {
  3250. return n._enter(t)
  3251. }), $.on(n._element, i, n._config.selector, function (t) {
  3252. return n._leave(t)
  3253. })
  3254. }
  3255. }), this._hideModalHandler = function () {
  3256. n._element && n.hide()
  3257. }, $.on(this._element.closest(".modal"), "hide.bs.modal", this._hideModalHandler), this._config.selector ? this._config = _objectSpread(_objectSpread({}, this._config), {}, {
  3258. trigger: "manual",
  3259. selector: ""
  3260. }) : this._fixTitle()
  3261. }
  3262. }, {
  3263. key: "_fixTitle",
  3264. value: function () {
  3265. var t = this._element.getAttribute("title"),
  3266. e = _typeof(this._element.getAttribute("data-bs-original-title"));
  3267. (t || "string" !== e) && (this._element.setAttribute("data-bs-original-title", t || ""), !t || this._element.getAttribute("aria-label") || this._element.textContent || this._element.setAttribute("aria-label", t), this._element.setAttribute("title", ""))
  3268. }
  3269. }, {
  3270. key: "_enter",
  3271. value: function (t, e) {
  3272. e = this._initializeOnDelegatedTarget(t, e), t && (e._activeTrigger["focusin" === t.type ? "focus" : "hover"] = !0), e.getTipElement().classList.contains("show") || "show" === e._hoverState ? e._hoverState = "show" : (clearTimeout(e._timeout), e._hoverState = "show", e._config.delay && e._config.delay.show ? e._timeout = setTimeout(function () {
  3273. "show" === e._hoverState && e.show()
  3274. }, e._config.delay.show) : e.show())
  3275. }
  3276. }, {
  3277. key: "_leave",
  3278. value: function (t, e) {
  3279. e = this._initializeOnDelegatedTarget(t, e), t && (e._activeTrigger["focusout" === t.type ? "focus" : "hover"] = e._element.contains(t.relatedTarget)), e._isWithActiveTrigger() || (clearTimeout(e._timeout), e._hoverState = "out", e._config.delay && e._config.delay.hide ? e._timeout = setTimeout(function () {
  3280. "out" === e._hoverState && e.hide()
  3281. }, e._config.delay.hide) : e.hide())
  3282. }
  3283. }, {
  3284. key: "_isWithActiveTrigger",
  3285. value: function () {
  3286. for (var t in this._activeTrigger)
  3287. if (this._activeTrigger[t]) return !0;
  3288. return !1
  3289. }
  3290. }, {
  3291. key: "_getConfig",
  3292. value: function (t) {
  3293. var e = Q.getDataAttributes(this._element);
  3294. return Object.keys(e).forEach(function (t) {
  3295. Fe.has(t) && delete e[t]
  3296. }), (t = _objectSpread(_objectSpread(_objectSpread({}, this.constructor.Default), e), "object" == _typeof(t) && t ? t : {})).container = !1 === t.container ? document.body : r(t.container), "number" == typeof t.delay && (t.delay = {
  3297. show: t.delay,
  3298. hide: t.delay
  3299. }), "number" == typeof t.title && (t.title = t.title.toString()), "number" == typeof t.content && (t.content = t.content.toString()), d("tooltip", t, this.constructor.DefaultType), t.sanitize && (t.template = $e(t.template, t.allowList, t.sanitizeFn)), t
  3300. }
  3301. }, {
  3302. key: "_getDelegateConfig",
  3303. value: function () {
  3304. var t = {};
  3305. if (this._config)
  3306. for (var e in this._config) this.constructor.Default[e] !== this._config[e] && (t[e] = this._config[e]);
  3307. return t
  3308. }
  3309. }, {
  3310. key: "_cleanTipClass",
  3311. value: function () {
  3312. var e = this.getTipElement(),
  3313. t = e.getAttribute("class").match(Re);
  3314. null !== t && 0 < t.length && t.map(function (t) {
  3315. return t.trim()
  3316. }).forEach(function (t) {
  3317. return e.classList.remove(t)
  3318. })
  3319. }
  3320. }, {
  3321. key: "_handlePopperPlacementChange",
  3322. value: function (t) {
  3323. var e = t.state;
  3324. e && (this.tip = e.elements.popper, this._cleanTipClass(), this._addAttachmentClass(this._getAttachment(e.placement)))
  3325. }
  3326. }], [{
  3327. key: "jQueryInterface",
  3328. value: function (e) {
  3329. return this.each(function () {
  3330. var t = s.getOrCreateInstance(this, e);
  3331. if ("string" == typeof e) {
  3332. if (void 0 === t[e]) throw new TypeError('No method named "'.concat(e, '"'));
  3333. t[e]()
  3334. }
  3335. })
  3336. }
  3337. }, {
  3338. key: "Default",
  3339. get: function () {
  3340. return Ue
  3341. }
  3342. }, {
  3343. key: "NAME",
  3344. get: function () {
  3345. return "tooltip"
  3346. }
  3347. }, {
  3348. key: "Event",
  3349. get: function () {
  3350. return Ye
  3351. }
  3352. }, {
  3353. key: "DefaultType",
  3354. get: function () {
  3355. return qe
  3356. }
  3357. }]), s
  3358. }();
  3359. t(Ve);
  3360. var Ke = new RegExp("(^|\\s)bs-popover\\S+", "g"),
  3361. Xe = _objectSpread(_objectSpread({}, Ve.Default), {}, {
  3362. placement: "right",
  3363. offset: [0, 8],
  3364. trigger: "click",
  3365. content: "",
  3366. template: '<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'
  3367. }),
  3368. Qe = _objectSpread(_objectSpread({}, Ve.DefaultType), {}, {
  3369. content: "(string|element|function)"
  3370. }),
  3371. Ge = {
  3372. HIDE: "hide.bs.popover",
  3373. HIDDEN: "hidden.bs.popover",
  3374. SHOW: "show.bs.popover",
  3375. SHOWN: "shown.bs.popover",
  3376. INSERTED: "inserted.bs.popover",
  3377. CLICK: "click.bs.popover",
  3378. FOCUSIN: "focusin.bs.popover",
  3379. FOCUSOUT: "focusout.bs.popover",
  3380. MOUSEENTER: "mouseenter.bs.popover",
  3381. MOUSELEAVE: "mouseleave.bs.popover"
  3382. },
  3383. Je = function (t) {
  3384. _inherits(i, Ve);
  3385. var e = _createSuper(i);
  3386. function i() {
  3387. return _classCallCheck(this, i), e.apply(this, arguments)
  3388. }
  3389. return _createClass(i, [{
  3390. key: "isWithContent",
  3391. value: function () {
  3392. return this.getTitle() || this._getContent()
  3393. }
  3394. }, {
  3395. key: "getTipElement",
  3396. value: function () {
  3397. return this.tip || (this.tip = _get(_getPrototypeOf(i.prototype), "getTipElement", this).call(this), this.getTitle() || y(".popover-header", this.tip).remove(), this._getContent() || y(".popover-body", this.tip).remove()), this.tip
  3398. }
  3399. }, {
  3400. key: "setContent",
  3401. value: function () {
  3402. var t = this.getTipElement();
  3403. this.setElementContent(y(".popover-header", t), this.getTitle());
  3404. var e = this._getContent();
  3405. "function" == typeof e && (e = e.call(this._element)), this.setElementContent(y(".popover-body", t), e), t.classList.remove("fade", "show")
  3406. }
  3407. }, {
  3408. key: "_addAttachmentClass",
  3409. value: function (t) {
  3410. this.getTipElement().classList.add("bs-popover-" + this.updateAttachment(t))
  3411. }
  3412. }, {
  3413. key: "_getContent",
  3414. value: function () {
  3415. return this._element.getAttribute("data-bs-content") || this._config.content
  3416. }
  3417. }, {
  3418. key: "_cleanTipClass",
  3419. value: function () {
  3420. var e = this.getTipElement(),
  3421. t = e.getAttribute("class").match(Ke);
  3422. null !== t && 0 < t.length && t.map(function (t) {
  3423. return t.trim()
  3424. }).forEach(function (t) {
  3425. return e.classList.remove(t)
  3426. })
  3427. }
  3428. }], [{
  3429. key: "jQueryInterface",
  3430. value: function (e) {
  3431. return this.each(function () {
  3432. var t = i.getOrCreateInstance(this, e);
  3433. if ("string" == typeof e) {
  3434. if (void 0 === t[e]) throw new TypeError('No method named "'.concat(e, '"'));
  3435. t[e]()
  3436. }
  3437. })
  3438. }
  3439. }, {
  3440. key: "Default",
  3441. get: function () {
  3442. return Xe
  3443. }
  3444. }, {
  3445. key: "NAME",
  3446. get: function () {
  3447. return "popover"
  3448. }
  3449. }, {
  3450. key: "Event",
  3451. get: function () {
  3452. return Ge
  3453. }
  3454. }, {
  3455. key: "DefaultType",
  3456. get: function () {
  3457. return Qe
  3458. }
  3459. }]), i
  3460. }();
  3461. t(Je);
  3462. var Ze = {
  3463. offset: 10,
  3464. method: "auto",
  3465. target: ""
  3466. },
  3467. ti = {
  3468. offset: "number",
  3469. method: "string",
  3470. target: "(string|element)"
  3471. },
  3472. ei = function (t) {
  3473. _inherits(s, U);
  3474. var n = _createSuper(s);
  3475. function s(t, e) {
  3476. var i;
  3477. return _classCallCheck(this, s), (i = n.call(this, t))._scrollElement = "BODY" === i._element.tagName ? window : i._element, i._config = i._getConfig(e), i._selector = "".concat(i._config.target, " .nav-link, ").concat(i._config.target, " .list-group-item, ").concat(i._config.target, " .dropdown-item"), i._offsets = [], i._targets = [], i._activeTarget = null, i._scrollHeight = 0, $.on(i._scrollElement, "scroll.bs.scrollspy", function () {
  3478. return i._process()
  3479. }), i.refresh(), i._process(), i
  3480. }
  3481. return _createClass(s, [{
  3482. key: "refresh",
  3483. value: function () {
  3484. var e = this,
  3485. t = this._scrollElement === this._scrollElement.window ? "offset" : "position",
  3486. s = "auto" === this._config.method ? t : this._config.method,
  3487. o = "position" === s ? this._getScrollTop() : 0;
  3488. this._offsets = [], this._targets = [], this._scrollHeight = this._getScrollHeight(), _(this._selector).map(function (t) {
  3489. var e = h(t),
  3490. i = e ? y(e) : null;
  3491. if (i) {
  3492. var n = i.getBoundingClientRect();
  3493. if (n.width || n.height) return [Q[s](i).top + o, e]
  3494. }
  3495. return null
  3496. }).filter(function (t) {
  3497. return t
  3498. }).sort(function (t, e) {
  3499. return t[0] - e[0]
  3500. }).forEach(function (t) {
  3501. e._offsets.push(t[0]), e._targets.push(t[1])
  3502. })
  3503. }
  3504. }, {
  3505. key: "dispose",
  3506. value: function () {
  3507. $.off(this._scrollElement, ".bs.scrollspy"), _get(_getPrototypeOf(s.prototype), "dispose", this).call(this)
  3508. }
  3509. }, {
  3510. key: "_getConfig",
  3511. value: function (t) {
  3512. if ("string" != typeof (t = _objectSpread(_objectSpread(_objectSpread({}, Ze), Q.getDataAttributes(this._element)), "object" == _typeof(t) && t ? t : {})).target && c(t.target)) {
  3513. var e = t.target.id;
  3514. e || (e = p("scrollspy"), t.target.id = e), t.target = "#" + e
  3515. }
  3516. return d("scrollspy", t, ti), t
  3517. }
  3518. }, {
  3519. key: "_getScrollTop",
  3520. value: function () {
  3521. return this._scrollElement === window ? this._scrollElement.pageYOffset : this._scrollElement.scrollTop
  3522. }
  3523. }, {
  3524. key: "_getScrollHeight",
  3525. value: function () {
  3526. return this._scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight)
  3527. }
  3528. }, {
  3529. key: "_getOffsetHeight",
  3530. value: function () {
  3531. return this._scrollElement === window ? window.innerHeight : this._scrollElement.getBoundingClientRect().height
  3532. }
  3533. }, {
  3534. key: "_process",
  3535. value: function () {
  3536. var t = this._getScrollTop() + this._config.offset,
  3537. e = this._getScrollHeight(),
  3538. i = this._config.offset + e - this._getOffsetHeight();
  3539. if (this._scrollHeight !== e && this.refresh(), i <= t) {
  3540. var n = this._targets[this._targets.length - 1];
  3541. this._activeTarget !== n && this._activate(n)
  3542. } else {
  3543. if (this._activeTarget && t < this._offsets[0] && 0 < this._offsets[0]) return this._activeTarget = null, void this._clear();
  3544. for (var s = this._offsets.length; s--;) this._activeTarget !== this._targets[s] && t >= this._offsets[s] && (void 0 === this._offsets[s + 1] || t < this._offsets[s + 1]) && this._activate(this._targets[s])
  3545. }
  3546. }
  3547. }, {
  3548. key: "_activate",
  3549. value: function (e) {
  3550. this._activeTarget = e, this._clear();
  3551. var t = this._selector.split(",").map(function (t) {
  3552. return "".concat(t, '[data-bs-target="').concat(e, '"],').concat(t, '[href="').concat(e, '"]')
  3553. }),
  3554. i = y(t.join(","));
  3555. i.classList.contains("dropdown-item") ? (y(".dropdown-toggle", i.closest(".dropdown")).classList.add("active"), i.classList.add("active")) : (i.classList.add("active"), w(i, ".nav, .list-group").forEach(function (t) {
  3556. k(t, ".nav-link, .list-group-item").forEach(function (t) {
  3557. return t.classList.add("active")
  3558. }), k(t, ".nav-item").forEach(function (t) {
  3559. b(t, ".nav-link").forEach(function (t) {
  3560. return t.classList.add("active")
  3561. })
  3562. })
  3563. })), $.trigger(this._scrollElement, "activate.bs.scrollspy", {
  3564. relatedTarget: e
  3565. })
  3566. }
  3567. }, {
  3568. key: "_clear",
  3569. value: function () {
  3570. _(this._selector).filter(function (t) {
  3571. return t.classList.contains("active")
  3572. }).forEach(function (t) {
  3573. return t.classList.remove("active")
  3574. })
  3575. }
  3576. }], [{
  3577. key: "jQueryInterface",
  3578. value: function (e) {
  3579. return this.each(function () {
  3580. var t = s.getOrCreateInstance(this, e);
  3581. if ("string" == typeof e) {
  3582. if (void 0 === t[e]) throw new TypeError('No method named "'.concat(e, '"'));
  3583. t[e]()
  3584. }
  3585. })
  3586. }
  3587. }, {
  3588. key: "Default",
  3589. get: function () {
  3590. return Ze
  3591. }
  3592. }, {
  3593. key: "NAME",
  3594. get: function () {
  3595. return "scrollspy"
  3596. }
  3597. }]), s
  3598. }();
  3599. $.on(window, "load.bs.scrollspy.data-api", function () {
  3600. _('[data-bs-spy="scroll"]').forEach(function (t) {
  3601. return new ei(t)
  3602. })
  3603. }), t(ei);
  3604. var ii = function (t) {
  3605. _inherits(i, U);
  3606. var e = _createSuper(i);
  3607. function i() {
  3608. return _classCallCheck(this, i), e.apply(this, arguments)
  3609. }
  3610. return _createClass(i, [{
  3611. key: "show",
  3612. value: function () {
  3613. var t = this;
  3614. if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE || !this._element.classList.contains("active")) {
  3615. var e, i = a(this._element),
  3616. n = this._element.closest(".nav, .list-group");
  3617. if (n) {
  3618. var s = "UL" === n.nodeName || "OL" === n.nodeName ? ":scope > li > .active" : ".active";
  3619. e = (e = _(s, n))[e.length - 1]
  3620. }
  3621. var o = e ? $.trigger(e, "hide.bs.tab", {
  3622. relatedTarget: this._element
  3623. }) : null;
  3624. if (!($.trigger(this._element, "show.bs.tab", {
  3625. relatedTarget: e
  3626. }).defaultPrevented || null !== o && o.defaultPrevented)) {
  3627. this._activate(this._element, n);
  3628. var r = function () {
  3629. $.trigger(e, "hidden.bs.tab", {
  3630. relatedTarget: t._element
  3631. }), $.trigger(t._element, "shown.bs.tab", {
  3632. relatedTarget: e
  3633. })
  3634. };
  3635. i ? this._activate(i, i.parentNode, r) : r()
  3636. }
  3637. }
  3638. }
  3639. }, {
  3640. key: "_activate",
  3641. value: function (t, e, i) {
  3642. function n() {
  3643. return s._transitionComplete(t, o, i)
  3644. }
  3645. var s = this,
  3646. o = (!e || "UL" !== e.nodeName && "OL" !== e.nodeName ? b(e, ".active") : _(":scope > li > .active", e))[0],
  3647. r = i && o && o.classList.contains("fade");
  3648. o && r ? (o.classList.remove("show"), this._queueCallback(n, t, !0)) : n()
  3649. }
  3650. }, {
  3651. key: "_transitionComplete",
  3652. value: function (t, e, i) {
  3653. if (e) {
  3654. e.classList.remove("active");
  3655. var n = y(":scope > .dropdown-menu .active", e.parentNode);
  3656. n && n.classList.remove("active"), "tab" === e.getAttribute("role") && e.setAttribute("aria-selected", !1)
  3657. }
  3658. t.classList.add("active"), "tab" === t.getAttribute("role") && t.setAttribute("aria-selected", !0), g(t), t.classList.contains("fade") && t.classList.add("show");
  3659. var s = t.parentNode;
  3660. if (s && "LI" === s.nodeName && (s = s.parentNode), s && s.classList.contains("dropdown-menu")) {
  3661. var o = t.closest(".dropdown");
  3662. o && _(".dropdown-toggle", o).forEach(function (t) {
  3663. return t.classList.add("active")
  3664. }), t.setAttribute("aria-expanded", !0)
  3665. }
  3666. i && i()
  3667. }
  3668. }], [{
  3669. key: "jQueryInterface",
  3670. value: function (e) {
  3671. return this.each(function () {
  3672. var t = i.getOrCreateInstance(this);
  3673. if ("string" == typeof e) {
  3674. if (void 0 === t[e]) throw new TypeError('No method named "'.concat(e, '"'));
  3675. t[e]()
  3676. }
  3677. })
  3678. }
  3679. }, {
  3680. key: "NAME",
  3681. get: function () {
  3682. return "tab"
  3683. }
  3684. }]), i
  3685. }();
  3686. $.on(document, "click.bs.tab.data-api", '[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]', function (t) {
  3687. ["A", "AREA"].includes(this.tagName) && t.preventDefault(), u(this) || ii.getOrCreateInstance(this).show()
  3688. }), t(ii);
  3689. var ni = {
  3690. animation: "boolean",
  3691. autohide: "boolean",
  3692. delay: "number"
  3693. },
  3694. si = {
  3695. animation: !0,
  3696. autohide: !0,
  3697. delay: 5e3
  3698. },
  3699. oi = function (t) {
  3700. _inherits(s, U);
  3701. var n = _createSuper(s);
  3702. function s(t, e) {
  3703. var i;
  3704. return _classCallCheck(this, s), (i = n.call(this, t))._config = i._getConfig(e), i._timeout = null, i._hasMouseInteraction = !1, i._hasKeyboardInteraction = !1, i._setListeners(), i
  3705. }
  3706. return _createClass(s, [{
  3707. key: "show",
  3708. value: function () {
  3709. var t = this;
  3710. $.trigger(this._element, "show.bs.toast").defaultPrevented || (this._clearTimeout(), this._config.animation && this._element.classList.add("fade"), this._element.classList.remove("hide"), g(this._element), this._element.classList.add("showing"), this._queueCallback(function () {
  3711. t._element.classList.remove("showing"), t._element.classList.add("show"), $.trigger(t._element, "shown.bs.toast"), t._maybeScheduleHide()
  3712. }, this._element, this._config.animation))
  3713. }
  3714. }, {
  3715. key: "hide",
  3716. value: function () {
  3717. var t = this;
  3718. this._element.classList.contains("show") && ($.trigger(this._element, "hide.bs.toast").defaultPrevented || (this._element.classList.remove("show"), this._queueCallback(function () {
  3719. t._element.classList.add("hide"), $.trigger(t._element, "hidden.bs.toast")
  3720. }, this._element, this._config.animation)))
  3721. }
  3722. }, {
  3723. key: "dispose",
  3724. value: function () {
  3725. this._clearTimeout(), this._element.classList.contains("show") && this._element.classList.remove("show"), _get(_getPrototypeOf(s.prototype), "dispose", this).call(this)
  3726. }
  3727. }, {
  3728. key: "_getConfig",
  3729. value: function (t) {
  3730. return t = _objectSpread(_objectSpread(_objectSpread({}, si), Q.getDataAttributes(this._element)), "object" == _typeof(t) && t ? t : {}), d("toast", t, this.constructor.DefaultType), t
  3731. }
  3732. }, {
  3733. key: "_maybeScheduleHide",
  3734. value: function () {
  3735. var t = this;
  3736. this._config.autohide && (this._hasMouseInteraction || this._hasKeyboardInteraction || (this._timeout = setTimeout(function () {
  3737. t.hide()
  3738. }, this._config.delay)))
  3739. }
  3740. }, {
  3741. key: "_onInteraction",
  3742. value: function (t, e) {
  3743. switch (t.type) {
  3744. case "mouseover":
  3745. case "mouseout":
  3746. this._hasMouseInteraction = e;
  3747. break;
  3748. case "focusin":
  3749. case "focusout":
  3750. this._hasKeyboardInteraction = e
  3751. }
  3752. if (e) this._clearTimeout();
  3753. else {
  3754. var i = t.relatedTarget;
  3755. this._element === i || this._element.contains(i) || this._maybeScheduleHide()
  3756. }
  3757. }
  3758. }, {
  3759. key: "_setListeners",
  3760. value: function () {
  3761. var e = this;
  3762. $.on(this._element, "click.dismiss.bs.toast", '[data-bs-dismiss="toast"]', function () {
  3763. return e.hide()
  3764. }), $.on(this._element, "mouseover.bs.toast", function (t) {
  3765. return e._onInteraction(t, !0)
  3766. }), $.on(this._element, "mouseout.bs.toast", function (t) {
  3767. return e._onInteraction(t, !1)
  3768. }), $.on(this._element, "focusin.bs.toast", function (t) {
  3769. return e._onInteraction(t, !0)
  3770. }), $.on(this._element, "focusout.bs.toast", function (t) {
  3771. return e._onInteraction(t, !1)
  3772. })
  3773. }
  3774. }, {
  3775. key: "_clearTimeout",
  3776. value: function () {
  3777. clearTimeout(this._timeout), this._timeout = null
  3778. }
  3779. }], [{
  3780. key: "jQueryInterface",
  3781. value: function (e) {
  3782. return this.each(function () {
  3783. var t = s.getOrCreateInstance(this, e);
  3784. if ("string" == typeof e) {
  3785. if (void 0 === t[e]) throw new TypeError('No method named "'.concat(e, '"'));
  3786. t[e](this)
  3787. }
  3788. })
  3789. }
  3790. }, {
  3791. key: "DefaultType",
  3792. get: function () {
  3793. return ni
  3794. }
  3795. }, {
  3796. key: "Default",
  3797. get: function () {
  3798. return si
  3799. }
  3800. }, {
  3801. key: "NAME",
  3802. get: function () {
  3803. return "toast"
  3804. }
  3805. }]), s
  3806. }();
  3807. return t(oi), {
  3808. Alert: Y,
  3809. Button: V,
  3810. Carousel: st,
  3811. Collapse: at,
  3812. Dropdown: Se,
  3813. Modal: Me,
  3814. Offcanvas: He,
  3815. Popover: Je,
  3816. ScrollSpy: ei,
  3817. Tab: ii,
  3818. Toast: oi,
  3819. Tooltip: Ve
  3820. }
  3821. }),
  3822. function (r) {
  3823. var t = r(".search-toggle"),
  3824. e = r(".scale"),
  3825. i = r(".searching button"),
  3826. n = r("body"),
  3827. s = e.add(i);
  3828. 0 < t.length && t.on("click", function () {
  3829. return n.toggleClass("open"), !1
  3830. }), 0 < s.length && s.on("click", function () {
  3831. return n.removeClass("open"), !1
  3832. }), r(".close").on("click", function () {
  3833. r("body").removeClass("open")
  3834. });
  3835. var o = r(window),
  3836. a = r("body");
  3837. r(o).on("scroll", function () {
  3838. r(o).scrollTop() < 150 ? r("#sticky").removeClass("is-isticky") : r("#sticky").addClass("is-isticky")
  3839. });
  3840. var l, c = r(".offcanvas-toggle"),
  3841. u = r(".offcanvas"),
  3842. h = r(".offcanvas-overlay"),
  3843. d = r(".mobile-menu-toggle");
  3844. c.on("click", function (t) {
  3845. t.preventDefault();
  3846. var e = r(this),
  3847. i = e.attr("href");
  3848. a.addClass("offcanvas-open"), r(i).addClass("offcanvas-open"), h.fadeIn(), e.parent().hasClass("mobile-menu-toggle") && e.addClass("close")
  3849. }), r(".offcanvas-close, .offcanvas-overlay").on("click", function (t) {
  3850. t.preventDefault(), a.removeClass("offcanvas-open"), u.removeClass("offcanvas-open"), h.fadeOut(), d.find("a").removeClass("close")
  3851. }), (l = r(".offcanvas-menu, .overlay-menu")).find(".offcanvas-submenu").parent().prepend('<span class="menu-expand"></span>'), l.on("click", "li a, .menu-expand", function (t) {
  3852. var e = r(this);
  3853. ("#" === e.attr("href") || e.hasClass("menu-expand")) && (t.preventDefault(), e.siblings("ul:visible").length ? (e.parent("li").removeClass("active"), e.siblings("ul").slideUp(), e.parent("li").find("li").removeClass("active"), e.parent("li").find("ul:visible").slideUp()) : (e.parent("li").addClass("active"), e.closest("li").siblings("li").removeClass("active").find("li").removeClass("active"), e.closest("li").siblings("li").find("ul:visible").slideUp(), e.siblings("ul").slideDown()))
  3854. }), r("#offcanvas-menu2 li a").on("click", function (t) {
  3855. r(this).closest("li").toggleClass("active"), r(this).closest("li").siblings().removeClass("active"), r(this).closest("li").siblings().children(".category-sub-menu").slideUp(), r(this).closest("li").siblings().children(".category-sub-menu").children("li").toggleClass("active"), r(this).closest("li").siblings().children(".category-sub-menu").children("li").removeClass("active"), r(this).parent().children(".category-sub-menu").slideToggle()
  3856. }), r(".main-slider").slick({
  3857. autoplay: !0,
  3858. autoplaySpeed: 6e3,
  3859. speed: 800,
  3860. slidesToShow: 1,
  3861. slidesToScroll: 1,
  3862. dots: !0,
  3863. fade: !0,
  3864. arrows: !0,
  3865. prevArrow: '<button class="slick-prev"><i class="fas fa-chevron-left"></i></button>',
  3866. nextArrow: '<button class="slick-next"><i class="fas fa-chevron-right"></i></button>',
  3867. responsive: [{
  3868. breakpoint: 767,
  3869. settings: {
  3870. dots: !0,
  3871. arrows: !1
  3872. }
  3873. }]
  3874. }).slickAnimation(), r(".product-slider-init").slick({
  3875. autoplay: !1,
  3876. autoplaySpeed: 1e4,
  3877. dots: !1,
  3878. infinite: !1,
  3879. arrows: !0,
  3880. speed: 1e3,
  3881. slidesToShow: 4,
  3882. slidesToScroll: 1,
  3883. prevArrow: '<button class="slick-prev"><i class="fa fa-chevron-left"></i></button>',
  3884. nextArrow: '<button class="slick-next"><i class="fa fa-chevron-right"></i></button>',
  3885. responsive: [{
  3886. breakpoint: 1199,
  3887. settings: {
  3888. slidesToShow: 3,
  3889. slidesToScroll: 1,
  3890. infinite: !0,
  3891. dots: !1
  3892. }
  3893. }, {
  3894. breakpoint: 1024,
  3895. settings: {
  3896. slidesToShow: 3,
  3897. slidesToScroll: 1,
  3898. arrows: !0,
  3899. autoplay: !0
  3900. }
  3901. }, {
  3902. breakpoint: 768,
  3903. settings: {
  3904. slidesToShow: 2,
  3905. slidesToScroll: 1,
  3906. arrows: !1,
  3907. autoplay: !0
  3908. }
  3909. }, {
  3910. breakpoint: 480,
  3911. settings: {
  3912. slidesToShow: 1,
  3913. slidesToScroll: 1,
  3914. arrows: !1,
  3915. autoplay: !0
  3916. }
  3917. }]
  3918. }), r(".popular-slider-init").slick({
  3919. autoplay: !1,
  3920. autoplaySpeed: 1e4,
  3921. dots: !0,
  3922. infinite: !1,
  3923. arrows: !1,
  3924. speed: 1e3,
  3925. slidesToShow: 5,
  3926. slidesToScroll: 1,
  3927. prevArrow: '<button class="slick-prev"><i class="fa fa-chevron-left"></i></button>',
  3928. nextArrow: '<button class="slick-next"><i class="fa fa-chevron-right"></i></button>',
  3929. responsive: [{
  3930. breakpoint: 1280,
  3931. settings: {
  3932. slidesToShow: 4,
  3933. slidesToScroll: 1,
  3934. infinite: !1,
  3935. dots: !0
  3936. }
  3937. }, {
  3938. breakpoint: 991,
  3939. settings: {
  3940. slidesToShow: 3,
  3941. slidesToScroll: 1,
  3942. arrows: !1,
  3943. autoplay: !0
  3944. }
  3945. }, {
  3946. breakpoint: 768,
  3947. settings: {
  3948. slidesToShow: 2,
  3949. slidesToScroll: 1,
  3950. arrows: !1,
  3951. autoplay: !0
  3952. }
  3953. }, {
  3954. breakpoint: 480,
  3955. settings: {
  3956. slidesToShow: 1,
  3957. slidesToScroll: 1,
  3958. arrows: !1,
  3959. autoplay: !0
  3960. }
  3961. }]
  3962. }), r(".featured-init").slick({
  3963. autoplay: !1,
  3964. autoplaySpeed: 1e4,
  3965. dots: !1,
  3966. infinite: !1,
  3967. arrows: !0,
  3968. speed: 1e3,
  3969. slidesToShow: 4,
  3970. slidesToScroll: 1,
  3971. prevArrow: '<button class="slick-prev"><i class="fa fa-chevron-left"></i></button>',
  3972. nextArrow: '<button class="slick-next"><i class="fa fa-chevron-right"></i></button>',
  3973. responsive: [{
  3974. breakpoint: 1280,
  3975. settings: {
  3976. slidesToShow: 3,
  3977. slidesToScroll: 1,
  3978. infinite: !1,
  3979. dots: !1
  3980. }
  3981. }, {
  3982. breakpoint: 991,
  3983. settings: {
  3984. slidesToShow: 2,
  3985. slidesToScroll: 1,
  3986. arrows: !0,
  3987. autoplay: !0
  3988. }
  3989. }, {
  3990. breakpoint: 768,
  3991. settings: {
  3992. slidesToShow: 2,
  3993. slidesToScroll: 1,
  3994. arrows: !0,
  3995. autoplay: !0
  3996. }
  3997. }, {
  3998. breakpoint: 480,
  3999. settings: {
  4000. slidesToShow: 1,
  4001. slidesToScroll: 1,
  4002. arrows: !1,
  4003. autoplay: !0
  4004. }
  4005. }]
  4006. }), r(".product-ctry-init").slick({
  4007. autoplay: !1,
  4008. autoplaySpeed: 1e4,
  4009. dots: !1,
  4010. infinite: !1,
  4011. arrows: !0,
  4012. speed: 1e3,
  4013. slidesToShow: 1,
  4014. slidesToScroll: 1,
  4015. prevArrow: '<button class="slick-prev"><i class="fa fa-chevron-left"></i></button>',
  4016. nextArrow: '<button class="slick-next"><i class="fa fa-chevron-right"></i></button>',
  4017. responsive: [{
  4018. breakpoint: 1024,
  4019. settings: {
  4020. slidesToShow: 1,
  4021. slidesToScroll: 1,
  4022. infinite: !0,
  4023. dots: !1
  4024. }
  4025. }, {
  4026. breakpoint: 992,
  4027. settings: {
  4028. slidesToShow: 2,
  4029. slidesToScroll: 1,
  4030. arrows: !0,
  4031. autoplay: !0
  4032. }
  4033. }, {
  4034. breakpoint: 767,
  4035. settings: {
  4036. slidesToShow: 1,
  4037. slidesToScroll: 1,
  4038. arrows: !1,
  4039. autoplay: !0
  4040. }
  4041. }]
  4042. }), r(".blog-init").slick({
  4043. autoplay: !1,
  4044. autoplaySpeed: 1e4,
  4045. dots: !1,
  4046. infinite: !1,
  4047. arrows: !0,
  4048. speed: 1e3,
  4049. slidesToShow: 4,
  4050. slidesToScroll: 1,
  4051. prevArrow: '<button class="slick-prev"><i class="fa fa-chevron-left"></i></button>',
  4052. nextArrow: '<button class="slick-next"><i class="fa fa-chevron-right"></i></button>',
  4053. responsive: [{
  4054. breakpoint: 1024,
  4055. settings: {
  4056. slidesToShow: 3,
  4057. slidesToScroll: 1,
  4058. infinite: !0,
  4059. dots: !1
  4060. }
  4061. }, {
  4062. breakpoint: 991,
  4063. settings: {
  4064. slidesToShow: 2,
  4065. slidesToScroll: 1,
  4066. arrows: !0,
  4067. autoplay: !0
  4068. }
  4069. }, {
  4070. breakpoint: 767,
  4071. settings: {
  4072. slidesToShow: 1,
  4073. slidesToScroll: 1,
  4074. arrows: !1,
  4075. autoplay: !0
  4076. }
  4077. }, {
  4078. breakpoint: 575,
  4079. settings: {
  4080. slidesToShow: 1,
  4081. slidesToScroll: 1,
  4082. arrows: !1,
  4083. autoplay: !0
  4084. }
  4085. }]
  4086. }), r(".brand-init").slick({
  4087. autoplay: !1,
  4088. autoplaySpeed: 1e4,
  4089. dots: !1,
  4090. infinite: !1,
  4091. arrows: !0,
  4092. speed: 1e3,
  4093. slidesToShow: 6,
  4094. slidesToScroll: 1,
  4095. prevArrow: '<button class="slick-prev"><i class="fa fa-chevron-left"></i></button>',
  4096. nextArrow: '<button class="slick-next"><i class="fa fa-chevron-right"></i></button>',
  4097. responsive: [{
  4098. breakpoint: 1024,
  4099. settings: {
  4100. slidesToShow: 5,
  4101. slidesToScroll: 1,
  4102. infinite: !0,
  4103. dots: !1
  4104. }
  4105. }, {
  4106. breakpoint: 991,
  4107. settings: {
  4108. slidesToShow: 4,
  4109. slidesToScroll: 1,
  4110. arrows: !0,
  4111. autoplay: !0
  4112. }
  4113. }, {
  4114. breakpoint: 767,
  4115. settings: {
  4116. slidesToShow: 3,
  4117. slidesToScroll: 1,
  4118. arrows: !1,
  4119. autoplay: !0
  4120. }
  4121. }, {
  4122. breakpoint: 575,
  4123. settings: {
  4124. slidesToShow: 2,
  4125. slidesToScroll: 1,
  4126. arrows: !1,
  4127. autoplay: !0
  4128. }
  4129. }]
  4130. }), r(".countdown-sync-init").slick({
  4131. slidesToShow: 1,
  4132. slidesToScroll: 1,
  4133. infinite: !0,
  4134. draggable: !1,
  4135. arrows: !1,
  4136. dots: !1,
  4137. fade: !0,
  4138. asNavFor: ".countdown-sync-nav"
  4139. }), r(".countdown-sync-nav").slick({
  4140. dots: !1,
  4141. arrows: !1,
  4142. infinite: !0,
  4143. prevArrow: '<button class="slick-prev"><i class="fas fa-arrow-left"></i></button>',
  4144. nextArrow: '<button class="slick-next"><i class="fas fa-arrow-right"></i></button>',
  4145. slidesToShow: 3,
  4146. slidesToScroll: 1,
  4147. asNavFor: ".countdown-sync-init",
  4148. focusOnSelect: !0,
  4149. draggable: !1
  4150. }), r(".product-sync-init").slick({
  4151. slidesToShow: 1,
  4152. slidesToScroll: 1,
  4153. infinite: !0,
  4154. draggable: !1,
  4155. arrows: !1,
  4156. dots: !1,
  4157. fade: !0,
  4158. asNavFor: ".product-sync-nav"
  4159. }), r(".product-sync-nav").slick({
  4160. dots: !1,
  4161. arrows: !1,
  4162. infinite: !0,
  4163. prevArrow: '<button class="slick-prev"><i class="fas fa-arrow-left"></i></button>',
  4164. nextArrow: '<button class="slick-next"><i class="fas fa-arrow-right"></i></button>',
  4165. slidesToShow: 4,
  4166. slidesToScroll: 1,
  4167. asNavFor: ".product-sync-init",
  4168. focusOnSelect: !0,
  4169. draggable: !1
  4170. });
  4171. [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map(function (t) {
  4172. return new bootstrap.Tooltip(t)
  4173. });
  4174. r("#slider-range").slider({
  4175. range: !0,
  4176. min: 0,
  4177. max: 800,
  4178. values: [200, 600],
  4179. slide: function (t, e) {
  4180. r("#amount").val("€" + e.values[0] + " - €" + e.values[1])
  4181. }
  4182. }), r("#amount").val("€" + r("#slider-range").slider("values", 0) + " - €" + r("#slider-range").slider("values", 1)), r('a[data-bs-toggle="pill"]').on("shown.bs.tab", function (t) {
  4183. t.target, t.relatedTarget, r(".slick-slider").slick("setPosition")
  4184. }), r(".modal").on("shown.bs.modal", function (t) {
  4185. r(".slick-slider").slick("setPosition")
  4186. }), r("#write-comment").on("click", function (t) {
  4187. t.preventDefault(), r("html, body").animate({
  4188. scrollTop: r(".btn-dark ").offset().top + 750
  4189. }, 500, "linear")
  4190. }), r(".count").each(function () {
  4191. var i = r(this),
  4192. n = i.find('input[type="number"]'),
  4193. t = i.find(".increment"),
  4194. e = i.find(".decrement"),
  4195. s = n.attr("min"),
  4196. o = n.attr("max");
  4197. t.on("click", function () {
  4198. var t = parseFloat(n.val());
  4199. if (o <= t) var e = t;
  4200. else e = t + 1;
  4201. i.find("input").val(e), i.find("input").trigger("change")
  4202. }), e.on("click", function () {
  4203. var t = parseFloat(n.val());
  4204. if (t <= s) var e = t;
  4205. else e = t - 1;
  4206. i.find("input").val(e), i.find("input").trigger("change")
  4207. })
  4208. }), r(".checkout-toggle2").on("click", function () {
  4209. r(".open-toggle2").slideToggle(1e3)
  4210. }), r(".checkout-toggle").on("click", function () {
  4211. r(".open-toggle").slideToggle(1e3)
  4212. }), r.scrollUp({
  4213. scrollName: "scrollUp",
  4214. scrollDistance: 400,
  4215. scrollFrom: "top",
  4216. scrollSpeed: 800,
  4217. easingType: "linear",
  4218. animation: "fade",
  4219. animationSpeed: 400,
  4220. scrollTrigger: !1,
  4221. scrollTarget: !1,
  4222. scrollText: '<i class="fas fa-arrow-up"></i>',
  4223. scrollTitle: !1,
  4224. scrollImg: !1,
  4225. activeOverlay: !1,
  4226. zIndex: 214
  4227. })
  4228. }(jQuery), $(function () {
  4229. var i = $("#contact-form"),
  4230. n = $(".form-message");
  4231. $(i).submit(function (t) {
  4232. t.preventDefault();
  4233. var e = $(i).serialize();
  4234. $.ajax({
  4235. type: "POST",
  4236. url: $(i).attr("action"),
  4237. data: e
  4238. }).done(function (t) {
  4239. $(n).removeClass("error"), $(n).addClass("success"), $(n).text(t), $("#contact-form input,#contact-form textarea").val("")
  4240. }).fail(function (t) {
  4241. $(n).removeClass("success"), $(n).addClass("error"), "" !== t.responseText ? $(n).text(t.responseText) : $(n).text("Oops! An error occured and your message could not be sent.")
  4242. })
  4243. })
  4244. }),
  4245. function (t) {
  4246. "function" == typeof define && define.amd ? define(["jquery"], t) : t(jQuery)
  4247. }(function (S) {
  4248. function t() {
  4249. this._curInst = null, this._keyEvent = !1, this._disabledInputs = [], this._datepickerShowing = !1, this._inDialog = !1, this._mainDivId = "ui-datepicker-div", this._inlineClass = "ui-datepicker-inline", this._appendClass = "ui-datepicker-append", this._triggerClass = "ui-datepicker-trigger", this._dialogClass = "ui-datepicker-dialog", this._disableClass = "ui-datepicker-disabled", this._unselectableClass = "ui-datepicker-unselectable", this._currentClass = "ui-datepicker-current-day", this._dayOverClass = "ui-datepicker-days-cell-over", this.regional = [], this.regional[""] = {
  4250. closeText: "Done",
  4251. prevText: "Prev",
  4252. nextText: "Next",
  4253. currentText: "Today",
  4254. monthNames: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
  4255. monthNamesShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
  4256. dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
  4257. dayNamesShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
  4258. dayNamesMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
  4259. weekHeader: "Wk",
  4260. dateFormat: "mm/dd/yy",
  4261. firstDay: 0,
  4262. isRTL: !1,
  4263. showMonthAfterYear: !1,
  4264. yearSuffix: ""
  4265. }, this._defaults = {
  4266. showOn: "focus",
  4267. showAnim: "fadeIn",
  4268. showOptions: {},
  4269. defaultDate: null,
  4270. appendText: "",
  4271. buttonText: "...",
  4272. buttonImage: "",
  4273. buttonImageOnly: !1,
  4274. hideIfNoPrevNext: !1,
  4275. navigationAsDateFormat: !1,
  4276. gotoCurrent: !1,
  4277. changeMonth: !1,
  4278. changeYear: !1,
  4279. yearRange: "c-10:c+10",
  4280. showOtherMonths: !1,
  4281. selectOtherMonths: !1,
  4282. showWeek: !1,
  4283. calculateWeek: this.iso8601Week,
  4284. shortYearCutoff: "+10",
  4285. minDate: null,
  4286. maxDate: null,
  4287. duration: "fast",
  4288. beforeShowDay: null,
  4289. beforeShow: null,
  4290. onSelect: null,
  4291. onChangeMonthYear: null,
  4292. onClose: null,
  4293. numberOfMonths: 1,
  4294. showCurrentAtPos: 0,
  4295. stepMonths: 1,
  4296. stepBigMonths: 12,
  4297. altField: "",
  4298. altFormat: "",
  4299. constrainInput: !0,
  4300. showButtonPanel: !1,
  4301. autoSize: !1,
  4302. disabled: !1
  4303. }, S.extend(this._defaults, this.regional[""]), this.regional.en = S.extend(!0, {}, this.regional[""]), this.regional["en-US"] = S.extend(!0, {}, this.regional.en), this.dpDiv = i(S("<div id='" + this._mainDivId + "' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))
  4304. }
  4305. function i(t) {
  4306. var e = "button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";
  4307. return t.on("mouseout", e, function () {
  4308. S(this).removeClass("ui-state-hover"), -1 !== this.className.indexOf("ui-datepicker-prev") && S(this).removeClass("ui-datepicker-prev-hover"), -1 !== this.className.indexOf("ui-datepicker-next") && S(this).removeClass("ui-datepicker-next-hover")
  4309. }).on("mouseover", e, o)
  4310. }
  4311. function o() {
  4312. S.datepicker._isDisabledDatepicker(v.inline ? v.dpDiv.parent()[0] : v.input[0]) || (S(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"), S(this).addClass("ui-state-hover"), -1 !== this.className.indexOf("ui-datepicker-prev") && S(this).addClass("ui-datepicker-prev-hover"), -1 !== this.className.indexOf("ui-datepicker-next") && S(this).addClass("ui-datepicker-next-hover"))
  4313. }
  4314. function h(t, e) {
  4315. for (var i in S.extend(t, e), e) null == e[i] && (t[i] = e[i]);
  4316. return t
  4317. }
  4318. function e(e) {
  4319. return function () {
  4320. var t = this.element.val();
  4321. e.apply(this, arguments), this._refresh(), t !== this.element.val() && this._trigger("change")
  4322. }
  4323. }
  4324. S.ui = S.ui || {}, S.ui.version = "1.12.1";
  4325. var n, s, r = 0,
  4326. a = Array.prototype.slice;
  4327. S.cleanData = (s = S.cleanData, function (t) {
  4328. var e, i, n;
  4329. for (n = 0; null != (i = t[n]); n++) try {
  4330. (e = S._data(i, "events")) && e.remove && S(i).triggerHandler("remove")
  4331. } catch (t) {}
  4332. s(t)
  4333. }), S.widget = function (t, i, e) {
  4334. var n, s, o, r = {},
  4335. a = t.split(".")[0],
  4336. l = a + "-" + (t = t.split(".")[1]);
  4337. return e || (e = i, i = S.Widget), S.isArray(e) && (e = S.extend.apply(null, [{}].concat(e))), S.expr[":"][l.toLowerCase()] = function (t) {
  4338. return !!S.data(t, l)
  4339. }, S[a] = S[a] || {}, n = S[a][t], s = S[a][t] = function (t, e) {
  4340. return this._createWidget ? void(arguments.length && this._createWidget(t, e)) : new s(t, e)
  4341. }, S.extend(s, n, {
  4342. version: e.version,
  4343. _proto: S.extend({}, e),
  4344. _childConstructors: []
  4345. }), (o = new i).options = S.widget.extend({}, o.options), S.each(e, function (e, o) {
  4346. return S.isFunction(o) ? void(r[e] = function () {
  4347. function n() {
  4348. return i.prototype[e].apply(this, arguments)
  4349. }
  4350. function s(t) {
  4351. return i.prototype[e].apply(this, t)
  4352. }
  4353. return function () {
  4354. var t, e = this._super,
  4355. i = this._superApply;
  4356. return this._super = n, this._superApply = s, t = o.apply(this, arguments), this._super = e, this._superApply = i, t
  4357. }
  4358. }()) : void(r[e] = o)
  4359. }), s.prototype = S.widget.extend(o, {
  4360. widgetEventPrefix: n && o.widgetEventPrefix || t
  4361. }, r, {
  4362. constructor: s,
  4363. namespace: a,
  4364. widgetName: t,
  4365. widgetFullName: l
  4366. }), n ? (S.each(n._childConstructors, function (t, e) {
  4367. var i = e.prototype;
  4368. S.widget(i.namespace + "." + i.widgetName, s, e._proto)
  4369. }), delete n._childConstructors) : i._childConstructors.push(s), S.widget.bridge(t, s), s
  4370. }, S.widget.extend = function (t) {
  4371. for (var e, i, n = a.call(arguments, 1), s = 0, o = n.length; s < o; s++)
  4372. for (e in n[s]) i = n[s][e], n[s].hasOwnProperty(e) && void 0 !== i && (t[e] = S.isPlainObject(i) ? S.isPlainObject(t[e]) ? S.widget.extend({}, t[e], i) : S.widget.extend({}, i) : i);
  4373. return t
  4374. }, S.widget.bridge = function (o, e) {
  4375. var r = e.prototype.widgetFullName || o;
  4376. S.fn[o] = function (i) {
  4377. var t = "string" == typeof i,
  4378. n = a.call(arguments, 1),
  4379. s = this;
  4380. return t ? this.length || "instance" !== i ? this.each(function () {
  4381. var t, e = S.data(this, r);
  4382. return "instance" === i ? (s = e, !1) : e ? S.isFunction(e[i]) && "_" !== i.charAt(0) ? (t = e[i].apply(e, n)) !== e && void 0 !== t ? (s = t && t.jquery ? s.pushStack(t.get()) : t, !1) : void 0 : S.error("no such method '" + i + "' for " + o + " widget instance") : S.error("cannot call methods on " + o + " prior to initialization; attempted to call method '" + i + "'")
  4383. }) : s = void 0 : (n.length && (i = S.widget.extend.apply(null, [i].concat(n))), this.each(function () {
  4384. var t = S.data(this, r);
  4385. t ? (t.option(i || {}), t._init && t._init()) : S.data(this, r, new e(i, this))
  4386. })), s
  4387. }
  4388. }, S.Widget = function () {}, S.Widget._childConstructors = [], S.Widget.prototype = {
  4389. widgetName: "widget",
  4390. widgetEventPrefix: "",
  4391. defaultElement: "<div>",
  4392. options: {
  4393. classes: {},
  4394. disabled: !1,
  4395. create: null
  4396. },
  4397. _createWidget: function (t, e) {
  4398. e = S(e || this.defaultElement || this)[0], this.element = S(e), this.uuid = r++, this.eventNamespace = "." + this.widgetName + this.uuid, this.bindings = S(), this.hoverable = S(), this.focusable = S(), this.classesElementLookup = {}, e !== this && (S.data(e, this.widgetFullName, this), this._on(!0, this.element, {
  4399. remove: function (t) {
  4400. t.target === e && this.destroy()
  4401. }
  4402. }), this.document = S(e.style ? e.ownerDocument : e.document || e), this.window = S(this.document[0].defaultView || this.document[0].parentWindow)), this.options = S.widget.extend({}, this.options, this._getCreateOptions(), t), this._create(), this.options.disabled && this._setOptionDisabled(this.options.disabled), this._trigger("create", null, this._getCreateEventData()), this._init()
  4403. },
  4404. _getCreateOptions: function () {
  4405. return {}
  4406. },
  4407. _getCreateEventData: S.noop,
  4408. _create: S.noop,
  4409. _init: S.noop,
  4410. destroy: function () {
  4411. var i = this;
  4412. this._destroy(), S.each(this.classesElementLookup, function (t, e) {
  4413. i._removeClass(e, t)
  4414. }), this.element.off(this.eventNamespace).removeData(this.widgetFullName), this.widget().off(this.eventNamespace).removeAttr("aria-disabled"), this.bindings.off(this.eventNamespace)
  4415. },
  4416. _destroy: S.noop,
  4417. widget: function () {
  4418. return this.element
  4419. },
  4420. option: function (t, e) {
  4421. var i, n, s, o = t;
  4422. if (0 === arguments.length) return S.widget.extend({}, this.options);
  4423. if ("string" == typeof t)
  4424. if (o = {}, t = (i = t.split(".")).shift(), i.length) {
  4425. for (n = o[t] = S.widget.extend({}, this.options[t]), s = 0; i.length - 1 > s; s++) n[i[s]] = n[i[s]] || {}, n = n[i[s]];
  4426. if (t = i.pop(), 1 === arguments.length) return void 0 === n[t] ? null : n[t];
  4427. n[t] = e
  4428. } else {
  4429. if (1 === arguments.length) return void 0 === this.options[t] ? null : this.options[t];
  4430. o[t] = e
  4431. } return this._setOptions(o), this
  4432. },
  4433. _setOptions: function (t) {
  4434. var e;
  4435. for (e in t) this._setOption(e, t[e]);
  4436. return this
  4437. },
  4438. _setOption: function (t, e) {
  4439. return "classes" === t && this._setOptionClasses(e), this.options[t] = e, "disabled" === t && this._setOptionDisabled(e), this
  4440. },
  4441. _setOptionClasses: function (t) {
  4442. var e, i, n;
  4443. for (e in t) n = this.classesElementLookup[e], t[e] !== this.options.classes[e] && n && n.length && (i = S(n.get()), this._removeClass(n, e), i.addClass(this._classes({
  4444. element: i,
  4445. keys: e,
  4446. classes: t,
  4447. add: !0
  4448. })))
  4449. },
  4450. _setOptionDisabled: function (t) {
  4451. this._toggleClass(this.widget(), this.widgetFullName + "-disabled", null, !!t), t && (this._removeClass(this.hoverable, null, "ui-state-hover"), this._removeClass(this.focusable, null, "ui-state-focus"))
  4452. },
  4453. enable: function () {
  4454. return this._setOptions({
  4455. disabled: !1
  4456. })
  4457. },
  4458. disable: function () {
  4459. return this._setOptions({
  4460. disabled: !0
  4461. })
  4462. },
  4463. _classes: function (s) {
  4464. function t(t, e) {
  4465. var i, n;
  4466. for (n = 0; t.length > n; n++) i = r.classesElementLookup[t[n]] || S(), i = s.add ? S(S.unique(i.get().concat(s.element.get()))) : S(i.not(s.element).get()), r.classesElementLookup[t[n]] = i, o.push(t[n]), e && s.classes[t[n]] && o.push(s.classes[t[n]])
  4467. }
  4468. var o = [],
  4469. r = this;
  4470. return s = S.extend({
  4471. element: this.element,
  4472. classes: this.options.classes || {}
  4473. }, s), this._on(s.element, {
  4474. remove: "_untrackClassesElement"
  4475. }), s.keys && t(s.keys.match(/\S+/g) || [], !0), s.extra && t(s.extra.match(/\S+/g) || []), o.join(" ")
  4476. },
  4477. _untrackClassesElement: function (i) {
  4478. var n = this;
  4479. S.each(n.classesElementLookup, function (t, e) {
  4480. -1 !== S.inArray(i.target, e) && (n.classesElementLookup[t] = S(e.not(i.target).get()))
  4481. })
  4482. },
  4483. _removeClass: function (t, e, i) {
  4484. return this._toggleClass(t, e, i, !1)
  4485. },
  4486. _addClass: function (t, e, i) {
  4487. return this._toggleClass(t, e, i, !0)
  4488. },
  4489. _toggleClass: function (t, e, i, n) {
  4490. n = "boolean" == typeof n ? n : i;
  4491. var s = "string" == typeof t || null === t,
  4492. o = {
  4493. extra: s ? e : i,
  4494. keys: s ? t : e,
  4495. element: s ? this.element : t,
  4496. add: n
  4497. };
  4498. return o.element.toggleClass(this._classes(o), n), this
  4499. },
  4500. _on: function (r, a, t) {
  4501. var l, c = this;
  4502. "boolean" != typeof r && (t = a, a = r, r = !1), t ? (a = l = S(a), this.bindings = this.bindings.add(a)) : (t = a, a = this.element, l = this.widget()), S.each(t, function (t, e) {
  4503. function i() {
  4504. return r || !0 !== c.options.disabled && !S(this).hasClass("ui-state-disabled") ? ("string" == typeof e ? c[e] : e).apply(c, arguments) : void 0
  4505. }
  4506. "string" != typeof e && (i.guid = e.guid = e.guid || i.guid || S.guid++);
  4507. var n = t.match(/^([\w:-]*)\s*(.*)$/),
  4508. s = n[1] + c.eventNamespace,
  4509. o = n[2];
  4510. o ? l.on(s, o, i) : a.on(s, i)
  4511. })
  4512. },
  4513. _off: function (t, e) {
  4514. e = (e || "").split(" ").join(this.eventNamespace + " ") + this.eventNamespace, t.off(e).off(e), this.bindings = S(this.bindings.not(t).get()), this.focusable = S(this.focusable.not(t).get()), this.hoverable = S(this.hoverable.not(t).get())
  4515. },
  4516. _delay: function (t, e) {
  4517. var i = this;
  4518. return setTimeout(function () {
  4519. return ("string" == typeof t ? i[t] : t).apply(i, arguments)
  4520. }, e || 0)
  4521. },
  4522. _hoverable: function (t) {
  4523. this.hoverable = this.hoverable.add(t), this._on(t, {
  4524. mouseenter: function (t) {
  4525. this._addClass(S(t.currentTarget), null, "ui-state-hover")
  4526. },
  4527. mouseleave: function (t) {
  4528. this._removeClass(S(t.currentTarget), null, "ui-state-hover")
  4529. }
  4530. })
  4531. },
  4532. _focusable: function (t) {
  4533. this.focusable = this.focusable.add(t), this._on(t, {
  4534. focusin: function (t) {
  4535. this._addClass(S(t.currentTarget), null, "ui-state-focus")
  4536. },
  4537. focusout: function (t) {
  4538. this._removeClass(S(t.currentTarget), null, "ui-state-focus")
  4539. }
  4540. })
  4541. },
  4542. _trigger: function (t, e, i) {
  4543. var n, s, o = this.options[t];
  4544. if (i = i || {}, (e = S.Event(e)).type = (t === this.widgetEventPrefix ? t : this.widgetEventPrefix + t).toLowerCase(), e.target = this.element[0], s = e.originalEvent)
  4545. for (n in s) n in e || (e[n] = s[n]);
  4546. return this.element.trigger(e, i), !(S.isFunction(o) && !1 === o.apply(this.element[0], [e].concat(i)) || e.isDefaultPrevented())
  4547. }
  4548. }, S.each({
  4549. show: "fadeIn",
  4550. hide: "fadeOut"
  4551. }, function (o, r) {
  4552. S.Widget.prototype["_" + o] = function (e, t, i) {
  4553. "string" == typeof t && (t = {
  4554. effect: t
  4555. });
  4556. var n, s = t ? !0 === t || "number" == typeof t ? r : t.effect || r : o;
  4557. "number" == typeof (t = t || {}) && (t = {
  4558. duration: t
  4559. }), n = !S.isEmptyObject(t), t.complete = i, t.delay && e.delay(t.delay), n && S.effects && S.effects.effect[s] ? e[o](t) : s !== o && e[s] ? e[s](t.duration, t.easing, i) : e.queue(function (t) {
  4560. S(this)[o](), i && i.call(e[0]), t()
  4561. })
  4562. }
  4563. }), S.widget,
  4564. function () {
  4565. function k(t, e, i) {
  4566. return [parseFloat(t[0]) * (l.test(t[0]) ? e / 100 : 1), parseFloat(t[1]) * (l.test(t[1]) ? i / 100 : 1)]
  4567. }
  4568. function x(t, e) {
  4569. return parseInt(S.css(t, e), 10) || 0
  4570. }
  4571. var s, C = Math.max,
  4572. T = Math.abs,
  4573. n = /left|center|right/,
  4574. o = /top|center|bottom/,
  4575. r = /[\+\-]\d+(\.[\d]+)?%?/,
  4576. a = /^\w+/,
  4577. l = /%$/,
  4578. e = S.fn.position;
  4579. S.position = {
  4580. scrollbarWidth: function () {
  4581. if (void 0 !== s) return s;
  4582. var t, e, i = S("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),
  4583. n = i.children()[0];
  4584. return S("body").append(i), t = n.offsetWidth, i.css("overflow", "scroll"), t === (e = n.offsetWidth) && (e = i[0].clientWidth), i.remove(), s = t - e
  4585. },
  4586. getScrollInfo: function (t) {
  4587. var e = t.isWindow || t.isDocument ? "" : t.element.css("overflow-x"),
  4588. i = t.isWindow || t.isDocument ? "" : t.element.css("overflow-y"),
  4589. n = "scroll" === e || "auto" === e && t.width < t.element[0].scrollWidth;
  4590. return {
  4591. width: "scroll" === i || "auto" === i && t.height < t.element[0].scrollHeight ? S.position.scrollbarWidth() : 0,
  4592. height: n ? S.position.scrollbarWidth() : 0
  4593. }
  4594. },
  4595. getWithinInfo: function (t) {
  4596. var e = S(t || window),
  4597. i = S.isWindow(e[0]),
  4598. n = !!e[0] && 9 === e[0].nodeType;
  4599. return {
  4600. element: e,
  4601. isWindow: i,
  4602. isDocument: n,
  4603. offset: !i && !n ? S(t).offset() : {
  4604. left: 0,
  4605. top: 0
  4606. },
  4607. scrollLeft: e.scrollLeft(),
  4608. scrollTop: e.scrollTop(),
  4609. width: e.outerWidth(),
  4610. height: e.outerHeight()
  4611. }
  4612. }
  4613. }, S.fn.position = function (h) {
  4614. if (!h || !h.of) return e.apply(this, arguments);
  4615. h = S.extend({}, h);
  4616. var d, p, f, g, m, t, v = S(h.of),
  4617. _ = S.position.getWithinInfo(h.within),
  4618. y = S.position.getScrollInfo(_),
  4619. b = (h.collision || "flip").split(" "),
  4620. w = {};
  4621. return t = function (t) {
  4622. var e = t[0];
  4623. return 9 === e.nodeType ? {
  4624. width: t.width(),
  4625. height: t.height(),
  4626. offset: {
  4627. top: 0,
  4628. left: 0
  4629. }
  4630. } : S.isWindow(e) ? {
  4631. width: t.width(),
  4632. height: t.height(),
  4633. offset: {
  4634. top: t.scrollTop(),
  4635. left: t.scrollLeft()
  4636. }
  4637. } : e.preventDefault ? {
  4638. width: 0,
  4639. height: 0,
  4640. offset: {
  4641. top: e.pageY,
  4642. left: e.pageX
  4643. }
  4644. } : {
  4645. width: t.outerWidth(),
  4646. height: t.outerHeight(),
  4647. offset: t.offset()
  4648. }
  4649. }(v), v[0].preventDefault && (h.at = "left top"), p = t.width, f = t.height, g = t.offset, m = S.extend({}, g), S.each(["my", "at"], function () {
  4650. var t, e, i = (h[this] || "").split(" ");
  4651. 1 === i.length && (i = n.test(i[0]) ? i.concat(["center"]) : o.test(i[0]) ? ["center"].concat(i) : ["center", "center"]), i[0] = n.test(i[0]) ? i[0] : "center", i[1] = o.test(i[1]) ? i[1] : "center", t = r.exec(i[0]), e = r.exec(i[1]), w[this] = [t ? t[0] : 0, e ? e[0] : 0], h[this] = [a.exec(i[0])[0], a.exec(i[1])[0]]
  4652. }), 1 === b.length && (b[1] = b[0]), "right" === h.at[0] ? m.left += p : "center" === h.at[0] && (m.left += p / 2), "bottom" === h.at[1] ? m.top += f : "center" === h.at[1] && (m.top += f / 2), d = k(w.at, p, f), m.left += d[0], m.top += d[1], this.each(function () {
  4653. var i, t, r = S(this),
  4654. a = r.outerWidth(),
  4655. l = r.outerHeight(),
  4656. e = x(this, "marginLeft"),
  4657. n = x(this, "marginTop"),
  4658. s = a + e + x(this, "marginRight") + y.width,
  4659. o = l + n + x(this, "marginBottom") + y.height,
  4660. c = S.extend({}, m),
  4661. u = k(w.my, r.outerWidth(), r.outerHeight());
  4662. "right" === h.my[0] ? c.left -= a : "center" === h.my[0] && (c.left -= a / 2), "bottom" === h.my[1] ? c.top -= l : "center" === h.my[1] && (c.top -= l / 2), c.left += u[0], c.top += u[1], i = {
  4663. marginLeft: e,
  4664. marginTop: n
  4665. }, S.each(["left", "top"], function (t, e) {
  4666. S.ui.position[b[t]] && S.ui.position[b[t]][e](c, {
  4667. targetWidth: p,
  4668. targetHeight: f,
  4669. elemWidth: a,
  4670. elemHeight: l,
  4671. collisionPosition: i,
  4672. collisionWidth: s,
  4673. collisionHeight: o,
  4674. offset: [d[0] + u[0], d[1] + u[1]],
  4675. my: h.my,
  4676. at: h.at,
  4677. within: _,
  4678. elem: r
  4679. })
  4680. }), h.using && (t = function (t) {
  4681. var e = g.left - c.left,
  4682. i = e + p - a,
  4683. n = g.top - c.top,
  4684. s = n + f - l,
  4685. o = {
  4686. target: {
  4687. element: v,
  4688. left: g.left,
  4689. top: g.top,
  4690. width: p,
  4691. height: f
  4692. },
  4693. element: {
  4694. element: r,
  4695. left: c.left,
  4696. top: c.top,
  4697. width: a,
  4698. height: l
  4699. },
  4700. horizontal: i < 0 ? "left" : 0 < e ? "right" : "center",
  4701. vertical: s < 0 ? "top" : 0 < n ? "bottom" : "middle"
  4702. };
  4703. p < a && p > T(e + i) && (o.horizontal = "center"), f < l && f > T(n + s) && (o.vertical = "middle"), o.important = C(T(e), T(i)) > C(T(n), T(s)) ? "horizontal" : "vertical", h.using.call(this, t, o)
  4704. }), r.offset(S.extend(c, {
  4705. using: t
  4706. }))
  4707. })
  4708. }, S.ui.position = {
  4709. fit: {
  4710. left: function (t, e) {
  4711. var i, n = e.within,
  4712. s = n.isWindow ? n.scrollLeft : n.offset.left,
  4713. o = n.width,
  4714. r = t.left - e.collisionPosition.marginLeft,
  4715. a = s - r,
  4716. l = r + e.collisionWidth - o - s;
  4717. e.collisionWidth > o ? 0 < a && l <= 0 ? (i = t.left + a + e.collisionWidth - o - s, t.left += a - i) : t.left = 0 < l && a <= 0 ? s : l < a ? s + o - e.collisionWidth : s : 0 < a ? t.left += a : 0 < l ? t.left -= l : t.left = C(t.left - r, t.left)
  4718. },
  4719. top: function (t, e) {
  4720. var i, n = e.within,
  4721. s = n.isWindow ? n.scrollTop : n.offset.top,
  4722. o = e.within.height,
  4723. r = t.top - e.collisionPosition.marginTop,
  4724. a = s - r,
  4725. l = r + e.collisionHeight - o - s;
  4726. e.collisionHeight > o ? 0 < a && l <= 0 ? (i = t.top + a + e.collisionHeight - o - s, t.top += a - i) : t.top = 0 < l && a <= 0 ? s : l < a ? s + o - e.collisionHeight : s : 0 < a ? t.top += a : 0 < l ? t.top -= l : t.top = C(t.top - r, t.top)
  4727. }
  4728. },
  4729. flip: {
  4730. left: function (t, e) {
  4731. var i, n, s = e.within,
  4732. o = s.offset.left + s.scrollLeft,
  4733. r = s.width,
  4734. a = s.isWindow ? s.scrollLeft : s.offset.left,
  4735. l = t.left - e.collisionPosition.marginLeft,
  4736. c = l - a,
  4737. u = l + e.collisionWidth - r - a,
  4738. h = "left" === e.my[0] ? -e.elemWidth : "right" === e.my[0] ? e.elemWidth : 0,
  4739. d = "left" === e.at[0] ? e.targetWidth : "right" === e.at[0] ? -e.targetWidth : 0,
  4740. p = -2 * e.offset[0];
  4741. c < 0 ? ((i = t.left + h + d + p + e.collisionWidth - r - o) < 0 || T(c) > i) && (t.left += h + d + p) : 0 < u && ((0 < (n = t.left - e.collisionPosition.marginLeft + h + d + p - a) || u > T(n)) && (t.left += h + d + p))
  4742. },
  4743. top: function (t, e) {
  4744. var i, n, s = e.within,
  4745. o = s.offset.top + s.scrollTop,
  4746. r = s.height,
  4747. a = s.isWindow ? s.scrollTop : s.offset.top,
  4748. l = t.top - e.collisionPosition.marginTop,
  4749. c = l - a,
  4750. u = l + e.collisionHeight - r - a,
  4751. h = "top" === e.my[1] ? -e.elemHeight : "bottom" === e.my[1] ? e.elemHeight : 0,
  4752. d = "top" === e.at[1] ? e.targetHeight : "bottom" === e.at[1] ? -e.targetHeight : 0,
  4753. p = -2 * e.offset[1];
  4754. c < 0 ? ((n = t.top + h + d + p + e.collisionHeight - r - o) < 0 || T(c) > n) && (t.top += h + d + p) : 0 < u && ((0 < (i = t.top - e.collisionPosition.marginTop + h + d + p - a) || u > T(i)) && (t.top += h + d + p))
  4755. }
  4756. },
  4757. flipfit: {
  4758. left: function () {
  4759. S.ui.position.flip.left.apply(this, arguments), S.ui.position.fit.left.apply(this, arguments)
  4760. },
  4761. top: function () {
  4762. S.ui.position.flip.top.apply(this, arguments), S.ui.position.fit.top.apply(this, arguments)
  4763. }
  4764. }
  4765. }
  4766. }(), S.ui.position, S.extend(S.expr[":"], {
  4767. data: S.expr.createPseudo ? S.expr.createPseudo(function (e) {
  4768. return function (t) {
  4769. return !!S.data(t, e)
  4770. }
  4771. }) : function (t, e, i) {
  4772. return !!S.data(t, i[3])
  4773. }
  4774. }), S.fn.extend({
  4775. disableSelection: (n = "onselectstart" in document.createElement("div") ? "selectstart" : "mousedown", function () {
  4776. return this.on(n + ".ui-disableSelection", function (t) {
  4777. t.preventDefault()
  4778. })
  4779. }),
  4780. enableSelection: function () {
  4781. return this.off(".ui-disableSelection")
  4782. }
  4783. });
  4784. var l, c = "ui-effects-",
  4785. d = "ui-effects-style",
  4786. p = "ui-effects-animated",
  4787. u = S;
  4788. S.effects = {
  4789. effect: {}
  4790. },
  4791. function (u, h) {
  4792. function d(t, e, i) {
  4793. var n = m[e.type] || {};
  4794. return null == t ? i || !e.def ? null : e.def : (t = n.floor ? ~~t : parseFloat(t), isNaN(t) ? e.def : n.mod ? (t + n.mod) % n.mod : t < 0 ? 0 : t > n.max ? n.max : t)
  4795. }
  4796. function a(r) {
  4797. var a = f(),
  4798. l = a._rgba = [];
  4799. return r = r.toLowerCase(), v(t, function (t, e) {
  4800. var i, n = e.re.exec(r),
  4801. s = n && e.parse(n),
  4802. o = e.space || "rgba";
  4803. return s ? (i = a[o](s), a[g[o].cache] = i[g[o].cache], l = a._rgba = i._rgba, !1) : h
  4804. }), l.length ? ("0,0,0,0" === l.join() && u.extend(l, c.transparent), a) : c[r]
  4805. }
  4806. function l(t, e, i) {
  4807. return 6 * (i = (i + 1) % 1) < 1 ? t + 6 * (e - t) * i : 2 * i < 1 ? e : 3 * i < 2 ? t + 6 * (e - t) * (2 / 3 - i) : t
  4808. }
  4809. var c, p = /^([\-+])=\s*(\d+\.?\d*)/,
  4810. t = [{
  4811. re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
  4812. parse: function (t) {
  4813. return [t[1], t[2], t[3], t[4]]
  4814. }
  4815. }, {
  4816. re: /rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
  4817. parse: function (t) {
  4818. return [2.55 * t[1], 2.55 * t[2], 2.55 * t[3], t[4]]
  4819. }
  4820. }, {
  4821. re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,
  4822. parse: function (t) {
  4823. return [parseInt(t[1], 16), parseInt(t[2], 16), parseInt(t[3], 16)]
  4824. }
  4825. }, {
  4826. re: /#([a-f0-9])([a-f0-9])([a-f0-9])/,
  4827. parse: function (t) {
  4828. return [parseInt(t[1] + t[1], 16), parseInt(t[2] + t[2], 16), parseInt(t[3] + t[3], 16)]
  4829. }
  4830. }, {
  4831. re: /hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
  4832. space: "hsla",
  4833. parse: function (t) {
  4834. return [t[1], t[2] / 100, t[3] / 100, t[4]]
  4835. }
  4836. }],
  4837. f = u.Color = function (t, e, i, n) {
  4838. return new u.Color.fn.parse(t, e, i, n)
  4839. },
  4840. g = {
  4841. rgba: {
  4842. props: {
  4843. red: {
  4844. idx: 0,
  4845. type: "byte"
  4846. },
  4847. green: {
  4848. idx: 1,
  4849. type: "byte"
  4850. },
  4851. blue: {
  4852. idx: 2,
  4853. type: "byte"
  4854. }
  4855. }
  4856. },
  4857. hsla: {
  4858. props: {
  4859. hue: {
  4860. idx: 0,
  4861. type: "degrees"
  4862. },
  4863. saturation: {
  4864. idx: 1,
  4865. type: "percent"
  4866. },
  4867. lightness: {
  4868. idx: 2,
  4869. type: "percent"
  4870. }
  4871. }
  4872. }
  4873. },
  4874. m = {
  4875. byte: {
  4876. floor: !0,
  4877. max: 255
  4878. },
  4879. percent: {
  4880. max: 1
  4881. },
  4882. degrees: {
  4883. mod: 360,
  4884. floor: !0
  4885. }
  4886. },
  4887. r = f.support = {},
  4888. e = u("<p>")[0],
  4889. v = u.each;
  4890. e.style.cssText = "background-color:rgba(1,1,1,.5)", r.rgba = -1 < e.style.backgroundColor.indexOf("rgba"), v(g, function (t, e) {
  4891. e.cache = "_" + t, e.props.alpha = {
  4892. idx: 3,
  4893. type: "percent",
  4894. def: 1
  4895. }
  4896. }), f.fn = u.extend(f.prototype, {
  4897. parse: function (s, t, e, i) {
  4898. if (s === h) return this._rgba = [null, null, null, null], this;
  4899. (s.jquery || s.nodeType) && (s = u(s).css(t), t = h);
  4900. var o = this,
  4901. n = u.type(s),
  4902. r = this._rgba = [];
  4903. return t !== h && (s = [s, t, e, i], n = "array"), "string" === n ? this.parse(a(s) || c._default) : "array" === n ? (v(g.rgba.props, function (t, e) {
  4904. r[e.idx] = d(s[e.idx], e)
  4905. }), this) : "object" === n ? (v(g, s instanceof f ? function (t, e) {
  4906. s[e.cache] && (o[e.cache] = s[e.cache].slice())
  4907. } : function (t, i) {
  4908. var n = i.cache;
  4909. v(i.props, function (t, e) {
  4910. if (!o[n] && i.to) {
  4911. if ("alpha" === t || null == s[t]) return;
  4912. o[n] = i.to(o._rgba)
  4913. }
  4914. o[n][e.idx] = d(s[t], e, !0)
  4915. }), o[n] && u.inArray(null, o[n].slice(0, 3)) < 0 && (o[n][3] = 1, i.from && (o._rgba = i.from(o[n])))
  4916. }), this) : h
  4917. },
  4918. is: function (t) {
  4919. var s = f(t),
  4920. o = !0,
  4921. r = this;
  4922. return v(g, function (t, e) {
  4923. var i, n = s[e.cache];
  4924. return n && (i = r[e.cache] || e.to && e.to(r._rgba) || [], v(e.props, function (t, e) {
  4925. return null != n[e.idx] ? o = n[e.idx] === i[e.idx] : h
  4926. })), o
  4927. }), o
  4928. },
  4929. _space: function () {
  4930. var i = [],
  4931. n = this;
  4932. return v(g, function (t, e) {
  4933. n[e.cache] && i.push(t)
  4934. }), i.pop()
  4935. },
  4936. transition: function (t, r) {
  4937. var a = f(t),
  4938. e = a._space(),
  4939. i = g[e],
  4940. n = 0 === this.alpha() ? f("transparent") : this,
  4941. l = n[i.cache] || i.to(n._rgba),
  4942. c = l.slice();
  4943. return a = a[i.cache], v(i.props, function (t, e) {
  4944. var i = e.idx,
  4945. n = l[i],
  4946. s = a[i],
  4947. o = m[e.type] || {};
  4948. null !== s && (null === n ? c[i] = s : (o.mod && (s - n > o.mod / 2 ? n += o.mod : n - s > o.mod / 2 && (n -= o.mod)), c[i] = d((s - n) * r + n, e)))
  4949. }), this[e](c)
  4950. },
  4951. blend: function (t) {
  4952. if (1 === this._rgba[3]) return this;
  4953. var e = this._rgba.slice(),
  4954. i = e.pop(),
  4955. n = f(t)._rgba;
  4956. return f(u.map(e, function (t, e) {
  4957. return (1 - i) * n[e] + i * t
  4958. }))
  4959. },
  4960. toRgbaString: function () {
  4961. var t = "rgba(",
  4962. e = u.map(this._rgba, function (t, e) {
  4963. return null == t ? 2 < e ? 1 : 0 : t
  4964. });
  4965. return 1 === e[3] && (e.pop(), t = "rgb("), t + e.join() + ")"
  4966. },
  4967. toHslaString: function () {
  4968. var t = "hsla(",
  4969. e = u.map(this.hsla(), function (t, e) {
  4970. return null == t && (t = 2 < e ? 1 : 0), e && e < 3 && (t = Math.round(100 * t) + "%"), t
  4971. });
  4972. return 1 === e[3] && (e.pop(), t = "hsl("), t + e.join() + ")"
  4973. },
  4974. toHexString: function (t) {
  4975. var e = this._rgba.slice(),
  4976. i = e.pop();
  4977. return t && e.push(~~(255 * i)), "#" + u.map(e, function (t) {
  4978. return 1 === (t = (t || 0).toString(16)).length ? "0" + t : t
  4979. }).join("")
  4980. },
  4981. toString: function () {
  4982. return 0 === this._rgba[3] ? "transparent" : this.toRgbaString()
  4983. }
  4984. }), f.fn.parse.prototype = f.fn, g.hsla.to = function (t) {
  4985. if (null == t[0] || null == t[1] || null == t[2]) return [null, null, null, t[3]];
  4986. var e, i, n = t[0] / 255,
  4987. s = t[1] / 255,
  4988. o = t[2] / 255,
  4989. r = t[3],
  4990. a = Math.max(n, s, o),
  4991. l = Math.min(n, s, o),
  4992. c = a - l,
  4993. u = a + l,
  4994. h = .5 * u;
  4995. return e = l === a ? 0 : n === a ? 60 * (s - o) / c + 360 : s === a ? 60 * (o - n) / c + 120 : 60 * (n - s) / c + 240, i = 0 == c ? 0 : h <= .5 ? c / u : c / (2 - u), [Math.round(e) % 360, i, h, null == r ? 1 : r]
  4996. }, g.hsla.from = function (t) {
  4997. if (null == t[0] || null == t[1] || null == t[2]) return [null, null, null, t[3]];
  4998. var e = t[0] / 360,
  4999. i = t[1],
  5000. n = t[2],
  5001. s = t[3],
  5002. o = n <= .5 ? n * (1 + i) : n + i - n * i,
  5003. r = 2 * n - o;
  5004. return [Math.round(255 * l(r, o, e + 1 / 3)), Math.round(255 * l(r, o, e)), Math.round(255 * l(r, o, e - 1 / 3)), s]
  5005. }, v(g, function (l, t) {
  5006. var i = t.props,
  5007. r = t.cache,
  5008. a = t.to,
  5009. c = t.from;
  5010. f.fn[l] = function (t) {
  5011. if (a && !this[r] && (this[r] = a(this._rgba)), t === h) return this[r].slice();
  5012. var e, n = u.type(t),
  5013. s = "array" === n || "object" === n ? t : arguments,
  5014. o = this[r].slice();
  5015. return v(i, function (t, e) {
  5016. var i = s["object" === n ? t : e.idx];
  5017. null == i && (i = o[e.idx]), o[e.idx] = d(i, e)
  5018. }), c ? ((e = f(c(o)))[r] = o, e) : f(o)
  5019. }, v(i, function (r, a) {
  5020. f.fn[r] || (f.fn[r] = function (t) {
  5021. var e, i = u.type(t),
  5022. n = "alpha" === r ? this._hsla ? "hsla" : "rgba" : l,
  5023. s = this[n](),
  5024. o = s[a.idx];
  5025. return "undefined" === i ? o : ("function" === i && (t = t.call(this, o), i = u.type(t)), null == t && a.empty ? this : ("string" === i && ((e = p.exec(t)) && (t = o + parseFloat(e[2]) * ("+" === e[1] ? 1 : -1))), s[a.idx] = t, this[n](s)))
  5026. })
  5027. })
  5028. }), f.hook = function (t) {
  5029. var e = t.split(" ");
  5030. v(e, function (t, o) {
  5031. u.cssHooks[o] = {
  5032. set: function (t, e) {
  5033. var i, n, s = "";
  5034. if ("transparent" !== e && ("string" !== u.type(e) || (i = a(e)))) {
  5035. if (e = f(i || e), !r.rgba && 1 !== e._rgba[3]) {
  5036. for (n = "backgroundColor" === o ? t.parentNode : t;
  5037. ("" === s || "transparent" === s) && n && n.style;) try {
  5038. s = u.css(n, "backgroundColor"), n = n.parentNode
  5039. } catch (t) {}
  5040. e = e.blend(s && "transparent" !== s ? s : "_default")
  5041. }
  5042. e = e.toRgbaString()
  5043. }
  5044. try {
  5045. t.style[o] = e
  5046. } catch (t) {}
  5047. }
  5048. }, u.fx.step[o] = function (t) {
  5049. t.colorInit || (t.start = f(t.elem, o), t.end = f(t.end), t.colorInit = !0), u.cssHooks[o].set(t.elem, t.start.transition(t.end, t.pos))
  5050. }
  5051. })
  5052. }, f.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"), u.cssHooks.borderColor = {
  5053. expand: function (i) {
  5054. var n = {};
  5055. return v(["Top", "Right", "Bottom", "Left"], function (t, e) {
  5056. n["border" + e + "Color"] = i
  5057. }), n
  5058. }
  5059. }, c = u.Color.names = {
  5060. aqua: "#00ffff",
  5061. black: "#000000",
  5062. blue: "#0000ff",
  5063. fuchsia: "#ff00ff",
  5064. gray: "#808080",
  5065. green: "#008000",
  5066. lime: "#00ff00",
  5067. maroon: "#800000",
  5068. navy: "#000080",
  5069. olive: "#808000",
  5070. purple: "#800080",
  5071. red: "#ff0000",
  5072. silver: "#c0c0c0",
  5073. teal: "#008080",
  5074. white: "#ffffff",
  5075. yellow: "#ffff00",
  5076. transparent: [null, null, null, 0],
  5077. _default: "#ffffff"
  5078. }
  5079. }(u),
  5080. function () {
  5081. function r(t) {
  5082. var e, i, n = t.ownerDocument.defaultView ? t.ownerDocument.defaultView.getComputedStyle(t, null) : t.currentStyle,
  5083. s = {};
  5084. if (n && n.length && n[0] && n[n[0]])
  5085. for (i = n.length; i--;) "string" == typeof n[e = n[i]] && (s[S.camelCase(e)] = n[e]);
  5086. else
  5087. for (e in n) "string" == typeof n[e] && (s[e] = n[e]);
  5088. return s
  5089. }
  5090. var o, s, a, l = ["add", "remove", "toggle"],
  5091. c = {
  5092. border: 1,
  5093. borderBottom: 1,
  5094. borderColor: 1,
  5095. borderLeft: 1,
  5096. borderRight: 1,
  5097. borderTop: 1,
  5098. borderWidth: 1,
  5099. margin: 1,
  5100. padding: 1
  5101. };
  5102. S.each(["borderLeftStyle", "borderRightStyle", "borderBottomStyle", "borderTopStyle"], function (t, e) {
  5103. S.fx.step[e] = function (t) {
  5104. ("none" !== t.end && !t.setAttr || 1 === t.pos && !t.setAttr) && (u.style(t.elem, e, t.end), t.setAttr = !0)
  5105. }
  5106. }), S.fn.addBack || (S.fn.addBack = function (t) {
  5107. return this.add(null == t ? this.prevObject : this.prevObject.filter(t))
  5108. }), S.effects.animateClass = function (s, t, e, i) {
  5109. var o = S.speed(t, e, i);
  5110. return this.queue(function () {
  5111. var t, i = S(this),
  5112. e = i.attr("class") || "",
  5113. n = o.children ? i.find("*").addBack() : i;
  5114. n = n.map(function () {
  5115. return {
  5116. el: S(this),
  5117. start: r(this)
  5118. }
  5119. }), (t = function () {
  5120. S.each(l, function (t, e) {
  5121. s[e] && i[e + "Class"](s[e])
  5122. })
  5123. })(), n = n.map(function () {
  5124. return this.end = r(this.el[0]), this.diff = function (t, e) {
  5125. var i, n, s = {};
  5126. for (i in e) n = e[i], t[i] !== n && (c[i] || (S.fx.step[i] || !isNaN(parseFloat(n))) && (s[i] = n));
  5127. return s
  5128. }(this.start, this.end), this
  5129. }), i.attr("class", e), n = n.map(function () {
  5130. var t = this,
  5131. e = S.Deferred(),
  5132. i = S.extend({}, o, {
  5133. queue: !1,
  5134. complete: function () {
  5135. e.resolve(t)
  5136. }
  5137. });
  5138. return this.el.animate(this.diff, i), e.promise()
  5139. }), S.when.apply(S, n.get()).done(function () {
  5140. t(), S.each(arguments, function () {
  5141. var e = this.el;
  5142. S.each(this.diff, function (t) {
  5143. e.css(t, "")
  5144. })
  5145. }), o.complete.call(i[0])
  5146. })
  5147. })
  5148. }, S.fn.extend({
  5149. addClass: (a = S.fn.addClass, function (t, e, i, n) {
  5150. return e ? S.effects.animateClass.call(this, {
  5151. add: t
  5152. }, e, i, n) : a.apply(this, arguments)
  5153. }),
  5154. removeClass: (s = S.fn.removeClass, function (t, e, i, n) {
  5155. return 1 < arguments.length ? S.effects.animateClass.call(this, {
  5156. remove: t
  5157. }, e, i, n) : s.apply(this, arguments)
  5158. }),
  5159. toggleClass: (o = S.fn.toggleClass, function (t, e, i, n, s) {
  5160. return "boolean" == typeof e || void 0 === e ? i ? S.effects.animateClass.call(this, e ? {
  5161. add: t
  5162. } : {
  5163. remove: t
  5164. }, i, n, s) : o.apply(this, arguments) : S.effects.animateClass.call(this, {
  5165. toggle: t
  5166. }, e, i, n)
  5167. }),
  5168. switchClass: function (t, e, i, n, s) {
  5169. return S.effects.animateClass.call(this, {
  5170. add: e,
  5171. remove: t
  5172. }, i, n, s)
  5173. }
  5174. })
  5175. }(),
  5176. function () {
  5177. function u(t, e, i, n) {
  5178. return S.isPlainObject(t) && (t = (e = t).effect), t = {
  5179. effect: t
  5180. }, null == e && (e = {}), S.isFunction(e) && (n = e, i = null, e = {}), ("number" == typeof e || S.fx.speeds[e]) && (n = i, i = e, e = {}), S.isFunction(i) && (n = i, i = null), e && S.extend(t, e), i = i || e.duration, t.duration = S.fx.off ? 0 : "number" == typeof i ? i : i in S.fx.speeds ? S.fx.speeds[i] : S.fx.speeds._default, t.complete = n || e.complete, t
  5181. }
  5182. function i(t) {
  5183. return !(t && "number" != typeof t && !S.fx.speeds[t]) || ("string" == typeof t && !S.effects.effect[t] || (!!S.isFunction(t) || "object" == _typeof(t) && !t.effect))
  5184. }
  5185. function e(t, e) {
  5186. var i = e.outerWidth(),
  5187. n = e.outerHeight(),
  5188. s = /^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t) || ["", 0, i, n, 0];
  5189. return {
  5190. top: parseFloat(s[1]) || 0,
  5191. right: "auto" === s[2] ? i : parseFloat(s[2]),
  5192. bottom: "auto" === s[3] ? n : parseFloat(s[3]),
  5193. left: parseFloat(s[4]) || 0
  5194. }
  5195. }
  5196. var n, s, o, r;
  5197. S.expr && S.expr.filters && S.expr.filters.animated && (S.expr.filters.animated = (r = S.expr.filters.animated, function (t) {
  5198. return !!S(t).data(p) || r(t)
  5199. })), !1 !== S.uiBackCompat && S.extend(S.effects, {
  5200. save: function (t, e) {
  5201. for (var i = 0, n = e.length; i < n; i++) null !== e[i] && t.data(c + e[i], t[0].style[e[i]])
  5202. },
  5203. restore: function (t, e) {
  5204. for (var i, n = 0, s = e.length; n < s; n++) null !== e[n] && (i = t.data(c + e[n]), t.css(e[n], i))
  5205. },
  5206. setMode: function (t, e) {
  5207. return "toggle" === e && (e = t.is(":hidden") ? "show" : "hide"), e
  5208. },
  5209. createWrapper: function (i) {
  5210. if (i.parent().is(".ui-effects-wrapper")) return i.parent();
  5211. var n = {
  5212. width: i.outerWidth(!0),
  5213. height: i.outerHeight(!0),
  5214. float: i.css("float")
  5215. },
  5216. t = S("<div></div>").addClass("ui-effects-wrapper").css({
  5217. fontSize: "100%",
  5218. background: "transparent",
  5219. border: "none",
  5220. margin: 0,
  5221. padding: 0
  5222. }),
  5223. e = {
  5224. width: i.width(),
  5225. height: i.height()
  5226. },
  5227. s = document.activeElement;
  5228. try {
  5229. s.id
  5230. } catch (t) {
  5231. s = document.body
  5232. }
  5233. return i.wrap(t), (i[0] === s || S.contains(i[0], s)) && S(s).trigger("focus"), t = i.parent(), "static" === i.css("position") ? (t.css({
  5234. position: "relative"
  5235. }), i.css({
  5236. position: "relative"
  5237. })) : (S.extend(n, {
  5238. position: i.css("position"),
  5239. zIndex: i.css("z-index")
  5240. }), S.each(["top", "left", "bottom", "right"], function (t, e) {
  5241. n[e] = i.css(e), isNaN(parseInt(n[e], 10)) && (n[e] = "auto")
  5242. }), i.css({
  5243. position: "relative",
  5244. top: 0,
  5245. left: 0,
  5246. right: "auto",
  5247. bottom: "auto"
  5248. })), i.css(e), t.css(n).show()
  5249. },
  5250. removeWrapper: function (t) {
  5251. var e = document.activeElement;
  5252. return t.parent().is(".ui-effects-wrapper") && (t.parent().replaceWith(t), (t[0] === e || S.contains(t[0], e)) && S(e).trigger("focus")), t
  5253. }
  5254. }), S.extend(S.effects, {
  5255. version: "1.12.1",
  5256. define: function (t, e, i) {
  5257. return i || (i = e, e = "effect"), S.effects.effect[t] = i, S.effects.effect[t].mode = e, i
  5258. },
  5259. scaledDimensions: function (t, e, i) {
  5260. if (0 === e) return {
  5261. height: 0,
  5262. width: 0,
  5263. outerHeight: 0,
  5264. outerWidth: 0
  5265. };
  5266. var n = "horizontal" !== i ? (e || 100) / 100 : 1,
  5267. s = "vertical" !== i ? (e || 100) / 100 : 1;
  5268. return {
  5269. height: t.height() * s,
  5270. width: t.width() * n,
  5271. outerHeight: t.outerHeight() * s,
  5272. outerWidth: t.outerWidth() * n
  5273. }
  5274. },
  5275. clipToBox: function (t) {
  5276. return {
  5277. width: t.clip.right - t.clip.left,
  5278. height: t.clip.bottom - t.clip.top,
  5279. left: t.clip.left,
  5280. top: t.clip.top
  5281. }
  5282. },
  5283. unshift: function (t, e, i) {
  5284. var n = t.queue();
  5285. 1 < e && n.splice.apply(n, [1, 0].concat(n.splice(e, i))), t.dequeue()
  5286. },
  5287. saveStyle: function (t) {
  5288. t.data(d, t[0].style.cssText)
  5289. },
  5290. restoreStyle: function (t) {
  5291. t[0].style.cssText = t.data(d) || "", t.removeData(d)
  5292. },
  5293. mode: function (t, e) {
  5294. var i = t.is(":hidden");
  5295. return "toggle" === e && (e = i ? "show" : "hide"), (i ? "hide" === e : "show" === e) && (e = "none"), e
  5296. },
  5297. getBaseline: function (t, e) {
  5298. var i, n;
  5299. switch (t[0]) {
  5300. case "top":
  5301. i = 0;
  5302. break;
  5303. case "middle":
  5304. i = .5;
  5305. break;
  5306. case "bottom":
  5307. i = 1;
  5308. break;
  5309. default:
  5310. i = t[0] / e.height
  5311. }
  5312. switch (t[1]) {
  5313. case "left":
  5314. n = 0;
  5315. break;
  5316. case "center":
  5317. n = .5;
  5318. break;
  5319. case "right":
  5320. n = 1;
  5321. break;
  5322. default:
  5323. n = t[1] / e.width
  5324. }
  5325. return {
  5326. x: n,
  5327. y: i
  5328. }
  5329. },
  5330. createPlaceholder: function (t) {
  5331. var e, i = t.css("position"),
  5332. n = t.position();
  5333. return t.css({
  5334. marginTop: t.css("marginTop"),
  5335. marginBottom: t.css("marginBottom"),
  5336. marginLeft: t.css("marginLeft"),
  5337. marginRight: t.css("marginRight")
  5338. }).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()), /^(static|relative)/.test(i) && (i = "absolute", e = S("<" + t[0].nodeName + ">").insertAfter(t).css({
  5339. display: /^(inline|ruby)/.test(t.css("display")) ? "inline-block" : "block",
  5340. visibility: "hidden",
  5341. marginTop: t.css("marginTop"),
  5342. marginBottom: t.css("marginBottom"),
  5343. marginLeft: t.css("marginLeft"),
  5344. marginRight: t.css("marginRight"),
  5345. float: t.css("float")
  5346. }).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"), t.data(c + "placeholder", e)), t.css({
  5347. position: i,
  5348. left: n.left,
  5349. top: n.top
  5350. }), e
  5351. },
  5352. removePlaceholder: function (t) {
  5353. var e = c + "placeholder",
  5354. i = t.data(e);
  5355. i && (i.remove(), t.removeData(e))
  5356. },
  5357. cleanUp: function (t) {
  5358. S.effects.restoreStyle(t), S.effects.removePlaceholder(t)
  5359. },
  5360. setTransition: function (n, t, s, o) {
  5361. return o = o || {}, S.each(t, function (t, e) {
  5362. var i = n.cssUnit(e);
  5363. 0 < i[0] && (o[e] = i[0] * s + i[1])
  5364. }), o
  5365. }
  5366. }), S.fn.extend({
  5367. effect: function () {
  5368. function t(t) {
  5369. function e() {
  5370. S.isFunction(a) && a.call(i[0]), S.isFunction(t) && t()
  5371. }
  5372. var i = S(this);
  5373. n.mode = c.shift(), !1 === S.uiBackCompat || o ? "none" === n.mode ? (i[l](), e()) : s.call(i[0], n, function () {
  5374. i.removeData(p), S.effects.cleanUp(i), "hide" === n.mode && i.hide(), e()
  5375. }) : (i.is(":hidden") ? "hide" === l : "show" === l) ? (i[l](), e()) : s.call(i[0], n, e)
  5376. }
  5377. function e(t) {
  5378. var e = S(this),
  5379. i = S.effects.mode(e, l) || o;
  5380. e.data(p, !0), c.push(i), o && ("show" === i || i === o && "hide" === i) && e.show(), o && "none" === i || S.effects.saveStyle(e), S.isFunction(t) && t()
  5381. }
  5382. var n = u.apply(this, arguments),
  5383. s = S.effects.effect[n.effect],
  5384. o = s.mode,
  5385. i = n.queue,
  5386. r = i || "fx",
  5387. a = n.complete,
  5388. l = n.mode,
  5389. c = [];
  5390. return S.fx.off || !s ? l ? this[l](n.duration, a) : this.each(function () {
  5391. a && a.call(this)
  5392. }) : !1 === i ? this.each(e).each(t) : this.queue(r, e).queue(r, t)
  5393. },
  5394. show: (o = S.fn.show, function (t) {
  5395. if (i(t)) return o.apply(this, arguments);
  5396. var e = u.apply(this, arguments);
  5397. return e.mode = "show", this.effect.call(this, e)
  5398. }),
  5399. hide: (s = S.fn.hide, function (t) {
  5400. if (i(t)) return s.apply(this, arguments);
  5401. var e = u.apply(this, arguments);
  5402. return e.mode = "hide", this.effect.call(this, e)
  5403. }),
  5404. toggle: (n = S.fn.toggle, function (t) {
  5405. if (i(t) || "boolean" == typeof t) return n.apply(this, arguments);
  5406. var e = u.apply(this, arguments);
  5407. return e.mode = "toggle", this.effect.call(this, e)
  5408. }),
  5409. cssUnit: function (t) {
  5410. var i = this.css(t),
  5411. n = [];
  5412. return S.each(["em", "px", "%", "pt"], function (t, e) {
  5413. 0 < i.indexOf(e) && (n = [parseFloat(i), e])
  5414. }), n
  5415. },
  5416. cssClip: function (t) {
  5417. return t ? this.css("clip", "rect(" + t.top + "px " + t.right + "px " + t.bottom + "px " + t.left + "px)") : e(this.css("clip"), this)
  5418. },
  5419. transfer: function (t, e) {
  5420. var i = S(this),
  5421. n = S(t.to),
  5422. s = "fixed" === n.css("position"),
  5423. o = S("body"),
  5424. r = s ? o.scrollTop() : 0,
  5425. a = s ? o.scrollLeft() : 0,
  5426. l = n.offset(),
  5427. c = {
  5428. top: l.top - r,
  5429. left: l.left - a,
  5430. height: n.innerHeight(),
  5431. width: n.innerWidth()
  5432. },
  5433. u = i.offset(),
  5434. h = S("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(t.className).css({
  5435. top: u.top - r,
  5436. left: u.left - a,
  5437. height: i.innerHeight(),
  5438. width: i.innerWidth(),
  5439. position: s ? "fixed" : "absolute"
  5440. }).animate(c, t.duration, t.easing, function () {
  5441. h.remove(), S.isFunction(e) && e()
  5442. })
  5443. }
  5444. }), S.fx.step.clip = function (t) {
  5445. t.clipInit || (t.start = S(t.elem).cssClip(), "string" == typeof t.end && (t.end = e(t.end, t.elem)), t.clipInit = !0), S(t.elem).cssClip({
  5446. top: t.pos * (t.end.top - t.start.top) + t.start.top,
  5447. right: t.pos * (t.end.right - t.start.right) + t.start.right,
  5448. bottom: t.pos * (t.end.bottom - t.start.bottom) + t.start.bottom,
  5449. left: t.pos * (t.end.left - t.start.left) + t.start.left
  5450. })
  5451. }
  5452. }(), l = {}, S.each(["Quad", "Cubic", "Quart", "Quint", "Expo"], function (e, t) {
  5453. l[t] = function (t) {
  5454. return Math.pow(t, e + 2)
  5455. }
  5456. }), S.extend(l, {
  5457. Sine: function (t) {
  5458. return 1 - Math.cos(t * Math.PI / 2)
  5459. },
  5460. Circ: function (t) {
  5461. return 1 - Math.sqrt(1 - t * t)
  5462. },
  5463. Elastic: function (t) {
  5464. return 0 === t || 1 === t ? t : -Math.pow(2, 8 * (t - 1)) * Math.sin((80 * (t - 1) - 7.5) * Math.PI / 15)
  5465. },
  5466. Back: function (t) {
  5467. return t * t * (3 * t - 2)
  5468. },
  5469. Bounce: function (t) {
  5470. for (var e, i = 4;
  5471. ((e = Math.pow(2, --i)) - 1) / 11 > t;);
  5472. return 1 / Math.pow(4, 3 - i) - 7.5625 * Math.pow((3 * e - 2) / 22 - t, 2)
  5473. }
  5474. }), S.each(l, function (t, e) {
  5475. S.easing["easeIn" + t] = e, S.easing["easeOut" + t] = function (t) {
  5476. return 1 - e(1 - t)
  5477. }, S.easing["easeInOut" + t] = function (t) {
  5478. return t < .5 ? e(2 * t) / 2 : 1 - e(-2 * t + 2) / 2
  5479. }
  5480. });
  5481. var f, g;
  5482. S.effects;
  5483. S.effects.define("blind", "hide", function (t, e) {
  5484. var i = {
  5485. up: ["bottom", "top"],
  5486. vertical: ["bottom", "top"],
  5487. down: ["top", "bottom"],
  5488. left: ["right", "left"],
  5489. horizontal: ["right", "left"],
  5490. right: ["left", "right"]
  5491. },
  5492. n = S(this),
  5493. s = t.direction || "up",
  5494. o = n.cssClip(),
  5495. r = {
  5496. clip: S.extend({}, o)
  5497. },
  5498. a = S.effects.createPlaceholder(n);
  5499. r.clip[i[s][0]] = r.clip[i[s][1]], "show" === t.mode && (n.cssClip(r.clip), a && a.css(S.effects.clipToBox(r)), r.clip = o), a && a.animate(S.effects.clipToBox(r), t.duration, t.easing), n.animate(r, {
  5500. queue: !1,
  5501. duration: t.duration,
  5502. easing: t.easing,
  5503. complete: e
  5504. })
  5505. }), S.effects.define("bounce", function (t, e) {
  5506. var i, n, s, o = S(this),
  5507. r = t.mode,
  5508. a = "hide" === r,
  5509. l = "show" === r,
  5510. c = t.direction || "up",
  5511. u = t.distance,
  5512. h = t.times || 5,
  5513. d = 2 * h + (l || a ? 1 : 0),
  5514. p = t.duration / d,
  5515. f = t.easing,
  5516. g = "up" === c || "down" === c ? "top" : "left",
  5517. m = "up" === c || "left" === c,
  5518. v = 0,
  5519. _ = o.queue().length;
  5520. for (S.effects.createPlaceholder(o), s = o.css(g), u || (u = o["top" == g ? "outerHeight" : "outerWidth"]() / 3), l && ((n = {
  5521. opacity: 1
  5522. })[g] = s, o.css("opacity", 0).css(g, m ? 2 * -u : 2 * u).animate(n, p, f)), a && (u /= Math.pow(2, h - 1)), (n = {})[g] = s; v < h; v++)(i = {})[g] = (m ? "-=" : "+=") + u, o.animate(i, p, f).animate(n, p, f), u = a ? 2 * u : u / 2;
  5523. a && ((i = {
  5524. opacity: 0
  5525. })[g] = (m ? "-=" : "+=") + u, o.animate(i, p, f)), o.queue(e), S.effects.unshift(o, _, 1 + d)
  5526. }), S.effects.define("clip", "hide", function (t, e) {
  5527. var i, n = {},
  5528. s = S(this),
  5529. o = t.direction || "vertical",
  5530. r = "both" === o,
  5531. a = r || "horizontal" === o,
  5532. l = r || "vertical" === o;
  5533. i = s.cssClip(), n.clip = {
  5534. top: l ? (i.bottom - i.top) / 2 : i.top,
  5535. right: a ? (i.right - i.left) / 2 : i.right,
  5536. bottom: l ? (i.bottom - i.top) / 2 : i.bottom,
  5537. left: a ? (i.right - i.left) / 2 : i.left
  5538. }, S.effects.createPlaceholder(s), "show" === t.mode && (s.cssClip(n.clip), n.clip = i), s.animate(n, {
  5539. queue: !1,
  5540. duration: t.duration,
  5541. easing: t.easing,
  5542. complete: e
  5543. })
  5544. }), S.effects.define("drop", "hide", function (t, e) {
  5545. var i, n = S(this),
  5546. s = "show" === t.mode,
  5547. o = t.direction || "left",
  5548. r = "up" === o || "down" === o ? "top" : "left",
  5549. a = "up" === o || "left" === o ? "-=" : "+=",
  5550. l = "+=" == a ? "-=" : "+=",
  5551. c = {
  5552. opacity: 0
  5553. };
  5554. S.effects.createPlaceholder(n), i = t.distance || n["top" == r ? "outerHeight" : "outerWidth"](!0) / 2, c[r] = a + i, s && (n.css(c), c[r] = l + i, c.opacity = 1), n.animate(c, {
  5555. queue: !1,
  5556. duration: t.duration,
  5557. easing: t.easing,
  5558. complete: e
  5559. })
  5560. }), S.effects.define("explode", "hide", function (t, e) {
  5561. function i() {
  5562. m.push(this), m.length === c * u && (h.css({
  5563. visibility: "visible"
  5564. }), S(m).remove(), e())
  5565. }
  5566. var n, s, o, r, a, l, c = t.pieces ? Math.round(Math.sqrt(t.pieces)) : 3,
  5567. u = c,
  5568. h = S(this),
  5569. d = "show" === t.mode,
  5570. p = h.show().css("visibility", "hidden").offset(),
  5571. f = Math.ceil(h.outerWidth() / u),
  5572. g = Math.ceil(h.outerHeight() / c),
  5573. m = [];
  5574. for (n = 0; n < c; n++)
  5575. for (r = p.top + n * g, l = n - (c - 1) / 2, s = 0; s < u; s++) o = p.left + s * f, a = s - (u - 1) / 2, h.clone().appendTo("body").wrap("<div></div>").css({
  5576. position: "absolute",
  5577. visibility: "visible",
  5578. left: -s * f,
  5579. top: -n * g
  5580. }).parent().addClass("ui-effects-explode").css({
  5581. position: "absolute",
  5582. overflow: "hidden",
  5583. width: f,
  5584. height: g,
  5585. left: o + (d ? a * f : 0),
  5586. top: r + (d ? l * g : 0),
  5587. opacity: d ? 0 : 1
  5588. }).animate({
  5589. left: o + (d ? 0 : a * f),
  5590. top: r + (d ? 0 : l * g),
  5591. opacity: d ? 1 : 0
  5592. }, t.duration || 500, t.easing, i)
  5593. }), S.effects.define("fade", "toggle", function (t, e) {
  5594. var i = "show" === t.mode;
  5595. S(this).css("opacity", i ? 0 : 1).animate({
  5596. opacity: i ? 1 : 0
  5597. }, {
  5598. queue: !1,
  5599. duration: t.duration,
  5600. easing: t.easing,
  5601. complete: e
  5602. })
  5603. }), S.effects.define("fold", "hide", function (e, t) {
  5604. var i = S(this),
  5605. n = e.mode,
  5606. s = "show" === n,
  5607. o = "hide" === n,
  5608. r = e.size || 15,
  5609. a = /([0-9]+)%/.exec(r),
  5610. l = !!e.horizFirst ? ["right", "bottom"] : ["bottom", "right"],
  5611. c = e.duration / 2,
  5612. u = S.effects.createPlaceholder(i),
  5613. h = i.cssClip(),
  5614. d = {
  5615. clip: S.extend({}, h)
  5616. },
  5617. p = {
  5618. clip: S.extend({}, h)
  5619. },
  5620. f = [h[l[0]], h[l[1]]],
  5621. g = i.queue().length;
  5622. a && (r = parseInt(a[1], 10) / 100 * f[o ? 0 : 1]), d.clip[l[0]] = r, p.clip[l[0]] = r, p.clip[l[1]] = 0, s && (i.cssClip(p.clip), u && u.css(S.effects.clipToBox(p)), p.clip = h), i.queue(function (t) {
  5623. u && u.animate(S.effects.clipToBox(d), c, e.easing).animate(S.effects.clipToBox(p), c, e.easing), t()
  5624. }).animate(d, c, e.easing).animate(p, c, e.easing).queue(t), S.effects.unshift(i, g, 4)
  5625. }), S.effects.define("highlight", "show", function (t, e) {
  5626. var i = S(this),
  5627. n = {
  5628. backgroundColor: i.css("backgroundColor")
  5629. };
  5630. "hide" === t.mode && (n.opacity = 0), S.effects.saveStyle(i), i.css({
  5631. backgroundImage: "none",
  5632. backgroundColor: t.color || "#ffff99"
  5633. }).animate(n, {
  5634. queue: !1,
  5635. duration: t.duration,
  5636. easing: t.easing,
  5637. complete: e
  5638. })
  5639. }), S.effects.define("size", function (s, e) {
  5640. var t, o, i, n = S(this),
  5641. r = ["fontSize"],
  5642. a = ["borderTopWidth", "borderBottomWidth", "paddingTop", "paddingBottom"],
  5643. l = ["borderLeftWidth", "borderRightWidth", "paddingLeft", "paddingRight"],
  5644. c = s.mode,
  5645. u = "effect" !== c,
  5646. h = s.scale || "both",
  5647. d = s.origin || ["middle", "center"],
  5648. p = n.css("position"),
  5649. f = n.position(),
  5650. g = S.effects.scaledDimensions(n),
  5651. m = s.from || g,
  5652. v = s.to || S.effects.scaledDimensions(n, 0);
  5653. S.effects.createPlaceholder(n), "show" === c && (i = m, m = v, v = i), o = {
  5654. from: {
  5655. y: m.height / g.height,
  5656. x: m.width / g.width
  5657. },
  5658. to: {
  5659. y: v.height / g.height,
  5660. x: v.width / g.width
  5661. }
  5662. }, ("box" === h || "both" === h) && (o.from.y !== o.to.y && (m = S.effects.setTransition(n, a, o.from.y, m), v = S.effects.setTransition(n, a, o.to.y, v)), o.from.x !== o.to.x && (m = S.effects.setTransition(n, l, o.from.x, m), v = S.effects.setTransition(n, l, o.to.x, v))), ("content" === h || "both" === h) && o.from.y !== o.to.y && (m = S.effects.setTransition(n, r, o.from.y, m), v = S.effects.setTransition(n, r, o.to.y, v)), d && (t = S.effects.getBaseline(d, g), m.top = (g.outerHeight - m.outerHeight) * t.y + f.top, m.left = (g.outerWidth - m.outerWidth) * t.x + f.left, v.top = (g.outerHeight - v.outerHeight) * t.y + f.top, v.left = (g.outerWidth - v.outerWidth) * t.x + f.left), n.css(m), ("content" === h || "both" === h) && (a = a.concat(["marginTop", "marginBottom"]).concat(r), l = l.concat(["marginLeft", "marginRight"]), n.find("*[width]").each(function () {
  5663. var t = S(this),
  5664. e = S.effects.scaledDimensions(t),
  5665. i = {
  5666. height: e.height * o.from.y,
  5667. width: e.width * o.from.x,
  5668. outerHeight: e.outerHeight * o.from.y,
  5669. outerWidth: e.outerWidth * o.from.x
  5670. },
  5671. n = {
  5672. height: e.height * o.to.y,
  5673. width: e.width * o.to.x,
  5674. outerHeight: e.height * o.to.y,
  5675. outerWidth: e.width * o.to.x
  5676. };
  5677. o.from.y !== o.to.y && (i = S.effects.setTransition(t, a, o.from.y, i), n = S.effects.setTransition(t, a, o.to.y, n)), o.from.x !== o.to.x && (i = S.effects.setTransition(t, l, o.from.x, i), n = S.effects.setTransition(t, l, o.to.x, n)), u && S.effects.saveStyle(t), t.css(i), t.animate(n, s.duration, s.easing, function () {
  5678. u && S.effects.restoreStyle(t)
  5679. })
  5680. })), n.animate(v, {
  5681. queue: !1,
  5682. duration: s.duration,
  5683. easing: s.easing,
  5684. complete: function () {
  5685. var t = n.offset();
  5686. 0 === v.opacity && n.css("opacity", m.opacity), u || (n.css("position", "static" === p ? "relative" : p).offset(t), S.effects.saveStyle(n)), e()
  5687. }
  5688. })
  5689. }), S.effects.define("scale", function (t, e) {
  5690. var i = S(this),
  5691. n = t.mode,
  5692. s = parseInt(t.percent, 10) || (0 === parseInt(t.percent, 10) ? 0 : "effect" !== n ? 0 : 100),
  5693. o = S.extend(!0, {
  5694. from: S.effects.scaledDimensions(i),
  5695. to: S.effects.scaledDimensions(i, s, t.direction || "both"),
  5696. origin: t.origin || ["middle", "center"]
  5697. }, t);
  5698. t.fade && (o.from.opacity = 1, o.to.opacity = 0), S.effects.effect.size.call(this, o, e)
  5699. }), S.effects.define("puff", "hide", function (t, e) {
  5700. var i = S.extend(!0, {}, t, {
  5701. fade: !0,
  5702. percent: parseInt(t.percent, 10) || 150
  5703. });
  5704. S.effects.effect.scale.call(this, i, e)
  5705. }), S.effects.define("pulsate", "show", function (t, e) {
  5706. var i = S(this),
  5707. n = t.mode,
  5708. s = "show" === n,
  5709. o = s || "hide" === n,
  5710. r = 2 * (t.times || 5) + (o ? 1 : 0),
  5711. a = t.duration / r,
  5712. l = 0,
  5713. c = 1,
  5714. u = i.queue().length;
  5715. for ((s || !i.is(":visible")) && (i.css("opacity", 0).show(), l = 1); c < r; c++) i.animate({
  5716. opacity: l
  5717. }, a, t.easing), l = 1 - l;
  5718. i.animate({
  5719. opacity: l
  5720. }, a, t.easing), i.queue(e), S.effects.unshift(i, u, 1 + r)
  5721. }), S.effects.define("shake", function (t, e) {
  5722. var i = 1,
  5723. n = S(this),
  5724. s = t.direction || "left",
  5725. o = t.distance || 20,
  5726. r = t.times || 3,
  5727. a = 2 * r + 1,
  5728. l = Math.round(t.duration / a),
  5729. c = "up" === s || "down" === s ? "top" : "left",
  5730. u = "up" === s || "left" === s,
  5731. h = {},
  5732. d = {},
  5733. p = {},
  5734. f = n.queue().length;
  5735. for (S.effects.createPlaceholder(n), h[c] = (u ? "-=" : "+=") + o, d[c] = (u ? "+=" : "-=") + 2 * o, p[c] = (u ? "-=" : "+=") + 2 * o, n.animate(h, l, t.easing); i < r; i++) n.animate(d, l, t.easing).animate(p, l, t.easing);
  5736. n.animate(d, l, t.easing).animate(h, l / 2, t.easing).queue(e), S.effects.unshift(n, f, 1 + a)
  5737. }), S.effects.define("slide", "show", function (t, e) {
  5738. var i, n, s = S(this),
  5739. o = {
  5740. up: ["bottom", "top"],
  5741. down: ["top", "bottom"],
  5742. left: ["right", "left"],
  5743. right: ["left", "right"]
  5744. },
  5745. r = t.mode,
  5746. a = t.direction || "left",
  5747. l = "up" === a || "down" === a ? "top" : "left",
  5748. c = "up" === a || "left" === a,
  5749. u = t.distance || s["top" == l ? "outerHeight" : "outerWidth"](!0),
  5750. h = {};
  5751. S.effects.createPlaceholder(s), i = s.cssClip(), n = s.position()[l], h[l] = (c ? -1 : 1) * u + n, h.clip = s.cssClip(), h.clip[o[a][1]] = h.clip[o[a][0]], "show" === r && (s.cssClip(h.clip), s.css(l, h[l]), h.clip = i, h[l] = n), s.animate(h, {
  5752. queue: !1,
  5753. duration: t.duration,
  5754. easing: t.easing,
  5755. complete: e
  5756. })
  5757. }), !1 !== S.uiBackCompat && S.effects.define("transfer", function (t, e) {
  5758. S(this).transfer(t, e)
  5759. }), S.ui.focusable = function (t, e) {
  5760. var i, n, s, o, r, a = t.nodeName.toLowerCase();
  5761. return "area" === a ? (n = (i = t.parentNode).name, !(!t.href || !n || "map" !== i.nodeName.toLowerCase()) && (0 < (s = S("img[usemap='#" + n + "']")).length && s.is(":visible"))) : (/^(input|select|textarea|button|object)$/.test(a) ? (o = !t.disabled) && ((r = S(t).closest("fieldset")[0]) && (o = !r.disabled)) : o = "a" === a && t.href || e, o && S(t).is(":visible") && function (t) {
  5762. for (var e = t.css("visibility");
  5763. "inherit" === e;) e = (t = t.parent()).css("visibility");
  5764. return "hidden" !== e
  5765. }(S(t)))
  5766. }, S.extend(S.expr[":"], {
  5767. focusable: function (t) {
  5768. return S.ui.focusable(t, null != S.attr(t, "tabindex"))
  5769. }
  5770. }), S.ui.focusable, S.fn.form = function () {
  5771. return "string" == typeof this[0].form ? this.closest("form") : S(this[0].form)
  5772. }, S.ui.formResetMixin = {
  5773. _formResetHandler: function () {
  5774. var e = S(this);
  5775. setTimeout(function () {
  5776. var t = e.data("ui-form-reset-instances");
  5777. S.each(t, function () {
  5778. this.refresh()
  5779. })
  5780. })
  5781. },
  5782. _bindFormResetHandler: function () {
  5783. if (this.form = this.element.form(), this.form.length) {
  5784. var t = this.form.data("ui-form-reset-instances") || [];
  5785. t.length || this.form.on("reset.ui-form-reset", this._formResetHandler), t.push(this), this.form.data("ui-form-reset-instances", t)
  5786. }
  5787. },
  5788. _unbindFormResetHandler: function () {
  5789. if (this.form.length) {
  5790. var t = this.form.data("ui-form-reset-instances");
  5791. t.splice(S.inArray(this, t), 1), t.length ? this.form.data("ui-form-reset-instances", t) : this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")
  5792. }
  5793. }
  5794. }, "1.7" === S.fn.jquery.substring(0, 3) && (S.each(["Width", "Height"], function (t, i) {
  5795. function n(t, e, i, n) {
  5796. return S.each(s, function () {
  5797. e -= parseFloat(S.css(t, "padding" + this)) || 0, i && (e -= parseFloat(S.css(t, "border" + this + "Width")) || 0), n && (e -= parseFloat(S.css(t, "margin" + this)) || 0)
  5798. }), e
  5799. }
  5800. var s = "Width" === i ? ["Left", "Right"] : ["Top", "Bottom"],
  5801. o = i.toLowerCase(),
  5802. r = {
  5803. innerWidth: S.fn.innerWidth,
  5804. innerHeight: S.fn.innerHeight,
  5805. outerWidth: S.fn.outerWidth,
  5806. outerHeight: S.fn.outerHeight
  5807. };
  5808. S.fn["inner" + i] = function (t) {
  5809. return void 0 === t ? r["inner" + i].call(this) : this.each(function () {
  5810. S(this).css(o, n(this, t) + "px")
  5811. })
  5812. }, S.fn["outer" + i] = function (t, e) {
  5813. return "number" != typeof t ? r["outer" + i].call(this, t) : this.each(function () {
  5814. S(this).css(o, n(this, t, !0, e) + "px")
  5815. })
  5816. }
  5817. }), S.fn.addBack = function (t) {
  5818. return this.add(null == t ? this.prevObject : this.prevObject.filter(t))
  5819. }), S.ui.keyCode = {
  5820. BACKSPACE: 8,
  5821. COMMA: 188,
  5822. DELETE: 46,
  5823. DOWN: 40,
  5824. END: 35,
  5825. ENTER: 13,
  5826. ESCAPE: 27,
  5827. HOME: 36,
  5828. LEFT: 37,
  5829. PAGE_DOWN: 34,
  5830. PAGE_UP: 33,
  5831. PERIOD: 190,
  5832. RIGHT: 39,
  5833. SPACE: 32,
  5834. TAB: 9,
  5835. UP: 38
  5836. }, S.ui.escapeSelector = (g = /([!"#$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g, function (t) {
  5837. return t.replace(g, "\\$1")
  5838. }), S.fn.labels = function () {
  5839. var t, e, i, n, s;
  5840. return this[0].labels && this[0].labels.length ? this.pushStack(this[0].labels) : (n = this.eq(0).parents("label"), (i = this.attr("id")) && (s = (t = this.eq(0).parents().last()).add(t.length ? t.siblings() : this.siblings()), e = "label[for='" + S.ui.escapeSelector(i) + "']", n = n.add(s.find(e).addBack(e))), this.pushStack(n))
  5841. }, S.fn.scrollParent = function (t) {
  5842. var e = this.css("position"),
  5843. i = "absolute" === e,
  5844. n = t ? /(auto|scroll|hidden)/ : /(auto|scroll)/,
  5845. s = this.parents().filter(function () {
  5846. var t = S(this);
  5847. return (!i || "static" !== t.css("position")) && n.test(t.css("overflow") + t.css("overflow-y") + t.css("overflow-x"))
  5848. }).eq(0);
  5849. return "fixed" !== e && s.length ? s : S(this[0].ownerDocument || document)
  5850. }, S.extend(S.expr[":"], {
  5851. tabbable: function (t) {
  5852. var e = S.attr(t, "tabindex"),
  5853. i = null != e;
  5854. return (!i || 0 <= e) && S.ui.focusable(t, i)
  5855. }
  5856. }), S.fn.extend({
  5857. uniqueId: (f = 0, function () {
  5858. return this.each(function () {
  5859. this.id || (this.id = "ui-id-" + ++f)
  5860. })
  5861. }),
  5862. removeUniqueId: function () {
  5863. return this.each(function () {
  5864. /^ui-id-\d+$/.test(this.id) && S(this).removeAttr("id")
  5865. })
  5866. }
  5867. }), S.widget("ui.accordion", {
  5868. version: "1.12.1",
  5869. options: {
  5870. active: 0,
  5871. animate: {},
  5872. classes: {
  5873. "ui-accordion-header": "ui-corner-top",
  5874. "ui-accordion-header-collapsed": "ui-corner-all",
  5875. "ui-accordion-content": "ui-corner-bottom"
  5876. },
  5877. collapsible: !1,
  5878. event: "click",
  5879. header: "> li > :first-child, > :not(li):even",
  5880. heightStyle: "auto",
  5881. icons: {
  5882. activeHeader: "ui-icon-triangle-1-s",
  5883. header: "ui-icon-triangle-1-e"
  5884. },
  5885. activate: null,
  5886. beforeActivate: null
  5887. },
  5888. hideProps: {
  5889. borderTopWidth: "hide",
  5890. borderBottomWidth: "hide",
  5891. paddingTop: "hide",
  5892. paddingBottom: "hide",
  5893. height: "hide"
  5894. },
  5895. showProps: {
  5896. borderTopWidth: "show",
  5897. borderBottomWidth: "show",
  5898. paddingTop: "show",
  5899. paddingBottom: "show",
  5900. height: "show"
  5901. },
  5902. _create: function () {
  5903. var t = this.options;
  5904. this.prevShow = this.prevHide = S(), this._addClass("ui-accordion", "ui-widget ui-helper-reset"), this.element.attr("role", "tablist"), t.collapsible || !1 !== t.active && null != t.active || (t.active = 0), this._processPanels(), t.active < 0 && (t.active += this.headers.length), this._refresh()
  5905. },
  5906. _getCreateEventData: function () {
  5907. return {
  5908. header: this.active,
  5909. panel: this.active.length ? this.active.next() : S()
  5910. }
  5911. },
  5912. _createIcons: function () {
  5913. var t, e, i = this.options.icons;
  5914. i && (t = S("<span>"), this._addClass(t, "ui-accordion-header-icon", "ui-icon " + i.header), t.prependTo(this.headers), e = this.active.children(".ui-accordion-header-icon"), this._removeClass(e, i.header)._addClass(e, null, i.activeHeader)._addClass(this.headers, "ui-accordion-icons"))
  5915. },
  5916. _destroyIcons: function () {
  5917. this._removeClass(this.headers, "ui-accordion-icons"), this.headers.children(".ui-accordion-header-icon").remove()
  5918. },
  5919. _destroy: function () {
  5920. var t;
  5921. this.element.removeAttr("role"), this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(), this._destroyIcons(), t = this.headers.next().css("display", "").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(), "content" !== this.options.heightStyle && t.css("height", "")
  5922. },
  5923. _setOption: function (t, e) {
  5924. return "active" === t ? void this._activate(e) : ("event" === t && (this.options.event && this._off(this.headers, this.options.event), this._setupEvents(e)), this._super(t, e), "collapsible" !== t || e || !1 !== this.options.active || this._activate(0), void("icons" === t && (this._destroyIcons(), e && this._createIcons())))
  5925. },
  5926. _setOptionDisabled: function (t) {
  5927. this._super(t), this.element.attr("aria-disabled", t), this._toggleClass(null, "ui-state-disabled", !!t), this._toggleClass(this.headers.add(this.headers.next()), null, "ui-state-disabled", !!t)
  5928. },
  5929. _keydown: function (t) {
  5930. if (!t.altKey && !t.ctrlKey) {
  5931. var e = S.ui.keyCode,
  5932. i = this.headers.length,
  5933. n = this.headers.index(t.target),
  5934. s = !1;
  5935. switch (t.keyCode) {
  5936. case e.RIGHT:
  5937. case e.DOWN:
  5938. s = this.headers[(n + 1) % i];
  5939. break;
  5940. case e.LEFT:
  5941. case e.UP:
  5942. s = this.headers[(n - 1 + i) % i];
  5943. break;
  5944. case e.SPACE:
  5945. case e.ENTER:
  5946. this._eventHandler(t);
  5947. break;
  5948. case e.HOME:
  5949. s = this.headers[0];
  5950. break;
  5951. case e.END:
  5952. s = this.headers[i - 1]
  5953. }
  5954. s && (S(t.target).attr("tabIndex", -1), S(s).attr("tabIndex", 0), S(s).trigger("focus"), t.preventDefault())
  5955. }
  5956. },
  5957. _panelKeyDown: function (t) {
  5958. t.keyCode === S.ui.keyCode.UP && t.ctrlKey && S(t.currentTarget).prev().trigger("focus")
  5959. },
  5960. refresh: function () {
  5961. var t = this.options;
  5962. this._processPanels(), !1 === t.active && !0 === t.collapsible || !this.headers.length ? (t.active = !1, this.active = S()) : !1 === t.active ? this._activate(0) : this.active.length && !S.contains(this.element[0], this.active[0]) ? this.headers.length === this.headers.find(".ui-state-disabled").length ? (t.active = !1, this.active = S()) : this._activate(Math.max(0, t.active - 1)) : t.active = this.headers.index(this.active), this._destroyIcons(), this._refresh()
  5963. },
  5964. _processPanels: function () {
  5965. var t = this.headers,
  5966. e = this.panels;
  5967. this.headers = this.element.find(this.options.header), this._addClass(this.headers, "ui-accordion-header ui-accordion-header-collapsed", "ui-state-default"), this.panels = this.headers.next().filter(":not(.ui-accordion-content-active)").hide(), this._addClass(this.panels, "ui-accordion-content", "ui-helper-reset ui-widget-content"), e && (this._off(t.not(this.headers)), this._off(e.not(this.panels)))
  5968. },
  5969. _refresh: function () {
  5970. var i, t = this.options,
  5971. e = t.heightStyle,
  5972. n = this.element.parent();
  5973. this.active = this._findActive(t.active), this._addClass(this.active, "ui-accordion-header-active", "ui-state-active")._removeClass(this.active, "ui-accordion-header-collapsed"), this._addClass(this.active.next(), "ui-accordion-content-active"), this.active.next().show(), this.headers.attr("role", "tab").each(function () {
  5974. var t = S(this),
  5975. e = t.uniqueId().attr("id"),
  5976. i = t.next(),
  5977. n = i.uniqueId().attr("id");
  5978. t.attr("aria-controls", n), i.attr("aria-labelledby", e)
  5979. }).next().attr("role", "tabpanel"), this.headers.not(this.active).attr({
  5980. "aria-selected": "false",
  5981. "aria-expanded": "false",
  5982. tabIndex: -1
  5983. }).next().attr({
  5984. "aria-hidden": "true"
  5985. }).hide(), this.active.length ? this.active.attr({
  5986. "aria-selected": "true",
  5987. "aria-expanded": "true",
  5988. tabIndex: 0
  5989. }).next().attr({
  5990. "aria-hidden": "false"
  5991. }) : this.headers.eq(0).attr("tabIndex", 0), this._createIcons(), this._setupEvents(t.event), "fill" === e ? (i = n.height(), this.element.siblings(":visible").each(function () {
  5992. var t = S(this),
  5993. e = t.css("position");
  5994. "absolute" !== e && "fixed" !== e && (i -= t.outerHeight(!0))
  5995. }), this.headers.each(function () {
  5996. i -= S(this).outerHeight(!0)
  5997. }), this.headers.next().each(function () {
  5998. S(this).height(Math.max(0, i - S(this).innerHeight() + S(this).height()))
  5999. }).css("overflow", "auto")) : "auto" === e && (i = 0, this.headers.next().each(function () {
  6000. var t = S(this).is(":visible");
  6001. t || S(this).show(), i = Math.max(i, S(this).css("height", "").height()), t || S(this).hide()
  6002. }).height(i))
  6003. },
  6004. _activate: function (t) {
  6005. var e = this._findActive(t)[0];
  6006. e !== this.active[0] && (e = e || this.active[0], this._eventHandler({
  6007. target: e,
  6008. currentTarget: e,
  6009. preventDefault: S.noop
  6010. }))
  6011. },
  6012. _findActive: function (t) {
  6013. return "number" == typeof t ? this.headers.eq(t) : S()
  6014. },
  6015. _setupEvents: function (t) {
  6016. var i = {
  6017. keydown: "_keydown"
  6018. };
  6019. t && S.each(t.split(" "), function (t, e) {
  6020. i[e] = "_eventHandler"
  6021. }), this._off(this.headers.add(this.headers.next())), this._on(this.headers, i), this._on(this.headers.next(), {
  6022. keydown: "_panelKeyDown"
  6023. }), this._hoverable(this.headers), this._focusable(this.headers)
  6024. },
  6025. _eventHandler: function (t) {
  6026. var e, i, n = this.options,
  6027. s = this.active,
  6028. o = S(t.currentTarget),
  6029. r = o[0] === s[0],
  6030. a = r && n.collapsible,
  6031. l = a ? S() : o.next(),
  6032. c = s.next(),
  6033. u = {
  6034. oldHeader: s,
  6035. oldPanel: c,
  6036. newHeader: a ? S() : o,
  6037. newPanel: l
  6038. };
  6039. t.preventDefault(), r && !n.collapsible || !1 === this._trigger("beforeActivate", t, u) || (n.active = !a && this.headers.index(o), this.active = r ? S() : o, this._toggle(u), this._removeClass(s, "ui-accordion-header-active", "ui-state-active"), n.icons && (e = s.children(".ui-accordion-header-icon"), this._removeClass(e, null, n.icons.activeHeader)._addClass(e, null, n.icons.header)), r || (this._removeClass(o, "ui-accordion-header-collapsed")._addClass(o, "ui-accordion-header-active", "ui-state-active"), n.icons && (i = o.children(".ui-accordion-header-icon"), this._removeClass(i, null, n.icons.header)._addClass(i, null, n.icons.activeHeader)), this._addClass(o.next(), "ui-accordion-content-active")))
  6040. },
  6041. _toggle: function (t) {
  6042. var e = t.newPanel,
  6043. i = this.prevShow.length ? this.prevShow : t.oldPanel;
  6044. this.prevShow.add(this.prevHide).stop(!0, !0), this.prevShow = e, this.prevHide = i, this.options.animate ? this._animate(e, i, t) : (i.hide(), e.show(), this._toggleComplete(t)), i.attr({
  6045. "aria-hidden": "true"
  6046. }), i.prev().attr({
  6047. "aria-selected": "false",
  6048. "aria-expanded": "false"
  6049. }), e.length && i.length ? i.prev().attr({
  6050. tabIndex: -1,
  6051. "aria-expanded": "false"
  6052. }) : e.length && this.headers.filter(function () {
  6053. return 0 === parseInt(S(this).attr("tabIndex"), 10)
  6054. }).attr("tabIndex", -1), e.attr("aria-hidden", "false").prev().attr({
  6055. "aria-selected": "true",
  6056. "aria-expanded": "true",
  6057. tabIndex: 0
  6058. })
  6059. },
  6060. _animate: function (t, i, e) {
  6061. function n() {
  6062. a._toggleComplete(e)
  6063. }
  6064. var s, o, r, a = this,
  6065. l = 0,
  6066. c = t.css("box-sizing"),
  6067. u = t.length && (!i.length || t.index() < i.index()),
  6068. h = this.options.animate || {},
  6069. d = u && h.down || h;
  6070. return "number" == typeof d && (r = d), "string" == typeof d && (o = d), o = o || d.easing || h.easing, r = r || d.duration || h.duration, i.length ? t.length ? (s = t.show().outerHeight(), i.animate(this.hideProps, {
  6071. duration: r,
  6072. easing: o,
  6073. step: function (t, e) {
  6074. e.now = Math.round(t)
  6075. }
  6076. }), void t.hide().animate(this.showProps, {
  6077. duration: r,
  6078. easing: o,
  6079. complete: n,
  6080. step: function (t, e) {
  6081. e.now = Math.round(t), "height" !== e.prop ? "content-box" === c && (l += e.now) : "content" !== a.options.heightStyle && (e.now = Math.round(s - i.outerHeight() - l), l = 0)
  6082. }
  6083. })) : i.animate(this.hideProps, r, o, n) : t.animate(this.showProps, r, o, n)
  6084. },
  6085. _toggleComplete: function (t) {
  6086. var e = t.oldPanel,
  6087. i = e.prev();
  6088. this._removeClass(e, "ui-accordion-content-active"), this._removeClass(i, "ui-accordion-header-active")._addClass(i, "ui-accordion-header-collapsed"), e.length && (e.parent()[0].className = e.parent()[0].className), this._trigger("activate", null, t)
  6089. }
  6090. }), S.ui.safeActiveElement = function (e) {
  6091. var i;
  6092. try {
  6093. i = e.activeElement
  6094. } catch (t) {
  6095. i = e.body
  6096. }
  6097. return i || (i = e.body), i.nodeName || (i = e.body), i
  6098. }, S.widget("ui.menu", {
  6099. version: "1.12.1",
  6100. defaultElement: "<ul>",
  6101. delay: 300,
  6102. options: {
  6103. icons: {
  6104. submenu: "ui-icon-caret-1-e"
  6105. },
  6106. items: "> *",
  6107. menus: "ul",
  6108. position: {
  6109. my: "left top",
  6110. at: "right top"
  6111. },
  6112. role: "menu",
  6113. blur: null,
  6114. focus: null,
  6115. select: null
  6116. },
  6117. _create: function () {
  6118. this.activeMenu = this.element, this.mouseHandled = !1, this.element.uniqueId().attr({
  6119. role: this.options.role,
  6120. tabIndex: 0
  6121. }), this._addClass("ui-menu", "ui-widget ui-widget-content"), this._on({
  6122. "mousedown .ui-menu-item": function (t) {
  6123. t.preventDefault()
  6124. },
  6125. "click .ui-menu-item": function (t) {
  6126. var e = S(t.target),
  6127. i = S(S.ui.safeActiveElement(this.document[0]));
  6128. !this.mouseHandled && e.not(".ui-state-disabled").length && (this.select(t), t.isPropagationStopped() || (this.mouseHandled = !0), e.has(".ui-menu").length ? this.expand(t) : !this.element.is(":focus") && i.closest(".ui-menu").length && (this.element.trigger("focus", [!0]), this.active && 1 === this.active.parents(".ui-menu").length && clearTimeout(this.timer)))
  6129. },
  6130. "mouseenter .ui-menu-item": function (t) {
  6131. if (!this.previousFilter) {
  6132. var e = S(t.target).closest(".ui-menu-item"),
  6133. i = S(t.currentTarget);
  6134. e[0] === i[0] && (this._removeClass(i.siblings().children(".ui-state-active"), null, "ui-state-active"), this.focus(t, i))
  6135. }
  6136. },
  6137. mouseleave: "collapseAll",
  6138. "mouseleave .ui-menu": "collapseAll",
  6139. focus: function (t, e) {
  6140. var i = this.active || this.element.find(this.options.items).eq(0);
  6141. e || this.focus(t, i)
  6142. },
  6143. blur: function (t) {
  6144. this._delay(function () {
  6145. !S.contains(this.element[0], S.ui.safeActiveElement(this.document[0])) && this.collapseAll(t)
  6146. })
  6147. },
  6148. keydown: "_keydown"
  6149. }), this.refresh(), this._on(this.document, {
  6150. click: function (t) {
  6151. this._closeOnDocumentClick(t) && this.collapseAll(t), this.mouseHandled = !1
  6152. }
  6153. })
  6154. },
  6155. _destroy: function () {
  6156. var t = this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");
  6157. this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(), t.children().each(function () {
  6158. var t = S(this);
  6159. t.data("ui-menu-submenu-caret") && t.remove()
  6160. })
  6161. },
  6162. _keydown: function (t) {
  6163. var e, i, n, s, o = !0;
  6164. switch (t.keyCode) {
  6165. case S.ui.keyCode.PAGE_UP:
  6166. this.previousPage(t);
  6167. break;
  6168. case S.ui.keyCode.PAGE_DOWN:
  6169. this.nextPage(t);
  6170. break;
  6171. case S.ui.keyCode.HOME:
  6172. this._move("first", "first", t);
  6173. break;
  6174. case S.ui.keyCode.END:
  6175. this._move("last", "last", t);
  6176. break;
  6177. case S.ui.keyCode.UP:
  6178. this.previous(t);
  6179. break;
  6180. case S.ui.keyCode.DOWN:
  6181. this.next(t);
  6182. break;
  6183. case S.ui.keyCode.LEFT:
  6184. this.collapse(t);
  6185. break;
  6186. case S.ui.keyCode.RIGHT:
  6187. this.active && !this.active.is(".ui-state-disabled") && this.expand(t);
  6188. break;
  6189. case S.ui.keyCode.ENTER:
  6190. case S.ui.keyCode.SPACE:
  6191. this._activate(t);
  6192. break;
  6193. case S.ui.keyCode.ESCAPE:
  6194. this.collapse(t);
  6195. break;
  6196. default:
  6197. o = !1, i = this.previousFilter || "", s = !1, n = 96 <= t.keyCode && t.keyCode <= 105 ? "" + (t.keyCode - 96) : String.fromCharCode(t.keyCode), clearTimeout(this.filterTimer), n === i ? s = !0 : n = i + n, e = this._filterMenuItems(n), (e = s && -1 !== e.index(this.active.next()) ? this.active.nextAll(".ui-menu-item") : e).length || (n = String.fromCharCode(t.keyCode), e = this._filterMenuItems(n)), e.length ? (this.focus(t, e), this.previousFilter = n, this.filterTimer = this._delay(function () {
  6198. delete this.previousFilter
  6199. }, 1e3)) : delete this.previousFilter
  6200. }
  6201. o && t.preventDefault()
  6202. },
  6203. _activate: function (t) {
  6204. this.active && !this.active.is(".ui-state-disabled") && (this.active.children("[aria-haspopup='true']").length ? this.expand(t) : this.select(t))
  6205. },
  6206. refresh: function () {
  6207. var t, e, i, n, s = this,
  6208. o = this.options.icons.submenu,
  6209. r = this.element.find(this.options.menus);
  6210. this._toggleClass("ui-menu-icons", null, !!this.element.find(".ui-icon").length), e = r.filter(":not(.ui-menu)").hide().attr({
  6211. role: this.options.role,
  6212. "aria-hidden": "true",
  6213. "aria-expanded": "false"
  6214. }).each(function () {
  6215. var t = S(this),
  6216. e = t.prev(),
  6217. i = S("<span>").data("ui-menu-submenu-caret", !0);
  6218. s._addClass(i, "ui-menu-icon", "ui-icon " + o), e.attr("aria-haspopup", "true").prepend(i), t.attr("aria-labelledby", e.attr("id"))
  6219. }), this._addClass(e, "ui-menu", "ui-widget ui-widget-content ui-front"), (t = r.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function () {
  6220. var t = S(this);
  6221. s._isDivider(t) && s._addClass(t, "ui-menu-divider", "ui-widget-content")
  6222. }), n = (i = t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({
  6223. tabIndex: -1,
  6224. role: this._itemRole()
  6225. }), this._addClass(i, "ui-menu-item")._addClass(n, "ui-menu-item-wrapper"), t.filter(".ui-state-disabled").attr("aria-disabled", "true"), this.active && !S.contains(this.element[0], this.active[0]) && this.blur()
  6226. },
  6227. _itemRole: function () {
  6228. return {
  6229. menu: "menuitem",
  6230. listbox: "option"
  6231. } [this.options.role]
  6232. },
  6233. _setOption: function (t, e) {
  6234. if ("icons" === t) {
  6235. var i = this.element.find(".ui-menu-icon");
  6236. this._removeClass(i, null, this.options.icons.submenu)._addClass(i, null, e.submenu)
  6237. }
  6238. this._super(t, e)
  6239. },
  6240. _setOptionDisabled: function (t) {
  6241. this._super(t), this.element.attr("aria-disabled", t + ""), this._toggleClass(null, "ui-state-disabled", !!t)
  6242. },
  6243. focus: function (t, e) {
  6244. var i, n, s;
  6245. this.blur(t, t && "focus" === t.type), this._scrollIntoView(e), this.active = e.first(), n = this.active.children(".ui-menu-item-wrapper"), this._addClass(n, null, "ui-state-active"), this.options.role && this.element.attr("aria-activedescendant", n.attr("id")), s = this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"), this._addClass(s, null, "ui-state-active"), t && "keydown" === t.type ? this._close() : this.timer = this._delay(function () {
  6246. this._close()
  6247. }, this.delay), (i = e.children(".ui-menu")).length && t && /^mouse/.test(t.type) && this._startOpening(i), this.activeMenu = e.parent(), this._trigger("focus", t, {
  6248. item: e
  6249. })
  6250. },
  6251. _scrollIntoView: function (t) {
  6252. var e, i, n, s, o, r;
  6253. this._hasScroll() && (e = parseFloat(S.css(this.activeMenu[0], "borderTopWidth")) || 0, i = parseFloat(S.css(this.activeMenu[0], "paddingTop")) || 0, n = t.offset().top - this.activeMenu.offset().top - e - i, s = this.activeMenu.scrollTop(), o = this.activeMenu.height(), r = t.outerHeight(), n < 0 ? this.activeMenu.scrollTop(s + n) : o < n + r && this.activeMenu.scrollTop(s + n - o + r))
  6254. },
  6255. blur: function (t, e) {
  6256. e || clearTimeout(this.timer), this.active && (this._removeClass(this.active.children(".ui-menu-item-wrapper"), null, "ui-state-active"), this._trigger("blur", t, {
  6257. item: this.active
  6258. }), this.active = null)
  6259. },
  6260. _startOpening: function (t) {
  6261. clearTimeout(this.timer), "true" === t.attr("aria-hidden") && (this.timer = this._delay(function () {
  6262. this._close(), this._open(t)
  6263. }, this.delay))
  6264. },
  6265. _open: function (t) {
  6266. var e = S.extend({
  6267. of: this.active
  6268. }, this.options.position);
  6269. clearTimeout(this.timer), this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden", "true"), t.show().removeAttr("aria-hidden").attr("aria-expanded", "true").position(e)
  6270. },
  6271. collapseAll: function (e, i) {
  6272. clearTimeout(this.timer), this.timer = this._delay(function () {
  6273. var t = i ? this.element : S(e && e.target).closest(this.element.find(".ui-menu"));
  6274. t.length || (t = this.element), this._close(t), this.blur(e), this._removeClass(t.find(".ui-state-active"), null, "ui-state-active"), this.activeMenu = t
  6275. }, this.delay)
  6276. },
  6277. _close: function (t) {
  6278. t || (t = this.active ? this.active.parent() : this.element), t.find(".ui-menu").hide().attr("aria-hidden", "true").attr("aria-expanded", "false")
  6279. },
  6280. _closeOnDocumentClick: function (t) {
  6281. return !S(t.target).closest(".ui-menu").length
  6282. },
  6283. _isDivider: function (t) {
  6284. return !/[^\-\u2014\u2013\s]/.test(t.text())
  6285. },
  6286. collapse: function (t) {
  6287. var e = this.active && this.active.parent().closest(".ui-menu-item", this.element);
  6288. e && e.length && (this._close(), this.focus(t, e))
  6289. },
  6290. expand: function (t) {
  6291. var e = this.active && this.active.children(".ui-menu ").find(this.options.items).first();
  6292. e && e.length && (this._open(e.parent()), this._delay(function () {
  6293. this.focus(t, e)
  6294. }))
  6295. },
  6296. next: function (t) {
  6297. this._move("next", "first", t)
  6298. },
  6299. previous: function (t) {
  6300. this._move("prev", "last", t)
  6301. },
  6302. isFirstItem: function () {
  6303. return this.active && !this.active.prevAll(".ui-menu-item").length
  6304. },
  6305. isLastItem: function () {
  6306. return this.active && !this.active.nextAll(".ui-menu-item").length
  6307. },
  6308. _move: function (t, e, i) {
  6309. var n;
  6310. this.active && (n = "first" === t || "last" === t ? this.active["first" === t ? "prevAll" : "nextAll"](".ui-menu-item").eq(-1) : this.active[t + "All"](".ui-menu-item").eq(0)), n && n.length && this.active || (n = this.activeMenu.find(this.options.items)[e]()), this.focus(i, n)
  6311. },
  6312. nextPage: function (t) {
  6313. var e, i, n;
  6314. return this.active ? void(this.isLastItem() || (this._hasScroll() ? (i = this.active.offset().top, n = this.element.height(), this.active.nextAll(".ui-menu-item").each(function () {
  6315. return (e = S(this)).offset().top - i - n < 0
  6316. }), this.focus(t, e)) : this.focus(t, this.activeMenu.find(this.options.items)[this.active ? "last" : "first"]()))) : void this.next(t)
  6317. },
  6318. previousPage: function (t) {
  6319. var e, i, n;
  6320. return this.active ? void(this.isFirstItem() || (this._hasScroll() ? (i = this.active.offset().top, n = this.element.height(), this.active.prevAll(".ui-menu-item").each(function () {
  6321. return 0 < (e = S(this)).offset().top - i + n
  6322. }), this.focus(t, e)) : this.focus(t, this.activeMenu.find(this.options.items).first()))) : void this.next(t)
  6323. },
  6324. _hasScroll: function () {
  6325. return this.element.outerHeight() < this.element.prop("scrollHeight")
  6326. },
  6327. select: function (t) {
  6328. this.active = this.active || S(t.target).closest(".ui-menu-item");
  6329. var e = {
  6330. item: this.active
  6331. };
  6332. this.active.has(".ui-menu").length || this.collapseAll(t, !0), this._trigger("select", t, e)
  6333. },
  6334. _filterMenuItems: function (t) {
  6335. var e = t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&"),
  6336. i = RegExp("^" + e, "i");
  6337. return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function () {
  6338. return i.test(S.trim(S(this).children(".ui-menu-item-wrapper").text()))
  6339. })
  6340. }
  6341. }), S.widget("ui.autocomplete", {
  6342. version: "1.12.1",
  6343. defaultElement: "<input>",
  6344. options: {
  6345. appendTo: null,
  6346. autoFocus: !1,
  6347. delay: 300,
  6348. minLength: 1,
  6349. position: {
  6350. my: "left top",
  6351. at: "left bottom",
  6352. collision: "none"
  6353. },
  6354. source: null,
  6355. change: null,
  6356. close: null,
  6357. focus: null,
  6358. open: null,
  6359. response: null,
  6360. search: null,
  6361. select: null
  6362. },
  6363. requestIndex: 0,
  6364. pending: 0,
  6365. _create: function () {
  6366. var i, n, s, t = this.element[0].nodeName.toLowerCase(),
  6367. e = "textarea" === t,
  6368. o = "input" === t;
  6369. this.isMultiLine = e || !o && this._isContentEditable(this.element), this.valueMethod = this.element[e || o ? "val" : "text"], this.isNewMenu = !0, this._addClass("ui-autocomplete-input"), this.element.attr("autocomplete", "off"), this._on(this.element, {
  6370. keydown: function (t) {
  6371. if (this.element.prop("readOnly")) n = s = i = !0;
  6372. else {
  6373. n = s = i = !1;
  6374. var e = S.ui.keyCode;
  6375. switch (t.keyCode) {
  6376. case e.PAGE_UP:
  6377. i = !0, this._move("previousPage", t);
  6378. break;
  6379. case e.PAGE_DOWN:
  6380. i = !0, this._move("nextPage", t);
  6381. break;
  6382. case e.UP:
  6383. i = !0, this._keyEvent("previous", t);
  6384. break;
  6385. case e.DOWN:
  6386. i = !0, this._keyEvent("next", t);
  6387. break;
  6388. case e.ENTER:
  6389. this.menu.active && (i = !0, t.preventDefault(), this.menu.select(t));
  6390. break;
  6391. case e.TAB:
  6392. this.menu.active && this.menu.select(t);
  6393. break;
  6394. case e.ESCAPE:
  6395. this.menu.element.is(":visible") && (this.isMultiLine || this._value(this.term), this.close(t), t.preventDefault());
  6396. break;
  6397. default:
  6398. n = !0, this._searchTimeout(t)
  6399. }
  6400. }
  6401. },
  6402. keypress: function (t) {
  6403. if (i) return i = !1, void((!this.isMultiLine || this.menu.element.is(":visible")) && t.preventDefault());
  6404. if (!n) {
  6405. var e = S.ui.keyCode;
  6406. switch (t.keyCode) {
  6407. case e.PAGE_UP:
  6408. this._move("previousPage", t);
  6409. break;
  6410. case e.PAGE_DOWN:
  6411. this._move("nextPage", t);
  6412. break;
  6413. case e.UP:
  6414. this._keyEvent("previous", t);
  6415. break;
  6416. case e.DOWN:
  6417. this._keyEvent("next", t)
  6418. }
  6419. }
  6420. },
  6421. input: function (t) {
  6422. return s ? (s = !1, void t.preventDefault()) : void this._searchTimeout(t)
  6423. },
  6424. focus: function () {
  6425. this.selectedItem = null, this.previous = this._value()
  6426. },
  6427. blur: function (t) {
  6428. return this.cancelBlur ? void delete this.cancelBlur : (clearTimeout(this.searching), this.close(t), void this._change(t))
  6429. }
  6430. }), this._initSource(), this.menu = S("<ul>").appendTo(this._appendTo()).menu({
  6431. role: null
  6432. }).hide().menu("instance"), this._addClass(this.menu.element, "ui-autocomplete", "ui-front"), this._on(this.menu.element, {
  6433. mousedown: function (t) {
  6434. t.preventDefault(), this.cancelBlur = !0, this._delay(function () {
  6435. delete this.cancelBlur, this.element[0] !== S.ui.safeActiveElement(this.document[0]) && this.element.trigger("focus")
  6436. })
  6437. },
  6438. menufocus: function (t, e) {
  6439. var i, n;
  6440. return this.isNewMenu && (this.isNewMenu = !1, t.originalEvent && /^mouse/.test(t.originalEvent.type)) ? (this.menu.blur(), void this.document.one("mousemove", function () {
  6441. S(t.target).trigger(t.originalEvent)
  6442. })) : (n = e.item.data("ui-autocomplete-item"), !1 !== this._trigger("focus", t, {
  6443. item: n
  6444. }) && t.originalEvent && /^key/.test(t.originalEvent.type) && this._value(n.value), void((i = e.item.attr("aria-label") || n.value) && S.trim(i).length && (this.liveRegion.children().hide(), S("<div>").text(i).appendTo(this.liveRegion))))
  6445. },
  6446. menuselect: function (t, e) {
  6447. var i = e.item.data("ui-autocomplete-item"),
  6448. n = this.previous;
  6449. this.element[0] !== S.ui.safeActiveElement(this.document[0]) && (this.element.trigger("focus"), this.previous = n, this._delay(function () {
  6450. this.previous = n, this.selectedItem = i
  6451. })), !1 !== this._trigger("select", t, {
  6452. item: i
  6453. }) && this._value(i.value), this.term = this._value(), this.close(t), this.selectedItem = i
  6454. }
  6455. }), this.liveRegion = S("<div>", {
  6456. role: "status",
  6457. "aria-live": "assertive",
  6458. "aria-relevant": "additions"
  6459. }).appendTo(this.document[0].body), this._addClass(this.liveRegion, null, "ui-helper-hidden-accessible"), this._on(this.window, {
  6460. beforeunload: function () {
  6461. this.element.removeAttr("autocomplete")
  6462. }
  6463. })
  6464. },
  6465. _destroy: function () {
  6466. clearTimeout(this.searching), this.element.removeAttr("autocomplete"), this.menu.element.remove(), this.liveRegion.remove()
  6467. },
  6468. _setOption: function (t, e) {
  6469. this._super(t, e), "source" === t && this._initSource(), "appendTo" === t && this.menu.element.appendTo(this._appendTo()), "disabled" === t && e && this.xhr && this.xhr.abort()
  6470. },
  6471. _isEventTargetInWidget: function (t) {
  6472. var e = this.menu.element[0];
  6473. return t.target === this.element[0] || t.target === e || S.contains(e, t.target)
  6474. },
  6475. _closeOnClickOutside: function (t) {
  6476. this._isEventTargetInWidget(t) || this.close()
  6477. },
  6478. _appendTo: function () {
  6479. var t = this.options.appendTo;
  6480. return t && (t = t.jquery || t.nodeType ? S(t) : this.document.find(t).eq(0)), t && t[0] || (t = this.element.closest(".ui-front, dialog")), t.length || (t = this.document[0].body), t
  6481. },
  6482. _initSource: function () {
  6483. var i, n, s = this;
  6484. S.isArray(this.options.source) ? (i = this.options.source, this.source = function (t, e) {
  6485. e(S.ui.autocomplete.filter(i, t.term))
  6486. }) : "string" == typeof this.options.source ? (n = this.options.source, this.source = function (t, e) {
  6487. s.xhr && s.xhr.abort(), s.xhr = S.ajax({
  6488. url: n,
  6489. data: t,
  6490. dataType: "json",
  6491. success: function (t) {
  6492. e(t)
  6493. },
  6494. error: function () {
  6495. e([])
  6496. }
  6497. })
  6498. }) : this.source = this.options.source
  6499. },
  6500. _searchTimeout: function (n) {
  6501. clearTimeout(this.searching), this.searching = this._delay(function () {
  6502. var t = this.term === this._value(),
  6503. e = this.menu.element.is(":visible"),
  6504. i = n.altKey || n.ctrlKey || n.metaKey || n.shiftKey;
  6505. (!t || t && !e && !i) && (this.selectedItem = null, this.search(null, n))
  6506. }, this.options.delay)
  6507. },
  6508. search: function (t, e) {
  6509. return t = null != t ? t : this._value(), this.term = this._value(), t.length < this.options.minLength ? this.close(e) : !1 !== this._trigger("search", e) ? this._search(t) : void 0
  6510. },
  6511. _search: function (t) {
  6512. this.pending++, this._addClass("ui-autocomplete-loading"), this.cancelSearch = !1, this.source({
  6513. term: t
  6514. }, this._response())
  6515. },
  6516. _response: function () {
  6517. var e = ++this.requestIndex;
  6518. return S.proxy(function (t) {
  6519. e === this.requestIndex && this.__response(t), this.pending--, this.pending || this._removeClass("ui-autocomplete-loading")
  6520. }, this)
  6521. },
  6522. __response: function (t) {
  6523. t && (t = this._normalize(t)), this._trigger("response", null, {
  6524. content: t
  6525. }), !this.options.disabled && t && t.length && !this.cancelSearch ? (this._suggest(t), this._trigger("open")) : this._close()
  6526. },
  6527. close: function (t) {
  6528. this.cancelSearch = !0, this._close(t)
  6529. },
  6530. _close: function (t) {
  6531. this._off(this.document, "mousedown"), this.menu.element.is(":visible") && (this.menu.element.hide(), this.menu.blur(), this.isNewMenu = !0, this._trigger("close", t))
  6532. },
  6533. _change: function (t) {
  6534. this.previous !== this._value() && this._trigger("change", t, {
  6535. item: this.selectedItem
  6536. })
  6537. },
  6538. _normalize: function (t) {
  6539. return t.length && t[0].label && t[0].value ? t : S.map(t, function (t) {
  6540. return "string" == typeof t ? {
  6541. label: t,
  6542. value: t
  6543. } : S.extend({}, t, {
  6544. label: t.label || t.value,
  6545. value: t.value || t.label
  6546. })
  6547. })
  6548. },
  6549. _suggest: function (t) {
  6550. var e = this.menu.element.empty();
  6551. this._renderMenu(e, t), this.isNewMenu = !0, this.menu.refresh(), e.show(), this._resizeMenu(), e.position(S.extend({
  6552. of: this.element
  6553. }, this.options.position)), this.options.autoFocus && this.menu.next(), this._on(this.document, {
  6554. mousedown: "_closeOnClickOutside"
  6555. })
  6556. },
  6557. _resizeMenu: function () {
  6558. var t = this.menu.element;
  6559. t.outerWidth(Math.max(t.width("").outerWidth() + 1, this.element.outerWidth()))
  6560. },
  6561. _renderMenu: function (i, t) {
  6562. var n = this;
  6563. S.each(t, function (t, e) {
  6564. n._renderItemData(i, e)
  6565. })
  6566. },
  6567. _renderItemData: function (t, e) {
  6568. return this._renderItem(t, e).data("ui-autocomplete-item", e)
  6569. },
  6570. _renderItem: function (t, e) {
  6571. return S("<li>").append(S("<div>").text(e.label)).appendTo(t)
  6572. },
  6573. _move: function (t, e) {
  6574. return this.menu.element.is(":visible") ? this.menu.isFirstItem() && /^previous/.test(t) || this.menu.isLastItem() && /^next/.test(t) ? (this.isMultiLine || this._value(this.term), void this.menu.blur()) : void this.menu[t](e) : void this.search(null, e)
  6575. },
  6576. widget: function () {
  6577. return this.menu.element
  6578. },
  6579. _value: function () {
  6580. return this.valueMethod.apply(this.element, arguments)
  6581. },
  6582. _keyEvent: function (t, e) {
  6583. (!this.isMultiLine || this.menu.element.is(":visible")) && (this._move(t, e), e.preventDefault())
  6584. },
  6585. _isContentEditable: function (t) {
  6586. if (!t.length) return !1;
  6587. var e = t.prop("contentEditable");
  6588. return "inherit" === e ? this._isContentEditable(t.parent()) : "true" === e
  6589. }
  6590. }), S.extend(S.ui.autocomplete, {
  6591. escapeRegex: function (t) {
  6592. return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&")
  6593. },
  6594. filter: function (t, e) {
  6595. var i = RegExp(S.ui.autocomplete.escapeRegex(e), "i");
  6596. return S.grep(t, function (t) {
  6597. return i.test(t.label || t.value || t)
  6598. })
  6599. }
  6600. }), S.widget("ui.autocomplete", S.ui.autocomplete, {
  6601. options: {
  6602. messages: {
  6603. noResults: "No search results.",
  6604. results: function (t) {
  6605. return t + (1 < t ? " results are" : " result is") + " available, use up and down arrow keys to navigate."
  6606. }
  6607. }
  6608. },
  6609. __response: function (t) {
  6610. var e;
  6611. this._superApply(arguments), this.options.disabled || this.cancelSearch || (e = t && t.length ? this.options.messages.results(t.length) : this.options.messages.noResults, this.liveRegion.children().hide(), S("<div>").text(e).appendTo(this.liveRegion))
  6612. }
  6613. }), S.ui.autocomplete;
  6614. var m, v, _ = /ui-corner-([a-z]){2,6}/g;
  6615. S.widget("ui.controlgroup", {
  6616. version: "1.12.1",
  6617. defaultElement: "<div>",
  6618. options: {
  6619. direction: "horizontal",
  6620. disabled: null,
  6621. onlyVisible: !0,
  6622. items: {
  6623. button: "input[type=button], input[type=submit], input[type=reset], button, a",
  6624. controlgroupLabel: ".ui-controlgroup-label",
  6625. checkboxradio: "input[type='checkbox'], input[type='radio']",
  6626. selectmenu: "select",
  6627. spinner: ".ui-spinner-input"
  6628. }
  6629. },
  6630. _create: function () {
  6631. this._enhance()
  6632. },
  6633. _enhance: function () {
  6634. this.element.attr("role", "toolbar"), this.refresh()
  6635. },
  6636. _destroy: function () {
  6637. this._callChildMethod("destroy"), this.childWidgets.removeData("ui-controlgroup-data"), this.element.removeAttr("role"), this.options.items.controlgroupLabel && this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()
  6638. },
  6639. _initWidgets: function () {
  6640. var r = this,
  6641. a = [];
  6642. S.each(this.options.items, function (s, t) {
  6643. var e, o = {};
  6644. return t ? "controlgroupLabel" === s ? ((e = r.element.find(t)).each(function () {
  6645. var t = S(this);
  6646. t.children(".ui-controlgroup-label-contents").length || t.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")
  6647. }), r._addClass(e, null, "ui-widget ui-widget-content ui-state-default"), void(a = a.concat(e.get()))) : void(S.fn[s] && (o = r["_" + s + "Options"] ? r["_" + s + "Options"]("middle") : {
  6648. classes: {}
  6649. }, r.element.find(t).each(function () {
  6650. var t = S(this),
  6651. e = t[s]("instance"),
  6652. i = S.widget.extend({}, o);
  6653. if ("button" !== s || !t.parent(".ui-spinner").length) {
  6654. e || (e = t[s]()[s]("instance")), e && (i.classes = r._resolveClassesValues(i.classes, e)), t[s](i);
  6655. var n = t[s]("widget");
  6656. S.data(n[0], "ui-controlgroup-data", e || t[s]("instance")), a.push(n[0])
  6657. }
  6658. }))) : void 0
  6659. }), this.childWidgets = S(S.unique(a)), this._addClass(this.childWidgets, "ui-controlgroup-item")
  6660. },
  6661. _callChildMethod: function (e) {
  6662. this.childWidgets.each(function () {
  6663. var t = S(this).data("ui-controlgroup-data");
  6664. t && t[e] && t[e]()
  6665. })
  6666. },
  6667. _updateCornerClass: function (t, e) {
  6668. var i = this._buildSimpleOptions(e, "label").classes.label;
  6669. this._removeClass(t, null, "ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"), this._addClass(t, null, i)
  6670. },
  6671. _buildSimpleOptions: function (t, e) {
  6672. var i = "vertical" === this.options.direction,
  6673. n = {
  6674. classes: {}
  6675. };
  6676. return n.classes[e] = {
  6677. middle: "",
  6678. first: "ui-corner-" + (i ? "top" : "left"),
  6679. last: "ui-corner-" + (i ? "bottom" : "right"),
  6680. only: "ui-corner-all"
  6681. } [t], n
  6682. },
  6683. _spinnerOptions: function (t) {
  6684. var e = this._buildSimpleOptions(t, "ui-spinner");
  6685. return e.classes["ui-spinner-up"] = "", e.classes["ui-spinner-down"] = "", e
  6686. },
  6687. _buttonOptions: function (t) {
  6688. return this._buildSimpleOptions(t, "ui-button")
  6689. },
  6690. _checkboxradioOptions: function (t) {
  6691. return this._buildSimpleOptions(t, "ui-checkboxradio-label")
  6692. },
  6693. _selectmenuOptions: function (t) {
  6694. var e = "vertical" === this.options.direction;
  6695. return {
  6696. width: e && "auto",
  6697. classes: {
  6698. middle: {
  6699. "ui-selectmenu-button-open": "",
  6700. "ui-selectmenu-button-closed": ""
  6701. },
  6702. first: {
  6703. "ui-selectmenu-button-open": "ui-corner-" + (e ? "top" : "tl"),
  6704. "ui-selectmenu-button-closed": "ui-corner-" + (e ? "top" : "left")
  6705. },
  6706. last: {
  6707. "ui-selectmenu-button-open": e ? "" : "ui-corner-tr",
  6708. "ui-selectmenu-button-closed": "ui-corner-" + (e ? "bottom" : "right")
  6709. },
  6710. only: {
  6711. "ui-selectmenu-button-open": "ui-corner-top",
  6712. "ui-selectmenu-button-closed": "ui-corner-all"
  6713. }
  6714. } [t]
  6715. }
  6716. },
  6717. _resolveClassesValues: function (i, n) {
  6718. var s = {};
  6719. return S.each(i, function (t) {
  6720. var e = n.options.classes[t] || "";
  6721. e = S.trim(e.replace(_, "")), s[t] = (e + " " + i[t]).replace(/\s+/g, " ")
  6722. }), s
  6723. },
  6724. _setOption: function (t, e) {
  6725. return "direction" === t && this._removeClass("ui-controlgroup-" + this.options.direction), this._super(t, e), "disabled" === t ? void this._callChildMethod(e ? "disable" : "enable") : void this.refresh()
  6726. },
  6727. refresh: function () {
  6728. var s, o = this;
  6729. this._addClass("ui-controlgroup ui-controlgroup-" + this.options.direction), "horizontal" === this.options.direction && this._addClass(null, "ui-helper-clearfix"), this._initWidgets(), s = this.childWidgets, this.options.onlyVisible && (s = s.filter(":visible")), s.length && (S.each(["first", "last"], function (t, e) {
  6730. var i = s[e]().data("ui-controlgroup-data");
  6731. if (i && o["_" + i.widgetName + "Options"]) {
  6732. var n = o["_" + i.widgetName + "Options"](1 === s.length ? "only" : e);
  6733. n.classes = o._resolveClassesValues(n.classes, i), i.element[i.widgetName](n)
  6734. } else o._updateCornerClass(s[e](), e)
  6735. }), this._callChildMethod("refresh"))
  6736. }
  6737. }), S.widget("ui.checkboxradio", [S.ui.formResetMixin, {
  6738. version: "1.12.1",
  6739. options: {
  6740. disabled: null,
  6741. label: null,
  6742. icon: !0,
  6743. classes: {
  6744. "ui-checkboxradio-label": "ui-corner-all",
  6745. "ui-checkboxradio-icon": "ui-corner-all"
  6746. }
  6747. },
  6748. _getCreateOptions: function () {
  6749. var t, e, i = this,
  6750. n = this._super() || {};
  6751. return this._readType(), e = this.element.labels(), this.label = S(e[e.length - 1]), this.label.length || S.error("No label found for checkboxradio widget"), this.originalLabel = "", this.label.contents().not(this.element[0]).each(function () {
  6752. i.originalLabel += 3 === this.nodeType ? S(this).text() : this.outerHTML
  6753. }), this.originalLabel && (n.label = this.originalLabel), null != (t = this.element[0].disabled) && (n.disabled = t), n
  6754. },
  6755. _create: function () {
  6756. var t = this.element[0].checked;
  6757. this._bindFormResetHandler(), null == this.options.disabled && (this.options.disabled = this.element[0].disabled), this._setOption("disabled", this.options.disabled), this._addClass("ui-checkboxradio", "ui-helper-hidden-accessible"), this._addClass(this.label, "ui-checkboxradio-label", "ui-button ui-widget"), "radio" === this.type && this._addClass(this.label, "ui-checkboxradio-radio-label"), this.options.label && this.options.label !== this.originalLabel ? this._updateLabel() : this.originalLabel && (this.options.label = this.originalLabel), this._enhance(), t && (this._addClass(this.label, "ui-checkboxradio-checked", "ui-state-active"), this.icon && this._addClass(this.icon, null, "ui-state-hover")), this._on({
  6758. change: "_toggleClasses",
  6759. focus: function () {
  6760. this._addClass(this.label, null, "ui-state-focus ui-visual-focus")
  6761. },
  6762. blur: function () {
  6763. this._removeClass(this.label, null, "ui-state-focus ui-visual-focus")
  6764. }
  6765. })
  6766. },
  6767. _readType: function () {
  6768. var t = this.element[0].nodeName.toLowerCase();
  6769. this.type = this.element[0].type, "input" === t && /radio|checkbox/.test(this.type) || S.error("Can't create checkboxradio on element.nodeName=" + t + " and element.type=" + this.type)
  6770. },
  6771. _enhance: function () {
  6772. this._updateIcon(this.element[0].checked)
  6773. },
  6774. widget: function () {
  6775. return this.label
  6776. },
  6777. _getRadioGroup: function () {
  6778. var t = this.element[0].name,
  6779. e = "input[name='" + S.ui.escapeSelector(t) + "']";
  6780. return t ? (this.form.length ? S(this.form[0].elements).filter(e) : S(e).filter(function () {
  6781. return 0 === S(this).form().length
  6782. })).not(this.element) : S([])
  6783. },
  6784. _toggleClasses: function () {
  6785. var t = this.element[0].checked;
  6786. this._toggleClass(this.label, "ui-checkboxradio-checked", "ui-state-active", t), this.options.icon && "checkbox" === this.type && this._toggleClass(this.icon, null, "ui-icon-check ui-state-checked", t)._toggleClass(this.icon, null, "ui-icon-blank", !t), "radio" === this.type && this._getRadioGroup().each(function () {
  6787. var t = S(this).checkboxradio("instance");
  6788. t && t._removeClass(t.label, "ui-checkboxradio-checked", "ui-state-active")
  6789. })
  6790. },
  6791. _destroy: function () {
  6792. this._unbindFormResetHandler(), this.icon && (this.icon.remove(), this.iconSpace.remove())
  6793. },
  6794. _setOption: function (t, e) {
  6795. return "label" !== t || e ? (this._super(t, e), "disabled" === t ? (this._toggleClass(this.label, null, "ui-state-disabled", e), void(this.element[0].disabled = e)) : void this.refresh()) : void 0
  6796. },
  6797. _updateIcon: function (t) {
  6798. var e = "ui-icon ui-icon-background ";
  6799. this.options.icon ? (this.icon || (this.icon = S("<span>"), this.iconSpace = S("<span> </span>"), this._addClass(this.iconSpace, "ui-checkboxradio-icon-space")), "checkbox" === this.type ? (e += t ? "ui-icon-check ui-state-checked" : "ui-icon-blank", this._removeClass(this.icon, null, t ? "ui-icon-blank" : "ui-icon-check")) : e += "ui-icon-blank", this._addClass(this.icon, "ui-checkboxradio-icon", e), t || this._removeClass(this.icon, null, "ui-icon-check ui-state-checked"), this.icon.prependTo(this.label).after(this.iconSpace)) : void 0 !== this.icon && (this.icon.remove(), this.iconSpace.remove(), delete this.icon)
  6800. },
  6801. _updateLabel: function () {
  6802. var t = this.label.contents().not(this.element[0]);
  6803. this.icon && (t = t.not(this.icon[0])), this.iconSpace && (t = t.not(this.iconSpace[0])), t.remove(), this.label.append(this.options.label)
  6804. },
  6805. refresh: function () {
  6806. var t = this.element[0].checked,
  6807. e = this.element[0].disabled;
  6808. this._updateIcon(t), this._toggleClass(this.label, "ui-checkboxradio-checked", "ui-state-active", t), null !== this.options.label && this._updateLabel(), e !== this.options.disabled && this._setOptions({
  6809. disabled: e
  6810. })
  6811. }
  6812. }]), S.ui.checkboxradio, S.widget("ui.button", {
  6813. version: "1.12.1",
  6814. defaultElement: "<button>",
  6815. options: {
  6816. classes: {
  6817. "ui-button": "ui-corner-all"
  6818. },
  6819. disabled: null,
  6820. icon: null,
  6821. iconPosition: "beginning",
  6822. label: null,
  6823. showLabel: !0
  6824. },
  6825. _getCreateOptions: function () {
  6826. var t, e = this._super() || {};
  6827. return this.isInput = this.element.is("input"), null != (t = this.element[0].disabled) && (e.disabled = t), this.originalLabel = this.isInput ? this.element.val() : this.element.html(), this.originalLabel && (e.label = this.originalLabel), e
  6828. },
  6829. _create: function () {
  6830. !this.option.showLabel & !this.options.icon && (this.options.showLabel = !0), null == this.options.disabled && (this.options.disabled = this.element[0].disabled || !1), this.hasTitle = !!this.element.attr("title"), this.options.label && this.options.label !== this.originalLabel && (this.isInput ? this.element.val(this.options.label) : this.element.html(this.options.label)), this._addClass("ui-button", "ui-widget"), this._setOption("disabled", this.options.disabled), this._enhance(), this.element.is("a") && this._on({
  6831. keyup: function (t) {
  6832. t.keyCode === S.ui.keyCode.SPACE && (t.preventDefault(), this.element[0].click ? this.element[0].click() : this.element.trigger("click"))
  6833. }
  6834. })
  6835. },
  6836. _enhance: function () {
  6837. this.element.is("button") || this.element.attr("role", "button"), this.options.icon && (this._updateIcon("icon", this.options.icon), this._updateTooltip())
  6838. },
  6839. _updateTooltip: function () {
  6840. this.title = this.element.attr("title"), this.options.showLabel || this.title || this.element.attr("title", this.options.label)
  6841. },
  6842. _updateIcon: function (t, e) {
  6843. var i = "iconPosition" !== t,
  6844. n = i ? this.options.iconPosition : e,
  6845. s = "top" === n || "bottom" === n;
  6846. this.icon ? i && this._removeClass(this.icon, null, this.options.icon) : (this.icon = S("<span>"), this._addClass(this.icon, "ui-button-icon", "ui-icon"), this.options.showLabel || this._addClass("ui-button-icon-only")), i && this._addClass(this.icon, null, e), this._attachIcon(n), s ? (this._addClass(this.icon, null, "ui-widget-icon-block"), this.iconSpace && this.iconSpace.remove()) : (this.iconSpace || (this.iconSpace = S("<span> </span>"), this._addClass(this.iconSpace, "ui-button-icon-space")), this._removeClass(this.icon, null, "ui-wiget-icon-block"), this._attachIconSpace(n))
  6847. },
  6848. _destroy: function () {
  6849. this.element.removeAttr("role"), this.icon && this.icon.remove(), this.iconSpace && this.iconSpace.remove(), this.hasTitle || this.element.removeAttr("title")
  6850. },
  6851. _attachIconSpace: function (t) {
  6852. this.icon[/^(?:end|bottom)/.test(t) ? "before" : "after"](this.iconSpace)
  6853. },
  6854. _attachIcon: function (t) {
  6855. this.element[/^(?:end|bottom)/.test(t) ? "append" : "prepend"](this.icon)
  6856. },
  6857. _setOptions: function (t) {
  6858. var e = void 0 === t.showLabel ? this.options.showLabel : t.showLabel,
  6859. i = void 0 === t.icon ? this.options.icon : t.icon;
  6860. e || i || (t.showLabel = !0), this._super(t)
  6861. },
  6862. _setOption: function (t, e) {
  6863. "icon" === t && (e ? this._updateIcon(t, e) : this.icon && (this.icon.remove(), this.iconSpace && this.iconSpace.remove())), "iconPosition" === t && this._updateIcon(t, e), "showLabel" === t && (this._toggleClass("ui-button-icon-only", null, !e), this._updateTooltip()), "label" === t && (this.isInput ? this.element.val(e) : (this.element.html(e), this.icon && (this._attachIcon(this.options.iconPosition), this._attachIconSpace(this.options.iconPosition)))), this._super(t, e), "disabled" === t && (this._toggleClass(null, "ui-state-disabled", e), (this.element[0].disabled = e) && this.element.blur())
  6864. },
  6865. refresh: function () {
  6866. var t = this.element.is("input, button") ? this.element[0].disabled : this.element.hasClass("ui-button-disabled");
  6867. t !== this.options.disabled && this._setOptions({
  6868. disabled: t
  6869. }), this._updateTooltip()
  6870. }
  6871. }), !1 !== S.uiBackCompat && (S.widget("ui.button", S.ui.button, {
  6872. options: {
  6873. text: !0,
  6874. icons: {
  6875. primary: null,
  6876. secondary: null
  6877. }
  6878. },
  6879. _create: function () {
  6880. this.options.showLabel && !this.options.text && (this.options.showLabel = this.options.text), !this.options.showLabel && this.options.text && (this.options.text = this.options.showLabel), this.options.icon || !this.options.icons.primary && !this.options.icons.secondary ? this.options.icon && (this.options.icons.primary = this.options.icon) : this.options.icons.primary ? this.options.icon = this.options.icons.primary : (this.options.icon = this.options.icons.secondary, this.options.iconPosition = "end"), this._super()
  6881. },
  6882. _setOption: function (t, e) {
  6883. return "text" === t ? void this._super("showLabel", e) : ("showLabel" === t && (this.options.text = e), "icon" === t && (this.options.icons.primary = e), "icons" === t && (e.primary ? (this._super("icon", e.primary), this._super("iconPosition", "beginning")) : e.secondary && (this._super("icon", e.secondary), this._super("iconPosition", "end"))), void this._superApply(arguments))
  6884. }
  6885. }), S.fn.button = (m = S.fn.button, function () {
  6886. return !this.length || this.length && "INPUT" !== this[0].tagName || this.length && "INPUT" === this[0].tagName && "checkbox" !== this.attr("type") && "radio" !== this.attr("type") ? m.apply(this, arguments) : (S.ui.checkboxradio || S.error("Checkboxradio widget missing"), 0 === arguments.length ? this.checkboxradio({
  6887. icon: !1
  6888. }) : this.checkboxradio.apply(this, arguments))
  6889. }), S.fn.buttonset = function () {
  6890. return S.ui.controlgroup || S.error("Controlgroup widget missing"), "option" === arguments[0] && "items" === arguments[1] && arguments[2] ? this.controlgroup.apply(this, [arguments[0], "items.button", arguments[2]]) : "option" === arguments[0] && "items" === arguments[1] ? this.controlgroup.apply(this, [arguments[0], "items.button"]) : ("object" == _typeof(arguments[0]) && arguments[0].items && (arguments[0].items = {
  6891. button: arguments[0].items
  6892. }), this.controlgroup.apply(this, arguments))
  6893. }), S.ui.button, S.extend(S.ui, {
  6894. datepicker: {
  6895. version: "1.12.1"
  6896. }
  6897. }), S.extend(t.prototype, {
  6898. markerClassName: "hasDatepicker",
  6899. maxRows: 4,
  6900. _widgetDatepicker: function () {
  6901. return this.dpDiv
  6902. },
  6903. setDefaults: function (t) {
  6904. return h(this._defaults, t || {}), this
  6905. },
  6906. _attachDatepicker: function (t, e) {
  6907. var i, n, s;
  6908. n = "div" === (i = t.nodeName.toLowerCase()) || "span" === i, t.id || (this.uuid += 1, t.id = "dp" + this.uuid), (s = this._newInst(S(t), n)).settings = S.extend({}, e || {}), "input" === i ? this._connectDatepicker(t, s) : n && this._inlineDatepicker(t, s)
  6909. },
  6910. _newInst: function (t, e) {
  6911. return {
  6912. id: t[0].id.replace(/([^A-Za-z0-9_\-])/g, "\\\\$1"),
  6913. input: t,
  6914. selectedDay: 0,
  6915. selectedMonth: 0,
  6916. selectedYear: 0,
  6917. drawMonth: 0,
  6918. drawYear: 0,
  6919. inline: e,
  6920. dpDiv: e ? i(S("<div class='" + this._inlineClass + " ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")) : this.dpDiv
  6921. }
  6922. },
  6923. _connectDatepicker: function (t, e) {
  6924. var i = S(t);
  6925. e.append = S([]), e.trigger = S([]), i.hasClass(this.markerClassName) || (this._attachments(i, e), i.addClass(this.markerClassName).on("keydown", this._doKeyDown).on("keypress", this._doKeyPress).on("keyup", this._doKeyUp), this._autoSize(e), S.data(t, "datepicker", e), e.settings.disabled && this._disableDatepicker(t))
  6926. },
  6927. _attachments: function (t, e) {
  6928. var i, n, s, o = this._get(e, "appendText"),
  6929. r = this._get(e, "isRTL");
  6930. e.append && e.append.remove(), o && (e.append = S("<span class='" + this._appendClass + "'>" + o + "</span>"), t[r ? "before" : "after"](e.append)), t.off("focus", this._showDatepicker), e.trigger && e.trigger.remove(), ("focus" === (i = this._get(e, "showOn")) || "both" === i) && t.on("focus", this._showDatepicker), ("button" === i || "both" === i) && (n = this._get(e, "buttonText"), s = this._get(e, "buttonImage"), e.trigger = S(this._get(e, "buttonImageOnly") ? S("<img/>").addClass(this._triggerClass).attr({
  6931. src: s,
  6932. alt: n,
  6933. title: n
  6934. }) : S("<button type='button'></button>").addClass(this._triggerClass).html(s ? S("<img/>").attr({
  6935. src: s,
  6936. alt: n,
  6937. title: n
  6938. }) : n)), t[r ? "before" : "after"](e.trigger), e.trigger.on("click", function () {
  6939. return S.datepicker._datepickerShowing && S.datepicker._lastInput === t[0] ? S.datepicker._hideDatepicker() : (S.datepicker._datepickerShowing && S.datepicker._lastInput !== t[0] && S.datepicker._hideDatepicker(), S.datepicker._showDatepicker(t[0])), !1
  6940. }))
  6941. },
  6942. _autoSize: function (t) {
  6943. if (this._get(t, "autoSize") && !t.inline) {
  6944. var e, i, n, s, o = new Date(2009, 11, 20),
  6945. r = this._get(t, "dateFormat");
  6946. r.match(/[DM]/) && (e = function (t) {
  6947. for (s = n = i = 0; t.length > s; s++) t[s].length > i && (i = t[s].length, n = s);
  6948. return n
  6949. }, o.setMonth(e(this._get(t, r.match(/MM/) ? "monthNames" : "monthNamesShort"))), o.setDate(e(this._get(t, r.match(/DD/) ? "dayNames" : "dayNamesShort")) + 20 - o.getDay())), t.input.attr("size", this._formatDate(t, o).length)
  6950. }
  6951. },
  6952. _inlineDatepicker: function (t, e) {
  6953. var i = S(t);
  6954. i.hasClass(this.markerClassName) || (i.addClass(this.markerClassName).append(e.dpDiv), S.data(t, "datepicker", e), this._setDate(e, this._getDefaultDate(e), !0), this._updateDatepicker(e), this._updateAlternate(e), e.settings.disabled && this._disableDatepicker(t), e.dpDiv.css("display", "block"))
  6955. },
  6956. _dialogDatepicker: function (t, e, i, n, s) {
  6957. var o, r, a, l, c, u = this._dialogInst;
  6958. return u || (this.uuid += 1, o = "dp" + this.uuid, this._dialogInput = S("<input type='text' id='" + o + "' style='position: absolute; top: -100px; width: 0px;'/>"), this._dialogInput.on("keydown", this._doKeyDown), S("body").append(this._dialogInput), (u = this._dialogInst = this._newInst(this._dialogInput, !1)).settings = {}, S.data(this._dialogInput[0], "datepicker", u)), h(u.settings, n || {}), e = e && e.constructor === Date ? this._formatDate(u, e) : e, this._dialogInput.val(e), this._pos = s ? s.length ? s : [s.pageX, s.pageY] : null, this._pos || (r = document.documentElement.clientWidth, a = document.documentElement.clientHeight, l = document.documentElement.scrollLeft || document.body.scrollLeft, c = document.documentElement.scrollTop || document.body.scrollTop, this._pos = [r / 2 - 100 + l, a / 2 - 150 + c]), this._dialogInput.css("left", this._pos[0] + 20 + "px").css("top", this._pos[1] + "px"), u.settings.onSelect = i, this._inDialog = !0, this.dpDiv.addClass(this._dialogClass), this._showDatepicker(this._dialogInput[0]), S.blockUI && S.blockUI(this.dpDiv), S.data(this._dialogInput[0], "datepicker", u), this
  6959. },
  6960. _destroyDatepicker: function (t) {
  6961. var e, i = S(t),
  6962. n = S.data(t, "datepicker");
  6963. i.hasClass(this.markerClassName) && (e = t.nodeName.toLowerCase(), S.removeData(t, "datepicker"), "input" === e ? (n.append.remove(), n.trigger.remove(), i.removeClass(this.markerClassName).off("focus", this._showDatepicker).off("keydown", this._doKeyDown).off("keypress", this._doKeyPress).off("keyup", this._doKeyUp)) : ("div" === e || "span" === e) && i.removeClass(this.markerClassName).empty(), v === n && (v = null))
  6964. },
  6965. _enableDatepicker: function (e) {
  6966. var t, i, n = S(e),
  6967. s = S.data(e, "datepicker");
  6968. n.hasClass(this.markerClassName) && ("input" === (t = e.nodeName.toLowerCase()) ? (e.disabled = !1, s.trigger.filter("button").each(function () {
  6969. this.disabled = !1
  6970. }).end().filter("img").css({
  6971. opacity: "1.0",
  6972. cursor: ""
  6973. })) : ("div" === t || "span" === t) && ((i = n.children("." + this._inlineClass)).children().removeClass("ui-state-disabled"), i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled", !1)), this._disabledInputs = S.map(this._disabledInputs, function (t) {
  6974. return t === e ? null : t
  6975. }))
  6976. },
  6977. _disableDatepicker: function (e) {
  6978. var t, i, n = S(e),
  6979. s = S.data(e, "datepicker");
  6980. n.hasClass(this.markerClassName) && ("input" === (t = e.nodeName.toLowerCase()) ? (e.disabled = !0, s.trigger.filter("button").each(function () {
  6981. this.disabled = !0
  6982. }).end().filter("img").css({
  6983. opacity: "0.5",
  6984. cursor: "default"
  6985. })) : ("div" === t || "span" === t) && ((i = n.children("." + this._inlineClass)).children().addClass("ui-state-disabled"), i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled", !0)), this._disabledInputs = S.map(this._disabledInputs, function (t) {
  6986. return t === e ? null : t
  6987. }), this._disabledInputs[this._disabledInputs.length] = e)
  6988. },
  6989. _isDisabledDatepicker: function (t) {
  6990. if (!t) return !1;
  6991. for (var e = 0; this._disabledInputs.length > e; e++)
  6992. if (this._disabledInputs[e] === t) return !0;
  6993. return !1
  6994. },
  6995. _getInst: function (t) {
  6996. try {
  6997. return S.data(t, "datepicker")
  6998. } catch (t) {
  6999. throw "Missing instance data for this datepicker"
  7000. }
  7001. },
  7002. _optionDatepicker: function (t, e, i) {
  7003. var n, s, o, r, a = this._getInst(t);
  7004. return 2 === arguments.length && "string" == typeof e ? "defaults" === e ? S.extend({}, S.datepicker._defaults) : a ? "all" === e ? S.extend({}, a.settings) : this._get(a, e) : null : (n = e || {}, "string" == typeof e && ((n = {})[e] = i), void(a && (this._curInst === a && this._hideDatepicker(), s = this._getDateDatepicker(t, !0), o = this._getMinMaxDate(a, "min"), r = this._getMinMaxDate(a, "max"), h(a.settings, n), null !== o && void 0 !== n.dateFormat && void 0 === n.minDate && (a.settings.minDate = this._formatDate(a, o)), null !== r && void 0 !== n.dateFormat && void 0 === n.maxDate && (a.settings.maxDate = this._formatDate(a, r)), "disabled" in n && (n.disabled ? this._disableDatepicker(t) : this._enableDatepicker(t)), this._attachments(S(t), a), this._autoSize(a), this._setDate(a, s), this._updateAlternate(a), this._updateDatepicker(a))))
  7005. },
  7006. _changeDatepicker: function (t, e, i) {
  7007. this._optionDatepicker(t, e, i)
  7008. },
  7009. _refreshDatepicker: function (t) {
  7010. var e = this._getInst(t);
  7011. e && this._updateDatepicker(e)
  7012. },
  7013. _setDateDatepicker: function (t, e) {
  7014. var i = this._getInst(t);
  7015. i && (this._setDate(i, e), this._updateDatepicker(i), this._updateAlternate(i))
  7016. },
  7017. _getDateDatepicker: function (t, e) {
  7018. var i = this._getInst(t);
  7019. return i && !i.inline && this._setDateFromField(i, e), i ? this._getDate(i) : null
  7020. },
  7021. _doKeyDown: function (t) {
  7022. var e, i, n, s = S.datepicker._getInst(t.target),
  7023. o = !0,
  7024. r = s.dpDiv.is(".ui-datepicker-rtl");
  7025. if (s._keyEvent = !0, S.datepicker._datepickerShowing) switch (t.keyCode) {
  7026. case 9:
  7027. S.datepicker._hideDatepicker(), o = !1;
  7028. break;
  7029. case 13:
  7030. return (n = S("td." + S.datepicker._dayOverClass + ":not(." + S.datepicker._currentClass + ")", s.dpDiv))[0] && S.datepicker._selectDay(t.target, s.selectedMonth, s.selectedYear, n[0]), (e = S.datepicker._get(s, "onSelect")) ? (i = S.datepicker._formatDate(s), e.apply(s.input ? s.input[0] : null, [i, s])) : S.datepicker._hideDatepicker(), !1;
  7031. case 27:
  7032. S.datepicker._hideDatepicker();
  7033. break;
  7034. case 33:
  7035. S.datepicker._adjustDate(t.target, t.ctrlKey ? -S.datepicker._get(s, "stepBigMonths") : -S.datepicker._get(s, "stepMonths"), "M");
  7036. break;
  7037. case 34:
  7038. S.datepicker._adjustDate(t.target, t.ctrlKey ? +S.datepicker._get(s, "stepBigMonths") : +S.datepicker._get(s, "stepMonths"), "M");
  7039. break;
  7040. case 35:
  7041. (t.ctrlKey || t.metaKey) && S.datepicker._clearDate(t.target), o = t.ctrlKey || t.metaKey;
  7042. break;
  7043. case 36:
  7044. (t.ctrlKey || t.metaKey) && S.datepicker._gotoToday(t.target), o = t.ctrlKey || t.metaKey;
  7045. break;
  7046. case 37:
  7047. (t.ctrlKey || t.metaKey) && S.datepicker._adjustDate(t.target, r ? 1 : -1, "D"), o = t.ctrlKey || t.metaKey, t.originalEvent.altKey && S.datepicker._adjustDate(t.target, t.ctrlKey ? -S.datepicker._get(s, "stepBigMonths") : -S.datepicker._get(s, "stepMonths"), "M");
  7048. break;
  7049. case 38:
  7050. (t.ctrlKey || t.metaKey) && S.datepicker._adjustDate(t.target, -7, "D"), o = t.ctrlKey || t.metaKey;
  7051. break;
  7052. case 39:
  7053. (t.ctrlKey || t.metaKey) && S.datepicker._adjustDate(t.target, r ? -1 : 1, "D"), o = t.ctrlKey || t.metaKey, t.originalEvent.altKey && S.datepicker._adjustDate(t.target, t.ctrlKey ? +S.datepicker._get(s, "stepBigMonths") : +S.datepicker._get(s, "stepMonths"), "M");
  7054. break;
  7055. case 40:
  7056. (t.ctrlKey || t.metaKey) && S.datepicker._adjustDate(t.target, 7, "D"), o = t.ctrlKey || t.metaKey;
  7057. break;
  7058. default:
  7059. o = !1
  7060. } else 36 === t.keyCode && t.ctrlKey ? S.datepicker._showDatepicker(this) : o = !1;
  7061. o && (t.preventDefault(), t.stopPropagation())
  7062. },
  7063. _doKeyPress: function (t) {
  7064. var e, i, n = S.datepicker._getInst(t.target);
  7065. return S.datepicker._get(n, "constrainInput") ? (e = S.datepicker._possibleChars(S.datepicker._get(n, "dateFormat")), i = String.fromCharCode(null == t.charCode ? t.keyCode : t.charCode), t.ctrlKey || t.metaKey || i < " " || !e || -1 < e.indexOf(i)) : void 0
  7066. },
  7067. _doKeyUp: function (t) {
  7068. var e = S.datepicker._getInst(t.target);
  7069. if (e.input.val() !== e.lastVal) try {
  7070. S.datepicker.parseDate(S.datepicker._get(e, "dateFormat"), e.input ? e.input.val() : null, S.datepicker._getFormatConfig(e)) && (S.datepicker._setDateFromField(e), S.datepicker._updateAlternate(e), S.datepicker._updateDatepicker(e))
  7071. } catch (t) {}
  7072. return !0
  7073. },
  7074. _showDatepicker: function (t) {
  7075. var e, i, n, s, o, r, a;
  7076. ("input" !== (t = t.target || t).nodeName.toLowerCase() && (t = S("input", t.parentNode)[0]), S.datepicker._isDisabledDatepicker(t) || S.datepicker._lastInput === t) || (e = S.datepicker._getInst(t), S.datepicker._curInst && S.datepicker._curInst !== e && (S.datepicker._curInst.dpDiv.stop(!0, !0), e && S.datepicker._datepickerShowing && S.datepicker._hideDatepicker(S.datepicker._curInst.input[0])), !1 !== (n = (i = S.datepicker._get(e, "beforeShow")) ? i.apply(t, [t, e]) : {}) && (h(e.settings, n), e.lastVal = null, S.datepicker._lastInput = t, S.datepicker._setDateFromField(e), S.datepicker._inDialog && (t.value = ""), S.datepicker._pos || (S.datepicker._pos = S.datepicker._findPos(t), S.datepicker._pos[1] += t.offsetHeight), s = !1, S(t).parents().each(function () {
  7077. return !(s |= "fixed" === S(this).css("position"))
  7078. }), o = {
  7079. left: S.datepicker._pos[0],
  7080. top: S.datepicker._pos[1]
  7081. }, S.datepicker._pos = null, e.dpDiv.empty(), e.dpDiv.css({
  7082. position: "absolute",
  7083. display: "block",
  7084. top: "-1000px"
  7085. }), S.datepicker._updateDatepicker(e), o = S.datepicker._checkOffset(e, o, s), e.dpDiv.css({
  7086. position: S.datepicker._inDialog && S.blockUI ? "static" : s ? "fixed" : "absolute",
  7087. display: "none",
  7088. left: o.left + "px",
  7089. top: o.top + "px"
  7090. }), e.inline || (r = S.datepicker._get(e, "showAnim"), a = S.datepicker._get(e, "duration"), e.dpDiv.css("z-index", function (t) {
  7091. for (var e, i; t.length && t[0] !== document;) {
  7092. if (("absolute" === (e = t.css("position")) || "relative" === e || "fixed" === e) && (i = parseInt(t.css("zIndex"), 10), !isNaN(i) && 0 !== i)) return i;
  7093. t = t.parent()
  7094. }
  7095. return 0
  7096. }(S(t)) + 1), S.datepicker._datepickerShowing = !0, S.effects && S.effects.effect[r] ? e.dpDiv.show(r, S.datepicker._get(e, "showOptions"), a) : e.dpDiv[r || "show"](r ? a : null), S.datepicker._shouldFocusInput(e) && e.input.trigger("focus"), S.datepicker._curInst = e)))
  7097. },
  7098. _updateDatepicker: function (t) {
  7099. this.maxRows = 4, (v = t).dpDiv.empty().append(this._generateHTML(t)), this._attachHandlers(t);
  7100. var e, i = this._getNumberOfMonths(t),
  7101. n = i[1],
  7102. s = t.dpDiv.find("." + this._dayOverClass + " a");
  7103. 0 < s.length && o.apply(s.get(0)), t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""), 1 < n && t.dpDiv.addClass("ui-datepicker-multi-" + n).css("width", 17 * n + "em"), t.dpDiv[(1 !== i[0] || 1 !== i[1] ? "add" : "remove") + "Class"]("ui-datepicker-multi"), t.dpDiv[(this._get(t, "isRTL") ? "add" : "remove") + "Class"]("ui-datepicker-rtl"), t === S.datepicker._curInst && S.datepicker._datepickerShowing && S.datepicker._shouldFocusInput(t) && t.input.trigger("focus"), t.yearshtml && (e = t.yearshtml, setTimeout(function () {
  7104. e === t.yearshtml && t.yearshtml && t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml), e = t.yearshtml = null
  7105. }, 0))
  7106. },
  7107. _shouldFocusInput: function (t) {
  7108. return t.input && t.input.is(":visible") && !t.input.is(":disabled") && !t.input.is(":focus")
  7109. },
  7110. _checkOffset: function (t, e, i) {
  7111. var n = t.dpDiv.outerWidth(),
  7112. s = t.dpDiv.outerHeight(),
  7113. o = t.input ? t.input.outerWidth() : 0,
  7114. r = t.input ? t.input.outerHeight() : 0,
  7115. a = document.documentElement.clientWidth + (i ? 0 : S(document).scrollLeft()),
  7116. l = document.documentElement.clientHeight + (i ? 0 : S(document).scrollTop());
  7117. return e.left -= this._get(t, "isRTL") ? n - o : 0, e.left -= i && e.left === t.input.offset().left ? S(document).scrollLeft() : 0, e.top -= i && e.top === t.input.offset().top + r ? S(document).scrollTop() : 0, e.left -= Math.min(e.left, e.left + n > a && n < a ? Math.abs(e.left + n - a) : 0), e.top -= Math.min(e.top, e.top + s > l && s < l ? Math.abs(s + r) : 0), e
  7118. },
  7119. _findPos: function (t) {
  7120. for (var e, i = this._getInst(t), n = this._get(i, "isRTL"); t && ("hidden" === t.type || 1 !== t.nodeType || S.expr.filters.hidden(t));) t = t[n ? "previousSibling" : "nextSibling"];
  7121. return [(e = S(t).offset()).left, e.top]
  7122. },
  7123. _hideDatepicker: function (t) {
  7124. var e, i, n, s, o = this._curInst;
  7125. !o || t && o !== S.data(t, "datepicker") || this._datepickerShowing && (e = this._get(o, "showAnim"), i = this._get(o, "duration"), n = function () {
  7126. S.datepicker._tidyDialog(o)
  7127. }, S.effects && (S.effects.effect[e] || S.effects[e]) ? o.dpDiv.hide(e, S.datepicker._get(o, "showOptions"), i, n) : o.dpDiv["slideDown" === e ? "slideUp" : "fadeIn" === e ? "fadeOut" : "hide"](e ? i : null, n), e || n(), this._datepickerShowing = !1, (s = this._get(o, "onClose")) && s.apply(o.input ? o.input[0] : null, [o.input ? o.input.val() : "", o]), this._lastInput = null, this._inDialog && (this._dialogInput.css({
  7128. position: "absolute",
  7129. left: "0",
  7130. top: "-100px"
  7131. }), S.blockUI && (S.unblockUI(), S("body").append(this.dpDiv))), this._inDialog = !1)
  7132. },
  7133. _tidyDialog: function (t) {
  7134. t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")
  7135. },
  7136. _checkExternalClick: function (t) {
  7137. if (S.datepicker._curInst) {
  7138. var e = S(t.target),
  7139. i = S.datepicker._getInst(e[0]);
  7140. (e[0].id !== S.datepicker._mainDivId && 0 === e.parents("#" + S.datepicker._mainDivId).length && !e.hasClass(S.datepicker.markerClassName) && !e.closest("." + S.datepicker._triggerClass).length && S.datepicker._datepickerShowing && (!S.datepicker._inDialog || !S.blockUI) || e.hasClass(S.datepicker.markerClassName) && S.datepicker._curInst !== i) && S.datepicker._hideDatepicker()
  7141. }
  7142. },
  7143. _adjustDate: function (t, e, i) {
  7144. var n = S(t),
  7145. s = this._getInst(n[0]);
  7146. this._isDisabledDatepicker(n[0]) || (this._adjustInstDate(s, e + ("M" === i ? this._get(s, "showCurrentAtPos") : 0), i), this._updateDatepicker(s))
  7147. },
  7148. _gotoToday: function (t) {
  7149. var e, i = S(t),
  7150. n = this._getInst(i[0]);
  7151. this._get(n, "gotoCurrent") && n.currentDay ? (n.selectedDay = n.currentDay, n.drawMonth = n.selectedMonth = n.currentMonth, n.drawYear = n.selectedYear = n.currentYear) : (e = new Date, n.selectedDay = e.getDate(), n.drawMonth = n.selectedMonth = e.getMonth(), n.drawYear = n.selectedYear = e.getFullYear()), this._notifyChange(n), this._adjustDate(i)
  7152. },
  7153. _selectMonthYear: function (t, e, i) {
  7154. var n = S(t),
  7155. s = this._getInst(n[0]);
  7156. s["selected" + ("M" === i ? "Month" : "Year")] = s["draw" + ("M" === i ? "Month" : "Year")] = parseInt(e.options[e.selectedIndex].value, 10), this._notifyChange(s), this._adjustDate(n)
  7157. },
  7158. _selectDay: function (t, e, i, n) {
  7159. var s, o = S(t);
  7160. S(n).hasClass(this._unselectableClass) || this._isDisabledDatepicker(o[0]) || ((s = this._getInst(o[0])).selectedDay = s.currentDay = S("a", n).html(), s.selectedMonth = s.currentMonth = e, s.selectedYear = s.currentYear = i, this._selectDate(t, this._formatDate(s, s.currentDay, s.currentMonth, s.currentYear)))
  7161. },
  7162. _clearDate: function (t) {
  7163. var e = S(t);
  7164. this._selectDate(e, "")
  7165. },
  7166. _selectDate: function (t, e) {
  7167. var i, n = S(t),
  7168. s = this._getInst(n[0]);
  7169. e = null != e ? e : this._formatDate(s), s.input && s.input.val(e), this._updateAlternate(s), (i = this._get(s, "onSelect")) ? i.apply(s.input ? s.input[0] : null, [e, s]) : s.input && s.input.trigger("change"), s.inline ? this._updateDatepicker(s) : (this._hideDatepicker(), this._lastInput = s.input[0], "object" != _typeof(s.input[0]) && s.input.trigger("focus"), this._lastInput = null)
  7170. },
  7171. _updateAlternate: function (t) {
  7172. var e, i, n, s = this._get(t, "altField");
  7173. s && (e = this._get(t, "altFormat") || this._get(t, "dateFormat"), i = this._getDate(t), n = this.formatDate(e, i, this._getFormatConfig(t)), S(s).val(n))
  7174. },
  7175. noWeekends: function (t) {
  7176. var e = t.getDay();
  7177. return [0 < e && e < 6, ""]
  7178. },
  7179. iso8601Week: function (t) {
  7180. var e, i = new Date(t.getTime());
  7181. return i.setDate(i.getDate() + 4 - (i.getDay() || 7)), e = i.getTime(), i.setMonth(0), i.setDate(1), Math.floor(Math.round((e - i) / 864e5) / 7) + 1
  7182. },
  7183. parseDate: function (i, o, t) {
  7184. if (null == i || null == o) throw "Invalid arguments";
  7185. if ("" === (o = "object" == _typeof(o) ? "" + o : o + "")) return null;
  7186. function r(t) {
  7187. var e = i.length > a + 1 && i.charAt(a + 1) === t;
  7188. return e && a++, e
  7189. }
  7190. function e(t) {
  7191. var e = r(t),
  7192. i = "@" === t ? 14 : "!" === t ? 20 : "y" === t && e ? 4 : "o" === t ? 3 : 2,
  7193. n = RegExp("^\\d{" + ("y" === t ? i : 1) + "," + i + "}"),
  7194. s = o.substring(h).match(n);
  7195. if (!s) throw "Missing number at position " + h;
  7196. return h += s[0].length, parseInt(s[0], 10)
  7197. }
  7198. function n(t, e, i) {
  7199. var n = -1,
  7200. s = S.map(r(t) ? i : e, function (t, e) {
  7201. return [
  7202. [e, t]
  7203. ]
  7204. }).sort(function (t, e) {
  7205. return -(t[1].length - e[1].length)
  7206. });
  7207. if (S.each(s, function (t, e) {
  7208. var i = e[1];
  7209. return o.substr(h, i.length).toLowerCase() === i.toLowerCase() ? (n = e[0], h += i.length, !1) : void 0
  7210. }), -1 !== n) return n + 1;
  7211. throw "Unknown name at position " + h
  7212. }
  7213. function s() {
  7214. if (o.charAt(h) !== i.charAt(a)) throw "Unexpected literal at position " + h;
  7215. h++
  7216. }
  7217. var a, l, c, u, h = 0,
  7218. d = (t ? t.shortYearCutoff : null) || this._defaults.shortYearCutoff,
  7219. p = "string" != typeof d ? d : (new Date).getFullYear() % 100 + parseInt(d, 10),
  7220. f = (t ? t.dayNamesShort : null) || this._defaults.dayNamesShort,
  7221. g = (t ? t.dayNames : null) || this._defaults.dayNames,
  7222. m = (t ? t.monthNamesShort : null) || this._defaults.monthNamesShort,
  7223. v = (t ? t.monthNames : null) || this._defaults.monthNames,
  7224. _ = -1,
  7225. y = -1,
  7226. b = -1,
  7227. w = -1,
  7228. k = !1;
  7229. for (a = 0; i.length > a; a++)
  7230. if (k) "'" !== i.charAt(a) || r("'") ? s() : k = !1;
  7231. else switch (i.charAt(a)) {
  7232. case "d":
  7233. b = e("d");
  7234. break;
  7235. case "D":
  7236. n("D", f, g);
  7237. break;
  7238. case "o":
  7239. w = e("o");
  7240. break;
  7241. case "m":
  7242. y = e("m");
  7243. break;
  7244. case "M":
  7245. y = n("M", m, v);
  7246. break;
  7247. case "y":
  7248. _ = e("y");
  7249. break;
  7250. case "@":
  7251. _ = (u = new Date(e("@"))).getFullYear(), y = u.getMonth() + 1, b = u.getDate();
  7252. break;
  7253. case "!":
  7254. _ = (u = new Date((e("!") - this._ticksTo1970) / 1e4)).getFullYear(), y = u.getMonth() + 1, b = u.getDate();
  7255. break;
  7256. case "'":
  7257. r("'") ? s() : k = !0;
  7258. break;
  7259. default:
  7260. s()
  7261. }
  7262. if (o.length > h && (c = o.substr(h), !/^\s+/.test(c))) throw "Extra/unparsed characters found in date: " + c;
  7263. if (-1 === _ ? _ = (new Date).getFullYear() : _ < 100 && (_ += (new Date).getFullYear() - (new Date).getFullYear() % 100 + (_ <= p ? 0 : -100)), -1 < w)
  7264. for (y = 1, b = w; !(b <= (l = this._getDaysInMonth(_, y - 1)));) y++, b -= l;
  7265. if ((u = this._daylightSavingAdjust(new Date(_, y - 1, b))).getFullYear() !== _ || u.getMonth() + 1 !== y || u.getDate() !== b) throw "Invalid date";
  7266. return u
  7267. },
  7268. ATOM: "yy-mm-dd",
  7269. COOKIE: "D, dd M yy",
  7270. ISO_8601: "yy-mm-dd",
  7271. RFC_822: "D, d M y",
  7272. RFC_850: "DD, dd-M-y",
  7273. RFC_1036: "D, d M y",
  7274. RFC_1123: "D, d M yy",
  7275. RFC_2822: "D, d M yy",
  7276. RSS: "D, d M y",
  7277. TICKS: "!",
  7278. TIMESTAMP: "@",
  7279. W3C: "yy-mm-dd",
  7280. _ticksTo1970: 864e9 * (718685 + Math.floor(492.5) - Math.floor(19.7) + Math.floor(4.925)),
  7281. formatDate: function (i, t, e) {
  7282. if (!t) return "";
  7283. function s(t) {
  7284. var e = i.length > r + 1 && i.charAt(r + 1) === t;
  7285. return e && r++, e
  7286. }
  7287. function n(t, e, i) {
  7288. var n = "" + e;
  7289. if (s(t))
  7290. for (; i > n.length;) n = "0" + n;
  7291. return n
  7292. }
  7293. function o(t, e, i, n) {
  7294. return s(t) ? n[e] : i[e]
  7295. }
  7296. var r, a = (e ? e.dayNamesShort : null) || this._defaults.dayNamesShort,
  7297. l = (e ? e.dayNames : null) || this._defaults.dayNames,
  7298. c = (e ? e.monthNamesShort : null) || this._defaults.monthNamesShort,
  7299. u = (e ? e.monthNames : null) || this._defaults.monthNames,
  7300. h = "",
  7301. d = !1;
  7302. if (t)
  7303. for (r = 0; i.length > r; r++)
  7304. if (d) "'" !== i.charAt(r) || s("'") ? h += i.charAt(r) : d = !1;
  7305. else switch (i.charAt(r)) {
  7306. case "d":
  7307. h += n("d", t.getDate(), 2);
  7308. break;
  7309. case "D":
  7310. h += o("D", t.getDay(), a, l);
  7311. break;
  7312. case "o":
  7313. h += n("o", Math.round((new Date(t.getFullYear(), t.getMonth(), t.getDate()).getTime() - new Date(t.getFullYear(), 0, 0).getTime()) / 864e5), 3);
  7314. break;
  7315. case "m":
  7316. h += n("m", t.getMonth() + 1, 2);
  7317. break;
  7318. case "M":
  7319. h += o("M", t.getMonth(), c, u);
  7320. break;
  7321. case "y":
  7322. h += s("y") ? t.getFullYear() : (t.getFullYear() % 100 < 10 ? "0" : "") + t.getFullYear() % 100;
  7323. break;
  7324. case "@":
  7325. h += t.getTime();
  7326. break;
  7327. case "!":
  7328. h += 1e4 * t.getTime() + this._ticksTo1970;
  7329. break;
  7330. case "'":
  7331. s("'") ? h += "'" : d = !0;
  7332. break;
  7333. default:
  7334. h += i.charAt(r)
  7335. }
  7336. return h
  7337. },
  7338. _possibleChars: function (i) {
  7339. function t(t) {
  7340. var e = i.length > n + 1 && i.charAt(n + 1) === t;
  7341. return e && n++, e
  7342. }
  7343. var n, e = "",
  7344. s = !1;
  7345. for (n = 0; i.length > n; n++)
  7346. if (s) "'" !== i.charAt(n) || t("'") ? e += i.charAt(n) : s = !1;
  7347. else switch (i.charAt(n)) {
  7348. case "d":
  7349. case "m":
  7350. case "y":
  7351. case "@":
  7352. e += "0123456789";
  7353. break;
  7354. case "D":
  7355. case "M":
  7356. return null;
  7357. case "'":
  7358. t("'") ? e += "'" : s = !0;
  7359. break;
  7360. default:
  7361. e += i.charAt(n)
  7362. }
  7363. return e
  7364. },
  7365. _get: function (t, e) {
  7366. return void 0 !== t.settings[e] ? t.settings[e] : this._defaults[e]
  7367. },
  7368. _setDateFromField: function (t, e) {
  7369. if (t.input.val() !== t.lastVal) {
  7370. var i = this._get(t, "dateFormat"),
  7371. n = t.lastVal = t.input ? t.input.val() : null,
  7372. s = this._getDefaultDate(t),
  7373. o = s,
  7374. r = this._getFormatConfig(t);
  7375. try {
  7376. o = this.parseDate(i, n, r) || s
  7377. } catch (t) {
  7378. n = e ? "" : n
  7379. }
  7380. t.selectedDay = o.getDate(), t.drawMonth = t.selectedMonth = o.getMonth(), t.drawYear = t.selectedYear = o.getFullYear(), t.currentDay = n ? o.getDate() : 0, t.currentMonth = n ? o.getMonth() : 0, t.currentYear = n ? o.getFullYear() : 0, this._adjustInstDate(t)
  7381. }
  7382. },
  7383. _getDefaultDate: function (t) {
  7384. return this._restrictMinMax(t, this._determineDate(t, this._get(t, "defaultDate"), new Date))
  7385. },
  7386. _determineDate: function (a, t, e) {
  7387. var i, n, s = null == t || "" === t ? e : "string" == typeof t ? function (t) {
  7388. try {
  7389. return S.datepicker.parseDate(S.datepicker._get(a, "dateFormat"), t, S.datepicker._getFormatConfig(a))
  7390. } catch (t) {}
  7391. for (var e = (t.toLowerCase().match(/^c/) ? S.datepicker._getDate(a) : null) || new Date, i = e.getFullYear(), n = e.getMonth(), s = e.getDate(), o = /([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g, r = o.exec(t); r;) {
  7392. switch (r[2] || "d") {
  7393. case "d":
  7394. case "D":
  7395. s += parseInt(r[1], 10);
  7396. break;
  7397. case "w":
  7398. case "W":
  7399. s += 7 * parseInt(r[1], 10);
  7400. break;
  7401. case "m":
  7402. case "M":
  7403. n += parseInt(r[1], 10), s = Math.min(s, S.datepicker._getDaysInMonth(i, n));
  7404. break;
  7405. case "y":
  7406. case "Y":
  7407. i += parseInt(r[1], 10), s = Math.min(s, S.datepicker._getDaysInMonth(i, n))
  7408. }
  7409. r = o.exec(t)
  7410. }
  7411. return new Date(i, n, s)
  7412. }(t) : "number" == typeof t ? isNaN(t) ? e : (i = t, (n = new Date).setDate(n.getDate() + i), n) : new Date(t.getTime());
  7413. return (s = s && "Invalid Date" == "" + s ? e : s) && (s.setHours(0), s.setMinutes(0), s.setSeconds(0), s.setMilliseconds(0)), this._daylightSavingAdjust(s)
  7414. },
  7415. _daylightSavingAdjust: function (t) {
  7416. return t ? (t.setHours(12 < t.getHours() ? t.getHours() + 2 : 0), t) : null
  7417. },
  7418. _setDate: function (t, e, i) {
  7419. var n = !e,
  7420. s = t.selectedMonth,
  7421. o = t.selectedYear,
  7422. r = this._restrictMinMax(t, this._determineDate(t, e, new Date));
  7423. t.selectedDay = t.currentDay = r.getDate(), t.drawMonth = t.selectedMonth = t.currentMonth = r.getMonth(), t.drawYear = t.selectedYear = t.currentYear = r.getFullYear(), s === t.selectedMonth && o === t.selectedYear || i || this._notifyChange(t), this._adjustInstDate(t), t.input && t.input.val(n ? "" : this._formatDate(t))
  7424. },
  7425. _getDate: function (t) {
  7426. return !t.currentYear || t.input && "" === t.input.val() ? null : this._daylightSavingAdjust(new Date(t.currentYear, t.currentMonth, t.currentDay))
  7427. },
  7428. _attachHandlers: function (t) {
  7429. var e = this._get(t, "stepMonths"),
  7430. i = "#" + t.id.replace(/\\\\/g, "\\");
  7431. t.dpDiv.find("[data-handler]").map(function () {
  7432. var t = {
  7433. prev: function () {
  7434. S.datepicker._adjustDate(i, -e, "M")
  7435. },
  7436. next: function () {
  7437. S.datepicker._adjustDate(i, +e, "M")
  7438. },
  7439. hide: function () {
  7440. S.datepicker._hideDatepicker()
  7441. },
  7442. today: function () {
  7443. S.datepicker._gotoToday(i)
  7444. },
  7445. selectDay: function () {
  7446. return S.datepicker._selectDay(i, +this.getAttribute("data-month"), +this.getAttribute("data-year"), this), !1
  7447. },
  7448. selectMonth: function () {
  7449. return S.datepicker._selectMonthYear(i, this, "M"), !1
  7450. },
  7451. selectYear: function () {
  7452. return S.datepicker._selectMonthYear(i, this, "Y"), !1
  7453. }
  7454. };
  7455. S(this).on(this.getAttribute("data-event"), t[this.getAttribute("data-handler")])
  7456. })
  7457. },
  7458. _generateHTML: function (t) {
  7459. var e, i, n, s, o, r, a, l, c, u, h, d, p, f, g, m, v, _, y, b, w, k, x, C, T, S, D, A, E, P, I, O, M, N, L, H, j, z, W, $ = new Date,
  7460. R = this._daylightSavingAdjust(new Date($.getFullYear(), $.getMonth(), $.getDate())),
  7461. F = this._get(t, "isRTL"),
  7462. q = this._get(t, "showButtonPanel"),
  7463. B = this._get(t, "hideIfNoPrevNext"),
  7464. U = this._get(t, "navigationAsDateFormat"),
  7465. Y = this._getNumberOfMonths(t),
  7466. V = this._get(t, "showCurrentAtPos"),
  7467. K = this._get(t, "stepMonths"),
  7468. X = 1 !== Y[0] || 1 !== Y[1],
  7469. Q = this._daylightSavingAdjust(t.currentDay ? new Date(t.currentYear, t.currentMonth, t.currentDay) : new Date(9999, 9, 9)),
  7470. G = this._getMinMaxDate(t, "min"),
  7471. J = this._getMinMaxDate(t, "max"),
  7472. Z = t.drawMonth - V,
  7473. tt = t.drawYear;
  7474. if (Z < 0 && (Z += 12, tt--), J)
  7475. for (e = this._daylightSavingAdjust(new Date(J.getFullYear(), J.getMonth() - Y[0] * Y[1] + 1, J.getDate())), e = G && e < G ? G : e; this._daylightSavingAdjust(new Date(tt, Z, 1)) > e;) --Z < 0 && (Z = 11, tt--);
  7476. for (t.drawMonth = Z, t.drawYear = tt, i = this._get(t, "prevText"), i = U ? this.formatDate(i, this._daylightSavingAdjust(new Date(tt, Z - K, 1)), this._getFormatConfig(t)) : i, n = this._canAdjustMonth(t, -1, tt, Z) ? "<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='" + i + "'><span class='ui-icon ui-icon-circle-triangle-" + (F ? "e" : "w") + "'>" + i + "</span></a>" : B ? "" : "<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='" + i + "'><span class='ui-icon ui-icon-circle-triangle-" + (F ? "e" : "w") + "'>" + i + "</span></a>", s = this._get(t, "nextText"), s = U ? this.formatDate(s, this._daylightSavingAdjust(new Date(tt, Z + K, 1)), this._getFormatConfig(t)) : s, o = this._canAdjustMonth(t, 1, tt, Z) ? "<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='" + s + "'><span class='ui-icon ui-icon-circle-triangle-" + (F ? "w" : "e") + "'>" + s + "</span></a>" : B ? "" : "<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='" + s + "'><span class='ui-icon ui-icon-circle-triangle-" + (F ? "w" : "e") + "'>" + s + "</span></a>", r = this._get(t, "currentText"), a = this._get(t, "gotoCurrent") && t.currentDay ? Q : R, r = U ? this.formatDate(r, a, this._getFormatConfig(t)) : r, l = t.inline ? "" : "<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>" + this._get(t, "closeText") + "</button>", c = q ? "<div class='ui-datepicker-buttonpane ui-widget-content'>" + (F ? l : "") + (this._isInRange(t, a) ? "<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>" + r + "</button>" : "") + (F ? "" : l) + "</div>" : "", u = parseInt(this._get(t, "firstDay"), 10), u = isNaN(u) ? 0 : u, h = this._get(t, "showWeek"), d = this._get(t, "dayNames"), p = this._get(t, "dayNamesMin"), f = this._get(t, "monthNames"), g = this._get(t, "monthNamesShort"), m = this._get(t, "beforeShowDay"), v = this._get(t, "showOtherMonths"), _ = this._get(t, "selectOtherMonths"), y = this._getDefaultDate(t), b = "", k = 0; Y[0] > k; k++) {
  7477. for (x = "", this.maxRows = 4, C = 0; Y[1] > C; C++) {
  7478. if (T = this._daylightSavingAdjust(new Date(tt, Z, t.selectedDay)), S = " ui-corner-all", D = "", X) {
  7479. if (D += "<div class='ui-datepicker-group", 1 < Y[1]) switch (C) {
  7480. case 0:
  7481. D += " ui-datepicker-group-first", S = " ui-corner-" + (F ? "right" : "left");
  7482. break;
  7483. case Y[1] - 1:
  7484. D += " ui-datepicker-group-last", S = " ui-corner-" + (F ? "left" : "right");
  7485. break;
  7486. default:
  7487. D += " ui-datepicker-group-middle", S = ""
  7488. }
  7489. D += "'>"
  7490. }
  7491. for (D += "<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix" + S + "'>" + (/all|left/.test(S) && 0 === k ? F ? o : n : "") + (/all|right/.test(S) && 0 === k ? F ? n : o : "") + this._generateMonthYearHeader(t, Z, tt, G, J, 0 < k || 0 < C, f, g) + "</div><table class='ui-datepicker-calendar'><thead><tr>", A = h ? "<th class='ui-datepicker-week-col'>" + this._get(t, "weekHeader") + "</th>" : "", w = 0; w < 7; w++) A += "<th scope='col'" + (5 <= (w + u + 6) % 7 ? " class='ui-datepicker-week-end'" : "") + "><span title='" + d[E = (w + u) % 7] + "'>" + p[E] + "</span></th>";
  7492. for (D += A + "</tr></thead><tbody>", P = this._getDaysInMonth(tt, Z), tt === t.selectedYear && Z === t.selectedMonth && (t.selectedDay = Math.min(t.selectedDay, P)), I = (this._getFirstDayOfMonth(tt, Z) - u + 7) % 7, O = Math.ceil((I + P) / 7), M = X && this.maxRows > O ? this.maxRows : O, this.maxRows = M, N = this._daylightSavingAdjust(new Date(tt, Z, 1 - I)), L = 0; L < M; L++) {
  7493. for (D += "<tr>", H = h ? "<td class='ui-datepicker-week-col'>" + this._get(t, "calculateWeek")(N) + "</td>" : "", w = 0; w < 7; w++) j = m ? m.apply(t.input ? t.input[0] : null, [N]) : [!0, ""], W = (z = N.getMonth() !== Z) && !_ || !j[0] || G && N < G || J && J < N, H += "<td class='" + (5 <= (w + u + 6) % 7 ? " ui-datepicker-week-end" : "") + (z ? " ui-datepicker-other-month" : "") + (N.getTime() === T.getTime() && Z === t.selectedMonth && t._keyEvent || y.getTime() === N.getTime() && y.getTime() === T.getTime() ? " " + this._dayOverClass : "") + (W ? " " + this._unselectableClass + " ui-state-disabled" : "") + (z && !v ? "" : " " + j[1] + (N.getTime() === Q.getTime() ? " " + this._currentClass : "") + (N.getTime() === R.getTime() ? " ui-datepicker-today" : "")) + "'" + (z && !v || !j[2] ? "" : " title='" + j[2].replace(/'/g, "&#39;") + "'") + (W ? "" : " data-handler='selectDay' data-event='click' data-month='" + N.getMonth() + "' data-year='" + N.getFullYear() + "'") + ">" + (z && !v ? "&#xa0;" : W ? "<span class='ui-state-default'>" + N.getDate() + "</span>" : "<a class='ui-state-default" + (N.getTime() === R.getTime() ? " ui-state-highlight" : "") + (N.getTime() === Q.getTime() ? " ui-state-active" : "") + (z ? " ui-priority-secondary" : "") + "' href='#'>" + N.getDate() + "</a>") + "</td>", N.setDate(N.getDate() + 1), N = this._daylightSavingAdjust(N);
  7494. D += H + "</tr>"
  7495. }
  7496. 11 < ++Z && (Z = 0, tt++), x += D += "</tbody></table>" + (X ? "</div>" + (0 < Y[0] && C === Y[1] - 1 ? "<div class='ui-datepicker-row-break'></div>" : "") : "")
  7497. }
  7498. b += x
  7499. }
  7500. return b += c, t._keyEvent = !1, b
  7501. },
  7502. _generateMonthYearHeader: function (t, e, i, n, s, o, r, a) {
  7503. var l, c, u, h, d, p, f, g, m = this._get(t, "changeMonth"),
  7504. v = this._get(t, "changeYear"),
  7505. _ = this._get(t, "showMonthAfterYear"),
  7506. y = "<div class='ui-datepicker-title'>",
  7507. b = "";
  7508. if (o || !m) b += "<span class='ui-datepicker-month'>" + r[e] + "</span>";
  7509. else {
  7510. for (l = n && n.getFullYear() === i, c = s && s.getFullYear() === i, b += "<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>", u = 0; u < 12; u++)(!l || u >= n.getMonth()) && (!c || s.getMonth() >= u) && (b += "<option value='" + u + "'" + (u === e ? " selected='selected'" : "") + ">" + a[u] + "</option>");
  7511. b += "</select>"
  7512. }
  7513. if (_ || (y += b + (!o && m && v ? "" : "&#xa0;")), !t.yearshtml)
  7514. if (t.yearshtml = "", o || !v) y += "<span class='ui-datepicker-year'>" + i + "</span>";
  7515. else {
  7516. for (h = this._get(t, "yearRange").split(":"), d = (new Date).getFullYear(), f = (p = function (t) {
  7517. var e = t.match(/c[+\-].*/) ? i + parseInt(t.substring(1), 10) : t.match(/[+\-].*/) ? d + parseInt(t, 10) : parseInt(t, 10);
  7518. return isNaN(e) ? d : e
  7519. })(h[0]), g = Math.max(f, p(h[1] || "")), f = n ? Math.max(f, n.getFullYear()) : f, g = s ? Math.min(g, s.getFullYear()) : g, t.yearshtml += "<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>"; f <= g; f++) t.yearshtml += "<option value='" + f + "'" + (f === i ? " selected='selected'" : "") + ">" + f + "</option>";
  7520. t.yearshtml += "</select>", y += t.yearshtml, t.yearshtml = null
  7521. } return y += this._get(t, "yearSuffix"), _ && (y += (!o && m && v ? "" : "&#xa0;") + b), y + "</div>"
  7522. },
  7523. _adjustInstDate: function (t, e, i) {
  7524. var n = t.selectedYear + ("Y" === i ? e : 0),
  7525. s = t.selectedMonth + ("M" === i ? e : 0),
  7526. o = Math.min(t.selectedDay, this._getDaysInMonth(n, s)) + ("D" === i ? e : 0),
  7527. r = this._restrictMinMax(t, this._daylightSavingAdjust(new Date(n, s, o)));
  7528. t.selectedDay = r.getDate(), t.drawMonth = t.selectedMonth = r.getMonth(), t.drawYear = t.selectedYear = r.getFullYear(), ("M" === i || "Y" === i) && this._notifyChange(t)
  7529. },
  7530. _restrictMinMax: function (t, e) {
  7531. var i = this._getMinMaxDate(t, "min"),
  7532. n = this._getMinMaxDate(t, "max"),
  7533. s = i && e < i ? i : e;
  7534. return n && n < s ? n : s
  7535. },
  7536. _notifyChange: function (t) {
  7537. var e = this._get(t, "onChangeMonthYear");
  7538. e && e.apply(t.input ? t.input[0] : null, [t.selectedYear, t.selectedMonth + 1, t])
  7539. },
  7540. _getNumberOfMonths: function (t) {
  7541. var e = this._get(t, "numberOfMonths");
  7542. return null == e ? [1, 1] : "number" == typeof e ? [1, e] : e
  7543. },
  7544. _getMinMaxDate: function (t, e) {
  7545. return this._determineDate(t, this._get(t, e + "Date"), null)
  7546. },
  7547. _getDaysInMonth: function (t, e) {
  7548. return 32 - this._daylightSavingAdjust(new Date(t, e, 32)).getDate()
  7549. },
  7550. _getFirstDayOfMonth: function (t, e) {
  7551. return new Date(t, e, 1).getDay()
  7552. },
  7553. _canAdjustMonth: function (t, e, i, n) {
  7554. var s = this._getNumberOfMonths(t),
  7555. o = this._daylightSavingAdjust(new Date(i, n + (e < 0 ? e : s[0] * s[1]), 1));
  7556. return e < 0 && o.setDate(this._getDaysInMonth(o.getFullYear(), o.getMonth())), this._isInRange(t, o)
  7557. },
  7558. _isInRange: function (t, e) {
  7559. var i, n, s = this._getMinMaxDate(t, "min"),
  7560. o = this._getMinMaxDate(t, "max"),
  7561. r = null,
  7562. a = null,
  7563. l = this._get(t, "yearRange");
  7564. return l && (i = l.split(":"), n = (new Date).getFullYear(), r = parseInt(i[0], 10), a = parseInt(i[1], 10), i[0].match(/[+\-].*/) && (r += n), i[1].match(/[+\-].*/) && (a += n)), (!s || e.getTime() >= s.getTime()) && (!o || e.getTime() <= o.getTime()) && (!r || e.getFullYear() >= r) && (!a || a >= e.getFullYear())
  7565. },
  7566. _getFormatConfig: function (t) {
  7567. var e = this._get(t, "shortYearCutoff");
  7568. return {
  7569. shortYearCutoff: e = "string" != typeof e ? e : (new Date).getFullYear() % 100 + parseInt(e, 10),
  7570. dayNamesShort: this._get(t, "dayNamesShort"),
  7571. dayNames: this._get(t, "dayNames"),
  7572. monthNamesShort: this._get(t, "monthNamesShort"),
  7573. monthNames: this._get(t, "monthNames")
  7574. }
  7575. },
  7576. _formatDate: function (t, e, i, n) {
  7577. e || (t.currentDay = t.selectedDay, t.currentMonth = t.selectedMonth, t.currentYear = t.selectedYear);
  7578. var s = e ? "object" == _typeof(e) ? e : this._daylightSavingAdjust(new Date(n, i, e)) : this._daylightSavingAdjust(new Date(t.currentYear, t.currentMonth, t.currentDay));
  7579. return this.formatDate(this._get(t, "dateFormat"), s, this._getFormatConfig(t))
  7580. }
  7581. }), S.fn.datepicker = function (t) {
  7582. if (!this.length) return this;
  7583. S.datepicker.initialized || (S(document).on("mousedown", S.datepicker._checkExternalClick), S.datepicker.initialized = !0), 0 === S("#" + S.datepicker._mainDivId).length && S("body").append(S.datepicker.dpDiv);
  7584. var e = Array.prototype.slice.call(arguments, 1);
  7585. return "string" != typeof t || "isDisabled" !== t && "getDate" !== t && "widget" !== t ? "option" === t && 2 === arguments.length && "string" == typeof arguments[1] ? S.datepicker["_" + t + "Datepicker"].apply(S.datepicker, [this[0]].concat(e)) : this.each(function () {
  7586. "string" == typeof t ? S.datepicker["_" + t + "Datepicker"].apply(S.datepicker, [this].concat(e)) : S.datepicker._attachDatepicker(this, t)
  7587. }) : S.datepicker["_" + t + "Datepicker"].apply(S.datepicker, [this[0]].concat(e))
  7588. }, S.datepicker = new t, S.datepicker.initialized = !1, S.datepicker.uuid = (new Date).getTime(), S.datepicker.version = "1.12.1", S.datepicker, S.ui.ie = !!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());
  7589. var y = !1;
  7590. S(document).on("mouseup", function () {
  7591. y = !1
  7592. }), S.widget("ui.mouse", {
  7593. version: "1.12.1",
  7594. options: {
  7595. cancel: "input, textarea, button, select, option",
  7596. distance: 1,
  7597. delay: 0
  7598. },
  7599. _mouseInit: function () {
  7600. var e = this;
  7601. this.element.on("mousedown." + this.widgetName, function (t) {
  7602. return e._mouseDown(t)
  7603. }).on("click." + this.widgetName, function (t) {
  7604. return !0 === S.data(t.target, e.widgetName + ".preventClickEvent") ? (S.removeData(t.target, e.widgetName + ".preventClickEvent"), t.stopImmediatePropagation(), !1) : void 0
  7605. }), this.started = !1
  7606. },
  7607. _mouseDestroy: function () {
  7608. this.element.off("." + this.widgetName), this._mouseMoveDelegate && this.document.off("mousemove." + this.widgetName, this._mouseMoveDelegate).off("mouseup." + this.widgetName, this._mouseUpDelegate)
  7609. },
  7610. _mouseDown: function (t) {
  7611. if (!y) {
  7612. this._mouseMoved = !1, this._mouseStarted && this._mouseUp(t), this._mouseDownEvent = t;
  7613. var e = this,
  7614. i = 1 === t.which,
  7615. n = !("string" != typeof this.options.cancel || !t.target.nodeName) && S(t.target).closest(this.options.cancel).length;
  7616. return i && !n && this._mouseCapture(t) && (this.mouseDelayMet = !this.options.delay, this.mouseDelayMet || (this._mouseDelayTimer = setTimeout(function () {
  7617. e.mouseDelayMet = !0
  7618. }, this.options.delay)), this._mouseDistanceMet(t) && this._mouseDelayMet(t) && (this._mouseStarted = !1 !== this._mouseStart(t), !this._mouseStarted) ? t.preventDefault() : (!0 === S.data(t.target, this.widgetName + ".preventClickEvent") && S.removeData(t.target, this.widgetName + ".preventClickEvent"), this._mouseMoveDelegate = function (t) {
  7619. return e._mouseMove(t)
  7620. }, this._mouseUpDelegate = function (t) {
  7621. return e._mouseUp(t)
  7622. }, this.document.on("mousemove." + this.widgetName, this._mouseMoveDelegate).on("mouseup." + this.widgetName, this._mouseUpDelegate), t.preventDefault(), y = !0)), !0
  7623. }
  7624. },
  7625. _mouseMove: function (t) {
  7626. if (this._mouseMoved) {
  7627. if (S.ui.ie && (!document.documentMode || document.documentMode < 9) && !t.button) return this._mouseUp(t);
  7628. if (!t.which)
  7629. if (t.originalEvent.altKey || t.originalEvent.ctrlKey || t.originalEvent.metaKey || t.originalEvent.shiftKey) this.ignoreMissingWhich = !0;
  7630. else if (!this.ignoreMissingWhich) return this._mouseUp(t)
  7631. }
  7632. return (t.which || t.button) && (this._mouseMoved = !0), this._mouseStarted ? (this._mouseDrag(t), t.preventDefault()) : (this._mouseDistanceMet(t) && this._mouseDelayMet(t) && (this._mouseStarted = !1 !== this._mouseStart(this._mouseDownEvent, t), this._mouseStarted ? this._mouseDrag(t) : this._mouseUp(t)), !this._mouseStarted)
  7633. },
  7634. _mouseUp: function (t) {
  7635. this.document.off("mousemove." + this.widgetName, this._mouseMoveDelegate).off("mouseup." + this.widgetName, this._mouseUpDelegate), this._mouseStarted && (this._mouseStarted = !1, t.target === this._mouseDownEvent.target && S.data(t.target, this.widgetName + ".preventClickEvent", !0), this._mouseStop(t)), this._mouseDelayTimer && (clearTimeout(this._mouseDelayTimer), delete this._mouseDelayTimer), this.ignoreMissingWhich = !1, y = !1, t.preventDefault()
  7636. },
  7637. _mouseDistanceMet: function (t) {
  7638. return Math.max(Math.abs(this._mouseDownEvent.pageX - t.pageX), Math.abs(this._mouseDownEvent.pageY - t.pageY)) >= this.options.distance
  7639. },
  7640. _mouseDelayMet: function () {
  7641. return this.mouseDelayMet
  7642. },
  7643. _mouseStart: function () {},
  7644. _mouseDrag: function () {},
  7645. _mouseStop: function () {},
  7646. _mouseCapture: function () {
  7647. return !0
  7648. }
  7649. }), S.ui.plugin = {
  7650. add: function (t, e, i) {
  7651. var n, s = S.ui[t].prototype;
  7652. for (n in i) s.plugins[n] = s.plugins[n] || [], s.plugins[n].push([e, i[n]])
  7653. },
  7654. call: function (t, e, i, n) {
  7655. var s, o = t.plugins[e];
  7656. if (o && (n || t.element[0].parentNode && 11 !== t.element[0].parentNode.nodeType))
  7657. for (s = 0; o.length > s; s++) t.options[o[s][0]] && o[s][1].apply(t.element, i)
  7658. }
  7659. }, S.ui.safeBlur = function (t) {
  7660. t && "body" !== t.nodeName.toLowerCase() && S(t).trigger("blur")
  7661. }, S.widget("ui.draggable", S.ui.mouse, {
  7662. version: "1.12.1",
  7663. widgetEventPrefix: "drag",
  7664. options: {
  7665. addClasses: !0,
  7666. appendTo: "parent",
  7667. axis: !1,
  7668. connectToSortable: !1,
  7669. containment: !1,
  7670. cursor: "auto",
  7671. cursorAt: !1,
  7672. grid: !1,
  7673. handle: !1,
  7674. helper: "original",
  7675. iframeFix: !1,
  7676. opacity: !1,
  7677. refreshPositions: !1,
  7678. revert: !1,
  7679. revertDuration: 500,
  7680. scope: "default",
  7681. scroll: !0,
  7682. scrollSensitivity: 20,
  7683. scrollSpeed: 20,
  7684. snap: !1,
  7685. snapMode: "both",
  7686. snapTolerance: 20,
  7687. stack: !1,
  7688. zIndex: !1,
  7689. drag: null,
  7690. start: null,
  7691. stop: null
  7692. },
  7693. _create: function () {
  7694. "original" === this.options.helper && this._setPositionRelative(), this.options.addClasses && this._addClass("ui-draggable"), this._setHandleClassName(), this._mouseInit()
  7695. },
  7696. _setOption: function (t, e) {
  7697. this._super(t, e), "handle" === t && (this._removeHandleClassName(), this._setHandleClassName())
  7698. },
  7699. _destroy: function () {
  7700. return (this.helper || this.element).is(".ui-draggable-dragging") ? void(this.destroyOnClear = !0) : (this._removeHandleClassName(), void this._mouseDestroy())
  7701. },
  7702. _mouseCapture: function (t) {
  7703. var e = this.options;
  7704. return !(this.helper || e.disabled || 0 < S(t.target).closest(".ui-resizable-handle").length) && (this.handle = this._getHandle(t), !!this.handle && (this._blurActiveElement(t), this._blockFrames(!0 === e.iframeFix ? "iframe" : e.iframeFix), !0))
  7705. },
  7706. _blockFrames: function (t) {
  7707. this.iframeBlocks = this.document.find(t).map(function () {
  7708. var t = S(this);
  7709. return S("<div>").css("position", "absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]
  7710. })
  7711. },
  7712. _unblockFrames: function () {
  7713. this.iframeBlocks && (this.iframeBlocks.remove(), delete this.iframeBlocks)
  7714. },
  7715. _blurActiveElement: function (t) {
  7716. var e = S.ui.safeActiveElement(this.document[0]);
  7717. S(t.target).closest(e).length || S.ui.safeBlur(e)
  7718. },
  7719. _mouseStart: function (t) {
  7720. var e = this.options;
  7721. return this.helper = this._createHelper(t), this._addClass(this.helper, "ui-draggable-dragging"), this._cacheHelperProportions(), S.ui.ddmanager && (S.ui.ddmanager.current = this), this._cacheMargins(), this.cssPosition = this.helper.css("position"), this.scrollParent = this.helper.scrollParent(!0), this.offsetParent = this.helper.offsetParent(), this.hasFixedAncestor = 0 < this.helper.parents().filter(function () {
  7722. return "fixed" === S(this).css("position")
  7723. }).length, this.positionAbs = this.element.offset(), this._refreshOffsets(t), this.originalPosition = this.position = this._generatePosition(t, !1), this.originalPageX = t.pageX, this.originalPageY = t.pageY, e.cursorAt && this._adjustOffsetFromHelper(e.cursorAt), this._setContainment(), !1 === this._trigger("start", t) ? (this._clear(), !1) : (this._cacheHelperProportions(), S.ui.ddmanager && !e.dropBehaviour && S.ui.ddmanager.prepareOffsets(this, t), this._mouseDrag(t, !0), S.ui.ddmanager && S.ui.ddmanager.dragStart(this, t), !0)
  7724. },
  7725. _refreshOffsets: function (t) {
  7726. this.offset = {
  7727. top: this.positionAbs.top - this.margins.top,
  7728. left: this.positionAbs.left - this.margins.left,
  7729. scroll: !1,
  7730. parent: this._getParentOffset(),
  7731. relative: this._getRelativeOffset()
  7732. }, this.offset.click = {
  7733. left: t.pageX - this.offset.left,
  7734. top: t.pageY - this.offset.top
  7735. }
  7736. },
  7737. _mouseDrag: function (t, e) {
  7738. if (this.hasFixedAncestor && (this.offset.parent = this._getParentOffset()), this.position = this._generatePosition(t, !0), this.positionAbs = this._convertPositionTo("absolute"), !e) {
  7739. var i = this._uiHash();
  7740. if (!1 === this._trigger("drag", t, i)) return this._mouseUp(new S.Event("mouseup", t)), !1;
  7741. this.position = i.position
  7742. }
  7743. return this.helper[0].style.left = this.position.left + "px", this.helper[0].style.top = this.position.top + "px", S.ui.ddmanager && S.ui.ddmanager.drag(this, t), !1
  7744. },
  7745. _mouseStop: function (t) {
  7746. var e = this,
  7747. i = !1;
  7748. return S.ui.ddmanager && !this.options.dropBehaviour && (i = S.ui.ddmanager.drop(this, t)), this.dropped && (i = this.dropped, this.dropped = !1), "invalid" === this.options.revert && !i || "valid" === this.options.revert && i || !0 === this.options.revert || S.isFunction(this.options.revert) && this.options.revert.call(this.element, i) ? S(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10), function () {
  7749. !1 !== e._trigger("stop", t) && e._clear()
  7750. }) : !1 !== this._trigger("stop", t) && this._clear(), !1
  7751. },
  7752. _mouseUp: function (t) {
  7753. return this._unblockFrames(), S.ui.ddmanager && S.ui.ddmanager.dragStop(this, t), this.handleElement.is(t.target) && this.element.trigger("focus"), S.ui.mouse.prototype._mouseUp.call(this, t)
  7754. },
  7755. cancel: function () {
  7756. return this.helper.is(".ui-draggable-dragging") ? this._mouseUp(new S.Event("mouseup", {
  7757. target: this.element[0]
  7758. })) : this._clear(), this
  7759. },
  7760. _getHandle: function (t) {
  7761. return !this.options.handle || !!S(t.target).closest(this.element.find(this.options.handle)).length
  7762. },
  7763. _setHandleClassName: function () {
  7764. this.handleElement = this.options.handle ? this.element.find(this.options.handle) : this.element, this._addClass(this.handleElement, "ui-draggable-handle")
  7765. },
  7766. _removeHandleClassName: function () {
  7767. this._removeClass(this.handleElement, "ui-draggable-handle")
  7768. },
  7769. _createHelper: function (t) {
  7770. var e = this.options,
  7771. i = S.isFunction(e.helper),
  7772. n = i ? S(e.helper.apply(this.element[0], [t])) : "clone" === e.helper ? this.element.clone().removeAttr("id") : this.element;
  7773. return n.parents("body").length || n.appendTo("parent" === e.appendTo ? this.element[0].parentNode : e.appendTo), i && n[0] === this.element[0] && this._setPositionRelative(), n[0] === this.element[0] || /(fixed|absolute)/.test(n.css("position")) || n.css("position", "absolute"), n
  7774. },
  7775. _setPositionRelative: function () {
  7776. /^(?:r|a|f)/.test(this.element.css("position")) || (this.element[0].style.position = "relative")
  7777. },
  7778. _adjustOffsetFromHelper: function (t) {
  7779. "string" == typeof t && (t = t.split(" ")), S.isArray(t) && (t = {
  7780. left: +t[0],
  7781. top: +t[1] || 0
  7782. }), "left" in t && (this.offset.click.left = t.left + this.margins.left), "right" in t && (this.offset.click.left = this.helperProportions.width - t.right + this.margins.left), "top" in t && (this.offset.click.top = t.top + this.margins.top), "bottom" in t && (this.offset.click.top = this.helperProportions.height - t.bottom + this.margins.top)
  7783. },
  7784. _isRootNode: function (t) {
  7785. return /(html|body)/i.test(t.tagName) || t === this.document[0]
  7786. },
  7787. _getParentOffset: function () {
  7788. var t = this.offsetParent.offset(),
  7789. e = this.document[0];
  7790. return "absolute" === this.cssPosition && this.scrollParent[0] !== e && S.contains(this.scrollParent[0], this.offsetParent[0]) && (t.left += this.scrollParent.scrollLeft(), t.top += this.scrollParent.scrollTop()), this._isRootNode(this.offsetParent[0]) && (t = {
  7791. top: 0,
  7792. left: 0
  7793. }), {
  7794. top: t.top + (parseInt(this.offsetParent.css("borderTopWidth"), 10) || 0),
  7795. left: t.left + (parseInt(this.offsetParent.css("borderLeftWidth"), 10) || 0)
  7796. }
  7797. },
  7798. _getRelativeOffset: function () {
  7799. if ("relative" !== this.cssPosition) return {
  7800. top: 0,
  7801. left: 0
  7802. };
  7803. var t = this.element.position(),
  7804. e = this._isRootNode(this.scrollParent[0]);
  7805. return {
  7806. top: t.top - (parseInt(this.helper.css("top"), 10) || 0) + (e ? 0 : this.scrollParent.scrollTop()),
  7807. left: t.left - (parseInt(this.helper.css("left"), 10) || 0) + (e ? 0 : this.scrollParent.scrollLeft())
  7808. }
  7809. },
  7810. _cacheMargins: function () {
  7811. this.margins = {
  7812. left: parseInt(this.element.css("marginLeft"), 10) || 0,
  7813. top: parseInt(this.element.css("marginTop"), 10) || 0,
  7814. right: parseInt(this.element.css("marginRight"), 10) || 0,
  7815. bottom: parseInt(this.element.css("marginBottom"), 10) || 0
  7816. }
  7817. },
  7818. _cacheHelperProportions: function () {
  7819. this.helperProportions = {
  7820. width: this.helper.outerWidth(),
  7821. height: this.helper.outerHeight()
  7822. }
  7823. },
  7824. _setContainment: function () {
  7825. var t, e, i, n = this.options,
  7826. s = this.document[0];
  7827. return this.relativeContainer = null, n.containment ? "window" === n.containment ? void(this.containment = [S(window).scrollLeft() - this.offset.relative.left - this.offset.parent.left, S(window).scrollTop() - this.offset.relative.top - this.offset.parent.top, S(window).scrollLeft() + S(window).width() - this.helperProportions.width - this.margins.left, S(window).scrollTop() + (S(window).height() || s.body.parentNode.scrollHeight) - this.helperProportions.height - this.margins.top]) : "document" === n.containment ? void(this.containment = [0, 0, S(s).width() - this.helperProportions.width - this.margins.left, (S(s).height() || s.body.parentNode.scrollHeight) - this.helperProportions.height - this.margins.top]) : n.containment.constructor === Array ? void(this.containment = n.containment) : ("parent" === n.containment && (n.containment = this.helper[0].parentNode), void((i = (e = S(n.containment))[0]) && (t = /(scroll|auto)/.test(e.css("overflow")), this.containment = [(parseInt(e.css("borderLeftWidth"), 10) || 0) + (parseInt(e.css("paddingLeft"), 10) || 0), (parseInt(e.css("borderTopWidth"), 10) || 0) + (parseInt(e.css("paddingTop"), 10) || 0), (t ? Math.max(i.scrollWidth, i.offsetWidth) : i.offsetWidth) - (parseInt(e.css("borderRightWidth"), 10) || 0) - (parseInt(e.css("paddingRight"), 10) || 0) - this.helperProportions.width - this.margins.left - this.margins.right, (t ? Math.max(i.scrollHeight, i.offsetHeight) : i.offsetHeight) - (parseInt(e.css("borderBottomWidth"), 10) || 0) - (parseInt(e.css("paddingBottom"), 10) || 0) - this.helperProportions.height - this.margins.top - this.margins.bottom], this.relativeContainer = e))) : void(this.containment = null)
  7828. },
  7829. _convertPositionTo: function (t, e) {
  7830. e || (e = this.position);
  7831. var i = "absolute" === t ? 1 : -1,
  7832. n = this._isRootNode(this.scrollParent[0]);
  7833. return {
  7834. top: e.top + this.offset.relative.top * i + this.offset.parent.top * i - ("fixed" === this.cssPosition ? -this.offset.scroll.top : n ? 0 : this.offset.scroll.top) * i,
  7835. left: e.left + this.offset.relative.left * i + this.offset.parent.left * i - ("fixed" === this.cssPosition ? -this.offset.scroll.left : n ? 0 : this.offset.scroll.left) * i
  7836. }
  7837. },
  7838. _generatePosition: function (t, e) {
  7839. var i, n, s, o, r = this.options,
  7840. a = this._isRootNode(this.scrollParent[0]),
  7841. l = t.pageX,
  7842. c = t.pageY;
  7843. return a && this.offset.scroll || (this.offset.scroll = {
  7844. top: this.scrollParent.scrollTop(),
  7845. left: this.scrollParent.scrollLeft()
  7846. }), e && (this.containment && (i = this.relativeContainer ? (n = this.relativeContainer.offset(), [this.containment[0] + n.left, this.containment[1] + n.top, this.containment[2] + n.left, this.containment[3] + n.top]) : this.containment, t.pageX - this.offset.click.left < i[0] && (l = i[0] + this.offset.click.left), t.pageY - this.offset.click.top < i[1] && (c = i[1] + this.offset.click.top), t.pageX - this.offset.click.left > i[2] && (l = i[2] + this.offset.click.left), t.pageY - this.offset.click.top > i[3] && (c = i[3] + this.offset.click.top)), r.grid && (s = r.grid[1] ? this.originalPageY + Math.round((c - this.originalPageY) / r.grid[1]) * r.grid[1] : this.originalPageY, c = i ? s - this.offset.click.top >= i[1] || s - this.offset.click.top > i[3] ? s : s - this.offset.click.top >= i[1] ? s - r.grid[1] : s + r.grid[1] : s, o = r.grid[0] ? this.originalPageX + Math.round((l - this.originalPageX) / r.grid[0]) * r.grid[0] : this.originalPageX, l = i ? o - this.offset.click.left >= i[0] || o - this.offset.click.left > i[2] ? o : o - this.offset.click.left >= i[0] ? o - r.grid[0] : o + r.grid[0] : o), "y" === r.axis && (l = this.originalPageX), "x" === r.axis && (c = this.originalPageY)), {
  7847. top: c - this.offset.click.top - this.offset.relative.top - this.offset.parent.top + ("fixed" === this.cssPosition ? -this.offset.scroll.top : a ? 0 : this.offset.scroll.top),
  7848. left: l - this.offset.click.left - this.offset.relative.left - this.offset.parent.left + ("fixed" === this.cssPosition ? -this.offset.scroll.left : a ? 0 : this.offset.scroll.left)
  7849. }
  7850. },
  7851. _clear: function () {
  7852. this._removeClass(this.helper, "ui-draggable-dragging"), this.helper[0] === this.element[0] || this.cancelHelperRemoval || this.helper.remove(), this.helper = null, this.cancelHelperRemoval = !1, this.destroyOnClear && this.destroy()
  7853. },
  7854. _trigger: function (t, e, i) {
  7855. return i = i || this._uiHash(), S.ui.plugin.call(this, t, [e, i, this], !0), /^(drag|start|stop)/.test(t) && (this.positionAbs = this._convertPositionTo("absolute"), i.offset = this.positionAbs), S.Widget.prototype._trigger.call(this, t, e, i)
  7856. },
  7857. plugins: {},
  7858. _uiHash: function () {
  7859. return {
  7860. helper: this.helper,
  7861. position: this.position,
  7862. originalPosition: this.originalPosition,
  7863. offset: this.positionAbs
  7864. }
  7865. }
  7866. }), S.ui.plugin.add("draggable", "connectToSortable", {
  7867. start: function (e, t, i) {
  7868. var n = S.extend({}, t, {
  7869. item: i.element
  7870. });
  7871. i.sortables = [], S(i.options.connectToSortable).each(function () {
  7872. var t = S(this).sortable("instance");
  7873. t && !t.options.disabled && (i.sortables.push(t), t.refreshPositions(), t._trigger("activate", e, n))
  7874. })
  7875. },
  7876. stop: function (e, t, i) {
  7877. var n = S.extend({}, t, {
  7878. item: i.element
  7879. });
  7880. i.cancelHelperRemoval = !1, S.each(i.sortables, function () {
  7881. var t = this;
  7882. t.isOver ? (t.isOver = 0, i.cancelHelperRemoval = !0, t.cancelHelperRemoval = !1, t._storedCSS = {
  7883. position: t.placeholder.css("position"),
  7884. top: t.placeholder.css("top"),
  7885. left: t.placeholder.css("left")
  7886. }, t._mouseStop(e), t.options.helper = t.options._helper) : (t.cancelHelperRemoval = !0, t._trigger("deactivate", e, n))
  7887. })
  7888. },
  7889. drag: function (i, n, s) {
  7890. S.each(s.sortables, function () {
  7891. var t = !1,
  7892. e = this;
  7893. e.positionAbs = s.positionAbs, e.helperProportions = s.helperProportions, e.offset.click = s.offset.click, e._intersectsWith(e.containerCache) && (t = !0, S.each(s.sortables, function () {
  7894. return this.positionAbs = s.positionAbs, this.helperProportions = s.helperProportions, this.offset.click = s.offset.click, this !== e && this._intersectsWith(this.containerCache) && S.contains(e.element[0], this.element[0]) && (t = !1), t
  7895. })), t ? (e.isOver || (e.isOver = 1, s._parent = n.helper.parent(), e.currentItem = n.helper.appendTo(e.element).data("ui-sortable-item", !0), e.options._helper = e.options.helper, e.options.helper = function () {
  7896. return n.helper[0]
  7897. }, i.target = e.currentItem[0], e._mouseCapture(i, !0), e._mouseStart(i, !0, !0), e.offset.click.top = s.offset.click.top, e.offset.click.left = s.offset.click.left, e.offset.parent.left -= s.offset.parent.left - e.offset.parent.left, e.offset.parent.top -= s.offset.parent.top - e.offset.parent.top, s._trigger("toSortable", i), s.dropped = e.element, S.each(s.sortables, function () {
  7898. this.refreshPositions()
  7899. }), s.currentItem = s.element, e.fromOutside = s), e.currentItem && (e._mouseDrag(i), n.position = e.position)) : e.isOver && (e.isOver = 0, e.cancelHelperRemoval = !0, e.options._revert = e.options.revert, e.options.revert = !1, e._trigger("out", i, e._uiHash(e)), e._mouseStop(i, !0), e.options.revert = e.options._revert, e.options.helper = e.options._helper, e.placeholder && e.placeholder.remove(), n.helper.appendTo(s._parent), s._refreshOffsets(i), n.position = s._generatePosition(i, !0), s._trigger("fromSortable", i), s.dropped = !1, S.each(s.sortables, function () {
  7900. this.refreshPositions()
  7901. }))
  7902. })
  7903. }
  7904. }), S.ui.plugin.add("draggable", "cursor", {
  7905. start: function (t, e, i) {
  7906. var n = S("body"),
  7907. s = i.options;
  7908. n.css("cursor") && (s._cursor = n.css("cursor")), n.css("cursor", s.cursor)
  7909. },
  7910. stop: function (t, e, i) {
  7911. var n = i.options;
  7912. n._cursor && S("body").css("cursor", n._cursor)
  7913. }
  7914. }), S.ui.plugin.add("draggable", "opacity", {
  7915. start: function (t, e, i) {
  7916. var n = S(e.helper),
  7917. s = i.options;
  7918. n.css("opacity") && (s._opacity = n.css("opacity")), n.css("opacity", s.opacity)
  7919. },
  7920. stop: function (t, e, i) {
  7921. var n = i.options;
  7922. n._opacity && S(e.helper).css("opacity", n._opacity)
  7923. }
  7924. }), S.ui.plugin.add("draggable", "scroll", {
  7925. start: function (t, e, i) {
  7926. i.scrollParentNotHidden || (i.scrollParentNotHidden = i.helper.scrollParent(!1)), i.scrollParentNotHidden[0] !== i.document[0] && "HTML" !== i.scrollParentNotHidden[0].tagName && (i.overflowOffset = i.scrollParentNotHidden.offset())
  7927. },
  7928. drag: function (t, e, i) {
  7929. var n = i.options,
  7930. s = !1,
  7931. o = i.scrollParentNotHidden[0],
  7932. r = i.document[0];
  7933. o !== r && "HTML" !== o.tagName ? (n.axis && "x" === n.axis || (i.overflowOffset.top + o.offsetHeight - t.pageY < n.scrollSensitivity ? o.scrollTop = s = o.scrollTop + n.scrollSpeed : t.pageY - i.overflowOffset.top < n.scrollSensitivity && (o.scrollTop = s = o.scrollTop - n.scrollSpeed)), n.axis && "y" === n.axis || (i.overflowOffset.left + o.offsetWidth - t.pageX < n.scrollSensitivity ? o.scrollLeft = s = o.scrollLeft + n.scrollSpeed : t.pageX - i.overflowOffset.left < n.scrollSensitivity && (o.scrollLeft = s = o.scrollLeft - n.scrollSpeed))) : (n.axis && "x" === n.axis || (t.pageY - S(r).scrollTop() < n.scrollSensitivity ? s = S(r).scrollTop(S(r).scrollTop() - n.scrollSpeed) : S(window).height() - (t.pageY - S(r).scrollTop()) < n.scrollSensitivity && (s = S(r).scrollTop(S(r).scrollTop() + n.scrollSpeed))), n.axis && "y" === n.axis || (t.pageX - S(r).scrollLeft() < n.scrollSensitivity ? s = S(r).scrollLeft(S(r).scrollLeft() - n.scrollSpeed) : S(window).width() - (t.pageX - S(r).scrollLeft()) < n.scrollSensitivity && (s = S(r).scrollLeft(S(r).scrollLeft() + n.scrollSpeed)))), !1 !== s && S.ui.ddmanager && !n.dropBehaviour && S.ui.ddmanager.prepareOffsets(i, t)
  7934. }
  7935. }), S.ui.plugin.add("draggable", "snap", {
  7936. start: function (t, e, i) {
  7937. var n = i.options;
  7938. i.snapElements = [], S(n.snap.constructor !== String ? n.snap.items || ":data(ui-draggable)" : n.snap).each(function () {
  7939. var t = S(this),
  7940. e = t.offset();
  7941. this !== i.element[0] && i.snapElements.push({
  7942. item: this,
  7943. width: t.outerWidth(),
  7944. height: t.outerHeight(),
  7945. top: e.top,
  7946. left: e.left
  7947. })
  7948. })
  7949. },
  7950. drag: function (t, e, i) {
  7951. var n, s, o, r, a, l, c, u, h, d, p = i.options,
  7952. f = p.snapTolerance,
  7953. g = e.offset.left,
  7954. m = g + i.helperProportions.width,
  7955. v = e.offset.top,
  7956. _ = v + i.helperProportions.height;
  7957. for (h = i.snapElements.length - 1; 0 <= h; h--) l = (a = i.snapElements[h].left - i.margins.left) + i.snapElements[h].width, u = (c = i.snapElements[h].top - i.margins.top) + i.snapElements[h].height, m < a - f || l + f < g || _ < c - f || u + f < v || !S.contains(i.snapElements[h].item.ownerDocument, i.snapElements[h].item) ? (i.snapElements[h].snapping && i.options.snap.release && i.options.snap.release.call(i.element, t, S.extend(i._uiHash(), {
  7958. snapItem: i.snapElements[h].item
  7959. })), i.snapElements[h].snapping = !1) : ("inner" !== p.snapMode && (n = f >= Math.abs(c - _), s = f >= Math.abs(u - v), o = f >= Math.abs(a - m), r = f >= Math.abs(l - g), n && (e.position.top = i._convertPositionTo("relative", {
  7960. top: c - i.helperProportions.height,
  7961. left: 0
  7962. }).top), s && (e.position.top = i._convertPositionTo("relative", {
  7963. top: u,
  7964. left: 0
  7965. }).top), o && (e.position.left = i._convertPositionTo("relative", {
  7966. top: 0,
  7967. left: a - i.helperProportions.width
  7968. }).left), r && (e.position.left = i._convertPositionTo("relative", {
  7969. top: 0,
  7970. left: l
  7971. }).left)), d = n || s || o || r, "outer" !== p.snapMode && (n = f >= Math.abs(c - v), s = f >= Math.abs(u - _), o = f >= Math.abs(a - g), r = f >= Math.abs(l - m), n && (e.position.top = i._convertPositionTo("relative", {
  7972. top: c,
  7973. left: 0
  7974. }).top), s && (e.position.top = i._convertPositionTo("relative", {
  7975. top: u - i.helperProportions.height,
  7976. left: 0
  7977. }).top), o && (e.position.left = i._convertPositionTo("relative", {
  7978. top: 0,
  7979. left: a
  7980. }).left), r && (e.position.left = i._convertPositionTo("relative", {
  7981. top: 0,
  7982. left: l - i.helperProportions.width
  7983. }).left)), !i.snapElements[h].snapping && (n || s || o || r || d) && i.options.snap.snap && i.options.snap.snap.call(i.element, t, S.extend(i._uiHash(), {
  7984. snapItem: i.snapElements[h].item
  7985. })), i.snapElements[h].snapping = n || s || o || r || d)
  7986. }
  7987. }), S.ui.plugin.add("draggable", "stack", {
  7988. start: function (t, e, i) {
  7989. var n, s = i.options,
  7990. o = S.makeArray(S(s.stack)).sort(function (t, e) {
  7991. return (parseInt(S(t).css("zIndex"), 10) || 0) - (parseInt(S(e).css("zIndex"), 10) || 0)
  7992. });
  7993. o.length && (n = parseInt(S(o[0]).css("zIndex"), 10) || 0, S(o).each(function (t) {
  7994. S(this).css("zIndex", n + t)
  7995. }), this.css("zIndex", n + o.length))
  7996. }
  7997. }), S.ui.plugin.add("draggable", "zIndex", {
  7998. start: function (t, e, i) {
  7999. var n = S(e.helper),
  8000. s = i.options;
  8001. n.css("zIndex") && (s._zIndex = n.css("zIndex")), n.css("zIndex", s.zIndex)
  8002. },
  8003. stop: function (t, e, i) {
  8004. var n = i.options;
  8005. n._zIndex && S(e.helper).css("zIndex", n._zIndex)
  8006. }
  8007. }), S.ui.draggable, S.widget("ui.resizable", S.ui.mouse, {
  8008. version: "1.12.1",
  8009. widgetEventPrefix: "resize",
  8010. options: {
  8011. alsoResize: !1,
  8012. animate: !1,
  8013. animateDuration: "slow",
  8014. animateEasing: "swing",
  8015. aspectRatio: !1,
  8016. autoHide: !1,
  8017. classes: {
  8018. "ui-resizable-se": "ui-icon ui-icon-gripsmall-diagonal-se"
  8019. },
  8020. containment: !1,
  8021. ghost: !1,
  8022. grid: !1,
  8023. handles: "e,s,se",
  8024. helper: !1,
  8025. maxHeight: null,
  8026. maxWidth: null,
  8027. minHeight: 10,
  8028. minWidth: 10,
  8029. zIndex: 90,
  8030. resize: null,
  8031. start: null,
  8032. stop: null
  8033. },
  8034. _num: function (t) {
  8035. return parseFloat(t) || 0
  8036. },
  8037. _isNumber: function (t) {
  8038. return !isNaN(parseFloat(t))
  8039. },
  8040. _hasScroll: function (t, e) {
  8041. if ("hidden" === S(t).css("overflow")) return !1;
  8042. var i = e && "left" === e ? "scrollLeft" : "scrollTop",
  8043. n = !1;
  8044. return 0 < t[i] || (t[i] = 1, n = 0 < t[i], t[i] = 0, n)
  8045. },
  8046. _create: function () {
  8047. var t, e = this.options,
  8048. i = this;
  8049. this._addClass("ui-resizable"), S.extend(this, {
  8050. _aspectRatio: !!e.aspectRatio,
  8051. aspectRatio: e.aspectRatio,
  8052. originalElement: this.element,
  8053. _proportionallyResizeElements: [],
  8054. _helper: e.helper || e.ghost || e.animate ? e.helper || "ui-resizable-helper" : null
  8055. }), this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i) && (this.element.wrap(S("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({
  8056. position: this.element.css("position"),
  8057. width: this.element.outerWidth(),
  8058. height: this.element.outerHeight(),
  8059. top: this.element.css("top"),
  8060. left: this.element.css("left")
  8061. })), this.element = this.element.parent().data("ui-resizable", this.element.resizable("instance")), this.elementIsWrapper = !0, t = {
  8062. marginTop: this.originalElement.css("marginTop"),
  8063. marginRight: this.originalElement.css("marginRight"),
  8064. marginBottom: this.originalElement.css("marginBottom"),
  8065. marginLeft: this.originalElement.css("marginLeft")
  8066. }, this.element.css(t), this.originalElement.css("margin", 0), this.originalResizeStyle = this.originalElement.css("resize"), this.originalElement.css("resize", "none"), this._proportionallyResizeElements.push(this.originalElement.css({
  8067. position: "static",
  8068. zoom: 1,
  8069. display: "block"
  8070. })), this.originalElement.css(t), this._proportionallyResize()), this._setupHandles(), e.autoHide && S(this.element).on("mouseenter", function () {
  8071. e.disabled || (i._removeClass("ui-resizable-autohide"), i._handles.show())
  8072. }).on("mouseleave", function () {
  8073. e.disabled || i.resizing || (i._addClass("ui-resizable-autohide"), i._handles.hide())
  8074. }), this._mouseInit()
  8075. },
  8076. _destroy: function () {
  8077. this._mouseDestroy();
  8078. function t(t) {
  8079. S(t).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()
  8080. }
  8081. var e;
  8082. return this.elementIsWrapper && (t(this.element), e = this.element, this.originalElement.css({
  8083. position: e.css("position"),
  8084. width: e.outerWidth(),
  8085. height: e.outerHeight(),
  8086. top: e.css("top"),
  8087. left: e.css("left")
  8088. }).insertAfter(e), e.remove()), this.originalElement.css("resize", this.originalResizeStyle), t(this.originalElement), this
  8089. },
  8090. _setOption: function (t, e) {
  8091. switch (this._super(t, e), t) {
  8092. case "handles":
  8093. this._removeHandles(), this._setupHandles()
  8094. }
  8095. },
  8096. _setupHandles: function () {
  8097. var t, e, i, n, s, o = this.options,
  8098. r = this;
  8099. if (this.handles = o.handles || (S(".ui-resizable-handle", this.element).length ? {
  8100. n: ".ui-resizable-n",
  8101. e: ".ui-resizable-e",
  8102. s: ".ui-resizable-s",
  8103. w: ".ui-resizable-w",
  8104. se: ".ui-resizable-se",
  8105. sw: ".ui-resizable-sw",
  8106. ne: ".ui-resizable-ne",
  8107. nw: ".ui-resizable-nw"
  8108. } : "e,s,se"), this._handles = S(), this.handles.constructor === String)
  8109. for ("all" === this.handles && (this.handles = "n,e,s,w,se,sw,ne,nw"), i = this.handles.split(","), this.handles = {}, e = 0; i.length > e; e++) n = "ui-resizable-" + (t = S.trim(i[e])), s = S("<div>"), this._addClass(s, "ui-resizable-handle " + n), s.css({
  8110. zIndex: o.zIndex
  8111. }), this.handles[t] = ".ui-resizable-" + t, this.element.append(s);
  8112. this._renderAxis = function (t) {
  8113. var e, i, n, s;
  8114. for (e in t = t || this.element, this.handles) this.handles[e].constructor === String ? this.handles[e] = this.element.children(this.handles[e]).first().show() : (this.handles[e].jquery || this.handles[e].nodeType) && (this.handles[e] = S(this.handles[e]), this._on(this.handles[e], {
  8115. mousedown: r._mouseDown
  8116. })), this.elementIsWrapper && this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i) && (i = S(this.handles[e], this.element), s = /sw|ne|nw|se|n|s/.test(e) ? i.outerHeight() : i.outerWidth(), n = ["padding", /ne|nw|n/.test(e) ? "Top" : /se|sw|s/.test(e) ? "Bottom" : /^e$/.test(e) ? "Right" : "Left"].join(""), t.css(n, s), this._proportionallyResize()), this._handles = this._handles.add(this.handles[e])
  8117. }, this._renderAxis(this.element), this._handles = this._handles.add(this.element.find(".ui-resizable-handle")), this._handles.disableSelection(), this._handles.on("mouseover", function () {
  8118. r.resizing || (this.className && (s = this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)), r.axis = s && s[1] ? s[1] : "se")
  8119. }), o.autoHide && (this._handles.hide(), this._addClass("ui-resizable-autohide"))
  8120. },
  8121. _removeHandles: function () {
  8122. this._handles.remove()
  8123. },
  8124. _mouseCapture: function (t) {
  8125. var e, i, n = !1;
  8126. for (e in this.handles)((i = S(this.handles[e])[0]) === t.target || S.contains(i, t.target)) && (n = !0);
  8127. return !this.options.disabled && n
  8128. },
  8129. _mouseStart: function (t) {
  8130. var e, i, n, s = this.options,
  8131. o = this.element;
  8132. return this.resizing = !0, this._renderProxy(), e = this._num(this.helper.css("left")), i = this._num(this.helper.css("top")), s.containment && (e += S(s.containment).scrollLeft() || 0, i += S(s.containment).scrollTop() || 0), this.offset = this.helper.offset(), this.position = {
  8133. left: e,
  8134. top: i
  8135. }, this.size = this._helper ? {
  8136. width: this.helper.width(),
  8137. height: this.helper.height()
  8138. } : {
  8139. width: o.width(),
  8140. height: o.height()
  8141. }, this.originalSize = this._helper ? {
  8142. width: o.outerWidth(),
  8143. height: o.outerHeight()
  8144. } : {
  8145. width: o.width(),
  8146. height: o.height()
  8147. }, this.sizeDiff = {
  8148. width: o.outerWidth() - o.width(),
  8149. height: o.outerHeight() - o.height()
  8150. }, this.originalPosition = {
  8151. left: e,
  8152. top: i
  8153. }, this.originalMousePosition = {
  8154. left: t.pageX,
  8155. top: t.pageY
  8156. }, this.aspectRatio = "number" == typeof s.aspectRatio ? s.aspectRatio : this.originalSize.width / this.originalSize.height || 1, n = S(".ui-resizable-" + this.axis).css("cursor"), S("body").css("cursor", "auto" === n ? this.axis + "-resize" : n), this._addClass("ui-resizable-resizing"), this._propagate("start", t), !0
  8157. },
  8158. _mouseDrag: function (t) {
  8159. var e, i, n = this.originalMousePosition,
  8160. s = this.axis,
  8161. o = t.pageX - n.left || 0,
  8162. r = t.pageY - n.top || 0,
  8163. a = this._change[s];
  8164. return this._updatePrevProperties(), a && (e = a.apply(this, [t, o, r]), this._updateVirtualBoundaries(t.shiftKey), (this._aspectRatio || t.shiftKey) && (e = this._updateRatio(e, t)), e = this._respectSize(e, t), this._updateCache(e), this._propagate("resize", t), i = this._applyChanges(), !this._helper && this._proportionallyResizeElements.length && this._proportionallyResize(), S.isEmptyObject(i) || (this._updatePrevProperties(), this._trigger("resize", t, this.ui()), this._applyChanges())), !1
  8165. },
  8166. _mouseStop: function (t) {
  8167. this.resizing = !1;
  8168. var e, i, n, s, o, r, a, l = this.options,
  8169. c = this;
  8170. return this._helper && (n = (i = (e = this._proportionallyResizeElements).length && /textarea/i.test(e[0].nodeName)) && this._hasScroll(e[0], "left") ? 0 : c.sizeDiff.height, s = i ? 0 : c.sizeDiff.width, o = {
  8171. width: c.helper.width() - s,
  8172. height: c.helper.height() - n
  8173. }, r = parseFloat(c.element.css("left")) + (c.position.left - c.originalPosition.left) || null, a = parseFloat(c.element.css("top")) + (c.position.top - c.originalPosition.top) || null, l.animate || this.element.css(S.extend(o, {
  8174. top: a,
  8175. left: r
  8176. })), c.helper.height(c.size.height), c.helper.width(c.size.width), this._helper && !l.animate && this._proportionallyResize()), S("body").css("cursor", "auto"), this._removeClass("ui-resizable-resizing"), this._propagate("stop", t), this._helper && this.helper.remove(), !1
  8177. },
  8178. _updatePrevProperties: function () {
  8179. this.prevPosition = {
  8180. top: this.position.top,
  8181. left: this.position.left
  8182. }, this.prevSize = {
  8183. width: this.size.width,
  8184. height: this.size.height
  8185. }
  8186. },
  8187. _applyChanges: function () {
  8188. var t = {};
  8189. return this.position.top !== this.prevPosition.top && (t.top = this.position.top + "px"), this.position.left !== this.prevPosition.left && (t.left = this.position.left + "px"), this.size.width !== this.prevSize.width && (t.width = this.size.width + "px"), this.size.height !== this.prevSize.height && (t.height = this.size.height + "px"), this.helper.css(t), t
  8190. },
  8191. _updateVirtualBoundaries: function (t) {
  8192. var e, i, n, s, o, r = this.options;
  8193. o = {
  8194. minWidth: this._isNumber(r.minWidth) ? r.minWidth : 0,
  8195. maxWidth: this._isNumber(r.maxWidth) ? r.maxWidth : 1 / 0,
  8196. minHeight: this._isNumber(r.minHeight) ? r.minHeight : 0,
  8197. maxHeight: this._isNumber(r.maxHeight) ? r.maxHeight : 1 / 0
  8198. }, (this._aspectRatio || t) && (e = o.minHeight * this.aspectRatio, n = o.minWidth / this.aspectRatio, i = o.maxHeight * this.aspectRatio, s = o.maxWidth / this.aspectRatio, e > o.minWidth && (o.minWidth = e), n > o.minHeight && (o.minHeight = n), o.maxWidth > i && (o.maxWidth = i), o.maxHeight > s && (o.maxHeight = s)), this._vBoundaries = o
  8199. },
  8200. _updateCache: function (t) {
  8201. this.offset = this.helper.offset(), this._isNumber(t.left) && (this.position.left = t.left), this._isNumber(t.top) && (this.position.top = t.top), this._isNumber(t.height) && (this.size.height = t.height), this._isNumber(t.width) && (this.size.width = t.width)
  8202. },
  8203. _updateRatio: function (t) {
  8204. var e = this.position,
  8205. i = this.size,
  8206. n = this.axis;
  8207. return this._isNumber(t.height) ? t.width = t.height * this.aspectRatio : this._isNumber(t.width) && (t.height = t.width / this.aspectRatio), "sw" === n && (t.left = e.left + (i.width - t.width), t.top = null), "nw" === n && (t.top = e.top + (i.height - t.height), t.left = e.left + (i.width - t.width)), t
  8208. },
  8209. _respectSize: function (t) {
  8210. var e = this._vBoundaries,
  8211. i = this.axis,
  8212. n = this._isNumber(t.width) && e.maxWidth && e.maxWidth < t.width,
  8213. s = this._isNumber(t.height) && e.maxHeight && e.maxHeight < t.height,
  8214. o = this._isNumber(t.width) && e.minWidth && e.minWidth > t.width,
  8215. r = this._isNumber(t.height) && e.minHeight && e.minHeight > t.height,
  8216. a = this.originalPosition.left + this.originalSize.width,
  8217. l = this.originalPosition.top + this.originalSize.height,
  8218. c = /sw|nw|w/.test(i),
  8219. u = /nw|ne|n/.test(i);
  8220. return o && (t.width = e.minWidth), r && (t.height = e.minHeight), n && (t.width = e.maxWidth), s && (t.height = e.maxHeight), o && c && (t.left = a - e.minWidth), n && c && (t.left = a - e.maxWidth), r && u && (t.top = l - e.minHeight), s && u && (t.top = l - e.maxHeight), t.width || t.height || t.left || !t.top ? t.width || t.height || t.top || !t.left || (t.left = null) : t.top = null, t
  8221. },
  8222. _getPaddingPlusBorderDimensions: function (t) {
  8223. for (var e = 0, i = [], n = [t.css("borderTopWidth"), t.css("borderRightWidth"), t.css("borderBottomWidth"), t.css("borderLeftWidth")], s = [t.css("paddingTop"), t.css("paddingRight"), t.css("paddingBottom"), t.css("paddingLeft")]; e < 4; e++) i[e] = parseFloat(n[e]) || 0, i[e] += parseFloat(s[e]) || 0;
  8224. return {
  8225. height: i[0] + i[2],
  8226. width: i[1] + i[3]
  8227. }
  8228. },
  8229. _proportionallyResize: function () {
  8230. if (this._proportionallyResizeElements.length)
  8231. for (var t, e = 0, i = this.helper || this.element; this._proportionallyResizeElements.length > e; e++) t = this._proportionallyResizeElements[e], this.outerDimensions || (this.outerDimensions = this._getPaddingPlusBorderDimensions(t)), t.css({
  8232. height: i.height() - this.outerDimensions.height || 0,
  8233. width: i.width() - this.outerDimensions.width || 0
  8234. })
  8235. },
  8236. _renderProxy: function () {
  8237. var t = this.element,
  8238. e = this.options;
  8239. this.elementOffset = t.offset(), this._helper ? (this.helper = this.helper || S("<div style='overflow:hidden;'></div>"), this._addClass(this.helper, this._helper), this.helper.css({
  8240. width: this.element.outerWidth(),
  8241. height: this.element.outerHeight(),
  8242. position: "absolute",
  8243. left: this.elementOffset.left + "px",
  8244. top: this.elementOffset.top + "px",
  8245. zIndex: ++e.zIndex
  8246. }), this.helper.appendTo("body").disableSelection()) : this.helper = this.element
  8247. },
  8248. _change: {
  8249. e: function (t, e) {
  8250. return {
  8251. width: this.originalSize.width + e
  8252. }
  8253. },
  8254. w: function (t, e) {
  8255. var i = this.originalSize;
  8256. return {
  8257. left: this.originalPosition.left + e,
  8258. width: i.width - e
  8259. }
  8260. },
  8261. n: function (t, e, i) {
  8262. var n = this.originalSize,
  8263. s = this.originalPosition;
  8264. return {
  8265. top: s.top + i,
  8266. height: n.height - i
  8267. }
  8268. },
  8269. s: function (t, e, i) {
  8270. return {
  8271. height: this.originalSize.height + i
  8272. }
  8273. },
  8274. se: function (t, e, i) {
  8275. return S.extend(this._change.s.apply(this, arguments), this._change.e.apply(this, [t, e, i]))
  8276. },
  8277. sw: function (t, e, i) {
  8278. return S.extend(this._change.s.apply(this, arguments), this._change.w.apply(this, [t, e, i]))
  8279. },
  8280. ne: function (t, e, i) {
  8281. return S.extend(this._change.n.apply(this, arguments), this._change.e.apply(this, [t, e, i]))
  8282. },
  8283. nw: function (t, e, i) {
  8284. return S.extend(this._change.n.apply(this, arguments), this._change.w.apply(this, [t, e, i]))
  8285. }
  8286. },
  8287. _propagate: function (t, e) {
  8288. S.ui.plugin.call(this, t, [e, this.ui()]), "resize" !== t && this._trigger(t, e, this.ui())
  8289. },
  8290. plugins: {},
  8291. ui: function () {
  8292. return {
  8293. originalElement: this.originalElement,
  8294. element: this.element,
  8295. helper: this.helper,
  8296. position: this.position,
  8297. size: this.size,
  8298. originalSize: this.originalSize,
  8299. originalPosition: this.originalPosition
  8300. }
  8301. }
  8302. }), S.ui.plugin.add("resizable", "animate", {
  8303. stop: function (e) {
  8304. var i = S(this).resizable("instance"),
  8305. t = i.options,
  8306. n = i._proportionallyResizeElements,
  8307. s = n.length && /textarea/i.test(n[0].nodeName),
  8308. o = s && i._hasScroll(n[0], "left") ? 0 : i.sizeDiff.height,
  8309. r = s ? 0 : i.sizeDiff.width,
  8310. a = {
  8311. width: i.size.width - r,
  8312. height: i.size.height - o
  8313. },
  8314. l = parseFloat(i.element.css("left")) + (i.position.left - i.originalPosition.left) || null,
  8315. c = parseFloat(i.element.css("top")) + (i.position.top - i.originalPosition.top) || null;
  8316. i.element.animate(S.extend(a, c && l ? {
  8317. top: c,
  8318. left: l
  8319. } : {}), {
  8320. duration: t.animateDuration,
  8321. easing: t.animateEasing,
  8322. step: function () {
  8323. var t = {
  8324. width: parseFloat(i.element.css("width")),
  8325. height: parseFloat(i.element.css("height")),
  8326. top: parseFloat(i.element.css("top")),
  8327. left: parseFloat(i.element.css("left"))
  8328. };
  8329. n && n.length && S(n[0]).css({
  8330. width: t.width,
  8331. height: t.height
  8332. }), i._updateCache(t), i._propagate("resize", e)
  8333. }
  8334. })
  8335. }
  8336. }), S.ui.plugin.add("resizable", "containment", {
  8337. start: function () {
  8338. var i, n, t, e, s, o, r, a = S(this).resizable("instance"),
  8339. l = a.options,
  8340. c = a.element,
  8341. u = l.containment,
  8342. h = u instanceof S ? u.get(0) : /parent/.test(u) ? c.parent().get(0) : u;
  8343. h && (a.containerElement = S(h), /document/.test(u) || u === document ? (a.containerOffset = {
  8344. left: 0,
  8345. top: 0
  8346. }, a.containerPosition = {
  8347. left: 0,
  8348. top: 0
  8349. }, a.parentData = {
  8350. element: S(document),
  8351. left: 0,
  8352. top: 0,
  8353. width: S(document).width(),
  8354. height: S(document).height() || document.body.parentNode.scrollHeight
  8355. }) : (i = S(h), n = [], S(["Top", "Right", "Left", "Bottom"]).each(function (t, e) {
  8356. n[t] = a._num(i.css("padding" + e))
  8357. }), a.containerOffset = i.offset(), a.containerPosition = i.position(), a.containerSize = {
  8358. height: i.innerHeight() - n[3],
  8359. width: i.innerWidth() - n[1]
  8360. }, t = a.containerOffset, e = a.containerSize.height, s = a.containerSize.width, o = a._hasScroll(h, "left") ? h.scrollWidth : s, r = a._hasScroll(h) ? h.scrollHeight : e, a.parentData = {
  8361. element: h,
  8362. left: t.left,
  8363. top: t.top,
  8364. width: o,
  8365. height: r
  8366. }))
  8367. },
  8368. resize: function (t) {
  8369. var e, i, n, s, o = S(this).resizable("instance"),
  8370. r = o.options,
  8371. a = o.containerOffset,
  8372. l = o.position,
  8373. c = o._aspectRatio || t.shiftKey,
  8374. u = {
  8375. top: 0,
  8376. left: 0
  8377. },
  8378. h = o.containerElement,
  8379. d = !0;
  8380. h[0] !== document && /static/.test(h.css("position")) && (u = a), l.left < (o._helper ? a.left : 0) && (o.size.width = o.size.width + (o._helper ? o.position.left - a.left : o.position.left - u.left), c && (o.size.height = o.size.width / o.aspectRatio, d = !1), o.position.left = r.helper ? a.left : 0), l.top < (o._helper ? a.top : 0) && (o.size.height = o.size.height + (o._helper ? o.position.top - a.top : o.position.top), c && (o.size.width = o.size.height * o.aspectRatio, d = !1), o.position.top = o._helper ? a.top : 0), n = o.containerElement.get(0) === o.element.parent().get(0), s = /relative|absolute/.test(o.containerElement.css("position")), n && s ? (o.offset.left = o.parentData.left + o.position.left, o.offset.top = o.parentData.top + o.position.top) : (o.offset.left = o.element.offset().left, o.offset.top = o.element.offset().top), e = Math.abs(o.sizeDiff.width + (o._helper ? o.offset.left - u.left : o.offset.left - a.left)), i = Math.abs(o.sizeDiff.height + (o._helper ? o.offset.top - u.top : o.offset.top - a.top)), e + o.size.width >= o.parentData.width && (o.size.width = o.parentData.width - e, c && (o.size.height = o.size.width / o.aspectRatio, d = !1)), i + o.size.height >= o.parentData.height && (o.size.height = o.parentData.height - i, c && (o.size.width = o.size.height * o.aspectRatio, d = !1)), d || (o.position.left = o.prevPosition.left, o.position.top = o.prevPosition.top, o.size.width = o.prevSize.width, o.size.height = o.prevSize.height)
  8381. },
  8382. stop: function () {
  8383. var t = S(this).resizable("instance"),
  8384. e = t.options,
  8385. i = t.containerOffset,
  8386. n = t.containerPosition,
  8387. s = t.containerElement,
  8388. o = S(t.helper),
  8389. r = o.offset(),
  8390. a = o.outerWidth() - t.sizeDiff.width,
  8391. l = o.outerHeight() - t.sizeDiff.height;
  8392. t._helper && !e.animate && /relative/.test(s.css("position")) && S(this).css({
  8393. left: r.left - n.left - i.left,
  8394. width: a,
  8395. height: l
  8396. }), t._helper && !e.animate && /static/.test(s.css("position")) && S(this).css({
  8397. left: r.left - n.left - i.left,
  8398. width: a,
  8399. height: l
  8400. })
  8401. }
  8402. }), S.ui.plugin.add("resizable", "alsoResize", {
  8403. start: function () {
  8404. var t = S(this).resizable("instance").options;
  8405. S(t.alsoResize).each(function () {
  8406. var t = S(this);
  8407. t.data("ui-resizable-alsoresize", {
  8408. width: parseFloat(t.width()),
  8409. height: parseFloat(t.height()),
  8410. left: parseFloat(t.css("left")),
  8411. top: parseFloat(t.css("top"))
  8412. })
  8413. })
  8414. },
  8415. resize: function (t, i) {
  8416. var e = S(this).resizable("instance"),
  8417. n = e.options,
  8418. s = e.originalSize,
  8419. o = e.originalPosition,
  8420. r = {
  8421. height: e.size.height - s.height || 0,
  8422. width: e.size.width - s.width || 0,
  8423. top: e.position.top - o.top || 0,
  8424. left: e.position.left - o.left || 0
  8425. };
  8426. S(n.alsoResize).each(function () {
  8427. var t = S(this),
  8428. n = S(this).data("ui-resizable-alsoresize"),
  8429. s = {},
  8430. e = t.parents(i.originalElement[0]).length ? ["width", "height"] : ["width", "height", "top", "left"];
  8431. S.each(e, function (t, e) {
  8432. var i = (n[e] || 0) + (r[e] || 0);
  8433. i && 0 <= i && (s[e] = i || null)
  8434. }), t.css(s)
  8435. })
  8436. },
  8437. stop: function () {
  8438. S(this).removeData("ui-resizable-alsoresize")
  8439. }
  8440. }), S.ui.plugin.add("resizable", "ghost", {
  8441. start: function () {
  8442. var t = S(this).resizable("instance"),
  8443. e = t.size;
  8444. t.ghost = t.originalElement.clone(), t.ghost.css({
  8445. opacity: .25,
  8446. display: "block",
  8447. position: "relative",
  8448. height: e.height,
  8449. width: e.width,
  8450. margin: 0,
  8451. left: 0,
  8452. top: 0
  8453. }), t._addClass(t.ghost, "ui-resizable-ghost"), !1 !== S.uiBackCompat && "string" == typeof t.options.ghost && t.ghost.addClass(this.options.ghost), t.ghost.appendTo(t.helper)
  8454. },
  8455. resize: function () {
  8456. var t = S(this).resizable("instance");
  8457. t.ghost && t.ghost.css({
  8458. position: "relative",
  8459. height: t.size.height,
  8460. width: t.size.width
  8461. })
  8462. },
  8463. stop: function () {
  8464. var t = S(this).resizable("instance");
  8465. t.ghost && t.helper && t.helper.get(0).removeChild(t.ghost.get(0))
  8466. }
  8467. }), S.ui.plugin.add("resizable", "grid", {
  8468. resize: function () {
  8469. var t, e = S(this).resizable("instance"),
  8470. i = e.options,
  8471. n = e.size,
  8472. s = e.originalSize,
  8473. o = e.originalPosition,
  8474. r = e.axis,
  8475. a = "number" == typeof i.grid ? [i.grid, i.grid] : i.grid,
  8476. l = a[0] || 1,
  8477. c = a[1] || 1,
  8478. u = Math.round((n.width - s.width) / l) * l,
  8479. h = Math.round((n.height - s.height) / c) * c,
  8480. d = s.width + u,
  8481. p = s.height + h,
  8482. f = i.maxWidth && d > i.maxWidth,
  8483. g = i.maxHeight && p > i.maxHeight,
  8484. m = i.minWidth && i.minWidth > d,
  8485. v = i.minHeight && i.minHeight > p;
  8486. i.grid = a, m && (d += l), v && (p += c), f && (d -= l), g && (p -= c), /^(se|s|e)$/.test(r) ? (e.size.width = d, e.size.height = p) : /^(ne)$/.test(r) ? (e.size.width = d, e.size.height = p, e.position.top = o.top - h) : /^(sw)$/.test(r) ? (e.size.width = d, e.size.height = p, e.position.left = o.left - u) : ((p - c <= 0 || d - l <= 0) && (t = e._getPaddingPlusBorderDimensions(this)), 0 < p - c ? (e.size.height = p, e.position.top = o.top - h) : (p = c - t.height, e.size.height = p, e.position.top = o.top + s.height - p), 0 < d - l ? (e.size.width = d, e.position.left = o.left - u) : (d = l - t.width, e.size.width = d, e.position.left = o.left + s.width - d))
  8487. }
  8488. }), S.ui.resizable, S.widget("ui.dialog", {
  8489. version: "1.12.1",
  8490. options: {
  8491. appendTo: "body",
  8492. autoOpen: !0,
  8493. buttons: [],
  8494. classes: {
  8495. "ui-dialog": "ui-corner-all",
  8496. "ui-dialog-titlebar": "ui-corner-all"
  8497. },
  8498. closeOnEscape: !0,
  8499. closeText: "Close",
  8500. draggable: !0,
  8501. hide: null,
  8502. height: "auto",
  8503. maxHeight: null,
  8504. maxWidth: null,
  8505. minHeight: 150,
  8506. minWidth: 150,
  8507. modal: !1,
  8508. position: {
  8509. my: "center",
  8510. at: "center",
  8511. of: window,
  8512. collision: "fit",
  8513. using: function (t) {
  8514. var e = S(this).css(t).offset().top;
  8515. e < 0 && S(this).css("top", t.top - e)
  8516. }
  8517. },
  8518. resizable: !0,
  8519. show: null,
  8520. title: null,
  8521. width: 300,
  8522. beforeClose: null,
  8523. close: null,
  8524. drag: null,
  8525. dragStart: null,
  8526. dragStop: null,
  8527. focus: null,
  8528. open: null,
  8529. resize: null,
  8530. resizeStart: null,
  8531. resizeStop: null
  8532. },
  8533. sizeRelatedOptions: {
  8534. buttons: !0,
  8535. height: !0,
  8536. maxHeight: !0,
  8537. maxWidth: !0,
  8538. minHeight: !0,
  8539. minWidth: !0,
  8540. width: !0
  8541. },
  8542. resizableRelatedOptions: {
  8543. maxHeight: !0,
  8544. maxWidth: !0,
  8545. minHeight: !0,
  8546. minWidth: !0
  8547. },
  8548. _create: function () {
  8549. this.originalCss = {
  8550. display: this.element[0].style.display,
  8551. width: this.element[0].style.width,
  8552. minHeight: this.element[0].style.minHeight,
  8553. maxHeight: this.element[0].style.maxHeight,
  8554. height: this.element[0].style.height
  8555. }, this.originalPosition = {
  8556. parent: this.element.parent(),
  8557. index: this.element.parent().children().index(this.element)
  8558. }, this.originalTitle = this.element.attr("title"), null == this.options.title && null != this.originalTitle && (this.options.title = this.originalTitle), this.options.disabled && (this.options.disabled = !1), this._createWrapper(), this.element.show().removeAttr("title").appendTo(this.uiDialog), this._addClass("ui-dialog-content", "ui-widget-content"), this._createTitlebar(), this._createButtonPane(), this.options.draggable && S.fn.draggable && this._makeDraggable(), this.options.resizable && S.fn.resizable && this._makeResizable(), this._isOpen = !1, this._trackFocus()
  8559. },
  8560. _init: function () {
  8561. this.options.autoOpen && this.open()
  8562. },
  8563. _appendTo: function () {
  8564. var t = this.options.appendTo;
  8565. return t && (t.jquery || t.nodeType) ? S(t) : this.document.find(t || "body").eq(0)
  8566. },
  8567. _destroy: function () {
  8568. var t, e = this.originalPosition;
  8569. this._untrackInstance(), this._destroyOverlay(), this.element.removeUniqueId().css(this.originalCss).detach(), this.uiDialog.remove(), this.originalTitle && this.element.attr("title", this.originalTitle), (t = e.parent.children().eq(e.index)).length && t[0] !== this.element[0] ? t.before(this.element) : e.parent.append(this.element)
  8570. },
  8571. widget: function () {
  8572. return this.uiDialog
  8573. },
  8574. disable: S.noop,
  8575. enable: S.noop,
  8576. close: function (t) {
  8577. var e = this;
  8578. this._isOpen && !1 !== this._trigger("beforeClose", t) && (this._isOpen = !1, this._focusedElement = null, this._destroyOverlay(), this._untrackInstance(), this.opener.filter(":focusable").trigger("focus").length || S.ui.safeBlur(S.ui.safeActiveElement(this.document[0])), this._hide(this.uiDialog, this.options.hide, function () {
  8579. e._trigger("close", t)
  8580. }))
  8581. },
  8582. isOpen: function () {
  8583. return this._isOpen
  8584. },
  8585. moveToTop: function () {
  8586. this._moveToTop()
  8587. },
  8588. _moveToTop: function (t, e) {
  8589. var i = !1,
  8590. n = this.uiDialog.siblings(".ui-front:visible").map(function () {
  8591. return +S(this).css("z-index")
  8592. }).get(),
  8593. s = Math.max.apply(null, n);
  8594. return s >= +this.uiDialog.css("z-index") && (this.uiDialog.css("z-index", s + 1), i = !0), i && !e && this._trigger("focus", t), i
  8595. },
  8596. open: function () {
  8597. var t = this;
  8598. return this._isOpen ? void(this._moveToTop() && this._focusTabbable()) : (this._isOpen = !0, this.opener = S(S.ui.safeActiveElement(this.document[0])), this._size(), this._position(), this._createOverlay(), this._moveToTop(null, !0), this.overlay && this.overlay.css("z-index", this.uiDialog.css("z-index") - 1), this._show(this.uiDialog, this.options.show, function () {
  8599. t._focusTabbable(), t._trigger("focus")
  8600. }), this._makeFocusTarget(), void this._trigger("open"))
  8601. },
  8602. _focusTabbable: function () {
  8603. var t = this._focusedElement;
  8604. t || (t = this.element.find("[autofocus]")), t.length || (t = this.element.find(":tabbable")), t.length || (t = this.uiDialogButtonPane.find(":tabbable")), t.length || (t = this.uiDialogTitlebarClose.filter(":tabbable")), t.length || (t = this.uiDialog), t.eq(0).trigger("focus")
  8605. },
  8606. _keepFocus: function (t) {
  8607. function e() {
  8608. var t = S.ui.safeActiveElement(this.document[0]);
  8609. this.uiDialog[0] === t || S.contains(this.uiDialog[0], t) || this._focusTabbable()
  8610. }
  8611. t.preventDefault(), e.call(this), this._delay(e)
  8612. },
  8613. _createWrapper: function () {
  8614. this.uiDialog = S("<div>").hide().attr({
  8615. tabIndex: -1,
  8616. role: "dialog"
  8617. }).appendTo(this._appendTo()), this._addClass(this.uiDialog, "ui-dialog", "ui-widget ui-widget-content ui-front"), this._on(this.uiDialog, {
  8618. keydown: function (t) {
  8619. if (this.options.closeOnEscape && !t.isDefaultPrevented() && t.keyCode && t.keyCode === S.ui.keyCode.ESCAPE) return t.preventDefault(), void this.close(t);
  8620. if (t.keyCode === S.ui.keyCode.TAB && !t.isDefaultPrevented()) {
  8621. var e = this.uiDialog.find(":tabbable"),
  8622. i = e.filter(":first"),
  8623. n = e.filter(":last");
  8624. t.target !== n[0] && t.target !== this.uiDialog[0] || t.shiftKey ? t.target !== i[0] && t.target !== this.uiDialog[0] || !t.shiftKey || (this._delay(function () {
  8625. n.trigger("focus")
  8626. }), t.preventDefault()) : (this._delay(function () {
  8627. i.trigger("focus")
  8628. }), t.preventDefault())
  8629. }
  8630. },
  8631. mousedown: function (t) {
  8632. this._moveToTop(t) && this._focusTabbable()
  8633. }
  8634. }), this.element.find("[aria-describedby]").length || this.uiDialog.attr({
  8635. "aria-describedby": this.element.uniqueId().attr("id")
  8636. })
  8637. },
  8638. _createTitlebar: function () {
  8639. var t;
  8640. this.uiDialogTitlebar = S("<div>"), this._addClass(this.uiDialogTitlebar, "ui-dialog-titlebar", "ui-widget-header ui-helper-clearfix"), this._on(this.uiDialogTitlebar, {
  8641. mousedown: function (t) {
  8642. S(t.target).closest(".ui-dialog-titlebar-close") || this.uiDialog.trigger("focus")
  8643. }
  8644. }), this.uiDialogTitlebarClose = S("<button type='button'></button>").button({
  8645. label: S("<a>").text(this.options.closeText).html(),
  8646. icon: "ui-icon-closethick",
  8647. showLabel: !1
  8648. }).appendTo(this.uiDialogTitlebar), this._addClass(this.uiDialogTitlebarClose, "ui-dialog-titlebar-close"), this._on(this.uiDialogTitlebarClose, {
  8649. click: function (t) {
  8650. t.preventDefault(), this.close(t)
  8651. }
  8652. }), t = S("<span>").uniqueId().prependTo(this.uiDialogTitlebar), this._addClass(t, "ui-dialog-title"), this._title(t), this.uiDialogTitlebar.prependTo(this.uiDialog), this.uiDialog.attr({
  8653. "aria-labelledby": t.attr("id")
  8654. })
  8655. },
  8656. _title: function (t) {
  8657. this.options.title ? t.text(this.options.title) : t.html("&#160;")
  8658. },
  8659. _createButtonPane: function () {
  8660. this.uiDialogButtonPane = S("<div>"), this._addClass(this.uiDialogButtonPane, "ui-dialog-buttonpane", "ui-widget-content ui-helper-clearfix"), this.uiButtonSet = S("<div>").appendTo(this.uiDialogButtonPane), this._addClass(this.uiButtonSet, "ui-dialog-buttonset"), this._createButtons()
  8661. },
  8662. _createButtons: function () {
  8663. var s = this,
  8664. t = this.options.buttons;
  8665. return this.uiDialogButtonPane.remove(), this.uiButtonSet.empty(), S.isEmptyObject(t) || S.isArray(t) && !t.length ? void this._removeClass(this.uiDialog, "ui-dialog-buttons") : (S.each(t, function (t, e) {
  8666. var i, n;
  8667. e = S.isFunction(e) ? {
  8668. click: e,
  8669. text: t
  8670. } : e, e = S.extend({
  8671. type: "button"
  8672. }, e), i = e.click, n = {
  8673. icon: e.icon,
  8674. iconPosition: e.iconPosition,
  8675. showLabel: e.showLabel,
  8676. icons: e.icons,
  8677. text: e.text
  8678. }, delete e.click, delete e.icon, delete e.iconPosition, delete e.showLabel, delete e.icons, "boolean" == typeof e.text && delete e.text, S("<button></button>", e).button(n).appendTo(s.uiButtonSet).on("click", function () {
  8679. i.apply(s.element[0], arguments)
  8680. })
  8681. }), this._addClass(this.uiDialog, "ui-dialog-buttons"), void this.uiDialogButtonPane.appendTo(this.uiDialog))
  8682. },
  8683. _makeDraggable: function () {
  8684. function s(t) {
  8685. return {
  8686. position: t.position,
  8687. offset: t.offset
  8688. }
  8689. }
  8690. var o = this,
  8691. r = this.options;
  8692. this.uiDialog.draggable({
  8693. cancel: ".ui-dialog-content, .ui-dialog-titlebar-close",
  8694. handle: ".ui-dialog-titlebar",
  8695. containment: "document",
  8696. start: function (t, e) {
  8697. o._addClass(S(this), "ui-dialog-dragging"), o._blockFrames(), o._trigger("dragStart", t, s(e))
  8698. },
  8699. drag: function (t, e) {
  8700. o._trigger("drag", t, s(e))
  8701. },
  8702. stop: function (t, e) {
  8703. var i = e.offset.left - o.document.scrollLeft(),
  8704. n = e.offset.top - o.document.scrollTop();
  8705. r.position = {
  8706. my: "left top",
  8707. at: "left" + (0 <= i ? "+" : "") + i + " top" + (0 <= n ? "+" : "") + n,
  8708. of: o.window
  8709. }, o._removeClass(S(this), "ui-dialog-dragging"), o._unblockFrames(), o._trigger("dragStop", t, s(e))
  8710. }
  8711. })
  8712. },
  8713. _makeResizable: function () {
  8714. function o(t) {
  8715. return {
  8716. originalPosition: t.originalPosition,
  8717. originalSize: t.originalSize,
  8718. position: t.position,
  8719. size: t.size
  8720. }
  8721. }
  8722. var r = this,
  8723. a = this.options,
  8724. t = a.resizable,
  8725. e = this.uiDialog.css("position"),
  8726. i = "string" == typeof t ? t : "n,e,s,w,se,sw,ne,nw";
  8727. this.uiDialog.resizable({
  8728. cancel: ".ui-dialog-content",
  8729. containment: "document",
  8730. alsoResize: this.element,
  8731. maxWidth: a.maxWidth,
  8732. maxHeight: a.maxHeight,
  8733. minWidth: a.minWidth,
  8734. minHeight: this._minHeight(),
  8735. handles: i,
  8736. start: function (t, e) {
  8737. r._addClass(S(this), "ui-dialog-resizing"), r._blockFrames(), r._trigger("resizeStart", t, o(e))
  8738. },
  8739. resize: function (t, e) {
  8740. r._trigger("resize", t, o(e))
  8741. },
  8742. stop: function (t, e) {
  8743. var i = r.uiDialog.offset(),
  8744. n = i.left - r.document.scrollLeft(),
  8745. s = i.top - r.document.scrollTop();
  8746. a.height = r.uiDialog.height(), a.width = r.uiDialog.width(), a.position = {
  8747. my: "left top",
  8748. at: "left" + (0 <= n ? "+" : "") + n + " top" + (0 <= s ? "+" : "") + s,
  8749. of: r.window
  8750. }, r._removeClass(S(this), "ui-dialog-resizing"), r._unblockFrames(), r._trigger("resizeStop", t, o(e))
  8751. }
  8752. }).css("position", e)
  8753. },
  8754. _trackFocus: function () {
  8755. this._on(this.widget(), {
  8756. focusin: function (t) {
  8757. this._makeFocusTarget(), this._focusedElement = S(t.target)
  8758. }
  8759. })
  8760. },
  8761. _makeFocusTarget: function () {
  8762. this._untrackInstance(), this._trackingInstances().unshift(this)
  8763. },
  8764. _untrackInstance: function () {
  8765. var t = this._trackingInstances(),
  8766. e = S.inArray(this, t); - 1 !== e && t.splice(e, 1)
  8767. },
  8768. _trackingInstances: function () {
  8769. var t = this.document.data("ui-dialog-instances");
  8770. return t || (t = [], this.document.data("ui-dialog-instances", t)), t
  8771. },
  8772. _minHeight: function () {
  8773. var t = this.options;
  8774. return "auto" === t.height ? t.minHeight : Math.min(t.minHeight, t.height)
  8775. },
  8776. _position: function () {
  8777. var t = this.uiDialog.is(":visible");
  8778. t || this.uiDialog.show(), this.uiDialog.position(this.options.position), t || this.uiDialog.hide()
  8779. },
  8780. _setOptions: function (t) {
  8781. var i = this,
  8782. n = !1,
  8783. s = {};
  8784. S.each(t, function (t, e) {
  8785. i._setOption(t, e), t in i.sizeRelatedOptions && (n = !0), t in i.resizableRelatedOptions && (s[t] = e)
  8786. }), n && (this._size(), this._position()), this.uiDialog.is(":data(ui-resizable)") && this.uiDialog.resizable("option", s)
  8787. },
  8788. _setOption: function (t, e) {
  8789. var i, n, s = this.uiDialog;
  8790. "disabled" !== t && (this._super(t, e), "appendTo" === t && this.uiDialog.appendTo(this._appendTo()), "buttons" === t && this._createButtons(), "closeText" === t && this.uiDialogTitlebarClose.button({
  8791. label: S("<a>").text("" + this.options.closeText).html()
  8792. }), "draggable" === t && ((i = s.is(":data(ui-draggable)")) && !e && s.draggable("destroy"), !i && e && this._makeDraggable()), "position" === t && this._position(), "resizable" === t && ((n = s.is(":data(ui-resizable)")) && !e && s.resizable("destroy"), n && "string" == typeof e && s.resizable("option", "handles", e), n || !1 === e || this._makeResizable()), "title" === t && this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))
  8793. },
  8794. _size: function () {
  8795. var t, e, i, n = this.options;
  8796. this.element.show().css({
  8797. width: "auto",
  8798. minHeight: 0,
  8799. maxHeight: "none",
  8800. height: 0
  8801. }), n.minWidth > n.width && (n.width = n.minWidth), t = this.uiDialog.css({
  8802. height: "auto",
  8803. width: n.width
  8804. }).outerHeight(), e = Math.max(0, n.minHeight - t), i = "number" == typeof n.maxHeight ? Math.max(0, n.maxHeight - t) : "none", "auto" === n.height ? this.element.css({
  8805. minHeight: e,
  8806. maxHeight: i,
  8807. height: "auto"
  8808. }) : this.element.height(Math.max(0, n.height - t)), this.uiDialog.is(":data(ui-resizable)") && this.uiDialog.resizable("option", "minHeight", this._minHeight())
  8809. },
  8810. _blockFrames: function () {
  8811. this.iframeBlocks = this.document.find("iframe").map(function () {
  8812. var t = S(this);
  8813. return S("<div>").css({
  8814. position: "absolute",
  8815. width: t.outerWidth(),
  8816. height: t.outerHeight()
  8817. }).appendTo(t.parent()).offset(t.offset())[0]
  8818. })
  8819. },
  8820. _unblockFrames: function () {
  8821. this.iframeBlocks && (this.iframeBlocks.remove(), delete this.iframeBlocks)
  8822. },
  8823. _allowInteraction: function (t) {
  8824. return !!S(t.target).closest(".ui-dialog").length || !!S(t.target).closest(".ui-datepicker").length
  8825. },
  8826. _createOverlay: function () {
  8827. if (this.options.modal) {
  8828. var e = !0;
  8829. this._delay(function () {
  8830. e = !1
  8831. }), this.document.data("ui-dialog-overlays") || this._on(this.document, {
  8832. focusin: function (t) {
  8833. e || this._allowInteraction(t) || (t.preventDefault(), this._trackingInstances()[0]._focusTabbable())
  8834. }
  8835. }), this.overlay = S("<div>").appendTo(this._appendTo()), this._addClass(this.overlay, null, "ui-widget-overlay ui-front"), this._on(this.overlay, {
  8836. mousedown: "_keepFocus"
  8837. }), this.document.data("ui-dialog-overlays", (this.document.data("ui-dialog-overlays") || 0) + 1)
  8838. }
  8839. },
  8840. _destroyOverlay: function () {
  8841. if (this.options.modal && this.overlay) {
  8842. var t = this.document.data("ui-dialog-overlays") - 1;
  8843. t ? this.document.data("ui-dialog-overlays", t) : (this._off(this.document, "focusin"), this.document.removeData("ui-dialog-overlays")), this.overlay.remove(), this.overlay = null
  8844. }
  8845. }
  8846. }), !1 !== S.uiBackCompat && S.widget("ui.dialog", S.ui.dialog, {
  8847. options: {
  8848. dialogClass: ""
  8849. },
  8850. _createWrapper: function () {
  8851. this._super(), this.uiDialog.addClass(this.options.dialogClass)
  8852. },
  8853. _setOption: function (t, e) {
  8854. "dialogClass" === t && this.uiDialog.removeClass(this.options.dialogClass).addClass(e), this._superApply(arguments)
  8855. }
  8856. }), S.ui.dialog, S.widget("ui.droppable", {
  8857. version: "1.12.1",
  8858. widgetEventPrefix: "drop",
  8859. options: {
  8860. accept: "*",
  8861. addClasses: !0,
  8862. greedy: !1,
  8863. scope: "default",
  8864. tolerance: "intersect",
  8865. activate: null,
  8866. deactivate: null,
  8867. drop: null,
  8868. out: null,
  8869. over: null
  8870. },
  8871. _create: function () {
  8872. var t, e = this.options,
  8873. i = e.accept;
  8874. this.isover = !1, this.isout = !0, this.accept = S.isFunction(i) ? i : function (t) {
  8875. return t.is(i)
  8876. }, this.proportions = function () {
  8877. return arguments.length ? void(t = arguments[0]) : t || (t = {
  8878. width: this.element[0].offsetWidth,
  8879. height: this.element[0].offsetHeight
  8880. })
  8881. }, this._addToManager(e.scope), e.addClasses && this._addClass("ui-droppable")
  8882. },
  8883. _addToManager: function (t) {
  8884. S.ui.ddmanager.droppables[t] = S.ui.ddmanager.droppables[t] || [], S.ui.ddmanager.droppables[t].push(this)
  8885. },
  8886. _splice: function (t) {
  8887. for (var e = 0; t.length > e; e++) t[e] === this && t.splice(e, 1)
  8888. },
  8889. _destroy: function () {
  8890. var t = S.ui.ddmanager.droppables[this.options.scope];
  8891. this._splice(t)
  8892. },
  8893. _setOption: function (t, e) {
  8894. if ("accept" === t) this.accept = S.isFunction(e) ? e : function (t) {
  8895. return t.is(e)
  8896. };
  8897. else if ("scope" === t) {
  8898. var i = S.ui.ddmanager.droppables[this.options.scope];
  8899. this._splice(i), this._addToManager(e)
  8900. }
  8901. this._super(t, e)
  8902. },
  8903. _activate: function (t) {
  8904. var e = S.ui.ddmanager.current;
  8905. this._addActiveClass(), e && this._trigger("activate", t, this.ui(e))
  8906. },
  8907. _deactivate: function (t) {
  8908. var e = S.ui.ddmanager.current;
  8909. this._removeActiveClass(), e && this._trigger("deactivate", t, this.ui(e))
  8910. },
  8911. _over: function (t) {
  8912. var e = S.ui.ddmanager.current;
  8913. e && (e.currentItem || e.element)[0] !== this.element[0] && this.accept.call(this.element[0], e.currentItem || e.element) && (this._addHoverClass(), this._trigger("over", t, this.ui(e)))
  8914. },
  8915. _out: function (t) {
  8916. var e = S.ui.ddmanager.current;
  8917. e && (e.currentItem || e.element)[0] !== this.element[0] && this.accept.call(this.element[0], e.currentItem || e.element) && (this._removeHoverClass(), this._trigger("out", t, this.ui(e)))
  8918. },
  8919. _drop: function (e, t) {
  8920. var i = t || S.ui.ddmanager.current,
  8921. n = !1;
  8922. return !(!i || (i.currentItem || i.element)[0] === this.element[0]) && (this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function () {
  8923. var t = S(this).droppable("instance");
  8924. return t.options.greedy && !t.options.disabled && t.options.scope === i.options.scope && t.accept.call(t.element[0], i.currentItem || i.element) && w(i, S.extend(t, {
  8925. offset: t.element.offset()
  8926. }), t.options.tolerance, e) ? !(n = !0) : void 0
  8927. }), !n && (!!this.accept.call(this.element[0], i.currentItem || i.element) && (this._removeActiveClass(), this._removeHoverClass(), this._trigger("drop", e, this.ui(i)), this.element)))
  8928. },
  8929. ui: function (t) {
  8930. return {
  8931. draggable: t.currentItem || t.element,
  8932. helper: t.helper,
  8933. position: t.position,
  8934. offset: t.positionAbs
  8935. }
  8936. },
  8937. _addHoverClass: function () {
  8938. this._addClass("ui-droppable-hover")
  8939. },
  8940. _removeHoverClass: function () {
  8941. this._removeClass("ui-droppable-hover")
  8942. },
  8943. _addActiveClass: function () {
  8944. this._addClass("ui-droppable-active")
  8945. },
  8946. _removeActiveClass: function () {
  8947. this._removeClass("ui-droppable-active")
  8948. }
  8949. });
  8950. var b, w = S.ui.intersect = function () {
  8951. function d(t, e, i) {
  8952. return e <= t && t < e + i
  8953. }
  8954. return function (t, e, i, n) {
  8955. if (!e.offset) return !1;
  8956. var s = (t.positionAbs || t.position.absolute).left + t.margins.left,
  8957. o = (t.positionAbs || t.position.absolute).top + t.margins.top,
  8958. r = s + t.helperProportions.width,
  8959. a = o + t.helperProportions.height,
  8960. l = e.offset.left,
  8961. c = e.offset.top,
  8962. u = l + e.proportions().width,
  8963. h = c + e.proportions().height;
  8964. switch (i) {
  8965. case "fit":
  8966. return l <= s && r <= u && c <= o && a <= h;
  8967. case "intersect":
  8968. return s + t.helperProportions.width / 2 > l && u > r - t.helperProportions.width / 2 && o + t.helperProportions.height / 2 > c && h > a - t.helperProportions.height / 2;
  8969. case "pointer":
  8970. return d(n.pageY, c, e.proportions().height) && d(n.pageX, l, e.proportions().width);
  8971. case "touch":
  8972. return (c <= o && o <= h || c <= a && a <= h || o < c && h < a) && (l <= s && s <= u || l <= r && r <= u || s < l && u < r);
  8973. default:
  8974. return !1
  8975. }
  8976. }
  8977. }();
  8978. !(S.ui.ddmanager = {
  8979. current: null,
  8980. droppables: {
  8981. default: []
  8982. },
  8983. prepareOffsets: function (t, e) {
  8984. var i, n, s = S.ui.ddmanager.droppables[t.options.scope] || [],
  8985. o = e ? e.type : null,
  8986. r = (t.currentItem || t.element).find(":data(ui-droppable)").addBack();
  8987. t: for (i = 0; s.length > i; i++)
  8988. if (!(s[i].options.disabled || t && !s[i].accept.call(s[i].element[0], t.currentItem || t.element))) {
  8989. for (n = 0; r.length > n; n++)
  8990. if (r[n] === s[i].element[0]) {
  8991. s[i].proportions().height = 0;
  8992. continue t
  8993. } s[i].visible = "none" !== s[i].element.css("display"), s[i].visible && ("mousedown" === o && s[i]._activate.call(s[i], e), s[i].offset = s[i].element.offset(), s[i].proportions({
  8994. width: s[i].element[0].offsetWidth,
  8995. height: s[i].element[0].offsetHeight
  8996. }))
  8997. }
  8998. },
  8999. drop: function (t, e) {
  9000. var i = !1;
  9001. return S.each((S.ui.ddmanager.droppables[t.options.scope] || []).slice(), function () {
  9002. this.options && (!this.options.disabled && this.visible && w(t, this, this.options.tolerance, e) && (i = this._drop.call(this, e) || i), !this.options.disabled && this.visible && this.accept.call(this.element[0], t.currentItem || t.element) && (this.isout = !0, this.isover = !1, this._deactivate.call(this, e)))
  9003. }), i
  9004. },
  9005. dragStart: function (t, e) {
  9006. t.element.parentsUntil("body").on("scroll.droppable", function () {
  9007. t.options.refreshPositions || S.ui.ddmanager.prepareOffsets(t, e)
  9008. })
  9009. },
  9010. drag: function (o, r) {
  9011. o.options.refreshPositions && S.ui.ddmanager.prepareOffsets(o, r), S.each(S.ui.ddmanager.droppables[o.options.scope] || [], function () {
  9012. if (!this.options.disabled && !this.greedyChild && this.visible) {
  9013. var t, e, i, n = w(o, this, this.options.tolerance, r),
  9014. s = !n && this.isover ? "isout" : n && !this.isover ? "isover" : null;
  9015. s && (this.options.greedy && (e = this.options.scope, (i = this.element.parents(":data(ui-droppable)").filter(function () {
  9016. return S(this).droppable("instance").options.scope === e
  9017. })).length && ((t = S(i[0]).droppable("instance")).greedyChild = "isover" === s)), t && "isover" === s && (t.isover = !1, t.isout = !0, t._out.call(t, r)), this[s] = !0, this["isout" === s ? "isover" : "isout"] = !1, this["isover" === s ? "_over" : "_out"].call(this, r), t && "isout" === s && (t.isout = !1, t.isover = !0, t._over.call(t, r)))
  9018. }
  9019. })
  9020. },
  9021. dragStop: function (t, e) {
  9022. t.element.parentsUntil("body").off("scroll.droppable"), t.options.refreshPositions || S.ui.ddmanager.prepareOffsets(t, e)
  9023. }
  9024. }) !== S.uiBackCompat && S.widget("ui.droppable", S.ui.droppable, {
  9025. options: {
  9026. hoverClass: !1,
  9027. activeClass: !1
  9028. },
  9029. _addActiveClass: function () {
  9030. this._super(), this.options.activeClass && this.element.addClass(this.options.activeClass)
  9031. },
  9032. _removeActiveClass: function () {
  9033. this._super(), this.options.activeClass && this.element.removeClass(this.options.activeClass)
  9034. },
  9035. _addHoverClass: function () {
  9036. this._super(), this.options.hoverClass && this.element.addClass(this.options.hoverClass)
  9037. },
  9038. _removeHoverClass: function () {
  9039. this._super(), this.options.hoverClass && this.element.removeClass(this.options.hoverClass)
  9040. }
  9041. }), S.ui.droppable, S.widget("ui.progressbar", {
  9042. version: "1.12.1",
  9043. options: {
  9044. classes: {
  9045. "ui-progressbar": "ui-corner-all",
  9046. "ui-progressbar-value": "ui-corner-left",
  9047. "ui-progressbar-complete": "ui-corner-right"
  9048. },
  9049. max: 100,
  9050. value: 0,
  9051. change: null,
  9052. complete: null
  9053. },
  9054. min: 0,
  9055. _create: function () {
  9056. this.oldValue = this.options.value = this._constrainedValue(), this.element.attr({
  9057. role: "progressbar",
  9058. "aria-valuemin": this.min
  9059. }), this._addClass("ui-progressbar", "ui-widget ui-widget-content"), this.valueDiv = S("<div>").appendTo(this.element), this._addClass(this.valueDiv, "ui-progressbar-value", "ui-widget-header"), this._refreshValue()
  9060. },
  9061. _destroy: function () {
  9062. this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"), this.valueDiv.remove()
  9063. },
  9064. value: function (t) {
  9065. return void 0 === t ? this.options.value : (this.options.value = this._constrainedValue(t), void this._refreshValue())
  9066. },
  9067. _constrainedValue: function (t) {
  9068. return void 0 === t && (t = this.options.value), this.indeterminate = !1 === t, "number" != typeof t && (t = 0), !this.indeterminate && Math.min(this.options.max, Math.max(this.min, t))
  9069. },
  9070. _setOptions: function (t) {
  9071. var e = t.value;
  9072. delete t.value, this._super(t), this.options.value = this._constrainedValue(e), this._refreshValue()
  9073. },
  9074. _setOption: function (t, e) {
  9075. "max" === t && (e = Math.max(this.min, e)), this._super(t, e)
  9076. },
  9077. _setOptionDisabled: function (t) {
  9078. this._super(t), this.element.attr("aria-disabled", t), this._toggleClass(null, "ui-state-disabled", !!t)
  9079. },
  9080. _percentage: function () {
  9081. return this.indeterminate ? 100 : 100 * (this.options.value - this.min) / (this.options.max - this.min)
  9082. },
  9083. _refreshValue: function () {
  9084. var t = this.options.value,
  9085. e = this._percentage();
  9086. this.valueDiv.toggle(this.indeterminate || t > this.min).width(e.toFixed(0) + "%"), this._toggleClass(this.valueDiv, "ui-progressbar-complete", null, t === this.options.max)._toggleClass("ui-progressbar-indeterminate", null, this.indeterminate), this.indeterminate ? (this.element.removeAttr("aria-valuenow"), this.overlayDiv || (this.overlayDiv = S("<div>").appendTo(this.valueDiv), this._addClass(this.overlayDiv, "ui-progressbar-overlay"))) : (this.element.attr({
  9087. "aria-valuemax": this.options.max,
  9088. "aria-valuenow": t
  9089. }), this.overlayDiv && (this.overlayDiv.remove(), this.overlayDiv = null)), this.oldValue !== t && (this.oldValue = t, this._trigger("change")), t === this.options.max && this._trigger("complete")
  9090. }
  9091. }), S.widget("ui.selectable", S.ui.mouse, {
  9092. version: "1.12.1",
  9093. options: {
  9094. appendTo: "body",
  9095. autoRefresh: !0,
  9096. distance: 0,
  9097. filter: "*",
  9098. tolerance: "touch",
  9099. selected: null,
  9100. selecting: null,
  9101. start: null,
  9102. stop: null,
  9103. unselected: null,
  9104. unselecting: null
  9105. },
  9106. _create: function () {
  9107. var n = this;
  9108. this._addClass("ui-selectable"), this.dragged = !1, this.refresh = function () {
  9109. n.elementPos = S(n.element[0]).offset(), n.selectees = S(n.options.filter, n.element[0]), n._addClass(n.selectees, "ui-selectee"), n.selectees.each(function () {
  9110. var t = S(this),
  9111. e = t.offset(),
  9112. i = {
  9113. left: e.left - n.elementPos.left,
  9114. top: e.top - n.elementPos.top
  9115. };
  9116. S.data(this, "selectable-item", {
  9117. element: this,
  9118. $element: t,
  9119. left: i.left,
  9120. top: i.top,
  9121. right: i.left + t.outerWidth(),
  9122. bottom: i.top + t.outerHeight(),
  9123. startselected: !1,
  9124. selected: t.hasClass("ui-selected"),
  9125. selecting: t.hasClass("ui-selecting"),
  9126. unselecting: t.hasClass("ui-unselecting")
  9127. })
  9128. })
  9129. }, this.refresh(), this._mouseInit(), this.helper = S("<div>"), this._addClass(this.helper, "ui-selectable-helper")
  9130. },
  9131. _destroy: function () {
  9132. this.selectees.removeData("selectable-item"), this._mouseDestroy()
  9133. },
  9134. _mouseStart: function (i) {
  9135. var n = this,
  9136. t = this.options;
  9137. this.opos = [i.pageX, i.pageY], this.elementPos = S(this.element[0]).offset(), this.options.disabled || (this.selectees = S(t.filter, this.element[0]), this._trigger("start", i), S(t.appendTo).append(this.helper), this.helper.css({
  9138. left: i.pageX,
  9139. top: i.pageY,
  9140. width: 0,
  9141. height: 0
  9142. }), t.autoRefresh && this.refresh(), this.selectees.filter(".ui-selected").each(function () {
  9143. var t = S.data(this, "selectable-item");
  9144. t.startselected = !0, i.metaKey || i.ctrlKey || (n._removeClass(t.$element, "ui-selected"), t.selected = !1, n._addClass(t.$element, "ui-unselecting"), t.unselecting = !0, n._trigger("unselecting", i, {
  9145. unselecting: t.element
  9146. }))
  9147. }), S(i.target).parents().addBack().each(function () {
  9148. var t, e = S.data(this, "selectable-item");
  9149. return e ? (t = !i.metaKey && !i.ctrlKey || !e.$element.hasClass("ui-selected"), n._removeClass(e.$element, t ? "ui-unselecting" : "ui-selected")._addClass(e.$element, t ? "ui-selecting" : "ui-unselecting"), e.unselecting = !t, e.selecting = t, (e.selected = t) ? n._trigger("selecting", i, {
  9150. selecting: e.element
  9151. }) : n._trigger("unselecting", i, {
  9152. unselecting: e.element
  9153. }), !1) : void 0
  9154. }))
  9155. },
  9156. _mouseDrag: function (n) {
  9157. if (this.dragged = !0, !this.options.disabled) {
  9158. var t, s = this,
  9159. o = this.options,
  9160. r = this.opos[0],
  9161. a = this.opos[1],
  9162. l = n.pageX,
  9163. c = n.pageY;
  9164. return l < r && (t = l, l = r, r = t), c < a && (t = c, c = a, a = t), this.helper.css({
  9165. left: r,
  9166. top: a,
  9167. width: l - r,
  9168. height: c - a
  9169. }), this.selectees.each(function () {
  9170. var t = S.data(this, "selectable-item"),
  9171. e = !1,
  9172. i = {};
  9173. t && t.element !== s.element[0] && (i.left = t.left + s.elementPos.left, i.right = t.right + s.elementPos.left, i.top = t.top + s.elementPos.top, i.bottom = t.bottom + s.elementPos.top, "touch" === o.tolerance ? e = !(i.left > l || r > i.right || i.top > c || a > i.bottom) : "fit" === o.tolerance && (e = i.left > r && l > i.right && i.top > a && c > i.bottom), e ? (t.selected && (s._removeClass(t.$element, "ui-selected"), t.selected = !1), t.unselecting && (s._removeClass(t.$element, "ui-unselecting"), t.unselecting = !1), t.selecting || (s._addClass(t.$element, "ui-selecting"), t.selecting = !0, s._trigger("selecting", n, {
  9174. selecting: t.element
  9175. }))) : (t.selecting && ((n.metaKey || n.ctrlKey) && t.startselected ? (s._removeClass(t.$element, "ui-selecting"), t.selecting = !1, s._addClass(t.$element, "ui-selected"), t.selected = !0) : (s._removeClass(t.$element, "ui-selecting"), t.selecting = !1, t.startselected && (s._addClass(t.$element, "ui-unselecting"), t.unselecting = !0), s._trigger("unselecting", n, {
  9176. unselecting: t.element
  9177. }))), t.selected && (n.metaKey || n.ctrlKey || t.startselected || (s._removeClass(t.$element, "ui-selected"), t.selected = !1, s._addClass(t.$element, "ui-unselecting"), t.unselecting = !0, s._trigger("unselecting", n, {
  9178. unselecting: t.element
  9179. })))))
  9180. }), !1
  9181. }
  9182. },
  9183. _mouseStop: function (e) {
  9184. var i = this;
  9185. return this.dragged = !1, S(".ui-unselecting", this.element[0]).each(function () {
  9186. var t = S.data(this, "selectable-item");
  9187. i._removeClass(t.$element, "ui-unselecting"), t.unselecting = !1, t.startselected = !1, i._trigger("unselected", e, {
  9188. unselected: t.element
  9189. })
  9190. }), S(".ui-selecting", this.element[0]).each(function () {
  9191. var t = S.data(this, "selectable-item");
  9192. i._removeClass(t.$element, "ui-selecting")._addClass(t.$element, "ui-selected"), t.selecting = !1, t.selected = !0, t.startselected = !0, i._trigger("selected", e, {
  9193. selected: t.element
  9194. })
  9195. }), this._trigger("stop", e), this.helper.remove(), !1
  9196. }
  9197. }), S.widget("ui.selectmenu", [S.ui.formResetMixin, {
  9198. version: "1.12.1",
  9199. defaultElement: "<select>",
  9200. options: {
  9201. appendTo: null,
  9202. classes: {
  9203. "ui-selectmenu-button-open": "ui-corner-top",
  9204. "ui-selectmenu-button-closed": "ui-corner-all"
  9205. },
  9206. disabled: null,
  9207. icons: {
  9208. button: "ui-icon-triangle-1-s"
  9209. },
  9210. position: {
  9211. my: "left top",
  9212. at: "left bottom",
  9213. collision: "none"
  9214. },
  9215. width: !1,
  9216. change: null,
  9217. close: null,
  9218. focus: null,
  9219. open: null,
  9220. select: null
  9221. },
  9222. _create: function () {
  9223. var t = this.element.uniqueId().attr("id");
  9224. this.ids = {
  9225. element: t,
  9226. button: t + "-button",
  9227. menu: t + "-menu"
  9228. }, this._drawButton(), this._drawMenu(), this._bindFormResetHandler(), this._rendered = !1, this.menuItems = S()
  9229. },
  9230. _drawButton: function () {
  9231. var t, e = this,
  9232. i = this._parseOption(this.element.find("option:selected"), this.element[0].selectedIndex);
  9233. this.labels = this.element.labels().attr("for", this.ids.button), this._on(this.labels, {
  9234. click: function (t) {
  9235. this.button.focus(), t.preventDefault()
  9236. }
  9237. }), this.element.hide(), this.button = S("<span>", {
  9238. tabindex: this.options.disabled ? -1 : 0,
  9239. id: this.ids.button,
  9240. role: "combobox",
  9241. "aria-expanded": "false",
  9242. "aria-autocomplete": "list",
  9243. "aria-owns": this.ids.menu,
  9244. "aria-haspopup": "true",
  9245. title: this.element.attr("title")
  9246. }).insertAfter(this.element), this._addClass(this.button, "ui-selectmenu-button ui-selectmenu-button-closed", "ui-button ui-widget"), t = S("<span>").appendTo(this.button), this._addClass(t, "ui-selectmenu-icon", "ui-icon " + this.options.icons.button), this.buttonItem = this._renderButtonItem(i).appendTo(this.button), !1 !== this.options.width && this._resizeButton(), this._on(this.button, this._buttonEvents), this.button.one("focusin", function () {
  9247. e._rendered || e._refreshMenu()
  9248. })
  9249. },
  9250. _drawMenu: function () {
  9251. var n = this;
  9252. this.menu = S("<ul>", {
  9253. "aria-hidden": "true",
  9254. "aria-labelledby": this.ids.button,
  9255. id: this.ids.menu
  9256. }), this.menuWrap = S("<div>").append(this.menu), this._addClass(this.menuWrap, "ui-selectmenu-menu", "ui-front"), this.menuWrap.appendTo(this._appendTo()), this.menuInstance = this.menu.menu({
  9257. classes: {
  9258. "ui-menu": "ui-corner-bottom"
  9259. },
  9260. role: "listbox",
  9261. select: function (t, e) {
  9262. t.preventDefault(), n._setSelection(), n._select(e.item.data("ui-selectmenu-item"), t)
  9263. },
  9264. focus: function (t, e) {
  9265. var i = e.item.data("ui-selectmenu-item");
  9266. null != n.focusIndex && i.index !== n.focusIndex && (n._trigger("focus", t, {
  9267. item: i
  9268. }), n.isOpen || n._select(i, t)), n.focusIndex = i.index, n.button.attr("aria-activedescendant", n.menuItems.eq(i.index).attr("id"))
  9269. }
  9270. }).menu("instance"), this.menuInstance._off(this.menu, "mouseleave"), this.menuInstance._closeOnDocumentClick = function () {
  9271. return !1
  9272. }, this.menuInstance._isDivider = function () {
  9273. return !1
  9274. }
  9275. },
  9276. refresh: function () {
  9277. this._refreshMenu(), this.buttonItem.replaceWith(this.buttonItem = this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item") || {})), null === this.options.width && this._resizeButton()
  9278. },
  9279. _refreshMenu: function () {
  9280. var t, e = this.element.find("option");
  9281. this.menu.empty(), this._parseOptions(e), this._renderMenu(this.menu, this.items), this.menuInstance.refresh(), this.menuItems = this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"), this._rendered = !0, e.length && (t = this._getSelectedItem(), this.menuInstance.focus(null, t), this._setAria(t.data("ui-selectmenu-item")), this._setOption("disabled", this.element.prop("disabled")))
  9282. },
  9283. open: function (t) {
  9284. this.options.disabled || (this._rendered ? (this._removeClass(this.menu.find(".ui-state-active"), null, "ui-state-active"), this.menuInstance.focus(null, this._getSelectedItem())) : this._refreshMenu(), this.menuItems.length && (this.isOpen = !0, this._toggleAttr(), this._resizeMenu(), this._position(), this._on(this.document, this._documentClick), this._trigger("open", t)))
  9285. },
  9286. _position: function () {
  9287. this.menuWrap.position(S.extend({
  9288. of: this.button
  9289. }, this.options.position))
  9290. },
  9291. close: function (t) {
  9292. this.isOpen && (this.isOpen = !1, this._toggleAttr(), this.range = null, this._off(this.document), this._trigger("close", t))
  9293. },
  9294. widget: function () {
  9295. return this.button
  9296. },
  9297. menuWidget: function () {
  9298. return this.menu
  9299. },
  9300. _renderButtonItem: function (t) {
  9301. var e = S("<span>");
  9302. return this._setText(e, t.label), this._addClass(e, "ui-selectmenu-text"), e
  9303. },
  9304. _renderMenu: function (n, t) {
  9305. var s = this,
  9306. o = "";
  9307. S.each(t, function (t, e) {
  9308. var i;
  9309. e.optgroup !== o && (i = S("<li>", {
  9310. text: e.optgroup
  9311. }), s._addClass(i, "ui-selectmenu-optgroup", "ui-menu-divider" + (e.element.parent("optgroup").prop("disabled") ? " ui-state-disabled" : "")), i.appendTo(n), o = e.optgroup), s._renderItemData(n, e)
  9312. })
  9313. },
  9314. _renderItemData: function (t, e) {
  9315. return this._renderItem(t, e).data("ui-selectmenu-item", e)
  9316. },
  9317. _renderItem: function (t, e) {
  9318. var i = S("<li>"),
  9319. n = S("<div>", {
  9320. title: e.element.attr("title")
  9321. });
  9322. return e.disabled && this._addClass(i, null, "ui-state-disabled"), this._setText(n, e.label), i.append(n).appendTo(t)
  9323. },
  9324. _setText: function (t, e) {
  9325. e ? t.text(e) : t.html("&#160;")
  9326. },
  9327. _move: function (t, e) {
  9328. var i, n, s = ".ui-menu-item";
  9329. this.isOpen ? i = this.menuItems.eq(this.focusIndex).parent("li") : (i = this.menuItems.eq(this.element[0].selectedIndex).parent("li"), s += ":not(.ui-state-disabled)"), (n = "first" === t || "last" === t ? i["first" === t ? "prevAll" : "nextAll"](s).eq(-1) : i[t + "All"](s).eq(0)).length && this.menuInstance.focus(e, n)
  9330. },
  9331. _getSelectedItem: function () {
  9332. return this.menuItems.eq(this.element[0].selectedIndex).parent("li")
  9333. },
  9334. _toggle: function (t) {
  9335. this[this.isOpen ? "close" : "open"](t)
  9336. },
  9337. _setSelection: function () {
  9338. var t;
  9339. this.range && (window.getSelection ? ((t = window.getSelection()).removeAllRanges(), t.addRange(this.range)) : this.range.select(), this.button.focus())
  9340. },
  9341. _documentClick: {
  9342. mousedown: function (t) {
  9343. this.isOpen && (S(t.target).closest(".ui-selectmenu-menu, #" + S.ui.escapeSelector(this.ids.button)).length || this.close(t))
  9344. }
  9345. },
  9346. _buttonEvents: {
  9347. mousedown: function () {
  9348. var t;
  9349. window.getSelection ? (t = window.getSelection()).rangeCount && (this.range = t.getRangeAt(0)) : this.range = document.selection.createRange()
  9350. },
  9351. click: function (t) {
  9352. this._setSelection(), this._toggle(t)
  9353. },
  9354. keydown: function (t) {
  9355. var e = !0;
  9356. switch (t.keyCode) {
  9357. case S.ui.keyCode.TAB:
  9358. case S.ui.keyCode.ESCAPE:
  9359. this.close(t), e = !1;
  9360. break;
  9361. case S.ui.keyCode.ENTER:
  9362. this.isOpen && this._selectFocusedItem(t);
  9363. break;
  9364. case S.ui.keyCode.UP:
  9365. t.altKey ? this._toggle(t) : this._move("prev", t);
  9366. break;
  9367. case S.ui.keyCode.DOWN:
  9368. t.altKey ? this._toggle(t) : this._move("next", t);
  9369. break;
  9370. case S.ui.keyCode.SPACE:
  9371. this.isOpen ? this._selectFocusedItem(t) : this._toggle(t);
  9372. break;
  9373. case S.ui.keyCode.LEFT:
  9374. this._move("prev", t);
  9375. break;
  9376. case S.ui.keyCode.RIGHT:
  9377. this._move("next", t);
  9378. break;
  9379. case S.ui.keyCode.HOME:
  9380. case S.ui.keyCode.PAGE_UP:
  9381. this._move("first", t);
  9382. break;
  9383. case S.ui.keyCode.END:
  9384. case S.ui.keyCode.PAGE_DOWN:
  9385. this._move("last", t);
  9386. break;
  9387. default:
  9388. this.menu.trigger(t), e = !1
  9389. }
  9390. e && t.preventDefault()
  9391. }
  9392. },
  9393. _selectFocusedItem: function (t) {
  9394. var e = this.menuItems.eq(this.focusIndex).parent("li");
  9395. e.hasClass("ui-state-disabled") || this._select(e.data("ui-selectmenu-item"), t)
  9396. },
  9397. _select: function (t, e) {
  9398. var i = this.element[0].selectedIndex;
  9399. this.element[0].selectedIndex = t.index, this.buttonItem.replaceWith(this.buttonItem = this._renderButtonItem(t)), this._setAria(t), this._trigger("select", e, {
  9400. item: t
  9401. }), t.index !== i && this._trigger("change", e, {
  9402. item: t
  9403. }), this.close(e)
  9404. },
  9405. _setAria: function (t) {
  9406. var e = this.menuItems.eq(t.index).attr("id");
  9407. this.button.attr({
  9408. "aria-labelledby": e,
  9409. "aria-activedescendant": e
  9410. }), this.menu.attr("aria-activedescendant", e)
  9411. },
  9412. _setOption: function (t, e) {
  9413. if ("icons" === t) {
  9414. var i = this.button.find("span.ui-icon");
  9415. this._removeClass(i, null, this.options.icons.button)._addClass(i, null, e.button)
  9416. }
  9417. this._super(t, e), "appendTo" === t && this.menuWrap.appendTo(this._appendTo()), "width" === t && this._resizeButton()
  9418. },
  9419. _setOptionDisabled: function (t) {
  9420. this._super(t), this.menuInstance.option("disabled", t), this.button.attr("aria-disabled", t), this._toggleClass(this.button, null, "ui-state-disabled", t), this.element.prop("disabled", t), t ? (this.button.attr("tabindex", -1), this.close()) : this.button.attr("tabindex", 0)
  9421. },
  9422. _appendTo: function () {
  9423. var t = this.options.appendTo;
  9424. return t && (t = t.jquery || t.nodeType ? S(t) : this.document.find(t).eq(0)), t && t[0] || (t = this.element.closest(".ui-front, dialog")), t.length || (t = this.document[0].body), t
  9425. },
  9426. _toggleAttr: function () {
  9427. this.button.attr("aria-expanded", this.isOpen), this._removeClass(this.button, "ui-selectmenu-button-" + (this.isOpen ? "closed" : "open"))._addClass(this.button, "ui-selectmenu-button-" + (this.isOpen ? "open" : "closed"))._toggleClass(this.menuWrap, "ui-selectmenu-open", null, this.isOpen), this.menu.attr("aria-hidden", !this.isOpen)
  9428. },
  9429. _resizeButton: function () {
  9430. var t = this.options.width;
  9431. return !1 === t ? void this.button.css("width", "") : (null === t && (t = this.element.show().outerWidth(), this.element.hide()), void this.button.outerWidth(t))
  9432. },
  9433. _resizeMenu: function () {
  9434. this.menu.outerWidth(Math.max(this.button.outerWidth(), this.menu.width("").outerWidth() + 1))
  9435. },
  9436. _getCreateOptions: function () {
  9437. var t = this._super();
  9438. return t.disabled = this.element.prop("disabled"), t
  9439. },
  9440. _parseOptions: function (t) {
  9441. var i = this,
  9442. n = [];
  9443. t.each(function (t, e) {
  9444. n.push(i._parseOption(S(e), t))
  9445. }), this.items = n
  9446. },
  9447. _parseOption: function (t, e) {
  9448. var i = t.parent("optgroup");
  9449. return {
  9450. element: t,
  9451. index: e,
  9452. value: t.val(),
  9453. label: t.text(),
  9454. optgroup: i.attr("label") || "",
  9455. disabled: i.prop("disabled") || t.prop("disabled")
  9456. }
  9457. },
  9458. _destroy: function () {
  9459. this._unbindFormResetHandler(), this.menuWrap.remove(), this.button.remove(), this.element.show(), this.element.removeUniqueId(), this.labels.attr("for", this.ids.element)
  9460. }
  9461. }]), S.widget("ui.slider", S.ui.mouse, {
  9462. version: "1.12.1",
  9463. widgetEventPrefix: "slide",
  9464. options: {
  9465. animate: !1,
  9466. classes: {
  9467. "ui-slider": "ui-corner-all",
  9468. "ui-slider-handle": "ui-corner-all",
  9469. "ui-slider-range": "ui-corner-all ui-widget-header"
  9470. },
  9471. distance: 0,
  9472. max: 100,
  9473. min: 0,
  9474. orientation: "horizontal",
  9475. range: !1,
  9476. step: 1,
  9477. value: 0,
  9478. values: null,
  9479. change: null,
  9480. slide: null,
  9481. start: null,
  9482. stop: null
  9483. },
  9484. numPages: 5,
  9485. _create: function () {
  9486. this._keySliding = !1, this._mouseSliding = !1, this._animateOff = !0, this._handleIndex = null, this._detectOrientation(), this._mouseInit(), this._calculateNewMax(), this._addClass("ui-slider ui-slider-" + this.orientation, "ui-widget ui-widget-content"), this._refresh(), this._animateOff = !1
  9487. },
  9488. _refresh: function () {
  9489. this._createRange(), this._createHandles(), this._setupEvents(), this._refreshValue()
  9490. },
  9491. _createHandles: function () {
  9492. var t, e, i = this.options,
  9493. n = this.element.find(".ui-slider-handle"),
  9494. s = [];
  9495. for (e = i.values && i.values.length || 1, n.length > e && (n.slice(e).remove(), n = n.slice(0, e)), t = n.length; t < e; t++) s.push("<span tabindex='0'></span>");
  9496. this.handles = n.add(S(s.join("")).appendTo(this.element)), this._addClass(this.handles, "ui-slider-handle", "ui-state-default"), this.handle = this.handles.eq(0), this.handles.each(function (t) {
  9497. S(this).data("ui-slider-handle-index", t).attr("tabIndex", 0)
  9498. })
  9499. },
  9500. _createRange: function () {
  9501. var t = this.options;
  9502. t.range ? (!0 === t.range && (t.values ? t.values.length && 2 !== t.values.length ? t.values = [t.values[0], t.values[0]] : S.isArray(t.values) && (t.values = t.values.slice(0)) : t.values = [this._valueMin(), this._valueMin()]), this.range && this.range.length ? (this._removeClass(this.range, "ui-slider-range-min ui-slider-range-max"), this.range.css({
  9503. left: "",
  9504. bottom: ""
  9505. })) : (this.range = S("<div>").appendTo(this.element), this._addClass(this.range, "ui-slider-range")), ("min" === t.range || "max" === t.range) && this._addClass(this.range, "ui-slider-range-" + t.range)) : (this.range && this.range.remove(), this.range = null)
  9506. },
  9507. _setupEvents: function () {
  9508. this._off(this.handles), this._on(this.handles, this._handleEvents), this._hoverable(this.handles), this._focusable(this.handles)
  9509. },
  9510. _destroy: function () {
  9511. this.handles.remove(), this.range && this.range.remove(), this._mouseDestroy()
  9512. },
  9513. _mouseCapture: function (t) {
  9514. var e, i, n, s, o, r, a, l = this,
  9515. c = this.options;
  9516. return !c.disabled && (this.elementSize = {
  9517. width: this.element.outerWidth(),
  9518. height: this.element.outerHeight()
  9519. }, this.elementOffset = this.element.offset(), e = {
  9520. x: t.pageX,
  9521. y: t.pageY
  9522. }, i = this._normValueFromMouse(e), n = this._valueMax() - this._valueMin() + 1, this.handles.each(function (t) {
  9523. var e = Math.abs(i - l.values(t));
  9524. (e < n || n === e && (t === l._lastChangedValue || l.values(t) === c.min)) && (n = e, s = S(this), o = t)
  9525. }), !1 !== this._start(t, o) && (this._mouseSliding = !0, this._handleIndex = o, this._addClass(s, null, "ui-state-active"), s.trigger("focus"), r = s.offset(), a = !S(t.target).parents().addBack().is(".ui-slider-handle"), this._clickOffset = a ? {
  9526. left: 0,
  9527. top: 0
  9528. } : {
  9529. left: t.pageX - r.left - s.width() / 2,
  9530. top: t.pageY - r.top - s.height() / 2 - (parseInt(s.css("borderTopWidth"), 10) || 0) - (parseInt(s.css("borderBottomWidth"), 10) || 0) + (parseInt(s.css("marginTop"), 10) || 0)
  9531. }, this.handles.hasClass("ui-state-hover") || this._slide(t, o, i), this._animateOff = !0))
  9532. },
  9533. _mouseStart: function () {
  9534. return !0
  9535. },
  9536. _mouseDrag: function (t) {
  9537. var e = {
  9538. x: t.pageX,
  9539. y: t.pageY
  9540. },
  9541. i = this._normValueFromMouse(e);
  9542. return this._slide(t, this._handleIndex, i), !1
  9543. },
  9544. _mouseStop: function (t) {
  9545. return this._removeClass(this.handles, null, "ui-state-active"), this._mouseSliding = !1, this._stop(t, this._handleIndex), this._change(t, this._handleIndex), this._handleIndex = null, this._clickOffset = null, this._animateOff = !1
  9546. },
  9547. _detectOrientation: function () {
  9548. this.orientation = "vertical" === this.options.orientation ? "vertical" : "horizontal"
  9549. },
  9550. _normValueFromMouse: function (t) {
  9551. var e, i, n, s;
  9552. return 1 < (i = ("horizontal" === this.orientation ? (e = this.elementSize.width, t.x - this.elementOffset.left - (this._clickOffset ? this._clickOffset.left : 0)) : (e = this.elementSize.height, t.y - this.elementOffset.top - (this._clickOffset ? this._clickOffset.top : 0))) / e) && (i = 1), i < 0 && (i = 0), "vertical" === this.orientation && (i = 1 - i), n = this._valueMax() - this._valueMin(), s = this._valueMin() + i * n, this._trimAlignValue(s)
  9553. },
  9554. _uiHash: function (t, e, i) {
  9555. var n = {
  9556. handle: this.handles[t],
  9557. handleIndex: t,
  9558. value: void 0 !== e ? e : this.value()
  9559. };
  9560. return this._hasMultipleValues() && (n.value = void 0 !== e ? e : this.values(t), n.values = i || this.values()), n
  9561. },
  9562. _hasMultipleValues: function () {
  9563. return this.options.values && this.options.values.length
  9564. },
  9565. _start: function (t, e) {
  9566. return this._trigger("start", t, this._uiHash(e))
  9567. },
  9568. _slide: function (t, e, i) {
  9569. var n, s = this.value(),
  9570. o = this.values();
  9571. this._hasMultipleValues() && (n = this.values(e ? 0 : 1), s = this.values(e), 2 === this.options.values.length && !0 === this.options.range && (i = 0 === e ? Math.min(n, i) : Math.max(n, i)), o[e] = i), i !== s && (!1 !== this._trigger("slide", t, this._uiHash(e, i, o)) && (this._hasMultipleValues() ? this.values(e, i) : this.value(i)))
  9572. },
  9573. _stop: function (t, e) {
  9574. this._trigger("stop", t, this._uiHash(e))
  9575. },
  9576. _change: function (t, e) {
  9577. this._keySliding || this._mouseSliding || (this._lastChangedValue = e, this._trigger("change", t, this._uiHash(e)))
  9578. },
  9579. value: function (t) {
  9580. return arguments.length ? (this.options.value = this._trimAlignValue(t), this._refreshValue(), void this._change(null, 0)) : this._value()
  9581. },
  9582. values: function (t, e) {
  9583. var i, n, s;
  9584. if (1 < arguments.length) return this.options.values[t] = this._trimAlignValue(e), this._refreshValue(), void this._change(null, t);
  9585. if (!arguments.length) return this._values();
  9586. if (!S.isArray(t)) return this._hasMultipleValues() ? this._values(t) : this.value();
  9587. for (i = this.options.values, n = t, s = 0; i.length > s; s += 1) i[s] = this._trimAlignValue(n[s]), this._change(null, s);
  9588. this._refreshValue()
  9589. },
  9590. _setOption: function (t, e) {
  9591. var i, n = 0;
  9592. switch ("range" === t && !0 === this.options.range && ("min" === e ? (this.options.value = this._values(0), this.options.values = null) : "max" === e && (this.options.value = this._values(this.options.values.length - 1), this.options.values = null)), S.isArray(this.options.values) && (n = this.options.values.length), this._super(t, e), t) {
  9593. case "orientation":
  9594. this._detectOrientation(), this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-" + this.orientation), this._refreshValue(), this.options.range && this._refreshRange(e), this.handles.css("horizontal" === e ? "bottom" : "left", "");
  9595. break;
  9596. case "value":
  9597. this._animateOff = !0, this._refreshValue(), this._change(null, 0), this._animateOff = !1;
  9598. break;
  9599. case "values":
  9600. for (this._animateOff = !0, this._refreshValue(), i = n - 1; 0 <= i; i--) this._change(null, i);
  9601. this._animateOff = !1;
  9602. break;
  9603. case "step":
  9604. case "min":
  9605. case "max":
  9606. this._animateOff = !0, this._calculateNewMax(), this._refreshValue(), this._animateOff = !1;
  9607. break;
  9608. case "range":
  9609. this._animateOff = !0, this._refresh(), this._animateOff = !1
  9610. }
  9611. },
  9612. _setOptionDisabled: function (t) {
  9613. this._super(t), this._toggleClass(null, "ui-state-disabled", !!t)
  9614. },
  9615. _value: function () {
  9616. var t = this.options.value;
  9617. return this._trimAlignValue(t)
  9618. },
  9619. _values: function (t) {
  9620. var e, i, n;
  9621. if (arguments.length) return e = this.options.values[t], this._trimAlignValue(e);
  9622. if (this._hasMultipleValues()) {
  9623. for (i = this.options.values.slice(), n = 0; i.length > n; n += 1) i[n] = this._trimAlignValue(i[n]);
  9624. return i
  9625. }
  9626. return []
  9627. },
  9628. _trimAlignValue: function (t) {
  9629. if (this._valueMin() >= t) return this._valueMin();
  9630. if (t >= this._valueMax()) return this._valueMax();
  9631. var e = 0 < this.options.step ? this.options.step : 1,
  9632. i = (t - this._valueMin()) % e,
  9633. n = t - i;
  9634. return 2 * Math.abs(i) >= e && (n += 0 < i ? e : -e), parseFloat(n.toFixed(5))
  9635. },
  9636. _calculateNewMax: function () {
  9637. var t = this.options.max,
  9638. e = this._valueMin(),
  9639. i = this.options.step;
  9640. (t = Math.round((t - e) / i) * i + e) > this.options.max && (t -= i), this.max = parseFloat(t.toFixed(this._precision()))
  9641. },
  9642. _precision: function () {
  9643. var t = this._precisionOf(this.options.step);
  9644. return null !== this.options.min && (t = Math.max(t, this._precisionOf(this.options.min))), t
  9645. },
  9646. _precisionOf: function (t) {
  9647. var e = "" + t,
  9648. i = e.indexOf(".");
  9649. return -1 === i ? 0 : e.length - i - 1
  9650. },
  9651. _valueMin: function () {
  9652. return this.options.min
  9653. },
  9654. _valueMax: function () {
  9655. return this.max
  9656. },
  9657. _refreshRange: function (t) {
  9658. "vertical" === t && this.range.css({
  9659. width: "",
  9660. left: ""
  9661. }), "horizontal" === t && this.range.css({
  9662. height: "",
  9663. bottom: ""
  9664. })
  9665. },
  9666. _refreshValue: function () {
  9667. var e, i, t, n, s, o = this.options.range,
  9668. r = this.options,
  9669. a = this,
  9670. l = !this._animateOff && r.animate,
  9671. c = {};
  9672. this._hasMultipleValues() ? this.handles.each(function (t) {
  9673. i = (a.values(t) - a._valueMin()) / (a._valueMax() - a._valueMin()) * 100, c["horizontal" === a.orientation ? "left" : "bottom"] = i + "%", S(this).stop(1, 1)[l ? "animate" : "css"](c, r.animate), !0 === a.options.range && ("horizontal" === a.orientation ? (0 === t && a.range.stop(1, 1)[l ? "animate" : "css"]({
  9674. left: i + "%"
  9675. }, r.animate), 1 === t && a.range[l ? "animate" : "css"]({
  9676. width: i - e + "%"
  9677. }, {
  9678. queue: !1,
  9679. duration: r.animate
  9680. })) : (0 === t && a.range.stop(1, 1)[l ? "animate" : "css"]({
  9681. bottom: i + "%"
  9682. }, r.animate), 1 === t && a.range[l ? "animate" : "css"]({
  9683. height: i - e + "%"
  9684. }, {
  9685. queue: !1,
  9686. duration: r.animate
  9687. }))), e = i
  9688. }) : (t = this.value(), n = this._valueMin(), s = this._valueMax(), i = s !== n ? (t - n) / (s - n) * 100 : 0, c["horizontal" === this.orientation ? "left" : "bottom"] = i + "%", this.handle.stop(1, 1)[l ? "animate" : "css"](c, r.animate), "min" === o && "horizontal" === this.orientation && this.range.stop(1, 1)[l ? "animate" : "css"]({
  9689. width: i + "%"
  9690. }, r.animate), "max" === o && "horizontal" === this.orientation && this.range.stop(1, 1)[l ? "animate" : "css"]({
  9691. width: 100 - i + "%"
  9692. }, r.animate), "min" === o && "vertical" === this.orientation && this.range.stop(1, 1)[l ? "animate" : "css"]({
  9693. height: i + "%"
  9694. }, r.animate), "max" === o && "vertical" === this.orientation && this.range.stop(1, 1)[l ? "animate" : "css"]({
  9695. height: 100 - i + "%"
  9696. }, r.animate))
  9697. },
  9698. _handleEvents: {
  9699. keydown: function (t) {
  9700. var e, i, n, s = S(t.target).data("ui-slider-handle-index");
  9701. switch (t.keyCode) {
  9702. case S.ui.keyCode.HOME:
  9703. case S.ui.keyCode.END:
  9704. case S.ui.keyCode.PAGE_UP:
  9705. case S.ui.keyCode.PAGE_DOWN:
  9706. case S.ui.keyCode.UP:
  9707. case S.ui.keyCode.RIGHT:
  9708. case S.ui.keyCode.DOWN:
  9709. case S.ui.keyCode.LEFT:
  9710. if (t.preventDefault(), !this._keySliding && (this._keySliding = !0, this._addClass(S(t.target), null, "ui-state-active"), !1 === this._start(t, s))) return
  9711. }
  9712. switch (n = this.options.step, e = i = this._hasMultipleValues() ? this.values(s) : this.value(), t.keyCode) {
  9713. case S.ui.keyCode.HOME:
  9714. i = this._valueMin();
  9715. break;
  9716. case S.ui.keyCode.END:
  9717. i = this._valueMax();
  9718. break;
  9719. case S.ui.keyCode.PAGE_UP:
  9720. i = this._trimAlignValue(e + (this._valueMax() - this._valueMin()) / this.numPages);
  9721. break;
  9722. case S.ui.keyCode.PAGE_DOWN:
  9723. i = this._trimAlignValue(e - (this._valueMax() - this._valueMin()) / this.numPages);
  9724. break;
  9725. case S.ui.keyCode.UP:
  9726. case S.ui.keyCode.RIGHT:
  9727. if (e === this._valueMax()) return;
  9728. i = this._trimAlignValue(e + n);
  9729. break;
  9730. case S.ui.keyCode.DOWN:
  9731. case S.ui.keyCode.LEFT:
  9732. if (e === this._valueMin()) return;
  9733. i = this._trimAlignValue(e - n)
  9734. }
  9735. this._slide(t, s, i)
  9736. },
  9737. keyup: function (t) {
  9738. var e = S(t.target).data("ui-slider-handle-index");
  9739. this._keySliding && (this._keySliding = !1, this._stop(t, e), this._change(t, e), this._removeClass(S(t.target), null, "ui-state-active"))
  9740. }
  9741. }
  9742. }), S.widget("ui.sortable", S.ui.mouse, {
  9743. version: "1.12.1",
  9744. widgetEventPrefix: "sort",
  9745. ready: !1,
  9746. options: {
  9747. appendTo: "parent",
  9748. axis: !1,
  9749. connectWith: !1,
  9750. containment: !1,
  9751. cursor: "auto",
  9752. cursorAt: !1,
  9753. dropOnEmpty: !0,
  9754. forcePlaceholderSize: !1,
  9755. forceHelperSize: !1,
  9756. grid: !1,
  9757. handle: !1,
  9758. helper: "original",
  9759. items: "> *",
  9760. opacity: !1,
  9761. placeholder: !1,
  9762. revert: !1,
  9763. scroll: !0,
  9764. scrollSensitivity: 20,
  9765. scrollSpeed: 20,
  9766. scope: "default",
  9767. tolerance: "intersect",
  9768. zIndex: 1e3,
  9769. activate: null,
  9770. beforeStop: null,
  9771. change: null,
  9772. deactivate: null,
  9773. out: null,
  9774. over: null,
  9775. receive: null,
  9776. remove: null,
  9777. sort: null,
  9778. start: null,
  9779. stop: null,
  9780. update: null
  9781. },
  9782. _isOverAxis: function (t, e, i) {
  9783. return e <= t && t < e + i
  9784. },
  9785. _isFloating: function (t) {
  9786. return /left|right/.test(t.css("float")) || /inline|table-cell/.test(t.css("display"))
  9787. },
  9788. _create: function () {
  9789. this.containerCache = {}, this._addClass("ui-sortable"), this.refresh(), this.offset = this.element.offset(), this._mouseInit(), this._setHandleClassName(), this.ready = !0
  9790. },
  9791. _setOption: function (t, e) {
  9792. this._super(t, e), "handle" === t && this._setHandleClassName()
  9793. },
  9794. _setHandleClassName: function () {
  9795. var t = this;
  9796. this._removeClass(this.element.find(".ui-sortable-handle"), "ui-sortable-handle"), S.each(this.items, function () {
  9797. t._addClass(this.instance.options.handle ? this.item.find(this.instance.options.handle) : this.item, "ui-sortable-handle")
  9798. })
  9799. },
  9800. _destroy: function () {
  9801. this._mouseDestroy();
  9802. for (var t = this.items.length - 1; 0 <= t; t--) this.items[t].item.removeData(this.widgetName + "-item");
  9803. return this
  9804. },
  9805. _mouseCapture: function (t, e) {
  9806. var i = null,
  9807. n = !1,
  9808. s = this;
  9809. return !this.reverting && (!this.options.disabled && "static" !== this.options.type && (this._refreshItems(t), S(t.target).parents().each(function () {
  9810. return S.data(this, s.widgetName + "-item") === s ? (i = S(this), !1) : void 0
  9811. }), S.data(t.target, s.widgetName + "-item") === s && (i = S(t.target)), !!i && (!(this.options.handle && !e && (S(this.options.handle, i).find("*").addBack().each(function () {
  9812. this === t.target && (n = !0)
  9813. }), !n)) && (this.currentItem = i, this._removeCurrentsFromItems(), !0))))
  9814. },
  9815. _mouseStart: function (t, e, i) {
  9816. var n, s, o = this.options;
  9817. if ((this.currentContainer = this).refreshPositions(), this.helper = this._createHelper(t), this._cacheHelperProportions(), this._cacheMargins(), this.scrollParent = this.helper.scrollParent(), this.offset = this.currentItem.offset(), this.offset = {
  9818. top: this.offset.top - this.margins.top,
  9819. left: this.offset.left - this.margins.left
  9820. }, S.extend(this.offset, {
  9821. click: {
  9822. left: t.pageX - this.offset.left,
  9823. top: t.pageY - this.offset.top
  9824. },
  9825. parent: this._getParentOffset(),
  9826. relative: this._getRelativeOffset()
  9827. }), this.helper.css("position", "absolute"), this.cssPosition = this.helper.css("position"), this.originalPosition = this._generatePosition(t), this.originalPageX = t.pageX, this.originalPageY = t.pageY, o.cursorAt && this._adjustOffsetFromHelper(o.cursorAt), this.domPosition = {
  9828. prev: this.currentItem.prev()[0],
  9829. parent: this.currentItem.parent()[0]
  9830. }, this.helper[0] !== this.currentItem[0] && this.currentItem.hide(), this._createPlaceholder(), o.containment && this._setContainment(), o.cursor && "auto" !== o.cursor && (s = this.document.find("body"), this.storedCursor = s.css("cursor"), s.css("cursor", o.cursor), this.storedStylesheet = S("<style>*{ cursor: " + o.cursor + " !important; }</style>").appendTo(s)), o.opacity && (this.helper.css("opacity") && (this._storedOpacity = this.helper.css("opacity")), this.helper.css("opacity", o.opacity)), o.zIndex && (this.helper.css("zIndex") && (this._storedZIndex = this.helper.css("zIndex")), this.helper.css("zIndex", o.zIndex)), this.scrollParent[0] !== this.document[0] && "HTML" !== this.scrollParent[0].tagName && (this.overflowOffset = this.scrollParent.offset()), this._trigger("start", t, this._uiHash()), this._preserveHelperProportions || this._cacheHelperProportions(), !i)
  9831. for (n = this.containers.length - 1; 0 <= n; n--) this.containers[n]._trigger("activate", t, this._uiHash(this));
  9832. return S.ui.ddmanager && (S.ui.ddmanager.current = this), S.ui.ddmanager && !o.dropBehaviour && S.ui.ddmanager.prepareOffsets(this, t), this.dragging = !0, this._addClass(this.helper, "ui-sortable-helper"), this._mouseDrag(t), !0
  9833. },
  9834. _mouseDrag: function (t) {
  9835. var e, i, n, s, o = this.options,
  9836. r = !1;
  9837. for (this.position = this._generatePosition(t), this.positionAbs = this._convertPositionTo("absolute"), this.lastPositionAbs || (this.lastPositionAbs = this.positionAbs), this.options.scroll && (this.scrollParent[0] !== this.document[0] && "HTML" !== this.scrollParent[0].tagName ? (this.overflowOffset.top + this.scrollParent[0].offsetHeight - t.pageY < o.scrollSensitivity ? this.scrollParent[0].scrollTop = r = this.scrollParent[0].scrollTop + o.scrollSpeed : t.pageY - this.overflowOffset.top < o.scrollSensitivity && (this.scrollParent[0].scrollTop = r = this.scrollParent[0].scrollTop - o.scrollSpeed), this.overflowOffset.left + this.scrollParent[0].offsetWidth - t.pageX < o.scrollSensitivity ? this.scrollParent[0].scrollLeft = r = this.scrollParent[0].scrollLeft + o.scrollSpeed : t.pageX - this.overflowOffset.left < o.scrollSensitivity && (this.scrollParent[0].scrollLeft = r = this.scrollParent[0].scrollLeft - o.scrollSpeed)) : (t.pageY - this.document.scrollTop() < o.scrollSensitivity ? r = this.document.scrollTop(this.document.scrollTop() - o.scrollSpeed) : this.window.height() - (t.pageY - this.document.scrollTop()) < o.scrollSensitivity && (r = this.document.scrollTop(this.document.scrollTop() + o.scrollSpeed)), t.pageX - this.document.scrollLeft() < o.scrollSensitivity ? r = this.document.scrollLeft(this.document.scrollLeft() - o.scrollSpeed) : this.window.width() - (t.pageX - this.document.scrollLeft()) < o.scrollSensitivity && (r = this.document.scrollLeft(this.document.scrollLeft() + o.scrollSpeed))), !1 !== r && S.ui.ddmanager && !o.dropBehaviour && S.ui.ddmanager.prepareOffsets(this, t)), this.positionAbs = this._convertPositionTo("absolute"), this.options.axis && "y" === this.options.axis || (this.helper[0].style.left = this.position.left + "px"), this.options.axis && "x" === this.options.axis || (this.helper[0].style.top = this.position.top + "px"), e = this.items.length - 1; 0 <= e; e--)
  9838. if (n = (i = this.items[e]).item[0], (s = this._intersectsWithPointer(i)) && i.instance === this.currentContainer && n !== this.currentItem[0] && this.placeholder[1 === s ? "next" : "prev"]()[0] !== n && !S.contains(this.placeholder[0], n) && ("semi-dynamic" !== this.options.type || !S.contains(this.element[0], n))) {
  9839. if (this.direction = 1 === s ? "down" : "up", "pointer" !== this.options.tolerance && !this._intersectsWithSides(i)) break;
  9840. this._rearrange(t, i), this._trigger("change", t, this._uiHash());
  9841. break
  9842. } return this._contactContainers(t), S.ui.ddmanager && S.ui.ddmanager.drag(this, t), this._trigger("sort", t, this._uiHash()), this.lastPositionAbs = this.positionAbs, !1
  9843. },
  9844. _mouseStop: function (t, e) {
  9845. if (t) {
  9846. if (S.ui.ddmanager && !this.options.dropBehaviour && S.ui.ddmanager.drop(this, t), this.options.revert) {
  9847. var i = this,
  9848. n = this.placeholder.offset(),
  9849. s = this.options.axis,
  9850. o = {};
  9851. s && "x" !== s || (o.left = n.left - this.offset.parent.left - this.margins.left + (this.offsetParent[0] === this.document[0].body ? 0 : this.offsetParent[0].scrollLeft)), s && "y" !== s || (o.top = n.top - this.offset.parent.top - this.margins.top + (this.offsetParent[0] === this.document[0].body ? 0 : this.offsetParent[0].scrollTop)), this.reverting = !0, S(this.helper).animate(o, parseInt(this.options.revert, 10) || 500, function () {
  9852. i._clear(t)
  9853. })
  9854. } else this._clear(t, e);
  9855. return !1
  9856. }
  9857. },
  9858. cancel: function () {
  9859. if (this.dragging) {
  9860. this._mouseUp(new S.Event("mouseup", {
  9861. target: null
  9862. })), "original" === this.options.helper ? (this.currentItem.css(this._storedCSS), this._removeClass(this.currentItem, "ui-sortable-helper")) : this.currentItem.show();
  9863. for (var t = this.containers.length - 1; 0 <= t; t--) this.containers[t]._trigger("deactivate", null, this._uiHash(this)), this.containers[t].containerCache.over && (this.containers[t]._trigger("out", null, this._uiHash(this)), this.containers[t].containerCache.over = 0)
  9864. }
  9865. return this.placeholder && (this.placeholder[0].parentNode && this.placeholder[0].parentNode.removeChild(this.placeholder[0]), "original" !== this.options.helper && this.helper && this.helper[0].parentNode && this.helper.remove(), S.extend(this, {
  9866. helper: null,
  9867. dragging: !1,
  9868. reverting: !1,
  9869. _noFinalSort: null
  9870. }), this.domPosition.prev ? S(this.domPosition.prev).after(this.currentItem) : S(this.domPosition.parent).prepend(this.currentItem)), this
  9871. },
  9872. serialize: function (e) {
  9873. var t = this._getItemsAsjQuery(e && e.connected),
  9874. i = [];
  9875. return e = e || {}, S(t).each(function () {
  9876. var t = (S(e.item || this).attr(e.attribute || "id") || "").match(e.expression || /(.+)[\-=_](.+)/);
  9877. t && i.push((e.key || t[1] + "[]") + "=" + (e.key && e.expression ? t[1] : t[2]))
  9878. }), !i.length && e.key && i.push(e.key + "="), i.join("&")
  9879. },
  9880. toArray: function (t) {
  9881. var e = this._getItemsAsjQuery(t && t.connected),
  9882. i = [];
  9883. return t = t || {}, e.each(function () {
  9884. i.push(S(t.item || this).attr(t.attribute || "id") || "")
  9885. }), i
  9886. },
  9887. _intersectsWith: function (t) {
  9888. var e = this.positionAbs.left,
  9889. i = e + this.helperProportions.width,
  9890. n = this.positionAbs.top,
  9891. s = n + this.helperProportions.height,
  9892. o = t.left,
  9893. r = o + t.width,
  9894. a = t.top,
  9895. l = a + t.height,
  9896. c = this.offset.click.top,
  9897. u = this.offset.click.left,
  9898. h = "x" === this.options.axis || a < n + c && n + c < l,
  9899. d = "y" === this.options.axis || o < e + u && e + u < r,
  9900. p = h && d;
  9901. return "pointer" === this.options.tolerance || this.options.forcePointerForContainers || "pointer" !== this.options.tolerance && this.helperProportions[this.floating ? "width" : "height"] > t[this.floating ? "width" : "height"] ? p : e + this.helperProportions.width / 2 > o && r > i - this.helperProportions.width / 2 && n + this.helperProportions.height / 2 > a && l > s - this.helperProportions.height / 2
  9902. },
  9903. _intersectsWithPointer: function (t) {
  9904. var e, i, n = "x" === this.options.axis || this._isOverAxis(this.positionAbs.top + this.offset.click.top, t.top, t.height),
  9905. s = "y" === this.options.axis || this._isOverAxis(this.positionAbs.left + this.offset.click.left, t.left, t.width);
  9906. return !!(n && s) && (e = this._getDragVerticalDirection(), i = this._getDragHorizontalDirection(), this.floating ? "right" === i || "down" === e ? 2 : 1 : e && ("down" === e ? 2 : 1))
  9907. },
  9908. _intersectsWithSides: function (t) {
  9909. var e = this._isOverAxis(this.positionAbs.top + this.offset.click.top, t.top + t.height / 2, t.height),
  9910. i = this._isOverAxis(this.positionAbs.left + this.offset.click.left, t.left + t.width / 2, t.width),
  9911. n = this._getDragVerticalDirection(),
  9912. s = this._getDragHorizontalDirection();
  9913. return this.floating && s ? "right" === s && i || "left" === s && !i : n && ("down" === n && e || "up" === n && !e)
  9914. },
  9915. _getDragVerticalDirection: function () {
  9916. var t = this.positionAbs.top - this.lastPositionAbs.top;
  9917. return 0 != t && (0 < t ? "down" : "up")
  9918. },
  9919. _getDragHorizontalDirection: function () {
  9920. var t = this.positionAbs.left - this.lastPositionAbs.left;
  9921. return 0 != t && (0 < t ? "right" : "left")
  9922. },
  9923. refresh: function (t) {
  9924. return this._refreshItems(t), this._setHandleClassName(), this.refreshPositions(), this
  9925. },
  9926. _connectWith: function () {
  9927. var t = this.options;
  9928. return t.connectWith.constructor === String ? [t.connectWith] : t.connectWith
  9929. },
  9930. _getItemsAsjQuery: function (t) {
  9931. function e() {
  9932. r.push(this)
  9933. }
  9934. var i, n, s, o, r = [],
  9935. a = [],
  9936. l = this._connectWith();
  9937. if (l && t)
  9938. for (i = l.length - 1; 0 <= i; i--)
  9939. for (n = (s = S(l[i], this.document[0])).length - 1; 0 <= n; n--)(o = S.data(s[n], this.widgetFullName)) && o !== this && !o.options.disabled && a.push([S.isFunction(o.options.items) ? o.options.items.call(o.element) : S(o.options.items, o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"), o]);
  9940. for (a.push([S.isFunction(this.options.items) ? this.options.items.call(this.element, null, {
  9941. options: this.options,
  9942. item: this.currentItem
  9943. }) : S(this.options.items, this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"), this]), i = a.length - 1; 0 <= i; i--) a[i][0].each(e);
  9944. return S(r)
  9945. },
  9946. _removeCurrentsFromItems: function () {
  9947. var i = this.currentItem.find(":data(" + this.widgetName + "-item)");
  9948. this.items = S.grep(this.items, function (t) {
  9949. for (var e = 0; i.length > e; e++)
  9950. if (i[e] === t.item[0]) return !1;
  9951. return !0
  9952. })
  9953. },
  9954. _refreshItems: function (t) {
  9955. this.items = [], this.containers = [this];
  9956. var e, i, n, s, o, r, a, l, c = this.items,
  9957. u = [
  9958. [S.isFunction(this.options.items) ? this.options.items.call(this.element[0], t, {
  9959. item: this.currentItem
  9960. }) : S(this.options.items, this.element), this]
  9961. ],
  9962. h = this._connectWith();
  9963. if (h && this.ready)
  9964. for (e = h.length - 1; 0 <= e; e--)
  9965. for (i = (n = S(h[e], this.document[0])).length - 1; 0 <= i; i--)(s = S.data(n[i], this.widgetFullName)) && s !== this && !s.options.disabled && (u.push([S.isFunction(s.options.items) ? s.options.items.call(s.element[0], t, {
  9966. item: this.currentItem
  9967. }) : S(s.options.items, s.element), s]), this.containers.push(s));
  9968. for (e = u.length - 1; 0 <= e; e--)
  9969. for (o = u[e][1], i = 0, l = (r = u[e][0]).length; i < l; i++)(a = S(r[i])).data(this.widgetName + "-item", o), c.push({
  9970. item: a,
  9971. instance: o,
  9972. width: 0,
  9973. height: 0,
  9974. left: 0,
  9975. top: 0
  9976. })
  9977. },
  9978. refreshPositions: function (t) {
  9979. var e, i, n, s;
  9980. for (this.floating = !!this.items.length && ("x" === this.options.axis || this._isFloating(this.items[0].item)), this.offsetParent && this.helper && (this.offset.parent = this._getParentOffset()), e = this.items.length - 1; 0 <= e; e--)(i = this.items[e]).instance !== this.currentContainer && this.currentContainer && i.item[0] !== this.currentItem[0] || (n = this.options.toleranceElement ? S(this.options.toleranceElement, i.item) : i.item, t || (i.width = n.outerWidth(), i.height = n.outerHeight()), s = n.offset(), i.left = s.left, i.top = s.top);
  9981. if (this.options.custom && this.options.custom.refreshContainers) this.options.custom.refreshContainers.call(this);
  9982. else
  9983. for (e = this.containers.length - 1; 0 <= e; e--) s = this.containers[e].element.offset(), this.containers[e].containerCache.left = s.left, this.containers[e].containerCache.top = s.top, this.containers[e].containerCache.width = this.containers[e].element.outerWidth(), this.containers[e].containerCache.height = this.containers[e].element.outerHeight();
  9984. return this
  9985. },
  9986. _createPlaceholder: function (i) {
  9987. var n, s = (i = i || this).options;
  9988. s.placeholder && s.placeholder.constructor !== String || (n = s.placeholder, s.placeholder = {
  9989. element: function () {
  9990. var t = i.currentItem[0].nodeName.toLowerCase(),
  9991. e = S("<" + t + ">", i.document[0]);
  9992. return i._addClass(e, "ui-sortable-placeholder", n || i.currentItem[0].className)._removeClass(e, "ui-sortable-helper"), "tbody" === t ? i._createTrPlaceholder(i.currentItem.find("tr").eq(0), S("<tr>", i.document[0]).appendTo(e)) : "tr" === t ? i._createTrPlaceholder(i.currentItem, e) : "img" === t && e.attr("src", i.currentItem.attr("src")), n || e.css("visibility", "hidden"), e
  9993. },
  9994. update: function (t, e) {
  9995. (!n || s.forcePlaceholderSize) && (e.height() || e.height(i.currentItem.innerHeight() - parseInt(i.currentItem.css("paddingTop") || 0, 10) - parseInt(i.currentItem.css("paddingBottom") || 0, 10)), e.width() || e.width(i.currentItem.innerWidth() - parseInt(i.currentItem.css("paddingLeft") || 0, 10) - parseInt(i.currentItem.css("paddingRight") || 0, 10)))
  9996. }
  9997. }), i.placeholder = S(s.placeholder.element.call(i.element, i.currentItem)), i.currentItem.after(i.placeholder), s.placeholder.update(i, i.placeholder)
  9998. },
  9999. _createTrPlaceholder: function (t, e) {
  10000. var i = this;
  10001. t.children().each(function () {
  10002. S("<td>&#160;</td>", i.document[0]).attr("colspan", S(this).attr("colspan") || 1).appendTo(e)
  10003. })
  10004. },
  10005. _contactContainers: function (t) {
  10006. var e, i, n, s, o, r, a, l, c, u, h = null,
  10007. d = null;
  10008. for (e = this.containers.length - 1; 0 <= e; e--)
  10009. if (!S.contains(this.currentItem[0], this.containers[e].element[0]))
  10010. if (this._intersectsWith(this.containers[e].containerCache)) {
  10011. if (h && S.contains(this.containers[e].element[0], h.element[0])) continue;
  10012. h = this.containers[e], d = e
  10013. } else this.containers[e].containerCache.over && (this.containers[e]._trigger("out", t, this._uiHash(this)), this.containers[e].containerCache.over = 0);
  10014. if (h)
  10015. if (1 === this.containers.length) this.containers[d].containerCache.over || (this.containers[d]._trigger("over", t, this._uiHash(this)), this.containers[d].containerCache.over = 1);
  10016. else {
  10017. for (n = 1e4, s = null, o = (c = h.floating || this._isFloating(this.currentItem)) ? "left" : "top", r = c ? "width" : "height", u = c ? "pageX" : "pageY", i = this.items.length - 1; 0 <= i; i--) S.contains(this.containers[d].element[0], this.items[i].item[0]) && this.items[i].item[0] !== this.currentItem[0] && (a = this.items[i].item.offset()[o], l = !1, t[u] - a > this.items[i][r] / 2 && (l = !0), n > Math.abs(t[u] - a) && (n = Math.abs(t[u] - a), s = this.items[i], this.direction = l ? "up" : "down"));
  10018. if (!s && !this.options.dropOnEmpty) return;
  10019. if (this.currentContainer === this.containers[d]) return void(this.currentContainer.containerCache.over || (this.containers[d]._trigger("over", t, this._uiHash()), this.currentContainer.containerCache.over = 1));
  10020. s ? this._rearrange(t, s, null, !0) : this._rearrange(t, null, this.containers[d].element, !0), this._trigger("change", t, this._uiHash()), this.containers[d]._trigger("change", t, this._uiHash(this)), this.currentContainer = this.containers[d], this.options.placeholder.update(this.currentContainer, this.placeholder), this.containers[d]._trigger("over", t, this._uiHash(this)), this.containers[d].containerCache.over = 1
  10021. }
  10022. },
  10023. _createHelper: function (t) {
  10024. var e = this.options,
  10025. i = S.isFunction(e.helper) ? S(e.helper.apply(this.element[0], [t, this.currentItem])) : "clone" === e.helper ? this.currentItem.clone() : this.currentItem;
  10026. return i.parents("body").length || S("parent" !== e.appendTo ? e.appendTo : this.currentItem[0].parentNode)[0].appendChild(i[0]), i[0] === this.currentItem[0] && (this._storedCSS = {
  10027. width: this.currentItem[0].style.width,
  10028. height: this.currentItem[0].style.height,
  10029. position: this.currentItem.css("position"),
  10030. top: this.currentItem.css("top"),
  10031. left: this.currentItem.css("left")
  10032. }), (!i[0].style.width || e.forceHelperSize) && i.width(this.currentItem.width()), (!i[0].style.height || e.forceHelperSize) && i.height(this.currentItem.height()), i
  10033. },
  10034. _adjustOffsetFromHelper: function (t) {
  10035. "string" == typeof t && (t = t.split(" ")), S.isArray(t) && (t = {
  10036. left: +t[0],
  10037. top: +t[1] || 0
  10038. }), "left" in t && (this.offset.click.left = t.left + this.margins.left), "right" in t && (this.offset.click.left = this.helperProportions.width - t.right + this.margins.left), "top" in t && (this.offset.click.top = t.top + this.margins.top), "bottom" in t && (this.offset.click.top = this.helperProportions.height - t.bottom + this.margins.top)
  10039. },
  10040. _getParentOffset: function () {
  10041. this.offsetParent = this.helper.offsetParent();
  10042. var t = this.offsetParent.offset();
  10043. return "absolute" === this.cssPosition && this.scrollParent[0] !== this.document[0] && S.contains(this.scrollParent[0], this.offsetParent[0]) && (t.left += this.scrollParent.scrollLeft(), t.top += this.scrollParent.scrollTop()), (this.offsetParent[0] === this.document[0].body || this.offsetParent[0].tagName && "html" === this.offsetParent[0].tagName.toLowerCase() && S.ui.ie) && (t = {
  10044. top: 0,
  10045. left: 0
  10046. }), {
  10047. top: t.top + (parseInt(this.offsetParent.css("borderTopWidth"), 10) || 0),
  10048. left: t.left + (parseInt(this.offsetParent.css("borderLeftWidth"), 10) || 0)
  10049. }
  10050. },
  10051. _getRelativeOffset: function () {
  10052. if ("relative" !== this.cssPosition) return {
  10053. top: 0,
  10054. left: 0
  10055. };
  10056. var t = this.currentItem.position();
  10057. return {
  10058. top: t.top - (parseInt(this.helper.css("top"), 10) || 0) + this.scrollParent.scrollTop(),
  10059. left: t.left - (parseInt(this.helper.css("left"), 10) || 0) + this.scrollParent.scrollLeft()
  10060. }
  10061. },
  10062. _cacheMargins: function () {
  10063. this.margins = {
  10064. left: parseInt(this.currentItem.css("marginLeft"), 10) || 0,
  10065. top: parseInt(this.currentItem.css("marginTop"), 10) || 0
  10066. }
  10067. },
  10068. _cacheHelperProportions: function () {
  10069. this.helperProportions = {
  10070. width: this.helper.outerWidth(),
  10071. height: this.helper.outerHeight()
  10072. }
  10073. },
  10074. _setContainment: function () {
  10075. var t, e, i, n = this.options;
  10076. "parent" === n.containment && (n.containment = this.helper[0].parentNode), ("document" === n.containment || "window" === n.containment) && (this.containment = [0 - this.offset.relative.left - this.offset.parent.left, 0 - this.offset.relative.top - this.offset.parent.top, "document" === n.containment ? this.document.width() : this.window.width() - this.helperProportions.width - this.margins.left, ("document" === n.containment ? this.document.height() || document.body.parentNode.scrollHeight : this.window.height() || this.document[0].body.parentNode.scrollHeight) - this.helperProportions.height - this.margins.top]), /^(document|window|parent)$/.test(n.containment) || (t = S(n.containment)[0], e = S(n.containment).offset(), i = "hidden" !== S(t).css("overflow"), this.containment = [e.left + (parseInt(S(t).css("borderLeftWidth"), 10) || 0) + (parseInt(S(t).css("paddingLeft"), 10) || 0) - this.margins.left, e.top + (parseInt(S(t).css("borderTopWidth"), 10) || 0) + (parseInt(S(t).css("paddingTop"), 10) || 0) - this.margins.top, e.left + (i ? Math.max(t.scrollWidth, t.offsetWidth) : t.offsetWidth) - (parseInt(S(t).css("borderLeftWidth"), 10) || 0) - (parseInt(S(t).css("paddingRight"), 10) || 0) - this.helperProportions.width - this.margins.left, e.top + (i ? Math.max(t.scrollHeight, t.offsetHeight) : t.offsetHeight) - (parseInt(S(t).css("borderTopWidth"), 10) || 0) - (parseInt(S(t).css("paddingBottom"), 10) || 0) - this.helperProportions.height - this.margins.top])
  10077. },
  10078. _convertPositionTo: function (t, e) {
  10079. e || (e = this.position);
  10080. var i = "absolute" === t ? 1 : -1,
  10081. n = "absolute" !== this.cssPosition || this.scrollParent[0] !== this.document[0] && S.contains(this.scrollParent[0], this.offsetParent[0]) ? this.scrollParent : this.offsetParent,
  10082. s = /(html|body)/i.test(n[0].tagName);
  10083. return {
  10084. top: e.top + this.offset.relative.top * i + this.offset.parent.top * i - ("fixed" === this.cssPosition ? -this.scrollParent.scrollTop() : s ? 0 : n.scrollTop()) * i,
  10085. left: e.left + this.offset.relative.left * i + this.offset.parent.left * i - ("fixed" === this.cssPosition ? -this.scrollParent.scrollLeft() : s ? 0 : n.scrollLeft()) * i
  10086. }
  10087. },
  10088. _generatePosition: function (t) {
  10089. var e, i, n = this.options,
  10090. s = t.pageX,
  10091. o = t.pageY,
  10092. r = "absolute" !== this.cssPosition || this.scrollParent[0] !== this.document[0] && S.contains(this.scrollParent[0], this.offsetParent[0]) ? this.scrollParent : this.offsetParent,
  10093. a = /(html|body)/i.test(r[0].tagName);
  10094. return "relative" !== this.cssPosition || this.scrollParent[0] !== this.document[0] && this.scrollParent[0] !== this.offsetParent[0] || (this.offset.relative = this._getRelativeOffset()), this.originalPosition && (this.containment && (t.pageX - this.offset.click.left < this.containment[0] && (s = this.containment[0] + this.offset.click.left), t.pageY - this.offset.click.top < this.containment[1] && (o = this.containment[1] + this.offset.click.top), t.pageX - this.offset.click.left > this.containment[2] && (s = this.containment[2] + this.offset.click.left), t.pageY - this.offset.click.top > this.containment[3] && (o = this.containment[3] + this.offset.click.top)), n.grid && (e = this.originalPageY + Math.round((o - this.originalPageY) / n.grid[1]) * n.grid[1], o = this.containment ? e - this.offset.click.top >= this.containment[1] && e - this.offset.click.top <= this.containment[3] ? e : e - this.offset.click.top >= this.containment[1] ? e - n.grid[1] : e + n.grid[1] : e, i = this.originalPageX + Math.round((s - this.originalPageX) / n.grid[0]) * n.grid[0], s = this.containment ? i - this.offset.click.left >= this.containment[0] && i - this.offset.click.left <= this.containment[2] ? i : i - this.offset.click.left >= this.containment[0] ? i - n.grid[0] : i + n.grid[0] : i)), {
  10095. top: o - this.offset.click.top - this.offset.relative.top - this.offset.parent.top + ("fixed" === this.cssPosition ? -this.scrollParent.scrollTop() : a ? 0 : r.scrollTop()),
  10096. left: s - this.offset.click.left - this.offset.relative.left - this.offset.parent.left + ("fixed" === this.cssPosition ? -this.scrollParent.scrollLeft() : a ? 0 : r.scrollLeft())
  10097. }
  10098. },
  10099. _rearrange: function (t, e, i, n) {
  10100. i ? i[0].appendChild(this.placeholder[0]) : e.item[0].parentNode.insertBefore(this.placeholder[0], "down" === this.direction ? e.item[0] : e.item[0].nextSibling), this.counter = this.counter ? ++this.counter : 1;
  10101. var s = this.counter;
  10102. this._delay(function () {
  10103. s === this.counter && this.refreshPositions(!n)
  10104. })
  10105. },
  10106. _clear: function (t, e) {
  10107. function i(e, i, n) {
  10108. return function (t) {
  10109. n._trigger(e, t, i._uiHash(i))
  10110. }
  10111. }
  10112. this.reverting = !1;
  10113. var n, s = [];
  10114. if (!this._noFinalSort && this.currentItem.parent().length && this.placeholder.before(this.currentItem), this._noFinalSort = null, this.helper[0] === this.currentItem[0]) {
  10115. for (n in this._storedCSS)("auto" === this._storedCSS[n] || "static" === this._storedCSS[n]) && (this._storedCSS[n] = "");
  10116. this.currentItem.css(this._storedCSS), this._removeClass(this.currentItem, "ui-sortable-helper")
  10117. } else this.currentItem.show();
  10118. for (this.fromOutside && !e && s.push(function (t) {
  10119. this._trigger("receive", t, this._uiHash(this.fromOutside))
  10120. }), !this.fromOutside && this.domPosition.prev === this.currentItem.prev().not(".ui-sortable-helper")[0] && this.domPosition.parent === this.currentItem.parent()[0] || e || s.push(function (t) {
  10121. this._trigger("update", t, this._uiHash())
  10122. }), this !== this.currentContainer && (e || (s.push(function (t) {
  10123. this._trigger("remove", t, this._uiHash())
  10124. }), s.push(function (e) {
  10125. return function (t) {
  10126. e._trigger("receive", t, this._uiHash(this))
  10127. }
  10128. }.call(this, this.currentContainer)), s.push(function (e) {
  10129. return function (t) {
  10130. e._trigger("update", t, this._uiHash(this))
  10131. }
  10132. }.call(this, this.currentContainer)))), n = this.containers.length - 1; 0 <= n; n--) e || s.push(i("deactivate", this, this.containers[n])), this.containers[n].containerCache.over && (s.push(i("out", this, this.containers[n])), this.containers[n].containerCache.over = 0);
  10133. if (this.storedCursor && (this.document.find("body").css("cursor", this.storedCursor), this.storedStylesheet.remove()), this._storedOpacity && this.helper.css("opacity", this._storedOpacity), this._storedZIndex && this.helper.css("zIndex", "auto" === this._storedZIndex ? "" : this._storedZIndex), this.dragging = !1, e || this._trigger("beforeStop", t, this._uiHash()), this.placeholder[0].parentNode.removeChild(this.placeholder[0]), this.cancelHelperRemoval || (this.helper[0] !== this.currentItem[0] && this.helper.remove(), this.helper = null), !e) {
  10134. for (n = 0; s.length > n; n++) s[n].call(this, t);
  10135. this._trigger("stop", t, this._uiHash())
  10136. }
  10137. return this.fromOutside = !1, !this.cancelHelperRemoval
  10138. },
  10139. _trigger: function () {
  10140. !1 === S.Widget.prototype._trigger.apply(this, arguments) && this.cancel()
  10141. },
  10142. _uiHash: function (t) {
  10143. var e = t || this;
  10144. return {
  10145. helper: e.helper,
  10146. placeholder: e.placeholder || S([]),
  10147. position: e.position,
  10148. originalPosition: e.originalPosition,
  10149. offset: e.positionAbs,
  10150. item: e.currentItem,
  10151. sender: t ? t.element : null
  10152. }
  10153. }
  10154. }), S.widget("ui.spinner", {
  10155. version: "1.12.1",
  10156. defaultElement: "<input>",
  10157. widgetEventPrefix: "spin",
  10158. options: {
  10159. classes: {
  10160. "ui-spinner": "ui-corner-all",
  10161. "ui-spinner-down": "ui-corner-br",
  10162. "ui-spinner-up": "ui-corner-tr"
  10163. },
  10164. culture: null,
  10165. icons: {
  10166. down: "ui-icon-triangle-1-s",
  10167. up: "ui-icon-triangle-1-n"
  10168. },
  10169. incremental: !0,
  10170. max: null,
  10171. min: null,
  10172. numberFormat: null,
  10173. page: 10,
  10174. step: 1,
  10175. change: null,
  10176. spin: null,
  10177. start: null,
  10178. stop: null
  10179. },
  10180. _create: function () {
  10181. this._setOption("max", this.options.max), this._setOption("min", this.options.min), this._setOption("step", this.options.step), "" !== this.value() && this._value(this.element.val(), !0), this._draw(), this._on(this._events), this._refresh(), this._on(this.window, {
  10182. beforeunload: function () {
  10183. this.element.removeAttr("autocomplete")
  10184. }
  10185. })
  10186. },
  10187. _getCreateOptions: function () {
  10188. var n = this._super(),
  10189. s = this.element;
  10190. return S.each(["min", "max", "step"], function (t, e) {
  10191. var i = s.attr(e);
  10192. null != i && i.length && (n[e] = i)
  10193. }), n
  10194. },
  10195. _events: {
  10196. keydown: function (t) {
  10197. this._start(t) && this._keydown(t) && t.preventDefault()
  10198. },
  10199. keyup: "_stop",
  10200. focus: function () {
  10201. this.previous = this.element.val()
  10202. },
  10203. blur: function (t) {
  10204. return this.cancelBlur ? void delete this.cancelBlur : (this._stop(), this._refresh(), void(this.previous !== this.element.val() && this._trigger("change", t)))
  10205. },
  10206. mousewheel: function (t, e) {
  10207. if (e) {
  10208. if (!this.spinning && !this._start(t)) return !1;
  10209. this._spin((0 < e ? 1 : -1) * this.options.step, t), clearTimeout(this.mousewheelTimer), this.mousewheelTimer = this._delay(function () {
  10210. this.spinning && this._stop(t)
  10211. }, 100), t.preventDefault()
  10212. }
  10213. },
  10214. "mousedown .ui-spinner-button": function (t) {
  10215. function e() {
  10216. this.element[0] === S.ui.safeActiveElement(this.document[0]) || (this.element.trigger("focus"), this.previous = i, this._delay(function () {
  10217. this.previous = i
  10218. }))
  10219. }
  10220. var i;
  10221. i = this.element[0] === S.ui.safeActiveElement(this.document[0]) ? this.previous : this.element.val(), t.preventDefault(), e.call(this), this.cancelBlur = !0, this._delay(function () {
  10222. delete this.cancelBlur, e.call(this)
  10223. }), !1 !== this._start(t) && this._repeat(null, S(t.currentTarget).hasClass("ui-spinner-up") ? 1 : -1, t)
  10224. },
  10225. "mouseup .ui-spinner-button": "_stop",
  10226. "mouseenter .ui-spinner-button": function (t) {
  10227. return S(t.currentTarget).hasClass("ui-state-active") ? !1 !== this._start(t) && void this._repeat(null, S(t.currentTarget).hasClass("ui-spinner-up") ? 1 : -1, t) : void 0
  10228. },
  10229. "mouseleave .ui-spinner-button": "_stop"
  10230. },
  10231. _enhance: function () {
  10232. this.uiSpinner = this.element.attr("autocomplete", "off").wrap("<span>").parent().append("<a></a><a></a>")
  10233. },
  10234. _draw: function () {
  10235. this._enhance(), this._addClass(this.uiSpinner, "ui-spinner", "ui-widget ui-widget-content"), this._addClass("ui-spinner-input"), this.element.attr("role", "spinbutton"), this.buttons = this.uiSpinner.children("a").attr("tabIndex", -1).attr("aria-hidden", !0).button({
  10236. classes: {
  10237. "ui-button": ""
  10238. }
  10239. }), this._removeClass(this.buttons, "ui-corner-all"), this._addClass(this.buttons.first(), "ui-spinner-button ui-spinner-up"), this._addClass(this.buttons.last(), "ui-spinner-button ui-spinner-down"), this.buttons.first().button({
  10240. icon: this.options.icons.up,
  10241. showLabel: !1
  10242. }), this.buttons.last().button({
  10243. icon: this.options.icons.down,
  10244. showLabel: !1
  10245. }), this.buttons.height() > Math.ceil(.5 * this.uiSpinner.height()) && 0 < this.uiSpinner.height() && this.uiSpinner.height(this.uiSpinner.height())
  10246. },
  10247. _keydown: function (t) {
  10248. var e = this.options,
  10249. i = S.ui.keyCode;
  10250. switch (t.keyCode) {
  10251. case i.UP:
  10252. return this._repeat(null, 1, t), !0;
  10253. case i.DOWN:
  10254. return this._repeat(null, -1, t), !0;
  10255. case i.PAGE_UP:
  10256. return this._repeat(null, e.page, t), !0;
  10257. case i.PAGE_DOWN:
  10258. return this._repeat(null, -e.page, t), !0
  10259. }
  10260. return !1
  10261. },
  10262. _start: function (t) {
  10263. return !(!this.spinning && !1 === this._trigger("start", t)) && (this.counter || (this.counter = 1), this.spinning = !0)
  10264. },
  10265. _repeat: function (t, e, i) {
  10266. t = t || 500, clearTimeout(this.timer), this.timer = this._delay(function () {
  10267. this._repeat(40, e, i)
  10268. }, t), this._spin(e * this.options.step, i)
  10269. },
  10270. _spin: function (t, e) {
  10271. var i = this.value() || 0;
  10272. this.counter || (this.counter = 1), i = this._adjustValue(i + t * this._increment(this.counter)), this.spinning && !1 === this._trigger("spin", e, {
  10273. value: i
  10274. }) || (this._value(i), this.counter++)
  10275. },
  10276. _increment: function (t) {
  10277. var e = this.options.incremental;
  10278. return e ? S.isFunction(e) ? e(t) : Math.floor(t * t * t / 5e4 - t * t / 500 + 17 * t / 200 + 1) : 1
  10279. },
  10280. _precision: function () {
  10281. var t = this._precisionOf(this.options.step);
  10282. return null !== this.options.min && (t = Math.max(t, this._precisionOf(this.options.min))), t
  10283. },
  10284. _precisionOf: function (t) {
  10285. var e = "" + t,
  10286. i = e.indexOf(".");
  10287. return -1 === i ? 0 : e.length - i - 1
  10288. },
  10289. _adjustValue: function (t) {
  10290. var e, i, n = this.options;
  10291. return i = t - (e = null !== n.min ? n.min : 0), t = e + (i = Math.round(i / n.step) * n.step), t = parseFloat(t.toFixed(this._precision())), null !== n.max && t > n.max ? n.max : null !== n.min && n.min > t ? n.min : t
  10292. },
  10293. _stop: function (t) {
  10294. this.spinning && (clearTimeout(this.timer), clearTimeout(this.mousewheelTimer), this.counter = 0, this.spinning = !1, this._trigger("stop", t))
  10295. },
  10296. _setOption: function (t, e) {
  10297. var i, n, s;
  10298. return "culture" === t || "numberFormat" === t ? (i = this._parse(this.element.val()), this.options[t] = e, void this.element.val(this._format(i))) : (("max" === t || "min" === t || "step" === t) && "string" == typeof e && (e = this._parse(e)), "icons" === t && (n = this.buttons.first().find(".ui-icon"), this._removeClass(n, null, this.options.icons.up), this._addClass(n, null, e.up), s = this.buttons.last().find(".ui-icon"), this._removeClass(s, null, this.options.icons.down), this._addClass(s, null, e.down)), void this._super(t, e))
  10299. },
  10300. _setOptionDisabled: function (t) {
  10301. this._super(t), this._toggleClass(this.uiSpinner, null, "ui-state-disabled", !!t), this.element.prop("disabled", !!t), this.buttons.button(t ? "disable" : "enable")
  10302. },
  10303. _setOptions: e(function (t) {
  10304. this._super(t)
  10305. }),
  10306. _parse: function (t) {
  10307. return "string" == typeof t && "" !== t && (t = window.Globalize && this.options.numberFormat ? Globalize.parseFloat(t, 10, this.options.culture) : +t), "" === t || isNaN(t) ? null : t
  10308. },
  10309. _format: function (t) {
  10310. return "" === t ? "" : window.Globalize && this.options.numberFormat ? Globalize.format(t, this.options.numberFormat, this.options.culture) : t
  10311. },
  10312. _refresh: function () {
  10313. this.element.attr({
  10314. "aria-valuemin": this.options.min,
  10315. "aria-valuemax": this.options.max,
  10316. "aria-valuenow": this._parse(this.element.val())
  10317. })
  10318. },
  10319. isValid: function () {
  10320. var t = this.value();
  10321. return null !== t && t === this._adjustValue(t)
  10322. },
  10323. _value: function (t, e) {
  10324. var i;
  10325. "" !== t && (null !== (i = this._parse(t)) && (e || (i = this._adjustValue(i)), t = this._format(i))), this.element.val(t), this._refresh()
  10326. },
  10327. _destroy: function () {
  10328. this.element.prop("disabled", !1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"), this.uiSpinner.replaceWith(this.element)
  10329. },
  10330. stepUp: e(function (t) {
  10331. this._stepUp(t)
  10332. }),
  10333. _stepUp: function (t) {
  10334. this._start() && (this._spin((t || 1) * this.options.step), this._stop())
  10335. },
  10336. stepDown: e(function (t) {
  10337. this._stepDown(t)
  10338. }),
  10339. _stepDown: function (t) {
  10340. this._start() && (this._spin((t || 1) * -this.options.step), this._stop())
  10341. },
  10342. pageUp: e(function (t) {
  10343. this._stepUp((t || 1) * this.options.page)
  10344. }),
  10345. pageDown: e(function (t) {
  10346. this._stepDown((t || 1) * this.options.page)
  10347. }),
  10348. value: function (t) {
  10349. return arguments.length ? void e(this._value).call(this, t) : this._parse(this.element.val())
  10350. },
  10351. widget: function () {
  10352. return this.uiSpinner
  10353. }
  10354. }), !1 !== S.uiBackCompat && S.widget("ui.spinner", S.ui.spinner, {
  10355. _enhance: function () {
  10356. this.uiSpinner = this.element.attr("autocomplete", "off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())
  10357. },
  10358. _uiSpinnerHtml: function () {
  10359. return "<span>"
  10360. },
  10361. _buttonHtml: function () {
  10362. return "<a></a><a></a>"
  10363. }
  10364. }), S.ui.spinner, S.widget("ui.tabs", {
  10365. version: "1.12.1",
  10366. delay: 300,
  10367. options: {
  10368. active: null,
  10369. classes: {
  10370. "ui-tabs": "ui-corner-all",
  10371. "ui-tabs-nav": "ui-corner-all",
  10372. "ui-tabs-panel": "ui-corner-bottom",
  10373. "ui-tabs-tab": "ui-corner-top"
  10374. },
  10375. collapsible: !1,
  10376. event: "click",
  10377. heightStyle: "content",
  10378. hide: null,
  10379. show: null,
  10380. activate: null,
  10381. beforeActivate: null,
  10382. beforeLoad: null,
  10383. load: null
  10384. },
  10385. _isLocal: (b = /#.*$/, function (t) {
  10386. var e, i;
  10387. e = t.href.replace(b, ""), i = location.href.replace(b, "");
  10388. try {
  10389. e = decodeURIComponent(e)
  10390. } catch (t) {}
  10391. try {
  10392. i = decodeURIComponent(i)
  10393. } catch (t) {}
  10394. return 1 < t.hash.length && e === i
  10395. }),
  10396. _create: function () {
  10397. var e = this,
  10398. t = this.options;
  10399. this.running = !1, this._addClass("ui-tabs", "ui-widget ui-widget-content"), this._toggleClass("ui-tabs-collapsible", null, t.collapsible), this._processTabs(), t.active = this._initialActive(), S.isArray(t.disabled) && (t.disabled = S.unique(t.disabled.concat(S.map(this.tabs.filter(".ui-state-disabled"), function (t) {
  10400. return e.tabs.index(t)
  10401. }))).sort()), this.active = !1 !== this.options.active && this.anchors.length ? this._findActive(t.active) : S(), this._refresh(), this.active.length && this.load(t.active)
  10402. },
  10403. _initialActive: function () {
  10404. var i = this.options.active,
  10405. t = this.options.collapsible,
  10406. n = location.hash.substring(1);
  10407. return null === i && (n && this.tabs.each(function (t, e) {
  10408. return S(e).attr("aria-controls") === n ? (i = t, !1) : void 0
  10409. }), null === i && (i = this.tabs.index(this.tabs.filter(".ui-tabs-active"))), (null === i || -1 === i) && (i = !!this.tabs.length && 0)), !1 !== i && (-1 === (i = this.tabs.index(this.tabs.eq(i))) && (i = !t && 0)), !t && !1 === i && this.anchors.length && (i = 0), i
  10410. },
  10411. _getCreateEventData: function () {
  10412. return {
  10413. tab: this.active,
  10414. panel: this.active.length ? this._getPanelForTab(this.active) : S()
  10415. }
  10416. },
  10417. _tabKeydown: function (t) {
  10418. var e = S(S.ui.safeActiveElement(this.document[0])).closest("li"),
  10419. i = this.tabs.index(e),
  10420. n = !0;
  10421. if (!this._handlePageNav(t)) {
  10422. switch (t.keyCode) {
  10423. case S.ui.keyCode.RIGHT:
  10424. case S.ui.keyCode.DOWN:
  10425. i++;
  10426. break;
  10427. case S.ui.keyCode.UP:
  10428. case S.ui.keyCode.LEFT:
  10429. n = !1, i--;
  10430. break;
  10431. case S.ui.keyCode.END:
  10432. i = this.anchors.length - 1;
  10433. break;
  10434. case S.ui.keyCode.HOME:
  10435. i = 0;
  10436. break;
  10437. case S.ui.keyCode.SPACE:
  10438. return t.preventDefault(), clearTimeout(this.activating), void this._activate(i);
  10439. case S.ui.keyCode.ENTER:
  10440. return t.preventDefault(), clearTimeout(this.activating), void this._activate(i !== this.options.active && i);
  10441. default:
  10442. return
  10443. }
  10444. t.preventDefault(), clearTimeout(this.activating), i = this._focusNextTab(i, n), t.ctrlKey || t.metaKey || (e.attr("aria-selected", "false"), this.tabs.eq(i).attr("aria-selected", "true"), this.activating = this._delay(function () {
  10445. this.option("active", i)
  10446. }, this.delay))
  10447. }
  10448. },
  10449. _panelKeydown: function (t) {
  10450. this._handlePageNav(t) || t.ctrlKey && t.keyCode === S.ui.keyCode.UP && (t.preventDefault(), this.active.trigger("focus"))
  10451. },
  10452. _handlePageNav: function (t) {
  10453. return t.altKey && t.keyCode === S.ui.keyCode.PAGE_UP ? (this._activate(this._focusNextTab(this.options.active - 1, !1)), !0) : t.altKey && t.keyCode === S.ui.keyCode.PAGE_DOWN ? (this._activate(this._focusNextTab(this.options.active + 1, !0)), !0) : void 0
  10454. },
  10455. _findNextTab: function (t, e) {
  10456. for (var i = this.tabs.length - 1; - 1 !== S.inArray((i < t && (t = 0), t < 0 && (t = i), t), this.options.disabled);) t = e ? t + 1 : t - 1;
  10457. return t
  10458. },
  10459. _focusNextTab: function (t, e) {
  10460. return t = this._findNextTab(t, e), this.tabs.eq(t).trigger("focus"), t
  10461. },
  10462. _setOption: function (t, e) {
  10463. return "active" === t ? void this._activate(e) : (this._super(t, e), "collapsible" === t && (this._toggleClass("ui-tabs-collapsible", null, e), e || !1 !== this.options.active || this._activate(0)), "event" === t && this._setupEvents(e), void("heightStyle" === t && this._setupHeightStyle(e)))
  10464. },
  10465. _sanitizeSelector: function (t) {
  10466. return t ? t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g, "\\$&") : ""
  10467. },
  10468. refresh: function () {
  10469. var t = this.options,
  10470. e = this.tablist.children(":has(a[href])");
  10471. t.disabled = S.map(e.filter(".ui-state-disabled"), function (t) {
  10472. return e.index(t)
  10473. }), this._processTabs(), !1 !== t.active && this.anchors.length ? this.active.length && !S.contains(this.tablist[0], this.active[0]) ? this.tabs.length === t.disabled.length ? (t.active = !1, this.active = S()) : this._activate(this._findNextTab(Math.max(0, t.active - 1), !1)) : t.active = this.tabs.index(this.active) : (t.active = !1, this.active = S()), this._refresh()
  10474. },
  10475. _refresh: function () {
  10476. this._setOptionDisabled(this.options.disabled), this._setupEvents(this.options.event), this._setupHeightStyle(this.options.heightStyle), this.tabs.not(this.active).attr({
  10477. "aria-selected": "false",
  10478. "aria-expanded": "false",
  10479. tabIndex: -1
  10480. }), this.panels.not(this._getPanelForTab(this.active)).hide().attr({
  10481. "aria-hidden": "true"
  10482. }), this.active.length ? (this.active.attr({
  10483. "aria-selected": "true",
  10484. "aria-expanded": "true",
  10485. tabIndex: 0
  10486. }), this._addClass(this.active, "ui-tabs-active", "ui-state-active"), this._getPanelForTab(this.active).show().attr({
  10487. "aria-hidden": "false"
  10488. })) : this.tabs.eq(0).attr("tabIndex", 0)
  10489. },
  10490. _processTabs: function () {
  10491. var l = this,
  10492. t = this.tabs,
  10493. e = this.anchors,
  10494. i = this.panels;
  10495. this.tablist = this._getList().attr("role", "tablist"), this._addClass(this.tablist, "ui-tabs-nav", "ui-helper-reset ui-helper-clearfix ui-widget-header"), this.tablist.on("mousedown" + this.eventNamespace, "> li", function (t) {
  10496. S(this).is(".ui-state-disabled") && t.preventDefault()
  10497. }).on("focus" + this.eventNamespace, ".ui-tabs-anchor", function () {
  10498. S(this).closest("li").is(".ui-state-disabled") && this.blur()
  10499. }), this.tabs = this.tablist.find("> li:has(a[href])").attr({
  10500. role: "tab",
  10501. tabIndex: -1
  10502. }), this._addClass(this.tabs, "ui-tabs-tab", "ui-state-default"), this.anchors = this.tabs.map(function () {
  10503. return S("a", this)[0]
  10504. }).attr({
  10505. role: "presentation",
  10506. tabIndex: -1
  10507. }), this._addClass(this.anchors, "ui-tabs-anchor"), this.panels = S(), this.anchors.each(function (t, e) {
  10508. var i, n, s, o = S(e).uniqueId().attr("id"),
  10509. r = S(e).closest("li"),
  10510. a = r.attr("aria-controls");
  10511. l._isLocal(e) ? (s = (i = e.hash).substring(1), n = l.element.find(l._sanitizeSelector(i))) : (i = "#" + (s = r.attr("aria-controls") || S({}).uniqueId()[0].id), (n = l.element.find(i)).length || (n = l._createPanel(s)).insertAfter(l.panels[t - 1] || l.tablist), n.attr("aria-live", "polite")), n.length && (l.panels = l.panels.add(n)), a && r.data("ui-tabs-aria-controls", a), r.attr({
  10512. "aria-controls": s,
  10513. "aria-labelledby": o
  10514. }), n.attr("aria-labelledby", o)
  10515. }), this.panels.attr("role", "tabpanel"), this._addClass(this.panels, "ui-tabs-panel", "ui-widget-content"), t && (this._off(t.not(this.tabs)), this._off(e.not(this.anchors)), this._off(i.not(this.panels)))
  10516. },
  10517. _getList: function () {
  10518. return this.tablist || this.element.find("ol, ul").eq(0)
  10519. },
  10520. _createPanel: function (t) {
  10521. return S("<div>").attr("id", t).data("ui-tabs-destroy", !0)
  10522. },
  10523. _setOptionDisabled: function (t) {
  10524. var e, i, n;
  10525. for (S.isArray(t) && (t.length ? t.length === this.anchors.length && (t = !0) : t = !1), n = 0; i = this.tabs[n]; n++) e = S(i), !0 === t || -1 !== S.inArray(n, t) ? (e.attr("aria-disabled", "true"), this._addClass(e, null, "ui-state-disabled")) : (e.removeAttr("aria-disabled"), this._removeClass(e, null, "ui-state-disabled"));
  10526. this.options.disabled = t, this._toggleClass(this.widget(), this.widgetFullName + "-disabled", null, !0 === t)
  10527. },
  10528. _setupEvents: function (t) {
  10529. var i = {};
  10530. t && S.each(t.split(" "), function (t, e) {
  10531. i[e] = "_eventHandler"
  10532. }), this._off(this.anchors.add(this.tabs).add(this.panels)), this._on(!0, this.anchors, {
  10533. click: function (t) {
  10534. t.preventDefault()
  10535. }
  10536. }), this._on(this.anchors, i), this._on(this.tabs, {
  10537. keydown: "_tabKeydown"
  10538. }), this._on(this.panels, {
  10539. keydown: "_panelKeydown"
  10540. }), this._focusable(this.tabs), this._hoverable(this.tabs)
  10541. },
  10542. _setupHeightStyle: function (t) {
  10543. var i, e = this.element.parent();
  10544. "fill" === t ? (i = e.height(), i -= this.element.outerHeight() - this.element.height(), this.element.siblings(":visible").each(function () {
  10545. var t = S(this),
  10546. e = t.css("position");
  10547. "absolute" !== e && "fixed" !== e && (i -= t.outerHeight(!0))
  10548. }), this.element.children().not(this.panels).each(function () {
  10549. i -= S(this).outerHeight(!0)
  10550. }), this.panels.each(function () {
  10551. S(this).height(Math.max(0, i - S(this).innerHeight() + S(this).height()))
  10552. }).css("overflow", "auto")) : "auto" === t && (i = 0, this.panels.each(function () {
  10553. i = Math.max(i, S(this).height("").height())
  10554. }).height(i))
  10555. },
  10556. _eventHandler: function (t) {
  10557. var e = this.options,
  10558. i = this.active,
  10559. n = S(t.currentTarget).closest("li"),
  10560. s = n[0] === i[0],
  10561. o = s && e.collapsible,
  10562. r = o ? S() : this._getPanelForTab(n),
  10563. a = i.length ? this._getPanelForTab(i) : S(),
  10564. l = {
  10565. oldTab: i,
  10566. oldPanel: a,
  10567. newTab: o ? S() : n,
  10568. newPanel: r
  10569. };
  10570. t.preventDefault(), n.hasClass("ui-state-disabled") || n.hasClass("ui-tabs-loading") || this.running || s && !e.collapsible || !1 === this._trigger("beforeActivate", t, l) || (e.active = !o && this.tabs.index(n), this.active = s ? S() : n, this.xhr && this.xhr.abort(), a.length || r.length || S.error("jQuery UI Tabs: Mismatching fragment identifier."), r.length && this.load(this.tabs.index(n), t), this._toggle(t, l))
  10571. },
  10572. _toggle: function (t, e) {
  10573. function i() {
  10574. s.running = !1, s._trigger("activate", t, e)
  10575. }
  10576. function n() {
  10577. s._addClass(e.newTab.closest("li"), "ui-tabs-active", "ui-state-active"), o.length && s.options.show ? s._show(o, s.options.show, i) : (o.show(), i())
  10578. }
  10579. var s = this,
  10580. o = e.newPanel,
  10581. r = e.oldPanel;
  10582. this.running = !0, r.length && this.options.hide ? this._hide(r, this.options.hide, function () {
  10583. s._removeClass(e.oldTab.closest("li"), "ui-tabs-active", "ui-state-active"), n()
  10584. }) : (this._removeClass(e.oldTab.closest("li"), "ui-tabs-active", "ui-state-active"), r.hide(), n()), r.attr("aria-hidden", "true"), e.oldTab.attr({
  10585. "aria-selected": "false",
  10586. "aria-expanded": "false"
  10587. }), o.length && r.length ? e.oldTab.attr("tabIndex", -1) : o.length && this.tabs.filter(function () {
  10588. return 0 === S(this).attr("tabIndex")
  10589. }).attr("tabIndex", -1), o.attr("aria-hidden", "false"), e.newTab.attr({
  10590. "aria-selected": "true",
  10591. "aria-expanded": "true",
  10592. tabIndex: 0
  10593. })
  10594. },
  10595. _activate: function (t) {
  10596. var e, i = this._findActive(t);
  10597. i[0] !== this.active[0] && (i.length || (i = this.active), e = i.find(".ui-tabs-anchor")[0], this._eventHandler({
  10598. target: e,
  10599. currentTarget: e,
  10600. preventDefault: S.noop
  10601. }))
  10602. },
  10603. _findActive: function (t) {
  10604. return !1 === t ? S() : this.tabs.eq(t)
  10605. },
  10606. _getIndex: function (t) {
  10607. return "string" == typeof t && (t = this.anchors.index(this.anchors.filter("[href$='" + S.ui.escapeSelector(t) + "']"))), t
  10608. },
  10609. _destroy: function () {
  10610. this.xhr && this.xhr.abort(), this.tablist.removeAttr("role").off(this.eventNamespace), this.anchors.removeAttr("role tabIndex").removeUniqueId(), this.tabs.add(this.panels).each(function () {
  10611. S.data(this, "ui-tabs-destroy") ? S(this).remove() : S(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")
  10612. }), this.tabs.each(function () {
  10613. var t = S(this),
  10614. e = t.data("ui-tabs-aria-controls");
  10615. e ? t.attr("aria-controls", e).removeData("ui-tabs-aria-controls") : t.removeAttr("aria-controls")
  10616. }), this.panels.show(), "content" !== this.options.heightStyle && this.panels.css("height", "")
  10617. },
  10618. enable: function (i) {
  10619. var t = this.options.disabled;
  10620. !1 !== t && (t = void 0 !== i && (i = this._getIndex(i), S.isArray(t) ? S.map(t, function (t) {
  10621. return t !== i ? t : null
  10622. }) : S.map(this.tabs, function (t, e) {
  10623. return e !== i ? e : null
  10624. })), this._setOptionDisabled(t))
  10625. },
  10626. disable: function (t) {
  10627. var e = this.options.disabled;
  10628. if (!0 !== e) {
  10629. if (void 0 === t) e = !0;
  10630. else {
  10631. if (t = this._getIndex(t), -1 !== S.inArray(t, e)) return;
  10632. e = S.isArray(e) ? S.merge([t], e).sort() : [t]
  10633. }
  10634. this._setOptionDisabled(e)
  10635. }
  10636. },
  10637. load: function (t, n) {
  10638. t = this._getIndex(t);
  10639. function s(t, e) {
  10640. "abort" === e && o.panels.stop(!1, !0), o._removeClass(i, "ui-tabs-loading"), r.removeAttr("aria-busy"), t === o.xhr && delete o.xhr
  10641. }
  10642. var o = this,
  10643. i = this.tabs.eq(t),
  10644. e = i.find(".ui-tabs-anchor"),
  10645. r = this._getPanelForTab(i),
  10646. a = {
  10647. tab: i,
  10648. panel: r
  10649. };
  10650. this._isLocal(e[0]) || (this.xhr = S.ajax(this._ajaxSettings(e, n, a)), this.xhr && "canceled" !== this.xhr.statusText && (this._addClass(i, "ui-tabs-loading"), r.attr("aria-busy", "true"), this.xhr.done(function (t, e, i) {
  10651. setTimeout(function () {
  10652. r.html(t), o._trigger("load", n, a), s(i, e)
  10653. }, 1)
  10654. }).fail(function (t, e) {
  10655. setTimeout(function () {
  10656. s(t, e)
  10657. }, 1)
  10658. })))
  10659. },
  10660. _ajaxSettings: function (t, i, n) {
  10661. var s = this;
  10662. return {
  10663. url: t.attr("href").replace(/#.*$/, ""),
  10664. beforeSend: function (t, e) {
  10665. return s._trigger("beforeLoad", i, S.extend({
  10666. jqXHR: t,
  10667. ajaxSettings: e
  10668. }, n))
  10669. }
  10670. }
  10671. },
  10672. _getPanelForTab: function (t) {
  10673. var e = S(t).attr("aria-controls");
  10674. return this.element.find(this._sanitizeSelector("#" + e))
  10675. }
  10676. }), !1 !== S.uiBackCompat && S.widget("ui.tabs", S.ui.tabs, {
  10677. _processTabs: function () {
  10678. this._superApply(arguments), this._addClass(this.tabs, "ui-tab")
  10679. }
  10680. }), S.ui.tabs, S.widget("ui.tooltip", {
  10681. version: "1.12.1",
  10682. options: {
  10683. classes: {
  10684. "ui-tooltip": "ui-corner-all ui-widget-shadow"
  10685. },
  10686. content: function () {
  10687. var t = S(this).attr("title") || "";
  10688. return S("<a>").text(t).html()
  10689. },
  10690. hide: !0,
  10691. items: "[title]:not([disabled])",
  10692. position: {
  10693. my: "left top+15",
  10694. at: "left bottom",
  10695. collision: "flipfit flip"
  10696. },
  10697. show: !0,
  10698. track: !1,
  10699. close: null,
  10700. open: null
  10701. },
  10702. _addDescribedBy: function (t, e) {
  10703. var i = (t.attr("aria-describedby") || "").split(/\s+/);
  10704. i.push(e), t.data("ui-tooltip-id", e).attr("aria-describedby", S.trim(i.join(" ")))
  10705. },
  10706. _removeDescribedBy: function (t) {
  10707. var e = t.data("ui-tooltip-id"),
  10708. i = (t.attr("aria-describedby") || "").split(/\s+/),
  10709. n = S.inArray(e, i); - 1 !== n && i.splice(n, 1), t.removeData("ui-tooltip-id"), (i = S.trim(i.join(" "))) ? t.attr("aria-describedby", i) : t.removeAttr("aria-describedby")
  10710. },
  10711. _create: function () {
  10712. this._on({
  10713. mouseover: "open",
  10714. focusin: "open"
  10715. }), this.tooltips = {}, this.parents = {}, this.liveRegion = S("<div>").attr({
  10716. role: "log",
  10717. "aria-live": "assertive",
  10718. "aria-relevant": "additions"
  10719. }).appendTo(this.document[0].body), this._addClass(this.liveRegion, null, "ui-helper-hidden-accessible"), this.disabledTitles = S([])
  10720. },
  10721. _setOption: function (t, e) {
  10722. var i = this;
  10723. this._super(t, e), "content" === t && S.each(this.tooltips, function (t, e) {
  10724. i._updateContent(e.element)
  10725. })
  10726. },
  10727. _setOptionDisabled: function (t) {
  10728. this[t ? "_disable" : "_enable"]()
  10729. },
  10730. _disable: function () {
  10731. var n = this;
  10732. S.each(this.tooltips, function (t, e) {
  10733. var i = S.Event("blur");
  10734. i.target = i.currentTarget = e.element[0], n.close(i, !0)
  10735. }), this.disabledTitles = this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function () {
  10736. var t = S(this);
  10737. return t.is("[title]") ? t.data("ui-tooltip-title", t.attr("title")).removeAttr("title") : void 0
  10738. }))
  10739. },
  10740. _enable: function () {
  10741. this.disabledTitles.each(function () {
  10742. var t = S(this);
  10743. t.data("ui-tooltip-title") && t.attr("title", t.data("ui-tooltip-title"))
  10744. }), this.disabledTitles = S([])
  10745. },
  10746. open: function (t) {
  10747. var i = this,
  10748. e = S(t ? t.target : this.element).closest(this.options.items);
  10749. e.length && !e.data("ui-tooltip-id") && (e.attr("title") && e.data("ui-tooltip-title", e.attr("title")), e.data("ui-tooltip-open", !0), t && "mouseover" === t.type && e.parents().each(function () {
  10750. var t, e = S(this);
  10751. e.data("ui-tooltip-open") && ((t = S.Event("blur")).target = t.currentTarget = this, i.close(t, !0)), e.attr("title") && (e.uniqueId(), i.parents[this.id] = {
  10752. element: this,
  10753. title: e.attr("title")
  10754. }, e.attr("title", ""))
  10755. }), this._registerCloseHandlers(t, e), this._updateContent(e, t))
  10756. },
  10757. _updateContent: function (e, i) {
  10758. var t, n = this.options.content,
  10759. s = this,
  10760. o = i ? i.type : null;
  10761. return "string" == typeof n || n.nodeType || n.jquery ? this._open(i, e, n) : void((t = n.call(e[0], function (t) {
  10762. s._delay(function () {
  10763. e.data("ui-tooltip-open") && (i && (i.type = o), this._open(i, e, t))
  10764. })
  10765. })) && this._open(i, e, t))
  10766. },
  10767. _open: function (t, e, i) {
  10768. function n(t) {
  10769. l.of = t, o.is(":hidden") || o.position(l)
  10770. }
  10771. var s, o, r, a, l = S.extend({}, this.options.position);
  10772. if (i) {
  10773. if (s = this._find(e)) return void s.tooltip.find(".ui-tooltip-content").html(i);
  10774. e.is("[title]") && (t && "mouseover" === t.type ? e.attr("title", "") : e.removeAttr("title")), s = this._tooltip(e), o = s.tooltip, this._addDescribedBy(e, o.attr("id")), o.find(".ui-tooltip-content").html(i), this.liveRegion.children().hide(), (a = S("<div>").html(o.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"), a.removeAttr("id").find("[id]").removeAttr("id"), a.appendTo(this.liveRegion), this.options.track && t && /^mouse/.test(t.type) ? (this._on(this.document, {
  10775. mousemove: n
  10776. }), n(t)) : o.position(S.extend({
  10777. of: e
  10778. }, this.options.position)), o.hide(), this._show(o, this.options.show), this.options.track && this.options.show && this.options.show.delay && (r = this.delayedShow = setInterval(function () {
  10779. o.is(":visible") && (n(l.of), clearInterval(r))
  10780. }, S.fx.interval)), this._trigger("open", t, {
  10781. tooltip: o
  10782. })
  10783. }
  10784. },
  10785. _registerCloseHandlers: function (t, i) {
  10786. var e = {
  10787. keyup: function (t) {
  10788. if (t.keyCode === S.ui.keyCode.ESCAPE) {
  10789. var e = S.Event(t);
  10790. e.currentTarget = i[0], this.close(e, !0)
  10791. }
  10792. }
  10793. };
  10794. i[0] !== this.element[0] && (e.remove = function () {
  10795. this._removeTooltip(this._find(i).tooltip)
  10796. }), t && "mouseover" !== t.type || (e.mouseleave = "close"), t && "focusin" !== t.type || (e.focusout = "close"), this._on(!0, i, e)
  10797. },
  10798. close: function (t) {
  10799. var e, i = this,
  10800. n = S(t ? t.currentTarget : this.element),
  10801. s = this._find(n);
  10802. return s ? (e = s.tooltip, void(s.closing || (clearInterval(this.delayedShow), n.data("ui-tooltip-title") && !n.attr("title") && n.attr("title", n.data("ui-tooltip-title")), this._removeDescribedBy(n), s.hiding = !0, e.stop(!0), this._hide(e, this.options.hide, function () {
  10803. i._removeTooltip(S(this))
  10804. }), n.removeData("ui-tooltip-open"), this._off(n, "mouseleave focusout keyup"), n[0] !== this.element[0] && this._off(n, "remove"), this._off(this.document, "mousemove"), t && "mouseleave" === t.type && S.each(this.parents, function (t, e) {
  10805. S(e.element).attr("title", e.title), delete i.parents[t]
  10806. }), s.closing = !0, this._trigger("close", t, {
  10807. tooltip: e
  10808. }), s.hiding || (s.closing = !1)))) : void n.removeData("ui-tooltip-open")
  10809. },
  10810. _tooltip: function (t) {
  10811. var e = S("<div>").attr("role", "tooltip"),
  10812. i = S("<div>").appendTo(e),
  10813. n = e.uniqueId().attr("id");
  10814. return this._addClass(i, "ui-tooltip-content"), this._addClass(e, "ui-tooltip", "ui-widget ui-widget-content"), e.appendTo(this._appendTo(t)), this.tooltips[n] = {
  10815. element: t,
  10816. tooltip: e
  10817. }
  10818. },
  10819. _find: function (t) {
  10820. var e = t.data("ui-tooltip-id");
  10821. return e ? this.tooltips[e] : null
  10822. },
  10823. _removeTooltip: function (t) {
  10824. t.remove(), delete this.tooltips[t.attr("id")]
  10825. },
  10826. _appendTo: function (t) {
  10827. var e = t.closest(".ui-front, dialog");
  10828. return e.length || (e = this.document[0].body), e
  10829. },
  10830. _destroy: function () {
  10831. var s = this;
  10832. S.each(this.tooltips, function (t, e) {
  10833. var i = S.Event("blur"),
  10834. n = e.element;
  10835. i.target = i.currentTarget = n[0], s.close(i, !0), S("#" + t).remove(), n.data("ui-tooltip-title") && (n.attr("title") || n.attr("title", n.data("ui-tooltip-title")), n.removeData("ui-tooltip-title"))
  10836. }), this.liveRegion.remove()
  10837. }
  10838. }), !1 !== S.uiBackCompat && S.widget("ui.tooltip", S.ui.tooltip, {
  10839. options: {
  10840. tooltipClass: null
  10841. },
  10842. _tooltip: function () {
  10843. var t = this._superApply(arguments);
  10844. return this.options.tooltipClass && t.tooltip.addClass(this.options.tooltipClass), t
  10845. }
  10846. }), S.ui.tooltip
  10847. }),
  10848. function () {
  10849. for (var t, e = function () {}, i = ["assert", "clear", "count", "debug", "dir", "dirxml", "error", "exception", "group", "groupCollapsed", "groupEnd", "info", "log", "markTimeline", "profile", "profileEnd", "table", "time", "timeEnd", "timeline", "timelineEnd", "timeStamp", "trace", "warn"], n = i.length, s = window.console = window.console || {}; n--;) s[t = i[n]] || (s[t] = e)
  10850. }(),
  10851. function (t) {
  10852. "function" == typeof define && define.amd ? define(["jquery"], t) : t(jQuery)
  10853. }(function (s) {
  10854. var o = [],
  10855. e = [],
  10856. n = {
  10857. precision: 100,
  10858. elapse: !1
  10859. };
  10860. e.push(/^[0-9]*$/.source), e.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source), e.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source), e = new RegExp(e.join("|"));
  10861. function r(t, e, i) {
  10862. this.el = t, this.$el = s(t), this.interval = null, this.offset = {}, this.options = s.extend({}, n), this.instanceNumber = o.length, o.push(this), this.$el.data("countdown-instance", this.instanceNumber), i && ("function" == typeof i ? (this.$el.on("update.countdown", i), this.$el.on("stoped.countdown", i), this.$el.on("finish.countdown", i)) : this.options = s.extend({}, n, i)), this.setFinalDate(e), this.start()
  10863. }
  10864. var m = {
  10865. Y: "years",
  10866. m: "months",
  10867. n: "daysToMonth",
  10868. w: "weeks",
  10869. d: "daysToWeek",
  10870. D: "totalDays",
  10871. H: "hours",
  10872. M: "minutes",
  10873. S: "seconds"
  10874. };
  10875. s.extend(r.prototype, {
  10876. start: function () {
  10877. null !== this.interval && clearInterval(this.interval);
  10878. var t = this;
  10879. this.update(), this.interval = setInterval(function () {
  10880. t.update.call(t)
  10881. }, this.options.precision)
  10882. },
  10883. stop: function () {
  10884. clearInterval(this.interval), this.interval = null, this.dispatchEvent("stoped")
  10885. },
  10886. toggle: function () {
  10887. this.interval ? this.stop() : this.start()
  10888. },
  10889. pause: function () {
  10890. this.stop()
  10891. },
  10892. resume: function () {
  10893. this.start()
  10894. },
  10895. remove: function () {
  10896. this.stop.call(this), o[this.instanceNumber] = null, delete this.$el.data().countdownInstance
  10897. },
  10898. setFinalDate: function (t) {
  10899. this.finalDate = function (t) {
  10900. if (t instanceof Date) return t;
  10901. if (String(t).match(e)) return String(t).match(/^[0-9]*$/) && (t = Number(t)), String(t).match(/\-/) && (t = String(t).replace(/\-/g, "/")), new Date(t);
  10902. throw new Error("Couldn't cast `" + t + "` to a date object.")
  10903. }(t)
  10904. },
  10905. update: function () {
  10906. if (0 !== this.$el.closest("html").length) {
  10907. var t, e = void 0 !== s._data(this.el, "events"),
  10908. i = new Date;
  10909. t = this.finalDate.getTime() - i.getTime(), t = Math.ceil(t / 1e3), t = !this.options.elapse && t < 0 ? 0 : Math.abs(t), this.totalSecsLeft !== t && e && (this.totalSecsLeft = t, this.elapsed = i >= this.finalDate, this.offset = {
  10910. seconds: this.totalSecsLeft % 60,
  10911. minutes: Math.floor(this.totalSecsLeft / 60) % 60,
  10912. hours: Math.floor(this.totalSecsLeft / 60 / 60) % 24,
  10913. days: Math.floor(this.totalSecsLeft / 60 / 60 / 24) % 7,
  10914. daysToWeek: Math.floor(this.totalSecsLeft / 60 / 60 / 24) % 7,
  10915. daysToMonth: Math.floor(this.totalSecsLeft / 60 / 60 / 24 % 30.4368),
  10916. totalDays: Math.floor(this.totalSecsLeft / 60 / 60 / 24),
  10917. weeks: Math.floor(this.totalSecsLeft / 60 / 60 / 24 / 7),
  10918. months: Math.floor(this.totalSecsLeft / 60 / 60 / 24 / 30.4368),
  10919. years: Math.abs(this.finalDate.getFullYear() - i.getFullYear())
  10920. }, this.options.elapse || 0 !== this.totalSecsLeft ? this.dispatchEvent("update") : (this.stop(), this.dispatchEvent("finish")))
  10921. } else this.remove()
  10922. },
  10923. dispatchEvent: function (t) {
  10924. var e = s.Event(t + ".countdown");
  10925. e.finalDate = this.finalDate, e.elapsed = this.elapsed, e.offset = s.extend({}, this.offset), e.strftime = function (g) {
  10926. return function (t) {
  10927. var e, i, n, s, o, r, a = t.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);
  10928. if (a)
  10929. for (var l = 0, c = a.length; l < c; ++l) {
  10930. var u = a[l].match(/%(-|!)?([a-zA-Z]{1})(:[^;]+;)?/),
  10931. h = (o = u[0], r = o.toString().replace(/([.?*+^$[\]\\(){}|-])/g, "\\$1"), new RegExp(r)),
  10932. d = u[1] || "",
  10933. p = u[3] || "",
  10934. f = null;
  10935. u = u[2], m.hasOwnProperty(u) && (f = m[u], f = Number(g[f])), null !== f && ("!" === d && (i = f, s = n = void 0, n = "s", s = "", (e = p) && (e = e.replace(/(:|;|\s)/gi, "").split(/\,/), n = 1 === e.length ? e[0] : (s = e[0], e[1])), f = 1 === Math.abs(i) ? s : n), "" === d && f < 10 && (f = "0" + f.toString()), t = t.replace(h, f.toString()))
  10936. }
  10937. return t.replace(/%%/, "%")
  10938. }
  10939. }(this.offset), this.$el.trigger(e)
  10940. }
  10941. }), s.fn.countdown = function () {
  10942. var n = Array.prototype.slice.call(arguments, 0);
  10943. return this.each(function () {
  10944. var t = s(this).data("countdown-instance");
  10945. if (void 0 !== t) {
  10946. var e = o[t],
  10947. i = n[0];
  10948. r.prototype.hasOwnProperty(i) ? e[i].apply(e, n.slice(1)) : null === String(i).match(/^[$A-Z_][0-9A-Z_$]*$/i) ? (e.setFinalDate.call(e, i), e.start()) : s.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi, i))
  10949. } else new r(this, n[0], n[1])
  10950. })
  10951. }
  10952. }),
  10953. function (t) {
  10954. "function" == typeof define && define.amd ? define(["jquery"], t) : "undefined" != typeof exports ? module.exports = t(require("jquery")) : t(jQuery)
  10955. }(function (c) {
  10956. var s, o = window.Slick || {};
  10957. (s = 0, o = function (t, e) {
  10958. var i, n = this;
  10959. n.defaults = {
  10960. accessibility: !0,
  10961. adaptiveHeight: !1,
  10962. appendArrows: c(t),
  10963. appendDots: c(t),
  10964. arrows: !0,
  10965. asNavFor: null,
  10966. prevArrow: '<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',
  10967. nextArrow: '<button class="slick-next" aria-label="Next" type="button">Next</button>',
  10968. autoplay: !1,
  10969. autoplaySpeed: 3e3,
  10970. centerMode: !1,
  10971. centerPadding: "50px",
  10972. cssEase: "ease",
  10973. customPaging: function (t, e) {
  10974. return c('<button type="button" />').text(e + 1)
  10975. },
  10976. dots: !1,
  10977. dotsClass: "slick-dots",
  10978. draggable: !0,
  10979. easing: "linear",
  10980. edgeFriction: .35,
  10981. fade: !1,
  10982. focusOnSelect: !1,
  10983. focusOnChange: !1,
  10984. infinite: !0,
  10985. initialSlide: 0,
  10986. lazyLoad: "ondemand",
  10987. mobileFirst: !1,
  10988. pauseOnHover: !0,
  10989. pauseOnFocus: !0,
  10990. pauseOnDotsHover: !1,
  10991. respondTo: "window",
  10992. responsive: null,
  10993. rows: 1,
  10994. rtl: !1,
  10995. slide: "",
  10996. slidesPerRow: 1,
  10997. slidesToShow: 1,
  10998. slidesToScroll: 1,
  10999. speed: 500,
  11000. swipe: !0,
  11001. swipeToSlide: !1,
  11002. touchMove: !0,
  11003. touchThreshold: 5,
  11004. useCSS: !0,
  11005. useTransform: !0,
  11006. variableWidth: !1,
  11007. vertical: !1,
  11008. verticalSwiping: !1,
  11009. waitForAnimate: !0,
  11010. zIndex: 1e3
  11011. }, n.initials = {
  11012. animating: !1,
  11013. dragging: !1,
  11014. autoPlayTimer: null,
  11015. currentDirection: 0,
  11016. currentLeft: null,
  11017. currentSlide: 0,
  11018. direction: 1,
  11019. $dots: null,
  11020. listWidth: null,
  11021. listHeight: null,
  11022. loadIndex: 0,
  11023. $nextArrow: null,
  11024. $prevArrow: null,
  11025. scrolling: !1,
  11026. slideCount: null,
  11027. slideWidth: null,
  11028. $slideTrack: null,
  11029. $slides: null,
  11030. sliding: !1,
  11031. slideOffset: 0,
  11032. swipeLeft: null,
  11033. swiping: !1,
  11034. $list: null,
  11035. touchObject: {},
  11036. transformsEnabled: !1,
  11037. unslicked: !1
  11038. }, c.extend(n, n.initials), n.activeBreakpoint = null, n.animType = null, n.animProp = null, n.breakpoints = [], n.breakpointSettings = [], n.cssTransitions = !1, n.focussed = !1, n.interrupted = !1, n.hidden = "hidden", n.paused = !0, n.positionProp = null, n.respondTo = null, n.rowCount = 1, n.shouldClick = !0, n.$slider = c(t), n.$slidesCache = null, n.transformType = null, n.transitionType = null, n.visibilityChange = "visibilitychange", n.windowWidth = 0, n.windowTimer = null, i = c(t).data("slick") || {}, n.options = c.extend({}, n.defaults, e, i), n.currentSlide = n.options.initialSlide, n.originalSettings = n.options, void 0 !== document.mozHidden ? (n.hidden = "mozHidden", n.visibilityChange = "mozvisibilitychange") : void 0 !== document.webkitHidden && (n.hidden = "webkitHidden", n.visibilityChange = "webkitvisibilitychange"), n.autoPlay = c.proxy(n.autoPlay, n), n.autoPlayClear = c.proxy(n.autoPlayClear, n), n.autoPlayIterator = c.proxy(n.autoPlayIterator, n), n.changeSlide = c.proxy(n.changeSlide, n), n.clickHandler = c.proxy(n.clickHandler, n), n.selectHandler = c.proxy(n.selectHandler, n), n.setPosition = c.proxy(n.setPosition, n), n.swipeHandler = c.proxy(n.swipeHandler, n), n.dragHandler = c.proxy(n.dragHandler, n), n.keyHandler = c.proxy(n.keyHandler, n), n.instanceUid = s++, n.htmlExpr = /^(?:\s*(<[\w\W]+>)[^>]*)$/, n.registerBreakpoints(), n.init(!0)
  11039. }).prototype.activateADA = function () {
  11040. this.$slideTrack.find(".slick-active").attr({
  11041. "aria-hidden": "false"
  11042. }).find("a, input, button, select").attr({
  11043. tabindex: "0"
  11044. })
  11045. }, o.prototype.addSlide = o.prototype.slickAdd = function (t, e, i) {
  11046. var n = this;
  11047. if ("boolean" == typeof e) i = e, e = null;
  11048. else if (e < 0 || e >= n.slideCount) return !1;
  11049. n.unload(), "number" == typeof e ? 0 === e && 0 === n.$slides.length ? c(t).appendTo(n.$slideTrack) : i ? c(t).insertBefore(n.$slides.eq(e)) : c(t).insertAfter(n.$slides.eq(e)) : !0 === i ? c(t).prependTo(n.$slideTrack) : c(t).appendTo(n.$slideTrack), n.$slides = n.$slideTrack.children(this.options.slide), n.$slideTrack.children(this.options.slide).detach(), n.$slideTrack.append(n.$slides), n.$slides.each(function (t, e) {
  11050. c(e).attr("data-slick-index", t)
  11051. }), n.$slidesCache = n.$slides, n.reinit()
  11052. }, o.prototype.animateHeight = function () {
  11053. if (1 === this.options.slidesToShow && !0 === this.options.adaptiveHeight && !1 === this.options.vertical) {
  11054. var t = this.$slides.eq(this.currentSlide).outerHeight(!0);
  11055. this.$list.animate({
  11056. height: t
  11057. }, this.options.speed)
  11058. }
  11059. }, o.prototype.animateSlide = function (t, e) {
  11060. var i = {},
  11061. n = this;
  11062. n.animateHeight(), !0 === n.options.rtl && !1 === n.options.vertical && (t = -t), !1 === n.transformsEnabled ? !1 === n.options.vertical ? n.$slideTrack.animate({
  11063. left: t
  11064. }, n.options.speed, n.options.easing, e) : n.$slideTrack.animate({
  11065. top: t
  11066. }, n.options.speed, n.options.easing, e) : !1 === n.cssTransitions ? (!0 === n.options.rtl && (n.currentLeft = -n.currentLeft), c({
  11067. animStart: n.currentLeft
  11068. }).animate({
  11069. animStart: t
  11070. }, {
  11071. duration: n.options.speed,
  11072. easing: n.options.easing,
  11073. step: function (t) {
  11074. t = Math.ceil(t), !1 === n.options.vertical ? i[n.animType] = "translate(" + t + "px, 0px)" : i[n.animType] = "translate(0px," + t + "px)", n.$slideTrack.css(i)
  11075. },
  11076. complete: function () {
  11077. e && e.call()
  11078. }
  11079. })) : (n.applyTransition(), t = Math.ceil(t), !1 === n.options.vertical ? i[n.animType] = "translate3d(" + t + "px, 0px, 0px)" : i[n.animType] = "translate3d(0px," + t + "px, 0px)", n.$slideTrack.css(i), e && setTimeout(function () {
  11080. n.disableTransition(), e.call()
  11081. }, n.options.speed))
  11082. }, o.prototype.getNavTarget = function () {
  11083. var t = this.options.asNavFor;
  11084. return t && null !== t && (t = c(t).not(this.$slider)), t
  11085. }, o.prototype.asNavFor = function (e) {
  11086. var t = this.getNavTarget();
  11087. null !== t && "object" == _typeof(t) && t.each(function () {
  11088. var t = c(this).slick("getSlick");
  11089. t.unslicked || t.slideHandler(e, !0)
  11090. })
  11091. }, o.prototype.applyTransition = function (t) {
  11092. var e = this,
  11093. i = {};
  11094. !1 === e.options.fade ? i[e.transitionType] = e.transformType + " " + e.options.speed + "ms " + e.options.cssEase : i[e.transitionType] = "opacity " + e.options.speed + "ms " + e.options.cssEase, !1 === e.options.fade ? e.$slideTrack.css(i) : e.$slides.eq(t).css(i)
  11095. }, o.prototype.autoPlay = function () {
  11096. this.autoPlayClear(), this.slideCount > this.options.slidesToShow && (this.autoPlayTimer = setInterval(this.autoPlayIterator, this.options.autoplaySpeed))
  11097. }, o.prototype.autoPlayClear = function () {
  11098. this.autoPlayTimer && clearInterval(this.autoPlayTimer)
  11099. }, o.prototype.autoPlayIterator = function () {
  11100. var t = this,
  11101. e = t.currentSlide + t.options.slidesToScroll;
  11102. t.paused || t.interrupted || t.focussed || (!1 === t.options.infinite && (1 === t.direction && t.currentSlide + 1 === t.slideCount - 1 ? t.direction = 0 : 0 === t.direction && (e = t.currentSlide - t.options.slidesToScroll, t.currentSlide - 1 == 0 && (t.direction = 1))), t.slideHandler(e))
  11103. }, o.prototype.buildArrows = function () {
  11104. var t = this;
  11105. !0 === t.options.arrows && (t.$prevArrow = c(t.options.prevArrow).addClass("slick-arrow"), t.$nextArrow = c(t.options.nextArrow).addClass("slick-arrow"), t.slideCount > t.options.slidesToShow ? (t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"), t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"), t.htmlExpr.test(t.options.prevArrow) && t.$prevArrow.prependTo(t.options.appendArrows), t.htmlExpr.test(t.options.nextArrow) && t.$nextArrow.appendTo(t.options.appendArrows), !0 !== t.options.infinite && t.$prevArrow.addClass("slick-disabled").attr("aria-disabled", "true")) : t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({
  11106. "aria-disabled": "true",
  11107. tabindex: "-1"
  11108. }))
  11109. }, o.prototype.buildDots = function () {
  11110. var t, e;
  11111. if (!0 === this.options.dots) {
  11112. for (this.$slider.addClass("slick-dotted"), e = c("<ul />").addClass(this.options.dotsClass), t = 0; t <= this.getDotCount(); t += 1) e.append(c("<li />").append(this.options.customPaging.call(this, this, t)));
  11113. this.$dots = e.appendTo(this.options.appendDots), this.$dots.find("li").first().addClass("slick-active")
  11114. }
  11115. }, o.prototype.buildOut = function () {
  11116. var t = this;
  11117. t.$slides = t.$slider.children(t.options.slide + ":not(.slick-cloned)").addClass("slick-slide"), t.slideCount = t.$slides.length, t.$slides.each(function (t, e) {
  11118. c(e).attr("data-slick-index", t).data("originalStyling", c(e).attr("style") || "")
  11119. }), t.$slider.addClass("slick-slider"), t.$slideTrack = 0 === t.slideCount ? c('<div class="slick-track"/>').appendTo(t.$slider) : t.$slides.wrapAll('<div class="slick-track"/>').parent(), t.$list = t.$slideTrack.wrap('<div class="slick-list"/>').parent(), t.$slideTrack.css("opacity", 0), !0 !== t.options.centerMode && !0 !== t.options.swipeToSlide || (t.options.slidesToScroll = 1), c("img[data-lazy]", t.$slider).not("[src]").addClass("slick-loading"), t.setupInfinite(), t.buildArrows(), t.buildDots(), t.updateDots(), t.setSlideClasses("number" == typeof t.currentSlide ? t.currentSlide : 0), !0 === t.options.draggable && t.$list.addClass("draggable")
  11120. }, o.prototype.buildRows = function () {
  11121. var t, e, i, n, s, o, r, a = this;
  11122. if (n = document.createDocumentFragment(), o = a.$slider.children(), 1 < a.options.rows) {
  11123. for (r = a.options.slidesPerRow * a.options.rows, s = Math.ceil(o.length / r), t = 0; t < s; t++) {
  11124. var l = document.createElement("div");
  11125. for (e = 0; e < a.options.rows; e++) {
  11126. var c = document.createElement("div");
  11127. for (i = 0; i < a.options.slidesPerRow; i++) {
  11128. var u = t * r + (e * a.options.slidesPerRow + i);
  11129. o.get(u) && c.appendChild(o.get(u))
  11130. }
  11131. l.appendChild(c)
  11132. }
  11133. n.appendChild(l)
  11134. }
  11135. a.$slider.empty().append(n), a.$slider.children().children().children().css({
  11136. width: 100 / a.options.slidesPerRow + "%",
  11137. display: "inline-block"
  11138. })
  11139. }
  11140. }, o.prototype.checkResponsive = function (t, e) {
  11141. var i, n, s, o = this,
  11142. r = !1,
  11143. a = o.$slider.width(),
  11144. l = window.innerWidth || c(window).width();
  11145. if ("window" === o.respondTo ? s = l : "slider" === o.respondTo ? s = a : "min" === o.respondTo && (s = Math.min(l, a)), o.options.responsive && o.options.responsive.length && null !== o.options.responsive) {
  11146. for (i in n = null, o.breakpoints) o.breakpoints.hasOwnProperty(i) && (!1 === o.originalSettings.mobileFirst ? s < o.breakpoints[i] && (n = o.breakpoints[i]) : s > o.breakpoints[i] && (n = o.breakpoints[i]));
  11147. null !== n ? null !== o.activeBreakpoint ? (n !== o.activeBreakpoint || e) && (o.activeBreakpoint = n, "unslick" === o.breakpointSettings[n] ? o.unslick(n) : (o.options = c.extend({}, o.originalSettings, o.breakpointSettings[n]), !0 === t && (o.currentSlide = o.options.initialSlide), o.refresh(t)), r = n) : (o.activeBreakpoint = n, "unslick" === o.breakpointSettings[n] ? o.unslick(n) : (o.options = c.extend({}, o.originalSettings, o.breakpointSettings[n]), !0 === t && (o.currentSlide = o.options.initialSlide), o.refresh(t)), r = n) : null !== o.activeBreakpoint && (o.activeBreakpoint = null, o.options = o.originalSettings, !0 === t && (o.currentSlide = o.options.initialSlide), o.refresh(t), r = n), t || !1 === r || o.$slider.trigger("breakpoint", [o, r])
  11148. }
  11149. }, o.prototype.changeSlide = function (t, e) {
  11150. var i, n, s = this,
  11151. o = c(t.currentTarget);
  11152. switch (o.is("a") && t.preventDefault(), o.is("li") || (o = o.closest("li")), i = s.slideCount % s.options.slidesToScroll != 0 ? 0 : (s.slideCount - s.currentSlide) % s.options.slidesToScroll, t.data.message) {
  11153. case "previous":
  11154. n = 0 == i ? s.options.slidesToScroll : s.options.slidesToShow - i, s.slideCount > s.options.slidesToShow && s.slideHandler(s.currentSlide - n, !1, e);
  11155. break;
  11156. case "next":
  11157. n = 0 == i ? s.options.slidesToScroll : i, s.slideCount > s.options.slidesToShow && s.slideHandler(s.currentSlide + n, !1, e);
  11158. break;
  11159. case "index":
  11160. var r = 0 === t.data.index ? 0 : t.data.index || o.index() * s.options.slidesToScroll;
  11161. s.slideHandler(s.checkNavigable(r), !1, e), o.children().trigger("focus");
  11162. break;
  11163. default:
  11164. return
  11165. }
  11166. }, o.prototype.checkNavigable = function (t) {
  11167. var e, i;
  11168. if (i = 0, t > (e = this.getNavigableIndexes())[e.length - 1]) t = e[e.length - 1];
  11169. else
  11170. for (var n in e) {
  11171. if (t < e[n]) {
  11172. t = i;
  11173. break
  11174. }
  11175. i = e[n]
  11176. }
  11177. return t
  11178. }, o.prototype.cleanUpEvents = function () {
  11179. var t = this;
  11180. t.options.dots && null !== t.$dots && (c("li", t.$dots).off("click.slick", t.changeSlide).off("mouseenter.slick", c.proxy(t.interrupt, t, !0)).off("mouseleave.slick", c.proxy(t.interrupt, t, !1)), !0 === t.options.accessibility && t.$dots.off("keydown.slick", t.keyHandler)), t.$slider.off("focus.slick blur.slick"), !0 === t.options.arrows && t.slideCount > t.options.slidesToShow && (t.$prevArrow && t.$prevArrow.off("click.slick", t.changeSlide), t.$nextArrow && t.$nextArrow.off("click.slick", t.changeSlide), !0 === t.options.accessibility && (t.$prevArrow && t.$prevArrow.off("keydown.slick", t.keyHandler), t.$nextArrow && t.$nextArrow.off("keydown.slick", t.keyHandler))), t.$list.off("touchstart.slick mousedown.slick", t.swipeHandler), t.$list.off("touchmove.slick mousemove.slick", t.swipeHandler), t.$list.off("touchend.slick mouseup.slick", t.swipeHandler), t.$list.off("touchcancel.slick mouseleave.slick", t.swipeHandler), t.$list.off("click.slick", t.clickHandler), c(document).off(t.visibilityChange, t.visibility), t.cleanUpSlideEvents(), !0 === t.options.accessibility && t.$list.off("keydown.slick", t.keyHandler), !0 === t.options.focusOnSelect && c(t.$slideTrack).children().off("click.slick", t.selectHandler), c(window).off("orientationchange.slick.slick-" + t.instanceUid, t.orientationChange), c(window).off("resize.slick.slick-" + t.instanceUid, t.resize), c("[draggable!=true]", t.$slideTrack).off("dragstart", t.preventDefault), c(window).off("load.slick.slick-" + t.instanceUid, t.setPosition)
  11181. }, o.prototype.cleanUpSlideEvents = function () {
  11182. this.$list.off("mouseenter.slick", c.proxy(this.interrupt, this, !0)), this.$list.off("mouseleave.slick", c.proxy(this.interrupt, this, !1))
  11183. }, o.prototype.cleanUpRows = function () {
  11184. var t;
  11185. 1 < this.options.rows && ((t = this.$slides.children().children()).removeAttr("style"), this.$slider.empty().append(t))
  11186. }, o.prototype.clickHandler = function (t) {
  11187. !1 === this.shouldClick && (t.stopImmediatePropagation(), t.stopPropagation(), t.preventDefault())
  11188. }, o.prototype.destroy = function (t) {
  11189. var e = this;
  11190. e.autoPlayClear(), e.touchObject = {}, e.cleanUpEvents(), c(".slick-cloned", e.$slider).detach(), e.$dots && e.$dots.remove(), e.$prevArrow && e.$prevArrow.length && (e.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display", ""), e.htmlExpr.test(e.options.prevArrow) && e.$prevArrow.remove()), e.$nextArrow && e.$nextArrow.length && (e.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display", ""), e.htmlExpr.test(e.options.nextArrow) && e.$nextArrow.remove()), e.$slides && (e.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function () {
  11191. c(this).attr("style", c(this).data("originalStyling"))
  11192. }), e.$slideTrack.children(this.options.slide).detach(), e.$slideTrack.detach(), e.$list.detach(), e.$slider.append(e.$slides)), e.cleanUpRows(), e.$slider.removeClass("slick-slider"), e.$slider.removeClass("slick-initialized"), e.$slider.removeClass("slick-dotted"), e.unslicked = !0, t || e.$slider.trigger("destroy", [e])
  11193. }, o.prototype.disableTransition = function (t) {
  11194. var e = {};
  11195. e[this.transitionType] = "", !1 === this.options.fade ? this.$slideTrack.css(e) : this.$slides.eq(t).css(e)
  11196. }, o.prototype.fadeSlide = function (t, e) {
  11197. var i = this;
  11198. !1 === i.cssTransitions ? (i.$slides.eq(t).css({
  11199. zIndex: i.options.zIndex
  11200. }), i.$slides.eq(t).animate({
  11201. opacity: 1
  11202. }, i.options.speed, i.options.easing, e)) : (i.applyTransition(t), i.$slides.eq(t).css({
  11203. opacity: 1,
  11204. zIndex: i.options.zIndex
  11205. }), e && setTimeout(function () {
  11206. i.disableTransition(t), e.call()
  11207. }, i.options.speed))
  11208. }, o.prototype.fadeSlideOut = function (t) {
  11209. !1 === this.cssTransitions ? this.$slides.eq(t).animate({
  11210. opacity: 0,
  11211. zIndex: this.options.zIndex - 2
  11212. }, this.options.speed, this.options.easing) : (this.applyTransition(t), this.$slides.eq(t).css({
  11213. opacity: 0,
  11214. zIndex: this.options.zIndex - 2
  11215. }))
  11216. }, o.prototype.filterSlides = o.prototype.slickFilter = function (t) {
  11217. null !== t && (this.$slidesCache = this.$slides, this.unload(), this.$slideTrack.children(this.options.slide).detach(), this.$slidesCache.filter(t).appendTo(this.$slideTrack), this.reinit())
  11218. }, o.prototype.focusHandler = function () {
  11219. var i = this;
  11220. i.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick", "*", function (t) {
  11221. t.stopImmediatePropagation();
  11222. var e = c(this);
  11223. setTimeout(function () {
  11224. i.options.pauseOnFocus && (i.focussed = e.is(":focus"), i.autoPlay())
  11225. }, 0)
  11226. })
  11227. }, o.prototype.getCurrent = o.prototype.slickCurrentSlide = function () {
  11228. return this.currentSlide
  11229. }, o.prototype.getDotCount = function () {
  11230. var t = this,
  11231. e = 0,
  11232. i = 0,
  11233. n = 0;
  11234. if (!0 === t.options.infinite)
  11235. if (t.slideCount <= t.options.slidesToShow) ++n;
  11236. else
  11237. for (; e < t.slideCount;) ++n, e = i + t.options.slidesToScroll, i += t.options.slidesToScroll <= t.options.slidesToShow ? t.options.slidesToScroll : t.options.slidesToShow;
  11238. else if (!0 === t.options.centerMode) n = t.slideCount;
  11239. else if (t.options.asNavFor)
  11240. for (; e < t.slideCount;) ++n, e = i + t.options.slidesToScroll, i += t.options.slidesToScroll <= t.options.slidesToShow ? t.options.slidesToScroll : t.options.slidesToShow;
  11241. else n = 1 + Math.ceil((t.slideCount - t.options.slidesToShow) / t.options.slidesToScroll);
  11242. return n - 1
  11243. }, o.prototype.getLeft = function (t) {
  11244. var e, i, n, s, o = this,
  11245. r = 0;
  11246. return o.slideOffset = 0, i = o.$slides.first().outerHeight(!0), !0 === o.options.infinite ? (o.slideCount > o.options.slidesToShow && (o.slideOffset = o.slideWidth * o.options.slidesToShow * -1, s = -1, !0 === o.options.vertical && !0 === o.options.centerMode && (2 === o.options.slidesToShow ? s = -1.5 : 1 === o.options.slidesToShow && (s = -2)), r = i * o.options.slidesToShow * s), o.slideCount % o.options.slidesToScroll != 0 && t + o.options.slidesToScroll > o.slideCount && o.slideCount > o.options.slidesToShow && (r = t > o.slideCount ? (o.slideOffset = (o.options.slidesToShow - (t - o.slideCount)) * o.slideWidth * -1, (o.options.slidesToShow - (t - o.slideCount)) * i * -1) : (o.slideOffset = o.slideCount % o.options.slidesToScroll * o.slideWidth * -1, o.slideCount % o.options.slidesToScroll * i * -1))) : t + o.options.slidesToShow > o.slideCount && (o.slideOffset = (t + o.options.slidesToShow - o.slideCount) * o.slideWidth, r = (t + o.options.slidesToShow - o.slideCount) * i), o.slideCount <= o.options.slidesToShow && (r = o.slideOffset = 0), !0 === o.options.centerMode && o.slideCount <= o.options.slidesToShow ? o.slideOffset = o.slideWidth * Math.floor(o.options.slidesToShow) / 2 - o.slideWidth * o.slideCount / 2 : !0 === o.options.centerMode && !0 === o.options.infinite ? o.slideOffset += o.slideWidth * Math.floor(o.options.slidesToShow / 2) - o.slideWidth : !0 === o.options.centerMode && (o.slideOffset = 0, o.slideOffset += o.slideWidth * Math.floor(o.options.slidesToShow / 2)), e = !1 === o.options.vertical ? t * o.slideWidth * -1 + o.slideOffset : t * i * -1 + r, !0 === o.options.variableWidth && (n = o.slideCount <= o.options.slidesToShow || !1 === o.options.infinite ? o.$slideTrack.children(".slick-slide").eq(t) : o.$slideTrack.children(".slick-slide").eq(t + o.options.slidesToShow), e = !0 === o.options.rtl ? n[0] ? -1 * (o.$slideTrack.width() - n[0].offsetLeft - n.width()) : 0 : n[0] ? -1 * n[0].offsetLeft : 0, !0 === o.options.centerMode && (n = o.slideCount <= o.options.slidesToShow || !1 === o.options.infinite ? o.$slideTrack.children(".slick-slide").eq(t) : o.$slideTrack.children(".slick-slide").eq(t + o.options.slidesToShow + 1), e = !0 === o.options.rtl ? n[0] ? -1 * (o.$slideTrack.width() - n[0].offsetLeft - n.width()) : 0 : n[0] ? -1 * n[0].offsetLeft : 0, e += (o.$list.width() - n.outerWidth()) / 2)), e
  11247. }, o.prototype.getOption = o.prototype.slickGetOption = function (t) {
  11248. return this.options[t]
  11249. }, o.prototype.getNavigableIndexes = function () {
  11250. var t, e = this,
  11251. i = 0,
  11252. n = 0,
  11253. s = [];
  11254. for (t = !1 === e.options.infinite ? e.slideCount : (i = -1 * e.options.slidesToScroll, n = -1 * e.options.slidesToScroll, 2 * e.slideCount); i < t;) s.push(i), i = n + e.options.slidesToScroll, n += e.options.slidesToScroll <= e.options.slidesToShow ? e.options.slidesToScroll : e.options.slidesToShow;
  11255. return s
  11256. }, o.prototype.getSlick = function () {
  11257. return this
  11258. }, o.prototype.getSlideCount = function () {
  11259. var i, n, s = this;
  11260. return n = !0 === s.options.centerMode ? s.slideWidth * Math.floor(s.options.slidesToShow / 2) : 0, !0 === s.options.swipeToSlide ? (s.$slideTrack.find(".slick-slide").each(function (t, e) {
  11261. if (e.offsetLeft - n + c(e).outerWidth() / 2 > -1 * s.swipeLeft) return i = e, !1
  11262. }), Math.abs(c(i).attr("data-slick-index") - s.currentSlide) || 1) : s.options.slidesToScroll
  11263. }, o.prototype.goTo = o.prototype.slickGoTo = function (t, e) {
  11264. this.changeSlide({
  11265. data: {
  11266. message: "index",
  11267. index: parseInt(t)
  11268. }
  11269. }, e)
  11270. }, o.prototype.init = function (t) {
  11271. var e = this;
  11272. c(e.$slider).hasClass("slick-initialized") || (c(e.$slider).addClass("slick-initialized"), e.buildRows(), e.buildOut(), e.setProps(), e.startLoad(), e.loadSlider(), e.initializeEvents(), e.updateArrows(), e.updateDots(), e.checkResponsive(!0), e.focusHandler()), t && e.$slider.trigger("init", [e]), !0 === e.options.accessibility && e.initADA(), e.options.autoplay && (e.paused = !1, e.autoPlay())
  11273. }, o.prototype.initADA = function () {
  11274. var i = this,
  11275. n = Math.ceil(i.slideCount / i.options.slidesToShow),
  11276. s = i.getNavigableIndexes().filter(function (t) {
  11277. return 0 <= t && t < i.slideCount
  11278. });
  11279. i.$slides.add(i.$slideTrack.find(".slick-cloned")).attr({
  11280. "aria-hidden": "true",
  11281. tabindex: "-1"
  11282. }).find("a, input, button, select").attr({
  11283. tabindex: "-1"
  11284. }), null !== i.$dots && (i.$slides.not(i.$slideTrack.find(".slick-cloned")).each(function (t) {
  11285. var e = s.indexOf(t);
  11286. c(this).attr({
  11287. role: "tabpanel",
  11288. id: "slick-slide" + i.instanceUid + t,
  11289. tabindex: -1
  11290. }), -1 !== e && c(this).attr({
  11291. "aria-describedby": "slick-slide-control" + i.instanceUid + e
  11292. })
  11293. }), i.$dots.attr("role", "tablist").find("li").each(function (t) {
  11294. var e = s[t];
  11295. c(this).attr({
  11296. role: "presentation"
  11297. }), c(this).find("button").first().attr({
  11298. role: "tab",
  11299. id: "slick-slide-control" + i.instanceUid + t,
  11300. "aria-controls": "slick-slide" + i.instanceUid + e,
  11301. "aria-label": t + 1 + " of " + n,
  11302. "aria-selected": null,
  11303. tabindex: "-1"
  11304. })
  11305. }).eq(i.currentSlide).find("button").attr({
  11306. "aria-selected": "true",
  11307. tabindex: "0"
  11308. }).end());
  11309. for (var t = i.currentSlide, e = t + i.options.slidesToShow; t < e; t++) i.$slides.eq(t).attr("tabindex", 0);
  11310. i.activateADA()
  11311. }, o.prototype.initArrowEvents = function () {
  11312. var t = this;
  11313. !0 === t.options.arrows && t.slideCount > t.options.slidesToShow && (t.$prevArrow.off("click.slick").on("click.slick", {
  11314. message: "previous"
  11315. }, t.changeSlide), t.$nextArrow.off("click.slick").on("click.slick", {
  11316. message: "next"
  11317. }, t.changeSlide), !0 === t.options.accessibility && (t.$prevArrow.on("keydown.slick", t.keyHandler), t.$nextArrow.on("keydown.slick", t.keyHandler)))
  11318. }, o.prototype.initDotEvents = function () {
  11319. var t = this;
  11320. !0 === t.options.dots && (c("li", t.$dots).on("click.slick", {
  11321. message: "index"
  11322. }, t.changeSlide), !0 === t.options.accessibility && t.$dots.on("keydown.slick", t.keyHandler)), !0 === t.options.dots && !0 === t.options.pauseOnDotsHover && c("li", t.$dots).on("mouseenter.slick", c.proxy(t.interrupt, t, !0)).on("mouseleave.slick", c.proxy(t.interrupt, t, !1))
  11323. }, o.prototype.initSlideEvents = function () {
  11324. this.options.pauseOnHover && (this.$list.on("mouseenter.slick", c.proxy(this.interrupt, this, !0)), this.$list.on("mouseleave.slick", c.proxy(this.interrupt, this, !1)))
  11325. }, o.prototype.initializeEvents = function () {
  11326. var t = this;
  11327. t.initArrowEvents(), t.initDotEvents(), t.initSlideEvents(), t.$list.on("touchstart.slick mousedown.slick", {
  11328. action: "start"
  11329. }, t.swipeHandler), t.$list.on("touchmove.slick mousemove.slick", {
  11330. action: "move"
  11331. }, t.swipeHandler), t.$list.on("touchend.slick mouseup.slick", {
  11332. action: "end"
  11333. }, t.swipeHandler), t.$list.on("touchcancel.slick mouseleave.slick", {
  11334. action: "end"
  11335. }, t.swipeHandler), t.$list.on("click.slick", t.clickHandler), c(document).on(t.visibilityChange, c.proxy(t.visibility, t)), !0 === t.options.accessibility && t.$list.on("keydown.slick", t.keyHandler), !0 === t.options.focusOnSelect && c(t.$slideTrack).children().on("click.slick", t.selectHandler), c(window).on("orientationchange.slick.slick-" + t.instanceUid, c.proxy(t.orientationChange, t)), c(window).on("resize.slick.slick-" + t.instanceUid, c.proxy(t.resize, t)), c("[draggable!=true]", t.$slideTrack).on("dragstart", t.preventDefault), c(window).on("load.slick.slick-" + t.instanceUid, t.setPosition), c(t.setPosition)
  11336. }, o.prototype.initUI = function () {
  11337. !0 === this.options.arrows && this.slideCount > this.options.slidesToShow && (this.$prevArrow.show(), this.$nextArrow.show()), !0 === this.options.dots && this.slideCount > this.options.slidesToShow && this.$dots.show()
  11338. }, o.prototype.keyHandler = function (t) {
  11339. t.target.tagName.match("TEXTAREA|INPUT|SELECT") || (37 === t.keyCode && !0 === this.options.accessibility ? this.changeSlide({
  11340. data: {
  11341. message: !0 === this.options.rtl ? "next" : "previous"
  11342. }
  11343. }) : 39 === t.keyCode && !0 === this.options.accessibility && this.changeSlide({
  11344. data: {
  11345. message: !0 === this.options.rtl ? "previous" : "next"
  11346. }
  11347. }))
  11348. }, o.prototype.lazyLoad = function () {
  11349. function t(t) {
  11350. c("img[data-lazy]", t).each(function () {
  11351. var t = c(this),
  11352. e = c(this).attr("data-lazy"),
  11353. i = c(this).attr("data-srcset"),
  11354. n = c(this).attr("data-sizes") || o.$slider.attr("data-sizes"),
  11355. s = document.createElement("img");
  11356. s.onload = function () {
  11357. t.animate({
  11358. opacity: 0
  11359. }, 100, function () {
  11360. i && (t.attr("srcset", i), n && t.attr("sizes", n)), t.attr("src", e).animate({
  11361. opacity: 1
  11362. }, 200, function () {
  11363. t.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")
  11364. }), o.$slider.trigger("lazyLoaded", [o, t, e])
  11365. })
  11366. }, s.onerror = function () {
  11367. t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"), o.$slider.trigger("lazyLoadError", [o, t, e])
  11368. }, s.src = e
  11369. })
  11370. }
  11371. var e, i, n, o = this;
  11372. if (!0 === o.options.centerMode ? n = !0 === o.options.infinite ? (i = o.currentSlide + (o.options.slidesToShow / 2 + 1)) + o.options.slidesToShow + 2 : (i = Math.max(0, o.currentSlide - (o.options.slidesToShow / 2 + 1)), o.options.slidesToShow / 2 + 1 + 2 + o.currentSlide) : (i = o.options.infinite ? o.options.slidesToShow + o.currentSlide : o.currentSlide, n = Math.ceil(i + o.options.slidesToShow), !0 === o.options.fade && (0 < i && i--, n <= o.slideCount && n++)), e = o.$slider.find(".slick-slide").slice(i, n), "anticipated" === o.options.lazyLoad)
  11373. for (var s = i - 1, r = n, a = o.$slider.find(".slick-slide"), l = 0; l < o.options.slidesToScroll; l++) s < 0 && (s = o.slideCount - 1), e = (e = e.add(a.eq(s))).add(a.eq(r)), s--, r++;
  11374. t(e), o.slideCount <= o.options.slidesToShow ? t(o.$slider.find(".slick-slide")) : o.currentSlide >= o.slideCount - o.options.slidesToShow ? t(o.$slider.find(".slick-cloned").slice(0, o.options.slidesToShow)) : 0 === o.currentSlide && t(o.$slider.find(".slick-cloned").slice(-1 * o.options.slidesToShow))
  11375. }, o.prototype.loadSlider = function () {
  11376. this.setPosition(), this.$slideTrack.css({
  11377. opacity: 1
  11378. }), this.$slider.removeClass("slick-loading"), this.initUI(), "progressive" === this.options.lazyLoad && this.progressiveLazyLoad()
  11379. }, o.prototype.next = o.prototype.slickNext = function () {
  11380. this.changeSlide({
  11381. data: {
  11382. message: "next"
  11383. }
  11384. })
  11385. }, o.prototype.orientationChange = function () {
  11386. this.checkResponsive(), this.setPosition()
  11387. }, o.prototype.pause = o.prototype.slickPause = function () {
  11388. this.autoPlayClear(), this.paused = !0
  11389. }, o.prototype.play = o.prototype.slickPlay = function () {
  11390. this.autoPlay(), this.options.autoplay = !0, this.paused = !1, this.focussed = !1, this.interrupted = !1
  11391. }, o.prototype.postSlide = function (t) {
  11392. var e = this;
  11393. e.unslicked || (e.$slider.trigger("afterChange", [e, t]), e.animating = !1, e.slideCount > e.options.slidesToShow && e.setPosition(), e.swipeLeft = null, e.options.autoplay && e.autoPlay(), !0 === e.options.accessibility && (e.initADA(), e.options.focusOnChange && c(e.$slides.get(e.currentSlide)).attr("tabindex", 0).focus()))
  11394. }, o.prototype.prev = o.prototype.slickPrev = function () {
  11395. this.changeSlide({
  11396. data: {
  11397. message: "previous"
  11398. }
  11399. })
  11400. }, o.prototype.preventDefault = function (t) {
  11401. t.preventDefault()
  11402. }, o.prototype.progressiveLazyLoad = function (t) {
  11403. t = t || 1;
  11404. var e, i, n, s, o, r = this,
  11405. a = c("img[data-lazy]", r.$slider);
  11406. a.length ? (e = a.first(), i = e.attr("data-lazy"), n = e.attr("data-srcset"), s = e.attr("data-sizes") || r.$slider.attr("data-sizes"), (o = document.createElement("img")).onload = function () {
  11407. n && (e.attr("srcset", n), s && e.attr("sizes", s)), e.attr("src", i).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"), !0 === r.options.adaptiveHeight && r.setPosition(), r.$slider.trigger("lazyLoaded", [r, e, i]), r.progressiveLazyLoad()
  11408. }, o.onerror = function () {
  11409. t < 3 ? setTimeout(function () {
  11410. r.progressiveLazyLoad(t + 1)
  11411. }, 500) : (e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"), r.$slider.trigger("lazyLoadError", [r, e, i]), r.progressiveLazyLoad())
  11412. }, o.src = i) : r.$slider.trigger("allImagesLoaded", [r])
  11413. }, o.prototype.refresh = function (t) {
  11414. var e, i, n = this;
  11415. i = n.slideCount - n.options.slidesToShow, !n.options.infinite && n.currentSlide > i && (n.currentSlide = i), n.slideCount <= n.options.slidesToShow && (n.currentSlide = 0), e = n.currentSlide, n.destroy(!0), c.extend(n, n.initials, {
  11416. currentSlide: e
  11417. }), n.init(), t || n.changeSlide({
  11418. data: {
  11419. message: "index",
  11420. index: e
  11421. }
  11422. }, !1)
  11423. }, o.prototype.registerBreakpoints = function () {
  11424. var t, e, i, n = this,
  11425. s = n.options.responsive || null;
  11426. if ("array" === c.type(s) && s.length) {
  11427. for (t in n.respondTo = n.options.respondTo || "window", s)
  11428. if (i = n.breakpoints.length - 1, s.hasOwnProperty(t)) {
  11429. for (e = s[t].breakpoint; 0 <= i;) n.breakpoints[i] && n.breakpoints[i] === e && n.breakpoints.splice(i, 1), i--;
  11430. n.breakpoints.push(e), n.breakpointSettings[e] = s[t].settings
  11431. } n.breakpoints.sort(function (t, e) {
  11432. return n.options.mobileFirst ? t - e : e - t
  11433. })
  11434. }
  11435. }, o.prototype.reinit = function () {
  11436. var t = this;
  11437. t.$slides = t.$slideTrack.children(t.options.slide).addClass("slick-slide"), t.slideCount = t.$slides.length, t.currentSlide >= t.slideCount && 0 !== t.currentSlide && (t.currentSlide = t.currentSlide - t.options.slidesToScroll), t.slideCount <= t.options.slidesToShow && (t.currentSlide = 0), t.registerBreakpoints(), t.setProps(), t.setupInfinite(), t.buildArrows(), t.updateArrows(), t.initArrowEvents(), t.buildDots(), t.updateDots(), t.initDotEvents(), t.cleanUpSlideEvents(), t.initSlideEvents(), t.checkResponsive(!1, !0), !0 === t.options.focusOnSelect && c(t.$slideTrack).children().on("click.slick", t.selectHandler), t.setSlideClasses("number" == typeof t.currentSlide ? t.currentSlide : 0), t.setPosition(), t.focusHandler(), t.paused = !t.options.autoplay, t.autoPlay(), t.$slider.trigger("reInit", [t])
  11438. }, o.prototype.resize = function () {
  11439. var t = this;
  11440. c(window).width() !== t.windowWidth && (clearTimeout(t.windowDelay), t.windowDelay = window.setTimeout(function () {
  11441. t.windowWidth = c(window).width(), t.checkResponsive(), t.unslicked || t.setPosition()
  11442. }, 50))
  11443. }, o.prototype.removeSlide = o.prototype.slickRemove = function (t, e, i) {
  11444. var n = this;
  11445. if (t = "boolean" == typeof t ? !0 === (e = t) ? 0 : n.slideCount - 1 : !0 === e ? --t : t, n.slideCount < 1 || t < 0 || t > n.slideCount - 1) return !1;
  11446. n.unload(), !0 === i ? n.$slideTrack.children().remove() : n.$slideTrack.children(this.options.slide).eq(t).remove(), n.$slides = n.$slideTrack.children(this.options.slide), n.$slideTrack.children(this.options.slide).detach(), n.$slideTrack.append(n.$slides), n.$slidesCache = n.$slides, n.reinit()
  11447. }, o.prototype.setCSS = function (t) {
  11448. var e, i, n = this,
  11449. s = {};
  11450. !0 === n.options.rtl && (t = -t), e = "left" == n.positionProp ? Math.ceil(t) + "px" : "0px", i = "top" == n.positionProp ? Math.ceil(t) + "px" : "0px", s[n.positionProp] = t, !1 === n.transformsEnabled || (!(s = {}) === n.cssTransitions ? s[n.animType] = "translate(" + e + ", " + i + ")" : s[n.animType] = "translate3d(" + e + ", " + i + ", 0px)"), n.$slideTrack.css(s)
  11451. }, o.prototype.setDimensions = function () {
  11452. var t = this;
  11453. !1 === t.options.vertical ? !0 === t.options.centerMode && t.$list.css({
  11454. padding: "0px " + t.options.centerPadding
  11455. }) : (t.$list.height(t.$slides.first().outerHeight(!0) * t.options.slidesToShow), !0 === t.options.centerMode && t.$list.css({
  11456. padding: t.options.centerPadding + " 0px"
  11457. })), t.listWidth = t.$list.width(), t.listHeight = t.$list.height(), !1 === t.options.vertical && !1 === t.options.variableWidth ? (t.slideWidth = Math.ceil(t.listWidth / t.options.slidesToShow), t.$slideTrack.width(Math.ceil(t.slideWidth * t.$slideTrack.children(".slick-slide").length))) : !0 === t.options.variableWidth ? t.$slideTrack.width(5e3 * t.slideCount) : (t.slideWidth = Math.ceil(t.listWidth), t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0) * t.$slideTrack.children(".slick-slide").length)));
  11458. var e = t.$slides.first().outerWidth(!0) - t.$slides.first().width();
  11459. !1 === t.options.variableWidth && t.$slideTrack.children(".slick-slide").width(t.slideWidth - e)
  11460. }, o.prototype.setFade = function () {
  11461. var i, n = this;
  11462. n.$slides.each(function (t, e) {
  11463. i = n.slideWidth * t * -1, !0 === n.options.rtl ? c(e).css({
  11464. position: "relative",
  11465. right: i,
  11466. top: 0,
  11467. zIndex: n.options.zIndex - 2,
  11468. opacity: 0
  11469. }) : c(e).css({
  11470. position: "relative",
  11471. left: i,
  11472. top: 0,
  11473. zIndex: n.options.zIndex - 2,
  11474. opacity: 0
  11475. })
  11476. }), n.$slides.eq(n.currentSlide).css({
  11477. zIndex: n.options.zIndex - 1,
  11478. opacity: 1
  11479. })
  11480. }, o.prototype.setHeight = function () {
  11481. if (1 === this.options.slidesToShow && !0 === this.options.adaptiveHeight && !1 === this.options.vertical) {
  11482. var t = this.$slides.eq(this.currentSlide).outerHeight(!0);
  11483. this.$list.css("height", t)
  11484. }
  11485. }, o.prototype.setOption = o.prototype.slickSetOption = function () {
  11486. var t, e, i, n, s, o = this,
  11487. r = !1;
  11488. if ("object" === c.type(arguments[0]) ? (i = arguments[0], r = arguments[1], s = "multiple") : "string" === c.type(arguments[0]) && (i = arguments[0], n = arguments[1], r = arguments[2], "responsive" === arguments[0] && "array" === c.type(arguments[1]) ? s = "responsive" : void 0 !== arguments[1] && (s = "single")), "single" === s) o.options[i] = n;
  11489. else if ("multiple" === s) c.each(i, function (t, e) {
  11490. o.options[t] = e
  11491. });
  11492. else if ("responsive" === s)
  11493. for (e in n)
  11494. if ("array" !== c.type(o.options.responsive)) o.options.responsive = [n[e]];
  11495. else {
  11496. for (t = o.options.responsive.length - 1; 0 <= t;) o.options.responsive[t].breakpoint === n[e].breakpoint && o.options.responsive.splice(t, 1), t--;
  11497. o.options.responsive.push(n[e])
  11498. } r && (o.unload(), o.reinit())
  11499. }, o.prototype.setPosition = function () {
  11500. this.setDimensions(), this.setHeight(), !1 === this.options.fade ? this.setCSS(this.getLeft(this.currentSlide)) : this.setFade(), this.$slider.trigger("setPosition", [this])
  11501. }, o.prototype.setProps = function () {
  11502. var t = this,
  11503. e = document.body.style;
  11504. t.positionProp = !0 === t.options.vertical ? "top" : "left", "top" === t.positionProp ? t.$slider.addClass("slick-vertical") : t.$slider.removeClass("slick-vertical"), void 0 === e.WebkitTransition && void 0 === e.MozTransition && void 0 === e.msTransition || !0 === t.options.useCSS && (t.cssTransitions = !0), t.options.fade && ("number" == typeof t.options.zIndex ? t.options.zIndex < 3 && (t.options.zIndex = 3) : t.options.zIndex = t.defaults.zIndex), void 0 !== e.OTransform && (t.animType = "OTransform", t.transformType = "-o-transform", t.transitionType = "OTransition", void 0 === e.perspectiveProperty && void 0 === e.webkitPerspective && (t.animType = !1)), void 0 !== e.MozTransform && (t.animType = "MozTransform", t.transformType = "-moz-transform", t.transitionType = "MozTransition", void 0 === e.perspectiveProperty && void 0 === e.MozPerspective && (t.animType = !1)), void 0 !== e.webkitTransform && (t.animType = "webkitTransform", t.transformType = "-webkit-transform", t.transitionType = "webkitTransition", void 0 === e.perspectiveProperty && void 0 === e.webkitPerspective && (t.animType = !1)), void 0 !== e.msTransform && (t.animType = "msTransform", t.transformType = "-ms-transform", t.transitionType = "msTransition", void 0 === e.msTransform && (t.animType = !1)), void 0 !== e.transform && !1 !== t.animType && (t.animType = "transform", t.transformType = "transform", t.transitionType = "transition"), t.transformsEnabled = t.options.useTransform && null !== t.animType && !1 !== t.animType
  11505. }, o.prototype.setSlideClasses = function (t) {
  11506. var e, i, n, s, o = this;
  11507. if (i = o.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden", "true"), o.$slides.eq(t).addClass("slick-current"), !0 === o.options.centerMode) {
  11508. var r = o.options.slidesToShow % 2 == 0 ? 1 : 0;
  11509. e = Math.floor(o.options.slidesToShow / 2), !0 === o.options.infinite && (e <= t && t <= o.slideCount - 1 - e ? o.$slides.slice(t - e + r, t + e + 1).addClass("slick-active").attr("aria-hidden", "false") : (n = o.options.slidesToShow + t, i.slice(n - e + 1 + r, n + e + 2).addClass("slick-active").attr("aria-hidden", "false")), 0 === t ? i.eq(i.length - 1 - o.options.slidesToShow).addClass("slick-center") : t === o.slideCount - 1 && i.eq(o.options.slidesToShow).addClass("slick-center")), o.$slides.eq(t).addClass("slick-center")
  11510. } else 0 <= t && t <= o.slideCount - o.options.slidesToShow ? o.$slides.slice(t, t + o.options.slidesToShow).addClass("slick-active").attr("aria-hidden", "false") : i.length <= o.options.slidesToShow ? i.addClass("slick-active").attr("aria-hidden", "false") : (s = o.slideCount % o.options.slidesToShow, n = !0 === o.options.infinite ? o.options.slidesToShow + t : t, o.options.slidesToShow == o.options.slidesToScroll && o.slideCount - t < o.options.slidesToShow ? i.slice(n - (o.options.slidesToShow - s), n + s).addClass("slick-active").attr("aria-hidden", "false") : i.slice(n, n + o.options.slidesToShow).addClass("slick-active").attr("aria-hidden", "false"));
  11511. "ondemand" !== o.options.lazyLoad && "anticipated" !== o.options.lazyLoad || o.lazyLoad()
  11512. }, o.prototype.setupInfinite = function () {
  11513. var t, e, i, n = this;
  11514. if (!0 === n.options.fade && (n.options.centerMode = !1), !0 === n.options.infinite && !1 === n.options.fade && (e = null, n.slideCount > n.options.slidesToShow)) {
  11515. for (i = !0 === n.options.centerMode ? n.options.slidesToShow + 1 : n.options.slidesToShow, t = n.slideCount; t > n.slideCount - i; t -= 1) e = t - 1, c(n.$slides[e]).clone(!0).attr("id", "").attr("data-slick-index", e - n.slideCount).prependTo(n.$slideTrack).addClass("slick-cloned");
  11516. for (t = 0; t < i + n.slideCount; t += 1) e = t, c(n.$slides[e]).clone(!0).attr("id", "").attr("data-slick-index", e + n.slideCount).appendTo(n.$slideTrack).addClass("slick-cloned");
  11517. n.$slideTrack.find(".slick-cloned").find("[id]").each(function () {
  11518. c(this).attr("id", "")
  11519. })
  11520. }
  11521. }, o.prototype.interrupt = function (t) {
  11522. t || this.autoPlay(), this.interrupted = t
  11523. }, o.prototype.selectHandler = function (t) {
  11524. var e = c(t.target).is(".slick-slide") ? c(t.target) : c(t.target).parents(".slick-slide"),
  11525. i = parseInt(e.attr("data-slick-index"));
  11526. i || (i = 0), this.slideCount <= this.options.slidesToShow ? this.slideHandler(i, !1, !0) : this.slideHandler(i)
  11527. }, o.prototype.slideHandler = function (t, e, i) {
  11528. var n, s, o, r, a, l = null,
  11529. c = this;
  11530. if (e = e || !1, !(!0 === c.animating && !0 === c.options.waitForAnimate || !0 === c.options.fade && c.currentSlide === t))
  11531. if (!1 === e && c.asNavFor(t), n = t, l = c.getLeft(n), r = c.getLeft(c.currentSlide), c.currentLeft = null === c.swipeLeft ? r : c.swipeLeft, !1 === c.options.infinite && !1 === c.options.centerMode && (t < 0 || t > c.getDotCount() * c.options.slidesToScroll)) !1 === c.options.fade && (n = c.currentSlide, !0 !== i ? c.animateSlide(r, function () {
  11532. c.postSlide(n)
  11533. }) : c.postSlide(n));
  11534. else if (!1 === c.options.infinite && !0 === c.options.centerMode && (t < 0 || t > c.slideCount - c.options.slidesToScroll)) !1 === c.options.fade && (n = c.currentSlide, !0 !== i ? c.animateSlide(r, function () {
  11535. c.postSlide(n)
  11536. }) : c.postSlide(n));
  11537. else {
  11538. if (c.options.autoplay && clearInterval(c.autoPlayTimer), s = n < 0 ? c.slideCount % c.options.slidesToScroll != 0 ? c.slideCount - c.slideCount % c.options.slidesToScroll : c.slideCount + n : n >= c.slideCount ? c.slideCount % c.options.slidesToScroll != 0 ? 0 : n - c.slideCount : n, c.animating = !0, c.$slider.trigger("beforeChange", [c, c.currentSlide, s]), o = c.currentSlide, c.currentSlide = s, c.setSlideClasses(c.currentSlide), c.options.asNavFor && (a = (a = c.getNavTarget()).slick("getSlick")).slideCount <= a.options.slidesToShow && a.setSlideClasses(c.currentSlide), c.updateDots(), c.updateArrows(), !0 === c.options.fade) return !0 !== i ? (c.fadeSlideOut(o), c.fadeSlide(s, function () {
  11539. c.postSlide(s)
  11540. })) : c.postSlide(s), void c.animateHeight();
  11541. !0 !== i ? c.animateSlide(l, function () {
  11542. c.postSlide(s)
  11543. }) : c.postSlide(s)
  11544. }
  11545. }, o.prototype.startLoad = function () {
  11546. var t = this;
  11547. !0 === t.options.arrows && t.slideCount > t.options.slidesToShow && (t.$prevArrow.hide(), t.$nextArrow.hide()), !0 === t.options.dots && t.slideCount > t.options.slidesToShow && t.$dots.hide(), t.$slider.addClass("slick-loading")
  11548. }, o.prototype.swipeDirection = function () {
  11549. var t, e, i, n;
  11550. return t = this.touchObject.startX - this.touchObject.curX, e = this.touchObject.startY - this.touchObject.curY, i = Math.atan2(e, t), (n = Math.round(180 * i / Math.PI)) < 0 && (n = 360 - Math.abs(n)), n <= 45 && 0 <= n ? !1 === this.options.rtl ? "left" : "right" : n <= 360 && 315 <= n ? !1 === this.options.rtl ? "left" : "right" : 135 <= n && n <= 225 ? !1 === this.options.rtl ? "right" : "left" : !0 === this.options.verticalSwiping ? 35 <= n && n <= 135 ? "down" : "up" : "vertical"
  11551. }, o.prototype.swipeEnd = function (t) {
  11552. var e, i, n = this;
  11553. if (n.dragging = !1, n.swiping = !1, n.scrolling) return n.scrolling = !1;
  11554. if (n.interrupted = !1, n.shouldClick = !(10 < n.touchObject.swipeLength), void 0 === n.touchObject.curX) return !1;
  11555. if (!0 === n.touchObject.edgeHit && n.$slider.trigger("edge", [n, n.swipeDirection()]), n.touchObject.swipeLength >= n.touchObject.minSwipe) {
  11556. switch (i = n.swipeDirection()) {
  11557. case "left":
  11558. case "down":
  11559. e = n.options.swipeToSlide ? n.checkNavigable(n.currentSlide + n.getSlideCount()) : n.currentSlide + n.getSlideCount(), n.currentDirection = 0;
  11560. break;
  11561. case "right":
  11562. case "up":
  11563. e = n.options.swipeToSlide ? n.checkNavigable(n.currentSlide - n.getSlideCount()) : n.currentSlide - n.getSlideCount(), n.currentDirection = 1
  11564. }
  11565. "vertical" != i && (n.slideHandler(e), n.touchObject = {}, n.$slider.trigger("swipe", [n, i]))
  11566. } else n.touchObject.startX !== n.touchObject.curX && (n.slideHandler(n.currentSlide), n.touchObject = {})
  11567. }, o.prototype.swipeHandler = function (t) {
  11568. var e = this;
  11569. if (!(!1 === e.options.swipe || "ontouchend" in document && !1 === e.options.swipe || !1 === e.options.draggable && -1 !== t.type.indexOf("mouse"))) switch (e.touchObject.fingerCount = t.originalEvent && void 0 !== t.originalEvent.touches ? t.originalEvent.touches.length : 1, e.touchObject.minSwipe = e.listWidth / e.options.touchThreshold, !0 === e.options.verticalSwiping && (e.touchObject.minSwipe = e.listHeight / e.options.touchThreshold), t.data.action) {
  11570. case "start":
  11571. e.swipeStart(t);
  11572. break;
  11573. case "move":
  11574. e.swipeMove(t);
  11575. break;
  11576. case "end":
  11577. e.swipeEnd(t)
  11578. }
  11579. }, o.prototype.swipeMove = function (t) {
  11580. var e, i, n, s, o, r, a = this;
  11581. return o = void 0 !== t.originalEvent ? t.originalEvent.touches : null, !(!a.dragging || a.scrolling || o && 1 !== o.length) && (e = a.getLeft(a.currentSlide), a.touchObject.curX = void 0 !== o ? o[0].pageX : t.clientX, a.touchObject.curY = void 0 !== o ? o[0].pageY : t.clientY, a.touchObject.swipeLength = Math.round(Math.sqrt(Math.pow(a.touchObject.curX - a.touchObject.startX, 2))), r = Math.round(Math.sqrt(Math.pow(a.touchObject.curY - a.touchObject.startY, 2))), !a.options.verticalSwiping && !a.swiping && 4 < r ? !(a.scrolling = !0) : (!0 === a.options.verticalSwiping && (a.touchObject.swipeLength = r), i = a.swipeDirection(), void 0 !== t.originalEvent && 4 < a.touchObject.swipeLength && (a.swiping = !0, t.preventDefault()), s = (!1 === a.options.rtl ? 1 : -1) * (a.touchObject.curX > a.touchObject.startX ? 1 : -1), !0 === a.options.verticalSwiping && (s = a.touchObject.curY > a.touchObject.startY ? 1 : -1), n = a.touchObject.swipeLength, (a.touchObject.edgeHit = !1) === a.options.infinite && (0 === a.currentSlide && "right" === i || a.currentSlide >= a.getDotCount() && "left" === i) && (n = a.touchObject.swipeLength * a.options.edgeFriction, a.touchObject.edgeHit = !0), !1 === a.options.vertical ? a.swipeLeft = e + n * s : a.swipeLeft = e + n * (a.$list.height() / a.listWidth) * s, !0 === a.options.verticalSwiping && (a.swipeLeft = e + n * s), !0 !== a.options.fade && !1 !== a.options.touchMove && (!0 === a.animating ? (a.swipeLeft = null, !1) : void a.setCSS(a.swipeLeft))))
  11582. }, o.prototype.swipeStart = function (t) {
  11583. var e, i = this;
  11584. if (i.interrupted = !0, 1 !== i.touchObject.fingerCount || i.slideCount <= i.options.slidesToShow) return !(i.touchObject = {});
  11585. void 0 !== t.originalEvent && void 0 !== t.originalEvent.touches && (e = t.originalEvent.touches[0]), i.touchObject.startX = i.touchObject.curX = void 0 !== e ? e.pageX : t.clientX, i.touchObject.startY = i.touchObject.curY = void 0 !== e ? e.pageY : t.clientY, i.dragging = !0
  11586. }, o.prototype.unfilterSlides = o.prototype.slickUnfilter = function () {
  11587. null !== this.$slidesCache && (this.unload(), this.$slideTrack.children(this.options.slide).detach(), this.$slidesCache.appendTo(this.$slideTrack), this.reinit())
  11588. }, o.prototype.unload = function () {
  11589. var t = this;
  11590. c(".slick-cloned", t.$slider).remove(), t.$dots && t.$dots.remove(), t.$prevArrow && t.htmlExpr.test(t.options.prevArrow) && t.$prevArrow.remove(), t.$nextArrow && t.htmlExpr.test(t.options.nextArrow) && t.$nextArrow.remove(), t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden", "true").css("width", "")
  11591. }, o.prototype.unslick = function (t) {
  11592. this.$slider.trigger("unslick", [this, t]), this.destroy()
  11593. }, o.prototype.updateArrows = function () {
  11594. var t = this;
  11595. Math.floor(t.options.slidesToShow / 2), !0 === t.options.arrows && t.slideCount > t.options.slidesToShow && !t.options.infinite && (t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled", "false"), t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled", "false"), 0 === t.currentSlide ? (t.$prevArrow.addClass("slick-disabled").attr("aria-disabled", "true"), t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled", "false")) : t.currentSlide >= t.slideCount - t.options.slidesToShow && !1 === t.options.centerMode ? (t.$nextArrow.addClass("slick-disabled").attr("aria-disabled", "true"), t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled", "false")) : t.currentSlide >= t.slideCount - 1 && !0 === t.options.centerMode && (t.$nextArrow.addClass("slick-disabled").attr("aria-disabled", "true"), t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled", "false")))
  11596. }, o.prototype.updateDots = function () {
  11597. null !== this.$dots && (this.$dots.find("li").removeClass("slick-active").end(), this.$dots.find("li").eq(Math.floor(this.currentSlide / this.options.slidesToScroll)).addClass("slick-active"))
  11598. }, o.prototype.visibility = function () {
  11599. this.options.autoplay && (document[this.hidden] ? this.interrupted = !0 : this.interrupted = !1)
  11600. }, c.fn.slick = function () {
  11601. var t, e, i = arguments[0],
  11602. n = Array.prototype.slice.call(arguments, 1),
  11603. s = this.length;
  11604. for (t = 0; t < s; t++)
  11605. if ("object" == _typeof(i) || void 0 === i ? this[t].slick = new o(this[t], i) : e = this[t].slick[i].apply(this[t].slick, n), void 0 !== e) return e;
  11606. return this
  11607. }
  11608. }),
  11609. function (v) {
  11610. v.fn.slickAnimation = function () {
  11611. function h(t, e, i, n, s) {
  11612. s = void 0 !== s && s, 1 == e.opacity ? (t.addClass(i), t.addClass(n)) : (t.removeClass(i), t.removeClass(n)), s && t.css(e)
  11613. }
  11614. function d(t, e) {
  11615. return t ? 1e3 * t + 1e3 : e ? 1e3 * e : t || e ? 1e3 * t + 1e3 * e : 1e3
  11616. }
  11617. function p(t, e, i) {
  11618. var n = {};
  11619. ["animation-" + e, "-webkit-animation-" + e, "-moz-animation-" + e, "-o-animation-" + e, "-ms-animation-" + e].forEach(function (t) {
  11620. n[t] = i + "s"
  11621. }), t.css(n)
  11622. }
  11623. var t = v(this),
  11624. e = t.find(".slick-list .slick-track > div"),
  11625. i = t.find('[data-slick-index="0"]'),
  11626. f = "animated",
  11627. g = {
  11628. opacity: "1"
  11629. },
  11630. m = {
  11631. opacity: "0"
  11632. };
  11633. return e.each(function () {
  11634. var u = v(this);
  11635. u.find("[data-animation-in]").each(function () {
  11636. var n = v(this);
  11637. n.css(m);
  11638. var s = n.attr("data-animation-in"),
  11639. o = n.attr("data-animation-out"),
  11640. r = n.attr("data-delay-in"),
  11641. a = n.attr("data-duration-in"),
  11642. l = n.attr("data-delay-out"),
  11643. c = n.attr("data-duration-out");
  11644. o ? (0 < i.length && u.hasClass("slick-current") && (h(n, g, s, f, !0), r && p(n, "delay", r), a && p(n, "duration", a), setTimeout(function () {
  11645. h(n, m, s, f), h(n, g, o, f), l && p(n, "delay", l), c && p(n, "duration", c)
  11646. }, d(r, a))), t.on("afterChange", function (t, e, i) {
  11647. u.hasClass("slick-current") && (h(n, g, s, f, !0), r && p(n, "delay", r), a && p(n, "duration", a), setTimeout(function () {
  11648. h(n, m, s, f), h(n, g, o, f), l && p(n, "delay", l), c && p(n, "duration", c)
  11649. }, d(r, a)))
  11650. }), t.on("beforeChange", function (t, e, i) {
  11651. h(n, m, o, f, !0)
  11652. })) : (0 < i.length && u.hasClass("slick-current") && (h(n, g, s, f, !0), r && p(n, "delay", r), a && p(n, "duration", a)), t.on("afterChange", function (t, e, i) {
  11653. u.hasClass("slick-current") && (h(n, g, s, f, !0), r && p(n, "delay", r), a && p(n, "duration", a))
  11654. }), t.on("beforeChange", function (t, e, i) {
  11655. h(n, m, s, f, !0)
  11656. }))
  11657. })
  11658. }), this
  11659. }
  11660. }(jQuery),
  11661. function (c, u, h) {
  11662. c.fn.scrollUp = function (t) {
  11663. c.data(h.body, "scrollUp") || (c.data(h.body, "scrollUp", !0), c.fn.scrollUp.init(t))
  11664. }, c.fn.scrollUp.init = function (t) {
  11665. var e, i, n, s, o, r, a = c.fn.scrollUp.settings = c.extend({}, c.fn.scrollUp.defaults, t),
  11666. l = !1;
  11667. switch (r = a.scrollTrigger ? c(a.scrollTrigger) : c("<a/>", {
  11668. id: a.scrollName,
  11669. href: "#top"
  11670. }), a.scrollTitle && r.attr("title", a.scrollTitle), r.appendTo("body"), a.scrollImg || a.scrollTrigger || r.html(a.scrollText), r.css({
  11671. display: "none",
  11672. position: "fixed",
  11673. zIndex: a.zIndex
  11674. }), a.activeOverlay && c("<div/>", {
  11675. id: a.scrollName + "-active"
  11676. }).css({
  11677. position: "absolute",
  11678. top: a.scrollDistance + "px",
  11679. width: "100%",
  11680. borderTop: "1px dotted" + a.activeOverlay,
  11681. zIndex: a.zIndex
  11682. }).appendTo("body"), a.animation) {
  11683. case "fade":
  11684. e = "fadeIn", i = "fadeOut", n = a.animationSpeed;
  11685. break;
  11686. case "slide":
  11687. e = "slideDown", i = "slideUp", n = a.animationSpeed;
  11688. break;
  11689. default:
  11690. e = "show", i = "hide", n = 0
  11691. }
  11692. s = "top" === a.scrollFrom ? a.scrollDistance : c(h).height() - c(u).height() - a.scrollDistance, c(u).scroll(function () {
  11693. c(u).scrollTop() > s ? l || (r[e](n), l = !0) : l && (r[i](n), l = !1)
  11694. }), a.scrollTarget ? "number" == typeof a.scrollTarget ? o = a.scrollTarget : "string" == typeof a.scrollTarget && (o = Math.floor(c(a.scrollTarget).offset().top)) : o = 0, r.click(function (t) {
  11695. t.preventDefault(), c("html, body").animate({
  11696. scrollTop: o
  11697. }, a.scrollSpeed, a.easingType)
  11698. })
  11699. }, c.fn.scrollUp.defaults = {
  11700. scrollName: "scrollUp",
  11701. scrollDistance: 300,
  11702. scrollFrom: "top",
  11703. scrollSpeed: 300,
  11704. easingType: "linear",
  11705. animation: "fade",
  11706. animationSpeed: 200,
  11707. scrollTrigger: !1,
  11708. scrollTarget: !1,
  11709. scrollText: "Scroll to top",
  11710. scrollTitle: !1,
  11711. scrollImg: !1,
  11712. activeOverlay: !1,
  11713. zIndex: 2147483647
  11714. }, c.fn.scrollUp.destroy = function (t) {
  11715. c.removeData(h.body, "scrollUp"), c("#" + c.fn.scrollUp.settings.scrollName).remove(), c("#" + c.fn.scrollUp.settings.scrollName + "-active").remove(), 7 <= c.fn.jquery.split(".")[1] ? c(u).off("scroll", t) : c(u).unbind("scroll", t)
  11716. }, c.scrollUp = c.fn.scrollUp
  11717. }(jQuery, window, document),
  11718. function () {
  11719. for (var t, e = function () {}, i = ["assert", "clear", "count", "debug", "dir", "dirxml", "error", "exception", "group", "groupCollapsed", "groupEnd", "info", "log", "markTimeline", "profile", "profileEnd", "table", "time", "timeEnd", "timeline", "timelineEnd", "timeStamp", "trace", "warn"], n = i.length, s = window.console = window.console || {}; n--;) s[t = i[n]] || (s[t] = e)
  11720. }(),
  11721. function (t) {
  11722. "function" == typeof define && define.amd ? define(["jquery"], t) : t(jQuery)
  11723. }(function (s) {
  11724. var o = [],
  11725. e = [],
  11726. n = {
  11727. precision: 100,
  11728. elapse: !1
  11729. };
  11730. e.push(/^[0-9]*$/.source), e.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source), e.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source), e = new RegExp(e.join("|"));
  11731. function r(t, e, i) {
  11732. this.el = t, this.$el = s(t), this.interval = null, this.offset = {}, this.options = s.extend({}, n), this.instanceNumber = o.length, o.push(this), this.$el.data("countdown-instance", this.instanceNumber), i && ("function" == typeof i ? (this.$el.on("update.countdown", i), this.$el.on("stoped.countdown", i), this.$el.on("finish.countdown", i)) : this.options = s.extend({}, n, i)), this.setFinalDate(e), this.start()
  11733. }
  11734. var m = {
  11735. Y: "years",
  11736. m: "months",
  11737. n: "daysToMonth",
  11738. w: "weeks",
  11739. d: "daysToWeek",
  11740. D: "totalDays",
  11741. H: "hours",
  11742. M: "minutes",
  11743. S: "seconds"
  11744. };
  11745. s.extend(r.prototype, {
  11746. start: function () {
  11747. null !== this.interval && clearInterval(this.interval);
  11748. var t = this;
  11749. this.update(), this.interval = setInterval(function () {
  11750. t.update.call(t)
  11751. }, this.options.precision)
  11752. },
  11753. stop: function () {
  11754. clearInterval(this.interval), this.interval = null, this.dispatchEvent("stoped")
  11755. },
  11756. toggle: function () {
  11757. this.interval ? this.stop() : this.start()
  11758. },
  11759. pause: function () {
  11760. this.stop()
  11761. },
  11762. resume: function () {
  11763. this.start()
  11764. },
  11765. remove: function () {
  11766. this.stop.call(this), o[this.instanceNumber] = null, delete this.$el.data().countdownInstance
  11767. },
  11768. setFinalDate: function (t) {
  11769. this.finalDate = function (t) {
  11770. if (t instanceof Date) return t;
  11771. if (String(t).match(e)) return String(t).match(/^[0-9]*$/) && (t = Number(t)), String(t).match(/\-/) && (t = String(t).replace(/\-/g, "/")), new Date(t);
  11772. throw new Error("Couldn't cast `" + t + "` to a date object.")
  11773. }(t)
  11774. },
  11775. update: function () {
  11776. if (0 !== this.$el.closest("html").length) {
  11777. var t, e = void 0 !== s._data(this.el, "events"),
  11778. i = new Date;
  11779. t = this.finalDate.getTime() - i.getTime(), t = Math.ceil(t / 1e3), t = !this.options.elapse && t < 0 ? 0 : Math.abs(t), this.totalSecsLeft !== t && e && (this.totalSecsLeft = t, this.elapsed = i >= this.finalDate, this.offset = {
  11780. seconds: this.totalSecsLeft % 60,
  11781. minutes: Math.floor(this.totalSecsLeft / 60) % 60,
  11782. hours: Math.floor(this.totalSecsLeft / 60 / 60) % 24,
  11783. days: Math.floor(this.totalSecsLeft / 60 / 60 / 24) % 7,
  11784. daysToWeek: Math.floor(this.totalSecsLeft / 60 / 60 / 24) % 7,
  11785. daysToMonth: Math.floor(this.totalSecsLeft / 60 / 60 / 24 % 30.4368),
  11786. totalDays: Math.floor(this.totalSecsLeft / 60 / 60 / 24),
  11787. weeks: Math.floor(this.totalSecsLeft / 60 / 60 / 24 / 7),
  11788. months: Math.floor(this.totalSecsLeft / 60 / 60 / 24 / 30.4368),
  11789. years: Math.abs(this.finalDate.getFullYear() - i.getFullYear())
  11790. }, this.options.elapse || 0 !== this.totalSecsLeft ? this.dispatchEvent("update") : (this.stop(), this.dispatchEvent("finish")))
  11791. } else this.remove()
  11792. },
  11793. dispatchEvent: function (t) {
  11794. var e = s.Event(t + ".countdown");
  11795. e.finalDate = this.finalDate, e.elapsed = this.elapsed, e.offset = s.extend({}, this.offset), e.strftime = function (g) {
  11796. return function (t) {
  11797. var e, i, n, s, o, r, a = t.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);
  11798. if (a)
  11799. for (var l = 0, c = a.length; l < c; ++l) {
  11800. var u = a[l].match(/%(-|!)?([a-zA-Z]{1})(:[^;]+;)?/),
  11801. h = (o = u[0], r = o.toString().replace(/([.?*+^$[\]\\(){}|-])/g, "\\$1"), new RegExp(r)),
  11802. d = u[1] || "",
  11803. p = u[3] || "",
  11804. f = null;
  11805. u = u[2], m.hasOwnProperty(u) && (f = m[u], f = Number(g[f])), null !== f && ("!" === d && (i = f, s = n = void 0, n = "s", s = "", (e = p) && (e = e.replace(/(:|;|\s)/gi, "").split(/\,/), n = 1 === e.length ? e[0] : (s = e[0], e[1])), f = 1 === Math.abs(i) ? s : n), "" === d && f < 10 && (f = "0" + f.toString()), t = t.replace(h, f.toString()))
  11806. }
  11807. return t.replace(/%%/, "%")
  11808. }
  11809. }(this.offset), this.$el.trigger(e)
  11810. }
  11811. }), s.fn.countdown = function () {
  11812. var n = Array.prototype.slice.call(arguments, 0);
  11813. return this.each(function () {
  11814. var t = s(this).data("countdown-instance");
  11815. if (void 0 !== t) {
  11816. var e = o[t],
  11817. i = n[0];
  11818. r.prototype.hasOwnProperty(i) ? e[i].apply(e, n.slice(1)) : null === String(i).match(/^[$A-Z_][0-9A-Z_$]*$/i) ? (e.setFinalDate.call(e, i), e.start()) : s.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi, i))
  11819. } else new r(this, n[0], n[1])
  11820. })
  11821. }
  11822. }),
  11823. function (t) {
  11824. "function" == typeof define && define.amd ? define(["jquery"], t) : "undefined" != typeof exports ? module.exports = t(require("jquery")) : t(jQuery)
  11825. }(function (c) {
  11826. var s, o = window.Slick || {};
  11827. (s = 0, o = function (t, e) {
  11828. var i, n = this;
  11829. n.defaults = {
  11830. accessibility: !0,
  11831. adaptiveHeight: !1,
  11832. appendArrows: c(t),
  11833. appendDots: c(t),
  11834. arrows: !0,
  11835. asNavFor: null,
  11836. prevArrow: '<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',
  11837. nextArrow: '<button class="slick-next" aria-label="Next" type="button">Next</button>',
  11838. autoplay: !1,
  11839. autoplaySpeed: 3e3,
  11840. centerMode: !1,
  11841. centerPadding: "50px",
  11842. cssEase: "ease",
  11843. customPaging: function (t, e) {
  11844. return c('<button type="button" />').text(e + 1)
  11845. },
  11846. dots: !1,
  11847. dotsClass: "slick-dots",
  11848. draggable: !0,
  11849. easing: "linear",
  11850. edgeFriction: .35,
  11851. fade: !1,
  11852. focusOnSelect: !1,
  11853. focusOnChange: !1,
  11854. infinite: !0,
  11855. initialSlide: 0,
  11856. lazyLoad: "ondemand",
  11857. mobileFirst: !1,
  11858. pauseOnHover: !0,
  11859. pauseOnFocus: !0,
  11860. pauseOnDotsHover: !1,
  11861. respondTo: "window",
  11862. responsive: null,
  11863. rows: 1,
  11864. rtl: !1,
  11865. slide: "",
  11866. slidesPerRow: 1,
  11867. slidesToShow: 1,
  11868. slidesToScroll: 1,
  11869. speed: 500,
  11870. swipe: !0,
  11871. swipeToSlide: !1,
  11872. touchMove: !0,
  11873. touchThreshold: 5,
  11874. useCSS: !0,
  11875. useTransform: !0,
  11876. variableWidth: !1,
  11877. vertical: !1,
  11878. verticalSwiping: !1,
  11879. waitForAnimate: !0,
  11880. zIndex: 1e3
  11881. }, n.initials = {
  11882. animating: !1,
  11883. dragging: !1,
  11884. autoPlayTimer: null,
  11885. currentDirection: 0,
  11886. currentLeft: null,
  11887. currentSlide: 0,
  11888. direction: 1,
  11889. $dots: null,
  11890. listWidth: null,
  11891. listHeight: null,
  11892. loadIndex: 0,
  11893. $nextArrow: null,
  11894. $prevArrow: null,
  11895. scrolling: !1,
  11896. slideCount: null,
  11897. slideWidth: null,
  11898. $slideTrack: null,
  11899. $slides: null,
  11900. sliding: !1,
  11901. slideOffset: 0,
  11902. swipeLeft: null,
  11903. swiping: !1,
  11904. $list: null,
  11905. touchObject: {},
  11906. transformsEnabled: !1,
  11907. unslicked: !1
  11908. }, c.extend(n, n.initials), n.activeBreakpoint = null, n.animType = null, n.animProp = null, n.breakpoints = [], n.breakpointSettings = [], n.cssTransitions = !1, n.focussed = !1, n.interrupted = !1, n.hidden = "hidden", n.paused = !0, n.positionProp = null, n.respondTo = null, n.rowCount = 1, n.shouldClick = !0, n.$slider = c(t), n.$slidesCache = null, n.transformType = null, n.transitionType = null, n.visibilityChange = "visibilitychange", n.windowWidth = 0, n.windowTimer = null, i = c(t).data("slick") || {}, n.options = c.extend({}, n.defaults, e, i), n.currentSlide = n.options.initialSlide, n.originalSettings = n.options, void 0 !== document.mozHidden ? (n.hidden = "mozHidden", n.visibilityChange = "mozvisibilitychange") : void 0 !== document.webkitHidden && (n.hidden = "webkitHidden", n.visibilityChange = "webkitvisibilitychange"), n.autoPlay = c.proxy(n.autoPlay, n), n.autoPlayClear = c.proxy(n.autoPlayClear, n), n.autoPlayIterator = c.proxy(n.autoPlayIterator, n), n.changeSlide = c.proxy(n.changeSlide, n), n.clickHandler = c.proxy(n.clickHandler, n), n.selectHandler = c.proxy(n.selectHandler, n), n.setPosition = c.proxy(n.setPosition, n), n.swipeHandler = c.proxy(n.swipeHandler, n), n.dragHandler = c.proxy(n.dragHandler, n), n.keyHandler = c.proxy(n.keyHandler, n), n.instanceUid = s++, n.htmlExpr = /^(?:\s*(<[\w\W]+>)[^>]*)$/, n.registerBreakpoints(), n.init(!0)
  11909. }).prototype.activateADA = function () {
  11910. this.$slideTrack.find(".slick-active").attr({
  11911. "aria-hidden": "false"
  11912. }).find("a, input, button, select").attr({
  11913. tabindex: "0"
  11914. })
  11915. }, o.prototype.addSlide = o.prototype.slickAdd = function (t, e, i) {
  11916. var n = this;
  11917. if ("boolean" == typeof e) i = e, e = null;
  11918. else if (e < 0 || e >= n.slideCount) return !1;
  11919. n.unload(), "number" == typeof e ? 0 === e && 0 === n.$slides.length ? c(t).appendTo(n.$slideTrack) : i ? c(t).insertBefore(n.$slides.eq(e)) : c(t).insertAfter(n.$slides.eq(e)) : !0 === i ? c(t).prependTo(n.$slideTrack) : c(t).appendTo(n.$slideTrack), n.$slides = n.$slideTrack.children(this.options.slide), n.$slideTrack.children(this.options.slide).detach(), n.$slideTrack.append(n.$slides), n.$slides.each(function (t, e) {
  11920. c(e).attr("data-slick-index", t)
  11921. }), n.$slidesCache = n.$slides, n.reinit()
  11922. }, o.prototype.animateHeight = function () {
  11923. if (1 === this.options.slidesToShow && !0 === this.options.adaptiveHeight && !1 === this.options.vertical) {
  11924. var t = this.$slides.eq(this.currentSlide).outerHeight(!0);
  11925. this.$list.animate({
  11926. height: t
  11927. }, this.options.speed)
  11928. }
  11929. }, o.prototype.animateSlide = function (t, e) {
  11930. var i = {},
  11931. n = this;
  11932. n.animateHeight(), !0 === n.options.rtl && !1 === n.options.vertical && (t = -t), !1 === n.transformsEnabled ? !1 === n.options.vertical ? n.$slideTrack.animate({
  11933. left: t
  11934. }, n.options.speed, n.options.easing, e) : n.$slideTrack.animate({
  11935. top: t
  11936. }, n.options.speed, n.options.easing, e) : !1 === n.cssTransitions ? (!0 === n.options.rtl && (n.currentLeft = -n.currentLeft), c({
  11937. animStart: n.currentLeft
  11938. }).animate({
  11939. animStart: t
  11940. }, {
  11941. duration: n.options.speed,
  11942. easing: n.options.easing,
  11943. step: function (t) {
  11944. t = Math.ceil(t), !1 === n.options.vertical ? i[n.animType] = "translate(" + t + "px, 0px)" : i[n.animType] = "translate(0px," + t + "px)", n.$slideTrack.css(i)
  11945. },
  11946. complete: function () {
  11947. e && e.call()
  11948. }
  11949. })) : (n.applyTransition(), t = Math.ceil(t), !1 === n.options.vertical ? i[n.animType] = "translate3d(" + t + "px, 0px, 0px)" : i[n.animType] = "translate3d(0px," + t + "px, 0px)", n.$slideTrack.css(i), e && setTimeout(function () {
  11950. n.disableTransition(), e.call()
  11951. }, n.options.speed))
  11952. }, o.prototype.getNavTarget = function () {
  11953. var t = this.options.asNavFor;
  11954. return t && null !== t && (t = c(t).not(this.$slider)), t
  11955. }, o.prototype.asNavFor = function (e) {
  11956. var t = this.getNavTarget();
  11957. null !== t && "object" == _typeof(t) && t.each(function () {
  11958. var t = c(this).slick("getSlick");
  11959. t.unslicked || t.slideHandler(e, !0)
  11960. })
  11961. }, o.prototype.applyTransition = function (t) {
  11962. var e = this,
  11963. i = {};
  11964. !1 === e.options.fade ? i[e.transitionType] = e.transformType + " " + e.options.speed + "ms " + e.options.cssEase : i[e.transitionType] = "opacity " + e.options.speed + "ms " + e.options.cssEase, !1 === e.options.fade ? e.$slideTrack.css(i) : e.$slides.eq(t).css(i)
  11965. }, o.prototype.autoPlay = function () {
  11966. this.autoPlayClear(), this.slideCount > this.options.slidesToShow && (this.autoPlayTimer = setInterval(this.autoPlayIterator, this.options.autoplaySpeed))
  11967. }, o.prototype.autoPlayClear = function () {
  11968. this.autoPlayTimer && clearInterval(this.autoPlayTimer)
  11969. }, o.prototype.autoPlayIterator = function () {
  11970. var t = this,
  11971. e = t.currentSlide + t.options.slidesToScroll;
  11972. t.paused || t.interrupted || t.focussed || (!1 === t.options.infinite && (1 === t.direction && t.currentSlide + 1 === t.slideCount - 1 ? t.direction = 0 : 0 === t.direction && (e = t.currentSlide - t.options.slidesToScroll, t.currentSlide - 1 == 0 && (t.direction = 1))), t.slideHandler(e))
  11973. }, o.prototype.buildArrows = function () {
  11974. var t = this;
  11975. !0 === t.options.arrows && (t.$prevArrow = c(t.options.prevArrow).addClass("slick-arrow"), t.$nextArrow = c(t.options.nextArrow).addClass("slick-arrow"), t.slideCount > t.options.slidesToShow ? (t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"), t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"), t.htmlExpr.test(t.options.prevArrow) && t.$prevArrow.prependTo(t.options.appendArrows), t.htmlExpr.test(t.options.nextArrow) && t.$nextArrow.appendTo(t.options.appendArrows), !0 !== t.options.infinite && t.$prevArrow.addClass("slick-disabled").attr("aria-disabled", "true")) : t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({
  11976. "aria-disabled": "true",
  11977. tabindex: "-1"
  11978. }))
  11979. }, o.prototype.buildDots = function () {
  11980. var t, e;
  11981. if (!0 === this.options.dots) {
  11982. for (this.$slider.addClass("slick-dotted"), e = c("<ul />").addClass(this.options.dotsClass), t = 0; t <= this.getDotCount(); t += 1) e.append(c("<li />").append(this.options.customPaging.call(this, this, t)));
  11983. this.$dots = e.appendTo(this.options.appendDots), this.$dots.find("li").first().addClass("slick-active")
  11984. }
  11985. }, o.prototype.buildOut = function () {
  11986. var t = this;
  11987. t.$slides = t.$slider.children(t.options.slide + ":not(.slick-cloned)").addClass("slick-slide"), t.slideCount = t.$slides.length, t.$slides.each(function (t, e) {
  11988. c(e).attr("data-slick-index", t).data("originalStyling", c(e).attr("style") || "")
  11989. }), t.$slider.addClass("slick-slider"), t.$slideTrack = 0 === t.slideCount ? c('<div class="slick-track"/>').appendTo(t.$slider) : t.$slides.wrapAll('<div class="slick-track"/>').parent(), t.$list = t.$slideTrack.wrap('<div class="slick-list"/>').parent(), t.$slideTrack.css("opacity", 0), !0 !== t.options.centerMode && !0 !== t.options.swipeToSlide || (t.options.slidesToScroll = 1), c("img[data-lazy]", t.$slider).not("[src]").addClass("slick-loading"), t.setupInfinite(), t.buildArrows(), t.buildDots(), t.updateDots(), t.setSlideClasses("number" == typeof t.currentSlide ? t.currentSlide : 0), !0 === t.options.draggable && t.$list.addClass("draggable")
  11990. }, o.prototype.buildRows = function () {
  11991. var t, e, i, n, s, o, r, a = this;
  11992. if (n = document.createDocumentFragment(), o = a.$slider.children(), 1 < a.options.rows) {
  11993. for (r = a.options.slidesPerRow * a.options.rows, s = Math.ceil(o.length / r), t = 0; t < s; t++) {
  11994. var l = document.createElement("div");
  11995. for (e = 0; e < a.options.rows; e++) {
  11996. var c = document.createElement("div");
  11997. for (i = 0; i < a.options.slidesPerRow; i++) {
  11998. var u = t * r + (e * a.options.slidesPerRow + i);
  11999. o.get(u) && c.appendChild(o.get(u))
  12000. }
  12001. l.appendChild(c)
  12002. }
  12003. n.appendChild(l)
  12004. }
  12005. a.$slider.empty().append(n), a.$slider.children().children().children().css({
  12006. width: 100 / a.options.slidesPerRow + "%",
  12007. display: "inline-block"
  12008. })
  12009. }
  12010. }, o.prototype.checkResponsive = function (t, e) {
  12011. var i, n, s, o = this,
  12012. r = !1,
  12013. a = o.$slider.width(),
  12014. l = window.innerWidth || c(window).width();
  12015. if ("window" === o.respondTo ? s = l : "slider" === o.respondTo ? s = a : "min" === o.respondTo && (s = Math.min(l, a)), o.options.responsive && o.options.responsive.length && null !== o.options.responsive) {
  12016. for (i in n = null, o.breakpoints) o.breakpoints.hasOwnProperty(i) && (!1 === o.originalSettings.mobileFirst ? s < o.breakpoints[i] && (n = o.breakpoints[i]) : s > o.breakpoints[i] && (n = o.breakpoints[i]));
  12017. null !== n ? null !== o.activeBreakpoint ? (n !== o.activeBreakpoint || e) && (o.activeBreakpoint = n, "unslick" === o.breakpointSettings[n] ? o.unslick(n) : (o.options = c.extend({}, o.originalSettings, o.breakpointSettings[n]), !0 === t && (o.currentSlide = o.options.initialSlide), o.refresh(t)), r = n) : (o.activeBreakpoint = n, "unslick" === o.breakpointSettings[n] ? o.unslick(n) : (o.options = c.extend({}, o.originalSettings, o.breakpointSettings[n]), !0 === t && (o.currentSlide = o.options.initialSlide), o.refresh(t)), r = n) : null !== o.activeBreakpoint && (o.activeBreakpoint = null, o.options = o.originalSettings, !0 === t && (o.currentSlide = o.options.initialSlide), o.refresh(t), r = n), t || !1 === r || o.$slider.trigger("breakpoint", [o, r])
  12018. }
  12019. }, o.prototype.changeSlide = function (t, e) {
  12020. var i, n, s = this,
  12021. o = c(t.currentTarget);
  12022. switch (o.is("a") && t.preventDefault(), o.is("li") || (o = o.closest("li")), i = s.slideCount % s.options.slidesToScroll != 0 ? 0 : (s.slideCount - s.currentSlide) % s.options.slidesToScroll, t.data.message) {
  12023. case "previous":
  12024. n = 0 == i ? s.options.slidesToScroll : s.options.slidesToShow - i, s.slideCount > s.options.slidesToShow && s.slideHandler(s.currentSlide - n, !1, e);
  12025. break;
  12026. case "next":
  12027. n = 0 == i ? s.options.slidesToScroll : i, s.slideCount > s.options.slidesToShow && s.slideHandler(s.currentSlide + n, !1, e);
  12028. break;
  12029. case "index":
  12030. var r = 0 === t.data.index ? 0 : t.data.index || o.index() * s.options.slidesToScroll;
  12031. s.slideHandler(s.checkNavigable(r), !1, e), o.children().trigger("focus");
  12032. break;
  12033. default:
  12034. return
  12035. }
  12036. }, o.prototype.checkNavigable = function (t) {
  12037. var e, i;
  12038. if (i = 0, t > (e = this.getNavigableIndexes())[e.length - 1]) t = e[e.length - 1];
  12039. else
  12040. for (var n in e) {
  12041. if (t < e[n]) {
  12042. t = i;
  12043. break
  12044. }
  12045. i = e[n]
  12046. }
  12047. return t
  12048. }, o.prototype.cleanUpEvents = function () {
  12049. var t = this;
  12050. t.options.dots && null !== t.$dots && (c("li", t.$dots).off("click.slick", t.changeSlide).off("mouseenter.slick", c.proxy(t.interrupt, t, !0)).off("mouseleave.slick", c.proxy(t.interrupt, t, !1)), !0 === t.options.accessibility && t.$dots.off("keydown.slick", t.keyHandler)), t.$slider.off("focus.slick blur.slick"), !0 === t.options.arrows && t.slideCount > t.options.slidesToShow && (t.$prevArrow && t.$prevArrow.off("click.slick", t.changeSlide), t.$nextArrow && t.$nextArrow.off("click.slick", t.changeSlide), !0 === t.options.accessibility && (t.$prevArrow && t.$prevArrow.off("keydown.slick", t.keyHandler), t.$nextArrow && t.$nextArrow.off("keydown.slick", t.keyHandler))), t.$list.off("touchstart.slick mousedown.slick", t.swipeHandler), t.$list.off("touchmove.slick mousemove.slick", t.swipeHandler), t.$list.off("touchend.slick mouseup.slick", t.swipeHandler), t.$list.off("touchcancel.slick mouseleave.slick", t.swipeHandler), t.$list.off("click.slick", t.clickHandler), c(document).off(t.visibilityChange, t.visibility), t.cleanUpSlideEvents(), !0 === t.options.accessibility && t.$list.off("keydown.slick", t.keyHandler), !0 === t.options.focusOnSelect && c(t.$slideTrack).children().off("click.slick", t.selectHandler), c(window).off("orientationchange.slick.slick-" + t.instanceUid, t.orientationChange), c(window).off("resize.slick.slick-" + t.instanceUid, t.resize), c("[draggable!=true]", t.$slideTrack).off("dragstart", t.preventDefault), c(window).off("load.slick.slick-" + t.instanceUid, t.setPosition)
  12051. }, o.prototype.cleanUpSlideEvents = function () {
  12052. this.$list.off("mouseenter.slick", c.proxy(this.interrupt, this, !0)), this.$list.off("mouseleave.slick", c.proxy(this.interrupt, this, !1))
  12053. }, o.prototype.cleanUpRows = function () {
  12054. var t;
  12055. 1 < this.options.rows && ((t = this.$slides.children().children()).removeAttr("style"), this.$slider.empty().append(t))
  12056. }, o.prototype.clickHandler = function (t) {
  12057. !1 === this.shouldClick && (t.stopImmediatePropagation(), t.stopPropagation(), t.preventDefault())
  12058. }, o.prototype.destroy = function (t) {
  12059. var e = this;
  12060. e.autoPlayClear(), e.touchObject = {}, e.cleanUpEvents(), c(".slick-cloned", e.$slider).detach(), e.$dots && e.$dots.remove(), e.$prevArrow && e.$prevArrow.length && (e.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display", ""), e.htmlExpr.test(e.options.prevArrow) && e.$prevArrow.remove()), e.$nextArrow && e.$nextArrow.length && (e.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display", ""), e.htmlExpr.test(e.options.nextArrow) && e.$nextArrow.remove()), e.$slides && (e.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function () {
  12061. c(this).attr("style", c(this).data("originalStyling"))
  12062. }), e.$slideTrack.children(this.options.slide).detach(), e.$slideTrack.detach(), e.$list.detach(), e.$slider.append(e.$slides)), e.cleanUpRows(), e.$slider.removeClass("slick-slider"), e.$slider.removeClass("slick-initialized"), e.$slider.removeClass("slick-dotted"), e.unslicked = !0, t || e.$slider.trigger("destroy", [e])
  12063. }, o.prototype.disableTransition = function (t) {
  12064. var e = {};
  12065. e[this.transitionType] = "", !1 === this.options.fade ? this.$slideTrack.css(e) : this.$slides.eq(t).css(e)
  12066. }, o.prototype.fadeSlide = function (t, e) {
  12067. var i = this;
  12068. !1 === i.cssTransitions ? (i.$slides.eq(t).css({
  12069. zIndex: i.options.zIndex
  12070. }), i.$slides.eq(t).animate({
  12071. opacity: 1
  12072. }, i.options.speed, i.options.easing, e)) : (i.applyTransition(t), i.$slides.eq(t).css({
  12073. opacity: 1,
  12074. zIndex: i.options.zIndex
  12075. }), e && setTimeout(function () {
  12076. i.disableTransition(t), e.call()
  12077. }, i.options.speed))
  12078. }, o.prototype.fadeSlideOut = function (t) {
  12079. !1 === this.cssTransitions ? this.$slides.eq(t).animate({
  12080. opacity: 0,
  12081. zIndex: this.options.zIndex - 2
  12082. }, this.options.speed, this.options.easing) : (this.applyTransition(t), this.$slides.eq(t).css({
  12083. opacity: 0,
  12084. zIndex: this.options.zIndex - 2
  12085. }))
  12086. }, o.prototype.filterSlides = o.prototype.slickFilter = function (t) {
  12087. null !== t && (this.$slidesCache = this.$slides, this.unload(), this.$slideTrack.children(this.options.slide).detach(), this.$slidesCache.filter(t).appendTo(this.$slideTrack), this.reinit())
  12088. }, o.prototype.focusHandler = function () {
  12089. var i = this;
  12090. i.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick", "*", function (t) {
  12091. t.stopImmediatePropagation();
  12092. var e = c(this);
  12093. setTimeout(function () {
  12094. i.options.pauseOnFocus && (i.focussed = e.is(":focus"), i.autoPlay())
  12095. }, 0)
  12096. })
  12097. }, o.prototype.getCurrent = o.prototype.slickCurrentSlide = function () {
  12098. return this.currentSlide
  12099. }, o.prototype.getDotCount = function () {
  12100. var t = this,
  12101. e = 0,
  12102. i = 0,
  12103. n = 0;
  12104. if (!0 === t.options.infinite)
  12105. if (t.slideCount <= t.options.slidesToShow) ++n;
  12106. else
  12107. for (; e < t.slideCount;) ++n, e = i + t.options.slidesToScroll, i += t.options.slidesToScroll <= t.options.slidesToShow ? t.options.slidesToScroll : t.options.slidesToShow;
  12108. else if (!0 === t.options.centerMode) n = t.slideCount;
  12109. else if (t.options.asNavFor)
  12110. for (; e < t.slideCount;) ++n, e = i + t.options.slidesToScroll, i += t.options.slidesToScroll <= t.options.slidesToShow ? t.options.slidesToScroll : t.options.slidesToShow;
  12111. else n = 1 + Math.ceil((t.slideCount - t.options.slidesToShow) / t.options.slidesToScroll);
  12112. return n - 1
  12113. }, o.prototype.getLeft = function (t) {
  12114. var e, i, n, s, o = this,
  12115. r = 0;
  12116. return o.slideOffset = 0, i = o.$slides.first().outerHeight(!0), !0 === o.options.infinite ? (o.slideCount > o.options.slidesToShow && (o.slideOffset = o.slideWidth * o.options.slidesToShow * -1, s = -1, !0 === o.options.vertical && !0 === o.options.centerMode && (2 === o.options.slidesToShow ? s = -1.5 : 1 === o.options.slidesToShow && (s = -2)), r = i * o.options.slidesToShow * s), o.slideCount % o.options.slidesToScroll != 0 && t + o.options.slidesToScroll > o.slideCount && o.slideCount > o.options.slidesToShow && (r = t > o.slideCount ? (o.slideOffset = (o.options.slidesToShow - (t - o.slideCount)) * o.slideWidth * -1, (o.options.slidesToShow - (t - o.slideCount)) * i * -1) : (o.slideOffset = o.slideCount % o.options.slidesToScroll * o.slideWidth * -1, o.slideCount % o.options.slidesToScroll * i * -1))) : t + o.options.slidesToShow > o.slideCount && (o.slideOffset = (t + o.options.slidesToShow - o.slideCount) * o.slideWidth, r = (t + o.options.slidesToShow - o.slideCount) * i), o.slideCount <= o.options.slidesToShow && (r = o.slideOffset = 0), !0 === o.options.centerMode && o.slideCount <= o.options.slidesToShow ? o.slideOffset = o.slideWidth * Math.floor(o.options.slidesToShow) / 2 - o.slideWidth * o.slideCount / 2 : !0 === o.options.centerMode && !0 === o.options.infinite ? o.slideOffset += o.slideWidth * Math.floor(o.options.slidesToShow / 2) - o.slideWidth : !0 === o.options.centerMode && (o.slideOffset = 0, o.slideOffset += o.slideWidth * Math.floor(o.options.slidesToShow / 2)), e = !1 === o.options.vertical ? t * o.slideWidth * -1 + o.slideOffset : t * i * -1 + r, !0 === o.options.variableWidth && (n = o.slideCount <= o.options.slidesToShow || !1 === o.options.infinite ? o.$slideTrack.children(".slick-slide").eq(t) : o.$slideTrack.children(".slick-slide").eq(t + o.options.slidesToShow), e = !0 === o.options.rtl ? n[0] ? -1 * (o.$slideTrack.width() - n[0].offsetLeft - n.width()) : 0 : n[0] ? -1 * n[0].offsetLeft : 0, !0 === o.options.centerMode && (n = o.slideCount <= o.options.slidesToShow || !1 === o.options.infinite ? o.$slideTrack.children(".slick-slide").eq(t) : o.$slideTrack.children(".slick-slide").eq(t + o.options.slidesToShow + 1), e = !0 === o.options.rtl ? n[0] ? -1 * (o.$slideTrack.width() - n[0].offsetLeft - n.width()) : 0 : n[0] ? -1 * n[0].offsetLeft : 0, e += (o.$list.width() - n.outerWidth()) / 2)), e
  12117. }, o.prototype.getOption = o.prototype.slickGetOption = function (t) {
  12118. return this.options[t]
  12119. }, o.prototype.getNavigableIndexes = function () {
  12120. var t, e = this,
  12121. i = 0,
  12122. n = 0,
  12123. s = [];
  12124. for (t = !1 === e.options.infinite ? e.slideCount : (i = -1 * e.options.slidesToScroll, n = -1 * e.options.slidesToScroll, 2 * e.slideCount); i < t;) s.push(i), i = n + e.options.slidesToScroll, n += e.options.slidesToScroll <= e.options.slidesToShow ? e.options.slidesToScroll : e.options.slidesToShow;
  12125. return s
  12126. }, o.prototype.getSlick = function () {
  12127. return this
  12128. }, o.prototype.getSlideCount = function () {
  12129. var i, n, s = this;
  12130. return n = !0 === s.options.centerMode ? s.slideWidth * Math.floor(s.options.slidesToShow / 2) : 0, !0 === s.options.swipeToSlide ? (s.$slideTrack.find(".slick-slide").each(function (t, e) {
  12131. if (e.offsetLeft - n + c(e).outerWidth() / 2 > -1 * s.swipeLeft) return i = e, !1
  12132. }), Math.abs(c(i).attr("data-slick-index") - s.currentSlide) || 1) : s.options.slidesToScroll
  12133. }, o.prototype.goTo = o.prototype.slickGoTo = function (t, e) {
  12134. this.changeSlide({
  12135. data: {
  12136. message: "index",
  12137. index: parseInt(t)
  12138. }
  12139. }, e)
  12140. }, o.prototype.init = function (t) {
  12141. var e = this;
  12142. c(e.$slider).hasClass("slick-initialized") || (c(e.$slider).addClass("slick-initialized"), e.buildRows(), e.buildOut(), e.setProps(), e.startLoad(), e.loadSlider(), e.initializeEvents(), e.updateArrows(), e.updateDots(), e.checkResponsive(!0), e.focusHandler()), t && e.$slider.trigger("init", [e]), !0 === e.options.accessibility && e.initADA(), e.options.autoplay && (e.paused = !1, e.autoPlay())
  12143. }, o.prototype.initADA = function () {
  12144. var i = this,
  12145. n = Math.ceil(i.slideCount / i.options.slidesToShow),
  12146. s = i.getNavigableIndexes().filter(function (t) {
  12147. return 0 <= t && t < i.slideCount
  12148. });
  12149. i.$slides.add(i.$slideTrack.find(".slick-cloned")).attr({
  12150. "aria-hidden": "true",
  12151. tabindex: "-1"
  12152. }).find("a, input, button, select").attr({
  12153. tabindex: "-1"
  12154. }), null !== i.$dots && (i.$slides.not(i.$slideTrack.find(".slick-cloned")).each(function (t) {
  12155. var e = s.indexOf(t);
  12156. c(this).attr({
  12157. role: "tabpanel",
  12158. id: "slick-slide" + i.instanceUid + t,
  12159. tabindex: -1
  12160. }), -1 !== e && c(this).attr({
  12161. "aria-describedby": "slick-slide-control" + i.instanceUid + e
  12162. })
  12163. }), i.$dots.attr("role", "tablist").find("li").each(function (t) {
  12164. var e = s[t];
  12165. c(this).attr({
  12166. role: "presentation"
  12167. }), c(this).find("button").first().attr({
  12168. role: "tab",
  12169. id: "slick-slide-control" + i.instanceUid + t,
  12170. "aria-controls": "slick-slide" + i.instanceUid + e,
  12171. "aria-label": t + 1 + " of " + n,
  12172. "aria-selected": null,
  12173. tabindex: "-1"
  12174. })
  12175. }).eq(i.currentSlide).find("button").attr({
  12176. "aria-selected": "true",
  12177. tabindex: "0"
  12178. }).end());
  12179. for (var t = i.currentSlide, e = t + i.options.slidesToShow; t < e; t++) i.$slides.eq(t).attr("tabindex", 0);
  12180. i.activateADA()
  12181. }, o.prototype.initArrowEvents = function () {
  12182. var t = this;
  12183. !0 === t.options.arrows && t.slideCount > t.options.slidesToShow && (t.$prevArrow.off("click.slick").on("click.slick", {
  12184. message: "previous"
  12185. }, t.changeSlide), t.$nextArrow.off("click.slick").on("click.slick", {
  12186. message: "next"
  12187. }, t.changeSlide), !0 === t.options.accessibility && (t.$prevArrow.on("keydown.slick", t.keyHandler), t.$nextArrow.on("keydown.slick", t.keyHandler)))
  12188. }, o.prototype.initDotEvents = function () {
  12189. var t = this;
  12190. !0 === t.options.dots && (c("li", t.$dots).on("click.slick", {
  12191. message: "index"
  12192. }, t.changeSlide), !0 === t.options.accessibility && t.$dots.on("keydown.slick", t.keyHandler)), !0 === t.options.dots && !0 === t.options.pauseOnDotsHover && c("li", t.$dots).on("mouseenter.slick", c.proxy(t.interrupt, t, !0)).on("mouseleave.slick", c.proxy(t.interrupt, t, !1))
  12193. }, o.prototype.initSlideEvents = function () {
  12194. this.options.pauseOnHover && (this.$list.on("mouseenter.slick", c.proxy(this.interrupt, this, !0)), this.$list.on("mouseleave.slick", c.proxy(this.interrupt, this, !1)))
  12195. }, o.prototype.initializeEvents = function () {
  12196. var t = this;
  12197. t.initArrowEvents(), t.initDotEvents(), t.initSlideEvents(), t.$list.on("touchstart.slick mousedown.slick", {
  12198. action: "start"
  12199. }, t.swipeHandler), t.$list.on("touchmove.slick mousemove.slick", {
  12200. action: "move"
  12201. }, t.swipeHandler), t.$list.on("touchend.slick mouseup.slick", {
  12202. action: "end"
  12203. }, t.swipeHandler), t.$list.on("touchcancel.slick mouseleave.slick", {
  12204. action: "end"
  12205. }, t.swipeHandler), t.$list.on("click.slick", t.clickHandler), c(document).on(t.visibilityChange, c.proxy(t.visibility, t)), !0 === t.options.accessibility && t.$list.on("keydown.slick", t.keyHandler), !0 === t.options.focusOnSelect && c(t.$slideTrack).children().on("click.slick", t.selectHandler), c(window).on("orientationchange.slick.slick-" + t.instanceUid, c.proxy(t.orientationChange, t)), c(window).on("resize.slick.slick-" + t.instanceUid, c.proxy(t.resize, t)), c("[draggable!=true]", t.$slideTrack).on("dragstart", t.preventDefault), c(window).on("load.slick.slick-" + t.instanceUid, t.setPosition), c(t.setPosition)
  12206. }, o.prototype.initUI = function () {
  12207. !0 === this.options.arrows && this.slideCount > this.options.slidesToShow && (this.$prevArrow.show(), this.$nextArrow.show()), !0 === this.options.dots && this.slideCount > this.options.slidesToShow && this.$dots.show()
  12208. }, o.prototype.keyHandler = function (t) {
  12209. t.target.tagName.match("TEXTAREA|INPUT|SELECT") || (37 === t.keyCode && !0 === this.options.accessibility ? this.changeSlide({
  12210. data: {
  12211. message: !0 === this.options.rtl ? "next" : "previous"
  12212. }
  12213. }) : 39 === t.keyCode && !0 === this.options.accessibility && this.changeSlide({
  12214. data: {
  12215. message: !0 === this.options.rtl ? "previous" : "next"
  12216. }
  12217. }))
  12218. }, o.prototype.lazyLoad = function () {
  12219. function t(t) {
  12220. c("img[data-lazy]", t).each(function () {
  12221. var t = c(this),
  12222. e = c(this).attr("data-lazy"),
  12223. i = c(this).attr("data-srcset"),
  12224. n = c(this).attr("data-sizes") || o.$slider.attr("data-sizes"),
  12225. s = document.createElement("img");
  12226. s.onload = function () {
  12227. t.animate({
  12228. opacity: 0
  12229. }, 100, function () {
  12230. i && (t.attr("srcset", i), n && t.attr("sizes", n)), t.attr("src", e).animate({
  12231. opacity: 1
  12232. }, 200, function () {
  12233. t.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")
  12234. }), o.$slider.trigger("lazyLoaded", [o, t, e])
  12235. })
  12236. }, s.onerror = function () {
  12237. t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"), o.$slider.trigger("lazyLoadError", [o, t, e])
  12238. }, s.src = e
  12239. })
  12240. }
  12241. var e, i, n, o = this;
  12242. if (!0 === o.options.centerMode ? n = !0 === o.options.infinite ? (i = o.currentSlide + (o.options.slidesToShow / 2 + 1)) + o.options.slidesToShow + 2 : (i = Math.max(0, o.currentSlide - (o.options.slidesToShow / 2 + 1)), o.options.slidesToShow / 2 + 1 + 2 + o.currentSlide) : (i = o.options.infinite ? o.options.slidesToShow + o.currentSlide : o.currentSlide, n = Math.ceil(i + o.options.slidesToShow), !0 === o.options.fade && (0 < i && i--, n <= o.slideCount && n++)), e = o.$slider.find(".slick-slide").slice(i, n), "anticipated" === o.options.lazyLoad)
  12243. for (var s = i - 1, r = n, a = o.$slider.find(".slick-slide"), l = 0; l < o.options.slidesToScroll; l++) s < 0 && (s = o.slideCount - 1), e = (e = e.add(a.eq(s))).add(a.eq(r)), s--, r++;
  12244. t(e), o.slideCount <= o.options.slidesToShow ? t(o.$slider.find(".slick-slide")) : o.currentSlide >= o.slideCount - o.options.slidesToShow ? t(o.$slider.find(".slick-cloned").slice(0, o.options.slidesToShow)) : 0 === o.currentSlide && t(o.$slider.find(".slick-cloned").slice(-1 * o.options.slidesToShow))
  12245. }, o.prototype.loadSlider = function () {
  12246. this.setPosition(), this.$slideTrack.css({
  12247. opacity: 1
  12248. }), this.$slider.removeClass("slick-loading"), this.initUI(), "progressive" === this.options.lazyLoad && this.progressiveLazyLoad()
  12249. }, o.prototype.next = o.prototype.slickNext = function () {
  12250. this.changeSlide({
  12251. data: {
  12252. message: "next"
  12253. }
  12254. })
  12255. }, o.prototype.orientationChange = function () {
  12256. this.checkResponsive(), this.setPosition()
  12257. }, o.prototype.pause = o.prototype.slickPause = function () {
  12258. this.autoPlayClear(), this.paused = !0
  12259. }, o.prototype.play = o.prototype.slickPlay = function () {
  12260. this.autoPlay(), this.options.autoplay = !0, this.paused = !1, this.focussed = !1, this.interrupted = !1
  12261. }, o.prototype.postSlide = function (t) {
  12262. var e = this;
  12263. e.unslicked || (e.$slider.trigger("afterChange", [e, t]), e.animating = !1, e.slideCount > e.options.slidesToShow && e.setPosition(), e.swipeLeft = null, e.options.autoplay && e.autoPlay(), !0 === e.options.accessibility && (e.initADA(), e.options.focusOnChange && c(e.$slides.get(e.currentSlide)).attr("tabindex", 0).focus()))
  12264. }, o.prototype.prev = o.prototype.slickPrev = function () {
  12265. this.changeSlide({
  12266. data: {
  12267. message: "previous"
  12268. }
  12269. })
  12270. }, o.prototype.preventDefault = function (t) {
  12271. t.preventDefault()
  12272. }, o.prototype.progressiveLazyLoad = function (t) {
  12273. t = t || 1;
  12274. var e, i, n, s, o, r = this,
  12275. a = c("img[data-lazy]", r.$slider);
  12276. a.length ? (e = a.first(), i = e.attr("data-lazy"), n = e.attr("data-srcset"), s = e.attr("data-sizes") || r.$slider.attr("data-sizes"), (o = document.createElement("img")).onload = function () {
  12277. n && (e.attr("srcset", n), s && e.attr("sizes", s)), e.attr("src", i).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"), !0 === r.options.adaptiveHeight && r.setPosition(), r.$slider.trigger("lazyLoaded", [r, e, i]), r.progressiveLazyLoad()
  12278. }, o.onerror = function () {
  12279. t < 3 ? setTimeout(function () {
  12280. r.progressiveLazyLoad(t + 1)
  12281. }, 500) : (e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"), r.$slider.trigger("lazyLoadError", [r, e, i]), r.progressiveLazyLoad())
  12282. }, o.src = i) : r.$slider.trigger("allImagesLoaded", [r])
  12283. }, o.prototype.refresh = function (t) {
  12284. var e, i, n = this;
  12285. i = n.slideCount - n.options.slidesToShow, !n.options.infinite && n.currentSlide > i && (n.currentSlide = i), n.slideCount <= n.options.slidesToShow && (n.currentSlide = 0), e = n.currentSlide, n.destroy(!0), c.extend(n, n.initials, {
  12286. currentSlide: e
  12287. }), n.init(), t || n.changeSlide({
  12288. data: {
  12289. message: "index",
  12290. index: e
  12291. }
  12292. }, !1)
  12293. }, o.prototype.registerBreakpoints = function () {
  12294. var t, e, i, n = this,
  12295. s = n.options.responsive || null;
  12296. if ("array" === c.type(s) && s.length) {
  12297. for (t in n.respondTo = n.options.respondTo || "window", s)
  12298. if (i = n.breakpoints.length - 1, s.hasOwnProperty(t)) {
  12299. for (e = s[t].breakpoint; 0 <= i;) n.breakpoints[i] && n.breakpoints[i] === e && n.breakpoints.splice(i, 1), i--;
  12300. n.breakpoints.push(e), n.breakpointSettings[e] = s[t].settings
  12301. } n.breakpoints.sort(function (t, e) {
  12302. return n.options.mobileFirst ? t - e : e - t
  12303. })
  12304. }
  12305. }, o.prototype.reinit = function () {
  12306. var t = this;
  12307. t.$slides = t.$slideTrack.children(t.options.slide).addClass("slick-slide"), t.slideCount = t.$slides.length, t.currentSlide >= t.slideCount && 0 !== t.currentSlide && (t.currentSlide = t.currentSlide - t.options.slidesToScroll), t.slideCount <= t.options.slidesToShow && (t.currentSlide = 0), t.registerBreakpoints(), t.setProps(), t.setupInfinite(), t.buildArrows(), t.updateArrows(), t.initArrowEvents(), t.buildDots(), t.updateDots(), t.initDotEvents(), t.cleanUpSlideEvents(), t.initSlideEvents(), t.checkResponsive(!1, !0), !0 === t.options.focusOnSelect && c(t.$slideTrack).children().on("click.slick", t.selectHandler), t.setSlideClasses("number" == typeof t.currentSlide ? t.currentSlide : 0), t.setPosition(), t.focusHandler(), t.paused = !t.options.autoplay, t.autoPlay(), t.$slider.trigger("reInit", [t])
  12308. }, o.prototype.resize = function () {
  12309. var t = this;
  12310. c(window).width() !== t.windowWidth && (clearTimeout(t.windowDelay), t.windowDelay = window.setTimeout(function () {
  12311. t.windowWidth = c(window).width(), t.checkResponsive(), t.unslicked || t.setPosition()
  12312. }, 50))
  12313. }, o.prototype.removeSlide = o.prototype.slickRemove = function (t, e, i) {
  12314. var n = this;
  12315. if (t = "boolean" == typeof t ? !0 === (e = t) ? 0 : n.slideCount - 1 : !0 === e ? --t : t, n.slideCount < 1 || t < 0 || t > n.slideCount - 1) return !1;
  12316. n.unload(), !0 === i ? n.$slideTrack.children().remove() : n.$slideTrack.children(this.options.slide).eq(t).remove(), n.$slides = n.$slideTrack.children(this.options.slide), n.$slideTrack.children(this.options.slide).detach(), n.$slideTrack.append(n.$slides), n.$slidesCache = n.$slides, n.reinit()
  12317. }, o.prototype.setCSS = function (t) {
  12318. var e, i, n = this,
  12319. s = {};
  12320. !0 === n.options.rtl && (t = -t), e = "left" == n.positionProp ? Math.ceil(t) + "px" : "0px", i = "top" == n.positionProp ? Math.ceil(t) + "px" : "0px", s[n.positionProp] = t, !1 === n.transformsEnabled || (!(s = {}) === n.cssTransitions ? s[n.animType] = "translate(" + e + ", " + i + ")" : s[n.animType] = "translate3d(" + e + ", " + i + ", 0px)"), n.$slideTrack.css(s)
  12321. }, o.prototype.setDimensions = function () {
  12322. var t = this;
  12323. !1 === t.options.vertical ? !0 === t.options.centerMode && t.$list.css({
  12324. padding: "0px " + t.options.centerPadding
  12325. }) : (t.$list.height(t.$slides.first().outerHeight(!0) * t.options.slidesToShow), !0 === t.options.centerMode && t.$list.css({
  12326. padding: t.options.centerPadding + " 0px"
  12327. })), t.listWidth = t.$list.width(), t.listHeight = t.$list.height(), !1 === t.options.vertical && !1 === t.options.variableWidth ? (t.slideWidth = Math.ceil(t.listWidth / t.options.slidesToShow), t.$slideTrack.width(Math.ceil(t.slideWidth * t.$slideTrack.children(".slick-slide").length))) : !0 === t.options.variableWidth ? t.$slideTrack.width(5e3 * t.slideCount) : (t.slideWidth = Math.ceil(t.listWidth), t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0) * t.$slideTrack.children(".slick-slide").length)));
  12328. var e = t.$slides.first().outerWidth(!0) - t.$slides.first().width();
  12329. !1 === t.options.variableWidth && t.$slideTrack.children(".slick-slide").width(t.slideWidth - e)
  12330. }, o.prototype.setFade = function () {
  12331. var i, n = this;
  12332. n.$slides.each(function (t, e) {
  12333. i = n.slideWidth * t * -1, !0 === n.options.rtl ? c(e).css({
  12334. position: "relative",
  12335. right: i,
  12336. top: 0,
  12337. zIndex: n.options.zIndex - 2,
  12338. opacity: 0
  12339. }) : c(e).css({
  12340. position: "relative",
  12341. left: i,
  12342. top: 0,
  12343. zIndex: n.options.zIndex - 2,
  12344. opacity: 0
  12345. })
  12346. }), n.$slides.eq(n.currentSlide).css({
  12347. zIndex: n.options.zIndex - 1,
  12348. opacity: 1
  12349. })
  12350. }, o.prototype.setHeight = function () {
  12351. if (1 === this.options.slidesToShow && !0 === this.options.adaptiveHeight && !1 === this.options.vertical) {
  12352. var t = this.$slides.eq(this.currentSlide).outerHeight(!0);
  12353. this.$list.css("height", t)
  12354. }
  12355. }, o.prototype.setOption = o.prototype.slickSetOption = function () {
  12356. var t, e, i, n, s, o = this,
  12357. r = !1;
  12358. if ("object" === c.type(arguments[0]) ? (i = arguments[0], r = arguments[1], s = "multiple") : "string" === c.type(arguments[0]) && (i = arguments[0], n = arguments[1], r = arguments[2], "responsive" === arguments[0] && "array" === c.type(arguments[1]) ? s = "responsive" : void 0 !== arguments[1] && (s = "single")), "single" === s) o.options[i] = n;
  12359. else if ("multiple" === s) c.each(i, function (t, e) {
  12360. o.options[t] = e
  12361. });
  12362. else if ("responsive" === s)
  12363. for (e in n)
  12364. if ("array" !== c.type(o.options.responsive)) o.options.responsive = [n[e]];
  12365. else {
  12366. for (t = o.options.responsive.length - 1; 0 <= t;) o.options.responsive[t].breakpoint === n[e].breakpoint && o.options.responsive.splice(t, 1), t--;
  12367. o.options.responsive.push(n[e])
  12368. } r && (o.unload(), o.reinit())
  12369. }, o.prototype.setPosition = function () {
  12370. this.setDimensions(), this.setHeight(), !1 === this.options.fade ? this.setCSS(this.getLeft(this.currentSlide)) : this.setFade(), this.$slider.trigger("setPosition", [this])
  12371. }, o.prototype.setProps = function () {
  12372. var t = this,
  12373. e = document.body.style;
  12374. t.positionProp = !0 === t.options.vertical ? "top" : "left", "top" === t.positionProp ? t.$slider.addClass("slick-vertical") : t.$slider.removeClass("slick-vertical"), void 0 === e.WebkitTransition && void 0 === e.MozTransition && void 0 === e.msTransition || !0 === t.options.useCSS && (t.cssTransitions = !0), t.options.fade && ("number" == typeof t.options.zIndex ? t.options.zIndex < 3 && (t.options.zIndex = 3) : t.options.zIndex = t.defaults.zIndex), void 0 !== e.OTransform && (t.animType = "OTransform", t.transformType = "-o-transform", t.transitionType = "OTransition", void 0 === e.perspectiveProperty && void 0 === e.webkitPerspective && (t.animType = !1)), void 0 !== e.MozTransform && (t.animType = "MozTransform", t.transformType = "-moz-transform", t.transitionType = "MozTransition", void 0 === e.perspectiveProperty && void 0 === e.MozPerspective && (t.animType = !1)), void 0 !== e.webkitTransform && (t.animType = "webkitTransform", t.transformType = "-webkit-transform", t.transitionType = "webkitTransition", void 0 === e.perspectiveProperty && void 0 === e.webkitPerspective && (t.animType = !1)), void 0 !== e.msTransform && (t.animType = "msTransform", t.transformType = "-ms-transform", t.transitionType = "msTransition", void 0 === e.msTransform && (t.animType = !1)), void 0 !== e.transform && !1 !== t.animType && (t.animType = "transform", t.transformType = "transform", t.transitionType = "transition"), t.transformsEnabled = t.options.useTransform && null !== t.animType && !1 !== t.animType
  12375. }, o.prototype.setSlideClasses = function (t) {
  12376. var e, i, n, s, o = this;
  12377. if (i = o.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden", "true"), o.$slides.eq(t).addClass("slick-current"), !0 === o.options.centerMode) {
  12378. var r = o.options.slidesToShow % 2 == 0 ? 1 : 0;
  12379. e = Math.floor(o.options.slidesToShow / 2), !0 === o.options.infinite && (e <= t && t <= o.slideCount - 1 - e ? o.$slides.slice(t - e + r, t + e + 1).addClass("slick-active").attr("aria-hidden", "false") : (n = o.options.slidesToShow + t, i.slice(n - e + 1 + r, n + e + 2).addClass("slick-active").attr("aria-hidden", "false")), 0 === t ? i.eq(i.length - 1 - o.options.slidesToShow).addClass("slick-center") : t === o.slideCount - 1 && i.eq(o.options.slidesToShow).addClass("slick-center")), o.$slides.eq(t).addClass("slick-center")
  12380. } else 0 <= t && t <= o.slideCount - o.options.slidesToShow ? o.$slides.slice(t, t + o.options.slidesToShow).addClass("slick-active").attr("aria-hidden", "false") : i.length <= o.options.slidesToShow ? i.addClass("slick-active").attr("aria-hidden", "false") : (s = o.slideCount % o.options.slidesToShow, n = !0 === o.options.infinite ? o.options.slidesToShow + t : t, o.options.slidesToShow == o.options.slidesToScroll && o.slideCount - t < o.options.slidesToShow ? i.slice(n - (o.options.slidesToShow - s), n + s).addClass("slick-active").attr("aria-hidden", "false") : i.slice(n, n + o.options.slidesToShow).addClass("slick-active").attr("aria-hidden", "false"));
  12381. "ondemand" !== o.options.lazyLoad && "anticipated" !== o.options.lazyLoad || o.lazyLoad()
  12382. }, o.prototype.setupInfinite = function () {
  12383. var t, e, i, n = this;
  12384. if (!0 === n.options.fade && (n.options.centerMode = !1), !0 === n.options.infinite && !1 === n.options.fade && (e = null, n.slideCount > n.options.slidesToShow)) {
  12385. for (i = !0 === n.options.centerMode ? n.options.slidesToShow + 1 : n.options.slidesToShow, t = n.slideCount; t > n.slideCount - i; t -= 1) e = t - 1, c(n.$slides[e]).clone(!0).attr("id", "").attr("data-slick-index", e - n.slideCount).prependTo(n.$slideTrack).addClass("slick-cloned");
  12386. for (t = 0; t < i + n.slideCount; t += 1) e = t, c(n.$slides[e]).clone(!0).attr("id", "").attr("data-slick-index", e + n.slideCount).appendTo(n.$slideTrack).addClass("slick-cloned");
  12387. n.$slideTrack.find(".slick-cloned").find("[id]").each(function () {
  12388. c(this).attr("id", "")
  12389. })
  12390. }
  12391. }, o.prototype.interrupt = function (t) {
  12392. t || this.autoPlay(), this.interrupted = t
  12393. }, o.prototype.selectHandler = function (t) {
  12394. var e = c(t.target).is(".slick-slide") ? c(t.target) : c(t.target).parents(".slick-slide"),
  12395. i = parseInt(e.attr("data-slick-index"));
  12396. i || (i = 0), this.slideCount <= this.options.slidesToShow ? this.slideHandler(i, !1, !0) : this.slideHandler(i)
  12397. }, o.prototype.slideHandler = function (t, e, i) {
  12398. var n, s, o, r, a, l = null,
  12399. c = this;
  12400. if (e = e || !1, !(!0 === c.animating && !0 === c.options.waitForAnimate || !0 === c.options.fade && c.currentSlide === t))
  12401. if (!1 === e && c.asNavFor(t), n = t, l = c.getLeft(n), r = c.getLeft(c.currentSlide), c.currentLeft = null === c.swipeLeft ? r : c.swipeLeft, !1 === c.options.infinite && !1 === c.options.centerMode && (t < 0 || t > c.getDotCount() * c.options.slidesToScroll)) !1 === c.options.fade && (n = c.currentSlide, !0 !== i ? c.animateSlide(r, function () {
  12402. c.postSlide(n)
  12403. }) : c.postSlide(n));
  12404. else if (!1 === c.options.infinite && !0 === c.options.centerMode && (t < 0 || t > c.slideCount - c.options.slidesToScroll)) !1 === c.options.fade && (n = c.currentSlide, !0 !== i ? c.animateSlide(r, function () {
  12405. c.postSlide(n)
  12406. }) : c.postSlide(n));
  12407. else {
  12408. if (c.options.autoplay && clearInterval(c.autoPlayTimer), s = n < 0 ? c.slideCount % c.options.slidesToScroll != 0 ? c.slideCount - c.slideCount % c.options.slidesToScroll : c.slideCount + n : n >= c.slideCount ? c.slideCount % c.options.slidesToScroll != 0 ? 0 : n - c.slideCount : n, c.animating = !0, c.$slider.trigger("beforeChange", [c, c.currentSlide, s]), o = c.currentSlide, c.currentSlide = s, c.setSlideClasses(c.currentSlide), c.options.asNavFor && (a = (a = c.getNavTarget()).slick("getSlick")).slideCount <= a.options.slidesToShow && a.setSlideClasses(c.currentSlide), c.updateDots(), c.updateArrows(), !0 === c.options.fade) return !0 !== i ? (c.fadeSlideOut(o), c.fadeSlide(s, function () {
  12409. c.postSlide(s)
  12410. })) : c.postSlide(s), void c.animateHeight();
  12411. !0 !== i ? c.animateSlide(l, function () {
  12412. c.postSlide(s)
  12413. }) : c.postSlide(s)
  12414. }
  12415. }, o.prototype.startLoad = function () {
  12416. var t = this;
  12417. !0 === t.options.arrows && t.slideCount > t.options.slidesToShow && (t.$prevArrow.hide(), t.$nextArrow.hide()), !0 === t.options.dots && t.slideCount > t.options.slidesToShow && t.$dots.hide(), t.$slider.addClass("slick-loading")
  12418. }, o.prototype.swipeDirection = function () {
  12419. var t, e, i, n;
  12420. return t = this.touchObject.startX - this.touchObject.curX, e = this.touchObject.startY - this.touchObject.curY, i = Math.atan2(e, t), (n = Math.round(180 * i / Math.PI)) < 0 && (n = 360 - Math.abs(n)), n <= 45 && 0 <= n ? !1 === this.options.rtl ? "left" : "right" : n <= 360 && 315 <= n ? !1 === this.options.rtl ? "left" : "right" : 135 <= n && n <= 225 ? !1 === this.options.rtl ? "right" : "left" : !0 === this.options.verticalSwiping ? 35 <= n && n <= 135 ? "down" : "up" : "vertical"
  12421. }, o.prototype.swipeEnd = function (t) {
  12422. var e, i, n = this;
  12423. if (n.dragging = !1, n.swiping = !1, n.scrolling) return n.scrolling = !1;
  12424. if (n.interrupted = !1, n.shouldClick = !(10 < n.touchObject.swipeLength), void 0 === n.touchObject.curX) return !1;
  12425. if (!0 === n.touchObject.edgeHit && n.$slider.trigger("edge", [n, n.swipeDirection()]), n.touchObject.swipeLength >= n.touchObject.minSwipe) {
  12426. switch (i = n.swipeDirection()) {
  12427. case "left":
  12428. case "down":
  12429. e = n.options.swipeToSlide ? n.checkNavigable(n.currentSlide + n.getSlideCount()) : n.currentSlide + n.getSlideCount(), n.currentDirection = 0;
  12430. break;
  12431. case "right":
  12432. case "up":
  12433. e = n.options.swipeToSlide ? n.checkNavigable(n.currentSlide - n.getSlideCount()) : n.currentSlide - n.getSlideCount(), n.currentDirection = 1
  12434. }
  12435. "vertical" != i && (n.slideHandler(e), n.touchObject = {}, n.$slider.trigger("swipe", [n, i]))
  12436. } else n.touchObject.startX !== n.touchObject.curX && (n.slideHandler(n.currentSlide), n.touchObject = {})
  12437. }, o.prototype.swipeHandler = function (t) {
  12438. var e = this;
  12439. if (!(!1 === e.options.swipe || "ontouchend" in document && !1 === e.options.swipe || !1 === e.options.draggable && -1 !== t.type.indexOf("mouse"))) switch (e.touchObject.fingerCount = t.originalEvent && void 0 !== t.originalEvent.touches ? t.originalEvent.touches.length : 1, e.touchObject.minSwipe = e.listWidth / e.options.touchThreshold, !0 === e.options.verticalSwiping && (e.touchObject.minSwipe = e.listHeight / e.options.touchThreshold), t.data.action) {
  12440. case "start":
  12441. e.swipeStart(t);
  12442. break;
  12443. case "move":
  12444. e.swipeMove(t);
  12445. break;
  12446. case "end":
  12447. e.swipeEnd(t)
  12448. }
  12449. }, o.prototype.swipeMove = function (t) {
  12450. var e, i, n, s, o, r, a = this;
  12451. return o = void 0 !== t.originalEvent ? t.originalEvent.touches : null, !(!a.dragging || a.scrolling || o && 1 !== o.length) && (e = a.getLeft(a.currentSlide), a.touchObject.curX = void 0 !== o ? o[0].pageX : t.clientX, a.touchObject.curY = void 0 !== o ? o[0].pageY : t.clientY, a.touchObject.swipeLength = Math.round(Math.sqrt(Math.pow(a.touchObject.curX - a.touchObject.startX, 2))), r = Math.round(Math.sqrt(Math.pow(a.touchObject.curY - a.touchObject.startY, 2))), !a.options.verticalSwiping && !a.swiping && 4 < r ? !(a.scrolling = !0) : (!0 === a.options.verticalSwiping && (a.touchObject.swipeLength = r), i = a.swipeDirection(), void 0 !== t.originalEvent && 4 < a.touchObject.swipeLength && (a.swiping = !0, t.preventDefault()), s = (!1 === a.options.rtl ? 1 : -1) * (a.touchObject.curX > a.touchObject.startX ? 1 : -1), !0 === a.options.verticalSwiping && (s = a.touchObject.curY > a.touchObject.startY ? 1 : -1), n = a.touchObject.swipeLength, (a.touchObject.edgeHit = !1) === a.options.infinite && (0 === a.currentSlide && "right" === i || a.currentSlide >= a.getDotCount() && "left" === i) && (n = a.touchObject.swipeLength * a.options.edgeFriction, a.touchObject.edgeHit = !0), !1 === a.options.vertical ? a.swipeLeft = e + n * s : a.swipeLeft = e + n * (a.$list.height() / a.listWidth) * s, !0 === a.options.verticalSwiping && (a.swipeLeft = e + n * s), !0 !== a.options.fade && !1 !== a.options.touchMove && (!0 === a.animating ? (a.swipeLeft = null, !1) : void a.setCSS(a.swipeLeft))))
  12452. }, o.prototype.swipeStart = function (t) {
  12453. var e, i = this;
  12454. if (i.interrupted = !0, 1 !== i.touchObject.fingerCount || i.slideCount <= i.options.slidesToShow) return !(i.touchObject = {});
  12455. void 0 !== t.originalEvent && void 0 !== t.originalEvent.touches && (e = t.originalEvent.touches[0]), i.touchObject.startX = i.touchObject.curX = void 0 !== e ? e.pageX : t.clientX, i.touchObject.startY = i.touchObject.curY = void 0 !== e ? e.pageY : t.clientY, i.dragging = !0
  12456. }, o.prototype.unfilterSlides = o.prototype.slickUnfilter = function () {
  12457. null !== this.$slidesCache && (this.unload(), this.$slideTrack.children(this.options.slide).detach(), this.$slidesCache.appendTo(this.$slideTrack), this.reinit())
  12458. }, o.prototype.unload = function () {
  12459. var t = this;
  12460. c(".slick-cloned", t.$slider).remove(), t.$dots && t.$dots.remove(), t.$prevArrow && t.htmlExpr.test(t.options.prevArrow) && t.$prevArrow.remove(), t.$nextArrow && t.htmlExpr.test(t.options.nextArrow) && t.$nextArrow.remove(), t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden", "true").css("width", "")
  12461. }, o.prototype.unslick = function (t) {
  12462. this.$slider.trigger("unslick", [this, t]), this.destroy()
  12463. }, o.prototype.updateArrows = function () {
  12464. var t = this;
  12465. Math.floor(t.options.slidesToShow / 2), !0 === t.options.arrows && t.slideCount > t.options.slidesToShow && !t.options.infinite && (t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled", "false"), t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled", "false"), 0 === t.currentSlide ? (t.$prevArrow.addClass("slick-disabled").attr("aria-disabled", "true"), t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled", "false")) : t.currentSlide >= t.slideCount - t.options.slidesToShow && !1 === t.options.centerMode ? (t.$nextArrow.addClass("slick-disabled").attr("aria-disabled", "true"), t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled", "false")) : t.currentSlide >= t.slideCount - 1 && !0 === t.options.centerMode && (t.$nextArrow.addClass("slick-disabled").attr("aria-disabled", "true"), t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled", "false")))
  12466. }, o.prototype.updateDots = function () {
  12467. null !== this.$dots && (this.$dots.find("li").removeClass("slick-active").end(), this.$dots.find("li").eq(Math.floor(this.currentSlide / this.options.slidesToScroll)).addClass("slick-active"))
  12468. }, o.prototype.visibility = function () {
  12469. this.options.autoplay && (document[this.hidden] ? this.interrupted = !0 : this.interrupted = !1)
  12470. }, c.fn.slick = function () {
  12471. var t, e, i = arguments[0],
  12472. n = Array.prototype.slice.call(arguments, 1),
  12473. s = this.length;
  12474. for (t = 0; t < s; t++)
  12475. if ("object" == _typeof(i) || void 0 === i ? this[t].slick = new o(this[t], i) : e = this[t].slick[i].apply(this[t].slick, n), void 0 !== e) return e;
  12476. return this
  12477. }
  12478. }),
  12479. function (v) {
  12480. v.fn.slickAnimation = function () {
  12481. function h(t, e, i, n, s) {
  12482. s = void 0 !== s && s, 1 == e.opacity ? (t.addClass(i), t.addClass(n)) : (t.removeClass(i), t.removeClass(n)), s && t.css(e)
  12483. }
  12484. function d(t, e) {
  12485. return t ? 1e3 * t + 1e3 : e ? 1e3 * e : t || e ? 1e3 * t + 1e3 * e : 1e3
  12486. }
  12487. function p(t, e, i) {
  12488. var n = {};
  12489. ["animation-" + e, "-webkit-animation-" + e, "-moz-animation-" + e, "-o-animation-" + e, "-ms-animation-" + e].forEach(function (t) {
  12490. n[t] = i + "s"
  12491. }), t.css(n)
  12492. }
  12493. var t = v(this),
  12494. e = t.find(".slick-list .slick-track > div"),
  12495. i = t.find('[data-slick-index="0"]'),
  12496. f = "animated",
  12497. g = {
  12498. opacity: "1"
  12499. },
  12500. m = {
  12501. opacity: "0"
  12502. };
  12503. return e.each(function () {
  12504. var u = v(this);
  12505. u.find("[data-animation-in]").each(function () {
  12506. var n = v(this);
  12507. n.css(m);
  12508. var s = n.attr("data-animation-in"),
  12509. o = n.attr("data-animation-out"),
  12510. r = n.attr("data-delay-in"),
  12511. a = n.attr("data-duration-in"),
  12512. l = n.attr("data-delay-out"),
  12513. c = n.attr("data-duration-out");
  12514. o ? (0 < i.length && u.hasClass("slick-current") && (h(n, g, s, f, !0), r && p(n, "delay", r), a && p(n, "duration", a), setTimeout(function () {
  12515. h(n, m, s, f), h(n, g, o, f), l && p(n, "delay", l), c && p(n, "duration", c)
  12516. }, d(r, a))), t.on("afterChange", function (t, e, i) {
  12517. u.hasClass("slick-current") && (h(n, g, s, f, !0), r && p(n, "delay", r), a && p(n, "duration", a), setTimeout(function () {
  12518. h(n, m, s, f), h(n, g, o, f), l && p(n, "delay", l), c && p(n, "duration", c)
  12519. }, d(r, a)))
  12520. }), t.on("beforeChange", function (t, e, i) {
  12521. h(n, m, o, f, !0)
  12522. })) : (0 < i.length && u.hasClass("slick-current") && (h(n, g, s, f, !0), r && p(n, "delay", r), a && p(n, "duration", a)), t.on("afterChange", function (t, e, i) {
  12523. u.hasClass("slick-current") && (h(n, g, s, f, !0), r && p(n, "delay", r), a && p(n, "duration", a))
  12524. }), t.on("beforeChange", function (t, e, i) {
  12525. h(n, m, s, f, !0)
  12526. }))
  12527. })
  12528. }), this
  12529. }
  12530. }(jQuery),
  12531. function (c, u, h) {
  12532. c.fn.scrollUp = function (t) {
  12533. c.data(h.body, "scrollUp") || (c.data(h.body, "scrollUp", !0), c.fn.scrollUp.init(t))
  12534. }, c.fn.scrollUp.init = function (t) {
  12535. var e, i, n, s, o, r, a = c.fn.scrollUp.settings = c.extend({}, c.fn.scrollUp.defaults, t),
  12536. l = !1;
  12537. switch (r = a.scrollTrigger ? c(a.scrollTrigger) : c("<a/>", {
  12538. id: a.scrollName,
  12539. href: "#top"
  12540. }), a.scrollTitle && r.attr("title", a.scrollTitle), r.appendTo("body"), a.scrollImg || a.scrollTrigger || r.html(a.scrollText), r.css({
  12541. display: "none",
  12542. position: "fixed",
  12543. zIndex: a.zIndex
  12544. }), a.activeOverlay && c("<div/>", {
  12545. id: a.scrollName + "-active"
  12546. }).css({
  12547. position: "absolute",
  12548. top: a.scrollDistance + "px",
  12549. width: "100%",
  12550. borderTop: "1px dotted" + a.activeOverlay,
  12551. zIndex: a.zIndex
  12552. }).appendTo("body"), a.animation) {
  12553. case "fade":
  12554. e = "fadeIn", i = "fadeOut", n = a.animationSpeed;
  12555. break;
  12556. case "slide":
  12557. e = "slideDown", i = "slideUp", n = a.animationSpeed;
  12558. break;
  12559. default:
  12560. e = "show", i = "hide", n = 0
  12561. }
  12562. s = "top" === a.scrollFrom ? a.scrollDistance : c(h).height() - c(u).height() - a.scrollDistance, c(u).scroll(function () {
  12563. c(u).scrollTop() > s ? l || (r[e](n), l = !0) : l && (r[i](n), l = !1)
  12564. }), a.scrollTarget ? "number" == typeof a.scrollTarget ? o = a.scrollTarget : "string" == typeof a.scrollTarget && (o = Math.floor(c(a.scrollTarget).offset().top)) : o = 0, r.click(function (t) {
  12565. t.preventDefault(), c("html, body").animate({
  12566. scrollTop: o
  12567. }, a.scrollSpeed, a.easingType)
  12568. })
  12569. }, c.fn.scrollUp.defaults = {
  12570. scrollName: "scrollUp",
  12571. scrollDistance: 300,
  12572. scrollFrom: "top",
  12573. scrollSpeed: 300,
  12574. easingType: "linear",
  12575. animation: "fade",
  12576. animationSpeed: 200,
  12577. scrollTrigger: !1,
  12578. scrollTarget: !1,
  12579. scrollText: "Scroll to top",
  12580. scrollTitle: !1,
  12581. scrollImg: !1,
  12582. activeOverlay: !1,
  12583. zIndex: 2147483647
  12584. }, c.fn.scrollUp.destroy = function (t) {
  12585. c.removeData(h.body, "scrollUp"), c("#" + c.fn.scrollUp.settings.scrollName).remove(), c("#" + c.fn.scrollUp.settings.scrollName + "-active").remove(), 7 <= c.fn.jquery.split(".")[1] ? c(u).off("scroll", t) : c(u).unbind("scroll", t)
  12586. }, c.scrollUp = c.fn.scrollUp
  12587. }(jQuery, window, document),
  12588. function (t, e) {
  12589. "object" == ("undefined" == typeof module ? "undefined" : _typeof(module)) && "object" == _typeof(module.exports) ? module.exports = t.document ? e(t, !0) : function (t) {
  12590. if (!t.document) throw new Error("jQuery requires a window with a document");
  12591. return e(t)
  12592. } : e(t)
  12593. }("undefined" != typeof window ? window : void 0, function (x, t) {
  12594. function g(t) {
  12595. return null != t && t === t.window
  12596. }
  12597. var e = [],
  12598. n = Object.getPrototypeOf,
  12599. a = e.slice,
  12600. m = e.flat ? function (t) {
  12601. return e.flat.call(t)
  12602. } : function (t) {
  12603. return e.concat.apply([], t)
  12604. },
  12605. l = e.push,
  12606. s = e.indexOf,
  12607. i = {},
  12608. o = i.toString,
  12609. v = i.hasOwnProperty,
  12610. r = v.toString,
  12611. c = r.call(Object),
  12612. _ = {},
  12613. y = function (t) {
  12614. return "function" == typeof t && "number" != typeof t.nodeType && "function" != typeof t.item
  12615. },
  12616. C = x.document,
  12617. u = {
  12618. type: !0,
  12619. src: !0,
  12620. nonce: !0,
  12621. noModule: !0
  12622. };
  12623. function b(t, e, i) {
  12624. var n, s, o = (i = i || C).createElement("script");
  12625. if (o.text = t, e)
  12626. for (n in u)(s = e[n] || e.getAttribute && e.getAttribute(n)) && o.setAttribute(n, s);
  12627. i.head.appendChild(o).parentNode.removeChild(o)
  12628. }
  12629. function w(t) {
  12630. return null == t ? t + "" : "object" == _typeof(t) || "function" == typeof t ? i[o.call(t)] || "object" : _typeof(t)
  12631. }
  12632. var T = function t(e, i) {
  12633. return new t.fn.init(e, i)
  12634. };
  12635. function h(t) {
  12636. var e = !!t && "length" in t && t.length,
  12637. i = w(t);
  12638. return !y(t) && !g(t) && ("array" === i || 0 === e || "number" == typeof e && 0 < e && e - 1 in t)
  12639. }
  12640. T.fn = T.prototype = {
  12641. jquery: "3.6.0",
  12642. constructor: T,
  12643. length: 0,
  12644. toArray: function () {
  12645. return a.call(this)
  12646. },
  12647. get: function (t) {
  12648. return null == t ? a.call(this) : t < 0 ? this[t + this.length] : this[t]
  12649. },
  12650. pushStack: function (t) {
  12651. var e = T.merge(this.constructor(), t);
  12652. return e.prevObject = this, e
  12653. },
  12654. each: function (t) {
  12655. return T.each(this, t)
  12656. },
  12657. map: function (i) {
  12658. return this.pushStack(T.map(this, function (t, e) {
  12659. return i.call(t, e, t)
  12660. }))
  12661. },
  12662. slice: function () {
  12663. return this.pushStack(a.apply(this, arguments))
  12664. },
  12665. first: function () {
  12666. return this.eq(0)
  12667. },
  12668. last: function () {
  12669. return this.eq(-1)
  12670. },
  12671. even: function () {
  12672. return this.pushStack(T.grep(this, function (t, e) {
  12673. return (e + 1) % 2
  12674. }))
  12675. },
  12676. odd: function () {
  12677. return this.pushStack(T.grep(this, function (t, e) {
  12678. return e % 2
  12679. }))
  12680. },
  12681. eq: function (t) {
  12682. var e = this.length,
  12683. i = +t + (t < 0 ? e : 0);
  12684. return this.pushStack(0 <= i && i < e ? [this[i]] : [])
  12685. },
  12686. end: function () {
  12687. return this.prevObject || this.constructor()
  12688. },
  12689. push: l,
  12690. sort: e.sort,
  12691. splice: e.splice
  12692. }, T.extend = T.fn.extend = function () {
  12693. var t, e, i, n, s, o, r = arguments[0] || {},
  12694. a = 1,
  12695. l = arguments.length,
  12696. c = !1;
  12697. for ("boolean" == typeof r && (c = r, r = arguments[a] || {}, a++), "object" == _typeof(r) || y(r) || (r = {}), a === l && (r = this, a--); a < l; a++)
  12698. if (null != (t = arguments[a]))
  12699. for (e in t) n = t[e], "__proto__" !== e && r !== n && (c && n && (T.isPlainObject(n) || (s = Array.isArray(n))) ? (i = r[e], o = s && !Array.isArray(i) ? [] : s || T.isPlainObject(i) ? i : {}, s = !1, r[e] = T.extend(c, o, n)) : void 0 !== n && (r[e] = n));
  12700. return r
  12701. }, T.extend({
  12702. expando: "jQuery" + ("3.6.0" + Math.random()).replace(/\D/g, ""),
  12703. isReady: !0,
  12704. error: function (t) {
  12705. throw new Error(t)
  12706. },
  12707. noop: function () {},
  12708. isPlainObject: function (t) {
  12709. var e, i;
  12710. return !(!t || "[object Object]" !== o.call(t) || (e = n(t)) && ("function" != typeof (i = v.call(e, "constructor") && e.constructor) || r.call(i) !== c))
  12711. },
  12712. isEmptyObject: function (t) {
  12713. var e;
  12714. for (e in t) return !1;
  12715. return !0
  12716. },
  12717. globalEval: function (t, e, i) {
  12718. b(t, {
  12719. nonce: e && e.nonce
  12720. }, i)
  12721. },
  12722. each: function (t, e) {
  12723. var i, n = 0;
  12724. if (h(t))
  12725. for (i = t.length; n < i && !1 !== e.call(t[n], n, t[n]); n++);
  12726. else
  12727. for (n in t)
  12728. if (!1 === e.call(t[n], n, t[n])) break;
  12729. return t
  12730. },
  12731. makeArray: function (t, e) {
  12732. var i = e || [];
  12733. return null != t && (h(Object(t)) ? T.merge(i, "string" == typeof t ? [t] : t) : l.call(i, t)), i
  12734. },
  12735. inArray: function (t, e, i) {
  12736. return null == e ? -1 : s.call(e, t, i)
  12737. },
  12738. merge: function (t, e) {
  12739. for (var i = +e.length, n = 0, s = t.length; n < i; n++) t[s++] = e[n];
  12740. return t.length = s, t
  12741. },
  12742. grep: function (t, e, i) {
  12743. for (var n = [], s = 0, o = t.length, r = !i; s < o; s++) !e(t[s], s) != r && n.push(t[s]);
  12744. return n
  12745. },
  12746. map: function (t, e, i) {
  12747. var n, s, o = 0,
  12748. r = [];
  12749. if (h(t))
  12750. for (n = t.length; o < n; o++) null != (s = e(t[o], o, i)) && r.push(s);
  12751. else
  12752. for (o in t) null != (s = e(t[o], o, i)) && r.push(s);
  12753. return m(r)
  12754. },
  12755. guid: 1,
  12756. support: _
  12757. }), "function" == typeof Symbol && (T.fn[Symbol.iterator] = e[Symbol.iterator]), T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "), function (t, e) {
  12758. i["[object " + e + "]"] = e.toLowerCase()
  12759. });
  12760. var d = function (i) {
  12761. function h(t, e) {
  12762. var i = "0x" + t.slice(1) - 65536;
  12763. return e || (i < 0 ? String.fromCharCode(65536 + i) : String.fromCharCode(i >> 10 | 55296, 1023 & i | 56320))
  12764. }
  12765. function s() {
  12766. k()
  12767. }
  12768. var t, p, b, o, r, f, d, g, w, l, c, k, x, a, C, m, u, v, _, T = "sizzle" + 1 * new Date,
  12769. y = i.document,
  12770. S = 0,
  12771. n = 0,
  12772. D = lt(),
  12773. A = lt(),
  12774. E = lt(),
  12775. P = lt(),
  12776. I = function (t, e) {
  12777. return t === e && (c = !0), 0
  12778. },
  12779. O = {}.hasOwnProperty,
  12780. e = [],
  12781. M = e.pop,
  12782. N = e.push,
  12783. L = e.push,
  12784. H = e.slice,
  12785. j = function (t, e) {
  12786. for (var i = 0, n = t.length; i < n; i++)
  12787. if (t[i] === e) return i;
  12788. return -1
  12789. },
  12790. z = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
  12791. W = "[\\x20\\t\\r\\n\\f]",
  12792. $ = "(?:\\\\[\\da-fA-F]{1,6}" + W + "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",
  12793. R = "\\[" + W + "*(" + $ + ")(?:" + W + "*([*^$|!~]?=)" + W + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + $ + "))|)" + W + "*\\]",
  12794. F = ":(" + $ + ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" + R + ")*)|.*)\\)|)",
  12795. q = new RegExp(W + "+", "g"),
  12796. B = new RegExp("^" + W + "+|((?:^|[^\\\\])(?:\\\\.)*)" + W + "+$", "g"),
  12797. U = new RegExp("^" + W + "*," + W + "*"),
  12798. Y = new RegExp("^" + W + "*([>+~]|" + W + ")" + W + "*"),
  12799. V = new RegExp(W + "|>"),
  12800. K = new RegExp(F),
  12801. X = new RegExp("^" + $ + "$"),
  12802. Q = {
  12803. ID: new RegExp("^#(" + $ + ")"),
  12804. CLASS: new RegExp("^\\.(" + $ + ")"),
  12805. TAG: new RegExp("^(" + $ + "|[*])"),
  12806. ATTR: new RegExp("^" + R),
  12807. PSEUDO: new RegExp("^" + F),
  12808. CHILD: new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + W + "*(even|odd|(([+-]|)(\\d*)n|)" + W + "*(?:([+-]|)" + W + "*(\\d+)|))" + W + "*\\)|)", "i"),
  12809. bool: new RegExp("^(?:" + z + ")$", "i"),
  12810. needsContext: new RegExp("^" + W + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + W + "*((?:-\\d)?\\d*)" + W + "*\\)|)(?=[^-]|$)", "i")
  12811. },
  12812. G = /HTML$/i,
  12813. J = /^(?:input|select|textarea|button)$/i,
  12814. Z = /^h\d$/i,
  12815. tt = /^[^{]+\{\s*\[native \w/,
  12816. et = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
  12817. it = /[+~]/,
  12818. nt = new RegExp("\\\\[\\da-fA-F]{1,6}" + W + "?|\\\\([^\\r\\n\\f])", "g"),
  12819. st = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,
  12820. ot = function (t, e) {
  12821. return e ? "\0" === t ? "�" : t.slice(0, -1) + "\\" + t.charCodeAt(t.length - 1).toString(16) + " " : "\\" + t
  12822. },
  12823. rt = bt(function (t) {
  12824. return !0 === t.disabled && "fieldset" === t.nodeName.toLowerCase()
  12825. }, {
  12826. dir: "parentNode",
  12827. next: "legend"
  12828. });
  12829. try {
  12830. L.apply(e = H.call(y.childNodes), y.childNodes), e[y.childNodes.length].nodeType
  12831. } catch (t) {
  12832. L = {
  12833. apply: e.length ? function (t, e) {
  12834. N.apply(t, H.call(e))
  12835. } : function (t, e) {
  12836. for (var i = t.length, n = 0; t[i++] = e[n++];);
  12837. t.length = i - 1
  12838. }
  12839. }
  12840. }
  12841. function at(t, e, i, n) {
  12842. var s, o, r, a, l, c, u, h = e && e.ownerDocument,
  12843. d = e ? e.nodeType : 9;
  12844. if (i = i || [], "string" != typeof t || !t || 1 !== d && 9 !== d && 11 !== d) return i;
  12845. if (!n && (k(e), e = e || x, C)) {
  12846. if (11 !== d && (l = et.exec(t)))
  12847. if (s = l[1]) {
  12848. if (9 === d) {
  12849. if (!(r = e.getElementById(s))) return i;
  12850. if (r.id === s) return i.push(r), i
  12851. } else if (h && (r = h.getElementById(s)) && _(e, r) && r.id === s) return i.push(r), i
  12852. } else {
  12853. if (l[2]) return L.apply(i, e.getElementsByTagName(t)), i;
  12854. if ((s = l[3]) && p.getElementsByClassName && e.getElementsByClassName) return L.apply(i, e.getElementsByClassName(s)), i
  12855. } if (p.qsa && !P[t + " "] && (!m || !m.test(t)) && (1 !== d || "object" !== e.nodeName.toLowerCase())) {
  12856. if (u = t, h = e, 1 === d && (V.test(t) || Y.test(t))) {
  12857. for ((h = it.test(t) && vt(e.parentNode) || e) === e && p.scope || ((a = e.getAttribute("id")) ? a = a.replace(st, ot) : e.setAttribute("id", a = T)), o = (c = f(t)).length; o--;) c[o] = (a ? "#" + a : ":scope") + " " + yt(c[o]);
  12858. u = c.join(",")
  12859. }
  12860. try {
  12861. return L.apply(i, h.querySelectorAll(u)), i
  12862. } catch (e) {
  12863. P(t, !0)
  12864. } finally {
  12865. a === T && e.removeAttribute("id")
  12866. }
  12867. }
  12868. }
  12869. return g(t.replace(B, "$1"), e, i, n)
  12870. }
  12871. function lt() {
  12872. var n = [];
  12873. return function t(e, i) {
  12874. return n.push(e + " ") > b.cacheLength && delete t[n.shift()], t[e + " "] = i
  12875. }
  12876. }
  12877. function ct(t) {
  12878. return t[T] = !0, t
  12879. }
  12880. function ut(t) {
  12881. var e = x.createElement("fieldset");
  12882. try {
  12883. return !!t(e)
  12884. } catch (t) {
  12885. return !1
  12886. } finally {
  12887. e.parentNode && e.parentNode.removeChild(e), e = null
  12888. }
  12889. }
  12890. function ht(t, e) {
  12891. for (var i = t.split("|"), n = i.length; n--;) b.attrHandle[i[n]] = e
  12892. }
  12893. function dt(t, e) {
  12894. var i = e && t,
  12895. n = i && 1 === t.nodeType && 1 === e.nodeType && t.sourceIndex - e.sourceIndex;
  12896. if (n) return n;
  12897. if (i)
  12898. for (; i = i.nextSibling;)
  12899. if (i === e) return -1;
  12900. return t ? 1 : -1
  12901. }
  12902. function pt(e) {
  12903. return function (t) {
  12904. return "input" === t.nodeName.toLowerCase() && t.type === e
  12905. }
  12906. }
  12907. function ft(i) {
  12908. return function (t) {
  12909. var e = t.nodeName.toLowerCase();
  12910. return ("input" === e || "button" === e) && t.type === i
  12911. }
  12912. }
  12913. function gt(e) {
  12914. return function (t) {
  12915. return "form" in t ? t.parentNode && !1 === t.disabled ? "label" in t ? "label" in t.parentNode ? t.parentNode.disabled === e : t.disabled === e : t.isDisabled === e || t.isDisabled !== !e && rt(t) === e : t.disabled === e : "label" in t && t.disabled === e
  12916. }
  12917. }
  12918. function mt(r) {
  12919. return ct(function (o) {
  12920. return o = +o, ct(function (t, e) {
  12921. for (var i, n = r([], t.length, o), s = n.length; s--;) t[i = n[s]] && (t[i] = !(e[i] = t[i]))
  12922. })
  12923. })
  12924. }
  12925. function vt(t) {
  12926. return t && void 0 !== t.getElementsByTagName && t
  12927. }
  12928. for (t in p = at.support = {}, r = at.isXML = function (t) {
  12929. var e = t && t.namespaceURI,
  12930. i = t && (t.ownerDocument || t).documentElement;
  12931. return !G.test(e || i && i.nodeName || "HTML")
  12932. }, k = at.setDocument = function (t) {
  12933. var e, i, n = t ? t.ownerDocument || t : y;
  12934. return n != x && 9 === n.nodeType && n.documentElement && (a = (x = n).documentElement, C = !r(x), y != x && (i = x.defaultView) && i.top !== i && (i.addEventListener ? i.addEventListener("unload", s, !1) : i.attachEvent && i.attachEvent("onunload", s)), p.scope = ut(function (t) {
  12935. return a.appendChild(t).appendChild(x.createElement("div")), void 0 !== t.querySelectorAll && !t.querySelectorAll(":scope fieldset div").length
  12936. }), p.attributes = ut(function (t) {
  12937. return t.className = "i", !t.getAttribute("className")
  12938. }), p.getElementsByTagName = ut(function (t) {
  12939. return t.appendChild(x.createComment("")), !t.getElementsByTagName("*").length
  12940. }), p.getElementsByClassName = tt.test(x.getElementsByClassName), p.getById = ut(function (t) {
  12941. return a.appendChild(t).id = T, !x.getElementsByName || !x.getElementsByName(T).length
  12942. }), p.getById ? (b.filter.ID = function (t) {
  12943. var e = t.replace(nt, h);
  12944. return function (t) {
  12945. return t.getAttribute("id") === e
  12946. }
  12947. }, b.find.ID = function (t, e) {
  12948. if (void 0 !== e.getElementById && C) {
  12949. var i = e.getElementById(t);
  12950. return i ? [i] : []
  12951. }
  12952. }) : (b.filter.ID = function (t) {
  12953. var i = t.replace(nt, h);
  12954. return function (t) {
  12955. var e = void 0 !== t.getAttributeNode && t.getAttributeNode("id");
  12956. return e && e.value === i
  12957. }
  12958. }, b.find.ID = function (t, e) {
  12959. if (void 0 !== e.getElementById && C) {
  12960. var i, n, s, o = e.getElementById(t);
  12961. if (o) {
  12962. if ((i = o.getAttributeNode("id")) && i.value === t) return [o];
  12963. for (s = e.getElementsByName(t), n = 0; o = s[n++];)
  12964. if ((i = o.getAttributeNode("id")) && i.value === t) return [o]
  12965. }
  12966. return []
  12967. }
  12968. }), b.find.TAG = p.getElementsByTagName ? function (t, e) {
  12969. return void 0 !== e.getElementsByTagName ? e.getElementsByTagName(t) : p.qsa ? e.querySelectorAll(t) : void 0
  12970. } : function (t, e) {
  12971. var i, n = [],
  12972. s = 0,
  12973. o = e.getElementsByTagName(t);
  12974. if ("*" !== t) return o;
  12975. for (; i = o[s++];) 1 === i.nodeType && n.push(i);
  12976. return n
  12977. }, b.find.CLASS = p.getElementsByClassName && function (t, e) {
  12978. if (void 0 !== e.getElementsByClassName && C) return e.getElementsByClassName(t)
  12979. }, u = [], m = [], (p.qsa = tt.test(x.querySelectorAll)) && (ut(function (t) {
  12980. var e;
  12981. a.appendChild(t).innerHTML = "<a id='" + T + "'></a><select id='" + T + "-\r\\' msallowcapture=''><option selected=''></option></select>", t.querySelectorAll("[msallowcapture^='']").length && m.push("[*^$]=" + W + "*(?:''|\"\")"), t.querySelectorAll("[selected]").length || m.push("\\[" + W + "*(?:value|" + z + ")"), t.querySelectorAll("[id~=" + T + "-]").length || m.push("~="), (e = x.createElement("input")).setAttribute("name", ""), t.appendChild(e), t.querySelectorAll("[name='']").length || m.push("\\[" + W + "*name" + W + "*=" + W + "*(?:''|\"\")"), t.querySelectorAll(":checked").length || m.push(":checked"), t.querySelectorAll("a#" + T + "+*").length || m.push(".#.+[+~]"), t.querySelectorAll("\\\f"), m.push("[\\r\\n\\f]")
  12982. }), ut(function (t) {
  12983. t.innerHTML = "<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";
  12984. var e = x.createElement("input");
  12985. e.setAttribute("type", "hidden"), t.appendChild(e).setAttribute("name", "D"), t.querySelectorAll("[name=d]").length && m.push("name" + W + "*[*^$|!~]?="), 2 !== t.querySelectorAll(":enabled").length && m.push(":enabled", ":disabled"), a.appendChild(t).disabled = !0, 2 !== t.querySelectorAll(":disabled").length && m.push(":enabled", ":disabled"), t.querySelectorAll("*,:x"), m.push(",.*:")
  12986. })), (p.matchesSelector = tt.test(v = a.matches || a.webkitMatchesSelector || a.mozMatchesSelector || a.oMatchesSelector || a.msMatchesSelector)) && ut(function (t) {
  12987. p.disconnectedMatch = v.call(t, "*"), v.call(t, "[s!='']:x"), u.push("!=", F)
  12988. }), m = m.length && new RegExp(m.join("|")), u = u.length && new RegExp(u.join("|")), e = tt.test(a.compareDocumentPosition), _ = e || tt.test(a.contains) ? function (t, e) {
  12989. var i = 9 === t.nodeType ? t.documentElement : t,
  12990. n = e && e.parentNode;
  12991. return t === n || !(!n || 1 !== n.nodeType || !(i.contains ? i.contains(n) : t.compareDocumentPosition && 16 & t.compareDocumentPosition(n)))
  12992. } : function (t, e) {
  12993. if (e)
  12994. for (; e = e.parentNode;)
  12995. if (e === t) return !0;
  12996. return !1
  12997. }, I = e ? function (t, e) {
  12998. if (t === e) return c = !0, 0;
  12999. var i = !t.compareDocumentPosition - !e.compareDocumentPosition;
  13000. return i || (1 & (i = (t.ownerDocument || t) == (e.ownerDocument || e) ? t.compareDocumentPosition(e) : 1) || !p.sortDetached && e.compareDocumentPosition(t) === i ? t == x || t.ownerDocument == y && _(y, t) ? -1 : e == x || e.ownerDocument == y && _(y, e) ? 1 : l ? j(l, t) - j(l, e) : 0 : 4 & i ? -1 : 1)
  13001. } : function (t, e) {
  13002. if (t === e) return c = !0, 0;
  13003. var i, n = 0,
  13004. s = t.parentNode,
  13005. o = e.parentNode,
  13006. r = [t],
  13007. a = [e];
  13008. if (!s || !o) return t == x ? -1 : e == x ? 1 : s ? -1 : o ? 1 : l ? j(l, t) - j(l, e) : 0;
  13009. if (s === o) return dt(t, e);
  13010. for (i = t; i = i.parentNode;) r.unshift(i);
  13011. for (i = e; i = i.parentNode;) a.unshift(i);
  13012. for (; r[n] === a[n];) n++;
  13013. return n ? dt(r[n], a[n]) : r[n] == y ? -1 : a[n] == y ? 1 : 0
  13014. }), x
  13015. }, at.matches = function (t, e) {
  13016. return at(t, null, null, e)
  13017. }, at.matchesSelector = function (t, e) {
  13018. if (k(t), p.matchesSelector && C && !P[e + " "] && (!u || !u.test(e)) && (!m || !m.test(e))) try {
  13019. var i = v.call(t, e);
  13020. if (i || p.disconnectedMatch || t.document && 11 !== t.document.nodeType) return i
  13021. } catch (t) {
  13022. P(e, !0)
  13023. }
  13024. return 0 < at(e, x, null, [t]).length
  13025. }, at.contains = function (t, e) {
  13026. return (t.ownerDocument || t) != x && k(t), _(t, e)
  13027. }, at.attr = function (t, e) {
  13028. (t.ownerDocument || t) != x && k(t);
  13029. var i = b.attrHandle[e.toLowerCase()],
  13030. n = i && O.call(b.attrHandle, e.toLowerCase()) ? i(t, e, !C) : void 0;
  13031. return void 0 !== n ? n : p.attributes || !C ? t.getAttribute(e) : (n = t.getAttributeNode(e)) && n.specified ? n.value : null
  13032. }, at.escape = function (t) {
  13033. return (t + "").replace(st, ot)
  13034. }, at.error = function (t) {
  13035. throw new Error("Syntax error, unrecognized expression: " + t)
  13036. }, at.uniqueSort = function (t) {
  13037. var e, i = [],
  13038. n = 0,
  13039. s = 0;
  13040. if (c = !p.detectDuplicates, l = !p.sortStable && t.slice(0), t.sort(I), c) {
  13041. for (; e = t[s++];) e === t[s] && (n = i.push(s));
  13042. for (; n--;) t.splice(i[n], 1)
  13043. }
  13044. return l = null, t
  13045. }, o = at.getText = function (t) {
  13046. var e, i = "",
  13047. n = 0,
  13048. s = t.nodeType;
  13049. if (s) {
  13050. if (1 === s || 9 === s || 11 === s) {
  13051. if ("string" == typeof t.textContent) return t.textContent;
  13052. for (t = t.firstChild; t; t = t.nextSibling) i += o(t)
  13053. } else if (3 === s || 4 === s) return t.nodeValue
  13054. } else
  13055. for (; e = t[n++];) i += o(e);
  13056. return i
  13057. }, (b = at.selectors = {
  13058. cacheLength: 50,
  13059. createPseudo: ct,
  13060. match: Q,
  13061. attrHandle: {},
  13062. find: {},
  13063. relative: {
  13064. ">": {
  13065. dir: "parentNode",
  13066. first: !0
  13067. },
  13068. " ": {
  13069. dir: "parentNode"
  13070. },
  13071. "+": {
  13072. dir: "previousSibling",
  13073. first: !0
  13074. },
  13075. "~": {
  13076. dir: "previousSibling"
  13077. }
  13078. },
  13079. preFilter: {
  13080. ATTR: function (t) {
  13081. return t[1] = t[1].replace(nt, h), t[3] = (t[3] || t[4] || t[5] || "").replace(nt, h), "~=" === t[2] && (t[3] = " " + t[3] + " "), t.slice(0, 4)
  13082. },
  13083. CHILD: function (t) {
  13084. return t[1] = t[1].toLowerCase(), "nth" === t[1].slice(0, 3) ? (t[3] || at.error(t[0]), t[4] = +(t[4] ? t[5] + (t[6] || 1) : 2 * ("even" === t[3] || "odd" === t[3])), t[5] = +(t[7] + t[8] || "odd" === t[3])) : t[3] && at.error(t[0]), t
  13085. },
  13086. PSEUDO: function (t) {
  13087. var e, i = !t[6] && t[2];
  13088. return Q.CHILD.test(t[0]) ? null : (t[3] ? t[2] = t[4] || t[5] || "" : i && K.test(i) && (e = f(i, !0)) && (e = i.indexOf(")", i.length - e) - i.length) && (t[0] = t[0].slice(0, e), t[2] = i.slice(0, e)), t.slice(0, 3))
  13089. }
  13090. },
  13091. filter: {
  13092. TAG: function (t) {
  13093. var e = t.replace(nt, h).toLowerCase();
  13094. return "*" === t ? function () {
  13095. return !0
  13096. } : function (t) {
  13097. return t.nodeName && t.nodeName.toLowerCase() === e
  13098. }
  13099. },
  13100. CLASS: function (t) {
  13101. var e = D[t + " "];
  13102. return e || (e = new RegExp("(^|" + W + ")" + t + "(" + W + "|$)")) && D(t, function (t) {
  13103. return e.test("string" == typeof t.className && t.className || void 0 !== t.getAttribute && t.getAttribute("class") || "")
  13104. })
  13105. },
  13106. ATTR: function (i, n, s) {
  13107. return function (t) {
  13108. var e = at.attr(t, i);
  13109. return null == e ? "!=" === n : !n || (e += "", "=" === n ? e === s : "!=" === n ? e !== s : "^=" === n ? s && 0 === e.indexOf(s) : "*=" === n ? s && -1 < e.indexOf(s) : "$=" === n ? s && e.slice(-s.length) === s : "~=" === n ? -1 < (" " + e.replace(q, " ") + " ").indexOf(s) : "|=" === n && (e === s || e.slice(0, s.length + 1) === s + "-"))
  13110. }
  13111. },
  13112. CHILD: function (f, t, e, g, m) {
  13113. var v = "nth" !== f.slice(0, 3),
  13114. _ = "last" !== f.slice(-4),
  13115. y = "of-type" === t;
  13116. return 1 === g && 0 === m ? function (t) {
  13117. return !!t.parentNode
  13118. } : function (t, e, i) {
  13119. var n, s, o, r, a, l, c = v != _ ? "nextSibling" : "previousSibling",
  13120. u = t.parentNode,
  13121. h = y && t.nodeName.toLowerCase(),
  13122. d = !i && !y,
  13123. p = !1;
  13124. if (u) {
  13125. if (v) {
  13126. for (; c;) {
  13127. for (r = t; r = r[c];)
  13128. if (y ? r.nodeName.toLowerCase() === h : 1 === r.nodeType) return !1;
  13129. l = c = "only" === f && !l && "nextSibling"
  13130. }
  13131. return !0
  13132. }
  13133. if (l = [_ ? u.firstChild : u.lastChild], _ && d) {
  13134. for (p = (a = (n = (s = (o = (r = u)[T] || (r[T] = {}))[r.uniqueID] || (o[r.uniqueID] = {}))[f] || [])[0] === S && n[1]) && n[2], r = a && u.childNodes[a]; r = ++a && r && r[c] || (p = a = 0) || l.pop();)
  13135. if (1 === r.nodeType && ++p && r === t) {
  13136. s[f] = [S, a, p];
  13137. break
  13138. }
  13139. } else if (d && (p = a = (n = (s = (o = (r = t)[T] || (r[T] = {}))[r.uniqueID] || (o[r.uniqueID] = {}))[f] || [])[0] === S && n[1]), !1 === p)
  13140. for (;
  13141. (r = ++a && r && r[c] || (p = a = 0) || l.pop()) && ((y ? r.nodeName.toLowerCase() !== h : 1 !== r.nodeType) || !++p || (d && ((s = (o = r[T] || (r[T] = {}))[r.uniqueID] || (o[r.uniqueID] = {}))[f] = [S, p]), r !== t)););
  13142. return (p -= m) === g || p % g == 0 && 0 <= p / g
  13143. }
  13144. }
  13145. },
  13146. PSEUDO: function (t, o) {
  13147. var e, r = b.pseudos[t] || b.setFilters[t.toLowerCase()] || at.error("unsupported pseudo: " + t);
  13148. return r[T] ? r(o) : 1 < r.length ? (e = [t, t, "", o], b.setFilters.hasOwnProperty(t.toLowerCase()) ? ct(function (t, e) {
  13149. for (var i, n = r(t, o), s = n.length; s--;) t[i = j(t, n[s])] = !(e[i] = n[s])
  13150. }) : function (t) {
  13151. return r(t, 0, e)
  13152. }) : r
  13153. }
  13154. },
  13155. pseudos: {
  13156. not: ct(function (t) {
  13157. var n = [],
  13158. s = [],
  13159. a = d(t.replace(B, "$1"));
  13160. return a[T] ? ct(function (t, e, i, n) {
  13161. for (var s, o = a(t, null, n, []), r = t.length; r--;)(s = o[r]) && (t[r] = !(e[r] = s))
  13162. }) : function (t, e, i) {
  13163. return n[0] = t, a(n, null, i, s), n[0] = null, !s.pop()
  13164. }
  13165. }),
  13166. has: ct(function (e) {
  13167. return function (t) {
  13168. return 0 < at(e, t).length
  13169. }
  13170. }),
  13171. contains: ct(function (e) {
  13172. return e = e.replace(nt, h),
  13173. function (t) {
  13174. return -1 < (t.textContent || o(t)).indexOf(e)
  13175. }
  13176. }),
  13177. lang: ct(function (i) {
  13178. return X.test(i || "") || at.error("unsupported lang: " + i), i = i.replace(nt, h).toLowerCase(),
  13179. function (t) {
  13180. var e;
  13181. do {
  13182. if (e = C ? t.lang : t.getAttribute("xml:lang") || t.getAttribute("lang")) return (e = e.toLowerCase()) === i || 0 === e.indexOf(i + "-")
  13183. } while ((t = t.parentNode) && 1 === t.nodeType);
  13184. return !1
  13185. }
  13186. }),
  13187. target: function (t) {
  13188. var e = i.location && i.location.hash;
  13189. return e && e.slice(1) === t.id
  13190. },
  13191. root: function (t) {
  13192. return t === a
  13193. },
  13194. focus: function (t) {
  13195. return t === x.activeElement && (!x.hasFocus || x.hasFocus()) && !!(t.type || t.href || ~t.tabIndex)
  13196. },
  13197. enabled: gt(!1),
  13198. disabled: gt(!0),
  13199. checked: function (t) {
  13200. var e = t.nodeName.toLowerCase();
  13201. return "input" === e && !!t.checked || "option" === e && !!t.selected
  13202. },
  13203. selected: function (t) {
  13204. return t.parentNode && t.parentNode.selectedIndex, !0 === t.selected
  13205. },
  13206. empty: function (t) {
  13207. for (t = t.firstChild; t; t = t.nextSibling)
  13208. if (t.nodeType < 6) return !1;
  13209. return !0
  13210. },
  13211. parent: function (t) {
  13212. return !b.pseudos.empty(t)
  13213. },
  13214. header: function (t) {
  13215. return Z.test(t.nodeName)
  13216. },
  13217. input: function (t) {
  13218. return J.test(t.nodeName)
  13219. },
  13220. button: function (t) {
  13221. var e = t.nodeName.toLowerCase();
  13222. return "input" === e && "button" === t.type || "button" === e
  13223. },
  13224. text: function (t) {
  13225. var e;
  13226. return "input" === t.nodeName.toLowerCase() && "text" === t.type && (null == (e = t.getAttribute("type")) || "text" === e.toLowerCase())
  13227. },
  13228. first: mt(function () {
  13229. return [0]
  13230. }),
  13231. last: mt(function (t, e) {
  13232. return [e - 1]
  13233. }),
  13234. eq: mt(function (t, e, i) {
  13235. return [i < 0 ? i + e : i]
  13236. }),
  13237. even: mt(function (t, e) {
  13238. for (var i = 0; i < e; i += 2) t.push(i);
  13239. return t
  13240. }),
  13241. odd: mt(function (t, e) {
  13242. for (var i = 1; i < e; i += 2) t.push(i);
  13243. return t
  13244. }),
  13245. lt: mt(function (t, e, i) {
  13246. for (var n = i < 0 ? i + e : e < i ? e : i; 0 <= --n;) t.push(n);
  13247. return t
  13248. }),
  13249. gt: mt(function (t, e, i) {
  13250. for (var n = i < 0 ? i + e : i; ++n < e;) t.push(n);
  13251. return t
  13252. })
  13253. }
  13254. }).pseudos.nth = b.pseudos.eq, {
  13255. radio: !0,
  13256. checkbox: !0,
  13257. file: !0,
  13258. password: !0,
  13259. image: !0
  13260. }) b.pseudos[t] = pt(t);
  13261. for (t in {
  13262. submit: !0,
  13263. reset: !0
  13264. }) b.pseudos[t] = ft(t);
  13265. function _t() {}
  13266. function yt(t) {
  13267. for (var e = 0, i = t.length, n = ""; e < i; e++) n += t[e].value;
  13268. return n
  13269. }
  13270. function bt(a, t, e) {
  13271. var l = t.dir,
  13272. c = t.next,
  13273. u = c || l,
  13274. h = e && "parentNode" === u,
  13275. d = n++;
  13276. return t.first ? function (t, e, i) {
  13277. for (; t = t[l];)
  13278. if (1 === t.nodeType || h) return a(t, e, i);
  13279. return !1
  13280. } : function (t, e, i) {
  13281. var n, s, o, r = [S, d];
  13282. if (i) {
  13283. for (; t = t[l];)
  13284. if ((1 === t.nodeType || h) && a(t, e, i)) return !0
  13285. } else
  13286. for (; t = t[l];)
  13287. if (1 === t.nodeType || h)
  13288. if (s = (o = t[T] || (t[T] = {}))[t.uniqueID] || (o[t.uniqueID] = {}), c && c === t.nodeName.toLowerCase()) t = t[l] || t;
  13289. else {
  13290. if ((n = s[u]) && n[0] === S && n[1] === d) return r[2] = n[2];
  13291. if ((s[u] = r)[2] = a(t, e, i)) return !0
  13292. } return !1
  13293. }
  13294. }
  13295. function wt(s) {
  13296. return 1 < s.length ? function (t, e, i) {
  13297. for (var n = s.length; n--;)
  13298. if (!s[n](t, e, i)) return !1;
  13299. return !0
  13300. } : s[0]
  13301. }
  13302. function kt(t, e, i, n, s) {
  13303. for (var o, r = [], a = 0, l = t.length, c = null != e; a < l; a++)(o = t[a]) && (i && !i(o, n, s) || (r.push(o), c && e.push(a)));
  13304. return r
  13305. }
  13306. function xt(p, f, g, m, v, t) {
  13307. return m && !m[T] && (m = xt(m)), v && !v[T] && (v = xt(v, t)), ct(function (t, e, i, n) {
  13308. var s, o, r, a = [],
  13309. l = [],
  13310. c = e.length,
  13311. u = t || function (t, e, i) {
  13312. for (var n = 0, s = e.length; n < s; n++) at(t, e[n], i);
  13313. return i
  13314. }(f || "*", i.nodeType ? [i] : i, []),
  13315. h = !p || !t && f ? u : kt(u, a, p, i, n),
  13316. d = g ? v || (t ? p : c || m) ? [] : e : h;
  13317. if (g && g(h, d, i, n), m)
  13318. for (s = kt(d, l), m(s, [], i, n), o = s.length; o--;)(r = s[o]) && (d[l[o]] = !(h[l[o]] = r));
  13319. if (t) {
  13320. if (v || p) {
  13321. if (v) {
  13322. for (s = [], o = d.length; o--;)(r = d[o]) && s.push(h[o] = r);
  13323. v(null, d = [], s, n)
  13324. }
  13325. for (o = d.length; o--;)(r = d[o]) && -1 < (s = v ? j(t, r) : a[o]) && (t[s] = !(e[s] = r))
  13326. }
  13327. } else d = kt(d === e ? d.splice(c, d.length) : d), v ? v(null, e, d, n) : L.apply(e, d)
  13328. })
  13329. }
  13330. function Ct(t) {
  13331. for (var s, e, i, n = t.length, o = b.relative[t[0].type], r = o || b.relative[" "], a = o ? 1 : 0, l = bt(function (t) {
  13332. return t === s
  13333. }, r, !0), c = bt(function (t) {
  13334. return -1 < j(s, t)
  13335. }, r, !0), u = [function (t, e, i) {
  13336. var n = !o && (i || e !== w) || ((s = e).nodeType ? l(t, e, i) : c(t, e, i));
  13337. return s = null, n
  13338. }]; a < n; a++)
  13339. if (e = b.relative[t[a].type]) u = [bt(wt(u), e)];
  13340. else {
  13341. if ((e = b.filter[t[a].type].apply(null, t[a].matches))[T]) {
  13342. for (i = ++a; i < n && !b.relative[t[i].type]; i++);
  13343. return xt(1 < a && wt(u), 1 < a && yt(t.slice(0, a - 1).concat({
  13344. value: " " === t[a - 2].type ? "*" : ""
  13345. })).replace(B, "$1"), e, a < i && Ct(t.slice(a, i)), i < n && Ct(t = t.slice(i)), i < n && yt(t))
  13346. }
  13347. u.push(e)
  13348. } return wt(u)
  13349. }
  13350. return _t.prototype = b.filters = b.pseudos, b.setFilters = new _t, f = at.tokenize = function (t, e) {
  13351. var i, n, s, o, r, a, l, c = A[t + " "];
  13352. if (c) return e ? 0 : c.slice(0);
  13353. for (r = t, a = [], l = b.preFilter; r;) {
  13354. for (o in i && !(n = U.exec(r)) || (n && (r = r.slice(n[0].length) || r), a.push(s = [])), i = !1, (n = Y.exec(r)) && (i = n.shift(), s.push({
  13355. value: i,
  13356. type: n[0].replace(B, " ")
  13357. }), r = r.slice(i.length)), b.filter) !(n = Q[o].exec(r)) || l[o] && !(n = l[o](n)) || (i = n.shift(), s.push({
  13358. value: i,
  13359. type: o,
  13360. matches: n
  13361. }), r = r.slice(i.length));
  13362. if (!i) break
  13363. }
  13364. return e ? r.length : r ? at.error(t) : A(t, a).slice(0)
  13365. }, d = at.compile = function (t, e) {
  13366. var i, m, v, _, y, n, s = [],
  13367. o = [],
  13368. r = E[t + " "];
  13369. if (!r) {
  13370. for (e || (e = f(t)), i = e.length; i--;)(r = Ct(e[i]))[T] ? s.push(r) : o.push(r);
  13371. (r = E(t, (m = o, _ = 0 < (v = s).length, y = 0 < m.length, n = function (t, e, i, n, s) {
  13372. var o, r, a, l = 0,
  13373. c = "0",
  13374. u = t && [],
  13375. h = [],
  13376. d = w,
  13377. p = t || y && b.find.TAG("*", s),
  13378. f = S += null == d ? 1 : Math.random() || .1,
  13379. g = p.length;
  13380. for (s && (w = e == x || e || s); c !== g && null != (o = p[c]); c++) {
  13381. if (y && o) {
  13382. for (r = 0, e || o.ownerDocument == x || (k(o), i = !C); a = m[r++];)
  13383. if (a(o, e || x, i)) {
  13384. n.push(o);
  13385. break
  13386. } s && (S = f)
  13387. }
  13388. _ && ((o = !a && o) && l--, t && u.push(o))
  13389. }
  13390. if (l += c, _ && c !== l) {
  13391. for (r = 0; a = v[r++];) a(u, h, e, i);
  13392. if (t) {
  13393. if (0 < l)
  13394. for (; c--;) u[c] || h[c] || (h[c] = M.call(n));
  13395. h = kt(h)
  13396. }
  13397. L.apply(n, h), s && !t && 0 < h.length && 1 < l + v.length && at.uniqueSort(n)
  13398. }
  13399. return s && (S = f, w = d), u
  13400. }, _ ? ct(n) : n))).selector = t
  13401. }
  13402. return r
  13403. }, g = at.select = function (t, e, i, n) {
  13404. var s, o, r, a, l, c = "function" == typeof t && t,
  13405. u = !n && f(t = c.selector || t);
  13406. if (i = i || [], 1 === u.length) {
  13407. if (2 < (o = u[0] = u[0].slice(0)).length && "ID" === (r = o[0]).type && 9 === e.nodeType && C && b.relative[o[1].type]) {
  13408. if (!(e = (b.find.ID(r.matches[0].replace(nt, h), e) || [])[0])) return i;
  13409. c && (e = e.parentNode), t = t.slice(o.shift().value.length)
  13410. }
  13411. for (s = Q.needsContext.test(t) ? 0 : o.length; s-- && (r = o[s], !b.relative[a = r.type]);)
  13412. if ((l = b.find[a]) && (n = l(r.matches[0].replace(nt, h), it.test(o[0].type) && vt(e.parentNode) || e))) {
  13413. if (o.splice(s, 1), !(t = n.length && yt(o))) return L.apply(i, n), i;
  13414. break
  13415. }
  13416. }
  13417. return (c || d(t, u))(n, e, !C, i, !e || it.test(t) && vt(e.parentNode) || e), i
  13418. }, p.sortStable = T.split("").sort(I).join("") === T, p.detectDuplicates = !!c, k(), p.sortDetached = ut(function (t) {
  13419. return 1 & t.compareDocumentPosition(x.createElement("fieldset"))
  13420. }), ut(function (t) {
  13421. return t.innerHTML = "<a href='#'></a>", "#" === t.firstChild.getAttribute("href")
  13422. }) || ht("type|href|height|width", function (t, e, i) {
  13423. if (!i) return t.getAttribute(e, "type" === e.toLowerCase() ? 1 : 2)
  13424. }), p.attributes && ut(function (t) {
  13425. return t.innerHTML = "<input/>", t.firstChild.setAttribute("value", ""), "" === t.firstChild.getAttribute("value")
  13426. }) || ht("value", function (t, e, i) {
  13427. if (!i && "input" === t.nodeName.toLowerCase()) return t.defaultValue
  13428. }), ut(function (t) {
  13429. return null == t.getAttribute("disabled")
  13430. }) || ht(z, function (t, e, i) {
  13431. var n;
  13432. if (!i) return !0 === t[e] ? e.toLowerCase() : (n = t.getAttributeNode(e)) && n.specified ? n.value : null
  13433. }), at
  13434. }(x);
  13435. T.find = d, T.expr = d.selectors, T.expr[":"] = T.expr.pseudos, T.uniqueSort = T.unique = d.uniqueSort, T.text = d.getText, T.isXMLDoc = d.isXML, T.contains = d.contains, T.escapeSelector = d.escape;
  13436. function p(t, e, i) {
  13437. for (var n = [], s = void 0 !== i;
  13438. (t = t[e]) && 9 !== t.nodeType;)
  13439. if (1 === t.nodeType) {
  13440. if (s && T(t).is(i)) break;
  13441. n.push(t)
  13442. } return n
  13443. }
  13444. function f(t, e) {
  13445. for (var i = []; t; t = t.nextSibling) 1 === t.nodeType && t !== e && i.push(t);
  13446. return i
  13447. }
  13448. var k = T.expr.match.needsContext;
  13449. function S(t, e) {
  13450. return t.nodeName && t.nodeName.toLowerCase() === e.toLowerCase()
  13451. }
  13452. var D = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;
  13453. function A(t, i, n) {
  13454. return y(i) ? T.grep(t, function (t, e) {
  13455. return !!i.call(t, e, t) !== n
  13456. }) : i.nodeType ? T.grep(t, function (t) {
  13457. return t === i !== n
  13458. }) : "string" != typeof i ? T.grep(t, function (t) {
  13459. return -1 < s.call(i, t) !== n
  13460. }) : T.filter(i, t, n)
  13461. }
  13462. T.filter = function (t, e, i) {
  13463. var n = e[0];
  13464. return i && (t = ":not(" + t + ")"), 1 === e.length && 1 === n.nodeType ? T.find.matchesSelector(n, t) ? [n] : [] : T.find.matches(t, T.grep(e, function (t) {
  13465. return 1 === t.nodeType
  13466. }))
  13467. }, T.fn.extend({
  13468. find: function (t) {
  13469. var e, i, n = this.length,
  13470. s = this;
  13471. if ("string" != typeof t) return this.pushStack(T(t).filter(function () {
  13472. for (e = 0; e < n; e++)
  13473. if (T.contains(s[e], this)) return !0
  13474. }));
  13475. for (i = this.pushStack([]), e = 0; e < n; e++) T.find(t, s[e], i);
  13476. return 1 < n ? T.uniqueSort(i) : i
  13477. },
  13478. filter: function (t) {
  13479. return this.pushStack(A(this, t || [], !1))
  13480. },
  13481. not: function (t) {
  13482. return this.pushStack(A(this, t || [], !0))
  13483. },
  13484. is: function (t) {
  13485. return !!A(this, "string" == typeof t && k.test(t) ? T(t) : t || [], !1).length
  13486. }
  13487. });
  13488. var E, P = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;
  13489. (T.fn.init = function (t, e, i) {
  13490. var n, s;
  13491. if (!t) return this;
  13492. if (i = i || E, "string" != typeof t) return t.nodeType ? (this[0] = t, this.length = 1, this) : y(t) ? void 0 !== i.ready ? i.ready(t) : t(T) : T.makeArray(t, this);
  13493. if (!(n = "<" === t[0] && ">" === t[t.length - 1] && 3 <= t.length ? [null, t, null] : P.exec(t)) || !n[1] && e) return !e || e.jquery ? (e || i).find(t) : this.constructor(e).find(t);
  13494. if (n[1]) {
  13495. if (e = e instanceof T ? e[0] : e, T.merge(this, T.parseHTML(n[1], e && e.nodeType ? e.ownerDocument || e : C, !0)), D.test(n[1]) && T.isPlainObject(e))
  13496. for (n in e) y(this[n]) ? this[n](e[n]) : this.attr(n, e[n]);
  13497. return this
  13498. }
  13499. return (s = C.getElementById(n[2])) && (this[0] = s, this.length = 1), this
  13500. }).prototype = T.fn, E = T(C);
  13501. var I = /^(?:parents|prev(?:Until|All))/,
  13502. O = {
  13503. children: !0,
  13504. contents: !0,
  13505. next: !0,
  13506. prev: !0
  13507. };
  13508. function M(t, e) {
  13509. for (;
  13510. (t = t[e]) && 1 !== t.nodeType;);
  13511. return t
  13512. }
  13513. T.fn.extend({
  13514. has: function (t) {
  13515. var e = T(t, this),
  13516. i = e.length;
  13517. return this.filter(function () {
  13518. for (var t = 0; t < i; t++)
  13519. if (T.contains(this, e[t])) return !0
  13520. })
  13521. },
  13522. closest: function (t, e) {
  13523. var i, n = 0,
  13524. s = this.length,
  13525. o = [],
  13526. r = "string" != typeof t && T(t);
  13527. if (!k.test(t))
  13528. for (; n < s; n++)
  13529. for (i = this[n]; i && i !== e; i = i.parentNode)
  13530. if (i.nodeType < 11 && (r ? -1 < r.index(i) : 1 === i.nodeType && T.find.matchesSelector(i, t))) {
  13531. o.push(i);
  13532. break
  13533. } return this.pushStack(1 < o.length ? T.uniqueSort(o) : o)
  13534. },
  13535. index: function (t) {
  13536. return t ? "string" == typeof t ? s.call(T(t), this[0]) : s.call(this, t.jquery ? t[0] : t) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1
  13537. },
  13538. add: function (t, e) {
  13539. return this.pushStack(T.uniqueSort(T.merge(this.get(), T(t, e))))
  13540. },
  13541. addBack: function (t) {
  13542. return this.add(null == t ? this.prevObject : this.prevObject.filter(t))
  13543. }
  13544. }), T.each({
  13545. parent: function (t) {
  13546. var e = t.parentNode;
  13547. return e && 11 !== e.nodeType ? e : null
  13548. },
  13549. parents: function (t) {
  13550. return p(t, "parentNode")
  13551. },
  13552. parentsUntil: function (t, e, i) {
  13553. return p(t, "parentNode", i)
  13554. },
  13555. next: function (t) {
  13556. return M(t, "nextSibling")
  13557. },
  13558. prev: function (t) {
  13559. return M(t, "previousSibling")
  13560. },
  13561. nextAll: function (t) {
  13562. return p(t, "nextSibling")
  13563. },
  13564. prevAll: function (t) {
  13565. return p(t, "previousSibling")
  13566. },
  13567. nextUntil: function (t, e, i) {
  13568. return p(t, "nextSibling", i)
  13569. },
  13570. prevUntil: function (t, e, i) {
  13571. return p(t, "previousSibling", i)
  13572. },
  13573. siblings: function (t) {
  13574. return f((t.parentNode || {}).firstChild, t)
  13575. },
  13576. children: function (t) {
  13577. return f(t.firstChild)
  13578. },
  13579. contents: function (t) {
  13580. return null != t.contentDocument && n(t.contentDocument) ? t.contentDocument : (S(t, "template") && (t = t.content || t), T.merge([], t.childNodes))
  13581. }
  13582. }, function (n, s) {
  13583. T.fn[n] = function (t, e) {
  13584. var i = T.map(this, s, t);
  13585. return "Until" !== n.slice(-5) && (e = t), e && "string" == typeof e && (i = T.filter(e, i)), 1 < this.length && (O[n] || T.uniqueSort(i), I.test(n) && i.reverse()), this.pushStack(i)
  13586. }
  13587. });
  13588. var N = /[^\x20\t\r\n\f]+/g;
  13589. function L(t) {
  13590. return t
  13591. }
  13592. function H(t) {
  13593. throw t
  13594. }
  13595. function j(t, e, i, n) {
  13596. var s;
  13597. try {
  13598. t && y(s = t.promise) ? s.call(t).done(e).fail(i) : t && y(s = t.then) ? s.call(t, e, i) : e.apply(void 0, [t].slice(n))
  13599. } catch (t) {
  13600. i.apply(void 0, [t])
  13601. }
  13602. }
  13603. T.Callbacks = function (n) {
  13604. var t, i;
  13605. n = "string" == typeof n ? (t = n, i = {}, T.each(t.match(N) || [], function (t, e) {
  13606. i[e] = !0
  13607. }), i) : T.extend({}, n);
  13608. function s() {
  13609. for (a = a || n.once, r = o = !0; c.length; u = -1)
  13610. for (e = c.shift(); ++u < l.length;) !1 === l[u].apply(e[0], e[1]) && n.stopOnFalse && (u = l.length, e = !1);
  13611. n.memory || (e = !1), o = !1, a && (l = e ? [] : "")
  13612. }
  13613. var o, e, r, a, l = [],
  13614. c = [],
  13615. u = -1,
  13616. h = {
  13617. add: function () {
  13618. return l && (e && !o && (u = l.length - 1, c.push(e)), function i(t) {
  13619. T.each(t, function (t, e) {
  13620. y(e) ? n.unique && h.has(e) || l.push(e) : e && e.length && "string" !== w(e) && i(e)
  13621. })
  13622. }(arguments), e && !o && s()), this
  13623. },
  13624. remove: function () {
  13625. return T.each(arguments, function (t, e) {
  13626. for (var i; - 1 < (i = T.inArray(e, l, i));) l.splice(i, 1), i <= u && u--
  13627. }), this
  13628. },
  13629. has: function (t) {
  13630. return t ? -1 < T.inArray(t, l) : 0 < l.length
  13631. },
  13632. empty: function () {
  13633. return l && (l = []), this
  13634. },
  13635. disable: function () {
  13636. return a = c = [], l = e = "", this
  13637. },
  13638. disabled: function () {
  13639. return !l
  13640. },
  13641. lock: function () {
  13642. return a = c = [], e || o || (l = e = ""), this
  13643. },
  13644. locked: function () {
  13645. return !!a
  13646. },
  13647. fireWith: function (t, e) {
  13648. return a || (e = [t, (e = e || []).slice ? e.slice() : e], c.push(e), o || s()), this
  13649. },
  13650. fire: function () {
  13651. return h.fireWith(this, arguments), this
  13652. },
  13653. fired: function () {
  13654. return !!r
  13655. }
  13656. };
  13657. return h
  13658. }, T.extend({
  13659. Deferred: function (t) {
  13660. var o = [
  13661. ["notify", "progress", T.Callbacks("memory"), T.Callbacks("memory"), 2],
  13662. ["resolve", "done", T.Callbacks("once memory"), T.Callbacks("once memory"), 0, "resolved"],
  13663. ["reject", "fail", T.Callbacks("once memory"), T.Callbacks("once memory"), 1, "rejected"]
  13664. ],
  13665. s = "pending",
  13666. r = {
  13667. state: function () {
  13668. return s
  13669. },
  13670. always: function () {
  13671. return a.done(arguments).fail(arguments), this
  13672. },
  13673. catch: function (t) {
  13674. return r.then(null, t)
  13675. },
  13676. pipe: function () {
  13677. var s = arguments;
  13678. return T.Deferred(function (n) {
  13679. T.each(o, function (t, e) {
  13680. var i = y(s[e[4]]) && s[e[4]];
  13681. a[e[1]](function () {
  13682. var t = i && i.apply(this, arguments);
  13683. t && y(t.promise) ? t.promise().progress(n.notify).done(n.resolve).fail(n.reject) : n[e[0] + "With"](this, i ? [t] : arguments)
  13684. })
  13685. }), s = null
  13686. }).promise()
  13687. },
  13688. then: function (e, i, n) {
  13689. var l = 0;
  13690. function c(s, o, r, a) {
  13691. return function () {
  13692. function t() {
  13693. var t, e;
  13694. if (!(s < l)) {
  13695. if ((t = r.apply(i, n)) === o.promise()) throw new TypeError("Thenable self-resolution");
  13696. e = t && ("object" == _typeof(t) || "function" == typeof t) && t.then, y(e) ? a ? e.call(t, c(l, o, L, a), c(l, o, H, a)) : (l++, e.call(t, c(l, o, L, a), c(l, o, H, a), c(l, o, L, o.notifyWith))) : (r !== L && (i = void 0, n = [t]), (a || o.resolveWith)(i, n))
  13697. }
  13698. }
  13699. var i = this,
  13700. n = arguments,
  13701. e = a ? t : function () {
  13702. try {
  13703. t()
  13704. } catch (t) {
  13705. T.Deferred.exceptionHook && T.Deferred.exceptionHook(t, e.stackTrace), l <= s + 1 && (r !== H && (i = void 0, n = [t]), o.rejectWith(i, n))
  13706. }
  13707. };
  13708. s ? e() : (T.Deferred.getStackHook && (e.stackTrace = T.Deferred.getStackHook()), x.setTimeout(e))
  13709. }
  13710. }
  13711. return T.Deferred(function (t) {
  13712. o[0][3].add(c(0, t, y(n) ? n : L, t.notifyWith)), o[1][3].add(c(0, t, y(e) ? e : L)), o[2][3].add(c(0, t, y(i) ? i : H))
  13713. }).promise()
  13714. },
  13715. promise: function (t) {
  13716. return null != t ? T.extend(t, r) : r
  13717. }
  13718. },
  13719. a = {};
  13720. return T.each(o, function (t, e) {
  13721. var i = e[2],
  13722. n = e[5];
  13723. r[e[1]] = i.add, n && i.add(function () {
  13724. s = n
  13725. }, o[3 - t][2].disable, o[3 - t][3].disable, o[0][2].lock, o[0][3].lock), i.add(e[3].fire), a[e[0]] = function () {
  13726. return a[e[0] + "With"](this === a ? void 0 : this, arguments), this
  13727. }, a[e[0] + "With"] = i.fireWith
  13728. }), r.promise(a), t && t.call(a, a), a
  13729. },
  13730. when: function (t) {
  13731. function e(e) {
  13732. return function (t) {
  13733. s[e] = this, o[e] = 1 < arguments.length ? a.call(arguments) : t, --i || r.resolveWith(s, o)
  13734. }
  13735. }
  13736. var i = arguments.length,
  13737. n = i,
  13738. s = Array(n),
  13739. o = a.call(arguments),
  13740. r = T.Deferred();
  13741. if (i <= 1 && (j(t, r.done(e(n)).resolve, r.reject, !i), "pending" === r.state() || y(o[n] && o[n].then))) return r.then();
  13742. for (; n--;) j(o[n], e(n), r.reject);
  13743. return r.promise()
  13744. }
  13745. });
  13746. var z = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
  13747. T.Deferred.exceptionHook = function (t, e) {
  13748. x.console && x.console.warn && t && z.test(t.name) && x.console.warn("jQuery.Deferred exception: " + t.message, t.stack, e)
  13749. }, T.readyException = function (t) {
  13750. x.setTimeout(function () {
  13751. throw t
  13752. })
  13753. };
  13754. var W = T.Deferred();
  13755. function $() {
  13756. C.removeEventListener("DOMContentLoaded", $), x.removeEventListener("load", $), T.ready()
  13757. }
  13758. T.fn.ready = function (t) {
  13759. return W.then(t).catch(function (t) {
  13760. T.readyException(t)
  13761. }), this
  13762. }, T.extend({
  13763. isReady: !1,
  13764. readyWait: 1,
  13765. ready: function (t) {
  13766. (!0 === t ? --T.readyWait : T.isReady) || (T.isReady = !0) !== t && 0 < --T.readyWait || W.resolveWith(C, [T])
  13767. }
  13768. }), T.ready.then = W.then, "complete" === C.readyState || "loading" !== C.readyState && !C.documentElement.doScroll ? x.setTimeout(T.ready) : (C.addEventListener("DOMContentLoaded", $), x.addEventListener("load", $));
  13769. function R(t, e, i, n, s, o, r) {
  13770. var a = 0,
  13771. l = t.length,
  13772. c = null == i;
  13773. if ("object" === w(i))
  13774. for (a in s = !0, i) R(t, e, a, i[a], !0, o, r);
  13775. else if (void 0 !== n && (s = !0, y(n) || (r = !0), c && (e = r ? (e.call(t, n), null) : (c = e, function (t, e, i) {
  13776. return c.call(T(t), i)
  13777. })), e))
  13778. for (; a < l; a++) e(t[a], i, r ? n : n.call(t[a], a, e(t[a], i)));
  13779. return s ? t : c ? e.call(t) : l ? e(t[0], i) : o
  13780. }
  13781. var F = /^-ms-/,
  13782. q = /-([a-z])/g;
  13783. function B(t, e) {
  13784. return e.toUpperCase()
  13785. }
  13786. function U(t) {
  13787. return t.replace(F, "ms-").replace(q, B)
  13788. }
  13789. function Y(t) {
  13790. return 1 === t.nodeType || 9 === t.nodeType || !+t.nodeType
  13791. }
  13792. function V() {
  13793. this.expando = T.expando + V.uid++
  13794. }
  13795. V.uid = 1, V.prototype = {
  13796. cache: function (t) {
  13797. var e = t[this.expando];
  13798. return e || (e = {}, Y(t) && (t.nodeType ? t[this.expando] = e : Object.defineProperty(t, this.expando, {
  13799. value: e,
  13800. configurable: !0
  13801. }))), e
  13802. },
  13803. set: function (t, e, i) {
  13804. var n, s = this.cache(t);
  13805. if ("string" == typeof e) s[U(e)] = i;
  13806. else
  13807. for (n in e) s[U(n)] = e[n];
  13808. return s
  13809. },
  13810. get: function (t, e) {
  13811. return void 0 === e ? this.cache(t) : t[this.expando] && t[this.expando][U(e)]
  13812. },
  13813. access: function (t, e, i) {
  13814. return void 0 === e || e && "string" == typeof e && void 0 === i ? this.get(t, e) : (this.set(t, e, i), void 0 !== i ? i : e)
  13815. },
  13816. remove: function (t, e) {
  13817. var i, n = t[this.expando];
  13818. if (void 0 !== n) {
  13819. if (void 0 !== e) {
  13820. i = (e = Array.isArray(e) ? e.map(U) : (e = U(e)) in n ? [e] : e.match(N) || []).length;
  13821. for (; i--;) delete n[e[i]]
  13822. }(void 0 === e || T.isEmptyObject(n)) && (t.nodeType ? t[this.expando] = void 0 : delete t[this.expando])
  13823. }
  13824. },
  13825. hasData: function (t) {
  13826. var e = t[this.expando];
  13827. return void 0 !== e && !T.isEmptyObject(e)
  13828. }
  13829. };
  13830. var K = new V,
  13831. X = new V,
  13832. Q = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
  13833. G = /[A-Z]/g;
  13834. function J(t, e, i) {
  13835. var n, s;
  13836. if (void 0 === i && 1 === t.nodeType)
  13837. if (n = "data-" + e.replace(G, "-$&").toLowerCase(), "string" == typeof (i = t.getAttribute(n))) {
  13838. try {
  13839. i = "true" === (s = i) || "false" !== s && ("null" === s ? null : s === +s + "" ? +s : Q.test(s) ? JSON.parse(s) : s)
  13840. } catch (t) {}
  13841. X.set(t, e, i)
  13842. } else i = void 0;
  13843. return i
  13844. }
  13845. T.extend({
  13846. hasData: function (t) {
  13847. return X.hasData(t) || K.hasData(t)
  13848. },
  13849. data: function (t, e, i) {
  13850. return X.access(t, e, i)
  13851. },
  13852. removeData: function (t, e) {
  13853. X.remove(t, e)
  13854. },
  13855. _data: function (t, e, i) {
  13856. return K.access(t, e, i)
  13857. },
  13858. _removeData: function (t, e) {
  13859. K.remove(t, e)
  13860. }
  13861. }), T.fn.extend({
  13862. data: function (i, t) {
  13863. var e, n, s, o = this[0],
  13864. r = o && o.attributes;
  13865. if (void 0 !== i) return "object" == _typeof(i) ? this.each(function () {
  13866. X.set(this, i)
  13867. }) : R(this, function (t) {
  13868. var e;
  13869. if (o && void 0 === t) return void 0 !== (e = X.get(o, i)) ? e : void 0 !== (e = J(o, i)) ? e : void 0;
  13870. this.each(function () {
  13871. X.set(this, i, t)
  13872. })
  13873. }, null, t, 1 < arguments.length, null, !0);
  13874. if (this.length && (s = X.get(o), 1 === o.nodeType && !K.get(o, "hasDataAttrs"))) {
  13875. for (e = r.length; e--;) r[e] && 0 === (n = r[e].name).indexOf("data-") && (n = U(n.slice(5)), J(o, n, s[n]));
  13876. K.set(o, "hasDataAttrs", !0)
  13877. }
  13878. return s
  13879. },
  13880. removeData: function (t) {
  13881. return this.each(function () {
  13882. X.remove(this, t)
  13883. })
  13884. }
  13885. }), T.extend({
  13886. queue: function (t, e, i) {
  13887. var n;
  13888. if (t) return e = (e || "fx") + "queue", n = K.get(t, e), i && (!n || Array.isArray(i) ? n = K.access(t, e, T.makeArray(i)) : n.push(i)), n || []
  13889. },
  13890. dequeue: function (t, e) {
  13891. e = e || "fx";
  13892. var i = T.queue(t, e),
  13893. n = i.length,
  13894. s = i.shift(),
  13895. o = T._queueHooks(t, e);
  13896. "inprogress" === s && (s = i.shift(), n--), s && ("fx" === e && i.unshift("inprogress"), delete o.stop, s.call(t, function () {
  13897. T.dequeue(t, e)
  13898. }, o)), !n && o && o.empty.fire()
  13899. },
  13900. _queueHooks: function (t, e) {
  13901. var i = e + "queueHooks";
  13902. return K.get(t, i) || K.access(t, i, {
  13903. empty: T.Callbacks("once memory").add(function () {
  13904. K.remove(t, [e + "queue", i])
  13905. })
  13906. })
  13907. }
  13908. }), T.fn.extend({
  13909. queue: function (e, i) {
  13910. var t = 2;
  13911. return "string" != typeof e && (i = e, e = "fx", t--), arguments.length < t ? T.queue(this[0], e) : void 0 === i ? this : this.each(function () {
  13912. var t = T.queue(this, e, i);
  13913. T._queueHooks(this, e), "fx" === e && "inprogress" !== t[0] && T.dequeue(this, e)
  13914. })
  13915. },
  13916. dequeue: function (t) {
  13917. return this.each(function () {
  13918. T.dequeue(this, t)
  13919. })
  13920. },
  13921. clearQueue: function (t) {
  13922. return this.queue(t || "fx", [])
  13923. },
  13924. promise: function (t, e) {
  13925. function i() {
  13926. --s || o.resolveWith(r, [r])
  13927. }
  13928. var n, s = 1,
  13929. o = T.Deferred(),
  13930. r = this,
  13931. a = this.length;
  13932. for ("string" != typeof t && (e = t, t = void 0), t = t || "fx"; a--;)(n = K.get(r[a], t + "queueHooks")) && n.empty && (s++, n.empty.add(i));
  13933. return i(), o.promise(e)
  13934. }
  13935. });
  13936. var Z = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,
  13937. tt = new RegExp("^(?:([+-])=|)(" + Z + ")([a-z%]*)$", "i"),
  13938. et = ["Top", "Right", "Bottom", "Left"],
  13939. it = C.documentElement,
  13940. nt = function (t) {
  13941. return T.contains(t.ownerDocument, t)
  13942. },
  13943. st = {
  13944. composed: !0
  13945. };
  13946. it.getRootNode && (nt = function (t) {
  13947. return T.contains(t.ownerDocument, t) || t.getRootNode(st) === t.ownerDocument
  13948. });
  13949. function ot(t, e) {
  13950. return "none" === (t = e || t).style.display || "" === t.style.display && nt(t) && "none" === T.css(t, "display")
  13951. }
  13952. function rt(t, e, i, n) {
  13953. var s, o, r = 20,
  13954. a = n ? function () {
  13955. return n.cur()
  13956. } : function () {
  13957. return T.css(t, e, "")
  13958. },
  13959. l = a(),
  13960. c = i && i[3] || (T.cssNumber[e] ? "" : "px"),
  13961. u = t.nodeType && (T.cssNumber[e] || "px" !== c && +l) && tt.exec(T.css(t, e));
  13962. if (u && u[3] !== c) {
  13963. for (l /= 2, c = c || u[3], u = +l || 1; r--;) T.style(t, e, u + c), (1 - o) * (1 - (o = a() / l || .5)) <= 0 && (r = 0), u /= o;
  13964. u *= 2, T.style(t, e, u + c), i = i || []
  13965. }
  13966. return i && (u = +u || +l || 0, s = i[1] ? u + (i[1] + 1) * i[2] : +i[2], n && (n.unit = c, n.start = u, n.end = s)), s
  13967. }
  13968. var at = {};
  13969. function lt(t, e) {
  13970. for (var i, n, s, o, r, a, l, c = [], u = 0, h = t.length; u < h; u++)(n = t[u]).style && (i = n.style.display, e ? ("none" === i && (c[u] = K.get(n, "display") || null, c[u] || (n.style.display = "")), "" === n.style.display && ot(n) && (c[u] = (l = r = o = void 0, r = (s = n).ownerDocument, a = s.nodeName, (l = at[a]) || (o = r.body.appendChild(r.createElement(a)), l = T.css(o, "display"), o.parentNode.removeChild(o), "none" === l && (l = "block"), at[a] = l)))) : "none" !== i && (c[u] = "none", K.set(n, "display", i)));
  13971. for (u = 0; u < h; u++) null != c[u] && (t[u].style.display = c[u]);
  13972. return t
  13973. }
  13974. T.fn.extend({
  13975. show: function () {
  13976. return lt(this, !0)
  13977. },
  13978. hide: function () {
  13979. return lt(this)
  13980. },
  13981. toggle: function (t) {
  13982. return "boolean" == typeof t ? t ? this.show() : this.hide() : this.each(function () {
  13983. ot(this) ? T(this).show() : T(this).hide()
  13984. })
  13985. }
  13986. });
  13987. var ct, ut, ht = /^(?:checkbox|radio)$/i,
  13988. dt = /<([a-z][^\/\0>\x20\t\r\n\f]*)/i,
  13989. pt = /^$|^module$|\/(?:java|ecma)script/i;
  13990. ct = C.createDocumentFragment().appendChild(C.createElement("div")), (ut = C.createElement("input")).setAttribute("type", "radio"), ut.setAttribute("checked", "checked"), ut.setAttribute("name", "t"), ct.appendChild(ut), _.checkClone = ct.cloneNode(!0).cloneNode(!0).lastChild.checked, ct.innerHTML = "<textarea>x</textarea>", _.noCloneChecked = !!ct.cloneNode(!0).lastChild.defaultValue, ct.innerHTML = "<option></option>", _.option = !!ct.lastChild;
  13991. var ft = {
  13992. thead: [1, "<table>", "</table>"],
  13993. col: [2, "<table><colgroup>", "</colgroup></table>"],
  13994. tr: [2, "<table><tbody>", "</tbody></table>"],
  13995. td: [3, "<table><tbody><tr>", "</tr></tbody></table>"],
  13996. _default: [0, "", ""]
  13997. };
  13998. function gt(t, e) {
  13999. var i;
  14000. return i = void 0 !== t.getElementsByTagName ? t.getElementsByTagName(e || "*") : void 0 !== t.querySelectorAll ? t.querySelectorAll(e || "*") : [], void 0 === e || e && S(t, e) ? T.merge([t], i) : i
  14001. }
  14002. function mt(t, e) {
  14003. for (var i = 0, n = t.length; i < n; i++) K.set(t[i], "globalEval", !e || K.get(e[i], "globalEval"))
  14004. }
  14005. ft.tbody = ft.tfoot = ft.colgroup = ft.caption = ft.thead, ft.th = ft.td, _.option || (ft.optgroup = ft.option = [1, "<select multiple='multiple'>", "</select>"]);
  14006. var vt = /<|&#?\w+;/;
  14007. function _t(t, e, i, n, s) {
  14008. for (var o, r, a, l, c, u, h = e.createDocumentFragment(), d = [], p = 0, f = t.length; p < f; p++)
  14009. if ((o = t[p]) || 0 === o)
  14010. if ("object" === w(o)) T.merge(d, o.nodeType ? [o] : o);
  14011. else if (vt.test(o)) {
  14012. for (r = r || h.appendChild(e.createElement("div")), a = (dt.exec(o) || ["", ""])[1].toLowerCase(), l = ft[a] || ft._default, r.innerHTML = l[1] + T.htmlPrefilter(o) + l[2], u = l[0]; u--;) r = r.lastChild;
  14013. T.merge(d, r.childNodes), (r = h.firstChild).textContent = ""
  14014. } else d.push(e.createTextNode(o));
  14015. for (h.textContent = "", p = 0; o = d[p++];)
  14016. if (n && -1 < T.inArray(o, n)) s && s.push(o);
  14017. else if (c = nt(o), r = gt(h.appendChild(o), "script"), c && mt(r), i)
  14018. for (u = 0; o = r[u++];) pt.test(o.type || "") && i.push(o);
  14019. return h
  14020. }
  14021. var yt = /^([^.]*)(?:\.(.+)|)/;
  14022. function bt() {
  14023. return !0
  14024. }
  14025. function wt() {
  14026. return !1
  14027. }
  14028. function kt(t, e) {
  14029. return t === function () {
  14030. try {
  14031. return C.activeElement
  14032. } catch (t) {}
  14033. }() == ("focus" === e)
  14034. }
  14035. function xt(t, e, i, n, s, o) {
  14036. var r, a;
  14037. if ("object" == _typeof(e)) {
  14038. for (a in "string" != typeof i && (n = n || i, i = void 0), e) xt(t, a, i, n, e[a], o);
  14039. return t
  14040. }
  14041. if (null == n && null == s ? (s = i, n = i = void 0) : null == s && ("string" == typeof i ? (s = n, n = void 0) : (s = n, n = i, i = void 0)), !1 === s) s = wt;
  14042. else if (!s) return t;
  14043. return 1 === o && (r = s, (s = function (t) {
  14044. return T().off(t), r.apply(this, arguments)
  14045. }).guid = r.guid || (r.guid = T.guid++)), t.each(function () {
  14046. T.event.add(this, e, s, n, i)
  14047. })
  14048. }
  14049. function Ct(t, s, o) {
  14050. o ? (K.set(t, s, !1), T.event.add(t, s, {
  14051. namespace: !1,
  14052. handler: function (t) {
  14053. var e, i, n = K.get(this, s);
  14054. if (1 & t.isTrigger && this[s]) {
  14055. if (n.length)(T.event.special[s] || {}).delegateType && t.stopPropagation();
  14056. else if (n = a.call(arguments), K.set(this, s, n), e = o(this, s), this[s](), n !== (i = K.get(this, s)) || e ? K.set(this, s, !1) : i = {}, n !== i) return t.stopImmediatePropagation(), t.preventDefault(), i && i.value
  14057. } else n.length && (K.set(this, s, {
  14058. value: T.event.trigger(T.extend(n[0], T.Event.prototype), n.slice(1), this)
  14059. }), t.stopImmediatePropagation())
  14060. }
  14061. })) : void 0 === K.get(t, s) && T.event.add(t, s, bt)
  14062. }
  14063. T.event = {
  14064. global: {},
  14065. add: function (e, t, i, n, s) {
  14066. var o, r, a, l, c, u, h, d, p, f, g, m = K.get(e);
  14067. if (Y(e))
  14068. for (i.handler && (i = (o = i).handler, s = o.selector), s && T.find.matchesSelector(it, s), i.guid || (i.guid = T.guid++), (l = m.events) || (l = m.events = Object.create(null)), (r = m.handle) || (r = m.handle = function (t) {
  14069. return void 0 !== T && T.event.triggered !== t.type ? T.event.dispatch.apply(e, arguments) : void 0
  14070. }), c = (t = (t || "").match(N) || [""]).length; c--;) p = g = (a = yt.exec(t[c]) || [])[1], f = (a[2] || "").split(".").sort(), p && (h = T.event.special[p] || {}, p = (s ? h.delegateType : h.bindType) || p, h = T.event.special[p] || {}, u = T.extend({
  14071. type: p,
  14072. origType: g,
  14073. data: n,
  14074. handler: i,
  14075. guid: i.guid,
  14076. selector: s,
  14077. needsContext: s && T.expr.match.needsContext.test(s),
  14078. namespace: f.join(".")
  14079. }, o), (d = l[p]) || ((d = l[p] = []).delegateCount = 0, h.setup && !1 !== h.setup.call(e, n, f, r) || e.addEventListener && e.addEventListener(p, r)), h.add && (h.add.call(e, u), u.handler.guid || (u.handler.guid = i.guid)), s ? d.splice(d.delegateCount++, 0, u) : d.push(u), T.event.global[p] = !0)
  14080. },
  14081. remove: function (t, e, i, n, s) {
  14082. var o, r, a, l, c, u, h, d, p, f, g, m = K.hasData(t) && K.get(t);
  14083. if (m && (l = m.events)) {
  14084. for (c = (e = (e || "").match(N) || [""]).length; c--;)
  14085. if (p = g = (a = yt.exec(e[c]) || [])[1], f = (a[2] || "").split(".").sort(), p) {
  14086. for (h = T.event.special[p] || {}, d = l[p = (n ? h.delegateType : h.bindType) || p] || [], a = a[2] && new RegExp("(^|\\.)" + f.join("\\.(?:.*\\.|)") + "(\\.|$)"), r = o = d.length; o--;) u = d[o], !s && g !== u.origType || i && i.guid !== u.guid || a && !a.test(u.namespace) || n && n !== u.selector && ("**" !== n || !u.selector) || (d.splice(o, 1), u.selector && d.delegateCount--, h.remove && h.remove.call(t, u));
  14087. r && !d.length && (h.teardown && !1 !== h.teardown.call(t, f, m.handle) || T.removeEvent(t, p, m.handle), delete l[p])
  14088. } else
  14089. for (p in l) T.event.remove(t, p + e[c], i, n, !0);
  14090. T.isEmptyObject(l) && K.remove(t, "handle events")
  14091. }
  14092. },
  14093. dispatch: function (t) {
  14094. var e, i, n, s, o, r, a = new Array(arguments.length),
  14095. l = T.event.fix(t),
  14096. c = (K.get(this, "events") || Object.create(null))[l.type] || [],
  14097. u = T.event.special[l.type] || {};
  14098. for (a[0] = l, e = 1; e < arguments.length; e++) a[e] = arguments[e];
  14099. if (l.delegateTarget = this, !u.preDispatch || !1 !== u.preDispatch.call(this, l)) {
  14100. for (r = T.event.handlers.call(this, l, c), e = 0;
  14101. (s = r[e++]) && !l.isPropagationStopped();)
  14102. for (l.currentTarget = s.elem, i = 0;
  14103. (o = s.handlers[i++]) && !l.isImmediatePropagationStopped();) l.rnamespace && !1 !== o.namespace && !l.rnamespace.test(o.namespace) || (l.handleObj = o, l.data = o.data, void 0 !== (n = ((T.event.special[o.origType] || {}).handle || o.handler).apply(s.elem, a)) && !1 === (l.result = n) && (l.preventDefault(), l.stopPropagation()));
  14104. return u.postDispatch && u.postDispatch.call(this, l), l.result
  14105. }
  14106. },
  14107. handlers: function (t, e) {
  14108. var i, n, s, o, r, a = [],
  14109. l = e.delegateCount,
  14110. c = t.target;
  14111. if (l && c.nodeType && !("click" === t.type && 1 <= t.button))
  14112. for (; c !== this; c = c.parentNode || this)
  14113. if (1 === c.nodeType && ("click" !== t.type || !0 !== c.disabled)) {
  14114. for (o = [], r = {}, i = 0; i < l; i++) void 0 === r[s = (n = e[i]).selector + " "] && (r[s] = n.needsContext ? -1 < T(s, this).index(c) : T.find(s, this, null, [c]).length), r[s] && o.push(n);
  14115. o.length && a.push({
  14116. elem: c,
  14117. handlers: o
  14118. })
  14119. } return c = this, l < e.length && a.push({
  14120. elem: c,
  14121. handlers: e.slice(l)
  14122. }), a
  14123. },
  14124. addProp: function (e, t) {
  14125. Object.defineProperty(T.Event.prototype, e, {
  14126. enumerable: !0,
  14127. configurable: !0,
  14128. get: y(t) ? function () {
  14129. if (this.originalEvent) return t(this.originalEvent)
  14130. } : function () {
  14131. if (this.originalEvent) return this.originalEvent[e]
  14132. },
  14133. set: function (t) {
  14134. Object.defineProperty(this, e, {
  14135. enumerable: !0,
  14136. configurable: !0,
  14137. writable: !0,
  14138. value: t
  14139. })
  14140. }
  14141. })
  14142. },
  14143. fix: function (t) {
  14144. return t[T.expando] ? t : new T.Event(t)
  14145. },
  14146. special: {
  14147. load: {
  14148. noBubble: !0
  14149. },
  14150. click: {
  14151. setup: function (t) {
  14152. var e = this || t;
  14153. return ht.test(e.type) && e.click && S(e, "input") && Ct(e, "click", bt), !1
  14154. },
  14155. trigger: function (t) {
  14156. var e = this || t;
  14157. return ht.test(e.type) && e.click && S(e, "input") && Ct(e, "click"), !0
  14158. },
  14159. _default: function (t) {
  14160. var e = t.target;
  14161. return ht.test(e.type) && e.click && S(e, "input") && K.get(e, "click") || S(e, "a")
  14162. }
  14163. },
  14164. beforeunload: {
  14165. postDispatch: function (t) {
  14166. void 0 !== t.result && t.originalEvent && (t.originalEvent.returnValue = t.result)
  14167. }
  14168. }
  14169. }
  14170. }, T.removeEvent = function (t, e, i) {
  14171. t.removeEventListener && t.removeEventListener(e, i)
  14172. }, T.Event = function (t, e) {
  14173. if (!(this instanceof T.Event)) return new T.Event(t, e);
  14174. t && t.type ? (this.originalEvent = t, this.type = t.type, this.isDefaultPrevented = t.defaultPrevented || void 0 === t.defaultPrevented && !1 === t.returnValue ? bt : wt, this.target = t.target && 3 === t.target.nodeType ? t.target.parentNode : t.target, this.currentTarget = t.currentTarget, this.relatedTarget = t.relatedTarget) : this.type = t, e && T.extend(this, e), this.timeStamp = t && t.timeStamp || Date.now(), this[T.expando] = !0
  14175. }, T.Event.prototype = {
  14176. constructor: T.Event,
  14177. isDefaultPrevented: wt,
  14178. isPropagationStopped: wt,
  14179. isImmediatePropagationStopped: wt,
  14180. isSimulated: !1,
  14181. preventDefault: function () {
  14182. var t = this.originalEvent;
  14183. this.isDefaultPrevented = bt, t && !this.isSimulated && t.preventDefault()
  14184. },
  14185. stopPropagation: function () {
  14186. var t = this.originalEvent;
  14187. this.isPropagationStopped = bt, t && !this.isSimulated && t.stopPropagation()
  14188. },
  14189. stopImmediatePropagation: function () {
  14190. var t = this.originalEvent;
  14191. this.isImmediatePropagationStopped = bt, t && !this.isSimulated && t.stopImmediatePropagation(), this.stopPropagation()
  14192. }
  14193. }, T.each({
  14194. altKey: !0,
  14195. bubbles: !0,
  14196. cancelable: !0,
  14197. changedTouches: !0,
  14198. ctrlKey: !0,
  14199. detail: !0,
  14200. eventPhase: !0,
  14201. metaKey: !0,
  14202. pageX: !0,
  14203. pageY: !0,
  14204. shiftKey: !0,
  14205. view: !0,
  14206. char: !0,
  14207. code: !0,
  14208. charCode: !0,
  14209. key: !0,
  14210. keyCode: !0,
  14211. button: !0,
  14212. buttons: !0,
  14213. clientX: !0,
  14214. clientY: !0,
  14215. offsetX: !0,
  14216. offsetY: !0,
  14217. pointerId: !0,
  14218. pointerType: !0,
  14219. screenX: !0,
  14220. screenY: !0,
  14221. targetTouches: !0,
  14222. toElement: !0,
  14223. touches: !0,
  14224. which: !0
  14225. }, T.event.addProp), T.each({
  14226. focus: "focusin",
  14227. blur: "focusout"
  14228. }, function (t, e) {
  14229. T.event.special[t] = {
  14230. setup: function () {
  14231. return Ct(this, t, kt), !1
  14232. },
  14233. trigger: function () {
  14234. return Ct(this, t), !0
  14235. },
  14236. _default: function () {
  14237. return !0
  14238. },
  14239. delegateType: e
  14240. }
  14241. }), T.each({
  14242. mouseenter: "mouseover",
  14243. mouseleave: "mouseout",
  14244. pointerenter: "pointerover",
  14245. pointerleave: "pointerout"
  14246. }, function (t, s) {
  14247. T.event.special[t] = {
  14248. delegateType: s,
  14249. bindType: s,
  14250. handle: function (t) {
  14251. var e, i = t.relatedTarget,
  14252. n = t.handleObj;
  14253. return i && (i === this || T.contains(this, i)) || (t.type = n.origType, e = n.handler.apply(this, arguments), t.type = s), e
  14254. }
  14255. }
  14256. }), T.fn.extend({
  14257. on: function (t, e, i, n) {
  14258. return xt(this, t, e, i, n)
  14259. },
  14260. one: function (t, e, i, n) {
  14261. return xt(this, t, e, i, n, 1)
  14262. },
  14263. off: function (t, e, i) {
  14264. var n, s;
  14265. if (t && t.preventDefault && t.handleObj) return n = t.handleObj, T(t.delegateTarget).off(n.namespace ? n.origType + "." + n.namespace : n.origType, n.selector, n.handler), this;
  14266. if ("object" != _typeof(t)) return !1 !== e && "function" != typeof e || (i = e, e = void 0), !1 === i && (i = wt), this.each(function () {
  14267. T.event.remove(this, t, i, e)
  14268. });
  14269. for (s in t) this.off(s, e, t[s]);
  14270. return this
  14271. }
  14272. });
  14273. var Tt = /<script|<style|<link/i,
  14274. St = /checked\s*(?:[^=]|=\s*.checked.)/i,
  14275. Dt = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
  14276. function At(t, e) {
  14277. return S(t, "table") && S(11 !== e.nodeType ? e : e.firstChild, "tr") && T(t).children("tbody")[0] || t
  14278. }
  14279. function Et(t) {
  14280. return t.type = (null !== t.getAttribute("type")) + "/" + t.type, t
  14281. }
  14282. function Pt(t) {
  14283. return "true/" === (t.type || "").slice(0, 5) ? t.type = t.type.slice(5) : t.removeAttribute("type"), t
  14284. }
  14285. function It(t, e) {
  14286. var i, n, s, o, r, a;
  14287. if (1 === e.nodeType) {
  14288. if (K.hasData(t) && (a = K.get(t).events))
  14289. for (s in K.remove(e, "handle events"), a)
  14290. for (i = 0, n = a[s].length; i < n; i++) T.event.add(e, s, a[s][i]);
  14291. X.hasData(t) && (o = X.access(t), r = T.extend({}, o), X.set(e, r))
  14292. }
  14293. }
  14294. function Ot(i, n, s, o) {
  14295. n = m(n);
  14296. var t, e, r, a, l, c, u = 0,
  14297. h = i.length,
  14298. d = h - 1,
  14299. p = n[0],
  14300. f = y(p);
  14301. if (f || 1 < h && "string" == typeof p && !_.checkClone && St.test(p)) return i.each(function (t) {
  14302. var e = i.eq(t);
  14303. f && (n[0] = p.call(this, t, e.html())), Ot(e, n, s, o)
  14304. });
  14305. if (h && (e = (t = _t(n, i[0].ownerDocument, !1, i, o)).firstChild, 1 === t.childNodes.length && (t = e), e || o)) {
  14306. for (a = (r = T.map(gt(t, "script"), Et)).length; u < h; u++) l = t, u !== d && (l = T.clone(l, !0, !0), a && T.merge(r, gt(l, "script"))), s.call(i[u], l, u);
  14307. if (a)
  14308. for (c = r[r.length - 1].ownerDocument, T.map(r, Pt), u = 0; u < a; u++) l = r[u], pt.test(l.type || "") && !K.access(l, "globalEval") && T.contains(c, l) && (l.src && "module" !== (l.type || "").toLowerCase() ? T._evalUrl && !l.noModule && T._evalUrl(l.src, {
  14309. nonce: l.nonce || l.getAttribute("nonce")
  14310. }, c) : b(l.textContent.replace(Dt, ""), l, c))
  14311. }
  14312. return i
  14313. }
  14314. function Mt(t, e, i) {
  14315. for (var n, s = e ? T.filter(e, t) : t, o = 0; null != (n = s[o]); o++) i || 1 !== n.nodeType || T.cleanData(gt(n)), n.parentNode && (i && nt(n) && mt(gt(n, "script")), n.parentNode.removeChild(n));
  14316. return t
  14317. }
  14318. T.extend({
  14319. htmlPrefilter: function (t) {
  14320. return t
  14321. },
  14322. clone: function (t, e, i) {
  14323. var n, s, o, r, a, l, c, u = t.cloneNode(!0),
  14324. h = nt(t);
  14325. if (!(_.noCloneChecked || 1 !== t.nodeType && 11 !== t.nodeType || T.isXMLDoc(t)))
  14326. for (r = gt(u), n = 0, s = (o = gt(t)).length; n < s; n++) a = o[n], "input" === (c = (l = r[n]).nodeName.toLowerCase()) && ht.test(a.type) ? l.checked = a.checked : "input" !== c && "textarea" !== c || (l.defaultValue = a.defaultValue);
  14327. if (e)
  14328. if (i)
  14329. for (o = o || gt(t), r = r || gt(u), n = 0, s = o.length; n < s; n++) It(o[n], r[n]);
  14330. else It(t, u);
  14331. return 0 < (r = gt(u, "script")).length && mt(r, !h && gt(t, "script")), u
  14332. },
  14333. cleanData: function (t) {
  14334. for (var e, i, n, s = T.event.special, o = 0; void 0 !== (i = t[o]); o++)
  14335. if (Y(i)) {
  14336. if (e = i[K.expando]) {
  14337. if (e.events)
  14338. for (n in e.events) s[n] ? T.event.remove(i, n) : T.removeEvent(i, n, e.handle);
  14339. i[K.expando] = void 0
  14340. }
  14341. i[X.expando] && (i[X.expando] = void 0)
  14342. }
  14343. }
  14344. }), T.fn.extend({
  14345. detach: function (t) {
  14346. return Mt(this, t, !0)
  14347. },
  14348. remove: function (t) {
  14349. return Mt(this, t)
  14350. },
  14351. text: function (t) {
  14352. return R(this, function (t) {
  14353. return void 0 === t ? T.text(this) : this.empty().each(function () {
  14354. 1 !== this.nodeType && 11 !== this.nodeType && 9 !== this.nodeType || (this.textContent = t)
  14355. })
  14356. }, null, t, arguments.length)
  14357. },
  14358. append: function () {
  14359. return Ot(this, arguments, function (t) {
  14360. 1 !== this.nodeType && 11 !== this.nodeType && 9 !== this.nodeType || At(this, t).appendChild(t)
  14361. })
  14362. },
  14363. prepend: function () {
  14364. return Ot(this, arguments, function (t) {
  14365. if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
  14366. var e = At(this, t);
  14367. e.insertBefore(t, e.firstChild)
  14368. }
  14369. })
  14370. },
  14371. before: function () {
  14372. return Ot(this, arguments, function (t) {
  14373. this.parentNode && this.parentNode.insertBefore(t, this)
  14374. })
  14375. },
  14376. after: function () {
  14377. return Ot(this, arguments, function (t) {
  14378. this.parentNode && this.parentNode.insertBefore(t, this.nextSibling)
  14379. })
  14380. },
  14381. empty: function () {
  14382. for (var t, e = 0; null != (t = this[e]); e++) 1 === t.nodeType && (T.cleanData(gt(t, !1)), t.textContent = "");
  14383. return this
  14384. },
  14385. clone: function (t, e) {
  14386. return t = null != t && t, e = null == e ? t : e, this.map(function () {
  14387. return T.clone(this, t, e)
  14388. })
  14389. },
  14390. html: function (t) {
  14391. return R(this, function (t) {
  14392. var e = this[0] || {},
  14393. i = 0,
  14394. n = this.length;
  14395. if (void 0 === t && 1 === e.nodeType) return e.innerHTML;
  14396. if ("string" == typeof t && !Tt.test(t) && !ft[(dt.exec(t) || ["", ""])[1].toLowerCase()]) {
  14397. t = T.htmlPrefilter(t);
  14398. try {
  14399. for (; i < n; i++) 1 === (e = this[i] || {}).nodeType && (T.cleanData(gt(e, !1)), e.innerHTML = t);
  14400. e = 0
  14401. } catch (t) {}
  14402. }
  14403. e && this.empty().append(t)
  14404. }, null, t, arguments.length)
  14405. },
  14406. replaceWith: function () {
  14407. var i = [];
  14408. return Ot(this, arguments, function (t) {
  14409. var e = this.parentNode;
  14410. T.inArray(this, i) < 0 && (T.cleanData(gt(this)), e && e.replaceChild(t, this))
  14411. }, i)
  14412. }
  14413. }), T.each({
  14414. appendTo: "append",
  14415. prependTo: "prepend",
  14416. insertBefore: "before",
  14417. insertAfter: "after",
  14418. replaceAll: "replaceWith"
  14419. }, function (t, r) {
  14420. T.fn[t] = function (t) {
  14421. for (var e, i = [], n = T(t), s = n.length - 1, o = 0; o <= s; o++) e = o === s ? this : this.clone(!0), T(n[o])[r](e), l.apply(i, e.get());
  14422. return this.pushStack(i)
  14423. }
  14424. });
  14425. function Nt(t, e, i) {
  14426. var n, s, o = {};
  14427. for (s in e) o[s] = t.style[s], t.style[s] = e[s];
  14428. for (s in n = i.call(t), e) t.style[s] = o[s];
  14429. return n
  14430. }
  14431. var Lt = new RegExp("^(" + Z + ")(?!px)[a-z%]+$", "i"),
  14432. Ht = function (t) {
  14433. var e = t.ownerDocument.defaultView;
  14434. return e && e.opener || (e = x), e.getComputedStyle(t)
  14435. },
  14436. jt = new RegExp(et.join("|"), "i");
  14437. function zt(t, e, i) {
  14438. var n, s, o, r, a = t.style;
  14439. return (i = i || Ht(t)) && ("" !== (r = i.getPropertyValue(e) || i[e]) || nt(t) || (r = T.style(t, e)), !_.pixelBoxStyles() && Lt.test(r) && jt.test(e) && (n = a.width, s = a.minWidth, o = a.maxWidth, a.minWidth = a.maxWidth = a.width = r, r = i.width, a.width = n, a.minWidth = s, a.maxWidth = o)), void 0 !== r ? r + "" : r
  14440. }
  14441. function Wt(t, e) {
  14442. return {
  14443. get: function () {
  14444. if (!t()) return (this.get = e).apply(this, arguments);
  14445. delete this.get
  14446. }
  14447. }
  14448. }! function () {
  14449. function t() {
  14450. if (c) {
  14451. l.style.cssText = "position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0", c.style.cssText = "position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%", it.appendChild(l).appendChild(c);
  14452. var t = x.getComputedStyle(c);
  14453. i = "1%" !== t.top, a = 12 === e(t.marginLeft), c.style.right = "60%", o = 36 === e(t.right), n = 36 === e(t.width), c.style.position = "absolute", s = 12 === e(c.offsetWidth / 3), it.removeChild(l), c = null
  14454. }
  14455. }
  14456. function e(t) {
  14457. return Math.round(parseFloat(t))
  14458. }
  14459. var i, n, s, o, r, a, l = C.createElement("div"),
  14460. c = C.createElement("div");
  14461. c.style && (c.style.backgroundClip = "content-box", c.cloneNode(!0).style.backgroundClip = "", _.clearCloneStyle = "content-box" === c.style.backgroundClip, T.extend(_, {
  14462. boxSizingReliable: function () {
  14463. return t(), n
  14464. },
  14465. pixelBoxStyles: function () {
  14466. return t(), o
  14467. },
  14468. pixelPosition: function () {
  14469. return t(), i
  14470. },
  14471. reliableMarginLeft: function () {
  14472. return t(), a
  14473. },
  14474. scrollboxSize: function () {
  14475. return t(), s
  14476. },
  14477. reliableTrDimensions: function () {
  14478. var t, e, i, n;
  14479. return null == r && (t = C.createElement("table"), e = C.createElement("tr"), i = C.createElement("div"), t.style.cssText = "position:absolute;left:-11111px;border-collapse:separate", e.style.cssText = "border:1px solid", e.style.height = "1px", i.style.height = "9px", i.style.display = "block", it.appendChild(t).appendChild(e).appendChild(i), n = x.getComputedStyle(e), r = parseInt(n.height, 10) + parseInt(n.borderTopWidth, 10) + parseInt(n.borderBottomWidth, 10) === e.offsetHeight, it.removeChild(t)), r
  14480. }
  14481. }))
  14482. }();
  14483. var $t = ["Webkit", "Moz", "ms"],
  14484. Rt = C.createElement("div").style,
  14485. Ft = {};
  14486. function qt(t) {
  14487. return T.cssProps[t] || Ft[t] || (t in Rt ? t : Ft[t] = function (t) {
  14488. for (var e = t[0].toUpperCase() + t.slice(1), i = $t.length; i--;)
  14489. if ((t = $t[i] + e) in Rt) return t
  14490. }(t) || t)
  14491. }
  14492. var Bt = /^(none|table(?!-c[ea]).+)/,
  14493. Ut = /^--/,
  14494. Yt = {
  14495. position: "absolute",
  14496. visibility: "hidden",
  14497. display: "block"
  14498. },
  14499. Vt = {
  14500. letterSpacing: "0",
  14501. fontWeight: "400"
  14502. };
  14503. function Kt(t, e, i) {
  14504. var n = tt.exec(e);
  14505. return n ? Math.max(0, n[2] - (i || 0)) + (n[3] || "px") : e
  14506. }
  14507. function Xt(t, e, i, n, s, o) {
  14508. var r = "width" === e ? 1 : 0,
  14509. a = 0,
  14510. l = 0;
  14511. if (i === (n ? "border" : "content")) return 0;
  14512. for (; r < 4; r += 2) "margin" === i && (l += T.css(t, i + et[r], !0, s)), n ? ("content" === i && (l -= T.css(t, "padding" + et[r], !0, s)), "margin" !== i && (l -= T.css(t, "border" + et[r] + "Width", !0, s))) : (l += T.css(t, "padding" + et[r], !0, s), "padding" !== i ? l += T.css(t, "border" + et[r] + "Width", !0, s) : a += T.css(t, "border" + et[r] + "Width", !0, s));
  14513. return !n && 0 <= o && (l += Math.max(0, Math.ceil(t["offset" + e[0].toUpperCase() + e.slice(1)] - o - l - a - .5)) || 0), l
  14514. }
  14515. function Qt(t, e, i) {
  14516. var n = Ht(t),
  14517. s = (!_.boxSizingReliable() || i) && "border-box" === T.css(t, "boxSizing", !1, n),
  14518. o = s,
  14519. r = zt(t, e, n),
  14520. a = "offset" + e[0].toUpperCase() + e.slice(1);
  14521. if (Lt.test(r)) {
  14522. if (!i) return r;
  14523. r = "auto"
  14524. }
  14525. return (!_.boxSizingReliable() && s || !_.reliableTrDimensions() && S(t, "tr") || "auto" === r || !parseFloat(r) && "inline" === T.css(t, "display", !1, n)) && t.getClientRects().length && (s = "border-box" === T.css(t, "boxSizing", !1, n), (o = a in t) && (r = t[a])), (r = parseFloat(r) || 0) + Xt(t, e, i || (s ? "border" : "content"), o, n, r) + "px"
  14526. }
  14527. function Gt(t, e, i, n, s) {
  14528. return new Gt.prototype.init(t, e, i, n, s)
  14529. }
  14530. T.extend({
  14531. cssHooks: {
  14532. opacity: {
  14533. get: function (t, e) {
  14534. if (e) {
  14535. var i = zt(t, "opacity");
  14536. return "" === i ? "1" : i
  14537. }
  14538. }
  14539. }
  14540. },
  14541. cssNumber: {
  14542. animationIterationCount: !0,
  14543. columnCount: !0,
  14544. fillOpacity: !0,
  14545. flexGrow: !0,
  14546. flexShrink: !0,
  14547. fontWeight: !0,
  14548. gridArea: !0,
  14549. gridColumn: !0,
  14550. gridColumnEnd: !0,
  14551. gridColumnStart: !0,
  14552. gridRow: !0,
  14553. gridRowEnd: !0,
  14554. gridRowStart: !0,
  14555. lineHeight: !0,
  14556. opacity: !0,
  14557. order: !0,
  14558. orphans: !0,
  14559. widows: !0,
  14560. zIndex: !0,
  14561. zoom: !0
  14562. },
  14563. cssProps: {},
  14564. style: function (t, e, i, n) {
  14565. if (t && 3 !== t.nodeType && 8 !== t.nodeType && t.style) {
  14566. var s, o, r, a = U(e),
  14567. l = Ut.test(e),
  14568. c = t.style;
  14569. if (l || (e = qt(a)), r = T.cssHooks[e] || T.cssHooks[a], void 0 === i) return r && "get" in r && void 0 !== (s = r.get(t, !1, n)) ? s : c[e];
  14570. "string" === (o = _typeof(i)) && (s = tt.exec(i)) && s[1] && (i = rt(t, e, s), o = "number"), null != i && i == i && ("number" !== o || l || (i += s && s[3] || (T.cssNumber[a] ? "" : "px")), _.clearCloneStyle || "" !== i || 0 !== e.indexOf("background") || (c[e] = "inherit"), r && "set" in r && void 0 === (i = r.set(t, i, n)) || (l ? c.setProperty(e, i) : c[e] = i))
  14571. }
  14572. },
  14573. css: function (t, e, i, n) {
  14574. var s, o, r, a = U(e);
  14575. return Ut.test(e) || (e = qt(a)), (r = T.cssHooks[e] || T.cssHooks[a]) && "get" in r && (s = r.get(t, !0, i)), void 0 === s && (s = zt(t, e, n)), "normal" === s && e in Vt && (s = Vt[e]), "" === i || i ? (o = parseFloat(s), !0 === i || isFinite(o) ? o || 0 : s) : s
  14576. }
  14577. }), T.each(["height", "width"], function (t, l) {
  14578. T.cssHooks[l] = {
  14579. get: function (t, e, i) {
  14580. if (e) return !Bt.test(T.css(t, "display")) || t.getClientRects().length && t.getBoundingClientRect().width ? Qt(t, l, i) : Nt(t, Yt, function () {
  14581. return Qt(t, l, i)
  14582. })
  14583. },
  14584. set: function (t, e, i) {
  14585. var n, s = Ht(t),
  14586. o = !_.scrollboxSize() && "absolute" === s.position,
  14587. r = (o || i) && "border-box" === T.css(t, "boxSizing", !1, s),
  14588. a = i ? Xt(t, l, i, r, s) : 0;
  14589. return r && o && (a -= Math.ceil(t["offset" + l[0].toUpperCase() + l.slice(1)] - parseFloat(s[l]) - Xt(t, l, "border", !1, s) - .5)), a && (n = tt.exec(e)) && "px" !== (n[3] || "px") && (t.style[l] = e, e = T.css(t, l)), Kt(0, e, a)
  14590. }
  14591. }
  14592. }), T.cssHooks.marginLeft = Wt(_.reliableMarginLeft, function (t, e) {
  14593. if (e) return (parseFloat(zt(t, "marginLeft")) || t.getBoundingClientRect().left - Nt(t, {
  14594. marginLeft: 0
  14595. }, function () {
  14596. return t.getBoundingClientRect().left
  14597. })) + "px"
  14598. }), T.each({
  14599. margin: "",
  14600. padding: "",
  14601. border: "Width"
  14602. }, function (s, o) {
  14603. T.cssHooks[s + o] = {
  14604. expand: function (t) {
  14605. for (var e = 0, i = {}, n = "string" == typeof t ? t.split(" ") : [t]; e < 4; e++) i[s + et[e] + o] = n[e] || n[e - 2] || n[0];
  14606. return i
  14607. }
  14608. }, "margin" !== s && (T.cssHooks[s + o].set = Kt)
  14609. }), T.fn.extend({
  14610. css: function (t, e) {
  14611. return R(this, function (t, e, i) {
  14612. var n, s, o = {},
  14613. r = 0;
  14614. if (Array.isArray(e)) {
  14615. for (n = Ht(t), s = e.length; r < s; r++) o[e[r]] = T.css(t, e[r], !1, n);
  14616. return o
  14617. }
  14618. return void 0 !== i ? T.style(t, e, i) : T.css(t, e)
  14619. }, t, e, 1 < arguments.length)
  14620. }
  14621. }), ((T.Tween = Gt).prototype = {
  14622. constructor: Gt,
  14623. init: function (t, e, i, n, s, o) {
  14624. this.elem = t, this.prop = i, this.easing = s || T.easing._default, this.options = e, this.start = this.now = this.cur(), this.end = n, this.unit = o || (T.cssNumber[i] ? "" : "px")
  14625. },
  14626. cur: function () {
  14627. var t = Gt.propHooks[this.prop];
  14628. return t && t.get ? t.get(this) : Gt.propHooks._default.get(this)
  14629. },
  14630. run: function (t) {
  14631. var e, i = Gt.propHooks[this.prop];
  14632. return this.options.duration ? this.pos = e = T.easing[this.easing](t, this.options.duration * t, 0, 1, this.options.duration) : this.pos = e = t, this.now = (this.end - this.start) * e + this.start, this.options.step && this.options.step.call(this.elem, this.now, this), i && i.set ? i.set(this) : Gt.propHooks._default.set(this), this
  14633. }
  14634. }).init.prototype = Gt.prototype, (Gt.propHooks = {
  14635. _default: {
  14636. get: function (t) {
  14637. var e;
  14638. return 1 !== t.elem.nodeType || null != t.elem[t.prop] && null == t.elem.style[t.prop] ? t.elem[t.prop] : (e = T.css(t.elem, t.prop, "")) && "auto" !== e ? e : 0
  14639. },
  14640. set: function (t) {
  14641. T.fx.step[t.prop] ? T.fx.step[t.prop](t) : 1 !== t.elem.nodeType || !T.cssHooks[t.prop] && null == t.elem.style[qt(t.prop)] ? t.elem[t.prop] = t.now : T.style(t.elem, t.prop, t.now + t.unit)
  14642. }
  14643. }
  14644. }).scrollTop = Gt.propHooks.scrollLeft = {
  14645. set: function (t) {
  14646. t.elem.nodeType && t.elem.parentNode && (t.elem[t.prop] = t.now)
  14647. }
  14648. }, T.easing = {
  14649. linear: function (t) {
  14650. return t
  14651. },
  14652. swing: function (t) {
  14653. return .5 - Math.cos(t * Math.PI) / 2
  14654. },
  14655. _default: "swing"
  14656. }, T.fx = Gt.prototype.init, T.fx.step = {};
  14657. var Jt, Zt, te, ee, ie = /^(?:toggle|show|hide)$/,
  14658. ne = /queueHooks$/;
  14659. function se() {
  14660. Zt && (!1 === C.hidden && x.requestAnimationFrame ? x.requestAnimationFrame(se) : x.setTimeout(se, T.fx.interval), T.fx.tick())
  14661. }
  14662. function oe() {
  14663. return x.setTimeout(function () {
  14664. Jt = void 0
  14665. }), Jt = Date.now()
  14666. }
  14667. function re(t, e) {
  14668. var i, n = 0,
  14669. s = {
  14670. height: t
  14671. };
  14672. for (e = e ? 1 : 0; n < 4; n += 2 - e) s["margin" + (i = et[n])] = s["padding" + i] = t;
  14673. return e && (s.opacity = s.width = t), s
  14674. }
  14675. function ae(t, e, i) {
  14676. for (var n, s = (le.tweeners[e] || []).concat(le.tweeners["*"]), o = 0, r = s.length; o < r; o++)
  14677. if (n = s[o].call(i, e, t)) return n
  14678. }
  14679. function le(o, t, e) {
  14680. var i, r, n = 0,
  14681. s = le.prefilters.length,
  14682. a = T.Deferred().always(function () {
  14683. delete l.elem
  14684. }),
  14685. l = function () {
  14686. if (r) return !1;
  14687. for (var t = Jt || oe(), e = Math.max(0, c.startTime + c.duration - t), i = 1 - (e / c.duration || 0), n = 0, s = c.tweens.length; n < s; n++) c.tweens[n].run(i);
  14688. return a.notifyWith(o, [c, i, e]), i < 1 && s ? e : (s || a.notifyWith(o, [c, 1, 0]), a.resolveWith(o, [c]), !1)
  14689. },
  14690. c = a.promise({
  14691. elem: o,
  14692. props: T.extend({}, t),
  14693. opts: T.extend(!0, {
  14694. specialEasing: {},
  14695. easing: T.easing._default
  14696. }, e),
  14697. originalProperties: t,
  14698. originalOptions: e,
  14699. startTime: Jt || oe(),
  14700. duration: e.duration,
  14701. tweens: [],
  14702. createTween: function (t, e) {
  14703. var i = T.Tween(o, c.opts, t, e, c.opts.specialEasing[t] || c.opts.easing);
  14704. return c.tweens.push(i), i
  14705. },
  14706. stop: function (t) {
  14707. var e = 0,
  14708. i = t ? c.tweens.length : 0;
  14709. if (r) return this;
  14710. for (r = !0; e < i; e++) c.tweens[e].run(1);
  14711. return t ? (a.notifyWith(o, [c, 1, 0]), a.resolveWith(o, [c, t])) : a.rejectWith(o, [c, t]), this
  14712. }
  14713. }),
  14714. u = c.props;
  14715. for (function (t, e) {
  14716. var i, n, s, o, r;
  14717. for (i in t)
  14718. if (s = e[n = U(i)], o = t[i], Array.isArray(o) && (s = o[1], o = t[i] = o[0]), i !== n && (t[n] = o, delete t[i]), (r = T.cssHooks[n]) && "expand" in r)
  14719. for (i in o = r.expand(o), delete t[n], o) i in t || (t[i] = o[i], e[i] = s);
  14720. else e[n] = s
  14721. }(u, c.opts.specialEasing); n < s; n++)
  14722. if (i = le.prefilters[n].call(c, o, u, c.opts)) return y(i.stop) && (T._queueHooks(c.elem, c.opts.queue).stop = i.stop.bind(i)), i;
  14723. return T.map(u, ae, c), y(c.opts.start) && c.opts.start.call(o, c), c.progress(c.opts.progress).done(c.opts.done, c.opts.complete).fail(c.opts.fail).always(c.opts.always), T.fx.timer(T.extend(l, {
  14724. elem: o,
  14725. anim: c,
  14726. queue: c.opts.queue
  14727. })), c
  14728. }
  14729. T.Animation = T.extend(le, {
  14730. tweeners: {
  14731. "*": [function (t, e) {
  14732. var i = this.createTween(t, e);
  14733. return rt(i.elem, t, tt.exec(e), i), i
  14734. }]
  14735. },
  14736. tweener: function (t, e) {
  14737. for (var i, n = 0, s = (t = y(t) ? (e = t, ["*"]) : t.match(N)).length; n < s; n++) i = t[n], le.tweeners[i] = le.tweeners[i] || [], le.tweeners[i].unshift(e)
  14738. },
  14739. prefilters: [function (t, e, i) {
  14740. var n, s, o, r, a, l, c, u, h = "width" in e || "height" in e,
  14741. d = this,
  14742. p = {},
  14743. f = t.style,
  14744. g = t.nodeType && ot(t),
  14745. m = K.get(t, "fxshow");
  14746. for (n in i.queue || (null == (r = T._queueHooks(t, "fx")).unqueued && (r.unqueued = 0, a = r.empty.fire, r.empty.fire = function () {
  14747. r.unqueued || a()
  14748. }), r.unqueued++, d.always(function () {
  14749. d.always(function () {
  14750. r.unqueued--, T.queue(t, "fx").length || r.empty.fire()
  14751. })
  14752. })), e)
  14753. if (s = e[n], ie.test(s)) {
  14754. if (delete e[n], o = o || "toggle" === s, s === (g ? "hide" : "show")) {
  14755. if ("show" !== s || !m || void 0 === m[n]) continue;
  14756. g = !0
  14757. }
  14758. p[n] = m && m[n] || T.style(t, n)
  14759. } if ((l = !T.isEmptyObject(e)) || !T.isEmptyObject(p))
  14760. for (n in h && 1 === t.nodeType && (i.overflow = [f.overflow, f.overflowX, f.overflowY], null == (c = m && m.display) && (c = K.get(t, "display")), "none" === (u = T.css(t, "display")) && (c ? u = c : (lt([t], !0), c = t.style.display || c, u = T.css(t, "display"), lt([t]))), ("inline" === u || "inline-block" === u && null != c) && "none" === T.css(t, "float") && (l || (d.done(function () {
  14761. f.display = c
  14762. }), null == c && (u = f.display, c = "none" === u ? "" : u)), f.display = "inline-block")), i.overflow && (f.overflow = "hidden", d.always(function () {
  14763. f.overflow = i.overflow[0], f.overflowX = i.overflow[1], f.overflowY = i.overflow[2]
  14764. })), l = !1, p) l || (m ? "hidden" in m && (g = m.hidden) : m = K.access(t, "fxshow", {
  14765. display: c
  14766. }), o && (m.hidden = !g), g && lt([t], !0), d.done(function () {
  14767. for (n in g || lt([t]), K.remove(t, "fxshow"), p) T.style(t, n, p[n])
  14768. })), l = ae(g ? m[n] : 0, n, d), n in m || (m[n] = l.start, g && (l.end = l.start, l.start = 0))
  14769. }],
  14770. prefilter: function (t, e) {
  14771. e ? le.prefilters.unshift(t) : le.prefilters.push(t)
  14772. }
  14773. }), T.speed = function (t, e, i) {
  14774. var n = t && "object" == _typeof(t) ? T.extend({}, t) : {
  14775. complete: i || !i && e || y(t) && t,
  14776. duration: t,
  14777. easing: i && e || e && !y(e) && e
  14778. };
  14779. return T.fx.off ? n.duration = 0 : "number" != typeof n.duration && (n.duration in T.fx.speeds ? n.duration = T.fx.speeds[n.duration] : n.duration = T.fx.speeds._default), null != n.queue && !0 !== n.queue || (n.queue = "fx"), n.old = n.complete, n.complete = function () {
  14780. y(n.old) && n.old.call(this), n.queue && T.dequeue(this, n.queue)
  14781. }, n
  14782. }, T.fn.extend({
  14783. fadeTo: function (t, e, i, n) {
  14784. return this.filter(ot).css("opacity", 0).show().end().animate({
  14785. opacity: e
  14786. }, t, i, n)
  14787. },
  14788. animate: function (e, t, i, n) {
  14789. function s() {
  14790. var t = le(this, T.extend({}, e), r);
  14791. (o || K.get(this, "finish")) && t.stop(!0)
  14792. }
  14793. var o = T.isEmptyObject(e),
  14794. r = T.speed(t, i, n);
  14795. return s.finish = s, o || !1 === r.queue ? this.each(s) : this.queue(r.queue, s)
  14796. },
  14797. stop: function (s, t, o) {
  14798. function r(t) {
  14799. var e = t.stop;
  14800. delete t.stop, e(o)
  14801. }
  14802. return "string" != typeof s && (o = t, t = s, s = void 0), t && this.queue(s || "fx", []), this.each(function () {
  14803. var t = !0,
  14804. e = null != s && s + "queueHooks",
  14805. i = T.timers,
  14806. n = K.get(this);
  14807. if (e) n[e] && n[e].stop && r(n[e]);
  14808. else
  14809. for (e in n) n[e] && n[e].stop && ne.test(e) && r(n[e]);
  14810. for (e = i.length; e--;) i[e].elem !== this || null != s && i[e].queue !== s || (i[e].anim.stop(o), t = !1, i.splice(e, 1));
  14811. !t && o || T.dequeue(this, s)
  14812. })
  14813. },
  14814. finish: function (r) {
  14815. return !1 !== r && (r = r || "fx"), this.each(function () {
  14816. var t, e = K.get(this),
  14817. i = e[r + "queue"],
  14818. n = e[r + "queueHooks"],
  14819. s = T.timers,
  14820. o = i ? i.length : 0;
  14821. for (e.finish = !0, T.queue(this, r, []), n && n.stop && n.stop.call(this, !0), t = s.length; t--;) s[t].elem === this && s[t].queue === r && (s[t].anim.stop(!0), s.splice(t, 1));
  14822. for (t = 0; t < o; t++) i[t] && i[t].finish && i[t].finish.call(this);
  14823. delete e.finish
  14824. })
  14825. }
  14826. }), T.each(["toggle", "show", "hide"], function (t, n) {
  14827. var s = T.fn[n];
  14828. T.fn[n] = function (t, e, i) {
  14829. return null == t || "boolean" == typeof t ? s.apply(this, arguments) : this.animate(re(n, !0), t, e, i)
  14830. }
  14831. }), T.each({
  14832. slideDown: re("show"),
  14833. slideUp: re("hide"),
  14834. slideToggle: re("toggle"),
  14835. fadeIn: {
  14836. opacity: "show"
  14837. },
  14838. fadeOut: {
  14839. opacity: "hide"
  14840. },
  14841. fadeToggle: {
  14842. opacity: "toggle"
  14843. }
  14844. }, function (t, n) {
  14845. T.fn[t] = function (t, e, i) {
  14846. return this.animate(n, t, e, i)
  14847. }
  14848. }), T.timers = [], T.fx.tick = function () {
  14849. var t, e = 0,
  14850. i = T.timers;
  14851. for (Jt = Date.now(); e < i.length; e++)(t = i[e])() || i[e] !== t || i.splice(e--, 1);
  14852. i.length || T.fx.stop(), Jt = void 0
  14853. }, T.fx.timer = function (t) {
  14854. T.timers.push(t), T.fx.start()
  14855. }, T.fx.interval = 13, T.fx.start = function () {
  14856. Zt || (Zt = !0, se())
  14857. }, T.fx.stop = function () {
  14858. Zt = null
  14859. }, T.fx.speeds = {
  14860. slow: 600,
  14861. fast: 200,
  14862. _default: 400
  14863. }, T.fn.delay = function (n, t) {
  14864. return n = T.fx && T.fx.speeds[n] || n, t = t || "fx", this.queue(t, function (t, e) {
  14865. var i = x.setTimeout(t, n);
  14866. e.stop = function () {
  14867. x.clearTimeout(i)
  14868. }
  14869. })
  14870. }, te = C.createElement("input"), ee = C.createElement("select").appendChild(C.createElement("option")), te.type = "checkbox", _.checkOn = "" !== te.value, _.optSelected = ee.selected, (te = C.createElement("input")).value = "t", te.type = "radio", _.radioValue = "t" === te.value;
  14871. var ce, ue = T.expr.attrHandle;
  14872. T.fn.extend({
  14873. attr: function (t, e) {
  14874. return R(this, T.attr, t, e, 1 < arguments.length)
  14875. },
  14876. removeAttr: function (t) {
  14877. return this.each(function () {
  14878. T.removeAttr(this, t)
  14879. })
  14880. }
  14881. }), T.extend({
  14882. attr: function (t, e, i) {
  14883. var n, s, o = t.nodeType;
  14884. if (3 !== o && 8 !== o && 2 !== o) return void 0 === t.getAttribute ? T.prop(t, e, i) : (1 === o && T.isXMLDoc(t) || (s = T.attrHooks[e.toLowerCase()] || (T.expr.match.bool.test(e) ? ce : void 0)), void 0 !== i ? null === i ? void T.removeAttr(t, e) : s && "set" in s && void 0 !== (n = s.set(t, i, e)) ? n : (t.setAttribute(e, i + ""), i) : s && "get" in s && null !== (n = s.get(t, e)) ? n : null == (n = T.find.attr(t, e)) ? void 0 : n)
  14885. },
  14886. attrHooks: {
  14887. type: {
  14888. set: function (t, e) {
  14889. if (!_.radioValue && "radio" === e && S(t, "input")) {
  14890. var i = t.value;
  14891. return t.setAttribute("type", e), i && (t.value = i), e
  14892. }
  14893. }
  14894. }
  14895. },
  14896. removeAttr: function (t, e) {
  14897. var i, n = 0,
  14898. s = e && e.match(N);
  14899. if (s && 1 === t.nodeType)
  14900. for (; i = s[n++];) t.removeAttribute(i)
  14901. }
  14902. }), ce = {
  14903. set: function (t, e, i) {
  14904. return !1 === e ? T.removeAttr(t, i) : t.setAttribute(i, i), i
  14905. }
  14906. }, T.each(T.expr.match.bool.source.match(/\w+/g), function (t, e) {
  14907. var r = ue[e] || T.find.attr;
  14908. ue[e] = function (t, e, i) {
  14909. var n, s, o = e.toLowerCase();
  14910. return i || (s = ue[o], ue[o] = n, n = null != r(t, e, i) ? o : null, ue[o] = s), n
  14911. }
  14912. });
  14913. var he = /^(?:input|select|textarea|button)$/i,
  14914. de = /^(?:a|area)$/i;
  14915. function pe(t) {
  14916. return (t.match(N) || []).join(" ")
  14917. }
  14918. function fe(t) {
  14919. return t.getAttribute && t.getAttribute("class") || ""
  14920. }
  14921. function ge(t) {
  14922. return Array.isArray(t) ? t : "string" == typeof t && t.match(N) || []
  14923. }
  14924. T.fn.extend({
  14925. prop: function (t, e) {
  14926. return R(this, T.prop, t, e, 1 < arguments.length)
  14927. },
  14928. removeProp: function (t) {
  14929. return this.each(function () {
  14930. delete this[T.propFix[t] || t]
  14931. })
  14932. }
  14933. }), T.extend({
  14934. prop: function (t, e, i) {
  14935. var n, s, o = t.nodeType;
  14936. if (3 !== o && 8 !== o && 2 !== o) return 1 === o && T.isXMLDoc(t) || (e = T.propFix[e] || e, s = T.propHooks[e]), void 0 !== i ? s && "set" in s && void 0 !== (n = s.set(t, i, e)) ? n : t[e] = i : s && "get" in s && null !== (n = s.get(t, e)) ? n : t[e]
  14937. },
  14938. propHooks: {
  14939. tabIndex: {
  14940. get: function (t) {
  14941. var e = T.find.attr(t, "tabindex");
  14942. return e ? parseInt(e, 10) : he.test(t.nodeName) || de.test(t.nodeName) && t.href ? 0 : -1
  14943. }
  14944. }
  14945. },
  14946. propFix: {
  14947. for: "htmlFor",
  14948. class: "className"
  14949. }
  14950. }), _.optSelected || (T.propHooks.selected = {
  14951. get: function (t) {
  14952. var e = t.parentNode;
  14953. return e && e.parentNode && e.parentNode.selectedIndex, null
  14954. },
  14955. set: function (t) {
  14956. var e = t.parentNode;
  14957. e && (e.selectedIndex, e.parentNode && e.parentNode.selectedIndex)
  14958. }
  14959. }), T.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function () {
  14960. T.propFix[this.toLowerCase()] = this
  14961. }), T.fn.extend({
  14962. addClass: function (e) {
  14963. var t, i, n, s, o, r, a, l = 0;
  14964. if (y(e)) return this.each(function (t) {
  14965. T(this).addClass(e.call(this, t, fe(this)))
  14966. });
  14967. if ((t = ge(e)).length)
  14968. for (; i = this[l++];)
  14969. if (s = fe(i), n = 1 === i.nodeType && " " + pe(s) + " ") {
  14970. for (r = 0; o = t[r++];) n.indexOf(" " + o + " ") < 0 && (n += o + " ");
  14971. s !== (a = pe(n)) && i.setAttribute("class", a)
  14972. } return this
  14973. },
  14974. removeClass: function (e) {
  14975. var t, i, n, s, o, r, a, l = 0;
  14976. if (y(e)) return this.each(function (t) {
  14977. T(this).removeClass(e.call(this, t, fe(this)))
  14978. });
  14979. if (!arguments.length) return this.attr("class", "");
  14980. if ((t = ge(e)).length)
  14981. for (; i = this[l++];)
  14982. if (s = fe(i), n = 1 === i.nodeType && " " + pe(s) + " ") {
  14983. for (r = 0; o = t[r++];)
  14984. for (; - 1 < n.indexOf(" " + o + " ");) n = n.replace(" " + o + " ", " ");
  14985. s !== (a = pe(n)) && i.setAttribute("class", a)
  14986. } return this
  14987. },
  14988. toggleClass: function (s, e) {
  14989. var o = _typeof(s),
  14990. r = "string" === o || Array.isArray(s);
  14991. return "boolean" == typeof e && r ? e ? this.addClass(s) : this.removeClass(s) : y(s) ? this.each(function (t) {
  14992. T(this).toggleClass(s.call(this, t, fe(this), e), e)
  14993. }) : this.each(function () {
  14994. var t, e, i, n;
  14995. if (r)
  14996. for (e = 0, i = T(this), n = ge(s); t = n[e++];) i.hasClass(t) ? i.removeClass(t) : i.addClass(t);
  14997. else void 0 !== s && "boolean" !== o || ((t = fe(this)) && K.set(this, "__className__", t), this.setAttribute && this.setAttribute("class", t || !1 === s ? "" : K.get(this, "__className__") || ""))
  14998. })
  14999. },
  15000. hasClass: function (t) {
  15001. var e, i, n = 0;
  15002. for (e = " " + t + " "; i = this[n++];)
  15003. if (1 === i.nodeType && -1 < (" " + pe(fe(i)) + " ").indexOf(e)) return !0;
  15004. return !1
  15005. }
  15006. });
  15007. var me = /\r/g;
  15008. T.fn.extend({
  15009. val: function (i) {
  15010. var n, t, s, e = this[0];
  15011. return arguments.length ? (s = y(i), this.each(function (t) {
  15012. var e;
  15013. 1 === this.nodeType && (null == (e = s ? i.call(this, t, T(this).val()) : i) ? e = "" : "number" == typeof e ? e += "" : Array.isArray(e) && (e = T.map(e, function (t) {
  15014. return null == t ? "" : t + ""
  15015. })), (n = T.valHooks[this.type] || T.valHooks[this.nodeName.toLowerCase()]) && "set" in n && void 0 !== n.set(this, e, "value") || (this.value = e))
  15016. })) : e ? (n = T.valHooks[e.type] || T.valHooks[e.nodeName.toLowerCase()]) && "get" in n && void 0 !== (t = n.get(e, "value")) ? t : "string" == typeof (t = e.value) ? t.replace(me, "") : null == t ? "" : t : void 0
  15017. }
  15018. }), T.extend({
  15019. valHooks: {
  15020. option: {
  15021. get: function (t) {
  15022. var e = T.find.attr(t, "value");
  15023. return null != e ? e : pe(T.text(t))
  15024. }
  15025. },
  15026. select: {
  15027. get: function (t) {
  15028. var e, i, n, s = t.options,
  15029. o = t.selectedIndex,
  15030. r = "select-one" === t.type,
  15031. a = r ? null : [],
  15032. l = r ? o + 1 : s.length;
  15033. for (n = o < 0 ? l : r ? o : 0; n < l; n++)
  15034. if (((i = s[n]).selected || n === o) && !i.disabled && (!i.parentNode.disabled || !S(i.parentNode, "optgroup"))) {
  15035. if (e = T(i).val(), r) return e;
  15036. a.push(e)
  15037. } return a
  15038. },
  15039. set: function (t, e) {
  15040. for (var i, n, s = t.options, o = T.makeArray(e), r = s.length; r--;)((n = s[r]).selected = -1 < T.inArray(T.valHooks.option.get(n), o)) && (i = !0);
  15041. return i || (t.selectedIndex = -1), o
  15042. }
  15043. }
  15044. }
  15045. }), T.each(["radio", "checkbox"], function () {
  15046. T.valHooks[this] = {
  15047. set: function (t, e) {
  15048. if (Array.isArray(e)) return t.checked = -1 < T.inArray(T(t).val(), e)
  15049. }
  15050. }, _.checkOn || (T.valHooks[this].get = function (t) {
  15051. return null === t.getAttribute("value") ? "on" : t.value
  15052. })
  15053. }), _.focusin = "onfocusin" in x;
  15054. function ve(t) {
  15055. t.stopPropagation()
  15056. }
  15057. var _e = /^(?:focusinfocus|focusoutblur)$/;
  15058. T.extend(T.event, {
  15059. trigger: function (t, e, i, n) {
  15060. var s, o, r, a, l, c, u, h, d = [i || C],
  15061. p = v.call(t, "type") ? t.type : t,
  15062. f = v.call(t, "namespace") ? t.namespace.split(".") : [];
  15063. if (o = h = r = i = i || C, 3 !== i.nodeType && 8 !== i.nodeType && !_e.test(p + T.event.triggered) && (-1 < p.indexOf(".") && (p = (f = p.split(".")).shift(), f.sort()), l = p.indexOf(":") < 0 && "on" + p, (t = t[T.expando] ? t : new T.Event(p, "object" == _typeof(t) && t)).isTrigger = n ? 2 : 3, t.namespace = f.join("."), t.rnamespace = t.namespace ? new RegExp("(^|\\.)" + f.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, t.result = void 0, t.target || (t.target = i), e = null == e ? [t] : T.makeArray(e, [t]), u = T.event.special[p] || {}, n || !u.trigger || !1 !== u.trigger.apply(i, e))) {
  15064. if (!n && !u.noBubble && !g(i)) {
  15065. for (a = u.delegateType || p, _e.test(a + p) || (o = o.parentNode); o; o = o.parentNode) d.push(o), r = o;
  15066. r === (i.ownerDocument || C) && d.push(r.defaultView || r.parentWindow || x)
  15067. }
  15068. for (s = 0;
  15069. (o = d[s++]) && !t.isPropagationStopped();) h = o, t.type = 1 < s ? a : u.bindType || p, (c = (K.get(o, "events") || Object.create(null))[t.type] && K.get(o, "handle")) && c.apply(o, e), (c = l && o[l]) && c.apply && Y(o) && (t.result = c.apply(o, e), !1 === t.result && t.preventDefault());
  15070. return t.type = p, n || t.isDefaultPrevented() || u._default && !1 !== u._default.apply(d.pop(), e) || !Y(i) || l && y(i[p]) && !g(i) && ((r = i[l]) && (i[l] = null), T.event.triggered = p, t.isPropagationStopped() && h.addEventListener(p, ve), i[p](), t.isPropagationStopped() && h.removeEventListener(p, ve), T.event.triggered = void 0, r && (i[l] = r)), t.result
  15071. }
  15072. },
  15073. simulate: function (t, e, i) {
  15074. var n = T.extend(new T.Event, i, {
  15075. type: t,
  15076. isSimulated: !0
  15077. });
  15078. T.event.trigger(n, null, e)
  15079. }
  15080. }), T.fn.extend({
  15081. trigger: function (t, e) {
  15082. return this.each(function () {
  15083. T.event.trigger(t, e, this)
  15084. })
  15085. },
  15086. triggerHandler: function (t, e) {
  15087. var i = this[0];
  15088. if (i) return T.event.trigger(t, e, i, !0)
  15089. }
  15090. }), _.focusin || T.each({
  15091. focus: "focusin",
  15092. blur: "focusout"
  15093. }, function (i, n) {
  15094. function s(t) {
  15095. T.event.simulate(n, t.target, T.event.fix(t))
  15096. }
  15097. T.event.special[n] = {
  15098. setup: function () {
  15099. var t = this.ownerDocument || this.document || this,
  15100. e = K.access(t, n);
  15101. e || t.addEventListener(i, s, !0), K.access(t, n, (e || 0) + 1)
  15102. },
  15103. teardown: function () {
  15104. var t = this.ownerDocument || this.document || this,
  15105. e = K.access(t, n) - 1;
  15106. e ? K.access(t, n, e) : (t.removeEventListener(i, s, !0), K.remove(t, n))
  15107. }
  15108. }
  15109. });
  15110. var ye = x.location,
  15111. be = {
  15112. guid: Date.now()
  15113. },
  15114. we = /\?/;
  15115. T.parseXML = function (t) {
  15116. var e, i;
  15117. if (!t || "string" != typeof t) return null;
  15118. try {
  15119. e = (new x.DOMParser).parseFromString(t, "text/xml")
  15120. } catch (t) {}
  15121. return i = e && e.getElementsByTagName("parsererror")[0], e && !i || T.error("Invalid XML: " + (i ? T.map(i.childNodes, function (t) {
  15122. return t.textContent
  15123. }).join("\n") : t)), e
  15124. };
  15125. var ke = /\[\]$/,
  15126. xe = /\r?\n/g,
  15127. Ce = /^(?:submit|button|image|reset|file)$/i,
  15128. Te = /^(?:input|select|textarea|keygen)/i;
  15129. function Se(i, t, n, s) {
  15130. var e;
  15131. if (Array.isArray(t)) T.each(t, function (t, e) {
  15132. n || ke.test(i) ? s(i, e) : Se(i + "[" + ("object" == _typeof(e) && null != e ? t : "") + "]", e, n, s)
  15133. });
  15134. else if (n || "object" !== w(t)) s(i, t);
  15135. else
  15136. for (e in t) Se(i + "[" + e + "]", t[e], n, s)
  15137. }
  15138. T.param = function (t, e) {
  15139. function i(t, e) {
  15140. var i = y(e) ? e() : e;
  15141. s[s.length] = encodeURIComponent(t) + "=" + encodeURIComponent(null == i ? "" : i)
  15142. }
  15143. var n, s = [];
  15144. if (null == t) return "";
  15145. if (Array.isArray(t) || t.jquery && !T.isPlainObject(t)) T.each(t, function () {
  15146. i(this.name, this.value)
  15147. });
  15148. else
  15149. for (n in t) Se(n, t[n], e, i);
  15150. return s.join("&")
  15151. }, T.fn.extend({
  15152. serialize: function () {
  15153. return T.param(this.serializeArray())
  15154. },
  15155. serializeArray: function () {
  15156. return this.map(function () {
  15157. var t = T.prop(this, "elements");
  15158. return t ? T.makeArray(t) : this
  15159. }).filter(function () {
  15160. var t = this.type;
  15161. return this.name && !T(this).is(":disabled") && Te.test(this.nodeName) && !Ce.test(t) && (this.checked || !ht.test(t))
  15162. }).map(function (t, e) {
  15163. var i = T(this).val();
  15164. return null == i ? null : Array.isArray(i) ? T.map(i, function (t) {
  15165. return {
  15166. name: e.name,
  15167. value: t.replace(xe, "\r\n")
  15168. }
  15169. }) : {
  15170. name: e.name,
  15171. value: i.replace(xe, "\r\n")
  15172. }
  15173. }).get()
  15174. }
  15175. });
  15176. var De = /%20/g,
  15177. Ae = /#.*$/,
  15178. Ee = /([?&])_=[^&]*/,
  15179. Pe = /^(.*?):[ \t]*([^\r\n]*)$/gm,
  15180. Ie = /^(?:GET|HEAD)$/,
  15181. Oe = /^\/\//,
  15182. Me = {},
  15183. Ne = {},
  15184. Le = "*/".concat("*"),
  15185. He = C.createElement("a");
  15186. function je(o) {
  15187. return function (t, e) {
  15188. "string" != typeof t && (e = t, t = "*");
  15189. var i, n = 0,
  15190. s = t.toLowerCase().match(N) || [];
  15191. if (y(e))
  15192. for (; i = s[n++];) "+" === i[0] ? (i = i.slice(1) || "*", (o[i] = o[i] || []).unshift(e)) : (o[i] = o[i] || []).push(e)
  15193. }
  15194. }
  15195. function ze(e, s, o, r) {
  15196. var a = {},
  15197. l = e === Ne;
  15198. function c(t) {
  15199. var n;
  15200. return a[t] = !0, T.each(e[t] || [], function (t, e) {
  15201. var i = e(s, o, r);
  15202. return "string" != typeof i || l || a[i] ? l ? !(n = i) : void 0 : (s.dataTypes.unshift(i), c(i), !1)
  15203. }), n
  15204. }
  15205. return c(s.dataTypes[0]) || !a["*"] && c("*")
  15206. }
  15207. function We(t, e) {
  15208. var i, n, s = T.ajaxSettings.flatOptions || {};
  15209. for (i in e) void 0 !== e[i] && ((s[i] ? t : n || (n = {}))[i] = e[i]);
  15210. return n && T.extend(!0, t, n), t
  15211. }
  15212. He.href = ye.href, T.extend({
  15213. active: 0,
  15214. lastModified: {},
  15215. etag: {},
  15216. ajaxSettings: {
  15217. url: ye.href,
  15218. type: "GET",
  15219. isLocal: /^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ye.protocol),
  15220. global: !0,
  15221. processData: !0,
  15222. async: !0,
  15223. contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  15224. accepts: {
  15225. "*": Le,
  15226. text: "text/plain",
  15227. html: "text/html",
  15228. xml: "application/xml, text/xml",
  15229. json: "application/json, text/javascript"
  15230. },
  15231. contents: {
  15232. xml: /\bxml\b/,
  15233. html: /\bhtml/,
  15234. json: /\bjson\b/
  15235. },
  15236. responseFields: {
  15237. xml: "responseXML",
  15238. text: "responseText",
  15239. json: "responseJSON"
  15240. },
  15241. converters: {
  15242. "* text": String,
  15243. "text html": !0,
  15244. "text json": JSON.parse,
  15245. "text xml": T.parseXML
  15246. },
  15247. flatOptions: {
  15248. url: !0,
  15249. context: !0
  15250. }
  15251. },
  15252. ajaxSetup: function (t, e) {
  15253. return e ? We(We(t, T.ajaxSettings), e) : We(T.ajaxSettings, t)
  15254. },
  15255. ajaxPrefilter: je(Me),
  15256. ajaxTransport: je(Ne),
  15257. ajax: function (t, e) {
  15258. "object" == _typeof(t) && (e = t, t = void 0), e = e || {};
  15259. var u, h, d, i, p, n, f, g, s, o, m = T.ajaxSetup({}, e),
  15260. v = m.context || m,
  15261. _ = m.context && (v.nodeType || v.jquery) ? T(v) : T.event,
  15262. y = T.Deferred(),
  15263. b = T.Callbacks("once memory"),
  15264. w = m.statusCode || {},
  15265. r = {},
  15266. a = {},
  15267. l = "canceled",
  15268. k = {
  15269. readyState: 0,
  15270. getResponseHeader: function (t) {
  15271. var e;
  15272. if (f) {
  15273. if (!i)
  15274. for (i = {}; e = Pe.exec(d);) i[e[1].toLowerCase() + " "] = (i[e[1].toLowerCase() + " "] || []).concat(e[2]);
  15275. e = i[t.toLowerCase() + " "]
  15276. }
  15277. return null == e ? null : e.join(", ")
  15278. },
  15279. getAllResponseHeaders: function () {
  15280. return f ? d : null
  15281. },
  15282. setRequestHeader: function (t, e) {
  15283. return null == f && (t = a[t.toLowerCase()] = a[t.toLowerCase()] || t, r[t] = e), this
  15284. },
  15285. overrideMimeType: function (t) {
  15286. return null == f && (m.mimeType = t), this
  15287. },
  15288. statusCode: function (t) {
  15289. var e;
  15290. if (t)
  15291. if (f) k.always(t[k.status]);
  15292. else
  15293. for (e in t) w[e] = [w[e], t[e]];
  15294. return this
  15295. },
  15296. abort: function (t) {
  15297. var e = t || l;
  15298. return u && u.abort(e), c(0, e), this
  15299. }
  15300. };
  15301. if (y.promise(k), m.url = ((t || m.url || ye.href) + "").replace(Oe, ye.protocol + "//"), m.type = e.method || e.type || m.method || m.type, m.dataTypes = (m.dataType || "*").toLowerCase().match(N) || [""], null == m.crossDomain) {
  15302. n = C.createElement("a");
  15303. try {
  15304. n.href = m.url, n.href = n.href, m.crossDomain = He.protocol + "//" + He.host != n.protocol + "//" + n.host
  15305. } catch (t) {
  15306. m.crossDomain = !0
  15307. }
  15308. }
  15309. if (m.data && m.processData && "string" != typeof m.data && (m.data = T.param(m.data, m.traditional)), ze(Me, m, e, k), f) return k;
  15310. for (s in (g = T.event && m.global) && 0 == T.active++ && T.event.trigger("ajaxStart"), m.type = m.type.toUpperCase(), m.hasContent = !Ie.test(m.type), h = m.url.replace(Ae, ""), m.hasContent ? m.data && m.processData && 0 === (m.contentType || "").indexOf("application/x-www-form-urlencoded") && (m.data = m.data.replace(De, "+")) : (o = m.url.slice(h.length), m.data && (m.processData || "string" == typeof m.data) && (h += (we.test(h) ? "&" : "?") + m.data, delete m.data), !1 === m.cache && (h = h.replace(Ee, "$1"), o = (we.test(h) ? "&" : "?") + "_=" + be.guid++ + o), m.url = h + o), m.ifModified && (T.lastModified[h] && k.setRequestHeader("If-Modified-Since", T.lastModified[h]), T.etag[h] && k.setRequestHeader("If-None-Match", T.etag[h])), (m.data && m.hasContent && !1 !== m.contentType || e.contentType) && k.setRequestHeader("Content-Type", m.contentType), k.setRequestHeader("Accept", m.dataTypes[0] && m.accepts[m.dataTypes[0]] ? m.accepts[m.dataTypes[0]] + ("*" !== m.dataTypes[0] ? ", " + Le + "; q=0.01" : "") : m.accepts["*"]), m.headers) k.setRequestHeader(s, m.headers[s]);
  15311. if (m.beforeSend && (!1 === m.beforeSend.call(v, k, m) || f)) return k.abort();
  15312. if (l = "abort", b.add(m.complete), k.done(m.success), k.fail(m.error), u = ze(Ne, m, e, k)) {
  15313. if (k.readyState = 1, g && _.trigger("ajaxSend", [k, m]), f) return k;
  15314. m.async && 0 < m.timeout && (p = x.setTimeout(function () {
  15315. k.abort("timeout")
  15316. }, m.timeout));
  15317. try {
  15318. f = !1, u.send(r, c)
  15319. } catch (t) {
  15320. if (f) throw t;
  15321. c(-1, t)
  15322. }
  15323. } else c(-1, "No Transport");
  15324. function c(t, e, i, n) {
  15325. var s, o, r, a, l, c = e;
  15326. f || (f = !0, p && x.clearTimeout(p), u = void 0, d = n || "", k.readyState = 0 < t ? 4 : 0, s = 200 <= t && t < 300 || 304 === t, i && (a = function (t, e, i) {
  15327. for (var n, s, o, r, a = t.contents, l = t.dataTypes;
  15328. "*" === l[0];) l.shift(), void 0 === n && (n = t.mimeType || e.getResponseHeader("Content-Type"));
  15329. if (n)
  15330. for (s in a)
  15331. if (a[s] && a[s].test(n)) {
  15332. l.unshift(s);
  15333. break
  15334. } if (l[0] in i) o = l[0];
  15335. else {
  15336. for (s in i) {
  15337. if (!l[0] || t.converters[s + " " + l[0]]) {
  15338. o = s;
  15339. break
  15340. }
  15341. r || (r = s)
  15342. }
  15343. o = o || r
  15344. }
  15345. if (o) return o !== l[0] && l.unshift(o), i[o]
  15346. }(m, k, i)), !s && -1 < T.inArray("script", m.dataTypes) && T.inArray("json", m.dataTypes) < 0 && (m.converters["text script"] = function () {}), a = function (t, e, i, n) {
  15347. var s, o, r, a, l, c = {},
  15348. u = t.dataTypes.slice();
  15349. if (u[1])
  15350. for (r in t.converters) c[r.toLowerCase()] = t.converters[r];
  15351. for (o = u.shift(); o;)
  15352. if (t.responseFields[o] && (i[t.responseFields[o]] = e), !l && n && t.dataFilter && (e = t.dataFilter(e, t.dataType)), l = o, o = u.shift())
  15353. if ("*" === o) o = l;
  15354. else if ("*" !== l && l !== o) {
  15355. if (!(r = c[l + " " + o] || c["* " + o]))
  15356. for (s in c)
  15357. if ((a = s.split(" "))[1] === o && (r = c[l + " " + a[0]] || c["* " + a[0]])) {
  15358. !0 === r ? r = c[s] : !0 !== c[s] && (o = a[0], u.unshift(a[1]));
  15359. break
  15360. } if (!0 !== r)
  15361. if (r && t.throws) e = r(e);
  15362. else try {
  15363. e = r(e)
  15364. } catch (t) {
  15365. return {
  15366. state: "parsererror",
  15367. error: r ? t : "No conversion from " + l + " to " + o
  15368. }
  15369. }
  15370. }
  15371. return {
  15372. state: "success",
  15373. data: e
  15374. }
  15375. }(m, a, k, s), s ? (m.ifModified && ((l = k.getResponseHeader("Last-Modified")) && (T.lastModified[h] = l), (l = k.getResponseHeader("etag")) && (T.etag[h] = l)), 204 === t || "HEAD" === m.type ? c = "nocontent" : 304 === t ? c = "notmodified" : (c = a.state, o = a.data, s = !(r = a.error))) : (r = c, !t && c || (c = "error", t < 0 && (t = 0))), k.status = t, k.statusText = (e || c) + "", s ? y.resolveWith(v, [o, c, k]) : y.rejectWith(v, [k, c, r]), k.statusCode(w), w = void 0, g && _.trigger(s ? "ajaxSuccess" : "ajaxError", [k, m, s ? o : r]), b.fireWith(v, [k, c]), g && (_.trigger("ajaxComplete", [k, m]), --T.active || T.event.trigger("ajaxStop")))
  15376. }
  15377. return k
  15378. },
  15379. getJSON: function (t, e, i) {
  15380. return T.get(t, e, i, "json")
  15381. },
  15382. getScript: function (t, e) {
  15383. return T.get(t, void 0, e, "script")
  15384. }
  15385. }), T.each(["get", "post"], function (t, s) {
  15386. T[s] = function (t, e, i, n) {
  15387. return y(e) && (n = n || i, i = e, e = void 0), T.ajax(T.extend({
  15388. url: t,
  15389. type: s,
  15390. dataType: n,
  15391. data: e,
  15392. success: i
  15393. }, T.isPlainObject(t) && t))
  15394. }
  15395. }), T.ajaxPrefilter(function (t) {
  15396. var e;
  15397. for (e in t.headers) "content-type" === e.toLowerCase() && (t.contentType = t.headers[e] || "")
  15398. }), T._evalUrl = function (t, e, i) {
  15399. return T.ajax({
  15400. url: t,
  15401. type: "GET",
  15402. dataType: "script",
  15403. cache: !0,
  15404. async: !1,
  15405. global: !1,
  15406. converters: {
  15407. "text script": function () {}
  15408. },
  15409. dataFilter: function (t) {
  15410. T.globalEval(t, e, i)
  15411. }
  15412. })
  15413. }, T.fn.extend({
  15414. wrapAll: function (t) {
  15415. var e;
  15416. return this[0] && (y(t) && (t = t.call(this[0])), e = T(t, this[0].ownerDocument).eq(0).clone(!0), this[0].parentNode && e.insertBefore(this[0]), e.map(function () {
  15417. for (var t = this; t.firstElementChild;) t = t.firstElementChild;
  15418. return t
  15419. }).append(this)), this
  15420. },
  15421. wrapInner: function (i) {
  15422. return y(i) ? this.each(function (t) {
  15423. T(this).wrapInner(i.call(this, t))
  15424. }) : this.each(function () {
  15425. var t = T(this),
  15426. e = t.contents();
  15427. e.length ? e.wrapAll(i) : t.append(i)
  15428. })
  15429. },
  15430. wrap: function (e) {
  15431. var i = y(e);
  15432. return this.each(function (t) {
  15433. T(this).wrapAll(i ? e.call(this, t) : e)
  15434. })
  15435. },
  15436. unwrap: function (t) {
  15437. return this.parent(t).not("body").each(function () {
  15438. T(this).replaceWith(this.childNodes)
  15439. }), this
  15440. }
  15441. }), T.expr.pseudos.hidden = function (t) {
  15442. return !T.expr.pseudos.visible(t)
  15443. }, T.expr.pseudos.visible = function (t) {
  15444. return !!(t.offsetWidth || t.offsetHeight || t.getClientRects().length)
  15445. }, T.ajaxSettings.xhr = function () {
  15446. try {
  15447. return new x.XMLHttpRequest
  15448. } catch (t) {}
  15449. };
  15450. var $e = {
  15451. 0: 200,
  15452. 1223: 204
  15453. },
  15454. Re = T.ajaxSettings.xhr();
  15455. _.cors = !!Re && "withCredentials" in Re, _.ajax = Re = !!Re, T.ajaxTransport(function (s) {
  15456. var o, r;
  15457. if (_.cors || Re && !s.crossDomain) return {
  15458. send: function (t, e) {
  15459. var i, n = s.xhr();
  15460. if (n.open(s.type, s.url, s.async, s.username, s.password), s.xhrFields)
  15461. for (i in s.xhrFields) n[i] = s.xhrFields[i];
  15462. for (i in s.mimeType && n.overrideMimeType && n.overrideMimeType(s.mimeType), s.crossDomain || t["X-Requested-With"] || (t["X-Requested-With"] = "XMLHttpRequest"), t) n.setRequestHeader(i, t[i]);
  15463. o = function (t) {
  15464. return function () {
  15465. o && (o = r = n.onload = n.onerror = n.onabort = n.ontimeout = n.onreadystatechange = null, "abort" === t ? n.abort() : "error" === t ? "number" != typeof n.status ? e(0, "error") : e(n.status, n.statusText) : e($e[n.status] || n.status, n.statusText, "text" !== (n.responseType || "text") || "string" != typeof n.responseText ? {
  15466. binary: n.response
  15467. } : {
  15468. text: n.responseText
  15469. }, n.getAllResponseHeaders()))
  15470. }
  15471. }, n.onload = o(), r = n.onerror = n.ontimeout = o("error"), void 0 !== n.onabort ? n.onabort = r : n.onreadystatechange = function () {
  15472. 4 === n.readyState && x.setTimeout(function () {
  15473. o && r()
  15474. })
  15475. }, o = o("abort");
  15476. try {
  15477. n.send(s.hasContent && s.data || null)
  15478. } catch (t) {
  15479. if (o) throw t
  15480. }
  15481. },
  15482. abort: function () {
  15483. o && o()
  15484. }
  15485. }
  15486. }), T.ajaxPrefilter(function (t) {
  15487. t.crossDomain && (t.contents.script = !1)
  15488. }), T.ajaxSetup({
  15489. accepts: {
  15490. script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
  15491. },
  15492. contents: {
  15493. script: /\b(?:java|ecma)script\b/
  15494. },
  15495. converters: {
  15496. "text script": function (t) {
  15497. return T.globalEval(t), t
  15498. }
  15499. }
  15500. }), T.ajaxPrefilter("script", function (t) {
  15501. void 0 === t.cache && (t.cache = !1), t.crossDomain && (t.type = "GET")
  15502. }), T.ajaxTransport("script", function (i) {
  15503. var n, s;
  15504. if (i.crossDomain || i.scriptAttrs) return {
  15505. send: function (t, e) {
  15506. n = T("<script>").attr(i.scriptAttrs || {}).prop({
  15507. charset: i.scriptCharset,
  15508. src: i.url
  15509. }).on("load error", s = function (t) {
  15510. n.remove(), s = null, t && e("error" === t.type ? 404 : 200, t.type)
  15511. }), C.head.appendChild(n[0])
  15512. },
  15513. abort: function () {
  15514. s && s()
  15515. }
  15516. }
  15517. });
  15518. var Fe, qe = [],
  15519. Be = /(=)\?(?=&|$)|\?\?/;
  15520. T.ajaxSetup({
  15521. jsonp: "callback",
  15522. jsonpCallback: function () {
  15523. var t = qe.pop() || T.expando + "_" + be.guid++;
  15524. return this[t] = !0, t
  15525. }
  15526. }), T.ajaxPrefilter("json jsonp", function (t, e, i) {
  15527. var n, s, o, r = !1 !== t.jsonp && (Be.test(t.url) ? "url" : "string" == typeof t.data && 0 === (t.contentType || "").indexOf("application/x-www-form-urlencoded") && Be.test(t.data) && "data");
  15528. if (r || "jsonp" === t.dataTypes[0]) return n = t.jsonpCallback = y(t.jsonpCallback) ? t.jsonpCallback() : t.jsonpCallback, r ? t[r] = t[r].replace(Be, "$1" + n) : !1 !== t.jsonp && (t.url += (we.test(t.url) ? "&" : "?") + t.jsonp + "=" + n), t.converters["script json"] = function () {
  15529. return o || T.error(n + " was not called"), o[0]
  15530. }, t.dataTypes[0] = "json", s = x[n], x[n] = function () {
  15531. o = arguments
  15532. }, i.always(function () {
  15533. void 0 === s ? T(x).removeProp(n) : x[n] = s, t[n] && (t.jsonpCallback = e.jsonpCallback, qe.push(n)), o && y(s) && s(o[0]), o = s = void 0
  15534. }), "script"
  15535. }), _.createHTMLDocument = ((Fe = C.implementation.createHTMLDocument("").body).innerHTML = "<form></form><form></form>", 2 === Fe.childNodes.length), T.parseHTML = function (t, e, i) {
  15536. return "string" != typeof t ? [] : ("boolean" == typeof e && (i = e, e = !1), e || (_.createHTMLDocument ? ((n = (e = C.implementation.createHTMLDocument("")).createElement("base")).href = C.location.href, e.head.appendChild(n)) : e = C), o = !i && [], (s = D.exec(t)) ? [e.createElement(s[1])] : (s = _t([t], e, o), o && o.length && T(o).remove(), T.merge([], s.childNodes)));
  15537. var n, s, o
  15538. }, T.fn.load = function (t, e, i) {
  15539. var n, s, o, r = this,
  15540. a = t.indexOf(" ");
  15541. return -1 < a && (n = pe(t.slice(a)), t = t.slice(0, a)), y(e) ? (i = e, e = void 0) : e && "object" == _typeof(e) && (s = "POST"), 0 < r.length && T.ajax({
  15542. url: t,
  15543. type: s || "GET",
  15544. dataType: "html",
  15545. data: e
  15546. }).done(function (t) {
  15547. o = arguments, r.html(n ? T("<div>").append(T.parseHTML(t)).find(n) : t)
  15548. }).always(i && function (t, e) {
  15549. r.each(function () {
  15550. i.apply(this, o || [t.responseText, e, t])
  15551. })
  15552. }), this
  15553. }, T.expr.pseudos.animated = function (e) {
  15554. return T.grep(T.timers, function (t) {
  15555. return e === t.elem
  15556. }).length
  15557. }, T.offset = {
  15558. setOffset: function (t, e, i) {
  15559. var n, s, o, r, a, l, c = T.css(t, "position"),
  15560. u = T(t),
  15561. h = {};
  15562. "static" === c && (t.style.position = "relative"), a = u.offset(), o = T.css(t, "top"), l = T.css(t, "left"), s = ("absolute" === c || "fixed" === c) && -1 < (o + l).indexOf("auto") ? (r = (n = u.position()).top, n.left) : (r = parseFloat(o) || 0, parseFloat(l) || 0), y(e) && (e = e.call(t, i, T.extend({}, a))), null != e.top && (h.top = e.top - a.top + r), null != e.left && (h.left = e.left - a.left + s), "using" in e ? e.using.call(t, h) : u.css(h)
  15563. }
  15564. }, T.fn.extend({
  15565. offset: function (e) {
  15566. if (arguments.length) return void 0 === e ? this : this.each(function (t) {
  15567. T.offset.setOffset(this, e, t)
  15568. });
  15569. var t, i, n = this[0];
  15570. return n ? n.getClientRects().length ? (t = n.getBoundingClientRect(), i = n.ownerDocument.defaultView, {
  15571. top: t.top + i.pageYOffset,
  15572. left: t.left + i.pageXOffset
  15573. }) : {
  15574. top: 0,
  15575. left: 0
  15576. } : void 0
  15577. },
  15578. position: function () {
  15579. if (this[0]) {
  15580. var t, e, i, n = this[0],
  15581. s = {
  15582. top: 0,
  15583. left: 0
  15584. };
  15585. if ("fixed" === T.css(n, "position")) e = n.getBoundingClientRect();
  15586. else {
  15587. for (e = this.offset(), i = n.ownerDocument, t = n.offsetParent || i.documentElement; t && (t === i.body || t === i.documentElement) && "static" === T.css(t, "position");) t = t.parentNode;
  15588. t && t !== n && 1 === t.nodeType && ((s = T(t).offset()).top += T.css(t, "borderTopWidth", !0), s.left += T.css(t, "borderLeftWidth", !0))
  15589. }
  15590. return {
  15591. top: e.top - s.top - T.css(n, "marginTop", !0),
  15592. left: e.left - s.left - T.css(n, "marginLeft", !0)
  15593. }
  15594. }
  15595. },
  15596. offsetParent: function () {
  15597. return this.map(function () {
  15598. for (var t = this.offsetParent; t && "static" === T.css(t, "position");) t = t.offsetParent;
  15599. return t || it
  15600. })
  15601. }
  15602. }), T.each({
  15603. scrollLeft: "pageXOffset",
  15604. scrollTop: "pageYOffset"
  15605. }, function (e, s) {
  15606. var o = "pageYOffset" === s;
  15607. T.fn[e] = function (t) {
  15608. return R(this, function (t, e, i) {
  15609. var n;
  15610. if (g(t) ? n = t : 9 === t.nodeType && (n = t.defaultView), void 0 === i) return n ? n[s] : t[e];
  15611. n ? n.scrollTo(o ? n.pageXOffset : i, o ? i : n.pageYOffset) : t[e] = i
  15612. }, e, t, arguments.length)
  15613. }
  15614. }), T.each(["top", "left"], function (t, i) {
  15615. T.cssHooks[i] = Wt(_.pixelPosition, function (t, e) {
  15616. if (e) return e = zt(t, i), Lt.test(e) ? T(t).position()[i] + "px" : e
  15617. })
  15618. }), T.each({
  15619. Height: "height",
  15620. Width: "width"
  15621. }, function (r, a) {
  15622. T.each({
  15623. padding: "inner" + r,
  15624. content: a,
  15625. "": "outer" + r
  15626. }, function (n, o) {
  15627. T.fn[o] = function (t, e) {
  15628. var i = arguments.length && (n || "boolean" != typeof t),
  15629. s = n || (!0 === t || !0 === e ? "margin" : "border");
  15630. return R(this, function (t, e, i) {
  15631. var n;
  15632. return g(t) ? 0 === o.indexOf("outer") ? t["inner" + r] : t.document.documentElement["client" + r] : 9 === t.nodeType ? (n = t.documentElement, Math.max(t.body["scroll" + r], n["scroll" + r], t.body["offset" + r], n["offset" + r], n["client" + r])) : void 0 === i ? T.css(t, e, s) : T.style(t, e, i, s)
  15633. }, a, i ? t : void 0, i)
  15634. }
  15635. })
  15636. }), T.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function (t, e) {
  15637. T.fn[e] = function (t) {
  15638. return this.on(e, t)
  15639. }
  15640. }), T.fn.extend({
  15641. bind: function (t, e, i) {
  15642. return this.on(t, null, e, i)
  15643. },
  15644. unbind: function (t, e) {
  15645. return this.off(t, null, e)
  15646. },
  15647. delegate: function (t, e, i, n) {
  15648. return this.on(e, t, i, n)
  15649. },
  15650. undelegate: function (t, e, i) {
  15651. return 1 === arguments.length ? this.off(t, "**") : this.off(e, t || "**", i)
  15652. },
  15653. hover: function (t, e) {
  15654. return this.mouseenter(t).mouseleave(e || t)
  15655. }
  15656. }), T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "), function (t, i) {
  15657. T.fn[i] = function (t, e) {
  15658. return 0 < arguments.length ? this.on(i, null, t, e) : this.trigger(i)
  15659. }
  15660. });
  15661. var Ue = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
  15662. T.proxy = function (t, e) {
  15663. var i, n, s;
  15664. if ("string" == typeof e && (i = t[e], e = t, t = i), y(t)) return n = a.call(arguments, 2), (s = function () {
  15665. return t.apply(e || this, n.concat(a.call(arguments)))
  15666. }).guid = t.guid = t.guid || T.guid++, s
  15667. }, T.holdReady = function (t) {
  15668. t ? T.readyWait++ : T.ready(!0)
  15669. }, T.isArray = Array.isArray, T.parseJSON = JSON.parse, T.nodeName = S, T.isFunction = y, T.isWindow = g, T.camelCase = U, T.type = w, T.now = Date.now, T.isNumeric = function (t) {
  15670. var e = T.type(t);
  15671. return ("number" === e || "string" === e) && !isNaN(t - parseFloat(t))
  15672. }, T.trim = function (t) {
  15673. return null == t ? "" : (t + "").replace(Ue, "")
  15674. }, "function" == typeof define && define.amd && define("jquery", [], function () {
  15675. return T
  15676. });
  15677. var Ye = x.jQuery,
  15678. Ve = x.$;
  15679. return T.noConflict = function (t) {
  15680. return x.$ === T && (x.$ = Ve), t && x.jQuery === T && (x.jQuery = Ye), T
  15681. }, void 0 === t && (x.jQuery = x.$ = T), T
  15682. }), void 0 === jQuery.migrateMute && (jQuery.migrateMute = !0),
  15683. function (e) {
  15684. "function" == typeof define && define.amd ? define(["jquery"], function (t) {
  15685. return e(t, window)
  15686. }) : "object" == ("undefined" == typeof module ? "undefined" : _typeof(module)) && module.exports ? module.exports = e(require("jquery"), window) : e(jQuery, window)
  15687. }(function (a, n) {
  15688. function t(t) {
  15689. return 0 <= function (t, e) {
  15690. for (var i = /^(\d+)\.(\d+)\.(\d+)/, n = i.exec(t) || [], s = i.exec(e) || [], o = 1; o <= 3; o++) {
  15691. if (+s[o] < +n[o]) return 1;
  15692. if (+n[o] < +s[o]) return -1
  15693. }
  15694. return 0
  15695. }(a.fn.jquery, t)
  15696. }
  15697. a.migrateVersion = "3.3.2", n.console && n.console.log && (a && t("3.0.0") || n.console.log("JQMIGRATE: jQuery 3.0.0+ REQUIRED"), a.migrateWarnings && n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"), n.console.log("JQMIGRATE: Migrate is installed" + (a.migrateMute ? "" : " with logging active") + ", version " + a.migrateVersion));
  15698. var i = {};
  15699. function l(t) {
  15700. var e = n.console;
  15701. a.migrateDeduplicateWarnings && i[t] || (i[t] = !0, a.migrateWarnings.push(t), e && e.warn && !a.migrateMute && (e.warn("JQMIGRATE: " + t), a.migrateTrace && e.trace && e.trace()))
  15702. }
  15703. function e(t, e, i, n) {
  15704. Object.defineProperty(t, e, {
  15705. configurable: !0,
  15706. enumerable: !0,
  15707. get: function () {
  15708. return l(n), i
  15709. },
  15710. set: function (t) {
  15711. l(n), i = t
  15712. }
  15713. })
  15714. }
  15715. function s(t, e, i, n) {
  15716. t[e] = function () {
  15717. return l(n), i.apply(this, arguments)
  15718. }
  15719. }
  15720. a.migrateDeduplicateWarnings = !0, a.migrateWarnings = [], void 0 === a.migrateTrace && (a.migrateTrace = !0), a.migrateReset = function () {
  15721. i = {}, a.migrateWarnings.length = 0
  15722. }, "BackCompat" === n.document.compatMode && l("jQuery is not compatible with Quirks Mode");
  15723. var o, r, c, u = {},
  15724. h = a.fn.init,
  15725. d = a.find,
  15726. p = /\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,
  15727. f = /\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,
  15728. g = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
  15729. for (o in a.fn.init = function (t) {
  15730. var e = Array.prototype.slice.call(arguments);
  15731. return "string" == typeof t && "#" === t && (l("jQuery( '#' ) is not a valid selector"), e[0] = []), h.apply(this, e)
  15732. }, a.fn.init.prototype = a.fn, a.find = function (e) {
  15733. var i = Array.prototype.slice.call(arguments);
  15734. if ("string" == typeof e && p.test(e)) try {
  15735. n.document.querySelector(e)
  15736. } catch (t) {
  15737. e = e.replace(f, function (t, e, i, n) {
  15738. return "[" + e + i + '"' + n + '"]'
  15739. });
  15740. try {
  15741. n.document.querySelector(e), l("Attribute selector with '#' must be quoted: " + i[0]), i[0] = e
  15742. } catch (t) {
  15743. l("Attribute selector with '#' was not fixed: " + i[0])
  15744. }
  15745. }
  15746. return d.apply(this, i)
  15747. }, d) Object.prototype.hasOwnProperty.call(d, o) && (a.find[o] = d[o]);
  15748. s(a.fn, "size", function () {
  15749. return this.length
  15750. }, "jQuery.fn.size() is deprecated and removed; use the .length property"), s(a, "parseJSON", function () {
  15751. return JSON.parse.apply(null, arguments)
  15752. }, "jQuery.parseJSON is deprecated; use JSON.parse"), s(a, "holdReady", a.holdReady, "jQuery.holdReady is deprecated"), s(a, "unique", a.uniqueSort, "jQuery.unique is deprecated; use jQuery.uniqueSort"), e(a.expr, "filters", a.expr.pseudos, "jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"), e(a.expr, ":", a.expr.pseudos, "jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"), t("3.1.1") && s(a, "trim", function (t) {
  15753. return null == t ? "" : (t + "").replace(g, "")
  15754. }, "jQuery.trim is deprecated; use String.prototype.trim"), t("3.2.0") && (s(a, "nodeName", function (t, e) {
  15755. return t.nodeName && t.nodeName.toLowerCase() === e.toLowerCase()
  15756. }, "jQuery.nodeName is deprecated"), s(a, "isArray", Array.isArray, "jQuery.isArray is deprecated; use Array.isArray")), t("3.3.0") && (s(a, "isNumeric", function (t) {
  15757. var e = _typeof(t);
  15758. return ("number" == e || "string" == e) && !isNaN(t - parseFloat(t))
  15759. }, "jQuery.isNumeric() is deprecated"), a.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "), function (t, e) {
  15760. u["[object " + e + "]"] = e.toLowerCase()
  15761. }), s(a, "type", function (t) {
  15762. return null == t ? t + "" : "object" == _typeof(t) || "function" == typeof t ? u[Object.prototype.toString.call(t)] || "object" : _typeof(t)
  15763. }, "jQuery.type is deprecated"), s(a, "isFunction", function (t) {
  15764. return "function" == typeof t
  15765. }, "jQuery.isFunction() is deprecated"), s(a, "isWindow", function (t) {
  15766. return null != t && t === t.window
  15767. }, "jQuery.isWindow() is deprecated")), a.ajax && (r = a.ajax, c = /(=)\?(?=&|$)|\?\?/, a.ajax = function () {
  15768. var t = r.apply(this, arguments);
  15769. return t.promise && (s(t, "success", t.done, "jQXHR.success is deprecated and removed"), s(t, "error", t.fail, "jQXHR.error is deprecated and removed"), s(t, "complete", t.always, "jQXHR.complete is deprecated and removed")), t
  15770. }, t("4.0.0") || a.ajaxPrefilter("+json", function (t) {
  15771. !1 !== t.jsonp && (c.test(t.url) || "string" == typeof t.data && 0 === (t.contentType || "").indexOf("application/x-www-form-urlencoded") && c.test(t.data)) && l("JSON-to-JSONP auto-promotion is deprecated")
  15772. }));
  15773. var m = a.fn.removeAttr,
  15774. v = a.fn.toggleClass,
  15775. _ = /\S+/g;
  15776. function y(t) {
  15777. return t.replace(/-([a-z])/g, function (t, e) {
  15778. return e.toUpperCase()
  15779. })
  15780. }
  15781. a.fn.removeAttr = function (t) {
  15782. var i = this;
  15783. return a.each(t.match(_), function (t, e) {
  15784. a.expr.match.bool.test(e) && (l("jQuery.fn.removeAttr no longer sets boolean properties: " + e), i.prop(e, !1))
  15785. }), m.apply(this, arguments)
  15786. };
  15787. var b, w = !(a.fn.toggleClass = function (e) {
  15788. return void 0 !== e && "boolean" != typeof e ? v.apply(this, arguments) : (l("jQuery.fn.toggleClass( boolean ) is deprecated"), this.each(function () {
  15789. var t = this.getAttribute && this.getAttribute("class") || "";
  15790. t && a.data(this, "__className__", t), this.setAttribute && this.setAttribute("class", !t && !1 !== e && a.data(this, "__className__") || "")
  15791. }))
  15792. }),
  15793. k = /^[a-z]/,
  15794. x = /^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;
  15795. a.swap && a.each(["height", "width", "reliableMarginRight"], function (t, e) {
  15796. var i = a.cssHooks[e] && a.cssHooks[e].get;
  15797. i && (a.cssHooks[e].get = function () {
  15798. var t;
  15799. return w = !0, t = i.apply(this, arguments), w = !1, t
  15800. })
  15801. }), a.swap = function (t, e, i, n) {
  15802. var s, o, r = {};
  15803. for (o in w || l("jQuery.swap() is undocumented and deprecated"), e) r[o] = t.style[o], t.style[o] = e[o];
  15804. for (o in s = i.apply(t, n || []), e) t.style[o] = r[o];
  15805. return s
  15806. }, t("3.4.0") && "undefined" != typeof Proxy && (a.cssProps = new Proxy(a.cssProps || {}, {
  15807. set: function () {
  15808. return l("JQMIGRATE: jQuery.cssProps is deprecated"), Reflect.set.apply(this, arguments)
  15809. }
  15810. })), a.cssNumber || (a.cssNumber = {}), b = a.fn.css, a.fn.css = function (t, e) {
  15811. var i, n, s = this;
  15812. return t && "object" == _typeof(t) && !Array.isArray(t) ? (a.each(t, function (t, e) {
  15813. a.fn.css.call(s, t, e)
  15814. }), this) : ("number" == typeof e && (n = i = y(t), k.test(n) && x.test(n[0].toUpperCase() + n.slice(1)) || a.cssNumber[i] || l('Number-typed values are deprecated for jQuery.fn.css( "' + t + '", value )')), b.apply(this, arguments))
  15815. };
  15816. var C, T, S, D, A = a.data;
  15817. a.data = function (t, e, i) {
  15818. var n, s, o;
  15819. if (e && "object" == _typeof(e) && 2 === arguments.length) {
  15820. for (o in n = a.hasData(t) && A.call(this, t), s = {}, e) o !== y(o) ? (l("jQuery.data() always sets/gets camelCased names: " + o), n[o] = e[o]) : s[o] = e[o];
  15821. return A.call(this, t, s), e
  15822. }
  15823. return e && "string" == typeof e && e !== y(e) && (n = a.hasData(t) && A.call(this, t)) && e in n ? (l("jQuery.data() always sets/gets camelCased names: " + e), 2 < arguments.length && (n[e] = i), n[e]) : A.apply(this, arguments)
  15824. }, a.fx && (S = a.Tween.prototype.run, D = function (t) {
  15825. return t
  15826. }, a.Tween.prototype.run = function () {
  15827. 1 < a.easing[this.easing].length && (l("'jQuery.easing." + this.easing.toString() + "' should use only one argument"), a.easing[this.easing] = D), S.apply(this, arguments)
  15828. }, C = a.fx.interval || 13, T = "jQuery.fx.interval is deprecated", n.requestAnimationFrame && Object.defineProperty(a.fx, "interval", {
  15829. configurable: !0,
  15830. enumerable: !0,
  15831. get: function () {
  15832. return n.document.hidden || l(T), C
  15833. },
  15834. set: function (t) {
  15835. l(T), C = t
  15836. }
  15837. }));
  15838. var E = a.fn.load,
  15839. P = a.event.add,
  15840. I = a.event.fix;
  15841. function O(t) {
  15842. var e = n.document.implementation.createHTMLDocument("");
  15843. return e.body.innerHTML = t, e.body && e.body.innerHTML
  15844. }
  15845. function M(t) {
  15846. var e = t.replace(N, "<$1></$2>");
  15847. e !== t && O(t) !== O(e) && l("HTML tags must be properly nested and closed: " + t)
  15848. }
  15849. a.event.props = [], a.event.fixHooks = {}, e(a.event.props, "concat", a.event.props.concat, "jQuery.event.props.concat() is deprecated and removed"), a.event.fix = function (t) {
  15850. var e, i = t.type,
  15851. n = this.fixHooks[i],
  15852. s = a.event.props;
  15853. if (s.length)
  15854. for (l("jQuery.event.props are deprecated and removed: " + s.join()); s.length;) a.event.addProp(s.pop());
  15855. if (n && !n._migrated_ && (n._migrated_ = !0, l("jQuery.event.fixHooks are deprecated and removed: " + i), (s = n.props) && s.length))
  15856. for (; s.length;) a.event.addProp(s.pop());
  15857. return e = I.call(this, t), n && n.filter ? n.filter(e, t) : e
  15858. }, a.event.add = function (t, e) {
  15859. return t === n && "load" === e && "complete" === n.document.readyState && l("jQuery(window).on('load'...) called after load event occurred"), P.apply(this, arguments)
  15860. }, a.each(["load", "unload", "error"], function (t, e) {
  15861. a.fn[e] = function () {
  15862. var t = Array.prototype.slice.call(arguments, 0);
  15863. return "load" === e && "string" == typeof t[0] ? E.apply(this, t) : (l("jQuery.fn." + e + "() is deprecated"), t.splice(0, 0, e), arguments.length ? this.on.apply(this, t) : (this.triggerHandler.apply(this, t), this))
  15864. }
  15865. }), a.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "), function (t, i) {
  15866. a.fn[i] = function (t, e) {
  15867. return l("jQuery.fn." + i + "() event shorthand is deprecated"), 0 < arguments.length ? this.on(i, null, t, e) : this.trigger(i)
  15868. }
  15869. }), a(function () {
  15870. a(n.document).triggerHandler("ready")
  15871. }), a.event.special.ready = {
  15872. setup: function () {
  15873. this === n.document && l("'ready' event is deprecated")
  15874. }
  15875. }, a.fn.extend({
  15876. bind: function (t, e, i) {
  15877. return l("jQuery.fn.bind() is deprecated"), this.on(t, null, e, i)
  15878. },
  15879. unbind: function (t, e) {
  15880. return l("jQuery.fn.unbind() is deprecated"), this.off(t, null, e)
  15881. },
  15882. delegate: function (t, e, i, n) {
  15883. return l("jQuery.fn.delegate() is deprecated"), this.on(e, t, i, n)
  15884. },
  15885. undelegate: function (t, e, i) {
  15886. return l("jQuery.fn.undelegate() is deprecated"), 1 === arguments.length ? this.off(t, "**") : this.off(e, t || "**", i)
  15887. },
  15888. hover: function (t, e) {
  15889. return l("jQuery.fn.hover() is deprecated"), this.on("mouseenter", t).on("mouseleave", e || t)
  15890. }
  15891. });
  15892. var N = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,
  15893. L = a.htmlPrefilter;
  15894. a.UNSAFE_restoreLegacyHtmlPrefilter = function () {
  15895. a.htmlPrefilter = function (t) {
  15896. return M(t), t.replace(N, "<$1></$2>")
  15897. }
  15898. }, a.htmlPrefilter = function (t) {
  15899. return M(t), L(t)
  15900. };
  15901. var H, j = a.fn.offset;
  15902. a.fn.offset = function () {
  15903. var t = this[0];
  15904. return !t || t.nodeType && t.getBoundingClientRect ? j.apply(this, arguments) : (l("jQuery.fn.offset() requires a valid DOM element"), arguments.length ? this : void 0)
  15905. }, a.ajax && (H = a.param, a.param = function (t, e) {
  15906. var i = a.ajaxSettings && a.ajaxSettings.traditional;
  15907. return void 0 === e && i && (l("jQuery.param() no longer uses jQuery.ajaxSettings.traditional"), e = i), H.call(this, t, e)
  15908. });
  15909. var z, W, $ = a.fn.andSelf || a.fn.addBack;
  15910. return a.fn.andSelf = function () {
  15911. return l("jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"), $.apply(this, arguments)
  15912. }, a.Deferred && (z = a.Deferred, W = [
  15913. ["resolve", "done", a.Callbacks("once memory"), a.Callbacks("once memory"), "resolved"],
  15914. ["reject", "fail", a.Callbacks("once memory"), a.Callbacks("once memory"), "rejected"],
  15915. ["notify", "progress", a.Callbacks("memory"), a.Callbacks("memory")]
  15916. ], a.Deferred = function (t) {
  15917. var o = z(),
  15918. r = o.promise();
  15919. return o.pipe = r.pipe = function () {
  15920. var s = arguments;
  15921. return l("deferred.pipe() is deprecated"), a.Deferred(function (n) {
  15922. a.each(W, function (t, e) {
  15923. var i = "function" == typeof s[t] && s[t];
  15924. o[e[1]](function () {
  15925. var t = i && i.apply(this, arguments);
  15926. t && "function" == typeof t.promise ? t.promise().done(n.resolve).fail(n.reject).progress(n.notify) : n[e[0] + "With"](this === r ? n.promise() : this, i ? [t] : arguments)
  15927. })
  15928. }), s = null
  15929. }).promise()
  15930. }, t && t.call(o, o), o
  15931. }, a.Deferred.exceptionHook = z.exceptionHook), a
  15932. }),
  15933. function (o, h, d) {
  15934. function p(t, e) {
  15935. return _typeof(t) === e
  15936. }
  15937. function r(t) {
  15938. var e = b.className,
  15939. i = _._config.classPrefix || "";
  15940. if (w && (e = e.baseVal), _._config.enableJSClass) {
  15941. var n = new RegExp("(^|\\s)" + i + "no-js(\\s|$)");
  15942. e = e.replace(n, "$1" + i + "js$2")
  15943. }
  15944. _._config.enableClasses && (0 < t.length && (e += " " + i + t.join(" " + i)), w ? b.className.baseVal = e : b.className = e)
  15945. }
  15946. function a(t, e) {
  15947. if ("object" == _typeof(t))
  15948. for (var i in t) x(t, i) && a(i, t[i]);
  15949. else {
  15950. var n = (t = t.toLowerCase()).split("."),
  15951. s = _[n[0]];
  15952. if (2 === n.length && (s = s[n[1]]), void 0 !== s) return _;
  15953. e = "function" == typeof e ? e() : e, 1 === n.length ? _[n[0]] = e : (!_[n[0]] || _[n[0]] instanceof Boolean || (_[n[0]] = new Boolean(_[n[0]])), _[n[0]][n[1]] = e), r([(e && !1 !== e ? "" : "no-") + n.join("-")]), _._trigger(t, e)
  15954. }
  15955. return _
  15956. }
  15957. function f() {
  15958. return "function" != typeof h.createElement ? h.createElement(arguments[0]) : w ? h.createElementNS.call(h, "http://www.w3.org/2000/svg", arguments[0]) : h.createElement.apply(h, arguments)
  15959. }
  15960. function s(t, e, i, n) {
  15961. var s, o, r, a, l = "modernizr",
  15962. c = f("div"),
  15963. u = function () {
  15964. var t = h.body;
  15965. return t || ((t = f(w ? "svg" : "body")).fake = !0), t
  15966. }();
  15967. if (parseInt(i, 10))
  15968. for (; i--;)(r = f("div")).id = n ? n[i] : l + (i + 1), c.appendChild(r);
  15969. return (s = f("style")).type = "text/css", s.id = "s" + l, (u.fake ? u : c).appendChild(s), u.appendChild(c), s.styleSheet ? s.styleSheet.cssText = t : s.appendChild(h.createTextNode(t)), c.id = l, u.fake && (u.style.background = "", u.style.overflow = "hidden", a = b.style.overflow, b.style.overflow = "hidden", b.appendChild(u)), o = e(c, t), u.fake ? (u.parentNode.removeChild(u), b.style.overflow = a, b.offsetHeight) : c.parentNode.removeChild(c), !!o
  15970. }
  15971. function l(t) {
  15972. return t.replace(/([A-Z])/g, function (t, e) {
  15973. return "-" + e.toLowerCase()
  15974. }).replace(/^ms-/, "-ms-")
  15975. }
  15976. function g(t, e) {
  15977. var i = t.length;
  15978. if ("CSS" in o && "supports" in o.CSS) {
  15979. for (; i--;)
  15980. if (o.CSS.supports(l(t[i]), e)) return !0;
  15981. return !1
  15982. }
  15983. if ("CSSSupportsRule" in o) {
  15984. for (var n = []; i--;) n.push("(" + l(t[i]) + ":" + e + ")");
  15985. return s("@supports (" + (n = n.join(" or ")) + ") { #modernizr { position: absolute; } }", function (t) {
  15986. return "absolute" === function (t, e, i) {
  15987. var n;
  15988. if ("getComputedStyle" in o) {
  15989. n = getComputedStyle.call(o, t, e);
  15990. var s = o.console;
  15991. null !== n ? i && (n = n.getPropertyValue(i)) : s && s[s.error ? "error" : "log"].call(s, "getComputedStyle returning null, its possible modernizr test results are inaccurate")
  15992. } else n = !e && t.currentStyle && t.currentStyle[i];
  15993. return n
  15994. }(t, null, "position")
  15995. })
  15996. }
  15997. return d
  15998. }
  15999. function c(t, e, i, n) {
  16000. function s() {
  16001. r && (delete I.style, delete I.modElem)
  16002. }
  16003. if (n = !p(n, "undefined") && n, !p(i, "undefined")) {
  16004. var o = g(t, i);
  16005. if (!p(o, "undefined")) return o
  16006. }
  16007. for (var r, a, l, c, u, h = ["modernizr", "tspan", "samp"]; !I.style && h.length;) r = !0, I.modElem = f(h.shift()), I.style = I.modElem.style;
  16008. for (l = t.length, a = 0; a < l; a++)
  16009. if (c = t[a], u = I.style[c], !!~("" + c).indexOf("-") && (c = c.replace(/([a-z])-([a-z])/g, function (t, e, i) {
  16010. return e + i.toUpperCase()
  16011. }).replace(/^-/, "")), I.style[c] !== d) {
  16012. if (n || p(i, "undefined")) return s(), "pfx" !== e || c;
  16013. try {
  16014. I.style[c] = i
  16015. } catch (t) {}
  16016. if (I.style[c] !== u) return s(), "pfx" !== e || c
  16017. } return s(), !1
  16018. }
  16019. function u(t, e) {
  16020. return function () {
  16021. return t.apply(e, arguments)
  16022. }
  16023. }
  16024. function n(t, e, i, n, s) {
  16025. var o = t.charAt(0).toUpperCase() + t.slice(1),
  16026. r = (t + " " + E.join(o + " ") + o).split(" ");
  16027. return p(e, "string") || p(e, "undefined") ? c(r, e, n, s) : function (t, e, i) {
  16028. var n;
  16029. for (var s in t)
  16030. if (t[s] in e) return !1 === i ? t[s] : p(n = e[t[s]], "function") ? u(n, i || e) : n;
  16031. return !1
  16032. }(r = (t + " " + k.join(o + " ") + o).split(" "), e, i)
  16033. }
  16034. function m(t, e, i) {
  16035. return n(t, d, d, e, i)
  16036. }
  16037. var v = [],
  16038. t = {
  16039. _version: "3.7.1",
  16040. _config: {
  16041. classPrefix: "",
  16042. enableClasses: !0,
  16043. enableJSClass: !0,
  16044. usePrefixes: !0
  16045. },
  16046. _q: [],
  16047. on: function (t, e) {
  16048. var i = this;
  16049. setTimeout(function () {
  16050. e(i[t])
  16051. }, 0)
  16052. },
  16053. addTest: function (t, e, i) {
  16054. v.push({
  16055. name: t,
  16056. fn: e,
  16057. options: i
  16058. })
  16059. },
  16060. addAsyncTest: function (t) {
  16061. v.push({
  16062. name: null,
  16063. fn: t
  16064. })
  16065. }
  16066. },
  16067. _ = function () {};
  16068. _.prototype = t, _ = new _;
  16069. var y = [],
  16070. b = h.documentElement,
  16071. w = "svg" === b.nodeName.toLowerCase(),
  16072. e = "Moz O ms Webkit",
  16073. k = t._config.usePrefixes ? e.toLowerCase().split(" ") : [];
  16074. t._domPrefixes = k;
  16075. var x, i, C = t._config.usePrefixes ? " -webkit- -moz- -o- -ms- ".split(" ") : ["", ""];
  16076. t._prefixes = C, x = p(i = {}.hasOwnProperty, "undefined") || p(i.call, "undefined") ? function (t, e) {
  16077. return e in t && p(t.constructor.prototype[e], "undefined")
  16078. } : function (t, e) {
  16079. return i.call(t, e)
  16080. }, t._l = {}, t.on = function (t, e) {
  16081. this._l[t] || (this._l[t] = []), this._l[t].push(e), _.hasOwnProperty(t) && setTimeout(function () {
  16082. _._trigger(t, _[t])
  16083. }, 0)
  16084. }, t._trigger = function (t, e) {
  16085. if (this._l[t]) {
  16086. var i = this._l[t];
  16087. setTimeout(function () {
  16088. var t;
  16089. for (t = 0; t < i.length; t++)(0, i[t])(e)
  16090. }, 0), delete this._l[t]
  16091. }
  16092. }, _._q.push(function () {
  16093. t.addTest = a
  16094. });
  16095. var T, S = (T = !("onblur" in b), function (t, e) {
  16096. var i;
  16097. return !!t && (e && "string" != typeof e || (e = f(e || "div")), !(i = (t = "on" + t) in e) && T && (e.setAttribute || (e = f("div")), e.setAttribute(t, ""), i = "function" == typeof e[t], e[t] !== d && (e[t] = d), e.removeAttribute(t)), i)
  16098. });
  16099. t.hasEvent = S;
  16100. var D, A = (D = o.matchMedia || o.msMatchMedia) ? function (t) {
  16101. var e = D(t);
  16102. return e && e.matches || !1
  16103. } : function (t) {
  16104. var e = !1;
  16105. return s("@media " + t + " { #modernizr { position: absolute; } }", function (t) {
  16106. e = "absolute" === (o.getComputedStyle ? o.getComputedStyle(t, null) : t.currentStyle).position
  16107. }), e
  16108. };
  16109. t.mq = A;
  16110. t.prefixedCSSValue = function (t, e) {
  16111. var i = !1,
  16112. n = f("div").style;
  16113. if (t in n) {
  16114. var s = k.length;
  16115. for (n[t] = e, i = n[t]; s-- && !i;) n[t] = "-" + k[s] + "-" + e, i = n[t]
  16116. }
  16117. return "" === i && (i = !1), i
  16118. };
  16119. var E = t._config.usePrefixes ? e.split(" ") : [];
  16120. t._cssomPrefixes = E;
  16121. var P = {
  16122. elem: f("modernizr")
  16123. };
  16124. _._q.push(function () {
  16125. delete P.elem
  16126. });
  16127. var I = {
  16128. style: P.elem.style
  16129. };
  16130. _._q.unshift(function () {
  16131. delete I.style
  16132. }), t.testAllProps = n, t.testAllProps = m, t.testProp = function (t, e, i) {
  16133. return c([t], d, e, i)
  16134. }, t.testStyles = s, _.addTest("customelements", "customElements" in o), _.addTest("history", function () {
  16135. var t = navigator.userAgent;
  16136. return (-1 === t.indexOf("Android 2.") && -1 === t.indexOf("Android 4.0") || -1 === t.indexOf("Mobile Safari") || -1 !== t.indexOf("Chrome") || -1 !== t.indexOf("Windows Phone") || "file:" === location.protocol) && o.history && "pushState" in o.history
  16137. }), _.addTest("pointerevents", function () {
  16138. var t = !1,
  16139. e = k.length;
  16140. for (t = _.hasEvent("pointerdown"); e-- && !t;) S(k[e] + "pointerdown") && (t = !0);
  16141. return t
  16142. });
  16143. var O = new Boolean("postMessage" in o);
  16144. O.structuredclones = !0;
  16145. try {
  16146. o.postMessage({
  16147. toString: function () {
  16148. O.structuredclones = !1
  16149. }
  16150. }, "*")
  16151. } catch (o) {}
  16152. _.addTest("postmessage", O), _.addTest("webgl", function () {
  16153. return "WebGLRenderingContext" in o
  16154. });
  16155. var M = !1;
  16156. try {
  16157. M = "WebSocket" in o && 2 === o.WebSocket.CLOSING
  16158. } catch (o) {}
  16159. _.addTest("websockets", M), _.addTest("cssanimations", m("animationName", "a", !0)),
  16160. function () {
  16161. _.addTest("csscolumns", function () {
  16162. var t = !1,
  16163. e = m("columnCount");
  16164. try {
  16165. (t = !!e) && (t = new Boolean(t))
  16166. } catch (t) {}
  16167. return t
  16168. });
  16169. for (var t, e, i = ["Width", "Span", "Fill", "Gap", "Rule", "RuleColor", "RuleStyle", "RuleWidth", "BreakBefore", "BreakAfter", "BreakInside"], n = 0; n < i.length; n++) t = i[n].toLowerCase(), e = m("column" + i[n]), "breakbefore" !== t && "breakafter" !== t && "breakinside" !== t || (e = e || m(i[n])), _.addTest("csscolumns." + t, e)
  16170. }(), _.addTest("flexbox", m("flexBasis", "1px", !0)), _.addTest("picture", "HTMLPictureElement" in o), _.addAsyncTest(function () {
  16171. var t, e, i = f("img"),
  16172. n = "sizes" in i;
  16173. !n && "srcset" in i ? (t = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==", e = function () {
  16174. a("sizes", 2 === i.width)
  16175. }, i.onload = e, i.onerror = e, i.setAttribute("sizes", "9px"), i.srcset = t + " 1w,data:image/gif;base64,R0lGODlhAgABAPAAAP///wAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw== 8w", i.src = t) : a("sizes", n)
  16176. }), _.addTest("srcset", "srcset" in f("img")), _.addTest("webworkers", "Worker" in o),
  16177. function () {
  16178. var t, e, i, n, s, o;
  16179. for (var r in v)
  16180. if (v.hasOwnProperty(r)) {
  16181. if (t = [], (e = v[r]).name && (t.push(e.name.toLowerCase()), e.options && e.options.aliases && e.options.aliases.length))
  16182. for (i = 0; i < e.options.aliases.length; i++) t.push(e.options.aliases[i].toLowerCase());
  16183. for (n = p(e.fn, "function") ? e.fn() : e.fn, s = 0; s < t.length; s++) 1 === (o = t[s].split(".")).length ? _[o[0]] = n : (!_[o[0]] || _[o[0]] instanceof Boolean || (_[o[0]] = new Boolean(_[o[0]])), _[o[0]][o[1]] = n), y.push((n ? "" : "no-") + o.join("-"))
  16184. }
  16185. }(), r(y), delete t.addTest, delete t.addAsyncTest;
  16186. for (var N = 0; N < _._q.length; N++) _._q[N]();
  16187. o.Modernizr = _
  16188. }(window, document),
  16189. function (t, e) {
  16190. "object" == ("undefined" == typeof module ? "undefined" : _typeof(module)) && "object" == _typeof(module.exports) ? module.exports = t.document ? e(t, !0) : function (t) {
  16191. if (!t.document) throw new Error("jQuery requires a window with a document");
  16192. return e(t)
  16193. } : e(t)
  16194. }("undefined" != typeof window ? window : void 0, function (x, t) {
  16195. function g(t) {
  16196. return null != t && t === t.window
  16197. }
  16198. var e = [],
  16199. n = Object.getPrototypeOf,
  16200. a = e.slice,
  16201. m = e.flat ? function (t) {
  16202. return e.flat.call(t)
  16203. } : function (t) {
  16204. return e.concat.apply([], t)
  16205. },
  16206. l = e.push,
  16207. s = e.indexOf,
  16208. i = {},
  16209. o = i.toString,
  16210. v = i.hasOwnProperty,
  16211. r = v.toString,
  16212. c = r.call(Object),
  16213. _ = {},
  16214. y = function (t) {
  16215. return "function" == typeof t && "number" != typeof t.nodeType && "function" != typeof t.item
  16216. },
  16217. C = x.document,
  16218. u = {
  16219. type: !0,
  16220. src: !0,
  16221. nonce: !0,
  16222. noModule: !0
  16223. };
  16224. function b(t, e, i) {
  16225. var n, s, o = (i = i || C).createElement("script");
  16226. if (o.text = t, e)
  16227. for (n in u)(s = e[n] || e.getAttribute && e.getAttribute(n)) && o.setAttribute(n, s);
  16228. i.head.appendChild(o).parentNode.removeChild(o)
  16229. }
  16230. function w(t) {
  16231. return null == t ? t + "" : "object" == _typeof(t) || "function" == typeof t ? i[o.call(t)] || "object" : _typeof(t)
  16232. }
  16233. var T = function t(e, i) {
  16234. return new t.fn.init(e, i)
  16235. };
  16236. function h(t) {
  16237. var e = !!t && "length" in t && t.length,
  16238. i = w(t);
  16239. return !y(t) && !g(t) && ("array" === i || 0 === e || "number" == typeof e && 0 < e && e - 1 in t)
  16240. }
  16241. T.fn = T.prototype = {
  16242. jquery: "3.6.0",
  16243. constructor: T,
  16244. length: 0,
  16245. toArray: function () {
  16246. return a.call(this)
  16247. },
  16248. get: function (t) {
  16249. return null == t ? a.call(this) : t < 0 ? this[t + this.length] : this[t]
  16250. },
  16251. pushStack: function (t) {
  16252. var e = T.merge(this.constructor(), t);
  16253. return e.prevObject = this, e
  16254. },
  16255. each: function (t) {
  16256. return T.each(this, t)
  16257. },
  16258. map: function (i) {
  16259. return this.pushStack(T.map(this, function (t, e) {
  16260. return i.call(t, e, t)
  16261. }))
  16262. },
  16263. slice: function () {
  16264. return this.pushStack(a.apply(this, arguments))
  16265. },
  16266. first: function () {
  16267. return this.eq(0)
  16268. },
  16269. last: function () {
  16270. return this.eq(-1)
  16271. },
  16272. even: function () {
  16273. return this.pushStack(T.grep(this, function (t, e) {
  16274. return (e + 1) % 2
  16275. }))
  16276. },
  16277. odd: function () {
  16278. return this.pushStack(T.grep(this, function (t, e) {
  16279. return e % 2
  16280. }))
  16281. },
  16282. eq: function (t) {
  16283. var e = this.length,
  16284. i = +t + (t < 0 ? e : 0);
  16285. return this.pushStack(0 <= i && i < e ? [this[i]] : [])
  16286. },
  16287. end: function () {
  16288. return this.prevObject || this.constructor()
  16289. },
  16290. push: l,
  16291. sort: e.sort,
  16292. splice: e.splice
  16293. }, T.extend = T.fn.extend = function () {
  16294. var t, e, i, n, s, o, r = arguments[0] || {},
  16295. a = 1,
  16296. l = arguments.length,
  16297. c = !1;
  16298. for ("boolean" == typeof r && (c = r, r = arguments[a] || {}, a++), "object" == _typeof(r) || y(r) || (r = {}), a === l && (r = this, a--); a < l; a++)
  16299. if (null != (t = arguments[a]))
  16300. for (e in t) n = t[e], "__proto__" !== e && r !== n && (c && n && (T.isPlainObject(n) || (s = Array.isArray(n))) ? (i = r[e], o = s && !Array.isArray(i) ? [] : s || T.isPlainObject(i) ? i : {}, s = !1, r[e] = T.extend(c, o, n)) : void 0 !== n && (r[e] = n));
  16301. return r
  16302. }, T.extend({
  16303. expando: "jQuery" + ("3.6.0" + Math.random()).replace(/\D/g, ""),
  16304. isReady: !0,
  16305. error: function (t) {
  16306. throw new Error(t)
  16307. },
  16308. noop: function () {},
  16309. isPlainObject: function (t) {
  16310. var e, i;
  16311. return !(!t || "[object Object]" !== o.call(t) || (e = n(t)) && ("function" != typeof (i = v.call(e, "constructor") && e.constructor) || r.call(i) !== c))
  16312. },
  16313. isEmptyObject: function (t) {
  16314. var e;
  16315. for (e in t) return !1;
  16316. return !0
  16317. },
  16318. globalEval: function (t, e, i) {
  16319. b(t, {
  16320. nonce: e && e.nonce
  16321. }, i)
  16322. },
  16323. each: function (t, e) {
  16324. var i, n = 0;
  16325. if (h(t))
  16326. for (i = t.length; n < i && !1 !== e.call(t[n], n, t[n]); n++);
  16327. else
  16328. for (n in t)
  16329. if (!1 === e.call(t[n], n, t[n])) break;
  16330. return t
  16331. },
  16332. makeArray: function (t, e) {
  16333. var i = e || [];
  16334. return null != t && (h(Object(t)) ? T.merge(i, "string" == typeof t ? [t] : t) : l.call(i, t)), i
  16335. },
  16336. inArray: function (t, e, i) {
  16337. return null == e ? -1 : s.call(e, t, i)
  16338. },
  16339. merge: function (t, e) {
  16340. for (var i = +e.length, n = 0, s = t.length; n < i; n++) t[s++] = e[n];
  16341. return t.length = s, t
  16342. },
  16343. grep: function (t, e, i) {
  16344. for (var n = [], s = 0, o = t.length, r = !i; s < o; s++) !e(t[s], s) != r && n.push(t[s]);
  16345. return n
  16346. },
  16347. map: function (t, e, i) {
  16348. var n, s, o = 0,
  16349. r = [];
  16350. if (h(t))
  16351. for (n = t.length; o < n; o++) null != (s = e(t[o], o, i)) && r.push(s);
  16352. else
  16353. for (o in t) null != (s = e(t[o], o, i)) && r.push(s);
  16354. return m(r)
  16355. },
  16356. guid: 1,
  16357. support: _
  16358. }), "function" == typeof Symbol && (T.fn[Symbol.iterator] = e[Symbol.iterator]), T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "), function (t, e) {
  16359. i["[object " + e + "]"] = e.toLowerCase()
  16360. });
  16361. var d = function (i) {
  16362. function h(t, e) {
  16363. var i = "0x" + t.slice(1) - 65536;
  16364. return e || (i < 0 ? String.fromCharCode(65536 + i) : String.fromCharCode(i >> 10 | 55296, 1023 & i | 56320))
  16365. }
  16366. function s() {
  16367. k()
  16368. }
  16369. var t, p, b, o, r, f, d, g, w, l, c, k, x, a, C, m, u, v, _, T = "sizzle" + 1 * new Date,
  16370. y = i.document,
  16371. S = 0,
  16372. n = 0,
  16373. D = lt(),
  16374. A = lt(),
  16375. E = lt(),
  16376. P = lt(),
  16377. I = function (t, e) {
  16378. return t === e && (c = !0), 0
  16379. },
  16380. O = {}.hasOwnProperty,
  16381. e = [],
  16382. M = e.pop,
  16383. N = e.push,
  16384. L = e.push,
  16385. H = e.slice,
  16386. j = function (t, e) {
  16387. for (var i = 0, n = t.length; i < n; i++)
  16388. if (t[i] === e) return i;
  16389. return -1
  16390. },
  16391. z = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
  16392. W = "[\\x20\\t\\r\\n\\f]",
  16393. $ = "(?:\\\\[\\da-fA-F]{1,6}" + W + "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",
  16394. R = "\\[" + W + "*(" + $ + ")(?:" + W + "*([*^$|!~]?=)" + W + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + $ + "))|)" + W + "*\\]",
  16395. F = ":(" + $ + ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" + R + ")*)|.*)\\)|)",
  16396. q = new RegExp(W + "+", "g"),
  16397. B = new RegExp("^" + W + "+|((?:^|[^\\\\])(?:\\\\.)*)" + W + "+$", "g"),
  16398. U = new RegExp("^" + W + "*," + W + "*"),
  16399. Y = new RegExp("^" + W + "*([>+~]|" + W + ")" + W + "*"),
  16400. V = new RegExp(W + "|>"),
  16401. K = new RegExp(F),
  16402. X = new RegExp("^" + $ + "$"),
  16403. Q = {
  16404. ID: new RegExp("^#(" + $ + ")"),
  16405. CLASS: new RegExp("^\\.(" + $ + ")"),
  16406. TAG: new RegExp("^(" + $ + "|[*])"),
  16407. ATTR: new RegExp("^" + R),
  16408. PSEUDO: new RegExp("^" + F),
  16409. CHILD: new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + W + "*(even|odd|(([+-]|)(\\d*)n|)" + W + "*(?:([+-]|)" + W + "*(\\d+)|))" + W + "*\\)|)", "i"),
  16410. bool: new RegExp("^(?:" + z + ")$", "i"),
  16411. needsContext: new RegExp("^" + W + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + W + "*((?:-\\d)?\\d*)" + W + "*\\)|)(?=[^-]|$)", "i")
  16412. },
  16413. G = /HTML$/i,
  16414. J = /^(?:input|select|textarea|button)$/i,
  16415. Z = /^h\d$/i,
  16416. tt = /^[^{]+\{\s*\[native \w/,
  16417. et = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
  16418. it = /[+~]/,
  16419. nt = new RegExp("\\\\[\\da-fA-F]{1,6}" + W + "?|\\\\([^\\r\\n\\f])", "g"),
  16420. st = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,
  16421. ot = function (t, e) {
  16422. return e ? "\0" === t ? "�" : t.slice(0, -1) + "\\" + t.charCodeAt(t.length - 1).toString(16) + " " : "\\" + t
  16423. },
  16424. rt = bt(function (t) {
  16425. return !0 === t.disabled && "fieldset" === t.nodeName.toLowerCase()
  16426. }, {
  16427. dir: "parentNode",
  16428. next: "legend"
  16429. });
  16430. try {
  16431. L.apply(e = H.call(y.childNodes), y.childNodes), e[y.childNodes.length].nodeType
  16432. } catch (t) {
  16433. L = {
  16434. apply: e.length ? function (t, e) {
  16435. N.apply(t, H.call(e))
  16436. } : function (t, e) {
  16437. for (var i = t.length, n = 0; t[i++] = e[n++];);
  16438. t.length = i - 1
  16439. }
  16440. }
  16441. }
  16442. function at(t, e, i, n) {
  16443. var s, o, r, a, l, c, u, h = e && e.ownerDocument,
  16444. d = e ? e.nodeType : 9;
  16445. if (i = i || [], "string" != typeof t || !t || 1 !== d && 9 !== d && 11 !== d) return i;
  16446. if (!n && (k(e), e = e || x, C)) {
  16447. if (11 !== d && (l = et.exec(t)))
  16448. if (s = l[1]) {
  16449. if (9 === d) {
  16450. if (!(r = e.getElementById(s))) return i;
  16451. if (r.id === s) return i.push(r), i
  16452. } else if (h && (r = h.getElementById(s)) && _(e, r) && r.id === s) return i.push(r), i
  16453. } else {
  16454. if (l[2]) return L.apply(i, e.getElementsByTagName(t)), i;
  16455. if ((s = l[3]) && p.getElementsByClassName && e.getElementsByClassName) return L.apply(i, e.getElementsByClassName(s)), i
  16456. } if (p.qsa && !P[t + " "] && (!m || !m.test(t)) && (1 !== d || "object" !== e.nodeName.toLowerCase())) {
  16457. if (u = t, h = e, 1 === d && (V.test(t) || Y.test(t))) {
  16458. for ((h = it.test(t) && vt(e.parentNode) || e) === e && p.scope || ((a = e.getAttribute("id")) ? a = a.replace(st, ot) : e.setAttribute("id", a = T)), o = (c = f(t)).length; o--;) c[o] = (a ? "#" + a : ":scope") + " " + yt(c[o]);
  16459. u = c.join(",")
  16460. }
  16461. try {
  16462. return L.apply(i, h.querySelectorAll(u)), i
  16463. } catch (e) {
  16464. P(t, !0)
  16465. } finally {
  16466. a === T && e.removeAttribute("id")
  16467. }
  16468. }
  16469. }
  16470. return g(t.replace(B, "$1"), e, i, n)
  16471. }
  16472. function lt() {
  16473. var n = [];
  16474. return function t(e, i) {
  16475. return n.push(e + " ") > b.cacheLength && delete t[n.shift()], t[e + " "] = i
  16476. }
  16477. }
  16478. function ct(t) {
  16479. return t[T] = !0, t
  16480. }
  16481. function ut(t) {
  16482. var e = x.createElement("fieldset");
  16483. try {
  16484. return !!t(e)
  16485. } catch (t) {
  16486. return !1
  16487. } finally {
  16488. e.parentNode && e.parentNode.removeChild(e), e = null
  16489. }
  16490. }
  16491. function ht(t, e) {
  16492. for (var i = t.split("|"), n = i.length; n--;) b.attrHandle[i[n]] = e
  16493. }
  16494. function dt(t, e) {
  16495. var i = e && t,
  16496. n = i && 1 === t.nodeType && 1 === e.nodeType && t.sourceIndex - e.sourceIndex;
  16497. if (n) return n;
  16498. if (i)
  16499. for (; i = i.nextSibling;)
  16500. if (i === e) return -1;
  16501. return t ? 1 : -1
  16502. }
  16503. function pt(e) {
  16504. return function (t) {
  16505. return "input" === t.nodeName.toLowerCase() && t.type === e
  16506. }
  16507. }
  16508. function ft(i) {
  16509. return function (t) {
  16510. var e = t.nodeName.toLowerCase();
  16511. return ("input" === e || "button" === e) && t.type === i
  16512. }
  16513. }
  16514. function gt(e) {
  16515. return function (t) {
  16516. return "form" in t ? t.parentNode && !1 === t.disabled ? "label" in t ? "label" in t.parentNode ? t.parentNode.disabled === e : t.disabled === e : t.isDisabled === e || t.isDisabled !== !e && rt(t) === e : t.disabled === e : "label" in t && t.disabled === e
  16517. }
  16518. }
  16519. function mt(r) {
  16520. return ct(function (o) {
  16521. return o = +o, ct(function (t, e) {
  16522. for (var i, n = r([], t.length, o), s = n.length; s--;) t[i = n[s]] && (t[i] = !(e[i] = t[i]))
  16523. })
  16524. })
  16525. }
  16526. function vt(t) {
  16527. return t && void 0 !== t.getElementsByTagName && t
  16528. }
  16529. for (t in p = at.support = {}, r = at.isXML = function (t) {
  16530. var e = t && t.namespaceURI,
  16531. i = t && (t.ownerDocument || t).documentElement;
  16532. return !G.test(e || i && i.nodeName || "HTML")
  16533. }, k = at.setDocument = function (t) {
  16534. var e, i, n = t ? t.ownerDocument || t : y;
  16535. return n != x && 9 === n.nodeType && n.documentElement && (a = (x = n).documentElement, C = !r(x), y != x && (i = x.defaultView) && i.top !== i && (i.addEventListener ? i.addEventListener("unload", s, !1) : i.attachEvent && i.attachEvent("onunload", s)), p.scope = ut(function (t) {
  16536. return a.appendChild(t).appendChild(x.createElement("div")), void 0 !== t.querySelectorAll && !t.querySelectorAll(":scope fieldset div").length
  16537. }), p.attributes = ut(function (t) {
  16538. return t.className = "i", !t.getAttribute("className")
  16539. }), p.getElementsByTagName = ut(function (t) {
  16540. return t.appendChild(x.createComment("")), !t.getElementsByTagName("*").length
  16541. }), p.getElementsByClassName = tt.test(x.getElementsByClassName), p.getById = ut(function (t) {
  16542. return a.appendChild(t).id = T, !x.getElementsByName || !x.getElementsByName(T).length
  16543. }), p.getById ? (b.filter.ID = function (t) {
  16544. var e = t.replace(nt, h);
  16545. return function (t) {
  16546. return t.getAttribute("id") === e
  16547. }
  16548. }, b.find.ID = function (t, e) {
  16549. if (void 0 !== e.getElementById && C) {
  16550. var i = e.getElementById(t);
  16551. return i ? [i] : []
  16552. }
  16553. }) : (b.filter.ID = function (t) {
  16554. var i = t.replace(nt, h);
  16555. return function (t) {
  16556. var e = void 0 !== t.getAttributeNode && t.getAttributeNode("id");
  16557. return e && e.value === i
  16558. }
  16559. }, b.find.ID = function (t, e) {
  16560. if (void 0 !== e.getElementById && C) {
  16561. var i, n, s, o = e.getElementById(t);
  16562. if (o) {
  16563. if ((i = o.getAttributeNode("id")) && i.value === t) return [o];
  16564. for (s = e.getElementsByName(t), n = 0; o = s[n++];)
  16565. if ((i = o.getAttributeNode("id")) && i.value === t) return [o]
  16566. }
  16567. return []
  16568. }
  16569. }), b.find.TAG = p.getElementsByTagName ? function (t, e) {
  16570. return void 0 !== e.getElementsByTagName ? e.getElementsByTagName(t) : p.qsa ? e.querySelectorAll(t) : void 0
  16571. } : function (t, e) {
  16572. var i, n = [],
  16573. s = 0,
  16574. o = e.getElementsByTagName(t);
  16575. if ("*" !== t) return o;
  16576. for (; i = o[s++];) 1 === i.nodeType && n.push(i);
  16577. return n
  16578. }, b.find.CLASS = p.getElementsByClassName && function (t, e) {
  16579. if (void 0 !== e.getElementsByClassName && C) return e.getElementsByClassName(t)
  16580. }, u = [], m = [], (p.qsa = tt.test(x.querySelectorAll)) && (ut(function (t) {
  16581. var e;
  16582. a.appendChild(t).innerHTML = "<a id='" + T + "'></a><select id='" + T + "-\r\\' msallowcapture=''><option selected=''></option></select>", t.querySelectorAll("[msallowcapture^='']").length && m.push("[*^$]=" + W + "*(?:''|\"\")"), t.querySelectorAll("[selected]").length || m.push("\\[" + W + "*(?:value|" + z + ")"), t.querySelectorAll("[id~=" + T + "-]").length || m.push("~="), (e = x.createElement("input")).setAttribute("name", ""), t.appendChild(e), t.querySelectorAll("[name='']").length || m.push("\\[" + W + "*name" + W + "*=" + W + "*(?:''|\"\")"), t.querySelectorAll(":checked").length || m.push(":checked"), t.querySelectorAll("a#" + T + "+*").length || m.push(".#.+[+~]"), t.querySelectorAll("\\\f"), m.push("[\\r\\n\\f]")
  16583. }), ut(function (t) {
  16584. t.innerHTML = "<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";
  16585. var e = x.createElement("input");
  16586. e.setAttribute("type", "hidden"), t.appendChild(e).setAttribute("name", "D"), t.querySelectorAll("[name=d]").length && m.push("name" + W + "*[*^$|!~]?="), 2 !== t.querySelectorAll(":enabled").length && m.push(":enabled", ":disabled"), a.appendChild(t).disabled = !0, 2 !== t.querySelectorAll(":disabled").length && m.push(":enabled", ":disabled"), t.querySelectorAll("*,:x"), m.push(",.*:")
  16587. })), (p.matchesSelector = tt.test(v = a.matches || a.webkitMatchesSelector || a.mozMatchesSelector || a.oMatchesSelector || a.msMatchesSelector)) && ut(function (t) {
  16588. p.disconnectedMatch = v.call(t, "*"), v.call(t, "[s!='']:x"), u.push("!=", F)
  16589. }), m = m.length && new RegExp(m.join("|")), u = u.length && new RegExp(u.join("|")), e = tt.test(a.compareDocumentPosition), _ = e || tt.test(a.contains) ? function (t, e) {
  16590. var i = 9 === t.nodeType ? t.documentElement : t,
  16591. n = e && e.parentNode;
  16592. return t === n || !(!n || 1 !== n.nodeType || !(i.contains ? i.contains(n) : t.compareDocumentPosition && 16 & t.compareDocumentPosition(n)))
  16593. } : function (t, e) {
  16594. if (e)
  16595. for (; e = e.parentNode;)
  16596. if (e === t) return !0;
  16597. return !1
  16598. }, I = e ? function (t, e) {
  16599. if (t === e) return c = !0, 0;
  16600. var i = !t.compareDocumentPosition - !e.compareDocumentPosition;
  16601. return i || (1 & (i = (t.ownerDocument || t) == (e.ownerDocument || e) ? t.compareDocumentPosition(e) : 1) || !p.sortDetached && e.compareDocumentPosition(t) === i ? t == x || t.ownerDocument == y && _(y, t) ? -1 : e == x || e.ownerDocument == y && _(y, e) ? 1 : l ? j(l, t) - j(l, e) : 0 : 4 & i ? -1 : 1)
  16602. } : function (t, e) {
  16603. if (t === e) return c = !0, 0;
  16604. var i, n = 0,
  16605. s = t.parentNode,
  16606. o = e.parentNode,
  16607. r = [t],
  16608. a = [e];
  16609. if (!s || !o) return t == x ? -1 : e == x ? 1 : s ? -1 : o ? 1 : l ? j(l, t) - j(l, e) : 0;
  16610. if (s === o) return dt(t, e);
  16611. for (i = t; i = i.parentNode;) r.unshift(i);
  16612. for (i = e; i = i.parentNode;) a.unshift(i);
  16613. for (; r[n] === a[n];) n++;
  16614. return n ? dt(r[n], a[n]) : r[n] == y ? -1 : a[n] == y ? 1 : 0
  16615. }), x
  16616. }, at.matches = function (t, e) {
  16617. return at(t, null, null, e)
  16618. }, at.matchesSelector = function (t, e) {
  16619. if (k(t), p.matchesSelector && C && !P[e + " "] && (!u || !u.test(e)) && (!m || !m.test(e))) try {
  16620. var i = v.call(t, e);
  16621. if (i || p.disconnectedMatch || t.document && 11 !== t.document.nodeType) return i
  16622. } catch (t) {
  16623. P(e, !0)
  16624. }
  16625. return 0 < at(e, x, null, [t]).length
  16626. }, at.contains = function (t, e) {
  16627. return (t.ownerDocument || t) != x && k(t), _(t, e)
  16628. }, at.attr = function (t, e) {
  16629. (t.ownerDocument || t) != x && k(t);
  16630. var i = b.attrHandle[e.toLowerCase()],
  16631. n = i && O.call(b.attrHandle, e.toLowerCase()) ? i(t, e, !C) : void 0;
  16632. return void 0 !== n ? n : p.attributes || !C ? t.getAttribute(e) : (n = t.getAttributeNode(e)) && n.specified ? n.value : null
  16633. }, at.escape = function (t) {
  16634. return (t + "").replace(st, ot)
  16635. }, at.error = function (t) {
  16636. throw new Error("Syntax error, unrecognized expression: " + t)
  16637. }, at.uniqueSort = function (t) {
  16638. var e, i = [],
  16639. n = 0,
  16640. s = 0;
  16641. if (c = !p.detectDuplicates, l = !p.sortStable && t.slice(0), t.sort(I), c) {
  16642. for (; e = t[s++];) e === t[s] && (n = i.push(s));
  16643. for (; n--;) t.splice(i[n], 1)
  16644. }
  16645. return l = null, t
  16646. }, o = at.getText = function (t) {
  16647. var e, i = "",
  16648. n = 0,
  16649. s = t.nodeType;
  16650. if (s) {
  16651. if (1 === s || 9 === s || 11 === s) {
  16652. if ("string" == typeof t.textContent) return t.textContent;
  16653. for (t = t.firstChild; t; t = t.nextSibling) i += o(t)
  16654. } else if (3 === s || 4 === s) return t.nodeValue
  16655. } else
  16656. for (; e = t[n++];) i += o(e);
  16657. return i
  16658. }, (b = at.selectors = {
  16659. cacheLength: 50,
  16660. createPseudo: ct,
  16661. match: Q,
  16662. attrHandle: {},
  16663. find: {},
  16664. relative: {
  16665. ">": {
  16666. dir: "parentNode",
  16667. first: !0
  16668. },
  16669. " ": {
  16670. dir: "parentNode"
  16671. },
  16672. "+": {
  16673. dir: "previousSibling",
  16674. first: !0
  16675. },
  16676. "~": {
  16677. dir: "previousSibling"
  16678. }
  16679. },
  16680. preFilter: {
  16681. ATTR: function (t) {
  16682. return t[1] = t[1].replace(nt, h), t[3] = (t[3] || t[4] || t[5] || "").replace(nt, h), "~=" === t[2] && (t[3] = " " + t[3] + " "), t.slice(0, 4)
  16683. },
  16684. CHILD: function (t) {
  16685. return t[1] = t[1].toLowerCase(), "nth" === t[1].slice(0, 3) ? (t[3] || at.error(t[0]), t[4] = +(t[4] ? t[5] + (t[6] || 1) : 2 * ("even" === t[3] || "odd" === t[3])), t[5] = +(t[7] + t[8] || "odd" === t[3])) : t[3] && at.error(t[0]), t
  16686. },
  16687. PSEUDO: function (t) {
  16688. var e, i = !t[6] && t[2];
  16689. return Q.CHILD.test(t[0]) ? null : (t[3] ? t[2] = t[4] || t[5] || "" : i && K.test(i) && (e = f(i, !0)) && (e = i.indexOf(")", i.length - e) - i.length) && (t[0] = t[0].slice(0, e), t[2] = i.slice(0, e)), t.slice(0, 3))
  16690. }
  16691. },
  16692. filter: {
  16693. TAG: function (t) {
  16694. var e = t.replace(nt, h).toLowerCase();
  16695. return "*" === t ? function () {
  16696. return !0
  16697. } : function (t) {
  16698. return t.nodeName && t.nodeName.toLowerCase() === e
  16699. }
  16700. },
  16701. CLASS: function (t) {
  16702. var e = D[t + " "];
  16703. return e || (e = new RegExp("(^|" + W + ")" + t + "(" + W + "|$)")) && D(t, function (t) {
  16704. return e.test("string" == typeof t.className && t.className || void 0 !== t.getAttribute && t.getAttribute("class") || "")
  16705. })
  16706. },
  16707. ATTR: function (i, n, s) {
  16708. return function (t) {
  16709. var e = at.attr(t, i);
  16710. return null == e ? "!=" === n : !n || (e += "", "=" === n ? e === s : "!=" === n ? e !== s : "^=" === n ? s && 0 === e.indexOf(s) : "*=" === n ? s && -1 < e.indexOf(s) : "$=" === n ? s && e.slice(-s.length) === s : "~=" === n ? -1 < (" " + e.replace(q, " ") + " ").indexOf(s) : "|=" === n && (e === s || e.slice(0, s.length + 1) === s + "-"))
  16711. }
  16712. },
  16713. CHILD: function (f, t, e, g, m) {
  16714. var v = "nth" !== f.slice(0, 3),
  16715. _ = "last" !== f.slice(-4),
  16716. y = "of-type" === t;
  16717. return 1 === g && 0 === m ? function (t) {
  16718. return !!t.parentNode
  16719. } : function (t, e, i) {
  16720. var n, s, o, r, a, l, c = v != _ ? "nextSibling" : "previousSibling",
  16721. u = t.parentNode,
  16722. h = y && t.nodeName.toLowerCase(),
  16723. d = !i && !y,
  16724. p = !1;
  16725. if (u) {
  16726. if (v) {
  16727. for (; c;) {
  16728. for (r = t; r = r[c];)
  16729. if (y ? r.nodeName.toLowerCase() === h : 1 === r.nodeType) return !1;
  16730. l = c = "only" === f && !l && "nextSibling"
  16731. }
  16732. return !0
  16733. }
  16734. if (l = [_ ? u.firstChild : u.lastChild], _ && d) {
  16735. for (p = (a = (n = (s = (o = (r = u)[T] || (r[T] = {}))[r.uniqueID] || (o[r.uniqueID] = {}))[f] || [])[0] === S && n[1]) && n[2], r = a && u.childNodes[a]; r = ++a && r && r[c] || (p = a = 0) || l.pop();)
  16736. if (1 === r.nodeType && ++p && r === t) {
  16737. s[f] = [S, a, p];
  16738. break
  16739. }
  16740. } else if (d && (p = a = (n = (s = (o = (r = t)[T] || (r[T] = {}))[r.uniqueID] || (o[r.uniqueID] = {}))[f] || [])[0] === S && n[1]), !1 === p)
  16741. for (;
  16742. (r = ++a && r && r[c] || (p = a = 0) || l.pop()) && ((y ? r.nodeName.toLowerCase() !== h : 1 !== r.nodeType) || !++p || (d && ((s = (o = r[T] || (r[T] = {}))[r.uniqueID] || (o[r.uniqueID] = {}))[f] = [S, p]), r !== t)););
  16743. return (p -= m) === g || p % g == 0 && 0 <= p / g
  16744. }
  16745. }
  16746. },
  16747. PSEUDO: function (t, o) {
  16748. var e, r = b.pseudos[t] || b.setFilters[t.toLowerCase()] || at.error("unsupported pseudo: " + t);
  16749. return r[T] ? r(o) : 1 < r.length ? (e = [t, t, "", o], b.setFilters.hasOwnProperty(t.toLowerCase()) ? ct(function (t, e) {
  16750. for (var i, n = r(t, o), s = n.length; s--;) t[i = j(t, n[s])] = !(e[i] = n[s])
  16751. }) : function (t) {
  16752. return r(t, 0, e)
  16753. }) : r
  16754. }
  16755. },
  16756. pseudos: {
  16757. not: ct(function (t) {
  16758. var n = [],
  16759. s = [],
  16760. a = d(t.replace(B, "$1"));
  16761. return a[T] ? ct(function (t, e, i, n) {
  16762. for (var s, o = a(t, null, n, []), r = t.length; r--;)(s = o[r]) && (t[r] = !(e[r] = s))
  16763. }) : function (t, e, i) {
  16764. return n[0] = t, a(n, null, i, s), n[0] = null, !s.pop()
  16765. }
  16766. }),
  16767. has: ct(function (e) {
  16768. return function (t) {
  16769. return 0 < at(e, t).length
  16770. }
  16771. }),
  16772. contains: ct(function (e) {
  16773. return e = e.replace(nt, h),
  16774. function (t) {
  16775. return -1 < (t.textContent || o(t)).indexOf(e)
  16776. }
  16777. }),
  16778. lang: ct(function (i) {
  16779. return X.test(i || "") || at.error("unsupported lang: " + i), i = i.replace(nt, h).toLowerCase(),
  16780. function (t) {
  16781. var e;
  16782. do {
  16783. if (e = C ? t.lang : t.getAttribute("xml:lang") || t.getAttribute("lang")) return (e = e.toLowerCase()) === i || 0 === e.indexOf(i + "-")
  16784. } while ((t = t.parentNode) && 1 === t.nodeType);
  16785. return !1
  16786. }
  16787. }),
  16788. target: function (t) {
  16789. var e = i.location && i.location.hash;
  16790. return e && e.slice(1) === t.id
  16791. },
  16792. root: function (t) {
  16793. return t === a
  16794. },
  16795. focus: function (t) {
  16796. return t === x.activeElement && (!x.hasFocus || x.hasFocus()) && !!(t.type || t.href || ~t.tabIndex)
  16797. },
  16798. enabled: gt(!1),
  16799. disabled: gt(!0),
  16800. checked: function (t) {
  16801. var e = t.nodeName.toLowerCase();
  16802. return "input" === e && !!t.checked || "option" === e && !!t.selected
  16803. },
  16804. selected: function (t) {
  16805. return t.parentNode && t.parentNode.selectedIndex, !0 === t.selected
  16806. },
  16807. empty: function (t) {
  16808. for (t = t.firstChild; t; t = t.nextSibling)
  16809. if (t.nodeType < 6) return !1;
  16810. return !0
  16811. },
  16812. parent: function (t) {
  16813. return !b.pseudos.empty(t)
  16814. },
  16815. header: function (t) {
  16816. return Z.test(t.nodeName)
  16817. },
  16818. input: function (t) {
  16819. return J.test(t.nodeName)
  16820. },
  16821. button: function (t) {
  16822. var e = t.nodeName.toLowerCase();
  16823. return "input" === e && "button" === t.type || "button" === e
  16824. },
  16825. text: function (t) {
  16826. var e;
  16827. return "input" === t.nodeName.toLowerCase() && "text" === t.type && (null == (e = t.getAttribute("type")) || "text" === e.toLowerCase())
  16828. },
  16829. first: mt(function () {
  16830. return [0]
  16831. }),
  16832. last: mt(function (t, e) {
  16833. return [e - 1]
  16834. }),
  16835. eq: mt(function (t, e, i) {
  16836. return [i < 0 ? i + e : i]
  16837. }),
  16838. even: mt(function (t, e) {
  16839. for (var i = 0; i < e; i += 2) t.push(i);
  16840. return t
  16841. }),
  16842. odd: mt(function (t, e) {
  16843. for (var i = 1; i < e; i += 2) t.push(i);
  16844. return t
  16845. }),
  16846. lt: mt(function (t, e, i) {
  16847. for (var n = i < 0 ? i + e : e < i ? e : i; 0 <= --n;) t.push(n);
  16848. return t
  16849. }),
  16850. gt: mt(function (t, e, i) {
  16851. for (var n = i < 0 ? i + e : i; ++n < e;) t.push(n);
  16852. return t
  16853. })
  16854. }
  16855. }).pseudos.nth = b.pseudos.eq, {
  16856. radio: !0,
  16857. checkbox: !0,
  16858. file: !0,
  16859. password: !0,
  16860. image: !0
  16861. }) b.pseudos[t] = pt(t);
  16862. for (t in {
  16863. submit: !0,
  16864. reset: !0
  16865. }) b.pseudos[t] = ft(t);
  16866. function _t() {}
  16867. function yt(t) {
  16868. for (var e = 0, i = t.length, n = ""; e < i; e++) n += t[e].value;
  16869. return n
  16870. }
  16871. function bt(a, t, e) {
  16872. var l = t.dir,
  16873. c = t.next,
  16874. u = c || l,
  16875. h = e && "parentNode" === u,
  16876. d = n++;
  16877. return t.first ? function (t, e, i) {
  16878. for (; t = t[l];)
  16879. if (1 === t.nodeType || h) return a(t, e, i);
  16880. return !1
  16881. } : function (t, e, i) {
  16882. var n, s, o, r = [S, d];
  16883. if (i) {
  16884. for (; t = t[l];)
  16885. if ((1 === t.nodeType || h) && a(t, e, i)) return !0
  16886. } else
  16887. for (; t = t[l];)
  16888. if (1 === t.nodeType || h)
  16889. if (s = (o = t[T] || (t[T] = {}))[t.uniqueID] || (o[t.uniqueID] = {}), c && c === t.nodeName.toLowerCase()) t = t[l] || t;
  16890. else {
  16891. if ((n = s[u]) && n[0] === S && n[1] === d) return r[2] = n[2];
  16892. if ((s[u] = r)[2] = a(t, e, i)) return !0
  16893. } return !1
  16894. }
  16895. }
  16896. function wt(s) {
  16897. return 1 < s.length ? function (t, e, i) {
  16898. for (var n = s.length; n--;)
  16899. if (!s[n](t, e, i)) return !1;
  16900. return !0
  16901. } : s[0]
  16902. }
  16903. function kt(t, e, i, n, s) {
  16904. for (var o, r = [], a = 0, l = t.length, c = null != e; a < l; a++)(o = t[a]) && (i && !i(o, n, s) || (r.push(o), c && e.push(a)));
  16905. return r
  16906. }
  16907. function xt(p, f, g, m, v, t) {
  16908. return m && !m[T] && (m = xt(m)), v && !v[T] && (v = xt(v, t)), ct(function (t, e, i, n) {
  16909. var s, o, r, a = [],
  16910. l = [],
  16911. c = e.length,
  16912. u = t || function (t, e, i) {
  16913. for (var n = 0, s = e.length; n < s; n++) at(t, e[n], i);
  16914. return i
  16915. }(f || "*", i.nodeType ? [i] : i, []),
  16916. h = !p || !t && f ? u : kt(u, a, p, i, n),
  16917. d = g ? v || (t ? p : c || m) ? [] : e : h;
  16918. if (g && g(h, d, i, n), m)
  16919. for (s = kt(d, l), m(s, [], i, n), o = s.length; o--;)(r = s[o]) && (d[l[o]] = !(h[l[o]] = r));
  16920. if (t) {
  16921. if (v || p) {
  16922. if (v) {
  16923. for (s = [], o = d.length; o--;)(r = d[o]) && s.push(h[o] = r);
  16924. v(null, d = [], s, n)
  16925. }
  16926. for (o = d.length; o--;)(r = d[o]) && -1 < (s = v ? j(t, r) : a[o]) && (t[s] = !(e[s] = r))
  16927. }
  16928. } else d = kt(d === e ? d.splice(c, d.length) : d), v ? v(null, e, d, n) : L.apply(e, d)
  16929. })
  16930. }
  16931. function Ct(t) {
  16932. for (var s, e, i, n = t.length, o = b.relative[t[0].type], r = o || b.relative[" "], a = o ? 1 : 0, l = bt(function (t) {
  16933. return t === s
  16934. }, r, !0), c = bt(function (t) {
  16935. return -1 < j(s, t)
  16936. }, r, !0), u = [function (t, e, i) {
  16937. var n = !o && (i || e !== w) || ((s = e).nodeType ? l(t, e, i) : c(t, e, i));
  16938. return s = null, n
  16939. }]; a < n; a++)
  16940. if (e = b.relative[t[a].type]) u = [bt(wt(u), e)];
  16941. else {
  16942. if ((e = b.filter[t[a].type].apply(null, t[a].matches))[T]) {
  16943. for (i = ++a; i < n && !b.relative[t[i].type]; i++);
  16944. return xt(1 < a && wt(u), 1 < a && yt(t.slice(0, a - 1).concat({
  16945. value: " " === t[a - 2].type ? "*" : ""
  16946. })).replace(B, "$1"), e, a < i && Ct(t.slice(a, i)), i < n && Ct(t = t.slice(i)), i < n && yt(t))
  16947. }
  16948. u.push(e)
  16949. } return wt(u)
  16950. }
  16951. return _t.prototype = b.filters = b.pseudos, b.setFilters = new _t, f = at.tokenize = function (t, e) {
  16952. var i, n, s, o, r, a, l, c = A[t + " "];
  16953. if (c) return e ? 0 : c.slice(0);
  16954. for (r = t, a = [], l = b.preFilter; r;) {
  16955. for (o in i && !(n = U.exec(r)) || (n && (r = r.slice(n[0].length) || r), a.push(s = [])), i = !1, (n = Y.exec(r)) && (i = n.shift(), s.push({
  16956. value: i,
  16957. type: n[0].replace(B, " ")
  16958. }), r = r.slice(i.length)), b.filter) !(n = Q[o].exec(r)) || l[o] && !(n = l[o](n)) || (i = n.shift(), s.push({
  16959. value: i,
  16960. type: o,
  16961. matches: n
  16962. }), r = r.slice(i.length));
  16963. if (!i) break
  16964. }
  16965. return e ? r.length : r ? at.error(t) : A(t, a).slice(0)
  16966. }, d = at.compile = function (t, e) {
  16967. var i, m, v, _, y, n, s = [],
  16968. o = [],
  16969. r = E[t + " "];
  16970. if (!r) {
  16971. for (e || (e = f(t)), i = e.length; i--;)(r = Ct(e[i]))[T] ? s.push(r) : o.push(r);
  16972. (r = E(t, (m = o, _ = 0 < (v = s).length, y = 0 < m.length, n = function (t, e, i, n, s) {
  16973. var o, r, a, l = 0,
  16974. c = "0",
  16975. u = t && [],
  16976. h = [],
  16977. d = w,
  16978. p = t || y && b.find.TAG("*", s),
  16979. f = S += null == d ? 1 : Math.random() || .1,
  16980. g = p.length;
  16981. for (s && (w = e == x || e || s); c !== g && null != (o = p[c]); c++) {
  16982. if (y && o) {
  16983. for (r = 0, e || o.ownerDocument == x || (k(o), i = !C); a = m[r++];)
  16984. if (a(o, e || x, i)) {
  16985. n.push(o);
  16986. break
  16987. } s && (S = f)
  16988. }
  16989. _ && ((o = !a && o) && l--, t && u.push(o))
  16990. }
  16991. if (l += c, _ && c !== l) {
  16992. for (r = 0; a = v[r++];) a(u, h, e, i);
  16993. if (t) {
  16994. if (0 < l)
  16995. for (; c--;) u[c] || h[c] || (h[c] = M.call(n));
  16996. h = kt(h)
  16997. }
  16998. L.apply(n, h), s && !t && 0 < h.length && 1 < l + v.length && at.uniqueSort(n)
  16999. }
  17000. return s && (S = f, w = d), u
  17001. }, _ ? ct(n) : n))).selector = t
  17002. }
  17003. return r
  17004. }, g = at.select = function (t, e, i, n) {
  17005. var s, o, r, a, l, c = "function" == typeof t && t,
  17006. u = !n && f(t = c.selector || t);
  17007. if (i = i || [], 1 === u.length) {
  17008. if (2 < (o = u[0] = u[0].slice(0)).length && "ID" === (r = o[0]).type && 9 === e.nodeType && C && b.relative[o[1].type]) {
  17009. if (!(e = (b.find.ID(r.matches[0].replace(nt, h), e) || [])[0])) return i;
  17010. c && (e = e.parentNode), t = t.slice(o.shift().value.length)
  17011. }
  17012. for (s = Q.needsContext.test(t) ? 0 : o.length; s-- && (r = o[s], !b.relative[a = r.type]);)
  17013. if ((l = b.find[a]) && (n = l(r.matches[0].replace(nt, h), it.test(o[0].type) && vt(e.parentNode) || e))) {
  17014. if (o.splice(s, 1), !(t = n.length && yt(o))) return L.apply(i, n), i;
  17015. break
  17016. }
  17017. }
  17018. return (c || d(t, u))(n, e, !C, i, !e || it.test(t) && vt(e.parentNode) || e), i
  17019. }, p.sortStable = T.split("").sort(I).join("") === T, p.detectDuplicates = !!c, k(), p.sortDetached = ut(function (t) {
  17020. return 1 & t.compareDocumentPosition(x.createElement("fieldset"))
  17021. }), ut(function (t) {
  17022. return t.innerHTML = "<a href='#'></a>", "#" === t.firstChild.getAttribute("href")
  17023. }) || ht("type|href|height|width", function (t, e, i) {
  17024. if (!i) return t.getAttribute(e, "type" === e.toLowerCase() ? 1 : 2)
  17025. }), p.attributes && ut(function (t) {
  17026. return t.innerHTML = "<input/>", t.firstChild.setAttribute("value", ""), "" === t.firstChild.getAttribute("value")
  17027. }) || ht("value", function (t, e, i) {
  17028. if (!i && "input" === t.nodeName.toLowerCase()) return t.defaultValue
  17029. }), ut(function (t) {
  17030. return null == t.getAttribute("disabled")
  17031. }) || ht(z, function (t, e, i) {
  17032. var n;
  17033. if (!i) return !0 === t[e] ? e.toLowerCase() : (n = t.getAttributeNode(e)) && n.specified ? n.value : null
  17034. }), at
  17035. }(x);
  17036. T.find = d, T.expr = d.selectors, T.expr[":"] = T.expr.pseudos, T.uniqueSort = T.unique = d.uniqueSort, T.text = d.getText, T.isXMLDoc = d.isXML, T.contains = d.contains, T.escapeSelector = d.escape;
  17037. function p(t, e, i) {
  17038. for (var n = [], s = void 0 !== i;
  17039. (t = t[e]) && 9 !== t.nodeType;)
  17040. if (1 === t.nodeType) {
  17041. if (s && T(t).is(i)) break;
  17042. n.push(t)
  17043. } return n
  17044. }
  17045. function f(t, e) {
  17046. for (var i = []; t; t = t.nextSibling) 1 === t.nodeType && t !== e && i.push(t);
  17047. return i
  17048. }
  17049. var k = T.expr.match.needsContext;
  17050. function S(t, e) {
  17051. return t.nodeName && t.nodeName.toLowerCase() === e.toLowerCase()
  17052. }
  17053. var D = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;
  17054. function A(t, i, n) {
  17055. return y(i) ? T.grep(t, function (t, e) {
  17056. return !!i.call(t, e, t) !== n
  17057. }) : i.nodeType ? T.grep(t, function (t) {
  17058. return t === i !== n
  17059. }) : "string" != typeof i ? T.grep(t, function (t) {
  17060. return -1 < s.call(i, t) !== n
  17061. }) : T.filter(i, t, n)
  17062. }
  17063. T.filter = function (t, e, i) {
  17064. var n = e[0];
  17065. return i && (t = ":not(" + t + ")"), 1 === e.length && 1 === n.nodeType ? T.find.matchesSelector(n, t) ? [n] : [] : T.find.matches(t, T.grep(e, function (t) {
  17066. return 1 === t.nodeType
  17067. }))
  17068. }, T.fn.extend({
  17069. find: function (t) {
  17070. var e, i, n = this.length,
  17071. s = this;
  17072. if ("string" != typeof t) return this.pushStack(T(t).filter(function () {
  17073. for (e = 0; e < n; e++)
  17074. if (T.contains(s[e], this)) return !0
  17075. }));
  17076. for (i = this.pushStack([]), e = 0; e < n; e++) T.find(t, s[e], i);
  17077. return 1 < n ? T.uniqueSort(i) : i
  17078. },
  17079. filter: function (t) {
  17080. return this.pushStack(A(this, t || [], !1))
  17081. },
  17082. not: function (t) {
  17083. return this.pushStack(A(this, t || [], !0))
  17084. },
  17085. is: function (t) {
  17086. return !!A(this, "string" == typeof t && k.test(t) ? T(t) : t || [], !1).length
  17087. }
  17088. });
  17089. var E, P = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;
  17090. (T.fn.init = function (t, e, i) {
  17091. var n, s;
  17092. if (!t) return this;
  17093. if (i = i || E, "string" != typeof t) return t.nodeType ? (this[0] = t, this.length = 1, this) : y(t) ? void 0 !== i.ready ? i.ready(t) : t(T) : T.makeArray(t, this);
  17094. if (!(n = "<" === t[0] && ">" === t[t.length - 1] && 3 <= t.length ? [null, t, null] : P.exec(t)) || !n[1] && e) return !e || e.jquery ? (e || i).find(t) : this.constructor(e).find(t);
  17095. if (n[1]) {
  17096. if (e = e instanceof T ? e[0] : e, T.merge(this, T.parseHTML(n[1], e && e.nodeType ? e.ownerDocument || e : C, !0)), D.test(n[1]) && T.isPlainObject(e))
  17097. for (n in e) y(this[n]) ? this[n](e[n]) : this.attr(n, e[n]);
  17098. return this
  17099. }
  17100. return (s = C.getElementById(n[2])) && (this[0] = s, this.length = 1), this
  17101. }).prototype = T.fn, E = T(C);
  17102. var I = /^(?:parents|prev(?:Until|All))/,
  17103. O = {
  17104. children: !0,
  17105. contents: !0,
  17106. next: !0,
  17107. prev: !0
  17108. };
  17109. function M(t, e) {
  17110. for (;
  17111. (t = t[e]) && 1 !== t.nodeType;);
  17112. return t
  17113. }
  17114. T.fn.extend({
  17115. has: function (t) {
  17116. var e = T(t, this),
  17117. i = e.length;
  17118. return this.filter(function () {
  17119. for (var t = 0; t < i; t++)
  17120. if (T.contains(this, e[t])) return !0
  17121. })
  17122. },
  17123. closest: function (t, e) {
  17124. var i, n = 0,
  17125. s = this.length,
  17126. o = [],
  17127. r = "string" != typeof t && T(t);
  17128. if (!k.test(t))
  17129. for (; n < s; n++)
  17130. for (i = this[n]; i && i !== e; i = i.parentNode)
  17131. if (i.nodeType < 11 && (r ? -1 < r.index(i) : 1 === i.nodeType && T.find.matchesSelector(i, t))) {
  17132. o.push(i);
  17133. break
  17134. } return this.pushStack(1 < o.length ? T.uniqueSort(o) : o)
  17135. },
  17136. index: function (t) {
  17137. return t ? "string" == typeof t ? s.call(T(t), this[0]) : s.call(this, t.jquery ? t[0] : t) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1
  17138. },
  17139. add: function (t, e) {
  17140. return this.pushStack(T.uniqueSort(T.merge(this.get(), T(t, e))))
  17141. },
  17142. addBack: function (t) {
  17143. return this.add(null == t ? this.prevObject : this.prevObject.filter(t))
  17144. }
  17145. }), T.each({
  17146. parent: function (t) {
  17147. var e = t.parentNode;
  17148. return e && 11 !== e.nodeType ? e : null
  17149. },
  17150. parents: function (t) {
  17151. return p(t, "parentNode")
  17152. },
  17153. parentsUntil: function (t, e, i) {
  17154. return p(t, "parentNode", i)
  17155. },
  17156. next: function (t) {
  17157. return M(t, "nextSibling")
  17158. },
  17159. prev: function (t) {
  17160. return M(t, "previousSibling")
  17161. },
  17162. nextAll: function (t) {
  17163. return p(t, "nextSibling")
  17164. },
  17165. prevAll: function (t) {
  17166. return p(t, "previousSibling")
  17167. },
  17168. nextUntil: function (t, e, i) {
  17169. return p(t, "nextSibling", i)
  17170. },
  17171. prevUntil: function (t, e, i) {
  17172. return p(t, "previousSibling", i)
  17173. },
  17174. siblings: function (t) {
  17175. return f((t.parentNode || {}).firstChild, t)
  17176. },
  17177. children: function (t) {
  17178. return f(t.firstChild)
  17179. },
  17180. contents: function (t) {
  17181. return null != t.contentDocument && n(t.contentDocument) ? t.contentDocument : (S(t, "template") && (t = t.content || t), T.merge([], t.childNodes))
  17182. }
  17183. }, function (n, s) {
  17184. T.fn[n] = function (t, e) {
  17185. var i = T.map(this, s, t);
  17186. return "Until" !== n.slice(-5) && (e = t), e && "string" == typeof e && (i = T.filter(e, i)), 1 < this.length && (O[n] || T.uniqueSort(i), I.test(n) && i.reverse()), this.pushStack(i)
  17187. }
  17188. });
  17189. var N = /[^\x20\t\r\n\f]+/g;
  17190. function L(t) {
  17191. return t
  17192. }
  17193. function H(t) {
  17194. throw t
  17195. }
  17196. function j(t, e, i, n) {
  17197. var s;
  17198. try {
  17199. t && y(s = t.promise) ? s.call(t).done(e).fail(i) : t && y(s = t.then) ? s.call(t, e, i) : e.apply(void 0, [t].slice(n))
  17200. } catch (t) {
  17201. i.apply(void 0, [t])
  17202. }
  17203. }
  17204. T.Callbacks = function (n) {
  17205. var t, i;
  17206. n = "string" == typeof n ? (t = n, i = {}, T.each(t.match(N) || [], function (t, e) {
  17207. i[e] = !0
  17208. }), i) : T.extend({}, n);
  17209. function s() {
  17210. for (a = a || n.once, r = o = !0; c.length; u = -1)
  17211. for (e = c.shift(); ++u < l.length;) !1 === l[u].apply(e[0], e[1]) && n.stopOnFalse && (u = l.length, e = !1);
  17212. n.memory || (e = !1), o = !1, a && (l = e ? [] : "")
  17213. }
  17214. var o, e, r, a, l = [],
  17215. c = [],
  17216. u = -1,
  17217. h = {
  17218. add: function () {
  17219. return l && (e && !o && (u = l.length - 1, c.push(e)), function i(t) {
  17220. T.each(t, function (t, e) {
  17221. y(e) ? n.unique && h.has(e) || l.push(e) : e && e.length && "string" !== w(e) && i(e)
  17222. })
  17223. }(arguments), e && !o && s()), this
  17224. },
  17225. remove: function () {
  17226. return T.each(arguments, function (t, e) {
  17227. for (var i; - 1 < (i = T.inArray(e, l, i));) l.splice(i, 1), i <= u && u--
  17228. }), this
  17229. },
  17230. has: function (t) {
  17231. return t ? -1 < T.inArray(t, l) : 0 < l.length
  17232. },
  17233. empty: function () {
  17234. return l && (l = []), this
  17235. },
  17236. disable: function () {
  17237. return a = c = [], l = e = "", this
  17238. },
  17239. disabled: function () {
  17240. return !l
  17241. },
  17242. lock: function () {
  17243. return a = c = [], e || o || (l = e = ""), this
  17244. },
  17245. locked: function () {
  17246. return !!a
  17247. },
  17248. fireWith: function (t, e) {
  17249. return a || (e = [t, (e = e || []).slice ? e.slice() : e], c.push(e), o || s()), this
  17250. },
  17251. fire: function () {
  17252. return h.fireWith(this, arguments), this
  17253. },
  17254. fired: function () {
  17255. return !!r
  17256. }
  17257. };
  17258. return h
  17259. }, T.extend({
  17260. Deferred: function (t) {
  17261. var o = [
  17262. ["notify", "progress", T.Callbacks("memory"), T.Callbacks("memory"), 2],
  17263. ["resolve", "done", T.Callbacks("once memory"), T.Callbacks("once memory"), 0, "resolved"],
  17264. ["reject", "fail", T.Callbacks("once memory"), T.Callbacks("once memory"), 1, "rejected"]
  17265. ],
  17266. s = "pending",
  17267. r = {
  17268. state: function () {
  17269. return s
  17270. },
  17271. always: function () {
  17272. return a.done(arguments).fail(arguments), this
  17273. },
  17274. catch: function (t) {
  17275. return r.then(null, t)
  17276. },
  17277. pipe: function () {
  17278. var s = arguments;
  17279. return T.Deferred(function (n) {
  17280. T.each(o, function (t, e) {
  17281. var i = y(s[e[4]]) && s[e[4]];
  17282. a[e[1]](function () {
  17283. var t = i && i.apply(this, arguments);
  17284. t && y(t.promise) ? t.promise().progress(n.notify).done(n.resolve).fail(n.reject) : n[e[0] + "With"](this, i ? [t] : arguments)
  17285. })
  17286. }), s = null
  17287. }).promise()
  17288. },
  17289. then: function (e, i, n) {
  17290. var l = 0;
  17291. function c(s, o, r, a) {
  17292. return function () {
  17293. function t() {
  17294. var t, e;
  17295. if (!(s < l)) {
  17296. if ((t = r.apply(i, n)) === o.promise()) throw new TypeError("Thenable self-resolution");
  17297. e = t && ("object" == _typeof(t) || "function" == typeof t) && t.then, y(e) ? a ? e.call(t, c(l, o, L, a), c(l, o, H, a)) : (l++, e.call(t, c(l, o, L, a), c(l, o, H, a), c(l, o, L, o.notifyWith))) : (r !== L && (i = void 0, n = [t]), (a || o.resolveWith)(i, n))
  17298. }
  17299. }
  17300. var i = this,
  17301. n = arguments,
  17302. e = a ? t : function () {
  17303. try {
  17304. t()
  17305. } catch (t) {
  17306. T.Deferred.exceptionHook && T.Deferred.exceptionHook(t, e.stackTrace), l <= s + 1 && (r !== H && (i = void 0, n = [t]), o.rejectWith(i, n))
  17307. }
  17308. };
  17309. s ? e() : (T.Deferred.getStackHook && (e.stackTrace = T.Deferred.getStackHook()), x.setTimeout(e))
  17310. }
  17311. }
  17312. return T.Deferred(function (t) {
  17313. o[0][3].add(c(0, t, y(n) ? n : L, t.notifyWith)), o[1][3].add(c(0, t, y(e) ? e : L)), o[2][3].add(c(0, t, y(i) ? i : H))
  17314. }).promise()
  17315. },
  17316. promise: function (t) {
  17317. return null != t ? T.extend(t, r) : r
  17318. }
  17319. },
  17320. a = {};
  17321. return T.each(o, function (t, e) {
  17322. var i = e[2],
  17323. n = e[5];
  17324. r[e[1]] = i.add, n && i.add(function () {
  17325. s = n
  17326. }, o[3 - t][2].disable, o[3 - t][3].disable, o[0][2].lock, o[0][3].lock), i.add(e[3].fire), a[e[0]] = function () {
  17327. return a[e[0] + "With"](this === a ? void 0 : this, arguments), this
  17328. }, a[e[0] + "With"] = i.fireWith
  17329. }), r.promise(a), t && t.call(a, a), a
  17330. },
  17331. when: function (t) {
  17332. function e(e) {
  17333. return function (t) {
  17334. s[e] = this, o[e] = 1 < arguments.length ? a.call(arguments) : t, --i || r.resolveWith(s, o)
  17335. }
  17336. }
  17337. var i = arguments.length,
  17338. n = i,
  17339. s = Array(n),
  17340. o = a.call(arguments),
  17341. r = T.Deferred();
  17342. if (i <= 1 && (j(t, r.done(e(n)).resolve, r.reject, !i), "pending" === r.state() || y(o[n] && o[n].then))) return r.then();
  17343. for (; n--;) j(o[n], e(n), r.reject);
  17344. return r.promise()
  17345. }
  17346. });
  17347. var z = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
  17348. T.Deferred.exceptionHook = function (t, e) {
  17349. x.console && x.console.warn && t && z.test(t.name) && x.console.warn("jQuery.Deferred exception: " + t.message, t.stack, e)
  17350. }, T.readyException = function (t) {
  17351. x.setTimeout(function () {
  17352. throw t
  17353. })
  17354. };
  17355. var W = T.Deferred();
  17356. function $() {
  17357. C.removeEventListener("DOMContentLoaded", $), x.removeEventListener("load", $), T.ready()
  17358. }
  17359. T.fn.ready = function (t) {
  17360. return W.then(t).catch(function (t) {
  17361. T.readyException(t)
  17362. }), this
  17363. }, T.extend({
  17364. isReady: !1,
  17365. readyWait: 1,
  17366. ready: function (t) {
  17367. (!0 === t ? --T.readyWait : T.isReady) || (T.isReady = !0) !== t && 0 < --T.readyWait || W.resolveWith(C, [T])
  17368. }
  17369. }), T.ready.then = W.then, "complete" === C.readyState || "loading" !== C.readyState && !C.documentElement.doScroll ? x.setTimeout(T.ready) : (C.addEventListener("DOMContentLoaded", $), x.addEventListener("load", $));
  17370. function R(t, e, i, n, s, o, r) {
  17371. var a = 0,
  17372. l = t.length,
  17373. c = null == i;
  17374. if ("object" === w(i))
  17375. for (a in s = !0, i) R(t, e, a, i[a], !0, o, r);
  17376. else if (void 0 !== n && (s = !0, y(n) || (r = !0), c && (e = r ? (e.call(t, n), null) : (c = e, function (t, e, i) {
  17377. return c.call(T(t), i)
  17378. })), e))
  17379. for (; a < l; a++) e(t[a], i, r ? n : n.call(t[a], a, e(t[a], i)));
  17380. return s ? t : c ? e.call(t) : l ? e(t[0], i) : o
  17381. }
  17382. var F = /^-ms-/,
  17383. q = /-([a-z])/g;
  17384. function B(t, e) {
  17385. return e.toUpperCase()
  17386. }
  17387. function U(t) {
  17388. return t.replace(F, "ms-").replace(q, B)
  17389. }
  17390. function Y(t) {
  17391. return 1 === t.nodeType || 9 === t.nodeType || !+t.nodeType
  17392. }
  17393. function V() {
  17394. this.expando = T.expando + V.uid++
  17395. }
  17396. V.uid = 1, V.prototype = {
  17397. cache: function (t) {
  17398. var e = t[this.expando];
  17399. return e || (e = {}, Y(t) && (t.nodeType ? t[this.expando] = e : Object.defineProperty(t, this.expando, {
  17400. value: e,
  17401. configurable: !0
  17402. }))), e
  17403. },
  17404. set: function (t, e, i) {
  17405. var n, s = this.cache(t);
  17406. if ("string" == typeof e) s[U(e)] = i;
  17407. else
  17408. for (n in e) s[U(n)] = e[n];
  17409. return s
  17410. },
  17411. get: function (t, e) {
  17412. return void 0 === e ? this.cache(t) : t[this.expando] && t[this.expando][U(e)]
  17413. },
  17414. access: function (t, e, i) {
  17415. return void 0 === e || e && "string" == typeof e && void 0 === i ? this.get(t, e) : (this.set(t, e, i), void 0 !== i ? i : e)
  17416. },
  17417. remove: function (t, e) {
  17418. var i, n = t[this.expando];
  17419. if (void 0 !== n) {
  17420. if (void 0 !== e) {
  17421. i = (e = Array.isArray(e) ? e.map(U) : (e = U(e)) in n ? [e] : e.match(N) || []).length;
  17422. for (; i--;) delete n[e[i]]
  17423. }(void 0 === e || T.isEmptyObject(n)) && (t.nodeType ? t[this.expando] = void 0 : delete t[this.expando])
  17424. }
  17425. },
  17426. hasData: function (t) {
  17427. var e = t[this.expando];
  17428. return void 0 !== e && !T.isEmptyObject(e)
  17429. }
  17430. };
  17431. var K = new V,
  17432. X = new V,
  17433. Q = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
  17434. G = /[A-Z]/g;
  17435. function J(t, e, i) {
  17436. var n, s;
  17437. if (void 0 === i && 1 === t.nodeType)
  17438. if (n = "data-" + e.replace(G, "-$&").toLowerCase(), "string" == typeof (i = t.getAttribute(n))) {
  17439. try {
  17440. i = "true" === (s = i) || "false" !== s && ("null" === s ? null : s === +s + "" ? +s : Q.test(s) ? JSON.parse(s) : s)
  17441. } catch (t) {}
  17442. X.set(t, e, i)
  17443. } else i = void 0;
  17444. return i
  17445. }
  17446. T.extend({
  17447. hasData: function (t) {
  17448. return X.hasData(t) || K.hasData(t)
  17449. },
  17450. data: function (t, e, i) {
  17451. return X.access(t, e, i)
  17452. },
  17453. removeData: function (t, e) {
  17454. X.remove(t, e)
  17455. },
  17456. _data: function (t, e, i) {
  17457. return K.access(t, e, i)
  17458. },
  17459. _removeData: function (t, e) {
  17460. K.remove(t, e)
  17461. }
  17462. }), T.fn.extend({
  17463. data: function (i, t) {
  17464. var e, n, s, o = this[0],
  17465. r = o && o.attributes;
  17466. if (void 0 !== i) return "object" == _typeof(i) ? this.each(function () {
  17467. X.set(this, i)
  17468. }) : R(this, function (t) {
  17469. var e;
  17470. if (o && void 0 === t) return void 0 !== (e = X.get(o, i)) ? e : void 0 !== (e = J(o, i)) ? e : void 0;
  17471. this.each(function () {
  17472. X.set(this, i, t)
  17473. })
  17474. }, null, t, 1 < arguments.length, null, !0);
  17475. if (this.length && (s = X.get(o), 1 === o.nodeType && !K.get(o, "hasDataAttrs"))) {
  17476. for (e = r.length; e--;) r[e] && 0 === (n = r[e].name).indexOf("data-") && (n = U(n.slice(5)), J(o, n, s[n]));
  17477. K.set(o, "hasDataAttrs", !0)
  17478. }
  17479. return s
  17480. },
  17481. removeData: function (t) {
  17482. return this.each(function () {
  17483. X.remove(this, t)
  17484. })
  17485. }
  17486. }), T.extend({
  17487. queue: function (t, e, i) {
  17488. var n;
  17489. if (t) return e = (e || "fx") + "queue", n = K.get(t, e), i && (!n || Array.isArray(i) ? n = K.access(t, e, T.makeArray(i)) : n.push(i)), n || []
  17490. },
  17491. dequeue: function (t, e) {
  17492. e = e || "fx";
  17493. var i = T.queue(t, e),
  17494. n = i.length,
  17495. s = i.shift(),
  17496. o = T._queueHooks(t, e);
  17497. "inprogress" === s && (s = i.shift(), n--), s && ("fx" === e && i.unshift("inprogress"), delete o.stop, s.call(t, function () {
  17498. T.dequeue(t, e)
  17499. }, o)), !n && o && o.empty.fire()
  17500. },
  17501. _queueHooks: function (t, e) {
  17502. var i = e + "queueHooks";
  17503. return K.get(t, i) || K.access(t, i, {
  17504. empty: T.Callbacks("once memory").add(function () {
  17505. K.remove(t, [e + "queue", i])
  17506. })
  17507. })
  17508. }
  17509. }), T.fn.extend({
  17510. queue: function (e, i) {
  17511. var t = 2;
  17512. return "string" != typeof e && (i = e, e = "fx", t--), arguments.length < t ? T.queue(this[0], e) : void 0 === i ? this : this.each(function () {
  17513. var t = T.queue(this, e, i);
  17514. T._queueHooks(this, e), "fx" === e && "inprogress" !== t[0] && T.dequeue(this, e)
  17515. })
  17516. },
  17517. dequeue: function (t) {
  17518. return this.each(function () {
  17519. T.dequeue(this, t)
  17520. })
  17521. },
  17522. clearQueue: function (t) {
  17523. return this.queue(t || "fx", [])
  17524. },
  17525. promise: function (t, e) {
  17526. function i() {
  17527. --s || o.resolveWith(r, [r])
  17528. }
  17529. var n, s = 1,
  17530. o = T.Deferred(),
  17531. r = this,
  17532. a = this.length;
  17533. for ("string" != typeof t && (e = t, t = void 0), t = t || "fx"; a--;)(n = K.get(r[a], t + "queueHooks")) && n.empty && (s++, n.empty.add(i));
  17534. return i(), o.promise(e)
  17535. }
  17536. });
  17537. var Z = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,
  17538. tt = new RegExp("^(?:([+-])=|)(" + Z + ")([a-z%]*)$", "i"),
  17539. et = ["Top", "Right", "Bottom", "Left"],
  17540. it = C.documentElement,
  17541. nt = function (t) {
  17542. return T.contains(t.ownerDocument, t)
  17543. },
  17544. st = {
  17545. composed: !0
  17546. };
  17547. it.getRootNode && (nt = function (t) {
  17548. return T.contains(t.ownerDocument, t) || t.getRootNode(st) === t.ownerDocument
  17549. });
  17550. function ot(t, e) {
  17551. return "none" === (t = e || t).style.display || "" === t.style.display && nt(t) && "none" === T.css(t, "display")
  17552. }
  17553. function rt(t, e, i, n) {
  17554. var s, o, r = 20,
  17555. a = n ? function () {
  17556. return n.cur()
  17557. } : function () {
  17558. return T.css(t, e, "")
  17559. },
  17560. l = a(),
  17561. c = i && i[3] || (T.cssNumber[e] ? "" : "px"),
  17562. u = t.nodeType && (T.cssNumber[e] || "px" !== c && +l) && tt.exec(T.css(t, e));
  17563. if (u && u[3] !== c) {
  17564. for (l /= 2, c = c || u[3], u = +l || 1; r--;) T.style(t, e, u + c), (1 - o) * (1 - (o = a() / l || .5)) <= 0 && (r = 0), u /= o;
  17565. u *= 2, T.style(t, e, u + c), i = i || []
  17566. }
  17567. return i && (u = +u || +l || 0, s = i[1] ? u + (i[1] + 1) * i[2] : +i[2], n && (n.unit = c, n.start = u, n.end = s)), s
  17568. }
  17569. var at = {};
  17570. function lt(t, e) {
  17571. for (var i, n, s, o, r, a, l, c = [], u = 0, h = t.length; u < h; u++)(n = t[u]).style && (i = n.style.display, e ? ("none" === i && (c[u] = K.get(n, "display") || null, c[u] || (n.style.display = "")), "" === n.style.display && ot(n) && (c[u] = (l = r = o = void 0, r = (s = n).ownerDocument, a = s.nodeName, (l = at[a]) || (o = r.body.appendChild(r.createElement(a)), l = T.css(o, "display"), o.parentNode.removeChild(o), "none" === l && (l = "block"), at[a] = l)))) : "none" !== i && (c[u] = "none", K.set(n, "display", i)));
  17572. for (u = 0; u < h; u++) null != c[u] && (t[u].style.display = c[u]);
  17573. return t
  17574. }
  17575. T.fn.extend({
  17576. show: function () {
  17577. return lt(this, !0)
  17578. },
  17579. hide: function () {
  17580. return lt(this)
  17581. },
  17582. toggle: function (t) {
  17583. return "boolean" == typeof t ? t ? this.show() : this.hide() : this.each(function () {
  17584. ot(this) ? T(this).show() : T(this).hide()
  17585. })
  17586. }
  17587. });
  17588. var ct, ut, ht = /^(?:checkbox|radio)$/i,
  17589. dt = /<([a-z][^\/\0>\x20\t\r\n\f]*)/i,
  17590. pt = /^$|^module$|\/(?:java|ecma)script/i;
  17591. ct = C.createDocumentFragment().appendChild(C.createElement("div")), (ut = C.createElement("input")).setAttribute("type", "radio"), ut.setAttribute("checked", "checked"), ut.setAttribute("name", "t"), ct.appendChild(ut), _.checkClone = ct.cloneNode(!0).cloneNode(!0).lastChild.checked, ct.innerHTML = "<textarea>x</textarea>", _.noCloneChecked = !!ct.cloneNode(!0).lastChild.defaultValue, ct.innerHTML = "<option></option>", _.option = !!ct.lastChild;
  17592. var ft = {
  17593. thead: [1, "<table>", "</table>"],
  17594. col: [2, "<table><colgroup>", "</colgroup></table>"],
  17595. tr: [2, "<table><tbody>", "</tbody></table>"],
  17596. td: [3, "<table><tbody><tr>", "</tr></tbody></table>"],
  17597. _default: [0, "", ""]
  17598. };
  17599. function gt(t, e) {
  17600. var i;
  17601. return i = void 0 !== t.getElementsByTagName ? t.getElementsByTagName(e || "*") : void 0 !== t.querySelectorAll ? t.querySelectorAll(e || "*") : [], void 0 === e || e && S(t, e) ? T.merge([t], i) : i
  17602. }
  17603. function mt(t, e) {
  17604. for (var i = 0, n = t.length; i < n; i++) K.set(t[i], "globalEval", !e || K.get(e[i], "globalEval"))
  17605. }
  17606. ft.tbody = ft.tfoot = ft.colgroup = ft.caption = ft.thead, ft.th = ft.td, _.option || (ft.optgroup = ft.option = [1, "<select multiple='multiple'>", "</select>"]);
  17607. var vt = /<|&#?\w+;/;
  17608. function _t(t, e, i, n, s) {
  17609. for (var o, r, a, l, c, u, h = e.createDocumentFragment(), d = [], p = 0, f = t.length; p < f; p++)
  17610. if ((o = t[p]) || 0 === o)
  17611. if ("object" === w(o)) T.merge(d, o.nodeType ? [o] : o);
  17612. else if (vt.test(o)) {
  17613. for (r = r || h.appendChild(e.createElement("div")), a = (dt.exec(o) || ["", ""])[1].toLowerCase(), l = ft[a] || ft._default, r.innerHTML = l[1] + T.htmlPrefilter(o) + l[2], u = l[0]; u--;) r = r.lastChild;
  17614. T.merge(d, r.childNodes), (r = h.firstChild).textContent = ""
  17615. } else d.push(e.createTextNode(o));
  17616. for (h.textContent = "", p = 0; o = d[p++];)
  17617. if (n && -1 < T.inArray(o, n)) s && s.push(o);
  17618. else if (c = nt(o), r = gt(h.appendChild(o), "script"), c && mt(r), i)
  17619. for (u = 0; o = r[u++];) pt.test(o.type || "") && i.push(o);
  17620. return h
  17621. }
  17622. var yt = /^([^.]*)(?:\.(.+)|)/;
  17623. function bt() {
  17624. return !0
  17625. }
  17626. function wt() {
  17627. return !1
  17628. }
  17629. function kt(t, e) {
  17630. return t === function () {
  17631. try {
  17632. return C.activeElement
  17633. } catch (t) {}
  17634. }() == ("focus" === e)
  17635. }
  17636. function xt(t, e, i, n, s, o) {
  17637. var r, a;
  17638. if ("object" == _typeof(e)) {
  17639. for (a in "string" != typeof i && (n = n || i, i = void 0), e) xt(t, a, i, n, e[a], o);
  17640. return t
  17641. }
  17642. if (null == n && null == s ? (s = i, n = i = void 0) : null == s && ("string" == typeof i ? (s = n, n = void 0) : (s = n, n = i, i = void 0)), !1 === s) s = wt;
  17643. else if (!s) return t;
  17644. return 1 === o && (r = s, (s = function (t) {
  17645. return T().off(t), r.apply(this, arguments)
  17646. }).guid = r.guid || (r.guid = T.guid++)), t.each(function () {
  17647. T.event.add(this, e, s, n, i)
  17648. })
  17649. }
  17650. function Ct(t, s, o) {
  17651. o ? (K.set(t, s, !1), T.event.add(t, s, {
  17652. namespace: !1,
  17653. handler: function (t) {
  17654. var e, i, n = K.get(this, s);
  17655. if (1 & t.isTrigger && this[s]) {
  17656. if (n.length)(T.event.special[s] || {}).delegateType && t.stopPropagation();
  17657. else if (n = a.call(arguments), K.set(this, s, n), e = o(this, s), this[s](), n !== (i = K.get(this, s)) || e ? K.set(this, s, !1) : i = {}, n !== i) return t.stopImmediatePropagation(), t.preventDefault(), i && i.value
  17658. } else n.length && (K.set(this, s, {
  17659. value: T.event.trigger(T.extend(n[0], T.Event.prototype), n.slice(1), this)
  17660. }), t.stopImmediatePropagation())
  17661. }
  17662. })) : void 0 === K.get(t, s) && T.event.add(t, s, bt)
  17663. }
  17664. T.event = {
  17665. global: {},
  17666. add: function (e, t, i, n, s) {
  17667. var o, r, a, l, c, u, h, d, p, f, g, m = K.get(e);
  17668. if (Y(e))
  17669. for (i.handler && (i = (o = i).handler, s = o.selector), s && T.find.matchesSelector(it, s), i.guid || (i.guid = T.guid++), (l = m.events) || (l = m.events = Object.create(null)), (r = m.handle) || (r = m.handle = function (t) {
  17670. return void 0 !== T && T.event.triggered !== t.type ? T.event.dispatch.apply(e, arguments) : void 0
  17671. }), c = (t = (t || "").match(N) || [""]).length; c--;) p = g = (a = yt.exec(t[c]) || [])[1], f = (a[2] || "").split(".").sort(), p && (h = T.event.special[p] || {}, p = (s ? h.delegateType : h.bindType) || p, h = T.event.special[p] || {}, u = T.extend({
  17672. type: p,
  17673. origType: g,
  17674. data: n,
  17675. handler: i,
  17676. guid: i.guid,
  17677. selector: s,
  17678. needsContext: s && T.expr.match.needsContext.test(s),
  17679. namespace: f.join(".")
  17680. }, o), (d = l[p]) || ((d = l[p] = []).delegateCount = 0, h.setup && !1 !== h.setup.call(e, n, f, r) || e.addEventListener && e.addEventListener(p, r)), h.add && (h.add.call(e, u), u.handler.guid || (u.handler.guid = i.guid)), s ? d.splice(d.delegateCount++, 0, u) : d.push(u), T.event.global[p] = !0)
  17681. },
  17682. remove: function (t, e, i, n, s) {
  17683. var o, r, a, l, c, u, h, d, p, f, g, m = K.hasData(t) && K.get(t);
  17684. if (m && (l = m.events)) {
  17685. for (c = (e = (e || "").match(N) || [""]).length; c--;)
  17686. if (p = g = (a = yt.exec(e[c]) || [])[1], f = (a[2] || "").split(".").sort(), p) {
  17687. for (h = T.event.special[p] || {}, d = l[p = (n ? h.delegateType : h.bindType) || p] || [], a = a[2] && new RegExp("(^|\\.)" + f.join("\\.(?:.*\\.|)") + "(\\.|$)"), r = o = d.length; o--;) u = d[o], !s && g !== u.origType || i && i.guid !== u.guid || a && !a.test(u.namespace) || n && n !== u.selector && ("**" !== n || !u.selector) || (d.splice(o, 1), u.selector && d.delegateCount--, h.remove && h.remove.call(t, u));
  17688. r && !d.length && (h.teardown && !1 !== h.teardown.call(t, f, m.handle) || T.removeEvent(t, p, m.handle), delete l[p])
  17689. } else
  17690. for (p in l) T.event.remove(t, p + e[c], i, n, !0);
  17691. T.isEmptyObject(l) && K.remove(t, "handle events")
  17692. }
  17693. },
  17694. dispatch: function (t) {
  17695. var e, i, n, s, o, r, a = new Array(arguments.length),
  17696. l = T.event.fix(t),
  17697. c = (K.get(this, "events") || Object.create(null))[l.type] || [],
  17698. u = T.event.special[l.type] || {};
  17699. for (a[0] = l, e = 1; e < arguments.length; e++) a[e] = arguments[e];
  17700. if (l.delegateTarget = this, !u.preDispatch || !1 !== u.preDispatch.call(this, l)) {
  17701. for (r = T.event.handlers.call(this, l, c), e = 0;
  17702. (s = r[e++]) && !l.isPropagationStopped();)
  17703. for (l.currentTarget = s.elem, i = 0;
  17704. (o = s.handlers[i++]) && !l.isImmediatePropagationStopped();) l.rnamespace && !1 !== o.namespace && !l.rnamespace.test(o.namespace) || (l.handleObj = o, l.data = o.data, void 0 !== (n = ((T.event.special[o.origType] || {}).handle || o.handler).apply(s.elem, a)) && !1 === (l.result = n) && (l.preventDefault(), l.stopPropagation()));
  17705. return u.postDispatch && u.postDispatch.call(this, l), l.result
  17706. }
  17707. },
  17708. handlers: function (t, e) {
  17709. var i, n, s, o, r, a = [],
  17710. l = e.delegateCount,
  17711. c = t.target;
  17712. if (l && c.nodeType && !("click" === t.type && 1 <= t.button))
  17713. for (; c !== this; c = c.parentNode || this)
  17714. if (1 === c.nodeType && ("click" !== t.type || !0 !== c.disabled)) {
  17715. for (o = [], r = {}, i = 0; i < l; i++) void 0 === r[s = (n = e[i]).selector + " "] && (r[s] = n.needsContext ? -1 < T(s, this).index(c) : T.find(s, this, null, [c]).length), r[s] && o.push(n);
  17716. o.length && a.push({
  17717. elem: c,
  17718. handlers: o
  17719. })
  17720. } return c = this, l < e.length && a.push({
  17721. elem: c,
  17722. handlers: e.slice(l)
  17723. }), a
  17724. },
  17725. addProp: function (e, t) {
  17726. Object.defineProperty(T.Event.prototype, e, {
  17727. enumerable: !0,
  17728. configurable: !0,
  17729. get: y(t) ? function () {
  17730. if (this.originalEvent) return t(this.originalEvent)
  17731. } : function () {
  17732. if (this.originalEvent) return this.originalEvent[e]
  17733. },
  17734. set: function (t) {
  17735. Object.defineProperty(this, e, {
  17736. enumerable: !0,
  17737. configurable: !0,
  17738. writable: !0,
  17739. value: t
  17740. })
  17741. }
  17742. })
  17743. },
  17744. fix: function (t) {
  17745. return t[T.expando] ? t : new T.Event(t)
  17746. },
  17747. special: {
  17748. load: {
  17749. noBubble: !0
  17750. },
  17751. click: {
  17752. setup: function (t) {
  17753. var e = this || t;
  17754. return ht.test(e.type) && e.click && S(e, "input") && Ct(e, "click", bt), !1
  17755. },
  17756. trigger: function (t) {
  17757. var e = this || t;
  17758. return ht.test(e.type) && e.click && S(e, "input") && Ct(e, "click"), !0
  17759. },
  17760. _default: function (t) {
  17761. var e = t.target;
  17762. return ht.test(e.type) && e.click && S(e, "input") && K.get(e, "click") || S(e, "a")
  17763. }
  17764. },
  17765. beforeunload: {
  17766. postDispatch: function (t) {
  17767. void 0 !== t.result && t.originalEvent && (t.originalEvent.returnValue = t.result)
  17768. }
  17769. }
  17770. }
  17771. }, T.removeEvent = function (t, e, i) {
  17772. t.removeEventListener && t.removeEventListener(e, i)
  17773. }, T.Event = function (t, e) {
  17774. if (!(this instanceof T.Event)) return new T.Event(t, e);
  17775. t && t.type ? (this.originalEvent = t, this.type = t.type, this.isDefaultPrevented = t.defaultPrevented || void 0 === t.defaultPrevented && !1 === t.returnValue ? bt : wt, this.target = t.target && 3 === t.target.nodeType ? t.target.parentNode : t.target, this.currentTarget = t.currentTarget, this.relatedTarget = t.relatedTarget) : this.type = t, e && T.extend(this, e), this.timeStamp = t && t.timeStamp || Date.now(), this[T.expando] = !0
  17776. }, T.Event.prototype = {
  17777. constructor: T.Event,
  17778. isDefaultPrevented: wt,
  17779. isPropagationStopped: wt,
  17780. isImmediatePropagationStopped: wt,
  17781. isSimulated: !1,
  17782. preventDefault: function () {
  17783. var t = this.originalEvent;
  17784. this.isDefaultPrevented = bt, t && !this.isSimulated && t.preventDefault()
  17785. },
  17786. stopPropagation: function () {
  17787. var t = this.originalEvent;
  17788. this.isPropagationStopped = bt, t && !this.isSimulated && t.stopPropagation()
  17789. },
  17790. stopImmediatePropagation: function () {
  17791. var t = this.originalEvent;
  17792. this.isImmediatePropagationStopped = bt, t && !this.isSimulated && t.stopImmediatePropagation(), this.stopPropagation()
  17793. }
  17794. }, T.each({
  17795. altKey: !0,
  17796. bubbles: !0,
  17797. cancelable: !0,
  17798. changedTouches: !0,
  17799. ctrlKey: !0,
  17800. detail: !0,
  17801. eventPhase: !0,
  17802. metaKey: !0,
  17803. pageX: !0,
  17804. pageY: !0,
  17805. shiftKey: !0,
  17806. view: !0,
  17807. char: !0,
  17808. code: !0,
  17809. charCode: !0,
  17810. key: !0,
  17811. keyCode: !0,
  17812. button: !0,
  17813. buttons: !0,
  17814. clientX: !0,
  17815. clientY: !0,
  17816. offsetX: !0,
  17817. offsetY: !0,
  17818. pointerId: !0,
  17819. pointerType: !0,
  17820. screenX: !0,
  17821. screenY: !0,
  17822. targetTouches: !0,
  17823. toElement: !0,
  17824. touches: !0,
  17825. which: !0
  17826. }, T.event.addProp), T.each({
  17827. focus: "focusin",
  17828. blur: "focusout"
  17829. }, function (t, e) {
  17830. T.event.special[t] = {
  17831. setup: function () {
  17832. return Ct(this, t, kt), !1
  17833. },
  17834. trigger: function () {
  17835. return Ct(this, t), !0
  17836. },
  17837. _default: function () {
  17838. return !0
  17839. },
  17840. delegateType: e
  17841. }
  17842. }), T.each({
  17843. mouseenter: "mouseover",
  17844. mouseleave: "mouseout",
  17845. pointerenter: "pointerover",
  17846. pointerleave: "pointerout"
  17847. }, function (t, s) {
  17848. T.event.special[t] = {
  17849. delegateType: s,
  17850. bindType: s,
  17851. handle: function (t) {
  17852. var e, i = t.relatedTarget,
  17853. n = t.handleObj;
  17854. return i && (i === this || T.contains(this, i)) || (t.type = n.origType, e = n.handler.apply(this, arguments), t.type = s), e
  17855. }
  17856. }
  17857. }), T.fn.extend({
  17858. on: function (t, e, i, n) {
  17859. return xt(this, t, e, i, n)
  17860. },
  17861. one: function (t, e, i, n) {
  17862. return xt(this, t, e, i, n, 1)
  17863. },
  17864. off: function (t, e, i) {
  17865. var n, s;
  17866. if (t && t.preventDefault && t.handleObj) return n = t.handleObj, T(t.delegateTarget).off(n.namespace ? n.origType + "." + n.namespace : n.origType, n.selector, n.handler), this;
  17867. if ("object" != _typeof(t)) return !1 !== e && "function" != typeof e || (i = e, e = void 0), !1 === i && (i = wt), this.each(function () {
  17868. T.event.remove(this, t, i, e)
  17869. });
  17870. for (s in t) this.off(s, e, t[s]);
  17871. return this
  17872. }
  17873. });
  17874. var Tt = /<script|<style|<link/i,
  17875. St = /checked\s*(?:[^=]|=\s*.checked.)/i,
  17876. Dt = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
  17877. function At(t, e) {
  17878. return S(t, "table") && S(11 !== e.nodeType ? e : e.firstChild, "tr") && T(t).children("tbody")[0] || t
  17879. }
  17880. function Et(t) {
  17881. return t.type = (null !== t.getAttribute("type")) + "/" + t.type, t
  17882. }
  17883. function Pt(t) {
  17884. return "true/" === (t.type || "").slice(0, 5) ? t.type = t.type.slice(5) : t.removeAttribute("type"), t
  17885. }
  17886. function It(t, e) {
  17887. var i, n, s, o, r, a;
  17888. if (1 === e.nodeType) {
  17889. if (K.hasData(t) && (a = K.get(t).events))
  17890. for (s in K.remove(e, "handle events"), a)
  17891. for (i = 0, n = a[s].length; i < n; i++) T.event.add(e, s, a[s][i]);
  17892. X.hasData(t) && (o = X.access(t), r = T.extend({}, o), X.set(e, r))
  17893. }
  17894. }
  17895. function Ot(i, n, s, o) {
  17896. n = m(n);
  17897. var t, e, r, a, l, c, u = 0,
  17898. h = i.length,
  17899. d = h - 1,
  17900. p = n[0],
  17901. f = y(p);
  17902. if (f || 1 < h && "string" == typeof p && !_.checkClone && St.test(p)) return i.each(function (t) {
  17903. var e = i.eq(t);
  17904. f && (n[0] = p.call(this, t, e.html())), Ot(e, n, s, o)
  17905. });
  17906. if (h && (e = (t = _t(n, i[0].ownerDocument, !1, i, o)).firstChild, 1 === t.childNodes.length && (t = e), e || o)) {
  17907. for (a = (r = T.map(gt(t, "script"), Et)).length; u < h; u++) l = t, u !== d && (l = T.clone(l, !0, !0), a && T.merge(r, gt(l, "script"))), s.call(i[u], l, u);
  17908. if (a)
  17909. for (c = r[r.length - 1].ownerDocument, T.map(r, Pt), u = 0; u < a; u++) l = r[u], pt.test(l.type || "") && !K.access(l, "globalEval") && T.contains(c, l) && (l.src && "module" !== (l.type || "").toLowerCase() ? T._evalUrl && !l.noModule && T._evalUrl(l.src, {
  17910. nonce: l.nonce || l.getAttribute("nonce")
  17911. }, c) : b(l.textContent.replace(Dt, ""), l, c))
  17912. }
  17913. return i
  17914. }
  17915. function Mt(t, e, i) {
  17916. for (var n, s = e ? T.filter(e, t) : t, o = 0; null != (n = s[o]); o++) i || 1 !== n.nodeType || T.cleanData(gt(n)), n.parentNode && (i && nt(n) && mt(gt(n, "script")), n.parentNode.removeChild(n));
  17917. return t
  17918. }
  17919. T.extend({
  17920. htmlPrefilter: function (t) {
  17921. return t
  17922. },
  17923. clone: function (t, e, i) {
  17924. var n, s, o, r, a, l, c, u = t.cloneNode(!0),
  17925. h = nt(t);
  17926. if (!(_.noCloneChecked || 1 !== t.nodeType && 11 !== t.nodeType || T.isXMLDoc(t)))
  17927. for (r = gt(u), n = 0, s = (o = gt(t)).length; n < s; n++) a = o[n], "input" === (c = (l = r[n]).nodeName.toLowerCase()) && ht.test(a.type) ? l.checked = a.checked : "input" !== c && "textarea" !== c || (l.defaultValue = a.defaultValue);
  17928. if (e)
  17929. if (i)
  17930. for (o = o || gt(t), r = r || gt(u), n = 0, s = o.length; n < s; n++) It(o[n], r[n]);
  17931. else It(t, u);
  17932. return 0 < (r = gt(u, "script")).length && mt(r, !h && gt(t, "script")), u
  17933. },
  17934. cleanData: function (t) {
  17935. for (var e, i, n, s = T.event.special, o = 0; void 0 !== (i = t[o]); o++)
  17936. if (Y(i)) {
  17937. if (e = i[K.expando]) {
  17938. if (e.events)
  17939. for (n in e.events) s[n] ? T.event.remove(i, n) : T.removeEvent(i, n, e.handle);
  17940. i[K.expando] = void 0
  17941. }
  17942. i[X.expando] && (i[X.expando] = void 0)
  17943. }
  17944. }
  17945. }), T.fn.extend({
  17946. detach: function (t) {
  17947. return Mt(this, t, !0)
  17948. },
  17949. remove: function (t) {
  17950. return Mt(this, t)
  17951. },
  17952. text: function (t) {
  17953. return R(this, function (t) {
  17954. return void 0 === t ? T.text(this) : this.empty().each(function () {
  17955. 1 !== this.nodeType && 11 !== this.nodeType && 9 !== this.nodeType || (this.textContent = t)
  17956. })
  17957. }, null, t, arguments.length)
  17958. },
  17959. append: function () {
  17960. return Ot(this, arguments, function (t) {
  17961. 1 !== this.nodeType && 11 !== this.nodeType && 9 !== this.nodeType || At(this, t).appendChild(t)
  17962. })
  17963. },
  17964. prepend: function () {
  17965. return Ot(this, arguments, function (t) {
  17966. if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
  17967. var e = At(this, t);
  17968. e.insertBefore(t, e.firstChild)
  17969. }
  17970. })
  17971. },
  17972. before: function () {
  17973. return Ot(this, arguments, function (t) {
  17974. this.parentNode && this.parentNode.insertBefore(t, this)
  17975. })
  17976. },
  17977. after: function () {
  17978. return Ot(this, arguments, function (t) {
  17979. this.parentNode && this.parentNode.insertBefore(t, this.nextSibling)
  17980. })
  17981. },
  17982. empty: function () {
  17983. for (var t, e = 0; null != (t = this[e]); e++) 1 === t.nodeType && (T.cleanData(gt(t, !1)), t.textContent = "");
  17984. return this
  17985. },
  17986. clone: function (t, e) {
  17987. return t = null != t && t, e = null == e ? t : e, this.map(function () {
  17988. return T.clone(this, t, e)
  17989. })
  17990. },
  17991. html: function (t) {
  17992. return R(this, function (t) {
  17993. var e = this[0] || {},
  17994. i = 0,
  17995. n = this.length;
  17996. if (void 0 === t && 1 === e.nodeType) return e.innerHTML;
  17997. if ("string" == typeof t && !Tt.test(t) && !ft[(dt.exec(t) || ["", ""])[1].toLowerCase()]) {
  17998. t = T.htmlPrefilter(t);
  17999. try {
  18000. for (; i < n; i++) 1 === (e = this[i] || {}).nodeType && (T.cleanData(gt(e, !1)), e.innerHTML = t);
  18001. e = 0
  18002. } catch (t) {}
  18003. }
  18004. e && this.empty().append(t)
  18005. }, null, t, arguments.length)
  18006. },
  18007. replaceWith: function () {
  18008. var i = [];
  18009. return Ot(this, arguments, function (t) {
  18010. var e = this.parentNode;
  18011. T.inArray(this, i) < 0 && (T.cleanData(gt(this)), e && e.replaceChild(t, this))
  18012. }, i)
  18013. }
  18014. }), T.each({
  18015. appendTo: "append",
  18016. prependTo: "prepend",
  18017. insertBefore: "before",
  18018. insertAfter: "after",
  18019. replaceAll: "replaceWith"
  18020. }, function (t, r) {
  18021. T.fn[t] = function (t) {
  18022. for (var e, i = [], n = T(t), s = n.length - 1, o = 0; o <= s; o++) e = o === s ? this : this.clone(!0), T(n[o])[r](e), l.apply(i, e.get());
  18023. return this.pushStack(i)
  18024. }
  18025. });
  18026. function Nt(t, e, i) {
  18027. var n, s, o = {};
  18028. for (s in e) o[s] = t.style[s], t.style[s] = e[s];
  18029. for (s in n = i.call(t), e) t.style[s] = o[s];
  18030. return n
  18031. }
  18032. var Lt = new RegExp("^(" + Z + ")(?!px)[a-z%]+$", "i"),
  18033. Ht = function (t) {
  18034. var e = t.ownerDocument.defaultView;
  18035. return e && e.opener || (e = x), e.getComputedStyle(t)
  18036. },
  18037. jt = new RegExp(et.join("|"), "i");
  18038. function zt(t, e, i) {
  18039. var n, s, o, r, a = t.style;
  18040. return (i = i || Ht(t)) && ("" !== (r = i.getPropertyValue(e) || i[e]) || nt(t) || (r = T.style(t, e)), !_.pixelBoxStyles() && Lt.test(r) && jt.test(e) && (n = a.width, s = a.minWidth, o = a.maxWidth, a.minWidth = a.maxWidth = a.width = r, r = i.width, a.width = n, a.minWidth = s, a.maxWidth = o)), void 0 !== r ? r + "" : r
  18041. }
  18042. function Wt(t, e) {
  18043. return {
  18044. get: function () {
  18045. if (!t()) return (this.get = e).apply(this, arguments);
  18046. delete this.get
  18047. }
  18048. }
  18049. }! function () {
  18050. function t() {
  18051. if (c) {
  18052. l.style.cssText = "position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0", c.style.cssText = "position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%", it.appendChild(l).appendChild(c);
  18053. var t = x.getComputedStyle(c);
  18054. i = "1%" !== t.top, a = 12 === e(t.marginLeft), c.style.right = "60%", o = 36 === e(t.right), n = 36 === e(t.width), c.style.position = "absolute", s = 12 === e(c.offsetWidth / 3), it.removeChild(l), c = null
  18055. }
  18056. }
  18057. function e(t) {
  18058. return Math.round(parseFloat(t))
  18059. }
  18060. var i, n, s, o, r, a, l = C.createElement("div"),
  18061. c = C.createElement("div");
  18062. c.style && (c.style.backgroundClip = "content-box", c.cloneNode(!0).style.backgroundClip = "", _.clearCloneStyle = "content-box" === c.style.backgroundClip, T.extend(_, {
  18063. boxSizingReliable: function () {
  18064. return t(), n
  18065. },
  18066. pixelBoxStyles: function () {
  18067. return t(), o
  18068. },
  18069. pixelPosition: function () {
  18070. return t(), i
  18071. },
  18072. reliableMarginLeft: function () {
  18073. return t(), a
  18074. },
  18075. scrollboxSize: function () {
  18076. return t(), s
  18077. },
  18078. reliableTrDimensions: function () {
  18079. var t, e, i, n;
  18080. return null == r && (t = C.createElement("table"), e = C.createElement("tr"), i = C.createElement("div"), t.style.cssText = "position:absolute;left:-11111px;border-collapse:separate", e.style.cssText = "border:1px solid", e.style.height = "1px", i.style.height = "9px", i.style.display = "block", it.appendChild(t).appendChild(e).appendChild(i), n = x.getComputedStyle(e), r = parseInt(n.height, 10) + parseInt(n.borderTopWidth, 10) + parseInt(n.borderBottomWidth, 10) === e.offsetHeight, it.removeChild(t)), r
  18081. }
  18082. }))
  18083. }();
  18084. var $t = ["Webkit", "Moz", "ms"],
  18085. Rt = C.createElement("div").style,
  18086. Ft = {};
  18087. function qt(t) {
  18088. return T.cssProps[t] || Ft[t] || (t in Rt ? t : Ft[t] = function (t) {
  18089. for (var e = t[0].toUpperCase() + t.slice(1), i = $t.length; i--;)
  18090. if ((t = $t[i] + e) in Rt) return t
  18091. }(t) || t)
  18092. }
  18093. var Bt = /^(none|table(?!-c[ea]).+)/,
  18094. Ut = /^--/,
  18095. Yt = {
  18096. position: "absolute",
  18097. visibility: "hidden",
  18098. display: "block"
  18099. },
  18100. Vt = {
  18101. letterSpacing: "0",
  18102. fontWeight: "400"
  18103. };
  18104. function Kt(t, e, i) {
  18105. var n = tt.exec(e);
  18106. return n ? Math.max(0, n[2] - (i || 0)) + (n[3] || "px") : e
  18107. }
  18108. function Xt(t, e, i, n, s, o) {
  18109. var r = "width" === e ? 1 : 0,
  18110. a = 0,
  18111. l = 0;
  18112. if (i === (n ? "border" : "content")) return 0;
  18113. for (; r < 4; r += 2) "margin" === i && (l += T.css(t, i + et[r], !0, s)), n ? ("content" === i && (l -= T.css(t, "padding" + et[r], !0, s)), "margin" !== i && (l -= T.css(t, "border" + et[r] + "Width", !0, s))) : (l += T.css(t, "padding" + et[r], !0, s), "padding" !== i ? l += T.css(t, "border" + et[r] + "Width", !0, s) : a += T.css(t, "border" + et[r] + "Width", !0, s));
  18114. return !n && 0 <= o && (l += Math.max(0, Math.ceil(t["offset" + e[0].toUpperCase() + e.slice(1)] - o - l - a - .5)) || 0), l
  18115. }
  18116. function Qt(t, e, i) {
  18117. var n = Ht(t),
  18118. s = (!_.boxSizingReliable() || i) && "border-box" === T.css(t, "boxSizing", !1, n),
  18119. o = s,
  18120. r = zt(t, e, n),
  18121. a = "offset" + e[0].toUpperCase() + e.slice(1);
  18122. if (Lt.test(r)) {
  18123. if (!i) return r;
  18124. r = "auto"
  18125. }
  18126. return (!_.boxSizingReliable() && s || !_.reliableTrDimensions() && S(t, "tr") || "auto" === r || !parseFloat(r) && "inline" === T.css(t, "display", !1, n)) && t.getClientRects().length && (s = "border-box" === T.css(t, "boxSizing", !1, n), (o = a in t) && (r = t[a])), (r = parseFloat(r) || 0) + Xt(t, e, i || (s ? "border" : "content"), o, n, r) + "px"
  18127. }
  18128. function Gt(t, e, i, n, s) {
  18129. return new Gt.prototype.init(t, e, i, n, s)
  18130. }
  18131. T.extend({
  18132. cssHooks: {
  18133. opacity: {
  18134. get: function (t, e) {
  18135. if (e) {
  18136. var i = zt(t, "opacity");
  18137. return "" === i ? "1" : i
  18138. }
  18139. }
  18140. }
  18141. },
  18142. cssNumber: {
  18143. animationIterationCount: !0,
  18144. columnCount: !0,
  18145. fillOpacity: !0,
  18146. flexGrow: !0,
  18147. flexShrink: !0,
  18148. fontWeight: !0,
  18149. gridArea: !0,
  18150. gridColumn: !0,
  18151. gridColumnEnd: !0,
  18152. gridColumnStart: !0,
  18153. gridRow: !0,
  18154. gridRowEnd: !0,
  18155. gridRowStart: !0,
  18156. lineHeight: !0,
  18157. opacity: !0,
  18158. order: !0,
  18159. orphans: !0,
  18160. widows: !0,
  18161. zIndex: !0,
  18162. zoom: !0
  18163. },
  18164. cssProps: {},
  18165. style: function (t, e, i, n) {
  18166. if (t && 3 !== t.nodeType && 8 !== t.nodeType && t.style) {
  18167. var s, o, r, a = U(e),
  18168. l = Ut.test(e),
  18169. c = t.style;
  18170. if (l || (e = qt(a)), r = T.cssHooks[e] || T.cssHooks[a], void 0 === i) return r && "get" in r && void 0 !== (s = r.get(t, !1, n)) ? s : c[e];
  18171. "string" === (o = _typeof(i)) && (s = tt.exec(i)) && s[1] && (i = rt(t, e, s), o = "number"), null != i && i == i && ("number" !== o || l || (i += s && s[3] || (T.cssNumber[a] ? "" : "px")), _.clearCloneStyle || "" !== i || 0 !== e.indexOf("background") || (c[e] = "inherit"), r && "set" in r && void 0 === (i = r.set(t, i, n)) || (l ? c.setProperty(e, i) : c[e] = i))
  18172. }
  18173. },
  18174. css: function (t, e, i, n) {
  18175. var s, o, r, a = U(e);
  18176. return Ut.test(e) || (e = qt(a)), (r = T.cssHooks[e] || T.cssHooks[a]) && "get" in r && (s = r.get(t, !0, i)), void 0 === s && (s = zt(t, e, n)), "normal" === s && e in Vt && (s = Vt[e]), "" === i || i ? (o = parseFloat(s), !0 === i || isFinite(o) ? o || 0 : s) : s
  18177. }
  18178. }), T.each(["height", "width"], function (t, l) {
  18179. T.cssHooks[l] = {
  18180. get: function (t, e, i) {
  18181. if (e) return !Bt.test(T.css(t, "display")) || t.getClientRects().length && t.getBoundingClientRect().width ? Qt(t, l, i) : Nt(t, Yt, function () {
  18182. return Qt(t, l, i)
  18183. })
  18184. },
  18185. set: function (t, e, i) {
  18186. var n, s = Ht(t),
  18187. o = !_.scrollboxSize() && "absolute" === s.position,
  18188. r = (o || i) && "border-box" === T.css(t, "boxSizing", !1, s),
  18189. a = i ? Xt(t, l, i, r, s) : 0;
  18190. return r && o && (a -= Math.ceil(t["offset" + l[0].toUpperCase() + l.slice(1)] - parseFloat(s[l]) - Xt(t, l, "border", !1, s) - .5)), a && (n = tt.exec(e)) && "px" !== (n[3] || "px") && (t.style[l] = e, e = T.css(t, l)), Kt(0, e, a)
  18191. }
  18192. }
  18193. }), T.cssHooks.marginLeft = Wt(_.reliableMarginLeft, function (t, e) {
  18194. if (e) return (parseFloat(zt(t, "marginLeft")) || t.getBoundingClientRect().left - Nt(t, {
  18195. marginLeft: 0
  18196. }, function () {
  18197. return t.getBoundingClientRect().left
  18198. })) + "px"
  18199. }), T.each({
  18200. margin: "",
  18201. padding: "",
  18202. border: "Width"
  18203. }, function (s, o) {
  18204. T.cssHooks[s + o] = {
  18205. expand: function (t) {
  18206. for (var e = 0, i = {}, n = "string" == typeof t ? t.split(" ") : [t]; e < 4; e++) i[s + et[e] + o] = n[e] || n[e - 2] || n[0];
  18207. return i
  18208. }
  18209. }, "margin" !== s && (T.cssHooks[s + o].set = Kt)
  18210. }), T.fn.extend({
  18211. css: function (t, e) {
  18212. return R(this, function (t, e, i) {
  18213. var n, s, o = {},
  18214. r = 0;
  18215. if (Array.isArray(e)) {
  18216. for (n = Ht(t), s = e.length; r < s; r++) o[e[r]] = T.css(t, e[r], !1, n);
  18217. return o
  18218. }
  18219. return void 0 !== i ? T.style(t, e, i) : T.css(t, e)
  18220. }, t, e, 1 < arguments.length)
  18221. }
  18222. }), ((T.Tween = Gt).prototype = {
  18223. constructor: Gt,
  18224. init: function (t, e, i, n, s, o) {
  18225. this.elem = t, this.prop = i, this.easing = s || T.easing._default, this.options = e, this.start = this.now = this.cur(), this.end = n, this.unit = o || (T.cssNumber[i] ? "" : "px")
  18226. },
  18227. cur: function () {
  18228. var t = Gt.propHooks[this.prop];
  18229. return t && t.get ? t.get(this) : Gt.propHooks._default.get(this)
  18230. },
  18231. run: function (t) {
  18232. var e, i = Gt.propHooks[this.prop];
  18233. return this.options.duration ? this.pos = e = T.easing[this.easing](t, this.options.duration * t, 0, 1, this.options.duration) : this.pos = e = t, this.now = (this.end - this.start) * e + this.start, this.options.step && this.options.step.call(this.elem, this.now, this), i && i.set ? i.set(this) : Gt.propHooks._default.set(this), this
  18234. }
  18235. }).init.prototype = Gt.prototype, (Gt.propHooks = {
  18236. _default: {
  18237. get: function (t) {
  18238. var e;
  18239. return 1 !== t.elem.nodeType || null != t.elem[t.prop] && null == t.elem.style[t.prop] ? t.elem[t.prop] : (e = T.css(t.elem, t.prop, "")) && "auto" !== e ? e : 0
  18240. },
  18241. set: function (t) {
  18242. T.fx.step[t.prop] ? T.fx.step[t.prop](t) : 1 !== t.elem.nodeType || !T.cssHooks[t.prop] && null == t.elem.style[qt(t.prop)] ? t.elem[t.prop] = t.now : T.style(t.elem, t.prop, t.now + t.unit)
  18243. }
  18244. }
  18245. }).scrollTop = Gt.propHooks.scrollLeft = {
  18246. set: function (t) {
  18247. t.elem.nodeType && t.elem.parentNode && (t.elem[t.prop] = t.now)
  18248. }
  18249. }, T.easing = {
  18250. linear: function (t) {
  18251. return t
  18252. },
  18253. swing: function (t) {
  18254. return .5 - Math.cos(t * Math.PI) / 2
  18255. },
  18256. _default: "swing"
  18257. }, T.fx = Gt.prototype.init, T.fx.step = {};
  18258. var Jt, Zt, te, ee, ie = /^(?:toggle|show|hide)$/,
  18259. ne = /queueHooks$/;
  18260. function se() {
  18261. Zt && (!1 === C.hidden && x.requestAnimationFrame ? x.requestAnimationFrame(se) : x.setTimeout(se, T.fx.interval), T.fx.tick())
  18262. }
  18263. function oe() {
  18264. return x.setTimeout(function () {
  18265. Jt = void 0
  18266. }), Jt = Date.now()
  18267. }
  18268. function re(t, e) {
  18269. var i, n = 0,
  18270. s = {
  18271. height: t
  18272. };
  18273. for (e = e ? 1 : 0; n < 4; n += 2 - e) s["margin" + (i = et[n])] = s["padding" + i] = t;
  18274. return e && (s.opacity = s.width = t), s
  18275. }
  18276. function ae(t, e, i) {
  18277. for (var n, s = (le.tweeners[e] || []).concat(le.tweeners["*"]), o = 0, r = s.length; o < r; o++)
  18278. if (n = s[o].call(i, e, t)) return n
  18279. }
  18280. function le(o, t, e) {
  18281. var i, r, n = 0,
  18282. s = le.prefilters.length,
  18283. a = T.Deferred().always(function () {
  18284. delete l.elem
  18285. }),
  18286. l = function () {
  18287. if (r) return !1;
  18288. for (var t = Jt || oe(), e = Math.max(0, c.startTime + c.duration - t), i = 1 - (e / c.duration || 0), n = 0, s = c.tweens.length; n < s; n++) c.tweens[n].run(i);
  18289. return a.notifyWith(o, [c, i, e]), i < 1 && s ? e : (s || a.notifyWith(o, [c, 1, 0]), a.resolveWith(o, [c]), !1)
  18290. },
  18291. c = a.promise({
  18292. elem: o,
  18293. props: T.extend({}, t),
  18294. opts: T.extend(!0, {
  18295. specialEasing: {},
  18296. easing: T.easing._default
  18297. }, e),
  18298. originalProperties: t,
  18299. originalOptions: e,
  18300. startTime: Jt || oe(),
  18301. duration: e.duration,
  18302. tweens: [],
  18303. createTween: function (t, e) {
  18304. var i = T.Tween(o, c.opts, t, e, c.opts.specialEasing[t] || c.opts.easing);
  18305. return c.tweens.push(i), i
  18306. },
  18307. stop: function (t) {
  18308. var e = 0,
  18309. i = t ? c.tweens.length : 0;
  18310. if (r) return this;
  18311. for (r = !0; e < i; e++) c.tweens[e].run(1);
  18312. return t ? (a.notifyWith(o, [c, 1, 0]), a.resolveWith(o, [c, t])) : a.rejectWith(o, [c, t]), this
  18313. }
  18314. }),
  18315. u = c.props;
  18316. for (function (t, e) {
  18317. var i, n, s, o, r;
  18318. for (i in t)
  18319. if (s = e[n = U(i)], o = t[i], Array.isArray(o) && (s = o[1], o = t[i] = o[0]), i !== n && (t[n] = o, delete t[i]), (r = T.cssHooks[n]) && "expand" in r)
  18320. for (i in o = r.expand(o), delete t[n], o) i in t || (t[i] = o[i], e[i] = s);
  18321. else e[n] = s
  18322. }(u, c.opts.specialEasing); n < s; n++)
  18323. if (i = le.prefilters[n].call(c, o, u, c.opts)) return y(i.stop) && (T._queueHooks(c.elem, c.opts.queue).stop = i.stop.bind(i)), i;
  18324. return T.map(u, ae, c), y(c.opts.start) && c.opts.start.call(o, c), c.progress(c.opts.progress).done(c.opts.done, c.opts.complete).fail(c.opts.fail).always(c.opts.always), T.fx.timer(T.extend(l, {
  18325. elem: o,
  18326. anim: c,
  18327. queue: c.opts.queue
  18328. })), c
  18329. }
  18330. T.Animation = T.extend(le, {
  18331. tweeners: {
  18332. "*": [function (t, e) {
  18333. var i = this.createTween(t, e);
  18334. return rt(i.elem, t, tt.exec(e), i), i
  18335. }]
  18336. },
  18337. tweener: function (t, e) {
  18338. for (var i, n = 0, s = (t = y(t) ? (e = t, ["*"]) : t.match(N)).length; n < s; n++) i = t[n], le.tweeners[i] = le.tweeners[i] || [], le.tweeners[i].unshift(e)
  18339. },
  18340. prefilters: [function (t, e, i) {
  18341. var n, s, o, r, a, l, c, u, h = "width" in e || "height" in e,
  18342. d = this,
  18343. p = {},
  18344. f = t.style,
  18345. g = t.nodeType && ot(t),
  18346. m = K.get(t, "fxshow");
  18347. for (n in i.queue || (null == (r = T._queueHooks(t, "fx")).unqueued && (r.unqueued = 0, a = r.empty.fire, r.empty.fire = function () {
  18348. r.unqueued || a()
  18349. }), r.unqueued++, d.always(function () {
  18350. d.always(function () {
  18351. r.unqueued--, T.queue(t, "fx").length || r.empty.fire()
  18352. })
  18353. })), e)
  18354. if (s = e[n], ie.test(s)) {
  18355. if (delete e[n], o = o || "toggle" === s, s === (g ? "hide" : "show")) {
  18356. if ("show" !== s || !m || void 0 === m[n]) continue;
  18357. g = !0
  18358. }
  18359. p[n] = m && m[n] || T.style(t, n)
  18360. } if ((l = !T.isEmptyObject(e)) || !T.isEmptyObject(p))
  18361. for (n in h && 1 === t.nodeType && (i.overflow = [f.overflow, f.overflowX, f.overflowY], null == (c = m && m.display) && (c = K.get(t, "display")), "none" === (u = T.css(t, "display")) && (c ? u = c : (lt([t], !0), c = t.style.display || c, u = T.css(t, "display"), lt([t]))), ("inline" === u || "inline-block" === u && null != c) && "none" === T.css(t, "float") && (l || (d.done(function () {
  18362. f.display = c
  18363. }), null == c && (u = f.display, c = "none" === u ? "" : u)), f.display = "inline-block")), i.overflow && (f.overflow = "hidden", d.always(function () {
  18364. f.overflow = i.overflow[0], f.overflowX = i.overflow[1], f.overflowY = i.overflow[2]
  18365. })), l = !1, p) l || (m ? "hidden" in m && (g = m.hidden) : m = K.access(t, "fxshow", {
  18366. display: c
  18367. }), o && (m.hidden = !g), g && lt([t], !0), d.done(function () {
  18368. for (n in g || lt([t]), K.remove(t, "fxshow"), p) T.style(t, n, p[n])
  18369. })), l = ae(g ? m[n] : 0, n, d), n in m || (m[n] = l.start, g && (l.end = l.start, l.start = 0))
  18370. }],
  18371. prefilter: function (t, e) {
  18372. e ? le.prefilters.unshift(t) : le.prefilters.push(t)
  18373. }
  18374. }), T.speed = function (t, e, i) {
  18375. var n = t && "object" == _typeof(t) ? T.extend({}, t) : {
  18376. complete: i || !i && e || y(t) && t,
  18377. duration: t,
  18378. easing: i && e || e && !y(e) && e
  18379. };
  18380. return T.fx.off ? n.duration = 0 : "number" != typeof n.duration && (n.duration in T.fx.speeds ? n.duration = T.fx.speeds[n.duration] : n.duration = T.fx.speeds._default), null != n.queue && !0 !== n.queue || (n.queue = "fx"), n.old = n.complete, n.complete = function () {
  18381. y(n.old) && n.old.call(this), n.queue && T.dequeue(this, n.queue)
  18382. }, n
  18383. }, T.fn.extend({
  18384. fadeTo: function (t, e, i, n) {
  18385. return this.filter(ot).css("opacity", 0).show().end().animate({
  18386. opacity: e
  18387. }, t, i, n)
  18388. },
  18389. animate: function (e, t, i, n) {
  18390. function s() {
  18391. var t = le(this, T.extend({}, e), r);
  18392. (o || K.get(this, "finish")) && t.stop(!0)
  18393. }
  18394. var o = T.isEmptyObject(e),
  18395. r = T.speed(t, i, n);
  18396. return s.finish = s, o || !1 === r.queue ? this.each(s) : this.queue(r.queue, s)
  18397. },
  18398. stop: function (s, t, o) {
  18399. function r(t) {
  18400. var e = t.stop;
  18401. delete t.stop, e(o)
  18402. }
  18403. return "string" != typeof s && (o = t, t = s, s = void 0), t && this.queue(s || "fx", []), this.each(function () {
  18404. var t = !0,
  18405. e = null != s && s + "queueHooks",
  18406. i = T.timers,
  18407. n = K.get(this);
  18408. if (e) n[e] && n[e].stop && r(n[e]);
  18409. else
  18410. for (e in n) n[e] && n[e].stop && ne.test(e) && r(n[e]);
  18411. for (e = i.length; e--;) i[e].elem !== this || null != s && i[e].queue !== s || (i[e].anim.stop(o), t = !1, i.splice(e, 1));
  18412. !t && o || T.dequeue(this, s)
  18413. })
  18414. },
  18415. finish: function (r) {
  18416. return !1 !== r && (r = r || "fx"), this.each(function () {
  18417. var t, e = K.get(this),
  18418. i = e[r + "queue"],
  18419. n = e[r + "queueHooks"],
  18420. s = T.timers,
  18421. o = i ? i.length : 0;
  18422. for (e.finish = !0, T.queue(this, r, []), n && n.stop && n.stop.call(this, !0), t = s.length; t--;) s[t].elem === this && s[t].queue === r && (s[t].anim.stop(!0), s.splice(t, 1));
  18423. for (t = 0; t < o; t++) i[t] && i[t].finish && i[t].finish.call(this);
  18424. delete e.finish
  18425. })
  18426. }
  18427. }), T.each(["toggle", "show", "hide"], function (t, n) {
  18428. var s = T.fn[n];
  18429. T.fn[n] = function (t, e, i) {
  18430. return null == t || "boolean" == typeof t ? s.apply(this, arguments) : this.animate(re(n, !0), t, e, i)
  18431. }
  18432. }), T.each({
  18433. slideDown: re("show"),
  18434. slideUp: re("hide"),
  18435. slideToggle: re("toggle"),
  18436. fadeIn: {
  18437. opacity: "show"
  18438. },
  18439. fadeOut: {
  18440. opacity: "hide"
  18441. },
  18442. fadeToggle: {
  18443. opacity: "toggle"
  18444. }
  18445. }, function (t, n) {
  18446. T.fn[t] = function (t, e, i) {
  18447. return this.animate(n, t, e, i)
  18448. }
  18449. }), T.timers = [], T.fx.tick = function () {
  18450. var t, e = 0,
  18451. i = T.timers;
  18452. for (Jt = Date.now(); e < i.length; e++)(t = i[e])() || i[e] !== t || i.splice(e--, 1);
  18453. i.length || T.fx.stop(), Jt = void 0
  18454. }, T.fx.timer = function (t) {
  18455. T.timers.push(t), T.fx.start()
  18456. }, T.fx.interval = 13, T.fx.start = function () {
  18457. Zt || (Zt = !0, se())
  18458. }, T.fx.stop = function () {
  18459. Zt = null
  18460. }, T.fx.speeds = {
  18461. slow: 600,
  18462. fast: 200,
  18463. _default: 400
  18464. }, T.fn.delay = function (n, t) {
  18465. return n = T.fx && T.fx.speeds[n] || n, t = t || "fx", this.queue(t, function (t, e) {
  18466. var i = x.setTimeout(t, n);
  18467. e.stop = function () {
  18468. x.clearTimeout(i)
  18469. }
  18470. })
  18471. }, te = C.createElement("input"), ee = C.createElement("select").appendChild(C.createElement("option")), te.type = "checkbox", _.checkOn = "" !== te.value, _.optSelected = ee.selected, (te = C.createElement("input")).value = "t", te.type = "radio", _.radioValue = "t" === te.value;
  18472. var ce, ue = T.expr.attrHandle;
  18473. T.fn.extend({
  18474. attr: function (t, e) {
  18475. return R(this, T.attr, t, e, 1 < arguments.length)
  18476. },
  18477. removeAttr: function (t) {
  18478. return this.each(function () {
  18479. T.removeAttr(this, t)
  18480. })
  18481. }
  18482. }), T.extend({
  18483. attr: function (t, e, i) {
  18484. var n, s, o = t.nodeType;
  18485. if (3 !== o && 8 !== o && 2 !== o) return void 0 === t.getAttribute ? T.prop(t, e, i) : (1 === o && T.isXMLDoc(t) || (s = T.attrHooks[e.toLowerCase()] || (T.expr.match.bool.test(e) ? ce : void 0)), void 0 !== i ? null === i ? void T.removeAttr(t, e) : s && "set" in s && void 0 !== (n = s.set(t, i, e)) ? n : (t.setAttribute(e, i + ""), i) : s && "get" in s && null !== (n = s.get(t, e)) ? n : null == (n = T.find.attr(t, e)) ? void 0 : n)
  18486. },
  18487. attrHooks: {
  18488. type: {
  18489. set: function (t, e) {
  18490. if (!_.radioValue && "radio" === e && S(t, "input")) {
  18491. var i = t.value;
  18492. return t.setAttribute("type", e), i && (t.value = i), e
  18493. }
  18494. }
  18495. }
  18496. },
  18497. removeAttr: function (t, e) {
  18498. var i, n = 0,
  18499. s = e && e.match(N);
  18500. if (s && 1 === t.nodeType)
  18501. for (; i = s[n++];) t.removeAttribute(i)
  18502. }
  18503. }), ce = {
  18504. set: function (t, e, i) {
  18505. return !1 === e ? T.removeAttr(t, i) : t.setAttribute(i, i), i
  18506. }
  18507. }, T.each(T.expr.match.bool.source.match(/\w+/g), function (t, e) {
  18508. var r = ue[e] || T.find.attr;
  18509. ue[e] = function (t, e, i) {
  18510. var n, s, o = e.toLowerCase();
  18511. return i || (s = ue[o], ue[o] = n, n = null != r(t, e, i) ? o : null, ue[o] = s), n
  18512. }
  18513. });
  18514. var he = /^(?:input|select|textarea|button)$/i,
  18515. de = /^(?:a|area)$/i;
  18516. function pe(t) {
  18517. return (t.match(N) || []).join(" ")
  18518. }
  18519. function fe(t) {
  18520. return t.getAttribute && t.getAttribute("class") || ""
  18521. }
  18522. function ge(t) {
  18523. return Array.isArray(t) ? t : "string" == typeof t && t.match(N) || []
  18524. }
  18525. T.fn.extend({
  18526. prop: function (t, e) {
  18527. return R(this, T.prop, t, e, 1 < arguments.length)
  18528. },
  18529. removeProp: function (t) {
  18530. return this.each(function () {
  18531. delete this[T.propFix[t] || t]
  18532. })
  18533. }
  18534. }), T.extend({
  18535. prop: function (t, e, i) {
  18536. var n, s, o = t.nodeType;
  18537. if (3 !== o && 8 !== o && 2 !== o) return 1 === o && T.isXMLDoc(t) || (e = T.propFix[e] || e, s = T.propHooks[e]), void 0 !== i ? s && "set" in s && void 0 !== (n = s.set(t, i, e)) ? n : t[e] = i : s && "get" in s && null !== (n = s.get(t, e)) ? n : t[e]
  18538. },
  18539. propHooks: {
  18540. tabIndex: {
  18541. get: function (t) {
  18542. var e = T.find.attr(t, "tabindex");
  18543. return e ? parseInt(e, 10) : he.test(t.nodeName) || de.test(t.nodeName) && t.href ? 0 : -1
  18544. }
  18545. }
  18546. },
  18547. propFix: {
  18548. for: "htmlFor",
  18549. class: "className"
  18550. }
  18551. }), _.optSelected || (T.propHooks.selected = {
  18552. get: function (t) {
  18553. var e = t.parentNode;
  18554. return e && e.parentNode && e.parentNode.selectedIndex, null
  18555. },
  18556. set: function (t) {
  18557. var e = t.parentNode;
  18558. e && (e.selectedIndex, e.parentNode && e.parentNode.selectedIndex)
  18559. }
  18560. }), T.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function () {
  18561. T.propFix[this.toLowerCase()] = this
  18562. }), T.fn.extend({
  18563. addClass: function (e) {
  18564. var t, i, n, s, o, r, a, l = 0;
  18565. if (y(e)) return this.each(function (t) {
  18566. T(this).addClass(e.call(this, t, fe(this)))
  18567. });
  18568. if ((t = ge(e)).length)
  18569. for (; i = this[l++];)
  18570. if (s = fe(i), n = 1 === i.nodeType && " " + pe(s) + " ") {
  18571. for (r = 0; o = t[r++];) n.indexOf(" " + o + " ") < 0 && (n += o + " ");
  18572. s !== (a = pe(n)) && i.setAttribute("class", a)
  18573. } return this
  18574. },
  18575. removeClass: function (e) {
  18576. var t, i, n, s, o, r, a, l = 0;
  18577. if (y(e)) return this.each(function (t) {
  18578. T(this).removeClass(e.call(this, t, fe(this)))
  18579. });
  18580. if (!arguments.length) return this.attr("class", "");
  18581. if ((t = ge(e)).length)
  18582. for (; i = this[l++];)
  18583. if (s = fe(i), n = 1 === i.nodeType && " " + pe(s) + " ") {
  18584. for (r = 0; o = t[r++];)
  18585. for (; - 1 < n.indexOf(" " + o + " ");) n = n.replace(" " + o + " ", " ");
  18586. s !== (a = pe(n)) && i.setAttribute("class", a)
  18587. } return this
  18588. },
  18589. toggleClass: function (s, e) {
  18590. var o = _typeof(s),
  18591. r = "string" === o || Array.isArray(s);
  18592. return "boolean" == typeof e && r ? e ? this.addClass(s) : this.removeClass(s) : y(s) ? this.each(function (t) {
  18593. T(this).toggleClass(s.call(this, t, fe(this), e), e)
  18594. }) : this.each(function () {
  18595. var t, e, i, n;
  18596. if (r)
  18597. for (e = 0, i = T(this), n = ge(s); t = n[e++];) i.hasClass(t) ? i.removeClass(t) : i.addClass(t);
  18598. else void 0 !== s && "boolean" !== o || ((t = fe(this)) && K.set(this, "__className__", t), this.setAttribute && this.setAttribute("class", t || !1 === s ? "" : K.get(this, "__className__") || ""))
  18599. })
  18600. },
  18601. hasClass: function (t) {
  18602. var e, i, n = 0;
  18603. for (e = " " + t + " "; i = this[n++];)
  18604. if (1 === i.nodeType && -1 < (" " + pe(fe(i)) + " ").indexOf(e)) return !0;
  18605. return !1
  18606. }
  18607. });
  18608. var me = /\r/g;
  18609. T.fn.extend({
  18610. val: function (i) {
  18611. var n, t, s, e = this[0];
  18612. return arguments.length ? (s = y(i), this.each(function (t) {
  18613. var e;
  18614. 1 === this.nodeType && (null == (e = s ? i.call(this, t, T(this).val()) : i) ? e = "" : "number" == typeof e ? e += "" : Array.isArray(e) && (e = T.map(e, function (t) {
  18615. return null == t ? "" : t + ""
  18616. })), (n = T.valHooks[this.type] || T.valHooks[this.nodeName.toLowerCase()]) && "set" in n && void 0 !== n.set(this, e, "value") || (this.value = e))
  18617. })) : e ? (n = T.valHooks[e.type] || T.valHooks[e.nodeName.toLowerCase()]) && "get" in n && void 0 !== (t = n.get(e, "value")) ? t : "string" == typeof (t = e.value) ? t.replace(me, "") : null == t ? "" : t : void 0
  18618. }
  18619. }), T.extend({
  18620. valHooks: {
  18621. option: {
  18622. get: function (t) {
  18623. var e = T.find.attr(t, "value");
  18624. return null != e ? e : pe(T.text(t))
  18625. }
  18626. },
  18627. select: {
  18628. get: function (t) {
  18629. var e, i, n, s = t.options,
  18630. o = t.selectedIndex,
  18631. r = "select-one" === t.type,
  18632. a = r ? null : [],
  18633. l = r ? o + 1 : s.length;
  18634. for (n = o < 0 ? l : r ? o : 0; n < l; n++)
  18635. if (((i = s[n]).selected || n === o) && !i.disabled && (!i.parentNode.disabled || !S(i.parentNode, "optgroup"))) {
  18636. if (e = T(i).val(), r) return e;
  18637. a.push(e)
  18638. } return a
  18639. },
  18640. set: function (t, e) {
  18641. for (var i, n, s = t.options, o = T.makeArray(e), r = s.length; r--;)((n = s[r]).selected = -1 < T.inArray(T.valHooks.option.get(n), o)) && (i = !0);
  18642. return i || (t.selectedIndex = -1), o
  18643. }
  18644. }
  18645. }
  18646. }), T.each(["radio", "checkbox"], function () {
  18647. T.valHooks[this] = {
  18648. set: function (t, e) {
  18649. if (Array.isArray(e)) return t.checked = -1 < T.inArray(T(t).val(), e)
  18650. }
  18651. }, _.checkOn || (T.valHooks[this].get = function (t) {
  18652. return null === t.getAttribute("value") ? "on" : t.value
  18653. })
  18654. }), _.focusin = "onfocusin" in x;
  18655. function ve(t) {
  18656. t.stopPropagation()
  18657. }
  18658. var _e = /^(?:focusinfocus|focusoutblur)$/;
  18659. T.extend(T.event, {
  18660. trigger: function (t, e, i, n) {
  18661. var s, o, r, a, l, c, u, h, d = [i || C],
  18662. p = v.call(t, "type") ? t.type : t,
  18663. f = v.call(t, "namespace") ? t.namespace.split(".") : [];
  18664. if (o = h = r = i = i || C, 3 !== i.nodeType && 8 !== i.nodeType && !_e.test(p + T.event.triggered) && (-1 < p.indexOf(".") && (p = (f = p.split(".")).shift(), f.sort()), l = p.indexOf(":") < 0 && "on" + p, (t = t[T.expando] ? t : new T.Event(p, "object" == _typeof(t) && t)).isTrigger = n ? 2 : 3, t.namespace = f.join("."), t.rnamespace = t.namespace ? new RegExp("(^|\\.)" + f.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, t.result = void 0, t.target || (t.target = i), e = null == e ? [t] : T.makeArray(e, [t]), u = T.event.special[p] || {}, n || !u.trigger || !1 !== u.trigger.apply(i, e))) {
  18665. if (!n && !u.noBubble && !g(i)) {
  18666. for (a = u.delegateType || p, _e.test(a + p) || (o = o.parentNode); o; o = o.parentNode) d.push(o), r = o;
  18667. r === (i.ownerDocument || C) && d.push(r.defaultView || r.parentWindow || x)
  18668. }
  18669. for (s = 0;
  18670. (o = d[s++]) && !t.isPropagationStopped();) h = o, t.type = 1 < s ? a : u.bindType || p, (c = (K.get(o, "events") || Object.create(null))[t.type] && K.get(o, "handle")) && c.apply(o, e), (c = l && o[l]) && c.apply && Y(o) && (t.result = c.apply(o, e), !1 === t.result && t.preventDefault());
  18671. return t.type = p, n || t.isDefaultPrevented() || u._default && !1 !== u._default.apply(d.pop(), e) || !Y(i) || l && y(i[p]) && !g(i) && ((r = i[l]) && (i[l] = null), T.event.triggered = p, t.isPropagationStopped() && h.addEventListener(p, ve), i[p](), t.isPropagationStopped() && h.removeEventListener(p, ve), T.event.triggered = void 0, r && (i[l] = r)), t.result
  18672. }
  18673. },
  18674. simulate: function (t, e, i) {
  18675. var n = T.extend(new T.Event, i, {
  18676. type: t,
  18677. isSimulated: !0
  18678. });
  18679. T.event.trigger(n, null, e)
  18680. }
  18681. }), T.fn.extend({
  18682. trigger: function (t, e) {
  18683. return this.each(function () {
  18684. T.event.trigger(t, e, this)
  18685. })
  18686. },
  18687. triggerHandler: function (t, e) {
  18688. var i = this[0];
  18689. if (i) return T.event.trigger(t, e, i, !0)
  18690. }
  18691. }), _.focusin || T.each({
  18692. focus: "focusin",
  18693. blur: "focusout"
  18694. }, function (i, n) {
  18695. function s(t) {
  18696. T.event.simulate(n, t.target, T.event.fix(t))
  18697. }
  18698. T.event.special[n] = {
  18699. setup: function () {
  18700. var t = this.ownerDocument || this.document || this,
  18701. e = K.access(t, n);
  18702. e || t.addEventListener(i, s, !0), K.access(t, n, (e || 0) + 1)
  18703. },
  18704. teardown: function () {
  18705. var t = this.ownerDocument || this.document || this,
  18706. e = K.access(t, n) - 1;
  18707. e ? K.access(t, n, e) : (t.removeEventListener(i, s, !0), K.remove(t, n))
  18708. }
  18709. }
  18710. });
  18711. var ye = x.location,
  18712. be = {
  18713. guid: Date.now()
  18714. },
  18715. we = /\?/;
  18716. T.parseXML = function (t) {
  18717. var e, i;
  18718. if (!t || "string" != typeof t) return null;
  18719. try {
  18720. e = (new x.DOMParser).parseFromString(t, "text/xml")
  18721. } catch (t) {}
  18722. return i = e && e.getElementsByTagName("parsererror")[0], e && !i || T.error("Invalid XML: " + (i ? T.map(i.childNodes, function (t) {
  18723. return t.textContent
  18724. }).join("\n") : t)), e
  18725. };
  18726. var ke = /\[\]$/,
  18727. xe = /\r?\n/g,
  18728. Ce = /^(?:submit|button|image|reset|file)$/i,
  18729. Te = /^(?:input|select|textarea|keygen)/i;
  18730. function Se(i, t, n, s) {
  18731. var e;
  18732. if (Array.isArray(t)) T.each(t, function (t, e) {
  18733. n || ke.test(i) ? s(i, e) : Se(i + "[" + ("object" == _typeof(e) && null != e ? t : "") + "]", e, n, s)
  18734. });
  18735. else if (n || "object" !== w(t)) s(i, t);
  18736. else
  18737. for (e in t) Se(i + "[" + e + "]", t[e], n, s)
  18738. }
  18739. T.param = function (t, e) {
  18740. function i(t, e) {
  18741. var i = y(e) ? e() : e;
  18742. s[s.length] = encodeURIComponent(t) + "=" + encodeURIComponent(null == i ? "" : i)
  18743. }
  18744. var n, s = [];
  18745. if (null == t) return "";
  18746. if (Array.isArray(t) || t.jquery && !T.isPlainObject(t)) T.each(t, function () {
  18747. i(this.name, this.value)
  18748. });
  18749. else
  18750. for (n in t) Se(n, t[n], e, i);
  18751. return s.join("&")
  18752. }, T.fn.extend({
  18753. serialize: function () {
  18754. return T.param(this.serializeArray())
  18755. },
  18756. serializeArray: function () {
  18757. return this.map(function () {
  18758. var t = T.prop(this, "elements");
  18759. return t ? T.makeArray(t) : this
  18760. }).filter(function () {
  18761. var t = this.type;
  18762. return this.name && !T(this).is(":disabled") && Te.test(this.nodeName) && !Ce.test(t) && (this.checked || !ht.test(t))
  18763. }).map(function (t, e) {
  18764. var i = T(this).val();
  18765. return null == i ? null : Array.isArray(i) ? T.map(i, function (t) {
  18766. return {
  18767. name: e.name,
  18768. value: t.replace(xe, "\r\n")
  18769. }
  18770. }) : {
  18771. name: e.name,
  18772. value: i.replace(xe, "\r\n")
  18773. }
  18774. }).get()
  18775. }
  18776. });
  18777. var De = /%20/g,
  18778. Ae = /#.*$/,
  18779. Ee = /([?&])_=[^&]*/,
  18780. Pe = /^(.*?):[ \t]*([^\r\n]*)$/gm,
  18781. Ie = /^(?:GET|HEAD)$/,
  18782. Oe = /^\/\//,
  18783. Me = {},
  18784. Ne = {},
  18785. Le = "*/".concat("*"),
  18786. He = C.createElement("a");
  18787. function je(o) {
  18788. return function (t, e) {
  18789. "string" != typeof t && (e = t, t = "*");
  18790. var i, n = 0,
  18791. s = t.toLowerCase().match(N) || [];
  18792. if (y(e))
  18793. for (; i = s[n++];) "+" === i[0] ? (i = i.slice(1) || "*", (o[i] = o[i] || []).unshift(e)) : (o[i] = o[i] || []).push(e)
  18794. }
  18795. }
  18796. function ze(e, s, o, r) {
  18797. var a = {},
  18798. l = e === Ne;
  18799. function c(t) {
  18800. var n;
  18801. return a[t] = !0, T.each(e[t] || [], function (t, e) {
  18802. var i = e(s, o, r);
  18803. return "string" != typeof i || l || a[i] ? l ? !(n = i) : void 0 : (s.dataTypes.unshift(i), c(i), !1)
  18804. }), n
  18805. }
  18806. return c(s.dataTypes[0]) || !a["*"] && c("*")
  18807. }
  18808. function We(t, e) {
  18809. var i, n, s = T.ajaxSettings.flatOptions || {};
  18810. for (i in e) void 0 !== e[i] && ((s[i] ? t : n || (n = {}))[i] = e[i]);
  18811. return n && T.extend(!0, t, n), t
  18812. }
  18813. He.href = ye.href, T.extend({
  18814. active: 0,
  18815. lastModified: {},
  18816. etag: {},
  18817. ajaxSettings: {
  18818. url: ye.href,
  18819. type: "GET",
  18820. isLocal: /^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ye.protocol),
  18821. global: !0,
  18822. processData: !0,
  18823. async: !0,
  18824. contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  18825. accepts: {
  18826. "*": Le,
  18827. text: "text/plain",
  18828. html: "text/html",
  18829. xml: "application/xml, text/xml",
  18830. json: "application/json, text/javascript"
  18831. },
  18832. contents: {
  18833. xml: /\bxml\b/,
  18834. html: /\bhtml/,
  18835. json: /\bjson\b/
  18836. },
  18837. responseFields: {
  18838. xml: "responseXML",
  18839. text: "responseText",
  18840. json: "responseJSON"
  18841. },
  18842. converters: {
  18843. "* text": String,
  18844. "text html": !0,
  18845. "text json": JSON.parse,
  18846. "text xml": T.parseXML
  18847. },
  18848. flatOptions: {
  18849. url: !0,
  18850. context: !0
  18851. }
  18852. },
  18853. ajaxSetup: function (t, e) {
  18854. return e ? We(We(t, T.ajaxSettings), e) : We(T.ajaxSettings, t)
  18855. },
  18856. ajaxPrefilter: je(Me),
  18857. ajaxTransport: je(Ne),
  18858. ajax: function (t, e) {
  18859. "object" == _typeof(t) && (e = t, t = void 0), e = e || {};
  18860. var u, h, d, i, p, n, f, g, s, o, m = T.ajaxSetup({}, e),
  18861. v = m.context || m,
  18862. _ = m.context && (v.nodeType || v.jquery) ? T(v) : T.event,
  18863. y = T.Deferred(),
  18864. b = T.Callbacks("once memory"),
  18865. w = m.statusCode || {},
  18866. r = {},
  18867. a = {},
  18868. l = "canceled",
  18869. k = {
  18870. readyState: 0,
  18871. getResponseHeader: function (t) {
  18872. var e;
  18873. if (f) {
  18874. if (!i)
  18875. for (i = {}; e = Pe.exec(d);) i[e[1].toLowerCase() + " "] = (i[e[1].toLowerCase() + " "] || []).concat(e[2]);
  18876. e = i[t.toLowerCase() + " "]
  18877. }
  18878. return null == e ? null : e.join(", ")
  18879. },
  18880. getAllResponseHeaders: function () {
  18881. return f ? d : null
  18882. },
  18883. setRequestHeader: function (t, e) {
  18884. return null == f && (t = a[t.toLowerCase()] = a[t.toLowerCase()] || t, r[t] = e), this
  18885. },
  18886. overrideMimeType: function (t) {
  18887. return null == f && (m.mimeType = t), this
  18888. },
  18889. statusCode: function (t) {
  18890. var e;
  18891. if (t)
  18892. if (f) k.always(t[k.status]);
  18893. else
  18894. for (e in t) w[e] = [w[e], t[e]];
  18895. return this
  18896. },
  18897. abort: function (t) {
  18898. var e = t || l;
  18899. return u && u.abort(e), c(0, e), this
  18900. }
  18901. };
  18902. if (y.promise(k), m.url = ((t || m.url || ye.href) + "").replace(Oe, ye.protocol + "//"), m.type = e.method || e.type || m.method || m.type, m.dataTypes = (m.dataType || "*").toLowerCase().match(N) || [""], null == m.crossDomain) {
  18903. n = C.createElement("a");
  18904. try {
  18905. n.href = m.url, n.href = n.href, m.crossDomain = He.protocol + "//" + He.host != n.protocol + "//" + n.host
  18906. } catch (t) {
  18907. m.crossDomain = !0
  18908. }
  18909. }
  18910. if (m.data && m.processData && "string" != typeof m.data && (m.data = T.param(m.data, m.traditional)), ze(Me, m, e, k), f) return k;
  18911. for (s in (g = T.event && m.global) && 0 == T.active++ && T.event.trigger("ajaxStart"), m.type = m.type.toUpperCase(), m.hasContent = !Ie.test(m.type), h = m.url.replace(Ae, ""), m.hasContent ? m.data && m.processData && 0 === (m.contentType || "").indexOf("application/x-www-form-urlencoded") && (m.data = m.data.replace(De, "+")) : (o = m.url.slice(h.length), m.data && (m.processData || "string" == typeof m.data) && (h += (we.test(h) ? "&" : "?") + m.data, delete m.data), !1 === m.cache && (h = h.replace(Ee, "$1"), o = (we.test(h) ? "&" : "?") + "_=" + be.guid++ + o), m.url = h + o), m.ifModified && (T.lastModified[h] && k.setRequestHeader("If-Modified-Since", T.lastModified[h]), T.etag[h] && k.setRequestHeader("If-None-Match", T.etag[h])), (m.data && m.hasContent && !1 !== m.contentType || e.contentType) && k.setRequestHeader("Content-Type", m.contentType), k.setRequestHeader("Accept", m.dataTypes[0] && m.accepts[m.dataTypes[0]] ? m.accepts[m.dataTypes[0]] + ("*" !== m.dataTypes[0] ? ", " + Le + "; q=0.01" : "") : m.accepts["*"]), m.headers) k.setRequestHeader(s, m.headers[s]);
  18912. if (m.beforeSend && (!1 === m.beforeSend.call(v, k, m) || f)) return k.abort();
  18913. if (l = "abort", b.add(m.complete), k.done(m.success), k.fail(m.error), u = ze(Ne, m, e, k)) {
  18914. if (k.readyState = 1, g && _.trigger("ajaxSend", [k, m]), f) return k;
  18915. m.async && 0 < m.timeout && (p = x.setTimeout(function () {
  18916. k.abort("timeout")
  18917. }, m.timeout));
  18918. try {
  18919. f = !1, u.send(r, c)
  18920. } catch (t) {
  18921. if (f) throw t;
  18922. c(-1, t)
  18923. }
  18924. } else c(-1, "No Transport");
  18925. function c(t, e, i, n) {
  18926. var s, o, r, a, l, c = e;
  18927. f || (f = !0, p && x.clearTimeout(p), u = void 0, d = n || "", k.readyState = 0 < t ? 4 : 0, s = 200 <= t && t < 300 || 304 === t, i && (a = function (t, e, i) {
  18928. for (var n, s, o, r, a = t.contents, l = t.dataTypes;
  18929. "*" === l[0];) l.shift(), void 0 === n && (n = t.mimeType || e.getResponseHeader("Content-Type"));
  18930. if (n)
  18931. for (s in a)
  18932. if (a[s] && a[s].test(n)) {
  18933. l.unshift(s);
  18934. break
  18935. } if (l[0] in i) o = l[0];
  18936. else {
  18937. for (s in i) {
  18938. if (!l[0] || t.converters[s + " " + l[0]]) {
  18939. o = s;
  18940. break
  18941. }
  18942. r || (r = s)
  18943. }
  18944. o = o || r
  18945. }
  18946. if (o) return o !== l[0] && l.unshift(o), i[o]
  18947. }(m, k, i)), !s && -1 < T.inArray("script", m.dataTypes) && T.inArray("json", m.dataTypes) < 0 && (m.converters["text script"] = function () {}), a = function (t, e, i, n) {
  18948. var s, o, r, a, l, c = {},
  18949. u = t.dataTypes.slice();
  18950. if (u[1])
  18951. for (r in t.converters) c[r.toLowerCase()] = t.converters[r];
  18952. for (o = u.shift(); o;)
  18953. if (t.responseFields[o] && (i[t.responseFields[o]] = e), !l && n && t.dataFilter && (e = t.dataFilter(e, t.dataType)), l = o, o = u.shift())
  18954. if ("*" === o) o = l;
  18955. else if ("*" !== l && l !== o) {
  18956. if (!(r = c[l + " " + o] || c["* " + o]))
  18957. for (s in c)
  18958. if ((a = s.split(" "))[1] === o && (r = c[l + " " + a[0]] || c["* " + a[0]])) {
  18959. !0 === r ? r = c[s] : !0 !== c[s] && (o = a[0], u.unshift(a[1]));
  18960. break
  18961. } if (!0 !== r)
  18962. if (r && t.throws) e = r(e);
  18963. else try {
  18964. e = r(e)
  18965. } catch (t) {
  18966. return {
  18967. state: "parsererror",
  18968. error: r ? t : "No conversion from " + l + " to " + o
  18969. }
  18970. }
  18971. }
  18972. return {
  18973. state: "success",
  18974. data: e
  18975. }
  18976. }(m, a, k, s), s ? (m.ifModified && ((l = k.getResponseHeader("Last-Modified")) && (T.lastModified[h] = l), (l = k.getResponseHeader("etag")) && (T.etag[h] = l)), 204 === t || "HEAD" === m.type ? c = "nocontent" : 304 === t ? c = "notmodified" : (c = a.state, o = a.data, s = !(r = a.error))) : (r = c, !t && c || (c = "error", t < 0 && (t = 0))), k.status = t, k.statusText = (e || c) + "", s ? y.resolveWith(v, [o, c, k]) : y.rejectWith(v, [k, c, r]), k.statusCode(w), w = void 0, g && _.trigger(s ? "ajaxSuccess" : "ajaxError", [k, m, s ? o : r]), b.fireWith(v, [k, c]), g && (_.trigger("ajaxComplete", [k, m]), --T.active || T.event.trigger("ajaxStop")))
  18977. }
  18978. return k
  18979. },
  18980. getJSON: function (t, e, i) {
  18981. return T.get(t, e, i, "json")
  18982. },
  18983. getScript: function (t, e) {
  18984. return T.get(t, void 0, e, "script")
  18985. }
  18986. }), T.each(["get", "post"], function (t, s) {
  18987. T[s] = function (t, e, i, n) {
  18988. return y(e) && (n = n || i, i = e, e = void 0), T.ajax(T.extend({
  18989. url: t,
  18990. type: s,
  18991. dataType: n,
  18992. data: e,
  18993. success: i
  18994. }, T.isPlainObject(t) && t))
  18995. }
  18996. }), T.ajaxPrefilter(function (t) {
  18997. var e;
  18998. for (e in t.headers) "content-type" === e.toLowerCase() && (t.contentType = t.headers[e] || "")
  18999. }), T._evalUrl = function (t, e, i) {
  19000. return T.ajax({
  19001. url: t,
  19002. type: "GET",
  19003. dataType: "script",
  19004. cache: !0,
  19005. async: !1,
  19006. global: !1,
  19007. converters: {
  19008. "text script": function () {}
  19009. },
  19010. dataFilter: function (t) {
  19011. T.globalEval(t, e, i)
  19012. }
  19013. })
  19014. }, T.fn.extend({
  19015. wrapAll: function (t) {
  19016. var e;
  19017. return this[0] && (y(t) && (t = t.call(this[0])), e = T(t, this[0].ownerDocument).eq(0).clone(!0), this[0].parentNode && e.insertBefore(this[0]), e.map(function () {
  19018. for (var t = this; t.firstElementChild;) t = t.firstElementChild;
  19019. return t
  19020. }).append(this)), this
  19021. },
  19022. wrapInner: function (i) {
  19023. return y(i) ? this.each(function (t) {
  19024. T(this).wrapInner(i.call(this, t))
  19025. }) : this.each(function () {
  19026. var t = T(this),
  19027. e = t.contents();
  19028. e.length ? e.wrapAll(i) : t.append(i)
  19029. })
  19030. },
  19031. wrap: function (e) {
  19032. var i = y(e);
  19033. return this.each(function (t) {
  19034. T(this).wrapAll(i ? e.call(this, t) : e)
  19035. })
  19036. },
  19037. unwrap: function (t) {
  19038. return this.parent(t).not("body").each(function () {
  19039. T(this).replaceWith(this.childNodes)
  19040. }), this
  19041. }
  19042. }), T.expr.pseudos.hidden = function (t) {
  19043. return !T.expr.pseudos.visible(t)
  19044. }, T.expr.pseudos.visible = function (t) {
  19045. return !!(t.offsetWidth || t.offsetHeight || t.getClientRects().length)
  19046. }, T.ajaxSettings.xhr = function () {
  19047. try {
  19048. return new x.XMLHttpRequest
  19049. } catch (t) {}
  19050. };
  19051. var $e = {
  19052. 0: 200,
  19053. 1223: 204
  19054. },
  19055. Re = T.ajaxSettings.xhr();
  19056. _.cors = !!Re && "withCredentials" in Re, _.ajax = Re = !!Re, T.ajaxTransport(function (s) {
  19057. var o, r;
  19058. if (_.cors || Re && !s.crossDomain) return {
  19059. send: function (t, e) {
  19060. var i, n = s.xhr();
  19061. if (n.open(s.type, s.url, s.async, s.username, s.password), s.xhrFields)
  19062. for (i in s.xhrFields) n[i] = s.xhrFields[i];
  19063. for (i in s.mimeType && n.overrideMimeType && n.overrideMimeType(s.mimeType), s.crossDomain || t["X-Requested-With"] || (t["X-Requested-With"] = "XMLHttpRequest"), t) n.setRequestHeader(i, t[i]);
  19064. o = function (t) {
  19065. return function () {
  19066. o && (o = r = n.onload = n.onerror = n.onabort = n.ontimeout = n.onreadystatechange = null, "abort" === t ? n.abort() : "error" === t ? "number" != typeof n.status ? e(0, "error") : e(n.status, n.statusText) : e($e[n.status] || n.status, n.statusText, "text" !== (n.responseType || "text") || "string" != typeof n.responseText ? {
  19067. binary: n.response
  19068. } : {
  19069. text: n.responseText
  19070. }, n.getAllResponseHeaders()))
  19071. }
  19072. }, n.onload = o(), r = n.onerror = n.ontimeout = o("error"), void 0 !== n.onabort ? n.onabort = r : n.onreadystatechange = function () {
  19073. 4 === n.readyState && x.setTimeout(function () {
  19074. o && r()
  19075. })
  19076. }, o = o("abort");
  19077. try {
  19078. n.send(s.hasContent && s.data || null)
  19079. } catch (t) {
  19080. if (o) throw t
  19081. }
  19082. },
  19083. abort: function () {
  19084. o && o()
  19085. }
  19086. }
  19087. }), T.ajaxPrefilter(function (t) {
  19088. t.crossDomain && (t.contents.script = !1)
  19089. }), T.ajaxSetup({
  19090. accepts: {
  19091. script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
  19092. },
  19093. contents: {
  19094. script: /\b(?:java|ecma)script\b/
  19095. },
  19096. converters: {
  19097. "text script": function (t) {
  19098. return T.globalEval(t), t
  19099. }
  19100. }
  19101. }), T.ajaxPrefilter("script", function (t) {
  19102. void 0 === t.cache && (t.cache = !1), t.crossDomain && (t.type = "GET")
  19103. }), T.ajaxTransport("script", function (i) {
  19104. var n, s;
  19105. if (i.crossDomain || i.scriptAttrs) return {
  19106. send: function (t, e) {
  19107. n = T("<script>").attr(i.scriptAttrs || {}).prop({
  19108. charset: i.scriptCharset,
  19109. src: i.url
  19110. }).on("load error", s = function (t) {
  19111. n.remove(), s = null, t && e("error" === t.type ? 404 : 200, t.type)
  19112. }), C.head.appendChild(n[0])
  19113. },
  19114. abort: function () {
  19115. s && s()
  19116. }
  19117. }
  19118. });
  19119. var Fe, qe = [],
  19120. Be = /(=)\?(?=&|$)|\?\?/;
  19121. T.ajaxSetup({
  19122. jsonp: "callback",
  19123. jsonpCallback: function () {
  19124. var t = qe.pop() || T.expando + "_" + be.guid++;
  19125. return this[t] = !0, t
  19126. }
  19127. }), T.ajaxPrefilter("json jsonp", function (t, e, i) {
  19128. var n, s, o, r = !1 !== t.jsonp && (Be.test(t.url) ? "url" : "string" == typeof t.data && 0 === (t.contentType || "").indexOf("application/x-www-form-urlencoded") && Be.test(t.data) && "data");
  19129. if (r || "jsonp" === t.dataTypes[0]) return n = t.jsonpCallback = y(t.jsonpCallback) ? t.jsonpCallback() : t.jsonpCallback, r ? t[r] = t[r].replace(Be, "$1" + n) : !1 !== t.jsonp && (t.url += (we.test(t.url) ? "&" : "?") + t.jsonp + "=" + n), t.converters["script json"] = function () {
  19130. return o || T.error(n + " was not called"), o[0]
  19131. }, t.dataTypes[0] = "json", s = x[n], x[n] = function () {
  19132. o = arguments
  19133. }, i.always(function () {
  19134. void 0 === s ? T(x).removeProp(n) : x[n] = s, t[n] && (t.jsonpCallback = e.jsonpCallback, qe.push(n)), o && y(s) && s(o[0]), o = s = void 0
  19135. }), "script"
  19136. }), _.createHTMLDocument = ((Fe = C.implementation.createHTMLDocument("").body).innerHTML = "<form></form><form></form>", 2 === Fe.childNodes.length), T.parseHTML = function (t, e, i) {
  19137. return "string" != typeof t ? [] : ("boolean" == typeof e && (i = e, e = !1), e || (_.createHTMLDocument ? ((n = (e = C.implementation.createHTMLDocument("")).createElement("base")).href = C.location.href, e.head.appendChild(n)) : e = C), o = !i && [], (s = D.exec(t)) ? [e.createElement(s[1])] : (s = _t([t], e, o), o && o.length && T(o).remove(), T.merge([], s.childNodes)));
  19138. var n, s, o
  19139. }, T.fn.load = function (t, e, i) {
  19140. var n, s, o, r = this,
  19141. a = t.indexOf(" ");
  19142. return -1 < a && (n = pe(t.slice(a)), t = t.slice(0, a)), y(e) ? (i = e, e = void 0) : e && "object" == _typeof(e) && (s = "POST"), 0 < r.length && T.ajax({
  19143. url: t,
  19144. type: s || "GET",
  19145. dataType: "html",
  19146. data: e
  19147. }).done(function (t) {
  19148. o = arguments, r.html(n ? T("<div>").append(T.parseHTML(t)).find(n) : t)
  19149. }).always(i && function (t, e) {
  19150. r.each(function () {
  19151. i.apply(this, o || [t.responseText, e, t])
  19152. })
  19153. }), this
  19154. }, T.expr.pseudos.animated = function (e) {
  19155. return T.grep(T.timers, function (t) {
  19156. return e === t.elem
  19157. }).length
  19158. }, T.offset = {
  19159. setOffset: function (t, e, i) {
  19160. var n, s, o, r, a, l, c = T.css(t, "position"),
  19161. u = T(t),
  19162. h = {};
  19163. "static" === c && (t.style.position = "relative"), a = u.offset(), o = T.css(t, "top"), l = T.css(t, "left"), s = ("absolute" === c || "fixed" === c) && -1 < (o + l).indexOf("auto") ? (r = (n = u.position()).top, n.left) : (r = parseFloat(o) || 0, parseFloat(l) || 0), y(e) && (e = e.call(t, i, T.extend({}, a))), null != e.top && (h.top = e.top - a.top + r), null != e.left && (h.left = e.left - a.left + s), "using" in e ? e.using.call(t, h) : u.css(h)
  19164. }
  19165. }, T.fn.extend({
  19166. offset: function (e) {
  19167. if (arguments.length) return void 0 === e ? this : this.each(function (t) {
  19168. T.offset.setOffset(this, e, t)
  19169. });
  19170. var t, i, n = this[0];
  19171. return n ? n.getClientRects().length ? (t = n.getBoundingClientRect(), i = n.ownerDocument.defaultView, {
  19172. top: t.top + i.pageYOffset,
  19173. left: t.left + i.pageXOffset
  19174. }) : {
  19175. top: 0,
  19176. left: 0
  19177. } : void 0
  19178. },
  19179. position: function () {
  19180. if (this[0]) {
  19181. var t, e, i, n = this[0],
  19182. s = {
  19183. top: 0,
  19184. left: 0
  19185. };
  19186. if ("fixed" === T.css(n, "position")) e = n.getBoundingClientRect();
  19187. else {
  19188. for (e = this.offset(), i = n.ownerDocument, t = n.offsetParent || i.documentElement; t && (t === i.body || t === i.documentElement) && "static" === T.css(t, "position");) t = t.parentNode;
  19189. t && t !== n && 1 === t.nodeType && ((s = T(t).offset()).top += T.css(t, "borderTopWidth", !0), s.left += T.css(t, "borderLeftWidth", !0))
  19190. }
  19191. return {
  19192. top: e.top - s.top - T.css(n, "marginTop", !0),
  19193. left: e.left - s.left - T.css(n, "marginLeft", !0)
  19194. }
  19195. }
  19196. },
  19197. offsetParent: function () {
  19198. return this.map(function () {
  19199. for (var t = this.offsetParent; t && "static" === T.css(t, "position");) t = t.offsetParent;
  19200. return t || it
  19201. })
  19202. }
  19203. }), T.each({
  19204. scrollLeft: "pageXOffset",
  19205. scrollTop: "pageYOffset"
  19206. }, function (e, s) {
  19207. var o = "pageYOffset" === s;
  19208. T.fn[e] = function (t) {
  19209. return R(this, function (t, e, i) {
  19210. var n;
  19211. if (g(t) ? n = t : 9 === t.nodeType && (n = t.defaultView), void 0 === i) return n ? n[s] : t[e];
  19212. n ? n.scrollTo(o ? n.pageXOffset : i, o ? i : n.pageYOffset) : t[e] = i
  19213. }, e, t, arguments.length)
  19214. }
  19215. }), T.each(["top", "left"], function (t, i) {
  19216. T.cssHooks[i] = Wt(_.pixelPosition, function (t, e) {
  19217. if (e) return e = zt(t, i), Lt.test(e) ? T(t).position()[i] + "px" : e
  19218. })
  19219. }), T.each({
  19220. Height: "height",
  19221. Width: "width"
  19222. }, function (r, a) {
  19223. T.each({
  19224. padding: "inner" + r,
  19225. content: a,
  19226. "": "outer" + r
  19227. }, function (n, o) {
  19228. T.fn[o] = function (t, e) {
  19229. var i = arguments.length && (n || "boolean" != typeof t),
  19230. s = n || (!0 === t || !0 === e ? "margin" : "border");
  19231. return R(this, function (t, e, i) {
  19232. var n;
  19233. return g(t) ? 0 === o.indexOf("outer") ? t["inner" + r] : t.document.documentElement["client" + r] : 9 === t.nodeType ? (n = t.documentElement, Math.max(t.body["scroll" + r], n["scroll" + r], t.body["offset" + r], n["offset" + r], n["client" + r])) : void 0 === i ? T.css(t, e, s) : T.style(t, e, i, s)
  19234. }, a, i ? t : void 0, i)
  19235. }
  19236. })
  19237. }), T.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function (t, e) {
  19238. T.fn[e] = function (t) {
  19239. return this.on(e, t)
  19240. }
  19241. }), T.fn.extend({
  19242. bind: function (t, e, i) {
  19243. return this.on(t, null, e, i)
  19244. },
  19245. unbind: function (t, e) {
  19246. return this.off(t, null, e)
  19247. },
  19248. delegate: function (t, e, i, n) {
  19249. return this.on(e, t, i, n)
  19250. },
  19251. undelegate: function (t, e, i) {
  19252. return 1 === arguments.length ? this.off(t, "**") : this.off(e, t || "**", i)
  19253. },
  19254. hover: function (t, e) {
  19255. return this.mouseenter(t).mouseleave(e || t)
  19256. }
  19257. }), T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "), function (t, i) {
  19258. T.fn[i] = function (t, e) {
  19259. return 0 < arguments.length ? this.on(i, null, t, e) : this.trigger(i)
  19260. }
  19261. });
  19262. var Ue = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
  19263. T.proxy = function (t, e) {
  19264. var i, n, s;
  19265. if ("string" == typeof e && (i = t[e], e = t, t = i), y(t)) return n = a.call(arguments, 2), (s = function () {
  19266. return t.apply(e || this, n.concat(a.call(arguments)))
  19267. }).guid = t.guid = t.guid || T.guid++, s
  19268. }, T.holdReady = function (t) {
  19269. t ? T.readyWait++ : T.ready(!0)
  19270. }, T.isArray = Array.isArray, T.parseJSON = JSON.parse, T.nodeName = S, T.isFunction = y, T.isWindow = g, T.camelCase = U, T.type = w, T.now = Date.now, T.isNumeric = function (t) {
  19271. var e = T.type(t);
  19272. return ("number" === e || "string" === e) && !isNaN(t - parseFloat(t))
  19273. }, T.trim = function (t) {
  19274. return null == t ? "" : (t + "").replace(Ue, "")
  19275. }, "function" == typeof define && define.amd && define("jquery", [], function () {
  19276. return T
  19277. });
  19278. var Ye = x.jQuery,
  19279. Ve = x.$;
  19280. return T.noConflict = function (t) {
  19281. return x.$ === T && (x.$ = Ve), t && x.jQuery === T && (x.jQuery = Ye), T
  19282. }, void 0 === t && (x.jQuery = x.$ = T), T
  19283. }),
  19284. function (o, h, d) {
  19285. function p(t, e) {
  19286. return _typeof(t) === e
  19287. }
  19288. function r(t) {
  19289. var e = b.className,
  19290. i = _._config.classPrefix || "";
  19291. if (w && (e = e.baseVal), _._config.enableJSClass) {
  19292. var n = new RegExp("(^|\\s)" + i + "no-js(\\s|$)");
  19293. e = e.replace(n, "$1" + i + "js$2")
  19294. }
  19295. _._config.enableClasses && (0 < t.length && (e += " " + i + t.join(" " + i)), w ? b.className.baseVal = e : b.className = e)
  19296. }
  19297. function a(t, e) {
  19298. if ("object" == _typeof(t))
  19299. for (var i in t) x(t, i) && a(i, t[i]);
  19300. else {
  19301. var n = (t = t.toLowerCase()).split("."),
  19302. s = _[n[0]];
  19303. if (2 === n.length && (s = s[n[1]]), void 0 !== s) return _;
  19304. e = "function" == typeof e ? e() : e, 1 === n.length ? _[n[0]] = e : (!_[n[0]] || _[n[0]] instanceof Boolean || (_[n[0]] = new Boolean(_[n[0]])), _[n[0]][n[1]] = e), r([(e && !1 !== e ? "" : "no-") + n.join("-")]), _._trigger(t, e)
  19305. }
  19306. return _
  19307. }
  19308. function f() {
  19309. return "function" != typeof h.createElement ? h.createElement(arguments[0]) : w ? h.createElementNS.call(h, "http://www.w3.org/2000/svg", arguments[0]) : h.createElement.apply(h, arguments)
  19310. }
  19311. function s(t, e, i, n) {
  19312. var s, o, r, a, l = "modernizr",
  19313. c = f("div"),
  19314. u = function () {
  19315. var t = h.body;
  19316. return t || ((t = f(w ? "svg" : "body")).fake = !0), t
  19317. }();
  19318. if (parseInt(i, 10))
  19319. for (; i--;)(r = f("div")).id = n ? n[i] : l + (i + 1), c.appendChild(r);
  19320. return (s = f("style")).type = "text/css", s.id = "s" + l, (u.fake ? u : c).appendChild(s), u.appendChild(c), s.styleSheet ? s.styleSheet.cssText = t : s.appendChild(h.createTextNode(t)), c.id = l, u.fake && (u.style.background = "", u.style.overflow = "hidden", a = b.style.overflow, b.style.overflow = "hidden", b.appendChild(u)), o = e(c, t), u.fake ? (u.parentNode.removeChild(u), b.style.overflow = a, b.offsetHeight) : c.parentNode.removeChild(c), !!o
  19321. }
  19322. function l(t) {
  19323. return t.replace(/([A-Z])/g, function (t, e) {
  19324. return "-" + e.toLowerCase()
  19325. }).replace(/^ms-/, "-ms-")
  19326. }
  19327. function g(t, e) {
  19328. var i = t.length;
  19329. if ("CSS" in o && "supports" in o.CSS) {
  19330. for (; i--;)
  19331. if (o.CSS.supports(l(t[i]), e)) return !0;
  19332. return !1
  19333. }
  19334. if ("CSSSupportsRule" in o) {
  19335. for (var n = []; i--;) n.push("(" + l(t[i]) + ":" + e + ")");
  19336. return s("@supports (" + (n = n.join(" or ")) + ") { #modernizr { position: absolute; } }", function (t) {
  19337. return "absolute" === function (t, e, i) {
  19338. var n;
  19339. if ("getComputedStyle" in o) {
  19340. n = getComputedStyle.call(o, t, e);
  19341. var s = o.console;
  19342. null !== n ? i && (n = n.getPropertyValue(i)) : s && s[s.error ? "error" : "log"].call(s, "getComputedStyle returning null, its possible modernizr test results are inaccurate")
  19343. } else n = !e && t.currentStyle && t.currentStyle[i];
  19344. return n
  19345. }(t, null, "position")
  19346. })
  19347. }
  19348. return d
  19349. }
  19350. function c(t, e, i, n) {
  19351. function s() {
  19352. r && (delete I.style, delete I.modElem)
  19353. }
  19354. if (n = !p(n, "undefined") && n, !p(i, "undefined")) {
  19355. var o = g(t, i);
  19356. if (!p(o, "undefined")) return o
  19357. }
  19358. for (var r, a, l, c, u, h = ["modernizr", "tspan", "samp"]; !I.style && h.length;) r = !0, I.modElem = f(h.shift()), I.style = I.modElem.style;
  19359. for (l = t.length, a = 0; a < l; a++)
  19360. if (c = t[a], u = I.style[c], !!~("" + c).indexOf("-") && (c = c.replace(/([a-z])-([a-z])/g, function (t, e, i) {
  19361. return e + i.toUpperCase()
  19362. }).replace(/^-/, "")), I.style[c] !== d) {
  19363. if (n || p(i, "undefined")) return s(), "pfx" !== e || c;
  19364. try {
  19365. I.style[c] = i
  19366. } catch (t) {}
  19367. if (I.style[c] !== u) return s(), "pfx" !== e || c
  19368. } return s(), !1
  19369. }
  19370. function u(t, e) {
  19371. return function () {
  19372. return t.apply(e, arguments)
  19373. }
  19374. }
  19375. function n(t, e, i, n, s) {
  19376. var o = t.charAt(0).toUpperCase() + t.slice(1),
  19377. r = (t + " " + E.join(o + " ") + o).split(" ");
  19378. return p(e, "string") || p(e, "undefined") ? c(r, e, n, s) : function (t, e, i) {
  19379. var n;
  19380. for (var s in t)
  19381. if (t[s] in e) return !1 === i ? t[s] : p(n = e[t[s]], "function") ? u(n, i || e) : n;
  19382. return !1
  19383. }(r = (t + " " + k.join(o + " ") + o).split(" "), e, i)
  19384. }
  19385. function m(t, e, i) {
  19386. return n(t, d, d, e, i)
  19387. }
  19388. var v = [],
  19389. t = {
  19390. _version: "3.7.1",
  19391. _config: {
  19392. classPrefix: "",
  19393. enableClasses: !0,
  19394. enableJSClass: !0,
  19395. usePrefixes: !0
  19396. },
  19397. _q: [],
  19398. on: function (t, e) {
  19399. var i = this;
  19400. setTimeout(function () {
  19401. e(i[t])
  19402. }, 0)
  19403. },
  19404. addTest: function (t, e, i) {
  19405. v.push({
  19406. name: t,
  19407. fn: e,
  19408. options: i
  19409. })
  19410. },
  19411. addAsyncTest: function (t) {
  19412. v.push({
  19413. name: null,
  19414. fn: t
  19415. })
  19416. }
  19417. },
  19418. _ = function () {};
  19419. _.prototype = t, _ = new _;
  19420. var y = [],
  19421. b = h.documentElement,
  19422. w = "svg" === b.nodeName.toLowerCase(),
  19423. e = "Moz O ms Webkit",
  19424. k = t._config.usePrefixes ? e.toLowerCase().split(" ") : [];
  19425. t._domPrefixes = k;
  19426. var x, i, C = t._config.usePrefixes ? " -webkit- -moz- -o- -ms- ".split(" ") : ["", ""];
  19427. t._prefixes = C, x = p(i = {}.hasOwnProperty, "undefined") || p(i.call, "undefined") ? function (t, e) {
  19428. return e in t && p(t.constructor.prototype[e], "undefined")
  19429. } : function (t, e) {
  19430. return i.call(t, e)
  19431. }, t._l = {}, t.on = function (t, e) {
  19432. this._l[t] || (this._l[t] = []), this._l[t].push(e), _.hasOwnProperty(t) && setTimeout(function () {
  19433. _._trigger(t, _[t])
  19434. }, 0)
  19435. }, t._trigger = function (t, e) {
  19436. if (this._l[t]) {
  19437. var i = this._l[t];
  19438. setTimeout(function () {
  19439. var t;
  19440. for (t = 0; t < i.length; t++)(0, i[t])(e)
  19441. }, 0), delete this._l[t]
  19442. }
  19443. }, _._q.push(function () {
  19444. t.addTest = a
  19445. });
  19446. var T, S = (T = !("onblur" in b), function (t, e) {
  19447. var i;
  19448. return !!t && (e && "string" != typeof e || (e = f(e || "div")), !(i = (t = "on" + t) in e) && T && (e.setAttribute || (e = f("div")), e.setAttribute(t, ""), i = "function" == typeof e[t], e[t] !== d && (e[t] = d), e.removeAttribute(t)), i)
  19449. });
  19450. t.hasEvent = S;
  19451. var D, A = (D = o.matchMedia || o.msMatchMedia) ? function (t) {
  19452. var e = D(t);
  19453. return e && e.matches || !1
  19454. } : function (t) {
  19455. var e = !1;
  19456. return s("@media " + t + " { #modernizr { position: absolute; } }", function (t) {
  19457. e = "absolute" === (o.getComputedStyle ? o.getComputedStyle(t, null) : t.currentStyle).position
  19458. }), e
  19459. };
  19460. t.mq = A;
  19461. t.prefixedCSSValue = function (t, e) {
  19462. var i = !1,
  19463. n = f("div").style;
  19464. if (t in n) {
  19465. var s = k.length;
  19466. for (n[t] = e, i = n[t]; s-- && !i;) n[t] = "-" + k[s] + "-" + e, i = n[t]
  19467. }
  19468. return "" === i && (i = !1), i
  19469. };
  19470. var E = t._config.usePrefixes ? e.split(" ") : [];
  19471. t._cssomPrefixes = E;
  19472. var P = {
  19473. elem: f("modernizr")
  19474. };
  19475. _._q.push(function () {
  19476. delete P.elem
  19477. });
  19478. var I = {
  19479. style: P.elem.style
  19480. };
  19481. _._q.unshift(function () {
  19482. delete I.style
  19483. }), t.testAllProps = n, t.testAllProps = m, t.testProp = function (t, e, i) {
  19484. return c([t], d, e, i)
  19485. }, t.testStyles = s, _.addTest("customelements", "customElements" in o), _.addTest("history", function () {
  19486. var t = navigator.userAgent;
  19487. return (-1 === t.indexOf("Android 2.") && -1 === t.indexOf("Android 4.0") || -1 === t.indexOf("Mobile Safari") || -1 !== t.indexOf("Chrome") || -1 !== t.indexOf("Windows Phone") || "file:" === location.protocol) && o.history && "pushState" in o.history
  19488. }), _.addTest("pointerevents", function () {
  19489. var t = !1,
  19490. e = k.length;
  19491. for (t = _.hasEvent("pointerdown"); e-- && !t;) S(k[e] + "pointerdown") && (t = !0);
  19492. return t
  19493. });
  19494. var O = new Boolean("postMessage" in o);
  19495. O.structuredclones = !0;
  19496. try {
  19497. o.postMessage({
  19498. toString: function () {
  19499. O.structuredclones = !1
  19500. }
  19501. }, "*")
  19502. } catch (o) {}
  19503. _.addTest("postmessage", O), _.addTest("webgl", function () {
  19504. return "WebGLRenderingContext" in o
  19505. });
  19506. var M = !1;
  19507. try {
  19508. M = "WebSocket" in o && 2 === o.WebSocket.CLOSING
  19509. } catch (o) {}
  19510. _.addTest("websockets", M), _.addTest("cssanimations", m("animationName", "a", !0)),
  19511. function () {
  19512. _.addTest("csscolumns", function () {
  19513. var t = !1,
  19514. e = m("columnCount");
  19515. try {
  19516. (t = !!e) && (t = new Boolean(t))
  19517. } catch (t) {}
  19518. return t
  19519. });
  19520. for (var t, e, i = ["Width", "Span", "Fill", "Gap", "Rule", "RuleColor", "RuleStyle", "RuleWidth", "BreakBefore", "BreakAfter", "BreakInside"], n = 0; n < i.length; n++) t = i[n].toLowerCase(), e = m("column" + i[n]), "breakbefore" !== t && "breakafter" !== t && "breakinside" !== t || (e = e || m(i[n])), _.addTest("csscolumns." + t, e)
  19521. }(), _.addTest("flexbox", m("flexBasis", "1px", !0)), _.addTest("picture", "HTMLPictureElement" in o), _.addAsyncTest(function () {
  19522. var t, e, i = f("img"),
  19523. n = "sizes" in i;
  19524. !n && "srcset" in i ? (t = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==", e = function () {
  19525. a("sizes", 2 === i.width)
  19526. }, i.onload = e, i.onerror = e, i.setAttribute("sizes", "9px"), i.srcset = t + " 1w,data:image/gif;base64,R0lGODlhAgABAPAAAP///wAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw== 8w", i.src = t) : a("sizes", n)
  19527. }), _.addTest("srcset", "srcset" in f("img")), _.addTest("webworkers", "Worker" in o),
  19528. function () {
  19529. var t, e, i, n, s, o;
  19530. for (var r in v)
  19531. if (v.hasOwnProperty(r)) {
  19532. if (t = [], (e = v[r]).name && (t.push(e.name.toLowerCase()), e.options && e.options.aliases && e.options.aliases.length))
  19533. for (i = 0; i < e.options.aliases.length; i++) t.push(e.options.aliases[i].toLowerCase());
  19534. for (n = p(e.fn, "function") ? e.fn() : e.fn, s = 0; s < t.length; s++) 1 === (o = t[s].split(".")).length ? _[o[0]] = n : (!_[o[0]] || _[o[0]] instanceof Boolean || (_[o[0]] = new Boolean(_[o[0]])), _[o[0]][o[1]] = n), y.push((n ? "" : "no-") + o.join("-"))
  19535. }
  19536. }(), r(y), delete t.addTest, delete t.addAsyncTest;
  19537. for (var N = 0; N < _._q.length; N++) _._q[N]();
  19538. o.Modernizr = _
  19539. }(window, document),
  19540. function (t, e) {
  19541. "object" == ("undefined" == typeof exports ? "undefined" : _typeof(exports)) && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (void 0).Popper = e()
  19542. }(0, function () {
  19543. function r(t) {
  19544. return t && "[object Function]" === {}.toString.call(t)
  19545. }
  19546. function b(t, e) {
  19547. if (1 !== t.nodeType) return [];
  19548. var i = t.ownerDocument.defaultView.getComputedStyle(t, null);
  19549. return e ? i[e] : i
  19550. }
  19551. function p(t) {
  19552. return "HTML" === t.nodeName ? t : t.parentNode || t.host
  19553. }
  19554. function f(t) {
  19555. if (!t) return document.body;
  19556. switch (t.nodeName) {
  19557. case "HTML":
  19558. case "BODY":
  19559. return t.ownerDocument.body;
  19560. case "#document":
  19561. return t.body
  19562. }
  19563. var e = b(t),
  19564. i = e.overflow,
  19565. n = e.overflowX,
  19566. s = e.overflowY;
  19567. return /(auto|scroll|overlay)/.test(i + s + n) ? t : f(p(t))
  19568. }
  19569. function g(t) {
  19570. return t && t.referenceNode ? t.referenceNode : t
  19571. }
  19572. function m(t) {
  19573. return 11 === t ? q : 10 === t ? B : q || B
  19574. }
  19575. function y(t) {
  19576. if (!t) return document.documentElement;
  19577. for (var e = m(10) ? document.body : null, i = t.offsetParent || null; i === e && t.nextElementSibling;) i = (t = t.nextElementSibling).offsetParent;
  19578. var n = i && i.nodeName;
  19579. return n && "BODY" !== n && "HTML" !== n ? -1 !== ["TH", "TD", "TABLE"].indexOf(i.nodeName) && "static" === b(i, "position") ? y(i) : i : t ? t.ownerDocument.documentElement : document.documentElement
  19580. }
  19581. function l(t) {
  19582. return null === t.parentNode ? t : l(t.parentNode)
  19583. }
  19584. function v(t, e) {
  19585. if (!(t && t.nodeType && e && e.nodeType)) return document.documentElement;
  19586. var i = t.compareDocumentPosition(e) & Node.DOCUMENT_POSITION_FOLLOWING,
  19587. n = i ? t : e,
  19588. s = i ? e : t,
  19589. o = document.createRange();
  19590. o.setStart(n, 0), o.setEnd(s, 0);
  19591. var r = o.commonAncestorContainer;
  19592. if (t !== r && e !== r || n.contains(s)) return function (t) {
  19593. var e = t.nodeName;
  19594. return "BODY" !== e && ("HTML" === e || y(t.firstElementChild) === t)
  19595. }(r) ? r : y(r);
  19596. var a = l(t);
  19597. return a.host ? v(a.host, e) : v(t, l(e).host)
  19598. }
  19599. function _(t) {
  19600. var e = "top" === (1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : "top") ? "scrollTop" : "scrollLeft",
  19601. i = t.nodeName;
  19602. if ("BODY" !== i && "HTML" !== i) return t[e];
  19603. var n = t.ownerDocument.documentElement;
  19604. return (t.ownerDocument.scrollingElement || n)[e]
  19605. }
  19606. function h(t, e) {
  19607. var i = "x" === e ? "Left" : "Top",
  19608. n = "Left" == i ? "Right" : "Bottom";
  19609. return parseFloat(t["border" + i + "Width"], 10) + parseFloat(t["border" + n + "Width"], 10)
  19610. }
  19611. function s(t, e, i, n) {
  19612. return W(e["offset" + t], e["scroll" + t], i["client" + t], i["offset" + t], i["scroll" + t], m(10) ? parseInt(i["offset" + t]) + parseInt(n["margin" + ("Height" === t ? "Top" : "Left")]) + parseInt(n["margin" + ("Height" === t ? "Bottom" : "Right")]) : 0)
  19613. }
  19614. function w(t) {
  19615. var e = t.body,
  19616. i = t.documentElement,
  19617. n = m(10) && getComputedStyle(i);
  19618. return {
  19619. height: s("Height", e, i, n),
  19620. width: s("Width", e, i, n)
  19621. }
  19622. }
  19623. function k(t) {
  19624. return Y({}, t, {
  19625. right: t.left + t.width,
  19626. bottom: t.top + t.height
  19627. })
  19628. }
  19629. function x(t) {
  19630. var e = {};
  19631. try {
  19632. if (m(10)) {
  19633. e = t.getBoundingClientRect();
  19634. var i = _(t, "top"),
  19635. n = _(t, "left");
  19636. e.top += i, e.left += n, e.bottom += i, e.right += n
  19637. } else e = t.getBoundingClientRect()
  19638. } catch (t) {}
  19639. var s = {
  19640. left: e.left,
  19641. top: e.top,
  19642. width: e.right - e.left,
  19643. height: e.bottom - e.top
  19644. },
  19645. o = "HTML" === t.nodeName ? w(t.ownerDocument) : {},
  19646. r = o.width || t.clientWidth || s.width,
  19647. a = o.height || t.clientHeight || s.height,
  19648. l = t.offsetWidth - r,
  19649. c = t.offsetHeight - a;
  19650. if (l || c) {
  19651. var u = b(t);
  19652. l -= h(u, "x"), c -= h(u, "y"), s.width -= l, s.height -= c
  19653. }
  19654. return k(s)
  19655. }
  19656. function C(t, e) {
  19657. var i = 2 < arguments.length && void 0 !== arguments[2] && arguments[2],
  19658. n = m(10),
  19659. s = "HTML" === e.nodeName,
  19660. o = x(t),
  19661. r = x(e),
  19662. a = f(t),
  19663. l = b(e),
  19664. c = parseFloat(l.borderTopWidth, 10),
  19665. u = parseFloat(l.borderLeftWidth, 10);
  19666. i && s && (r.top = W(r.top, 0), r.left = W(r.left, 0));
  19667. var h = k({
  19668. top: o.top - r.top - c,
  19669. left: o.left - r.left - u,
  19670. width: o.width,
  19671. height: o.height
  19672. });
  19673. if (h.marginTop = 0, h.marginLeft = 0, !n && s) {
  19674. var d = parseFloat(l.marginTop, 10),
  19675. p = parseFloat(l.marginLeft, 10);
  19676. h.top -= c - d, h.bottom -= c - d, h.left -= u - p, h.right -= u - p, h.marginTop = d, h.marginLeft = p
  19677. }
  19678. return (n && !i ? e.contains(a) : e === a && "BODY" !== a.nodeName) && (h = function (t, e) {
  19679. var i = 2 < arguments.length && void 0 !== arguments[2] && arguments[2],
  19680. n = _(e, "top"),
  19681. s = _(e, "left"),
  19682. o = i ? -1 : 1;
  19683. return t.top += n * o, t.bottom += n * o, t.left += s * o, t.right += s * o, t
  19684. }(h, e)), h
  19685. }
  19686. function T(t) {
  19687. if (!t || !t.parentElement || m()) return document.documentElement;
  19688. for (var e = t.parentElement; e && "none" === b(e, "transform");) e = e.parentElement;
  19689. return e || document.documentElement
  19690. }
  19691. function d(t, e, i, n) {
  19692. var s = 4 < arguments.length && void 0 !== arguments[4] && arguments[4],
  19693. o = {
  19694. top: 0,
  19695. left: 0
  19696. },
  19697. r = s ? T(t) : v(t, g(e));
  19698. if ("viewport" === n) o = function (t) {
  19699. var e = 1 < arguments.length && void 0 !== arguments[1] && arguments[1],
  19700. i = t.ownerDocument.documentElement,
  19701. n = C(t, i),
  19702. s = W(i.clientWidth, window.innerWidth || 0),
  19703. o = W(i.clientHeight, window.innerHeight || 0),
  19704. r = e ? 0 : _(i),
  19705. a = e ? 0 : _(i, "left");
  19706. return k({
  19707. top: r - n.top + n.marginTop,
  19708. left: a - n.left + n.marginLeft,
  19709. width: s,
  19710. height: o
  19711. })
  19712. }(r, s);
  19713. else {
  19714. var a;
  19715. "scrollParent" === n ? "BODY" === (a = f(p(e))).nodeName && (a = t.ownerDocument.documentElement) : a = "window" === n ? t.ownerDocument.documentElement : n;
  19716. var l = C(a, r, s);
  19717. if ("HTML" !== a.nodeName || function t(e) {
  19718. var i = e.nodeName;
  19719. if ("BODY" === i || "HTML" === i) return !1;
  19720. if ("fixed" === b(e, "position")) return !0;
  19721. var n = p(e);
  19722. return !!n && t(n)
  19723. }(r)) o = l;
  19724. else {
  19725. var c = w(t.ownerDocument),
  19726. u = c.height,
  19727. h = c.width;
  19728. o.top += l.top - l.marginTop, o.bottom = u + l.top, o.left += l.left - l.marginLeft, o.right = h + l.left
  19729. }
  19730. }
  19731. var d = "number" == typeof (i = i || 0);
  19732. return o.left += d ? i : i.left || 0, o.top += d ? i : i.top || 0, o.right -= d ? i : i.right || 0, o.bottom -= d ? i : i.bottom || 0, o
  19733. }
  19734. function a(t, e, n, i, s) {
  19735. var o = 5 < arguments.length && void 0 !== arguments[5] ? arguments[5] : 0;
  19736. if (-1 === t.indexOf("auto")) return t;
  19737. var r = d(n, i, o, s),
  19738. a = {
  19739. top: {
  19740. width: r.width,
  19741. height: e.top - r.top
  19742. },
  19743. right: {
  19744. width: r.right - e.right,
  19745. height: r.height
  19746. },
  19747. bottom: {
  19748. width: r.width,
  19749. height: r.bottom - e.bottom
  19750. },
  19751. left: {
  19752. width: e.left - r.left,
  19753. height: r.height
  19754. }
  19755. },
  19756. l = Object.keys(a).map(function (t) {
  19757. return Y({
  19758. key: t
  19759. }, a[t], {
  19760. area: function (t) {
  19761. return t.width * t.height
  19762. }(a[t])
  19763. })
  19764. }).sort(function (t, e) {
  19765. return e.area - t.area
  19766. }),
  19767. c = l.filter(function (t) {
  19768. var e = t.width,
  19769. i = t.height;
  19770. return e >= n.clientWidth && i >= n.clientHeight
  19771. }),
  19772. u = 0 < c.length ? c[0].key : l[0].key,
  19773. h = t.split("-")[1];
  19774. return u + (h ? "-" + h : "")
  19775. }
  19776. function c(t, e, i) {
  19777. var n = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
  19778. return C(i, n ? T(e) : v(e, g(i)), n)
  19779. }
  19780. function S(t) {
  19781. var e = t.ownerDocument.defaultView.getComputedStyle(t),
  19782. i = parseFloat(e.marginTop || 0) + parseFloat(e.marginBottom || 0),
  19783. n = parseFloat(e.marginLeft || 0) + parseFloat(e.marginRight || 0);
  19784. return {
  19785. width: t.offsetWidth + n,
  19786. height: t.offsetHeight + i
  19787. }
  19788. }
  19789. function D(t) {
  19790. var e = {
  19791. left: "right",
  19792. right: "left",
  19793. bottom: "top",
  19794. top: "bottom"
  19795. };
  19796. return t.replace(/left|right|bottom|top/g, function (t) {
  19797. return e[t]
  19798. })
  19799. }
  19800. function A(t, e, i) {
  19801. i = i.split("-")[0];
  19802. var n = S(t),
  19803. s = {
  19804. width: n.width,
  19805. height: n.height
  19806. },
  19807. o = -1 !== ["right", "left"].indexOf(i),
  19808. r = o ? "top" : "left",
  19809. a = o ? "left" : "top",
  19810. l = o ? "height" : "width",
  19811. c = o ? "width" : "height";
  19812. return s[r] = e[r] + e[l] / 2 - n[l] / 2, s[a] = i === a ? e[a] - n[c] : e[D(a)], s
  19813. }
  19814. function E(t, e) {
  19815. return Array.prototype.find ? t.find(e) : t.filter(e)[0]
  19816. }
  19817. function P(t, i, e) {
  19818. return (void 0 === e ? t : t.slice(0, function (t, e, i) {
  19819. if (Array.prototype.findIndex) return t.findIndex(function (t) {
  19820. return t[e] === i
  19821. });
  19822. var n = E(t, function (t) {
  19823. return t[e] === i
  19824. });
  19825. return t.indexOf(n)
  19826. }(t, "name", e))).forEach(function (t) {
  19827. t.function && console.warn("`modifier.function` is deprecated, use `modifier.fn`!");
  19828. var e = t.function || t.fn;
  19829. t.enabled && r(e) && (i.offsets.popper = k(i.offsets.popper), i.offsets.reference = k(i.offsets.reference), i = e(i, t))
  19830. }), i
  19831. }
  19832. function t(t, i) {
  19833. return t.some(function (t) {
  19834. var e = t.name;
  19835. return t.enabled && e === i
  19836. })
  19837. }
  19838. function I(t) {
  19839. for (var e = [!1, "ms", "Webkit", "Moz", "O"], i = t.charAt(0).toUpperCase() + t.slice(1), n = 0; n < e.length; n++) {
  19840. var s = e[n],
  19841. o = s ? "" + s + i : t;
  19842. if (void 0 !== document.body.style[o]) return o
  19843. }
  19844. return null
  19845. }
  19846. function o(t) {
  19847. var e = t.ownerDocument;
  19848. return e ? e.defaultView : window
  19849. }
  19850. function e(t, e, i, n) {
  19851. i.updateBound = n, o(t).addEventListener("resize", i.updateBound, {
  19852. passive: !0
  19853. });
  19854. var s = f(t);
  19855. return function t(e, i, n, s) {
  19856. var o = "BODY" === e.nodeName,
  19857. r = o ? e.ownerDocument.defaultView : e;
  19858. r.addEventListener(i, n, {
  19859. passive: !0
  19860. }), o || t(f(r.parentNode), i, n, s), s.push(r)
  19861. }(s, "scroll", i.updateBound, i.scrollParents), i.scrollElement = s, i.eventsEnabled = !0, i
  19862. }
  19863. function i() {
  19864. this.state.eventsEnabled && (cancelAnimationFrame(this.scheduleUpdate), this.state = function (t, e) {
  19865. return o(t).removeEventListener("resize", e.updateBound), e.scrollParents.forEach(function (t) {
  19866. t.removeEventListener("scroll", e.updateBound)
  19867. }), e.updateBound = null, e.scrollParents = [], e.scrollElement = null, e.eventsEnabled = !1, e
  19868. }(this.reference, this.state))
  19869. }
  19870. function u(t) {
  19871. return "" !== t && !isNaN(parseFloat(t)) && isFinite(t)
  19872. }
  19873. function O(i, n) {
  19874. Object.keys(n).forEach(function (t) {
  19875. var e = ""; - 1 !== ["width", "height", "top", "right", "bottom", "left"].indexOf(t) && u(n[t]) && (e = "px"), i.style[t] = n[t] + e
  19876. })
  19877. }
  19878. function M(t, e, i) {
  19879. var n = E(t, function (t) {
  19880. return t.name === e
  19881. }),
  19882. s = !!n && t.some(function (t) {
  19883. return t.name === i && t.enabled && t.order < n.order
  19884. });
  19885. if (!s) {
  19886. var o = "`" + e + "`";
  19887. console.warn("`" + i + "` modifier is required by " + o + " modifier in order to work, be sure to include it before " + o + "!")
  19888. }
  19889. return s
  19890. }
  19891. function n(t) {
  19892. var e = 1 < arguments.length && void 0 !== arguments[1] && arguments[1],
  19893. i = X.indexOf(t),
  19894. n = X.slice(i + 1).concat(X.slice(0, i));
  19895. return e ? n.reverse() : n
  19896. }
  19897. function N(t, s, o, e) {
  19898. var r = [0, 0],
  19899. a = -1 !== ["right", "left"].indexOf(e),
  19900. i = t.split(/(\+|\-)/).map(function (t) {
  19901. return t.trim()
  19902. }),
  19903. n = i.indexOf(E(i, function (t) {
  19904. return -1 !== t.search(/,|\s/)
  19905. }));
  19906. i[n] && -1 === i[n].indexOf(",") && console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");
  19907. var l = /\s*,\s*|\s+/,
  19908. c = -1 === n ? [i] : [i.slice(0, n).concat([i[n].split(l)[0]]), [i[n].split(l)[1]].concat(i.slice(n + 1))];
  19909. return (c = c.map(function (t, e) {
  19910. var i = (1 === e ? !a : a) ? "height" : "width",
  19911. n = !1;
  19912. return t.reduce(function (t, e) {
  19913. return "" === t[t.length - 1] && -1 !== ["+", "-"].indexOf(e) ? (t[t.length - 1] = e, n = !0, t) : n ? (t[t.length - 1] += e, n = !1, t) : t.concat(e)
  19914. }, []).map(function (t) {
  19915. return function (t, e, i, n) {
  19916. var s, o = t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),
  19917. r = +o[1],
  19918. a = o[2];
  19919. if (!r) return t;
  19920. if (0 !== a.indexOf("%")) return "vh" !== a && "vw" !== a ? r : ("vh" === a ? W(document.documentElement.clientHeight, window.innerHeight || 0) : W(document.documentElement.clientWidth, window.innerWidth || 0)) / 100 * r;
  19921. switch (a) {
  19922. case "%p":
  19923. s = i;
  19924. break;
  19925. case "%":
  19926. case "%r":
  19927. default:
  19928. s = n
  19929. }
  19930. return k(s)[e] / 100 * r
  19931. }(t, i, s, o)
  19932. })
  19933. })).forEach(function (i, n) {
  19934. i.forEach(function (t, e) {
  19935. u(t) && (r[n] += t * ("-" === i[e - 1] ? -1 : 1))
  19936. })
  19937. }), r
  19938. }
  19939. function L(t, e, i) {
  19940. return e in t ? Object.defineProperty(t, e, {
  19941. value: i,
  19942. enumerable: !0,
  19943. configurable: !0,
  19944. writable: !0
  19945. }) : t[e] = i, t
  19946. }
  19947. var H = Math.min,
  19948. j = Math.floor,
  19949. z = Math.round,
  19950. W = Math.max,
  19951. $ = "undefined" != typeof window && "undefined" != typeof document && "undefined" != typeof navigator,
  19952. R = function () {
  19953. for (var t = ["Edge", "Trident", "Firefox"], e = 0; e < t.length; e += 1)
  19954. if ($ && 0 <= navigator.userAgent.indexOf(t[e])) return 1;
  19955. return 0
  19956. }(),
  19957. F = $ && window.Promise ? function (t) {
  19958. var e = !1;
  19959. return function () {
  19960. e || (e = !0, window.Promise.resolve().then(function () {
  19961. e = !1, t()
  19962. }))
  19963. }
  19964. } : function (t) {
  19965. var e = !1;
  19966. return function () {
  19967. e || (e = !0, setTimeout(function () {
  19968. e = !1, t()
  19969. }, R))
  19970. }
  19971. },
  19972. q = $ && !(!window.MSInputMethodContext || !document.documentMode),
  19973. B = $ && /MSIE 10/.test(navigator.userAgent),
  19974. U = function () {
  19975. function n(t, e) {
  19976. for (var i, n = 0; n < e.length; n++)(i = e[n]).enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(t, i.key, i)
  19977. }
  19978. return function (t, e, i) {
  19979. return e && n(t.prototype, e), i && n(t, i), t
  19980. }
  19981. }(),
  19982. Y = Object.assign || function (t) {
  19983. for (var e, i = 1; i < arguments.length; i++)
  19984. for (var n in e = arguments[i]) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  19985. return t
  19986. },
  19987. V = $ && /Firefox/i.test(navigator.userAgent),
  19988. K = ["auto-start", "auto", "auto-end", "top-start", "top", "top-end", "right-start", "right", "right-end", "bottom-end", "bottom", "bottom-start", "left-end", "left", "left-start"],
  19989. X = K.slice(3),
  19990. Q = "flip",
  19991. G = "clockwise",
  19992. J = "counterclockwise",
  19993. Z = function () {
  19994. function o(t, e) {
  19995. var i = this,
  19996. n = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : {};
  19997. (function (t, e) {
  19998. if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function")
  19999. })(this, o), this.scheduleUpdate = function () {
  20000. return requestAnimationFrame(i.update)
  20001. }, this.update = F(this.update.bind(this)), this.options = Y({}, o.Defaults, n), this.state = {
  20002. isDestroyed: !1,
  20003. isCreated: !1,
  20004. scrollParents: []
  20005. }, this.reference = t && t.jquery ? t[0] : t, this.popper = e && e.jquery ? e[0] : e, this.options.modifiers = {}, Object.keys(Y({}, o.Defaults.modifiers, n.modifiers)).forEach(function (t) {
  20006. i.options.modifiers[t] = Y({}, o.Defaults.modifiers[t] || {}, n.modifiers ? n.modifiers[t] : {})
  20007. }), this.modifiers = Object.keys(this.options.modifiers).map(function (t) {
  20008. return Y({
  20009. name: t
  20010. }, i.options.modifiers[t])
  20011. }).sort(function (t, e) {
  20012. return t.order - e.order
  20013. }), this.modifiers.forEach(function (t) {
  20014. t.enabled && r(t.onLoad) && t.onLoad(i.reference, i.popper, i.options, t, i.state)
  20015. }), this.update();
  20016. var s = this.options.eventsEnabled;
  20017. s && this.enableEventListeners(), this.state.eventsEnabled = s
  20018. }
  20019. return U(o, [{
  20020. key: "update",
  20021. value: function () {
  20022. return function () {
  20023. if (!this.state.isDestroyed) {
  20024. var t = {
  20025. instance: this,
  20026. styles: {},
  20027. arrowStyles: {},
  20028. attributes: {},
  20029. flipped: !1,
  20030. offsets: {}
  20031. };
  20032. t.offsets.reference = c(this.state, this.popper, this.reference, this.options.positionFixed), t.placement = a(this.options.placement, t.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding), t.originalPlacement = t.placement, t.positionFixed = this.options.positionFixed, t.offsets.popper = A(this.popper, t.offsets.reference, t.placement), t.offsets.popper.position = this.options.positionFixed ? "fixed" : "absolute", t = P(this.modifiers, t), this.state.isCreated ? this.options.onUpdate(t) : (this.state.isCreated = !0, this.options.onCreate(t))
  20033. }
  20034. }.call(this)
  20035. }
  20036. }, {
  20037. key: "destroy",
  20038. value: function () {
  20039. return function () {
  20040. return this.state.isDestroyed = !0, t(this.modifiers, "applyStyle") && (this.popper.removeAttribute("x-placement"), this.popper.style.position = "", this.popper.style.top = "", this.popper.style.left = "", this.popper.style.right = "", this.popper.style.bottom = "", this.popper.style.willChange = "", this.popper.style[I("transform")] = ""), this.disableEventListeners(), this.options.removeOnDestroy && this.popper.parentNode.removeChild(this.popper), this
  20041. }.call(this)
  20042. }
  20043. }, {
  20044. key: "enableEventListeners",
  20045. value: function () {
  20046. return function () {
  20047. this.state.eventsEnabled || (this.state = e(this.reference, this.options, this.state, this.scheduleUpdate))
  20048. }.call(this)
  20049. }
  20050. }, {
  20051. key: "disableEventListeners",
  20052. value: function () {
  20053. return i.call(this)
  20054. }
  20055. }]), o
  20056. }();
  20057. return Z.Utils = ("undefined" == typeof window ? global : window).PopperUtils, Z.placements = K, Z.Defaults = {
  20058. placement: "bottom",
  20059. positionFixed: !1,
  20060. eventsEnabled: !0,
  20061. removeOnDestroy: !1,
  20062. onCreate: function () {},
  20063. onUpdate: function () {},
  20064. modifiers: {
  20065. shift: {
  20066. order: 100,
  20067. enabled: !0,
  20068. fn: function (t) {
  20069. var e = t.placement,
  20070. i = e.split("-")[0],
  20071. n = e.split("-")[1];
  20072. if (n) {
  20073. var s = t.offsets,
  20074. o = s.reference,
  20075. r = s.popper,
  20076. a = -1 !== ["bottom", "top"].indexOf(i),
  20077. l = a ? "left" : "top",
  20078. c = a ? "width" : "height",
  20079. u = {
  20080. start: L({}, l, o[l]),
  20081. end: L({}, l, o[l] + o[c] - r[c])
  20082. };
  20083. t.offsets.popper = Y({}, r, u[n])
  20084. }
  20085. return t
  20086. }
  20087. },
  20088. offset: {
  20089. order: 200,
  20090. enabled: !0,
  20091. fn: function (t, e) {
  20092. var i, n = e.offset,
  20093. s = t.placement,
  20094. o = t.offsets,
  20095. r = o.popper,
  20096. a = o.reference,
  20097. l = s.split("-")[0];
  20098. return i = u(+n) ? [+n, 0] : N(n, r, a, l), "left" === l ? (r.top += i[0], r.left -= i[1]) : "right" === l ? (r.top += i[0], r.left += i[1]) : "top" === l ? (r.left += i[0], r.top -= i[1]) : "bottom" === l && (r.left += i[0], r.top += i[1]), t.popper = r, t
  20099. },
  20100. offset: 0
  20101. },
  20102. preventOverflow: {
  20103. order: 300,
  20104. enabled: !0,
  20105. fn: function (t, n) {
  20106. var e = n.boundariesElement || y(t.instance.popper);
  20107. t.instance.reference === e && (e = y(e));
  20108. var i = I("transform"),
  20109. s = t.instance.popper.style,
  20110. o = s.top,
  20111. r = s.left,
  20112. a = s[i];
  20113. s.top = "", s.left = "", s[i] = "";
  20114. var l = d(t.instance.popper, t.instance.reference, n.padding, e, t.positionFixed);
  20115. s.top = o, s.left = r, s[i] = a, n.boundaries = l;
  20116. var c = n.priority,
  20117. u = t.offsets.popper,
  20118. h = {
  20119. primary: function (t) {
  20120. var e = u[t];
  20121. return u[t] < l[t] && !n.escapeWithReference && (e = W(u[t], l[t])), L({}, t, e)
  20122. },
  20123. secondary: function (t) {
  20124. var e = "right" === t ? "left" : "top",
  20125. i = u[e];
  20126. return u[t] > l[t] && !n.escapeWithReference && (i = H(u[e], l[t] - ("right" === t ? u.width : u.height))), L({}, e, i)
  20127. }
  20128. };
  20129. return c.forEach(function (t) {
  20130. var e = -1 === ["left", "top"].indexOf(t) ? "secondary" : "primary";
  20131. u = Y({}, u, h[e](t))
  20132. }), t.offsets.popper = u, t
  20133. },
  20134. priority: ["left", "right", "top", "bottom"],
  20135. padding: 5,
  20136. boundariesElement: "scrollParent"
  20137. },
  20138. keepTogether: {
  20139. order: 400,
  20140. enabled: !0,
  20141. fn: function (t) {
  20142. var e = t.offsets,
  20143. i = e.popper,
  20144. n = e.reference,
  20145. s = t.placement.split("-")[0],
  20146. o = j,
  20147. r = -1 !== ["top", "bottom"].indexOf(s),
  20148. a = r ? "right" : "bottom",
  20149. l = r ? "left" : "top",
  20150. c = r ? "width" : "height";
  20151. return i[a] < o(n[l]) && (t.offsets.popper[l] = o(n[l]) - i[c]), i[l] > o(n[a]) && (t.offsets.popper[l] = o(n[a])), t
  20152. }
  20153. },
  20154. arrow: {
  20155. order: 500,
  20156. enabled: !0,
  20157. fn: function (t, e) {
  20158. var i;
  20159. if (!M(t.instance.modifiers, "arrow", "keepTogether")) return t;
  20160. var n = e.element;
  20161. if ("string" == typeof n) {
  20162. if (!(n = t.instance.popper.querySelector(n))) return t
  20163. } else if (!t.instance.popper.contains(n)) return console.warn("WARNING: `arrow.element` must be child of its popper element!"), t;
  20164. var s = t.placement.split("-")[0],
  20165. o = t.offsets,
  20166. r = o.popper,
  20167. a = o.reference,
  20168. l = -1 !== ["left", "right"].indexOf(s),
  20169. c = l ? "height" : "width",
  20170. u = l ? "Top" : "Left",
  20171. h = u.toLowerCase(),
  20172. d = l ? "left" : "top",
  20173. p = l ? "bottom" : "right",
  20174. f = S(n)[c];
  20175. a[p] - f < r[h] && (t.offsets.popper[h] -= r[h] - (a[p] - f)), a[h] + f > r[p] && (t.offsets.popper[h] += a[h] + f - r[p]), t.offsets.popper = k(t.offsets.popper);
  20176. var g = a[h] + a[c] / 2 - f / 2,
  20177. m = b(t.instance.popper),
  20178. v = parseFloat(m["margin" + u], 10),
  20179. _ = parseFloat(m["border" + u + "Width"], 10),
  20180. y = g - t.offsets.popper[h] - v - _;
  20181. return y = W(H(r[c] - f, y), 0), t.arrowElement = n, t.offsets.arrow = (L(i = {}, h, z(y)), L(i, d, ""), i), t
  20182. },
  20183. element: "[x-arrow]"
  20184. },
  20185. flip: {
  20186. order: 600,
  20187. enabled: !0,
  20188. fn: function (g, m) {
  20189. if (t(g.instance.modifiers, "inner")) return g;
  20190. if (g.flipped && g.placement === g.originalPlacement) return g;
  20191. var v = d(g.instance.popper, g.instance.reference, m.padding, m.boundariesElement, g.positionFixed),
  20192. _ = g.placement.split("-")[0],
  20193. y = D(_),
  20194. b = g.placement.split("-")[1] || "",
  20195. w = [];
  20196. switch (m.behavior) {
  20197. case Q:
  20198. w = [_, y];
  20199. break;
  20200. case G:
  20201. w = n(_);
  20202. break;
  20203. case J:
  20204. w = n(_, !0);
  20205. break;
  20206. default:
  20207. w = m.behavior
  20208. }
  20209. return w.forEach(function (t, e) {
  20210. if (_ !== t || w.length === e + 1) return g;
  20211. _ = g.placement.split("-")[0], y = D(_);
  20212. var i = g.offsets.popper,
  20213. n = g.offsets.reference,
  20214. s = j,
  20215. o = "left" === _ && s(i.right) > s(n.left) || "right" === _ && s(i.left) < s(n.right) || "top" === _ && s(i.bottom) > s(n.top) || "bottom" === _ && s(i.top) < s(n.bottom),
  20216. r = s(i.left) < s(v.left),
  20217. a = s(i.right) > s(v.right),
  20218. l = s(i.top) < s(v.top),
  20219. c = s(i.bottom) > s(v.bottom),
  20220. u = "left" === _ && r || "right" === _ && a || "top" === _ && l || "bottom" === _ && c,
  20221. h = -1 !== ["top", "bottom"].indexOf(_),
  20222. d = !!m.flipVariations && (h && "start" === b && r || h && "end" === b && a || !h && "start" === b && l || !h && "end" === b && c),
  20223. p = !!m.flipVariationsByContent && (h && "start" === b && a || h && "end" === b && r || !h && "start" === b && c || !h && "end" === b && l),
  20224. f = d || p;
  20225. (o || u || f) && (g.flipped = !0, (o || u) && (_ = w[e + 1]), f && (b = function (t) {
  20226. return "end" === t ? "start" : "start" === t ? "end" : t
  20227. }(b)), g.placement = _ + (b ? "-" + b : ""), g.offsets.popper = Y({}, g.offsets.popper, A(g.instance.popper, g.offsets.reference, g.placement)), g = P(g.instance.modifiers, g, "flip"))
  20228. }), g
  20229. },
  20230. behavior: "flip",
  20231. padding: 5,
  20232. boundariesElement: "viewport",
  20233. flipVariations: !1,
  20234. flipVariationsByContent: !1
  20235. },
  20236. inner: {
  20237. order: 700,
  20238. enabled: !1,
  20239. fn: function (t) {
  20240. var e = t.placement,
  20241. i = e.split("-")[0],
  20242. n = t.offsets,
  20243. s = n.popper,
  20244. o = n.reference,
  20245. r = -1 !== ["left", "right"].indexOf(i),
  20246. a = -1 === ["top", "left"].indexOf(i);
  20247. return s[r ? "left" : "top"] = o[i] - (a ? s[r ? "width" : "height"] : 0), t.placement = D(e), t.offsets.popper = k(s), t
  20248. }
  20249. },
  20250. hide: {
  20251. order: 800,
  20252. enabled: !0,
  20253. fn: function (t) {
  20254. if (!M(t.instance.modifiers, "hide", "preventOverflow")) return t;
  20255. var e = t.offsets.reference,
  20256. i = E(t.instance.modifiers, function (t) {
  20257. return "preventOverflow" === t.name
  20258. }).boundaries;
  20259. if (e.bottom < i.top || e.left > i.right || e.top > i.bottom || e.right < i.left) {
  20260. if (!0 === t.hide) return t;
  20261. t.hide = !0, t.attributes["x-out-of-boundaries"] = ""
  20262. } else {
  20263. if (!1 === t.hide) return t;
  20264. t.hide = !1, t.attributes["x-out-of-boundaries"] = !1
  20265. }
  20266. return t
  20267. }
  20268. },
  20269. computeStyle: {
  20270. order: 850,
  20271. enabled: !0,
  20272. fn: function (t, e) {
  20273. var i = e.x,
  20274. n = e.y,
  20275. s = t.offsets.popper,
  20276. o = E(t.instance.modifiers, function (t) {
  20277. return "applyStyle" === t.name
  20278. }).gpuAcceleration;
  20279. void 0 !== o && console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");
  20280. var r, a, l = void 0 === o ? e.gpuAcceleration : o,
  20281. c = y(t.instance.popper),
  20282. u = x(c),
  20283. h = {
  20284. position: s.position
  20285. },
  20286. d = function (t, e) {
  20287. function i(t) {
  20288. return t
  20289. }
  20290. var n = t.offsets,
  20291. s = n.popper,
  20292. o = n.reference,
  20293. r = z,
  20294. a = r(o.width),
  20295. l = r(s.width),
  20296. c = -1 !== ["left", "right"].indexOf(t.placement),
  20297. u = -1 !== t.placement.indexOf("-"),
  20298. h = e ? c || u || a % 2 == l % 2 ? r : j : i,
  20299. d = e ? r : i;
  20300. return {
  20301. left: h(1 == a % 2 && 1 == l % 2 && !u && e ? s.left - 1 : s.left),
  20302. top: d(s.top),
  20303. bottom: d(s.bottom),
  20304. right: h(s.right)
  20305. }
  20306. }(t, window.devicePixelRatio < 2 || !V),
  20307. p = "bottom" === i ? "top" : "bottom",
  20308. f = "right" === n ? "left" : "right",
  20309. g = I("transform");
  20310. if (a = "bottom" == p ? "HTML" === c.nodeName ? -c.clientHeight + d.bottom : -u.height + d.bottom : d.top, r = "right" == f ? "HTML" === c.nodeName ? -c.clientWidth + d.right : -u.width + d.right : d.left, l && g) h[g] = "translate3d(" + r + "px, " + a + "px, 0)", h[p] = 0, h[f] = 0, h.willChange = "transform";
  20311. else {
  20312. var m = "bottom" == p ? -1 : 1,
  20313. v = "right" == f ? -1 : 1;
  20314. h[p] = a * m, h[f] = r * v, h.willChange = p + ", " + f
  20315. }
  20316. var _ = {
  20317. "x-placement": t.placement
  20318. };
  20319. return t.attributes = Y({}, _, t.attributes), t.styles = Y({}, h, t.styles), t.arrowStyles = Y({}, t.offsets.arrow, t.arrowStyles), t
  20320. },
  20321. gpuAcceleration: !0,
  20322. x: "bottom",
  20323. y: "right"
  20324. },
  20325. applyStyle: {
  20326. order: 900,
  20327. enabled: !0,
  20328. fn: function (t) {
  20329. return O(t.instance.popper, t.styles),
  20330. function (e, i) {
  20331. Object.keys(i).forEach(function (t) {
  20332. !1 === i[t] ? e.removeAttribute(t) : e.setAttribute(t, i[t])
  20333. })
  20334. }(t.instance.popper, t.attributes), t.arrowElement && Object.keys(t.arrowStyles).length && O(t.arrowElement, t.arrowStyles), t
  20335. },
  20336. onLoad: function (t, e, i, n, s) {
  20337. var o = c(s, e, t, i.positionFixed),
  20338. r = a(i.placement, o, e, t, i.modifiers.flip.boundariesElement, i.modifiers.flip.padding);
  20339. return e.setAttribute("x-placement", r), O(e, {
  20340. position: i.positionFixed ? "fixed" : "absolute"
  20341. }), i
  20342. },
  20343. gpuAcceleration: void 0
  20344. }
  20345. }
  20346. }, Z
  20347. }),
  20348. function (t) {
  20349. "function" == typeof define && define.amd ? define(["jquery"], t) : t(jQuery)
  20350. }(function (S) {
  20351. function t() {
  20352. this._curInst = null, this._keyEvent = !1, this._disabledInputs = [], this._datepickerShowing = !1, this._inDialog = !1, this._mainDivId = "ui-datepicker-div", this._inlineClass = "ui-datepicker-inline", this._appendClass = "ui-datepicker-append", this._triggerClass = "ui-datepicker-trigger", this._dialogClass = "ui-datepicker-dialog", this._disableClass = "ui-datepicker-disabled", this._unselectableClass = "ui-datepicker-unselectable", this._currentClass = "ui-datepicker-current-day", this._dayOverClass = "ui-datepicker-days-cell-over", this.regional = [], this.regional[""] = {
  20353. closeText: "Done",
  20354. prevText: "Prev",
  20355. nextText: "Next",
  20356. currentText: "Today",
  20357. monthNames: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
  20358. monthNamesShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
  20359. dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
  20360. dayNamesShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
  20361. dayNamesMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
  20362. weekHeader: "Wk",
  20363. dateFormat: "mm/dd/yy",
  20364. firstDay: 0,
  20365. isRTL: !1,
  20366. showMonthAfterYear: !1,
  20367. yearSuffix: ""
  20368. }, this._defaults = {
  20369. showOn: "focus",
  20370. showAnim: "fadeIn",
  20371. showOptions: {},
  20372. defaultDate: null,
  20373. appendText: "",
  20374. buttonText: "...",
  20375. buttonImage: "",
  20376. buttonImageOnly: !1,
  20377. hideIfNoPrevNext: !1,
  20378. navigationAsDateFormat: !1,
  20379. gotoCurrent: !1,
  20380. changeMonth: !1,
  20381. changeYear: !1,
  20382. yearRange: "c-10:c+10",
  20383. showOtherMonths: !1,
  20384. selectOtherMonths: !1,
  20385. showWeek: !1,
  20386. calculateWeek: this.iso8601Week,
  20387. shortYearCutoff: "+10",
  20388. minDate: null,
  20389. maxDate: null,
  20390. duration: "fast",
  20391. beforeShowDay: null,
  20392. beforeShow: null,
  20393. onSelect: null,
  20394. onChangeMonthYear: null,
  20395. onClose: null,
  20396. numberOfMonths: 1,
  20397. showCurrentAtPos: 0,
  20398. stepMonths: 1,
  20399. stepBigMonths: 12,
  20400. altField: "",
  20401. altFormat: "",
  20402. constrainInput: !0,
  20403. showButtonPanel: !1,
  20404. autoSize: !1,
  20405. disabled: !1
  20406. }, S.extend(this._defaults, this.regional[""]), this.regional.en = S.extend(!0, {}, this.regional[""]), this.regional["en-US"] = S.extend(!0, {}, this.regional.en), this.dpDiv = i(S("<div id='" + this._mainDivId + "' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))
  20407. }
  20408. function i(t) {
  20409. var e = "button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";
  20410. return t.on("mouseout", e, function () {
  20411. S(this).removeClass("ui-state-hover"), -1 !== this.className.indexOf("ui-datepicker-prev") && S(this).removeClass("ui-datepicker-prev-hover"), -1 !== this.className.indexOf("ui-datepicker-next") && S(this).removeClass("ui-datepicker-next-hover")
  20412. }).on("mouseover", e, o)
  20413. }
  20414. function o() {
  20415. S.datepicker._isDisabledDatepicker(v.inline ? v.dpDiv.parent()[0] : v.input[0]) || (S(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"), S(this).addClass("ui-state-hover"), -1 !== this.className.indexOf("ui-datepicker-prev") && S(this).addClass("ui-datepicker-prev-hover"), -1 !== this.className.indexOf("ui-datepicker-next") && S(this).addClass("ui-datepicker-next-hover"))
  20416. }
  20417. function h(t, e) {
  20418. for (var i in S.extend(t, e), e) null == e[i] && (t[i] = e[i]);
  20419. return t
  20420. }
  20421. function e(e) {
  20422. return function () {
  20423. var t = this.element.val();
  20424. e.apply(this, arguments), this._refresh(), t !== this.element.val() && this._trigger("change")
  20425. }
  20426. }
  20427. S.ui = S.ui || {}, S.ui.version = "1.12.1";
  20428. var n, s, r = 0,
  20429. a = Array.prototype.slice;
  20430. S.cleanData = (s = S.cleanData, function (t) {
  20431. var e, i, n;
  20432. for (n = 0; null != (i = t[n]); n++) try {
  20433. (e = S._data(i, "events")) && e.remove && S(i).triggerHandler("remove")
  20434. } catch (t) {}
  20435. s(t)
  20436. }), S.widget = function (t, i, e) {
  20437. var n, s, o, r = {},
  20438. a = t.split(".")[0],
  20439. l = a + "-" + (t = t.split(".")[1]);
  20440. return e || (e = i, i = S.Widget), S.isArray(e) && (e = S.extend.apply(null, [{}].concat(e))), S.expr[":"][l.toLowerCase()] = function (t) {
  20441. return !!S.data(t, l)
  20442. }, S[a] = S[a] || {}, n = S[a][t], s = S[a][t] = function (t, e) {
  20443. return this._createWidget ? void(arguments.length && this._createWidget(t, e)) : new s(t, e)
  20444. }, S.extend(s, n, {
  20445. version: e.version,
  20446. _proto: S.extend({}, e),
  20447. _childConstructors: []
  20448. }), (o = new i).options = S.widget.extend({}, o.options), S.each(e, function (e, o) {
  20449. return S.isFunction(o) ? void(r[e] = function () {
  20450. function n() {
  20451. return i.prototype[e].apply(this, arguments)
  20452. }
  20453. function s(t) {
  20454. return i.prototype[e].apply(this, t)
  20455. }
  20456. return function () {
  20457. var t, e = this._super,
  20458. i = this._superApply;
  20459. return this._super = n, this._superApply = s, t = o.apply(this, arguments), this._super = e, this._superApply = i, t
  20460. }
  20461. }()) : void(r[e] = o)
  20462. }), s.prototype = S.widget.extend(o, {
  20463. widgetEventPrefix: n && o.widgetEventPrefix || t
  20464. }, r, {
  20465. constructor: s,
  20466. namespace: a,
  20467. widgetName: t,
  20468. widgetFullName: l
  20469. }), n ? (S.each(n._childConstructors, function (t, e) {
  20470. var i = e.prototype;
  20471. S.widget(i.namespace + "." + i.widgetName, s, e._proto)
  20472. }), delete n._childConstructors) : i._childConstructors.push(s), S.widget.bridge(t, s), s
  20473. }, S.widget.extend = function (t) {
  20474. for (var e, i, n = a.call(arguments, 1), s = 0, o = n.length; s < o; s++)
  20475. for (e in n[s]) i = n[s][e], n[s].hasOwnProperty(e) && void 0 !== i && (t[e] = S.isPlainObject(i) ? S.isPlainObject(t[e]) ? S.widget.extend({}, t[e], i) : S.widget.extend({}, i) : i);
  20476. return t
  20477. }, S.widget.bridge = function (o, e) {
  20478. var r = e.prototype.widgetFullName || o;
  20479. S.fn[o] = function (i) {
  20480. var t = "string" == typeof i,
  20481. n = a.call(arguments, 1),
  20482. s = this;
  20483. return t ? this.length || "instance" !== i ? this.each(function () {
  20484. var t, e = S.data(this, r);
  20485. return "instance" === i ? (s = e, !1) : e ? S.isFunction(e[i]) && "_" !== i.charAt(0) ? (t = e[i].apply(e, n)) !== e && void 0 !== t ? (s = t && t.jquery ? s.pushStack(t.get()) : t, !1) : void 0 : S.error("no such method '" + i + "' for " + o + " widget instance") : S.error("cannot call methods on " + o + " prior to initialization; attempted to call method '" + i + "'")
  20486. }) : s = void 0 : (n.length && (i = S.widget.extend.apply(null, [i].concat(n))), this.each(function () {
  20487. var t = S.data(this, r);
  20488. t ? (t.option(i || {}), t._init && t._init()) : S.data(this, r, new e(i, this))
  20489. })), s
  20490. }
  20491. }, S.Widget = function () {}, S.Widget._childConstructors = [], S.Widget.prototype = {
  20492. widgetName: "widget",
  20493. widgetEventPrefix: "",
  20494. defaultElement: "<div>",
  20495. options: {
  20496. classes: {},
  20497. disabled: !1,
  20498. create: null
  20499. },
  20500. _createWidget: function (t, e) {
  20501. e = S(e || this.defaultElement || this)[0], this.element = S(e), this.uuid = r++, this.eventNamespace = "." + this.widgetName + this.uuid, this.bindings = S(), this.hoverable = S(), this.focusable = S(), this.classesElementLookup = {}, e !== this && (S.data(e, this.widgetFullName, this), this._on(!0, this.element, {
  20502. remove: function (t) {
  20503. t.target === e && this.destroy()
  20504. }
  20505. }), this.document = S(e.style ? e.ownerDocument : e.document || e), this.window = S(this.document[0].defaultView || this.document[0].parentWindow)), this.options = S.widget.extend({}, this.options, this._getCreateOptions(), t), this._create(), this.options.disabled && this._setOptionDisabled(this.options.disabled), this._trigger("create", null, this._getCreateEventData()), this._init()
  20506. },
  20507. _getCreateOptions: function () {
  20508. return {}
  20509. },
  20510. _getCreateEventData: S.noop,
  20511. _create: S.noop,
  20512. _init: S.noop,
  20513. destroy: function () {
  20514. var i = this;
  20515. this._destroy(), S.each(this.classesElementLookup, function (t, e) {
  20516. i._removeClass(e, t)
  20517. }), this.element.off(this.eventNamespace).removeData(this.widgetFullName), this.widget().off(this.eventNamespace).removeAttr("aria-disabled"), this.bindings.off(this.eventNamespace)
  20518. },
  20519. _destroy: S.noop,
  20520. widget: function () {
  20521. return this.element
  20522. },
  20523. option: function (t, e) {
  20524. var i, n, s, o = t;
  20525. if (0 === arguments.length) return S.widget.extend({}, this.options);
  20526. if ("string" == typeof t)
  20527. if (o = {}, t = (i = t.split(".")).shift(), i.length) {
  20528. for (n = o[t] = S.widget.extend({}, this.options[t]), s = 0; i.length - 1 > s; s++) n[i[s]] = n[i[s]] || {}, n = n[i[s]];
  20529. if (t = i.pop(), 1 === arguments.length) return void 0 === n[t] ? null : n[t];
  20530. n[t] = e
  20531. } else {
  20532. if (1 === arguments.length) return void 0 === this.options[t] ? null : this.options[t];
  20533. o[t] = e
  20534. } return this._setOptions(o), this
  20535. },
  20536. _setOptions: function (t) {
  20537. var e;
  20538. for (e in t) this._setOption(e, t[e]);
  20539. return this
  20540. },
  20541. _setOption: function (t, e) {
  20542. return "classes" === t && this._setOptionClasses(e), this.options[t] = e, "disabled" === t && this._setOptionDisabled(e), this
  20543. },
  20544. _setOptionClasses: function (t) {
  20545. var e, i, n;
  20546. for (e in t) n = this.classesElementLookup[e], t[e] !== this.options.classes[e] && n && n.length && (i = S(n.get()), this._removeClass(n, e), i.addClass(this._classes({
  20547. element: i,
  20548. keys: e,
  20549. classes: t,
  20550. add: !0
  20551. })))
  20552. },
  20553. _setOptionDisabled: function (t) {
  20554. this._toggleClass(this.widget(), this.widgetFullName + "-disabled", null, !!t), t && (this._removeClass(this.hoverable, null, "ui-state-hover"), this._removeClass(this.focusable, null, "ui-state-focus"))
  20555. },
  20556. enable: function () {
  20557. return this._setOptions({
  20558. disabled: !1
  20559. })
  20560. },
  20561. disable: function () {
  20562. return this._setOptions({
  20563. disabled: !0
  20564. })
  20565. },
  20566. _classes: function (s) {
  20567. function t(t, e) {
  20568. var i, n;
  20569. for (n = 0; t.length > n; n++) i = r.classesElementLookup[t[n]] || S(), i = s.add ? S(S.unique(i.get().concat(s.element.get()))) : S(i.not(s.element).get()), r.classesElementLookup[t[n]] = i, o.push(t[n]), e && s.classes[t[n]] && o.push(s.classes[t[n]])
  20570. }
  20571. var o = [],
  20572. r = this;
  20573. return s = S.extend({
  20574. element: this.element,
  20575. classes: this.options.classes || {}
  20576. }, s), this._on(s.element, {
  20577. remove: "_untrackClassesElement"
  20578. }), s.keys && t(s.keys.match(/\S+/g) || [], !0), s.extra && t(s.extra.match(/\S+/g) || []), o.join(" ")
  20579. },
  20580. _untrackClassesElement: function (i) {
  20581. var n = this;
  20582. S.each(n.classesElementLookup, function (t, e) {
  20583. -1 !== S.inArray(i.target, e) && (n.classesElementLookup[t] = S(e.not(i.target).get()))
  20584. })
  20585. },
  20586. _removeClass: function (t, e, i) {
  20587. return this._toggleClass(t, e, i, !1)
  20588. },
  20589. _addClass: function (t, e, i) {
  20590. return this._toggleClass(t, e, i, !0)
  20591. },
  20592. _toggleClass: function (t, e, i, n) {
  20593. n = "boolean" == typeof n ? n : i;
  20594. var s = "string" == typeof t || null === t,
  20595. o = {
  20596. extra: s ? e : i,
  20597. keys: s ? t : e,
  20598. element: s ? this.element : t,
  20599. add: n
  20600. };
  20601. return o.element.toggleClass(this._classes(o), n), this
  20602. },
  20603. _on: function (r, a, t) {
  20604. var l, c = this;
  20605. "boolean" != typeof r && (t = a, a = r, r = !1), t ? (a = l = S(a), this.bindings = this.bindings.add(a)) : (t = a, a = this.element, l = this.widget()), S.each(t, function (t, e) {
  20606. function i() {
  20607. return r || !0 !== c.options.disabled && !S(this).hasClass("ui-state-disabled") ? ("string" == typeof e ? c[e] : e).apply(c, arguments) : void 0
  20608. }
  20609. "string" != typeof e && (i.guid = e.guid = e.guid || i.guid || S.guid++);
  20610. var n = t.match(/^([\w:-]*)\s*(.*)$/),
  20611. s = n[1] + c.eventNamespace,
  20612. o = n[2];
  20613. o ? l.on(s, o, i) : a.on(s, i)
  20614. })
  20615. },
  20616. _off: function (t, e) {
  20617. e = (e || "").split(" ").join(this.eventNamespace + " ") + this.eventNamespace, t.off(e).off(e), this.bindings = S(this.bindings.not(t).get()), this.focusable = S(this.focusable.not(t).get()), this.hoverable = S(this.hoverable.not(t).get())
  20618. },
  20619. _delay: function (t, e) {
  20620. var i = this;
  20621. return setTimeout(function () {
  20622. return ("string" == typeof t ? i[t] : t).apply(i, arguments)
  20623. }, e || 0)
  20624. },
  20625. _hoverable: function (t) {
  20626. this.hoverable = this.hoverable.add(t), this._on(t, {
  20627. mouseenter: function (t) {
  20628. this._addClass(S(t.currentTarget), null, "ui-state-hover")
  20629. },
  20630. mouseleave: function (t) {
  20631. this._removeClass(S(t.currentTarget), null, "ui-state-hover")
  20632. }
  20633. })
  20634. },
  20635. _focusable: function (t) {
  20636. this.focusable = this.focusable.add(t), this._on(t, {
  20637. focusin: function (t) {
  20638. this._addClass(S(t.currentTarget), null, "ui-state-focus")
  20639. },
  20640. focusout: function (t) {
  20641. this._removeClass(S(t.currentTarget), null, "ui-state-focus")
  20642. }
  20643. })
  20644. },
  20645. _trigger: function (t, e, i) {
  20646. var n, s, o = this.options[t];
  20647. if (i = i || {}, (e = S.Event(e)).type = (t === this.widgetEventPrefix ? t : this.widgetEventPrefix + t).toLowerCase(), e.target = this.element[0], s = e.originalEvent)
  20648. for (n in s) n in e || (e[n] = s[n]);
  20649. return this.element.trigger(e, i), !(S.isFunction(o) && !1 === o.apply(this.element[0], [e].concat(i)) || e.isDefaultPrevented())
  20650. }
  20651. }, S.each({
  20652. show: "fadeIn",
  20653. hide: "fadeOut"
  20654. }, function (o, r) {
  20655. S.Widget.prototype["_" + o] = function (e, t, i) {
  20656. "string" == typeof t && (t = {
  20657. effect: t
  20658. });
  20659. var n, s = t ? !0 === t || "number" == typeof t ? r : t.effect || r : o;
  20660. "number" == typeof (t = t || {}) && (t = {
  20661. duration: t
  20662. }), n = !S.isEmptyObject(t), t.complete = i, t.delay && e.delay(t.delay), n && S.effects && S.effects.effect[s] ? e[o](t) : s !== o && e[s] ? e[s](t.duration, t.easing, i) : e.queue(function (t) {
  20663. S(this)[o](), i && i.call(e[0]), t()
  20664. })
  20665. }
  20666. }), S.widget,
  20667. function () {
  20668. function k(t, e, i) {
  20669. return [parseFloat(t[0]) * (l.test(t[0]) ? e / 100 : 1), parseFloat(t[1]) * (l.test(t[1]) ? i / 100 : 1)]
  20670. }
  20671. function x(t, e) {
  20672. return parseInt(S.css(t, e), 10) || 0
  20673. }
  20674. var s, C = Math.max,
  20675. T = Math.abs,
  20676. n = /left|center|right/,
  20677. o = /top|center|bottom/,
  20678. r = /[\+\-]\d+(\.[\d]+)?%?/,
  20679. a = /^\w+/,
  20680. l = /%$/,
  20681. e = S.fn.position;
  20682. S.position = {
  20683. scrollbarWidth: function () {
  20684. if (void 0 !== s) return s;
  20685. var t, e, i = S("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),
  20686. n = i.children()[0];
  20687. return S("body").append(i), t = n.offsetWidth, i.css("overflow", "scroll"), t === (e = n.offsetWidth) && (e = i[0].clientWidth), i.remove(), s = t - e
  20688. },
  20689. getScrollInfo: function (t) {
  20690. var e = t.isWindow || t.isDocument ? "" : t.element.css("overflow-x"),
  20691. i = t.isWindow || t.isDocument ? "" : t.element.css("overflow-y"),
  20692. n = "scroll" === e || "auto" === e && t.width < t.element[0].scrollWidth;
  20693. return {
  20694. width: "scroll" === i || "auto" === i && t.height < t.element[0].scrollHeight ? S.position.scrollbarWidth() : 0,
  20695. height: n ? S.position.scrollbarWidth() : 0
  20696. }
  20697. },
  20698. getWithinInfo: function (t) {
  20699. var e = S(t || window),
  20700. i = S.isWindow(e[0]),
  20701. n = !!e[0] && 9 === e[0].nodeType;
  20702. return {
  20703. element: e,
  20704. isWindow: i,
  20705. isDocument: n,
  20706. offset: !i && !n ? S(t).offset() : {
  20707. left: 0,
  20708. top: 0
  20709. },
  20710. scrollLeft: e.scrollLeft(),
  20711. scrollTop: e.scrollTop(),
  20712. width: e.outerWidth(),
  20713. height: e.outerHeight()
  20714. }
  20715. }
  20716. }, S.fn.position = function (h) {
  20717. if (!h || !h.of) return e.apply(this, arguments);
  20718. h = S.extend({}, h);
  20719. var d, p, f, g, m, t, v = S(h.of),
  20720. _ = S.position.getWithinInfo(h.within),
  20721. y = S.position.getScrollInfo(_),
  20722. b = (h.collision || "flip").split(" "),
  20723. w = {};
  20724. return t = function (t) {
  20725. var e = t[0];
  20726. return 9 === e.nodeType ? {
  20727. width: t.width(),
  20728. height: t.height(),
  20729. offset: {
  20730. top: 0,
  20731. left: 0
  20732. }
  20733. } : S.isWindow(e) ? {
  20734. width: t.width(),
  20735. height: t.height(),
  20736. offset: {
  20737. top: t.scrollTop(),
  20738. left: t.scrollLeft()
  20739. }
  20740. } : e.preventDefault ? {
  20741. width: 0,
  20742. height: 0,
  20743. offset: {
  20744. top: e.pageY,
  20745. left: e.pageX
  20746. }
  20747. } : {
  20748. width: t.outerWidth(),
  20749. height: t.outerHeight(),
  20750. offset: t.offset()
  20751. }
  20752. }(v), v[0].preventDefault && (h.at = "left top"), p = t.width, f = t.height, g = t.offset, m = S.extend({}, g), S.each(["my", "at"], function () {
  20753. var t, e, i = (h[this] || "").split(" ");
  20754. 1 === i.length && (i = n.test(i[0]) ? i.concat(["center"]) : o.test(i[0]) ? ["center"].concat(i) : ["center", "center"]), i[0] = n.test(i[0]) ? i[0] : "center", i[1] = o.test(i[1]) ? i[1] : "center", t = r.exec(i[0]), e = r.exec(i[1]), w[this] = [t ? t[0] : 0, e ? e[0] : 0], h[this] = [a.exec(i[0])[0], a.exec(i[1])[0]]
  20755. }), 1 === b.length && (b[1] = b[0]), "right" === h.at[0] ? m.left += p : "center" === h.at[0] && (m.left += p / 2), "bottom" === h.at[1] ? m.top += f : "center" === h.at[1] && (m.top += f / 2), d = k(w.at, p, f), m.left += d[0], m.top += d[1], this.each(function () {
  20756. var i, t, r = S(this),
  20757. a = r.outerWidth(),
  20758. l = r.outerHeight(),
  20759. e = x(this, "marginLeft"),
  20760. n = x(this, "marginTop"),
  20761. s = a + e + x(this, "marginRight") + y.width,
  20762. o = l + n + x(this, "marginBottom") + y.height,
  20763. c = S.extend({}, m),
  20764. u = k(w.my, r.outerWidth(), r.outerHeight());
  20765. "right" === h.my[0] ? c.left -= a : "center" === h.my[0] && (c.left -= a / 2), "bottom" === h.my[1] ? c.top -= l : "center" === h.my[1] && (c.top -= l / 2), c.left += u[0], c.top += u[1], i = {
  20766. marginLeft: e,
  20767. marginTop: n
  20768. }, S.each(["left", "top"], function (t, e) {
  20769. S.ui.position[b[t]] && S.ui.position[b[t]][e](c, {
  20770. targetWidth: p,
  20771. targetHeight: f,
  20772. elemWidth: a,
  20773. elemHeight: l,
  20774. collisionPosition: i,
  20775. collisionWidth: s,
  20776. collisionHeight: o,
  20777. offset: [d[0] + u[0], d[1] + u[1]],
  20778. my: h.my,
  20779. at: h.at,
  20780. within: _,
  20781. elem: r
  20782. })
  20783. }), h.using && (t = function (t) {
  20784. var e = g.left - c.left,
  20785. i = e + p - a,
  20786. n = g.top - c.top,
  20787. s = n + f - l,
  20788. o = {
  20789. target: {
  20790. element: v,
  20791. left: g.left,
  20792. top: g.top,
  20793. width: p,
  20794. height: f
  20795. },
  20796. element: {
  20797. element: r,
  20798. left: c.left,
  20799. top: c.top,
  20800. width: a,
  20801. height: l
  20802. },
  20803. horizontal: i < 0 ? "left" : 0 < e ? "right" : "center",
  20804. vertical: s < 0 ? "top" : 0 < n ? "bottom" : "middle"
  20805. };
  20806. p < a && p > T(e + i) && (o.horizontal = "center"), f < l && f > T(n + s) && (o.vertical = "middle"), o.important = C(T(e), T(i)) > C(T(n), T(s)) ? "horizontal" : "vertical", h.using.call(this, t, o)
  20807. }), r.offset(S.extend(c, {
  20808. using: t
  20809. }))
  20810. })
  20811. }, S.ui.position = {
  20812. fit: {
  20813. left: function (t, e) {
  20814. var i, n = e.within,
  20815. s = n.isWindow ? n.scrollLeft : n.offset.left,
  20816. o = n.width,
  20817. r = t.left - e.collisionPosition.marginLeft,
  20818. a = s - r,
  20819. l = r + e.collisionWidth - o - s;
  20820. e.collisionWidth > o ? 0 < a && l <= 0 ? (i = t.left + a + e.collisionWidth - o - s, t.left += a - i) : t.left = 0 < l && a <= 0 ? s : l < a ? s + o - e.collisionWidth : s : 0 < a ? t.left += a : 0 < l ? t.left -= l : t.left = C(t.left - r, t.left)
  20821. },
  20822. top: function (t, e) {
  20823. var i, n = e.within,
  20824. s = n.isWindow ? n.scrollTop : n.offset.top,
  20825. o = e.within.height,
  20826. r = t.top - e.collisionPosition.marginTop,
  20827. a = s - r,
  20828. l = r + e.collisionHeight - o - s;
  20829. e.collisionHeight > o ? 0 < a && l <= 0 ? (i = t.top + a + e.collisionHeight - o - s, t.top += a - i) : t.top = 0 < l && a <= 0 ? s : l < a ? s + o - e.collisionHeight : s : 0 < a ? t.top += a : 0 < l ? t.top -= l : t.top = C(t.top - r, t.top)
  20830. }
  20831. },
  20832. flip: {
  20833. left: function (t, e) {
  20834. var i, n, s = e.within,
  20835. o = s.offset.left + s.scrollLeft,
  20836. r = s.width,
  20837. a = s.isWindow ? s.scrollLeft : s.offset.left,
  20838. l = t.left - e.collisionPosition.marginLeft,
  20839. c = l - a,
  20840. u = l + e.collisionWidth - r - a,
  20841. h = "left" === e.my[0] ? -e.elemWidth : "right" === e.my[0] ? e.elemWidth : 0,
  20842. d = "left" === e.at[0] ? e.targetWidth : "right" === e.at[0] ? -e.targetWidth : 0,
  20843. p = -2 * e.offset[0];
  20844. c < 0 ? ((i = t.left + h + d + p + e.collisionWidth - r - o) < 0 || T(c) > i) && (t.left += h + d + p) : 0 < u && ((0 < (n = t.left - e.collisionPosition.marginLeft + h + d + p - a) || u > T(n)) && (t.left += h + d + p))
  20845. },
  20846. top: function (t, e) {
  20847. var i, n, s = e.within,
  20848. o = s.offset.top + s.scrollTop,
  20849. r = s.height,
  20850. a = s.isWindow ? s.scrollTop : s.offset.top,
  20851. l = t.top - e.collisionPosition.marginTop,
  20852. c = l - a,
  20853. u = l + e.collisionHeight - r - a,
  20854. h = "top" === e.my[1] ? -e.elemHeight : "bottom" === e.my[1] ? e.elemHeight : 0,
  20855. d = "top" === e.at[1] ? e.targetHeight : "bottom" === e.at[1] ? -e.targetHeight : 0,
  20856. p = -2 * e.offset[1];
  20857. c < 0 ? ((n = t.top + h + d + p + e.collisionHeight - r - o) < 0 || T(c) > n) && (t.top += h + d + p) : 0 < u && ((0 < (i = t.top - e.collisionPosition.marginTop + h + d + p - a) || u > T(i)) && (t.top += h + d + p))
  20858. }
  20859. },
  20860. flipfit: {
  20861. left: function () {
  20862. S.ui.position.flip.left.apply(this, arguments), S.ui.position.fit.left.apply(this, arguments)
  20863. },
  20864. top: function () {
  20865. S.ui.position.flip.top.apply(this, arguments), S.ui.position.fit.top.apply(this, arguments)
  20866. }
  20867. }
  20868. }
  20869. }(), S.ui.position, S.extend(S.expr[":"], {
  20870. data: S.expr.createPseudo ? S.expr.createPseudo(function (e) {
  20871. return function (t) {
  20872. return !!S.data(t, e)
  20873. }
  20874. }) : function (t, e, i) {
  20875. return !!S.data(t, i[3])
  20876. }
  20877. }), S.fn.extend({
  20878. disableSelection: (n = "onselectstart" in document.createElement("div") ? "selectstart" : "mousedown", function () {
  20879. return this.on(n + ".ui-disableSelection", function (t) {
  20880. t.preventDefault()
  20881. })
  20882. }),
  20883. enableSelection: function () {
  20884. return this.off(".ui-disableSelection")
  20885. }
  20886. });
  20887. var l, c = "ui-effects-",
  20888. d = "ui-effects-style",
  20889. p = "ui-effects-animated",
  20890. u = S;
  20891. S.effects = {
  20892. effect: {}
  20893. },
  20894. function (u, h) {
  20895. function d(t, e, i) {
  20896. var n = m[e.type] || {};
  20897. return null == t ? i || !e.def ? null : e.def : (t = n.floor ? ~~t : parseFloat(t), isNaN(t) ? e.def : n.mod ? (t + n.mod) % n.mod : t < 0 ? 0 : t > n.max ? n.max : t)
  20898. }
  20899. function a(r) {
  20900. var a = f(),
  20901. l = a._rgba = [];
  20902. return r = r.toLowerCase(), v(t, function (t, e) {
  20903. var i, n = e.re.exec(r),
  20904. s = n && e.parse(n),
  20905. o = e.space || "rgba";
  20906. return s ? (i = a[o](s), a[g[o].cache] = i[g[o].cache], l = a._rgba = i._rgba, !1) : h
  20907. }), l.length ? ("0,0,0,0" === l.join() && u.extend(l, c.transparent), a) : c[r]
  20908. }
  20909. function l(t, e, i) {
  20910. return 6 * (i = (i + 1) % 1) < 1 ? t + 6 * (e - t) * i : 2 * i < 1 ? e : 3 * i < 2 ? t + 6 * (e - t) * (2 / 3 - i) : t
  20911. }
  20912. var c, p = /^([\-+])=\s*(\d+\.?\d*)/,
  20913. t = [{
  20914. re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
  20915. parse: function (t) {
  20916. return [t[1], t[2], t[3], t[4]]
  20917. }
  20918. }, {
  20919. re: /rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
  20920. parse: function (t) {
  20921. return [2.55 * t[1], 2.55 * t[2], 2.55 * t[3], t[4]]
  20922. }
  20923. }, {
  20924. re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,
  20925. parse: function (t) {
  20926. return [parseInt(t[1], 16), parseInt(t[2], 16), parseInt(t[3], 16)]
  20927. }
  20928. }, {
  20929. re: /#([a-f0-9])([a-f0-9])([a-f0-9])/,
  20930. parse: function (t) {
  20931. return [parseInt(t[1] + t[1], 16), parseInt(t[2] + t[2], 16), parseInt(t[3] + t[3], 16)]
  20932. }
  20933. }, {
  20934. re: /hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
  20935. space: "hsla",
  20936. parse: function (t) {
  20937. return [t[1], t[2] / 100, t[3] / 100, t[4]]
  20938. }
  20939. }],
  20940. f = u.Color = function (t, e, i, n) {
  20941. return new u.Color.fn.parse(t, e, i, n)
  20942. },
  20943. g = {
  20944. rgba: {
  20945. props: {
  20946. red: {
  20947. idx: 0,
  20948. type: "byte"
  20949. },
  20950. green: {
  20951. idx: 1,
  20952. type: "byte"
  20953. },
  20954. blue: {
  20955. idx: 2,
  20956. type: "byte"
  20957. }
  20958. }
  20959. },
  20960. hsla: {
  20961. props: {
  20962. hue: {
  20963. idx: 0,
  20964. type: "degrees"
  20965. },
  20966. saturation: {
  20967. idx: 1,
  20968. type: "percent"
  20969. },
  20970. lightness: {
  20971. idx: 2,
  20972. type: "percent"
  20973. }
  20974. }
  20975. }
  20976. },
  20977. m = {
  20978. byte: {
  20979. floor: !0,
  20980. max: 255
  20981. },
  20982. percent: {
  20983. max: 1
  20984. },
  20985. degrees: {
  20986. mod: 360,
  20987. floor: !0
  20988. }
  20989. },
  20990. r = f.support = {},
  20991. e = u("<p>")[0],
  20992. v = u.each;
  20993. e.style.cssText = "background-color:rgba(1,1,1,.5)", r.rgba = -1 < e.style.backgroundColor.indexOf("rgba"), v(g, function (t, e) {
  20994. e.cache = "_" + t, e.props.alpha = {
  20995. idx: 3,
  20996. type: "percent",
  20997. def: 1
  20998. }
  20999. }), f.fn = u.extend(f.prototype, {
  21000. parse: function (s, t, e, i) {
  21001. if (s === h) return this._rgba = [null, null, null, null], this;
  21002. (s.jquery || s.nodeType) && (s = u(s).css(t), t = h);
  21003. var o = this,
  21004. n = u.type(s),
  21005. r = this._rgba = [];
  21006. return t !== h && (s = [s, t, e, i], n = "array"), "string" === n ? this.parse(a(s) || c._default) : "array" === n ? (v(g.rgba.props, function (t, e) {
  21007. r[e.idx] = d(s[e.idx], e)
  21008. }), this) : "object" === n ? (v(g, s instanceof f ? function (t, e) {
  21009. s[e.cache] && (o[e.cache] = s[e.cache].slice())
  21010. } : function (t, i) {
  21011. var n = i.cache;
  21012. v(i.props, function (t, e) {
  21013. if (!o[n] && i.to) {
  21014. if ("alpha" === t || null == s[t]) return;
  21015. o[n] = i.to(o._rgba)
  21016. }
  21017. o[n][e.idx] = d(s[t], e, !0)
  21018. }), o[n] && u.inArray(null, o[n].slice(0, 3)) < 0 && (o[n][3] = 1, i.from && (o._rgba = i.from(o[n])))
  21019. }), this) : h
  21020. },
  21021. is: function (t) {
  21022. var s = f(t),
  21023. o = !0,
  21024. r = this;
  21025. return v(g, function (t, e) {
  21026. var i, n = s[e.cache];
  21027. return n && (i = r[e.cache] || e.to && e.to(r._rgba) || [], v(e.props, function (t, e) {
  21028. return null != n[e.idx] ? o = n[e.idx] === i[e.idx] : h
  21029. })), o
  21030. }), o
  21031. },
  21032. _space: function () {
  21033. var i = [],
  21034. n = this;
  21035. return v(g, function (t, e) {
  21036. n[e.cache] && i.push(t)
  21037. }), i.pop()
  21038. },
  21039. transition: function (t, r) {
  21040. var a = f(t),
  21041. e = a._space(),
  21042. i = g[e],
  21043. n = 0 === this.alpha() ? f("transparent") : this,
  21044. l = n[i.cache] || i.to(n._rgba),
  21045. c = l.slice();
  21046. return a = a[i.cache], v(i.props, function (t, e) {
  21047. var i = e.idx,
  21048. n = l[i],
  21049. s = a[i],
  21050. o = m[e.type] || {};
  21051. null !== s && (null === n ? c[i] = s : (o.mod && (s - n > o.mod / 2 ? n += o.mod : n - s > o.mod / 2 && (n -= o.mod)), c[i] = d((s - n) * r + n, e)))
  21052. }), this[e](c)
  21053. },
  21054. blend: function (t) {
  21055. if (1 === this._rgba[3]) return this;
  21056. var e = this._rgba.slice(),
  21057. i = e.pop(),
  21058. n = f(t)._rgba;
  21059. return f(u.map(e, function (t, e) {
  21060. return (1 - i) * n[e] + i * t
  21061. }))
  21062. },
  21063. toRgbaString: function () {
  21064. var t = "rgba(",
  21065. e = u.map(this._rgba, function (t, e) {
  21066. return null == t ? 2 < e ? 1 : 0 : t
  21067. });
  21068. return 1 === e[3] && (e.pop(), t = "rgb("), t + e.join() + ")"
  21069. },
  21070. toHslaString: function () {
  21071. var t = "hsla(",
  21072. e = u.map(this.hsla(), function (t, e) {
  21073. return null == t && (t = 2 < e ? 1 : 0), e && e < 3 && (t = Math.round(100 * t) + "%"), t
  21074. });
  21075. return 1 === e[3] && (e.pop(), t = "hsl("), t + e.join() + ")"
  21076. },
  21077. toHexString: function (t) {
  21078. var e = this._rgba.slice(),
  21079. i = e.pop();
  21080. return t && e.push(~~(255 * i)), "#" + u.map(e, function (t) {
  21081. return 1 === (t = (t || 0).toString(16)).length ? "0" + t : t
  21082. }).join("")
  21083. },
  21084. toString: function () {
  21085. return 0 === this._rgba[3] ? "transparent" : this.toRgbaString()
  21086. }
  21087. }), f.fn.parse.prototype = f.fn, g.hsla.to = function (t) {
  21088. if (null == t[0] || null == t[1] || null == t[2]) return [null, null, null, t[3]];
  21089. var e, i, n = t[0] / 255,
  21090. s = t[1] / 255,
  21091. o = t[2] / 255,
  21092. r = t[3],
  21093. a = Math.max(n, s, o),
  21094. l = Math.min(n, s, o),
  21095. c = a - l,
  21096. u = a + l,
  21097. h = .5 * u;
  21098. return e = l === a ? 0 : n === a ? 60 * (s - o) / c + 360 : s === a ? 60 * (o - n) / c + 120 : 60 * (n - s) / c + 240, i = 0 == c ? 0 : h <= .5 ? c / u : c / (2 - u), [Math.round(e) % 360, i, h, null == r ? 1 : r]
  21099. }, g.hsla.from = function (t) {
  21100. if (null == t[0] || null == t[1] || null == t[2]) return [null, null, null, t[3]];
  21101. var e = t[0] / 360,
  21102. i = t[1],
  21103. n = t[2],
  21104. s = t[3],
  21105. o = n <= .5 ? n * (1 + i) : n + i - n * i,
  21106. r = 2 * n - o;
  21107. return [Math.round(255 * l(r, o, e + 1 / 3)), Math.round(255 * l(r, o, e)), Math.round(255 * l(r, o, e - 1 / 3)), s]
  21108. }, v(g, function (l, t) {
  21109. var i = t.props,
  21110. r = t.cache,
  21111. a = t.to,
  21112. c = t.from;
  21113. f.fn[l] = function (t) {
  21114. if (a && !this[r] && (this[r] = a(this._rgba)), t === h) return this[r].slice();
  21115. var e, n = u.type(t),
  21116. s = "array" === n || "object" === n ? t : arguments,
  21117. o = this[r].slice();
  21118. return v(i, function (t, e) {
  21119. var i = s["object" === n ? t : e.idx];
  21120. null == i && (i = o[e.idx]), o[e.idx] = d(i, e)
  21121. }), c ? ((e = f(c(o)))[r] = o, e) : f(o)
  21122. }, v(i, function (r, a) {
  21123. f.fn[r] || (f.fn[r] = function (t) {
  21124. var e, i = u.type(t),
  21125. n = "alpha" === r ? this._hsla ? "hsla" : "rgba" : l,
  21126. s = this[n](),
  21127. o = s[a.idx];
  21128. return "undefined" === i ? o : ("function" === i && (t = t.call(this, o), i = u.type(t)), null == t && a.empty ? this : ("string" === i && ((e = p.exec(t)) && (t = o + parseFloat(e[2]) * ("+" === e[1] ? 1 : -1))), s[a.idx] = t, this[n](s)))
  21129. })
  21130. })
  21131. }), f.hook = function (t) {
  21132. var e = t.split(" ");
  21133. v(e, function (t, o) {
  21134. u.cssHooks[o] = {
  21135. set: function (t, e) {
  21136. var i, n, s = "";
  21137. if ("transparent" !== e && ("string" !== u.type(e) || (i = a(e)))) {
  21138. if (e = f(i || e), !r.rgba && 1 !== e._rgba[3]) {
  21139. for (n = "backgroundColor" === o ? t.parentNode : t;
  21140. ("" === s || "transparent" === s) && n && n.style;) try {
  21141. s = u.css(n, "backgroundColor"), n = n.parentNode
  21142. } catch (t) {}
  21143. e = e.blend(s && "transparent" !== s ? s : "_default")
  21144. }
  21145. e = e.toRgbaString()
  21146. }
  21147. try {
  21148. t.style[o] = e
  21149. } catch (t) {}
  21150. }
  21151. }, u.fx.step[o] = function (t) {
  21152. t.colorInit || (t.start = f(t.elem, o), t.end = f(t.end), t.colorInit = !0), u.cssHooks[o].set(t.elem, t.start.transition(t.end, t.pos))
  21153. }
  21154. })
  21155. }, f.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"), u.cssHooks.borderColor = {
  21156. expand: function (i) {
  21157. var n = {};
  21158. return v(["Top", "Right", "Bottom", "Left"], function (t, e) {
  21159. n["border" + e + "Color"] = i
  21160. }), n
  21161. }
  21162. }, c = u.Color.names = {
  21163. aqua: "#00ffff",
  21164. black: "#000000",
  21165. blue: "#0000ff",
  21166. fuchsia: "#ff00ff",
  21167. gray: "#808080",
  21168. green: "#008000",
  21169. lime: "#00ff00",
  21170. maroon: "#800000",
  21171. navy: "#000080",
  21172. olive: "#808000",
  21173. purple: "#800080",
  21174. red: "#ff0000",
  21175. silver: "#c0c0c0",
  21176. teal: "#008080",
  21177. white: "#ffffff",
  21178. yellow: "#ffff00",
  21179. transparent: [null, null, null, 0],
  21180. _default: "#ffffff"
  21181. }
  21182. }(u),
  21183. function () {
  21184. function r(t) {
  21185. var e, i, n = t.ownerDocument.defaultView ? t.ownerDocument.defaultView.getComputedStyle(t, null) : t.currentStyle,
  21186. s = {};
  21187. if (n && n.length && n[0] && n[n[0]])
  21188. for (i = n.length; i--;) "string" == typeof n[e = n[i]] && (s[S.camelCase(e)] = n[e]);
  21189. else
  21190. for (e in n) "string" == typeof n[e] && (s[e] = n[e]);
  21191. return s
  21192. }
  21193. var o, s, a, l = ["add", "remove", "toggle"],
  21194. c = {
  21195. border: 1,
  21196. borderBottom: 1,
  21197. borderColor: 1,
  21198. borderLeft: 1,
  21199. borderRight: 1,
  21200. borderTop: 1,
  21201. borderWidth: 1,
  21202. margin: 1,
  21203. padding: 1
  21204. };
  21205. S.each(["borderLeftStyle", "borderRightStyle", "borderBottomStyle", "borderTopStyle"], function (t, e) {
  21206. S.fx.step[e] = function (t) {
  21207. ("none" !== t.end && !t.setAttr || 1 === t.pos && !t.setAttr) && (u.style(t.elem, e, t.end), t.setAttr = !0)
  21208. }
  21209. }), S.fn.addBack || (S.fn.addBack = function (t) {
  21210. return this.add(null == t ? this.prevObject : this.prevObject.filter(t))
  21211. }), S.effects.animateClass = function (s, t, e, i) {
  21212. var o = S.speed(t, e, i);
  21213. return this.queue(function () {
  21214. var t, i = S(this),
  21215. e = i.attr("class") || "",
  21216. n = o.children ? i.find("*").addBack() : i;
  21217. n = n.map(function () {
  21218. return {
  21219. el: S(this),
  21220. start: r(this)
  21221. }
  21222. }), (t = function () {
  21223. S.each(l, function (t, e) {
  21224. s[e] && i[e + "Class"](s[e])
  21225. })
  21226. })(), n = n.map(function () {
  21227. return this.end = r(this.el[0]), this.diff = function (t, e) {
  21228. var i, n, s = {};
  21229. for (i in e) n = e[i], t[i] !== n && (c[i] || (S.fx.step[i] || !isNaN(parseFloat(n))) && (s[i] = n));
  21230. return s
  21231. }(this.start, this.end), this
  21232. }), i.attr("class", e), n = n.map(function () {
  21233. var t = this,
  21234. e = S.Deferred(),
  21235. i = S.extend({}, o, {
  21236. queue: !1,
  21237. complete: function () {
  21238. e.resolve(t)
  21239. }
  21240. });
  21241. return this.el.animate(this.diff, i), e.promise()
  21242. }), S.when.apply(S, n.get()).done(function () {
  21243. t(), S.each(arguments, function () {
  21244. var e = this.el;
  21245. S.each(this.diff, function (t) {
  21246. e.css(t, "")
  21247. })
  21248. }), o.complete.call(i[0])
  21249. })
  21250. })
  21251. }, S.fn.extend({
  21252. addClass: (a = S.fn.addClass, function (t, e, i, n) {
  21253. return e ? S.effects.animateClass.call(this, {
  21254. add: t
  21255. }, e, i, n) : a.apply(this, arguments)
  21256. }),
  21257. removeClass: (s = S.fn.removeClass, function (t, e, i, n) {
  21258. return 1 < arguments.length ? S.effects.animateClass.call(this, {
  21259. remove: t
  21260. }, e, i, n) : s.apply(this, arguments)
  21261. }),
  21262. toggleClass: (o = S.fn.toggleClass, function (t, e, i, n, s) {
  21263. return "boolean" == typeof e || void 0 === e ? i ? S.effects.animateClass.call(this, e ? {
  21264. add: t
  21265. } : {
  21266. remove: t
  21267. }, i, n, s) : o.apply(this, arguments) : S.effects.animateClass.call(this, {
  21268. toggle: t
  21269. }, e, i, n)
  21270. }),
  21271. switchClass: function (t, e, i, n, s) {
  21272. return S.effects.animateClass.call(this, {
  21273. add: e,
  21274. remove: t
  21275. }, i, n, s)
  21276. }
  21277. })
  21278. }(),
  21279. function () {
  21280. function u(t, e, i, n) {
  21281. return S.isPlainObject(t) && (t = (e = t).effect), t = {
  21282. effect: t
  21283. }, null == e && (e = {}), S.isFunction(e) && (n = e, i = null, e = {}), ("number" == typeof e || S.fx.speeds[e]) && (n = i, i = e, e = {}), S.isFunction(i) && (n = i, i = null), e && S.extend(t, e), i = i || e.duration, t.duration = S.fx.off ? 0 : "number" == typeof i ? i : i in S.fx.speeds ? S.fx.speeds[i] : S.fx.speeds._default, t.complete = n || e.complete, t
  21284. }
  21285. function i(t) {
  21286. return !(t && "number" != typeof t && !S.fx.speeds[t]) || ("string" == typeof t && !S.effects.effect[t] || (!!S.isFunction(t) || "object" == _typeof(t) && !t.effect))
  21287. }
  21288. function e(t, e) {
  21289. var i = e.outerWidth(),
  21290. n = e.outerHeight(),
  21291. s = /^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t) || ["", 0, i, n, 0];
  21292. return {
  21293. top: parseFloat(s[1]) || 0,
  21294. right: "auto" === s[2] ? i : parseFloat(s[2]),
  21295. bottom: "auto" === s[3] ? n : parseFloat(s[3]),
  21296. left: parseFloat(s[4]) || 0
  21297. }
  21298. }
  21299. var n, s, o, r;
  21300. S.expr && S.expr.filters && S.expr.filters.animated && (S.expr.filters.animated = (r = S.expr.filters.animated, function (t) {
  21301. return !!S(t).data(p) || r(t)
  21302. })), !1 !== S.uiBackCompat && S.extend(S.effects, {
  21303. save: function (t, e) {
  21304. for (var i = 0, n = e.length; i < n; i++) null !== e[i] && t.data(c + e[i], t[0].style[e[i]])
  21305. },
  21306. restore: function (t, e) {
  21307. for (var i, n = 0, s = e.length; n < s; n++) null !== e[n] && (i = t.data(c + e[n]), t.css(e[n], i))
  21308. },
  21309. setMode: function (t, e) {
  21310. return "toggle" === e && (e = t.is(":hidden") ? "show" : "hide"), e
  21311. },
  21312. createWrapper: function (i) {
  21313. if (i.parent().is(".ui-effects-wrapper")) return i.parent();
  21314. var n = {
  21315. width: i.outerWidth(!0),
  21316. height: i.outerHeight(!0),
  21317. float: i.css("float")
  21318. },
  21319. t = S("<div></div>").addClass("ui-effects-wrapper").css({
  21320. fontSize: "100%",
  21321. background: "transparent",
  21322. border: "none",
  21323. margin: 0,
  21324. padding: 0
  21325. }),
  21326. e = {
  21327. width: i.width(),
  21328. height: i.height()
  21329. },
  21330. s = document.activeElement;
  21331. try {
  21332. s.id
  21333. } catch (t) {
  21334. s = document.body
  21335. }
  21336. return i.wrap(t), (i[0] === s || S.contains(i[0], s)) && S(s).trigger("focus"), t = i.parent(), "static" === i.css("position") ? (t.css({
  21337. position: "relative"
  21338. }), i.css({
  21339. position: "relative"
  21340. })) : (S.extend(n, {
  21341. position: i.css("position"),
  21342. zIndex: i.css("z-index")
  21343. }), S.each(["top", "left", "bottom", "right"], function (t, e) {
  21344. n[e] = i.css(e), isNaN(parseInt(n[e], 10)) && (n[e] = "auto")
  21345. }), i.css({
  21346. position: "relative",
  21347. top: 0,
  21348. left: 0,
  21349. right: "auto",
  21350. bottom: "auto"
  21351. })), i.css(e), t.css(n).show()
  21352. },
  21353. removeWrapper: function (t) {
  21354. var e = document.activeElement;
  21355. return t.parent().is(".ui-effects-wrapper") && (t.parent().replaceWith(t), (t[0] === e || S.contains(t[0], e)) && S(e).trigger("focus")), t
  21356. }
  21357. }), S.extend(S.effects, {
  21358. version: "1.12.1",
  21359. define: function (t, e, i) {
  21360. return i || (i = e, e = "effect"), S.effects.effect[t] = i, S.effects.effect[t].mode = e, i
  21361. },
  21362. scaledDimensions: function (t, e, i) {
  21363. if (0 === e) return {
  21364. height: 0,
  21365. width: 0,
  21366. outerHeight: 0,
  21367. outerWidth: 0
  21368. };
  21369. var n = "horizontal" !== i ? (e || 100) / 100 : 1,
  21370. s = "vertical" !== i ? (e || 100) / 100 : 1;
  21371. return {
  21372. height: t.height() * s,
  21373. width: t.width() * n,
  21374. outerHeight: t.outerHeight() * s,
  21375. outerWidth: t.outerWidth() * n
  21376. }
  21377. },
  21378. clipToBox: function (t) {
  21379. return {
  21380. width: t.clip.right - t.clip.left,
  21381. height: t.clip.bottom - t.clip.top,
  21382. left: t.clip.left,
  21383. top: t.clip.top
  21384. }
  21385. },
  21386. unshift: function (t, e, i) {
  21387. var n = t.queue();
  21388. 1 < e && n.splice.apply(n, [1, 0].concat(n.splice(e, i))), t.dequeue()
  21389. },
  21390. saveStyle: function (t) {
  21391. t.data(d, t[0].style.cssText)
  21392. },
  21393. restoreStyle: function (t) {
  21394. t[0].style.cssText = t.data(d) || "", t.removeData(d)
  21395. },
  21396. mode: function (t, e) {
  21397. var i = t.is(":hidden");
  21398. return "toggle" === e && (e = i ? "show" : "hide"), (i ? "hide" === e : "show" === e) && (e = "none"), e
  21399. },
  21400. getBaseline: function (t, e) {
  21401. var i, n;
  21402. switch (t[0]) {
  21403. case "top":
  21404. i = 0;
  21405. break;
  21406. case "middle":
  21407. i = .5;
  21408. break;
  21409. case "bottom":
  21410. i = 1;
  21411. break;
  21412. default:
  21413. i = t[0] / e.height
  21414. }
  21415. switch (t[1]) {
  21416. case "left":
  21417. n = 0;
  21418. break;
  21419. case "center":
  21420. n = .5;
  21421. break;
  21422. case "right":
  21423. n = 1;
  21424. break;
  21425. default:
  21426. n = t[1] / e.width
  21427. }
  21428. return {
  21429. x: n,
  21430. y: i
  21431. }
  21432. },
  21433. createPlaceholder: function (t) {
  21434. var e, i = t.css("position"),
  21435. n = t.position();
  21436. return t.css({
  21437. marginTop: t.css("marginTop"),
  21438. marginBottom: t.css("marginBottom"),
  21439. marginLeft: t.css("marginLeft"),
  21440. marginRight: t.css("marginRight")
  21441. }).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()), /^(static|relative)/.test(i) && (i = "absolute", e = S("<" + t[0].nodeName + ">").insertAfter(t).css({
  21442. display: /^(inline|ruby)/.test(t.css("display")) ? "inline-block" : "block",
  21443. visibility: "hidden",
  21444. marginTop: t.css("marginTop"),
  21445. marginBottom: t.css("marginBottom"),
  21446. marginLeft: t.css("marginLeft"),
  21447. marginRight: t.css("marginRight"),
  21448. float: t.css("float")
  21449. }).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"), t.data(c + "placeholder", e)), t.css({
  21450. position: i,
  21451. left: n.left,
  21452. top: n.top
  21453. }), e
  21454. },
  21455. removePlaceholder: function (t) {
  21456. var e = c + "placeholder",
  21457. i = t.data(e);
  21458. i && (i.remove(), t.removeData(e))
  21459. },
  21460. cleanUp: function (t) {
  21461. S.effects.restoreStyle(t), S.effects.removePlaceholder(t)
  21462. },
  21463. setTransition: function (n, t, s, o) {
  21464. return o = o || {}, S.each(t, function (t, e) {
  21465. var i = n.cssUnit(e);
  21466. 0 < i[0] && (o[e] = i[0] * s + i[1])
  21467. }), o
  21468. }
  21469. }), S.fn.extend({
  21470. effect: function () {
  21471. function t(t) {
  21472. function e() {
  21473. S.isFunction(a) && a.call(i[0]), S.isFunction(t) && t()
  21474. }
  21475. var i = S(this);
  21476. n.mode = c.shift(), !1 === S.uiBackCompat || o ? "none" === n.mode ? (i[l](), e()) : s.call(i[0], n, function () {
  21477. i.removeData(p), S.effects.cleanUp(i), "hide" === n.mode && i.hide(), e()
  21478. }) : (i.is(":hidden") ? "hide" === l : "show" === l) ? (i[l](), e()) : s.call(i[0], n, e)
  21479. }
  21480. function e(t) {
  21481. var e = S(this),
  21482. i = S.effects.mode(e, l) || o;
  21483. e.data(p, !0), c.push(i), o && ("show" === i || i === o && "hide" === i) && e.show(), o && "none" === i || S.effects.saveStyle(e), S.isFunction(t) && t()
  21484. }
  21485. var n = u.apply(this, arguments),
  21486. s = S.effects.effect[n.effect],
  21487. o = s.mode,
  21488. i = n.queue,
  21489. r = i || "fx",
  21490. a = n.complete,
  21491. l = n.mode,
  21492. c = [];
  21493. return S.fx.off || !s ? l ? this[l](n.duration, a) : this.each(function () {
  21494. a && a.call(this)
  21495. }) : !1 === i ? this.each(e).each(t) : this.queue(r, e).queue(r, t)
  21496. },
  21497. show: (o = S.fn.show, function (t) {
  21498. if (i(t)) return o.apply(this, arguments);
  21499. var e = u.apply(this, arguments);
  21500. return e.mode = "show", this.effect.call(this, e)
  21501. }),
  21502. hide: (s = S.fn.hide, function (t) {
  21503. if (i(t)) return s.apply(this, arguments);
  21504. var e = u.apply(this, arguments);
  21505. return e.mode = "hide", this.effect.call(this, e)
  21506. }),
  21507. toggle: (n = S.fn.toggle, function (t) {
  21508. if (i(t) || "boolean" == typeof t) return n.apply(this, arguments);
  21509. var e = u.apply(this, arguments);
  21510. return e.mode = "toggle", this.effect.call(this, e)
  21511. }),
  21512. cssUnit: function (t) {
  21513. var i = this.css(t),
  21514. n = [];
  21515. return S.each(["em", "px", "%", "pt"], function (t, e) {
  21516. 0 < i.indexOf(e) && (n = [parseFloat(i), e])
  21517. }), n
  21518. },
  21519. cssClip: function (t) {
  21520. return t ? this.css("clip", "rect(" + t.top + "px " + t.right + "px " + t.bottom + "px " + t.left + "px)") : e(this.css("clip"), this)
  21521. },
  21522. transfer: function (t, e) {
  21523. var i = S(this),
  21524. n = S(t.to),
  21525. s = "fixed" === n.css("position"),
  21526. o = S("body"),
  21527. r = s ? o.scrollTop() : 0,
  21528. a = s ? o.scrollLeft() : 0,
  21529. l = n.offset(),
  21530. c = {
  21531. top: l.top - r,
  21532. left: l.left - a,
  21533. height: n.innerHeight(),
  21534. width: n.innerWidth()
  21535. },
  21536. u = i.offset(),
  21537. h = S("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(t.className).css({
  21538. top: u.top - r,
  21539. left: u.left - a,
  21540. height: i.innerHeight(),
  21541. width: i.innerWidth(),
  21542. position: s ? "fixed" : "absolute"
  21543. }).animate(c, t.duration, t.easing, function () {
  21544. h.remove(), S.isFunction(e) && e()
  21545. })
  21546. }
  21547. }), S.fx.step.clip = function (t) {
  21548. t.clipInit || (t.start = S(t.elem).cssClip(), "string" == typeof t.end && (t.end = e(t.end, t.elem)), t.clipInit = !0), S(t.elem).cssClip({
  21549. top: t.pos * (t.end.top - t.start.top) + t.start.top,
  21550. right: t.pos * (t.end.right - t.start.right) + t.start.right,
  21551. bottom: t.pos * (t.end.bottom - t.start.bottom) + t.start.bottom,
  21552. left: t.pos * (t.end.left - t.start.left) + t.start.left
  21553. })
  21554. }
  21555. }(), l = {}, S.each(["Quad", "Cubic", "Quart", "Quint", "Expo"], function (e, t) {
  21556. l[t] = function (t) {
  21557. return Math.pow(t, e + 2)
  21558. }
  21559. }), S.extend(l, {
  21560. Sine: function (t) {
  21561. return 1 - Math.cos(t * Math.PI / 2)
  21562. },
  21563. Circ: function (t) {
  21564. return 1 - Math.sqrt(1 - t * t)
  21565. },
  21566. Elastic: function (t) {
  21567. return 0 === t || 1 === t ? t : -Math.pow(2, 8 * (t - 1)) * Math.sin((80 * (t - 1) - 7.5) * Math.PI / 15)
  21568. },
  21569. Back: function (t) {
  21570. return t * t * (3 * t - 2)
  21571. },
  21572. Bounce: function (t) {
  21573. for (var e, i = 4;
  21574. ((e = Math.pow(2, --i)) - 1) / 11 > t;);
  21575. return 1 / Math.pow(4, 3 - i) - 7.5625 * Math.pow((3 * e - 2) / 22 - t, 2)
  21576. }
  21577. }), S.each(l, function (t, e) {
  21578. S.easing["easeIn" + t] = e, S.easing["easeOut" + t] = function (t) {
  21579. return 1 - e(1 - t)
  21580. }, S.easing["easeInOut" + t] = function (t) {
  21581. return t < .5 ? e(2 * t) / 2 : 1 - e(-2 * t + 2) / 2
  21582. }
  21583. });
  21584. var f, g;
  21585. S.effects;
  21586. S.effects.define("blind", "hide", function (t, e) {
  21587. var i = {
  21588. up: ["bottom", "top"],
  21589. vertical: ["bottom", "top"],
  21590. down: ["top", "bottom"],
  21591. left: ["right", "left"],
  21592. horizontal: ["right", "left"],
  21593. right: ["left", "right"]
  21594. },
  21595. n = S(this),
  21596. s = t.direction || "up",
  21597. o = n.cssClip(),
  21598. r = {
  21599. clip: S.extend({}, o)
  21600. },
  21601. a = S.effects.createPlaceholder(n);
  21602. r.clip[i[s][0]] = r.clip[i[s][1]], "show" === t.mode && (n.cssClip(r.clip), a && a.css(S.effects.clipToBox(r)), r.clip = o), a && a.animate(S.effects.clipToBox(r), t.duration, t.easing), n.animate(r, {
  21603. queue: !1,
  21604. duration: t.duration,
  21605. easing: t.easing,
  21606. complete: e
  21607. })
  21608. }), S.effects.define("bounce", function (t, e) {
  21609. var i, n, s, o = S(this),
  21610. r = t.mode,
  21611. a = "hide" === r,
  21612. l = "show" === r,
  21613. c = t.direction || "up",
  21614. u = t.distance,
  21615. h = t.times || 5,
  21616. d = 2 * h + (l || a ? 1 : 0),
  21617. p = t.duration / d,
  21618. f = t.easing,
  21619. g = "up" === c || "down" === c ? "top" : "left",
  21620. m = "up" === c || "left" === c,
  21621. v = 0,
  21622. _ = o.queue().length;
  21623. for (S.effects.createPlaceholder(o), s = o.css(g), u || (u = o["top" == g ? "outerHeight" : "outerWidth"]() / 3), l && ((n = {
  21624. opacity: 1
  21625. })[g] = s, o.css("opacity", 0).css(g, m ? 2 * -u : 2 * u).animate(n, p, f)), a && (u /= Math.pow(2, h - 1)), (n = {})[g] = s; v < h; v++)(i = {})[g] = (m ? "-=" : "+=") + u, o.animate(i, p, f).animate(n, p, f), u = a ? 2 * u : u / 2;
  21626. a && ((i = {
  21627. opacity: 0
  21628. })[g] = (m ? "-=" : "+=") + u, o.animate(i, p, f)), o.queue(e), S.effects.unshift(o, _, 1 + d)
  21629. }), S.effects.define("clip", "hide", function (t, e) {
  21630. var i, n = {},
  21631. s = S(this),
  21632. o = t.direction || "vertical",
  21633. r = "both" === o,
  21634. a = r || "horizontal" === o,
  21635. l = r || "vertical" === o;
  21636. i = s.cssClip(), n.clip = {
  21637. top: l ? (i.bottom - i.top) / 2 : i.top,
  21638. right: a ? (i.right - i.left) / 2 : i.right,
  21639. bottom: l ? (i.bottom - i.top) / 2 : i.bottom,
  21640. left: a ? (i.right - i.left) / 2 : i.left
  21641. }, S.effects.createPlaceholder(s), "show" === t.mode && (s.cssClip(n.clip), n.clip = i), s.animate(n, {
  21642. queue: !1,
  21643. duration: t.duration,
  21644. easing: t.easing,
  21645. complete: e
  21646. })
  21647. }), S.effects.define("drop", "hide", function (t, e) {
  21648. var i, n = S(this),
  21649. s = "show" === t.mode,
  21650. o = t.direction || "left",
  21651. r = "up" === o || "down" === o ? "top" : "left",
  21652. a = "up" === o || "left" === o ? "-=" : "+=",
  21653. l = "+=" == a ? "-=" : "+=",
  21654. c = {
  21655. opacity: 0
  21656. };
  21657. S.effects.createPlaceholder(n), i = t.distance || n["top" == r ? "outerHeight" : "outerWidth"](!0) / 2, c[r] = a + i, s && (n.css(c), c[r] = l + i, c.opacity = 1), n.animate(c, {
  21658. queue: !1,
  21659. duration: t.duration,
  21660. easing: t.easing,
  21661. complete: e
  21662. })
  21663. }), S.effects.define("explode", "hide", function (t, e) {
  21664. function i() {
  21665. m.push(this), m.length === c * u && (h.css({
  21666. visibility: "visible"
  21667. }), S(m).remove(), e())
  21668. }
  21669. var n, s, o, r, a, l, c = t.pieces ? Math.round(Math.sqrt(t.pieces)) : 3,
  21670. u = c,
  21671. h = S(this),
  21672. d = "show" === t.mode,
  21673. p = h.show().css("visibility", "hidden").offset(),
  21674. f = Math.ceil(h.outerWidth() / u),
  21675. g = Math.ceil(h.outerHeight() / c),
  21676. m = [];
  21677. for (n = 0; n < c; n++)
  21678. for (r = p.top + n * g, l = n - (c - 1) / 2, s = 0; s < u; s++) o = p.left + s * f, a = s - (u - 1) / 2, h.clone().appendTo("body").wrap("<div></div>").css({
  21679. position: "absolute",
  21680. visibility: "visible",
  21681. left: -s * f,
  21682. top: -n * g
  21683. }).parent().addClass("ui-effects-explode").css({
  21684. position: "absolute",
  21685. overflow: "hidden",
  21686. width: f,
  21687. height: g,
  21688. left: o + (d ? a * f : 0),
  21689. top: r + (d ? l * g : 0),
  21690. opacity: d ? 0 : 1
  21691. }).animate({
  21692. left: o + (d ? 0 : a * f),
  21693. top: r + (d ? 0 : l * g),
  21694. opacity: d ? 1 : 0
  21695. }, t.duration || 500, t.easing, i)
  21696. }), S.effects.define("fade", "toggle", function (t, e) {
  21697. var i = "show" === t.mode;
  21698. S(this).css("opacity", i ? 0 : 1).animate({
  21699. opacity: i ? 1 : 0
  21700. }, {
  21701. queue: !1,
  21702. duration: t.duration,
  21703. easing: t.easing,
  21704. complete: e
  21705. })
  21706. }), S.effects.define("fold", "hide", function (e, t) {
  21707. var i = S(this),
  21708. n = e.mode,
  21709. s = "show" === n,
  21710. o = "hide" === n,
  21711. r = e.size || 15,
  21712. a = /([0-9]+)%/.exec(r),
  21713. l = !!e.horizFirst ? ["right", "bottom"] : ["bottom", "right"],
  21714. c = e.duration / 2,
  21715. u = S.effects.createPlaceholder(i),
  21716. h = i.cssClip(),
  21717. d = {
  21718. clip: S.extend({}, h)
  21719. },
  21720. p = {
  21721. clip: S.extend({}, h)
  21722. },
  21723. f = [h[l[0]], h[l[1]]],
  21724. g = i.queue().length;
  21725. a && (r = parseInt(a[1], 10) / 100 * f[o ? 0 : 1]), d.clip[l[0]] = r, p.clip[l[0]] = r, p.clip[l[1]] = 0, s && (i.cssClip(p.clip), u && u.css(S.effects.clipToBox(p)), p.clip = h), i.queue(function (t) {
  21726. u && u.animate(S.effects.clipToBox(d), c, e.easing).animate(S.effects.clipToBox(p), c, e.easing), t()
  21727. }).animate(d, c, e.easing).animate(p, c, e.easing).queue(t), S.effects.unshift(i, g, 4)
  21728. }), S.effects.define("highlight", "show", function (t, e) {
  21729. var i = S(this),
  21730. n = {
  21731. backgroundColor: i.css("backgroundColor")
  21732. };
  21733. "hide" === t.mode && (n.opacity = 0), S.effects.saveStyle(i), i.css({
  21734. backgroundImage: "none",
  21735. backgroundColor: t.color || "#ffff99"
  21736. }).animate(n, {
  21737. queue: !1,
  21738. duration: t.duration,
  21739. easing: t.easing,
  21740. complete: e
  21741. })
  21742. }), S.effects.define("size", function (s, e) {
  21743. var t, o, i, n = S(this),
  21744. r = ["fontSize"],
  21745. a = ["borderTopWidth", "borderBottomWidth", "paddingTop", "paddingBottom"],
  21746. l = ["borderLeftWidth", "borderRightWidth", "paddingLeft", "paddingRight"],
  21747. c = s.mode,
  21748. u = "effect" !== c,
  21749. h = s.scale || "both",
  21750. d = s.origin || ["middle", "center"],
  21751. p = n.css("position"),
  21752. f = n.position(),
  21753. g = S.effects.scaledDimensions(n),
  21754. m = s.from || g,
  21755. v = s.to || S.effects.scaledDimensions(n, 0);
  21756. S.effects.createPlaceholder(n), "show" === c && (i = m, m = v, v = i), o = {
  21757. from: {
  21758. y: m.height / g.height,
  21759. x: m.width / g.width
  21760. },
  21761. to: {
  21762. y: v.height / g.height,
  21763. x: v.width / g.width
  21764. }
  21765. }, ("box" === h || "both" === h) && (o.from.y !== o.to.y && (m = S.effects.setTransition(n, a, o.from.y, m), v = S.effects.setTransition(n, a, o.to.y, v)), o.from.x !== o.to.x && (m = S.effects.setTransition(n, l, o.from.x, m), v = S.effects.setTransition(n, l, o.to.x, v))), ("content" === h || "both" === h) && o.from.y !== o.to.y && (m = S.effects.setTransition(n, r, o.from.y, m), v = S.effects.setTransition(n, r, o.to.y, v)), d && (t = S.effects.getBaseline(d, g), m.top = (g.outerHeight - m.outerHeight) * t.y + f.top, m.left = (g.outerWidth - m.outerWidth) * t.x + f.left, v.top = (g.outerHeight - v.outerHeight) * t.y + f.top, v.left = (g.outerWidth - v.outerWidth) * t.x + f.left), n.css(m), ("content" === h || "both" === h) && (a = a.concat(["marginTop", "marginBottom"]).concat(r), l = l.concat(["marginLeft", "marginRight"]), n.find("*[width]").each(function () {
  21766. var t = S(this),
  21767. e = S.effects.scaledDimensions(t),
  21768. i = {
  21769. height: e.height * o.from.y,
  21770. width: e.width * o.from.x,
  21771. outerHeight: e.outerHeight * o.from.y,
  21772. outerWidth: e.outerWidth * o.from.x
  21773. },
  21774. n = {
  21775. height: e.height * o.to.y,
  21776. width: e.width * o.to.x,
  21777. outerHeight: e.height * o.to.y,
  21778. outerWidth: e.width * o.to.x
  21779. };
  21780. o.from.y !== o.to.y && (i = S.effects.setTransition(t, a, o.from.y, i), n = S.effects.setTransition(t, a, o.to.y, n)), o.from.x !== o.to.x && (i = S.effects.setTransition(t, l, o.from.x, i), n = S.effects.setTransition(t, l, o.to.x, n)), u && S.effects.saveStyle(t), t.css(i), t.animate(n, s.duration, s.easing, function () {
  21781. u && S.effects.restoreStyle(t)
  21782. })
  21783. })), n.animate(v, {
  21784. queue: !1,
  21785. duration: s.duration,
  21786. easing: s.easing,
  21787. complete: function () {
  21788. var t = n.offset();
  21789. 0 === v.opacity && n.css("opacity", m.opacity), u || (n.css("position", "static" === p ? "relative" : p).offset(t), S.effects.saveStyle(n)), e()
  21790. }
  21791. })
  21792. }), S.effects.define("scale", function (t, e) {
  21793. var i = S(this),
  21794. n = t.mode,
  21795. s = parseInt(t.percent, 10) || (0 === parseInt(t.percent, 10) ? 0 : "effect" !== n ? 0 : 100),
  21796. o = S.extend(!0, {
  21797. from: S.effects.scaledDimensions(i),
  21798. to: S.effects.scaledDimensions(i, s, t.direction || "both"),
  21799. origin: t.origin || ["middle", "center"]
  21800. }, t);
  21801. t.fade && (o.from.opacity = 1, o.to.opacity = 0), S.effects.effect.size.call(this, o, e)
  21802. }), S.effects.define("puff", "hide", function (t, e) {
  21803. var i = S.extend(!0, {}, t, {
  21804. fade: !0,
  21805. percent: parseInt(t.percent, 10) || 150
  21806. });
  21807. S.effects.effect.scale.call(this, i, e)
  21808. }), S.effects.define("pulsate", "show", function (t, e) {
  21809. var i = S(this),
  21810. n = t.mode,
  21811. s = "show" === n,
  21812. o = s || "hide" === n,
  21813. r = 2 * (t.times || 5) + (o ? 1 : 0),
  21814. a = t.duration / r,
  21815. l = 0,
  21816. c = 1,
  21817. u = i.queue().length;
  21818. for ((s || !i.is(":visible")) && (i.css("opacity", 0).show(), l = 1); c < r; c++) i.animate({
  21819. opacity: l
  21820. }, a, t.easing), l = 1 - l;
  21821. i.animate({
  21822. opacity: l
  21823. }, a, t.easing), i.queue(e), S.effects.unshift(i, u, 1 + r)
  21824. }), S.effects.define("shake", function (t, e) {
  21825. var i = 1,
  21826. n = S(this),
  21827. s = t.direction || "left",
  21828. o = t.distance || 20,
  21829. r = t.times || 3,
  21830. a = 2 * r + 1,
  21831. l = Math.round(t.duration / a),
  21832. c = "up" === s || "down" === s ? "top" : "left",
  21833. u = "up" === s || "left" === s,
  21834. h = {},
  21835. d = {},
  21836. p = {},
  21837. f = n.queue().length;
  21838. for (S.effects.createPlaceholder(n), h[c] = (u ? "-=" : "+=") + o, d[c] = (u ? "+=" : "-=") + 2 * o, p[c] = (u ? "-=" : "+=") + 2 * o, n.animate(h, l, t.easing); i < r; i++) n.animate(d, l, t.easing).animate(p, l, t.easing);
  21839. n.animate(d, l, t.easing).animate(h, l / 2, t.easing).queue(e), S.effects.unshift(n, f, 1 + a)
  21840. }), S.effects.define("slide", "show", function (t, e) {
  21841. var i, n, s = S(this),
  21842. o = {
  21843. up: ["bottom", "top"],
  21844. down: ["top", "bottom"],
  21845. left: ["right", "left"],
  21846. right: ["left", "right"]
  21847. },
  21848. r = t.mode,
  21849. a = t.direction || "left",
  21850. l = "up" === a || "down" === a ? "top" : "left",
  21851. c = "up" === a || "left" === a,
  21852. u = t.distance || s["top" == l ? "outerHeight" : "outerWidth"](!0),
  21853. h = {};
  21854. S.effects.createPlaceholder(s), i = s.cssClip(), n = s.position()[l], h[l] = (c ? -1 : 1) * u + n, h.clip = s.cssClip(), h.clip[o[a][1]] = h.clip[o[a][0]], "show" === r && (s.cssClip(h.clip), s.css(l, h[l]), h.clip = i, h[l] = n), s.animate(h, {
  21855. queue: !1,
  21856. duration: t.duration,
  21857. easing: t.easing,
  21858. complete: e
  21859. })
  21860. }), !1 !== S.uiBackCompat && S.effects.define("transfer", function (t, e) {
  21861. S(this).transfer(t, e)
  21862. }), S.ui.focusable = function (t, e) {
  21863. var i, n, s, o, r, a = t.nodeName.toLowerCase();
  21864. return "area" === a ? (n = (i = t.parentNode).name, !(!t.href || !n || "map" !== i.nodeName.toLowerCase()) && (0 < (s = S("img[usemap='#" + n + "']")).length && s.is(":visible"))) : (/^(input|select|textarea|button|object)$/.test(a) ? (o = !t.disabled) && ((r = S(t).closest("fieldset")[0]) && (o = !r.disabled)) : o = "a" === a && t.href || e, o && S(t).is(":visible") && function (t) {
  21865. for (var e = t.css("visibility");
  21866. "inherit" === e;) e = (t = t.parent()).css("visibility");
  21867. return "hidden" !== e
  21868. }(S(t)))
  21869. }, S.extend(S.expr[":"], {
  21870. focusable: function (t) {
  21871. return S.ui.focusable(t, null != S.attr(t, "tabindex"))
  21872. }
  21873. }), S.ui.focusable, S.fn.form = function () {
  21874. return "string" == typeof this[0].form ? this.closest("form") : S(this[0].form)
  21875. }, S.ui.formResetMixin = {
  21876. _formResetHandler: function () {
  21877. var e = S(this);
  21878. setTimeout(function () {
  21879. var t = e.data("ui-form-reset-instances");
  21880. S.each(t, function () {
  21881. this.refresh()
  21882. })
  21883. })
  21884. },
  21885. _bindFormResetHandler: function () {
  21886. if (this.form = this.element.form(), this.form.length) {
  21887. var t = this.form.data("ui-form-reset-instances") || [];
  21888. t.length || this.form.on("reset.ui-form-reset", this._formResetHandler), t.push(this), this.form.data("ui-form-reset-instances", t)
  21889. }
  21890. },
  21891. _unbindFormResetHandler: function () {
  21892. if (this.form.length) {
  21893. var t = this.form.data("ui-form-reset-instances");
  21894. t.splice(S.inArray(this, t), 1), t.length ? this.form.data("ui-form-reset-instances", t) : this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")
  21895. }
  21896. }
  21897. }, "1.7" === S.fn.jquery.substring(0, 3) && (S.each(["Width", "Height"], function (t, i) {
  21898. function n(t, e, i, n) {
  21899. return S.each(s, function () {
  21900. e -= parseFloat(S.css(t, "padding" + this)) || 0, i && (e -= parseFloat(S.css(t, "border" + this + "Width")) || 0), n && (e -= parseFloat(S.css(t, "margin" + this)) || 0)
  21901. }), e
  21902. }
  21903. var s = "Width" === i ? ["Left", "Right"] : ["Top", "Bottom"],
  21904. o = i.toLowerCase(),
  21905. r = {
  21906. innerWidth: S.fn.innerWidth,
  21907. innerHeight: S.fn.innerHeight,
  21908. outerWidth: S.fn.outerWidth,
  21909. outerHeight: S.fn.outerHeight
  21910. };
  21911. S.fn["inner" + i] = function (t) {
  21912. return void 0 === t ? r["inner" + i].call(this) : this.each(function () {
  21913. S(this).css(o, n(this, t) + "px")
  21914. })
  21915. }, S.fn["outer" + i] = function (t, e) {
  21916. return "number" != typeof t ? r["outer" + i].call(this, t) : this.each(function () {
  21917. S(this).css(o, n(this, t, !0, e) + "px")
  21918. })
  21919. }
  21920. }), S.fn.addBack = function (t) {
  21921. return this.add(null == t ? this.prevObject : this.prevObject.filter(t))
  21922. }), S.ui.keyCode = {
  21923. BACKSPACE: 8,
  21924. COMMA: 188,
  21925. DELETE: 46,
  21926. DOWN: 40,
  21927. END: 35,
  21928. ENTER: 13,
  21929. ESCAPE: 27,
  21930. HOME: 36,
  21931. LEFT: 37,
  21932. PAGE_DOWN: 34,
  21933. PAGE_UP: 33,
  21934. PERIOD: 190,
  21935. RIGHT: 39,
  21936. SPACE: 32,
  21937. TAB: 9,
  21938. UP: 38
  21939. }, S.ui.escapeSelector = (g = /([!"#$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g, function (t) {
  21940. return t.replace(g, "\\$1")
  21941. }), S.fn.labels = function () {
  21942. var t, e, i, n, s;
  21943. return this[0].labels && this[0].labels.length ? this.pushStack(this[0].labels) : (n = this.eq(0).parents("label"), (i = this.attr("id")) && (s = (t = this.eq(0).parents().last()).add(t.length ? t.siblings() : this.siblings()), e = "label[for='" + S.ui.escapeSelector(i) + "']", n = n.add(s.find(e).addBack(e))), this.pushStack(n))
  21944. }, S.fn.scrollParent = function (t) {
  21945. var e = this.css("position"),
  21946. i = "absolute" === e,
  21947. n = t ? /(auto|scroll|hidden)/ : /(auto|scroll)/,
  21948. s = this.parents().filter(function () {
  21949. var t = S(this);
  21950. return (!i || "static" !== t.css("position")) && n.test(t.css("overflow") + t.css("overflow-y") + t.css("overflow-x"))
  21951. }).eq(0);
  21952. return "fixed" !== e && s.length ? s : S(this[0].ownerDocument || document)
  21953. }, S.extend(S.expr[":"], {
  21954. tabbable: function (t) {
  21955. var e = S.attr(t, "tabindex"),
  21956. i = null != e;
  21957. return (!i || 0 <= e) && S.ui.focusable(t, i)
  21958. }
  21959. }), S.fn.extend({
  21960. uniqueId: (f = 0, function () {
  21961. return this.each(function () {
  21962. this.id || (this.id = "ui-id-" + ++f)
  21963. })
  21964. }),
  21965. removeUniqueId: function () {
  21966. return this.each(function () {
  21967. /^ui-id-\d+$/.test(this.id) && S(this).removeAttr("id")
  21968. })
  21969. }
  21970. }), S.widget("ui.accordion", {
  21971. version: "1.12.1",
  21972. options: {
  21973. active: 0,
  21974. animate: {},
  21975. classes: {
  21976. "ui-accordion-header": "ui-corner-top",
  21977. "ui-accordion-header-collapsed": "ui-corner-all",
  21978. "ui-accordion-content": "ui-corner-bottom"
  21979. },
  21980. collapsible: !1,
  21981. event: "click",
  21982. header: "> li > :first-child, > :not(li):even",
  21983. heightStyle: "auto",
  21984. icons: {
  21985. activeHeader: "ui-icon-triangle-1-s",
  21986. header: "ui-icon-triangle-1-e"
  21987. },
  21988. activate: null,
  21989. beforeActivate: null
  21990. },
  21991. hideProps: {
  21992. borderTopWidth: "hide",
  21993. borderBottomWidth: "hide",
  21994. paddingTop: "hide",
  21995. paddingBottom: "hide",
  21996. height: "hide"
  21997. },
  21998. showProps: {
  21999. borderTopWidth: "show",
  22000. borderBottomWidth: "show",
  22001. paddingTop: "show",
  22002. paddingBottom: "show",
  22003. height: "show"
  22004. },
  22005. _create: function () {
  22006. var t = this.options;
  22007. this.prevShow = this.prevHide = S(), this._addClass("ui-accordion", "ui-widget ui-helper-reset"), this.element.attr("role", "tablist"), t.collapsible || !1 !== t.active && null != t.active || (t.active = 0), this._processPanels(), t.active < 0 && (t.active += this.headers.length), this._refresh()
  22008. },
  22009. _getCreateEventData: function () {
  22010. return {
  22011. header: this.active,
  22012. panel: this.active.length ? this.active.next() : S()
  22013. }
  22014. },
  22015. _createIcons: function () {
  22016. var t, e, i = this.options.icons;
  22017. i && (t = S("<span>"), this._addClass(t, "ui-accordion-header-icon", "ui-icon " + i.header), t.prependTo(this.headers), e = this.active.children(".ui-accordion-header-icon"), this._removeClass(e, i.header)._addClass(e, null, i.activeHeader)._addClass(this.headers, "ui-accordion-icons"))
  22018. },
  22019. _destroyIcons: function () {
  22020. this._removeClass(this.headers, "ui-accordion-icons"), this.headers.children(".ui-accordion-header-icon").remove()
  22021. },
  22022. _destroy: function () {
  22023. var t;
  22024. this.element.removeAttr("role"), this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(), this._destroyIcons(), t = this.headers.next().css("display", "").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(), "content" !== this.options.heightStyle && t.css("height", "")
  22025. },
  22026. _setOption: function (t, e) {
  22027. return "active" === t ? void this._activate(e) : ("event" === t && (this.options.event && this._off(this.headers, this.options.event), this._setupEvents(e)), this._super(t, e), "collapsible" !== t || e || !1 !== this.options.active || this._activate(0), void("icons" === t && (this._destroyIcons(), e && this._createIcons())))
  22028. },
  22029. _setOptionDisabled: function (t) {
  22030. this._super(t), this.element.attr("aria-disabled", t), this._toggleClass(null, "ui-state-disabled", !!t), this._toggleClass(this.headers.add(this.headers.next()), null, "ui-state-disabled", !!t)
  22031. },
  22032. _keydown: function (t) {
  22033. if (!t.altKey && !t.ctrlKey) {
  22034. var e = S.ui.keyCode,
  22035. i = this.headers.length,
  22036. n = this.headers.index(t.target),
  22037. s = !1;
  22038. switch (t.keyCode) {
  22039. case e.RIGHT:
  22040. case e.DOWN:
  22041. s = this.headers[(n + 1) % i];
  22042. break;
  22043. case e.LEFT:
  22044. case e.UP:
  22045. s = this.headers[(n - 1 + i) % i];
  22046. break;
  22047. case e.SPACE:
  22048. case e.ENTER:
  22049. this._eventHandler(t);
  22050. break;
  22051. case e.HOME:
  22052. s = this.headers[0];
  22053. break;
  22054. case e.END:
  22055. s = this.headers[i - 1]
  22056. }
  22057. s && (S(t.target).attr("tabIndex", -1), S(s).attr("tabIndex", 0), S(s).trigger("focus"), t.preventDefault())
  22058. }
  22059. },
  22060. _panelKeyDown: function (t) {
  22061. t.keyCode === S.ui.keyCode.UP && t.ctrlKey && S(t.currentTarget).prev().trigger("focus")
  22062. },
  22063. refresh: function () {
  22064. var t = this.options;
  22065. this._processPanels(), !1 === t.active && !0 === t.collapsible || !this.headers.length ? (t.active = !1, this.active = S()) : !1 === t.active ? this._activate(0) : this.active.length && !S.contains(this.element[0], this.active[0]) ? this.headers.length === this.headers.find(".ui-state-disabled").length ? (t.active = !1, this.active = S()) : this._activate(Math.max(0, t.active - 1)) : t.active = this.headers.index(this.active), this._destroyIcons(), this._refresh()
  22066. },
  22067. _processPanels: function () {
  22068. var t = this.headers,
  22069. e = this.panels;
  22070. this.headers = this.element.find(this.options.header), this._addClass(this.headers, "ui-accordion-header ui-accordion-header-collapsed", "ui-state-default"), this.panels = this.headers.next().filter(":not(.ui-accordion-content-active)").hide(), this._addClass(this.panels, "ui-accordion-content", "ui-helper-reset ui-widget-content"), e && (this._off(t.not(this.headers)), this._off(e.not(this.panels)))
  22071. },
  22072. _refresh: function () {
  22073. var i, t = this.options,
  22074. e = t.heightStyle,
  22075. n = this.element.parent();
  22076. this.active = this._findActive(t.active), this._addClass(this.active, "ui-accordion-header-active", "ui-state-active")._removeClass(this.active, "ui-accordion-header-collapsed"), this._addClass(this.active.next(), "ui-accordion-content-active"), this.active.next().show(), this.headers.attr("role", "tab").each(function () {
  22077. var t = S(this),
  22078. e = t.uniqueId().attr("id"),
  22079. i = t.next(),
  22080. n = i.uniqueId().attr("id");
  22081. t.attr("aria-controls", n), i.attr("aria-labelledby", e)
  22082. }).next().attr("role", "tabpanel"), this.headers.not(this.active).attr({
  22083. "aria-selected": "false",
  22084. "aria-expanded": "false",
  22085. tabIndex: -1
  22086. }).next().attr({
  22087. "aria-hidden": "true"
  22088. }).hide(), this.active.length ? this.active.attr({
  22089. "aria-selected": "true",
  22090. "aria-expanded": "true",
  22091. tabIndex: 0
  22092. }).next().attr({
  22093. "aria-hidden": "false"
  22094. }) : this.headers.eq(0).attr("tabIndex", 0), this._createIcons(), this._setupEvents(t.event), "fill" === e ? (i = n.height(), this.element.siblings(":visible").each(function () {
  22095. var t = S(this),
  22096. e = t.css("position");
  22097. "absolute" !== e && "fixed" !== e && (i -= t.outerHeight(!0))
  22098. }), this.headers.each(function () {
  22099. i -= S(this).outerHeight(!0)
  22100. }), this.headers.next().each(function () {
  22101. S(this).height(Math.max(0, i - S(this).innerHeight() + S(this).height()))
  22102. }).css("overflow", "auto")) : "auto" === e && (i = 0, this.headers.next().each(function () {
  22103. var t = S(this).is(":visible");
  22104. t || S(this).show(), i = Math.max(i, S(this).css("height", "").height()), t || S(this).hide()
  22105. }).height(i))
  22106. },
  22107. _activate: function (t) {
  22108. var e = this._findActive(t)[0];
  22109. e !== this.active[0] && (e = e || this.active[0], this._eventHandler({
  22110. target: e,
  22111. currentTarget: e,
  22112. preventDefault: S.noop
  22113. }))
  22114. },
  22115. _findActive: function (t) {
  22116. return "number" == typeof t ? this.headers.eq(t) : S()
  22117. },
  22118. _setupEvents: function (t) {
  22119. var i = {
  22120. keydown: "_keydown"
  22121. };
  22122. t && S.each(t.split(" "), function (t, e) {
  22123. i[e] = "_eventHandler"
  22124. }), this._off(this.headers.add(this.headers.next())), this._on(this.headers, i), this._on(this.headers.next(), {
  22125. keydown: "_panelKeyDown"
  22126. }), this._hoverable(this.headers), this._focusable(this.headers)
  22127. },
  22128. _eventHandler: function (t) {
  22129. var e, i, n = this.options,
  22130. s = this.active,
  22131. o = S(t.currentTarget),
  22132. r = o[0] === s[0],
  22133. a = r && n.collapsible,
  22134. l = a ? S() : o.next(),
  22135. c = s.next(),
  22136. u = {
  22137. oldHeader: s,
  22138. oldPanel: c,
  22139. newHeader: a ? S() : o,
  22140. newPanel: l
  22141. };
  22142. t.preventDefault(), r && !n.collapsible || !1 === this._trigger("beforeActivate", t, u) || (n.active = !a && this.headers.index(o), this.active = r ? S() : o, this._toggle(u), this._removeClass(s, "ui-accordion-header-active", "ui-state-active"), n.icons && (e = s.children(".ui-accordion-header-icon"), this._removeClass(e, null, n.icons.activeHeader)._addClass(e, null, n.icons.header)), r || (this._removeClass(o, "ui-accordion-header-collapsed")._addClass(o, "ui-accordion-header-active", "ui-state-active"), n.icons && (i = o.children(".ui-accordion-header-icon"), this._removeClass(i, null, n.icons.header)._addClass(i, null, n.icons.activeHeader)), this._addClass(o.next(), "ui-accordion-content-active")))
  22143. },
  22144. _toggle: function (t) {
  22145. var e = t.newPanel,
  22146. i = this.prevShow.length ? this.prevShow : t.oldPanel;
  22147. this.prevShow.add(this.prevHide).stop(!0, !0), this.prevShow = e, this.prevHide = i, this.options.animate ? this._animate(e, i, t) : (i.hide(), e.show(), this._toggleComplete(t)), i.attr({
  22148. "aria-hidden": "true"
  22149. }), i.prev().attr({
  22150. "aria-selected": "false",
  22151. "aria-expanded": "false"
  22152. }), e.length && i.length ? i.prev().attr({
  22153. tabIndex: -1,
  22154. "aria-expanded": "false"
  22155. }) : e.length && this.headers.filter(function () {
  22156. return 0 === parseInt(S(this).attr("tabIndex"), 10)
  22157. }).attr("tabIndex", -1), e.attr("aria-hidden", "false").prev().attr({
  22158. "aria-selected": "true",
  22159. "aria-expanded": "true",
  22160. tabIndex: 0
  22161. })
  22162. },
  22163. _animate: function (t, i, e) {
  22164. function n() {
  22165. a._toggleComplete(e)
  22166. }
  22167. var s, o, r, a = this,
  22168. l = 0,
  22169. c = t.css("box-sizing"),
  22170. u = t.length && (!i.length || t.index() < i.index()),
  22171. h = this.options.animate || {},
  22172. d = u && h.down || h;
  22173. return "number" == typeof d && (r = d), "string" == typeof d && (o = d), o = o || d.easing || h.easing, r = r || d.duration || h.duration, i.length ? t.length ? (s = t.show().outerHeight(), i.animate(this.hideProps, {
  22174. duration: r,
  22175. easing: o,
  22176. step: function (t, e) {
  22177. e.now = Math.round(t)
  22178. }
  22179. }), void t.hide().animate(this.showProps, {
  22180. duration: r,
  22181. easing: o,
  22182. complete: n,
  22183. step: function (t, e) {
  22184. e.now = Math.round(t), "height" !== e.prop ? "content-box" === c && (l += e.now) : "content" !== a.options.heightStyle && (e.now = Math.round(s - i.outerHeight() - l), l = 0)
  22185. }
  22186. })) : i.animate(this.hideProps, r, o, n) : t.animate(this.showProps, r, o, n)
  22187. },
  22188. _toggleComplete: function (t) {
  22189. var e = t.oldPanel,
  22190. i = e.prev();
  22191. this._removeClass(e, "ui-accordion-content-active"), this._removeClass(i, "ui-accordion-header-active")._addClass(i, "ui-accordion-header-collapsed"), e.length && (e.parent()[0].className = e.parent()[0].className), this._trigger("activate", null, t)
  22192. }
  22193. }), S.ui.safeActiveElement = function (e) {
  22194. var i;
  22195. try {
  22196. i = e.activeElement
  22197. } catch (t) {
  22198. i = e.body
  22199. }
  22200. return i || (i = e.body), i.nodeName || (i = e.body), i
  22201. }, S.widget("ui.menu", {
  22202. version: "1.12.1",
  22203. defaultElement: "<ul>",
  22204. delay: 300,
  22205. options: {
  22206. icons: {
  22207. submenu: "ui-icon-caret-1-e"
  22208. },
  22209. items: "> *",
  22210. menus: "ul",
  22211. position: {
  22212. my: "left top",
  22213. at: "right top"
  22214. },
  22215. role: "menu",
  22216. blur: null,
  22217. focus: null,
  22218. select: null
  22219. },
  22220. _create: function () {
  22221. this.activeMenu = this.element, this.mouseHandled = !1, this.element.uniqueId().attr({
  22222. role: this.options.role,
  22223. tabIndex: 0
  22224. }), this._addClass("ui-menu", "ui-widget ui-widget-content"), this._on({
  22225. "mousedown .ui-menu-item": function (t) {
  22226. t.preventDefault()
  22227. },
  22228. "click .ui-menu-item": function (t) {
  22229. var e = S(t.target),
  22230. i = S(S.ui.safeActiveElement(this.document[0]));
  22231. !this.mouseHandled && e.not(".ui-state-disabled").length && (this.select(t), t.isPropagationStopped() || (this.mouseHandled = !0), e.has(".ui-menu").length ? this.expand(t) : !this.element.is(":focus") && i.closest(".ui-menu").length && (this.element.trigger("focus", [!0]), this.active && 1 === this.active.parents(".ui-menu").length && clearTimeout(this.timer)))
  22232. },
  22233. "mouseenter .ui-menu-item": function (t) {
  22234. if (!this.previousFilter) {
  22235. var e = S(t.target).closest(".ui-menu-item"),
  22236. i = S(t.currentTarget);
  22237. e[0] === i[0] && (this._removeClass(i.siblings().children(".ui-state-active"), null, "ui-state-active"), this.focus(t, i))
  22238. }
  22239. },
  22240. mouseleave: "collapseAll",
  22241. "mouseleave .ui-menu": "collapseAll",
  22242. focus: function (t, e) {
  22243. var i = this.active || this.element.find(this.options.items).eq(0);
  22244. e || this.focus(t, i)
  22245. },
  22246. blur: function (t) {
  22247. this._delay(function () {
  22248. !S.contains(this.element[0], S.ui.safeActiveElement(this.document[0])) && this.collapseAll(t)
  22249. })
  22250. },
  22251. keydown: "_keydown"
  22252. }), this.refresh(), this._on(this.document, {
  22253. click: function (t) {
  22254. this._closeOnDocumentClick(t) && this.collapseAll(t), this.mouseHandled = !1
  22255. }
  22256. })
  22257. },
  22258. _destroy: function () {
  22259. var t = this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");
  22260. this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(), t.children().each(function () {
  22261. var t = S(this);
  22262. t.data("ui-menu-submenu-caret") && t.remove()
  22263. })
  22264. },
  22265. _keydown: function (t) {
  22266. var e, i, n, s, o = !0;
  22267. switch (t.keyCode) {
  22268. case S.ui.keyCode.PAGE_UP:
  22269. this.previousPage(t);
  22270. break;
  22271. case S.ui.keyCode.PAGE_DOWN:
  22272. this.nextPage(t);
  22273. break;
  22274. case S.ui.keyCode.HOME:
  22275. this._move("first", "first", t);
  22276. break;
  22277. case S.ui.keyCode.END:
  22278. this._move("last", "last", t);
  22279. break;
  22280. case S.ui.keyCode.UP:
  22281. this.previous(t);
  22282. break;
  22283. case S.ui.keyCode.DOWN:
  22284. this.next(t);
  22285. break;
  22286. case S.ui.keyCode.LEFT:
  22287. this.collapse(t);
  22288. break;
  22289. case S.ui.keyCode.RIGHT:
  22290. this.active && !this.active.is(".ui-state-disabled") && this.expand(t);
  22291. break;
  22292. case S.ui.keyCode.ENTER:
  22293. case S.ui.keyCode.SPACE:
  22294. this._activate(t);
  22295. break;
  22296. case S.ui.keyCode.ESCAPE:
  22297. this.collapse(t);
  22298. break;
  22299. default:
  22300. o = !1, i = this.previousFilter || "", s = !1, n = 96 <= t.keyCode && t.keyCode <= 105 ? "" + (t.keyCode - 96) : String.fromCharCode(t.keyCode), clearTimeout(this.filterTimer), n === i ? s = !0 : n = i + n, e = this._filterMenuItems(n), (e = s && -1 !== e.index(this.active.next()) ? this.active.nextAll(".ui-menu-item") : e).length || (n = String.fromCharCode(t.keyCode), e = this._filterMenuItems(n)), e.length ? (this.focus(t, e), this.previousFilter = n, this.filterTimer = this._delay(function () {
  22301. delete this.previousFilter
  22302. }, 1e3)) : delete this.previousFilter
  22303. }
  22304. o && t.preventDefault()
  22305. },
  22306. _activate: function (t) {
  22307. this.active && !this.active.is(".ui-state-disabled") && (this.active.children("[aria-haspopup='true']").length ? this.expand(t) : this.select(t))
  22308. },
  22309. refresh: function () {
  22310. var t, e, i, n, s = this,
  22311. o = this.options.icons.submenu,
  22312. r = this.element.find(this.options.menus);
  22313. this._toggleClass("ui-menu-icons", null, !!this.element.find(".ui-icon").length), e = r.filter(":not(.ui-menu)").hide().attr({
  22314. role: this.options.role,
  22315. "aria-hidden": "true",
  22316. "aria-expanded": "false"
  22317. }).each(function () {
  22318. var t = S(this),
  22319. e = t.prev(),
  22320. i = S("<span>").data("ui-menu-submenu-caret", !0);
  22321. s._addClass(i, "ui-menu-icon", "ui-icon " + o), e.attr("aria-haspopup", "true").prepend(i), t.attr("aria-labelledby", e.attr("id"))
  22322. }), this._addClass(e, "ui-menu", "ui-widget ui-widget-content ui-front"), (t = r.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function () {
  22323. var t = S(this);
  22324. s._isDivider(t) && s._addClass(t, "ui-menu-divider", "ui-widget-content")
  22325. }), n = (i = t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({
  22326. tabIndex: -1,
  22327. role: this._itemRole()
  22328. }), this._addClass(i, "ui-menu-item")._addClass(n, "ui-menu-item-wrapper"), t.filter(".ui-state-disabled").attr("aria-disabled", "true"), this.active && !S.contains(this.element[0], this.active[0]) && this.blur()
  22329. },
  22330. _itemRole: function () {
  22331. return {
  22332. menu: "menuitem",
  22333. listbox: "option"
  22334. } [this.options.role]
  22335. },
  22336. _setOption: function (t, e) {
  22337. if ("icons" === t) {
  22338. var i = this.element.find(".ui-menu-icon");
  22339. this._removeClass(i, null, this.options.icons.submenu)._addClass(i, null, e.submenu)
  22340. }
  22341. this._super(t, e)
  22342. },
  22343. _setOptionDisabled: function (t) {
  22344. this._super(t), this.element.attr("aria-disabled", t + ""), this._toggleClass(null, "ui-state-disabled", !!t)
  22345. },
  22346. focus: function (t, e) {
  22347. var i, n, s;
  22348. this.blur(t, t && "focus" === t.type), this._scrollIntoView(e), this.active = e.first(), n = this.active.children(".ui-menu-item-wrapper"), this._addClass(n, null, "ui-state-active"), this.options.role && this.element.attr("aria-activedescendant", n.attr("id")), s = this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"), this._addClass(s, null, "ui-state-active"), t && "keydown" === t.type ? this._close() : this.timer = this._delay(function () {
  22349. this._close()
  22350. }, this.delay), (i = e.children(".ui-menu")).length && t && /^mouse/.test(t.type) && this._startOpening(i), this.activeMenu = e.parent(), this._trigger("focus", t, {
  22351. item: e
  22352. })
  22353. },
  22354. _scrollIntoView: function (t) {
  22355. var e, i, n, s, o, r;
  22356. this._hasScroll() && (e = parseFloat(S.css(this.activeMenu[0], "borderTopWidth")) || 0, i = parseFloat(S.css(this.activeMenu[0], "paddingTop")) || 0, n = t.offset().top - this.activeMenu.offset().top - e - i, s = this.activeMenu.scrollTop(), o = this.activeMenu.height(), r = t.outerHeight(), n < 0 ? this.activeMenu.scrollTop(s + n) : o < n + r && this.activeMenu.scrollTop(s + n - o + r))
  22357. },
  22358. blur: function (t, e) {
  22359. e || clearTimeout(this.timer), this.active && (this._removeClass(this.active.children(".ui-menu-item-wrapper"), null, "ui-state-active"), this._trigger("blur", t, {
  22360. item: this.active
  22361. }), this.active = null)
  22362. },
  22363. _startOpening: function (t) {
  22364. clearTimeout(this.timer), "true" === t.attr("aria-hidden") && (this.timer = this._delay(function () {
  22365. this._close(), this._open(t)
  22366. }, this.delay))
  22367. },
  22368. _open: function (t) {
  22369. var e = S.extend({
  22370. of: this.active
  22371. }, this.options.position);
  22372. clearTimeout(this.timer), this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden", "true"), t.show().removeAttr("aria-hidden").attr("aria-expanded", "true").position(e)
  22373. },
  22374. collapseAll: function (e, i) {
  22375. clearTimeout(this.timer), this.timer = this._delay(function () {
  22376. var t = i ? this.element : S(e && e.target).closest(this.element.find(".ui-menu"));
  22377. t.length || (t = this.element), this._close(t), this.blur(e), this._removeClass(t.find(".ui-state-active"), null, "ui-state-active"), this.activeMenu = t
  22378. }, this.delay)
  22379. },
  22380. _close: function (t) {
  22381. t || (t = this.active ? this.active.parent() : this.element), t.find(".ui-menu").hide().attr("aria-hidden", "true").attr("aria-expanded", "false")
  22382. },
  22383. _closeOnDocumentClick: function (t) {
  22384. return !S(t.target).closest(".ui-menu").length
  22385. },
  22386. _isDivider: function (t) {
  22387. return !/[^\-\u2014\u2013\s]/.test(t.text())
  22388. },
  22389. collapse: function (t) {
  22390. var e = this.active && this.active.parent().closest(".ui-menu-item", this.element);
  22391. e && e.length && (this._close(), this.focus(t, e))
  22392. },
  22393. expand: function (t) {
  22394. var e = this.active && this.active.children(".ui-menu ").find(this.options.items).first();
  22395. e && e.length && (this._open(e.parent()), this._delay(function () {
  22396. this.focus(t, e)
  22397. }))
  22398. },
  22399. next: function (t) {
  22400. this._move("next", "first", t)
  22401. },
  22402. previous: function (t) {
  22403. this._move("prev", "last", t)
  22404. },
  22405. isFirstItem: function () {
  22406. return this.active && !this.active.prevAll(".ui-menu-item").length
  22407. },
  22408. isLastItem: function () {
  22409. return this.active && !this.active.nextAll(".ui-menu-item").length
  22410. },
  22411. _move: function (t, e, i) {
  22412. var n;
  22413. this.active && (n = "first" === t || "last" === t ? this.active["first" === t ? "prevAll" : "nextAll"](".ui-menu-item").eq(-1) : this.active[t + "All"](".ui-menu-item").eq(0)), n && n.length && this.active || (n = this.activeMenu.find(this.options.items)[e]()), this.focus(i, n)
  22414. },
  22415. nextPage: function (t) {
  22416. var e, i, n;
  22417. return this.active ? void(this.isLastItem() || (this._hasScroll() ? (i = this.active.offset().top, n = this.element.height(), this.active.nextAll(".ui-menu-item").each(function () {
  22418. return (e = S(this)).offset().top - i - n < 0
  22419. }), this.focus(t, e)) : this.focus(t, this.activeMenu.find(this.options.items)[this.active ? "last" : "first"]()))) : void this.next(t)
  22420. },
  22421. previousPage: function (t) {
  22422. var e, i, n;
  22423. return this.active ? void(this.isFirstItem() || (this._hasScroll() ? (i = this.active.offset().top, n = this.element.height(), this.active.prevAll(".ui-menu-item").each(function () {
  22424. return 0 < (e = S(this)).offset().top - i + n
  22425. }), this.focus(t, e)) : this.focus(t, this.activeMenu.find(this.options.items).first()))) : void this.next(t)
  22426. },
  22427. _hasScroll: function () {
  22428. return this.element.outerHeight() < this.element.prop("scrollHeight")
  22429. },
  22430. select: function (t) {
  22431. this.active = this.active || S(t.target).closest(".ui-menu-item");
  22432. var e = {
  22433. item: this.active
  22434. };
  22435. this.active.has(".ui-menu").length || this.collapseAll(t, !0), this._trigger("select", t, e)
  22436. },
  22437. _filterMenuItems: function (t) {
  22438. var e = t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&"),
  22439. i = RegExp("^" + e, "i");
  22440. return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function () {
  22441. return i.test(S.trim(S(this).children(".ui-menu-item-wrapper").text()))
  22442. })
  22443. }
  22444. }), S.widget("ui.autocomplete", {
  22445. version: "1.12.1",
  22446. defaultElement: "<input>",
  22447. options: {
  22448. appendTo: null,
  22449. autoFocus: !1,
  22450. delay: 300,
  22451. minLength: 1,
  22452. position: {
  22453. my: "left top",
  22454. at: "left bottom",
  22455. collision: "none"
  22456. },
  22457. source: null,
  22458. change: null,
  22459. close: null,
  22460. focus: null,
  22461. open: null,
  22462. response: null,
  22463. search: null,
  22464. select: null
  22465. },
  22466. requestIndex: 0,
  22467. pending: 0,
  22468. _create: function () {
  22469. var i, n, s, t = this.element[0].nodeName.toLowerCase(),
  22470. e = "textarea" === t,
  22471. o = "input" === t;
  22472. this.isMultiLine = e || !o && this._isContentEditable(this.element), this.valueMethod = this.element[e || o ? "val" : "text"], this.isNewMenu = !0, this._addClass("ui-autocomplete-input"), this.element.attr("autocomplete", "off"), this._on(this.element, {
  22473. keydown: function (t) {
  22474. if (this.element.prop("readOnly")) n = s = i = !0;
  22475. else {
  22476. n = s = i = !1;
  22477. var e = S.ui.keyCode;
  22478. switch (t.keyCode) {
  22479. case e.PAGE_UP:
  22480. i = !0, this._move("previousPage", t);
  22481. break;
  22482. case e.PAGE_DOWN:
  22483. i = !0, this._move("nextPage", t);
  22484. break;
  22485. case e.UP:
  22486. i = !0, this._keyEvent("previous", t);
  22487. break;
  22488. case e.DOWN:
  22489. i = !0, this._keyEvent("next", t);
  22490. break;
  22491. case e.ENTER:
  22492. this.menu.active && (i = !0, t.preventDefault(), this.menu.select(t));
  22493. break;
  22494. case e.TAB:
  22495. this.menu.active && this.menu.select(t);
  22496. break;
  22497. case e.ESCAPE:
  22498. this.menu.element.is(":visible") && (this.isMultiLine || this._value(this.term), this.close(t), t.preventDefault());
  22499. break;
  22500. default:
  22501. n = !0, this._searchTimeout(t)
  22502. }
  22503. }
  22504. },
  22505. keypress: function (t) {
  22506. if (i) return i = !1, void((!this.isMultiLine || this.menu.element.is(":visible")) && t.preventDefault());
  22507. if (!n) {
  22508. var e = S.ui.keyCode;
  22509. switch (t.keyCode) {
  22510. case e.PAGE_UP:
  22511. this._move("previousPage", t);
  22512. break;
  22513. case e.PAGE_DOWN:
  22514. this._move("nextPage", t);
  22515. break;
  22516. case e.UP:
  22517. this._keyEvent("previous", t);
  22518. break;
  22519. case e.DOWN:
  22520. this._keyEvent("next", t)
  22521. }
  22522. }
  22523. },
  22524. input: function (t) {
  22525. return s ? (s = !1, void t.preventDefault()) : void this._searchTimeout(t)
  22526. },
  22527. focus: function () {
  22528. this.selectedItem = null, this.previous = this._value()
  22529. },
  22530. blur: function (t) {
  22531. return this.cancelBlur ? void delete this.cancelBlur : (clearTimeout(this.searching), this.close(t), void this._change(t))
  22532. }
  22533. }), this._initSource(), this.menu = S("<ul>").appendTo(this._appendTo()).menu({
  22534. role: null
  22535. }).hide().menu("instance"), this._addClass(this.menu.element, "ui-autocomplete", "ui-front"), this._on(this.menu.element, {
  22536. mousedown: function (t) {
  22537. t.preventDefault(), this.cancelBlur = !0, this._delay(function () {
  22538. delete this.cancelBlur, this.element[0] !== S.ui.safeActiveElement(this.document[0]) && this.element.trigger("focus")
  22539. })
  22540. },
  22541. menufocus: function (t, e) {
  22542. var i, n;
  22543. return this.isNewMenu && (this.isNewMenu = !1, t.originalEvent && /^mouse/.test(t.originalEvent.type)) ? (this.menu.blur(), void this.document.one("mousemove", function () {
  22544. S(t.target).trigger(t.originalEvent)
  22545. })) : (n = e.item.data("ui-autocomplete-item"), !1 !== this._trigger("focus", t, {
  22546. item: n
  22547. }) && t.originalEvent && /^key/.test(t.originalEvent.type) && this._value(n.value), void((i = e.item.attr("aria-label") || n.value) && S.trim(i).length && (this.liveRegion.children().hide(), S("<div>").text(i).appendTo(this.liveRegion))))
  22548. },
  22549. menuselect: function (t, e) {
  22550. var i = e.item.data("ui-autocomplete-item"),
  22551. n = this.previous;
  22552. this.element[0] !== S.ui.safeActiveElement(this.document[0]) && (this.element.trigger("focus"), this.previous = n, this._delay(function () {
  22553. this.previous = n, this.selectedItem = i
  22554. })), !1 !== this._trigger("select", t, {
  22555. item: i
  22556. }) && this._value(i.value), this.term = this._value(), this.close(t), this.selectedItem = i
  22557. }
  22558. }), this.liveRegion = S("<div>", {
  22559. role: "status",
  22560. "aria-live": "assertive",
  22561. "aria-relevant": "additions"
  22562. }).appendTo(this.document[0].body), this._addClass(this.liveRegion, null, "ui-helper-hidden-accessible"), this._on(this.window, {
  22563. beforeunload: function () {
  22564. this.element.removeAttr("autocomplete")
  22565. }
  22566. })
  22567. },
  22568. _destroy: function () {
  22569. clearTimeout(this.searching), this.element.removeAttr("autocomplete"), this.menu.element.remove(), this.liveRegion.remove()
  22570. },
  22571. _setOption: function (t, e) {
  22572. this._super(t, e), "source" === t && this._initSource(), "appendTo" === t && this.menu.element.appendTo(this._appendTo()), "disabled" === t && e && this.xhr && this.xhr.abort()
  22573. },
  22574. _isEventTargetInWidget: function (t) {
  22575. var e = this.menu.element[0];
  22576. return t.target === this.element[0] || t.target === e || S.contains(e, t.target)
  22577. },
  22578. _closeOnClickOutside: function (t) {
  22579. this._isEventTargetInWidget(t) || this.close()
  22580. },
  22581. _appendTo: function () {
  22582. var t = this.options.appendTo;
  22583. return t && (t = t.jquery || t.nodeType ? S(t) : this.document.find(t).eq(0)), t && t[0] || (t = this.element.closest(".ui-front, dialog")), t.length || (t = this.document[0].body), t
  22584. },
  22585. _initSource: function () {
  22586. var i, n, s = this;
  22587. S.isArray(this.options.source) ? (i = this.options.source, this.source = function (t, e) {
  22588. e(S.ui.autocomplete.filter(i, t.term))
  22589. }) : "string" == typeof this.options.source ? (n = this.options.source, this.source = function (t, e) {
  22590. s.xhr && s.xhr.abort(), s.xhr = S.ajax({
  22591. url: n,
  22592. data: t,
  22593. dataType: "json",
  22594. success: function (t) {
  22595. e(t)
  22596. },
  22597. error: function () {
  22598. e([])
  22599. }
  22600. })
  22601. }) : this.source = this.options.source
  22602. },
  22603. _searchTimeout: function (n) {
  22604. clearTimeout(this.searching), this.searching = this._delay(function () {
  22605. var t = this.term === this._value(),
  22606. e = this.menu.element.is(":visible"),
  22607. i = n.altKey || n.ctrlKey || n.metaKey || n.shiftKey;
  22608. (!t || t && !e && !i) && (this.selectedItem = null, this.search(null, n))
  22609. }, this.options.delay)
  22610. },
  22611. search: function (t, e) {
  22612. return t = null != t ? t : this._value(), this.term = this._value(), t.length < this.options.minLength ? this.close(e) : !1 !== this._trigger("search", e) ? this._search(t) : void 0
  22613. },
  22614. _search: function (t) {
  22615. this.pending++, this._addClass("ui-autocomplete-loading"), this.cancelSearch = !1, this.source({
  22616. term: t
  22617. }, this._response())
  22618. },
  22619. _response: function () {
  22620. var e = ++this.requestIndex;
  22621. return S.proxy(function (t) {
  22622. e === this.requestIndex && this.__response(t), this.pending--, this.pending || this._removeClass("ui-autocomplete-loading")
  22623. }, this)
  22624. },
  22625. __response: function (t) {
  22626. t && (t = this._normalize(t)), this._trigger("response", null, {
  22627. content: t
  22628. }), !this.options.disabled && t && t.length && !this.cancelSearch ? (this._suggest(t), this._trigger("open")) : this._close()
  22629. },
  22630. close: function (t) {
  22631. this.cancelSearch = !0, this._close(t)
  22632. },
  22633. _close: function (t) {
  22634. this._off(this.document, "mousedown"), this.menu.element.is(":visible") && (this.menu.element.hide(), this.menu.blur(), this.isNewMenu = !0, this._trigger("close", t))
  22635. },
  22636. _change: function (t) {
  22637. this.previous !== this._value() && this._trigger("change", t, {
  22638. item: this.selectedItem
  22639. })
  22640. },
  22641. _normalize: function (t) {
  22642. return t.length && t[0].label && t[0].value ? t : S.map(t, function (t) {
  22643. return "string" == typeof t ? {
  22644. label: t,
  22645. value: t
  22646. } : S.extend({}, t, {
  22647. label: t.label || t.value,
  22648. value: t.value || t.label
  22649. })
  22650. })
  22651. },
  22652. _suggest: function (t) {
  22653. var e = this.menu.element.empty();
  22654. this._renderMenu(e, t), this.isNewMenu = !0, this.menu.refresh(), e.show(), this._resizeMenu(), e.position(S.extend({
  22655. of: this.element
  22656. }, this.options.position)), this.options.autoFocus && this.menu.next(), this._on(this.document, {
  22657. mousedown: "_closeOnClickOutside"
  22658. })
  22659. },
  22660. _resizeMenu: function () {
  22661. var t = this.menu.element;
  22662. t.outerWidth(Math.max(t.width("").outerWidth() + 1, this.element.outerWidth()))
  22663. },
  22664. _renderMenu: function (i, t) {
  22665. var n = this;
  22666. S.each(t, function (t, e) {
  22667. n._renderItemData(i, e)
  22668. })
  22669. },
  22670. _renderItemData: function (t, e) {
  22671. return this._renderItem(t, e).data("ui-autocomplete-item", e)
  22672. },
  22673. _renderItem: function (t, e) {
  22674. return S("<li>").append(S("<div>").text(e.label)).appendTo(t)
  22675. },
  22676. _move: function (t, e) {
  22677. return this.menu.element.is(":visible") ? this.menu.isFirstItem() && /^previous/.test(t) || this.menu.isLastItem() && /^next/.test(t) ? (this.isMultiLine || this._value(this.term), void this.menu.blur()) : void this.menu[t](e) : void this.search(null, e)
  22678. },
  22679. widget: function () {
  22680. return this.menu.element
  22681. },
  22682. _value: function () {
  22683. return this.valueMethod.apply(this.element, arguments)
  22684. },
  22685. _keyEvent: function (t, e) {
  22686. (!this.isMultiLine || this.menu.element.is(":visible")) && (this._move(t, e), e.preventDefault())
  22687. },
  22688. _isContentEditable: function (t) {
  22689. if (!t.length) return !1;
  22690. var e = t.prop("contentEditable");
  22691. return "inherit" === e ? this._isContentEditable(t.parent()) : "true" === e
  22692. }
  22693. }), S.extend(S.ui.autocomplete, {
  22694. escapeRegex: function (t) {
  22695. return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&")
  22696. },
  22697. filter: function (t, e) {
  22698. var i = RegExp(S.ui.autocomplete.escapeRegex(e), "i");
  22699. return S.grep(t, function (t) {
  22700. return i.test(t.label || t.value || t)
  22701. })
  22702. }
  22703. }), S.widget("ui.autocomplete", S.ui.autocomplete, {
  22704. options: {
  22705. messages: {
  22706. noResults: "No search results.",
  22707. results: function (t) {
  22708. return t + (1 < t ? " results are" : " result is") + " available, use up and down arrow keys to navigate."
  22709. }
  22710. }
  22711. },
  22712. __response: function (t) {
  22713. var e;
  22714. this._superApply(arguments), this.options.disabled || this.cancelSearch || (e = t && t.length ? this.options.messages.results(t.length) : this.options.messages.noResults, this.liveRegion.children().hide(), S("<div>").text(e).appendTo(this.liveRegion))
  22715. }
  22716. }), S.ui.autocomplete;
  22717. var m, v, _ = /ui-corner-([a-z]){2,6}/g;
  22718. S.widget("ui.controlgroup", {
  22719. version: "1.12.1",
  22720. defaultElement: "<div>",
  22721. options: {
  22722. direction: "horizontal",
  22723. disabled: null,
  22724. onlyVisible: !0,
  22725. items: {
  22726. button: "input[type=button], input[type=submit], input[type=reset], button, a",
  22727. controlgroupLabel: ".ui-controlgroup-label",
  22728. checkboxradio: "input[type='checkbox'], input[type='radio']",
  22729. selectmenu: "select",
  22730. spinner: ".ui-spinner-input"
  22731. }
  22732. },
  22733. _create: function () {
  22734. this._enhance()
  22735. },
  22736. _enhance: function () {
  22737. this.element.attr("role", "toolbar"), this.refresh()
  22738. },
  22739. _destroy: function () {
  22740. this._callChildMethod("destroy"), this.childWidgets.removeData("ui-controlgroup-data"), this.element.removeAttr("role"), this.options.items.controlgroupLabel && this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()
  22741. },
  22742. _initWidgets: function () {
  22743. var r = this,
  22744. a = [];
  22745. S.each(this.options.items, function (s, t) {
  22746. var e, o = {};
  22747. return t ? "controlgroupLabel" === s ? ((e = r.element.find(t)).each(function () {
  22748. var t = S(this);
  22749. t.children(".ui-controlgroup-label-contents").length || t.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")
  22750. }), r._addClass(e, null, "ui-widget ui-widget-content ui-state-default"), void(a = a.concat(e.get()))) : void(S.fn[s] && (o = r["_" + s + "Options"] ? r["_" + s + "Options"]("middle") : {
  22751. classes: {}
  22752. }, r.element.find(t).each(function () {
  22753. var t = S(this),
  22754. e = t[s]("instance"),
  22755. i = S.widget.extend({}, o);
  22756. if ("button" !== s || !t.parent(".ui-spinner").length) {
  22757. e || (e = t[s]()[s]("instance")), e && (i.classes = r._resolveClassesValues(i.classes, e)), t[s](i);
  22758. var n = t[s]("widget");
  22759. S.data(n[0], "ui-controlgroup-data", e || t[s]("instance")), a.push(n[0])
  22760. }
  22761. }))) : void 0
  22762. }), this.childWidgets = S(S.unique(a)), this._addClass(this.childWidgets, "ui-controlgroup-item")
  22763. },
  22764. _callChildMethod: function (e) {
  22765. this.childWidgets.each(function () {
  22766. var t = S(this).data("ui-controlgroup-data");
  22767. t && t[e] && t[e]()
  22768. })
  22769. },
  22770. _updateCornerClass: function (t, e) {
  22771. var i = this._buildSimpleOptions(e, "label").classes.label;
  22772. this._removeClass(t, null, "ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"), this._addClass(t, null, i)
  22773. },
  22774. _buildSimpleOptions: function (t, e) {
  22775. var i = "vertical" === this.options.direction,
  22776. n = {
  22777. classes: {}
  22778. };
  22779. return n.classes[e] = {
  22780. middle: "",
  22781. first: "ui-corner-" + (i ? "top" : "left"),
  22782. last: "ui-corner-" + (i ? "bottom" : "right"),
  22783. only: "ui-corner-all"
  22784. } [t], n
  22785. },
  22786. _spinnerOptions: function (t) {
  22787. var e = this._buildSimpleOptions(t, "ui-spinner");
  22788. return e.classes["ui-spinner-up"] = "", e.classes["ui-spinner-down"] = "", e
  22789. },
  22790. _buttonOptions: function (t) {
  22791. return this._buildSimpleOptions(t, "ui-button")
  22792. },
  22793. _checkboxradioOptions: function (t) {
  22794. return this._buildSimpleOptions(t, "ui-checkboxradio-label")
  22795. },
  22796. _selectmenuOptions: function (t) {
  22797. var e = "vertical" === this.options.direction;
  22798. return {
  22799. width: e && "auto",
  22800. classes: {
  22801. middle: {
  22802. "ui-selectmenu-button-open": "",
  22803. "ui-selectmenu-button-closed": ""
  22804. },
  22805. first: {
  22806. "ui-selectmenu-button-open": "ui-corner-" + (e ? "top" : "tl"),
  22807. "ui-selectmenu-button-closed": "ui-corner-" + (e ? "top" : "left")
  22808. },
  22809. last: {
  22810. "ui-selectmenu-button-open": e ? "" : "ui-corner-tr",
  22811. "ui-selectmenu-button-closed": "ui-corner-" + (e ? "bottom" : "right")
  22812. },
  22813. only: {
  22814. "ui-selectmenu-button-open": "ui-corner-top",
  22815. "ui-selectmenu-button-closed": "ui-corner-all"
  22816. }
  22817. } [t]
  22818. }
  22819. },
  22820. _resolveClassesValues: function (i, n) {
  22821. var s = {};
  22822. return S.each(i, function (t) {
  22823. var e = n.options.classes[t] || "";
  22824. e = S.trim(e.replace(_, "")), s[t] = (e + " " + i[t]).replace(/\s+/g, " ")
  22825. }), s
  22826. },
  22827. _setOption: function (t, e) {
  22828. return "direction" === t && this._removeClass("ui-controlgroup-" + this.options.direction), this._super(t, e), "disabled" === t ? void this._callChildMethod(e ? "disable" : "enable") : void this.refresh()
  22829. },
  22830. refresh: function () {
  22831. var s, o = this;
  22832. this._addClass("ui-controlgroup ui-controlgroup-" + this.options.direction), "horizontal" === this.options.direction && this._addClass(null, "ui-helper-clearfix"), this._initWidgets(), s = this.childWidgets, this.options.onlyVisible && (s = s.filter(":visible")), s.length && (S.each(["first", "last"], function (t, e) {
  22833. var i = s[e]().data("ui-controlgroup-data");
  22834. if (i && o["_" + i.widgetName + "Options"]) {
  22835. var n = o["_" + i.widgetName + "Options"](1 === s.length ? "only" : e);
  22836. n.classes = o._resolveClassesValues(n.classes, i), i.element[i.widgetName](n)
  22837. } else o._updateCornerClass(s[e](), e)
  22838. }), this._callChildMethod("refresh"))
  22839. }
  22840. }), S.widget("ui.checkboxradio", [S.ui.formResetMixin, {
  22841. version: "1.12.1",
  22842. options: {
  22843. disabled: null,
  22844. label: null,
  22845. icon: !0,
  22846. classes: {
  22847. "ui-checkboxradio-label": "ui-corner-all",
  22848. "ui-checkboxradio-icon": "ui-corner-all"
  22849. }
  22850. },
  22851. _getCreateOptions: function () {
  22852. var t, e, i = this,
  22853. n = this._super() || {};
  22854. return this._readType(), e = this.element.labels(), this.label = S(e[e.length - 1]), this.label.length || S.error("No label found for checkboxradio widget"), this.originalLabel = "", this.label.contents().not(this.element[0]).each(function () {
  22855. i.originalLabel += 3 === this.nodeType ? S(this).text() : this.outerHTML
  22856. }), this.originalLabel && (n.label = this.originalLabel), null != (t = this.element[0].disabled) && (n.disabled = t), n
  22857. },
  22858. _create: function () {
  22859. var t = this.element[0].checked;
  22860. this._bindFormResetHandler(), null == this.options.disabled && (this.options.disabled = this.element[0].disabled), this._setOption("disabled", this.options.disabled), this._addClass("ui-checkboxradio", "ui-helper-hidden-accessible"), this._addClass(this.label, "ui-checkboxradio-label", "ui-button ui-widget"), "radio" === this.type && this._addClass(this.label, "ui-checkboxradio-radio-label"), this.options.label && this.options.label !== this.originalLabel ? this._updateLabel() : this.originalLabel && (this.options.label = this.originalLabel), this._enhance(), t && (this._addClass(this.label, "ui-checkboxradio-checked", "ui-state-active"), this.icon && this._addClass(this.icon, null, "ui-state-hover")), this._on({
  22861. change: "_toggleClasses",
  22862. focus: function () {
  22863. this._addClass(this.label, null, "ui-state-focus ui-visual-focus")
  22864. },
  22865. blur: function () {
  22866. this._removeClass(this.label, null, "ui-state-focus ui-visual-focus")
  22867. }
  22868. })
  22869. },
  22870. _readType: function () {
  22871. var t = this.element[0].nodeName.toLowerCase();
  22872. this.type = this.element[0].type, "input" === t && /radio|checkbox/.test(this.type) || S.error("Can't create checkboxradio on element.nodeName=" + t + " and element.type=" + this.type)
  22873. },
  22874. _enhance: function () {
  22875. this._updateIcon(this.element[0].checked)
  22876. },
  22877. widget: function () {
  22878. return this.label
  22879. },
  22880. _getRadioGroup: function () {
  22881. var t = this.element[0].name,
  22882. e = "input[name='" + S.ui.escapeSelector(t) + "']";
  22883. return t ? (this.form.length ? S(this.form[0].elements).filter(e) : S(e).filter(function () {
  22884. return 0 === S(this).form().length
  22885. })).not(this.element) : S([])
  22886. },
  22887. _toggleClasses: function () {
  22888. var t = this.element[0].checked;
  22889. this._toggleClass(this.label, "ui-checkboxradio-checked", "ui-state-active", t), this.options.icon && "checkbox" === this.type && this._toggleClass(this.icon, null, "ui-icon-check ui-state-checked", t)._toggleClass(this.icon, null, "ui-icon-blank", !t), "radio" === this.type && this._getRadioGroup().each(function () {
  22890. var t = S(this).checkboxradio("instance");
  22891. t && t._removeClass(t.label, "ui-checkboxradio-checked", "ui-state-active")
  22892. })
  22893. },
  22894. _destroy: function () {
  22895. this._unbindFormResetHandler(), this.icon && (this.icon.remove(), this.iconSpace.remove())
  22896. },
  22897. _setOption: function (t, e) {
  22898. return "label" !== t || e ? (this._super(t, e), "disabled" === t ? (this._toggleClass(this.label, null, "ui-state-disabled", e), void(this.element[0].disabled = e)) : void this.refresh()) : void 0
  22899. },
  22900. _updateIcon: function (t) {
  22901. var e = "ui-icon ui-icon-background ";
  22902. this.options.icon ? (this.icon || (this.icon = S("<span>"), this.iconSpace = S("<span> </span>"), this._addClass(this.iconSpace, "ui-checkboxradio-icon-space")), "checkbox" === this.type ? (e += t ? "ui-icon-check ui-state-checked" : "ui-icon-blank", this._removeClass(this.icon, null, t ? "ui-icon-blank" : "ui-icon-check")) : e += "ui-icon-blank", this._addClass(this.icon, "ui-checkboxradio-icon", e), t || this._removeClass(this.icon, null, "ui-icon-check ui-state-checked"), this.icon.prependTo(this.label).after(this.iconSpace)) : void 0 !== this.icon && (this.icon.remove(), this.iconSpace.remove(), delete this.icon)
  22903. },
  22904. _updateLabel: function () {
  22905. var t = this.label.contents().not(this.element[0]);
  22906. this.icon && (t = t.not(this.icon[0])), this.iconSpace && (t = t.not(this.iconSpace[0])), t.remove(), this.label.append(this.options.label)
  22907. },
  22908. refresh: function () {
  22909. var t = this.element[0].checked,
  22910. e = this.element[0].disabled;
  22911. this._updateIcon(t), this._toggleClass(this.label, "ui-checkboxradio-checked", "ui-state-active", t), null !== this.options.label && this._updateLabel(), e !== this.options.disabled && this._setOptions({
  22912. disabled: e
  22913. })
  22914. }
  22915. }]), S.ui.checkboxradio, S.widget("ui.button", {
  22916. version: "1.12.1",
  22917. defaultElement: "<button>",
  22918. options: {
  22919. classes: {
  22920. "ui-button": "ui-corner-all"
  22921. },
  22922. disabled: null,
  22923. icon: null,
  22924. iconPosition: "beginning",
  22925. label: null,
  22926. showLabel: !0
  22927. },
  22928. _getCreateOptions: function () {
  22929. var t, e = this._super() || {};
  22930. return this.isInput = this.element.is("input"), null != (t = this.element[0].disabled) && (e.disabled = t), this.originalLabel = this.isInput ? this.element.val() : this.element.html(), this.originalLabel && (e.label = this.originalLabel), e
  22931. },
  22932. _create: function () {
  22933. !this.option.showLabel & !this.options.icon && (this.options.showLabel = !0), null == this.options.disabled && (this.options.disabled = this.element[0].disabled || !1), this.hasTitle = !!this.element.attr("title"), this.options.label && this.options.label !== this.originalLabel && (this.isInput ? this.element.val(this.options.label) : this.element.html(this.options.label)), this._addClass("ui-button", "ui-widget"), this._setOption("disabled", this.options.disabled), this._enhance(), this.element.is("a") && this._on({
  22934. keyup: function (t) {
  22935. t.keyCode === S.ui.keyCode.SPACE && (t.preventDefault(), this.element[0].click ? this.element[0].click() : this.element.trigger("click"))
  22936. }
  22937. })
  22938. },
  22939. _enhance: function () {
  22940. this.element.is("button") || this.element.attr("role", "button"), this.options.icon && (this._updateIcon("icon", this.options.icon), this._updateTooltip())
  22941. },
  22942. _updateTooltip: function () {
  22943. this.title = this.element.attr("title"), this.options.showLabel || this.title || this.element.attr("title", this.options.label)
  22944. },
  22945. _updateIcon: function (t, e) {
  22946. var i = "iconPosition" !== t,
  22947. n = i ? this.options.iconPosition : e,
  22948. s = "top" === n || "bottom" === n;
  22949. this.icon ? i && this._removeClass(this.icon, null, this.options.icon) : (this.icon = S("<span>"), this._addClass(this.icon, "ui-button-icon", "ui-icon"), this.options.showLabel || this._addClass("ui-button-icon-only")), i && this._addClass(this.icon, null, e), this._attachIcon(n), s ? (this._addClass(this.icon, null, "ui-widget-icon-block"), this.iconSpace && this.iconSpace.remove()) : (this.iconSpace || (this.iconSpace = S("<span> </span>"), this._addClass(this.iconSpace, "ui-button-icon-space")), this._removeClass(this.icon, null, "ui-wiget-icon-block"), this._attachIconSpace(n))
  22950. },
  22951. _destroy: function () {
  22952. this.element.removeAttr("role"), this.icon && this.icon.remove(), this.iconSpace && this.iconSpace.remove(), this.hasTitle || this.element.removeAttr("title")
  22953. },
  22954. _attachIconSpace: function (t) {
  22955. this.icon[/^(?:end|bottom)/.test(t) ? "before" : "after"](this.iconSpace)
  22956. },
  22957. _attachIcon: function (t) {
  22958. this.element[/^(?:end|bottom)/.test(t) ? "append" : "prepend"](this.icon)
  22959. },
  22960. _setOptions: function (t) {
  22961. var e = void 0 === t.showLabel ? this.options.showLabel : t.showLabel,
  22962. i = void 0 === t.icon ? this.options.icon : t.icon;
  22963. e || i || (t.showLabel = !0), this._super(t)
  22964. },
  22965. _setOption: function (t, e) {
  22966. "icon" === t && (e ? this._updateIcon(t, e) : this.icon && (this.icon.remove(), this.iconSpace && this.iconSpace.remove())), "iconPosition" === t && this._updateIcon(t, e), "showLabel" === t && (this._toggleClass("ui-button-icon-only", null, !e), this._updateTooltip()), "label" === t && (this.isInput ? this.element.val(e) : (this.element.html(e), this.icon && (this._attachIcon(this.options.iconPosition), this._attachIconSpace(this.options.iconPosition)))), this._super(t, e), "disabled" === t && (this._toggleClass(null, "ui-state-disabled", e), (this.element[0].disabled = e) && this.element.blur())
  22967. },
  22968. refresh: function () {
  22969. var t = this.element.is("input, button") ? this.element[0].disabled : this.element.hasClass("ui-button-disabled");
  22970. t !== this.options.disabled && this._setOptions({
  22971. disabled: t
  22972. }), this._updateTooltip()
  22973. }
  22974. }), !1 !== S.uiBackCompat && (S.widget("ui.button", S.ui.button, {
  22975. options: {
  22976. text: !0,
  22977. icons: {
  22978. primary: null,
  22979. secondary: null
  22980. }
  22981. },
  22982. _create: function () {
  22983. this.options.showLabel && !this.options.text && (this.options.showLabel = this.options.text), !this.options.showLabel && this.options.text && (this.options.text = this.options.showLabel), this.options.icon || !this.options.icons.primary && !this.options.icons.secondary ? this.options.icon && (this.options.icons.primary = this.options.icon) : this.options.icons.primary ? this.options.icon = this.options.icons.primary : (this.options.icon = this.options.icons.secondary, this.options.iconPosition = "end"), this._super()
  22984. },
  22985. _setOption: function (t, e) {
  22986. return "text" === t ? void this._super("showLabel", e) : ("showLabel" === t && (this.options.text = e), "icon" === t && (this.options.icons.primary = e), "icons" === t && (e.primary ? (this._super("icon", e.primary), this._super("iconPosition", "beginning")) : e.secondary && (this._super("icon", e.secondary), this._super("iconPosition", "end"))), void this._superApply(arguments))
  22987. }
  22988. }), S.fn.button = (m = S.fn.button, function () {
  22989. return !this.length || this.length && "INPUT" !== this[0].tagName || this.length && "INPUT" === this[0].tagName && "checkbox" !== this.attr("type") && "radio" !== this.attr("type") ? m.apply(this, arguments) : (S.ui.checkboxradio || S.error("Checkboxradio widget missing"), 0 === arguments.length ? this.checkboxradio({
  22990. icon: !1
  22991. }) : this.checkboxradio.apply(this, arguments))
  22992. }), S.fn.buttonset = function () {
  22993. return S.ui.controlgroup || S.error("Controlgroup widget missing"), "option" === arguments[0] && "items" === arguments[1] && arguments[2] ? this.controlgroup.apply(this, [arguments[0], "items.button", arguments[2]]) : "option" === arguments[0] && "items" === arguments[1] ? this.controlgroup.apply(this, [arguments[0], "items.button"]) : ("object" == _typeof(arguments[0]) && arguments[0].items && (arguments[0].items = {
  22994. button: arguments[0].items
  22995. }), this.controlgroup.apply(this, arguments))
  22996. }), S.ui.button, S.extend(S.ui, {
  22997. datepicker: {
  22998. version: "1.12.1"
  22999. }
  23000. }), S.extend(t.prototype, {
  23001. markerClassName: "hasDatepicker",
  23002. maxRows: 4,
  23003. _widgetDatepicker: function () {
  23004. return this.dpDiv
  23005. },
  23006. setDefaults: function (t) {
  23007. return h(this._defaults, t || {}), this
  23008. },
  23009. _attachDatepicker: function (t, e) {
  23010. var i, n, s;
  23011. n = "div" === (i = t.nodeName.toLowerCase()) || "span" === i, t.id || (this.uuid += 1, t.id = "dp" + this.uuid), (s = this._newInst(S(t), n)).settings = S.extend({}, e || {}), "input" === i ? this._connectDatepicker(t, s) : n && this._inlineDatepicker(t, s)
  23012. },
  23013. _newInst: function (t, e) {
  23014. return {
  23015. id: t[0].id.replace(/([^A-Za-z0-9_\-])/g, "\\\\$1"),
  23016. input: t,
  23017. selectedDay: 0,
  23018. selectedMonth: 0,
  23019. selectedYear: 0,
  23020. drawMonth: 0,
  23021. drawYear: 0,
  23022. inline: e,
  23023. dpDiv: e ? i(S("<div class='" + this._inlineClass + " ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")) : this.dpDiv
  23024. }
  23025. },
  23026. _connectDatepicker: function (t, e) {
  23027. var i = S(t);
  23028. e.append = S([]), e.trigger = S([]), i.hasClass(this.markerClassName) || (this._attachments(i, e), i.addClass(this.markerClassName).on("keydown", this._doKeyDown).on("keypress", this._doKeyPress).on("keyup", this._doKeyUp), this._autoSize(e), S.data(t, "datepicker", e), e.settings.disabled && this._disableDatepicker(t))
  23029. },
  23030. _attachments: function (t, e) {
  23031. var i, n, s, o = this._get(e, "appendText"),
  23032. r = this._get(e, "isRTL");
  23033. e.append && e.append.remove(), o && (e.append = S("<span class='" + this._appendClass + "'>" + o + "</span>"), t[r ? "before" : "after"](e.append)), t.off("focus", this._showDatepicker), e.trigger && e.trigger.remove(), ("focus" === (i = this._get(e, "showOn")) || "both" === i) && t.on("focus", this._showDatepicker), ("button" === i || "both" === i) && (n = this._get(e, "buttonText"), s = this._get(e, "buttonImage"), e.trigger = S(this._get(e, "buttonImageOnly") ? S("<img/>").addClass(this._triggerClass).attr({
  23034. src: s,
  23035. alt: n,
  23036. title: n
  23037. }) : S("<button type='button'></button>").addClass(this._triggerClass).html(s ? S("<img/>").attr({
  23038. src: s,
  23039. alt: n,
  23040. title: n
  23041. }) : n)), t[r ? "before" : "after"](e.trigger), e.trigger.on("click", function () {
  23042. return S.datepicker._datepickerShowing && S.datepicker._lastInput === t[0] ? S.datepicker._hideDatepicker() : (S.datepicker._datepickerShowing && S.datepicker._lastInput !== t[0] && S.datepicker._hideDatepicker(), S.datepicker._showDatepicker(t[0])), !1
  23043. }))
  23044. },
  23045. _autoSize: function (t) {
  23046. if (this._get(t, "autoSize") && !t.inline) {
  23047. var e, i, n, s, o = new Date(2009, 11, 20),
  23048. r = this._get(t, "dateFormat");
  23049. r.match(/[DM]/) && (e = function (t) {
  23050. for (s = n = i = 0; t.length > s; s++) t[s].length > i && (i = t[s].length, n = s);
  23051. return n
  23052. }, o.setMonth(e(this._get(t, r.match(/MM/) ? "monthNames" : "monthNamesShort"))), o.setDate(e(this._get(t, r.match(/DD/) ? "dayNames" : "dayNamesShort")) + 20 - o.getDay())), t.input.attr("size", this._formatDate(t, o).length)
  23053. }
  23054. },
  23055. _inlineDatepicker: function (t, e) {
  23056. var i = S(t);
  23057. i.hasClass(this.markerClassName) || (i.addClass(this.markerClassName).append(e.dpDiv), S.data(t, "datepicker", e), this._setDate(e, this._getDefaultDate(e), !0), this._updateDatepicker(e), this._updateAlternate(e), e.settings.disabled && this._disableDatepicker(t), e.dpDiv.css("display", "block"))
  23058. },
  23059. _dialogDatepicker: function (t, e, i, n, s) {
  23060. var o, r, a, l, c, u = this._dialogInst;
  23061. return u || (this.uuid += 1, o = "dp" + this.uuid, this._dialogInput = S("<input type='text' id='" + o + "' style='position: absolute; top: -100px; width: 0px;'/>"), this._dialogInput.on("keydown", this._doKeyDown), S("body").append(this._dialogInput), (u = this._dialogInst = this._newInst(this._dialogInput, !1)).settings = {}, S.data(this._dialogInput[0], "datepicker", u)), h(u.settings, n || {}), e = e && e.constructor === Date ? this._formatDate(u, e) : e, this._dialogInput.val(e), this._pos = s ? s.length ? s : [s.pageX, s.pageY] : null, this._pos || (r = document.documentElement.clientWidth, a = document.documentElement.clientHeight, l = document.documentElement.scrollLeft || document.body.scrollLeft, c = document.documentElement.scrollTop || document.body.scrollTop, this._pos = [r / 2 - 100 + l, a / 2 - 150 + c]), this._dialogInput.css("left", this._pos[0] + 20 + "px").css("top", this._pos[1] + "px"), u.settings.onSelect = i, this._inDialog = !0, this.dpDiv.addClass(this._dialogClass), this._showDatepicker(this._dialogInput[0]), S.blockUI && S.blockUI(this.dpDiv), S.data(this._dialogInput[0], "datepicker", u), this
  23062. },
  23063. _destroyDatepicker: function (t) {
  23064. var e, i = S(t),
  23065. n = S.data(t, "datepicker");
  23066. i.hasClass(this.markerClassName) && (e = t.nodeName.toLowerCase(), S.removeData(t, "datepicker"), "input" === e ? (n.append.remove(), n.trigger.remove(), i.removeClass(this.markerClassName).off("focus", this._showDatepicker).off("keydown", this._doKeyDown).off("keypress", this._doKeyPress).off("keyup", this._doKeyUp)) : ("div" === e || "span" === e) && i.removeClass(this.markerClassName).empty(), v === n && (v = null))
  23067. },
  23068. _enableDatepicker: function (e) {
  23069. var t, i, n = S(e),
  23070. s = S.data(e, "datepicker");
  23071. n.hasClass(this.markerClassName) && ("input" === (t = e.nodeName.toLowerCase()) ? (e.disabled = !1, s.trigger.filter("button").each(function () {
  23072. this.disabled = !1
  23073. }).end().filter("img").css({
  23074. opacity: "1.0",
  23075. cursor: ""
  23076. })) : ("div" === t || "span" === t) && ((i = n.children("." + this._inlineClass)).children().removeClass("ui-state-disabled"), i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled", !1)), this._disabledInputs = S.map(this._disabledInputs, function (t) {
  23077. return t === e ? null : t
  23078. }))
  23079. },
  23080. _disableDatepicker: function (e) {
  23081. var t, i, n = S(e),
  23082. s = S.data(e, "datepicker");
  23083. n.hasClass(this.markerClassName) && ("input" === (t = e.nodeName.toLowerCase()) ? (e.disabled = !0, s.trigger.filter("button").each(function () {
  23084. this.disabled = !0
  23085. }).end().filter("img").css({
  23086. opacity: "0.5",
  23087. cursor: "default"
  23088. })) : ("div" === t || "span" === t) && ((i = n.children("." + this._inlineClass)).children().addClass("ui-state-disabled"), i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled", !0)), this._disabledInputs = S.map(this._disabledInputs, function (t) {
  23089. return t === e ? null : t
  23090. }), this._disabledInputs[this._disabledInputs.length] = e)
  23091. },
  23092. _isDisabledDatepicker: function (t) {
  23093. if (!t) return !1;
  23094. for (var e = 0; this._disabledInputs.length > e; e++)
  23095. if (this._disabledInputs[e] === t) return !0;
  23096. return !1
  23097. },
  23098. _getInst: function (t) {
  23099. try {
  23100. return S.data(t, "datepicker")
  23101. } catch (t) {
  23102. throw "Missing instance data for this datepicker"
  23103. }
  23104. },
  23105. _optionDatepicker: function (t, e, i) {
  23106. var n, s, o, r, a = this._getInst(t);
  23107. return 2 === arguments.length && "string" == typeof e ? "defaults" === e ? S.extend({}, S.datepicker._defaults) : a ? "all" === e ? S.extend({}, a.settings) : this._get(a, e) : null : (n = e || {}, "string" == typeof e && ((n = {})[e] = i), void(a && (this._curInst === a && this._hideDatepicker(), s = this._getDateDatepicker(t, !0), o = this._getMinMaxDate(a, "min"), r = this._getMinMaxDate(a, "max"), h(a.settings, n), null !== o && void 0 !== n.dateFormat && void 0 === n.minDate && (a.settings.minDate = this._formatDate(a, o)), null !== r && void 0 !== n.dateFormat && void 0 === n.maxDate && (a.settings.maxDate = this._formatDate(a, r)), "disabled" in n && (n.disabled ? this._disableDatepicker(t) : this._enableDatepicker(t)), this._attachments(S(t), a), this._autoSize(a), this._setDate(a, s), this._updateAlternate(a), this._updateDatepicker(a))))
  23108. },
  23109. _changeDatepicker: function (t, e, i) {
  23110. this._optionDatepicker(t, e, i)
  23111. },
  23112. _refreshDatepicker: function (t) {
  23113. var e = this._getInst(t);
  23114. e && this._updateDatepicker(e)
  23115. },
  23116. _setDateDatepicker: function (t, e) {
  23117. var i = this._getInst(t);
  23118. i && (this._setDate(i, e), this._updateDatepicker(i), this._updateAlternate(i))
  23119. },
  23120. _getDateDatepicker: function (t, e) {
  23121. var i = this._getInst(t);
  23122. return i && !i.inline && this._setDateFromField(i, e), i ? this._getDate(i) : null
  23123. },
  23124. _doKeyDown: function (t) {
  23125. var e, i, n, s = S.datepicker._getInst(t.target),
  23126. o = !0,
  23127. r = s.dpDiv.is(".ui-datepicker-rtl");
  23128. if (s._keyEvent = !0, S.datepicker._datepickerShowing) switch (t.keyCode) {
  23129. case 9:
  23130. S.datepicker._hideDatepicker(), o = !1;
  23131. break;
  23132. case 13:
  23133. return (n = S("td." + S.datepicker._dayOverClass + ":not(." + S.datepicker._currentClass + ")", s.dpDiv))[0] && S.datepicker._selectDay(t.target, s.selectedMonth, s.selectedYear, n[0]), (e = S.datepicker._get(s, "onSelect")) ? (i = S.datepicker._formatDate(s), e.apply(s.input ? s.input[0] : null, [i, s])) : S.datepicker._hideDatepicker(), !1;
  23134. case 27:
  23135. S.datepicker._hideDatepicker();
  23136. break;
  23137. case 33:
  23138. S.datepicker._adjustDate(t.target, t.ctrlKey ? -S.datepicker._get(s, "stepBigMonths") : -S.datepicker._get(s, "stepMonths"), "M");
  23139. break;
  23140. case 34:
  23141. S.datepicker._adjustDate(t.target, t.ctrlKey ? +S.datepicker._get(s, "stepBigMonths") : +S.datepicker._get(s, "stepMonths"), "M");
  23142. break;
  23143. case 35:
  23144. (t.ctrlKey || t.metaKey) && S.datepicker._clearDate(t.target), o = t.ctrlKey || t.metaKey;
  23145. break;
  23146. case 36:
  23147. (t.ctrlKey || t.metaKey) && S.datepicker._gotoToday(t.target), o = t.ctrlKey || t.metaKey;
  23148. break;
  23149. case 37:
  23150. (t.ctrlKey || t.metaKey) && S.datepicker._adjustDate(t.target, r ? 1 : -1, "D"), o = t.ctrlKey || t.metaKey, t.originalEvent.altKey && S.datepicker._adjustDate(t.target, t.ctrlKey ? -S.datepicker._get(s, "stepBigMonths") : -S.datepicker._get(s, "stepMonths"), "M");
  23151. break;
  23152. case 38:
  23153. (t.ctrlKey || t.metaKey) && S.datepicker._adjustDate(t.target, -7, "D"), o = t.ctrlKey || t.metaKey;
  23154. break;
  23155. case 39:
  23156. (t.ctrlKey || t.metaKey) && S.datepicker._adjustDate(t.target, r ? -1 : 1, "D"), o = t.ctrlKey || t.metaKey, t.originalEvent.altKey && S.datepicker._adjustDate(t.target, t.ctrlKey ? +S.datepicker._get(s, "stepBigMonths") : +S.datepicker._get(s, "stepMonths"), "M");
  23157. break;
  23158. case 40:
  23159. (t.ctrlKey || t.metaKey) && S.datepicker._adjustDate(t.target, 7, "D"), o = t.ctrlKey || t.metaKey;
  23160. break;
  23161. default:
  23162. o = !1
  23163. } else 36 === t.keyCode && t.ctrlKey ? S.datepicker._showDatepicker(this) : o = !1;
  23164. o && (t.preventDefault(), t.stopPropagation())
  23165. },
  23166. _doKeyPress: function (t) {
  23167. var e, i, n = S.datepicker._getInst(t.target);
  23168. return S.datepicker._get(n, "constrainInput") ? (e = S.datepicker._possibleChars(S.datepicker._get(n, "dateFormat")), i = String.fromCharCode(null == t.charCode ? t.keyCode : t.charCode), t.ctrlKey || t.metaKey || i < " " || !e || -1 < e.indexOf(i)) : void 0
  23169. },
  23170. _doKeyUp: function (t) {
  23171. var e = S.datepicker._getInst(t.target);
  23172. if (e.input.val() !== e.lastVal) try {
  23173. S.datepicker.parseDate(S.datepicker._get(e, "dateFormat"), e.input ? e.input.val() : null, S.datepicker._getFormatConfig(e)) && (S.datepicker._setDateFromField(e), S.datepicker._updateAlternate(e), S.datepicker._updateDatepicker(e))
  23174. } catch (t) {}
  23175. return !0
  23176. },
  23177. _showDatepicker: function (t) {
  23178. var e, i, n, s, o, r, a;
  23179. ("input" !== (t = t.target || t).nodeName.toLowerCase() && (t = S("input", t.parentNode)[0]), S.datepicker._isDisabledDatepicker(t) || S.datepicker._lastInput === t) || (e = S.datepicker._getInst(t), S.datepicker._curInst && S.datepicker._curInst !== e && (S.datepicker._curInst.dpDiv.stop(!0, !0), e && S.datepicker._datepickerShowing && S.datepicker._hideDatepicker(S.datepicker._curInst.input[0])), !1 !== (n = (i = S.datepicker._get(e, "beforeShow")) ? i.apply(t, [t, e]) : {}) && (h(e.settings, n), e.lastVal = null, S.datepicker._lastInput = t, S.datepicker._setDateFromField(e), S.datepicker._inDialog && (t.value = ""), S.datepicker._pos || (S.datepicker._pos = S.datepicker._findPos(t), S.datepicker._pos[1] += t.offsetHeight), s = !1, S(t).parents().each(function () {
  23180. return !(s |= "fixed" === S(this).css("position"))
  23181. }), o = {
  23182. left: S.datepicker._pos[0],
  23183. top: S.datepicker._pos[1]
  23184. }, S.datepicker._pos = null, e.dpDiv.empty(), e.dpDiv.css({
  23185. position: "absolute",
  23186. display: "block",
  23187. top: "-1000px"
  23188. }), S.datepicker._updateDatepicker(e), o = S.datepicker._checkOffset(e, o, s), e.dpDiv.css({
  23189. position: S.datepicker._inDialog && S.blockUI ? "static" : s ? "fixed" : "absolute",
  23190. display: "none",
  23191. left: o.left + "px",
  23192. top: o.top + "px"
  23193. }), e.inline || (r = S.datepicker._get(e, "showAnim"), a = S.datepicker._get(e, "duration"), e.dpDiv.css("z-index", function (t) {
  23194. for (var e, i; t.length && t[0] !== document;) {
  23195. if (("absolute" === (e = t.css("position")) || "relative" === e || "fixed" === e) && (i = parseInt(t.css("zIndex"), 10), !isNaN(i) && 0 !== i)) return i;
  23196. t = t.parent()
  23197. }
  23198. return 0
  23199. }(S(t)) + 1), S.datepicker._datepickerShowing = !0, S.effects && S.effects.effect[r] ? e.dpDiv.show(r, S.datepicker._get(e, "showOptions"), a) : e.dpDiv[r || "show"](r ? a : null), S.datepicker._shouldFocusInput(e) && e.input.trigger("focus"), S.datepicker._curInst = e)))
  23200. },
  23201. _updateDatepicker: function (t) {
  23202. this.maxRows = 4, (v = t).dpDiv.empty().append(this._generateHTML(t)), this._attachHandlers(t);
  23203. var e, i = this._getNumberOfMonths(t),
  23204. n = i[1],
  23205. s = t.dpDiv.find("." + this._dayOverClass + " a");
  23206. 0 < s.length && o.apply(s.get(0)), t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""), 1 < n && t.dpDiv.addClass("ui-datepicker-multi-" + n).css("width", 17 * n + "em"), t.dpDiv[(1 !== i[0] || 1 !== i[1] ? "add" : "remove") + "Class"]("ui-datepicker-multi"), t.dpDiv[(this._get(t, "isRTL") ? "add" : "remove") + "Class"]("ui-datepicker-rtl"), t === S.datepicker._curInst && S.datepicker._datepickerShowing && S.datepicker._shouldFocusInput(t) && t.input.trigger("focus"), t.yearshtml && (e = t.yearshtml, setTimeout(function () {
  23207. e === t.yearshtml && t.yearshtml && t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml), e = t.yearshtml = null
  23208. }, 0))
  23209. },
  23210. _shouldFocusInput: function (t) {
  23211. return t.input && t.input.is(":visible") && !t.input.is(":disabled") && !t.input.is(":focus")
  23212. },
  23213. _checkOffset: function (t, e, i) {
  23214. var n = t.dpDiv.outerWidth(),
  23215. s = t.dpDiv.outerHeight(),
  23216. o = t.input ? t.input.outerWidth() : 0,
  23217. r = t.input ? t.input.outerHeight() : 0,
  23218. a = document.documentElement.clientWidth + (i ? 0 : S(document).scrollLeft()),
  23219. l = document.documentElement.clientHeight + (i ? 0 : S(document).scrollTop());
  23220. return e.left -= this._get(t, "isRTL") ? n - o : 0, e.left -= i && e.left === t.input.offset().left ? S(document).scrollLeft() : 0, e.top -= i && e.top === t.input.offset().top + r ? S(document).scrollTop() : 0, e.left -= Math.min(e.left, e.left + n > a && n < a ? Math.abs(e.left + n - a) : 0), e.top -= Math.min(e.top, e.top + s > l && s < l ? Math.abs(s + r) : 0), e
  23221. },
  23222. _findPos: function (t) {
  23223. for (var e, i = this._getInst(t), n = this._get(i, "isRTL"); t && ("hidden" === t.type || 1 !== t.nodeType || S.expr.filters.hidden(t));) t = t[n ? "previousSibling" : "nextSibling"];
  23224. return [(e = S(t).offset()).left, e.top]
  23225. },
  23226. _hideDatepicker: function (t) {
  23227. var e, i, n, s, o = this._curInst;
  23228. !o || t && o !== S.data(t, "datepicker") || this._datepickerShowing && (e = this._get(o, "showAnim"), i = this._get(o, "duration"), n = function () {
  23229. S.datepicker._tidyDialog(o)
  23230. }, S.effects && (S.effects.effect[e] || S.effects[e]) ? o.dpDiv.hide(e, S.datepicker._get(o, "showOptions"), i, n) : o.dpDiv["slideDown" === e ? "slideUp" : "fadeIn" === e ? "fadeOut" : "hide"](e ? i : null, n), e || n(), this._datepickerShowing = !1, (s = this._get(o, "onClose")) && s.apply(o.input ? o.input[0] : null, [o.input ? o.input.val() : "", o]), this._lastInput = null, this._inDialog && (this._dialogInput.css({
  23231. position: "absolute",
  23232. left: "0",
  23233. top: "-100px"
  23234. }), S.blockUI && (S.unblockUI(), S("body").append(this.dpDiv))), this._inDialog = !1)
  23235. },
  23236. _tidyDialog: function (t) {
  23237. t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")
  23238. },
  23239. _checkExternalClick: function (t) {
  23240. if (S.datepicker._curInst) {
  23241. var e = S(t.target),
  23242. i = S.datepicker._getInst(e[0]);
  23243. (e[0].id !== S.datepicker._mainDivId && 0 === e.parents("#" + S.datepicker._mainDivId).length && !e.hasClass(S.datepicker.markerClassName) && !e.closest("." + S.datepicker._triggerClass).length && S.datepicker._datepickerShowing && (!S.datepicker._inDialog || !S.blockUI) || e.hasClass(S.datepicker.markerClassName) && S.datepicker._curInst !== i) && S.datepicker._hideDatepicker()
  23244. }
  23245. },
  23246. _adjustDate: function (t, e, i) {
  23247. var n = S(t),
  23248. s = this._getInst(n[0]);
  23249. this._isDisabledDatepicker(n[0]) || (this._adjustInstDate(s, e + ("M" === i ? this._get(s, "showCurrentAtPos") : 0), i), this._updateDatepicker(s))
  23250. },
  23251. _gotoToday: function (t) {
  23252. var e, i = S(t),
  23253. n = this._getInst(i[0]);
  23254. this._get(n, "gotoCurrent") && n.currentDay ? (n.selectedDay = n.currentDay, n.drawMonth = n.selectedMonth = n.currentMonth, n.drawYear = n.selectedYear = n.currentYear) : (e = new Date, n.selectedDay = e.getDate(), n.drawMonth = n.selectedMonth = e.getMonth(), n.drawYear = n.selectedYear = e.getFullYear()), this._notifyChange(n), this._adjustDate(i)
  23255. },
  23256. _selectMonthYear: function (t, e, i) {
  23257. var n = S(t),
  23258. s = this._getInst(n[0]);
  23259. s["selected" + ("M" === i ? "Month" : "Year")] = s["draw" + ("M" === i ? "Month" : "Year")] = parseInt(e.options[e.selectedIndex].value, 10), this._notifyChange(s), this._adjustDate(n)
  23260. },
  23261. _selectDay: function (t, e, i, n) {
  23262. var s, o = S(t);
  23263. S(n).hasClass(this._unselectableClass) || this._isDisabledDatepicker(o[0]) || ((s = this._getInst(o[0])).selectedDay = s.currentDay = S("a", n).html(), s.selectedMonth = s.currentMonth = e, s.selectedYear = s.currentYear = i, this._selectDate(t, this._formatDate(s, s.currentDay, s.currentMonth, s.currentYear)))
  23264. },
  23265. _clearDate: function (t) {
  23266. var e = S(t);
  23267. this._selectDate(e, "")
  23268. },
  23269. _selectDate: function (t, e) {
  23270. var i, n = S(t),
  23271. s = this._getInst(n[0]);
  23272. e = null != e ? e : this._formatDate(s), s.input && s.input.val(e), this._updateAlternate(s), (i = this._get(s, "onSelect")) ? i.apply(s.input ? s.input[0] : null, [e, s]) : s.input && s.input.trigger("change"), s.inline ? this._updateDatepicker(s) : (this._hideDatepicker(), this._lastInput = s.input[0], "object" != _typeof(s.input[0]) && s.input.trigger("focus"), this._lastInput = null)
  23273. },
  23274. _updateAlternate: function (t) {
  23275. var e, i, n, s = this._get(t, "altField");
  23276. s && (e = this._get(t, "altFormat") || this._get(t, "dateFormat"), i = this._getDate(t), n = this.formatDate(e, i, this._getFormatConfig(t)), S(s).val(n))
  23277. },
  23278. noWeekends: function (t) {
  23279. var e = t.getDay();
  23280. return [0 < e && e < 6, ""]
  23281. },
  23282. iso8601Week: function (t) {
  23283. var e, i = new Date(t.getTime());
  23284. return i.setDate(i.getDate() + 4 - (i.getDay() || 7)), e = i.getTime(), i.setMonth(0), i.setDate(1), Math.floor(Math.round((e - i) / 864e5) / 7) + 1
  23285. },
  23286. parseDate: function (i, o, t) {
  23287. if (null == i || null == o) throw "Invalid arguments";
  23288. if ("" === (o = "object" == _typeof(o) ? "" + o : o + "")) return null;
  23289. function r(t) {
  23290. var e = i.length > a + 1 && i.charAt(a + 1) === t;
  23291. return e && a++, e
  23292. }
  23293. function e(t) {
  23294. var e = r(t),
  23295. i = "@" === t ? 14 : "!" === t ? 20 : "y" === t && e ? 4 : "o" === t ? 3 : 2,
  23296. n = RegExp("^\\d{" + ("y" === t ? i : 1) + "," + i + "}"),
  23297. s = o.substring(h).match(n);
  23298. if (!s) throw "Missing number at position " + h;
  23299. return h += s[0].length, parseInt(s[0], 10)
  23300. }
  23301. function n(t, e, i) {
  23302. var n = -1,
  23303. s = S.map(r(t) ? i : e, function (t, e) {
  23304. return [
  23305. [e, t]
  23306. ]
  23307. }).sort(function (t, e) {
  23308. return -(t[1].length - e[1].length)
  23309. });
  23310. if (S.each(s, function (t, e) {
  23311. var i = e[1];
  23312. return o.substr(h, i.length).toLowerCase() === i.toLowerCase() ? (n = e[0], h += i.length, !1) : void 0
  23313. }), -1 !== n) return n + 1;
  23314. throw "Unknown name at position " + h
  23315. }
  23316. function s() {
  23317. if (o.charAt(h) !== i.charAt(a)) throw "Unexpected literal at position " + h;
  23318. h++
  23319. }
  23320. var a, l, c, u, h = 0,
  23321. d = (t ? t.shortYearCutoff : null) || this._defaults.shortYearCutoff,
  23322. p = "string" != typeof d ? d : (new Date).getFullYear() % 100 + parseInt(d, 10),
  23323. f = (t ? t.dayNamesShort : null) || this._defaults.dayNamesShort,
  23324. g = (t ? t.dayNames : null) || this._defaults.dayNames,
  23325. m = (t ? t.monthNamesShort : null) || this._defaults.monthNamesShort,
  23326. v = (t ? t.monthNames : null) || this._defaults.monthNames,
  23327. _ = -1,
  23328. y = -1,
  23329. b = -1,
  23330. w = -1,
  23331. k = !1;
  23332. for (a = 0; i.length > a; a++)
  23333. if (k) "'" !== i.charAt(a) || r("'") ? s() : k = !1;
  23334. else switch (i.charAt(a)) {
  23335. case "d":
  23336. b = e("d");
  23337. break;
  23338. case "D":
  23339. n("D", f, g);
  23340. break;
  23341. case "o":
  23342. w = e("o");
  23343. break;
  23344. case "m":
  23345. y = e("m");
  23346. break;
  23347. case "M":
  23348. y = n("M", m, v);
  23349. break;
  23350. case "y":
  23351. _ = e("y");
  23352. break;
  23353. case "@":
  23354. _ = (u = new Date(e("@"))).getFullYear(), y = u.getMonth() + 1, b = u.getDate();
  23355. break;
  23356. case "!":
  23357. _ = (u = new Date((e("!") - this._ticksTo1970) / 1e4)).getFullYear(), y = u.getMonth() + 1, b = u.getDate();
  23358. break;
  23359. case "'":
  23360. r("'") ? s() : k = !0;
  23361. break;
  23362. default:
  23363. s()
  23364. }
  23365. if (o.length > h && (c = o.substr(h), !/^\s+/.test(c))) throw "Extra/unparsed characters found in date: " + c;
  23366. if (-1 === _ ? _ = (new Date).getFullYear() : _ < 100 && (_ += (new Date).getFullYear() - (new Date).getFullYear() % 100 + (_ <= p ? 0 : -100)), -1 < w)
  23367. for (y = 1, b = w; !(b <= (l = this._getDaysInMonth(_, y - 1)));) y++, b -= l;
  23368. if ((u = this._daylightSavingAdjust(new Date(_, y - 1, b))).getFullYear() !== _ || u.getMonth() + 1 !== y || u.getDate() !== b) throw "Invalid date";
  23369. return u
  23370. },
  23371. ATOM: "yy-mm-dd",
  23372. COOKIE: "D, dd M yy",
  23373. ISO_8601: "yy-mm-dd",
  23374. RFC_822: "D, d M y",
  23375. RFC_850: "DD, dd-M-y",
  23376. RFC_1036: "D, d M y",
  23377. RFC_1123: "D, d M yy",
  23378. RFC_2822: "D, d M yy",
  23379. RSS: "D, d M y",
  23380. TICKS: "!",
  23381. TIMESTAMP: "@",
  23382. W3C: "yy-mm-dd",
  23383. _ticksTo1970: 864e9 * (718685 + Math.floor(492.5) - Math.floor(19.7) + Math.floor(4.925)),
  23384. formatDate: function (i, t, e) {
  23385. if (!t) return "";
  23386. function s(t) {
  23387. var e = i.length > r + 1 && i.charAt(r + 1) === t;
  23388. return e && r++, e
  23389. }
  23390. function n(t, e, i) {
  23391. var n = "" + e;
  23392. if (s(t))
  23393. for (; i > n.length;) n = "0" + n;
  23394. return n
  23395. }
  23396. function o(t, e, i, n) {
  23397. return s(t) ? n[e] : i[e]
  23398. }
  23399. var r, a = (e ? e.dayNamesShort : null) || this._defaults.dayNamesShort,
  23400. l = (e ? e.dayNames : null) || this._defaults.dayNames,
  23401. c = (e ? e.monthNamesShort : null) || this._defaults.monthNamesShort,
  23402. u = (e ? e.monthNames : null) || this._defaults.monthNames,
  23403. h = "",
  23404. d = !1;
  23405. if (t)
  23406. for (r = 0; i.length > r; r++)
  23407. if (d) "'" !== i.charAt(r) || s("'") ? h += i.charAt(r) : d = !1;
  23408. else switch (i.charAt(r)) {
  23409. case "d":
  23410. h += n("d", t.getDate(), 2);
  23411. break;
  23412. case "D":
  23413. h += o("D", t.getDay(), a, l);
  23414. break;
  23415. case "o":
  23416. h += n("o", Math.round((new Date(t.getFullYear(), t.getMonth(), t.getDate()).getTime() - new Date(t.getFullYear(), 0, 0).getTime()) / 864e5), 3);
  23417. break;
  23418. case "m":
  23419. h += n("m", t.getMonth() + 1, 2);
  23420. break;
  23421. case "M":
  23422. h += o("M", t.getMonth(), c, u);
  23423. break;
  23424. case "y":
  23425. h += s("y") ? t.getFullYear() : (t.getFullYear() % 100 < 10 ? "0" : "") + t.getFullYear() % 100;
  23426. break;
  23427. case "@":
  23428. h += t.getTime();
  23429. break;
  23430. case "!":
  23431. h += 1e4 * t.getTime() + this._ticksTo1970;
  23432. break;
  23433. case "'":
  23434. s("'") ? h += "'" : d = !0;
  23435. break;
  23436. default:
  23437. h += i.charAt(r)
  23438. }
  23439. return h
  23440. },
  23441. _possibleChars: function (i) {
  23442. function t(t) {
  23443. var e = i.length > n + 1 && i.charAt(n + 1) === t;
  23444. return e && n++, e
  23445. }
  23446. var n, e = "",
  23447. s = !1;
  23448. for (n = 0; i.length > n; n++)
  23449. if (s) "'" !== i.charAt(n) || t("'") ? e += i.charAt(n) : s = !1;
  23450. else switch (i.charAt(n)) {
  23451. case "d":
  23452. case "m":
  23453. case "y":
  23454. case "@":
  23455. e += "0123456789";
  23456. break;
  23457. case "D":
  23458. case "M":
  23459. return null;
  23460. case "'":
  23461. t("'") ? e += "'" : s = !0;
  23462. break;
  23463. default:
  23464. e += i.charAt(n)
  23465. }
  23466. return e
  23467. },
  23468. _get: function (t, e) {
  23469. return void 0 !== t.settings[e] ? t.settings[e] : this._defaults[e]
  23470. },
  23471. _setDateFromField: function (t, e) {
  23472. if (t.input.val() !== t.lastVal) {
  23473. var i = this._get(t, "dateFormat"),
  23474. n = t.lastVal = t.input ? t.input.val() : null,
  23475. s = this._getDefaultDate(t),
  23476. o = s,
  23477. r = this._getFormatConfig(t);
  23478. try {
  23479. o = this.parseDate(i, n, r) || s
  23480. } catch (t) {
  23481. n = e ? "" : n
  23482. }
  23483. t.selectedDay = o.getDate(), t.drawMonth = t.selectedMonth = o.getMonth(), t.drawYear = t.selectedYear = o.getFullYear(), t.currentDay = n ? o.getDate() : 0, t.currentMonth = n ? o.getMonth() : 0, t.currentYear = n ? o.getFullYear() : 0, this._adjustInstDate(t)
  23484. }
  23485. },
  23486. _getDefaultDate: function (t) {
  23487. return this._restrictMinMax(t, this._determineDate(t, this._get(t, "defaultDate"), new Date))
  23488. },
  23489. _determineDate: function (a, t, e) {
  23490. var i, n, s = null == t || "" === t ? e : "string" == typeof t ? function (t) {
  23491. try {
  23492. return S.datepicker.parseDate(S.datepicker._get(a, "dateFormat"), t, S.datepicker._getFormatConfig(a))
  23493. } catch (t) {}
  23494. for (var e = (t.toLowerCase().match(/^c/) ? S.datepicker._getDate(a) : null) || new Date, i = e.getFullYear(), n = e.getMonth(), s = e.getDate(), o = /([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g, r = o.exec(t); r;) {
  23495. switch (r[2] || "d") {
  23496. case "d":
  23497. case "D":
  23498. s += parseInt(r[1], 10);
  23499. break;
  23500. case "w":
  23501. case "W":
  23502. s += 7 * parseInt(r[1], 10);
  23503. break;
  23504. case "m":
  23505. case "M":
  23506. n += parseInt(r[1], 10), s = Math.min(s, S.datepicker._getDaysInMonth(i, n));
  23507. break;
  23508. case "y":
  23509. case "Y":
  23510. i += parseInt(r[1], 10), s = Math.min(s, S.datepicker._getDaysInMonth(i, n))
  23511. }
  23512. r = o.exec(t)
  23513. }
  23514. return new Date(i, n, s)
  23515. }(t) : "number" == typeof t ? isNaN(t) ? e : (i = t, (n = new Date).setDate(n.getDate() + i), n) : new Date(t.getTime());
  23516. return (s = s && "Invalid Date" == "" + s ? e : s) && (s.setHours(0), s.setMinutes(0), s.setSeconds(0), s.setMilliseconds(0)), this._daylightSavingAdjust(s)
  23517. },
  23518. _daylightSavingAdjust: function (t) {
  23519. return t ? (t.setHours(12 < t.getHours() ? t.getHours() + 2 : 0), t) : null
  23520. },
  23521. _setDate: function (t, e, i) {
  23522. var n = !e,
  23523. s = t.selectedMonth,
  23524. o = t.selectedYear,
  23525. r = this._restrictMinMax(t, this._determineDate(t, e, new Date));
  23526. t.selectedDay = t.currentDay = r.getDate(), t.drawMonth = t.selectedMonth = t.currentMonth = r.getMonth(), t.drawYear = t.selectedYear = t.currentYear = r.getFullYear(), s === t.selectedMonth && o === t.selectedYear || i || this._notifyChange(t), this._adjustInstDate(t), t.input && t.input.val(n ? "" : this._formatDate(t))
  23527. },
  23528. _getDate: function (t) {
  23529. return !t.currentYear || t.input && "" === t.input.val() ? null : this._daylightSavingAdjust(new Date(t.currentYear, t.currentMonth, t.currentDay))
  23530. },
  23531. _attachHandlers: function (t) {
  23532. var e = this._get(t, "stepMonths"),
  23533. i = "#" + t.id.replace(/\\\\/g, "\\");
  23534. t.dpDiv.find("[data-handler]").map(function () {
  23535. var t = {
  23536. prev: function () {
  23537. S.datepicker._adjustDate(i, -e, "M")
  23538. },
  23539. next: function () {
  23540. S.datepicker._adjustDate(i, +e, "M")
  23541. },
  23542. hide: function () {
  23543. S.datepicker._hideDatepicker()
  23544. },
  23545. today: function () {
  23546. S.datepicker._gotoToday(i)
  23547. },
  23548. selectDay: function () {
  23549. return S.datepicker._selectDay(i, +this.getAttribute("data-month"), +this.getAttribute("data-year"), this), !1
  23550. },
  23551. selectMonth: function () {
  23552. return S.datepicker._selectMonthYear(i, this, "M"), !1
  23553. },
  23554. selectYear: function () {
  23555. return S.datepicker._selectMonthYear(i, this, "Y"), !1
  23556. }
  23557. };
  23558. S(this).on(this.getAttribute("data-event"), t[this.getAttribute("data-handler")])
  23559. })
  23560. },
  23561. _generateHTML: function (t) {
  23562. var e, i, n, s, o, r, a, l, c, u, h, d, p, f, g, m, v, _, y, b, w, k, x, C, T, S, D, A, E, P, I, O, M, N, L, H, j, z, W, $ = new Date,
  23563. R = this._daylightSavingAdjust(new Date($.getFullYear(), $.getMonth(), $.getDate())),
  23564. F = this._get(t, "isRTL"),
  23565. q = this._get(t, "showButtonPanel"),
  23566. B = this._get(t, "hideIfNoPrevNext"),
  23567. U = this._get(t, "navigationAsDateFormat"),
  23568. Y = this._getNumberOfMonths(t),
  23569. V = this._get(t, "showCurrentAtPos"),
  23570. K = this._get(t, "stepMonths"),
  23571. X = 1 !== Y[0] || 1 !== Y[1],
  23572. Q = this._daylightSavingAdjust(t.currentDay ? new Date(t.currentYear, t.currentMonth, t.currentDay) : new Date(9999, 9, 9)),
  23573. G = this._getMinMaxDate(t, "min"),
  23574. J = this._getMinMaxDate(t, "max"),
  23575. Z = t.drawMonth - V,
  23576. tt = t.drawYear;
  23577. if (Z < 0 && (Z += 12, tt--), J)
  23578. for (e = this._daylightSavingAdjust(new Date(J.getFullYear(), J.getMonth() - Y[0] * Y[1] + 1, J.getDate())), e = G && e < G ? G : e; this._daylightSavingAdjust(new Date(tt, Z, 1)) > e;) --Z < 0 && (Z = 11, tt--);
  23579. for (t.drawMonth = Z, t.drawYear = tt, i = this._get(t, "prevText"), i = U ? this.formatDate(i, this._daylightSavingAdjust(new Date(tt, Z - K, 1)), this._getFormatConfig(t)) : i, n = this._canAdjustMonth(t, -1, tt, Z) ? "<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='" + i + "'><span class='ui-icon ui-icon-circle-triangle-" + (F ? "e" : "w") + "'>" + i + "</span></a>" : B ? "" : "<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='" + i + "'><span class='ui-icon ui-icon-circle-triangle-" + (F ? "e" : "w") + "'>" + i + "</span></a>", s = this._get(t, "nextText"), s = U ? this.formatDate(s, this._daylightSavingAdjust(new Date(tt, Z + K, 1)), this._getFormatConfig(t)) : s, o = this._canAdjustMonth(t, 1, tt, Z) ? "<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='" + s + "'><span class='ui-icon ui-icon-circle-triangle-" + (F ? "w" : "e") + "'>" + s + "</span></a>" : B ? "" : "<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='" + s + "'><span class='ui-icon ui-icon-circle-triangle-" + (F ? "w" : "e") + "'>" + s + "</span></a>", r = this._get(t, "currentText"), a = this._get(t, "gotoCurrent") && t.currentDay ? Q : R, r = U ? this.formatDate(r, a, this._getFormatConfig(t)) : r, l = t.inline ? "" : "<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>" + this._get(t, "closeText") + "</button>", c = q ? "<div class='ui-datepicker-buttonpane ui-widget-content'>" + (F ? l : "") + (this._isInRange(t, a) ? "<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>" + r + "</button>" : "") + (F ? "" : l) + "</div>" : "", u = parseInt(this._get(t, "firstDay"), 10), u = isNaN(u) ? 0 : u, h = this._get(t, "showWeek"), d = this._get(t, "dayNames"), p = this._get(t, "dayNamesMin"), f = this._get(t, "monthNames"), g = this._get(t, "monthNamesShort"), m = this._get(t, "beforeShowDay"), v = this._get(t, "showOtherMonths"), _ = this._get(t, "selectOtherMonths"), y = this._getDefaultDate(t), b = "", k = 0; Y[0] > k; k++) {
  23580. for (x = "", this.maxRows = 4, C = 0; Y[1] > C; C++) {
  23581. if (T = this._daylightSavingAdjust(new Date(tt, Z, t.selectedDay)), S = " ui-corner-all", D = "", X) {
  23582. if (D += "<div class='ui-datepicker-group", 1 < Y[1]) switch (C) {
  23583. case 0:
  23584. D += " ui-datepicker-group-first", S = " ui-corner-" + (F ? "right" : "left");
  23585. break;
  23586. case Y[1] - 1:
  23587. D += " ui-datepicker-group-last", S = " ui-corner-" + (F ? "left" : "right");
  23588. break;
  23589. default:
  23590. D += " ui-datepicker-group-middle", S = ""
  23591. }
  23592. D += "'>"
  23593. }
  23594. for (D += "<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix" + S + "'>" + (/all|left/.test(S) && 0 === k ? F ? o : n : "") + (/all|right/.test(S) && 0 === k ? F ? n : o : "") + this._generateMonthYearHeader(t, Z, tt, G, J, 0 < k || 0 < C, f, g) + "</div><table class='ui-datepicker-calendar'><thead><tr>", A = h ? "<th class='ui-datepicker-week-col'>" + this._get(t, "weekHeader") + "</th>" : "", w = 0; w < 7; w++) A += "<th scope='col'" + (5 <= (w + u + 6) % 7 ? " class='ui-datepicker-week-end'" : "") + "><span title='" + d[E = (w + u) % 7] + "'>" + p[E] + "</span></th>";
  23595. for (D += A + "</tr></thead><tbody>", P = this._getDaysInMonth(tt, Z), tt === t.selectedYear && Z === t.selectedMonth && (t.selectedDay = Math.min(t.selectedDay, P)), I = (this._getFirstDayOfMonth(tt, Z) - u + 7) % 7, O = Math.ceil((I + P) / 7), M = X && this.maxRows > O ? this.maxRows : O, this.maxRows = M, N = this._daylightSavingAdjust(new Date(tt, Z, 1 - I)), L = 0; L < M; L++) {
  23596. for (D += "<tr>", H = h ? "<td class='ui-datepicker-week-col'>" + this._get(t, "calculateWeek")(N) + "</td>" : "", w = 0; w < 7; w++) j = m ? m.apply(t.input ? t.input[0] : null, [N]) : [!0, ""], W = (z = N.getMonth() !== Z) && !_ || !j[0] || G && N < G || J && J < N, H += "<td class='" + (5 <= (w + u + 6) % 7 ? " ui-datepicker-week-end" : "") + (z ? " ui-datepicker-other-month" : "") + (N.getTime() === T.getTime() && Z === t.selectedMonth && t._keyEvent || y.getTime() === N.getTime() && y.getTime() === T.getTime() ? " " + this._dayOverClass : "") + (W ? " " + this._unselectableClass + " ui-state-disabled" : "") + (z && !v ? "" : " " + j[1] + (N.getTime() === Q.getTime() ? " " + this._currentClass : "") + (N.getTime() === R.getTime() ? " ui-datepicker-today" : "")) + "'" + (z && !v || !j[2] ? "" : " title='" + j[2].replace(/'/g, "&#39;") + "'") + (W ? "" : " data-handler='selectDay' data-event='click' data-month='" + N.getMonth() + "' data-year='" + N.getFullYear() + "'") + ">" + (z && !v ? "&#xa0;" : W ? "<span class='ui-state-default'>" + N.getDate() + "</span>" : "<a class='ui-state-default" + (N.getTime() === R.getTime() ? " ui-state-highlight" : "") + (N.getTime() === Q.getTime() ? " ui-state-active" : "") + (z ? " ui-priority-secondary" : "") + "' href='#'>" + N.getDate() + "</a>") + "</td>", N.setDate(N.getDate() + 1), N = this._daylightSavingAdjust(N);
  23597. D += H + "</tr>"
  23598. }
  23599. 11 < ++Z && (Z = 0, tt++), x += D += "</tbody></table>" + (X ? "</div>" + (0 < Y[0] && C === Y[1] - 1 ? "<div class='ui-datepicker-row-break'></div>" : "") : "")
  23600. }
  23601. b += x
  23602. }
  23603. return b += c, t._keyEvent = !1, b
  23604. },
  23605. _generateMonthYearHeader: function (t, e, i, n, s, o, r, a) {
  23606. var l, c, u, h, d, p, f, g, m = this._get(t, "changeMonth"),
  23607. v = this._get(t, "changeYear"),
  23608. _ = this._get(t, "showMonthAfterYear"),
  23609. y = "<div class='ui-datepicker-title'>",
  23610. b = "";
  23611. if (o || !m) b += "<span class='ui-datepicker-month'>" + r[e] + "</span>";
  23612. else {
  23613. for (l = n && n.getFullYear() === i, c = s && s.getFullYear() === i, b += "<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>", u = 0; u < 12; u++)(!l || u >= n.getMonth()) && (!c || s.getMonth() >= u) && (b += "<option value='" + u + "'" + (u === e ? " selected='selected'" : "") + ">" + a[u] + "</option>");
  23614. b += "</select>"
  23615. }
  23616. if (_ || (y += b + (!o && m && v ? "" : "&#xa0;")), !t.yearshtml)
  23617. if (t.yearshtml = "", o || !v) y += "<span class='ui-datepicker-year'>" + i + "</span>";
  23618. else {
  23619. for (h = this._get(t, "yearRange").split(":"), d = (new Date).getFullYear(), f = (p = function (t) {
  23620. var e = t.match(/c[+\-].*/) ? i + parseInt(t.substring(1), 10) : t.match(/[+\-].*/) ? d + parseInt(t, 10) : parseInt(t, 10);
  23621. return isNaN(e) ? d : e
  23622. })(h[0]), g = Math.max(f, p(h[1] || "")), f = n ? Math.max(f, n.getFullYear()) : f, g = s ? Math.min(g, s.getFullYear()) : g, t.yearshtml += "<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>"; f <= g; f++) t.yearshtml += "<option value='" + f + "'" + (f === i ? " selected='selected'" : "") + ">" + f + "</option>";
  23623. t.yearshtml += "</select>", y += t.yearshtml, t.yearshtml = null
  23624. } return y += this._get(t, "yearSuffix"), _ && (y += (!o && m && v ? "" : "&#xa0;") + b), y + "</div>"
  23625. },
  23626. _adjustInstDate: function (t, e, i) {
  23627. var n = t.selectedYear + ("Y" === i ? e : 0),
  23628. s = t.selectedMonth + ("M" === i ? e : 0),
  23629. o = Math.min(t.selectedDay, this._getDaysInMonth(n, s)) + ("D" === i ? e : 0),
  23630. r = this._restrictMinMax(t, this._daylightSavingAdjust(new Date(n, s, o)));
  23631. t.selectedDay = r.getDate(), t.drawMonth = t.selectedMonth = r.getMonth(), t.drawYear = t.selectedYear = r.getFullYear(), ("M" === i || "Y" === i) && this._notifyChange(t)
  23632. },
  23633. _restrictMinMax: function (t, e) {
  23634. var i = this._getMinMaxDate(t, "min"),
  23635. n = this._getMinMaxDate(t, "max"),
  23636. s = i && e < i ? i : e;
  23637. return n && n < s ? n : s
  23638. },
  23639. _notifyChange: function (t) {
  23640. var e = this._get(t, "onChangeMonthYear");
  23641. e && e.apply(t.input ? t.input[0] : null, [t.selectedYear, t.selectedMonth + 1, t])
  23642. },
  23643. _getNumberOfMonths: function (t) {
  23644. var e = this._get(t, "numberOfMonths");
  23645. return null == e ? [1, 1] : "number" == typeof e ? [1, e] : e
  23646. },
  23647. _getMinMaxDate: function (t, e) {
  23648. return this._determineDate(t, this._get(t, e + "Date"), null)
  23649. },
  23650. _getDaysInMonth: function (t, e) {
  23651. return 32 - this._daylightSavingAdjust(new Date(t, e, 32)).getDate()
  23652. },
  23653. _getFirstDayOfMonth: function (t, e) {
  23654. return new Date(t, e, 1).getDay()
  23655. },
  23656. _canAdjustMonth: function (t, e, i, n) {
  23657. var s = this._getNumberOfMonths(t),
  23658. o = this._daylightSavingAdjust(new Date(i, n + (e < 0 ? e : s[0] * s[1]), 1));
  23659. return e < 0 && o.setDate(this._getDaysInMonth(o.getFullYear(), o.getMonth())), this._isInRange(t, o)
  23660. },
  23661. _isInRange: function (t, e) {
  23662. var i, n, s = this._getMinMaxDate(t, "min"),
  23663. o = this._getMinMaxDate(t, "max"),
  23664. r = null,
  23665. a = null,
  23666. l = this._get(t, "yearRange");
  23667. return l && (i = l.split(":"), n = (new Date).getFullYear(), r = parseInt(i[0], 10), a = parseInt(i[1], 10), i[0].match(/[+\-].*/) && (r += n), i[1].match(/[+\-].*/) && (a += n)), (!s || e.getTime() >= s.getTime()) && (!o || e.getTime() <= o.getTime()) && (!r || e.getFullYear() >= r) && (!a || a >= e.getFullYear())
  23668. },
  23669. _getFormatConfig: function (t) {
  23670. var e = this._get(t, "shortYearCutoff");
  23671. return {
  23672. shortYearCutoff: e = "string" != typeof e ? e : (new Date).getFullYear() % 100 + parseInt(e, 10),
  23673. dayNamesShort: this._get(t, "dayNamesShort"),
  23674. dayNames: this._get(t, "dayNames"),
  23675. monthNamesShort: this._get(t, "monthNamesShort"),
  23676. monthNames: this._get(t, "monthNames")
  23677. }
  23678. },
  23679. _formatDate: function (t, e, i, n) {
  23680. e || (t.currentDay = t.selectedDay, t.currentMonth = t.selectedMonth, t.currentYear = t.selectedYear);
  23681. var s = e ? "object" == _typeof(e) ? e : this._daylightSavingAdjust(new Date(n, i, e)) : this._daylightSavingAdjust(new Date(t.currentYear, t.currentMonth, t.currentDay));
  23682. return this.formatDate(this._get(t, "dateFormat"), s, this._getFormatConfig(t))
  23683. }
  23684. }), S.fn.datepicker = function (t) {
  23685. if (!this.length) return this;
  23686. S.datepicker.initialized || (S(document).on("mousedown", S.datepicker._checkExternalClick), S.datepicker.initialized = !0), 0 === S("#" + S.datepicker._mainDivId).length && S("body").append(S.datepicker.dpDiv);
  23687. var e = Array.prototype.slice.call(arguments, 1);
  23688. return "string" != typeof t || "isDisabled" !== t && "getDate" !== t && "widget" !== t ? "option" === t && 2 === arguments.length && "string" == typeof arguments[1] ? S.datepicker["_" + t + "Datepicker"].apply(S.datepicker, [this[0]].concat(e)) : this.each(function () {
  23689. "string" == typeof t ? S.datepicker["_" + t + "Datepicker"].apply(S.datepicker, [this].concat(e)) : S.datepicker._attachDatepicker(this, t)
  23690. }) : S.datepicker["_" + t + "Datepicker"].apply(S.datepicker, [this[0]].concat(e))
  23691. }, S.datepicker = new t, S.datepicker.initialized = !1, S.datepicker.uuid = (new Date).getTime(), S.datepicker.version = "1.12.1", S.datepicker, S.ui.ie = !!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());
  23692. var y = !1;
  23693. S(document).on("mouseup", function () {
  23694. y = !1
  23695. }), S.widget("ui.mouse", {
  23696. version: "1.12.1",
  23697. options: {
  23698. cancel: "input, textarea, button, select, option",
  23699. distance: 1,
  23700. delay: 0
  23701. },
  23702. _mouseInit: function () {
  23703. var e = this;
  23704. this.element.on("mousedown." + this.widgetName, function (t) {
  23705. return e._mouseDown(t)
  23706. }).on("click." + this.widgetName, function (t) {
  23707. return !0 === S.data(t.target, e.widgetName + ".preventClickEvent") ? (S.removeData(t.target, e.widgetName + ".preventClickEvent"), t.stopImmediatePropagation(), !1) : void 0
  23708. }), this.started = !1
  23709. },
  23710. _mouseDestroy: function () {
  23711. this.element.off("." + this.widgetName), this._mouseMoveDelegate && this.document.off("mousemove." + this.widgetName, this._mouseMoveDelegate).off("mouseup." + this.widgetName, this._mouseUpDelegate)
  23712. },
  23713. _mouseDown: function (t) {
  23714. if (!y) {
  23715. this._mouseMoved = !1, this._mouseStarted && this._mouseUp(t), this._mouseDownEvent = t;
  23716. var e = this,
  23717. i = 1 === t.which,
  23718. n = !("string" != typeof this.options.cancel || !t.target.nodeName) && S(t.target).closest(this.options.cancel).length;
  23719. return i && !n && this._mouseCapture(t) && (this.mouseDelayMet = !this.options.delay, this.mouseDelayMet || (this._mouseDelayTimer = setTimeout(function () {
  23720. e.mouseDelayMet = !0
  23721. }, this.options.delay)), this._mouseDistanceMet(t) && this._mouseDelayMet(t) && (this._mouseStarted = !1 !== this._mouseStart(t), !this._mouseStarted) ? t.preventDefault() : (!0 === S.data(t.target, this.widgetName + ".preventClickEvent") && S.removeData(t.target, this.widgetName + ".preventClickEvent"), this._mouseMoveDelegate = function (t) {
  23722. return e._mouseMove(t)
  23723. }, this._mouseUpDelegate = function (t) {
  23724. return e._mouseUp(t)
  23725. }, this.document.on("mousemove." + this.widgetName, this._mouseMoveDelegate).on("mouseup." + this.widgetName, this._mouseUpDelegate), t.preventDefault(), y = !0)), !0
  23726. }
  23727. },
  23728. _mouseMove: function (t) {
  23729. if (this._mouseMoved) {
  23730. if (S.ui.ie && (!document.documentMode || document.documentMode < 9) && !t.button) return this._mouseUp(t);
  23731. if (!t.which)
  23732. if (t.originalEvent.altKey || t.originalEvent.ctrlKey || t.originalEvent.metaKey || t.originalEvent.shiftKey) this.ignoreMissingWhich = !0;
  23733. else if (!this.ignoreMissingWhich) return this._mouseUp(t)
  23734. }
  23735. return (t.which || t.button) && (this._mouseMoved = !0), this._mouseStarted ? (this._mouseDrag(t), t.preventDefault()) : (this._mouseDistanceMet(t) && this._mouseDelayMet(t) && (this._mouseStarted = !1 !== this._mouseStart(this._mouseDownEvent, t), this._mouseStarted ? this._mouseDrag(t) : this._mouseUp(t)), !this._mouseStarted)
  23736. },
  23737. _mouseUp: function (t) {
  23738. this.document.off("mousemove." + this.widgetName, this._mouseMoveDelegate).off("mouseup." + this.widgetName, this._mouseUpDelegate), this._mouseStarted && (this._mouseStarted = !1, t.target === this._mouseDownEvent.target && S.data(t.target, this.widgetName + ".preventClickEvent", !0), this._mouseStop(t)), this._mouseDelayTimer && (clearTimeout(this._mouseDelayTimer), delete this._mouseDelayTimer), this.ignoreMissingWhich = !1, y = !1, t.preventDefault()
  23739. },
  23740. _mouseDistanceMet: function (t) {
  23741. return Math.max(Math.abs(this._mouseDownEvent.pageX - t.pageX), Math.abs(this._mouseDownEvent.pageY - t.pageY)) >= this.options.distance
  23742. },
  23743. _mouseDelayMet: function () {
  23744. return this.mouseDelayMet
  23745. },
  23746. _mouseStart: function () {},
  23747. _mouseDrag: function () {},
  23748. _mouseStop: function () {},
  23749. _mouseCapture: function () {
  23750. return !0
  23751. }
  23752. }), S.ui.plugin = {
  23753. add: function (t, e, i) {
  23754. var n, s = S.ui[t].prototype;
  23755. for (n in i) s.plugins[n] = s.plugins[n] || [], s.plugins[n].push([e, i[n]])
  23756. },
  23757. call: function (t, e, i, n) {
  23758. var s, o = t.plugins[e];
  23759. if (o && (n || t.element[0].parentNode && 11 !== t.element[0].parentNode.nodeType))
  23760. for (s = 0; o.length > s; s++) t.options[o[s][0]] && o[s][1].apply(t.element, i)
  23761. }
  23762. }, S.ui.safeBlur = function (t) {
  23763. t && "body" !== t.nodeName.toLowerCase() && S(t).trigger("blur")
  23764. }, S.widget("ui.draggable", S.ui.mouse, {
  23765. version: "1.12.1",
  23766. widgetEventPrefix: "drag",
  23767. options: {
  23768. addClasses: !0,
  23769. appendTo: "parent",
  23770. axis: !1,
  23771. connectToSortable: !1,
  23772. containment: !1,
  23773. cursor: "auto",
  23774. cursorAt: !1,
  23775. grid: !1,
  23776. handle: !1,
  23777. helper: "original",
  23778. iframeFix: !1,
  23779. opacity: !1,
  23780. refreshPositions: !1,
  23781. revert: !1,
  23782. revertDuration: 500,
  23783. scope: "default",
  23784. scroll: !0,
  23785. scrollSensitivity: 20,
  23786. scrollSpeed: 20,
  23787. snap: !1,
  23788. snapMode: "both",
  23789. snapTolerance: 20,
  23790. stack: !1,
  23791. zIndex: !1,
  23792. drag: null,
  23793. start: null,
  23794. stop: null
  23795. },
  23796. _create: function () {
  23797. "original" === this.options.helper && this._setPositionRelative(), this.options.addClasses && this._addClass("ui-draggable"), this._setHandleClassName(), this._mouseInit()
  23798. },
  23799. _setOption: function (t, e) {
  23800. this._super(t, e), "handle" === t && (this._removeHandleClassName(), this._setHandleClassName())
  23801. },
  23802. _destroy: function () {
  23803. return (this.helper || this.element).is(".ui-draggable-dragging") ? void(this.destroyOnClear = !0) : (this._removeHandleClassName(), void this._mouseDestroy())
  23804. },
  23805. _mouseCapture: function (t) {
  23806. var e = this.options;
  23807. return !(this.helper || e.disabled || 0 < S(t.target).closest(".ui-resizable-handle").length) && (this.handle = this._getHandle(t), !!this.handle && (this._blurActiveElement(t), this._blockFrames(!0 === e.iframeFix ? "iframe" : e.iframeFix), !0))
  23808. },
  23809. _blockFrames: function (t) {
  23810. this.iframeBlocks = this.document.find(t).map(function () {
  23811. var t = S(this);
  23812. return S("<div>").css("position", "absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]
  23813. })
  23814. },
  23815. _unblockFrames: function () {
  23816. this.iframeBlocks && (this.iframeBlocks.remove(), delete this.iframeBlocks)
  23817. },
  23818. _blurActiveElement: function (t) {
  23819. var e = S.ui.safeActiveElement(this.document[0]);
  23820. S(t.target).closest(e).length || S.ui.safeBlur(e)
  23821. },
  23822. _mouseStart: function (t) {
  23823. var e = this.options;
  23824. return this.helper = this._createHelper(t), this._addClass(this.helper, "ui-draggable-dragging"), this._cacheHelperProportions(), S.ui.ddmanager && (S.ui.ddmanager.current = this), this._cacheMargins(), this.cssPosition = this.helper.css("position"), this.scrollParent = this.helper.scrollParent(!0), this.offsetParent = this.helper.offsetParent(), this.hasFixedAncestor = 0 < this.helper.parents().filter(function () {
  23825. return "fixed" === S(this).css("position")
  23826. }).length, this.positionAbs = this.element.offset(), this._refreshOffsets(t), this.originalPosition = this.position = this._generatePosition(t, !1), this.originalPageX = t.pageX, this.originalPageY = t.pageY, e.cursorAt && this._adjustOffsetFromHelper(e.cursorAt), this._setContainment(), !1 === this._trigger("start", t) ? (this._clear(), !1) : (this._cacheHelperProportions(), S.ui.ddmanager && !e.dropBehaviour && S.ui.ddmanager.prepareOffsets(this, t), this._mouseDrag(t, !0), S.ui.ddmanager && S.ui.ddmanager.dragStart(this, t), !0)
  23827. },
  23828. _refreshOffsets: function (t) {
  23829. this.offset = {
  23830. top: this.positionAbs.top - this.margins.top,
  23831. left: this.positionAbs.left - this.margins.left,
  23832. scroll: !1,
  23833. parent: this._getParentOffset(),
  23834. relative: this._getRelativeOffset()
  23835. }, this.offset.click = {
  23836. left: t.pageX - this.offset.left,
  23837. top: t.pageY - this.offset.top
  23838. }
  23839. },
  23840. _mouseDrag: function (t, e) {
  23841. if (this.hasFixedAncestor && (this.offset.parent = this._getParentOffset()), this.position = this._generatePosition(t, !0), this.positionAbs = this._convertPositionTo("absolute"), !e) {
  23842. var i = this._uiHash();
  23843. if (!1 === this._trigger("drag", t, i)) return this._mouseUp(new S.Event("mouseup", t)), !1;
  23844. this.position = i.position
  23845. }
  23846. return this.helper[0].style.left = this.position.left + "px", this.helper[0].style.top = this.position.top + "px", S.ui.ddmanager && S.ui.ddmanager.drag(this, t), !1
  23847. },
  23848. _mouseStop: function (t) {
  23849. var e = this,
  23850. i = !1;
  23851. return S.ui.ddmanager && !this.options.dropBehaviour && (i = S.ui.ddmanager.drop(this, t)), this.dropped && (i = this.dropped, this.dropped = !1), "invalid" === this.options.revert && !i || "valid" === this.options.revert && i || !0 === this.options.revert || S.isFunction(this.options.revert) && this.options.revert.call(this.element, i) ? S(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10), function () {
  23852. !1 !== e._trigger("stop", t) && e._clear()
  23853. }) : !1 !== this._trigger("stop", t) && this._clear(), !1
  23854. },
  23855. _mouseUp: function (t) {
  23856. return this._unblockFrames(), S.ui.ddmanager && S.ui.ddmanager.dragStop(this, t), this.handleElement.is(t.target) && this.element.trigger("focus"), S.ui.mouse.prototype._mouseUp.call(this, t)
  23857. },
  23858. cancel: function () {
  23859. return this.helper.is(".ui-draggable-dragging") ? this._mouseUp(new S.Event("mouseup", {
  23860. target: this.element[0]
  23861. })) : this._clear(), this
  23862. },
  23863. _getHandle: function (t) {
  23864. return !this.options.handle || !!S(t.target).closest(this.element.find(this.options.handle)).length
  23865. },
  23866. _setHandleClassName: function () {
  23867. this.handleElement = this.options.handle ? this.element.find(this.options.handle) : this.element, this._addClass(this.handleElement, "ui-draggable-handle")
  23868. },
  23869. _removeHandleClassName: function () {
  23870. this._removeClass(this.handleElement, "ui-draggable-handle")
  23871. },
  23872. _createHelper: function (t) {
  23873. var e = this.options,
  23874. i = S.isFunction(e.helper),
  23875. n = i ? S(e.helper.apply(this.element[0], [t])) : "clone" === e.helper ? this.element.clone().removeAttr("id") : this.element;
  23876. return n.parents("body").length || n.appendTo("parent" === e.appendTo ? this.element[0].parentNode : e.appendTo), i && n[0] === this.element[0] && this._setPositionRelative(), n[0] === this.element[0] || /(fixed|absolute)/.test(n.css("position")) || n.css("position", "absolute"), n
  23877. },
  23878. _setPositionRelative: function () {
  23879. /^(?:r|a|f)/.test(this.element.css("position")) || (this.element[0].style.position = "relative")
  23880. },
  23881. _adjustOffsetFromHelper: function (t) {
  23882. "string" == typeof t && (t = t.split(" ")), S.isArray(t) && (t = {
  23883. left: +t[0],
  23884. top: +t[1] || 0
  23885. }), "left" in t && (this.offset.click.left = t.left + this.margins.left), "right" in t && (this.offset.click.left = this.helperProportions.width - t.right + this.margins.left), "top" in t && (this.offset.click.top = t.top + this.margins.top), "bottom" in t && (this.offset.click.top = this.helperProportions.height - t.bottom + this.margins.top)
  23886. },
  23887. _isRootNode: function (t) {
  23888. return /(html|body)/i.test(t.tagName) || t === this.document[0]
  23889. },
  23890. _getParentOffset: function () {
  23891. var t = this.offsetParent.offset(),
  23892. e = this.document[0];
  23893. return "absolute" === this.cssPosition && this.scrollParent[0] !== e && S.contains(this.scrollParent[0], this.offsetParent[0]) && (t.left += this.scrollParent.scrollLeft(), t.top += this.scrollParent.scrollTop()), this._isRootNode(this.offsetParent[0]) && (t = {
  23894. top: 0,
  23895. left: 0
  23896. }), {
  23897. top: t.top + (parseInt(this.offsetParent.css("borderTopWidth"), 10) || 0),
  23898. left: t.left + (parseInt(this.offsetParent.css("borderLeftWidth"), 10) || 0)
  23899. }
  23900. },
  23901. _getRelativeOffset: function () {
  23902. if ("relative" !== this.cssPosition) return {
  23903. top: 0,
  23904. left: 0
  23905. };
  23906. var t = this.element.position(),
  23907. e = this._isRootNode(this.scrollParent[0]);
  23908. return {
  23909. top: t.top - (parseInt(this.helper.css("top"), 10) || 0) + (e ? 0 : this.scrollParent.scrollTop()),
  23910. left: t.left - (parseInt(this.helper.css("left"), 10) || 0) + (e ? 0 : this.scrollParent.scrollLeft())
  23911. }
  23912. },
  23913. _cacheMargins: function () {
  23914. this.margins = {
  23915. left: parseInt(this.element.css("marginLeft"), 10) || 0,
  23916. top: parseInt(this.element.css("marginTop"), 10) || 0,
  23917. right: parseInt(this.element.css("marginRight"), 10) || 0,
  23918. bottom: parseInt(this.element.css("marginBottom"), 10) || 0
  23919. }
  23920. },
  23921. _cacheHelperProportions: function () {
  23922. this.helperProportions = {
  23923. width: this.helper.outerWidth(),
  23924. height: this.helper.outerHeight()
  23925. }
  23926. },
  23927. _setContainment: function () {
  23928. var t, e, i, n = this.options,
  23929. s = this.document[0];
  23930. return this.relativeContainer = null, n.containment ? "window" === n.containment ? void(this.containment = [S(window).scrollLeft() - this.offset.relative.left - this.offset.parent.left, S(window).scrollTop() - this.offset.relative.top - this.offset.parent.top, S(window).scrollLeft() + S(window).width() - this.helperProportions.width - this.margins.left, S(window).scrollTop() + (S(window).height() || s.body.parentNode.scrollHeight) - this.helperProportions.height - this.margins.top]) : "document" === n.containment ? void(this.containment = [0, 0, S(s).width() - this.helperProportions.width - this.margins.left, (S(s).height() || s.body.parentNode.scrollHeight) - this.helperProportions.height - this.margins.top]) : n.containment.constructor === Array ? void(this.containment = n.containment) : ("parent" === n.containment && (n.containment = this.helper[0].parentNode), void((i = (e = S(n.containment))[0]) && (t = /(scroll|auto)/.test(e.css("overflow")), this.containment = [(parseInt(e.css("borderLeftWidth"), 10) || 0) + (parseInt(e.css("paddingLeft"), 10) || 0), (parseInt(e.css("borderTopWidth"), 10) || 0) + (parseInt(e.css("paddingTop"), 10) || 0), (t ? Math.max(i.scrollWidth, i.offsetWidth) : i.offsetWidth) - (parseInt(e.css("borderRightWidth"), 10) || 0) - (parseInt(e.css("paddingRight"), 10) || 0) - this.helperProportions.width - this.margins.left - this.margins.right, (t ? Math.max(i.scrollHeight, i.offsetHeight) : i.offsetHeight) - (parseInt(e.css("borderBottomWidth"), 10) || 0) - (parseInt(e.css("paddingBottom"), 10) || 0) - this.helperProportions.height - this.margins.top - this.margins.bottom], this.relativeContainer = e))) : void(this.containment = null)
  23931. },
  23932. _convertPositionTo: function (t, e) {
  23933. e || (e = this.position);
  23934. var i = "absolute" === t ? 1 : -1,
  23935. n = this._isRootNode(this.scrollParent[0]);
  23936. return {
  23937. top: e.top + this.offset.relative.top * i + this.offset.parent.top * i - ("fixed" === this.cssPosition ? -this.offset.scroll.top : n ? 0 : this.offset.scroll.top) * i,
  23938. left: e.left + this.offset.relative.left * i + this.offset.parent.left * i - ("fixed" === this.cssPosition ? -this.offset.scroll.left : n ? 0 : this.offset.scroll.left) * i
  23939. }
  23940. },
  23941. _generatePosition: function (t, e) {
  23942. var i, n, s, o, r = this.options,
  23943. a = this._isRootNode(this.scrollParent[0]),
  23944. l = t.pageX,
  23945. c = t.pageY;
  23946. return a && this.offset.scroll || (this.offset.scroll = {
  23947. top: this.scrollParent.scrollTop(),
  23948. left: this.scrollParent.scrollLeft()
  23949. }), e && (this.containment && (i = this.relativeContainer ? (n = this.relativeContainer.offset(), [this.containment[0] + n.left, this.containment[1] + n.top, this.containment[2] + n.left, this.containment[3] + n.top]) : this.containment, t.pageX - this.offset.click.left < i[0] && (l = i[0] + this.offset.click.left), t.pageY - this.offset.click.top < i[1] && (c = i[1] + this.offset.click.top), t.pageX - this.offset.click.left > i[2] && (l = i[2] + this.offset.click.left), t.pageY - this.offset.click.top > i[3] && (c = i[3] + this.offset.click.top)), r.grid && (s = r.grid[1] ? this.originalPageY + Math.round((c - this.originalPageY) / r.grid[1]) * r.grid[1] : this.originalPageY, c = i ? s - this.offset.click.top >= i[1] || s - this.offset.click.top > i[3] ? s : s - this.offset.click.top >= i[1] ? s - r.grid[1] : s + r.grid[1] : s, o = r.grid[0] ? this.originalPageX + Math.round((l - this.originalPageX) / r.grid[0]) * r.grid[0] : this.originalPageX, l = i ? o - this.offset.click.left >= i[0] || o - this.offset.click.left > i[2] ? o : o - this.offset.click.left >= i[0] ? o - r.grid[0] : o + r.grid[0] : o), "y" === r.axis && (l = this.originalPageX), "x" === r.axis && (c = this.originalPageY)), {
  23950. top: c - this.offset.click.top - this.offset.relative.top - this.offset.parent.top + ("fixed" === this.cssPosition ? -this.offset.scroll.top : a ? 0 : this.offset.scroll.top),
  23951. left: l - this.offset.click.left - this.offset.relative.left - this.offset.parent.left + ("fixed" === this.cssPosition ? -this.offset.scroll.left : a ? 0 : this.offset.scroll.left)
  23952. }
  23953. },
  23954. _clear: function () {
  23955. this._removeClass(this.helper, "ui-draggable-dragging"), this.helper[0] === this.element[0] || this.cancelHelperRemoval || this.helper.remove(), this.helper = null, this.cancelHelperRemoval = !1, this.destroyOnClear && this.destroy()
  23956. },
  23957. _trigger: function (t, e, i) {
  23958. return i = i || this._uiHash(), S.ui.plugin.call(this, t, [e, i, this], !0), /^(drag|start|stop)/.test(t) && (this.positionAbs = this._convertPositionTo("absolute"), i.offset = this.positionAbs), S.Widget.prototype._trigger.call(this, t, e, i)
  23959. },
  23960. plugins: {},
  23961. _uiHash: function () {
  23962. return {
  23963. helper: this.helper,
  23964. position: this.position,
  23965. originalPosition: this.originalPosition,
  23966. offset: this.positionAbs
  23967. }
  23968. }
  23969. }), S.ui.plugin.add("draggable", "connectToSortable", {
  23970. start: function (e, t, i) {
  23971. var n = S.extend({}, t, {
  23972. item: i.element
  23973. });
  23974. i.sortables = [], S(i.options.connectToSortable).each(function () {
  23975. var t = S(this).sortable("instance");
  23976. t && !t.options.disabled && (i.sortables.push(t), t.refreshPositions(), t._trigger("activate", e, n))
  23977. })
  23978. },
  23979. stop: function (e, t, i) {
  23980. var n = S.extend({}, t, {
  23981. item: i.element
  23982. });
  23983. i.cancelHelperRemoval = !1, S.each(i.sortables, function () {
  23984. var t = this;
  23985. t.isOver ? (t.isOver = 0, i.cancelHelperRemoval = !0, t.cancelHelperRemoval = !1, t._storedCSS = {
  23986. position: t.placeholder.css("position"),
  23987. top: t.placeholder.css("top"),
  23988. left: t.placeholder.css("left")
  23989. }, t._mouseStop(e), t.options.helper = t.options._helper) : (t.cancelHelperRemoval = !0, t._trigger("deactivate", e, n))
  23990. })
  23991. },
  23992. drag: function (i, n, s) {
  23993. S.each(s.sortables, function () {
  23994. var t = !1,
  23995. e = this;
  23996. e.positionAbs = s.positionAbs, e.helperProportions = s.helperProportions, e.offset.click = s.offset.click, e._intersectsWith(e.containerCache) && (t = !0, S.each(s.sortables, function () {
  23997. return this.positionAbs = s.positionAbs, this.helperProportions = s.helperProportions, this.offset.click = s.offset.click, this !== e && this._intersectsWith(this.containerCache) && S.contains(e.element[0], this.element[0]) && (t = !1), t
  23998. })), t ? (e.isOver || (e.isOver = 1, s._parent = n.helper.parent(), e.currentItem = n.helper.appendTo(e.element).data("ui-sortable-item", !0), e.options._helper = e.options.helper, e.options.helper = function () {
  23999. return n.helper[0]
  24000. }, i.target = e.currentItem[0], e._mouseCapture(i, !0), e._mouseStart(i, !0, !0), e.offset.click.top = s.offset.click.top, e.offset.click.left = s.offset.click.left, e.offset.parent.left -= s.offset.parent.left - e.offset.parent.left, e.offset.parent.top -= s.offset.parent.top - e.offset.parent.top, s._trigger("toSortable", i), s.dropped = e.element, S.each(s.sortables, function () {
  24001. this.refreshPositions()
  24002. }), s.currentItem = s.element, e.fromOutside = s), e.currentItem && (e._mouseDrag(i), n.position = e.position)) : e.isOver && (e.isOver = 0, e.cancelHelperRemoval = !0, e.options._revert = e.options.revert, e.options.revert = !1, e._trigger("out", i, e._uiHash(e)), e._mouseStop(i, !0), e.options.revert = e.options._revert, e.options.helper = e.options._helper, e.placeholder && e.placeholder.remove(), n.helper.appendTo(s._parent), s._refreshOffsets(i), n.position = s._generatePosition(i, !0), s._trigger("fromSortable", i), s.dropped = !1, S.each(s.sortables, function () {
  24003. this.refreshPositions()
  24004. }))
  24005. })
  24006. }
  24007. }), S.ui.plugin.add("draggable", "cursor", {
  24008. start: function (t, e, i) {
  24009. var n = S("body"),
  24010. s = i.options;
  24011. n.css("cursor") && (s._cursor = n.css("cursor")), n.css("cursor", s.cursor)
  24012. },
  24013. stop: function (t, e, i) {
  24014. var n = i.options;
  24015. n._cursor && S("body").css("cursor", n._cursor)
  24016. }
  24017. }), S.ui.plugin.add("draggable", "opacity", {
  24018. start: function (t, e, i) {
  24019. var n = S(e.helper),
  24020. s = i.options;
  24021. n.css("opacity") && (s._opacity = n.css("opacity")), n.css("opacity", s.opacity)
  24022. },
  24023. stop: function (t, e, i) {
  24024. var n = i.options;
  24025. n._opacity && S(e.helper).css("opacity", n._opacity)
  24026. }
  24027. }), S.ui.plugin.add("draggable", "scroll", {
  24028. start: function (t, e, i) {
  24029. i.scrollParentNotHidden || (i.scrollParentNotHidden = i.helper.scrollParent(!1)), i.scrollParentNotHidden[0] !== i.document[0] && "HTML" !== i.scrollParentNotHidden[0].tagName && (i.overflowOffset = i.scrollParentNotHidden.offset())
  24030. },
  24031. drag: function (t, e, i) {
  24032. var n = i.options,
  24033. s = !1,
  24034. o = i.scrollParentNotHidden[0],
  24035. r = i.document[0];
  24036. o !== r && "HTML" !== o.tagName ? (n.axis && "x" === n.axis || (i.overflowOffset.top + o.offsetHeight - t.pageY < n.scrollSensitivity ? o.scrollTop = s = o.scrollTop + n.scrollSpeed : t.pageY - i.overflowOffset.top < n.scrollSensitivity && (o.scrollTop = s = o.scrollTop - n.scrollSpeed)), n.axis && "y" === n.axis || (i.overflowOffset.left + o.offsetWidth - t.pageX < n.scrollSensitivity ? o.scrollLeft = s = o.scrollLeft + n.scrollSpeed : t.pageX - i.overflowOffset.left < n.scrollSensitivity && (o.scrollLeft = s = o.scrollLeft - n.scrollSpeed))) : (n.axis && "x" === n.axis || (t.pageY - S(r).scrollTop() < n.scrollSensitivity ? s = S(r).scrollTop(S(r).scrollTop() - n.scrollSpeed) : S(window).height() - (t.pageY - S(r).scrollTop()) < n.scrollSensitivity && (s = S(r).scrollTop(S(r).scrollTop() + n.scrollSpeed))), n.axis && "y" === n.axis || (t.pageX - S(r).scrollLeft() < n.scrollSensitivity ? s = S(r).scrollLeft(S(r).scrollLeft() - n.scrollSpeed) : S(window).width() - (t.pageX - S(r).scrollLeft()) < n.scrollSensitivity && (s = S(r).scrollLeft(S(r).scrollLeft() + n.scrollSpeed)))), !1 !== s && S.ui.ddmanager && !n.dropBehaviour && S.ui.ddmanager.prepareOffsets(i, t)
  24037. }
  24038. }), S.ui.plugin.add("draggable", "snap", {
  24039. start: function (t, e, i) {
  24040. var n = i.options;
  24041. i.snapElements = [], S(n.snap.constructor !== String ? n.snap.items || ":data(ui-draggable)" : n.snap).each(function () {
  24042. var t = S(this),
  24043. e = t.offset();
  24044. this !== i.element[0] && i.snapElements.push({
  24045. item: this,
  24046. width: t.outerWidth(),
  24047. height: t.outerHeight(),
  24048. top: e.top,
  24049. left: e.left
  24050. })
  24051. })
  24052. },
  24053. drag: function (t, e, i) {
  24054. var n, s, o, r, a, l, c, u, h, d, p = i.options,
  24055. f = p.snapTolerance,
  24056. g = e.offset.left,
  24057. m = g + i.helperProportions.width,
  24058. v = e.offset.top,
  24059. _ = v + i.helperProportions.height;
  24060. for (h = i.snapElements.length - 1; 0 <= h; h--) l = (a = i.snapElements[h].left - i.margins.left) + i.snapElements[h].width, u = (c = i.snapElements[h].top - i.margins.top) + i.snapElements[h].height, m < a - f || l + f < g || _ < c - f || u + f < v || !S.contains(i.snapElements[h].item.ownerDocument, i.snapElements[h].item) ? (i.snapElements[h].snapping && i.options.snap.release && i.options.snap.release.call(i.element, t, S.extend(i._uiHash(), {
  24061. snapItem: i.snapElements[h].item
  24062. })), i.snapElements[h].snapping = !1) : ("inner" !== p.snapMode && (n = f >= Math.abs(c - _), s = f >= Math.abs(u - v), o = f >= Math.abs(a - m), r = f >= Math.abs(l - g), n && (e.position.top = i._convertPositionTo("relative", {
  24063. top: c - i.helperProportions.height,
  24064. left: 0
  24065. }).top), s && (e.position.top = i._convertPositionTo("relative", {
  24066. top: u,
  24067. left: 0
  24068. }).top), o && (e.position.left = i._convertPositionTo("relative", {
  24069. top: 0,
  24070. left: a - i.helperProportions.width
  24071. }).left), r && (e.position.left = i._convertPositionTo("relative", {
  24072. top: 0,
  24073. left: l
  24074. }).left)), d = n || s || o || r, "outer" !== p.snapMode && (n = f >= Math.abs(c - v), s = f >= Math.abs(u - _), o = f >= Math.abs(a - g), r = f >= Math.abs(l - m), n && (e.position.top = i._convertPositionTo("relative", {
  24075. top: c,
  24076. left: 0
  24077. }).top), s && (e.position.top = i._convertPositionTo("relative", {
  24078. top: u - i.helperProportions.height,
  24079. left: 0
  24080. }).top), o && (e.position.left = i._convertPositionTo("relative", {
  24081. top: 0,
  24082. left: a
  24083. }).left), r && (e.position.left = i._convertPositionTo("relative", {
  24084. top: 0,
  24085. left: l - i.helperProportions.width
  24086. }).left)), !i.snapElements[h].snapping && (n || s || o || r || d) && i.options.snap.snap && i.options.snap.snap.call(i.element, t, S.extend(i._uiHash(), {
  24087. snapItem: i.snapElements[h].item
  24088. })), i.snapElements[h].snapping = n || s || o || r || d)
  24089. }
  24090. }), S.ui.plugin.add("draggable", "stack", {
  24091. start: function (t, e, i) {
  24092. var n, s = i.options,
  24093. o = S.makeArray(S(s.stack)).sort(function (t, e) {
  24094. return (parseInt(S(t).css("zIndex"), 10) || 0) - (parseInt(S(e).css("zIndex"), 10) || 0)
  24095. });
  24096. o.length && (n = parseInt(S(o[0]).css("zIndex"), 10) || 0, S(o).each(function (t) {
  24097. S(this).css("zIndex", n + t)
  24098. }), this.css("zIndex", n + o.length))
  24099. }
  24100. }), S.ui.plugin.add("draggable", "zIndex", {
  24101. start: function (t, e, i) {
  24102. var n = S(e.helper),
  24103. s = i.options;
  24104. n.css("zIndex") && (s._zIndex = n.css("zIndex")), n.css("zIndex", s.zIndex)
  24105. },
  24106. stop: function (t, e, i) {
  24107. var n = i.options;
  24108. n._zIndex && S(e.helper).css("zIndex", n._zIndex)
  24109. }
  24110. }), S.ui.draggable, S.widget("ui.resizable", S.ui.mouse, {
  24111. version: "1.12.1",
  24112. widgetEventPrefix: "resize",
  24113. options: {
  24114. alsoResize: !1,
  24115. animate: !1,
  24116. animateDuration: "slow",
  24117. animateEasing: "swing",
  24118. aspectRatio: !1,
  24119. autoHide: !1,
  24120. classes: {
  24121. "ui-resizable-se": "ui-icon ui-icon-gripsmall-diagonal-se"
  24122. },
  24123. containment: !1,
  24124. ghost: !1,
  24125. grid: !1,
  24126. handles: "e,s,se",
  24127. helper: !1,
  24128. maxHeight: null,
  24129. maxWidth: null,
  24130. minHeight: 10,
  24131. minWidth: 10,
  24132. zIndex: 90,
  24133. resize: null,
  24134. start: null,
  24135. stop: null
  24136. },
  24137. _num: function (t) {
  24138. return parseFloat(t) || 0
  24139. },
  24140. _isNumber: function (t) {
  24141. return !isNaN(parseFloat(t))
  24142. },
  24143. _hasScroll: function (t, e) {
  24144. if ("hidden" === S(t).css("overflow")) return !1;
  24145. var i = e && "left" === e ? "scrollLeft" : "scrollTop",
  24146. n = !1;
  24147. return 0 < t[i] || (t[i] = 1, n = 0 < t[i], t[i] = 0, n)
  24148. },
  24149. _create: function () {
  24150. var t, e = this.options,
  24151. i = this;
  24152. this._addClass("ui-resizable"), S.extend(this, {
  24153. _aspectRatio: !!e.aspectRatio,
  24154. aspectRatio: e.aspectRatio,
  24155. originalElement: this.element,
  24156. _proportionallyResizeElements: [],
  24157. _helper: e.helper || e.ghost || e.animate ? e.helper || "ui-resizable-helper" : null
  24158. }), this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i) && (this.element.wrap(S("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({
  24159. position: this.element.css("position"),
  24160. width: this.element.outerWidth(),
  24161. height: this.element.outerHeight(),
  24162. top: this.element.css("top"),
  24163. left: this.element.css("left")
  24164. })), this.element = this.element.parent().data("ui-resizable", this.element.resizable("instance")), this.elementIsWrapper = !0, t = {
  24165. marginTop: this.originalElement.css("marginTop"),
  24166. marginRight: this.originalElement.css("marginRight"),
  24167. marginBottom: this.originalElement.css("marginBottom"),
  24168. marginLeft: this.originalElement.css("marginLeft")
  24169. }, this.element.css(t), this.originalElement.css("margin", 0), this.originalResizeStyle = this.originalElement.css("resize"), this.originalElement.css("resize", "none"), this._proportionallyResizeElements.push(this.originalElement.css({
  24170. position: "static",
  24171. zoom: 1,
  24172. display: "block"
  24173. })), this.originalElement.css(t), this._proportionallyResize()), this._setupHandles(), e.autoHide && S(this.element).on("mouseenter", function () {
  24174. e.disabled || (i._removeClass("ui-resizable-autohide"), i._handles.show())
  24175. }).on("mouseleave", function () {
  24176. e.disabled || i.resizing || (i._addClass("ui-resizable-autohide"), i._handles.hide())
  24177. }), this._mouseInit()
  24178. },
  24179. _destroy: function () {
  24180. this._mouseDestroy();
  24181. function t(t) {
  24182. S(t).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()
  24183. }
  24184. var e;
  24185. return this.elementIsWrapper && (t(this.element), e = this.element, this.originalElement.css({
  24186. position: e.css("position"),
  24187. width: e.outerWidth(),
  24188. height: e.outerHeight(),
  24189. top: e.css("top"),
  24190. left: e.css("left")
  24191. }).insertAfter(e), e.remove()), this.originalElement.css("resize", this.originalResizeStyle), t(this.originalElement), this
  24192. },
  24193. _setOption: function (t, e) {
  24194. switch (this._super(t, e), t) {
  24195. case "handles":
  24196. this._removeHandles(), this._setupHandles()
  24197. }
  24198. },
  24199. _setupHandles: function () {
  24200. var t, e, i, n, s, o = this.options,
  24201. r = this;
  24202. if (this.handles = o.handles || (S(".ui-resizable-handle", this.element).length ? {
  24203. n: ".ui-resizable-n",
  24204. e: ".ui-resizable-e",
  24205. s: ".ui-resizable-s",
  24206. w: ".ui-resizable-w",
  24207. se: ".ui-resizable-se",
  24208. sw: ".ui-resizable-sw",
  24209. ne: ".ui-resizable-ne",
  24210. nw: ".ui-resizable-nw"
  24211. } : "e,s,se"), this._handles = S(), this.handles.constructor === String)
  24212. for ("all" === this.handles && (this.handles = "n,e,s,w,se,sw,ne,nw"), i = this.handles.split(","), this.handles = {}, e = 0; i.length > e; e++) n = "ui-resizable-" + (t = S.trim(i[e])), s = S("<div>"), this._addClass(s, "ui-resizable-handle " + n), s.css({
  24213. zIndex: o.zIndex
  24214. }), this.handles[t] = ".ui-resizable-" + t, this.element.append(s);
  24215. this._renderAxis = function (t) {
  24216. var e, i, n, s;
  24217. for (e in t = t || this.element, this.handles) this.handles[e].constructor === String ? this.handles[e] = this.element.children(this.handles[e]).first().show() : (this.handles[e].jquery || this.handles[e].nodeType) && (this.handles[e] = S(this.handles[e]), this._on(this.handles[e], {
  24218. mousedown: r._mouseDown
  24219. })), this.elementIsWrapper && this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i) && (i = S(this.handles[e], this.element), s = /sw|ne|nw|se|n|s/.test(e) ? i.outerHeight() : i.outerWidth(), n = ["padding", /ne|nw|n/.test(e) ? "Top" : /se|sw|s/.test(e) ? "Bottom" : /^e$/.test(e) ? "Right" : "Left"].join(""), t.css(n, s), this._proportionallyResize()), this._handles = this._handles.add(this.handles[e])
  24220. }, this._renderAxis(this.element), this._handles = this._handles.add(this.element.find(".ui-resizable-handle")), this._handles.disableSelection(), this._handles.on("mouseover", function () {
  24221. r.resizing || (this.className && (s = this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)), r.axis = s && s[1] ? s[1] : "se")
  24222. }), o.autoHide && (this._handles.hide(), this._addClass("ui-resizable-autohide"))
  24223. },
  24224. _removeHandles: function () {
  24225. this._handles.remove()
  24226. },
  24227. _mouseCapture: function (t) {
  24228. var e, i, n = !1;
  24229. for (e in this.handles)((i = S(this.handles[e])[0]) === t.target || S.contains(i, t.target)) && (n = !0);
  24230. return !this.options.disabled && n
  24231. },
  24232. _mouseStart: function (t) {
  24233. var e, i, n, s = this.options,
  24234. o = this.element;
  24235. return this.resizing = !0, this._renderProxy(), e = this._num(this.helper.css("left")), i = this._num(this.helper.css("top")), s.containment && (e += S(s.containment).scrollLeft() || 0, i += S(s.containment).scrollTop() || 0), this.offset = this.helper.offset(), this.position = {
  24236. left: e,
  24237. top: i
  24238. }, this.size = this._helper ? {
  24239. width: this.helper.width(),
  24240. height: this.helper.height()
  24241. } : {
  24242. width: o.width(),
  24243. height: o.height()
  24244. }, this.originalSize = this._helper ? {
  24245. width: o.outerWidth(),
  24246. height: o.outerHeight()
  24247. } : {
  24248. width: o.width(),
  24249. height: o.height()
  24250. }, this.sizeDiff = {
  24251. width: o.outerWidth() - o.width(),
  24252. height: o.outerHeight() - o.height()
  24253. }, this.originalPosition = {
  24254. left: e,
  24255. top: i
  24256. }, this.originalMousePosition = {
  24257. left: t.pageX,
  24258. top: t.pageY
  24259. }, this.aspectRatio = "number" == typeof s.aspectRatio ? s.aspectRatio : this.originalSize.width / this.originalSize.height || 1, n = S(".ui-resizable-" + this.axis).css("cursor"), S("body").css("cursor", "auto" === n ? this.axis + "-resize" : n), this._addClass("ui-resizable-resizing"), this._propagate("start", t), !0
  24260. },
  24261. _mouseDrag: function (t) {
  24262. var e, i, n = this.originalMousePosition,
  24263. s = this.axis,
  24264. o = t.pageX - n.left || 0,
  24265. r = t.pageY - n.top || 0,
  24266. a = this._change[s];
  24267. return this._updatePrevProperties(), a && (e = a.apply(this, [t, o, r]), this._updateVirtualBoundaries(t.shiftKey), (this._aspectRatio || t.shiftKey) && (e = this._updateRatio(e, t)), e = this._respectSize(e, t), this._updateCache(e), this._propagate("resize", t), i = this._applyChanges(), !this._helper && this._proportionallyResizeElements.length && this._proportionallyResize(), S.isEmptyObject(i) || (this._updatePrevProperties(), this._trigger("resize", t, this.ui()), this._applyChanges())), !1
  24268. },
  24269. _mouseStop: function (t) {
  24270. this.resizing = !1;
  24271. var e, i, n, s, o, r, a, l = this.options,
  24272. c = this;
  24273. return this._helper && (n = (i = (e = this._proportionallyResizeElements).length && /textarea/i.test(e[0].nodeName)) && this._hasScroll(e[0], "left") ? 0 : c.sizeDiff.height, s = i ? 0 : c.sizeDiff.width, o = {
  24274. width: c.helper.width() - s,
  24275. height: c.helper.height() - n
  24276. }, r = parseFloat(c.element.css("left")) + (c.position.left - c.originalPosition.left) || null, a = parseFloat(c.element.css("top")) + (c.position.top - c.originalPosition.top) || null, l.animate || this.element.css(S.extend(o, {
  24277. top: a,
  24278. left: r
  24279. })), c.helper.height(c.size.height), c.helper.width(c.size.width), this._helper && !l.animate && this._proportionallyResize()), S("body").css("cursor", "auto"), this._removeClass("ui-resizable-resizing"), this._propagate("stop", t), this._helper && this.helper.remove(), !1
  24280. },
  24281. _updatePrevProperties: function () {
  24282. this.prevPosition = {
  24283. top: this.position.top,
  24284. left: this.position.left
  24285. }, this.prevSize = {
  24286. width: this.size.width,
  24287. height: this.size.height
  24288. }
  24289. },
  24290. _applyChanges: function () {
  24291. var t = {};
  24292. return this.position.top !== this.prevPosition.top && (t.top = this.position.top + "px"), this.position.left !== this.prevPosition.left && (t.left = this.position.left + "px"), this.size.width !== this.prevSize.width && (t.width = this.size.width + "px"), this.size.height !== this.prevSize.height && (t.height = this.size.height + "px"), this.helper.css(t), t
  24293. },
  24294. _updateVirtualBoundaries: function (t) {
  24295. var e, i, n, s, o, r = this.options;
  24296. o = {
  24297. minWidth: this._isNumber(r.minWidth) ? r.minWidth : 0,
  24298. maxWidth: this._isNumber(r.maxWidth) ? r.maxWidth : 1 / 0,
  24299. minHeight: this._isNumber(r.minHeight) ? r.minHeight : 0,
  24300. maxHeight: this._isNumber(r.maxHeight) ? r.maxHeight : 1 / 0
  24301. }, (this._aspectRatio || t) && (e = o.minHeight * this.aspectRatio, n = o.minWidth / this.aspectRatio, i = o.maxHeight * this.aspectRatio, s = o.maxWidth / this.aspectRatio, e > o.minWidth && (o.minWidth = e), n > o.minHeight && (o.minHeight = n), o.maxWidth > i && (o.maxWidth = i), o.maxHeight > s && (o.maxHeight = s)), this._vBoundaries = o
  24302. },
  24303. _updateCache: function (t) {
  24304. this.offset = this.helper.offset(), this._isNumber(t.left) && (this.position.left = t.left), this._isNumber(t.top) && (this.position.top = t.top), this._isNumber(t.height) && (this.size.height = t.height), this._isNumber(t.width) && (this.size.width = t.width)
  24305. },
  24306. _updateRatio: function (t) {
  24307. var e = this.position,
  24308. i = this.size,
  24309. n = this.axis;
  24310. return this._isNumber(t.height) ? t.width = t.height * this.aspectRatio : this._isNumber(t.width) && (t.height = t.width / this.aspectRatio), "sw" === n && (t.left = e.left + (i.width - t.width), t.top = null), "nw" === n && (t.top = e.top + (i.height - t.height), t.left = e.left + (i.width - t.width)), t
  24311. },
  24312. _respectSize: function (t) {
  24313. var e = this._vBoundaries,
  24314. i = this.axis,
  24315. n = this._isNumber(t.width) && e.maxWidth && e.maxWidth < t.width,
  24316. s = this._isNumber(t.height) && e.maxHeight && e.maxHeight < t.height,
  24317. o = this._isNumber(t.width) && e.minWidth && e.minWidth > t.width,
  24318. r = this._isNumber(t.height) && e.minHeight && e.minHeight > t.height,
  24319. a = this.originalPosition.left + this.originalSize.width,
  24320. l = this.originalPosition.top + this.originalSize.height,
  24321. c = /sw|nw|w/.test(i),
  24322. u = /nw|ne|n/.test(i);
  24323. return o && (t.width = e.minWidth), r && (t.height = e.minHeight), n && (t.width = e.maxWidth), s && (t.height = e.maxHeight), o && c && (t.left = a - e.minWidth), n && c && (t.left = a - e.maxWidth), r && u && (t.top = l - e.minHeight), s && u && (t.top = l - e.maxHeight), t.width || t.height || t.left || !t.top ? t.width || t.height || t.top || !t.left || (t.left = null) : t.top = null, t
  24324. },
  24325. _getPaddingPlusBorderDimensions: function (t) {
  24326. for (var e = 0, i = [], n = [t.css("borderTopWidth"), t.css("borderRightWidth"), t.css("borderBottomWidth"), t.css("borderLeftWidth")], s = [t.css("paddingTop"), t.css("paddingRight"), t.css("paddingBottom"), t.css("paddingLeft")]; e < 4; e++) i[e] = parseFloat(n[e]) || 0, i[e] += parseFloat(s[e]) || 0;
  24327. return {
  24328. height: i[0] + i[2],
  24329. width: i[1] + i[3]
  24330. }
  24331. },
  24332. _proportionallyResize: function () {
  24333. if (this._proportionallyResizeElements.length)
  24334. for (var t, e = 0, i = this.helper || this.element; this._proportionallyResizeElements.length > e; e++) t = this._proportionallyResizeElements[e], this.outerDimensions || (this.outerDimensions = this._getPaddingPlusBorderDimensions(t)), t.css({
  24335. height: i.height() - this.outerDimensions.height || 0,
  24336. width: i.width() - this.outerDimensions.width || 0
  24337. })
  24338. },
  24339. _renderProxy: function () {
  24340. var t = this.element,
  24341. e = this.options;
  24342. this.elementOffset = t.offset(), this._helper ? (this.helper = this.helper || S("<div style='overflow:hidden;'></div>"), this._addClass(this.helper, this._helper), this.helper.css({
  24343. width: this.element.outerWidth(),
  24344. height: this.element.outerHeight(),
  24345. position: "absolute",
  24346. left: this.elementOffset.left + "px",
  24347. top: this.elementOffset.top + "px",
  24348. zIndex: ++e.zIndex
  24349. }), this.helper.appendTo("body").disableSelection()) : this.helper = this.element
  24350. },
  24351. _change: {
  24352. e: function (t, e) {
  24353. return {
  24354. width: this.originalSize.width + e
  24355. }
  24356. },
  24357. w: function (t, e) {
  24358. var i = this.originalSize;
  24359. return {
  24360. left: this.originalPosition.left + e,
  24361. width: i.width - e
  24362. }
  24363. },
  24364. n: function (t, e, i) {
  24365. var n = this.originalSize,
  24366. s = this.originalPosition;
  24367. return {
  24368. top: s.top + i,
  24369. height: n.height - i
  24370. }
  24371. },
  24372. s: function (t, e, i) {
  24373. return {
  24374. height: this.originalSize.height + i
  24375. }
  24376. },
  24377. se: function (t, e, i) {
  24378. return S.extend(this._change.s.apply(this, arguments), this._change.e.apply(this, [t, e, i]))
  24379. },
  24380. sw: function (t, e, i) {
  24381. return S.extend(this._change.s.apply(this, arguments), this._change.w.apply(this, [t, e, i]))
  24382. },
  24383. ne: function (t, e, i) {
  24384. return S.extend(this._change.n.apply(this, arguments), this._change.e.apply(this, [t, e, i]))
  24385. },
  24386. nw: function (t, e, i) {
  24387. return S.extend(this._change.n.apply(this, arguments), this._change.w.apply(this, [t, e, i]))
  24388. }
  24389. },
  24390. _propagate: function (t, e) {
  24391. S.ui.plugin.call(this, t, [e, this.ui()]), "resize" !== t && this._trigger(t, e, this.ui())
  24392. },
  24393. plugins: {},
  24394. ui: function () {
  24395. return {
  24396. originalElement: this.originalElement,
  24397. element: this.element,
  24398. helper: this.helper,
  24399. position: this.position,
  24400. size: this.size,
  24401. originalSize: this.originalSize,
  24402. originalPosition: this.originalPosition
  24403. }
  24404. }
  24405. }), S.ui.plugin.add("resizable", "animate", {
  24406. stop: function (e) {
  24407. var i = S(this).resizable("instance"),
  24408. t = i.options,
  24409. n = i._proportionallyResizeElements,
  24410. s = n.length && /textarea/i.test(n[0].nodeName),
  24411. o = s && i._hasScroll(n[0], "left") ? 0 : i.sizeDiff.height,
  24412. r = s ? 0 : i.sizeDiff.width,
  24413. a = {
  24414. width: i.size.width - r,
  24415. height: i.size.height - o
  24416. },
  24417. l = parseFloat(i.element.css("left")) + (i.position.left - i.originalPosition.left) || null,
  24418. c = parseFloat(i.element.css("top")) + (i.position.top - i.originalPosition.top) || null;
  24419. i.element.animate(S.extend(a, c && l ? {
  24420. top: c,
  24421. left: l
  24422. } : {}), {
  24423. duration: t.animateDuration,
  24424. easing: t.animateEasing,
  24425. step: function () {
  24426. var t = {
  24427. width: parseFloat(i.element.css("width")),
  24428. height: parseFloat(i.element.css("height")),
  24429. top: parseFloat(i.element.css("top")),
  24430. left: parseFloat(i.element.css("left"))
  24431. };
  24432. n && n.length && S(n[0]).css({
  24433. width: t.width,
  24434. height: t.height
  24435. }), i._updateCache(t), i._propagate("resize", e)
  24436. }
  24437. })
  24438. }
  24439. }), S.ui.plugin.add("resizable", "containment", {
  24440. start: function () {
  24441. var i, n, t, e, s, o, r, a = S(this).resizable("instance"),
  24442. l = a.options,
  24443. c = a.element,
  24444. u = l.containment,
  24445. h = u instanceof S ? u.get(0) : /parent/.test(u) ? c.parent().get(0) : u;
  24446. h && (a.containerElement = S(h), /document/.test(u) || u === document ? (a.containerOffset = {
  24447. left: 0,
  24448. top: 0
  24449. }, a.containerPosition = {
  24450. left: 0,
  24451. top: 0
  24452. }, a.parentData = {
  24453. element: S(document),
  24454. left: 0,
  24455. top: 0,
  24456. width: S(document).width(),
  24457. height: S(document).height() || document.body.parentNode.scrollHeight
  24458. }) : (i = S(h), n = [], S(["Top", "Right", "Left", "Bottom"]).each(function (t, e) {
  24459. n[t] = a._num(i.css("padding" + e))
  24460. }), a.containerOffset = i.offset(), a.containerPosition = i.position(), a.containerSize = {
  24461. height: i.innerHeight() - n[3],
  24462. width: i.innerWidth() - n[1]
  24463. }, t = a.containerOffset, e = a.containerSize.height, s = a.containerSize.width, o = a._hasScroll(h, "left") ? h.scrollWidth : s, r = a._hasScroll(h) ? h.scrollHeight : e, a.parentData = {
  24464. element: h,
  24465. left: t.left,
  24466. top: t.top,
  24467. width: o,
  24468. height: r
  24469. }))
  24470. },
  24471. resize: function (t) {
  24472. var e, i, n, s, o = S(this).resizable("instance"),
  24473. r = o.options,
  24474. a = o.containerOffset,
  24475. l = o.position,
  24476. c = o._aspectRatio || t.shiftKey,
  24477. u = {
  24478. top: 0,
  24479. left: 0
  24480. },
  24481. h = o.containerElement,
  24482. d = !0;
  24483. h[0] !== document && /static/.test(h.css("position")) && (u = a), l.left < (o._helper ? a.left : 0) && (o.size.width = o.size.width + (o._helper ? o.position.left - a.left : o.position.left - u.left), c && (o.size.height = o.size.width / o.aspectRatio, d = !1), o.position.left = r.helper ? a.left : 0), l.top < (o._helper ? a.top : 0) && (o.size.height = o.size.height + (o._helper ? o.position.top - a.top : o.position.top), c && (o.size.width = o.size.height * o.aspectRatio, d = !1), o.position.top = o._helper ? a.top : 0), n = o.containerElement.get(0) === o.element.parent().get(0), s = /relative|absolute/.test(o.containerElement.css("position")), n && s ? (o.offset.left = o.parentData.left + o.position.left, o.offset.top = o.parentData.top + o.position.top) : (o.offset.left = o.element.offset().left, o.offset.top = o.element.offset().top), e = Math.abs(o.sizeDiff.width + (o._helper ? o.offset.left - u.left : o.offset.left - a.left)), i = Math.abs(o.sizeDiff.height + (o._helper ? o.offset.top - u.top : o.offset.top - a.top)), e + o.size.width >= o.parentData.width && (o.size.width = o.parentData.width - e, c && (o.size.height = o.size.width / o.aspectRatio, d = !1)), i + o.size.height >= o.parentData.height && (o.size.height = o.parentData.height - i, c && (o.size.width = o.size.height * o.aspectRatio, d = !1)), d || (o.position.left = o.prevPosition.left, o.position.top = o.prevPosition.top, o.size.width = o.prevSize.width, o.size.height = o.prevSize.height)
  24484. },
  24485. stop: function () {
  24486. var t = S(this).resizable("instance"),
  24487. e = t.options,
  24488. i = t.containerOffset,
  24489. n = t.containerPosition,
  24490. s = t.containerElement,
  24491. o = S(t.helper),
  24492. r = o.offset(),
  24493. a = o.outerWidth() - t.sizeDiff.width,
  24494. l = o.outerHeight() - t.sizeDiff.height;
  24495. t._helper && !e.animate && /relative/.test(s.css("position")) && S(this).css({
  24496. left: r.left - n.left - i.left,
  24497. width: a,
  24498. height: l
  24499. }), t._helper && !e.animate && /static/.test(s.css("position")) && S(this).css({
  24500. left: r.left - n.left - i.left,
  24501. width: a,
  24502. height: l
  24503. })
  24504. }
  24505. }), S.ui.plugin.add("resizable", "alsoResize", {
  24506. start: function () {
  24507. var t = S(this).resizable("instance").options;
  24508. S(t.alsoResize).each(function () {
  24509. var t = S(this);
  24510. t.data("ui-resizable-alsoresize", {
  24511. width: parseFloat(t.width()),
  24512. height: parseFloat(t.height()),
  24513. left: parseFloat(t.css("left")),
  24514. top: parseFloat(t.css("top"))
  24515. })
  24516. })
  24517. },
  24518. resize: function (t, i) {
  24519. var e = S(this).resizable("instance"),
  24520. n = e.options,
  24521. s = e.originalSize,
  24522. o = e.originalPosition,
  24523. r = {
  24524. height: e.size.height - s.height || 0,
  24525. width: e.size.width - s.width || 0,
  24526. top: e.position.top - o.top || 0,
  24527. left: e.position.left - o.left || 0
  24528. };
  24529. S(n.alsoResize).each(function () {
  24530. var t = S(this),
  24531. n = S(this).data("ui-resizable-alsoresize"),
  24532. s = {},
  24533. e = t.parents(i.originalElement[0]).length ? ["width", "height"] : ["width", "height", "top", "left"];
  24534. S.each(e, function (t, e) {
  24535. var i = (n[e] || 0) + (r[e] || 0);
  24536. i && 0 <= i && (s[e] = i || null)
  24537. }), t.css(s)
  24538. })
  24539. },
  24540. stop: function () {
  24541. S(this).removeData("ui-resizable-alsoresize")
  24542. }
  24543. }), S.ui.plugin.add("resizable", "ghost", {
  24544. start: function () {
  24545. var t = S(this).resizable("instance"),
  24546. e = t.size;
  24547. t.ghost = t.originalElement.clone(), t.ghost.css({
  24548. opacity: .25,
  24549. display: "block",
  24550. position: "relative",
  24551. height: e.height,
  24552. width: e.width,
  24553. margin: 0,
  24554. left: 0,
  24555. top: 0
  24556. }), t._addClass(t.ghost, "ui-resizable-ghost"), !1 !== S.uiBackCompat && "string" == typeof t.options.ghost && t.ghost.addClass(this.options.ghost), t.ghost.appendTo(t.helper)
  24557. },
  24558. resize: function () {
  24559. var t = S(this).resizable("instance");
  24560. t.ghost && t.ghost.css({
  24561. position: "relative",
  24562. height: t.size.height,
  24563. width: t.size.width
  24564. })
  24565. },
  24566. stop: function () {
  24567. var t = S(this).resizable("instance");
  24568. t.ghost && t.helper && t.helper.get(0).removeChild(t.ghost.get(0))
  24569. }
  24570. }), S.ui.plugin.add("resizable", "grid", {
  24571. resize: function () {
  24572. var t, e = S(this).resizable("instance"),
  24573. i = e.options,
  24574. n = e.size,
  24575. s = e.originalSize,
  24576. o = e.originalPosition,
  24577. r = e.axis,
  24578. a = "number" == typeof i.grid ? [i.grid, i.grid] : i.grid,
  24579. l = a[0] || 1,
  24580. c = a[1] || 1,
  24581. u = Math.round((n.width - s.width) / l) * l,
  24582. h = Math.round((n.height - s.height) / c) * c,
  24583. d = s.width + u,
  24584. p = s.height + h,
  24585. f = i.maxWidth && d > i.maxWidth,
  24586. g = i.maxHeight && p > i.maxHeight,
  24587. m = i.minWidth && i.minWidth > d,
  24588. v = i.minHeight && i.minHeight > p;
  24589. i.grid = a, m && (d += l), v && (p += c), f && (d -= l), g && (p -= c), /^(se|s|e)$/.test(r) ? (e.size.width = d, e.size.height = p) : /^(ne)$/.test(r) ? (e.size.width = d, e.size.height = p, e.position.top = o.top - h) : /^(sw)$/.test(r) ? (e.size.width = d, e.size.height = p, e.position.left = o.left - u) : ((p - c <= 0 || d - l <= 0) && (t = e._getPaddingPlusBorderDimensions(this)), 0 < p - c ? (e.size.height = p, e.position.top = o.top - h) : (p = c - t.height, e.size.height = p, e.position.top = o.top + s.height - p), 0 < d - l ? (e.size.width = d, e.position.left = o.left - u) : (d = l - t.width, e.size.width = d, e.position.left = o.left + s.width - d))
  24590. }
  24591. }), S.ui.resizable, S.widget("ui.dialog", {
  24592. version: "1.12.1",
  24593. options: {
  24594. appendTo: "body",
  24595. autoOpen: !0,
  24596. buttons: [],
  24597. classes: {
  24598. "ui-dialog": "ui-corner-all",
  24599. "ui-dialog-titlebar": "ui-corner-all"
  24600. },
  24601. closeOnEscape: !0,
  24602. closeText: "Close",
  24603. draggable: !0,
  24604. hide: null,
  24605. height: "auto",
  24606. maxHeight: null,
  24607. maxWidth: null,
  24608. minHeight: 150,
  24609. minWidth: 150,
  24610. modal: !1,
  24611. position: {
  24612. my: "center",
  24613. at: "center",
  24614. of: window,
  24615. collision: "fit",
  24616. using: function (t) {
  24617. var e = S(this).css(t).offset().top;
  24618. e < 0 && S(this).css("top", t.top - e)
  24619. }
  24620. },
  24621. resizable: !0,
  24622. show: null,
  24623. title: null,
  24624. width: 300,
  24625. beforeClose: null,
  24626. close: null,
  24627. drag: null,
  24628. dragStart: null,
  24629. dragStop: null,
  24630. focus: null,
  24631. open: null,
  24632. resize: null,
  24633. resizeStart: null,
  24634. resizeStop: null
  24635. },
  24636. sizeRelatedOptions: {
  24637. buttons: !0,
  24638. height: !0,
  24639. maxHeight: !0,
  24640. maxWidth: !0,
  24641. minHeight: !0,
  24642. minWidth: !0,
  24643. width: !0
  24644. },
  24645. resizableRelatedOptions: {
  24646. maxHeight: !0,
  24647. maxWidth: !0,
  24648. minHeight: !0,
  24649. minWidth: !0
  24650. },
  24651. _create: function () {
  24652. this.originalCss = {
  24653. display: this.element[0].style.display,
  24654. width: this.element[0].style.width,
  24655. minHeight: this.element[0].style.minHeight,
  24656. maxHeight: this.element[0].style.maxHeight,
  24657. height: this.element[0].style.height
  24658. }, this.originalPosition = {
  24659. parent: this.element.parent(),
  24660. index: this.element.parent().children().index(this.element)
  24661. }, this.originalTitle = this.element.attr("title"), null == this.options.title && null != this.originalTitle && (this.options.title = this.originalTitle), this.options.disabled && (this.options.disabled = !1), this._createWrapper(), this.element.show().removeAttr("title").appendTo(this.uiDialog), this._addClass("ui-dialog-content", "ui-widget-content"), this._createTitlebar(), this._createButtonPane(), this.options.draggable && S.fn.draggable && this._makeDraggable(), this.options.resizable && S.fn.resizable && this._makeResizable(), this._isOpen = !1, this._trackFocus()
  24662. },
  24663. _init: function () {
  24664. this.options.autoOpen && this.open()
  24665. },
  24666. _appendTo: function () {
  24667. var t = this.options.appendTo;
  24668. return t && (t.jquery || t.nodeType) ? S(t) : this.document.find(t || "body").eq(0)
  24669. },
  24670. _destroy: function () {
  24671. var t, e = this.originalPosition;
  24672. this._untrackInstance(), this._destroyOverlay(), this.element.removeUniqueId().css(this.originalCss).detach(), this.uiDialog.remove(), this.originalTitle && this.element.attr("title", this.originalTitle), (t = e.parent.children().eq(e.index)).length && t[0] !== this.element[0] ? t.before(this.element) : e.parent.append(this.element)
  24673. },
  24674. widget: function () {
  24675. return this.uiDialog
  24676. },
  24677. disable: S.noop,
  24678. enable: S.noop,
  24679. close: function (t) {
  24680. var e = this;
  24681. this._isOpen && !1 !== this._trigger("beforeClose", t) && (this._isOpen = !1, this._focusedElement = null, this._destroyOverlay(), this._untrackInstance(), this.opener.filter(":focusable").trigger("focus").length || S.ui.safeBlur(S.ui.safeActiveElement(this.document[0])), this._hide(this.uiDialog, this.options.hide, function () {
  24682. e._trigger("close", t)
  24683. }))
  24684. },
  24685. isOpen: function () {
  24686. return this._isOpen
  24687. },
  24688. moveToTop: function () {
  24689. this._moveToTop()
  24690. },
  24691. _moveToTop: function (t, e) {
  24692. var i = !1,
  24693. n = this.uiDialog.siblings(".ui-front:visible").map(function () {
  24694. return +S(this).css("z-index")
  24695. }).get(),
  24696. s = Math.max.apply(null, n);
  24697. return s >= +this.uiDialog.css("z-index") && (this.uiDialog.css("z-index", s + 1), i = !0), i && !e && this._trigger("focus", t), i
  24698. },
  24699. open: function () {
  24700. var t = this;
  24701. return this._isOpen ? void(this._moveToTop() && this._focusTabbable()) : (this._isOpen = !0, this.opener = S(S.ui.safeActiveElement(this.document[0])), this._size(), this._position(), this._createOverlay(), this._moveToTop(null, !0), this.overlay && this.overlay.css("z-index", this.uiDialog.css("z-index") - 1), this._show(this.uiDialog, this.options.show, function () {
  24702. t._focusTabbable(), t._trigger("focus")
  24703. }), this._makeFocusTarget(), void this._trigger("open"))
  24704. },
  24705. _focusTabbable: function () {
  24706. var t = this._focusedElement;
  24707. t || (t = this.element.find("[autofocus]")), t.length || (t = this.element.find(":tabbable")), t.length || (t = this.uiDialogButtonPane.find(":tabbable")), t.length || (t = this.uiDialogTitlebarClose.filter(":tabbable")), t.length || (t = this.uiDialog), t.eq(0).trigger("focus")
  24708. },
  24709. _keepFocus: function (t) {
  24710. function e() {
  24711. var t = S.ui.safeActiveElement(this.document[0]);
  24712. this.uiDialog[0] === t || S.contains(this.uiDialog[0], t) || this._focusTabbable()
  24713. }
  24714. t.preventDefault(), e.call(this), this._delay(e)
  24715. },
  24716. _createWrapper: function () {
  24717. this.uiDialog = S("<div>").hide().attr({
  24718. tabIndex: -1,
  24719. role: "dialog"
  24720. }).appendTo(this._appendTo()), this._addClass(this.uiDialog, "ui-dialog", "ui-widget ui-widget-content ui-front"), this._on(this.uiDialog, {
  24721. keydown: function (t) {
  24722. if (this.options.closeOnEscape && !t.isDefaultPrevented() && t.keyCode && t.keyCode === S.ui.keyCode.ESCAPE) return t.preventDefault(), void this.close(t);
  24723. if (t.keyCode === S.ui.keyCode.TAB && !t.isDefaultPrevented()) {
  24724. var e = this.uiDialog.find(":tabbable"),
  24725. i = e.filter(":first"),
  24726. n = e.filter(":last");
  24727. t.target !== n[0] && t.target !== this.uiDialog[0] || t.shiftKey ? t.target !== i[0] && t.target !== this.uiDialog[0] || !t.shiftKey || (this._delay(function () {
  24728. n.trigger("focus")
  24729. }), t.preventDefault()) : (this._delay(function () {
  24730. i.trigger("focus")
  24731. }), t.preventDefault())
  24732. }
  24733. },
  24734. mousedown: function (t) {
  24735. this._moveToTop(t) && this._focusTabbable()
  24736. }
  24737. }), this.element.find("[aria-describedby]").length || this.uiDialog.attr({
  24738. "aria-describedby": this.element.uniqueId().attr("id")
  24739. })
  24740. },
  24741. _createTitlebar: function () {
  24742. var t;
  24743. this.uiDialogTitlebar = S("<div>"), this._addClass(this.uiDialogTitlebar, "ui-dialog-titlebar", "ui-widget-header ui-helper-clearfix"), this._on(this.uiDialogTitlebar, {
  24744. mousedown: function (t) {
  24745. S(t.target).closest(".ui-dialog-titlebar-close") || this.uiDialog.trigger("focus")
  24746. }
  24747. }), this.uiDialogTitlebarClose = S("<button type='button'></button>").button({
  24748. label: S("<a>").text(this.options.closeText).html(),
  24749. icon: "ui-icon-closethick",
  24750. showLabel: !1
  24751. }).appendTo(this.uiDialogTitlebar), this._addClass(this.uiDialogTitlebarClose, "ui-dialog-titlebar-close"), this._on(this.uiDialogTitlebarClose, {
  24752. click: function (t) {
  24753. t.preventDefault(), this.close(t)
  24754. }
  24755. }), t = S("<span>").uniqueId().prependTo(this.uiDialogTitlebar), this._addClass(t, "ui-dialog-title"), this._title(t), this.uiDialogTitlebar.prependTo(this.uiDialog), this.uiDialog.attr({
  24756. "aria-labelledby": t.attr("id")
  24757. })
  24758. },
  24759. _title: function (t) {
  24760. this.options.title ? t.text(this.options.title) : t.html("&#160;")
  24761. },
  24762. _createButtonPane: function () {
  24763. this.uiDialogButtonPane = S("<div>"), this._addClass(this.uiDialogButtonPane, "ui-dialog-buttonpane", "ui-widget-content ui-helper-clearfix"), this.uiButtonSet = S("<div>").appendTo(this.uiDialogButtonPane), this._addClass(this.uiButtonSet, "ui-dialog-buttonset"), this._createButtons()
  24764. },
  24765. _createButtons: function () {
  24766. var s = this,
  24767. t = this.options.buttons;
  24768. return this.uiDialogButtonPane.remove(), this.uiButtonSet.empty(), S.isEmptyObject(t) || S.isArray(t) && !t.length ? void this._removeClass(this.uiDialog, "ui-dialog-buttons") : (S.each(t, function (t, e) {
  24769. var i, n;
  24770. e = S.isFunction(e) ? {
  24771. click: e,
  24772. text: t
  24773. } : e, e = S.extend({
  24774. type: "button"
  24775. }, e), i = e.click, n = {
  24776. icon: e.icon,
  24777. iconPosition: e.iconPosition,
  24778. showLabel: e.showLabel,
  24779. icons: e.icons,
  24780. text: e.text
  24781. }, delete e.click, delete e.icon, delete e.iconPosition, delete e.showLabel, delete e.icons, "boolean" == typeof e.text && delete e.text, S("<button></button>", e).button(n).appendTo(s.uiButtonSet).on("click", function () {
  24782. i.apply(s.element[0], arguments)
  24783. })
  24784. }), this._addClass(this.uiDialog, "ui-dialog-buttons"), void this.uiDialogButtonPane.appendTo(this.uiDialog))
  24785. },
  24786. _makeDraggable: function () {
  24787. function s(t) {
  24788. return {
  24789. position: t.position,
  24790. offset: t.offset
  24791. }
  24792. }
  24793. var o = this,
  24794. r = this.options;
  24795. this.uiDialog.draggable({
  24796. cancel: ".ui-dialog-content, .ui-dialog-titlebar-close",
  24797. handle: ".ui-dialog-titlebar",
  24798. containment: "document",
  24799. start: function (t, e) {
  24800. o._addClass(S(this), "ui-dialog-dragging"), o._blockFrames(), o._trigger("dragStart", t, s(e))
  24801. },
  24802. drag: function (t, e) {
  24803. o._trigger("drag", t, s(e))
  24804. },
  24805. stop: function (t, e) {
  24806. var i = e.offset.left - o.document.scrollLeft(),
  24807. n = e.offset.top - o.document.scrollTop();
  24808. r.position = {
  24809. my: "left top",
  24810. at: "left" + (0 <= i ? "+" : "") + i + " top" + (0 <= n ? "+" : "") + n,
  24811. of: o.window
  24812. }, o._removeClass(S(this), "ui-dialog-dragging"), o._unblockFrames(), o._trigger("dragStop", t, s(e))
  24813. }
  24814. })
  24815. },
  24816. _makeResizable: function () {
  24817. function o(t) {
  24818. return {
  24819. originalPosition: t.originalPosition,
  24820. originalSize: t.originalSize,
  24821. position: t.position,
  24822. size: t.size
  24823. }
  24824. }
  24825. var r = this,
  24826. a = this.options,
  24827. t = a.resizable,
  24828. e = this.uiDialog.css("position"),
  24829. i = "string" == typeof t ? t : "n,e,s,w,se,sw,ne,nw";
  24830. this.uiDialog.resizable({
  24831. cancel: ".ui-dialog-content",
  24832. containment: "document",
  24833. alsoResize: this.element,
  24834. maxWidth: a.maxWidth,
  24835. maxHeight: a.maxHeight,
  24836. minWidth: a.minWidth,
  24837. minHeight: this._minHeight(),
  24838. handles: i,
  24839. start: function (t, e) {
  24840. r._addClass(S(this), "ui-dialog-resizing"), r._blockFrames(), r._trigger("resizeStart", t, o(e))
  24841. },
  24842. resize: function (t, e) {
  24843. r._trigger("resize", t, o(e))
  24844. },
  24845. stop: function (t, e) {
  24846. var i = r.uiDialog.offset(),
  24847. n = i.left - r.document.scrollLeft(),
  24848. s = i.top - r.document.scrollTop();
  24849. a.height = r.uiDialog.height(), a.width = r.uiDialog.width(), a.position = {
  24850. my: "left top",
  24851. at: "left" + (0 <= n ? "+" : "") + n + " top" + (0 <= s ? "+" : "") + s,
  24852. of: r.window
  24853. }, r._removeClass(S(this), "ui-dialog-resizing"), r._unblockFrames(), r._trigger("resizeStop", t, o(e))
  24854. }
  24855. }).css("position", e)
  24856. },
  24857. _trackFocus: function () {
  24858. this._on(this.widget(), {
  24859. focusin: function (t) {
  24860. this._makeFocusTarget(), this._focusedElement = S(t.target)
  24861. }
  24862. })
  24863. },
  24864. _makeFocusTarget: function () {
  24865. this._untrackInstance(), this._trackingInstances().unshift(this)
  24866. },
  24867. _untrackInstance: function () {
  24868. var t = this._trackingInstances(),
  24869. e = S.inArray(this, t); - 1 !== e && t.splice(e, 1)
  24870. },
  24871. _trackingInstances: function () {
  24872. var t = this.document.data("ui-dialog-instances");
  24873. return t || (t = [], this.document.data("ui-dialog-instances", t)), t
  24874. },
  24875. _minHeight: function () {
  24876. var t = this.options;
  24877. return "auto" === t.height ? t.minHeight : Math.min(t.minHeight, t.height)
  24878. },
  24879. _position: function () {
  24880. var t = this.uiDialog.is(":visible");
  24881. t || this.uiDialog.show(), this.uiDialog.position(this.options.position), t || this.uiDialog.hide()
  24882. },
  24883. _setOptions: function (t) {
  24884. var i = this,
  24885. n = !1,
  24886. s = {};
  24887. S.each(t, function (t, e) {
  24888. i._setOption(t, e), t in i.sizeRelatedOptions && (n = !0), t in i.resizableRelatedOptions && (s[t] = e)
  24889. }), n && (this._size(), this._position()), this.uiDialog.is(":data(ui-resizable)") && this.uiDialog.resizable("option", s)
  24890. },
  24891. _setOption: function (t, e) {
  24892. var i, n, s = this.uiDialog;
  24893. "disabled" !== t && (this._super(t, e), "appendTo" === t && this.uiDialog.appendTo(this._appendTo()), "buttons" === t && this._createButtons(), "closeText" === t && this.uiDialogTitlebarClose.button({
  24894. label: S("<a>").text("" + this.options.closeText).html()
  24895. }), "draggable" === t && ((i = s.is(":data(ui-draggable)")) && !e && s.draggable("destroy"), !i && e && this._makeDraggable()), "position" === t && this._position(), "resizable" === t && ((n = s.is(":data(ui-resizable)")) && !e && s.resizable("destroy"), n && "string" == typeof e && s.resizable("option", "handles", e), n || !1 === e || this._makeResizable()), "title" === t && this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))
  24896. },
  24897. _size: function () {
  24898. var t, e, i, n = this.options;
  24899. this.element.show().css({
  24900. width: "auto",
  24901. minHeight: 0,
  24902. maxHeight: "none",
  24903. height: 0
  24904. }), n.minWidth > n.width && (n.width = n.minWidth), t = this.uiDialog.css({
  24905. height: "auto",
  24906. width: n.width
  24907. }).outerHeight(), e = Math.max(0, n.minHeight - t), i = "number" == typeof n.maxHeight ? Math.max(0, n.maxHeight - t) : "none", "auto" === n.height ? this.element.css({
  24908. minHeight: e,
  24909. maxHeight: i,
  24910. height: "auto"
  24911. }) : this.element.height(Math.max(0, n.height - t)), this.uiDialog.is(":data(ui-resizable)") && this.uiDialog.resizable("option", "minHeight", this._minHeight())
  24912. },
  24913. _blockFrames: function () {
  24914. this.iframeBlocks = this.document.find("iframe").map(function () {
  24915. var t = S(this);
  24916. return S("<div>").css({
  24917. position: "absolute",
  24918. width: t.outerWidth(),
  24919. height: t.outerHeight()
  24920. }).appendTo(t.parent()).offset(t.offset())[0]
  24921. })
  24922. },
  24923. _unblockFrames: function () {
  24924. this.iframeBlocks && (this.iframeBlocks.remove(), delete this.iframeBlocks)
  24925. },
  24926. _allowInteraction: function (t) {
  24927. return !!S(t.target).closest(".ui-dialog").length || !!S(t.target).closest(".ui-datepicker").length
  24928. },
  24929. _createOverlay: function () {
  24930. if (this.options.modal) {
  24931. var e = !0;
  24932. this._delay(function () {
  24933. e = !1
  24934. }), this.document.data("ui-dialog-overlays") || this._on(this.document, {
  24935. focusin: function (t) {
  24936. e || this._allowInteraction(t) || (t.preventDefault(), this._trackingInstances()[0]._focusTabbable())
  24937. }
  24938. }), this.overlay = S("<div>").appendTo(this._appendTo()), this._addClass(this.overlay, null, "ui-widget-overlay ui-front"), this._on(this.overlay, {
  24939. mousedown: "_keepFocus"
  24940. }), this.document.data("ui-dialog-overlays", (this.document.data("ui-dialog-overlays") || 0) + 1)
  24941. }
  24942. },
  24943. _destroyOverlay: function () {
  24944. if (this.options.modal && this.overlay) {
  24945. var t = this.document.data("ui-dialog-overlays") - 1;
  24946. t ? this.document.data("ui-dialog-overlays", t) : (this._off(this.document, "focusin"), this.document.removeData("ui-dialog-overlays")), this.overlay.remove(), this.overlay = null
  24947. }
  24948. }
  24949. }), !1 !== S.uiBackCompat && S.widget("ui.dialog", S.ui.dialog, {
  24950. options: {
  24951. dialogClass: ""
  24952. },
  24953. _createWrapper: function () {
  24954. this._super(), this.uiDialog.addClass(this.options.dialogClass)
  24955. },
  24956. _setOption: function (t, e) {
  24957. "dialogClass" === t && this.uiDialog.removeClass(this.options.dialogClass).addClass(e), this._superApply(arguments)
  24958. }
  24959. }), S.ui.dialog, S.widget("ui.droppable", {
  24960. version: "1.12.1",
  24961. widgetEventPrefix: "drop",
  24962. options: {
  24963. accept: "*",
  24964. addClasses: !0,
  24965. greedy: !1,
  24966. scope: "default",
  24967. tolerance: "intersect",
  24968. activate: null,
  24969. deactivate: null,
  24970. drop: null,
  24971. out: null,
  24972. over: null
  24973. },
  24974. _create: function () {
  24975. var t, e = this.options,
  24976. i = e.accept;
  24977. this.isover = !1, this.isout = !0, this.accept = S.isFunction(i) ? i : function (t) {
  24978. return t.is(i)
  24979. }, this.proportions = function () {
  24980. return arguments.length ? void(t = arguments[0]) : t || (t = {
  24981. width: this.element[0].offsetWidth,
  24982. height: this.element[0].offsetHeight
  24983. })
  24984. }, this._addToManager(e.scope), e.addClasses && this._addClass("ui-droppable")
  24985. },
  24986. _addToManager: function (t) {
  24987. S.ui.ddmanager.droppables[t] = S.ui.ddmanager.droppables[t] || [], S.ui.ddmanager.droppables[t].push(this)
  24988. },
  24989. _splice: function (t) {
  24990. for (var e = 0; t.length > e; e++) t[e] === this && t.splice(e, 1)
  24991. },
  24992. _destroy: function () {
  24993. var t = S.ui.ddmanager.droppables[this.options.scope];
  24994. this._splice(t)
  24995. },
  24996. _setOption: function (t, e) {
  24997. if ("accept" === t) this.accept = S.isFunction(e) ? e : function (t) {
  24998. return t.is(e)
  24999. };
  25000. else if ("scope" === t) {
  25001. var i = S.ui.ddmanager.droppables[this.options.scope];
  25002. this._splice(i), this._addToManager(e)
  25003. }
  25004. this._super(t, e)
  25005. },
  25006. _activate: function (t) {
  25007. var e = S.ui.ddmanager.current;
  25008. this._addActiveClass(), e && this._trigger("activate", t, this.ui(e))
  25009. },
  25010. _deactivate: function (t) {
  25011. var e = S.ui.ddmanager.current;
  25012. this._removeActiveClass(), e && this._trigger("deactivate", t, this.ui(e))
  25013. },
  25014. _over: function (t) {
  25015. var e = S.ui.ddmanager.current;
  25016. e && (e.currentItem || e.element)[0] !== this.element[0] && this.accept.call(this.element[0], e.currentItem || e.element) && (this._addHoverClass(), this._trigger("over", t, this.ui(e)))
  25017. },
  25018. _out: function (t) {
  25019. var e = S.ui.ddmanager.current;
  25020. e && (e.currentItem || e.element)[0] !== this.element[0] && this.accept.call(this.element[0], e.currentItem || e.element) && (this._removeHoverClass(), this._trigger("out", t, this.ui(e)))
  25021. },
  25022. _drop: function (e, t) {
  25023. var i = t || S.ui.ddmanager.current,
  25024. n = !1;
  25025. return !(!i || (i.currentItem || i.element)[0] === this.element[0]) && (this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function () {
  25026. var t = S(this).droppable("instance");
  25027. return t.options.greedy && !t.options.disabled && t.options.scope === i.options.scope && t.accept.call(t.element[0], i.currentItem || i.element) && w(i, S.extend(t, {
  25028. offset: t.element.offset()
  25029. }), t.options.tolerance, e) ? !(n = !0) : void 0
  25030. }), !n && (!!this.accept.call(this.element[0], i.currentItem || i.element) && (this._removeActiveClass(), this._removeHoverClass(), this._trigger("drop", e, this.ui(i)), this.element)))
  25031. },
  25032. ui: function (t) {
  25033. return {
  25034. draggable: t.currentItem || t.element,
  25035. helper: t.helper,
  25036. position: t.position,
  25037. offset: t.positionAbs
  25038. }
  25039. },
  25040. _addHoverClass: function () {
  25041. this._addClass("ui-droppable-hover")
  25042. },
  25043. _removeHoverClass: function () {
  25044. this._removeClass("ui-droppable-hover")
  25045. },
  25046. _addActiveClass: function () {
  25047. this._addClass("ui-droppable-active")
  25048. },
  25049. _removeActiveClass: function () {
  25050. this._removeClass("ui-droppable-active")
  25051. }
  25052. });
  25053. var b, w = S.ui.intersect = function () {
  25054. function d(t, e, i) {
  25055. return e <= t && t < e + i
  25056. }
  25057. return function (t, e, i, n) {
  25058. if (!e.offset) return !1;
  25059. var s = (t.positionAbs || t.position.absolute).left + t.margins.left,
  25060. o = (t.positionAbs || t.position.absolute).top + t.margins.top,
  25061. r = s + t.helperProportions.width,
  25062. a = o + t.helperProportions.height,
  25063. l = e.offset.left,
  25064. c = e.offset.top,
  25065. u = l + e.proportions().width,
  25066. h = c + e.proportions().height;
  25067. switch (i) {
  25068. case "fit":
  25069. return l <= s && r <= u && c <= o && a <= h;
  25070. case "intersect":
  25071. return s + t.helperProportions.width / 2 > l && u > r - t.helperProportions.width / 2 && o + t.helperProportions.height / 2 > c && h > a - t.helperProportions.height / 2;
  25072. case "pointer":
  25073. return d(n.pageY, c, e.proportions().height) && d(n.pageX, l, e.proportions().width);
  25074. case "touch":
  25075. return (c <= o && o <= h || c <= a && a <= h || o < c && h < a) && (l <= s && s <= u || l <= r && r <= u || s < l && u < r);
  25076. default:
  25077. return !1
  25078. }
  25079. }
  25080. }();
  25081. !(S.ui.ddmanager = {
  25082. current: null,
  25083. droppables: {
  25084. default: []
  25085. },
  25086. prepareOffsets: function (t, e) {
  25087. var i, n, s = S.ui.ddmanager.droppables[t.options.scope] || [],
  25088. o = e ? e.type : null,
  25089. r = (t.currentItem || t.element).find(":data(ui-droppable)").addBack();
  25090. t: for (i = 0; s.length > i; i++)
  25091. if (!(s[i].options.disabled || t && !s[i].accept.call(s[i].element[0], t.currentItem || t.element))) {
  25092. for (n = 0; r.length > n; n++)
  25093. if (r[n] === s[i].element[0]) {
  25094. s[i].proportions().height = 0;
  25095. continue t
  25096. } s[i].visible = "none" !== s[i].element.css("display"), s[i].visible && ("mousedown" === o && s[i]._activate.call(s[i], e), s[i].offset = s[i].element.offset(), s[i].proportions({
  25097. width: s[i].element[0].offsetWidth,
  25098. height: s[i].element[0].offsetHeight
  25099. }))
  25100. }
  25101. },
  25102. drop: function (t, e) {
  25103. var i = !1;
  25104. return S.each((S.ui.ddmanager.droppables[t.options.scope] || []).slice(), function () {
  25105. this.options && (!this.options.disabled && this.visible && w(t, this, this.options.tolerance, e) && (i = this._drop.call(this, e) || i), !this.options.disabled && this.visible && this.accept.call(this.element[0], t.currentItem || t.element) && (this.isout = !0, this.isover = !1, this._deactivate.call(this, e)))
  25106. }), i
  25107. },
  25108. dragStart: function (t, e) {
  25109. t.element.parentsUntil("body").on("scroll.droppable", function () {
  25110. t.options.refreshPositions || S.ui.ddmanager.prepareOffsets(t, e)
  25111. })
  25112. },
  25113. drag: function (o, r) {
  25114. o.options.refreshPositions && S.ui.ddmanager.prepareOffsets(o, r), S.each(S.ui.ddmanager.droppables[o.options.scope] || [], function () {
  25115. if (!this.options.disabled && !this.greedyChild && this.visible) {
  25116. var t, e, i, n = w(o, this, this.options.tolerance, r),
  25117. s = !n && this.isover ? "isout" : n && !this.isover ? "isover" : null;
  25118. s && (this.options.greedy && (e = this.options.scope, (i = this.element.parents(":data(ui-droppable)").filter(function () {
  25119. return S(this).droppable("instance").options.scope === e
  25120. })).length && ((t = S(i[0]).droppable("instance")).greedyChild = "isover" === s)), t && "isover" === s && (t.isover = !1, t.isout = !0, t._out.call(t, r)), this[s] = !0, this["isout" === s ? "isover" : "isout"] = !1, this["isover" === s ? "_over" : "_out"].call(this, r), t && "isout" === s && (t.isout = !1, t.isover = !0, t._over.call(t, r)))
  25121. }
  25122. })
  25123. },
  25124. dragStop: function (t, e) {
  25125. t.element.parentsUntil("body").off("scroll.droppable"), t.options.refreshPositions || S.ui.ddmanager.prepareOffsets(t, e)
  25126. }
  25127. }) !== S.uiBackCompat && S.widget("ui.droppable", S.ui.droppable, {
  25128. options: {
  25129. hoverClass: !1,
  25130. activeClass: !1
  25131. },
  25132. _addActiveClass: function () {
  25133. this._super(), this.options.activeClass && this.element.addClass(this.options.activeClass)
  25134. },
  25135. _removeActiveClass: function () {
  25136. this._super(), this.options.activeClass && this.element.removeClass(this.options.activeClass)
  25137. },
  25138. _addHoverClass: function () {
  25139. this._super(), this.options.hoverClass && this.element.addClass(this.options.hoverClass)
  25140. },
  25141. _removeHoverClass: function () {
  25142. this._super(), this.options.hoverClass && this.element.removeClass(this.options.hoverClass)
  25143. }
  25144. }), S.ui.droppable, S.widget("ui.progressbar", {
  25145. version: "1.12.1",
  25146. options: {
  25147. classes: {
  25148. "ui-progressbar": "ui-corner-all",
  25149. "ui-progressbar-value": "ui-corner-left",
  25150. "ui-progressbar-complete": "ui-corner-right"
  25151. },
  25152. max: 100,
  25153. value: 0,
  25154. change: null,
  25155. complete: null
  25156. },
  25157. min: 0,
  25158. _create: function () {
  25159. this.oldValue = this.options.value = this._constrainedValue(), this.element.attr({
  25160. role: "progressbar",
  25161. "aria-valuemin": this.min
  25162. }), this._addClass("ui-progressbar", "ui-widget ui-widget-content"), this.valueDiv = S("<div>").appendTo(this.element), this._addClass(this.valueDiv, "ui-progressbar-value", "ui-widget-header"), this._refreshValue()
  25163. },
  25164. _destroy: function () {
  25165. this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"), this.valueDiv.remove()
  25166. },
  25167. value: function (t) {
  25168. return void 0 === t ? this.options.value : (this.options.value = this._constrainedValue(t), void this._refreshValue())
  25169. },
  25170. _constrainedValue: function (t) {
  25171. return void 0 === t && (t = this.options.value), this.indeterminate = !1 === t, "number" != typeof t && (t = 0), !this.indeterminate && Math.min(this.options.max, Math.max(this.min, t))
  25172. },
  25173. _setOptions: function (t) {
  25174. var e = t.value;
  25175. delete t.value, this._super(t), this.options.value = this._constrainedValue(e), this._refreshValue()
  25176. },
  25177. _setOption: function (t, e) {
  25178. "max" === t && (e = Math.max(this.min, e)), this._super(t, e)
  25179. },
  25180. _setOptionDisabled: function (t) {
  25181. this._super(t), this.element.attr("aria-disabled", t), this._toggleClass(null, "ui-state-disabled", !!t)
  25182. },
  25183. _percentage: function () {
  25184. return this.indeterminate ? 100 : 100 * (this.options.value - this.min) / (this.options.max - this.min)
  25185. },
  25186. _refreshValue: function () {
  25187. var t = this.options.value,
  25188. e = this._percentage();
  25189. this.valueDiv.toggle(this.indeterminate || t > this.min).width(e.toFixed(0) + "%"), this._toggleClass(this.valueDiv, "ui-progressbar-complete", null, t === this.options.max)._toggleClass("ui-progressbar-indeterminate", null, this.indeterminate), this.indeterminate ? (this.element.removeAttr("aria-valuenow"), this.overlayDiv || (this.overlayDiv = S("<div>").appendTo(this.valueDiv), this._addClass(this.overlayDiv, "ui-progressbar-overlay"))) : (this.element.attr({
  25190. "aria-valuemax": this.options.max,
  25191. "aria-valuenow": t
  25192. }), this.overlayDiv && (this.overlayDiv.remove(), this.overlayDiv = null)), this.oldValue !== t && (this.oldValue = t, this._trigger("change")), t === this.options.max && this._trigger("complete")
  25193. }
  25194. }), S.widget("ui.selectable", S.ui.mouse, {
  25195. version: "1.12.1",
  25196. options: {
  25197. appendTo: "body",
  25198. autoRefresh: !0,
  25199. distance: 0,
  25200. filter: "*",
  25201. tolerance: "touch",
  25202. selected: null,
  25203. selecting: null,
  25204. start: null,
  25205. stop: null,
  25206. unselected: null,
  25207. unselecting: null
  25208. },
  25209. _create: function () {
  25210. var n = this;
  25211. this._addClass("ui-selectable"), this.dragged = !1, this.refresh = function () {
  25212. n.elementPos = S(n.element[0]).offset(), n.selectees = S(n.options.filter, n.element[0]), n._addClass(n.selectees, "ui-selectee"), n.selectees.each(function () {
  25213. var t = S(this),
  25214. e = t.offset(),
  25215. i = {
  25216. left: e.left - n.elementPos.left,
  25217. top: e.top - n.elementPos.top
  25218. };
  25219. S.data(this, "selectable-item", {
  25220. element: this,
  25221. $element: t,
  25222. left: i.left,
  25223. top: i.top,
  25224. right: i.left + t.outerWidth(),
  25225. bottom: i.top + t.outerHeight(),
  25226. startselected: !1,
  25227. selected: t.hasClass("ui-selected"),
  25228. selecting: t.hasClass("ui-selecting"),
  25229. unselecting: t.hasClass("ui-unselecting")
  25230. })
  25231. })
  25232. }, this.refresh(), this._mouseInit(), this.helper = S("<div>"), this._addClass(this.helper, "ui-selectable-helper")
  25233. },
  25234. _destroy: function () {
  25235. this.selectees.removeData("selectable-item"), this._mouseDestroy()
  25236. },
  25237. _mouseStart: function (i) {
  25238. var n = this,
  25239. t = this.options;
  25240. this.opos = [i.pageX, i.pageY], this.elementPos = S(this.element[0]).offset(), this.options.disabled || (this.selectees = S(t.filter, this.element[0]), this._trigger("start", i), S(t.appendTo).append(this.helper), this.helper.css({
  25241. left: i.pageX,
  25242. top: i.pageY,
  25243. width: 0,
  25244. height: 0
  25245. }), t.autoRefresh && this.refresh(), this.selectees.filter(".ui-selected").each(function () {
  25246. var t = S.data(this, "selectable-item");
  25247. t.startselected = !0, i.metaKey || i.ctrlKey || (n._removeClass(t.$element, "ui-selected"), t.selected = !1, n._addClass(t.$element, "ui-unselecting"), t.unselecting = !0, n._trigger("unselecting", i, {
  25248. unselecting: t.element
  25249. }))
  25250. }), S(i.target).parents().addBack().each(function () {
  25251. var t, e = S.data(this, "selectable-item");
  25252. return e ? (t = !i.metaKey && !i.ctrlKey || !e.$element.hasClass("ui-selected"), n._removeClass(e.$element, t ? "ui-unselecting" : "ui-selected")._addClass(e.$element, t ? "ui-selecting" : "ui-unselecting"), e.unselecting = !t, e.selecting = t, (e.selected = t) ? n._trigger("selecting", i, {
  25253. selecting: e.element
  25254. }) : n._trigger("unselecting", i, {
  25255. unselecting: e.element
  25256. }), !1) : void 0
  25257. }))
  25258. },
  25259. _mouseDrag: function (n) {
  25260. if (this.dragged = !0, !this.options.disabled) {
  25261. var t, s = this,
  25262. o = this.options,
  25263. r = this.opos[0],
  25264. a = this.opos[1],
  25265. l = n.pageX,
  25266. c = n.pageY;
  25267. return l < r && (t = l, l = r, r = t), c < a && (t = c, c = a, a = t), this.helper.css({
  25268. left: r,
  25269. top: a,
  25270. width: l - r,
  25271. height: c - a
  25272. }), this.selectees.each(function () {
  25273. var t = S.data(this, "selectable-item"),
  25274. e = !1,
  25275. i = {};
  25276. t && t.element !== s.element[0] && (i.left = t.left + s.elementPos.left, i.right = t.right + s.elementPos.left, i.top = t.top + s.elementPos.top, i.bottom = t.bottom + s.elementPos.top, "touch" === o.tolerance ? e = !(i.left > l || r > i.right || i.top > c || a > i.bottom) : "fit" === o.tolerance && (e = i.left > r && l > i.right && i.top > a && c > i.bottom), e ? (t.selected && (s._removeClass(t.$element, "ui-selected"), t.selected = !1), t.unselecting && (s._removeClass(t.$element, "ui-unselecting"), t.unselecting = !1), t.selecting || (s._addClass(t.$element, "ui-selecting"), t.selecting = !0, s._trigger("selecting", n, {
  25277. selecting: t.element
  25278. }))) : (t.selecting && ((n.metaKey || n.ctrlKey) && t.startselected ? (s._removeClass(t.$element, "ui-selecting"), t.selecting = !1, s._addClass(t.$element, "ui-selected"), t.selected = !0) : (s._removeClass(t.$element, "ui-selecting"), t.selecting = !1, t.startselected && (s._addClass(t.$element, "ui-unselecting"), t.unselecting = !0), s._trigger("unselecting", n, {
  25279. unselecting: t.element
  25280. }))), t.selected && (n.metaKey || n.ctrlKey || t.startselected || (s._removeClass(t.$element, "ui-selected"), t.selected = !1, s._addClass(t.$element, "ui-unselecting"), t.unselecting = !0, s._trigger("unselecting", n, {
  25281. unselecting: t.element
  25282. })))))
  25283. }), !1
  25284. }
  25285. },
  25286. _mouseStop: function (e) {
  25287. var i = this;
  25288. return this.dragged = !1, S(".ui-unselecting", this.element[0]).each(function () {
  25289. var t = S.data(this, "selectable-item");
  25290. i._removeClass(t.$element, "ui-unselecting"), t.unselecting = !1, t.startselected = !1, i._trigger("unselected", e, {
  25291. unselected: t.element
  25292. })
  25293. }), S(".ui-selecting", this.element[0]).each(function () {
  25294. var t = S.data(this, "selectable-item");
  25295. i._removeClass(t.$element, "ui-selecting")._addClass(t.$element, "ui-selected"), t.selecting = !1, t.selected = !0, t.startselected = !0, i._trigger("selected", e, {
  25296. selected: t.element
  25297. })
  25298. }), this._trigger("stop", e), this.helper.remove(), !1
  25299. }
  25300. }), S.widget("ui.selectmenu", [S.ui.formResetMixin, {
  25301. version: "1.12.1",
  25302. defaultElement: "<select>",
  25303. options: {
  25304. appendTo: null,
  25305. classes: {
  25306. "ui-selectmenu-button-open": "ui-corner-top",
  25307. "ui-selectmenu-button-closed": "ui-corner-all"
  25308. },
  25309. disabled: null,
  25310. icons: {
  25311. button: "ui-icon-triangle-1-s"
  25312. },
  25313. position: {
  25314. my: "left top",
  25315. at: "left bottom",
  25316. collision: "none"
  25317. },
  25318. width: !1,
  25319. change: null,
  25320. close: null,
  25321. focus: null,
  25322. open: null,
  25323. select: null
  25324. },
  25325. _create: function () {
  25326. var t = this.element.uniqueId().attr("id");
  25327. this.ids = {
  25328. element: t,
  25329. button: t + "-button",
  25330. menu: t + "-menu"
  25331. }, this._drawButton(), this._drawMenu(), this._bindFormResetHandler(), this._rendered = !1, this.menuItems = S()
  25332. },
  25333. _drawButton: function () {
  25334. var t, e = this,
  25335. i = this._parseOption(this.element.find("option:selected"), this.element[0].selectedIndex);
  25336. this.labels = this.element.labels().attr("for", this.ids.button), this._on(this.labels, {
  25337. click: function (t) {
  25338. this.button.focus(), t.preventDefault()
  25339. }
  25340. }), this.element.hide(), this.button = S("<span>", {
  25341. tabindex: this.options.disabled ? -1 : 0,
  25342. id: this.ids.button,
  25343. role: "combobox",
  25344. "aria-expanded": "false",
  25345. "aria-autocomplete": "list",
  25346. "aria-owns": this.ids.menu,
  25347. "aria-haspopup": "true",
  25348. title: this.element.attr("title")
  25349. }).insertAfter(this.element), this._addClass(this.button, "ui-selectmenu-button ui-selectmenu-button-closed", "ui-button ui-widget"), t = S("<span>").appendTo(this.button), this._addClass(t, "ui-selectmenu-icon", "ui-icon " + this.options.icons.button), this.buttonItem = this._renderButtonItem(i).appendTo(this.button), !1 !== this.options.width && this._resizeButton(), this._on(this.button, this._buttonEvents), this.button.one("focusin", function () {
  25350. e._rendered || e._refreshMenu()
  25351. })
  25352. },
  25353. _drawMenu: function () {
  25354. var n = this;
  25355. this.menu = S("<ul>", {
  25356. "aria-hidden": "true",
  25357. "aria-labelledby": this.ids.button,
  25358. id: this.ids.menu
  25359. }), this.menuWrap = S("<div>").append(this.menu), this._addClass(this.menuWrap, "ui-selectmenu-menu", "ui-front"), this.menuWrap.appendTo(this._appendTo()), this.menuInstance = this.menu.menu({
  25360. classes: {
  25361. "ui-menu": "ui-corner-bottom"
  25362. },
  25363. role: "listbox",
  25364. select: function (t, e) {
  25365. t.preventDefault(), n._setSelection(), n._select(e.item.data("ui-selectmenu-item"), t)
  25366. },
  25367. focus: function (t, e) {
  25368. var i = e.item.data("ui-selectmenu-item");
  25369. null != n.focusIndex && i.index !== n.focusIndex && (n._trigger("focus", t, {
  25370. item: i
  25371. }), n.isOpen || n._select(i, t)), n.focusIndex = i.index, n.button.attr("aria-activedescendant", n.menuItems.eq(i.index).attr("id"))
  25372. }
  25373. }).menu("instance"), this.menuInstance._off(this.menu, "mouseleave"), this.menuInstance._closeOnDocumentClick = function () {
  25374. return !1
  25375. }, this.menuInstance._isDivider = function () {
  25376. return !1
  25377. }
  25378. },
  25379. refresh: function () {
  25380. this._refreshMenu(), this.buttonItem.replaceWith(this.buttonItem = this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item") || {})), null === this.options.width && this._resizeButton()
  25381. },
  25382. _refreshMenu: function () {
  25383. var t, e = this.element.find("option");
  25384. this.menu.empty(), this._parseOptions(e), this._renderMenu(this.menu, this.items), this.menuInstance.refresh(), this.menuItems = this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"), this._rendered = !0, e.length && (t = this._getSelectedItem(), this.menuInstance.focus(null, t), this._setAria(t.data("ui-selectmenu-item")), this._setOption("disabled", this.element.prop("disabled")))
  25385. },
  25386. open: function (t) {
  25387. this.options.disabled || (this._rendered ? (this._removeClass(this.menu.find(".ui-state-active"), null, "ui-state-active"), this.menuInstance.focus(null, this._getSelectedItem())) : this._refreshMenu(), this.menuItems.length && (this.isOpen = !0, this._toggleAttr(), this._resizeMenu(), this._position(), this._on(this.document, this._documentClick), this._trigger("open", t)))
  25388. },
  25389. _position: function () {
  25390. this.menuWrap.position(S.extend({
  25391. of: this.button
  25392. }, this.options.position))
  25393. },
  25394. close: function (t) {
  25395. this.isOpen && (this.isOpen = !1, this._toggleAttr(), this.range = null, this._off(this.document), this._trigger("close", t))
  25396. },
  25397. widget: function () {
  25398. return this.button
  25399. },
  25400. menuWidget: function () {
  25401. return this.menu
  25402. },
  25403. _renderButtonItem: function (t) {
  25404. var e = S("<span>");
  25405. return this._setText(e, t.label), this._addClass(e, "ui-selectmenu-text"), e
  25406. },
  25407. _renderMenu: function (n, t) {
  25408. var s = this,
  25409. o = "";
  25410. S.each(t, function (t, e) {
  25411. var i;
  25412. e.optgroup !== o && (i = S("<li>", {
  25413. text: e.optgroup
  25414. }), s._addClass(i, "ui-selectmenu-optgroup", "ui-menu-divider" + (e.element.parent("optgroup").prop("disabled") ? " ui-state-disabled" : "")), i.appendTo(n), o = e.optgroup), s._renderItemData(n, e)
  25415. })
  25416. },
  25417. _renderItemData: function (t, e) {
  25418. return this._renderItem(t, e).data("ui-selectmenu-item", e)
  25419. },
  25420. _renderItem: function (t, e) {
  25421. var i = S("<li>"),
  25422. n = S("<div>", {
  25423. title: e.element.attr("title")
  25424. });
  25425. return e.disabled && this._addClass(i, null, "ui-state-disabled"), this._setText(n, e.label), i.append(n).appendTo(t)
  25426. },
  25427. _setText: function (t, e) {
  25428. e ? t.text(e) : t.html("&#160;")
  25429. },
  25430. _move: function (t, e) {
  25431. var i, n, s = ".ui-menu-item";
  25432. this.isOpen ? i = this.menuItems.eq(this.focusIndex).parent("li") : (i = this.menuItems.eq(this.element[0].selectedIndex).parent("li"), s += ":not(.ui-state-disabled)"), (n = "first" === t || "last" === t ? i["first" === t ? "prevAll" : "nextAll"](s).eq(-1) : i[t + "All"](s).eq(0)).length && this.menuInstance.focus(e, n)
  25433. },
  25434. _getSelectedItem: function () {
  25435. return this.menuItems.eq(this.element[0].selectedIndex).parent("li")
  25436. },
  25437. _toggle: function (t) {
  25438. this[this.isOpen ? "close" : "open"](t)
  25439. },
  25440. _setSelection: function () {
  25441. var t;
  25442. this.range && (window.getSelection ? ((t = window.getSelection()).removeAllRanges(), t.addRange(this.range)) : this.range.select(), this.button.focus())
  25443. },
  25444. _documentClick: {
  25445. mousedown: function (t) {
  25446. this.isOpen && (S(t.target).closest(".ui-selectmenu-menu, #" + S.ui.escapeSelector(this.ids.button)).length || this.close(t))
  25447. }
  25448. },
  25449. _buttonEvents: {
  25450. mousedown: function () {
  25451. var t;
  25452. window.getSelection ? (t = window.getSelection()).rangeCount && (this.range = t.getRangeAt(0)) : this.range = document.selection.createRange()
  25453. },
  25454. click: function (t) {
  25455. this._setSelection(), this._toggle(t)
  25456. },
  25457. keydown: function (t) {
  25458. var e = !0;
  25459. switch (t.keyCode) {
  25460. case S.ui.keyCode.TAB:
  25461. case S.ui.keyCode.ESCAPE:
  25462. this.close(t), e = !1;
  25463. break;
  25464. case S.ui.keyCode.ENTER:
  25465. this.isOpen && this._selectFocusedItem(t);
  25466. break;
  25467. case S.ui.keyCode.UP:
  25468. t.altKey ? this._toggle(t) : this._move("prev", t);
  25469. break;
  25470. case S.ui.keyCode.DOWN:
  25471. t.altKey ? this._toggle(t) : this._move("next", t);
  25472. break;
  25473. case S.ui.keyCode.SPACE:
  25474. this.isOpen ? this._selectFocusedItem(t) : this._toggle(t);
  25475. break;
  25476. case S.ui.keyCode.LEFT:
  25477. this._move("prev", t);
  25478. break;
  25479. case S.ui.keyCode.RIGHT:
  25480. this._move("next", t);
  25481. break;
  25482. case S.ui.keyCode.HOME:
  25483. case S.ui.keyCode.PAGE_UP:
  25484. this._move("first", t);
  25485. break;
  25486. case S.ui.keyCode.END:
  25487. case S.ui.keyCode.PAGE_DOWN:
  25488. this._move("last", t);
  25489. break;
  25490. default:
  25491. this.menu.trigger(t), e = !1
  25492. }
  25493. e && t.preventDefault()
  25494. }
  25495. },
  25496. _selectFocusedItem: function (t) {
  25497. var e = this.menuItems.eq(this.focusIndex).parent("li");
  25498. e.hasClass("ui-state-disabled") || this._select(e.data("ui-selectmenu-item"), t)
  25499. },
  25500. _select: function (t, e) {
  25501. var i = this.element[0].selectedIndex;
  25502. this.element[0].selectedIndex = t.index, this.buttonItem.replaceWith(this.buttonItem = this._renderButtonItem(t)), this._setAria(t), this._trigger("select", e, {
  25503. item: t
  25504. }), t.index !== i && this._trigger("change", e, {
  25505. item: t
  25506. }), this.close(e)
  25507. },
  25508. _setAria: function (t) {
  25509. var e = this.menuItems.eq(t.index).attr("id");
  25510. this.button.attr({
  25511. "aria-labelledby": e,
  25512. "aria-activedescendant": e
  25513. }), this.menu.attr("aria-activedescendant", e)
  25514. },
  25515. _setOption: function (t, e) {
  25516. if ("icons" === t) {
  25517. var i = this.button.find("span.ui-icon");
  25518. this._removeClass(i, null, this.options.icons.button)._addClass(i, null, e.button)
  25519. }
  25520. this._super(t, e), "appendTo" === t && this.menuWrap.appendTo(this._appendTo()), "width" === t && this._resizeButton()
  25521. },
  25522. _setOptionDisabled: function (t) {
  25523. this._super(t), this.menuInstance.option("disabled", t), this.button.attr("aria-disabled", t), this._toggleClass(this.button, null, "ui-state-disabled", t), this.element.prop("disabled", t), t ? (this.button.attr("tabindex", -1), this.close()) : this.button.attr("tabindex", 0)
  25524. },
  25525. _appendTo: function () {
  25526. var t = this.options.appendTo;
  25527. return t && (t = t.jquery || t.nodeType ? S(t) : this.document.find(t).eq(0)), t && t[0] || (t = this.element.closest(".ui-front, dialog")), t.length || (t = this.document[0].body), t
  25528. },
  25529. _toggleAttr: function () {
  25530. this.button.attr("aria-expanded", this.isOpen), this._removeClass(this.button, "ui-selectmenu-button-" + (this.isOpen ? "closed" : "open"))._addClass(this.button, "ui-selectmenu-button-" + (this.isOpen ? "open" : "closed"))._toggleClass(this.menuWrap, "ui-selectmenu-open", null, this.isOpen), this.menu.attr("aria-hidden", !this.isOpen)
  25531. },
  25532. _resizeButton: function () {
  25533. var t = this.options.width;
  25534. return !1 === t ? void this.button.css("width", "") : (null === t && (t = this.element.show().outerWidth(), this.element.hide()), void this.button.outerWidth(t))
  25535. },
  25536. _resizeMenu: function () {
  25537. this.menu.outerWidth(Math.max(this.button.outerWidth(), this.menu.width("").outerWidth() + 1))
  25538. },
  25539. _getCreateOptions: function () {
  25540. var t = this._super();
  25541. return t.disabled = this.element.prop("disabled"), t
  25542. },
  25543. _parseOptions: function (t) {
  25544. var i = this,
  25545. n = [];
  25546. t.each(function (t, e) {
  25547. n.push(i._parseOption(S(e), t))
  25548. }), this.items = n
  25549. },
  25550. _parseOption: function (t, e) {
  25551. var i = t.parent("optgroup");
  25552. return {
  25553. element: t,
  25554. index: e,
  25555. value: t.val(),
  25556. label: t.text(),
  25557. optgroup: i.attr("label") || "",
  25558. disabled: i.prop("disabled") || t.prop("disabled")
  25559. }
  25560. },
  25561. _destroy: function () {
  25562. this._unbindFormResetHandler(), this.menuWrap.remove(), this.button.remove(), this.element.show(), this.element.removeUniqueId(), this.labels.attr("for", this.ids.element)
  25563. }
  25564. }]), S.widget("ui.slider", S.ui.mouse, {
  25565. version: "1.12.1",
  25566. widgetEventPrefix: "slide",
  25567. options: {
  25568. animate: !1,
  25569. classes: {
  25570. "ui-slider": "ui-corner-all",
  25571. "ui-slider-handle": "ui-corner-all",
  25572. "ui-slider-range": "ui-corner-all ui-widget-header"
  25573. },
  25574. distance: 0,
  25575. max: 100,
  25576. min: 0,
  25577. orientation: "horizontal",
  25578. range: !1,
  25579. step: 1,
  25580. value: 0,
  25581. values: null,
  25582. change: null,
  25583. slide: null,
  25584. start: null,
  25585. stop: null
  25586. },
  25587. numPages: 5,
  25588. _create: function () {
  25589. this._keySliding = !1, this._mouseSliding = !1, this._animateOff = !0, this._handleIndex = null, this._detectOrientation(), this._mouseInit(), this._calculateNewMax(), this._addClass("ui-slider ui-slider-" + this.orientation, "ui-widget ui-widget-content"), this._refresh(), this._animateOff = !1
  25590. },
  25591. _refresh: function () {
  25592. this._createRange(), this._createHandles(), this._setupEvents(), this._refreshValue()
  25593. },
  25594. _createHandles: function () {
  25595. var t, e, i = this.options,
  25596. n = this.element.find(".ui-slider-handle"),
  25597. s = [];
  25598. for (e = i.values && i.values.length || 1, n.length > e && (n.slice(e).remove(), n = n.slice(0, e)), t = n.length; t < e; t++) s.push("<span tabindex='0'></span>");
  25599. this.handles = n.add(S(s.join("")).appendTo(this.element)), this._addClass(this.handles, "ui-slider-handle", "ui-state-default"), this.handle = this.handles.eq(0), this.handles.each(function (t) {
  25600. S(this).data("ui-slider-handle-index", t).attr("tabIndex", 0)
  25601. })
  25602. },
  25603. _createRange: function () {
  25604. var t = this.options;
  25605. t.range ? (!0 === t.range && (t.values ? t.values.length && 2 !== t.values.length ? t.values = [t.values[0], t.values[0]] : S.isArray(t.values) && (t.values = t.values.slice(0)) : t.values = [this._valueMin(), this._valueMin()]), this.range && this.range.length ? (this._removeClass(this.range, "ui-slider-range-min ui-slider-range-max"), this.range.css({
  25606. left: "",
  25607. bottom: ""
  25608. })) : (this.range = S("<div>").appendTo(this.element), this._addClass(this.range, "ui-slider-range")), ("min" === t.range || "max" === t.range) && this._addClass(this.range, "ui-slider-range-" + t.range)) : (this.range && this.range.remove(), this.range = null)
  25609. },
  25610. _setupEvents: function () {
  25611. this._off(this.handles), this._on(this.handles, this._handleEvents), this._hoverable(this.handles), this._focusable(this.handles)
  25612. },
  25613. _destroy: function () {
  25614. this.handles.remove(), this.range && this.range.remove(), this._mouseDestroy()
  25615. },
  25616. _mouseCapture: function (t) {
  25617. var e, i, n, s, o, r, a, l = this,
  25618. c = this.options;
  25619. return !c.disabled && (this.elementSize = {
  25620. width: this.element.outerWidth(),
  25621. height: this.element.outerHeight()
  25622. }, this.elementOffset = this.element.offset(), e = {
  25623. x: t.pageX,
  25624. y: t.pageY
  25625. }, i = this._normValueFromMouse(e), n = this._valueMax() - this._valueMin() + 1, this.handles.each(function (t) {
  25626. var e = Math.abs(i - l.values(t));
  25627. (e < n || n === e && (t === l._lastChangedValue || l.values(t) === c.min)) && (n = e, s = S(this), o = t)
  25628. }), !1 !== this._start(t, o) && (this._mouseSliding = !0, this._handleIndex = o, this._addClass(s, null, "ui-state-active"), s.trigger("focus"), r = s.offset(), a = !S(t.target).parents().addBack().is(".ui-slider-handle"), this._clickOffset = a ? {
  25629. left: 0,
  25630. top: 0
  25631. } : {
  25632. left: t.pageX - r.left - s.width() / 2,
  25633. top: t.pageY - r.top - s.height() / 2 - (parseInt(s.css("borderTopWidth"), 10) || 0) - (parseInt(s.css("borderBottomWidth"), 10) || 0) + (parseInt(s.css("marginTop"), 10) || 0)
  25634. }, this.handles.hasClass("ui-state-hover") || this._slide(t, o, i), this._animateOff = !0))
  25635. },
  25636. _mouseStart: function () {
  25637. return !0
  25638. },
  25639. _mouseDrag: function (t) {
  25640. var e = {
  25641. x: t.pageX,
  25642. y: t.pageY
  25643. },
  25644. i = this._normValueFromMouse(e);
  25645. return this._slide(t, this._handleIndex, i), !1
  25646. },
  25647. _mouseStop: function (t) {
  25648. return this._removeClass(this.handles, null, "ui-state-active"), this._mouseSliding = !1, this._stop(t, this._handleIndex), this._change(t, this._handleIndex), this._handleIndex = null, this._clickOffset = null, this._animateOff = !1
  25649. },
  25650. _detectOrientation: function () {
  25651. this.orientation = "vertical" === this.options.orientation ? "vertical" : "horizontal"
  25652. },
  25653. _normValueFromMouse: function (t) {
  25654. var e, i, n, s;
  25655. return 1 < (i = ("horizontal" === this.orientation ? (e = this.elementSize.width, t.x - this.elementOffset.left - (this._clickOffset ? this._clickOffset.left : 0)) : (e = this.elementSize.height, t.y - this.elementOffset.top - (this._clickOffset ? this._clickOffset.top : 0))) / e) && (i = 1), i < 0 && (i = 0), "vertical" === this.orientation && (i = 1 - i), n = this._valueMax() - this._valueMin(), s = this._valueMin() + i * n, this._trimAlignValue(s)
  25656. },
  25657. _uiHash: function (t, e, i) {
  25658. var n = {
  25659. handle: this.handles[t],
  25660. handleIndex: t,
  25661. value: void 0 !== e ? e : this.value()
  25662. };
  25663. return this._hasMultipleValues() && (n.value = void 0 !== e ? e : this.values(t), n.values = i || this.values()), n
  25664. },
  25665. _hasMultipleValues: function () {
  25666. return this.options.values && this.options.values.length
  25667. },
  25668. _start: function (t, e) {
  25669. return this._trigger("start", t, this._uiHash(e))
  25670. },
  25671. _slide: function (t, e, i) {
  25672. var n, s = this.value(),
  25673. o = this.values();
  25674. this._hasMultipleValues() && (n = this.values(e ? 0 : 1), s = this.values(e), 2 === this.options.values.length && !0 === this.options.range && (i = 0 === e ? Math.min(n, i) : Math.max(n, i)), o[e] = i), i !== s && (!1 !== this._trigger("slide", t, this._uiHash(e, i, o)) && (this._hasMultipleValues() ? this.values(e, i) : this.value(i)))
  25675. },
  25676. _stop: function (t, e) {
  25677. this._trigger("stop", t, this._uiHash(e))
  25678. },
  25679. _change: function (t, e) {
  25680. this._keySliding || this._mouseSliding || (this._lastChangedValue = e, this._trigger("change", t, this._uiHash(e)))
  25681. },
  25682. value: function (t) {
  25683. return arguments.length ? (this.options.value = this._trimAlignValue(t), this._refreshValue(), void this._change(null, 0)) : this._value()
  25684. },
  25685. values: function (t, e) {
  25686. var i, n, s;
  25687. if (1 < arguments.length) return this.options.values[t] = this._trimAlignValue(e), this._refreshValue(), void this._change(null, t);
  25688. if (!arguments.length) return this._values();
  25689. if (!S.isArray(t)) return this._hasMultipleValues() ? this._values(t) : this.value();
  25690. for (i = this.options.values, n = t, s = 0; i.length > s; s += 1) i[s] = this._trimAlignValue(n[s]), this._change(null, s);
  25691. this._refreshValue()
  25692. },
  25693. _setOption: function (t, e) {
  25694. var i, n = 0;
  25695. switch ("range" === t && !0 === this.options.range && ("min" === e ? (this.options.value = this._values(0), this.options.values = null) : "max" === e && (this.options.value = this._values(this.options.values.length - 1), this.options.values = null)), S.isArray(this.options.values) && (n = this.options.values.length), this._super(t, e), t) {
  25696. case "orientation":
  25697. this._detectOrientation(), this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-" + this.orientation), this._refreshValue(), this.options.range && this._refreshRange(e), this.handles.css("horizontal" === e ? "bottom" : "left", "");
  25698. break;
  25699. case "value":
  25700. this._animateOff = !0, this._refreshValue(), this._change(null, 0), this._animateOff = !1;
  25701. break;
  25702. case "values":
  25703. for (this._animateOff = !0, this._refreshValue(), i = n - 1; 0 <= i; i--) this._change(null, i);
  25704. this._animateOff = !1;
  25705. break;
  25706. case "step":
  25707. case "min":
  25708. case "max":
  25709. this._animateOff = !0, this._calculateNewMax(), this._refreshValue(), this._animateOff = !1;
  25710. break;
  25711. case "range":
  25712. this._animateOff = !0, this._refresh(), this._animateOff = !1
  25713. }
  25714. },
  25715. _setOptionDisabled: function (t) {
  25716. this._super(t), this._toggleClass(null, "ui-state-disabled", !!t)
  25717. },
  25718. _value: function () {
  25719. var t = this.options.value;
  25720. return this._trimAlignValue(t)
  25721. },
  25722. _values: function (t) {
  25723. var e, i, n;
  25724. if (arguments.length) return e = this.options.values[t], this._trimAlignValue(e);
  25725. if (this._hasMultipleValues()) {
  25726. for (i = this.options.values.slice(), n = 0; i.length > n; n += 1) i[n] = this._trimAlignValue(i[n]);
  25727. return i
  25728. }
  25729. return []
  25730. },
  25731. _trimAlignValue: function (t) {
  25732. if (this._valueMin() >= t) return this._valueMin();
  25733. if (t >= this._valueMax()) return this._valueMax();
  25734. var e = 0 < this.options.step ? this.options.step : 1,
  25735. i = (t - this._valueMin()) % e,
  25736. n = t - i;
  25737. return 2 * Math.abs(i) >= e && (n += 0 < i ? e : -e), parseFloat(n.toFixed(5))
  25738. },
  25739. _calculateNewMax: function () {
  25740. var t = this.options.max,
  25741. e = this._valueMin(),
  25742. i = this.options.step;
  25743. (t = Math.round((t - e) / i) * i + e) > this.options.max && (t -= i), this.max = parseFloat(t.toFixed(this._precision()))
  25744. },
  25745. _precision: function () {
  25746. var t = this._precisionOf(this.options.step);
  25747. return null !== this.options.min && (t = Math.max(t, this._precisionOf(this.options.min))), t
  25748. },
  25749. _precisionOf: function (t) {
  25750. var e = "" + t,
  25751. i = e.indexOf(".");
  25752. return -1 === i ? 0 : e.length - i - 1
  25753. },
  25754. _valueMin: function () {
  25755. return this.options.min
  25756. },
  25757. _valueMax: function () {
  25758. return this.max
  25759. },
  25760. _refreshRange: function (t) {
  25761. "vertical" === t && this.range.css({
  25762. width: "",
  25763. left: ""
  25764. }), "horizontal" === t && this.range.css({
  25765. height: "",
  25766. bottom: ""
  25767. })
  25768. },
  25769. _refreshValue: function () {
  25770. var e, i, t, n, s, o = this.options.range,
  25771. r = this.options,
  25772. a = this,
  25773. l = !this._animateOff && r.animate,
  25774. c = {};
  25775. this._hasMultipleValues() ? this.handles.each(function (t) {
  25776. i = (a.values(t) - a._valueMin()) / (a._valueMax() - a._valueMin()) * 100, c["horizontal" === a.orientation ? "left" : "bottom"] = i + "%", S(this).stop(1, 1)[l ? "animate" : "css"](c, r.animate), !0 === a.options.range && ("horizontal" === a.orientation ? (0 === t && a.range.stop(1, 1)[l ? "animate" : "css"]({
  25777. left: i + "%"
  25778. }, r.animate), 1 === t && a.range[l ? "animate" : "css"]({
  25779. width: i - e + "%"
  25780. }, {
  25781. queue: !1,
  25782. duration: r.animate
  25783. })) : (0 === t && a.range.stop(1, 1)[l ? "animate" : "css"]({
  25784. bottom: i + "%"
  25785. }, r.animate), 1 === t && a.range[l ? "animate" : "css"]({
  25786. height: i - e + "%"
  25787. }, {
  25788. queue: !1,
  25789. duration: r.animate
  25790. }))), e = i
  25791. }) : (t = this.value(), n = this._valueMin(), s = this._valueMax(), i = s !== n ? (t - n) / (s - n) * 100 : 0, c["horizontal" === this.orientation ? "left" : "bottom"] = i + "%", this.handle.stop(1, 1)[l ? "animate" : "css"](c, r.animate), "min" === o && "horizontal" === this.orientation && this.range.stop(1, 1)[l ? "animate" : "css"]({
  25792. width: i + "%"
  25793. }, r.animate), "max" === o && "horizontal" === this.orientation && this.range.stop(1, 1)[l ? "animate" : "css"]({
  25794. width: 100 - i + "%"
  25795. }, r.animate), "min" === o && "vertical" === this.orientation && this.range.stop(1, 1)[l ? "animate" : "css"]({
  25796. height: i + "%"
  25797. }, r.animate), "max" === o && "vertical" === this.orientation && this.range.stop(1, 1)[l ? "animate" : "css"]({
  25798. height: 100 - i + "%"
  25799. }, r.animate))
  25800. },
  25801. _handleEvents: {
  25802. keydown: function (t) {
  25803. var e, i, n, s = S(t.target).data("ui-slider-handle-index");
  25804. switch (t.keyCode) {
  25805. case S.ui.keyCode.HOME:
  25806. case S.ui.keyCode.END:
  25807. case S.ui.keyCode.PAGE_UP:
  25808. case S.ui.keyCode.PAGE_DOWN:
  25809. case S.ui.keyCode.UP:
  25810. case S.ui.keyCode.RIGHT:
  25811. case S.ui.keyCode.DOWN:
  25812. case S.ui.keyCode.LEFT:
  25813. if (t.preventDefault(), !this._keySliding && (this._keySliding = !0, this._addClass(S(t.target), null, "ui-state-active"), !1 === this._start(t, s))) return
  25814. }
  25815. switch (n = this.options.step, e = i = this._hasMultipleValues() ? this.values(s) : this.value(), t.keyCode) {
  25816. case S.ui.keyCode.HOME:
  25817. i = this._valueMin();
  25818. break;
  25819. case S.ui.keyCode.END:
  25820. i = this._valueMax();
  25821. break;
  25822. case S.ui.keyCode.PAGE_UP:
  25823. i = this._trimAlignValue(e + (this._valueMax() - this._valueMin()) / this.numPages);
  25824. break;
  25825. case S.ui.keyCode.PAGE_DOWN:
  25826. i = this._trimAlignValue(e - (this._valueMax() - this._valueMin()) / this.numPages);
  25827. break;
  25828. case S.ui.keyCode.UP:
  25829. case S.ui.keyCode.RIGHT:
  25830. if (e === this._valueMax()) return;
  25831. i = this._trimAlignValue(e + n);
  25832. break;
  25833. case S.ui.keyCode.DOWN:
  25834. case S.ui.keyCode.LEFT:
  25835. if (e === this._valueMin()) return;
  25836. i = this._trimAlignValue(e - n)
  25837. }
  25838. this._slide(t, s, i)
  25839. },
  25840. keyup: function (t) {
  25841. var e = S(t.target).data("ui-slider-handle-index");
  25842. this._keySliding && (this._keySliding = !1, this._stop(t, e), this._change(t, e), this._removeClass(S(t.target), null, "ui-state-active"))
  25843. }
  25844. }
  25845. }), S.widget("ui.sortable", S.ui.mouse, {
  25846. version: "1.12.1",
  25847. widgetEventPrefix: "sort",
  25848. ready: !1,
  25849. options: {
  25850. appendTo: "parent",
  25851. axis: !1,
  25852. connectWith: !1,
  25853. containment: !1,
  25854. cursor: "auto",
  25855. cursorAt: !1,
  25856. dropOnEmpty: !0,
  25857. forcePlaceholderSize: !1,
  25858. forceHelperSize: !1,
  25859. grid: !1,
  25860. handle: !1,
  25861. helper: "original",
  25862. items: "> *",
  25863. opacity: !1,
  25864. placeholder: !1,
  25865. revert: !1,
  25866. scroll: !0,
  25867. scrollSensitivity: 20,
  25868. scrollSpeed: 20,
  25869. scope: "default",
  25870. tolerance: "intersect",
  25871. zIndex: 1e3,
  25872. activate: null,
  25873. beforeStop: null,
  25874. change: null,
  25875. deactivate: null,
  25876. out: null,
  25877. over: null,
  25878. receive: null,
  25879. remove: null,
  25880. sort: null,
  25881. start: null,
  25882. stop: null,
  25883. update: null
  25884. },
  25885. _isOverAxis: function (t, e, i) {
  25886. return e <= t && t < e + i
  25887. },
  25888. _isFloating: function (t) {
  25889. return /left|right/.test(t.css("float")) || /inline|table-cell/.test(t.css("display"))
  25890. },
  25891. _create: function () {
  25892. this.containerCache = {}, this._addClass("ui-sortable"), this.refresh(), this.offset = this.element.offset(), this._mouseInit(), this._setHandleClassName(), this.ready = !0
  25893. },
  25894. _setOption: function (t, e) {
  25895. this._super(t, e), "handle" === t && this._setHandleClassName()
  25896. },
  25897. _setHandleClassName: function () {
  25898. var t = this;
  25899. this._removeClass(this.element.find(".ui-sortable-handle"), "ui-sortable-handle"), S.each(this.items, function () {
  25900. t._addClass(this.instance.options.handle ? this.item.find(this.instance.options.handle) : this.item, "ui-sortable-handle")
  25901. })
  25902. },
  25903. _destroy: function () {
  25904. this._mouseDestroy();
  25905. for (var t = this.items.length - 1; 0 <= t; t--) this.items[t].item.removeData(this.widgetName + "-item");
  25906. return this
  25907. },
  25908. _mouseCapture: function (t, e) {
  25909. var i = null,
  25910. n = !1,
  25911. s = this;
  25912. return !this.reverting && (!this.options.disabled && "static" !== this.options.type && (this._refreshItems(t), S(t.target).parents().each(function () {
  25913. return S.data(this, s.widgetName + "-item") === s ? (i = S(this), !1) : void 0
  25914. }), S.data(t.target, s.widgetName + "-item") === s && (i = S(t.target)), !!i && (!(this.options.handle && !e && (S(this.options.handle, i).find("*").addBack().each(function () {
  25915. this === t.target && (n = !0)
  25916. }), !n)) && (this.currentItem = i, this._removeCurrentsFromItems(), !0))))
  25917. },
  25918. _mouseStart: function (t, e, i) {
  25919. var n, s, o = this.options;
  25920. if ((this.currentContainer = this).refreshPositions(), this.helper = this._createHelper(t), this._cacheHelperProportions(), this._cacheMargins(), this.scrollParent = this.helper.scrollParent(), this.offset = this.currentItem.offset(), this.offset = {
  25921. top: this.offset.top - this.margins.top,
  25922. left: this.offset.left - this.margins.left
  25923. }, S.extend(this.offset, {
  25924. click: {
  25925. left: t.pageX - this.offset.left,
  25926. top: t.pageY - this.offset.top
  25927. },
  25928. parent: this._getParentOffset(),
  25929. relative: this._getRelativeOffset()
  25930. }), this.helper.css("position", "absolute"), this.cssPosition = this.helper.css("position"), this.originalPosition = this._generatePosition(t), this.originalPageX = t.pageX, this.originalPageY = t.pageY, o.cursorAt && this._adjustOffsetFromHelper(o.cursorAt), this.domPosition = {
  25931. prev: this.currentItem.prev()[0],
  25932. parent: this.currentItem.parent()[0]
  25933. }, this.helper[0] !== this.currentItem[0] && this.currentItem.hide(), this._createPlaceholder(), o.containment && this._setContainment(), o.cursor && "auto" !== o.cursor && (s = this.document.find("body"), this.storedCursor = s.css("cursor"), s.css("cursor", o.cursor), this.storedStylesheet = S("<style>*{ cursor: " + o.cursor + " !important; }</style>").appendTo(s)), o.opacity && (this.helper.css("opacity") && (this._storedOpacity = this.helper.css("opacity")), this.helper.css("opacity", o.opacity)), o.zIndex && (this.helper.css("zIndex") && (this._storedZIndex = this.helper.css("zIndex")), this.helper.css("zIndex", o.zIndex)), this.scrollParent[0] !== this.document[0] && "HTML" !== this.scrollParent[0].tagName && (this.overflowOffset = this.scrollParent.offset()), this._trigger("start", t, this._uiHash()), this._preserveHelperProportions || this._cacheHelperProportions(), !i)
  25934. for (n = this.containers.length - 1; 0 <= n; n--) this.containers[n]._trigger("activate", t, this._uiHash(this));
  25935. return S.ui.ddmanager && (S.ui.ddmanager.current = this), S.ui.ddmanager && !o.dropBehaviour && S.ui.ddmanager.prepareOffsets(this, t), this.dragging = !0, this._addClass(this.helper, "ui-sortable-helper"), this._mouseDrag(t), !0
  25936. },
  25937. _mouseDrag: function (t) {
  25938. var e, i, n, s, o = this.options,
  25939. r = !1;
  25940. for (this.position = this._generatePosition(t), this.positionAbs = this._convertPositionTo("absolute"), this.lastPositionAbs || (this.lastPositionAbs = this.positionAbs), this.options.scroll && (this.scrollParent[0] !== this.document[0] && "HTML" !== this.scrollParent[0].tagName ? (this.overflowOffset.top + this.scrollParent[0].offsetHeight - t.pageY < o.scrollSensitivity ? this.scrollParent[0].scrollTop = r = this.scrollParent[0].scrollTop + o.scrollSpeed : t.pageY - this.overflowOffset.top < o.scrollSensitivity && (this.scrollParent[0].scrollTop = r = this.scrollParent[0].scrollTop - o.scrollSpeed), this.overflowOffset.left + this.scrollParent[0].offsetWidth - t.pageX < o.scrollSensitivity ? this.scrollParent[0].scrollLeft = r = this.scrollParent[0].scrollLeft + o.scrollSpeed : t.pageX - this.overflowOffset.left < o.scrollSensitivity && (this.scrollParent[0].scrollLeft = r = this.scrollParent[0].scrollLeft - o.scrollSpeed)) : (t.pageY - this.document.scrollTop() < o.scrollSensitivity ? r = this.document.scrollTop(this.document.scrollTop() - o.scrollSpeed) : this.window.height() - (t.pageY - this.document.scrollTop()) < o.scrollSensitivity && (r = this.document.scrollTop(this.document.scrollTop() + o.scrollSpeed)), t.pageX - this.document.scrollLeft() < o.scrollSensitivity ? r = this.document.scrollLeft(this.document.scrollLeft() - o.scrollSpeed) : this.window.width() - (t.pageX - this.document.scrollLeft()) < o.scrollSensitivity && (r = this.document.scrollLeft(this.document.scrollLeft() + o.scrollSpeed))), !1 !== r && S.ui.ddmanager && !o.dropBehaviour && S.ui.ddmanager.prepareOffsets(this, t)), this.positionAbs = this._convertPositionTo("absolute"), this.options.axis && "y" === this.options.axis || (this.helper[0].style.left = this.position.left + "px"), this.options.axis && "x" === this.options.axis || (this.helper[0].style.top = this.position.top + "px"), e = this.items.length - 1; 0 <= e; e--)
  25941. if (n = (i = this.items[e]).item[0], (s = this._intersectsWithPointer(i)) && i.instance === this.currentContainer && n !== this.currentItem[0] && this.placeholder[1 === s ? "next" : "prev"]()[0] !== n && !S.contains(this.placeholder[0], n) && ("semi-dynamic" !== this.options.type || !S.contains(this.element[0], n))) {
  25942. if (this.direction = 1 === s ? "down" : "up", "pointer" !== this.options.tolerance && !this._intersectsWithSides(i)) break;
  25943. this._rearrange(t, i), this._trigger("change", t, this._uiHash());
  25944. break
  25945. } return this._contactContainers(t), S.ui.ddmanager && S.ui.ddmanager.drag(this, t), this._trigger("sort", t, this._uiHash()), this.lastPositionAbs = this.positionAbs, !1
  25946. },
  25947. _mouseStop: function (t, e) {
  25948. if (t) {
  25949. if (S.ui.ddmanager && !this.options.dropBehaviour && S.ui.ddmanager.drop(this, t), this.options.revert) {
  25950. var i = this,
  25951. n = this.placeholder.offset(),
  25952. s = this.options.axis,
  25953. o = {};
  25954. s && "x" !== s || (o.left = n.left - this.offset.parent.left - this.margins.left + (this.offsetParent[0] === this.document[0].body ? 0 : this.offsetParent[0].scrollLeft)), s && "y" !== s || (o.top = n.top - this.offset.parent.top - this.margins.top + (this.offsetParent[0] === this.document[0].body ? 0 : this.offsetParent[0].scrollTop)), this.reverting = !0, S(this.helper).animate(o, parseInt(this.options.revert, 10) || 500, function () {
  25955. i._clear(t)
  25956. })
  25957. } else this._clear(t, e);
  25958. return !1
  25959. }
  25960. },
  25961. cancel: function () {
  25962. if (this.dragging) {
  25963. this._mouseUp(new S.Event("mouseup", {
  25964. target: null
  25965. })), "original" === this.options.helper ? (this.currentItem.css(this._storedCSS), this._removeClass(this.currentItem, "ui-sortable-helper")) : this.currentItem.show();
  25966. for (var t = this.containers.length - 1; 0 <= t; t--) this.containers[t]._trigger("deactivate", null, this._uiHash(this)), this.containers[t].containerCache.over && (this.containers[t]._trigger("out", null, this._uiHash(this)), this.containers[t].containerCache.over = 0)
  25967. }
  25968. return this.placeholder && (this.placeholder[0].parentNode && this.placeholder[0].parentNode.removeChild(this.placeholder[0]), "original" !== this.options.helper && this.helper && this.helper[0].parentNode && this.helper.remove(), S.extend(this, {
  25969. helper: null,
  25970. dragging: !1,
  25971. reverting: !1,
  25972. _noFinalSort: null
  25973. }), this.domPosition.prev ? S(this.domPosition.prev).after(this.currentItem) : S(this.domPosition.parent).prepend(this.currentItem)), this
  25974. },
  25975. serialize: function (e) {
  25976. var t = this._getItemsAsjQuery(e && e.connected),
  25977. i = [];
  25978. return e = e || {}, S(t).each(function () {
  25979. var t = (S(e.item || this).attr(e.attribute || "id") || "").match(e.expression || /(.+)[\-=_](.+)/);
  25980. t && i.push((e.key || t[1] + "[]") + "=" + (e.key && e.expression ? t[1] : t[2]))
  25981. }), !i.length && e.key && i.push(e.key + "="), i.join("&")
  25982. },
  25983. toArray: function (t) {
  25984. var e = this._getItemsAsjQuery(t && t.connected),
  25985. i = [];
  25986. return t = t || {}, e.each(function () {
  25987. i.push(S(t.item || this).attr(t.attribute || "id") || "")
  25988. }), i
  25989. },
  25990. _intersectsWith: function (t) {
  25991. var e = this.positionAbs.left,
  25992. i = e + this.helperProportions.width,
  25993. n = this.positionAbs.top,
  25994. s = n + this.helperProportions.height,
  25995. o = t.left,
  25996. r = o + t.width,
  25997. a = t.top,
  25998. l = a + t.height,
  25999. c = this.offset.click.top,
  26000. u = this.offset.click.left,
  26001. h = "x" === this.options.axis || a < n + c && n + c < l,
  26002. d = "y" === this.options.axis || o < e + u && e + u < r,
  26003. p = h && d;
  26004. return "pointer" === this.options.tolerance || this.options.forcePointerForContainers || "pointer" !== this.options.tolerance && this.helperProportions[this.floating ? "width" : "height"] > t[this.floating ? "width" : "height"] ? p : e + this.helperProportions.width / 2 > o && r > i - this.helperProportions.width / 2 && n + this.helperProportions.height / 2 > a && l > s - this.helperProportions.height / 2
  26005. },
  26006. _intersectsWithPointer: function (t) {
  26007. var e, i, n = "x" === this.options.axis || this._isOverAxis(this.positionAbs.top + this.offset.click.top, t.top, t.height),
  26008. s = "y" === this.options.axis || this._isOverAxis(this.positionAbs.left + this.offset.click.left, t.left, t.width);
  26009. return !!(n && s) && (e = this._getDragVerticalDirection(), i = this._getDragHorizontalDirection(), this.floating ? "right" === i || "down" === e ? 2 : 1 : e && ("down" === e ? 2 : 1))
  26010. },
  26011. _intersectsWithSides: function (t) {
  26012. var e = this._isOverAxis(this.positionAbs.top + this.offset.click.top, t.top + t.height / 2, t.height),
  26013. i = this._isOverAxis(this.positionAbs.left + this.offset.click.left, t.left + t.width / 2, t.width),
  26014. n = this._getDragVerticalDirection(),
  26015. s = this._getDragHorizontalDirection();
  26016. return this.floating && s ? "right" === s && i || "left" === s && !i : n && ("down" === n && e || "up" === n && !e)
  26017. },
  26018. _getDragVerticalDirection: function () {
  26019. var t = this.positionAbs.top - this.lastPositionAbs.top;
  26020. return 0 != t && (0 < t ? "down" : "up")
  26021. },
  26022. _getDragHorizontalDirection: function () {
  26023. var t = this.positionAbs.left - this.lastPositionAbs.left;
  26024. return 0 != t && (0 < t ? "right" : "left")
  26025. },
  26026. refresh: function (t) {
  26027. return this._refreshItems(t), this._setHandleClassName(), this.refreshPositions(), this
  26028. },
  26029. _connectWith: function () {
  26030. var t = this.options;
  26031. return t.connectWith.constructor === String ? [t.connectWith] : t.connectWith
  26032. },
  26033. _getItemsAsjQuery: function (t) {
  26034. function e() {
  26035. r.push(this)
  26036. }
  26037. var i, n, s, o, r = [],
  26038. a = [],
  26039. l = this._connectWith();
  26040. if (l && t)
  26041. for (i = l.length - 1; 0 <= i; i--)
  26042. for (n = (s = S(l[i], this.document[0])).length - 1; 0 <= n; n--)(o = S.data(s[n], this.widgetFullName)) && o !== this && !o.options.disabled && a.push([S.isFunction(o.options.items) ? o.options.items.call(o.element) : S(o.options.items, o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"), o]);
  26043. for (a.push([S.isFunction(this.options.items) ? this.options.items.call(this.element, null, {
  26044. options: this.options,
  26045. item: this.currentItem
  26046. }) : S(this.options.items, this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"), this]), i = a.length - 1; 0 <= i; i--) a[i][0].each(e);
  26047. return S(r)
  26048. },
  26049. _removeCurrentsFromItems: function () {
  26050. var i = this.currentItem.find(":data(" + this.widgetName + "-item)");
  26051. this.items = S.grep(this.items, function (t) {
  26052. for (var e = 0; i.length > e; e++)
  26053. if (i[e] === t.item[0]) return !1;
  26054. return !0
  26055. })
  26056. },
  26057. _refreshItems: function (t) {
  26058. this.items = [], this.containers = [this];
  26059. var e, i, n, s, o, r, a, l, c = this.items,
  26060. u = [
  26061. [S.isFunction(this.options.items) ? this.options.items.call(this.element[0], t, {
  26062. item: this.currentItem
  26063. }) : S(this.options.items, this.element), this]
  26064. ],
  26065. h = this._connectWith();
  26066. if (h && this.ready)
  26067. for (e = h.length - 1; 0 <= e; e--)
  26068. for (i = (n = S(h[e], this.document[0])).length - 1; 0 <= i; i--)(s = S.data(n[i], this.widgetFullName)) && s !== this && !s.options.disabled && (u.push([S.isFunction(s.options.items) ? s.options.items.call(s.element[0], t, {
  26069. item: this.currentItem
  26070. }) : S(s.options.items, s.element), s]), this.containers.push(s));
  26071. for (e = u.length - 1; 0 <= e; e--)
  26072. for (o = u[e][1], i = 0, l = (r = u[e][0]).length; i < l; i++)(a = S(r[i])).data(this.widgetName + "-item", o), c.push({
  26073. item: a,
  26074. instance: o,
  26075. width: 0,
  26076. height: 0,
  26077. left: 0,
  26078. top: 0
  26079. })
  26080. },
  26081. refreshPositions: function (t) {
  26082. var e, i, n, s;
  26083. for (this.floating = !!this.items.length && ("x" === this.options.axis || this._isFloating(this.items[0].item)), this.offsetParent && this.helper && (this.offset.parent = this._getParentOffset()), e = this.items.length - 1; 0 <= e; e--)(i = this.items[e]).instance !== this.currentContainer && this.currentContainer && i.item[0] !== this.currentItem[0] || (n = this.options.toleranceElement ? S(this.options.toleranceElement, i.item) : i.item, t || (i.width = n.outerWidth(), i.height = n.outerHeight()), s = n.offset(), i.left = s.left, i.top = s.top);
  26084. if (this.options.custom && this.options.custom.refreshContainers) this.options.custom.refreshContainers.call(this);
  26085. else
  26086. for (e = this.containers.length - 1; 0 <= e; e--) s = this.containers[e].element.offset(), this.containers[e].containerCache.left = s.left, this.containers[e].containerCache.top = s.top, this.containers[e].containerCache.width = this.containers[e].element.outerWidth(), this.containers[e].containerCache.height = this.containers[e].element.outerHeight();
  26087. return this
  26088. },
  26089. _createPlaceholder: function (i) {
  26090. var n, s = (i = i || this).options;
  26091. s.placeholder && s.placeholder.constructor !== String || (n = s.placeholder, s.placeholder = {
  26092. element: function () {
  26093. var t = i.currentItem[0].nodeName.toLowerCase(),
  26094. e = S("<" + t + ">", i.document[0]);
  26095. return i._addClass(e, "ui-sortable-placeholder", n || i.currentItem[0].className)._removeClass(e, "ui-sortable-helper"), "tbody" === t ? i._createTrPlaceholder(i.currentItem.find("tr").eq(0), S("<tr>", i.document[0]).appendTo(e)) : "tr" === t ? i._createTrPlaceholder(i.currentItem, e) : "img" === t && e.attr("src", i.currentItem.attr("src")), n || e.css("visibility", "hidden"), e
  26096. },
  26097. update: function (t, e) {
  26098. (!n || s.forcePlaceholderSize) && (e.height() || e.height(i.currentItem.innerHeight() - parseInt(i.currentItem.css("paddingTop") || 0, 10) - parseInt(i.currentItem.css("paddingBottom") || 0, 10)), e.width() || e.width(i.currentItem.innerWidth() - parseInt(i.currentItem.css("paddingLeft") || 0, 10) - parseInt(i.currentItem.css("paddingRight") || 0, 10)))
  26099. }
  26100. }), i.placeholder = S(s.placeholder.element.call(i.element, i.currentItem)), i.currentItem.after(i.placeholder), s.placeholder.update(i, i.placeholder)
  26101. },
  26102. _createTrPlaceholder: function (t, e) {
  26103. var i = this;
  26104. t.children().each(function () {
  26105. S("<td>&#160;</td>", i.document[0]).attr("colspan", S(this).attr("colspan") || 1).appendTo(e)
  26106. })
  26107. },
  26108. _contactContainers: function (t) {
  26109. var e, i, n, s, o, r, a, l, c, u, h = null,
  26110. d = null;
  26111. for (e = this.containers.length - 1; 0 <= e; e--)
  26112. if (!S.contains(this.currentItem[0], this.containers[e].element[0]))
  26113. if (this._intersectsWith(this.containers[e].containerCache)) {
  26114. if (h && S.contains(this.containers[e].element[0], h.element[0])) continue;
  26115. h = this.containers[e], d = e
  26116. } else this.containers[e].containerCache.over && (this.containers[e]._trigger("out", t, this._uiHash(this)), this.containers[e].containerCache.over = 0);
  26117. if (h)
  26118. if (1 === this.containers.length) this.containers[d].containerCache.over || (this.containers[d]._trigger("over", t, this._uiHash(this)), this.containers[d].containerCache.over = 1);
  26119. else {
  26120. for (n = 1e4, s = null, o = (c = h.floating || this._isFloating(this.currentItem)) ? "left" : "top", r = c ? "width" : "height", u = c ? "pageX" : "pageY", i = this.items.length - 1; 0 <= i; i--) S.contains(this.containers[d].element[0], this.items[i].item[0]) && this.items[i].item[0] !== this.currentItem[0] && (a = this.items[i].item.offset()[o], l = !1, t[u] - a > this.items[i][r] / 2 && (l = !0), n > Math.abs(t[u] - a) && (n = Math.abs(t[u] - a), s = this.items[i], this.direction = l ? "up" : "down"));
  26121. if (!s && !this.options.dropOnEmpty) return;
  26122. if (this.currentContainer === this.containers[d]) return void(this.currentContainer.containerCache.over || (this.containers[d]._trigger("over", t, this._uiHash()), this.currentContainer.containerCache.over = 1));
  26123. s ? this._rearrange(t, s, null, !0) : this._rearrange(t, null, this.containers[d].element, !0), this._trigger("change", t, this._uiHash()), this.containers[d]._trigger("change", t, this._uiHash(this)), this.currentContainer = this.containers[d], this.options.placeholder.update(this.currentContainer, this.placeholder), this.containers[d]._trigger("over", t, this._uiHash(this)), this.containers[d].containerCache.over = 1
  26124. }
  26125. },
  26126. _createHelper: function (t) {
  26127. var e = this.options,
  26128. i = S.isFunction(e.helper) ? S(e.helper.apply(this.element[0], [t, this.currentItem])) : "clone" === e.helper ? this.currentItem.clone() : this.currentItem;
  26129. return i.parents("body").length || S("parent" !== e.appendTo ? e.appendTo : this.currentItem[0].parentNode)[0].appendChild(i[0]), i[0] === this.currentItem[0] && (this._storedCSS = {
  26130. width: this.currentItem[0].style.width,
  26131. height: this.currentItem[0].style.height,
  26132. position: this.currentItem.css("position"),
  26133. top: this.currentItem.css("top"),
  26134. left: this.currentItem.css("left")
  26135. }), (!i[0].style.width || e.forceHelperSize) && i.width(this.currentItem.width()), (!i[0].style.height || e.forceHelperSize) && i.height(this.currentItem.height()), i
  26136. },
  26137. _adjustOffsetFromHelper: function (t) {
  26138. "string" == typeof t && (t = t.split(" ")), S.isArray(t) && (t = {
  26139. left: +t[0],
  26140. top: +t[1] || 0
  26141. }), "left" in t && (this.offset.click.left = t.left + this.margins.left), "right" in t && (this.offset.click.left = this.helperProportions.width - t.right + this.margins.left), "top" in t && (this.offset.click.top = t.top + this.margins.top), "bottom" in t && (this.offset.click.top = this.helperProportions.height - t.bottom + this.margins.top)
  26142. },
  26143. _getParentOffset: function () {
  26144. this.offsetParent = this.helper.offsetParent();
  26145. var t = this.offsetParent.offset();
  26146. return "absolute" === this.cssPosition && this.scrollParent[0] !== this.document[0] && S.contains(this.scrollParent[0], this.offsetParent[0]) && (t.left += this.scrollParent.scrollLeft(), t.top += this.scrollParent.scrollTop()), (this.offsetParent[0] === this.document[0].body || this.offsetParent[0].tagName && "html" === this.offsetParent[0].tagName.toLowerCase() && S.ui.ie) && (t = {
  26147. top: 0,
  26148. left: 0
  26149. }), {
  26150. top: t.top + (parseInt(this.offsetParent.css("borderTopWidth"), 10) || 0),
  26151. left: t.left + (parseInt(this.offsetParent.css("borderLeftWidth"), 10) || 0)
  26152. }
  26153. },
  26154. _getRelativeOffset: function () {
  26155. if ("relative" !== this.cssPosition) return {
  26156. top: 0,
  26157. left: 0
  26158. };
  26159. var t = this.currentItem.position();
  26160. return {
  26161. top: t.top - (parseInt(this.helper.css("top"), 10) || 0) + this.scrollParent.scrollTop(),
  26162. left: t.left - (parseInt(this.helper.css("left"), 10) || 0) + this.scrollParent.scrollLeft()
  26163. }
  26164. },
  26165. _cacheMargins: function () {
  26166. this.margins = {
  26167. left: parseInt(this.currentItem.css("marginLeft"), 10) || 0,
  26168. top: parseInt(this.currentItem.css("marginTop"), 10) || 0
  26169. }
  26170. },
  26171. _cacheHelperProportions: function () {
  26172. this.helperProportions = {
  26173. width: this.helper.outerWidth(),
  26174. height: this.helper.outerHeight()
  26175. }
  26176. },
  26177. _setContainment: function () {
  26178. var t, e, i, n = this.options;
  26179. "parent" === n.containment && (n.containment = this.helper[0].parentNode), ("document" === n.containment || "window" === n.containment) && (this.containment = [0 - this.offset.relative.left - this.offset.parent.left, 0 - this.offset.relative.top - this.offset.parent.top, "document" === n.containment ? this.document.width() : this.window.width() - this.helperProportions.width - this.margins.left, ("document" === n.containment ? this.document.height() || document.body.parentNode.scrollHeight : this.window.height() || this.document[0].body.parentNode.scrollHeight) - this.helperProportions.height - this.margins.top]), /^(document|window|parent)$/.test(n.containment) || (t = S(n.containment)[0], e = S(n.containment).offset(), i = "hidden" !== S(t).css("overflow"), this.containment = [e.left + (parseInt(S(t).css("borderLeftWidth"), 10) || 0) + (parseInt(S(t).css("paddingLeft"), 10) || 0) - this.margins.left, e.top + (parseInt(S(t).css("borderTopWidth"), 10) || 0) + (parseInt(S(t).css("paddingTop"), 10) || 0) - this.margins.top, e.left + (i ? Math.max(t.scrollWidth, t.offsetWidth) : t.offsetWidth) - (parseInt(S(t).css("borderLeftWidth"), 10) || 0) - (parseInt(S(t).css("paddingRight"), 10) || 0) - this.helperProportions.width - this.margins.left, e.top + (i ? Math.max(t.scrollHeight, t.offsetHeight) : t.offsetHeight) - (parseInt(S(t).css("borderTopWidth"), 10) || 0) - (parseInt(S(t).css("paddingBottom"), 10) || 0) - this.helperProportions.height - this.margins.top])
  26180. },
  26181. _convertPositionTo: function (t, e) {
  26182. e || (e = this.position);
  26183. var i = "absolute" === t ? 1 : -1,
  26184. n = "absolute" !== this.cssPosition || this.scrollParent[0] !== this.document[0] && S.contains(this.scrollParent[0], this.offsetParent[0]) ? this.scrollParent : this.offsetParent,
  26185. s = /(html|body)/i.test(n[0].tagName);
  26186. return {
  26187. top: e.top + this.offset.relative.top * i + this.offset.parent.top * i - ("fixed" === this.cssPosition ? -this.scrollParent.scrollTop() : s ? 0 : n.scrollTop()) * i,
  26188. left: e.left + this.offset.relative.left * i + this.offset.parent.left * i - ("fixed" === this.cssPosition ? -this.scrollParent.scrollLeft() : s ? 0 : n.scrollLeft()) * i
  26189. }
  26190. },
  26191. _generatePosition: function (t) {
  26192. var e, i, n = this.options,
  26193. s = t.pageX,
  26194. o = t.pageY,
  26195. r = "absolute" !== this.cssPosition || this.scrollParent[0] !== this.document[0] && S.contains(this.scrollParent[0], this.offsetParent[0]) ? this.scrollParent : this.offsetParent,
  26196. a = /(html|body)/i.test(r[0].tagName);
  26197. return "relative" !== this.cssPosition || this.scrollParent[0] !== this.document[0] && this.scrollParent[0] !== this.offsetParent[0] || (this.offset.relative = this._getRelativeOffset()), this.originalPosition && (this.containment && (t.pageX - this.offset.click.left < this.containment[0] && (s = this.containment[0] + this.offset.click.left), t.pageY - this.offset.click.top < this.containment[1] && (o = this.containment[1] + this.offset.click.top), t.pageX - this.offset.click.left > this.containment[2] && (s = this.containment[2] + this.offset.click.left), t.pageY - this.offset.click.top > this.containment[3] && (o = this.containment[3] + this.offset.click.top)), n.grid && (e = this.originalPageY + Math.round((o - this.originalPageY) / n.grid[1]) * n.grid[1], o = this.containment ? e - this.offset.click.top >= this.containment[1] && e - this.offset.click.top <= this.containment[3] ? e : e - this.offset.click.top >= this.containment[1] ? e - n.grid[1] : e + n.grid[1] : e, i = this.originalPageX + Math.round((s - this.originalPageX) / n.grid[0]) * n.grid[0], s = this.containment ? i - this.offset.click.left >= this.containment[0] && i - this.offset.click.left <= this.containment[2] ? i : i - this.offset.click.left >= this.containment[0] ? i - n.grid[0] : i + n.grid[0] : i)), {
  26198. top: o - this.offset.click.top - this.offset.relative.top - this.offset.parent.top + ("fixed" === this.cssPosition ? -this.scrollParent.scrollTop() : a ? 0 : r.scrollTop()),
  26199. left: s - this.offset.click.left - this.offset.relative.left - this.offset.parent.left + ("fixed" === this.cssPosition ? -this.scrollParent.scrollLeft() : a ? 0 : r.scrollLeft())
  26200. }
  26201. },
  26202. _rearrange: function (t, e, i, n) {
  26203. i ? i[0].appendChild(this.placeholder[0]) : e.item[0].parentNode.insertBefore(this.placeholder[0], "down" === this.direction ? e.item[0] : e.item[0].nextSibling), this.counter = this.counter ? ++this.counter : 1;
  26204. var s = this.counter;
  26205. this._delay(function () {
  26206. s === this.counter && this.refreshPositions(!n)
  26207. })
  26208. },
  26209. _clear: function (t, e) {
  26210. function i(e, i, n) {
  26211. return function (t) {
  26212. n._trigger(e, t, i._uiHash(i))
  26213. }
  26214. }
  26215. this.reverting = !1;
  26216. var n, s = [];
  26217. if (!this._noFinalSort && this.currentItem.parent().length && this.placeholder.before(this.currentItem), this._noFinalSort = null, this.helper[0] === this.currentItem[0]) {
  26218. for (n in this._storedCSS)("auto" === this._storedCSS[n] || "static" === this._storedCSS[n]) && (this._storedCSS[n] = "");
  26219. this.currentItem.css(this._storedCSS), this._removeClass(this.currentItem, "ui-sortable-helper")
  26220. } else this.currentItem.show();
  26221. for (this.fromOutside && !e && s.push(function (t) {
  26222. this._trigger("receive", t, this._uiHash(this.fromOutside))
  26223. }), !this.fromOutside && this.domPosition.prev === this.currentItem.prev().not(".ui-sortable-helper")[0] && this.domPosition.parent === this.currentItem.parent()[0] || e || s.push(function (t) {
  26224. this._trigger("update", t, this._uiHash())
  26225. }), this !== this.currentContainer && (e || (s.push(function (t) {
  26226. this._trigger("remove", t, this._uiHash())
  26227. }), s.push(function (e) {
  26228. return function (t) {
  26229. e._trigger("receive", t, this._uiHash(this))
  26230. }
  26231. }.call(this, this.currentContainer)), s.push(function (e) {
  26232. return function (t) {
  26233. e._trigger("update", t, this._uiHash(this))
  26234. }
  26235. }.call(this, this.currentContainer)))), n = this.containers.length - 1; 0 <= n; n--) e || s.push(i("deactivate", this, this.containers[n])), this.containers[n].containerCache.over && (s.push(i("out", this, this.containers[n])), this.containers[n].containerCache.over = 0);
  26236. if (this.storedCursor && (this.document.find("body").css("cursor", this.storedCursor), this.storedStylesheet.remove()), this._storedOpacity && this.helper.css("opacity", this._storedOpacity), this._storedZIndex && this.helper.css("zIndex", "auto" === this._storedZIndex ? "" : this._storedZIndex), this.dragging = !1, e || this._trigger("beforeStop", t, this._uiHash()), this.placeholder[0].parentNode.removeChild(this.placeholder[0]), this.cancelHelperRemoval || (this.helper[0] !== this.currentItem[0] && this.helper.remove(), this.helper = null), !e) {
  26237. for (n = 0; s.length > n; n++) s[n].call(this, t);
  26238. this._trigger("stop", t, this._uiHash())
  26239. }
  26240. return this.fromOutside = !1, !this.cancelHelperRemoval
  26241. },
  26242. _trigger: function () {
  26243. !1 === S.Widget.prototype._trigger.apply(this, arguments) && this.cancel()
  26244. },
  26245. _uiHash: function (t) {
  26246. var e = t || this;
  26247. return {
  26248. helper: e.helper,
  26249. placeholder: e.placeholder || S([]),
  26250. position: e.position,
  26251. originalPosition: e.originalPosition,
  26252. offset: e.positionAbs,
  26253. item: e.currentItem,
  26254. sender: t ? t.element : null
  26255. }
  26256. }
  26257. }), S.widget("ui.spinner", {
  26258. version: "1.12.1",
  26259. defaultElement: "<input>",
  26260. widgetEventPrefix: "spin",
  26261. options: {
  26262. classes: {
  26263. "ui-spinner": "ui-corner-all",
  26264. "ui-spinner-down": "ui-corner-br",
  26265. "ui-spinner-up": "ui-corner-tr"
  26266. },
  26267. culture: null,
  26268. icons: {
  26269. down: "ui-icon-triangle-1-s",
  26270. up: "ui-icon-triangle-1-n"
  26271. },
  26272. incremental: !0,
  26273. max: null,
  26274. min: null,
  26275. numberFormat: null,
  26276. page: 10,
  26277. step: 1,
  26278. change: null,
  26279. spin: null,
  26280. start: null,
  26281. stop: null
  26282. },
  26283. _create: function () {
  26284. this._setOption("max", this.options.max), this._setOption("min", this.options.min), this._setOption("step", this.options.step), "" !== this.value() && this._value(this.element.val(), !0), this._draw(), this._on(this._events), this._refresh(), this._on(this.window, {
  26285. beforeunload: function () {
  26286. this.element.removeAttr("autocomplete")
  26287. }
  26288. })
  26289. },
  26290. _getCreateOptions: function () {
  26291. var n = this._super(),
  26292. s = this.element;
  26293. return S.each(["min", "max", "step"], function (t, e) {
  26294. var i = s.attr(e);
  26295. null != i && i.length && (n[e] = i)
  26296. }), n
  26297. },
  26298. _events: {
  26299. keydown: function (t) {
  26300. this._start(t) && this._keydown(t) && t.preventDefault()
  26301. },
  26302. keyup: "_stop",
  26303. focus: function () {
  26304. this.previous = this.element.val()
  26305. },
  26306. blur: function (t) {
  26307. return this.cancelBlur ? void delete this.cancelBlur : (this._stop(), this._refresh(), void(this.previous !== this.element.val() && this._trigger("change", t)))
  26308. },
  26309. mousewheel: function (t, e) {
  26310. if (e) {
  26311. if (!this.spinning && !this._start(t)) return !1;
  26312. this._spin((0 < e ? 1 : -1) * this.options.step, t), clearTimeout(this.mousewheelTimer), this.mousewheelTimer = this._delay(function () {
  26313. this.spinning && this._stop(t)
  26314. }, 100), t.preventDefault()
  26315. }
  26316. },
  26317. "mousedown .ui-spinner-button": function (t) {
  26318. function e() {
  26319. this.element[0] === S.ui.safeActiveElement(this.document[0]) || (this.element.trigger("focus"), this.previous = i, this._delay(function () {
  26320. this.previous = i
  26321. }))
  26322. }
  26323. var i;
  26324. i = this.element[0] === S.ui.safeActiveElement(this.document[0]) ? this.previous : this.element.val(), t.preventDefault(), e.call(this), this.cancelBlur = !0, this._delay(function () {
  26325. delete this.cancelBlur, e.call(this)
  26326. }), !1 !== this._start(t) && this._repeat(null, S(t.currentTarget).hasClass("ui-spinner-up") ? 1 : -1, t)
  26327. },
  26328. "mouseup .ui-spinner-button": "_stop",
  26329. "mouseenter .ui-spinner-button": function (t) {
  26330. return S(t.currentTarget).hasClass("ui-state-active") ? !1 !== this._start(t) && void this._repeat(null, S(t.currentTarget).hasClass("ui-spinner-up") ? 1 : -1, t) : void 0
  26331. },
  26332. "mouseleave .ui-spinner-button": "_stop"
  26333. },
  26334. _enhance: function () {
  26335. this.uiSpinner = this.element.attr("autocomplete", "off").wrap("<span>").parent().append("<a></a><a></a>")
  26336. },
  26337. _draw: function () {
  26338. this._enhance(), this._addClass(this.uiSpinner, "ui-spinner", "ui-widget ui-widget-content"), this._addClass("ui-spinner-input"), this.element.attr("role", "spinbutton"), this.buttons = this.uiSpinner.children("a").attr("tabIndex", -1).attr("aria-hidden", !0).button({
  26339. classes: {
  26340. "ui-button": ""
  26341. }
  26342. }), this._removeClass(this.buttons, "ui-corner-all"), this._addClass(this.buttons.first(), "ui-spinner-button ui-spinner-up"), this._addClass(this.buttons.last(), "ui-spinner-button ui-spinner-down"), this.buttons.first().button({
  26343. icon: this.options.icons.up,
  26344. showLabel: !1
  26345. }), this.buttons.last().button({
  26346. icon: this.options.icons.down,
  26347. showLabel: !1
  26348. }), this.buttons.height() > Math.ceil(.5 * this.uiSpinner.height()) && 0 < this.uiSpinner.height() && this.uiSpinner.height(this.uiSpinner.height())
  26349. },
  26350. _keydown: function (t) {
  26351. var e = this.options,
  26352. i = S.ui.keyCode;
  26353. switch (t.keyCode) {
  26354. case i.UP:
  26355. return this._repeat(null, 1, t), !0;
  26356. case i.DOWN:
  26357. return this._repeat(null, -1, t), !0;
  26358. case i.PAGE_UP:
  26359. return this._repeat(null, e.page, t), !0;
  26360. case i.PAGE_DOWN:
  26361. return this._repeat(null, -e.page, t), !0
  26362. }
  26363. return !1
  26364. },
  26365. _start: function (t) {
  26366. return !(!this.spinning && !1 === this._trigger("start", t)) && (this.counter || (this.counter = 1), this.spinning = !0)
  26367. },
  26368. _repeat: function (t, e, i) {
  26369. t = t || 500, clearTimeout(this.timer), this.timer = this._delay(function () {
  26370. this._repeat(40, e, i)
  26371. }, t), this._spin(e * this.options.step, i)
  26372. },
  26373. _spin: function (t, e) {
  26374. var i = this.value() || 0;
  26375. this.counter || (this.counter = 1), i = this._adjustValue(i + t * this._increment(this.counter)), this.spinning && !1 === this._trigger("spin", e, {
  26376. value: i
  26377. }) || (this._value(i), this.counter++)
  26378. },
  26379. _increment: function (t) {
  26380. var e = this.options.incremental;
  26381. return e ? S.isFunction(e) ? e(t) : Math.floor(t * t * t / 5e4 - t * t / 500 + 17 * t / 200 + 1) : 1
  26382. },
  26383. _precision: function () {
  26384. var t = this._precisionOf(this.options.step);
  26385. return null !== this.options.min && (t = Math.max(t, this._precisionOf(this.options.min))), t
  26386. },
  26387. _precisionOf: function (t) {
  26388. var e = "" + t,
  26389. i = e.indexOf(".");
  26390. return -1 === i ? 0 : e.length - i - 1
  26391. },
  26392. _adjustValue: function (t) {
  26393. var e, i, n = this.options;
  26394. return i = t - (e = null !== n.min ? n.min : 0), t = e + (i = Math.round(i / n.step) * n.step), t = parseFloat(t.toFixed(this._precision())), null !== n.max && t > n.max ? n.max : null !== n.min && n.min > t ? n.min : t
  26395. },
  26396. _stop: function (t) {
  26397. this.spinning && (clearTimeout(this.timer), clearTimeout(this.mousewheelTimer), this.counter = 0, this.spinning = !1, this._trigger("stop", t))
  26398. },
  26399. _setOption: function (t, e) {
  26400. var i, n, s;
  26401. return "culture" === t || "numberFormat" === t ? (i = this._parse(this.element.val()), this.options[t] = e, void this.element.val(this._format(i))) : (("max" === t || "min" === t || "step" === t) && "string" == typeof e && (e = this._parse(e)), "icons" === t && (n = this.buttons.first().find(".ui-icon"), this._removeClass(n, null, this.options.icons.up), this._addClass(n, null, e.up), s = this.buttons.last().find(".ui-icon"), this._removeClass(s, null, this.options.icons.down), this._addClass(s, null, e.down)), void this._super(t, e))
  26402. },
  26403. _setOptionDisabled: function (t) {
  26404. this._super(t), this._toggleClass(this.uiSpinner, null, "ui-state-disabled", !!t), this.element.prop("disabled", !!t), this.buttons.button(t ? "disable" : "enable")
  26405. },
  26406. _setOptions: e(function (t) {
  26407. this._super(t)
  26408. }),
  26409. _parse: function (t) {
  26410. return "string" == typeof t && "" !== t && (t = window.Globalize && this.options.numberFormat ? Globalize.parseFloat(t, 10, this.options.culture) : +t), "" === t || isNaN(t) ? null : t
  26411. },
  26412. _format: function (t) {
  26413. return "" === t ? "" : window.Globalize && this.options.numberFormat ? Globalize.format(t, this.options.numberFormat, this.options.culture) : t
  26414. },
  26415. _refresh: function () {
  26416. this.element.attr({
  26417. "aria-valuemin": this.options.min,
  26418. "aria-valuemax": this.options.max,
  26419. "aria-valuenow": this._parse(this.element.val())
  26420. })
  26421. },
  26422. isValid: function () {
  26423. var t = this.value();
  26424. return null !== t && t === this._adjustValue(t)
  26425. },
  26426. _value: function (t, e) {
  26427. var i;
  26428. "" !== t && (null !== (i = this._parse(t)) && (e || (i = this._adjustValue(i)), t = this._format(i))), this.element.val(t), this._refresh()
  26429. },
  26430. _destroy: function () {
  26431. this.element.prop("disabled", !1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"), this.uiSpinner.replaceWith(this.element)
  26432. },
  26433. stepUp: e(function (t) {
  26434. this._stepUp(t)
  26435. }),
  26436. _stepUp: function (t) {
  26437. this._start() && (this._spin((t || 1) * this.options.step), this._stop())
  26438. },
  26439. stepDown: e(function (t) {
  26440. this._stepDown(t)
  26441. }),
  26442. _stepDown: function (t) {
  26443. this._start() && (this._spin((t || 1) * -this.options.step), this._stop())
  26444. },
  26445. pageUp: e(function (t) {
  26446. this._stepUp((t || 1) * this.options.page)
  26447. }),
  26448. pageDown: e(function (t) {
  26449. this._stepDown((t || 1) * this.options.page)
  26450. }),
  26451. value: function (t) {
  26452. return arguments.length ? void e(this._value).call(this, t) : this._parse(this.element.val())
  26453. },
  26454. widget: function () {
  26455. return this.uiSpinner
  26456. }
  26457. }), !1 !== S.uiBackCompat && S.widget("ui.spinner", S.ui.spinner, {
  26458. _enhance: function () {
  26459. this.uiSpinner = this.element.attr("autocomplete", "off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())
  26460. },
  26461. _uiSpinnerHtml: function () {
  26462. return "<span>"
  26463. },
  26464. _buttonHtml: function () {
  26465. return "<a></a><a></a>"
  26466. }
  26467. }), S.ui.spinner, S.widget("ui.tabs", {
  26468. version: "1.12.1",
  26469. delay: 300,
  26470. options: {
  26471. active: null,
  26472. classes: {
  26473. "ui-tabs": "ui-corner-all",
  26474. "ui-tabs-nav": "ui-corner-all",
  26475. "ui-tabs-panel": "ui-corner-bottom",
  26476. "ui-tabs-tab": "ui-corner-top"
  26477. },
  26478. collapsible: !1,
  26479. event: "click",
  26480. heightStyle: "content",
  26481. hide: null,
  26482. show: null,
  26483. activate: null,
  26484. beforeActivate: null,
  26485. beforeLoad: null,
  26486. load: null
  26487. },
  26488. _isLocal: (b = /#.*$/, function (t) {
  26489. var e, i;
  26490. e = t.href.replace(b, ""), i = location.href.replace(b, "");
  26491. try {
  26492. e = decodeURIComponent(e)
  26493. } catch (t) {}
  26494. try {
  26495. i = decodeURIComponent(i)
  26496. } catch (t) {}
  26497. return 1 < t.hash.length && e === i
  26498. }),
  26499. _create: function () {
  26500. var e = this,
  26501. t = this.options;
  26502. this.running = !1, this._addClass("ui-tabs", "ui-widget ui-widget-content"), this._toggleClass("ui-tabs-collapsible", null, t.collapsible), this._processTabs(), t.active = this._initialActive(), S.isArray(t.disabled) && (t.disabled = S.unique(t.disabled.concat(S.map(this.tabs.filter(".ui-state-disabled"), function (t) {
  26503. return e.tabs.index(t)
  26504. }))).sort()), this.active = !1 !== this.options.active && this.anchors.length ? this._findActive(t.active) : S(), this._refresh(), this.active.length && this.load(t.active)
  26505. },
  26506. _initialActive: function () {
  26507. var i = this.options.active,
  26508. t = this.options.collapsible,
  26509. n = location.hash.substring(1);
  26510. return null === i && (n && this.tabs.each(function (t, e) {
  26511. return S(e).attr("aria-controls") === n ? (i = t, !1) : void 0
  26512. }), null === i && (i = this.tabs.index(this.tabs.filter(".ui-tabs-active"))), (null === i || -1 === i) && (i = !!this.tabs.length && 0)), !1 !== i && (-1 === (i = this.tabs.index(this.tabs.eq(i))) && (i = !t && 0)), !t && !1 === i && this.anchors.length && (i = 0), i
  26513. },
  26514. _getCreateEventData: function () {
  26515. return {
  26516. tab: this.active,
  26517. panel: this.active.length ? this._getPanelForTab(this.active) : S()
  26518. }
  26519. },
  26520. _tabKeydown: function (t) {
  26521. var e = S(S.ui.safeActiveElement(this.document[0])).closest("li"),
  26522. i = this.tabs.index(e),
  26523. n = !0;
  26524. if (!this._handlePageNav(t)) {
  26525. switch (t.keyCode) {
  26526. case S.ui.keyCode.RIGHT:
  26527. case S.ui.keyCode.DOWN:
  26528. i++;
  26529. break;
  26530. case S.ui.keyCode.UP:
  26531. case S.ui.keyCode.LEFT:
  26532. n = !1, i--;
  26533. break;
  26534. case S.ui.keyCode.END:
  26535. i = this.anchors.length - 1;
  26536. break;
  26537. case S.ui.keyCode.HOME:
  26538. i = 0;
  26539. break;
  26540. case S.ui.keyCode.SPACE:
  26541. return t.preventDefault(), clearTimeout(this.activating), void this._activate(i);
  26542. case S.ui.keyCode.ENTER:
  26543. return t.preventDefault(), clearTimeout(this.activating), void this._activate(i !== this.options.active && i);
  26544. default:
  26545. return
  26546. }
  26547. t.preventDefault(), clearTimeout(this.activating), i = this._focusNextTab(i, n), t.ctrlKey || t.metaKey || (e.attr("aria-selected", "false"), this.tabs.eq(i).attr("aria-selected", "true"), this.activating = this._delay(function () {
  26548. this.option("active", i)
  26549. }, this.delay))
  26550. }
  26551. },
  26552. _panelKeydown: function (t) {
  26553. this._handlePageNav(t) || t.ctrlKey && t.keyCode === S.ui.keyCode.UP && (t.preventDefault(), this.active.trigger("focus"))
  26554. },
  26555. _handlePageNav: function (t) {
  26556. return t.altKey && t.keyCode === S.ui.keyCode.PAGE_UP ? (this._activate(this._focusNextTab(this.options.active - 1, !1)), !0) : t.altKey && t.keyCode === S.ui.keyCode.PAGE_DOWN ? (this._activate(this._focusNextTab(this.options.active + 1, !0)), !0) : void 0
  26557. },
  26558. _findNextTab: function (t, e) {
  26559. for (var i = this.tabs.length - 1; - 1 !== S.inArray((i < t && (t = 0), t < 0 && (t = i), t), this.options.disabled);) t = e ? t + 1 : t - 1;
  26560. return t
  26561. },
  26562. _focusNextTab: function (t, e) {
  26563. return t = this._findNextTab(t, e), this.tabs.eq(t).trigger("focus"), t
  26564. },
  26565. _setOption: function (t, e) {
  26566. return "active" === t ? void this._activate(e) : (this._super(t, e), "collapsible" === t && (this._toggleClass("ui-tabs-collapsible", null, e), e || !1 !== this.options.active || this._activate(0)), "event" === t && this._setupEvents(e), void("heightStyle" === t && this._setupHeightStyle(e)))
  26567. },
  26568. _sanitizeSelector: function (t) {
  26569. return t ? t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g, "\\$&") : ""
  26570. },
  26571. refresh: function () {
  26572. var t = this.options,
  26573. e = this.tablist.children(":has(a[href])");
  26574. t.disabled = S.map(e.filter(".ui-state-disabled"), function (t) {
  26575. return e.index(t)
  26576. }), this._processTabs(), !1 !== t.active && this.anchors.length ? this.active.length && !S.contains(this.tablist[0], this.active[0]) ? this.tabs.length === t.disabled.length ? (t.active = !1, this.active = S()) : this._activate(this._findNextTab(Math.max(0, t.active - 1), !1)) : t.active = this.tabs.index(this.active) : (t.active = !1, this.active = S()), this._refresh()
  26577. },
  26578. _refresh: function () {
  26579. this._setOptionDisabled(this.options.disabled), this._setupEvents(this.options.event), this._setupHeightStyle(this.options.heightStyle), this.tabs.not(this.active).attr({
  26580. "aria-selected": "false",
  26581. "aria-expanded": "false",
  26582. tabIndex: -1
  26583. }), this.panels.not(this._getPanelForTab(this.active)).hide().attr({
  26584. "aria-hidden": "true"
  26585. }), this.active.length ? (this.active.attr({
  26586. "aria-selected": "true",
  26587. "aria-expanded": "true",
  26588. tabIndex: 0
  26589. }), this._addClass(this.active, "ui-tabs-active", "ui-state-active"), this._getPanelForTab(this.active).show().attr({
  26590. "aria-hidden": "false"
  26591. })) : this.tabs.eq(0).attr("tabIndex", 0)
  26592. },
  26593. _processTabs: function () {
  26594. var l = this,
  26595. t = this.tabs,
  26596. e = this.anchors,
  26597. i = this.panels;
  26598. this.tablist = this._getList().attr("role", "tablist"), this._addClass(this.tablist, "ui-tabs-nav", "ui-helper-reset ui-helper-clearfix ui-widget-header"), this.tablist.on("mousedown" + this.eventNamespace, "> li", function (t) {
  26599. S(this).is(".ui-state-disabled") && t.preventDefault()
  26600. }).on("focus" + this.eventNamespace, ".ui-tabs-anchor", function () {
  26601. S(this).closest("li").is(".ui-state-disabled") && this.blur()
  26602. }), this.tabs = this.tablist.find("> li:has(a[href])").attr({
  26603. role: "tab",
  26604. tabIndex: -1
  26605. }), this._addClass(this.tabs, "ui-tabs-tab", "ui-state-default"), this.anchors = this.tabs.map(function () {
  26606. return S("a", this)[0]
  26607. }).attr({
  26608. role: "presentation",
  26609. tabIndex: -1
  26610. }), this._addClass(this.anchors, "ui-tabs-anchor"), this.panels = S(), this.anchors.each(function (t, e) {
  26611. var i, n, s, o = S(e).uniqueId().attr("id"),
  26612. r = S(e).closest("li"),
  26613. a = r.attr("aria-controls");
  26614. l._isLocal(e) ? (s = (i = e.hash).substring(1), n = l.element.find(l._sanitizeSelector(i))) : (i = "#" + (s = r.attr("aria-controls") || S({}).uniqueId()[0].id), (n = l.element.find(i)).length || (n = l._createPanel(s)).insertAfter(l.panels[t - 1] || l.tablist), n.attr("aria-live", "polite")), n.length && (l.panels = l.panels.add(n)), a && r.data("ui-tabs-aria-controls", a), r.attr({
  26615. "aria-controls": s,
  26616. "aria-labelledby": o
  26617. }), n.attr("aria-labelledby", o)
  26618. }), this.panels.attr("role", "tabpanel"), this._addClass(this.panels, "ui-tabs-panel", "ui-widget-content"), t && (this._off(t.not(this.tabs)), this._off(e.not(this.anchors)), this._off(i.not(this.panels)))
  26619. },
  26620. _getList: function () {
  26621. return this.tablist || this.element.find("ol, ul").eq(0)
  26622. },
  26623. _createPanel: function (t) {
  26624. return S("<div>").attr("id", t).data("ui-tabs-destroy", !0)
  26625. },
  26626. _setOptionDisabled: function (t) {
  26627. var e, i, n;
  26628. for (S.isArray(t) && (t.length ? t.length === this.anchors.length && (t = !0) : t = !1), n = 0; i = this.tabs[n]; n++) e = S(i), !0 === t || -1 !== S.inArray(n, t) ? (e.attr("aria-disabled", "true"), this._addClass(e, null, "ui-state-disabled")) : (e.removeAttr("aria-disabled"), this._removeClass(e, null, "ui-state-disabled"));
  26629. this.options.disabled = t, this._toggleClass(this.widget(), this.widgetFullName + "-disabled", null, !0 === t)
  26630. },
  26631. _setupEvents: function (t) {
  26632. var i = {};
  26633. t && S.each(t.split(" "), function (t, e) {
  26634. i[e] = "_eventHandler"
  26635. }), this._off(this.anchors.add(this.tabs).add(this.panels)), this._on(!0, this.anchors, {
  26636. click: function (t) {
  26637. t.preventDefault()
  26638. }
  26639. }), this._on(this.anchors, i), this._on(this.tabs, {
  26640. keydown: "_tabKeydown"
  26641. }), this._on(this.panels, {
  26642. keydown: "_panelKeydown"
  26643. }), this._focusable(this.tabs), this._hoverable(this.tabs)
  26644. },
  26645. _setupHeightStyle: function (t) {
  26646. var i, e = this.element.parent();
  26647. "fill" === t ? (i = e.height(), i -= this.element.outerHeight() - this.element.height(), this.element.siblings(":visible").each(function () {
  26648. var t = S(this),
  26649. e = t.css("position");
  26650. "absolute" !== e && "fixed" !== e && (i -= t.outerHeight(!0))
  26651. }), this.element.children().not(this.panels).each(function () {
  26652. i -= S(this).outerHeight(!0)
  26653. }), this.panels.each(function () {
  26654. S(this).height(Math.max(0, i - S(this).innerHeight() + S(this).height()))
  26655. }).css("overflow", "auto")) : "auto" === t && (i = 0, this.panels.each(function () {
  26656. i = Math.max(i, S(this).height("").height())
  26657. }).height(i))
  26658. },
  26659. _eventHandler: function (t) {
  26660. var e = this.options,
  26661. i = this.active,
  26662. n = S(t.currentTarget).closest("li"),
  26663. s = n[0] === i[0],
  26664. o = s && e.collapsible,
  26665. r = o ? S() : this._getPanelForTab(n),
  26666. a = i.length ? this._getPanelForTab(i) : S(),
  26667. l = {
  26668. oldTab: i,
  26669. oldPanel: a,
  26670. newTab: o ? S() : n,
  26671. newPanel: r
  26672. };
  26673. t.preventDefault(), n.hasClass("ui-state-disabled") || n.hasClass("ui-tabs-loading") || this.running || s && !e.collapsible || !1 === this._trigger("beforeActivate", t, l) || (e.active = !o && this.tabs.index(n), this.active = s ? S() : n, this.xhr && this.xhr.abort(), a.length || r.length || S.error("jQuery UI Tabs: Mismatching fragment identifier."), r.length && this.load(this.tabs.index(n), t), this._toggle(t, l))
  26674. },
  26675. _toggle: function (t, e) {
  26676. function i() {
  26677. s.running = !1, s._trigger("activate", t, e)
  26678. }
  26679. function n() {
  26680. s._addClass(e.newTab.closest("li"), "ui-tabs-active", "ui-state-active"), o.length && s.options.show ? s._show(o, s.options.show, i) : (o.show(), i())
  26681. }
  26682. var s = this,
  26683. o = e.newPanel,
  26684. r = e.oldPanel;
  26685. this.running = !0, r.length && this.options.hide ? this._hide(r, this.options.hide, function () {
  26686. s._removeClass(e.oldTab.closest("li"), "ui-tabs-active", "ui-state-active"), n()
  26687. }) : (this._removeClass(e.oldTab.closest("li"), "ui-tabs-active", "ui-state-active"), r.hide(), n()), r.attr("aria-hidden", "true"), e.oldTab.attr({
  26688. "aria-selected": "false",
  26689. "aria-expanded": "false"
  26690. }), o.length && r.length ? e.oldTab.attr("tabIndex", -1) : o.length && this.tabs.filter(function () {
  26691. return 0 === S(this).attr("tabIndex")
  26692. }).attr("tabIndex", -1), o.attr("aria-hidden", "false"), e.newTab.attr({
  26693. "aria-selected": "true",
  26694. "aria-expanded": "true",
  26695. tabIndex: 0
  26696. })
  26697. },
  26698. _activate: function (t) {
  26699. var e, i = this._findActive(t);
  26700. i[0] !== this.active[0] && (i.length || (i = this.active), e = i.find(".ui-tabs-anchor")[0], this._eventHandler({
  26701. target: e,
  26702. currentTarget: e,
  26703. preventDefault: S.noop
  26704. }))
  26705. },
  26706. _findActive: function (t) {
  26707. return !1 === t ? S() : this.tabs.eq(t)
  26708. },
  26709. _getIndex: function (t) {
  26710. return "string" == typeof t && (t = this.anchors.index(this.anchors.filter("[href$='" + S.ui.escapeSelector(t) + "']"))), t
  26711. },
  26712. _destroy: function () {
  26713. this.xhr && this.xhr.abort(), this.tablist.removeAttr("role").off(this.eventNamespace), this.anchors.removeAttr("role tabIndex").removeUniqueId(), this.tabs.add(this.panels).each(function () {
  26714. S.data(this, "ui-tabs-destroy") ? S(this).remove() : S(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")
  26715. }), this.tabs.each(function () {
  26716. var t = S(this),
  26717. e = t.data("ui-tabs-aria-controls");
  26718. e ? t.attr("aria-controls", e).removeData("ui-tabs-aria-controls") : t.removeAttr("aria-controls")
  26719. }), this.panels.show(), "content" !== this.options.heightStyle && this.panels.css("height", "")
  26720. },
  26721. enable: function (i) {
  26722. var t = this.options.disabled;
  26723. !1 !== t && (t = void 0 !== i && (i = this._getIndex(i), S.isArray(t) ? S.map(t, function (t) {
  26724. return t !== i ? t : null
  26725. }) : S.map(this.tabs, function (t, e) {
  26726. return e !== i ? e : null
  26727. })), this._setOptionDisabled(t))
  26728. },
  26729. disable: function (t) {
  26730. var e = this.options.disabled;
  26731. if (!0 !== e) {
  26732. if (void 0 === t) e = !0;
  26733. else {
  26734. if (t = this._getIndex(t), -1 !== S.inArray(t, e)) return;
  26735. e = S.isArray(e) ? S.merge([t], e).sort() : [t]
  26736. }
  26737. this._setOptionDisabled(e)
  26738. }
  26739. },
  26740. load: function (t, n) {
  26741. t = this._getIndex(t);
  26742. function s(t, e) {
  26743. "abort" === e && o.panels.stop(!1, !0), o._removeClass(i, "ui-tabs-loading"), r.removeAttr("aria-busy"), t === o.xhr && delete o.xhr
  26744. }
  26745. var o = this,
  26746. i = this.tabs.eq(t),
  26747. e = i.find(".ui-tabs-anchor"),
  26748. r = this._getPanelForTab(i),
  26749. a = {
  26750. tab: i,
  26751. panel: r
  26752. };
  26753. this._isLocal(e[0]) || (this.xhr = S.ajax(this._ajaxSettings(e, n, a)), this.xhr && "canceled" !== this.xhr.statusText && (this._addClass(i, "ui-tabs-loading"), r.attr("aria-busy", "true"), this.xhr.done(function (t, e, i) {
  26754. setTimeout(function () {
  26755. r.html(t), o._trigger("load", n, a), s(i, e)
  26756. }, 1)
  26757. }).fail(function (t, e) {
  26758. setTimeout(function () {
  26759. s(t, e)
  26760. }, 1)
  26761. })))
  26762. },
  26763. _ajaxSettings: function (t, i, n) {
  26764. var s = this;
  26765. return {
  26766. url: t.attr("href").replace(/#.*$/, ""),
  26767. beforeSend: function (t, e) {
  26768. return s._trigger("beforeLoad", i, S.extend({
  26769. jqXHR: t,
  26770. ajaxSettings: e
  26771. }, n))
  26772. }
  26773. }
  26774. },
  26775. _getPanelForTab: function (t) {
  26776. var e = S(t).attr("aria-controls");
  26777. return this.element.find(this._sanitizeSelector("#" + e))
  26778. }
  26779. }), !1 !== S.uiBackCompat && S.widget("ui.tabs", S.ui.tabs, {
  26780. _processTabs: function () {
  26781. this._superApply(arguments), this._addClass(this.tabs, "ui-tab")
  26782. }
  26783. }), S.ui.tabs, S.widget("ui.tooltip", {
  26784. version: "1.12.1",
  26785. options: {
  26786. classes: {
  26787. "ui-tooltip": "ui-corner-all ui-widget-shadow"
  26788. },
  26789. content: function () {
  26790. var t = S(this).attr("title") || "";
  26791. return S("<a>").text(t).html()
  26792. },
  26793. hide: !0,
  26794. items: "[title]:not([disabled])",
  26795. position: {
  26796. my: "left top+15",
  26797. at: "left bottom",
  26798. collision: "flipfit flip"
  26799. },
  26800. show: !0,
  26801. track: !1,
  26802. close: null,
  26803. open: null
  26804. },
  26805. _addDescribedBy: function (t, e) {
  26806. var i = (t.attr("aria-describedby") || "").split(/\s+/);
  26807. i.push(e), t.data("ui-tooltip-id", e).attr("aria-describedby", S.trim(i.join(" ")))
  26808. },
  26809. _removeDescribedBy: function (t) {
  26810. var e = t.data("ui-tooltip-id"),
  26811. i = (t.attr("aria-describedby") || "").split(/\s+/),
  26812. n = S.inArray(e, i); - 1 !== n && i.splice(n, 1), t.removeData("ui-tooltip-id"), (i = S.trim(i.join(" "))) ? t.attr("aria-describedby", i) : t.removeAttr("aria-describedby")
  26813. },
  26814. _create: function () {
  26815. this._on({
  26816. mouseover: "open",
  26817. focusin: "open"
  26818. }), this.tooltips = {}, this.parents = {}, this.liveRegion = S("<div>").attr({
  26819. role: "log",
  26820. "aria-live": "assertive",
  26821. "aria-relevant": "additions"
  26822. }).appendTo(this.document[0].body), this._addClass(this.liveRegion, null, "ui-helper-hidden-accessible"), this.disabledTitles = S([])
  26823. },
  26824. _setOption: function (t, e) {
  26825. var i = this;
  26826. this._super(t, e), "content" === t && S.each(this.tooltips, function (t, e) {
  26827. i._updateContent(e.element)
  26828. })
  26829. },
  26830. _setOptionDisabled: function (t) {
  26831. this[t ? "_disable" : "_enable"]()
  26832. },
  26833. _disable: function () {
  26834. var n = this;
  26835. S.each(this.tooltips, function (t, e) {
  26836. var i = S.Event("blur");
  26837. i.target = i.currentTarget = e.element[0], n.close(i, !0)
  26838. }), this.disabledTitles = this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function () {
  26839. var t = S(this);
  26840. return t.is("[title]") ? t.data("ui-tooltip-title", t.attr("title")).removeAttr("title") : void 0
  26841. }))
  26842. },
  26843. _enable: function () {
  26844. this.disabledTitles.each(function () {
  26845. var t = S(this);
  26846. t.data("ui-tooltip-title") && t.attr("title", t.data("ui-tooltip-title"))
  26847. }), this.disabledTitles = S([])
  26848. },
  26849. open: function (t) {
  26850. var i = this,
  26851. e = S(t ? t.target : this.element).closest(this.options.items);
  26852. e.length && !e.data("ui-tooltip-id") && (e.attr("title") && e.data("ui-tooltip-title", e.attr("title")), e.data("ui-tooltip-open", !0), t && "mouseover" === t.type && e.parents().each(function () {
  26853. var t, e = S(this);
  26854. e.data("ui-tooltip-open") && ((t = S.Event("blur")).target = t.currentTarget = this, i.close(t, !0)), e.attr("title") && (e.uniqueId(), i.parents[this.id] = {
  26855. element: this,
  26856. title: e.attr("title")
  26857. }, e.attr("title", ""))
  26858. }), this._registerCloseHandlers(t, e), this._updateContent(e, t))
  26859. },
  26860. _updateContent: function (e, i) {
  26861. var t, n = this.options.content,
  26862. s = this,
  26863. o = i ? i.type : null;
  26864. return "string" == typeof n || n.nodeType || n.jquery ? this._open(i, e, n) : void((t = n.call(e[0], function (t) {
  26865. s._delay(function () {
  26866. e.data("ui-tooltip-open") && (i && (i.type = o), this._open(i, e, t))
  26867. })
  26868. })) && this._open(i, e, t))
  26869. },
  26870. _open: function (t, e, i) {
  26871. function n(t) {
  26872. l.of = t, o.is(":hidden") || o.position(l)
  26873. }
  26874. var s, o, r, a, l = S.extend({}, this.options.position);
  26875. if (i) {
  26876. if (s = this._find(e)) return void s.tooltip.find(".ui-tooltip-content").html(i);
  26877. e.is("[title]") && (t && "mouseover" === t.type ? e.attr("title", "") : e.removeAttr("title")), s = this._tooltip(e), o = s.tooltip, this._addDescribedBy(e, o.attr("id")), o.find(".ui-tooltip-content").html(i), this.liveRegion.children().hide(), (a = S("<div>").html(o.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"), a.removeAttr("id").find("[id]").removeAttr("id"), a.appendTo(this.liveRegion), this.options.track && t && /^mouse/.test(t.type) ? (this._on(this.document, {
  26878. mousemove: n
  26879. }), n(t)) : o.position(S.extend({
  26880. of: e
  26881. }, this.options.position)), o.hide(), this._show(o, this.options.show), this.options.track && this.options.show && this.options.show.delay && (r = this.delayedShow = setInterval(function () {
  26882. o.is(":visible") && (n(l.of), clearInterval(r))
  26883. }, S.fx.interval)), this._trigger("open", t, {
  26884. tooltip: o
  26885. })
  26886. }
  26887. },
  26888. _registerCloseHandlers: function (t, i) {
  26889. var e = {
  26890. keyup: function (t) {
  26891. if (t.keyCode === S.ui.keyCode.ESCAPE) {
  26892. var e = S.Event(t);
  26893. e.currentTarget = i[0], this.close(e, !0)
  26894. }
  26895. }
  26896. };
  26897. i[0] !== this.element[0] && (e.remove = function () {
  26898. this._removeTooltip(this._find(i).tooltip)
  26899. }), t && "mouseover" !== t.type || (e.mouseleave = "close"), t && "focusin" !== t.type || (e.focusout = "close"), this._on(!0, i, e)
  26900. },
  26901. close: function (t) {
  26902. var e, i = this,
  26903. n = S(t ? t.currentTarget : this.element),
  26904. s = this._find(n);
  26905. return s ? (e = s.tooltip, void(s.closing || (clearInterval(this.delayedShow), n.data("ui-tooltip-title") && !n.attr("title") && n.attr("title", n.data("ui-tooltip-title")), this._removeDescribedBy(n), s.hiding = !0, e.stop(!0), this._hide(e, this.options.hide, function () {
  26906. i._removeTooltip(S(this))
  26907. }), n.removeData("ui-tooltip-open"), this._off(n, "mouseleave focusout keyup"), n[0] !== this.element[0] && this._off(n, "remove"), this._off(this.document, "mousemove"), t && "mouseleave" === t.type && S.each(this.parents, function (t, e) {
  26908. S(e.element).attr("title", e.title), delete i.parents[t]
  26909. }), s.closing = !0, this._trigger("close", t, {
  26910. tooltip: e
  26911. }), s.hiding || (s.closing = !1)))) : void n.removeData("ui-tooltip-open")
  26912. },
  26913. _tooltip: function (t) {
  26914. var e = S("<div>").attr("role", "tooltip"),
  26915. i = S("<div>").appendTo(e),
  26916. n = e.uniqueId().attr("id");
  26917. return this._addClass(i, "ui-tooltip-content"), this._addClass(e, "ui-tooltip", "ui-widget ui-widget-content"), e.appendTo(this._appendTo(t)), this.tooltips[n] = {
  26918. element: t,
  26919. tooltip: e
  26920. }
  26921. },
  26922. _find: function (t) {
  26923. var e = t.data("ui-tooltip-id");
  26924. return e ? this.tooltips[e] : null
  26925. },
  26926. _removeTooltip: function (t) {
  26927. t.remove(), delete this.tooltips[t.attr("id")]
  26928. },
  26929. _appendTo: function (t) {
  26930. var e = t.closest(".ui-front, dialog");
  26931. return e.length || (e = this.document[0].body), e
  26932. },
  26933. _destroy: function () {
  26934. var s = this;
  26935. S.each(this.tooltips, function (t, e) {
  26936. var i = S.Event("blur"),
  26937. n = e.element;
  26938. i.target = i.currentTarget = n[0], s.close(i, !0), S("#" + t).remove(), n.data("ui-tooltip-title") && (n.attr("title") || n.attr("title", n.data("ui-tooltip-title")), n.removeData("ui-tooltip-title"))
  26939. }), this.liveRegion.remove()
  26940. }
  26941. }), !1 !== S.uiBackCompat && S.widget("ui.tooltip", S.ui.tooltip, {
  26942. options: {
  26943. tooltipClass: null
  26944. },
  26945. _tooltip: function () {
  26946. var t = this._superApply(arguments);
  26947. return this.options.tooltipClass && t.tooltip.addClass(this.options.tooltipClass), t
  26948. }
  26949. }), S.ui.tooltip
  26950. }),
  26951. function (t, e) {
  26952. "object" == ("undefined" == typeof exports ? "undefined" : _typeof(exports)) && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).bootstrap = e()
  26953. }(void 0, function () {
  26954. function p(t) {
  26955. for (; t += Math.floor(1e6 * Math.random()), document.getElementById(t););
  26956. return t
  26957. }
  26958. function i(t) {
  26959. var e = t.getAttribute("data-bs-target");
  26960. if (!e || "#" === e) {
  26961. var i = t.getAttribute("href");
  26962. if (!i || !i.includes("#") && !i.startsWith(".")) return null;
  26963. i.includes("#") && !i.startsWith("#") && (i = "#" + i.split("#")[1]), e = i && "#" !== i ? i.trim() : null
  26964. }
  26965. return e
  26966. }
  26967. function h(t) {
  26968. var e = i(t);
  26969. return e && document.querySelector(e) ? e : null
  26970. }
  26971. function a(t) {
  26972. var e = i(t);
  26973. return e ? document.querySelector(e) : null
  26974. }
  26975. function e(t) {
  26976. t.dispatchEvent(new Event("transitionend"))
  26977. }
  26978. function c(t) {
  26979. return !(!t || "object" != _typeof(t)) && (void 0 !== t.jquery && (t = t[0]), void 0 !== t.nodeType)
  26980. }
  26981. function r(t) {
  26982. return c(t) ? t.jquery ? t[0] : t : "string" == typeof t && 0 < t.length ? y(t) : null
  26983. }
  26984. function d(o, r, a) {
  26985. Object.keys(a).forEach(function (t) {
  26986. var e, i = a[t],
  26987. n = r[t],
  26988. s = n && c(n) ? "element" : null == (e = n) ? "" + e : {}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase();
  26989. if (!new RegExp(i).test(s)) throw new TypeError("".concat(o.toUpperCase(), ': Option "').concat(t, '" provided type "').concat(s, '" but expected type "').concat(i, '".'))
  26990. })
  26991. }
  26992. function s(t) {
  26993. return !(!c(t) || 0 === t.getClientRects().length) && "visible" === getComputedStyle(t).getPropertyValue("visibility")
  26994. }
  26995. function u(t) {
  26996. return !t || t.nodeType !== Node.ELEMENT_NODE || !!t.classList.contains("disabled") || (void 0 !== t.disabled ? t.disabled : t.hasAttribute("disabled") && "false" !== t.getAttribute("disabled"))
  26997. }
  26998. function f() {}
  26999. function g(t) {
  27000. return t.offsetHeight
  27001. }
  27002. function m() {
  27003. var t = window.jQuery;
  27004. return t && !document.body.hasAttribute("data-bs-no-jquery") ? t : null
  27005. }
  27006. function l() {
  27007. return "rtl" === document.documentElement.dir
  27008. }
  27009. function t(n) {
  27010. var t;
  27011. t = function () {
  27012. var t = m();
  27013. if (t) {
  27014. var e = n.NAME,
  27015. i = t.fn[e];
  27016. t.fn[e] = n.jQueryInterface, t.fn[e].Constructor = n, t.fn[e].noConflict = function () {
  27017. return t.fn[e] = i, n.jQueryInterface
  27018. }
  27019. }
  27020. }, "loading" === document.readyState ? (C.length || document.addEventListener("DOMContentLoaded", function () {
  27021. C.forEach(function (t) {
  27022. return t()
  27023. })
  27024. }), C.push(t)) : t()
  27025. }
  27026. function o(t) {
  27027. "function" == typeof t && t()
  27028. }
  27029. function n(i, n) {
  27030. if (!(2 < arguments.length && void 0 !== arguments[2]) || arguments[2]) {
  27031. var t = function (t) {
  27032. if (!t) return 0;
  27033. var e = window.getComputedStyle(t),
  27034. i = e.transitionDuration,
  27035. n = e.transitionDelay,
  27036. s = Number.parseFloat(i),
  27037. o = Number.parseFloat(n);
  27038. return s || o ? (i = i.split(",")[0], n = n.split(",")[0], 1e3 * (Number.parseFloat(i) + Number.parseFloat(n))) : 0
  27039. }(n) + 5,
  27040. s = !1;
  27041. n.addEventListener("transitionend", function t(e) {
  27042. e.target === n && (s = !0, n.removeEventListener("transitionend", t), o(i))
  27043. }), setTimeout(function () {
  27044. s || e(n)
  27045. }, t)
  27046. } else o(i)
  27047. }
  27048. function v(t, e, i, n) {
  27049. var s = t.indexOf(e);
  27050. if (-1 === s) return t[!i && n ? t.length - 1 : 0];
  27051. var o = t.length;
  27052. return s += i ? 1 : -1, n && (s = (s + o) % o), t[Math.max(0, Math.min(s, o - 1))]
  27053. }
  27054. var _ = function (t) {
  27055. var e, i = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : document.documentElement;
  27056. return (e = []).concat.apply(e, _toConsumableArray(Element.prototype.querySelectorAll.call(i, t)))
  27057. },
  27058. y = function (t) {
  27059. var e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : document.documentElement;
  27060. return Element.prototype.querySelector.call(e, t)
  27061. },
  27062. b = function (t, e) {
  27063. var i;
  27064. return (i = []).concat.apply(i, _toConsumableArray(t.children)).filter(function (t) {
  27065. return t.matches(e)
  27066. })
  27067. },
  27068. w = function (t, e) {
  27069. for (var i = [], n = t.parentNode; n && n.nodeType === Node.ELEMENT_NODE && 3 !== n.nodeType;) n.matches(e) && i.push(n), n = n.parentNode;
  27070. return i
  27071. },
  27072. k = function (t, e) {
  27073. for (var i = t.previousElementSibling; i;) {
  27074. if (i.matches(e)) return [i];
  27075. i = i.previousElementSibling
  27076. }
  27077. return []
  27078. },
  27079. x = function (t, e) {
  27080. for (var i = t.nextElementSibling; i;) {
  27081. if (i.matches(e)) return [i];
  27082. i = i.nextElementSibling
  27083. }
  27084. return []
  27085. },
  27086. C = [],
  27087. T = /[^.]*(?=\..*)\.|.*/,
  27088. S = /\..*/,
  27089. D = /::\d+$/,
  27090. A = {},
  27091. E = 1,
  27092. P = {
  27093. mouseenter: "mouseover",
  27094. mouseleave: "mouseout"
  27095. },
  27096. I = /^(mouseenter|mouseleave)/i,
  27097. O = new Set(["click", "dblclick", "mouseup", "mousedown", "contextmenu", "mousewheel", "DOMMouseScroll", "mouseover", "mouseout", "mousemove", "selectstart", "selectend", "keydown", "keypress", "keyup", "orientationchange", "touchstart", "touchmove", "touchend", "touchcancel", "pointerdown", "pointermove", "pointerup", "pointerleave", "pointercancel", "gesturestart", "gesturechange", "gestureend", "focus", "blur", "change", "reset", "select", "submit", "focusin", "focusout", "load", "unload", "beforeunload", "resize", "move", "DOMContentLoaded", "readystatechange", "error", "abort", "scroll"]);
  27098. function M(t, e) {
  27099. return e && "".concat(e, "::").concat(E++) || t.uidEvent || E++
  27100. }
  27101. function N(t) {
  27102. var e = M(t);
  27103. return t.uidEvent = e, A[e] = A[e] || {}, A[e]
  27104. }
  27105. function L(t, e) {
  27106. for (var i = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null, n = Object.keys(t), s = 0, o = n.length; s < o; s++) {
  27107. var r = t[n[s]];
  27108. if (r.originalHandler === e && r.delegationSelector === i) return r
  27109. }
  27110. return null
  27111. }
  27112. function H(t, e, i) {
  27113. var n = "string" == typeof e,
  27114. s = n ? i : e,
  27115. o = W(t);
  27116. return O.has(o) || (o = t), [n, s, o]
  27117. }
  27118. function j(t, e, i, n, s) {
  27119. if ("string" == typeof e && t) {
  27120. if (i || (i = n, n = null), I.test(e)) {
  27121. var o = function (e) {
  27122. return function (t) {
  27123. if (!t.relatedTarget || t.relatedTarget !== t.delegateTarget && !t.delegateTarget.contains(t.relatedTarget)) return e.call(this, t)
  27124. }
  27125. };
  27126. n ? n = o(n) : i = o(i)
  27127. }
  27128. var r = H(e, i, n),
  27129. a = _slicedToArray(r, 3),
  27130. l = a[0],
  27131. c = a[1],
  27132. u = a[2],
  27133. h = N(t),
  27134. d = h[u] || (h[u] = {}),
  27135. p = L(d, c, l ? i : null);
  27136. if (p) p.oneOff = p.oneOff && s;
  27137. else {
  27138. var f, g, m, v, _, y = M(c, e.replace(T, "")),
  27139. b = l ? (m = t, v = i, _ = n, function t(e) {
  27140. for (var i = m.querySelectorAll(v), n = e.target; n && n !== this; n = n.parentNode)
  27141. for (var s = i.length; s--;)
  27142. if (i[s] === n) return e.delegateTarget = n, t.oneOff && $.off(m, e.type, v, _), _.apply(n, [e]);
  27143. return null
  27144. }) : (f = t, g = i, function t(e) {
  27145. return e.delegateTarget = f, t.oneOff && $.off(f, e.type, g), g.apply(f, [e])
  27146. });
  27147. b.delegationSelector = l ? i : null, b.originalHandler = c, b.oneOff = s, d[b.uidEvent = y] = b, t.addEventListener(u, b, l)
  27148. }
  27149. }
  27150. }
  27151. function z(t, e, i, n, s) {
  27152. var o = L(e[i], n, s);
  27153. o && (t.removeEventListener(i, o, Boolean(s)), delete e[i][o.uidEvent])
  27154. }
  27155. function W(t) {
  27156. return t = t.replace(S, ""), P[t] || t
  27157. }
  27158. var $ = {
  27159. on: function (t, e, i, n) {
  27160. j(t, e, i, n, !1)
  27161. },
  27162. one: function (t, e, i, n) {
  27163. j(t, e, i, n, !0)
  27164. },
  27165. off: function (a, l, t, e) {
  27166. if ("string" == typeof l && a) {
  27167. var i = H(l, t, e),
  27168. n = _slicedToArray(i, 3),
  27169. s = n[0],
  27170. o = n[1],
  27171. r = n[2],
  27172. c = r !== l,
  27173. u = N(a),
  27174. h = l.startsWith(".");
  27175. if (void 0 === o) {
  27176. h && Object.keys(u).forEach(function (t) {
  27177. var i, n, s, o, r;
  27178. i = a, n = u, s = t, o = l.slice(1), r = n[s] || {}, Object.keys(r).forEach(function (t) {
  27179. if (t.includes(o)) {
  27180. var e = r[t];
  27181. z(i, n, s, e.originalHandler, e.delegationSelector)
  27182. }
  27183. })
  27184. });
  27185. var d = u[r] || {};
  27186. Object.keys(d).forEach(function (t) {
  27187. var e = t.replace(D, "");
  27188. if (!c || l.includes(e)) {
  27189. var i = d[t];
  27190. z(a, u, r, i.originalHandler, i.delegationSelector)
  27191. }
  27192. })
  27193. } else {
  27194. if (!u || !u[r]) return;
  27195. z(a, u, r, o, s ? t : null)
  27196. }
  27197. }
  27198. },
  27199. trigger: function (t, e, i) {
  27200. if ("string" != typeof e || !t) return null;
  27201. var n, s = m(),
  27202. o = W(e),
  27203. r = e !== o,
  27204. a = O.has(o),
  27205. l = !0,
  27206. c = !0,
  27207. u = !1,
  27208. h = null;
  27209. return r && s && (n = s.Event(e, i), s(t).trigger(n), l = !n.isPropagationStopped(), c = !n.isImmediatePropagationStopped(), u = n.isDefaultPrevented()), a ? (h = document.createEvent("HTMLEvents")).initEvent(o, l, !0) : h = new CustomEvent(e, {
  27210. bubbles: l,
  27211. cancelable: !0
  27212. }), void 0 !== i && Object.keys(i).forEach(function (t) {
  27213. Object.defineProperty(h, t, {
  27214. get: function () {
  27215. return i[t]
  27216. }
  27217. })
  27218. }), u && h.preventDefault(), c && t.dispatchEvent(h), h.defaultPrevented && void 0 !== n && n.preventDefault(), h
  27219. }
  27220. },
  27221. R = new Map,
  27222. F = function (t, e, i) {
  27223. R.has(t) || R.set(t, new Map);
  27224. var n = R.get(t);
  27225. n.has(e) || 0 === n.size ? n.set(e, i) : console.error("Bootstrap doesn't allow more than one instance per element. Bound instance: ".concat(Array.from(n.keys())[0], "."))
  27226. },
  27227. q = function (t, e) {
  27228. return R.has(t) && R.get(t).get(e) || null
  27229. },
  27230. B = function (t, e) {
  27231. if (R.has(t)) {
  27232. var i = R.get(t);
  27233. i.delete(e), 0 === i.size && R.delete(t)
  27234. }
  27235. },
  27236. U = function () {
  27237. function e(t) {
  27238. _classCallCheck(this, e), (t = r(t)) && (this._element = t, F(this._element, this.constructor.DATA_KEY, this))
  27239. }
  27240. return _createClass(e, [{
  27241. key: "dispose",
  27242. value: function () {
  27243. var e = this;
  27244. B(this._element, this.constructor.DATA_KEY), $.off(this._element, this.constructor.EVENT_KEY), Object.getOwnPropertyNames(this).forEach(function (t) {
  27245. e[t] = null
  27246. })
  27247. }
  27248. }, {
  27249. key: "_queueCallback",
  27250. value: function (t, e) {
  27251. var i = !(2 < arguments.length && void 0 !== arguments[2]) || arguments[2];
  27252. n(t, e, i)
  27253. }
  27254. }], [{
  27255. key: "getInstance",
  27256. value: function (t) {
  27257. return q(t, this.DATA_KEY)
  27258. }
  27259. }, {
  27260. key: "getOrCreateInstance",
  27261. value: function (t) {
  27262. var e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {};
  27263. return this.getInstance(t) || new this(t, "object" == _typeof(e) ? e : null)
  27264. }
  27265. }, {
  27266. key: "VERSION",
  27267. get: function () {
  27268. return "5.0.2"
  27269. }
  27270. }, {
  27271. key: "NAME",
  27272. get: function () {
  27273. throw new Error('You have to implement the static method "NAME", for each component!')
  27274. }
  27275. }, {
  27276. key: "DATA_KEY",
  27277. get: function () {
  27278. return "bs." + this.NAME
  27279. }
  27280. }, {
  27281. key: "EVENT_KEY",
  27282. get: function () {
  27283. return "." + this.DATA_KEY
  27284. }
  27285. }]), e
  27286. }(),
  27287. Y = function (t) {
  27288. _inherits(i, U);
  27289. var e = _createSuper(i);
  27290. function i() {
  27291. return _classCallCheck(this, i), e.apply(this, arguments)
  27292. }
  27293. return _createClass(i, [{
  27294. key: "close",
  27295. value: function (t) {
  27296. var e = t ? this._getRootElement(t) : this._element,
  27297. i = this._triggerCloseEvent(e);
  27298. null === i || i.defaultPrevented || this._removeElement(e)
  27299. }
  27300. }, {
  27301. key: "_getRootElement",
  27302. value: function (t) {
  27303. return a(t) || t.closest(".alert")
  27304. }
  27305. }, {
  27306. key: "_triggerCloseEvent",
  27307. value: function (t) {
  27308. return $.trigger(t, "close.bs.alert")
  27309. }
  27310. }, {
  27311. key: "_removeElement",
  27312. value: function (t) {
  27313. var e = this;
  27314. t.classList.remove("show");
  27315. var i = t.classList.contains("fade");
  27316. this._queueCallback(function () {
  27317. return e._destroyElement(t)
  27318. }, t, i)
  27319. }
  27320. }, {
  27321. key: "_destroyElement",
  27322. value: function (t) {
  27323. t.remove(), $.trigger(t, "closed.bs.alert")
  27324. }
  27325. }], [{
  27326. key: "jQueryInterface",
  27327. value: function (e) {
  27328. return this.each(function () {
  27329. var t = i.getOrCreateInstance(this);
  27330. "close" === e && t[e](this)
  27331. })
  27332. }
  27333. }, {
  27334. key: "handleDismiss",
  27335. value: function (e) {
  27336. return function (t) {
  27337. t && t.preventDefault(), e.close(this)
  27338. }
  27339. }
  27340. }, {
  27341. key: "NAME",
  27342. get: function () {
  27343. return "alert"
  27344. }
  27345. }]), i
  27346. }();
  27347. $.on(document, "click.bs.alert.data-api", '[data-bs-dismiss="alert"]', Y.handleDismiss(new Y)), t(Y);
  27348. var V = function (t) {
  27349. _inherits(i, U);
  27350. var e = _createSuper(i);
  27351. function i() {
  27352. return _classCallCheck(this, i), e.apply(this, arguments)
  27353. }
  27354. return _createClass(i, [{
  27355. key: "toggle",
  27356. value: function () {
  27357. this._element.setAttribute("aria-pressed", this._element.classList.toggle("active"))
  27358. }
  27359. }], [{
  27360. key: "jQueryInterface",
  27361. value: function (e) {
  27362. return this.each(function () {
  27363. var t = i.getOrCreateInstance(this);
  27364. "toggle" === e && t[e]()
  27365. })
  27366. }
  27367. }, {
  27368. key: "NAME",
  27369. get: function () {
  27370. return "button"
  27371. }
  27372. }]), i
  27373. }();
  27374. function K(t) {
  27375. return "true" === t || "false" !== t && (t === Number(t).toString() ? Number(t) : "" === t || "null" === t ? null : t)
  27376. }
  27377. function X(t) {
  27378. return t.replace(/[A-Z]/g, function (t) {
  27379. return "-" + t.toLowerCase()
  27380. })
  27381. }
  27382. $.on(document, "click.bs.button.data-api", '[data-bs-toggle="button"]', function (t) {
  27383. t.preventDefault();
  27384. var e = t.target.closest('[data-bs-toggle="button"]');
  27385. V.getOrCreateInstance(e).toggle()
  27386. }), t(V);
  27387. var Q = {
  27388. setDataAttribute: function (t, e, i) {
  27389. t.setAttribute("data-bs-" + X(e), i)
  27390. },
  27391. removeDataAttribute: function (t, e) {
  27392. t.removeAttribute("data-bs-" + X(e))
  27393. },
  27394. getDataAttributes: function (i) {
  27395. if (!i) return {};
  27396. var n = {};
  27397. return Object.keys(i.dataset).filter(function (t) {
  27398. return t.startsWith("bs")
  27399. }).forEach(function (t) {
  27400. var e = t.replace(/^bs/, "");
  27401. e = e.charAt(0).toLowerCase() + e.slice(1, e.length), n[e] = K(i.dataset[t])
  27402. }), n
  27403. },
  27404. getDataAttribute: function (t, e) {
  27405. return K(t.getAttribute("data-bs-" + X(e)))
  27406. },
  27407. offset: function (t) {
  27408. var e = t.getBoundingClientRect();
  27409. return {
  27410. top: e.top + document.body.scrollTop,
  27411. left: e.left + document.body.scrollLeft
  27412. }
  27413. },
  27414. position: function (t) {
  27415. return {
  27416. top: t.offsetTop,
  27417. left: t.offsetLeft
  27418. }
  27419. }
  27420. },
  27421. G = {
  27422. interval: 5e3,
  27423. keyboard: !0,
  27424. slide: !1,
  27425. pause: "hover",
  27426. wrap: !0,
  27427. touch: !0
  27428. },
  27429. J = {
  27430. interval: "(number|boolean)",
  27431. keyboard: "boolean",
  27432. slide: "(boolean|string)",
  27433. pause: "(string|boolean)",
  27434. wrap: "boolean",
  27435. touch: "boolean"
  27436. },
  27437. Z = "next",
  27438. tt = "prev",
  27439. et = "left",
  27440. it = "right",
  27441. nt = {
  27442. ArrowLeft: it,
  27443. ArrowRight: et
  27444. },
  27445. st = function (t) {
  27446. _inherits(o, U);
  27447. var n = _createSuper(o);
  27448. function o(t, e) {
  27449. var i;
  27450. return _classCallCheck(this, o), (i = n.call(this, t))._items = null, i._interval = null, i._activeElement = null, i._isPaused = !1, i._isSliding = !1, i.touchTimeout = null, i.touchStartX = 0, i.touchDeltaX = 0, i._config = i._getConfig(e), i._indicatorsElement = y(".carousel-indicators", i._element), i._touchSupported = "ontouchstart" in document.documentElement || 0 < navigator.maxTouchPoints, i._pointerEvent = Boolean(window.PointerEvent), i._addEventListeners(), i
  27451. }
  27452. return _createClass(o, [{
  27453. key: "next",
  27454. value: function () {
  27455. this._slide(Z)
  27456. }
  27457. }, {
  27458. key: "nextWhenVisible",
  27459. value: function () {
  27460. !document.hidden && s(this._element) && this.next()
  27461. }
  27462. }, {
  27463. key: "prev",
  27464. value: function () {
  27465. this._slide(tt)
  27466. }
  27467. }, {
  27468. key: "pause",
  27469. value: function (t) {
  27470. t || (this._isPaused = !0), y(".carousel-item-next, .carousel-item-prev", this._element) && (e(this._element), this.cycle(!0)), clearInterval(this._interval), this._interval = null
  27471. }
  27472. }, {
  27473. key: "cycle",
  27474. value: function (t) {
  27475. t || (this._isPaused = !1), this._interval && (clearInterval(this._interval), this._interval = null), this._config && this._config.interval && !this._isPaused && (this._updateInterval(), this._interval = setInterval((document.visibilityState ? this.nextWhenVisible : this.next).bind(this), this._config.interval))
  27476. }
  27477. }, {
  27478. key: "to",
  27479. value: function (t) {
  27480. var e = this;
  27481. this._activeElement = y(".active.carousel-item", this._element);
  27482. var i = this._getItemIndex(this._activeElement);
  27483. if (!(t > this._items.length - 1 || t < 0))
  27484. if (this._isSliding) $.one(this._element, "slid.bs.carousel", function () {
  27485. return e.to(t)
  27486. });
  27487. else {
  27488. if (i === t) return this.pause(), void this.cycle();
  27489. var n = i < t ? Z : tt;
  27490. this._slide(n, this._items[t])
  27491. }
  27492. }
  27493. }, {
  27494. key: "_getConfig",
  27495. value: function (t) {
  27496. return t = _objectSpread(_objectSpread(_objectSpread({}, G), Q.getDataAttributes(this._element)), "object" == _typeof(t) ? t : {}), d("carousel", t, J), t
  27497. }
  27498. }, {
  27499. key: "_handleSwipe",
  27500. value: function () {
  27501. var t = Math.abs(this.touchDeltaX);
  27502. if (!(t <= 40)) {
  27503. var e = t / this.touchDeltaX;
  27504. this.touchDeltaX = 0, e && this._slide(0 < e ? it : et)
  27505. }
  27506. }
  27507. }, {
  27508. key: "_addEventListeners",
  27509. value: function () {
  27510. var e = this;
  27511. this._config.keyboard && $.on(this._element, "keydown.bs.carousel", function (t) {
  27512. return e._keydown(t)
  27513. }), "hover" === this._config.pause && ($.on(this._element, "mouseenter.bs.carousel", function (t) {
  27514. return e.pause(t)
  27515. }), $.on(this._element, "mouseleave.bs.carousel", function (t) {
  27516. return e.cycle(t)
  27517. })), this._config.touch && this._touchSupported && this._addTouchEventListeners()
  27518. }
  27519. }, {
  27520. key: "_addTouchEventListeners",
  27521. value: function () {
  27522. function e(t) {
  27523. !n._pointerEvent || "pen" !== t.pointerType && "touch" !== t.pointerType ? n._pointerEvent || (n.touchStartX = t.touches[0].clientX) : n.touchStartX = t.clientX
  27524. }
  27525. function i(t) {
  27526. !n._pointerEvent || "pen" !== t.pointerType && "touch" !== t.pointerType || (n.touchDeltaX = t.clientX - n.touchStartX), n._handleSwipe(), "hover" === n._config.pause && (n.pause(), n.touchTimeout && clearTimeout(n.touchTimeout), n.touchTimeout = setTimeout(function (t) {
  27527. return n.cycle(t)
  27528. }, 500 + n._config.interval))
  27529. }
  27530. var n = this;
  27531. _(".carousel-item img", this._element).forEach(function (t) {
  27532. $.on(t, "dragstart.bs.carousel", function (t) {
  27533. return t.preventDefault()
  27534. })
  27535. }), this._pointerEvent ? ($.on(this._element, "pointerdown.bs.carousel", function (t) {
  27536. return e(t)
  27537. }), $.on(this._element, "pointerup.bs.carousel", function (t) {
  27538. return i(t)
  27539. }), this._element.classList.add("pointer-event")) : ($.on(this._element, "touchstart.bs.carousel", function (t) {
  27540. return e(t)
  27541. }), $.on(this._element, "touchmove.bs.carousel", function (t) {
  27542. return function (t) {
  27543. n.touchDeltaX = t.touches && 1 < t.touches.length ? 0 : t.touches[0].clientX - n.touchStartX
  27544. }(t)
  27545. }), $.on(this._element, "touchend.bs.carousel", function (t) {
  27546. return i(t)
  27547. }))
  27548. }
  27549. }, {
  27550. key: "_keydown",
  27551. value: function (t) {
  27552. if (!/input|textarea/i.test(t.target.tagName)) {
  27553. var e = nt[t.key];
  27554. e && (t.preventDefault(), this._slide(e))
  27555. }
  27556. }
  27557. }, {
  27558. key: "_getItemIndex",
  27559. value: function (t) {
  27560. return this._items = t && t.parentNode ? _(".carousel-item", t.parentNode) : [], this._items.indexOf(t)
  27561. }
  27562. }, {
  27563. key: "_getItemByOrder",
  27564. value: function (t, e) {
  27565. var i = t === Z;
  27566. return v(this._items, e, i, this._config.wrap)
  27567. }
  27568. }, {
  27569. key: "_triggerSlideEvent",
  27570. value: function (t, e) {
  27571. var i = this._getItemIndex(t),
  27572. n = this._getItemIndex(y(".active.carousel-item", this._element));
  27573. return $.trigger(this._element, "slide.bs.carousel", {
  27574. relatedTarget: t,
  27575. direction: e,
  27576. from: n,
  27577. to: i
  27578. })
  27579. }
  27580. }, {
  27581. key: "_setActiveIndicatorElement",
  27582. value: function (t) {
  27583. if (this._indicatorsElement) {
  27584. var e = y(".active", this._indicatorsElement);
  27585. e.classList.remove("active"), e.removeAttribute("aria-current");
  27586. for (var i = _("[data-bs-target]", this._indicatorsElement), n = 0; n < i.length; n++)
  27587. if (Number.parseInt(i[n].getAttribute("data-bs-slide-to"), 10) === this._getItemIndex(t)) {
  27588. i[n].classList.add("active"), i[n].setAttribute("aria-current", "true");
  27589. break
  27590. }
  27591. }
  27592. }
  27593. }, {
  27594. key: "_updateInterval",
  27595. value: function () {
  27596. var t = this._activeElement || y(".active.carousel-item", this._element);
  27597. if (t) {
  27598. var e = Number.parseInt(t.getAttribute("data-bs-interval"), 10);
  27599. e ? (this._config.defaultInterval = this._config.defaultInterval || this._config.interval, this._config.interval = e) : this._config.interval = this._config.defaultInterval || this._config.interval
  27600. }
  27601. }
  27602. }, {
  27603. key: "_slide",
  27604. value: function (t, e) {
  27605. var i = this,
  27606. n = this._directionToOrder(t),
  27607. s = y(".active.carousel-item", this._element),
  27608. o = this._getItemIndex(s),
  27609. r = e || this._getItemByOrder(n, s),
  27610. a = this._getItemIndex(r),
  27611. l = Boolean(this._interval),
  27612. c = n === Z,
  27613. u = c ? "carousel-item-start" : "carousel-item-end",
  27614. h = c ? "carousel-item-next" : "carousel-item-prev",
  27615. d = this._orderToDirection(n);
  27616. if (r && r.classList.contains("active")) this._isSliding = !1;
  27617. else if (!this._isSliding && !this._triggerSlideEvent(r, d).defaultPrevented && s && r) {
  27618. this._isSliding = !0, l && this.pause(), this._setActiveIndicatorElement(r), this._activeElement = r;
  27619. var p = function () {
  27620. $.trigger(i._element, "slid.bs.carousel", {
  27621. relatedTarget: r,
  27622. direction: d,
  27623. from: o,
  27624. to: a
  27625. })
  27626. };
  27627. if (this._element.classList.contains("slide")) {
  27628. r.classList.add(h), g(r), s.classList.add(u), r.classList.add(u);
  27629. this._queueCallback(function () {
  27630. r.classList.remove(u, h), r.classList.add("active"), s.classList.remove("active", h, u), i._isSliding = !1, setTimeout(p, 0)
  27631. }, s, !0)
  27632. } else s.classList.remove("active"), r.classList.add("active"), this._isSliding = !1, p();
  27633. l && this.cycle()
  27634. }
  27635. }
  27636. }, {
  27637. key: "_directionToOrder",
  27638. value: function (t) {
  27639. return [it, et].includes(t) ? l() ? t === et ? tt : Z : t === et ? Z : tt : t
  27640. }
  27641. }, {
  27642. key: "_orderToDirection",
  27643. value: function (t) {
  27644. return [Z, tt].includes(t) ? l() ? t === tt ? et : it : t === tt ? it : et : t
  27645. }
  27646. }], [{
  27647. key: "carouselInterface",
  27648. value: function (t, e) {
  27649. var i = o.getOrCreateInstance(t, e),
  27650. n = i._config;
  27651. "object" == _typeof(e) && (n = _objectSpread(_objectSpread({}, n), e));
  27652. var s = "string" == typeof e ? e : n.slide;
  27653. if ("number" == typeof e) i.to(e);
  27654. else if ("string" == typeof s) {
  27655. if (void 0 === i[s]) throw new TypeError('No method named "'.concat(s, '"'));
  27656. i[s]()
  27657. } else n.interval && n.ride && (i.pause(), i.cycle())
  27658. }
  27659. }, {
  27660. key: "jQueryInterface",
  27661. value: function (t) {
  27662. return this.each(function () {
  27663. o.carouselInterface(this, t)
  27664. })
  27665. }
  27666. }, {
  27667. key: "dataApiClickHandler",
  27668. value: function (t) {
  27669. var e = a(this);
  27670. if (e && e.classList.contains("carousel")) {
  27671. var i = _objectSpread(_objectSpread({}, Q.getDataAttributes(e)), Q.getDataAttributes(this)),
  27672. n = this.getAttribute("data-bs-slide-to");
  27673. n && (i.interval = !1), o.carouselInterface(e, i), n && o.getInstance(e).to(n), t.preventDefault()
  27674. }
  27675. }
  27676. }, {
  27677. key: "Default",
  27678. get: function () {
  27679. return G
  27680. }
  27681. }, {
  27682. key: "NAME",
  27683. get: function () {
  27684. return "carousel"
  27685. }
  27686. }]), o
  27687. }();
  27688. $.on(document, "click.bs.carousel.data-api", "[data-bs-slide], [data-bs-slide-to]", st.dataApiClickHandler), $.on(window, "load.bs.carousel.data-api", function () {
  27689. for (var t = _('[data-bs-ride="carousel"]'), e = 0, i = t.length; e < i; e++) st.carouselInterface(t[e], st.getInstance(t[e]))
  27690. }), t(st);
  27691. var ot = {
  27692. toggle: !0,
  27693. parent: ""
  27694. },
  27695. rt = {
  27696. toggle: "boolean",
  27697. parent: "(string|element)"
  27698. },
  27699. at = function (t) {
  27700. _inherits(u, U);
  27701. var c = _createSuper(u);
  27702. function u(t, e) {
  27703. var i;
  27704. _classCallCheck(this, u), (i = c.call(this, t))._isTransitioning = !1, i._config = i._getConfig(e), i._triggerArray = _('[data-bs-toggle="collapse"][href="#'.concat(i._element.id, '"],[data-bs-toggle="collapse"][data-bs-target="#').concat(i._element.id, '"]'));
  27705. for (var n = _('[data-bs-toggle="collapse"]'), s = 0, o = n.length; s < o; s++) {
  27706. var r = n[s],
  27707. a = h(r),
  27708. l = _(a).filter(function (t) {
  27709. return t === i._element
  27710. });
  27711. null !== a && l.length && (i._selector = a, i._triggerArray.push(r))
  27712. }
  27713. return i._parent = i._config.parent ? i._getParent() : null, i._config.parent || i._addAriaAndCollapsedClass(i._element, i._triggerArray), i._config.toggle && i.toggle(), i
  27714. }
  27715. return _createClass(u, [{
  27716. key: "toggle",
  27717. value: function () {
  27718. this._element.classList.contains("show") ? this.hide() : this.show()
  27719. }
  27720. }, {
  27721. key: "show",
  27722. value: function () {
  27723. var e = this;
  27724. if (!this._isTransitioning && !this._element.classList.contains("show")) {
  27725. var t, i;
  27726. this._parent && (0 === (t = _(".show, .collapsing", this._parent).filter(function (t) {
  27727. return "string" == typeof e._config.parent ? t.getAttribute("data-bs-parent") === e._config.parent : t.classList.contains("collapse")
  27728. })).length && (t = null));
  27729. var n = y(this._selector);
  27730. if (t) {
  27731. var s = t.find(function (t) {
  27732. return n !== t
  27733. });
  27734. if ((i = s ? u.getInstance(s) : null) && i._isTransitioning) return
  27735. }
  27736. if (!$.trigger(this._element, "show.bs.collapse").defaultPrevented) {
  27737. t && t.forEach(function (t) {
  27738. n !== t && u.collapseInterface(t, "hide"), i || F(t, "bs.collapse", null)
  27739. });
  27740. var o = this._getDimension();
  27741. this._element.classList.remove("collapse"), this._element.classList.add("collapsing"), this._element.style[o] = 0, this._triggerArray.length && this._triggerArray.forEach(function (t) {
  27742. t.classList.remove("collapsed"), t.setAttribute("aria-expanded", !0)
  27743. }), this.setTransitioning(!0);
  27744. var r = "scroll" + (o[0].toUpperCase() + o.slice(1));
  27745. this._queueCallback(function () {
  27746. e._element.classList.remove("collapsing"), e._element.classList.add("collapse", "show"), e._element.style[o] = "", e.setTransitioning(!1), $.trigger(e._element, "shown.bs.collapse")
  27747. }, this._element, !0), this._element.style[o] = this._element[r] + "px"
  27748. }
  27749. }
  27750. }
  27751. }, {
  27752. key: "hide",
  27753. value: function () {
  27754. var t = this;
  27755. if (!this._isTransitioning && this._element.classList.contains("show") && !$.trigger(this._element, "hide.bs.collapse").defaultPrevented) {
  27756. var e = this._getDimension();
  27757. this._element.style[e] = this._element.getBoundingClientRect()[e] + "px", g(this._element), this._element.classList.add("collapsing"), this._element.classList.remove("collapse", "show");
  27758. var i = this._triggerArray.length;
  27759. if (0 < i)
  27760. for (var n = 0; n < i; n++) {
  27761. var s = this._triggerArray[n],
  27762. o = a(s);
  27763. o && !o.classList.contains("show") && (s.classList.add("collapsed"), s.setAttribute("aria-expanded", !1))
  27764. }
  27765. this.setTransitioning(!0), this._element.style[e] = "", this._queueCallback(function () {
  27766. t.setTransitioning(!1), t._element.classList.remove("collapsing"), t._element.classList.add("collapse"), $.trigger(t._element, "hidden.bs.collapse")
  27767. }, this._element, !0)
  27768. }
  27769. }
  27770. }, {
  27771. key: "setTransitioning",
  27772. value: function (t) {
  27773. this._isTransitioning = t
  27774. }
  27775. }, {
  27776. key: "_getConfig",
  27777. value: function (t) {
  27778. return (t = _objectSpread(_objectSpread({}, ot), t)).toggle = Boolean(t.toggle), d("collapse", t, rt), t
  27779. }
  27780. }, {
  27781. key: "_getDimension",
  27782. value: function () {
  27783. return this._element.classList.contains("width") ? "width" : "height"
  27784. }
  27785. }, {
  27786. key: "_getParent",
  27787. value: function () {
  27788. var i = this,
  27789. t = this._config.parent;
  27790. t = r(t);
  27791. var e = '[data-bs-toggle="collapse"][data-bs-parent="'.concat(t, '"]');
  27792. return _(e, t).forEach(function (t) {
  27793. var e = a(t);
  27794. i._addAriaAndCollapsedClass(e, [t])
  27795. }), t
  27796. }
  27797. }, {
  27798. key: "_addAriaAndCollapsedClass",
  27799. value: function (t, e) {
  27800. if (t && e.length) {
  27801. var i = t.classList.contains("show");
  27802. e.forEach(function (t) {
  27803. i ? t.classList.remove("collapsed") : t.classList.add("collapsed"), t.setAttribute("aria-expanded", i)
  27804. })
  27805. }
  27806. }
  27807. }], [{
  27808. key: "collapseInterface",
  27809. value: function (t, e) {
  27810. var i = u.getInstance(t),
  27811. n = _objectSpread(_objectSpread(_objectSpread({}, ot), Q.getDataAttributes(t)), "object" == _typeof(e) && e ? e : {});
  27812. if (!i && n.toggle && "string" == typeof e && /show|hide/.test(e) && (n.toggle = !1), i || (i = new u(t, n)), "string" == typeof e) {
  27813. if (void 0 === i[e]) throw new TypeError('No method named "'.concat(e, '"'));
  27814. i[e]()
  27815. }
  27816. }
  27817. }, {
  27818. key: "jQueryInterface",
  27819. value: function (t) {
  27820. return this.each(function () {
  27821. u.collapseInterface(this, t)
  27822. })
  27823. }
  27824. }, {
  27825. key: "Default",
  27826. get: function () {
  27827. return ot
  27828. }
  27829. }, {
  27830. key: "NAME",
  27831. get: function () {
  27832. return "collapse"
  27833. }
  27834. }]), u
  27835. }();
  27836. $.on(document, "click.bs.collapse.data-api", '[data-bs-toggle="collapse"]', function (t) {
  27837. ("A" === t.target.tagName || t.delegateTarget && "A" === t.delegateTarget.tagName) && t.preventDefault();
  27838. var n = Q.getDataAttributes(this),
  27839. e = h(this);
  27840. _(e).forEach(function (t) {
  27841. var e, i = at.getInstance(t);
  27842. e = i ? (null === i._parent && "string" == typeof n.parent && (i._config.parent = n.parent, i._parent = i._getParent()), "toggle") : n, at.collapseInterface(t, e)
  27843. })
  27844. }), t(at);
  27845. var lt = "top",
  27846. ct = "bottom",
  27847. ut = "right",
  27848. ht = "left",
  27849. dt = [lt, ct, ut, ht],
  27850. pt = dt.reduce(function (t, e) {
  27851. return t.concat([e + "-start", e + "-end"])
  27852. }, []),
  27853. ft = [].concat(dt, ["auto"]).reduce(function (t, e) {
  27854. return t.concat([e, e + "-start", e + "-end"])
  27855. }, []),
  27856. gt = ["beforeRead", "read", "afterRead", "beforeMain", "main", "afterMain", "beforeWrite", "write", "afterWrite"];
  27857. function mt(t) {
  27858. return t ? (t.nodeName || "").toLowerCase() : null
  27859. }
  27860. function vt(t) {
  27861. if (null == t) return window;
  27862. if ("[object Window]" === t.toString()) return t;
  27863. var e = t.ownerDocument;
  27864. return e && e.defaultView || window
  27865. }
  27866. function _t(t) {
  27867. return t instanceof vt(t).Element || t instanceof Element
  27868. }
  27869. function yt(t) {
  27870. return t instanceof vt(t).HTMLElement || t instanceof HTMLElement
  27871. }
  27872. function bt(t) {
  27873. return "undefined" != typeof ShadowRoot && (t instanceof vt(t).ShadowRoot || t instanceof ShadowRoot)
  27874. }
  27875. var wt = {
  27876. name: "applyStyles",
  27877. enabled: !0,
  27878. phase: "write",
  27879. fn: function (t) {
  27880. var s = t.state;
  27881. Object.keys(s.elements).forEach(function (t) {
  27882. var e = s.styles[t] || {},
  27883. i = s.attributes[t] || {},
  27884. n = s.elements[t];
  27885. yt(n) && mt(n) && (Object.assign(n.style, e), Object.keys(i).forEach(function (t) {
  27886. var e = i[t];
  27887. !1 === e ? n.removeAttribute(t) : n.setAttribute(t, !0 === e ? "" : e)
  27888. }))
  27889. })
  27890. },
  27891. effect: function (t) {
  27892. var s = t.state,
  27893. o = {
  27894. popper: {
  27895. position: s.options.strategy,
  27896. left: "0",
  27897. top: "0",
  27898. margin: "0"
  27899. },
  27900. arrow: {
  27901. position: "absolute"
  27902. },
  27903. reference: {}
  27904. };
  27905. return Object.assign(s.elements.popper.style, o.popper), s.styles = o, s.elements.arrow && Object.assign(s.elements.arrow.style, o.arrow),
  27906. function () {
  27907. Object.keys(s.elements).forEach(function (t) {
  27908. var e = s.elements[t],
  27909. i = s.attributes[t] || {},
  27910. n = Object.keys(s.styles.hasOwnProperty(t) ? s.styles[t] : o[t]).reduce(function (t, e) {
  27911. return t[e] = "", t
  27912. }, {});
  27913. yt(e) && mt(e) && (Object.assign(e.style, n), Object.keys(i).forEach(function (t) {
  27914. e.removeAttribute(t)
  27915. }))
  27916. })
  27917. }
  27918. },
  27919. requires: ["computeStyles"]
  27920. };
  27921. function kt(t) {
  27922. return t.split("-")[0]
  27923. }
  27924. function xt(t) {
  27925. var e = t.getBoundingClientRect();
  27926. return {
  27927. width: e.width,
  27928. height: e.height,
  27929. top: e.top,
  27930. right: e.right,
  27931. bottom: e.bottom,
  27932. left: e.left,
  27933. x: e.left,
  27934. y: e.top
  27935. }
  27936. }
  27937. function Ct(t) {
  27938. var e = xt(t),
  27939. i = t.offsetWidth,
  27940. n = t.offsetHeight;
  27941. return Math.abs(e.width - i) <= 1 && (i = e.width), Math.abs(e.height - n) <= 1 && (n = e.height), {
  27942. x: t.offsetLeft,
  27943. y: t.offsetTop,
  27944. width: i,
  27945. height: n
  27946. }
  27947. }
  27948. function Tt(t, e) {
  27949. var i = e.getRootNode && e.getRootNode();
  27950. if (t.contains(e)) return !0;
  27951. if (i && bt(i)) {
  27952. var n = e;
  27953. do {
  27954. if (n && t.isSameNode(n)) return !0;
  27955. n = n.parentNode || n.host
  27956. } while (n)
  27957. }
  27958. return !1
  27959. }
  27960. function St(t) {
  27961. return vt(t).getComputedStyle(t)
  27962. }
  27963. function Dt(t) {
  27964. return ((_t(t) ? t.ownerDocument : t.document) || window.document).documentElement
  27965. }
  27966. function At(t) {
  27967. return "html" === mt(t) ? t : t.assignedSlot || t.parentNode || (bt(t) ? t.host : null) || Dt(t)
  27968. }
  27969. function Et(t) {
  27970. return yt(t) && "fixed" !== St(t).position ? t.offsetParent : null
  27971. }
  27972. function Pt(t) {
  27973. for (var e = vt(t), i = Et(t); i && 0 <= ["table", "td", "th"].indexOf(mt(i)) && "static" === St(i).position;) i = Et(i);
  27974. return i && ("html" === mt(i) || "body" === mt(i) && "static" === St(i).position) ? e : i || function (t) {
  27975. var e = -1 !== navigator.userAgent.toLowerCase().indexOf("firefox");
  27976. if (-1 !== navigator.userAgent.indexOf("Trident") && yt(t) && "fixed" === St(t).position) return null;
  27977. for (var i = At(t); yt(i) && ["html", "body"].indexOf(mt(i)) < 0;) {
  27978. var n = St(i);
  27979. if ("none" !== n.transform || "none" !== n.perspective || "paint" === n.contain || -1 !== ["transform", "perspective"].indexOf(n.willChange) || e && "filter" === n.willChange || e && n.filter && "none" !== n.filter) return i;
  27980. i = i.parentNode
  27981. }
  27982. return null
  27983. }(t) || e
  27984. }
  27985. function It(t) {
  27986. return 0 <= ["top", "bottom"].indexOf(t) ? "x" : "y"
  27987. }
  27988. var Ot = Math.max,
  27989. Mt = Math.min,
  27990. Nt = Math.round;
  27991. function Lt(t, e, i) {
  27992. return Ot(t, Mt(e, i))
  27993. }
  27994. function Ht(t) {
  27995. return Object.assign({}, {
  27996. top: 0,
  27997. right: 0,
  27998. bottom: 0,
  27999. left: 0
  28000. }, t)
  28001. }
  28002. function jt(i, t) {
  28003. return t.reduce(function (t, e) {
  28004. return t[e] = i, t
  28005. }, {})
  28006. }
  28007. var zt = {
  28008. name: "arrow",
  28009. enabled: !0,
  28010. phase: "main",
  28011. fn: function (t) {
  28012. var e, i, n, s = t.state,
  28013. o = t.name,
  28014. r = t.options,
  28015. a = s.elements.arrow,
  28016. l = s.modifiersData.popperOffsets,
  28017. c = kt(s.placement),
  28018. u = It(c),
  28019. h = 0 <= [ht, ut].indexOf(c) ? "height" : "width";
  28020. if (a && l) {
  28021. var d = (i = r.padding, n = s, Ht("number" != typeof (i = "function" == typeof i ? i(Object.assign({}, n.rects, {
  28022. placement: n.placement
  28023. })) : i) ? i : jt(i, dt))),
  28024. p = Ct(a),
  28025. f = "y" === u ? lt : ht,
  28026. g = "y" === u ? ct : ut,
  28027. m = s.rects.reference[h] + s.rects.reference[u] - l[u] - s.rects.popper[h],
  28028. v = l[u] - s.rects.reference[u],
  28029. _ = Pt(a),
  28030. y = _ ? "y" === u ? _.clientHeight || 0 : _.clientWidth || 0 : 0,
  28031. b = m / 2 - v / 2,
  28032. w = d[f],
  28033. k = y - p[h] - d[g],
  28034. x = y / 2 - p[h] / 2 + b,
  28035. C = Lt(w, x, k),
  28036. T = u;
  28037. s.modifiersData[o] = ((e = {})[T] = C, e.centerOffset = C - x, e)
  28038. }
  28039. },
  28040. effect: function (t) {
  28041. var e = t.state,
  28042. i = t.options.element,
  28043. n = void 0 === i ? "[data-popper-arrow]" : i;
  28044. null != n && ("string" != typeof n || (n = e.elements.popper.querySelector(n))) && Tt(e.elements.popper, n) && (e.elements.arrow = n)
  28045. },
  28046. requires: ["popperOffsets"],
  28047. requiresIfExists: ["preventOverflow"]
  28048. },
  28049. Wt = {
  28050. top: "auto",
  28051. right: "auto",
  28052. bottom: "auto",
  28053. left: "auto"
  28054. };
  28055. function $t(t) {
  28056. var e, i, n, s, o, r = t.popper,
  28057. a = t.popperRect,
  28058. l = t.placement,
  28059. c = t.offsets,
  28060. u = t.position,
  28061. h = t.gpuAcceleration,
  28062. d = t.adaptive,
  28063. p = t.roundOffsets,
  28064. f = !0 === p ? (n = (i = c).x, s = i.y, o = window.devicePixelRatio || 1, {
  28065. x: Nt(Nt(n * o) / o) || 0,
  28066. y: Nt(Nt(s * o) / o) || 0
  28067. }) : "function" == typeof p ? p(c) : c,
  28068. g = f.x,
  28069. m = void 0 === g ? 0 : g,
  28070. v = f.y,
  28071. _ = void 0 === v ? 0 : v,
  28072. y = c.hasOwnProperty("x"),
  28073. b = c.hasOwnProperty("y"),
  28074. w = ht,
  28075. k = lt,
  28076. x = window;
  28077. if (d) {
  28078. var C = Pt(r),
  28079. T = "clientHeight",
  28080. S = "clientWidth";
  28081. C === vt(r) && "static" !== St(C = Dt(r)).position && (T = "scrollHeight", S = "scrollWidth"), C = C, l === lt && (k = ct, _ -= C[T] - a.height, _ *= h ? 1 : -1), l === ht && (w = ut, m -= C[S] - a.width, m *= h ? 1 : -1)
  28082. }
  28083. var D, A = Object.assign({
  28084. position: u
  28085. }, d && Wt);
  28086. return h ? Object.assign({}, A, ((D = {})[k] = b ? "0" : "", D[w] = y ? "0" : "", D.transform = (x.devicePixelRatio || 1) < 2 ? "translate(" + m + "px, " + _ + "px)" : "translate3d(" + m + "px, " + _ + "px, 0)", D)) : Object.assign({}, A, ((e = {})[k] = b ? _ + "px" : "", e[w] = y ? m + "px" : "", e.transform = "", e))
  28087. }
  28088. var Rt = {
  28089. name: "computeStyles",
  28090. enabled: !0,
  28091. phase: "beforeWrite",
  28092. fn: function (t) {
  28093. var e = t.state,
  28094. i = t.options,
  28095. n = i.gpuAcceleration,
  28096. s = void 0 === n || n,
  28097. o = i.adaptive,
  28098. r = void 0 === o || o,
  28099. a = i.roundOffsets,
  28100. l = void 0 === a || a,
  28101. c = {
  28102. placement: kt(e.placement),
  28103. popper: e.elements.popper,
  28104. popperRect: e.rects.popper,
  28105. gpuAcceleration: s
  28106. };
  28107. null != e.modifiersData.popperOffsets && (e.styles.popper = Object.assign({}, e.styles.popper, $t(Object.assign({}, c, {
  28108. offsets: e.modifiersData.popperOffsets,
  28109. position: e.options.strategy,
  28110. adaptive: r,
  28111. roundOffsets: l
  28112. })))), null != e.modifiersData.arrow && (e.styles.arrow = Object.assign({}, e.styles.arrow, $t(Object.assign({}, c, {
  28113. offsets: e.modifiersData.arrow,
  28114. position: "absolute",
  28115. adaptive: !1,
  28116. roundOffsets: l
  28117. })))), e.attributes.popper = Object.assign({}, e.attributes.popper, {
  28118. "data-popper-placement": e.placement
  28119. })
  28120. },
  28121. data: {}
  28122. },
  28123. Ft = {
  28124. passive: !0
  28125. },
  28126. qt = {
  28127. name: "eventListeners",
  28128. enabled: !0,
  28129. phase: "write",
  28130. fn: function () {},
  28131. effect: function (t) {
  28132. var e = t.state,
  28133. i = t.instance,
  28134. n = t.options,
  28135. s = n.scroll,
  28136. o = void 0 === s || s,
  28137. r = n.resize,
  28138. a = void 0 === r || r,
  28139. l = vt(e.elements.popper),
  28140. c = [].concat(e.scrollParents.reference, e.scrollParents.popper);
  28141. return o && c.forEach(function (t) {
  28142. t.addEventListener("scroll", i.update, Ft)
  28143. }), a && l.addEventListener("resize", i.update, Ft),
  28144. function () {
  28145. o && c.forEach(function (t) {
  28146. t.removeEventListener("scroll", i.update, Ft)
  28147. }), a && l.removeEventListener("resize", i.update, Ft)
  28148. }
  28149. },
  28150. data: {}
  28151. },
  28152. Bt = {
  28153. left: "right",
  28154. right: "left",
  28155. bottom: "top",
  28156. top: "bottom"
  28157. };
  28158. function Ut(t) {
  28159. return t.replace(/left|right|bottom|top/g, function (t) {
  28160. return Bt[t]
  28161. })
  28162. }
  28163. var Yt = {
  28164. start: "end",
  28165. end: "start"
  28166. };
  28167. function Vt(t) {
  28168. return t.replace(/start|end/g, function (t) {
  28169. return Yt[t]
  28170. })
  28171. }
  28172. function Kt(t) {
  28173. var e = vt(t);
  28174. return {
  28175. scrollLeft: e.pageXOffset,
  28176. scrollTop: e.pageYOffset
  28177. }
  28178. }
  28179. function Xt(t) {
  28180. return xt(Dt(t)).left + Kt(t).scrollLeft
  28181. }
  28182. function Qt(t) {
  28183. var e = St(t),
  28184. i = e.overflow,
  28185. n = e.overflowX,
  28186. s = e.overflowY;
  28187. return /auto|scroll|overlay|hidden/.test(i + s + n)
  28188. }
  28189. function Gt(t, e) {
  28190. var i;
  28191. void 0 === e && (e = []);
  28192. var n = function t(e) {
  28193. return 0 <= ["html", "body", "#document"].indexOf(mt(e)) ? e.ownerDocument.body : yt(e) && Qt(e) ? e : t(At(e))
  28194. }(t),
  28195. s = n === (null == (i = t.ownerDocument) ? void 0 : i.body),
  28196. o = vt(n),
  28197. r = s ? [o].concat(o.visualViewport || [], Qt(n) ? n : []) : n,
  28198. a = e.concat(r);
  28199. return s ? a : a.concat(Gt(At(r)))
  28200. }
  28201. function Jt(t) {
  28202. return Object.assign({}, t, {
  28203. left: t.x,
  28204. top: t.y,
  28205. right: t.x + t.width,
  28206. bottom: t.y + t.height
  28207. })
  28208. }
  28209. function Zt(t, e) {
  28210. return "viewport" === e ? Jt((f = vt(p = t), g = Dt(p), m = f.visualViewport, v = g.clientWidth, _ = g.clientHeight, b = y = 0, m && (v = m.width, _ = m.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (y = m.offsetLeft, b = m.offsetTop)), {
  28211. width: v,
  28212. height: _,
  28213. x: y + Xt(p),
  28214. y: b
  28215. })) : yt(e) ? ((d = xt(h = e)).top = d.top + h.clientTop, d.left = d.left + h.clientLeft, d.bottom = d.top + h.clientHeight, d.right = d.left + h.clientWidth, d.width = h.clientWidth, d.height = h.clientHeight, d.x = d.left, d.y = d.top, d) : Jt((i = Dt(t), s = Dt(i), o = Kt(i), r = null == (n = i.ownerDocument) ? void 0 : n.body, a = Ot(s.scrollWidth, s.clientWidth, r ? r.scrollWidth : 0, r ? r.clientWidth : 0), l = Ot(s.scrollHeight, s.clientHeight, r ? r.scrollHeight : 0, r ? r.clientHeight : 0), c = -o.scrollLeft + Xt(i), u = -o.scrollTop, "rtl" === St(r || s).direction && (c += Ot(s.clientWidth, r ? r.clientWidth : 0) - a), {
  28216. width: a,
  28217. height: l,
  28218. x: c,
  28219. y: u
  28220. }));
  28221. var i, n, s, o, r, a, l, c, u, h, d, p, f, g, m, v, _, y, b
  28222. }
  28223. function te(t) {
  28224. return t.split("-")[1]
  28225. }
  28226. function ee(t) {
  28227. var e, i = t.reference,
  28228. n = t.element,
  28229. s = t.placement,
  28230. o = s ? kt(s) : null,
  28231. r = s ? te(s) : null,
  28232. a = i.x + i.width / 2 - n.width / 2,
  28233. l = i.y + i.height / 2 - n.height / 2;
  28234. switch (o) {
  28235. case lt:
  28236. e = {
  28237. x: a,
  28238. y: i.y - n.height
  28239. };
  28240. break;
  28241. case ct:
  28242. e = {
  28243. x: a,
  28244. y: i.y + i.height
  28245. };
  28246. break;
  28247. case ut:
  28248. e = {
  28249. x: i.x + i.width,
  28250. y: l
  28251. };
  28252. break;
  28253. case ht:
  28254. e = {
  28255. x: i.x - n.width,
  28256. y: l
  28257. };
  28258. break;
  28259. default:
  28260. e = {
  28261. x: i.x,
  28262. y: i.y
  28263. }
  28264. }
  28265. var c = o ? It(o) : null;
  28266. if (null != c) {
  28267. var u = "y" === c ? "height" : "width";
  28268. switch (r) {
  28269. case "start":
  28270. e[c] = e[c] - (i[u] / 2 - n[u] / 2);
  28271. break;
  28272. case "end":
  28273. e[c] = e[c] + (i[u] / 2 - n[u] / 2)
  28274. }
  28275. }
  28276. return e
  28277. }
  28278. function ie(t, e) {
  28279. void 0 === e && (e = {});
  28280. var n, i, s, o, r, a, l, c, u, h, d = e,
  28281. p = d.placement,
  28282. f = void 0 === p ? t.placement : p,
  28283. g = d.boundary,
  28284. m = void 0 === g ? "clippingParents" : g,
  28285. v = d.rootBoundary,
  28286. _ = void 0 === v ? "viewport" : v,
  28287. y = d.elementContext,
  28288. b = void 0 === y ? "popper" : y,
  28289. w = d.altBoundary,
  28290. k = void 0 !== w && w,
  28291. x = d.padding,
  28292. C = void 0 === x ? 0 : x,
  28293. T = Ht("number" != typeof C ? C : jt(C, dt)),
  28294. S = "popper" === b ? "reference" : "popper",
  28295. D = t.elements.reference,
  28296. A = t.rects.popper,
  28297. E = t.elements[k ? S : b],
  28298. P = (n = _t(E) ? E : E.contextElement || Dt(t.elements.popper), s = _, l = "clippingParents" === (i = m) ? (r = Gt(At(o = n)), _t(a = 0 <= ["absolute", "fixed"].indexOf(St(o).position) && yt(o) ? Pt(o) : o) ? r.filter(function (t) {
  28299. return _t(t) && Tt(t, a) && "body" !== mt(t)
  28300. }) : []) : [].concat(i), c = [].concat(l, [s]), u = c[0], (h = c.reduce(function (t, e) {
  28301. var i = Zt(n, e);
  28302. return t.top = Ot(i.top, t.top), t.right = Mt(i.right, t.right), t.bottom = Mt(i.bottom, t.bottom), t.left = Ot(i.left, t.left), t
  28303. }, Zt(n, u))).width = h.right - h.left, h.height = h.bottom - h.top, h.x = h.left, h.y = h.top, h),
  28304. I = xt(D),
  28305. O = ee({
  28306. reference: I,
  28307. element: A,
  28308. strategy: "absolute",
  28309. placement: f
  28310. }),
  28311. M = Jt(Object.assign({}, A, O)),
  28312. N = "popper" === b ? M : I,
  28313. L = {
  28314. top: P.top - N.top + T.top,
  28315. bottom: N.bottom - P.bottom + T.bottom,
  28316. left: P.left - N.left + T.left,
  28317. right: N.right - P.right + T.right
  28318. },
  28319. H = t.modifiersData.offset;
  28320. if ("popper" === b && H) {
  28321. var j = H[f];
  28322. Object.keys(L).forEach(function (t) {
  28323. var e = 0 <= [ut, ct].indexOf(t) ? 1 : -1,
  28324. i = 0 <= [lt, ct].indexOf(t) ? "y" : "x";
  28325. L[t] += j[i] * e
  28326. })
  28327. }
  28328. return L
  28329. }
  28330. var ne = {
  28331. name: "flip",
  28332. enabled: !0,
  28333. phase: "main",
  28334. fn: function (t) {
  28335. var i = t.state,
  28336. e = t.options,
  28337. n = t.name;
  28338. if (!i.modifiersData[n]._skip) {
  28339. for (var s = e.mainAxis, o = void 0 === s || s, r = e.altAxis, a = void 0 === r || r, l = e.fallbackPlacements, c = e.padding, u = e.boundary, h = e.rootBoundary, d = e.altBoundary, p = e.flipVariations, f = void 0 === p || p, g = e.allowedAutoPlacements, m = i.options.placement, v = kt(m), _ = l || (v !== m && f ? function (t) {
  28340. if ("auto" === kt(t)) return [];
  28341. var e = Ut(t);
  28342. return [Vt(t), e, Vt(e)]
  28343. }(m) : [Ut(m)]), y = [m].concat(_).reduce(function (t, e) {
  28344. return t.concat("auto" === kt(e) ? function (i, t) {
  28345. void 0 === t && (t = {});
  28346. var e = t,
  28347. n = e.placement,
  28348. s = e.boundary,
  28349. o = e.rootBoundary,
  28350. r = e.padding,
  28351. a = e.flipVariations,
  28352. l = e.allowedAutoPlacements,
  28353. c = void 0 === l ? ft : l,
  28354. u = te(n),
  28355. h = u ? a ? pt : pt.filter(function (t) {
  28356. return te(t) === u
  28357. }) : dt,
  28358. d = h.filter(function (t) {
  28359. return 0 <= c.indexOf(t)
  28360. });
  28361. 0 === d.length && (d = h);
  28362. var p = d.reduce(function (t, e) {
  28363. return t[e] = ie(i, {
  28364. placement: e,
  28365. boundary: s,
  28366. rootBoundary: o,
  28367. padding: r
  28368. })[kt(e)], t
  28369. }, {});
  28370. return Object.keys(p).sort(function (t, e) {
  28371. return p[t] - p[e]
  28372. })
  28373. }(i, {
  28374. placement: e,
  28375. boundary: u,
  28376. rootBoundary: h,
  28377. padding: c,
  28378. flipVariations: f,
  28379. allowedAutoPlacements: g
  28380. }) : e)
  28381. }, []), b = i.rects.reference, w = i.rects.popper, k = new Map, x = !0, C = y[0], T = 0; T < y.length; T++) {
  28382. var S = y[T],
  28383. D = kt(S),
  28384. A = "start" === te(S),
  28385. E = 0 <= [lt, ct].indexOf(D),
  28386. P = E ? "width" : "height",
  28387. I = ie(i, {
  28388. placement: S,
  28389. boundary: u,
  28390. rootBoundary: h,
  28391. altBoundary: d,
  28392. padding: c
  28393. }),
  28394. O = E ? A ? ut : ht : A ? ct : lt;
  28395. b[P] > w[P] && (O = Ut(O));
  28396. var M = Ut(O),
  28397. N = [];
  28398. if (o && N.push(I[D] <= 0), a && N.push(I[O] <= 0, I[M] <= 0), N.every(function (t) {
  28399. return t
  28400. })) {
  28401. C = S, x = !1;
  28402. break
  28403. }
  28404. k.set(S, N)
  28405. }
  28406. if (x)
  28407. for (var L = function (i) {
  28408. var t = y.find(function (t) {
  28409. var e = k.get(t);
  28410. if (e) return e.slice(0, i).every(function (t) {
  28411. return t
  28412. })
  28413. });
  28414. if (t) return C = t, "break"
  28415. }, H = f ? 3 : 1; 0 < H && "break" !== L(H); H--);
  28416. i.placement !== C && (i.modifiersData[n]._skip = !0, i.placement = C, i.reset = !0)
  28417. }
  28418. },
  28419. requiresIfExists: ["offset"],
  28420. data: {
  28421. _skip: !1
  28422. }
  28423. };
  28424. function se(t, e, i) {
  28425. return void 0 === i && (i = {
  28426. x: 0,
  28427. y: 0
  28428. }), {
  28429. top: t.top - e.height - i.y,
  28430. right: t.right - e.width + i.x,
  28431. bottom: t.bottom - e.height + i.y,
  28432. left: t.left - e.width - i.x
  28433. }
  28434. }
  28435. function oe(e) {
  28436. return [lt, ut, ct, ht].some(function (t) {
  28437. return 0 <= e[t]
  28438. })
  28439. }
  28440. var re = {
  28441. name: "hide",
  28442. enabled: !0,
  28443. phase: "main",
  28444. requiresIfExists: ["preventOverflow"],
  28445. fn: function (t) {
  28446. var e = t.state,
  28447. i = t.name,
  28448. n = e.rects.reference,
  28449. s = e.rects.popper,
  28450. o = e.modifiersData.preventOverflow,
  28451. r = ie(e, {
  28452. elementContext: "reference"
  28453. }),
  28454. a = ie(e, {
  28455. altBoundary: !0
  28456. }),
  28457. l = se(r, n),
  28458. c = se(a, s, o),
  28459. u = oe(l),
  28460. h = oe(c);
  28461. e.modifiersData[i] = {
  28462. referenceClippingOffsets: l,
  28463. popperEscapeOffsets: c,
  28464. isReferenceHidden: u,
  28465. hasPopperEscaped: h
  28466. }, e.attributes.popper = Object.assign({}, e.attributes.popper, {
  28467. "data-popper-reference-hidden": u,
  28468. "data-popper-escaped": h
  28469. })
  28470. }
  28471. },
  28472. ae = {
  28473. name: "offset",
  28474. enabled: !0,
  28475. phase: "main",
  28476. requires: ["popperOffsets"],
  28477. fn: function (t) {
  28478. var u = t.state,
  28479. e = t.options,
  28480. i = t.name,
  28481. n = e.offset,
  28482. h = void 0 === n ? [0, 0] : n,
  28483. s = ft.reduce(function (t, e) {
  28484. return t[e] = (i = e, n = u.rects, s = h, o = kt(i), r = 0 <= [ht, lt].indexOf(o) ? -1 : 1, a = "function" == typeof s ? s(Object.assign({}, n, {
  28485. placement: i
  28486. })) : s, l = a[0], c = a[1], l = l || 0, c = (c || 0) * r, 0 <= [ht, ut].indexOf(o) ? {
  28487. x: c,
  28488. y: l
  28489. } : {
  28490. x: l,
  28491. y: c
  28492. }), t;
  28493. var i, n, s, o, r, a, l, c
  28494. }, {}),
  28495. o = s[u.placement],
  28496. r = o.x,
  28497. a = o.y;
  28498. null != u.modifiersData.popperOffsets && (u.modifiersData.popperOffsets.x += r, u.modifiersData.popperOffsets.y += a), u.modifiersData[i] = s
  28499. }
  28500. },
  28501. le = {
  28502. name: "popperOffsets",
  28503. enabled: !0,
  28504. phase: "read",
  28505. fn: function (t) {
  28506. var e = t.state,
  28507. i = t.name;
  28508. e.modifiersData[i] = ee({
  28509. reference: e.rects.reference,
  28510. element: e.rects.popper,
  28511. strategy: "absolute",
  28512. placement: e.placement
  28513. })
  28514. },
  28515. data: {}
  28516. },
  28517. ce = {
  28518. name: "preventOverflow",
  28519. enabled: !0,
  28520. phase: "main",
  28521. fn: function (t) {
  28522. var e = t.state,
  28523. i = t.options,
  28524. n = t.name,
  28525. s = i.mainAxis,
  28526. o = void 0 === s || s,
  28527. r = i.altAxis,
  28528. a = void 0 !== r && r,
  28529. l = i.boundary,
  28530. c = i.rootBoundary,
  28531. u = i.altBoundary,
  28532. h = i.padding,
  28533. d = i.tether,
  28534. p = void 0 === d || d,
  28535. f = i.tetherOffset,
  28536. g = void 0 === f ? 0 : f,
  28537. m = ie(e, {
  28538. boundary: l,
  28539. rootBoundary: c,
  28540. padding: h,
  28541. altBoundary: u
  28542. }),
  28543. v = kt(e.placement),
  28544. _ = te(e.placement),
  28545. y = !_,
  28546. b = It(v),
  28547. w = "x" === b ? "y" : "x",
  28548. k = e.modifiersData.popperOffsets,
  28549. x = e.rects.reference,
  28550. C = e.rects.popper,
  28551. T = "function" == typeof g ? g(Object.assign({}, e.rects, {
  28552. placement: e.placement
  28553. })) : g,
  28554. S = {
  28555. x: 0,
  28556. y: 0
  28557. };
  28558. if (k) {
  28559. if (o || a) {
  28560. var D = "y" === b ? lt : ht,
  28561. A = "y" === b ? ct : ut,
  28562. E = "y" === b ? "height" : "width",
  28563. P = k[b],
  28564. I = k[b] + m[D],
  28565. O = k[b] - m[A],
  28566. M = p ? -C[E] / 2 : 0,
  28567. N = "start" === _ ? x[E] : C[E],
  28568. L = "start" === _ ? -C[E] : -x[E],
  28569. H = e.elements.arrow,
  28570. j = p && H ? Ct(H) : {
  28571. width: 0,
  28572. height: 0
  28573. },
  28574. z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : {
  28575. top: 0,
  28576. right: 0,
  28577. bottom: 0,
  28578. left: 0
  28579. },
  28580. W = z[D],
  28581. $ = z[A],
  28582. R = Lt(0, x[E], j[E]),
  28583. F = y ? x[E] / 2 - M - R - W - T : N - R - W - T,
  28584. q = y ? -x[E] / 2 + M + R + $ + T : L + R + $ + T,
  28585. B = e.elements.arrow && Pt(e.elements.arrow),
  28586. U = B ? "y" === b ? B.clientTop || 0 : B.clientLeft || 0 : 0,
  28587. Y = e.modifiersData.offset ? e.modifiersData.offset[e.placement][b] : 0,
  28588. V = k[b] + F - Y - U,
  28589. K = k[b] + q - Y;
  28590. if (o) {
  28591. var X = Lt(p ? Mt(I, V) : I, P, p ? Ot(O, K) : O);
  28592. k[b] = X, S[b] = X - P
  28593. }
  28594. if (a) {
  28595. var Q = "x" === b ? lt : ht,
  28596. G = "x" === b ? ct : ut,
  28597. J = k[w],
  28598. Z = J + m[Q],
  28599. tt = J - m[G],
  28600. et = Lt(p ? Mt(Z, V) : Z, J, p ? Ot(tt, K) : tt);
  28601. k[w] = et, S[w] = et - J
  28602. }
  28603. }
  28604. e.modifiersData[n] = S
  28605. }
  28606. },
  28607. requiresIfExists: ["offset"]
  28608. };
  28609. var ue = {
  28610. placement: "bottom",
  28611. modifiers: [],
  28612. strategy: "absolute"
  28613. };
  28614. function he() {
  28615. for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++) e[i] = arguments[i];
  28616. return !e.some(function (t) {
  28617. return !(t && "function" == typeof t.getBoundingClientRect)
  28618. })
  28619. }
  28620. function de(t) {
  28621. void 0 === t && (t = {});
  28622. var e = t,
  28623. i = e.defaultModifiers,
  28624. m = void 0 === i ? [] : i,
  28625. n = e.defaultOptions,
  28626. v = void 0 === n ? ue : n;
  28627. return function (u, h, e) {
  28628. void 0 === e && (e = v);
  28629. var i, n, d = {
  28630. placement: "bottom",
  28631. orderedModifiers: [],
  28632. options: Object.assign({}, ue, v),
  28633. modifiersData: {},
  28634. elements: {
  28635. reference: u,
  28636. popper: h
  28637. },
  28638. attributes: {},
  28639. styles: {}
  28640. },
  28641. p = [],
  28642. c = !1,
  28643. f = {
  28644. state: d,
  28645. setOptions: function (t) {
  28646. g(), d.options = Object.assign({}, v, d.options, t), d.scrollParents = {
  28647. reference: _t(u) ? Gt(u) : u.contextElement ? Gt(u.contextElement) : [],
  28648. popper: Gt(h)
  28649. };
  28650. var e, i, n, s, o, r, a, l, c = (e = [].concat(m, d.options.modifiers), i = e.reduce(function (t, e) {
  28651. var i = t[e.name];
  28652. return t[e.name] = i ? Object.assign({}, i, e, {
  28653. options: Object.assign({}, i.options, e.options),
  28654. data: Object.assign({}, i.data, e.data)
  28655. }) : e, t
  28656. }, {}), n = Object.keys(i).map(function (t) {
  28657. return i[t]
  28658. }), s = n, o = new Map, r = new Set, a = [], s.forEach(function (t) {
  28659. o.set(t.name, t)
  28660. }), s.forEach(function (t) {
  28661. r.has(t.name) || function i(t) {
  28662. r.add(t.name), [].concat(t.requires || [], t.requiresIfExists || []).forEach(function (t) {
  28663. if (!r.has(t)) {
  28664. var e = o.get(t);
  28665. e && i(e)
  28666. }
  28667. }), a.push(t)
  28668. }(t)
  28669. }), l = a, gt.reduce(function (t, e) {
  28670. return t.concat(l.filter(function (t) {
  28671. return t.phase === e
  28672. }))
  28673. }, []));
  28674. return d.orderedModifiers = c.filter(function (t) {
  28675. return t.enabled
  28676. }), d.orderedModifiers.forEach(function (t) {
  28677. var e = t.name,
  28678. i = t.options,
  28679. n = void 0 === i ? {} : i,
  28680. s = t.effect;
  28681. if ("function" == typeof s) {
  28682. var o = s({
  28683. state: d,
  28684. name: e,
  28685. instance: f,
  28686. options: n
  28687. });
  28688. p.push(o || function () {})
  28689. }
  28690. }), f.update()
  28691. },
  28692. forceUpdate: function () {
  28693. if (!c) {
  28694. var t = d.elements,
  28695. e = t.reference,
  28696. i = t.popper;
  28697. if (he(e, i)) {
  28698. d.rects = {
  28699. reference: function (t, e, i) {
  28700. void 0 === i && (i = !1);
  28701. var n, s, o = Dt(e),
  28702. r = xt(t),
  28703. a = yt(e),
  28704. l = {
  28705. scrollLeft: 0,
  28706. scrollTop: 0
  28707. },
  28708. c = {
  28709. x: 0,
  28710. y: 0
  28711. };
  28712. return (a || !a && !i) && (("body" !== mt(e) || Qt(o)) && (l = (n = e) !== vt(n) && yt(n) ? {
  28713. scrollLeft: (s = n).scrollLeft,
  28714. scrollTop: s.scrollTop
  28715. } : Kt(n)), yt(e) ? ((c = xt(e)).x += e.clientLeft, c.y += e.clientTop) : o && (c.x = Xt(o))), {
  28716. x: r.left + l.scrollLeft - c.x,
  28717. y: r.top + l.scrollTop - c.y,
  28718. width: r.width,
  28719. height: r.height
  28720. }
  28721. }(e, Pt(i), "fixed" === d.options.strategy),
  28722. popper: Ct(i)
  28723. }, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function (t) {
  28724. return d.modifiersData[t.name] = Object.assign({}, t.data)
  28725. });
  28726. for (var n = 0; n < d.orderedModifiers.length; n++)
  28727. if (!0 !== d.reset) {
  28728. var s = d.orderedModifiers[n],
  28729. o = s.fn,
  28730. r = s.options,
  28731. a = void 0 === r ? {} : r,
  28732. l = s.name;
  28733. "function" == typeof o && (d = o({
  28734. state: d,
  28735. options: a,
  28736. name: l,
  28737. instance: f
  28738. }) || d)
  28739. } else d.reset = !1, n = -1
  28740. }
  28741. }
  28742. },
  28743. update: (i = function () {
  28744. return new Promise(function (t) {
  28745. f.forceUpdate(), t(d)
  28746. })
  28747. }, function () {
  28748. return n || (n = new Promise(function (t) {
  28749. Promise.resolve().then(function () {
  28750. n = void 0, t(i())
  28751. })
  28752. })), n
  28753. }),
  28754. destroy: function () {
  28755. g(), c = !0
  28756. }
  28757. };
  28758. if (!he(u, h)) return f;
  28759. function g() {
  28760. p.forEach(function (t) {
  28761. return t()
  28762. }), p = []
  28763. }
  28764. return f.setOptions(e).then(function (t) {
  28765. !c && e.onFirstUpdate && e.onFirstUpdate(t)
  28766. }), f
  28767. }
  28768. }
  28769. var pe = de(),
  28770. fe = de({
  28771. defaultModifiers: [qt, le, Rt, wt]
  28772. }),
  28773. ge = de({
  28774. defaultModifiers: [qt, le, Rt, wt, ae, ne, ce, zt, re]
  28775. }),
  28776. me = Object.freeze({
  28777. __proto__: null,
  28778. popperGenerator: de,
  28779. detectOverflow: ie,
  28780. createPopperBase: pe,
  28781. createPopper: ge,
  28782. createPopperLite: fe,
  28783. top: lt,
  28784. bottom: ct,
  28785. right: ut,
  28786. left: ht,
  28787. auto: "auto",
  28788. basePlacements: dt,
  28789. start: "start",
  28790. end: "end",
  28791. clippingParents: "clippingParents",
  28792. viewport: "viewport",
  28793. popper: "popper",
  28794. reference: "reference",
  28795. variationPlacements: pt,
  28796. placements: ft,
  28797. beforeRead: "beforeRead",
  28798. read: "read",
  28799. afterRead: "afterRead",
  28800. beforeMain: "beforeMain",
  28801. main: "main",
  28802. afterMain: "afterMain",
  28803. beforeWrite: "beforeWrite",
  28804. write: "write",
  28805. afterWrite: "afterWrite",
  28806. modifierPhases: gt,
  28807. applyStyles: wt,
  28808. arrow: zt,
  28809. computeStyles: Rt,
  28810. eventListeners: qt,
  28811. flip: ne,
  28812. hide: re,
  28813. offset: ae,
  28814. popperOffsets: le,
  28815. preventOverflow: ce
  28816. }),
  28817. ve = new RegExp("ArrowUp|ArrowDown|Escape"),
  28818. _e = l() ? "top-end" : "top-start",
  28819. ye = l() ? "top-start" : "top-end",
  28820. be = l() ? "bottom-end" : "bottom-start",
  28821. we = l() ? "bottom-start" : "bottom-end",
  28822. ke = l() ? "left-start" : "right-start",
  28823. xe = l() ? "right-start" : "left-start",
  28824. Ce = {
  28825. offset: [0, 2],
  28826. boundary: "clippingParents",
  28827. reference: "toggle",
  28828. display: "dynamic",
  28829. popperConfig: null,
  28830. autoClose: !0
  28831. },
  28832. Te = {
  28833. offset: "(array|string|function)",
  28834. boundary: "(string|element)",
  28835. reference: "(string|element|object)",
  28836. display: "string",
  28837. popperConfig: "(null|object|function)",
  28838. autoClose: "(boolean|string)"
  28839. },
  28840. Se = function (t) {
  28841. _inherits(l, U);
  28842. var n = _createSuper(l);
  28843. function l(t, e) {
  28844. var i;
  28845. return _classCallCheck(this, l), (i = n.call(this, t))._popper = null, i._config = i._getConfig(e), i._menu = i._getMenuElement(), i._inNavbar = i._detectNavbar(), i._addEventListeners(), i
  28846. }
  28847. return _createClass(l, [{
  28848. key: "toggle",
  28849. value: function () {
  28850. u(this._element) || (this._element.classList.contains("show") ? this.hide() : this.show())
  28851. }
  28852. }, {
  28853. key: "show",
  28854. value: function () {
  28855. if (!u(this._element) && !this._menu.classList.contains("show")) {
  28856. var t = l.getParentFromElement(this._element),
  28857. e = {
  28858. relatedTarget: this._element
  28859. };
  28860. if (!$.trigger(this._element, "show.bs.dropdown", e).defaultPrevented) {
  28861. var i;
  28862. if (this._inNavbar) Q.setDataAttribute(this._menu, "popper", "none");
  28863. else {
  28864. if (void 0 === me) throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");
  28865. var n = this._element;
  28866. "parent" === this._config.reference ? n = t : c(this._config.reference) ? n = r(this._config.reference) : "object" == _typeof(this._config.reference) && (n = this._config.reference);
  28867. var s = this._getPopperConfig(),
  28868. o = s.modifiers.find(function (t) {
  28869. return "applyStyles" === t.name && !1 === t.enabled
  28870. });
  28871. this._popper = ge(n, this._menu, s), o && Q.setDataAttribute(this._menu, "popper", "static")
  28872. }
  28873. "ontouchstart" in document.documentElement && !t.closest(".navbar-nav") && (i = []).concat.apply(i, _toConsumableArray(document.body.children)).forEach(function (t) {
  28874. return $.on(t, "mouseover", f)
  28875. }), this._element.focus(), this._element.setAttribute("aria-expanded", !0), this._menu.classList.toggle("show"), this._element.classList.toggle("show"), $.trigger(this._element, "shown.bs.dropdown", e)
  28876. }
  28877. }
  28878. }
  28879. }, {
  28880. key: "hide",
  28881. value: function () {
  28882. if (!u(this._element) && this._menu.classList.contains("show")) {
  28883. var t = {
  28884. relatedTarget: this._element
  28885. };
  28886. this._completeHide(t)
  28887. }
  28888. }
  28889. }, {
  28890. key: "dispose",
  28891. value: function () {
  28892. this._popper && this._popper.destroy(), _get2(_getPrototypeOf(l.prototype), "dispose", this).call(this)
  28893. }
  28894. }, {
  28895. key: "update",
  28896. value: function () {
  28897. this._inNavbar = this._detectNavbar(), this._popper && this._popper.update()
  28898. }
  28899. }, {
  28900. key: "_addEventListeners",
  28901. value: function () {
  28902. var e = this;
  28903. $.on(this._element, "click.bs.dropdown", function (t) {
  28904. t.preventDefault(), e.toggle()
  28905. })
  28906. }
  28907. }, {
  28908. key: "_completeHide",
  28909. value: function (t) {
  28910. var e;
  28911. $.trigger(this._element, "hide.bs.dropdown", t).defaultPrevented || ("ontouchstart" in document.documentElement && (e = []).concat.apply(e, _toConsumableArray(document.body.children)).forEach(function (t) {
  28912. return $.off(t, "mouseover", f)
  28913. }), this._popper && this._popper.destroy(), this._menu.classList.remove("show"), this._element.classList.remove("show"), this._element.setAttribute("aria-expanded", "false"), Q.removeDataAttribute(this._menu, "popper"), $.trigger(this._element, "hidden.bs.dropdown", t))
  28914. }
  28915. }, {
  28916. key: "_getConfig",
  28917. value: function (t) {
  28918. if (t = _objectSpread(_objectSpread(_objectSpread({}, this.constructor.Default), Q.getDataAttributes(this._element)), t), d("dropdown", t, this.constructor.DefaultType), "object" == _typeof(t.reference) && !c(t.reference) && "function" != typeof t.reference.getBoundingClientRect) throw new TypeError("dropdown".toUpperCase() + ': Option "reference" provided type "object" without a required "getBoundingClientRect" method.');
  28919. return t
  28920. }
  28921. }, {
  28922. key: "_getMenuElement",
  28923. value: function () {
  28924. return x(this._element, ".dropdown-menu")[0]
  28925. }
  28926. }, {
  28927. key: "_getPlacement",
  28928. value: function () {
  28929. var t = this._element.parentNode;
  28930. if (t.classList.contains("dropend")) return ke;
  28931. if (t.classList.contains("dropstart")) return xe;
  28932. var e = "end" === getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();
  28933. return t.classList.contains("dropup") ? e ? ye : _e : e ? we : be
  28934. }
  28935. }, {
  28936. key: "_detectNavbar",
  28937. value: function () {
  28938. return null !== this._element.closest(".navbar")
  28939. }
  28940. }, {
  28941. key: "_getOffset",
  28942. value: function () {
  28943. var e = this,
  28944. i = this._config.offset;
  28945. return "string" == typeof i ? i.split(",").map(function (t) {
  28946. return Number.parseInt(t, 10)
  28947. }) : "function" == typeof i ? function (t) {
  28948. return i(t, e._element)
  28949. } : i
  28950. }
  28951. }, {
  28952. key: "_getPopperConfig",
  28953. value: function () {
  28954. var t = {
  28955. placement: this._getPlacement(),
  28956. modifiers: [{
  28957. name: "preventOverflow",
  28958. options: {
  28959. boundary: this._config.boundary
  28960. }
  28961. }, {
  28962. name: "offset",
  28963. options: {
  28964. offset: this._getOffset()
  28965. }
  28966. }]
  28967. };
  28968. return "static" === this._config.display && (t.modifiers = [{
  28969. name: "applyStyles",
  28970. enabled: !1
  28971. }]), _objectSpread(_objectSpread({}, t), "function" == typeof this._config.popperConfig ? this._config.popperConfig(t) : this._config.popperConfig)
  28972. }
  28973. }, {
  28974. key: "_selectMenuItem",
  28975. value: function (t) {
  28976. var e = t.key,
  28977. i = t.target,
  28978. n = _(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)", this._menu).filter(s);
  28979. n.length && v(n, i, "ArrowDown" === e, !n.includes(i)).focus()
  28980. }
  28981. }], [{
  28982. key: "dropdownInterface",
  28983. value: function (t, e) {
  28984. var i = l.getOrCreateInstance(t, e);
  28985. if ("string" == typeof e) {
  28986. if (void 0 === i[e]) throw new TypeError('No method named "'.concat(e, '"'));
  28987. i[e]()
  28988. }
  28989. }
  28990. }, {
  28991. key: "jQueryInterface",
  28992. value: function (t) {
  28993. return this.each(function () {
  28994. l.dropdownInterface(this, t)
  28995. })
  28996. }
  28997. }, {
  28998. key: "clearMenus",
  28999. value: function (t) {
  29000. if (!t || 2 !== t.button && ("keyup" !== t.type || "Tab" === t.key))
  29001. for (var e = _('[data-bs-toggle="dropdown"]'), i = 0, n = e.length; i < n; i++) {
  29002. var s = l.getInstance(e[i]);
  29003. if (s && !1 !== s._config.autoClose && s._element.classList.contains("show")) {
  29004. var o = {
  29005. relatedTarget: s._element
  29006. };
  29007. if (t) {
  29008. var r = t.composedPath(),
  29009. a = r.includes(s._menu);
  29010. if (r.includes(s._element) || "inside" === s._config.autoClose && !a || "outside" === s._config.autoClose && a) continue;
  29011. if (s._menu.contains(t.target) && ("keyup" === t.type && "Tab" === t.key || /input|select|option|textarea|form/i.test(t.target.tagName))) continue;
  29012. "click" === t.type && (o.clickEvent = t)
  29013. }
  29014. s._completeHide(o)
  29015. }
  29016. }
  29017. }
  29018. }, {
  29019. key: "getParentFromElement",
  29020. value: function (t) {
  29021. return a(t) || t.parentNode
  29022. }
  29023. }, {
  29024. key: "dataApiKeydownHandler",
  29025. value: function (t) {
  29026. var e = this;
  29027. if (/input|textarea/i.test(t.target.tagName) ? !("Space" === t.key || "Escape" !== t.key && ("ArrowDown" !== t.key && "ArrowUp" !== t.key || t.target.closest(".dropdown-menu"))) : ve.test(t.key)) {
  29028. var i = this.classList.contains("show");
  29029. if ((i || "Escape" !== t.key) && (t.preventDefault(), t.stopPropagation(), !u(this))) {
  29030. var n = function () {
  29031. return e.matches('[data-bs-toggle="dropdown"]') ? e : k(e, '[data-bs-toggle="dropdown"]')[0]
  29032. };
  29033. return "Escape" === t.key ? (n().focus(), void l.clearMenus()) : "ArrowUp" === t.key || "ArrowDown" === t.key ? (i || n().click(), void l.getInstance(n())._selectMenuItem(t)) : void(i && "Space" !== t.key || l.clearMenus())
  29034. }
  29035. }
  29036. }
  29037. }, {
  29038. key: "Default",
  29039. get: function () {
  29040. return Ce
  29041. }
  29042. }, {
  29043. key: "DefaultType",
  29044. get: function () {
  29045. return Te
  29046. }
  29047. }, {
  29048. key: "NAME",
  29049. get: function () {
  29050. return "dropdown"
  29051. }
  29052. }]), l
  29053. }();
  29054. $.on(document, "keydown.bs.dropdown.data-api", '[data-bs-toggle="dropdown"]', Se.dataApiKeydownHandler), $.on(document, "keydown.bs.dropdown.data-api", ".dropdown-menu", Se.dataApiKeydownHandler), $.on(document, "click.bs.dropdown.data-api", Se.clearMenus), $.on(document, "keyup.bs.dropdown.data-api", Se.clearMenus), $.on(document, "click.bs.dropdown.data-api", '[data-bs-toggle="dropdown"]', function (t) {
  29055. t.preventDefault(), Se.dropdownInterface(this)
  29056. }), t(Se);
  29057. var De = function () {
  29058. function t() {
  29059. _classCallCheck(this, t), this._element = document.body
  29060. }
  29061. return _createClass(t, [{
  29062. key: "getWidth",
  29063. value: function () {
  29064. var t = document.documentElement.clientWidth;
  29065. return Math.abs(window.innerWidth - t)
  29066. }
  29067. }, {
  29068. key: "hide",
  29069. value: function () {
  29070. var e = this.getWidth();
  29071. this._disableOverFlow(), this._setElementAttributes(this._element, "paddingRight", function (t) {
  29072. return t + e
  29073. }), this._setElementAttributes(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top", "paddingRight", function (t) {
  29074. return t + e
  29075. }), this._setElementAttributes(".sticky-top", "marginRight", function (t) {
  29076. return t - e
  29077. })
  29078. }
  29079. }, {
  29080. key: "_disableOverFlow",
  29081. value: function () {
  29082. this._saveInitialAttribute(this._element, "overflow"), this._element.style.overflow = "hidden"
  29083. }
  29084. }, {
  29085. key: "_setElementAttributes",
  29086. value: function (t, i, n) {
  29087. var s = this,
  29088. o = this.getWidth();
  29089. this._applyManipulationCallback(t, function (t) {
  29090. if (!(t !== s._element && window.innerWidth > t.clientWidth + o)) {
  29091. s._saveInitialAttribute(t, i);
  29092. var e = window.getComputedStyle(t)[i];
  29093. t.style[i] = n(Number.parseFloat(e)) + "px"
  29094. }
  29095. })
  29096. }
  29097. }, {
  29098. key: "reset",
  29099. value: function () {
  29100. this._resetElementAttributes(this._element, "overflow"), this._resetElementAttributes(this._element, "paddingRight"), this._resetElementAttributes(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top", "paddingRight"), this._resetElementAttributes(".sticky-top", "marginRight")
  29101. }
  29102. }, {
  29103. key: "_saveInitialAttribute",
  29104. value: function (t, e) {
  29105. var i = t.style[e];
  29106. i && Q.setDataAttribute(t, e, i)
  29107. }
  29108. }, {
  29109. key: "_resetElementAttributes",
  29110. value: function (t, i) {
  29111. this._applyManipulationCallback(t, function (t) {
  29112. var e = Q.getDataAttribute(t, i);
  29113. void 0 === e ? t.style.removeProperty(i) : (Q.removeDataAttribute(t, i), t.style[i] = e)
  29114. })
  29115. }
  29116. }, {
  29117. key: "_applyManipulationCallback",
  29118. value: function (t, e) {
  29119. c(t) ? e(t) : _(t, this._element).forEach(e)
  29120. }
  29121. }, {
  29122. key: "isOverflowing",
  29123. value: function () {
  29124. return 0 < this.getWidth()
  29125. }
  29126. }]), t
  29127. }(),
  29128. Ae = {
  29129. isVisible: !0,
  29130. isAnimated: !1,
  29131. rootElement: "body",
  29132. clickCallback: null
  29133. },
  29134. Ee = {
  29135. isVisible: "boolean",
  29136. isAnimated: "boolean",
  29137. rootElement: "(element|string)",
  29138. clickCallback: "(function|null)"
  29139. },
  29140. Pe = function () {
  29141. function e(t) {
  29142. _classCallCheck(this, e), this._config = this._getConfig(t), this._isAppended = !1, this._element = null
  29143. }
  29144. return _createClass(e, [{
  29145. key: "show",
  29146. value: function (t) {
  29147. this._config.isVisible ? (this._append(), this._config.isAnimated && g(this._getElement()), this._getElement().classList.add("show"), this._emulateAnimation(function () {
  29148. o(t)
  29149. })) : o(t)
  29150. }
  29151. }, {
  29152. key: "hide",
  29153. value: function (t) {
  29154. var e = this;
  29155. this._config.isVisible ? (this._getElement().classList.remove("show"), this._emulateAnimation(function () {
  29156. e.dispose(), o(t)
  29157. })) : o(t)
  29158. }
  29159. }, {
  29160. key: "_getElement",
  29161. value: function () {
  29162. if (!this._element) {
  29163. var t = document.createElement("div");
  29164. t.className = "modal-backdrop", this._config.isAnimated && t.classList.add("fade"), this._element = t
  29165. }
  29166. return this._element
  29167. }
  29168. }, {
  29169. key: "_getConfig",
  29170. value: function (t) {
  29171. return (t = _objectSpread(_objectSpread({}, Ae), "object" == _typeof(t) ? t : {})).rootElement = r(t.rootElement), d("backdrop", t, Ee), t
  29172. }
  29173. }, {
  29174. key: "_append",
  29175. value: function () {
  29176. var t = this;
  29177. this._isAppended || (this._config.rootElement.appendChild(this._getElement()), $.on(this._getElement(), "mousedown.bs.backdrop", function () {
  29178. o(t._config.clickCallback)
  29179. }), this._isAppended = !0)
  29180. }
  29181. }, {
  29182. key: "dispose",
  29183. value: function () {
  29184. this._isAppended && ($.off(this._element, "mousedown.bs.backdrop"), this._element.remove(), this._isAppended = !1)
  29185. }
  29186. }, {
  29187. key: "_emulateAnimation",
  29188. value: function (t) {
  29189. n(t, this._getElement(), this._config.isAnimated)
  29190. }
  29191. }]), e
  29192. }(),
  29193. Ie = {
  29194. backdrop: !0,
  29195. keyboard: !0,
  29196. focus: !0
  29197. },
  29198. Oe = {
  29199. backdrop: "(boolean|string)",
  29200. keyboard: "boolean",
  29201. focus: "boolean"
  29202. },
  29203. Me = function (t) {
  29204. _inherits(s, U);
  29205. var n = _createSuper(s);
  29206. function s(t, e) {
  29207. var i;
  29208. return _classCallCheck(this, s), (i = n.call(this, t))._config = i._getConfig(e), i._dialog = y(".modal-dialog", i._element), i._backdrop = i._initializeBackDrop(), i._isShown = !1, i._ignoreBackdropClick = !1, i._isTransitioning = !1, i._scrollBar = new De, i
  29209. }
  29210. return _createClass(s, [{
  29211. key: "toggle",
  29212. value: function (t) {
  29213. return this._isShown ? this.hide() : this.show(t)
  29214. }
  29215. }, {
  29216. key: "show",
  29217. value: function (t) {
  29218. var e = this;
  29219. this._isShown || this._isTransitioning || $.trigger(this._element, "show.bs.modal", {
  29220. relatedTarget: t
  29221. }).defaultPrevented || (this._isShown = !0, this._isAnimated() && (this._isTransitioning = !0), this._scrollBar.hide(), document.body.classList.add("modal-open"), this._adjustDialog(), this._setEscapeEvent(), this._setResizeEvent(), $.on(this._element, "click.dismiss.bs.modal", '[data-bs-dismiss="modal"]', function (t) {
  29222. return e.hide(t)
  29223. }), $.on(this._dialog, "mousedown.dismiss.bs.modal", function () {
  29224. $.one(e._element, "mouseup.dismiss.bs.modal", function (t) {
  29225. t.target === e._element && (e._ignoreBackdropClick = !0)
  29226. })
  29227. }), this._showBackdrop(function () {
  29228. return e._showElement(t)
  29229. }))
  29230. }
  29231. }, {
  29232. key: "hide",
  29233. value: function (t) {
  29234. var e = this;
  29235. if (t && ["A", "AREA"].includes(t.target.tagName) && t.preventDefault(), this._isShown && !this._isTransitioning && !$.trigger(this._element, "hide.bs.modal").defaultPrevented) {
  29236. this._isShown = !1;
  29237. var i = this._isAnimated();
  29238. i && (this._isTransitioning = !0), this._setEscapeEvent(), this._setResizeEvent(), $.off(document, "focusin.bs.modal"), this._element.classList.remove("show"), $.off(this._element, "click.dismiss.bs.modal"), $.off(this._dialog, "mousedown.dismiss.bs.modal"), this._queueCallback(function () {
  29239. return e._hideModal()
  29240. }, this._element, i)
  29241. }
  29242. }
  29243. }, {
  29244. key: "dispose",
  29245. value: function () {
  29246. [window, this._dialog].forEach(function (t) {
  29247. return $.off(t, ".bs.modal")
  29248. }), this._backdrop.dispose(), _get2(_getPrototypeOf(s.prototype), "dispose", this).call(this), $.off(document, "focusin.bs.modal")
  29249. }
  29250. }, {
  29251. key: "handleUpdate",
  29252. value: function () {
  29253. this._adjustDialog()
  29254. }
  29255. }, {
  29256. key: "_initializeBackDrop",
  29257. value: function () {
  29258. return new Pe({
  29259. isVisible: Boolean(this._config.backdrop),
  29260. isAnimated: this._isAnimated()
  29261. })
  29262. }
  29263. }, {
  29264. key: "_getConfig",
  29265. value: function (t) {
  29266. return t = _objectSpread(_objectSpread(_objectSpread({}, Ie), Q.getDataAttributes(this._element)), "object" == _typeof(t) ? t : {}), d("modal", t, Oe), t
  29267. }
  29268. }, {
  29269. key: "_showElement",
  29270. value: function (t) {
  29271. var e = this,
  29272. i = this._isAnimated(),
  29273. n = y(".modal-body", this._dialog);
  29274. this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE || document.body.appendChild(this._element), this._element.style.display = "block", this._element.removeAttribute("aria-hidden"), this._element.setAttribute("aria-modal", !0), this._element.setAttribute("role", "dialog"), this._element.scrollTop = 0, n && (n.scrollTop = 0), i && g(this._element), this._element.classList.add("show"), this._config.focus && this._enforceFocus(), this._queueCallback(function () {
  29275. e._config.focus && e._element.focus(), e._isTransitioning = !1, $.trigger(e._element, "shown.bs.modal", {
  29276. relatedTarget: t
  29277. })
  29278. }, this._dialog, i)
  29279. }
  29280. }, {
  29281. key: "_enforceFocus",
  29282. value: function () {
  29283. var e = this;
  29284. $.off(document, "focusin.bs.modal"), $.on(document, "focusin.bs.modal", function (t) {
  29285. document === t.target || e._element === t.target || e._element.contains(t.target) || e._element.focus()
  29286. })
  29287. }
  29288. }, {
  29289. key: "_setEscapeEvent",
  29290. value: function () {
  29291. var e = this;
  29292. this._isShown ? $.on(this._element, "keydown.dismiss.bs.modal", function (t) {
  29293. e._config.keyboard && "Escape" === t.key ? (t.preventDefault(), e.hide()) : e._config.keyboard || "Escape" !== t.key || e._triggerBackdropTransition()
  29294. }) : $.off(this._element, "keydown.dismiss.bs.modal")
  29295. }
  29296. }, {
  29297. key: "_setResizeEvent",
  29298. value: function () {
  29299. var t = this;
  29300. this._isShown ? $.on(window, "resize.bs.modal", function () {
  29301. return t._adjustDialog()
  29302. }) : $.off(window, "resize.bs.modal")
  29303. }
  29304. }, {
  29305. key: "_hideModal",
  29306. value: function () {
  29307. var t = this;
  29308. this._element.style.display = "none", this._element.setAttribute("aria-hidden", !0), this._element.removeAttribute("aria-modal"), this._element.removeAttribute("role"), this._isTransitioning = !1, this._backdrop.hide(function () {
  29309. document.body.classList.remove("modal-open"), t._resetAdjustments(), t._scrollBar.reset(), $.trigger(t._element, "hidden.bs.modal")
  29310. })
  29311. }
  29312. }, {
  29313. key: "_showBackdrop",
  29314. value: function (t) {
  29315. var e = this;
  29316. $.on(this._element, "click.dismiss.bs.modal", function (t) {
  29317. e._ignoreBackdropClick ? e._ignoreBackdropClick = !1 : t.target === t.currentTarget && (!0 === e._config.backdrop ? e.hide() : "static" === e._config.backdrop && e._triggerBackdropTransition())
  29318. }), this._backdrop.show(t)
  29319. }
  29320. }, {
  29321. key: "_isAnimated",
  29322. value: function () {
  29323. return this._element.classList.contains("fade")
  29324. }
  29325. }, {
  29326. key: "_triggerBackdropTransition",
  29327. value: function () {
  29328. var t = this;
  29329. if (!$.trigger(this._element, "hidePrevented.bs.modal").defaultPrevented) {
  29330. var e = this._element,
  29331. i = e.classList,
  29332. n = e.scrollHeight,
  29333. s = e.style,
  29334. o = n > document.documentElement.clientHeight;
  29335. !o && "hidden" === s.overflowY || i.contains("modal-static") || (o || (s.overflowY = "hidden"), i.add("modal-static"), this._queueCallback(function () {
  29336. i.remove("modal-static"), o || t._queueCallback(function () {
  29337. s.overflowY = ""
  29338. }, t._dialog)
  29339. }, this._dialog), this._element.focus())
  29340. }
  29341. }
  29342. }, {
  29343. key: "_adjustDialog",
  29344. value: function () {
  29345. var t = this._element.scrollHeight > document.documentElement.clientHeight,
  29346. e = this._scrollBar.getWidth(),
  29347. i = 0 < e;
  29348. (!i && t && !l() || i && !t && l()) && (this._element.style.paddingLeft = e + "px"), (i && !t && !l() || !i && t && l()) && (this._element.style.paddingRight = e + "px")
  29349. }
  29350. }, {
  29351. key: "_resetAdjustments",
  29352. value: function () {
  29353. this._element.style.paddingLeft = "", this._element.style.paddingRight = ""
  29354. }
  29355. }], [{
  29356. key: "jQueryInterface",
  29357. value: function (e, i) {
  29358. return this.each(function () {
  29359. var t = s.getOrCreateInstance(this, e);
  29360. if ("string" == typeof e) {
  29361. if (void 0 === t[e]) throw new TypeError('No method named "'.concat(e, '"'));
  29362. t[e](i)
  29363. }
  29364. })
  29365. }
  29366. }, {
  29367. key: "Default",
  29368. get: function () {
  29369. return Ie
  29370. }
  29371. }, {
  29372. key: "NAME",
  29373. get: function () {
  29374. return "modal"
  29375. }
  29376. }]), s
  29377. }();
  29378. $.on(document, "click.bs.modal.data-api", '[data-bs-toggle="modal"]', function (t) {
  29379. var e = this,
  29380. i = a(this);
  29381. ["A", "AREA"].includes(this.tagName) && t.preventDefault(), $.one(i, "show.bs.modal", function (t) {
  29382. t.defaultPrevented || $.one(i, "hidden.bs.modal", function () {
  29383. s(e) && e.focus()
  29384. })
  29385. }), Me.getOrCreateInstance(i).toggle(this)
  29386. }), t(Me);
  29387. var Ne = {
  29388. backdrop: !0,
  29389. keyboard: !0,
  29390. scroll: !1
  29391. },
  29392. Le = {
  29393. backdrop: "boolean",
  29394. keyboard: "boolean",
  29395. scroll: "boolean"
  29396. },
  29397. He = function (t) {
  29398. _inherits(s, U);
  29399. var n = _createSuper(s);
  29400. function s(t, e) {
  29401. var i;
  29402. return _classCallCheck(this, s), (i = n.call(this, t))._config = i._getConfig(e), i._isShown = !1, i._backdrop = i._initializeBackDrop(), i._addEventListeners(), i
  29403. }
  29404. return _createClass(s, [{
  29405. key: "toggle",
  29406. value: function (t) {
  29407. return this._isShown ? this.hide() : this.show(t)
  29408. }
  29409. }, {
  29410. key: "show",
  29411. value: function (t) {
  29412. var e = this;
  29413. this._isShown || $.trigger(this._element, "show.bs.offcanvas", {
  29414. relatedTarget: t
  29415. }).defaultPrevented || (this._isShown = !0, this._element.style.visibility = "visible", this._backdrop.show(), this._config.scroll || ((new De).hide(), this._enforceFocusOnElement(this._element)), this._element.removeAttribute("aria-hidden"), this._element.setAttribute("aria-modal", !0), this._element.setAttribute("role", "dialog"), this._element.classList.add("show"), this._queueCallback(function () {
  29416. $.trigger(e._element, "shown.bs.offcanvas", {
  29417. relatedTarget: t
  29418. })
  29419. }, this._element, !0))
  29420. }
  29421. }, {
  29422. key: "hide",
  29423. value: function () {
  29424. var t = this;
  29425. this._isShown && ($.trigger(this._element, "hide.bs.offcanvas").defaultPrevented || ($.off(document, "focusin.bs.offcanvas"), this._element.blur(), this._isShown = !1, this._element.classList.remove("show"), this._backdrop.hide(), this._queueCallback(function () {
  29426. t._element.setAttribute("aria-hidden", !0), t._element.removeAttribute("aria-modal"), t._element.removeAttribute("role"), t._element.style.visibility = "hidden", t._config.scroll || (new De).reset(), $.trigger(t._element, "hidden.bs.offcanvas")
  29427. }, this._element, !0)))
  29428. }
  29429. }, {
  29430. key: "dispose",
  29431. value: function () {
  29432. this._backdrop.dispose(), _get2(_getPrototypeOf(s.prototype), "dispose", this).call(this), $.off(document, "focusin.bs.offcanvas")
  29433. }
  29434. }, {
  29435. key: "_getConfig",
  29436. value: function (t) {
  29437. return t = _objectSpread(_objectSpread(_objectSpread({}, Ne), Q.getDataAttributes(this._element)), "object" == _typeof(t) ? t : {}), d("offcanvas", t, Le), t
  29438. }
  29439. }, {
  29440. key: "_initializeBackDrop",
  29441. value: function () {
  29442. var t = this;
  29443. return new Pe({
  29444. isVisible: this._config.backdrop,
  29445. isAnimated: !0,
  29446. rootElement: this._element.parentNode,
  29447. clickCallback: function () {
  29448. return t.hide()
  29449. }
  29450. })
  29451. }
  29452. }, {
  29453. key: "_enforceFocusOnElement",
  29454. value: function (e) {
  29455. $.off(document, "focusin.bs.offcanvas"), $.on(document, "focusin.bs.offcanvas", function (t) {
  29456. document === t.target || e === t.target || e.contains(t.target) || e.focus()
  29457. }), e.focus()
  29458. }
  29459. }, {
  29460. key: "_addEventListeners",
  29461. value: function () {
  29462. var e = this;
  29463. $.on(this._element, "click.dismiss.bs.offcanvas", '[data-bs-dismiss="offcanvas"]', function () {
  29464. return e.hide()
  29465. }), $.on(this._element, "keydown.dismiss.bs.offcanvas", function (t) {
  29466. e._config.keyboard && "Escape" === t.key && e.hide()
  29467. })
  29468. }
  29469. }], [{
  29470. key: "jQueryInterface",
  29471. value: function (e) {
  29472. return this.each(function () {
  29473. var t = s.getOrCreateInstance(this, e);
  29474. if ("string" == typeof e) {
  29475. if (void 0 === t[e] || e.startsWith("_") || "constructor" === e) throw new TypeError('No method named "'.concat(e, '"'));
  29476. t[e](this)
  29477. }
  29478. })
  29479. }
  29480. }, {
  29481. key: "NAME",
  29482. get: function () {
  29483. return "offcanvas"
  29484. }
  29485. }, {
  29486. key: "Default",
  29487. get: function () {
  29488. return Ne
  29489. }
  29490. }]), s
  29491. }();
  29492. $.on(document, "click.bs.offcanvas.data-api", '[data-bs-toggle="offcanvas"]', function (t) {
  29493. var e = this,
  29494. i = a(this);
  29495. if (["A", "AREA"].includes(this.tagName) && t.preventDefault(), !u(this)) {
  29496. $.one(i, "hidden.bs.offcanvas", function () {
  29497. s(e) && e.focus()
  29498. });
  29499. var n = y(".offcanvas.show");
  29500. n && n !== i && He.getInstance(n).hide(), He.getOrCreateInstance(i).toggle(this)
  29501. }
  29502. }), $.on(window, "load.bs.offcanvas.data-api", function () {
  29503. return _(".offcanvas.show").forEach(function (t) {
  29504. return He.getOrCreateInstance(t).show()
  29505. })
  29506. }), t(He);
  29507. var je = new Set(["background", "cite", "href", "itemtype", "longdesc", "poster", "src", "xlink:href"]),
  29508. ze = /^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,
  29509. We = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;
  29510. function $e(t, a, e) {
  29511. var i;
  29512. if (!t.length) return t;
  29513. if (e && "function" == typeof e) return e(t);
  29514. for (var n = (new window.DOMParser).parseFromString(t, "text/html"), l = Object.keys(a), c = (i = []).concat.apply(i, _toConsumableArray(n.body.querySelectorAll("*"))), s = function (t, e) {
  29515. var i, n = c[t],
  29516. s = n.nodeName.toLowerCase();
  29517. if (!l.includes(s)) return n.remove(), "continue";
  29518. var o = (i = []).concat.apply(i, _toConsumableArray(n.attributes)),
  29519. r = [].concat(a["*"] || [], a[s] || []);
  29520. o.forEach(function (t) {
  29521. (function (t, e) {
  29522. var i = t.nodeName.toLowerCase();
  29523. if (e.includes(i)) return !je.has(i) || Boolean(ze.test(t.nodeValue) || We.test(t.nodeValue));
  29524. for (var n = e.filter(function (t) {
  29525. return t instanceof RegExp
  29526. }), s = 0, o = n.length; s < o; s++)
  29527. if (n[s].test(i)) return !0;
  29528. return !1
  29529. })(t, r) || n.removeAttribute(t.nodeName)
  29530. })
  29531. }, o = 0, r = c.length; o < r; o++) s(o);
  29532. return n.body.innerHTML
  29533. }
  29534. var Re = new RegExp("(^|\\s)bs-tooltip\\S+", "g"),
  29535. Fe = new Set(["sanitize", "allowList", "sanitizeFn"]),
  29536. qe = {
  29537. animation: "boolean",
  29538. template: "string",
  29539. title: "(string|element|function)",
  29540. trigger: "string",
  29541. delay: "(number|object)",
  29542. html: "boolean",
  29543. selector: "(string|boolean)",
  29544. placement: "(string|function)",
  29545. offset: "(array|string|function)",
  29546. container: "(string|element|boolean)",
  29547. fallbackPlacements: "array",
  29548. boundary: "(string|element)",
  29549. customClass: "(string|function)",
  29550. sanitize: "boolean",
  29551. sanitizeFn: "(null|function)",
  29552. allowList: "object",
  29553. popperConfig: "(null|object|function)"
  29554. },
  29555. Be = {
  29556. AUTO: "auto",
  29557. TOP: "top",
  29558. RIGHT: l() ? "left" : "right",
  29559. BOTTOM: "bottom",
  29560. LEFT: l() ? "right" : "left"
  29561. },
  29562. Ue = {
  29563. animation: !0,
  29564. template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
  29565. trigger: "hover focus",
  29566. title: "",
  29567. delay: 0,
  29568. html: !1,
  29569. selector: !1,
  29570. placement: "top",
  29571. offset: [0, 0],
  29572. container: !1,
  29573. fallbackPlacements: ["top", "right", "bottom", "left"],
  29574. boundary: "clippingParents",
  29575. customClass: "",
  29576. sanitize: !0,
  29577. sanitizeFn: null,
  29578. allowList: {
  29579. "*": ["class", "dir", "id", "lang", "role", /^aria-[\w-]*$/i],
  29580. a: ["target", "href", "title", "rel"],
  29581. area: [],
  29582. b: [],
  29583. br: [],
  29584. col: [],
  29585. code: [],
  29586. div: [],
  29587. em: [],
  29588. hr: [],
  29589. h1: [],
  29590. h2: [],
  29591. h3: [],
  29592. h4: [],
  29593. h5: [],
  29594. h6: [],
  29595. i: [],
  29596. img: ["src", "srcset", "alt", "title", "width", "height"],
  29597. li: [],
  29598. ol: [],
  29599. p: [],
  29600. pre: [],
  29601. s: [],
  29602. small: [],
  29603. span: [],
  29604. sub: [],
  29605. sup: [],
  29606. strong: [],
  29607. u: [],
  29608. ul: []
  29609. },
  29610. popperConfig: null
  29611. },
  29612. Ye = {
  29613. HIDE: "hide.bs.tooltip",
  29614. HIDDEN: "hidden.bs.tooltip",
  29615. SHOW: "show.bs.tooltip",
  29616. SHOWN: "shown.bs.tooltip",
  29617. INSERTED: "inserted.bs.tooltip",
  29618. CLICK: "click.bs.tooltip",
  29619. FOCUSIN: "focusin.bs.tooltip",
  29620. FOCUSOUT: "focusout.bs.tooltip",
  29621. MOUSEENTER: "mouseenter.bs.tooltip",
  29622. MOUSELEAVE: "mouseleave.bs.tooltip"
  29623. },
  29624. Ve = function (t) {
  29625. _inherits(s, U);
  29626. var n = _createSuper(s);
  29627. function s(t, e) {
  29628. var i;
  29629. if (_classCallCheck(this, s), void 0 === me) throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");
  29630. return (i = n.call(this, t))._isEnabled = !0, i._timeout = 0, i._hoverState = "", i._activeTrigger = {}, i._popper = null, i._config = i._getConfig(e), i.tip = null, i._setListeners(), i
  29631. }
  29632. return _createClass(s, [{
  29633. key: "enable",
  29634. value: function () {
  29635. this._isEnabled = !0
  29636. }
  29637. }, {
  29638. key: "disable",
  29639. value: function () {
  29640. this._isEnabled = !1
  29641. }
  29642. }, {
  29643. key: "toggleEnabled",
  29644. value: function () {
  29645. this._isEnabled = !this._isEnabled
  29646. }
  29647. }, {
  29648. key: "toggle",
  29649. value: function (t) {
  29650. if (this._isEnabled)
  29651. if (t) {
  29652. var e = this._initializeOnDelegatedTarget(t);
  29653. e._activeTrigger.click = !e._activeTrigger.click, e._isWithActiveTrigger() ? e._enter(null, e) : e._leave(null, e)
  29654. } else {
  29655. if (this.getTipElement().classList.contains("show")) return void this._leave(null, this);
  29656. this._enter(null, this)
  29657. }
  29658. }
  29659. }, {
  29660. key: "dispose",
  29661. value: function () {
  29662. clearTimeout(this._timeout), $.off(this._element.closest(".modal"), "hide.bs.modal", this._hideModalHandler), this.tip && this.tip.remove(), this._popper && this._popper.destroy(), _get2(_getPrototypeOf(s.prototype), "dispose", this).call(this)
  29663. }
  29664. }, {
  29665. key: "show",
  29666. value: function () {
  29667. var t, e, i = this;
  29668. if ("none" === this._element.style.display) throw new Error("Please use show on visible elements");
  29669. if (this.isWithContent() && this._isEnabled) {
  29670. var n = $.trigger(this._element, this.constructor.Event.SHOW),
  29671. s = function t(e) {
  29672. if (!document.documentElement.attachShadow) return null;
  29673. if ("function" != typeof e.getRootNode) return e instanceof ShadowRoot ? e : e.parentNode ? t(e.parentNode) : null;
  29674. var i = e.getRootNode();
  29675. return i instanceof ShadowRoot ? i : null
  29676. }(this._element),
  29677. o = null === s ? this._element.ownerDocument.documentElement.contains(this._element) : s.contains(this._element);
  29678. if (!n.defaultPrevented && o) {
  29679. var r = this.getTipElement(),
  29680. a = p(this.constructor.NAME);
  29681. r.setAttribute("id", a), this._element.setAttribute("aria-describedby", a), this.setContent(), this._config.animation && r.classList.add("fade");
  29682. var l = "function" == typeof this._config.placement ? this._config.placement.call(this, r, this._element) : this._config.placement,
  29683. c = this._getAttachment(l);
  29684. this._addAttachmentClass(c);
  29685. var u = this._config.container;
  29686. F(r, this.constructor.DATA_KEY, this), this._element.ownerDocument.documentElement.contains(this.tip) || (u.appendChild(r), $.trigger(this._element, this.constructor.Event.INSERTED)), this._popper ? this._popper.update() : this._popper = ge(this._element, r, this._getPopperConfig(c)), r.classList.add("show");
  29687. var h = "function" == typeof this._config.customClass ? this._config.customClass() : this._config.customClass;
  29688. h && (t = r.classList).add.apply(t, _toConsumableArray(h.split(" "))), "ontouchstart" in document.documentElement && (e = []).concat.apply(e, _toConsumableArray(document.body.children)).forEach(function (t) {
  29689. $.on(t, "mouseover", f)
  29690. });
  29691. var d = this.tip.classList.contains("fade");
  29692. this._queueCallback(function () {
  29693. var t = i._hoverState;
  29694. i._hoverState = null, $.trigger(i._element, i.constructor.Event.SHOWN), "out" === t && i._leave(null, i)
  29695. }, this.tip, d)
  29696. }
  29697. }
  29698. }
  29699. }, {
  29700. key: "hide",
  29701. value: function () {
  29702. var t, e = this;
  29703. if (this._popper) {
  29704. var i = this.getTipElement();
  29705. if (!$.trigger(this._element, this.constructor.Event.HIDE).defaultPrevented) {
  29706. i.classList.remove("show"), "ontouchstart" in document.documentElement && (t = []).concat.apply(t, _toConsumableArray(document.body.children)).forEach(function (t) {
  29707. return $.off(t, "mouseover", f)
  29708. }), this._activeTrigger.click = !1, this._activeTrigger.focus = !1, this._activeTrigger.hover = !1;
  29709. var n = this.tip.classList.contains("fade");
  29710. this._queueCallback(function () {
  29711. e._isWithActiveTrigger() || ("show" !== e._hoverState && i.remove(), e._cleanTipClass(), e._element.removeAttribute("aria-describedby"), $.trigger(e._element, e.constructor.Event.HIDDEN), e._popper && (e._popper.destroy(), e._popper = null))
  29712. }, this.tip, n), this._hoverState = ""
  29713. }
  29714. }
  29715. }
  29716. }, {
  29717. key: "update",
  29718. value: function () {
  29719. null !== this._popper && this._popper.update()
  29720. }
  29721. }, {
  29722. key: "isWithContent",
  29723. value: function () {
  29724. return Boolean(this.getTitle())
  29725. }
  29726. }, {
  29727. key: "getTipElement",
  29728. value: function () {
  29729. if (this.tip) return this.tip;
  29730. var t = document.createElement("div");
  29731. return t.innerHTML = this._config.template, this.tip = t.children[0], this.tip
  29732. }
  29733. }, {
  29734. key: "setContent",
  29735. value: function () {
  29736. var t = this.getTipElement();
  29737. this.setElementContent(y(".tooltip-inner", t), this.getTitle()), t.classList.remove("fade", "show")
  29738. }
  29739. }, {
  29740. key: "setElementContent",
  29741. value: function (t, e) {
  29742. if (null !== t) return c(e) ? (e = r(e), void(this._config.html ? e.parentNode !== t && (t.innerHTML = "", t.appendChild(e)) : t.textContent = e.textContent)) : void(this._config.html ? (this._config.sanitize && (e = $e(e, this._config.allowList, this._config.sanitizeFn)), t.innerHTML = e) : t.textContent = e)
  29743. }
  29744. }, {
  29745. key: "getTitle",
  29746. value: function () {
  29747. var t = this._element.getAttribute("data-bs-original-title");
  29748. return t || (t = "function" == typeof this._config.title ? this._config.title.call(this._element) : this._config.title), t
  29749. }
  29750. }, {
  29751. key: "updateAttachment",
  29752. value: function (t) {
  29753. return "right" === t ? "end" : "left" === t ? "start" : t
  29754. }
  29755. }, {
  29756. key: "_initializeOnDelegatedTarget",
  29757. value: function (t, e) {
  29758. var i = this.constructor.DATA_KEY;
  29759. return (e = e || q(t.delegateTarget, i)) || (e = new this.constructor(t.delegateTarget, this._getDelegateConfig()), F(t.delegateTarget, i, e)), e
  29760. }
  29761. }, {
  29762. key: "_getOffset",
  29763. value: function () {
  29764. var e = this,
  29765. i = this._config.offset;
  29766. return "string" == typeof i ? i.split(",").map(function (t) {
  29767. return Number.parseInt(t, 10)
  29768. }) : "function" == typeof i ? function (t) {
  29769. return i(t, e._element)
  29770. } : i
  29771. }
  29772. }, {
  29773. key: "_getPopperConfig",
  29774. value: function (t) {
  29775. var e = this,
  29776. i = {
  29777. placement: t,
  29778. modifiers: [{
  29779. name: "flip",
  29780. options: {
  29781. fallbackPlacements: this._config.fallbackPlacements
  29782. }
  29783. }, {
  29784. name: "offset",
  29785. options: {
  29786. offset: this._getOffset()
  29787. }
  29788. }, {
  29789. name: "preventOverflow",
  29790. options: {
  29791. boundary: this._config.boundary
  29792. }
  29793. }, {
  29794. name: "arrow",
  29795. options: {
  29796. element: ".".concat(this.constructor.NAME, "-arrow")
  29797. }
  29798. }, {
  29799. name: "onChange",
  29800. enabled: !0,
  29801. phase: "afterWrite",
  29802. fn: function (t) {
  29803. return e._handlePopperPlacementChange(t)
  29804. }
  29805. }],
  29806. onFirstUpdate: function (t) {
  29807. t.options.placement !== t.placement && e._handlePopperPlacementChange(t)
  29808. }
  29809. };
  29810. return _objectSpread(_objectSpread({}, i), "function" == typeof this._config.popperConfig ? this._config.popperConfig(i) : this._config.popperConfig)
  29811. }
  29812. }, {
  29813. key: "_addAttachmentClass",
  29814. value: function (t) {
  29815. this.getTipElement().classList.add("bs-tooltip-" + this.updateAttachment(t))
  29816. }
  29817. }, {
  29818. key: "_getAttachment",
  29819. value: function (t) {
  29820. return Be[t.toUpperCase()]
  29821. }
  29822. }, {
  29823. key: "_setListeners",
  29824. value: function () {
  29825. var n = this;
  29826. this._config.trigger.split(" ").forEach(function (t) {
  29827. if ("click" === t) $.on(n._element, n.constructor.Event.CLICK, n._config.selector, function (t) {
  29828. return n.toggle(t)
  29829. });
  29830. else if ("manual" !== t) {
  29831. var e = "hover" === t ? n.constructor.Event.MOUSEENTER : n.constructor.Event.FOCUSIN,
  29832. i = "hover" === t ? n.constructor.Event.MOUSELEAVE : n.constructor.Event.FOCUSOUT;
  29833. $.on(n._element, e, n._config.selector, function (t) {
  29834. return n._enter(t)
  29835. }), $.on(n._element, i, n._config.selector, function (t) {
  29836. return n._leave(t)
  29837. })
  29838. }
  29839. }), this._hideModalHandler = function () {
  29840. n._element && n.hide()
  29841. }, $.on(this._element.closest(".modal"), "hide.bs.modal", this._hideModalHandler), this._config.selector ? this._config = _objectSpread(_objectSpread({}, this._config), {}, {
  29842. trigger: "manual",
  29843. selector: ""
  29844. }) : this._fixTitle()
  29845. }
  29846. }, {
  29847. key: "_fixTitle",
  29848. value: function () {
  29849. var t = this._element.getAttribute("title"),
  29850. e = _typeof(this._element.getAttribute("data-bs-original-title"));
  29851. (t || "string" !== e) && (this._element.setAttribute("data-bs-original-title", t || ""), !t || this._element.getAttribute("aria-label") || this._element.textContent || this._element.setAttribute("aria-label", t), this._element.setAttribute("title", ""))
  29852. }
  29853. }, {
  29854. key: "_enter",
  29855. value: function (t, e) {
  29856. e = this._initializeOnDelegatedTarget(t, e), t && (e._activeTrigger["focusin" === t.type ? "focus" : "hover"] = !0), e.getTipElement().classList.contains("show") || "show" === e._hoverState ? e._hoverState = "show" : (clearTimeout(e._timeout), e._hoverState = "show", e._config.delay && e._config.delay.show ? e._timeout = setTimeout(function () {
  29857. "show" === e._hoverState && e.show()
  29858. }, e._config.delay.show) : e.show())
  29859. }
  29860. }, {
  29861. key: "_leave",
  29862. value: function (t, e) {
  29863. e = this._initializeOnDelegatedTarget(t, e), t && (e._activeTrigger["focusout" === t.type ? "focus" : "hover"] = e._element.contains(t.relatedTarget)), e._isWithActiveTrigger() || (clearTimeout(e._timeout), e._hoverState = "out", e._config.delay && e._config.delay.hide ? e._timeout = setTimeout(function () {
  29864. "out" === e._hoverState && e.hide()
  29865. }, e._config.delay.hide) : e.hide())
  29866. }
  29867. }, {
  29868. key: "_isWithActiveTrigger",
  29869. value: function () {
  29870. for (var t in this._activeTrigger)
  29871. if (this._activeTrigger[t]) return !0;
  29872. return !1
  29873. }
  29874. }, {
  29875. key: "_getConfig",
  29876. value: function (t) {
  29877. var e = Q.getDataAttributes(this._element);
  29878. return Object.keys(e).forEach(function (t) {
  29879. Fe.has(t) && delete e[t]
  29880. }), (t = _objectSpread(_objectSpread(_objectSpread({}, this.constructor.Default), e), "object" == _typeof(t) && t ? t : {})).container = !1 === t.container ? document.body : r(t.container), "number" == typeof t.delay && (t.delay = {
  29881. show: t.delay,
  29882. hide: t.delay
  29883. }), "number" == typeof t.title && (t.title = t.title.toString()), "number" == typeof t.content && (t.content = t.content.toString()), d("tooltip", t, this.constructor.DefaultType), t.sanitize && (t.template = $e(t.template, t.allowList, t.sanitizeFn)), t
  29884. }
  29885. }, {
  29886. key: "_getDelegateConfig",
  29887. value: function () {
  29888. var t = {};
  29889. if (this._config)
  29890. for (var e in this._config) this.constructor.Default[e] !== this._config[e] && (t[e] = this._config[e]);
  29891. return t
  29892. }
  29893. }, {
  29894. key: "_cleanTipClass",
  29895. value: function () {
  29896. var e = this.getTipElement(),
  29897. t = e.getAttribute("class").match(Re);
  29898. null !== t && 0 < t.length && t.map(function (t) {
  29899. return t.trim()
  29900. }).forEach(function (t) {
  29901. return e.classList.remove(t)
  29902. })
  29903. }
  29904. }, {
  29905. key: "_handlePopperPlacementChange",
  29906. value: function (t) {
  29907. var e = t.state;
  29908. e && (this.tip = e.elements.popper, this._cleanTipClass(), this._addAttachmentClass(this._getAttachment(e.placement)))
  29909. }
  29910. }], [{
  29911. key: "jQueryInterface",
  29912. value: function (e) {
  29913. return this.each(function () {
  29914. var t = s.getOrCreateInstance(this, e);
  29915. if ("string" == typeof e) {
  29916. if (void 0 === t[e]) throw new TypeError('No method named "'.concat(e, '"'));
  29917. t[e]()
  29918. }
  29919. })
  29920. }
  29921. }, {
  29922. key: "Default",
  29923. get: function () {
  29924. return Ue
  29925. }
  29926. }, {
  29927. key: "NAME",
  29928. get: function () {
  29929. return "tooltip"
  29930. }
  29931. }, {
  29932. key: "Event",
  29933. get: function () {
  29934. return Ye
  29935. }
  29936. }, {
  29937. key: "DefaultType",
  29938. get: function () {
  29939. return qe
  29940. }
  29941. }]), s
  29942. }();
  29943. t(Ve);
  29944. var Ke = new RegExp("(^|\\s)bs-popover\\S+", "g"),
  29945. Xe = _objectSpread(_objectSpread({}, Ve.Default), {}, {
  29946. placement: "right",
  29947. offset: [0, 8],
  29948. trigger: "click",
  29949. content: "",
  29950. template: '<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'
  29951. }),
  29952. Qe = _objectSpread(_objectSpread({}, Ve.DefaultType), {}, {
  29953. content: "(string|element|function)"
  29954. }),
  29955. Ge = {
  29956. HIDE: "hide.bs.popover",
  29957. HIDDEN: "hidden.bs.popover",
  29958. SHOW: "show.bs.popover",
  29959. SHOWN: "shown.bs.popover",
  29960. INSERTED: "inserted.bs.popover",
  29961. CLICK: "click.bs.popover",
  29962. FOCUSIN: "focusin.bs.popover",
  29963. FOCUSOUT: "focusout.bs.popover",
  29964. MOUSEENTER: "mouseenter.bs.popover",
  29965. MOUSELEAVE: "mouseleave.bs.popover"
  29966. },
  29967. Je = function (t) {
  29968. _inherits(i, Ve);
  29969. var e = _createSuper(i);
  29970. function i() {
  29971. return _classCallCheck(this, i), e.apply(this, arguments)
  29972. }
  29973. return _createClass(i, [{
  29974. key: "isWithContent",
  29975. value: function () {
  29976. return this.getTitle() || this._getContent()
  29977. }
  29978. }, {
  29979. key: "getTipElement",
  29980. value: function () {
  29981. return this.tip || (this.tip = _get2(_getPrototypeOf(i.prototype), "getTipElement", this).call(this), this.getTitle() || y(".popover-header", this.tip).remove(), this._getContent() || y(".popover-body", this.tip).remove()), this.tip
  29982. }
  29983. }, {
  29984. key: "setContent",
  29985. value: function () {
  29986. var t = this.getTipElement();
  29987. this.setElementContent(y(".popover-header", t), this.getTitle());
  29988. var e = this._getContent();
  29989. "function" == typeof e && (e = e.call(this._element)), this.setElementContent(y(".popover-body", t), e), t.classList.remove("fade", "show")
  29990. }
  29991. }, {
  29992. key: "_addAttachmentClass",
  29993. value: function (t) {
  29994. this.getTipElement().classList.add("bs-popover-" + this.updateAttachment(t))
  29995. }
  29996. }, {
  29997. key: "_getContent",
  29998. value: function () {
  29999. return this._element.getAttribute("data-bs-content") || this._config.content
  30000. }
  30001. }, {
  30002. key: "_cleanTipClass",
  30003. value: function () {
  30004. var e = this.getTipElement(),
  30005. t = e.getAttribute("class").match(Ke);
  30006. null !== t && 0 < t.length && t.map(function (t) {
  30007. return t.trim()
  30008. }).forEach(function (t) {
  30009. return e.classList.remove(t)
  30010. })
  30011. }
  30012. }], [{
  30013. key: "jQueryInterface",
  30014. value: function (e) {
  30015. return this.each(function () {
  30016. var t = i.getOrCreateInstance(this, e);
  30017. if ("string" == typeof e) {
  30018. if (void 0 === t[e]) throw new TypeError('No method named "'.concat(e, '"'));
  30019. t[e]()
  30020. }
  30021. })
  30022. }
  30023. }, {
  30024. key: "Default",
  30025. get: function () {
  30026. return Xe
  30027. }
  30028. }, {
  30029. key: "NAME",
  30030. get: function () {
  30031. return "popover"
  30032. }
  30033. }, {
  30034. key: "Event",
  30035. get: function () {
  30036. return Ge
  30037. }
  30038. }, {
  30039. key: "DefaultType",
  30040. get: function () {
  30041. return Qe
  30042. }
  30043. }]), i
  30044. }();
  30045. t(Je);
  30046. var Ze = {
  30047. offset: 10,
  30048. method: "auto",
  30049. target: ""
  30050. },
  30051. ti = {
  30052. offset: "number",
  30053. method: "string",
  30054. target: "(string|element)"
  30055. },
  30056. ei = function (t) {
  30057. _inherits(s, U);
  30058. var n = _createSuper(s);
  30059. function s(t, e) {
  30060. var i;
  30061. return _classCallCheck(this, s), (i = n.call(this, t))._scrollElement = "BODY" === i._element.tagName ? window : i._element, i._config = i._getConfig(e), i._selector = "".concat(i._config.target, " .nav-link, ").concat(i._config.target, " .list-group-item, ").concat(i._config.target, " .dropdown-item"), i._offsets = [], i._targets = [], i._activeTarget = null, i._scrollHeight = 0, $.on(i._scrollElement, "scroll.bs.scrollspy", function () {
  30062. return i._process()
  30063. }), i.refresh(), i._process(), i
  30064. }
  30065. return _createClass(s, [{
  30066. key: "refresh",
  30067. value: function () {
  30068. var e = this,
  30069. t = this._scrollElement === this._scrollElement.window ? "offset" : "position",
  30070. s = "auto" === this._config.method ? t : this._config.method,
  30071. o = "position" === s ? this._getScrollTop() : 0;
  30072. this._offsets = [], this._targets = [], this._scrollHeight = this._getScrollHeight(), _(this._selector).map(function (t) {
  30073. var e = h(t),
  30074. i = e ? y(e) : null;
  30075. if (i) {
  30076. var n = i.getBoundingClientRect();
  30077. if (n.width || n.height) return [Q[s](i).top + o, e]
  30078. }
  30079. return null
  30080. }).filter(function (t) {
  30081. return t
  30082. }).sort(function (t, e) {
  30083. return t[0] - e[0]
  30084. }).forEach(function (t) {
  30085. e._offsets.push(t[0]), e._targets.push(t[1])
  30086. })
  30087. }
  30088. }, {
  30089. key: "dispose",
  30090. value: function () {
  30091. $.off(this._scrollElement, ".bs.scrollspy"), _get2(_getPrototypeOf(s.prototype), "dispose", this).call(this)
  30092. }
  30093. }, {
  30094. key: "_getConfig",
  30095. value: function (t) {
  30096. if ("string" != typeof (t = _objectSpread(_objectSpread(_objectSpread({}, Ze), Q.getDataAttributes(this._element)), "object" == _typeof(t) && t ? t : {})).target && c(t.target)) {
  30097. var e = t.target.id;
  30098. e || (e = p("scrollspy"), t.target.id = e), t.target = "#" + e
  30099. }
  30100. return d("scrollspy", t, ti), t
  30101. }
  30102. }, {
  30103. key: "_getScrollTop",
  30104. value: function () {
  30105. return this._scrollElement === window ? this._scrollElement.pageYOffset : this._scrollElement.scrollTop
  30106. }
  30107. }, {
  30108. key: "_getScrollHeight",
  30109. value: function () {
  30110. return this._scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight)
  30111. }
  30112. }, {
  30113. key: "_getOffsetHeight",
  30114. value: function () {
  30115. return this._scrollElement === window ? window.innerHeight : this._scrollElement.getBoundingClientRect().height
  30116. }
  30117. }, {
  30118. key: "_process",
  30119. value: function () {
  30120. var t = this._getScrollTop() + this._config.offset,
  30121. e = this._getScrollHeight(),
  30122. i = this._config.offset + e - this._getOffsetHeight();
  30123. if (this._scrollHeight !== e && this.refresh(), i <= t) {
  30124. var n = this._targets[this._targets.length - 1];
  30125. this._activeTarget !== n && this._activate(n)
  30126. } else {
  30127. if (this._activeTarget && t < this._offsets[0] && 0 < this._offsets[0]) return this._activeTarget = null, void this._clear();
  30128. for (var s = this._offsets.length; s--;) this._activeTarget !== this._targets[s] && t >= this._offsets[s] && (void 0 === this._offsets[s + 1] || t < this._offsets[s + 1]) && this._activate(this._targets[s])
  30129. }
  30130. }
  30131. }, {
  30132. key: "_activate",
  30133. value: function (e) {
  30134. this._activeTarget = e, this._clear();
  30135. var t = this._selector.split(",").map(function (t) {
  30136. return "".concat(t, '[data-bs-target="').concat(e, '"],').concat(t, '[href="').concat(e, '"]')
  30137. }),
  30138. i = y(t.join(","));
  30139. i.classList.contains("dropdown-item") ? (y(".dropdown-toggle", i.closest(".dropdown")).classList.add("active"), i.classList.add("active")) : (i.classList.add("active"), w(i, ".nav, .list-group").forEach(function (t) {
  30140. k(t, ".nav-link, .list-group-item").forEach(function (t) {
  30141. return t.classList.add("active")
  30142. }), k(t, ".nav-item").forEach(function (t) {
  30143. b(t, ".nav-link").forEach(function (t) {
  30144. return t.classList.add("active")
  30145. })
  30146. })
  30147. })), $.trigger(this._scrollElement, "activate.bs.scrollspy", {
  30148. relatedTarget: e
  30149. })
  30150. }
  30151. }, {
  30152. key: "_clear",
  30153. value: function () {
  30154. _(this._selector).filter(function (t) {
  30155. return t.classList.contains("active")
  30156. }).forEach(function (t) {
  30157. return t.classList.remove("active")
  30158. })
  30159. }
  30160. }], [{
  30161. key: "jQueryInterface",
  30162. value: function (e) {
  30163. return this.each(function () {
  30164. var t = s.getOrCreateInstance(this, e);
  30165. if ("string" == typeof e) {
  30166. if (void 0 === t[e]) throw new TypeError('No method named "'.concat(e, '"'));
  30167. t[e]()
  30168. }
  30169. })
  30170. }
  30171. }, {
  30172. key: "Default",
  30173. get: function () {
  30174. return Ze
  30175. }
  30176. }, {
  30177. key: "NAME",
  30178. get: function () {
  30179. return "scrollspy"
  30180. }
  30181. }]), s
  30182. }();
  30183. $.on(window, "load.bs.scrollspy.data-api", function () {
  30184. _('[data-bs-spy="scroll"]').forEach(function (t) {
  30185. return new ei(t)
  30186. })
  30187. }), t(ei);
  30188. var ii = function (t) {
  30189. _inherits(i, U);
  30190. var e = _createSuper(i);
  30191. function i() {
  30192. return _classCallCheck(this, i), e.apply(this, arguments)
  30193. }
  30194. return _createClass(i, [{
  30195. key: "show",
  30196. value: function () {
  30197. var t = this;
  30198. if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE || !this._element.classList.contains("active")) {
  30199. var e, i = a(this._element),
  30200. n = this._element.closest(".nav, .list-group");
  30201. if (n) {
  30202. var s = "UL" === n.nodeName || "OL" === n.nodeName ? ":scope > li > .active" : ".active";
  30203. e = (e = _(s, n))[e.length - 1]
  30204. }
  30205. var o = e ? $.trigger(e, "hide.bs.tab", {
  30206. relatedTarget: this._element
  30207. }) : null;
  30208. if (!($.trigger(this._element, "show.bs.tab", {
  30209. relatedTarget: e
  30210. }).defaultPrevented || null !== o && o.defaultPrevented)) {
  30211. this._activate(this._element, n);
  30212. var r = function () {
  30213. $.trigger(e, "hidden.bs.tab", {
  30214. relatedTarget: t._element
  30215. }), $.trigger(t._element, "shown.bs.tab", {
  30216. relatedTarget: e
  30217. })
  30218. };
  30219. i ? this._activate(i, i.parentNode, r) : r()
  30220. }
  30221. }
  30222. }
  30223. }, {
  30224. key: "_activate",
  30225. value: function (t, e, i) {
  30226. function n() {
  30227. return s._transitionComplete(t, o, i)
  30228. }
  30229. var s = this,
  30230. o = (!e || "UL" !== e.nodeName && "OL" !== e.nodeName ? b(e, ".active") : _(":scope > li > .active", e))[0],
  30231. r = i && o && o.classList.contains("fade");
  30232. o && r ? (o.classList.remove("show"), this._queueCallback(n, t, !0)) : n()
  30233. }
  30234. }, {
  30235. key: "_transitionComplete",
  30236. value: function (t, e, i) {
  30237. if (e) {
  30238. e.classList.remove("active");
  30239. var n = y(":scope > .dropdown-menu .active", e.parentNode);
  30240. n && n.classList.remove("active"), "tab" === e.getAttribute("role") && e.setAttribute("aria-selected", !1)
  30241. }
  30242. t.classList.add("active"), "tab" === t.getAttribute("role") && t.setAttribute("aria-selected", !0), g(t), t.classList.contains("fade") && t.classList.add("show");
  30243. var s = t.parentNode;
  30244. if (s && "LI" === s.nodeName && (s = s.parentNode), s && s.classList.contains("dropdown-menu")) {
  30245. var o = t.closest(".dropdown");
  30246. o && _(".dropdown-toggle", o).forEach(function (t) {
  30247. return t.classList.add("active")
  30248. }), t.setAttribute("aria-expanded", !0)
  30249. }
  30250. i && i()
  30251. }
  30252. }], [{
  30253. key: "jQueryInterface",
  30254. value: function (e) {
  30255. return this.each(function () {
  30256. var t = i.getOrCreateInstance(this);
  30257. if ("string" == typeof e) {
  30258. if (void 0 === t[e]) throw new TypeError('No method named "'.concat(e, '"'));
  30259. t[e]()
  30260. }
  30261. })
  30262. }
  30263. }, {
  30264. key: "NAME",
  30265. get: function () {
  30266. return "tab"
  30267. }
  30268. }]), i
  30269. }();
  30270. $.on(document, "click.bs.tab.data-api", '[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]', function (t) {
  30271. ["A", "AREA"].includes(this.tagName) && t.preventDefault(), u(this) || ii.getOrCreateInstance(this).show()
  30272. }), t(ii);
  30273. var ni = {
  30274. animation: "boolean",
  30275. autohide: "boolean",
  30276. delay: "number"
  30277. },
  30278. si = {
  30279. animation: !0,
  30280. autohide: !0,
  30281. delay: 5e3
  30282. },
  30283. oi = function (t) {
  30284. _inherits(s, U);
  30285. var n = _createSuper(s);
  30286. function s(t, e) {
  30287. var i;
  30288. return _classCallCheck(this, s), (i = n.call(this, t))._config = i._getConfig(e), i._timeout = null, i._hasMouseInteraction = !1, i._hasKeyboardInteraction = !1, i._setListeners(), i
  30289. }
  30290. return _createClass(s, [{
  30291. key: "show",
  30292. value: function () {
  30293. var t = this;
  30294. $.trigger(this._element, "show.bs.toast").defaultPrevented || (this._clearTimeout(), this._config.animation && this._element.classList.add("fade"), this._element.classList.remove("hide"), g(this._element), this._element.classList.add("showing"), this._queueCallback(function () {
  30295. t._element.classList.remove("showing"), t._element.classList.add("show"), $.trigger(t._element, "shown.bs.toast"), t._maybeScheduleHide()
  30296. }, this._element, this._config.animation))
  30297. }
  30298. }, {
  30299. key: "hide",
  30300. value: function () {
  30301. var t = this;
  30302. this._element.classList.contains("show") && ($.trigger(this._element, "hide.bs.toast").defaultPrevented || (this._element.classList.remove("show"), this._queueCallback(function () {
  30303. t._element.classList.add("hide"), $.trigger(t._element, "hidden.bs.toast")
  30304. }, this._element, this._config.animation)))
  30305. }
  30306. }, {
  30307. key: "dispose",
  30308. value: function () {
  30309. this._clearTimeout(), this._element.classList.contains("show") && this._element.classList.remove("show"), _get2(_getPrototypeOf(s.prototype), "dispose", this).call(this)
  30310. }
  30311. }, {
  30312. key: "_getConfig",
  30313. value: function (t) {
  30314. return t = _objectSpread(_objectSpread(_objectSpread({}, si), Q.getDataAttributes(this._element)), "object" == _typeof(t) && t ? t : {}), d("toast", t, this.constructor.DefaultType), t
  30315. }
  30316. }, {
  30317. key: "_maybeScheduleHide",
  30318. value: function () {
  30319. var t = this;
  30320. this._config.autohide && (this._hasMouseInteraction || this._hasKeyboardInteraction || (this._timeout = setTimeout(function () {
  30321. t.hide()
  30322. }, this._config.delay)))
  30323. }
  30324. }, {
  30325. key: "_onInteraction",
  30326. value: function (t, e) {
  30327. switch (t.type) {
  30328. case "mouseover":
  30329. case "mouseout":
  30330. this._hasMouseInteraction = e;
  30331. break;
  30332. case "focusin":
  30333. case "focusout":
  30334. this._hasKeyboardInteraction = e
  30335. }
  30336. if (e) this._clearTimeout();
  30337. else {
  30338. var i = t.relatedTarget;
  30339. this._element === i || this._element.contains(i) || this._maybeScheduleHide()
  30340. }
  30341. }
  30342. }, {
  30343. key: "_setListeners",
  30344. value: function () {
  30345. var e = this;
  30346. $.on(this._element, "click.dismiss.bs.toast", '[data-bs-dismiss="toast"]', function () {
  30347. return e.hide()
  30348. }), $.on(this._element, "mouseover.bs.toast", function (t) {
  30349. return e._onInteraction(t, !0)
  30350. }), $.on(this._element, "mouseout.bs.toast", function (t) {
  30351. return e._onInteraction(t, !1)
  30352. }), $.on(this._element, "focusin.bs.toast", function (t) {
  30353. return e._onInteraction(t, !0)
  30354. }), $.on(this._element, "focusout.bs.toast", function (t) {
  30355. return e._onInteraction(t, !1)
  30356. })
  30357. }
  30358. }, {
  30359. key: "_clearTimeout",
  30360. value: function () {
  30361. clearTimeout(this._timeout), this._timeout = null
  30362. }
  30363. }], [{
  30364. key: "jQueryInterface",
  30365. value: function (e) {
  30366. return this.each(function () {
  30367. var t = s.getOrCreateInstance(this, e);
  30368. if ("string" == typeof e) {
  30369. if (void 0 === t[e]) throw new TypeError('No method named "'.concat(e, '"'));
  30370. t[e](this)
  30371. }
  30372. })
  30373. }
  30374. }, {
  30375. key: "DefaultType",
  30376. get: function () {
  30377. return ni
  30378. }
  30379. }, {
  30380. key: "Default",
  30381. get: function () {
  30382. return si
  30383. }
  30384. }, {
  30385. key: "NAME",
  30386. get: function () {
  30387. return "toast"
  30388. }
  30389. }]), s
  30390. }();
  30391. return t(oi), {
  30392. Alert: Y,
  30393. Button: V,
  30394. Carousel: st,
  30395. Collapse: at,
  30396. Dropdown: Se,
  30397. Modal: Me,
  30398. Offcanvas: He,
  30399. Popover: Je,
  30400. ScrollSpy: ei,
  30401. Tab: ii,
  30402. Toast: oi,
  30403. Tooltip: Ve
  30404. }
  30405. });
  30406. //# sourceMappingURL=main.min.js.map