12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883 |
- "use strict";
-
- function _get(t, e, i) {
- return (_get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get : function (t, e, i) {
- var n = _superPropBase(t, e);
- if (n) {
- var s = Object.getOwnPropertyDescriptor(n, e);
- return s.get ? s.get.call(i) : s.value
- }
- })(t, e, i || t)
- }
-
- function _superPropBase(t, e) {
- for (; !Object.prototype.hasOwnProperty.call(t, e) && null !== (t = _getPrototypeOf(t)););
- return t
- }
-
- function ownKeys(e, t) {
- var i = Object.keys(e);
- if (Object.getOwnPropertySymbols) {
- var n = Object.getOwnPropertySymbols(e);
- t && (n = n.filter(function (t) {
- return Object.getOwnPropertyDescriptor(e, t).enumerable
- })), i.push.apply(i, n)
- }
- return i
- }
-
- function _objectSpread(e) {
- for (var t = 1; t < arguments.length; t++) {
- var i = null != arguments[t] ? arguments[t] : {};
- t % 2 ? ownKeys(Object(i), !0).forEach(function (t) {
- _defineProperty(e, t, i[t])
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : ownKeys(Object(i)).forEach(function (t) {
- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(i, t))
- })
- }
- return e
- }
-
- function _defineProperty(t, e, i) {
- return e in t ? Object.defineProperty(t, e, {
- value: i,
- enumerable: !0,
- configurable: !0,
- writable: !0
- }) : t[e] = i, t
- }
-
- function _inherits(t, e) {
- if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
- t.prototype = Object.create(e && e.prototype, {
- constructor: {
- value: t,
- writable: !0,
- configurable: !0
- }
- }), e && _setPrototypeOf(t, e)
- }
-
- function _setPrototypeOf(t, e) {
- return (_setPrototypeOf = Object.setPrototypeOf || function (t, e) {
- return t.__proto__ = e, t
- })(t, e)
- }
-
- function _createSuper(n) {
- var s = _isNativeReflectConstruct();
- return function () {
- var t, e = _getPrototypeOf(n);
- if (s) {
- var i = _getPrototypeOf(this).constructor;
- t = Reflect.construct(e, arguments, i)
- } else t = e.apply(this, arguments);
- return _possibleConstructorReturn(this, t)
- }
- }
-
- function _possibleConstructorReturn(t, e) {
- return !e || "object" !== _typeof(e) && "function" != typeof e ? _assertThisInitialized(t) : e
- }
-
- function _assertThisInitialized(t) {
- if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return t
- }
-
- function _isNativeReflectConstruct() {
- if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
- if (Reflect.construct.sham) return !1;
- if ("function" == typeof Proxy) return !0;
- try {
- return Date.prototype.toString.call(Reflect.construct(Date, [], function () {})), !0
- } catch (t) {
- return !1
- }
- }
-
- function _getPrototypeOf(t) {
- return (_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function (t) {
- return t.__proto__ || Object.getPrototypeOf(t)
- })(t)
- }
-
- function _classCallCheck(t, e) {
- if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function")
- }
-
- function _defineProperties(t, e) {
- for (var i = 0; i < e.length; i++) {
- var n = e[i];
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n)
- }
- }
-
- function _createClass(t, e, i) {
- return e && _defineProperties(t.prototype, e), i && _defineProperties(t, i), t
- }
-
- function _slicedToArray(t, e) {
- return _arrayWithHoles(t) || _iterableToArrayLimit(t, e) || _unsupportedIterableToArray(t, e) || _nonIterableRest()
- }
-
- function _nonIterableRest() {
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
- }
-
- function _iterableToArrayLimit(t, e) {
- if ("undefined" != typeof Symbol && Symbol.iterator in Object(t)) {
- var i = [],
- n = !0,
- s = !1,
- o = void 0;
- try {
- for (var r, a = t[Symbol.iterator](); !(n = (r = a.next()).done) && (i.push(r.value), !e || i.length !== e); n = !0);
- } catch (t) {
- s = !0, o = t
- } finally {
- try {
- n || null == a.return || a.return()
- } finally {
- if (s) throw o
- }
- }
- return i
- }
- }
-
- function _arrayWithHoles(t) {
- if (Array.isArray(t)) return t
- }
-
- function _toConsumableArray(t) {
- return _arrayWithoutHoles(t) || _iterableToArray(t) || _unsupportedIterableToArray(t) || _nonIterableSpread()
- }
-
- function _nonIterableSpread() {
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
- }
-
- function _unsupportedIterableToArray(t, e) {
- if (t) {
- if ("string" == typeof t) return _arrayLikeToArray(t, e);
- var i = Object.prototype.toString.call(t).slice(8, -1);
- 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
- }
- }
-
- function _iterableToArray(t) {
- if ("undefined" != typeof Symbol && Symbol.iterator in Object(t)) return Array.from(t)
- }
-
- function _arrayWithoutHoles(t) {
- if (Array.isArray(t)) return _arrayLikeToArray(t)
- }
-
- function _arrayLikeToArray(t, e) {
- (null == e || e > t.length) && (e = t.length);
- for (var i = 0, n = new Array(e); i < e; i++) n[i] = t[i];
- return n
- }
-
- function _typeof(t) {
- return (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
- return typeof t
- } : function (t) {
- return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
- })(t)
- }
-
- function _typeof(t) {
- return (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
- return typeof t
- } : function (t) {
- return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
- })(t)
- }
-
- function _typeof(t) {
- return (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
- return typeof t
- } : function (t) {
- return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
- })(t)
- }
-
- function _typeof(t) {
- return (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
- return typeof t
- } : function (t) {
- return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
- })(t)
- }
-
- function _typeof(t) {
- return (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
- return typeof t
- } : function (t) {
- return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
- })(t)
- }
-
- function _typeof(t) {
- return (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
- return typeof t
- } : function (t) {
- return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
- })(t)
- }
-
- function _typeof(t) {
- return (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
- return typeof t
- } : function (t) {
- return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
- })(t)
- }
-
- function _get2(t, e, i) {
- return (_get2 = "undefined" != typeof Reflect && Reflect.get ? Reflect.get : function (t, e, i) {
- var n = _superPropBase(t, e);
- if (n) {
- var s = Object.getOwnPropertyDescriptor(n, e);
- return s.get ? s.get.call(i) : s.value
- }
- })(t, e, i || t)
- }
-
- function _superPropBase(t, e) {
- for (; !Object.prototype.hasOwnProperty.call(t, e) && null !== (t = _getPrototypeOf(t)););
- return t
- }
-
- function ownKeys(e, t) {
- var i = Object.keys(e);
- if (Object.getOwnPropertySymbols) {
- var n = Object.getOwnPropertySymbols(e);
- t && (n = n.filter(function (t) {
- return Object.getOwnPropertyDescriptor(e, t).enumerable
- })), i.push.apply(i, n)
- }
- return i
- }
-
- function _objectSpread(e) {
- for (var t = 1; t < arguments.length; t++) {
- var i = null != arguments[t] ? arguments[t] : {};
- t % 2 ? ownKeys(Object(i), !0).forEach(function (t) {
- _defineProperty(e, t, i[t])
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : ownKeys(Object(i)).forEach(function (t) {
- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(i, t))
- })
- }
- return e
- }
-
- function _defineProperty(t, e, i) {
- return e in t ? Object.defineProperty(t, e, {
- value: i,
- enumerable: !0,
- configurable: !0,
- writable: !0
- }) : t[e] = i, t
- }
-
- function _inherits(t, e) {
- if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
- t.prototype = Object.create(e && e.prototype, {
- constructor: {
- value: t,
- writable: !0,
- configurable: !0
- }
- }), e && _setPrototypeOf(t, e)
- }
-
- function _setPrototypeOf(t, e) {
- return (_setPrototypeOf = Object.setPrototypeOf || function (t, e) {
- return t.__proto__ = e, t
- })(t, e)
- }
-
- function _createSuper(n) {
- var s = _isNativeReflectConstruct();
- return function () {
- var t, e = _getPrototypeOf(n);
- if (s) {
- var i = _getPrototypeOf(this).constructor;
- t = Reflect.construct(e, arguments, i)
- } else t = e.apply(this, arguments);
- return _possibleConstructorReturn(this, t)
- }
- }
-
- function _possibleConstructorReturn(t, e) {
- return !e || "object" !== _typeof(e) && "function" != typeof e ? _assertThisInitialized(t) : e
- }
-
- function _assertThisInitialized(t) {
- if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return t
- }
-
- function _isNativeReflectConstruct() {
- if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
- if (Reflect.construct.sham) return !1;
- if ("function" == typeof Proxy) return !0;
- try {
- return Date.prototype.toString.call(Reflect.construct(Date, [], function () {})), !0
- } catch (t) {
- return !1
- }
- }
-
- function _getPrototypeOf(t) {
- return (_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function (t) {
- return t.__proto__ || Object.getPrototypeOf(t)
- })(t)
- }
-
- function _classCallCheck(t, e) {
- if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function")
- }
-
- function _defineProperties(t, e) {
- for (var i = 0; i < e.length; i++) {
- var n = e[i];
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n)
- }
- }
-
- function _createClass(t, e, i) {
- return e && _defineProperties(t.prototype, e), i && _defineProperties(t, i), t
- }
-
- function _slicedToArray(t, e) {
- return _arrayWithHoles(t) || _iterableToArrayLimit(t, e) || _unsupportedIterableToArray(t, e) || _nonIterableRest()
- }
-
- function _nonIterableRest() {
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
- }
-
- function _iterableToArrayLimit(t, e) {
- if ("undefined" != typeof Symbol && Symbol.iterator in Object(t)) {
- var i = [],
- n = !0,
- s = !1,
- o = void 0;
- try {
- for (var r, a = t[Symbol.iterator](); !(n = (r = a.next()).done) && (i.push(r.value), !e || i.length !== e); n = !0);
- } catch (t) {
- s = !0, o = t
- } finally {
- try {
- n || null == a.return || a.return()
- } finally {
- if (s) throw o
- }
- }
- return i
- }
- }
-
- function _arrayWithHoles(t) {
- if (Array.isArray(t)) return t
- }
-
- function _toConsumableArray(t) {
- return _arrayWithoutHoles(t) || _iterableToArray(t) || _unsupportedIterableToArray(t) || _nonIterableSpread()
- }
-
- function _nonIterableSpread() {
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
- }
-
- function _unsupportedIterableToArray(t, e) {
- if (t) {
- if ("string" == typeof t) return _arrayLikeToArray(t, e);
- var i = Object.prototype.toString.call(t).slice(8, -1);
- 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
- }
- }
-
- function _iterableToArray(t) {
- if ("undefined" != typeof Symbol && Symbol.iterator in Object(t)) return Array.from(t)
- }
-
- function _arrayWithoutHoles(t) {
- if (Array.isArray(t)) return _arrayLikeToArray(t)
- }
-
- function _arrayLikeToArray(t, e) {
- (null == e || e > t.length) && (e = t.length);
- for (var i = 0, n = new Array(e); i < e; i++) n[i] = t[i];
- return n
- }
-
- function _typeof(t) {
- return (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
- return typeof t
- } : function (t) {
- return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
- })(t)
- }! function (t, e) {
- "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()
- }(void 0, function () {
- function p(t) {
- for (; t += Math.floor(1e6 * Math.random()), document.getElementById(t););
- return t
- }
-
- function i(t) {
- var e = t.getAttribute("data-bs-target");
- if (!e || "#" === e) {
- var i = t.getAttribute("href");
- if (!i || !i.includes("#") && !i.startsWith(".")) return null;
- i.includes("#") && !i.startsWith("#") && (i = "#" + i.split("#")[1]), e = i && "#" !== i ? i.trim() : null
- }
- return e
- }
-
- function h(t) {
- var e = i(t);
- return e && document.querySelector(e) ? e : null
- }
-
- function a(t) {
- var e = i(t);
- return e ? document.querySelector(e) : null
- }
-
- function e(t) {
- t.dispatchEvent(new Event("transitionend"))
- }
-
- function c(t) {
- return !(!t || "object" != _typeof(t)) && (void 0 !== t.jquery && (t = t[0]), void 0 !== t.nodeType)
- }
-
- function r(t) {
- return c(t) ? t.jquery ? t[0] : t : "string" == typeof t && 0 < t.length ? y(t) : null
- }
-
- function d(o, r, a) {
- Object.keys(a).forEach(function (t) {
- var e, i = a[t],
- n = r[t],
- s = n && c(n) ? "element" : null == (e = n) ? "" + e : {}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase();
- if (!new RegExp(i).test(s)) throw new TypeError("".concat(o.toUpperCase(), ': Option "').concat(t, '" provided type "').concat(s, '" but expected type "').concat(i, '".'))
- })
- }
-
- function s(t) {
- return !(!c(t) || 0 === t.getClientRects().length) && "visible" === getComputedStyle(t).getPropertyValue("visibility")
- }
-
- function u(t) {
- return !t || t.nodeType !== Node.ELEMENT_NODE || !!t.classList.contains("disabled") || (void 0 !== t.disabled ? t.disabled : t.hasAttribute("disabled") && "false" !== t.getAttribute("disabled"))
- }
-
- function f() {}
-
- function g(t) {
- return t.offsetHeight
- }
-
- function m() {
- var t = window.jQuery;
- return t && !document.body.hasAttribute("data-bs-no-jquery") ? t : null
- }
-
- function l() {
- return "rtl" === document.documentElement.dir
- }
-
- function t(n) {
- var t;
- t = function () {
- var t = m();
- if (t) {
- var e = n.NAME,
- i = t.fn[e];
- t.fn[e] = n.jQueryInterface, t.fn[e].Constructor = n, t.fn[e].noConflict = function () {
- return t.fn[e] = i, n.jQueryInterface
- }
- }
- }, "loading" === document.readyState ? (C.length || document.addEventListener("DOMContentLoaded", function () {
- C.forEach(function (t) {
- return t()
- })
- }), C.push(t)) : t()
- }
-
- function o(t) {
- "function" == typeof t && t()
- }
-
- function n(i, n) {
- if (!(2 < arguments.length && void 0 !== arguments[2]) || arguments[2]) {
- var t = function (t) {
- if (!t) return 0;
- var e = window.getComputedStyle(t),
- i = e.transitionDuration,
- n = e.transitionDelay,
- s = Number.parseFloat(i),
- o = Number.parseFloat(n);
- return s || o ? (i = i.split(",")[0], n = n.split(",")[0], 1e3 * (Number.parseFloat(i) + Number.parseFloat(n))) : 0
- }(n) + 5,
- s = !1;
- n.addEventListener("transitionend", function t(e) {
- e.target === n && (s = !0, n.removeEventListener("transitionend", t), o(i))
- }), setTimeout(function () {
- s || e(n)
- }, t)
- } else o(i)
- }
-
- function v(t, e, i, n) {
- var s = t.indexOf(e);
- if (-1 === s) return t[!i && n ? t.length - 1 : 0];
- var o = t.length;
- return s += i ? 1 : -1, n && (s = (s + o) % o), t[Math.max(0, Math.min(s, o - 1))]
- }
- var _ = function (t) {
- var e, i = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : document.documentElement;
- return (e = []).concat.apply(e, _toConsumableArray(Element.prototype.querySelectorAll.call(i, t)))
- },
- y = function (t) {
- var e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : document.documentElement;
- return Element.prototype.querySelector.call(e, t)
- },
- b = function (t, e) {
- var i;
- return (i = []).concat.apply(i, _toConsumableArray(t.children)).filter(function (t) {
- return t.matches(e)
- })
- },
- w = function (t, e) {
- for (var i = [], n = t.parentNode; n && n.nodeType === Node.ELEMENT_NODE && 3 !== n.nodeType;) n.matches(e) && i.push(n), n = n.parentNode;
- return i
- },
- k = function (t, e) {
- for (var i = t.previousElementSibling; i;) {
- if (i.matches(e)) return [i];
- i = i.previousElementSibling
- }
- return []
- },
- x = function (t, e) {
- for (var i = t.nextElementSibling; i;) {
- if (i.matches(e)) return [i];
- i = i.nextElementSibling
- }
- return []
- },
- C = [],
- T = /[^.]*(?=\..*)\.|.*/,
- S = /\..*/,
- D = /::\d+$/,
- A = {},
- E = 1,
- P = {
- mouseenter: "mouseover",
- mouseleave: "mouseout"
- },
- I = /^(mouseenter|mouseleave)/i,
- 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"]);
-
- function M(t, e) {
- return e && "".concat(e, "::").concat(E++) || t.uidEvent || E++
- }
-
- function N(t) {
- var e = M(t);
- return t.uidEvent = e, A[e] = A[e] || {}, A[e]
- }
-
- function L(t, e) {
- 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++) {
- var r = t[n[s]];
- if (r.originalHandler === e && r.delegationSelector === i) return r
- }
- return null
- }
-
- function H(t, e, i) {
- var n = "string" == typeof e,
- s = n ? i : e,
- o = W(t);
- return O.has(o) || (o = t), [n, s, o]
- }
-
- function j(t, e, i, n, s) {
- if ("string" == typeof e && t) {
- if (i || (i = n, n = null), I.test(e)) {
- var o = function (e) {
- return function (t) {
- if (!t.relatedTarget || t.relatedTarget !== t.delegateTarget && !t.delegateTarget.contains(t.relatedTarget)) return e.call(this, t)
- }
- };
- n ? n = o(n) : i = o(i)
- }
- var r = H(e, i, n),
- a = _slicedToArray(r, 3),
- l = a[0],
- c = a[1],
- u = a[2],
- h = N(t),
- d = h[u] || (h[u] = {}),
- p = L(d, c, l ? i : null);
- if (p) p.oneOff = p.oneOff && s;
- else {
- var f, g, m, v, _, y = M(c, e.replace(T, "")),
- b = l ? (m = t, v = i, _ = n, function t(e) {
- for (var i = m.querySelectorAll(v), n = e.target; n && n !== this; n = n.parentNode)
- for (var s = i.length; s--;)
- if (i[s] === n) return e.delegateTarget = n, t.oneOff && $.off(m, e.type, v, _), _.apply(n, [e]);
- return null
- }) : (f = t, g = i, function t(e) {
- return e.delegateTarget = f, t.oneOff && $.off(f, e.type, g), g.apply(f, [e])
- });
- b.delegationSelector = l ? i : null, b.originalHandler = c, b.oneOff = s, d[b.uidEvent = y] = b, t.addEventListener(u, b, l)
- }
- }
- }
-
- function z(t, e, i, n, s) {
- var o = L(e[i], n, s);
- o && (t.removeEventListener(i, o, Boolean(s)), delete e[i][o.uidEvent])
- }
-
- function W(t) {
- return t = t.replace(S, ""), P[t] || t
- }
- var $ = {
- on: function (t, e, i, n) {
- j(t, e, i, n, !1)
- },
- one: function (t, e, i, n) {
- j(t, e, i, n, !0)
- },
- off: function (a, l, t, e) {
- if ("string" == typeof l && a) {
- var i = H(l, t, e),
- n = _slicedToArray(i, 3),
- s = n[0],
- o = n[1],
- r = n[2],
- c = r !== l,
- u = N(a),
- h = l.startsWith(".");
- if (void 0 === o) {
- h && Object.keys(u).forEach(function (t) {
- var i, n, s, o, r;
- i = a, n = u, s = t, o = l.slice(1), r = n[s] || {}, Object.keys(r).forEach(function (t) {
- if (t.includes(o)) {
- var e = r[t];
- z(i, n, s, e.originalHandler, e.delegationSelector)
- }
- })
- });
- var d = u[r] || {};
- Object.keys(d).forEach(function (t) {
- var e = t.replace(D, "");
- if (!c || l.includes(e)) {
- var i = d[t];
- z(a, u, r, i.originalHandler, i.delegationSelector)
- }
- })
- } else {
- if (!u || !u[r]) return;
- z(a, u, r, o, s ? t : null)
- }
- }
- },
- trigger: function (t, e, i) {
- if ("string" != typeof e || !t) return null;
- var n, s = m(),
- o = W(e),
- r = e !== o,
- a = O.has(o),
- l = !0,
- c = !0,
- u = !1,
- h = null;
- 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, {
- bubbles: l,
- cancelable: !0
- }), void 0 !== i && Object.keys(i).forEach(function (t) {
- Object.defineProperty(h, t, {
- get: function () {
- return i[t]
- }
- })
- }), u && h.preventDefault(), c && t.dispatchEvent(h), h.defaultPrevented && void 0 !== n && n.preventDefault(), h
- }
- },
- R = new Map,
- F = function (t, e, i) {
- R.has(t) || R.set(t, new Map);
- var n = R.get(t);
- 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], "."))
- },
- q = function (t, e) {
- return R.has(t) && R.get(t).get(e) || null
- },
- B = function (t, e) {
- if (R.has(t)) {
- var i = R.get(t);
- i.delete(e), 0 === i.size && R.delete(t)
- }
- },
- U = function () {
- function e(t) {
- _classCallCheck(this, e), (t = r(t)) && (this._element = t, F(this._element, this.constructor.DATA_KEY, this))
- }
- return _createClass(e, [{
- key: "dispose",
- value: function () {
- var e = this;
- B(this._element, this.constructor.DATA_KEY), $.off(this._element, this.constructor.EVENT_KEY), Object.getOwnPropertyNames(this).forEach(function (t) {
- e[t] = null
- })
- }
- }, {
- key: "_queueCallback",
- value: function (t, e) {
- var i = !(2 < arguments.length && void 0 !== arguments[2]) || arguments[2];
- n(t, e, i)
- }
- }], [{
- key: "getInstance",
- value: function (t) {
- return q(t, this.DATA_KEY)
- }
- }, {
- key: "getOrCreateInstance",
- value: function (t) {
- var e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {};
- return this.getInstance(t) || new this(t, "object" == _typeof(e) ? e : null)
- }
- }, {
- key: "VERSION",
- get: function () {
- return "5.0.2"
- }
- }, {
- key: "NAME",
- get: function () {
- throw new Error('You have to implement the static method "NAME", for each component!')
- }
- }, {
- key: "DATA_KEY",
- get: function () {
- return "bs." + this.NAME
- }
- }, {
- key: "EVENT_KEY",
- get: function () {
- return "." + this.DATA_KEY
- }
- }]), e
- }(),
- Y = function (t) {
- _inherits(i, U);
- var e = _createSuper(i);
-
- function i() {
- return _classCallCheck(this, i), e.apply(this, arguments)
- }
- return _createClass(i, [{
- key: "close",
- value: function (t) {
- var e = t ? this._getRootElement(t) : this._element,
- i = this._triggerCloseEvent(e);
- null === i || i.defaultPrevented || this._removeElement(e)
- }
- }, {
- key: "_getRootElement",
- value: function (t) {
- return a(t) || t.closest(".alert")
- }
- }, {
- key: "_triggerCloseEvent",
- value: function (t) {
- return $.trigger(t, "close.bs.alert")
- }
- }, {
- key: "_removeElement",
- value: function (t) {
- var e = this;
- t.classList.remove("show");
- var i = t.classList.contains("fade");
- this._queueCallback(function () {
- return e._destroyElement(t)
- }, t, i)
- }
- }, {
- key: "_destroyElement",
- value: function (t) {
- t.remove(), $.trigger(t, "closed.bs.alert")
- }
- }], [{
- key: "jQueryInterface",
- value: function (e) {
- return this.each(function () {
- var t = i.getOrCreateInstance(this);
- "close" === e && t[e](this)
- })
- }
- }, {
- key: "handleDismiss",
- value: function (e) {
- return function (t) {
- t && t.preventDefault(), e.close(this)
- }
- }
- }, {
- key: "NAME",
- get: function () {
- return "alert"
- }
- }]), i
- }();
- $.on(document, "click.bs.alert.data-api", '[data-bs-dismiss="alert"]', Y.handleDismiss(new Y)), t(Y);
- var V = function (t) {
- _inherits(i, U);
- var e = _createSuper(i);
-
- function i() {
- return _classCallCheck(this, i), e.apply(this, arguments)
- }
- return _createClass(i, [{
- key: "toggle",
- value: function () {
- this._element.setAttribute("aria-pressed", this._element.classList.toggle("active"))
- }
- }], [{
- key: "jQueryInterface",
- value: function (e) {
- return this.each(function () {
- var t = i.getOrCreateInstance(this);
- "toggle" === e && t[e]()
- })
- }
- }, {
- key: "NAME",
- get: function () {
- return "button"
- }
- }]), i
- }();
-
- function K(t) {
- return "true" === t || "false" !== t && (t === Number(t).toString() ? Number(t) : "" === t || "null" === t ? null : t)
- }
-
- function X(t) {
- return t.replace(/[A-Z]/g, function (t) {
- return "-" + t.toLowerCase()
- })
- }
- $.on(document, "click.bs.button.data-api", '[data-bs-toggle="button"]', function (t) {
- t.preventDefault();
- var e = t.target.closest('[data-bs-toggle="button"]');
- V.getOrCreateInstance(e).toggle()
- }), t(V);
- var Q = {
- setDataAttribute: function (t, e, i) {
- t.setAttribute("data-bs-" + X(e), i)
- },
- removeDataAttribute: function (t, e) {
- t.removeAttribute("data-bs-" + X(e))
- },
- getDataAttributes: function (i) {
- if (!i) return {};
- var n = {};
- return Object.keys(i.dataset).filter(function (t) {
- return t.startsWith("bs")
- }).forEach(function (t) {
- var e = t.replace(/^bs/, "");
- e = e.charAt(0).toLowerCase() + e.slice(1, e.length), n[e] = K(i.dataset[t])
- }), n
- },
- getDataAttribute: function (t, e) {
- return K(t.getAttribute("data-bs-" + X(e)))
- },
- offset: function (t) {
- var e = t.getBoundingClientRect();
- return {
- top: e.top + document.body.scrollTop,
- left: e.left + document.body.scrollLeft
- }
- },
- position: function (t) {
- return {
- top: t.offsetTop,
- left: t.offsetLeft
- }
- }
- },
- G = {
- interval: 5e3,
- keyboard: !0,
- slide: !1,
- pause: "hover",
- wrap: !0,
- touch: !0
- },
- J = {
- interval: "(number|boolean)",
- keyboard: "boolean",
- slide: "(boolean|string)",
- pause: "(string|boolean)",
- wrap: "boolean",
- touch: "boolean"
- },
- Z = "next",
- tt = "prev",
- et = "left",
- it = "right",
- nt = {
- ArrowLeft: it,
- ArrowRight: et
- },
- st = function (t) {
- _inherits(o, U);
- var n = _createSuper(o);
-
- function o(t, e) {
- var i;
- 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
- }
- return _createClass(o, [{
- key: "next",
- value: function () {
- this._slide(Z)
- }
- }, {
- key: "nextWhenVisible",
- value: function () {
- !document.hidden && s(this._element) && this.next()
- }
- }, {
- key: "prev",
- value: function () {
- this._slide(tt)
- }
- }, {
- key: "pause",
- value: function (t) {
- 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
- }
- }, {
- key: "cycle",
- value: function (t) {
- 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))
- }
- }, {
- key: "to",
- value: function (t) {
- var e = this;
- this._activeElement = y(".active.carousel-item", this._element);
- var i = this._getItemIndex(this._activeElement);
- if (!(t > this._items.length - 1 || t < 0))
- if (this._isSliding) $.one(this._element, "slid.bs.carousel", function () {
- return e.to(t)
- });
- else {
- if (i === t) return this.pause(), void this.cycle();
- var n = i < t ? Z : tt;
- this._slide(n, this._items[t])
- }
- }
- }, {
- key: "_getConfig",
- value: function (t) {
- return t = _objectSpread(_objectSpread(_objectSpread({}, G), Q.getDataAttributes(this._element)), "object" == _typeof(t) ? t : {}), d("carousel", t, J), t
- }
- }, {
- key: "_handleSwipe",
- value: function () {
- var t = Math.abs(this.touchDeltaX);
- if (!(t <= 40)) {
- var e = t / this.touchDeltaX;
- this.touchDeltaX = 0, e && this._slide(0 < e ? it : et)
- }
- }
- }, {
- key: "_addEventListeners",
- value: function () {
- var e = this;
- this._config.keyboard && $.on(this._element, "keydown.bs.carousel", function (t) {
- return e._keydown(t)
- }), "hover" === this._config.pause && ($.on(this._element, "mouseenter.bs.carousel", function (t) {
- return e.pause(t)
- }), $.on(this._element, "mouseleave.bs.carousel", function (t) {
- return e.cycle(t)
- })), this._config.touch && this._touchSupported && this._addTouchEventListeners()
- }
- }, {
- key: "_addTouchEventListeners",
- value: function () {
- function e(t) {
- !n._pointerEvent || "pen" !== t.pointerType && "touch" !== t.pointerType ? n._pointerEvent || (n.touchStartX = t.touches[0].clientX) : n.touchStartX = t.clientX
- }
-
- function i(t) {
- !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) {
- return n.cycle(t)
- }, 500 + n._config.interval))
- }
- var n = this;
- _(".carousel-item img", this._element).forEach(function (t) {
- $.on(t, "dragstart.bs.carousel", function (t) {
- return t.preventDefault()
- })
- }), this._pointerEvent ? ($.on(this._element, "pointerdown.bs.carousel", function (t) {
- return e(t)
- }), $.on(this._element, "pointerup.bs.carousel", function (t) {
- return i(t)
- }), this._element.classList.add("pointer-event")) : ($.on(this._element, "touchstart.bs.carousel", function (t) {
- return e(t)
- }), $.on(this._element, "touchmove.bs.carousel", function (t) {
- return function (t) {
- n.touchDeltaX = t.touches && 1 < t.touches.length ? 0 : t.touches[0].clientX - n.touchStartX
- }(t)
- }), $.on(this._element, "touchend.bs.carousel", function (t) {
- return i(t)
- }))
- }
- }, {
- key: "_keydown",
- value: function (t) {
- if (!/input|textarea/i.test(t.target.tagName)) {
- var e = nt[t.key];
- e && (t.preventDefault(), this._slide(e))
- }
- }
- }, {
- key: "_getItemIndex",
- value: function (t) {
- return this._items = t && t.parentNode ? _(".carousel-item", t.parentNode) : [], this._items.indexOf(t)
- }
- }, {
- key: "_getItemByOrder",
- value: function (t, e) {
- var i = t === Z;
- return v(this._items, e, i, this._config.wrap)
- }
- }, {
- key: "_triggerSlideEvent",
- value: function (t, e) {
- var i = this._getItemIndex(t),
- n = this._getItemIndex(y(".active.carousel-item", this._element));
- return $.trigger(this._element, "slide.bs.carousel", {
- relatedTarget: t,
- direction: e,
- from: n,
- to: i
- })
- }
- }, {
- key: "_setActiveIndicatorElement",
- value: function (t) {
- if (this._indicatorsElement) {
- var e = y(".active", this._indicatorsElement);
- e.classList.remove("active"), e.removeAttribute("aria-current");
- for (var i = _("[data-bs-target]", this._indicatorsElement), n = 0; n < i.length; n++)
- if (Number.parseInt(i[n].getAttribute("data-bs-slide-to"), 10) === this._getItemIndex(t)) {
- i[n].classList.add("active"), i[n].setAttribute("aria-current", "true");
- break
- }
- }
- }
- }, {
- key: "_updateInterval",
- value: function () {
- var t = this._activeElement || y(".active.carousel-item", this._element);
- if (t) {
- var e = Number.parseInt(t.getAttribute("data-bs-interval"), 10);
- e ? (this._config.defaultInterval = this._config.defaultInterval || this._config.interval, this._config.interval = e) : this._config.interval = this._config.defaultInterval || this._config.interval
- }
- }
- }, {
- key: "_slide",
- value: function (t, e) {
- var i = this,
- n = this._directionToOrder(t),
- s = y(".active.carousel-item", this._element),
- o = this._getItemIndex(s),
- r = e || this._getItemByOrder(n, s),
- a = this._getItemIndex(r),
- l = Boolean(this._interval),
- c = n === Z,
- u = c ? "carousel-item-start" : "carousel-item-end",
- h = c ? "carousel-item-next" : "carousel-item-prev",
- d = this._orderToDirection(n);
- if (r && r.classList.contains("active")) this._isSliding = !1;
- else if (!this._isSliding && !this._triggerSlideEvent(r, d).defaultPrevented && s && r) {
- this._isSliding = !0, l && this.pause(), this._setActiveIndicatorElement(r), this._activeElement = r;
- var p = function () {
- $.trigger(i._element, "slid.bs.carousel", {
- relatedTarget: r,
- direction: d,
- from: o,
- to: a
- })
- };
- if (this._element.classList.contains("slide")) {
- r.classList.add(h), g(r), s.classList.add(u), r.classList.add(u);
- this._queueCallback(function () {
- r.classList.remove(u, h), r.classList.add("active"), s.classList.remove("active", h, u), i._isSliding = !1, setTimeout(p, 0)
- }, s, !0)
- } else s.classList.remove("active"), r.classList.add("active"), this._isSliding = !1, p();
- l && this.cycle()
- }
- }
- }, {
- key: "_directionToOrder",
- value: function (t) {
- return [it, et].includes(t) ? l() ? t === et ? tt : Z : t === et ? Z : tt : t
- }
- }, {
- key: "_orderToDirection",
- value: function (t) {
- return [Z, tt].includes(t) ? l() ? t === tt ? et : it : t === tt ? it : et : t
- }
- }], [{
- key: "carouselInterface",
- value: function (t, e) {
- var i = o.getOrCreateInstance(t, e),
- n = i._config;
- "object" == _typeof(e) && (n = _objectSpread(_objectSpread({}, n), e));
- var s = "string" == typeof e ? e : n.slide;
- if ("number" == typeof e) i.to(e);
- else if ("string" == typeof s) {
- if (void 0 === i[s]) throw new TypeError('No method named "'.concat(s, '"'));
- i[s]()
- } else n.interval && n.ride && (i.pause(), i.cycle())
- }
- }, {
- key: "jQueryInterface",
- value: function (t) {
- return this.each(function () {
- o.carouselInterface(this, t)
- })
- }
- }, {
- key: "dataApiClickHandler",
- value: function (t) {
- var e = a(this);
- if (e && e.classList.contains("carousel")) {
- var i = _objectSpread(_objectSpread({}, Q.getDataAttributes(e)), Q.getDataAttributes(this)),
- n = this.getAttribute("data-bs-slide-to");
- n && (i.interval = !1), o.carouselInterface(e, i), n && o.getInstance(e).to(n), t.preventDefault()
- }
- }
- }, {
- key: "Default",
- get: function () {
- return G
- }
- }, {
- key: "NAME",
- get: function () {
- return "carousel"
- }
- }]), o
- }();
- $.on(document, "click.bs.carousel.data-api", "[data-bs-slide], [data-bs-slide-to]", st.dataApiClickHandler), $.on(window, "load.bs.carousel.data-api", function () {
- for (var t = _('[data-bs-ride="carousel"]'), e = 0, i = t.length; e < i; e++) st.carouselInterface(t[e], st.getInstance(t[e]))
- }), t(st);
- var ot = {
- toggle: !0,
- parent: ""
- },
- rt = {
- toggle: "boolean",
- parent: "(string|element)"
- },
- at = function (t) {
- _inherits(u, U);
- var c = _createSuper(u);
-
- function u(t, e) {
- var i;
- _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, '"]'));
- for (var n = _('[data-bs-toggle="collapse"]'), s = 0, o = n.length; s < o; s++) {
- var r = n[s],
- a = h(r),
- l = _(a).filter(function (t) {
- return t === i._element
- });
- null !== a && l.length && (i._selector = a, i._triggerArray.push(r))
- }
- return i._parent = i._config.parent ? i._getParent() : null, i._config.parent || i._addAriaAndCollapsedClass(i._element, i._triggerArray), i._config.toggle && i.toggle(), i
- }
- return _createClass(u, [{
- key: "toggle",
- value: function () {
- this._element.classList.contains("show") ? this.hide() : this.show()
- }
- }, {
- key: "show",
- value: function () {
- var e = this;
- if (!this._isTransitioning && !this._element.classList.contains("show")) {
- var t, i;
- this._parent && (0 === (t = _(".show, .collapsing", this._parent).filter(function (t) {
- return "string" == typeof e._config.parent ? t.getAttribute("data-bs-parent") === e._config.parent : t.classList.contains("collapse")
- })).length && (t = null));
- var n = y(this._selector);
- if (t) {
- var s = t.find(function (t) {
- return n !== t
- });
- if ((i = s ? u.getInstance(s) : null) && i._isTransitioning) return
- }
- if (!$.trigger(this._element, "show.bs.collapse").defaultPrevented) {
- t && t.forEach(function (t) {
- n !== t && u.collapseInterface(t, "hide"), i || F(t, "bs.collapse", null)
- });
- var o = this._getDimension();
- this._element.classList.remove("collapse"), this._element.classList.add("collapsing"), this._element.style[o] = 0, this._triggerArray.length && this._triggerArray.forEach(function (t) {
- t.classList.remove("collapsed"), t.setAttribute("aria-expanded", !0)
- }), this.setTransitioning(!0);
- var r = "scroll" + (o[0].toUpperCase() + o.slice(1));
- this._queueCallback(function () {
- e._element.classList.remove("collapsing"), e._element.classList.add("collapse", "show"), e._element.style[o] = "", e.setTransitioning(!1), $.trigger(e._element, "shown.bs.collapse")
- }, this._element, !0), this._element.style[o] = this._element[r] + "px"
- }
- }
- }
- }, {
- key: "hide",
- value: function () {
- var t = this;
- if (!this._isTransitioning && this._element.classList.contains("show") && !$.trigger(this._element, "hide.bs.collapse").defaultPrevented) {
- var e = this._getDimension();
- this._element.style[e] = this._element.getBoundingClientRect()[e] + "px", g(this._element), this._element.classList.add("collapsing"), this._element.classList.remove("collapse", "show");
- var i = this._triggerArray.length;
- if (0 < i)
- for (var n = 0; n < i; n++) {
- var s = this._triggerArray[n],
- o = a(s);
- o && !o.classList.contains("show") && (s.classList.add("collapsed"), s.setAttribute("aria-expanded", !1))
- }
- this.setTransitioning(!0), this._element.style[e] = "", this._queueCallback(function () {
- t.setTransitioning(!1), t._element.classList.remove("collapsing"), t._element.classList.add("collapse"), $.trigger(t._element, "hidden.bs.collapse")
- }, this._element, !0)
- }
- }
- }, {
- key: "setTransitioning",
- value: function (t) {
- this._isTransitioning = t
- }
- }, {
- key: "_getConfig",
- value: function (t) {
- return (t = _objectSpread(_objectSpread({}, ot), t)).toggle = Boolean(t.toggle), d("collapse", t, rt), t
- }
- }, {
- key: "_getDimension",
- value: function () {
- return this._element.classList.contains("width") ? "width" : "height"
- }
- }, {
- key: "_getParent",
- value: function () {
- var i = this,
- t = this._config.parent;
- t = r(t);
- var e = '[data-bs-toggle="collapse"][data-bs-parent="'.concat(t, '"]');
- return _(e, t).forEach(function (t) {
- var e = a(t);
- i._addAriaAndCollapsedClass(e, [t])
- }), t
- }
- }, {
- key: "_addAriaAndCollapsedClass",
- value: function (t, e) {
- if (t && e.length) {
- var i = t.classList.contains("show");
- e.forEach(function (t) {
- i ? t.classList.remove("collapsed") : t.classList.add("collapsed"), t.setAttribute("aria-expanded", i)
- })
- }
- }
- }], [{
- key: "collapseInterface",
- value: function (t, e) {
- var i = u.getInstance(t),
- n = _objectSpread(_objectSpread(_objectSpread({}, ot), Q.getDataAttributes(t)), "object" == _typeof(e) && e ? e : {});
- if (!i && n.toggle && "string" == typeof e && /show|hide/.test(e) && (n.toggle = !1), i || (i = new u(t, n)), "string" == typeof e) {
- if (void 0 === i[e]) throw new TypeError('No method named "'.concat(e, '"'));
- i[e]()
- }
- }
- }, {
- key: "jQueryInterface",
- value: function (t) {
- return this.each(function () {
- u.collapseInterface(this, t)
- })
- }
- }, {
- key: "Default",
- get: function () {
- return ot
- }
- }, {
- key: "NAME",
- get: function () {
- return "collapse"
- }
- }]), u
- }();
- $.on(document, "click.bs.collapse.data-api", '[data-bs-toggle="collapse"]', function (t) {
- ("A" === t.target.tagName || t.delegateTarget && "A" === t.delegateTarget.tagName) && t.preventDefault();
- var n = Q.getDataAttributes(this),
- e = h(this);
- _(e).forEach(function (t) {
- var e, i = at.getInstance(t);
- e = i ? (null === i._parent && "string" == typeof n.parent && (i._config.parent = n.parent, i._parent = i._getParent()), "toggle") : n, at.collapseInterface(t, e)
- })
- }), t(at);
- var lt = "top",
- ct = "bottom",
- ut = "right",
- ht = "left",
- dt = [lt, ct, ut, ht],
- pt = dt.reduce(function (t, e) {
- return t.concat([e + "-start", e + "-end"])
- }, []),
- ft = [].concat(dt, ["auto"]).reduce(function (t, e) {
- return t.concat([e, e + "-start", e + "-end"])
- }, []),
- gt = ["beforeRead", "read", "afterRead", "beforeMain", "main", "afterMain", "beforeWrite", "write", "afterWrite"];
-
- function mt(t) {
- return t ? (t.nodeName || "").toLowerCase() : null
- }
-
- function vt(t) {
- if (null == t) return window;
- if ("[object Window]" === t.toString()) return t;
- var e = t.ownerDocument;
- return e && e.defaultView || window
- }
-
- function _t(t) {
- return t instanceof vt(t).Element || t instanceof Element
- }
-
- function yt(t) {
- return t instanceof vt(t).HTMLElement || t instanceof HTMLElement
- }
-
- function bt(t) {
- return "undefined" != typeof ShadowRoot && (t instanceof vt(t).ShadowRoot || t instanceof ShadowRoot)
- }
- var wt = {
- name: "applyStyles",
- enabled: !0,
- phase: "write",
- fn: function (t) {
- var s = t.state;
- Object.keys(s.elements).forEach(function (t) {
- var e = s.styles[t] || {},
- i = s.attributes[t] || {},
- n = s.elements[t];
- yt(n) && mt(n) && (Object.assign(n.style, e), Object.keys(i).forEach(function (t) {
- var e = i[t];
- !1 === e ? n.removeAttribute(t) : n.setAttribute(t, !0 === e ? "" : e)
- }))
- })
- },
- effect: function (t) {
- var s = t.state,
- o = {
- popper: {
- position: s.options.strategy,
- left: "0",
- top: "0",
- margin: "0"
- },
- arrow: {
- position: "absolute"
- },
- reference: {}
- };
- return Object.assign(s.elements.popper.style, o.popper), s.styles = o, s.elements.arrow && Object.assign(s.elements.arrow.style, o.arrow),
- function () {
- Object.keys(s.elements).forEach(function (t) {
- var e = s.elements[t],
- i = s.attributes[t] || {},
- n = Object.keys(s.styles.hasOwnProperty(t) ? s.styles[t] : o[t]).reduce(function (t, e) {
- return t[e] = "", t
- }, {});
- yt(e) && mt(e) && (Object.assign(e.style, n), Object.keys(i).forEach(function (t) {
- e.removeAttribute(t)
- }))
- })
- }
- },
- requires: ["computeStyles"]
- };
-
- function kt(t) {
- return t.split("-")[0]
- }
-
- function xt(t) {
- var e = t.getBoundingClientRect();
- return {
- width: e.width,
- height: e.height,
- top: e.top,
- right: e.right,
- bottom: e.bottom,
- left: e.left,
- x: e.left,
- y: e.top
- }
- }
-
- function Ct(t) {
- var e = xt(t),
- i = t.offsetWidth,
- n = t.offsetHeight;
- return Math.abs(e.width - i) <= 1 && (i = e.width), Math.abs(e.height - n) <= 1 && (n = e.height), {
- x: t.offsetLeft,
- y: t.offsetTop,
- width: i,
- height: n
- }
- }
-
- function Tt(t, e) {
- var i = e.getRootNode && e.getRootNode();
- if (t.contains(e)) return !0;
- if (i && bt(i)) {
- var n = e;
- do {
- if (n && t.isSameNode(n)) return !0;
- n = n.parentNode || n.host
- } while (n)
- }
- return !1
- }
-
- function St(t) {
- return vt(t).getComputedStyle(t)
- }
-
- function Dt(t) {
- return ((_t(t) ? t.ownerDocument : t.document) || window.document).documentElement
- }
-
- function At(t) {
- return "html" === mt(t) ? t : t.assignedSlot || t.parentNode || (bt(t) ? t.host : null) || Dt(t)
- }
-
- function Et(t) {
- return yt(t) && "fixed" !== St(t).position ? t.offsetParent : null
- }
-
- function Pt(t) {
- for (var e = vt(t), i = Et(t); i && 0 <= ["table", "td", "th"].indexOf(mt(i)) && "static" === St(i).position;) i = Et(i);
- return i && ("html" === mt(i) || "body" === mt(i) && "static" === St(i).position) ? e : i || function (t) {
- var e = -1 !== navigator.userAgent.toLowerCase().indexOf("firefox");
- if (-1 !== navigator.userAgent.indexOf("Trident") && yt(t) && "fixed" === St(t).position) return null;
- for (var i = At(t); yt(i) && ["html", "body"].indexOf(mt(i)) < 0;) {
- var n = St(i);
- 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;
- i = i.parentNode
- }
- return null
- }(t) || e
- }
-
- function It(t) {
- return 0 <= ["top", "bottom"].indexOf(t) ? "x" : "y"
- }
- var Ot = Math.max,
- Mt = Math.min,
- Nt = Math.round;
-
- function Lt(t, e, i) {
- return Ot(t, Mt(e, i))
- }
-
- function Ht(t) {
- return Object.assign({}, {
- top: 0,
- right: 0,
- bottom: 0,
- left: 0
- }, t)
- }
-
- function jt(i, t) {
- return t.reduce(function (t, e) {
- return t[e] = i, t
- }, {})
- }
- var zt = {
- name: "arrow",
- enabled: !0,
- phase: "main",
- fn: function (t) {
- var e, i, n, s = t.state,
- o = t.name,
- r = t.options,
- a = s.elements.arrow,
- l = s.modifiersData.popperOffsets,
- c = kt(s.placement),
- u = It(c),
- h = 0 <= [ht, ut].indexOf(c) ? "height" : "width";
- if (a && l) {
- var d = (i = r.padding, n = s, Ht("number" != typeof (i = "function" == typeof i ? i(Object.assign({}, n.rects, {
- placement: n.placement
- })) : i) ? i : jt(i, dt))),
- p = Ct(a),
- f = "y" === u ? lt : ht,
- g = "y" === u ? ct : ut,
- m = s.rects.reference[h] + s.rects.reference[u] - l[u] - s.rects.popper[h],
- v = l[u] - s.rects.reference[u],
- _ = Pt(a),
- y = _ ? "y" === u ? _.clientHeight || 0 : _.clientWidth || 0 : 0,
- b = m / 2 - v / 2,
- w = d[f],
- k = y - p[h] - d[g],
- x = y / 2 - p[h] / 2 + b,
- C = Lt(w, x, k),
- T = u;
- s.modifiersData[o] = ((e = {})[T] = C, e.centerOffset = C - x, e)
- }
- },
- effect: function (t) {
- var e = t.state,
- i = t.options.element,
- n = void 0 === i ? "[data-popper-arrow]" : i;
- null != n && ("string" != typeof n || (n = e.elements.popper.querySelector(n))) && Tt(e.elements.popper, n) && (e.elements.arrow = n)
- },
- requires: ["popperOffsets"],
- requiresIfExists: ["preventOverflow"]
- },
- Wt = {
- top: "auto",
- right: "auto",
- bottom: "auto",
- left: "auto"
- };
-
- function $t(t) {
- var e, i, n, s, o, r = t.popper,
- a = t.popperRect,
- l = t.placement,
- c = t.offsets,
- u = t.position,
- h = t.gpuAcceleration,
- d = t.adaptive,
- p = t.roundOffsets,
- f = !0 === p ? (n = (i = c).x, s = i.y, o = window.devicePixelRatio || 1, {
- x: Nt(Nt(n * o) / o) || 0,
- y: Nt(Nt(s * o) / o) || 0
- }) : "function" == typeof p ? p(c) : c,
- g = f.x,
- m = void 0 === g ? 0 : g,
- v = f.y,
- _ = void 0 === v ? 0 : v,
- y = c.hasOwnProperty("x"),
- b = c.hasOwnProperty("y"),
- w = ht,
- k = lt,
- x = window;
- if (d) {
- var C = Pt(r),
- T = "clientHeight",
- S = "clientWidth";
- 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)
- }
- var D, A = Object.assign({
- position: u
- }, d && Wt);
- 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))
- }
- var Rt = {
- name: "computeStyles",
- enabled: !0,
- phase: "beforeWrite",
- fn: function (t) {
- var e = t.state,
- i = t.options,
- n = i.gpuAcceleration,
- s = void 0 === n || n,
- o = i.adaptive,
- r = void 0 === o || o,
- a = i.roundOffsets,
- l = void 0 === a || a,
- c = {
- placement: kt(e.placement),
- popper: e.elements.popper,
- popperRect: e.rects.popper,
- gpuAcceleration: s
- };
- null != e.modifiersData.popperOffsets && (e.styles.popper = Object.assign({}, e.styles.popper, $t(Object.assign({}, c, {
- offsets: e.modifiersData.popperOffsets,
- position: e.options.strategy,
- adaptive: r,
- roundOffsets: l
- })))), null != e.modifiersData.arrow && (e.styles.arrow = Object.assign({}, e.styles.arrow, $t(Object.assign({}, c, {
- offsets: e.modifiersData.arrow,
- position: "absolute",
- adaptive: !1,
- roundOffsets: l
- })))), e.attributes.popper = Object.assign({}, e.attributes.popper, {
- "data-popper-placement": e.placement
- })
- },
- data: {}
- },
- Ft = {
- passive: !0
- },
- qt = {
- name: "eventListeners",
- enabled: !0,
- phase: "write",
- fn: function () {},
- effect: function (t) {
- var e = t.state,
- i = t.instance,
- n = t.options,
- s = n.scroll,
- o = void 0 === s || s,
- r = n.resize,
- a = void 0 === r || r,
- l = vt(e.elements.popper),
- c = [].concat(e.scrollParents.reference, e.scrollParents.popper);
- return o && c.forEach(function (t) {
- t.addEventListener("scroll", i.update, Ft)
- }), a && l.addEventListener("resize", i.update, Ft),
- function () {
- o && c.forEach(function (t) {
- t.removeEventListener("scroll", i.update, Ft)
- }), a && l.removeEventListener("resize", i.update, Ft)
- }
- },
- data: {}
- },
- Bt = {
- left: "right",
- right: "left",
- bottom: "top",
- top: "bottom"
- };
-
- function Ut(t) {
- return t.replace(/left|right|bottom|top/g, function (t) {
- return Bt[t]
- })
- }
- var Yt = {
- start: "end",
- end: "start"
- };
-
- function Vt(t) {
- return t.replace(/start|end/g, function (t) {
- return Yt[t]
- })
- }
-
- function Kt(t) {
- var e = vt(t);
- return {
- scrollLeft: e.pageXOffset,
- scrollTop: e.pageYOffset
- }
- }
-
- function Xt(t) {
- return xt(Dt(t)).left + Kt(t).scrollLeft
- }
-
- function Qt(t) {
- var e = St(t),
- i = e.overflow,
- n = e.overflowX,
- s = e.overflowY;
- return /auto|scroll|overlay|hidden/.test(i + s + n)
- }
-
- function Gt(t, e) {
- var i;
- void 0 === e && (e = []);
- var n = function t(e) {
- return 0 <= ["html", "body", "#document"].indexOf(mt(e)) ? e.ownerDocument.body : yt(e) && Qt(e) ? e : t(At(e))
- }(t),
- s = n === (null == (i = t.ownerDocument) ? void 0 : i.body),
- o = vt(n),
- r = s ? [o].concat(o.visualViewport || [], Qt(n) ? n : []) : n,
- a = e.concat(r);
- return s ? a : a.concat(Gt(At(r)))
- }
-
- function Jt(t) {
- return Object.assign({}, t, {
- left: t.x,
- top: t.y,
- right: t.x + t.width,
- bottom: t.y + t.height
- })
- }
-
- function Zt(t, e) {
- 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)), {
- width: v,
- height: _,
- x: y + Xt(p),
- y: b
- })) : 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), {
- width: a,
- height: l,
- x: c,
- y: u
- }));
- var i, n, s, o, r, a, l, c, u, h, d, p, f, g, m, v, _, y, b
- }
-
- function te(t) {
- return t.split("-")[1]
- }
-
- function ee(t) {
- var e, i = t.reference,
- n = t.element,
- s = t.placement,
- o = s ? kt(s) : null,
- r = s ? te(s) : null,
- a = i.x + i.width / 2 - n.width / 2,
- l = i.y + i.height / 2 - n.height / 2;
- switch (o) {
- case lt:
- e = {
- x: a,
- y: i.y - n.height
- };
- break;
- case ct:
- e = {
- x: a,
- y: i.y + i.height
- };
- break;
- case ut:
- e = {
- x: i.x + i.width,
- y: l
- };
- break;
- case ht:
- e = {
- x: i.x - n.width,
- y: l
- };
- break;
- default:
- e = {
- x: i.x,
- y: i.y
- }
- }
- var c = o ? It(o) : null;
- if (null != c) {
- var u = "y" === c ? "height" : "width";
- switch (r) {
- case "start":
- e[c] = e[c] - (i[u] / 2 - n[u] / 2);
- break;
- case "end":
- e[c] = e[c] + (i[u] / 2 - n[u] / 2)
- }
- }
- return e
- }
-
- function ie(t, e) {
- void 0 === e && (e = {});
- var n, i, s, o, r, a, l, c, u, h, d = e,
- p = d.placement,
- f = void 0 === p ? t.placement : p,
- g = d.boundary,
- m = void 0 === g ? "clippingParents" : g,
- v = d.rootBoundary,
- _ = void 0 === v ? "viewport" : v,
- y = d.elementContext,
- b = void 0 === y ? "popper" : y,
- w = d.altBoundary,
- k = void 0 !== w && w,
- x = d.padding,
- C = void 0 === x ? 0 : x,
- T = Ht("number" != typeof C ? C : jt(C, dt)),
- S = "popper" === b ? "reference" : "popper",
- D = t.elements.reference,
- A = t.rects.popper,
- E = t.elements[k ? S : b],
- 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) {
- return _t(t) && Tt(t, a) && "body" !== mt(t)
- }) : []) : [].concat(i), c = [].concat(l, [s]), u = c[0], (h = c.reduce(function (t, e) {
- var i = Zt(n, e);
- 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
- }, Zt(n, u))).width = h.right - h.left, h.height = h.bottom - h.top, h.x = h.left, h.y = h.top, h),
- I = xt(D),
- O = ee({
- reference: I,
- element: A,
- strategy: "absolute",
- placement: f
- }),
- M = Jt(Object.assign({}, A, O)),
- N = "popper" === b ? M : I,
- L = {
- top: P.top - N.top + T.top,
- bottom: N.bottom - P.bottom + T.bottom,
- left: P.left - N.left + T.left,
- right: N.right - P.right + T.right
- },
- H = t.modifiersData.offset;
- if ("popper" === b && H) {
- var j = H[f];
- Object.keys(L).forEach(function (t) {
- var e = 0 <= [ut, ct].indexOf(t) ? 1 : -1,
- i = 0 <= [lt, ct].indexOf(t) ? "y" : "x";
- L[t] += j[i] * e
- })
- }
- return L
- }
- var ne = {
- name: "flip",
- enabled: !0,
- phase: "main",
- fn: function (t) {
- var i = t.state,
- e = t.options,
- n = t.name;
- if (!i.modifiersData[n]._skip) {
- 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) {
- if ("auto" === kt(t)) return [];
- var e = Ut(t);
- return [Vt(t), e, Vt(e)]
- }(m) : [Ut(m)]), y = [m].concat(_).reduce(function (t, e) {
- return t.concat("auto" === kt(e) ? function (i, t) {
- void 0 === t && (t = {});
- var e = t,
- n = e.placement,
- s = e.boundary,
- o = e.rootBoundary,
- r = e.padding,
- a = e.flipVariations,
- l = e.allowedAutoPlacements,
- c = void 0 === l ? ft : l,
- u = te(n),
- h = u ? a ? pt : pt.filter(function (t) {
- return te(t) === u
- }) : dt,
- d = h.filter(function (t) {
- return 0 <= c.indexOf(t)
- });
- 0 === d.length && (d = h);
- var p = d.reduce(function (t, e) {
- return t[e] = ie(i, {
- placement: e,
- boundary: s,
- rootBoundary: o,
- padding: r
- })[kt(e)], t
- }, {});
- return Object.keys(p).sort(function (t, e) {
- return p[t] - p[e]
- })
- }(i, {
- placement: e,
- boundary: u,
- rootBoundary: h,
- padding: c,
- flipVariations: f,
- allowedAutoPlacements: g
- }) : e)
- }, []), b = i.rects.reference, w = i.rects.popper, k = new Map, x = !0, C = y[0], T = 0; T < y.length; T++) {
- var S = y[T],
- D = kt(S),
- A = "start" === te(S),
- E = 0 <= [lt, ct].indexOf(D),
- P = E ? "width" : "height",
- I = ie(i, {
- placement: S,
- boundary: u,
- rootBoundary: h,
- altBoundary: d,
- padding: c
- }),
- O = E ? A ? ut : ht : A ? ct : lt;
- b[P] > w[P] && (O = Ut(O));
- var M = Ut(O),
- N = [];
- if (o && N.push(I[D] <= 0), a && N.push(I[O] <= 0, I[M] <= 0), N.every(function (t) {
- return t
- })) {
- C = S, x = !1;
- break
- }
- k.set(S, N)
- }
- if (x)
- for (var L = function (i) {
- var t = y.find(function (t) {
- var e = k.get(t);
- if (e) return e.slice(0, i).every(function (t) {
- return t
- })
- });
- if (t) return C = t, "break"
- }, H = f ? 3 : 1; 0 < H && "break" !== L(H); H--);
- i.placement !== C && (i.modifiersData[n]._skip = !0, i.placement = C, i.reset = !0)
- }
- },
- requiresIfExists: ["offset"],
- data: {
- _skip: !1
- }
- };
-
- function se(t, e, i) {
- return void 0 === i && (i = {
- x: 0,
- y: 0
- }), {
- top: t.top - e.height - i.y,
- right: t.right - e.width + i.x,
- bottom: t.bottom - e.height + i.y,
- left: t.left - e.width - i.x
- }
- }
-
- function oe(e) {
- return [lt, ut, ct, ht].some(function (t) {
- return 0 <= e[t]
- })
- }
- var re = {
- name: "hide",
- enabled: !0,
- phase: "main",
- requiresIfExists: ["preventOverflow"],
- fn: function (t) {
- var e = t.state,
- i = t.name,
- n = e.rects.reference,
- s = e.rects.popper,
- o = e.modifiersData.preventOverflow,
- r = ie(e, {
- elementContext: "reference"
- }),
- a = ie(e, {
- altBoundary: !0
- }),
- l = se(r, n),
- c = se(a, s, o),
- u = oe(l),
- h = oe(c);
- e.modifiersData[i] = {
- referenceClippingOffsets: l,
- popperEscapeOffsets: c,
- isReferenceHidden: u,
- hasPopperEscaped: h
- }, e.attributes.popper = Object.assign({}, e.attributes.popper, {
- "data-popper-reference-hidden": u,
- "data-popper-escaped": h
- })
- }
- },
- ae = {
- name: "offset",
- enabled: !0,
- phase: "main",
- requires: ["popperOffsets"],
- fn: function (t) {
- var u = t.state,
- e = t.options,
- i = t.name,
- n = e.offset,
- h = void 0 === n ? [0, 0] : n,
- s = ft.reduce(function (t, e) {
- 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, {
- placement: i
- })) : s, l = a[0], c = a[1], l = l || 0, c = (c || 0) * r, 0 <= [ht, ut].indexOf(o) ? {
- x: c,
- y: l
- } : {
- x: l,
- y: c
- }), t;
- var i, n, s, o, r, a, l, c
- }, {}),
- o = s[u.placement],
- r = o.x,
- a = o.y;
- null != u.modifiersData.popperOffsets && (u.modifiersData.popperOffsets.x += r, u.modifiersData.popperOffsets.y += a), u.modifiersData[i] = s
- }
- },
- le = {
- name: "popperOffsets",
- enabled: !0,
- phase: "read",
- fn: function (t) {
- var e = t.state,
- i = t.name;
- e.modifiersData[i] = ee({
- reference: e.rects.reference,
- element: e.rects.popper,
- strategy: "absolute",
- placement: e.placement
- })
- },
- data: {}
- },
- ce = {
- name: "preventOverflow",
- enabled: !0,
- phase: "main",
- fn: function (t) {
- var e = t.state,
- i = t.options,
- n = t.name,
- s = i.mainAxis,
- o = void 0 === s || s,
- r = i.altAxis,
- a = void 0 !== r && r,
- l = i.boundary,
- c = i.rootBoundary,
- u = i.altBoundary,
- h = i.padding,
- d = i.tether,
- p = void 0 === d || d,
- f = i.tetherOffset,
- g = void 0 === f ? 0 : f,
- m = ie(e, {
- boundary: l,
- rootBoundary: c,
- padding: h,
- altBoundary: u
- }),
- v = kt(e.placement),
- _ = te(e.placement),
- y = !_,
- b = It(v),
- w = "x" === b ? "y" : "x",
- k = e.modifiersData.popperOffsets,
- x = e.rects.reference,
- C = e.rects.popper,
- T = "function" == typeof g ? g(Object.assign({}, e.rects, {
- placement: e.placement
- })) : g,
- S = {
- x: 0,
- y: 0
- };
- if (k) {
- if (o || a) {
- var D = "y" === b ? lt : ht,
- A = "y" === b ? ct : ut,
- E = "y" === b ? "height" : "width",
- P = k[b],
- I = k[b] + m[D],
- O = k[b] - m[A],
- M = p ? -C[E] / 2 : 0,
- N = "start" === _ ? x[E] : C[E],
- L = "start" === _ ? -C[E] : -x[E],
- H = e.elements.arrow,
- j = p && H ? Ct(H) : {
- width: 0,
- height: 0
- },
- z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : {
- top: 0,
- right: 0,
- bottom: 0,
- left: 0
- },
- W = z[D],
- $ = z[A],
- R = Lt(0, x[E], j[E]),
- F = y ? x[E] / 2 - M - R - W - T : N - R - W - T,
- q = y ? -x[E] / 2 + M + R + $ + T : L + R + $ + T,
- B = e.elements.arrow && Pt(e.elements.arrow),
- U = B ? "y" === b ? B.clientTop || 0 : B.clientLeft || 0 : 0,
- Y = e.modifiersData.offset ? e.modifiersData.offset[e.placement][b] : 0,
- V = k[b] + F - Y - U,
- K = k[b] + q - Y;
- if (o) {
- var X = Lt(p ? Mt(I, V) : I, P, p ? Ot(O, K) : O);
- k[b] = X, S[b] = X - P
- }
- if (a) {
- var Q = "x" === b ? lt : ht,
- G = "x" === b ? ct : ut,
- J = k[w],
- Z = J + m[Q],
- tt = J - m[G],
- et = Lt(p ? Mt(Z, V) : Z, J, p ? Ot(tt, K) : tt);
- k[w] = et, S[w] = et - J
- }
- }
- e.modifiersData[n] = S
- }
- },
- requiresIfExists: ["offset"]
- };
- var ue = {
- placement: "bottom",
- modifiers: [],
- strategy: "absolute"
- };
-
- function he() {
- for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++) e[i] = arguments[i];
- return !e.some(function (t) {
- return !(t && "function" == typeof t.getBoundingClientRect)
- })
- }
-
- function de(t) {
- void 0 === t && (t = {});
- var e = t,
- i = e.defaultModifiers,
- m = void 0 === i ? [] : i,
- n = e.defaultOptions,
- v = void 0 === n ? ue : n;
- return function (u, h, e) {
- void 0 === e && (e = v);
- var i, n, d = {
- placement: "bottom",
- orderedModifiers: [],
- options: Object.assign({}, ue, v),
- modifiersData: {},
- elements: {
- reference: u,
- popper: h
- },
- attributes: {},
- styles: {}
- },
- p = [],
- c = !1,
- f = {
- state: d,
- setOptions: function (t) {
- g(), d.options = Object.assign({}, v, d.options, t), d.scrollParents = {
- reference: _t(u) ? Gt(u) : u.contextElement ? Gt(u.contextElement) : [],
- popper: Gt(h)
- };
- var e, i, n, s, o, r, a, l, c = (e = [].concat(m, d.options.modifiers), i = e.reduce(function (t, e) {
- var i = t[e.name];
- return t[e.name] = i ? Object.assign({}, i, e, {
- options: Object.assign({}, i.options, e.options),
- data: Object.assign({}, i.data, e.data)
- }) : e, t
- }, {}), n = Object.keys(i).map(function (t) {
- return i[t]
- }), s = n, o = new Map, r = new Set, a = [], s.forEach(function (t) {
- o.set(t.name, t)
- }), s.forEach(function (t) {
- r.has(t.name) || function i(t) {
- r.add(t.name), [].concat(t.requires || [], t.requiresIfExists || []).forEach(function (t) {
- if (!r.has(t)) {
- var e = o.get(t);
- e && i(e)
- }
- }), a.push(t)
- }(t)
- }), l = a, gt.reduce(function (t, e) {
- return t.concat(l.filter(function (t) {
- return t.phase === e
- }))
- }, []));
- return d.orderedModifiers = c.filter(function (t) {
- return t.enabled
- }), d.orderedModifiers.forEach(function (t) {
- var e = t.name,
- i = t.options,
- n = void 0 === i ? {} : i,
- s = t.effect;
- if ("function" == typeof s) {
- var o = s({
- state: d,
- name: e,
- instance: f,
- options: n
- });
- p.push(o || function () {})
- }
- }), f.update()
- },
- forceUpdate: function () {
- if (!c) {
- var t = d.elements,
- e = t.reference,
- i = t.popper;
- if (he(e, i)) {
- d.rects = {
- reference: function (t, e, i) {
- void 0 === i && (i = !1);
- var n, s, o = Dt(e),
- r = xt(t),
- a = yt(e),
- l = {
- scrollLeft: 0,
- scrollTop: 0
- },
- c = {
- x: 0,
- y: 0
- };
- return (a || !a && !i) && (("body" !== mt(e) || Qt(o)) && (l = (n = e) !== vt(n) && yt(n) ? {
- scrollLeft: (s = n).scrollLeft,
- scrollTop: s.scrollTop
- } : Kt(n)), yt(e) ? ((c = xt(e)).x += e.clientLeft, c.y += e.clientTop) : o && (c.x = Xt(o))), {
- x: r.left + l.scrollLeft - c.x,
- y: r.top + l.scrollTop - c.y,
- width: r.width,
- height: r.height
- }
- }(e, Pt(i), "fixed" === d.options.strategy),
- popper: Ct(i)
- }, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function (t) {
- return d.modifiersData[t.name] = Object.assign({}, t.data)
- });
- for (var n = 0; n < d.orderedModifiers.length; n++)
- if (!0 !== d.reset) {
- var s = d.orderedModifiers[n],
- o = s.fn,
- r = s.options,
- a = void 0 === r ? {} : r,
- l = s.name;
- "function" == typeof o && (d = o({
- state: d,
- options: a,
- name: l,
- instance: f
- }) || d)
- } else d.reset = !1, n = -1
- }
- }
- },
- update: (i = function () {
- return new Promise(function (t) {
- f.forceUpdate(), t(d)
- })
- }, function () {
- return n || (n = new Promise(function (t) {
- Promise.resolve().then(function () {
- n = void 0, t(i())
- })
- })), n
- }),
- destroy: function () {
- g(), c = !0
- }
- };
- if (!he(u, h)) return f;
-
- function g() {
- p.forEach(function (t) {
- return t()
- }), p = []
- }
- return f.setOptions(e).then(function (t) {
- !c && e.onFirstUpdate && e.onFirstUpdate(t)
- }), f
- }
- }
- var pe = de(),
- fe = de({
- defaultModifiers: [qt, le, Rt, wt]
- }),
- ge = de({
- defaultModifiers: [qt, le, Rt, wt, ae, ne, ce, zt, re]
- }),
- me = Object.freeze({
- __proto__: null,
- popperGenerator: de,
- detectOverflow: ie,
- createPopperBase: pe,
- createPopper: ge,
- createPopperLite: fe,
- top: lt,
- bottom: ct,
- right: ut,
- left: ht,
- auto: "auto",
- basePlacements: dt,
- start: "start",
- end: "end",
- clippingParents: "clippingParents",
- viewport: "viewport",
- popper: "popper",
- reference: "reference",
- variationPlacements: pt,
- placements: ft,
- beforeRead: "beforeRead",
- read: "read",
- afterRead: "afterRead",
- beforeMain: "beforeMain",
- main: "main",
- afterMain: "afterMain",
- beforeWrite: "beforeWrite",
- write: "write",
- afterWrite: "afterWrite",
- modifierPhases: gt,
- applyStyles: wt,
- arrow: zt,
- computeStyles: Rt,
- eventListeners: qt,
- flip: ne,
- hide: re,
- offset: ae,
- popperOffsets: le,
- preventOverflow: ce
- }),
- ve = new RegExp("ArrowUp|ArrowDown|Escape"),
- _e = l() ? "top-end" : "top-start",
- ye = l() ? "top-start" : "top-end",
- be = l() ? "bottom-end" : "bottom-start",
- we = l() ? "bottom-start" : "bottom-end",
- ke = l() ? "left-start" : "right-start",
- xe = l() ? "right-start" : "left-start",
- Ce = {
- offset: [0, 2],
- boundary: "clippingParents",
- reference: "toggle",
- display: "dynamic",
- popperConfig: null,
- autoClose: !0
- },
- Te = {
- offset: "(array|string|function)",
- boundary: "(string|element)",
- reference: "(string|element|object)",
- display: "string",
- popperConfig: "(null|object|function)",
- autoClose: "(boolean|string)"
- },
- Se = function (t) {
- _inherits(l, U);
- var n = _createSuper(l);
-
- function l(t, e) {
- var i;
- 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
- }
- return _createClass(l, [{
- key: "toggle",
- value: function () {
- u(this._element) || (this._element.classList.contains("show") ? this.hide() : this.show())
- }
- }, {
- key: "show",
- value: function () {
- if (!u(this._element) && !this._menu.classList.contains("show")) {
- var t = l.getParentFromElement(this._element),
- e = {
- relatedTarget: this._element
- };
- if (!$.trigger(this._element, "show.bs.dropdown", e).defaultPrevented) {
- var i;
- if (this._inNavbar) Q.setDataAttribute(this._menu, "popper", "none");
- else {
- if (void 0 === me) throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");
- var n = this._element;
- "parent" === this._config.reference ? n = t : c(this._config.reference) ? n = r(this._config.reference) : "object" == _typeof(this._config.reference) && (n = this._config.reference);
- var s = this._getPopperConfig(),
- o = s.modifiers.find(function (t) {
- return "applyStyles" === t.name && !1 === t.enabled
- });
- this._popper = ge(n, this._menu, s), o && Q.setDataAttribute(this._menu, "popper", "static")
- }
- "ontouchstart" in document.documentElement && !t.closest(".navbar-nav") && (i = []).concat.apply(i, _toConsumableArray(document.body.children)).forEach(function (t) {
- return $.on(t, "mouseover", f)
- }), 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)
- }
- }
- }
- }, {
- key: "hide",
- value: function () {
- if (!u(this._element) && this._menu.classList.contains("show")) {
- var t = {
- relatedTarget: this._element
- };
- this._completeHide(t)
- }
- }
- }, {
- key: "dispose",
- value: function () {
- this._popper && this._popper.destroy(), _get(_getPrototypeOf(l.prototype), "dispose", this).call(this)
- }
- }, {
- key: "update",
- value: function () {
- this._inNavbar = this._detectNavbar(), this._popper && this._popper.update()
- }
- }, {
- key: "_addEventListeners",
- value: function () {
- var e = this;
- $.on(this._element, "click.bs.dropdown", function (t) {
- t.preventDefault(), e.toggle()
- })
- }
- }, {
- key: "_completeHide",
- value: function (t) {
- var e;
- $.trigger(this._element, "hide.bs.dropdown", t).defaultPrevented || ("ontouchstart" in document.documentElement && (e = []).concat.apply(e, _toConsumableArray(document.body.children)).forEach(function (t) {
- return $.off(t, "mouseover", f)
- }), 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))
- }
- }, {
- key: "_getConfig",
- value: function (t) {
- 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.');
- return t
- }
- }, {
- key: "_getMenuElement",
- value: function () {
- return x(this._element, ".dropdown-menu")[0]
- }
- }, {
- key: "_getPlacement",
- value: function () {
- var t = this._element.parentNode;
- if (t.classList.contains("dropend")) return ke;
- if (t.classList.contains("dropstart")) return xe;
- var e = "end" === getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();
- return t.classList.contains("dropup") ? e ? ye : _e : e ? we : be
- }
- }, {
- key: "_detectNavbar",
- value: function () {
- return null !== this._element.closest(".navbar")
- }
- }, {
- key: "_getOffset",
- value: function () {
- var e = this,
- i = this._config.offset;
- return "string" == typeof i ? i.split(",").map(function (t) {
- return Number.parseInt(t, 10)
- }) : "function" == typeof i ? function (t) {
- return i(t, e._element)
- } : i
- }
- }, {
- key: "_getPopperConfig",
- value: function () {
- var t = {
- placement: this._getPlacement(),
- modifiers: [{
- name: "preventOverflow",
- options: {
- boundary: this._config.boundary
- }
- }, {
- name: "offset",
- options: {
- offset: this._getOffset()
- }
- }]
- };
- return "static" === this._config.display && (t.modifiers = [{
- name: "applyStyles",
- enabled: !1
- }]), _objectSpread(_objectSpread({}, t), "function" == typeof this._config.popperConfig ? this._config.popperConfig(t) : this._config.popperConfig)
- }
- }, {
- key: "_selectMenuItem",
- value: function (t) {
- var e = t.key,
- i = t.target,
- n = _(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)", this._menu).filter(s);
- n.length && v(n, i, "ArrowDown" === e, !n.includes(i)).focus()
- }
- }], [{
- key: "dropdownInterface",
- value: function (t, e) {
- var i = l.getOrCreateInstance(t, e);
- if ("string" == typeof e) {
- if (void 0 === i[e]) throw new TypeError('No method named "'.concat(e, '"'));
- i[e]()
- }
- }
- }, {
- key: "jQueryInterface",
- value: function (t) {
- return this.each(function () {
- l.dropdownInterface(this, t)
- })
- }
- }, {
- key: "clearMenus",
- value: function (t) {
- if (!t || 2 !== t.button && ("keyup" !== t.type || "Tab" === t.key))
- for (var e = _('[data-bs-toggle="dropdown"]'), i = 0, n = e.length; i < n; i++) {
- var s = l.getInstance(e[i]);
- if (s && !1 !== s._config.autoClose && s._element.classList.contains("show")) {
- var o = {
- relatedTarget: s._element
- };
- if (t) {
- var r = t.composedPath(),
- a = r.includes(s._menu);
- if (r.includes(s._element) || "inside" === s._config.autoClose && !a || "outside" === s._config.autoClose && a) continue;
- if (s._menu.contains(t.target) && ("keyup" === t.type && "Tab" === t.key || /input|select|option|textarea|form/i.test(t.target.tagName))) continue;
- "click" === t.type && (o.clickEvent = t)
- }
- s._completeHide(o)
- }
- }
- }
- }, {
- key: "getParentFromElement",
- value: function (t) {
- return a(t) || t.parentNode
- }
- }, {
- key: "dataApiKeydownHandler",
- value: function (t) {
- var e = this;
- 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)) {
- var i = this.classList.contains("show");
- if ((i || "Escape" !== t.key) && (t.preventDefault(), t.stopPropagation(), !u(this))) {
- var n = function () {
- return e.matches('[data-bs-toggle="dropdown"]') ? e : k(e, '[data-bs-toggle="dropdown"]')[0]
- };
- 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())
- }
- }
- }
- }, {
- key: "Default",
- get: function () {
- return Ce
- }
- }, {
- key: "DefaultType",
- get: function () {
- return Te
- }
- }, {
- key: "NAME",
- get: function () {
- return "dropdown"
- }
- }]), l
- }();
- $.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) {
- t.preventDefault(), Se.dropdownInterface(this)
- }), t(Se);
- var De = function () {
- function t() {
- _classCallCheck(this, t), this._element = document.body
- }
- return _createClass(t, [{
- key: "getWidth",
- value: function () {
- var t = document.documentElement.clientWidth;
- return Math.abs(window.innerWidth - t)
- }
- }, {
- key: "hide",
- value: function () {
- var e = this.getWidth();
- this._disableOverFlow(), this._setElementAttributes(this._element, "paddingRight", function (t) {
- return t + e
- }), this._setElementAttributes(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top", "paddingRight", function (t) {
- return t + e
- }), this._setElementAttributes(".sticky-top", "marginRight", function (t) {
- return t - e
- })
- }
- }, {
- key: "_disableOverFlow",
- value: function () {
- this._saveInitialAttribute(this._element, "overflow"), this._element.style.overflow = "hidden"
- }
- }, {
- key: "_setElementAttributes",
- value: function (t, i, n) {
- var s = this,
- o = this.getWidth();
- this._applyManipulationCallback(t, function (t) {
- if (!(t !== s._element && window.innerWidth > t.clientWidth + o)) {
- s._saveInitialAttribute(t, i);
- var e = window.getComputedStyle(t)[i];
- t.style[i] = n(Number.parseFloat(e)) + "px"
- }
- })
- }
- }, {
- key: "reset",
- value: function () {
- 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")
- }
- }, {
- key: "_saveInitialAttribute",
- value: function (t, e) {
- var i = t.style[e];
- i && Q.setDataAttribute(t, e, i)
- }
- }, {
- key: "_resetElementAttributes",
- value: function (t, i) {
- this._applyManipulationCallback(t, function (t) {
- var e = Q.getDataAttribute(t, i);
- void 0 === e ? t.style.removeProperty(i) : (Q.removeDataAttribute(t, i), t.style[i] = e)
- })
- }
- }, {
- key: "_applyManipulationCallback",
- value: function (t, e) {
- c(t) ? e(t) : _(t, this._element).forEach(e)
- }
- }, {
- key: "isOverflowing",
- value: function () {
- return 0 < this.getWidth()
- }
- }]), t
- }(),
- Ae = {
- isVisible: !0,
- isAnimated: !1,
- rootElement: "body",
- clickCallback: null
- },
- Ee = {
- isVisible: "boolean",
- isAnimated: "boolean",
- rootElement: "(element|string)",
- clickCallback: "(function|null)"
- },
- Pe = function () {
- function e(t) {
- _classCallCheck(this, e), this._config = this._getConfig(t), this._isAppended = !1, this._element = null
- }
- return _createClass(e, [{
- key: "show",
- value: function (t) {
- this._config.isVisible ? (this._append(), this._config.isAnimated && g(this._getElement()), this._getElement().classList.add("show"), this._emulateAnimation(function () {
- o(t)
- })) : o(t)
- }
- }, {
- key: "hide",
- value: function (t) {
- var e = this;
- this._config.isVisible ? (this._getElement().classList.remove("show"), this._emulateAnimation(function () {
- e.dispose(), o(t)
- })) : o(t)
- }
- }, {
- key: "_getElement",
- value: function () {
- if (!this._element) {
- var t = document.createElement("div");
- t.className = "modal-backdrop", this._config.isAnimated && t.classList.add("fade"), this._element = t
- }
- return this._element
- }
- }, {
- key: "_getConfig",
- value: function (t) {
- return (t = _objectSpread(_objectSpread({}, Ae), "object" == _typeof(t) ? t : {})).rootElement = r(t.rootElement), d("backdrop", t, Ee), t
- }
- }, {
- key: "_append",
- value: function () {
- var t = this;
- this._isAppended || (this._config.rootElement.appendChild(this._getElement()), $.on(this._getElement(), "mousedown.bs.backdrop", function () {
- o(t._config.clickCallback)
- }), this._isAppended = !0)
- }
- }, {
- key: "dispose",
- value: function () {
- this._isAppended && ($.off(this._element, "mousedown.bs.backdrop"), this._element.remove(), this._isAppended = !1)
- }
- }, {
- key: "_emulateAnimation",
- value: function (t) {
- n(t, this._getElement(), this._config.isAnimated)
- }
- }]), e
- }(),
- Ie = {
- backdrop: !0,
- keyboard: !0,
- focus: !0
- },
- Oe = {
- backdrop: "(boolean|string)",
- keyboard: "boolean",
- focus: "boolean"
- },
- Me = function (t) {
- _inherits(s, U);
- var n = _createSuper(s);
-
- function s(t, e) {
- var i;
- 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
- }
- return _createClass(s, [{
- key: "toggle",
- value: function (t) {
- return this._isShown ? this.hide() : this.show(t)
- }
- }, {
- key: "show",
- value: function (t) {
- var e = this;
- this._isShown || this._isTransitioning || $.trigger(this._element, "show.bs.modal", {
- relatedTarget: t
- }).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) {
- return e.hide(t)
- }), $.on(this._dialog, "mousedown.dismiss.bs.modal", function () {
- $.one(e._element, "mouseup.dismiss.bs.modal", function (t) {
- t.target === e._element && (e._ignoreBackdropClick = !0)
- })
- }), this._showBackdrop(function () {
- return e._showElement(t)
- }))
- }
- }, {
- key: "hide",
- value: function (t) {
- var e = this;
- if (t && ["A", "AREA"].includes(t.target.tagName) && t.preventDefault(), this._isShown && !this._isTransitioning && !$.trigger(this._element, "hide.bs.modal").defaultPrevented) {
- this._isShown = !1;
- var i = this._isAnimated();
- 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 () {
- return e._hideModal()
- }, this._element, i)
- }
- }
- }, {
- key: "dispose",
- value: function () {
- [window, this._dialog].forEach(function (t) {
- return $.off(t, ".bs.modal")
- }), this._backdrop.dispose(), _get(_getPrototypeOf(s.prototype), "dispose", this).call(this), $.off(document, "focusin.bs.modal")
- }
- }, {
- key: "handleUpdate",
- value: function () {
- this._adjustDialog()
- }
- }, {
- key: "_initializeBackDrop",
- value: function () {
- return new Pe({
- isVisible: Boolean(this._config.backdrop),
- isAnimated: this._isAnimated()
- })
- }
- }, {
- key: "_getConfig",
- value: function (t) {
- return t = _objectSpread(_objectSpread(_objectSpread({}, Ie), Q.getDataAttributes(this._element)), "object" == _typeof(t) ? t : {}), d("modal", t, Oe), t
- }
- }, {
- key: "_showElement",
- value: function (t) {
- var e = this,
- i = this._isAnimated(),
- n = y(".modal-body", this._dialog);
- 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 () {
- e._config.focus && e._element.focus(), e._isTransitioning = !1, $.trigger(e._element, "shown.bs.modal", {
- relatedTarget: t
- })
- }, this._dialog, i)
- }
- }, {
- key: "_enforceFocus",
- value: function () {
- var e = this;
- $.off(document, "focusin.bs.modal"), $.on(document, "focusin.bs.modal", function (t) {
- document === t.target || e._element === t.target || e._element.contains(t.target) || e._element.focus()
- })
- }
- }, {
- key: "_setEscapeEvent",
- value: function () {
- var e = this;
- this._isShown ? $.on(this._element, "keydown.dismiss.bs.modal", function (t) {
- e._config.keyboard && "Escape" === t.key ? (t.preventDefault(), e.hide()) : e._config.keyboard || "Escape" !== t.key || e._triggerBackdropTransition()
- }) : $.off(this._element, "keydown.dismiss.bs.modal")
- }
- }, {
- key: "_setResizeEvent",
- value: function () {
- var t = this;
- this._isShown ? $.on(window, "resize.bs.modal", function () {
- return t._adjustDialog()
- }) : $.off(window, "resize.bs.modal")
- }
- }, {
- key: "_hideModal",
- value: function () {
- var t = this;
- 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 () {
- document.body.classList.remove("modal-open"), t._resetAdjustments(), t._scrollBar.reset(), $.trigger(t._element, "hidden.bs.modal")
- })
- }
- }, {
- key: "_showBackdrop",
- value: function (t) {
- var e = this;
- $.on(this._element, "click.dismiss.bs.modal", function (t) {
- e._ignoreBackdropClick ? e._ignoreBackdropClick = !1 : t.target === t.currentTarget && (!0 === e._config.backdrop ? e.hide() : "static" === e._config.backdrop && e._triggerBackdropTransition())
- }), this._backdrop.show(t)
- }
- }, {
- key: "_isAnimated",
- value: function () {
- return this._element.classList.contains("fade")
- }
- }, {
- key: "_triggerBackdropTransition",
- value: function () {
- var t = this;
- if (!$.trigger(this._element, "hidePrevented.bs.modal").defaultPrevented) {
- var e = this._element,
- i = e.classList,
- n = e.scrollHeight,
- s = e.style,
- o = n > document.documentElement.clientHeight;
- !o && "hidden" === s.overflowY || i.contains("modal-static") || (o || (s.overflowY = "hidden"), i.add("modal-static"), this._queueCallback(function () {
- i.remove("modal-static"), o || t._queueCallback(function () {
- s.overflowY = ""
- }, t._dialog)
- }, this._dialog), this._element.focus())
- }
- }
- }, {
- key: "_adjustDialog",
- value: function () {
- var t = this._element.scrollHeight > document.documentElement.clientHeight,
- e = this._scrollBar.getWidth(),
- i = 0 < e;
- (!i && t && !l() || i && !t && l()) && (this._element.style.paddingLeft = e + "px"), (i && !t && !l() || !i && t && l()) && (this._element.style.paddingRight = e + "px")
- }
- }, {
- key: "_resetAdjustments",
- value: function () {
- this._element.style.paddingLeft = "", this._element.style.paddingRight = ""
- }
- }], [{
- key: "jQueryInterface",
- value: function (e, i) {
- return this.each(function () {
- var t = s.getOrCreateInstance(this, e);
- if ("string" == typeof e) {
- if (void 0 === t[e]) throw new TypeError('No method named "'.concat(e, '"'));
- t[e](i)
- }
- })
- }
- }, {
- key: "Default",
- get: function () {
- return Ie
- }
- }, {
- key: "NAME",
- get: function () {
- return "modal"
- }
- }]), s
- }();
- $.on(document, "click.bs.modal.data-api", '[data-bs-toggle="modal"]', function (t) {
- var e = this,
- i = a(this);
- ["A", "AREA"].includes(this.tagName) && t.preventDefault(), $.one(i, "show.bs.modal", function (t) {
- t.defaultPrevented || $.one(i, "hidden.bs.modal", function () {
- s(e) && e.focus()
- })
- }), Me.getOrCreateInstance(i).toggle(this)
- }), t(Me);
- var Ne = {
- backdrop: !0,
- keyboard: !0,
- scroll: !1
- },
- Le = {
- backdrop: "boolean",
- keyboard: "boolean",
- scroll: "boolean"
- },
- He = function (t) {
- _inherits(s, U);
- var n = _createSuper(s);
-
- function s(t, e) {
- var i;
- return _classCallCheck(this, s), (i = n.call(this, t))._config = i._getConfig(e), i._isShown = !1, i._backdrop = i._initializeBackDrop(), i._addEventListeners(), i
- }
- return _createClass(s, [{
- key: "toggle",
- value: function (t) {
- return this._isShown ? this.hide() : this.show(t)
- }
- }, {
- key: "show",
- value: function (t) {
- var e = this;
- this._isShown || $.trigger(this._element, "show.bs.offcanvas", {
- relatedTarget: t
- }).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 () {
- $.trigger(e._element, "shown.bs.offcanvas", {
- relatedTarget: t
- })
- }, this._element, !0))
- }
- }, {
- key: "hide",
- value: function () {
- var t = this;
- 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 () {
- 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")
- }, this._element, !0)))
- }
- }, {
- key: "dispose",
- value: function () {
- this._backdrop.dispose(), _get(_getPrototypeOf(s.prototype), "dispose", this).call(this), $.off(document, "focusin.bs.offcanvas")
- }
- }, {
- key: "_getConfig",
- value: function (t) {
- return t = _objectSpread(_objectSpread(_objectSpread({}, Ne), Q.getDataAttributes(this._element)), "object" == _typeof(t) ? t : {}), d("offcanvas", t, Le), t
- }
- }, {
- key: "_initializeBackDrop",
- value: function () {
- var t = this;
- return new Pe({
- isVisible: this._config.backdrop,
- isAnimated: !0,
- rootElement: this._element.parentNode,
- clickCallback: function () {
- return t.hide()
- }
- })
- }
- }, {
- key: "_enforceFocusOnElement",
- value: function (e) {
- $.off(document, "focusin.bs.offcanvas"), $.on(document, "focusin.bs.offcanvas", function (t) {
- document === t.target || e === t.target || e.contains(t.target) || e.focus()
- }), e.focus()
- }
- }, {
- key: "_addEventListeners",
- value: function () {
- var e = this;
- $.on(this._element, "click.dismiss.bs.offcanvas", '[data-bs-dismiss="offcanvas"]', function () {
- return e.hide()
- }), $.on(this._element, "keydown.dismiss.bs.offcanvas", function (t) {
- e._config.keyboard && "Escape" === t.key && e.hide()
- })
- }
- }], [{
- key: "jQueryInterface",
- value: function (e) {
- return this.each(function () {
- var t = s.getOrCreateInstance(this, e);
- if ("string" == typeof e) {
- if (void 0 === t[e] || e.startsWith("_") || "constructor" === e) throw new TypeError('No method named "'.concat(e, '"'));
- t[e](this)
- }
- })
- }
- }, {
- key: "NAME",
- get: function () {
- return "offcanvas"
- }
- }, {
- key: "Default",
- get: function () {
- return Ne
- }
- }]), s
- }();
- $.on(document, "click.bs.offcanvas.data-api", '[data-bs-toggle="offcanvas"]', function (t) {
- var e = this,
- i = a(this);
- if (["A", "AREA"].includes(this.tagName) && t.preventDefault(), !u(this)) {
- $.one(i, "hidden.bs.offcanvas", function () {
- s(e) && e.focus()
- });
- var n = y(".offcanvas.show");
- n && n !== i && He.getInstance(n).hide(), He.getOrCreateInstance(i).toggle(this)
- }
- }), $.on(window, "load.bs.offcanvas.data-api", function () {
- return _(".offcanvas.show").forEach(function (t) {
- return He.getOrCreateInstance(t).show()
- })
- }), t(He);
- var je = new Set(["background", "cite", "href", "itemtype", "longdesc", "poster", "src", "xlink:href"]),
- ze = /^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,
- 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;
-
- function $e(t, a, e) {
- var i;
- if (!t.length) return t;
- if (e && "function" == typeof e) return e(t);
- 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) {
- var i, n = c[t],
- s = n.nodeName.toLowerCase();
- if (!l.includes(s)) return n.remove(), "continue";
- var o = (i = []).concat.apply(i, _toConsumableArray(n.attributes)),
- r = [].concat(a["*"] || [], a[s] || []);
- o.forEach(function (t) {
- (function (t, e) {
- var i = t.nodeName.toLowerCase();
- if (e.includes(i)) return !je.has(i) || Boolean(ze.test(t.nodeValue) || We.test(t.nodeValue));
- for (var n = e.filter(function (t) {
- return t instanceof RegExp
- }), s = 0, o = n.length; s < o; s++)
- if (n[s].test(i)) return !0;
- return !1
- })(t, r) || n.removeAttribute(t.nodeName)
- })
- }, o = 0, r = c.length; o < r; o++) s(o);
- return n.body.innerHTML
- }
- var Re = new RegExp("(^|\\s)bs-tooltip\\S+", "g"),
- Fe = new Set(["sanitize", "allowList", "sanitizeFn"]),
- qe = {
- animation: "boolean",
- template: "string",
- title: "(string|element|function)",
- trigger: "string",
- delay: "(number|object)",
- html: "boolean",
- selector: "(string|boolean)",
- placement: "(string|function)",
- offset: "(array|string|function)",
- container: "(string|element|boolean)",
- fallbackPlacements: "array",
- boundary: "(string|element)",
- customClass: "(string|function)",
- sanitize: "boolean",
- sanitizeFn: "(null|function)",
- allowList: "object",
- popperConfig: "(null|object|function)"
- },
- Be = {
- AUTO: "auto",
- TOP: "top",
- RIGHT: l() ? "left" : "right",
- BOTTOM: "bottom",
- LEFT: l() ? "right" : "left"
- },
- Ue = {
- animation: !0,
- template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
- trigger: "hover focus",
- title: "",
- delay: 0,
- html: !1,
- selector: !1,
- placement: "top",
- offset: [0, 0],
- container: !1,
- fallbackPlacements: ["top", "right", "bottom", "left"],
- boundary: "clippingParents",
- customClass: "",
- sanitize: !0,
- sanitizeFn: null,
- allowList: {
- "*": ["class", "dir", "id", "lang", "role", /^aria-[\w-]*$/i],
- a: ["target", "href", "title", "rel"],
- area: [],
- b: [],
- br: [],
- col: [],
- code: [],
- div: [],
- em: [],
- hr: [],
- h1: [],
- h2: [],
- h3: [],
- h4: [],
- h5: [],
- h6: [],
- i: [],
- img: ["src", "srcset", "alt", "title", "width", "height"],
- li: [],
- ol: [],
- p: [],
- pre: [],
- s: [],
- small: [],
- span: [],
- sub: [],
- sup: [],
- strong: [],
- u: [],
- ul: []
- },
- popperConfig: null
- },
- Ye = {
- HIDE: "hide.bs.tooltip",
- HIDDEN: "hidden.bs.tooltip",
- SHOW: "show.bs.tooltip",
- SHOWN: "shown.bs.tooltip",
- INSERTED: "inserted.bs.tooltip",
- CLICK: "click.bs.tooltip",
- FOCUSIN: "focusin.bs.tooltip",
- FOCUSOUT: "focusout.bs.tooltip",
- MOUSEENTER: "mouseenter.bs.tooltip",
- MOUSELEAVE: "mouseleave.bs.tooltip"
- },
- Ve = function (t) {
- _inherits(s, U);
- var n = _createSuper(s);
-
- function s(t, e) {
- var i;
- if (_classCallCheck(this, s), void 0 === me) throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");
- 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
- }
- return _createClass(s, [{
- key: "enable",
- value: function () {
- this._isEnabled = !0
- }
- }, {
- key: "disable",
- value: function () {
- this._isEnabled = !1
- }
- }, {
- key: "toggleEnabled",
- value: function () {
- this._isEnabled = !this._isEnabled
- }
- }, {
- key: "toggle",
- value: function (t) {
- if (this._isEnabled)
- if (t) {
- var e = this._initializeOnDelegatedTarget(t);
- e._activeTrigger.click = !e._activeTrigger.click, e._isWithActiveTrigger() ? e._enter(null, e) : e._leave(null, e)
- } else {
- if (this.getTipElement().classList.contains("show")) return void this._leave(null, this);
- this._enter(null, this)
- }
- }
- }, {
- key: "dispose",
- value: function () {
- 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)
- }
- }, {
- key: "show",
- value: function () {
- var t, e, i = this;
- if ("none" === this._element.style.display) throw new Error("Please use show on visible elements");
- if (this.isWithContent() && this._isEnabled) {
- var n = $.trigger(this._element, this.constructor.Event.SHOW),
- s = function t(e) {
- if (!document.documentElement.attachShadow) return null;
- if ("function" != typeof e.getRootNode) return e instanceof ShadowRoot ? e : e.parentNode ? t(e.parentNode) : null;
- var i = e.getRootNode();
- return i instanceof ShadowRoot ? i : null
- }(this._element),
- o = null === s ? this._element.ownerDocument.documentElement.contains(this._element) : s.contains(this._element);
- if (!n.defaultPrevented && o) {
- var r = this.getTipElement(),
- a = p(this.constructor.NAME);
- r.setAttribute("id", a), this._element.setAttribute("aria-describedby", a), this.setContent(), this._config.animation && r.classList.add("fade");
- var l = "function" == typeof this._config.placement ? this._config.placement.call(this, r, this._element) : this._config.placement,
- c = this._getAttachment(l);
- this._addAttachmentClass(c);
- var u = this._config.container;
- 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");
- var h = "function" == typeof this._config.customClass ? this._config.customClass() : this._config.customClass;
- 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) {
- $.on(t, "mouseover", f)
- });
- var d = this.tip.classList.contains("fade");
- this._queueCallback(function () {
- var t = i._hoverState;
- i._hoverState = null, $.trigger(i._element, i.constructor.Event.SHOWN), "out" === t && i._leave(null, i)
- }, this.tip, d)
- }
- }
- }
- }, {
- key: "hide",
- value: function () {
- var t, e = this;
- if (this._popper) {
- var i = this.getTipElement();
- if (!$.trigger(this._element, this.constructor.Event.HIDE).defaultPrevented) {
- i.classList.remove("show"), "ontouchstart" in document.documentElement && (t = []).concat.apply(t, _toConsumableArray(document.body.children)).forEach(function (t) {
- return $.off(t, "mouseover", f)
- }), this._activeTrigger.click = !1, this._activeTrigger.focus = !1, this._activeTrigger.hover = !1;
- var n = this.tip.classList.contains("fade");
- this._queueCallback(function () {
- 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))
- }, this.tip, n), this._hoverState = ""
- }
- }
- }
- }, {
- key: "update",
- value: function () {
- null !== this._popper && this._popper.update()
- }
- }, {
- key: "isWithContent",
- value: function () {
- return Boolean(this.getTitle())
- }
- }, {
- key: "getTipElement",
- value: function () {
- if (this.tip) return this.tip;
- var t = document.createElement("div");
- return t.innerHTML = this._config.template, this.tip = t.children[0], this.tip
- }
- }, {
- key: "setContent",
- value: function () {
- var t = this.getTipElement();
- this.setElementContent(y(".tooltip-inner", t), this.getTitle()), t.classList.remove("fade", "show")
- }
- }, {
- key: "setElementContent",
- value: function (t, e) {
- 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)
- }
- }, {
- key: "getTitle",
- value: function () {
- var t = this._element.getAttribute("data-bs-original-title");
- return t || (t = "function" == typeof this._config.title ? this._config.title.call(this._element) : this._config.title), t
- }
- }, {
- key: "updateAttachment",
- value: function (t) {
- return "right" === t ? "end" : "left" === t ? "start" : t
- }
- }, {
- key: "_initializeOnDelegatedTarget",
- value: function (t, e) {
- var i = this.constructor.DATA_KEY;
- return (e = e || q(t.delegateTarget, i)) || (e = new this.constructor(t.delegateTarget, this._getDelegateConfig()), F(t.delegateTarget, i, e)), e
- }
- }, {
- key: "_getOffset",
- value: function () {
- var e = this,
- i = this._config.offset;
- return "string" == typeof i ? i.split(",").map(function (t) {
- return Number.parseInt(t, 10)
- }) : "function" == typeof i ? function (t) {
- return i(t, e._element)
- } : i
- }
- }, {
- key: "_getPopperConfig",
- value: function (t) {
- var e = this,
- i = {
- placement: t,
- modifiers: [{
- name: "flip",
- options: {
- fallbackPlacements: this._config.fallbackPlacements
- }
- }, {
- name: "offset",
- options: {
- offset: this._getOffset()
- }
- }, {
- name: "preventOverflow",
- options: {
- boundary: this._config.boundary
- }
- }, {
- name: "arrow",
- options: {
- element: ".".concat(this.constructor.NAME, "-arrow")
- }
- }, {
- name: "onChange",
- enabled: !0,
- phase: "afterWrite",
- fn: function (t) {
- return e._handlePopperPlacementChange(t)
- }
- }],
- onFirstUpdate: function (t) {
- t.options.placement !== t.placement && e._handlePopperPlacementChange(t)
- }
- };
- return _objectSpread(_objectSpread({}, i), "function" == typeof this._config.popperConfig ? this._config.popperConfig(i) : this._config.popperConfig)
- }
- }, {
- key: "_addAttachmentClass",
- value: function (t) {
- this.getTipElement().classList.add("bs-tooltip-" + this.updateAttachment(t))
- }
- }, {
- key: "_getAttachment",
- value: function (t) {
- return Be[t.toUpperCase()]
- }
- }, {
- key: "_setListeners",
- value: function () {
- var n = this;
- this._config.trigger.split(" ").forEach(function (t) {
- if ("click" === t) $.on(n._element, n.constructor.Event.CLICK, n._config.selector, function (t) {
- return n.toggle(t)
- });
- else if ("manual" !== t) {
- var e = "hover" === t ? n.constructor.Event.MOUSEENTER : n.constructor.Event.FOCUSIN,
- i = "hover" === t ? n.constructor.Event.MOUSELEAVE : n.constructor.Event.FOCUSOUT;
- $.on(n._element, e, n._config.selector, function (t) {
- return n._enter(t)
- }), $.on(n._element, i, n._config.selector, function (t) {
- return n._leave(t)
- })
- }
- }), this._hideModalHandler = function () {
- n._element && n.hide()
- }, $.on(this._element.closest(".modal"), "hide.bs.modal", this._hideModalHandler), this._config.selector ? this._config = _objectSpread(_objectSpread({}, this._config), {}, {
- trigger: "manual",
- selector: ""
- }) : this._fixTitle()
- }
- }, {
- key: "_fixTitle",
- value: function () {
- var t = this._element.getAttribute("title"),
- e = _typeof(this._element.getAttribute("data-bs-original-title"));
- (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", ""))
- }
- }, {
- key: "_enter",
- value: function (t, e) {
- 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 () {
- "show" === e._hoverState && e.show()
- }, e._config.delay.show) : e.show())
- }
- }, {
- key: "_leave",
- value: function (t, e) {
- 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 () {
- "out" === e._hoverState && e.hide()
- }, e._config.delay.hide) : e.hide())
- }
- }, {
- key: "_isWithActiveTrigger",
- value: function () {
- for (var t in this._activeTrigger)
- if (this._activeTrigger[t]) return !0;
- return !1
- }
- }, {
- key: "_getConfig",
- value: function (t) {
- var e = Q.getDataAttributes(this._element);
- return Object.keys(e).forEach(function (t) {
- Fe.has(t) && delete e[t]
- }), (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 = {
- show: t.delay,
- hide: t.delay
- }), "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
- }
- }, {
- key: "_getDelegateConfig",
- value: function () {
- var t = {};
- if (this._config)
- for (var e in this._config) this.constructor.Default[e] !== this._config[e] && (t[e] = this._config[e]);
- return t
- }
- }, {
- key: "_cleanTipClass",
- value: function () {
- var e = this.getTipElement(),
- t = e.getAttribute("class").match(Re);
- null !== t && 0 < t.length && t.map(function (t) {
- return t.trim()
- }).forEach(function (t) {
- return e.classList.remove(t)
- })
- }
- }, {
- key: "_handlePopperPlacementChange",
- value: function (t) {
- var e = t.state;
- e && (this.tip = e.elements.popper, this._cleanTipClass(), this._addAttachmentClass(this._getAttachment(e.placement)))
- }
- }], [{
- key: "jQueryInterface",
- value: function (e) {
- return this.each(function () {
- var t = s.getOrCreateInstance(this, e);
- if ("string" == typeof e) {
- if (void 0 === t[e]) throw new TypeError('No method named "'.concat(e, '"'));
- t[e]()
- }
- })
- }
- }, {
- key: "Default",
- get: function () {
- return Ue
- }
- }, {
- key: "NAME",
- get: function () {
- return "tooltip"
- }
- }, {
- key: "Event",
- get: function () {
- return Ye
- }
- }, {
- key: "DefaultType",
- get: function () {
- return qe
- }
- }]), s
- }();
- t(Ve);
- var Ke = new RegExp("(^|\\s)bs-popover\\S+", "g"),
- Xe = _objectSpread(_objectSpread({}, Ve.Default), {}, {
- placement: "right",
- offset: [0, 8],
- trigger: "click",
- content: "",
- template: '<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'
- }),
- Qe = _objectSpread(_objectSpread({}, Ve.DefaultType), {}, {
- content: "(string|element|function)"
- }),
- Ge = {
- HIDE: "hide.bs.popover",
- HIDDEN: "hidden.bs.popover",
- SHOW: "show.bs.popover",
- SHOWN: "shown.bs.popover",
- INSERTED: "inserted.bs.popover",
- CLICK: "click.bs.popover",
- FOCUSIN: "focusin.bs.popover",
- FOCUSOUT: "focusout.bs.popover",
- MOUSEENTER: "mouseenter.bs.popover",
- MOUSELEAVE: "mouseleave.bs.popover"
- },
- Je = function (t) {
- _inherits(i, Ve);
- var e = _createSuper(i);
-
- function i() {
- return _classCallCheck(this, i), e.apply(this, arguments)
- }
- return _createClass(i, [{
- key: "isWithContent",
- value: function () {
- return this.getTitle() || this._getContent()
- }
- }, {
- key: "getTipElement",
- value: function () {
- 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
- }
- }, {
- key: "setContent",
- value: function () {
- var t = this.getTipElement();
- this.setElementContent(y(".popover-header", t), this.getTitle());
- var e = this._getContent();
- "function" == typeof e && (e = e.call(this._element)), this.setElementContent(y(".popover-body", t), e), t.classList.remove("fade", "show")
- }
- }, {
- key: "_addAttachmentClass",
- value: function (t) {
- this.getTipElement().classList.add("bs-popover-" + this.updateAttachment(t))
- }
- }, {
- key: "_getContent",
- value: function () {
- return this._element.getAttribute("data-bs-content") || this._config.content
- }
- }, {
- key: "_cleanTipClass",
- value: function () {
- var e = this.getTipElement(),
- t = e.getAttribute("class").match(Ke);
- null !== t && 0 < t.length && t.map(function (t) {
- return t.trim()
- }).forEach(function (t) {
- return e.classList.remove(t)
- })
- }
- }], [{
- key: "jQueryInterface",
- value: function (e) {
- return this.each(function () {
- var t = i.getOrCreateInstance(this, e);
- if ("string" == typeof e) {
- if (void 0 === t[e]) throw new TypeError('No method named "'.concat(e, '"'));
- t[e]()
- }
- })
- }
- }, {
- key: "Default",
- get: function () {
- return Xe
- }
- }, {
- key: "NAME",
- get: function () {
- return "popover"
- }
- }, {
- key: "Event",
- get: function () {
- return Ge
- }
- }, {
- key: "DefaultType",
- get: function () {
- return Qe
- }
- }]), i
- }();
- t(Je);
- var Ze = {
- offset: 10,
- method: "auto",
- target: ""
- },
- ti = {
- offset: "number",
- method: "string",
- target: "(string|element)"
- },
- ei = function (t) {
- _inherits(s, U);
- var n = _createSuper(s);
-
- function s(t, e) {
- var i;
- 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 () {
- return i._process()
- }), i.refresh(), i._process(), i
- }
- return _createClass(s, [{
- key: "refresh",
- value: function () {
- var e = this,
- t = this._scrollElement === this._scrollElement.window ? "offset" : "position",
- s = "auto" === this._config.method ? t : this._config.method,
- o = "position" === s ? this._getScrollTop() : 0;
- this._offsets = [], this._targets = [], this._scrollHeight = this._getScrollHeight(), _(this._selector).map(function (t) {
- var e = h(t),
- i = e ? y(e) : null;
- if (i) {
- var n = i.getBoundingClientRect();
- if (n.width || n.height) return [Q[s](i).top + o, e]
- }
- return null
- }).filter(function (t) {
- return t
- }).sort(function (t, e) {
- return t[0] - e[0]
- }).forEach(function (t) {
- e._offsets.push(t[0]), e._targets.push(t[1])
- })
- }
- }, {
- key: "dispose",
- value: function () {
- $.off(this._scrollElement, ".bs.scrollspy"), _get(_getPrototypeOf(s.prototype), "dispose", this).call(this)
- }
- }, {
- key: "_getConfig",
- value: function (t) {
- if ("string" != typeof (t = _objectSpread(_objectSpread(_objectSpread({}, Ze), Q.getDataAttributes(this._element)), "object" == _typeof(t) && t ? t : {})).target && c(t.target)) {
- var e = t.target.id;
- e || (e = p("scrollspy"), t.target.id = e), t.target = "#" + e
- }
- return d("scrollspy", t, ti), t
- }
- }, {
- key: "_getScrollTop",
- value: function () {
- return this._scrollElement === window ? this._scrollElement.pageYOffset : this._scrollElement.scrollTop
- }
- }, {
- key: "_getScrollHeight",
- value: function () {
- return this._scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight)
- }
- }, {
- key: "_getOffsetHeight",
- value: function () {
- return this._scrollElement === window ? window.innerHeight : this._scrollElement.getBoundingClientRect().height
- }
- }, {
- key: "_process",
- value: function () {
- var t = this._getScrollTop() + this._config.offset,
- e = this._getScrollHeight(),
- i = this._config.offset + e - this._getOffsetHeight();
- if (this._scrollHeight !== e && this.refresh(), i <= t) {
- var n = this._targets[this._targets.length - 1];
- this._activeTarget !== n && this._activate(n)
- } else {
- if (this._activeTarget && t < this._offsets[0] && 0 < this._offsets[0]) return this._activeTarget = null, void this._clear();
- 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])
- }
- }
- }, {
- key: "_activate",
- value: function (e) {
- this._activeTarget = e, this._clear();
- var t = this._selector.split(",").map(function (t) {
- return "".concat(t, '[data-bs-target="').concat(e, '"],').concat(t, '[href="').concat(e, '"]')
- }),
- i = y(t.join(","));
- 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) {
- k(t, ".nav-link, .list-group-item").forEach(function (t) {
- return t.classList.add("active")
- }), k(t, ".nav-item").forEach(function (t) {
- b(t, ".nav-link").forEach(function (t) {
- return t.classList.add("active")
- })
- })
- })), $.trigger(this._scrollElement, "activate.bs.scrollspy", {
- relatedTarget: e
- })
- }
- }, {
- key: "_clear",
- value: function () {
- _(this._selector).filter(function (t) {
- return t.classList.contains("active")
- }).forEach(function (t) {
- return t.classList.remove("active")
- })
- }
- }], [{
- key: "jQueryInterface",
- value: function (e) {
- return this.each(function () {
- var t = s.getOrCreateInstance(this, e);
- if ("string" == typeof e) {
- if (void 0 === t[e]) throw new TypeError('No method named "'.concat(e, '"'));
- t[e]()
- }
- })
- }
- }, {
- key: "Default",
- get: function () {
- return Ze
- }
- }, {
- key: "NAME",
- get: function () {
- return "scrollspy"
- }
- }]), s
- }();
- $.on(window, "load.bs.scrollspy.data-api", function () {
- _('[data-bs-spy="scroll"]').forEach(function (t) {
- return new ei(t)
- })
- }), t(ei);
- var ii = function (t) {
- _inherits(i, U);
- var e = _createSuper(i);
-
- function i() {
- return _classCallCheck(this, i), e.apply(this, arguments)
- }
- return _createClass(i, [{
- key: "show",
- value: function () {
- var t = this;
- if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE || !this._element.classList.contains("active")) {
- var e, i = a(this._element),
- n = this._element.closest(".nav, .list-group");
- if (n) {
- var s = "UL" === n.nodeName || "OL" === n.nodeName ? ":scope > li > .active" : ".active";
- e = (e = _(s, n))[e.length - 1]
- }
- var o = e ? $.trigger(e, "hide.bs.tab", {
- relatedTarget: this._element
- }) : null;
- if (!($.trigger(this._element, "show.bs.tab", {
- relatedTarget: e
- }).defaultPrevented || null !== o && o.defaultPrevented)) {
- this._activate(this._element, n);
- var r = function () {
- $.trigger(e, "hidden.bs.tab", {
- relatedTarget: t._element
- }), $.trigger(t._element, "shown.bs.tab", {
- relatedTarget: e
- })
- };
- i ? this._activate(i, i.parentNode, r) : r()
- }
- }
- }
- }, {
- key: "_activate",
- value: function (t, e, i) {
- function n() {
- return s._transitionComplete(t, o, i)
- }
- var s = this,
- o = (!e || "UL" !== e.nodeName && "OL" !== e.nodeName ? b(e, ".active") : _(":scope > li > .active", e))[0],
- r = i && o && o.classList.contains("fade");
- o && r ? (o.classList.remove("show"), this._queueCallback(n, t, !0)) : n()
- }
- }, {
- key: "_transitionComplete",
- value: function (t, e, i) {
- if (e) {
- e.classList.remove("active");
- var n = y(":scope > .dropdown-menu .active", e.parentNode);
- n && n.classList.remove("active"), "tab" === e.getAttribute("role") && e.setAttribute("aria-selected", !1)
- }
- t.classList.add("active"), "tab" === t.getAttribute("role") && t.setAttribute("aria-selected", !0), g(t), t.classList.contains("fade") && t.classList.add("show");
- var s = t.parentNode;
- if (s && "LI" === s.nodeName && (s = s.parentNode), s && s.classList.contains("dropdown-menu")) {
- var o = t.closest(".dropdown");
- o && _(".dropdown-toggle", o).forEach(function (t) {
- return t.classList.add("active")
- }), t.setAttribute("aria-expanded", !0)
- }
- i && i()
- }
- }], [{
- key: "jQueryInterface",
- value: function (e) {
- return this.each(function () {
- var t = i.getOrCreateInstance(this);
- if ("string" == typeof e) {
- if (void 0 === t[e]) throw new TypeError('No method named "'.concat(e, '"'));
- t[e]()
- }
- })
- }
- }, {
- key: "NAME",
- get: function () {
- return "tab"
- }
- }]), i
- }();
- $.on(document, "click.bs.tab.data-api", '[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]', function (t) {
- ["A", "AREA"].includes(this.tagName) && t.preventDefault(), u(this) || ii.getOrCreateInstance(this).show()
- }), t(ii);
- var ni = {
- animation: "boolean",
- autohide: "boolean",
- delay: "number"
- },
- si = {
- animation: !0,
- autohide: !0,
- delay: 5e3
- },
- oi = function (t) {
- _inherits(s, U);
- var n = _createSuper(s);
-
- function s(t, e) {
- var i;
- 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
- }
- return _createClass(s, [{
- key: "show",
- value: function () {
- var t = this;
- $.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 () {
- t._element.classList.remove("showing"), t._element.classList.add("show"), $.trigger(t._element, "shown.bs.toast"), t._maybeScheduleHide()
- }, this._element, this._config.animation))
- }
- }, {
- key: "hide",
- value: function () {
- var t = this;
- this._element.classList.contains("show") && ($.trigger(this._element, "hide.bs.toast").defaultPrevented || (this._element.classList.remove("show"), this._queueCallback(function () {
- t._element.classList.add("hide"), $.trigger(t._element, "hidden.bs.toast")
- }, this._element, this._config.animation)))
- }
- }, {
- key: "dispose",
- value: function () {
- this._clearTimeout(), this._element.classList.contains("show") && this._element.classList.remove("show"), _get(_getPrototypeOf(s.prototype), "dispose", this).call(this)
- }
- }, {
- key: "_getConfig",
- value: function (t) {
- return t = _objectSpread(_objectSpread(_objectSpread({}, si), Q.getDataAttributes(this._element)), "object" == _typeof(t) && t ? t : {}), d("toast", t, this.constructor.DefaultType), t
- }
- }, {
- key: "_maybeScheduleHide",
- value: function () {
- var t = this;
- this._config.autohide && (this._hasMouseInteraction || this._hasKeyboardInteraction || (this._timeout = setTimeout(function () {
- t.hide()
- }, this._config.delay)))
- }
- }, {
- key: "_onInteraction",
- value: function (t, e) {
- switch (t.type) {
- case "mouseover":
- case "mouseout":
- this._hasMouseInteraction = e;
- break;
- case "focusin":
- case "focusout":
- this._hasKeyboardInteraction = e
- }
- if (e) this._clearTimeout();
- else {
- var i = t.relatedTarget;
- this._element === i || this._element.contains(i) || this._maybeScheduleHide()
- }
- }
- }, {
- key: "_setListeners",
- value: function () {
- var e = this;
- $.on(this._element, "click.dismiss.bs.toast", '[data-bs-dismiss="toast"]', function () {
- return e.hide()
- }), $.on(this._element, "mouseover.bs.toast", function (t) {
- return e._onInteraction(t, !0)
- }), $.on(this._element, "mouseout.bs.toast", function (t) {
- return e._onInteraction(t, !1)
- }), $.on(this._element, "focusin.bs.toast", function (t) {
- return e._onInteraction(t, !0)
- }), $.on(this._element, "focusout.bs.toast", function (t) {
- return e._onInteraction(t, !1)
- })
- }
- }, {
- key: "_clearTimeout",
- value: function () {
- clearTimeout(this._timeout), this._timeout = null
- }
- }], [{
- key: "jQueryInterface",
- value: function (e) {
- return this.each(function () {
- var t = s.getOrCreateInstance(this, e);
- if ("string" == typeof e) {
- if (void 0 === t[e]) throw new TypeError('No method named "'.concat(e, '"'));
- t[e](this)
- }
- })
- }
- }, {
- key: "DefaultType",
- get: function () {
- return ni
- }
- }, {
- key: "Default",
- get: function () {
- return si
- }
- }, {
- key: "NAME",
- get: function () {
- return "toast"
- }
- }]), s
- }();
- return t(oi), {
- Alert: Y,
- Button: V,
- Carousel: st,
- Collapse: at,
- Dropdown: Se,
- Modal: Me,
- Offcanvas: He,
- Popover: Je,
- ScrollSpy: ei,
- Tab: ii,
- Toast: oi,
- Tooltip: Ve
- }
- }),
- function (r) {
- var t = r(".search-toggle"),
- e = r(".scale"),
- i = r(".searching button"),
- n = r("body"),
- s = e.add(i);
- 0 < t.length && t.on("click", function () {
- return n.toggleClass("open"), !1
- }), 0 < s.length && s.on("click", function () {
- return n.removeClass("open"), !1
- }), r(".close").on("click", function () {
- r("body").removeClass("open")
- });
- var o = r(window),
- a = r("body");
- r(o).on("scroll", function () {
- r(o).scrollTop() < 150 ? r("#sticky").removeClass("is-isticky") : r("#sticky").addClass("is-isticky")
- });
- var l, c = r(".offcanvas-toggle"),
- u = r(".offcanvas"),
- h = r(".offcanvas-overlay"),
- d = r(".mobile-menu-toggle");
- c.on("click", function (t) {
- t.preventDefault();
- var e = r(this),
- i = e.attr("href");
- a.addClass("offcanvas-open"), r(i).addClass("offcanvas-open"), h.fadeIn(), e.parent().hasClass("mobile-menu-toggle") && e.addClass("close")
- }), r(".offcanvas-close, .offcanvas-overlay").on("click", function (t) {
- t.preventDefault(), a.removeClass("offcanvas-open"), u.removeClass("offcanvas-open"), h.fadeOut(), d.find("a").removeClass("close")
- }), (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) {
- var e = r(this);
- ("#" === 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()))
- }), r("#offcanvas-menu2 li a").on("click", function (t) {
- 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()
- }), r(".main-slider").slick({
- autoplay: !0,
- autoplaySpeed: 6e3,
- speed: 800,
- slidesToShow: 1,
- slidesToScroll: 1,
- dots: !0,
- fade: !0,
- arrows: !0,
- prevArrow: '<button class="slick-prev"><i class="fas fa-chevron-left"></i></button>',
- nextArrow: '<button class="slick-next"><i class="fas fa-chevron-right"></i></button>',
- responsive: [{
- breakpoint: 767,
- settings: {
- dots: !0,
- arrows: !1
- }
- }]
- }).slickAnimation(), r(".product-slider-init").slick({
- autoplay: !1,
- autoplaySpeed: 1e4,
- dots: !1,
- infinite: !1,
- arrows: !0,
- speed: 1e3,
- slidesToShow: 4,
- slidesToScroll: 1,
- prevArrow: '<button class="slick-prev"><i class="fa fa-chevron-left"></i></button>',
- nextArrow: '<button class="slick-next"><i class="fa fa-chevron-right"></i></button>',
- responsive: [{
- breakpoint: 1199,
- settings: {
- slidesToShow: 3,
- slidesToScroll: 1,
- infinite: !0,
- dots: !1
- }
- }, {
- breakpoint: 1024,
- settings: {
- slidesToShow: 3,
- slidesToScroll: 1,
- arrows: !0,
- autoplay: !0
- }
- }, {
- breakpoint: 768,
- settings: {
- slidesToShow: 2,
- slidesToScroll: 1,
- arrows: !1,
- autoplay: !0
- }
- }, {
- breakpoint: 480,
- settings: {
- slidesToShow: 1,
- slidesToScroll: 1,
- arrows: !1,
- autoplay: !0
- }
- }]
- }), r(".popular-slider-init").slick({
- autoplay: !1,
- autoplaySpeed: 1e4,
- dots: !0,
- infinite: !1,
- arrows: !1,
- speed: 1e3,
- slidesToShow: 5,
- slidesToScroll: 1,
- prevArrow: '<button class="slick-prev"><i class="fa fa-chevron-left"></i></button>',
- nextArrow: '<button class="slick-next"><i class="fa fa-chevron-right"></i></button>',
- responsive: [{
- breakpoint: 1280,
- settings: {
- slidesToShow: 4,
- slidesToScroll: 1,
- infinite: !1,
- dots: !0
- }
- }, {
- breakpoint: 991,
- settings: {
- slidesToShow: 3,
- slidesToScroll: 1,
- arrows: !1,
- autoplay: !0
- }
- }, {
- breakpoint: 768,
- settings: {
- slidesToShow: 2,
- slidesToScroll: 1,
- arrows: !1,
- autoplay: !0
- }
- }, {
- breakpoint: 480,
- settings: {
- slidesToShow: 1,
- slidesToScroll: 1,
- arrows: !1,
- autoplay: !0
- }
- }]
- }), r(".featured-init").slick({
- autoplay: !1,
- autoplaySpeed: 1e4,
- dots: !1,
- infinite: !1,
- arrows: !0,
- speed: 1e3,
- slidesToShow: 4,
- slidesToScroll: 1,
- prevArrow: '<button class="slick-prev"><i class="fa fa-chevron-left"></i></button>',
- nextArrow: '<button class="slick-next"><i class="fa fa-chevron-right"></i></button>',
- responsive: [{
- breakpoint: 1280,
- settings: {
- slidesToShow: 3,
- slidesToScroll: 1,
- infinite: !1,
- dots: !1
- }
- }, {
- breakpoint: 991,
- settings: {
- slidesToShow: 2,
- slidesToScroll: 1,
- arrows: !0,
- autoplay: !0
- }
- }, {
- breakpoint: 768,
- settings: {
- slidesToShow: 2,
- slidesToScroll: 1,
- arrows: !0,
- autoplay: !0
- }
- }, {
- breakpoint: 480,
- settings: {
- slidesToShow: 1,
- slidesToScroll: 1,
- arrows: !1,
- autoplay: !0
- }
- }]
- }), r(".product-ctry-init").slick({
- autoplay: !1,
- autoplaySpeed: 1e4,
- dots: !1,
- infinite: !1,
- arrows: !0,
- speed: 1e3,
- slidesToShow: 1,
- slidesToScroll: 1,
- prevArrow: '<button class="slick-prev"><i class="fa fa-chevron-left"></i></button>',
- nextArrow: '<button class="slick-next"><i class="fa fa-chevron-right"></i></button>',
- responsive: [{
- breakpoint: 1024,
- settings: {
- slidesToShow: 1,
- slidesToScroll: 1,
- infinite: !0,
- dots: !1
- }
- }, {
- breakpoint: 992,
- settings: {
- slidesToShow: 2,
- slidesToScroll: 1,
- arrows: !0,
- autoplay: !0
- }
- }, {
- breakpoint: 767,
- settings: {
- slidesToShow: 1,
- slidesToScroll: 1,
- arrows: !1,
- autoplay: !0
- }
- }]
- }), r(".blog-init").slick({
- autoplay: !1,
- autoplaySpeed: 1e4,
- dots: !1,
- infinite: !1,
- arrows: !0,
- speed: 1e3,
- slidesToShow: 4,
- slidesToScroll: 1,
- prevArrow: '<button class="slick-prev"><i class="fa fa-chevron-left"></i></button>',
- nextArrow: '<button class="slick-next"><i class="fa fa-chevron-right"></i></button>',
- responsive: [{
- breakpoint: 1024,
- settings: {
- slidesToShow: 3,
- slidesToScroll: 1,
- infinite: !0,
- dots: !1
- }
- }, {
- breakpoint: 991,
- settings: {
- slidesToShow: 2,
- slidesToScroll: 1,
- arrows: !0,
- autoplay: !0
- }
- }, {
- breakpoint: 767,
- settings: {
- slidesToShow: 1,
- slidesToScroll: 1,
- arrows: !1,
- autoplay: !0
- }
- }, {
- breakpoint: 575,
- settings: {
- slidesToShow: 1,
- slidesToScroll: 1,
- arrows: !1,
- autoplay: !0
- }
- }]
- }), r(".brand-init").slick({
- autoplay: !1,
- autoplaySpeed: 1e4,
- dots: !1,
- infinite: !1,
- arrows: !0,
- speed: 1e3,
- slidesToShow: 6,
- slidesToScroll: 1,
- prevArrow: '<button class="slick-prev"><i class="fa fa-chevron-left"></i></button>',
- nextArrow: '<button class="slick-next"><i class="fa fa-chevron-right"></i></button>',
- responsive: [{
- breakpoint: 1024,
- settings: {
- slidesToShow: 5,
- slidesToScroll: 1,
- infinite: !0,
- dots: !1
- }
- }, {
- breakpoint: 991,
- settings: {
- slidesToShow: 4,
- slidesToScroll: 1,
- arrows: !0,
- autoplay: !0
- }
- }, {
- breakpoint: 767,
- settings: {
- slidesToShow: 3,
- slidesToScroll: 1,
- arrows: !1,
- autoplay: !0
- }
- }, {
- breakpoint: 575,
- settings: {
- slidesToShow: 2,
- slidesToScroll: 1,
- arrows: !1,
- autoplay: !0
- }
- }]
- }), r(".countdown-sync-init").slick({
- slidesToShow: 1,
- slidesToScroll: 1,
- infinite: !0,
- draggable: !1,
- arrows: !1,
- dots: !1,
- fade: !0,
- asNavFor: ".countdown-sync-nav"
- }), r(".countdown-sync-nav").slick({
- dots: !1,
- arrows: !1,
- infinite: !0,
- prevArrow: '<button class="slick-prev"><i class="fas fa-arrow-left"></i></button>',
- nextArrow: '<button class="slick-next"><i class="fas fa-arrow-right"></i></button>',
- slidesToShow: 3,
- slidesToScroll: 1,
- asNavFor: ".countdown-sync-init",
- focusOnSelect: !0,
- draggable: !1
- }), r(".product-sync-init").slick({
- slidesToShow: 1,
- slidesToScroll: 1,
- infinite: !0,
- draggable: !1,
- arrows: !1,
- dots: !1,
- fade: !0,
- asNavFor: ".product-sync-nav"
- }), r(".product-sync-nav").slick({
- dots: !1,
- arrows: !1,
- infinite: !0,
- prevArrow: '<button class="slick-prev"><i class="fas fa-arrow-left"></i></button>',
- nextArrow: '<button class="slick-next"><i class="fas fa-arrow-right"></i></button>',
- slidesToShow: 4,
- slidesToScroll: 1,
- asNavFor: ".product-sync-init",
- focusOnSelect: !0,
- draggable: !1
- });
- [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map(function (t) {
- return new bootstrap.Tooltip(t)
- });
- r("#slider-range").slider({
- range: !0,
- min: 0,
- max: 800,
- values: [200, 600],
- slide: function (t, e) {
- r("#amount").val("€" + e.values[0] + " - €" + e.values[1])
- }
- }), 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) {
- t.target, t.relatedTarget, r(".slick-slider").slick("setPosition")
- }), r(".modal").on("shown.bs.modal", function (t) {
- r(".slick-slider").slick("setPosition")
- }), r("#write-comment").on("click", function (t) {
- t.preventDefault(), r("html, body").animate({
- scrollTop: r(".btn-dark ").offset().top + 750
- }, 500, "linear")
- }), r(".count").each(function () {
- var i = r(this),
- n = i.find('input[type="number"]'),
- t = i.find(".increment"),
- e = i.find(".decrement"),
- s = n.attr("min"),
- o = n.attr("max");
- t.on("click", function () {
- var t = parseFloat(n.val());
- if (o <= t) var e = t;
- else e = t + 1;
- i.find("input").val(e), i.find("input").trigger("change")
- }), e.on("click", function () {
- var t = parseFloat(n.val());
- if (t <= s) var e = t;
- else e = t - 1;
- i.find("input").val(e), i.find("input").trigger("change")
- })
- }), r(".checkout-toggle2").on("click", function () {
- r(".open-toggle2").slideToggle(1e3)
- }), r(".checkout-toggle").on("click", function () {
- r(".open-toggle").slideToggle(1e3)
- }), r.scrollUp({
- scrollName: "scrollUp",
- scrollDistance: 400,
- scrollFrom: "top",
- scrollSpeed: 800,
- easingType: "linear",
- animation: "fade",
- animationSpeed: 400,
- scrollTrigger: !1,
- scrollTarget: !1,
- scrollText: '<i class="fas fa-arrow-up"></i>',
- scrollTitle: !1,
- scrollImg: !1,
- activeOverlay: !1,
- zIndex: 214
- })
- }(jQuery), $(function () {
- var i = $("#contact-form"),
- n = $(".form-message");
- $(i).submit(function (t) {
- t.preventDefault();
- var e = $(i).serialize();
- $.ajax({
- type: "POST",
- url: $(i).attr("action"),
- data: e
- }).done(function (t) {
- $(n).removeClass("error"), $(n).addClass("success"), $(n).text(t), $("#contact-form input,#contact-form textarea").val("")
- }).fail(function (t) {
- $(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.")
- })
- })
- }),
- function (t) {
- "function" == typeof define && define.amd ? define(["jquery"], t) : t(jQuery)
- }(function (S) {
- function t() {
- 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[""] = {
- closeText: "Done",
- prevText: "Prev",
- nextText: "Next",
- currentText: "Today",
- monthNames: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
- monthNamesShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
- dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
- dayNamesShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
- dayNamesMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
- weekHeader: "Wk",
- dateFormat: "mm/dd/yy",
- firstDay: 0,
- isRTL: !1,
- showMonthAfterYear: !1,
- yearSuffix: ""
- }, this._defaults = {
- showOn: "focus",
- showAnim: "fadeIn",
- showOptions: {},
- defaultDate: null,
- appendText: "",
- buttonText: "...",
- buttonImage: "",
- buttonImageOnly: !1,
- hideIfNoPrevNext: !1,
- navigationAsDateFormat: !1,
- gotoCurrent: !1,
- changeMonth: !1,
- changeYear: !1,
- yearRange: "c-10:c+10",
- showOtherMonths: !1,
- selectOtherMonths: !1,
- showWeek: !1,
- calculateWeek: this.iso8601Week,
- shortYearCutoff: "+10",
- minDate: null,
- maxDate: null,
- duration: "fast",
- beforeShowDay: null,
- beforeShow: null,
- onSelect: null,
- onChangeMonthYear: null,
- onClose: null,
- numberOfMonths: 1,
- showCurrentAtPos: 0,
- stepMonths: 1,
- stepBigMonths: 12,
- altField: "",
- altFormat: "",
- constrainInput: !0,
- showButtonPanel: !1,
- autoSize: !1,
- disabled: !1
- }, 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>"))
- }
-
- function i(t) {
- var e = "button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";
- return t.on("mouseout", e, function () {
- 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")
- }).on("mouseover", e, o)
- }
-
- function o() {
- 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"))
- }
-
- function h(t, e) {
- for (var i in S.extend(t, e), e) null == e[i] && (t[i] = e[i]);
- return t
- }
-
- function e(e) {
- return function () {
- var t = this.element.val();
- e.apply(this, arguments), this._refresh(), t !== this.element.val() && this._trigger("change")
- }
- }
- S.ui = S.ui || {}, S.ui.version = "1.12.1";
- var n, s, r = 0,
- a = Array.prototype.slice;
- S.cleanData = (s = S.cleanData, function (t) {
- var e, i, n;
- for (n = 0; null != (i = t[n]); n++) try {
- (e = S._data(i, "events")) && e.remove && S(i).triggerHandler("remove")
- } catch (t) {}
- s(t)
- }), S.widget = function (t, i, e) {
- var n, s, o, r = {},
- a = t.split(".")[0],
- l = a + "-" + (t = t.split(".")[1]);
- return e || (e = i, i = S.Widget), S.isArray(e) && (e = S.extend.apply(null, [{}].concat(e))), S.expr[":"][l.toLowerCase()] = function (t) {
- return !!S.data(t, l)
- }, S[a] = S[a] || {}, n = S[a][t], s = S[a][t] = function (t, e) {
- return this._createWidget ? void(arguments.length && this._createWidget(t, e)) : new s(t, e)
- }, S.extend(s, n, {
- version: e.version,
- _proto: S.extend({}, e),
- _childConstructors: []
- }), (o = new i).options = S.widget.extend({}, o.options), S.each(e, function (e, o) {
- return S.isFunction(o) ? void(r[e] = function () {
- function n() {
- return i.prototype[e].apply(this, arguments)
- }
-
- function s(t) {
- return i.prototype[e].apply(this, t)
- }
- return function () {
- var t, e = this._super,
- i = this._superApply;
- return this._super = n, this._superApply = s, t = o.apply(this, arguments), this._super = e, this._superApply = i, t
- }
- }()) : void(r[e] = o)
- }), s.prototype = S.widget.extend(o, {
- widgetEventPrefix: n && o.widgetEventPrefix || t
- }, r, {
- constructor: s,
- namespace: a,
- widgetName: t,
- widgetFullName: l
- }), n ? (S.each(n._childConstructors, function (t, e) {
- var i = e.prototype;
- S.widget(i.namespace + "." + i.widgetName, s, e._proto)
- }), delete n._childConstructors) : i._childConstructors.push(s), S.widget.bridge(t, s), s
- }, S.widget.extend = function (t) {
- for (var e, i, n = a.call(arguments, 1), s = 0, o = n.length; s < o; s++)
- 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);
- return t
- }, S.widget.bridge = function (o, e) {
- var r = e.prototype.widgetFullName || o;
- S.fn[o] = function (i) {
- var t = "string" == typeof i,
- n = a.call(arguments, 1),
- s = this;
- return t ? this.length || "instance" !== i ? this.each(function () {
- var t, e = S.data(this, r);
- 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 + "'")
- }) : s = void 0 : (n.length && (i = S.widget.extend.apply(null, [i].concat(n))), this.each(function () {
- var t = S.data(this, r);
- t ? (t.option(i || {}), t._init && t._init()) : S.data(this, r, new e(i, this))
- })), s
- }
- }, S.Widget = function () {}, S.Widget._childConstructors = [], S.Widget.prototype = {
- widgetName: "widget",
- widgetEventPrefix: "",
- defaultElement: "<div>",
- options: {
- classes: {},
- disabled: !1,
- create: null
- },
- _createWidget: function (t, e) {
- 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, {
- remove: function (t) {
- t.target === e && this.destroy()
- }
- }), 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()
- },
- _getCreateOptions: function () {
- return {}
- },
- _getCreateEventData: S.noop,
- _create: S.noop,
- _init: S.noop,
- destroy: function () {
- var i = this;
- this._destroy(), S.each(this.classesElementLookup, function (t, e) {
- i._removeClass(e, t)
- }), this.element.off(this.eventNamespace).removeData(this.widgetFullName), this.widget().off(this.eventNamespace).removeAttr("aria-disabled"), this.bindings.off(this.eventNamespace)
- },
- _destroy: S.noop,
- widget: function () {
- return this.element
- },
- option: function (t, e) {
- var i, n, s, o = t;
- if (0 === arguments.length) return S.widget.extend({}, this.options);
- if ("string" == typeof t)
- if (o = {}, t = (i = t.split(".")).shift(), i.length) {
- 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]];
- if (t = i.pop(), 1 === arguments.length) return void 0 === n[t] ? null : n[t];
- n[t] = e
- } else {
- if (1 === arguments.length) return void 0 === this.options[t] ? null : this.options[t];
- o[t] = e
- } return this._setOptions(o), this
- },
- _setOptions: function (t) {
- var e;
- for (e in t) this._setOption(e, t[e]);
- return this
- },
- _setOption: function (t, e) {
- return "classes" === t && this._setOptionClasses(e), this.options[t] = e, "disabled" === t && this._setOptionDisabled(e), this
- },
- _setOptionClasses: function (t) {
- var e, i, n;
- 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({
- element: i,
- keys: e,
- classes: t,
- add: !0
- })))
- },
- _setOptionDisabled: function (t) {
- 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"))
- },
- enable: function () {
- return this._setOptions({
- disabled: !1
- })
- },
- disable: function () {
- return this._setOptions({
- disabled: !0
- })
- },
- _classes: function (s) {
- function t(t, e) {
- var i, n;
- 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]])
- }
- var o = [],
- r = this;
- return s = S.extend({
- element: this.element,
- classes: this.options.classes || {}
- }, s), this._on(s.element, {
- remove: "_untrackClassesElement"
- }), s.keys && t(s.keys.match(/\S+/g) || [], !0), s.extra && t(s.extra.match(/\S+/g) || []), o.join(" ")
- },
- _untrackClassesElement: function (i) {
- var n = this;
- S.each(n.classesElementLookup, function (t, e) {
- -1 !== S.inArray(i.target, e) && (n.classesElementLookup[t] = S(e.not(i.target).get()))
- })
- },
- _removeClass: function (t, e, i) {
- return this._toggleClass(t, e, i, !1)
- },
- _addClass: function (t, e, i) {
- return this._toggleClass(t, e, i, !0)
- },
- _toggleClass: function (t, e, i, n) {
- n = "boolean" == typeof n ? n : i;
- var s = "string" == typeof t || null === t,
- o = {
- extra: s ? e : i,
- keys: s ? t : e,
- element: s ? this.element : t,
- add: n
- };
- return o.element.toggleClass(this._classes(o), n), this
- },
- _on: function (r, a, t) {
- var l, c = this;
- "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) {
- function i() {
- return r || !0 !== c.options.disabled && !S(this).hasClass("ui-state-disabled") ? ("string" == typeof e ? c[e] : e).apply(c, arguments) : void 0
- }
- "string" != typeof e && (i.guid = e.guid = e.guid || i.guid || S.guid++);
- var n = t.match(/^([\w:-]*)\s*(.*)$/),
- s = n[1] + c.eventNamespace,
- o = n[2];
- o ? l.on(s, o, i) : a.on(s, i)
- })
- },
- _off: function (t, e) {
- 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())
- },
- _delay: function (t, e) {
- var i = this;
- return setTimeout(function () {
- return ("string" == typeof t ? i[t] : t).apply(i, arguments)
- }, e || 0)
- },
- _hoverable: function (t) {
- this.hoverable = this.hoverable.add(t), this._on(t, {
- mouseenter: function (t) {
- this._addClass(S(t.currentTarget), null, "ui-state-hover")
- },
- mouseleave: function (t) {
- this._removeClass(S(t.currentTarget), null, "ui-state-hover")
- }
- })
- },
- _focusable: function (t) {
- this.focusable = this.focusable.add(t), this._on(t, {
- focusin: function (t) {
- this._addClass(S(t.currentTarget), null, "ui-state-focus")
- },
- focusout: function (t) {
- this._removeClass(S(t.currentTarget), null, "ui-state-focus")
- }
- })
- },
- _trigger: function (t, e, i) {
- var n, s, o = this.options[t];
- if (i = i || {}, (e = S.Event(e)).type = (t === this.widgetEventPrefix ? t : this.widgetEventPrefix + t).toLowerCase(), e.target = this.element[0], s = e.originalEvent)
- for (n in s) n in e || (e[n] = s[n]);
- return this.element.trigger(e, i), !(S.isFunction(o) && !1 === o.apply(this.element[0], [e].concat(i)) || e.isDefaultPrevented())
- }
- }, S.each({
- show: "fadeIn",
- hide: "fadeOut"
- }, function (o, r) {
- S.Widget.prototype["_" + o] = function (e, t, i) {
- "string" == typeof t && (t = {
- effect: t
- });
- var n, s = t ? !0 === t || "number" == typeof t ? r : t.effect || r : o;
- "number" == typeof (t = t || {}) && (t = {
- duration: t
- }), 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) {
- S(this)[o](), i && i.call(e[0]), t()
- })
- }
- }), S.widget,
- function () {
- function k(t, e, i) {
- return [parseFloat(t[0]) * (l.test(t[0]) ? e / 100 : 1), parseFloat(t[1]) * (l.test(t[1]) ? i / 100 : 1)]
- }
-
- function x(t, e) {
- return parseInt(S.css(t, e), 10) || 0
- }
- var s, C = Math.max,
- T = Math.abs,
- n = /left|center|right/,
- o = /top|center|bottom/,
- r = /[\+\-]\d+(\.[\d]+)?%?/,
- a = /^\w+/,
- l = /%$/,
- e = S.fn.position;
- S.position = {
- scrollbarWidth: function () {
- if (void 0 !== s) return s;
- 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>"),
- n = i.children()[0];
- 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
- },
- getScrollInfo: function (t) {
- var e = t.isWindow || t.isDocument ? "" : t.element.css("overflow-x"),
- i = t.isWindow || t.isDocument ? "" : t.element.css("overflow-y"),
- n = "scroll" === e || "auto" === e && t.width < t.element[0].scrollWidth;
- return {
- width: "scroll" === i || "auto" === i && t.height < t.element[0].scrollHeight ? S.position.scrollbarWidth() : 0,
- height: n ? S.position.scrollbarWidth() : 0
- }
- },
- getWithinInfo: function (t) {
- var e = S(t || window),
- i = S.isWindow(e[0]),
- n = !!e[0] && 9 === e[0].nodeType;
- return {
- element: e,
- isWindow: i,
- isDocument: n,
- offset: !i && !n ? S(t).offset() : {
- left: 0,
- top: 0
- },
- scrollLeft: e.scrollLeft(),
- scrollTop: e.scrollTop(),
- width: e.outerWidth(),
- height: e.outerHeight()
- }
- }
- }, S.fn.position = function (h) {
- if (!h || !h.of) return e.apply(this, arguments);
- h = S.extend({}, h);
- var d, p, f, g, m, t, v = S(h.of),
- _ = S.position.getWithinInfo(h.within),
- y = S.position.getScrollInfo(_),
- b = (h.collision || "flip").split(" "),
- w = {};
- return t = function (t) {
- var e = t[0];
- return 9 === e.nodeType ? {
- width: t.width(),
- height: t.height(),
- offset: {
- top: 0,
- left: 0
- }
- } : S.isWindow(e) ? {
- width: t.width(),
- height: t.height(),
- offset: {
- top: t.scrollTop(),
- left: t.scrollLeft()
- }
- } : e.preventDefault ? {
- width: 0,
- height: 0,
- offset: {
- top: e.pageY,
- left: e.pageX
- }
- } : {
- width: t.outerWidth(),
- height: t.outerHeight(),
- offset: t.offset()
- }
- }(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 () {
- var t, e, i = (h[this] || "").split(" ");
- 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]]
- }), 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 () {
- var i, t, r = S(this),
- a = r.outerWidth(),
- l = r.outerHeight(),
- e = x(this, "marginLeft"),
- n = x(this, "marginTop"),
- s = a + e + x(this, "marginRight") + y.width,
- o = l + n + x(this, "marginBottom") + y.height,
- c = S.extend({}, m),
- u = k(w.my, r.outerWidth(), r.outerHeight());
- "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 = {
- marginLeft: e,
- marginTop: n
- }, S.each(["left", "top"], function (t, e) {
- S.ui.position[b[t]] && S.ui.position[b[t]][e](c, {
- targetWidth: p,
- targetHeight: f,
- elemWidth: a,
- elemHeight: l,
- collisionPosition: i,
- collisionWidth: s,
- collisionHeight: o,
- offset: [d[0] + u[0], d[1] + u[1]],
- my: h.my,
- at: h.at,
- within: _,
- elem: r
- })
- }), h.using && (t = function (t) {
- var e = g.left - c.left,
- i = e + p - a,
- n = g.top - c.top,
- s = n + f - l,
- o = {
- target: {
- element: v,
- left: g.left,
- top: g.top,
- width: p,
- height: f
- },
- element: {
- element: r,
- left: c.left,
- top: c.top,
- width: a,
- height: l
- },
- horizontal: i < 0 ? "left" : 0 < e ? "right" : "center",
- vertical: s < 0 ? "top" : 0 < n ? "bottom" : "middle"
- };
- 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)
- }), r.offset(S.extend(c, {
- using: t
- }))
- })
- }, S.ui.position = {
- fit: {
- left: function (t, e) {
- var i, n = e.within,
- s = n.isWindow ? n.scrollLeft : n.offset.left,
- o = n.width,
- r = t.left - e.collisionPosition.marginLeft,
- a = s - r,
- l = r + e.collisionWidth - o - s;
- 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)
- },
- top: function (t, e) {
- var i, n = e.within,
- s = n.isWindow ? n.scrollTop : n.offset.top,
- o = e.within.height,
- r = t.top - e.collisionPosition.marginTop,
- a = s - r,
- l = r + e.collisionHeight - o - s;
- 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)
- }
- },
- flip: {
- left: function (t, e) {
- var i, n, s = e.within,
- o = s.offset.left + s.scrollLeft,
- r = s.width,
- a = s.isWindow ? s.scrollLeft : s.offset.left,
- l = t.left - e.collisionPosition.marginLeft,
- c = l - a,
- u = l + e.collisionWidth - r - a,
- h = "left" === e.my[0] ? -e.elemWidth : "right" === e.my[0] ? e.elemWidth : 0,
- d = "left" === e.at[0] ? e.targetWidth : "right" === e.at[0] ? -e.targetWidth : 0,
- p = -2 * e.offset[0];
- 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))
- },
- top: function (t, e) {
- var i, n, s = e.within,
- o = s.offset.top + s.scrollTop,
- r = s.height,
- a = s.isWindow ? s.scrollTop : s.offset.top,
- l = t.top - e.collisionPosition.marginTop,
- c = l - a,
- u = l + e.collisionHeight - r - a,
- h = "top" === e.my[1] ? -e.elemHeight : "bottom" === e.my[1] ? e.elemHeight : 0,
- d = "top" === e.at[1] ? e.targetHeight : "bottom" === e.at[1] ? -e.targetHeight : 0,
- p = -2 * e.offset[1];
- 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))
- }
- },
- flipfit: {
- left: function () {
- S.ui.position.flip.left.apply(this, arguments), S.ui.position.fit.left.apply(this, arguments)
- },
- top: function () {
- S.ui.position.flip.top.apply(this, arguments), S.ui.position.fit.top.apply(this, arguments)
- }
- }
- }
- }(), S.ui.position, S.extend(S.expr[":"], {
- data: S.expr.createPseudo ? S.expr.createPseudo(function (e) {
- return function (t) {
- return !!S.data(t, e)
- }
- }) : function (t, e, i) {
- return !!S.data(t, i[3])
- }
- }), S.fn.extend({
- disableSelection: (n = "onselectstart" in document.createElement("div") ? "selectstart" : "mousedown", function () {
- return this.on(n + ".ui-disableSelection", function (t) {
- t.preventDefault()
- })
- }),
- enableSelection: function () {
- return this.off(".ui-disableSelection")
- }
- });
- var l, c = "ui-effects-",
- d = "ui-effects-style",
- p = "ui-effects-animated",
- u = S;
- S.effects = {
- effect: {}
- },
- function (u, h) {
- function d(t, e, i) {
- var n = m[e.type] || {};
- 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)
- }
-
- function a(r) {
- var a = f(),
- l = a._rgba = [];
- return r = r.toLowerCase(), v(t, function (t, e) {
- var i, n = e.re.exec(r),
- s = n && e.parse(n),
- o = e.space || "rgba";
- return s ? (i = a[o](s), a[g[o].cache] = i[g[o].cache], l = a._rgba = i._rgba, !1) : h
- }), l.length ? ("0,0,0,0" === l.join() && u.extend(l, c.transparent), a) : c[r]
- }
-
- function l(t, e, i) {
- 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
- }
- var c, p = /^([\-+])=\s*(\d+\.?\d*)/,
- t = [{
- re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
- parse: function (t) {
- return [t[1], t[2], t[3], t[4]]
- }
- }, {
- re: /rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
- parse: function (t) {
- return [2.55 * t[1], 2.55 * t[2], 2.55 * t[3], t[4]]
- }
- }, {
- re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,
- parse: function (t) {
- return [parseInt(t[1], 16), parseInt(t[2], 16), parseInt(t[3], 16)]
- }
- }, {
- re: /#([a-f0-9])([a-f0-9])([a-f0-9])/,
- parse: function (t) {
- return [parseInt(t[1] + t[1], 16), parseInt(t[2] + t[2], 16), parseInt(t[3] + t[3], 16)]
- }
- }, {
- re: /hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
- space: "hsla",
- parse: function (t) {
- return [t[1], t[2] / 100, t[3] / 100, t[4]]
- }
- }],
- f = u.Color = function (t, e, i, n) {
- return new u.Color.fn.parse(t, e, i, n)
- },
- g = {
- rgba: {
- props: {
- red: {
- idx: 0,
- type: "byte"
- },
- green: {
- idx: 1,
- type: "byte"
- },
- blue: {
- idx: 2,
- type: "byte"
- }
- }
- },
- hsla: {
- props: {
- hue: {
- idx: 0,
- type: "degrees"
- },
- saturation: {
- idx: 1,
- type: "percent"
- },
- lightness: {
- idx: 2,
- type: "percent"
- }
- }
- }
- },
- m = {
- byte: {
- floor: !0,
- max: 255
- },
- percent: {
- max: 1
- },
- degrees: {
- mod: 360,
- floor: !0
- }
- },
- r = f.support = {},
- e = u("<p>")[0],
- v = u.each;
- e.style.cssText = "background-color:rgba(1,1,1,.5)", r.rgba = -1 < e.style.backgroundColor.indexOf("rgba"), v(g, function (t, e) {
- e.cache = "_" + t, e.props.alpha = {
- idx: 3,
- type: "percent",
- def: 1
- }
- }), f.fn = u.extend(f.prototype, {
- parse: function (s, t, e, i) {
- if (s === h) return this._rgba = [null, null, null, null], this;
- (s.jquery || s.nodeType) && (s = u(s).css(t), t = h);
- var o = this,
- n = u.type(s),
- r = this._rgba = [];
- 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) {
- r[e.idx] = d(s[e.idx], e)
- }), this) : "object" === n ? (v(g, s instanceof f ? function (t, e) {
- s[e.cache] && (o[e.cache] = s[e.cache].slice())
- } : function (t, i) {
- var n = i.cache;
- v(i.props, function (t, e) {
- if (!o[n] && i.to) {
- if ("alpha" === t || null == s[t]) return;
- o[n] = i.to(o._rgba)
- }
- o[n][e.idx] = d(s[t], e, !0)
- }), o[n] && u.inArray(null, o[n].slice(0, 3)) < 0 && (o[n][3] = 1, i.from && (o._rgba = i.from(o[n])))
- }), this) : h
- },
- is: function (t) {
- var s = f(t),
- o = !0,
- r = this;
- return v(g, function (t, e) {
- var i, n = s[e.cache];
- return n && (i = r[e.cache] || e.to && e.to(r._rgba) || [], v(e.props, function (t, e) {
- return null != n[e.idx] ? o = n[e.idx] === i[e.idx] : h
- })), o
- }), o
- },
- _space: function () {
- var i = [],
- n = this;
- return v(g, function (t, e) {
- n[e.cache] && i.push(t)
- }), i.pop()
- },
- transition: function (t, r) {
- var a = f(t),
- e = a._space(),
- i = g[e],
- n = 0 === this.alpha() ? f("transparent") : this,
- l = n[i.cache] || i.to(n._rgba),
- c = l.slice();
- return a = a[i.cache], v(i.props, function (t, e) {
- var i = e.idx,
- n = l[i],
- s = a[i],
- o = m[e.type] || {};
- 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)))
- }), this[e](c)
- },
- blend: function (t) {
- if (1 === this._rgba[3]) return this;
- var e = this._rgba.slice(),
- i = e.pop(),
- n = f(t)._rgba;
- return f(u.map(e, function (t, e) {
- return (1 - i) * n[e] + i * t
- }))
- },
- toRgbaString: function () {
- var t = "rgba(",
- e = u.map(this._rgba, function (t, e) {
- return null == t ? 2 < e ? 1 : 0 : t
- });
- return 1 === e[3] && (e.pop(), t = "rgb("), t + e.join() + ")"
- },
- toHslaString: function () {
- var t = "hsla(",
- e = u.map(this.hsla(), function (t, e) {
- return null == t && (t = 2 < e ? 1 : 0), e && e < 3 && (t = Math.round(100 * t) + "%"), t
- });
- return 1 === e[3] && (e.pop(), t = "hsl("), t + e.join() + ")"
- },
- toHexString: function (t) {
- var e = this._rgba.slice(),
- i = e.pop();
- return t && e.push(~~(255 * i)), "#" + u.map(e, function (t) {
- return 1 === (t = (t || 0).toString(16)).length ? "0" + t : t
- }).join("")
- },
- toString: function () {
- return 0 === this._rgba[3] ? "transparent" : this.toRgbaString()
- }
- }), f.fn.parse.prototype = f.fn, g.hsla.to = function (t) {
- if (null == t[0] || null == t[1] || null == t[2]) return [null, null, null, t[3]];
- var e, i, n = t[0] / 255,
- s = t[1] / 255,
- o = t[2] / 255,
- r = t[3],
- a = Math.max(n, s, o),
- l = Math.min(n, s, o),
- c = a - l,
- u = a + l,
- h = .5 * u;
- 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]
- }, g.hsla.from = function (t) {
- if (null == t[0] || null == t[1] || null == t[2]) return [null, null, null, t[3]];
- var e = t[0] / 360,
- i = t[1],
- n = t[2],
- s = t[3],
- o = n <= .5 ? n * (1 + i) : n + i - n * i,
- r = 2 * n - o;
- 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]
- }, v(g, function (l, t) {
- var i = t.props,
- r = t.cache,
- a = t.to,
- c = t.from;
- f.fn[l] = function (t) {
- if (a && !this[r] && (this[r] = a(this._rgba)), t === h) return this[r].slice();
- var e, n = u.type(t),
- s = "array" === n || "object" === n ? t : arguments,
- o = this[r].slice();
- return v(i, function (t, e) {
- var i = s["object" === n ? t : e.idx];
- null == i && (i = o[e.idx]), o[e.idx] = d(i, e)
- }), c ? ((e = f(c(o)))[r] = o, e) : f(o)
- }, v(i, function (r, a) {
- f.fn[r] || (f.fn[r] = function (t) {
- var e, i = u.type(t),
- n = "alpha" === r ? this._hsla ? "hsla" : "rgba" : l,
- s = this[n](),
- o = s[a.idx];
- 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)))
- })
- })
- }), f.hook = function (t) {
- var e = t.split(" ");
- v(e, function (t, o) {
- u.cssHooks[o] = {
- set: function (t, e) {
- var i, n, s = "";
- if ("transparent" !== e && ("string" !== u.type(e) || (i = a(e)))) {
- if (e = f(i || e), !r.rgba && 1 !== e._rgba[3]) {
- for (n = "backgroundColor" === o ? t.parentNode : t;
- ("" === s || "transparent" === s) && n && n.style;) try {
- s = u.css(n, "backgroundColor"), n = n.parentNode
- } catch (t) {}
- e = e.blend(s && "transparent" !== s ? s : "_default")
- }
- e = e.toRgbaString()
- }
- try {
- t.style[o] = e
- } catch (t) {}
- }
- }, u.fx.step[o] = function (t) {
- 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))
- }
- })
- }, f.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"), u.cssHooks.borderColor = {
- expand: function (i) {
- var n = {};
- return v(["Top", "Right", "Bottom", "Left"], function (t, e) {
- n["border" + e + "Color"] = i
- }), n
- }
- }, c = u.Color.names = {
- aqua: "#00ffff",
- black: "#000000",
- blue: "#0000ff",
- fuchsia: "#ff00ff",
- gray: "#808080",
- green: "#008000",
- lime: "#00ff00",
- maroon: "#800000",
- navy: "#000080",
- olive: "#808000",
- purple: "#800080",
- red: "#ff0000",
- silver: "#c0c0c0",
- teal: "#008080",
- white: "#ffffff",
- yellow: "#ffff00",
- transparent: [null, null, null, 0],
- _default: "#ffffff"
- }
- }(u),
- function () {
- function r(t) {
- var e, i, n = t.ownerDocument.defaultView ? t.ownerDocument.defaultView.getComputedStyle(t, null) : t.currentStyle,
- s = {};
- if (n && n.length && n[0] && n[n[0]])
- for (i = n.length; i--;) "string" == typeof n[e = n[i]] && (s[S.camelCase(e)] = n[e]);
- else
- for (e in n) "string" == typeof n[e] && (s[e] = n[e]);
- return s
- }
- var o, s, a, l = ["add", "remove", "toggle"],
- c = {
- border: 1,
- borderBottom: 1,
- borderColor: 1,
- borderLeft: 1,
- borderRight: 1,
- borderTop: 1,
- borderWidth: 1,
- margin: 1,
- padding: 1
- };
- S.each(["borderLeftStyle", "borderRightStyle", "borderBottomStyle", "borderTopStyle"], function (t, e) {
- S.fx.step[e] = function (t) {
- ("none" !== t.end && !t.setAttr || 1 === t.pos && !t.setAttr) && (u.style(t.elem, e, t.end), t.setAttr = !0)
- }
- }), S.fn.addBack || (S.fn.addBack = function (t) {
- return this.add(null == t ? this.prevObject : this.prevObject.filter(t))
- }), S.effects.animateClass = function (s, t, e, i) {
- var o = S.speed(t, e, i);
- return this.queue(function () {
- var t, i = S(this),
- e = i.attr("class") || "",
- n = o.children ? i.find("*").addBack() : i;
- n = n.map(function () {
- return {
- el: S(this),
- start: r(this)
- }
- }), (t = function () {
- S.each(l, function (t, e) {
- s[e] && i[e + "Class"](s[e])
- })
- })(), n = n.map(function () {
- return this.end = r(this.el[0]), this.diff = function (t, e) {
- var i, n, s = {};
- for (i in e) n = e[i], t[i] !== n && (c[i] || (S.fx.step[i] || !isNaN(parseFloat(n))) && (s[i] = n));
- return s
- }(this.start, this.end), this
- }), i.attr("class", e), n = n.map(function () {
- var t = this,
- e = S.Deferred(),
- i = S.extend({}, o, {
- queue: !1,
- complete: function () {
- e.resolve(t)
- }
- });
- return this.el.animate(this.diff, i), e.promise()
- }), S.when.apply(S, n.get()).done(function () {
- t(), S.each(arguments, function () {
- var e = this.el;
- S.each(this.diff, function (t) {
- e.css(t, "")
- })
- }), o.complete.call(i[0])
- })
- })
- }, S.fn.extend({
- addClass: (a = S.fn.addClass, function (t, e, i, n) {
- return e ? S.effects.animateClass.call(this, {
- add: t
- }, e, i, n) : a.apply(this, arguments)
- }),
- removeClass: (s = S.fn.removeClass, function (t, e, i, n) {
- return 1 < arguments.length ? S.effects.animateClass.call(this, {
- remove: t
- }, e, i, n) : s.apply(this, arguments)
- }),
- toggleClass: (o = S.fn.toggleClass, function (t, e, i, n, s) {
- return "boolean" == typeof e || void 0 === e ? i ? S.effects.animateClass.call(this, e ? {
- add: t
- } : {
- remove: t
- }, i, n, s) : o.apply(this, arguments) : S.effects.animateClass.call(this, {
- toggle: t
- }, e, i, n)
- }),
- switchClass: function (t, e, i, n, s) {
- return S.effects.animateClass.call(this, {
- add: e,
- remove: t
- }, i, n, s)
- }
- })
- }(),
- function () {
- function u(t, e, i, n) {
- return S.isPlainObject(t) && (t = (e = t).effect), t = {
- effect: t
- }, 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
- }
-
- function i(t) {
- return !(t && "number" != typeof t && !S.fx.speeds[t]) || ("string" == typeof t && !S.effects.effect[t] || (!!S.isFunction(t) || "object" == _typeof(t) && !t.effect))
- }
-
- function e(t, e) {
- var i = e.outerWidth(),
- n = e.outerHeight(),
- 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];
- return {
- top: parseFloat(s[1]) || 0,
- right: "auto" === s[2] ? i : parseFloat(s[2]),
- bottom: "auto" === s[3] ? n : parseFloat(s[3]),
- left: parseFloat(s[4]) || 0
- }
- }
- var n, s, o, r;
- S.expr && S.expr.filters && S.expr.filters.animated && (S.expr.filters.animated = (r = S.expr.filters.animated, function (t) {
- return !!S(t).data(p) || r(t)
- })), !1 !== S.uiBackCompat && S.extend(S.effects, {
- save: function (t, e) {
- for (var i = 0, n = e.length; i < n; i++) null !== e[i] && t.data(c + e[i], t[0].style[e[i]])
- },
- restore: function (t, e) {
- 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))
- },
- setMode: function (t, e) {
- return "toggle" === e && (e = t.is(":hidden") ? "show" : "hide"), e
- },
- createWrapper: function (i) {
- if (i.parent().is(".ui-effects-wrapper")) return i.parent();
- var n = {
- width: i.outerWidth(!0),
- height: i.outerHeight(!0),
- float: i.css("float")
- },
- t = S("<div></div>").addClass("ui-effects-wrapper").css({
- fontSize: "100%",
- background: "transparent",
- border: "none",
- margin: 0,
- padding: 0
- }),
- e = {
- width: i.width(),
- height: i.height()
- },
- s = document.activeElement;
- try {
- s.id
- } catch (t) {
- s = document.body
- }
- 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({
- position: "relative"
- }), i.css({
- position: "relative"
- })) : (S.extend(n, {
- position: i.css("position"),
- zIndex: i.css("z-index")
- }), S.each(["top", "left", "bottom", "right"], function (t, e) {
- n[e] = i.css(e), isNaN(parseInt(n[e], 10)) && (n[e] = "auto")
- }), i.css({
- position: "relative",
- top: 0,
- left: 0,
- right: "auto",
- bottom: "auto"
- })), i.css(e), t.css(n).show()
- },
- removeWrapper: function (t) {
- var e = document.activeElement;
- return t.parent().is(".ui-effects-wrapper") && (t.parent().replaceWith(t), (t[0] === e || S.contains(t[0], e)) && S(e).trigger("focus")), t
- }
- }), S.extend(S.effects, {
- version: "1.12.1",
- define: function (t, e, i) {
- return i || (i = e, e = "effect"), S.effects.effect[t] = i, S.effects.effect[t].mode = e, i
- },
- scaledDimensions: function (t, e, i) {
- if (0 === e) return {
- height: 0,
- width: 0,
- outerHeight: 0,
- outerWidth: 0
- };
- var n = "horizontal" !== i ? (e || 100) / 100 : 1,
- s = "vertical" !== i ? (e || 100) / 100 : 1;
- return {
- height: t.height() * s,
- width: t.width() * n,
- outerHeight: t.outerHeight() * s,
- outerWidth: t.outerWidth() * n
- }
- },
- clipToBox: function (t) {
- return {
- width: t.clip.right - t.clip.left,
- height: t.clip.bottom - t.clip.top,
- left: t.clip.left,
- top: t.clip.top
- }
- },
- unshift: function (t, e, i) {
- var n = t.queue();
- 1 < e && n.splice.apply(n, [1, 0].concat(n.splice(e, i))), t.dequeue()
- },
- saveStyle: function (t) {
- t.data(d, t[0].style.cssText)
- },
- restoreStyle: function (t) {
- t[0].style.cssText = t.data(d) || "", t.removeData(d)
- },
- mode: function (t, e) {
- var i = t.is(":hidden");
- return "toggle" === e && (e = i ? "show" : "hide"), (i ? "hide" === e : "show" === e) && (e = "none"), e
- },
- getBaseline: function (t, e) {
- var i, n;
- switch (t[0]) {
- case "top":
- i = 0;
- break;
- case "middle":
- i = .5;
- break;
- case "bottom":
- i = 1;
- break;
- default:
- i = t[0] / e.height
- }
- switch (t[1]) {
- case "left":
- n = 0;
- break;
- case "center":
- n = .5;
- break;
- case "right":
- n = 1;
- break;
- default:
- n = t[1] / e.width
- }
- return {
- x: n,
- y: i
- }
- },
- createPlaceholder: function (t) {
- var e, i = t.css("position"),
- n = t.position();
- return t.css({
- marginTop: t.css("marginTop"),
- marginBottom: t.css("marginBottom"),
- marginLeft: t.css("marginLeft"),
- marginRight: t.css("marginRight")
- }).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()), /^(static|relative)/.test(i) && (i = "absolute", e = S("<" + t[0].nodeName + ">").insertAfter(t).css({
- display: /^(inline|ruby)/.test(t.css("display")) ? "inline-block" : "block",
- visibility: "hidden",
- marginTop: t.css("marginTop"),
- marginBottom: t.css("marginBottom"),
- marginLeft: t.css("marginLeft"),
- marginRight: t.css("marginRight"),
- float: t.css("float")
- }).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"), t.data(c + "placeholder", e)), t.css({
- position: i,
- left: n.left,
- top: n.top
- }), e
- },
- removePlaceholder: function (t) {
- var e = c + "placeholder",
- i = t.data(e);
- i && (i.remove(), t.removeData(e))
- },
- cleanUp: function (t) {
- S.effects.restoreStyle(t), S.effects.removePlaceholder(t)
- },
- setTransition: function (n, t, s, o) {
- return o = o || {}, S.each(t, function (t, e) {
- var i = n.cssUnit(e);
- 0 < i[0] && (o[e] = i[0] * s + i[1])
- }), o
- }
- }), S.fn.extend({
- effect: function () {
- function t(t) {
- function e() {
- S.isFunction(a) && a.call(i[0]), S.isFunction(t) && t()
- }
- var i = S(this);
- n.mode = c.shift(), !1 === S.uiBackCompat || o ? "none" === n.mode ? (i[l](), e()) : s.call(i[0], n, function () {
- i.removeData(p), S.effects.cleanUp(i), "hide" === n.mode && i.hide(), e()
- }) : (i.is(":hidden") ? "hide" === l : "show" === l) ? (i[l](), e()) : s.call(i[0], n, e)
- }
-
- function e(t) {
- var e = S(this),
- i = S.effects.mode(e, l) || o;
- 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()
- }
- var n = u.apply(this, arguments),
- s = S.effects.effect[n.effect],
- o = s.mode,
- i = n.queue,
- r = i || "fx",
- a = n.complete,
- l = n.mode,
- c = [];
- return S.fx.off || !s ? l ? this[l](n.duration, a) : this.each(function () {
- a && a.call(this)
- }) : !1 === i ? this.each(e).each(t) : this.queue(r, e).queue(r, t)
- },
- show: (o = S.fn.show, function (t) {
- if (i(t)) return o.apply(this, arguments);
- var e = u.apply(this, arguments);
- return e.mode = "show", this.effect.call(this, e)
- }),
- hide: (s = S.fn.hide, function (t) {
- if (i(t)) return s.apply(this, arguments);
- var e = u.apply(this, arguments);
- return e.mode = "hide", this.effect.call(this, e)
- }),
- toggle: (n = S.fn.toggle, function (t) {
- if (i(t) || "boolean" == typeof t) return n.apply(this, arguments);
- var e = u.apply(this, arguments);
- return e.mode = "toggle", this.effect.call(this, e)
- }),
- cssUnit: function (t) {
- var i = this.css(t),
- n = [];
- return S.each(["em", "px", "%", "pt"], function (t, e) {
- 0 < i.indexOf(e) && (n = [parseFloat(i), e])
- }), n
- },
- cssClip: function (t) {
- return t ? this.css("clip", "rect(" + t.top + "px " + t.right + "px " + t.bottom + "px " + t.left + "px)") : e(this.css("clip"), this)
- },
- transfer: function (t, e) {
- var i = S(this),
- n = S(t.to),
- s = "fixed" === n.css("position"),
- o = S("body"),
- r = s ? o.scrollTop() : 0,
- a = s ? o.scrollLeft() : 0,
- l = n.offset(),
- c = {
- top: l.top - r,
- left: l.left - a,
- height: n.innerHeight(),
- width: n.innerWidth()
- },
- u = i.offset(),
- h = S("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(t.className).css({
- top: u.top - r,
- left: u.left - a,
- height: i.innerHeight(),
- width: i.innerWidth(),
- position: s ? "fixed" : "absolute"
- }).animate(c, t.duration, t.easing, function () {
- h.remove(), S.isFunction(e) && e()
- })
- }
- }), S.fx.step.clip = function (t) {
- 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({
- top: t.pos * (t.end.top - t.start.top) + t.start.top,
- right: t.pos * (t.end.right - t.start.right) + t.start.right,
- bottom: t.pos * (t.end.bottom - t.start.bottom) + t.start.bottom,
- left: t.pos * (t.end.left - t.start.left) + t.start.left
- })
- }
- }(), l = {}, S.each(["Quad", "Cubic", "Quart", "Quint", "Expo"], function (e, t) {
- l[t] = function (t) {
- return Math.pow(t, e + 2)
- }
- }), S.extend(l, {
- Sine: function (t) {
- return 1 - Math.cos(t * Math.PI / 2)
- },
- Circ: function (t) {
- return 1 - Math.sqrt(1 - t * t)
- },
- Elastic: function (t) {
- return 0 === t || 1 === t ? t : -Math.pow(2, 8 * (t - 1)) * Math.sin((80 * (t - 1) - 7.5) * Math.PI / 15)
- },
- Back: function (t) {
- return t * t * (3 * t - 2)
- },
- Bounce: function (t) {
- for (var e, i = 4;
- ((e = Math.pow(2, --i)) - 1) / 11 > t;);
- return 1 / Math.pow(4, 3 - i) - 7.5625 * Math.pow((3 * e - 2) / 22 - t, 2)
- }
- }), S.each(l, function (t, e) {
- S.easing["easeIn" + t] = e, S.easing["easeOut" + t] = function (t) {
- return 1 - e(1 - t)
- }, S.easing["easeInOut" + t] = function (t) {
- return t < .5 ? e(2 * t) / 2 : 1 - e(-2 * t + 2) / 2
- }
- });
- var f, g;
- S.effects;
- S.effects.define("blind", "hide", function (t, e) {
- var i = {
- up: ["bottom", "top"],
- vertical: ["bottom", "top"],
- down: ["top", "bottom"],
- left: ["right", "left"],
- horizontal: ["right", "left"],
- right: ["left", "right"]
- },
- n = S(this),
- s = t.direction || "up",
- o = n.cssClip(),
- r = {
- clip: S.extend({}, o)
- },
- a = S.effects.createPlaceholder(n);
- 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, {
- queue: !1,
- duration: t.duration,
- easing: t.easing,
- complete: e
- })
- }), S.effects.define("bounce", function (t, e) {
- var i, n, s, o = S(this),
- r = t.mode,
- a = "hide" === r,
- l = "show" === r,
- c = t.direction || "up",
- u = t.distance,
- h = t.times || 5,
- d = 2 * h + (l || a ? 1 : 0),
- p = t.duration / d,
- f = t.easing,
- g = "up" === c || "down" === c ? "top" : "left",
- m = "up" === c || "left" === c,
- v = 0,
- _ = o.queue().length;
- for (S.effects.createPlaceholder(o), s = o.css(g), u || (u = o["top" == g ? "outerHeight" : "outerWidth"]() / 3), l && ((n = {
- opacity: 1
- })[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;
- a && ((i = {
- opacity: 0
- })[g] = (m ? "-=" : "+=") + u, o.animate(i, p, f)), o.queue(e), S.effects.unshift(o, _, 1 + d)
- }), S.effects.define("clip", "hide", function (t, e) {
- var i, n = {},
- s = S(this),
- o = t.direction || "vertical",
- r = "both" === o,
- a = r || "horizontal" === o,
- l = r || "vertical" === o;
- i = s.cssClip(), n.clip = {
- top: l ? (i.bottom - i.top) / 2 : i.top,
- right: a ? (i.right - i.left) / 2 : i.right,
- bottom: l ? (i.bottom - i.top) / 2 : i.bottom,
- left: a ? (i.right - i.left) / 2 : i.left
- }, S.effects.createPlaceholder(s), "show" === t.mode && (s.cssClip(n.clip), n.clip = i), s.animate(n, {
- queue: !1,
- duration: t.duration,
- easing: t.easing,
- complete: e
- })
- }), S.effects.define("drop", "hide", function (t, e) {
- var i, n = S(this),
- s = "show" === t.mode,
- o = t.direction || "left",
- r = "up" === o || "down" === o ? "top" : "left",
- a = "up" === o || "left" === o ? "-=" : "+=",
- l = "+=" == a ? "-=" : "+=",
- c = {
- opacity: 0
- };
- 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, {
- queue: !1,
- duration: t.duration,
- easing: t.easing,
- complete: e
- })
- }), S.effects.define("explode", "hide", function (t, e) {
- function i() {
- m.push(this), m.length === c * u && (h.css({
- visibility: "visible"
- }), S(m).remove(), e())
- }
- var n, s, o, r, a, l, c = t.pieces ? Math.round(Math.sqrt(t.pieces)) : 3,
- u = c,
- h = S(this),
- d = "show" === t.mode,
- p = h.show().css("visibility", "hidden").offset(),
- f = Math.ceil(h.outerWidth() / u),
- g = Math.ceil(h.outerHeight() / c),
- m = [];
- for (n = 0; n < c; n++)
- 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({
- position: "absolute",
- visibility: "visible",
- left: -s * f,
- top: -n * g
- }).parent().addClass("ui-effects-explode").css({
- position: "absolute",
- overflow: "hidden",
- width: f,
- height: g,
- left: o + (d ? a * f : 0),
- top: r + (d ? l * g : 0),
- opacity: d ? 0 : 1
- }).animate({
- left: o + (d ? 0 : a * f),
- top: r + (d ? 0 : l * g),
- opacity: d ? 1 : 0
- }, t.duration || 500, t.easing, i)
- }), S.effects.define("fade", "toggle", function (t, e) {
- var i = "show" === t.mode;
- S(this).css("opacity", i ? 0 : 1).animate({
- opacity: i ? 1 : 0
- }, {
- queue: !1,
- duration: t.duration,
- easing: t.easing,
- complete: e
- })
- }), S.effects.define("fold", "hide", function (e, t) {
- var i = S(this),
- n = e.mode,
- s = "show" === n,
- o = "hide" === n,
- r = e.size || 15,
- a = /([0-9]+)%/.exec(r),
- l = !!e.horizFirst ? ["right", "bottom"] : ["bottom", "right"],
- c = e.duration / 2,
- u = S.effects.createPlaceholder(i),
- h = i.cssClip(),
- d = {
- clip: S.extend({}, h)
- },
- p = {
- clip: S.extend({}, h)
- },
- f = [h[l[0]], h[l[1]]],
- g = i.queue().length;
- 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) {
- u && u.animate(S.effects.clipToBox(d), c, e.easing).animate(S.effects.clipToBox(p), c, e.easing), t()
- }).animate(d, c, e.easing).animate(p, c, e.easing).queue(t), S.effects.unshift(i, g, 4)
- }), S.effects.define("highlight", "show", function (t, e) {
- var i = S(this),
- n = {
- backgroundColor: i.css("backgroundColor")
- };
- "hide" === t.mode && (n.opacity = 0), S.effects.saveStyle(i), i.css({
- backgroundImage: "none",
- backgroundColor: t.color || "#ffff99"
- }).animate(n, {
- queue: !1,
- duration: t.duration,
- easing: t.easing,
- complete: e
- })
- }), S.effects.define("size", function (s, e) {
- var t, o, i, n = S(this),
- r = ["fontSize"],
- a = ["borderTopWidth", "borderBottomWidth", "paddingTop", "paddingBottom"],
- l = ["borderLeftWidth", "borderRightWidth", "paddingLeft", "paddingRight"],
- c = s.mode,
- u = "effect" !== c,
- h = s.scale || "both",
- d = s.origin || ["middle", "center"],
- p = n.css("position"),
- f = n.position(),
- g = S.effects.scaledDimensions(n),
- m = s.from || g,
- v = s.to || S.effects.scaledDimensions(n, 0);
- S.effects.createPlaceholder(n), "show" === c && (i = m, m = v, v = i), o = {
- from: {
- y: m.height / g.height,
- x: m.width / g.width
- },
- to: {
- y: v.height / g.height,
- x: v.width / g.width
- }
- }, ("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 () {
- var t = S(this),
- e = S.effects.scaledDimensions(t),
- i = {
- height: e.height * o.from.y,
- width: e.width * o.from.x,
- outerHeight: e.outerHeight * o.from.y,
- outerWidth: e.outerWidth * o.from.x
- },
- n = {
- height: e.height * o.to.y,
- width: e.width * o.to.x,
- outerHeight: e.height * o.to.y,
- outerWidth: e.width * o.to.x
- };
- 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 () {
- u && S.effects.restoreStyle(t)
- })
- })), n.animate(v, {
- queue: !1,
- duration: s.duration,
- easing: s.easing,
- complete: function () {
- var t = n.offset();
- 0 === v.opacity && n.css("opacity", m.opacity), u || (n.css("position", "static" === p ? "relative" : p).offset(t), S.effects.saveStyle(n)), e()
- }
- })
- }), S.effects.define("scale", function (t, e) {
- var i = S(this),
- n = t.mode,
- s = parseInt(t.percent, 10) || (0 === parseInt(t.percent, 10) ? 0 : "effect" !== n ? 0 : 100),
- o = S.extend(!0, {
- from: S.effects.scaledDimensions(i),
- to: S.effects.scaledDimensions(i, s, t.direction || "both"),
- origin: t.origin || ["middle", "center"]
- }, t);
- t.fade && (o.from.opacity = 1, o.to.opacity = 0), S.effects.effect.size.call(this, o, e)
- }), S.effects.define("puff", "hide", function (t, e) {
- var i = S.extend(!0, {}, t, {
- fade: !0,
- percent: parseInt(t.percent, 10) || 150
- });
- S.effects.effect.scale.call(this, i, e)
- }), S.effects.define("pulsate", "show", function (t, e) {
- var i = S(this),
- n = t.mode,
- s = "show" === n,
- o = s || "hide" === n,
- r = 2 * (t.times || 5) + (o ? 1 : 0),
- a = t.duration / r,
- l = 0,
- c = 1,
- u = i.queue().length;
- for ((s || !i.is(":visible")) && (i.css("opacity", 0).show(), l = 1); c < r; c++) i.animate({
- opacity: l
- }, a, t.easing), l = 1 - l;
- i.animate({
- opacity: l
- }, a, t.easing), i.queue(e), S.effects.unshift(i, u, 1 + r)
- }), S.effects.define("shake", function (t, e) {
- var i = 1,
- n = S(this),
- s = t.direction || "left",
- o = t.distance || 20,
- r = t.times || 3,
- a = 2 * r + 1,
- l = Math.round(t.duration / a),
- c = "up" === s || "down" === s ? "top" : "left",
- u = "up" === s || "left" === s,
- h = {},
- d = {},
- p = {},
- f = n.queue().length;
- 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);
- n.animate(d, l, t.easing).animate(h, l / 2, t.easing).queue(e), S.effects.unshift(n, f, 1 + a)
- }), S.effects.define("slide", "show", function (t, e) {
- var i, n, s = S(this),
- o = {
- up: ["bottom", "top"],
- down: ["top", "bottom"],
- left: ["right", "left"],
- right: ["left", "right"]
- },
- r = t.mode,
- a = t.direction || "left",
- l = "up" === a || "down" === a ? "top" : "left",
- c = "up" === a || "left" === a,
- u = t.distance || s["top" == l ? "outerHeight" : "outerWidth"](!0),
- h = {};
- 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, {
- queue: !1,
- duration: t.duration,
- easing: t.easing,
- complete: e
- })
- }), !1 !== S.uiBackCompat && S.effects.define("transfer", function (t, e) {
- S(this).transfer(t, e)
- }), S.ui.focusable = function (t, e) {
- var i, n, s, o, r, a = t.nodeName.toLowerCase();
- 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) {
- for (var e = t.css("visibility");
- "inherit" === e;) e = (t = t.parent()).css("visibility");
- return "hidden" !== e
- }(S(t)))
- }, S.extend(S.expr[":"], {
- focusable: function (t) {
- return S.ui.focusable(t, null != S.attr(t, "tabindex"))
- }
- }), S.ui.focusable, S.fn.form = function () {
- return "string" == typeof this[0].form ? this.closest("form") : S(this[0].form)
- }, S.ui.formResetMixin = {
- _formResetHandler: function () {
- var e = S(this);
- setTimeout(function () {
- var t = e.data("ui-form-reset-instances");
- S.each(t, function () {
- this.refresh()
- })
- })
- },
- _bindFormResetHandler: function () {
- if (this.form = this.element.form(), this.form.length) {
- var t = this.form.data("ui-form-reset-instances") || [];
- t.length || this.form.on("reset.ui-form-reset", this._formResetHandler), t.push(this), this.form.data("ui-form-reset-instances", t)
- }
- },
- _unbindFormResetHandler: function () {
- if (this.form.length) {
- var t = this.form.data("ui-form-reset-instances");
- 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")
- }
- }
- }, "1.7" === S.fn.jquery.substring(0, 3) && (S.each(["Width", "Height"], function (t, i) {
- function n(t, e, i, n) {
- return S.each(s, function () {
- 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)
- }), e
- }
- var s = "Width" === i ? ["Left", "Right"] : ["Top", "Bottom"],
- o = i.toLowerCase(),
- r = {
- innerWidth: S.fn.innerWidth,
- innerHeight: S.fn.innerHeight,
- outerWidth: S.fn.outerWidth,
- outerHeight: S.fn.outerHeight
- };
- S.fn["inner" + i] = function (t) {
- return void 0 === t ? r["inner" + i].call(this) : this.each(function () {
- S(this).css(o, n(this, t) + "px")
- })
- }, S.fn["outer" + i] = function (t, e) {
- return "number" != typeof t ? r["outer" + i].call(this, t) : this.each(function () {
- S(this).css(o, n(this, t, !0, e) + "px")
- })
- }
- }), S.fn.addBack = function (t) {
- return this.add(null == t ? this.prevObject : this.prevObject.filter(t))
- }), S.ui.keyCode = {
- BACKSPACE: 8,
- COMMA: 188,
- DELETE: 46,
- DOWN: 40,
- END: 35,
- ENTER: 13,
- ESCAPE: 27,
- HOME: 36,
- LEFT: 37,
- PAGE_DOWN: 34,
- PAGE_UP: 33,
- PERIOD: 190,
- RIGHT: 39,
- SPACE: 32,
- TAB: 9,
- UP: 38
- }, S.ui.escapeSelector = (g = /([!"#$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g, function (t) {
- return t.replace(g, "\\$1")
- }), S.fn.labels = function () {
- var t, e, i, n, s;
- 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))
- }, S.fn.scrollParent = function (t) {
- var e = this.css("position"),
- i = "absolute" === e,
- n = t ? /(auto|scroll|hidden)/ : /(auto|scroll)/,
- s = this.parents().filter(function () {
- var t = S(this);
- return (!i || "static" !== t.css("position")) && n.test(t.css("overflow") + t.css("overflow-y") + t.css("overflow-x"))
- }).eq(0);
- return "fixed" !== e && s.length ? s : S(this[0].ownerDocument || document)
- }, S.extend(S.expr[":"], {
- tabbable: function (t) {
- var e = S.attr(t, "tabindex"),
- i = null != e;
- return (!i || 0 <= e) && S.ui.focusable(t, i)
- }
- }), S.fn.extend({
- uniqueId: (f = 0, function () {
- return this.each(function () {
- this.id || (this.id = "ui-id-" + ++f)
- })
- }),
- removeUniqueId: function () {
- return this.each(function () {
- /^ui-id-\d+$/.test(this.id) && S(this).removeAttr("id")
- })
- }
- }), S.widget("ui.accordion", {
- version: "1.12.1",
- options: {
- active: 0,
- animate: {},
- classes: {
- "ui-accordion-header": "ui-corner-top",
- "ui-accordion-header-collapsed": "ui-corner-all",
- "ui-accordion-content": "ui-corner-bottom"
- },
- collapsible: !1,
- event: "click",
- header: "> li > :first-child, > :not(li):even",
- heightStyle: "auto",
- icons: {
- activeHeader: "ui-icon-triangle-1-s",
- header: "ui-icon-triangle-1-e"
- },
- activate: null,
- beforeActivate: null
- },
- hideProps: {
- borderTopWidth: "hide",
- borderBottomWidth: "hide",
- paddingTop: "hide",
- paddingBottom: "hide",
- height: "hide"
- },
- showProps: {
- borderTopWidth: "show",
- borderBottomWidth: "show",
- paddingTop: "show",
- paddingBottom: "show",
- height: "show"
- },
- _create: function () {
- var t = this.options;
- 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()
- },
- _getCreateEventData: function () {
- return {
- header: this.active,
- panel: this.active.length ? this.active.next() : S()
- }
- },
- _createIcons: function () {
- var t, e, i = this.options.icons;
- 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"))
- },
- _destroyIcons: function () {
- this._removeClass(this.headers, "ui-accordion-icons"), this.headers.children(".ui-accordion-header-icon").remove()
- },
- _destroy: function () {
- var t;
- 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", "")
- },
- _setOption: function (t, e) {
- 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())))
- },
- _setOptionDisabled: function (t) {
- 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)
- },
- _keydown: function (t) {
- if (!t.altKey && !t.ctrlKey) {
- var e = S.ui.keyCode,
- i = this.headers.length,
- n = this.headers.index(t.target),
- s = !1;
- switch (t.keyCode) {
- case e.RIGHT:
- case e.DOWN:
- s = this.headers[(n + 1) % i];
- break;
- case e.LEFT:
- case e.UP:
- s = this.headers[(n - 1 + i) % i];
- break;
- case e.SPACE:
- case e.ENTER:
- this._eventHandler(t);
- break;
- case e.HOME:
- s = this.headers[0];
- break;
- case e.END:
- s = this.headers[i - 1]
- }
- s && (S(t.target).attr("tabIndex", -1), S(s).attr("tabIndex", 0), S(s).trigger("focus"), t.preventDefault())
- }
- },
- _panelKeyDown: function (t) {
- t.keyCode === S.ui.keyCode.UP && t.ctrlKey && S(t.currentTarget).prev().trigger("focus")
- },
- refresh: function () {
- var t = this.options;
- 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()
- },
- _processPanels: function () {
- var t = this.headers,
- e = this.panels;
- 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)))
- },
- _refresh: function () {
- var i, t = this.options,
- e = t.heightStyle,
- n = this.element.parent();
- 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 () {
- var t = S(this),
- e = t.uniqueId().attr("id"),
- i = t.next(),
- n = i.uniqueId().attr("id");
- t.attr("aria-controls", n), i.attr("aria-labelledby", e)
- }).next().attr("role", "tabpanel"), this.headers.not(this.active).attr({
- "aria-selected": "false",
- "aria-expanded": "false",
- tabIndex: -1
- }).next().attr({
- "aria-hidden": "true"
- }).hide(), this.active.length ? this.active.attr({
- "aria-selected": "true",
- "aria-expanded": "true",
- tabIndex: 0
- }).next().attr({
- "aria-hidden": "false"
- }) : this.headers.eq(0).attr("tabIndex", 0), this._createIcons(), this._setupEvents(t.event), "fill" === e ? (i = n.height(), this.element.siblings(":visible").each(function () {
- var t = S(this),
- e = t.css("position");
- "absolute" !== e && "fixed" !== e && (i -= t.outerHeight(!0))
- }), this.headers.each(function () {
- i -= S(this).outerHeight(!0)
- }), this.headers.next().each(function () {
- S(this).height(Math.max(0, i - S(this).innerHeight() + S(this).height()))
- }).css("overflow", "auto")) : "auto" === e && (i = 0, this.headers.next().each(function () {
- var t = S(this).is(":visible");
- t || S(this).show(), i = Math.max(i, S(this).css("height", "").height()), t || S(this).hide()
- }).height(i))
- },
- _activate: function (t) {
- var e = this._findActive(t)[0];
- e !== this.active[0] && (e = e || this.active[0], this._eventHandler({
- target: e,
- currentTarget: e,
- preventDefault: S.noop
- }))
- },
- _findActive: function (t) {
- return "number" == typeof t ? this.headers.eq(t) : S()
- },
- _setupEvents: function (t) {
- var i = {
- keydown: "_keydown"
- };
- t && S.each(t.split(" "), function (t, e) {
- i[e] = "_eventHandler"
- }), this._off(this.headers.add(this.headers.next())), this._on(this.headers, i), this._on(this.headers.next(), {
- keydown: "_panelKeyDown"
- }), this._hoverable(this.headers), this._focusable(this.headers)
- },
- _eventHandler: function (t) {
- var e, i, n = this.options,
- s = this.active,
- o = S(t.currentTarget),
- r = o[0] === s[0],
- a = r && n.collapsible,
- l = a ? S() : o.next(),
- c = s.next(),
- u = {
- oldHeader: s,
- oldPanel: c,
- newHeader: a ? S() : o,
- newPanel: l
- };
- 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")))
- },
- _toggle: function (t) {
- var e = t.newPanel,
- i = this.prevShow.length ? this.prevShow : t.oldPanel;
- 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({
- "aria-hidden": "true"
- }), i.prev().attr({
- "aria-selected": "false",
- "aria-expanded": "false"
- }), e.length && i.length ? i.prev().attr({
- tabIndex: -1,
- "aria-expanded": "false"
- }) : e.length && this.headers.filter(function () {
- return 0 === parseInt(S(this).attr("tabIndex"), 10)
- }).attr("tabIndex", -1), e.attr("aria-hidden", "false").prev().attr({
- "aria-selected": "true",
- "aria-expanded": "true",
- tabIndex: 0
- })
- },
- _animate: function (t, i, e) {
- function n() {
- a._toggleComplete(e)
- }
- var s, o, r, a = this,
- l = 0,
- c = t.css("box-sizing"),
- u = t.length && (!i.length || t.index() < i.index()),
- h = this.options.animate || {},
- d = u && h.down || h;
- 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, {
- duration: r,
- easing: o,
- step: function (t, e) {
- e.now = Math.round(t)
- }
- }), void t.hide().animate(this.showProps, {
- duration: r,
- easing: o,
- complete: n,
- step: function (t, e) {
- 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)
- }
- })) : i.animate(this.hideProps, r, o, n) : t.animate(this.showProps, r, o, n)
- },
- _toggleComplete: function (t) {
- var e = t.oldPanel,
- i = e.prev();
- 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)
- }
- }), S.ui.safeActiveElement = function (e) {
- var i;
- try {
- i = e.activeElement
- } catch (t) {
- i = e.body
- }
- return i || (i = e.body), i.nodeName || (i = e.body), i
- }, S.widget("ui.menu", {
- version: "1.12.1",
- defaultElement: "<ul>",
- delay: 300,
- options: {
- icons: {
- submenu: "ui-icon-caret-1-e"
- },
- items: "> *",
- menus: "ul",
- position: {
- my: "left top",
- at: "right top"
- },
- role: "menu",
- blur: null,
- focus: null,
- select: null
- },
- _create: function () {
- this.activeMenu = this.element, this.mouseHandled = !1, this.element.uniqueId().attr({
- role: this.options.role,
- tabIndex: 0
- }), this._addClass("ui-menu", "ui-widget ui-widget-content"), this._on({
- "mousedown .ui-menu-item": function (t) {
- t.preventDefault()
- },
- "click .ui-menu-item": function (t) {
- var e = S(t.target),
- i = S(S.ui.safeActiveElement(this.document[0]));
- !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)))
- },
- "mouseenter .ui-menu-item": function (t) {
- if (!this.previousFilter) {
- var e = S(t.target).closest(".ui-menu-item"),
- i = S(t.currentTarget);
- e[0] === i[0] && (this._removeClass(i.siblings().children(".ui-state-active"), null, "ui-state-active"), this.focus(t, i))
- }
- },
- mouseleave: "collapseAll",
- "mouseleave .ui-menu": "collapseAll",
- focus: function (t, e) {
- var i = this.active || this.element.find(this.options.items).eq(0);
- e || this.focus(t, i)
- },
- blur: function (t) {
- this._delay(function () {
- !S.contains(this.element[0], S.ui.safeActiveElement(this.document[0])) && this.collapseAll(t)
- })
- },
- keydown: "_keydown"
- }), this.refresh(), this._on(this.document, {
- click: function (t) {
- this._closeOnDocumentClick(t) && this.collapseAll(t), this.mouseHandled = !1
- }
- })
- },
- _destroy: function () {
- var t = this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");
- 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 () {
- var t = S(this);
- t.data("ui-menu-submenu-caret") && t.remove()
- })
- },
- _keydown: function (t) {
- var e, i, n, s, o = !0;
- switch (t.keyCode) {
- case S.ui.keyCode.PAGE_UP:
- this.previousPage(t);
- break;
- case S.ui.keyCode.PAGE_DOWN:
- this.nextPage(t);
- break;
- case S.ui.keyCode.HOME:
- this._move("first", "first", t);
- break;
- case S.ui.keyCode.END:
- this._move("last", "last", t);
- break;
- case S.ui.keyCode.UP:
- this.previous(t);
- break;
- case S.ui.keyCode.DOWN:
- this.next(t);
- break;
- case S.ui.keyCode.LEFT:
- this.collapse(t);
- break;
- case S.ui.keyCode.RIGHT:
- this.active && !this.active.is(".ui-state-disabled") && this.expand(t);
- break;
- case S.ui.keyCode.ENTER:
- case S.ui.keyCode.SPACE:
- this._activate(t);
- break;
- case S.ui.keyCode.ESCAPE:
- this.collapse(t);
- break;
- default:
- 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 () {
- delete this.previousFilter
- }, 1e3)) : delete this.previousFilter
- }
- o && t.preventDefault()
- },
- _activate: function (t) {
- this.active && !this.active.is(".ui-state-disabled") && (this.active.children("[aria-haspopup='true']").length ? this.expand(t) : this.select(t))
- },
- refresh: function () {
- var t, e, i, n, s = this,
- o = this.options.icons.submenu,
- r = this.element.find(this.options.menus);
- this._toggleClass("ui-menu-icons", null, !!this.element.find(".ui-icon").length), e = r.filter(":not(.ui-menu)").hide().attr({
- role: this.options.role,
- "aria-hidden": "true",
- "aria-expanded": "false"
- }).each(function () {
- var t = S(this),
- e = t.prev(),
- i = S("<span>").data("ui-menu-submenu-caret", !0);
- s._addClass(i, "ui-menu-icon", "ui-icon " + o), e.attr("aria-haspopup", "true").prepend(i), t.attr("aria-labelledby", e.attr("id"))
- }), 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 () {
- var t = S(this);
- s._isDivider(t) && s._addClass(t, "ui-menu-divider", "ui-widget-content")
- }), n = (i = t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({
- tabIndex: -1,
- role: this._itemRole()
- }), 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()
- },
- _itemRole: function () {
- return {
- menu: "menuitem",
- listbox: "option"
- } [this.options.role]
- },
- _setOption: function (t, e) {
- if ("icons" === t) {
- var i = this.element.find(".ui-menu-icon");
- this._removeClass(i, null, this.options.icons.submenu)._addClass(i, null, e.submenu)
- }
- this._super(t, e)
- },
- _setOptionDisabled: function (t) {
- this._super(t), this.element.attr("aria-disabled", t + ""), this._toggleClass(null, "ui-state-disabled", !!t)
- },
- focus: function (t, e) {
- var i, n, s;
- 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 () {
- this._close()
- }, this.delay), (i = e.children(".ui-menu")).length && t && /^mouse/.test(t.type) && this._startOpening(i), this.activeMenu = e.parent(), this._trigger("focus", t, {
- item: e
- })
- },
- _scrollIntoView: function (t) {
- var e, i, n, s, o, r;
- 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))
- },
- blur: function (t, e) {
- e || clearTimeout(this.timer), this.active && (this._removeClass(this.active.children(".ui-menu-item-wrapper"), null, "ui-state-active"), this._trigger("blur", t, {
- item: this.active
- }), this.active = null)
- },
- _startOpening: function (t) {
- clearTimeout(this.timer), "true" === t.attr("aria-hidden") && (this.timer = this._delay(function () {
- this._close(), this._open(t)
- }, this.delay))
- },
- _open: function (t) {
- var e = S.extend({
- of: this.active
- }, this.options.position);
- 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)
- },
- collapseAll: function (e, i) {
- clearTimeout(this.timer), this.timer = this._delay(function () {
- var t = i ? this.element : S(e && e.target).closest(this.element.find(".ui-menu"));
- 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
- }, this.delay)
- },
- _close: function (t) {
- t || (t = this.active ? this.active.parent() : this.element), t.find(".ui-menu").hide().attr("aria-hidden", "true").attr("aria-expanded", "false")
- },
- _closeOnDocumentClick: function (t) {
- return !S(t.target).closest(".ui-menu").length
- },
- _isDivider: function (t) {
- return !/[^\-\u2014\u2013\s]/.test(t.text())
- },
- collapse: function (t) {
- var e = this.active && this.active.parent().closest(".ui-menu-item", this.element);
- e && e.length && (this._close(), this.focus(t, e))
- },
- expand: function (t) {
- var e = this.active && this.active.children(".ui-menu ").find(this.options.items).first();
- e && e.length && (this._open(e.parent()), this._delay(function () {
- this.focus(t, e)
- }))
- },
- next: function (t) {
- this._move("next", "first", t)
- },
- previous: function (t) {
- this._move("prev", "last", t)
- },
- isFirstItem: function () {
- return this.active && !this.active.prevAll(".ui-menu-item").length
- },
- isLastItem: function () {
- return this.active && !this.active.nextAll(".ui-menu-item").length
- },
- _move: function (t, e, i) {
- var n;
- 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)
- },
- nextPage: function (t) {
- var e, i, n;
- 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 () {
- return (e = S(this)).offset().top - i - n < 0
- }), this.focus(t, e)) : this.focus(t, this.activeMenu.find(this.options.items)[this.active ? "last" : "first"]()))) : void this.next(t)
- },
- previousPage: function (t) {
- var e, i, n;
- 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 () {
- return 0 < (e = S(this)).offset().top - i + n
- }), this.focus(t, e)) : this.focus(t, this.activeMenu.find(this.options.items).first()))) : void this.next(t)
- },
- _hasScroll: function () {
- return this.element.outerHeight() < this.element.prop("scrollHeight")
- },
- select: function (t) {
- this.active = this.active || S(t.target).closest(".ui-menu-item");
- var e = {
- item: this.active
- };
- this.active.has(".ui-menu").length || this.collapseAll(t, !0), this._trigger("select", t, e)
- },
- _filterMenuItems: function (t) {
- var e = t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&"),
- i = RegExp("^" + e, "i");
- return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function () {
- return i.test(S.trim(S(this).children(".ui-menu-item-wrapper").text()))
- })
- }
- }), S.widget("ui.autocomplete", {
- version: "1.12.1",
- defaultElement: "<input>",
- options: {
- appendTo: null,
- autoFocus: !1,
- delay: 300,
- minLength: 1,
- position: {
- my: "left top",
- at: "left bottom",
- collision: "none"
- },
- source: null,
- change: null,
- close: null,
- focus: null,
- open: null,
- response: null,
- search: null,
- select: null
- },
- requestIndex: 0,
- pending: 0,
- _create: function () {
- var i, n, s, t = this.element[0].nodeName.toLowerCase(),
- e = "textarea" === t,
- o = "input" === t;
- 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, {
- keydown: function (t) {
- if (this.element.prop("readOnly")) n = s = i = !0;
- else {
- n = s = i = !1;
- var e = S.ui.keyCode;
- switch (t.keyCode) {
- case e.PAGE_UP:
- i = !0, this._move("previousPage", t);
- break;
- case e.PAGE_DOWN:
- i = !0, this._move("nextPage", t);
- break;
- case e.UP:
- i = !0, this._keyEvent("previous", t);
- break;
- case e.DOWN:
- i = !0, this._keyEvent("next", t);
- break;
- case e.ENTER:
- this.menu.active && (i = !0, t.preventDefault(), this.menu.select(t));
- break;
- case e.TAB:
- this.menu.active && this.menu.select(t);
- break;
- case e.ESCAPE:
- this.menu.element.is(":visible") && (this.isMultiLine || this._value(this.term), this.close(t), t.preventDefault());
- break;
- default:
- n = !0, this._searchTimeout(t)
- }
- }
- },
- keypress: function (t) {
- if (i) return i = !1, void((!this.isMultiLine || this.menu.element.is(":visible")) && t.preventDefault());
- if (!n) {
- var e = S.ui.keyCode;
- switch (t.keyCode) {
- case e.PAGE_UP:
- this._move("previousPage", t);
- break;
- case e.PAGE_DOWN:
- this._move("nextPage", t);
- break;
- case e.UP:
- this._keyEvent("previous", t);
- break;
- case e.DOWN:
- this._keyEvent("next", t)
- }
- }
- },
- input: function (t) {
- return s ? (s = !1, void t.preventDefault()) : void this._searchTimeout(t)
- },
- focus: function () {
- this.selectedItem = null, this.previous = this._value()
- },
- blur: function (t) {
- return this.cancelBlur ? void delete this.cancelBlur : (clearTimeout(this.searching), this.close(t), void this._change(t))
- }
- }), this._initSource(), this.menu = S("<ul>").appendTo(this._appendTo()).menu({
- role: null
- }).hide().menu("instance"), this._addClass(this.menu.element, "ui-autocomplete", "ui-front"), this._on(this.menu.element, {
- mousedown: function (t) {
- t.preventDefault(), this.cancelBlur = !0, this._delay(function () {
- delete this.cancelBlur, this.element[0] !== S.ui.safeActiveElement(this.document[0]) && this.element.trigger("focus")
- })
- },
- menufocus: function (t, e) {
- var i, n;
- return this.isNewMenu && (this.isNewMenu = !1, t.originalEvent && /^mouse/.test(t.originalEvent.type)) ? (this.menu.blur(), void this.document.one("mousemove", function () {
- S(t.target).trigger(t.originalEvent)
- })) : (n = e.item.data("ui-autocomplete-item"), !1 !== this._trigger("focus", t, {
- item: n
- }) && 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))))
- },
- menuselect: function (t, e) {
- var i = e.item.data("ui-autocomplete-item"),
- n = this.previous;
- this.element[0] !== S.ui.safeActiveElement(this.document[0]) && (this.element.trigger("focus"), this.previous = n, this._delay(function () {
- this.previous = n, this.selectedItem = i
- })), !1 !== this._trigger("select", t, {
- item: i
- }) && this._value(i.value), this.term = this._value(), this.close(t), this.selectedItem = i
- }
- }), this.liveRegion = S("<div>", {
- role: "status",
- "aria-live": "assertive",
- "aria-relevant": "additions"
- }).appendTo(this.document[0].body), this._addClass(this.liveRegion, null, "ui-helper-hidden-accessible"), this._on(this.window, {
- beforeunload: function () {
- this.element.removeAttr("autocomplete")
- }
- })
- },
- _destroy: function () {
- clearTimeout(this.searching), this.element.removeAttr("autocomplete"), this.menu.element.remove(), this.liveRegion.remove()
- },
- _setOption: function (t, e) {
- this._super(t, e), "source" === t && this._initSource(), "appendTo" === t && this.menu.element.appendTo(this._appendTo()), "disabled" === t && e && this.xhr && this.xhr.abort()
- },
- _isEventTargetInWidget: function (t) {
- var e = this.menu.element[0];
- return t.target === this.element[0] || t.target === e || S.contains(e, t.target)
- },
- _closeOnClickOutside: function (t) {
- this._isEventTargetInWidget(t) || this.close()
- },
- _appendTo: function () {
- var t = this.options.appendTo;
- 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
- },
- _initSource: function () {
- var i, n, s = this;
- S.isArray(this.options.source) ? (i = this.options.source, this.source = function (t, e) {
- e(S.ui.autocomplete.filter(i, t.term))
- }) : "string" == typeof this.options.source ? (n = this.options.source, this.source = function (t, e) {
- s.xhr && s.xhr.abort(), s.xhr = S.ajax({
- url: n,
- data: t,
- dataType: "json",
- success: function (t) {
- e(t)
- },
- error: function () {
- e([])
- }
- })
- }) : this.source = this.options.source
- },
- _searchTimeout: function (n) {
- clearTimeout(this.searching), this.searching = this._delay(function () {
- var t = this.term === this._value(),
- e = this.menu.element.is(":visible"),
- i = n.altKey || n.ctrlKey || n.metaKey || n.shiftKey;
- (!t || t && !e && !i) && (this.selectedItem = null, this.search(null, n))
- }, this.options.delay)
- },
- search: function (t, e) {
- 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
- },
- _search: function (t) {
- this.pending++, this._addClass("ui-autocomplete-loading"), this.cancelSearch = !1, this.source({
- term: t
- }, this._response())
- },
- _response: function () {
- var e = ++this.requestIndex;
- return S.proxy(function (t) {
- e === this.requestIndex && this.__response(t), this.pending--, this.pending || this._removeClass("ui-autocomplete-loading")
- }, this)
- },
- __response: function (t) {
- t && (t = this._normalize(t)), this._trigger("response", null, {
- content: t
- }), !this.options.disabled && t && t.length && !this.cancelSearch ? (this._suggest(t), this._trigger("open")) : this._close()
- },
- close: function (t) {
- this.cancelSearch = !0, this._close(t)
- },
- _close: function (t) {
- this._off(this.document, "mousedown"), this.menu.element.is(":visible") && (this.menu.element.hide(), this.menu.blur(), this.isNewMenu = !0, this._trigger("close", t))
- },
- _change: function (t) {
- this.previous !== this._value() && this._trigger("change", t, {
- item: this.selectedItem
- })
- },
- _normalize: function (t) {
- return t.length && t[0].label && t[0].value ? t : S.map(t, function (t) {
- return "string" == typeof t ? {
- label: t,
- value: t
- } : S.extend({}, t, {
- label: t.label || t.value,
- value: t.value || t.label
- })
- })
- },
- _suggest: function (t) {
- var e = this.menu.element.empty();
- this._renderMenu(e, t), this.isNewMenu = !0, this.menu.refresh(), e.show(), this._resizeMenu(), e.position(S.extend({
- of: this.element
- }, this.options.position)), this.options.autoFocus && this.menu.next(), this._on(this.document, {
- mousedown: "_closeOnClickOutside"
- })
- },
- _resizeMenu: function () {
- var t = this.menu.element;
- t.outerWidth(Math.max(t.width("").outerWidth() + 1, this.element.outerWidth()))
- },
- _renderMenu: function (i, t) {
- var n = this;
- S.each(t, function (t, e) {
- n._renderItemData(i, e)
- })
- },
- _renderItemData: function (t, e) {
- return this._renderItem(t, e).data("ui-autocomplete-item", e)
- },
- _renderItem: function (t, e) {
- return S("<li>").append(S("<div>").text(e.label)).appendTo(t)
- },
- _move: function (t, e) {
- 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)
- },
- widget: function () {
- return this.menu.element
- },
- _value: function () {
- return this.valueMethod.apply(this.element, arguments)
- },
- _keyEvent: function (t, e) {
- (!this.isMultiLine || this.menu.element.is(":visible")) && (this._move(t, e), e.preventDefault())
- },
- _isContentEditable: function (t) {
- if (!t.length) return !1;
- var e = t.prop("contentEditable");
- return "inherit" === e ? this._isContentEditable(t.parent()) : "true" === e
- }
- }), S.extend(S.ui.autocomplete, {
- escapeRegex: function (t) {
- return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&")
- },
- filter: function (t, e) {
- var i = RegExp(S.ui.autocomplete.escapeRegex(e), "i");
- return S.grep(t, function (t) {
- return i.test(t.label || t.value || t)
- })
- }
- }), S.widget("ui.autocomplete", S.ui.autocomplete, {
- options: {
- messages: {
- noResults: "No search results.",
- results: function (t) {
- return t + (1 < t ? " results are" : " result is") + " available, use up and down arrow keys to navigate."
- }
- }
- },
- __response: function (t) {
- var e;
- 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))
- }
- }), S.ui.autocomplete;
- var m, v, _ = /ui-corner-([a-z]){2,6}/g;
- S.widget("ui.controlgroup", {
- version: "1.12.1",
- defaultElement: "<div>",
- options: {
- direction: "horizontal",
- disabled: null,
- onlyVisible: !0,
- items: {
- button: "input[type=button], input[type=submit], input[type=reset], button, a",
- controlgroupLabel: ".ui-controlgroup-label",
- checkboxradio: "input[type='checkbox'], input[type='radio']",
- selectmenu: "select",
- spinner: ".ui-spinner-input"
- }
- },
- _create: function () {
- this._enhance()
- },
- _enhance: function () {
- this.element.attr("role", "toolbar"), this.refresh()
- },
- _destroy: function () {
- 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()
- },
- _initWidgets: function () {
- var r = this,
- a = [];
- S.each(this.options.items, function (s, t) {
- var e, o = {};
- return t ? "controlgroupLabel" === s ? ((e = r.element.find(t)).each(function () {
- var t = S(this);
- t.children(".ui-controlgroup-label-contents").length || t.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")
- }), 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") : {
- classes: {}
- }, r.element.find(t).each(function () {
- var t = S(this),
- e = t[s]("instance"),
- i = S.widget.extend({}, o);
- if ("button" !== s || !t.parent(".ui-spinner").length) {
- e || (e = t[s]()[s]("instance")), e && (i.classes = r._resolveClassesValues(i.classes, e)), t[s](i);
- var n = t[s]("widget");
- S.data(n[0], "ui-controlgroup-data", e || t[s]("instance")), a.push(n[0])
- }
- }))) : void 0
- }), this.childWidgets = S(S.unique(a)), this._addClass(this.childWidgets, "ui-controlgroup-item")
- },
- _callChildMethod: function (e) {
- this.childWidgets.each(function () {
- var t = S(this).data("ui-controlgroup-data");
- t && t[e] && t[e]()
- })
- },
- _updateCornerClass: function (t, e) {
- var i = this._buildSimpleOptions(e, "label").classes.label;
- this._removeClass(t, null, "ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"), this._addClass(t, null, i)
- },
- _buildSimpleOptions: function (t, e) {
- var i = "vertical" === this.options.direction,
- n = {
- classes: {}
- };
- return n.classes[e] = {
- middle: "",
- first: "ui-corner-" + (i ? "top" : "left"),
- last: "ui-corner-" + (i ? "bottom" : "right"),
- only: "ui-corner-all"
- } [t], n
- },
- _spinnerOptions: function (t) {
- var e = this._buildSimpleOptions(t, "ui-spinner");
- return e.classes["ui-spinner-up"] = "", e.classes["ui-spinner-down"] = "", e
- },
- _buttonOptions: function (t) {
- return this._buildSimpleOptions(t, "ui-button")
- },
- _checkboxradioOptions: function (t) {
- return this._buildSimpleOptions(t, "ui-checkboxradio-label")
- },
- _selectmenuOptions: function (t) {
- var e = "vertical" === this.options.direction;
- return {
- width: e && "auto",
- classes: {
- middle: {
- "ui-selectmenu-button-open": "",
- "ui-selectmenu-button-closed": ""
- },
- first: {
- "ui-selectmenu-button-open": "ui-corner-" + (e ? "top" : "tl"),
- "ui-selectmenu-button-closed": "ui-corner-" + (e ? "top" : "left")
- },
- last: {
- "ui-selectmenu-button-open": e ? "" : "ui-corner-tr",
- "ui-selectmenu-button-closed": "ui-corner-" + (e ? "bottom" : "right")
- },
- only: {
- "ui-selectmenu-button-open": "ui-corner-top",
- "ui-selectmenu-button-closed": "ui-corner-all"
- }
- } [t]
- }
- },
- _resolveClassesValues: function (i, n) {
- var s = {};
- return S.each(i, function (t) {
- var e = n.options.classes[t] || "";
- e = S.trim(e.replace(_, "")), s[t] = (e + " " + i[t]).replace(/\s+/g, " ")
- }), s
- },
- _setOption: function (t, e) {
- 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()
- },
- refresh: function () {
- var s, o = this;
- 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) {
- var i = s[e]().data("ui-controlgroup-data");
- if (i && o["_" + i.widgetName + "Options"]) {
- var n = o["_" + i.widgetName + "Options"](1 === s.length ? "only" : e);
- n.classes = o._resolveClassesValues(n.classes, i), i.element[i.widgetName](n)
- } else o._updateCornerClass(s[e](), e)
- }), this._callChildMethod("refresh"))
- }
- }), S.widget("ui.checkboxradio", [S.ui.formResetMixin, {
- version: "1.12.1",
- options: {
- disabled: null,
- label: null,
- icon: !0,
- classes: {
- "ui-checkboxradio-label": "ui-corner-all",
- "ui-checkboxradio-icon": "ui-corner-all"
- }
- },
- _getCreateOptions: function () {
- var t, e, i = this,
- n = this._super() || {};
- 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 () {
- i.originalLabel += 3 === this.nodeType ? S(this).text() : this.outerHTML
- }), this.originalLabel && (n.label = this.originalLabel), null != (t = this.element[0].disabled) && (n.disabled = t), n
- },
- _create: function () {
- var t = this.element[0].checked;
- 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({
- change: "_toggleClasses",
- focus: function () {
- this._addClass(this.label, null, "ui-state-focus ui-visual-focus")
- },
- blur: function () {
- this._removeClass(this.label, null, "ui-state-focus ui-visual-focus")
- }
- })
- },
- _readType: function () {
- var t = this.element[0].nodeName.toLowerCase();
- 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)
- },
- _enhance: function () {
- this._updateIcon(this.element[0].checked)
- },
- widget: function () {
- return this.label
- },
- _getRadioGroup: function () {
- var t = this.element[0].name,
- e = "input[name='" + S.ui.escapeSelector(t) + "']";
- return t ? (this.form.length ? S(this.form[0].elements).filter(e) : S(e).filter(function () {
- return 0 === S(this).form().length
- })).not(this.element) : S([])
- },
- _toggleClasses: function () {
- var t = this.element[0].checked;
- 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 () {
- var t = S(this).checkboxradio("instance");
- t && t._removeClass(t.label, "ui-checkboxradio-checked", "ui-state-active")
- })
- },
- _destroy: function () {
- this._unbindFormResetHandler(), this.icon && (this.icon.remove(), this.iconSpace.remove())
- },
- _setOption: function (t, e) {
- 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
- },
- _updateIcon: function (t) {
- var e = "ui-icon ui-icon-background ";
- 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)
- },
- _updateLabel: function () {
- var t = this.label.contents().not(this.element[0]);
- this.icon && (t = t.not(this.icon[0])), this.iconSpace && (t = t.not(this.iconSpace[0])), t.remove(), this.label.append(this.options.label)
- },
- refresh: function () {
- var t = this.element[0].checked,
- e = this.element[0].disabled;
- 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({
- disabled: e
- })
- }
- }]), S.ui.checkboxradio, S.widget("ui.button", {
- version: "1.12.1",
- defaultElement: "<button>",
- options: {
- classes: {
- "ui-button": "ui-corner-all"
- },
- disabled: null,
- icon: null,
- iconPosition: "beginning",
- label: null,
- showLabel: !0
- },
- _getCreateOptions: function () {
- var t, e = this._super() || {};
- 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
- },
- _create: function () {
- !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({
- keyup: function (t) {
- t.keyCode === S.ui.keyCode.SPACE && (t.preventDefault(), this.element[0].click ? this.element[0].click() : this.element.trigger("click"))
- }
- })
- },
- _enhance: function () {
- this.element.is("button") || this.element.attr("role", "button"), this.options.icon && (this._updateIcon("icon", this.options.icon), this._updateTooltip())
- },
- _updateTooltip: function () {
- this.title = this.element.attr("title"), this.options.showLabel || this.title || this.element.attr("title", this.options.label)
- },
- _updateIcon: function (t, e) {
- var i = "iconPosition" !== t,
- n = i ? this.options.iconPosition : e,
- s = "top" === n || "bottom" === n;
- 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))
- },
- _destroy: function () {
- this.element.removeAttr("role"), this.icon && this.icon.remove(), this.iconSpace && this.iconSpace.remove(), this.hasTitle || this.element.removeAttr("title")
- },
- _attachIconSpace: function (t) {
- this.icon[/^(?:end|bottom)/.test(t) ? "before" : "after"](this.iconSpace)
- },
- _attachIcon: function (t) {
- this.element[/^(?:end|bottom)/.test(t) ? "append" : "prepend"](this.icon)
- },
- _setOptions: function (t) {
- var e = void 0 === t.showLabel ? this.options.showLabel : t.showLabel,
- i = void 0 === t.icon ? this.options.icon : t.icon;
- e || i || (t.showLabel = !0), this._super(t)
- },
- _setOption: function (t, e) {
- "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())
- },
- refresh: function () {
- var t = this.element.is("input, button") ? this.element[0].disabled : this.element.hasClass("ui-button-disabled");
- t !== this.options.disabled && this._setOptions({
- disabled: t
- }), this._updateTooltip()
- }
- }), !1 !== S.uiBackCompat && (S.widget("ui.button", S.ui.button, {
- options: {
- text: !0,
- icons: {
- primary: null,
- secondary: null
- }
- },
- _create: function () {
- 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()
- },
- _setOption: function (t, e) {
- 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))
- }
- }), S.fn.button = (m = S.fn.button, function () {
- 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({
- icon: !1
- }) : this.checkboxradio.apply(this, arguments))
- }), S.fn.buttonset = function () {
- 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 = {
- button: arguments[0].items
- }), this.controlgroup.apply(this, arguments))
- }), S.ui.button, S.extend(S.ui, {
- datepicker: {
- version: "1.12.1"
- }
- }), S.extend(t.prototype, {
- markerClassName: "hasDatepicker",
- maxRows: 4,
- _widgetDatepicker: function () {
- return this.dpDiv
- },
- setDefaults: function (t) {
- return h(this._defaults, t || {}), this
- },
- _attachDatepicker: function (t, e) {
- var i, n, s;
- 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)
- },
- _newInst: function (t, e) {
- return {
- id: t[0].id.replace(/([^A-Za-z0-9_\-])/g, "\\\\$1"),
- input: t,
- selectedDay: 0,
- selectedMonth: 0,
- selectedYear: 0,
- drawMonth: 0,
- drawYear: 0,
- inline: e,
- dpDiv: e ? i(S("<div class='" + this._inlineClass + " ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")) : this.dpDiv
- }
- },
- _connectDatepicker: function (t, e) {
- var i = S(t);
- 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))
- },
- _attachments: function (t, e) {
- var i, n, s, o = this._get(e, "appendText"),
- r = this._get(e, "isRTL");
- 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({
- src: s,
- alt: n,
- title: n
- }) : S("<button type='button'></button>").addClass(this._triggerClass).html(s ? S("<img/>").attr({
- src: s,
- alt: n,
- title: n
- }) : n)), t[r ? "before" : "after"](e.trigger), e.trigger.on("click", function () {
- 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
- }))
- },
- _autoSize: function (t) {
- if (this._get(t, "autoSize") && !t.inline) {
- var e, i, n, s, o = new Date(2009, 11, 20),
- r = this._get(t, "dateFormat");
- r.match(/[DM]/) && (e = function (t) {
- for (s = n = i = 0; t.length > s; s++) t[s].length > i && (i = t[s].length, n = s);
- return n
- }, 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)
- }
- },
- _inlineDatepicker: function (t, e) {
- var i = S(t);
- 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"))
- },
- _dialogDatepicker: function (t, e, i, n, s) {
- var o, r, a, l, c, u = this._dialogInst;
- 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
- },
- _destroyDatepicker: function (t) {
- var e, i = S(t),
- n = S.data(t, "datepicker");
- 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))
- },
- _enableDatepicker: function (e) {
- var t, i, n = S(e),
- s = S.data(e, "datepicker");
- n.hasClass(this.markerClassName) && ("input" === (t = e.nodeName.toLowerCase()) ? (e.disabled = !1, s.trigger.filter("button").each(function () {
- this.disabled = !1
- }).end().filter("img").css({
- opacity: "1.0",
- cursor: ""
- })) : ("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) {
- return t === e ? null : t
- }))
- },
- _disableDatepicker: function (e) {
- var t, i, n = S(e),
- s = S.data(e, "datepicker");
- n.hasClass(this.markerClassName) && ("input" === (t = e.nodeName.toLowerCase()) ? (e.disabled = !0, s.trigger.filter("button").each(function () {
- this.disabled = !0
- }).end().filter("img").css({
- opacity: "0.5",
- cursor: "default"
- })) : ("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) {
- return t === e ? null : t
- }), this._disabledInputs[this._disabledInputs.length] = e)
- },
- _isDisabledDatepicker: function (t) {
- if (!t) return !1;
- for (var e = 0; this._disabledInputs.length > e; e++)
- if (this._disabledInputs[e] === t) return !0;
- return !1
- },
- _getInst: function (t) {
- try {
- return S.data(t, "datepicker")
- } catch (t) {
- throw "Missing instance data for this datepicker"
- }
- },
- _optionDatepicker: function (t, e, i) {
- var n, s, o, r, a = this._getInst(t);
- 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))))
- },
- _changeDatepicker: function (t, e, i) {
- this._optionDatepicker(t, e, i)
- },
- _refreshDatepicker: function (t) {
- var e = this._getInst(t);
- e && this._updateDatepicker(e)
- },
- _setDateDatepicker: function (t, e) {
- var i = this._getInst(t);
- i && (this._setDate(i, e), this._updateDatepicker(i), this._updateAlternate(i))
- },
- _getDateDatepicker: function (t, e) {
- var i = this._getInst(t);
- return i && !i.inline && this._setDateFromField(i, e), i ? this._getDate(i) : null
- },
- _doKeyDown: function (t) {
- var e, i, n, s = S.datepicker._getInst(t.target),
- o = !0,
- r = s.dpDiv.is(".ui-datepicker-rtl");
- if (s._keyEvent = !0, S.datepicker._datepickerShowing) switch (t.keyCode) {
- case 9:
- S.datepicker._hideDatepicker(), o = !1;
- break;
- case 13:
- 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;
- case 27:
- S.datepicker._hideDatepicker();
- break;
- case 33:
- S.datepicker._adjustDate(t.target, t.ctrlKey ? -S.datepicker._get(s, "stepBigMonths") : -S.datepicker._get(s, "stepMonths"), "M");
- break;
- case 34:
- S.datepicker._adjustDate(t.target, t.ctrlKey ? +S.datepicker._get(s, "stepBigMonths") : +S.datepicker._get(s, "stepMonths"), "M");
- break;
- case 35:
- (t.ctrlKey || t.metaKey) && S.datepicker._clearDate(t.target), o = t.ctrlKey || t.metaKey;
- break;
- case 36:
- (t.ctrlKey || t.metaKey) && S.datepicker._gotoToday(t.target), o = t.ctrlKey || t.metaKey;
- break;
- case 37:
- (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");
- break;
- case 38:
- (t.ctrlKey || t.metaKey) && S.datepicker._adjustDate(t.target, -7, "D"), o = t.ctrlKey || t.metaKey;
- break;
- case 39:
- (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");
- break;
- case 40:
- (t.ctrlKey || t.metaKey) && S.datepicker._adjustDate(t.target, 7, "D"), o = t.ctrlKey || t.metaKey;
- break;
- default:
- o = !1
- } else 36 === t.keyCode && t.ctrlKey ? S.datepicker._showDatepicker(this) : o = !1;
- o && (t.preventDefault(), t.stopPropagation())
- },
- _doKeyPress: function (t) {
- var e, i, n = S.datepicker._getInst(t.target);
- 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
- },
- _doKeyUp: function (t) {
- var e = S.datepicker._getInst(t.target);
- if (e.input.val() !== e.lastVal) try {
- 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))
- } catch (t) {}
- return !0
- },
- _showDatepicker: function (t) {
- var e, i, n, s, o, r, a;
- ("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 () {
- return !(s |= "fixed" === S(this).css("position"))
- }), o = {
- left: S.datepicker._pos[0],
- top: S.datepicker._pos[1]
- }, S.datepicker._pos = null, e.dpDiv.empty(), e.dpDiv.css({
- position: "absolute",
- display: "block",
- top: "-1000px"
- }), S.datepicker._updateDatepicker(e), o = S.datepicker._checkOffset(e, o, s), e.dpDiv.css({
- position: S.datepicker._inDialog && S.blockUI ? "static" : s ? "fixed" : "absolute",
- display: "none",
- left: o.left + "px",
- top: o.top + "px"
- }), e.inline || (r = S.datepicker._get(e, "showAnim"), a = S.datepicker._get(e, "duration"), e.dpDiv.css("z-index", function (t) {
- for (var e, i; t.length && t[0] !== document;) {
- if (("absolute" === (e = t.css("position")) || "relative" === e || "fixed" === e) && (i = parseInt(t.css("zIndex"), 10), !isNaN(i) && 0 !== i)) return i;
- t = t.parent()
- }
- return 0
- }(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)))
- },
- _updateDatepicker: function (t) {
- this.maxRows = 4, (v = t).dpDiv.empty().append(this._generateHTML(t)), this._attachHandlers(t);
- var e, i = this._getNumberOfMonths(t),
- n = i[1],
- s = t.dpDiv.find("." + this._dayOverClass + " a");
- 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 () {
- e === t.yearshtml && t.yearshtml && t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml), e = t.yearshtml = null
- }, 0))
- },
- _shouldFocusInput: function (t) {
- return t.input && t.input.is(":visible") && !t.input.is(":disabled") && !t.input.is(":focus")
- },
- _checkOffset: function (t, e, i) {
- var n = t.dpDiv.outerWidth(),
- s = t.dpDiv.outerHeight(),
- o = t.input ? t.input.outerWidth() : 0,
- r = t.input ? t.input.outerHeight() : 0,
- a = document.documentElement.clientWidth + (i ? 0 : S(document).scrollLeft()),
- l = document.documentElement.clientHeight + (i ? 0 : S(document).scrollTop());
- 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
- },
- _findPos: function (t) {
- 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"];
- return [(e = S(t).offset()).left, e.top]
- },
- _hideDatepicker: function (t) {
- var e, i, n, s, o = this._curInst;
- !o || t && o !== S.data(t, "datepicker") || this._datepickerShowing && (e = this._get(o, "showAnim"), i = this._get(o, "duration"), n = function () {
- S.datepicker._tidyDialog(o)
- }, 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({
- position: "absolute",
- left: "0",
- top: "-100px"
- }), S.blockUI && (S.unblockUI(), S("body").append(this.dpDiv))), this._inDialog = !1)
- },
- _tidyDialog: function (t) {
- t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")
- },
- _checkExternalClick: function (t) {
- if (S.datepicker._curInst) {
- var e = S(t.target),
- i = S.datepicker._getInst(e[0]);
- (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()
- }
- },
- _adjustDate: function (t, e, i) {
- var n = S(t),
- s = this._getInst(n[0]);
- this._isDisabledDatepicker(n[0]) || (this._adjustInstDate(s, e + ("M" === i ? this._get(s, "showCurrentAtPos") : 0), i), this._updateDatepicker(s))
- },
- _gotoToday: function (t) {
- var e, i = S(t),
- n = this._getInst(i[0]);
- 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)
- },
- _selectMonthYear: function (t, e, i) {
- var n = S(t),
- s = this._getInst(n[0]);
- 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)
- },
- _selectDay: function (t, e, i, n) {
- var s, o = S(t);
- 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)))
- },
- _clearDate: function (t) {
- var e = S(t);
- this._selectDate(e, "")
- },
- _selectDate: function (t, e) {
- var i, n = S(t),
- s = this._getInst(n[0]);
- 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)
- },
- _updateAlternate: function (t) {
- var e, i, n, s = this._get(t, "altField");
- 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))
- },
- noWeekends: function (t) {
- var e = t.getDay();
- return [0 < e && e < 6, ""]
- },
- iso8601Week: function (t) {
- var e, i = new Date(t.getTime());
- 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
- },
- parseDate: function (i, o, t) {
- if (null == i || null == o) throw "Invalid arguments";
- if ("" === (o = "object" == _typeof(o) ? "" + o : o + "")) return null;
-
- function r(t) {
- var e = i.length > a + 1 && i.charAt(a + 1) === t;
- return e && a++, e
- }
-
- function e(t) {
- var e = r(t),
- i = "@" === t ? 14 : "!" === t ? 20 : "y" === t && e ? 4 : "o" === t ? 3 : 2,
- n = RegExp("^\\d{" + ("y" === t ? i : 1) + "," + i + "}"),
- s = o.substring(h).match(n);
- if (!s) throw "Missing number at position " + h;
- return h += s[0].length, parseInt(s[0], 10)
- }
-
- function n(t, e, i) {
- var n = -1,
- s = S.map(r(t) ? i : e, function (t, e) {
- return [
- [e, t]
- ]
- }).sort(function (t, e) {
- return -(t[1].length - e[1].length)
- });
- if (S.each(s, function (t, e) {
- var i = e[1];
- return o.substr(h, i.length).toLowerCase() === i.toLowerCase() ? (n = e[0], h += i.length, !1) : void 0
- }), -1 !== n) return n + 1;
- throw "Unknown name at position " + h
- }
-
- function s() {
- if (o.charAt(h) !== i.charAt(a)) throw "Unexpected literal at position " + h;
- h++
- }
- var a, l, c, u, h = 0,
- d = (t ? t.shortYearCutoff : null) || this._defaults.shortYearCutoff,
- p = "string" != typeof d ? d : (new Date).getFullYear() % 100 + parseInt(d, 10),
- f = (t ? t.dayNamesShort : null) || this._defaults.dayNamesShort,
- g = (t ? t.dayNames : null) || this._defaults.dayNames,
- m = (t ? t.monthNamesShort : null) || this._defaults.monthNamesShort,
- v = (t ? t.monthNames : null) || this._defaults.monthNames,
- _ = -1,
- y = -1,
- b = -1,
- w = -1,
- k = !1;
- for (a = 0; i.length > a; a++)
- if (k) "'" !== i.charAt(a) || r("'") ? s() : k = !1;
- else switch (i.charAt(a)) {
- case "d":
- b = e("d");
- break;
- case "D":
- n("D", f, g);
- break;
- case "o":
- w = e("o");
- break;
- case "m":
- y = e("m");
- break;
- case "M":
- y = n("M", m, v);
- break;
- case "y":
- _ = e("y");
- break;
- case "@":
- _ = (u = new Date(e("@"))).getFullYear(), y = u.getMonth() + 1, b = u.getDate();
- break;
- case "!":
- _ = (u = new Date((e("!") - this._ticksTo1970) / 1e4)).getFullYear(), y = u.getMonth() + 1, b = u.getDate();
- break;
- case "'":
- r("'") ? s() : k = !0;
- break;
- default:
- s()
- }
- if (o.length > h && (c = o.substr(h), !/^\s+/.test(c))) throw "Extra/unparsed characters found in date: " + c;
- if (-1 === _ ? _ = (new Date).getFullYear() : _ < 100 && (_ += (new Date).getFullYear() - (new Date).getFullYear() % 100 + (_ <= p ? 0 : -100)), -1 < w)
- for (y = 1, b = w; !(b <= (l = this._getDaysInMonth(_, y - 1)));) y++, b -= l;
- if ((u = this._daylightSavingAdjust(new Date(_, y - 1, b))).getFullYear() !== _ || u.getMonth() + 1 !== y || u.getDate() !== b) throw "Invalid date";
- return u
- },
- ATOM: "yy-mm-dd",
- COOKIE: "D, dd M yy",
- ISO_8601: "yy-mm-dd",
- RFC_822: "D, d M y",
- RFC_850: "DD, dd-M-y",
- RFC_1036: "D, d M y",
- RFC_1123: "D, d M yy",
- RFC_2822: "D, d M yy",
- RSS: "D, d M y",
- TICKS: "!",
- TIMESTAMP: "@",
- W3C: "yy-mm-dd",
- _ticksTo1970: 864e9 * (718685 + Math.floor(492.5) - Math.floor(19.7) + Math.floor(4.925)),
- formatDate: function (i, t, e) {
- if (!t) return "";
-
- function s(t) {
- var e = i.length > r + 1 && i.charAt(r + 1) === t;
- return e && r++, e
- }
-
- function n(t, e, i) {
- var n = "" + e;
- if (s(t))
- for (; i > n.length;) n = "0" + n;
- return n
- }
-
- function o(t, e, i, n) {
- return s(t) ? n[e] : i[e]
- }
- var r, a = (e ? e.dayNamesShort : null) || this._defaults.dayNamesShort,
- l = (e ? e.dayNames : null) || this._defaults.dayNames,
- c = (e ? e.monthNamesShort : null) || this._defaults.monthNamesShort,
- u = (e ? e.monthNames : null) || this._defaults.monthNames,
- h = "",
- d = !1;
- if (t)
- for (r = 0; i.length > r; r++)
- if (d) "'" !== i.charAt(r) || s("'") ? h += i.charAt(r) : d = !1;
- else switch (i.charAt(r)) {
- case "d":
- h += n("d", t.getDate(), 2);
- break;
- case "D":
- h += o("D", t.getDay(), a, l);
- break;
- case "o":
- h += n("o", Math.round((new Date(t.getFullYear(), t.getMonth(), t.getDate()).getTime() - new Date(t.getFullYear(), 0, 0).getTime()) / 864e5), 3);
- break;
- case "m":
- h += n("m", t.getMonth() + 1, 2);
- break;
- case "M":
- h += o("M", t.getMonth(), c, u);
- break;
- case "y":
- h += s("y") ? t.getFullYear() : (t.getFullYear() % 100 < 10 ? "0" : "") + t.getFullYear() % 100;
- break;
- case "@":
- h += t.getTime();
- break;
- case "!":
- h += 1e4 * t.getTime() + this._ticksTo1970;
- break;
- case "'":
- s("'") ? h += "'" : d = !0;
- break;
- default:
- h += i.charAt(r)
- }
- return h
- },
- _possibleChars: function (i) {
- function t(t) {
- var e = i.length > n + 1 && i.charAt(n + 1) === t;
- return e && n++, e
- }
- var n, e = "",
- s = !1;
- for (n = 0; i.length > n; n++)
- if (s) "'" !== i.charAt(n) || t("'") ? e += i.charAt(n) : s = !1;
- else switch (i.charAt(n)) {
- case "d":
- case "m":
- case "y":
- case "@":
- e += "0123456789";
- break;
- case "D":
- case "M":
- return null;
- case "'":
- t("'") ? e += "'" : s = !0;
- break;
- default:
- e += i.charAt(n)
- }
- return e
- },
- _get: function (t, e) {
- return void 0 !== t.settings[e] ? t.settings[e] : this._defaults[e]
- },
- _setDateFromField: function (t, e) {
- if (t.input.val() !== t.lastVal) {
- var i = this._get(t, "dateFormat"),
- n = t.lastVal = t.input ? t.input.val() : null,
- s = this._getDefaultDate(t),
- o = s,
- r = this._getFormatConfig(t);
- try {
- o = this.parseDate(i, n, r) || s
- } catch (t) {
- n = e ? "" : n
- }
- 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)
- }
- },
- _getDefaultDate: function (t) {
- return this._restrictMinMax(t, this._determineDate(t, this._get(t, "defaultDate"), new Date))
- },
- _determineDate: function (a, t, e) {
- var i, n, s = null == t || "" === t ? e : "string" == typeof t ? function (t) {
- try {
- return S.datepicker.parseDate(S.datepicker._get(a, "dateFormat"), t, S.datepicker._getFormatConfig(a))
- } catch (t) {}
- 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;) {
- switch (r[2] || "d") {
- case "d":
- case "D":
- s += parseInt(r[1], 10);
- break;
- case "w":
- case "W":
- s += 7 * parseInt(r[1], 10);
- break;
- case "m":
- case "M":
- n += parseInt(r[1], 10), s = Math.min(s, S.datepicker._getDaysInMonth(i, n));
- break;
- case "y":
- case "Y":
- i += parseInt(r[1], 10), s = Math.min(s, S.datepicker._getDaysInMonth(i, n))
- }
- r = o.exec(t)
- }
- return new Date(i, n, s)
- }(t) : "number" == typeof t ? isNaN(t) ? e : (i = t, (n = new Date).setDate(n.getDate() + i), n) : new Date(t.getTime());
- return (s = s && "Invalid Date" == "" + s ? e : s) && (s.setHours(0), s.setMinutes(0), s.setSeconds(0), s.setMilliseconds(0)), this._daylightSavingAdjust(s)
- },
- _daylightSavingAdjust: function (t) {
- return t ? (t.setHours(12 < t.getHours() ? t.getHours() + 2 : 0), t) : null
- },
- _setDate: function (t, e, i) {
- var n = !e,
- s = t.selectedMonth,
- o = t.selectedYear,
- r = this._restrictMinMax(t, this._determineDate(t, e, new Date));
- 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))
- },
- _getDate: function (t) {
- return !t.currentYear || t.input && "" === t.input.val() ? null : this._daylightSavingAdjust(new Date(t.currentYear, t.currentMonth, t.currentDay))
- },
- _attachHandlers: function (t) {
- var e = this._get(t, "stepMonths"),
- i = "#" + t.id.replace(/\\\\/g, "\\");
- t.dpDiv.find("[data-handler]").map(function () {
- var t = {
- prev: function () {
- S.datepicker._adjustDate(i, -e, "M")
- },
- next: function () {
- S.datepicker._adjustDate(i, +e, "M")
- },
- hide: function () {
- S.datepicker._hideDatepicker()
- },
- today: function () {
- S.datepicker._gotoToday(i)
- },
- selectDay: function () {
- return S.datepicker._selectDay(i, +this.getAttribute("data-month"), +this.getAttribute("data-year"), this), !1
- },
- selectMonth: function () {
- return S.datepicker._selectMonthYear(i, this, "M"), !1
- },
- selectYear: function () {
- return S.datepicker._selectMonthYear(i, this, "Y"), !1
- }
- };
- S(this).on(this.getAttribute("data-event"), t[this.getAttribute("data-handler")])
- })
- },
- _generateHTML: function (t) {
- 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,
- R = this._daylightSavingAdjust(new Date($.getFullYear(), $.getMonth(), $.getDate())),
- F = this._get(t, "isRTL"),
- q = this._get(t, "showButtonPanel"),
- B = this._get(t, "hideIfNoPrevNext"),
- U = this._get(t, "navigationAsDateFormat"),
- Y = this._getNumberOfMonths(t),
- V = this._get(t, "showCurrentAtPos"),
- K = this._get(t, "stepMonths"),
- X = 1 !== Y[0] || 1 !== Y[1],
- Q = this._daylightSavingAdjust(t.currentDay ? new Date(t.currentYear, t.currentMonth, t.currentDay) : new Date(9999, 9, 9)),
- G = this._getMinMaxDate(t, "min"),
- J = this._getMinMaxDate(t, "max"),
- Z = t.drawMonth - V,
- tt = t.drawYear;
- if (Z < 0 && (Z += 12, tt--), J)
- 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--);
- 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++) {
- for (x = "", this.maxRows = 4, C = 0; Y[1] > C; C++) {
- if (T = this._daylightSavingAdjust(new Date(tt, Z, t.selectedDay)), S = " ui-corner-all", D = "", X) {
- if (D += "<div class='ui-datepicker-group", 1 < Y[1]) switch (C) {
- case 0:
- D += " ui-datepicker-group-first", S = " ui-corner-" + (F ? "right" : "left");
- break;
- case Y[1] - 1:
- D += " ui-datepicker-group-last", S = " ui-corner-" + (F ? "left" : "right");
- break;
- default:
- D += " ui-datepicker-group-middle", S = ""
- }
- D += "'>"
- }
- 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>";
- 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++) {
- 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, "'") + "'") + (W ? "" : " data-handler='selectDay' data-event='click' data-month='" + N.getMonth() + "' data-year='" + N.getFullYear() + "'") + ">" + (z && !v ? " " : 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);
- D += H + "</tr>"
- }
- 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>" : "") : "")
- }
- b += x
- }
- return b += c, t._keyEvent = !1, b
- },
- _generateMonthYearHeader: function (t, e, i, n, s, o, r, a) {
- var l, c, u, h, d, p, f, g, m = this._get(t, "changeMonth"),
- v = this._get(t, "changeYear"),
- _ = this._get(t, "showMonthAfterYear"),
- y = "<div class='ui-datepicker-title'>",
- b = "";
- if (o || !m) b += "<span class='ui-datepicker-month'>" + r[e] + "</span>";
- else {
- 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>");
- b += "</select>"
- }
- if (_ || (y += b + (!o && m && v ? "" : " ")), !t.yearshtml)
- if (t.yearshtml = "", o || !v) y += "<span class='ui-datepicker-year'>" + i + "</span>";
- else {
- for (h = this._get(t, "yearRange").split(":"), d = (new Date).getFullYear(), f = (p = function (t) {
- var e = t.match(/c[+\-].*/) ? i + parseInt(t.substring(1), 10) : t.match(/[+\-].*/) ? d + parseInt(t, 10) : parseInt(t, 10);
- return isNaN(e) ? d : e
- })(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>";
- t.yearshtml += "</select>", y += t.yearshtml, t.yearshtml = null
- } return y += this._get(t, "yearSuffix"), _ && (y += (!o && m && v ? "" : " ") + b), y + "</div>"
- },
- _adjustInstDate: function (t, e, i) {
- var n = t.selectedYear + ("Y" === i ? e : 0),
- s = t.selectedMonth + ("M" === i ? e : 0),
- o = Math.min(t.selectedDay, this._getDaysInMonth(n, s)) + ("D" === i ? e : 0),
- r = this._restrictMinMax(t, this._daylightSavingAdjust(new Date(n, s, o)));
- t.selectedDay = r.getDate(), t.drawMonth = t.selectedMonth = r.getMonth(), t.drawYear = t.selectedYear = r.getFullYear(), ("M" === i || "Y" === i) && this._notifyChange(t)
- },
- _restrictMinMax: function (t, e) {
- var i = this._getMinMaxDate(t, "min"),
- n = this._getMinMaxDate(t, "max"),
- s = i && e < i ? i : e;
- return n && n < s ? n : s
- },
- _notifyChange: function (t) {
- var e = this._get(t, "onChangeMonthYear");
- e && e.apply(t.input ? t.input[0] : null, [t.selectedYear, t.selectedMonth + 1, t])
- },
- _getNumberOfMonths: function (t) {
- var e = this._get(t, "numberOfMonths");
- return null == e ? [1, 1] : "number" == typeof e ? [1, e] : e
- },
- _getMinMaxDate: function (t, e) {
- return this._determineDate(t, this._get(t, e + "Date"), null)
- },
- _getDaysInMonth: function (t, e) {
- return 32 - this._daylightSavingAdjust(new Date(t, e, 32)).getDate()
- },
- _getFirstDayOfMonth: function (t, e) {
- return new Date(t, e, 1).getDay()
- },
- _canAdjustMonth: function (t, e, i, n) {
- var s = this._getNumberOfMonths(t),
- o = this._daylightSavingAdjust(new Date(i, n + (e < 0 ? e : s[0] * s[1]), 1));
- return e < 0 && o.setDate(this._getDaysInMonth(o.getFullYear(), o.getMonth())), this._isInRange(t, o)
- },
- _isInRange: function (t, e) {
- var i, n, s = this._getMinMaxDate(t, "min"),
- o = this._getMinMaxDate(t, "max"),
- r = null,
- a = null,
- l = this._get(t, "yearRange");
- 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())
- },
- _getFormatConfig: function (t) {
- var e = this._get(t, "shortYearCutoff");
- return {
- shortYearCutoff: e = "string" != typeof e ? e : (new Date).getFullYear() % 100 + parseInt(e, 10),
- dayNamesShort: this._get(t, "dayNamesShort"),
- dayNames: this._get(t, "dayNames"),
- monthNamesShort: this._get(t, "monthNamesShort"),
- monthNames: this._get(t, "monthNames")
- }
- },
- _formatDate: function (t, e, i, n) {
- e || (t.currentDay = t.selectedDay, t.currentMonth = t.selectedMonth, t.currentYear = t.selectedYear);
- var s = e ? "object" == _typeof(e) ? e : this._daylightSavingAdjust(new Date(n, i, e)) : this._daylightSavingAdjust(new Date(t.currentYear, t.currentMonth, t.currentDay));
- return this.formatDate(this._get(t, "dateFormat"), s, this._getFormatConfig(t))
- }
- }), S.fn.datepicker = function (t) {
- if (!this.length) return this;
- 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);
- var e = Array.prototype.slice.call(arguments, 1);
- 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 () {
- "string" == typeof t ? S.datepicker["_" + t + "Datepicker"].apply(S.datepicker, [this].concat(e)) : S.datepicker._attachDatepicker(this, t)
- }) : S.datepicker["_" + t + "Datepicker"].apply(S.datepicker, [this[0]].concat(e))
- }, 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());
- var y = !1;
- S(document).on("mouseup", function () {
- y = !1
- }), S.widget("ui.mouse", {
- version: "1.12.1",
- options: {
- cancel: "input, textarea, button, select, option",
- distance: 1,
- delay: 0
- },
- _mouseInit: function () {
- var e = this;
- this.element.on("mousedown." + this.widgetName, function (t) {
- return e._mouseDown(t)
- }).on("click." + this.widgetName, function (t) {
- return !0 === S.data(t.target, e.widgetName + ".preventClickEvent") ? (S.removeData(t.target, e.widgetName + ".preventClickEvent"), t.stopImmediatePropagation(), !1) : void 0
- }), this.started = !1
- },
- _mouseDestroy: function () {
- this.element.off("." + this.widgetName), this._mouseMoveDelegate && this.document.off("mousemove." + this.widgetName, this._mouseMoveDelegate).off("mouseup." + this.widgetName, this._mouseUpDelegate)
- },
- _mouseDown: function (t) {
- if (!y) {
- this._mouseMoved = !1, this._mouseStarted && this._mouseUp(t), this._mouseDownEvent = t;
- var e = this,
- i = 1 === t.which,
- n = !("string" != typeof this.options.cancel || !t.target.nodeName) && S(t.target).closest(this.options.cancel).length;
- return i && !n && this._mouseCapture(t) && (this.mouseDelayMet = !this.options.delay, this.mouseDelayMet || (this._mouseDelayTimer = setTimeout(function () {
- e.mouseDelayMet = !0
- }, 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) {
- return e._mouseMove(t)
- }, this._mouseUpDelegate = function (t) {
- return e._mouseUp(t)
- }, this.document.on("mousemove." + this.widgetName, this._mouseMoveDelegate).on("mouseup." + this.widgetName, this._mouseUpDelegate), t.preventDefault(), y = !0)), !0
- }
- },
- _mouseMove: function (t) {
- if (this._mouseMoved) {
- if (S.ui.ie && (!document.documentMode || document.documentMode < 9) && !t.button) return this._mouseUp(t);
- if (!t.which)
- if (t.originalEvent.altKey || t.originalEvent.ctrlKey || t.originalEvent.metaKey || t.originalEvent.shiftKey) this.ignoreMissingWhich = !0;
- else if (!this.ignoreMissingWhich) return this._mouseUp(t)
- }
- 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)
- },
- _mouseUp: function (t) {
- 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()
- },
- _mouseDistanceMet: function (t) {
- return Math.max(Math.abs(this._mouseDownEvent.pageX - t.pageX), Math.abs(this._mouseDownEvent.pageY - t.pageY)) >= this.options.distance
- },
- _mouseDelayMet: function () {
- return this.mouseDelayMet
- },
- _mouseStart: function () {},
- _mouseDrag: function () {},
- _mouseStop: function () {},
- _mouseCapture: function () {
- return !0
- }
- }), S.ui.plugin = {
- add: function (t, e, i) {
- var n, s = S.ui[t].prototype;
- for (n in i) s.plugins[n] = s.plugins[n] || [], s.plugins[n].push([e, i[n]])
- },
- call: function (t, e, i, n) {
- var s, o = t.plugins[e];
- if (o && (n || t.element[0].parentNode && 11 !== t.element[0].parentNode.nodeType))
- for (s = 0; o.length > s; s++) t.options[o[s][0]] && o[s][1].apply(t.element, i)
- }
- }, S.ui.safeBlur = function (t) {
- t && "body" !== t.nodeName.toLowerCase() && S(t).trigger("blur")
- }, S.widget("ui.draggable", S.ui.mouse, {
- version: "1.12.1",
- widgetEventPrefix: "drag",
- options: {
- addClasses: !0,
- appendTo: "parent",
- axis: !1,
- connectToSortable: !1,
- containment: !1,
- cursor: "auto",
- cursorAt: !1,
- grid: !1,
- handle: !1,
- helper: "original",
- iframeFix: !1,
- opacity: !1,
- refreshPositions: !1,
- revert: !1,
- revertDuration: 500,
- scope: "default",
- scroll: !0,
- scrollSensitivity: 20,
- scrollSpeed: 20,
- snap: !1,
- snapMode: "both",
- snapTolerance: 20,
- stack: !1,
- zIndex: !1,
- drag: null,
- start: null,
- stop: null
- },
- _create: function () {
- "original" === this.options.helper && this._setPositionRelative(), this.options.addClasses && this._addClass("ui-draggable"), this._setHandleClassName(), this._mouseInit()
- },
- _setOption: function (t, e) {
- this._super(t, e), "handle" === t && (this._removeHandleClassName(), this._setHandleClassName())
- },
- _destroy: function () {
- return (this.helper || this.element).is(".ui-draggable-dragging") ? void(this.destroyOnClear = !0) : (this._removeHandleClassName(), void this._mouseDestroy())
- },
- _mouseCapture: function (t) {
- var e = this.options;
- 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))
- },
- _blockFrames: function (t) {
- this.iframeBlocks = this.document.find(t).map(function () {
- var t = S(this);
- return S("<div>").css("position", "absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]
- })
- },
- _unblockFrames: function () {
- this.iframeBlocks && (this.iframeBlocks.remove(), delete this.iframeBlocks)
- },
- _blurActiveElement: function (t) {
- var e = S.ui.safeActiveElement(this.document[0]);
- S(t.target).closest(e).length || S.ui.safeBlur(e)
- },
- _mouseStart: function (t) {
- var e = this.options;
- 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 () {
- return "fixed" === S(this).css("position")
- }).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)
- },
- _refreshOffsets: function (t) {
- this.offset = {
- top: this.positionAbs.top - this.margins.top,
- left: this.positionAbs.left - this.margins.left,
- scroll: !1,
- parent: this._getParentOffset(),
- relative: this._getRelativeOffset()
- }, this.offset.click = {
- left: t.pageX - this.offset.left,
- top: t.pageY - this.offset.top
- }
- },
- _mouseDrag: function (t, e) {
- if (this.hasFixedAncestor && (this.offset.parent = this._getParentOffset()), this.position = this._generatePosition(t, !0), this.positionAbs = this._convertPositionTo("absolute"), !e) {
- var i = this._uiHash();
- if (!1 === this._trigger("drag", t, i)) return this._mouseUp(new S.Event("mouseup", t)), !1;
- this.position = i.position
- }
- 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
- },
- _mouseStop: function (t) {
- var e = this,
- i = !1;
- 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 () {
- !1 !== e._trigger("stop", t) && e._clear()
- }) : !1 !== this._trigger("stop", t) && this._clear(), !1
- },
- _mouseUp: function (t) {
- 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)
- },
- cancel: function () {
- return this.helper.is(".ui-draggable-dragging") ? this._mouseUp(new S.Event("mouseup", {
- target: this.element[0]
- })) : this._clear(), this
- },
- _getHandle: function (t) {
- return !this.options.handle || !!S(t.target).closest(this.element.find(this.options.handle)).length
- },
- _setHandleClassName: function () {
- this.handleElement = this.options.handle ? this.element.find(this.options.handle) : this.element, this._addClass(this.handleElement, "ui-draggable-handle")
- },
- _removeHandleClassName: function () {
- this._removeClass(this.handleElement, "ui-draggable-handle")
- },
- _createHelper: function (t) {
- var e = this.options,
- i = S.isFunction(e.helper),
- n = i ? S(e.helper.apply(this.element[0], [t])) : "clone" === e.helper ? this.element.clone().removeAttr("id") : this.element;
- 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
- },
- _setPositionRelative: function () {
- /^(?:r|a|f)/.test(this.element.css("position")) || (this.element[0].style.position = "relative")
- },
- _adjustOffsetFromHelper: function (t) {
- "string" == typeof t && (t = t.split(" ")), S.isArray(t) && (t = {
- left: +t[0],
- top: +t[1] || 0
- }), "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)
- },
- _isRootNode: function (t) {
- return /(html|body)/i.test(t.tagName) || t === this.document[0]
- },
- _getParentOffset: function () {
- var t = this.offsetParent.offset(),
- e = this.document[0];
- 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 = {
- top: 0,
- left: 0
- }), {
- top: t.top + (parseInt(this.offsetParent.css("borderTopWidth"), 10) || 0),
- left: t.left + (parseInt(this.offsetParent.css("borderLeftWidth"), 10) || 0)
- }
- },
- _getRelativeOffset: function () {
- if ("relative" !== this.cssPosition) return {
- top: 0,
- left: 0
- };
- var t = this.element.position(),
- e = this._isRootNode(this.scrollParent[0]);
- return {
- top: t.top - (parseInt(this.helper.css("top"), 10) || 0) + (e ? 0 : this.scrollParent.scrollTop()),
- left: t.left - (parseInt(this.helper.css("left"), 10) || 0) + (e ? 0 : this.scrollParent.scrollLeft())
- }
- },
- _cacheMargins: function () {
- this.margins = {
- left: parseInt(this.element.css("marginLeft"), 10) || 0,
- top: parseInt(this.element.css("marginTop"), 10) || 0,
- right: parseInt(this.element.css("marginRight"), 10) || 0,
- bottom: parseInt(this.element.css("marginBottom"), 10) || 0
- }
- },
- _cacheHelperProportions: function () {
- this.helperProportions = {
- width: this.helper.outerWidth(),
- height: this.helper.outerHeight()
- }
- },
- _setContainment: function () {
- var t, e, i, n = this.options,
- s = this.document[0];
- 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)
- },
- _convertPositionTo: function (t, e) {
- e || (e = this.position);
- var i = "absolute" === t ? 1 : -1,
- n = this._isRootNode(this.scrollParent[0]);
- return {
- 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,
- 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
- }
- },
- _generatePosition: function (t, e) {
- var i, n, s, o, r = this.options,
- a = this._isRootNode(this.scrollParent[0]),
- l = t.pageX,
- c = t.pageY;
- return a && this.offset.scroll || (this.offset.scroll = {
- top: this.scrollParent.scrollTop(),
- left: this.scrollParent.scrollLeft()
- }), 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)), {
- 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),
- 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)
- }
- },
- _clear: function () {
- 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()
- },
- _trigger: function (t, e, i) {
- 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)
- },
- plugins: {},
- _uiHash: function () {
- return {
- helper: this.helper,
- position: this.position,
- originalPosition: this.originalPosition,
- offset: this.positionAbs
- }
- }
- }), S.ui.plugin.add("draggable", "connectToSortable", {
- start: function (e, t, i) {
- var n = S.extend({}, t, {
- item: i.element
- });
- i.sortables = [], S(i.options.connectToSortable).each(function () {
- var t = S(this).sortable("instance");
- t && !t.options.disabled && (i.sortables.push(t), t.refreshPositions(), t._trigger("activate", e, n))
- })
- },
- stop: function (e, t, i) {
- var n = S.extend({}, t, {
- item: i.element
- });
- i.cancelHelperRemoval = !1, S.each(i.sortables, function () {
- var t = this;
- t.isOver ? (t.isOver = 0, i.cancelHelperRemoval = !0, t.cancelHelperRemoval = !1, t._storedCSS = {
- position: t.placeholder.css("position"),
- top: t.placeholder.css("top"),
- left: t.placeholder.css("left")
- }, t._mouseStop(e), t.options.helper = t.options._helper) : (t.cancelHelperRemoval = !0, t._trigger("deactivate", e, n))
- })
- },
- drag: function (i, n, s) {
- S.each(s.sortables, function () {
- var t = !1,
- e = this;
- 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 () {
- 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
- })), 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 () {
- return n.helper[0]
- }, 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 () {
- this.refreshPositions()
- }), 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 () {
- this.refreshPositions()
- }))
- })
- }
- }), S.ui.plugin.add("draggable", "cursor", {
- start: function (t, e, i) {
- var n = S("body"),
- s = i.options;
- n.css("cursor") && (s._cursor = n.css("cursor")), n.css("cursor", s.cursor)
- },
- stop: function (t, e, i) {
- var n = i.options;
- n._cursor && S("body").css("cursor", n._cursor)
- }
- }), S.ui.plugin.add("draggable", "opacity", {
- start: function (t, e, i) {
- var n = S(e.helper),
- s = i.options;
- n.css("opacity") && (s._opacity = n.css("opacity")), n.css("opacity", s.opacity)
- },
- stop: function (t, e, i) {
- var n = i.options;
- n._opacity && S(e.helper).css("opacity", n._opacity)
- }
- }), S.ui.plugin.add("draggable", "scroll", {
- start: function (t, e, i) {
- i.scrollParentNotHidden || (i.scrollParentNotHidden = i.helper.scrollParent(!1)), i.scrollParentNotHidden[0] !== i.document[0] && "HTML" !== i.scrollParentNotHidden[0].tagName && (i.overflowOffset = i.scrollParentNotHidden.offset())
- },
- drag: function (t, e, i) {
- var n = i.options,
- s = !1,
- o = i.scrollParentNotHidden[0],
- r = i.document[0];
- 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)
- }
- }), S.ui.plugin.add("draggable", "snap", {
- start: function (t, e, i) {
- var n = i.options;
- i.snapElements = [], S(n.snap.constructor !== String ? n.snap.items || ":data(ui-draggable)" : n.snap).each(function () {
- var t = S(this),
- e = t.offset();
- this !== i.element[0] && i.snapElements.push({
- item: this,
- width: t.outerWidth(),
- height: t.outerHeight(),
- top: e.top,
- left: e.left
- })
- })
- },
- drag: function (t, e, i) {
- var n, s, o, r, a, l, c, u, h, d, p = i.options,
- f = p.snapTolerance,
- g = e.offset.left,
- m = g + i.helperProportions.width,
- v = e.offset.top,
- _ = v + i.helperProportions.height;
- 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(), {
- snapItem: i.snapElements[h].item
- })), 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", {
- top: c - i.helperProportions.height,
- left: 0
- }).top), s && (e.position.top = i._convertPositionTo("relative", {
- top: u,
- left: 0
- }).top), o && (e.position.left = i._convertPositionTo("relative", {
- top: 0,
- left: a - i.helperProportions.width
- }).left), r && (e.position.left = i._convertPositionTo("relative", {
- top: 0,
- left: l
- }).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", {
- top: c,
- left: 0
- }).top), s && (e.position.top = i._convertPositionTo("relative", {
- top: u - i.helperProportions.height,
- left: 0
- }).top), o && (e.position.left = i._convertPositionTo("relative", {
- top: 0,
- left: a
- }).left), r && (e.position.left = i._convertPositionTo("relative", {
- top: 0,
- left: l - i.helperProportions.width
- }).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(), {
- snapItem: i.snapElements[h].item
- })), i.snapElements[h].snapping = n || s || o || r || d)
- }
- }), S.ui.plugin.add("draggable", "stack", {
- start: function (t, e, i) {
- var n, s = i.options,
- o = S.makeArray(S(s.stack)).sort(function (t, e) {
- return (parseInt(S(t).css("zIndex"), 10) || 0) - (parseInt(S(e).css("zIndex"), 10) || 0)
- });
- o.length && (n = parseInt(S(o[0]).css("zIndex"), 10) || 0, S(o).each(function (t) {
- S(this).css("zIndex", n + t)
- }), this.css("zIndex", n + o.length))
- }
- }), S.ui.plugin.add("draggable", "zIndex", {
- start: function (t, e, i) {
- var n = S(e.helper),
- s = i.options;
- n.css("zIndex") && (s._zIndex = n.css("zIndex")), n.css("zIndex", s.zIndex)
- },
- stop: function (t, e, i) {
- var n = i.options;
- n._zIndex && S(e.helper).css("zIndex", n._zIndex)
- }
- }), S.ui.draggable, S.widget("ui.resizable", S.ui.mouse, {
- version: "1.12.1",
- widgetEventPrefix: "resize",
- options: {
- alsoResize: !1,
- animate: !1,
- animateDuration: "slow",
- animateEasing: "swing",
- aspectRatio: !1,
- autoHide: !1,
- classes: {
- "ui-resizable-se": "ui-icon ui-icon-gripsmall-diagonal-se"
- },
- containment: !1,
- ghost: !1,
- grid: !1,
- handles: "e,s,se",
- helper: !1,
- maxHeight: null,
- maxWidth: null,
- minHeight: 10,
- minWidth: 10,
- zIndex: 90,
- resize: null,
- start: null,
- stop: null
- },
- _num: function (t) {
- return parseFloat(t) || 0
- },
- _isNumber: function (t) {
- return !isNaN(parseFloat(t))
- },
- _hasScroll: function (t, e) {
- if ("hidden" === S(t).css("overflow")) return !1;
- var i = e && "left" === e ? "scrollLeft" : "scrollTop",
- n = !1;
- return 0 < t[i] || (t[i] = 1, n = 0 < t[i], t[i] = 0, n)
- },
- _create: function () {
- var t, e = this.options,
- i = this;
- this._addClass("ui-resizable"), S.extend(this, {
- _aspectRatio: !!e.aspectRatio,
- aspectRatio: e.aspectRatio,
- originalElement: this.element,
- _proportionallyResizeElements: [],
- _helper: e.helper || e.ghost || e.animate ? e.helper || "ui-resizable-helper" : null
- }), 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({
- position: this.element.css("position"),
- width: this.element.outerWidth(),
- height: this.element.outerHeight(),
- top: this.element.css("top"),
- left: this.element.css("left")
- })), this.element = this.element.parent().data("ui-resizable", this.element.resizable("instance")), this.elementIsWrapper = !0, t = {
- marginTop: this.originalElement.css("marginTop"),
- marginRight: this.originalElement.css("marginRight"),
- marginBottom: this.originalElement.css("marginBottom"),
- marginLeft: this.originalElement.css("marginLeft")
- }, 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({
- position: "static",
- zoom: 1,
- display: "block"
- })), this.originalElement.css(t), this._proportionallyResize()), this._setupHandles(), e.autoHide && S(this.element).on("mouseenter", function () {
- e.disabled || (i._removeClass("ui-resizable-autohide"), i._handles.show())
- }).on("mouseleave", function () {
- e.disabled || i.resizing || (i._addClass("ui-resizable-autohide"), i._handles.hide())
- }), this._mouseInit()
- },
- _destroy: function () {
- this._mouseDestroy();
-
- function t(t) {
- S(t).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()
- }
- var e;
- return this.elementIsWrapper && (t(this.element), e = this.element, this.originalElement.css({
- position: e.css("position"),
- width: e.outerWidth(),
- height: e.outerHeight(),
- top: e.css("top"),
- left: e.css("left")
- }).insertAfter(e), e.remove()), this.originalElement.css("resize", this.originalResizeStyle), t(this.originalElement), this
- },
- _setOption: function (t, e) {
- switch (this._super(t, e), t) {
- case "handles":
- this._removeHandles(), this._setupHandles()
- }
- },
- _setupHandles: function () {
- var t, e, i, n, s, o = this.options,
- r = this;
- if (this.handles = o.handles || (S(".ui-resizable-handle", this.element).length ? {
- n: ".ui-resizable-n",
- e: ".ui-resizable-e",
- s: ".ui-resizable-s",
- w: ".ui-resizable-w",
- se: ".ui-resizable-se",
- sw: ".ui-resizable-sw",
- ne: ".ui-resizable-ne",
- nw: ".ui-resizable-nw"
- } : "e,s,se"), this._handles = S(), this.handles.constructor === String)
- 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({
- zIndex: o.zIndex
- }), this.handles[t] = ".ui-resizable-" + t, this.element.append(s);
- this._renderAxis = function (t) {
- var e, i, n, s;
- 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], {
- mousedown: r._mouseDown
- })), 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])
- }, this._renderAxis(this.element), this._handles = this._handles.add(this.element.find(".ui-resizable-handle")), this._handles.disableSelection(), this._handles.on("mouseover", function () {
- 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")
- }), o.autoHide && (this._handles.hide(), this._addClass("ui-resizable-autohide"))
- },
- _removeHandles: function () {
- this._handles.remove()
- },
- _mouseCapture: function (t) {
- var e, i, n = !1;
- for (e in this.handles)((i = S(this.handles[e])[0]) === t.target || S.contains(i, t.target)) && (n = !0);
- return !this.options.disabled && n
- },
- _mouseStart: function (t) {
- var e, i, n, s = this.options,
- o = this.element;
- 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 = {
- left: e,
- top: i
- }, this.size = this._helper ? {
- width: this.helper.width(),
- height: this.helper.height()
- } : {
- width: o.width(),
- height: o.height()
- }, this.originalSize = this._helper ? {
- width: o.outerWidth(),
- height: o.outerHeight()
- } : {
- width: o.width(),
- height: o.height()
- }, this.sizeDiff = {
- width: o.outerWidth() - o.width(),
- height: o.outerHeight() - o.height()
- }, this.originalPosition = {
- left: e,
- top: i
- }, this.originalMousePosition = {
- left: t.pageX,
- top: t.pageY
- }, 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
- },
- _mouseDrag: function (t) {
- var e, i, n = this.originalMousePosition,
- s = this.axis,
- o = t.pageX - n.left || 0,
- r = t.pageY - n.top || 0,
- a = this._change[s];
- 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
- },
- _mouseStop: function (t) {
- this.resizing = !1;
- var e, i, n, s, o, r, a, l = this.options,
- c = this;
- 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 = {
- width: c.helper.width() - s,
- height: c.helper.height() - n
- }, 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, {
- top: a,
- left: r
- })), 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
- },
- _updatePrevProperties: function () {
- this.prevPosition = {
- top: this.position.top,
- left: this.position.left
- }, this.prevSize = {
- width: this.size.width,
- height: this.size.height
- }
- },
- _applyChanges: function () {
- var t = {};
- 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
- },
- _updateVirtualBoundaries: function (t) {
- var e, i, n, s, o, r = this.options;
- o = {
- minWidth: this._isNumber(r.minWidth) ? r.minWidth : 0,
- maxWidth: this._isNumber(r.maxWidth) ? r.maxWidth : 1 / 0,
- minHeight: this._isNumber(r.minHeight) ? r.minHeight : 0,
- maxHeight: this._isNumber(r.maxHeight) ? r.maxHeight : 1 / 0
- }, (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
- },
- _updateCache: function (t) {
- 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)
- },
- _updateRatio: function (t) {
- var e = this.position,
- i = this.size,
- n = this.axis;
- 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
- },
- _respectSize: function (t) {
- var e = this._vBoundaries,
- i = this.axis,
- n = this._isNumber(t.width) && e.maxWidth && e.maxWidth < t.width,
- s = this._isNumber(t.height) && e.maxHeight && e.maxHeight < t.height,
- o = this._isNumber(t.width) && e.minWidth && e.minWidth > t.width,
- r = this._isNumber(t.height) && e.minHeight && e.minHeight > t.height,
- a = this.originalPosition.left + this.originalSize.width,
- l = this.originalPosition.top + this.originalSize.height,
- c = /sw|nw|w/.test(i),
- u = /nw|ne|n/.test(i);
- 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
- },
- _getPaddingPlusBorderDimensions: function (t) {
- 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;
- return {
- height: i[0] + i[2],
- width: i[1] + i[3]
- }
- },
- _proportionallyResize: function () {
- if (this._proportionallyResizeElements.length)
- 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({
- height: i.height() - this.outerDimensions.height || 0,
- width: i.width() - this.outerDimensions.width || 0
- })
- },
- _renderProxy: function () {
- var t = this.element,
- e = this.options;
- 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({
- width: this.element.outerWidth(),
- height: this.element.outerHeight(),
- position: "absolute",
- left: this.elementOffset.left + "px",
- top: this.elementOffset.top + "px",
- zIndex: ++e.zIndex
- }), this.helper.appendTo("body").disableSelection()) : this.helper = this.element
- },
- _change: {
- e: function (t, e) {
- return {
- width: this.originalSize.width + e
- }
- },
- w: function (t, e) {
- var i = this.originalSize;
- return {
- left: this.originalPosition.left + e,
- width: i.width - e
- }
- },
- n: function (t, e, i) {
- var n = this.originalSize,
- s = this.originalPosition;
- return {
- top: s.top + i,
- height: n.height - i
- }
- },
- s: function (t, e, i) {
- return {
- height: this.originalSize.height + i
- }
- },
- se: function (t, e, i) {
- return S.extend(this._change.s.apply(this, arguments), this._change.e.apply(this, [t, e, i]))
- },
- sw: function (t, e, i) {
- return S.extend(this._change.s.apply(this, arguments), this._change.w.apply(this, [t, e, i]))
- },
- ne: function (t, e, i) {
- return S.extend(this._change.n.apply(this, arguments), this._change.e.apply(this, [t, e, i]))
- },
- nw: function (t, e, i) {
- return S.extend(this._change.n.apply(this, arguments), this._change.w.apply(this, [t, e, i]))
- }
- },
- _propagate: function (t, e) {
- S.ui.plugin.call(this, t, [e, this.ui()]), "resize" !== t && this._trigger(t, e, this.ui())
- },
- plugins: {},
- ui: function () {
- return {
- originalElement: this.originalElement,
- element: this.element,
- helper: this.helper,
- position: this.position,
- size: this.size,
- originalSize: this.originalSize,
- originalPosition: this.originalPosition
- }
- }
- }), S.ui.plugin.add("resizable", "animate", {
- stop: function (e) {
- var i = S(this).resizable("instance"),
- t = i.options,
- n = i._proportionallyResizeElements,
- s = n.length && /textarea/i.test(n[0].nodeName),
- o = s && i._hasScroll(n[0], "left") ? 0 : i.sizeDiff.height,
- r = s ? 0 : i.sizeDiff.width,
- a = {
- width: i.size.width - r,
- height: i.size.height - o
- },
- l = parseFloat(i.element.css("left")) + (i.position.left - i.originalPosition.left) || null,
- c = parseFloat(i.element.css("top")) + (i.position.top - i.originalPosition.top) || null;
- i.element.animate(S.extend(a, c && l ? {
- top: c,
- left: l
- } : {}), {
- duration: t.animateDuration,
- easing: t.animateEasing,
- step: function () {
- var t = {
- width: parseFloat(i.element.css("width")),
- height: parseFloat(i.element.css("height")),
- top: parseFloat(i.element.css("top")),
- left: parseFloat(i.element.css("left"))
- };
- n && n.length && S(n[0]).css({
- width: t.width,
- height: t.height
- }), i._updateCache(t), i._propagate("resize", e)
- }
- })
- }
- }), S.ui.plugin.add("resizable", "containment", {
- start: function () {
- var i, n, t, e, s, o, r, a = S(this).resizable("instance"),
- l = a.options,
- c = a.element,
- u = l.containment,
- h = u instanceof S ? u.get(0) : /parent/.test(u) ? c.parent().get(0) : u;
- h && (a.containerElement = S(h), /document/.test(u) || u === document ? (a.containerOffset = {
- left: 0,
- top: 0
- }, a.containerPosition = {
- left: 0,
- top: 0
- }, a.parentData = {
- element: S(document),
- left: 0,
- top: 0,
- width: S(document).width(),
- height: S(document).height() || document.body.parentNode.scrollHeight
- }) : (i = S(h), n = [], S(["Top", "Right", "Left", "Bottom"]).each(function (t, e) {
- n[t] = a._num(i.css("padding" + e))
- }), a.containerOffset = i.offset(), a.containerPosition = i.position(), a.containerSize = {
- height: i.innerHeight() - n[3],
- width: i.innerWidth() - n[1]
- }, 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 = {
- element: h,
- left: t.left,
- top: t.top,
- width: o,
- height: r
- }))
- },
- resize: function (t) {
- var e, i, n, s, o = S(this).resizable("instance"),
- r = o.options,
- a = o.containerOffset,
- l = o.position,
- c = o._aspectRatio || t.shiftKey,
- u = {
- top: 0,
- left: 0
- },
- h = o.containerElement,
- d = !0;
- 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)
- },
- stop: function () {
- var t = S(this).resizable("instance"),
- e = t.options,
- i = t.containerOffset,
- n = t.containerPosition,
- s = t.containerElement,
- o = S(t.helper),
- r = o.offset(),
- a = o.outerWidth() - t.sizeDiff.width,
- l = o.outerHeight() - t.sizeDiff.height;
- t._helper && !e.animate && /relative/.test(s.css("position")) && S(this).css({
- left: r.left - n.left - i.left,
- width: a,
- height: l
- }), t._helper && !e.animate && /static/.test(s.css("position")) && S(this).css({
- left: r.left - n.left - i.left,
- width: a,
- height: l
- })
- }
- }), S.ui.plugin.add("resizable", "alsoResize", {
- start: function () {
- var t = S(this).resizable("instance").options;
- S(t.alsoResize).each(function () {
- var t = S(this);
- t.data("ui-resizable-alsoresize", {
- width: parseFloat(t.width()),
- height: parseFloat(t.height()),
- left: parseFloat(t.css("left")),
- top: parseFloat(t.css("top"))
- })
- })
- },
- resize: function (t, i) {
- var e = S(this).resizable("instance"),
- n = e.options,
- s = e.originalSize,
- o = e.originalPosition,
- r = {
- height: e.size.height - s.height || 0,
- width: e.size.width - s.width || 0,
- top: e.position.top - o.top || 0,
- left: e.position.left - o.left || 0
- };
- S(n.alsoResize).each(function () {
- var t = S(this),
- n = S(this).data("ui-resizable-alsoresize"),
- s = {},
- e = t.parents(i.originalElement[0]).length ? ["width", "height"] : ["width", "height", "top", "left"];
- S.each(e, function (t, e) {
- var i = (n[e] || 0) + (r[e] || 0);
- i && 0 <= i && (s[e] = i || null)
- }), t.css(s)
- })
- },
- stop: function () {
- S(this).removeData("ui-resizable-alsoresize")
- }
- }), S.ui.plugin.add("resizable", "ghost", {
- start: function () {
- var t = S(this).resizable("instance"),
- e = t.size;
- t.ghost = t.originalElement.clone(), t.ghost.css({
- opacity: .25,
- display: "block",
- position: "relative",
- height: e.height,
- width: e.width,
- margin: 0,
- left: 0,
- top: 0
- }), 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)
- },
- resize: function () {
- var t = S(this).resizable("instance");
- t.ghost && t.ghost.css({
- position: "relative",
- height: t.size.height,
- width: t.size.width
- })
- },
- stop: function () {
- var t = S(this).resizable("instance");
- t.ghost && t.helper && t.helper.get(0).removeChild(t.ghost.get(0))
- }
- }), S.ui.plugin.add("resizable", "grid", {
- resize: function () {
- var t, e = S(this).resizable("instance"),
- i = e.options,
- n = e.size,
- s = e.originalSize,
- o = e.originalPosition,
- r = e.axis,
- a = "number" == typeof i.grid ? [i.grid, i.grid] : i.grid,
- l = a[0] || 1,
- c = a[1] || 1,
- u = Math.round((n.width - s.width) / l) * l,
- h = Math.round((n.height - s.height) / c) * c,
- d = s.width + u,
- p = s.height + h,
- f = i.maxWidth && d > i.maxWidth,
- g = i.maxHeight && p > i.maxHeight,
- m = i.minWidth && i.minWidth > d,
- v = i.minHeight && i.minHeight > p;
- 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))
- }
- }), S.ui.resizable, S.widget("ui.dialog", {
- version: "1.12.1",
- options: {
- appendTo: "body",
- autoOpen: !0,
- buttons: [],
- classes: {
- "ui-dialog": "ui-corner-all",
- "ui-dialog-titlebar": "ui-corner-all"
- },
- closeOnEscape: !0,
- closeText: "Close",
- draggable: !0,
- hide: null,
- height: "auto",
- maxHeight: null,
- maxWidth: null,
- minHeight: 150,
- minWidth: 150,
- modal: !1,
- position: {
- my: "center",
- at: "center",
- of: window,
- collision: "fit",
- using: function (t) {
- var e = S(this).css(t).offset().top;
- e < 0 && S(this).css("top", t.top - e)
- }
- },
- resizable: !0,
- show: null,
- title: null,
- width: 300,
- beforeClose: null,
- close: null,
- drag: null,
- dragStart: null,
- dragStop: null,
- focus: null,
- open: null,
- resize: null,
- resizeStart: null,
- resizeStop: null
- },
- sizeRelatedOptions: {
- buttons: !0,
- height: !0,
- maxHeight: !0,
- maxWidth: !0,
- minHeight: !0,
- minWidth: !0,
- width: !0
- },
- resizableRelatedOptions: {
- maxHeight: !0,
- maxWidth: !0,
- minHeight: !0,
- minWidth: !0
- },
- _create: function () {
- this.originalCss = {
- display: this.element[0].style.display,
- width: this.element[0].style.width,
- minHeight: this.element[0].style.minHeight,
- maxHeight: this.element[0].style.maxHeight,
- height: this.element[0].style.height
- }, this.originalPosition = {
- parent: this.element.parent(),
- index: this.element.parent().children().index(this.element)
- }, 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()
- },
- _init: function () {
- this.options.autoOpen && this.open()
- },
- _appendTo: function () {
- var t = this.options.appendTo;
- return t && (t.jquery || t.nodeType) ? S(t) : this.document.find(t || "body").eq(0)
- },
- _destroy: function () {
- var t, e = this.originalPosition;
- 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)
- },
- widget: function () {
- return this.uiDialog
- },
- disable: S.noop,
- enable: S.noop,
- close: function (t) {
- var e = this;
- 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 () {
- e._trigger("close", t)
- }))
- },
- isOpen: function () {
- return this._isOpen
- },
- moveToTop: function () {
- this._moveToTop()
- },
- _moveToTop: function (t, e) {
- var i = !1,
- n = this.uiDialog.siblings(".ui-front:visible").map(function () {
- return +S(this).css("z-index")
- }).get(),
- s = Math.max.apply(null, n);
- return s >= +this.uiDialog.css("z-index") && (this.uiDialog.css("z-index", s + 1), i = !0), i && !e && this._trigger("focus", t), i
- },
- open: function () {
- var t = this;
- 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 () {
- t._focusTabbable(), t._trigger("focus")
- }), this._makeFocusTarget(), void this._trigger("open"))
- },
- _focusTabbable: function () {
- var t = this._focusedElement;
- 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")
- },
- _keepFocus: function (t) {
- function e() {
- var t = S.ui.safeActiveElement(this.document[0]);
- this.uiDialog[0] === t || S.contains(this.uiDialog[0], t) || this._focusTabbable()
- }
- t.preventDefault(), e.call(this), this._delay(e)
- },
- _createWrapper: function () {
- this.uiDialog = S("<div>").hide().attr({
- tabIndex: -1,
- role: "dialog"
- }).appendTo(this._appendTo()), this._addClass(this.uiDialog, "ui-dialog", "ui-widget ui-widget-content ui-front"), this._on(this.uiDialog, {
- keydown: function (t) {
- if (this.options.closeOnEscape && !t.isDefaultPrevented() && t.keyCode && t.keyCode === S.ui.keyCode.ESCAPE) return t.preventDefault(), void this.close(t);
- if (t.keyCode === S.ui.keyCode.TAB && !t.isDefaultPrevented()) {
- var e = this.uiDialog.find(":tabbable"),
- i = e.filter(":first"),
- n = e.filter(":last");
- 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 () {
- n.trigger("focus")
- }), t.preventDefault()) : (this._delay(function () {
- i.trigger("focus")
- }), t.preventDefault())
- }
- },
- mousedown: function (t) {
- this._moveToTop(t) && this._focusTabbable()
- }
- }), this.element.find("[aria-describedby]").length || this.uiDialog.attr({
- "aria-describedby": this.element.uniqueId().attr("id")
- })
- },
- _createTitlebar: function () {
- var t;
- this.uiDialogTitlebar = S("<div>"), this._addClass(this.uiDialogTitlebar, "ui-dialog-titlebar", "ui-widget-header ui-helper-clearfix"), this._on(this.uiDialogTitlebar, {
- mousedown: function (t) {
- S(t.target).closest(".ui-dialog-titlebar-close") || this.uiDialog.trigger("focus")
- }
- }), this.uiDialogTitlebarClose = S("<button type='button'></button>").button({
- label: S("<a>").text(this.options.closeText).html(),
- icon: "ui-icon-closethick",
- showLabel: !1
- }).appendTo(this.uiDialogTitlebar), this._addClass(this.uiDialogTitlebarClose, "ui-dialog-titlebar-close"), this._on(this.uiDialogTitlebarClose, {
- click: function (t) {
- t.preventDefault(), this.close(t)
- }
- }), t = S("<span>").uniqueId().prependTo(this.uiDialogTitlebar), this._addClass(t, "ui-dialog-title"), this._title(t), this.uiDialogTitlebar.prependTo(this.uiDialog), this.uiDialog.attr({
- "aria-labelledby": t.attr("id")
- })
- },
- _title: function (t) {
- this.options.title ? t.text(this.options.title) : t.html(" ")
- },
- _createButtonPane: function () {
- 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()
- },
- _createButtons: function () {
- var s = this,
- t = this.options.buttons;
- 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) {
- var i, n;
- e = S.isFunction(e) ? {
- click: e,
- text: t
- } : e, e = S.extend({
- type: "button"
- }, e), i = e.click, n = {
- icon: e.icon,
- iconPosition: e.iconPosition,
- showLabel: e.showLabel,
- icons: e.icons,
- text: e.text
- }, 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 () {
- i.apply(s.element[0], arguments)
- })
- }), this._addClass(this.uiDialog, "ui-dialog-buttons"), void this.uiDialogButtonPane.appendTo(this.uiDialog))
- },
- _makeDraggable: function () {
- function s(t) {
- return {
- position: t.position,
- offset: t.offset
- }
- }
- var o = this,
- r = this.options;
- this.uiDialog.draggable({
- cancel: ".ui-dialog-content, .ui-dialog-titlebar-close",
- handle: ".ui-dialog-titlebar",
- containment: "document",
- start: function (t, e) {
- o._addClass(S(this), "ui-dialog-dragging"), o._blockFrames(), o._trigger("dragStart", t, s(e))
- },
- drag: function (t, e) {
- o._trigger("drag", t, s(e))
- },
- stop: function (t, e) {
- var i = e.offset.left - o.document.scrollLeft(),
- n = e.offset.top - o.document.scrollTop();
- r.position = {
- my: "left top",
- at: "left" + (0 <= i ? "+" : "") + i + " top" + (0 <= n ? "+" : "") + n,
- of: o.window
- }, o._removeClass(S(this), "ui-dialog-dragging"), o._unblockFrames(), o._trigger("dragStop", t, s(e))
- }
- })
- },
- _makeResizable: function () {
- function o(t) {
- return {
- originalPosition: t.originalPosition,
- originalSize: t.originalSize,
- position: t.position,
- size: t.size
- }
- }
- var r = this,
- a = this.options,
- t = a.resizable,
- e = this.uiDialog.css("position"),
- i = "string" == typeof t ? t : "n,e,s,w,se,sw,ne,nw";
- this.uiDialog.resizable({
- cancel: ".ui-dialog-content",
- containment: "document",
- alsoResize: this.element,
- maxWidth: a.maxWidth,
- maxHeight: a.maxHeight,
- minWidth: a.minWidth,
- minHeight: this._minHeight(),
- handles: i,
- start: function (t, e) {
- r._addClass(S(this), "ui-dialog-resizing"), r._blockFrames(), r._trigger("resizeStart", t, o(e))
- },
- resize: function (t, e) {
- r._trigger("resize", t, o(e))
- },
- stop: function (t, e) {
- var i = r.uiDialog.offset(),
- n = i.left - r.document.scrollLeft(),
- s = i.top - r.document.scrollTop();
- a.height = r.uiDialog.height(), a.width = r.uiDialog.width(), a.position = {
- my: "left top",
- at: "left" + (0 <= n ? "+" : "") + n + " top" + (0 <= s ? "+" : "") + s,
- of: r.window
- }, r._removeClass(S(this), "ui-dialog-resizing"), r._unblockFrames(), r._trigger("resizeStop", t, o(e))
- }
- }).css("position", e)
- },
- _trackFocus: function () {
- this._on(this.widget(), {
- focusin: function (t) {
- this._makeFocusTarget(), this._focusedElement = S(t.target)
- }
- })
- },
- _makeFocusTarget: function () {
- this._untrackInstance(), this._trackingInstances().unshift(this)
- },
- _untrackInstance: function () {
- var t = this._trackingInstances(),
- e = S.inArray(this, t); - 1 !== e && t.splice(e, 1)
- },
- _trackingInstances: function () {
- var t = this.document.data("ui-dialog-instances");
- return t || (t = [], this.document.data("ui-dialog-instances", t)), t
- },
- _minHeight: function () {
- var t = this.options;
- return "auto" === t.height ? t.minHeight : Math.min(t.minHeight, t.height)
- },
- _position: function () {
- var t = this.uiDialog.is(":visible");
- t || this.uiDialog.show(), this.uiDialog.position(this.options.position), t || this.uiDialog.hide()
- },
- _setOptions: function (t) {
- var i = this,
- n = !1,
- s = {};
- S.each(t, function (t, e) {
- i._setOption(t, e), t in i.sizeRelatedOptions && (n = !0), t in i.resizableRelatedOptions && (s[t] = e)
- }), n && (this._size(), this._position()), this.uiDialog.is(":data(ui-resizable)") && this.uiDialog.resizable("option", s)
- },
- _setOption: function (t, e) {
- var i, n, s = this.uiDialog;
- "disabled" !== t && (this._super(t, e), "appendTo" === t && this.uiDialog.appendTo(this._appendTo()), "buttons" === t && this._createButtons(), "closeText" === t && this.uiDialogTitlebarClose.button({
- label: S("<a>").text("" + this.options.closeText).html()
- }), "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")))
- },
- _size: function () {
- var t, e, i, n = this.options;
- this.element.show().css({
- width: "auto",
- minHeight: 0,
- maxHeight: "none",
- height: 0
- }), n.minWidth > n.width && (n.width = n.minWidth), t = this.uiDialog.css({
- height: "auto",
- width: n.width
- }).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({
- minHeight: e,
- maxHeight: i,
- height: "auto"
- }) : this.element.height(Math.max(0, n.height - t)), this.uiDialog.is(":data(ui-resizable)") && this.uiDialog.resizable("option", "minHeight", this._minHeight())
- },
- _blockFrames: function () {
- this.iframeBlocks = this.document.find("iframe").map(function () {
- var t = S(this);
- return S("<div>").css({
- position: "absolute",
- width: t.outerWidth(),
- height: t.outerHeight()
- }).appendTo(t.parent()).offset(t.offset())[0]
- })
- },
- _unblockFrames: function () {
- this.iframeBlocks && (this.iframeBlocks.remove(), delete this.iframeBlocks)
- },
- _allowInteraction: function (t) {
- return !!S(t.target).closest(".ui-dialog").length || !!S(t.target).closest(".ui-datepicker").length
- },
- _createOverlay: function () {
- if (this.options.modal) {
- var e = !0;
- this._delay(function () {
- e = !1
- }), this.document.data("ui-dialog-overlays") || this._on(this.document, {
- focusin: function (t) {
- e || this._allowInteraction(t) || (t.preventDefault(), this._trackingInstances()[0]._focusTabbable())
- }
- }), this.overlay = S("<div>").appendTo(this._appendTo()), this._addClass(this.overlay, null, "ui-widget-overlay ui-front"), this._on(this.overlay, {
- mousedown: "_keepFocus"
- }), this.document.data("ui-dialog-overlays", (this.document.data("ui-dialog-overlays") || 0) + 1)
- }
- },
- _destroyOverlay: function () {
- if (this.options.modal && this.overlay) {
- var t = this.document.data("ui-dialog-overlays") - 1;
- 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
- }
- }
- }), !1 !== S.uiBackCompat && S.widget("ui.dialog", S.ui.dialog, {
- options: {
- dialogClass: ""
- },
- _createWrapper: function () {
- this._super(), this.uiDialog.addClass(this.options.dialogClass)
- },
- _setOption: function (t, e) {
- "dialogClass" === t && this.uiDialog.removeClass(this.options.dialogClass).addClass(e), this._superApply(arguments)
- }
- }), S.ui.dialog, S.widget("ui.droppable", {
- version: "1.12.1",
- widgetEventPrefix: "drop",
- options: {
- accept: "*",
- addClasses: !0,
- greedy: !1,
- scope: "default",
- tolerance: "intersect",
- activate: null,
- deactivate: null,
- drop: null,
- out: null,
- over: null
- },
- _create: function () {
- var t, e = this.options,
- i = e.accept;
- this.isover = !1, this.isout = !0, this.accept = S.isFunction(i) ? i : function (t) {
- return t.is(i)
- }, this.proportions = function () {
- return arguments.length ? void(t = arguments[0]) : t || (t = {
- width: this.element[0].offsetWidth,
- height: this.element[0].offsetHeight
- })
- }, this._addToManager(e.scope), e.addClasses && this._addClass("ui-droppable")
- },
- _addToManager: function (t) {
- S.ui.ddmanager.droppables[t] = S.ui.ddmanager.droppables[t] || [], S.ui.ddmanager.droppables[t].push(this)
- },
- _splice: function (t) {
- for (var e = 0; t.length > e; e++) t[e] === this && t.splice(e, 1)
- },
- _destroy: function () {
- var t = S.ui.ddmanager.droppables[this.options.scope];
- this._splice(t)
- },
- _setOption: function (t, e) {
- if ("accept" === t) this.accept = S.isFunction(e) ? e : function (t) {
- return t.is(e)
- };
- else if ("scope" === t) {
- var i = S.ui.ddmanager.droppables[this.options.scope];
- this._splice(i), this._addToManager(e)
- }
- this._super(t, e)
- },
- _activate: function (t) {
- var e = S.ui.ddmanager.current;
- this._addActiveClass(), e && this._trigger("activate", t, this.ui(e))
- },
- _deactivate: function (t) {
- var e = S.ui.ddmanager.current;
- this._removeActiveClass(), e && this._trigger("deactivate", t, this.ui(e))
- },
- _over: function (t) {
- var e = S.ui.ddmanager.current;
- 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)))
- },
- _out: function (t) {
- var e = S.ui.ddmanager.current;
- 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)))
- },
- _drop: function (e, t) {
- var i = t || S.ui.ddmanager.current,
- n = !1;
- return !(!i || (i.currentItem || i.element)[0] === this.element[0]) && (this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function () {
- var t = S(this).droppable("instance");
- 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, {
- offset: t.element.offset()
- }), t.options.tolerance, e) ? !(n = !0) : void 0
- }), !n && (!!this.accept.call(this.element[0], i.currentItem || i.element) && (this._removeActiveClass(), this._removeHoverClass(), this._trigger("drop", e, this.ui(i)), this.element)))
- },
- ui: function (t) {
- return {
- draggable: t.currentItem || t.element,
- helper: t.helper,
- position: t.position,
- offset: t.positionAbs
- }
- },
- _addHoverClass: function () {
- this._addClass("ui-droppable-hover")
- },
- _removeHoverClass: function () {
- this._removeClass("ui-droppable-hover")
- },
- _addActiveClass: function () {
- this._addClass("ui-droppable-active")
- },
- _removeActiveClass: function () {
- this._removeClass("ui-droppable-active")
- }
- });
- var b, w = S.ui.intersect = function () {
- function d(t, e, i) {
- return e <= t && t < e + i
- }
- return function (t, e, i, n) {
- if (!e.offset) return !1;
- var s = (t.positionAbs || t.position.absolute).left + t.margins.left,
- o = (t.positionAbs || t.position.absolute).top + t.margins.top,
- r = s + t.helperProportions.width,
- a = o + t.helperProportions.height,
- l = e.offset.left,
- c = e.offset.top,
- u = l + e.proportions().width,
- h = c + e.proportions().height;
- switch (i) {
- case "fit":
- return l <= s && r <= u && c <= o && a <= h;
- case "intersect":
- 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;
- case "pointer":
- return d(n.pageY, c, e.proportions().height) && d(n.pageX, l, e.proportions().width);
- case "touch":
- 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);
- default:
- return !1
- }
- }
- }();
- !(S.ui.ddmanager = {
- current: null,
- droppables: {
- default: []
- },
- prepareOffsets: function (t, e) {
- var i, n, s = S.ui.ddmanager.droppables[t.options.scope] || [],
- o = e ? e.type : null,
- r = (t.currentItem || t.element).find(":data(ui-droppable)").addBack();
- t: for (i = 0; s.length > i; i++)
- if (!(s[i].options.disabled || t && !s[i].accept.call(s[i].element[0], t.currentItem || t.element))) {
- for (n = 0; r.length > n; n++)
- if (r[n] === s[i].element[0]) {
- s[i].proportions().height = 0;
- continue t
- } 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({
- width: s[i].element[0].offsetWidth,
- height: s[i].element[0].offsetHeight
- }))
- }
- },
- drop: function (t, e) {
- var i = !1;
- return S.each((S.ui.ddmanager.droppables[t.options.scope] || []).slice(), function () {
- 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)))
- }), i
- },
- dragStart: function (t, e) {
- t.element.parentsUntil("body").on("scroll.droppable", function () {
- t.options.refreshPositions || S.ui.ddmanager.prepareOffsets(t, e)
- })
- },
- drag: function (o, r) {
- o.options.refreshPositions && S.ui.ddmanager.prepareOffsets(o, r), S.each(S.ui.ddmanager.droppables[o.options.scope] || [], function () {
- if (!this.options.disabled && !this.greedyChild && this.visible) {
- var t, e, i, n = w(o, this, this.options.tolerance, r),
- s = !n && this.isover ? "isout" : n && !this.isover ? "isover" : null;
- s && (this.options.greedy && (e = this.options.scope, (i = this.element.parents(":data(ui-droppable)").filter(function () {
- return S(this).droppable("instance").options.scope === e
- })).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)))
- }
- })
- },
- dragStop: function (t, e) {
- t.element.parentsUntil("body").off("scroll.droppable"), t.options.refreshPositions || S.ui.ddmanager.prepareOffsets(t, e)
- }
- }) !== S.uiBackCompat && S.widget("ui.droppable", S.ui.droppable, {
- options: {
- hoverClass: !1,
- activeClass: !1
- },
- _addActiveClass: function () {
- this._super(), this.options.activeClass && this.element.addClass(this.options.activeClass)
- },
- _removeActiveClass: function () {
- this._super(), this.options.activeClass && this.element.removeClass(this.options.activeClass)
- },
- _addHoverClass: function () {
- this._super(), this.options.hoverClass && this.element.addClass(this.options.hoverClass)
- },
- _removeHoverClass: function () {
- this._super(), this.options.hoverClass && this.element.removeClass(this.options.hoverClass)
- }
- }), S.ui.droppable, S.widget("ui.progressbar", {
- version: "1.12.1",
- options: {
- classes: {
- "ui-progressbar": "ui-corner-all",
- "ui-progressbar-value": "ui-corner-left",
- "ui-progressbar-complete": "ui-corner-right"
- },
- max: 100,
- value: 0,
- change: null,
- complete: null
- },
- min: 0,
- _create: function () {
- this.oldValue = this.options.value = this._constrainedValue(), this.element.attr({
- role: "progressbar",
- "aria-valuemin": this.min
- }), 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()
- },
- _destroy: function () {
- this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"), this.valueDiv.remove()
- },
- value: function (t) {
- return void 0 === t ? this.options.value : (this.options.value = this._constrainedValue(t), void this._refreshValue())
- },
- _constrainedValue: function (t) {
- 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))
- },
- _setOptions: function (t) {
- var e = t.value;
- delete t.value, this._super(t), this.options.value = this._constrainedValue(e), this._refreshValue()
- },
- _setOption: function (t, e) {
- "max" === t && (e = Math.max(this.min, e)), this._super(t, e)
- },
- _setOptionDisabled: function (t) {
- this._super(t), this.element.attr("aria-disabled", t), this._toggleClass(null, "ui-state-disabled", !!t)
- },
- _percentage: function () {
- return this.indeterminate ? 100 : 100 * (this.options.value - this.min) / (this.options.max - this.min)
- },
- _refreshValue: function () {
- var t = this.options.value,
- e = this._percentage();
- 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({
- "aria-valuemax": this.options.max,
- "aria-valuenow": t
- }), this.overlayDiv && (this.overlayDiv.remove(), this.overlayDiv = null)), this.oldValue !== t && (this.oldValue = t, this._trigger("change")), t === this.options.max && this._trigger("complete")
- }
- }), S.widget("ui.selectable", S.ui.mouse, {
- version: "1.12.1",
- options: {
- appendTo: "body",
- autoRefresh: !0,
- distance: 0,
- filter: "*",
- tolerance: "touch",
- selected: null,
- selecting: null,
- start: null,
- stop: null,
- unselected: null,
- unselecting: null
- },
- _create: function () {
- var n = this;
- this._addClass("ui-selectable"), this.dragged = !1, this.refresh = function () {
- 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 () {
- var t = S(this),
- e = t.offset(),
- i = {
- left: e.left - n.elementPos.left,
- top: e.top - n.elementPos.top
- };
- S.data(this, "selectable-item", {
- element: this,
- $element: t,
- left: i.left,
- top: i.top,
- right: i.left + t.outerWidth(),
- bottom: i.top + t.outerHeight(),
- startselected: !1,
- selected: t.hasClass("ui-selected"),
- selecting: t.hasClass("ui-selecting"),
- unselecting: t.hasClass("ui-unselecting")
- })
- })
- }, this.refresh(), this._mouseInit(), this.helper = S("<div>"), this._addClass(this.helper, "ui-selectable-helper")
- },
- _destroy: function () {
- this.selectees.removeData("selectable-item"), this._mouseDestroy()
- },
- _mouseStart: function (i) {
- var n = this,
- t = this.options;
- 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({
- left: i.pageX,
- top: i.pageY,
- width: 0,
- height: 0
- }), t.autoRefresh && this.refresh(), this.selectees.filter(".ui-selected").each(function () {
- var t = S.data(this, "selectable-item");
- 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, {
- unselecting: t.element
- }))
- }), S(i.target).parents().addBack().each(function () {
- var t, e = S.data(this, "selectable-item");
- 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, {
- selecting: e.element
- }) : n._trigger("unselecting", i, {
- unselecting: e.element
- }), !1) : void 0
- }))
- },
- _mouseDrag: function (n) {
- if (this.dragged = !0, !this.options.disabled) {
- var t, s = this,
- o = this.options,
- r = this.opos[0],
- a = this.opos[1],
- l = n.pageX,
- c = n.pageY;
- return l < r && (t = l, l = r, r = t), c < a && (t = c, c = a, a = t), this.helper.css({
- left: r,
- top: a,
- width: l - r,
- height: c - a
- }), this.selectees.each(function () {
- var t = S.data(this, "selectable-item"),
- e = !1,
- i = {};
- 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, {
- selecting: t.element
- }))) : (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, {
- unselecting: t.element
- }))), 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, {
- unselecting: t.element
- })))))
- }), !1
- }
- },
- _mouseStop: function (e) {
- var i = this;
- return this.dragged = !1, S(".ui-unselecting", this.element[0]).each(function () {
- var t = S.data(this, "selectable-item");
- i._removeClass(t.$element, "ui-unselecting"), t.unselecting = !1, t.startselected = !1, i._trigger("unselected", e, {
- unselected: t.element
- })
- }), S(".ui-selecting", this.element[0]).each(function () {
- var t = S.data(this, "selectable-item");
- i._removeClass(t.$element, "ui-selecting")._addClass(t.$element, "ui-selected"), t.selecting = !1, t.selected = !0, t.startselected = !0, i._trigger("selected", e, {
- selected: t.element
- })
- }), this._trigger("stop", e), this.helper.remove(), !1
- }
- }), S.widget("ui.selectmenu", [S.ui.formResetMixin, {
- version: "1.12.1",
- defaultElement: "<select>",
- options: {
- appendTo: null,
- classes: {
- "ui-selectmenu-button-open": "ui-corner-top",
- "ui-selectmenu-button-closed": "ui-corner-all"
- },
- disabled: null,
- icons: {
- button: "ui-icon-triangle-1-s"
- },
- position: {
- my: "left top",
- at: "left bottom",
- collision: "none"
- },
- width: !1,
- change: null,
- close: null,
- focus: null,
- open: null,
- select: null
- },
- _create: function () {
- var t = this.element.uniqueId().attr("id");
- this.ids = {
- element: t,
- button: t + "-button",
- menu: t + "-menu"
- }, this._drawButton(), this._drawMenu(), this._bindFormResetHandler(), this._rendered = !1, this.menuItems = S()
- },
- _drawButton: function () {
- var t, e = this,
- i = this._parseOption(this.element.find("option:selected"), this.element[0].selectedIndex);
- this.labels = this.element.labels().attr("for", this.ids.button), this._on(this.labels, {
- click: function (t) {
- this.button.focus(), t.preventDefault()
- }
- }), this.element.hide(), this.button = S("<span>", {
- tabindex: this.options.disabled ? -1 : 0,
- id: this.ids.button,
- role: "combobox",
- "aria-expanded": "false",
- "aria-autocomplete": "list",
- "aria-owns": this.ids.menu,
- "aria-haspopup": "true",
- title: this.element.attr("title")
- }).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 () {
- e._rendered || e._refreshMenu()
- })
- },
- _drawMenu: function () {
- var n = this;
- this.menu = S("<ul>", {
- "aria-hidden": "true",
- "aria-labelledby": this.ids.button,
- id: this.ids.menu
- }), 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({
- classes: {
- "ui-menu": "ui-corner-bottom"
- },
- role: "listbox",
- select: function (t, e) {
- t.preventDefault(), n._setSelection(), n._select(e.item.data("ui-selectmenu-item"), t)
- },
- focus: function (t, e) {
- var i = e.item.data("ui-selectmenu-item");
- null != n.focusIndex && i.index !== n.focusIndex && (n._trigger("focus", t, {
- item: i
- }), n.isOpen || n._select(i, t)), n.focusIndex = i.index, n.button.attr("aria-activedescendant", n.menuItems.eq(i.index).attr("id"))
- }
- }).menu("instance"), this.menuInstance._off(this.menu, "mouseleave"), this.menuInstance._closeOnDocumentClick = function () {
- return !1
- }, this.menuInstance._isDivider = function () {
- return !1
- }
- },
- refresh: function () {
- this._refreshMenu(), this.buttonItem.replaceWith(this.buttonItem = this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item") || {})), null === this.options.width && this._resizeButton()
- },
- _refreshMenu: function () {
- var t, e = this.element.find("option");
- 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")))
- },
- open: function (t) {
- 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)))
- },
- _position: function () {
- this.menuWrap.position(S.extend({
- of: this.button
- }, this.options.position))
- },
- close: function (t) {
- this.isOpen && (this.isOpen = !1, this._toggleAttr(), this.range = null, this._off(this.document), this._trigger("close", t))
- },
- widget: function () {
- return this.button
- },
- menuWidget: function () {
- return this.menu
- },
- _renderButtonItem: function (t) {
- var e = S("<span>");
- return this._setText(e, t.label), this._addClass(e, "ui-selectmenu-text"), e
- },
- _renderMenu: function (n, t) {
- var s = this,
- o = "";
- S.each(t, function (t, e) {
- var i;
- e.optgroup !== o && (i = S("<li>", {
- text: e.optgroup
- }), 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)
- })
- },
- _renderItemData: function (t, e) {
- return this._renderItem(t, e).data("ui-selectmenu-item", e)
- },
- _renderItem: function (t, e) {
- var i = S("<li>"),
- n = S("<div>", {
- title: e.element.attr("title")
- });
- return e.disabled && this._addClass(i, null, "ui-state-disabled"), this._setText(n, e.label), i.append(n).appendTo(t)
- },
- _setText: function (t, e) {
- e ? t.text(e) : t.html(" ")
- },
- _move: function (t, e) {
- var i, n, s = ".ui-menu-item";
- 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)
- },
- _getSelectedItem: function () {
- return this.menuItems.eq(this.element[0].selectedIndex).parent("li")
- },
- _toggle: function (t) {
- this[this.isOpen ? "close" : "open"](t)
- },
- _setSelection: function () {
- var t;
- this.range && (window.getSelection ? ((t = window.getSelection()).removeAllRanges(), t.addRange(this.range)) : this.range.select(), this.button.focus())
- },
- _documentClick: {
- mousedown: function (t) {
- this.isOpen && (S(t.target).closest(".ui-selectmenu-menu, #" + S.ui.escapeSelector(this.ids.button)).length || this.close(t))
- }
- },
- _buttonEvents: {
- mousedown: function () {
- var t;
- window.getSelection ? (t = window.getSelection()).rangeCount && (this.range = t.getRangeAt(0)) : this.range = document.selection.createRange()
- },
- click: function (t) {
- this._setSelection(), this._toggle(t)
- },
- keydown: function (t) {
- var e = !0;
- switch (t.keyCode) {
- case S.ui.keyCode.TAB:
- case S.ui.keyCode.ESCAPE:
- this.close(t), e = !1;
- break;
- case S.ui.keyCode.ENTER:
- this.isOpen && this._selectFocusedItem(t);
- break;
- case S.ui.keyCode.UP:
- t.altKey ? this._toggle(t) : this._move("prev", t);
- break;
- case S.ui.keyCode.DOWN:
- t.altKey ? this._toggle(t) : this._move("next", t);
- break;
- case S.ui.keyCode.SPACE:
- this.isOpen ? this._selectFocusedItem(t) : this._toggle(t);
- break;
- case S.ui.keyCode.LEFT:
- this._move("prev", t);
- break;
- case S.ui.keyCode.RIGHT:
- this._move("next", t);
- break;
- case S.ui.keyCode.HOME:
- case S.ui.keyCode.PAGE_UP:
- this._move("first", t);
- break;
- case S.ui.keyCode.END:
- case S.ui.keyCode.PAGE_DOWN:
- this._move("last", t);
- break;
- default:
- this.menu.trigger(t), e = !1
- }
- e && t.preventDefault()
- }
- },
- _selectFocusedItem: function (t) {
- var e = this.menuItems.eq(this.focusIndex).parent("li");
- e.hasClass("ui-state-disabled") || this._select(e.data("ui-selectmenu-item"), t)
- },
- _select: function (t, e) {
- var i = this.element[0].selectedIndex;
- this.element[0].selectedIndex = t.index, this.buttonItem.replaceWith(this.buttonItem = this._renderButtonItem(t)), this._setAria(t), this._trigger("select", e, {
- item: t
- }), t.index !== i && this._trigger("change", e, {
- item: t
- }), this.close(e)
- },
- _setAria: function (t) {
- var e = this.menuItems.eq(t.index).attr("id");
- this.button.attr({
- "aria-labelledby": e,
- "aria-activedescendant": e
- }), this.menu.attr("aria-activedescendant", e)
- },
- _setOption: function (t, e) {
- if ("icons" === t) {
- var i = this.button.find("span.ui-icon");
- this._removeClass(i, null, this.options.icons.button)._addClass(i, null, e.button)
- }
- this._super(t, e), "appendTo" === t && this.menuWrap.appendTo(this._appendTo()), "width" === t && this._resizeButton()
- },
- _setOptionDisabled: function (t) {
- 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)
- },
- _appendTo: function () {
- var t = this.options.appendTo;
- 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
- },
- _toggleAttr: function () {
- 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)
- },
- _resizeButton: function () {
- var t = this.options.width;
- return !1 === t ? void this.button.css("width", "") : (null === t && (t = this.element.show().outerWidth(), this.element.hide()), void this.button.outerWidth(t))
- },
- _resizeMenu: function () {
- this.menu.outerWidth(Math.max(this.button.outerWidth(), this.menu.width("").outerWidth() + 1))
- },
- _getCreateOptions: function () {
- var t = this._super();
- return t.disabled = this.element.prop("disabled"), t
- },
- _parseOptions: function (t) {
- var i = this,
- n = [];
- t.each(function (t, e) {
- n.push(i._parseOption(S(e), t))
- }), this.items = n
- },
- _parseOption: function (t, e) {
- var i = t.parent("optgroup");
- return {
- element: t,
- index: e,
- value: t.val(),
- label: t.text(),
- optgroup: i.attr("label") || "",
- disabled: i.prop("disabled") || t.prop("disabled")
- }
- },
- _destroy: function () {
- this._unbindFormResetHandler(), this.menuWrap.remove(), this.button.remove(), this.element.show(), this.element.removeUniqueId(), this.labels.attr("for", this.ids.element)
- }
- }]), S.widget("ui.slider", S.ui.mouse, {
- version: "1.12.1",
- widgetEventPrefix: "slide",
- options: {
- animate: !1,
- classes: {
- "ui-slider": "ui-corner-all",
- "ui-slider-handle": "ui-corner-all",
- "ui-slider-range": "ui-corner-all ui-widget-header"
- },
- distance: 0,
- max: 100,
- min: 0,
- orientation: "horizontal",
- range: !1,
- step: 1,
- value: 0,
- values: null,
- change: null,
- slide: null,
- start: null,
- stop: null
- },
- numPages: 5,
- _create: function () {
- 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
- },
- _refresh: function () {
- this._createRange(), this._createHandles(), this._setupEvents(), this._refreshValue()
- },
- _createHandles: function () {
- var t, e, i = this.options,
- n = this.element.find(".ui-slider-handle"),
- s = [];
- 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>");
- 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) {
- S(this).data("ui-slider-handle-index", t).attr("tabIndex", 0)
- })
- },
- _createRange: function () {
- var t = this.options;
- 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({
- left: "",
- bottom: ""
- })) : (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)
- },
- _setupEvents: function () {
- this._off(this.handles), this._on(this.handles, this._handleEvents), this._hoverable(this.handles), this._focusable(this.handles)
- },
- _destroy: function () {
- this.handles.remove(), this.range && this.range.remove(), this._mouseDestroy()
- },
- _mouseCapture: function (t) {
- var e, i, n, s, o, r, a, l = this,
- c = this.options;
- return !c.disabled && (this.elementSize = {
- width: this.element.outerWidth(),
- height: this.element.outerHeight()
- }, this.elementOffset = this.element.offset(), e = {
- x: t.pageX,
- y: t.pageY
- }, i = this._normValueFromMouse(e), n = this._valueMax() - this._valueMin() + 1, this.handles.each(function (t) {
- var e = Math.abs(i - l.values(t));
- (e < n || n === e && (t === l._lastChangedValue || l.values(t) === c.min)) && (n = e, s = S(this), o = t)
- }), !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 ? {
- left: 0,
- top: 0
- } : {
- left: t.pageX - r.left - s.width() / 2,
- 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)
- }, this.handles.hasClass("ui-state-hover") || this._slide(t, o, i), this._animateOff = !0))
- },
- _mouseStart: function () {
- return !0
- },
- _mouseDrag: function (t) {
- var e = {
- x: t.pageX,
- y: t.pageY
- },
- i = this._normValueFromMouse(e);
- return this._slide(t, this._handleIndex, i), !1
- },
- _mouseStop: function (t) {
- 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
- },
- _detectOrientation: function () {
- this.orientation = "vertical" === this.options.orientation ? "vertical" : "horizontal"
- },
- _normValueFromMouse: function (t) {
- var e, i, n, s;
- 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)
- },
- _uiHash: function (t, e, i) {
- var n = {
- handle: this.handles[t],
- handleIndex: t,
- value: void 0 !== e ? e : this.value()
- };
- return this._hasMultipleValues() && (n.value = void 0 !== e ? e : this.values(t), n.values = i || this.values()), n
- },
- _hasMultipleValues: function () {
- return this.options.values && this.options.values.length
- },
- _start: function (t, e) {
- return this._trigger("start", t, this._uiHash(e))
- },
- _slide: function (t, e, i) {
- var n, s = this.value(),
- o = this.values();
- 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)))
- },
- _stop: function (t, e) {
- this._trigger("stop", t, this._uiHash(e))
- },
- _change: function (t, e) {
- this._keySliding || this._mouseSliding || (this._lastChangedValue = e, this._trigger("change", t, this._uiHash(e)))
- },
- value: function (t) {
- return arguments.length ? (this.options.value = this._trimAlignValue(t), this._refreshValue(), void this._change(null, 0)) : this._value()
- },
- values: function (t, e) {
- var i, n, s;
- if (1 < arguments.length) return this.options.values[t] = this._trimAlignValue(e), this._refreshValue(), void this._change(null, t);
- if (!arguments.length) return this._values();
- if (!S.isArray(t)) return this._hasMultipleValues() ? this._values(t) : this.value();
- for (i = this.options.values, n = t, s = 0; i.length > s; s += 1) i[s] = this._trimAlignValue(n[s]), this._change(null, s);
- this._refreshValue()
- },
- _setOption: function (t, e) {
- var i, n = 0;
- 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) {
- case "orientation":
- 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", "");
- break;
- case "value":
- this._animateOff = !0, this._refreshValue(), this._change(null, 0), this._animateOff = !1;
- break;
- case "values":
- for (this._animateOff = !0, this._refreshValue(), i = n - 1; 0 <= i; i--) this._change(null, i);
- this._animateOff = !1;
- break;
- case "step":
- case "min":
- case "max":
- this._animateOff = !0, this._calculateNewMax(), this._refreshValue(), this._animateOff = !1;
- break;
- case "range":
- this._animateOff = !0, this._refresh(), this._animateOff = !1
- }
- },
- _setOptionDisabled: function (t) {
- this._super(t), this._toggleClass(null, "ui-state-disabled", !!t)
- },
- _value: function () {
- var t = this.options.value;
- return this._trimAlignValue(t)
- },
- _values: function (t) {
- var e, i, n;
- if (arguments.length) return e = this.options.values[t], this._trimAlignValue(e);
- if (this._hasMultipleValues()) {
- for (i = this.options.values.slice(), n = 0; i.length > n; n += 1) i[n] = this._trimAlignValue(i[n]);
- return i
- }
- return []
- },
- _trimAlignValue: function (t) {
- if (this._valueMin() >= t) return this._valueMin();
- if (t >= this._valueMax()) return this._valueMax();
- var e = 0 < this.options.step ? this.options.step : 1,
- i = (t - this._valueMin()) % e,
- n = t - i;
- return 2 * Math.abs(i) >= e && (n += 0 < i ? e : -e), parseFloat(n.toFixed(5))
- },
- _calculateNewMax: function () {
- var t = this.options.max,
- e = this._valueMin(),
- i = this.options.step;
- (t = Math.round((t - e) / i) * i + e) > this.options.max && (t -= i), this.max = parseFloat(t.toFixed(this._precision()))
- },
- _precision: function () {
- var t = this._precisionOf(this.options.step);
- return null !== this.options.min && (t = Math.max(t, this._precisionOf(this.options.min))), t
- },
- _precisionOf: function (t) {
- var e = "" + t,
- i = e.indexOf(".");
- return -1 === i ? 0 : e.length - i - 1
- },
- _valueMin: function () {
- return this.options.min
- },
- _valueMax: function () {
- return this.max
- },
- _refreshRange: function (t) {
- "vertical" === t && this.range.css({
- width: "",
- left: ""
- }), "horizontal" === t && this.range.css({
- height: "",
- bottom: ""
- })
- },
- _refreshValue: function () {
- var e, i, t, n, s, o = this.options.range,
- r = this.options,
- a = this,
- l = !this._animateOff && r.animate,
- c = {};
- this._hasMultipleValues() ? this.handles.each(function (t) {
- 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"]({
- left: i + "%"
- }, r.animate), 1 === t && a.range[l ? "animate" : "css"]({
- width: i - e + "%"
- }, {
- queue: !1,
- duration: r.animate
- })) : (0 === t && a.range.stop(1, 1)[l ? "animate" : "css"]({
- bottom: i + "%"
- }, r.animate), 1 === t && a.range[l ? "animate" : "css"]({
- height: i - e + "%"
- }, {
- queue: !1,
- duration: r.animate
- }))), e = i
- }) : (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"]({
- width: i + "%"
- }, r.animate), "max" === o && "horizontal" === this.orientation && this.range.stop(1, 1)[l ? "animate" : "css"]({
- width: 100 - i + "%"
- }, r.animate), "min" === o && "vertical" === this.orientation && this.range.stop(1, 1)[l ? "animate" : "css"]({
- height: i + "%"
- }, r.animate), "max" === o && "vertical" === this.orientation && this.range.stop(1, 1)[l ? "animate" : "css"]({
- height: 100 - i + "%"
- }, r.animate))
- },
- _handleEvents: {
- keydown: function (t) {
- var e, i, n, s = S(t.target).data("ui-slider-handle-index");
- switch (t.keyCode) {
- case S.ui.keyCode.HOME:
- case S.ui.keyCode.END:
- case S.ui.keyCode.PAGE_UP:
- case S.ui.keyCode.PAGE_DOWN:
- case S.ui.keyCode.UP:
- case S.ui.keyCode.RIGHT:
- case S.ui.keyCode.DOWN:
- case S.ui.keyCode.LEFT:
- if (t.preventDefault(), !this._keySliding && (this._keySliding = !0, this._addClass(S(t.target), null, "ui-state-active"), !1 === this._start(t, s))) return
- }
- switch (n = this.options.step, e = i = this._hasMultipleValues() ? this.values(s) : this.value(), t.keyCode) {
- case S.ui.keyCode.HOME:
- i = this._valueMin();
- break;
- case S.ui.keyCode.END:
- i = this._valueMax();
- break;
- case S.ui.keyCode.PAGE_UP:
- i = this._trimAlignValue(e + (this._valueMax() - this._valueMin()) / this.numPages);
- break;
- case S.ui.keyCode.PAGE_DOWN:
- i = this._trimAlignValue(e - (this._valueMax() - this._valueMin()) / this.numPages);
- break;
- case S.ui.keyCode.UP:
- case S.ui.keyCode.RIGHT:
- if (e === this._valueMax()) return;
- i = this._trimAlignValue(e + n);
- break;
- case S.ui.keyCode.DOWN:
- case S.ui.keyCode.LEFT:
- if (e === this._valueMin()) return;
- i = this._trimAlignValue(e - n)
- }
- this._slide(t, s, i)
- },
- keyup: function (t) {
- var e = S(t.target).data("ui-slider-handle-index");
- this._keySliding && (this._keySliding = !1, this._stop(t, e), this._change(t, e), this._removeClass(S(t.target), null, "ui-state-active"))
- }
- }
- }), S.widget("ui.sortable", S.ui.mouse, {
- version: "1.12.1",
- widgetEventPrefix: "sort",
- ready: !1,
- options: {
- appendTo: "parent",
- axis: !1,
- connectWith: !1,
- containment: !1,
- cursor: "auto",
- cursorAt: !1,
- dropOnEmpty: !0,
- forcePlaceholderSize: !1,
- forceHelperSize: !1,
- grid: !1,
- handle: !1,
- helper: "original",
- items: "> *",
- opacity: !1,
- placeholder: !1,
- revert: !1,
- scroll: !0,
- scrollSensitivity: 20,
- scrollSpeed: 20,
- scope: "default",
- tolerance: "intersect",
- zIndex: 1e3,
- activate: null,
- beforeStop: null,
- change: null,
- deactivate: null,
- out: null,
- over: null,
- receive: null,
- remove: null,
- sort: null,
- start: null,
- stop: null,
- update: null
- },
- _isOverAxis: function (t, e, i) {
- return e <= t && t < e + i
- },
- _isFloating: function (t) {
- return /left|right/.test(t.css("float")) || /inline|table-cell/.test(t.css("display"))
- },
- _create: function () {
- this.containerCache = {}, this._addClass("ui-sortable"), this.refresh(), this.offset = this.element.offset(), this._mouseInit(), this._setHandleClassName(), this.ready = !0
- },
- _setOption: function (t, e) {
- this._super(t, e), "handle" === t && this._setHandleClassName()
- },
- _setHandleClassName: function () {
- var t = this;
- this._removeClass(this.element.find(".ui-sortable-handle"), "ui-sortable-handle"), S.each(this.items, function () {
- t._addClass(this.instance.options.handle ? this.item.find(this.instance.options.handle) : this.item, "ui-sortable-handle")
- })
- },
- _destroy: function () {
- this._mouseDestroy();
- for (var t = this.items.length - 1; 0 <= t; t--) this.items[t].item.removeData(this.widgetName + "-item");
- return this
- },
- _mouseCapture: function (t, e) {
- var i = null,
- n = !1,
- s = this;
- return !this.reverting && (!this.options.disabled && "static" !== this.options.type && (this._refreshItems(t), S(t.target).parents().each(function () {
- return S.data(this, s.widgetName + "-item") === s ? (i = S(this), !1) : void 0
- }), 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 () {
- this === t.target && (n = !0)
- }), !n)) && (this.currentItem = i, this._removeCurrentsFromItems(), !0))))
- },
- _mouseStart: function (t, e, i) {
- var n, s, o = this.options;
- 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 = {
- top: this.offset.top - this.margins.top,
- left: this.offset.left - this.margins.left
- }, S.extend(this.offset, {
- click: {
- left: t.pageX - this.offset.left,
- top: t.pageY - this.offset.top
- },
- parent: this._getParentOffset(),
- relative: this._getRelativeOffset()
- }), 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 = {
- prev: this.currentItem.prev()[0],
- parent: this.currentItem.parent()[0]
- }, 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)
- for (n = this.containers.length - 1; 0 <= n; n--) this.containers[n]._trigger("activate", t, this._uiHash(this));
- 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
- },
- _mouseDrag: function (t) {
- var e, i, n, s, o = this.options,
- r = !1;
- 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--)
- 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))) {
- if (this.direction = 1 === s ? "down" : "up", "pointer" !== this.options.tolerance && !this._intersectsWithSides(i)) break;
- this._rearrange(t, i), this._trigger("change", t, this._uiHash());
- break
- } return this._contactContainers(t), S.ui.ddmanager && S.ui.ddmanager.drag(this, t), this._trigger("sort", t, this._uiHash()), this.lastPositionAbs = this.positionAbs, !1
- },
- _mouseStop: function (t, e) {
- if (t) {
- if (S.ui.ddmanager && !this.options.dropBehaviour && S.ui.ddmanager.drop(this, t), this.options.revert) {
- var i = this,
- n = this.placeholder.offset(),
- s = this.options.axis,
- o = {};
- 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 () {
- i._clear(t)
- })
- } else this._clear(t, e);
- return !1
- }
- },
- cancel: function () {
- if (this.dragging) {
- this._mouseUp(new S.Event("mouseup", {
- target: null
- })), "original" === this.options.helper ? (this.currentItem.css(this._storedCSS), this._removeClass(this.currentItem, "ui-sortable-helper")) : this.currentItem.show();
- 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)
- }
- 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, {
- helper: null,
- dragging: !1,
- reverting: !1,
- _noFinalSort: null
- }), this.domPosition.prev ? S(this.domPosition.prev).after(this.currentItem) : S(this.domPosition.parent).prepend(this.currentItem)), this
- },
- serialize: function (e) {
- var t = this._getItemsAsjQuery(e && e.connected),
- i = [];
- return e = e || {}, S(t).each(function () {
- var t = (S(e.item || this).attr(e.attribute || "id") || "").match(e.expression || /(.+)[\-=_](.+)/);
- t && i.push((e.key || t[1] + "[]") + "=" + (e.key && e.expression ? t[1] : t[2]))
- }), !i.length && e.key && i.push(e.key + "="), i.join("&")
- },
- toArray: function (t) {
- var e = this._getItemsAsjQuery(t && t.connected),
- i = [];
- return t = t || {}, e.each(function () {
- i.push(S(t.item || this).attr(t.attribute || "id") || "")
- }), i
- },
- _intersectsWith: function (t) {
- var e = this.positionAbs.left,
- i = e + this.helperProportions.width,
- n = this.positionAbs.top,
- s = n + this.helperProportions.height,
- o = t.left,
- r = o + t.width,
- a = t.top,
- l = a + t.height,
- c = this.offset.click.top,
- u = this.offset.click.left,
- h = "x" === this.options.axis || a < n + c && n + c < l,
- d = "y" === this.options.axis || o < e + u && e + u < r,
- p = h && d;
- 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
- },
- _intersectsWithPointer: function (t) {
- var e, i, n = "x" === this.options.axis || this._isOverAxis(this.positionAbs.top + this.offset.click.top, t.top, t.height),
- s = "y" === this.options.axis || this._isOverAxis(this.positionAbs.left + this.offset.click.left, t.left, t.width);
- return !!(n && s) && (e = this._getDragVerticalDirection(), i = this._getDragHorizontalDirection(), this.floating ? "right" === i || "down" === e ? 2 : 1 : e && ("down" === e ? 2 : 1))
- },
- _intersectsWithSides: function (t) {
- var e = this._isOverAxis(this.positionAbs.top + this.offset.click.top, t.top + t.height / 2, t.height),
- i = this._isOverAxis(this.positionAbs.left + this.offset.click.left, t.left + t.width / 2, t.width),
- n = this._getDragVerticalDirection(),
- s = this._getDragHorizontalDirection();
- return this.floating && s ? "right" === s && i || "left" === s && !i : n && ("down" === n && e || "up" === n && !e)
- },
- _getDragVerticalDirection: function () {
- var t = this.positionAbs.top - this.lastPositionAbs.top;
- return 0 != t && (0 < t ? "down" : "up")
- },
- _getDragHorizontalDirection: function () {
- var t = this.positionAbs.left - this.lastPositionAbs.left;
- return 0 != t && (0 < t ? "right" : "left")
- },
- refresh: function (t) {
- return this._refreshItems(t), this._setHandleClassName(), this.refreshPositions(), this
- },
- _connectWith: function () {
- var t = this.options;
- return t.connectWith.constructor === String ? [t.connectWith] : t.connectWith
- },
- _getItemsAsjQuery: function (t) {
- function e() {
- r.push(this)
- }
- var i, n, s, o, r = [],
- a = [],
- l = this._connectWith();
- if (l && t)
- for (i = l.length - 1; 0 <= i; i--)
- 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]);
- for (a.push([S.isFunction(this.options.items) ? this.options.items.call(this.element, null, {
- options: this.options,
- item: this.currentItem
- }) : 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);
- return S(r)
- },
- _removeCurrentsFromItems: function () {
- var i = this.currentItem.find(":data(" + this.widgetName + "-item)");
- this.items = S.grep(this.items, function (t) {
- for (var e = 0; i.length > e; e++)
- if (i[e] === t.item[0]) return !1;
- return !0
- })
- },
- _refreshItems: function (t) {
- this.items = [], this.containers = [this];
- var e, i, n, s, o, r, a, l, c = this.items,
- u = [
- [S.isFunction(this.options.items) ? this.options.items.call(this.element[0], t, {
- item: this.currentItem
- }) : S(this.options.items, this.element), this]
- ],
- h = this._connectWith();
- if (h && this.ready)
- for (e = h.length - 1; 0 <= e; e--)
- 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, {
- item: this.currentItem
- }) : S(s.options.items, s.element), s]), this.containers.push(s));
- for (e = u.length - 1; 0 <= e; e--)
- 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({
- item: a,
- instance: o,
- width: 0,
- height: 0,
- left: 0,
- top: 0
- })
- },
- refreshPositions: function (t) {
- var e, i, n, s;
- 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);
- if (this.options.custom && this.options.custom.refreshContainers) this.options.custom.refreshContainers.call(this);
- else
- 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();
- return this
- },
- _createPlaceholder: function (i) {
- var n, s = (i = i || this).options;
- s.placeholder && s.placeholder.constructor !== String || (n = s.placeholder, s.placeholder = {
- element: function () {
- var t = i.currentItem[0].nodeName.toLowerCase(),
- e = S("<" + t + ">", i.document[0]);
- 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
- },
- update: function (t, e) {
- (!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)))
- }
- }), i.placeholder = S(s.placeholder.element.call(i.element, i.currentItem)), i.currentItem.after(i.placeholder), s.placeholder.update(i, i.placeholder)
- },
- _createTrPlaceholder: function (t, e) {
- var i = this;
- t.children().each(function () {
- S("<td> </td>", i.document[0]).attr("colspan", S(this).attr("colspan") || 1).appendTo(e)
- })
- },
- _contactContainers: function (t) {
- var e, i, n, s, o, r, a, l, c, u, h = null,
- d = null;
- for (e = this.containers.length - 1; 0 <= e; e--)
- if (!S.contains(this.currentItem[0], this.containers[e].element[0]))
- if (this._intersectsWith(this.containers[e].containerCache)) {
- if (h && S.contains(this.containers[e].element[0], h.element[0])) continue;
- h = this.containers[e], d = e
- } else this.containers[e].containerCache.over && (this.containers[e]._trigger("out", t, this._uiHash(this)), this.containers[e].containerCache.over = 0);
- if (h)
- 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);
- else {
- 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"));
- if (!s && !this.options.dropOnEmpty) return;
- 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));
- 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
- }
- },
- _createHelper: function (t) {
- var e = this.options,
- i = S.isFunction(e.helper) ? S(e.helper.apply(this.element[0], [t, this.currentItem])) : "clone" === e.helper ? this.currentItem.clone() : this.currentItem;
- 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 = {
- width: this.currentItem[0].style.width,
- height: this.currentItem[0].style.height,
- position: this.currentItem.css("position"),
- top: this.currentItem.css("top"),
- left: this.currentItem.css("left")
- }), (!i[0].style.width || e.forceHelperSize) && i.width(this.currentItem.width()), (!i[0].style.height || e.forceHelperSize) && i.height(this.currentItem.height()), i
- },
- _adjustOffsetFromHelper: function (t) {
- "string" == typeof t && (t = t.split(" ")), S.isArray(t) && (t = {
- left: +t[0],
- top: +t[1] || 0
- }), "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)
- },
- _getParentOffset: function () {
- this.offsetParent = this.helper.offsetParent();
- var t = this.offsetParent.offset();
- 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 = {
- top: 0,
- left: 0
- }), {
- top: t.top + (parseInt(this.offsetParent.css("borderTopWidth"), 10) || 0),
- left: t.left + (parseInt(this.offsetParent.css("borderLeftWidth"), 10) || 0)
- }
- },
- _getRelativeOffset: function () {
- if ("relative" !== this.cssPosition) return {
- top: 0,
- left: 0
- };
- var t = this.currentItem.position();
- return {
- top: t.top - (parseInt(this.helper.css("top"), 10) || 0) + this.scrollParent.scrollTop(),
- left: t.left - (parseInt(this.helper.css("left"), 10) || 0) + this.scrollParent.scrollLeft()
- }
- },
- _cacheMargins: function () {
- this.margins = {
- left: parseInt(this.currentItem.css("marginLeft"), 10) || 0,
- top: parseInt(this.currentItem.css("marginTop"), 10) || 0
- }
- },
- _cacheHelperProportions: function () {
- this.helperProportions = {
- width: this.helper.outerWidth(),
- height: this.helper.outerHeight()
- }
- },
- _setContainment: function () {
- var t, e, i, n = this.options;
- "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])
- },
- _convertPositionTo: function (t, e) {
- e || (e = this.position);
- var i = "absolute" === t ? 1 : -1,
- n = "absolute" !== this.cssPosition || this.scrollParent[0] !== this.document[0] && S.contains(this.scrollParent[0], this.offsetParent[0]) ? this.scrollParent : this.offsetParent,
- s = /(html|body)/i.test(n[0].tagName);
- return {
- top: e.top + this.offset.relative.top * i + this.offset.parent.top * i - ("fixed" === this.cssPosition ? -this.scrollParent.scrollTop() : s ? 0 : n.scrollTop()) * i,
- left: e.left + this.offset.relative.left * i + this.offset.parent.left * i - ("fixed" === this.cssPosition ? -this.scrollParent.scrollLeft() : s ? 0 : n.scrollLeft()) * i
- }
- },
- _generatePosition: function (t) {
- var e, i, n = this.options,
- s = t.pageX,
- o = t.pageY,
- r = "absolute" !== this.cssPosition || this.scrollParent[0] !== this.document[0] && S.contains(this.scrollParent[0], this.offsetParent[0]) ? this.scrollParent : this.offsetParent,
- a = /(html|body)/i.test(r[0].tagName);
- 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)), {
- top: o - this.offset.click.top - this.offset.relative.top - this.offset.parent.top + ("fixed" === this.cssPosition ? -this.scrollParent.scrollTop() : a ? 0 : r.scrollTop()),
- left: s - this.offset.click.left - this.offset.relative.left - this.offset.parent.left + ("fixed" === this.cssPosition ? -this.scrollParent.scrollLeft() : a ? 0 : r.scrollLeft())
- }
- },
- _rearrange: function (t, e, i, n) {
- 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;
- var s = this.counter;
- this._delay(function () {
- s === this.counter && this.refreshPositions(!n)
- })
- },
- _clear: function (t, e) {
- function i(e, i, n) {
- return function (t) {
- n._trigger(e, t, i._uiHash(i))
- }
- }
- this.reverting = !1;
- var n, s = [];
- if (!this._noFinalSort && this.currentItem.parent().length && this.placeholder.before(this.currentItem), this._noFinalSort = null, this.helper[0] === this.currentItem[0]) {
- for (n in this._storedCSS)("auto" === this._storedCSS[n] || "static" === this._storedCSS[n]) && (this._storedCSS[n] = "");
- this.currentItem.css(this._storedCSS), this._removeClass(this.currentItem, "ui-sortable-helper")
- } else this.currentItem.show();
- for (this.fromOutside && !e && s.push(function (t) {
- this._trigger("receive", t, this._uiHash(this.fromOutside))
- }), !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) {
- this._trigger("update", t, this._uiHash())
- }), this !== this.currentContainer && (e || (s.push(function (t) {
- this._trigger("remove", t, this._uiHash())
- }), s.push(function (e) {
- return function (t) {
- e._trigger("receive", t, this._uiHash(this))
- }
- }.call(this, this.currentContainer)), s.push(function (e) {
- return function (t) {
- e._trigger("update", t, this._uiHash(this))
- }
- }.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);
- 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) {
- for (n = 0; s.length > n; n++) s[n].call(this, t);
- this._trigger("stop", t, this._uiHash())
- }
- return this.fromOutside = !1, !this.cancelHelperRemoval
- },
- _trigger: function () {
- !1 === S.Widget.prototype._trigger.apply(this, arguments) && this.cancel()
- },
- _uiHash: function (t) {
- var e = t || this;
- return {
- helper: e.helper,
- placeholder: e.placeholder || S([]),
- position: e.position,
- originalPosition: e.originalPosition,
- offset: e.positionAbs,
- item: e.currentItem,
- sender: t ? t.element : null
- }
- }
- }), S.widget("ui.spinner", {
- version: "1.12.1",
- defaultElement: "<input>",
- widgetEventPrefix: "spin",
- options: {
- classes: {
- "ui-spinner": "ui-corner-all",
- "ui-spinner-down": "ui-corner-br",
- "ui-spinner-up": "ui-corner-tr"
- },
- culture: null,
- icons: {
- down: "ui-icon-triangle-1-s",
- up: "ui-icon-triangle-1-n"
- },
- incremental: !0,
- max: null,
- min: null,
- numberFormat: null,
- page: 10,
- step: 1,
- change: null,
- spin: null,
- start: null,
- stop: null
- },
- _create: function () {
- 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, {
- beforeunload: function () {
- this.element.removeAttr("autocomplete")
- }
- })
- },
- _getCreateOptions: function () {
- var n = this._super(),
- s = this.element;
- return S.each(["min", "max", "step"], function (t, e) {
- var i = s.attr(e);
- null != i && i.length && (n[e] = i)
- }), n
- },
- _events: {
- keydown: function (t) {
- this._start(t) && this._keydown(t) && t.preventDefault()
- },
- keyup: "_stop",
- focus: function () {
- this.previous = this.element.val()
- },
- blur: function (t) {
- return this.cancelBlur ? void delete this.cancelBlur : (this._stop(), this._refresh(), void(this.previous !== this.element.val() && this._trigger("change", t)))
- },
- mousewheel: function (t, e) {
- if (e) {
- if (!this.spinning && !this._start(t)) return !1;
- this._spin((0 < e ? 1 : -1) * this.options.step, t), clearTimeout(this.mousewheelTimer), this.mousewheelTimer = this._delay(function () {
- this.spinning && this._stop(t)
- }, 100), t.preventDefault()
- }
- },
- "mousedown .ui-spinner-button": function (t) {
- function e() {
- this.element[0] === S.ui.safeActiveElement(this.document[0]) || (this.element.trigger("focus"), this.previous = i, this._delay(function () {
- this.previous = i
- }))
- }
- var i;
- 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 () {
- delete this.cancelBlur, e.call(this)
- }), !1 !== this._start(t) && this._repeat(null, S(t.currentTarget).hasClass("ui-spinner-up") ? 1 : -1, t)
- },
- "mouseup .ui-spinner-button": "_stop",
- "mouseenter .ui-spinner-button": function (t) {
- 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
- },
- "mouseleave .ui-spinner-button": "_stop"
- },
- _enhance: function () {
- this.uiSpinner = this.element.attr("autocomplete", "off").wrap("<span>").parent().append("<a></a><a></a>")
- },
- _draw: function () {
- 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({
- classes: {
- "ui-button": ""
- }
- }), 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({
- icon: this.options.icons.up,
- showLabel: !1
- }), this.buttons.last().button({
- icon: this.options.icons.down,
- showLabel: !1
- }), this.buttons.height() > Math.ceil(.5 * this.uiSpinner.height()) && 0 < this.uiSpinner.height() && this.uiSpinner.height(this.uiSpinner.height())
- },
- _keydown: function (t) {
- var e = this.options,
- i = S.ui.keyCode;
- switch (t.keyCode) {
- case i.UP:
- return this._repeat(null, 1, t), !0;
- case i.DOWN:
- return this._repeat(null, -1, t), !0;
- case i.PAGE_UP:
- return this._repeat(null, e.page, t), !0;
- case i.PAGE_DOWN:
- return this._repeat(null, -e.page, t), !0
- }
- return !1
- },
- _start: function (t) {
- return !(!this.spinning && !1 === this._trigger("start", t)) && (this.counter || (this.counter = 1), this.spinning = !0)
- },
- _repeat: function (t, e, i) {
- t = t || 500, clearTimeout(this.timer), this.timer = this._delay(function () {
- this._repeat(40, e, i)
- }, t), this._spin(e * this.options.step, i)
- },
- _spin: function (t, e) {
- var i = this.value() || 0;
- this.counter || (this.counter = 1), i = this._adjustValue(i + t * this._increment(this.counter)), this.spinning && !1 === this._trigger("spin", e, {
- value: i
- }) || (this._value(i), this.counter++)
- },
- _increment: function (t) {
- var e = this.options.incremental;
- return e ? S.isFunction(e) ? e(t) : Math.floor(t * t * t / 5e4 - t * t / 500 + 17 * t / 200 + 1) : 1
- },
- _precision: function () {
- var t = this._precisionOf(this.options.step);
- return null !== this.options.min && (t = Math.max(t, this._precisionOf(this.options.min))), t
- },
- _precisionOf: function (t) {
- var e = "" + t,
- i = e.indexOf(".");
- return -1 === i ? 0 : e.length - i - 1
- },
- _adjustValue: function (t) {
- var e, i, n = this.options;
- 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
- },
- _stop: function (t) {
- this.spinning && (clearTimeout(this.timer), clearTimeout(this.mousewheelTimer), this.counter = 0, this.spinning = !1, this._trigger("stop", t))
- },
- _setOption: function (t, e) {
- var i, n, s;
- 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))
- },
- _setOptionDisabled: function (t) {
- this._super(t), this._toggleClass(this.uiSpinner, null, "ui-state-disabled", !!t), this.element.prop("disabled", !!t), this.buttons.button(t ? "disable" : "enable")
- },
- _setOptions: e(function (t) {
- this._super(t)
- }),
- _parse: function (t) {
- return "string" == typeof t && "" !== t && (t = window.Globalize && this.options.numberFormat ? Globalize.parseFloat(t, 10, this.options.culture) : +t), "" === t || isNaN(t) ? null : t
- },
- _format: function (t) {
- return "" === t ? "" : window.Globalize && this.options.numberFormat ? Globalize.format(t, this.options.numberFormat, this.options.culture) : t
- },
- _refresh: function () {
- this.element.attr({
- "aria-valuemin": this.options.min,
- "aria-valuemax": this.options.max,
- "aria-valuenow": this._parse(this.element.val())
- })
- },
- isValid: function () {
- var t = this.value();
- return null !== t && t === this._adjustValue(t)
- },
- _value: function (t, e) {
- var i;
- "" !== t && (null !== (i = this._parse(t)) && (e || (i = this._adjustValue(i)), t = this._format(i))), this.element.val(t), this._refresh()
- },
- _destroy: function () {
- this.element.prop("disabled", !1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"), this.uiSpinner.replaceWith(this.element)
- },
- stepUp: e(function (t) {
- this._stepUp(t)
- }),
- _stepUp: function (t) {
- this._start() && (this._spin((t || 1) * this.options.step), this._stop())
- },
- stepDown: e(function (t) {
- this._stepDown(t)
- }),
- _stepDown: function (t) {
- this._start() && (this._spin((t || 1) * -this.options.step), this._stop())
- },
- pageUp: e(function (t) {
- this._stepUp((t || 1) * this.options.page)
- }),
- pageDown: e(function (t) {
- this._stepDown((t || 1) * this.options.page)
- }),
- value: function (t) {
- return arguments.length ? void e(this._value).call(this, t) : this._parse(this.element.val())
- },
- widget: function () {
- return this.uiSpinner
- }
- }), !1 !== S.uiBackCompat && S.widget("ui.spinner", S.ui.spinner, {
- _enhance: function () {
- this.uiSpinner = this.element.attr("autocomplete", "off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())
- },
- _uiSpinnerHtml: function () {
- return "<span>"
- },
- _buttonHtml: function () {
- return "<a></a><a></a>"
- }
- }), S.ui.spinner, S.widget("ui.tabs", {
- version: "1.12.1",
- delay: 300,
- options: {
- active: null,
- classes: {
- "ui-tabs": "ui-corner-all",
- "ui-tabs-nav": "ui-corner-all",
- "ui-tabs-panel": "ui-corner-bottom",
- "ui-tabs-tab": "ui-corner-top"
- },
- collapsible: !1,
- event: "click",
- heightStyle: "content",
- hide: null,
- show: null,
- activate: null,
- beforeActivate: null,
- beforeLoad: null,
- load: null
- },
- _isLocal: (b = /#.*$/, function (t) {
- var e, i;
- e = t.href.replace(b, ""), i = location.href.replace(b, "");
- try {
- e = decodeURIComponent(e)
- } catch (t) {}
- try {
- i = decodeURIComponent(i)
- } catch (t) {}
- return 1 < t.hash.length && e === i
- }),
- _create: function () {
- var e = this,
- t = this.options;
- 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) {
- return e.tabs.index(t)
- }))).sort()), this.active = !1 !== this.options.active && this.anchors.length ? this._findActive(t.active) : S(), this._refresh(), this.active.length && this.load(t.active)
- },
- _initialActive: function () {
- var i = this.options.active,
- t = this.options.collapsible,
- n = location.hash.substring(1);
- return null === i && (n && this.tabs.each(function (t, e) {
- return S(e).attr("aria-controls") === n ? (i = t, !1) : void 0
- }), 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
- },
- _getCreateEventData: function () {
- return {
- tab: this.active,
- panel: this.active.length ? this._getPanelForTab(this.active) : S()
- }
- },
- _tabKeydown: function (t) {
- var e = S(S.ui.safeActiveElement(this.document[0])).closest("li"),
- i = this.tabs.index(e),
- n = !0;
- if (!this._handlePageNav(t)) {
- switch (t.keyCode) {
- case S.ui.keyCode.RIGHT:
- case S.ui.keyCode.DOWN:
- i++;
- break;
- case S.ui.keyCode.UP:
- case S.ui.keyCode.LEFT:
- n = !1, i--;
- break;
- case S.ui.keyCode.END:
- i = this.anchors.length - 1;
- break;
- case S.ui.keyCode.HOME:
- i = 0;
- break;
- case S.ui.keyCode.SPACE:
- return t.preventDefault(), clearTimeout(this.activating), void this._activate(i);
- case S.ui.keyCode.ENTER:
- return t.preventDefault(), clearTimeout(this.activating), void this._activate(i !== this.options.active && i);
- default:
- return
- }
- 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 () {
- this.option("active", i)
- }, this.delay))
- }
- },
- _panelKeydown: function (t) {
- this._handlePageNav(t) || t.ctrlKey && t.keyCode === S.ui.keyCode.UP && (t.preventDefault(), this.active.trigger("focus"))
- },
- _handlePageNav: function (t) {
- 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
- },
- _findNextTab: function (t, e) {
- 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;
- return t
- },
- _focusNextTab: function (t, e) {
- return t = this._findNextTab(t, e), this.tabs.eq(t).trigger("focus"), t
- },
- _setOption: function (t, e) {
- 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)))
- },
- _sanitizeSelector: function (t) {
- return t ? t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g, "\\$&") : ""
- },
- refresh: function () {
- var t = this.options,
- e = this.tablist.children(":has(a[href])");
- t.disabled = S.map(e.filter(".ui-state-disabled"), function (t) {
- return e.index(t)
- }), 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()
- },
- _refresh: function () {
- this._setOptionDisabled(this.options.disabled), this._setupEvents(this.options.event), this._setupHeightStyle(this.options.heightStyle), this.tabs.not(this.active).attr({
- "aria-selected": "false",
- "aria-expanded": "false",
- tabIndex: -1
- }), this.panels.not(this._getPanelForTab(this.active)).hide().attr({
- "aria-hidden": "true"
- }), this.active.length ? (this.active.attr({
- "aria-selected": "true",
- "aria-expanded": "true",
- tabIndex: 0
- }), this._addClass(this.active, "ui-tabs-active", "ui-state-active"), this._getPanelForTab(this.active).show().attr({
- "aria-hidden": "false"
- })) : this.tabs.eq(0).attr("tabIndex", 0)
- },
- _processTabs: function () {
- var l = this,
- t = this.tabs,
- e = this.anchors,
- i = this.panels;
- 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) {
- S(this).is(".ui-state-disabled") && t.preventDefault()
- }).on("focus" + this.eventNamespace, ".ui-tabs-anchor", function () {
- S(this).closest("li").is(".ui-state-disabled") && this.blur()
- }), this.tabs = this.tablist.find("> li:has(a[href])").attr({
- role: "tab",
- tabIndex: -1
- }), this._addClass(this.tabs, "ui-tabs-tab", "ui-state-default"), this.anchors = this.tabs.map(function () {
- return S("a", this)[0]
- }).attr({
- role: "presentation",
- tabIndex: -1
- }), this._addClass(this.anchors, "ui-tabs-anchor"), this.panels = S(), this.anchors.each(function (t, e) {
- var i, n, s, o = S(e).uniqueId().attr("id"),
- r = S(e).closest("li"),
- a = r.attr("aria-controls");
- 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({
- "aria-controls": s,
- "aria-labelledby": o
- }), n.attr("aria-labelledby", o)
- }), 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)))
- },
- _getList: function () {
- return this.tablist || this.element.find("ol, ul").eq(0)
- },
- _createPanel: function (t) {
- return S("<div>").attr("id", t).data("ui-tabs-destroy", !0)
- },
- _setOptionDisabled: function (t) {
- var e, i, n;
- 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"));
- this.options.disabled = t, this._toggleClass(this.widget(), this.widgetFullName + "-disabled", null, !0 === t)
- },
- _setupEvents: function (t) {
- var i = {};
- t && S.each(t.split(" "), function (t, e) {
- i[e] = "_eventHandler"
- }), this._off(this.anchors.add(this.tabs).add(this.panels)), this._on(!0, this.anchors, {
- click: function (t) {
- t.preventDefault()
- }
- }), this._on(this.anchors, i), this._on(this.tabs, {
- keydown: "_tabKeydown"
- }), this._on(this.panels, {
- keydown: "_panelKeydown"
- }), this._focusable(this.tabs), this._hoverable(this.tabs)
- },
- _setupHeightStyle: function (t) {
- var i, e = this.element.parent();
- "fill" === t ? (i = e.height(), i -= this.element.outerHeight() - this.element.height(), this.element.siblings(":visible").each(function () {
- var t = S(this),
- e = t.css("position");
- "absolute" !== e && "fixed" !== e && (i -= t.outerHeight(!0))
- }), this.element.children().not(this.panels).each(function () {
- i -= S(this).outerHeight(!0)
- }), this.panels.each(function () {
- S(this).height(Math.max(0, i - S(this).innerHeight() + S(this).height()))
- }).css("overflow", "auto")) : "auto" === t && (i = 0, this.panels.each(function () {
- i = Math.max(i, S(this).height("").height())
- }).height(i))
- },
- _eventHandler: function (t) {
- var e = this.options,
- i = this.active,
- n = S(t.currentTarget).closest("li"),
- s = n[0] === i[0],
- o = s && e.collapsible,
- r = o ? S() : this._getPanelForTab(n),
- a = i.length ? this._getPanelForTab(i) : S(),
- l = {
- oldTab: i,
- oldPanel: a,
- newTab: o ? S() : n,
- newPanel: r
- };
- 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))
- },
- _toggle: function (t, e) {
- function i() {
- s.running = !1, s._trigger("activate", t, e)
- }
-
- function n() {
- 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())
- }
- var s = this,
- o = e.newPanel,
- r = e.oldPanel;
- this.running = !0, r.length && this.options.hide ? this._hide(r, this.options.hide, function () {
- s._removeClass(e.oldTab.closest("li"), "ui-tabs-active", "ui-state-active"), n()
- }) : (this._removeClass(e.oldTab.closest("li"), "ui-tabs-active", "ui-state-active"), r.hide(), n()), r.attr("aria-hidden", "true"), e.oldTab.attr({
- "aria-selected": "false",
- "aria-expanded": "false"
- }), o.length && r.length ? e.oldTab.attr("tabIndex", -1) : o.length && this.tabs.filter(function () {
- return 0 === S(this).attr("tabIndex")
- }).attr("tabIndex", -1), o.attr("aria-hidden", "false"), e.newTab.attr({
- "aria-selected": "true",
- "aria-expanded": "true",
- tabIndex: 0
- })
- },
- _activate: function (t) {
- var e, i = this._findActive(t);
- i[0] !== this.active[0] && (i.length || (i = this.active), e = i.find(".ui-tabs-anchor")[0], this._eventHandler({
- target: e,
- currentTarget: e,
- preventDefault: S.noop
- }))
- },
- _findActive: function (t) {
- return !1 === t ? S() : this.tabs.eq(t)
- },
- _getIndex: function (t) {
- return "string" == typeof t && (t = this.anchors.index(this.anchors.filter("[href$='" + S.ui.escapeSelector(t) + "']"))), t
- },
- _destroy: function () {
- 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 () {
- 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")
- }), this.tabs.each(function () {
- var t = S(this),
- e = t.data("ui-tabs-aria-controls");
- e ? t.attr("aria-controls", e).removeData("ui-tabs-aria-controls") : t.removeAttr("aria-controls")
- }), this.panels.show(), "content" !== this.options.heightStyle && this.panels.css("height", "")
- },
- enable: function (i) {
- var t = this.options.disabled;
- !1 !== t && (t = void 0 !== i && (i = this._getIndex(i), S.isArray(t) ? S.map(t, function (t) {
- return t !== i ? t : null
- }) : S.map(this.tabs, function (t, e) {
- return e !== i ? e : null
- })), this._setOptionDisabled(t))
- },
- disable: function (t) {
- var e = this.options.disabled;
- if (!0 !== e) {
- if (void 0 === t) e = !0;
- else {
- if (t = this._getIndex(t), -1 !== S.inArray(t, e)) return;
- e = S.isArray(e) ? S.merge([t], e).sort() : [t]
- }
- this._setOptionDisabled(e)
- }
- },
- load: function (t, n) {
- t = this._getIndex(t);
-
- function s(t, e) {
- "abort" === e && o.panels.stop(!1, !0), o._removeClass(i, "ui-tabs-loading"), r.removeAttr("aria-busy"), t === o.xhr && delete o.xhr
- }
- var o = this,
- i = this.tabs.eq(t),
- e = i.find(".ui-tabs-anchor"),
- r = this._getPanelForTab(i),
- a = {
- tab: i,
- panel: r
- };
- 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) {
- setTimeout(function () {
- r.html(t), o._trigger("load", n, a), s(i, e)
- }, 1)
- }).fail(function (t, e) {
- setTimeout(function () {
- s(t, e)
- }, 1)
- })))
- },
- _ajaxSettings: function (t, i, n) {
- var s = this;
- return {
- url: t.attr("href").replace(/#.*$/, ""),
- beforeSend: function (t, e) {
- return s._trigger("beforeLoad", i, S.extend({
- jqXHR: t,
- ajaxSettings: e
- }, n))
- }
- }
- },
- _getPanelForTab: function (t) {
- var e = S(t).attr("aria-controls");
- return this.element.find(this._sanitizeSelector("#" + e))
- }
- }), !1 !== S.uiBackCompat && S.widget("ui.tabs", S.ui.tabs, {
- _processTabs: function () {
- this._superApply(arguments), this._addClass(this.tabs, "ui-tab")
- }
- }), S.ui.tabs, S.widget("ui.tooltip", {
- version: "1.12.1",
- options: {
- classes: {
- "ui-tooltip": "ui-corner-all ui-widget-shadow"
- },
- content: function () {
- var t = S(this).attr("title") || "";
- return S("<a>").text(t).html()
- },
- hide: !0,
- items: "[title]:not([disabled])",
- position: {
- my: "left top+15",
- at: "left bottom",
- collision: "flipfit flip"
- },
- show: !0,
- track: !1,
- close: null,
- open: null
- },
- _addDescribedBy: function (t, e) {
- var i = (t.attr("aria-describedby") || "").split(/\s+/);
- i.push(e), t.data("ui-tooltip-id", e).attr("aria-describedby", S.trim(i.join(" ")))
- },
- _removeDescribedBy: function (t) {
- var e = t.data("ui-tooltip-id"),
- i = (t.attr("aria-describedby") || "").split(/\s+/),
- 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")
- },
- _create: function () {
- this._on({
- mouseover: "open",
- focusin: "open"
- }), this.tooltips = {}, this.parents = {}, this.liveRegion = S("<div>").attr({
- role: "log",
- "aria-live": "assertive",
- "aria-relevant": "additions"
- }).appendTo(this.document[0].body), this._addClass(this.liveRegion, null, "ui-helper-hidden-accessible"), this.disabledTitles = S([])
- },
- _setOption: function (t, e) {
- var i = this;
- this._super(t, e), "content" === t && S.each(this.tooltips, function (t, e) {
- i._updateContent(e.element)
- })
- },
- _setOptionDisabled: function (t) {
- this[t ? "_disable" : "_enable"]()
- },
- _disable: function () {
- var n = this;
- S.each(this.tooltips, function (t, e) {
- var i = S.Event("blur");
- i.target = i.currentTarget = e.element[0], n.close(i, !0)
- }), this.disabledTitles = this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function () {
- var t = S(this);
- return t.is("[title]") ? t.data("ui-tooltip-title", t.attr("title")).removeAttr("title") : void 0
- }))
- },
- _enable: function () {
- this.disabledTitles.each(function () {
- var t = S(this);
- t.data("ui-tooltip-title") && t.attr("title", t.data("ui-tooltip-title"))
- }), this.disabledTitles = S([])
- },
- open: function (t) {
- var i = this,
- e = S(t ? t.target : this.element).closest(this.options.items);
- 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 () {
- var t, e = S(this);
- 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] = {
- element: this,
- title: e.attr("title")
- }, e.attr("title", ""))
- }), this._registerCloseHandlers(t, e), this._updateContent(e, t))
- },
- _updateContent: function (e, i) {
- var t, n = this.options.content,
- s = this,
- o = i ? i.type : null;
- return "string" == typeof n || n.nodeType || n.jquery ? this._open(i, e, n) : void((t = n.call(e[0], function (t) {
- s._delay(function () {
- e.data("ui-tooltip-open") && (i && (i.type = o), this._open(i, e, t))
- })
- })) && this._open(i, e, t))
- },
- _open: function (t, e, i) {
- function n(t) {
- l.of = t, o.is(":hidden") || o.position(l)
- }
- var s, o, r, a, l = S.extend({}, this.options.position);
- if (i) {
- if (s = this._find(e)) return void s.tooltip.find(".ui-tooltip-content").html(i);
- 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, {
- mousemove: n
- }), n(t)) : o.position(S.extend({
- of: e
- }, 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 () {
- o.is(":visible") && (n(l.of), clearInterval(r))
- }, S.fx.interval)), this._trigger("open", t, {
- tooltip: o
- })
- }
- },
- _registerCloseHandlers: function (t, i) {
- var e = {
- keyup: function (t) {
- if (t.keyCode === S.ui.keyCode.ESCAPE) {
- var e = S.Event(t);
- e.currentTarget = i[0], this.close(e, !0)
- }
- }
- };
- i[0] !== this.element[0] && (e.remove = function () {
- this._removeTooltip(this._find(i).tooltip)
- }), t && "mouseover" !== t.type || (e.mouseleave = "close"), t && "focusin" !== t.type || (e.focusout = "close"), this._on(!0, i, e)
- },
- close: function (t) {
- var e, i = this,
- n = S(t ? t.currentTarget : this.element),
- s = this._find(n);
- 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 () {
- i._removeTooltip(S(this))
- }), 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) {
- S(e.element).attr("title", e.title), delete i.parents[t]
- }), s.closing = !0, this._trigger("close", t, {
- tooltip: e
- }), s.hiding || (s.closing = !1)))) : void n.removeData("ui-tooltip-open")
- },
- _tooltip: function (t) {
- var e = S("<div>").attr("role", "tooltip"),
- i = S("<div>").appendTo(e),
- n = e.uniqueId().attr("id");
- 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] = {
- element: t,
- tooltip: e
- }
- },
- _find: function (t) {
- var e = t.data("ui-tooltip-id");
- return e ? this.tooltips[e] : null
- },
- _removeTooltip: function (t) {
- t.remove(), delete this.tooltips[t.attr("id")]
- },
- _appendTo: function (t) {
- var e = t.closest(".ui-front, dialog");
- return e.length || (e = this.document[0].body), e
- },
- _destroy: function () {
- var s = this;
- S.each(this.tooltips, function (t, e) {
- var i = S.Event("blur"),
- n = e.element;
- 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"))
- }), this.liveRegion.remove()
- }
- }), !1 !== S.uiBackCompat && S.widget("ui.tooltip", S.ui.tooltip, {
- options: {
- tooltipClass: null
- },
- _tooltip: function () {
- var t = this._superApply(arguments);
- return this.options.tooltipClass && t.tooltip.addClass(this.options.tooltipClass), t
- }
- }), S.ui.tooltip
- }),
- function () {
- 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)
- }(),
- function (t) {
- "function" == typeof define && define.amd ? define(["jquery"], t) : t(jQuery)
- }(function (s) {
- var o = [],
- e = [],
- n = {
- precision: 100,
- elapse: !1
- };
- 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("|"));
-
- function r(t, e, i) {
- 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()
- }
- var m = {
- Y: "years",
- m: "months",
- n: "daysToMonth",
- w: "weeks",
- d: "daysToWeek",
- D: "totalDays",
- H: "hours",
- M: "minutes",
- S: "seconds"
- };
- s.extend(r.prototype, {
- start: function () {
- null !== this.interval && clearInterval(this.interval);
- var t = this;
- this.update(), this.interval = setInterval(function () {
- t.update.call(t)
- }, this.options.precision)
- },
- stop: function () {
- clearInterval(this.interval), this.interval = null, this.dispatchEvent("stoped")
- },
- toggle: function () {
- this.interval ? this.stop() : this.start()
- },
- pause: function () {
- this.stop()
- },
- resume: function () {
- this.start()
- },
- remove: function () {
- this.stop.call(this), o[this.instanceNumber] = null, delete this.$el.data().countdownInstance
- },
- setFinalDate: function (t) {
- this.finalDate = function (t) {
- if (t instanceof Date) return t;
- 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);
- throw new Error("Couldn't cast `" + t + "` to a date object.")
- }(t)
- },
- update: function () {
- if (0 !== this.$el.closest("html").length) {
- var t, e = void 0 !== s._data(this.el, "events"),
- i = new Date;
- 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 = {
- seconds: this.totalSecsLeft % 60,
- minutes: Math.floor(this.totalSecsLeft / 60) % 60,
- hours: Math.floor(this.totalSecsLeft / 60 / 60) % 24,
- days: Math.floor(this.totalSecsLeft / 60 / 60 / 24) % 7,
- daysToWeek: Math.floor(this.totalSecsLeft / 60 / 60 / 24) % 7,
- daysToMonth: Math.floor(this.totalSecsLeft / 60 / 60 / 24 % 30.4368),
- totalDays: Math.floor(this.totalSecsLeft / 60 / 60 / 24),
- weeks: Math.floor(this.totalSecsLeft / 60 / 60 / 24 / 7),
- months: Math.floor(this.totalSecsLeft / 60 / 60 / 24 / 30.4368),
- years: Math.abs(this.finalDate.getFullYear() - i.getFullYear())
- }, this.options.elapse || 0 !== this.totalSecsLeft ? this.dispatchEvent("update") : (this.stop(), this.dispatchEvent("finish")))
- } else this.remove()
- },
- dispatchEvent: function (t) {
- var e = s.Event(t + ".countdown");
- e.finalDate = this.finalDate, e.elapsed = this.elapsed, e.offset = s.extend({}, this.offset), e.strftime = function (g) {
- return function (t) {
- var e, i, n, s, o, r, a = t.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);
- if (a)
- for (var l = 0, c = a.length; l < c; ++l) {
- var u = a[l].match(/%(-|!)?([a-zA-Z]{1})(:[^;]+;)?/),
- h = (o = u[0], r = o.toString().replace(/([.?*+^$[\]\\(){}|-])/g, "\\$1"), new RegExp(r)),
- d = u[1] || "",
- p = u[3] || "",
- f = null;
- 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()))
- }
- return t.replace(/%%/, "%")
- }
- }(this.offset), this.$el.trigger(e)
- }
- }), s.fn.countdown = function () {
- var n = Array.prototype.slice.call(arguments, 0);
- return this.each(function () {
- var t = s(this).data("countdown-instance");
- if (void 0 !== t) {
- var e = o[t],
- i = n[0];
- 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))
- } else new r(this, n[0], n[1])
- })
- }
- }),
- function (t) {
- "function" == typeof define && define.amd ? define(["jquery"], t) : "undefined" != typeof exports ? module.exports = t(require("jquery")) : t(jQuery)
- }(function (c) {
- var s, o = window.Slick || {};
- (s = 0, o = function (t, e) {
- var i, n = this;
- n.defaults = {
- accessibility: !0,
- adaptiveHeight: !1,
- appendArrows: c(t),
- appendDots: c(t),
- arrows: !0,
- asNavFor: null,
- prevArrow: '<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',
- nextArrow: '<button class="slick-next" aria-label="Next" type="button">Next</button>',
- autoplay: !1,
- autoplaySpeed: 3e3,
- centerMode: !1,
- centerPadding: "50px",
- cssEase: "ease",
- customPaging: function (t, e) {
- return c('<button type="button" />').text(e + 1)
- },
- dots: !1,
- dotsClass: "slick-dots",
- draggable: !0,
- easing: "linear",
- edgeFriction: .35,
- fade: !1,
- focusOnSelect: !1,
- focusOnChange: !1,
- infinite: !0,
- initialSlide: 0,
- lazyLoad: "ondemand",
- mobileFirst: !1,
- pauseOnHover: !0,
- pauseOnFocus: !0,
- pauseOnDotsHover: !1,
- respondTo: "window",
- responsive: null,
- rows: 1,
- rtl: !1,
- slide: "",
- slidesPerRow: 1,
- slidesToShow: 1,
- slidesToScroll: 1,
- speed: 500,
- swipe: !0,
- swipeToSlide: !1,
- touchMove: !0,
- touchThreshold: 5,
- useCSS: !0,
- useTransform: !0,
- variableWidth: !1,
- vertical: !1,
- verticalSwiping: !1,
- waitForAnimate: !0,
- zIndex: 1e3
- }, n.initials = {
- animating: !1,
- dragging: !1,
- autoPlayTimer: null,
- currentDirection: 0,
- currentLeft: null,
- currentSlide: 0,
- direction: 1,
- $dots: null,
- listWidth: null,
- listHeight: null,
- loadIndex: 0,
- $nextArrow: null,
- $prevArrow: null,
- scrolling: !1,
- slideCount: null,
- slideWidth: null,
- $slideTrack: null,
- $slides: null,
- sliding: !1,
- slideOffset: 0,
- swipeLeft: null,
- swiping: !1,
- $list: null,
- touchObject: {},
- transformsEnabled: !1,
- unslicked: !1
- }, 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)
- }).prototype.activateADA = function () {
- this.$slideTrack.find(".slick-active").attr({
- "aria-hidden": "false"
- }).find("a, input, button, select").attr({
- tabindex: "0"
- })
- }, o.prototype.addSlide = o.prototype.slickAdd = function (t, e, i) {
- var n = this;
- if ("boolean" == typeof e) i = e, e = null;
- else if (e < 0 || e >= n.slideCount) return !1;
- 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) {
- c(e).attr("data-slick-index", t)
- }), n.$slidesCache = n.$slides, n.reinit()
- }, o.prototype.animateHeight = function () {
- if (1 === this.options.slidesToShow && !0 === this.options.adaptiveHeight && !1 === this.options.vertical) {
- var t = this.$slides.eq(this.currentSlide).outerHeight(!0);
- this.$list.animate({
- height: t
- }, this.options.speed)
- }
- }, o.prototype.animateSlide = function (t, e) {
- var i = {},
- n = this;
- n.animateHeight(), !0 === n.options.rtl && !1 === n.options.vertical && (t = -t), !1 === n.transformsEnabled ? !1 === n.options.vertical ? n.$slideTrack.animate({
- left: t
- }, n.options.speed, n.options.easing, e) : n.$slideTrack.animate({
- top: t
- }, n.options.speed, n.options.easing, e) : !1 === n.cssTransitions ? (!0 === n.options.rtl && (n.currentLeft = -n.currentLeft), c({
- animStart: n.currentLeft
- }).animate({
- animStart: t
- }, {
- duration: n.options.speed,
- easing: n.options.easing,
- step: function (t) {
- 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)
- },
- complete: function () {
- e && e.call()
- }
- })) : (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 () {
- n.disableTransition(), e.call()
- }, n.options.speed))
- }, o.prototype.getNavTarget = function () {
- var t = this.options.asNavFor;
- return t && null !== t && (t = c(t).not(this.$slider)), t
- }, o.prototype.asNavFor = function (e) {
- var t = this.getNavTarget();
- null !== t && "object" == _typeof(t) && t.each(function () {
- var t = c(this).slick("getSlick");
- t.unslicked || t.slideHandler(e, !0)
- })
- }, o.prototype.applyTransition = function (t) {
- var e = this,
- i = {};
- !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)
- }, o.prototype.autoPlay = function () {
- this.autoPlayClear(), this.slideCount > this.options.slidesToShow && (this.autoPlayTimer = setInterval(this.autoPlayIterator, this.options.autoplaySpeed))
- }, o.prototype.autoPlayClear = function () {
- this.autoPlayTimer && clearInterval(this.autoPlayTimer)
- }, o.prototype.autoPlayIterator = function () {
- var t = this,
- e = t.currentSlide + t.options.slidesToScroll;
- 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))
- }, o.prototype.buildArrows = function () {
- var t = this;
- !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({
- "aria-disabled": "true",
- tabindex: "-1"
- }))
- }, o.prototype.buildDots = function () {
- var t, e;
- if (!0 === this.options.dots) {
- 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)));
- this.$dots = e.appendTo(this.options.appendDots), this.$dots.find("li").first().addClass("slick-active")
- }
- }, o.prototype.buildOut = function () {
- var t = this;
- 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) {
- c(e).attr("data-slick-index", t).data("originalStyling", c(e).attr("style") || "")
- }), 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")
- }, o.prototype.buildRows = function () {
- var t, e, i, n, s, o, r, a = this;
- if (n = document.createDocumentFragment(), o = a.$slider.children(), 1 < a.options.rows) {
- for (r = a.options.slidesPerRow * a.options.rows, s = Math.ceil(o.length / r), t = 0; t < s; t++) {
- var l = document.createElement("div");
- for (e = 0; e < a.options.rows; e++) {
- var c = document.createElement("div");
- for (i = 0; i < a.options.slidesPerRow; i++) {
- var u = t * r + (e * a.options.slidesPerRow + i);
- o.get(u) && c.appendChild(o.get(u))
- }
- l.appendChild(c)
- }
- n.appendChild(l)
- }
- a.$slider.empty().append(n), a.$slider.children().children().children().css({
- width: 100 / a.options.slidesPerRow + "%",
- display: "inline-block"
- })
- }
- }, o.prototype.checkResponsive = function (t, e) {
- var i, n, s, o = this,
- r = !1,
- a = o.$slider.width(),
- l = window.innerWidth || c(window).width();
- 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) {
- 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]));
- 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])
- }
- }, o.prototype.changeSlide = function (t, e) {
- var i, n, s = this,
- o = c(t.currentTarget);
- 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) {
- case "previous":
- n = 0 == i ? s.options.slidesToScroll : s.options.slidesToShow - i, s.slideCount > s.options.slidesToShow && s.slideHandler(s.currentSlide - n, !1, e);
- break;
- case "next":
- n = 0 == i ? s.options.slidesToScroll : i, s.slideCount > s.options.slidesToShow && s.slideHandler(s.currentSlide + n, !1, e);
- break;
- case "index":
- var r = 0 === t.data.index ? 0 : t.data.index || o.index() * s.options.slidesToScroll;
- s.slideHandler(s.checkNavigable(r), !1, e), o.children().trigger("focus");
- break;
- default:
- return
- }
- }, o.prototype.checkNavigable = function (t) {
- var e, i;
- if (i = 0, t > (e = this.getNavigableIndexes())[e.length - 1]) t = e[e.length - 1];
- else
- for (var n in e) {
- if (t < e[n]) {
- t = i;
- break
- }
- i = e[n]
- }
- return t
- }, o.prototype.cleanUpEvents = function () {
- var t = this;
- 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)
- }, o.prototype.cleanUpSlideEvents = function () {
- this.$list.off("mouseenter.slick", c.proxy(this.interrupt, this, !0)), this.$list.off("mouseleave.slick", c.proxy(this.interrupt, this, !1))
- }, o.prototype.cleanUpRows = function () {
- var t;
- 1 < this.options.rows && ((t = this.$slides.children().children()).removeAttr("style"), this.$slider.empty().append(t))
- }, o.prototype.clickHandler = function (t) {
- !1 === this.shouldClick && (t.stopImmediatePropagation(), t.stopPropagation(), t.preventDefault())
- }, o.prototype.destroy = function (t) {
- var e = this;
- 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 () {
- c(this).attr("style", c(this).data("originalStyling"))
- }), 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])
- }, o.prototype.disableTransition = function (t) {
- var e = {};
- e[this.transitionType] = "", !1 === this.options.fade ? this.$slideTrack.css(e) : this.$slides.eq(t).css(e)
- }, o.prototype.fadeSlide = function (t, e) {
- var i = this;
- !1 === i.cssTransitions ? (i.$slides.eq(t).css({
- zIndex: i.options.zIndex
- }), i.$slides.eq(t).animate({
- opacity: 1
- }, i.options.speed, i.options.easing, e)) : (i.applyTransition(t), i.$slides.eq(t).css({
- opacity: 1,
- zIndex: i.options.zIndex
- }), e && setTimeout(function () {
- i.disableTransition(t), e.call()
- }, i.options.speed))
- }, o.prototype.fadeSlideOut = function (t) {
- !1 === this.cssTransitions ? this.$slides.eq(t).animate({
- opacity: 0,
- zIndex: this.options.zIndex - 2
- }, this.options.speed, this.options.easing) : (this.applyTransition(t), this.$slides.eq(t).css({
- opacity: 0,
- zIndex: this.options.zIndex - 2
- }))
- }, o.prototype.filterSlides = o.prototype.slickFilter = function (t) {
- null !== t && (this.$slidesCache = this.$slides, this.unload(), this.$slideTrack.children(this.options.slide).detach(), this.$slidesCache.filter(t).appendTo(this.$slideTrack), this.reinit())
- }, o.prototype.focusHandler = function () {
- var i = this;
- i.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick", "*", function (t) {
- t.stopImmediatePropagation();
- var e = c(this);
- setTimeout(function () {
- i.options.pauseOnFocus && (i.focussed = e.is(":focus"), i.autoPlay())
- }, 0)
- })
- }, o.prototype.getCurrent = o.prototype.slickCurrentSlide = function () {
- return this.currentSlide
- }, o.prototype.getDotCount = function () {
- var t = this,
- e = 0,
- i = 0,
- n = 0;
- if (!0 === t.options.infinite)
- if (t.slideCount <= t.options.slidesToShow) ++n;
- else
- for (; e < t.slideCount;) ++n, e = i + t.options.slidesToScroll, i += t.options.slidesToScroll <= t.options.slidesToShow ? t.options.slidesToScroll : t.options.slidesToShow;
- else if (!0 === t.options.centerMode) n = t.slideCount;
- else if (t.options.asNavFor)
- for (; e < t.slideCount;) ++n, e = i + t.options.slidesToScroll, i += t.options.slidesToScroll <= t.options.slidesToShow ? t.options.slidesToScroll : t.options.slidesToShow;
- else n = 1 + Math.ceil((t.slideCount - t.options.slidesToShow) / t.options.slidesToScroll);
- return n - 1
- }, o.prototype.getLeft = function (t) {
- var e, i, n, s, o = this,
- r = 0;
- 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
- }, o.prototype.getOption = o.prototype.slickGetOption = function (t) {
- return this.options[t]
- }, o.prototype.getNavigableIndexes = function () {
- var t, e = this,
- i = 0,
- n = 0,
- s = [];
- 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;
- return s
- }, o.prototype.getSlick = function () {
- return this
- }, o.prototype.getSlideCount = function () {
- var i, n, s = this;
- 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) {
- if (e.offsetLeft - n + c(e).outerWidth() / 2 > -1 * s.swipeLeft) return i = e, !1
- }), Math.abs(c(i).attr("data-slick-index") - s.currentSlide) || 1) : s.options.slidesToScroll
- }, o.prototype.goTo = o.prototype.slickGoTo = function (t, e) {
- this.changeSlide({
- data: {
- message: "index",
- index: parseInt(t)
- }
- }, e)
- }, o.prototype.init = function (t) {
- var e = this;
- 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())
- }, o.prototype.initADA = function () {
- var i = this,
- n = Math.ceil(i.slideCount / i.options.slidesToShow),
- s = i.getNavigableIndexes().filter(function (t) {
- return 0 <= t && t < i.slideCount
- });
- i.$slides.add(i.$slideTrack.find(".slick-cloned")).attr({
- "aria-hidden": "true",
- tabindex: "-1"
- }).find("a, input, button, select").attr({
- tabindex: "-1"
- }), null !== i.$dots && (i.$slides.not(i.$slideTrack.find(".slick-cloned")).each(function (t) {
- var e = s.indexOf(t);
- c(this).attr({
- role: "tabpanel",
- id: "slick-slide" + i.instanceUid + t,
- tabindex: -1
- }), -1 !== e && c(this).attr({
- "aria-describedby": "slick-slide-control" + i.instanceUid + e
- })
- }), i.$dots.attr("role", "tablist").find("li").each(function (t) {
- var e = s[t];
- c(this).attr({
- role: "presentation"
- }), c(this).find("button").first().attr({
- role: "tab",
- id: "slick-slide-control" + i.instanceUid + t,
- "aria-controls": "slick-slide" + i.instanceUid + e,
- "aria-label": t + 1 + " of " + n,
- "aria-selected": null,
- tabindex: "-1"
- })
- }).eq(i.currentSlide).find("button").attr({
- "aria-selected": "true",
- tabindex: "0"
- }).end());
- for (var t = i.currentSlide, e = t + i.options.slidesToShow; t < e; t++) i.$slides.eq(t).attr("tabindex", 0);
- i.activateADA()
- }, o.prototype.initArrowEvents = function () {
- var t = this;
- !0 === t.options.arrows && t.slideCount > t.options.slidesToShow && (t.$prevArrow.off("click.slick").on("click.slick", {
- message: "previous"
- }, t.changeSlide), t.$nextArrow.off("click.slick").on("click.slick", {
- message: "next"
- }, t.changeSlide), !0 === t.options.accessibility && (t.$prevArrow.on("keydown.slick", t.keyHandler), t.$nextArrow.on("keydown.slick", t.keyHandler)))
- }, o.prototype.initDotEvents = function () {
- var t = this;
- !0 === t.options.dots && (c("li", t.$dots).on("click.slick", {
- message: "index"
- }, 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))
- }, o.prototype.initSlideEvents = function () {
- 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)))
- }, o.prototype.initializeEvents = function () {
- var t = this;
- t.initArrowEvents(), t.initDotEvents(), t.initSlideEvents(), t.$list.on("touchstart.slick mousedown.slick", {
- action: "start"
- }, t.swipeHandler), t.$list.on("touchmove.slick mousemove.slick", {
- action: "move"
- }, t.swipeHandler), t.$list.on("touchend.slick mouseup.slick", {
- action: "end"
- }, t.swipeHandler), t.$list.on("touchcancel.slick mouseleave.slick", {
- action: "end"
- }, 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)
- }, o.prototype.initUI = function () {
- !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()
- }, o.prototype.keyHandler = function (t) {
- t.target.tagName.match("TEXTAREA|INPUT|SELECT") || (37 === t.keyCode && !0 === this.options.accessibility ? this.changeSlide({
- data: {
- message: !0 === this.options.rtl ? "next" : "previous"
- }
- }) : 39 === t.keyCode && !0 === this.options.accessibility && this.changeSlide({
- data: {
- message: !0 === this.options.rtl ? "previous" : "next"
- }
- }))
- }, o.prototype.lazyLoad = function () {
- function t(t) {
- c("img[data-lazy]", t).each(function () {
- var t = c(this),
- e = c(this).attr("data-lazy"),
- i = c(this).attr("data-srcset"),
- n = c(this).attr("data-sizes") || o.$slider.attr("data-sizes"),
- s = document.createElement("img");
- s.onload = function () {
- t.animate({
- opacity: 0
- }, 100, function () {
- i && (t.attr("srcset", i), n && t.attr("sizes", n)), t.attr("src", e).animate({
- opacity: 1
- }, 200, function () {
- t.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")
- }), o.$slider.trigger("lazyLoaded", [o, t, e])
- })
- }, s.onerror = function () {
- t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"), o.$slider.trigger("lazyLoadError", [o, t, e])
- }, s.src = e
- })
- }
- var e, i, n, o = this;
- 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)
- 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++;
- 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))
- }, o.prototype.loadSlider = function () {
- this.setPosition(), this.$slideTrack.css({
- opacity: 1
- }), this.$slider.removeClass("slick-loading"), this.initUI(), "progressive" === this.options.lazyLoad && this.progressiveLazyLoad()
- }, o.prototype.next = o.prototype.slickNext = function () {
- this.changeSlide({
- data: {
- message: "next"
- }
- })
- }, o.prototype.orientationChange = function () {
- this.checkResponsive(), this.setPosition()
- }, o.prototype.pause = o.prototype.slickPause = function () {
- this.autoPlayClear(), this.paused = !0
- }, o.prototype.play = o.prototype.slickPlay = function () {
- this.autoPlay(), this.options.autoplay = !0, this.paused = !1, this.focussed = !1, this.interrupted = !1
- }, o.prototype.postSlide = function (t) {
- var e = this;
- 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()))
- }, o.prototype.prev = o.prototype.slickPrev = function () {
- this.changeSlide({
- data: {
- message: "previous"
- }
- })
- }, o.prototype.preventDefault = function (t) {
- t.preventDefault()
- }, o.prototype.progressiveLazyLoad = function (t) {
- t = t || 1;
- var e, i, n, s, o, r = this,
- a = c("img[data-lazy]", r.$slider);
- 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 () {
- 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()
- }, o.onerror = function () {
- t < 3 ? setTimeout(function () {
- r.progressiveLazyLoad(t + 1)
- }, 500) : (e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"), r.$slider.trigger("lazyLoadError", [r, e, i]), r.progressiveLazyLoad())
- }, o.src = i) : r.$slider.trigger("allImagesLoaded", [r])
- }, o.prototype.refresh = function (t) {
- var e, i, n = this;
- 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, {
- currentSlide: e
- }), n.init(), t || n.changeSlide({
- data: {
- message: "index",
- index: e
- }
- }, !1)
- }, o.prototype.registerBreakpoints = function () {
- var t, e, i, n = this,
- s = n.options.responsive || null;
- if ("array" === c.type(s) && s.length) {
- for (t in n.respondTo = n.options.respondTo || "window", s)
- if (i = n.breakpoints.length - 1, s.hasOwnProperty(t)) {
- for (e = s[t].breakpoint; 0 <= i;) n.breakpoints[i] && n.breakpoints[i] === e && n.breakpoints.splice(i, 1), i--;
- n.breakpoints.push(e), n.breakpointSettings[e] = s[t].settings
- } n.breakpoints.sort(function (t, e) {
- return n.options.mobileFirst ? t - e : e - t
- })
- }
- }, o.prototype.reinit = function () {
- var t = this;
- 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])
- }, o.prototype.resize = function () {
- var t = this;
- c(window).width() !== t.windowWidth && (clearTimeout(t.windowDelay), t.windowDelay = window.setTimeout(function () {
- t.windowWidth = c(window).width(), t.checkResponsive(), t.unslicked || t.setPosition()
- }, 50))
- }, o.prototype.removeSlide = o.prototype.slickRemove = function (t, e, i) {
- var n = this;
- 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;
- 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()
- }, o.prototype.setCSS = function (t) {
- var e, i, n = this,
- s = {};
- !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)
- }, o.prototype.setDimensions = function () {
- var t = this;
- !1 === t.options.vertical ? !0 === t.options.centerMode && t.$list.css({
- padding: "0px " + t.options.centerPadding
- }) : (t.$list.height(t.$slides.first().outerHeight(!0) * t.options.slidesToShow), !0 === t.options.centerMode && t.$list.css({
- padding: t.options.centerPadding + " 0px"
- })), 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)));
- var e = t.$slides.first().outerWidth(!0) - t.$slides.first().width();
- !1 === t.options.variableWidth && t.$slideTrack.children(".slick-slide").width(t.slideWidth - e)
- }, o.prototype.setFade = function () {
- var i, n = this;
- n.$slides.each(function (t, e) {
- i = n.slideWidth * t * -1, !0 === n.options.rtl ? c(e).css({
- position: "relative",
- right: i,
- top: 0,
- zIndex: n.options.zIndex - 2,
- opacity: 0
- }) : c(e).css({
- position: "relative",
- left: i,
- top: 0,
- zIndex: n.options.zIndex - 2,
- opacity: 0
- })
- }), n.$slides.eq(n.currentSlide).css({
- zIndex: n.options.zIndex - 1,
- opacity: 1
- })
- }, o.prototype.setHeight = function () {
- if (1 === this.options.slidesToShow && !0 === this.options.adaptiveHeight && !1 === this.options.vertical) {
- var t = this.$slides.eq(this.currentSlide).outerHeight(!0);
- this.$list.css("height", t)
- }
- }, o.prototype.setOption = o.prototype.slickSetOption = function () {
- var t, e, i, n, s, o = this,
- r = !1;
- 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;
- else if ("multiple" === s) c.each(i, function (t, e) {
- o.options[t] = e
- });
- else if ("responsive" === s)
- for (e in n)
- if ("array" !== c.type(o.options.responsive)) o.options.responsive = [n[e]];
- else {
- for (t = o.options.responsive.length - 1; 0 <= t;) o.options.responsive[t].breakpoint === n[e].breakpoint && o.options.responsive.splice(t, 1), t--;
- o.options.responsive.push(n[e])
- } r && (o.unload(), o.reinit())
- }, o.prototype.setPosition = function () {
- this.setDimensions(), this.setHeight(), !1 === this.options.fade ? this.setCSS(this.getLeft(this.currentSlide)) : this.setFade(), this.$slider.trigger("setPosition", [this])
- }, o.prototype.setProps = function () {
- var t = this,
- e = document.body.style;
- 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
- }, o.prototype.setSlideClasses = function (t) {
- var e, i, n, s, o = this;
- 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) {
- var r = o.options.slidesToShow % 2 == 0 ? 1 : 0;
- 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")
- } 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"));
- "ondemand" !== o.options.lazyLoad && "anticipated" !== o.options.lazyLoad || o.lazyLoad()
- }, o.prototype.setupInfinite = function () {
- var t, e, i, n = this;
- if (!0 === n.options.fade && (n.options.centerMode = !1), !0 === n.options.infinite && !1 === n.options.fade && (e = null, n.slideCount > n.options.slidesToShow)) {
- 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");
- 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");
- n.$slideTrack.find(".slick-cloned").find("[id]").each(function () {
- c(this).attr("id", "")
- })
- }
- }, o.prototype.interrupt = function (t) {
- t || this.autoPlay(), this.interrupted = t
- }, o.prototype.selectHandler = function (t) {
- var e = c(t.target).is(".slick-slide") ? c(t.target) : c(t.target).parents(".slick-slide"),
- i = parseInt(e.attr("data-slick-index"));
- i || (i = 0), this.slideCount <= this.options.slidesToShow ? this.slideHandler(i, !1, !0) : this.slideHandler(i)
- }, o.prototype.slideHandler = function (t, e, i) {
- var n, s, o, r, a, l = null,
- c = this;
- if (e = e || !1, !(!0 === c.animating && !0 === c.options.waitForAnimate || !0 === c.options.fade && c.currentSlide === t))
- 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 () {
- c.postSlide(n)
- }) : c.postSlide(n));
- 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 () {
- c.postSlide(n)
- }) : c.postSlide(n));
- else {
- 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 () {
- c.postSlide(s)
- })) : c.postSlide(s), void c.animateHeight();
- !0 !== i ? c.animateSlide(l, function () {
- c.postSlide(s)
- }) : c.postSlide(s)
- }
- }, o.prototype.startLoad = function () {
- var t = this;
- !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")
- }, o.prototype.swipeDirection = function () {
- var t, e, i, n;
- 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"
- }, o.prototype.swipeEnd = function (t) {
- var e, i, n = this;
- if (n.dragging = !1, n.swiping = !1, n.scrolling) return n.scrolling = !1;
- if (n.interrupted = !1, n.shouldClick = !(10 < n.touchObject.swipeLength), void 0 === n.touchObject.curX) return !1;
- if (!0 === n.touchObject.edgeHit && n.$slider.trigger("edge", [n, n.swipeDirection()]), n.touchObject.swipeLength >= n.touchObject.minSwipe) {
- switch (i = n.swipeDirection()) {
- case "left":
- case "down":
- e = n.options.swipeToSlide ? n.checkNavigable(n.currentSlide + n.getSlideCount()) : n.currentSlide + n.getSlideCount(), n.currentDirection = 0;
- break;
- case "right":
- case "up":
- e = n.options.swipeToSlide ? n.checkNavigable(n.currentSlide - n.getSlideCount()) : n.currentSlide - n.getSlideCount(), n.currentDirection = 1
- }
- "vertical" != i && (n.slideHandler(e), n.touchObject = {}, n.$slider.trigger("swipe", [n, i]))
- } else n.touchObject.startX !== n.touchObject.curX && (n.slideHandler(n.currentSlide), n.touchObject = {})
- }, o.prototype.swipeHandler = function (t) {
- var e = this;
- 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) {
- case "start":
- e.swipeStart(t);
- break;
- case "move":
- e.swipeMove(t);
- break;
- case "end":
- e.swipeEnd(t)
- }
- }, o.prototype.swipeMove = function (t) {
- var e, i, n, s, o, r, a = this;
- 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))))
- }, o.prototype.swipeStart = function (t) {
- var e, i = this;
- if (i.interrupted = !0, 1 !== i.touchObject.fingerCount || i.slideCount <= i.options.slidesToShow) return !(i.touchObject = {});
- 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
- }, o.prototype.unfilterSlides = o.prototype.slickUnfilter = function () {
- null !== this.$slidesCache && (this.unload(), this.$slideTrack.children(this.options.slide).detach(), this.$slidesCache.appendTo(this.$slideTrack), this.reinit())
- }, o.prototype.unload = function () {
- var t = this;
- 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", "")
- }, o.prototype.unslick = function (t) {
- this.$slider.trigger("unslick", [this, t]), this.destroy()
- }, o.prototype.updateArrows = function () {
- var t = this;
- 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")))
- }, o.prototype.updateDots = function () {
- 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"))
- }, o.prototype.visibility = function () {
- this.options.autoplay && (document[this.hidden] ? this.interrupted = !0 : this.interrupted = !1)
- }, c.fn.slick = function () {
- var t, e, i = arguments[0],
- n = Array.prototype.slice.call(arguments, 1),
- s = this.length;
- for (t = 0; t < s; t++)
- 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;
- return this
- }
- }),
- function (v) {
- v.fn.slickAnimation = function () {
- function h(t, e, i, n, s) {
- s = void 0 !== s && s, 1 == e.opacity ? (t.addClass(i), t.addClass(n)) : (t.removeClass(i), t.removeClass(n)), s && t.css(e)
- }
-
- function d(t, e) {
- return t ? 1e3 * t + 1e3 : e ? 1e3 * e : t || e ? 1e3 * t + 1e3 * e : 1e3
- }
-
- function p(t, e, i) {
- var n = {};
- ["animation-" + e, "-webkit-animation-" + e, "-moz-animation-" + e, "-o-animation-" + e, "-ms-animation-" + e].forEach(function (t) {
- n[t] = i + "s"
- }), t.css(n)
- }
- var t = v(this),
- e = t.find(".slick-list .slick-track > div"),
- i = t.find('[data-slick-index="0"]'),
- f = "animated",
- g = {
- opacity: "1"
- },
- m = {
- opacity: "0"
- };
- return e.each(function () {
- var u = v(this);
- u.find("[data-animation-in]").each(function () {
- var n = v(this);
- n.css(m);
- var s = n.attr("data-animation-in"),
- o = n.attr("data-animation-out"),
- r = n.attr("data-delay-in"),
- a = n.attr("data-duration-in"),
- l = n.attr("data-delay-out"),
- c = n.attr("data-duration-out");
- 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 () {
- h(n, m, s, f), h(n, g, o, f), l && p(n, "delay", l), c && p(n, "duration", c)
- }, d(r, a))), t.on("afterChange", function (t, e, i) {
- u.hasClass("slick-current") && (h(n, g, s, f, !0), r && p(n, "delay", r), a && p(n, "duration", a), setTimeout(function () {
- h(n, m, s, f), h(n, g, o, f), l && p(n, "delay", l), c && p(n, "duration", c)
- }, d(r, a)))
- }), t.on("beforeChange", function (t, e, i) {
- h(n, m, o, f, !0)
- })) : (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) {
- u.hasClass("slick-current") && (h(n, g, s, f, !0), r && p(n, "delay", r), a && p(n, "duration", a))
- }), t.on("beforeChange", function (t, e, i) {
- h(n, m, s, f, !0)
- }))
- })
- }), this
- }
- }(jQuery),
- function (c, u, h) {
- c.fn.scrollUp = function (t) {
- c.data(h.body, "scrollUp") || (c.data(h.body, "scrollUp", !0), c.fn.scrollUp.init(t))
- }, c.fn.scrollUp.init = function (t) {
- var e, i, n, s, o, r, a = c.fn.scrollUp.settings = c.extend({}, c.fn.scrollUp.defaults, t),
- l = !1;
- switch (r = a.scrollTrigger ? c(a.scrollTrigger) : c("<a/>", {
- id: a.scrollName,
- href: "#top"
- }), a.scrollTitle && r.attr("title", a.scrollTitle), r.appendTo("body"), a.scrollImg || a.scrollTrigger || r.html(a.scrollText), r.css({
- display: "none",
- position: "fixed",
- zIndex: a.zIndex
- }), a.activeOverlay && c("<div/>", {
- id: a.scrollName + "-active"
- }).css({
- position: "absolute",
- top: a.scrollDistance + "px",
- width: "100%",
- borderTop: "1px dotted" + a.activeOverlay,
- zIndex: a.zIndex
- }).appendTo("body"), a.animation) {
- case "fade":
- e = "fadeIn", i = "fadeOut", n = a.animationSpeed;
- break;
- case "slide":
- e = "slideDown", i = "slideUp", n = a.animationSpeed;
- break;
- default:
- e = "show", i = "hide", n = 0
- }
- s = "top" === a.scrollFrom ? a.scrollDistance : c(h).height() - c(u).height() - a.scrollDistance, c(u).scroll(function () {
- c(u).scrollTop() > s ? l || (r[e](n), l = !0) : l && (r[i](n), l = !1)
- }), 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) {
- t.preventDefault(), c("html, body").animate({
- scrollTop: o
- }, a.scrollSpeed, a.easingType)
- })
- }, c.fn.scrollUp.defaults = {
- scrollName: "scrollUp",
- scrollDistance: 300,
- scrollFrom: "top",
- scrollSpeed: 300,
- easingType: "linear",
- animation: "fade",
- animationSpeed: 200,
- scrollTrigger: !1,
- scrollTarget: !1,
- scrollText: "Scroll to top",
- scrollTitle: !1,
- scrollImg: !1,
- activeOverlay: !1,
- zIndex: 2147483647
- }, c.fn.scrollUp.destroy = function (t) {
- 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)
- }, c.scrollUp = c.fn.scrollUp
- }(jQuery, window, document),
- function () {
- 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)
- }(),
- function (t) {
- "function" == typeof define && define.amd ? define(["jquery"], t) : t(jQuery)
- }(function (s) {
- var o = [],
- e = [],
- n = {
- precision: 100,
- elapse: !1
- };
- 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("|"));
-
- function r(t, e, i) {
- 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()
- }
- var m = {
- Y: "years",
- m: "months",
- n: "daysToMonth",
- w: "weeks",
- d: "daysToWeek",
- D: "totalDays",
- H: "hours",
- M: "minutes",
- S: "seconds"
- };
- s.extend(r.prototype, {
- start: function () {
- null !== this.interval && clearInterval(this.interval);
- var t = this;
- this.update(), this.interval = setInterval(function () {
- t.update.call(t)
- }, this.options.precision)
- },
- stop: function () {
- clearInterval(this.interval), this.interval = null, this.dispatchEvent("stoped")
- },
- toggle: function () {
- this.interval ? this.stop() : this.start()
- },
- pause: function () {
- this.stop()
- },
- resume: function () {
- this.start()
- },
- remove: function () {
- this.stop.call(this), o[this.instanceNumber] = null, delete this.$el.data().countdownInstance
- },
- setFinalDate: function (t) {
- this.finalDate = function (t) {
- if (t instanceof Date) return t;
- 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);
- throw new Error("Couldn't cast `" + t + "` to a date object.")
- }(t)
- },
- update: function () {
- if (0 !== this.$el.closest("html").length) {
- var t, e = void 0 !== s._data(this.el, "events"),
- i = new Date;
- 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 = {
- seconds: this.totalSecsLeft % 60,
- minutes: Math.floor(this.totalSecsLeft / 60) % 60,
- hours: Math.floor(this.totalSecsLeft / 60 / 60) % 24,
- days: Math.floor(this.totalSecsLeft / 60 / 60 / 24) % 7,
- daysToWeek: Math.floor(this.totalSecsLeft / 60 / 60 / 24) % 7,
- daysToMonth: Math.floor(this.totalSecsLeft / 60 / 60 / 24 % 30.4368),
- totalDays: Math.floor(this.totalSecsLeft / 60 / 60 / 24),
- weeks: Math.floor(this.totalSecsLeft / 60 / 60 / 24 / 7),
- months: Math.floor(this.totalSecsLeft / 60 / 60 / 24 / 30.4368),
- years: Math.abs(this.finalDate.getFullYear() - i.getFullYear())
- }, this.options.elapse || 0 !== this.totalSecsLeft ? this.dispatchEvent("update") : (this.stop(), this.dispatchEvent("finish")))
- } else this.remove()
- },
- dispatchEvent: function (t) {
- var e = s.Event(t + ".countdown");
- e.finalDate = this.finalDate, e.elapsed = this.elapsed, e.offset = s.extend({}, this.offset), e.strftime = function (g) {
- return function (t) {
- var e, i, n, s, o, r, a = t.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);
- if (a)
- for (var l = 0, c = a.length; l < c; ++l) {
- var u = a[l].match(/%(-|!)?([a-zA-Z]{1})(:[^;]+;)?/),
- h = (o = u[0], r = o.toString().replace(/([.?*+^$[\]\\(){}|-])/g, "\\$1"), new RegExp(r)),
- d = u[1] || "",
- p = u[3] || "",
- f = null;
- 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()))
- }
- return t.replace(/%%/, "%")
- }
- }(this.offset), this.$el.trigger(e)
- }
- }), s.fn.countdown = function () {
- var n = Array.prototype.slice.call(arguments, 0);
- return this.each(function () {
- var t = s(this).data("countdown-instance");
- if (void 0 !== t) {
- var e = o[t],
- i = n[0];
- 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))
- } else new r(this, n[0], n[1])
- })
- }
- }),
- function (t) {
- "function" == typeof define && define.amd ? define(["jquery"], t) : "undefined" != typeof exports ? module.exports = t(require("jquery")) : t(jQuery)
- }(function (c) {
- var s, o = window.Slick || {};
- (s = 0, o = function (t, e) {
- var i, n = this;
- n.defaults = {
- accessibility: !0,
- adaptiveHeight: !1,
- appendArrows: c(t),
- appendDots: c(t),
- arrows: !0,
- asNavFor: null,
- prevArrow: '<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',
- nextArrow: '<button class="slick-next" aria-label="Next" type="button">Next</button>',
- autoplay: !1,
- autoplaySpeed: 3e3,
- centerMode: !1,
- centerPadding: "50px",
- cssEase: "ease",
- customPaging: function (t, e) {
- return c('<button type="button" />').text(e + 1)
- },
- dots: !1,
- dotsClass: "slick-dots",
- draggable: !0,
- easing: "linear",
- edgeFriction: .35,
- fade: !1,
- focusOnSelect: !1,
- focusOnChange: !1,
- infinite: !0,
- initialSlide: 0,
- lazyLoad: "ondemand",
- mobileFirst: !1,
- pauseOnHover: !0,
- pauseOnFocus: !0,
- pauseOnDotsHover: !1,
- respondTo: "window",
- responsive: null,
- rows: 1,
- rtl: !1,
- slide: "",
- slidesPerRow: 1,
- slidesToShow: 1,
- slidesToScroll: 1,
- speed: 500,
- swipe: !0,
- swipeToSlide: !1,
- touchMove: !0,
- touchThreshold: 5,
- useCSS: !0,
- useTransform: !0,
- variableWidth: !1,
- vertical: !1,
- verticalSwiping: !1,
- waitForAnimate: !0,
- zIndex: 1e3
- }, n.initials = {
- animating: !1,
- dragging: !1,
- autoPlayTimer: null,
- currentDirection: 0,
- currentLeft: null,
- currentSlide: 0,
- direction: 1,
- $dots: null,
- listWidth: null,
- listHeight: null,
- loadIndex: 0,
- $nextArrow: null,
- $prevArrow: null,
- scrolling: !1,
- slideCount: null,
- slideWidth: null,
- $slideTrack: null,
- $slides: null,
- sliding: !1,
- slideOffset: 0,
- swipeLeft: null,
- swiping: !1,
- $list: null,
- touchObject: {},
- transformsEnabled: !1,
- unslicked: !1
- }, 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)
- }).prototype.activateADA = function () {
- this.$slideTrack.find(".slick-active").attr({
- "aria-hidden": "false"
- }).find("a, input, button, select").attr({
- tabindex: "0"
- })
- }, o.prototype.addSlide = o.prototype.slickAdd = function (t, e, i) {
- var n = this;
- if ("boolean" == typeof e) i = e, e = null;
- else if (e < 0 || e >= n.slideCount) return !1;
- 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) {
- c(e).attr("data-slick-index", t)
- }), n.$slidesCache = n.$slides, n.reinit()
- }, o.prototype.animateHeight = function () {
- if (1 === this.options.slidesToShow && !0 === this.options.adaptiveHeight && !1 === this.options.vertical) {
- var t = this.$slides.eq(this.currentSlide).outerHeight(!0);
- this.$list.animate({
- height: t
- }, this.options.speed)
- }
- }, o.prototype.animateSlide = function (t, e) {
- var i = {},
- n = this;
- n.animateHeight(), !0 === n.options.rtl && !1 === n.options.vertical && (t = -t), !1 === n.transformsEnabled ? !1 === n.options.vertical ? n.$slideTrack.animate({
- left: t
- }, n.options.speed, n.options.easing, e) : n.$slideTrack.animate({
- top: t
- }, n.options.speed, n.options.easing, e) : !1 === n.cssTransitions ? (!0 === n.options.rtl && (n.currentLeft = -n.currentLeft), c({
- animStart: n.currentLeft
- }).animate({
- animStart: t
- }, {
- duration: n.options.speed,
- easing: n.options.easing,
- step: function (t) {
- 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)
- },
- complete: function () {
- e && e.call()
- }
- })) : (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 () {
- n.disableTransition(), e.call()
- }, n.options.speed))
- }, o.prototype.getNavTarget = function () {
- var t = this.options.asNavFor;
- return t && null !== t && (t = c(t).not(this.$slider)), t
- }, o.prototype.asNavFor = function (e) {
- var t = this.getNavTarget();
- null !== t && "object" == _typeof(t) && t.each(function () {
- var t = c(this).slick("getSlick");
- t.unslicked || t.slideHandler(e, !0)
- })
- }, o.prototype.applyTransition = function (t) {
- var e = this,
- i = {};
- !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)
- }, o.prototype.autoPlay = function () {
- this.autoPlayClear(), this.slideCount > this.options.slidesToShow && (this.autoPlayTimer = setInterval(this.autoPlayIterator, this.options.autoplaySpeed))
- }, o.prototype.autoPlayClear = function () {
- this.autoPlayTimer && clearInterval(this.autoPlayTimer)
- }, o.prototype.autoPlayIterator = function () {
- var t = this,
- e = t.currentSlide + t.options.slidesToScroll;
- 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))
- }, o.prototype.buildArrows = function () {
- var t = this;
- !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({
- "aria-disabled": "true",
- tabindex: "-1"
- }))
- }, o.prototype.buildDots = function () {
- var t, e;
- if (!0 === this.options.dots) {
- 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)));
- this.$dots = e.appendTo(this.options.appendDots), this.$dots.find("li").first().addClass("slick-active")
- }
- }, o.prototype.buildOut = function () {
- var t = this;
- 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) {
- c(e).attr("data-slick-index", t).data("originalStyling", c(e).attr("style") || "")
- }), 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")
- }, o.prototype.buildRows = function () {
- var t, e, i, n, s, o, r, a = this;
- if (n = document.createDocumentFragment(), o = a.$slider.children(), 1 < a.options.rows) {
- for (r = a.options.slidesPerRow * a.options.rows, s = Math.ceil(o.length / r), t = 0; t < s; t++) {
- var l = document.createElement("div");
- for (e = 0; e < a.options.rows; e++) {
- var c = document.createElement("div");
- for (i = 0; i < a.options.slidesPerRow; i++) {
- var u = t * r + (e * a.options.slidesPerRow + i);
- o.get(u) && c.appendChild(o.get(u))
- }
- l.appendChild(c)
- }
- n.appendChild(l)
- }
- a.$slider.empty().append(n), a.$slider.children().children().children().css({
- width: 100 / a.options.slidesPerRow + "%",
- display: "inline-block"
- })
- }
- }, o.prototype.checkResponsive = function (t, e) {
- var i, n, s, o = this,
- r = !1,
- a = o.$slider.width(),
- l = window.innerWidth || c(window).width();
- 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) {
- 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]));
- 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])
- }
- }, o.prototype.changeSlide = function (t, e) {
- var i, n, s = this,
- o = c(t.currentTarget);
- 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) {
- case "previous":
- n = 0 == i ? s.options.slidesToScroll : s.options.slidesToShow - i, s.slideCount > s.options.slidesToShow && s.slideHandler(s.currentSlide - n, !1, e);
- break;
- case "next":
- n = 0 == i ? s.options.slidesToScroll : i, s.slideCount > s.options.slidesToShow && s.slideHandler(s.currentSlide + n, !1, e);
- break;
- case "index":
- var r = 0 === t.data.index ? 0 : t.data.index || o.index() * s.options.slidesToScroll;
- s.slideHandler(s.checkNavigable(r), !1, e), o.children().trigger("focus");
- break;
- default:
- return
- }
- }, o.prototype.checkNavigable = function (t) {
- var e, i;
- if (i = 0, t > (e = this.getNavigableIndexes())[e.length - 1]) t = e[e.length - 1];
- else
- for (var n in e) {
- if (t < e[n]) {
- t = i;
- break
- }
- i = e[n]
- }
- return t
- }, o.prototype.cleanUpEvents = function () {
- var t = this;
- 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)
- }, o.prototype.cleanUpSlideEvents = function () {
- this.$list.off("mouseenter.slick", c.proxy(this.interrupt, this, !0)), this.$list.off("mouseleave.slick", c.proxy(this.interrupt, this, !1))
- }, o.prototype.cleanUpRows = function () {
- var t;
- 1 < this.options.rows && ((t = this.$slides.children().children()).removeAttr("style"), this.$slider.empty().append(t))
- }, o.prototype.clickHandler = function (t) {
- !1 === this.shouldClick && (t.stopImmediatePropagation(), t.stopPropagation(), t.preventDefault())
- }, o.prototype.destroy = function (t) {
- var e = this;
- 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 () {
- c(this).attr("style", c(this).data("originalStyling"))
- }), 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])
- }, o.prototype.disableTransition = function (t) {
- var e = {};
- e[this.transitionType] = "", !1 === this.options.fade ? this.$slideTrack.css(e) : this.$slides.eq(t).css(e)
- }, o.prototype.fadeSlide = function (t, e) {
- var i = this;
- !1 === i.cssTransitions ? (i.$slides.eq(t).css({
- zIndex: i.options.zIndex
- }), i.$slides.eq(t).animate({
- opacity: 1
- }, i.options.speed, i.options.easing, e)) : (i.applyTransition(t), i.$slides.eq(t).css({
- opacity: 1,
- zIndex: i.options.zIndex
- }), e && setTimeout(function () {
- i.disableTransition(t), e.call()
- }, i.options.speed))
- }, o.prototype.fadeSlideOut = function (t) {
- !1 === this.cssTransitions ? this.$slides.eq(t).animate({
- opacity: 0,
- zIndex: this.options.zIndex - 2
- }, this.options.speed, this.options.easing) : (this.applyTransition(t), this.$slides.eq(t).css({
- opacity: 0,
- zIndex: this.options.zIndex - 2
- }))
- }, o.prototype.filterSlides = o.prototype.slickFilter = function (t) {
- null !== t && (this.$slidesCache = this.$slides, this.unload(), this.$slideTrack.children(this.options.slide).detach(), this.$slidesCache.filter(t).appendTo(this.$slideTrack), this.reinit())
- }, o.prototype.focusHandler = function () {
- var i = this;
- i.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick", "*", function (t) {
- t.stopImmediatePropagation();
- var e = c(this);
- setTimeout(function () {
- i.options.pauseOnFocus && (i.focussed = e.is(":focus"), i.autoPlay())
- }, 0)
- })
- }, o.prototype.getCurrent = o.prototype.slickCurrentSlide = function () {
- return this.currentSlide
- }, o.prototype.getDotCount = function () {
- var t = this,
- e = 0,
- i = 0,
- n = 0;
- if (!0 === t.options.infinite)
- if (t.slideCount <= t.options.slidesToShow) ++n;
- else
- for (; e < t.slideCount;) ++n, e = i + t.options.slidesToScroll, i += t.options.slidesToScroll <= t.options.slidesToShow ? t.options.slidesToScroll : t.options.slidesToShow;
- else if (!0 === t.options.centerMode) n = t.slideCount;
- else if (t.options.asNavFor)
- for (; e < t.slideCount;) ++n, e = i + t.options.slidesToScroll, i += t.options.slidesToScroll <= t.options.slidesToShow ? t.options.slidesToScroll : t.options.slidesToShow;
- else n = 1 + Math.ceil((t.slideCount - t.options.slidesToShow) / t.options.slidesToScroll);
- return n - 1
- }, o.prototype.getLeft = function (t) {
- var e, i, n, s, o = this,
- r = 0;
- 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
- }, o.prototype.getOption = o.prototype.slickGetOption = function (t) {
- return this.options[t]
- }, o.prototype.getNavigableIndexes = function () {
- var t, e = this,
- i = 0,
- n = 0,
- s = [];
- 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;
- return s
- }, o.prototype.getSlick = function () {
- return this
- }, o.prototype.getSlideCount = function () {
- var i, n, s = this;
- 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) {
- if (e.offsetLeft - n + c(e).outerWidth() / 2 > -1 * s.swipeLeft) return i = e, !1
- }), Math.abs(c(i).attr("data-slick-index") - s.currentSlide) || 1) : s.options.slidesToScroll
- }, o.prototype.goTo = o.prototype.slickGoTo = function (t, e) {
- this.changeSlide({
- data: {
- message: "index",
- index: parseInt(t)
- }
- }, e)
- }, o.prototype.init = function (t) {
- var e = this;
- 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())
- }, o.prototype.initADA = function () {
- var i = this,
- n = Math.ceil(i.slideCount / i.options.slidesToShow),
- s = i.getNavigableIndexes().filter(function (t) {
- return 0 <= t && t < i.slideCount
- });
- i.$slides.add(i.$slideTrack.find(".slick-cloned")).attr({
- "aria-hidden": "true",
- tabindex: "-1"
- }).find("a, input, button, select").attr({
- tabindex: "-1"
- }), null !== i.$dots && (i.$slides.not(i.$slideTrack.find(".slick-cloned")).each(function (t) {
- var e = s.indexOf(t);
- c(this).attr({
- role: "tabpanel",
- id: "slick-slide" + i.instanceUid + t,
- tabindex: -1
- }), -1 !== e && c(this).attr({
- "aria-describedby": "slick-slide-control" + i.instanceUid + e
- })
- }), i.$dots.attr("role", "tablist").find("li").each(function (t) {
- var e = s[t];
- c(this).attr({
- role: "presentation"
- }), c(this).find("button").first().attr({
- role: "tab",
- id: "slick-slide-control" + i.instanceUid + t,
- "aria-controls": "slick-slide" + i.instanceUid + e,
- "aria-label": t + 1 + " of " + n,
- "aria-selected": null,
- tabindex: "-1"
- })
- }).eq(i.currentSlide).find("button").attr({
- "aria-selected": "true",
- tabindex: "0"
- }).end());
- for (var t = i.currentSlide, e = t + i.options.slidesToShow; t < e; t++) i.$slides.eq(t).attr("tabindex", 0);
- i.activateADA()
- }, o.prototype.initArrowEvents = function () {
- var t = this;
- !0 === t.options.arrows && t.slideCount > t.options.slidesToShow && (t.$prevArrow.off("click.slick").on("click.slick", {
- message: "previous"
- }, t.changeSlide), t.$nextArrow.off("click.slick").on("click.slick", {
- message: "next"
- }, t.changeSlide), !0 === t.options.accessibility && (t.$prevArrow.on("keydown.slick", t.keyHandler), t.$nextArrow.on("keydown.slick", t.keyHandler)))
- }, o.prototype.initDotEvents = function () {
- var t = this;
- !0 === t.options.dots && (c("li", t.$dots).on("click.slick", {
- message: "index"
- }, 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))
- }, o.prototype.initSlideEvents = function () {
- 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)))
- }, o.prototype.initializeEvents = function () {
- var t = this;
- t.initArrowEvents(), t.initDotEvents(), t.initSlideEvents(), t.$list.on("touchstart.slick mousedown.slick", {
- action: "start"
- }, t.swipeHandler), t.$list.on("touchmove.slick mousemove.slick", {
- action: "move"
- }, t.swipeHandler), t.$list.on("touchend.slick mouseup.slick", {
- action: "end"
- }, t.swipeHandler), t.$list.on("touchcancel.slick mouseleave.slick", {
- action: "end"
- }, 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)
- }, o.prototype.initUI = function () {
- !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()
- }, o.prototype.keyHandler = function (t) {
- t.target.tagName.match("TEXTAREA|INPUT|SELECT") || (37 === t.keyCode && !0 === this.options.accessibility ? this.changeSlide({
- data: {
- message: !0 === this.options.rtl ? "next" : "previous"
- }
- }) : 39 === t.keyCode && !0 === this.options.accessibility && this.changeSlide({
- data: {
- message: !0 === this.options.rtl ? "previous" : "next"
- }
- }))
- }, o.prototype.lazyLoad = function () {
- function t(t) {
- c("img[data-lazy]", t).each(function () {
- var t = c(this),
- e = c(this).attr("data-lazy"),
- i = c(this).attr("data-srcset"),
- n = c(this).attr("data-sizes") || o.$slider.attr("data-sizes"),
- s = document.createElement("img");
- s.onload = function () {
- t.animate({
- opacity: 0
- }, 100, function () {
- i && (t.attr("srcset", i), n && t.attr("sizes", n)), t.attr("src", e).animate({
- opacity: 1
- }, 200, function () {
- t.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")
- }), o.$slider.trigger("lazyLoaded", [o, t, e])
- })
- }, s.onerror = function () {
- t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"), o.$slider.trigger("lazyLoadError", [o, t, e])
- }, s.src = e
- })
- }
- var e, i, n, o = this;
- 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)
- 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++;
- 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))
- }, o.prototype.loadSlider = function () {
- this.setPosition(), this.$slideTrack.css({
- opacity: 1
- }), this.$slider.removeClass("slick-loading"), this.initUI(), "progressive" === this.options.lazyLoad && this.progressiveLazyLoad()
- }, o.prototype.next = o.prototype.slickNext = function () {
- this.changeSlide({
- data: {
- message: "next"
- }
- })
- }, o.prototype.orientationChange = function () {
- this.checkResponsive(), this.setPosition()
- }, o.prototype.pause = o.prototype.slickPause = function () {
- this.autoPlayClear(), this.paused = !0
- }, o.prototype.play = o.prototype.slickPlay = function () {
- this.autoPlay(), this.options.autoplay = !0, this.paused = !1, this.focussed = !1, this.interrupted = !1
- }, o.prototype.postSlide = function (t) {
- var e = this;
- 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()))
- }, o.prototype.prev = o.prototype.slickPrev = function () {
- this.changeSlide({
- data: {
- message: "previous"
- }
- })
- }, o.prototype.preventDefault = function (t) {
- t.preventDefault()
- }, o.prototype.progressiveLazyLoad = function (t) {
- t = t || 1;
- var e, i, n, s, o, r = this,
- a = c("img[data-lazy]", r.$slider);
- 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 () {
- 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()
- }, o.onerror = function () {
- t < 3 ? setTimeout(function () {
- r.progressiveLazyLoad(t + 1)
- }, 500) : (e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"), r.$slider.trigger("lazyLoadError", [r, e, i]), r.progressiveLazyLoad())
- }, o.src = i) : r.$slider.trigger("allImagesLoaded", [r])
- }, o.prototype.refresh = function (t) {
- var e, i, n = this;
- 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, {
- currentSlide: e
- }), n.init(), t || n.changeSlide({
- data: {
- message: "index",
- index: e
- }
- }, !1)
- }, o.prototype.registerBreakpoints = function () {
- var t, e, i, n = this,
- s = n.options.responsive || null;
- if ("array" === c.type(s) && s.length) {
- for (t in n.respondTo = n.options.respondTo || "window", s)
- if (i = n.breakpoints.length - 1, s.hasOwnProperty(t)) {
- for (e = s[t].breakpoint; 0 <= i;) n.breakpoints[i] && n.breakpoints[i] === e && n.breakpoints.splice(i, 1), i--;
- n.breakpoints.push(e), n.breakpointSettings[e] = s[t].settings
- } n.breakpoints.sort(function (t, e) {
- return n.options.mobileFirst ? t - e : e - t
- })
- }
- }, o.prototype.reinit = function () {
- var t = this;
- 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])
- }, o.prototype.resize = function () {
- var t = this;
- c(window).width() !== t.windowWidth && (clearTimeout(t.windowDelay), t.windowDelay = window.setTimeout(function () {
- t.windowWidth = c(window).width(), t.checkResponsive(), t.unslicked || t.setPosition()
- }, 50))
- }, o.prototype.removeSlide = o.prototype.slickRemove = function (t, e, i) {
- var n = this;
- 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;
- 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()
- }, o.prototype.setCSS = function (t) {
- var e, i, n = this,
- s = {};
- !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)
- }, o.prototype.setDimensions = function () {
- var t = this;
- !1 === t.options.vertical ? !0 === t.options.centerMode && t.$list.css({
- padding: "0px " + t.options.centerPadding
- }) : (t.$list.height(t.$slides.first().outerHeight(!0) * t.options.slidesToShow), !0 === t.options.centerMode && t.$list.css({
- padding: t.options.centerPadding + " 0px"
- })), 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)));
- var e = t.$slides.first().outerWidth(!0) - t.$slides.first().width();
- !1 === t.options.variableWidth && t.$slideTrack.children(".slick-slide").width(t.slideWidth - e)
- }, o.prototype.setFade = function () {
- var i, n = this;
- n.$slides.each(function (t, e) {
- i = n.slideWidth * t * -1, !0 === n.options.rtl ? c(e).css({
- position: "relative",
- right: i,
- top: 0,
- zIndex: n.options.zIndex - 2,
- opacity: 0
- }) : c(e).css({
- position: "relative",
- left: i,
- top: 0,
- zIndex: n.options.zIndex - 2,
- opacity: 0
- })
- }), n.$slides.eq(n.currentSlide).css({
- zIndex: n.options.zIndex - 1,
- opacity: 1
- })
- }, o.prototype.setHeight = function () {
- if (1 === this.options.slidesToShow && !0 === this.options.adaptiveHeight && !1 === this.options.vertical) {
- var t = this.$slides.eq(this.currentSlide).outerHeight(!0);
- this.$list.css("height", t)
- }
- }, o.prototype.setOption = o.prototype.slickSetOption = function () {
- var t, e, i, n, s, o = this,
- r = !1;
- 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;
- else if ("multiple" === s) c.each(i, function (t, e) {
- o.options[t] = e
- });
- else if ("responsive" === s)
- for (e in n)
- if ("array" !== c.type(o.options.responsive)) o.options.responsive = [n[e]];
- else {
- for (t = o.options.responsive.length - 1; 0 <= t;) o.options.responsive[t].breakpoint === n[e].breakpoint && o.options.responsive.splice(t, 1), t--;
- o.options.responsive.push(n[e])
- } r && (o.unload(), o.reinit())
- }, o.prototype.setPosition = function () {
- this.setDimensions(), this.setHeight(), !1 === this.options.fade ? this.setCSS(this.getLeft(this.currentSlide)) : this.setFade(), this.$slider.trigger("setPosition", [this])
- }, o.prototype.setProps = function () {
- var t = this,
- e = document.body.style;
- 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
- }, o.prototype.setSlideClasses = function (t) {
- var e, i, n, s, o = this;
- 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) {
- var r = o.options.slidesToShow % 2 == 0 ? 1 : 0;
- 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")
- } 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"));
- "ondemand" !== o.options.lazyLoad && "anticipated" !== o.options.lazyLoad || o.lazyLoad()
- }, o.prototype.setupInfinite = function () {
- var t, e, i, n = this;
- if (!0 === n.options.fade && (n.options.centerMode = !1), !0 === n.options.infinite && !1 === n.options.fade && (e = null, n.slideCount > n.options.slidesToShow)) {
- 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");
- 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");
- n.$slideTrack.find(".slick-cloned").find("[id]").each(function () {
- c(this).attr("id", "")
- })
- }
- }, o.prototype.interrupt = function (t) {
- t || this.autoPlay(), this.interrupted = t
- }, o.prototype.selectHandler = function (t) {
- var e = c(t.target).is(".slick-slide") ? c(t.target) : c(t.target).parents(".slick-slide"),
- i = parseInt(e.attr("data-slick-index"));
- i || (i = 0), this.slideCount <= this.options.slidesToShow ? this.slideHandler(i, !1, !0) : this.slideHandler(i)
- }, o.prototype.slideHandler = function (t, e, i) {
- var n, s, o, r, a, l = null,
- c = this;
- if (e = e || !1, !(!0 === c.animating && !0 === c.options.waitForAnimate || !0 === c.options.fade && c.currentSlide === t))
- 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 () {
- c.postSlide(n)
- }) : c.postSlide(n));
- 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 () {
- c.postSlide(n)
- }) : c.postSlide(n));
- else {
- 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 () {
- c.postSlide(s)
- })) : c.postSlide(s), void c.animateHeight();
- !0 !== i ? c.animateSlide(l, function () {
- c.postSlide(s)
- }) : c.postSlide(s)
- }
- }, o.prototype.startLoad = function () {
- var t = this;
- !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")
- }, o.prototype.swipeDirection = function () {
- var t, e, i, n;
- 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"
- }, o.prototype.swipeEnd = function (t) {
- var e, i, n = this;
- if (n.dragging = !1, n.swiping = !1, n.scrolling) return n.scrolling = !1;
- if (n.interrupted = !1, n.shouldClick = !(10 < n.touchObject.swipeLength), void 0 === n.touchObject.curX) return !1;
- if (!0 === n.touchObject.edgeHit && n.$slider.trigger("edge", [n, n.swipeDirection()]), n.touchObject.swipeLength >= n.touchObject.minSwipe) {
- switch (i = n.swipeDirection()) {
- case "left":
- case "down":
- e = n.options.swipeToSlide ? n.checkNavigable(n.currentSlide + n.getSlideCount()) : n.currentSlide + n.getSlideCount(), n.currentDirection = 0;
- break;
- case "right":
- case "up":
- e = n.options.swipeToSlide ? n.checkNavigable(n.currentSlide - n.getSlideCount()) : n.currentSlide - n.getSlideCount(), n.currentDirection = 1
- }
- "vertical" != i && (n.slideHandler(e), n.touchObject = {}, n.$slider.trigger("swipe", [n, i]))
- } else n.touchObject.startX !== n.touchObject.curX && (n.slideHandler(n.currentSlide), n.touchObject = {})
- }, o.prototype.swipeHandler = function (t) {
- var e = this;
- 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) {
- case "start":
- e.swipeStart(t);
- break;
- case "move":
- e.swipeMove(t);
- break;
- case "end":
- e.swipeEnd(t)
- }
- }, o.prototype.swipeMove = function (t) {
- var e, i, n, s, o, r, a = this;
- 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))))
- }, o.prototype.swipeStart = function (t) {
- var e, i = this;
- if (i.interrupted = !0, 1 !== i.touchObject.fingerCount || i.slideCount <= i.options.slidesToShow) return !(i.touchObject = {});
- 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
- }, o.prototype.unfilterSlides = o.prototype.slickUnfilter = function () {
- null !== this.$slidesCache && (this.unload(), this.$slideTrack.children(this.options.slide).detach(), this.$slidesCache.appendTo(this.$slideTrack), this.reinit())
- }, o.prototype.unload = function () {
- var t = this;
- 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", "")
- }, o.prototype.unslick = function (t) {
- this.$slider.trigger("unslick", [this, t]), this.destroy()
- }, o.prototype.updateArrows = function () {
- var t = this;
- 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")))
- }, o.prototype.updateDots = function () {
- 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"))
- }, o.prototype.visibility = function () {
- this.options.autoplay && (document[this.hidden] ? this.interrupted = !0 : this.interrupted = !1)
- }, c.fn.slick = function () {
- var t, e, i = arguments[0],
- n = Array.prototype.slice.call(arguments, 1),
- s = this.length;
- for (t = 0; t < s; t++)
- 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;
- return this
- }
- }),
- function (v) {
- v.fn.slickAnimation = function () {
- function h(t, e, i, n, s) {
- s = void 0 !== s && s, 1 == e.opacity ? (t.addClass(i), t.addClass(n)) : (t.removeClass(i), t.removeClass(n)), s && t.css(e)
- }
-
- function d(t, e) {
- return t ? 1e3 * t + 1e3 : e ? 1e3 * e : t || e ? 1e3 * t + 1e3 * e : 1e3
- }
-
- function p(t, e, i) {
- var n = {};
- ["animation-" + e, "-webkit-animation-" + e, "-moz-animation-" + e, "-o-animation-" + e, "-ms-animation-" + e].forEach(function (t) {
- n[t] = i + "s"
- }), t.css(n)
- }
- var t = v(this),
- e = t.find(".slick-list .slick-track > div"),
- i = t.find('[data-slick-index="0"]'),
- f = "animated",
- g = {
- opacity: "1"
- },
- m = {
- opacity: "0"
- };
- return e.each(function () {
- var u = v(this);
- u.find("[data-animation-in]").each(function () {
- var n = v(this);
- n.css(m);
- var s = n.attr("data-animation-in"),
- o = n.attr("data-animation-out"),
- r = n.attr("data-delay-in"),
- a = n.attr("data-duration-in"),
- l = n.attr("data-delay-out"),
- c = n.attr("data-duration-out");
- 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 () {
- h(n, m, s, f), h(n, g, o, f), l && p(n, "delay", l), c && p(n, "duration", c)
- }, d(r, a))), t.on("afterChange", function (t, e, i) {
- u.hasClass("slick-current") && (h(n, g, s, f, !0), r && p(n, "delay", r), a && p(n, "duration", a), setTimeout(function () {
- h(n, m, s, f), h(n, g, o, f), l && p(n, "delay", l), c && p(n, "duration", c)
- }, d(r, a)))
- }), t.on("beforeChange", function (t, e, i) {
- h(n, m, o, f, !0)
- })) : (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) {
- u.hasClass("slick-current") && (h(n, g, s, f, !0), r && p(n, "delay", r), a && p(n, "duration", a))
- }), t.on("beforeChange", function (t, e, i) {
- h(n, m, s, f, !0)
- }))
- })
- }), this
- }
- }(jQuery),
- function (c, u, h) {
- c.fn.scrollUp = function (t) {
- c.data(h.body, "scrollUp") || (c.data(h.body, "scrollUp", !0), c.fn.scrollUp.init(t))
- }, c.fn.scrollUp.init = function (t) {
- var e, i, n, s, o, r, a = c.fn.scrollUp.settings = c.extend({}, c.fn.scrollUp.defaults, t),
- l = !1;
- switch (r = a.scrollTrigger ? c(a.scrollTrigger) : c("<a/>", {
- id: a.scrollName,
- href: "#top"
- }), a.scrollTitle && r.attr("title", a.scrollTitle), r.appendTo("body"), a.scrollImg || a.scrollTrigger || r.html(a.scrollText), r.css({
- display: "none",
- position: "fixed",
- zIndex: a.zIndex
- }), a.activeOverlay && c("<div/>", {
- id: a.scrollName + "-active"
- }).css({
- position: "absolute",
- top: a.scrollDistance + "px",
- width: "100%",
- borderTop: "1px dotted" + a.activeOverlay,
- zIndex: a.zIndex
- }).appendTo("body"), a.animation) {
- case "fade":
- e = "fadeIn", i = "fadeOut", n = a.animationSpeed;
- break;
- case "slide":
- e = "slideDown", i = "slideUp", n = a.animationSpeed;
- break;
- default:
- e = "show", i = "hide", n = 0
- }
- s = "top" === a.scrollFrom ? a.scrollDistance : c(h).height() - c(u).height() - a.scrollDistance, c(u).scroll(function () {
- c(u).scrollTop() > s ? l || (r[e](n), l = !0) : l && (r[i](n), l = !1)
- }), 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) {
- t.preventDefault(), c("html, body").animate({
- scrollTop: o
- }, a.scrollSpeed, a.easingType)
- })
- }, c.fn.scrollUp.defaults = {
- scrollName: "scrollUp",
- scrollDistance: 300,
- scrollFrom: "top",
- scrollSpeed: 300,
- easingType: "linear",
- animation: "fade",
- animationSpeed: 200,
- scrollTrigger: !1,
- scrollTarget: !1,
- scrollText: "Scroll to top",
- scrollTitle: !1,
- scrollImg: !1,
- activeOverlay: !1,
- zIndex: 2147483647
- }, c.fn.scrollUp.destroy = function (t) {
- 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)
- }, c.scrollUp = c.fn.scrollUp
- }(jQuery, window, document),
- function (t, e) {
- "object" == ("undefined" == typeof module ? "undefined" : _typeof(module)) && "object" == _typeof(module.exports) ? module.exports = t.document ? e(t, !0) : function (t) {
- if (!t.document) throw new Error("jQuery requires a window with a document");
- return e(t)
- } : e(t)
- }("undefined" != typeof window ? window : void 0, function (x, t) {
- function g(t) {
- return null != t && t === t.window
- }
- var e = [],
- n = Object.getPrototypeOf,
- a = e.slice,
- m = e.flat ? function (t) {
- return e.flat.call(t)
- } : function (t) {
- return e.concat.apply([], t)
- },
- l = e.push,
- s = e.indexOf,
- i = {},
- o = i.toString,
- v = i.hasOwnProperty,
- r = v.toString,
- c = r.call(Object),
- _ = {},
- y = function (t) {
- return "function" == typeof t && "number" != typeof t.nodeType && "function" != typeof t.item
- },
- C = x.document,
- u = {
- type: !0,
- src: !0,
- nonce: !0,
- noModule: !0
- };
-
- function b(t, e, i) {
- var n, s, o = (i = i || C).createElement("script");
- if (o.text = t, e)
- for (n in u)(s = e[n] || e.getAttribute && e.getAttribute(n)) && o.setAttribute(n, s);
- i.head.appendChild(o).parentNode.removeChild(o)
- }
-
- function w(t) {
- return null == t ? t + "" : "object" == _typeof(t) || "function" == typeof t ? i[o.call(t)] || "object" : _typeof(t)
- }
- var T = function t(e, i) {
- return new t.fn.init(e, i)
- };
-
- function h(t) {
- var e = !!t && "length" in t && t.length,
- i = w(t);
- return !y(t) && !g(t) && ("array" === i || 0 === e || "number" == typeof e && 0 < e && e - 1 in t)
- }
- T.fn = T.prototype = {
- jquery: "3.6.0",
- constructor: T,
- length: 0,
- toArray: function () {
- return a.call(this)
- },
- get: function (t) {
- return null == t ? a.call(this) : t < 0 ? this[t + this.length] : this[t]
- },
- pushStack: function (t) {
- var e = T.merge(this.constructor(), t);
- return e.prevObject = this, e
- },
- each: function (t) {
- return T.each(this, t)
- },
- map: function (i) {
- return this.pushStack(T.map(this, function (t, e) {
- return i.call(t, e, t)
- }))
- },
- slice: function () {
- return this.pushStack(a.apply(this, arguments))
- },
- first: function () {
- return this.eq(0)
- },
- last: function () {
- return this.eq(-1)
- },
- even: function () {
- return this.pushStack(T.grep(this, function (t, e) {
- return (e + 1) % 2
- }))
- },
- odd: function () {
- return this.pushStack(T.grep(this, function (t, e) {
- return e % 2
- }))
- },
- eq: function (t) {
- var e = this.length,
- i = +t + (t < 0 ? e : 0);
- return this.pushStack(0 <= i && i < e ? [this[i]] : [])
- },
- end: function () {
- return this.prevObject || this.constructor()
- },
- push: l,
- sort: e.sort,
- splice: e.splice
- }, T.extend = T.fn.extend = function () {
- var t, e, i, n, s, o, r = arguments[0] || {},
- a = 1,
- l = arguments.length,
- c = !1;
- for ("boolean" == typeof r && (c = r, r = arguments[a] || {}, a++), "object" == _typeof(r) || y(r) || (r = {}), a === l && (r = this, a--); a < l; a++)
- if (null != (t = arguments[a]))
- 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));
- return r
- }, T.extend({
- expando: "jQuery" + ("3.6.0" + Math.random()).replace(/\D/g, ""),
- isReady: !0,
- error: function (t) {
- throw new Error(t)
- },
- noop: function () {},
- isPlainObject: function (t) {
- var e, i;
- return !(!t || "[object Object]" !== o.call(t) || (e = n(t)) && ("function" != typeof (i = v.call(e, "constructor") && e.constructor) || r.call(i) !== c))
- },
- isEmptyObject: function (t) {
- var e;
- for (e in t) return !1;
- return !0
- },
- globalEval: function (t, e, i) {
- b(t, {
- nonce: e && e.nonce
- }, i)
- },
- each: function (t, e) {
- var i, n = 0;
- if (h(t))
- for (i = t.length; n < i && !1 !== e.call(t[n], n, t[n]); n++);
- else
- for (n in t)
- if (!1 === e.call(t[n], n, t[n])) break;
- return t
- },
- makeArray: function (t, e) {
- var i = e || [];
- return null != t && (h(Object(t)) ? T.merge(i, "string" == typeof t ? [t] : t) : l.call(i, t)), i
- },
- inArray: function (t, e, i) {
- return null == e ? -1 : s.call(e, t, i)
- },
- merge: function (t, e) {
- for (var i = +e.length, n = 0, s = t.length; n < i; n++) t[s++] = e[n];
- return t.length = s, t
- },
- grep: function (t, e, i) {
- for (var n = [], s = 0, o = t.length, r = !i; s < o; s++) !e(t[s], s) != r && n.push(t[s]);
- return n
- },
- map: function (t, e, i) {
- var n, s, o = 0,
- r = [];
- if (h(t))
- for (n = t.length; o < n; o++) null != (s = e(t[o], o, i)) && r.push(s);
- else
- for (o in t) null != (s = e(t[o], o, i)) && r.push(s);
- return m(r)
- },
- guid: 1,
- support: _
- }), "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) {
- i["[object " + e + "]"] = e.toLowerCase()
- });
- var d = function (i) {
- function h(t, e) {
- var i = "0x" + t.slice(1) - 65536;
- return e || (i < 0 ? String.fromCharCode(65536 + i) : String.fromCharCode(i >> 10 | 55296, 1023 & i | 56320))
- }
-
- function s() {
- k()
- }
- var t, p, b, o, r, f, d, g, w, l, c, k, x, a, C, m, u, v, _, T = "sizzle" + 1 * new Date,
- y = i.document,
- S = 0,
- n = 0,
- D = lt(),
- A = lt(),
- E = lt(),
- P = lt(),
- I = function (t, e) {
- return t === e && (c = !0), 0
- },
- O = {}.hasOwnProperty,
- e = [],
- M = e.pop,
- N = e.push,
- L = e.push,
- H = e.slice,
- j = function (t, e) {
- for (var i = 0, n = t.length; i < n; i++)
- if (t[i] === e) return i;
- return -1
- },
- z = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
- W = "[\\x20\\t\\r\\n\\f]",
- $ = "(?:\\\\[\\da-fA-F]{1,6}" + W + "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",
- R = "\\[" + W + "*(" + $ + ")(?:" + W + "*([*^$|!~]?=)" + W + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + $ + "))|)" + W + "*\\]",
- F = ":(" + $ + ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" + R + ")*)|.*)\\)|)",
- q = new RegExp(W + "+", "g"),
- B = new RegExp("^" + W + "+|((?:^|[^\\\\])(?:\\\\.)*)" + W + "+$", "g"),
- U = new RegExp("^" + W + "*," + W + "*"),
- Y = new RegExp("^" + W + "*([>+~]|" + W + ")" + W + "*"),
- V = new RegExp(W + "|>"),
- K = new RegExp(F),
- X = new RegExp("^" + $ + "$"),
- Q = {
- ID: new RegExp("^#(" + $ + ")"),
- CLASS: new RegExp("^\\.(" + $ + ")"),
- TAG: new RegExp("^(" + $ + "|[*])"),
- ATTR: new RegExp("^" + R),
- PSEUDO: new RegExp("^" + F),
- CHILD: new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + W + "*(even|odd|(([+-]|)(\\d*)n|)" + W + "*(?:([+-]|)" + W + "*(\\d+)|))" + W + "*\\)|)", "i"),
- bool: new RegExp("^(?:" + z + ")$", "i"),
- needsContext: new RegExp("^" + W + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + W + "*((?:-\\d)?\\d*)" + W + "*\\)|)(?=[^-]|$)", "i")
- },
- G = /HTML$/i,
- J = /^(?:input|select|textarea|button)$/i,
- Z = /^h\d$/i,
- tt = /^[^{]+\{\s*\[native \w/,
- et = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
- it = /[+~]/,
- nt = new RegExp("\\\\[\\da-fA-F]{1,6}" + W + "?|\\\\([^\\r\\n\\f])", "g"),
- st = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,
- ot = function (t, e) {
- return e ? "\0" === t ? "�" : t.slice(0, -1) + "\\" + t.charCodeAt(t.length - 1).toString(16) + " " : "\\" + t
- },
- rt = bt(function (t) {
- return !0 === t.disabled && "fieldset" === t.nodeName.toLowerCase()
- }, {
- dir: "parentNode",
- next: "legend"
- });
- try {
- L.apply(e = H.call(y.childNodes), y.childNodes), e[y.childNodes.length].nodeType
- } catch (t) {
- L = {
- apply: e.length ? function (t, e) {
- N.apply(t, H.call(e))
- } : function (t, e) {
- for (var i = t.length, n = 0; t[i++] = e[n++];);
- t.length = i - 1
- }
- }
- }
-
- function at(t, e, i, n) {
- var s, o, r, a, l, c, u, h = e && e.ownerDocument,
- d = e ? e.nodeType : 9;
- if (i = i || [], "string" != typeof t || !t || 1 !== d && 9 !== d && 11 !== d) return i;
- if (!n && (k(e), e = e || x, C)) {
- if (11 !== d && (l = et.exec(t)))
- if (s = l[1]) {
- if (9 === d) {
- if (!(r = e.getElementById(s))) return i;
- if (r.id === s) return i.push(r), i
- } else if (h && (r = h.getElementById(s)) && _(e, r) && r.id === s) return i.push(r), i
- } else {
- if (l[2]) return L.apply(i, e.getElementsByTagName(t)), i;
- if ((s = l[3]) && p.getElementsByClassName && e.getElementsByClassName) return L.apply(i, e.getElementsByClassName(s)), i
- } if (p.qsa && !P[t + " "] && (!m || !m.test(t)) && (1 !== d || "object" !== e.nodeName.toLowerCase())) {
- if (u = t, h = e, 1 === d && (V.test(t) || Y.test(t))) {
- 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]);
- u = c.join(",")
- }
- try {
- return L.apply(i, h.querySelectorAll(u)), i
- } catch (e) {
- P(t, !0)
- } finally {
- a === T && e.removeAttribute("id")
- }
- }
- }
- return g(t.replace(B, "$1"), e, i, n)
- }
-
- function lt() {
- var n = [];
- return function t(e, i) {
- return n.push(e + " ") > b.cacheLength && delete t[n.shift()], t[e + " "] = i
- }
- }
-
- function ct(t) {
- return t[T] = !0, t
- }
-
- function ut(t) {
- var e = x.createElement("fieldset");
- try {
- return !!t(e)
- } catch (t) {
- return !1
- } finally {
- e.parentNode && e.parentNode.removeChild(e), e = null
- }
- }
-
- function ht(t, e) {
- for (var i = t.split("|"), n = i.length; n--;) b.attrHandle[i[n]] = e
- }
-
- function dt(t, e) {
- var i = e && t,
- n = i && 1 === t.nodeType && 1 === e.nodeType && t.sourceIndex - e.sourceIndex;
- if (n) return n;
- if (i)
- for (; i = i.nextSibling;)
- if (i === e) return -1;
- return t ? 1 : -1
- }
-
- function pt(e) {
- return function (t) {
- return "input" === t.nodeName.toLowerCase() && t.type === e
- }
- }
-
- function ft(i) {
- return function (t) {
- var e = t.nodeName.toLowerCase();
- return ("input" === e || "button" === e) && t.type === i
- }
- }
-
- function gt(e) {
- return function (t) {
- 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
- }
- }
-
- function mt(r) {
- return ct(function (o) {
- return o = +o, ct(function (t, e) {
- for (var i, n = r([], t.length, o), s = n.length; s--;) t[i = n[s]] && (t[i] = !(e[i] = t[i]))
- })
- })
- }
-
- function vt(t) {
- return t && void 0 !== t.getElementsByTagName && t
- }
- for (t in p = at.support = {}, r = at.isXML = function (t) {
- var e = t && t.namespaceURI,
- i = t && (t.ownerDocument || t).documentElement;
- return !G.test(e || i && i.nodeName || "HTML")
- }, k = at.setDocument = function (t) {
- var e, i, n = t ? t.ownerDocument || t : y;
- 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) {
- return a.appendChild(t).appendChild(x.createElement("div")), void 0 !== t.querySelectorAll && !t.querySelectorAll(":scope fieldset div").length
- }), p.attributes = ut(function (t) {
- return t.className = "i", !t.getAttribute("className")
- }), p.getElementsByTagName = ut(function (t) {
- return t.appendChild(x.createComment("")), !t.getElementsByTagName("*").length
- }), p.getElementsByClassName = tt.test(x.getElementsByClassName), p.getById = ut(function (t) {
- return a.appendChild(t).id = T, !x.getElementsByName || !x.getElementsByName(T).length
- }), p.getById ? (b.filter.ID = function (t) {
- var e = t.replace(nt, h);
- return function (t) {
- return t.getAttribute("id") === e
- }
- }, b.find.ID = function (t, e) {
- if (void 0 !== e.getElementById && C) {
- var i = e.getElementById(t);
- return i ? [i] : []
- }
- }) : (b.filter.ID = function (t) {
- var i = t.replace(nt, h);
- return function (t) {
- var e = void 0 !== t.getAttributeNode && t.getAttributeNode("id");
- return e && e.value === i
- }
- }, b.find.ID = function (t, e) {
- if (void 0 !== e.getElementById && C) {
- var i, n, s, o = e.getElementById(t);
- if (o) {
- if ((i = o.getAttributeNode("id")) && i.value === t) return [o];
- for (s = e.getElementsByName(t), n = 0; o = s[n++];)
- if ((i = o.getAttributeNode("id")) && i.value === t) return [o]
- }
- return []
- }
- }), b.find.TAG = p.getElementsByTagName ? function (t, e) {
- return void 0 !== e.getElementsByTagName ? e.getElementsByTagName(t) : p.qsa ? e.querySelectorAll(t) : void 0
- } : function (t, e) {
- var i, n = [],
- s = 0,
- o = e.getElementsByTagName(t);
- if ("*" !== t) return o;
- for (; i = o[s++];) 1 === i.nodeType && n.push(i);
- return n
- }, b.find.CLASS = p.getElementsByClassName && function (t, e) {
- if (void 0 !== e.getElementsByClassName && C) return e.getElementsByClassName(t)
- }, u = [], m = [], (p.qsa = tt.test(x.querySelectorAll)) && (ut(function (t) {
- var e;
- 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]")
- }), ut(function (t) {
- t.innerHTML = "<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";
- var e = x.createElement("input");
- 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(",.*:")
- })), (p.matchesSelector = tt.test(v = a.matches || a.webkitMatchesSelector || a.mozMatchesSelector || a.oMatchesSelector || a.msMatchesSelector)) && ut(function (t) {
- p.disconnectedMatch = v.call(t, "*"), v.call(t, "[s!='']:x"), u.push("!=", F)
- }), 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) {
- var i = 9 === t.nodeType ? t.documentElement : t,
- n = e && e.parentNode;
- return t === n || !(!n || 1 !== n.nodeType || !(i.contains ? i.contains(n) : t.compareDocumentPosition && 16 & t.compareDocumentPosition(n)))
- } : function (t, e) {
- if (e)
- for (; e = e.parentNode;)
- if (e === t) return !0;
- return !1
- }, I = e ? function (t, e) {
- if (t === e) return c = !0, 0;
- var i = !t.compareDocumentPosition - !e.compareDocumentPosition;
- 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)
- } : function (t, e) {
- if (t === e) return c = !0, 0;
- var i, n = 0,
- s = t.parentNode,
- o = e.parentNode,
- r = [t],
- a = [e];
- if (!s || !o) return t == x ? -1 : e == x ? 1 : s ? -1 : o ? 1 : l ? j(l, t) - j(l, e) : 0;
- if (s === o) return dt(t, e);
- for (i = t; i = i.parentNode;) r.unshift(i);
- for (i = e; i = i.parentNode;) a.unshift(i);
- for (; r[n] === a[n];) n++;
- return n ? dt(r[n], a[n]) : r[n] == y ? -1 : a[n] == y ? 1 : 0
- }), x
- }, at.matches = function (t, e) {
- return at(t, null, null, e)
- }, at.matchesSelector = function (t, e) {
- if (k(t), p.matchesSelector && C && !P[e + " "] && (!u || !u.test(e)) && (!m || !m.test(e))) try {
- var i = v.call(t, e);
- if (i || p.disconnectedMatch || t.document && 11 !== t.document.nodeType) return i
- } catch (t) {
- P(e, !0)
- }
- return 0 < at(e, x, null, [t]).length
- }, at.contains = function (t, e) {
- return (t.ownerDocument || t) != x && k(t), _(t, e)
- }, at.attr = function (t, e) {
- (t.ownerDocument || t) != x && k(t);
- var i = b.attrHandle[e.toLowerCase()],
- n = i && O.call(b.attrHandle, e.toLowerCase()) ? i(t, e, !C) : void 0;
- return void 0 !== n ? n : p.attributes || !C ? t.getAttribute(e) : (n = t.getAttributeNode(e)) && n.specified ? n.value : null
- }, at.escape = function (t) {
- return (t + "").replace(st, ot)
- }, at.error = function (t) {
- throw new Error("Syntax error, unrecognized expression: " + t)
- }, at.uniqueSort = function (t) {
- var e, i = [],
- n = 0,
- s = 0;
- if (c = !p.detectDuplicates, l = !p.sortStable && t.slice(0), t.sort(I), c) {
- for (; e = t[s++];) e === t[s] && (n = i.push(s));
- for (; n--;) t.splice(i[n], 1)
- }
- return l = null, t
- }, o = at.getText = function (t) {
- var e, i = "",
- n = 0,
- s = t.nodeType;
- if (s) {
- if (1 === s || 9 === s || 11 === s) {
- if ("string" == typeof t.textContent) return t.textContent;
- for (t = t.firstChild; t; t = t.nextSibling) i += o(t)
- } else if (3 === s || 4 === s) return t.nodeValue
- } else
- for (; e = t[n++];) i += o(e);
- return i
- }, (b = at.selectors = {
- cacheLength: 50,
- createPseudo: ct,
- match: Q,
- attrHandle: {},
- find: {},
- relative: {
- ">": {
- dir: "parentNode",
- first: !0
- },
- " ": {
- dir: "parentNode"
- },
- "+": {
- dir: "previousSibling",
- first: !0
- },
- "~": {
- dir: "previousSibling"
- }
- },
- preFilter: {
- ATTR: function (t) {
- 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)
- },
- CHILD: function (t) {
- 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
- },
- PSEUDO: function (t) {
- var e, i = !t[6] && t[2];
- 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))
- }
- },
- filter: {
- TAG: function (t) {
- var e = t.replace(nt, h).toLowerCase();
- return "*" === t ? function () {
- return !0
- } : function (t) {
- return t.nodeName && t.nodeName.toLowerCase() === e
- }
- },
- CLASS: function (t) {
- var e = D[t + " "];
- return e || (e = new RegExp("(^|" + W + ")" + t + "(" + W + "|$)")) && D(t, function (t) {
- return e.test("string" == typeof t.className && t.className || void 0 !== t.getAttribute && t.getAttribute("class") || "")
- })
- },
- ATTR: function (i, n, s) {
- return function (t) {
- var e = at.attr(t, i);
- 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 + "-"))
- }
- },
- CHILD: function (f, t, e, g, m) {
- var v = "nth" !== f.slice(0, 3),
- _ = "last" !== f.slice(-4),
- y = "of-type" === t;
- return 1 === g && 0 === m ? function (t) {
- return !!t.parentNode
- } : function (t, e, i) {
- var n, s, o, r, a, l, c = v != _ ? "nextSibling" : "previousSibling",
- u = t.parentNode,
- h = y && t.nodeName.toLowerCase(),
- d = !i && !y,
- p = !1;
- if (u) {
- if (v) {
- for (; c;) {
- for (r = t; r = r[c];)
- if (y ? r.nodeName.toLowerCase() === h : 1 === r.nodeType) return !1;
- l = c = "only" === f && !l && "nextSibling"
- }
- return !0
- }
- if (l = [_ ? u.firstChild : u.lastChild], _ && d) {
- 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();)
- if (1 === r.nodeType && ++p && r === t) {
- s[f] = [S, a, p];
- break
- }
- } 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)
- for (;
- (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)););
- return (p -= m) === g || p % g == 0 && 0 <= p / g
- }
- }
- },
- PSEUDO: function (t, o) {
- var e, r = b.pseudos[t] || b.setFilters[t.toLowerCase()] || at.error("unsupported pseudo: " + t);
- return r[T] ? r(o) : 1 < r.length ? (e = [t, t, "", o], b.setFilters.hasOwnProperty(t.toLowerCase()) ? ct(function (t, e) {
- for (var i, n = r(t, o), s = n.length; s--;) t[i = j(t, n[s])] = !(e[i] = n[s])
- }) : function (t) {
- return r(t, 0, e)
- }) : r
- }
- },
- pseudos: {
- not: ct(function (t) {
- var n = [],
- s = [],
- a = d(t.replace(B, "$1"));
- return a[T] ? ct(function (t, e, i, n) {
- for (var s, o = a(t, null, n, []), r = t.length; r--;)(s = o[r]) && (t[r] = !(e[r] = s))
- }) : function (t, e, i) {
- return n[0] = t, a(n, null, i, s), n[0] = null, !s.pop()
- }
- }),
- has: ct(function (e) {
- return function (t) {
- return 0 < at(e, t).length
- }
- }),
- contains: ct(function (e) {
- return e = e.replace(nt, h),
- function (t) {
- return -1 < (t.textContent || o(t)).indexOf(e)
- }
- }),
- lang: ct(function (i) {
- return X.test(i || "") || at.error("unsupported lang: " + i), i = i.replace(nt, h).toLowerCase(),
- function (t) {
- var e;
- do {
- if (e = C ? t.lang : t.getAttribute("xml:lang") || t.getAttribute("lang")) return (e = e.toLowerCase()) === i || 0 === e.indexOf(i + "-")
- } while ((t = t.parentNode) && 1 === t.nodeType);
- return !1
- }
- }),
- target: function (t) {
- var e = i.location && i.location.hash;
- return e && e.slice(1) === t.id
- },
- root: function (t) {
- return t === a
- },
- focus: function (t) {
- return t === x.activeElement && (!x.hasFocus || x.hasFocus()) && !!(t.type || t.href || ~t.tabIndex)
- },
- enabled: gt(!1),
- disabled: gt(!0),
- checked: function (t) {
- var e = t.nodeName.toLowerCase();
- return "input" === e && !!t.checked || "option" === e && !!t.selected
- },
- selected: function (t) {
- return t.parentNode && t.parentNode.selectedIndex, !0 === t.selected
- },
- empty: function (t) {
- for (t = t.firstChild; t; t = t.nextSibling)
- if (t.nodeType < 6) return !1;
- return !0
- },
- parent: function (t) {
- return !b.pseudos.empty(t)
- },
- header: function (t) {
- return Z.test(t.nodeName)
- },
- input: function (t) {
- return J.test(t.nodeName)
- },
- button: function (t) {
- var e = t.nodeName.toLowerCase();
- return "input" === e && "button" === t.type || "button" === e
- },
- text: function (t) {
- var e;
- return "input" === t.nodeName.toLowerCase() && "text" === t.type && (null == (e = t.getAttribute("type")) || "text" === e.toLowerCase())
- },
- first: mt(function () {
- return [0]
- }),
- last: mt(function (t, e) {
- return [e - 1]
- }),
- eq: mt(function (t, e, i) {
- return [i < 0 ? i + e : i]
- }),
- even: mt(function (t, e) {
- for (var i = 0; i < e; i += 2) t.push(i);
- return t
- }),
- odd: mt(function (t, e) {
- for (var i = 1; i < e; i += 2) t.push(i);
- return t
- }),
- lt: mt(function (t, e, i) {
- for (var n = i < 0 ? i + e : e < i ? e : i; 0 <= --n;) t.push(n);
- return t
- }),
- gt: mt(function (t, e, i) {
- for (var n = i < 0 ? i + e : i; ++n < e;) t.push(n);
- return t
- })
- }
- }).pseudos.nth = b.pseudos.eq, {
- radio: !0,
- checkbox: !0,
- file: !0,
- password: !0,
- image: !0
- }) b.pseudos[t] = pt(t);
- for (t in {
- submit: !0,
- reset: !0
- }) b.pseudos[t] = ft(t);
-
- function _t() {}
-
- function yt(t) {
- for (var e = 0, i = t.length, n = ""; e < i; e++) n += t[e].value;
- return n
- }
-
- function bt(a, t, e) {
- var l = t.dir,
- c = t.next,
- u = c || l,
- h = e && "parentNode" === u,
- d = n++;
- return t.first ? function (t, e, i) {
- for (; t = t[l];)
- if (1 === t.nodeType || h) return a(t, e, i);
- return !1
- } : function (t, e, i) {
- var n, s, o, r = [S, d];
- if (i) {
- for (; t = t[l];)
- if ((1 === t.nodeType || h) && a(t, e, i)) return !0
- } else
- for (; t = t[l];)
- if (1 === t.nodeType || h)
- if (s = (o = t[T] || (t[T] = {}))[t.uniqueID] || (o[t.uniqueID] = {}), c && c === t.nodeName.toLowerCase()) t = t[l] || t;
- else {
- if ((n = s[u]) && n[0] === S && n[1] === d) return r[2] = n[2];
- if ((s[u] = r)[2] = a(t, e, i)) return !0
- } return !1
- }
- }
-
- function wt(s) {
- return 1 < s.length ? function (t, e, i) {
- for (var n = s.length; n--;)
- if (!s[n](t, e, i)) return !1;
- return !0
- } : s[0]
- }
-
- function kt(t, e, i, n, s) {
- 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)));
- return r
- }
-
- function xt(p, f, g, m, v, t) {
- return m && !m[T] && (m = xt(m)), v && !v[T] && (v = xt(v, t)), ct(function (t, e, i, n) {
- var s, o, r, a = [],
- l = [],
- c = e.length,
- u = t || function (t, e, i) {
- for (var n = 0, s = e.length; n < s; n++) at(t, e[n], i);
- return i
- }(f || "*", i.nodeType ? [i] : i, []),
- h = !p || !t && f ? u : kt(u, a, p, i, n),
- d = g ? v || (t ? p : c || m) ? [] : e : h;
- if (g && g(h, d, i, n), m)
- for (s = kt(d, l), m(s, [], i, n), o = s.length; o--;)(r = s[o]) && (d[l[o]] = !(h[l[o]] = r));
- if (t) {
- if (v || p) {
- if (v) {
- for (s = [], o = d.length; o--;)(r = d[o]) && s.push(h[o] = r);
- v(null, d = [], s, n)
- }
- for (o = d.length; o--;)(r = d[o]) && -1 < (s = v ? j(t, r) : a[o]) && (t[s] = !(e[s] = r))
- }
- } else d = kt(d === e ? d.splice(c, d.length) : d), v ? v(null, e, d, n) : L.apply(e, d)
- })
- }
-
- function Ct(t) {
- 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) {
- return t === s
- }, r, !0), c = bt(function (t) {
- return -1 < j(s, t)
- }, r, !0), u = [function (t, e, i) {
- var n = !o && (i || e !== w) || ((s = e).nodeType ? l(t, e, i) : c(t, e, i));
- return s = null, n
- }]; a < n; a++)
- if (e = b.relative[t[a].type]) u = [bt(wt(u), e)];
- else {
- if ((e = b.filter[t[a].type].apply(null, t[a].matches))[T]) {
- for (i = ++a; i < n && !b.relative[t[i].type]; i++);
- return xt(1 < a && wt(u), 1 < a && yt(t.slice(0, a - 1).concat({
- value: " " === t[a - 2].type ? "*" : ""
- })).replace(B, "$1"), e, a < i && Ct(t.slice(a, i)), i < n && Ct(t = t.slice(i)), i < n && yt(t))
- }
- u.push(e)
- } return wt(u)
- }
- return _t.prototype = b.filters = b.pseudos, b.setFilters = new _t, f = at.tokenize = function (t, e) {
- var i, n, s, o, r, a, l, c = A[t + " "];
- if (c) return e ? 0 : c.slice(0);
- for (r = t, a = [], l = b.preFilter; r;) {
- 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({
- value: i,
- type: n[0].replace(B, " ")
- }), r = r.slice(i.length)), b.filter) !(n = Q[o].exec(r)) || l[o] && !(n = l[o](n)) || (i = n.shift(), s.push({
- value: i,
- type: o,
- matches: n
- }), r = r.slice(i.length));
- if (!i) break
- }
- return e ? r.length : r ? at.error(t) : A(t, a).slice(0)
- }, d = at.compile = function (t, e) {
- var i, m, v, _, y, n, s = [],
- o = [],
- r = E[t + " "];
- if (!r) {
- for (e || (e = f(t)), i = e.length; i--;)(r = Ct(e[i]))[T] ? s.push(r) : o.push(r);
- (r = E(t, (m = o, _ = 0 < (v = s).length, y = 0 < m.length, n = function (t, e, i, n, s) {
- var o, r, a, l = 0,
- c = "0",
- u = t && [],
- h = [],
- d = w,
- p = t || y && b.find.TAG("*", s),
- f = S += null == d ? 1 : Math.random() || .1,
- g = p.length;
- for (s && (w = e == x || e || s); c !== g && null != (o = p[c]); c++) {
- if (y && o) {
- for (r = 0, e || o.ownerDocument == x || (k(o), i = !C); a = m[r++];)
- if (a(o, e || x, i)) {
- n.push(o);
- break
- } s && (S = f)
- }
- _ && ((o = !a && o) && l--, t && u.push(o))
- }
- if (l += c, _ && c !== l) {
- for (r = 0; a = v[r++];) a(u, h, e, i);
- if (t) {
- if (0 < l)
- for (; c--;) u[c] || h[c] || (h[c] = M.call(n));
- h = kt(h)
- }
- L.apply(n, h), s && !t && 0 < h.length && 1 < l + v.length && at.uniqueSort(n)
- }
- return s && (S = f, w = d), u
- }, _ ? ct(n) : n))).selector = t
- }
- return r
- }, g = at.select = function (t, e, i, n) {
- var s, o, r, a, l, c = "function" == typeof t && t,
- u = !n && f(t = c.selector || t);
- if (i = i || [], 1 === u.length) {
- if (2 < (o = u[0] = u[0].slice(0)).length && "ID" === (r = o[0]).type && 9 === e.nodeType && C && b.relative[o[1].type]) {
- if (!(e = (b.find.ID(r.matches[0].replace(nt, h), e) || [])[0])) return i;
- c && (e = e.parentNode), t = t.slice(o.shift().value.length)
- }
- for (s = Q.needsContext.test(t) ? 0 : o.length; s-- && (r = o[s], !b.relative[a = r.type]);)
- if ((l = b.find[a]) && (n = l(r.matches[0].replace(nt, h), it.test(o[0].type) && vt(e.parentNode) || e))) {
- if (o.splice(s, 1), !(t = n.length && yt(o))) return L.apply(i, n), i;
- break
- }
- }
- return (c || d(t, u))(n, e, !C, i, !e || it.test(t) && vt(e.parentNode) || e), i
- }, p.sortStable = T.split("").sort(I).join("") === T, p.detectDuplicates = !!c, k(), p.sortDetached = ut(function (t) {
- return 1 & t.compareDocumentPosition(x.createElement("fieldset"))
- }), ut(function (t) {
- return t.innerHTML = "<a href='#'></a>", "#" === t.firstChild.getAttribute("href")
- }) || ht("type|href|height|width", function (t, e, i) {
- if (!i) return t.getAttribute(e, "type" === e.toLowerCase() ? 1 : 2)
- }), p.attributes && ut(function (t) {
- return t.innerHTML = "<input/>", t.firstChild.setAttribute("value", ""), "" === t.firstChild.getAttribute("value")
- }) || ht("value", function (t, e, i) {
- if (!i && "input" === t.nodeName.toLowerCase()) return t.defaultValue
- }), ut(function (t) {
- return null == t.getAttribute("disabled")
- }) || ht(z, function (t, e, i) {
- var n;
- if (!i) return !0 === t[e] ? e.toLowerCase() : (n = t.getAttributeNode(e)) && n.specified ? n.value : null
- }), at
- }(x);
- 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;
-
- function p(t, e, i) {
- for (var n = [], s = void 0 !== i;
- (t = t[e]) && 9 !== t.nodeType;)
- if (1 === t.nodeType) {
- if (s && T(t).is(i)) break;
- n.push(t)
- } return n
- }
-
- function f(t, e) {
- for (var i = []; t; t = t.nextSibling) 1 === t.nodeType && t !== e && i.push(t);
- return i
- }
- var k = T.expr.match.needsContext;
-
- function S(t, e) {
- return t.nodeName && t.nodeName.toLowerCase() === e.toLowerCase()
- }
- var D = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;
-
- function A(t, i, n) {
- return y(i) ? T.grep(t, function (t, e) {
- return !!i.call(t, e, t) !== n
- }) : i.nodeType ? T.grep(t, function (t) {
- return t === i !== n
- }) : "string" != typeof i ? T.grep(t, function (t) {
- return -1 < s.call(i, t) !== n
- }) : T.filter(i, t, n)
- }
- T.filter = function (t, e, i) {
- var n = e[0];
- 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) {
- return 1 === t.nodeType
- }))
- }, T.fn.extend({
- find: function (t) {
- var e, i, n = this.length,
- s = this;
- if ("string" != typeof t) return this.pushStack(T(t).filter(function () {
- for (e = 0; e < n; e++)
- if (T.contains(s[e], this)) return !0
- }));
- for (i = this.pushStack([]), e = 0; e < n; e++) T.find(t, s[e], i);
- return 1 < n ? T.uniqueSort(i) : i
- },
- filter: function (t) {
- return this.pushStack(A(this, t || [], !1))
- },
- not: function (t) {
- return this.pushStack(A(this, t || [], !0))
- },
- is: function (t) {
- return !!A(this, "string" == typeof t && k.test(t) ? T(t) : t || [], !1).length
- }
- });
- var E, P = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;
- (T.fn.init = function (t, e, i) {
- var n, s;
- if (!t) return this;
- 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);
- 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);
- if (n[1]) {
- 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))
- for (n in e) y(this[n]) ? this[n](e[n]) : this.attr(n, e[n]);
- return this
- }
- return (s = C.getElementById(n[2])) && (this[0] = s, this.length = 1), this
- }).prototype = T.fn, E = T(C);
- var I = /^(?:parents|prev(?:Until|All))/,
- O = {
- children: !0,
- contents: !0,
- next: !0,
- prev: !0
- };
-
- function M(t, e) {
- for (;
- (t = t[e]) && 1 !== t.nodeType;);
- return t
- }
- T.fn.extend({
- has: function (t) {
- var e = T(t, this),
- i = e.length;
- return this.filter(function () {
- for (var t = 0; t < i; t++)
- if (T.contains(this, e[t])) return !0
- })
- },
- closest: function (t, e) {
- var i, n = 0,
- s = this.length,
- o = [],
- r = "string" != typeof t && T(t);
- if (!k.test(t))
- for (; n < s; n++)
- for (i = this[n]; i && i !== e; i = i.parentNode)
- if (i.nodeType < 11 && (r ? -1 < r.index(i) : 1 === i.nodeType && T.find.matchesSelector(i, t))) {
- o.push(i);
- break
- } return this.pushStack(1 < o.length ? T.uniqueSort(o) : o)
- },
- index: function (t) {
- 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
- },
- add: function (t, e) {
- return this.pushStack(T.uniqueSort(T.merge(this.get(), T(t, e))))
- },
- addBack: function (t) {
- return this.add(null == t ? this.prevObject : this.prevObject.filter(t))
- }
- }), T.each({
- parent: function (t) {
- var e = t.parentNode;
- return e && 11 !== e.nodeType ? e : null
- },
- parents: function (t) {
- return p(t, "parentNode")
- },
- parentsUntil: function (t, e, i) {
- return p(t, "parentNode", i)
- },
- next: function (t) {
- return M(t, "nextSibling")
- },
- prev: function (t) {
- return M(t, "previousSibling")
- },
- nextAll: function (t) {
- return p(t, "nextSibling")
- },
- prevAll: function (t) {
- return p(t, "previousSibling")
- },
- nextUntil: function (t, e, i) {
- return p(t, "nextSibling", i)
- },
- prevUntil: function (t, e, i) {
- return p(t, "previousSibling", i)
- },
- siblings: function (t) {
- return f((t.parentNode || {}).firstChild, t)
- },
- children: function (t) {
- return f(t.firstChild)
- },
- contents: function (t) {
- return null != t.contentDocument && n(t.contentDocument) ? t.contentDocument : (S(t, "template") && (t = t.content || t), T.merge([], t.childNodes))
- }
- }, function (n, s) {
- T.fn[n] = function (t, e) {
- var i = T.map(this, s, t);
- 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)
- }
- });
- var N = /[^\x20\t\r\n\f]+/g;
-
- function L(t) {
- return t
- }
-
- function H(t) {
- throw t
- }
-
- function j(t, e, i, n) {
- var s;
- try {
- 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))
- } catch (t) {
- i.apply(void 0, [t])
- }
- }
- T.Callbacks = function (n) {
- var t, i;
- n = "string" == typeof n ? (t = n, i = {}, T.each(t.match(N) || [], function (t, e) {
- i[e] = !0
- }), i) : T.extend({}, n);
-
- function s() {
- for (a = a || n.once, r = o = !0; c.length; u = -1)
- for (e = c.shift(); ++u < l.length;) !1 === l[u].apply(e[0], e[1]) && n.stopOnFalse && (u = l.length, e = !1);
- n.memory || (e = !1), o = !1, a && (l = e ? [] : "")
- }
- var o, e, r, a, l = [],
- c = [],
- u = -1,
- h = {
- add: function () {
- return l && (e && !o && (u = l.length - 1, c.push(e)), function i(t) {
- T.each(t, function (t, e) {
- y(e) ? n.unique && h.has(e) || l.push(e) : e && e.length && "string" !== w(e) && i(e)
- })
- }(arguments), e && !o && s()), this
- },
- remove: function () {
- return T.each(arguments, function (t, e) {
- for (var i; - 1 < (i = T.inArray(e, l, i));) l.splice(i, 1), i <= u && u--
- }), this
- },
- has: function (t) {
- return t ? -1 < T.inArray(t, l) : 0 < l.length
- },
- empty: function () {
- return l && (l = []), this
- },
- disable: function () {
- return a = c = [], l = e = "", this
- },
- disabled: function () {
- return !l
- },
- lock: function () {
- return a = c = [], e || o || (l = e = ""), this
- },
- locked: function () {
- return !!a
- },
- fireWith: function (t, e) {
- return a || (e = [t, (e = e || []).slice ? e.slice() : e], c.push(e), o || s()), this
- },
- fire: function () {
- return h.fireWith(this, arguments), this
- },
- fired: function () {
- return !!r
- }
- };
- return h
- }, T.extend({
- Deferred: function (t) {
- var o = [
- ["notify", "progress", T.Callbacks("memory"), T.Callbacks("memory"), 2],
- ["resolve", "done", T.Callbacks("once memory"), T.Callbacks("once memory"), 0, "resolved"],
- ["reject", "fail", T.Callbacks("once memory"), T.Callbacks("once memory"), 1, "rejected"]
- ],
- s = "pending",
- r = {
- state: function () {
- return s
- },
- always: function () {
- return a.done(arguments).fail(arguments), this
- },
- catch: function (t) {
- return r.then(null, t)
- },
- pipe: function () {
- var s = arguments;
- return T.Deferred(function (n) {
- T.each(o, function (t, e) {
- var i = y(s[e[4]]) && s[e[4]];
- a[e[1]](function () {
- var t = i && i.apply(this, arguments);
- t && y(t.promise) ? t.promise().progress(n.notify).done(n.resolve).fail(n.reject) : n[e[0] + "With"](this, i ? [t] : arguments)
- })
- }), s = null
- }).promise()
- },
- then: function (e, i, n) {
- var l = 0;
-
- function c(s, o, r, a) {
- return function () {
- function t() {
- var t, e;
- if (!(s < l)) {
- if ((t = r.apply(i, n)) === o.promise()) throw new TypeError("Thenable self-resolution");
- 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))
- }
- }
- var i = this,
- n = arguments,
- e = a ? t : function () {
- try {
- t()
- } catch (t) {
- T.Deferred.exceptionHook && T.Deferred.exceptionHook(t, e.stackTrace), l <= s + 1 && (r !== H && (i = void 0, n = [t]), o.rejectWith(i, n))
- }
- };
- s ? e() : (T.Deferred.getStackHook && (e.stackTrace = T.Deferred.getStackHook()), x.setTimeout(e))
- }
- }
- return T.Deferred(function (t) {
- 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))
- }).promise()
- },
- promise: function (t) {
- return null != t ? T.extend(t, r) : r
- }
- },
- a = {};
- return T.each(o, function (t, e) {
- var i = e[2],
- n = e[5];
- r[e[1]] = i.add, n && i.add(function () {
- s = n
- }, 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 () {
- return a[e[0] + "With"](this === a ? void 0 : this, arguments), this
- }, a[e[0] + "With"] = i.fireWith
- }), r.promise(a), t && t.call(a, a), a
- },
- when: function (t) {
- function e(e) {
- return function (t) {
- s[e] = this, o[e] = 1 < arguments.length ? a.call(arguments) : t, --i || r.resolveWith(s, o)
- }
- }
- var i = arguments.length,
- n = i,
- s = Array(n),
- o = a.call(arguments),
- r = T.Deferred();
- 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();
- for (; n--;) j(o[n], e(n), r.reject);
- return r.promise()
- }
- });
- var z = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
- T.Deferred.exceptionHook = function (t, e) {
- x.console && x.console.warn && t && z.test(t.name) && x.console.warn("jQuery.Deferred exception: " + t.message, t.stack, e)
- }, T.readyException = function (t) {
- x.setTimeout(function () {
- throw t
- })
- };
- var W = T.Deferred();
-
- function $() {
- C.removeEventListener("DOMContentLoaded", $), x.removeEventListener("load", $), T.ready()
- }
- T.fn.ready = function (t) {
- return W.then(t).catch(function (t) {
- T.readyException(t)
- }), this
- }, T.extend({
- isReady: !1,
- readyWait: 1,
- ready: function (t) {
- (!0 === t ? --T.readyWait : T.isReady) || (T.isReady = !0) !== t && 0 < --T.readyWait || W.resolveWith(C, [T])
- }
- }), T.ready.then = W.then, "complete" === C.readyState || "loading" !== C.readyState && !C.documentElement.doScroll ? x.setTimeout(T.ready) : (C.addEventListener("DOMContentLoaded", $), x.addEventListener("load", $));
-
- function R(t, e, i, n, s, o, r) {
- var a = 0,
- l = t.length,
- c = null == i;
- if ("object" === w(i))
- for (a in s = !0, i) R(t, e, a, i[a], !0, o, r);
- 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) {
- return c.call(T(t), i)
- })), e))
- for (; a < l; a++) e(t[a], i, r ? n : n.call(t[a], a, e(t[a], i)));
- return s ? t : c ? e.call(t) : l ? e(t[0], i) : o
- }
- var F = /^-ms-/,
- q = /-([a-z])/g;
-
- function B(t, e) {
- return e.toUpperCase()
- }
-
- function U(t) {
- return t.replace(F, "ms-").replace(q, B)
- }
-
- function Y(t) {
- return 1 === t.nodeType || 9 === t.nodeType || !+t.nodeType
- }
-
- function V() {
- this.expando = T.expando + V.uid++
- }
- V.uid = 1, V.prototype = {
- cache: function (t) {
- var e = t[this.expando];
- return e || (e = {}, Y(t) && (t.nodeType ? t[this.expando] = e : Object.defineProperty(t, this.expando, {
- value: e,
- configurable: !0
- }))), e
- },
- set: function (t, e, i) {
- var n, s = this.cache(t);
- if ("string" == typeof e) s[U(e)] = i;
- else
- for (n in e) s[U(n)] = e[n];
- return s
- },
- get: function (t, e) {
- return void 0 === e ? this.cache(t) : t[this.expando] && t[this.expando][U(e)]
- },
- access: function (t, e, i) {
- 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)
- },
- remove: function (t, e) {
- var i, n = t[this.expando];
- if (void 0 !== n) {
- if (void 0 !== e) {
- i = (e = Array.isArray(e) ? e.map(U) : (e = U(e)) in n ? [e] : e.match(N) || []).length;
- for (; i--;) delete n[e[i]]
- }(void 0 === e || T.isEmptyObject(n)) && (t.nodeType ? t[this.expando] = void 0 : delete t[this.expando])
- }
- },
- hasData: function (t) {
- var e = t[this.expando];
- return void 0 !== e && !T.isEmptyObject(e)
- }
- };
- var K = new V,
- X = new V,
- Q = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
- G = /[A-Z]/g;
-
- function J(t, e, i) {
- var n, s;
- if (void 0 === i && 1 === t.nodeType)
- if (n = "data-" + e.replace(G, "-$&").toLowerCase(), "string" == typeof (i = t.getAttribute(n))) {
- try {
- i = "true" === (s = i) || "false" !== s && ("null" === s ? null : s === +s + "" ? +s : Q.test(s) ? JSON.parse(s) : s)
- } catch (t) {}
- X.set(t, e, i)
- } else i = void 0;
- return i
- }
- T.extend({
- hasData: function (t) {
- return X.hasData(t) || K.hasData(t)
- },
- data: function (t, e, i) {
- return X.access(t, e, i)
- },
- removeData: function (t, e) {
- X.remove(t, e)
- },
- _data: function (t, e, i) {
- return K.access(t, e, i)
- },
- _removeData: function (t, e) {
- K.remove(t, e)
- }
- }), T.fn.extend({
- data: function (i, t) {
- var e, n, s, o = this[0],
- r = o && o.attributes;
- if (void 0 !== i) return "object" == _typeof(i) ? this.each(function () {
- X.set(this, i)
- }) : R(this, function (t) {
- var e;
- if (o && void 0 === t) return void 0 !== (e = X.get(o, i)) ? e : void 0 !== (e = J(o, i)) ? e : void 0;
- this.each(function () {
- X.set(this, i, t)
- })
- }, null, t, 1 < arguments.length, null, !0);
- if (this.length && (s = X.get(o), 1 === o.nodeType && !K.get(o, "hasDataAttrs"))) {
- for (e = r.length; e--;) r[e] && 0 === (n = r[e].name).indexOf("data-") && (n = U(n.slice(5)), J(o, n, s[n]));
- K.set(o, "hasDataAttrs", !0)
- }
- return s
- },
- removeData: function (t) {
- return this.each(function () {
- X.remove(this, t)
- })
- }
- }), T.extend({
- queue: function (t, e, i) {
- var n;
- 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 || []
- },
- dequeue: function (t, e) {
- e = e || "fx";
- var i = T.queue(t, e),
- n = i.length,
- s = i.shift(),
- o = T._queueHooks(t, e);
- "inprogress" === s && (s = i.shift(), n--), s && ("fx" === e && i.unshift("inprogress"), delete o.stop, s.call(t, function () {
- T.dequeue(t, e)
- }, o)), !n && o && o.empty.fire()
- },
- _queueHooks: function (t, e) {
- var i = e + "queueHooks";
- return K.get(t, i) || K.access(t, i, {
- empty: T.Callbacks("once memory").add(function () {
- K.remove(t, [e + "queue", i])
- })
- })
- }
- }), T.fn.extend({
- queue: function (e, i) {
- var t = 2;
- return "string" != typeof e && (i = e, e = "fx", t--), arguments.length < t ? T.queue(this[0], e) : void 0 === i ? this : this.each(function () {
- var t = T.queue(this, e, i);
- T._queueHooks(this, e), "fx" === e && "inprogress" !== t[0] && T.dequeue(this, e)
- })
- },
- dequeue: function (t) {
- return this.each(function () {
- T.dequeue(this, t)
- })
- },
- clearQueue: function (t) {
- return this.queue(t || "fx", [])
- },
- promise: function (t, e) {
- function i() {
- --s || o.resolveWith(r, [r])
- }
- var n, s = 1,
- o = T.Deferred(),
- r = this,
- a = this.length;
- 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));
- return i(), o.promise(e)
- }
- });
- var Z = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,
- tt = new RegExp("^(?:([+-])=|)(" + Z + ")([a-z%]*)$", "i"),
- et = ["Top", "Right", "Bottom", "Left"],
- it = C.documentElement,
- nt = function (t) {
- return T.contains(t.ownerDocument, t)
- },
- st = {
- composed: !0
- };
- it.getRootNode && (nt = function (t) {
- return T.contains(t.ownerDocument, t) || t.getRootNode(st) === t.ownerDocument
- });
-
- function ot(t, e) {
- return "none" === (t = e || t).style.display || "" === t.style.display && nt(t) && "none" === T.css(t, "display")
- }
-
- function rt(t, e, i, n) {
- var s, o, r = 20,
- a = n ? function () {
- return n.cur()
- } : function () {
- return T.css(t, e, "")
- },
- l = a(),
- c = i && i[3] || (T.cssNumber[e] ? "" : "px"),
- u = t.nodeType && (T.cssNumber[e] || "px" !== c && +l) && tt.exec(T.css(t, e));
- if (u && u[3] !== c) {
- 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;
- u *= 2, T.style(t, e, u + c), i = i || []
- }
- 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
- }
- var at = {};
-
- function lt(t, e) {
- 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)));
- for (u = 0; u < h; u++) null != c[u] && (t[u].style.display = c[u]);
- return t
- }
- T.fn.extend({
- show: function () {
- return lt(this, !0)
- },
- hide: function () {
- return lt(this)
- },
- toggle: function (t) {
- return "boolean" == typeof t ? t ? this.show() : this.hide() : this.each(function () {
- ot(this) ? T(this).show() : T(this).hide()
- })
- }
- });
- var ct, ut, ht = /^(?:checkbox|radio)$/i,
- dt = /<([a-z][^\/\0>\x20\t\r\n\f]*)/i,
- pt = /^$|^module$|\/(?:java|ecma)script/i;
- 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;
- var ft = {
- thead: [1, "<table>", "</table>"],
- col: [2, "<table><colgroup>", "</colgroup></table>"],
- tr: [2, "<table><tbody>", "</tbody></table>"],
- td: [3, "<table><tbody><tr>", "</tr></tbody></table>"],
- _default: [0, "", ""]
- };
-
- function gt(t, e) {
- var i;
- 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
- }
-
- function mt(t, e) {
- for (var i = 0, n = t.length; i < n; i++) K.set(t[i], "globalEval", !e || K.get(e[i], "globalEval"))
- }
- ft.tbody = ft.tfoot = ft.colgroup = ft.caption = ft.thead, ft.th = ft.td, _.option || (ft.optgroup = ft.option = [1, "<select multiple='multiple'>", "</select>"]);
- var vt = /<|&#?\w+;/;
-
- function _t(t, e, i, n, s) {
- for (var o, r, a, l, c, u, h = e.createDocumentFragment(), d = [], p = 0, f = t.length; p < f; p++)
- if ((o = t[p]) || 0 === o)
- if ("object" === w(o)) T.merge(d, o.nodeType ? [o] : o);
- else if (vt.test(o)) {
- 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;
- T.merge(d, r.childNodes), (r = h.firstChild).textContent = ""
- } else d.push(e.createTextNode(o));
- for (h.textContent = "", p = 0; o = d[p++];)
- if (n && -1 < T.inArray(o, n)) s && s.push(o);
- else if (c = nt(o), r = gt(h.appendChild(o), "script"), c && mt(r), i)
- for (u = 0; o = r[u++];) pt.test(o.type || "") && i.push(o);
- return h
- }
- var yt = /^([^.]*)(?:\.(.+)|)/;
-
- function bt() {
- return !0
- }
-
- function wt() {
- return !1
- }
-
- function kt(t, e) {
- return t === function () {
- try {
- return C.activeElement
- } catch (t) {}
- }() == ("focus" === e)
- }
-
- function xt(t, e, i, n, s, o) {
- var r, a;
- if ("object" == _typeof(e)) {
- for (a in "string" != typeof i && (n = n || i, i = void 0), e) xt(t, a, i, n, e[a], o);
- return t
- }
- 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;
- else if (!s) return t;
- return 1 === o && (r = s, (s = function (t) {
- return T().off(t), r.apply(this, arguments)
- }).guid = r.guid || (r.guid = T.guid++)), t.each(function () {
- T.event.add(this, e, s, n, i)
- })
- }
-
- function Ct(t, s, o) {
- o ? (K.set(t, s, !1), T.event.add(t, s, {
- namespace: !1,
- handler: function (t) {
- var e, i, n = K.get(this, s);
- if (1 & t.isTrigger && this[s]) {
- if (n.length)(T.event.special[s] || {}).delegateType && t.stopPropagation();
- 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
- } else n.length && (K.set(this, s, {
- value: T.event.trigger(T.extend(n[0], T.Event.prototype), n.slice(1), this)
- }), t.stopImmediatePropagation())
- }
- })) : void 0 === K.get(t, s) && T.event.add(t, s, bt)
- }
- T.event = {
- global: {},
- add: function (e, t, i, n, s) {
- var o, r, a, l, c, u, h, d, p, f, g, m = K.get(e);
- if (Y(e))
- 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) {
- return void 0 !== T && T.event.triggered !== t.type ? T.event.dispatch.apply(e, arguments) : void 0
- }), 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({
- type: p,
- origType: g,
- data: n,
- handler: i,
- guid: i.guid,
- selector: s,
- needsContext: s && T.expr.match.needsContext.test(s),
- namespace: f.join(".")
- }, 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)
- },
- remove: function (t, e, i, n, s) {
- var o, r, a, l, c, u, h, d, p, f, g, m = K.hasData(t) && K.get(t);
- if (m && (l = m.events)) {
- for (c = (e = (e || "").match(N) || [""]).length; c--;)
- if (p = g = (a = yt.exec(e[c]) || [])[1], f = (a[2] || "").split(".").sort(), p) {
- 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));
- r && !d.length && (h.teardown && !1 !== h.teardown.call(t, f, m.handle) || T.removeEvent(t, p, m.handle), delete l[p])
- } else
- for (p in l) T.event.remove(t, p + e[c], i, n, !0);
- T.isEmptyObject(l) && K.remove(t, "handle events")
- }
- },
- dispatch: function (t) {
- var e, i, n, s, o, r, a = new Array(arguments.length),
- l = T.event.fix(t),
- c = (K.get(this, "events") || Object.create(null))[l.type] || [],
- u = T.event.special[l.type] || {};
- for (a[0] = l, e = 1; e < arguments.length; e++) a[e] = arguments[e];
- if (l.delegateTarget = this, !u.preDispatch || !1 !== u.preDispatch.call(this, l)) {
- for (r = T.event.handlers.call(this, l, c), e = 0;
- (s = r[e++]) && !l.isPropagationStopped();)
- for (l.currentTarget = s.elem, i = 0;
- (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()));
- return u.postDispatch && u.postDispatch.call(this, l), l.result
- }
- },
- handlers: function (t, e) {
- var i, n, s, o, r, a = [],
- l = e.delegateCount,
- c = t.target;
- if (l && c.nodeType && !("click" === t.type && 1 <= t.button))
- for (; c !== this; c = c.parentNode || this)
- if (1 === c.nodeType && ("click" !== t.type || !0 !== c.disabled)) {
- 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);
- o.length && a.push({
- elem: c,
- handlers: o
- })
- } return c = this, l < e.length && a.push({
- elem: c,
- handlers: e.slice(l)
- }), a
- },
- addProp: function (e, t) {
- Object.defineProperty(T.Event.prototype, e, {
- enumerable: !0,
- configurable: !0,
- get: y(t) ? function () {
- if (this.originalEvent) return t(this.originalEvent)
- } : function () {
- if (this.originalEvent) return this.originalEvent[e]
- },
- set: function (t) {
- Object.defineProperty(this, e, {
- enumerable: !0,
- configurable: !0,
- writable: !0,
- value: t
- })
- }
- })
- },
- fix: function (t) {
- return t[T.expando] ? t : new T.Event(t)
- },
- special: {
- load: {
- noBubble: !0
- },
- click: {
- setup: function (t) {
- var e = this || t;
- return ht.test(e.type) && e.click && S(e, "input") && Ct(e, "click", bt), !1
- },
- trigger: function (t) {
- var e = this || t;
- return ht.test(e.type) && e.click && S(e, "input") && Ct(e, "click"), !0
- },
- _default: function (t) {
- var e = t.target;
- return ht.test(e.type) && e.click && S(e, "input") && K.get(e, "click") || S(e, "a")
- }
- },
- beforeunload: {
- postDispatch: function (t) {
- void 0 !== t.result && t.originalEvent && (t.originalEvent.returnValue = t.result)
- }
- }
- }
- }, T.removeEvent = function (t, e, i) {
- t.removeEventListener && t.removeEventListener(e, i)
- }, T.Event = function (t, e) {
- if (!(this instanceof T.Event)) return new T.Event(t, e);
- 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
- }, T.Event.prototype = {
- constructor: T.Event,
- isDefaultPrevented: wt,
- isPropagationStopped: wt,
- isImmediatePropagationStopped: wt,
- isSimulated: !1,
- preventDefault: function () {
- var t = this.originalEvent;
- this.isDefaultPrevented = bt, t && !this.isSimulated && t.preventDefault()
- },
- stopPropagation: function () {
- var t = this.originalEvent;
- this.isPropagationStopped = bt, t && !this.isSimulated && t.stopPropagation()
- },
- stopImmediatePropagation: function () {
- var t = this.originalEvent;
- this.isImmediatePropagationStopped = bt, t && !this.isSimulated && t.stopImmediatePropagation(), this.stopPropagation()
- }
- }, T.each({
- altKey: !0,
- bubbles: !0,
- cancelable: !0,
- changedTouches: !0,
- ctrlKey: !0,
- detail: !0,
- eventPhase: !0,
- metaKey: !0,
- pageX: !0,
- pageY: !0,
- shiftKey: !0,
- view: !0,
- char: !0,
- code: !0,
- charCode: !0,
- key: !0,
- keyCode: !0,
- button: !0,
- buttons: !0,
- clientX: !0,
- clientY: !0,
- offsetX: !0,
- offsetY: !0,
- pointerId: !0,
- pointerType: !0,
- screenX: !0,
- screenY: !0,
- targetTouches: !0,
- toElement: !0,
- touches: !0,
- which: !0
- }, T.event.addProp), T.each({
- focus: "focusin",
- blur: "focusout"
- }, function (t, e) {
- T.event.special[t] = {
- setup: function () {
- return Ct(this, t, kt), !1
- },
- trigger: function () {
- return Ct(this, t), !0
- },
- _default: function () {
- return !0
- },
- delegateType: e
- }
- }), T.each({
- mouseenter: "mouseover",
- mouseleave: "mouseout",
- pointerenter: "pointerover",
- pointerleave: "pointerout"
- }, function (t, s) {
- T.event.special[t] = {
- delegateType: s,
- bindType: s,
- handle: function (t) {
- var e, i = t.relatedTarget,
- n = t.handleObj;
- return i && (i === this || T.contains(this, i)) || (t.type = n.origType, e = n.handler.apply(this, arguments), t.type = s), e
- }
- }
- }), T.fn.extend({
- on: function (t, e, i, n) {
- return xt(this, t, e, i, n)
- },
- one: function (t, e, i, n) {
- return xt(this, t, e, i, n, 1)
- },
- off: function (t, e, i) {
- var n, s;
- 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;
- if ("object" != _typeof(t)) return !1 !== e && "function" != typeof e || (i = e, e = void 0), !1 === i && (i = wt), this.each(function () {
- T.event.remove(this, t, i, e)
- });
- for (s in t) this.off(s, e, t[s]);
- return this
- }
- });
- var Tt = /<script|<style|<link/i,
- St = /checked\s*(?:[^=]|=\s*.checked.)/i,
- Dt = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
-
- function At(t, e) {
- return S(t, "table") && S(11 !== e.nodeType ? e : e.firstChild, "tr") && T(t).children("tbody")[0] || t
- }
-
- function Et(t) {
- return t.type = (null !== t.getAttribute("type")) + "/" + t.type, t
- }
-
- function Pt(t) {
- return "true/" === (t.type || "").slice(0, 5) ? t.type = t.type.slice(5) : t.removeAttribute("type"), t
- }
-
- function It(t, e) {
- var i, n, s, o, r, a;
- if (1 === e.nodeType) {
- if (K.hasData(t) && (a = K.get(t).events))
- for (s in K.remove(e, "handle events"), a)
- for (i = 0, n = a[s].length; i < n; i++) T.event.add(e, s, a[s][i]);
- X.hasData(t) && (o = X.access(t), r = T.extend({}, o), X.set(e, r))
- }
- }
-
- function Ot(i, n, s, o) {
- n = m(n);
- var t, e, r, a, l, c, u = 0,
- h = i.length,
- d = h - 1,
- p = n[0],
- f = y(p);
- if (f || 1 < h && "string" == typeof p && !_.checkClone && St.test(p)) return i.each(function (t) {
- var e = i.eq(t);
- f && (n[0] = p.call(this, t, e.html())), Ot(e, n, s, o)
- });
- if (h && (e = (t = _t(n, i[0].ownerDocument, !1, i, o)).firstChild, 1 === t.childNodes.length && (t = e), e || o)) {
- 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);
- if (a)
- 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, {
- nonce: l.nonce || l.getAttribute("nonce")
- }, c) : b(l.textContent.replace(Dt, ""), l, c))
- }
- return i
- }
-
- function Mt(t, e, i) {
- 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));
- return t
- }
- T.extend({
- htmlPrefilter: function (t) {
- return t
- },
- clone: function (t, e, i) {
- var n, s, o, r, a, l, c, u = t.cloneNode(!0),
- h = nt(t);
- if (!(_.noCloneChecked || 1 !== t.nodeType && 11 !== t.nodeType || T.isXMLDoc(t)))
- 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);
- if (e)
- if (i)
- for (o = o || gt(t), r = r || gt(u), n = 0, s = o.length; n < s; n++) It(o[n], r[n]);
- else It(t, u);
- return 0 < (r = gt(u, "script")).length && mt(r, !h && gt(t, "script")), u
- },
- cleanData: function (t) {
- for (var e, i, n, s = T.event.special, o = 0; void 0 !== (i = t[o]); o++)
- if (Y(i)) {
- if (e = i[K.expando]) {
- if (e.events)
- for (n in e.events) s[n] ? T.event.remove(i, n) : T.removeEvent(i, n, e.handle);
- i[K.expando] = void 0
- }
- i[X.expando] && (i[X.expando] = void 0)
- }
- }
- }), T.fn.extend({
- detach: function (t) {
- return Mt(this, t, !0)
- },
- remove: function (t) {
- return Mt(this, t)
- },
- text: function (t) {
- return R(this, function (t) {
- return void 0 === t ? T.text(this) : this.empty().each(function () {
- 1 !== this.nodeType && 11 !== this.nodeType && 9 !== this.nodeType || (this.textContent = t)
- })
- }, null, t, arguments.length)
- },
- append: function () {
- return Ot(this, arguments, function (t) {
- 1 !== this.nodeType && 11 !== this.nodeType && 9 !== this.nodeType || At(this, t).appendChild(t)
- })
- },
- prepend: function () {
- return Ot(this, arguments, function (t) {
- if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
- var e = At(this, t);
- e.insertBefore(t, e.firstChild)
- }
- })
- },
- before: function () {
- return Ot(this, arguments, function (t) {
- this.parentNode && this.parentNode.insertBefore(t, this)
- })
- },
- after: function () {
- return Ot(this, arguments, function (t) {
- this.parentNode && this.parentNode.insertBefore(t, this.nextSibling)
- })
- },
- empty: function () {
- for (var t, e = 0; null != (t = this[e]); e++) 1 === t.nodeType && (T.cleanData(gt(t, !1)), t.textContent = "");
- return this
- },
- clone: function (t, e) {
- return t = null != t && t, e = null == e ? t : e, this.map(function () {
- return T.clone(this, t, e)
- })
- },
- html: function (t) {
- return R(this, function (t) {
- var e = this[0] || {},
- i = 0,
- n = this.length;
- if (void 0 === t && 1 === e.nodeType) return e.innerHTML;
- if ("string" == typeof t && !Tt.test(t) && !ft[(dt.exec(t) || ["", ""])[1].toLowerCase()]) {
- t = T.htmlPrefilter(t);
- try {
- for (; i < n; i++) 1 === (e = this[i] || {}).nodeType && (T.cleanData(gt(e, !1)), e.innerHTML = t);
- e = 0
- } catch (t) {}
- }
- e && this.empty().append(t)
- }, null, t, arguments.length)
- },
- replaceWith: function () {
- var i = [];
- return Ot(this, arguments, function (t) {
- var e = this.parentNode;
- T.inArray(this, i) < 0 && (T.cleanData(gt(this)), e && e.replaceChild(t, this))
- }, i)
- }
- }), T.each({
- appendTo: "append",
- prependTo: "prepend",
- insertBefore: "before",
- insertAfter: "after",
- replaceAll: "replaceWith"
- }, function (t, r) {
- T.fn[t] = function (t) {
- 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());
- return this.pushStack(i)
- }
- });
-
- function Nt(t, e, i) {
- var n, s, o = {};
- for (s in e) o[s] = t.style[s], t.style[s] = e[s];
- for (s in n = i.call(t), e) t.style[s] = o[s];
- return n
- }
- var Lt = new RegExp("^(" + Z + ")(?!px)[a-z%]+$", "i"),
- Ht = function (t) {
- var e = t.ownerDocument.defaultView;
- return e && e.opener || (e = x), e.getComputedStyle(t)
- },
- jt = new RegExp(et.join("|"), "i");
-
- function zt(t, e, i) {
- var n, s, o, r, a = t.style;
- 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
- }
-
- function Wt(t, e) {
- return {
- get: function () {
- if (!t()) return (this.get = e).apply(this, arguments);
- delete this.get
- }
- }
- }! function () {
- function t() {
- if (c) {
- 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);
- var t = x.getComputedStyle(c);
- 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
- }
- }
-
- function e(t) {
- return Math.round(parseFloat(t))
- }
- var i, n, s, o, r, a, l = C.createElement("div"),
- c = C.createElement("div");
- c.style && (c.style.backgroundClip = "content-box", c.cloneNode(!0).style.backgroundClip = "", _.clearCloneStyle = "content-box" === c.style.backgroundClip, T.extend(_, {
- boxSizingReliable: function () {
- return t(), n
- },
- pixelBoxStyles: function () {
- return t(), o
- },
- pixelPosition: function () {
- return t(), i
- },
- reliableMarginLeft: function () {
- return t(), a
- },
- scrollboxSize: function () {
- return t(), s
- },
- reliableTrDimensions: function () {
- var t, e, i, n;
- 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
- }
- }))
- }();
- var $t = ["Webkit", "Moz", "ms"],
- Rt = C.createElement("div").style,
- Ft = {};
-
- function qt(t) {
- return T.cssProps[t] || Ft[t] || (t in Rt ? t : Ft[t] = function (t) {
- for (var e = t[0].toUpperCase() + t.slice(1), i = $t.length; i--;)
- if ((t = $t[i] + e) in Rt) return t
- }(t) || t)
- }
- var Bt = /^(none|table(?!-c[ea]).+)/,
- Ut = /^--/,
- Yt = {
- position: "absolute",
- visibility: "hidden",
- display: "block"
- },
- Vt = {
- letterSpacing: "0",
- fontWeight: "400"
- };
-
- function Kt(t, e, i) {
- var n = tt.exec(e);
- return n ? Math.max(0, n[2] - (i || 0)) + (n[3] || "px") : e
- }
-
- function Xt(t, e, i, n, s, o) {
- var r = "width" === e ? 1 : 0,
- a = 0,
- l = 0;
- if (i === (n ? "border" : "content")) return 0;
- 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));
- return !n && 0 <= o && (l += Math.max(0, Math.ceil(t["offset" + e[0].toUpperCase() + e.slice(1)] - o - l - a - .5)) || 0), l
- }
-
- function Qt(t, e, i) {
- var n = Ht(t),
- s = (!_.boxSizingReliable() || i) && "border-box" === T.css(t, "boxSizing", !1, n),
- o = s,
- r = zt(t, e, n),
- a = "offset" + e[0].toUpperCase() + e.slice(1);
- if (Lt.test(r)) {
- if (!i) return r;
- r = "auto"
- }
- 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"
- }
-
- function Gt(t, e, i, n, s) {
- return new Gt.prototype.init(t, e, i, n, s)
- }
- T.extend({
- cssHooks: {
- opacity: {
- get: function (t, e) {
- if (e) {
- var i = zt(t, "opacity");
- return "" === i ? "1" : i
- }
- }
- }
- },
- cssNumber: {
- animationIterationCount: !0,
- columnCount: !0,
- fillOpacity: !0,
- flexGrow: !0,
- flexShrink: !0,
- fontWeight: !0,
- gridArea: !0,
- gridColumn: !0,
- gridColumnEnd: !0,
- gridColumnStart: !0,
- gridRow: !0,
- gridRowEnd: !0,
- gridRowStart: !0,
- lineHeight: !0,
- opacity: !0,
- order: !0,
- orphans: !0,
- widows: !0,
- zIndex: !0,
- zoom: !0
- },
- cssProps: {},
- style: function (t, e, i, n) {
- if (t && 3 !== t.nodeType && 8 !== t.nodeType && t.style) {
- var s, o, r, a = U(e),
- l = Ut.test(e),
- c = t.style;
- 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];
- "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))
- }
- },
- css: function (t, e, i, n) {
- var s, o, r, a = U(e);
- 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
- }
- }), T.each(["height", "width"], function (t, l) {
- T.cssHooks[l] = {
- get: function (t, e, i) {
- if (e) return !Bt.test(T.css(t, "display")) || t.getClientRects().length && t.getBoundingClientRect().width ? Qt(t, l, i) : Nt(t, Yt, function () {
- return Qt(t, l, i)
- })
- },
- set: function (t, e, i) {
- var n, s = Ht(t),
- o = !_.scrollboxSize() && "absolute" === s.position,
- r = (o || i) && "border-box" === T.css(t, "boxSizing", !1, s),
- a = i ? Xt(t, l, i, r, s) : 0;
- 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)
- }
- }
- }), T.cssHooks.marginLeft = Wt(_.reliableMarginLeft, function (t, e) {
- if (e) return (parseFloat(zt(t, "marginLeft")) || t.getBoundingClientRect().left - Nt(t, {
- marginLeft: 0
- }, function () {
- return t.getBoundingClientRect().left
- })) + "px"
- }), T.each({
- margin: "",
- padding: "",
- border: "Width"
- }, function (s, o) {
- T.cssHooks[s + o] = {
- expand: function (t) {
- 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];
- return i
- }
- }, "margin" !== s && (T.cssHooks[s + o].set = Kt)
- }), T.fn.extend({
- css: function (t, e) {
- return R(this, function (t, e, i) {
- var n, s, o = {},
- r = 0;
- if (Array.isArray(e)) {
- for (n = Ht(t), s = e.length; r < s; r++) o[e[r]] = T.css(t, e[r], !1, n);
- return o
- }
- return void 0 !== i ? T.style(t, e, i) : T.css(t, e)
- }, t, e, 1 < arguments.length)
- }
- }), ((T.Tween = Gt).prototype = {
- constructor: Gt,
- init: function (t, e, i, n, s, o) {
- 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")
- },
- cur: function () {
- var t = Gt.propHooks[this.prop];
- return t && t.get ? t.get(this) : Gt.propHooks._default.get(this)
- },
- run: function (t) {
- var e, i = Gt.propHooks[this.prop];
- 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
- }
- }).init.prototype = Gt.prototype, (Gt.propHooks = {
- _default: {
- get: function (t) {
- var e;
- 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
- },
- set: function (t) {
- 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)
- }
- }
- }).scrollTop = Gt.propHooks.scrollLeft = {
- set: function (t) {
- t.elem.nodeType && t.elem.parentNode && (t.elem[t.prop] = t.now)
- }
- }, T.easing = {
- linear: function (t) {
- return t
- },
- swing: function (t) {
- return .5 - Math.cos(t * Math.PI) / 2
- },
- _default: "swing"
- }, T.fx = Gt.prototype.init, T.fx.step = {};
- var Jt, Zt, te, ee, ie = /^(?:toggle|show|hide)$/,
- ne = /queueHooks$/;
-
- function se() {
- Zt && (!1 === C.hidden && x.requestAnimationFrame ? x.requestAnimationFrame(se) : x.setTimeout(se, T.fx.interval), T.fx.tick())
- }
-
- function oe() {
- return x.setTimeout(function () {
- Jt = void 0
- }), Jt = Date.now()
- }
-
- function re(t, e) {
- var i, n = 0,
- s = {
- height: t
- };
- for (e = e ? 1 : 0; n < 4; n += 2 - e) s["margin" + (i = et[n])] = s["padding" + i] = t;
- return e && (s.opacity = s.width = t), s
- }
-
- function ae(t, e, i) {
- for (var n, s = (le.tweeners[e] || []).concat(le.tweeners["*"]), o = 0, r = s.length; o < r; o++)
- if (n = s[o].call(i, e, t)) return n
- }
-
- function le(o, t, e) {
- var i, r, n = 0,
- s = le.prefilters.length,
- a = T.Deferred().always(function () {
- delete l.elem
- }),
- l = function () {
- if (r) return !1;
- 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);
- return a.notifyWith(o, [c, i, e]), i < 1 && s ? e : (s || a.notifyWith(o, [c, 1, 0]), a.resolveWith(o, [c]), !1)
- },
- c = a.promise({
- elem: o,
- props: T.extend({}, t),
- opts: T.extend(!0, {
- specialEasing: {},
- easing: T.easing._default
- }, e),
- originalProperties: t,
- originalOptions: e,
- startTime: Jt || oe(),
- duration: e.duration,
- tweens: [],
- createTween: function (t, e) {
- var i = T.Tween(o, c.opts, t, e, c.opts.specialEasing[t] || c.opts.easing);
- return c.tweens.push(i), i
- },
- stop: function (t) {
- var e = 0,
- i = t ? c.tweens.length : 0;
- if (r) return this;
- for (r = !0; e < i; e++) c.tweens[e].run(1);
- return t ? (a.notifyWith(o, [c, 1, 0]), a.resolveWith(o, [c, t])) : a.rejectWith(o, [c, t]), this
- }
- }),
- u = c.props;
- for (function (t, e) {
- var i, n, s, o, r;
- for (i in t)
- 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)
- for (i in o = r.expand(o), delete t[n], o) i in t || (t[i] = o[i], e[i] = s);
- else e[n] = s
- }(u, c.opts.specialEasing); n < s; n++)
- 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;
- 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, {
- elem: o,
- anim: c,
- queue: c.opts.queue
- })), c
- }
- T.Animation = T.extend(le, {
- tweeners: {
- "*": [function (t, e) {
- var i = this.createTween(t, e);
- return rt(i.elem, t, tt.exec(e), i), i
- }]
- },
- tweener: function (t, e) {
- 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)
- },
- prefilters: [function (t, e, i) {
- var n, s, o, r, a, l, c, u, h = "width" in e || "height" in e,
- d = this,
- p = {},
- f = t.style,
- g = t.nodeType && ot(t),
- m = K.get(t, "fxshow");
- for (n in i.queue || (null == (r = T._queueHooks(t, "fx")).unqueued && (r.unqueued = 0, a = r.empty.fire, r.empty.fire = function () {
- r.unqueued || a()
- }), r.unqueued++, d.always(function () {
- d.always(function () {
- r.unqueued--, T.queue(t, "fx").length || r.empty.fire()
- })
- })), e)
- if (s = e[n], ie.test(s)) {
- if (delete e[n], o = o || "toggle" === s, s === (g ? "hide" : "show")) {
- if ("show" !== s || !m || void 0 === m[n]) continue;
- g = !0
- }
- p[n] = m && m[n] || T.style(t, n)
- } if ((l = !T.isEmptyObject(e)) || !T.isEmptyObject(p))
- 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 () {
- f.display = c
- }), null == c && (u = f.display, c = "none" === u ? "" : u)), f.display = "inline-block")), i.overflow && (f.overflow = "hidden", d.always(function () {
- f.overflow = i.overflow[0], f.overflowX = i.overflow[1], f.overflowY = i.overflow[2]
- })), l = !1, p) l || (m ? "hidden" in m && (g = m.hidden) : m = K.access(t, "fxshow", {
- display: c
- }), o && (m.hidden = !g), g && lt([t], !0), d.done(function () {
- for (n in g || lt([t]), K.remove(t, "fxshow"), p) T.style(t, n, p[n])
- })), l = ae(g ? m[n] : 0, n, d), n in m || (m[n] = l.start, g && (l.end = l.start, l.start = 0))
- }],
- prefilter: function (t, e) {
- e ? le.prefilters.unshift(t) : le.prefilters.push(t)
- }
- }), T.speed = function (t, e, i) {
- var n = t && "object" == _typeof(t) ? T.extend({}, t) : {
- complete: i || !i && e || y(t) && t,
- duration: t,
- easing: i && e || e && !y(e) && e
- };
- 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 () {
- y(n.old) && n.old.call(this), n.queue && T.dequeue(this, n.queue)
- }, n
- }, T.fn.extend({
- fadeTo: function (t, e, i, n) {
- return this.filter(ot).css("opacity", 0).show().end().animate({
- opacity: e
- }, t, i, n)
- },
- animate: function (e, t, i, n) {
- function s() {
- var t = le(this, T.extend({}, e), r);
- (o || K.get(this, "finish")) && t.stop(!0)
- }
- var o = T.isEmptyObject(e),
- r = T.speed(t, i, n);
- return s.finish = s, o || !1 === r.queue ? this.each(s) : this.queue(r.queue, s)
- },
- stop: function (s, t, o) {
- function r(t) {
- var e = t.stop;
- delete t.stop, e(o)
- }
- return "string" != typeof s && (o = t, t = s, s = void 0), t && this.queue(s || "fx", []), this.each(function () {
- var t = !0,
- e = null != s && s + "queueHooks",
- i = T.timers,
- n = K.get(this);
- if (e) n[e] && n[e].stop && r(n[e]);
- else
- for (e in n) n[e] && n[e].stop && ne.test(e) && r(n[e]);
- 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));
- !t && o || T.dequeue(this, s)
- })
- },
- finish: function (r) {
- return !1 !== r && (r = r || "fx"), this.each(function () {
- var t, e = K.get(this),
- i = e[r + "queue"],
- n = e[r + "queueHooks"],
- s = T.timers,
- o = i ? i.length : 0;
- 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));
- for (t = 0; t < o; t++) i[t] && i[t].finish && i[t].finish.call(this);
- delete e.finish
- })
- }
- }), T.each(["toggle", "show", "hide"], function (t, n) {
- var s = T.fn[n];
- T.fn[n] = function (t, e, i) {
- return null == t || "boolean" == typeof t ? s.apply(this, arguments) : this.animate(re(n, !0), t, e, i)
- }
- }), T.each({
- slideDown: re("show"),
- slideUp: re("hide"),
- slideToggle: re("toggle"),
- fadeIn: {
- opacity: "show"
- },
- fadeOut: {
- opacity: "hide"
- },
- fadeToggle: {
- opacity: "toggle"
- }
- }, function (t, n) {
- T.fn[t] = function (t, e, i) {
- return this.animate(n, t, e, i)
- }
- }), T.timers = [], T.fx.tick = function () {
- var t, e = 0,
- i = T.timers;
- for (Jt = Date.now(); e < i.length; e++)(t = i[e])() || i[e] !== t || i.splice(e--, 1);
- i.length || T.fx.stop(), Jt = void 0
- }, T.fx.timer = function (t) {
- T.timers.push(t), T.fx.start()
- }, T.fx.interval = 13, T.fx.start = function () {
- Zt || (Zt = !0, se())
- }, T.fx.stop = function () {
- Zt = null
- }, T.fx.speeds = {
- slow: 600,
- fast: 200,
- _default: 400
- }, T.fn.delay = function (n, t) {
- return n = T.fx && T.fx.speeds[n] || n, t = t || "fx", this.queue(t, function (t, e) {
- var i = x.setTimeout(t, n);
- e.stop = function () {
- x.clearTimeout(i)
- }
- })
- }, 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;
- var ce, ue = T.expr.attrHandle;
- T.fn.extend({
- attr: function (t, e) {
- return R(this, T.attr, t, e, 1 < arguments.length)
- },
- removeAttr: function (t) {
- return this.each(function () {
- T.removeAttr(this, t)
- })
- }
- }), T.extend({
- attr: function (t, e, i) {
- var n, s, o = t.nodeType;
- 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)
- },
- attrHooks: {
- type: {
- set: function (t, e) {
- if (!_.radioValue && "radio" === e && S(t, "input")) {
- var i = t.value;
- return t.setAttribute("type", e), i && (t.value = i), e
- }
- }
- }
- },
- removeAttr: function (t, e) {
- var i, n = 0,
- s = e && e.match(N);
- if (s && 1 === t.nodeType)
- for (; i = s[n++];) t.removeAttribute(i)
- }
- }), ce = {
- set: function (t, e, i) {
- return !1 === e ? T.removeAttr(t, i) : t.setAttribute(i, i), i
- }
- }, T.each(T.expr.match.bool.source.match(/\w+/g), function (t, e) {
- var r = ue[e] || T.find.attr;
- ue[e] = function (t, e, i) {
- var n, s, o = e.toLowerCase();
- return i || (s = ue[o], ue[o] = n, n = null != r(t, e, i) ? o : null, ue[o] = s), n
- }
- });
- var he = /^(?:input|select|textarea|button)$/i,
- de = /^(?:a|area)$/i;
-
- function pe(t) {
- return (t.match(N) || []).join(" ")
- }
-
- function fe(t) {
- return t.getAttribute && t.getAttribute("class") || ""
- }
-
- function ge(t) {
- return Array.isArray(t) ? t : "string" == typeof t && t.match(N) || []
- }
- T.fn.extend({
- prop: function (t, e) {
- return R(this, T.prop, t, e, 1 < arguments.length)
- },
- removeProp: function (t) {
- return this.each(function () {
- delete this[T.propFix[t] || t]
- })
- }
- }), T.extend({
- prop: function (t, e, i) {
- var n, s, o = t.nodeType;
- 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]
- },
- propHooks: {
- tabIndex: {
- get: function (t) {
- var e = T.find.attr(t, "tabindex");
- return e ? parseInt(e, 10) : he.test(t.nodeName) || de.test(t.nodeName) && t.href ? 0 : -1
- }
- }
- },
- propFix: {
- for: "htmlFor",
- class: "className"
- }
- }), _.optSelected || (T.propHooks.selected = {
- get: function (t) {
- var e = t.parentNode;
- return e && e.parentNode && e.parentNode.selectedIndex, null
- },
- set: function (t) {
- var e = t.parentNode;
- e && (e.selectedIndex, e.parentNode && e.parentNode.selectedIndex)
- }
- }), T.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function () {
- T.propFix[this.toLowerCase()] = this
- }), T.fn.extend({
- addClass: function (e) {
- var t, i, n, s, o, r, a, l = 0;
- if (y(e)) return this.each(function (t) {
- T(this).addClass(e.call(this, t, fe(this)))
- });
- if ((t = ge(e)).length)
- for (; i = this[l++];)
- if (s = fe(i), n = 1 === i.nodeType && " " + pe(s) + " ") {
- for (r = 0; o = t[r++];) n.indexOf(" " + o + " ") < 0 && (n += o + " ");
- s !== (a = pe(n)) && i.setAttribute("class", a)
- } return this
- },
- removeClass: function (e) {
- var t, i, n, s, o, r, a, l = 0;
- if (y(e)) return this.each(function (t) {
- T(this).removeClass(e.call(this, t, fe(this)))
- });
- if (!arguments.length) return this.attr("class", "");
- if ((t = ge(e)).length)
- for (; i = this[l++];)
- if (s = fe(i), n = 1 === i.nodeType && " " + pe(s) + " ") {
- for (r = 0; o = t[r++];)
- for (; - 1 < n.indexOf(" " + o + " ");) n = n.replace(" " + o + " ", " ");
- s !== (a = pe(n)) && i.setAttribute("class", a)
- } return this
- },
- toggleClass: function (s, e) {
- var o = _typeof(s),
- r = "string" === o || Array.isArray(s);
- return "boolean" == typeof e && r ? e ? this.addClass(s) : this.removeClass(s) : y(s) ? this.each(function (t) {
- T(this).toggleClass(s.call(this, t, fe(this), e), e)
- }) : this.each(function () {
- var t, e, i, n;
- if (r)
- for (e = 0, i = T(this), n = ge(s); t = n[e++];) i.hasClass(t) ? i.removeClass(t) : i.addClass(t);
- 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__") || ""))
- })
- },
- hasClass: function (t) {
- var e, i, n = 0;
- for (e = " " + t + " "; i = this[n++];)
- if (1 === i.nodeType && -1 < (" " + pe(fe(i)) + " ").indexOf(e)) return !0;
- return !1
- }
- });
- var me = /\r/g;
- T.fn.extend({
- val: function (i) {
- var n, t, s, e = this[0];
- return arguments.length ? (s = y(i), this.each(function (t) {
- var e;
- 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) {
- return null == t ? "" : t + ""
- })), (n = T.valHooks[this.type] || T.valHooks[this.nodeName.toLowerCase()]) && "set" in n && void 0 !== n.set(this, e, "value") || (this.value = e))
- })) : 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
- }
- }), T.extend({
- valHooks: {
- option: {
- get: function (t) {
- var e = T.find.attr(t, "value");
- return null != e ? e : pe(T.text(t))
- }
- },
- select: {
- get: function (t) {
- var e, i, n, s = t.options,
- o = t.selectedIndex,
- r = "select-one" === t.type,
- a = r ? null : [],
- l = r ? o + 1 : s.length;
- for (n = o < 0 ? l : r ? o : 0; n < l; n++)
- if (((i = s[n]).selected || n === o) && !i.disabled && (!i.parentNode.disabled || !S(i.parentNode, "optgroup"))) {
- if (e = T(i).val(), r) return e;
- a.push(e)
- } return a
- },
- set: function (t, e) {
- 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);
- return i || (t.selectedIndex = -1), o
- }
- }
- }
- }), T.each(["radio", "checkbox"], function () {
- T.valHooks[this] = {
- set: function (t, e) {
- if (Array.isArray(e)) return t.checked = -1 < T.inArray(T(t).val(), e)
- }
- }, _.checkOn || (T.valHooks[this].get = function (t) {
- return null === t.getAttribute("value") ? "on" : t.value
- })
- }), _.focusin = "onfocusin" in x;
-
- function ve(t) {
- t.stopPropagation()
- }
- var _e = /^(?:focusinfocus|focusoutblur)$/;
- T.extend(T.event, {
- trigger: function (t, e, i, n) {
- var s, o, r, a, l, c, u, h, d = [i || C],
- p = v.call(t, "type") ? t.type : t,
- f = v.call(t, "namespace") ? t.namespace.split(".") : [];
- 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))) {
- if (!n && !u.noBubble && !g(i)) {
- for (a = u.delegateType || p, _e.test(a + p) || (o = o.parentNode); o; o = o.parentNode) d.push(o), r = o;
- r === (i.ownerDocument || C) && d.push(r.defaultView || r.parentWindow || x)
- }
- for (s = 0;
- (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());
- 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
- }
- },
- simulate: function (t, e, i) {
- var n = T.extend(new T.Event, i, {
- type: t,
- isSimulated: !0
- });
- T.event.trigger(n, null, e)
- }
- }), T.fn.extend({
- trigger: function (t, e) {
- return this.each(function () {
- T.event.trigger(t, e, this)
- })
- },
- triggerHandler: function (t, e) {
- var i = this[0];
- if (i) return T.event.trigger(t, e, i, !0)
- }
- }), _.focusin || T.each({
- focus: "focusin",
- blur: "focusout"
- }, function (i, n) {
- function s(t) {
- T.event.simulate(n, t.target, T.event.fix(t))
- }
- T.event.special[n] = {
- setup: function () {
- var t = this.ownerDocument || this.document || this,
- e = K.access(t, n);
- e || t.addEventListener(i, s, !0), K.access(t, n, (e || 0) + 1)
- },
- teardown: function () {
- var t = this.ownerDocument || this.document || this,
- e = K.access(t, n) - 1;
- e ? K.access(t, n, e) : (t.removeEventListener(i, s, !0), K.remove(t, n))
- }
- }
- });
- var ye = x.location,
- be = {
- guid: Date.now()
- },
- we = /\?/;
- T.parseXML = function (t) {
- var e, i;
- if (!t || "string" != typeof t) return null;
- try {
- e = (new x.DOMParser).parseFromString(t, "text/xml")
- } catch (t) {}
- return i = e && e.getElementsByTagName("parsererror")[0], e && !i || T.error("Invalid XML: " + (i ? T.map(i.childNodes, function (t) {
- return t.textContent
- }).join("\n") : t)), e
- };
- var ke = /\[\]$/,
- xe = /\r?\n/g,
- Ce = /^(?:submit|button|image|reset|file)$/i,
- Te = /^(?:input|select|textarea|keygen)/i;
-
- function Se(i, t, n, s) {
- var e;
- if (Array.isArray(t)) T.each(t, function (t, e) {
- n || ke.test(i) ? s(i, e) : Se(i + "[" + ("object" == _typeof(e) && null != e ? t : "") + "]", e, n, s)
- });
- else if (n || "object" !== w(t)) s(i, t);
- else
- for (e in t) Se(i + "[" + e + "]", t[e], n, s)
- }
- T.param = function (t, e) {
- function i(t, e) {
- var i = y(e) ? e() : e;
- s[s.length] = encodeURIComponent(t) + "=" + encodeURIComponent(null == i ? "" : i)
- }
- var n, s = [];
- if (null == t) return "";
- if (Array.isArray(t) || t.jquery && !T.isPlainObject(t)) T.each(t, function () {
- i(this.name, this.value)
- });
- else
- for (n in t) Se(n, t[n], e, i);
- return s.join("&")
- }, T.fn.extend({
- serialize: function () {
- return T.param(this.serializeArray())
- },
- serializeArray: function () {
- return this.map(function () {
- var t = T.prop(this, "elements");
- return t ? T.makeArray(t) : this
- }).filter(function () {
- var t = this.type;
- return this.name && !T(this).is(":disabled") && Te.test(this.nodeName) && !Ce.test(t) && (this.checked || !ht.test(t))
- }).map(function (t, e) {
- var i = T(this).val();
- return null == i ? null : Array.isArray(i) ? T.map(i, function (t) {
- return {
- name: e.name,
- value: t.replace(xe, "\r\n")
- }
- }) : {
- name: e.name,
- value: i.replace(xe, "\r\n")
- }
- }).get()
- }
- });
- var De = /%20/g,
- Ae = /#.*$/,
- Ee = /([?&])_=[^&]*/,
- Pe = /^(.*?):[ \t]*([^\r\n]*)$/gm,
- Ie = /^(?:GET|HEAD)$/,
- Oe = /^\/\//,
- Me = {},
- Ne = {},
- Le = "*/".concat("*"),
- He = C.createElement("a");
-
- function je(o) {
- return function (t, e) {
- "string" != typeof t && (e = t, t = "*");
- var i, n = 0,
- s = t.toLowerCase().match(N) || [];
- if (y(e))
- for (; i = s[n++];) "+" === i[0] ? (i = i.slice(1) || "*", (o[i] = o[i] || []).unshift(e)) : (o[i] = o[i] || []).push(e)
- }
- }
-
- function ze(e, s, o, r) {
- var a = {},
- l = e === Ne;
-
- function c(t) {
- var n;
- return a[t] = !0, T.each(e[t] || [], function (t, e) {
- var i = e(s, o, r);
- return "string" != typeof i || l || a[i] ? l ? !(n = i) : void 0 : (s.dataTypes.unshift(i), c(i), !1)
- }), n
- }
- return c(s.dataTypes[0]) || !a["*"] && c("*")
- }
-
- function We(t, e) {
- var i, n, s = T.ajaxSettings.flatOptions || {};
- for (i in e) void 0 !== e[i] && ((s[i] ? t : n || (n = {}))[i] = e[i]);
- return n && T.extend(!0, t, n), t
- }
- He.href = ye.href, T.extend({
- active: 0,
- lastModified: {},
- etag: {},
- ajaxSettings: {
- url: ye.href,
- type: "GET",
- isLocal: /^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ye.protocol),
- global: !0,
- processData: !0,
- async: !0,
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
- accepts: {
- "*": Le,
- text: "text/plain",
- html: "text/html",
- xml: "application/xml, text/xml",
- json: "application/json, text/javascript"
- },
- contents: {
- xml: /\bxml\b/,
- html: /\bhtml/,
- json: /\bjson\b/
- },
- responseFields: {
- xml: "responseXML",
- text: "responseText",
- json: "responseJSON"
- },
- converters: {
- "* text": String,
- "text html": !0,
- "text json": JSON.parse,
- "text xml": T.parseXML
- },
- flatOptions: {
- url: !0,
- context: !0
- }
- },
- ajaxSetup: function (t, e) {
- return e ? We(We(t, T.ajaxSettings), e) : We(T.ajaxSettings, t)
- },
- ajaxPrefilter: je(Me),
- ajaxTransport: je(Ne),
- ajax: function (t, e) {
- "object" == _typeof(t) && (e = t, t = void 0), e = e || {};
- var u, h, d, i, p, n, f, g, s, o, m = T.ajaxSetup({}, e),
- v = m.context || m,
- _ = m.context && (v.nodeType || v.jquery) ? T(v) : T.event,
- y = T.Deferred(),
- b = T.Callbacks("once memory"),
- w = m.statusCode || {},
- r = {},
- a = {},
- l = "canceled",
- k = {
- readyState: 0,
- getResponseHeader: function (t) {
- var e;
- if (f) {
- if (!i)
- for (i = {}; e = Pe.exec(d);) i[e[1].toLowerCase() + " "] = (i[e[1].toLowerCase() + " "] || []).concat(e[2]);
- e = i[t.toLowerCase() + " "]
- }
- return null == e ? null : e.join(", ")
- },
- getAllResponseHeaders: function () {
- return f ? d : null
- },
- setRequestHeader: function (t, e) {
- return null == f && (t = a[t.toLowerCase()] = a[t.toLowerCase()] || t, r[t] = e), this
- },
- overrideMimeType: function (t) {
- return null == f && (m.mimeType = t), this
- },
- statusCode: function (t) {
- var e;
- if (t)
- if (f) k.always(t[k.status]);
- else
- for (e in t) w[e] = [w[e], t[e]];
- return this
- },
- abort: function (t) {
- var e = t || l;
- return u && u.abort(e), c(0, e), this
- }
- };
- 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) {
- n = C.createElement("a");
- try {
- n.href = m.url, n.href = n.href, m.crossDomain = He.protocol + "//" + He.host != n.protocol + "//" + n.host
- } catch (t) {
- m.crossDomain = !0
- }
- }
- 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;
- 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]);
- if (m.beforeSend && (!1 === m.beforeSend.call(v, k, m) || f)) return k.abort();
- if (l = "abort", b.add(m.complete), k.done(m.success), k.fail(m.error), u = ze(Ne, m, e, k)) {
- if (k.readyState = 1, g && _.trigger("ajaxSend", [k, m]), f) return k;
- m.async && 0 < m.timeout && (p = x.setTimeout(function () {
- k.abort("timeout")
- }, m.timeout));
- try {
- f = !1, u.send(r, c)
- } catch (t) {
- if (f) throw t;
- c(-1, t)
- }
- } else c(-1, "No Transport");
-
- function c(t, e, i, n) {
- var s, o, r, a, l, c = e;
- 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) {
- for (var n, s, o, r, a = t.contents, l = t.dataTypes;
- "*" === l[0];) l.shift(), void 0 === n && (n = t.mimeType || e.getResponseHeader("Content-Type"));
- if (n)
- for (s in a)
- if (a[s] && a[s].test(n)) {
- l.unshift(s);
- break
- } if (l[0] in i) o = l[0];
- else {
- for (s in i) {
- if (!l[0] || t.converters[s + " " + l[0]]) {
- o = s;
- break
- }
- r || (r = s)
- }
- o = o || r
- }
- if (o) return o !== l[0] && l.unshift(o), i[o]
- }(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) {
- var s, o, r, a, l, c = {},
- u = t.dataTypes.slice();
- if (u[1])
- for (r in t.converters) c[r.toLowerCase()] = t.converters[r];
- for (o = u.shift(); o;)
- if (t.responseFields[o] && (i[t.responseFields[o]] = e), !l && n && t.dataFilter && (e = t.dataFilter(e, t.dataType)), l = o, o = u.shift())
- if ("*" === o) o = l;
- else if ("*" !== l && l !== o) {
- if (!(r = c[l + " " + o] || c["* " + o]))
- for (s in c)
- if ((a = s.split(" "))[1] === o && (r = c[l + " " + a[0]] || c["* " + a[0]])) {
- !0 === r ? r = c[s] : !0 !== c[s] && (o = a[0], u.unshift(a[1]));
- break
- } if (!0 !== r)
- if (r && t.throws) e = r(e);
- else try {
- e = r(e)
- } catch (t) {
- return {
- state: "parsererror",
- error: r ? t : "No conversion from " + l + " to " + o
- }
- }
- }
- return {
- state: "success",
- data: e
- }
- }(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")))
- }
- return k
- },
- getJSON: function (t, e, i) {
- return T.get(t, e, i, "json")
- },
- getScript: function (t, e) {
- return T.get(t, void 0, e, "script")
- }
- }), T.each(["get", "post"], function (t, s) {
- T[s] = function (t, e, i, n) {
- return y(e) && (n = n || i, i = e, e = void 0), T.ajax(T.extend({
- url: t,
- type: s,
- dataType: n,
- data: e,
- success: i
- }, T.isPlainObject(t) && t))
- }
- }), T.ajaxPrefilter(function (t) {
- var e;
- for (e in t.headers) "content-type" === e.toLowerCase() && (t.contentType = t.headers[e] || "")
- }), T._evalUrl = function (t, e, i) {
- return T.ajax({
- url: t,
- type: "GET",
- dataType: "script",
- cache: !0,
- async: !1,
- global: !1,
- converters: {
- "text script": function () {}
- },
- dataFilter: function (t) {
- T.globalEval(t, e, i)
- }
- })
- }, T.fn.extend({
- wrapAll: function (t) {
- var e;
- 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 () {
- for (var t = this; t.firstElementChild;) t = t.firstElementChild;
- return t
- }).append(this)), this
- },
- wrapInner: function (i) {
- return y(i) ? this.each(function (t) {
- T(this).wrapInner(i.call(this, t))
- }) : this.each(function () {
- var t = T(this),
- e = t.contents();
- e.length ? e.wrapAll(i) : t.append(i)
- })
- },
- wrap: function (e) {
- var i = y(e);
- return this.each(function (t) {
- T(this).wrapAll(i ? e.call(this, t) : e)
- })
- },
- unwrap: function (t) {
- return this.parent(t).not("body").each(function () {
- T(this).replaceWith(this.childNodes)
- }), this
- }
- }), T.expr.pseudos.hidden = function (t) {
- return !T.expr.pseudos.visible(t)
- }, T.expr.pseudos.visible = function (t) {
- return !!(t.offsetWidth || t.offsetHeight || t.getClientRects().length)
- }, T.ajaxSettings.xhr = function () {
- try {
- return new x.XMLHttpRequest
- } catch (t) {}
- };
- var $e = {
- 0: 200,
- 1223: 204
- },
- Re = T.ajaxSettings.xhr();
- _.cors = !!Re && "withCredentials" in Re, _.ajax = Re = !!Re, T.ajaxTransport(function (s) {
- var o, r;
- if (_.cors || Re && !s.crossDomain) return {
- send: function (t, e) {
- var i, n = s.xhr();
- if (n.open(s.type, s.url, s.async, s.username, s.password), s.xhrFields)
- for (i in s.xhrFields) n[i] = s.xhrFields[i];
- 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]);
- o = function (t) {
- return function () {
- 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 ? {
- binary: n.response
- } : {
- text: n.responseText
- }, n.getAllResponseHeaders()))
- }
- }, n.onload = o(), r = n.onerror = n.ontimeout = o("error"), void 0 !== n.onabort ? n.onabort = r : n.onreadystatechange = function () {
- 4 === n.readyState && x.setTimeout(function () {
- o && r()
- })
- }, o = o("abort");
- try {
- n.send(s.hasContent && s.data || null)
- } catch (t) {
- if (o) throw t
- }
- },
- abort: function () {
- o && o()
- }
- }
- }), T.ajaxPrefilter(function (t) {
- t.crossDomain && (t.contents.script = !1)
- }), T.ajaxSetup({
- accepts: {
- script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
- },
- contents: {
- script: /\b(?:java|ecma)script\b/
- },
- converters: {
- "text script": function (t) {
- return T.globalEval(t), t
- }
- }
- }), T.ajaxPrefilter("script", function (t) {
- void 0 === t.cache && (t.cache = !1), t.crossDomain && (t.type = "GET")
- }), T.ajaxTransport("script", function (i) {
- var n, s;
- if (i.crossDomain || i.scriptAttrs) return {
- send: function (t, e) {
- n = T("<script>").attr(i.scriptAttrs || {}).prop({
- charset: i.scriptCharset,
- src: i.url
- }).on("load error", s = function (t) {
- n.remove(), s = null, t && e("error" === t.type ? 404 : 200, t.type)
- }), C.head.appendChild(n[0])
- },
- abort: function () {
- s && s()
- }
- }
- });
- var Fe, qe = [],
- Be = /(=)\?(?=&|$)|\?\?/;
- T.ajaxSetup({
- jsonp: "callback",
- jsonpCallback: function () {
- var t = qe.pop() || T.expando + "_" + be.guid++;
- return this[t] = !0, t
- }
- }), T.ajaxPrefilter("json jsonp", function (t, e, i) {
- 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");
- 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 () {
- return o || T.error(n + " was not called"), o[0]
- }, t.dataTypes[0] = "json", s = x[n], x[n] = function () {
- o = arguments
- }, i.always(function () {
- 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
- }), "script"
- }), _.createHTMLDocument = ((Fe = C.implementation.createHTMLDocument("").body).innerHTML = "<form></form><form></form>", 2 === Fe.childNodes.length), T.parseHTML = function (t, e, i) {
- 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)));
- var n, s, o
- }, T.fn.load = function (t, e, i) {
- var n, s, o, r = this,
- a = t.indexOf(" ");
- 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({
- url: t,
- type: s || "GET",
- dataType: "html",
- data: e
- }).done(function (t) {
- o = arguments, r.html(n ? T("<div>").append(T.parseHTML(t)).find(n) : t)
- }).always(i && function (t, e) {
- r.each(function () {
- i.apply(this, o || [t.responseText, e, t])
- })
- }), this
- }, T.expr.pseudos.animated = function (e) {
- return T.grep(T.timers, function (t) {
- return e === t.elem
- }).length
- }, T.offset = {
- setOffset: function (t, e, i) {
- var n, s, o, r, a, l, c = T.css(t, "position"),
- u = T(t),
- h = {};
- "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)
- }
- }, T.fn.extend({
- offset: function (e) {
- if (arguments.length) return void 0 === e ? this : this.each(function (t) {
- T.offset.setOffset(this, e, t)
- });
- var t, i, n = this[0];
- return n ? n.getClientRects().length ? (t = n.getBoundingClientRect(), i = n.ownerDocument.defaultView, {
- top: t.top + i.pageYOffset,
- left: t.left + i.pageXOffset
- }) : {
- top: 0,
- left: 0
- } : void 0
- },
- position: function () {
- if (this[0]) {
- var t, e, i, n = this[0],
- s = {
- top: 0,
- left: 0
- };
- if ("fixed" === T.css(n, "position")) e = n.getBoundingClientRect();
- else {
- 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;
- t && t !== n && 1 === t.nodeType && ((s = T(t).offset()).top += T.css(t, "borderTopWidth", !0), s.left += T.css(t, "borderLeftWidth", !0))
- }
- return {
- top: e.top - s.top - T.css(n, "marginTop", !0),
- left: e.left - s.left - T.css(n, "marginLeft", !0)
- }
- }
- },
- offsetParent: function () {
- return this.map(function () {
- for (var t = this.offsetParent; t && "static" === T.css(t, "position");) t = t.offsetParent;
- return t || it
- })
- }
- }), T.each({
- scrollLeft: "pageXOffset",
- scrollTop: "pageYOffset"
- }, function (e, s) {
- var o = "pageYOffset" === s;
- T.fn[e] = function (t) {
- return R(this, function (t, e, i) {
- var n;
- if (g(t) ? n = t : 9 === t.nodeType && (n = t.defaultView), void 0 === i) return n ? n[s] : t[e];
- n ? n.scrollTo(o ? n.pageXOffset : i, o ? i : n.pageYOffset) : t[e] = i
- }, e, t, arguments.length)
- }
- }), T.each(["top", "left"], function (t, i) {
- T.cssHooks[i] = Wt(_.pixelPosition, function (t, e) {
- if (e) return e = zt(t, i), Lt.test(e) ? T(t).position()[i] + "px" : e
- })
- }), T.each({
- Height: "height",
- Width: "width"
- }, function (r, a) {
- T.each({
- padding: "inner" + r,
- content: a,
- "": "outer" + r
- }, function (n, o) {
- T.fn[o] = function (t, e) {
- var i = arguments.length && (n || "boolean" != typeof t),
- s = n || (!0 === t || !0 === e ? "margin" : "border");
- return R(this, function (t, e, i) {
- var n;
- 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)
- }, a, i ? t : void 0, i)
- }
- })
- }), T.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function (t, e) {
- T.fn[e] = function (t) {
- return this.on(e, t)
- }
- }), T.fn.extend({
- bind: function (t, e, i) {
- return this.on(t, null, e, i)
- },
- unbind: function (t, e) {
- return this.off(t, null, e)
- },
- delegate: function (t, e, i, n) {
- return this.on(e, t, i, n)
- },
- undelegate: function (t, e, i) {
- return 1 === arguments.length ? this.off(t, "**") : this.off(e, t || "**", i)
- },
- hover: function (t, e) {
- return this.mouseenter(t).mouseleave(e || t)
- }
- }), 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) {
- T.fn[i] = function (t, e) {
- return 0 < arguments.length ? this.on(i, null, t, e) : this.trigger(i)
- }
- });
- var Ue = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
- T.proxy = function (t, e) {
- var i, n, s;
- if ("string" == typeof e && (i = t[e], e = t, t = i), y(t)) return n = a.call(arguments, 2), (s = function () {
- return t.apply(e || this, n.concat(a.call(arguments)))
- }).guid = t.guid = t.guid || T.guid++, s
- }, T.holdReady = function (t) {
- t ? T.readyWait++ : T.ready(!0)
- }, 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) {
- var e = T.type(t);
- return ("number" === e || "string" === e) && !isNaN(t - parseFloat(t))
- }, T.trim = function (t) {
- return null == t ? "" : (t + "").replace(Ue, "")
- }, "function" == typeof define && define.amd && define("jquery", [], function () {
- return T
- });
- var Ye = x.jQuery,
- Ve = x.$;
- return T.noConflict = function (t) {
- return x.$ === T && (x.$ = Ve), t && x.jQuery === T && (x.jQuery = Ye), T
- }, void 0 === t && (x.jQuery = x.$ = T), T
- }), void 0 === jQuery.migrateMute && (jQuery.migrateMute = !0),
- function (e) {
- "function" == typeof define && define.amd ? define(["jquery"], function (t) {
- return e(t, window)
- }) : "object" == ("undefined" == typeof module ? "undefined" : _typeof(module)) && module.exports ? module.exports = e(require("jquery"), window) : e(jQuery, window)
- }(function (a, n) {
- function t(t) {
- return 0 <= function (t, e) {
- for (var i = /^(\d+)\.(\d+)\.(\d+)/, n = i.exec(t) || [], s = i.exec(e) || [], o = 1; o <= 3; o++) {
- if (+s[o] < +n[o]) return 1;
- if (+n[o] < +s[o]) return -1
- }
- return 0
- }(a.fn.jquery, t)
- }
- 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));
- var i = {};
-
- function l(t) {
- var e = n.console;
- 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()))
- }
-
- function e(t, e, i, n) {
- Object.defineProperty(t, e, {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return l(n), i
- },
- set: function (t) {
- l(n), i = t
- }
- })
- }
-
- function s(t, e, i, n) {
- t[e] = function () {
- return l(n), i.apply(this, arguments)
- }
- }
- a.migrateDeduplicateWarnings = !0, a.migrateWarnings = [], void 0 === a.migrateTrace && (a.migrateTrace = !0), a.migrateReset = function () {
- i = {}, a.migrateWarnings.length = 0
- }, "BackCompat" === n.document.compatMode && l("jQuery is not compatible with Quirks Mode");
- var o, r, c, u = {},
- h = a.fn.init,
- d = a.find,
- p = /\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,
- f = /\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,
- g = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
- for (o in a.fn.init = function (t) {
- var e = Array.prototype.slice.call(arguments);
- return "string" == typeof t && "#" === t && (l("jQuery( '#' ) is not a valid selector"), e[0] = []), h.apply(this, e)
- }, a.fn.init.prototype = a.fn, a.find = function (e) {
- var i = Array.prototype.slice.call(arguments);
- if ("string" == typeof e && p.test(e)) try {
- n.document.querySelector(e)
- } catch (t) {
- e = e.replace(f, function (t, e, i, n) {
- return "[" + e + i + '"' + n + '"]'
- });
- try {
- n.document.querySelector(e), l("Attribute selector with '#' must be quoted: " + i[0]), i[0] = e
- } catch (t) {
- l("Attribute selector with '#' was not fixed: " + i[0])
- }
- }
- return d.apply(this, i)
- }, d) Object.prototype.hasOwnProperty.call(d, o) && (a.find[o] = d[o]);
- s(a.fn, "size", function () {
- return this.length
- }, "jQuery.fn.size() is deprecated and removed; use the .length property"), s(a, "parseJSON", function () {
- return JSON.parse.apply(null, arguments)
- }, "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) {
- return null == t ? "" : (t + "").replace(g, "")
- }, "jQuery.trim is deprecated; use String.prototype.trim"), t("3.2.0") && (s(a, "nodeName", function (t, e) {
- return t.nodeName && t.nodeName.toLowerCase() === e.toLowerCase()
- }, "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) {
- var e = _typeof(t);
- return ("number" == e || "string" == e) && !isNaN(t - parseFloat(t))
- }, "jQuery.isNumeric() is deprecated"), a.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "), function (t, e) {
- u["[object " + e + "]"] = e.toLowerCase()
- }), s(a, "type", function (t) {
- return null == t ? t + "" : "object" == _typeof(t) || "function" == typeof t ? u[Object.prototype.toString.call(t)] || "object" : _typeof(t)
- }, "jQuery.type is deprecated"), s(a, "isFunction", function (t) {
- return "function" == typeof t
- }, "jQuery.isFunction() is deprecated"), s(a, "isWindow", function (t) {
- return null != t && t === t.window
- }, "jQuery.isWindow() is deprecated")), a.ajax && (r = a.ajax, c = /(=)\?(?=&|$)|\?\?/, a.ajax = function () {
- var t = r.apply(this, arguments);
- 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
- }, t("4.0.0") || a.ajaxPrefilter("+json", function (t) {
- !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")
- }));
- var m = a.fn.removeAttr,
- v = a.fn.toggleClass,
- _ = /\S+/g;
-
- function y(t) {
- return t.replace(/-([a-z])/g, function (t, e) {
- return e.toUpperCase()
- })
- }
- a.fn.removeAttr = function (t) {
- var i = this;
- return a.each(t.match(_), function (t, e) {
- a.expr.match.bool.test(e) && (l("jQuery.fn.removeAttr no longer sets boolean properties: " + e), i.prop(e, !1))
- }), m.apply(this, arguments)
- };
- var b, w = !(a.fn.toggleClass = function (e) {
- return void 0 !== e && "boolean" != typeof e ? v.apply(this, arguments) : (l("jQuery.fn.toggleClass( boolean ) is deprecated"), this.each(function () {
- var t = this.getAttribute && this.getAttribute("class") || "";
- t && a.data(this, "__className__", t), this.setAttribute && this.setAttribute("class", !t && !1 !== e && a.data(this, "__className__") || "")
- }))
- }),
- k = /^[a-z]/,
- x = /^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;
- a.swap && a.each(["height", "width", "reliableMarginRight"], function (t, e) {
- var i = a.cssHooks[e] && a.cssHooks[e].get;
- i && (a.cssHooks[e].get = function () {
- var t;
- return w = !0, t = i.apply(this, arguments), w = !1, t
- })
- }), a.swap = function (t, e, i, n) {
- var s, o, r = {};
- for (o in w || l("jQuery.swap() is undocumented and deprecated"), e) r[o] = t.style[o], t.style[o] = e[o];
- for (o in s = i.apply(t, n || []), e) t.style[o] = r[o];
- return s
- }, t("3.4.0") && "undefined" != typeof Proxy && (a.cssProps = new Proxy(a.cssProps || {}, {
- set: function () {
- return l("JQMIGRATE: jQuery.cssProps is deprecated"), Reflect.set.apply(this, arguments)
- }
- })), a.cssNumber || (a.cssNumber = {}), b = a.fn.css, a.fn.css = function (t, e) {
- var i, n, s = this;
- return t && "object" == _typeof(t) && !Array.isArray(t) ? (a.each(t, function (t, e) {
- a.fn.css.call(s, t, e)
- }), 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))
- };
- var C, T, S, D, A = a.data;
- a.data = function (t, e, i) {
- var n, s, o;
- if (e && "object" == _typeof(e) && 2 === arguments.length) {
- 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];
- return A.call(this, t, s), e
- }
- 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)
- }, a.fx && (S = a.Tween.prototype.run, D = function (t) {
- return t
- }, a.Tween.prototype.run = function () {
- 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)
- }, C = a.fx.interval || 13, T = "jQuery.fx.interval is deprecated", n.requestAnimationFrame && Object.defineProperty(a.fx, "interval", {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return n.document.hidden || l(T), C
- },
- set: function (t) {
- l(T), C = t
- }
- }));
- var E = a.fn.load,
- P = a.event.add,
- I = a.event.fix;
-
- function O(t) {
- var e = n.document.implementation.createHTMLDocument("");
- return e.body.innerHTML = t, e.body && e.body.innerHTML
- }
-
- function M(t) {
- var e = t.replace(N, "<$1></$2>");
- e !== t && O(t) !== O(e) && l("HTML tags must be properly nested and closed: " + t)
- }
- 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) {
- var e, i = t.type,
- n = this.fixHooks[i],
- s = a.event.props;
- if (s.length)
- for (l("jQuery.event.props are deprecated and removed: " + s.join()); s.length;) a.event.addProp(s.pop());
- if (n && !n._migrated_ && (n._migrated_ = !0, l("jQuery.event.fixHooks are deprecated and removed: " + i), (s = n.props) && s.length))
- for (; s.length;) a.event.addProp(s.pop());
- return e = I.call(this, t), n && n.filter ? n.filter(e, t) : e
- }, a.event.add = function (t, e) {
- return t === n && "load" === e && "complete" === n.document.readyState && l("jQuery(window).on('load'...) called after load event occurred"), P.apply(this, arguments)
- }, a.each(["load", "unload", "error"], function (t, e) {
- a.fn[e] = function () {
- var t = Array.prototype.slice.call(arguments, 0);
- 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))
- }
- }), 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) {
- a.fn[i] = function (t, e) {
- return l("jQuery.fn." + i + "() event shorthand is deprecated"), 0 < arguments.length ? this.on(i, null, t, e) : this.trigger(i)
- }
- }), a(function () {
- a(n.document).triggerHandler("ready")
- }), a.event.special.ready = {
- setup: function () {
- this === n.document && l("'ready' event is deprecated")
- }
- }, a.fn.extend({
- bind: function (t, e, i) {
- return l("jQuery.fn.bind() is deprecated"), this.on(t, null, e, i)
- },
- unbind: function (t, e) {
- return l("jQuery.fn.unbind() is deprecated"), this.off(t, null, e)
- },
- delegate: function (t, e, i, n) {
- return l("jQuery.fn.delegate() is deprecated"), this.on(e, t, i, n)
- },
- undelegate: function (t, e, i) {
- return l("jQuery.fn.undelegate() is deprecated"), 1 === arguments.length ? this.off(t, "**") : this.off(e, t || "**", i)
- },
- hover: function (t, e) {
- return l("jQuery.fn.hover() is deprecated"), this.on("mouseenter", t).on("mouseleave", e || t)
- }
- });
- var N = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,
- L = a.htmlPrefilter;
- a.UNSAFE_restoreLegacyHtmlPrefilter = function () {
- a.htmlPrefilter = function (t) {
- return M(t), t.replace(N, "<$1></$2>")
- }
- }, a.htmlPrefilter = function (t) {
- return M(t), L(t)
- };
- var H, j = a.fn.offset;
- a.fn.offset = function () {
- var t = this[0];
- return !t || t.nodeType && t.getBoundingClientRect ? j.apply(this, arguments) : (l("jQuery.fn.offset() requires a valid DOM element"), arguments.length ? this : void 0)
- }, a.ajax && (H = a.param, a.param = function (t, e) {
- var i = a.ajaxSettings && a.ajaxSettings.traditional;
- return void 0 === e && i && (l("jQuery.param() no longer uses jQuery.ajaxSettings.traditional"), e = i), H.call(this, t, e)
- });
- var z, W, $ = a.fn.andSelf || a.fn.addBack;
- return a.fn.andSelf = function () {
- return l("jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"), $.apply(this, arguments)
- }, a.Deferred && (z = a.Deferred, W = [
- ["resolve", "done", a.Callbacks("once memory"), a.Callbacks("once memory"), "resolved"],
- ["reject", "fail", a.Callbacks("once memory"), a.Callbacks("once memory"), "rejected"],
- ["notify", "progress", a.Callbacks("memory"), a.Callbacks("memory")]
- ], a.Deferred = function (t) {
- var o = z(),
- r = o.promise();
- return o.pipe = r.pipe = function () {
- var s = arguments;
- return l("deferred.pipe() is deprecated"), a.Deferred(function (n) {
- a.each(W, function (t, e) {
- var i = "function" == typeof s[t] && s[t];
- o[e[1]](function () {
- var t = i && i.apply(this, arguments);
- 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)
- })
- }), s = null
- }).promise()
- }, t && t.call(o, o), o
- }, a.Deferred.exceptionHook = z.exceptionHook), a
- }),
- function (o, h, d) {
- function p(t, e) {
- return _typeof(t) === e
- }
-
- function r(t) {
- var e = b.className,
- i = _._config.classPrefix || "";
- if (w && (e = e.baseVal), _._config.enableJSClass) {
- var n = new RegExp("(^|\\s)" + i + "no-js(\\s|$)");
- e = e.replace(n, "$1" + i + "js$2")
- }
- _._config.enableClasses && (0 < t.length && (e += " " + i + t.join(" " + i)), w ? b.className.baseVal = e : b.className = e)
- }
-
- function a(t, e) {
- if ("object" == _typeof(t))
- for (var i in t) x(t, i) && a(i, t[i]);
- else {
- var n = (t = t.toLowerCase()).split("."),
- s = _[n[0]];
- if (2 === n.length && (s = s[n[1]]), void 0 !== s) return _;
- 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)
- }
- return _
- }
-
- function f() {
- 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)
- }
-
- function s(t, e, i, n) {
- var s, o, r, a, l = "modernizr",
- c = f("div"),
- u = function () {
- var t = h.body;
- return t || ((t = f(w ? "svg" : "body")).fake = !0), t
- }();
- if (parseInt(i, 10))
- for (; i--;)(r = f("div")).id = n ? n[i] : l + (i + 1), c.appendChild(r);
- 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
- }
-
- function l(t) {
- return t.replace(/([A-Z])/g, function (t, e) {
- return "-" + e.toLowerCase()
- }).replace(/^ms-/, "-ms-")
- }
-
- function g(t, e) {
- var i = t.length;
- if ("CSS" in o && "supports" in o.CSS) {
- for (; i--;)
- if (o.CSS.supports(l(t[i]), e)) return !0;
- return !1
- }
- if ("CSSSupportsRule" in o) {
- for (var n = []; i--;) n.push("(" + l(t[i]) + ":" + e + ")");
- return s("@supports (" + (n = n.join(" or ")) + ") { #modernizr { position: absolute; } }", function (t) {
- return "absolute" === function (t, e, i) {
- var n;
- if ("getComputedStyle" in o) {
- n = getComputedStyle.call(o, t, e);
- var s = o.console;
- 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")
- } else n = !e && t.currentStyle && t.currentStyle[i];
- return n
- }(t, null, "position")
- })
- }
- return d
- }
-
- function c(t, e, i, n) {
- function s() {
- r && (delete I.style, delete I.modElem)
- }
- if (n = !p(n, "undefined") && n, !p(i, "undefined")) {
- var o = g(t, i);
- if (!p(o, "undefined")) return o
- }
- 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;
- for (l = t.length, a = 0; a < l; a++)
- if (c = t[a], u = I.style[c], !!~("" + c).indexOf("-") && (c = c.replace(/([a-z])-([a-z])/g, function (t, e, i) {
- return e + i.toUpperCase()
- }).replace(/^-/, "")), I.style[c] !== d) {
- if (n || p(i, "undefined")) return s(), "pfx" !== e || c;
- try {
- I.style[c] = i
- } catch (t) {}
- if (I.style[c] !== u) return s(), "pfx" !== e || c
- } return s(), !1
- }
-
- function u(t, e) {
- return function () {
- return t.apply(e, arguments)
- }
- }
-
- function n(t, e, i, n, s) {
- var o = t.charAt(0).toUpperCase() + t.slice(1),
- r = (t + " " + E.join(o + " ") + o).split(" ");
- return p(e, "string") || p(e, "undefined") ? c(r, e, n, s) : function (t, e, i) {
- var n;
- for (var s in t)
- if (t[s] in e) return !1 === i ? t[s] : p(n = e[t[s]], "function") ? u(n, i || e) : n;
- return !1
- }(r = (t + " " + k.join(o + " ") + o).split(" "), e, i)
- }
-
- function m(t, e, i) {
- return n(t, d, d, e, i)
- }
- var v = [],
- t = {
- _version: "3.7.1",
- _config: {
- classPrefix: "",
- enableClasses: !0,
- enableJSClass: !0,
- usePrefixes: !0
- },
- _q: [],
- on: function (t, e) {
- var i = this;
- setTimeout(function () {
- e(i[t])
- }, 0)
- },
- addTest: function (t, e, i) {
- v.push({
- name: t,
- fn: e,
- options: i
- })
- },
- addAsyncTest: function (t) {
- v.push({
- name: null,
- fn: t
- })
- }
- },
- _ = function () {};
- _.prototype = t, _ = new _;
- var y = [],
- b = h.documentElement,
- w = "svg" === b.nodeName.toLowerCase(),
- e = "Moz O ms Webkit",
- k = t._config.usePrefixes ? e.toLowerCase().split(" ") : [];
- t._domPrefixes = k;
- var x, i, C = t._config.usePrefixes ? " -webkit- -moz- -o- -ms- ".split(" ") : ["", ""];
- t._prefixes = C, x = p(i = {}.hasOwnProperty, "undefined") || p(i.call, "undefined") ? function (t, e) {
- return e in t && p(t.constructor.prototype[e], "undefined")
- } : function (t, e) {
- return i.call(t, e)
- }, t._l = {}, t.on = function (t, e) {
- this._l[t] || (this._l[t] = []), this._l[t].push(e), _.hasOwnProperty(t) && setTimeout(function () {
- _._trigger(t, _[t])
- }, 0)
- }, t._trigger = function (t, e) {
- if (this._l[t]) {
- var i = this._l[t];
- setTimeout(function () {
- var t;
- for (t = 0; t < i.length; t++)(0, i[t])(e)
- }, 0), delete this._l[t]
- }
- }, _._q.push(function () {
- t.addTest = a
- });
- var T, S = (T = !("onblur" in b), function (t, e) {
- var i;
- 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)
- });
- t.hasEvent = S;
- var D, A = (D = o.matchMedia || o.msMatchMedia) ? function (t) {
- var e = D(t);
- return e && e.matches || !1
- } : function (t) {
- var e = !1;
- return s("@media " + t + " { #modernizr { position: absolute; } }", function (t) {
- e = "absolute" === (o.getComputedStyle ? o.getComputedStyle(t, null) : t.currentStyle).position
- }), e
- };
- t.mq = A;
- t.prefixedCSSValue = function (t, e) {
- var i = !1,
- n = f("div").style;
- if (t in n) {
- var s = k.length;
- for (n[t] = e, i = n[t]; s-- && !i;) n[t] = "-" + k[s] + "-" + e, i = n[t]
- }
- return "" === i && (i = !1), i
- };
- var E = t._config.usePrefixes ? e.split(" ") : [];
- t._cssomPrefixes = E;
- var P = {
- elem: f("modernizr")
- };
- _._q.push(function () {
- delete P.elem
- });
- var I = {
- style: P.elem.style
- };
- _._q.unshift(function () {
- delete I.style
- }), t.testAllProps = n, t.testAllProps = m, t.testProp = function (t, e, i) {
- return c([t], d, e, i)
- }, t.testStyles = s, _.addTest("customelements", "customElements" in o), _.addTest("history", function () {
- var t = navigator.userAgent;
- 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
- }), _.addTest("pointerevents", function () {
- var t = !1,
- e = k.length;
- for (t = _.hasEvent("pointerdown"); e-- && !t;) S(k[e] + "pointerdown") && (t = !0);
- return t
- });
- var O = new Boolean("postMessage" in o);
- O.structuredclones = !0;
- try {
- o.postMessage({
- toString: function () {
- O.structuredclones = !1
- }
- }, "*")
- } catch (o) {}
- _.addTest("postmessage", O), _.addTest("webgl", function () {
- return "WebGLRenderingContext" in o
- });
- var M = !1;
- try {
- M = "WebSocket" in o && 2 === o.WebSocket.CLOSING
- } catch (o) {}
- _.addTest("websockets", M), _.addTest("cssanimations", m("animationName", "a", !0)),
- function () {
- _.addTest("csscolumns", function () {
- var t = !1,
- e = m("columnCount");
- try {
- (t = !!e) && (t = new Boolean(t))
- } catch (t) {}
- return t
- });
- 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)
- }(), _.addTest("flexbox", m("flexBasis", "1px", !0)), _.addTest("picture", "HTMLPictureElement" in o), _.addAsyncTest(function () {
- var t, e, i = f("img"),
- n = "sizes" in i;
- !n && "srcset" in i ? (t = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==", e = function () {
- a("sizes", 2 === i.width)
- }, 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)
- }), _.addTest("srcset", "srcset" in f("img")), _.addTest("webworkers", "Worker" in o),
- function () {
- var t, e, i, n, s, o;
- for (var r in v)
- if (v.hasOwnProperty(r)) {
- if (t = [], (e = v[r]).name && (t.push(e.name.toLowerCase()), e.options && e.options.aliases && e.options.aliases.length))
- for (i = 0; i < e.options.aliases.length; i++) t.push(e.options.aliases[i].toLowerCase());
- 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("-"))
- }
- }(), r(y), delete t.addTest, delete t.addAsyncTest;
- for (var N = 0; N < _._q.length; N++) _._q[N]();
- o.Modernizr = _
- }(window, document),
- function (t, e) {
- "object" == ("undefined" == typeof module ? "undefined" : _typeof(module)) && "object" == _typeof(module.exports) ? module.exports = t.document ? e(t, !0) : function (t) {
- if (!t.document) throw new Error("jQuery requires a window with a document");
- return e(t)
- } : e(t)
- }("undefined" != typeof window ? window : void 0, function (x, t) {
- function g(t) {
- return null != t && t === t.window
- }
- var e = [],
- n = Object.getPrototypeOf,
- a = e.slice,
- m = e.flat ? function (t) {
- return e.flat.call(t)
- } : function (t) {
- return e.concat.apply([], t)
- },
- l = e.push,
- s = e.indexOf,
- i = {},
- o = i.toString,
- v = i.hasOwnProperty,
- r = v.toString,
- c = r.call(Object),
- _ = {},
- y = function (t) {
- return "function" == typeof t && "number" != typeof t.nodeType && "function" != typeof t.item
- },
- C = x.document,
- u = {
- type: !0,
- src: !0,
- nonce: !0,
- noModule: !0
- };
-
- function b(t, e, i) {
- var n, s, o = (i = i || C).createElement("script");
- if (o.text = t, e)
- for (n in u)(s = e[n] || e.getAttribute && e.getAttribute(n)) && o.setAttribute(n, s);
- i.head.appendChild(o).parentNode.removeChild(o)
- }
-
- function w(t) {
- return null == t ? t + "" : "object" == _typeof(t) || "function" == typeof t ? i[o.call(t)] || "object" : _typeof(t)
- }
- var T = function t(e, i) {
- return new t.fn.init(e, i)
- };
-
- function h(t) {
- var e = !!t && "length" in t && t.length,
- i = w(t);
- return !y(t) && !g(t) && ("array" === i || 0 === e || "number" == typeof e && 0 < e && e - 1 in t)
- }
- T.fn = T.prototype = {
- jquery: "3.6.0",
- constructor: T,
- length: 0,
- toArray: function () {
- return a.call(this)
- },
- get: function (t) {
- return null == t ? a.call(this) : t < 0 ? this[t + this.length] : this[t]
- },
- pushStack: function (t) {
- var e = T.merge(this.constructor(), t);
- return e.prevObject = this, e
- },
- each: function (t) {
- return T.each(this, t)
- },
- map: function (i) {
- return this.pushStack(T.map(this, function (t, e) {
- return i.call(t, e, t)
- }))
- },
- slice: function () {
- return this.pushStack(a.apply(this, arguments))
- },
- first: function () {
- return this.eq(0)
- },
- last: function () {
- return this.eq(-1)
- },
- even: function () {
- return this.pushStack(T.grep(this, function (t, e) {
- return (e + 1) % 2
- }))
- },
- odd: function () {
- return this.pushStack(T.grep(this, function (t, e) {
- return e % 2
- }))
- },
- eq: function (t) {
- var e = this.length,
- i = +t + (t < 0 ? e : 0);
- return this.pushStack(0 <= i && i < e ? [this[i]] : [])
- },
- end: function () {
- return this.prevObject || this.constructor()
- },
- push: l,
- sort: e.sort,
- splice: e.splice
- }, T.extend = T.fn.extend = function () {
- var t, e, i, n, s, o, r = arguments[0] || {},
- a = 1,
- l = arguments.length,
- c = !1;
- for ("boolean" == typeof r && (c = r, r = arguments[a] || {}, a++), "object" == _typeof(r) || y(r) || (r = {}), a === l && (r = this, a--); a < l; a++)
- if (null != (t = arguments[a]))
- 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));
- return r
- }, T.extend({
- expando: "jQuery" + ("3.6.0" + Math.random()).replace(/\D/g, ""),
- isReady: !0,
- error: function (t) {
- throw new Error(t)
- },
- noop: function () {},
- isPlainObject: function (t) {
- var e, i;
- return !(!t || "[object Object]" !== o.call(t) || (e = n(t)) && ("function" != typeof (i = v.call(e, "constructor") && e.constructor) || r.call(i) !== c))
- },
- isEmptyObject: function (t) {
- var e;
- for (e in t) return !1;
- return !0
- },
- globalEval: function (t, e, i) {
- b(t, {
- nonce: e && e.nonce
- }, i)
- },
- each: function (t, e) {
- var i, n = 0;
- if (h(t))
- for (i = t.length; n < i && !1 !== e.call(t[n], n, t[n]); n++);
- else
- for (n in t)
- if (!1 === e.call(t[n], n, t[n])) break;
- return t
- },
- makeArray: function (t, e) {
- var i = e || [];
- return null != t && (h(Object(t)) ? T.merge(i, "string" == typeof t ? [t] : t) : l.call(i, t)), i
- },
- inArray: function (t, e, i) {
- return null == e ? -1 : s.call(e, t, i)
- },
- merge: function (t, e) {
- for (var i = +e.length, n = 0, s = t.length; n < i; n++) t[s++] = e[n];
- return t.length = s, t
- },
- grep: function (t, e, i) {
- for (var n = [], s = 0, o = t.length, r = !i; s < o; s++) !e(t[s], s) != r && n.push(t[s]);
- return n
- },
- map: function (t, e, i) {
- var n, s, o = 0,
- r = [];
- if (h(t))
- for (n = t.length; o < n; o++) null != (s = e(t[o], o, i)) && r.push(s);
- else
- for (o in t) null != (s = e(t[o], o, i)) && r.push(s);
- return m(r)
- },
- guid: 1,
- support: _
- }), "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) {
- i["[object " + e + "]"] = e.toLowerCase()
- });
- var d = function (i) {
- function h(t, e) {
- var i = "0x" + t.slice(1) - 65536;
- return e || (i < 0 ? String.fromCharCode(65536 + i) : String.fromCharCode(i >> 10 | 55296, 1023 & i | 56320))
- }
-
- function s() {
- k()
- }
- var t, p, b, o, r, f, d, g, w, l, c, k, x, a, C, m, u, v, _, T = "sizzle" + 1 * new Date,
- y = i.document,
- S = 0,
- n = 0,
- D = lt(),
- A = lt(),
- E = lt(),
- P = lt(),
- I = function (t, e) {
- return t === e && (c = !0), 0
- },
- O = {}.hasOwnProperty,
- e = [],
- M = e.pop,
- N = e.push,
- L = e.push,
- H = e.slice,
- j = function (t, e) {
- for (var i = 0, n = t.length; i < n; i++)
- if (t[i] === e) return i;
- return -1
- },
- z = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
- W = "[\\x20\\t\\r\\n\\f]",
- $ = "(?:\\\\[\\da-fA-F]{1,6}" + W + "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",
- R = "\\[" + W + "*(" + $ + ")(?:" + W + "*([*^$|!~]?=)" + W + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + $ + "))|)" + W + "*\\]",
- F = ":(" + $ + ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" + R + ")*)|.*)\\)|)",
- q = new RegExp(W + "+", "g"),
- B = new RegExp("^" + W + "+|((?:^|[^\\\\])(?:\\\\.)*)" + W + "+$", "g"),
- U = new RegExp("^" + W + "*," + W + "*"),
- Y = new RegExp("^" + W + "*([>+~]|" + W + ")" + W + "*"),
- V = new RegExp(W + "|>"),
- K = new RegExp(F),
- X = new RegExp("^" + $ + "$"),
- Q = {
- ID: new RegExp("^#(" + $ + ")"),
- CLASS: new RegExp("^\\.(" + $ + ")"),
- TAG: new RegExp("^(" + $ + "|[*])"),
- ATTR: new RegExp("^" + R),
- PSEUDO: new RegExp("^" + F),
- CHILD: new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + W + "*(even|odd|(([+-]|)(\\d*)n|)" + W + "*(?:([+-]|)" + W + "*(\\d+)|))" + W + "*\\)|)", "i"),
- bool: new RegExp("^(?:" + z + ")$", "i"),
- needsContext: new RegExp("^" + W + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + W + "*((?:-\\d)?\\d*)" + W + "*\\)|)(?=[^-]|$)", "i")
- },
- G = /HTML$/i,
- J = /^(?:input|select|textarea|button)$/i,
- Z = /^h\d$/i,
- tt = /^[^{]+\{\s*\[native \w/,
- et = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
- it = /[+~]/,
- nt = new RegExp("\\\\[\\da-fA-F]{1,6}" + W + "?|\\\\([^\\r\\n\\f])", "g"),
- st = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,
- ot = function (t, e) {
- return e ? "\0" === t ? "�" : t.slice(0, -1) + "\\" + t.charCodeAt(t.length - 1).toString(16) + " " : "\\" + t
- },
- rt = bt(function (t) {
- return !0 === t.disabled && "fieldset" === t.nodeName.toLowerCase()
- }, {
- dir: "parentNode",
- next: "legend"
- });
- try {
- L.apply(e = H.call(y.childNodes), y.childNodes), e[y.childNodes.length].nodeType
- } catch (t) {
- L = {
- apply: e.length ? function (t, e) {
- N.apply(t, H.call(e))
- } : function (t, e) {
- for (var i = t.length, n = 0; t[i++] = e[n++];);
- t.length = i - 1
- }
- }
- }
-
- function at(t, e, i, n) {
- var s, o, r, a, l, c, u, h = e && e.ownerDocument,
- d = e ? e.nodeType : 9;
- if (i = i || [], "string" != typeof t || !t || 1 !== d && 9 !== d && 11 !== d) return i;
- if (!n && (k(e), e = e || x, C)) {
- if (11 !== d && (l = et.exec(t)))
- if (s = l[1]) {
- if (9 === d) {
- if (!(r = e.getElementById(s))) return i;
- if (r.id === s) return i.push(r), i
- } else if (h && (r = h.getElementById(s)) && _(e, r) && r.id === s) return i.push(r), i
- } else {
- if (l[2]) return L.apply(i, e.getElementsByTagName(t)), i;
- if ((s = l[3]) && p.getElementsByClassName && e.getElementsByClassName) return L.apply(i, e.getElementsByClassName(s)), i
- } if (p.qsa && !P[t + " "] && (!m || !m.test(t)) && (1 !== d || "object" !== e.nodeName.toLowerCase())) {
- if (u = t, h = e, 1 === d && (V.test(t) || Y.test(t))) {
- 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]);
- u = c.join(",")
- }
- try {
- return L.apply(i, h.querySelectorAll(u)), i
- } catch (e) {
- P(t, !0)
- } finally {
- a === T && e.removeAttribute("id")
- }
- }
- }
- return g(t.replace(B, "$1"), e, i, n)
- }
-
- function lt() {
- var n = [];
- return function t(e, i) {
- return n.push(e + " ") > b.cacheLength && delete t[n.shift()], t[e + " "] = i
- }
- }
-
- function ct(t) {
- return t[T] = !0, t
- }
-
- function ut(t) {
- var e = x.createElement("fieldset");
- try {
- return !!t(e)
- } catch (t) {
- return !1
- } finally {
- e.parentNode && e.parentNode.removeChild(e), e = null
- }
- }
-
- function ht(t, e) {
- for (var i = t.split("|"), n = i.length; n--;) b.attrHandle[i[n]] = e
- }
-
- function dt(t, e) {
- var i = e && t,
- n = i && 1 === t.nodeType && 1 === e.nodeType && t.sourceIndex - e.sourceIndex;
- if (n) return n;
- if (i)
- for (; i = i.nextSibling;)
- if (i === e) return -1;
- return t ? 1 : -1
- }
-
- function pt(e) {
- return function (t) {
- return "input" === t.nodeName.toLowerCase() && t.type === e
- }
- }
-
- function ft(i) {
- return function (t) {
- var e = t.nodeName.toLowerCase();
- return ("input" === e || "button" === e) && t.type === i
- }
- }
-
- function gt(e) {
- return function (t) {
- 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
- }
- }
-
- function mt(r) {
- return ct(function (o) {
- return o = +o, ct(function (t, e) {
- for (var i, n = r([], t.length, o), s = n.length; s--;) t[i = n[s]] && (t[i] = !(e[i] = t[i]))
- })
- })
- }
-
- function vt(t) {
- return t && void 0 !== t.getElementsByTagName && t
- }
- for (t in p = at.support = {}, r = at.isXML = function (t) {
- var e = t && t.namespaceURI,
- i = t && (t.ownerDocument || t).documentElement;
- return !G.test(e || i && i.nodeName || "HTML")
- }, k = at.setDocument = function (t) {
- var e, i, n = t ? t.ownerDocument || t : y;
- 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) {
- return a.appendChild(t).appendChild(x.createElement("div")), void 0 !== t.querySelectorAll && !t.querySelectorAll(":scope fieldset div").length
- }), p.attributes = ut(function (t) {
- return t.className = "i", !t.getAttribute("className")
- }), p.getElementsByTagName = ut(function (t) {
- return t.appendChild(x.createComment("")), !t.getElementsByTagName("*").length
- }), p.getElementsByClassName = tt.test(x.getElementsByClassName), p.getById = ut(function (t) {
- return a.appendChild(t).id = T, !x.getElementsByName || !x.getElementsByName(T).length
- }), p.getById ? (b.filter.ID = function (t) {
- var e = t.replace(nt, h);
- return function (t) {
- return t.getAttribute("id") === e
- }
- }, b.find.ID = function (t, e) {
- if (void 0 !== e.getElementById && C) {
- var i = e.getElementById(t);
- return i ? [i] : []
- }
- }) : (b.filter.ID = function (t) {
- var i = t.replace(nt, h);
- return function (t) {
- var e = void 0 !== t.getAttributeNode && t.getAttributeNode("id");
- return e && e.value === i
- }
- }, b.find.ID = function (t, e) {
- if (void 0 !== e.getElementById && C) {
- var i, n, s, o = e.getElementById(t);
- if (o) {
- if ((i = o.getAttributeNode("id")) && i.value === t) return [o];
- for (s = e.getElementsByName(t), n = 0; o = s[n++];)
- if ((i = o.getAttributeNode("id")) && i.value === t) return [o]
- }
- return []
- }
- }), b.find.TAG = p.getElementsByTagName ? function (t, e) {
- return void 0 !== e.getElementsByTagName ? e.getElementsByTagName(t) : p.qsa ? e.querySelectorAll(t) : void 0
- } : function (t, e) {
- var i, n = [],
- s = 0,
- o = e.getElementsByTagName(t);
- if ("*" !== t) return o;
- for (; i = o[s++];) 1 === i.nodeType && n.push(i);
- return n
- }, b.find.CLASS = p.getElementsByClassName && function (t, e) {
- if (void 0 !== e.getElementsByClassName && C) return e.getElementsByClassName(t)
- }, u = [], m = [], (p.qsa = tt.test(x.querySelectorAll)) && (ut(function (t) {
- var e;
- 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]")
- }), ut(function (t) {
- t.innerHTML = "<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";
- var e = x.createElement("input");
- 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(",.*:")
- })), (p.matchesSelector = tt.test(v = a.matches || a.webkitMatchesSelector || a.mozMatchesSelector || a.oMatchesSelector || a.msMatchesSelector)) && ut(function (t) {
- p.disconnectedMatch = v.call(t, "*"), v.call(t, "[s!='']:x"), u.push("!=", F)
- }), 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) {
- var i = 9 === t.nodeType ? t.documentElement : t,
- n = e && e.parentNode;
- return t === n || !(!n || 1 !== n.nodeType || !(i.contains ? i.contains(n) : t.compareDocumentPosition && 16 & t.compareDocumentPosition(n)))
- } : function (t, e) {
- if (e)
- for (; e = e.parentNode;)
- if (e === t) return !0;
- return !1
- }, I = e ? function (t, e) {
- if (t === e) return c = !0, 0;
- var i = !t.compareDocumentPosition - !e.compareDocumentPosition;
- 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)
- } : function (t, e) {
- if (t === e) return c = !0, 0;
- var i, n = 0,
- s = t.parentNode,
- o = e.parentNode,
- r = [t],
- a = [e];
- if (!s || !o) return t == x ? -1 : e == x ? 1 : s ? -1 : o ? 1 : l ? j(l, t) - j(l, e) : 0;
- if (s === o) return dt(t, e);
- for (i = t; i = i.parentNode;) r.unshift(i);
- for (i = e; i = i.parentNode;) a.unshift(i);
- for (; r[n] === a[n];) n++;
- return n ? dt(r[n], a[n]) : r[n] == y ? -1 : a[n] == y ? 1 : 0
- }), x
- }, at.matches = function (t, e) {
- return at(t, null, null, e)
- }, at.matchesSelector = function (t, e) {
- if (k(t), p.matchesSelector && C && !P[e + " "] && (!u || !u.test(e)) && (!m || !m.test(e))) try {
- var i = v.call(t, e);
- if (i || p.disconnectedMatch || t.document && 11 !== t.document.nodeType) return i
- } catch (t) {
- P(e, !0)
- }
- return 0 < at(e, x, null, [t]).length
- }, at.contains = function (t, e) {
- return (t.ownerDocument || t) != x && k(t), _(t, e)
- }, at.attr = function (t, e) {
- (t.ownerDocument || t) != x && k(t);
- var i = b.attrHandle[e.toLowerCase()],
- n = i && O.call(b.attrHandle, e.toLowerCase()) ? i(t, e, !C) : void 0;
- return void 0 !== n ? n : p.attributes || !C ? t.getAttribute(e) : (n = t.getAttributeNode(e)) && n.specified ? n.value : null
- }, at.escape = function (t) {
- return (t + "").replace(st, ot)
- }, at.error = function (t) {
- throw new Error("Syntax error, unrecognized expression: " + t)
- }, at.uniqueSort = function (t) {
- var e, i = [],
- n = 0,
- s = 0;
- if (c = !p.detectDuplicates, l = !p.sortStable && t.slice(0), t.sort(I), c) {
- for (; e = t[s++];) e === t[s] && (n = i.push(s));
- for (; n--;) t.splice(i[n], 1)
- }
- return l = null, t
- }, o = at.getText = function (t) {
- var e, i = "",
- n = 0,
- s = t.nodeType;
- if (s) {
- if (1 === s || 9 === s || 11 === s) {
- if ("string" == typeof t.textContent) return t.textContent;
- for (t = t.firstChild; t; t = t.nextSibling) i += o(t)
- } else if (3 === s || 4 === s) return t.nodeValue
- } else
- for (; e = t[n++];) i += o(e);
- return i
- }, (b = at.selectors = {
- cacheLength: 50,
- createPseudo: ct,
- match: Q,
- attrHandle: {},
- find: {},
- relative: {
- ">": {
- dir: "parentNode",
- first: !0
- },
- " ": {
- dir: "parentNode"
- },
- "+": {
- dir: "previousSibling",
- first: !0
- },
- "~": {
- dir: "previousSibling"
- }
- },
- preFilter: {
- ATTR: function (t) {
- 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)
- },
- CHILD: function (t) {
- 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
- },
- PSEUDO: function (t) {
- var e, i = !t[6] && t[2];
- 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))
- }
- },
- filter: {
- TAG: function (t) {
- var e = t.replace(nt, h).toLowerCase();
- return "*" === t ? function () {
- return !0
- } : function (t) {
- return t.nodeName && t.nodeName.toLowerCase() === e
- }
- },
- CLASS: function (t) {
- var e = D[t + " "];
- return e || (e = new RegExp("(^|" + W + ")" + t + "(" + W + "|$)")) && D(t, function (t) {
- return e.test("string" == typeof t.className && t.className || void 0 !== t.getAttribute && t.getAttribute("class") || "")
- })
- },
- ATTR: function (i, n, s) {
- return function (t) {
- var e = at.attr(t, i);
- 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 + "-"))
- }
- },
- CHILD: function (f, t, e, g, m) {
- var v = "nth" !== f.slice(0, 3),
- _ = "last" !== f.slice(-4),
- y = "of-type" === t;
- return 1 === g && 0 === m ? function (t) {
- return !!t.parentNode
- } : function (t, e, i) {
- var n, s, o, r, a, l, c = v != _ ? "nextSibling" : "previousSibling",
- u = t.parentNode,
- h = y && t.nodeName.toLowerCase(),
- d = !i && !y,
- p = !1;
- if (u) {
- if (v) {
- for (; c;) {
- for (r = t; r = r[c];)
- if (y ? r.nodeName.toLowerCase() === h : 1 === r.nodeType) return !1;
- l = c = "only" === f && !l && "nextSibling"
- }
- return !0
- }
- if (l = [_ ? u.firstChild : u.lastChild], _ && d) {
- 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();)
- if (1 === r.nodeType && ++p && r === t) {
- s[f] = [S, a, p];
- break
- }
- } 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)
- for (;
- (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)););
- return (p -= m) === g || p % g == 0 && 0 <= p / g
- }
- }
- },
- PSEUDO: function (t, o) {
- var e, r = b.pseudos[t] || b.setFilters[t.toLowerCase()] || at.error("unsupported pseudo: " + t);
- return r[T] ? r(o) : 1 < r.length ? (e = [t, t, "", o], b.setFilters.hasOwnProperty(t.toLowerCase()) ? ct(function (t, e) {
- for (var i, n = r(t, o), s = n.length; s--;) t[i = j(t, n[s])] = !(e[i] = n[s])
- }) : function (t) {
- return r(t, 0, e)
- }) : r
- }
- },
- pseudos: {
- not: ct(function (t) {
- var n = [],
- s = [],
- a = d(t.replace(B, "$1"));
- return a[T] ? ct(function (t, e, i, n) {
- for (var s, o = a(t, null, n, []), r = t.length; r--;)(s = o[r]) && (t[r] = !(e[r] = s))
- }) : function (t, e, i) {
- return n[0] = t, a(n, null, i, s), n[0] = null, !s.pop()
- }
- }),
- has: ct(function (e) {
- return function (t) {
- return 0 < at(e, t).length
- }
- }),
- contains: ct(function (e) {
- return e = e.replace(nt, h),
- function (t) {
- return -1 < (t.textContent || o(t)).indexOf(e)
- }
- }),
- lang: ct(function (i) {
- return X.test(i || "") || at.error("unsupported lang: " + i), i = i.replace(nt, h).toLowerCase(),
- function (t) {
- var e;
- do {
- if (e = C ? t.lang : t.getAttribute("xml:lang") || t.getAttribute("lang")) return (e = e.toLowerCase()) === i || 0 === e.indexOf(i + "-")
- } while ((t = t.parentNode) && 1 === t.nodeType);
- return !1
- }
- }),
- target: function (t) {
- var e = i.location && i.location.hash;
- return e && e.slice(1) === t.id
- },
- root: function (t) {
- return t === a
- },
- focus: function (t) {
- return t === x.activeElement && (!x.hasFocus || x.hasFocus()) && !!(t.type || t.href || ~t.tabIndex)
- },
- enabled: gt(!1),
- disabled: gt(!0),
- checked: function (t) {
- var e = t.nodeName.toLowerCase();
- return "input" === e && !!t.checked || "option" === e && !!t.selected
- },
- selected: function (t) {
- return t.parentNode && t.parentNode.selectedIndex, !0 === t.selected
- },
- empty: function (t) {
- for (t = t.firstChild; t; t = t.nextSibling)
- if (t.nodeType < 6) return !1;
- return !0
- },
- parent: function (t) {
- return !b.pseudos.empty(t)
- },
- header: function (t) {
- return Z.test(t.nodeName)
- },
- input: function (t) {
- return J.test(t.nodeName)
- },
- button: function (t) {
- var e = t.nodeName.toLowerCase();
- return "input" === e && "button" === t.type || "button" === e
- },
- text: function (t) {
- var e;
- return "input" === t.nodeName.toLowerCase() && "text" === t.type && (null == (e = t.getAttribute("type")) || "text" === e.toLowerCase())
- },
- first: mt(function () {
- return [0]
- }),
- last: mt(function (t, e) {
- return [e - 1]
- }),
- eq: mt(function (t, e, i) {
- return [i < 0 ? i + e : i]
- }),
- even: mt(function (t, e) {
- for (var i = 0; i < e; i += 2) t.push(i);
- return t
- }),
- odd: mt(function (t, e) {
- for (var i = 1; i < e; i += 2) t.push(i);
- return t
- }),
- lt: mt(function (t, e, i) {
- for (var n = i < 0 ? i + e : e < i ? e : i; 0 <= --n;) t.push(n);
- return t
- }),
- gt: mt(function (t, e, i) {
- for (var n = i < 0 ? i + e : i; ++n < e;) t.push(n);
- return t
- })
- }
- }).pseudos.nth = b.pseudos.eq, {
- radio: !0,
- checkbox: !0,
- file: !0,
- password: !0,
- image: !0
- }) b.pseudos[t] = pt(t);
- for (t in {
- submit: !0,
- reset: !0
- }) b.pseudos[t] = ft(t);
-
- function _t() {}
-
- function yt(t) {
- for (var e = 0, i = t.length, n = ""; e < i; e++) n += t[e].value;
- return n
- }
-
- function bt(a, t, e) {
- var l = t.dir,
- c = t.next,
- u = c || l,
- h = e && "parentNode" === u,
- d = n++;
- return t.first ? function (t, e, i) {
- for (; t = t[l];)
- if (1 === t.nodeType || h) return a(t, e, i);
- return !1
- } : function (t, e, i) {
- var n, s, o, r = [S, d];
- if (i) {
- for (; t = t[l];)
- if ((1 === t.nodeType || h) && a(t, e, i)) return !0
- } else
- for (; t = t[l];)
- if (1 === t.nodeType || h)
- if (s = (o = t[T] || (t[T] = {}))[t.uniqueID] || (o[t.uniqueID] = {}), c && c === t.nodeName.toLowerCase()) t = t[l] || t;
- else {
- if ((n = s[u]) && n[0] === S && n[1] === d) return r[2] = n[2];
- if ((s[u] = r)[2] = a(t, e, i)) return !0
- } return !1
- }
- }
-
- function wt(s) {
- return 1 < s.length ? function (t, e, i) {
- for (var n = s.length; n--;)
- if (!s[n](t, e, i)) return !1;
- return !0
- } : s[0]
- }
-
- function kt(t, e, i, n, s) {
- 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)));
- return r
- }
-
- function xt(p, f, g, m, v, t) {
- return m && !m[T] && (m = xt(m)), v && !v[T] && (v = xt(v, t)), ct(function (t, e, i, n) {
- var s, o, r, a = [],
- l = [],
- c = e.length,
- u = t || function (t, e, i) {
- for (var n = 0, s = e.length; n < s; n++) at(t, e[n], i);
- return i
- }(f || "*", i.nodeType ? [i] : i, []),
- h = !p || !t && f ? u : kt(u, a, p, i, n),
- d = g ? v || (t ? p : c || m) ? [] : e : h;
- if (g && g(h, d, i, n), m)
- for (s = kt(d, l), m(s, [], i, n), o = s.length; o--;)(r = s[o]) && (d[l[o]] = !(h[l[o]] = r));
- if (t) {
- if (v || p) {
- if (v) {
- for (s = [], o = d.length; o--;)(r = d[o]) && s.push(h[o] = r);
- v(null, d = [], s, n)
- }
- for (o = d.length; o--;)(r = d[o]) && -1 < (s = v ? j(t, r) : a[o]) && (t[s] = !(e[s] = r))
- }
- } else d = kt(d === e ? d.splice(c, d.length) : d), v ? v(null, e, d, n) : L.apply(e, d)
- })
- }
-
- function Ct(t) {
- 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) {
- return t === s
- }, r, !0), c = bt(function (t) {
- return -1 < j(s, t)
- }, r, !0), u = [function (t, e, i) {
- var n = !o && (i || e !== w) || ((s = e).nodeType ? l(t, e, i) : c(t, e, i));
- return s = null, n
- }]; a < n; a++)
- if (e = b.relative[t[a].type]) u = [bt(wt(u), e)];
- else {
- if ((e = b.filter[t[a].type].apply(null, t[a].matches))[T]) {
- for (i = ++a; i < n && !b.relative[t[i].type]; i++);
- return xt(1 < a && wt(u), 1 < a && yt(t.slice(0, a - 1).concat({
- value: " " === t[a - 2].type ? "*" : ""
- })).replace(B, "$1"), e, a < i && Ct(t.slice(a, i)), i < n && Ct(t = t.slice(i)), i < n && yt(t))
- }
- u.push(e)
- } return wt(u)
- }
- return _t.prototype = b.filters = b.pseudos, b.setFilters = new _t, f = at.tokenize = function (t, e) {
- var i, n, s, o, r, a, l, c = A[t + " "];
- if (c) return e ? 0 : c.slice(0);
- for (r = t, a = [], l = b.preFilter; r;) {
- 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({
- value: i,
- type: n[0].replace(B, " ")
- }), r = r.slice(i.length)), b.filter) !(n = Q[o].exec(r)) || l[o] && !(n = l[o](n)) || (i = n.shift(), s.push({
- value: i,
- type: o,
- matches: n
- }), r = r.slice(i.length));
- if (!i) break
- }
- return e ? r.length : r ? at.error(t) : A(t, a).slice(0)
- }, d = at.compile = function (t, e) {
- var i, m, v, _, y, n, s = [],
- o = [],
- r = E[t + " "];
- if (!r) {
- for (e || (e = f(t)), i = e.length; i--;)(r = Ct(e[i]))[T] ? s.push(r) : o.push(r);
- (r = E(t, (m = o, _ = 0 < (v = s).length, y = 0 < m.length, n = function (t, e, i, n, s) {
- var o, r, a, l = 0,
- c = "0",
- u = t && [],
- h = [],
- d = w,
- p = t || y && b.find.TAG("*", s),
- f = S += null == d ? 1 : Math.random() || .1,
- g = p.length;
- for (s && (w = e == x || e || s); c !== g && null != (o = p[c]); c++) {
- if (y && o) {
- for (r = 0, e || o.ownerDocument == x || (k(o), i = !C); a = m[r++];)
- if (a(o, e || x, i)) {
- n.push(o);
- break
- } s && (S = f)
- }
- _ && ((o = !a && o) && l--, t && u.push(o))
- }
- if (l += c, _ && c !== l) {
- for (r = 0; a = v[r++];) a(u, h, e, i);
- if (t) {
- if (0 < l)
- for (; c--;) u[c] || h[c] || (h[c] = M.call(n));
- h = kt(h)
- }
- L.apply(n, h), s && !t && 0 < h.length && 1 < l + v.length && at.uniqueSort(n)
- }
- return s && (S = f, w = d), u
- }, _ ? ct(n) : n))).selector = t
- }
- return r
- }, g = at.select = function (t, e, i, n) {
- var s, o, r, a, l, c = "function" == typeof t && t,
- u = !n && f(t = c.selector || t);
- if (i = i || [], 1 === u.length) {
- if (2 < (o = u[0] = u[0].slice(0)).length && "ID" === (r = o[0]).type && 9 === e.nodeType && C && b.relative[o[1].type]) {
- if (!(e = (b.find.ID(r.matches[0].replace(nt, h), e) || [])[0])) return i;
- c && (e = e.parentNode), t = t.slice(o.shift().value.length)
- }
- for (s = Q.needsContext.test(t) ? 0 : o.length; s-- && (r = o[s], !b.relative[a = r.type]);)
- if ((l = b.find[a]) && (n = l(r.matches[0].replace(nt, h), it.test(o[0].type) && vt(e.parentNode) || e))) {
- if (o.splice(s, 1), !(t = n.length && yt(o))) return L.apply(i, n), i;
- break
- }
- }
- return (c || d(t, u))(n, e, !C, i, !e || it.test(t) && vt(e.parentNode) || e), i
- }, p.sortStable = T.split("").sort(I).join("") === T, p.detectDuplicates = !!c, k(), p.sortDetached = ut(function (t) {
- return 1 & t.compareDocumentPosition(x.createElement("fieldset"))
- }), ut(function (t) {
- return t.innerHTML = "<a href='#'></a>", "#" === t.firstChild.getAttribute("href")
- }) || ht("type|href|height|width", function (t, e, i) {
- if (!i) return t.getAttribute(e, "type" === e.toLowerCase() ? 1 : 2)
- }), p.attributes && ut(function (t) {
- return t.innerHTML = "<input/>", t.firstChild.setAttribute("value", ""), "" === t.firstChild.getAttribute("value")
- }) || ht("value", function (t, e, i) {
- if (!i && "input" === t.nodeName.toLowerCase()) return t.defaultValue
- }), ut(function (t) {
- return null == t.getAttribute("disabled")
- }) || ht(z, function (t, e, i) {
- var n;
- if (!i) return !0 === t[e] ? e.toLowerCase() : (n = t.getAttributeNode(e)) && n.specified ? n.value : null
- }), at
- }(x);
- 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;
-
- function p(t, e, i) {
- for (var n = [], s = void 0 !== i;
- (t = t[e]) && 9 !== t.nodeType;)
- if (1 === t.nodeType) {
- if (s && T(t).is(i)) break;
- n.push(t)
- } return n
- }
-
- function f(t, e) {
- for (var i = []; t; t = t.nextSibling) 1 === t.nodeType && t !== e && i.push(t);
- return i
- }
- var k = T.expr.match.needsContext;
-
- function S(t, e) {
- return t.nodeName && t.nodeName.toLowerCase() === e.toLowerCase()
- }
- var D = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;
-
- function A(t, i, n) {
- return y(i) ? T.grep(t, function (t, e) {
- return !!i.call(t, e, t) !== n
- }) : i.nodeType ? T.grep(t, function (t) {
- return t === i !== n
- }) : "string" != typeof i ? T.grep(t, function (t) {
- return -1 < s.call(i, t) !== n
- }) : T.filter(i, t, n)
- }
- T.filter = function (t, e, i) {
- var n = e[0];
- 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) {
- return 1 === t.nodeType
- }))
- }, T.fn.extend({
- find: function (t) {
- var e, i, n = this.length,
- s = this;
- if ("string" != typeof t) return this.pushStack(T(t).filter(function () {
- for (e = 0; e < n; e++)
- if (T.contains(s[e], this)) return !0
- }));
- for (i = this.pushStack([]), e = 0; e < n; e++) T.find(t, s[e], i);
- return 1 < n ? T.uniqueSort(i) : i
- },
- filter: function (t) {
- return this.pushStack(A(this, t || [], !1))
- },
- not: function (t) {
- return this.pushStack(A(this, t || [], !0))
- },
- is: function (t) {
- return !!A(this, "string" == typeof t && k.test(t) ? T(t) : t || [], !1).length
- }
- });
- var E, P = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;
- (T.fn.init = function (t, e, i) {
- var n, s;
- if (!t) return this;
- 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);
- 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);
- if (n[1]) {
- 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))
- for (n in e) y(this[n]) ? this[n](e[n]) : this.attr(n, e[n]);
- return this
- }
- return (s = C.getElementById(n[2])) && (this[0] = s, this.length = 1), this
- }).prototype = T.fn, E = T(C);
- var I = /^(?:parents|prev(?:Until|All))/,
- O = {
- children: !0,
- contents: !0,
- next: !0,
- prev: !0
- };
-
- function M(t, e) {
- for (;
- (t = t[e]) && 1 !== t.nodeType;);
- return t
- }
- T.fn.extend({
- has: function (t) {
- var e = T(t, this),
- i = e.length;
- return this.filter(function () {
- for (var t = 0; t < i; t++)
- if (T.contains(this, e[t])) return !0
- })
- },
- closest: function (t, e) {
- var i, n = 0,
- s = this.length,
- o = [],
- r = "string" != typeof t && T(t);
- if (!k.test(t))
- for (; n < s; n++)
- for (i = this[n]; i && i !== e; i = i.parentNode)
- if (i.nodeType < 11 && (r ? -1 < r.index(i) : 1 === i.nodeType && T.find.matchesSelector(i, t))) {
- o.push(i);
- break
- } return this.pushStack(1 < o.length ? T.uniqueSort(o) : o)
- },
- index: function (t) {
- 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
- },
- add: function (t, e) {
- return this.pushStack(T.uniqueSort(T.merge(this.get(), T(t, e))))
- },
- addBack: function (t) {
- return this.add(null == t ? this.prevObject : this.prevObject.filter(t))
- }
- }), T.each({
- parent: function (t) {
- var e = t.parentNode;
- return e && 11 !== e.nodeType ? e : null
- },
- parents: function (t) {
- return p(t, "parentNode")
- },
- parentsUntil: function (t, e, i) {
- return p(t, "parentNode", i)
- },
- next: function (t) {
- return M(t, "nextSibling")
- },
- prev: function (t) {
- return M(t, "previousSibling")
- },
- nextAll: function (t) {
- return p(t, "nextSibling")
- },
- prevAll: function (t) {
- return p(t, "previousSibling")
- },
- nextUntil: function (t, e, i) {
- return p(t, "nextSibling", i)
- },
- prevUntil: function (t, e, i) {
- return p(t, "previousSibling", i)
- },
- siblings: function (t) {
- return f((t.parentNode || {}).firstChild, t)
- },
- children: function (t) {
- return f(t.firstChild)
- },
- contents: function (t) {
- return null != t.contentDocument && n(t.contentDocument) ? t.contentDocument : (S(t, "template") && (t = t.content || t), T.merge([], t.childNodes))
- }
- }, function (n, s) {
- T.fn[n] = function (t, e) {
- var i = T.map(this, s, t);
- 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)
- }
- });
- var N = /[^\x20\t\r\n\f]+/g;
-
- function L(t) {
- return t
- }
-
- function H(t) {
- throw t
- }
-
- function j(t, e, i, n) {
- var s;
- try {
- 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))
- } catch (t) {
- i.apply(void 0, [t])
- }
- }
- T.Callbacks = function (n) {
- var t, i;
- n = "string" == typeof n ? (t = n, i = {}, T.each(t.match(N) || [], function (t, e) {
- i[e] = !0
- }), i) : T.extend({}, n);
-
- function s() {
- for (a = a || n.once, r = o = !0; c.length; u = -1)
- for (e = c.shift(); ++u < l.length;) !1 === l[u].apply(e[0], e[1]) && n.stopOnFalse && (u = l.length, e = !1);
- n.memory || (e = !1), o = !1, a && (l = e ? [] : "")
- }
- var o, e, r, a, l = [],
- c = [],
- u = -1,
- h = {
- add: function () {
- return l && (e && !o && (u = l.length - 1, c.push(e)), function i(t) {
- T.each(t, function (t, e) {
- y(e) ? n.unique && h.has(e) || l.push(e) : e && e.length && "string" !== w(e) && i(e)
- })
- }(arguments), e && !o && s()), this
- },
- remove: function () {
- return T.each(arguments, function (t, e) {
- for (var i; - 1 < (i = T.inArray(e, l, i));) l.splice(i, 1), i <= u && u--
- }), this
- },
- has: function (t) {
- return t ? -1 < T.inArray(t, l) : 0 < l.length
- },
- empty: function () {
- return l && (l = []), this
- },
- disable: function () {
- return a = c = [], l = e = "", this
- },
- disabled: function () {
- return !l
- },
- lock: function () {
- return a = c = [], e || o || (l = e = ""), this
- },
- locked: function () {
- return !!a
- },
- fireWith: function (t, e) {
- return a || (e = [t, (e = e || []).slice ? e.slice() : e], c.push(e), o || s()), this
- },
- fire: function () {
- return h.fireWith(this, arguments), this
- },
- fired: function () {
- return !!r
- }
- };
- return h
- }, T.extend({
- Deferred: function (t) {
- var o = [
- ["notify", "progress", T.Callbacks("memory"), T.Callbacks("memory"), 2],
- ["resolve", "done", T.Callbacks("once memory"), T.Callbacks("once memory"), 0, "resolved"],
- ["reject", "fail", T.Callbacks("once memory"), T.Callbacks("once memory"), 1, "rejected"]
- ],
- s = "pending",
- r = {
- state: function () {
- return s
- },
- always: function () {
- return a.done(arguments).fail(arguments), this
- },
- catch: function (t) {
- return r.then(null, t)
- },
- pipe: function () {
- var s = arguments;
- return T.Deferred(function (n) {
- T.each(o, function (t, e) {
- var i = y(s[e[4]]) && s[e[4]];
- a[e[1]](function () {
- var t = i && i.apply(this, arguments);
- t && y(t.promise) ? t.promise().progress(n.notify).done(n.resolve).fail(n.reject) : n[e[0] + "With"](this, i ? [t] : arguments)
- })
- }), s = null
- }).promise()
- },
- then: function (e, i, n) {
- var l = 0;
-
- function c(s, o, r, a) {
- return function () {
- function t() {
- var t, e;
- if (!(s < l)) {
- if ((t = r.apply(i, n)) === o.promise()) throw new TypeError("Thenable self-resolution");
- 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))
- }
- }
- var i = this,
- n = arguments,
- e = a ? t : function () {
- try {
- t()
- } catch (t) {
- T.Deferred.exceptionHook && T.Deferred.exceptionHook(t, e.stackTrace), l <= s + 1 && (r !== H && (i = void 0, n = [t]), o.rejectWith(i, n))
- }
- };
- s ? e() : (T.Deferred.getStackHook && (e.stackTrace = T.Deferred.getStackHook()), x.setTimeout(e))
- }
- }
- return T.Deferred(function (t) {
- 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))
- }).promise()
- },
- promise: function (t) {
- return null != t ? T.extend(t, r) : r
- }
- },
- a = {};
- return T.each(o, function (t, e) {
- var i = e[2],
- n = e[5];
- r[e[1]] = i.add, n && i.add(function () {
- s = n
- }, 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 () {
- return a[e[0] + "With"](this === a ? void 0 : this, arguments), this
- }, a[e[0] + "With"] = i.fireWith
- }), r.promise(a), t && t.call(a, a), a
- },
- when: function (t) {
- function e(e) {
- return function (t) {
- s[e] = this, o[e] = 1 < arguments.length ? a.call(arguments) : t, --i || r.resolveWith(s, o)
- }
- }
- var i = arguments.length,
- n = i,
- s = Array(n),
- o = a.call(arguments),
- r = T.Deferred();
- 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();
- for (; n--;) j(o[n], e(n), r.reject);
- return r.promise()
- }
- });
- var z = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
- T.Deferred.exceptionHook = function (t, e) {
- x.console && x.console.warn && t && z.test(t.name) && x.console.warn("jQuery.Deferred exception: " + t.message, t.stack, e)
- }, T.readyException = function (t) {
- x.setTimeout(function () {
- throw t
- })
- };
- var W = T.Deferred();
-
- function $() {
- C.removeEventListener("DOMContentLoaded", $), x.removeEventListener("load", $), T.ready()
- }
- T.fn.ready = function (t) {
- return W.then(t).catch(function (t) {
- T.readyException(t)
- }), this
- }, T.extend({
- isReady: !1,
- readyWait: 1,
- ready: function (t) {
- (!0 === t ? --T.readyWait : T.isReady) || (T.isReady = !0) !== t && 0 < --T.readyWait || W.resolveWith(C, [T])
- }
- }), T.ready.then = W.then, "complete" === C.readyState || "loading" !== C.readyState && !C.documentElement.doScroll ? x.setTimeout(T.ready) : (C.addEventListener("DOMContentLoaded", $), x.addEventListener("load", $));
-
- function R(t, e, i, n, s, o, r) {
- var a = 0,
- l = t.length,
- c = null == i;
- if ("object" === w(i))
- for (a in s = !0, i) R(t, e, a, i[a], !0, o, r);
- 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) {
- return c.call(T(t), i)
- })), e))
- for (; a < l; a++) e(t[a], i, r ? n : n.call(t[a], a, e(t[a], i)));
- return s ? t : c ? e.call(t) : l ? e(t[0], i) : o
- }
- var F = /^-ms-/,
- q = /-([a-z])/g;
-
- function B(t, e) {
- return e.toUpperCase()
- }
-
- function U(t) {
- return t.replace(F, "ms-").replace(q, B)
- }
-
- function Y(t) {
- return 1 === t.nodeType || 9 === t.nodeType || !+t.nodeType
- }
-
- function V() {
- this.expando = T.expando + V.uid++
- }
- V.uid = 1, V.prototype = {
- cache: function (t) {
- var e = t[this.expando];
- return e || (e = {}, Y(t) && (t.nodeType ? t[this.expando] = e : Object.defineProperty(t, this.expando, {
- value: e,
- configurable: !0
- }))), e
- },
- set: function (t, e, i) {
- var n, s = this.cache(t);
- if ("string" == typeof e) s[U(e)] = i;
- else
- for (n in e) s[U(n)] = e[n];
- return s
- },
- get: function (t, e) {
- return void 0 === e ? this.cache(t) : t[this.expando] && t[this.expando][U(e)]
- },
- access: function (t, e, i) {
- 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)
- },
- remove: function (t, e) {
- var i, n = t[this.expando];
- if (void 0 !== n) {
- if (void 0 !== e) {
- i = (e = Array.isArray(e) ? e.map(U) : (e = U(e)) in n ? [e] : e.match(N) || []).length;
- for (; i--;) delete n[e[i]]
- }(void 0 === e || T.isEmptyObject(n)) && (t.nodeType ? t[this.expando] = void 0 : delete t[this.expando])
- }
- },
- hasData: function (t) {
- var e = t[this.expando];
- return void 0 !== e && !T.isEmptyObject(e)
- }
- };
- var K = new V,
- X = new V,
- Q = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
- G = /[A-Z]/g;
-
- function J(t, e, i) {
- var n, s;
- if (void 0 === i && 1 === t.nodeType)
- if (n = "data-" + e.replace(G, "-$&").toLowerCase(), "string" == typeof (i = t.getAttribute(n))) {
- try {
- i = "true" === (s = i) || "false" !== s && ("null" === s ? null : s === +s + "" ? +s : Q.test(s) ? JSON.parse(s) : s)
- } catch (t) {}
- X.set(t, e, i)
- } else i = void 0;
- return i
- }
- T.extend({
- hasData: function (t) {
- return X.hasData(t) || K.hasData(t)
- },
- data: function (t, e, i) {
- return X.access(t, e, i)
- },
- removeData: function (t, e) {
- X.remove(t, e)
- },
- _data: function (t, e, i) {
- return K.access(t, e, i)
- },
- _removeData: function (t, e) {
- K.remove(t, e)
- }
- }), T.fn.extend({
- data: function (i, t) {
- var e, n, s, o = this[0],
- r = o && o.attributes;
- if (void 0 !== i) return "object" == _typeof(i) ? this.each(function () {
- X.set(this, i)
- }) : R(this, function (t) {
- var e;
- if (o && void 0 === t) return void 0 !== (e = X.get(o, i)) ? e : void 0 !== (e = J(o, i)) ? e : void 0;
- this.each(function () {
- X.set(this, i, t)
- })
- }, null, t, 1 < arguments.length, null, !0);
- if (this.length && (s = X.get(o), 1 === o.nodeType && !K.get(o, "hasDataAttrs"))) {
- for (e = r.length; e--;) r[e] && 0 === (n = r[e].name).indexOf("data-") && (n = U(n.slice(5)), J(o, n, s[n]));
- K.set(o, "hasDataAttrs", !0)
- }
- return s
- },
- removeData: function (t) {
- return this.each(function () {
- X.remove(this, t)
- })
- }
- }), T.extend({
- queue: function (t, e, i) {
- var n;
- 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 || []
- },
- dequeue: function (t, e) {
- e = e || "fx";
- var i = T.queue(t, e),
- n = i.length,
- s = i.shift(),
- o = T._queueHooks(t, e);
- "inprogress" === s && (s = i.shift(), n--), s && ("fx" === e && i.unshift("inprogress"), delete o.stop, s.call(t, function () {
- T.dequeue(t, e)
- }, o)), !n && o && o.empty.fire()
- },
- _queueHooks: function (t, e) {
- var i = e + "queueHooks";
- return K.get(t, i) || K.access(t, i, {
- empty: T.Callbacks("once memory").add(function () {
- K.remove(t, [e + "queue", i])
- })
- })
- }
- }), T.fn.extend({
- queue: function (e, i) {
- var t = 2;
- return "string" != typeof e && (i = e, e = "fx", t--), arguments.length < t ? T.queue(this[0], e) : void 0 === i ? this : this.each(function () {
- var t = T.queue(this, e, i);
- T._queueHooks(this, e), "fx" === e && "inprogress" !== t[0] && T.dequeue(this, e)
- })
- },
- dequeue: function (t) {
- return this.each(function () {
- T.dequeue(this, t)
- })
- },
- clearQueue: function (t) {
- return this.queue(t || "fx", [])
- },
- promise: function (t, e) {
- function i() {
- --s || o.resolveWith(r, [r])
- }
- var n, s = 1,
- o = T.Deferred(),
- r = this,
- a = this.length;
- 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));
- return i(), o.promise(e)
- }
- });
- var Z = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,
- tt = new RegExp("^(?:([+-])=|)(" + Z + ")([a-z%]*)$", "i"),
- et = ["Top", "Right", "Bottom", "Left"],
- it = C.documentElement,
- nt = function (t) {
- return T.contains(t.ownerDocument, t)
- },
- st = {
- composed: !0
- };
- it.getRootNode && (nt = function (t) {
- return T.contains(t.ownerDocument, t) || t.getRootNode(st) === t.ownerDocument
- });
-
- function ot(t, e) {
- return "none" === (t = e || t).style.display || "" === t.style.display && nt(t) && "none" === T.css(t, "display")
- }
-
- function rt(t, e, i, n) {
- var s, o, r = 20,
- a = n ? function () {
- return n.cur()
- } : function () {
- return T.css(t, e, "")
- },
- l = a(),
- c = i && i[3] || (T.cssNumber[e] ? "" : "px"),
- u = t.nodeType && (T.cssNumber[e] || "px" !== c && +l) && tt.exec(T.css(t, e));
- if (u && u[3] !== c) {
- 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;
- u *= 2, T.style(t, e, u + c), i = i || []
- }
- 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
- }
- var at = {};
-
- function lt(t, e) {
- 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)));
- for (u = 0; u < h; u++) null != c[u] && (t[u].style.display = c[u]);
- return t
- }
- T.fn.extend({
- show: function () {
- return lt(this, !0)
- },
- hide: function () {
- return lt(this)
- },
- toggle: function (t) {
- return "boolean" == typeof t ? t ? this.show() : this.hide() : this.each(function () {
- ot(this) ? T(this).show() : T(this).hide()
- })
- }
- });
- var ct, ut, ht = /^(?:checkbox|radio)$/i,
- dt = /<([a-z][^\/\0>\x20\t\r\n\f]*)/i,
- pt = /^$|^module$|\/(?:java|ecma)script/i;
- 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;
- var ft = {
- thead: [1, "<table>", "</table>"],
- col: [2, "<table><colgroup>", "</colgroup></table>"],
- tr: [2, "<table><tbody>", "</tbody></table>"],
- td: [3, "<table><tbody><tr>", "</tr></tbody></table>"],
- _default: [0, "", ""]
- };
-
- function gt(t, e) {
- var i;
- 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
- }
-
- function mt(t, e) {
- for (var i = 0, n = t.length; i < n; i++) K.set(t[i], "globalEval", !e || K.get(e[i], "globalEval"))
- }
- ft.tbody = ft.tfoot = ft.colgroup = ft.caption = ft.thead, ft.th = ft.td, _.option || (ft.optgroup = ft.option = [1, "<select multiple='multiple'>", "</select>"]);
- var vt = /<|&#?\w+;/;
-
- function _t(t, e, i, n, s) {
- for (var o, r, a, l, c, u, h = e.createDocumentFragment(), d = [], p = 0, f = t.length; p < f; p++)
- if ((o = t[p]) || 0 === o)
- if ("object" === w(o)) T.merge(d, o.nodeType ? [o] : o);
- else if (vt.test(o)) {
- 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;
- T.merge(d, r.childNodes), (r = h.firstChild).textContent = ""
- } else d.push(e.createTextNode(o));
- for (h.textContent = "", p = 0; o = d[p++];)
- if (n && -1 < T.inArray(o, n)) s && s.push(o);
- else if (c = nt(o), r = gt(h.appendChild(o), "script"), c && mt(r), i)
- for (u = 0; o = r[u++];) pt.test(o.type || "") && i.push(o);
- return h
- }
- var yt = /^([^.]*)(?:\.(.+)|)/;
-
- function bt() {
- return !0
- }
-
- function wt() {
- return !1
- }
-
- function kt(t, e) {
- return t === function () {
- try {
- return C.activeElement
- } catch (t) {}
- }() == ("focus" === e)
- }
-
- function xt(t, e, i, n, s, o) {
- var r, a;
- if ("object" == _typeof(e)) {
- for (a in "string" != typeof i && (n = n || i, i = void 0), e) xt(t, a, i, n, e[a], o);
- return t
- }
- 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;
- else if (!s) return t;
- return 1 === o && (r = s, (s = function (t) {
- return T().off(t), r.apply(this, arguments)
- }).guid = r.guid || (r.guid = T.guid++)), t.each(function () {
- T.event.add(this, e, s, n, i)
- })
- }
-
- function Ct(t, s, o) {
- o ? (K.set(t, s, !1), T.event.add(t, s, {
- namespace: !1,
- handler: function (t) {
- var e, i, n = K.get(this, s);
- if (1 & t.isTrigger && this[s]) {
- if (n.length)(T.event.special[s] || {}).delegateType && t.stopPropagation();
- 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
- } else n.length && (K.set(this, s, {
- value: T.event.trigger(T.extend(n[0], T.Event.prototype), n.slice(1), this)
- }), t.stopImmediatePropagation())
- }
- })) : void 0 === K.get(t, s) && T.event.add(t, s, bt)
- }
- T.event = {
- global: {},
- add: function (e, t, i, n, s) {
- var o, r, a, l, c, u, h, d, p, f, g, m = K.get(e);
- if (Y(e))
- 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) {
- return void 0 !== T && T.event.triggered !== t.type ? T.event.dispatch.apply(e, arguments) : void 0
- }), 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({
- type: p,
- origType: g,
- data: n,
- handler: i,
- guid: i.guid,
- selector: s,
- needsContext: s && T.expr.match.needsContext.test(s),
- namespace: f.join(".")
- }, 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)
- },
- remove: function (t, e, i, n, s) {
- var o, r, a, l, c, u, h, d, p, f, g, m = K.hasData(t) && K.get(t);
- if (m && (l = m.events)) {
- for (c = (e = (e || "").match(N) || [""]).length; c--;)
- if (p = g = (a = yt.exec(e[c]) || [])[1], f = (a[2] || "").split(".").sort(), p) {
- 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));
- r && !d.length && (h.teardown && !1 !== h.teardown.call(t, f, m.handle) || T.removeEvent(t, p, m.handle), delete l[p])
- } else
- for (p in l) T.event.remove(t, p + e[c], i, n, !0);
- T.isEmptyObject(l) && K.remove(t, "handle events")
- }
- },
- dispatch: function (t) {
- var e, i, n, s, o, r, a = new Array(arguments.length),
- l = T.event.fix(t),
- c = (K.get(this, "events") || Object.create(null))[l.type] || [],
- u = T.event.special[l.type] || {};
- for (a[0] = l, e = 1; e < arguments.length; e++) a[e] = arguments[e];
- if (l.delegateTarget = this, !u.preDispatch || !1 !== u.preDispatch.call(this, l)) {
- for (r = T.event.handlers.call(this, l, c), e = 0;
- (s = r[e++]) && !l.isPropagationStopped();)
- for (l.currentTarget = s.elem, i = 0;
- (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()));
- return u.postDispatch && u.postDispatch.call(this, l), l.result
- }
- },
- handlers: function (t, e) {
- var i, n, s, o, r, a = [],
- l = e.delegateCount,
- c = t.target;
- if (l && c.nodeType && !("click" === t.type && 1 <= t.button))
- for (; c !== this; c = c.parentNode || this)
- if (1 === c.nodeType && ("click" !== t.type || !0 !== c.disabled)) {
- 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);
- o.length && a.push({
- elem: c,
- handlers: o
- })
- } return c = this, l < e.length && a.push({
- elem: c,
- handlers: e.slice(l)
- }), a
- },
- addProp: function (e, t) {
- Object.defineProperty(T.Event.prototype, e, {
- enumerable: !0,
- configurable: !0,
- get: y(t) ? function () {
- if (this.originalEvent) return t(this.originalEvent)
- } : function () {
- if (this.originalEvent) return this.originalEvent[e]
- },
- set: function (t) {
- Object.defineProperty(this, e, {
- enumerable: !0,
- configurable: !0,
- writable: !0,
- value: t
- })
- }
- })
- },
- fix: function (t) {
- return t[T.expando] ? t : new T.Event(t)
- },
- special: {
- load: {
- noBubble: !0
- },
- click: {
- setup: function (t) {
- var e = this || t;
- return ht.test(e.type) && e.click && S(e, "input") && Ct(e, "click", bt), !1
- },
- trigger: function (t) {
- var e = this || t;
- return ht.test(e.type) && e.click && S(e, "input") && Ct(e, "click"), !0
- },
- _default: function (t) {
- var e = t.target;
- return ht.test(e.type) && e.click && S(e, "input") && K.get(e, "click") || S(e, "a")
- }
- },
- beforeunload: {
- postDispatch: function (t) {
- void 0 !== t.result && t.originalEvent && (t.originalEvent.returnValue = t.result)
- }
- }
- }
- }, T.removeEvent = function (t, e, i) {
- t.removeEventListener && t.removeEventListener(e, i)
- }, T.Event = function (t, e) {
- if (!(this instanceof T.Event)) return new T.Event(t, e);
- 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
- }, T.Event.prototype = {
- constructor: T.Event,
- isDefaultPrevented: wt,
- isPropagationStopped: wt,
- isImmediatePropagationStopped: wt,
- isSimulated: !1,
- preventDefault: function () {
- var t = this.originalEvent;
- this.isDefaultPrevented = bt, t && !this.isSimulated && t.preventDefault()
- },
- stopPropagation: function () {
- var t = this.originalEvent;
- this.isPropagationStopped = bt, t && !this.isSimulated && t.stopPropagation()
- },
- stopImmediatePropagation: function () {
- var t = this.originalEvent;
- this.isImmediatePropagationStopped = bt, t && !this.isSimulated && t.stopImmediatePropagation(), this.stopPropagation()
- }
- }, T.each({
- altKey: !0,
- bubbles: !0,
- cancelable: !0,
- changedTouches: !0,
- ctrlKey: !0,
- detail: !0,
- eventPhase: !0,
- metaKey: !0,
- pageX: !0,
- pageY: !0,
- shiftKey: !0,
- view: !0,
- char: !0,
- code: !0,
- charCode: !0,
- key: !0,
- keyCode: !0,
- button: !0,
- buttons: !0,
- clientX: !0,
- clientY: !0,
- offsetX: !0,
- offsetY: !0,
- pointerId: !0,
- pointerType: !0,
- screenX: !0,
- screenY: !0,
- targetTouches: !0,
- toElement: !0,
- touches: !0,
- which: !0
- }, T.event.addProp), T.each({
- focus: "focusin",
- blur: "focusout"
- }, function (t, e) {
- T.event.special[t] = {
- setup: function () {
- return Ct(this, t, kt), !1
- },
- trigger: function () {
- return Ct(this, t), !0
- },
- _default: function () {
- return !0
- },
- delegateType: e
- }
- }), T.each({
- mouseenter: "mouseover",
- mouseleave: "mouseout",
- pointerenter: "pointerover",
- pointerleave: "pointerout"
- }, function (t, s) {
- T.event.special[t] = {
- delegateType: s,
- bindType: s,
- handle: function (t) {
- var e, i = t.relatedTarget,
- n = t.handleObj;
- return i && (i === this || T.contains(this, i)) || (t.type = n.origType, e = n.handler.apply(this, arguments), t.type = s), e
- }
- }
- }), T.fn.extend({
- on: function (t, e, i, n) {
- return xt(this, t, e, i, n)
- },
- one: function (t, e, i, n) {
- return xt(this, t, e, i, n, 1)
- },
- off: function (t, e, i) {
- var n, s;
- 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;
- if ("object" != _typeof(t)) return !1 !== e && "function" != typeof e || (i = e, e = void 0), !1 === i && (i = wt), this.each(function () {
- T.event.remove(this, t, i, e)
- });
- for (s in t) this.off(s, e, t[s]);
- return this
- }
- });
- var Tt = /<script|<style|<link/i,
- St = /checked\s*(?:[^=]|=\s*.checked.)/i,
- Dt = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
-
- function At(t, e) {
- return S(t, "table") && S(11 !== e.nodeType ? e : e.firstChild, "tr") && T(t).children("tbody")[0] || t
- }
-
- function Et(t) {
- return t.type = (null !== t.getAttribute("type")) + "/" + t.type, t
- }
-
- function Pt(t) {
- return "true/" === (t.type || "").slice(0, 5) ? t.type = t.type.slice(5) : t.removeAttribute("type"), t
- }
-
- function It(t, e) {
- var i, n, s, o, r, a;
- if (1 === e.nodeType) {
- if (K.hasData(t) && (a = K.get(t).events))
- for (s in K.remove(e, "handle events"), a)
- for (i = 0, n = a[s].length; i < n; i++) T.event.add(e, s, a[s][i]);
- X.hasData(t) && (o = X.access(t), r = T.extend({}, o), X.set(e, r))
- }
- }
-
- function Ot(i, n, s, o) {
- n = m(n);
- var t, e, r, a, l, c, u = 0,
- h = i.length,
- d = h - 1,
- p = n[0],
- f = y(p);
- if (f || 1 < h && "string" == typeof p && !_.checkClone && St.test(p)) return i.each(function (t) {
- var e = i.eq(t);
- f && (n[0] = p.call(this, t, e.html())), Ot(e, n, s, o)
- });
- if (h && (e = (t = _t(n, i[0].ownerDocument, !1, i, o)).firstChild, 1 === t.childNodes.length && (t = e), e || o)) {
- 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);
- if (a)
- 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, {
- nonce: l.nonce || l.getAttribute("nonce")
- }, c) : b(l.textContent.replace(Dt, ""), l, c))
- }
- return i
- }
-
- function Mt(t, e, i) {
- 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));
- return t
- }
- T.extend({
- htmlPrefilter: function (t) {
- return t
- },
- clone: function (t, e, i) {
- var n, s, o, r, a, l, c, u = t.cloneNode(!0),
- h = nt(t);
- if (!(_.noCloneChecked || 1 !== t.nodeType && 11 !== t.nodeType || T.isXMLDoc(t)))
- 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);
- if (e)
- if (i)
- for (o = o || gt(t), r = r || gt(u), n = 0, s = o.length; n < s; n++) It(o[n], r[n]);
- else It(t, u);
- return 0 < (r = gt(u, "script")).length && mt(r, !h && gt(t, "script")), u
- },
- cleanData: function (t) {
- for (var e, i, n, s = T.event.special, o = 0; void 0 !== (i = t[o]); o++)
- if (Y(i)) {
- if (e = i[K.expando]) {
- if (e.events)
- for (n in e.events) s[n] ? T.event.remove(i, n) : T.removeEvent(i, n, e.handle);
- i[K.expando] = void 0
- }
- i[X.expando] && (i[X.expando] = void 0)
- }
- }
- }), T.fn.extend({
- detach: function (t) {
- return Mt(this, t, !0)
- },
- remove: function (t) {
- return Mt(this, t)
- },
- text: function (t) {
- return R(this, function (t) {
- return void 0 === t ? T.text(this) : this.empty().each(function () {
- 1 !== this.nodeType && 11 !== this.nodeType && 9 !== this.nodeType || (this.textContent = t)
- })
- }, null, t, arguments.length)
- },
- append: function () {
- return Ot(this, arguments, function (t) {
- 1 !== this.nodeType && 11 !== this.nodeType && 9 !== this.nodeType || At(this, t).appendChild(t)
- })
- },
- prepend: function () {
- return Ot(this, arguments, function (t) {
- if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
- var e = At(this, t);
- e.insertBefore(t, e.firstChild)
- }
- })
- },
- before: function () {
- return Ot(this, arguments, function (t) {
- this.parentNode && this.parentNode.insertBefore(t, this)
- })
- },
- after: function () {
- return Ot(this, arguments, function (t) {
- this.parentNode && this.parentNode.insertBefore(t, this.nextSibling)
- })
- },
- empty: function () {
- for (var t, e = 0; null != (t = this[e]); e++) 1 === t.nodeType && (T.cleanData(gt(t, !1)), t.textContent = "");
- return this
- },
- clone: function (t, e) {
- return t = null != t && t, e = null == e ? t : e, this.map(function () {
- return T.clone(this, t, e)
- })
- },
- html: function (t) {
- return R(this, function (t) {
- var e = this[0] || {},
- i = 0,
- n = this.length;
- if (void 0 === t && 1 === e.nodeType) return e.innerHTML;
- if ("string" == typeof t && !Tt.test(t) && !ft[(dt.exec(t) || ["", ""])[1].toLowerCase()]) {
- t = T.htmlPrefilter(t);
- try {
- for (; i < n; i++) 1 === (e = this[i] || {}).nodeType && (T.cleanData(gt(e, !1)), e.innerHTML = t);
- e = 0
- } catch (t) {}
- }
- e && this.empty().append(t)
- }, null, t, arguments.length)
- },
- replaceWith: function () {
- var i = [];
- return Ot(this, arguments, function (t) {
- var e = this.parentNode;
- T.inArray(this, i) < 0 && (T.cleanData(gt(this)), e && e.replaceChild(t, this))
- }, i)
- }
- }), T.each({
- appendTo: "append",
- prependTo: "prepend",
- insertBefore: "before",
- insertAfter: "after",
- replaceAll: "replaceWith"
- }, function (t, r) {
- T.fn[t] = function (t) {
- 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());
- return this.pushStack(i)
- }
- });
-
- function Nt(t, e, i) {
- var n, s, o = {};
- for (s in e) o[s] = t.style[s], t.style[s] = e[s];
- for (s in n = i.call(t), e) t.style[s] = o[s];
- return n
- }
- var Lt = new RegExp("^(" + Z + ")(?!px)[a-z%]+$", "i"),
- Ht = function (t) {
- var e = t.ownerDocument.defaultView;
- return e && e.opener || (e = x), e.getComputedStyle(t)
- },
- jt = new RegExp(et.join("|"), "i");
-
- function zt(t, e, i) {
- var n, s, o, r, a = t.style;
- 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
- }
-
- function Wt(t, e) {
- return {
- get: function () {
- if (!t()) return (this.get = e).apply(this, arguments);
- delete this.get
- }
- }
- }! function () {
- function t() {
- if (c) {
- 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);
- var t = x.getComputedStyle(c);
- 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
- }
- }
-
- function e(t) {
- return Math.round(parseFloat(t))
- }
- var i, n, s, o, r, a, l = C.createElement("div"),
- c = C.createElement("div");
- c.style && (c.style.backgroundClip = "content-box", c.cloneNode(!0).style.backgroundClip = "", _.clearCloneStyle = "content-box" === c.style.backgroundClip, T.extend(_, {
- boxSizingReliable: function () {
- return t(), n
- },
- pixelBoxStyles: function () {
- return t(), o
- },
- pixelPosition: function () {
- return t(), i
- },
- reliableMarginLeft: function () {
- return t(), a
- },
- scrollboxSize: function () {
- return t(), s
- },
- reliableTrDimensions: function () {
- var t, e, i, n;
- 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
- }
- }))
- }();
- var $t = ["Webkit", "Moz", "ms"],
- Rt = C.createElement("div").style,
- Ft = {};
-
- function qt(t) {
- return T.cssProps[t] || Ft[t] || (t in Rt ? t : Ft[t] = function (t) {
- for (var e = t[0].toUpperCase() + t.slice(1), i = $t.length; i--;)
- if ((t = $t[i] + e) in Rt) return t
- }(t) || t)
- }
- var Bt = /^(none|table(?!-c[ea]).+)/,
- Ut = /^--/,
- Yt = {
- position: "absolute",
- visibility: "hidden",
- display: "block"
- },
- Vt = {
- letterSpacing: "0",
- fontWeight: "400"
- };
-
- function Kt(t, e, i) {
- var n = tt.exec(e);
- return n ? Math.max(0, n[2] - (i || 0)) + (n[3] || "px") : e
- }
-
- function Xt(t, e, i, n, s, o) {
- var r = "width" === e ? 1 : 0,
- a = 0,
- l = 0;
- if (i === (n ? "border" : "content")) return 0;
- 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));
- return !n && 0 <= o && (l += Math.max(0, Math.ceil(t["offset" + e[0].toUpperCase() + e.slice(1)] - o - l - a - .5)) || 0), l
- }
-
- function Qt(t, e, i) {
- var n = Ht(t),
- s = (!_.boxSizingReliable() || i) && "border-box" === T.css(t, "boxSizing", !1, n),
- o = s,
- r = zt(t, e, n),
- a = "offset" + e[0].toUpperCase() + e.slice(1);
- if (Lt.test(r)) {
- if (!i) return r;
- r = "auto"
- }
- 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"
- }
-
- function Gt(t, e, i, n, s) {
- return new Gt.prototype.init(t, e, i, n, s)
- }
- T.extend({
- cssHooks: {
- opacity: {
- get: function (t, e) {
- if (e) {
- var i = zt(t, "opacity");
- return "" === i ? "1" : i
- }
- }
- }
- },
- cssNumber: {
- animationIterationCount: !0,
- columnCount: !0,
- fillOpacity: !0,
- flexGrow: !0,
- flexShrink: !0,
- fontWeight: !0,
- gridArea: !0,
- gridColumn: !0,
- gridColumnEnd: !0,
- gridColumnStart: !0,
- gridRow: !0,
- gridRowEnd: !0,
- gridRowStart: !0,
- lineHeight: !0,
- opacity: !0,
- order: !0,
- orphans: !0,
- widows: !0,
- zIndex: !0,
- zoom: !0
- },
- cssProps: {},
- style: function (t, e, i, n) {
- if (t && 3 !== t.nodeType && 8 !== t.nodeType && t.style) {
- var s, o, r, a = U(e),
- l = Ut.test(e),
- c = t.style;
- 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];
- "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))
- }
- },
- css: function (t, e, i, n) {
- var s, o, r, a = U(e);
- 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
- }
- }), T.each(["height", "width"], function (t, l) {
- T.cssHooks[l] = {
- get: function (t, e, i) {
- if (e) return !Bt.test(T.css(t, "display")) || t.getClientRects().length && t.getBoundingClientRect().width ? Qt(t, l, i) : Nt(t, Yt, function () {
- return Qt(t, l, i)
- })
- },
- set: function (t, e, i) {
- var n, s = Ht(t),
- o = !_.scrollboxSize() && "absolute" === s.position,
- r = (o || i) && "border-box" === T.css(t, "boxSizing", !1, s),
- a = i ? Xt(t, l, i, r, s) : 0;
- 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)
- }
- }
- }), T.cssHooks.marginLeft = Wt(_.reliableMarginLeft, function (t, e) {
- if (e) return (parseFloat(zt(t, "marginLeft")) || t.getBoundingClientRect().left - Nt(t, {
- marginLeft: 0
- }, function () {
- return t.getBoundingClientRect().left
- })) + "px"
- }), T.each({
- margin: "",
- padding: "",
- border: "Width"
- }, function (s, o) {
- T.cssHooks[s + o] = {
- expand: function (t) {
- 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];
- return i
- }
- }, "margin" !== s && (T.cssHooks[s + o].set = Kt)
- }), T.fn.extend({
- css: function (t, e) {
- return R(this, function (t, e, i) {
- var n, s, o = {},
- r = 0;
- if (Array.isArray(e)) {
- for (n = Ht(t), s = e.length; r < s; r++) o[e[r]] = T.css(t, e[r], !1, n);
- return o
- }
- return void 0 !== i ? T.style(t, e, i) : T.css(t, e)
- }, t, e, 1 < arguments.length)
- }
- }), ((T.Tween = Gt).prototype = {
- constructor: Gt,
- init: function (t, e, i, n, s, o) {
- 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")
- },
- cur: function () {
- var t = Gt.propHooks[this.prop];
- return t && t.get ? t.get(this) : Gt.propHooks._default.get(this)
- },
- run: function (t) {
- var e, i = Gt.propHooks[this.prop];
- 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
- }
- }).init.prototype = Gt.prototype, (Gt.propHooks = {
- _default: {
- get: function (t) {
- var e;
- 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
- },
- set: function (t) {
- 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)
- }
- }
- }).scrollTop = Gt.propHooks.scrollLeft = {
- set: function (t) {
- t.elem.nodeType && t.elem.parentNode && (t.elem[t.prop] = t.now)
- }
- }, T.easing = {
- linear: function (t) {
- return t
- },
- swing: function (t) {
- return .5 - Math.cos(t * Math.PI) / 2
- },
- _default: "swing"
- }, T.fx = Gt.prototype.init, T.fx.step = {};
- var Jt, Zt, te, ee, ie = /^(?:toggle|show|hide)$/,
- ne = /queueHooks$/;
-
- function se() {
- Zt && (!1 === C.hidden && x.requestAnimationFrame ? x.requestAnimationFrame(se) : x.setTimeout(se, T.fx.interval), T.fx.tick())
- }
-
- function oe() {
- return x.setTimeout(function () {
- Jt = void 0
- }), Jt = Date.now()
- }
-
- function re(t, e) {
- var i, n = 0,
- s = {
- height: t
- };
- for (e = e ? 1 : 0; n < 4; n += 2 - e) s["margin" + (i = et[n])] = s["padding" + i] = t;
- return e && (s.opacity = s.width = t), s
- }
-
- function ae(t, e, i) {
- for (var n, s = (le.tweeners[e] || []).concat(le.tweeners["*"]), o = 0, r = s.length; o < r; o++)
- if (n = s[o].call(i, e, t)) return n
- }
-
- function le(o, t, e) {
- var i, r, n = 0,
- s = le.prefilters.length,
- a = T.Deferred().always(function () {
- delete l.elem
- }),
- l = function () {
- if (r) return !1;
- 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);
- return a.notifyWith(o, [c, i, e]), i < 1 && s ? e : (s || a.notifyWith(o, [c, 1, 0]), a.resolveWith(o, [c]), !1)
- },
- c = a.promise({
- elem: o,
- props: T.extend({}, t),
- opts: T.extend(!0, {
- specialEasing: {},
- easing: T.easing._default
- }, e),
- originalProperties: t,
- originalOptions: e,
- startTime: Jt || oe(),
- duration: e.duration,
- tweens: [],
- createTween: function (t, e) {
- var i = T.Tween(o, c.opts, t, e, c.opts.specialEasing[t] || c.opts.easing);
- return c.tweens.push(i), i
- },
- stop: function (t) {
- var e = 0,
- i = t ? c.tweens.length : 0;
- if (r) return this;
- for (r = !0; e < i; e++) c.tweens[e].run(1);
- return t ? (a.notifyWith(o, [c, 1, 0]), a.resolveWith(o, [c, t])) : a.rejectWith(o, [c, t]), this
- }
- }),
- u = c.props;
- for (function (t, e) {
- var i, n, s, o, r;
- for (i in t)
- 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)
- for (i in o = r.expand(o), delete t[n], o) i in t || (t[i] = o[i], e[i] = s);
- else e[n] = s
- }(u, c.opts.specialEasing); n < s; n++)
- 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;
- 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, {
- elem: o,
- anim: c,
- queue: c.opts.queue
- })), c
- }
- T.Animation = T.extend(le, {
- tweeners: {
- "*": [function (t, e) {
- var i = this.createTween(t, e);
- return rt(i.elem, t, tt.exec(e), i), i
- }]
- },
- tweener: function (t, e) {
- 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)
- },
- prefilters: [function (t, e, i) {
- var n, s, o, r, a, l, c, u, h = "width" in e || "height" in e,
- d = this,
- p = {},
- f = t.style,
- g = t.nodeType && ot(t),
- m = K.get(t, "fxshow");
- for (n in i.queue || (null == (r = T._queueHooks(t, "fx")).unqueued && (r.unqueued = 0, a = r.empty.fire, r.empty.fire = function () {
- r.unqueued || a()
- }), r.unqueued++, d.always(function () {
- d.always(function () {
- r.unqueued--, T.queue(t, "fx").length || r.empty.fire()
- })
- })), e)
- if (s = e[n], ie.test(s)) {
- if (delete e[n], o = o || "toggle" === s, s === (g ? "hide" : "show")) {
- if ("show" !== s || !m || void 0 === m[n]) continue;
- g = !0
- }
- p[n] = m && m[n] || T.style(t, n)
- } if ((l = !T.isEmptyObject(e)) || !T.isEmptyObject(p))
- 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 () {
- f.display = c
- }), null == c && (u = f.display, c = "none" === u ? "" : u)), f.display = "inline-block")), i.overflow && (f.overflow = "hidden", d.always(function () {
- f.overflow = i.overflow[0], f.overflowX = i.overflow[1], f.overflowY = i.overflow[2]
- })), l = !1, p) l || (m ? "hidden" in m && (g = m.hidden) : m = K.access(t, "fxshow", {
- display: c
- }), o && (m.hidden = !g), g && lt([t], !0), d.done(function () {
- for (n in g || lt([t]), K.remove(t, "fxshow"), p) T.style(t, n, p[n])
- })), l = ae(g ? m[n] : 0, n, d), n in m || (m[n] = l.start, g && (l.end = l.start, l.start = 0))
- }],
- prefilter: function (t, e) {
- e ? le.prefilters.unshift(t) : le.prefilters.push(t)
- }
- }), T.speed = function (t, e, i) {
- var n = t && "object" == _typeof(t) ? T.extend({}, t) : {
- complete: i || !i && e || y(t) && t,
- duration: t,
- easing: i && e || e && !y(e) && e
- };
- 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 () {
- y(n.old) && n.old.call(this), n.queue && T.dequeue(this, n.queue)
- }, n
- }, T.fn.extend({
- fadeTo: function (t, e, i, n) {
- return this.filter(ot).css("opacity", 0).show().end().animate({
- opacity: e
- }, t, i, n)
- },
- animate: function (e, t, i, n) {
- function s() {
- var t = le(this, T.extend({}, e), r);
- (o || K.get(this, "finish")) && t.stop(!0)
- }
- var o = T.isEmptyObject(e),
- r = T.speed(t, i, n);
- return s.finish = s, o || !1 === r.queue ? this.each(s) : this.queue(r.queue, s)
- },
- stop: function (s, t, o) {
- function r(t) {
- var e = t.stop;
- delete t.stop, e(o)
- }
- return "string" != typeof s && (o = t, t = s, s = void 0), t && this.queue(s || "fx", []), this.each(function () {
- var t = !0,
- e = null != s && s + "queueHooks",
- i = T.timers,
- n = K.get(this);
- if (e) n[e] && n[e].stop && r(n[e]);
- else
- for (e in n) n[e] && n[e].stop && ne.test(e) && r(n[e]);
- 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));
- !t && o || T.dequeue(this, s)
- })
- },
- finish: function (r) {
- return !1 !== r && (r = r || "fx"), this.each(function () {
- var t, e = K.get(this),
- i = e[r + "queue"],
- n = e[r + "queueHooks"],
- s = T.timers,
- o = i ? i.length : 0;
- 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));
- for (t = 0; t < o; t++) i[t] && i[t].finish && i[t].finish.call(this);
- delete e.finish
- })
- }
- }), T.each(["toggle", "show", "hide"], function (t, n) {
- var s = T.fn[n];
- T.fn[n] = function (t, e, i) {
- return null == t || "boolean" == typeof t ? s.apply(this, arguments) : this.animate(re(n, !0), t, e, i)
- }
- }), T.each({
- slideDown: re("show"),
- slideUp: re("hide"),
- slideToggle: re("toggle"),
- fadeIn: {
- opacity: "show"
- },
- fadeOut: {
- opacity: "hide"
- },
- fadeToggle: {
- opacity: "toggle"
- }
- }, function (t, n) {
- T.fn[t] = function (t, e, i) {
- return this.animate(n, t, e, i)
- }
- }), T.timers = [], T.fx.tick = function () {
- var t, e = 0,
- i = T.timers;
- for (Jt = Date.now(); e < i.length; e++)(t = i[e])() || i[e] !== t || i.splice(e--, 1);
- i.length || T.fx.stop(), Jt = void 0
- }, T.fx.timer = function (t) {
- T.timers.push(t), T.fx.start()
- }, T.fx.interval = 13, T.fx.start = function () {
- Zt || (Zt = !0, se())
- }, T.fx.stop = function () {
- Zt = null
- }, T.fx.speeds = {
- slow: 600,
- fast: 200,
- _default: 400
- }, T.fn.delay = function (n, t) {
- return n = T.fx && T.fx.speeds[n] || n, t = t || "fx", this.queue(t, function (t, e) {
- var i = x.setTimeout(t, n);
- e.stop = function () {
- x.clearTimeout(i)
- }
- })
- }, 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;
- var ce, ue = T.expr.attrHandle;
- T.fn.extend({
- attr: function (t, e) {
- return R(this, T.attr, t, e, 1 < arguments.length)
- },
- removeAttr: function (t) {
- return this.each(function () {
- T.removeAttr(this, t)
- })
- }
- }), T.extend({
- attr: function (t, e, i) {
- var n, s, o = t.nodeType;
- 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)
- },
- attrHooks: {
- type: {
- set: function (t, e) {
- if (!_.radioValue && "radio" === e && S(t, "input")) {
- var i = t.value;
- return t.setAttribute("type", e), i && (t.value = i), e
- }
- }
- }
- },
- removeAttr: function (t, e) {
- var i, n = 0,
- s = e && e.match(N);
- if (s && 1 === t.nodeType)
- for (; i = s[n++];) t.removeAttribute(i)
- }
- }), ce = {
- set: function (t, e, i) {
- return !1 === e ? T.removeAttr(t, i) : t.setAttribute(i, i), i
- }
- }, T.each(T.expr.match.bool.source.match(/\w+/g), function (t, e) {
- var r = ue[e] || T.find.attr;
- ue[e] = function (t, e, i) {
- var n, s, o = e.toLowerCase();
- return i || (s = ue[o], ue[o] = n, n = null != r(t, e, i) ? o : null, ue[o] = s), n
- }
- });
- var he = /^(?:input|select|textarea|button)$/i,
- de = /^(?:a|area)$/i;
-
- function pe(t) {
- return (t.match(N) || []).join(" ")
- }
-
- function fe(t) {
- return t.getAttribute && t.getAttribute("class") || ""
- }
-
- function ge(t) {
- return Array.isArray(t) ? t : "string" == typeof t && t.match(N) || []
- }
- T.fn.extend({
- prop: function (t, e) {
- return R(this, T.prop, t, e, 1 < arguments.length)
- },
- removeProp: function (t) {
- return this.each(function () {
- delete this[T.propFix[t] || t]
- })
- }
- }), T.extend({
- prop: function (t, e, i) {
- var n, s, o = t.nodeType;
- 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]
- },
- propHooks: {
- tabIndex: {
- get: function (t) {
- var e = T.find.attr(t, "tabindex");
- return e ? parseInt(e, 10) : he.test(t.nodeName) || de.test(t.nodeName) && t.href ? 0 : -1
- }
- }
- },
- propFix: {
- for: "htmlFor",
- class: "className"
- }
- }), _.optSelected || (T.propHooks.selected = {
- get: function (t) {
- var e = t.parentNode;
- return e && e.parentNode && e.parentNode.selectedIndex, null
- },
- set: function (t) {
- var e = t.parentNode;
- e && (e.selectedIndex, e.parentNode && e.parentNode.selectedIndex)
- }
- }), T.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function () {
- T.propFix[this.toLowerCase()] = this
- }), T.fn.extend({
- addClass: function (e) {
- var t, i, n, s, o, r, a, l = 0;
- if (y(e)) return this.each(function (t) {
- T(this).addClass(e.call(this, t, fe(this)))
- });
- if ((t = ge(e)).length)
- for (; i = this[l++];)
- if (s = fe(i), n = 1 === i.nodeType && " " + pe(s) + " ") {
- for (r = 0; o = t[r++];) n.indexOf(" " + o + " ") < 0 && (n += o + " ");
- s !== (a = pe(n)) && i.setAttribute("class", a)
- } return this
- },
- removeClass: function (e) {
- var t, i, n, s, o, r, a, l = 0;
- if (y(e)) return this.each(function (t) {
- T(this).removeClass(e.call(this, t, fe(this)))
- });
- if (!arguments.length) return this.attr("class", "");
- if ((t = ge(e)).length)
- for (; i = this[l++];)
- if (s = fe(i), n = 1 === i.nodeType && " " + pe(s) + " ") {
- for (r = 0; o = t[r++];)
- for (; - 1 < n.indexOf(" " + o + " ");) n = n.replace(" " + o + " ", " ");
- s !== (a = pe(n)) && i.setAttribute("class", a)
- } return this
- },
- toggleClass: function (s, e) {
- var o = _typeof(s),
- r = "string" === o || Array.isArray(s);
- return "boolean" == typeof e && r ? e ? this.addClass(s) : this.removeClass(s) : y(s) ? this.each(function (t) {
- T(this).toggleClass(s.call(this, t, fe(this), e), e)
- }) : this.each(function () {
- var t, e, i, n;
- if (r)
- for (e = 0, i = T(this), n = ge(s); t = n[e++];) i.hasClass(t) ? i.removeClass(t) : i.addClass(t);
- 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__") || ""))
- })
- },
- hasClass: function (t) {
- var e, i, n = 0;
- for (e = " " + t + " "; i = this[n++];)
- if (1 === i.nodeType && -1 < (" " + pe(fe(i)) + " ").indexOf(e)) return !0;
- return !1
- }
- });
- var me = /\r/g;
- T.fn.extend({
- val: function (i) {
- var n, t, s, e = this[0];
- return arguments.length ? (s = y(i), this.each(function (t) {
- var e;
- 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) {
- return null == t ? "" : t + ""
- })), (n = T.valHooks[this.type] || T.valHooks[this.nodeName.toLowerCase()]) && "set" in n && void 0 !== n.set(this, e, "value") || (this.value = e))
- })) : 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
- }
- }), T.extend({
- valHooks: {
- option: {
- get: function (t) {
- var e = T.find.attr(t, "value");
- return null != e ? e : pe(T.text(t))
- }
- },
- select: {
- get: function (t) {
- var e, i, n, s = t.options,
- o = t.selectedIndex,
- r = "select-one" === t.type,
- a = r ? null : [],
- l = r ? o + 1 : s.length;
- for (n = o < 0 ? l : r ? o : 0; n < l; n++)
- if (((i = s[n]).selected || n === o) && !i.disabled && (!i.parentNode.disabled || !S(i.parentNode, "optgroup"))) {
- if (e = T(i).val(), r) return e;
- a.push(e)
- } return a
- },
- set: function (t, e) {
- 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);
- return i || (t.selectedIndex = -1), o
- }
- }
- }
- }), T.each(["radio", "checkbox"], function () {
- T.valHooks[this] = {
- set: function (t, e) {
- if (Array.isArray(e)) return t.checked = -1 < T.inArray(T(t).val(), e)
- }
- }, _.checkOn || (T.valHooks[this].get = function (t) {
- return null === t.getAttribute("value") ? "on" : t.value
- })
- }), _.focusin = "onfocusin" in x;
-
- function ve(t) {
- t.stopPropagation()
- }
- var _e = /^(?:focusinfocus|focusoutblur)$/;
- T.extend(T.event, {
- trigger: function (t, e, i, n) {
- var s, o, r, a, l, c, u, h, d = [i || C],
- p = v.call(t, "type") ? t.type : t,
- f = v.call(t, "namespace") ? t.namespace.split(".") : [];
- 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))) {
- if (!n && !u.noBubble && !g(i)) {
- for (a = u.delegateType || p, _e.test(a + p) || (o = o.parentNode); o; o = o.parentNode) d.push(o), r = o;
- r === (i.ownerDocument || C) && d.push(r.defaultView || r.parentWindow || x)
- }
- for (s = 0;
- (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());
- 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
- }
- },
- simulate: function (t, e, i) {
- var n = T.extend(new T.Event, i, {
- type: t,
- isSimulated: !0
- });
- T.event.trigger(n, null, e)
- }
- }), T.fn.extend({
- trigger: function (t, e) {
- return this.each(function () {
- T.event.trigger(t, e, this)
- })
- },
- triggerHandler: function (t, e) {
- var i = this[0];
- if (i) return T.event.trigger(t, e, i, !0)
- }
- }), _.focusin || T.each({
- focus: "focusin",
- blur: "focusout"
- }, function (i, n) {
- function s(t) {
- T.event.simulate(n, t.target, T.event.fix(t))
- }
- T.event.special[n] = {
- setup: function () {
- var t = this.ownerDocument || this.document || this,
- e = K.access(t, n);
- e || t.addEventListener(i, s, !0), K.access(t, n, (e || 0) + 1)
- },
- teardown: function () {
- var t = this.ownerDocument || this.document || this,
- e = K.access(t, n) - 1;
- e ? K.access(t, n, e) : (t.removeEventListener(i, s, !0), K.remove(t, n))
- }
- }
- });
- var ye = x.location,
- be = {
- guid: Date.now()
- },
- we = /\?/;
- T.parseXML = function (t) {
- var e, i;
- if (!t || "string" != typeof t) return null;
- try {
- e = (new x.DOMParser).parseFromString(t, "text/xml")
- } catch (t) {}
- return i = e && e.getElementsByTagName("parsererror")[0], e && !i || T.error("Invalid XML: " + (i ? T.map(i.childNodes, function (t) {
- return t.textContent
- }).join("\n") : t)), e
- };
- var ke = /\[\]$/,
- xe = /\r?\n/g,
- Ce = /^(?:submit|button|image|reset|file)$/i,
- Te = /^(?:input|select|textarea|keygen)/i;
-
- function Se(i, t, n, s) {
- var e;
- if (Array.isArray(t)) T.each(t, function (t, e) {
- n || ke.test(i) ? s(i, e) : Se(i + "[" + ("object" == _typeof(e) && null != e ? t : "") + "]", e, n, s)
- });
- else if (n || "object" !== w(t)) s(i, t);
- else
- for (e in t) Se(i + "[" + e + "]", t[e], n, s)
- }
- T.param = function (t, e) {
- function i(t, e) {
- var i = y(e) ? e() : e;
- s[s.length] = encodeURIComponent(t) + "=" + encodeURIComponent(null == i ? "" : i)
- }
- var n, s = [];
- if (null == t) return "";
- if (Array.isArray(t) || t.jquery && !T.isPlainObject(t)) T.each(t, function () {
- i(this.name, this.value)
- });
- else
- for (n in t) Se(n, t[n], e, i);
- return s.join("&")
- }, T.fn.extend({
- serialize: function () {
- return T.param(this.serializeArray())
- },
- serializeArray: function () {
- return this.map(function () {
- var t = T.prop(this, "elements");
- return t ? T.makeArray(t) : this
- }).filter(function () {
- var t = this.type;
- return this.name && !T(this).is(":disabled") && Te.test(this.nodeName) && !Ce.test(t) && (this.checked || !ht.test(t))
- }).map(function (t, e) {
- var i = T(this).val();
- return null == i ? null : Array.isArray(i) ? T.map(i, function (t) {
- return {
- name: e.name,
- value: t.replace(xe, "\r\n")
- }
- }) : {
- name: e.name,
- value: i.replace(xe, "\r\n")
- }
- }).get()
- }
- });
- var De = /%20/g,
- Ae = /#.*$/,
- Ee = /([?&])_=[^&]*/,
- Pe = /^(.*?):[ \t]*([^\r\n]*)$/gm,
- Ie = /^(?:GET|HEAD)$/,
- Oe = /^\/\//,
- Me = {},
- Ne = {},
- Le = "*/".concat("*"),
- He = C.createElement("a");
-
- function je(o) {
- return function (t, e) {
- "string" != typeof t && (e = t, t = "*");
- var i, n = 0,
- s = t.toLowerCase().match(N) || [];
- if (y(e))
- for (; i = s[n++];) "+" === i[0] ? (i = i.slice(1) || "*", (o[i] = o[i] || []).unshift(e)) : (o[i] = o[i] || []).push(e)
- }
- }
-
- function ze(e, s, o, r) {
- var a = {},
- l = e === Ne;
-
- function c(t) {
- var n;
- return a[t] = !0, T.each(e[t] || [], function (t, e) {
- var i = e(s, o, r);
- return "string" != typeof i || l || a[i] ? l ? !(n = i) : void 0 : (s.dataTypes.unshift(i), c(i), !1)
- }), n
- }
- return c(s.dataTypes[0]) || !a["*"] && c("*")
- }
-
- function We(t, e) {
- var i, n, s = T.ajaxSettings.flatOptions || {};
- for (i in e) void 0 !== e[i] && ((s[i] ? t : n || (n = {}))[i] = e[i]);
- return n && T.extend(!0, t, n), t
- }
- He.href = ye.href, T.extend({
- active: 0,
- lastModified: {},
- etag: {},
- ajaxSettings: {
- url: ye.href,
- type: "GET",
- isLocal: /^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ye.protocol),
- global: !0,
- processData: !0,
- async: !0,
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
- accepts: {
- "*": Le,
- text: "text/plain",
- html: "text/html",
- xml: "application/xml, text/xml",
- json: "application/json, text/javascript"
- },
- contents: {
- xml: /\bxml\b/,
- html: /\bhtml/,
- json: /\bjson\b/
- },
- responseFields: {
- xml: "responseXML",
- text: "responseText",
- json: "responseJSON"
- },
- converters: {
- "* text": String,
- "text html": !0,
- "text json": JSON.parse,
- "text xml": T.parseXML
- },
- flatOptions: {
- url: !0,
- context: !0
- }
- },
- ajaxSetup: function (t, e) {
- return e ? We(We(t, T.ajaxSettings), e) : We(T.ajaxSettings, t)
- },
- ajaxPrefilter: je(Me),
- ajaxTransport: je(Ne),
- ajax: function (t, e) {
- "object" == _typeof(t) && (e = t, t = void 0), e = e || {};
- var u, h, d, i, p, n, f, g, s, o, m = T.ajaxSetup({}, e),
- v = m.context || m,
- _ = m.context && (v.nodeType || v.jquery) ? T(v) : T.event,
- y = T.Deferred(),
- b = T.Callbacks("once memory"),
- w = m.statusCode || {},
- r = {},
- a = {},
- l = "canceled",
- k = {
- readyState: 0,
- getResponseHeader: function (t) {
- var e;
- if (f) {
- if (!i)
- for (i = {}; e = Pe.exec(d);) i[e[1].toLowerCase() + " "] = (i[e[1].toLowerCase() + " "] || []).concat(e[2]);
- e = i[t.toLowerCase() + " "]
- }
- return null == e ? null : e.join(", ")
- },
- getAllResponseHeaders: function () {
- return f ? d : null
- },
- setRequestHeader: function (t, e) {
- return null == f && (t = a[t.toLowerCase()] = a[t.toLowerCase()] || t, r[t] = e), this
- },
- overrideMimeType: function (t) {
- return null == f && (m.mimeType = t), this
- },
- statusCode: function (t) {
- var e;
- if (t)
- if (f) k.always(t[k.status]);
- else
- for (e in t) w[e] = [w[e], t[e]];
- return this
- },
- abort: function (t) {
- var e = t || l;
- return u && u.abort(e), c(0, e), this
- }
- };
- 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) {
- n = C.createElement("a");
- try {
- n.href = m.url, n.href = n.href, m.crossDomain = He.protocol + "//" + He.host != n.protocol + "//" + n.host
- } catch (t) {
- m.crossDomain = !0
- }
- }
- 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;
- 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]);
- if (m.beforeSend && (!1 === m.beforeSend.call(v, k, m) || f)) return k.abort();
- if (l = "abort", b.add(m.complete), k.done(m.success), k.fail(m.error), u = ze(Ne, m, e, k)) {
- if (k.readyState = 1, g && _.trigger("ajaxSend", [k, m]), f) return k;
- m.async && 0 < m.timeout && (p = x.setTimeout(function () {
- k.abort("timeout")
- }, m.timeout));
- try {
- f = !1, u.send(r, c)
- } catch (t) {
- if (f) throw t;
- c(-1, t)
- }
- } else c(-1, "No Transport");
-
- function c(t, e, i, n) {
- var s, o, r, a, l, c = e;
- 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) {
- for (var n, s, o, r, a = t.contents, l = t.dataTypes;
- "*" === l[0];) l.shift(), void 0 === n && (n = t.mimeType || e.getResponseHeader("Content-Type"));
- if (n)
- for (s in a)
- if (a[s] && a[s].test(n)) {
- l.unshift(s);
- break
- } if (l[0] in i) o = l[0];
- else {
- for (s in i) {
- if (!l[0] || t.converters[s + " " + l[0]]) {
- o = s;
- break
- }
- r || (r = s)
- }
- o = o || r
- }
- if (o) return o !== l[0] && l.unshift(o), i[o]
- }(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) {
- var s, o, r, a, l, c = {},
- u = t.dataTypes.slice();
- if (u[1])
- for (r in t.converters) c[r.toLowerCase()] = t.converters[r];
- for (o = u.shift(); o;)
- if (t.responseFields[o] && (i[t.responseFields[o]] = e), !l && n && t.dataFilter && (e = t.dataFilter(e, t.dataType)), l = o, o = u.shift())
- if ("*" === o) o = l;
- else if ("*" !== l && l !== o) {
- if (!(r = c[l + " " + o] || c["* " + o]))
- for (s in c)
- if ((a = s.split(" "))[1] === o && (r = c[l + " " + a[0]] || c["* " + a[0]])) {
- !0 === r ? r = c[s] : !0 !== c[s] && (o = a[0], u.unshift(a[1]));
- break
- } if (!0 !== r)
- if (r && t.throws) e = r(e);
- else try {
- e = r(e)
- } catch (t) {
- return {
- state: "parsererror",
- error: r ? t : "No conversion from " + l + " to " + o
- }
- }
- }
- return {
- state: "success",
- data: e
- }
- }(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")))
- }
- return k
- },
- getJSON: function (t, e, i) {
- return T.get(t, e, i, "json")
- },
- getScript: function (t, e) {
- return T.get(t, void 0, e, "script")
- }
- }), T.each(["get", "post"], function (t, s) {
- T[s] = function (t, e, i, n) {
- return y(e) && (n = n || i, i = e, e = void 0), T.ajax(T.extend({
- url: t,
- type: s,
- dataType: n,
- data: e,
- success: i
- }, T.isPlainObject(t) && t))
- }
- }), T.ajaxPrefilter(function (t) {
- var e;
- for (e in t.headers) "content-type" === e.toLowerCase() && (t.contentType = t.headers[e] || "")
- }), T._evalUrl = function (t, e, i) {
- return T.ajax({
- url: t,
- type: "GET",
- dataType: "script",
- cache: !0,
- async: !1,
- global: !1,
- converters: {
- "text script": function () {}
- },
- dataFilter: function (t) {
- T.globalEval(t, e, i)
- }
- })
- }, T.fn.extend({
- wrapAll: function (t) {
- var e;
- 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 () {
- for (var t = this; t.firstElementChild;) t = t.firstElementChild;
- return t
- }).append(this)), this
- },
- wrapInner: function (i) {
- return y(i) ? this.each(function (t) {
- T(this).wrapInner(i.call(this, t))
- }) : this.each(function () {
- var t = T(this),
- e = t.contents();
- e.length ? e.wrapAll(i) : t.append(i)
- })
- },
- wrap: function (e) {
- var i = y(e);
- return this.each(function (t) {
- T(this).wrapAll(i ? e.call(this, t) : e)
- })
- },
- unwrap: function (t) {
- return this.parent(t).not("body").each(function () {
- T(this).replaceWith(this.childNodes)
- }), this
- }
- }), T.expr.pseudos.hidden = function (t) {
- return !T.expr.pseudos.visible(t)
- }, T.expr.pseudos.visible = function (t) {
- return !!(t.offsetWidth || t.offsetHeight || t.getClientRects().length)
- }, T.ajaxSettings.xhr = function () {
- try {
- return new x.XMLHttpRequest
- } catch (t) {}
- };
- var $e = {
- 0: 200,
- 1223: 204
- },
- Re = T.ajaxSettings.xhr();
- _.cors = !!Re && "withCredentials" in Re, _.ajax = Re = !!Re, T.ajaxTransport(function (s) {
- var o, r;
- if (_.cors || Re && !s.crossDomain) return {
- send: function (t, e) {
- var i, n = s.xhr();
- if (n.open(s.type, s.url, s.async, s.username, s.password), s.xhrFields)
- for (i in s.xhrFields) n[i] = s.xhrFields[i];
- 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]);
- o = function (t) {
- return function () {
- 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 ? {
- binary: n.response
- } : {
- text: n.responseText
- }, n.getAllResponseHeaders()))
- }
- }, n.onload = o(), r = n.onerror = n.ontimeout = o("error"), void 0 !== n.onabort ? n.onabort = r : n.onreadystatechange = function () {
- 4 === n.readyState && x.setTimeout(function () {
- o && r()
- })
- }, o = o("abort");
- try {
- n.send(s.hasContent && s.data || null)
- } catch (t) {
- if (o) throw t
- }
- },
- abort: function () {
- o && o()
- }
- }
- }), T.ajaxPrefilter(function (t) {
- t.crossDomain && (t.contents.script = !1)
- }), T.ajaxSetup({
- accepts: {
- script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
- },
- contents: {
- script: /\b(?:java|ecma)script\b/
- },
- converters: {
- "text script": function (t) {
- return T.globalEval(t), t
- }
- }
- }), T.ajaxPrefilter("script", function (t) {
- void 0 === t.cache && (t.cache = !1), t.crossDomain && (t.type = "GET")
- }), T.ajaxTransport("script", function (i) {
- var n, s;
- if (i.crossDomain || i.scriptAttrs) return {
- send: function (t, e) {
- n = T("<script>").attr(i.scriptAttrs || {}).prop({
- charset: i.scriptCharset,
- src: i.url
- }).on("load error", s = function (t) {
- n.remove(), s = null, t && e("error" === t.type ? 404 : 200, t.type)
- }), C.head.appendChild(n[0])
- },
- abort: function () {
- s && s()
- }
- }
- });
- var Fe, qe = [],
- Be = /(=)\?(?=&|$)|\?\?/;
- T.ajaxSetup({
- jsonp: "callback",
- jsonpCallback: function () {
- var t = qe.pop() || T.expando + "_" + be.guid++;
- return this[t] = !0, t
- }
- }), T.ajaxPrefilter("json jsonp", function (t, e, i) {
- 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");
- 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 () {
- return o || T.error(n + " was not called"), o[0]
- }, t.dataTypes[0] = "json", s = x[n], x[n] = function () {
- o = arguments
- }, i.always(function () {
- 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
- }), "script"
- }), _.createHTMLDocument = ((Fe = C.implementation.createHTMLDocument("").body).innerHTML = "<form></form><form></form>", 2 === Fe.childNodes.length), T.parseHTML = function (t, e, i) {
- 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)));
- var n, s, o
- }, T.fn.load = function (t, e, i) {
- var n, s, o, r = this,
- a = t.indexOf(" ");
- 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({
- url: t,
- type: s || "GET",
- dataType: "html",
- data: e
- }).done(function (t) {
- o = arguments, r.html(n ? T("<div>").append(T.parseHTML(t)).find(n) : t)
- }).always(i && function (t, e) {
- r.each(function () {
- i.apply(this, o || [t.responseText, e, t])
- })
- }), this
- }, T.expr.pseudos.animated = function (e) {
- return T.grep(T.timers, function (t) {
- return e === t.elem
- }).length
- }, T.offset = {
- setOffset: function (t, e, i) {
- var n, s, o, r, a, l, c = T.css(t, "position"),
- u = T(t),
- h = {};
- "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)
- }
- }, T.fn.extend({
- offset: function (e) {
- if (arguments.length) return void 0 === e ? this : this.each(function (t) {
- T.offset.setOffset(this, e, t)
- });
- var t, i, n = this[0];
- return n ? n.getClientRects().length ? (t = n.getBoundingClientRect(), i = n.ownerDocument.defaultView, {
- top: t.top + i.pageYOffset,
- left: t.left + i.pageXOffset
- }) : {
- top: 0,
- left: 0
- } : void 0
- },
- position: function () {
- if (this[0]) {
- var t, e, i, n = this[0],
- s = {
- top: 0,
- left: 0
- };
- if ("fixed" === T.css(n, "position")) e = n.getBoundingClientRect();
- else {
- 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;
- t && t !== n && 1 === t.nodeType && ((s = T(t).offset()).top += T.css(t, "borderTopWidth", !0), s.left += T.css(t, "borderLeftWidth", !0))
- }
- return {
- top: e.top - s.top - T.css(n, "marginTop", !0),
- left: e.left - s.left - T.css(n, "marginLeft", !0)
- }
- }
- },
- offsetParent: function () {
- return this.map(function () {
- for (var t = this.offsetParent; t && "static" === T.css(t, "position");) t = t.offsetParent;
- return t || it
- })
- }
- }), T.each({
- scrollLeft: "pageXOffset",
- scrollTop: "pageYOffset"
- }, function (e, s) {
- var o = "pageYOffset" === s;
- T.fn[e] = function (t) {
- return R(this, function (t, e, i) {
- var n;
- if (g(t) ? n = t : 9 === t.nodeType && (n = t.defaultView), void 0 === i) return n ? n[s] : t[e];
- n ? n.scrollTo(o ? n.pageXOffset : i, o ? i : n.pageYOffset) : t[e] = i
- }, e, t, arguments.length)
- }
- }), T.each(["top", "left"], function (t, i) {
- T.cssHooks[i] = Wt(_.pixelPosition, function (t, e) {
- if (e) return e = zt(t, i), Lt.test(e) ? T(t).position()[i] + "px" : e
- })
- }), T.each({
- Height: "height",
- Width: "width"
- }, function (r, a) {
- T.each({
- padding: "inner" + r,
- content: a,
- "": "outer" + r
- }, function (n, o) {
- T.fn[o] = function (t, e) {
- var i = arguments.length && (n || "boolean" != typeof t),
- s = n || (!0 === t || !0 === e ? "margin" : "border");
- return R(this, function (t, e, i) {
- var n;
- 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)
- }, a, i ? t : void 0, i)
- }
- })
- }), T.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function (t, e) {
- T.fn[e] = function (t) {
- return this.on(e, t)
- }
- }), T.fn.extend({
- bind: function (t, e, i) {
- return this.on(t, null, e, i)
- },
- unbind: function (t, e) {
- return this.off(t, null, e)
- },
- delegate: function (t, e, i, n) {
- return this.on(e, t, i, n)
- },
- undelegate: function (t, e, i) {
- return 1 === arguments.length ? this.off(t, "**") : this.off(e, t || "**", i)
- },
- hover: function (t, e) {
- return this.mouseenter(t).mouseleave(e || t)
- }
- }), 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) {
- T.fn[i] = function (t, e) {
- return 0 < arguments.length ? this.on(i, null, t, e) : this.trigger(i)
- }
- });
- var Ue = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
- T.proxy = function (t, e) {
- var i, n, s;
- if ("string" == typeof e && (i = t[e], e = t, t = i), y(t)) return n = a.call(arguments, 2), (s = function () {
- return t.apply(e || this, n.concat(a.call(arguments)))
- }).guid = t.guid = t.guid || T.guid++, s
- }, T.holdReady = function (t) {
- t ? T.readyWait++ : T.ready(!0)
- }, 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) {
- var e = T.type(t);
- return ("number" === e || "string" === e) && !isNaN(t - parseFloat(t))
- }, T.trim = function (t) {
- return null == t ? "" : (t + "").replace(Ue, "")
- }, "function" == typeof define && define.amd && define("jquery", [], function () {
- return T
- });
- var Ye = x.jQuery,
- Ve = x.$;
- return T.noConflict = function (t) {
- return x.$ === T && (x.$ = Ve), t && x.jQuery === T && (x.jQuery = Ye), T
- }, void 0 === t && (x.jQuery = x.$ = T), T
- }),
- function (o, h, d) {
- function p(t, e) {
- return _typeof(t) === e
- }
-
- function r(t) {
- var e = b.className,
- i = _._config.classPrefix || "";
- if (w && (e = e.baseVal), _._config.enableJSClass) {
- var n = new RegExp("(^|\\s)" + i + "no-js(\\s|$)");
- e = e.replace(n, "$1" + i + "js$2")
- }
- _._config.enableClasses && (0 < t.length && (e += " " + i + t.join(" " + i)), w ? b.className.baseVal = e : b.className = e)
- }
-
- function a(t, e) {
- if ("object" == _typeof(t))
- for (var i in t) x(t, i) && a(i, t[i]);
- else {
- var n = (t = t.toLowerCase()).split("."),
- s = _[n[0]];
- if (2 === n.length && (s = s[n[1]]), void 0 !== s) return _;
- 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)
- }
- return _
- }
-
- function f() {
- 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)
- }
-
- function s(t, e, i, n) {
- var s, o, r, a, l = "modernizr",
- c = f("div"),
- u = function () {
- var t = h.body;
- return t || ((t = f(w ? "svg" : "body")).fake = !0), t
- }();
- if (parseInt(i, 10))
- for (; i--;)(r = f("div")).id = n ? n[i] : l + (i + 1), c.appendChild(r);
- 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
- }
-
- function l(t) {
- return t.replace(/([A-Z])/g, function (t, e) {
- return "-" + e.toLowerCase()
- }).replace(/^ms-/, "-ms-")
- }
-
- function g(t, e) {
- var i = t.length;
- if ("CSS" in o && "supports" in o.CSS) {
- for (; i--;)
- if (o.CSS.supports(l(t[i]), e)) return !0;
- return !1
- }
- if ("CSSSupportsRule" in o) {
- for (var n = []; i--;) n.push("(" + l(t[i]) + ":" + e + ")");
- return s("@supports (" + (n = n.join(" or ")) + ") { #modernizr { position: absolute; } }", function (t) {
- return "absolute" === function (t, e, i) {
- var n;
- if ("getComputedStyle" in o) {
- n = getComputedStyle.call(o, t, e);
- var s = o.console;
- 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")
- } else n = !e && t.currentStyle && t.currentStyle[i];
- return n
- }(t, null, "position")
- })
- }
- return d
- }
-
- function c(t, e, i, n) {
- function s() {
- r && (delete I.style, delete I.modElem)
- }
- if (n = !p(n, "undefined") && n, !p(i, "undefined")) {
- var o = g(t, i);
- if (!p(o, "undefined")) return o
- }
- 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;
- for (l = t.length, a = 0; a < l; a++)
- if (c = t[a], u = I.style[c], !!~("" + c).indexOf("-") && (c = c.replace(/([a-z])-([a-z])/g, function (t, e, i) {
- return e + i.toUpperCase()
- }).replace(/^-/, "")), I.style[c] !== d) {
- if (n || p(i, "undefined")) return s(), "pfx" !== e || c;
- try {
- I.style[c] = i
- } catch (t) {}
- if (I.style[c] !== u) return s(), "pfx" !== e || c
- } return s(), !1
- }
-
- function u(t, e) {
- return function () {
- return t.apply(e, arguments)
- }
- }
-
- function n(t, e, i, n, s) {
- var o = t.charAt(0).toUpperCase() + t.slice(1),
- r = (t + " " + E.join(o + " ") + o).split(" ");
- return p(e, "string") || p(e, "undefined") ? c(r, e, n, s) : function (t, e, i) {
- var n;
- for (var s in t)
- if (t[s] in e) return !1 === i ? t[s] : p(n = e[t[s]], "function") ? u(n, i || e) : n;
- return !1
- }(r = (t + " " + k.join(o + " ") + o).split(" "), e, i)
- }
-
- function m(t, e, i) {
- return n(t, d, d, e, i)
- }
- var v = [],
- t = {
- _version: "3.7.1",
- _config: {
- classPrefix: "",
- enableClasses: !0,
- enableJSClass: !0,
- usePrefixes: !0
- },
- _q: [],
- on: function (t, e) {
- var i = this;
- setTimeout(function () {
- e(i[t])
- }, 0)
- },
- addTest: function (t, e, i) {
- v.push({
- name: t,
- fn: e,
- options: i
- })
- },
- addAsyncTest: function (t) {
- v.push({
- name: null,
- fn: t
- })
- }
- },
- _ = function () {};
- _.prototype = t, _ = new _;
- var y = [],
- b = h.documentElement,
- w = "svg" === b.nodeName.toLowerCase(),
- e = "Moz O ms Webkit",
- k = t._config.usePrefixes ? e.toLowerCase().split(" ") : [];
- t._domPrefixes = k;
- var x, i, C = t._config.usePrefixes ? " -webkit- -moz- -o- -ms- ".split(" ") : ["", ""];
- t._prefixes = C, x = p(i = {}.hasOwnProperty, "undefined") || p(i.call, "undefined") ? function (t, e) {
- return e in t && p(t.constructor.prototype[e], "undefined")
- } : function (t, e) {
- return i.call(t, e)
- }, t._l = {}, t.on = function (t, e) {
- this._l[t] || (this._l[t] = []), this._l[t].push(e), _.hasOwnProperty(t) && setTimeout(function () {
- _._trigger(t, _[t])
- }, 0)
- }, t._trigger = function (t, e) {
- if (this._l[t]) {
- var i = this._l[t];
- setTimeout(function () {
- var t;
- for (t = 0; t < i.length; t++)(0, i[t])(e)
- }, 0), delete this._l[t]
- }
- }, _._q.push(function () {
- t.addTest = a
- });
- var T, S = (T = !("onblur" in b), function (t, e) {
- var i;
- 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)
- });
- t.hasEvent = S;
- var D, A = (D = o.matchMedia || o.msMatchMedia) ? function (t) {
- var e = D(t);
- return e && e.matches || !1
- } : function (t) {
- var e = !1;
- return s("@media " + t + " { #modernizr { position: absolute; } }", function (t) {
- e = "absolute" === (o.getComputedStyle ? o.getComputedStyle(t, null) : t.currentStyle).position
- }), e
- };
- t.mq = A;
- t.prefixedCSSValue = function (t, e) {
- var i = !1,
- n = f("div").style;
- if (t in n) {
- var s = k.length;
- for (n[t] = e, i = n[t]; s-- && !i;) n[t] = "-" + k[s] + "-" + e, i = n[t]
- }
- return "" === i && (i = !1), i
- };
- var E = t._config.usePrefixes ? e.split(" ") : [];
- t._cssomPrefixes = E;
- var P = {
- elem: f("modernizr")
- };
- _._q.push(function () {
- delete P.elem
- });
- var I = {
- style: P.elem.style
- };
- _._q.unshift(function () {
- delete I.style
- }), t.testAllProps = n, t.testAllProps = m, t.testProp = function (t, e, i) {
- return c([t], d, e, i)
- }, t.testStyles = s, _.addTest("customelements", "customElements" in o), _.addTest("history", function () {
- var t = navigator.userAgent;
- 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
- }), _.addTest("pointerevents", function () {
- var t = !1,
- e = k.length;
- for (t = _.hasEvent("pointerdown"); e-- && !t;) S(k[e] + "pointerdown") && (t = !0);
- return t
- });
- var O = new Boolean("postMessage" in o);
- O.structuredclones = !0;
- try {
- o.postMessage({
- toString: function () {
- O.structuredclones = !1
- }
- }, "*")
- } catch (o) {}
- _.addTest("postmessage", O), _.addTest("webgl", function () {
- return "WebGLRenderingContext" in o
- });
- var M = !1;
- try {
- M = "WebSocket" in o && 2 === o.WebSocket.CLOSING
- } catch (o) {}
- _.addTest("websockets", M), _.addTest("cssanimations", m("animationName", "a", !0)),
- function () {
- _.addTest("csscolumns", function () {
- var t = !1,
- e = m("columnCount");
- try {
- (t = !!e) && (t = new Boolean(t))
- } catch (t) {}
- return t
- });
- 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)
- }(), _.addTest("flexbox", m("flexBasis", "1px", !0)), _.addTest("picture", "HTMLPictureElement" in o), _.addAsyncTest(function () {
- var t, e, i = f("img"),
- n = "sizes" in i;
- !n && "srcset" in i ? (t = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==", e = function () {
- a("sizes", 2 === i.width)
- }, 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)
- }), _.addTest("srcset", "srcset" in f("img")), _.addTest("webworkers", "Worker" in o),
- function () {
- var t, e, i, n, s, o;
- for (var r in v)
- if (v.hasOwnProperty(r)) {
- if (t = [], (e = v[r]).name && (t.push(e.name.toLowerCase()), e.options && e.options.aliases && e.options.aliases.length))
- for (i = 0; i < e.options.aliases.length; i++) t.push(e.options.aliases[i].toLowerCase());
- 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("-"))
- }
- }(), r(y), delete t.addTest, delete t.addAsyncTest;
- for (var N = 0; N < _._q.length; N++) _._q[N]();
- o.Modernizr = _
- }(window, document),
- function (t, e) {
- "object" == ("undefined" == typeof exports ? "undefined" : _typeof(exports)) && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (void 0).Popper = e()
- }(0, function () {
- function r(t) {
- return t && "[object Function]" === {}.toString.call(t)
- }
-
- function b(t, e) {
- if (1 !== t.nodeType) return [];
- var i = t.ownerDocument.defaultView.getComputedStyle(t, null);
- return e ? i[e] : i
- }
-
- function p(t) {
- return "HTML" === t.nodeName ? t : t.parentNode || t.host
- }
-
- function f(t) {
- if (!t) return document.body;
- switch (t.nodeName) {
- case "HTML":
- case "BODY":
- return t.ownerDocument.body;
- case "#document":
- return t.body
- }
- var e = b(t),
- i = e.overflow,
- n = e.overflowX,
- s = e.overflowY;
- return /(auto|scroll|overlay)/.test(i + s + n) ? t : f(p(t))
- }
-
- function g(t) {
- return t && t.referenceNode ? t.referenceNode : t
- }
-
- function m(t) {
- return 11 === t ? q : 10 === t ? B : q || B
- }
-
- function y(t) {
- if (!t) return document.documentElement;
- for (var e = m(10) ? document.body : null, i = t.offsetParent || null; i === e && t.nextElementSibling;) i = (t = t.nextElementSibling).offsetParent;
- var n = i && i.nodeName;
- 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
- }
-
- function l(t) {
- return null === t.parentNode ? t : l(t.parentNode)
- }
-
- function v(t, e) {
- if (!(t && t.nodeType && e && e.nodeType)) return document.documentElement;
- var i = t.compareDocumentPosition(e) & Node.DOCUMENT_POSITION_FOLLOWING,
- n = i ? t : e,
- s = i ? e : t,
- o = document.createRange();
- o.setStart(n, 0), o.setEnd(s, 0);
- var r = o.commonAncestorContainer;
- if (t !== r && e !== r || n.contains(s)) return function (t) {
- var e = t.nodeName;
- return "BODY" !== e && ("HTML" === e || y(t.firstElementChild) === t)
- }(r) ? r : y(r);
- var a = l(t);
- return a.host ? v(a.host, e) : v(t, l(e).host)
- }
-
- function _(t) {
- var e = "top" === (1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : "top") ? "scrollTop" : "scrollLeft",
- i = t.nodeName;
- if ("BODY" !== i && "HTML" !== i) return t[e];
- var n = t.ownerDocument.documentElement;
- return (t.ownerDocument.scrollingElement || n)[e]
- }
-
- function h(t, e) {
- var i = "x" === e ? "Left" : "Top",
- n = "Left" == i ? "Right" : "Bottom";
- return parseFloat(t["border" + i + "Width"], 10) + parseFloat(t["border" + n + "Width"], 10)
- }
-
- function s(t, e, i, n) {
- 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)
- }
-
- function w(t) {
- var e = t.body,
- i = t.documentElement,
- n = m(10) && getComputedStyle(i);
- return {
- height: s("Height", e, i, n),
- width: s("Width", e, i, n)
- }
- }
-
- function k(t) {
- return Y({}, t, {
- right: t.left + t.width,
- bottom: t.top + t.height
- })
- }
-
- function x(t) {
- var e = {};
- try {
- if (m(10)) {
- e = t.getBoundingClientRect();
- var i = _(t, "top"),
- n = _(t, "left");
- e.top += i, e.left += n, e.bottom += i, e.right += n
- } else e = t.getBoundingClientRect()
- } catch (t) {}
- var s = {
- left: e.left,
- top: e.top,
- width: e.right - e.left,
- height: e.bottom - e.top
- },
- o = "HTML" === t.nodeName ? w(t.ownerDocument) : {},
- r = o.width || t.clientWidth || s.width,
- a = o.height || t.clientHeight || s.height,
- l = t.offsetWidth - r,
- c = t.offsetHeight - a;
- if (l || c) {
- var u = b(t);
- l -= h(u, "x"), c -= h(u, "y"), s.width -= l, s.height -= c
- }
- return k(s)
- }
-
- function C(t, e) {
- var i = 2 < arguments.length && void 0 !== arguments[2] && arguments[2],
- n = m(10),
- s = "HTML" === e.nodeName,
- o = x(t),
- r = x(e),
- a = f(t),
- l = b(e),
- c = parseFloat(l.borderTopWidth, 10),
- u = parseFloat(l.borderLeftWidth, 10);
- i && s && (r.top = W(r.top, 0), r.left = W(r.left, 0));
- var h = k({
- top: o.top - r.top - c,
- left: o.left - r.left - u,
- width: o.width,
- height: o.height
- });
- if (h.marginTop = 0, h.marginLeft = 0, !n && s) {
- var d = parseFloat(l.marginTop, 10),
- p = parseFloat(l.marginLeft, 10);
- h.top -= c - d, h.bottom -= c - d, h.left -= u - p, h.right -= u - p, h.marginTop = d, h.marginLeft = p
- }
- return (n && !i ? e.contains(a) : e === a && "BODY" !== a.nodeName) && (h = function (t, e) {
- var i = 2 < arguments.length && void 0 !== arguments[2] && arguments[2],
- n = _(e, "top"),
- s = _(e, "left"),
- o = i ? -1 : 1;
- return t.top += n * o, t.bottom += n * o, t.left += s * o, t.right += s * o, t
- }(h, e)), h
- }
-
- function T(t) {
- if (!t || !t.parentElement || m()) return document.documentElement;
- for (var e = t.parentElement; e && "none" === b(e, "transform");) e = e.parentElement;
- return e || document.documentElement
- }
-
- function d(t, e, i, n) {
- var s = 4 < arguments.length && void 0 !== arguments[4] && arguments[4],
- o = {
- top: 0,
- left: 0
- },
- r = s ? T(t) : v(t, g(e));
- if ("viewport" === n) o = function (t) {
- var e = 1 < arguments.length && void 0 !== arguments[1] && arguments[1],
- i = t.ownerDocument.documentElement,
- n = C(t, i),
- s = W(i.clientWidth, window.innerWidth || 0),
- o = W(i.clientHeight, window.innerHeight || 0),
- r = e ? 0 : _(i),
- a = e ? 0 : _(i, "left");
- return k({
- top: r - n.top + n.marginTop,
- left: a - n.left + n.marginLeft,
- width: s,
- height: o
- })
- }(r, s);
- else {
- var a;
- "scrollParent" === n ? "BODY" === (a = f(p(e))).nodeName && (a = t.ownerDocument.documentElement) : a = "window" === n ? t.ownerDocument.documentElement : n;
- var l = C(a, r, s);
- if ("HTML" !== a.nodeName || function t(e) {
- var i = e.nodeName;
- if ("BODY" === i || "HTML" === i) return !1;
- if ("fixed" === b(e, "position")) return !0;
- var n = p(e);
- return !!n && t(n)
- }(r)) o = l;
- else {
- var c = w(t.ownerDocument),
- u = c.height,
- h = c.width;
- o.top += l.top - l.marginTop, o.bottom = u + l.top, o.left += l.left - l.marginLeft, o.right = h + l.left
- }
- }
- var d = "number" == typeof (i = i || 0);
- 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
- }
-
- function a(t, e, n, i, s) {
- var o = 5 < arguments.length && void 0 !== arguments[5] ? arguments[5] : 0;
- if (-1 === t.indexOf("auto")) return t;
- var r = d(n, i, o, s),
- a = {
- top: {
- width: r.width,
- height: e.top - r.top
- },
- right: {
- width: r.right - e.right,
- height: r.height
- },
- bottom: {
- width: r.width,
- height: r.bottom - e.bottom
- },
- left: {
- width: e.left - r.left,
- height: r.height
- }
- },
- l = Object.keys(a).map(function (t) {
- return Y({
- key: t
- }, a[t], {
- area: function (t) {
- return t.width * t.height
- }(a[t])
- })
- }).sort(function (t, e) {
- return e.area - t.area
- }),
- c = l.filter(function (t) {
- var e = t.width,
- i = t.height;
- return e >= n.clientWidth && i >= n.clientHeight
- }),
- u = 0 < c.length ? c[0].key : l[0].key,
- h = t.split("-")[1];
- return u + (h ? "-" + h : "")
- }
-
- function c(t, e, i) {
- var n = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
- return C(i, n ? T(e) : v(e, g(i)), n)
- }
-
- function S(t) {
- var e = t.ownerDocument.defaultView.getComputedStyle(t),
- i = parseFloat(e.marginTop || 0) + parseFloat(e.marginBottom || 0),
- n = parseFloat(e.marginLeft || 0) + parseFloat(e.marginRight || 0);
- return {
- width: t.offsetWidth + n,
- height: t.offsetHeight + i
- }
- }
-
- function D(t) {
- var e = {
- left: "right",
- right: "left",
- bottom: "top",
- top: "bottom"
- };
- return t.replace(/left|right|bottom|top/g, function (t) {
- return e[t]
- })
- }
-
- function A(t, e, i) {
- i = i.split("-")[0];
- var n = S(t),
- s = {
- width: n.width,
- height: n.height
- },
- o = -1 !== ["right", "left"].indexOf(i),
- r = o ? "top" : "left",
- a = o ? "left" : "top",
- l = o ? "height" : "width",
- c = o ? "width" : "height";
- return s[r] = e[r] + e[l] / 2 - n[l] / 2, s[a] = i === a ? e[a] - n[c] : e[D(a)], s
- }
-
- function E(t, e) {
- return Array.prototype.find ? t.find(e) : t.filter(e)[0]
- }
-
- function P(t, i, e) {
- return (void 0 === e ? t : t.slice(0, function (t, e, i) {
- if (Array.prototype.findIndex) return t.findIndex(function (t) {
- return t[e] === i
- });
- var n = E(t, function (t) {
- return t[e] === i
- });
- return t.indexOf(n)
- }(t, "name", e))).forEach(function (t) {
- t.function && console.warn("`modifier.function` is deprecated, use `modifier.fn`!");
- var e = t.function || t.fn;
- t.enabled && r(e) && (i.offsets.popper = k(i.offsets.popper), i.offsets.reference = k(i.offsets.reference), i = e(i, t))
- }), i
- }
-
- function t(t, i) {
- return t.some(function (t) {
- var e = t.name;
- return t.enabled && e === i
- })
- }
-
- function I(t) {
- for (var e = [!1, "ms", "Webkit", "Moz", "O"], i = t.charAt(0).toUpperCase() + t.slice(1), n = 0; n < e.length; n++) {
- var s = e[n],
- o = s ? "" + s + i : t;
- if (void 0 !== document.body.style[o]) return o
- }
- return null
- }
-
- function o(t) {
- var e = t.ownerDocument;
- return e ? e.defaultView : window
- }
-
- function e(t, e, i, n) {
- i.updateBound = n, o(t).addEventListener("resize", i.updateBound, {
- passive: !0
- });
- var s = f(t);
- return function t(e, i, n, s) {
- var o = "BODY" === e.nodeName,
- r = o ? e.ownerDocument.defaultView : e;
- r.addEventListener(i, n, {
- passive: !0
- }), o || t(f(r.parentNode), i, n, s), s.push(r)
- }(s, "scroll", i.updateBound, i.scrollParents), i.scrollElement = s, i.eventsEnabled = !0, i
- }
-
- function i() {
- this.state.eventsEnabled && (cancelAnimationFrame(this.scheduleUpdate), this.state = function (t, e) {
- return o(t).removeEventListener("resize", e.updateBound), e.scrollParents.forEach(function (t) {
- t.removeEventListener("scroll", e.updateBound)
- }), e.updateBound = null, e.scrollParents = [], e.scrollElement = null, e.eventsEnabled = !1, e
- }(this.reference, this.state))
- }
-
- function u(t) {
- return "" !== t && !isNaN(parseFloat(t)) && isFinite(t)
- }
-
- function O(i, n) {
- Object.keys(n).forEach(function (t) {
- var e = ""; - 1 !== ["width", "height", "top", "right", "bottom", "left"].indexOf(t) && u(n[t]) && (e = "px"), i.style[t] = n[t] + e
- })
- }
-
- function M(t, e, i) {
- var n = E(t, function (t) {
- return t.name === e
- }),
- s = !!n && t.some(function (t) {
- return t.name === i && t.enabled && t.order < n.order
- });
- if (!s) {
- var o = "`" + e + "`";
- console.warn("`" + i + "` modifier is required by " + o + " modifier in order to work, be sure to include it before " + o + "!")
- }
- return s
- }
-
- function n(t) {
- var e = 1 < arguments.length && void 0 !== arguments[1] && arguments[1],
- i = X.indexOf(t),
- n = X.slice(i + 1).concat(X.slice(0, i));
- return e ? n.reverse() : n
- }
-
- function N(t, s, o, e) {
- var r = [0, 0],
- a = -1 !== ["right", "left"].indexOf(e),
- i = t.split(/(\+|\-)/).map(function (t) {
- return t.trim()
- }),
- n = i.indexOf(E(i, function (t) {
- return -1 !== t.search(/,|\s/)
- }));
- i[n] && -1 === i[n].indexOf(",") && console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");
- var l = /\s*,\s*|\s+/,
- c = -1 === n ? [i] : [i.slice(0, n).concat([i[n].split(l)[0]]), [i[n].split(l)[1]].concat(i.slice(n + 1))];
- return (c = c.map(function (t, e) {
- var i = (1 === e ? !a : a) ? "height" : "width",
- n = !1;
- return t.reduce(function (t, e) {
- 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)
- }, []).map(function (t) {
- return function (t, e, i, n) {
- var s, o = t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),
- r = +o[1],
- a = o[2];
- if (!r) return t;
- 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;
- switch (a) {
- case "%p":
- s = i;
- break;
- case "%":
- case "%r":
- default:
- s = n
- }
- return k(s)[e] / 100 * r
- }(t, i, s, o)
- })
- })).forEach(function (i, n) {
- i.forEach(function (t, e) {
- u(t) && (r[n] += t * ("-" === i[e - 1] ? -1 : 1))
- })
- }), r
- }
-
- function L(t, e, i) {
- return e in t ? Object.defineProperty(t, e, {
- value: i,
- enumerable: !0,
- configurable: !0,
- writable: !0
- }) : t[e] = i, t
- }
- var H = Math.min,
- j = Math.floor,
- z = Math.round,
- W = Math.max,
- $ = "undefined" != typeof window && "undefined" != typeof document && "undefined" != typeof navigator,
- R = function () {
- for (var t = ["Edge", "Trident", "Firefox"], e = 0; e < t.length; e += 1)
- if ($ && 0 <= navigator.userAgent.indexOf(t[e])) return 1;
- return 0
- }(),
- F = $ && window.Promise ? function (t) {
- var e = !1;
- return function () {
- e || (e = !0, window.Promise.resolve().then(function () {
- e = !1, t()
- }))
- }
- } : function (t) {
- var e = !1;
- return function () {
- e || (e = !0, setTimeout(function () {
- e = !1, t()
- }, R))
- }
- },
- q = $ && !(!window.MSInputMethodContext || !document.documentMode),
- B = $ && /MSIE 10/.test(navigator.userAgent),
- U = function () {
- function n(t, e) {
- 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)
- }
- return function (t, e, i) {
- return e && n(t.prototype, e), i && n(t, i), t
- }
- }(),
- Y = Object.assign || function (t) {
- for (var e, i = 1; i < arguments.length; i++)
- for (var n in e = arguments[i]) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- return t
- },
- V = $ && /Firefox/i.test(navigator.userAgent),
- 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"],
- X = K.slice(3),
- Q = "flip",
- G = "clockwise",
- J = "counterclockwise",
- Z = function () {
- function o(t, e) {
- var i = this,
- n = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : {};
- (function (t, e) {
- if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function")
- })(this, o), this.scheduleUpdate = function () {
- return requestAnimationFrame(i.update)
- }, this.update = F(this.update.bind(this)), this.options = Y({}, o.Defaults, n), this.state = {
- isDestroyed: !1,
- isCreated: !1,
- scrollParents: []
- }, 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) {
- i.options.modifiers[t] = Y({}, o.Defaults.modifiers[t] || {}, n.modifiers ? n.modifiers[t] : {})
- }), this.modifiers = Object.keys(this.options.modifiers).map(function (t) {
- return Y({
- name: t
- }, i.options.modifiers[t])
- }).sort(function (t, e) {
- return t.order - e.order
- }), this.modifiers.forEach(function (t) {
- t.enabled && r(t.onLoad) && t.onLoad(i.reference, i.popper, i.options, t, i.state)
- }), this.update();
- var s = this.options.eventsEnabled;
- s && this.enableEventListeners(), this.state.eventsEnabled = s
- }
- return U(o, [{
- key: "update",
- value: function () {
- return function () {
- if (!this.state.isDestroyed) {
- var t = {
- instance: this,
- styles: {},
- arrowStyles: {},
- attributes: {},
- flipped: !1,
- offsets: {}
- };
- 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))
- }
- }.call(this)
- }
- }, {
- key: "destroy",
- value: function () {
- return function () {
- 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
- }.call(this)
- }
- }, {
- key: "enableEventListeners",
- value: function () {
- return function () {
- this.state.eventsEnabled || (this.state = e(this.reference, this.options, this.state, this.scheduleUpdate))
- }.call(this)
- }
- }, {
- key: "disableEventListeners",
- value: function () {
- return i.call(this)
- }
- }]), o
- }();
- return Z.Utils = ("undefined" == typeof window ? global : window).PopperUtils, Z.placements = K, Z.Defaults = {
- placement: "bottom",
- positionFixed: !1,
- eventsEnabled: !0,
- removeOnDestroy: !1,
- onCreate: function () {},
- onUpdate: function () {},
- modifiers: {
- shift: {
- order: 100,
- enabled: !0,
- fn: function (t) {
- var e = t.placement,
- i = e.split("-")[0],
- n = e.split("-")[1];
- if (n) {
- var s = t.offsets,
- o = s.reference,
- r = s.popper,
- a = -1 !== ["bottom", "top"].indexOf(i),
- l = a ? "left" : "top",
- c = a ? "width" : "height",
- u = {
- start: L({}, l, o[l]),
- end: L({}, l, o[l] + o[c] - r[c])
- };
- t.offsets.popper = Y({}, r, u[n])
- }
- return t
- }
- },
- offset: {
- order: 200,
- enabled: !0,
- fn: function (t, e) {
- var i, n = e.offset,
- s = t.placement,
- o = t.offsets,
- r = o.popper,
- a = o.reference,
- l = s.split("-")[0];
- 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
- },
- offset: 0
- },
- preventOverflow: {
- order: 300,
- enabled: !0,
- fn: function (t, n) {
- var e = n.boundariesElement || y(t.instance.popper);
- t.instance.reference === e && (e = y(e));
- var i = I("transform"),
- s = t.instance.popper.style,
- o = s.top,
- r = s.left,
- a = s[i];
- s.top = "", s.left = "", s[i] = "";
- var l = d(t.instance.popper, t.instance.reference, n.padding, e, t.positionFixed);
- s.top = o, s.left = r, s[i] = a, n.boundaries = l;
- var c = n.priority,
- u = t.offsets.popper,
- h = {
- primary: function (t) {
- var e = u[t];
- return u[t] < l[t] && !n.escapeWithReference && (e = W(u[t], l[t])), L({}, t, e)
- },
- secondary: function (t) {
- var e = "right" === t ? "left" : "top",
- i = u[e];
- return u[t] > l[t] && !n.escapeWithReference && (i = H(u[e], l[t] - ("right" === t ? u.width : u.height))), L({}, e, i)
- }
- };
- return c.forEach(function (t) {
- var e = -1 === ["left", "top"].indexOf(t) ? "secondary" : "primary";
- u = Y({}, u, h[e](t))
- }), t.offsets.popper = u, t
- },
- priority: ["left", "right", "top", "bottom"],
- padding: 5,
- boundariesElement: "scrollParent"
- },
- keepTogether: {
- order: 400,
- enabled: !0,
- fn: function (t) {
- var e = t.offsets,
- i = e.popper,
- n = e.reference,
- s = t.placement.split("-")[0],
- o = j,
- r = -1 !== ["top", "bottom"].indexOf(s),
- a = r ? "right" : "bottom",
- l = r ? "left" : "top",
- c = r ? "width" : "height";
- 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
- }
- },
- arrow: {
- order: 500,
- enabled: !0,
- fn: function (t, e) {
- var i;
- if (!M(t.instance.modifiers, "arrow", "keepTogether")) return t;
- var n = e.element;
- if ("string" == typeof n) {
- if (!(n = t.instance.popper.querySelector(n))) return t
- } else if (!t.instance.popper.contains(n)) return console.warn("WARNING: `arrow.element` must be child of its popper element!"), t;
- var s = t.placement.split("-")[0],
- o = t.offsets,
- r = o.popper,
- a = o.reference,
- l = -1 !== ["left", "right"].indexOf(s),
- c = l ? "height" : "width",
- u = l ? "Top" : "Left",
- h = u.toLowerCase(),
- d = l ? "left" : "top",
- p = l ? "bottom" : "right",
- f = S(n)[c];
- 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);
- var g = a[h] + a[c] / 2 - f / 2,
- m = b(t.instance.popper),
- v = parseFloat(m["margin" + u], 10),
- _ = parseFloat(m["border" + u + "Width"], 10),
- y = g - t.offsets.popper[h] - v - _;
- 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
- },
- element: "[x-arrow]"
- },
- flip: {
- order: 600,
- enabled: !0,
- fn: function (g, m) {
- if (t(g.instance.modifiers, "inner")) return g;
- if (g.flipped && g.placement === g.originalPlacement) return g;
- var v = d(g.instance.popper, g.instance.reference, m.padding, m.boundariesElement, g.positionFixed),
- _ = g.placement.split("-")[0],
- y = D(_),
- b = g.placement.split("-")[1] || "",
- w = [];
- switch (m.behavior) {
- case Q:
- w = [_, y];
- break;
- case G:
- w = n(_);
- break;
- case J:
- w = n(_, !0);
- break;
- default:
- w = m.behavior
- }
- return w.forEach(function (t, e) {
- if (_ !== t || w.length === e + 1) return g;
- _ = g.placement.split("-")[0], y = D(_);
- var i = g.offsets.popper,
- n = g.offsets.reference,
- s = j,
- 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),
- r = s(i.left) < s(v.left),
- a = s(i.right) > s(v.right),
- l = s(i.top) < s(v.top),
- c = s(i.bottom) > s(v.bottom),
- u = "left" === _ && r || "right" === _ && a || "top" === _ && l || "bottom" === _ && c,
- h = -1 !== ["top", "bottom"].indexOf(_),
- d = !!m.flipVariations && (h && "start" === b && r || h && "end" === b && a || !h && "start" === b && l || !h && "end" === b && c),
- p = !!m.flipVariationsByContent && (h && "start" === b && a || h && "end" === b && r || !h && "start" === b && c || !h && "end" === b && l),
- f = d || p;
- (o || u || f) && (g.flipped = !0, (o || u) && (_ = w[e + 1]), f && (b = function (t) {
- return "end" === t ? "start" : "start" === t ? "end" : t
- }(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"))
- }), g
- },
- behavior: "flip",
- padding: 5,
- boundariesElement: "viewport",
- flipVariations: !1,
- flipVariationsByContent: !1
- },
- inner: {
- order: 700,
- enabled: !1,
- fn: function (t) {
- var e = t.placement,
- i = e.split("-")[0],
- n = t.offsets,
- s = n.popper,
- o = n.reference,
- r = -1 !== ["left", "right"].indexOf(i),
- a = -1 === ["top", "left"].indexOf(i);
- return s[r ? "left" : "top"] = o[i] - (a ? s[r ? "width" : "height"] : 0), t.placement = D(e), t.offsets.popper = k(s), t
- }
- },
- hide: {
- order: 800,
- enabled: !0,
- fn: function (t) {
- if (!M(t.instance.modifiers, "hide", "preventOverflow")) return t;
- var e = t.offsets.reference,
- i = E(t.instance.modifiers, function (t) {
- return "preventOverflow" === t.name
- }).boundaries;
- if (e.bottom < i.top || e.left > i.right || e.top > i.bottom || e.right < i.left) {
- if (!0 === t.hide) return t;
- t.hide = !0, t.attributes["x-out-of-boundaries"] = ""
- } else {
- if (!1 === t.hide) return t;
- t.hide = !1, t.attributes["x-out-of-boundaries"] = !1
- }
- return t
- }
- },
- computeStyle: {
- order: 850,
- enabled: !0,
- fn: function (t, e) {
- var i = e.x,
- n = e.y,
- s = t.offsets.popper,
- o = E(t.instance.modifiers, function (t) {
- return "applyStyle" === t.name
- }).gpuAcceleration;
- void 0 !== o && console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");
- var r, a, l = void 0 === o ? e.gpuAcceleration : o,
- c = y(t.instance.popper),
- u = x(c),
- h = {
- position: s.position
- },
- d = function (t, e) {
- function i(t) {
- return t
- }
- var n = t.offsets,
- s = n.popper,
- o = n.reference,
- r = z,
- a = r(o.width),
- l = r(s.width),
- c = -1 !== ["left", "right"].indexOf(t.placement),
- u = -1 !== t.placement.indexOf("-"),
- h = e ? c || u || a % 2 == l % 2 ? r : j : i,
- d = e ? r : i;
- return {
- left: h(1 == a % 2 && 1 == l % 2 && !u && e ? s.left - 1 : s.left),
- top: d(s.top),
- bottom: d(s.bottom),
- right: h(s.right)
- }
- }(t, window.devicePixelRatio < 2 || !V),
- p = "bottom" === i ? "top" : "bottom",
- f = "right" === n ? "left" : "right",
- g = I("transform");
- 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";
- else {
- var m = "bottom" == p ? -1 : 1,
- v = "right" == f ? -1 : 1;
- h[p] = a * m, h[f] = r * v, h.willChange = p + ", " + f
- }
- var _ = {
- "x-placement": t.placement
- };
- return t.attributes = Y({}, _, t.attributes), t.styles = Y({}, h, t.styles), t.arrowStyles = Y({}, t.offsets.arrow, t.arrowStyles), t
- },
- gpuAcceleration: !0,
- x: "bottom",
- y: "right"
- },
- applyStyle: {
- order: 900,
- enabled: !0,
- fn: function (t) {
- return O(t.instance.popper, t.styles),
- function (e, i) {
- Object.keys(i).forEach(function (t) {
- !1 === i[t] ? e.removeAttribute(t) : e.setAttribute(t, i[t])
- })
- }(t.instance.popper, t.attributes), t.arrowElement && Object.keys(t.arrowStyles).length && O(t.arrowElement, t.arrowStyles), t
- },
- onLoad: function (t, e, i, n, s) {
- var o = c(s, e, t, i.positionFixed),
- r = a(i.placement, o, e, t, i.modifiers.flip.boundariesElement, i.modifiers.flip.padding);
- return e.setAttribute("x-placement", r), O(e, {
- position: i.positionFixed ? "fixed" : "absolute"
- }), i
- },
- gpuAcceleration: void 0
- }
- }
- }, Z
- }),
- function (t) {
- "function" == typeof define && define.amd ? define(["jquery"], t) : t(jQuery)
- }(function (S) {
- function t() {
- 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[""] = {
- closeText: "Done",
- prevText: "Prev",
- nextText: "Next",
- currentText: "Today",
- monthNames: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
- monthNamesShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
- dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
- dayNamesShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
- dayNamesMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
- weekHeader: "Wk",
- dateFormat: "mm/dd/yy",
- firstDay: 0,
- isRTL: !1,
- showMonthAfterYear: !1,
- yearSuffix: ""
- }, this._defaults = {
- showOn: "focus",
- showAnim: "fadeIn",
- showOptions: {},
- defaultDate: null,
- appendText: "",
- buttonText: "...",
- buttonImage: "",
- buttonImageOnly: !1,
- hideIfNoPrevNext: !1,
- navigationAsDateFormat: !1,
- gotoCurrent: !1,
- changeMonth: !1,
- changeYear: !1,
- yearRange: "c-10:c+10",
- showOtherMonths: !1,
- selectOtherMonths: !1,
- showWeek: !1,
- calculateWeek: this.iso8601Week,
- shortYearCutoff: "+10",
- minDate: null,
- maxDate: null,
- duration: "fast",
- beforeShowDay: null,
- beforeShow: null,
- onSelect: null,
- onChangeMonthYear: null,
- onClose: null,
- numberOfMonths: 1,
- showCurrentAtPos: 0,
- stepMonths: 1,
- stepBigMonths: 12,
- altField: "",
- altFormat: "",
- constrainInput: !0,
- showButtonPanel: !1,
- autoSize: !1,
- disabled: !1
- }, 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>"))
- }
-
- function i(t) {
- var e = "button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";
- return t.on("mouseout", e, function () {
- 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")
- }).on("mouseover", e, o)
- }
-
- function o() {
- 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"))
- }
-
- function h(t, e) {
- for (var i in S.extend(t, e), e) null == e[i] && (t[i] = e[i]);
- return t
- }
-
- function e(e) {
- return function () {
- var t = this.element.val();
- e.apply(this, arguments), this._refresh(), t !== this.element.val() && this._trigger("change")
- }
- }
- S.ui = S.ui || {}, S.ui.version = "1.12.1";
- var n, s, r = 0,
- a = Array.prototype.slice;
- S.cleanData = (s = S.cleanData, function (t) {
- var e, i, n;
- for (n = 0; null != (i = t[n]); n++) try {
- (e = S._data(i, "events")) && e.remove && S(i).triggerHandler("remove")
- } catch (t) {}
- s(t)
- }), S.widget = function (t, i, e) {
- var n, s, o, r = {},
- a = t.split(".")[0],
- l = a + "-" + (t = t.split(".")[1]);
- return e || (e = i, i = S.Widget), S.isArray(e) && (e = S.extend.apply(null, [{}].concat(e))), S.expr[":"][l.toLowerCase()] = function (t) {
- return !!S.data(t, l)
- }, S[a] = S[a] || {}, n = S[a][t], s = S[a][t] = function (t, e) {
- return this._createWidget ? void(arguments.length && this._createWidget(t, e)) : new s(t, e)
- }, S.extend(s, n, {
- version: e.version,
- _proto: S.extend({}, e),
- _childConstructors: []
- }), (o = new i).options = S.widget.extend({}, o.options), S.each(e, function (e, o) {
- return S.isFunction(o) ? void(r[e] = function () {
- function n() {
- return i.prototype[e].apply(this, arguments)
- }
-
- function s(t) {
- return i.prototype[e].apply(this, t)
- }
- return function () {
- var t, e = this._super,
- i = this._superApply;
- return this._super = n, this._superApply = s, t = o.apply(this, arguments), this._super = e, this._superApply = i, t
- }
- }()) : void(r[e] = o)
- }), s.prototype = S.widget.extend(o, {
- widgetEventPrefix: n && o.widgetEventPrefix || t
- }, r, {
- constructor: s,
- namespace: a,
- widgetName: t,
- widgetFullName: l
- }), n ? (S.each(n._childConstructors, function (t, e) {
- var i = e.prototype;
- S.widget(i.namespace + "." + i.widgetName, s, e._proto)
- }), delete n._childConstructors) : i._childConstructors.push(s), S.widget.bridge(t, s), s
- }, S.widget.extend = function (t) {
- for (var e, i, n = a.call(arguments, 1), s = 0, o = n.length; s < o; s++)
- 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);
- return t
- }, S.widget.bridge = function (o, e) {
- var r = e.prototype.widgetFullName || o;
- S.fn[o] = function (i) {
- var t = "string" == typeof i,
- n = a.call(arguments, 1),
- s = this;
- return t ? this.length || "instance" !== i ? this.each(function () {
- var t, e = S.data(this, r);
- 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 + "'")
- }) : s = void 0 : (n.length && (i = S.widget.extend.apply(null, [i].concat(n))), this.each(function () {
- var t = S.data(this, r);
- t ? (t.option(i || {}), t._init && t._init()) : S.data(this, r, new e(i, this))
- })), s
- }
- }, S.Widget = function () {}, S.Widget._childConstructors = [], S.Widget.prototype = {
- widgetName: "widget",
- widgetEventPrefix: "",
- defaultElement: "<div>",
- options: {
- classes: {},
- disabled: !1,
- create: null
- },
- _createWidget: function (t, e) {
- 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, {
- remove: function (t) {
- t.target === e && this.destroy()
- }
- }), 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()
- },
- _getCreateOptions: function () {
- return {}
- },
- _getCreateEventData: S.noop,
- _create: S.noop,
- _init: S.noop,
- destroy: function () {
- var i = this;
- this._destroy(), S.each(this.classesElementLookup, function (t, e) {
- i._removeClass(e, t)
- }), this.element.off(this.eventNamespace).removeData(this.widgetFullName), this.widget().off(this.eventNamespace).removeAttr("aria-disabled"), this.bindings.off(this.eventNamespace)
- },
- _destroy: S.noop,
- widget: function () {
- return this.element
- },
- option: function (t, e) {
- var i, n, s, o = t;
- if (0 === arguments.length) return S.widget.extend({}, this.options);
- if ("string" == typeof t)
- if (o = {}, t = (i = t.split(".")).shift(), i.length) {
- 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]];
- if (t = i.pop(), 1 === arguments.length) return void 0 === n[t] ? null : n[t];
- n[t] = e
- } else {
- if (1 === arguments.length) return void 0 === this.options[t] ? null : this.options[t];
- o[t] = e
- } return this._setOptions(o), this
- },
- _setOptions: function (t) {
- var e;
- for (e in t) this._setOption(e, t[e]);
- return this
- },
- _setOption: function (t, e) {
- return "classes" === t && this._setOptionClasses(e), this.options[t] = e, "disabled" === t && this._setOptionDisabled(e), this
- },
- _setOptionClasses: function (t) {
- var e, i, n;
- 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({
- element: i,
- keys: e,
- classes: t,
- add: !0
- })))
- },
- _setOptionDisabled: function (t) {
- 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"))
- },
- enable: function () {
- return this._setOptions({
- disabled: !1
- })
- },
- disable: function () {
- return this._setOptions({
- disabled: !0
- })
- },
- _classes: function (s) {
- function t(t, e) {
- var i, n;
- 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]])
- }
- var o = [],
- r = this;
- return s = S.extend({
- element: this.element,
- classes: this.options.classes || {}
- }, s), this._on(s.element, {
- remove: "_untrackClassesElement"
- }), s.keys && t(s.keys.match(/\S+/g) || [], !0), s.extra && t(s.extra.match(/\S+/g) || []), o.join(" ")
- },
- _untrackClassesElement: function (i) {
- var n = this;
- S.each(n.classesElementLookup, function (t, e) {
- -1 !== S.inArray(i.target, e) && (n.classesElementLookup[t] = S(e.not(i.target).get()))
- })
- },
- _removeClass: function (t, e, i) {
- return this._toggleClass(t, e, i, !1)
- },
- _addClass: function (t, e, i) {
- return this._toggleClass(t, e, i, !0)
- },
- _toggleClass: function (t, e, i, n) {
- n = "boolean" == typeof n ? n : i;
- var s = "string" == typeof t || null === t,
- o = {
- extra: s ? e : i,
- keys: s ? t : e,
- element: s ? this.element : t,
- add: n
- };
- return o.element.toggleClass(this._classes(o), n), this
- },
- _on: function (r, a, t) {
- var l, c = this;
- "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) {
- function i() {
- return r || !0 !== c.options.disabled && !S(this).hasClass("ui-state-disabled") ? ("string" == typeof e ? c[e] : e).apply(c, arguments) : void 0
- }
- "string" != typeof e && (i.guid = e.guid = e.guid || i.guid || S.guid++);
- var n = t.match(/^([\w:-]*)\s*(.*)$/),
- s = n[1] + c.eventNamespace,
- o = n[2];
- o ? l.on(s, o, i) : a.on(s, i)
- })
- },
- _off: function (t, e) {
- 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())
- },
- _delay: function (t, e) {
- var i = this;
- return setTimeout(function () {
- return ("string" == typeof t ? i[t] : t).apply(i, arguments)
- }, e || 0)
- },
- _hoverable: function (t) {
- this.hoverable = this.hoverable.add(t), this._on(t, {
- mouseenter: function (t) {
- this._addClass(S(t.currentTarget), null, "ui-state-hover")
- },
- mouseleave: function (t) {
- this._removeClass(S(t.currentTarget), null, "ui-state-hover")
- }
- })
- },
- _focusable: function (t) {
- this.focusable = this.focusable.add(t), this._on(t, {
- focusin: function (t) {
- this._addClass(S(t.currentTarget), null, "ui-state-focus")
- },
- focusout: function (t) {
- this._removeClass(S(t.currentTarget), null, "ui-state-focus")
- }
- })
- },
- _trigger: function (t, e, i) {
- var n, s, o = this.options[t];
- if (i = i || {}, (e = S.Event(e)).type = (t === this.widgetEventPrefix ? t : this.widgetEventPrefix + t).toLowerCase(), e.target = this.element[0], s = e.originalEvent)
- for (n in s) n in e || (e[n] = s[n]);
- return this.element.trigger(e, i), !(S.isFunction(o) && !1 === o.apply(this.element[0], [e].concat(i)) || e.isDefaultPrevented())
- }
- }, S.each({
- show: "fadeIn",
- hide: "fadeOut"
- }, function (o, r) {
- S.Widget.prototype["_" + o] = function (e, t, i) {
- "string" == typeof t && (t = {
- effect: t
- });
- var n, s = t ? !0 === t || "number" == typeof t ? r : t.effect || r : o;
- "number" == typeof (t = t || {}) && (t = {
- duration: t
- }), 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) {
- S(this)[o](), i && i.call(e[0]), t()
- })
- }
- }), S.widget,
- function () {
- function k(t, e, i) {
- return [parseFloat(t[0]) * (l.test(t[0]) ? e / 100 : 1), parseFloat(t[1]) * (l.test(t[1]) ? i / 100 : 1)]
- }
-
- function x(t, e) {
- return parseInt(S.css(t, e), 10) || 0
- }
- var s, C = Math.max,
- T = Math.abs,
- n = /left|center|right/,
- o = /top|center|bottom/,
- r = /[\+\-]\d+(\.[\d]+)?%?/,
- a = /^\w+/,
- l = /%$/,
- e = S.fn.position;
- S.position = {
- scrollbarWidth: function () {
- if (void 0 !== s) return s;
- 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>"),
- n = i.children()[0];
- 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
- },
- getScrollInfo: function (t) {
- var e = t.isWindow || t.isDocument ? "" : t.element.css("overflow-x"),
- i = t.isWindow || t.isDocument ? "" : t.element.css("overflow-y"),
- n = "scroll" === e || "auto" === e && t.width < t.element[0].scrollWidth;
- return {
- width: "scroll" === i || "auto" === i && t.height < t.element[0].scrollHeight ? S.position.scrollbarWidth() : 0,
- height: n ? S.position.scrollbarWidth() : 0
- }
- },
- getWithinInfo: function (t) {
- var e = S(t || window),
- i = S.isWindow(e[0]),
- n = !!e[0] && 9 === e[0].nodeType;
- return {
- element: e,
- isWindow: i,
- isDocument: n,
- offset: !i && !n ? S(t).offset() : {
- left: 0,
- top: 0
- },
- scrollLeft: e.scrollLeft(),
- scrollTop: e.scrollTop(),
- width: e.outerWidth(),
- height: e.outerHeight()
- }
- }
- }, S.fn.position = function (h) {
- if (!h || !h.of) return e.apply(this, arguments);
- h = S.extend({}, h);
- var d, p, f, g, m, t, v = S(h.of),
- _ = S.position.getWithinInfo(h.within),
- y = S.position.getScrollInfo(_),
- b = (h.collision || "flip").split(" "),
- w = {};
- return t = function (t) {
- var e = t[0];
- return 9 === e.nodeType ? {
- width: t.width(),
- height: t.height(),
- offset: {
- top: 0,
- left: 0
- }
- } : S.isWindow(e) ? {
- width: t.width(),
- height: t.height(),
- offset: {
- top: t.scrollTop(),
- left: t.scrollLeft()
- }
- } : e.preventDefault ? {
- width: 0,
- height: 0,
- offset: {
- top: e.pageY,
- left: e.pageX
- }
- } : {
- width: t.outerWidth(),
- height: t.outerHeight(),
- offset: t.offset()
- }
- }(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 () {
- var t, e, i = (h[this] || "").split(" ");
- 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]]
- }), 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 () {
- var i, t, r = S(this),
- a = r.outerWidth(),
- l = r.outerHeight(),
- e = x(this, "marginLeft"),
- n = x(this, "marginTop"),
- s = a + e + x(this, "marginRight") + y.width,
- o = l + n + x(this, "marginBottom") + y.height,
- c = S.extend({}, m),
- u = k(w.my, r.outerWidth(), r.outerHeight());
- "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 = {
- marginLeft: e,
- marginTop: n
- }, S.each(["left", "top"], function (t, e) {
- S.ui.position[b[t]] && S.ui.position[b[t]][e](c, {
- targetWidth: p,
- targetHeight: f,
- elemWidth: a,
- elemHeight: l,
- collisionPosition: i,
- collisionWidth: s,
- collisionHeight: o,
- offset: [d[0] + u[0], d[1] + u[1]],
- my: h.my,
- at: h.at,
- within: _,
- elem: r
- })
- }), h.using && (t = function (t) {
- var e = g.left - c.left,
- i = e + p - a,
- n = g.top - c.top,
- s = n + f - l,
- o = {
- target: {
- element: v,
- left: g.left,
- top: g.top,
- width: p,
- height: f
- },
- element: {
- element: r,
- left: c.left,
- top: c.top,
- width: a,
- height: l
- },
- horizontal: i < 0 ? "left" : 0 < e ? "right" : "center",
- vertical: s < 0 ? "top" : 0 < n ? "bottom" : "middle"
- };
- 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)
- }), r.offset(S.extend(c, {
- using: t
- }))
- })
- }, S.ui.position = {
- fit: {
- left: function (t, e) {
- var i, n = e.within,
- s = n.isWindow ? n.scrollLeft : n.offset.left,
- o = n.width,
- r = t.left - e.collisionPosition.marginLeft,
- a = s - r,
- l = r + e.collisionWidth - o - s;
- 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)
- },
- top: function (t, e) {
- var i, n = e.within,
- s = n.isWindow ? n.scrollTop : n.offset.top,
- o = e.within.height,
- r = t.top - e.collisionPosition.marginTop,
- a = s - r,
- l = r + e.collisionHeight - o - s;
- 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)
- }
- },
- flip: {
- left: function (t, e) {
- var i, n, s = e.within,
- o = s.offset.left + s.scrollLeft,
- r = s.width,
- a = s.isWindow ? s.scrollLeft : s.offset.left,
- l = t.left - e.collisionPosition.marginLeft,
- c = l - a,
- u = l + e.collisionWidth - r - a,
- h = "left" === e.my[0] ? -e.elemWidth : "right" === e.my[0] ? e.elemWidth : 0,
- d = "left" === e.at[0] ? e.targetWidth : "right" === e.at[0] ? -e.targetWidth : 0,
- p = -2 * e.offset[0];
- 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))
- },
- top: function (t, e) {
- var i, n, s = e.within,
- o = s.offset.top + s.scrollTop,
- r = s.height,
- a = s.isWindow ? s.scrollTop : s.offset.top,
- l = t.top - e.collisionPosition.marginTop,
- c = l - a,
- u = l + e.collisionHeight - r - a,
- h = "top" === e.my[1] ? -e.elemHeight : "bottom" === e.my[1] ? e.elemHeight : 0,
- d = "top" === e.at[1] ? e.targetHeight : "bottom" === e.at[1] ? -e.targetHeight : 0,
- p = -2 * e.offset[1];
- 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))
- }
- },
- flipfit: {
- left: function () {
- S.ui.position.flip.left.apply(this, arguments), S.ui.position.fit.left.apply(this, arguments)
- },
- top: function () {
- S.ui.position.flip.top.apply(this, arguments), S.ui.position.fit.top.apply(this, arguments)
- }
- }
- }
- }(), S.ui.position, S.extend(S.expr[":"], {
- data: S.expr.createPseudo ? S.expr.createPseudo(function (e) {
- return function (t) {
- return !!S.data(t, e)
- }
- }) : function (t, e, i) {
- return !!S.data(t, i[3])
- }
- }), S.fn.extend({
- disableSelection: (n = "onselectstart" in document.createElement("div") ? "selectstart" : "mousedown", function () {
- return this.on(n + ".ui-disableSelection", function (t) {
- t.preventDefault()
- })
- }),
- enableSelection: function () {
- return this.off(".ui-disableSelection")
- }
- });
- var l, c = "ui-effects-",
- d = "ui-effects-style",
- p = "ui-effects-animated",
- u = S;
- S.effects = {
- effect: {}
- },
- function (u, h) {
- function d(t, e, i) {
- var n = m[e.type] || {};
- 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)
- }
-
- function a(r) {
- var a = f(),
- l = a._rgba = [];
- return r = r.toLowerCase(), v(t, function (t, e) {
- var i, n = e.re.exec(r),
- s = n && e.parse(n),
- o = e.space || "rgba";
- return s ? (i = a[o](s), a[g[o].cache] = i[g[o].cache], l = a._rgba = i._rgba, !1) : h
- }), l.length ? ("0,0,0,0" === l.join() && u.extend(l, c.transparent), a) : c[r]
- }
-
- function l(t, e, i) {
- 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
- }
- var c, p = /^([\-+])=\s*(\d+\.?\d*)/,
- t = [{
- re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
- parse: function (t) {
- return [t[1], t[2], t[3], t[4]]
- }
- }, {
- re: /rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
- parse: function (t) {
- return [2.55 * t[1], 2.55 * t[2], 2.55 * t[3], t[4]]
- }
- }, {
- re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,
- parse: function (t) {
- return [parseInt(t[1], 16), parseInt(t[2], 16), parseInt(t[3], 16)]
- }
- }, {
- re: /#([a-f0-9])([a-f0-9])([a-f0-9])/,
- parse: function (t) {
- return [parseInt(t[1] + t[1], 16), parseInt(t[2] + t[2], 16), parseInt(t[3] + t[3], 16)]
- }
- }, {
- re: /hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
- space: "hsla",
- parse: function (t) {
- return [t[1], t[2] / 100, t[3] / 100, t[4]]
- }
- }],
- f = u.Color = function (t, e, i, n) {
- return new u.Color.fn.parse(t, e, i, n)
- },
- g = {
- rgba: {
- props: {
- red: {
- idx: 0,
- type: "byte"
- },
- green: {
- idx: 1,
- type: "byte"
- },
- blue: {
- idx: 2,
- type: "byte"
- }
- }
- },
- hsla: {
- props: {
- hue: {
- idx: 0,
- type: "degrees"
- },
- saturation: {
- idx: 1,
- type: "percent"
- },
- lightness: {
- idx: 2,
- type: "percent"
- }
- }
- }
- },
- m = {
- byte: {
- floor: !0,
- max: 255
- },
- percent: {
- max: 1
- },
- degrees: {
- mod: 360,
- floor: !0
- }
- },
- r = f.support = {},
- e = u("<p>")[0],
- v = u.each;
- e.style.cssText = "background-color:rgba(1,1,1,.5)", r.rgba = -1 < e.style.backgroundColor.indexOf("rgba"), v(g, function (t, e) {
- e.cache = "_" + t, e.props.alpha = {
- idx: 3,
- type: "percent",
- def: 1
- }
- }), f.fn = u.extend(f.prototype, {
- parse: function (s, t, e, i) {
- if (s === h) return this._rgba = [null, null, null, null], this;
- (s.jquery || s.nodeType) && (s = u(s).css(t), t = h);
- var o = this,
- n = u.type(s),
- r = this._rgba = [];
- 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) {
- r[e.idx] = d(s[e.idx], e)
- }), this) : "object" === n ? (v(g, s instanceof f ? function (t, e) {
- s[e.cache] && (o[e.cache] = s[e.cache].slice())
- } : function (t, i) {
- var n = i.cache;
- v(i.props, function (t, e) {
- if (!o[n] && i.to) {
- if ("alpha" === t || null == s[t]) return;
- o[n] = i.to(o._rgba)
- }
- o[n][e.idx] = d(s[t], e, !0)
- }), o[n] && u.inArray(null, o[n].slice(0, 3)) < 0 && (o[n][3] = 1, i.from && (o._rgba = i.from(o[n])))
- }), this) : h
- },
- is: function (t) {
- var s = f(t),
- o = !0,
- r = this;
- return v(g, function (t, e) {
- var i, n = s[e.cache];
- return n && (i = r[e.cache] || e.to && e.to(r._rgba) || [], v(e.props, function (t, e) {
- return null != n[e.idx] ? o = n[e.idx] === i[e.idx] : h
- })), o
- }), o
- },
- _space: function () {
- var i = [],
- n = this;
- return v(g, function (t, e) {
- n[e.cache] && i.push(t)
- }), i.pop()
- },
- transition: function (t, r) {
- var a = f(t),
- e = a._space(),
- i = g[e],
- n = 0 === this.alpha() ? f("transparent") : this,
- l = n[i.cache] || i.to(n._rgba),
- c = l.slice();
- return a = a[i.cache], v(i.props, function (t, e) {
- var i = e.idx,
- n = l[i],
- s = a[i],
- o = m[e.type] || {};
- 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)))
- }), this[e](c)
- },
- blend: function (t) {
- if (1 === this._rgba[3]) return this;
- var e = this._rgba.slice(),
- i = e.pop(),
- n = f(t)._rgba;
- return f(u.map(e, function (t, e) {
- return (1 - i) * n[e] + i * t
- }))
- },
- toRgbaString: function () {
- var t = "rgba(",
- e = u.map(this._rgba, function (t, e) {
- return null == t ? 2 < e ? 1 : 0 : t
- });
- return 1 === e[3] && (e.pop(), t = "rgb("), t + e.join() + ")"
- },
- toHslaString: function () {
- var t = "hsla(",
- e = u.map(this.hsla(), function (t, e) {
- return null == t && (t = 2 < e ? 1 : 0), e && e < 3 && (t = Math.round(100 * t) + "%"), t
- });
- return 1 === e[3] && (e.pop(), t = "hsl("), t + e.join() + ")"
- },
- toHexString: function (t) {
- var e = this._rgba.slice(),
- i = e.pop();
- return t && e.push(~~(255 * i)), "#" + u.map(e, function (t) {
- return 1 === (t = (t || 0).toString(16)).length ? "0" + t : t
- }).join("")
- },
- toString: function () {
- return 0 === this._rgba[3] ? "transparent" : this.toRgbaString()
- }
- }), f.fn.parse.prototype = f.fn, g.hsla.to = function (t) {
- if (null == t[0] || null == t[1] || null == t[2]) return [null, null, null, t[3]];
- var e, i, n = t[0] / 255,
- s = t[1] / 255,
- o = t[2] / 255,
- r = t[3],
- a = Math.max(n, s, o),
- l = Math.min(n, s, o),
- c = a - l,
- u = a + l,
- h = .5 * u;
- 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]
- }, g.hsla.from = function (t) {
- if (null == t[0] || null == t[1] || null == t[2]) return [null, null, null, t[3]];
- var e = t[0] / 360,
- i = t[1],
- n = t[2],
- s = t[3],
- o = n <= .5 ? n * (1 + i) : n + i - n * i,
- r = 2 * n - o;
- 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]
- }, v(g, function (l, t) {
- var i = t.props,
- r = t.cache,
- a = t.to,
- c = t.from;
- f.fn[l] = function (t) {
- if (a && !this[r] && (this[r] = a(this._rgba)), t === h) return this[r].slice();
- var e, n = u.type(t),
- s = "array" === n || "object" === n ? t : arguments,
- o = this[r].slice();
- return v(i, function (t, e) {
- var i = s["object" === n ? t : e.idx];
- null == i && (i = o[e.idx]), o[e.idx] = d(i, e)
- }), c ? ((e = f(c(o)))[r] = o, e) : f(o)
- }, v(i, function (r, a) {
- f.fn[r] || (f.fn[r] = function (t) {
- var e, i = u.type(t),
- n = "alpha" === r ? this._hsla ? "hsla" : "rgba" : l,
- s = this[n](),
- o = s[a.idx];
- 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)))
- })
- })
- }), f.hook = function (t) {
- var e = t.split(" ");
- v(e, function (t, o) {
- u.cssHooks[o] = {
- set: function (t, e) {
- var i, n, s = "";
- if ("transparent" !== e && ("string" !== u.type(e) || (i = a(e)))) {
- if (e = f(i || e), !r.rgba && 1 !== e._rgba[3]) {
- for (n = "backgroundColor" === o ? t.parentNode : t;
- ("" === s || "transparent" === s) && n && n.style;) try {
- s = u.css(n, "backgroundColor"), n = n.parentNode
- } catch (t) {}
- e = e.blend(s && "transparent" !== s ? s : "_default")
- }
- e = e.toRgbaString()
- }
- try {
- t.style[o] = e
- } catch (t) {}
- }
- }, u.fx.step[o] = function (t) {
- 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))
- }
- })
- }, f.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"), u.cssHooks.borderColor = {
- expand: function (i) {
- var n = {};
- return v(["Top", "Right", "Bottom", "Left"], function (t, e) {
- n["border" + e + "Color"] = i
- }), n
- }
- }, c = u.Color.names = {
- aqua: "#00ffff",
- black: "#000000",
- blue: "#0000ff",
- fuchsia: "#ff00ff",
- gray: "#808080",
- green: "#008000",
- lime: "#00ff00",
- maroon: "#800000",
- navy: "#000080",
- olive: "#808000",
- purple: "#800080",
- red: "#ff0000",
- silver: "#c0c0c0",
- teal: "#008080",
- white: "#ffffff",
- yellow: "#ffff00",
- transparent: [null, null, null, 0],
- _default: "#ffffff"
- }
- }(u),
- function () {
- function r(t) {
- var e, i, n = t.ownerDocument.defaultView ? t.ownerDocument.defaultView.getComputedStyle(t, null) : t.currentStyle,
- s = {};
- if (n && n.length && n[0] && n[n[0]])
- for (i = n.length; i--;) "string" == typeof n[e = n[i]] && (s[S.camelCase(e)] = n[e]);
- else
- for (e in n) "string" == typeof n[e] && (s[e] = n[e]);
- return s
- }
- var o, s, a, l = ["add", "remove", "toggle"],
- c = {
- border: 1,
- borderBottom: 1,
- borderColor: 1,
- borderLeft: 1,
- borderRight: 1,
- borderTop: 1,
- borderWidth: 1,
- margin: 1,
- padding: 1
- };
- S.each(["borderLeftStyle", "borderRightStyle", "borderBottomStyle", "borderTopStyle"], function (t, e) {
- S.fx.step[e] = function (t) {
- ("none" !== t.end && !t.setAttr || 1 === t.pos && !t.setAttr) && (u.style(t.elem, e, t.end), t.setAttr = !0)
- }
- }), S.fn.addBack || (S.fn.addBack = function (t) {
- return this.add(null == t ? this.prevObject : this.prevObject.filter(t))
- }), S.effects.animateClass = function (s, t, e, i) {
- var o = S.speed(t, e, i);
- return this.queue(function () {
- var t, i = S(this),
- e = i.attr("class") || "",
- n = o.children ? i.find("*").addBack() : i;
- n = n.map(function () {
- return {
- el: S(this),
- start: r(this)
- }
- }), (t = function () {
- S.each(l, function (t, e) {
- s[e] && i[e + "Class"](s[e])
- })
- })(), n = n.map(function () {
- return this.end = r(this.el[0]), this.diff = function (t, e) {
- var i, n, s = {};
- for (i in e) n = e[i], t[i] !== n && (c[i] || (S.fx.step[i] || !isNaN(parseFloat(n))) && (s[i] = n));
- return s
- }(this.start, this.end), this
- }), i.attr("class", e), n = n.map(function () {
- var t = this,
- e = S.Deferred(),
- i = S.extend({}, o, {
- queue: !1,
- complete: function () {
- e.resolve(t)
- }
- });
- return this.el.animate(this.diff, i), e.promise()
- }), S.when.apply(S, n.get()).done(function () {
- t(), S.each(arguments, function () {
- var e = this.el;
- S.each(this.diff, function (t) {
- e.css(t, "")
- })
- }), o.complete.call(i[0])
- })
- })
- }, S.fn.extend({
- addClass: (a = S.fn.addClass, function (t, e, i, n) {
- return e ? S.effects.animateClass.call(this, {
- add: t
- }, e, i, n) : a.apply(this, arguments)
- }),
- removeClass: (s = S.fn.removeClass, function (t, e, i, n) {
- return 1 < arguments.length ? S.effects.animateClass.call(this, {
- remove: t
- }, e, i, n) : s.apply(this, arguments)
- }),
- toggleClass: (o = S.fn.toggleClass, function (t, e, i, n, s) {
- return "boolean" == typeof e || void 0 === e ? i ? S.effects.animateClass.call(this, e ? {
- add: t
- } : {
- remove: t
- }, i, n, s) : o.apply(this, arguments) : S.effects.animateClass.call(this, {
- toggle: t
- }, e, i, n)
- }),
- switchClass: function (t, e, i, n, s) {
- return S.effects.animateClass.call(this, {
- add: e,
- remove: t
- }, i, n, s)
- }
- })
- }(),
- function () {
- function u(t, e, i, n) {
- return S.isPlainObject(t) && (t = (e = t).effect), t = {
- effect: t
- }, 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
- }
-
- function i(t) {
- return !(t && "number" != typeof t && !S.fx.speeds[t]) || ("string" == typeof t && !S.effects.effect[t] || (!!S.isFunction(t) || "object" == _typeof(t) && !t.effect))
- }
-
- function e(t, e) {
- var i = e.outerWidth(),
- n = e.outerHeight(),
- 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];
- return {
- top: parseFloat(s[1]) || 0,
- right: "auto" === s[2] ? i : parseFloat(s[2]),
- bottom: "auto" === s[3] ? n : parseFloat(s[3]),
- left: parseFloat(s[4]) || 0
- }
- }
- var n, s, o, r;
- S.expr && S.expr.filters && S.expr.filters.animated && (S.expr.filters.animated = (r = S.expr.filters.animated, function (t) {
- return !!S(t).data(p) || r(t)
- })), !1 !== S.uiBackCompat && S.extend(S.effects, {
- save: function (t, e) {
- for (var i = 0, n = e.length; i < n; i++) null !== e[i] && t.data(c + e[i], t[0].style[e[i]])
- },
- restore: function (t, e) {
- 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))
- },
- setMode: function (t, e) {
- return "toggle" === e && (e = t.is(":hidden") ? "show" : "hide"), e
- },
- createWrapper: function (i) {
- if (i.parent().is(".ui-effects-wrapper")) return i.parent();
- var n = {
- width: i.outerWidth(!0),
- height: i.outerHeight(!0),
- float: i.css("float")
- },
- t = S("<div></div>").addClass("ui-effects-wrapper").css({
- fontSize: "100%",
- background: "transparent",
- border: "none",
- margin: 0,
- padding: 0
- }),
- e = {
- width: i.width(),
- height: i.height()
- },
- s = document.activeElement;
- try {
- s.id
- } catch (t) {
- s = document.body
- }
- 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({
- position: "relative"
- }), i.css({
- position: "relative"
- })) : (S.extend(n, {
- position: i.css("position"),
- zIndex: i.css("z-index")
- }), S.each(["top", "left", "bottom", "right"], function (t, e) {
- n[e] = i.css(e), isNaN(parseInt(n[e], 10)) && (n[e] = "auto")
- }), i.css({
- position: "relative",
- top: 0,
- left: 0,
- right: "auto",
- bottom: "auto"
- })), i.css(e), t.css(n).show()
- },
- removeWrapper: function (t) {
- var e = document.activeElement;
- return t.parent().is(".ui-effects-wrapper") && (t.parent().replaceWith(t), (t[0] === e || S.contains(t[0], e)) && S(e).trigger("focus")), t
- }
- }), S.extend(S.effects, {
- version: "1.12.1",
- define: function (t, e, i) {
- return i || (i = e, e = "effect"), S.effects.effect[t] = i, S.effects.effect[t].mode = e, i
- },
- scaledDimensions: function (t, e, i) {
- if (0 === e) return {
- height: 0,
- width: 0,
- outerHeight: 0,
- outerWidth: 0
- };
- var n = "horizontal" !== i ? (e || 100) / 100 : 1,
- s = "vertical" !== i ? (e || 100) / 100 : 1;
- return {
- height: t.height() * s,
- width: t.width() * n,
- outerHeight: t.outerHeight() * s,
- outerWidth: t.outerWidth() * n
- }
- },
- clipToBox: function (t) {
- return {
- width: t.clip.right - t.clip.left,
- height: t.clip.bottom - t.clip.top,
- left: t.clip.left,
- top: t.clip.top
- }
- },
- unshift: function (t, e, i) {
- var n = t.queue();
- 1 < e && n.splice.apply(n, [1, 0].concat(n.splice(e, i))), t.dequeue()
- },
- saveStyle: function (t) {
- t.data(d, t[0].style.cssText)
- },
- restoreStyle: function (t) {
- t[0].style.cssText = t.data(d) || "", t.removeData(d)
- },
- mode: function (t, e) {
- var i = t.is(":hidden");
- return "toggle" === e && (e = i ? "show" : "hide"), (i ? "hide" === e : "show" === e) && (e = "none"), e
- },
- getBaseline: function (t, e) {
- var i, n;
- switch (t[0]) {
- case "top":
- i = 0;
- break;
- case "middle":
- i = .5;
- break;
- case "bottom":
- i = 1;
- break;
- default:
- i = t[0] / e.height
- }
- switch (t[1]) {
- case "left":
- n = 0;
- break;
- case "center":
- n = .5;
- break;
- case "right":
- n = 1;
- break;
- default:
- n = t[1] / e.width
- }
- return {
- x: n,
- y: i
- }
- },
- createPlaceholder: function (t) {
- var e, i = t.css("position"),
- n = t.position();
- return t.css({
- marginTop: t.css("marginTop"),
- marginBottom: t.css("marginBottom"),
- marginLeft: t.css("marginLeft"),
- marginRight: t.css("marginRight")
- }).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()), /^(static|relative)/.test(i) && (i = "absolute", e = S("<" + t[0].nodeName + ">").insertAfter(t).css({
- display: /^(inline|ruby)/.test(t.css("display")) ? "inline-block" : "block",
- visibility: "hidden",
- marginTop: t.css("marginTop"),
- marginBottom: t.css("marginBottom"),
- marginLeft: t.css("marginLeft"),
- marginRight: t.css("marginRight"),
- float: t.css("float")
- }).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"), t.data(c + "placeholder", e)), t.css({
- position: i,
- left: n.left,
- top: n.top
- }), e
- },
- removePlaceholder: function (t) {
- var e = c + "placeholder",
- i = t.data(e);
- i && (i.remove(), t.removeData(e))
- },
- cleanUp: function (t) {
- S.effects.restoreStyle(t), S.effects.removePlaceholder(t)
- },
- setTransition: function (n, t, s, o) {
- return o = o || {}, S.each(t, function (t, e) {
- var i = n.cssUnit(e);
- 0 < i[0] && (o[e] = i[0] * s + i[1])
- }), o
- }
- }), S.fn.extend({
- effect: function () {
- function t(t) {
- function e() {
- S.isFunction(a) && a.call(i[0]), S.isFunction(t) && t()
- }
- var i = S(this);
- n.mode = c.shift(), !1 === S.uiBackCompat || o ? "none" === n.mode ? (i[l](), e()) : s.call(i[0], n, function () {
- i.removeData(p), S.effects.cleanUp(i), "hide" === n.mode && i.hide(), e()
- }) : (i.is(":hidden") ? "hide" === l : "show" === l) ? (i[l](), e()) : s.call(i[0], n, e)
- }
-
- function e(t) {
- var e = S(this),
- i = S.effects.mode(e, l) || o;
- 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()
- }
- var n = u.apply(this, arguments),
- s = S.effects.effect[n.effect],
- o = s.mode,
- i = n.queue,
- r = i || "fx",
- a = n.complete,
- l = n.mode,
- c = [];
- return S.fx.off || !s ? l ? this[l](n.duration, a) : this.each(function () {
- a && a.call(this)
- }) : !1 === i ? this.each(e).each(t) : this.queue(r, e).queue(r, t)
- },
- show: (o = S.fn.show, function (t) {
- if (i(t)) return o.apply(this, arguments);
- var e = u.apply(this, arguments);
- return e.mode = "show", this.effect.call(this, e)
- }),
- hide: (s = S.fn.hide, function (t) {
- if (i(t)) return s.apply(this, arguments);
- var e = u.apply(this, arguments);
- return e.mode = "hide", this.effect.call(this, e)
- }),
- toggle: (n = S.fn.toggle, function (t) {
- if (i(t) || "boolean" == typeof t) return n.apply(this, arguments);
- var e = u.apply(this, arguments);
- return e.mode = "toggle", this.effect.call(this, e)
- }),
- cssUnit: function (t) {
- var i = this.css(t),
- n = [];
- return S.each(["em", "px", "%", "pt"], function (t, e) {
- 0 < i.indexOf(e) && (n = [parseFloat(i), e])
- }), n
- },
- cssClip: function (t) {
- return t ? this.css("clip", "rect(" + t.top + "px " + t.right + "px " + t.bottom + "px " + t.left + "px)") : e(this.css("clip"), this)
- },
- transfer: function (t, e) {
- var i = S(this),
- n = S(t.to),
- s = "fixed" === n.css("position"),
- o = S("body"),
- r = s ? o.scrollTop() : 0,
- a = s ? o.scrollLeft() : 0,
- l = n.offset(),
- c = {
- top: l.top - r,
- left: l.left - a,
- height: n.innerHeight(),
- width: n.innerWidth()
- },
- u = i.offset(),
- h = S("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(t.className).css({
- top: u.top - r,
- left: u.left - a,
- height: i.innerHeight(),
- width: i.innerWidth(),
- position: s ? "fixed" : "absolute"
- }).animate(c, t.duration, t.easing, function () {
- h.remove(), S.isFunction(e) && e()
- })
- }
- }), S.fx.step.clip = function (t) {
- 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({
- top: t.pos * (t.end.top - t.start.top) + t.start.top,
- right: t.pos * (t.end.right - t.start.right) + t.start.right,
- bottom: t.pos * (t.end.bottom - t.start.bottom) + t.start.bottom,
- left: t.pos * (t.end.left - t.start.left) + t.start.left
- })
- }
- }(), l = {}, S.each(["Quad", "Cubic", "Quart", "Quint", "Expo"], function (e, t) {
- l[t] = function (t) {
- return Math.pow(t, e + 2)
- }
- }), S.extend(l, {
- Sine: function (t) {
- return 1 - Math.cos(t * Math.PI / 2)
- },
- Circ: function (t) {
- return 1 - Math.sqrt(1 - t * t)
- },
- Elastic: function (t) {
- return 0 === t || 1 === t ? t : -Math.pow(2, 8 * (t - 1)) * Math.sin((80 * (t - 1) - 7.5) * Math.PI / 15)
- },
- Back: function (t) {
- return t * t * (3 * t - 2)
- },
- Bounce: function (t) {
- for (var e, i = 4;
- ((e = Math.pow(2, --i)) - 1) / 11 > t;);
- return 1 / Math.pow(4, 3 - i) - 7.5625 * Math.pow((3 * e - 2) / 22 - t, 2)
- }
- }), S.each(l, function (t, e) {
- S.easing["easeIn" + t] = e, S.easing["easeOut" + t] = function (t) {
- return 1 - e(1 - t)
- }, S.easing["easeInOut" + t] = function (t) {
- return t < .5 ? e(2 * t) / 2 : 1 - e(-2 * t + 2) / 2
- }
- });
- var f, g;
- S.effects;
- S.effects.define("blind", "hide", function (t, e) {
- var i = {
- up: ["bottom", "top"],
- vertical: ["bottom", "top"],
- down: ["top", "bottom"],
- left: ["right", "left"],
- horizontal: ["right", "left"],
- right: ["left", "right"]
- },
- n = S(this),
- s = t.direction || "up",
- o = n.cssClip(),
- r = {
- clip: S.extend({}, o)
- },
- a = S.effects.createPlaceholder(n);
- 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, {
- queue: !1,
- duration: t.duration,
- easing: t.easing,
- complete: e
- })
- }), S.effects.define("bounce", function (t, e) {
- var i, n, s, o = S(this),
- r = t.mode,
- a = "hide" === r,
- l = "show" === r,
- c = t.direction || "up",
- u = t.distance,
- h = t.times || 5,
- d = 2 * h + (l || a ? 1 : 0),
- p = t.duration / d,
- f = t.easing,
- g = "up" === c || "down" === c ? "top" : "left",
- m = "up" === c || "left" === c,
- v = 0,
- _ = o.queue().length;
- for (S.effects.createPlaceholder(o), s = o.css(g), u || (u = o["top" == g ? "outerHeight" : "outerWidth"]() / 3), l && ((n = {
- opacity: 1
- })[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;
- a && ((i = {
- opacity: 0
- })[g] = (m ? "-=" : "+=") + u, o.animate(i, p, f)), o.queue(e), S.effects.unshift(o, _, 1 + d)
- }), S.effects.define("clip", "hide", function (t, e) {
- var i, n = {},
- s = S(this),
- o = t.direction || "vertical",
- r = "both" === o,
- a = r || "horizontal" === o,
- l = r || "vertical" === o;
- i = s.cssClip(), n.clip = {
- top: l ? (i.bottom - i.top) / 2 : i.top,
- right: a ? (i.right - i.left) / 2 : i.right,
- bottom: l ? (i.bottom - i.top) / 2 : i.bottom,
- left: a ? (i.right - i.left) / 2 : i.left
- }, S.effects.createPlaceholder(s), "show" === t.mode && (s.cssClip(n.clip), n.clip = i), s.animate(n, {
- queue: !1,
- duration: t.duration,
- easing: t.easing,
- complete: e
- })
- }), S.effects.define("drop", "hide", function (t, e) {
- var i, n = S(this),
- s = "show" === t.mode,
- o = t.direction || "left",
- r = "up" === o || "down" === o ? "top" : "left",
- a = "up" === o || "left" === o ? "-=" : "+=",
- l = "+=" == a ? "-=" : "+=",
- c = {
- opacity: 0
- };
- 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, {
- queue: !1,
- duration: t.duration,
- easing: t.easing,
- complete: e
- })
- }), S.effects.define("explode", "hide", function (t, e) {
- function i() {
- m.push(this), m.length === c * u && (h.css({
- visibility: "visible"
- }), S(m).remove(), e())
- }
- var n, s, o, r, a, l, c = t.pieces ? Math.round(Math.sqrt(t.pieces)) : 3,
- u = c,
- h = S(this),
- d = "show" === t.mode,
- p = h.show().css("visibility", "hidden").offset(),
- f = Math.ceil(h.outerWidth() / u),
- g = Math.ceil(h.outerHeight() / c),
- m = [];
- for (n = 0; n < c; n++)
- 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({
- position: "absolute",
- visibility: "visible",
- left: -s * f,
- top: -n * g
- }).parent().addClass("ui-effects-explode").css({
- position: "absolute",
- overflow: "hidden",
- width: f,
- height: g,
- left: o + (d ? a * f : 0),
- top: r + (d ? l * g : 0),
- opacity: d ? 0 : 1
- }).animate({
- left: o + (d ? 0 : a * f),
- top: r + (d ? 0 : l * g),
- opacity: d ? 1 : 0
- }, t.duration || 500, t.easing, i)
- }), S.effects.define("fade", "toggle", function (t, e) {
- var i = "show" === t.mode;
- S(this).css("opacity", i ? 0 : 1).animate({
- opacity: i ? 1 : 0
- }, {
- queue: !1,
- duration: t.duration,
- easing: t.easing,
- complete: e
- })
- }), S.effects.define("fold", "hide", function (e, t) {
- var i = S(this),
- n = e.mode,
- s = "show" === n,
- o = "hide" === n,
- r = e.size || 15,
- a = /([0-9]+)%/.exec(r),
- l = !!e.horizFirst ? ["right", "bottom"] : ["bottom", "right"],
- c = e.duration / 2,
- u = S.effects.createPlaceholder(i),
- h = i.cssClip(),
- d = {
- clip: S.extend({}, h)
- },
- p = {
- clip: S.extend({}, h)
- },
- f = [h[l[0]], h[l[1]]],
- g = i.queue().length;
- 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) {
- u && u.animate(S.effects.clipToBox(d), c, e.easing).animate(S.effects.clipToBox(p), c, e.easing), t()
- }).animate(d, c, e.easing).animate(p, c, e.easing).queue(t), S.effects.unshift(i, g, 4)
- }), S.effects.define("highlight", "show", function (t, e) {
- var i = S(this),
- n = {
- backgroundColor: i.css("backgroundColor")
- };
- "hide" === t.mode && (n.opacity = 0), S.effects.saveStyle(i), i.css({
- backgroundImage: "none",
- backgroundColor: t.color || "#ffff99"
- }).animate(n, {
- queue: !1,
- duration: t.duration,
- easing: t.easing,
- complete: e
- })
- }), S.effects.define("size", function (s, e) {
- var t, o, i, n = S(this),
- r = ["fontSize"],
- a = ["borderTopWidth", "borderBottomWidth", "paddingTop", "paddingBottom"],
- l = ["borderLeftWidth", "borderRightWidth", "paddingLeft", "paddingRight"],
- c = s.mode,
- u = "effect" !== c,
- h = s.scale || "both",
- d = s.origin || ["middle", "center"],
- p = n.css("position"),
- f = n.position(),
- g = S.effects.scaledDimensions(n),
- m = s.from || g,
- v = s.to || S.effects.scaledDimensions(n, 0);
- S.effects.createPlaceholder(n), "show" === c && (i = m, m = v, v = i), o = {
- from: {
- y: m.height / g.height,
- x: m.width / g.width
- },
- to: {
- y: v.height / g.height,
- x: v.width / g.width
- }
- }, ("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 () {
- var t = S(this),
- e = S.effects.scaledDimensions(t),
- i = {
- height: e.height * o.from.y,
- width: e.width * o.from.x,
- outerHeight: e.outerHeight * o.from.y,
- outerWidth: e.outerWidth * o.from.x
- },
- n = {
- height: e.height * o.to.y,
- width: e.width * o.to.x,
- outerHeight: e.height * o.to.y,
- outerWidth: e.width * o.to.x
- };
- 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 () {
- u && S.effects.restoreStyle(t)
- })
- })), n.animate(v, {
- queue: !1,
- duration: s.duration,
- easing: s.easing,
- complete: function () {
- var t = n.offset();
- 0 === v.opacity && n.css("opacity", m.opacity), u || (n.css("position", "static" === p ? "relative" : p).offset(t), S.effects.saveStyle(n)), e()
- }
- })
- }), S.effects.define("scale", function (t, e) {
- var i = S(this),
- n = t.mode,
- s = parseInt(t.percent, 10) || (0 === parseInt(t.percent, 10) ? 0 : "effect" !== n ? 0 : 100),
- o = S.extend(!0, {
- from: S.effects.scaledDimensions(i),
- to: S.effects.scaledDimensions(i, s, t.direction || "both"),
- origin: t.origin || ["middle", "center"]
- }, t);
- t.fade && (o.from.opacity = 1, o.to.opacity = 0), S.effects.effect.size.call(this, o, e)
- }), S.effects.define("puff", "hide", function (t, e) {
- var i = S.extend(!0, {}, t, {
- fade: !0,
- percent: parseInt(t.percent, 10) || 150
- });
- S.effects.effect.scale.call(this, i, e)
- }), S.effects.define("pulsate", "show", function (t, e) {
- var i = S(this),
- n = t.mode,
- s = "show" === n,
- o = s || "hide" === n,
- r = 2 * (t.times || 5) + (o ? 1 : 0),
- a = t.duration / r,
- l = 0,
- c = 1,
- u = i.queue().length;
- for ((s || !i.is(":visible")) && (i.css("opacity", 0).show(), l = 1); c < r; c++) i.animate({
- opacity: l
- }, a, t.easing), l = 1 - l;
- i.animate({
- opacity: l
- }, a, t.easing), i.queue(e), S.effects.unshift(i, u, 1 + r)
- }), S.effects.define("shake", function (t, e) {
- var i = 1,
- n = S(this),
- s = t.direction || "left",
- o = t.distance || 20,
- r = t.times || 3,
- a = 2 * r + 1,
- l = Math.round(t.duration / a),
- c = "up" === s || "down" === s ? "top" : "left",
- u = "up" === s || "left" === s,
- h = {},
- d = {},
- p = {},
- f = n.queue().length;
- 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);
- n.animate(d, l, t.easing).animate(h, l / 2, t.easing).queue(e), S.effects.unshift(n, f, 1 + a)
- }), S.effects.define("slide", "show", function (t, e) {
- var i, n, s = S(this),
- o = {
- up: ["bottom", "top"],
- down: ["top", "bottom"],
- left: ["right", "left"],
- right: ["left", "right"]
- },
- r = t.mode,
- a = t.direction || "left",
- l = "up" === a || "down" === a ? "top" : "left",
- c = "up" === a || "left" === a,
- u = t.distance || s["top" == l ? "outerHeight" : "outerWidth"](!0),
- h = {};
- 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, {
- queue: !1,
- duration: t.duration,
- easing: t.easing,
- complete: e
- })
- }), !1 !== S.uiBackCompat && S.effects.define("transfer", function (t, e) {
- S(this).transfer(t, e)
- }), S.ui.focusable = function (t, e) {
- var i, n, s, o, r, a = t.nodeName.toLowerCase();
- 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) {
- for (var e = t.css("visibility");
- "inherit" === e;) e = (t = t.parent()).css("visibility");
- return "hidden" !== e
- }(S(t)))
- }, S.extend(S.expr[":"], {
- focusable: function (t) {
- return S.ui.focusable(t, null != S.attr(t, "tabindex"))
- }
- }), S.ui.focusable, S.fn.form = function () {
- return "string" == typeof this[0].form ? this.closest("form") : S(this[0].form)
- }, S.ui.formResetMixin = {
- _formResetHandler: function () {
- var e = S(this);
- setTimeout(function () {
- var t = e.data("ui-form-reset-instances");
- S.each(t, function () {
- this.refresh()
- })
- })
- },
- _bindFormResetHandler: function () {
- if (this.form = this.element.form(), this.form.length) {
- var t = this.form.data("ui-form-reset-instances") || [];
- t.length || this.form.on("reset.ui-form-reset", this._formResetHandler), t.push(this), this.form.data("ui-form-reset-instances", t)
- }
- },
- _unbindFormResetHandler: function () {
- if (this.form.length) {
- var t = this.form.data("ui-form-reset-instances");
- 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")
- }
- }
- }, "1.7" === S.fn.jquery.substring(0, 3) && (S.each(["Width", "Height"], function (t, i) {
- function n(t, e, i, n) {
- return S.each(s, function () {
- 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)
- }), e
- }
- var s = "Width" === i ? ["Left", "Right"] : ["Top", "Bottom"],
- o = i.toLowerCase(),
- r = {
- innerWidth: S.fn.innerWidth,
- innerHeight: S.fn.innerHeight,
- outerWidth: S.fn.outerWidth,
- outerHeight: S.fn.outerHeight
- };
- S.fn["inner" + i] = function (t) {
- return void 0 === t ? r["inner" + i].call(this) : this.each(function () {
- S(this).css(o, n(this, t) + "px")
- })
- }, S.fn["outer" + i] = function (t, e) {
- return "number" != typeof t ? r["outer" + i].call(this, t) : this.each(function () {
- S(this).css(o, n(this, t, !0, e) + "px")
- })
- }
- }), S.fn.addBack = function (t) {
- return this.add(null == t ? this.prevObject : this.prevObject.filter(t))
- }), S.ui.keyCode = {
- BACKSPACE: 8,
- COMMA: 188,
- DELETE: 46,
- DOWN: 40,
- END: 35,
- ENTER: 13,
- ESCAPE: 27,
- HOME: 36,
- LEFT: 37,
- PAGE_DOWN: 34,
- PAGE_UP: 33,
- PERIOD: 190,
- RIGHT: 39,
- SPACE: 32,
- TAB: 9,
- UP: 38
- }, S.ui.escapeSelector = (g = /([!"#$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g, function (t) {
- return t.replace(g, "\\$1")
- }), S.fn.labels = function () {
- var t, e, i, n, s;
- 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))
- }, S.fn.scrollParent = function (t) {
- var e = this.css("position"),
- i = "absolute" === e,
- n = t ? /(auto|scroll|hidden)/ : /(auto|scroll)/,
- s = this.parents().filter(function () {
- var t = S(this);
- return (!i || "static" !== t.css("position")) && n.test(t.css("overflow") + t.css("overflow-y") + t.css("overflow-x"))
- }).eq(0);
- return "fixed" !== e && s.length ? s : S(this[0].ownerDocument || document)
- }, S.extend(S.expr[":"], {
- tabbable: function (t) {
- var e = S.attr(t, "tabindex"),
- i = null != e;
- return (!i || 0 <= e) && S.ui.focusable(t, i)
- }
- }), S.fn.extend({
- uniqueId: (f = 0, function () {
- return this.each(function () {
- this.id || (this.id = "ui-id-" + ++f)
- })
- }),
- removeUniqueId: function () {
- return this.each(function () {
- /^ui-id-\d+$/.test(this.id) && S(this).removeAttr("id")
- })
- }
- }), S.widget("ui.accordion", {
- version: "1.12.1",
- options: {
- active: 0,
- animate: {},
- classes: {
- "ui-accordion-header": "ui-corner-top",
- "ui-accordion-header-collapsed": "ui-corner-all",
- "ui-accordion-content": "ui-corner-bottom"
- },
- collapsible: !1,
- event: "click",
- header: "> li > :first-child, > :not(li):even",
- heightStyle: "auto",
- icons: {
- activeHeader: "ui-icon-triangle-1-s",
- header: "ui-icon-triangle-1-e"
- },
- activate: null,
- beforeActivate: null
- },
- hideProps: {
- borderTopWidth: "hide",
- borderBottomWidth: "hide",
- paddingTop: "hide",
- paddingBottom: "hide",
- height: "hide"
- },
- showProps: {
- borderTopWidth: "show",
- borderBottomWidth: "show",
- paddingTop: "show",
- paddingBottom: "show",
- height: "show"
- },
- _create: function () {
- var t = this.options;
- 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()
- },
- _getCreateEventData: function () {
- return {
- header: this.active,
- panel: this.active.length ? this.active.next() : S()
- }
- },
- _createIcons: function () {
- var t, e, i = this.options.icons;
- 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"))
- },
- _destroyIcons: function () {
- this._removeClass(this.headers, "ui-accordion-icons"), this.headers.children(".ui-accordion-header-icon").remove()
- },
- _destroy: function () {
- var t;
- 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", "")
- },
- _setOption: function (t, e) {
- 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())))
- },
- _setOptionDisabled: function (t) {
- 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)
- },
- _keydown: function (t) {
- if (!t.altKey && !t.ctrlKey) {
- var e = S.ui.keyCode,
- i = this.headers.length,
- n = this.headers.index(t.target),
- s = !1;
- switch (t.keyCode) {
- case e.RIGHT:
- case e.DOWN:
- s = this.headers[(n + 1) % i];
- break;
- case e.LEFT:
- case e.UP:
- s = this.headers[(n - 1 + i) % i];
- break;
- case e.SPACE:
- case e.ENTER:
- this._eventHandler(t);
- break;
- case e.HOME:
- s = this.headers[0];
- break;
- case e.END:
- s = this.headers[i - 1]
- }
- s && (S(t.target).attr("tabIndex", -1), S(s).attr("tabIndex", 0), S(s).trigger("focus"), t.preventDefault())
- }
- },
- _panelKeyDown: function (t) {
- t.keyCode === S.ui.keyCode.UP && t.ctrlKey && S(t.currentTarget).prev().trigger("focus")
- },
- refresh: function () {
- var t = this.options;
- 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()
- },
- _processPanels: function () {
- var t = this.headers,
- e = this.panels;
- 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)))
- },
- _refresh: function () {
- var i, t = this.options,
- e = t.heightStyle,
- n = this.element.parent();
- 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 () {
- var t = S(this),
- e = t.uniqueId().attr("id"),
- i = t.next(),
- n = i.uniqueId().attr("id");
- t.attr("aria-controls", n), i.attr("aria-labelledby", e)
- }).next().attr("role", "tabpanel"), this.headers.not(this.active).attr({
- "aria-selected": "false",
- "aria-expanded": "false",
- tabIndex: -1
- }).next().attr({
- "aria-hidden": "true"
- }).hide(), this.active.length ? this.active.attr({
- "aria-selected": "true",
- "aria-expanded": "true",
- tabIndex: 0
- }).next().attr({
- "aria-hidden": "false"
- }) : this.headers.eq(0).attr("tabIndex", 0), this._createIcons(), this._setupEvents(t.event), "fill" === e ? (i = n.height(), this.element.siblings(":visible").each(function () {
- var t = S(this),
- e = t.css("position");
- "absolute" !== e && "fixed" !== e && (i -= t.outerHeight(!0))
- }), this.headers.each(function () {
- i -= S(this).outerHeight(!0)
- }), this.headers.next().each(function () {
- S(this).height(Math.max(0, i - S(this).innerHeight() + S(this).height()))
- }).css("overflow", "auto")) : "auto" === e && (i = 0, this.headers.next().each(function () {
- var t = S(this).is(":visible");
- t || S(this).show(), i = Math.max(i, S(this).css("height", "").height()), t || S(this).hide()
- }).height(i))
- },
- _activate: function (t) {
- var e = this._findActive(t)[0];
- e !== this.active[0] && (e = e || this.active[0], this._eventHandler({
- target: e,
- currentTarget: e,
- preventDefault: S.noop
- }))
- },
- _findActive: function (t) {
- return "number" == typeof t ? this.headers.eq(t) : S()
- },
- _setupEvents: function (t) {
- var i = {
- keydown: "_keydown"
- };
- t && S.each(t.split(" "), function (t, e) {
- i[e] = "_eventHandler"
- }), this._off(this.headers.add(this.headers.next())), this._on(this.headers, i), this._on(this.headers.next(), {
- keydown: "_panelKeyDown"
- }), this._hoverable(this.headers), this._focusable(this.headers)
- },
- _eventHandler: function (t) {
- var e, i, n = this.options,
- s = this.active,
- o = S(t.currentTarget),
- r = o[0] === s[0],
- a = r && n.collapsible,
- l = a ? S() : o.next(),
- c = s.next(),
- u = {
- oldHeader: s,
- oldPanel: c,
- newHeader: a ? S() : o,
- newPanel: l
- };
- 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")))
- },
- _toggle: function (t) {
- var e = t.newPanel,
- i = this.prevShow.length ? this.prevShow : t.oldPanel;
- 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({
- "aria-hidden": "true"
- }), i.prev().attr({
- "aria-selected": "false",
- "aria-expanded": "false"
- }), e.length && i.length ? i.prev().attr({
- tabIndex: -1,
- "aria-expanded": "false"
- }) : e.length && this.headers.filter(function () {
- return 0 === parseInt(S(this).attr("tabIndex"), 10)
- }).attr("tabIndex", -1), e.attr("aria-hidden", "false").prev().attr({
- "aria-selected": "true",
- "aria-expanded": "true",
- tabIndex: 0
- })
- },
- _animate: function (t, i, e) {
- function n() {
- a._toggleComplete(e)
- }
- var s, o, r, a = this,
- l = 0,
- c = t.css("box-sizing"),
- u = t.length && (!i.length || t.index() < i.index()),
- h = this.options.animate || {},
- d = u && h.down || h;
- 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, {
- duration: r,
- easing: o,
- step: function (t, e) {
- e.now = Math.round(t)
- }
- }), void t.hide().animate(this.showProps, {
- duration: r,
- easing: o,
- complete: n,
- step: function (t, e) {
- 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)
- }
- })) : i.animate(this.hideProps, r, o, n) : t.animate(this.showProps, r, o, n)
- },
- _toggleComplete: function (t) {
- var e = t.oldPanel,
- i = e.prev();
- 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)
- }
- }), S.ui.safeActiveElement = function (e) {
- var i;
- try {
- i = e.activeElement
- } catch (t) {
- i = e.body
- }
- return i || (i = e.body), i.nodeName || (i = e.body), i
- }, S.widget("ui.menu", {
- version: "1.12.1",
- defaultElement: "<ul>",
- delay: 300,
- options: {
- icons: {
- submenu: "ui-icon-caret-1-e"
- },
- items: "> *",
- menus: "ul",
- position: {
- my: "left top",
- at: "right top"
- },
- role: "menu",
- blur: null,
- focus: null,
- select: null
- },
- _create: function () {
- this.activeMenu = this.element, this.mouseHandled = !1, this.element.uniqueId().attr({
- role: this.options.role,
- tabIndex: 0
- }), this._addClass("ui-menu", "ui-widget ui-widget-content"), this._on({
- "mousedown .ui-menu-item": function (t) {
- t.preventDefault()
- },
- "click .ui-menu-item": function (t) {
- var e = S(t.target),
- i = S(S.ui.safeActiveElement(this.document[0]));
- !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)))
- },
- "mouseenter .ui-menu-item": function (t) {
- if (!this.previousFilter) {
- var e = S(t.target).closest(".ui-menu-item"),
- i = S(t.currentTarget);
- e[0] === i[0] && (this._removeClass(i.siblings().children(".ui-state-active"), null, "ui-state-active"), this.focus(t, i))
- }
- },
- mouseleave: "collapseAll",
- "mouseleave .ui-menu": "collapseAll",
- focus: function (t, e) {
- var i = this.active || this.element.find(this.options.items).eq(0);
- e || this.focus(t, i)
- },
- blur: function (t) {
- this._delay(function () {
- !S.contains(this.element[0], S.ui.safeActiveElement(this.document[0])) && this.collapseAll(t)
- })
- },
- keydown: "_keydown"
- }), this.refresh(), this._on(this.document, {
- click: function (t) {
- this._closeOnDocumentClick(t) && this.collapseAll(t), this.mouseHandled = !1
- }
- })
- },
- _destroy: function () {
- var t = this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");
- 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 () {
- var t = S(this);
- t.data("ui-menu-submenu-caret") && t.remove()
- })
- },
- _keydown: function (t) {
- var e, i, n, s, o = !0;
- switch (t.keyCode) {
- case S.ui.keyCode.PAGE_UP:
- this.previousPage(t);
- break;
- case S.ui.keyCode.PAGE_DOWN:
- this.nextPage(t);
- break;
- case S.ui.keyCode.HOME:
- this._move("first", "first", t);
- break;
- case S.ui.keyCode.END:
- this._move("last", "last", t);
- break;
- case S.ui.keyCode.UP:
- this.previous(t);
- break;
- case S.ui.keyCode.DOWN:
- this.next(t);
- break;
- case S.ui.keyCode.LEFT:
- this.collapse(t);
- break;
- case S.ui.keyCode.RIGHT:
- this.active && !this.active.is(".ui-state-disabled") && this.expand(t);
- break;
- case S.ui.keyCode.ENTER:
- case S.ui.keyCode.SPACE:
- this._activate(t);
- break;
- case S.ui.keyCode.ESCAPE:
- this.collapse(t);
- break;
- default:
- 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 () {
- delete this.previousFilter
- }, 1e3)) : delete this.previousFilter
- }
- o && t.preventDefault()
- },
- _activate: function (t) {
- this.active && !this.active.is(".ui-state-disabled") && (this.active.children("[aria-haspopup='true']").length ? this.expand(t) : this.select(t))
- },
- refresh: function () {
- var t, e, i, n, s = this,
- o = this.options.icons.submenu,
- r = this.element.find(this.options.menus);
- this._toggleClass("ui-menu-icons", null, !!this.element.find(".ui-icon").length), e = r.filter(":not(.ui-menu)").hide().attr({
- role: this.options.role,
- "aria-hidden": "true",
- "aria-expanded": "false"
- }).each(function () {
- var t = S(this),
- e = t.prev(),
- i = S("<span>").data("ui-menu-submenu-caret", !0);
- s._addClass(i, "ui-menu-icon", "ui-icon " + o), e.attr("aria-haspopup", "true").prepend(i), t.attr("aria-labelledby", e.attr("id"))
- }), 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 () {
- var t = S(this);
- s._isDivider(t) && s._addClass(t, "ui-menu-divider", "ui-widget-content")
- }), n = (i = t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({
- tabIndex: -1,
- role: this._itemRole()
- }), 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()
- },
- _itemRole: function () {
- return {
- menu: "menuitem",
- listbox: "option"
- } [this.options.role]
- },
- _setOption: function (t, e) {
- if ("icons" === t) {
- var i = this.element.find(".ui-menu-icon");
- this._removeClass(i, null, this.options.icons.submenu)._addClass(i, null, e.submenu)
- }
- this._super(t, e)
- },
- _setOptionDisabled: function (t) {
- this._super(t), this.element.attr("aria-disabled", t + ""), this._toggleClass(null, "ui-state-disabled", !!t)
- },
- focus: function (t, e) {
- var i, n, s;
- 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 () {
- this._close()
- }, this.delay), (i = e.children(".ui-menu")).length && t && /^mouse/.test(t.type) && this._startOpening(i), this.activeMenu = e.parent(), this._trigger("focus", t, {
- item: e
- })
- },
- _scrollIntoView: function (t) {
- var e, i, n, s, o, r;
- 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))
- },
- blur: function (t, e) {
- e || clearTimeout(this.timer), this.active && (this._removeClass(this.active.children(".ui-menu-item-wrapper"), null, "ui-state-active"), this._trigger("blur", t, {
- item: this.active
- }), this.active = null)
- },
- _startOpening: function (t) {
- clearTimeout(this.timer), "true" === t.attr("aria-hidden") && (this.timer = this._delay(function () {
- this._close(), this._open(t)
- }, this.delay))
- },
- _open: function (t) {
- var e = S.extend({
- of: this.active
- }, this.options.position);
- 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)
- },
- collapseAll: function (e, i) {
- clearTimeout(this.timer), this.timer = this._delay(function () {
- var t = i ? this.element : S(e && e.target).closest(this.element.find(".ui-menu"));
- 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
- }, this.delay)
- },
- _close: function (t) {
- t || (t = this.active ? this.active.parent() : this.element), t.find(".ui-menu").hide().attr("aria-hidden", "true").attr("aria-expanded", "false")
- },
- _closeOnDocumentClick: function (t) {
- return !S(t.target).closest(".ui-menu").length
- },
- _isDivider: function (t) {
- return !/[^\-\u2014\u2013\s]/.test(t.text())
- },
- collapse: function (t) {
- var e = this.active && this.active.parent().closest(".ui-menu-item", this.element);
- e && e.length && (this._close(), this.focus(t, e))
- },
- expand: function (t) {
- var e = this.active && this.active.children(".ui-menu ").find(this.options.items).first();
- e && e.length && (this._open(e.parent()), this._delay(function () {
- this.focus(t, e)
- }))
- },
- next: function (t) {
- this._move("next", "first", t)
- },
- previous: function (t) {
- this._move("prev", "last", t)
- },
- isFirstItem: function () {
- return this.active && !this.active.prevAll(".ui-menu-item").length
- },
- isLastItem: function () {
- return this.active && !this.active.nextAll(".ui-menu-item").length
- },
- _move: function (t, e, i) {
- var n;
- 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)
- },
- nextPage: function (t) {
- var e, i, n;
- 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 () {
- return (e = S(this)).offset().top - i - n < 0
- }), this.focus(t, e)) : this.focus(t, this.activeMenu.find(this.options.items)[this.active ? "last" : "first"]()))) : void this.next(t)
- },
- previousPage: function (t) {
- var e, i, n;
- 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 () {
- return 0 < (e = S(this)).offset().top - i + n
- }), this.focus(t, e)) : this.focus(t, this.activeMenu.find(this.options.items).first()))) : void this.next(t)
- },
- _hasScroll: function () {
- return this.element.outerHeight() < this.element.prop("scrollHeight")
- },
- select: function (t) {
- this.active = this.active || S(t.target).closest(".ui-menu-item");
- var e = {
- item: this.active
- };
- this.active.has(".ui-menu").length || this.collapseAll(t, !0), this._trigger("select", t, e)
- },
- _filterMenuItems: function (t) {
- var e = t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&"),
- i = RegExp("^" + e, "i");
- return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function () {
- return i.test(S.trim(S(this).children(".ui-menu-item-wrapper").text()))
- })
- }
- }), S.widget("ui.autocomplete", {
- version: "1.12.1",
- defaultElement: "<input>",
- options: {
- appendTo: null,
- autoFocus: !1,
- delay: 300,
- minLength: 1,
- position: {
- my: "left top",
- at: "left bottom",
- collision: "none"
- },
- source: null,
- change: null,
- close: null,
- focus: null,
- open: null,
- response: null,
- search: null,
- select: null
- },
- requestIndex: 0,
- pending: 0,
- _create: function () {
- var i, n, s, t = this.element[0].nodeName.toLowerCase(),
- e = "textarea" === t,
- o = "input" === t;
- 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, {
- keydown: function (t) {
- if (this.element.prop("readOnly")) n = s = i = !0;
- else {
- n = s = i = !1;
- var e = S.ui.keyCode;
- switch (t.keyCode) {
- case e.PAGE_UP:
- i = !0, this._move("previousPage", t);
- break;
- case e.PAGE_DOWN:
- i = !0, this._move("nextPage", t);
- break;
- case e.UP:
- i = !0, this._keyEvent("previous", t);
- break;
- case e.DOWN:
- i = !0, this._keyEvent("next", t);
- break;
- case e.ENTER:
- this.menu.active && (i = !0, t.preventDefault(), this.menu.select(t));
- break;
- case e.TAB:
- this.menu.active && this.menu.select(t);
- break;
- case e.ESCAPE:
- this.menu.element.is(":visible") && (this.isMultiLine || this._value(this.term), this.close(t), t.preventDefault());
- break;
- default:
- n = !0, this._searchTimeout(t)
- }
- }
- },
- keypress: function (t) {
- if (i) return i = !1, void((!this.isMultiLine || this.menu.element.is(":visible")) && t.preventDefault());
- if (!n) {
- var e = S.ui.keyCode;
- switch (t.keyCode) {
- case e.PAGE_UP:
- this._move("previousPage", t);
- break;
- case e.PAGE_DOWN:
- this._move("nextPage", t);
- break;
- case e.UP:
- this._keyEvent("previous", t);
- break;
- case e.DOWN:
- this._keyEvent("next", t)
- }
- }
- },
- input: function (t) {
- return s ? (s = !1, void t.preventDefault()) : void this._searchTimeout(t)
- },
- focus: function () {
- this.selectedItem = null, this.previous = this._value()
- },
- blur: function (t) {
- return this.cancelBlur ? void delete this.cancelBlur : (clearTimeout(this.searching), this.close(t), void this._change(t))
- }
- }), this._initSource(), this.menu = S("<ul>").appendTo(this._appendTo()).menu({
- role: null
- }).hide().menu("instance"), this._addClass(this.menu.element, "ui-autocomplete", "ui-front"), this._on(this.menu.element, {
- mousedown: function (t) {
- t.preventDefault(), this.cancelBlur = !0, this._delay(function () {
- delete this.cancelBlur, this.element[0] !== S.ui.safeActiveElement(this.document[0]) && this.element.trigger("focus")
- })
- },
- menufocus: function (t, e) {
- var i, n;
- return this.isNewMenu && (this.isNewMenu = !1, t.originalEvent && /^mouse/.test(t.originalEvent.type)) ? (this.menu.blur(), void this.document.one("mousemove", function () {
- S(t.target).trigger(t.originalEvent)
- })) : (n = e.item.data("ui-autocomplete-item"), !1 !== this._trigger("focus", t, {
- item: n
- }) && 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))))
- },
- menuselect: function (t, e) {
- var i = e.item.data("ui-autocomplete-item"),
- n = this.previous;
- this.element[0] !== S.ui.safeActiveElement(this.document[0]) && (this.element.trigger("focus"), this.previous = n, this._delay(function () {
- this.previous = n, this.selectedItem = i
- })), !1 !== this._trigger("select", t, {
- item: i
- }) && this._value(i.value), this.term = this._value(), this.close(t), this.selectedItem = i
- }
- }), this.liveRegion = S("<div>", {
- role: "status",
- "aria-live": "assertive",
- "aria-relevant": "additions"
- }).appendTo(this.document[0].body), this._addClass(this.liveRegion, null, "ui-helper-hidden-accessible"), this._on(this.window, {
- beforeunload: function () {
- this.element.removeAttr("autocomplete")
- }
- })
- },
- _destroy: function () {
- clearTimeout(this.searching), this.element.removeAttr("autocomplete"), this.menu.element.remove(), this.liveRegion.remove()
- },
- _setOption: function (t, e) {
- this._super(t, e), "source" === t && this._initSource(), "appendTo" === t && this.menu.element.appendTo(this._appendTo()), "disabled" === t && e && this.xhr && this.xhr.abort()
- },
- _isEventTargetInWidget: function (t) {
- var e = this.menu.element[0];
- return t.target === this.element[0] || t.target === e || S.contains(e, t.target)
- },
- _closeOnClickOutside: function (t) {
- this._isEventTargetInWidget(t) || this.close()
- },
- _appendTo: function () {
- var t = this.options.appendTo;
- 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
- },
- _initSource: function () {
- var i, n, s = this;
- S.isArray(this.options.source) ? (i = this.options.source, this.source = function (t, e) {
- e(S.ui.autocomplete.filter(i, t.term))
- }) : "string" == typeof this.options.source ? (n = this.options.source, this.source = function (t, e) {
- s.xhr && s.xhr.abort(), s.xhr = S.ajax({
- url: n,
- data: t,
- dataType: "json",
- success: function (t) {
- e(t)
- },
- error: function () {
- e([])
- }
- })
- }) : this.source = this.options.source
- },
- _searchTimeout: function (n) {
- clearTimeout(this.searching), this.searching = this._delay(function () {
- var t = this.term === this._value(),
- e = this.menu.element.is(":visible"),
- i = n.altKey || n.ctrlKey || n.metaKey || n.shiftKey;
- (!t || t && !e && !i) && (this.selectedItem = null, this.search(null, n))
- }, this.options.delay)
- },
- search: function (t, e) {
- 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
- },
- _search: function (t) {
- this.pending++, this._addClass("ui-autocomplete-loading"), this.cancelSearch = !1, this.source({
- term: t
- }, this._response())
- },
- _response: function () {
- var e = ++this.requestIndex;
- return S.proxy(function (t) {
- e === this.requestIndex && this.__response(t), this.pending--, this.pending || this._removeClass("ui-autocomplete-loading")
- }, this)
- },
- __response: function (t) {
- t && (t = this._normalize(t)), this._trigger("response", null, {
- content: t
- }), !this.options.disabled && t && t.length && !this.cancelSearch ? (this._suggest(t), this._trigger("open")) : this._close()
- },
- close: function (t) {
- this.cancelSearch = !0, this._close(t)
- },
- _close: function (t) {
- this._off(this.document, "mousedown"), this.menu.element.is(":visible") && (this.menu.element.hide(), this.menu.blur(), this.isNewMenu = !0, this._trigger("close", t))
- },
- _change: function (t) {
- this.previous !== this._value() && this._trigger("change", t, {
- item: this.selectedItem
- })
- },
- _normalize: function (t) {
- return t.length && t[0].label && t[0].value ? t : S.map(t, function (t) {
- return "string" == typeof t ? {
- label: t,
- value: t
- } : S.extend({}, t, {
- label: t.label || t.value,
- value: t.value || t.label
- })
- })
- },
- _suggest: function (t) {
- var e = this.menu.element.empty();
- this._renderMenu(e, t), this.isNewMenu = !0, this.menu.refresh(), e.show(), this._resizeMenu(), e.position(S.extend({
- of: this.element
- }, this.options.position)), this.options.autoFocus && this.menu.next(), this._on(this.document, {
- mousedown: "_closeOnClickOutside"
- })
- },
- _resizeMenu: function () {
- var t = this.menu.element;
- t.outerWidth(Math.max(t.width("").outerWidth() + 1, this.element.outerWidth()))
- },
- _renderMenu: function (i, t) {
- var n = this;
- S.each(t, function (t, e) {
- n._renderItemData(i, e)
- })
- },
- _renderItemData: function (t, e) {
- return this._renderItem(t, e).data("ui-autocomplete-item", e)
- },
- _renderItem: function (t, e) {
- return S("<li>").append(S("<div>").text(e.label)).appendTo(t)
- },
- _move: function (t, e) {
- 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)
- },
- widget: function () {
- return this.menu.element
- },
- _value: function () {
- return this.valueMethod.apply(this.element, arguments)
- },
- _keyEvent: function (t, e) {
- (!this.isMultiLine || this.menu.element.is(":visible")) && (this._move(t, e), e.preventDefault())
- },
- _isContentEditable: function (t) {
- if (!t.length) return !1;
- var e = t.prop("contentEditable");
- return "inherit" === e ? this._isContentEditable(t.parent()) : "true" === e
- }
- }), S.extend(S.ui.autocomplete, {
- escapeRegex: function (t) {
- return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&")
- },
- filter: function (t, e) {
- var i = RegExp(S.ui.autocomplete.escapeRegex(e), "i");
- return S.grep(t, function (t) {
- return i.test(t.label || t.value || t)
- })
- }
- }), S.widget("ui.autocomplete", S.ui.autocomplete, {
- options: {
- messages: {
- noResults: "No search results.",
- results: function (t) {
- return t + (1 < t ? " results are" : " result is") + " available, use up and down arrow keys to navigate."
- }
- }
- },
- __response: function (t) {
- var e;
- 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))
- }
- }), S.ui.autocomplete;
- var m, v, _ = /ui-corner-([a-z]){2,6}/g;
- S.widget("ui.controlgroup", {
- version: "1.12.1",
- defaultElement: "<div>",
- options: {
- direction: "horizontal",
- disabled: null,
- onlyVisible: !0,
- items: {
- button: "input[type=button], input[type=submit], input[type=reset], button, a",
- controlgroupLabel: ".ui-controlgroup-label",
- checkboxradio: "input[type='checkbox'], input[type='radio']",
- selectmenu: "select",
- spinner: ".ui-spinner-input"
- }
- },
- _create: function () {
- this._enhance()
- },
- _enhance: function () {
- this.element.attr("role", "toolbar"), this.refresh()
- },
- _destroy: function () {
- 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()
- },
- _initWidgets: function () {
- var r = this,
- a = [];
- S.each(this.options.items, function (s, t) {
- var e, o = {};
- return t ? "controlgroupLabel" === s ? ((e = r.element.find(t)).each(function () {
- var t = S(this);
- t.children(".ui-controlgroup-label-contents").length || t.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")
- }), 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") : {
- classes: {}
- }, r.element.find(t).each(function () {
- var t = S(this),
- e = t[s]("instance"),
- i = S.widget.extend({}, o);
- if ("button" !== s || !t.parent(".ui-spinner").length) {
- e || (e = t[s]()[s]("instance")), e && (i.classes = r._resolveClassesValues(i.classes, e)), t[s](i);
- var n = t[s]("widget");
- S.data(n[0], "ui-controlgroup-data", e || t[s]("instance")), a.push(n[0])
- }
- }))) : void 0
- }), this.childWidgets = S(S.unique(a)), this._addClass(this.childWidgets, "ui-controlgroup-item")
- },
- _callChildMethod: function (e) {
- this.childWidgets.each(function () {
- var t = S(this).data("ui-controlgroup-data");
- t && t[e] && t[e]()
- })
- },
- _updateCornerClass: function (t, e) {
- var i = this._buildSimpleOptions(e, "label").classes.label;
- this._removeClass(t, null, "ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"), this._addClass(t, null, i)
- },
- _buildSimpleOptions: function (t, e) {
- var i = "vertical" === this.options.direction,
- n = {
- classes: {}
- };
- return n.classes[e] = {
- middle: "",
- first: "ui-corner-" + (i ? "top" : "left"),
- last: "ui-corner-" + (i ? "bottom" : "right"),
- only: "ui-corner-all"
- } [t], n
- },
- _spinnerOptions: function (t) {
- var e = this._buildSimpleOptions(t, "ui-spinner");
- return e.classes["ui-spinner-up"] = "", e.classes["ui-spinner-down"] = "", e
- },
- _buttonOptions: function (t) {
- return this._buildSimpleOptions(t, "ui-button")
- },
- _checkboxradioOptions: function (t) {
- return this._buildSimpleOptions(t, "ui-checkboxradio-label")
- },
- _selectmenuOptions: function (t) {
- var e = "vertical" === this.options.direction;
- return {
- width: e && "auto",
- classes: {
- middle: {
- "ui-selectmenu-button-open": "",
- "ui-selectmenu-button-closed": ""
- },
- first: {
- "ui-selectmenu-button-open": "ui-corner-" + (e ? "top" : "tl"),
- "ui-selectmenu-button-closed": "ui-corner-" + (e ? "top" : "left")
- },
- last: {
- "ui-selectmenu-button-open": e ? "" : "ui-corner-tr",
- "ui-selectmenu-button-closed": "ui-corner-" + (e ? "bottom" : "right")
- },
- only: {
- "ui-selectmenu-button-open": "ui-corner-top",
- "ui-selectmenu-button-closed": "ui-corner-all"
- }
- } [t]
- }
- },
- _resolveClassesValues: function (i, n) {
- var s = {};
- return S.each(i, function (t) {
- var e = n.options.classes[t] || "";
- e = S.trim(e.replace(_, "")), s[t] = (e + " " + i[t]).replace(/\s+/g, " ")
- }), s
- },
- _setOption: function (t, e) {
- 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()
- },
- refresh: function () {
- var s, o = this;
- 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) {
- var i = s[e]().data("ui-controlgroup-data");
- if (i && o["_" + i.widgetName + "Options"]) {
- var n = o["_" + i.widgetName + "Options"](1 === s.length ? "only" : e);
- n.classes = o._resolveClassesValues(n.classes, i), i.element[i.widgetName](n)
- } else o._updateCornerClass(s[e](), e)
- }), this._callChildMethod("refresh"))
- }
- }), S.widget("ui.checkboxradio", [S.ui.formResetMixin, {
- version: "1.12.1",
- options: {
- disabled: null,
- label: null,
- icon: !0,
- classes: {
- "ui-checkboxradio-label": "ui-corner-all",
- "ui-checkboxradio-icon": "ui-corner-all"
- }
- },
- _getCreateOptions: function () {
- var t, e, i = this,
- n = this._super() || {};
- 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 () {
- i.originalLabel += 3 === this.nodeType ? S(this).text() : this.outerHTML
- }), this.originalLabel && (n.label = this.originalLabel), null != (t = this.element[0].disabled) && (n.disabled = t), n
- },
- _create: function () {
- var t = this.element[0].checked;
- 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({
- change: "_toggleClasses",
- focus: function () {
- this._addClass(this.label, null, "ui-state-focus ui-visual-focus")
- },
- blur: function () {
- this._removeClass(this.label, null, "ui-state-focus ui-visual-focus")
- }
- })
- },
- _readType: function () {
- var t = this.element[0].nodeName.toLowerCase();
- 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)
- },
- _enhance: function () {
- this._updateIcon(this.element[0].checked)
- },
- widget: function () {
- return this.label
- },
- _getRadioGroup: function () {
- var t = this.element[0].name,
- e = "input[name='" + S.ui.escapeSelector(t) + "']";
- return t ? (this.form.length ? S(this.form[0].elements).filter(e) : S(e).filter(function () {
- return 0 === S(this).form().length
- })).not(this.element) : S([])
- },
- _toggleClasses: function () {
- var t = this.element[0].checked;
- 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 () {
- var t = S(this).checkboxradio("instance");
- t && t._removeClass(t.label, "ui-checkboxradio-checked", "ui-state-active")
- })
- },
- _destroy: function () {
- this._unbindFormResetHandler(), this.icon && (this.icon.remove(), this.iconSpace.remove())
- },
- _setOption: function (t, e) {
- 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
- },
- _updateIcon: function (t) {
- var e = "ui-icon ui-icon-background ";
- 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)
- },
- _updateLabel: function () {
- var t = this.label.contents().not(this.element[0]);
- this.icon && (t = t.not(this.icon[0])), this.iconSpace && (t = t.not(this.iconSpace[0])), t.remove(), this.label.append(this.options.label)
- },
- refresh: function () {
- var t = this.element[0].checked,
- e = this.element[0].disabled;
- 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({
- disabled: e
- })
- }
- }]), S.ui.checkboxradio, S.widget("ui.button", {
- version: "1.12.1",
- defaultElement: "<button>",
- options: {
- classes: {
- "ui-button": "ui-corner-all"
- },
- disabled: null,
- icon: null,
- iconPosition: "beginning",
- label: null,
- showLabel: !0
- },
- _getCreateOptions: function () {
- var t, e = this._super() || {};
- 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
- },
- _create: function () {
- !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({
- keyup: function (t) {
- t.keyCode === S.ui.keyCode.SPACE && (t.preventDefault(), this.element[0].click ? this.element[0].click() : this.element.trigger("click"))
- }
- })
- },
- _enhance: function () {
- this.element.is("button") || this.element.attr("role", "button"), this.options.icon && (this._updateIcon("icon", this.options.icon), this._updateTooltip())
- },
- _updateTooltip: function () {
- this.title = this.element.attr("title"), this.options.showLabel || this.title || this.element.attr("title", this.options.label)
- },
- _updateIcon: function (t, e) {
- var i = "iconPosition" !== t,
- n = i ? this.options.iconPosition : e,
- s = "top" === n || "bottom" === n;
- 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))
- },
- _destroy: function () {
- this.element.removeAttr("role"), this.icon && this.icon.remove(), this.iconSpace && this.iconSpace.remove(), this.hasTitle || this.element.removeAttr("title")
- },
- _attachIconSpace: function (t) {
- this.icon[/^(?:end|bottom)/.test(t) ? "before" : "after"](this.iconSpace)
- },
- _attachIcon: function (t) {
- this.element[/^(?:end|bottom)/.test(t) ? "append" : "prepend"](this.icon)
- },
- _setOptions: function (t) {
- var e = void 0 === t.showLabel ? this.options.showLabel : t.showLabel,
- i = void 0 === t.icon ? this.options.icon : t.icon;
- e || i || (t.showLabel = !0), this._super(t)
- },
- _setOption: function (t, e) {
- "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())
- },
- refresh: function () {
- var t = this.element.is("input, button") ? this.element[0].disabled : this.element.hasClass("ui-button-disabled");
- t !== this.options.disabled && this._setOptions({
- disabled: t
- }), this._updateTooltip()
- }
- }), !1 !== S.uiBackCompat && (S.widget("ui.button", S.ui.button, {
- options: {
- text: !0,
- icons: {
- primary: null,
- secondary: null
- }
- },
- _create: function () {
- 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()
- },
- _setOption: function (t, e) {
- 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))
- }
- }), S.fn.button = (m = S.fn.button, function () {
- 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({
- icon: !1
- }) : this.checkboxradio.apply(this, arguments))
- }), S.fn.buttonset = function () {
- 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 = {
- button: arguments[0].items
- }), this.controlgroup.apply(this, arguments))
- }), S.ui.button, S.extend(S.ui, {
- datepicker: {
- version: "1.12.1"
- }
- }), S.extend(t.prototype, {
- markerClassName: "hasDatepicker",
- maxRows: 4,
- _widgetDatepicker: function () {
- return this.dpDiv
- },
- setDefaults: function (t) {
- return h(this._defaults, t || {}), this
- },
- _attachDatepicker: function (t, e) {
- var i, n, s;
- 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)
- },
- _newInst: function (t, e) {
- return {
- id: t[0].id.replace(/([^A-Za-z0-9_\-])/g, "\\\\$1"),
- input: t,
- selectedDay: 0,
- selectedMonth: 0,
- selectedYear: 0,
- drawMonth: 0,
- drawYear: 0,
- inline: e,
- dpDiv: e ? i(S("<div class='" + this._inlineClass + " ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")) : this.dpDiv
- }
- },
- _connectDatepicker: function (t, e) {
- var i = S(t);
- 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))
- },
- _attachments: function (t, e) {
- var i, n, s, o = this._get(e, "appendText"),
- r = this._get(e, "isRTL");
- 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({
- src: s,
- alt: n,
- title: n
- }) : S("<button type='button'></button>").addClass(this._triggerClass).html(s ? S("<img/>").attr({
- src: s,
- alt: n,
- title: n
- }) : n)), t[r ? "before" : "after"](e.trigger), e.trigger.on("click", function () {
- 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
- }))
- },
- _autoSize: function (t) {
- if (this._get(t, "autoSize") && !t.inline) {
- var e, i, n, s, o = new Date(2009, 11, 20),
- r = this._get(t, "dateFormat");
- r.match(/[DM]/) && (e = function (t) {
- for (s = n = i = 0; t.length > s; s++) t[s].length > i && (i = t[s].length, n = s);
- return n
- }, 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)
- }
- },
- _inlineDatepicker: function (t, e) {
- var i = S(t);
- 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"))
- },
- _dialogDatepicker: function (t, e, i, n, s) {
- var o, r, a, l, c, u = this._dialogInst;
- 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
- },
- _destroyDatepicker: function (t) {
- var e, i = S(t),
- n = S.data(t, "datepicker");
- 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))
- },
- _enableDatepicker: function (e) {
- var t, i, n = S(e),
- s = S.data(e, "datepicker");
- n.hasClass(this.markerClassName) && ("input" === (t = e.nodeName.toLowerCase()) ? (e.disabled = !1, s.trigger.filter("button").each(function () {
- this.disabled = !1
- }).end().filter("img").css({
- opacity: "1.0",
- cursor: ""
- })) : ("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) {
- return t === e ? null : t
- }))
- },
- _disableDatepicker: function (e) {
- var t, i, n = S(e),
- s = S.data(e, "datepicker");
- n.hasClass(this.markerClassName) && ("input" === (t = e.nodeName.toLowerCase()) ? (e.disabled = !0, s.trigger.filter("button").each(function () {
- this.disabled = !0
- }).end().filter("img").css({
- opacity: "0.5",
- cursor: "default"
- })) : ("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) {
- return t === e ? null : t
- }), this._disabledInputs[this._disabledInputs.length] = e)
- },
- _isDisabledDatepicker: function (t) {
- if (!t) return !1;
- for (var e = 0; this._disabledInputs.length > e; e++)
- if (this._disabledInputs[e] === t) return !0;
- return !1
- },
- _getInst: function (t) {
- try {
- return S.data(t, "datepicker")
- } catch (t) {
- throw "Missing instance data for this datepicker"
- }
- },
- _optionDatepicker: function (t, e, i) {
- var n, s, o, r, a = this._getInst(t);
- 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))))
- },
- _changeDatepicker: function (t, e, i) {
- this._optionDatepicker(t, e, i)
- },
- _refreshDatepicker: function (t) {
- var e = this._getInst(t);
- e && this._updateDatepicker(e)
- },
- _setDateDatepicker: function (t, e) {
- var i = this._getInst(t);
- i && (this._setDate(i, e), this._updateDatepicker(i), this._updateAlternate(i))
- },
- _getDateDatepicker: function (t, e) {
- var i = this._getInst(t);
- return i && !i.inline && this._setDateFromField(i, e), i ? this._getDate(i) : null
- },
- _doKeyDown: function (t) {
- var e, i, n, s = S.datepicker._getInst(t.target),
- o = !0,
- r = s.dpDiv.is(".ui-datepicker-rtl");
- if (s._keyEvent = !0, S.datepicker._datepickerShowing) switch (t.keyCode) {
- case 9:
- S.datepicker._hideDatepicker(), o = !1;
- break;
- case 13:
- 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;
- case 27:
- S.datepicker._hideDatepicker();
- break;
- case 33:
- S.datepicker._adjustDate(t.target, t.ctrlKey ? -S.datepicker._get(s, "stepBigMonths") : -S.datepicker._get(s, "stepMonths"), "M");
- break;
- case 34:
- S.datepicker._adjustDate(t.target, t.ctrlKey ? +S.datepicker._get(s, "stepBigMonths") : +S.datepicker._get(s, "stepMonths"), "M");
- break;
- case 35:
- (t.ctrlKey || t.metaKey) && S.datepicker._clearDate(t.target), o = t.ctrlKey || t.metaKey;
- break;
- case 36:
- (t.ctrlKey || t.metaKey) && S.datepicker._gotoToday(t.target), o = t.ctrlKey || t.metaKey;
- break;
- case 37:
- (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");
- break;
- case 38:
- (t.ctrlKey || t.metaKey) && S.datepicker._adjustDate(t.target, -7, "D"), o = t.ctrlKey || t.metaKey;
- break;
- case 39:
- (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");
- break;
- case 40:
- (t.ctrlKey || t.metaKey) && S.datepicker._adjustDate(t.target, 7, "D"), o = t.ctrlKey || t.metaKey;
- break;
- default:
- o = !1
- } else 36 === t.keyCode && t.ctrlKey ? S.datepicker._showDatepicker(this) : o = !1;
- o && (t.preventDefault(), t.stopPropagation())
- },
- _doKeyPress: function (t) {
- var e, i, n = S.datepicker._getInst(t.target);
- 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
- },
- _doKeyUp: function (t) {
- var e = S.datepicker._getInst(t.target);
- if (e.input.val() !== e.lastVal) try {
- 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))
- } catch (t) {}
- return !0
- },
- _showDatepicker: function (t) {
- var e, i, n, s, o, r, a;
- ("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 () {
- return !(s |= "fixed" === S(this).css("position"))
- }), o = {
- left: S.datepicker._pos[0],
- top: S.datepicker._pos[1]
- }, S.datepicker._pos = null, e.dpDiv.empty(), e.dpDiv.css({
- position: "absolute",
- display: "block",
- top: "-1000px"
- }), S.datepicker._updateDatepicker(e), o = S.datepicker._checkOffset(e, o, s), e.dpDiv.css({
- position: S.datepicker._inDialog && S.blockUI ? "static" : s ? "fixed" : "absolute",
- display: "none",
- left: o.left + "px",
- top: o.top + "px"
- }), e.inline || (r = S.datepicker._get(e, "showAnim"), a = S.datepicker._get(e, "duration"), e.dpDiv.css("z-index", function (t) {
- for (var e, i; t.length && t[0] !== document;) {
- if (("absolute" === (e = t.css("position")) || "relative" === e || "fixed" === e) && (i = parseInt(t.css("zIndex"), 10), !isNaN(i) && 0 !== i)) return i;
- t = t.parent()
- }
- return 0
- }(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)))
- },
- _updateDatepicker: function (t) {
- this.maxRows = 4, (v = t).dpDiv.empty().append(this._generateHTML(t)), this._attachHandlers(t);
- var e, i = this._getNumberOfMonths(t),
- n = i[1],
- s = t.dpDiv.find("." + this._dayOverClass + " a");
- 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 () {
- e === t.yearshtml && t.yearshtml && t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml), e = t.yearshtml = null
- }, 0))
- },
- _shouldFocusInput: function (t) {
- return t.input && t.input.is(":visible") && !t.input.is(":disabled") && !t.input.is(":focus")
- },
- _checkOffset: function (t, e, i) {
- var n = t.dpDiv.outerWidth(),
- s = t.dpDiv.outerHeight(),
- o = t.input ? t.input.outerWidth() : 0,
- r = t.input ? t.input.outerHeight() : 0,
- a = document.documentElement.clientWidth + (i ? 0 : S(document).scrollLeft()),
- l = document.documentElement.clientHeight + (i ? 0 : S(document).scrollTop());
- 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
- },
- _findPos: function (t) {
- 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"];
- return [(e = S(t).offset()).left, e.top]
- },
- _hideDatepicker: function (t) {
- var e, i, n, s, o = this._curInst;
- !o || t && o !== S.data(t, "datepicker") || this._datepickerShowing && (e = this._get(o, "showAnim"), i = this._get(o, "duration"), n = function () {
- S.datepicker._tidyDialog(o)
- }, 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({
- position: "absolute",
- left: "0",
- top: "-100px"
- }), S.blockUI && (S.unblockUI(), S("body").append(this.dpDiv))), this._inDialog = !1)
- },
- _tidyDialog: function (t) {
- t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")
- },
- _checkExternalClick: function (t) {
- if (S.datepicker._curInst) {
- var e = S(t.target),
- i = S.datepicker._getInst(e[0]);
- (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()
- }
- },
- _adjustDate: function (t, e, i) {
- var n = S(t),
- s = this._getInst(n[0]);
- this._isDisabledDatepicker(n[0]) || (this._adjustInstDate(s, e + ("M" === i ? this._get(s, "showCurrentAtPos") : 0), i), this._updateDatepicker(s))
- },
- _gotoToday: function (t) {
- var e, i = S(t),
- n = this._getInst(i[0]);
- 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)
- },
- _selectMonthYear: function (t, e, i) {
- var n = S(t),
- s = this._getInst(n[0]);
- 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)
- },
- _selectDay: function (t, e, i, n) {
- var s, o = S(t);
- 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)))
- },
- _clearDate: function (t) {
- var e = S(t);
- this._selectDate(e, "")
- },
- _selectDate: function (t, e) {
- var i, n = S(t),
- s = this._getInst(n[0]);
- 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)
- },
- _updateAlternate: function (t) {
- var e, i, n, s = this._get(t, "altField");
- 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))
- },
- noWeekends: function (t) {
- var e = t.getDay();
- return [0 < e && e < 6, ""]
- },
- iso8601Week: function (t) {
- var e, i = new Date(t.getTime());
- 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
- },
- parseDate: function (i, o, t) {
- if (null == i || null == o) throw "Invalid arguments";
- if ("" === (o = "object" == _typeof(o) ? "" + o : o + "")) return null;
-
- function r(t) {
- var e = i.length > a + 1 && i.charAt(a + 1) === t;
- return e && a++, e
- }
-
- function e(t) {
- var e = r(t),
- i = "@" === t ? 14 : "!" === t ? 20 : "y" === t && e ? 4 : "o" === t ? 3 : 2,
- n = RegExp("^\\d{" + ("y" === t ? i : 1) + "," + i + "}"),
- s = o.substring(h).match(n);
- if (!s) throw "Missing number at position " + h;
- return h += s[0].length, parseInt(s[0], 10)
- }
-
- function n(t, e, i) {
- var n = -1,
- s = S.map(r(t) ? i : e, function (t, e) {
- return [
- [e, t]
- ]
- }).sort(function (t, e) {
- return -(t[1].length - e[1].length)
- });
- if (S.each(s, function (t, e) {
- var i = e[1];
- return o.substr(h, i.length).toLowerCase() === i.toLowerCase() ? (n = e[0], h += i.length, !1) : void 0
- }), -1 !== n) return n + 1;
- throw "Unknown name at position " + h
- }
-
- function s() {
- if (o.charAt(h) !== i.charAt(a)) throw "Unexpected literal at position " + h;
- h++
- }
- var a, l, c, u, h = 0,
- d = (t ? t.shortYearCutoff : null) || this._defaults.shortYearCutoff,
- p = "string" != typeof d ? d : (new Date).getFullYear() % 100 + parseInt(d, 10),
- f = (t ? t.dayNamesShort : null) || this._defaults.dayNamesShort,
- g = (t ? t.dayNames : null) || this._defaults.dayNames,
- m = (t ? t.monthNamesShort : null) || this._defaults.monthNamesShort,
- v = (t ? t.monthNames : null) || this._defaults.monthNames,
- _ = -1,
- y = -1,
- b = -1,
- w = -1,
- k = !1;
- for (a = 0; i.length > a; a++)
- if (k) "'" !== i.charAt(a) || r("'") ? s() : k = !1;
- else switch (i.charAt(a)) {
- case "d":
- b = e("d");
- break;
- case "D":
- n("D", f, g);
- break;
- case "o":
- w = e("o");
- break;
- case "m":
- y = e("m");
- break;
- case "M":
- y = n("M", m, v);
- break;
- case "y":
- _ = e("y");
- break;
- case "@":
- _ = (u = new Date(e("@"))).getFullYear(), y = u.getMonth() + 1, b = u.getDate();
- break;
- case "!":
- _ = (u = new Date((e("!") - this._ticksTo1970) / 1e4)).getFullYear(), y = u.getMonth() + 1, b = u.getDate();
- break;
- case "'":
- r("'") ? s() : k = !0;
- break;
- default:
- s()
- }
- if (o.length > h && (c = o.substr(h), !/^\s+/.test(c))) throw "Extra/unparsed characters found in date: " + c;
- if (-1 === _ ? _ = (new Date).getFullYear() : _ < 100 && (_ += (new Date).getFullYear() - (new Date).getFullYear() % 100 + (_ <= p ? 0 : -100)), -1 < w)
- for (y = 1, b = w; !(b <= (l = this._getDaysInMonth(_, y - 1)));) y++, b -= l;
- if ((u = this._daylightSavingAdjust(new Date(_, y - 1, b))).getFullYear() !== _ || u.getMonth() + 1 !== y || u.getDate() !== b) throw "Invalid date";
- return u
- },
- ATOM: "yy-mm-dd",
- COOKIE: "D, dd M yy",
- ISO_8601: "yy-mm-dd",
- RFC_822: "D, d M y",
- RFC_850: "DD, dd-M-y",
- RFC_1036: "D, d M y",
- RFC_1123: "D, d M yy",
- RFC_2822: "D, d M yy",
- RSS: "D, d M y",
- TICKS: "!",
- TIMESTAMP: "@",
- W3C: "yy-mm-dd",
- _ticksTo1970: 864e9 * (718685 + Math.floor(492.5) - Math.floor(19.7) + Math.floor(4.925)),
- formatDate: function (i, t, e) {
- if (!t) return "";
-
- function s(t) {
- var e = i.length > r + 1 && i.charAt(r + 1) === t;
- return e && r++, e
- }
-
- function n(t, e, i) {
- var n = "" + e;
- if (s(t))
- for (; i > n.length;) n = "0" + n;
- return n
- }
-
- function o(t, e, i, n) {
- return s(t) ? n[e] : i[e]
- }
- var r, a = (e ? e.dayNamesShort : null) || this._defaults.dayNamesShort,
- l = (e ? e.dayNames : null) || this._defaults.dayNames,
- c = (e ? e.monthNamesShort : null) || this._defaults.monthNamesShort,
- u = (e ? e.monthNames : null) || this._defaults.monthNames,
- h = "",
- d = !1;
- if (t)
- for (r = 0; i.length > r; r++)
- if (d) "'" !== i.charAt(r) || s("'") ? h += i.charAt(r) : d = !1;
- else switch (i.charAt(r)) {
- case "d":
- h += n("d", t.getDate(), 2);
- break;
- case "D":
- h += o("D", t.getDay(), a, l);
- break;
- case "o":
- h += n("o", Math.round((new Date(t.getFullYear(), t.getMonth(), t.getDate()).getTime() - new Date(t.getFullYear(), 0, 0).getTime()) / 864e5), 3);
- break;
- case "m":
- h += n("m", t.getMonth() + 1, 2);
- break;
- case "M":
- h += o("M", t.getMonth(), c, u);
- break;
- case "y":
- h += s("y") ? t.getFullYear() : (t.getFullYear() % 100 < 10 ? "0" : "") + t.getFullYear() % 100;
- break;
- case "@":
- h += t.getTime();
- break;
- case "!":
- h += 1e4 * t.getTime() + this._ticksTo1970;
- break;
- case "'":
- s("'") ? h += "'" : d = !0;
- break;
- default:
- h += i.charAt(r)
- }
- return h
- },
- _possibleChars: function (i) {
- function t(t) {
- var e = i.length > n + 1 && i.charAt(n + 1) === t;
- return e && n++, e
- }
- var n, e = "",
- s = !1;
- for (n = 0; i.length > n; n++)
- if (s) "'" !== i.charAt(n) || t("'") ? e += i.charAt(n) : s = !1;
- else switch (i.charAt(n)) {
- case "d":
- case "m":
- case "y":
- case "@":
- e += "0123456789";
- break;
- case "D":
- case "M":
- return null;
- case "'":
- t("'") ? e += "'" : s = !0;
- break;
- default:
- e += i.charAt(n)
- }
- return e
- },
- _get: function (t, e) {
- return void 0 !== t.settings[e] ? t.settings[e] : this._defaults[e]
- },
- _setDateFromField: function (t, e) {
- if (t.input.val() !== t.lastVal) {
- var i = this._get(t, "dateFormat"),
- n = t.lastVal = t.input ? t.input.val() : null,
- s = this._getDefaultDate(t),
- o = s,
- r = this._getFormatConfig(t);
- try {
- o = this.parseDate(i, n, r) || s
- } catch (t) {
- n = e ? "" : n
- }
- 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)
- }
- },
- _getDefaultDate: function (t) {
- return this._restrictMinMax(t, this._determineDate(t, this._get(t, "defaultDate"), new Date))
- },
- _determineDate: function (a, t, e) {
- var i, n, s = null == t || "" === t ? e : "string" == typeof t ? function (t) {
- try {
- return S.datepicker.parseDate(S.datepicker._get(a, "dateFormat"), t, S.datepicker._getFormatConfig(a))
- } catch (t) {}
- 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;) {
- switch (r[2] || "d") {
- case "d":
- case "D":
- s += parseInt(r[1], 10);
- break;
- case "w":
- case "W":
- s += 7 * parseInt(r[1], 10);
- break;
- case "m":
- case "M":
- n += parseInt(r[1], 10), s = Math.min(s, S.datepicker._getDaysInMonth(i, n));
- break;
- case "y":
- case "Y":
- i += parseInt(r[1], 10), s = Math.min(s, S.datepicker._getDaysInMonth(i, n))
- }
- r = o.exec(t)
- }
- return new Date(i, n, s)
- }(t) : "number" == typeof t ? isNaN(t) ? e : (i = t, (n = new Date).setDate(n.getDate() + i), n) : new Date(t.getTime());
- return (s = s && "Invalid Date" == "" + s ? e : s) && (s.setHours(0), s.setMinutes(0), s.setSeconds(0), s.setMilliseconds(0)), this._daylightSavingAdjust(s)
- },
- _daylightSavingAdjust: function (t) {
- return t ? (t.setHours(12 < t.getHours() ? t.getHours() + 2 : 0), t) : null
- },
- _setDate: function (t, e, i) {
- var n = !e,
- s = t.selectedMonth,
- o = t.selectedYear,
- r = this._restrictMinMax(t, this._determineDate(t, e, new Date));
- 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))
- },
- _getDate: function (t) {
- return !t.currentYear || t.input && "" === t.input.val() ? null : this._daylightSavingAdjust(new Date(t.currentYear, t.currentMonth, t.currentDay))
- },
- _attachHandlers: function (t) {
- var e = this._get(t, "stepMonths"),
- i = "#" + t.id.replace(/\\\\/g, "\\");
- t.dpDiv.find("[data-handler]").map(function () {
- var t = {
- prev: function () {
- S.datepicker._adjustDate(i, -e, "M")
- },
- next: function () {
- S.datepicker._adjustDate(i, +e, "M")
- },
- hide: function () {
- S.datepicker._hideDatepicker()
- },
- today: function () {
- S.datepicker._gotoToday(i)
- },
- selectDay: function () {
- return S.datepicker._selectDay(i, +this.getAttribute("data-month"), +this.getAttribute("data-year"), this), !1
- },
- selectMonth: function () {
- return S.datepicker._selectMonthYear(i, this, "M"), !1
- },
- selectYear: function () {
- return S.datepicker._selectMonthYear(i, this, "Y"), !1
- }
- };
- S(this).on(this.getAttribute("data-event"), t[this.getAttribute("data-handler")])
- })
- },
- _generateHTML: function (t) {
- 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,
- R = this._daylightSavingAdjust(new Date($.getFullYear(), $.getMonth(), $.getDate())),
- F = this._get(t, "isRTL"),
- q = this._get(t, "showButtonPanel"),
- B = this._get(t, "hideIfNoPrevNext"),
- U = this._get(t, "navigationAsDateFormat"),
- Y = this._getNumberOfMonths(t),
- V = this._get(t, "showCurrentAtPos"),
- K = this._get(t, "stepMonths"),
- X = 1 !== Y[0] || 1 !== Y[1],
- Q = this._daylightSavingAdjust(t.currentDay ? new Date(t.currentYear, t.currentMonth, t.currentDay) : new Date(9999, 9, 9)),
- G = this._getMinMaxDate(t, "min"),
- J = this._getMinMaxDate(t, "max"),
- Z = t.drawMonth - V,
- tt = t.drawYear;
- if (Z < 0 && (Z += 12, tt--), J)
- 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--);
- 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++) {
- for (x = "", this.maxRows = 4, C = 0; Y[1] > C; C++) {
- if (T = this._daylightSavingAdjust(new Date(tt, Z, t.selectedDay)), S = " ui-corner-all", D = "", X) {
- if (D += "<div class='ui-datepicker-group", 1 < Y[1]) switch (C) {
- case 0:
- D += " ui-datepicker-group-first", S = " ui-corner-" + (F ? "right" : "left");
- break;
- case Y[1] - 1:
- D += " ui-datepicker-group-last", S = " ui-corner-" + (F ? "left" : "right");
- break;
- default:
- D += " ui-datepicker-group-middle", S = ""
- }
- D += "'>"
- }
- 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>";
- 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++) {
- 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, "'") + "'") + (W ? "" : " data-handler='selectDay' data-event='click' data-month='" + N.getMonth() + "' data-year='" + N.getFullYear() + "'") + ">" + (z && !v ? " " : 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);
- D += H + "</tr>"
- }
- 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>" : "") : "")
- }
- b += x
- }
- return b += c, t._keyEvent = !1, b
- },
- _generateMonthYearHeader: function (t, e, i, n, s, o, r, a) {
- var l, c, u, h, d, p, f, g, m = this._get(t, "changeMonth"),
- v = this._get(t, "changeYear"),
- _ = this._get(t, "showMonthAfterYear"),
- y = "<div class='ui-datepicker-title'>",
- b = "";
- if (o || !m) b += "<span class='ui-datepicker-month'>" + r[e] + "</span>";
- else {
- 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>");
- b += "</select>"
- }
- if (_ || (y += b + (!o && m && v ? "" : " ")), !t.yearshtml)
- if (t.yearshtml = "", o || !v) y += "<span class='ui-datepicker-year'>" + i + "</span>";
- else {
- for (h = this._get(t, "yearRange").split(":"), d = (new Date).getFullYear(), f = (p = function (t) {
- var e = t.match(/c[+\-].*/) ? i + parseInt(t.substring(1), 10) : t.match(/[+\-].*/) ? d + parseInt(t, 10) : parseInt(t, 10);
- return isNaN(e) ? d : e
- })(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>";
- t.yearshtml += "</select>", y += t.yearshtml, t.yearshtml = null
- } return y += this._get(t, "yearSuffix"), _ && (y += (!o && m && v ? "" : " ") + b), y + "</div>"
- },
- _adjustInstDate: function (t, e, i) {
- var n = t.selectedYear + ("Y" === i ? e : 0),
- s = t.selectedMonth + ("M" === i ? e : 0),
- o = Math.min(t.selectedDay, this._getDaysInMonth(n, s)) + ("D" === i ? e : 0),
- r = this._restrictMinMax(t, this._daylightSavingAdjust(new Date(n, s, o)));
- t.selectedDay = r.getDate(), t.drawMonth = t.selectedMonth = r.getMonth(), t.drawYear = t.selectedYear = r.getFullYear(), ("M" === i || "Y" === i) && this._notifyChange(t)
- },
- _restrictMinMax: function (t, e) {
- var i = this._getMinMaxDate(t, "min"),
- n = this._getMinMaxDate(t, "max"),
- s = i && e < i ? i : e;
- return n && n < s ? n : s
- },
- _notifyChange: function (t) {
- var e = this._get(t, "onChangeMonthYear");
- e && e.apply(t.input ? t.input[0] : null, [t.selectedYear, t.selectedMonth + 1, t])
- },
- _getNumberOfMonths: function (t) {
- var e = this._get(t, "numberOfMonths");
- return null == e ? [1, 1] : "number" == typeof e ? [1, e] : e
- },
- _getMinMaxDate: function (t, e) {
- return this._determineDate(t, this._get(t, e + "Date"), null)
- },
- _getDaysInMonth: function (t, e) {
- return 32 - this._daylightSavingAdjust(new Date(t, e, 32)).getDate()
- },
- _getFirstDayOfMonth: function (t, e) {
- return new Date(t, e, 1).getDay()
- },
- _canAdjustMonth: function (t, e, i, n) {
- var s = this._getNumberOfMonths(t),
- o = this._daylightSavingAdjust(new Date(i, n + (e < 0 ? e : s[0] * s[1]), 1));
- return e < 0 && o.setDate(this._getDaysInMonth(o.getFullYear(), o.getMonth())), this._isInRange(t, o)
- },
- _isInRange: function (t, e) {
- var i, n, s = this._getMinMaxDate(t, "min"),
- o = this._getMinMaxDate(t, "max"),
- r = null,
- a = null,
- l = this._get(t, "yearRange");
- 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())
- },
- _getFormatConfig: function (t) {
- var e = this._get(t, "shortYearCutoff");
- return {
- shortYearCutoff: e = "string" != typeof e ? e : (new Date).getFullYear() % 100 + parseInt(e, 10),
- dayNamesShort: this._get(t, "dayNamesShort"),
- dayNames: this._get(t, "dayNames"),
- monthNamesShort: this._get(t, "monthNamesShort"),
- monthNames: this._get(t, "monthNames")
- }
- },
- _formatDate: function (t, e, i, n) {
- e || (t.currentDay = t.selectedDay, t.currentMonth = t.selectedMonth, t.currentYear = t.selectedYear);
- var s = e ? "object" == _typeof(e) ? e : this._daylightSavingAdjust(new Date(n, i, e)) : this._daylightSavingAdjust(new Date(t.currentYear, t.currentMonth, t.currentDay));
- return this.formatDate(this._get(t, "dateFormat"), s, this._getFormatConfig(t))
- }
- }), S.fn.datepicker = function (t) {
- if (!this.length) return this;
- 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);
- var e = Array.prototype.slice.call(arguments, 1);
- 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 () {
- "string" == typeof t ? S.datepicker["_" + t + "Datepicker"].apply(S.datepicker, [this].concat(e)) : S.datepicker._attachDatepicker(this, t)
- }) : S.datepicker["_" + t + "Datepicker"].apply(S.datepicker, [this[0]].concat(e))
- }, 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());
- var y = !1;
- S(document).on("mouseup", function () {
- y = !1
- }), S.widget("ui.mouse", {
- version: "1.12.1",
- options: {
- cancel: "input, textarea, button, select, option",
- distance: 1,
- delay: 0
- },
- _mouseInit: function () {
- var e = this;
- this.element.on("mousedown." + this.widgetName, function (t) {
- return e._mouseDown(t)
- }).on("click." + this.widgetName, function (t) {
- return !0 === S.data(t.target, e.widgetName + ".preventClickEvent") ? (S.removeData(t.target, e.widgetName + ".preventClickEvent"), t.stopImmediatePropagation(), !1) : void 0
- }), this.started = !1
- },
- _mouseDestroy: function () {
- this.element.off("." + this.widgetName), this._mouseMoveDelegate && this.document.off("mousemove." + this.widgetName, this._mouseMoveDelegate).off("mouseup." + this.widgetName, this._mouseUpDelegate)
- },
- _mouseDown: function (t) {
- if (!y) {
- this._mouseMoved = !1, this._mouseStarted && this._mouseUp(t), this._mouseDownEvent = t;
- var e = this,
- i = 1 === t.which,
- n = !("string" != typeof this.options.cancel || !t.target.nodeName) && S(t.target).closest(this.options.cancel).length;
- return i && !n && this._mouseCapture(t) && (this.mouseDelayMet = !this.options.delay, this.mouseDelayMet || (this._mouseDelayTimer = setTimeout(function () {
- e.mouseDelayMet = !0
- }, 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) {
- return e._mouseMove(t)
- }, this._mouseUpDelegate = function (t) {
- return e._mouseUp(t)
- }, this.document.on("mousemove." + this.widgetName, this._mouseMoveDelegate).on("mouseup." + this.widgetName, this._mouseUpDelegate), t.preventDefault(), y = !0)), !0
- }
- },
- _mouseMove: function (t) {
- if (this._mouseMoved) {
- if (S.ui.ie && (!document.documentMode || document.documentMode < 9) && !t.button) return this._mouseUp(t);
- if (!t.which)
- if (t.originalEvent.altKey || t.originalEvent.ctrlKey || t.originalEvent.metaKey || t.originalEvent.shiftKey) this.ignoreMissingWhich = !0;
- else if (!this.ignoreMissingWhich) return this._mouseUp(t)
- }
- 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)
- },
- _mouseUp: function (t) {
- 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()
- },
- _mouseDistanceMet: function (t) {
- return Math.max(Math.abs(this._mouseDownEvent.pageX - t.pageX), Math.abs(this._mouseDownEvent.pageY - t.pageY)) >= this.options.distance
- },
- _mouseDelayMet: function () {
- return this.mouseDelayMet
- },
- _mouseStart: function () {},
- _mouseDrag: function () {},
- _mouseStop: function () {},
- _mouseCapture: function () {
- return !0
- }
- }), S.ui.plugin = {
- add: function (t, e, i) {
- var n, s = S.ui[t].prototype;
- for (n in i) s.plugins[n] = s.plugins[n] || [], s.plugins[n].push([e, i[n]])
- },
- call: function (t, e, i, n) {
- var s, o = t.plugins[e];
- if (o && (n || t.element[0].parentNode && 11 !== t.element[0].parentNode.nodeType))
- for (s = 0; o.length > s; s++) t.options[o[s][0]] && o[s][1].apply(t.element, i)
- }
- }, S.ui.safeBlur = function (t) {
- t && "body" !== t.nodeName.toLowerCase() && S(t).trigger("blur")
- }, S.widget("ui.draggable", S.ui.mouse, {
- version: "1.12.1",
- widgetEventPrefix: "drag",
- options: {
- addClasses: !0,
- appendTo: "parent",
- axis: !1,
- connectToSortable: !1,
- containment: !1,
- cursor: "auto",
- cursorAt: !1,
- grid: !1,
- handle: !1,
- helper: "original",
- iframeFix: !1,
- opacity: !1,
- refreshPositions: !1,
- revert: !1,
- revertDuration: 500,
- scope: "default",
- scroll: !0,
- scrollSensitivity: 20,
- scrollSpeed: 20,
- snap: !1,
- snapMode: "both",
- snapTolerance: 20,
- stack: !1,
- zIndex: !1,
- drag: null,
- start: null,
- stop: null
- },
- _create: function () {
- "original" === this.options.helper && this._setPositionRelative(), this.options.addClasses && this._addClass("ui-draggable"), this._setHandleClassName(), this._mouseInit()
- },
- _setOption: function (t, e) {
- this._super(t, e), "handle" === t && (this._removeHandleClassName(), this._setHandleClassName())
- },
- _destroy: function () {
- return (this.helper || this.element).is(".ui-draggable-dragging") ? void(this.destroyOnClear = !0) : (this._removeHandleClassName(), void this._mouseDestroy())
- },
- _mouseCapture: function (t) {
- var e = this.options;
- 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))
- },
- _blockFrames: function (t) {
- this.iframeBlocks = this.document.find(t).map(function () {
- var t = S(this);
- return S("<div>").css("position", "absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]
- })
- },
- _unblockFrames: function () {
- this.iframeBlocks && (this.iframeBlocks.remove(), delete this.iframeBlocks)
- },
- _blurActiveElement: function (t) {
- var e = S.ui.safeActiveElement(this.document[0]);
- S(t.target).closest(e).length || S.ui.safeBlur(e)
- },
- _mouseStart: function (t) {
- var e = this.options;
- 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 () {
- return "fixed" === S(this).css("position")
- }).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)
- },
- _refreshOffsets: function (t) {
- this.offset = {
- top: this.positionAbs.top - this.margins.top,
- left: this.positionAbs.left - this.margins.left,
- scroll: !1,
- parent: this._getParentOffset(),
- relative: this._getRelativeOffset()
- }, this.offset.click = {
- left: t.pageX - this.offset.left,
- top: t.pageY - this.offset.top
- }
- },
- _mouseDrag: function (t, e) {
- if (this.hasFixedAncestor && (this.offset.parent = this._getParentOffset()), this.position = this._generatePosition(t, !0), this.positionAbs = this._convertPositionTo("absolute"), !e) {
- var i = this._uiHash();
- if (!1 === this._trigger("drag", t, i)) return this._mouseUp(new S.Event("mouseup", t)), !1;
- this.position = i.position
- }
- 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
- },
- _mouseStop: function (t) {
- var e = this,
- i = !1;
- 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 () {
- !1 !== e._trigger("stop", t) && e._clear()
- }) : !1 !== this._trigger("stop", t) && this._clear(), !1
- },
- _mouseUp: function (t) {
- 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)
- },
- cancel: function () {
- return this.helper.is(".ui-draggable-dragging") ? this._mouseUp(new S.Event("mouseup", {
- target: this.element[0]
- })) : this._clear(), this
- },
- _getHandle: function (t) {
- return !this.options.handle || !!S(t.target).closest(this.element.find(this.options.handle)).length
- },
- _setHandleClassName: function () {
- this.handleElement = this.options.handle ? this.element.find(this.options.handle) : this.element, this._addClass(this.handleElement, "ui-draggable-handle")
- },
- _removeHandleClassName: function () {
- this._removeClass(this.handleElement, "ui-draggable-handle")
- },
- _createHelper: function (t) {
- var e = this.options,
- i = S.isFunction(e.helper),
- n = i ? S(e.helper.apply(this.element[0], [t])) : "clone" === e.helper ? this.element.clone().removeAttr("id") : this.element;
- 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
- },
- _setPositionRelative: function () {
- /^(?:r|a|f)/.test(this.element.css("position")) || (this.element[0].style.position = "relative")
- },
- _adjustOffsetFromHelper: function (t) {
- "string" == typeof t && (t = t.split(" ")), S.isArray(t) && (t = {
- left: +t[0],
- top: +t[1] || 0
- }), "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)
- },
- _isRootNode: function (t) {
- return /(html|body)/i.test(t.tagName) || t === this.document[0]
- },
- _getParentOffset: function () {
- var t = this.offsetParent.offset(),
- e = this.document[0];
- 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 = {
- top: 0,
- left: 0
- }), {
- top: t.top + (parseInt(this.offsetParent.css("borderTopWidth"), 10) || 0),
- left: t.left + (parseInt(this.offsetParent.css("borderLeftWidth"), 10) || 0)
- }
- },
- _getRelativeOffset: function () {
- if ("relative" !== this.cssPosition) return {
- top: 0,
- left: 0
- };
- var t = this.element.position(),
- e = this._isRootNode(this.scrollParent[0]);
- return {
- top: t.top - (parseInt(this.helper.css("top"), 10) || 0) + (e ? 0 : this.scrollParent.scrollTop()),
- left: t.left - (parseInt(this.helper.css("left"), 10) || 0) + (e ? 0 : this.scrollParent.scrollLeft())
- }
- },
- _cacheMargins: function () {
- this.margins = {
- left: parseInt(this.element.css("marginLeft"), 10) || 0,
- top: parseInt(this.element.css("marginTop"), 10) || 0,
- right: parseInt(this.element.css("marginRight"), 10) || 0,
- bottom: parseInt(this.element.css("marginBottom"), 10) || 0
- }
- },
- _cacheHelperProportions: function () {
- this.helperProportions = {
- width: this.helper.outerWidth(),
- height: this.helper.outerHeight()
- }
- },
- _setContainment: function () {
- var t, e, i, n = this.options,
- s = this.document[0];
- 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)
- },
- _convertPositionTo: function (t, e) {
- e || (e = this.position);
- var i = "absolute" === t ? 1 : -1,
- n = this._isRootNode(this.scrollParent[0]);
- return {
- 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,
- 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
- }
- },
- _generatePosition: function (t, e) {
- var i, n, s, o, r = this.options,
- a = this._isRootNode(this.scrollParent[0]),
- l = t.pageX,
- c = t.pageY;
- return a && this.offset.scroll || (this.offset.scroll = {
- top: this.scrollParent.scrollTop(),
- left: this.scrollParent.scrollLeft()
- }), 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)), {
- 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),
- 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)
- }
- },
- _clear: function () {
- 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()
- },
- _trigger: function (t, e, i) {
- 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)
- },
- plugins: {},
- _uiHash: function () {
- return {
- helper: this.helper,
- position: this.position,
- originalPosition: this.originalPosition,
- offset: this.positionAbs
- }
- }
- }), S.ui.plugin.add("draggable", "connectToSortable", {
- start: function (e, t, i) {
- var n = S.extend({}, t, {
- item: i.element
- });
- i.sortables = [], S(i.options.connectToSortable).each(function () {
- var t = S(this).sortable("instance");
- t && !t.options.disabled && (i.sortables.push(t), t.refreshPositions(), t._trigger("activate", e, n))
- })
- },
- stop: function (e, t, i) {
- var n = S.extend({}, t, {
- item: i.element
- });
- i.cancelHelperRemoval = !1, S.each(i.sortables, function () {
- var t = this;
- t.isOver ? (t.isOver = 0, i.cancelHelperRemoval = !0, t.cancelHelperRemoval = !1, t._storedCSS = {
- position: t.placeholder.css("position"),
- top: t.placeholder.css("top"),
- left: t.placeholder.css("left")
- }, t._mouseStop(e), t.options.helper = t.options._helper) : (t.cancelHelperRemoval = !0, t._trigger("deactivate", e, n))
- })
- },
- drag: function (i, n, s) {
- S.each(s.sortables, function () {
- var t = !1,
- e = this;
- 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 () {
- 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
- })), 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 () {
- return n.helper[0]
- }, 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 () {
- this.refreshPositions()
- }), 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 () {
- this.refreshPositions()
- }))
- })
- }
- }), S.ui.plugin.add("draggable", "cursor", {
- start: function (t, e, i) {
- var n = S("body"),
- s = i.options;
- n.css("cursor") && (s._cursor = n.css("cursor")), n.css("cursor", s.cursor)
- },
- stop: function (t, e, i) {
- var n = i.options;
- n._cursor && S("body").css("cursor", n._cursor)
- }
- }), S.ui.plugin.add("draggable", "opacity", {
- start: function (t, e, i) {
- var n = S(e.helper),
- s = i.options;
- n.css("opacity") && (s._opacity = n.css("opacity")), n.css("opacity", s.opacity)
- },
- stop: function (t, e, i) {
- var n = i.options;
- n._opacity && S(e.helper).css("opacity", n._opacity)
- }
- }), S.ui.plugin.add("draggable", "scroll", {
- start: function (t, e, i) {
- i.scrollParentNotHidden || (i.scrollParentNotHidden = i.helper.scrollParent(!1)), i.scrollParentNotHidden[0] !== i.document[0] && "HTML" !== i.scrollParentNotHidden[0].tagName && (i.overflowOffset = i.scrollParentNotHidden.offset())
- },
- drag: function (t, e, i) {
- var n = i.options,
- s = !1,
- o = i.scrollParentNotHidden[0],
- r = i.document[0];
- 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)
- }
- }), S.ui.plugin.add("draggable", "snap", {
- start: function (t, e, i) {
- var n = i.options;
- i.snapElements = [], S(n.snap.constructor !== String ? n.snap.items || ":data(ui-draggable)" : n.snap).each(function () {
- var t = S(this),
- e = t.offset();
- this !== i.element[0] && i.snapElements.push({
- item: this,
- width: t.outerWidth(),
- height: t.outerHeight(),
- top: e.top,
- left: e.left
- })
- })
- },
- drag: function (t, e, i) {
- var n, s, o, r, a, l, c, u, h, d, p = i.options,
- f = p.snapTolerance,
- g = e.offset.left,
- m = g + i.helperProportions.width,
- v = e.offset.top,
- _ = v + i.helperProportions.height;
- 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(), {
- snapItem: i.snapElements[h].item
- })), 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", {
- top: c - i.helperProportions.height,
- left: 0
- }).top), s && (e.position.top = i._convertPositionTo("relative", {
- top: u,
- left: 0
- }).top), o && (e.position.left = i._convertPositionTo("relative", {
- top: 0,
- left: a - i.helperProportions.width
- }).left), r && (e.position.left = i._convertPositionTo("relative", {
- top: 0,
- left: l
- }).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", {
- top: c,
- left: 0
- }).top), s && (e.position.top = i._convertPositionTo("relative", {
- top: u - i.helperProportions.height,
- left: 0
- }).top), o && (e.position.left = i._convertPositionTo("relative", {
- top: 0,
- left: a
- }).left), r && (e.position.left = i._convertPositionTo("relative", {
- top: 0,
- left: l - i.helperProportions.width
- }).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(), {
- snapItem: i.snapElements[h].item
- })), i.snapElements[h].snapping = n || s || o || r || d)
- }
- }), S.ui.plugin.add("draggable", "stack", {
- start: function (t, e, i) {
- var n, s = i.options,
- o = S.makeArray(S(s.stack)).sort(function (t, e) {
- return (parseInt(S(t).css("zIndex"), 10) || 0) - (parseInt(S(e).css("zIndex"), 10) || 0)
- });
- o.length && (n = parseInt(S(o[0]).css("zIndex"), 10) || 0, S(o).each(function (t) {
- S(this).css("zIndex", n + t)
- }), this.css("zIndex", n + o.length))
- }
- }), S.ui.plugin.add("draggable", "zIndex", {
- start: function (t, e, i) {
- var n = S(e.helper),
- s = i.options;
- n.css("zIndex") && (s._zIndex = n.css("zIndex")), n.css("zIndex", s.zIndex)
- },
- stop: function (t, e, i) {
- var n = i.options;
- n._zIndex && S(e.helper).css("zIndex", n._zIndex)
- }
- }), S.ui.draggable, S.widget("ui.resizable", S.ui.mouse, {
- version: "1.12.1",
- widgetEventPrefix: "resize",
- options: {
- alsoResize: !1,
- animate: !1,
- animateDuration: "slow",
- animateEasing: "swing",
- aspectRatio: !1,
- autoHide: !1,
- classes: {
- "ui-resizable-se": "ui-icon ui-icon-gripsmall-diagonal-se"
- },
- containment: !1,
- ghost: !1,
- grid: !1,
- handles: "e,s,se",
- helper: !1,
- maxHeight: null,
- maxWidth: null,
- minHeight: 10,
- minWidth: 10,
- zIndex: 90,
- resize: null,
- start: null,
- stop: null
- },
- _num: function (t) {
- return parseFloat(t) || 0
- },
- _isNumber: function (t) {
- return !isNaN(parseFloat(t))
- },
- _hasScroll: function (t, e) {
- if ("hidden" === S(t).css("overflow")) return !1;
- var i = e && "left" === e ? "scrollLeft" : "scrollTop",
- n = !1;
- return 0 < t[i] || (t[i] = 1, n = 0 < t[i], t[i] = 0, n)
- },
- _create: function () {
- var t, e = this.options,
- i = this;
- this._addClass("ui-resizable"), S.extend(this, {
- _aspectRatio: !!e.aspectRatio,
- aspectRatio: e.aspectRatio,
- originalElement: this.element,
- _proportionallyResizeElements: [],
- _helper: e.helper || e.ghost || e.animate ? e.helper || "ui-resizable-helper" : null
- }), 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({
- position: this.element.css("position"),
- width: this.element.outerWidth(),
- height: this.element.outerHeight(),
- top: this.element.css("top"),
- left: this.element.css("left")
- })), this.element = this.element.parent().data("ui-resizable", this.element.resizable("instance")), this.elementIsWrapper = !0, t = {
- marginTop: this.originalElement.css("marginTop"),
- marginRight: this.originalElement.css("marginRight"),
- marginBottom: this.originalElement.css("marginBottom"),
- marginLeft: this.originalElement.css("marginLeft")
- }, 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({
- position: "static",
- zoom: 1,
- display: "block"
- })), this.originalElement.css(t), this._proportionallyResize()), this._setupHandles(), e.autoHide && S(this.element).on("mouseenter", function () {
- e.disabled || (i._removeClass("ui-resizable-autohide"), i._handles.show())
- }).on("mouseleave", function () {
- e.disabled || i.resizing || (i._addClass("ui-resizable-autohide"), i._handles.hide())
- }), this._mouseInit()
- },
- _destroy: function () {
- this._mouseDestroy();
-
- function t(t) {
- S(t).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()
- }
- var e;
- return this.elementIsWrapper && (t(this.element), e = this.element, this.originalElement.css({
- position: e.css("position"),
- width: e.outerWidth(),
- height: e.outerHeight(),
- top: e.css("top"),
- left: e.css("left")
- }).insertAfter(e), e.remove()), this.originalElement.css("resize", this.originalResizeStyle), t(this.originalElement), this
- },
- _setOption: function (t, e) {
- switch (this._super(t, e), t) {
- case "handles":
- this._removeHandles(), this._setupHandles()
- }
- },
- _setupHandles: function () {
- var t, e, i, n, s, o = this.options,
- r = this;
- if (this.handles = o.handles || (S(".ui-resizable-handle", this.element).length ? {
- n: ".ui-resizable-n",
- e: ".ui-resizable-e",
- s: ".ui-resizable-s",
- w: ".ui-resizable-w",
- se: ".ui-resizable-se",
- sw: ".ui-resizable-sw",
- ne: ".ui-resizable-ne",
- nw: ".ui-resizable-nw"
- } : "e,s,se"), this._handles = S(), this.handles.constructor === String)
- 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({
- zIndex: o.zIndex
- }), this.handles[t] = ".ui-resizable-" + t, this.element.append(s);
- this._renderAxis = function (t) {
- var e, i, n, s;
- 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], {
- mousedown: r._mouseDown
- })), 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])
- }, this._renderAxis(this.element), this._handles = this._handles.add(this.element.find(".ui-resizable-handle")), this._handles.disableSelection(), this._handles.on("mouseover", function () {
- 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")
- }), o.autoHide && (this._handles.hide(), this._addClass("ui-resizable-autohide"))
- },
- _removeHandles: function () {
- this._handles.remove()
- },
- _mouseCapture: function (t) {
- var e, i, n = !1;
- for (e in this.handles)((i = S(this.handles[e])[0]) === t.target || S.contains(i, t.target)) && (n = !0);
- return !this.options.disabled && n
- },
- _mouseStart: function (t) {
- var e, i, n, s = this.options,
- o = this.element;
- 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 = {
- left: e,
- top: i
- }, this.size = this._helper ? {
- width: this.helper.width(),
- height: this.helper.height()
- } : {
- width: o.width(),
- height: o.height()
- }, this.originalSize = this._helper ? {
- width: o.outerWidth(),
- height: o.outerHeight()
- } : {
- width: o.width(),
- height: o.height()
- }, this.sizeDiff = {
- width: o.outerWidth() - o.width(),
- height: o.outerHeight() - o.height()
- }, this.originalPosition = {
- left: e,
- top: i
- }, this.originalMousePosition = {
- left: t.pageX,
- top: t.pageY
- }, 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
- },
- _mouseDrag: function (t) {
- var e, i, n = this.originalMousePosition,
- s = this.axis,
- o = t.pageX - n.left || 0,
- r = t.pageY - n.top || 0,
- a = this._change[s];
- 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
- },
- _mouseStop: function (t) {
- this.resizing = !1;
- var e, i, n, s, o, r, a, l = this.options,
- c = this;
- 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 = {
- width: c.helper.width() - s,
- height: c.helper.height() - n
- }, 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, {
- top: a,
- left: r
- })), 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
- },
- _updatePrevProperties: function () {
- this.prevPosition = {
- top: this.position.top,
- left: this.position.left
- }, this.prevSize = {
- width: this.size.width,
- height: this.size.height
- }
- },
- _applyChanges: function () {
- var t = {};
- 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
- },
- _updateVirtualBoundaries: function (t) {
- var e, i, n, s, o, r = this.options;
- o = {
- minWidth: this._isNumber(r.minWidth) ? r.minWidth : 0,
- maxWidth: this._isNumber(r.maxWidth) ? r.maxWidth : 1 / 0,
- minHeight: this._isNumber(r.minHeight) ? r.minHeight : 0,
- maxHeight: this._isNumber(r.maxHeight) ? r.maxHeight : 1 / 0
- }, (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
- },
- _updateCache: function (t) {
- 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)
- },
- _updateRatio: function (t) {
- var e = this.position,
- i = this.size,
- n = this.axis;
- 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
- },
- _respectSize: function (t) {
- var e = this._vBoundaries,
- i = this.axis,
- n = this._isNumber(t.width) && e.maxWidth && e.maxWidth < t.width,
- s = this._isNumber(t.height) && e.maxHeight && e.maxHeight < t.height,
- o = this._isNumber(t.width) && e.minWidth && e.minWidth > t.width,
- r = this._isNumber(t.height) && e.minHeight && e.minHeight > t.height,
- a = this.originalPosition.left + this.originalSize.width,
- l = this.originalPosition.top + this.originalSize.height,
- c = /sw|nw|w/.test(i),
- u = /nw|ne|n/.test(i);
- 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
- },
- _getPaddingPlusBorderDimensions: function (t) {
- 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;
- return {
- height: i[0] + i[2],
- width: i[1] + i[3]
- }
- },
- _proportionallyResize: function () {
- if (this._proportionallyResizeElements.length)
- 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({
- height: i.height() - this.outerDimensions.height || 0,
- width: i.width() - this.outerDimensions.width || 0
- })
- },
- _renderProxy: function () {
- var t = this.element,
- e = this.options;
- 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({
- width: this.element.outerWidth(),
- height: this.element.outerHeight(),
- position: "absolute",
- left: this.elementOffset.left + "px",
- top: this.elementOffset.top + "px",
- zIndex: ++e.zIndex
- }), this.helper.appendTo("body").disableSelection()) : this.helper = this.element
- },
- _change: {
- e: function (t, e) {
- return {
- width: this.originalSize.width + e
- }
- },
- w: function (t, e) {
- var i = this.originalSize;
- return {
- left: this.originalPosition.left + e,
- width: i.width - e
- }
- },
- n: function (t, e, i) {
- var n = this.originalSize,
- s = this.originalPosition;
- return {
- top: s.top + i,
- height: n.height - i
- }
- },
- s: function (t, e, i) {
- return {
- height: this.originalSize.height + i
- }
- },
- se: function (t, e, i) {
- return S.extend(this._change.s.apply(this, arguments), this._change.e.apply(this, [t, e, i]))
- },
- sw: function (t, e, i) {
- return S.extend(this._change.s.apply(this, arguments), this._change.w.apply(this, [t, e, i]))
- },
- ne: function (t, e, i) {
- return S.extend(this._change.n.apply(this, arguments), this._change.e.apply(this, [t, e, i]))
- },
- nw: function (t, e, i) {
- return S.extend(this._change.n.apply(this, arguments), this._change.w.apply(this, [t, e, i]))
- }
- },
- _propagate: function (t, e) {
- S.ui.plugin.call(this, t, [e, this.ui()]), "resize" !== t && this._trigger(t, e, this.ui())
- },
- plugins: {},
- ui: function () {
- return {
- originalElement: this.originalElement,
- element: this.element,
- helper: this.helper,
- position: this.position,
- size: this.size,
- originalSize: this.originalSize,
- originalPosition: this.originalPosition
- }
- }
- }), S.ui.plugin.add("resizable", "animate", {
- stop: function (e) {
- var i = S(this).resizable("instance"),
- t = i.options,
- n = i._proportionallyResizeElements,
- s = n.length && /textarea/i.test(n[0].nodeName),
- o = s && i._hasScroll(n[0], "left") ? 0 : i.sizeDiff.height,
- r = s ? 0 : i.sizeDiff.width,
- a = {
- width: i.size.width - r,
- height: i.size.height - o
- },
- l = parseFloat(i.element.css("left")) + (i.position.left - i.originalPosition.left) || null,
- c = parseFloat(i.element.css("top")) + (i.position.top - i.originalPosition.top) || null;
- i.element.animate(S.extend(a, c && l ? {
- top: c,
- left: l
- } : {}), {
- duration: t.animateDuration,
- easing: t.animateEasing,
- step: function () {
- var t = {
- width: parseFloat(i.element.css("width")),
- height: parseFloat(i.element.css("height")),
- top: parseFloat(i.element.css("top")),
- left: parseFloat(i.element.css("left"))
- };
- n && n.length && S(n[0]).css({
- width: t.width,
- height: t.height
- }), i._updateCache(t), i._propagate("resize", e)
- }
- })
- }
- }), S.ui.plugin.add("resizable", "containment", {
- start: function () {
- var i, n, t, e, s, o, r, a = S(this).resizable("instance"),
- l = a.options,
- c = a.element,
- u = l.containment,
- h = u instanceof S ? u.get(0) : /parent/.test(u) ? c.parent().get(0) : u;
- h && (a.containerElement = S(h), /document/.test(u) || u === document ? (a.containerOffset = {
- left: 0,
- top: 0
- }, a.containerPosition = {
- left: 0,
- top: 0
- }, a.parentData = {
- element: S(document),
- left: 0,
- top: 0,
- width: S(document).width(),
- height: S(document).height() || document.body.parentNode.scrollHeight
- }) : (i = S(h), n = [], S(["Top", "Right", "Left", "Bottom"]).each(function (t, e) {
- n[t] = a._num(i.css("padding" + e))
- }), a.containerOffset = i.offset(), a.containerPosition = i.position(), a.containerSize = {
- height: i.innerHeight() - n[3],
- width: i.innerWidth() - n[1]
- }, 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 = {
- element: h,
- left: t.left,
- top: t.top,
- width: o,
- height: r
- }))
- },
- resize: function (t) {
- var e, i, n, s, o = S(this).resizable("instance"),
- r = o.options,
- a = o.containerOffset,
- l = o.position,
- c = o._aspectRatio || t.shiftKey,
- u = {
- top: 0,
- left: 0
- },
- h = o.containerElement,
- d = !0;
- 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)
- },
- stop: function () {
- var t = S(this).resizable("instance"),
- e = t.options,
- i = t.containerOffset,
- n = t.containerPosition,
- s = t.containerElement,
- o = S(t.helper),
- r = o.offset(),
- a = o.outerWidth() - t.sizeDiff.width,
- l = o.outerHeight() - t.sizeDiff.height;
- t._helper && !e.animate && /relative/.test(s.css("position")) && S(this).css({
- left: r.left - n.left - i.left,
- width: a,
- height: l
- }), t._helper && !e.animate && /static/.test(s.css("position")) && S(this).css({
- left: r.left - n.left - i.left,
- width: a,
- height: l
- })
- }
- }), S.ui.plugin.add("resizable", "alsoResize", {
- start: function () {
- var t = S(this).resizable("instance").options;
- S(t.alsoResize).each(function () {
- var t = S(this);
- t.data("ui-resizable-alsoresize", {
- width: parseFloat(t.width()),
- height: parseFloat(t.height()),
- left: parseFloat(t.css("left")),
- top: parseFloat(t.css("top"))
- })
- })
- },
- resize: function (t, i) {
- var e = S(this).resizable("instance"),
- n = e.options,
- s = e.originalSize,
- o = e.originalPosition,
- r = {
- height: e.size.height - s.height || 0,
- width: e.size.width - s.width || 0,
- top: e.position.top - o.top || 0,
- left: e.position.left - o.left || 0
- };
- S(n.alsoResize).each(function () {
- var t = S(this),
- n = S(this).data("ui-resizable-alsoresize"),
- s = {},
- e = t.parents(i.originalElement[0]).length ? ["width", "height"] : ["width", "height", "top", "left"];
- S.each(e, function (t, e) {
- var i = (n[e] || 0) + (r[e] || 0);
- i && 0 <= i && (s[e] = i || null)
- }), t.css(s)
- })
- },
- stop: function () {
- S(this).removeData("ui-resizable-alsoresize")
- }
- }), S.ui.plugin.add("resizable", "ghost", {
- start: function () {
- var t = S(this).resizable("instance"),
- e = t.size;
- t.ghost = t.originalElement.clone(), t.ghost.css({
- opacity: .25,
- display: "block",
- position: "relative",
- height: e.height,
- width: e.width,
- margin: 0,
- left: 0,
- top: 0
- }), 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)
- },
- resize: function () {
- var t = S(this).resizable("instance");
- t.ghost && t.ghost.css({
- position: "relative",
- height: t.size.height,
- width: t.size.width
- })
- },
- stop: function () {
- var t = S(this).resizable("instance");
- t.ghost && t.helper && t.helper.get(0).removeChild(t.ghost.get(0))
- }
- }), S.ui.plugin.add("resizable", "grid", {
- resize: function () {
- var t, e = S(this).resizable("instance"),
- i = e.options,
- n = e.size,
- s = e.originalSize,
- o = e.originalPosition,
- r = e.axis,
- a = "number" == typeof i.grid ? [i.grid, i.grid] : i.grid,
- l = a[0] || 1,
- c = a[1] || 1,
- u = Math.round((n.width - s.width) / l) * l,
- h = Math.round((n.height - s.height) / c) * c,
- d = s.width + u,
- p = s.height + h,
- f = i.maxWidth && d > i.maxWidth,
- g = i.maxHeight && p > i.maxHeight,
- m = i.minWidth && i.minWidth > d,
- v = i.minHeight && i.minHeight > p;
- 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))
- }
- }), S.ui.resizable, S.widget("ui.dialog", {
- version: "1.12.1",
- options: {
- appendTo: "body",
- autoOpen: !0,
- buttons: [],
- classes: {
- "ui-dialog": "ui-corner-all",
- "ui-dialog-titlebar": "ui-corner-all"
- },
- closeOnEscape: !0,
- closeText: "Close",
- draggable: !0,
- hide: null,
- height: "auto",
- maxHeight: null,
- maxWidth: null,
- minHeight: 150,
- minWidth: 150,
- modal: !1,
- position: {
- my: "center",
- at: "center",
- of: window,
- collision: "fit",
- using: function (t) {
- var e = S(this).css(t).offset().top;
- e < 0 && S(this).css("top", t.top - e)
- }
- },
- resizable: !0,
- show: null,
- title: null,
- width: 300,
- beforeClose: null,
- close: null,
- drag: null,
- dragStart: null,
- dragStop: null,
- focus: null,
- open: null,
- resize: null,
- resizeStart: null,
- resizeStop: null
- },
- sizeRelatedOptions: {
- buttons: !0,
- height: !0,
- maxHeight: !0,
- maxWidth: !0,
- minHeight: !0,
- minWidth: !0,
- width: !0
- },
- resizableRelatedOptions: {
- maxHeight: !0,
- maxWidth: !0,
- minHeight: !0,
- minWidth: !0
- },
- _create: function () {
- this.originalCss = {
- display: this.element[0].style.display,
- width: this.element[0].style.width,
- minHeight: this.element[0].style.minHeight,
- maxHeight: this.element[0].style.maxHeight,
- height: this.element[0].style.height
- }, this.originalPosition = {
- parent: this.element.parent(),
- index: this.element.parent().children().index(this.element)
- }, 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()
- },
- _init: function () {
- this.options.autoOpen && this.open()
- },
- _appendTo: function () {
- var t = this.options.appendTo;
- return t && (t.jquery || t.nodeType) ? S(t) : this.document.find(t || "body").eq(0)
- },
- _destroy: function () {
- var t, e = this.originalPosition;
- 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)
- },
- widget: function () {
- return this.uiDialog
- },
- disable: S.noop,
- enable: S.noop,
- close: function (t) {
- var e = this;
- 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 () {
- e._trigger("close", t)
- }))
- },
- isOpen: function () {
- return this._isOpen
- },
- moveToTop: function () {
- this._moveToTop()
- },
- _moveToTop: function (t, e) {
- var i = !1,
- n = this.uiDialog.siblings(".ui-front:visible").map(function () {
- return +S(this).css("z-index")
- }).get(),
- s = Math.max.apply(null, n);
- return s >= +this.uiDialog.css("z-index") && (this.uiDialog.css("z-index", s + 1), i = !0), i && !e && this._trigger("focus", t), i
- },
- open: function () {
- var t = this;
- 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 () {
- t._focusTabbable(), t._trigger("focus")
- }), this._makeFocusTarget(), void this._trigger("open"))
- },
- _focusTabbable: function () {
- var t = this._focusedElement;
- 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")
- },
- _keepFocus: function (t) {
- function e() {
- var t = S.ui.safeActiveElement(this.document[0]);
- this.uiDialog[0] === t || S.contains(this.uiDialog[0], t) || this._focusTabbable()
- }
- t.preventDefault(), e.call(this), this._delay(e)
- },
- _createWrapper: function () {
- this.uiDialog = S("<div>").hide().attr({
- tabIndex: -1,
- role: "dialog"
- }).appendTo(this._appendTo()), this._addClass(this.uiDialog, "ui-dialog", "ui-widget ui-widget-content ui-front"), this._on(this.uiDialog, {
- keydown: function (t) {
- if (this.options.closeOnEscape && !t.isDefaultPrevented() && t.keyCode && t.keyCode === S.ui.keyCode.ESCAPE) return t.preventDefault(), void this.close(t);
- if (t.keyCode === S.ui.keyCode.TAB && !t.isDefaultPrevented()) {
- var e = this.uiDialog.find(":tabbable"),
- i = e.filter(":first"),
- n = e.filter(":last");
- 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 () {
- n.trigger("focus")
- }), t.preventDefault()) : (this._delay(function () {
- i.trigger("focus")
- }), t.preventDefault())
- }
- },
- mousedown: function (t) {
- this._moveToTop(t) && this._focusTabbable()
- }
- }), this.element.find("[aria-describedby]").length || this.uiDialog.attr({
- "aria-describedby": this.element.uniqueId().attr("id")
- })
- },
- _createTitlebar: function () {
- var t;
- this.uiDialogTitlebar = S("<div>"), this._addClass(this.uiDialogTitlebar, "ui-dialog-titlebar", "ui-widget-header ui-helper-clearfix"), this._on(this.uiDialogTitlebar, {
- mousedown: function (t) {
- S(t.target).closest(".ui-dialog-titlebar-close") || this.uiDialog.trigger("focus")
- }
- }), this.uiDialogTitlebarClose = S("<button type='button'></button>").button({
- label: S("<a>").text(this.options.closeText).html(),
- icon: "ui-icon-closethick",
- showLabel: !1
- }).appendTo(this.uiDialogTitlebar), this._addClass(this.uiDialogTitlebarClose, "ui-dialog-titlebar-close"), this._on(this.uiDialogTitlebarClose, {
- click: function (t) {
- t.preventDefault(), this.close(t)
- }
- }), t = S("<span>").uniqueId().prependTo(this.uiDialogTitlebar), this._addClass(t, "ui-dialog-title"), this._title(t), this.uiDialogTitlebar.prependTo(this.uiDialog), this.uiDialog.attr({
- "aria-labelledby": t.attr("id")
- })
- },
- _title: function (t) {
- this.options.title ? t.text(this.options.title) : t.html(" ")
- },
- _createButtonPane: function () {
- 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()
- },
- _createButtons: function () {
- var s = this,
- t = this.options.buttons;
- 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) {
- var i, n;
- e = S.isFunction(e) ? {
- click: e,
- text: t
- } : e, e = S.extend({
- type: "button"
- }, e), i = e.click, n = {
- icon: e.icon,
- iconPosition: e.iconPosition,
- showLabel: e.showLabel,
- icons: e.icons,
- text: e.text
- }, 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 () {
- i.apply(s.element[0], arguments)
- })
- }), this._addClass(this.uiDialog, "ui-dialog-buttons"), void this.uiDialogButtonPane.appendTo(this.uiDialog))
- },
- _makeDraggable: function () {
- function s(t) {
- return {
- position: t.position,
- offset: t.offset
- }
- }
- var o = this,
- r = this.options;
- this.uiDialog.draggable({
- cancel: ".ui-dialog-content, .ui-dialog-titlebar-close",
- handle: ".ui-dialog-titlebar",
- containment: "document",
- start: function (t, e) {
- o._addClass(S(this), "ui-dialog-dragging"), o._blockFrames(), o._trigger("dragStart", t, s(e))
- },
- drag: function (t, e) {
- o._trigger("drag", t, s(e))
- },
- stop: function (t, e) {
- var i = e.offset.left - o.document.scrollLeft(),
- n = e.offset.top - o.document.scrollTop();
- r.position = {
- my: "left top",
- at: "left" + (0 <= i ? "+" : "") + i + " top" + (0 <= n ? "+" : "") + n,
- of: o.window
- }, o._removeClass(S(this), "ui-dialog-dragging"), o._unblockFrames(), o._trigger("dragStop", t, s(e))
- }
- })
- },
- _makeResizable: function () {
- function o(t) {
- return {
- originalPosition: t.originalPosition,
- originalSize: t.originalSize,
- position: t.position,
- size: t.size
- }
- }
- var r = this,
- a = this.options,
- t = a.resizable,
- e = this.uiDialog.css("position"),
- i = "string" == typeof t ? t : "n,e,s,w,se,sw,ne,nw";
- this.uiDialog.resizable({
- cancel: ".ui-dialog-content",
- containment: "document",
- alsoResize: this.element,
- maxWidth: a.maxWidth,
- maxHeight: a.maxHeight,
- minWidth: a.minWidth,
- minHeight: this._minHeight(),
- handles: i,
- start: function (t, e) {
- r._addClass(S(this), "ui-dialog-resizing"), r._blockFrames(), r._trigger("resizeStart", t, o(e))
- },
- resize: function (t, e) {
- r._trigger("resize", t, o(e))
- },
- stop: function (t, e) {
- var i = r.uiDialog.offset(),
- n = i.left - r.document.scrollLeft(),
- s = i.top - r.document.scrollTop();
- a.height = r.uiDialog.height(), a.width = r.uiDialog.width(), a.position = {
- my: "left top",
- at: "left" + (0 <= n ? "+" : "") + n + " top" + (0 <= s ? "+" : "") + s,
- of: r.window
- }, r._removeClass(S(this), "ui-dialog-resizing"), r._unblockFrames(), r._trigger("resizeStop", t, o(e))
- }
- }).css("position", e)
- },
- _trackFocus: function () {
- this._on(this.widget(), {
- focusin: function (t) {
- this._makeFocusTarget(), this._focusedElement = S(t.target)
- }
- })
- },
- _makeFocusTarget: function () {
- this._untrackInstance(), this._trackingInstances().unshift(this)
- },
- _untrackInstance: function () {
- var t = this._trackingInstances(),
- e = S.inArray(this, t); - 1 !== e && t.splice(e, 1)
- },
- _trackingInstances: function () {
- var t = this.document.data("ui-dialog-instances");
- return t || (t = [], this.document.data("ui-dialog-instances", t)), t
- },
- _minHeight: function () {
- var t = this.options;
- return "auto" === t.height ? t.minHeight : Math.min(t.minHeight, t.height)
- },
- _position: function () {
- var t = this.uiDialog.is(":visible");
- t || this.uiDialog.show(), this.uiDialog.position(this.options.position), t || this.uiDialog.hide()
- },
- _setOptions: function (t) {
- var i = this,
- n = !1,
- s = {};
- S.each(t, function (t, e) {
- i._setOption(t, e), t in i.sizeRelatedOptions && (n = !0), t in i.resizableRelatedOptions && (s[t] = e)
- }), n && (this._size(), this._position()), this.uiDialog.is(":data(ui-resizable)") && this.uiDialog.resizable("option", s)
- },
- _setOption: function (t, e) {
- var i, n, s = this.uiDialog;
- "disabled" !== t && (this._super(t, e), "appendTo" === t && this.uiDialog.appendTo(this._appendTo()), "buttons" === t && this._createButtons(), "closeText" === t && this.uiDialogTitlebarClose.button({
- label: S("<a>").text("" + this.options.closeText).html()
- }), "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")))
- },
- _size: function () {
- var t, e, i, n = this.options;
- this.element.show().css({
- width: "auto",
- minHeight: 0,
- maxHeight: "none",
- height: 0
- }), n.minWidth > n.width && (n.width = n.minWidth), t = this.uiDialog.css({
- height: "auto",
- width: n.width
- }).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({
- minHeight: e,
- maxHeight: i,
- height: "auto"
- }) : this.element.height(Math.max(0, n.height - t)), this.uiDialog.is(":data(ui-resizable)") && this.uiDialog.resizable("option", "minHeight", this._minHeight())
- },
- _blockFrames: function () {
- this.iframeBlocks = this.document.find("iframe").map(function () {
- var t = S(this);
- return S("<div>").css({
- position: "absolute",
- width: t.outerWidth(),
- height: t.outerHeight()
- }).appendTo(t.parent()).offset(t.offset())[0]
- })
- },
- _unblockFrames: function () {
- this.iframeBlocks && (this.iframeBlocks.remove(), delete this.iframeBlocks)
- },
- _allowInteraction: function (t) {
- return !!S(t.target).closest(".ui-dialog").length || !!S(t.target).closest(".ui-datepicker").length
- },
- _createOverlay: function () {
- if (this.options.modal) {
- var e = !0;
- this._delay(function () {
- e = !1
- }), this.document.data("ui-dialog-overlays") || this._on(this.document, {
- focusin: function (t) {
- e || this._allowInteraction(t) || (t.preventDefault(), this._trackingInstances()[0]._focusTabbable())
- }
- }), this.overlay = S("<div>").appendTo(this._appendTo()), this._addClass(this.overlay, null, "ui-widget-overlay ui-front"), this._on(this.overlay, {
- mousedown: "_keepFocus"
- }), this.document.data("ui-dialog-overlays", (this.document.data("ui-dialog-overlays") || 0) + 1)
- }
- },
- _destroyOverlay: function () {
- if (this.options.modal && this.overlay) {
- var t = this.document.data("ui-dialog-overlays") - 1;
- 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
- }
- }
- }), !1 !== S.uiBackCompat && S.widget("ui.dialog", S.ui.dialog, {
- options: {
- dialogClass: ""
- },
- _createWrapper: function () {
- this._super(), this.uiDialog.addClass(this.options.dialogClass)
- },
- _setOption: function (t, e) {
- "dialogClass" === t && this.uiDialog.removeClass(this.options.dialogClass).addClass(e), this._superApply(arguments)
- }
- }), S.ui.dialog, S.widget("ui.droppable", {
- version: "1.12.1",
- widgetEventPrefix: "drop",
- options: {
- accept: "*",
- addClasses: !0,
- greedy: !1,
- scope: "default",
- tolerance: "intersect",
- activate: null,
- deactivate: null,
- drop: null,
- out: null,
- over: null
- },
- _create: function () {
- var t, e = this.options,
- i = e.accept;
- this.isover = !1, this.isout = !0, this.accept = S.isFunction(i) ? i : function (t) {
- return t.is(i)
- }, this.proportions = function () {
- return arguments.length ? void(t = arguments[0]) : t || (t = {
- width: this.element[0].offsetWidth,
- height: this.element[0].offsetHeight
- })
- }, this._addToManager(e.scope), e.addClasses && this._addClass("ui-droppable")
- },
- _addToManager: function (t) {
- S.ui.ddmanager.droppables[t] = S.ui.ddmanager.droppables[t] || [], S.ui.ddmanager.droppables[t].push(this)
- },
- _splice: function (t) {
- for (var e = 0; t.length > e; e++) t[e] === this && t.splice(e, 1)
- },
- _destroy: function () {
- var t = S.ui.ddmanager.droppables[this.options.scope];
- this._splice(t)
- },
- _setOption: function (t, e) {
- if ("accept" === t) this.accept = S.isFunction(e) ? e : function (t) {
- return t.is(e)
- };
- else if ("scope" === t) {
- var i = S.ui.ddmanager.droppables[this.options.scope];
- this._splice(i), this._addToManager(e)
- }
- this._super(t, e)
- },
- _activate: function (t) {
- var e = S.ui.ddmanager.current;
- this._addActiveClass(), e && this._trigger("activate", t, this.ui(e))
- },
- _deactivate: function (t) {
- var e = S.ui.ddmanager.current;
- this._removeActiveClass(), e && this._trigger("deactivate", t, this.ui(e))
- },
- _over: function (t) {
- var e = S.ui.ddmanager.current;
- 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)))
- },
- _out: function (t) {
- var e = S.ui.ddmanager.current;
- 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)))
- },
- _drop: function (e, t) {
- var i = t || S.ui.ddmanager.current,
- n = !1;
- return !(!i || (i.currentItem || i.element)[0] === this.element[0]) && (this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function () {
- var t = S(this).droppable("instance");
- 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, {
- offset: t.element.offset()
- }), t.options.tolerance, e) ? !(n = !0) : void 0
- }), !n && (!!this.accept.call(this.element[0], i.currentItem || i.element) && (this._removeActiveClass(), this._removeHoverClass(), this._trigger("drop", e, this.ui(i)), this.element)))
- },
- ui: function (t) {
- return {
- draggable: t.currentItem || t.element,
- helper: t.helper,
- position: t.position,
- offset: t.positionAbs
- }
- },
- _addHoverClass: function () {
- this._addClass("ui-droppable-hover")
- },
- _removeHoverClass: function () {
- this._removeClass("ui-droppable-hover")
- },
- _addActiveClass: function () {
- this._addClass("ui-droppable-active")
- },
- _removeActiveClass: function () {
- this._removeClass("ui-droppable-active")
- }
- });
- var b, w = S.ui.intersect = function () {
- function d(t, e, i) {
- return e <= t && t < e + i
- }
- return function (t, e, i, n) {
- if (!e.offset) return !1;
- var s = (t.positionAbs || t.position.absolute).left + t.margins.left,
- o = (t.positionAbs || t.position.absolute).top + t.margins.top,
- r = s + t.helperProportions.width,
- a = o + t.helperProportions.height,
- l = e.offset.left,
- c = e.offset.top,
- u = l + e.proportions().width,
- h = c + e.proportions().height;
- switch (i) {
- case "fit":
- return l <= s && r <= u && c <= o && a <= h;
- case "intersect":
- 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;
- case "pointer":
- return d(n.pageY, c, e.proportions().height) && d(n.pageX, l, e.proportions().width);
- case "touch":
- 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);
- default:
- return !1
- }
- }
- }();
- !(S.ui.ddmanager = {
- current: null,
- droppables: {
- default: []
- },
- prepareOffsets: function (t, e) {
- var i, n, s = S.ui.ddmanager.droppables[t.options.scope] || [],
- o = e ? e.type : null,
- r = (t.currentItem || t.element).find(":data(ui-droppable)").addBack();
- t: for (i = 0; s.length > i; i++)
- if (!(s[i].options.disabled || t && !s[i].accept.call(s[i].element[0], t.currentItem || t.element))) {
- for (n = 0; r.length > n; n++)
- if (r[n] === s[i].element[0]) {
- s[i].proportions().height = 0;
- continue t
- } 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({
- width: s[i].element[0].offsetWidth,
- height: s[i].element[0].offsetHeight
- }))
- }
- },
- drop: function (t, e) {
- var i = !1;
- return S.each((S.ui.ddmanager.droppables[t.options.scope] || []).slice(), function () {
- 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)))
- }), i
- },
- dragStart: function (t, e) {
- t.element.parentsUntil("body").on("scroll.droppable", function () {
- t.options.refreshPositions || S.ui.ddmanager.prepareOffsets(t, e)
- })
- },
- drag: function (o, r) {
- o.options.refreshPositions && S.ui.ddmanager.prepareOffsets(o, r), S.each(S.ui.ddmanager.droppables[o.options.scope] || [], function () {
- if (!this.options.disabled && !this.greedyChild && this.visible) {
- var t, e, i, n = w(o, this, this.options.tolerance, r),
- s = !n && this.isover ? "isout" : n && !this.isover ? "isover" : null;
- s && (this.options.greedy && (e = this.options.scope, (i = this.element.parents(":data(ui-droppable)").filter(function () {
- return S(this).droppable("instance").options.scope === e
- })).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)))
- }
- })
- },
- dragStop: function (t, e) {
- t.element.parentsUntil("body").off("scroll.droppable"), t.options.refreshPositions || S.ui.ddmanager.prepareOffsets(t, e)
- }
- }) !== S.uiBackCompat && S.widget("ui.droppable", S.ui.droppable, {
- options: {
- hoverClass: !1,
- activeClass: !1
- },
- _addActiveClass: function () {
- this._super(), this.options.activeClass && this.element.addClass(this.options.activeClass)
- },
- _removeActiveClass: function () {
- this._super(), this.options.activeClass && this.element.removeClass(this.options.activeClass)
- },
- _addHoverClass: function () {
- this._super(), this.options.hoverClass && this.element.addClass(this.options.hoverClass)
- },
- _removeHoverClass: function () {
- this._super(), this.options.hoverClass && this.element.removeClass(this.options.hoverClass)
- }
- }), S.ui.droppable, S.widget("ui.progressbar", {
- version: "1.12.1",
- options: {
- classes: {
- "ui-progressbar": "ui-corner-all",
- "ui-progressbar-value": "ui-corner-left",
- "ui-progressbar-complete": "ui-corner-right"
- },
- max: 100,
- value: 0,
- change: null,
- complete: null
- },
- min: 0,
- _create: function () {
- this.oldValue = this.options.value = this._constrainedValue(), this.element.attr({
- role: "progressbar",
- "aria-valuemin": this.min
- }), 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()
- },
- _destroy: function () {
- this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"), this.valueDiv.remove()
- },
- value: function (t) {
- return void 0 === t ? this.options.value : (this.options.value = this._constrainedValue(t), void this._refreshValue())
- },
- _constrainedValue: function (t) {
- 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))
- },
- _setOptions: function (t) {
- var e = t.value;
- delete t.value, this._super(t), this.options.value = this._constrainedValue(e), this._refreshValue()
- },
- _setOption: function (t, e) {
- "max" === t && (e = Math.max(this.min, e)), this._super(t, e)
- },
- _setOptionDisabled: function (t) {
- this._super(t), this.element.attr("aria-disabled", t), this._toggleClass(null, "ui-state-disabled", !!t)
- },
- _percentage: function () {
- return this.indeterminate ? 100 : 100 * (this.options.value - this.min) / (this.options.max - this.min)
- },
- _refreshValue: function () {
- var t = this.options.value,
- e = this._percentage();
- 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({
- "aria-valuemax": this.options.max,
- "aria-valuenow": t
- }), this.overlayDiv && (this.overlayDiv.remove(), this.overlayDiv = null)), this.oldValue !== t && (this.oldValue = t, this._trigger("change")), t === this.options.max && this._trigger("complete")
- }
- }), S.widget("ui.selectable", S.ui.mouse, {
- version: "1.12.1",
- options: {
- appendTo: "body",
- autoRefresh: !0,
- distance: 0,
- filter: "*",
- tolerance: "touch",
- selected: null,
- selecting: null,
- start: null,
- stop: null,
- unselected: null,
- unselecting: null
- },
- _create: function () {
- var n = this;
- this._addClass("ui-selectable"), this.dragged = !1, this.refresh = function () {
- 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 () {
- var t = S(this),
- e = t.offset(),
- i = {
- left: e.left - n.elementPos.left,
- top: e.top - n.elementPos.top
- };
- S.data(this, "selectable-item", {
- element: this,
- $element: t,
- left: i.left,
- top: i.top,
- right: i.left + t.outerWidth(),
- bottom: i.top + t.outerHeight(),
- startselected: !1,
- selected: t.hasClass("ui-selected"),
- selecting: t.hasClass("ui-selecting"),
- unselecting: t.hasClass("ui-unselecting")
- })
- })
- }, this.refresh(), this._mouseInit(), this.helper = S("<div>"), this._addClass(this.helper, "ui-selectable-helper")
- },
- _destroy: function () {
- this.selectees.removeData("selectable-item"), this._mouseDestroy()
- },
- _mouseStart: function (i) {
- var n = this,
- t = this.options;
- 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({
- left: i.pageX,
- top: i.pageY,
- width: 0,
- height: 0
- }), t.autoRefresh && this.refresh(), this.selectees.filter(".ui-selected").each(function () {
- var t = S.data(this, "selectable-item");
- 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, {
- unselecting: t.element
- }))
- }), S(i.target).parents().addBack().each(function () {
- var t, e = S.data(this, "selectable-item");
- 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, {
- selecting: e.element
- }) : n._trigger("unselecting", i, {
- unselecting: e.element
- }), !1) : void 0
- }))
- },
- _mouseDrag: function (n) {
- if (this.dragged = !0, !this.options.disabled) {
- var t, s = this,
- o = this.options,
- r = this.opos[0],
- a = this.opos[1],
- l = n.pageX,
- c = n.pageY;
- return l < r && (t = l, l = r, r = t), c < a && (t = c, c = a, a = t), this.helper.css({
- left: r,
- top: a,
- width: l - r,
- height: c - a
- }), this.selectees.each(function () {
- var t = S.data(this, "selectable-item"),
- e = !1,
- i = {};
- 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, {
- selecting: t.element
- }))) : (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, {
- unselecting: t.element
- }))), 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, {
- unselecting: t.element
- })))))
- }), !1
- }
- },
- _mouseStop: function (e) {
- var i = this;
- return this.dragged = !1, S(".ui-unselecting", this.element[0]).each(function () {
- var t = S.data(this, "selectable-item");
- i._removeClass(t.$element, "ui-unselecting"), t.unselecting = !1, t.startselected = !1, i._trigger("unselected", e, {
- unselected: t.element
- })
- }), S(".ui-selecting", this.element[0]).each(function () {
- var t = S.data(this, "selectable-item");
- i._removeClass(t.$element, "ui-selecting")._addClass(t.$element, "ui-selected"), t.selecting = !1, t.selected = !0, t.startselected = !0, i._trigger("selected", e, {
- selected: t.element
- })
- }), this._trigger("stop", e), this.helper.remove(), !1
- }
- }), S.widget("ui.selectmenu", [S.ui.formResetMixin, {
- version: "1.12.1",
- defaultElement: "<select>",
- options: {
- appendTo: null,
- classes: {
- "ui-selectmenu-button-open": "ui-corner-top",
- "ui-selectmenu-button-closed": "ui-corner-all"
- },
- disabled: null,
- icons: {
- button: "ui-icon-triangle-1-s"
- },
- position: {
- my: "left top",
- at: "left bottom",
- collision: "none"
- },
- width: !1,
- change: null,
- close: null,
- focus: null,
- open: null,
- select: null
- },
- _create: function () {
- var t = this.element.uniqueId().attr("id");
- this.ids = {
- element: t,
- button: t + "-button",
- menu: t + "-menu"
- }, this._drawButton(), this._drawMenu(), this._bindFormResetHandler(), this._rendered = !1, this.menuItems = S()
- },
- _drawButton: function () {
- var t, e = this,
- i = this._parseOption(this.element.find("option:selected"), this.element[0].selectedIndex);
- this.labels = this.element.labels().attr("for", this.ids.button), this._on(this.labels, {
- click: function (t) {
- this.button.focus(), t.preventDefault()
- }
- }), this.element.hide(), this.button = S("<span>", {
- tabindex: this.options.disabled ? -1 : 0,
- id: this.ids.button,
- role: "combobox",
- "aria-expanded": "false",
- "aria-autocomplete": "list",
- "aria-owns": this.ids.menu,
- "aria-haspopup": "true",
- title: this.element.attr("title")
- }).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 () {
- e._rendered || e._refreshMenu()
- })
- },
- _drawMenu: function () {
- var n = this;
- this.menu = S("<ul>", {
- "aria-hidden": "true",
- "aria-labelledby": this.ids.button,
- id: this.ids.menu
- }), 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({
- classes: {
- "ui-menu": "ui-corner-bottom"
- },
- role: "listbox",
- select: function (t, e) {
- t.preventDefault(), n._setSelection(), n._select(e.item.data("ui-selectmenu-item"), t)
- },
- focus: function (t, e) {
- var i = e.item.data("ui-selectmenu-item");
- null != n.focusIndex && i.index !== n.focusIndex && (n._trigger("focus", t, {
- item: i
- }), n.isOpen || n._select(i, t)), n.focusIndex = i.index, n.button.attr("aria-activedescendant", n.menuItems.eq(i.index).attr("id"))
- }
- }).menu("instance"), this.menuInstance._off(this.menu, "mouseleave"), this.menuInstance._closeOnDocumentClick = function () {
- return !1
- }, this.menuInstance._isDivider = function () {
- return !1
- }
- },
- refresh: function () {
- this._refreshMenu(), this.buttonItem.replaceWith(this.buttonItem = this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item") || {})), null === this.options.width && this._resizeButton()
- },
- _refreshMenu: function () {
- var t, e = this.element.find("option");
- 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")))
- },
- open: function (t) {
- 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)))
- },
- _position: function () {
- this.menuWrap.position(S.extend({
- of: this.button
- }, this.options.position))
- },
- close: function (t) {
- this.isOpen && (this.isOpen = !1, this._toggleAttr(), this.range = null, this._off(this.document), this._trigger("close", t))
- },
- widget: function () {
- return this.button
- },
- menuWidget: function () {
- return this.menu
- },
- _renderButtonItem: function (t) {
- var e = S("<span>");
- return this._setText(e, t.label), this._addClass(e, "ui-selectmenu-text"), e
- },
- _renderMenu: function (n, t) {
- var s = this,
- o = "";
- S.each(t, function (t, e) {
- var i;
- e.optgroup !== o && (i = S("<li>", {
- text: e.optgroup
- }), 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)
- })
- },
- _renderItemData: function (t, e) {
- return this._renderItem(t, e).data("ui-selectmenu-item", e)
- },
- _renderItem: function (t, e) {
- var i = S("<li>"),
- n = S("<div>", {
- title: e.element.attr("title")
- });
- return e.disabled && this._addClass(i, null, "ui-state-disabled"), this._setText(n, e.label), i.append(n).appendTo(t)
- },
- _setText: function (t, e) {
- e ? t.text(e) : t.html(" ")
- },
- _move: function (t, e) {
- var i, n, s = ".ui-menu-item";
- 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)
- },
- _getSelectedItem: function () {
- return this.menuItems.eq(this.element[0].selectedIndex).parent("li")
- },
- _toggle: function (t) {
- this[this.isOpen ? "close" : "open"](t)
- },
- _setSelection: function () {
- var t;
- this.range && (window.getSelection ? ((t = window.getSelection()).removeAllRanges(), t.addRange(this.range)) : this.range.select(), this.button.focus())
- },
- _documentClick: {
- mousedown: function (t) {
- this.isOpen && (S(t.target).closest(".ui-selectmenu-menu, #" + S.ui.escapeSelector(this.ids.button)).length || this.close(t))
- }
- },
- _buttonEvents: {
- mousedown: function () {
- var t;
- window.getSelection ? (t = window.getSelection()).rangeCount && (this.range = t.getRangeAt(0)) : this.range = document.selection.createRange()
- },
- click: function (t) {
- this._setSelection(), this._toggle(t)
- },
- keydown: function (t) {
- var e = !0;
- switch (t.keyCode) {
- case S.ui.keyCode.TAB:
- case S.ui.keyCode.ESCAPE:
- this.close(t), e = !1;
- break;
- case S.ui.keyCode.ENTER:
- this.isOpen && this._selectFocusedItem(t);
- break;
- case S.ui.keyCode.UP:
- t.altKey ? this._toggle(t) : this._move("prev", t);
- break;
- case S.ui.keyCode.DOWN:
- t.altKey ? this._toggle(t) : this._move("next", t);
- break;
- case S.ui.keyCode.SPACE:
- this.isOpen ? this._selectFocusedItem(t) : this._toggle(t);
- break;
- case S.ui.keyCode.LEFT:
- this._move("prev", t);
- break;
- case S.ui.keyCode.RIGHT:
- this._move("next", t);
- break;
- case S.ui.keyCode.HOME:
- case S.ui.keyCode.PAGE_UP:
- this._move("first", t);
- break;
- case S.ui.keyCode.END:
- case S.ui.keyCode.PAGE_DOWN:
- this._move("last", t);
- break;
- default:
- this.menu.trigger(t), e = !1
- }
- e && t.preventDefault()
- }
- },
- _selectFocusedItem: function (t) {
- var e = this.menuItems.eq(this.focusIndex).parent("li");
- e.hasClass("ui-state-disabled") || this._select(e.data("ui-selectmenu-item"), t)
- },
- _select: function (t, e) {
- var i = this.element[0].selectedIndex;
- this.element[0].selectedIndex = t.index, this.buttonItem.replaceWith(this.buttonItem = this._renderButtonItem(t)), this._setAria(t), this._trigger("select", e, {
- item: t
- }), t.index !== i && this._trigger("change", e, {
- item: t
- }), this.close(e)
- },
- _setAria: function (t) {
- var e = this.menuItems.eq(t.index).attr("id");
- this.button.attr({
- "aria-labelledby": e,
- "aria-activedescendant": e
- }), this.menu.attr("aria-activedescendant", e)
- },
- _setOption: function (t, e) {
- if ("icons" === t) {
- var i = this.button.find("span.ui-icon");
- this._removeClass(i, null, this.options.icons.button)._addClass(i, null, e.button)
- }
- this._super(t, e), "appendTo" === t && this.menuWrap.appendTo(this._appendTo()), "width" === t && this._resizeButton()
- },
- _setOptionDisabled: function (t) {
- 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)
- },
- _appendTo: function () {
- var t = this.options.appendTo;
- 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
- },
- _toggleAttr: function () {
- 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)
- },
- _resizeButton: function () {
- var t = this.options.width;
- return !1 === t ? void this.button.css("width", "") : (null === t && (t = this.element.show().outerWidth(), this.element.hide()), void this.button.outerWidth(t))
- },
- _resizeMenu: function () {
- this.menu.outerWidth(Math.max(this.button.outerWidth(), this.menu.width("").outerWidth() + 1))
- },
- _getCreateOptions: function () {
- var t = this._super();
- return t.disabled = this.element.prop("disabled"), t
- },
- _parseOptions: function (t) {
- var i = this,
- n = [];
- t.each(function (t, e) {
- n.push(i._parseOption(S(e), t))
- }), this.items = n
- },
- _parseOption: function (t, e) {
- var i = t.parent("optgroup");
- return {
- element: t,
- index: e,
- value: t.val(),
- label: t.text(),
- optgroup: i.attr("label") || "",
- disabled: i.prop("disabled") || t.prop("disabled")
- }
- },
- _destroy: function () {
- this._unbindFormResetHandler(), this.menuWrap.remove(), this.button.remove(), this.element.show(), this.element.removeUniqueId(), this.labels.attr("for", this.ids.element)
- }
- }]), S.widget("ui.slider", S.ui.mouse, {
- version: "1.12.1",
- widgetEventPrefix: "slide",
- options: {
- animate: !1,
- classes: {
- "ui-slider": "ui-corner-all",
- "ui-slider-handle": "ui-corner-all",
- "ui-slider-range": "ui-corner-all ui-widget-header"
- },
- distance: 0,
- max: 100,
- min: 0,
- orientation: "horizontal",
- range: !1,
- step: 1,
- value: 0,
- values: null,
- change: null,
- slide: null,
- start: null,
- stop: null
- },
- numPages: 5,
- _create: function () {
- 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
- },
- _refresh: function () {
- this._createRange(), this._createHandles(), this._setupEvents(), this._refreshValue()
- },
- _createHandles: function () {
- var t, e, i = this.options,
- n = this.element.find(".ui-slider-handle"),
- s = [];
- 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>");
- 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) {
- S(this).data("ui-slider-handle-index", t).attr("tabIndex", 0)
- })
- },
- _createRange: function () {
- var t = this.options;
- 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({
- left: "",
- bottom: ""
- })) : (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)
- },
- _setupEvents: function () {
- this._off(this.handles), this._on(this.handles, this._handleEvents), this._hoverable(this.handles), this._focusable(this.handles)
- },
- _destroy: function () {
- this.handles.remove(), this.range && this.range.remove(), this._mouseDestroy()
- },
- _mouseCapture: function (t) {
- var e, i, n, s, o, r, a, l = this,
- c = this.options;
- return !c.disabled && (this.elementSize = {
- width: this.element.outerWidth(),
- height: this.element.outerHeight()
- }, this.elementOffset = this.element.offset(), e = {
- x: t.pageX,
- y: t.pageY
- }, i = this._normValueFromMouse(e), n = this._valueMax() - this._valueMin() + 1, this.handles.each(function (t) {
- var e = Math.abs(i - l.values(t));
- (e < n || n === e && (t === l._lastChangedValue || l.values(t) === c.min)) && (n = e, s = S(this), o = t)
- }), !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 ? {
- left: 0,
- top: 0
- } : {
- left: t.pageX - r.left - s.width() / 2,
- 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)
- }, this.handles.hasClass("ui-state-hover") || this._slide(t, o, i), this._animateOff = !0))
- },
- _mouseStart: function () {
- return !0
- },
- _mouseDrag: function (t) {
- var e = {
- x: t.pageX,
- y: t.pageY
- },
- i = this._normValueFromMouse(e);
- return this._slide(t, this._handleIndex, i), !1
- },
- _mouseStop: function (t) {
- 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
- },
- _detectOrientation: function () {
- this.orientation = "vertical" === this.options.orientation ? "vertical" : "horizontal"
- },
- _normValueFromMouse: function (t) {
- var e, i, n, s;
- 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)
- },
- _uiHash: function (t, e, i) {
- var n = {
- handle: this.handles[t],
- handleIndex: t,
- value: void 0 !== e ? e : this.value()
- };
- return this._hasMultipleValues() && (n.value = void 0 !== e ? e : this.values(t), n.values = i || this.values()), n
- },
- _hasMultipleValues: function () {
- return this.options.values && this.options.values.length
- },
- _start: function (t, e) {
- return this._trigger("start", t, this._uiHash(e))
- },
- _slide: function (t, e, i) {
- var n, s = this.value(),
- o = this.values();
- 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)))
- },
- _stop: function (t, e) {
- this._trigger("stop", t, this._uiHash(e))
- },
- _change: function (t, e) {
- this._keySliding || this._mouseSliding || (this._lastChangedValue = e, this._trigger("change", t, this._uiHash(e)))
- },
- value: function (t) {
- return arguments.length ? (this.options.value = this._trimAlignValue(t), this._refreshValue(), void this._change(null, 0)) : this._value()
- },
- values: function (t, e) {
- var i, n, s;
- if (1 < arguments.length) return this.options.values[t] = this._trimAlignValue(e), this._refreshValue(), void this._change(null, t);
- if (!arguments.length) return this._values();
- if (!S.isArray(t)) return this._hasMultipleValues() ? this._values(t) : this.value();
- for (i = this.options.values, n = t, s = 0; i.length > s; s += 1) i[s] = this._trimAlignValue(n[s]), this._change(null, s);
- this._refreshValue()
- },
- _setOption: function (t, e) {
- var i, n = 0;
- 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) {
- case "orientation":
- 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", "");
- break;
- case "value":
- this._animateOff = !0, this._refreshValue(), this._change(null, 0), this._animateOff = !1;
- break;
- case "values":
- for (this._animateOff = !0, this._refreshValue(), i = n - 1; 0 <= i; i--) this._change(null, i);
- this._animateOff = !1;
- break;
- case "step":
- case "min":
- case "max":
- this._animateOff = !0, this._calculateNewMax(), this._refreshValue(), this._animateOff = !1;
- break;
- case "range":
- this._animateOff = !0, this._refresh(), this._animateOff = !1
- }
- },
- _setOptionDisabled: function (t) {
- this._super(t), this._toggleClass(null, "ui-state-disabled", !!t)
- },
- _value: function () {
- var t = this.options.value;
- return this._trimAlignValue(t)
- },
- _values: function (t) {
- var e, i, n;
- if (arguments.length) return e = this.options.values[t], this._trimAlignValue(e);
- if (this._hasMultipleValues()) {
- for (i = this.options.values.slice(), n = 0; i.length > n; n += 1) i[n] = this._trimAlignValue(i[n]);
- return i
- }
- return []
- },
- _trimAlignValue: function (t) {
- if (this._valueMin() >= t) return this._valueMin();
- if (t >= this._valueMax()) return this._valueMax();
- var e = 0 < this.options.step ? this.options.step : 1,
- i = (t - this._valueMin()) % e,
- n = t - i;
- return 2 * Math.abs(i) >= e && (n += 0 < i ? e : -e), parseFloat(n.toFixed(5))
- },
- _calculateNewMax: function () {
- var t = this.options.max,
- e = this._valueMin(),
- i = this.options.step;
- (t = Math.round((t - e) / i) * i + e) > this.options.max && (t -= i), this.max = parseFloat(t.toFixed(this._precision()))
- },
- _precision: function () {
- var t = this._precisionOf(this.options.step);
- return null !== this.options.min && (t = Math.max(t, this._precisionOf(this.options.min))), t
- },
- _precisionOf: function (t) {
- var e = "" + t,
- i = e.indexOf(".");
- return -1 === i ? 0 : e.length - i - 1
- },
- _valueMin: function () {
- return this.options.min
- },
- _valueMax: function () {
- return this.max
- },
- _refreshRange: function (t) {
- "vertical" === t && this.range.css({
- width: "",
- left: ""
- }), "horizontal" === t && this.range.css({
- height: "",
- bottom: ""
- })
- },
- _refreshValue: function () {
- var e, i, t, n, s, o = this.options.range,
- r = this.options,
- a = this,
- l = !this._animateOff && r.animate,
- c = {};
- this._hasMultipleValues() ? this.handles.each(function (t) {
- 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"]({
- left: i + "%"
- }, r.animate), 1 === t && a.range[l ? "animate" : "css"]({
- width: i - e + "%"
- }, {
- queue: !1,
- duration: r.animate
- })) : (0 === t && a.range.stop(1, 1)[l ? "animate" : "css"]({
- bottom: i + "%"
- }, r.animate), 1 === t && a.range[l ? "animate" : "css"]({
- height: i - e + "%"
- }, {
- queue: !1,
- duration: r.animate
- }))), e = i
- }) : (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"]({
- width: i + "%"
- }, r.animate), "max" === o && "horizontal" === this.orientation && this.range.stop(1, 1)[l ? "animate" : "css"]({
- width: 100 - i + "%"
- }, r.animate), "min" === o && "vertical" === this.orientation && this.range.stop(1, 1)[l ? "animate" : "css"]({
- height: i + "%"
- }, r.animate), "max" === o && "vertical" === this.orientation && this.range.stop(1, 1)[l ? "animate" : "css"]({
- height: 100 - i + "%"
- }, r.animate))
- },
- _handleEvents: {
- keydown: function (t) {
- var e, i, n, s = S(t.target).data("ui-slider-handle-index");
- switch (t.keyCode) {
- case S.ui.keyCode.HOME:
- case S.ui.keyCode.END:
- case S.ui.keyCode.PAGE_UP:
- case S.ui.keyCode.PAGE_DOWN:
- case S.ui.keyCode.UP:
- case S.ui.keyCode.RIGHT:
- case S.ui.keyCode.DOWN:
- case S.ui.keyCode.LEFT:
- if (t.preventDefault(), !this._keySliding && (this._keySliding = !0, this._addClass(S(t.target), null, "ui-state-active"), !1 === this._start(t, s))) return
- }
- switch (n = this.options.step, e = i = this._hasMultipleValues() ? this.values(s) : this.value(), t.keyCode) {
- case S.ui.keyCode.HOME:
- i = this._valueMin();
- break;
- case S.ui.keyCode.END:
- i = this._valueMax();
- break;
- case S.ui.keyCode.PAGE_UP:
- i = this._trimAlignValue(e + (this._valueMax() - this._valueMin()) / this.numPages);
- break;
- case S.ui.keyCode.PAGE_DOWN:
- i = this._trimAlignValue(e - (this._valueMax() - this._valueMin()) / this.numPages);
- break;
- case S.ui.keyCode.UP:
- case S.ui.keyCode.RIGHT:
- if (e === this._valueMax()) return;
- i = this._trimAlignValue(e + n);
- break;
- case S.ui.keyCode.DOWN:
- case S.ui.keyCode.LEFT:
- if (e === this._valueMin()) return;
- i = this._trimAlignValue(e - n)
- }
- this._slide(t, s, i)
- },
- keyup: function (t) {
- var e = S(t.target).data("ui-slider-handle-index");
- this._keySliding && (this._keySliding = !1, this._stop(t, e), this._change(t, e), this._removeClass(S(t.target), null, "ui-state-active"))
- }
- }
- }), S.widget("ui.sortable", S.ui.mouse, {
- version: "1.12.1",
- widgetEventPrefix: "sort",
- ready: !1,
- options: {
- appendTo: "parent",
- axis: !1,
- connectWith: !1,
- containment: !1,
- cursor: "auto",
- cursorAt: !1,
- dropOnEmpty: !0,
- forcePlaceholderSize: !1,
- forceHelperSize: !1,
- grid: !1,
- handle: !1,
- helper: "original",
- items: "> *",
- opacity: !1,
- placeholder: !1,
- revert: !1,
- scroll: !0,
- scrollSensitivity: 20,
- scrollSpeed: 20,
- scope: "default",
- tolerance: "intersect",
- zIndex: 1e3,
- activate: null,
- beforeStop: null,
- change: null,
- deactivate: null,
- out: null,
- over: null,
- receive: null,
- remove: null,
- sort: null,
- start: null,
- stop: null,
- update: null
- },
- _isOverAxis: function (t, e, i) {
- return e <= t && t < e + i
- },
- _isFloating: function (t) {
- return /left|right/.test(t.css("float")) || /inline|table-cell/.test(t.css("display"))
- },
- _create: function () {
- this.containerCache = {}, this._addClass("ui-sortable"), this.refresh(), this.offset = this.element.offset(), this._mouseInit(), this._setHandleClassName(), this.ready = !0
- },
- _setOption: function (t, e) {
- this._super(t, e), "handle" === t && this._setHandleClassName()
- },
- _setHandleClassName: function () {
- var t = this;
- this._removeClass(this.element.find(".ui-sortable-handle"), "ui-sortable-handle"), S.each(this.items, function () {
- t._addClass(this.instance.options.handle ? this.item.find(this.instance.options.handle) : this.item, "ui-sortable-handle")
- })
- },
- _destroy: function () {
- this._mouseDestroy();
- for (var t = this.items.length - 1; 0 <= t; t--) this.items[t].item.removeData(this.widgetName + "-item");
- return this
- },
- _mouseCapture: function (t, e) {
- var i = null,
- n = !1,
- s = this;
- return !this.reverting && (!this.options.disabled && "static" !== this.options.type && (this._refreshItems(t), S(t.target).parents().each(function () {
- return S.data(this, s.widgetName + "-item") === s ? (i = S(this), !1) : void 0
- }), 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 () {
- this === t.target && (n = !0)
- }), !n)) && (this.currentItem = i, this._removeCurrentsFromItems(), !0))))
- },
- _mouseStart: function (t, e, i) {
- var n, s, o = this.options;
- 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 = {
- top: this.offset.top - this.margins.top,
- left: this.offset.left - this.margins.left
- }, S.extend(this.offset, {
- click: {
- left: t.pageX - this.offset.left,
- top: t.pageY - this.offset.top
- },
- parent: this._getParentOffset(),
- relative: this._getRelativeOffset()
- }), 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 = {
- prev: this.currentItem.prev()[0],
- parent: this.currentItem.parent()[0]
- }, 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)
- for (n = this.containers.length - 1; 0 <= n; n--) this.containers[n]._trigger("activate", t, this._uiHash(this));
- 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
- },
- _mouseDrag: function (t) {
- var e, i, n, s, o = this.options,
- r = !1;
- 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--)
- 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))) {
- if (this.direction = 1 === s ? "down" : "up", "pointer" !== this.options.tolerance && !this._intersectsWithSides(i)) break;
- this._rearrange(t, i), this._trigger("change", t, this._uiHash());
- break
- } return this._contactContainers(t), S.ui.ddmanager && S.ui.ddmanager.drag(this, t), this._trigger("sort", t, this._uiHash()), this.lastPositionAbs = this.positionAbs, !1
- },
- _mouseStop: function (t, e) {
- if (t) {
- if (S.ui.ddmanager && !this.options.dropBehaviour && S.ui.ddmanager.drop(this, t), this.options.revert) {
- var i = this,
- n = this.placeholder.offset(),
- s = this.options.axis,
- o = {};
- 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 () {
- i._clear(t)
- })
- } else this._clear(t, e);
- return !1
- }
- },
- cancel: function () {
- if (this.dragging) {
- this._mouseUp(new S.Event("mouseup", {
- target: null
- })), "original" === this.options.helper ? (this.currentItem.css(this._storedCSS), this._removeClass(this.currentItem, "ui-sortable-helper")) : this.currentItem.show();
- 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)
- }
- 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, {
- helper: null,
- dragging: !1,
- reverting: !1,
- _noFinalSort: null
- }), this.domPosition.prev ? S(this.domPosition.prev).after(this.currentItem) : S(this.domPosition.parent).prepend(this.currentItem)), this
- },
- serialize: function (e) {
- var t = this._getItemsAsjQuery(e && e.connected),
- i = [];
- return e = e || {}, S(t).each(function () {
- var t = (S(e.item || this).attr(e.attribute || "id") || "").match(e.expression || /(.+)[\-=_](.+)/);
- t && i.push((e.key || t[1] + "[]") + "=" + (e.key && e.expression ? t[1] : t[2]))
- }), !i.length && e.key && i.push(e.key + "="), i.join("&")
- },
- toArray: function (t) {
- var e = this._getItemsAsjQuery(t && t.connected),
- i = [];
- return t = t || {}, e.each(function () {
- i.push(S(t.item || this).attr(t.attribute || "id") || "")
- }), i
- },
- _intersectsWith: function (t) {
- var e = this.positionAbs.left,
- i = e + this.helperProportions.width,
- n = this.positionAbs.top,
- s = n + this.helperProportions.height,
- o = t.left,
- r = o + t.width,
- a = t.top,
- l = a + t.height,
- c = this.offset.click.top,
- u = this.offset.click.left,
- h = "x" === this.options.axis || a < n + c && n + c < l,
- d = "y" === this.options.axis || o < e + u && e + u < r,
- p = h && d;
- 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
- },
- _intersectsWithPointer: function (t) {
- var e, i, n = "x" === this.options.axis || this._isOverAxis(this.positionAbs.top + this.offset.click.top, t.top, t.height),
- s = "y" === this.options.axis || this._isOverAxis(this.positionAbs.left + this.offset.click.left, t.left, t.width);
- return !!(n && s) && (e = this._getDragVerticalDirection(), i = this._getDragHorizontalDirection(), this.floating ? "right" === i || "down" === e ? 2 : 1 : e && ("down" === e ? 2 : 1))
- },
- _intersectsWithSides: function (t) {
- var e = this._isOverAxis(this.positionAbs.top + this.offset.click.top, t.top + t.height / 2, t.height),
- i = this._isOverAxis(this.positionAbs.left + this.offset.click.left, t.left + t.width / 2, t.width),
- n = this._getDragVerticalDirection(),
- s = this._getDragHorizontalDirection();
- return this.floating && s ? "right" === s && i || "left" === s && !i : n && ("down" === n && e || "up" === n && !e)
- },
- _getDragVerticalDirection: function () {
- var t = this.positionAbs.top - this.lastPositionAbs.top;
- return 0 != t && (0 < t ? "down" : "up")
- },
- _getDragHorizontalDirection: function () {
- var t = this.positionAbs.left - this.lastPositionAbs.left;
- return 0 != t && (0 < t ? "right" : "left")
- },
- refresh: function (t) {
- return this._refreshItems(t), this._setHandleClassName(), this.refreshPositions(), this
- },
- _connectWith: function () {
- var t = this.options;
- return t.connectWith.constructor === String ? [t.connectWith] : t.connectWith
- },
- _getItemsAsjQuery: function (t) {
- function e() {
- r.push(this)
- }
- var i, n, s, o, r = [],
- a = [],
- l = this._connectWith();
- if (l && t)
- for (i = l.length - 1; 0 <= i; i--)
- 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]);
- for (a.push([S.isFunction(this.options.items) ? this.options.items.call(this.element, null, {
- options: this.options,
- item: this.currentItem
- }) : 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);
- return S(r)
- },
- _removeCurrentsFromItems: function () {
- var i = this.currentItem.find(":data(" + this.widgetName + "-item)");
- this.items = S.grep(this.items, function (t) {
- for (var e = 0; i.length > e; e++)
- if (i[e] === t.item[0]) return !1;
- return !0
- })
- },
- _refreshItems: function (t) {
- this.items = [], this.containers = [this];
- var e, i, n, s, o, r, a, l, c = this.items,
- u = [
- [S.isFunction(this.options.items) ? this.options.items.call(this.element[0], t, {
- item: this.currentItem
- }) : S(this.options.items, this.element), this]
- ],
- h = this._connectWith();
- if (h && this.ready)
- for (e = h.length - 1; 0 <= e; e--)
- 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, {
- item: this.currentItem
- }) : S(s.options.items, s.element), s]), this.containers.push(s));
- for (e = u.length - 1; 0 <= e; e--)
- 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({
- item: a,
- instance: o,
- width: 0,
- height: 0,
- left: 0,
- top: 0
- })
- },
- refreshPositions: function (t) {
- var e, i, n, s;
- 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);
- if (this.options.custom && this.options.custom.refreshContainers) this.options.custom.refreshContainers.call(this);
- else
- 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();
- return this
- },
- _createPlaceholder: function (i) {
- var n, s = (i = i || this).options;
- s.placeholder && s.placeholder.constructor !== String || (n = s.placeholder, s.placeholder = {
- element: function () {
- var t = i.currentItem[0].nodeName.toLowerCase(),
- e = S("<" + t + ">", i.document[0]);
- 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
- },
- update: function (t, e) {
- (!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)))
- }
- }), i.placeholder = S(s.placeholder.element.call(i.element, i.currentItem)), i.currentItem.after(i.placeholder), s.placeholder.update(i, i.placeholder)
- },
- _createTrPlaceholder: function (t, e) {
- var i = this;
- t.children().each(function () {
- S("<td> </td>", i.document[0]).attr("colspan", S(this).attr("colspan") || 1).appendTo(e)
- })
- },
- _contactContainers: function (t) {
- var e, i, n, s, o, r, a, l, c, u, h = null,
- d = null;
- for (e = this.containers.length - 1; 0 <= e; e--)
- if (!S.contains(this.currentItem[0], this.containers[e].element[0]))
- if (this._intersectsWith(this.containers[e].containerCache)) {
- if (h && S.contains(this.containers[e].element[0], h.element[0])) continue;
- h = this.containers[e], d = e
- } else this.containers[e].containerCache.over && (this.containers[e]._trigger("out", t, this._uiHash(this)), this.containers[e].containerCache.over = 0);
- if (h)
- 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);
- else {
- 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"));
- if (!s && !this.options.dropOnEmpty) return;
- 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));
- 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
- }
- },
- _createHelper: function (t) {
- var e = this.options,
- i = S.isFunction(e.helper) ? S(e.helper.apply(this.element[0], [t, this.currentItem])) : "clone" === e.helper ? this.currentItem.clone() : this.currentItem;
- 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 = {
- width: this.currentItem[0].style.width,
- height: this.currentItem[0].style.height,
- position: this.currentItem.css("position"),
- top: this.currentItem.css("top"),
- left: this.currentItem.css("left")
- }), (!i[0].style.width || e.forceHelperSize) && i.width(this.currentItem.width()), (!i[0].style.height || e.forceHelperSize) && i.height(this.currentItem.height()), i
- },
- _adjustOffsetFromHelper: function (t) {
- "string" == typeof t && (t = t.split(" ")), S.isArray(t) && (t = {
- left: +t[0],
- top: +t[1] || 0
- }), "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)
- },
- _getParentOffset: function () {
- this.offsetParent = this.helper.offsetParent();
- var t = this.offsetParent.offset();
- 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 = {
- top: 0,
- left: 0
- }), {
- top: t.top + (parseInt(this.offsetParent.css("borderTopWidth"), 10) || 0),
- left: t.left + (parseInt(this.offsetParent.css("borderLeftWidth"), 10) || 0)
- }
- },
- _getRelativeOffset: function () {
- if ("relative" !== this.cssPosition) return {
- top: 0,
- left: 0
- };
- var t = this.currentItem.position();
- return {
- top: t.top - (parseInt(this.helper.css("top"), 10) || 0) + this.scrollParent.scrollTop(),
- left: t.left - (parseInt(this.helper.css("left"), 10) || 0) + this.scrollParent.scrollLeft()
- }
- },
- _cacheMargins: function () {
- this.margins = {
- left: parseInt(this.currentItem.css("marginLeft"), 10) || 0,
- top: parseInt(this.currentItem.css("marginTop"), 10) || 0
- }
- },
- _cacheHelperProportions: function () {
- this.helperProportions = {
- width: this.helper.outerWidth(),
- height: this.helper.outerHeight()
- }
- },
- _setContainment: function () {
- var t, e, i, n = this.options;
- "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])
- },
- _convertPositionTo: function (t, e) {
- e || (e = this.position);
- var i = "absolute" === t ? 1 : -1,
- n = "absolute" !== this.cssPosition || this.scrollParent[0] !== this.document[0] && S.contains(this.scrollParent[0], this.offsetParent[0]) ? this.scrollParent : this.offsetParent,
- s = /(html|body)/i.test(n[0].tagName);
- return {
- top: e.top + this.offset.relative.top * i + this.offset.parent.top * i - ("fixed" === this.cssPosition ? -this.scrollParent.scrollTop() : s ? 0 : n.scrollTop()) * i,
- left: e.left + this.offset.relative.left * i + this.offset.parent.left * i - ("fixed" === this.cssPosition ? -this.scrollParent.scrollLeft() : s ? 0 : n.scrollLeft()) * i
- }
- },
- _generatePosition: function (t) {
- var e, i, n = this.options,
- s = t.pageX,
- o = t.pageY,
- r = "absolute" !== this.cssPosition || this.scrollParent[0] !== this.document[0] && S.contains(this.scrollParent[0], this.offsetParent[0]) ? this.scrollParent : this.offsetParent,
- a = /(html|body)/i.test(r[0].tagName);
- 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)), {
- top: o - this.offset.click.top - this.offset.relative.top - this.offset.parent.top + ("fixed" === this.cssPosition ? -this.scrollParent.scrollTop() : a ? 0 : r.scrollTop()),
- left: s - this.offset.click.left - this.offset.relative.left - this.offset.parent.left + ("fixed" === this.cssPosition ? -this.scrollParent.scrollLeft() : a ? 0 : r.scrollLeft())
- }
- },
- _rearrange: function (t, e, i, n) {
- 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;
- var s = this.counter;
- this._delay(function () {
- s === this.counter && this.refreshPositions(!n)
- })
- },
- _clear: function (t, e) {
- function i(e, i, n) {
- return function (t) {
- n._trigger(e, t, i._uiHash(i))
- }
- }
- this.reverting = !1;
- var n, s = [];
- if (!this._noFinalSort && this.currentItem.parent().length && this.placeholder.before(this.currentItem), this._noFinalSort = null, this.helper[0] === this.currentItem[0]) {
- for (n in this._storedCSS)("auto" === this._storedCSS[n] || "static" === this._storedCSS[n]) && (this._storedCSS[n] = "");
- this.currentItem.css(this._storedCSS), this._removeClass(this.currentItem, "ui-sortable-helper")
- } else this.currentItem.show();
- for (this.fromOutside && !e && s.push(function (t) {
- this._trigger("receive", t, this._uiHash(this.fromOutside))
- }), !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) {
- this._trigger("update", t, this._uiHash())
- }), this !== this.currentContainer && (e || (s.push(function (t) {
- this._trigger("remove", t, this._uiHash())
- }), s.push(function (e) {
- return function (t) {
- e._trigger("receive", t, this._uiHash(this))
- }
- }.call(this, this.currentContainer)), s.push(function (e) {
- return function (t) {
- e._trigger("update", t, this._uiHash(this))
- }
- }.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);
- 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) {
- for (n = 0; s.length > n; n++) s[n].call(this, t);
- this._trigger("stop", t, this._uiHash())
- }
- return this.fromOutside = !1, !this.cancelHelperRemoval
- },
- _trigger: function () {
- !1 === S.Widget.prototype._trigger.apply(this, arguments) && this.cancel()
- },
- _uiHash: function (t) {
- var e = t || this;
- return {
- helper: e.helper,
- placeholder: e.placeholder || S([]),
- position: e.position,
- originalPosition: e.originalPosition,
- offset: e.positionAbs,
- item: e.currentItem,
- sender: t ? t.element : null
- }
- }
- }), S.widget("ui.spinner", {
- version: "1.12.1",
- defaultElement: "<input>",
- widgetEventPrefix: "spin",
- options: {
- classes: {
- "ui-spinner": "ui-corner-all",
- "ui-spinner-down": "ui-corner-br",
- "ui-spinner-up": "ui-corner-tr"
- },
- culture: null,
- icons: {
- down: "ui-icon-triangle-1-s",
- up: "ui-icon-triangle-1-n"
- },
- incremental: !0,
- max: null,
- min: null,
- numberFormat: null,
- page: 10,
- step: 1,
- change: null,
- spin: null,
- start: null,
- stop: null
- },
- _create: function () {
- 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, {
- beforeunload: function () {
- this.element.removeAttr("autocomplete")
- }
- })
- },
- _getCreateOptions: function () {
- var n = this._super(),
- s = this.element;
- return S.each(["min", "max", "step"], function (t, e) {
- var i = s.attr(e);
- null != i && i.length && (n[e] = i)
- }), n
- },
- _events: {
- keydown: function (t) {
- this._start(t) && this._keydown(t) && t.preventDefault()
- },
- keyup: "_stop",
- focus: function () {
- this.previous = this.element.val()
- },
- blur: function (t) {
- return this.cancelBlur ? void delete this.cancelBlur : (this._stop(), this._refresh(), void(this.previous !== this.element.val() && this._trigger("change", t)))
- },
- mousewheel: function (t, e) {
- if (e) {
- if (!this.spinning && !this._start(t)) return !1;
- this._spin((0 < e ? 1 : -1) * this.options.step, t), clearTimeout(this.mousewheelTimer), this.mousewheelTimer = this._delay(function () {
- this.spinning && this._stop(t)
- }, 100), t.preventDefault()
- }
- },
- "mousedown .ui-spinner-button": function (t) {
- function e() {
- this.element[0] === S.ui.safeActiveElement(this.document[0]) || (this.element.trigger("focus"), this.previous = i, this._delay(function () {
- this.previous = i
- }))
- }
- var i;
- 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 () {
- delete this.cancelBlur, e.call(this)
- }), !1 !== this._start(t) && this._repeat(null, S(t.currentTarget).hasClass("ui-spinner-up") ? 1 : -1, t)
- },
- "mouseup .ui-spinner-button": "_stop",
- "mouseenter .ui-spinner-button": function (t) {
- 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
- },
- "mouseleave .ui-spinner-button": "_stop"
- },
- _enhance: function () {
- this.uiSpinner = this.element.attr("autocomplete", "off").wrap("<span>").parent().append("<a></a><a></a>")
- },
- _draw: function () {
- 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({
- classes: {
- "ui-button": ""
- }
- }), 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({
- icon: this.options.icons.up,
- showLabel: !1
- }), this.buttons.last().button({
- icon: this.options.icons.down,
- showLabel: !1
- }), this.buttons.height() > Math.ceil(.5 * this.uiSpinner.height()) && 0 < this.uiSpinner.height() && this.uiSpinner.height(this.uiSpinner.height())
- },
- _keydown: function (t) {
- var e = this.options,
- i = S.ui.keyCode;
- switch (t.keyCode) {
- case i.UP:
- return this._repeat(null, 1, t), !0;
- case i.DOWN:
- return this._repeat(null, -1, t), !0;
- case i.PAGE_UP:
- return this._repeat(null, e.page, t), !0;
- case i.PAGE_DOWN:
- return this._repeat(null, -e.page, t), !0
- }
- return !1
- },
- _start: function (t) {
- return !(!this.spinning && !1 === this._trigger("start", t)) && (this.counter || (this.counter = 1), this.spinning = !0)
- },
- _repeat: function (t, e, i) {
- t = t || 500, clearTimeout(this.timer), this.timer = this._delay(function () {
- this._repeat(40, e, i)
- }, t), this._spin(e * this.options.step, i)
- },
- _spin: function (t, e) {
- var i = this.value() || 0;
- this.counter || (this.counter = 1), i = this._adjustValue(i + t * this._increment(this.counter)), this.spinning && !1 === this._trigger("spin", e, {
- value: i
- }) || (this._value(i), this.counter++)
- },
- _increment: function (t) {
- var e = this.options.incremental;
- return e ? S.isFunction(e) ? e(t) : Math.floor(t * t * t / 5e4 - t * t / 500 + 17 * t / 200 + 1) : 1
- },
- _precision: function () {
- var t = this._precisionOf(this.options.step);
- return null !== this.options.min && (t = Math.max(t, this._precisionOf(this.options.min))), t
- },
- _precisionOf: function (t) {
- var e = "" + t,
- i = e.indexOf(".");
- return -1 === i ? 0 : e.length - i - 1
- },
- _adjustValue: function (t) {
- var e, i, n = this.options;
- 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
- },
- _stop: function (t) {
- this.spinning && (clearTimeout(this.timer), clearTimeout(this.mousewheelTimer), this.counter = 0, this.spinning = !1, this._trigger("stop", t))
- },
- _setOption: function (t, e) {
- var i, n, s;
- 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))
- },
- _setOptionDisabled: function (t) {
- this._super(t), this._toggleClass(this.uiSpinner, null, "ui-state-disabled", !!t), this.element.prop("disabled", !!t), this.buttons.button(t ? "disable" : "enable")
- },
- _setOptions: e(function (t) {
- this._super(t)
- }),
- _parse: function (t) {
- return "string" == typeof t && "" !== t && (t = window.Globalize && this.options.numberFormat ? Globalize.parseFloat(t, 10, this.options.culture) : +t), "" === t || isNaN(t) ? null : t
- },
- _format: function (t) {
- return "" === t ? "" : window.Globalize && this.options.numberFormat ? Globalize.format(t, this.options.numberFormat, this.options.culture) : t
- },
- _refresh: function () {
- this.element.attr({
- "aria-valuemin": this.options.min,
- "aria-valuemax": this.options.max,
- "aria-valuenow": this._parse(this.element.val())
- })
- },
- isValid: function () {
- var t = this.value();
- return null !== t && t === this._adjustValue(t)
- },
- _value: function (t, e) {
- var i;
- "" !== t && (null !== (i = this._parse(t)) && (e || (i = this._adjustValue(i)), t = this._format(i))), this.element.val(t), this._refresh()
- },
- _destroy: function () {
- this.element.prop("disabled", !1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"), this.uiSpinner.replaceWith(this.element)
- },
- stepUp: e(function (t) {
- this._stepUp(t)
- }),
- _stepUp: function (t) {
- this._start() && (this._spin((t || 1) * this.options.step), this._stop())
- },
- stepDown: e(function (t) {
- this._stepDown(t)
- }),
- _stepDown: function (t) {
- this._start() && (this._spin((t || 1) * -this.options.step), this._stop())
- },
- pageUp: e(function (t) {
- this._stepUp((t || 1) * this.options.page)
- }),
- pageDown: e(function (t) {
- this._stepDown((t || 1) * this.options.page)
- }),
- value: function (t) {
- return arguments.length ? void e(this._value).call(this, t) : this._parse(this.element.val())
- },
- widget: function () {
- return this.uiSpinner
- }
- }), !1 !== S.uiBackCompat && S.widget("ui.spinner", S.ui.spinner, {
- _enhance: function () {
- this.uiSpinner = this.element.attr("autocomplete", "off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())
- },
- _uiSpinnerHtml: function () {
- return "<span>"
- },
- _buttonHtml: function () {
- return "<a></a><a></a>"
- }
- }), S.ui.spinner, S.widget("ui.tabs", {
- version: "1.12.1",
- delay: 300,
- options: {
- active: null,
- classes: {
- "ui-tabs": "ui-corner-all",
- "ui-tabs-nav": "ui-corner-all",
- "ui-tabs-panel": "ui-corner-bottom",
- "ui-tabs-tab": "ui-corner-top"
- },
- collapsible: !1,
- event: "click",
- heightStyle: "content",
- hide: null,
- show: null,
- activate: null,
- beforeActivate: null,
- beforeLoad: null,
- load: null
- },
- _isLocal: (b = /#.*$/, function (t) {
- var e, i;
- e = t.href.replace(b, ""), i = location.href.replace(b, "");
- try {
- e = decodeURIComponent(e)
- } catch (t) {}
- try {
- i = decodeURIComponent(i)
- } catch (t) {}
- return 1 < t.hash.length && e === i
- }),
- _create: function () {
- var e = this,
- t = this.options;
- 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) {
- return e.tabs.index(t)
- }))).sort()), this.active = !1 !== this.options.active && this.anchors.length ? this._findActive(t.active) : S(), this._refresh(), this.active.length && this.load(t.active)
- },
- _initialActive: function () {
- var i = this.options.active,
- t = this.options.collapsible,
- n = location.hash.substring(1);
- return null === i && (n && this.tabs.each(function (t, e) {
- return S(e).attr("aria-controls") === n ? (i = t, !1) : void 0
- }), 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
- },
- _getCreateEventData: function () {
- return {
- tab: this.active,
- panel: this.active.length ? this._getPanelForTab(this.active) : S()
- }
- },
- _tabKeydown: function (t) {
- var e = S(S.ui.safeActiveElement(this.document[0])).closest("li"),
- i = this.tabs.index(e),
- n = !0;
- if (!this._handlePageNav(t)) {
- switch (t.keyCode) {
- case S.ui.keyCode.RIGHT:
- case S.ui.keyCode.DOWN:
- i++;
- break;
- case S.ui.keyCode.UP:
- case S.ui.keyCode.LEFT:
- n = !1, i--;
- break;
- case S.ui.keyCode.END:
- i = this.anchors.length - 1;
- break;
- case S.ui.keyCode.HOME:
- i = 0;
- break;
- case S.ui.keyCode.SPACE:
- return t.preventDefault(), clearTimeout(this.activating), void this._activate(i);
- case S.ui.keyCode.ENTER:
- return t.preventDefault(), clearTimeout(this.activating), void this._activate(i !== this.options.active && i);
- default:
- return
- }
- 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 () {
- this.option("active", i)
- }, this.delay))
- }
- },
- _panelKeydown: function (t) {
- this._handlePageNav(t) || t.ctrlKey && t.keyCode === S.ui.keyCode.UP && (t.preventDefault(), this.active.trigger("focus"))
- },
- _handlePageNav: function (t) {
- 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
- },
- _findNextTab: function (t, e) {
- 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;
- return t
- },
- _focusNextTab: function (t, e) {
- return t = this._findNextTab(t, e), this.tabs.eq(t).trigger("focus"), t
- },
- _setOption: function (t, e) {
- 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)))
- },
- _sanitizeSelector: function (t) {
- return t ? t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g, "\\$&") : ""
- },
- refresh: function () {
- var t = this.options,
- e = this.tablist.children(":has(a[href])");
- t.disabled = S.map(e.filter(".ui-state-disabled"), function (t) {
- return e.index(t)
- }), 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()
- },
- _refresh: function () {
- this._setOptionDisabled(this.options.disabled), this._setupEvents(this.options.event), this._setupHeightStyle(this.options.heightStyle), this.tabs.not(this.active).attr({
- "aria-selected": "false",
- "aria-expanded": "false",
- tabIndex: -1
- }), this.panels.not(this._getPanelForTab(this.active)).hide().attr({
- "aria-hidden": "true"
- }), this.active.length ? (this.active.attr({
- "aria-selected": "true",
- "aria-expanded": "true",
- tabIndex: 0
- }), this._addClass(this.active, "ui-tabs-active", "ui-state-active"), this._getPanelForTab(this.active).show().attr({
- "aria-hidden": "false"
- })) : this.tabs.eq(0).attr("tabIndex", 0)
- },
- _processTabs: function () {
- var l = this,
- t = this.tabs,
- e = this.anchors,
- i = this.panels;
- 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) {
- S(this).is(".ui-state-disabled") && t.preventDefault()
- }).on("focus" + this.eventNamespace, ".ui-tabs-anchor", function () {
- S(this).closest("li").is(".ui-state-disabled") && this.blur()
- }), this.tabs = this.tablist.find("> li:has(a[href])").attr({
- role: "tab",
- tabIndex: -1
- }), this._addClass(this.tabs, "ui-tabs-tab", "ui-state-default"), this.anchors = this.tabs.map(function () {
- return S("a", this)[0]
- }).attr({
- role: "presentation",
- tabIndex: -1
- }), this._addClass(this.anchors, "ui-tabs-anchor"), this.panels = S(), this.anchors.each(function (t, e) {
- var i, n, s, o = S(e).uniqueId().attr("id"),
- r = S(e).closest("li"),
- a = r.attr("aria-controls");
- 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({
- "aria-controls": s,
- "aria-labelledby": o
- }), n.attr("aria-labelledby", o)
- }), 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)))
- },
- _getList: function () {
- return this.tablist || this.element.find("ol, ul").eq(0)
- },
- _createPanel: function (t) {
- return S("<div>").attr("id", t).data("ui-tabs-destroy", !0)
- },
- _setOptionDisabled: function (t) {
- var e, i, n;
- 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"));
- this.options.disabled = t, this._toggleClass(this.widget(), this.widgetFullName + "-disabled", null, !0 === t)
- },
- _setupEvents: function (t) {
- var i = {};
- t && S.each(t.split(" "), function (t, e) {
- i[e] = "_eventHandler"
- }), this._off(this.anchors.add(this.tabs).add(this.panels)), this._on(!0, this.anchors, {
- click: function (t) {
- t.preventDefault()
- }
- }), this._on(this.anchors, i), this._on(this.tabs, {
- keydown: "_tabKeydown"
- }), this._on(this.panels, {
- keydown: "_panelKeydown"
- }), this._focusable(this.tabs), this._hoverable(this.tabs)
- },
- _setupHeightStyle: function (t) {
- var i, e = this.element.parent();
- "fill" === t ? (i = e.height(), i -= this.element.outerHeight() - this.element.height(), this.element.siblings(":visible").each(function () {
- var t = S(this),
- e = t.css("position");
- "absolute" !== e && "fixed" !== e && (i -= t.outerHeight(!0))
- }), this.element.children().not(this.panels).each(function () {
- i -= S(this).outerHeight(!0)
- }), this.panels.each(function () {
- S(this).height(Math.max(0, i - S(this).innerHeight() + S(this).height()))
- }).css("overflow", "auto")) : "auto" === t && (i = 0, this.panels.each(function () {
- i = Math.max(i, S(this).height("").height())
- }).height(i))
- },
- _eventHandler: function (t) {
- var e = this.options,
- i = this.active,
- n = S(t.currentTarget).closest("li"),
- s = n[0] === i[0],
- o = s && e.collapsible,
- r = o ? S() : this._getPanelForTab(n),
- a = i.length ? this._getPanelForTab(i) : S(),
- l = {
- oldTab: i,
- oldPanel: a,
- newTab: o ? S() : n,
- newPanel: r
- };
- 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))
- },
- _toggle: function (t, e) {
- function i() {
- s.running = !1, s._trigger("activate", t, e)
- }
-
- function n() {
- 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())
- }
- var s = this,
- o = e.newPanel,
- r = e.oldPanel;
- this.running = !0, r.length && this.options.hide ? this._hide(r, this.options.hide, function () {
- s._removeClass(e.oldTab.closest("li"), "ui-tabs-active", "ui-state-active"), n()
- }) : (this._removeClass(e.oldTab.closest("li"), "ui-tabs-active", "ui-state-active"), r.hide(), n()), r.attr("aria-hidden", "true"), e.oldTab.attr({
- "aria-selected": "false",
- "aria-expanded": "false"
- }), o.length && r.length ? e.oldTab.attr("tabIndex", -1) : o.length && this.tabs.filter(function () {
- return 0 === S(this).attr("tabIndex")
- }).attr("tabIndex", -1), o.attr("aria-hidden", "false"), e.newTab.attr({
- "aria-selected": "true",
- "aria-expanded": "true",
- tabIndex: 0
- })
- },
- _activate: function (t) {
- var e, i = this._findActive(t);
- i[0] !== this.active[0] && (i.length || (i = this.active), e = i.find(".ui-tabs-anchor")[0], this._eventHandler({
- target: e,
- currentTarget: e,
- preventDefault: S.noop
- }))
- },
- _findActive: function (t) {
- return !1 === t ? S() : this.tabs.eq(t)
- },
- _getIndex: function (t) {
- return "string" == typeof t && (t = this.anchors.index(this.anchors.filter("[href$='" + S.ui.escapeSelector(t) + "']"))), t
- },
- _destroy: function () {
- 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 () {
- 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")
- }), this.tabs.each(function () {
- var t = S(this),
- e = t.data("ui-tabs-aria-controls");
- e ? t.attr("aria-controls", e).removeData("ui-tabs-aria-controls") : t.removeAttr("aria-controls")
- }), this.panels.show(), "content" !== this.options.heightStyle && this.panels.css("height", "")
- },
- enable: function (i) {
- var t = this.options.disabled;
- !1 !== t && (t = void 0 !== i && (i = this._getIndex(i), S.isArray(t) ? S.map(t, function (t) {
- return t !== i ? t : null
- }) : S.map(this.tabs, function (t, e) {
- return e !== i ? e : null
- })), this._setOptionDisabled(t))
- },
- disable: function (t) {
- var e = this.options.disabled;
- if (!0 !== e) {
- if (void 0 === t) e = !0;
- else {
- if (t = this._getIndex(t), -1 !== S.inArray(t, e)) return;
- e = S.isArray(e) ? S.merge([t], e).sort() : [t]
- }
- this._setOptionDisabled(e)
- }
- },
- load: function (t, n) {
- t = this._getIndex(t);
-
- function s(t, e) {
- "abort" === e && o.panels.stop(!1, !0), o._removeClass(i, "ui-tabs-loading"), r.removeAttr("aria-busy"), t === o.xhr && delete o.xhr
- }
- var o = this,
- i = this.tabs.eq(t),
- e = i.find(".ui-tabs-anchor"),
- r = this._getPanelForTab(i),
- a = {
- tab: i,
- panel: r
- };
- 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) {
- setTimeout(function () {
- r.html(t), o._trigger("load", n, a), s(i, e)
- }, 1)
- }).fail(function (t, e) {
- setTimeout(function () {
- s(t, e)
- }, 1)
- })))
- },
- _ajaxSettings: function (t, i, n) {
- var s = this;
- return {
- url: t.attr("href").replace(/#.*$/, ""),
- beforeSend: function (t, e) {
- return s._trigger("beforeLoad", i, S.extend({
- jqXHR: t,
- ajaxSettings: e
- }, n))
- }
- }
- },
- _getPanelForTab: function (t) {
- var e = S(t).attr("aria-controls");
- return this.element.find(this._sanitizeSelector("#" + e))
- }
- }), !1 !== S.uiBackCompat && S.widget("ui.tabs", S.ui.tabs, {
- _processTabs: function () {
- this._superApply(arguments), this._addClass(this.tabs, "ui-tab")
- }
- }), S.ui.tabs, S.widget("ui.tooltip", {
- version: "1.12.1",
- options: {
- classes: {
- "ui-tooltip": "ui-corner-all ui-widget-shadow"
- },
- content: function () {
- var t = S(this).attr("title") || "";
- return S("<a>").text(t).html()
- },
- hide: !0,
- items: "[title]:not([disabled])",
- position: {
- my: "left top+15",
- at: "left bottom",
- collision: "flipfit flip"
- },
- show: !0,
- track: !1,
- close: null,
- open: null
- },
- _addDescribedBy: function (t, e) {
- var i = (t.attr("aria-describedby") || "").split(/\s+/);
- i.push(e), t.data("ui-tooltip-id", e).attr("aria-describedby", S.trim(i.join(" ")))
- },
- _removeDescribedBy: function (t) {
- var e = t.data("ui-tooltip-id"),
- i = (t.attr("aria-describedby") || "").split(/\s+/),
- 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")
- },
- _create: function () {
- this._on({
- mouseover: "open",
- focusin: "open"
- }), this.tooltips = {}, this.parents = {}, this.liveRegion = S("<div>").attr({
- role: "log",
- "aria-live": "assertive",
- "aria-relevant": "additions"
- }).appendTo(this.document[0].body), this._addClass(this.liveRegion, null, "ui-helper-hidden-accessible"), this.disabledTitles = S([])
- },
- _setOption: function (t, e) {
- var i = this;
- this._super(t, e), "content" === t && S.each(this.tooltips, function (t, e) {
- i._updateContent(e.element)
- })
- },
- _setOptionDisabled: function (t) {
- this[t ? "_disable" : "_enable"]()
- },
- _disable: function () {
- var n = this;
- S.each(this.tooltips, function (t, e) {
- var i = S.Event("blur");
- i.target = i.currentTarget = e.element[0], n.close(i, !0)
- }), this.disabledTitles = this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function () {
- var t = S(this);
- return t.is("[title]") ? t.data("ui-tooltip-title", t.attr("title")).removeAttr("title") : void 0
- }))
- },
- _enable: function () {
- this.disabledTitles.each(function () {
- var t = S(this);
- t.data("ui-tooltip-title") && t.attr("title", t.data("ui-tooltip-title"))
- }), this.disabledTitles = S([])
- },
- open: function (t) {
- var i = this,
- e = S(t ? t.target : this.element).closest(this.options.items);
- 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 () {
- var t, e = S(this);
- 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] = {
- element: this,
- title: e.attr("title")
- }, e.attr("title", ""))
- }), this._registerCloseHandlers(t, e), this._updateContent(e, t))
- },
- _updateContent: function (e, i) {
- var t, n = this.options.content,
- s = this,
- o = i ? i.type : null;
- return "string" == typeof n || n.nodeType || n.jquery ? this._open(i, e, n) : void((t = n.call(e[0], function (t) {
- s._delay(function () {
- e.data("ui-tooltip-open") && (i && (i.type = o), this._open(i, e, t))
- })
- })) && this._open(i, e, t))
- },
- _open: function (t, e, i) {
- function n(t) {
- l.of = t, o.is(":hidden") || o.position(l)
- }
- var s, o, r, a, l = S.extend({}, this.options.position);
- if (i) {
- if (s = this._find(e)) return void s.tooltip.find(".ui-tooltip-content").html(i);
- 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, {
- mousemove: n
- }), n(t)) : o.position(S.extend({
- of: e
- }, 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 () {
- o.is(":visible") && (n(l.of), clearInterval(r))
- }, S.fx.interval)), this._trigger("open", t, {
- tooltip: o
- })
- }
- },
- _registerCloseHandlers: function (t, i) {
- var e = {
- keyup: function (t) {
- if (t.keyCode === S.ui.keyCode.ESCAPE) {
- var e = S.Event(t);
- e.currentTarget = i[0], this.close(e, !0)
- }
- }
- };
- i[0] !== this.element[0] && (e.remove = function () {
- this._removeTooltip(this._find(i).tooltip)
- }), t && "mouseover" !== t.type || (e.mouseleave = "close"), t && "focusin" !== t.type || (e.focusout = "close"), this._on(!0, i, e)
- },
- close: function (t) {
- var e, i = this,
- n = S(t ? t.currentTarget : this.element),
- s = this._find(n);
- 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 () {
- i._removeTooltip(S(this))
- }), 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) {
- S(e.element).attr("title", e.title), delete i.parents[t]
- }), s.closing = !0, this._trigger("close", t, {
- tooltip: e
- }), s.hiding || (s.closing = !1)))) : void n.removeData("ui-tooltip-open")
- },
- _tooltip: function (t) {
- var e = S("<div>").attr("role", "tooltip"),
- i = S("<div>").appendTo(e),
- n = e.uniqueId().attr("id");
- 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] = {
- element: t,
- tooltip: e
- }
- },
- _find: function (t) {
- var e = t.data("ui-tooltip-id");
- return e ? this.tooltips[e] : null
- },
- _removeTooltip: function (t) {
- t.remove(), delete this.tooltips[t.attr("id")]
- },
- _appendTo: function (t) {
- var e = t.closest(".ui-front, dialog");
- return e.length || (e = this.document[0].body), e
- },
- _destroy: function () {
- var s = this;
- S.each(this.tooltips, function (t, e) {
- var i = S.Event("blur"),
- n = e.element;
- 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"))
- }), this.liveRegion.remove()
- }
- }), !1 !== S.uiBackCompat && S.widget("ui.tooltip", S.ui.tooltip, {
- options: {
- tooltipClass: null
- },
- _tooltip: function () {
- var t = this._superApply(arguments);
- return this.options.tooltipClass && t.tooltip.addClass(this.options.tooltipClass), t
- }
- }), S.ui.tooltip
- }),
- function (t, e) {
- "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()
- }(void 0, function () {
- function p(t) {
- for (; t += Math.floor(1e6 * Math.random()), document.getElementById(t););
- return t
- }
-
- function i(t) {
- var e = t.getAttribute("data-bs-target");
- if (!e || "#" === e) {
- var i = t.getAttribute("href");
- if (!i || !i.includes("#") && !i.startsWith(".")) return null;
- i.includes("#") && !i.startsWith("#") && (i = "#" + i.split("#")[1]), e = i && "#" !== i ? i.trim() : null
- }
- return e
- }
-
- function h(t) {
- var e = i(t);
- return e && document.querySelector(e) ? e : null
- }
-
- function a(t) {
- var e = i(t);
- return e ? document.querySelector(e) : null
- }
-
- function e(t) {
- t.dispatchEvent(new Event("transitionend"))
- }
-
- function c(t) {
- return !(!t || "object" != _typeof(t)) && (void 0 !== t.jquery && (t = t[0]), void 0 !== t.nodeType)
- }
-
- function r(t) {
- return c(t) ? t.jquery ? t[0] : t : "string" == typeof t && 0 < t.length ? y(t) : null
- }
-
- function d(o, r, a) {
- Object.keys(a).forEach(function (t) {
- var e, i = a[t],
- n = r[t],
- s = n && c(n) ? "element" : null == (e = n) ? "" + e : {}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase();
- if (!new RegExp(i).test(s)) throw new TypeError("".concat(o.toUpperCase(), ': Option "').concat(t, '" provided type "').concat(s, '" but expected type "').concat(i, '".'))
- })
- }
-
- function s(t) {
- return !(!c(t) || 0 === t.getClientRects().length) && "visible" === getComputedStyle(t).getPropertyValue("visibility")
- }
-
- function u(t) {
- return !t || t.nodeType !== Node.ELEMENT_NODE || !!t.classList.contains("disabled") || (void 0 !== t.disabled ? t.disabled : t.hasAttribute("disabled") && "false" !== t.getAttribute("disabled"))
- }
-
- function f() {}
-
- function g(t) {
- return t.offsetHeight
- }
-
- function m() {
- var t = window.jQuery;
- return t && !document.body.hasAttribute("data-bs-no-jquery") ? t : null
- }
-
- function l() {
- return "rtl" === document.documentElement.dir
- }
-
- function t(n) {
- var t;
- t = function () {
- var t = m();
- if (t) {
- var e = n.NAME,
- i = t.fn[e];
- t.fn[e] = n.jQueryInterface, t.fn[e].Constructor = n, t.fn[e].noConflict = function () {
- return t.fn[e] = i, n.jQueryInterface
- }
- }
- }, "loading" === document.readyState ? (C.length || document.addEventListener("DOMContentLoaded", function () {
- C.forEach(function (t) {
- return t()
- })
- }), C.push(t)) : t()
- }
-
- function o(t) {
- "function" == typeof t && t()
- }
-
- function n(i, n) {
- if (!(2 < arguments.length && void 0 !== arguments[2]) || arguments[2]) {
- var t = function (t) {
- if (!t) return 0;
- var e = window.getComputedStyle(t),
- i = e.transitionDuration,
- n = e.transitionDelay,
- s = Number.parseFloat(i),
- o = Number.parseFloat(n);
- return s || o ? (i = i.split(",")[0], n = n.split(",")[0], 1e3 * (Number.parseFloat(i) + Number.parseFloat(n))) : 0
- }(n) + 5,
- s = !1;
- n.addEventListener("transitionend", function t(e) {
- e.target === n && (s = !0, n.removeEventListener("transitionend", t), o(i))
- }), setTimeout(function () {
- s || e(n)
- }, t)
- } else o(i)
- }
-
- function v(t, e, i, n) {
- var s = t.indexOf(e);
- if (-1 === s) return t[!i && n ? t.length - 1 : 0];
- var o = t.length;
- return s += i ? 1 : -1, n && (s = (s + o) % o), t[Math.max(0, Math.min(s, o - 1))]
- }
- var _ = function (t) {
- var e, i = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : document.documentElement;
- return (e = []).concat.apply(e, _toConsumableArray(Element.prototype.querySelectorAll.call(i, t)))
- },
- y = function (t) {
- var e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : document.documentElement;
- return Element.prototype.querySelector.call(e, t)
- },
- b = function (t, e) {
- var i;
- return (i = []).concat.apply(i, _toConsumableArray(t.children)).filter(function (t) {
- return t.matches(e)
- })
- },
- w = function (t, e) {
- for (var i = [], n = t.parentNode; n && n.nodeType === Node.ELEMENT_NODE && 3 !== n.nodeType;) n.matches(e) && i.push(n), n = n.parentNode;
- return i
- },
- k = function (t, e) {
- for (var i = t.previousElementSibling; i;) {
- if (i.matches(e)) return [i];
- i = i.previousElementSibling
- }
- return []
- },
- x = function (t, e) {
- for (var i = t.nextElementSibling; i;) {
- if (i.matches(e)) return [i];
- i = i.nextElementSibling
- }
- return []
- },
- C = [],
- T = /[^.]*(?=\..*)\.|.*/,
- S = /\..*/,
- D = /::\d+$/,
- A = {},
- E = 1,
- P = {
- mouseenter: "mouseover",
- mouseleave: "mouseout"
- },
- I = /^(mouseenter|mouseleave)/i,
- 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"]);
-
- function M(t, e) {
- return e && "".concat(e, "::").concat(E++) || t.uidEvent || E++
- }
-
- function N(t) {
- var e = M(t);
- return t.uidEvent = e, A[e] = A[e] || {}, A[e]
- }
-
- function L(t, e) {
- 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++) {
- var r = t[n[s]];
- if (r.originalHandler === e && r.delegationSelector === i) return r
- }
- return null
- }
-
- function H(t, e, i) {
- var n = "string" == typeof e,
- s = n ? i : e,
- o = W(t);
- return O.has(o) || (o = t), [n, s, o]
- }
-
- function j(t, e, i, n, s) {
- if ("string" == typeof e && t) {
- if (i || (i = n, n = null), I.test(e)) {
- var o = function (e) {
- return function (t) {
- if (!t.relatedTarget || t.relatedTarget !== t.delegateTarget && !t.delegateTarget.contains(t.relatedTarget)) return e.call(this, t)
- }
- };
- n ? n = o(n) : i = o(i)
- }
- var r = H(e, i, n),
- a = _slicedToArray(r, 3),
- l = a[0],
- c = a[1],
- u = a[2],
- h = N(t),
- d = h[u] || (h[u] = {}),
- p = L(d, c, l ? i : null);
- if (p) p.oneOff = p.oneOff && s;
- else {
- var f, g, m, v, _, y = M(c, e.replace(T, "")),
- b = l ? (m = t, v = i, _ = n, function t(e) {
- for (var i = m.querySelectorAll(v), n = e.target; n && n !== this; n = n.parentNode)
- for (var s = i.length; s--;)
- if (i[s] === n) return e.delegateTarget = n, t.oneOff && $.off(m, e.type, v, _), _.apply(n, [e]);
- return null
- }) : (f = t, g = i, function t(e) {
- return e.delegateTarget = f, t.oneOff && $.off(f, e.type, g), g.apply(f, [e])
- });
- b.delegationSelector = l ? i : null, b.originalHandler = c, b.oneOff = s, d[b.uidEvent = y] = b, t.addEventListener(u, b, l)
- }
- }
- }
-
- function z(t, e, i, n, s) {
- var o = L(e[i], n, s);
- o && (t.removeEventListener(i, o, Boolean(s)), delete e[i][o.uidEvent])
- }
-
- function W(t) {
- return t = t.replace(S, ""), P[t] || t
- }
- var $ = {
- on: function (t, e, i, n) {
- j(t, e, i, n, !1)
- },
- one: function (t, e, i, n) {
- j(t, e, i, n, !0)
- },
- off: function (a, l, t, e) {
- if ("string" == typeof l && a) {
- var i = H(l, t, e),
- n = _slicedToArray(i, 3),
- s = n[0],
- o = n[1],
- r = n[2],
- c = r !== l,
- u = N(a),
- h = l.startsWith(".");
- if (void 0 === o) {
- h && Object.keys(u).forEach(function (t) {
- var i, n, s, o, r;
- i = a, n = u, s = t, o = l.slice(1), r = n[s] || {}, Object.keys(r).forEach(function (t) {
- if (t.includes(o)) {
- var e = r[t];
- z(i, n, s, e.originalHandler, e.delegationSelector)
- }
- })
- });
- var d = u[r] || {};
- Object.keys(d).forEach(function (t) {
- var e = t.replace(D, "");
- if (!c || l.includes(e)) {
- var i = d[t];
- z(a, u, r, i.originalHandler, i.delegationSelector)
- }
- })
- } else {
- if (!u || !u[r]) return;
- z(a, u, r, o, s ? t : null)
- }
- }
- },
- trigger: function (t, e, i) {
- if ("string" != typeof e || !t) return null;
- var n, s = m(),
- o = W(e),
- r = e !== o,
- a = O.has(o),
- l = !0,
- c = !0,
- u = !1,
- h = null;
- 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, {
- bubbles: l,
- cancelable: !0
- }), void 0 !== i && Object.keys(i).forEach(function (t) {
- Object.defineProperty(h, t, {
- get: function () {
- return i[t]
- }
- })
- }), u && h.preventDefault(), c && t.dispatchEvent(h), h.defaultPrevented && void 0 !== n && n.preventDefault(), h
- }
- },
- R = new Map,
- F = function (t, e, i) {
- R.has(t) || R.set(t, new Map);
- var n = R.get(t);
- 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], "."))
- },
- q = function (t, e) {
- return R.has(t) && R.get(t).get(e) || null
- },
- B = function (t, e) {
- if (R.has(t)) {
- var i = R.get(t);
- i.delete(e), 0 === i.size && R.delete(t)
- }
- },
- U = function () {
- function e(t) {
- _classCallCheck(this, e), (t = r(t)) && (this._element = t, F(this._element, this.constructor.DATA_KEY, this))
- }
- return _createClass(e, [{
- key: "dispose",
- value: function () {
- var e = this;
- B(this._element, this.constructor.DATA_KEY), $.off(this._element, this.constructor.EVENT_KEY), Object.getOwnPropertyNames(this).forEach(function (t) {
- e[t] = null
- })
- }
- }, {
- key: "_queueCallback",
- value: function (t, e) {
- var i = !(2 < arguments.length && void 0 !== arguments[2]) || arguments[2];
- n(t, e, i)
- }
- }], [{
- key: "getInstance",
- value: function (t) {
- return q(t, this.DATA_KEY)
- }
- }, {
- key: "getOrCreateInstance",
- value: function (t) {
- var e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {};
- return this.getInstance(t) || new this(t, "object" == _typeof(e) ? e : null)
- }
- }, {
- key: "VERSION",
- get: function () {
- return "5.0.2"
- }
- }, {
- key: "NAME",
- get: function () {
- throw new Error('You have to implement the static method "NAME", for each component!')
- }
- }, {
- key: "DATA_KEY",
- get: function () {
- return "bs." + this.NAME
- }
- }, {
- key: "EVENT_KEY",
- get: function () {
- return "." + this.DATA_KEY
- }
- }]), e
- }(),
- Y = function (t) {
- _inherits(i, U);
- var e = _createSuper(i);
-
- function i() {
- return _classCallCheck(this, i), e.apply(this, arguments)
- }
- return _createClass(i, [{
- key: "close",
- value: function (t) {
- var e = t ? this._getRootElement(t) : this._element,
- i = this._triggerCloseEvent(e);
- null === i || i.defaultPrevented || this._removeElement(e)
- }
- }, {
- key: "_getRootElement",
- value: function (t) {
- return a(t) || t.closest(".alert")
- }
- }, {
- key: "_triggerCloseEvent",
- value: function (t) {
- return $.trigger(t, "close.bs.alert")
- }
- }, {
- key: "_removeElement",
- value: function (t) {
- var e = this;
- t.classList.remove("show");
- var i = t.classList.contains("fade");
- this._queueCallback(function () {
- return e._destroyElement(t)
- }, t, i)
- }
- }, {
- key: "_destroyElement",
- value: function (t) {
- t.remove(), $.trigger(t, "closed.bs.alert")
- }
- }], [{
- key: "jQueryInterface",
- value: function (e) {
- return this.each(function () {
- var t = i.getOrCreateInstance(this);
- "close" === e && t[e](this)
- })
- }
- }, {
- key: "handleDismiss",
- value: function (e) {
- return function (t) {
- t && t.preventDefault(), e.close(this)
- }
- }
- }, {
- key: "NAME",
- get: function () {
- return "alert"
- }
- }]), i
- }();
- $.on(document, "click.bs.alert.data-api", '[data-bs-dismiss="alert"]', Y.handleDismiss(new Y)), t(Y);
- var V = function (t) {
- _inherits(i, U);
- var e = _createSuper(i);
-
- function i() {
- return _classCallCheck(this, i), e.apply(this, arguments)
- }
- return _createClass(i, [{
- key: "toggle",
- value: function () {
- this._element.setAttribute("aria-pressed", this._element.classList.toggle("active"))
- }
- }], [{
- key: "jQueryInterface",
- value: function (e) {
- return this.each(function () {
- var t = i.getOrCreateInstance(this);
- "toggle" === e && t[e]()
- })
- }
- }, {
- key: "NAME",
- get: function () {
- return "button"
- }
- }]), i
- }();
-
- function K(t) {
- return "true" === t || "false" !== t && (t === Number(t).toString() ? Number(t) : "" === t || "null" === t ? null : t)
- }
-
- function X(t) {
- return t.replace(/[A-Z]/g, function (t) {
- return "-" + t.toLowerCase()
- })
- }
- $.on(document, "click.bs.button.data-api", '[data-bs-toggle="button"]', function (t) {
- t.preventDefault();
- var e = t.target.closest('[data-bs-toggle="button"]');
- V.getOrCreateInstance(e).toggle()
- }), t(V);
- var Q = {
- setDataAttribute: function (t, e, i) {
- t.setAttribute("data-bs-" + X(e), i)
- },
- removeDataAttribute: function (t, e) {
- t.removeAttribute("data-bs-" + X(e))
- },
- getDataAttributes: function (i) {
- if (!i) return {};
- var n = {};
- return Object.keys(i.dataset).filter(function (t) {
- return t.startsWith("bs")
- }).forEach(function (t) {
- var e = t.replace(/^bs/, "");
- e = e.charAt(0).toLowerCase() + e.slice(1, e.length), n[e] = K(i.dataset[t])
- }), n
- },
- getDataAttribute: function (t, e) {
- return K(t.getAttribute("data-bs-" + X(e)))
- },
- offset: function (t) {
- var e = t.getBoundingClientRect();
- return {
- top: e.top + document.body.scrollTop,
- left: e.left + document.body.scrollLeft
- }
- },
- position: function (t) {
- return {
- top: t.offsetTop,
- left: t.offsetLeft
- }
- }
- },
- G = {
- interval: 5e3,
- keyboard: !0,
- slide: !1,
- pause: "hover",
- wrap: !0,
- touch: !0
- },
- J = {
- interval: "(number|boolean)",
- keyboard: "boolean",
- slide: "(boolean|string)",
- pause: "(string|boolean)",
- wrap: "boolean",
- touch: "boolean"
- },
- Z = "next",
- tt = "prev",
- et = "left",
- it = "right",
- nt = {
- ArrowLeft: it,
- ArrowRight: et
- },
- st = function (t) {
- _inherits(o, U);
- var n = _createSuper(o);
-
- function o(t, e) {
- var i;
- 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
- }
- return _createClass(o, [{
- key: "next",
- value: function () {
- this._slide(Z)
- }
- }, {
- key: "nextWhenVisible",
- value: function () {
- !document.hidden && s(this._element) && this.next()
- }
- }, {
- key: "prev",
- value: function () {
- this._slide(tt)
- }
- }, {
- key: "pause",
- value: function (t) {
- 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
- }
- }, {
- key: "cycle",
- value: function (t) {
- 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))
- }
- }, {
- key: "to",
- value: function (t) {
- var e = this;
- this._activeElement = y(".active.carousel-item", this._element);
- var i = this._getItemIndex(this._activeElement);
- if (!(t > this._items.length - 1 || t < 0))
- if (this._isSliding) $.one(this._element, "slid.bs.carousel", function () {
- return e.to(t)
- });
- else {
- if (i === t) return this.pause(), void this.cycle();
- var n = i < t ? Z : tt;
- this._slide(n, this._items[t])
- }
- }
- }, {
- key: "_getConfig",
- value: function (t) {
- return t = _objectSpread(_objectSpread(_objectSpread({}, G), Q.getDataAttributes(this._element)), "object" == _typeof(t) ? t : {}), d("carousel", t, J), t
- }
- }, {
- key: "_handleSwipe",
- value: function () {
- var t = Math.abs(this.touchDeltaX);
- if (!(t <= 40)) {
- var e = t / this.touchDeltaX;
- this.touchDeltaX = 0, e && this._slide(0 < e ? it : et)
- }
- }
- }, {
- key: "_addEventListeners",
- value: function () {
- var e = this;
- this._config.keyboard && $.on(this._element, "keydown.bs.carousel", function (t) {
- return e._keydown(t)
- }), "hover" === this._config.pause && ($.on(this._element, "mouseenter.bs.carousel", function (t) {
- return e.pause(t)
- }), $.on(this._element, "mouseleave.bs.carousel", function (t) {
- return e.cycle(t)
- })), this._config.touch && this._touchSupported && this._addTouchEventListeners()
- }
- }, {
- key: "_addTouchEventListeners",
- value: function () {
- function e(t) {
- !n._pointerEvent || "pen" !== t.pointerType && "touch" !== t.pointerType ? n._pointerEvent || (n.touchStartX = t.touches[0].clientX) : n.touchStartX = t.clientX
- }
-
- function i(t) {
- !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) {
- return n.cycle(t)
- }, 500 + n._config.interval))
- }
- var n = this;
- _(".carousel-item img", this._element).forEach(function (t) {
- $.on(t, "dragstart.bs.carousel", function (t) {
- return t.preventDefault()
- })
- }), this._pointerEvent ? ($.on(this._element, "pointerdown.bs.carousel", function (t) {
- return e(t)
- }), $.on(this._element, "pointerup.bs.carousel", function (t) {
- return i(t)
- }), this._element.classList.add("pointer-event")) : ($.on(this._element, "touchstart.bs.carousel", function (t) {
- return e(t)
- }), $.on(this._element, "touchmove.bs.carousel", function (t) {
- return function (t) {
- n.touchDeltaX = t.touches && 1 < t.touches.length ? 0 : t.touches[0].clientX - n.touchStartX
- }(t)
- }), $.on(this._element, "touchend.bs.carousel", function (t) {
- return i(t)
- }))
- }
- }, {
- key: "_keydown",
- value: function (t) {
- if (!/input|textarea/i.test(t.target.tagName)) {
- var e = nt[t.key];
- e && (t.preventDefault(), this._slide(e))
- }
- }
- }, {
- key: "_getItemIndex",
- value: function (t) {
- return this._items = t && t.parentNode ? _(".carousel-item", t.parentNode) : [], this._items.indexOf(t)
- }
- }, {
- key: "_getItemByOrder",
- value: function (t, e) {
- var i = t === Z;
- return v(this._items, e, i, this._config.wrap)
- }
- }, {
- key: "_triggerSlideEvent",
- value: function (t, e) {
- var i = this._getItemIndex(t),
- n = this._getItemIndex(y(".active.carousel-item", this._element));
- return $.trigger(this._element, "slide.bs.carousel", {
- relatedTarget: t,
- direction: e,
- from: n,
- to: i
- })
- }
- }, {
- key: "_setActiveIndicatorElement",
- value: function (t) {
- if (this._indicatorsElement) {
- var e = y(".active", this._indicatorsElement);
- e.classList.remove("active"), e.removeAttribute("aria-current");
- for (var i = _("[data-bs-target]", this._indicatorsElement), n = 0; n < i.length; n++)
- if (Number.parseInt(i[n].getAttribute("data-bs-slide-to"), 10) === this._getItemIndex(t)) {
- i[n].classList.add("active"), i[n].setAttribute("aria-current", "true");
- break
- }
- }
- }
- }, {
- key: "_updateInterval",
- value: function () {
- var t = this._activeElement || y(".active.carousel-item", this._element);
- if (t) {
- var e = Number.parseInt(t.getAttribute("data-bs-interval"), 10);
- e ? (this._config.defaultInterval = this._config.defaultInterval || this._config.interval, this._config.interval = e) : this._config.interval = this._config.defaultInterval || this._config.interval
- }
- }
- }, {
- key: "_slide",
- value: function (t, e) {
- var i = this,
- n = this._directionToOrder(t),
- s = y(".active.carousel-item", this._element),
- o = this._getItemIndex(s),
- r = e || this._getItemByOrder(n, s),
- a = this._getItemIndex(r),
- l = Boolean(this._interval),
- c = n === Z,
- u = c ? "carousel-item-start" : "carousel-item-end",
- h = c ? "carousel-item-next" : "carousel-item-prev",
- d = this._orderToDirection(n);
- if (r && r.classList.contains("active")) this._isSliding = !1;
- else if (!this._isSliding && !this._triggerSlideEvent(r, d).defaultPrevented && s && r) {
- this._isSliding = !0, l && this.pause(), this._setActiveIndicatorElement(r), this._activeElement = r;
- var p = function () {
- $.trigger(i._element, "slid.bs.carousel", {
- relatedTarget: r,
- direction: d,
- from: o,
- to: a
- })
- };
- if (this._element.classList.contains("slide")) {
- r.classList.add(h), g(r), s.classList.add(u), r.classList.add(u);
- this._queueCallback(function () {
- r.classList.remove(u, h), r.classList.add("active"), s.classList.remove("active", h, u), i._isSliding = !1, setTimeout(p, 0)
- }, s, !0)
- } else s.classList.remove("active"), r.classList.add("active"), this._isSliding = !1, p();
- l && this.cycle()
- }
- }
- }, {
- key: "_directionToOrder",
- value: function (t) {
- return [it, et].includes(t) ? l() ? t === et ? tt : Z : t === et ? Z : tt : t
- }
- }, {
- key: "_orderToDirection",
- value: function (t) {
- return [Z, tt].includes(t) ? l() ? t === tt ? et : it : t === tt ? it : et : t
- }
- }], [{
- key: "carouselInterface",
- value: function (t, e) {
- var i = o.getOrCreateInstance(t, e),
- n = i._config;
- "object" == _typeof(e) && (n = _objectSpread(_objectSpread({}, n), e));
- var s = "string" == typeof e ? e : n.slide;
- if ("number" == typeof e) i.to(e);
- else if ("string" == typeof s) {
- if (void 0 === i[s]) throw new TypeError('No method named "'.concat(s, '"'));
- i[s]()
- } else n.interval && n.ride && (i.pause(), i.cycle())
- }
- }, {
- key: "jQueryInterface",
- value: function (t) {
- return this.each(function () {
- o.carouselInterface(this, t)
- })
- }
- }, {
- key: "dataApiClickHandler",
- value: function (t) {
- var e = a(this);
- if (e && e.classList.contains("carousel")) {
- var i = _objectSpread(_objectSpread({}, Q.getDataAttributes(e)), Q.getDataAttributes(this)),
- n = this.getAttribute("data-bs-slide-to");
- n && (i.interval = !1), o.carouselInterface(e, i), n && o.getInstance(e).to(n), t.preventDefault()
- }
- }
- }, {
- key: "Default",
- get: function () {
- return G
- }
- }, {
- key: "NAME",
- get: function () {
- return "carousel"
- }
- }]), o
- }();
- $.on(document, "click.bs.carousel.data-api", "[data-bs-slide], [data-bs-slide-to]", st.dataApiClickHandler), $.on(window, "load.bs.carousel.data-api", function () {
- for (var t = _('[data-bs-ride="carousel"]'), e = 0, i = t.length; e < i; e++) st.carouselInterface(t[e], st.getInstance(t[e]))
- }), t(st);
- var ot = {
- toggle: !0,
- parent: ""
- },
- rt = {
- toggle: "boolean",
- parent: "(string|element)"
- },
- at = function (t) {
- _inherits(u, U);
- var c = _createSuper(u);
-
- function u(t, e) {
- var i;
- _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, '"]'));
- for (var n = _('[data-bs-toggle="collapse"]'), s = 0, o = n.length; s < o; s++) {
- var r = n[s],
- a = h(r),
- l = _(a).filter(function (t) {
- return t === i._element
- });
- null !== a && l.length && (i._selector = a, i._triggerArray.push(r))
- }
- return i._parent = i._config.parent ? i._getParent() : null, i._config.parent || i._addAriaAndCollapsedClass(i._element, i._triggerArray), i._config.toggle && i.toggle(), i
- }
- return _createClass(u, [{
- key: "toggle",
- value: function () {
- this._element.classList.contains("show") ? this.hide() : this.show()
- }
- }, {
- key: "show",
- value: function () {
- var e = this;
- if (!this._isTransitioning && !this._element.classList.contains("show")) {
- var t, i;
- this._parent && (0 === (t = _(".show, .collapsing", this._parent).filter(function (t) {
- return "string" == typeof e._config.parent ? t.getAttribute("data-bs-parent") === e._config.parent : t.classList.contains("collapse")
- })).length && (t = null));
- var n = y(this._selector);
- if (t) {
- var s = t.find(function (t) {
- return n !== t
- });
- if ((i = s ? u.getInstance(s) : null) && i._isTransitioning) return
- }
- if (!$.trigger(this._element, "show.bs.collapse").defaultPrevented) {
- t && t.forEach(function (t) {
- n !== t && u.collapseInterface(t, "hide"), i || F(t, "bs.collapse", null)
- });
- var o = this._getDimension();
- this._element.classList.remove("collapse"), this._element.classList.add("collapsing"), this._element.style[o] = 0, this._triggerArray.length && this._triggerArray.forEach(function (t) {
- t.classList.remove("collapsed"), t.setAttribute("aria-expanded", !0)
- }), this.setTransitioning(!0);
- var r = "scroll" + (o[0].toUpperCase() + o.slice(1));
- this._queueCallback(function () {
- e._element.classList.remove("collapsing"), e._element.classList.add("collapse", "show"), e._element.style[o] = "", e.setTransitioning(!1), $.trigger(e._element, "shown.bs.collapse")
- }, this._element, !0), this._element.style[o] = this._element[r] + "px"
- }
- }
- }
- }, {
- key: "hide",
- value: function () {
- var t = this;
- if (!this._isTransitioning && this._element.classList.contains("show") && !$.trigger(this._element, "hide.bs.collapse").defaultPrevented) {
- var e = this._getDimension();
- this._element.style[e] = this._element.getBoundingClientRect()[e] + "px", g(this._element), this._element.classList.add("collapsing"), this._element.classList.remove("collapse", "show");
- var i = this._triggerArray.length;
- if (0 < i)
- for (var n = 0; n < i; n++) {
- var s = this._triggerArray[n],
- o = a(s);
- o && !o.classList.contains("show") && (s.classList.add("collapsed"), s.setAttribute("aria-expanded", !1))
- }
- this.setTransitioning(!0), this._element.style[e] = "", this._queueCallback(function () {
- t.setTransitioning(!1), t._element.classList.remove("collapsing"), t._element.classList.add("collapse"), $.trigger(t._element, "hidden.bs.collapse")
- }, this._element, !0)
- }
- }
- }, {
- key: "setTransitioning",
- value: function (t) {
- this._isTransitioning = t
- }
- }, {
- key: "_getConfig",
- value: function (t) {
- return (t = _objectSpread(_objectSpread({}, ot), t)).toggle = Boolean(t.toggle), d("collapse", t, rt), t
- }
- }, {
- key: "_getDimension",
- value: function () {
- return this._element.classList.contains("width") ? "width" : "height"
- }
- }, {
- key: "_getParent",
- value: function () {
- var i = this,
- t = this._config.parent;
- t = r(t);
- var e = '[data-bs-toggle="collapse"][data-bs-parent="'.concat(t, '"]');
- return _(e, t).forEach(function (t) {
- var e = a(t);
- i._addAriaAndCollapsedClass(e, [t])
- }), t
- }
- }, {
- key: "_addAriaAndCollapsedClass",
- value: function (t, e) {
- if (t && e.length) {
- var i = t.classList.contains("show");
- e.forEach(function (t) {
- i ? t.classList.remove("collapsed") : t.classList.add("collapsed"), t.setAttribute("aria-expanded", i)
- })
- }
- }
- }], [{
- key: "collapseInterface",
- value: function (t, e) {
- var i = u.getInstance(t),
- n = _objectSpread(_objectSpread(_objectSpread({}, ot), Q.getDataAttributes(t)), "object" == _typeof(e) && e ? e : {});
- if (!i && n.toggle && "string" == typeof e && /show|hide/.test(e) && (n.toggle = !1), i || (i = new u(t, n)), "string" == typeof e) {
- if (void 0 === i[e]) throw new TypeError('No method named "'.concat(e, '"'));
- i[e]()
- }
- }
- }, {
- key: "jQueryInterface",
- value: function (t) {
- return this.each(function () {
- u.collapseInterface(this, t)
- })
- }
- }, {
- key: "Default",
- get: function () {
- return ot
- }
- }, {
- key: "NAME",
- get: function () {
- return "collapse"
- }
- }]), u
- }();
- $.on(document, "click.bs.collapse.data-api", '[data-bs-toggle="collapse"]', function (t) {
- ("A" === t.target.tagName || t.delegateTarget && "A" === t.delegateTarget.tagName) && t.preventDefault();
- var n = Q.getDataAttributes(this),
- e = h(this);
- _(e).forEach(function (t) {
- var e, i = at.getInstance(t);
- e = i ? (null === i._parent && "string" == typeof n.parent && (i._config.parent = n.parent, i._parent = i._getParent()), "toggle") : n, at.collapseInterface(t, e)
- })
- }), t(at);
- var lt = "top",
- ct = "bottom",
- ut = "right",
- ht = "left",
- dt = [lt, ct, ut, ht],
- pt = dt.reduce(function (t, e) {
- return t.concat([e + "-start", e + "-end"])
- }, []),
- ft = [].concat(dt, ["auto"]).reduce(function (t, e) {
- return t.concat([e, e + "-start", e + "-end"])
- }, []),
- gt = ["beforeRead", "read", "afterRead", "beforeMain", "main", "afterMain", "beforeWrite", "write", "afterWrite"];
-
- function mt(t) {
- return t ? (t.nodeName || "").toLowerCase() : null
- }
-
- function vt(t) {
- if (null == t) return window;
- if ("[object Window]" === t.toString()) return t;
- var e = t.ownerDocument;
- return e && e.defaultView || window
- }
-
- function _t(t) {
- return t instanceof vt(t).Element || t instanceof Element
- }
-
- function yt(t) {
- return t instanceof vt(t).HTMLElement || t instanceof HTMLElement
- }
-
- function bt(t) {
- return "undefined" != typeof ShadowRoot && (t instanceof vt(t).ShadowRoot || t instanceof ShadowRoot)
- }
- var wt = {
- name: "applyStyles",
- enabled: !0,
- phase: "write",
- fn: function (t) {
- var s = t.state;
- Object.keys(s.elements).forEach(function (t) {
- var e = s.styles[t] || {},
- i = s.attributes[t] || {},
- n = s.elements[t];
- yt(n) && mt(n) && (Object.assign(n.style, e), Object.keys(i).forEach(function (t) {
- var e = i[t];
- !1 === e ? n.removeAttribute(t) : n.setAttribute(t, !0 === e ? "" : e)
- }))
- })
- },
- effect: function (t) {
- var s = t.state,
- o = {
- popper: {
- position: s.options.strategy,
- left: "0",
- top: "0",
- margin: "0"
- },
- arrow: {
- position: "absolute"
- },
- reference: {}
- };
- return Object.assign(s.elements.popper.style, o.popper), s.styles = o, s.elements.arrow && Object.assign(s.elements.arrow.style, o.arrow),
- function () {
- Object.keys(s.elements).forEach(function (t) {
- var e = s.elements[t],
- i = s.attributes[t] || {},
- n = Object.keys(s.styles.hasOwnProperty(t) ? s.styles[t] : o[t]).reduce(function (t, e) {
- return t[e] = "", t
- }, {});
- yt(e) && mt(e) && (Object.assign(e.style, n), Object.keys(i).forEach(function (t) {
- e.removeAttribute(t)
- }))
- })
- }
- },
- requires: ["computeStyles"]
- };
-
- function kt(t) {
- return t.split("-")[0]
- }
-
- function xt(t) {
- var e = t.getBoundingClientRect();
- return {
- width: e.width,
- height: e.height,
- top: e.top,
- right: e.right,
- bottom: e.bottom,
- left: e.left,
- x: e.left,
- y: e.top
- }
- }
-
- function Ct(t) {
- var e = xt(t),
- i = t.offsetWidth,
- n = t.offsetHeight;
- return Math.abs(e.width - i) <= 1 && (i = e.width), Math.abs(e.height - n) <= 1 && (n = e.height), {
- x: t.offsetLeft,
- y: t.offsetTop,
- width: i,
- height: n
- }
- }
-
- function Tt(t, e) {
- var i = e.getRootNode && e.getRootNode();
- if (t.contains(e)) return !0;
- if (i && bt(i)) {
- var n = e;
- do {
- if (n && t.isSameNode(n)) return !0;
- n = n.parentNode || n.host
- } while (n)
- }
- return !1
- }
-
- function St(t) {
- return vt(t).getComputedStyle(t)
- }
-
- function Dt(t) {
- return ((_t(t) ? t.ownerDocument : t.document) || window.document).documentElement
- }
-
- function At(t) {
- return "html" === mt(t) ? t : t.assignedSlot || t.parentNode || (bt(t) ? t.host : null) || Dt(t)
- }
-
- function Et(t) {
- return yt(t) && "fixed" !== St(t).position ? t.offsetParent : null
- }
-
- function Pt(t) {
- for (var e = vt(t), i = Et(t); i && 0 <= ["table", "td", "th"].indexOf(mt(i)) && "static" === St(i).position;) i = Et(i);
- return i && ("html" === mt(i) || "body" === mt(i) && "static" === St(i).position) ? e : i || function (t) {
- var e = -1 !== navigator.userAgent.toLowerCase().indexOf("firefox");
- if (-1 !== navigator.userAgent.indexOf("Trident") && yt(t) && "fixed" === St(t).position) return null;
- for (var i = At(t); yt(i) && ["html", "body"].indexOf(mt(i)) < 0;) {
- var n = St(i);
- 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;
- i = i.parentNode
- }
- return null
- }(t) || e
- }
-
- function It(t) {
- return 0 <= ["top", "bottom"].indexOf(t) ? "x" : "y"
- }
- var Ot = Math.max,
- Mt = Math.min,
- Nt = Math.round;
-
- function Lt(t, e, i) {
- return Ot(t, Mt(e, i))
- }
-
- function Ht(t) {
- return Object.assign({}, {
- top: 0,
- right: 0,
- bottom: 0,
- left: 0
- }, t)
- }
-
- function jt(i, t) {
- return t.reduce(function (t, e) {
- return t[e] = i, t
- }, {})
- }
- var zt = {
- name: "arrow",
- enabled: !0,
- phase: "main",
- fn: function (t) {
- var e, i, n, s = t.state,
- o = t.name,
- r = t.options,
- a = s.elements.arrow,
- l = s.modifiersData.popperOffsets,
- c = kt(s.placement),
- u = It(c),
- h = 0 <= [ht, ut].indexOf(c) ? "height" : "width";
- if (a && l) {
- var d = (i = r.padding, n = s, Ht("number" != typeof (i = "function" == typeof i ? i(Object.assign({}, n.rects, {
- placement: n.placement
- })) : i) ? i : jt(i, dt))),
- p = Ct(a),
- f = "y" === u ? lt : ht,
- g = "y" === u ? ct : ut,
- m = s.rects.reference[h] + s.rects.reference[u] - l[u] - s.rects.popper[h],
- v = l[u] - s.rects.reference[u],
- _ = Pt(a),
- y = _ ? "y" === u ? _.clientHeight || 0 : _.clientWidth || 0 : 0,
- b = m / 2 - v / 2,
- w = d[f],
- k = y - p[h] - d[g],
- x = y / 2 - p[h] / 2 + b,
- C = Lt(w, x, k),
- T = u;
- s.modifiersData[o] = ((e = {})[T] = C, e.centerOffset = C - x, e)
- }
- },
- effect: function (t) {
- var e = t.state,
- i = t.options.element,
- n = void 0 === i ? "[data-popper-arrow]" : i;
- null != n && ("string" != typeof n || (n = e.elements.popper.querySelector(n))) && Tt(e.elements.popper, n) && (e.elements.arrow = n)
- },
- requires: ["popperOffsets"],
- requiresIfExists: ["preventOverflow"]
- },
- Wt = {
- top: "auto",
- right: "auto",
- bottom: "auto",
- left: "auto"
- };
-
- function $t(t) {
- var e, i, n, s, o, r = t.popper,
- a = t.popperRect,
- l = t.placement,
- c = t.offsets,
- u = t.position,
- h = t.gpuAcceleration,
- d = t.adaptive,
- p = t.roundOffsets,
- f = !0 === p ? (n = (i = c).x, s = i.y, o = window.devicePixelRatio || 1, {
- x: Nt(Nt(n * o) / o) || 0,
- y: Nt(Nt(s * o) / o) || 0
- }) : "function" == typeof p ? p(c) : c,
- g = f.x,
- m = void 0 === g ? 0 : g,
- v = f.y,
- _ = void 0 === v ? 0 : v,
- y = c.hasOwnProperty("x"),
- b = c.hasOwnProperty("y"),
- w = ht,
- k = lt,
- x = window;
- if (d) {
- var C = Pt(r),
- T = "clientHeight",
- S = "clientWidth";
- 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)
- }
- var D, A = Object.assign({
- position: u
- }, d && Wt);
- 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))
- }
- var Rt = {
- name: "computeStyles",
- enabled: !0,
- phase: "beforeWrite",
- fn: function (t) {
- var e = t.state,
- i = t.options,
- n = i.gpuAcceleration,
- s = void 0 === n || n,
- o = i.adaptive,
- r = void 0 === o || o,
- a = i.roundOffsets,
- l = void 0 === a || a,
- c = {
- placement: kt(e.placement),
- popper: e.elements.popper,
- popperRect: e.rects.popper,
- gpuAcceleration: s
- };
- null != e.modifiersData.popperOffsets && (e.styles.popper = Object.assign({}, e.styles.popper, $t(Object.assign({}, c, {
- offsets: e.modifiersData.popperOffsets,
- position: e.options.strategy,
- adaptive: r,
- roundOffsets: l
- })))), null != e.modifiersData.arrow && (e.styles.arrow = Object.assign({}, e.styles.arrow, $t(Object.assign({}, c, {
- offsets: e.modifiersData.arrow,
- position: "absolute",
- adaptive: !1,
- roundOffsets: l
- })))), e.attributes.popper = Object.assign({}, e.attributes.popper, {
- "data-popper-placement": e.placement
- })
- },
- data: {}
- },
- Ft = {
- passive: !0
- },
- qt = {
- name: "eventListeners",
- enabled: !0,
- phase: "write",
- fn: function () {},
- effect: function (t) {
- var e = t.state,
- i = t.instance,
- n = t.options,
- s = n.scroll,
- o = void 0 === s || s,
- r = n.resize,
- a = void 0 === r || r,
- l = vt(e.elements.popper),
- c = [].concat(e.scrollParents.reference, e.scrollParents.popper);
- return o && c.forEach(function (t) {
- t.addEventListener("scroll", i.update, Ft)
- }), a && l.addEventListener("resize", i.update, Ft),
- function () {
- o && c.forEach(function (t) {
- t.removeEventListener("scroll", i.update, Ft)
- }), a && l.removeEventListener("resize", i.update, Ft)
- }
- },
- data: {}
- },
- Bt = {
- left: "right",
- right: "left",
- bottom: "top",
- top: "bottom"
- };
-
- function Ut(t) {
- return t.replace(/left|right|bottom|top/g, function (t) {
- return Bt[t]
- })
- }
- var Yt = {
- start: "end",
- end: "start"
- };
-
- function Vt(t) {
- return t.replace(/start|end/g, function (t) {
- return Yt[t]
- })
- }
-
- function Kt(t) {
- var e = vt(t);
- return {
- scrollLeft: e.pageXOffset,
- scrollTop: e.pageYOffset
- }
- }
-
- function Xt(t) {
- return xt(Dt(t)).left + Kt(t).scrollLeft
- }
-
- function Qt(t) {
- var e = St(t),
- i = e.overflow,
- n = e.overflowX,
- s = e.overflowY;
- return /auto|scroll|overlay|hidden/.test(i + s + n)
- }
-
- function Gt(t, e) {
- var i;
- void 0 === e && (e = []);
- var n = function t(e) {
- return 0 <= ["html", "body", "#document"].indexOf(mt(e)) ? e.ownerDocument.body : yt(e) && Qt(e) ? e : t(At(e))
- }(t),
- s = n === (null == (i = t.ownerDocument) ? void 0 : i.body),
- o = vt(n),
- r = s ? [o].concat(o.visualViewport || [], Qt(n) ? n : []) : n,
- a = e.concat(r);
- return s ? a : a.concat(Gt(At(r)))
- }
-
- function Jt(t) {
- return Object.assign({}, t, {
- left: t.x,
- top: t.y,
- right: t.x + t.width,
- bottom: t.y + t.height
- })
- }
-
- function Zt(t, e) {
- 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)), {
- width: v,
- height: _,
- x: y + Xt(p),
- y: b
- })) : 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), {
- width: a,
- height: l,
- x: c,
- y: u
- }));
- var i, n, s, o, r, a, l, c, u, h, d, p, f, g, m, v, _, y, b
- }
-
- function te(t) {
- return t.split("-")[1]
- }
-
- function ee(t) {
- var e, i = t.reference,
- n = t.element,
- s = t.placement,
- o = s ? kt(s) : null,
- r = s ? te(s) : null,
- a = i.x + i.width / 2 - n.width / 2,
- l = i.y + i.height / 2 - n.height / 2;
- switch (o) {
- case lt:
- e = {
- x: a,
- y: i.y - n.height
- };
- break;
- case ct:
- e = {
- x: a,
- y: i.y + i.height
- };
- break;
- case ut:
- e = {
- x: i.x + i.width,
- y: l
- };
- break;
- case ht:
- e = {
- x: i.x - n.width,
- y: l
- };
- break;
- default:
- e = {
- x: i.x,
- y: i.y
- }
- }
- var c = o ? It(o) : null;
- if (null != c) {
- var u = "y" === c ? "height" : "width";
- switch (r) {
- case "start":
- e[c] = e[c] - (i[u] / 2 - n[u] / 2);
- break;
- case "end":
- e[c] = e[c] + (i[u] / 2 - n[u] / 2)
- }
- }
- return e
- }
-
- function ie(t, e) {
- void 0 === e && (e = {});
- var n, i, s, o, r, a, l, c, u, h, d = e,
- p = d.placement,
- f = void 0 === p ? t.placement : p,
- g = d.boundary,
- m = void 0 === g ? "clippingParents" : g,
- v = d.rootBoundary,
- _ = void 0 === v ? "viewport" : v,
- y = d.elementContext,
- b = void 0 === y ? "popper" : y,
- w = d.altBoundary,
- k = void 0 !== w && w,
- x = d.padding,
- C = void 0 === x ? 0 : x,
- T = Ht("number" != typeof C ? C : jt(C, dt)),
- S = "popper" === b ? "reference" : "popper",
- D = t.elements.reference,
- A = t.rects.popper,
- E = t.elements[k ? S : b],
- 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) {
- return _t(t) && Tt(t, a) && "body" !== mt(t)
- }) : []) : [].concat(i), c = [].concat(l, [s]), u = c[0], (h = c.reduce(function (t, e) {
- var i = Zt(n, e);
- 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
- }, Zt(n, u))).width = h.right - h.left, h.height = h.bottom - h.top, h.x = h.left, h.y = h.top, h),
- I = xt(D),
- O = ee({
- reference: I,
- element: A,
- strategy: "absolute",
- placement: f
- }),
- M = Jt(Object.assign({}, A, O)),
- N = "popper" === b ? M : I,
- L = {
- top: P.top - N.top + T.top,
- bottom: N.bottom - P.bottom + T.bottom,
- left: P.left - N.left + T.left,
- right: N.right - P.right + T.right
- },
- H = t.modifiersData.offset;
- if ("popper" === b && H) {
- var j = H[f];
- Object.keys(L).forEach(function (t) {
- var e = 0 <= [ut, ct].indexOf(t) ? 1 : -1,
- i = 0 <= [lt, ct].indexOf(t) ? "y" : "x";
- L[t] += j[i] * e
- })
- }
- return L
- }
- var ne = {
- name: "flip",
- enabled: !0,
- phase: "main",
- fn: function (t) {
- var i = t.state,
- e = t.options,
- n = t.name;
- if (!i.modifiersData[n]._skip) {
- 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) {
- if ("auto" === kt(t)) return [];
- var e = Ut(t);
- return [Vt(t), e, Vt(e)]
- }(m) : [Ut(m)]), y = [m].concat(_).reduce(function (t, e) {
- return t.concat("auto" === kt(e) ? function (i, t) {
- void 0 === t && (t = {});
- var e = t,
- n = e.placement,
- s = e.boundary,
- o = e.rootBoundary,
- r = e.padding,
- a = e.flipVariations,
- l = e.allowedAutoPlacements,
- c = void 0 === l ? ft : l,
- u = te(n),
- h = u ? a ? pt : pt.filter(function (t) {
- return te(t) === u
- }) : dt,
- d = h.filter(function (t) {
- return 0 <= c.indexOf(t)
- });
- 0 === d.length && (d = h);
- var p = d.reduce(function (t, e) {
- return t[e] = ie(i, {
- placement: e,
- boundary: s,
- rootBoundary: o,
- padding: r
- })[kt(e)], t
- }, {});
- return Object.keys(p).sort(function (t, e) {
- return p[t] - p[e]
- })
- }(i, {
- placement: e,
- boundary: u,
- rootBoundary: h,
- padding: c,
- flipVariations: f,
- allowedAutoPlacements: g
- }) : e)
- }, []), b = i.rects.reference, w = i.rects.popper, k = new Map, x = !0, C = y[0], T = 0; T < y.length; T++) {
- var S = y[T],
- D = kt(S),
- A = "start" === te(S),
- E = 0 <= [lt, ct].indexOf(D),
- P = E ? "width" : "height",
- I = ie(i, {
- placement: S,
- boundary: u,
- rootBoundary: h,
- altBoundary: d,
- padding: c
- }),
- O = E ? A ? ut : ht : A ? ct : lt;
- b[P] > w[P] && (O = Ut(O));
- var M = Ut(O),
- N = [];
- if (o && N.push(I[D] <= 0), a && N.push(I[O] <= 0, I[M] <= 0), N.every(function (t) {
- return t
- })) {
- C = S, x = !1;
- break
- }
- k.set(S, N)
- }
- if (x)
- for (var L = function (i) {
- var t = y.find(function (t) {
- var e = k.get(t);
- if (e) return e.slice(0, i).every(function (t) {
- return t
- })
- });
- if (t) return C = t, "break"
- }, H = f ? 3 : 1; 0 < H && "break" !== L(H); H--);
- i.placement !== C && (i.modifiersData[n]._skip = !0, i.placement = C, i.reset = !0)
- }
- },
- requiresIfExists: ["offset"],
- data: {
- _skip: !1
- }
- };
-
- function se(t, e, i) {
- return void 0 === i && (i = {
- x: 0,
- y: 0
- }), {
- top: t.top - e.height - i.y,
- right: t.right - e.width + i.x,
- bottom: t.bottom - e.height + i.y,
- left: t.left - e.width - i.x
- }
- }
-
- function oe(e) {
- return [lt, ut, ct, ht].some(function (t) {
- return 0 <= e[t]
- })
- }
- var re = {
- name: "hide",
- enabled: !0,
- phase: "main",
- requiresIfExists: ["preventOverflow"],
- fn: function (t) {
- var e = t.state,
- i = t.name,
- n = e.rects.reference,
- s = e.rects.popper,
- o = e.modifiersData.preventOverflow,
- r = ie(e, {
- elementContext: "reference"
- }),
- a = ie(e, {
- altBoundary: !0
- }),
- l = se(r, n),
- c = se(a, s, o),
- u = oe(l),
- h = oe(c);
- e.modifiersData[i] = {
- referenceClippingOffsets: l,
- popperEscapeOffsets: c,
- isReferenceHidden: u,
- hasPopperEscaped: h
- }, e.attributes.popper = Object.assign({}, e.attributes.popper, {
- "data-popper-reference-hidden": u,
- "data-popper-escaped": h
- })
- }
- },
- ae = {
- name: "offset",
- enabled: !0,
- phase: "main",
- requires: ["popperOffsets"],
- fn: function (t) {
- var u = t.state,
- e = t.options,
- i = t.name,
- n = e.offset,
- h = void 0 === n ? [0, 0] : n,
- s = ft.reduce(function (t, e) {
- 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, {
- placement: i
- })) : s, l = a[0], c = a[1], l = l || 0, c = (c || 0) * r, 0 <= [ht, ut].indexOf(o) ? {
- x: c,
- y: l
- } : {
- x: l,
- y: c
- }), t;
- var i, n, s, o, r, a, l, c
- }, {}),
- o = s[u.placement],
- r = o.x,
- a = o.y;
- null != u.modifiersData.popperOffsets && (u.modifiersData.popperOffsets.x += r, u.modifiersData.popperOffsets.y += a), u.modifiersData[i] = s
- }
- },
- le = {
- name: "popperOffsets",
- enabled: !0,
- phase: "read",
- fn: function (t) {
- var e = t.state,
- i = t.name;
- e.modifiersData[i] = ee({
- reference: e.rects.reference,
- element: e.rects.popper,
- strategy: "absolute",
- placement: e.placement
- })
- },
- data: {}
- },
- ce = {
- name: "preventOverflow",
- enabled: !0,
- phase: "main",
- fn: function (t) {
- var e = t.state,
- i = t.options,
- n = t.name,
- s = i.mainAxis,
- o = void 0 === s || s,
- r = i.altAxis,
- a = void 0 !== r && r,
- l = i.boundary,
- c = i.rootBoundary,
- u = i.altBoundary,
- h = i.padding,
- d = i.tether,
- p = void 0 === d || d,
- f = i.tetherOffset,
- g = void 0 === f ? 0 : f,
- m = ie(e, {
- boundary: l,
- rootBoundary: c,
- padding: h,
- altBoundary: u
- }),
- v = kt(e.placement),
- _ = te(e.placement),
- y = !_,
- b = It(v),
- w = "x" === b ? "y" : "x",
- k = e.modifiersData.popperOffsets,
- x = e.rects.reference,
- C = e.rects.popper,
- T = "function" == typeof g ? g(Object.assign({}, e.rects, {
- placement: e.placement
- })) : g,
- S = {
- x: 0,
- y: 0
- };
- if (k) {
- if (o || a) {
- var D = "y" === b ? lt : ht,
- A = "y" === b ? ct : ut,
- E = "y" === b ? "height" : "width",
- P = k[b],
- I = k[b] + m[D],
- O = k[b] - m[A],
- M = p ? -C[E] / 2 : 0,
- N = "start" === _ ? x[E] : C[E],
- L = "start" === _ ? -C[E] : -x[E],
- H = e.elements.arrow,
- j = p && H ? Ct(H) : {
- width: 0,
- height: 0
- },
- z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : {
- top: 0,
- right: 0,
- bottom: 0,
- left: 0
- },
- W = z[D],
- $ = z[A],
- R = Lt(0, x[E], j[E]),
- F = y ? x[E] / 2 - M - R - W - T : N - R - W - T,
- q = y ? -x[E] / 2 + M + R + $ + T : L + R + $ + T,
- B = e.elements.arrow && Pt(e.elements.arrow),
- U = B ? "y" === b ? B.clientTop || 0 : B.clientLeft || 0 : 0,
- Y = e.modifiersData.offset ? e.modifiersData.offset[e.placement][b] : 0,
- V = k[b] + F - Y - U,
- K = k[b] + q - Y;
- if (o) {
- var X = Lt(p ? Mt(I, V) : I, P, p ? Ot(O, K) : O);
- k[b] = X, S[b] = X - P
- }
- if (a) {
- var Q = "x" === b ? lt : ht,
- G = "x" === b ? ct : ut,
- J = k[w],
- Z = J + m[Q],
- tt = J - m[G],
- et = Lt(p ? Mt(Z, V) : Z, J, p ? Ot(tt, K) : tt);
- k[w] = et, S[w] = et - J
- }
- }
- e.modifiersData[n] = S
- }
- },
- requiresIfExists: ["offset"]
- };
- var ue = {
- placement: "bottom",
- modifiers: [],
- strategy: "absolute"
- };
-
- function he() {
- for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++) e[i] = arguments[i];
- return !e.some(function (t) {
- return !(t && "function" == typeof t.getBoundingClientRect)
- })
- }
-
- function de(t) {
- void 0 === t && (t = {});
- var e = t,
- i = e.defaultModifiers,
- m = void 0 === i ? [] : i,
- n = e.defaultOptions,
- v = void 0 === n ? ue : n;
- return function (u, h, e) {
- void 0 === e && (e = v);
- var i, n, d = {
- placement: "bottom",
- orderedModifiers: [],
- options: Object.assign({}, ue, v),
- modifiersData: {},
- elements: {
- reference: u,
- popper: h
- },
- attributes: {},
- styles: {}
- },
- p = [],
- c = !1,
- f = {
- state: d,
- setOptions: function (t) {
- g(), d.options = Object.assign({}, v, d.options, t), d.scrollParents = {
- reference: _t(u) ? Gt(u) : u.contextElement ? Gt(u.contextElement) : [],
- popper: Gt(h)
- };
- var e, i, n, s, o, r, a, l, c = (e = [].concat(m, d.options.modifiers), i = e.reduce(function (t, e) {
- var i = t[e.name];
- return t[e.name] = i ? Object.assign({}, i, e, {
- options: Object.assign({}, i.options, e.options),
- data: Object.assign({}, i.data, e.data)
- }) : e, t
- }, {}), n = Object.keys(i).map(function (t) {
- return i[t]
- }), s = n, o = new Map, r = new Set, a = [], s.forEach(function (t) {
- o.set(t.name, t)
- }), s.forEach(function (t) {
- r.has(t.name) || function i(t) {
- r.add(t.name), [].concat(t.requires || [], t.requiresIfExists || []).forEach(function (t) {
- if (!r.has(t)) {
- var e = o.get(t);
- e && i(e)
- }
- }), a.push(t)
- }(t)
- }), l = a, gt.reduce(function (t, e) {
- return t.concat(l.filter(function (t) {
- return t.phase === e
- }))
- }, []));
- return d.orderedModifiers = c.filter(function (t) {
- return t.enabled
- }), d.orderedModifiers.forEach(function (t) {
- var e = t.name,
- i = t.options,
- n = void 0 === i ? {} : i,
- s = t.effect;
- if ("function" == typeof s) {
- var o = s({
- state: d,
- name: e,
- instance: f,
- options: n
- });
- p.push(o || function () {})
- }
- }), f.update()
- },
- forceUpdate: function () {
- if (!c) {
- var t = d.elements,
- e = t.reference,
- i = t.popper;
- if (he(e, i)) {
- d.rects = {
- reference: function (t, e, i) {
- void 0 === i && (i = !1);
- var n, s, o = Dt(e),
- r = xt(t),
- a = yt(e),
- l = {
- scrollLeft: 0,
- scrollTop: 0
- },
- c = {
- x: 0,
- y: 0
- };
- return (a || !a && !i) && (("body" !== mt(e) || Qt(o)) && (l = (n = e) !== vt(n) && yt(n) ? {
- scrollLeft: (s = n).scrollLeft,
- scrollTop: s.scrollTop
- } : Kt(n)), yt(e) ? ((c = xt(e)).x += e.clientLeft, c.y += e.clientTop) : o && (c.x = Xt(o))), {
- x: r.left + l.scrollLeft - c.x,
- y: r.top + l.scrollTop - c.y,
- width: r.width,
- height: r.height
- }
- }(e, Pt(i), "fixed" === d.options.strategy),
- popper: Ct(i)
- }, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function (t) {
- return d.modifiersData[t.name] = Object.assign({}, t.data)
- });
- for (var n = 0; n < d.orderedModifiers.length; n++)
- if (!0 !== d.reset) {
- var s = d.orderedModifiers[n],
- o = s.fn,
- r = s.options,
- a = void 0 === r ? {} : r,
- l = s.name;
- "function" == typeof o && (d = o({
- state: d,
- options: a,
- name: l,
- instance: f
- }) || d)
- } else d.reset = !1, n = -1
- }
- }
- },
- update: (i = function () {
- return new Promise(function (t) {
- f.forceUpdate(), t(d)
- })
- }, function () {
- return n || (n = new Promise(function (t) {
- Promise.resolve().then(function () {
- n = void 0, t(i())
- })
- })), n
- }),
- destroy: function () {
- g(), c = !0
- }
- };
- if (!he(u, h)) return f;
-
- function g() {
- p.forEach(function (t) {
- return t()
- }), p = []
- }
- return f.setOptions(e).then(function (t) {
- !c && e.onFirstUpdate && e.onFirstUpdate(t)
- }), f
- }
- }
- var pe = de(),
- fe = de({
- defaultModifiers: [qt, le, Rt, wt]
- }),
- ge = de({
- defaultModifiers: [qt, le, Rt, wt, ae, ne, ce, zt, re]
- }),
- me = Object.freeze({
- __proto__: null,
- popperGenerator: de,
- detectOverflow: ie,
- createPopperBase: pe,
- createPopper: ge,
- createPopperLite: fe,
- top: lt,
- bottom: ct,
- right: ut,
- left: ht,
- auto: "auto",
- basePlacements: dt,
- start: "start",
- end: "end",
- clippingParents: "clippingParents",
- viewport: "viewport",
- popper: "popper",
- reference: "reference",
- variationPlacements: pt,
- placements: ft,
- beforeRead: "beforeRead",
- read: "read",
- afterRead: "afterRead",
- beforeMain: "beforeMain",
- main: "main",
- afterMain: "afterMain",
- beforeWrite: "beforeWrite",
- write: "write",
- afterWrite: "afterWrite",
- modifierPhases: gt,
- applyStyles: wt,
- arrow: zt,
- computeStyles: Rt,
- eventListeners: qt,
- flip: ne,
- hide: re,
- offset: ae,
- popperOffsets: le,
- preventOverflow: ce
- }),
- ve = new RegExp("ArrowUp|ArrowDown|Escape"),
- _e = l() ? "top-end" : "top-start",
- ye = l() ? "top-start" : "top-end",
- be = l() ? "bottom-end" : "bottom-start",
- we = l() ? "bottom-start" : "bottom-end",
- ke = l() ? "left-start" : "right-start",
- xe = l() ? "right-start" : "left-start",
- Ce = {
- offset: [0, 2],
- boundary: "clippingParents",
- reference: "toggle",
- display: "dynamic",
- popperConfig: null,
- autoClose: !0
- },
- Te = {
- offset: "(array|string|function)",
- boundary: "(string|element)",
- reference: "(string|element|object)",
- display: "string",
- popperConfig: "(null|object|function)",
- autoClose: "(boolean|string)"
- },
- Se = function (t) {
- _inherits(l, U);
- var n = _createSuper(l);
-
- function l(t, e) {
- var i;
- 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
- }
- return _createClass(l, [{
- key: "toggle",
- value: function () {
- u(this._element) || (this._element.classList.contains("show") ? this.hide() : this.show())
- }
- }, {
- key: "show",
- value: function () {
- if (!u(this._element) && !this._menu.classList.contains("show")) {
- var t = l.getParentFromElement(this._element),
- e = {
- relatedTarget: this._element
- };
- if (!$.trigger(this._element, "show.bs.dropdown", e).defaultPrevented) {
- var i;
- if (this._inNavbar) Q.setDataAttribute(this._menu, "popper", "none");
- else {
- if (void 0 === me) throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");
- var n = this._element;
- "parent" === this._config.reference ? n = t : c(this._config.reference) ? n = r(this._config.reference) : "object" == _typeof(this._config.reference) && (n = this._config.reference);
- var s = this._getPopperConfig(),
- o = s.modifiers.find(function (t) {
- return "applyStyles" === t.name && !1 === t.enabled
- });
- this._popper = ge(n, this._menu, s), o && Q.setDataAttribute(this._menu, "popper", "static")
- }
- "ontouchstart" in document.documentElement && !t.closest(".navbar-nav") && (i = []).concat.apply(i, _toConsumableArray(document.body.children)).forEach(function (t) {
- return $.on(t, "mouseover", f)
- }), 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)
- }
- }
- }
- }, {
- key: "hide",
- value: function () {
- if (!u(this._element) && this._menu.classList.contains("show")) {
- var t = {
- relatedTarget: this._element
- };
- this._completeHide(t)
- }
- }
- }, {
- key: "dispose",
- value: function () {
- this._popper && this._popper.destroy(), _get2(_getPrototypeOf(l.prototype), "dispose", this).call(this)
- }
- }, {
- key: "update",
- value: function () {
- this._inNavbar = this._detectNavbar(), this._popper && this._popper.update()
- }
- }, {
- key: "_addEventListeners",
- value: function () {
- var e = this;
- $.on(this._element, "click.bs.dropdown", function (t) {
- t.preventDefault(), e.toggle()
- })
- }
- }, {
- key: "_completeHide",
- value: function (t) {
- var e;
- $.trigger(this._element, "hide.bs.dropdown", t).defaultPrevented || ("ontouchstart" in document.documentElement && (e = []).concat.apply(e, _toConsumableArray(document.body.children)).forEach(function (t) {
- return $.off(t, "mouseover", f)
- }), 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))
- }
- }, {
- key: "_getConfig",
- value: function (t) {
- 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.');
- return t
- }
- }, {
- key: "_getMenuElement",
- value: function () {
- return x(this._element, ".dropdown-menu")[0]
- }
- }, {
- key: "_getPlacement",
- value: function () {
- var t = this._element.parentNode;
- if (t.classList.contains("dropend")) return ke;
- if (t.classList.contains("dropstart")) return xe;
- var e = "end" === getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();
- return t.classList.contains("dropup") ? e ? ye : _e : e ? we : be
- }
- }, {
- key: "_detectNavbar",
- value: function () {
- return null !== this._element.closest(".navbar")
- }
- }, {
- key: "_getOffset",
- value: function () {
- var e = this,
- i = this._config.offset;
- return "string" == typeof i ? i.split(",").map(function (t) {
- return Number.parseInt(t, 10)
- }) : "function" == typeof i ? function (t) {
- return i(t, e._element)
- } : i
- }
- }, {
- key: "_getPopperConfig",
- value: function () {
- var t = {
- placement: this._getPlacement(),
- modifiers: [{
- name: "preventOverflow",
- options: {
- boundary: this._config.boundary
- }
- }, {
- name: "offset",
- options: {
- offset: this._getOffset()
- }
- }]
- };
- return "static" === this._config.display && (t.modifiers = [{
- name: "applyStyles",
- enabled: !1
- }]), _objectSpread(_objectSpread({}, t), "function" == typeof this._config.popperConfig ? this._config.popperConfig(t) : this._config.popperConfig)
- }
- }, {
- key: "_selectMenuItem",
- value: function (t) {
- var e = t.key,
- i = t.target,
- n = _(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)", this._menu).filter(s);
- n.length && v(n, i, "ArrowDown" === e, !n.includes(i)).focus()
- }
- }], [{
- key: "dropdownInterface",
- value: function (t, e) {
- var i = l.getOrCreateInstance(t, e);
- if ("string" == typeof e) {
- if (void 0 === i[e]) throw new TypeError('No method named "'.concat(e, '"'));
- i[e]()
- }
- }
- }, {
- key: "jQueryInterface",
- value: function (t) {
- return this.each(function () {
- l.dropdownInterface(this, t)
- })
- }
- }, {
- key: "clearMenus",
- value: function (t) {
- if (!t || 2 !== t.button && ("keyup" !== t.type || "Tab" === t.key))
- for (var e = _('[data-bs-toggle="dropdown"]'), i = 0, n = e.length; i < n; i++) {
- var s = l.getInstance(e[i]);
- if (s && !1 !== s._config.autoClose && s._element.classList.contains("show")) {
- var o = {
- relatedTarget: s._element
- };
- if (t) {
- var r = t.composedPath(),
- a = r.includes(s._menu);
- if (r.includes(s._element) || "inside" === s._config.autoClose && !a || "outside" === s._config.autoClose && a) continue;
- if (s._menu.contains(t.target) && ("keyup" === t.type && "Tab" === t.key || /input|select|option|textarea|form/i.test(t.target.tagName))) continue;
- "click" === t.type && (o.clickEvent = t)
- }
- s._completeHide(o)
- }
- }
- }
- }, {
- key: "getParentFromElement",
- value: function (t) {
- return a(t) || t.parentNode
- }
- }, {
- key: "dataApiKeydownHandler",
- value: function (t) {
- var e = this;
- 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)) {
- var i = this.classList.contains("show");
- if ((i || "Escape" !== t.key) && (t.preventDefault(), t.stopPropagation(), !u(this))) {
- var n = function () {
- return e.matches('[data-bs-toggle="dropdown"]') ? e : k(e, '[data-bs-toggle="dropdown"]')[0]
- };
- 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())
- }
- }
- }
- }, {
- key: "Default",
- get: function () {
- return Ce
- }
- }, {
- key: "DefaultType",
- get: function () {
- return Te
- }
- }, {
- key: "NAME",
- get: function () {
- return "dropdown"
- }
- }]), l
- }();
- $.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) {
- t.preventDefault(), Se.dropdownInterface(this)
- }), t(Se);
- var De = function () {
- function t() {
- _classCallCheck(this, t), this._element = document.body
- }
- return _createClass(t, [{
- key: "getWidth",
- value: function () {
- var t = document.documentElement.clientWidth;
- return Math.abs(window.innerWidth - t)
- }
- }, {
- key: "hide",
- value: function () {
- var e = this.getWidth();
- this._disableOverFlow(), this._setElementAttributes(this._element, "paddingRight", function (t) {
- return t + e
- }), this._setElementAttributes(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top", "paddingRight", function (t) {
- return t + e
- }), this._setElementAttributes(".sticky-top", "marginRight", function (t) {
- return t - e
- })
- }
- }, {
- key: "_disableOverFlow",
- value: function () {
- this._saveInitialAttribute(this._element, "overflow"), this._element.style.overflow = "hidden"
- }
- }, {
- key: "_setElementAttributes",
- value: function (t, i, n) {
- var s = this,
- o = this.getWidth();
- this._applyManipulationCallback(t, function (t) {
- if (!(t !== s._element && window.innerWidth > t.clientWidth + o)) {
- s._saveInitialAttribute(t, i);
- var e = window.getComputedStyle(t)[i];
- t.style[i] = n(Number.parseFloat(e)) + "px"
- }
- })
- }
- }, {
- key: "reset",
- value: function () {
- 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")
- }
- }, {
- key: "_saveInitialAttribute",
- value: function (t, e) {
- var i = t.style[e];
- i && Q.setDataAttribute(t, e, i)
- }
- }, {
- key: "_resetElementAttributes",
- value: function (t, i) {
- this._applyManipulationCallback(t, function (t) {
- var e = Q.getDataAttribute(t, i);
- void 0 === e ? t.style.removeProperty(i) : (Q.removeDataAttribute(t, i), t.style[i] = e)
- })
- }
- }, {
- key: "_applyManipulationCallback",
- value: function (t, e) {
- c(t) ? e(t) : _(t, this._element).forEach(e)
- }
- }, {
- key: "isOverflowing",
- value: function () {
- return 0 < this.getWidth()
- }
- }]), t
- }(),
- Ae = {
- isVisible: !0,
- isAnimated: !1,
- rootElement: "body",
- clickCallback: null
- },
- Ee = {
- isVisible: "boolean",
- isAnimated: "boolean",
- rootElement: "(element|string)",
- clickCallback: "(function|null)"
- },
- Pe = function () {
- function e(t) {
- _classCallCheck(this, e), this._config = this._getConfig(t), this._isAppended = !1, this._element = null
- }
- return _createClass(e, [{
- key: "show",
- value: function (t) {
- this._config.isVisible ? (this._append(), this._config.isAnimated && g(this._getElement()), this._getElement().classList.add("show"), this._emulateAnimation(function () {
- o(t)
- })) : o(t)
- }
- }, {
- key: "hide",
- value: function (t) {
- var e = this;
- this._config.isVisible ? (this._getElement().classList.remove("show"), this._emulateAnimation(function () {
- e.dispose(), o(t)
- })) : o(t)
- }
- }, {
- key: "_getElement",
- value: function () {
- if (!this._element) {
- var t = document.createElement("div");
- t.className = "modal-backdrop", this._config.isAnimated && t.classList.add("fade"), this._element = t
- }
- return this._element
- }
- }, {
- key: "_getConfig",
- value: function (t) {
- return (t = _objectSpread(_objectSpread({}, Ae), "object" == _typeof(t) ? t : {})).rootElement = r(t.rootElement), d("backdrop", t, Ee), t
- }
- }, {
- key: "_append",
- value: function () {
- var t = this;
- this._isAppended || (this._config.rootElement.appendChild(this._getElement()), $.on(this._getElement(), "mousedown.bs.backdrop", function () {
- o(t._config.clickCallback)
- }), this._isAppended = !0)
- }
- }, {
- key: "dispose",
- value: function () {
- this._isAppended && ($.off(this._element, "mousedown.bs.backdrop"), this._element.remove(), this._isAppended = !1)
- }
- }, {
- key: "_emulateAnimation",
- value: function (t) {
- n(t, this._getElement(), this._config.isAnimated)
- }
- }]), e
- }(),
- Ie = {
- backdrop: !0,
- keyboard: !0,
- focus: !0
- },
- Oe = {
- backdrop: "(boolean|string)",
- keyboard: "boolean",
- focus: "boolean"
- },
- Me = function (t) {
- _inherits(s, U);
- var n = _createSuper(s);
-
- function s(t, e) {
- var i;
- 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
- }
- return _createClass(s, [{
- key: "toggle",
- value: function (t) {
- return this._isShown ? this.hide() : this.show(t)
- }
- }, {
- key: "show",
- value: function (t) {
- var e = this;
- this._isShown || this._isTransitioning || $.trigger(this._element, "show.bs.modal", {
- relatedTarget: t
- }).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) {
- return e.hide(t)
- }), $.on(this._dialog, "mousedown.dismiss.bs.modal", function () {
- $.one(e._element, "mouseup.dismiss.bs.modal", function (t) {
- t.target === e._element && (e._ignoreBackdropClick = !0)
- })
- }), this._showBackdrop(function () {
- return e._showElement(t)
- }))
- }
- }, {
- key: "hide",
- value: function (t) {
- var e = this;
- if (t && ["A", "AREA"].includes(t.target.tagName) && t.preventDefault(), this._isShown && !this._isTransitioning && !$.trigger(this._element, "hide.bs.modal").defaultPrevented) {
- this._isShown = !1;
- var i = this._isAnimated();
- 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 () {
- return e._hideModal()
- }, this._element, i)
- }
- }
- }, {
- key: "dispose",
- value: function () {
- [window, this._dialog].forEach(function (t) {
- return $.off(t, ".bs.modal")
- }), this._backdrop.dispose(), _get2(_getPrototypeOf(s.prototype), "dispose", this).call(this), $.off(document, "focusin.bs.modal")
- }
- }, {
- key: "handleUpdate",
- value: function () {
- this._adjustDialog()
- }
- }, {
- key: "_initializeBackDrop",
- value: function () {
- return new Pe({
- isVisible: Boolean(this._config.backdrop),
- isAnimated: this._isAnimated()
- })
- }
- }, {
- key: "_getConfig",
- value: function (t) {
- return t = _objectSpread(_objectSpread(_objectSpread({}, Ie), Q.getDataAttributes(this._element)), "object" == _typeof(t) ? t : {}), d("modal", t, Oe), t
- }
- }, {
- key: "_showElement",
- value: function (t) {
- var e = this,
- i = this._isAnimated(),
- n = y(".modal-body", this._dialog);
- 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 () {
- e._config.focus && e._element.focus(), e._isTransitioning = !1, $.trigger(e._element, "shown.bs.modal", {
- relatedTarget: t
- })
- }, this._dialog, i)
- }
- }, {
- key: "_enforceFocus",
- value: function () {
- var e = this;
- $.off(document, "focusin.bs.modal"), $.on(document, "focusin.bs.modal", function (t) {
- document === t.target || e._element === t.target || e._element.contains(t.target) || e._element.focus()
- })
- }
- }, {
- key: "_setEscapeEvent",
- value: function () {
- var e = this;
- this._isShown ? $.on(this._element, "keydown.dismiss.bs.modal", function (t) {
- e._config.keyboard && "Escape" === t.key ? (t.preventDefault(), e.hide()) : e._config.keyboard || "Escape" !== t.key || e._triggerBackdropTransition()
- }) : $.off(this._element, "keydown.dismiss.bs.modal")
- }
- }, {
- key: "_setResizeEvent",
- value: function () {
- var t = this;
- this._isShown ? $.on(window, "resize.bs.modal", function () {
- return t._adjustDialog()
- }) : $.off(window, "resize.bs.modal")
- }
- }, {
- key: "_hideModal",
- value: function () {
- var t = this;
- 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 () {
- document.body.classList.remove("modal-open"), t._resetAdjustments(), t._scrollBar.reset(), $.trigger(t._element, "hidden.bs.modal")
- })
- }
- }, {
- key: "_showBackdrop",
- value: function (t) {
- var e = this;
- $.on(this._element, "click.dismiss.bs.modal", function (t) {
- e._ignoreBackdropClick ? e._ignoreBackdropClick = !1 : t.target === t.currentTarget && (!0 === e._config.backdrop ? e.hide() : "static" === e._config.backdrop && e._triggerBackdropTransition())
- }), this._backdrop.show(t)
- }
- }, {
- key: "_isAnimated",
- value: function () {
- return this._element.classList.contains("fade")
- }
- }, {
- key: "_triggerBackdropTransition",
- value: function () {
- var t = this;
- if (!$.trigger(this._element, "hidePrevented.bs.modal").defaultPrevented) {
- var e = this._element,
- i = e.classList,
- n = e.scrollHeight,
- s = e.style,
- o = n > document.documentElement.clientHeight;
- !o && "hidden" === s.overflowY || i.contains("modal-static") || (o || (s.overflowY = "hidden"), i.add("modal-static"), this._queueCallback(function () {
- i.remove("modal-static"), o || t._queueCallback(function () {
- s.overflowY = ""
- }, t._dialog)
- }, this._dialog), this._element.focus())
- }
- }
- }, {
- key: "_adjustDialog",
- value: function () {
- var t = this._element.scrollHeight > document.documentElement.clientHeight,
- e = this._scrollBar.getWidth(),
- i = 0 < e;
- (!i && t && !l() || i && !t && l()) && (this._element.style.paddingLeft = e + "px"), (i && !t && !l() || !i && t && l()) && (this._element.style.paddingRight = e + "px")
- }
- }, {
- key: "_resetAdjustments",
- value: function () {
- this._element.style.paddingLeft = "", this._element.style.paddingRight = ""
- }
- }], [{
- key: "jQueryInterface",
- value: function (e, i) {
- return this.each(function () {
- var t = s.getOrCreateInstance(this, e);
- if ("string" == typeof e) {
- if (void 0 === t[e]) throw new TypeError('No method named "'.concat(e, '"'));
- t[e](i)
- }
- })
- }
- }, {
- key: "Default",
- get: function () {
- return Ie
- }
- }, {
- key: "NAME",
- get: function () {
- return "modal"
- }
- }]), s
- }();
- $.on(document, "click.bs.modal.data-api", '[data-bs-toggle="modal"]', function (t) {
- var e = this,
- i = a(this);
- ["A", "AREA"].includes(this.tagName) && t.preventDefault(), $.one(i, "show.bs.modal", function (t) {
- t.defaultPrevented || $.one(i, "hidden.bs.modal", function () {
- s(e) && e.focus()
- })
- }), Me.getOrCreateInstance(i).toggle(this)
- }), t(Me);
- var Ne = {
- backdrop: !0,
- keyboard: !0,
- scroll: !1
- },
- Le = {
- backdrop: "boolean",
- keyboard: "boolean",
- scroll: "boolean"
- },
- He = function (t) {
- _inherits(s, U);
- var n = _createSuper(s);
-
- function s(t, e) {
- var i;
- return _classCallCheck(this, s), (i = n.call(this, t))._config = i._getConfig(e), i._isShown = !1, i._backdrop = i._initializeBackDrop(), i._addEventListeners(), i
- }
- return _createClass(s, [{
- key: "toggle",
- value: function (t) {
- return this._isShown ? this.hide() : this.show(t)
- }
- }, {
- key: "show",
- value: function (t) {
- var e = this;
- this._isShown || $.trigger(this._element, "show.bs.offcanvas", {
- relatedTarget: t
- }).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 () {
- $.trigger(e._element, "shown.bs.offcanvas", {
- relatedTarget: t
- })
- }, this._element, !0))
- }
- }, {
- key: "hide",
- value: function () {
- var t = this;
- 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 () {
- 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")
- }, this._element, !0)))
- }
- }, {
- key: "dispose",
- value: function () {
- this._backdrop.dispose(), _get2(_getPrototypeOf(s.prototype), "dispose", this).call(this), $.off(document, "focusin.bs.offcanvas")
- }
- }, {
- key: "_getConfig",
- value: function (t) {
- return t = _objectSpread(_objectSpread(_objectSpread({}, Ne), Q.getDataAttributes(this._element)), "object" == _typeof(t) ? t : {}), d("offcanvas", t, Le), t
- }
- }, {
- key: "_initializeBackDrop",
- value: function () {
- var t = this;
- return new Pe({
- isVisible: this._config.backdrop,
- isAnimated: !0,
- rootElement: this._element.parentNode,
- clickCallback: function () {
- return t.hide()
- }
- })
- }
- }, {
- key: "_enforceFocusOnElement",
- value: function (e) {
- $.off(document, "focusin.bs.offcanvas"), $.on(document, "focusin.bs.offcanvas", function (t) {
- document === t.target || e === t.target || e.contains(t.target) || e.focus()
- }), e.focus()
- }
- }, {
- key: "_addEventListeners",
- value: function () {
- var e = this;
- $.on(this._element, "click.dismiss.bs.offcanvas", '[data-bs-dismiss="offcanvas"]', function () {
- return e.hide()
- }), $.on(this._element, "keydown.dismiss.bs.offcanvas", function (t) {
- e._config.keyboard && "Escape" === t.key && e.hide()
- })
- }
- }], [{
- key: "jQueryInterface",
- value: function (e) {
- return this.each(function () {
- var t = s.getOrCreateInstance(this, e);
- if ("string" == typeof e) {
- if (void 0 === t[e] || e.startsWith("_") || "constructor" === e) throw new TypeError('No method named "'.concat(e, '"'));
- t[e](this)
- }
- })
- }
- }, {
- key: "NAME",
- get: function () {
- return "offcanvas"
- }
- }, {
- key: "Default",
- get: function () {
- return Ne
- }
- }]), s
- }();
- $.on(document, "click.bs.offcanvas.data-api", '[data-bs-toggle="offcanvas"]', function (t) {
- var e = this,
- i = a(this);
- if (["A", "AREA"].includes(this.tagName) && t.preventDefault(), !u(this)) {
- $.one(i, "hidden.bs.offcanvas", function () {
- s(e) && e.focus()
- });
- var n = y(".offcanvas.show");
- n && n !== i && He.getInstance(n).hide(), He.getOrCreateInstance(i).toggle(this)
- }
- }), $.on(window, "load.bs.offcanvas.data-api", function () {
- return _(".offcanvas.show").forEach(function (t) {
- return He.getOrCreateInstance(t).show()
- })
- }), t(He);
- var je = new Set(["background", "cite", "href", "itemtype", "longdesc", "poster", "src", "xlink:href"]),
- ze = /^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,
- 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;
-
- function $e(t, a, e) {
- var i;
- if (!t.length) return t;
- if (e && "function" == typeof e) return e(t);
- 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) {
- var i, n = c[t],
- s = n.nodeName.toLowerCase();
- if (!l.includes(s)) return n.remove(), "continue";
- var o = (i = []).concat.apply(i, _toConsumableArray(n.attributes)),
- r = [].concat(a["*"] || [], a[s] || []);
- o.forEach(function (t) {
- (function (t, e) {
- var i = t.nodeName.toLowerCase();
- if (e.includes(i)) return !je.has(i) || Boolean(ze.test(t.nodeValue) || We.test(t.nodeValue));
- for (var n = e.filter(function (t) {
- return t instanceof RegExp
- }), s = 0, o = n.length; s < o; s++)
- if (n[s].test(i)) return !0;
- return !1
- })(t, r) || n.removeAttribute(t.nodeName)
- })
- }, o = 0, r = c.length; o < r; o++) s(o);
- return n.body.innerHTML
- }
- var Re = new RegExp("(^|\\s)bs-tooltip\\S+", "g"),
- Fe = new Set(["sanitize", "allowList", "sanitizeFn"]),
- qe = {
- animation: "boolean",
- template: "string",
- title: "(string|element|function)",
- trigger: "string",
- delay: "(number|object)",
- html: "boolean",
- selector: "(string|boolean)",
- placement: "(string|function)",
- offset: "(array|string|function)",
- container: "(string|element|boolean)",
- fallbackPlacements: "array",
- boundary: "(string|element)",
- customClass: "(string|function)",
- sanitize: "boolean",
- sanitizeFn: "(null|function)",
- allowList: "object",
- popperConfig: "(null|object|function)"
- },
- Be = {
- AUTO: "auto",
- TOP: "top",
- RIGHT: l() ? "left" : "right",
- BOTTOM: "bottom",
- LEFT: l() ? "right" : "left"
- },
- Ue = {
- animation: !0,
- template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
- trigger: "hover focus",
- title: "",
- delay: 0,
- html: !1,
- selector: !1,
- placement: "top",
- offset: [0, 0],
- container: !1,
- fallbackPlacements: ["top", "right", "bottom", "left"],
- boundary: "clippingParents",
- customClass: "",
- sanitize: !0,
- sanitizeFn: null,
- allowList: {
- "*": ["class", "dir", "id", "lang", "role", /^aria-[\w-]*$/i],
- a: ["target", "href", "title", "rel"],
- area: [],
- b: [],
- br: [],
- col: [],
- code: [],
- div: [],
- em: [],
- hr: [],
- h1: [],
- h2: [],
- h3: [],
- h4: [],
- h5: [],
- h6: [],
- i: [],
- img: ["src", "srcset", "alt", "title", "width", "height"],
- li: [],
- ol: [],
- p: [],
- pre: [],
- s: [],
- small: [],
- span: [],
- sub: [],
- sup: [],
- strong: [],
- u: [],
- ul: []
- },
- popperConfig: null
- },
- Ye = {
- HIDE: "hide.bs.tooltip",
- HIDDEN: "hidden.bs.tooltip",
- SHOW: "show.bs.tooltip",
- SHOWN: "shown.bs.tooltip",
- INSERTED: "inserted.bs.tooltip",
- CLICK: "click.bs.tooltip",
- FOCUSIN: "focusin.bs.tooltip",
- FOCUSOUT: "focusout.bs.tooltip",
- MOUSEENTER: "mouseenter.bs.tooltip",
- MOUSELEAVE: "mouseleave.bs.tooltip"
- },
- Ve = function (t) {
- _inherits(s, U);
- var n = _createSuper(s);
-
- function s(t, e) {
- var i;
- if (_classCallCheck(this, s), void 0 === me) throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");
- 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
- }
- return _createClass(s, [{
- key: "enable",
- value: function () {
- this._isEnabled = !0
- }
- }, {
- key: "disable",
- value: function () {
- this._isEnabled = !1
- }
- }, {
- key: "toggleEnabled",
- value: function () {
- this._isEnabled = !this._isEnabled
- }
- }, {
- key: "toggle",
- value: function (t) {
- if (this._isEnabled)
- if (t) {
- var e = this._initializeOnDelegatedTarget(t);
- e._activeTrigger.click = !e._activeTrigger.click, e._isWithActiveTrigger() ? e._enter(null, e) : e._leave(null, e)
- } else {
- if (this.getTipElement().classList.contains("show")) return void this._leave(null, this);
- this._enter(null, this)
- }
- }
- }, {
- key: "dispose",
- value: function () {
- 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)
- }
- }, {
- key: "show",
- value: function () {
- var t, e, i = this;
- if ("none" === this._element.style.display) throw new Error("Please use show on visible elements");
- if (this.isWithContent() && this._isEnabled) {
- var n = $.trigger(this._element, this.constructor.Event.SHOW),
- s = function t(e) {
- if (!document.documentElement.attachShadow) return null;
- if ("function" != typeof e.getRootNode) return e instanceof ShadowRoot ? e : e.parentNode ? t(e.parentNode) : null;
- var i = e.getRootNode();
- return i instanceof ShadowRoot ? i : null
- }(this._element),
- o = null === s ? this._element.ownerDocument.documentElement.contains(this._element) : s.contains(this._element);
- if (!n.defaultPrevented && o) {
- var r = this.getTipElement(),
- a = p(this.constructor.NAME);
- r.setAttribute("id", a), this._element.setAttribute("aria-describedby", a), this.setContent(), this._config.animation && r.classList.add("fade");
- var l = "function" == typeof this._config.placement ? this._config.placement.call(this, r, this._element) : this._config.placement,
- c = this._getAttachment(l);
- this._addAttachmentClass(c);
- var u = this._config.container;
- 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");
- var h = "function" == typeof this._config.customClass ? this._config.customClass() : this._config.customClass;
- 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) {
- $.on(t, "mouseover", f)
- });
- var d = this.tip.classList.contains("fade");
- this._queueCallback(function () {
- var t = i._hoverState;
- i._hoverState = null, $.trigger(i._element, i.constructor.Event.SHOWN), "out" === t && i._leave(null, i)
- }, this.tip, d)
- }
- }
- }
- }, {
- key: "hide",
- value: function () {
- var t, e = this;
- if (this._popper) {
- var i = this.getTipElement();
- if (!$.trigger(this._element, this.constructor.Event.HIDE).defaultPrevented) {
- i.classList.remove("show"), "ontouchstart" in document.documentElement && (t = []).concat.apply(t, _toConsumableArray(document.body.children)).forEach(function (t) {
- return $.off(t, "mouseover", f)
- }), this._activeTrigger.click = !1, this._activeTrigger.focus = !1, this._activeTrigger.hover = !1;
- var n = this.tip.classList.contains("fade");
- this._queueCallback(function () {
- 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))
- }, this.tip, n), this._hoverState = ""
- }
- }
- }
- }, {
- key: "update",
- value: function () {
- null !== this._popper && this._popper.update()
- }
- }, {
- key: "isWithContent",
- value: function () {
- return Boolean(this.getTitle())
- }
- }, {
- key: "getTipElement",
- value: function () {
- if (this.tip) return this.tip;
- var t = document.createElement("div");
- return t.innerHTML = this._config.template, this.tip = t.children[0], this.tip
- }
- }, {
- key: "setContent",
- value: function () {
- var t = this.getTipElement();
- this.setElementContent(y(".tooltip-inner", t), this.getTitle()), t.classList.remove("fade", "show")
- }
- }, {
- key: "setElementContent",
- value: function (t, e) {
- 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)
- }
- }, {
- key: "getTitle",
- value: function () {
- var t = this._element.getAttribute("data-bs-original-title");
- return t || (t = "function" == typeof this._config.title ? this._config.title.call(this._element) : this._config.title), t
- }
- }, {
- key: "updateAttachment",
- value: function (t) {
- return "right" === t ? "end" : "left" === t ? "start" : t
- }
- }, {
- key: "_initializeOnDelegatedTarget",
- value: function (t, e) {
- var i = this.constructor.DATA_KEY;
- return (e = e || q(t.delegateTarget, i)) || (e = new this.constructor(t.delegateTarget, this._getDelegateConfig()), F(t.delegateTarget, i, e)), e
- }
- }, {
- key: "_getOffset",
- value: function () {
- var e = this,
- i = this._config.offset;
- return "string" == typeof i ? i.split(",").map(function (t) {
- return Number.parseInt(t, 10)
- }) : "function" == typeof i ? function (t) {
- return i(t, e._element)
- } : i
- }
- }, {
- key: "_getPopperConfig",
- value: function (t) {
- var e = this,
- i = {
- placement: t,
- modifiers: [{
- name: "flip",
- options: {
- fallbackPlacements: this._config.fallbackPlacements
- }
- }, {
- name: "offset",
- options: {
- offset: this._getOffset()
- }
- }, {
- name: "preventOverflow",
- options: {
- boundary: this._config.boundary
- }
- }, {
- name: "arrow",
- options: {
- element: ".".concat(this.constructor.NAME, "-arrow")
- }
- }, {
- name: "onChange",
- enabled: !0,
- phase: "afterWrite",
- fn: function (t) {
- return e._handlePopperPlacementChange(t)
- }
- }],
- onFirstUpdate: function (t) {
- t.options.placement !== t.placement && e._handlePopperPlacementChange(t)
- }
- };
- return _objectSpread(_objectSpread({}, i), "function" == typeof this._config.popperConfig ? this._config.popperConfig(i) : this._config.popperConfig)
- }
- }, {
- key: "_addAttachmentClass",
- value: function (t) {
- this.getTipElement().classList.add("bs-tooltip-" + this.updateAttachment(t))
- }
- }, {
- key: "_getAttachment",
- value: function (t) {
- return Be[t.toUpperCase()]
- }
- }, {
- key: "_setListeners",
- value: function () {
- var n = this;
- this._config.trigger.split(" ").forEach(function (t) {
- if ("click" === t) $.on(n._element, n.constructor.Event.CLICK, n._config.selector, function (t) {
- return n.toggle(t)
- });
- else if ("manual" !== t) {
- var e = "hover" === t ? n.constructor.Event.MOUSEENTER : n.constructor.Event.FOCUSIN,
- i = "hover" === t ? n.constructor.Event.MOUSELEAVE : n.constructor.Event.FOCUSOUT;
- $.on(n._element, e, n._config.selector, function (t) {
- return n._enter(t)
- }), $.on(n._element, i, n._config.selector, function (t) {
- return n._leave(t)
- })
- }
- }), this._hideModalHandler = function () {
- n._element && n.hide()
- }, $.on(this._element.closest(".modal"), "hide.bs.modal", this._hideModalHandler), this._config.selector ? this._config = _objectSpread(_objectSpread({}, this._config), {}, {
- trigger: "manual",
- selector: ""
- }) : this._fixTitle()
- }
- }, {
- key: "_fixTitle",
- value: function () {
- var t = this._element.getAttribute("title"),
- e = _typeof(this._element.getAttribute("data-bs-original-title"));
- (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", ""))
- }
- }, {
- key: "_enter",
- value: function (t, e) {
- 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 () {
- "show" === e._hoverState && e.show()
- }, e._config.delay.show) : e.show())
- }
- }, {
- key: "_leave",
- value: function (t, e) {
- 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 () {
- "out" === e._hoverState && e.hide()
- }, e._config.delay.hide) : e.hide())
- }
- }, {
- key: "_isWithActiveTrigger",
- value: function () {
- for (var t in this._activeTrigger)
- if (this._activeTrigger[t]) return !0;
- return !1
- }
- }, {
- key: "_getConfig",
- value: function (t) {
- var e = Q.getDataAttributes(this._element);
- return Object.keys(e).forEach(function (t) {
- Fe.has(t) && delete e[t]
- }), (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 = {
- show: t.delay,
- hide: t.delay
- }), "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
- }
- }, {
- key: "_getDelegateConfig",
- value: function () {
- var t = {};
- if (this._config)
- for (var e in this._config) this.constructor.Default[e] !== this._config[e] && (t[e] = this._config[e]);
- return t
- }
- }, {
- key: "_cleanTipClass",
- value: function () {
- var e = this.getTipElement(),
- t = e.getAttribute("class").match(Re);
- null !== t && 0 < t.length && t.map(function (t) {
- return t.trim()
- }).forEach(function (t) {
- return e.classList.remove(t)
- })
- }
- }, {
- key: "_handlePopperPlacementChange",
- value: function (t) {
- var e = t.state;
- e && (this.tip = e.elements.popper, this._cleanTipClass(), this._addAttachmentClass(this._getAttachment(e.placement)))
- }
- }], [{
- key: "jQueryInterface",
- value: function (e) {
- return this.each(function () {
- var t = s.getOrCreateInstance(this, e);
- if ("string" == typeof e) {
- if (void 0 === t[e]) throw new TypeError('No method named "'.concat(e, '"'));
- t[e]()
- }
- })
- }
- }, {
- key: "Default",
- get: function () {
- return Ue
- }
- }, {
- key: "NAME",
- get: function () {
- return "tooltip"
- }
- }, {
- key: "Event",
- get: function () {
- return Ye
- }
- }, {
- key: "DefaultType",
- get: function () {
- return qe
- }
- }]), s
- }();
- t(Ve);
- var Ke = new RegExp("(^|\\s)bs-popover\\S+", "g"),
- Xe = _objectSpread(_objectSpread({}, Ve.Default), {}, {
- placement: "right",
- offset: [0, 8],
- trigger: "click",
- content: "",
- template: '<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'
- }),
- Qe = _objectSpread(_objectSpread({}, Ve.DefaultType), {}, {
- content: "(string|element|function)"
- }),
- Ge = {
- HIDE: "hide.bs.popover",
- HIDDEN: "hidden.bs.popover",
- SHOW: "show.bs.popover",
- SHOWN: "shown.bs.popover",
- INSERTED: "inserted.bs.popover",
- CLICK: "click.bs.popover",
- FOCUSIN: "focusin.bs.popover",
- FOCUSOUT: "focusout.bs.popover",
- MOUSEENTER: "mouseenter.bs.popover",
- MOUSELEAVE: "mouseleave.bs.popover"
- },
- Je = function (t) {
- _inherits(i, Ve);
- var e = _createSuper(i);
-
- function i() {
- return _classCallCheck(this, i), e.apply(this, arguments)
- }
- return _createClass(i, [{
- key: "isWithContent",
- value: function () {
- return this.getTitle() || this._getContent()
- }
- }, {
- key: "getTipElement",
- value: function () {
- 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
- }
- }, {
- key: "setContent",
- value: function () {
- var t = this.getTipElement();
- this.setElementContent(y(".popover-header", t), this.getTitle());
- var e = this._getContent();
- "function" == typeof e && (e = e.call(this._element)), this.setElementContent(y(".popover-body", t), e), t.classList.remove("fade", "show")
- }
- }, {
- key: "_addAttachmentClass",
- value: function (t) {
- this.getTipElement().classList.add("bs-popover-" + this.updateAttachment(t))
- }
- }, {
- key: "_getContent",
- value: function () {
- return this._element.getAttribute("data-bs-content") || this._config.content
- }
- }, {
- key: "_cleanTipClass",
- value: function () {
- var e = this.getTipElement(),
- t = e.getAttribute("class").match(Ke);
- null !== t && 0 < t.length && t.map(function (t) {
- return t.trim()
- }).forEach(function (t) {
- return e.classList.remove(t)
- })
- }
- }], [{
- key: "jQueryInterface",
- value: function (e) {
- return this.each(function () {
- var t = i.getOrCreateInstance(this, e);
- if ("string" == typeof e) {
- if (void 0 === t[e]) throw new TypeError('No method named "'.concat(e, '"'));
- t[e]()
- }
- })
- }
- }, {
- key: "Default",
- get: function () {
- return Xe
- }
- }, {
- key: "NAME",
- get: function () {
- return "popover"
- }
- }, {
- key: "Event",
- get: function () {
- return Ge
- }
- }, {
- key: "DefaultType",
- get: function () {
- return Qe
- }
- }]), i
- }();
- t(Je);
- var Ze = {
- offset: 10,
- method: "auto",
- target: ""
- },
- ti = {
- offset: "number",
- method: "string",
- target: "(string|element)"
- },
- ei = function (t) {
- _inherits(s, U);
- var n = _createSuper(s);
-
- function s(t, e) {
- var i;
- 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 () {
- return i._process()
- }), i.refresh(), i._process(), i
- }
- return _createClass(s, [{
- key: "refresh",
- value: function () {
- var e = this,
- t = this._scrollElement === this._scrollElement.window ? "offset" : "position",
- s = "auto" === this._config.method ? t : this._config.method,
- o = "position" === s ? this._getScrollTop() : 0;
- this._offsets = [], this._targets = [], this._scrollHeight = this._getScrollHeight(), _(this._selector).map(function (t) {
- var e = h(t),
- i = e ? y(e) : null;
- if (i) {
- var n = i.getBoundingClientRect();
- if (n.width || n.height) return [Q[s](i).top + o, e]
- }
- return null
- }).filter(function (t) {
- return t
- }).sort(function (t, e) {
- return t[0] - e[0]
- }).forEach(function (t) {
- e._offsets.push(t[0]), e._targets.push(t[1])
- })
- }
- }, {
- key: "dispose",
- value: function () {
- $.off(this._scrollElement, ".bs.scrollspy"), _get2(_getPrototypeOf(s.prototype), "dispose", this).call(this)
- }
- }, {
- key: "_getConfig",
- value: function (t) {
- if ("string" != typeof (t = _objectSpread(_objectSpread(_objectSpread({}, Ze), Q.getDataAttributes(this._element)), "object" == _typeof(t) && t ? t : {})).target && c(t.target)) {
- var e = t.target.id;
- e || (e = p("scrollspy"), t.target.id = e), t.target = "#" + e
- }
- return d("scrollspy", t, ti), t
- }
- }, {
- key: "_getScrollTop",
- value: function () {
- return this._scrollElement === window ? this._scrollElement.pageYOffset : this._scrollElement.scrollTop
- }
- }, {
- key: "_getScrollHeight",
- value: function () {
- return this._scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight)
- }
- }, {
- key: "_getOffsetHeight",
- value: function () {
- return this._scrollElement === window ? window.innerHeight : this._scrollElement.getBoundingClientRect().height
- }
- }, {
- key: "_process",
- value: function () {
- var t = this._getScrollTop() + this._config.offset,
- e = this._getScrollHeight(),
- i = this._config.offset + e - this._getOffsetHeight();
- if (this._scrollHeight !== e && this.refresh(), i <= t) {
- var n = this._targets[this._targets.length - 1];
- this._activeTarget !== n && this._activate(n)
- } else {
- if (this._activeTarget && t < this._offsets[0] && 0 < this._offsets[0]) return this._activeTarget = null, void this._clear();
- 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])
- }
- }
- }, {
- key: "_activate",
- value: function (e) {
- this._activeTarget = e, this._clear();
- var t = this._selector.split(",").map(function (t) {
- return "".concat(t, '[data-bs-target="').concat(e, '"],').concat(t, '[href="').concat(e, '"]')
- }),
- i = y(t.join(","));
- 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) {
- k(t, ".nav-link, .list-group-item").forEach(function (t) {
- return t.classList.add("active")
- }), k(t, ".nav-item").forEach(function (t) {
- b(t, ".nav-link").forEach(function (t) {
- return t.classList.add("active")
- })
- })
- })), $.trigger(this._scrollElement, "activate.bs.scrollspy", {
- relatedTarget: e
- })
- }
- }, {
- key: "_clear",
- value: function () {
- _(this._selector).filter(function (t) {
- return t.classList.contains("active")
- }).forEach(function (t) {
- return t.classList.remove("active")
- })
- }
- }], [{
- key: "jQueryInterface",
- value: function (e) {
- return this.each(function () {
- var t = s.getOrCreateInstance(this, e);
- if ("string" == typeof e) {
- if (void 0 === t[e]) throw new TypeError('No method named "'.concat(e, '"'));
- t[e]()
- }
- })
- }
- }, {
- key: "Default",
- get: function () {
- return Ze
- }
- }, {
- key: "NAME",
- get: function () {
- return "scrollspy"
- }
- }]), s
- }();
- $.on(window, "load.bs.scrollspy.data-api", function () {
- _('[data-bs-spy="scroll"]').forEach(function (t) {
- return new ei(t)
- })
- }), t(ei);
- var ii = function (t) {
- _inherits(i, U);
- var e = _createSuper(i);
-
- function i() {
- return _classCallCheck(this, i), e.apply(this, arguments)
- }
- return _createClass(i, [{
- key: "show",
- value: function () {
- var t = this;
- if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE || !this._element.classList.contains("active")) {
- var e, i = a(this._element),
- n = this._element.closest(".nav, .list-group");
- if (n) {
- var s = "UL" === n.nodeName || "OL" === n.nodeName ? ":scope > li > .active" : ".active";
- e = (e = _(s, n))[e.length - 1]
- }
- var o = e ? $.trigger(e, "hide.bs.tab", {
- relatedTarget: this._element
- }) : null;
- if (!($.trigger(this._element, "show.bs.tab", {
- relatedTarget: e
- }).defaultPrevented || null !== o && o.defaultPrevented)) {
- this._activate(this._element, n);
- var r = function () {
- $.trigger(e, "hidden.bs.tab", {
- relatedTarget: t._element
- }), $.trigger(t._element, "shown.bs.tab", {
- relatedTarget: e
- })
- };
- i ? this._activate(i, i.parentNode, r) : r()
- }
- }
- }
- }, {
- key: "_activate",
- value: function (t, e, i) {
- function n() {
- return s._transitionComplete(t, o, i)
- }
- var s = this,
- o = (!e || "UL" !== e.nodeName && "OL" !== e.nodeName ? b(e, ".active") : _(":scope > li > .active", e))[0],
- r = i && o && o.classList.contains("fade");
- o && r ? (o.classList.remove("show"), this._queueCallback(n, t, !0)) : n()
- }
- }, {
- key: "_transitionComplete",
- value: function (t, e, i) {
- if (e) {
- e.classList.remove("active");
- var n = y(":scope > .dropdown-menu .active", e.parentNode);
- n && n.classList.remove("active"), "tab" === e.getAttribute("role") && e.setAttribute("aria-selected", !1)
- }
- t.classList.add("active"), "tab" === t.getAttribute("role") && t.setAttribute("aria-selected", !0), g(t), t.classList.contains("fade") && t.classList.add("show");
- var s = t.parentNode;
- if (s && "LI" === s.nodeName && (s = s.parentNode), s && s.classList.contains("dropdown-menu")) {
- var o = t.closest(".dropdown");
- o && _(".dropdown-toggle", o).forEach(function (t) {
- return t.classList.add("active")
- }), t.setAttribute("aria-expanded", !0)
- }
- i && i()
- }
- }], [{
- key: "jQueryInterface",
- value: function (e) {
- return this.each(function () {
- var t = i.getOrCreateInstance(this);
- if ("string" == typeof e) {
- if (void 0 === t[e]) throw new TypeError('No method named "'.concat(e, '"'));
- t[e]()
- }
- })
- }
- }, {
- key: "NAME",
- get: function () {
- return "tab"
- }
- }]), i
- }();
- $.on(document, "click.bs.tab.data-api", '[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]', function (t) {
- ["A", "AREA"].includes(this.tagName) && t.preventDefault(), u(this) || ii.getOrCreateInstance(this).show()
- }), t(ii);
- var ni = {
- animation: "boolean",
- autohide: "boolean",
- delay: "number"
- },
- si = {
- animation: !0,
- autohide: !0,
- delay: 5e3
- },
- oi = function (t) {
- _inherits(s, U);
- var n = _createSuper(s);
-
- function s(t, e) {
- var i;
- 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
- }
- return _createClass(s, [{
- key: "show",
- value: function () {
- var t = this;
- $.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 () {
- t._element.classList.remove("showing"), t._element.classList.add("show"), $.trigger(t._element, "shown.bs.toast"), t._maybeScheduleHide()
- }, this._element, this._config.animation))
- }
- }, {
- key: "hide",
- value: function () {
- var t = this;
- this._element.classList.contains("show") && ($.trigger(this._element, "hide.bs.toast").defaultPrevented || (this._element.classList.remove("show"), this._queueCallback(function () {
- t._element.classList.add("hide"), $.trigger(t._element, "hidden.bs.toast")
- }, this._element, this._config.animation)))
- }
- }, {
- key: "dispose",
- value: function () {
- this._clearTimeout(), this._element.classList.contains("show") && this._element.classList.remove("show"), _get2(_getPrototypeOf(s.prototype), "dispose", this).call(this)
- }
- }, {
- key: "_getConfig",
- value: function (t) {
- return t = _objectSpread(_objectSpread(_objectSpread({}, si), Q.getDataAttributes(this._element)), "object" == _typeof(t) && t ? t : {}), d("toast", t, this.constructor.DefaultType), t
- }
- }, {
- key: "_maybeScheduleHide",
- value: function () {
- var t = this;
- this._config.autohide && (this._hasMouseInteraction || this._hasKeyboardInteraction || (this._timeout = setTimeout(function () {
- t.hide()
- }, this._config.delay)))
- }
- }, {
- key: "_onInteraction",
- value: function (t, e) {
- switch (t.type) {
- case "mouseover":
- case "mouseout":
- this._hasMouseInteraction = e;
- break;
- case "focusin":
- case "focusout":
- this._hasKeyboardInteraction = e
- }
- if (e) this._clearTimeout();
- else {
- var i = t.relatedTarget;
- this._element === i || this._element.contains(i) || this._maybeScheduleHide()
- }
- }
- }, {
- key: "_setListeners",
- value: function () {
- var e = this;
- $.on(this._element, "click.dismiss.bs.toast", '[data-bs-dismiss="toast"]', function () {
- return e.hide()
- }), $.on(this._element, "mouseover.bs.toast", function (t) {
- return e._onInteraction(t, !0)
- }), $.on(this._element, "mouseout.bs.toast", function (t) {
- return e._onInteraction(t, !1)
- }), $.on(this._element, "focusin.bs.toast", function (t) {
- return e._onInteraction(t, !0)
- }), $.on(this._element, "focusout.bs.toast", function (t) {
- return e._onInteraction(t, !1)
- })
- }
- }, {
- key: "_clearTimeout",
- value: function () {
- clearTimeout(this._timeout), this._timeout = null
- }
- }], [{
- key: "jQueryInterface",
- value: function (e) {
- return this.each(function () {
- var t = s.getOrCreateInstance(this, e);
- if ("string" == typeof e) {
- if (void 0 === t[e]) throw new TypeError('No method named "'.concat(e, '"'));
- t[e](this)
- }
- })
- }
- }, {
- key: "DefaultType",
- get: function () {
- return ni
- }
- }, {
- key: "Default",
- get: function () {
- return si
- }
- }, {
- key: "NAME",
- get: function () {
- return "toast"
- }
- }]), s
- }();
- return t(oi), {
- Alert: Y,
- Button: V,
- Carousel: st,
- Collapse: at,
- Dropdown: Se,
- Modal: Me,
- Offcanvas: He,
- Popover: Je,
- ScrollSpy: ei,
- Tab: ii,
- Toast: oi,
- Tooltip: Ve
- }
- });
- //# sourceMappingURL=main.min.js.map
|