jquery.js 225 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908
  1. import {
  2. __commonJS
  3. } from "./chunk-A5ICIBVI.js";
  4. // node_modules/jquery/dist/jquery.js
  5. var require_jquery = __commonJS({
  6. "node_modules/jquery/dist/jquery.js"(exports, module) {
  7. (function(global, factory) {
  8. "use strict";
  9. if (typeof module === "object" && typeof module.exports === "object") {
  10. module.exports = global.document ? factory(global, true) : function(w) {
  11. if (!w.document) {
  12. throw new Error("jQuery requires a window with a document");
  13. }
  14. return factory(w);
  15. };
  16. } else {
  17. factory(global);
  18. }
  19. })(typeof window !== "undefined" ? window : exports, function(window2, noGlobal) {
  20. "use strict";
  21. var arr = [];
  22. var getProto = Object.getPrototypeOf;
  23. var slice = arr.slice;
  24. var flat = arr.flat ? function(array) {
  25. return arr.flat.call(array);
  26. } : function(array) {
  27. return arr.concat.apply([], array);
  28. };
  29. var push = arr.push;
  30. var indexOf = arr.indexOf;
  31. var class2type = {};
  32. var toString = class2type.toString;
  33. var hasOwn = class2type.hasOwnProperty;
  34. var fnToString = hasOwn.toString;
  35. var ObjectFunctionString = fnToString.call(Object);
  36. var support = {};
  37. var isFunction = function isFunction2(obj) {
  38. return typeof obj === "function" && typeof obj.nodeType !== "number" && typeof obj.item !== "function";
  39. };
  40. var isWindow = function isWindow2(obj) {
  41. return obj != null && obj === obj.window;
  42. };
  43. var document = window2.document;
  44. var preservedScriptAttributes = {
  45. type: true,
  46. src: true,
  47. nonce: true,
  48. noModule: true
  49. };
  50. function DOMEval(code, node, doc) {
  51. doc = doc || document;
  52. var i, val, script = doc.createElement("script");
  53. script.text = code;
  54. if (node) {
  55. for (i in preservedScriptAttributes) {
  56. val = node[i] || node.getAttribute && node.getAttribute(i);
  57. if (val) {
  58. script.setAttribute(i, val);
  59. }
  60. }
  61. }
  62. doc.head.appendChild(script).parentNode.removeChild(script);
  63. }
  64. function toType(obj) {
  65. if (obj == null) {
  66. return obj + "";
  67. }
  68. return typeof obj === "object" || typeof obj === "function" ? class2type[toString.call(obj)] || "object" : typeof obj;
  69. }
  70. var version = "3.6.0", jQuery = function(selector, context) {
  71. return new jQuery.fn.init(selector, context);
  72. };
  73. jQuery.fn = jQuery.prototype = {
  74. jquery: version,
  75. constructor: jQuery,
  76. length: 0,
  77. toArray: function() {
  78. return slice.call(this);
  79. },
  80. get: function(num) {
  81. if (num == null) {
  82. return slice.call(this);
  83. }
  84. return num < 0 ? this[num + this.length] : this[num];
  85. },
  86. pushStack: function(elems) {
  87. var ret = jQuery.merge(this.constructor(), elems);
  88. ret.prevObject = this;
  89. return ret;
  90. },
  91. each: function(callback) {
  92. return jQuery.each(this, callback);
  93. },
  94. map: function(callback) {
  95. return this.pushStack(jQuery.map(this, function(elem, i) {
  96. return callback.call(elem, i, elem);
  97. }));
  98. },
  99. slice: function() {
  100. return this.pushStack(slice.apply(this, arguments));
  101. },
  102. first: function() {
  103. return this.eq(0);
  104. },
  105. last: function() {
  106. return this.eq(-1);
  107. },
  108. even: function() {
  109. return this.pushStack(jQuery.grep(this, function(_elem, i) {
  110. return (i + 1) % 2;
  111. }));
  112. },
  113. odd: function() {
  114. return this.pushStack(jQuery.grep(this, function(_elem, i) {
  115. return i % 2;
  116. }));
  117. },
  118. eq: function(i) {
  119. var len = this.length, j = +i + (i < 0 ? len : 0);
  120. return this.pushStack(j >= 0 && j < len ? [this[j]] : []);
  121. },
  122. end: function() {
  123. return this.prevObject || this.constructor();
  124. },
  125. push,
  126. sort: arr.sort,
  127. splice: arr.splice
  128. };
  129. jQuery.extend = jQuery.fn.extend = function() {
  130. var options, name, src, copy, copyIsArray, clone, target = arguments[0] || {}, i = 1, length = arguments.length, deep = false;
  131. if (typeof target === "boolean") {
  132. deep = target;
  133. target = arguments[i] || {};
  134. i++;
  135. }
  136. if (typeof target !== "object" && !isFunction(target)) {
  137. target = {};
  138. }
  139. if (i === length) {
  140. target = this;
  141. i--;
  142. }
  143. for (; i < length; i++) {
  144. if ((options = arguments[i]) != null) {
  145. for (name in options) {
  146. copy = options[name];
  147. if (name === "__proto__" || target === copy) {
  148. continue;
  149. }
  150. if (deep && copy && (jQuery.isPlainObject(copy) || (copyIsArray = Array.isArray(copy)))) {
  151. src = target[name];
  152. if (copyIsArray && !Array.isArray(src)) {
  153. clone = [];
  154. } else if (!copyIsArray && !jQuery.isPlainObject(src)) {
  155. clone = {};
  156. } else {
  157. clone = src;
  158. }
  159. copyIsArray = false;
  160. target[name] = jQuery.extend(deep, clone, copy);
  161. } else if (copy !== void 0) {
  162. target[name] = copy;
  163. }
  164. }
  165. }
  166. }
  167. return target;
  168. };
  169. jQuery.extend({
  170. expando: "jQuery" + (version + Math.random()).replace(/\D/g, ""),
  171. isReady: true,
  172. error: function(msg) {
  173. throw new Error(msg);
  174. },
  175. noop: function() {
  176. },
  177. isPlainObject: function(obj) {
  178. var proto, Ctor;
  179. if (!obj || toString.call(obj) !== "[object Object]") {
  180. return false;
  181. }
  182. proto = getProto(obj);
  183. if (!proto) {
  184. return true;
  185. }
  186. Ctor = hasOwn.call(proto, "constructor") && proto.constructor;
  187. return typeof Ctor === "function" && fnToString.call(Ctor) === ObjectFunctionString;
  188. },
  189. isEmptyObject: function(obj) {
  190. var name;
  191. for (name in obj) {
  192. return false;
  193. }
  194. return true;
  195. },
  196. globalEval: function(code, options, doc) {
  197. DOMEval(code, { nonce: options && options.nonce }, doc);
  198. },
  199. each: function(obj, callback) {
  200. var length, i = 0;
  201. if (isArrayLike(obj)) {
  202. length = obj.length;
  203. for (; i < length; i++) {
  204. if (callback.call(obj[i], i, obj[i]) === false) {
  205. break;
  206. }
  207. }
  208. } else {
  209. for (i in obj) {
  210. if (callback.call(obj[i], i, obj[i]) === false) {
  211. break;
  212. }
  213. }
  214. }
  215. return obj;
  216. },
  217. makeArray: function(arr2, results) {
  218. var ret = results || [];
  219. if (arr2 != null) {
  220. if (isArrayLike(Object(arr2))) {
  221. jQuery.merge(ret, typeof arr2 === "string" ? [arr2] : arr2);
  222. } else {
  223. push.call(ret, arr2);
  224. }
  225. }
  226. return ret;
  227. },
  228. inArray: function(elem, arr2, i) {
  229. return arr2 == null ? -1 : indexOf.call(arr2, elem, i);
  230. },
  231. merge: function(first, second) {
  232. var len = +second.length, j = 0, i = first.length;
  233. for (; j < len; j++) {
  234. first[i++] = second[j];
  235. }
  236. first.length = i;
  237. return first;
  238. },
  239. grep: function(elems, callback, invert) {
  240. var callbackInverse, matches = [], i = 0, length = elems.length, callbackExpect = !invert;
  241. for (; i < length; i++) {
  242. callbackInverse = !callback(elems[i], i);
  243. if (callbackInverse !== callbackExpect) {
  244. matches.push(elems[i]);
  245. }
  246. }
  247. return matches;
  248. },
  249. map: function(elems, callback, arg) {
  250. var length, value, i = 0, ret = [];
  251. if (isArrayLike(elems)) {
  252. length = elems.length;
  253. for (; i < length; i++) {
  254. value = callback(elems[i], i, arg);
  255. if (value != null) {
  256. ret.push(value);
  257. }
  258. }
  259. } else {
  260. for (i in elems) {
  261. value = callback(elems[i], i, arg);
  262. if (value != null) {
  263. ret.push(value);
  264. }
  265. }
  266. }
  267. return flat(ret);
  268. },
  269. guid: 1,
  270. support
  271. });
  272. if (typeof Symbol === "function") {
  273. jQuery.fn[Symbol.iterator] = arr[Symbol.iterator];
  274. }
  275. jQuery.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "), function(_i, name) {
  276. class2type["[object " + name + "]"] = name.toLowerCase();
  277. });
  278. function isArrayLike(obj) {
  279. var length = !!obj && "length" in obj && obj.length, type = toType(obj);
  280. if (isFunction(obj) || isWindow(obj)) {
  281. return false;
  282. }
  283. return type === "array" || length === 0 || typeof length === "number" && length > 0 && length - 1 in obj;
  284. }
  285. var Sizzle = function(window3) {
  286. var i, support2, Expr, getText, isXML, tokenize, compile, select, outermostContext, sortInput, hasDuplicate, setDocument, document2, docElem, documentIsHTML, rbuggyQSA, rbuggyMatches, matches, contains, expando = "sizzle" + 1 * new Date(), preferredDoc = window3.document, dirruns = 0, done = 0, classCache = createCache(), tokenCache = createCache(), compilerCache = createCache(), nonnativeSelectorCache = createCache(), sortOrder = function(a, b) {
  287. if (a === b) {
  288. hasDuplicate = true;
  289. }
  290. return 0;
  291. }, hasOwn2 = {}.hasOwnProperty, arr2 = [], pop = arr2.pop, pushNative = arr2.push, push2 = arr2.push, slice2 = arr2.slice, indexOf2 = function(list, elem) {
  292. var i2 = 0, len = list.length;
  293. for (; i2 < len; i2++) {
  294. if (list[i2] === elem) {
  295. return i2;
  296. }
  297. }
  298. return -1;
  299. }, booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", whitespace = "[\\x20\\t\\r\\n\\f]", identifier = "(?:\\\\[\\da-fA-F]{1,6}" + whitespace + "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+", attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace + "*([*^$|!~]?=)" + whitespace + `*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(` + identifier + "))|)" + whitespace + "*\\]", pseudos = ":(" + identifier + `)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|` + attributes + ")*)|.*)\\)|)", rwhitespace = new RegExp(whitespace + "+", "g"), rtrim2 = new RegExp("^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g"), rcomma = new RegExp("^" + whitespace + "*," + whitespace + "*"), rcombinators = new RegExp("^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*"), rdescend = new RegExp(whitespace + "|>"), rpseudo = new RegExp(pseudos), ridentifier = new RegExp("^" + identifier + "$"), matchExpr = {
  300. "ID": new RegExp("^#(" + identifier + ")"),
  301. "CLASS": new RegExp("^\\.(" + identifier + ")"),
  302. "TAG": new RegExp("^(" + identifier + "|[*])"),
  303. "ATTR": new RegExp("^" + attributes),
  304. "PSEUDO": new RegExp("^" + pseudos),
  305. "CHILD": new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + "*(\\d+)|))" + whitespace + "*\\)|)", "i"),
  306. "bool": new RegExp("^(?:" + booleans + ")$", "i"),
  307. "needsContext": new RegExp("^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i")
  308. }, rhtml2 = /HTML$/i, rinputs = /^(?:input|select|textarea|button)$/i, rheader = /^h\d$/i, rnative = /^[^{]+\{\s*\[native \w/, rquickExpr2 = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, rsibling = /[+~]/, runescape = new RegExp("\\\\[\\da-fA-F]{1,6}" + whitespace + "?|\\\\([^\\r\\n\\f])", "g"), funescape = function(escape, nonHex) {
  309. var high = "0x" + escape.slice(1) - 65536;
  310. return nonHex ? nonHex : high < 0 ? String.fromCharCode(high + 65536) : String.fromCharCode(high >> 10 | 55296, high & 1023 | 56320);
  311. }, rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g, fcssescape = function(ch, asCodePoint) {
  312. if (asCodePoint) {
  313. if (ch === "\0") {
  314. return "\uFFFD";
  315. }
  316. return ch.slice(0, -1) + "\\" + ch.charCodeAt(ch.length - 1).toString(16) + " ";
  317. }
  318. return "\\" + ch;
  319. }, unloadHandler = function() {
  320. setDocument();
  321. }, inDisabledFieldset = addCombinator(function(elem) {
  322. return elem.disabled === true && elem.nodeName.toLowerCase() === "fieldset";
  323. }, { dir: "parentNode", next: "legend" });
  324. try {
  325. push2.apply(arr2 = slice2.call(preferredDoc.childNodes), preferredDoc.childNodes);
  326. arr2[preferredDoc.childNodes.length].nodeType;
  327. } catch (e) {
  328. push2 = {
  329. apply: arr2.length ? function(target, els) {
  330. pushNative.apply(target, slice2.call(els));
  331. } : function(target, els) {
  332. var j = target.length, i2 = 0;
  333. while (target[j++] = els[i2++]) {
  334. }
  335. target.length = j - 1;
  336. }
  337. };
  338. }
  339. function Sizzle2(selector, context, results, seed) {
  340. var m, i2, elem, nid, match, groups, newSelector, newContext = context && context.ownerDocument, nodeType = context ? context.nodeType : 9;
  341. results = results || [];
  342. if (typeof selector !== "string" || !selector || nodeType !== 1 && nodeType !== 9 && nodeType !== 11) {
  343. return results;
  344. }
  345. if (!seed) {
  346. setDocument(context);
  347. context = context || document2;
  348. if (documentIsHTML) {
  349. if (nodeType !== 11 && (match = rquickExpr2.exec(selector))) {
  350. if (m = match[1]) {
  351. if (nodeType === 9) {
  352. if (elem = context.getElementById(m)) {
  353. if (elem.id === m) {
  354. results.push(elem);
  355. return results;
  356. }
  357. } else {
  358. return results;
  359. }
  360. } else {
  361. if (newContext && (elem = newContext.getElementById(m)) && contains(context, elem) && elem.id === m) {
  362. results.push(elem);
  363. return results;
  364. }
  365. }
  366. } else if (match[2]) {
  367. push2.apply(results, context.getElementsByTagName(selector));
  368. return results;
  369. } else if ((m = match[3]) && support2.getElementsByClassName && context.getElementsByClassName) {
  370. push2.apply(results, context.getElementsByClassName(m));
  371. return results;
  372. }
  373. }
  374. if (support2.qsa && !nonnativeSelectorCache[selector + " "] && (!rbuggyQSA || !rbuggyQSA.test(selector)) && (nodeType !== 1 || context.nodeName.toLowerCase() !== "object")) {
  375. newSelector = selector;
  376. newContext = context;
  377. if (nodeType === 1 && (rdescend.test(selector) || rcombinators.test(selector))) {
  378. newContext = rsibling.test(selector) && testContext(context.parentNode) || context;
  379. if (newContext !== context || !support2.scope) {
  380. if (nid = context.getAttribute("id")) {
  381. nid = nid.replace(rcssescape, fcssescape);
  382. } else {
  383. context.setAttribute("id", nid = expando);
  384. }
  385. }
  386. groups = tokenize(selector);
  387. i2 = groups.length;
  388. while (i2--) {
  389. groups[i2] = (nid ? "#" + nid : ":scope") + " " + toSelector(groups[i2]);
  390. }
  391. newSelector = groups.join(",");
  392. }
  393. try {
  394. push2.apply(results, newContext.querySelectorAll(newSelector));
  395. return results;
  396. } catch (qsaError) {
  397. nonnativeSelectorCache(selector, true);
  398. } finally {
  399. if (nid === expando) {
  400. context.removeAttribute("id");
  401. }
  402. }
  403. }
  404. }
  405. }
  406. return select(selector.replace(rtrim2, "$1"), context, results, seed);
  407. }
  408. function createCache() {
  409. var keys = [];
  410. function cache(key, value) {
  411. if (keys.push(key + " ") > Expr.cacheLength) {
  412. delete cache[keys.shift()];
  413. }
  414. return cache[key + " "] = value;
  415. }
  416. return cache;
  417. }
  418. function markFunction(fn) {
  419. fn[expando] = true;
  420. return fn;
  421. }
  422. function assert(fn) {
  423. var el = document2.createElement("fieldset");
  424. try {
  425. return !!fn(el);
  426. } catch (e) {
  427. return false;
  428. } finally {
  429. if (el.parentNode) {
  430. el.parentNode.removeChild(el);
  431. }
  432. el = null;
  433. }
  434. }
  435. function addHandle(attrs, handler) {
  436. var arr3 = attrs.split("|"), i2 = arr3.length;
  437. while (i2--) {
  438. Expr.attrHandle[arr3[i2]] = handler;
  439. }
  440. }
  441. function siblingCheck(a, b) {
  442. var cur = b && a, diff = cur && a.nodeType === 1 && b.nodeType === 1 && a.sourceIndex - b.sourceIndex;
  443. if (diff) {
  444. return diff;
  445. }
  446. if (cur) {
  447. while (cur = cur.nextSibling) {
  448. if (cur === b) {
  449. return -1;
  450. }
  451. }
  452. }
  453. return a ? 1 : -1;
  454. }
  455. function createInputPseudo(type) {
  456. return function(elem) {
  457. var name = elem.nodeName.toLowerCase();
  458. return name === "input" && elem.type === type;
  459. };
  460. }
  461. function createButtonPseudo(type) {
  462. return function(elem) {
  463. var name = elem.nodeName.toLowerCase();
  464. return (name === "input" || name === "button") && elem.type === type;
  465. };
  466. }
  467. function createDisabledPseudo(disabled) {
  468. return function(elem) {
  469. if ("form" in elem) {
  470. if (elem.parentNode && elem.disabled === false) {
  471. if ("label" in elem) {
  472. if ("label" in elem.parentNode) {
  473. return elem.parentNode.disabled === disabled;
  474. } else {
  475. return elem.disabled === disabled;
  476. }
  477. }
  478. return elem.isDisabled === disabled || elem.isDisabled !== !disabled && inDisabledFieldset(elem) === disabled;
  479. }
  480. return elem.disabled === disabled;
  481. } else if ("label" in elem) {
  482. return elem.disabled === disabled;
  483. }
  484. return false;
  485. };
  486. }
  487. function createPositionalPseudo(fn) {
  488. return markFunction(function(argument) {
  489. argument = +argument;
  490. return markFunction(function(seed, matches2) {
  491. var j, matchIndexes = fn([], seed.length, argument), i2 = matchIndexes.length;
  492. while (i2--) {
  493. if (seed[j = matchIndexes[i2]]) {
  494. seed[j] = !(matches2[j] = seed[j]);
  495. }
  496. }
  497. });
  498. });
  499. }
  500. function testContext(context) {
  501. return context && typeof context.getElementsByTagName !== "undefined" && context;
  502. }
  503. support2 = Sizzle2.support = {};
  504. isXML = Sizzle2.isXML = function(elem) {
  505. var namespace = elem && elem.namespaceURI, docElem2 = elem && (elem.ownerDocument || elem).documentElement;
  506. return !rhtml2.test(namespace || docElem2 && docElem2.nodeName || "HTML");
  507. };
  508. setDocument = Sizzle2.setDocument = function(node) {
  509. var hasCompare, subWindow, doc = node ? node.ownerDocument || node : preferredDoc;
  510. if (doc == document2 || doc.nodeType !== 9 || !doc.documentElement) {
  511. return document2;
  512. }
  513. document2 = doc;
  514. docElem = document2.documentElement;
  515. documentIsHTML = !isXML(document2);
  516. if (preferredDoc != document2 && (subWindow = document2.defaultView) && subWindow.top !== subWindow) {
  517. if (subWindow.addEventListener) {
  518. subWindow.addEventListener("unload", unloadHandler, false);
  519. } else if (subWindow.attachEvent) {
  520. subWindow.attachEvent("onunload", unloadHandler);
  521. }
  522. }
  523. support2.scope = assert(function(el) {
  524. docElem.appendChild(el).appendChild(document2.createElement("div"));
  525. return typeof el.querySelectorAll !== "undefined" && !el.querySelectorAll(":scope fieldset div").length;
  526. });
  527. support2.attributes = assert(function(el) {
  528. el.className = "i";
  529. return !el.getAttribute("className");
  530. });
  531. support2.getElementsByTagName = assert(function(el) {
  532. el.appendChild(document2.createComment(""));
  533. return !el.getElementsByTagName("*").length;
  534. });
  535. support2.getElementsByClassName = rnative.test(document2.getElementsByClassName);
  536. support2.getById = assert(function(el) {
  537. docElem.appendChild(el).id = expando;
  538. return !document2.getElementsByName || !document2.getElementsByName(expando).length;
  539. });
  540. if (support2.getById) {
  541. Expr.filter["ID"] = function(id) {
  542. var attrId = id.replace(runescape, funescape);
  543. return function(elem) {
  544. return elem.getAttribute("id") === attrId;
  545. };
  546. };
  547. Expr.find["ID"] = function(id, context) {
  548. if (typeof context.getElementById !== "undefined" && documentIsHTML) {
  549. var elem = context.getElementById(id);
  550. return elem ? [elem] : [];
  551. }
  552. };
  553. } else {
  554. Expr.filter["ID"] = function(id) {
  555. var attrId = id.replace(runescape, funescape);
  556. return function(elem) {
  557. var node2 = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
  558. return node2 && node2.value === attrId;
  559. };
  560. };
  561. Expr.find["ID"] = function(id, context) {
  562. if (typeof context.getElementById !== "undefined" && documentIsHTML) {
  563. var node2, i2, elems, elem = context.getElementById(id);
  564. if (elem) {
  565. node2 = elem.getAttributeNode("id");
  566. if (node2 && node2.value === id) {
  567. return [elem];
  568. }
  569. elems = context.getElementsByName(id);
  570. i2 = 0;
  571. while (elem = elems[i2++]) {
  572. node2 = elem.getAttributeNode("id");
  573. if (node2 && node2.value === id) {
  574. return [elem];
  575. }
  576. }
  577. }
  578. return [];
  579. }
  580. };
  581. }
  582. Expr.find["TAG"] = support2.getElementsByTagName ? function(tag, context) {
  583. if (typeof context.getElementsByTagName !== "undefined") {
  584. return context.getElementsByTagName(tag);
  585. } else if (support2.qsa) {
  586. return context.querySelectorAll(tag);
  587. }
  588. } : function(tag, context) {
  589. var elem, tmp = [], i2 = 0, results = context.getElementsByTagName(tag);
  590. if (tag === "*") {
  591. while (elem = results[i2++]) {
  592. if (elem.nodeType === 1) {
  593. tmp.push(elem);
  594. }
  595. }
  596. return tmp;
  597. }
  598. return results;
  599. };
  600. Expr.find["CLASS"] = support2.getElementsByClassName && function(className, context) {
  601. if (typeof context.getElementsByClassName !== "undefined" && documentIsHTML) {
  602. return context.getElementsByClassName(className);
  603. }
  604. };
  605. rbuggyMatches = [];
  606. rbuggyQSA = [];
  607. if (support2.qsa = rnative.test(document2.querySelectorAll)) {
  608. assert(function(el) {
  609. var input;
  610. docElem.appendChild(el).innerHTML = "<a id='" + expando + "'></a><select id='" + expando + "-\r\\' msallowcapture=''><option selected=''></option></select>";
  611. if (el.querySelectorAll("[msallowcapture^='']").length) {
  612. rbuggyQSA.push("[*^$]=" + whitespace + `*(?:''|"")`);
  613. }
  614. if (!el.querySelectorAll("[selected]").length) {
  615. rbuggyQSA.push("\\[" + whitespace + "*(?:value|" + booleans + ")");
  616. }
  617. if (!el.querySelectorAll("[id~=" + expando + "-]").length) {
  618. rbuggyQSA.push("~=");
  619. }
  620. input = document2.createElement("input");
  621. input.setAttribute("name", "");
  622. el.appendChild(input);
  623. if (!el.querySelectorAll("[name='']").length) {
  624. rbuggyQSA.push("\\[" + whitespace + "*name" + whitespace + "*=" + whitespace + `*(?:''|"")`);
  625. }
  626. if (!el.querySelectorAll(":checked").length) {
  627. rbuggyQSA.push(":checked");
  628. }
  629. if (!el.querySelectorAll("a#" + expando + "+*").length) {
  630. rbuggyQSA.push(".#.+[+~]");
  631. }
  632. el.querySelectorAll("\\\f");
  633. rbuggyQSA.push("[\\r\\n\\f]");
  634. });
  635. assert(function(el) {
  636. el.innerHTML = "<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";
  637. var input = document2.createElement("input");
  638. input.setAttribute("type", "hidden");
  639. el.appendChild(input).setAttribute("name", "D");
  640. if (el.querySelectorAll("[name=d]").length) {
  641. rbuggyQSA.push("name" + whitespace + "*[*^$|!~]?=");
  642. }
  643. if (el.querySelectorAll(":enabled").length !== 2) {
  644. rbuggyQSA.push(":enabled", ":disabled");
  645. }
  646. docElem.appendChild(el).disabled = true;
  647. if (el.querySelectorAll(":disabled").length !== 2) {
  648. rbuggyQSA.push(":enabled", ":disabled");
  649. }
  650. el.querySelectorAll("*,:x");
  651. rbuggyQSA.push(",.*:");
  652. });
  653. }
  654. if (support2.matchesSelector = rnative.test(matches = docElem.matches || docElem.webkitMatchesSelector || docElem.mozMatchesSelector || docElem.oMatchesSelector || docElem.msMatchesSelector)) {
  655. assert(function(el) {
  656. support2.disconnectedMatch = matches.call(el, "*");
  657. matches.call(el, "[s!='']:x");
  658. rbuggyMatches.push("!=", pseudos);
  659. });
  660. }
  661. rbuggyQSA = rbuggyQSA.length && new RegExp(rbuggyQSA.join("|"));
  662. rbuggyMatches = rbuggyMatches.length && new RegExp(rbuggyMatches.join("|"));
  663. hasCompare = rnative.test(docElem.compareDocumentPosition);
  664. contains = hasCompare || rnative.test(docElem.contains) ? function(a, b) {
  665. var adown = a.nodeType === 9 ? a.documentElement : a, bup = b && b.parentNode;
  666. return a === bup || !!(bup && bup.nodeType === 1 && (adown.contains ? adown.contains(bup) : a.compareDocumentPosition && a.compareDocumentPosition(bup) & 16));
  667. } : function(a, b) {
  668. if (b) {
  669. while (b = b.parentNode) {
  670. if (b === a) {
  671. return true;
  672. }
  673. }
  674. }
  675. return false;
  676. };
  677. sortOrder = hasCompare ? function(a, b) {
  678. if (a === b) {
  679. hasDuplicate = true;
  680. return 0;
  681. }
  682. var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
  683. if (compare) {
  684. return compare;
  685. }
  686. compare = (a.ownerDocument || a) == (b.ownerDocument || b) ? a.compareDocumentPosition(b) : 1;
  687. if (compare & 1 || !support2.sortDetached && b.compareDocumentPosition(a) === compare) {
  688. if (a == document2 || a.ownerDocument == preferredDoc && contains(preferredDoc, a)) {
  689. return -1;
  690. }
  691. if (b == document2 || b.ownerDocument == preferredDoc && contains(preferredDoc, b)) {
  692. return 1;
  693. }
  694. return sortInput ? indexOf2(sortInput, a) - indexOf2(sortInput, b) : 0;
  695. }
  696. return compare & 4 ? -1 : 1;
  697. } : function(a, b) {
  698. if (a === b) {
  699. hasDuplicate = true;
  700. return 0;
  701. }
  702. var cur, i2 = 0, aup = a.parentNode, bup = b.parentNode, ap = [a], bp = [b];
  703. if (!aup || !bup) {
  704. return a == document2 ? -1 : b == document2 ? 1 : aup ? -1 : bup ? 1 : sortInput ? indexOf2(sortInput, a) - indexOf2(sortInput, b) : 0;
  705. } else if (aup === bup) {
  706. return siblingCheck(a, b);
  707. }
  708. cur = a;
  709. while (cur = cur.parentNode) {
  710. ap.unshift(cur);
  711. }
  712. cur = b;
  713. while (cur = cur.parentNode) {
  714. bp.unshift(cur);
  715. }
  716. while (ap[i2] === bp[i2]) {
  717. i2++;
  718. }
  719. return i2 ? siblingCheck(ap[i2], bp[i2]) : ap[i2] == preferredDoc ? -1 : bp[i2] == preferredDoc ? 1 : 0;
  720. };
  721. return document2;
  722. };
  723. Sizzle2.matches = function(expr, elements) {
  724. return Sizzle2(expr, null, null, elements);
  725. };
  726. Sizzle2.matchesSelector = function(elem, expr) {
  727. setDocument(elem);
  728. if (support2.matchesSelector && documentIsHTML && !nonnativeSelectorCache[expr + " "] && (!rbuggyMatches || !rbuggyMatches.test(expr)) && (!rbuggyQSA || !rbuggyQSA.test(expr))) {
  729. try {
  730. var ret = matches.call(elem, expr);
  731. if (ret || support2.disconnectedMatch || elem.document && elem.document.nodeType !== 11) {
  732. return ret;
  733. }
  734. } catch (e) {
  735. nonnativeSelectorCache(expr, true);
  736. }
  737. }
  738. return Sizzle2(expr, document2, null, [elem]).length > 0;
  739. };
  740. Sizzle2.contains = function(context, elem) {
  741. if ((context.ownerDocument || context) != document2) {
  742. setDocument(context);
  743. }
  744. return contains(context, elem);
  745. };
  746. Sizzle2.attr = function(elem, name) {
  747. if ((elem.ownerDocument || elem) != document2) {
  748. setDocument(elem);
  749. }
  750. var fn = Expr.attrHandle[name.toLowerCase()], val = fn && hasOwn2.call(Expr.attrHandle, name.toLowerCase()) ? fn(elem, name, !documentIsHTML) : void 0;
  751. return val !== void 0 ? val : support2.attributes || !documentIsHTML ? elem.getAttribute(name) : (val = elem.getAttributeNode(name)) && val.specified ? val.value : null;
  752. };
  753. Sizzle2.escape = function(sel) {
  754. return (sel + "").replace(rcssescape, fcssescape);
  755. };
  756. Sizzle2.error = function(msg) {
  757. throw new Error("Syntax error, unrecognized expression: " + msg);
  758. };
  759. Sizzle2.uniqueSort = function(results) {
  760. var elem, duplicates = [], j = 0, i2 = 0;
  761. hasDuplicate = !support2.detectDuplicates;
  762. sortInput = !support2.sortStable && results.slice(0);
  763. results.sort(sortOrder);
  764. if (hasDuplicate) {
  765. while (elem = results[i2++]) {
  766. if (elem === results[i2]) {
  767. j = duplicates.push(i2);
  768. }
  769. }
  770. while (j--) {
  771. results.splice(duplicates[j], 1);
  772. }
  773. }
  774. sortInput = null;
  775. return results;
  776. };
  777. getText = Sizzle2.getText = function(elem) {
  778. var node, ret = "", i2 = 0, nodeType = elem.nodeType;
  779. if (!nodeType) {
  780. while (node = elem[i2++]) {
  781. ret += getText(node);
  782. }
  783. } else if (nodeType === 1 || nodeType === 9 || nodeType === 11) {
  784. if (typeof elem.textContent === "string") {
  785. return elem.textContent;
  786. } else {
  787. for (elem = elem.firstChild; elem; elem = elem.nextSibling) {
  788. ret += getText(elem);
  789. }
  790. }
  791. } else if (nodeType === 3 || nodeType === 4) {
  792. return elem.nodeValue;
  793. }
  794. return ret;
  795. };
  796. Expr = Sizzle2.selectors = {
  797. cacheLength: 50,
  798. createPseudo: markFunction,
  799. match: matchExpr,
  800. attrHandle: {},
  801. find: {},
  802. relative: {
  803. ">": { dir: "parentNode", first: true },
  804. " ": { dir: "parentNode" },
  805. "+": { dir: "previousSibling", first: true },
  806. "~": { dir: "previousSibling" }
  807. },
  808. preFilter: {
  809. "ATTR": function(match) {
  810. match[1] = match[1].replace(runescape, funescape);
  811. match[3] = (match[3] || match[4] || match[5] || "").replace(runescape, funescape);
  812. if (match[2] === "~=") {
  813. match[3] = " " + match[3] + " ";
  814. }
  815. return match.slice(0, 4);
  816. },
  817. "CHILD": function(match) {
  818. match[1] = match[1].toLowerCase();
  819. if (match[1].slice(0, 3) === "nth") {
  820. if (!match[3]) {
  821. Sizzle2.error(match[0]);
  822. }
  823. match[4] = +(match[4] ? match[5] + (match[6] || 1) : 2 * (match[3] === "even" || match[3] === "odd"));
  824. match[5] = +(match[7] + match[8] || match[3] === "odd");
  825. } else if (match[3]) {
  826. Sizzle2.error(match[0]);
  827. }
  828. return match;
  829. },
  830. "PSEUDO": function(match) {
  831. var excess, unquoted = !match[6] && match[2];
  832. if (matchExpr["CHILD"].test(match[0])) {
  833. return null;
  834. }
  835. if (match[3]) {
  836. match[2] = match[4] || match[5] || "";
  837. } else if (unquoted && rpseudo.test(unquoted) && (excess = tokenize(unquoted, true)) && (excess = unquoted.indexOf(")", unquoted.length - excess) - unquoted.length)) {
  838. match[0] = match[0].slice(0, excess);
  839. match[2] = unquoted.slice(0, excess);
  840. }
  841. return match.slice(0, 3);
  842. }
  843. },
  844. filter: {
  845. "TAG": function(nodeNameSelector) {
  846. var nodeName2 = nodeNameSelector.replace(runescape, funescape).toLowerCase();
  847. return nodeNameSelector === "*" ? function() {
  848. return true;
  849. } : function(elem) {
  850. return elem.nodeName && elem.nodeName.toLowerCase() === nodeName2;
  851. };
  852. },
  853. "CLASS": function(className) {
  854. var pattern = classCache[className + " "];
  855. return pattern || (pattern = new RegExp("(^|" + whitespace + ")" + className + "(" + whitespace + "|$)")) && classCache(className, function(elem) {
  856. return pattern.test(typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "");
  857. });
  858. },
  859. "ATTR": function(name, operator, check) {
  860. return function(elem) {
  861. var result = Sizzle2.attr(elem, name);
  862. if (result == null) {
  863. return operator === "!=";
  864. }
  865. if (!operator) {
  866. return true;
  867. }
  868. result += "";
  869. return operator === "=" ? result === check : operator === "!=" ? result !== check : operator === "^=" ? check && result.indexOf(check) === 0 : operator === "*=" ? check && result.indexOf(check) > -1 : operator === "$=" ? check && result.slice(-check.length) === check : operator === "~=" ? (" " + result.replace(rwhitespace, " ") + " ").indexOf(check) > -1 : operator === "|=" ? result === check || result.slice(0, check.length + 1) === check + "-" : false;
  870. };
  871. },
  872. "CHILD": function(type, what, _argument, first, last) {
  873. var simple = type.slice(0, 3) !== "nth", forward = type.slice(-4) !== "last", ofType = what === "of-type";
  874. return first === 1 && last === 0 ? function(elem) {
  875. return !!elem.parentNode;
  876. } : function(elem, _context, xml) {
  877. var cache, uniqueCache, outerCache, node, nodeIndex, start, dir2 = simple !== forward ? "nextSibling" : "previousSibling", parent = elem.parentNode, name = ofType && elem.nodeName.toLowerCase(), useCache = !xml && !ofType, diff = false;
  878. if (parent) {
  879. if (simple) {
  880. while (dir2) {
  881. node = elem;
  882. while (node = node[dir2]) {
  883. if (ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1) {
  884. return false;
  885. }
  886. }
  887. start = dir2 = type === "only" && !start && "nextSibling";
  888. }
  889. return true;
  890. }
  891. start = [forward ? parent.firstChild : parent.lastChild];
  892. if (forward && useCache) {
  893. node = parent;
  894. outerCache = node[expando] || (node[expando] = {});
  895. uniqueCache = outerCache[node.uniqueID] || (outerCache[node.uniqueID] = {});
  896. cache = uniqueCache[type] || [];
  897. nodeIndex = cache[0] === dirruns && cache[1];
  898. diff = nodeIndex && cache[2];
  899. node = nodeIndex && parent.childNodes[nodeIndex];
  900. while (node = ++nodeIndex && node && node[dir2] || (diff = nodeIndex = 0) || start.pop()) {
  901. if (node.nodeType === 1 && ++diff && node === elem) {
  902. uniqueCache[type] = [dirruns, nodeIndex, diff];
  903. break;
  904. }
  905. }
  906. } else {
  907. if (useCache) {
  908. node = elem;
  909. outerCache = node[expando] || (node[expando] = {});
  910. uniqueCache = outerCache[node.uniqueID] || (outerCache[node.uniqueID] = {});
  911. cache = uniqueCache[type] || [];
  912. nodeIndex = cache[0] === dirruns && cache[1];
  913. diff = nodeIndex;
  914. }
  915. if (diff === false) {
  916. while (node = ++nodeIndex && node && node[dir2] || (diff = nodeIndex = 0) || start.pop()) {
  917. if ((ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1) && ++diff) {
  918. if (useCache) {
  919. outerCache = node[expando] || (node[expando] = {});
  920. uniqueCache = outerCache[node.uniqueID] || (outerCache[node.uniqueID] = {});
  921. uniqueCache[type] = [dirruns, diff];
  922. }
  923. if (node === elem) {
  924. break;
  925. }
  926. }
  927. }
  928. }
  929. }
  930. diff -= last;
  931. return diff === first || diff % first === 0 && diff / first >= 0;
  932. }
  933. };
  934. },
  935. "PSEUDO": function(pseudo, argument) {
  936. var args, fn = Expr.pseudos[pseudo] || Expr.setFilters[pseudo.toLowerCase()] || Sizzle2.error("unsupported pseudo: " + pseudo);
  937. if (fn[expando]) {
  938. return fn(argument);
  939. }
  940. if (fn.length > 1) {
  941. args = [pseudo, pseudo, "", argument];
  942. return Expr.setFilters.hasOwnProperty(pseudo.toLowerCase()) ? markFunction(function(seed, matches2) {
  943. var idx, matched = fn(seed, argument), i2 = matched.length;
  944. while (i2--) {
  945. idx = indexOf2(seed, matched[i2]);
  946. seed[idx] = !(matches2[idx] = matched[i2]);
  947. }
  948. }) : function(elem) {
  949. return fn(elem, 0, args);
  950. };
  951. }
  952. return fn;
  953. }
  954. },
  955. pseudos: {
  956. "not": markFunction(function(selector) {
  957. var input = [], results = [], matcher = compile(selector.replace(rtrim2, "$1"));
  958. return matcher[expando] ? markFunction(function(seed, matches2, _context, xml) {
  959. var elem, unmatched = matcher(seed, null, xml, []), i2 = seed.length;
  960. while (i2--) {
  961. if (elem = unmatched[i2]) {
  962. seed[i2] = !(matches2[i2] = elem);
  963. }
  964. }
  965. }) : function(elem, _context, xml) {
  966. input[0] = elem;
  967. matcher(input, null, xml, results);
  968. input[0] = null;
  969. return !results.pop();
  970. };
  971. }),
  972. "has": markFunction(function(selector) {
  973. return function(elem) {
  974. return Sizzle2(selector, elem).length > 0;
  975. };
  976. }),
  977. "contains": markFunction(function(text) {
  978. text = text.replace(runescape, funescape);
  979. return function(elem) {
  980. return (elem.textContent || getText(elem)).indexOf(text) > -1;
  981. };
  982. }),
  983. "lang": markFunction(function(lang) {
  984. if (!ridentifier.test(lang || "")) {
  985. Sizzle2.error("unsupported lang: " + lang);
  986. }
  987. lang = lang.replace(runescape, funescape).toLowerCase();
  988. return function(elem) {
  989. var elemLang;
  990. do {
  991. if (elemLang = documentIsHTML ? elem.lang : elem.getAttribute("xml:lang") || elem.getAttribute("lang")) {
  992. elemLang = elemLang.toLowerCase();
  993. return elemLang === lang || elemLang.indexOf(lang + "-") === 0;
  994. }
  995. } while ((elem = elem.parentNode) && elem.nodeType === 1);
  996. return false;
  997. };
  998. }),
  999. "target": function(elem) {
  1000. var hash = window3.location && window3.location.hash;
  1001. return hash && hash.slice(1) === elem.id;
  1002. },
  1003. "root": function(elem) {
  1004. return elem === docElem;
  1005. },
  1006. "focus": function(elem) {
  1007. return elem === document2.activeElement && (!document2.hasFocus || document2.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);
  1008. },
  1009. "enabled": createDisabledPseudo(false),
  1010. "disabled": createDisabledPseudo(true),
  1011. "checked": function(elem) {
  1012. var nodeName2 = elem.nodeName.toLowerCase();
  1013. return nodeName2 === "input" && !!elem.checked || nodeName2 === "option" && !!elem.selected;
  1014. },
  1015. "selected": function(elem) {
  1016. if (elem.parentNode) {
  1017. elem.parentNode.selectedIndex;
  1018. }
  1019. return elem.selected === true;
  1020. },
  1021. "empty": function(elem) {
  1022. for (elem = elem.firstChild; elem; elem = elem.nextSibling) {
  1023. if (elem.nodeType < 6) {
  1024. return false;
  1025. }
  1026. }
  1027. return true;
  1028. },
  1029. "parent": function(elem) {
  1030. return !Expr.pseudos["empty"](elem);
  1031. },
  1032. "header": function(elem) {
  1033. return rheader.test(elem.nodeName);
  1034. },
  1035. "input": function(elem) {
  1036. return rinputs.test(elem.nodeName);
  1037. },
  1038. "button": function(elem) {
  1039. var name = elem.nodeName.toLowerCase();
  1040. return name === "input" && elem.type === "button" || name === "button";
  1041. },
  1042. "text": function(elem) {
  1043. var attr;
  1044. return elem.nodeName.toLowerCase() === "input" && elem.type === "text" && ((attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text");
  1045. },
  1046. "first": createPositionalPseudo(function() {
  1047. return [0];
  1048. }),
  1049. "last": createPositionalPseudo(function(_matchIndexes, length) {
  1050. return [length - 1];
  1051. }),
  1052. "eq": createPositionalPseudo(function(_matchIndexes, length, argument) {
  1053. return [argument < 0 ? argument + length : argument];
  1054. }),
  1055. "even": createPositionalPseudo(function(matchIndexes, length) {
  1056. var i2 = 0;
  1057. for (; i2 < length; i2 += 2) {
  1058. matchIndexes.push(i2);
  1059. }
  1060. return matchIndexes;
  1061. }),
  1062. "odd": createPositionalPseudo(function(matchIndexes, length) {
  1063. var i2 = 1;
  1064. for (; i2 < length; i2 += 2) {
  1065. matchIndexes.push(i2);
  1066. }
  1067. return matchIndexes;
  1068. }),
  1069. "lt": createPositionalPseudo(function(matchIndexes, length, argument) {
  1070. var i2 = argument < 0 ? argument + length : argument > length ? length : argument;
  1071. for (; --i2 >= 0; ) {
  1072. matchIndexes.push(i2);
  1073. }
  1074. return matchIndexes;
  1075. }),
  1076. "gt": createPositionalPseudo(function(matchIndexes, length, argument) {
  1077. var i2 = argument < 0 ? argument + length : argument;
  1078. for (; ++i2 < length; ) {
  1079. matchIndexes.push(i2);
  1080. }
  1081. return matchIndexes;
  1082. })
  1083. }
  1084. };
  1085. Expr.pseudos["nth"] = Expr.pseudos["eq"];
  1086. for (i in { radio: true, checkbox: true, file: true, password: true, image: true }) {
  1087. Expr.pseudos[i] = createInputPseudo(i);
  1088. }
  1089. for (i in { submit: true, reset: true }) {
  1090. Expr.pseudos[i] = createButtonPseudo(i);
  1091. }
  1092. function setFilters() {
  1093. }
  1094. setFilters.prototype = Expr.filters = Expr.pseudos;
  1095. Expr.setFilters = new setFilters();
  1096. tokenize = Sizzle2.tokenize = function(selector, parseOnly) {
  1097. var matched, match, tokens, type, soFar, groups, preFilters, cached = tokenCache[selector + " "];
  1098. if (cached) {
  1099. return parseOnly ? 0 : cached.slice(0);
  1100. }
  1101. soFar = selector;
  1102. groups = [];
  1103. preFilters = Expr.preFilter;
  1104. while (soFar) {
  1105. if (!matched || (match = rcomma.exec(soFar))) {
  1106. if (match) {
  1107. soFar = soFar.slice(match[0].length) || soFar;
  1108. }
  1109. groups.push(tokens = []);
  1110. }
  1111. matched = false;
  1112. if (match = rcombinators.exec(soFar)) {
  1113. matched = match.shift();
  1114. tokens.push({
  1115. value: matched,
  1116. type: match[0].replace(rtrim2, " ")
  1117. });
  1118. soFar = soFar.slice(matched.length);
  1119. }
  1120. for (type in Expr.filter) {
  1121. if ((match = matchExpr[type].exec(soFar)) && (!preFilters[type] || (match = preFilters[type](match)))) {
  1122. matched = match.shift();
  1123. tokens.push({
  1124. value: matched,
  1125. type,
  1126. matches: match
  1127. });
  1128. soFar = soFar.slice(matched.length);
  1129. }
  1130. }
  1131. if (!matched) {
  1132. break;
  1133. }
  1134. }
  1135. return parseOnly ? soFar.length : soFar ? Sizzle2.error(selector) : tokenCache(selector, groups).slice(0);
  1136. };
  1137. function toSelector(tokens) {
  1138. var i2 = 0, len = tokens.length, selector = "";
  1139. for (; i2 < len; i2++) {
  1140. selector += tokens[i2].value;
  1141. }
  1142. return selector;
  1143. }
  1144. function addCombinator(matcher, combinator, base) {
  1145. var dir2 = combinator.dir, skip = combinator.next, key = skip || dir2, checkNonElements = base && key === "parentNode", doneName = done++;
  1146. return combinator.first ? function(elem, context, xml) {
  1147. while (elem = elem[dir2]) {
  1148. if (elem.nodeType === 1 || checkNonElements) {
  1149. return matcher(elem, context, xml);
  1150. }
  1151. }
  1152. return false;
  1153. } : function(elem, context, xml) {
  1154. var oldCache, uniqueCache, outerCache, newCache = [dirruns, doneName];
  1155. if (xml) {
  1156. while (elem = elem[dir2]) {
  1157. if (elem.nodeType === 1 || checkNonElements) {
  1158. if (matcher(elem, context, xml)) {
  1159. return true;
  1160. }
  1161. }
  1162. }
  1163. } else {
  1164. while (elem = elem[dir2]) {
  1165. if (elem.nodeType === 1 || checkNonElements) {
  1166. outerCache = elem[expando] || (elem[expando] = {});
  1167. uniqueCache = outerCache[elem.uniqueID] || (outerCache[elem.uniqueID] = {});
  1168. if (skip && skip === elem.nodeName.toLowerCase()) {
  1169. elem = elem[dir2] || elem;
  1170. } else if ((oldCache = uniqueCache[key]) && oldCache[0] === dirruns && oldCache[1] === doneName) {
  1171. return newCache[2] = oldCache[2];
  1172. } else {
  1173. uniqueCache[key] = newCache;
  1174. if (newCache[2] = matcher(elem, context, xml)) {
  1175. return true;
  1176. }
  1177. }
  1178. }
  1179. }
  1180. }
  1181. return false;
  1182. };
  1183. }
  1184. function elementMatcher(matchers) {
  1185. return matchers.length > 1 ? function(elem, context, xml) {
  1186. var i2 = matchers.length;
  1187. while (i2--) {
  1188. if (!matchers[i2](elem, context, xml)) {
  1189. return false;
  1190. }
  1191. }
  1192. return true;
  1193. } : matchers[0];
  1194. }
  1195. function multipleContexts(selector, contexts, results) {
  1196. var i2 = 0, len = contexts.length;
  1197. for (; i2 < len; i2++) {
  1198. Sizzle2(selector, contexts[i2], results);
  1199. }
  1200. return results;
  1201. }
  1202. function condense(unmatched, map, filter, context, xml) {
  1203. var elem, newUnmatched = [], i2 = 0, len = unmatched.length, mapped = map != null;
  1204. for (; i2 < len; i2++) {
  1205. if (elem = unmatched[i2]) {
  1206. if (!filter || filter(elem, context, xml)) {
  1207. newUnmatched.push(elem);
  1208. if (mapped) {
  1209. map.push(i2);
  1210. }
  1211. }
  1212. }
  1213. }
  1214. return newUnmatched;
  1215. }
  1216. function setMatcher(preFilter, selector, matcher, postFilter, postFinder, postSelector) {
  1217. if (postFilter && !postFilter[expando]) {
  1218. postFilter = setMatcher(postFilter);
  1219. }
  1220. if (postFinder && !postFinder[expando]) {
  1221. postFinder = setMatcher(postFinder, postSelector);
  1222. }
  1223. return markFunction(function(seed, results, context, xml) {
  1224. var temp, i2, elem, preMap = [], postMap = [], preexisting = results.length, elems = seed || multipleContexts(selector || "*", context.nodeType ? [context] : context, []), matcherIn = preFilter && (seed || !selector) ? condense(elems, preMap, preFilter, context, xml) : elems, matcherOut = matcher ? postFinder || (seed ? preFilter : preexisting || postFilter) ? [] : results : matcherIn;
  1225. if (matcher) {
  1226. matcher(matcherIn, matcherOut, context, xml);
  1227. }
  1228. if (postFilter) {
  1229. temp = condense(matcherOut, postMap);
  1230. postFilter(temp, [], context, xml);
  1231. i2 = temp.length;
  1232. while (i2--) {
  1233. if (elem = temp[i2]) {
  1234. matcherOut[postMap[i2]] = !(matcherIn[postMap[i2]] = elem);
  1235. }
  1236. }
  1237. }
  1238. if (seed) {
  1239. if (postFinder || preFilter) {
  1240. if (postFinder) {
  1241. temp = [];
  1242. i2 = matcherOut.length;
  1243. while (i2--) {
  1244. if (elem = matcherOut[i2]) {
  1245. temp.push(matcherIn[i2] = elem);
  1246. }
  1247. }
  1248. postFinder(null, matcherOut = [], temp, xml);
  1249. }
  1250. i2 = matcherOut.length;
  1251. while (i2--) {
  1252. if ((elem = matcherOut[i2]) && (temp = postFinder ? indexOf2(seed, elem) : preMap[i2]) > -1) {
  1253. seed[temp] = !(results[temp] = elem);
  1254. }
  1255. }
  1256. }
  1257. } else {
  1258. matcherOut = condense(matcherOut === results ? matcherOut.splice(preexisting, matcherOut.length) : matcherOut);
  1259. if (postFinder) {
  1260. postFinder(null, results, matcherOut, xml);
  1261. } else {
  1262. push2.apply(results, matcherOut);
  1263. }
  1264. }
  1265. });
  1266. }
  1267. function matcherFromTokens(tokens) {
  1268. var checkContext, matcher, j, len = tokens.length, leadingRelative = Expr.relative[tokens[0].type], implicitRelative = leadingRelative || Expr.relative[" "], i2 = leadingRelative ? 1 : 0, matchContext = addCombinator(function(elem) {
  1269. return elem === checkContext;
  1270. }, implicitRelative, true), matchAnyContext = addCombinator(function(elem) {
  1271. return indexOf2(checkContext, elem) > -1;
  1272. }, implicitRelative, true), matchers = [function(elem, context, xml) {
  1273. var ret = !leadingRelative && (xml || context !== outermostContext) || ((checkContext = context).nodeType ? matchContext(elem, context, xml) : matchAnyContext(elem, context, xml));
  1274. checkContext = null;
  1275. return ret;
  1276. }];
  1277. for (; i2 < len; i2++) {
  1278. if (matcher = Expr.relative[tokens[i2].type]) {
  1279. matchers = [addCombinator(elementMatcher(matchers), matcher)];
  1280. } else {
  1281. matcher = Expr.filter[tokens[i2].type].apply(null, tokens[i2].matches);
  1282. if (matcher[expando]) {
  1283. j = ++i2;
  1284. for (; j < len; j++) {
  1285. if (Expr.relative[tokens[j].type]) {
  1286. break;
  1287. }
  1288. }
  1289. return setMatcher(i2 > 1 && elementMatcher(matchers), i2 > 1 && toSelector(tokens.slice(0, i2 - 1).concat({ value: tokens[i2 - 2].type === " " ? "*" : "" })).replace(rtrim2, "$1"), matcher, i2 < j && matcherFromTokens(tokens.slice(i2, j)), j < len && matcherFromTokens(tokens = tokens.slice(j)), j < len && toSelector(tokens));
  1290. }
  1291. matchers.push(matcher);
  1292. }
  1293. }
  1294. return elementMatcher(matchers);
  1295. }
  1296. function matcherFromGroupMatchers(elementMatchers, setMatchers) {
  1297. var bySet = setMatchers.length > 0, byElement = elementMatchers.length > 0, superMatcher = function(seed, context, xml, results, outermost) {
  1298. var elem, j, matcher, matchedCount = 0, i2 = "0", unmatched = seed && [], setMatched = [], contextBackup = outermostContext, elems = seed || byElement && Expr.find["TAG"]("*", outermost), dirrunsUnique = dirruns += contextBackup == null ? 1 : Math.random() || 0.1, len = elems.length;
  1299. if (outermost) {
  1300. outermostContext = context == document2 || context || outermost;
  1301. }
  1302. for (; i2 !== len && (elem = elems[i2]) != null; i2++) {
  1303. if (byElement && elem) {
  1304. j = 0;
  1305. if (!context && elem.ownerDocument != document2) {
  1306. setDocument(elem);
  1307. xml = !documentIsHTML;
  1308. }
  1309. while (matcher = elementMatchers[j++]) {
  1310. if (matcher(elem, context || document2, xml)) {
  1311. results.push(elem);
  1312. break;
  1313. }
  1314. }
  1315. if (outermost) {
  1316. dirruns = dirrunsUnique;
  1317. }
  1318. }
  1319. if (bySet) {
  1320. if (elem = !matcher && elem) {
  1321. matchedCount--;
  1322. }
  1323. if (seed) {
  1324. unmatched.push(elem);
  1325. }
  1326. }
  1327. }
  1328. matchedCount += i2;
  1329. if (bySet && i2 !== matchedCount) {
  1330. j = 0;
  1331. while (matcher = setMatchers[j++]) {
  1332. matcher(unmatched, setMatched, context, xml);
  1333. }
  1334. if (seed) {
  1335. if (matchedCount > 0) {
  1336. while (i2--) {
  1337. if (!(unmatched[i2] || setMatched[i2])) {
  1338. setMatched[i2] = pop.call(results);
  1339. }
  1340. }
  1341. }
  1342. setMatched = condense(setMatched);
  1343. }
  1344. push2.apply(results, setMatched);
  1345. if (outermost && !seed && setMatched.length > 0 && matchedCount + setMatchers.length > 1) {
  1346. Sizzle2.uniqueSort(results);
  1347. }
  1348. }
  1349. if (outermost) {
  1350. dirruns = dirrunsUnique;
  1351. outermostContext = contextBackup;
  1352. }
  1353. return unmatched;
  1354. };
  1355. return bySet ? markFunction(superMatcher) : superMatcher;
  1356. }
  1357. compile = Sizzle2.compile = function(selector, match) {
  1358. var i2, setMatchers = [], elementMatchers = [], cached = compilerCache[selector + " "];
  1359. if (!cached) {
  1360. if (!match) {
  1361. match = tokenize(selector);
  1362. }
  1363. i2 = match.length;
  1364. while (i2--) {
  1365. cached = matcherFromTokens(match[i2]);
  1366. if (cached[expando]) {
  1367. setMatchers.push(cached);
  1368. } else {
  1369. elementMatchers.push(cached);
  1370. }
  1371. }
  1372. cached = compilerCache(selector, matcherFromGroupMatchers(elementMatchers, setMatchers));
  1373. cached.selector = selector;
  1374. }
  1375. return cached;
  1376. };
  1377. select = Sizzle2.select = function(selector, context, results, seed) {
  1378. var i2, tokens, token, type, find, compiled = typeof selector === "function" && selector, match = !seed && tokenize(selector = compiled.selector || selector);
  1379. results = results || [];
  1380. if (match.length === 1) {
  1381. tokens = match[0] = match[0].slice(0);
  1382. if (tokens.length > 2 && (token = tokens[0]).type === "ID" && context.nodeType === 9 && documentIsHTML && Expr.relative[tokens[1].type]) {
  1383. context = (Expr.find["ID"](token.matches[0].replace(runescape, funescape), context) || [])[0];
  1384. if (!context) {
  1385. return results;
  1386. } else if (compiled) {
  1387. context = context.parentNode;
  1388. }
  1389. selector = selector.slice(tokens.shift().value.length);
  1390. }
  1391. i2 = matchExpr["needsContext"].test(selector) ? 0 : tokens.length;
  1392. while (i2--) {
  1393. token = tokens[i2];
  1394. if (Expr.relative[type = token.type]) {
  1395. break;
  1396. }
  1397. if (find = Expr.find[type]) {
  1398. if (seed = find(token.matches[0].replace(runescape, funescape), rsibling.test(tokens[0].type) && testContext(context.parentNode) || context)) {
  1399. tokens.splice(i2, 1);
  1400. selector = seed.length && toSelector(tokens);
  1401. if (!selector) {
  1402. push2.apply(results, seed);
  1403. return results;
  1404. }
  1405. break;
  1406. }
  1407. }
  1408. }
  1409. }
  1410. (compiled || compile(selector, match))(seed, context, !documentIsHTML, results, !context || rsibling.test(selector) && testContext(context.parentNode) || context);
  1411. return results;
  1412. };
  1413. support2.sortStable = expando.split("").sort(sortOrder).join("") === expando;
  1414. support2.detectDuplicates = !!hasDuplicate;
  1415. setDocument();
  1416. support2.sortDetached = assert(function(el) {
  1417. return el.compareDocumentPosition(document2.createElement("fieldset")) & 1;
  1418. });
  1419. if (!assert(function(el) {
  1420. el.innerHTML = "<a href='#'></a>";
  1421. return el.firstChild.getAttribute("href") === "#";
  1422. })) {
  1423. addHandle("type|href|height|width", function(elem, name, isXML2) {
  1424. if (!isXML2) {
  1425. return elem.getAttribute(name, name.toLowerCase() === "type" ? 1 : 2);
  1426. }
  1427. });
  1428. }
  1429. if (!support2.attributes || !assert(function(el) {
  1430. el.innerHTML = "<input/>";
  1431. el.firstChild.setAttribute("value", "");
  1432. return el.firstChild.getAttribute("value") === "";
  1433. })) {
  1434. addHandle("value", function(elem, _name, isXML2) {
  1435. if (!isXML2 && elem.nodeName.toLowerCase() === "input") {
  1436. return elem.defaultValue;
  1437. }
  1438. });
  1439. }
  1440. if (!assert(function(el) {
  1441. return el.getAttribute("disabled") == null;
  1442. })) {
  1443. addHandle(booleans, function(elem, name, isXML2) {
  1444. var val;
  1445. if (!isXML2) {
  1446. return elem[name] === true ? name.toLowerCase() : (val = elem.getAttributeNode(name)) && val.specified ? val.value : null;
  1447. }
  1448. });
  1449. }
  1450. return Sizzle2;
  1451. }(window2);
  1452. jQuery.find = Sizzle;
  1453. jQuery.expr = Sizzle.selectors;
  1454. jQuery.expr[":"] = jQuery.expr.pseudos;
  1455. jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;
  1456. jQuery.text = Sizzle.getText;
  1457. jQuery.isXMLDoc = Sizzle.isXML;
  1458. jQuery.contains = Sizzle.contains;
  1459. jQuery.escapeSelector = Sizzle.escape;
  1460. var dir = function(elem, dir2, until) {
  1461. var matched = [], truncate = until !== void 0;
  1462. while ((elem = elem[dir2]) && elem.nodeType !== 9) {
  1463. if (elem.nodeType === 1) {
  1464. if (truncate && jQuery(elem).is(until)) {
  1465. break;
  1466. }
  1467. matched.push(elem);
  1468. }
  1469. }
  1470. return matched;
  1471. };
  1472. var siblings = function(n, elem) {
  1473. var matched = [];
  1474. for (; n; n = n.nextSibling) {
  1475. if (n.nodeType === 1 && n !== elem) {
  1476. matched.push(n);
  1477. }
  1478. }
  1479. return matched;
  1480. };
  1481. var rneedsContext = jQuery.expr.match.needsContext;
  1482. function nodeName(elem, name) {
  1483. return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
  1484. }
  1485. var rsingleTag = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;
  1486. function winnow(elements, qualifier, not) {
  1487. if (isFunction(qualifier)) {
  1488. return jQuery.grep(elements, function(elem, i) {
  1489. return !!qualifier.call(elem, i, elem) !== not;
  1490. });
  1491. }
  1492. if (qualifier.nodeType) {
  1493. return jQuery.grep(elements, function(elem) {
  1494. return elem === qualifier !== not;
  1495. });
  1496. }
  1497. if (typeof qualifier !== "string") {
  1498. return jQuery.grep(elements, function(elem) {
  1499. return indexOf.call(qualifier, elem) > -1 !== not;
  1500. });
  1501. }
  1502. return jQuery.filter(qualifier, elements, not);
  1503. }
  1504. jQuery.filter = function(expr, elems, not) {
  1505. var elem = elems[0];
  1506. if (not) {
  1507. expr = ":not(" + expr + ")";
  1508. }
  1509. if (elems.length === 1 && elem.nodeType === 1) {
  1510. return jQuery.find.matchesSelector(elem, expr) ? [elem] : [];
  1511. }
  1512. return jQuery.find.matches(expr, jQuery.grep(elems, function(elem2) {
  1513. return elem2.nodeType === 1;
  1514. }));
  1515. };
  1516. jQuery.fn.extend({
  1517. find: function(selector) {
  1518. var i, ret, len = this.length, self = this;
  1519. if (typeof selector !== "string") {
  1520. return this.pushStack(jQuery(selector).filter(function() {
  1521. for (i = 0; i < len; i++) {
  1522. if (jQuery.contains(self[i], this)) {
  1523. return true;
  1524. }
  1525. }
  1526. }));
  1527. }
  1528. ret = this.pushStack([]);
  1529. for (i = 0; i < len; i++) {
  1530. jQuery.find(selector, self[i], ret);
  1531. }
  1532. return len > 1 ? jQuery.uniqueSort(ret) : ret;
  1533. },
  1534. filter: function(selector) {
  1535. return this.pushStack(winnow(this, selector || [], false));
  1536. },
  1537. not: function(selector) {
  1538. return this.pushStack(winnow(this, selector || [], true));
  1539. },
  1540. is: function(selector) {
  1541. return !!winnow(this, typeof selector === "string" && rneedsContext.test(selector) ? jQuery(selector) : selector || [], false).length;
  1542. }
  1543. });
  1544. var rootjQuery, rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/, init = jQuery.fn.init = function(selector, context, root) {
  1545. var match, elem;
  1546. if (!selector) {
  1547. return this;
  1548. }
  1549. root = root || rootjQuery;
  1550. if (typeof selector === "string") {
  1551. if (selector[0] === "<" && selector[selector.length - 1] === ">" && selector.length >= 3) {
  1552. match = [null, selector, null];
  1553. } else {
  1554. match = rquickExpr.exec(selector);
  1555. }
  1556. if (match && (match[1] || !context)) {
  1557. if (match[1]) {
  1558. context = context instanceof jQuery ? context[0] : context;
  1559. jQuery.merge(this, jQuery.parseHTML(match[1], context && context.nodeType ? context.ownerDocument || context : document, true));
  1560. if (rsingleTag.test(match[1]) && jQuery.isPlainObject(context)) {
  1561. for (match in context) {
  1562. if (isFunction(this[match])) {
  1563. this[match](context[match]);
  1564. } else {
  1565. this.attr(match, context[match]);
  1566. }
  1567. }
  1568. }
  1569. return this;
  1570. } else {
  1571. elem = document.getElementById(match[2]);
  1572. if (elem) {
  1573. this[0] = elem;
  1574. this.length = 1;
  1575. }
  1576. return this;
  1577. }
  1578. } else if (!context || context.jquery) {
  1579. return (context || root).find(selector);
  1580. } else {
  1581. return this.constructor(context).find(selector);
  1582. }
  1583. } else if (selector.nodeType) {
  1584. this[0] = selector;
  1585. this.length = 1;
  1586. return this;
  1587. } else if (isFunction(selector)) {
  1588. return root.ready !== void 0 ? root.ready(selector) : selector(jQuery);
  1589. }
  1590. return jQuery.makeArray(selector, this);
  1591. };
  1592. init.prototype = jQuery.fn;
  1593. rootjQuery = jQuery(document);
  1594. var rparentsprev = /^(?:parents|prev(?:Until|All))/, guaranteedUnique = {
  1595. children: true,
  1596. contents: true,
  1597. next: true,
  1598. prev: true
  1599. };
  1600. jQuery.fn.extend({
  1601. has: function(target) {
  1602. var targets = jQuery(target, this), l = targets.length;
  1603. return this.filter(function() {
  1604. var i = 0;
  1605. for (; i < l; i++) {
  1606. if (jQuery.contains(this, targets[i])) {
  1607. return true;
  1608. }
  1609. }
  1610. });
  1611. },
  1612. closest: function(selectors, context) {
  1613. var cur, i = 0, l = this.length, matched = [], targets = typeof selectors !== "string" && jQuery(selectors);
  1614. if (!rneedsContext.test(selectors)) {
  1615. for (; i < l; i++) {
  1616. for (cur = this[i]; cur && cur !== context; cur = cur.parentNode) {
  1617. if (cur.nodeType < 11 && (targets ? targets.index(cur) > -1 : cur.nodeType === 1 && jQuery.find.matchesSelector(cur, selectors))) {
  1618. matched.push(cur);
  1619. break;
  1620. }
  1621. }
  1622. }
  1623. }
  1624. return this.pushStack(matched.length > 1 ? jQuery.uniqueSort(matched) : matched);
  1625. },
  1626. index: function(elem) {
  1627. if (!elem) {
  1628. return this[0] && this[0].parentNode ? this.first().prevAll().length : -1;
  1629. }
  1630. if (typeof elem === "string") {
  1631. return indexOf.call(jQuery(elem), this[0]);
  1632. }
  1633. return indexOf.call(this, elem.jquery ? elem[0] : elem);
  1634. },
  1635. add: function(selector, context) {
  1636. return this.pushStack(jQuery.uniqueSort(jQuery.merge(this.get(), jQuery(selector, context))));
  1637. },
  1638. addBack: function(selector) {
  1639. return this.add(selector == null ? this.prevObject : this.prevObject.filter(selector));
  1640. }
  1641. });
  1642. function sibling(cur, dir2) {
  1643. while ((cur = cur[dir2]) && cur.nodeType !== 1) {
  1644. }
  1645. return cur;
  1646. }
  1647. jQuery.each({
  1648. parent: function(elem) {
  1649. var parent = elem.parentNode;
  1650. return parent && parent.nodeType !== 11 ? parent : null;
  1651. },
  1652. parents: function(elem) {
  1653. return dir(elem, "parentNode");
  1654. },
  1655. parentsUntil: function(elem, _i, until) {
  1656. return dir(elem, "parentNode", until);
  1657. },
  1658. next: function(elem) {
  1659. return sibling(elem, "nextSibling");
  1660. },
  1661. prev: function(elem) {
  1662. return sibling(elem, "previousSibling");
  1663. },
  1664. nextAll: function(elem) {
  1665. return dir(elem, "nextSibling");
  1666. },
  1667. prevAll: function(elem) {
  1668. return dir(elem, "previousSibling");
  1669. },
  1670. nextUntil: function(elem, _i, until) {
  1671. return dir(elem, "nextSibling", until);
  1672. },
  1673. prevUntil: function(elem, _i, until) {
  1674. return dir(elem, "previousSibling", until);
  1675. },
  1676. siblings: function(elem) {
  1677. return siblings((elem.parentNode || {}).firstChild, elem);
  1678. },
  1679. children: function(elem) {
  1680. return siblings(elem.firstChild);
  1681. },
  1682. contents: function(elem) {
  1683. if (elem.contentDocument != null && getProto(elem.contentDocument)) {
  1684. return elem.contentDocument;
  1685. }
  1686. if (nodeName(elem, "template")) {
  1687. elem = elem.content || elem;
  1688. }
  1689. return jQuery.merge([], elem.childNodes);
  1690. }
  1691. }, function(name, fn) {
  1692. jQuery.fn[name] = function(until, selector) {
  1693. var matched = jQuery.map(this, fn, until);
  1694. if (name.slice(-5) !== "Until") {
  1695. selector = until;
  1696. }
  1697. if (selector && typeof selector === "string") {
  1698. matched = jQuery.filter(selector, matched);
  1699. }
  1700. if (this.length > 1) {
  1701. if (!guaranteedUnique[name]) {
  1702. jQuery.uniqueSort(matched);
  1703. }
  1704. if (rparentsprev.test(name)) {
  1705. matched.reverse();
  1706. }
  1707. }
  1708. return this.pushStack(matched);
  1709. };
  1710. });
  1711. var rnothtmlwhite = /[^\x20\t\r\n\f]+/g;
  1712. function createOptions(options) {
  1713. var object = {};
  1714. jQuery.each(options.match(rnothtmlwhite) || [], function(_, flag) {
  1715. object[flag] = true;
  1716. });
  1717. return object;
  1718. }
  1719. jQuery.Callbacks = function(options) {
  1720. options = typeof options === "string" ? createOptions(options) : jQuery.extend({}, options);
  1721. var firing, memory, fired, locked, list = [], queue = [], firingIndex = -1, fire = function() {
  1722. locked = locked || options.once;
  1723. fired = firing = true;
  1724. for (; queue.length; firingIndex = -1) {
  1725. memory = queue.shift();
  1726. while (++firingIndex < list.length) {
  1727. if (list[firingIndex].apply(memory[0], memory[1]) === false && options.stopOnFalse) {
  1728. firingIndex = list.length;
  1729. memory = false;
  1730. }
  1731. }
  1732. }
  1733. if (!options.memory) {
  1734. memory = false;
  1735. }
  1736. firing = false;
  1737. if (locked) {
  1738. if (memory) {
  1739. list = [];
  1740. } else {
  1741. list = "";
  1742. }
  1743. }
  1744. }, self = {
  1745. add: function() {
  1746. if (list) {
  1747. if (memory && !firing) {
  1748. firingIndex = list.length - 1;
  1749. queue.push(memory);
  1750. }
  1751. (function add(args) {
  1752. jQuery.each(args, function(_, arg) {
  1753. if (isFunction(arg)) {
  1754. if (!options.unique || !self.has(arg)) {
  1755. list.push(arg);
  1756. }
  1757. } else if (arg && arg.length && toType(arg) !== "string") {
  1758. add(arg);
  1759. }
  1760. });
  1761. })(arguments);
  1762. if (memory && !firing) {
  1763. fire();
  1764. }
  1765. }
  1766. return this;
  1767. },
  1768. remove: function() {
  1769. jQuery.each(arguments, function(_, arg) {
  1770. var index;
  1771. while ((index = jQuery.inArray(arg, list, index)) > -1) {
  1772. list.splice(index, 1);
  1773. if (index <= firingIndex) {
  1774. firingIndex--;
  1775. }
  1776. }
  1777. });
  1778. return this;
  1779. },
  1780. has: function(fn) {
  1781. return fn ? jQuery.inArray(fn, list) > -1 : list.length > 0;
  1782. },
  1783. empty: function() {
  1784. if (list) {
  1785. list = [];
  1786. }
  1787. return this;
  1788. },
  1789. disable: function() {
  1790. locked = queue = [];
  1791. list = memory = "";
  1792. return this;
  1793. },
  1794. disabled: function() {
  1795. return !list;
  1796. },
  1797. lock: function() {
  1798. locked = queue = [];
  1799. if (!memory && !firing) {
  1800. list = memory = "";
  1801. }
  1802. return this;
  1803. },
  1804. locked: function() {
  1805. return !!locked;
  1806. },
  1807. fireWith: function(context, args) {
  1808. if (!locked) {
  1809. args = args || [];
  1810. args = [context, args.slice ? args.slice() : args];
  1811. queue.push(args);
  1812. if (!firing) {
  1813. fire();
  1814. }
  1815. }
  1816. return this;
  1817. },
  1818. fire: function() {
  1819. self.fireWith(this, arguments);
  1820. return this;
  1821. },
  1822. fired: function() {
  1823. return !!fired;
  1824. }
  1825. };
  1826. return self;
  1827. };
  1828. function Identity(v) {
  1829. return v;
  1830. }
  1831. function Thrower(ex) {
  1832. throw ex;
  1833. }
  1834. function adoptValue(value, resolve, reject, noValue) {
  1835. var method;
  1836. try {
  1837. if (value && isFunction(method = value.promise)) {
  1838. method.call(value).done(resolve).fail(reject);
  1839. } else if (value && isFunction(method = value.then)) {
  1840. method.call(value, resolve, reject);
  1841. } else {
  1842. resolve.apply(void 0, [value].slice(noValue));
  1843. }
  1844. } catch (value2) {
  1845. reject.apply(void 0, [value2]);
  1846. }
  1847. }
  1848. jQuery.extend({
  1849. Deferred: function(func) {
  1850. var tuples = [
  1851. [
  1852. "notify",
  1853. "progress",
  1854. jQuery.Callbacks("memory"),
  1855. jQuery.Callbacks("memory"),
  1856. 2
  1857. ],
  1858. [
  1859. "resolve",
  1860. "done",
  1861. jQuery.Callbacks("once memory"),
  1862. jQuery.Callbacks("once memory"),
  1863. 0,
  1864. "resolved"
  1865. ],
  1866. [
  1867. "reject",
  1868. "fail",
  1869. jQuery.Callbacks("once memory"),
  1870. jQuery.Callbacks("once memory"),
  1871. 1,
  1872. "rejected"
  1873. ]
  1874. ], state = "pending", promise = {
  1875. state: function() {
  1876. return state;
  1877. },
  1878. always: function() {
  1879. deferred.done(arguments).fail(arguments);
  1880. return this;
  1881. },
  1882. "catch": function(fn) {
  1883. return promise.then(null, fn);
  1884. },
  1885. pipe: function() {
  1886. var fns = arguments;
  1887. return jQuery.Deferred(function(newDefer) {
  1888. jQuery.each(tuples, function(_i, tuple) {
  1889. var fn = isFunction(fns[tuple[4]]) && fns[tuple[4]];
  1890. deferred[tuple[1]](function() {
  1891. var returned = fn && fn.apply(this, arguments);
  1892. if (returned && isFunction(returned.promise)) {
  1893. returned.promise().progress(newDefer.notify).done(newDefer.resolve).fail(newDefer.reject);
  1894. } else {
  1895. newDefer[tuple[0] + "With"](this, fn ? [returned] : arguments);
  1896. }
  1897. });
  1898. });
  1899. fns = null;
  1900. }).promise();
  1901. },
  1902. then: function(onFulfilled, onRejected, onProgress) {
  1903. var maxDepth = 0;
  1904. function resolve(depth, deferred2, handler, special) {
  1905. return function() {
  1906. var that = this, args = arguments, mightThrow = function() {
  1907. var returned, then;
  1908. if (depth < maxDepth) {
  1909. return;
  1910. }
  1911. returned = handler.apply(that, args);
  1912. if (returned === deferred2.promise()) {
  1913. throw new TypeError("Thenable self-resolution");
  1914. }
  1915. then = returned && (typeof returned === "object" || typeof returned === "function") && returned.then;
  1916. if (isFunction(then)) {
  1917. if (special) {
  1918. then.call(returned, resolve(maxDepth, deferred2, Identity, special), resolve(maxDepth, deferred2, Thrower, special));
  1919. } else {
  1920. maxDepth++;
  1921. then.call(returned, resolve(maxDepth, deferred2, Identity, special), resolve(maxDepth, deferred2, Thrower, special), resolve(maxDepth, deferred2, Identity, deferred2.notifyWith));
  1922. }
  1923. } else {
  1924. if (handler !== Identity) {
  1925. that = void 0;
  1926. args = [returned];
  1927. }
  1928. (special || deferred2.resolveWith)(that, args);
  1929. }
  1930. }, process = special ? mightThrow : function() {
  1931. try {
  1932. mightThrow();
  1933. } catch (e) {
  1934. if (jQuery.Deferred.exceptionHook) {
  1935. jQuery.Deferred.exceptionHook(e, process.stackTrace);
  1936. }
  1937. if (depth + 1 >= maxDepth) {
  1938. if (handler !== Thrower) {
  1939. that = void 0;
  1940. args = [e];
  1941. }
  1942. deferred2.rejectWith(that, args);
  1943. }
  1944. }
  1945. };
  1946. if (depth) {
  1947. process();
  1948. } else {
  1949. if (jQuery.Deferred.getStackHook) {
  1950. process.stackTrace = jQuery.Deferred.getStackHook();
  1951. }
  1952. window2.setTimeout(process);
  1953. }
  1954. };
  1955. }
  1956. return jQuery.Deferred(function(newDefer) {
  1957. tuples[0][3].add(resolve(0, newDefer, isFunction(onProgress) ? onProgress : Identity, newDefer.notifyWith));
  1958. tuples[1][3].add(resolve(0, newDefer, isFunction(onFulfilled) ? onFulfilled : Identity));
  1959. tuples[2][3].add(resolve(0, newDefer, isFunction(onRejected) ? onRejected : Thrower));
  1960. }).promise();
  1961. },
  1962. promise: function(obj) {
  1963. return obj != null ? jQuery.extend(obj, promise) : promise;
  1964. }
  1965. }, deferred = {};
  1966. jQuery.each(tuples, function(i, tuple) {
  1967. var list = tuple[2], stateString = tuple[5];
  1968. promise[tuple[1]] = list.add;
  1969. if (stateString) {
  1970. list.add(function() {
  1971. state = stateString;
  1972. }, tuples[3 - i][2].disable, tuples[3 - i][3].disable, tuples[0][2].lock, tuples[0][3].lock);
  1973. }
  1974. list.add(tuple[3].fire);
  1975. deferred[tuple[0]] = function() {
  1976. deferred[tuple[0] + "With"](this === deferred ? void 0 : this, arguments);
  1977. return this;
  1978. };
  1979. deferred[tuple[0] + "With"] = list.fireWith;
  1980. });
  1981. promise.promise(deferred);
  1982. if (func) {
  1983. func.call(deferred, deferred);
  1984. }
  1985. return deferred;
  1986. },
  1987. when: function(singleValue) {
  1988. var remaining = arguments.length, i = remaining, resolveContexts = Array(i), resolveValues = slice.call(arguments), primary = jQuery.Deferred(), updateFunc = function(i2) {
  1989. return function(value) {
  1990. resolveContexts[i2] = this;
  1991. resolveValues[i2] = arguments.length > 1 ? slice.call(arguments) : value;
  1992. if (!--remaining) {
  1993. primary.resolveWith(resolveContexts, resolveValues);
  1994. }
  1995. };
  1996. };
  1997. if (remaining <= 1) {
  1998. adoptValue(singleValue, primary.done(updateFunc(i)).resolve, primary.reject, !remaining);
  1999. if (primary.state() === "pending" || isFunction(resolveValues[i] && resolveValues[i].then)) {
  2000. return primary.then();
  2001. }
  2002. }
  2003. while (i--) {
  2004. adoptValue(resolveValues[i], updateFunc(i), primary.reject);
  2005. }
  2006. return primary.promise();
  2007. }
  2008. });
  2009. var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
  2010. jQuery.Deferred.exceptionHook = function(error, stack) {
  2011. if (window2.console && window2.console.warn && error && rerrorNames.test(error.name)) {
  2012. window2.console.warn("jQuery.Deferred exception: " + error.message, error.stack, stack);
  2013. }
  2014. };
  2015. jQuery.readyException = function(error) {
  2016. window2.setTimeout(function() {
  2017. throw error;
  2018. });
  2019. };
  2020. var readyList = jQuery.Deferred();
  2021. jQuery.fn.ready = function(fn) {
  2022. readyList.then(fn).catch(function(error) {
  2023. jQuery.readyException(error);
  2024. });
  2025. return this;
  2026. };
  2027. jQuery.extend({
  2028. isReady: false,
  2029. readyWait: 1,
  2030. ready: function(wait) {
  2031. if (wait === true ? --jQuery.readyWait : jQuery.isReady) {
  2032. return;
  2033. }
  2034. jQuery.isReady = true;
  2035. if (wait !== true && --jQuery.readyWait > 0) {
  2036. return;
  2037. }
  2038. readyList.resolveWith(document, [jQuery]);
  2039. }
  2040. });
  2041. jQuery.ready.then = readyList.then;
  2042. function completed() {
  2043. document.removeEventListener("DOMContentLoaded", completed);
  2044. window2.removeEventListener("load", completed);
  2045. jQuery.ready();
  2046. }
  2047. if (document.readyState === "complete" || document.readyState !== "loading" && !document.documentElement.doScroll) {
  2048. window2.setTimeout(jQuery.ready);
  2049. } else {
  2050. document.addEventListener("DOMContentLoaded", completed);
  2051. window2.addEventListener("load", completed);
  2052. }
  2053. var access = function(elems, fn, key, value, chainable, emptyGet, raw) {
  2054. var i = 0, len = elems.length, bulk = key == null;
  2055. if (toType(key) === "object") {
  2056. chainable = true;
  2057. for (i in key) {
  2058. access(elems, fn, i, key[i], true, emptyGet, raw);
  2059. }
  2060. } else if (value !== void 0) {
  2061. chainable = true;
  2062. if (!isFunction(value)) {
  2063. raw = true;
  2064. }
  2065. if (bulk) {
  2066. if (raw) {
  2067. fn.call(elems, value);
  2068. fn = null;
  2069. } else {
  2070. bulk = fn;
  2071. fn = function(elem, _key, value2) {
  2072. return bulk.call(jQuery(elem), value2);
  2073. };
  2074. }
  2075. }
  2076. if (fn) {
  2077. for (; i < len; i++) {
  2078. fn(elems[i], key, raw ? value : value.call(elems[i], i, fn(elems[i], key)));
  2079. }
  2080. }
  2081. }
  2082. if (chainable) {
  2083. return elems;
  2084. }
  2085. if (bulk) {
  2086. return fn.call(elems);
  2087. }
  2088. return len ? fn(elems[0], key) : emptyGet;
  2089. };
  2090. var rmsPrefix = /^-ms-/, rdashAlpha = /-([a-z])/g;
  2091. function fcamelCase(_all, letter) {
  2092. return letter.toUpperCase();
  2093. }
  2094. function camelCase(string) {
  2095. return string.replace(rmsPrefix, "ms-").replace(rdashAlpha, fcamelCase);
  2096. }
  2097. var acceptData = function(owner) {
  2098. return owner.nodeType === 1 || owner.nodeType === 9 || !+owner.nodeType;
  2099. };
  2100. function Data() {
  2101. this.expando = jQuery.expando + Data.uid++;
  2102. }
  2103. Data.uid = 1;
  2104. Data.prototype = {
  2105. cache: function(owner) {
  2106. var value = owner[this.expando];
  2107. if (!value) {
  2108. value = {};
  2109. if (acceptData(owner)) {
  2110. if (owner.nodeType) {
  2111. owner[this.expando] = value;
  2112. } else {
  2113. Object.defineProperty(owner, this.expando, {
  2114. value,
  2115. configurable: true
  2116. });
  2117. }
  2118. }
  2119. }
  2120. return value;
  2121. },
  2122. set: function(owner, data, value) {
  2123. var prop, cache = this.cache(owner);
  2124. if (typeof data === "string") {
  2125. cache[camelCase(data)] = value;
  2126. } else {
  2127. for (prop in data) {
  2128. cache[camelCase(prop)] = data[prop];
  2129. }
  2130. }
  2131. return cache;
  2132. },
  2133. get: function(owner, key) {
  2134. return key === void 0 ? this.cache(owner) : owner[this.expando] && owner[this.expando][camelCase(key)];
  2135. },
  2136. access: function(owner, key, value) {
  2137. if (key === void 0 || key && typeof key === "string" && value === void 0) {
  2138. return this.get(owner, key);
  2139. }
  2140. this.set(owner, key, value);
  2141. return value !== void 0 ? value : key;
  2142. },
  2143. remove: function(owner, key) {
  2144. var i, cache = owner[this.expando];
  2145. if (cache === void 0) {
  2146. return;
  2147. }
  2148. if (key !== void 0) {
  2149. if (Array.isArray(key)) {
  2150. key = key.map(camelCase);
  2151. } else {
  2152. key = camelCase(key);
  2153. key = key in cache ? [key] : key.match(rnothtmlwhite) || [];
  2154. }
  2155. i = key.length;
  2156. while (i--) {
  2157. delete cache[key[i]];
  2158. }
  2159. }
  2160. if (key === void 0 || jQuery.isEmptyObject(cache)) {
  2161. if (owner.nodeType) {
  2162. owner[this.expando] = void 0;
  2163. } else {
  2164. delete owner[this.expando];
  2165. }
  2166. }
  2167. },
  2168. hasData: function(owner) {
  2169. var cache = owner[this.expando];
  2170. return cache !== void 0 && !jQuery.isEmptyObject(cache);
  2171. }
  2172. };
  2173. var dataPriv = new Data();
  2174. var dataUser = new Data();
  2175. var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, rmultiDash = /[A-Z]/g;
  2176. function getData(data) {
  2177. if (data === "true") {
  2178. return true;
  2179. }
  2180. if (data === "false") {
  2181. return false;
  2182. }
  2183. if (data === "null") {
  2184. return null;
  2185. }
  2186. if (data === +data + "") {
  2187. return +data;
  2188. }
  2189. if (rbrace.test(data)) {
  2190. return JSON.parse(data);
  2191. }
  2192. return data;
  2193. }
  2194. function dataAttr(elem, key, data) {
  2195. var name;
  2196. if (data === void 0 && elem.nodeType === 1) {
  2197. name = "data-" + key.replace(rmultiDash, "-$&").toLowerCase();
  2198. data = elem.getAttribute(name);
  2199. if (typeof data === "string") {
  2200. try {
  2201. data = getData(data);
  2202. } catch (e) {
  2203. }
  2204. dataUser.set(elem, key, data);
  2205. } else {
  2206. data = void 0;
  2207. }
  2208. }
  2209. return data;
  2210. }
  2211. jQuery.extend({
  2212. hasData: function(elem) {
  2213. return dataUser.hasData(elem) || dataPriv.hasData(elem);
  2214. },
  2215. data: function(elem, name, data) {
  2216. return dataUser.access(elem, name, data);
  2217. },
  2218. removeData: function(elem, name) {
  2219. dataUser.remove(elem, name);
  2220. },
  2221. _data: function(elem, name, data) {
  2222. return dataPriv.access(elem, name, data);
  2223. },
  2224. _removeData: function(elem, name) {
  2225. dataPriv.remove(elem, name);
  2226. }
  2227. });
  2228. jQuery.fn.extend({
  2229. data: function(key, value) {
  2230. var i, name, data, elem = this[0], attrs = elem && elem.attributes;
  2231. if (key === void 0) {
  2232. if (this.length) {
  2233. data = dataUser.get(elem);
  2234. if (elem.nodeType === 1 && !dataPriv.get(elem, "hasDataAttrs")) {
  2235. i = attrs.length;
  2236. while (i--) {
  2237. if (attrs[i]) {
  2238. name = attrs[i].name;
  2239. if (name.indexOf("data-") === 0) {
  2240. name = camelCase(name.slice(5));
  2241. dataAttr(elem, name, data[name]);
  2242. }
  2243. }
  2244. }
  2245. dataPriv.set(elem, "hasDataAttrs", true);
  2246. }
  2247. }
  2248. return data;
  2249. }
  2250. if (typeof key === "object") {
  2251. return this.each(function() {
  2252. dataUser.set(this, key);
  2253. });
  2254. }
  2255. return access(this, function(value2) {
  2256. var data2;
  2257. if (elem && value2 === void 0) {
  2258. data2 = dataUser.get(elem, key);
  2259. if (data2 !== void 0) {
  2260. return data2;
  2261. }
  2262. data2 = dataAttr(elem, key);
  2263. if (data2 !== void 0) {
  2264. return data2;
  2265. }
  2266. return;
  2267. }
  2268. this.each(function() {
  2269. dataUser.set(this, key, value2);
  2270. });
  2271. }, null, value, arguments.length > 1, null, true);
  2272. },
  2273. removeData: function(key) {
  2274. return this.each(function() {
  2275. dataUser.remove(this, key);
  2276. });
  2277. }
  2278. });
  2279. jQuery.extend({
  2280. queue: function(elem, type, data) {
  2281. var queue;
  2282. if (elem) {
  2283. type = (type || "fx") + "queue";
  2284. queue = dataPriv.get(elem, type);
  2285. if (data) {
  2286. if (!queue || Array.isArray(data)) {
  2287. queue = dataPriv.access(elem, type, jQuery.makeArray(data));
  2288. } else {
  2289. queue.push(data);
  2290. }
  2291. }
  2292. return queue || [];
  2293. }
  2294. },
  2295. dequeue: function(elem, type) {
  2296. type = type || "fx";
  2297. var queue = jQuery.queue(elem, type), startLength = queue.length, fn = queue.shift(), hooks = jQuery._queueHooks(elem, type), next = function() {
  2298. jQuery.dequeue(elem, type);
  2299. };
  2300. if (fn === "inprogress") {
  2301. fn = queue.shift();
  2302. startLength--;
  2303. }
  2304. if (fn) {
  2305. if (type === "fx") {
  2306. queue.unshift("inprogress");
  2307. }
  2308. delete hooks.stop;
  2309. fn.call(elem, next, hooks);
  2310. }
  2311. if (!startLength && hooks) {
  2312. hooks.empty.fire();
  2313. }
  2314. },
  2315. _queueHooks: function(elem, type) {
  2316. var key = type + "queueHooks";
  2317. return dataPriv.get(elem, key) || dataPriv.access(elem, key, {
  2318. empty: jQuery.Callbacks("once memory").add(function() {
  2319. dataPriv.remove(elem, [type + "queue", key]);
  2320. })
  2321. });
  2322. }
  2323. });
  2324. jQuery.fn.extend({
  2325. queue: function(type, data) {
  2326. var setter = 2;
  2327. if (typeof type !== "string") {
  2328. data = type;
  2329. type = "fx";
  2330. setter--;
  2331. }
  2332. if (arguments.length < setter) {
  2333. return jQuery.queue(this[0], type);
  2334. }
  2335. return data === void 0 ? this : this.each(function() {
  2336. var queue = jQuery.queue(this, type, data);
  2337. jQuery._queueHooks(this, type);
  2338. if (type === "fx" && queue[0] !== "inprogress") {
  2339. jQuery.dequeue(this, type);
  2340. }
  2341. });
  2342. },
  2343. dequeue: function(type) {
  2344. return this.each(function() {
  2345. jQuery.dequeue(this, type);
  2346. });
  2347. },
  2348. clearQueue: function(type) {
  2349. return this.queue(type || "fx", []);
  2350. },
  2351. promise: function(type, obj) {
  2352. var tmp, count = 1, defer = jQuery.Deferred(), elements = this, i = this.length, resolve = function() {
  2353. if (!--count) {
  2354. defer.resolveWith(elements, [elements]);
  2355. }
  2356. };
  2357. if (typeof type !== "string") {
  2358. obj = type;
  2359. type = void 0;
  2360. }
  2361. type = type || "fx";
  2362. while (i--) {
  2363. tmp = dataPriv.get(elements[i], type + "queueHooks");
  2364. if (tmp && tmp.empty) {
  2365. count++;
  2366. tmp.empty.add(resolve);
  2367. }
  2368. }
  2369. resolve();
  2370. return defer.promise(obj);
  2371. }
  2372. });
  2373. var pnum = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source;
  2374. var rcssNum = new RegExp("^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i");
  2375. var cssExpand = ["Top", "Right", "Bottom", "Left"];
  2376. var documentElement = document.documentElement;
  2377. var isAttached = function(elem) {
  2378. return jQuery.contains(elem.ownerDocument, elem);
  2379. }, composed = { composed: true };
  2380. if (documentElement.getRootNode) {
  2381. isAttached = function(elem) {
  2382. return jQuery.contains(elem.ownerDocument, elem) || elem.getRootNode(composed) === elem.ownerDocument;
  2383. };
  2384. }
  2385. var isHiddenWithinTree = function(elem, el) {
  2386. elem = el || elem;
  2387. return elem.style.display === "none" || elem.style.display === "" && isAttached(elem) && jQuery.css(elem, "display") === "none";
  2388. };
  2389. function adjustCSS(elem, prop, valueParts, tween) {
  2390. var adjusted, scale, maxIterations = 20, currentValue = tween ? function() {
  2391. return tween.cur();
  2392. } : function() {
  2393. return jQuery.css(elem, prop, "");
  2394. }, initial = currentValue(), unit = valueParts && valueParts[3] || (jQuery.cssNumber[prop] ? "" : "px"), initialInUnit = elem.nodeType && (jQuery.cssNumber[prop] || unit !== "px" && +initial) && rcssNum.exec(jQuery.css(elem, prop));
  2395. if (initialInUnit && initialInUnit[3] !== unit) {
  2396. initial = initial / 2;
  2397. unit = unit || initialInUnit[3];
  2398. initialInUnit = +initial || 1;
  2399. while (maxIterations--) {
  2400. jQuery.style(elem, prop, initialInUnit + unit);
  2401. if ((1 - scale) * (1 - (scale = currentValue() / initial || 0.5)) <= 0) {
  2402. maxIterations = 0;
  2403. }
  2404. initialInUnit = initialInUnit / scale;
  2405. }
  2406. initialInUnit = initialInUnit * 2;
  2407. jQuery.style(elem, prop, initialInUnit + unit);
  2408. valueParts = valueParts || [];
  2409. }
  2410. if (valueParts) {
  2411. initialInUnit = +initialInUnit || +initial || 0;
  2412. adjusted = valueParts[1] ? initialInUnit + (valueParts[1] + 1) * valueParts[2] : +valueParts[2];
  2413. if (tween) {
  2414. tween.unit = unit;
  2415. tween.start = initialInUnit;
  2416. tween.end = adjusted;
  2417. }
  2418. }
  2419. return adjusted;
  2420. }
  2421. var defaultDisplayMap = {};
  2422. function getDefaultDisplay(elem) {
  2423. var temp, doc = elem.ownerDocument, nodeName2 = elem.nodeName, display = defaultDisplayMap[nodeName2];
  2424. if (display) {
  2425. return display;
  2426. }
  2427. temp = doc.body.appendChild(doc.createElement(nodeName2));
  2428. display = jQuery.css(temp, "display");
  2429. temp.parentNode.removeChild(temp);
  2430. if (display === "none") {
  2431. display = "block";
  2432. }
  2433. defaultDisplayMap[nodeName2] = display;
  2434. return display;
  2435. }
  2436. function showHide(elements, show) {
  2437. var display, elem, values = [], index = 0, length = elements.length;
  2438. for (; index < length; index++) {
  2439. elem = elements[index];
  2440. if (!elem.style) {
  2441. continue;
  2442. }
  2443. display = elem.style.display;
  2444. if (show) {
  2445. if (display === "none") {
  2446. values[index] = dataPriv.get(elem, "display") || null;
  2447. if (!values[index]) {
  2448. elem.style.display = "";
  2449. }
  2450. }
  2451. if (elem.style.display === "" && isHiddenWithinTree(elem)) {
  2452. values[index] = getDefaultDisplay(elem);
  2453. }
  2454. } else {
  2455. if (display !== "none") {
  2456. values[index] = "none";
  2457. dataPriv.set(elem, "display", display);
  2458. }
  2459. }
  2460. }
  2461. for (index = 0; index < length; index++) {
  2462. if (values[index] != null) {
  2463. elements[index].style.display = values[index];
  2464. }
  2465. }
  2466. return elements;
  2467. }
  2468. jQuery.fn.extend({
  2469. show: function() {
  2470. return showHide(this, true);
  2471. },
  2472. hide: function() {
  2473. return showHide(this);
  2474. },
  2475. toggle: function(state) {
  2476. if (typeof state === "boolean") {
  2477. return state ? this.show() : this.hide();
  2478. }
  2479. return this.each(function() {
  2480. if (isHiddenWithinTree(this)) {
  2481. jQuery(this).show();
  2482. } else {
  2483. jQuery(this).hide();
  2484. }
  2485. });
  2486. }
  2487. });
  2488. var rcheckableType = /^(?:checkbox|radio)$/i;
  2489. var rtagName = /<([a-z][^\/\0>\x20\t\r\n\f]*)/i;
  2490. var rscriptType = /^$|^module$|\/(?:java|ecma)script/i;
  2491. (function() {
  2492. var fragment = document.createDocumentFragment(), div = fragment.appendChild(document.createElement("div")), input = document.createElement("input");
  2493. input.setAttribute("type", "radio");
  2494. input.setAttribute("checked", "checked");
  2495. input.setAttribute("name", "t");
  2496. div.appendChild(input);
  2497. support.checkClone = div.cloneNode(true).cloneNode(true).lastChild.checked;
  2498. div.innerHTML = "<textarea>x</textarea>";
  2499. support.noCloneChecked = !!div.cloneNode(true).lastChild.defaultValue;
  2500. div.innerHTML = "<option></option>";
  2501. support.option = !!div.lastChild;
  2502. })();
  2503. var wrapMap = {
  2504. thead: [1, "<table>", "</table>"],
  2505. col: [2, "<table><colgroup>", "</colgroup></table>"],
  2506. tr: [2, "<table><tbody>", "</tbody></table>"],
  2507. td: [3, "<table><tbody><tr>", "</tr></tbody></table>"],
  2508. _default: [0, "", ""]
  2509. };
  2510. wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
  2511. wrapMap.th = wrapMap.td;
  2512. if (!support.option) {
  2513. wrapMap.optgroup = wrapMap.option = [1, "<select multiple='multiple'>", "</select>"];
  2514. }
  2515. function getAll(context, tag) {
  2516. var ret;
  2517. if (typeof context.getElementsByTagName !== "undefined") {
  2518. ret = context.getElementsByTagName(tag || "*");
  2519. } else if (typeof context.querySelectorAll !== "undefined") {
  2520. ret = context.querySelectorAll(tag || "*");
  2521. } else {
  2522. ret = [];
  2523. }
  2524. if (tag === void 0 || tag && nodeName(context, tag)) {
  2525. return jQuery.merge([context], ret);
  2526. }
  2527. return ret;
  2528. }
  2529. function setGlobalEval(elems, refElements) {
  2530. var i = 0, l = elems.length;
  2531. for (; i < l; i++) {
  2532. dataPriv.set(elems[i], "globalEval", !refElements || dataPriv.get(refElements[i], "globalEval"));
  2533. }
  2534. }
  2535. var rhtml = /<|&#?\w+;/;
  2536. function buildFragment(elems, context, scripts, selection, ignored) {
  2537. var elem, tmp, tag, wrap, attached, j, fragment = context.createDocumentFragment(), nodes = [], i = 0, l = elems.length;
  2538. for (; i < l; i++) {
  2539. elem = elems[i];
  2540. if (elem || elem === 0) {
  2541. if (toType(elem) === "object") {
  2542. jQuery.merge(nodes, elem.nodeType ? [elem] : elem);
  2543. } else if (!rhtml.test(elem)) {
  2544. nodes.push(context.createTextNode(elem));
  2545. } else {
  2546. tmp = tmp || fragment.appendChild(context.createElement("div"));
  2547. tag = (rtagName.exec(elem) || ["", ""])[1].toLowerCase();
  2548. wrap = wrapMap[tag] || wrapMap._default;
  2549. tmp.innerHTML = wrap[1] + jQuery.htmlPrefilter(elem) + wrap[2];
  2550. j = wrap[0];
  2551. while (j--) {
  2552. tmp = tmp.lastChild;
  2553. }
  2554. jQuery.merge(nodes, tmp.childNodes);
  2555. tmp = fragment.firstChild;
  2556. tmp.textContent = "";
  2557. }
  2558. }
  2559. }
  2560. fragment.textContent = "";
  2561. i = 0;
  2562. while (elem = nodes[i++]) {
  2563. if (selection && jQuery.inArray(elem, selection) > -1) {
  2564. if (ignored) {
  2565. ignored.push(elem);
  2566. }
  2567. continue;
  2568. }
  2569. attached = isAttached(elem);
  2570. tmp = getAll(fragment.appendChild(elem), "script");
  2571. if (attached) {
  2572. setGlobalEval(tmp);
  2573. }
  2574. if (scripts) {
  2575. j = 0;
  2576. while (elem = tmp[j++]) {
  2577. if (rscriptType.test(elem.type || "")) {
  2578. scripts.push(elem);
  2579. }
  2580. }
  2581. }
  2582. }
  2583. return fragment;
  2584. }
  2585. var rtypenamespace = /^([^.]*)(?:\.(.+)|)/;
  2586. function returnTrue() {
  2587. return true;
  2588. }
  2589. function returnFalse() {
  2590. return false;
  2591. }
  2592. function expectSync(elem, type) {
  2593. return elem === safeActiveElement() === (type === "focus");
  2594. }
  2595. function safeActiveElement() {
  2596. try {
  2597. return document.activeElement;
  2598. } catch (err) {
  2599. }
  2600. }
  2601. function on(elem, types, selector, data, fn, one) {
  2602. var origFn, type;
  2603. if (typeof types === "object") {
  2604. if (typeof selector !== "string") {
  2605. data = data || selector;
  2606. selector = void 0;
  2607. }
  2608. for (type in types) {
  2609. on(elem, type, selector, data, types[type], one);
  2610. }
  2611. return elem;
  2612. }
  2613. if (data == null && fn == null) {
  2614. fn = selector;
  2615. data = selector = void 0;
  2616. } else if (fn == null) {
  2617. if (typeof selector === "string") {
  2618. fn = data;
  2619. data = void 0;
  2620. } else {
  2621. fn = data;
  2622. data = selector;
  2623. selector = void 0;
  2624. }
  2625. }
  2626. if (fn === false) {
  2627. fn = returnFalse;
  2628. } else if (!fn) {
  2629. return elem;
  2630. }
  2631. if (one === 1) {
  2632. origFn = fn;
  2633. fn = function(event) {
  2634. jQuery().off(event);
  2635. return origFn.apply(this, arguments);
  2636. };
  2637. fn.guid = origFn.guid || (origFn.guid = jQuery.guid++);
  2638. }
  2639. return elem.each(function() {
  2640. jQuery.event.add(this, types, fn, data, selector);
  2641. });
  2642. }
  2643. jQuery.event = {
  2644. global: {},
  2645. add: function(elem, types, handler, data, selector) {
  2646. var handleObjIn, eventHandle, tmp, events, t, handleObj, special, handlers, type, namespaces, origType, elemData = dataPriv.get(elem);
  2647. if (!acceptData(elem)) {
  2648. return;
  2649. }
  2650. if (handler.handler) {
  2651. handleObjIn = handler;
  2652. handler = handleObjIn.handler;
  2653. selector = handleObjIn.selector;
  2654. }
  2655. if (selector) {
  2656. jQuery.find.matchesSelector(documentElement, selector);
  2657. }
  2658. if (!handler.guid) {
  2659. handler.guid = jQuery.guid++;
  2660. }
  2661. if (!(events = elemData.events)) {
  2662. events = elemData.events = Object.create(null);
  2663. }
  2664. if (!(eventHandle = elemData.handle)) {
  2665. eventHandle = elemData.handle = function(e) {
  2666. return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ? jQuery.event.dispatch.apply(elem, arguments) : void 0;
  2667. };
  2668. }
  2669. types = (types || "").match(rnothtmlwhite) || [""];
  2670. t = types.length;
  2671. while (t--) {
  2672. tmp = rtypenamespace.exec(types[t]) || [];
  2673. type = origType = tmp[1];
  2674. namespaces = (tmp[2] || "").split(".").sort();
  2675. if (!type) {
  2676. continue;
  2677. }
  2678. special = jQuery.event.special[type] || {};
  2679. type = (selector ? special.delegateType : special.bindType) || type;
  2680. special = jQuery.event.special[type] || {};
  2681. handleObj = jQuery.extend({
  2682. type,
  2683. origType,
  2684. data,
  2685. handler,
  2686. guid: handler.guid,
  2687. selector,
  2688. needsContext: selector && jQuery.expr.match.needsContext.test(selector),
  2689. namespace: namespaces.join(".")
  2690. }, handleObjIn);
  2691. if (!(handlers = events[type])) {
  2692. handlers = events[type] = [];
  2693. handlers.delegateCount = 0;
  2694. if (!special.setup || special.setup.call(elem, data, namespaces, eventHandle) === false) {
  2695. if (elem.addEventListener) {
  2696. elem.addEventListener(type, eventHandle);
  2697. }
  2698. }
  2699. }
  2700. if (special.add) {
  2701. special.add.call(elem, handleObj);
  2702. if (!handleObj.handler.guid) {
  2703. handleObj.handler.guid = handler.guid;
  2704. }
  2705. }
  2706. if (selector) {
  2707. handlers.splice(handlers.delegateCount++, 0, handleObj);
  2708. } else {
  2709. handlers.push(handleObj);
  2710. }
  2711. jQuery.event.global[type] = true;
  2712. }
  2713. },
  2714. remove: function(elem, types, handler, selector, mappedTypes) {
  2715. var j, origCount, tmp, events, t, handleObj, special, handlers, type, namespaces, origType, elemData = dataPriv.hasData(elem) && dataPriv.get(elem);
  2716. if (!elemData || !(events = elemData.events)) {
  2717. return;
  2718. }
  2719. types = (types || "").match(rnothtmlwhite) || [""];
  2720. t = types.length;
  2721. while (t--) {
  2722. tmp = rtypenamespace.exec(types[t]) || [];
  2723. type = origType = tmp[1];
  2724. namespaces = (tmp[2] || "").split(".").sort();
  2725. if (!type) {
  2726. for (type in events) {
  2727. jQuery.event.remove(elem, type + types[t], handler, selector, true);
  2728. }
  2729. continue;
  2730. }
  2731. special = jQuery.event.special[type] || {};
  2732. type = (selector ? special.delegateType : special.bindType) || type;
  2733. handlers = events[type] || [];
  2734. tmp = tmp[2] && new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)");
  2735. origCount = j = handlers.length;
  2736. while (j--) {
  2737. handleObj = handlers[j];
  2738. if ((mappedTypes || origType === handleObj.origType) && (!handler || handler.guid === handleObj.guid) && (!tmp || tmp.test(handleObj.namespace)) && (!selector || selector === handleObj.selector || selector === "**" && handleObj.selector)) {
  2739. handlers.splice(j, 1);
  2740. if (handleObj.selector) {
  2741. handlers.delegateCount--;
  2742. }
  2743. if (special.remove) {
  2744. special.remove.call(elem, handleObj);
  2745. }
  2746. }
  2747. }
  2748. if (origCount && !handlers.length) {
  2749. if (!special.teardown || special.teardown.call(elem, namespaces, elemData.handle) === false) {
  2750. jQuery.removeEvent(elem, type, elemData.handle);
  2751. }
  2752. delete events[type];
  2753. }
  2754. }
  2755. if (jQuery.isEmptyObject(events)) {
  2756. dataPriv.remove(elem, "handle events");
  2757. }
  2758. },
  2759. dispatch: function(nativeEvent) {
  2760. var i, j, ret, matched, handleObj, handlerQueue, args = new Array(arguments.length), event = jQuery.event.fix(nativeEvent), handlers = (dataPriv.get(this, "events") || Object.create(null))[event.type] || [], special = jQuery.event.special[event.type] || {};
  2761. args[0] = event;
  2762. for (i = 1; i < arguments.length; i++) {
  2763. args[i] = arguments[i];
  2764. }
  2765. event.delegateTarget = this;
  2766. if (special.preDispatch && special.preDispatch.call(this, event) === false) {
  2767. return;
  2768. }
  2769. handlerQueue = jQuery.event.handlers.call(this, event, handlers);
  2770. i = 0;
  2771. while ((matched = handlerQueue[i++]) && !event.isPropagationStopped()) {
  2772. event.currentTarget = matched.elem;
  2773. j = 0;
  2774. while ((handleObj = matched.handlers[j++]) && !event.isImmediatePropagationStopped()) {
  2775. if (!event.rnamespace || handleObj.namespace === false || event.rnamespace.test(handleObj.namespace)) {
  2776. event.handleObj = handleObj;
  2777. event.data = handleObj.data;
  2778. ret = ((jQuery.event.special[handleObj.origType] || {}).handle || handleObj.handler).apply(matched.elem, args);
  2779. if (ret !== void 0) {
  2780. if ((event.result = ret) === false) {
  2781. event.preventDefault();
  2782. event.stopPropagation();
  2783. }
  2784. }
  2785. }
  2786. }
  2787. }
  2788. if (special.postDispatch) {
  2789. special.postDispatch.call(this, event);
  2790. }
  2791. return event.result;
  2792. },
  2793. handlers: function(event, handlers) {
  2794. var i, handleObj, sel, matchedHandlers, matchedSelectors, handlerQueue = [], delegateCount = handlers.delegateCount, cur = event.target;
  2795. if (delegateCount && cur.nodeType && !(event.type === "click" && event.button >= 1)) {
  2796. for (; cur !== this; cur = cur.parentNode || this) {
  2797. if (cur.nodeType === 1 && !(event.type === "click" && cur.disabled === true)) {
  2798. matchedHandlers = [];
  2799. matchedSelectors = {};
  2800. for (i = 0; i < delegateCount; i++) {
  2801. handleObj = handlers[i];
  2802. sel = handleObj.selector + " ";
  2803. if (matchedSelectors[sel] === void 0) {
  2804. matchedSelectors[sel] = handleObj.needsContext ? jQuery(sel, this).index(cur) > -1 : jQuery.find(sel, this, null, [cur]).length;
  2805. }
  2806. if (matchedSelectors[sel]) {
  2807. matchedHandlers.push(handleObj);
  2808. }
  2809. }
  2810. if (matchedHandlers.length) {
  2811. handlerQueue.push({ elem: cur, handlers: matchedHandlers });
  2812. }
  2813. }
  2814. }
  2815. }
  2816. cur = this;
  2817. if (delegateCount < handlers.length) {
  2818. handlerQueue.push({ elem: cur, handlers: handlers.slice(delegateCount) });
  2819. }
  2820. return handlerQueue;
  2821. },
  2822. addProp: function(name, hook) {
  2823. Object.defineProperty(jQuery.Event.prototype, name, {
  2824. enumerable: true,
  2825. configurable: true,
  2826. get: isFunction(hook) ? function() {
  2827. if (this.originalEvent) {
  2828. return hook(this.originalEvent);
  2829. }
  2830. } : function() {
  2831. if (this.originalEvent) {
  2832. return this.originalEvent[name];
  2833. }
  2834. },
  2835. set: function(value) {
  2836. Object.defineProperty(this, name, {
  2837. enumerable: true,
  2838. configurable: true,
  2839. writable: true,
  2840. value
  2841. });
  2842. }
  2843. });
  2844. },
  2845. fix: function(originalEvent) {
  2846. return originalEvent[jQuery.expando] ? originalEvent : new jQuery.Event(originalEvent);
  2847. },
  2848. special: {
  2849. load: {
  2850. noBubble: true
  2851. },
  2852. click: {
  2853. setup: function(data) {
  2854. var el = this || data;
  2855. if (rcheckableType.test(el.type) && el.click && nodeName(el, "input")) {
  2856. leverageNative(el, "click", returnTrue);
  2857. }
  2858. return false;
  2859. },
  2860. trigger: function(data) {
  2861. var el = this || data;
  2862. if (rcheckableType.test(el.type) && el.click && nodeName(el, "input")) {
  2863. leverageNative(el, "click");
  2864. }
  2865. return true;
  2866. },
  2867. _default: function(event) {
  2868. var target = event.target;
  2869. return rcheckableType.test(target.type) && target.click && nodeName(target, "input") && dataPriv.get(target, "click") || nodeName(target, "a");
  2870. }
  2871. },
  2872. beforeunload: {
  2873. postDispatch: function(event) {
  2874. if (event.result !== void 0 && event.originalEvent) {
  2875. event.originalEvent.returnValue = event.result;
  2876. }
  2877. }
  2878. }
  2879. }
  2880. };
  2881. function leverageNative(el, type, expectSync2) {
  2882. if (!expectSync2) {
  2883. if (dataPriv.get(el, type) === void 0) {
  2884. jQuery.event.add(el, type, returnTrue);
  2885. }
  2886. return;
  2887. }
  2888. dataPriv.set(el, type, false);
  2889. jQuery.event.add(el, type, {
  2890. namespace: false,
  2891. handler: function(event) {
  2892. var notAsync, result, saved = dataPriv.get(this, type);
  2893. if (event.isTrigger & 1 && this[type]) {
  2894. if (!saved.length) {
  2895. saved = slice.call(arguments);
  2896. dataPriv.set(this, type, saved);
  2897. notAsync = expectSync2(this, type);
  2898. this[type]();
  2899. result = dataPriv.get(this, type);
  2900. if (saved !== result || notAsync) {
  2901. dataPriv.set(this, type, false);
  2902. } else {
  2903. result = {};
  2904. }
  2905. if (saved !== result) {
  2906. event.stopImmediatePropagation();
  2907. event.preventDefault();
  2908. return result && result.value;
  2909. }
  2910. } else if ((jQuery.event.special[type] || {}).delegateType) {
  2911. event.stopPropagation();
  2912. }
  2913. } else if (saved.length) {
  2914. dataPriv.set(this, type, {
  2915. value: jQuery.event.trigger(jQuery.extend(saved[0], jQuery.Event.prototype), saved.slice(1), this)
  2916. });
  2917. event.stopImmediatePropagation();
  2918. }
  2919. }
  2920. });
  2921. }
  2922. jQuery.removeEvent = function(elem, type, handle) {
  2923. if (elem.removeEventListener) {
  2924. elem.removeEventListener(type, handle);
  2925. }
  2926. };
  2927. jQuery.Event = function(src, props) {
  2928. if (!(this instanceof jQuery.Event)) {
  2929. return new jQuery.Event(src, props);
  2930. }
  2931. if (src && src.type) {
  2932. this.originalEvent = src;
  2933. this.type = src.type;
  2934. this.isDefaultPrevented = src.defaultPrevented || src.defaultPrevented === void 0 && src.returnValue === false ? returnTrue : returnFalse;
  2935. this.target = src.target && src.target.nodeType === 3 ? src.target.parentNode : src.target;
  2936. this.currentTarget = src.currentTarget;
  2937. this.relatedTarget = src.relatedTarget;
  2938. } else {
  2939. this.type = src;
  2940. }
  2941. if (props) {
  2942. jQuery.extend(this, props);
  2943. }
  2944. this.timeStamp = src && src.timeStamp || Date.now();
  2945. this[jQuery.expando] = true;
  2946. };
  2947. jQuery.Event.prototype = {
  2948. constructor: jQuery.Event,
  2949. isDefaultPrevented: returnFalse,
  2950. isPropagationStopped: returnFalse,
  2951. isImmediatePropagationStopped: returnFalse,
  2952. isSimulated: false,
  2953. preventDefault: function() {
  2954. var e = this.originalEvent;
  2955. this.isDefaultPrevented = returnTrue;
  2956. if (e && !this.isSimulated) {
  2957. e.preventDefault();
  2958. }
  2959. },
  2960. stopPropagation: function() {
  2961. var e = this.originalEvent;
  2962. this.isPropagationStopped = returnTrue;
  2963. if (e && !this.isSimulated) {
  2964. e.stopPropagation();
  2965. }
  2966. },
  2967. stopImmediatePropagation: function() {
  2968. var e = this.originalEvent;
  2969. this.isImmediatePropagationStopped = returnTrue;
  2970. if (e && !this.isSimulated) {
  2971. e.stopImmediatePropagation();
  2972. }
  2973. this.stopPropagation();
  2974. }
  2975. };
  2976. jQuery.each({
  2977. altKey: true,
  2978. bubbles: true,
  2979. cancelable: true,
  2980. changedTouches: true,
  2981. ctrlKey: true,
  2982. detail: true,
  2983. eventPhase: true,
  2984. metaKey: true,
  2985. pageX: true,
  2986. pageY: true,
  2987. shiftKey: true,
  2988. view: true,
  2989. "char": true,
  2990. code: true,
  2991. charCode: true,
  2992. key: true,
  2993. keyCode: true,
  2994. button: true,
  2995. buttons: true,
  2996. clientX: true,
  2997. clientY: true,
  2998. offsetX: true,
  2999. offsetY: true,
  3000. pointerId: true,
  3001. pointerType: true,
  3002. screenX: true,
  3003. screenY: true,
  3004. targetTouches: true,
  3005. toElement: true,
  3006. touches: true,
  3007. which: true
  3008. }, jQuery.event.addProp);
  3009. jQuery.each({ focus: "focusin", blur: "focusout" }, function(type, delegateType) {
  3010. jQuery.event.special[type] = {
  3011. setup: function() {
  3012. leverageNative(this, type, expectSync);
  3013. return false;
  3014. },
  3015. trigger: function() {
  3016. leverageNative(this, type);
  3017. return true;
  3018. },
  3019. _default: function() {
  3020. return true;
  3021. },
  3022. delegateType
  3023. };
  3024. });
  3025. jQuery.each({
  3026. mouseenter: "mouseover",
  3027. mouseleave: "mouseout",
  3028. pointerenter: "pointerover",
  3029. pointerleave: "pointerout"
  3030. }, function(orig, fix) {
  3031. jQuery.event.special[orig] = {
  3032. delegateType: fix,
  3033. bindType: fix,
  3034. handle: function(event) {
  3035. var ret, target = this, related = event.relatedTarget, handleObj = event.handleObj;
  3036. if (!related || related !== target && !jQuery.contains(target, related)) {
  3037. event.type = handleObj.origType;
  3038. ret = handleObj.handler.apply(this, arguments);
  3039. event.type = fix;
  3040. }
  3041. return ret;
  3042. }
  3043. };
  3044. });
  3045. jQuery.fn.extend({
  3046. on: function(types, selector, data, fn) {
  3047. return on(this, types, selector, data, fn);
  3048. },
  3049. one: function(types, selector, data, fn) {
  3050. return on(this, types, selector, data, fn, 1);
  3051. },
  3052. off: function(types, selector, fn) {
  3053. var handleObj, type;
  3054. if (types && types.preventDefault && types.handleObj) {
  3055. handleObj = types.handleObj;
  3056. jQuery(types.delegateTarget).off(handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType, handleObj.selector, handleObj.handler);
  3057. return this;
  3058. }
  3059. if (typeof types === "object") {
  3060. for (type in types) {
  3061. this.off(type, selector, types[type]);
  3062. }
  3063. return this;
  3064. }
  3065. if (selector === false || typeof selector === "function") {
  3066. fn = selector;
  3067. selector = void 0;
  3068. }
  3069. if (fn === false) {
  3070. fn = returnFalse;
  3071. }
  3072. return this.each(function() {
  3073. jQuery.event.remove(this, types, fn, selector);
  3074. });
  3075. }
  3076. });
  3077. var rnoInnerhtml = /<script|<style|<link/i, rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i, rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
  3078. function manipulationTarget(elem, content) {
  3079. if (nodeName(elem, "table") && nodeName(content.nodeType !== 11 ? content : content.firstChild, "tr")) {
  3080. return jQuery(elem).children("tbody")[0] || elem;
  3081. }
  3082. return elem;
  3083. }
  3084. function disableScript(elem) {
  3085. elem.type = (elem.getAttribute("type") !== null) + "/" + elem.type;
  3086. return elem;
  3087. }
  3088. function restoreScript(elem) {
  3089. if ((elem.type || "").slice(0, 5) === "true/") {
  3090. elem.type = elem.type.slice(5);
  3091. } else {
  3092. elem.removeAttribute("type");
  3093. }
  3094. return elem;
  3095. }
  3096. function cloneCopyEvent(src, dest) {
  3097. var i, l, type, pdataOld, udataOld, udataCur, events;
  3098. if (dest.nodeType !== 1) {
  3099. return;
  3100. }
  3101. if (dataPriv.hasData(src)) {
  3102. pdataOld = dataPriv.get(src);
  3103. events = pdataOld.events;
  3104. if (events) {
  3105. dataPriv.remove(dest, "handle events");
  3106. for (type in events) {
  3107. for (i = 0, l = events[type].length; i < l; i++) {
  3108. jQuery.event.add(dest, type, events[type][i]);
  3109. }
  3110. }
  3111. }
  3112. }
  3113. if (dataUser.hasData(src)) {
  3114. udataOld = dataUser.access(src);
  3115. udataCur = jQuery.extend({}, udataOld);
  3116. dataUser.set(dest, udataCur);
  3117. }
  3118. }
  3119. function fixInput(src, dest) {
  3120. var nodeName2 = dest.nodeName.toLowerCase();
  3121. if (nodeName2 === "input" && rcheckableType.test(src.type)) {
  3122. dest.checked = src.checked;
  3123. } else if (nodeName2 === "input" || nodeName2 === "textarea") {
  3124. dest.defaultValue = src.defaultValue;
  3125. }
  3126. }
  3127. function domManip(collection, args, callback, ignored) {
  3128. args = flat(args);
  3129. var fragment, first, scripts, hasScripts, node, doc, i = 0, l = collection.length, iNoClone = l - 1, value = args[0], valueIsFunction = isFunction(value);
  3130. if (valueIsFunction || l > 1 && typeof value === "string" && !support.checkClone && rchecked.test(value)) {
  3131. return collection.each(function(index) {
  3132. var self = collection.eq(index);
  3133. if (valueIsFunction) {
  3134. args[0] = value.call(this, index, self.html());
  3135. }
  3136. domManip(self, args, callback, ignored);
  3137. });
  3138. }
  3139. if (l) {
  3140. fragment = buildFragment(args, collection[0].ownerDocument, false, collection, ignored);
  3141. first = fragment.firstChild;
  3142. if (fragment.childNodes.length === 1) {
  3143. fragment = first;
  3144. }
  3145. if (first || ignored) {
  3146. scripts = jQuery.map(getAll(fragment, "script"), disableScript);
  3147. hasScripts = scripts.length;
  3148. for (; i < l; i++) {
  3149. node = fragment;
  3150. if (i !== iNoClone) {
  3151. node = jQuery.clone(node, true, true);
  3152. if (hasScripts) {
  3153. jQuery.merge(scripts, getAll(node, "script"));
  3154. }
  3155. }
  3156. callback.call(collection[i], node, i);
  3157. }
  3158. if (hasScripts) {
  3159. doc = scripts[scripts.length - 1].ownerDocument;
  3160. jQuery.map(scripts, restoreScript);
  3161. for (i = 0; i < hasScripts; i++) {
  3162. node = scripts[i];
  3163. if (rscriptType.test(node.type || "") && !dataPriv.access(node, "globalEval") && jQuery.contains(doc, node)) {
  3164. if (node.src && (node.type || "").toLowerCase() !== "module") {
  3165. if (jQuery._evalUrl && !node.noModule) {
  3166. jQuery._evalUrl(node.src, {
  3167. nonce: node.nonce || node.getAttribute("nonce")
  3168. }, doc);
  3169. }
  3170. } else {
  3171. DOMEval(node.textContent.replace(rcleanScript, ""), node, doc);
  3172. }
  3173. }
  3174. }
  3175. }
  3176. }
  3177. }
  3178. return collection;
  3179. }
  3180. function remove(elem, selector, keepData) {
  3181. var node, nodes = selector ? jQuery.filter(selector, elem) : elem, i = 0;
  3182. for (; (node = nodes[i]) != null; i++) {
  3183. if (!keepData && node.nodeType === 1) {
  3184. jQuery.cleanData(getAll(node));
  3185. }
  3186. if (node.parentNode) {
  3187. if (keepData && isAttached(node)) {
  3188. setGlobalEval(getAll(node, "script"));
  3189. }
  3190. node.parentNode.removeChild(node);
  3191. }
  3192. }
  3193. return elem;
  3194. }
  3195. jQuery.extend({
  3196. htmlPrefilter: function(html) {
  3197. return html;
  3198. },
  3199. clone: function(elem, dataAndEvents, deepDataAndEvents) {
  3200. var i, l, srcElements, destElements, clone = elem.cloneNode(true), inPage = isAttached(elem);
  3201. if (!support.noCloneChecked && (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem)) {
  3202. destElements = getAll(clone);
  3203. srcElements = getAll(elem);
  3204. for (i = 0, l = srcElements.length; i < l; i++) {
  3205. fixInput(srcElements[i], destElements[i]);
  3206. }
  3207. }
  3208. if (dataAndEvents) {
  3209. if (deepDataAndEvents) {
  3210. srcElements = srcElements || getAll(elem);
  3211. destElements = destElements || getAll(clone);
  3212. for (i = 0, l = srcElements.length; i < l; i++) {
  3213. cloneCopyEvent(srcElements[i], destElements[i]);
  3214. }
  3215. } else {
  3216. cloneCopyEvent(elem, clone);
  3217. }
  3218. }
  3219. destElements = getAll(clone, "script");
  3220. if (destElements.length > 0) {
  3221. setGlobalEval(destElements, !inPage && getAll(elem, "script"));
  3222. }
  3223. return clone;
  3224. },
  3225. cleanData: function(elems) {
  3226. var data, elem, type, special = jQuery.event.special, i = 0;
  3227. for (; (elem = elems[i]) !== void 0; i++) {
  3228. if (acceptData(elem)) {
  3229. if (data = elem[dataPriv.expando]) {
  3230. if (data.events) {
  3231. for (type in data.events) {
  3232. if (special[type]) {
  3233. jQuery.event.remove(elem, type);
  3234. } else {
  3235. jQuery.removeEvent(elem, type, data.handle);
  3236. }
  3237. }
  3238. }
  3239. elem[dataPriv.expando] = void 0;
  3240. }
  3241. if (elem[dataUser.expando]) {
  3242. elem[dataUser.expando] = void 0;
  3243. }
  3244. }
  3245. }
  3246. }
  3247. });
  3248. jQuery.fn.extend({
  3249. detach: function(selector) {
  3250. return remove(this, selector, true);
  3251. },
  3252. remove: function(selector) {
  3253. return remove(this, selector);
  3254. },
  3255. text: function(value) {
  3256. return access(this, function(value2) {
  3257. return value2 === void 0 ? jQuery.text(this) : this.empty().each(function() {
  3258. if (this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9) {
  3259. this.textContent = value2;
  3260. }
  3261. });
  3262. }, null, value, arguments.length);
  3263. },
  3264. append: function() {
  3265. return domManip(this, arguments, function(elem) {
  3266. if (this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9) {
  3267. var target = manipulationTarget(this, elem);
  3268. target.appendChild(elem);
  3269. }
  3270. });
  3271. },
  3272. prepend: function() {
  3273. return domManip(this, arguments, function(elem) {
  3274. if (this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9) {
  3275. var target = manipulationTarget(this, elem);
  3276. target.insertBefore(elem, target.firstChild);
  3277. }
  3278. });
  3279. },
  3280. before: function() {
  3281. return domManip(this, arguments, function(elem) {
  3282. if (this.parentNode) {
  3283. this.parentNode.insertBefore(elem, this);
  3284. }
  3285. });
  3286. },
  3287. after: function() {
  3288. return domManip(this, arguments, function(elem) {
  3289. if (this.parentNode) {
  3290. this.parentNode.insertBefore(elem, this.nextSibling);
  3291. }
  3292. });
  3293. },
  3294. empty: function() {
  3295. var elem, i = 0;
  3296. for (; (elem = this[i]) != null; i++) {
  3297. if (elem.nodeType === 1) {
  3298. jQuery.cleanData(getAll(elem, false));
  3299. elem.textContent = "";
  3300. }
  3301. }
  3302. return this;
  3303. },
  3304. clone: function(dataAndEvents, deepDataAndEvents) {
  3305. dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
  3306. deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
  3307. return this.map(function() {
  3308. return jQuery.clone(this, dataAndEvents, deepDataAndEvents);
  3309. });
  3310. },
  3311. html: function(value) {
  3312. return access(this, function(value2) {
  3313. var elem = this[0] || {}, i = 0, l = this.length;
  3314. if (value2 === void 0 && elem.nodeType === 1) {
  3315. return elem.innerHTML;
  3316. }
  3317. if (typeof value2 === "string" && !rnoInnerhtml.test(value2) && !wrapMap[(rtagName.exec(value2) || ["", ""])[1].toLowerCase()]) {
  3318. value2 = jQuery.htmlPrefilter(value2);
  3319. try {
  3320. for (; i < l; i++) {
  3321. elem = this[i] || {};
  3322. if (elem.nodeType === 1) {
  3323. jQuery.cleanData(getAll(elem, false));
  3324. elem.innerHTML = value2;
  3325. }
  3326. }
  3327. elem = 0;
  3328. } catch (e) {
  3329. }
  3330. }
  3331. if (elem) {
  3332. this.empty().append(value2);
  3333. }
  3334. }, null, value, arguments.length);
  3335. },
  3336. replaceWith: function() {
  3337. var ignored = [];
  3338. return domManip(this, arguments, function(elem) {
  3339. var parent = this.parentNode;
  3340. if (jQuery.inArray(this, ignored) < 0) {
  3341. jQuery.cleanData(getAll(this));
  3342. if (parent) {
  3343. parent.replaceChild(elem, this);
  3344. }
  3345. }
  3346. }, ignored);
  3347. }
  3348. });
  3349. jQuery.each({
  3350. appendTo: "append",
  3351. prependTo: "prepend",
  3352. insertBefore: "before",
  3353. insertAfter: "after",
  3354. replaceAll: "replaceWith"
  3355. }, function(name, original) {
  3356. jQuery.fn[name] = function(selector) {
  3357. var elems, ret = [], insert = jQuery(selector), last = insert.length - 1, i = 0;
  3358. for (; i <= last; i++) {
  3359. elems = i === last ? this : this.clone(true);
  3360. jQuery(insert[i])[original](elems);
  3361. push.apply(ret, elems.get());
  3362. }
  3363. return this.pushStack(ret);
  3364. };
  3365. });
  3366. var rnumnonpx = new RegExp("^(" + pnum + ")(?!px)[a-z%]+$", "i");
  3367. var getStyles = function(elem) {
  3368. var view = elem.ownerDocument.defaultView;
  3369. if (!view || !view.opener) {
  3370. view = window2;
  3371. }
  3372. return view.getComputedStyle(elem);
  3373. };
  3374. var swap = function(elem, options, callback) {
  3375. var ret, name, old = {};
  3376. for (name in options) {
  3377. old[name] = elem.style[name];
  3378. elem.style[name] = options[name];
  3379. }
  3380. ret = callback.call(elem);
  3381. for (name in options) {
  3382. elem.style[name] = old[name];
  3383. }
  3384. return ret;
  3385. };
  3386. var rboxStyle = new RegExp(cssExpand.join("|"), "i");
  3387. (function() {
  3388. function computeStyleTests() {
  3389. if (!div) {
  3390. return;
  3391. }
  3392. container.style.cssText = "position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0";
  3393. div.style.cssText = "position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%";
  3394. documentElement.appendChild(container).appendChild(div);
  3395. var divStyle = window2.getComputedStyle(div);
  3396. pixelPositionVal = divStyle.top !== "1%";
  3397. reliableMarginLeftVal = roundPixelMeasures(divStyle.marginLeft) === 12;
  3398. div.style.right = "60%";
  3399. pixelBoxStylesVal = roundPixelMeasures(divStyle.right) === 36;
  3400. boxSizingReliableVal = roundPixelMeasures(divStyle.width) === 36;
  3401. div.style.position = "absolute";
  3402. scrollboxSizeVal = roundPixelMeasures(div.offsetWidth / 3) === 12;
  3403. documentElement.removeChild(container);
  3404. div = null;
  3405. }
  3406. function roundPixelMeasures(measure) {
  3407. return Math.round(parseFloat(measure));
  3408. }
  3409. var pixelPositionVal, boxSizingReliableVal, scrollboxSizeVal, pixelBoxStylesVal, reliableTrDimensionsVal, reliableMarginLeftVal, container = document.createElement("div"), div = document.createElement("div");
  3410. if (!div.style) {
  3411. return;
  3412. }
  3413. div.style.backgroundClip = "content-box";
  3414. div.cloneNode(true).style.backgroundClip = "";
  3415. support.clearCloneStyle = div.style.backgroundClip === "content-box";
  3416. jQuery.extend(support, {
  3417. boxSizingReliable: function() {
  3418. computeStyleTests();
  3419. return boxSizingReliableVal;
  3420. },
  3421. pixelBoxStyles: function() {
  3422. computeStyleTests();
  3423. return pixelBoxStylesVal;
  3424. },
  3425. pixelPosition: function() {
  3426. computeStyleTests();
  3427. return pixelPositionVal;
  3428. },
  3429. reliableMarginLeft: function() {
  3430. computeStyleTests();
  3431. return reliableMarginLeftVal;
  3432. },
  3433. scrollboxSize: function() {
  3434. computeStyleTests();
  3435. return scrollboxSizeVal;
  3436. },
  3437. reliableTrDimensions: function() {
  3438. var table, tr, trChild, trStyle;
  3439. if (reliableTrDimensionsVal == null) {
  3440. table = document.createElement("table");
  3441. tr = document.createElement("tr");
  3442. trChild = document.createElement("div");
  3443. table.style.cssText = "position:absolute;left:-11111px;border-collapse:separate";
  3444. tr.style.cssText = "border:1px solid";
  3445. tr.style.height = "1px";
  3446. trChild.style.height = "9px";
  3447. trChild.style.display = "block";
  3448. documentElement.appendChild(table).appendChild(tr).appendChild(trChild);
  3449. trStyle = window2.getComputedStyle(tr);
  3450. reliableTrDimensionsVal = parseInt(trStyle.height, 10) + parseInt(trStyle.borderTopWidth, 10) + parseInt(trStyle.borderBottomWidth, 10) === tr.offsetHeight;
  3451. documentElement.removeChild(table);
  3452. }
  3453. return reliableTrDimensionsVal;
  3454. }
  3455. });
  3456. })();
  3457. function curCSS(elem, name, computed) {
  3458. var width, minWidth, maxWidth, ret, style = elem.style;
  3459. computed = computed || getStyles(elem);
  3460. if (computed) {
  3461. ret = computed.getPropertyValue(name) || computed[name];
  3462. if (ret === "" && !isAttached(elem)) {
  3463. ret = jQuery.style(elem, name);
  3464. }
  3465. if (!support.pixelBoxStyles() && rnumnonpx.test(ret) && rboxStyle.test(name)) {
  3466. width = style.width;
  3467. minWidth = style.minWidth;
  3468. maxWidth = style.maxWidth;
  3469. style.minWidth = style.maxWidth = style.width = ret;
  3470. ret = computed.width;
  3471. style.width = width;
  3472. style.minWidth = minWidth;
  3473. style.maxWidth = maxWidth;
  3474. }
  3475. }
  3476. return ret !== void 0 ? ret + "" : ret;
  3477. }
  3478. function addGetHookIf(conditionFn, hookFn) {
  3479. return {
  3480. get: function() {
  3481. if (conditionFn()) {
  3482. delete this.get;
  3483. return;
  3484. }
  3485. return (this.get = hookFn).apply(this, arguments);
  3486. }
  3487. };
  3488. }
  3489. var cssPrefixes = ["Webkit", "Moz", "ms"], emptyStyle = document.createElement("div").style, vendorProps = {};
  3490. function vendorPropName(name) {
  3491. var capName = name[0].toUpperCase() + name.slice(1), i = cssPrefixes.length;
  3492. while (i--) {
  3493. name = cssPrefixes[i] + capName;
  3494. if (name in emptyStyle) {
  3495. return name;
  3496. }
  3497. }
  3498. }
  3499. function finalPropName(name) {
  3500. var final = jQuery.cssProps[name] || vendorProps[name];
  3501. if (final) {
  3502. return final;
  3503. }
  3504. if (name in emptyStyle) {
  3505. return name;
  3506. }
  3507. return vendorProps[name] = vendorPropName(name) || name;
  3508. }
  3509. var rdisplayswap = /^(none|table(?!-c[ea]).+)/, rcustomProp = /^--/, cssShow = { position: "absolute", visibility: "hidden", display: "block" }, cssNormalTransform = {
  3510. letterSpacing: "0",
  3511. fontWeight: "400"
  3512. };
  3513. function setPositiveNumber(_elem, value, subtract) {
  3514. var matches = rcssNum.exec(value);
  3515. return matches ? Math.max(0, matches[2] - (subtract || 0)) + (matches[3] || "px") : value;
  3516. }
  3517. function boxModelAdjustment(elem, dimension, box, isBorderBox, styles, computedVal) {
  3518. var i = dimension === "width" ? 1 : 0, extra = 0, delta = 0;
  3519. if (box === (isBorderBox ? "border" : "content")) {
  3520. return 0;
  3521. }
  3522. for (; i < 4; i += 2) {
  3523. if (box === "margin") {
  3524. delta += jQuery.css(elem, box + cssExpand[i], true, styles);
  3525. }
  3526. if (!isBorderBox) {
  3527. delta += jQuery.css(elem, "padding" + cssExpand[i], true, styles);
  3528. if (box !== "padding") {
  3529. delta += jQuery.css(elem, "border" + cssExpand[i] + "Width", true, styles);
  3530. } else {
  3531. extra += jQuery.css(elem, "border" + cssExpand[i] + "Width", true, styles);
  3532. }
  3533. } else {
  3534. if (box === "content") {
  3535. delta -= jQuery.css(elem, "padding" + cssExpand[i], true, styles);
  3536. }
  3537. if (box !== "margin") {
  3538. delta -= jQuery.css(elem, "border" + cssExpand[i] + "Width", true, styles);
  3539. }
  3540. }
  3541. }
  3542. if (!isBorderBox && computedVal >= 0) {
  3543. delta += Math.max(0, Math.ceil(elem["offset" + dimension[0].toUpperCase() + dimension.slice(1)] - computedVal - delta - extra - 0.5)) || 0;
  3544. }
  3545. return delta;
  3546. }
  3547. function getWidthOrHeight(elem, dimension, extra) {
  3548. var styles = getStyles(elem), boxSizingNeeded = !support.boxSizingReliable() || extra, isBorderBox = boxSizingNeeded && jQuery.css(elem, "boxSizing", false, styles) === "border-box", valueIsBorderBox = isBorderBox, val = curCSS(elem, dimension, styles), offsetProp = "offset" + dimension[0].toUpperCase() + dimension.slice(1);
  3549. if (rnumnonpx.test(val)) {
  3550. if (!extra) {
  3551. return val;
  3552. }
  3553. val = "auto";
  3554. }
  3555. if ((!support.boxSizingReliable() && isBorderBox || !support.reliableTrDimensions() && nodeName(elem, "tr") || val === "auto" || !parseFloat(val) && jQuery.css(elem, "display", false, styles) === "inline") && elem.getClientRects().length) {
  3556. isBorderBox = jQuery.css(elem, "boxSizing", false, styles) === "border-box";
  3557. valueIsBorderBox = offsetProp in elem;
  3558. if (valueIsBorderBox) {
  3559. val = elem[offsetProp];
  3560. }
  3561. }
  3562. val = parseFloat(val) || 0;
  3563. return val + boxModelAdjustment(elem, dimension, extra || (isBorderBox ? "border" : "content"), valueIsBorderBox, styles, val) + "px";
  3564. }
  3565. jQuery.extend({
  3566. cssHooks: {
  3567. opacity: {
  3568. get: function(elem, computed) {
  3569. if (computed) {
  3570. var ret = curCSS(elem, "opacity");
  3571. return ret === "" ? "1" : ret;
  3572. }
  3573. }
  3574. }
  3575. },
  3576. cssNumber: {
  3577. "animationIterationCount": true,
  3578. "columnCount": true,
  3579. "fillOpacity": true,
  3580. "flexGrow": true,
  3581. "flexShrink": true,
  3582. "fontWeight": true,
  3583. "gridArea": true,
  3584. "gridColumn": true,
  3585. "gridColumnEnd": true,
  3586. "gridColumnStart": true,
  3587. "gridRow": true,
  3588. "gridRowEnd": true,
  3589. "gridRowStart": true,
  3590. "lineHeight": true,
  3591. "opacity": true,
  3592. "order": true,
  3593. "orphans": true,
  3594. "widows": true,
  3595. "zIndex": true,
  3596. "zoom": true
  3597. },
  3598. cssProps: {},
  3599. style: function(elem, name, value, extra) {
  3600. if (!elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style) {
  3601. return;
  3602. }
  3603. var ret, type, hooks, origName = camelCase(name), isCustomProp = rcustomProp.test(name), style = elem.style;
  3604. if (!isCustomProp) {
  3605. name = finalPropName(origName);
  3606. }
  3607. hooks = jQuery.cssHooks[name] || jQuery.cssHooks[origName];
  3608. if (value !== void 0) {
  3609. type = typeof value;
  3610. if (type === "string" && (ret = rcssNum.exec(value)) && ret[1]) {
  3611. value = adjustCSS(elem, name, ret);
  3612. type = "number";
  3613. }
  3614. if (value == null || value !== value) {
  3615. return;
  3616. }
  3617. if (type === "number" && !isCustomProp) {
  3618. value += ret && ret[3] || (jQuery.cssNumber[origName] ? "" : "px");
  3619. }
  3620. if (!support.clearCloneStyle && value === "" && name.indexOf("background") === 0) {
  3621. style[name] = "inherit";
  3622. }
  3623. if (!hooks || !("set" in hooks) || (value = hooks.set(elem, value, extra)) !== void 0) {
  3624. if (isCustomProp) {
  3625. style.setProperty(name, value);
  3626. } else {
  3627. style[name] = value;
  3628. }
  3629. }
  3630. } else {
  3631. if (hooks && "get" in hooks && (ret = hooks.get(elem, false, extra)) !== void 0) {
  3632. return ret;
  3633. }
  3634. return style[name];
  3635. }
  3636. },
  3637. css: function(elem, name, extra, styles) {
  3638. var val, num, hooks, origName = camelCase(name), isCustomProp = rcustomProp.test(name);
  3639. if (!isCustomProp) {
  3640. name = finalPropName(origName);
  3641. }
  3642. hooks = jQuery.cssHooks[name] || jQuery.cssHooks[origName];
  3643. if (hooks && "get" in hooks) {
  3644. val = hooks.get(elem, true, extra);
  3645. }
  3646. if (val === void 0) {
  3647. val = curCSS(elem, name, styles);
  3648. }
  3649. if (val === "normal" && name in cssNormalTransform) {
  3650. val = cssNormalTransform[name];
  3651. }
  3652. if (extra === "" || extra) {
  3653. num = parseFloat(val);
  3654. return extra === true || isFinite(num) ? num || 0 : val;
  3655. }
  3656. return val;
  3657. }
  3658. });
  3659. jQuery.each(["height", "width"], function(_i, dimension) {
  3660. jQuery.cssHooks[dimension] = {
  3661. get: function(elem, computed, extra) {
  3662. if (computed) {
  3663. return rdisplayswap.test(jQuery.css(elem, "display")) && (!elem.getClientRects().length || !elem.getBoundingClientRect().width) ? swap(elem, cssShow, function() {
  3664. return getWidthOrHeight(elem, dimension, extra);
  3665. }) : getWidthOrHeight(elem, dimension, extra);
  3666. }
  3667. },
  3668. set: function(elem, value, extra) {
  3669. var matches, styles = getStyles(elem), scrollboxSizeBuggy = !support.scrollboxSize() && styles.position === "absolute", boxSizingNeeded = scrollboxSizeBuggy || extra, isBorderBox = boxSizingNeeded && jQuery.css(elem, "boxSizing", false, styles) === "border-box", subtract = extra ? boxModelAdjustment(elem, dimension, extra, isBorderBox, styles) : 0;
  3670. if (isBorderBox && scrollboxSizeBuggy) {
  3671. subtract -= Math.ceil(elem["offset" + dimension[0].toUpperCase() + dimension.slice(1)] - parseFloat(styles[dimension]) - boxModelAdjustment(elem, dimension, "border", false, styles) - 0.5);
  3672. }
  3673. if (subtract && (matches = rcssNum.exec(value)) && (matches[3] || "px") !== "px") {
  3674. elem.style[dimension] = value;
  3675. value = jQuery.css(elem, dimension);
  3676. }
  3677. return setPositiveNumber(elem, value, subtract);
  3678. }
  3679. };
  3680. });
  3681. jQuery.cssHooks.marginLeft = addGetHookIf(support.reliableMarginLeft, function(elem, computed) {
  3682. if (computed) {
  3683. return (parseFloat(curCSS(elem, "marginLeft")) || elem.getBoundingClientRect().left - swap(elem, { marginLeft: 0 }, function() {
  3684. return elem.getBoundingClientRect().left;
  3685. })) + "px";
  3686. }
  3687. });
  3688. jQuery.each({
  3689. margin: "",
  3690. padding: "",
  3691. border: "Width"
  3692. }, function(prefix, suffix) {
  3693. jQuery.cssHooks[prefix + suffix] = {
  3694. expand: function(value) {
  3695. var i = 0, expanded = {}, parts = typeof value === "string" ? value.split(" ") : [value];
  3696. for (; i < 4; i++) {
  3697. expanded[prefix + cssExpand[i] + suffix] = parts[i] || parts[i - 2] || parts[0];
  3698. }
  3699. return expanded;
  3700. }
  3701. };
  3702. if (prefix !== "margin") {
  3703. jQuery.cssHooks[prefix + suffix].set = setPositiveNumber;
  3704. }
  3705. });
  3706. jQuery.fn.extend({
  3707. css: function(name, value) {
  3708. return access(this, function(elem, name2, value2) {
  3709. var styles, len, map = {}, i = 0;
  3710. if (Array.isArray(name2)) {
  3711. styles = getStyles(elem);
  3712. len = name2.length;
  3713. for (; i < len; i++) {
  3714. map[name2[i]] = jQuery.css(elem, name2[i], false, styles);
  3715. }
  3716. return map;
  3717. }
  3718. return value2 !== void 0 ? jQuery.style(elem, name2, value2) : jQuery.css(elem, name2);
  3719. }, name, value, arguments.length > 1);
  3720. }
  3721. });
  3722. function Tween(elem, options, prop, end, easing) {
  3723. return new Tween.prototype.init(elem, options, prop, end, easing);
  3724. }
  3725. jQuery.Tween = Tween;
  3726. Tween.prototype = {
  3727. constructor: Tween,
  3728. init: function(elem, options, prop, end, easing, unit) {
  3729. this.elem = elem;
  3730. this.prop = prop;
  3731. this.easing = easing || jQuery.easing._default;
  3732. this.options = options;
  3733. this.start = this.now = this.cur();
  3734. this.end = end;
  3735. this.unit = unit || (jQuery.cssNumber[prop] ? "" : "px");
  3736. },
  3737. cur: function() {
  3738. var hooks = Tween.propHooks[this.prop];
  3739. return hooks && hooks.get ? hooks.get(this) : Tween.propHooks._default.get(this);
  3740. },
  3741. run: function(percent) {
  3742. var eased, hooks = Tween.propHooks[this.prop];
  3743. if (this.options.duration) {
  3744. this.pos = eased = jQuery.easing[this.easing](percent, this.options.duration * percent, 0, 1, this.options.duration);
  3745. } else {
  3746. this.pos = eased = percent;
  3747. }
  3748. this.now = (this.end - this.start) * eased + this.start;
  3749. if (this.options.step) {
  3750. this.options.step.call(this.elem, this.now, this);
  3751. }
  3752. if (hooks && hooks.set) {
  3753. hooks.set(this);
  3754. } else {
  3755. Tween.propHooks._default.set(this);
  3756. }
  3757. return this;
  3758. }
  3759. };
  3760. Tween.prototype.init.prototype = Tween.prototype;
  3761. Tween.propHooks = {
  3762. _default: {
  3763. get: function(tween) {
  3764. var result;
  3765. if (tween.elem.nodeType !== 1 || tween.elem[tween.prop] != null && tween.elem.style[tween.prop] == null) {
  3766. return tween.elem[tween.prop];
  3767. }
  3768. result = jQuery.css(tween.elem, tween.prop, "");
  3769. return !result || result === "auto" ? 0 : result;
  3770. },
  3771. set: function(tween) {
  3772. if (jQuery.fx.step[tween.prop]) {
  3773. jQuery.fx.step[tween.prop](tween);
  3774. } else if (tween.elem.nodeType === 1 && (jQuery.cssHooks[tween.prop] || tween.elem.style[finalPropName(tween.prop)] != null)) {
  3775. jQuery.style(tween.elem, tween.prop, tween.now + tween.unit);
  3776. } else {
  3777. tween.elem[tween.prop] = tween.now;
  3778. }
  3779. }
  3780. }
  3781. };
  3782. Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
  3783. set: function(tween) {
  3784. if (tween.elem.nodeType && tween.elem.parentNode) {
  3785. tween.elem[tween.prop] = tween.now;
  3786. }
  3787. }
  3788. };
  3789. jQuery.easing = {
  3790. linear: function(p) {
  3791. return p;
  3792. },
  3793. swing: function(p) {
  3794. return 0.5 - Math.cos(p * Math.PI) / 2;
  3795. },
  3796. _default: "swing"
  3797. };
  3798. jQuery.fx = Tween.prototype.init;
  3799. jQuery.fx.step = {};
  3800. var fxNow, inProgress, rfxtypes = /^(?:toggle|show|hide)$/, rrun = /queueHooks$/;
  3801. function schedule() {
  3802. if (inProgress) {
  3803. if (document.hidden === false && window2.requestAnimationFrame) {
  3804. window2.requestAnimationFrame(schedule);
  3805. } else {
  3806. window2.setTimeout(schedule, jQuery.fx.interval);
  3807. }
  3808. jQuery.fx.tick();
  3809. }
  3810. }
  3811. function createFxNow() {
  3812. window2.setTimeout(function() {
  3813. fxNow = void 0;
  3814. });
  3815. return fxNow = Date.now();
  3816. }
  3817. function genFx(type, includeWidth) {
  3818. var which, i = 0, attrs = { height: type };
  3819. includeWidth = includeWidth ? 1 : 0;
  3820. for (; i < 4; i += 2 - includeWidth) {
  3821. which = cssExpand[i];
  3822. attrs["margin" + which] = attrs["padding" + which] = type;
  3823. }
  3824. if (includeWidth) {
  3825. attrs.opacity = attrs.width = type;
  3826. }
  3827. return attrs;
  3828. }
  3829. function createTween(value, prop, animation) {
  3830. var tween, collection = (Animation.tweeners[prop] || []).concat(Animation.tweeners["*"]), index = 0, length = collection.length;
  3831. for (; index < length; index++) {
  3832. if (tween = collection[index].call(animation, prop, value)) {
  3833. return tween;
  3834. }
  3835. }
  3836. }
  3837. function defaultPrefilter(elem, props, opts) {
  3838. var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display, isBox = "width" in props || "height" in props, anim = this, orig = {}, style = elem.style, hidden = elem.nodeType && isHiddenWithinTree(elem), dataShow = dataPriv.get(elem, "fxshow");
  3839. if (!opts.queue) {
  3840. hooks = jQuery._queueHooks(elem, "fx");
  3841. if (hooks.unqueued == null) {
  3842. hooks.unqueued = 0;
  3843. oldfire = hooks.empty.fire;
  3844. hooks.empty.fire = function() {
  3845. if (!hooks.unqueued) {
  3846. oldfire();
  3847. }
  3848. };
  3849. }
  3850. hooks.unqueued++;
  3851. anim.always(function() {
  3852. anim.always(function() {
  3853. hooks.unqueued--;
  3854. if (!jQuery.queue(elem, "fx").length) {
  3855. hooks.empty.fire();
  3856. }
  3857. });
  3858. });
  3859. }
  3860. for (prop in props) {
  3861. value = props[prop];
  3862. if (rfxtypes.test(value)) {
  3863. delete props[prop];
  3864. toggle = toggle || value === "toggle";
  3865. if (value === (hidden ? "hide" : "show")) {
  3866. if (value === "show" && dataShow && dataShow[prop] !== void 0) {
  3867. hidden = true;
  3868. } else {
  3869. continue;
  3870. }
  3871. }
  3872. orig[prop] = dataShow && dataShow[prop] || jQuery.style(elem, prop);
  3873. }
  3874. }
  3875. propTween = !jQuery.isEmptyObject(props);
  3876. if (!propTween && jQuery.isEmptyObject(orig)) {
  3877. return;
  3878. }
  3879. if (isBox && elem.nodeType === 1) {
  3880. opts.overflow = [style.overflow, style.overflowX, style.overflowY];
  3881. restoreDisplay = dataShow && dataShow.display;
  3882. if (restoreDisplay == null) {
  3883. restoreDisplay = dataPriv.get(elem, "display");
  3884. }
  3885. display = jQuery.css(elem, "display");
  3886. if (display === "none") {
  3887. if (restoreDisplay) {
  3888. display = restoreDisplay;
  3889. } else {
  3890. showHide([elem], true);
  3891. restoreDisplay = elem.style.display || restoreDisplay;
  3892. display = jQuery.css(elem, "display");
  3893. showHide([elem]);
  3894. }
  3895. }
  3896. if (display === "inline" || display === "inline-block" && restoreDisplay != null) {
  3897. if (jQuery.css(elem, "float") === "none") {
  3898. if (!propTween) {
  3899. anim.done(function() {
  3900. style.display = restoreDisplay;
  3901. });
  3902. if (restoreDisplay == null) {
  3903. display = style.display;
  3904. restoreDisplay = display === "none" ? "" : display;
  3905. }
  3906. }
  3907. style.display = "inline-block";
  3908. }
  3909. }
  3910. }
  3911. if (opts.overflow) {
  3912. style.overflow = "hidden";
  3913. anim.always(function() {
  3914. style.overflow = opts.overflow[0];
  3915. style.overflowX = opts.overflow[1];
  3916. style.overflowY = opts.overflow[2];
  3917. });
  3918. }
  3919. propTween = false;
  3920. for (prop in orig) {
  3921. if (!propTween) {
  3922. if (dataShow) {
  3923. if ("hidden" in dataShow) {
  3924. hidden = dataShow.hidden;
  3925. }
  3926. } else {
  3927. dataShow = dataPriv.access(elem, "fxshow", { display: restoreDisplay });
  3928. }
  3929. if (toggle) {
  3930. dataShow.hidden = !hidden;
  3931. }
  3932. if (hidden) {
  3933. showHide([elem], true);
  3934. }
  3935. anim.done(function() {
  3936. if (!hidden) {
  3937. showHide([elem]);
  3938. }
  3939. dataPriv.remove(elem, "fxshow");
  3940. for (prop in orig) {
  3941. jQuery.style(elem, prop, orig[prop]);
  3942. }
  3943. });
  3944. }
  3945. propTween = createTween(hidden ? dataShow[prop] : 0, prop, anim);
  3946. if (!(prop in dataShow)) {
  3947. dataShow[prop] = propTween.start;
  3948. if (hidden) {
  3949. propTween.end = propTween.start;
  3950. propTween.start = 0;
  3951. }
  3952. }
  3953. }
  3954. }
  3955. function propFilter(props, specialEasing) {
  3956. var index, name, easing, value, hooks;
  3957. for (index in props) {
  3958. name = camelCase(index);
  3959. easing = specialEasing[name];
  3960. value = props[index];
  3961. if (Array.isArray(value)) {
  3962. easing = value[1];
  3963. value = props[index] = value[0];
  3964. }
  3965. if (index !== name) {
  3966. props[name] = value;
  3967. delete props[index];
  3968. }
  3969. hooks = jQuery.cssHooks[name];
  3970. if (hooks && "expand" in hooks) {
  3971. value = hooks.expand(value);
  3972. delete props[name];
  3973. for (index in value) {
  3974. if (!(index in props)) {
  3975. props[index] = value[index];
  3976. specialEasing[index] = easing;
  3977. }
  3978. }
  3979. } else {
  3980. specialEasing[name] = easing;
  3981. }
  3982. }
  3983. }
  3984. function Animation(elem, properties, options) {
  3985. var result, stopped, index = 0, length = Animation.prefilters.length, deferred = jQuery.Deferred().always(function() {
  3986. delete tick.elem;
  3987. }), tick = function() {
  3988. if (stopped) {
  3989. return false;
  3990. }
  3991. var currentTime = fxNow || createFxNow(), remaining = Math.max(0, animation.startTime + animation.duration - currentTime), temp = remaining / animation.duration || 0, percent = 1 - temp, index2 = 0, length2 = animation.tweens.length;
  3992. for (; index2 < length2; index2++) {
  3993. animation.tweens[index2].run(percent);
  3994. }
  3995. deferred.notifyWith(elem, [animation, percent, remaining]);
  3996. if (percent < 1 && length2) {
  3997. return remaining;
  3998. }
  3999. if (!length2) {
  4000. deferred.notifyWith(elem, [animation, 1, 0]);
  4001. }
  4002. deferred.resolveWith(elem, [animation]);
  4003. return false;
  4004. }, animation = deferred.promise({
  4005. elem,
  4006. props: jQuery.extend({}, properties),
  4007. opts: jQuery.extend(true, {
  4008. specialEasing: {},
  4009. easing: jQuery.easing._default
  4010. }, options),
  4011. originalProperties: properties,
  4012. originalOptions: options,
  4013. startTime: fxNow || createFxNow(),
  4014. duration: options.duration,
  4015. tweens: [],
  4016. createTween: function(prop, end) {
  4017. var tween = jQuery.Tween(elem, animation.opts, prop, end, animation.opts.specialEasing[prop] || animation.opts.easing);
  4018. animation.tweens.push(tween);
  4019. return tween;
  4020. },
  4021. stop: function(gotoEnd) {
  4022. var index2 = 0, length2 = gotoEnd ? animation.tweens.length : 0;
  4023. if (stopped) {
  4024. return this;
  4025. }
  4026. stopped = true;
  4027. for (; index2 < length2; index2++) {
  4028. animation.tweens[index2].run(1);
  4029. }
  4030. if (gotoEnd) {
  4031. deferred.notifyWith(elem, [animation, 1, 0]);
  4032. deferred.resolveWith(elem, [animation, gotoEnd]);
  4033. } else {
  4034. deferred.rejectWith(elem, [animation, gotoEnd]);
  4035. }
  4036. return this;
  4037. }
  4038. }), props = animation.props;
  4039. propFilter(props, animation.opts.specialEasing);
  4040. for (; index < length; index++) {
  4041. result = Animation.prefilters[index].call(animation, elem, props, animation.opts);
  4042. if (result) {
  4043. if (isFunction(result.stop)) {
  4044. jQuery._queueHooks(animation.elem, animation.opts.queue).stop = result.stop.bind(result);
  4045. }
  4046. return result;
  4047. }
  4048. }
  4049. jQuery.map(props, createTween, animation);
  4050. if (isFunction(animation.opts.start)) {
  4051. animation.opts.start.call(elem, animation);
  4052. }
  4053. animation.progress(animation.opts.progress).done(animation.opts.done, animation.opts.complete).fail(animation.opts.fail).always(animation.opts.always);
  4054. jQuery.fx.timer(jQuery.extend(tick, {
  4055. elem,
  4056. anim: animation,
  4057. queue: animation.opts.queue
  4058. }));
  4059. return animation;
  4060. }
  4061. jQuery.Animation = jQuery.extend(Animation, {
  4062. tweeners: {
  4063. "*": [function(prop, value) {
  4064. var tween = this.createTween(prop, value);
  4065. adjustCSS(tween.elem, prop, rcssNum.exec(value), tween);
  4066. return tween;
  4067. }]
  4068. },
  4069. tweener: function(props, callback) {
  4070. if (isFunction(props)) {
  4071. callback = props;
  4072. props = ["*"];
  4073. } else {
  4074. props = props.match(rnothtmlwhite);
  4075. }
  4076. var prop, index = 0, length = props.length;
  4077. for (; index < length; index++) {
  4078. prop = props[index];
  4079. Animation.tweeners[prop] = Animation.tweeners[prop] || [];
  4080. Animation.tweeners[prop].unshift(callback);
  4081. }
  4082. },
  4083. prefilters: [defaultPrefilter],
  4084. prefilter: function(callback, prepend) {
  4085. if (prepend) {
  4086. Animation.prefilters.unshift(callback);
  4087. } else {
  4088. Animation.prefilters.push(callback);
  4089. }
  4090. }
  4091. });
  4092. jQuery.speed = function(speed, easing, fn) {
  4093. var opt = speed && typeof speed === "object" ? jQuery.extend({}, speed) : {
  4094. complete: fn || !fn && easing || isFunction(speed) && speed,
  4095. duration: speed,
  4096. easing: fn && easing || easing && !isFunction(easing) && easing
  4097. };
  4098. if (jQuery.fx.off) {
  4099. opt.duration = 0;
  4100. } else {
  4101. if (typeof opt.duration !== "number") {
  4102. if (opt.duration in jQuery.fx.speeds) {
  4103. opt.duration = jQuery.fx.speeds[opt.duration];
  4104. } else {
  4105. opt.duration = jQuery.fx.speeds._default;
  4106. }
  4107. }
  4108. }
  4109. if (opt.queue == null || opt.queue === true) {
  4110. opt.queue = "fx";
  4111. }
  4112. opt.old = opt.complete;
  4113. opt.complete = function() {
  4114. if (isFunction(opt.old)) {
  4115. opt.old.call(this);
  4116. }
  4117. if (opt.queue) {
  4118. jQuery.dequeue(this, opt.queue);
  4119. }
  4120. };
  4121. return opt;
  4122. };
  4123. jQuery.fn.extend({
  4124. fadeTo: function(speed, to, easing, callback) {
  4125. return this.filter(isHiddenWithinTree).css("opacity", 0).show().end().animate({ opacity: to }, speed, easing, callback);
  4126. },
  4127. animate: function(prop, speed, easing, callback) {
  4128. var empty = jQuery.isEmptyObject(prop), optall = jQuery.speed(speed, easing, callback), doAnimation = function() {
  4129. var anim = Animation(this, jQuery.extend({}, prop), optall);
  4130. if (empty || dataPriv.get(this, "finish")) {
  4131. anim.stop(true);
  4132. }
  4133. };
  4134. doAnimation.finish = doAnimation;
  4135. return empty || optall.queue === false ? this.each(doAnimation) : this.queue(optall.queue, doAnimation);
  4136. },
  4137. stop: function(type, clearQueue, gotoEnd) {
  4138. var stopQueue = function(hooks) {
  4139. var stop = hooks.stop;
  4140. delete hooks.stop;
  4141. stop(gotoEnd);
  4142. };
  4143. if (typeof type !== "string") {
  4144. gotoEnd = clearQueue;
  4145. clearQueue = type;
  4146. type = void 0;
  4147. }
  4148. if (clearQueue) {
  4149. this.queue(type || "fx", []);
  4150. }
  4151. return this.each(function() {
  4152. var dequeue = true, index = type != null && type + "queueHooks", timers = jQuery.timers, data = dataPriv.get(this);
  4153. if (index) {
  4154. if (data[index] && data[index].stop) {
  4155. stopQueue(data[index]);
  4156. }
  4157. } else {
  4158. for (index in data) {
  4159. if (data[index] && data[index].stop && rrun.test(index)) {
  4160. stopQueue(data[index]);
  4161. }
  4162. }
  4163. }
  4164. for (index = timers.length; index--; ) {
  4165. if (timers[index].elem === this && (type == null || timers[index].queue === type)) {
  4166. timers[index].anim.stop(gotoEnd);
  4167. dequeue = false;
  4168. timers.splice(index, 1);
  4169. }
  4170. }
  4171. if (dequeue || !gotoEnd) {
  4172. jQuery.dequeue(this, type);
  4173. }
  4174. });
  4175. },
  4176. finish: function(type) {
  4177. if (type !== false) {
  4178. type = type || "fx";
  4179. }
  4180. return this.each(function() {
  4181. var index, data = dataPriv.get(this), queue = data[type + "queue"], hooks = data[type + "queueHooks"], timers = jQuery.timers, length = queue ? queue.length : 0;
  4182. data.finish = true;
  4183. jQuery.queue(this, type, []);
  4184. if (hooks && hooks.stop) {
  4185. hooks.stop.call(this, true);
  4186. }
  4187. for (index = timers.length; index--; ) {
  4188. if (timers[index].elem === this && timers[index].queue === type) {
  4189. timers[index].anim.stop(true);
  4190. timers.splice(index, 1);
  4191. }
  4192. }
  4193. for (index = 0; index < length; index++) {
  4194. if (queue[index] && queue[index].finish) {
  4195. queue[index].finish.call(this);
  4196. }
  4197. }
  4198. delete data.finish;
  4199. });
  4200. }
  4201. });
  4202. jQuery.each(["toggle", "show", "hide"], function(_i, name) {
  4203. var cssFn = jQuery.fn[name];
  4204. jQuery.fn[name] = function(speed, easing, callback) {
  4205. return speed == null || typeof speed === "boolean" ? cssFn.apply(this, arguments) : this.animate(genFx(name, true), speed, easing, callback);
  4206. };
  4207. });
  4208. jQuery.each({
  4209. slideDown: genFx("show"),
  4210. slideUp: genFx("hide"),
  4211. slideToggle: genFx("toggle"),
  4212. fadeIn: { opacity: "show" },
  4213. fadeOut: { opacity: "hide" },
  4214. fadeToggle: { opacity: "toggle" }
  4215. }, function(name, props) {
  4216. jQuery.fn[name] = function(speed, easing, callback) {
  4217. return this.animate(props, speed, easing, callback);
  4218. };
  4219. });
  4220. jQuery.timers = [];
  4221. jQuery.fx.tick = function() {
  4222. var timer, i = 0, timers = jQuery.timers;
  4223. fxNow = Date.now();
  4224. for (; i < timers.length; i++) {
  4225. timer = timers[i];
  4226. if (!timer() && timers[i] === timer) {
  4227. timers.splice(i--, 1);
  4228. }
  4229. }
  4230. if (!timers.length) {
  4231. jQuery.fx.stop();
  4232. }
  4233. fxNow = void 0;
  4234. };
  4235. jQuery.fx.timer = function(timer) {
  4236. jQuery.timers.push(timer);
  4237. jQuery.fx.start();
  4238. };
  4239. jQuery.fx.interval = 13;
  4240. jQuery.fx.start = function() {
  4241. if (inProgress) {
  4242. return;
  4243. }
  4244. inProgress = true;
  4245. schedule();
  4246. };
  4247. jQuery.fx.stop = function() {
  4248. inProgress = null;
  4249. };
  4250. jQuery.fx.speeds = {
  4251. slow: 600,
  4252. fast: 200,
  4253. _default: 400
  4254. };
  4255. jQuery.fn.delay = function(time, type) {
  4256. time = jQuery.fx ? jQuery.fx.speeds[time] || time : time;
  4257. type = type || "fx";
  4258. return this.queue(type, function(next, hooks) {
  4259. var timeout = window2.setTimeout(next, time);
  4260. hooks.stop = function() {
  4261. window2.clearTimeout(timeout);
  4262. };
  4263. });
  4264. };
  4265. (function() {
  4266. var input = document.createElement("input"), select = document.createElement("select"), opt = select.appendChild(document.createElement("option"));
  4267. input.type = "checkbox";
  4268. support.checkOn = input.value !== "";
  4269. support.optSelected = opt.selected;
  4270. input = document.createElement("input");
  4271. input.value = "t";
  4272. input.type = "radio";
  4273. support.radioValue = input.value === "t";
  4274. })();
  4275. var boolHook, attrHandle = jQuery.expr.attrHandle;
  4276. jQuery.fn.extend({
  4277. attr: function(name, value) {
  4278. return access(this, jQuery.attr, name, value, arguments.length > 1);
  4279. },
  4280. removeAttr: function(name) {
  4281. return this.each(function() {
  4282. jQuery.removeAttr(this, name);
  4283. });
  4284. }
  4285. });
  4286. jQuery.extend({
  4287. attr: function(elem, name, value) {
  4288. var ret, hooks, nType = elem.nodeType;
  4289. if (nType === 3 || nType === 8 || nType === 2) {
  4290. return;
  4291. }
  4292. if (typeof elem.getAttribute === "undefined") {
  4293. return jQuery.prop(elem, name, value);
  4294. }
  4295. if (nType !== 1 || !jQuery.isXMLDoc(elem)) {
  4296. hooks = jQuery.attrHooks[name.toLowerCase()] || (jQuery.expr.match.bool.test(name) ? boolHook : void 0);
  4297. }
  4298. if (value !== void 0) {
  4299. if (value === null) {
  4300. jQuery.removeAttr(elem, name);
  4301. return;
  4302. }
  4303. if (hooks && "set" in hooks && (ret = hooks.set(elem, value, name)) !== void 0) {
  4304. return ret;
  4305. }
  4306. elem.setAttribute(name, value + "");
  4307. return value;
  4308. }
  4309. if (hooks && "get" in hooks && (ret = hooks.get(elem, name)) !== null) {
  4310. return ret;
  4311. }
  4312. ret = jQuery.find.attr(elem, name);
  4313. return ret == null ? void 0 : ret;
  4314. },
  4315. attrHooks: {
  4316. type: {
  4317. set: function(elem, value) {
  4318. if (!support.radioValue && value === "radio" && nodeName(elem, "input")) {
  4319. var val = elem.value;
  4320. elem.setAttribute("type", value);
  4321. if (val) {
  4322. elem.value = val;
  4323. }
  4324. return value;
  4325. }
  4326. }
  4327. }
  4328. },
  4329. removeAttr: function(elem, value) {
  4330. var name, i = 0, attrNames = value && value.match(rnothtmlwhite);
  4331. if (attrNames && elem.nodeType === 1) {
  4332. while (name = attrNames[i++]) {
  4333. elem.removeAttribute(name);
  4334. }
  4335. }
  4336. }
  4337. });
  4338. boolHook = {
  4339. set: function(elem, value, name) {
  4340. if (value === false) {
  4341. jQuery.removeAttr(elem, name);
  4342. } else {
  4343. elem.setAttribute(name, name);
  4344. }
  4345. return name;
  4346. }
  4347. };
  4348. jQuery.each(jQuery.expr.match.bool.source.match(/\w+/g), function(_i, name) {
  4349. var getter = attrHandle[name] || jQuery.find.attr;
  4350. attrHandle[name] = function(elem, name2, isXML) {
  4351. var ret, handle, lowercaseName = name2.toLowerCase();
  4352. if (!isXML) {
  4353. handle = attrHandle[lowercaseName];
  4354. attrHandle[lowercaseName] = ret;
  4355. ret = getter(elem, name2, isXML) != null ? lowercaseName : null;
  4356. attrHandle[lowercaseName] = handle;
  4357. }
  4358. return ret;
  4359. };
  4360. });
  4361. var rfocusable = /^(?:input|select|textarea|button)$/i, rclickable = /^(?:a|area)$/i;
  4362. jQuery.fn.extend({
  4363. prop: function(name, value) {
  4364. return access(this, jQuery.prop, name, value, arguments.length > 1);
  4365. },
  4366. removeProp: function(name) {
  4367. return this.each(function() {
  4368. delete this[jQuery.propFix[name] || name];
  4369. });
  4370. }
  4371. });
  4372. jQuery.extend({
  4373. prop: function(elem, name, value) {
  4374. var ret, hooks, nType = elem.nodeType;
  4375. if (nType === 3 || nType === 8 || nType === 2) {
  4376. return;
  4377. }
  4378. if (nType !== 1 || !jQuery.isXMLDoc(elem)) {
  4379. name = jQuery.propFix[name] || name;
  4380. hooks = jQuery.propHooks[name];
  4381. }
  4382. if (value !== void 0) {
  4383. if (hooks && "set" in hooks && (ret = hooks.set(elem, value, name)) !== void 0) {
  4384. return ret;
  4385. }
  4386. return elem[name] = value;
  4387. }
  4388. if (hooks && "get" in hooks && (ret = hooks.get(elem, name)) !== null) {
  4389. return ret;
  4390. }
  4391. return elem[name];
  4392. },
  4393. propHooks: {
  4394. tabIndex: {
  4395. get: function(elem) {
  4396. var tabindex = jQuery.find.attr(elem, "tabindex");
  4397. if (tabindex) {
  4398. return parseInt(tabindex, 10);
  4399. }
  4400. if (rfocusable.test(elem.nodeName) || rclickable.test(elem.nodeName) && elem.href) {
  4401. return 0;
  4402. }
  4403. return -1;
  4404. }
  4405. }
  4406. },
  4407. propFix: {
  4408. "for": "htmlFor",
  4409. "class": "className"
  4410. }
  4411. });
  4412. if (!support.optSelected) {
  4413. jQuery.propHooks.selected = {
  4414. get: function(elem) {
  4415. var parent = elem.parentNode;
  4416. if (parent && parent.parentNode) {
  4417. parent.parentNode.selectedIndex;
  4418. }
  4419. return null;
  4420. },
  4421. set: function(elem) {
  4422. var parent = elem.parentNode;
  4423. if (parent) {
  4424. parent.selectedIndex;
  4425. if (parent.parentNode) {
  4426. parent.parentNode.selectedIndex;
  4427. }
  4428. }
  4429. }
  4430. };
  4431. }
  4432. jQuery.each([
  4433. "tabIndex",
  4434. "readOnly",
  4435. "maxLength",
  4436. "cellSpacing",
  4437. "cellPadding",
  4438. "rowSpan",
  4439. "colSpan",
  4440. "useMap",
  4441. "frameBorder",
  4442. "contentEditable"
  4443. ], function() {
  4444. jQuery.propFix[this.toLowerCase()] = this;
  4445. });
  4446. function stripAndCollapse(value) {
  4447. var tokens = value.match(rnothtmlwhite) || [];
  4448. return tokens.join(" ");
  4449. }
  4450. function getClass(elem) {
  4451. return elem.getAttribute && elem.getAttribute("class") || "";
  4452. }
  4453. function classesToArray(value) {
  4454. if (Array.isArray(value)) {
  4455. return value;
  4456. }
  4457. if (typeof value === "string") {
  4458. return value.match(rnothtmlwhite) || [];
  4459. }
  4460. return [];
  4461. }
  4462. jQuery.fn.extend({
  4463. addClass: function(value) {
  4464. var classes, elem, cur, curValue, clazz, j, finalValue, i = 0;
  4465. if (isFunction(value)) {
  4466. return this.each(function(j2) {
  4467. jQuery(this).addClass(value.call(this, j2, getClass(this)));
  4468. });
  4469. }
  4470. classes = classesToArray(value);
  4471. if (classes.length) {
  4472. while (elem = this[i++]) {
  4473. curValue = getClass(elem);
  4474. cur = elem.nodeType === 1 && " " + stripAndCollapse(curValue) + " ";
  4475. if (cur) {
  4476. j = 0;
  4477. while (clazz = classes[j++]) {
  4478. if (cur.indexOf(" " + clazz + " ") < 0) {
  4479. cur += clazz + " ";
  4480. }
  4481. }
  4482. finalValue = stripAndCollapse(cur);
  4483. if (curValue !== finalValue) {
  4484. elem.setAttribute("class", finalValue);
  4485. }
  4486. }
  4487. }
  4488. }
  4489. return this;
  4490. },
  4491. removeClass: function(value) {
  4492. var classes, elem, cur, curValue, clazz, j, finalValue, i = 0;
  4493. if (isFunction(value)) {
  4494. return this.each(function(j2) {
  4495. jQuery(this).removeClass(value.call(this, j2, getClass(this)));
  4496. });
  4497. }
  4498. if (!arguments.length) {
  4499. return this.attr("class", "");
  4500. }
  4501. classes = classesToArray(value);
  4502. if (classes.length) {
  4503. while (elem = this[i++]) {
  4504. curValue = getClass(elem);
  4505. cur = elem.nodeType === 1 && " " + stripAndCollapse(curValue) + " ";
  4506. if (cur) {
  4507. j = 0;
  4508. while (clazz = classes[j++]) {
  4509. while (cur.indexOf(" " + clazz + " ") > -1) {
  4510. cur = cur.replace(" " + clazz + " ", " ");
  4511. }
  4512. }
  4513. finalValue = stripAndCollapse(cur);
  4514. if (curValue !== finalValue) {
  4515. elem.setAttribute("class", finalValue);
  4516. }
  4517. }
  4518. }
  4519. }
  4520. return this;
  4521. },
  4522. toggleClass: function(value, stateVal) {
  4523. var type = typeof value, isValidValue = type === "string" || Array.isArray(value);
  4524. if (typeof stateVal === "boolean" && isValidValue) {
  4525. return stateVal ? this.addClass(value) : this.removeClass(value);
  4526. }
  4527. if (isFunction(value)) {
  4528. return this.each(function(i) {
  4529. jQuery(this).toggleClass(value.call(this, i, getClass(this), stateVal), stateVal);
  4530. });
  4531. }
  4532. return this.each(function() {
  4533. var className, i, self, classNames;
  4534. if (isValidValue) {
  4535. i = 0;
  4536. self = jQuery(this);
  4537. classNames = classesToArray(value);
  4538. while (className = classNames[i++]) {
  4539. if (self.hasClass(className)) {
  4540. self.removeClass(className);
  4541. } else {
  4542. self.addClass(className);
  4543. }
  4544. }
  4545. } else if (value === void 0 || type === "boolean") {
  4546. className = getClass(this);
  4547. if (className) {
  4548. dataPriv.set(this, "__className__", className);
  4549. }
  4550. if (this.setAttribute) {
  4551. this.setAttribute("class", className || value === false ? "" : dataPriv.get(this, "__className__") || "");
  4552. }
  4553. }
  4554. });
  4555. },
  4556. hasClass: function(selector) {
  4557. var className, elem, i = 0;
  4558. className = " " + selector + " ";
  4559. while (elem = this[i++]) {
  4560. if (elem.nodeType === 1 && (" " + stripAndCollapse(getClass(elem)) + " ").indexOf(className) > -1) {
  4561. return true;
  4562. }
  4563. }
  4564. return false;
  4565. }
  4566. });
  4567. var rreturn = /\r/g;
  4568. jQuery.fn.extend({
  4569. val: function(value) {
  4570. var hooks, ret, valueIsFunction, elem = this[0];
  4571. if (!arguments.length) {
  4572. if (elem) {
  4573. hooks = jQuery.valHooks[elem.type] || jQuery.valHooks[elem.nodeName.toLowerCase()];
  4574. if (hooks && "get" in hooks && (ret = hooks.get(elem, "value")) !== void 0) {
  4575. return ret;
  4576. }
  4577. ret = elem.value;
  4578. if (typeof ret === "string") {
  4579. return ret.replace(rreturn, "");
  4580. }
  4581. return ret == null ? "" : ret;
  4582. }
  4583. return;
  4584. }
  4585. valueIsFunction = isFunction(value);
  4586. return this.each(function(i) {
  4587. var val;
  4588. if (this.nodeType !== 1) {
  4589. return;
  4590. }
  4591. if (valueIsFunction) {
  4592. val = value.call(this, i, jQuery(this).val());
  4593. } else {
  4594. val = value;
  4595. }
  4596. if (val == null) {
  4597. val = "";
  4598. } else if (typeof val === "number") {
  4599. val += "";
  4600. } else if (Array.isArray(val)) {
  4601. val = jQuery.map(val, function(value2) {
  4602. return value2 == null ? "" : value2 + "";
  4603. });
  4604. }
  4605. hooks = jQuery.valHooks[this.type] || jQuery.valHooks[this.nodeName.toLowerCase()];
  4606. if (!hooks || !("set" in hooks) || hooks.set(this, val, "value") === void 0) {
  4607. this.value = val;
  4608. }
  4609. });
  4610. }
  4611. });
  4612. jQuery.extend({
  4613. valHooks: {
  4614. option: {
  4615. get: function(elem) {
  4616. var val = jQuery.find.attr(elem, "value");
  4617. return val != null ? val : stripAndCollapse(jQuery.text(elem));
  4618. }
  4619. },
  4620. select: {
  4621. get: function(elem) {
  4622. var value, option, i, options = elem.options, index = elem.selectedIndex, one = elem.type === "select-one", values = one ? null : [], max = one ? index + 1 : options.length;
  4623. if (index < 0) {
  4624. i = max;
  4625. } else {
  4626. i = one ? index : 0;
  4627. }
  4628. for (; i < max; i++) {
  4629. option = options[i];
  4630. if ((option.selected || i === index) && !option.disabled && (!option.parentNode.disabled || !nodeName(option.parentNode, "optgroup"))) {
  4631. value = jQuery(option).val();
  4632. if (one) {
  4633. return value;
  4634. }
  4635. values.push(value);
  4636. }
  4637. }
  4638. return values;
  4639. },
  4640. set: function(elem, value) {
  4641. var optionSet, option, options = elem.options, values = jQuery.makeArray(value), i = options.length;
  4642. while (i--) {
  4643. option = options[i];
  4644. if (option.selected = jQuery.inArray(jQuery.valHooks.option.get(option), values) > -1) {
  4645. optionSet = true;
  4646. }
  4647. }
  4648. if (!optionSet) {
  4649. elem.selectedIndex = -1;
  4650. }
  4651. return values;
  4652. }
  4653. }
  4654. }
  4655. });
  4656. jQuery.each(["radio", "checkbox"], function() {
  4657. jQuery.valHooks[this] = {
  4658. set: function(elem, value) {
  4659. if (Array.isArray(value)) {
  4660. return elem.checked = jQuery.inArray(jQuery(elem).val(), value) > -1;
  4661. }
  4662. }
  4663. };
  4664. if (!support.checkOn) {
  4665. jQuery.valHooks[this].get = function(elem) {
  4666. return elem.getAttribute("value") === null ? "on" : elem.value;
  4667. };
  4668. }
  4669. });
  4670. support.focusin = "onfocusin" in window2;
  4671. var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, stopPropagationCallback = function(e) {
  4672. e.stopPropagation();
  4673. };
  4674. jQuery.extend(jQuery.event, {
  4675. trigger: function(event, data, elem, onlyHandlers) {
  4676. var i, cur, tmp, bubbleType, ontype, handle, special, lastElement, eventPath = [elem || document], type = hasOwn.call(event, "type") ? event.type : event, namespaces = hasOwn.call(event, "namespace") ? event.namespace.split(".") : [];
  4677. cur = lastElement = tmp = elem = elem || document;
  4678. if (elem.nodeType === 3 || elem.nodeType === 8) {
  4679. return;
  4680. }
  4681. if (rfocusMorph.test(type + jQuery.event.triggered)) {
  4682. return;
  4683. }
  4684. if (type.indexOf(".") > -1) {
  4685. namespaces = type.split(".");
  4686. type = namespaces.shift();
  4687. namespaces.sort();
  4688. }
  4689. ontype = type.indexOf(":") < 0 && "on" + type;
  4690. event = event[jQuery.expando] ? event : new jQuery.Event(type, typeof event === "object" && event);
  4691. event.isTrigger = onlyHandlers ? 2 : 3;
  4692. event.namespace = namespaces.join(".");
  4693. event.rnamespace = event.namespace ? new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)") : null;
  4694. event.result = void 0;
  4695. if (!event.target) {
  4696. event.target = elem;
  4697. }
  4698. data = data == null ? [event] : jQuery.makeArray(data, [event]);
  4699. special = jQuery.event.special[type] || {};
  4700. if (!onlyHandlers && special.trigger && special.trigger.apply(elem, data) === false) {
  4701. return;
  4702. }
  4703. if (!onlyHandlers && !special.noBubble && !isWindow(elem)) {
  4704. bubbleType = special.delegateType || type;
  4705. if (!rfocusMorph.test(bubbleType + type)) {
  4706. cur = cur.parentNode;
  4707. }
  4708. for (; cur; cur = cur.parentNode) {
  4709. eventPath.push(cur);
  4710. tmp = cur;
  4711. }
  4712. if (tmp === (elem.ownerDocument || document)) {
  4713. eventPath.push(tmp.defaultView || tmp.parentWindow || window2);
  4714. }
  4715. }
  4716. i = 0;
  4717. while ((cur = eventPath[i++]) && !event.isPropagationStopped()) {
  4718. lastElement = cur;
  4719. event.type = i > 1 ? bubbleType : special.bindType || type;
  4720. handle = (dataPriv.get(cur, "events") || Object.create(null))[event.type] && dataPriv.get(cur, "handle");
  4721. if (handle) {
  4722. handle.apply(cur, data);
  4723. }
  4724. handle = ontype && cur[ontype];
  4725. if (handle && handle.apply && acceptData(cur)) {
  4726. event.result = handle.apply(cur, data);
  4727. if (event.result === false) {
  4728. event.preventDefault();
  4729. }
  4730. }
  4731. }
  4732. event.type = type;
  4733. if (!onlyHandlers && !event.isDefaultPrevented()) {
  4734. if ((!special._default || special._default.apply(eventPath.pop(), data) === false) && acceptData(elem)) {
  4735. if (ontype && isFunction(elem[type]) && !isWindow(elem)) {
  4736. tmp = elem[ontype];
  4737. if (tmp) {
  4738. elem[ontype] = null;
  4739. }
  4740. jQuery.event.triggered = type;
  4741. if (event.isPropagationStopped()) {
  4742. lastElement.addEventListener(type, stopPropagationCallback);
  4743. }
  4744. elem[type]();
  4745. if (event.isPropagationStopped()) {
  4746. lastElement.removeEventListener(type, stopPropagationCallback);
  4747. }
  4748. jQuery.event.triggered = void 0;
  4749. if (tmp) {
  4750. elem[ontype] = tmp;
  4751. }
  4752. }
  4753. }
  4754. }
  4755. return event.result;
  4756. },
  4757. simulate: function(type, elem, event) {
  4758. var e = jQuery.extend(new jQuery.Event(), event, {
  4759. type,
  4760. isSimulated: true
  4761. });
  4762. jQuery.event.trigger(e, null, elem);
  4763. }
  4764. });
  4765. jQuery.fn.extend({
  4766. trigger: function(type, data) {
  4767. return this.each(function() {
  4768. jQuery.event.trigger(type, data, this);
  4769. });
  4770. },
  4771. triggerHandler: function(type, data) {
  4772. var elem = this[0];
  4773. if (elem) {
  4774. return jQuery.event.trigger(type, data, elem, true);
  4775. }
  4776. }
  4777. });
  4778. if (!support.focusin) {
  4779. jQuery.each({ focus: "focusin", blur: "focusout" }, function(orig, fix) {
  4780. var handler = function(event) {
  4781. jQuery.event.simulate(fix, event.target, jQuery.event.fix(event));
  4782. };
  4783. jQuery.event.special[fix] = {
  4784. setup: function() {
  4785. var doc = this.ownerDocument || this.document || this, attaches = dataPriv.access(doc, fix);
  4786. if (!attaches) {
  4787. doc.addEventListener(orig, handler, true);
  4788. }
  4789. dataPriv.access(doc, fix, (attaches || 0) + 1);
  4790. },
  4791. teardown: function() {
  4792. var doc = this.ownerDocument || this.document || this, attaches = dataPriv.access(doc, fix) - 1;
  4793. if (!attaches) {
  4794. doc.removeEventListener(orig, handler, true);
  4795. dataPriv.remove(doc, fix);
  4796. } else {
  4797. dataPriv.access(doc, fix, attaches);
  4798. }
  4799. }
  4800. };
  4801. });
  4802. }
  4803. var location = window2.location;
  4804. var nonce = { guid: Date.now() };
  4805. var rquery = /\?/;
  4806. jQuery.parseXML = function(data) {
  4807. var xml, parserErrorElem;
  4808. if (!data || typeof data !== "string") {
  4809. return null;
  4810. }
  4811. try {
  4812. xml = new window2.DOMParser().parseFromString(data, "text/xml");
  4813. } catch (e) {
  4814. }
  4815. parserErrorElem = xml && xml.getElementsByTagName("parsererror")[0];
  4816. if (!xml || parserErrorElem) {
  4817. jQuery.error("Invalid XML: " + (parserErrorElem ? jQuery.map(parserErrorElem.childNodes, function(el) {
  4818. return el.textContent;
  4819. }).join("\n") : data));
  4820. }
  4821. return xml;
  4822. };
  4823. var rbracket = /\[\]$/, rCRLF = /\r?\n/g, rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i, rsubmittable = /^(?:input|select|textarea|keygen)/i;
  4824. function buildParams(prefix, obj, traditional, add) {
  4825. var name;
  4826. if (Array.isArray(obj)) {
  4827. jQuery.each(obj, function(i, v) {
  4828. if (traditional || rbracket.test(prefix)) {
  4829. add(prefix, v);
  4830. } else {
  4831. buildParams(prefix + "[" + (typeof v === "object" && v != null ? i : "") + "]", v, traditional, add);
  4832. }
  4833. });
  4834. } else if (!traditional && toType(obj) === "object") {
  4835. for (name in obj) {
  4836. buildParams(prefix + "[" + name + "]", obj[name], traditional, add);
  4837. }
  4838. } else {
  4839. add(prefix, obj);
  4840. }
  4841. }
  4842. jQuery.param = function(a, traditional) {
  4843. var prefix, s = [], add = function(key, valueOrFunction) {
  4844. var value = isFunction(valueOrFunction) ? valueOrFunction() : valueOrFunction;
  4845. s[s.length] = encodeURIComponent(key) + "=" + encodeURIComponent(value == null ? "" : value);
  4846. };
  4847. if (a == null) {
  4848. return "";
  4849. }
  4850. if (Array.isArray(a) || a.jquery && !jQuery.isPlainObject(a)) {
  4851. jQuery.each(a, function() {
  4852. add(this.name, this.value);
  4853. });
  4854. } else {
  4855. for (prefix in a) {
  4856. buildParams(prefix, a[prefix], traditional, add);
  4857. }
  4858. }
  4859. return s.join("&");
  4860. };
  4861. jQuery.fn.extend({
  4862. serialize: function() {
  4863. return jQuery.param(this.serializeArray());
  4864. },
  4865. serializeArray: function() {
  4866. return this.map(function() {
  4867. var elements = jQuery.prop(this, "elements");
  4868. return elements ? jQuery.makeArray(elements) : this;
  4869. }).filter(function() {
  4870. var type = this.type;
  4871. return this.name && !jQuery(this).is(":disabled") && rsubmittable.test(this.nodeName) && !rsubmitterTypes.test(type) && (this.checked || !rcheckableType.test(type));
  4872. }).map(function(_i, elem) {
  4873. var val = jQuery(this).val();
  4874. if (val == null) {
  4875. return null;
  4876. }
  4877. if (Array.isArray(val)) {
  4878. return jQuery.map(val, function(val2) {
  4879. return { name: elem.name, value: val2.replace(rCRLF, "\r\n") };
  4880. });
  4881. }
  4882. return { name: elem.name, value: val.replace(rCRLF, "\r\n") };
  4883. }).get();
  4884. }
  4885. });
  4886. var r20 = /%20/g, rhash = /#.*$/, rantiCache = /([?&])_=[^&]*/, rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg, rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, rnoContent = /^(?:GET|HEAD)$/, rprotocol = /^\/\//, prefilters = {}, transports = {}, allTypes = "*/".concat("*"), originAnchor = document.createElement("a");
  4887. originAnchor.href = location.href;
  4888. function addToPrefiltersOrTransports(structure) {
  4889. return function(dataTypeExpression, func) {
  4890. if (typeof dataTypeExpression !== "string") {
  4891. func = dataTypeExpression;
  4892. dataTypeExpression = "*";
  4893. }
  4894. var dataType, i = 0, dataTypes = dataTypeExpression.toLowerCase().match(rnothtmlwhite) || [];
  4895. if (isFunction(func)) {
  4896. while (dataType = dataTypes[i++]) {
  4897. if (dataType[0] === "+") {
  4898. dataType = dataType.slice(1) || "*";
  4899. (structure[dataType] = structure[dataType] || []).unshift(func);
  4900. } else {
  4901. (structure[dataType] = structure[dataType] || []).push(func);
  4902. }
  4903. }
  4904. }
  4905. };
  4906. }
  4907. function inspectPrefiltersOrTransports(structure, options, originalOptions, jqXHR) {
  4908. var inspected = {}, seekingTransport = structure === transports;
  4909. function inspect(dataType) {
  4910. var selected;
  4911. inspected[dataType] = true;
  4912. jQuery.each(structure[dataType] || [], function(_, prefilterOrFactory) {
  4913. var dataTypeOrTransport = prefilterOrFactory(options, originalOptions, jqXHR);
  4914. if (typeof dataTypeOrTransport === "string" && !seekingTransport && !inspected[dataTypeOrTransport]) {
  4915. options.dataTypes.unshift(dataTypeOrTransport);
  4916. inspect(dataTypeOrTransport);
  4917. return false;
  4918. } else if (seekingTransport) {
  4919. return !(selected = dataTypeOrTransport);
  4920. }
  4921. });
  4922. return selected;
  4923. }
  4924. return inspect(options.dataTypes[0]) || !inspected["*"] && inspect("*");
  4925. }
  4926. function ajaxExtend(target, src) {
  4927. var key, deep, flatOptions = jQuery.ajaxSettings.flatOptions || {};
  4928. for (key in src) {
  4929. if (src[key] !== void 0) {
  4930. (flatOptions[key] ? target : deep || (deep = {}))[key] = src[key];
  4931. }
  4932. }
  4933. if (deep) {
  4934. jQuery.extend(true, target, deep);
  4935. }
  4936. return target;
  4937. }
  4938. function ajaxHandleResponses(s, jqXHR, responses) {
  4939. var ct, type, finalDataType, firstDataType, contents = s.contents, dataTypes = s.dataTypes;
  4940. while (dataTypes[0] === "*") {
  4941. dataTypes.shift();
  4942. if (ct === void 0) {
  4943. ct = s.mimeType || jqXHR.getResponseHeader("Content-Type");
  4944. }
  4945. }
  4946. if (ct) {
  4947. for (type in contents) {
  4948. if (contents[type] && contents[type].test(ct)) {
  4949. dataTypes.unshift(type);
  4950. break;
  4951. }
  4952. }
  4953. }
  4954. if (dataTypes[0] in responses) {
  4955. finalDataType = dataTypes[0];
  4956. } else {
  4957. for (type in responses) {
  4958. if (!dataTypes[0] || s.converters[type + " " + dataTypes[0]]) {
  4959. finalDataType = type;
  4960. break;
  4961. }
  4962. if (!firstDataType) {
  4963. firstDataType = type;
  4964. }
  4965. }
  4966. finalDataType = finalDataType || firstDataType;
  4967. }
  4968. if (finalDataType) {
  4969. if (finalDataType !== dataTypes[0]) {
  4970. dataTypes.unshift(finalDataType);
  4971. }
  4972. return responses[finalDataType];
  4973. }
  4974. }
  4975. function ajaxConvert(s, response, jqXHR, isSuccess) {
  4976. var conv2, current, conv, tmp, prev, converters = {}, dataTypes = s.dataTypes.slice();
  4977. if (dataTypes[1]) {
  4978. for (conv in s.converters) {
  4979. converters[conv.toLowerCase()] = s.converters[conv];
  4980. }
  4981. }
  4982. current = dataTypes.shift();
  4983. while (current) {
  4984. if (s.responseFields[current]) {
  4985. jqXHR[s.responseFields[current]] = response;
  4986. }
  4987. if (!prev && isSuccess && s.dataFilter) {
  4988. response = s.dataFilter(response, s.dataType);
  4989. }
  4990. prev = current;
  4991. current = dataTypes.shift();
  4992. if (current) {
  4993. if (current === "*") {
  4994. current = prev;
  4995. } else if (prev !== "*" && prev !== current) {
  4996. conv = converters[prev + " " + current] || converters["* " + current];
  4997. if (!conv) {
  4998. for (conv2 in converters) {
  4999. tmp = conv2.split(" ");
  5000. if (tmp[1] === current) {
  5001. conv = converters[prev + " " + tmp[0]] || converters["* " + tmp[0]];
  5002. if (conv) {
  5003. if (conv === true) {
  5004. conv = converters[conv2];
  5005. } else if (converters[conv2] !== true) {
  5006. current = tmp[0];
  5007. dataTypes.unshift(tmp[1]);
  5008. }
  5009. break;
  5010. }
  5011. }
  5012. }
  5013. }
  5014. if (conv !== true) {
  5015. if (conv && s.throws) {
  5016. response = conv(response);
  5017. } else {
  5018. try {
  5019. response = conv(response);
  5020. } catch (e) {
  5021. return {
  5022. state: "parsererror",
  5023. error: conv ? e : "No conversion from " + prev + " to " + current
  5024. };
  5025. }
  5026. }
  5027. }
  5028. }
  5029. }
  5030. }
  5031. return { state: "success", data: response };
  5032. }
  5033. jQuery.extend({
  5034. active: 0,
  5035. lastModified: {},
  5036. etag: {},
  5037. ajaxSettings: {
  5038. url: location.href,
  5039. type: "GET",
  5040. isLocal: rlocalProtocol.test(location.protocol),
  5041. global: true,
  5042. processData: true,
  5043. async: true,
  5044. contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  5045. accepts: {
  5046. "*": allTypes,
  5047. text: "text/plain",
  5048. html: "text/html",
  5049. xml: "application/xml, text/xml",
  5050. json: "application/json, text/javascript"
  5051. },
  5052. contents: {
  5053. xml: /\bxml\b/,
  5054. html: /\bhtml/,
  5055. json: /\bjson\b/
  5056. },
  5057. responseFields: {
  5058. xml: "responseXML",
  5059. text: "responseText",
  5060. json: "responseJSON"
  5061. },
  5062. converters: {
  5063. "* text": String,
  5064. "text html": true,
  5065. "text json": JSON.parse,
  5066. "text xml": jQuery.parseXML
  5067. },
  5068. flatOptions: {
  5069. url: true,
  5070. context: true
  5071. }
  5072. },
  5073. ajaxSetup: function(target, settings) {
  5074. return settings ? ajaxExtend(ajaxExtend(target, jQuery.ajaxSettings), settings) : ajaxExtend(jQuery.ajaxSettings, target);
  5075. },
  5076. ajaxPrefilter: addToPrefiltersOrTransports(prefilters),
  5077. ajaxTransport: addToPrefiltersOrTransports(transports),
  5078. ajax: function(url, options) {
  5079. if (typeof url === "object") {
  5080. options = url;
  5081. url = void 0;
  5082. }
  5083. options = options || {};
  5084. var transport, cacheURL, responseHeadersString, responseHeaders, timeoutTimer, urlAnchor, completed2, fireGlobals, i, uncached, s = jQuery.ajaxSetup({}, options), callbackContext = s.context || s, globalEventContext = s.context && (callbackContext.nodeType || callbackContext.jquery) ? jQuery(callbackContext) : jQuery.event, deferred = jQuery.Deferred(), completeDeferred = jQuery.Callbacks("once memory"), statusCode = s.statusCode || {}, requestHeaders = {}, requestHeadersNames = {}, strAbort = "canceled", jqXHR = {
  5085. readyState: 0,
  5086. getResponseHeader: function(key) {
  5087. var match;
  5088. if (completed2) {
  5089. if (!responseHeaders) {
  5090. responseHeaders = {};
  5091. while (match = rheaders.exec(responseHeadersString)) {
  5092. responseHeaders[match[1].toLowerCase() + " "] = (responseHeaders[match[1].toLowerCase() + " "] || []).concat(match[2]);
  5093. }
  5094. }
  5095. match = responseHeaders[key.toLowerCase() + " "];
  5096. }
  5097. return match == null ? null : match.join(", ");
  5098. },
  5099. getAllResponseHeaders: function() {
  5100. return completed2 ? responseHeadersString : null;
  5101. },
  5102. setRequestHeader: function(name, value) {
  5103. if (completed2 == null) {
  5104. name = requestHeadersNames[name.toLowerCase()] = requestHeadersNames[name.toLowerCase()] || name;
  5105. requestHeaders[name] = value;
  5106. }
  5107. return this;
  5108. },
  5109. overrideMimeType: function(type) {
  5110. if (completed2 == null) {
  5111. s.mimeType = type;
  5112. }
  5113. return this;
  5114. },
  5115. statusCode: function(map) {
  5116. var code;
  5117. if (map) {
  5118. if (completed2) {
  5119. jqXHR.always(map[jqXHR.status]);
  5120. } else {
  5121. for (code in map) {
  5122. statusCode[code] = [statusCode[code], map[code]];
  5123. }
  5124. }
  5125. }
  5126. return this;
  5127. },
  5128. abort: function(statusText) {
  5129. var finalText = statusText || strAbort;
  5130. if (transport) {
  5131. transport.abort(finalText);
  5132. }
  5133. done(0, finalText);
  5134. return this;
  5135. }
  5136. };
  5137. deferred.promise(jqXHR);
  5138. s.url = ((url || s.url || location.href) + "").replace(rprotocol, location.protocol + "//");
  5139. s.type = options.method || options.type || s.method || s.type;
  5140. s.dataTypes = (s.dataType || "*").toLowerCase().match(rnothtmlwhite) || [""];
  5141. if (s.crossDomain == null) {
  5142. urlAnchor = document.createElement("a");
  5143. try {
  5144. urlAnchor.href = s.url;
  5145. urlAnchor.href = urlAnchor.href;
  5146. s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !== urlAnchor.protocol + "//" + urlAnchor.host;
  5147. } catch (e) {
  5148. s.crossDomain = true;
  5149. }
  5150. }
  5151. if (s.data && s.processData && typeof s.data !== "string") {
  5152. s.data = jQuery.param(s.data, s.traditional);
  5153. }
  5154. inspectPrefiltersOrTransports(prefilters, s, options, jqXHR);
  5155. if (completed2) {
  5156. return jqXHR;
  5157. }
  5158. fireGlobals = jQuery.event && s.global;
  5159. if (fireGlobals && jQuery.active++ === 0) {
  5160. jQuery.event.trigger("ajaxStart");
  5161. }
  5162. s.type = s.type.toUpperCase();
  5163. s.hasContent = !rnoContent.test(s.type);
  5164. cacheURL = s.url.replace(rhash, "");
  5165. if (!s.hasContent) {
  5166. uncached = s.url.slice(cacheURL.length);
  5167. if (s.data && (s.processData || typeof s.data === "string")) {
  5168. cacheURL += (rquery.test(cacheURL) ? "&" : "?") + s.data;
  5169. delete s.data;
  5170. }
  5171. if (s.cache === false) {
  5172. cacheURL = cacheURL.replace(rantiCache, "$1");
  5173. uncached = (rquery.test(cacheURL) ? "&" : "?") + "_=" + nonce.guid++ + uncached;
  5174. }
  5175. s.url = cacheURL + uncached;
  5176. } else if (s.data && s.processData && (s.contentType || "").indexOf("application/x-www-form-urlencoded") === 0) {
  5177. s.data = s.data.replace(r20, "+");
  5178. }
  5179. if (s.ifModified) {
  5180. if (jQuery.lastModified[cacheURL]) {
  5181. jqXHR.setRequestHeader("If-Modified-Since", jQuery.lastModified[cacheURL]);
  5182. }
  5183. if (jQuery.etag[cacheURL]) {
  5184. jqXHR.setRequestHeader("If-None-Match", jQuery.etag[cacheURL]);
  5185. }
  5186. }
  5187. if (s.data && s.hasContent && s.contentType !== false || options.contentType) {
  5188. jqXHR.setRequestHeader("Content-Type", s.contentType);
  5189. }
  5190. jqXHR.setRequestHeader("Accept", s.dataTypes[0] && s.accepts[s.dataTypes[0]] ? s.accepts[s.dataTypes[0]] + (s.dataTypes[0] !== "*" ? ", " + allTypes + "; q=0.01" : "") : s.accepts["*"]);
  5191. for (i in s.headers) {
  5192. jqXHR.setRequestHeader(i, s.headers[i]);
  5193. }
  5194. if (s.beforeSend && (s.beforeSend.call(callbackContext, jqXHR, s) === false || completed2)) {
  5195. return jqXHR.abort();
  5196. }
  5197. strAbort = "abort";
  5198. completeDeferred.add(s.complete);
  5199. jqXHR.done(s.success);
  5200. jqXHR.fail(s.error);
  5201. transport = inspectPrefiltersOrTransports(transports, s, options, jqXHR);
  5202. if (!transport) {
  5203. done(-1, "No Transport");
  5204. } else {
  5205. jqXHR.readyState = 1;
  5206. if (fireGlobals) {
  5207. globalEventContext.trigger("ajaxSend", [jqXHR, s]);
  5208. }
  5209. if (completed2) {
  5210. return jqXHR;
  5211. }
  5212. if (s.async && s.timeout > 0) {
  5213. timeoutTimer = window2.setTimeout(function() {
  5214. jqXHR.abort("timeout");
  5215. }, s.timeout);
  5216. }
  5217. try {
  5218. completed2 = false;
  5219. transport.send(requestHeaders, done);
  5220. } catch (e) {
  5221. if (completed2) {
  5222. throw e;
  5223. }
  5224. done(-1, e);
  5225. }
  5226. }
  5227. function done(status, nativeStatusText, responses, headers) {
  5228. var isSuccess, success, error, response, modified, statusText = nativeStatusText;
  5229. if (completed2) {
  5230. return;
  5231. }
  5232. completed2 = true;
  5233. if (timeoutTimer) {
  5234. window2.clearTimeout(timeoutTimer);
  5235. }
  5236. transport = void 0;
  5237. responseHeadersString = headers || "";
  5238. jqXHR.readyState = status > 0 ? 4 : 0;
  5239. isSuccess = status >= 200 && status < 300 || status === 304;
  5240. if (responses) {
  5241. response = ajaxHandleResponses(s, jqXHR, responses);
  5242. }
  5243. if (!isSuccess && jQuery.inArray("script", s.dataTypes) > -1 && jQuery.inArray("json", s.dataTypes) < 0) {
  5244. s.converters["text script"] = function() {
  5245. };
  5246. }
  5247. response = ajaxConvert(s, response, jqXHR, isSuccess);
  5248. if (isSuccess) {
  5249. if (s.ifModified) {
  5250. modified = jqXHR.getResponseHeader("Last-Modified");
  5251. if (modified) {
  5252. jQuery.lastModified[cacheURL] = modified;
  5253. }
  5254. modified = jqXHR.getResponseHeader("etag");
  5255. if (modified) {
  5256. jQuery.etag[cacheURL] = modified;
  5257. }
  5258. }
  5259. if (status === 204 || s.type === "HEAD") {
  5260. statusText = "nocontent";
  5261. } else if (status === 304) {
  5262. statusText = "notmodified";
  5263. } else {
  5264. statusText = response.state;
  5265. success = response.data;
  5266. error = response.error;
  5267. isSuccess = !error;
  5268. }
  5269. } else {
  5270. error = statusText;
  5271. if (status || !statusText) {
  5272. statusText = "error";
  5273. if (status < 0) {
  5274. status = 0;
  5275. }
  5276. }
  5277. }
  5278. jqXHR.status = status;
  5279. jqXHR.statusText = (nativeStatusText || statusText) + "";
  5280. if (isSuccess) {
  5281. deferred.resolveWith(callbackContext, [success, statusText, jqXHR]);
  5282. } else {
  5283. deferred.rejectWith(callbackContext, [jqXHR, statusText, error]);
  5284. }
  5285. jqXHR.statusCode(statusCode);
  5286. statusCode = void 0;
  5287. if (fireGlobals) {
  5288. globalEventContext.trigger(isSuccess ? "ajaxSuccess" : "ajaxError", [jqXHR, s, isSuccess ? success : error]);
  5289. }
  5290. completeDeferred.fireWith(callbackContext, [jqXHR, statusText]);
  5291. if (fireGlobals) {
  5292. globalEventContext.trigger("ajaxComplete", [jqXHR, s]);
  5293. if (!--jQuery.active) {
  5294. jQuery.event.trigger("ajaxStop");
  5295. }
  5296. }
  5297. }
  5298. return jqXHR;
  5299. },
  5300. getJSON: function(url, data, callback) {
  5301. return jQuery.get(url, data, callback, "json");
  5302. },
  5303. getScript: function(url, callback) {
  5304. return jQuery.get(url, void 0, callback, "script");
  5305. }
  5306. });
  5307. jQuery.each(["get", "post"], function(_i, method) {
  5308. jQuery[method] = function(url, data, callback, type) {
  5309. if (isFunction(data)) {
  5310. type = type || callback;
  5311. callback = data;
  5312. data = void 0;
  5313. }
  5314. return jQuery.ajax(jQuery.extend({
  5315. url,
  5316. type: method,
  5317. dataType: type,
  5318. data,
  5319. success: callback
  5320. }, jQuery.isPlainObject(url) && url));
  5321. };
  5322. });
  5323. jQuery.ajaxPrefilter(function(s) {
  5324. var i;
  5325. for (i in s.headers) {
  5326. if (i.toLowerCase() === "content-type") {
  5327. s.contentType = s.headers[i] || "";
  5328. }
  5329. }
  5330. });
  5331. jQuery._evalUrl = function(url, options, doc) {
  5332. return jQuery.ajax({
  5333. url,
  5334. type: "GET",
  5335. dataType: "script",
  5336. cache: true,
  5337. async: false,
  5338. global: false,
  5339. converters: {
  5340. "text script": function() {
  5341. }
  5342. },
  5343. dataFilter: function(response) {
  5344. jQuery.globalEval(response, options, doc);
  5345. }
  5346. });
  5347. };
  5348. jQuery.fn.extend({
  5349. wrapAll: function(html) {
  5350. var wrap;
  5351. if (this[0]) {
  5352. if (isFunction(html)) {
  5353. html = html.call(this[0]);
  5354. }
  5355. wrap = jQuery(html, this[0].ownerDocument).eq(0).clone(true);
  5356. if (this[0].parentNode) {
  5357. wrap.insertBefore(this[0]);
  5358. }
  5359. wrap.map(function() {
  5360. var elem = this;
  5361. while (elem.firstElementChild) {
  5362. elem = elem.firstElementChild;
  5363. }
  5364. return elem;
  5365. }).append(this);
  5366. }
  5367. return this;
  5368. },
  5369. wrapInner: function(html) {
  5370. if (isFunction(html)) {
  5371. return this.each(function(i) {
  5372. jQuery(this).wrapInner(html.call(this, i));
  5373. });
  5374. }
  5375. return this.each(function() {
  5376. var self = jQuery(this), contents = self.contents();
  5377. if (contents.length) {
  5378. contents.wrapAll(html);
  5379. } else {
  5380. self.append(html);
  5381. }
  5382. });
  5383. },
  5384. wrap: function(html) {
  5385. var htmlIsFunction = isFunction(html);
  5386. return this.each(function(i) {
  5387. jQuery(this).wrapAll(htmlIsFunction ? html.call(this, i) : html);
  5388. });
  5389. },
  5390. unwrap: function(selector) {
  5391. this.parent(selector).not("body").each(function() {
  5392. jQuery(this).replaceWith(this.childNodes);
  5393. });
  5394. return this;
  5395. }
  5396. });
  5397. jQuery.expr.pseudos.hidden = function(elem) {
  5398. return !jQuery.expr.pseudos.visible(elem);
  5399. };
  5400. jQuery.expr.pseudos.visible = function(elem) {
  5401. return !!(elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length);
  5402. };
  5403. jQuery.ajaxSettings.xhr = function() {
  5404. try {
  5405. return new window2.XMLHttpRequest();
  5406. } catch (e) {
  5407. }
  5408. };
  5409. var xhrSuccessStatus = {
  5410. 0: 200,
  5411. 1223: 204
  5412. }, xhrSupported = jQuery.ajaxSettings.xhr();
  5413. support.cors = !!xhrSupported && "withCredentials" in xhrSupported;
  5414. support.ajax = xhrSupported = !!xhrSupported;
  5415. jQuery.ajaxTransport(function(options) {
  5416. var callback, errorCallback;
  5417. if (support.cors || xhrSupported && !options.crossDomain) {
  5418. return {
  5419. send: function(headers, complete) {
  5420. var i, xhr = options.xhr();
  5421. xhr.open(options.type, options.url, options.async, options.username, options.password);
  5422. if (options.xhrFields) {
  5423. for (i in options.xhrFields) {
  5424. xhr[i] = options.xhrFields[i];
  5425. }
  5426. }
  5427. if (options.mimeType && xhr.overrideMimeType) {
  5428. xhr.overrideMimeType(options.mimeType);
  5429. }
  5430. if (!options.crossDomain && !headers["X-Requested-With"]) {
  5431. headers["X-Requested-With"] = "XMLHttpRequest";
  5432. }
  5433. for (i in headers) {
  5434. xhr.setRequestHeader(i, headers[i]);
  5435. }
  5436. callback = function(type) {
  5437. return function() {
  5438. if (callback) {
  5439. callback = errorCallback = xhr.onload = xhr.onerror = xhr.onabort = xhr.ontimeout = xhr.onreadystatechange = null;
  5440. if (type === "abort") {
  5441. xhr.abort();
  5442. } else if (type === "error") {
  5443. if (typeof xhr.status !== "number") {
  5444. complete(0, "error");
  5445. } else {
  5446. complete(xhr.status, xhr.statusText);
  5447. }
  5448. } else {
  5449. complete(xhrSuccessStatus[xhr.status] || xhr.status, xhr.statusText, (xhr.responseType || "text") !== "text" || typeof xhr.responseText !== "string" ? { binary: xhr.response } : { text: xhr.responseText }, xhr.getAllResponseHeaders());
  5450. }
  5451. }
  5452. };
  5453. };
  5454. xhr.onload = callback();
  5455. errorCallback = xhr.onerror = xhr.ontimeout = callback("error");
  5456. if (xhr.onabort !== void 0) {
  5457. xhr.onabort = errorCallback;
  5458. } else {
  5459. xhr.onreadystatechange = function() {
  5460. if (xhr.readyState === 4) {
  5461. window2.setTimeout(function() {
  5462. if (callback) {
  5463. errorCallback();
  5464. }
  5465. });
  5466. }
  5467. };
  5468. }
  5469. callback = callback("abort");
  5470. try {
  5471. xhr.send(options.hasContent && options.data || null);
  5472. } catch (e) {
  5473. if (callback) {
  5474. throw e;
  5475. }
  5476. }
  5477. },
  5478. abort: function() {
  5479. if (callback) {
  5480. callback();
  5481. }
  5482. }
  5483. };
  5484. }
  5485. });
  5486. jQuery.ajaxPrefilter(function(s) {
  5487. if (s.crossDomain) {
  5488. s.contents.script = false;
  5489. }
  5490. });
  5491. jQuery.ajaxSetup({
  5492. accepts: {
  5493. script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
  5494. },
  5495. contents: {
  5496. script: /\b(?:java|ecma)script\b/
  5497. },
  5498. converters: {
  5499. "text script": function(text) {
  5500. jQuery.globalEval(text);
  5501. return text;
  5502. }
  5503. }
  5504. });
  5505. jQuery.ajaxPrefilter("script", function(s) {
  5506. if (s.cache === void 0) {
  5507. s.cache = false;
  5508. }
  5509. if (s.crossDomain) {
  5510. s.type = "GET";
  5511. }
  5512. });
  5513. jQuery.ajaxTransport("script", function(s) {
  5514. if (s.crossDomain || s.scriptAttrs) {
  5515. var script, callback;
  5516. return {
  5517. send: function(_, complete) {
  5518. script = jQuery("<script>").attr(s.scriptAttrs || {}).prop({ charset: s.scriptCharset, src: s.url }).on("load error", callback = function(evt) {
  5519. script.remove();
  5520. callback = null;
  5521. if (evt) {
  5522. complete(evt.type === "error" ? 404 : 200, evt.type);
  5523. }
  5524. });
  5525. document.head.appendChild(script[0]);
  5526. },
  5527. abort: function() {
  5528. if (callback) {
  5529. callback();
  5530. }
  5531. }
  5532. };
  5533. }
  5534. });
  5535. var oldCallbacks = [], rjsonp = /(=)\?(?=&|$)|\?\?/;
  5536. jQuery.ajaxSetup({
  5537. jsonp: "callback",
  5538. jsonpCallback: function() {
  5539. var callback = oldCallbacks.pop() || jQuery.expando + "_" + nonce.guid++;
  5540. this[callback] = true;
  5541. return callback;
  5542. }
  5543. });
  5544. jQuery.ajaxPrefilter("json jsonp", function(s, originalSettings, jqXHR) {
  5545. var callbackName, overwritten, responseContainer, jsonProp = s.jsonp !== false && (rjsonp.test(s.url) ? "url" : typeof s.data === "string" && (s.contentType || "").indexOf("application/x-www-form-urlencoded") === 0 && rjsonp.test(s.data) && "data");
  5546. if (jsonProp || s.dataTypes[0] === "jsonp") {
  5547. callbackName = s.jsonpCallback = isFunction(s.jsonpCallback) ? s.jsonpCallback() : s.jsonpCallback;
  5548. if (jsonProp) {
  5549. s[jsonProp] = s[jsonProp].replace(rjsonp, "$1" + callbackName);
  5550. } else if (s.jsonp !== false) {
  5551. s.url += (rquery.test(s.url) ? "&" : "?") + s.jsonp + "=" + callbackName;
  5552. }
  5553. s.converters["script json"] = function() {
  5554. if (!responseContainer) {
  5555. jQuery.error(callbackName + " was not called");
  5556. }
  5557. return responseContainer[0];
  5558. };
  5559. s.dataTypes[0] = "json";
  5560. overwritten = window2[callbackName];
  5561. window2[callbackName] = function() {
  5562. responseContainer = arguments;
  5563. };
  5564. jqXHR.always(function() {
  5565. if (overwritten === void 0) {
  5566. jQuery(window2).removeProp(callbackName);
  5567. } else {
  5568. window2[callbackName] = overwritten;
  5569. }
  5570. if (s[callbackName]) {
  5571. s.jsonpCallback = originalSettings.jsonpCallback;
  5572. oldCallbacks.push(callbackName);
  5573. }
  5574. if (responseContainer && isFunction(overwritten)) {
  5575. overwritten(responseContainer[0]);
  5576. }
  5577. responseContainer = overwritten = void 0;
  5578. });
  5579. return "script";
  5580. }
  5581. });
  5582. support.createHTMLDocument = function() {
  5583. var body = document.implementation.createHTMLDocument("").body;
  5584. body.innerHTML = "<form></form><form></form>";
  5585. return body.childNodes.length === 2;
  5586. }();
  5587. jQuery.parseHTML = function(data, context, keepScripts) {
  5588. if (typeof data !== "string") {
  5589. return [];
  5590. }
  5591. if (typeof context === "boolean") {
  5592. keepScripts = context;
  5593. context = false;
  5594. }
  5595. var base, parsed, scripts;
  5596. if (!context) {
  5597. if (support.createHTMLDocument) {
  5598. context = document.implementation.createHTMLDocument("");
  5599. base = context.createElement("base");
  5600. base.href = document.location.href;
  5601. context.head.appendChild(base);
  5602. } else {
  5603. context = document;
  5604. }
  5605. }
  5606. parsed = rsingleTag.exec(data);
  5607. scripts = !keepScripts && [];
  5608. if (parsed) {
  5609. return [context.createElement(parsed[1])];
  5610. }
  5611. parsed = buildFragment([data], context, scripts);
  5612. if (scripts && scripts.length) {
  5613. jQuery(scripts).remove();
  5614. }
  5615. return jQuery.merge([], parsed.childNodes);
  5616. };
  5617. jQuery.fn.load = function(url, params, callback) {
  5618. var selector, type, response, self = this, off = url.indexOf(" ");
  5619. if (off > -1) {
  5620. selector = stripAndCollapse(url.slice(off));
  5621. url = url.slice(0, off);
  5622. }
  5623. if (isFunction(params)) {
  5624. callback = params;
  5625. params = void 0;
  5626. } else if (params && typeof params === "object") {
  5627. type = "POST";
  5628. }
  5629. if (self.length > 0) {
  5630. jQuery.ajax({
  5631. url,
  5632. type: type || "GET",
  5633. dataType: "html",
  5634. data: params
  5635. }).done(function(responseText) {
  5636. response = arguments;
  5637. self.html(selector ? jQuery("<div>").append(jQuery.parseHTML(responseText)).find(selector) : responseText);
  5638. }).always(callback && function(jqXHR, status) {
  5639. self.each(function() {
  5640. callback.apply(this, response || [jqXHR.responseText, status, jqXHR]);
  5641. });
  5642. });
  5643. }
  5644. return this;
  5645. };
  5646. jQuery.expr.pseudos.animated = function(elem) {
  5647. return jQuery.grep(jQuery.timers, function(fn) {
  5648. return elem === fn.elem;
  5649. }).length;
  5650. };
  5651. jQuery.offset = {
  5652. setOffset: function(elem, options, i) {
  5653. var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition, position = jQuery.css(elem, "position"), curElem = jQuery(elem), props = {};
  5654. if (position === "static") {
  5655. elem.style.position = "relative";
  5656. }
  5657. curOffset = curElem.offset();
  5658. curCSSTop = jQuery.css(elem, "top");
  5659. curCSSLeft = jQuery.css(elem, "left");
  5660. calculatePosition = (position === "absolute" || position === "fixed") && (curCSSTop + curCSSLeft).indexOf("auto") > -1;
  5661. if (calculatePosition) {
  5662. curPosition = curElem.position();
  5663. curTop = curPosition.top;
  5664. curLeft = curPosition.left;
  5665. } else {
  5666. curTop = parseFloat(curCSSTop) || 0;
  5667. curLeft = parseFloat(curCSSLeft) || 0;
  5668. }
  5669. if (isFunction(options)) {
  5670. options = options.call(elem, i, jQuery.extend({}, curOffset));
  5671. }
  5672. if (options.top != null) {
  5673. props.top = options.top - curOffset.top + curTop;
  5674. }
  5675. if (options.left != null) {
  5676. props.left = options.left - curOffset.left + curLeft;
  5677. }
  5678. if ("using" in options) {
  5679. options.using.call(elem, props);
  5680. } else {
  5681. curElem.css(props);
  5682. }
  5683. }
  5684. };
  5685. jQuery.fn.extend({
  5686. offset: function(options) {
  5687. if (arguments.length) {
  5688. return options === void 0 ? this : this.each(function(i) {
  5689. jQuery.offset.setOffset(this, options, i);
  5690. });
  5691. }
  5692. var rect, win, elem = this[0];
  5693. if (!elem) {
  5694. return;
  5695. }
  5696. if (!elem.getClientRects().length) {
  5697. return { top: 0, left: 0 };
  5698. }
  5699. rect = elem.getBoundingClientRect();
  5700. win = elem.ownerDocument.defaultView;
  5701. return {
  5702. top: rect.top + win.pageYOffset,
  5703. left: rect.left + win.pageXOffset
  5704. };
  5705. },
  5706. position: function() {
  5707. if (!this[0]) {
  5708. return;
  5709. }
  5710. var offsetParent, offset, doc, elem = this[0], parentOffset = { top: 0, left: 0 };
  5711. if (jQuery.css(elem, "position") === "fixed") {
  5712. offset = elem.getBoundingClientRect();
  5713. } else {
  5714. offset = this.offset();
  5715. doc = elem.ownerDocument;
  5716. offsetParent = elem.offsetParent || doc.documentElement;
  5717. while (offsetParent && (offsetParent === doc.body || offsetParent === doc.documentElement) && jQuery.css(offsetParent, "position") === "static") {
  5718. offsetParent = offsetParent.parentNode;
  5719. }
  5720. if (offsetParent && offsetParent !== elem && offsetParent.nodeType === 1) {
  5721. parentOffset = jQuery(offsetParent).offset();
  5722. parentOffset.top += jQuery.css(offsetParent, "borderTopWidth", true);
  5723. parentOffset.left += jQuery.css(offsetParent, "borderLeftWidth", true);
  5724. }
  5725. }
  5726. return {
  5727. top: offset.top - parentOffset.top - jQuery.css(elem, "marginTop", true),
  5728. left: offset.left - parentOffset.left - jQuery.css(elem, "marginLeft", true)
  5729. };
  5730. },
  5731. offsetParent: function() {
  5732. return this.map(function() {
  5733. var offsetParent = this.offsetParent;
  5734. while (offsetParent && jQuery.css(offsetParent, "position") === "static") {
  5735. offsetParent = offsetParent.offsetParent;
  5736. }
  5737. return offsetParent || documentElement;
  5738. });
  5739. }
  5740. });
  5741. jQuery.each({ scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function(method, prop) {
  5742. var top = prop === "pageYOffset";
  5743. jQuery.fn[method] = function(val) {
  5744. return access(this, function(elem, method2, val2) {
  5745. var win;
  5746. if (isWindow(elem)) {
  5747. win = elem;
  5748. } else if (elem.nodeType === 9) {
  5749. win = elem.defaultView;
  5750. }
  5751. if (val2 === void 0) {
  5752. return win ? win[prop] : elem[method2];
  5753. }
  5754. if (win) {
  5755. win.scrollTo(!top ? val2 : win.pageXOffset, top ? val2 : win.pageYOffset);
  5756. } else {
  5757. elem[method2] = val2;
  5758. }
  5759. }, method, val, arguments.length);
  5760. };
  5761. });
  5762. jQuery.each(["top", "left"], function(_i, prop) {
  5763. jQuery.cssHooks[prop] = addGetHookIf(support.pixelPosition, function(elem, computed) {
  5764. if (computed) {
  5765. computed = curCSS(elem, prop);
  5766. return rnumnonpx.test(computed) ? jQuery(elem).position()[prop] + "px" : computed;
  5767. }
  5768. });
  5769. });
  5770. jQuery.each({ Height: "height", Width: "width" }, function(name, type) {
  5771. jQuery.each({
  5772. padding: "inner" + name,
  5773. content: type,
  5774. "": "outer" + name
  5775. }, function(defaultExtra, funcName) {
  5776. jQuery.fn[funcName] = function(margin, value) {
  5777. var chainable = arguments.length && (defaultExtra || typeof margin !== "boolean"), extra = defaultExtra || (margin === true || value === true ? "margin" : "border");
  5778. return access(this, function(elem, type2, value2) {
  5779. var doc;
  5780. if (isWindow(elem)) {
  5781. return funcName.indexOf("outer") === 0 ? elem["inner" + name] : elem.document.documentElement["client" + name];
  5782. }
  5783. if (elem.nodeType === 9) {
  5784. doc = elem.documentElement;
  5785. return Math.max(elem.body["scroll" + name], doc["scroll" + name], elem.body["offset" + name], doc["offset" + name], doc["client" + name]);
  5786. }
  5787. return value2 === void 0 ? jQuery.css(elem, type2, extra) : jQuery.style(elem, type2, value2, extra);
  5788. }, type, chainable ? margin : void 0, chainable);
  5789. };
  5790. });
  5791. });
  5792. jQuery.each([
  5793. "ajaxStart",
  5794. "ajaxStop",
  5795. "ajaxComplete",
  5796. "ajaxError",
  5797. "ajaxSuccess",
  5798. "ajaxSend"
  5799. ], function(_i, type) {
  5800. jQuery.fn[type] = function(fn) {
  5801. return this.on(type, fn);
  5802. };
  5803. });
  5804. jQuery.fn.extend({
  5805. bind: function(types, data, fn) {
  5806. return this.on(types, null, data, fn);
  5807. },
  5808. unbind: function(types, fn) {
  5809. return this.off(types, null, fn);
  5810. },
  5811. delegate: function(selector, types, data, fn) {
  5812. return this.on(types, selector, data, fn);
  5813. },
  5814. undelegate: function(selector, types, fn) {
  5815. return arguments.length === 1 ? this.off(selector, "**") : this.off(types, selector || "**", fn);
  5816. },
  5817. hover: function(fnOver, fnOut) {
  5818. return this.mouseenter(fnOver).mouseleave(fnOut || fnOver);
  5819. }
  5820. });
  5821. jQuery.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(_i, name) {
  5822. jQuery.fn[name] = function(data, fn) {
  5823. return arguments.length > 0 ? this.on(name, null, data, fn) : this.trigger(name);
  5824. };
  5825. });
  5826. var rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
  5827. jQuery.proxy = function(fn, context) {
  5828. var tmp, args, proxy;
  5829. if (typeof context === "string") {
  5830. tmp = fn[context];
  5831. context = fn;
  5832. fn = tmp;
  5833. }
  5834. if (!isFunction(fn)) {
  5835. return void 0;
  5836. }
  5837. args = slice.call(arguments, 2);
  5838. proxy = function() {
  5839. return fn.apply(context || this, args.concat(slice.call(arguments)));
  5840. };
  5841. proxy.guid = fn.guid = fn.guid || jQuery.guid++;
  5842. return proxy;
  5843. };
  5844. jQuery.holdReady = function(hold) {
  5845. if (hold) {
  5846. jQuery.readyWait++;
  5847. } else {
  5848. jQuery.ready(true);
  5849. }
  5850. };
  5851. jQuery.isArray = Array.isArray;
  5852. jQuery.parseJSON = JSON.parse;
  5853. jQuery.nodeName = nodeName;
  5854. jQuery.isFunction = isFunction;
  5855. jQuery.isWindow = isWindow;
  5856. jQuery.camelCase = camelCase;
  5857. jQuery.type = toType;
  5858. jQuery.now = Date.now;
  5859. jQuery.isNumeric = function(obj) {
  5860. var type = jQuery.type(obj);
  5861. return (type === "number" || type === "string") && !isNaN(obj - parseFloat(obj));
  5862. };
  5863. jQuery.trim = function(text) {
  5864. return text == null ? "" : (text + "").replace(rtrim, "");
  5865. };
  5866. if (typeof define === "function" && define.amd) {
  5867. define("jquery", [], function() {
  5868. return jQuery;
  5869. });
  5870. }
  5871. var _jQuery = window2.jQuery, _$ = window2.$;
  5872. jQuery.noConflict = function(deep) {
  5873. if (window2.$ === jQuery) {
  5874. window2.$ = _$;
  5875. }
  5876. if (deep && window2.jQuery === jQuery) {
  5877. window2.jQuery = _jQuery;
  5878. }
  5879. return jQuery;
  5880. };
  5881. if (typeof noGlobal === "undefined") {
  5882. window2.jQuery = window2.$ = jQuery;
  5883. }
  5884. return jQuery;
  5885. });
  5886. }
  5887. });
  5888. // dep:jquery
  5889. var jquery_default = require_jquery();
  5890. export {
  5891. jquery_default as default
  5892. };
  5893. /*!
  5894. * jQuery JavaScript Library v3.6.0
  5895. * https://jquery.com/
  5896. *
  5897. * Includes Sizzle.js
  5898. * https://sizzlejs.com/
  5899. *
  5900. * Copyright OpenJS Foundation and other contributors
  5901. * Released under the MIT license
  5902. * https://jquery.org/license
  5903. *
  5904. * Date: 2021-03-02T17:08Z
  5905. */
  5906. //# sourceMappingURL=jquery.js.map