login.js 243 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877
  1. var oA = (A, e, w) => new Promise((B, g) => {
  2. var r = (Y) => {
  3. try {
  4. P(w.next(Y));
  5. } catch (D) {
  6. g(D);
  7. }
  8. }, x = (Y) => {
  9. try {
  10. P(w.throw(Y));
  11. } catch (D) {
  12. g(D);
  13. }
  14. }, P = (Y) => Y.done ? B(Y.value) : Promise.resolve(Y.value).then(r, x);
  15. P((w = w.apply(A, e)).next());
  16. });
  17. import { g as Hw, m as Lw, d as MA, r as Ow, u as xw, _ as mA, i as VB, ax as Zw, dc as pA, f as bw, av as lw, aw as FB, o as Gw, ck as k, dd as dw, cl as aw, n as XA, de as oB, df as NB, dg as uw, dh as yw, ad as Xw, di as jw, dj as Vw, dk as Fw, I as ow, d7 as Nw, B as mw, a6 as Jw, a7 as kw, ao as Kw, dl as Ew, dm as Iw } from "./index2.js";
  18. import { createVNode as m, defineComponent as mB, ref as ig, onMounted as pw, onUpdated as Tw, onBeforeUnmount as Sw, openBlock as N, createElementBlock as I, normalizeStyle as sA, createElementVNode as F, withDirectives as ug, vShow as yg, Transition as Uw, withCtx as S, normalizeClass as yA, toDisplayString as R, createCommentVNode as _, Fragment as JB, renderList as kB, createTextVNode as WA, createBlock as CA, resolveDynamicComponent as KB, resolveComponent as Gg, withModifiers as dA } from "vue";
  19. import { F as iw, _ as qw } from "./index4.js";
  20. import { T as hw, _ as Rw } from "./index11.js";
  21. import { S as _w } from "./Skeleton.js";
  22. import { _ as $w } from "./index8.js";
  23. const EB = (A) => {
  24. const {
  25. value: e,
  26. formatter: w,
  27. precision: B,
  28. decimalSeparator: g,
  29. groupSeparator: r = "",
  30. prefixCls: x
  31. } = A;
  32. let P;
  33. if (typeof w == "function")
  34. P = w({
  35. value: e
  36. });
  37. else {
  38. const Y = String(e), D = Y.match(/^(-?)(\d*)(\.(\d+))?$/);
  39. if (!D)
  40. P = Y;
  41. else {
  42. const C = D[1];
  43. let Q = D[2] || "0", t = D[4] || "";
  44. Q = Q.replace(/\B(?=(\d{3})+(?!\d))/g, r), typeof B == "number" && (t = t.padEnd(B, "0").slice(0, B > 0 ? B : 0)), t && (t = `${g}${t}`), P = [m("span", {
  45. key: "int",
  46. class: `${x}-content-value-int`
  47. }, [C, Q]), t && m("span", {
  48. key: "decimal",
  49. class: `${x}-content-value-decimal`
  50. }, [t])];
  51. }
  52. }
  53. return m("span", {
  54. class: `${x}-content-value`
  55. }, [P]);
  56. };
  57. EB.displayName = "StatisticNumber";
  58. const AD = (A) => {
  59. const {
  60. componentCls: e,
  61. marginXXS: w,
  62. padding: B,
  63. colorTextDescription: g,
  64. statisticTitleFontSize: r,
  65. colorTextHeading: x,
  66. statisticContentFontSize: P,
  67. statisticFontFamily: Y
  68. } = A;
  69. return {
  70. [`${e}`]: MA(MA({}, Ow(A)), {
  71. [`${e}-title`]: {
  72. marginBottom: w,
  73. color: g,
  74. fontSize: r
  75. },
  76. [`${e}-skeleton`]: {
  77. paddingTop: B
  78. },
  79. [`${e}-content`]: {
  80. color: x,
  81. fontSize: P,
  82. fontFamily: Y,
  83. [`${e}-content-value`]: {
  84. display: "inline-block",
  85. direction: "ltr"
  86. },
  87. [`${e}-content-prefix, ${e}-content-suffix`]: {
  88. display: "inline-block"
  89. },
  90. [`${e}-content-prefix`]: {
  91. marginInlineEnd: w
  92. },
  93. [`${e}-content-suffix`]: {
  94. marginInlineStart: w
  95. }
  96. }
  97. })
  98. };
  99. }, gD = Hw("Statistic", (A) => {
  100. const {
  101. fontSizeHeading3: e,
  102. fontSize: w,
  103. fontFamily: B
  104. } = A, g = Lw(A, {
  105. statisticTitleFontSize: w,
  106. statisticContentFontSize: e,
  107. statisticFontFamily: B
  108. });
  109. return [AD(g)];
  110. }), IB = () => ({
  111. prefixCls: String,
  112. decimalSeparator: String,
  113. groupSeparator: String,
  114. format: String,
  115. value: FB([Number, String, Object]),
  116. valueStyle: {
  117. type: Object,
  118. default: void 0
  119. },
  120. valueRender: lw(),
  121. formatter: bw(),
  122. precision: Number,
  123. prefix: pA(),
  124. suffix: pA(),
  125. title: pA(),
  126. loading: Zw()
  127. }), fA = mB({
  128. compatConfig: {
  129. MODE: 3
  130. },
  131. name: "AStatistic",
  132. inheritAttrs: !1,
  133. props: VB(IB(), {
  134. decimalSeparator: ".",
  135. groupSeparator: ",",
  136. loading: !1
  137. }),
  138. slots: Object,
  139. setup(A, e) {
  140. let {
  141. slots: w,
  142. attrs: B
  143. } = e;
  144. const {
  145. prefixCls: g,
  146. direction: r
  147. } = xw("statistic", A), [x, P] = gD(g);
  148. return () => {
  149. var Y, D, C, Q, t, f, v;
  150. const {
  151. value: c = 0,
  152. valueStyle: n,
  153. valueRender: H
  154. } = A, s = g.value, M = (Y = A.title) !== null && Y !== void 0 ? Y : (D = w.title) === null || D === void 0 ? void 0 : D.call(w), z = (C = A.prefix) !== null && C !== void 0 ? C : (Q = w.prefix) === null || Q === void 0 ? void 0 : Q.call(w), O = (t = A.suffix) !== null && t !== void 0 ? t : (f = w.suffix) === null || f === void 0 ? void 0 : f.call(w), L = (v = A.formatter) !== null && v !== void 0 ? v : w.formatter;
  155. let Z = m(EB, mA({
  156. "data-for-update": Date.now()
  157. }, MA(MA({}, A), {
  158. prefixCls: s,
  159. value: c,
  160. formatter: L
  161. })), null);
  162. return H && (Z = H(Z)), x(m("div", mA(mA({}, B), {}, {
  163. class: [s, {
  164. [`${s}-rtl`]: r.value === "rtl"
  165. }, B.class, P.value]
  166. }), [M && m("div", {
  167. class: `${s}-title`
  168. }, [M]), m(_w, {
  169. paragraph: !1,
  170. loading: A.loading
  171. }, {
  172. default: () => [m("div", {
  173. style: n,
  174. class: `${s}-content`
  175. }, [z && m("span", {
  176. class: `${s}-content-prefix`
  177. }, [z]), Z, O && m("span", {
  178. class: `${s}-content-suffix`
  179. }, [O])])]
  180. })]));
  181. };
  182. }
  183. }), BD = [
  184. ["Y", 1e3 * 60 * 60 * 24 * 365],
  185. ["M", 1e3 * 60 * 60 * 24 * 30],
  186. ["D", 1e3 * 60 * 60 * 24],
  187. ["H", 1e3 * 60 * 60],
  188. ["m", 1e3 * 60],
  189. ["s", 1e3],
  190. ["S", 1]
  191. // million seconds
  192. ];
  193. function wD(A, e) {
  194. let w = A;
  195. const B = /\[[^\]]*]/g, g = (e.match(B) || []).map((Y) => Y.slice(1, -1)), r = e.replace(B, "[]"), x = BD.reduce((Y, D) => {
  196. let [C, Q] = D;
  197. if (Y.includes(C)) {
  198. const t = Math.floor(w / Q);
  199. return w -= t * Q, Y.replace(new RegExp(`${C}+`, "g"), (f) => {
  200. const v = f.length;
  201. return t.toString().padStart(v, "0");
  202. });
  203. }
  204. return Y;
  205. }, r);
  206. let P = 0;
  207. return x.replace(B, () => {
  208. const Y = g[P];
  209. return P += 1, Y;
  210. });
  211. }
  212. function DD(A, e) {
  213. const {
  214. format: w = ""
  215. } = e, B = new Date(A).getTime(), g = Date.now(), r = Math.max(B - g, 0);
  216. return wD(r, w);
  217. }
  218. const sD = 1e3 / 30;
  219. function TA(A) {
  220. return new Date(A).getTime();
  221. }
  222. const eD = () => MA(MA({}, IB()), {
  223. value: FB([Number, String, Object]),
  224. format: String,
  225. onFinish: Function,
  226. onChange: Function
  227. }), tD = mB({
  228. compatConfig: {
  229. MODE: 3
  230. },
  231. name: "AStatisticCountdown",
  232. props: VB(eD(), {
  233. format: "HH:mm:ss"
  234. }),
  235. // emits: ['finish', 'change'],
  236. setup(A, e) {
  237. let {
  238. emit: w,
  239. slots: B
  240. } = e;
  241. const g = ig(), r = ig(), x = () => {
  242. const {
  243. value: Q
  244. } = A;
  245. TA(Q) >= Date.now() ? P() : Y();
  246. }, P = () => {
  247. if (g.value) return;
  248. const Q = TA(A.value);
  249. g.value = setInterval(() => {
  250. r.value.$forceUpdate(), Q > Date.now() && w("change", Q - Date.now()), x();
  251. }, sD);
  252. }, Y = () => {
  253. const {
  254. value: Q
  255. } = A;
  256. g.value && (clearInterval(g.value), g.value = void 0, TA(Q) < Date.now() && w("finish"));
  257. }, D = (Q) => {
  258. let {
  259. value: t,
  260. config: f
  261. } = Q;
  262. const {
  263. format: v
  264. } = A;
  265. return DD(t, MA(MA({}, f), {
  266. format: v
  267. }));
  268. }, C = (Q) => Q;
  269. return pw(() => {
  270. x();
  271. }), Tw(() => {
  272. x();
  273. }), Sw(() => {
  274. Y();
  275. }), () => {
  276. const Q = A.value;
  277. return m(fA, mA({
  278. ref: r
  279. }, MA(MA({}, Gw(A, ["onFinish", "onChange"])), {
  280. value: Q,
  281. valueRender: C,
  282. formatter: D
  283. })), B);
  284. };
  285. }
  286. });
  287. fA.Countdown = tD;
  288. fA.install = function(A) {
  289. return A.component(fA.name, fA), A.component(fA.Countdown.name, fA.Countdown), A;
  290. };
  291. const CD = fA.Countdown, pB = "3.9.4", MD = pB, qg = typeof TextDecoder == "function" ? new TextDecoder("utf-8", { ignoreBOM: !0 }) : void 0, hg = typeof TextEncoder == "function" ? new TextEncoder() : void 0, vD = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", uA = Array.prototype.slice.call(vD), NA = ((A) => {
  292. let e = {};
  293. return A.forEach((w, B) => e[w] = B), e;
  294. })(uA), rD = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, AA = String.fromCharCode.bind(String), fD = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (A) => new Uint8Array(Array.prototype.slice.call(A, 0)), TB = (A) => A.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" : "_"), SB = (A) => A.replace(/[^A-Za-z0-9\+\/]/g, ""), UB = (A) => {
  295. let e, w, B, g, r = "";
  296. const x = A.length % 3;
  297. for (let P = 0; P < A.length; ) {
  298. if ((w = A.charCodeAt(P++)) > 255 || (B = A.charCodeAt(P++)) > 255 || (g = A.charCodeAt(P++)) > 255)
  299. throw new TypeError("invalid character found");
  300. e = w << 16 | B << 8 | g, r += uA[e >> 18 & 63] + uA[e >> 12 & 63] + uA[e >> 6 & 63] + uA[e & 63];
  301. }
  302. return x ? r.slice(0, x - 3) + "===".substring(x) : r;
  303. }, Xg = typeof btoa == "function" ? (A) => btoa(A) : UB, dg = typeof Uint8Array.prototype.toBase64 == "function" ? (A) => A.toBase64() : (A) => {
  304. let w = [];
  305. for (let B = 0, g = A.length; B < g; B += 4096)
  306. w.push(AA.apply(null, A.subarray(B, B + 4096)));
  307. return Xg(w.join(""));
  308. }, JA = (A, e = !1) => e ? TB(dg(A)) : dg(A), nD = (A) => {
  309. if (A.length < 2) {
  310. var e = A.charCodeAt(0);
  311. return e < 128 ? A : e < 2048 ? AA(192 | e >>> 6) + AA(128 | e & 63) : AA(224 | e >>> 12 & 15) + AA(128 | e >>> 6 & 63) + AA(128 | e & 63);
  312. } else {
  313. var e = 65536 + (A.charCodeAt(0) - 55296) * 1024 + (A.charCodeAt(1) - 56320);
  314. return AA(240 | e >>> 18 & 7) + AA(128 | e >>> 12 & 63) + AA(128 | e >>> 6 & 63) + AA(128 | e & 63);
  315. }
  316. }, zD = /[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\x00-\x7F]/g, iB = (A) => A.replace(zD, nD), Rg = hg ? (A) => dg(hg.encode(A)) : (A) => Xg(iB(A)), HA = (A, e = !1) => e ? TB(Rg(A)) : Rg(A), _g = (A) => HA(A, !0), PD = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, cD = (A) => {
  317. switch (A.length) {
  318. case 4:
  319. var e = (7 & A.charCodeAt(0)) << 18 | (63 & A.charCodeAt(1)) << 12 | (63 & A.charCodeAt(2)) << 6 | 63 & A.charCodeAt(3), w = e - 65536;
  320. return AA((w >>> 10) + 55296) + AA((w & 1023) + 56320);
  321. case 3:
  322. return AA((15 & A.charCodeAt(0)) << 12 | (63 & A.charCodeAt(1)) << 6 | 63 & A.charCodeAt(2));
  323. default:
  324. return AA((31 & A.charCodeAt(0)) << 6 | 63 & A.charCodeAt(1));
  325. }
  326. }, qB = (A) => A.replace(PD, cD), hB = (A) => {
  327. if (A = A.replace(/\s+/g, ""), !rD.test(A))
  328. throw new TypeError("malformed base64.");
  329. A += "==".slice(2 - (A.length & 3));
  330. let e, w, B, g = [];
  331. for (let r = 0; r < A.length; )
  332. e = NA[A.charAt(r++)] << 18 | NA[A.charAt(r++)] << 12 | (w = NA[A.charAt(r++)]) << 6 | (B = NA[A.charAt(r++)]), w === 64 ? g.push(AA(e >> 16 & 255)) : B === 64 ? g.push(AA(e >> 16 & 255, e >> 8 & 255)) : g.push(AA(e >> 16 & 255, e >> 8 & 255, e & 255));
  333. return g.join("");
  334. }, jg = typeof atob == "function" ? (A) => atob(SB(A)) : hB, RB = typeof Uint8Array.fromBase64 == "function" ? (A) => Uint8Array.fromBase64(A) : (A) => fD(jg(A).split("").map((e) => e.charCodeAt(0))), _B = (A) => RB($B(A)), YD = qg ? (A) => qg.decode(RB(A)) : (A) => qB(jg(A)), $B = (A) => SB(A.replace(/[-_]/g, (e) => e == "-" ? "+" : "/")), ag = (A) => YD($B(A)), QD = (A) => {
  335. if (typeof A != "string")
  336. return !1;
  337. const e = A.replace(/\s+/g, "").replace(/={0,2}$/, "");
  338. return !/[^\s0-9a-zA-Z\+/]/.test(e) || !/[^\s0-9a-zA-Z\-_]/.test(e);
  339. }, Aw = (A) => ({
  340. value: A,
  341. enumerable: !1,
  342. writable: !0,
  343. configurable: !0
  344. }), gw = function() {
  345. const A = (e, w) => Object.defineProperty(String.prototype, e, Aw(w));
  346. A("fromBase64", function() {
  347. return ag(this);
  348. }), A("toBase64", function(e) {
  349. return HA(this, e);
  350. }), A("toBase64URI", function() {
  351. return HA(this, !0);
  352. }), A("toBase64URL", function() {
  353. return HA(this, !0);
  354. }), A("toUint8Array", function() {
  355. return _B(this);
  356. });
  357. }, Bw = function() {
  358. const A = (e, w) => Object.defineProperty(Uint8Array.prototype, e, Aw(w));
  359. A("toBase64", function(e) {
  360. return JA(this, e);
  361. }), A("toBase64URI", function() {
  362. return JA(this, !0);
  363. }), A("toBase64URL", function() {
  364. return JA(this, !0);
  365. });
  366. }, WD = () => {
  367. gw(), Bw();
  368. }, HD = {
  369. version: pB,
  370. VERSION: MD,
  371. atob: jg,
  372. atobPolyfill: hB,
  373. btoa: Xg,
  374. btoaPolyfill: UB,
  375. fromBase64: ag,
  376. toBase64: HA,
  377. encode: HA,
  378. encodeURI: _g,
  379. encodeURL: _g,
  380. utob: iB,
  381. btou: qB,
  382. decode: ag,
  383. isValid: QD,
  384. fromUint8Array: JA,
  385. toUint8Array: _B,
  386. extendString: gw,
  387. extendUint8Array: Bw,
  388. extendBuiltins: WD
  389. };
  390. function LD(A = "") {
  391. return A == null ? "" : HD.encode(String(A));
  392. }
  393. var ww = { exports: {} };
  394. function OD(A) {
  395. throw new Error('Could not dynamically require "' + A + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
  396. }
  397. var SA = { exports: {} }, $g;
  398. function E() {
  399. return $g || ($g = 1, function(A, e) {
  400. (function(w, B) {
  401. A.exports = B();
  402. })(k, function() {
  403. var w = w || function(B, g) {
  404. var r;
  405. if (typeof window != "undefined" && window.crypto && (r = window.crypto), typeof self != "undefined" && self.crypto && (r = self.crypto), typeof globalThis != "undefined" && globalThis.crypto && (r = globalThis.crypto), !r && typeof window != "undefined" && window.msCrypto && (r = window.msCrypto), !r && typeof k != "undefined" && k.crypto && (r = k.crypto), !r && typeof OD == "function")
  406. try {
  407. r = dw;
  408. } catch (s) {
  409. }
  410. var x = function() {
  411. if (r) {
  412. if (typeof r.getRandomValues == "function")
  413. try {
  414. return r.getRandomValues(new Uint32Array(1))[0];
  415. } catch (s) {
  416. }
  417. if (typeof r.randomBytes == "function")
  418. try {
  419. return r.randomBytes(4).readInt32LE();
  420. } catch (s) {
  421. }
  422. }
  423. throw new Error("Native crypto module could not be used to get secure random number.");
  424. }, P = Object.create || /* @__PURE__ */ function() {
  425. function s() {
  426. }
  427. return function(M) {
  428. var z;
  429. return s.prototype = M, z = new s(), s.prototype = null, z;
  430. };
  431. }(), Y = {}, D = Y.lib = {}, C = D.Base = /* @__PURE__ */ function() {
  432. return {
  433. /**
  434. * Creates a new object that inherits from this object.
  435. *
  436. * @param {Object} overrides Properties to copy into the new object.
  437. *
  438. * @return {Object} The new object.
  439. *
  440. * @static
  441. *
  442. * @example
  443. *
  444. * var MyType = CryptoJS.lib.Base.extend({
  445. * field: 'value',
  446. *
  447. * method: function () {
  448. * }
  449. * });
  450. */
  451. extend: function(s) {
  452. var M = P(this);
  453. return s && M.mixIn(s), (!M.hasOwnProperty("init") || this.init === M.init) && (M.init = function() {
  454. M.$super.init.apply(this, arguments);
  455. }), M.init.prototype = M, M.$super = this, M;
  456. },
  457. /**
  458. * Extends this object and runs the init method.
  459. * Arguments to create() will be passed to init().
  460. *
  461. * @return {Object} The new object.
  462. *
  463. * @static
  464. *
  465. * @example
  466. *
  467. * var instance = MyType.create();
  468. */
  469. create: function() {
  470. var s = this.extend();
  471. return s.init.apply(s, arguments), s;
  472. },
  473. /**
  474. * Initializes a newly created object.
  475. * Override this method to add some logic when your objects are created.
  476. *
  477. * @example
  478. *
  479. * var MyType = CryptoJS.lib.Base.extend({
  480. * init: function () {
  481. * // ...
  482. * }
  483. * });
  484. */
  485. init: function() {
  486. },
  487. /**
  488. * Copies properties into this object.
  489. *
  490. * @param {Object} properties The properties to mix in.
  491. *
  492. * @example
  493. *
  494. * MyType.mixIn({
  495. * field: 'value'
  496. * });
  497. */
  498. mixIn: function(s) {
  499. for (var M in s)
  500. s.hasOwnProperty(M) && (this[M] = s[M]);
  501. s.hasOwnProperty("toString") && (this.toString = s.toString);
  502. },
  503. /**
  504. * Creates a copy of this object.
  505. *
  506. * @return {Object} The clone.
  507. *
  508. * @example
  509. *
  510. * var clone = instance.clone();
  511. */
  512. clone: function() {
  513. return this.init.prototype.extend(this);
  514. }
  515. };
  516. }(), Q = D.WordArray = C.extend({
  517. /**
  518. * Initializes a newly created word array.
  519. *
  520. * @param {Array} words (Optional) An array of 32-bit words.
  521. * @param {number} sigBytes (Optional) The number of significant bytes in the words.
  522. *
  523. * @example
  524. *
  525. * var wordArray = CryptoJS.lib.WordArray.create();
  526. * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);
  527. * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
  528. */
  529. init: function(s, M) {
  530. s = this.words = s || [], M != g ? this.sigBytes = M : this.sigBytes = s.length * 4;
  531. },
  532. /**
  533. * Converts this word array to a string.
  534. *
  535. * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex
  536. *
  537. * @return {string} The stringified word array.
  538. *
  539. * @example
  540. *
  541. * var string = wordArray + '';
  542. * var string = wordArray.toString();
  543. * var string = wordArray.toString(CryptoJS.enc.Utf8);
  544. */
  545. toString: function(s) {
  546. return (s || f).stringify(this);
  547. },
  548. /**
  549. * Concatenates a word array to this word array.
  550. *
  551. * @param {WordArray} wordArray The word array to append.
  552. *
  553. * @return {WordArray} This word array.
  554. *
  555. * @example
  556. *
  557. * wordArray1.concat(wordArray2);
  558. */
  559. concat: function(s) {
  560. var M = this.words, z = s.words, O = this.sigBytes, L = s.sigBytes;
  561. if (this.clamp(), O % 4)
  562. for (var Z = 0; Z < L; Z++) {
  563. var l = z[Z >>> 2] >>> 24 - Z % 4 * 8 & 255;
  564. M[O + Z >>> 2] |= l << 24 - (O + Z) % 4 * 8;
  565. }
  566. else
  567. for (var j = 0; j < L; j += 4)
  568. M[O + j >>> 2] = z[j >>> 2];
  569. return this.sigBytes += L, this;
  570. },
  571. /**
  572. * Removes insignificant bits.
  573. *
  574. * @example
  575. *
  576. * wordArray.clamp();
  577. */
  578. clamp: function() {
  579. var s = this.words, M = this.sigBytes;
  580. s[M >>> 2] &= 4294967295 << 32 - M % 4 * 8, s.length = B.ceil(M / 4);
  581. },
  582. /**
  583. * Creates a copy of this word array.
  584. *
  585. * @return {WordArray} The clone.
  586. *
  587. * @example
  588. *
  589. * var clone = wordArray.clone();
  590. */
  591. clone: function() {
  592. var s = C.clone.call(this);
  593. return s.words = this.words.slice(0), s;
  594. },
  595. /**
  596. * Creates a word array filled with random bytes.
  597. *
  598. * @param {number} nBytes The number of random bytes to generate.
  599. *
  600. * @return {WordArray} The random word array.
  601. *
  602. * @static
  603. *
  604. * @example
  605. *
  606. * var wordArray = CryptoJS.lib.WordArray.random(16);
  607. */
  608. random: function(s) {
  609. for (var M = [], z = 0; z < s; z += 4)
  610. M.push(x());
  611. return new Q.init(M, s);
  612. }
  613. }), t = Y.enc = {}, f = t.Hex = {
  614. /**
  615. * Converts a word array to a hex string.
  616. *
  617. * @param {WordArray} wordArray The word array.
  618. *
  619. * @return {string} The hex string.
  620. *
  621. * @static
  622. *
  623. * @example
  624. *
  625. * var hexString = CryptoJS.enc.Hex.stringify(wordArray);
  626. */
  627. stringify: function(s) {
  628. for (var M = s.words, z = s.sigBytes, O = [], L = 0; L < z; L++) {
  629. var Z = M[L >>> 2] >>> 24 - L % 4 * 8 & 255;
  630. O.push((Z >>> 4).toString(16)), O.push((Z & 15).toString(16));
  631. }
  632. return O.join("");
  633. },
  634. /**
  635. * Converts a hex string to a word array.
  636. *
  637. * @param {string} hexStr The hex string.
  638. *
  639. * @return {WordArray} The word array.
  640. *
  641. * @static
  642. *
  643. * @example
  644. *
  645. * var wordArray = CryptoJS.enc.Hex.parse(hexString);
  646. */
  647. parse: function(s) {
  648. for (var M = s.length, z = [], O = 0; O < M; O += 2)
  649. z[O >>> 3] |= parseInt(s.substr(O, 2), 16) << 24 - O % 8 * 4;
  650. return new Q.init(z, M / 2);
  651. }
  652. }, v = t.Latin1 = {
  653. /**
  654. * Converts a word array to a Latin1 string.
  655. *
  656. * @param {WordArray} wordArray The word array.
  657. *
  658. * @return {string} The Latin1 string.
  659. *
  660. * @static
  661. *
  662. * @example
  663. *
  664. * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
  665. */
  666. stringify: function(s) {
  667. for (var M = s.words, z = s.sigBytes, O = [], L = 0; L < z; L++) {
  668. var Z = M[L >>> 2] >>> 24 - L % 4 * 8 & 255;
  669. O.push(String.fromCharCode(Z));
  670. }
  671. return O.join("");
  672. },
  673. /**
  674. * Converts a Latin1 string to a word array.
  675. *
  676. * @param {string} latin1Str The Latin1 string.
  677. *
  678. * @return {WordArray} The word array.
  679. *
  680. * @static
  681. *
  682. * @example
  683. *
  684. * var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
  685. */
  686. parse: function(s) {
  687. for (var M = s.length, z = [], O = 0; O < M; O++)
  688. z[O >>> 2] |= (s.charCodeAt(O) & 255) << 24 - O % 4 * 8;
  689. return new Q.init(z, M);
  690. }
  691. }, c = t.Utf8 = {
  692. /**
  693. * Converts a word array to a UTF-8 string.
  694. *
  695. * @param {WordArray} wordArray The word array.
  696. *
  697. * @return {string} The UTF-8 string.
  698. *
  699. * @static
  700. *
  701. * @example
  702. *
  703. * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);
  704. */
  705. stringify: function(s) {
  706. try {
  707. return decodeURIComponent(escape(v.stringify(s)));
  708. } catch (M) {
  709. throw new Error("Malformed UTF-8 data");
  710. }
  711. },
  712. /**
  713. * Converts a UTF-8 string to a word array.
  714. *
  715. * @param {string} utf8Str The UTF-8 string.
  716. *
  717. * @return {WordArray} The word array.
  718. *
  719. * @static
  720. *
  721. * @example
  722. *
  723. * var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
  724. */
  725. parse: function(s) {
  726. return v.parse(unescape(encodeURIComponent(s)));
  727. }
  728. }, n = D.BufferedBlockAlgorithm = C.extend({
  729. /**
  730. * Resets this block algorithm's data buffer to its initial state.
  731. *
  732. * @example
  733. *
  734. * bufferedBlockAlgorithm.reset();
  735. */
  736. reset: function() {
  737. this._data = new Q.init(), this._nDataBytes = 0;
  738. },
  739. /**
  740. * Adds new data to this block algorithm's buffer.
  741. *
  742. * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.
  743. *
  744. * @example
  745. *
  746. * bufferedBlockAlgorithm._append('data');
  747. * bufferedBlockAlgorithm._append(wordArray);
  748. */
  749. _append: function(s) {
  750. typeof s == "string" && (s = c.parse(s)), this._data.concat(s), this._nDataBytes += s.sigBytes;
  751. },
  752. /**
  753. * Processes available data blocks.
  754. *
  755. * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.
  756. *
  757. * @param {boolean} doFlush Whether all blocks and partial blocks should be processed.
  758. *
  759. * @return {WordArray} The processed data.
  760. *
  761. * @example
  762. *
  763. * var processedData = bufferedBlockAlgorithm._process();
  764. * var processedData = bufferedBlockAlgorithm._process(!!'flush');
  765. */
  766. _process: function(s) {
  767. var M, z = this._data, O = z.words, L = z.sigBytes, Z = this.blockSize, l = Z * 4, j = L / l;
  768. s ? j = B.ceil(j) : j = B.max((j | 0) - this._minBufferSize, 0);
  769. var W = j * Z, b = B.min(W * 4, L);
  770. if (W) {
  771. for (var d = 0; d < W; d += Z)
  772. this._doProcessBlock(O, d);
  773. M = O.splice(0, W), z.sigBytes -= b;
  774. }
  775. return new Q.init(M, b);
  776. },
  777. /**
  778. * Creates a copy of this object.
  779. *
  780. * @return {Object} The clone.
  781. *
  782. * @example
  783. *
  784. * var clone = bufferedBlockAlgorithm.clone();
  785. */
  786. clone: function() {
  787. var s = C.clone.call(this);
  788. return s._data = this._data.clone(), s;
  789. },
  790. _minBufferSize: 0
  791. });
  792. D.Hasher = n.extend({
  793. /**
  794. * Configuration options.
  795. */
  796. cfg: C.extend(),
  797. /**
  798. * Initializes a newly created hasher.
  799. *
  800. * @param {Object} cfg (Optional) The configuration options to use for this hash computation.
  801. *
  802. * @example
  803. *
  804. * var hasher = CryptoJS.algo.SHA256.create();
  805. */
  806. init: function(s) {
  807. this.cfg = this.cfg.extend(s), this.reset();
  808. },
  809. /**
  810. * Resets this hasher to its initial state.
  811. *
  812. * @example
  813. *
  814. * hasher.reset();
  815. */
  816. reset: function() {
  817. n.reset.call(this), this._doReset();
  818. },
  819. /**
  820. * Updates this hasher with a message.
  821. *
  822. * @param {WordArray|string} messageUpdate The message to append.
  823. *
  824. * @return {Hasher} This hasher.
  825. *
  826. * @example
  827. *
  828. * hasher.update('message');
  829. * hasher.update(wordArray);
  830. */
  831. update: function(s) {
  832. return this._append(s), this._process(), this;
  833. },
  834. /**
  835. * Finalizes the hash computation.
  836. * Note that the finalize operation is effectively a destructive, read-once operation.
  837. *
  838. * @param {WordArray|string} messageUpdate (Optional) A final message update.
  839. *
  840. * @return {WordArray} The hash.
  841. *
  842. * @example
  843. *
  844. * var hash = hasher.finalize();
  845. * var hash = hasher.finalize('message');
  846. * var hash = hasher.finalize(wordArray);
  847. */
  848. finalize: function(s) {
  849. s && this._append(s);
  850. var M = this._doFinalize();
  851. return M;
  852. },
  853. blockSize: 16,
  854. /**
  855. * Creates a shortcut function to a hasher's object interface.
  856. *
  857. * @param {Hasher} hasher The hasher to create a helper for.
  858. *
  859. * @return {Function} The shortcut function.
  860. *
  861. * @static
  862. *
  863. * @example
  864. *
  865. * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
  866. */
  867. _createHelper: function(s) {
  868. return function(M, z) {
  869. return new s.init(z).finalize(M);
  870. };
  871. },
  872. /**
  873. * Creates a shortcut function to the HMAC's object interface.
  874. *
  875. * @param {Hasher} hasher The hasher to use in this HMAC helper.
  876. *
  877. * @return {Function} The shortcut function.
  878. *
  879. * @static
  880. *
  881. * @example
  882. *
  883. * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
  884. */
  885. _createHmacHelper: function(s) {
  886. return function(M, z) {
  887. return new H.HMAC.init(s, z).finalize(M);
  888. };
  889. }
  890. });
  891. var H = Y.algo = {};
  892. return Y;
  893. }(Math);
  894. return w;
  895. });
  896. }(SA)), SA.exports;
  897. }
  898. var UA = { exports: {} }, AB;
  899. function KA() {
  900. return AB || (AB = 1, function(A, e) {
  901. (function(w, B) {
  902. A.exports = B(E());
  903. })(k, function(w) {
  904. return function(B) {
  905. var g = w, r = g.lib, x = r.Base, P = r.WordArray, Y = g.x64 = {};
  906. Y.Word = x.extend({
  907. /**
  908. * Initializes a newly created 64-bit word.
  909. *
  910. * @param {number} high The high 32 bits.
  911. * @param {number} low The low 32 bits.
  912. *
  913. * @example
  914. *
  915. * var x64Word = CryptoJS.x64.Word.create(0x00010203, 0x04050607);
  916. */
  917. init: function(D, C) {
  918. this.high = D, this.low = C;
  919. }
  920. /**
  921. * Bitwise NOTs this word.
  922. *
  923. * @return {X64Word} A new x64-Word object after negating.
  924. *
  925. * @example
  926. *
  927. * var negated = x64Word.not();
  928. */
  929. // not: function () {
  930. // var high = ~this.high;
  931. // var low = ~this.low;
  932. // return X64Word.create(high, low);
  933. // },
  934. /**
  935. * Bitwise ANDs this word with the passed word.
  936. *
  937. * @param {X64Word} word The x64-Word to AND with this word.
  938. *
  939. * @return {X64Word} A new x64-Word object after ANDing.
  940. *
  941. * @example
  942. *
  943. * var anded = x64Word.and(anotherX64Word);
  944. */
  945. // and: function (word) {
  946. // var high = this.high & word.high;
  947. // var low = this.low & word.low;
  948. // return X64Word.create(high, low);
  949. // },
  950. /**
  951. * Bitwise ORs this word with the passed word.
  952. *
  953. * @param {X64Word} word The x64-Word to OR with this word.
  954. *
  955. * @return {X64Word} A new x64-Word object after ORing.
  956. *
  957. * @example
  958. *
  959. * var ored = x64Word.or(anotherX64Word);
  960. */
  961. // or: function (word) {
  962. // var high = this.high | word.high;
  963. // var low = this.low | word.low;
  964. // return X64Word.create(high, low);
  965. // },
  966. /**
  967. * Bitwise XORs this word with the passed word.
  968. *
  969. * @param {X64Word} word The x64-Word to XOR with this word.
  970. *
  971. * @return {X64Word} A new x64-Word object after XORing.
  972. *
  973. * @example
  974. *
  975. * var xored = x64Word.xor(anotherX64Word);
  976. */
  977. // xor: function (word) {
  978. // var high = this.high ^ word.high;
  979. // var low = this.low ^ word.low;
  980. // return X64Word.create(high, low);
  981. // },
  982. /**
  983. * Shifts this word n bits to the left.
  984. *
  985. * @param {number} n The number of bits to shift.
  986. *
  987. * @return {X64Word} A new x64-Word object after shifting.
  988. *
  989. * @example
  990. *
  991. * var shifted = x64Word.shiftL(25);
  992. */
  993. // shiftL: function (n) {
  994. // if (n < 32) {
  995. // var high = (this.high << n) | (this.low >>> (32 - n));
  996. // var low = this.low << n;
  997. // } else {
  998. // var high = this.low << (n - 32);
  999. // var low = 0;
  1000. // }
  1001. // return X64Word.create(high, low);
  1002. // },
  1003. /**
  1004. * Shifts this word n bits to the right.
  1005. *
  1006. * @param {number} n The number of bits to shift.
  1007. *
  1008. * @return {X64Word} A new x64-Word object after shifting.
  1009. *
  1010. * @example
  1011. *
  1012. * var shifted = x64Word.shiftR(7);
  1013. */
  1014. // shiftR: function (n) {
  1015. // if (n < 32) {
  1016. // var low = (this.low >>> n) | (this.high << (32 - n));
  1017. // var high = this.high >>> n;
  1018. // } else {
  1019. // var low = this.high >>> (n - 32);
  1020. // var high = 0;
  1021. // }
  1022. // return X64Word.create(high, low);
  1023. // },
  1024. /**
  1025. * Rotates this word n bits to the left.
  1026. *
  1027. * @param {number} n The number of bits to rotate.
  1028. *
  1029. * @return {X64Word} A new x64-Word object after rotating.
  1030. *
  1031. * @example
  1032. *
  1033. * var rotated = x64Word.rotL(25);
  1034. */
  1035. // rotL: function (n) {
  1036. // return this.shiftL(n).or(this.shiftR(64 - n));
  1037. // },
  1038. /**
  1039. * Rotates this word n bits to the right.
  1040. *
  1041. * @param {number} n The number of bits to rotate.
  1042. *
  1043. * @return {X64Word} A new x64-Word object after rotating.
  1044. *
  1045. * @example
  1046. *
  1047. * var rotated = x64Word.rotR(7);
  1048. */
  1049. // rotR: function (n) {
  1050. // return this.shiftR(n).or(this.shiftL(64 - n));
  1051. // },
  1052. /**
  1053. * Adds this word with the passed word.
  1054. *
  1055. * @param {X64Word} word The x64-Word to add with this word.
  1056. *
  1057. * @return {X64Word} A new x64-Word object after adding.
  1058. *
  1059. * @example
  1060. *
  1061. * var added = x64Word.add(anotherX64Word);
  1062. */
  1063. // add: function (word) {
  1064. // var low = (this.low + word.low) | 0;
  1065. // var carry = (low >>> 0) < (this.low >>> 0) ? 1 : 0;
  1066. // var high = (this.high + word.high + carry) | 0;
  1067. // return X64Word.create(high, low);
  1068. // }
  1069. }), Y.WordArray = x.extend({
  1070. /**
  1071. * Initializes a newly created word array.
  1072. *
  1073. * @param {Array} words (Optional) An array of CryptoJS.x64.Word objects.
  1074. * @param {number} sigBytes (Optional) The number of significant bytes in the words.
  1075. *
  1076. * @example
  1077. *
  1078. * var wordArray = CryptoJS.x64.WordArray.create();
  1079. *
  1080. * var wordArray = CryptoJS.x64.WordArray.create([
  1081. * CryptoJS.x64.Word.create(0x00010203, 0x04050607),
  1082. * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
  1083. * ]);
  1084. *
  1085. * var wordArray = CryptoJS.x64.WordArray.create([
  1086. * CryptoJS.x64.Word.create(0x00010203, 0x04050607),
  1087. * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
  1088. * ], 10);
  1089. */
  1090. init: function(D, C) {
  1091. D = this.words = D || [], C != B ? this.sigBytes = C : this.sigBytes = D.length * 8;
  1092. },
  1093. /**
  1094. * Converts this 64-bit word array to a 32-bit word array.
  1095. *
  1096. * @return {CryptoJS.lib.WordArray} This word array's data as a 32-bit word array.
  1097. *
  1098. * @example
  1099. *
  1100. * var x32WordArray = x64WordArray.toX32();
  1101. */
  1102. toX32: function() {
  1103. for (var D = this.words, C = D.length, Q = [], t = 0; t < C; t++) {
  1104. var f = D[t];
  1105. Q.push(f.high), Q.push(f.low);
  1106. }
  1107. return P.create(Q, this.sigBytes);
  1108. },
  1109. /**
  1110. * Creates a copy of this word array.
  1111. *
  1112. * @return {X64WordArray} The clone.
  1113. *
  1114. * @example
  1115. *
  1116. * var clone = x64WordArray.clone();
  1117. */
  1118. clone: function() {
  1119. for (var D = x.clone.call(this), C = D.words = this.words.slice(0), Q = C.length, t = 0; t < Q; t++)
  1120. C[t] = C[t].clone();
  1121. return D;
  1122. }
  1123. });
  1124. }(), w;
  1125. });
  1126. }(UA)), UA.exports;
  1127. }
  1128. var iA = { exports: {} }, gB;
  1129. function xD() {
  1130. return gB || (gB = 1, function(A, e) {
  1131. (function(w, B) {
  1132. A.exports = B(E());
  1133. })(k, function(w) {
  1134. return function() {
  1135. if (typeof ArrayBuffer == "function") {
  1136. var B = w, g = B.lib, r = g.WordArray, x = r.init, P = r.init = function(Y) {
  1137. if (Y instanceof ArrayBuffer && (Y = new Uint8Array(Y)), (Y instanceof Int8Array || typeof Uint8ClampedArray != "undefined" && Y instanceof Uint8ClampedArray || Y instanceof Int16Array || Y instanceof Uint16Array || Y instanceof Int32Array || Y instanceof Uint32Array || Y instanceof Float32Array || Y instanceof Float64Array) && (Y = new Uint8Array(Y.buffer, Y.byteOffset, Y.byteLength)), Y instanceof Uint8Array) {
  1138. for (var D = Y.byteLength, C = [], Q = 0; Q < D; Q++)
  1139. C[Q >>> 2] |= Y[Q] << 24 - Q % 4 * 8;
  1140. x.call(this, C, D);
  1141. } else
  1142. x.apply(this, arguments);
  1143. };
  1144. P.prototype = r;
  1145. }
  1146. }(), w.lib.WordArray;
  1147. });
  1148. }(iA)), iA.exports;
  1149. }
  1150. var qA = { exports: {} }, BB;
  1151. function ZD() {
  1152. return BB || (BB = 1, function(A, e) {
  1153. (function(w, B) {
  1154. A.exports = B(E());
  1155. })(k, function(w) {
  1156. return function() {
  1157. var B = w, g = B.lib, r = g.WordArray, x = B.enc;
  1158. x.Utf16 = x.Utf16BE = {
  1159. /**
  1160. * Converts a word array to a UTF-16 BE string.
  1161. *
  1162. * @param {WordArray} wordArray The word array.
  1163. *
  1164. * @return {string} The UTF-16 BE string.
  1165. *
  1166. * @static
  1167. *
  1168. * @example
  1169. *
  1170. * var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);
  1171. */
  1172. stringify: function(Y) {
  1173. for (var D = Y.words, C = Y.sigBytes, Q = [], t = 0; t < C; t += 2) {
  1174. var f = D[t >>> 2] >>> 16 - t % 4 * 8 & 65535;
  1175. Q.push(String.fromCharCode(f));
  1176. }
  1177. return Q.join("");
  1178. },
  1179. /**
  1180. * Converts a UTF-16 BE string to a word array.
  1181. *
  1182. * @param {string} utf16Str The UTF-16 BE string.
  1183. *
  1184. * @return {WordArray} The word array.
  1185. *
  1186. * @static
  1187. *
  1188. * @example
  1189. *
  1190. * var wordArray = CryptoJS.enc.Utf16.parse(utf16String);
  1191. */
  1192. parse: function(Y) {
  1193. for (var D = Y.length, C = [], Q = 0; Q < D; Q++)
  1194. C[Q >>> 1] |= Y.charCodeAt(Q) << 16 - Q % 2 * 16;
  1195. return r.create(C, D * 2);
  1196. }
  1197. }, x.Utf16LE = {
  1198. /**
  1199. * Converts a word array to a UTF-16 LE string.
  1200. *
  1201. * @param {WordArray} wordArray The word array.
  1202. *
  1203. * @return {string} The UTF-16 LE string.
  1204. *
  1205. * @static
  1206. *
  1207. * @example
  1208. *
  1209. * var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);
  1210. */
  1211. stringify: function(Y) {
  1212. for (var D = Y.words, C = Y.sigBytes, Q = [], t = 0; t < C; t += 2) {
  1213. var f = P(D[t >>> 2] >>> 16 - t % 4 * 8 & 65535);
  1214. Q.push(String.fromCharCode(f));
  1215. }
  1216. return Q.join("");
  1217. },
  1218. /**
  1219. * Converts a UTF-16 LE string to a word array.
  1220. *
  1221. * @param {string} utf16Str The UTF-16 LE string.
  1222. *
  1223. * @return {WordArray} The word array.
  1224. *
  1225. * @static
  1226. *
  1227. * @example
  1228. *
  1229. * var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str);
  1230. */
  1231. parse: function(Y) {
  1232. for (var D = Y.length, C = [], Q = 0; Q < D; Q++)
  1233. C[Q >>> 1] |= P(Y.charCodeAt(Q) << 16 - Q % 2 * 16);
  1234. return r.create(C, D * 2);
  1235. }
  1236. };
  1237. function P(Y) {
  1238. return Y << 8 & 4278255360 | Y >>> 8 & 16711935;
  1239. }
  1240. }(), w.enc.Utf16;
  1241. });
  1242. }(qA)), qA.exports;
  1243. }
  1244. var hA = { exports: {} }, wB;
  1245. function zA() {
  1246. return wB || (wB = 1, function(A, e) {
  1247. (function(w, B) {
  1248. A.exports = B(E());
  1249. })(k, function(w) {
  1250. return function() {
  1251. var B = w, g = B.lib, r = g.WordArray, x = B.enc;
  1252. x.Base64 = {
  1253. /**
  1254. * Converts a word array to a Base64 string.
  1255. *
  1256. * @param {WordArray} wordArray The word array.
  1257. *
  1258. * @return {string} The Base64 string.
  1259. *
  1260. * @static
  1261. *
  1262. * @example
  1263. *
  1264. * var base64String = CryptoJS.enc.Base64.stringify(wordArray);
  1265. */
  1266. stringify: function(Y) {
  1267. var D = Y.words, C = Y.sigBytes, Q = this._map;
  1268. Y.clamp();
  1269. for (var t = [], f = 0; f < C; f += 3)
  1270. for (var v = D[f >>> 2] >>> 24 - f % 4 * 8 & 255, c = D[f + 1 >>> 2] >>> 24 - (f + 1) % 4 * 8 & 255, n = D[f + 2 >>> 2] >>> 24 - (f + 2) % 4 * 8 & 255, H = v << 16 | c << 8 | n, s = 0; s < 4 && f + s * 0.75 < C; s++)
  1271. t.push(Q.charAt(H >>> 6 * (3 - s) & 63));
  1272. var M = Q.charAt(64);
  1273. if (M)
  1274. for (; t.length % 4; )
  1275. t.push(M);
  1276. return t.join("");
  1277. },
  1278. /**
  1279. * Converts a Base64 string to a word array.
  1280. *
  1281. * @param {string} base64Str The Base64 string.
  1282. *
  1283. * @return {WordArray} The word array.
  1284. *
  1285. * @static
  1286. *
  1287. * @example
  1288. *
  1289. * var wordArray = CryptoJS.enc.Base64.parse(base64String);
  1290. */
  1291. parse: function(Y) {
  1292. var D = Y.length, C = this._map, Q = this._reverseMap;
  1293. if (!Q) {
  1294. Q = this._reverseMap = [];
  1295. for (var t = 0; t < C.length; t++)
  1296. Q[C.charCodeAt(t)] = t;
  1297. }
  1298. var f = C.charAt(64);
  1299. if (f) {
  1300. var v = Y.indexOf(f);
  1301. v !== -1 && (D = v);
  1302. }
  1303. return P(Y, D, Q);
  1304. },
  1305. _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
  1306. };
  1307. function P(Y, D, C) {
  1308. for (var Q = [], t = 0, f = 0; f < D; f++)
  1309. if (f % 4) {
  1310. var v = C[Y.charCodeAt(f - 1)] << f % 4 * 2, c = C[Y.charCodeAt(f)] >>> 6 - f % 4 * 2, n = v | c;
  1311. Q[t >>> 2] |= n << 24 - t % 4 * 8, t++;
  1312. }
  1313. return r.create(Q, t);
  1314. }
  1315. }(), w.enc.Base64;
  1316. });
  1317. }(hA)), hA.exports;
  1318. }
  1319. var RA = { exports: {} }, DB;
  1320. function bD() {
  1321. return DB || (DB = 1, function(A, e) {
  1322. (function(w, B) {
  1323. A.exports = B(E());
  1324. })(k, function(w) {
  1325. return function() {
  1326. var B = w, g = B.lib, r = g.WordArray, x = B.enc;
  1327. x.Base64url = {
  1328. /**
  1329. * Converts a word array to a Base64url string.
  1330. *
  1331. * @param {WordArray} wordArray The word array.
  1332. *
  1333. * @param {boolean} urlSafe Whether to use url safe
  1334. *
  1335. * @return {string} The Base64url string.
  1336. *
  1337. * @static
  1338. *
  1339. * @example
  1340. *
  1341. * var base64String = CryptoJS.enc.Base64url.stringify(wordArray);
  1342. */
  1343. stringify: function(Y, D) {
  1344. D === void 0 && (D = !0);
  1345. var C = Y.words, Q = Y.sigBytes, t = D ? this._safe_map : this._map;
  1346. Y.clamp();
  1347. for (var f = [], v = 0; v < Q; v += 3)
  1348. for (var c = C[v >>> 2] >>> 24 - v % 4 * 8 & 255, n = C[v + 1 >>> 2] >>> 24 - (v + 1) % 4 * 8 & 255, H = C[v + 2 >>> 2] >>> 24 - (v + 2) % 4 * 8 & 255, s = c << 16 | n << 8 | H, M = 0; M < 4 && v + M * 0.75 < Q; M++)
  1349. f.push(t.charAt(s >>> 6 * (3 - M) & 63));
  1350. var z = t.charAt(64);
  1351. if (z)
  1352. for (; f.length % 4; )
  1353. f.push(z);
  1354. return f.join("");
  1355. },
  1356. /**
  1357. * Converts a Base64url string to a word array.
  1358. *
  1359. * @param {string} base64Str The Base64url string.
  1360. *
  1361. * @param {boolean} urlSafe Whether to use url safe
  1362. *
  1363. * @return {WordArray} The word array.
  1364. *
  1365. * @static
  1366. *
  1367. * @example
  1368. *
  1369. * var wordArray = CryptoJS.enc.Base64url.parse(base64String);
  1370. */
  1371. parse: function(Y, D) {
  1372. D === void 0 && (D = !0);
  1373. var C = Y.length, Q = D ? this._safe_map : this._map, t = this._reverseMap;
  1374. if (!t) {
  1375. t = this._reverseMap = [];
  1376. for (var f = 0; f < Q.length; f++)
  1377. t[Q.charCodeAt(f)] = f;
  1378. }
  1379. var v = Q.charAt(64);
  1380. if (v) {
  1381. var c = Y.indexOf(v);
  1382. c !== -1 && (C = c);
  1383. }
  1384. return P(Y, C, t);
  1385. },
  1386. _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
  1387. _safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
  1388. };
  1389. function P(Y, D, C) {
  1390. for (var Q = [], t = 0, f = 0; f < D; f++)
  1391. if (f % 4) {
  1392. var v = C[Y.charCodeAt(f - 1)] << f % 4 * 2, c = C[Y.charCodeAt(f)] >>> 6 - f % 4 * 2, n = v | c;
  1393. Q[t >>> 2] |= n << 24 - t % 4 * 8, t++;
  1394. }
  1395. return r.create(Q, t);
  1396. }
  1397. }(), w.enc.Base64url;
  1398. });
  1399. }(RA)), RA.exports;
  1400. }
  1401. var _A = { exports: {} }, sB;
  1402. function PA() {
  1403. return sB || (sB = 1, function(A, e) {
  1404. (function(w, B) {
  1405. A.exports = B(E());
  1406. })(k, function(w) {
  1407. return function(B) {
  1408. var g = w, r = g.lib, x = r.WordArray, P = r.Hasher, Y = g.algo, D = [];
  1409. (function() {
  1410. for (var c = 0; c < 64; c++)
  1411. D[c] = B.abs(B.sin(c + 1)) * 4294967296 | 0;
  1412. })();
  1413. var C = Y.MD5 = P.extend({
  1414. _doReset: function() {
  1415. this._hash = new x.init([
  1416. 1732584193,
  1417. 4023233417,
  1418. 2562383102,
  1419. 271733878
  1420. ]);
  1421. },
  1422. _doProcessBlock: function(c, n) {
  1423. for (var H = 0; H < 16; H++) {
  1424. var s = n + H, M = c[s];
  1425. c[s] = (M << 8 | M >>> 24) & 16711935 | (M << 24 | M >>> 8) & 4278255360;
  1426. }
  1427. var z = this._hash.words, O = c[n + 0], L = c[n + 1], Z = c[n + 2], l = c[n + 3], j = c[n + 4], W = c[n + 5], b = c[n + 6], d = c[n + 7], a = c[n + 8], V = c[n + 9], o = c[n + 10], J = c[n + 11], q = c[n + 12], p = c[n + 13], U = c[n + 14], T = c[n + 15], G = z[0], y = z[1], X = z[2], u = z[3];
  1428. G = Q(G, y, X, u, O, 7, D[0]), u = Q(u, G, y, X, L, 12, D[1]), X = Q(X, u, G, y, Z, 17, D[2]), y = Q(y, X, u, G, l, 22, D[3]), G = Q(G, y, X, u, j, 7, D[4]), u = Q(u, G, y, X, W, 12, D[5]), X = Q(X, u, G, y, b, 17, D[6]), y = Q(y, X, u, G, d, 22, D[7]), G = Q(G, y, X, u, a, 7, D[8]), u = Q(u, G, y, X, V, 12, D[9]), X = Q(X, u, G, y, o, 17, D[10]), y = Q(y, X, u, G, J, 22, D[11]), G = Q(G, y, X, u, q, 7, D[12]), u = Q(u, G, y, X, p, 12, D[13]), X = Q(X, u, G, y, U, 17, D[14]), y = Q(y, X, u, G, T, 22, D[15]), G = t(G, y, X, u, L, 5, D[16]), u = t(u, G, y, X, b, 9, D[17]), X = t(X, u, G, y, J, 14, D[18]), y = t(y, X, u, G, O, 20, D[19]), G = t(G, y, X, u, W, 5, D[20]), u = t(u, G, y, X, o, 9, D[21]), X = t(X, u, G, y, T, 14, D[22]), y = t(y, X, u, G, j, 20, D[23]), G = t(G, y, X, u, V, 5, D[24]), u = t(u, G, y, X, U, 9, D[25]), X = t(X, u, G, y, l, 14, D[26]), y = t(y, X, u, G, a, 20, D[27]), G = t(G, y, X, u, p, 5, D[28]), u = t(u, G, y, X, Z, 9, D[29]), X = t(X, u, G, y, d, 14, D[30]), y = t(y, X, u, G, q, 20, D[31]), G = f(G, y, X, u, W, 4, D[32]), u = f(u, G, y, X, a, 11, D[33]), X = f(X, u, G, y, J, 16, D[34]), y = f(y, X, u, G, U, 23, D[35]), G = f(G, y, X, u, L, 4, D[36]), u = f(u, G, y, X, j, 11, D[37]), X = f(X, u, G, y, d, 16, D[38]), y = f(y, X, u, G, o, 23, D[39]), G = f(G, y, X, u, p, 4, D[40]), u = f(u, G, y, X, O, 11, D[41]), X = f(X, u, G, y, l, 16, D[42]), y = f(y, X, u, G, b, 23, D[43]), G = f(G, y, X, u, V, 4, D[44]), u = f(u, G, y, X, q, 11, D[45]), X = f(X, u, G, y, T, 16, D[46]), y = f(y, X, u, G, Z, 23, D[47]), G = v(G, y, X, u, O, 6, D[48]), u = v(u, G, y, X, d, 10, D[49]), X = v(X, u, G, y, U, 15, D[50]), y = v(y, X, u, G, W, 21, D[51]), G = v(G, y, X, u, q, 6, D[52]), u = v(u, G, y, X, l, 10, D[53]), X = v(X, u, G, y, o, 15, D[54]), y = v(y, X, u, G, L, 21, D[55]), G = v(G, y, X, u, a, 6, D[56]), u = v(u, G, y, X, T, 10, D[57]), X = v(X, u, G, y, b, 15, D[58]), y = v(y, X, u, G, p, 21, D[59]), G = v(G, y, X, u, j, 6, D[60]), u = v(u, G, y, X, J, 10, D[61]), X = v(X, u, G, y, Z, 15, D[62]), y = v(y, X, u, G, V, 21, D[63]), z[0] = z[0] + G | 0, z[1] = z[1] + y | 0, z[2] = z[2] + X | 0, z[3] = z[3] + u | 0;
  1429. },
  1430. _doFinalize: function() {
  1431. var c = this._data, n = c.words, H = this._nDataBytes * 8, s = c.sigBytes * 8;
  1432. n[s >>> 5] |= 128 << 24 - s % 32;
  1433. var M = B.floor(H / 4294967296), z = H;
  1434. n[(s + 64 >>> 9 << 4) + 15] = (M << 8 | M >>> 24) & 16711935 | (M << 24 | M >>> 8) & 4278255360, n[(s + 64 >>> 9 << 4) + 14] = (z << 8 | z >>> 24) & 16711935 | (z << 24 | z >>> 8) & 4278255360, c.sigBytes = (n.length + 1) * 4, this._process();
  1435. for (var O = this._hash, L = O.words, Z = 0; Z < 4; Z++) {
  1436. var l = L[Z];
  1437. L[Z] = (l << 8 | l >>> 24) & 16711935 | (l << 24 | l >>> 8) & 4278255360;
  1438. }
  1439. return O;
  1440. },
  1441. clone: function() {
  1442. var c = P.clone.call(this);
  1443. return c._hash = this._hash.clone(), c;
  1444. }
  1445. });
  1446. function Q(c, n, H, s, M, z, O) {
  1447. var L = c + (n & H | ~n & s) + M + O;
  1448. return (L << z | L >>> 32 - z) + n;
  1449. }
  1450. function t(c, n, H, s, M, z, O) {
  1451. var L = c + (n & s | H & ~s) + M + O;
  1452. return (L << z | L >>> 32 - z) + n;
  1453. }
  1454. function f(c, n, H, s, M, z, O) {
  1455. var L = c + (n ^ H ^ s) + M + O;
  1456. return (L << z | L >>> 32 - z) + n;
  1457. }
  1458. function v(c, n, H, s, M, z, O) {
  1459. var L = c + (H ^ (n | ~s)) + M + O;
  1460. return (L << z | L >>> 32 - z) + n;
  1461. }
  1462. g.MD5 = P._createHelper(C), g.HmacMD5 = P._createHmacHelper(C);
  1463. }(Math), w.MD5;
  1464. });
  1465. }(_A)), _A.exports;
  1466. }
  1467. var $A = { exports: {} }, eB;
  1468. function Dw() {
  1469. return eB || (eB = 1, function(A, e) {
  1470. (function(w, B) {
  1471. A.exports = B(E());
  1472. })(k, function(w) {
  1473. return function() {
  1474. var B = w, g = B.lib, r = g.WordArray, x = g.Hasher, P = B.algo, Y = [], D = P.SHA1 = x.extend({
  1475. _doReset: function() {
  1476. this._hash = new r.init([
  1477. 1732584193,
  1478. 4023233417,
  1479. 2562383102,
  1480. 271733878,
  1481. 3285377520
  1482. ]);
  1483. },
  1484. _doProcessBlock: function(C, Q) {
  1485. for (var t = this._hash.words, f = t[0], v = t[1], c = t[2], n = t[3], H = t[4], s = 0; s < 80; s++) {
  1486. if (s < 16)
  1487. Y[s] = C[Q + s] | 0;
  1488. else {
  1489. var M = Y[s - 3] ^ Y[s - 8] ^ Y[s - 14] ^ Y[s - 16];
  1490. Y[s] = M << 1 | M >>> 31;
  1491. }
  1492. var z = (f << 5 | f >>> 27) + H + Y[s];
  1493. s < 20 ? z += (v & c | ~v & n) + 1518500249 : s < 40 ? z += (v ^ c ^ n) + 1859775393 : s < 60 ? z += (v & c | v & n | c & n) - 1894007588 : z += (v ^ c ^ n) - 899497514, H = n, n = c, c = v << 30 | v >>> 2, v = f, f = z;
  1494. }
  1495. t[0] = t[0] + f | 0, t[1] = t[1] + v | 0, t[2] = t[2] + c | 0, t[3] = t[3] + n | 0, t[4] = t[4] + H | 0;
  1496. },
  1497. _doFinalize: function() {
  1498. var C = this._data, Q = C.words, t = this._nDataBytes * 8, f = C.sigBytes * 8;
  1499. return Q[f >>> 5] |= 128 << 24 - f % 32, Q[(f + 64 >>> 9 << 4) + 14] = Math.floor(t / 4294967296), Q[(f + 64 >>> 9 << 4) + 15] = t, C.sigBytes = Q.length * 4, this._process(), this._hash;
  1500. },
  1501. clone: function() {
  1502. var C = x.clone.call(this);
  1503. return C._hash = this._hash.clone(), C;
  1504. }
  1505. });
  1506. B.SHA1 = x._createHelper(D), B.HmacSHA1 = x._createHmacHelper(D);
  1507. }(), w.SHA1;
  1508. });
  1509. }($A)), $A.exports;
  1510. }
  1511. var Ag = { exports: {} }, tB;
  1512. function Vg() {
  1513. return tB || (tB = 1, function(A, e) {
  1514. (function(w, B) {
  1515. A.exports = B(E());
  1516. })(k, function(w) {
  1517. return function(B) {
  1518. var g = w, r = g.lib, x = r.WordArray, P = r.Hasher, Y = g.algo, D = [], C = [];
  1519. (function() {
  1520. function f(H) {
  1521. for (var s = B.sqrt(H), M = 2; M <= s; M++)
  1522. if (!(H % M))
  1523. return !1;
  1524. return !0;
  1525. }
  1526. function v(H) {
  1527. return (H - (H | 0)) * 4294967296 | 0;
  1528. }
  1529. for (var c = 2, n = 0; n < 64; )
  1530. f(c) && (n < 8 && (D[n] = v(B.pow(c, 1 / 2))), C[n] = v(B.pow(c, 1 / 3)), n++), c++;
  1531. })();
  1532. var Q = [], t = Y.SHA256 = P.extend({
  1533. _doReset: function() {
  1534. this._hash = new x.init(D.slice(0));
  1535. },
  1536. _doProcessBlock: function(f, v) {
  1537. for (var c = this._hash.words, n = c[0], H = c[1], s = c[2], M = c[3], z = c[4], O = c[5], L = c[6], Z = c[7], l = 0; l < 64; l++) {
  1538. if (l < 16)
  1539. Q[l] = f[v + l] | 0;
  1540. else {
  1541. var j = Q[l - 15], W = (j << 25 | j >>> 7) ^ (j << 14 | j >>> 18) ^ j >>> 3, b = Q[l - 2], d = (b << 15 | b >>> 17) ^ (b << 13 | b >>> 19) ^ b >>> 10;
  1542. Q[l] = W + Q[l - 7] + d + Q[l - 16];
  1543. }
  1544. var a = z & O ^ ~z & L, V = n & H ^ n & s ^ H & s, o = (n << 30 | n >>> 2) ^ (n << 19 | n >>> 13) ^ (n << 10 | n >>> 22), J = (z << 26 | z >>> 6) ^ (z << 21 | z >>> 11) ^ (z << 7 | z >>> 25), q = Z + J + a + C[l] + Q[l], p = o + V;
  1545. Z = L, L = O, O = z, z = M + q | 0, M = s, s = H, H = n, n = q + p | 0;
  1546. }
  1547. c[0] = c[0] + n | 0, c[1] = c[1] + H | 0, c[2] = c[2] + s | 0, c[3] = c[3] + M | 0, c[4] = c[4] + z | 0, c[5] = c[5] + O | 0, c[6] = c[6] + L | 0, c[7] = c[7] + Z | 0;
  1548. },
  1549. _doFinalize: function() {
  1550. var f = this._data, v = f.words, c = this._nDataBytes * 8, n = f.sigBytes * 8;
  1551. return v[n >>> 5] |= 128 << 24 - n % 32, v[(n + 64 >>> 9 << 4) + 14] = B.floor(c / 4294967296), v[(n + 64 >>> 9 << 4) + 15] = c, f.sigBytes = v.length * 4, this._process(), this._hash;
  1552. },
  1553. clone: function() {
  1554. var f = P.clone.call(this);
  1555. return f._hash = this._hash.clone(), f;
  1556. }
  1557. });
  1558. g.SHA256 = P._createHelper(t), g.HmacSHA256 = P._createHmacHelper(t);
  1559. }(Math), w.SHA256;
  1560. });
  1561. }(Ag)), Ag.exports;
  1562. }
  1563. var gg = { exports: {} }, CB;
  1564. function lD() {
  1565. return CB || (CB = 1, function(A, e) {
  1566. (function(w, B, g) {
  1567. A.exports = B(E(), Vg());
  1568. })(k, function(w) {
  1569. return function() {
  1570. var B = w, g = B.lib, r = g.WordArray, x = B.algo, P = x.SHA256, Y = x.SHA224 = P.extend({
  1571. _doReset: function() {
  1572. this._hash = new r.init([
  1573. 3238371032,
  1574. 914150663,
  1575. 812702999,
  1576. 4144912697,
  1577. 4290775857,
  1578. 1750603025,
  1579. 1694076839,
  1580. 3204075428
  1581. ]);
  1582. },
  1583. _doFinalize: function() {
  1584. var D = P._doFinalize.call(this);
  1585. return D.sigBytes -= 4, D;
  1586. }
  1587. });
  1588. B.SHA224 = P._createHelper(Y), B.HmacSHA224 = P._createHmacHelper(Y);
  1589. }(), w.SHA224;
  1590. });
  1591. }(gg)), gg.exports;
  1592. }
  1593. var Bg = { exports: {} }, MB;
  1594. function sw() {
  1595. return MB || (MB = 1, function(A, e) {
  1596. (function(w, B, g) {
  1597. A.exports = B(E(), KA());
  1598. })(k, function(w) {
  1599. return function() {
  1600. var B = w, g = B.lib, r = g.Hasher, x = B.x64, P = x.Word, Y = x.WordArray, D = B.algo;
  1601. function C() {
  1602. return P.create.apply(P, arguments);
  1603. }
  1604. var Q = [
  1605. C(1116352408, 3609767458),
  1606. C(1899447441, 602891725),
  1607. C(3049323471, 3964484399),
  1608. C(3921009573, 2173295548),
  1609. C(961987163, 4081628472),
  1610. C(1508970993, 3053834265),
  1611. C(2453635748, 2937671579),
  1612. C(2870763221, 3664609560),
  1613. C(3624381080, 2734883394),
  1614. C(310598401, 1164996542),
  1615. C(607225278, 1323610764),
  1616. C(1426881987, 3590304994),
  1617. C(1925078388, 4068182383),
  1618. C(2162078206, 991336113),
  1619. C(2614888103, 633803317),
  1620. C(3248222580, 3479774868),
  1621. C(3835390401, 2666613458),
  1622. C(4022224774, 944711139),
  1623. C(264347078, 2341262773),
  1624. C(604807628, 2007800933),
  1625. C(770255983, 1495990901),
  1626. C(1249150122, 1856431235),
  1627. C(1555081692, 3175218132),
  1628. C(1996064986, 2198950837),
  1629. C(2554220882, 3999719339),
  1630. C(2821834349, 766784016),
  1631. C(2952996808, 2566594879),
  1632. C(3210313671, 3203337956),
  1633. C(3336571891, 1034457026),
  1634. C(3584528711, 2466948901),
  1635. C(113926993, 3758326383),
  1636. C(338241895, 168717936),
  1637. C(666307205, 1188179964),
  1638. C(773529912, 1546045734),
  1639. C(1294757372, 1522805485),
  1640. C(1396182291, 2643833823),
  1641. C(1695183700, 2343527390),
  1642. C(1986661051, 1014477480),
  1643. C(2177026350, 1206759142),
  1644. C(2456956037, 344077627),
  1645. C(2730485921, 1290863460),
  1646. C(2820302411, 3158454273),
  1647. C(3259730800, 3505952657),
  1648. C(3345764771, 106217008),
  1649. C(3516065817, 3606008344),
  1650. C(3600352804, 1432725776),
  1651. C(4094571909, 1467031594),
  1652. C(275423344, 851169720),
  1653. C(430227734, 3100823752),
  1654. C(506948616, 1363258195),
  1655. C(659060556, 3750685593),
  1656. C(883997877, 3785050280),
  1657. C(958139571, 3318307427),
  1658. C(1322822218, 3812723403),
  1659. C(1537002063, 2003034995),
  1660. C(1747873779, 3602036899),
  1661. C(1955562222, 1575990012),
  1662. C(2024104815, 1125592928),
  1663. C(2227730452, 2716904306),
  1664. C(2361852424, 442776044),
  1665. C(2428436474, 593698344),
  1666. C(2756734187, 3733110249),
  1667. C(3204031479, 2999351573),
  1668. C(3329325298, 3815920427),
  1669. C(3391569614, 3928383900),
  1670. C(3515267271, 566280711),
  1671. C(3940187606, 3454069534),
  1672. C(4118630271, 4000239992),
  1673. C(116418474, 1914138554),
  1674. C(174292421, 2731055270),
  1675. C(289380356, 3203993006),
  1676. C(460393269, 320620315),
  1677. C(685471733, 587496836),
  1678. C(852142971, 1086792851),
  1679. C(1017036298, 365543100),
  1680. C(1126000580, 2618297676),
  1681. C(1288033470, 3409855158),
  1682. C(1501505948, 4234509866),
  1683. C(1607167915, 987167468),
  1684. C(1816402316, 1246189591)
  1685. ], t = [];
  1686. (function() {
  1687. for (var v = 0; v < 80; v++)
  1688. t[v] = C();
  1689. })();
  1690. var f = D.SHA512 = r.extend({
  1691. _doReset: function() {
  1692. this._hash = new Y.init([
  1693. new P.init(1779033703, 4089235720),
  1694. new P.init(3144134277, 2227873595),
  1695. new P.init(1013904242, 4271175723),
  1696. new P.init(2773480762, 1595750129),
  1697. new P.init(1359893119, 2917565137),
  1698. new P.init(2600822924, 725511199),
  1699. new P.init(528734635, 4215389547),
  1700. new P.init(1541459225, 327033209)
  1701. ]);
  1702. },
  1703. _doProcessBlock: function(v, c) {
  1704. for (var n = this._hash.words, H = n[0], s = n[1], M = n[2], z = n[3], O = n[4], L = n[5], Z = n[6], l = n[7], j = H.high, W = H.low, b = s.high, d = s.low, a = M.high, V = M.low, o = z.high, J = z.low, q = O.high, p = O.low, U = L.high, T = L.low, G = Z.high, y = Z.low, X = l.high, u = l.low, h = j, i = W, gA = b, K = d, LA = a, cA = V, EA = o, OA = J, eA = q, BA = p, jA = U, xA = T, VA = G, ZA = y, IA = X, bA = u, tA = 0; tA < 80; tA++) {
  1705. var DA, vA, FA = t[tA];
  1706. if (tA < 16)
  1707. vA = FA.high = v[c + tA * 2] | 0, DA = FA.low = v[c + tA * 2 + 1] | 0;
  1708. else {
  1709. var og = t[tA - 15], YA = og.high, lA = og.low, tw = (YA >>> 1 | lA << 31) ^ (YA >>> 8 | lA << 24) ^ YA >>> 7, Ng = (lA >>> 1 | YA << 31) ^ (lA >>> 8 | YA << 24) ^ (lA >>> 7 | YA << 25), mg = t[tA - 2], QA = mg.high, GA = mg.low, Cw = (QA >>> 19 | GA << 13) ^ (QA << 3 | GA >>> 29) ^ QA >>> 6, Jg = (GA >>> 19 | QA << 13) ^ (GA << 3 | QA >>> 29) ^ (GA >>> 6 | QA << 26), kg = t[tA - 7], Mw = kg.high, vw = kg.low, Kg = t[tA - 16], rw = Kg.high, Eg = Kg.low;
  1710. DA = Ng + vw, vA = tw + Mw + (DA >>> 0 < Ng >>> 0 ? 1 : 0), DA = DA + Jg, vA = vA + Cw + (DA >>> 0 < Jg >>> 0 ? 1 : 0), DA = DA + Eg, vA = vA + rw + (DA >>> 0 < Eg >>> 0 ? 1 : 0), FA.high = vA, FA.low = DA;
  1711. }
  1712. var fw = eA & jA ^ ~eA & VA, Ig = BA & xA ^ ~BA & ZA, nw = h & gA ^ h & LA ^ gA & LA, zw = i & K ^ i & cA ^ K & cA, Pw = (h >>> 28 | i << 4) ^ (h << 30 | i >>> 2) ^ (h << 25 | i >>> 7), pg = (i >>> 28 | h << 4) ^ (i << 30 | h >>> 2) ^ (i << 25 | h >>> 7), cw = (eA >>> 14 | BA << 18) ^ (eA >>> 18 | BA << 14) ^ (eA << 23 | BA >>> 9), Yw = (BA >>> 14 | eA << 18) ^ (BA >>> 18 | eA << 14) ^ (BA << 23 | eA >>> 9), Tg = Q[tA], Qw = Tg.high, Sg = Tg.low, wA = bA + Yw, rA = IA + cw + (wA >>> 0 < bA >>> 0 ? 1 : 0), wA = wA + Ig, rA = rA + fw + (wA >>> 0 < Ig >>> 0 ? 1 : 0), wA = wA + Sg, rA = rA + Qw + (wA >>> 0 < Sg >>> 0 ? 1 : 0), wA = wA + DA, rA = rA + vA + (wA >>> 0 < DA >>> 0 ? 1 : 0), Ug = pg + zw, Ww = Pw + nw + (Ug >>> 0 < pg >>> 0 ? 1 : 0);
  1713. IA = VA, bA = ZA, VA = jA, ZA = xA, jA = eA, xA = BA, BA = OA + wA | 0, eA = EA + rA + (BA >>> 0 < OA >>> 0 ? 1 : 0) | 0, EA = LA, OA = cA, LA = gA, cA = K, gA = h, K = i, i = wA + Ug | 0, h = rA + Ww + (i >>> 0 < wA >>> 0 ? 1 : 0) | 0;
  1714. }
  1715. W = H.low = W + i, H.high = j + h + (W >>> 0 < i >>> 0 ? 1 : 0), d = s.low = d + K, s.high = b + gA + (d >>> 0 < K >>> 0 ? 1 : 0), V = M.low = V + cA, M.high = a + LA + (V >>> 0 < cA >>> 0 ? 1 : 0), J = z.low = J + OA, z.high = o + EA + (J >>> 0 < OA >>> 0 ? 1 : 0), p = O.low = p + BA, O.high = q + eA + (p >>> 0 < BA >>> 0 ? 1 : 0), T = L.low = T + xA, L.high = U + jA + (T >>> 0 < xA >>> 0 ? 1 : 0), y = Z.low = y + ZA, Z.high = G + VA + (y >>> 0 < ZA >>> 0 ? 1 : 0), u = l.low = u + bA, l.high = X + IA + (u >>> 0 < bA >>> 0 ? 1 : 0);
  1716. },
  1717. _doFinalize: function() {
  1718. var v = this._data, c = v.words, n = this._nDataBytes * 8, H = v.sigBytes * 8;
  1719. c[H >>> 5] |= 128 << 24 - H % 32, c[(H + 128 >>> 10 << 5) + 30] = Math.floor(n / 4294967296), c[(H + 128 >>> 10 << 5) + 31] = n, v.sigBytes = c.length * 4, this._process();
  1720. var s = this._hash.toX32();
  1721. return s;
  1722. },
  1723. clone: function() {
  1724. var v = r.clone.call(this);
  1725. return v._hash = this._hash.clone(), v;
  1726. },
  1727. blockSize: 1024 / 32
  1728. });
  1729. B.SHA512 = r._createHelper(f), B.HmacSHA512 = r._createHmacHelper(f);
  1730. }(), w.SHA512;
  1731. });
  1732. }(Bg)), Bg.exports;
  1733. }
  1734. var wg = { exports: {} }, vB;
  1735. function GD() {
  1736. return vB || (vB = 1, function(A, e) {
  1737. (function(w, B, g) {
  1738. A.exports = B(E(), KA(), sw());
  1739. })(k, function(w) {
  1740. return function() {
  1741. var B = w, g = B.x64, r = g.Word, x = g.WordArray, P = B.algo, Y = P.SHA512, D = P.SHA384 = Y.extend({
  1742. _doReset: function() {
  1743. this._hash = new x.init([
  1744. new r.init(3418070365, 3238371032),
  1745. new r.init(1654270250, 914150663),
  1746. new r.init(2438529370, 812702999),
  1747. new r.init(355462360, 4144912697),
  1748. new r.init(1731405415, 4290775857),
  1749. new r.init(2394180231, 1750603025),
  1750. new r.init(3675008525, 1694076839),
  1751. new r.init(1203062813, 3204075428)
  1752. ]);
  1753. },
  1754. _doFinalize: function() {
  1755. var C = Y._doFinalize.call(this);
  1756. return C.sigBytes -= 16, C;
  1757. }
  1758. });
  1759. B.SHA384 = Y._createHelper(D), B.HmacSHA384 = Y._createHmacHelper(D);
  1760. }(), w.SHA384;
  1761. });
  1762. }(wg)), wg.exports;
  1763. }
  1764. var Dg = { exports: {} }, rB;
  1765. function dD() {
  1766. return rB || (rB = 1, function(A, e) {
  1767. (function(w, B, g) {
  1768. A.exports = B(E(), KA());
  1769. })(k, function(w) {
  1770. return function(B) {
  1771. var g = w, r = g.lib, x = r.WordArray, P = r.Hasher, Y = g.x64, D = Y.Word, C = g.algo, Q = [], t = [], f = [];
  1772. (function() {
  1773. for (var n = 1, H = 0, s = 0; s < 24; s++) {
  1774. Q[n + 5 * H] = (s + 1) * (s + 2) / 2 % 64;
  1775. var M = H % 5, z = (2 * n + 3 * H) % 5;
  1776. n = M, H = z;
  1777. }
  1778. for (var n = 0; n < 5; n++)
  1779. for (var H = 0; H < 5; H++)
  1780. t[n + 5 * H] = H + (2 * n + 3 * H) % 5 * 5;
  1781. for (var O = 1, L = 0; L < 24; L++) {
  1782. for (var Z = 0, l = 0, j = 0; j < 7; j++) {
  1783. if (O & 1) {
  1784. var W = (1 << j) - 1;
  1785. W < 32 ? l ^= 1 << W : Z ^= 1 << W - 32;
  1786. }
  1787. O & 128 ? O = O << 1 ^ 113 : O <<= 1;
  1788. }
  1789. f[L] = D.create(Z, l);
  1790. }
  1791. })();
  1792. var v = [];
  1793. (function() {
  1794. for (var n = 0; n < 25; n++)
  1795. v[n] = D.create();
  1796. })();
  1797. var c = C.SHA3 = P.extend({
  1798. /**
  1799. * Configuration options.
  1800. *
  1801. * @property {number} outputLength
  1802. * The desired number of bits in the output hash.
  1803. * Only values permitted are: 224, 256, 384, 512.
  1804. * Default: 512
  1805. */
  1806. cfg: P.cfg.extend({
  1807. outputLength: 512
  1808. }),
  1809. _doReset: function() {
  1810. for (var n = this._state = [], H = 0; H < 25; H++)
  1811. n[H] = new D.init();
  1812. this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
  1813. },
  1814. _doProcessBlock: function(n, H) {
  1815. for (var s = this._state, M = this.blockSize / 2, z = 0; z < M; z++) {
  1816. var O = n[H + 2 * z], L = n[H + 2 * z + 1];
  1817. O = (O << 8 | O >>> 24) & 16711935 | (O << 24 | O >>> 8) & 4278255360, L = (L << 8 | L >>> 24) & 16711935 | (L << 24 | L >>> 8) & 4278255360;
  1818. var Z = s[z];
  1819. Z.high ^= L, Z.low ^= O;
  1820. }
  1821. for (var l = 0; l < 24; l++) {
  1822. for (var j = 0; j < 5; j++) {
  1823. for (var W = 0, b = 0, d = 0; d < 5; d++) {
  1824. var Z = s[j + 5 * d];
  1825. W ^= Z.high, b ^= Z.low;
  1826. }
  1827. var a = v[j];
  1828. a.high = W, a.low = b;
  1829. }
  1830. for (var j = 0; j < 5; j++)
  1831. for (var V = v[(j + 4) % 5], o = v[(j + 1) % 5], J = o.high, q = o.low, W = V.high ^ (J << 1 | q >>> 31), b = V.low ^ (q << 1 | J >>> 31), d = 0; d < 5; d++) {
  1832. var Z = s[j + 5 * d];
  1833. Z.high ^= W, Z.low ^= b;
  1834. }
  1835. for (var p = 1; p < 25; p++) {
  1836. var W, b, Z = s[p], U = Z.high, T = Z.low, G = Q[p];
  1837. G < 32 ? (W = U << G | T >>> 32 - G, b = T << G | U >>> 32 - G) : (W = T << G - 32 | U >>> 64 - G, b = U << G - 32 | T >>> 64 - G);
  1838. var y = v[t[p]];
  1839. y.high = W, y.low = b;
  1840. }
  1841. var X = v[0], u = s[0];
  1842. X.high = u.high, X.low = u.low;
  1843. for (var j = 0; j < 5; j++)
  1844. for (var d = 0; d < 5; d++) {
  1845. var p = j + 5 * d, Z = s[p], h = v[p], i = v[(j + 1) % 5 + 5 * d], gA = v[(j + 2) % 5 + 5 * d];
  1846. Z.high = h.high ^ ~i.high & gA.high, Z.low = h.low ^ ~i.low & gA.low;
  1847. }
  1848. var Z = s[0], K = f[l];
  1849. Z.high ^= K.high, Z.low ^= K.low;
  1850. }
  1851. },
  1852. _doFinalize: function() {
  1853. var n = this._data, H = n.words;
  1854. this._nDataBytes * 8;
  1855. var s = n.sigBytes * 8, M = this.blockSize * 32;
  1856. H[s >>> 5] |= 1 << 24 - s % 32, H[(B.ceil((s + 1) / M) * M >>> 5) - 1] |= 128, n.sigBytes = H.length * 4, this._process();
  1857. for (var z = this._state, O = this.cfg.outputLength / 8, L = O / 8, Z = [], l = 0; l < L; l++) {
  1858. var j = z[l], W = j.high, b = j.low;
  1859. W = (W << 8 | W >>> 24) & 16711935 | (W << 24 | W >>> 8) & 4278255360, b = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, Z.push(b), Z.push(W);
  1860. }
  1861. return new x.init(Z, O);
  1862. },
  1863. clone: function() {
  1864. for (var n = P.clone.call(this), H = n._state = this._state.slice(0), s = 0; s < 25; s++)
  1865. H[s] = H[s].clone();
  1866. return n;
  1867. }
  1868. });
  1869. g.SHA3 = P._createHelper(c), g.HmacSHA3 = P._createHmacHelper(c);
  1870. }(Math), w.SHA3;
  1871. });
  1872. }(Dg)), Dg.exports;
  1873. }
  1874. var sg = { exports: {} }, fB;
  1875. function aD() {
  1876. return fB || (fB = 1, function(A, e) {
  1877. (function(w, B) {
  1878. A.exports = B(E());
  1879. })(k, function(w) {
  1880. /** @preserve
  1881. (c) 2012 by Cédric Mesnil. All rights reserved.
  1882. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
  1883. - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  1884. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  1885. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  1886. */
  1887. return function(B) {
  1888. var g = w, r = g.lib, x = r.WordArray, P = r.Hasher, Y = g.algo, D = x.create([
  1889. 0,
  1890. 1,
  1891. 2,
  1892. 3,
  1893. 4,
  1894. 5,
  1895. 6,
  1896. 7,
  1897. 8,
  1898. 9,
  1899. 10,
  1900. 11,
  1901. 12,
  1902. 13,
  1903. 14,
  1904. 15,
  1905. 7,
  1906. 4,
  1907. 13,
  1908. 1,
  1909. 10,
  1910. 6,
  1911. 15,
  1912. 3,
  1913. 12,
  1914. 0,
  1915. 9,
  1916. 5,
  1917. 2,
  1918. 14,
  1919. 11,
  1920. 8,
  1921. 3,
  1922. 10,
  1923. 14,
  1924. 4,
  1925. 9,
  1926. 15,
  1927. 8,
  1928. 1,
  1929. 2,
  1930. 7,
  1931. 0,
  1932. 6,
  1933. 13,
  1934. 11,
  1935. 5,
  1936. 12,
  1937. 1,
  1938. 9,
  1939. 11,
  1940. 10,
  1941. 0,
  1942. 8,
  1943. 12,
  1944. 4,
  1945. 13,
  1946. 3,
  1947. 7,
  1948. 15,
  1949. 14,
  1950. 5,
  1951. 6,
  1952. 2,
  1953. 4,
  1954. 0,
  1955. 5,
  1956. 9,
  1957. 7,
  1958. 12,
  1959. 2,
  1960. 10,
  1961. 14,
  1962. 1,
  1963. 3,
  1964. 8,
  1965. 11,
  1966. 6,
  1967. 15,
  1968. 13
  1969. ]), C = x.create([
  1970. 5,
  1971. 14,
  1972. 7,
  1973. 0,
  1974. 9,
  1975. 2,
  1976. 11,
  1977. 4,
  1978. 13,
  1979. 6,
  1980. 15,
  1981. 8,
  1982. 1,
  1983. 10,
  1984. 3,
  1985. 12,
  1986. 6,
  1987. 11,
  1988. 3,
  1989. 7,
  1990. 0,
  1991. 13,
  1992. 5,
  1993. 10,
  1994. 14,
  1995. 15,
  1996. 8,
  1997. 12,
  1998. 4,
  1999. 9,
  2000. 1,
  2001. 2,
  2002. 15,
  2003. 5,
  2004. 1,
  2005. 3,
  2006. 7,
  2007. 14,
  2008. 6,
  2009. 9,
  2010. 11,
  2011. 8,
  2012. 12,
  2013. 2,
  2014. 10,
  2015. 0,
  2016. 4,
  2017. 13,
  2018. 8,
  2019. 6,
  2020. 4,
  2021. 1,
  2022. 3,
  2023. 11,
  2024. 15,
  2025. 0,
  2026. 5,
  2027. 12,
  2028. 2,
  2029. 13,
  2030. 9,
  2031. 7,
  2032. 10,
  2033. 14,
  2034. 12,
  2035. 15,
  2036. 10,
  2037. 4,
  2038. 1,
  2039. 5,
  2040. 8,
  2041. 7,
  2042. 6,
  2043. 2,
  2044. 13,
  2045. 14,
  2046. 0,
  2047. 3,
  2048. 9,
  2049. 11
  2050. ]), Q = x.create([
  2051. 11,
  2052. 14,
  2053. 15,
  2054. 12,
  2055. 5,
  2056. 8,
  2057. 7,
  2058. 9,
  2059. 11,
  2060. 13,
  2061. 14,
  2062. 15,
  2063. 6,
  2064. 7,
  2065. 9,
  2066. 8,
  2067. 7,
  2068. 6,
  2069. 8,
  2070. 13,
  2071. 11,
  2072. 9,
  2073. 7,
  2074. 15,
  2075. 7,
  2076. 12,
  2077. 15,
  2078. 9,
  2079. 11,
  2080. 7,
  2081. 13,
  2082. 12,
  2083. 11,
  2084. 13,
  2085. 6,
  2086. 7,
  2087. 14,
  2088. 9,
  2089. 13,
  2090. 15,
  2091. 14,
  2092. 8,
  2093. 13,
  2094. 6,
  2095. 5,
  2096. 12,
  2097. 7,
  2098. 5,
  2099. 11,
  2100. 12,
  2101. 14,
  2102. 15,
  2103. 14,
  2104. 15,
  2105. 9,
  2106. 8,
  2107. 9,
  2108. 14,
  2109. 5,
  2110. 6,
  2111. 8,
  2112. 6,
  2113. 5,
  2114. 12,
  2115. 9,
  2116. 15,
  2117. 5,
  2118. 11,
  2119. 6,
  2120. 8,
  2121. 13,
  2122. 12,
  2123. 5,
  2124. 12,
  2125. 13,
  2126. 14,
  2127. 11,
  2128. 8,
  2129. 5,
  2130. 6
  2131. ]), t = x.create([
  2132. 8,
  2133. 9,
  2134. 9,
  2135. 11,
  2136. 13,
  2137. 15,
  2138. 15,
  2139. 5,
  2140. 7,
  2141. 7,
  2142. 8,
  2143. 11,
  2144. 14,
  2145. 14,
  2146. 12,
  2147. 6,
  2148. 9,
  2149. 13,
  2150. 15,
  2151. 7,
  2152. 12,
  2153. 8,
  2154. 9,
  2155. 11,
  2156. 7,
  2157. 7,
  2158. 12,
  2159. 7,
  2160. 6,
  2161. 15,
  2162. 13,
  2163. 11,
  2164. 9,
  2165. 7,
  2166. 15,
  2167. 11,
  2168. 8,
  2169. 6,
  2170. 6,
  2171. 14,
  2172. 12,
  2173. 13,
  2174. 5,
  2175. 14,
  2176. 13,
  2177. 13,
  2178. 7,
  2179. 5,
  2180. 15,
  2181. 5,
  2182. 8,
  2183. 11,
  2184. 14,
  2185. 14,
  2186. 6,
  2187. 14,
  2188. 6,
  2189. 9,
  2190. 12,
  2191. 9,
  2192. 12,
  2193. 5,
  2194. 15,
  2195. 8,
  2196. 8,
  2197. 5,
  2198. 12,
  2199. 9,
  2200. 12,
  2201. 5,
  2202. 14,
  2203. 6,
  2204. 8,
  2205. 13,
  2206. 6,
  2207. 5,
  2208. 15,
  2209. 13,
  2210. 11,
  2211. 11
  2212. ]), f = x.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), v = x.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), c = Y.RIPEMD160 = P.extend({
  2213. _doReset: function() {
  2214. this._hash = x.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
  2215. },
  2216. _doProcessBlock: function(L, Z) {
  2217. for (var l = 0; l < 16; l++) {
  2218. var j = Z + l, W = L[j];
  2219. L[j] = (W << 8 | W >>> 24) & 16711935 | (W << 24 | W >>> 8) & 4278255360;
  2220. }
  2221. var b = this._hash.words, d = f.words, a = v.words, V = D.words, o = C.words, J = Q.words, q = t.words, p, U, T, G, y, X, u, h, i, gA;
  2222. X = p = b[0], u = U = b[1], h = T = b[2], i = G = b[3], gA = y = b[4];
  2223. for (var K, l = 0; l < 80; l += 1)
  2224. K = p + L[Z + V[l]] | 0, l < 16 ? K += n(U, T, G) + d[0] : l < 32 ? K += H(U, T, G) + d[1] : l < 48 ? K += s(U, T, G) + d[2] : l < 64 ? K += M(U, T, G) + d[3] : K += z(U, T, G) + d[4], K = K | 0, K = O(K, J[l]), K = K + y | 0, p = y, y = G, G = O(T, 10), T = U, U = K, K = X + L[Z + o[l]] | 0, l < 16 ? K += z(u, h, i) + a[0] : l < 32 ? K += M(u, h, i) + a[1] : l < 48 ? K += s(u, h, i) + a[2] : l < 64 ? K += H(u, h, i) + a[3] : K += n(u, h, i) + a[4], K = K | 0, K = O(K, q[l]), K = K + gA | 0, X = gA, gA = i, i = O(h, 10), h = u, u = K;
  2225. K = b[1] + T + i | 0, b[1] = b[2] + G + gA | 0, b[2] = b[3] + y + X | 0, b[3] = b[4] + p + u | 0, b[4] = b[0] + U + h | 0, b[0] = K;
  2226. },
  2227. _doFinalize: function() {
  2228. var L = this._data, Z = L.words, l = this._nDataBytes * 8, j = L.sigBytes * 8;
  2229. Z[j >>> 5] |= 128 << 24 - j % 32, Z[(j + 64 >>> 9 << 4) + 14] = (l << 8 | l >>> 24) & 16711935 | (l << 24 | l >>> 8) & 4278255360, L.sigBytes = (Z.length + 1) * 4, this._process();
  2230. for (var W = this._hash, b = W.words, d = 0; d < 5; d++) {
  2231. var a = b[d];
  2232. b[d] = (a << 8 | a >>> 24) & 16711935 | (a << 24 | a >>> 8) & 4278255360;
  2233. }
  2234. return W;
  2235. },
  2236. clone: function() {
  2237. var L = P.clone.call(this);
  2238. return L._hash = this._hash.clone(), L;
  2239. }
  2240. });
  2241. function n(L, Z, l) {
  2242. return L ^ Z ^ l;
  2243. }
  2244. function H(L, Z, l) {
  2245. return L & Z | ~L & l;
  2246. }
  2247. function s(L, Z, l) {
  2248. return (L | ~Z) ^ l;
  2249. }
  2250. function M(L, Z, l) {
  2251. return L & l | Z & ~l;
  2252. }
  2253. function z(L, Z, l) {
  2254. return L ^ (Z | ~l);
  2255. }
  2256. function O(L, Z) {
  2257. return L << Z | L >>> 32 - Z;
  2258. }
  2259. g.RIPEMD160 = P._createHelper(c), g.HmacRIPEMD160 = P._createHmacHelper(c);
  2260. }(), w.RIPEMD160;
  2261. });
  2262. }(sg)), sg.exports;
  2263. }
  2264. var eg = { exports: {} }, nB;
  2265. function Fg() {
  2266. return nB || (nB = 1, function(A, e) {
  2267. (function(w, B) {
  2268. A.exports = B(E());
  2269. })(k, function(w) {
  2270. (function() {
  2271. var B = w, g = B.lib, r = g.Base, x = B.enc, P = x.Utf8, Y = B.algo;
  2272. Y.HMAC = r.extend({
  2273. /**
  2274. * Initializes a newly created HMAC.
  2275. *
  2276. * @param {Hasher} hasher The hash algorithm to use.
  2277. * @param {WordArray|string} key The secret key.
  2278. *
  2279. * @example
  2280. *
  2281. * var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);
  2282. */
  2283. init: function(D, C) {
  2284. D = this._hasher = new D.init(), typeof C == "string" && (C = P.parse(C));
  2285. var Q = D.blockSize, t = Q * 4;
  2286. C.sigBytes > t && (C = D.finalize(C)), C.clamp();
  2287. for (var f = this._oKey = C.clone(), v = this._iKey = C.clone(), c = f.words, n = v.words, H = 0; H < Q; H++)
  2288. c[H] ^= 1549556828, n[H] ^= 909522486;
  2289. f.sigBytes = v.sigBytes = t, this.reset();
  2290. },
  2291. /**
  2292. * Resets this HMAC to its initial state.
  2293. *
  2294. * @example
  2295. *
  2296. * hmacHasher.reset();
  2297. */
  2298. reset: function() {
  2299. var D = this._hasher;
  2300. D.reset(), D.update(this._iKey);
  2301. },
  2302. /**
  2303. * Updates this HMAC with a message.
  2304. *
  2305. * @param {WordArray|string} messageUpdate The message to append.
  2306. *
  2307. * @return {HMAC} This HMAC instance.
  2308. *
  2309. * @example
  2310. *
  2311. * hmacHasher.update('message');
  2312. * hmacHasher.update(wordArray);
  2313. */
  2314. update: function(D) {
  2315. return this._hasher.update(D), this;
  2316. },
  2317. /**
  2318. * Finalizes the HMAC computation.
  2319. * Note that the finalize operation is effectively a destructive, read-once operation.
  2320. *
  2321. * @param {WordArray|string} messageUpdate (Optional) A final message update.
  2322. *
  2323. * @return {WordArray} The HMAC.
  2324. *
  2325. * @example
  2326. *
  2327. * var hmac = hmacHasher.finalize();
  2328. * var hmac = hmacHasher.finalize('message');
  2329. * var hmac = hmacHasher.finalize(wordArray);
  2330. */
  2331. finalize: function(D) {
  2332. var C = this._hasher, Q = C.finalize(D);
  2333. C.reset();
  2334. var t = C.finalize(this._oKey.clone().concat(Q));
  2335. return t;
  2336. }
  2337. });
  2338. })();
  2339. });
  2340. }(eg)), eg.exports;
  2341. }
  2342. var tg = { exports: {} }, zB;
  2343. function uD() {
  2344. return zB || (zB = 1, function(A, e) {
  2345. (function(w, B, g) {
  2346. A.exports = B(E(), Vg(), Fg());
  2347. })(k, function(w) {
  2348. return function() {
  2349. var B = w, g = B.lib, r = g.Base, x = g.WordArray, P = B.algo, Y = P.SHA256, D = P.HMAC, C = P.PBKDF2 = r.extend({
  2350. /**
  2351. * Configuration options.
  2352. *
  2353. * @property {number} keySize The key size in words to generate. Default: 4 (128 bits)
  2354. * @property {Hasher} hasher The hasher to use. Default: SHA256
  2355. * @property {number} iterations The number of iterations to perform. Default: 250000
  2356. */
  2357. cfg: r.extend({
  2358. keySize: 128 / 32,
  2359. hasher: Y,
  2360. iterations: 25e4
  2361. }),
  2362. /**
  2363. * Initializes a newly created key derivation function.
  2364. *
  2365. * @param {Object} cfg (Optional) The configuration options to use for the derivation.
  2366. *
  2367. * @example
  2368. *
  2369. * var kdf = CryptoJS.algo.PBKDF2.create();
  2370. * var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8 });
  2371. * var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8, iterations: 1000 });
  2372. */
  2373. init: function(Q) {
  2374. this.cfg = this.cfg.extend(Q);
  2375. },
  2376. /**
  2377. * Computes the Password-Based Key Derivation Function 2.
  2378. *
  2379. * @param {WordArray|string} password The password.
  2380. * @param {WordArray|string} salt A salt.
  2381. *
  2382. * @return {WordArray} The derived key.
  2383. *
  2384. * @example
  2385. *
  2386. * var key = kdf.compute(password, salt);
  2387. */
  2388. compute: function(Q, t) {
  2389. for (var f = this.cfg, v = D.create(f.hasher, Q), c = x.create(), n = x.create([1]), H = c.words, s = n.words, M = f.keySize, z = f.iterations; H.length < M; ) {
  2390. var O = v.update(t).finalize(n);
  2391. v.reset();
  2392. for (var L = O.words, Z = L.length, l = O, j = 1; j < z; j++) {
  2393. l = v.finalize(l), v.reset();
  2394. for (var W = l.words, b = 0; b < Z; b++)
  2395. L[b] ^= W[b];
  2396. }
  2397. c.concat(O), s[0]++;
  2398. }
  2399. return c.sigBytes = M * 4, c;
  2400. }
  2401. });
  2402. B.PBKDF2 = function(Q, t, f) {
  2403. return C.create(f).compute(Q, t);
  2404. };
  2405. }(), w.PBKDF2;
  2406. });
  2407. }(tg)), tg.exports;
  2408. }
  2409. var Cg = { exports: {} }, PB;
  2410. function nA() {
  2411. return PB || (PB = 1, function(A, e) {
  2412. (function(w, B, g) {
  2413. A.exports = B(E(), Dw(), Fg());
  2414. })(k, function(w) {
  2415. return function() {
  2416. var B = w, g = B.lib, r = g.Base, x = g.WordArray, P = B.algo, Y = P.MD5, D = P.EvpKDF = r.extend({
  2417. /**
  2418. * Configuration options.
  2419. *
  2420. * @property {number} keySize The key size in words to generate. Default: 4 (128 bits)
  2421. * @property {Hasher} hasher The hash algorithm to use. Default: MD5
  2422. * @property {number} iterations The number of iterations to perform. Default: 1
  2423. */
  2424. cfg: r.extend({
  2425. keySize: 128 / 32,
  2426. hasher: Y,
  2427. iterations: 1
  2428. }),
  2429. /**
  2430. * Initializes a newly created key derivation function.
  2431. *
  2432. * @param {Object} cfg (Optional) The configuration options to use for the derivation.
  2433. *
  2434. * @example
  2435. *
  2436. * var kdf = CryptoJS.algo.EvpKDF.create();
  2437. * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8 });
  2438. * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8, iterations: 1000 });
  2439. */
  2440. init: function(C) {
  2441. this.cfg = this.cfg.extend(C);
  2442. },
  2443. /**
  2444. * Derives a key from a password.
  2445. *
  2446. * @param {WordArray|string} password The password.
  2447. * @param {WordArray|string} salt A salt.
  2448. *
  2449. * @return {WordArray} The derived key.
  2450. *
  2451. * @example
  2452. *
  2453. * var key = kdf.compute(password, salt);
  2454. */
  2455. compute: function(C, Q) {
  2456. for (var t, f = this.cfg, v = f.hasher.create(), c = x.create(), n = c.words, H = f.keySize, s = f.iterations; n.length < H; ) {
  2457. t && v.update(t), t = v.update(C).finalize(Q), v.reset();
  2458. for (var M = 1; M < s; M++)
  2459. t = v.finalize(t), v.reset();
  2460. c.concat(t);
  2461. }
  2462. return c.sigBytes = H * 4, c;
  2463. }
  2464. });
  2465. B.EvpKDF = function(C, Q, t) {
  2466. return D.create(t).compute(C, Q);
  2467. };
  2468. }(), w.EvpKDF;
  2469. });
  2470. }(Cg)), Cg.exports;
  2471. }
  2472. var Mg = { exports: {} }, cB;
  2473. function $() {
  2474. return cB || (cB = 1, function(A, e) {
  2475. (function(w, B, g) {
  2476. A.exports = B(E(), nA());
  2477. })(k, function(w) {
  2478. w.lib.Cipher || function(B) {
  2479. var g = w, r = g.lib, x = r.Base, P = r.WordArray, Y = r.BufferedBlockAlgorithm, D = g.enc;
  2480. D.Utf8;
  2481. var C = D.Base64, Q = g.algo, t = Q.EvpKDF, f = r.Cipher = Y.extend({
  2482. /**
  2483. * Configuration options.
  2484. *
  2485. * @property {WordArray} iv The IV to use for this operation.
  2486. */
  2487. cfg: x.extend(),
  2488. /**
  2489. * Creates this cipher in encryption mode.
  2490. *
  2491. * @param {WordArray} key The key.
  2492. * @param {Object} cfg (Optional) The configuration options to use for this operation.
  2493. *
  2494. * @return {Cipher} A cipher instance.
  2495. *
  2496. * @static
  2497. *
  2498. * @example
  2499. *
  2500. * var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });
  2501. */
  2502. createEncryptor: function(W, b) {
  2503. return this.create(this._ENC_XFORM_MODE, W, b);
  2504. },
  2505. /**
  2506. * Creates this cipher in decryption mode.
  2507. *
  2508. * @param {WordArray} key The key.
  2509. * @param {Object} cfg (Optional) The configuration options to use for this operation.
  2510. *
  2511. * @return {Cipher} A cipher instance.
  2512. *
  2513. * @static
  2514. *
  2515. * @example
  2516. *
  2517. * var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });
  2518. */
  2519. createDecryptor: function(W, b) {
  2520. return this.create(this._DEC_XFORM_MODE, W, b);
  2521. },
  2522. /**
  2523. * Initializes a newly created cipher.
  2524. *
  2525. * @param {number} xformMode Either the encryption or decryption transormation mode constant.
  2526. * @param {WordArray} key The key.
  2527. * @param {Object} cfg (Optional) The configuration options to use for this operation.
  2528. *
  2529. * @example
  2530. *
  2531. * var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
  2532. */
  2533. init: function(W, b, d) {
  2534. this.cfg = this.cfg.extend(d), this._xformMode = W, this._key = b, this.reset();
  2535. },
  2536. /**
  2537. * Resets this cipher to its initial state.
  2538. *
  2539. * @example
  2540. *
  2541. * cipher.reset();
  2542. */
  2543. reset: function() {
  2544. Y.reset.call(this), this._doReset();
  2545. },
  2546. /**
  2547. * Adds data to be encrypted or decrypted.
  2548. *
  2549. * @param {WordArray|string} dataUpdate The data to encrypt or decrypt.
  2550. *
  2551. * @return {WordArray} The data after processing.
  2552. *
  2553. * @example
  2554. *
  2555. * var encrypted = cipher.process('data');
  2556. * var encrypted = cipher.process(wordArray);
  2557. */
  2558. process: function(W) {
  2559. return this._append(W), this._process();
  2560. },
  2561. /**
  2562. * Finalizes the encryption or decryption process.
  2563. * Note that the finalize operation is effectively a destructive, read-once operation.
  2564. *
  2565. * @param {WordArray|string} dataUpdate The final data to encrypt or decrypt.
  2566. *
  2567. * @return {WordArray} The data after final processing.
  2568. *
  2569. * @example
  2570. *
  2571. * var encrypted = cipher.finalize();
  2572. * var encrypted = cipher.finalize('data');
  2573. * var encrypted = cipher.finalize(wordArray);
  2574. */
  2575. finalize: function(W) {
  2576. W && this._append(W);
  2577. var b = this._doFinalize();
  2578. return b;
  2579. },
  2580. keySize: 128 / 32,
  2581. ivSize: 128 / 32,
  2582. _ENC_XFORM_MODE: 1,
  2583. _DEC_XFORM_MODE: 2,
  2584. /**
  2585. * Creates shortcut functions to a cipher's object interface.
  2586. *
  2587. * @param {Cipher} cipher The cipher to create a helper for.
  2588. *
  2589. * @return {Object} An object with encrypt and decrypt shortcut functions.
  2590. *
  2591. * @static
  2592. *
  2593. * @example
  2594. *
  2595. * var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);
  2596. */
  2597. _createHelper: /* @__PURE__ */ function() {
  2598. function W(b) {
  2599. return typeof b == "string" ? j : L;
  2600. }
  2601. return function(b) {
  2602. return {
  2603. encrypt: function(d, a, V) {
  2604. return W(a).encrypt(b, d, a, V);
  2605. },
  2606. decrypt: function(d, a, V) {
  2607. return W(a).decrypt(b, d, a, V);
  2608. }
  2609. };
  2610. };
  2611. }()
  2612. });
  2613. r.StreamCipher = f.extend({
  2614. _doFinalize: function() {
  2615. var W = this._process(!0);
  2616. return W;
  2617. },
  2618. blockSize: 1
  2619. });
  2620. var v = g.mode = {}, c = r.BlockCipherMode = x.extend({
  2621. /**
  2622. * Creates this mode for encryption.
  2623. *
  2624. * @param {Cipher} cipher A block cipher instance.
  2625. * @param {Array} iv The IV words.
  2626. *
  2627. * @static
  2628. *
  2629. * @example
  2630. *
  2631. * var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);
  2632. */
  2633. createEncryptor: function(W, b) {
  2634. return this.Encryptor.create(W, b);
  2635. },
  2636. /**
  2637. * Creates this mode for decryption.
  2638. *
  2639. * @param {Cipher} cipher A block cipher instance.
  2640. * @param {Array} iv The IV words.
  2641. *
  2642. * @static
  2643. *
  2644. * @example
  2645. *
  2646. * var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);
  2647. */
  2648. createDecryptor: function(W, b) {
  2649. return this.Decryptor.create(W, b);
  2650. },
  2651. /**
  2652. * Initializes a newly created mode.
  2653. *
  2654. * @param {Cipher} cipher A block cipher instance.
  2655. * @param {Array} iv The IV words.
  2656. *
  2657. * @example
  2658. *
  2659. * var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);
  2660. */
  2661. init: function(W, b) {
  2662. this._cipher = W, this._iv = b;
  2663. }
  2664. }), n = v.CBC = function() {
  2665. var W = c.extend();
  2666. W.Encryptor = W.extend({
  2667. /**
  2668. * Processes the data block at offset.
  2669. *
  2670. * @param {Array} words The data words to operate on.
  2671. * @param {number} offset The offset where the block starts.
  2672. *
  2673. * @example
  2674. *
  2675. * mode.processBlock(data.words, offset);
  2676. */
  2677. processBlock: function(d, a) {
  2678. var V = this._cipher, o = V.blockSize;
  2679. b.call(this, d, a, o), V.encryptBlock(d, a), this._prevBlock = d.slice(a, a + o);
  2680. }
  2681. }), W.Decryptor = W.extend({
  2682. /**
  2683. * Processes the data block at offset.
  2684. *
  2685. * @param {Array} words The data words to operate on.
  2686. * @param {number} offset The offset where the block starts.
  2687. *
  2688. * @example
  2689. *
  2690. * mode.processBlock(data.words, offset);
  2691. */
  2692. processBlock: function(d, a) {
  2693. var V = this._cipher, o = V.blockSize, J = d.slice(a, a + o);
  2694. V.decryptBlock(d, a), b.call(this, d, a, o), this._prevBlock = J;
  2695. }
  2696. });
  2697. function b(d, a, V) {
  2698. var o, J = this._iv;
  2699. J ? (o = J, this._iv = B) : o = this._prevBlock;
  2700. for (var q = 0; q < V; q++)
  2701. d[a + q] ^= o[q];
  2702. }
  2703. return W;
  2704. }(), H = g.pad = {}, s = H.Pkcs7 = {
  2705. /**
  2706. * Pads data using the algorithm defined in PKCS #5/7.
  2707. *
  2708. * @param {WordArray} data The data to pad.
  2709. * @param {number} blockSize The multiple that the data should be padded to.
  2710. *
  2711. * @static
  2712. *
  2713. * @example
  2714. *
  2715. * CryptoJS.pad.Pkcs7.pad(wordArray, 4);
  2716. */
  2717. pad: function(W, b) {
  2718. for (var d = b * 4, a = d - W.sigBytes % d, V = a << 24 | a << 16 | a << 8 | a, o = [], J = 0; J < a; J += 4)
  2719. o.push(V);
  2720. var q = P.create(o, a);
  2721. W.concat(q);
  2722. },
  2723. /**
  2724. * Unpads data that had been padded using the algorithm defined in PKCS #5/7.
  2725. *
  2726. * @param {WordArray} data The data to unpad.
  2727. *
  2728. * @static
  2729. *
  2730. * @example
  2731. *
  2732. * CryptoJS.pad.Pkcs7.unpad(wordArray);
  2733. */
  2734. unpad: function(W) {
  2735. var b = W.words[W.sigBytes - 1 >>> 2] & 255;
  2736. W.sigBytes -= b;
  2737. }
  2738. };
  2739. r.BlockCipher = f.extend({
  2740. /**
  2741. * Configuration options.
  2742. *
  2743. * @property {Mode} mode The block mode to use. Default: CBC
  2744. * @property {Padding} padding The padding strategy to use. Default: Pkcs7
  2745. */
  2746. cfg: f.cfg.extend({
  2747. mode: n,
  2748. padding: s
  2749. }),
  2750. reset: function() {
  2751. var W;
  2752. f.reset.call(this);
  2753. var b = this.cfg, d = b.iv, a = b.mode;
  2754. this._xformMode == this._ENC_XFORM_MODE ? W = a.createEncryptor : (W = a.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == W ? this._mode.init(this, d && d.words) : (this._mode = W.call(a, this, d && d.words), this._mode.__creator = W);
  2755. },
  2756. _doProcessBlock: function(W, b) {
  2757. this._mode.processBlock(W, b);
  2758. },
  2759. _doFinalize: function() {
  2760. var W, b = this.cfg.padding;
  2761. return this._xformMode == this._ENC_XFORM_MODE ? (b.pad(this._data, this.blockSize), W = this._process(!0)) : (W = this._process(!0), b.unpad(W)), W;
  2762. },
  2763. blockSize: 128 / 32
  2764. });
  2765. var M = r.CipherParams = x.extend({
  2766. /**
  2767. * Initializes a newly created cipher params object.
  2768. *
  2769. * @param {Object} cipherParams An object with any of the possible cipher parameters.
  2770. *
  2771. * @example
  2772. *
  2773. * var cipherParams = CryptoJS.lib.CipherParams.create({
  2774. * ciphertext: ciphertextWordArray,
  2775. * key: keyWordArray,
  2776. * iv: ivWordArray,
  2777. * salt: saltWordArray,
  2778. * algorithm: CryptoJS.algo.AES,
  2779. * mode: CryptoJS.mode.CBC,
  2780. * padding: CryptoJS.pad.PKCS7,
  2781. * blockSize: 4,
  2782. * formatter: CryptoJS.format.OpenSSL
  2783. * });
  2784. */
  2785. init: function(W) {
  2786. this.mixIn(W);
  2787. },
  2788. /**
  2789. * Converts this cipher params object to a string.
  2790. *
  2791. * @param {Format} formatter (Optional) The formatting strategy to use.
  2792. *
  2793. * @return {string} The stringified cipher params.
  2794. *
  2795. * @throws Error If neither the formatter nor the default formatter is set.
  2796. *
  2797. * @example
  2798. *
  2799. * var string = cipherParams + '';
  2800. * var string = cipherParams.toString();
  2801. * var string = cipherParams.toString(CryptoJS.format.OpenSSL);
  2802. */
  2803. toString: function(W) {
  2804. return (W || this.formatter).stringify(this);
  2805. }
  2806. }), z = g.format = {}, O = z.OpenSSL = {
  2807. /**
  2808. * Converts a cipher params object to an OpenSSL-compatible string.
  2809. *
  2810. * @param {CipherParams} cipherParams The cipher params object.
  2811. *
  2812. * @return {string} The OpenSSL-compatible string.
  2813. *
  2814. * @static
  2815. *
  2816. * @example
  2817. *
  2818. * var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
  2819. */
  2820. stringify: function(W) {
  2821. var b, d = W.ciphertext, a = W.salt;
  2822. return a ? b = P.create([1398893684, 1701076831]).concat(a).concat(d) : b = d, b.toString(C);
  2823. },
  2824. /**
  2825. * Converts an OpenSSL-compatible string to a cipher params object.
  2826. *
  2827. * @param {string} openSSLStr The OpenSSL-compatible string.
  2828. *
  2829. * @return {CipherParams} The cipher params object.
  2830. *
  2831. * @static
  2832. *
  2833. * @example
  2834. *
  2835. * var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
  2836. */
  2837. parse: function(W) {
  2838. var b, d = C.parse(W), a = d.words;
  2839. return a[0] == 1398893684 && a[1] == 1701076831 && (b = P.create(a.slice(2, 4)), a.splice(0, 4), d.sigBytes -= 16), M.create({ ciphertext: d, salt: b });
  2840. }
  2841. }, L = r.SerializableCipher = x.extend({
  2842. /**
  2843. * Configuration options.
  2844. *
  2845. * @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL
  2846. */
  2847. cfg: x.extend({
  2848. format: O
  2849. }),
  2850. /**
  2851. * Encrypts a message.
  2852. *
  2853. * @param {Cipher} cipher The cipher algorithm to use.
  2854. * @param {WordArray|string} message The message to encrypt.
  2855. * @param {WordArray} key The key.
  2856. * @param {Object} cfg (Optional) The configuration options to use for this operation.
  2857. *
  2858. * @return {CipherParams} A cipher params object.
  2859. *
  2860. * @static
  2861. *
  2862. * @example
  2863. *
  2864. * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key);
  2865. * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
  2866. * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
  2867. */
  2868. encrypt: function(W, b, d, a) {
  2869. a = this.cfg.extend(a);
  2870. var V = W.createEncryptor(d, a), o = V.finalize(b), J = V.cfg;
  2871. return M.create({
  2872. ciphertext: o,
  2873. key: d,
  2874. iv: J.iv,
  2875. algorithm: W,
  2876. mode: J.mode,
  2877. padding: J.padding,
  2878. blockSize: W.blockSize,
  2879. formatter: a.format
  2880. });
  2881. },
  2882. /**
  2883. * Decrypts serialized ciphertext.
  2884. *
  2885. * @param {Cipher} cipher The cipher algorithm to use.
  2886. * @param {CipherParams|string} ciphertext The ciphertext to decrypt.
  2887. * @param {WordArray} key The key.
  2888. * @param {Object} cfg (Optional) The configuration options to use for this operation.
  2889. *
  2890. * @return {WordArray} The plaintext.
  2891. *
  2892. * @static
  2893. *
  2894. * @example
  2895. *
  2896. * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
  2897. * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
  2898. */
  2899. decrypt: function(W, b, d, a) {
  2900. a = this.cfg.extend(a), b = this._parse(b, a.format);
  2901. var V = W.createDecryptor(d, a).finalize(b.ciphertext);
  2902. return V;
  2903. },
  2904. /**
  2905. * Converts serialized ciphertext to CipherParams,
  2906. * else assumed CipherParams already and returns ciphertext unchanged.
  2907. *
  2908. * @param {CipherParams|string} ciphertext The ciphertext.
  2909. * @param {Formatter} format The formatting strategy to use to parse serialized ciphertext.
  2910. *
  2911. * @return {CipherParams} The unserialized ciphertext.
  2912. *
  2913. * @static
  2914. *
  2915. * @example
  2916. *
  2917. * var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);
  2918. */
  2919. _parse: function(W, b) {
  2920. return typeof W == "string" ? b.parse(W, this) : W;
  2921. }
  2922. }), Z = g.kdf = {}, l = Z.OpenSSL = {
  2923. /**
  2924. * Derives a key and IV from a password.
  2925. *
  2926. * @param {string} password The password to derive from.
  2927. * @param {number} keySize The size in words of the key to generate.
  2928. * @param {number} ivSize The size in words of the IV to generate.
  2929. * @param {WordArray|string} salt (Optional) A 64-bit salt to use. If omitted, a salt will be generated randomly.
  2930. *
  2931. * @return {CipherParams} A cipher params object with the key, IV, and salt.
  2932. *
  2933. * @static
  2934. *
  2935. * @example
  2936. *
  2937. * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
  2938. * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
  2939. */
  2940. execute: function(W, b, d, a, V) {
  2941. if (a || (a = P.random(64 / 8)), V)
  2942. var o = t.create({ keySize: b + d, hasher: V }).compute(W, a);
  2943. else
  2944. var o = t.create({ keySize: b + d }).compute(W, a);
  2945. var J = P.create(o.words.slice(b), d * 4);
  2946. return o.sigBytes = b * 4, M.create({ key: o, iv: J, salt: a });
  2947. }
  2948. }, j = r.PasswordBasedCipher = L.extend({
  2949. /**
  2950. * Configuration options.
  2951. *
  2952. * @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL
  2953. */
  2954. cfg: L.cfg.extend({
  2955. kdf: l
  2956. }),
  2957. /**
  2958. * Encrypts a message using a password.
  2959. *
  2960. * @param {Cipher} cipher The cipher algorithm to use.
  2961. * @param {WordArray|string} message The message to encrypt.
  2962. * @param {string} password The password.
  2963. * @param {Object} cfg (Optional) The configuration options to use for this operation.
  2964. *
  2965. * @return {CipherParams} A cipher params object.
  2966. *
  2967. * @static
  2968. *
  2969. * @example
  2970. *
  2971. * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
  2972. * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
  2973. */
  2974. encrypt: function(W, b, d, a) {
  2975. a = this.cfg.extend(a);
  2976. var V = a.kdf.execute(d, W.keySize, W.ivSize, a.salt, a.hasher);
  2977. a.iv = V.iv;
  2978. var o = L.encrypt.call(this, W, b, V.key, a);
  2979. return o.mixIn(V), o;
  2980. },
  2981. /**
  2982. * Decrypts serialized ciphertext using a password.
  2983. *
  2984. * @param {Cipher} cipher The cipher algorithm to use.
  2985. * @param {CipherParams|string} ciphertext The ciphertext to decrypt.
  2986. * @param {string} password The password.
  2987. * @param {Object} cfg (Optional) The configuration options to use for this operation.
  2988. *
  2989. * @return {WordArray} The plaintext.
  2990. *
  2991. * @static
  2992. *
  2993. * @example
  2994. *
  2995. * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
  2996. * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
  2997. */
  2998. decrypt: function(W, b, d, a) {
  2999. a = this.cfg.extend(a), b = this._parse(b, a.format);
  3000. var V = a.kdf.execute(d, W.keySize, W.ivSize, b.salt, a.hasher);
  3001. a.iv = V.iv;
  3002. var o = L.decrypt.call(this, W, b, V.key, a);
  3003. return o;
  3004. }
  3005. });
  3006. }();
  3007. });
  3008. }(Mg)), Mg.exports;
  3009. }
  3010. var vg = { exports: {} }, YB;
  3011. function yD() {
  3012. return YB || (YB = 1, function(A, e) {
  3013. (function(w, B, g) {
  3014. A.exports = B(E(), $());
  3015. })(k, function(w) {
  3016. return w.mode.CFB = function() {
  3017. var B = w.lib.BlockCipherMode.extend();
  3018. B.Encryptor = B.extend({
  3019. processBlock: function(r, x) {
  3020. var P = this._cipher, Y = P.blockSize;
  3021. g.call(this, r, x, Y, P), this._prevBlock = r.slice(x, x + Y);
  3022. }
  3023. }), B.Decryptor = B.extend({
  3024. processBlock: function(r, x) {
  3025. var P = this._cipher, Y = P.blockSize, D = r.slice(x, x + Y);
  3026. g.call(this, r, x, Y, P), this._prevBlock = D;
  3027. }
  3028. });
  3029. function g(r, x, P, Y) {
  3030. var D, C = this._iv;
  3031. C ? (D = C.slice(0), this._iv = void 0) : D = this._prevBlock, Y.encryptBlock(D, 0);
  3032. for (var Q = 0; Q < P; Q++)
  3033. r[x + Q] ^= D[Q];
  3034. }
  3035. return B;
  3036. }(), w.mode.CFB;
  3037. });
  3038. }(vg)), vg.exports;
  3039. }
  3040. var rg = { exports: {} }, QB;
  3041. function XD() {
  3042. return QB || (QB = 1, function(A, e) {
  3043. (function(w, B, g) {
  3044. A.exports = B(E(), $());
  3045. })(k, function(w) {
  3046. return w.mode.CTR = function() {
  3047. var B = w.lib.BlockCipherMode.extend(), g = B.Encryptor = B.extend({
  3048. processBlock: function(r, x) {
  3049. var P = this._cipher, Y = P.blockSize, D = this._iv, C = this._counter;
  3050. D && (C = this._counter = D.slice(0), this._iv = void 0);
  3051. var Q = C.slice(0);
  3052. P.encryptBlock(Q, 0), C[Y - 1] = C[Y - 1] + 1 | 0;
  3053. for (var t = 0; t < Y; t++)
  3054. r[x + t] ^= Q[t];
  3055. }
  3056. });
  3057. return B.Decryptor = g, B;
  3058. }(), w.mode.CTR;
  3059. });
  3060. }(rg)), rg.exports;
  3061. }
  3062. var fg = { exports: {} }, WB;
  3063. function jD() {
  3064. return WB || (WB = 1, function(A, e) {
  3065. (function(w, B, g) {
  3066. A.exports = B(E(), $());
  3067. })(k, function(w) {
  3068. /** @preserve
  3069. * Counter block mode compatible with Dr Brian Gladman fileenc.c
  3070. * derived from CryptoJS.mode.CTR
  3071. * Jan Hruby jhruby.web@gmail.com
  3072. */
  3073. return w.mode.CTRGladman = function() {
  3074. var B = w.lib.BlockCipherMode.extend();
  3075. function g(P) {
  3076. if ((P >> 24 & 255) === 255) {
  3077. var Y = P >> 16 & 255, D = P >> 8 & 255, C = P & 255;
  3078. Y === 255 ? (Y = 0, D === 255 ? (D = 0, C === 255 ? C = 0 : ++C) : ++D) : ++Y, P = 0, P += Y << 16, P += D << 8, P += C;
  3079. } else
  3080. P += 1 << 24;
  3081. return P;
  3082. }
  3083. function r(P) {
  3084. return (P[0] = g(P[0])) === 0 && (P[1] = g(P[1])), P;
  3085. }
  3086. var x = B.Encryptor = B.extend({
  3087. processBlock: function(P, Y) {
  3088. var D = this._cipher, C = D.blockSize, Q = this._iv, t = this._counter;
  3089. Q && (t = this._counter = Q.slice(0), this._iv = void 0), r(t);
  3090. var f = t.slice(0);
  3091. D.encryptBlock(f, 0);
  3092. for (var v = 0; v < C; v++)
  3093. P[Y + v] ^= f[v];
  3094. }
  3095. });
  3096. return B.Decryptor = x, B;
  3097. }(), w.mode.CTRGladman;
  3098. });
  3099. }(fg)), fg.exports;
  3100. }
  3101. var ng = { exports: {} }, HB;
  3102. function VD() {
  3103. return HB || (HB = 1, function(A, e) {
  3104. (function(w, B, g) {
  3105. A.exports = B(E(), $());
  3106. })(k, function(w) {
  3107. return w.mode.OFB = function() {
  3108. var B = w.lib.BlockCipherMode.extend(), g = B.Encryptor = B.extend({
  3109. processBlock: function(r, x) {
  3110. var P = this._cipher, Y = P.blockSize, D = this._iv, C = this._keystream;
  3111. D && (C = this._keystream = D.slice(0), this._iv = void 0), P.encryptBlock(C, 0);
  3112. for (var Q = 0; Q < Y; Q++)
  3113. r[x + Q] ^= C[Q];
  3114. }
  3115. });
  3116. return B.Decryptor = g, B;
  3117. }(), w.mode.OFB;
  3118. });
  3119. }(ng)), ng.exports;
  3120. }
  3121. var zg = { exports: {} }, LB;
  3122. function FD() {
  3123. return LB || (LB = 1, function(A, e) {
  3124. (function(w, B, g) {
  3125. A.exports = B(E(), $());
  3126. })(k, function(w) {
  3127. return w.mode.ECB = function() {
  3128. var B = w.lib.BlockCipherMode.extend();
  3129. return B.Encryptor = B.extend({
  3130. processBlock: function(g, r) {
  3131. this._cipher.encryptBlock(g, r);
  3132. }
  3133. }), B.Decryptor = B.extend({
  3134. processBlock: function(g, r) {
  3135. this._cipher.decryptBlock(g, r);
  3136. }
  3137. }), B;
  3138. }(), w.mode.ECB;
  3139. });
  3140. }(zg)), zg.exports;
  3141. }
  3142. var Pg = { exports: {} }, OB;
  3143. function oD() {
  3144. return OB || (OB = 1, function(A, e) {
  3145. (function(w, B, g) {
  3146. A.exports = B(E(), $());
  3147. })(k, function(w) {
  3148. return w.pad.AnsiX923 = {
  3149. pad: function(B, g) {
  3150. var r = B.sigBytes, x = g * 4, P = x - r % x, Y = r + P - 1;
  3151. B.clamp(), B.words[Y >>> 2] |= P << 24 - Y % 4 * 8, B.sigBytes += P;
  3152. },
  3153. unpad: function(B) {
  3154. var g = B.words[B.sigBytes - 1 >>> 2] & 255;
  3155. B.sigBytes -= g;
  3156. }
  3157. }, w.pad.Ansix923;
  3158. });
  3159. }(Pg)), Pg.exports;
  3160. }
  3161. var cg = { exports: {} }, xB;
  3162. function ND() {
  3163. return xB || (xB = 1, function(A, e) {
  3164. (function(w, B, g) {
  3165. A.exports = B(E(), $());
  3166. })(k, function(w) {
  3167. return w.pad.Iso10126 = {
  3168. pad: function(B, g) {
  3169. var r = g * 4, x = r - B.sigBytes % r;
  3170. B.concat(w.lib.WordArray.random(x - 1)).concat(w.lib.WordArray.create([x << 24], 1));
  3171. },
  3172. unpad: function(B) {
  3173. var g = B.words[B.sigBytes - 1 >>> 2] & 255;
  3174. B.sigBytes -= g;
  3175. }
  3176. }, w.pad.Iso10126;
  3177. });
  3178. }(cg)), cg.exports;
  3179. }
  3180. var Yg = { exports: {} }, ZB;
  3181. function mD() {
  3182. return ZB || (ZB = 1, function(A, e) {
  3183. (function(w, B, g) {
  3184. A.exports = B(E(), $());
  3185. })(k, function(w) {
  3186. return w.pad.Iso97971 = {
  3187. pad: function(B, g) {
  3188. B.concat(w.lib.WordArray.create([2147483648], 1)), w.pad.ZeroPadding.pad(B, g);
  3189. },
  3190. unpad: function(B) {
  3191. w.pad.ZeroPadding.unpad(B), B.sigBytes--;
  3192. }
  3193. }, w.pad.Iso97971;
  3194. });
  3195. }(Yg)), Yg.exports;
  3196. }
  3197. var Qg = { exports: {} }, bB;
  3198. function JD() {
  3199. return bB || (bB = 1, function(A, e) {
  3200. (function(w, B, g) {
  3201. A.exports = B(E(), $());
  3202. })(k, function(w) {
  3203. return w.pad.ZeroPadding = {
  3204. pad: function(B, g) {
  3205. var r = g * 4;
  3206. B.clamp(), B.sigBytes += r - (B.sigBytes % r || r);
  3207. },
  3208. unpad: function(B) {
  3209. for (var g = B.words, r = B.sigBytes - 1, r = B.sigBytes - 1; r >= 0; r--)
  3210. if (g[r >>> 2] >>> 24 - r % 4 * 8 & 255) {
  3211. B.sigBytes = r + 1;
  3212. break;
  3213. }
  3214. }
  3215. }, w.pad.ZeroPadding;
  3216. });
  3217. }(Qg)), Qg.exports;
  3218. }
  3219. var Wg = { exports: {} }, lB;
  3220. function kD() {
  3221. return lB || (lB = 1, function(A, e) {
  3222. (function(w, B, g) {
  3223. A.exports = B(E(), $());
  3224. })(k, function(w) {
  3225. return w.pad.NoPadding = {
  3226. pad: function() {
  3227. },
  3228. unpad: function() {
  3229. }
  3230. }, w.pad.NoPadding;
  3231. });
  3232. }(Wg)), Wg.exports;
  3233. }
  3234. var Hg = { exports: {} }, GB;
  3235. function KD() {
  3236. return GB || (GB = 1, function(A, e) {
  3237. (function(w, B, g) {
  3238. A.exports = B(E(), $());
  3239. })(k, function(w) {
  3240. return function(B) {
  3241. var g = w, r = g.lib, x = r.CipherParams, P = g.enc, Y = P.Hex, D = g.format;
  3242. D.Hex = {
  3243. /**
  3244. * Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
  3245. *
  3246. * @param {CipherParams} cipherParams The cipher params object.
  3247. *
  3248. * @return {string} The hexadecimally encoded string.
  3249. *
  3250. * @static
  3251. *
  3252. * @example
  3253. *
  3254. * var hexString = CryptoJS.format.Hex.stringify(cipherParams);
  3255. */
  3256. stringify: function(C) {
  3257. return C.ciphertext.toString(Y);
  3258. },
  3259. /**
  3260. * Converts a hexadecimally encoded ciphertext string to a cipher params object.
  3261. *
  3262. * @param {string} input The hexadecimally encoded string.
  3263. *
  3264. * @return {CipherParams} The cipher params object.
  3265. *
  3266. * @static
  3267. *
  3268. * @example
  3269. *
  3270. * var cipherParams = CryptoJS.format.Hex.parse(hexString);
  3271. */
  3272. parse: function(C) {
  3273. var Q = Y.parse(C);
  3274. return x.create({ ciphertext: Q });
  3275. }
  3276. };
  3277. }(), w.format.Hex;
  3278. });
  3279. }(Hg)), Hg.exports;
  3280. }
  3281. var Lg = { exports: {} }, dB;
  3282. function ED() {
  3283. return dB || (dB = 1, function(A, e) {
  3284. (function(w, B, g) {
  3285. A.exports = B(E(), zA(), PA(), nA(), $());
  3286. })(k, function(w) {
  3287. return function() {
  3288. var B = w, g = B.lib, r = g.BlockCipher, x = B.algo, P = [], Y = [], D = [], C = [], Q = [], t = [], f = [], v = [], c = [], n = [];
  3289. (function() {
  3290. for (var M = [], z = 0; z < 256; z++)
  3291. z < 128 ? M[z] = z << 1 : M[z] = z << 1 ^ 283;
  3292. for (var O = 0, L = 0, z = 0; z < 256; z++) {
  3293. var Z = L ^ L << 1 ^ L << 2 ^ L << 3 ^ L << 4;
  3294. Z = Z >>> 8 ^ Z & 255 ^ 99, P[O] = Z, Y[Z] = O;
  3295. var l = M[O], j = M[l], W = M[j], b = M[Z] * 257 ^ Z * 16843008;
  3296. D[O] = b << 24 | b >>> 8, C[O] = b << 16 | b >>> 16, Q[O] = b << 8 | b >>> 24, t[O] = b;
  3297. var b = W * 16843009 ^ j * 65537 ^ l * 257 ^ O * 16843008;
  3298. f[Z] = b << 24 | b >>> 8, v[Z] = b << 16 | b >>> 16, c[Z] = b << 8 | b >>> 24, n[Z] = b, O ? (O = l ^ M[M[M[W ^ l]]], L ^= M[M[L]]) : O = L = 1;
  3299. }
  3300. })();
  3301. var H = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], s = x.AES = r.extend({
  3302. _doReset: function() {
  3303. var M;
  3304. if (!(this._nRounds && this._keyPriorReset === this._key)) {
  3305. for (var z = this._keyPriorReset = this._key, O = z.words, L = z.sigBytes / 4, Z = this._nRounds = L + 6, l = (Z + 1) * 4, j = this._keySchedule = [], W = 0; W < l; W++)
  3306. W < L ? j[W] = O[W] : (M = j[W - 1], W % L ? L > 6 && W % L == 4 && (M = P[M >>> 24] << 24 | P[M >>> 16 & 255] << 16 | P[M >>> 8 & 255] << 8 | P[M & 255]) : (M = M << 8 | M >>> 24, M = P[M >>> 24] << 24 | P[M >>> 16 & 255] << 16 | P[M >>> 8 & 255] << 8 | P[M & 255], M ^= H[W / L | 0] << 24), j[W] = j[W - L] ^ M);
  3307. for (var b = this._invKeySchedule = [], d = 0; d < l; d++) {
  3308. var W = l - d;
  3309. if (d % 4)
  3310. var M = j[W];
  3311. else
  3312. var M = j[W - 4];
  3313. d < 4 || W <= 4 ? b[d] = M : b[d] = f[P[M >>> 24]] ^ v[P[M >>> 16 & 255]] ^ c[P[M >>> 8 & 255]] ^ n[P[M & 255]];
  3314. }
  3315. }
  3316. },
  3317. encryptBlock: function(M, z) {
  3318. this._doCryptBlock(M, z, this._keySchedule, D, C, Q, t, P);
  3319. },
  3320. decryptBlock: function(M, z) {
  3321. var O = M[z + 1];
  3322. M[z + 1] = M[z + 3], M[z + 3] = O, this._doCryptBlock(M, z, this._invKeySchedule, f, v, c, n, Y);
  3323. var O = M[z + 1];
  3324. M[z + 1] = M[z + 3], M[z + 3] = O;
  3325. },
  3326. _doCryptBlock: function(M, z, O, L, Z, l, j, W) {
  3327. for (var b = this._nRounds, d = M[z] ^ O[0], a = M[z + 1] ^ O[1], V = M[z + 2] ^ O[2], o = M[z + 3] ^ O[3], J = 4, q = 1; q < b; q++) {
  3328. var p = L[d >>> 24] ^ Z[a >>> 16 & 255] ^ l[V >>> 8 & 255] ^ j[o & 255] ^ O[J++], U = L[a >>> 24] ^ Z[V >>> 16 & 255] ^ l[o >>> 8 & 255] ^ j[d & 255] ^ O[J++], T = L[V >>> 24] ^ Z[o >>> 16 & 255] ^ l[d >>> 8 & 255] ^ j[a & 255] ^ O[J++], G = L[o >>> 24] ^ Z[d >>> 16 & 255] ^ l[a >>> 8 & 255] ^ j[V & 255] ^ O[J++];
  3329. d = p, a = U, V = T, o = G;
  3330. }
  3331. var p = (W[d >>> 24] << 24 | W[a >>> 16 & 255] << 16 | W[V >>> 8 & 255] << 8 | W[o & 255]) ^ O[J++], U = (W[a >>> 24] << 24 | W[V >>> 16 & 255] << 16 | W[o >>> 8 & 255] << 8 | W[d & 255]) ^ O[J++], T = (W[V >>> 24] << 24 | W[o >>> 16 & 255] << 16 | W[d >>> 8 & 255] << 8 | W[a & 255]) ^ O[J++], G = (W[o >>> 24] << 24 | W[d >>> 16 & 255] << 16 | W[a >>> 8 & 255] << 8 | W[V & 255]) ^ O[J++];
  3332. M[z] = p, M[z + 1] = U, M[z + 2] = T, M[z + 3] = G;
  3333. },
  3334. keySize: 256 / 32
  3335. });
  3336. B.AES = r._createHelper(s);
  3337. }(), w.AES;
  3338. });
  3339. }(Lg)), Lg.exports;
  3340. }
  3341. var Og = { exports: {} }, aB;
  3342. function ID() {
  3343. return aB || (aB = 1, function(A, e) {
  3344. (function(w, B, g) {
  3345. A.exports = B(E(), zA(), PA(), nA(), $());
  3346. })(k, function(w) {
  3347. return function() {
  3348. var B = w, g = B.lib, r = g.WordArray, x = g.BlockCipher, P = B.algo, Y = [
  3349. 57,
  3350. 49,
  3351. 41,
  3352. 33,
  3353. 25,
  3354. 17,
  3355. 9,
  3356. 1,
  3357. 58,
  3358. 50,
  3359. 42,
  3360. 34,
  3361. 26,
  3362. 18,
  3363. 10,
  3364. 2,
  3365. 59,
  3366. 51,
  3367. 43,
  3368. 35,
  3369. 27,
  3370. 19,
  3371. 11,
  3372. 3,
  3373. 60,
  3374. 52,
  3375. 44,
  3376. 36,
  3377. 63,
  3378. 55,
  3379. 47,
  3380. 39,
  3381. 31,
  3382. 23,
  3383. 15,
  3384. 7,
  3385. 62,
  3386. 54,
  3387. 46,
  3388. 38,
  3389. 30,
  3390. 22,
  3391. 14,
  3392. 6,
  3393. 61,
  3394. 53,
  3395. 45,
  3396. 37,
  3397. 29,
  3398. 21,
  3399. 13,
  3400. 5,
  3401. 28,
  3402. 20,
  3403. 12,
  3404. 4
  3405. ], D = [
  3406. 14,
  3407. 17,
  3408. 11,
  3409. 24,
  3410. 1,
  3411. 5,
  3412. 3,
  3413. 28,
  3414. 15,
  3415. 6,
  3416. 21,
  3417. 10,
  3418. 23,
  3419. 19,
  3420. 12,
  3421. 4,
  3422. 26,
  3423. 8,
  3424. 16,
  3425. 7,
  3426. 27,
  3427. 20,
  3428. 13,
  3429. 2,
  3430. 41,
  3431. 52,
  3432. 31,
  3433. 37,
  3434. 47,
  3435. 55,
  3436. 30,
  3437. 40,
  3438. 51,
  3439. 45,
  3440. 33,
  3441. 48,
  3442. 44,
  3443. 49,
  3444. 39,
  3445. 56,
  3446. 34,
  3447. 53,
  3448. 46,
  3449. 42,
  3450. 50,
  3451. 36,
  3452. 29,
  3453. 32
  3454. ], C = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28], Q = [
  3455. {
  3456. 0: 8421888,
  3457. 268435456: 32768,
  3458. 536870912: 8421378,
  3459. 805306368: 2,
  3460. 1073741824: 512,
  3461. 1342177280: 8421890,
  3462. 1610612736: 8389122,
  3463. 1879048192: 8388608,
  3464. 2147483648: 514,
  3465. 2415919104: 8389120,
  3466. 2684354560: 33280,
  3467. 2952790016: 8421376,
  3468. 3221225472: 32770,
  3469. 3489660928: 8388610,
  3470. 3758096384: 0,
  3471. 4026531840: 33282,
  3472. 134217728: 0,
  3473. 402653184: 8421890,
  3474. 671088640: 33282,
  3475. 939524096: 32768,
  3476. 1207959552: 8421888,
  3477. 1476395008: 512,
  3478. 1744830464: 8421378,
  3479. 2013265920: 2,
  3480. 2281701376: 8389120,
  3481. 2550136832: 33280,
  3482. 2818572288: 8421376,
  3483. 3087007744: 8389122,
  3484. 3355443200: 8388610,
  3485. 3623878656: 32770,
  3486. 3892314112: 514,
  3487. 4160749568: 8388608,
  3488. 1: 32768,
  3489. 268435457: 2,
  3490. 536870913: 8421888,
  3491. 805306369: 8388608,
  3492. 1073741825: 8421378,
  3493. 1342177281: 33280,
  3494. 1610612737: 512,
  3495. 1879048193: 8389122,
  3496. 2147483649: 8421890,
  3497. 2415919105: 8421376,
  3498. 2684354561: 8388610,
  3499. 2952790017: 33282,
  3500. 3221225473: 514,
  3501. 3489660929: 8389120,
  3502. 3758096385: 32770,
  3503. 4026531841: 0,
  3504. 134217729: 8421890,
  3505. 402653185: 8421376,
  3506. 671088641: 8388608,
  3507. 939524097: 512,
  3508. 1207959553: 32768,
  3509. 1476395009: 8388610,
  3510. 1744830465: 2,
  3511. 2013265921: 33282,
  3512. 2281701377: 32770,
  3513. 2550136833: 8389122,
  3514. 2818572289: 514,
  3515. 3087007745: 8421888,
  3516. 3355443201: 8389120,
  3517. 3623878657: 0,
  3518. 3892314113: 33280,
  3519. 4160749569: 8421378
  3520. },
  3521. {
  3522. 0: 1074282512,
  3523. 16777216: 16384,
  3524. 33554432: 524288,
  3525. 50331648: 1074266128,
  3526. 67108864: 1073741840,
  3527. 83886080: 1074282496,
  3528. 100663296: 1073758208,
  3529. 117440512: 16,
  3530. 134217728: 540672,
  3531. 150994944: 1073758224,
  3532. 167772160: 1073741824,
  3533. 184549376: 540688,
  3534. 201326592: 524304,
  3535. 218103808: 0,
  3536. 234881024: 16400,
  3537. 251658240: 1074266112,
  3538. 8388608: 1073758208,
  3539. 25165824: 540688,
  3540. 41943040: 16,
  3541. 58720256: 1073758224,
  3542. 75497472: 1074282512,
  3543. 92274688: 1073741824,
  3544. 109051904: 524288,
  3545. 125829120: 1074266128,
  3546. 142606336: 524304,
  3547. 159383552: 0,
  3548. 176160768: 16384,
  3549. 192937984: 1074266112,
  3550. 209715200: 1073741840,
  3551. 226492416: 540672,
  3552. 243269632: 1074282496,
  3553. 260046848: 16400,
  3554. 268435456: 0,
  3555. 285212672: 1074266128,
  3556. 301989888: 1073758224,
  3557. 318767104: 1074282496,
  3558. 335544320: 1074266112,
  3559. 352321536: 16,
  3560. 369098752: 540688,
  3561. 385875968: 16384,
  3562. 402653184: 16400,
  3563. 419430400: 524288,
  3564. 436207616: 524304,
  3565. 452984832: 1073741840,
  3566. 469762048: 540672,
  3567. 486539264: 1073758208,
  3568. 503316480: 1073741824,
  3569. 520093696: 1074282512,
  3570. 276824064: 540688,
  3571. 293601280: 524288,
  3572. 310378496: 1074266112,
  3573. 327155712: 16384,
  3574. 343932928: 1073758208,
  3575. 360710144: 1074282512,
  3576. 377487360: 16,
  3577. 394264576: 1073741824,
  3578. 411041792: 1074282496,
  3579. 427819008: 1073741840,
  3580. 444596224: 1073758224,
  3581. 461373440: 524304,
  3582. 478150656: 0,
  3583. 494927872: 16400,
  3584. 511705088: 1074266128,
  3585. 528482304: 540672
  3586. },
  3587. {
  3588. 0: 260,
  3589. 1048576: 0,
  3590. 2097152: 67109120,
  3591. 3145728: 65796,
  3592. 4194304: 65540,
  3593. 5242880: 67108868,
  3594. 6291456: 67174660,
  3595. 7340032: 67174400,
  3596. 8388608: 67108864,
  3597. 9437184: 67174656,
  3598. 10485760: 65792,
  3599. 11534336: 67174404,
  3600. 12582912: 67109124,
  3601. 13631488: 65536,
  3602. 14680064: 4,
  3603. 15728640: 256,
  3604. 524288: 67174656,
  3605. 1572864: 67174404,
  3606. 2621440: 0,
  3607. 3670016: 67109120,
  3608. 4718592: 67108868,
  3609. 5767168: 65536,
  3610. 6815744: 65540,
  3611. 7864320: 260,
  3612. 8912896: 4,
  3613. 9961472: 256,
  3614. 11010048: 67174400,
  3615. 12058624: 65796,
  3616. 13107200: 65792,
  3617. 14155776: 67109124,
  3618. 15204352: 67174660,
  3619. 16252928: 67108864,
  3620. 16777216: 67174656,
  3621. 17825792: 65540,
  3622. 18874368: 65536,
  3623. 19922944: 67109120,
  3624. 20971520: 256,
  3625. 22020096: 67174660,
  3626. 23068672: 67108868,
  3627. 24117248: 0,
  3628. 25165824: 67109124,
  3629. 26214400: 67108864,
  3630. 27262976: 4,
  3631. 28311552: 65792,
  3632. 29360128: 67174400,
  3633. 30408704: 260,
  3634. 31457280: 65796,
  3635. 32505856: 67174404,
  3636. 17301504: 67108864,
  3637. 18350080: 260,
  3638. 19398656: 67174656,
  3639. 20447232: 0,
  3640. 21495808: 65540,
  3641. 22544384: 67109120,
  3642. 23592960: 256,
  3643. 24641536: 67174404,
  3644. 25690112: 65536,
  3645. 26738688: 67174660,
  3646. 27787264: 65796,
  3647. 28835840: 67108868,
  3648. 29884416: 67109124,
  3649. 30932992: 67174400,
  3650. 31981568: 4,
  3651. 33030144: 65792
  3652. },
  3653. {
  3654. 0: 2151682048,
  3655. 65536: 2147487808,
  3656. 131072: 4198464,
  3657. 196608: 2151677952,
  3658. 262144: 0,
  3659. 327680: 4198400,
  3660. 393216: 2147483712,
  3661. 458752: 4194368,
  3662. 524288: 2147483648,
  3663. 589824: 4194304,
  3664. 655360: 64,
  3665. 720896: 2147487744,
  3666. 786432: 2151678016,
  3667. 851968: 4160,
  3668. 917504: 4096,
  3669. 983040: 2151682112,
  3670. 32768: 2147487808,
  3671. 98304: 64,
  3672. 163840: 2151678016,
  3673. 229376: 2147487744,
  3674. 294912: 4198400,
  3675. 360448: 2151682112,
  3676. 425984: 0,
  3677. 491520: 2151677952,
  3678. 557056: 4096,
  3679. 622592: 2151682048,
  3680. 688128: 4194304,
  3681. 753664: 4160,
  3682. 819200: 2147483648,
  3683. 884736: 4194368,
  3684. 950272: 4198464,
  3685. 1015808: 2147483712,
  3686. 1048576: 4194368,
  3687. 1114112: 4198400,
  3688. 1179648: 2147483712,
  3689. 1245184: 0,
  3690. 1310720: 4160,
  3691. 1376256: 2151678016,
  3692. 1441792: 2151682048,
  3693. 1507328: 2147487808,
  3694. 1572864: 2151682112,
  3695. 1638400: 2147483648,
  3696. 1703936: 2151677952,
  3697. 1769472: 4198464,
  3698. 1835008: 2147487744,
  3699. 1900544: 4194304,
  3700. 1966080: 64,
  3701. 2031616: 4096,
  3702. 1081344: 2151677952,
  3703. 1146880: 2151682112,
  3704. 1212416: 0,
  3705. 1277952: 4198400,
  3706. 1343488: 4194368,
  3707. 1409024: 2147483648,
  3708. 1474560: 2147487808,
  3709. 1540096: 64,
  3710. 1605632: 2147483712,
  3711. 1671168: 4096,
  3712. 1736704: 2147487744,
  3713. 1802240: 2151678016,
  3714. 1867776: 4160,
  3715. 1933312: 2151682048,
  3716. 1998848: 4194304,
  3717. 2064384: 4198464
  3718. },
  3719. {
  3720. 0: 128,
  3721. 4096: 17039360,
  3722. 8192: 262144,
  3723. 12288: 536870912,
  3724. 16384: 537133184,
  3725. 20480: 16777344,
  3726. 24576: 553648256,
  3727. 28672: 262272,
  3728. 32768: 16777216,
  3729. 36864: 537133056,
  3730. 40960: 536871040,
  3731. 45056: 553910400,
  3732. 49152: 553910272,
  3733. 53248: 0,
  3734. 57344: 17039488,
  3735. 61440: 553648128,
  3736. 2048: 17039488,
  3737. 6144: 553648256,
  3738. 10240: 128,
  3739. 14336: 17039360,
  3740. 18432: 262144,
  3741. 22528: 537133184,
  3742. 26624: 553910272,
  3743. 30720: 536870912,
  3744. 34816: 537133056,
  3745. 38912: 0,
  3746. 43008: 553910400,
  3747. 47104: 16777344,
  3748. 51200: 536871040,
  3749. 55296: 553648128,
  3750. 59392: 16777216,
  3751. 63488: 262272,
  3752. 65536: 262144,
  3753. 69632: 128,
  3754. 73728: 536870912,
  3755. 77824: 553648256,
  3756. 81920: 16777344,
  3757. 86016: 553910272,
  3758. 90112: 537133184,
  3759. 94208: 16777216,
  3760. 98304: 553910400,
  3761. 102400: 553648128,
  3762. 106496: 17039360,
  3763. 110592: 537133056,
  3764. 114688: 262272,
  3765. 118784: 536871040,
  3766. 122880: 0,
  3767. 126976: 17039488,
  3768. 67584: 553648256,
  3769. 71680: 16777216,
  3770. 75776: 17039360,
  3771. 79872: 537133184,
  3772. 83968: 536870912,
  3773. 88064: 17039488,
  3774. 92160: 128,
  3775. 96256: 553910272,
  3776. 100352: 262272,
  3777. 104448: 553910400,
  3778. 108544: 0,
  3779. 112640: 553648128,
  3780. 116736: 16777344,
  3781. 120832: 262144,
  3782. 124928: 537133056,
  3783. 129024: 536871040
  3784. },
  3785. {
  3786. 0: 268435464,
  3787. 256: 8192,
  3788. 512: 270532608,
  3789. 768: 270540808,
  3790. 1024: 268443648,
  3791. 1280: 2097152,
  3792. 1536: 2097160,
  3793. 1792: 268435456,
  3794. 2048: 0,
  3795. 2304: 268443656,
  3796. 2560: 2105344,
  3797. 2816: 8,
  3798. 3072: 270532616,
  3799. 3328: 2105352,
  3800. 3584: 8200,
  3801. 3840: 270540800,
  3802. 128: 270532608,
  3803. 384: 270540808,
  3804. 640: 8,
  3805. 896: 2097152,
  3806. 1152: 2105352,
  3807. 1408: 268435464,
  3808. 1664: 268443648,
  3809. 1920: 8200,
  3810. 2176: 2097160,
  3811. 2432: 8192,
  3812. 2688: 268443656,
  3813. 2944: 270532616,
  3814. 3200: 0,
  3815. 3456: 270540800,
  3816. 3712: 2105344,
  3817. 3968: 268435456,
  3818. 4096: 268443648,
  3819. 4352: 270532616,
  3820. 4608: 270540808,
  3821. 4864: 8200,
  3822. 5120: 2097152,
  3823. 5376: 268435456,
  3824. 5632: 268435464,
  3825. 5888: 2105344,
  3826. 6144: 2105352,
  3827. 6400: 0,
  3828. 6656: 8,
  3829. 6912: 270532608,
  3830. 7168: 8192,
  3831. 7424: 268443656,
  3832. 7680: 270540800,
  3833. 7936: 2097160,
  3834. 4224: 8,
  3835. 4480: 2105344,
  3836. 4736: 2097152,
  3837. 4992: 268435464,
  3838. 5248: 268443648,
  3839. 5504: 8200,
  3840. 5760: 270540808,
  3841. 6016: 270532608,
  3842. 6272: 270540800,
  3843. 6528: 270532616,
  3844. 6784: 8192,
  3845. 7040: 2105352,
  3846. 7296: 2097160,
  3847. 7552: 0,
  3848. 7808: 268435456,
  3849. 8064: 268443656
  3850. },
  3851. {
  3852. 0: 1048576,
  3853. 16: 33555457,
  3854. 32: 1024,
  3855. 48: 1049601,
  3856. 64: 34604033,
  3857. 80: 0,
  3858. 96: 1,
  3859. 112: 34603009,
  3860. 128: 33555456,
  3861. 144: 1048577,
  3862. 160: 33554433,
  3863. 176: 34604032,
  3864. 192: 34603008,
  3865. 208: 1025,
  3866. 224: 1049600,
  3867. 240: 33554432,
  3868. 8: 34603009,
  3869. 24: 0,
  3870. 40: 33555457,
  3871. 56: 34604032,
  3872. 72: 1048576,
  3873. 88: 33554433,
  3874. 104: 33554432,
  3875. 120: 1025,
  3876. 136: 1049601,
  3877. 152: 33555456,
  3878. 168: 34603008,
  3879. 184: 1048577,
  3880. 200: 1024,
  3881. 216: 34604033,
  3882. 232: 1,
  3883. 248: 1049600,
  3884. 256: 33554432,
  3885. 272: 1048576,
  3886. 288: 33555457,
  3887. 304: 34603009,
  3888. 320: 1048577,
  3889. 336: 33555456,
  3890. 352: 34604032,
  3891. 368: 1049601,
  3892. 384: 1025,
  3893. 400: 34604033,
  3894. 416: 1049600,
  3895. 432: 1,
  3896. 448: 0,
  3897. 464: 34603008,
  3898. 480: 33554433,
  3899. 496: 1024,
  3900. 264: 1049600,
  3901. 280: 33555457,
  3902. 296: 34603009,
  3903. 312: 1,
  3904. 328: 33554432,
  3905. 344: 1048576,
  3906. 360: 1025,
  3907. 376: 34604032,
  3908. 392: 33554433,
  3909. 408: 34603008,
  3910. 424: 0,
  3911. 440: 34604033,
  3912. 456: 1049601,
  3913. 472: 1024,
  3914. 488: 33555456,
  3915. 504: 1048577
  3916. },
  3917. {
  3918. 0: 134219808,
  3919. 1: 131072,
  3920. 2: 134217728,
  3921. 3: 32,
  3922. 4: 131104,
  3923. 5: 134350880,
  3924. 6: 134350848,
  3925. 7: 2048,
  3926. 8: 134348800,
  3927. 9: 134219776,
  3928. 10: 133120,
  3929. 11: 134348832,
  3930. 12: 2080,
  3931. 13: 0,
  3932. 14: 134217760,
  3933. 15: 133152,
  3934. 2147483648: 2048,
  3935. 2147483649: 134350880,
  3936. 2147483650: 134219808,
  3937. 2147483651: 134217728,
  3938. 2147483652: 134348800,
  3939. 2147483653: 133120,
  3940. 2147483654: 133152,
  3941. 2147483655: 32,
  3942. 2147483656: 134217760,
  3943. 2147483657: 2080,
  3944. 2147483658: 131104,
  3945. 2147483659: 134350848,
  3946. 2147483660: 0,
  3947. 2147483661: 134348832,
  3948. 2147483662: 134219776,
  3949. 2147483663: 131072,
  3950. 16: 133152,
  3951. 17: 134350848,
  3952. 18: 32,
  3953. 19: 2048,
  3954. 20: 134219776,
  3955. 21: 134217760,
  3956. 22: 134348832,
  3957. 23: 131072,
  3958. 24: 0,
  3959. 25: 131104,
  3960. 26: 134348800,
  3961. 27: 134219808,
  3962. 28: 134350880,
  3963. 29: 133120,
  3964. 30: 2080,
  3965. 31: 134217728,
  3966. 2147483664: 131072,
  3967. 2147483665: 2048,
  3968. 2147483666: 134348832,
  3969. 2147483667: 133152,
  3970. 2147483668: 32,
  3971. 2147483669: 134348800,
  3972. 2147483670: 134217728,
  3973. 2147483671: 134219808,
  3974. 2147483672: 134350880,
  3975. 2147483673: 134217760,
  3976. 2147483674: 134219776,
  3977. 2147483675: 0,
  3978. 2147483676: 133120,
  3979. 2147483677: 2080,
  3980. 2147483678: 131104,
  3981. 2147483679: 134350848
  3982. }
  3983. ], t = [
  3984. 4160749569,
  3985. 528482304,
  3986. 33030144,
  3987. 2064384,
  3988. 129024,
  3989. 8064,
  3990. 504,
  3991. 2147483679
  3992. ], f = P.DES = x.extend({
  3993. _doReset: function() {
  3994. for (var H = this._key, s = H.words, M = [], z = 0; z < 56; z++) {
  3995. var O = Y[z] - 1;
  3996. M[z] = s[O >>> 5] >>> 31 - O % 32 & 1;
  3997. }
  3998. for (var L = this._subKeys = [], Z = 0; Z < 16; Z++) {
  3999. for (var l = L[Z] = [], j = C[Z], z = 0; z < 24; z++)
  4000. l[z / 6 | 0] |= M[(D[z] - 1 + j) % 28] << 31 - z % 6, l[4 + (z / 6 | 0)] |= M[28 + (D[z + 24] - 1 + j) % 28] << 31 - z % 6;
  4001. l[0] = l[0] << 1 | l[0] >>> 31;
  4002. for (var z = 1; z < 7; z++)
  4003. l[z] = l[z] >>> (z - 1) * 4 + 3;
  4004. l[7] = l[7] << 5 | l[7] >>> 27;
  4005. }
  4006. for (var W = this._invSubKeys = [], z = 0; z < 16; z++)
  4007. W[z] = L[15 - z];
  4008. },
  4009. encryptBlock: function(H, s) {
  4010. this._doCryptBlock(H, s, this._subKeys);
  4011. },
  4012. decryptBlock: function(H, s) {
  4013. this._doCryptBlock(H, s, this._invSubKeys);
  4014. },
  4015. _doCryptBlock: function(H, s, M) {
  4016. this._lBlock = H[s], this._rBlock = H[s + 1], v.call(this, 4, 252645135), v.call(this, 16, 65535), c.call(this, 2, 858993459), c.call(this, 8, 16711935), v.call(this, 1, 1431655765);
  4017. for (var z = 0; z < 16; z++) {
  4018. for (var O = M[z], L = this._lBlock, Z = this._rBlock, l = 0, j = 0; j < 8; j++)
  4019. l |= Q[j][((Z ^ O[j]) & t[j]) >>> 0];
  4020. this._lBlock = Z, this._rBlock = L ^ l;
  4021. }
  4022. var W = this._lBlock;
  4023. this._lBlock = this._rBlock, this._rBlock = W, v.call(this, 1, 1431655765), c.call(this, 8, 16711935), c.call(this, 2, 858993459), v.call(this, 16, 65535), v.call(this, 4, 252645135), H[s] = this._lBlock, H[s + 1] = this._rBlock;
  4024. },
  4025. keySize: 64 / 32,
  4026. ivSize: 64 / 32,
  4027. blockSize: 64 / 32
  4028. });
  4029. function v(H, s) {
  4030. var M = (this._lBlock >>> H ^ this._rBlock) & s;
  4031. this._rBlock ^= M, this._lBlock ^= M << H;
  4032. }
  4033. function c(H, s) {
  4034. var M = (this._rBlock >>> H ^ this._lBlock) & s;
  4035. this._lBlock ^= M, this._rBlock ^= M << H;
  4036. }
  4037. B.DES = x._createHelper(f);
  4038. var n = P.TripleDES = x.extend({
  4039. _doReset: function() {
  4040. var H = this._key, s = H.words;
  4041. if (s.length !== 2 && s.length !== 4 && s.length < 6)
  4042. throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
  4043. var M = s.slice(0, 2), z = s.length < 4 ? s.slice(0, 2) : s.slice(2, 4), O = s.length < 6 ? s.slice(0, 2) : s.slice(4, 6);
  4044. this._des1 = f.createEncryptor(r.create(M)), this._des2 = f.createEncryptor(r.create(z)), this._des3 = f.createEncryptor(r.create(O));
  4045. },
  4046. encryptBlock: function(H, s) {
  4047. this._des1.encryptBlock(H, s), this._des2.decryptBlock(H, s), this._des3.encryptBlock(H, s);
  4048. },
  4049. decryptBlock: function(H, s) {
  4050. this._des3.decryptBlock(H, s), this._des2.encryptBlock(H, s), this._des1.decryptBlock(H, s);
  4051. },
  4052. keySize: 192 / 32,
  4053. ivSize: 64 / 32,
  4054. blockSize: 64 / 32
  4055. });
  4056. B.TripleDES = x._createHelper(n);
  4057. }(), w.TripleDES;
  4058. });
  4059. }(Og)), Og.exports;
  4060. }
  4061. var xg = { exports: {} }, uB;
  4062. function pD() {
  4063. return uB || (uB = 1, function(A, e) {
  4064. (function(w, B, g) {
  4065. A.exports = B(E(), zA(), PA(), nA(), $());
  4066. })(k, function(w) {
  4067. return function() {
  4068. var B = w, g = B.lib, r = g.StreamCipher, x = B.algo, P = x.RC4 = r.extend({
  4069. _doReset: function() {
  4070. for (var C = this._key, Q = C.words, t = C.sigBytes, f = this._S = [], v = 0; v < 256; v++)
  4071. f[v] = v;
  4072. for (var v = 0, c = 0; v < 256; v++) {
  4073. var n = v % t, H = Q[n >>> 2] >>> 24 - n % 4 * 8 & 255;
  4074. c = (c + f[v] + H) % 256;
  4075. var s = f[v];
  4076. f[v] = f[c], f[c] = s;
  4077. }
  4078. this._i = this._j = 0;
  4079. },
  4080. _doProcessBlock: function(C, Q) {
  4081. C[Q] ^= Y.call(this);
  4082. },
  4083. keySize: 256 / 32,
  4084. ivSize: 0
  4085. });
  4086. function Y() {
  4087. for (var C = this._S, Q = this._i, t = this._j, f = 0, v = 0; v < 4; v++) {
  4088. Q = (Q + 1) % 256, t = (t + C[Q]) % 256;
  4089. var c = C[Q];
  4090. C[Q] = C[t], C[t] = c, f |= C[(C[Q] + C[t]) % 256] << 24 - v * 8;
  4091. }
  4092. return this._i = Q, this._j = t, f;
  4093. }
  4094. B.RC4 = r._createHelper(P);
  4095. var D = x.RC4Drop = P.extend({
  4096. /**
  4097. * Configuration options.
  4098. *
  4099. * @property {number} drop The number of keystream words to drop. Default 192
  4100. */
  4101. cfg: P.cfg.extend({
  4102. drop: 192
  4103. }),
  4104. _doReset: function() {
  4105. P._doReset.call(this);
  4106. for (var C = this.cfg.drop; C > 0; C--)
  4107. Y.call(this);
  4108. }
  4109. });
  4110. B.RC4Drop = r._createHelper(D);
  4111. }(), w.RC4;
  4112. });
  4113. }(xg)), xg.exports;
  4114. }
  4115. var Zg = { exports: {} }, yB;
  4116. function TD() {
  4117. return yB || (yB = 1, function(A, e) {
  4118. (function(w, B, g) {
  4119. A.exports = B(E(), zA(), PA(), nA(), $());
  4120. })(k, function(w) {
  4121. return function() {
  4122. var B = w, g = B.lib, r = g.StreamCipher, x = B.algo, P = [], Y = [], D = [], C = x.Rabbit = r.extend({
  4123. _doReset: function() {
  4124. for (var t = this._key.words, f = this.cfg.iv, v = 0; v < 4; v++)
  4125. t[v] = (t[v] << 8 | t[v] >>> 24) & 16711935 | (t[v] << 24 | t[v] >>> 8) & 4278255360;
  4126. var c = this._X = [
  4127. t[0],
  4128. t[3] << 16 | t[2] >>> 16,
  4129. t[1],
  4130. t[0] << 16 | t[3] >>> 16,
  4131. t[2],
  4132. t[1] << 16 | t[0] >>> 16,
  4133. t[3],
  4134. t[2] << 16 | t[1] >>> 16
  4135. ], n = this._C = [
  4136. t[2] << 16 | t[2] >>> 16,
  4137. t[0] & 4294901760 | t[1] & 65535,
  4138. t[3] << 16 | t[3] >>> 16,
  4139. t[1] & 4294901760 | t[2] & 65535,
  4140. t[0] << 16 | t[0] >>> 16,
  4141. t[2] & 4294901760 | t[3] & 65535,
  4142. t[1] << 16 | t[1] >>> 16,
  4143. t[3] & 4294901760 | t[0] & 65535
  4144. ];
  4145. this._b = 0;
  4146. for (var v = 0; v < 4; v++)
  4147. Q.call(this);
  4148. for (var v = 0; v < 8; v++)
  4149. n[v] ^= c[v + 4 & 7];
  4150. if (f) {
  4151. var H = f.words, s = H[0], M = H[1], z = (s << 8 | s >>> 24) & 16711935 | (s << 24 | s >>> 8) & 4278255360, O = (M << 8 | M >>> 24) & 16711935 | (M << 24 | M >>> 8) & 4278255360, L = z >>> 16 | O & 4294901760, Z = O << 16 | z & 65535;
  4152. n[0] ^= z, n[1] ^= L, n[2] ^= O, n[3] ^= Z, n[4] ^= z, n[5] ^= L, n[6] ^= O, n[7] ^= Z;
  4153. for (var v = 0; v < 4; v++)
  4154. Q.call(this);
  4155. }
  4156. },
  4157. _doProcessBlock: function(t, f) {
  4158. var v = this._X;
  4159. Q.call(this), P[0] = v[0] ^ v[5] >>> 16 ^ v[3] << 16, P[1] = v[2] ^ v[7] >>> 16 ^ v[5] << 16, P[2] = v[4] ^ v[1] >>> 16 ^ v[7] << 16, P[3] = v[6] ^ v[3] >>> 16 ^ v[1] << 16;
  4160. for (var c = 0; c < 4; c++)
  4161. P[c] = (P[c] << 8 | P[c] >>> 24) & 16711935 | (P[c] << 24 | P[c] >>> 8) & 4278255360, t[f + c] ^= P[c];
  4162. },
  4163. blockSize: 128 / 32,
  4164. ivSize: 64 / 32
  4165. });
  4166. function Q() {
  4167. for (var t = this._X, f = this._C, v = 0; v < 8; v++)
  4168. Y[v] = f[v];
  4169. f[0] = f[0] + 1295307597 + this._b | 0, f[1] = f[1] + 3545052371 + (f[0] >>> 0 < Y[0] >>> 0 ? 1 : 0) | 0, f[2] = f[2] + 886263092 + (f[1] >>> 0 < Y[1] >>> 0 ? 1 : 0) | 0, f[3] = f[3] + 1295307597 + (f[2] >>> 0 < Y[2] >>> 0 ? 1 : 0) | 0, f[4] = f[4] + 3545052371 + (f[3] >>> 0 < Y[3] >>> 0 ? 1 : 0) | 0, f[5] = f[5] + 886263092 + (f[4] >>> 0 < Y[4] >>> 0 ? 1 : 0) | 0, f[6] = f[6] + 1295307597 + (f[5] >>> 0 < Y[5] >>> 0 ? 1 : 0) | 0, f[7] = f[7] + 3545052371 + (f[6] >>> 0 < Y[6] >>> 0 ? 1 : 0) | 0, this._b = f[7] >>> 0 < Y[7] >>> 0 ? 1 : 0;
  4170. for (var v = 0; v < 8; v++) {
  4171. var c = t[v] + f[v], n = c & 65535, H = c >>> 16, s = ((n * n >>> 17) + n * H >>> 15) + H * H, M = ((c & 4294901760) * c | 0) + ((c & 65535) * c | 0);
  4172. D[v] = s ^ M;
  4173. }
  4174. t[0] = D[0] + (D[7] << 16 | D[7] >>> 16) + (D[6] << 16 | D[6] >>> 16) | 0, t[1] = D[1] + (D[0] << 8 | D[0] >>> 24) + D[7] | 0, t[2] = D[2] + (D[1] << 16 | D[1] >>> 16) + (D[0] << 16 | D[0] >>> 16) | 0, t[3] = D[3] + (D[2] << 8 | D[2] >>> 24) + D[1] | 0, t[4] = D[4] + (D[3] << 16 | D[3] >>> 16) + (D[2] << 16 | D[2] >>> 16) | 0, t[5] = D[5] + (D[4] << 8 | D[4] >>> 24) + D[3] | 0, t[6] = D[6] + (D[5] << 16 | D[5] >>> 16) + (D[4] << 16 | D[4] >>> 16) | 0, t[7] = D[7] + (D[6] << 8 | D[6] >>> 24) + D[5] | 0;
  4175. }
  4176. B.Rabbit = r._createHelper(C);
  4177. }(), w.Rabbit;
  4178. });
  4179. }(Zg)), Zg.exports;
  4180. }
  4181. var bg = { exports: {} }, XB;
  4182. function SD() {
  4183. return XB || (XB = 1, function(A, e) {
  4184. (function(w, B, g) {
  4185. A.exports = B(E(), zA(), PA(), nA(), $());
  4186. })(k, function(w) {
  4187. return function() {
  4188. var B = w, g = B.lib, r = g.StreamCipher, x = B.algo, P = [], Y = [], D = [], C = x.RabbitLegacy = r.extend({
  4189. _doReset: function() {
  4190. var t = this._key.words, f = this.cfg.iv, v = this._X = [
  4191. t[0],
  4192. t[3] << 16 | t[2] >>> 16,
  4193. t[1],
  4194. t[0] << 16 | t[3] >>> 16,
  4195. t[2],
  4196. t[1] << 16 | t[0] >>> 16,
  4197. t[3],
  4198. t[2] << 16 | t[1] >>> 16
  4199. ], c = this._C = [
  4200. t[2] << 16 | t[2] >>> 16,
  4201. t[0] & 4294901760 | t[1] & 65535,
  4202. t[3] << 16 | t[3] >>> 16,
  4203. t[1] & 4294901760 | t[2] & 65535,
  4204. t[0] << 16 | t[0] >>> 16,
  4205. t[2] & 4294901760 | t[3] & 65535,
  4206. t[1] << 16 | t[1] >>> 16,
  4207. t[3] & 4294901760 | t[0] & 65535
  4208. ];
  4209. this._b = 0;
  4210. for (var n = 0; n < 4; n++)
  4211. Q.call(this);
  4212. for (var n = 0; n < 8; n++)
  4213. c[n] ^= v[n + 4 & 7];
  4214. if (f) {
  4215. var H = f.words, s = H[0], M = H[1], z = (s << 8 | s >>> 24) & 16711935 | (s << 24 | s >>> 8) & 4278255360, O = (M << 8 | M >>> 24) & 16711935 | (M << 24 | M >>> 8) & 4278255360, L = z >>> 16 | O & 4294901760, Z = O << 16 | z & 65535;
  4216. c[0] ^= z, c[1] ^= L, c[2] ^= O, c[3] ^= Z, c[4] ^= z, c[5] ^= L, c[6] ^= O, c[7] ^= Z;
  4217. for (var n = 0; n < 4; n++)
  4218. Q.call(this);
  4219. }
  4220. },
  4221. _doProcessBlock: function(t, f) {
  4222. var v = this._X;
  4223. Q.call(this), P[0] = v[0] ^ v[5] >>> 16 ^ v[3] << 16, P[1] = v[2] ^ v[7] >>> 16 ^ v[5] << 16, P[2] = v[4] ^ v[1] >>> 16 ^ v[7] << 16, P[3] = v[6] ^ v[3] >>> 16 ^ v[1] << 16;
  4224. for (var c = 0; c < 4; c++)
  4225. P[c] = (P[c] << 8 | P[c] >>> 24) & 16711935 | (P[c] << 24 | P[c] >>> 8) & 4278255360, t[f + c] ^= P[c];
  4226. },
  4227. blockSize: 128 / 32,
  4228. ivSize: 64 / 32
  4229. });
  4230. function Q() {
  4231. for (var t = this._X, f = this._C, v = 0; v < 8; v++)
  4232. Y[v] = f[v];
  4233. f[0] = f[0] + 1295307597 + this._b | 0, f[1] = f[1] + 3545052371 + (f[0] >>> 0 < Y[0] >>> 0 ? 1 : 0) | 0, f[2] = f[2] + 886263092 + (f[1] >>> 0 < Y[1] >>> 0 ? 1 : 0) | 0, f[3] = f[3] + 1295307597 + (f[2] >>> 0 < Y[2] >>> 0 ? 1 : 0) | 0, f[4] = f[4] + 3545052371 + (f[3] >>> 0 < Y[3] >>> 0 ? 1 : 0) | 0, f[5] = f[5] + 886263092 + (f[4] >>> 0 < Y[4] >>> 0 ? 1 : 0) | 0, f[6] = f[6] + 1295307597 + (f[5] >>> 0 < Y[5] >>> 0 ? 1 : 0) | 0, f[7] = f[7] + 3545052371 + (f[6] >>> 0 < Y[6] >>> 0 ? 1 : 0) | 0, this._b = f[7] >>> 0 < Y[7] >>> 0 ? 1 : 0;
  4234. for (var v = 0; v < 8; v++) {
  4235. var c = t[v] + f[v], n = c & 65535, H = c >>> 16, s = ((n * n >>> 17) + n * H >>> 15) + H * H, M = ((c & 4294901760) * c | 0) + ((c & 65535) * c | 0);
  4236. D[v] = s ^ M;
  4237. }
  4238. t[0] = D[0] + (D[7] << 16 | D[7] >>> 16) + (D[6] << 16 | D[6] >>> 16) | 0, t[1] = D[1] + (D[0] << 8 | D[0] >>> 24) + D[7] | 0, t[2] = D[2] + (D[1] << 16 | D[1] >>> 16) + (D[0] << 16 | D[0] >>> 16) | 0, t[3] = D[3] + (D[2] << 8 | D[2] >>> 24) + D[1] | 0, t[4] = D[4] + (D[3] << 16 | D[3] >>> 16) + (D[2] << 16 | D[2] >>> 16) | 0, t[5] = D[5] + (D[4] << 8 | D[4] >>> 24) + D[3] | 0, t[6] = D[6] + (D[5] << 16 | D[5] >>> 16) + (D[4] << 16 | D[4] >>> 16) | 0, t[7] = D[7] + (D[6] << 8 | D[6] >>> 24) + D[5] | 0;
  4239. }
  4240. B.RabbitLegacy = r._createHelper(C);
  4241. }(), w.RabbitLegacy;
  4242. });
  4243. }(bg)), bg.exports;
  4244. }
  4245. var lg = { exports: {} }, jB;
  4246. function UD() {
  4247. return jB || (jB = 1, function(A, e) {
  4248. (function(w, B, g) {
  4249. A.exports = B(E(), zA(), PA(), nA(), $());
  4250. })(k, function(w) {
  4251. return function() {
  4252. var B = w, g = B.lib, r = g.BlockCipher, x = B.algo;
  4253. const P = 16, Y = [
  4254. 608135816,
  4255. 2242054355,
  4256. 320440878,
  4257. 57701188,
  4258. 2752067618,
  4259. 698298832,
  4260. 137296536,
  4261. 3964562569,
  4262. 1160258022,
  4263. 953160567,
  4264. 3193202383,
  4265. 887688300,
  4266. 3232508343,
  4267. 3380367581,
  4268. 1065670069,
  4269. 3041331479,
  4270. 2450970073,
  4271. 2306472731
  4272. ], D = [
  4273. [
  4274. 3509652390,
  4275. 2564797868,
  4276. 805139163,
  4277. 3491422135,
  4278. 3101798381,
  4279. 1780907670,
  4280. 3128725573,
  4281. 4046225305,
  4282. 614570311,
  4283. 3012652279,
  4284. 134345442,
  4285. 2240740374,
  4286. 1667834072,
  4287. 1901547113,
  4288. 2757295779,
  4289. 4103290238,
  4290. 227898511,
  4291. 1921955416,
  4292. 1904987480,
  4293. 2182433518,
  4294. 2069144605,
  4295. 3260701109,
  4296. 2620446009,
  4297. 720527379,
  4298. 3318853667,
  4299. 677414384,
  4300. 3393288472,
  4301. 3101374703,
  4302. 2390351024,
  4303. 1614419982,
  4304. 1822297739,
  4305. 2954791486,
  4306. 3608508353,
  4307. 3174124327,
  4308. 2024746970,
  4309. 1432378464,
  4310. 3864339955,
  4311. 2857741204,
  4312. 1464375394,
  4313. 1676153920,
  4314. 1439316330,
  4315. 715854006,
  4316. 3033291828,
  4317. 289532110,
  4318. 2706671279,
  4319. 2087905683,
  4320. 3018724369,
  4321. 1668267050,
  4322. 732546397,
  4323. 1947742710,
  4324. 3462151702,
  4325. 2609353502,
  4326. 2950085171,
  4327. 1814351708,
  4328. 2050118529,
  4329. 680887927,
  4330. 999245976,
  4331. 1800124847,
  4332. 3300911131,
  4333. 1713906067,
  4334. 1641548236,
  4335. 4213287313,
  4336. 1216130144,
  4337. 1575780402,
  4338. 4018429277,
  4339. 3917837745,
  4340. 3693486850,
  4341. 3949271944,
  4342. 596196993,
  4343. 3549867205,
  4344. 258830323,
  4345. 2213823033,
  4346. 772490370,
  4347. 2760122372,
  4348. 1774776394,
  4349. 2652871518,
  4350. 566650946,
  4351. 4142492826,
  4352. 1728879713,
  4353. 2882767088,
  4354. 1783734482,
  4355. 3629395816,
  4356. 2517608232,
  4357. 2874225571,
  4358. 1861159788,
  4359. 326777828,
  4360. 3124490320,
  4361. 2130389656,
  4362. 2716951837,
  4363. 967770486,
  4364. 1724537150,
  4365. 2185432712,
  4366. 2364442137,
  4367. 1164943284,
  4368. 2105845187,
  4369. 998989502,
  4370. 3765401048,
  4371. 2244026483,
  4372. 1075463327,
  4373. 1455516326,
  4374. 1322494562,
  4375. 910128902,
  4376. 469688178,
  4377. 1117454909,
  4378. 936433444,
  4379. 3490320968,
  4380. 3675253459,
  4381. 1240580251,
  4382. 122909385,
  4383. 2157517691,
  4384. 634681816,
  4385. 4142456567,
  4386. 3825094682,
  4387. 3061402683,
  4388. 2540495037,
  4389. 79693498,
  4390. 3249098678,
  4391. 1084186820,
  4392. 1583128258,
  4393. 426386531,
  4394. 1761308591,
  4395. 1047286709,
  4396. 322548459,
  4397. 995290223,
  4398. 1845252383,
  4399. 2603652396,
  4400. 3431023940,
  4401. 2942221577,
  4402. 3202600964,
  4403. 3727903485,
  4404. 1712269319,
  4405. 422464435,
  4406. 3234572375,
  4407. 1170764815,
  4408. 3523960633,
  4409. 3117677531,
  4410. 1434042557,
  4411. 442511882,
  4412. 3600875718,
  4413. 1076654713,
  4414. 1738483198,
  4415. 4213154764,
  4416. 2393238008,
  4417. 3677496056,
  4418. 1014306527,
  4419. 4251020053,
  4420. 793779912,
  4421. 2902807211,
  4422. 842905082,
  4423. 4246964064,
  4424. 1395751752,
  4425. 1040244610,
  4426. 2656851899,
  4427. 3396308128,
  4428. 445077038,
  4429. 3742853595,
  4430. 3577915638,
  4431. 679411651,
  4432. 2892444358,
  4433. 2354009459,
  4434. 1767581616,
  4435. 3150600392,
  4436. 3791627101,
  4437. 3102740896,
  4438. 284835224,
  4439. 4246832056,
  4440. 1258075500,
  4441. 768725851,
  4442. 2589189241,
  4443. 3069724005,
  4444. 3532540348,
  4445. 1274779536,
  4446. 3789419226,
  4447. 2764799539,
  4448. 1660621633,
  4449. 3471099624,
  4450. 4011903706,
  4451. 913787905,
  4452. 3497959166,
  4453. 737222580,
  4454. 2514213453,
  4455. 2928710040,
  4456. 3937242737,
  4457. 1804850592,
  4458. 3499020752,
  4459. 2949064160,
  4460. 2386320175,
  4461. 2390070455,
  4462. 2415321851,
  4463. 4061277028,
  4464. 2290661394,
  4465. 2416832540,
  4466. 1336762016,
  4467. 1754252060,
  4468. 3520065937,
  4469. 3014181293,
  4470. 791618072,
  4471. 3188594551,
  4472. 3933548030,
  4473. 2332172193,
  4474. 3852520463,
  4475. 3043980520,
  4476. 413987798,
  4477. 3465142937,
  4478. 3030929376,
  4479. 4245938359,
  4480. 2093235073,
  4481. 3534596313,
  4482. 375366246,
  4483. 2157278981,
  4484. 2479649556,
  4485. 555357303,
  4486. 3870105701,
  4487. 2008414854,
  4488. 3344188149,
  4489. 4221384143,
  4490. 3956125452,
  4491. 2067696032,
  4492. 3594591187,
  4493. 2921233993,
  4494. 2428461,
  4495. 544322398,
  4496. 577241275,
  4497. 1471733935,
  4498. 610547355,
  4499. 4027169054,
  4500. 1432588573,
  4501. 1507829418,
  4502. 2025931657,
  4503. 3646575487,
  4504. 545086370,
  4505. 48609733,
  4506. 2200306550,
  4507. 1653985193,
  4508. 298326376,
  4509. 1316178497,
  4510. 3007786442,
  4511. 2064951626,
  4512. 458293330,
  4513. 2589141269,
  4514. 3591329599,
  4515. 3164325604,
  4516. 727753846,
  4517. 2179363840,
  4518. 146436021,
  4519. 1461446943,
  4520. 4069977195,
  4521. 705550613,
  4522. 3059967265,
  4523. 3887724982,
  4524. 4281599278,
  4525. 3313849956,
  4526. 1404054877,
  4527. 2845806497,
  4528. 146425753,
  4529. 1854211946
  4530. ],
  4531. [
  4532. 1266315497,
  4533. 3048417604,
  4534. 3681880366,
  4535. 3289982499,
  4536. 290971e4,
  4537. 1235738493,
  4538. 2632868024,
  4539. 2414719590,
  4540. 3970600049,
  4541. 1771706367,
  4542. 1449415276,
  4543. 3266420449,
  4544. 422970021,
  4545. 1963543593,
  4546. 2690192192,
  4547. 3826793022,
  4548. 1062508698,
  4549. 1531092325,
  4550. 1804592342,
  4551. 2583117782,
  4552. 2714934279,
  4553. 4024971509,
  4554. 1294809318,
  4555. 4028980673,
  4556. 1289560198,
  4557. 2221992742,
  4558. 1669523910,
  4559. 35572830,
  4560. 157838143,
  4561. 1052438473,
  4562. 1016535060,
  4563. 1802137761,
  4564. 1753167236,
  4565. 1386275462,
  4566. 3080475397,
  4567. 2857371447,
  4568. 1040679964,
  4569. 2145300060,
  4570. 2390574316,
  4571. 1461121720,
  4572. 2956646967,
  4573. 4031777805,
  4574. 4028374788,
  4575. 33600511,
  4576. 2920084762,
  4577. 1018524850,
  4578. 629373528,
  4579. 3691585981,
  4580. 3515945977,
  4581. 2091462646,
  4582. 2486323059,
  4583. 586499841,
  4584. 988145025,
  4585. 935516892,
  4586. 3367335476,
  4587. 2599673255,
  4588. 2839830854,
  4589. 265290510,
  4590. 3972581182,
  4591. 2759138881,
  4592. 3795373465,
  4593. 1005194799,
  4594. 847297441,
  4595. 406762289,
  4596. 1314163512,
  4597. 1332590856,
  4598. 1866599683,
  4599. 4127851711,
  4600. 750260880,
  4601. 613907577,
  4602. 1450815602,
  4603. 3165620655,
  4604. 3734664991,
  4605. 3650291728,
  4606. 3012275730,
  4607. 3704569646,
  4608. 1427272223,
  4609. 778793252,
  4610. 1343938022,
  4611. 2676280711,
  4612. 2052605720,
  4613. 1946737175,
  4614. 3164576444,
  4615. 3914038668,
  4616. 3967478842,
  4617. 3682934266,
  4618. 1661551462,
  4619. 3294938066,
  4620. 4011595847,
  4621. 840292616,
  4622. 3712170807,
  4623. 616741398,
  4624. 312560963,
  4625. 711312465,
  4626. 1351876610,
  4627. 322626781,
  4628. 1910503582,
  4629. 271666773,
  4630. 2175563734,
  4631. 1594956187,
  4632. 70604529,
  4633. 3617834859,
  4634. 1007753275,
  4635. 1495573769,
  4636. 4069517037,
  4637. 2549218298,
  4638. 2663038764,
  4639. 504708206,
  4640. 2263041392,
  4641. 3941167025,
  4642. 2249088522,
  4643. 1514023603,
  4644. 1998579484,
  4645. 1312622330,
  4646. 694541497,
  4647. 2582060303,
  4648. 2151582166,
  4649. 1382467621,
  4650. 776784248,
  4651. 2618340202,
  4652. 3323268794,
  4653. 2497899128,
  4654. 2784771155,
  4655. 503983604,
  4656. 4076293799,
  4657. 907881277,
  4658. 423175695,
  4659. 432175456,
  4660. 1378068232,
  4661. 4145222326,
  4662. 3954048622,
  4663. 3938656102,
  4664. 3820766613,
  4665. 2793130115,
  4666. 2977904593,
  4667. 26017576,
  4668. 3274890735,
  4669. 3194772133,
  4670. 1700274565,
  4671. 1756076034,
  4672. 4006520079,
  4673. 3677328699,
  4674. 720338349,
  4675. 1533947780,
  4676. 354530856,
  4677. 688349552,
  4678. 3973924725,
  4679. 1637815568,
  4680. 332179504,
  4681. 3949051286,
  4682. 53804574,
  4683. 2852348879,
  4684. 3044236432,
  4685. 1282449977,
  4686. 3583942155,
  4687. 3416972820,
  4688. 4006381244,
  4689. 1617046695,
  4690. 2628476075,
  4691. 3002303598,
  4692. 1686838959,
  4693. 431878346,
  4694. 2686675385,
  4695. 1700445008,
  4696. 1080580658,
  4697. 1009431731,
  4698. 832498133,
  4699. 3223435511,
  4700. 2605976345,
  4701. 2271191193,
  4702. 2516031870,
  4703. 1648197032,
  4704. 4164389018,
  4705. 2548247927,
  4706. 300782431,
  4707. 375919233,
  4708. 238389289,
  4709. 3353747414,
  4710. 2531188641,
  4711. 2019080857,
  4712. 1475708069,
  4713. 455242339,
  4714. 2609103871,
  4715. 448939670,
  4716. 3451063019,
  4717. 1395535956,
  4718. 2413381860,
  4719. 1841049896,
  4720. 1491858159,
  4721. 885456874,
  4722. 4264095073,
  4723. 4001119347,
  4724. 1565136089,
  4725. 3898914787,
  4726. 1108368660,
  4727. 540939232,
  4728. 1173283510,
  4729. 2745871338,
  4730. 3681308437,
  4731. 4207628240,
  4732. 3343053890,
  4733. 4016749493,
  4734. 1699691293,
  4735. 1103962373,
  4736. 3625875870,
  4737. 2256883143,
  4738. 3830138730,
  4739. 1031889488,
  4740. 3479347698,
  4741. 1535977030,
  4742. 4236805024,
  4743. 3251091107,
  4744. 2132092099,
  4745. 1774941330,
  4746. 1199868427,
  4747. 1452454533,
  4748. 157007616,
  4749. 2904115357,
  4750. 342012276,
  4751. 595725824,
  4752. 1480756522,
  4753. 206960106,
  4754. 497939518,
  4755. 591360097,
  4756. 863170706,
  4757. 2375253569,
  4758. 3596610801,
  4759. 1814182875,
  4760. 2094937945,
  4761. 3421402208,
  4762. 1082520231,
  4763. 3463918190,
  4764. 2785509508,
  4765. 435703966,
  4766. 3908032597,
  4767. 1641649973,
  4768. 2842273706,
  4769. 3305899714,
  4770. 1510255612,
  4771. 2148256476,
  4772. 2655287854,
  4773. 3276092548,
  4774. 4258621189,
  4775. 236887753,
  4776. 3681803219,
  4777. 274041037,
  4778. 1734335097,
  4779. 3815195456,
  4780. 3317970021,
  4781. 1899903192,
  4782. 1026095262,
  4783. 4050517792,
  4784. 356393447,
  4785. 2410691914,
  4786. 3873677099,
  4787. 3682840055
  4788. ],
  4789. [
  4790. 3913112168,
  4791. 2491498743,
  4792. 4132185628,
  4793. 2489919796,
  4794. 1091903735,
  4795. 1979897079,
  4796. 3170134830,
  4797. 3567386728,
  4798. 3557303409,
  4799. 857797738,
  4800. 1136121015,
  4801. 1342202287,
  4802. 507115054,
  4803. 2535736646,
  4804. 337727348,
  4805. 3213592640,
  4806. 1301675037,
  4807. 2528481711,
  4808. 1895095763,
  4809. 1721773893,
  4810. 3216771564,
  4811. 62756741,
  4812. 2142006736,
  4813. 835421444,
  4814. 2531993523,
  4815. 1442658625,
  4816. 3659876326,
  4817. 2882144922,
  4818. 676362277,
  4819. 1392781812,
  4820. 170690266,
  4821. 3921047035,
  4822. 1759253602,
  4823. 3611846912,
  4824. 1745797284,
  4825. 664899054,
  4826. 1329594018,
  4827. 3901205900,
  4828. 3045908486,
  4829. 2062866102,
  4830. 2865634940,
  4831. 3543621612,
  4832. 3464012697,
  4833. 1080764994,
  4834. 553557557,
  4835. 3656615353,
  4836. 3996768171,
  4837. 991055499,
  4838. 499776247,
  4839. 1265440854,
  4840. 648242737,
  4841. 3940784050,
  4842. 980351604,
  4843. 3713745714,
  4844. 1749149687,
  4845. 3396870395,
  4846. 4211799374,
  4847. 3640570775,
  4848. 1161844396,
  4849. 3125318951,
  4850. 1431517754,
  4851. 545492359,
  4852. 4268468663,
  4853. 3499529547,
  4854. 1437099964,
  4855. 2702547544,
  4856. 3433638243,
  4857. 2581715763,
  4858. 2787789398,
  4859. 1060185593,
  4860. 1593081372,
  4861. 2418618748,
  4862. 4260947970,
  4863. 69676912,
  4864. 2159744348,
  4865. 86519011,
  4866. 2512459080,
  4867. 3838209314,
  4868. 1220612927,
  4869. 3339683548,
  4870. 133810670,
  4871. 1090789135,
  4872. 1078426020,
  4873. 1569222167,
  4874. 845107691,
  4875. 3583754449,
  4876. 4072456591,
  4877. 1091646820,
  4878. 628848692,
  4879. 1613405280,
  4880. 3757631651,
  4881. 526609435,
  4882. 236106946,
  4883. 48312990,
  4884. 2942717905,
  4885. 3402727701,
  4886. 1797494240,
  4887. 859738849,
  4888. 992217954,
  4889. 4005476642,
  4890. 2243076622,
  4891. 3870952857,
  4892. 3732016268,
  4893. 765654824,
  4894. 3490871365,
  4895. 2511836413,
  4896. 1685915746,
  4897. 3888969200,
  4898. 1414112111,
  4899. 2273134842,
  4900. 3281911079,
  4901. 4080962846,
  4902. 172450625,
  4903. 2569994100,
  4904. 980381355,
  4905. 4109958455,
  4906. 2819808352,
  4907. 2716589560,
  4908. 2568741196,
  4909. 3681446669,
  4910. 3329971472,
  4911. 1835478071,
  4912. 660984891,
  4913. 3704678404,
  4914. 4045999559,
  4915. 3422617507,
  4916. 3040415634,
  4917. 1762651403,
  4918. 1719377915,
  4919. 3470491036,
  4920. 2693910283,
  4921. 3642056355,
  4922. 3138596744,
  4923. 1364962596,
  4924. 2073328063,
  4925. 1983633131,
  4926. 926494387,
  4927. 3423689081,
  4928. 2150032023,
  4929. 4096667949,
  4930. 1749200295,
  4931. 3328846651,
  4932. 309677260,
  4933. 2016342300,
  4934. 1779581495,
  4935. 3079819751,
  4936. 111262694,
  4937. 1274766160,
  4938. 443224088,
  4939. 298511866,
  4940. 1025883608,
  4941. 3806446537,
  4942. 1145181785,
  4943. 168956806,
  4944. 3641502830,
  4945. 3584813610,
  4946. 1689216846,
  4947. 3666258015,
  4948. 3200248200,
  4949. 1692713982,
  4950. 2646376535,
  4951. 4042768518,
  4952. 1618508792,
  4953. 1610833997,
  4954. 3523052358,
  4955. 4130873264,
  4956. 2001055236,
  4957. 3610705100,
  4958. 2202168115,
  4959. 4028541809,
  4960. 2961195399,
  4961. 1006657119,
  4962. 2006996926,
  4963. 3186142756,
  4964. 1430667929,
  4965. 3210227297,
  4966. 1314452623,
  4967. 4074634658,
  4968. 4101304120,
  4969. 2273951170,
  4970. 1399257539,
  4971. 3367210612,
  4972. 3027628629,
  4973. 1190975929,
  4974. 2062231137,
  4975. 2333990788,
  4976. 2221543033,
  4977. 2438960610,
  4978. 1181637006,
  4979. 548689776,
  4980. 2362791313,
  4981. 3372408396,
  4982. 3104550113,
  4983. 3145860560,
  4984. 296247880,
  4985. 1970579870,
  4986. 3078560182,
  4987. 3769228297,
  4988. 1714227617,
  4989. 3291629107,
  4990. 3898220290,
  4991. 166772364,
  4992. 1251581989,
  4993. 493813264,
  4994. 448347421,
  4995. 195405023,
  4996. 2709975567,
  4997. 677966185,
  4998. 3703036547,
  4999. 1463355134,
  5000. 2715995803,
  5001. 1338867538,
  5002. 1343315457,
  5003. 2802222074,
  5004. 2684532164,
  5005. 233230375,
  5006. 2599980071,
  5007. 2000651841,
  5008. 3277868038,
  5009. 1638401717,
  5010. 4028070440,
  5011. 3237316320,
  5012. 6314154,
  5013. 819756386,
  5014. 300326615,
  5015. 590932579,
  5016. 1405279636,
  5017. 3267499572,
  5018. 3150704214,
  5019. 2428286686,
  5020. 3959192993,
  5021. 3461946742,
  5022. 1862657033,
  5023. 1266418056,
  5024. 963775037,
  5025. 2089974820,
  5026. 2263052895,
  5027. 1917689273,
  5028. 448879540,
  5029. 3550394620,
  5030. 3981727096,
  5031. 150775221,
  5032. 3627908307,
  5033. 1303187396,
  5034. 508620638,
  5035. 2975983352,
  5036. 2726630617,
  5037. 1817252668,
  5038. 1876281319,
  5039. 1457606340,
  5040. 908771278,
  5041. 3720792119,
  5042. 3617206836,
  5043. 2455994898,
  5044. 1729034894,
  5045. 1080033504
  5046. ],
  5047. [
  5048. 976866871,
  5049. 3556439503,
  5050. 2881648439,
  5051. 1522871579,
  5052. 1555064734,
  5053. 1336096578,
  5054. 3548522304,
  5055. 2579274686,
  5056. 3574697629,
  5057. 3205460757,
  5058. 3593280638,
  5059. 3338716283,
  5060. 3079412587,
  5061. 564236357,
  5062. 2993598910,
  5063. 1781952180,
  5064. 1464380207,
  5065. 3163844217,
  5066. 3332601554,
  5067. 1699332808,
  5068. 1393555694,
  5069. 1183702653,
  5070. 3581086237,
  5071. 1288719814,
  5072. 691649499,
  5073. 2847557200,
  5074. 2895455976,
  5075. 3193889540,
  5076. 2717570544,
  5077. 1781354906,
  5078. 1676643554,
  5079. 2592534050,
  5080. 3230253752,
  5081. 1126444790,
  5082. 2770207658,
  5083. 2633158820,
  5084. 2210423226,
  5085. 2615765581,
  5086. 2414155088,
  5087. 3127139286,
  5088. 673620729,
  5089. 2805611233,
  5090. 1269405062,
  5091. 4015350505,
  5092. 3341807571,
  5093. 4149409754,
  5094. 1057255273,
  5095. 2012875353,
  5096. 2162469141,
  5097. 2276492801,
  5098. 2601117357,
  5099. 993977747,
  5100. 3918593370,
  5101. 2654263191,
  5102. 753973209,
  5103. 36408145,
  5104. 2530585658,
  5105. 25011837,
  5106. 3520020182,
  5107. 2088578344,
  5108. 530523599,
  5109. 2918365339,
  5110. 1524020338,
  5111. 1518925132,
  5112. 3760827505,
  5113. 3759777254,
  5114. 1202760957,
  5115. 3985898139,
  5116. 3906192525,
  5117. 674977740,
  5118. 4174734889,
  5119. 2031300136,
  5120. 2019492241,
  5121. 3983892565,
  5122. 4153806404,
  5123. 3822280332,
  5124. 352677332,
  5125. 2297720250,
  5126. 60907813,
  5127. 90501309,
  5128. 3286998549,
  5129. 1016092578,
  5130. 2535922412,
  5131. 2839152426,
  5132. 457141659,
  5133. 509813237,
  5134. 4120667899,
  5135. 652014361,
  5136. 1966332200,
  5137. 2975202805,
  5138. 55981186,
  5139. 2327461051,
  5140. 676427537,
  5141. 3255491064,
  5142. 2882294119,
  5143. 3433927263,
  5144. 1307055953,
  5145. 942726286,
  5146. 933058658,
  5147. 2468411793,
  5148. 3933900994,
  5149. 4215176142,
  5150. 1361170020,
  5151. 2001714738,
  5152. 2830558078,
  5153. 3274259782,
  5154. 1222529897,
  5155. 1679025792,
  5156. 2729314320,
  5157. 3714953764,
  5158. 1770335741,
  5159. 151462246,
  5160. 3013232138,
  5161. 1682292957,
  5162. 1483529935,
  5163. 471910574,
  5164. 1539241949,
  5165. 458788160,
  5166. 3436315007,
  5167. 1807016891,
  5168. 3718408830,
  5169. 978976581,
  5170. 1043663428,
  5171. 3165965781,
  5172. 1927990952,
  5173. 4200891579,
  5174. 2372276910,
  5175. 3208408903,
  5176. 3533431907,
  5177. 1412390302,
  5178. 2931980059,
  5179. 4132332400,
  5180. 1947078029,
  5181. 3881505623,
  5182. 4168226417,
  5183. 2941484381,
  5184. 1077988104,
  5185. 1320477388,
  5186. 886195818,
  5187. 18198404,
  5188. 3786409e3,
  5189. 2509781533,
  5190. 112762804,
  5191. 3463356488,
  5192. 1866414978,
  5193. 891333506,
  5194. 18488651,
  5195. 661792760,
  5196. 1628790961,
  5197. 3885187036,
  5198. 3141171499,
  5199. 876946877,
  5200. 2693282273,
  5201. 1372485963,
  5202. 791857591,
  5203. 2686433993,
  5204. 3759982718,
  5205. 3167212022,
  5206. 3472953795,
  5207. 2716379847,
  5208. 445679433,
  5209. 3561995674,
  5210. 3504004811,
  5211. 3574258232,
  5212. 54117162,
  5213. 3331405415,
  5214. 2381918588,
  5215. 3769707343,
  5216. 4154350007,
  5217. 1140177722,
  5218. 4074052095,
  5219. 668550556,
  5220. 3214352940,
  5221. 367459370,
  5222. 261225585,
  5223. 2610173221,
  5224. 4209349473,
  5225. 3468074219,
  5226. 3265815641,
  5227. 314222801,
  5228. 3066103646,
  5229. 3808782860,
  5230. 282218597,
  5231. 3406013506,
  5232. 3773591054,
  5233. 379116347,
  5234. 1285071038,
  5235. 846784868,
  5236. 2669647154,
  5237. 3771962079,
  5238. 3550491691,
  5239. 2305946142,
  5240. 453669953,
  5241. 1268987020,
  5242. 3317592352,
  5243. 3279303384,
  5244. 3744833421,
  5245. 2610507566,
  5246. 3859509063,
  5247. 266596637,
  5248. 3847019092,
  5249. 517658769,
  5250. 3462560207,
  5251. 3443424879,
  5252. 370717030,
  5253. 4247526661,
  5254. 2224018117,
  5255. 4143653529,
  5256. 4112773975,
  5257. 2788324899,
  5258. 2477274417,
  5259. 1456262402,
  5260. 2901442914,
  5261. 1517677493,
  5262. 1846949527,
  5263. 2295493580,
  5264. 3734397586,
  5265. 2176403920,
  5266. 1280348187,
  5267. 1908823572,
  5268. 3871786941,
  5269. 846861322,
  5270. 1172426758,
  5271. 3287448474,
  5272. 3383383037,
  5273. 1655181056,
  5274. 3139813346,
  5275. 901632758,
  5276. 1897031941,
  5277. 2986607138,
  5278. 3066810236,
  5279. 3447102507,
  5280. 1393639104,
  5281. 373351379,
  5282. 950779232,
  5283. 625454576,
  5284. 3124240540,
  5285. 4148612726,
  5286. 2007998917,
  5287. 544563296,
  5288. 2244738638,
  5289. 2330496472,
  5290. 2058025392,
  5291. 1291430526,
  5292. 424198748,
  5293. 50039436,
  5294. 29584100,
  5295. 3605783033,
  5296. 2429876329,
  5297. 2791104160,
  5298. 1057563949,
  5299. 3255363231,
  5300. 3075367218,
  5301. 3463963227,
  5302. 1469046755,
  5303. 985887462
  5304. ]
  5305. ];
  5306. var C = {
  5307. pbox: [],
  5308. sbox: []
  5309. };
  5310. function Q(n, H) {
  5311. let s = H >> 24 & 255, M = H >> 16 & 255, z = H >> 8 & 255, O = H & 255, L = n.sbox[0][s] + n.sbox[1][M];
  5312. return L = L ^ n.sbox[2][z], L = L + n.sbox[3][O], L;
  5313. }
  5314. function t(n, H, s) {
  5315. let M = H, z = s, O;
  5316. for (let L = 0; L < P; ++L)
  5317. M = M ^ n.pbox[L], z = Q(n, M) ^ z, O = M, M = z, z = O;
  5318. return O = M, M = z, z = O, z = z ^ n.pbox[P], M = M ^ n.pbox[P + 1], { left: M, right: z };
  5319. }
  5320. function f(n, H, s) {
  5321. let M = H, z = s, O;
  5322. for (let L = P + 1; L > 1; --L)
  5323. M = M ^ n.pbox[L], z = Q(n, M) ^ z, O = M, M = z, z = O;
  5324. return O = M, M = z, z = O, z = z ^ n.pbox[1], M = M ^ n.pbox[0], { left: M, right: z };
  5325. }
  5326. function v(n, H, s) {
  5327. for (let Z = 0; Z < 4; Z++) {
  5328. n.sbox[Z] = [];
  5329. for (let l = 0; l < 256; l++)
  5330. n.sbox[Z][l] = D[Z][l];
  5331. }
  5332. let M = 0;
  5333. for (let Z = 0; Z < P + 2; Z++)
  5334. n.pbox[Z] = Y[Z] ^ H[M], M++, M >= s && (M = 0);
  5335. let z = 0, O = 0, L = 0;
  5336. for (let Z = 0; Z < P + 2; Z += 2)
  5337. L = t(n, z, O), z = L.left, O = L.right, n.pbox[Z] = z, n.pbox[Z + 1] = O;
  5338. for (let Z = 0; Z < 4; Z++)
  5339. for (let l = 0; l < 256; l += 2)
  5340. L = t(n, z, O), z = L.left, O = L.right, n.sbox[Z][l] = z, n.sbox[Z][l + 1] = O;
  5341. return !0;
  5342. }
  5343. var c = x.Blowfish = r.extend({
  5344. _doReset: function() {
  5345. if (this._keyPriorReset !== this._key) {
  5346. var n = this._keyPriorReset = this._key, H = n.words, s = n.sigBytes / 4;
  5347. v(C, H, s);
  5348. }
  5349. },
  5350. encryptBlock: function(n, H) {
  5351. var s = t(C, n[H], n[H + 1]);
  5352. n[H] = s.left, n[H + 1] = s.right;
  5353. },
  5354. decryptBlock: function(n, H) {
  5355. var s = f(C, n[H], n[H + 1]);
  5356. n[H] = s.left, n[H + 1] = s.right;
  5357. },
  5358. blockSize: 64 / 32,
  5359. keySize: 128 / 32,
  5360. ivSize: 64 / 32
  5361. });
  5362. B.Blowfish = r._createHelper(c);
  5363. }(), w.Blowfish;
  5364. });
  5365. }(lg)), lg.exports;
  5366. }
  5367. (function(A, e) {
  5368. (function(w, B, g) {
  5369. A.exports = B(E(), KA(), xD(), ZD(), zA(), bD(), PA(), Dw(), Vg(), lD(), sw(), GD(), dD(), aD(), Fg(), uD(), nA(), $(), yD(), XD(), jD(), VD(), FD(), oD(), ND(), mD(), JD(), kD(), KD(), ED(), ID(), pD(), TD(), SD(), UD());
  5370. })(k, function(w) {
  5371. return w;
  5372. });
  5373. })(ww);
  5374. var iD = ww.exports;
  5375. const aA = /* @__PURE__ */ aw(iD);
  5376. function kA(A, e = "XwKsGlMcdPMEhR1B") {
  5377. var w = aA.enc.Utf8.parse(e), B = aA.enc.Utf8.parse(A), g = aA.AES.encrypt(B, w, { mode: aA.mode.ECB, padding: aA.pad.Pkcs7 });
  5378. return g.toString();
  5379. }
  5380. function ew(A) {
  5381. var e, w, B, g, r = A.$el.parentNode.offsetWidth || window.offsetWidth, x = A.$el.parentNode.offsetHeight || window.offsetHeight;
  5382. return A.imgSize.width.indexOf("%") != -1 ? e = parseInt(this.imgSize.width) / 100 * r + "px" : e = this.imgSize.width, A.imgSize.height.indexOf("%") != -1 ? w = parseInt(this.imgSize.height) / 100 * x + "px" : w = this.imgSize.height, A.barSize.width.indexOf("%") != -1 ? B = parseInt(this.barSize.width) / 100 * r + "px" : B = this.barSize.width, A.barSize.height.indexOf("%") != -1 ? g = parseInt(this.barSize.height) / 100 * x + "px" : g = this.barSize.height, { imgWidth: e, imgHeight: w, barWidth: B, barHeight: g };
  5383. }
  5384. const qD = {
  5385. name: "SVerifySlide",
  5386. props: {
  5387. // eslint-disable-next-line vue/require-default-prop
  5388. captchaType: {
  5389. type: String
  5390. },
  5391. type: {
  5392. type: String,
  5393. default: "1"
  5394. },
  5395. // 弹出式pop,固定fixed
  5396. mode: {
  5397. type: String,
  5398. default: "fixed"
  5399. },
  5400. vSpace: {
  5401. type: Number,
  5402. default: 5
  5403. },
  5404. explain: {
  5405. type: String,
  5406. default: window.$l("向右滑动完成验证")
  5407. },
  5408. imgSize: {
  5409. type: Object,
  5410. default() {
  5411. return {
  5412. width: "310px",
  5413. height: "155px"
  5414. };
  5415. }
  5416. },
  5417. blockSize: {
  5418. type: Object,
  5419. default() {
  5420. return {
  5421. width: "50px",
  5422. height: "50px"
  5423. };
  5424. }
  5425. },
  5426. barSize: {
  5427. type: Object,
  5428. default() {
  5429. return {
  5430. width: "310px",
  5431. height: "40px"
  5432. };
  5433. }
  5434. }
  5435. },
  5436. data() {
  5437. return {
  5438. secretKey: "",
  5439. // 后端返回的加密秘钥 字段
  5440. passFlag: "",
  5441. // 是否通过的标识
  5442. backImgBase: "",
  5443. // 验证码背景图片
  5444. blockBackImgBase: "",
  5445. // 验证滑块的背景图片
  5446. backToken: "",
  5447. // 后端返回的唯一token值
  5448. startMoveTime: "",
  5449. // 移动开始的时间
  5450. endMovetime: "",
  5451. // 移动结束的时间
  5452. tipsBackColor: "",
  5453. // 提示词的背景颜色
  5454. tipWords: "",
  5455. text: "",
  5456. finishText: "",
  5457. setSize: {
  5458. imgHeight: 0,
  5459. imgWidth: 0,
  5460. barHeight: 0,
  5461. barWidth: 0
  5462. },
  5463. top: 0,
  5464. left: 0,
  5465. moveBlockLeft: void 0,
  5466. leftBarWidth: void 0,
  5467. // 移动中样式
  5468. moveBlockBackgroundColor: void 0,
  5469. leftBarBorderColor: "#ddd",
  5470. iconColor: void 0,
  5471. iconClass: "icon-right",
  5472. status: !1,
  5473. // 鼠标状态
  5474. isEnd: !1,
  5475. // 是够验证完成
  5476. showRefresh: !0,
  5477. transitionLeft: "",
  5478. transitionWidth: ""
  5479. };
  5480. },
  5481. computed: {
  5482. barArea() {
  5483. return this.$el.querySelector(".verify-bar-area");
  5484. },
  5485. resetSize() {
  5486. return ew;
  5487. }
  5488. },
  5489. methods: {
  5490. init() {
  5491. this.text = window.$l(this.explain), this.$utils.ls.get("token") && this.getPictrue(), this.$nextTick(() => {
  5492. const e = this.resetSize(this);
  5493. for (const w in e)
  5494. this.setSize[w] = parseInt(e[w]);
  5495. this.$parent.$emit("ready", this);
  5496. });
  5497. var A = this;
  5498. window.removeEventListener("touchmove", function(e) {
  5499. A.move(e);
  5500. }), window.removeEventListener("mousemove", function(e) {
  5501. A.move(e);
  5502. }), window.removeEventListener("touchend", function() {
  5503. A.end();
  5504. }), window.removeEventListener("mouseup", function() {
  5505. A.end();
  5506. }), window.addEventListener("touchmove", function(e) {
  5507. A.move(e);
  5508. }), window.addEventListener("mousemove", function(e) {
  5509. A.move(e);
  5510. }), window.addEventListener("touchend", function() {
  5511. A.end();
  5512. }), window.addEventListener("mouseup", function() {
  5513. A.end();
  5514. });
  5515. },
  5516. // 鼠标按下
  5517. start: function(A) {
  5518. if (A = A || window.event, A.touches)
  5519. var e = A.touches[0].pageX;
  5520. else
  5521. var e = A.clientX;
  5522. this.startLeft = Math.floor(e - this.barArea.getBoundingClientRect().left), this.startMoveTime = +/* @__PURE__ */ new Date(), this.isEnd == !1 && (this.text = "", this.moveBlockBackgroundColor = "#337ab7", this.leftBarBorderColor = "#337AB7", this.iconColor = "#fff", A.stopPropagation(), this.status = !0);
  5523. },
  5524. // 鼠标移动
  5525. move: function(A) {
  5526. if (A = A || window.event, this.status && this.isEnd == !1) {
  5527. if (A.touches)
  5528. var e = A.touches[0].pageX;
  5529. else
  5530. var e = A.clientX;
  5531. var w = this.barArea.getBoundingClientRect().left, B = e - w;
  5532. B >= this.barArea.offsetWidth - parseInt(parseInt(this.blockSize.width) / 2) - 2 && (B = this.barArea.offsetWidth - parseInt(parseInt(this.blockSize.width) / 2) - 2), B <= 0 && (B = parseInt(parseInt(this.blockSize.width) / 2)), this.moveBlockLeft = B - this.startLeft + "px", this.leftBarWidth = B - this.startLeft + "px";
  5533. }
  5534. },
  5535. // 鼠标松开
  5536. end: function() {
  5537. this.endMovetime = +/* @__PURE__ */ new Date();
  5538. var A = this;
  5539. if (this.status && this.isEnd == !1) {
  5540. var e = parseInt((this.moveBlockLeft || "").replace("px", ""));
  5541. e = e * 310 / parseInt(this.setSize.imgWidth);
  5542. const w = {
  5543. captchaType: this.captchaType,
  5544. pointJson: this.secretKey ? kA(JSON.stringify({ x: e, y: 5 }), this.secretKey) : JSON.stringify({ x: e, y: 5 }),
  5545. token: this.backToken
  5546. };
  5547. NB(w).then((B) => {
  5548. if (B.repCode == "0000") {
  5549. this.moveBlockBackgroundColor = "#5cb85c", this.leftBarBorderColor = "#5cb85c", this.iconColor = "#fff", this.iconClass = "icon-check", this.showRefresh = !1, this.isEnd = !0, this.mode == "pop" && setTimeout(() => {
  5550. this.$parent.clickShow = !1, this.refresh();
  5551. }, 1500), this.passFlag = !0, this.tipWords = `${((this.endMovetime - this.startMoveTime) / 1e3).toFixed(2)}s ${window.$l("验证成功")}`;
  5552. var g = this.secretKey ? kA(
  5553. this.backToken + "---" + JSON.stringify({ x: e, y: 5 }),
  5554. this.secretKey
  5555. ) : this.backToken + "---" + JSON.stringify({ x: e, y: 5 });
  5556. setTimeout(() => {
  5557. this.tipWords = "", this.$parent.closeBox(), this.$parent.$emit("success", { captchaVerification: g });
  5558. }, 1e3);
  5559. } else
  5560. this.moveBlockBackgroundColor = "#d9534f", this.leftBarBorderColor = "#d9534f", this.iconColor = "#fff", this.iconClass = "icon-close", this.passFlag = !1, setTimeout(function() {
  5561. A.refresh();
  5562. }, 1e3), this.$parent.$emit("error", this), this.tipWords = window.$l("验证失败"), setTimeout(() => {
  5563. this.tipWords = "";
  5564. }, 1e3);
  5565. }), this.status = !1;
  5566. }
  5567. },
  5568. refresh: function() {
  5569. this.showRefresh = !0, this.finishText = "", this.transitionLeft = "left .3s", this.moveBlockLeft = 0, this.leftBarWidth = void 0, this.transitionWidth = "width .3s", this.leftBarBorderColor = "#ddd", this.moveBlockBackgroundColor = "#fff", this.iconColor = "#000", this.iconClass = "icon-right", this.isEnd = !1, this.getPictrue(), setTimeout(() => {
  5570. this.transitionWidth = "", this.transitionLeft = "", this.text = window.$l(this.explain);
  5571. }, 300);
  5572. },
  5573. // 请求背景图片和验证图片
  5574. getPictrue() {
  5575. const A = {
  5576. captchaType: this.captchaType
  5577. };
  5578. oB(A).then((e) => {
  5579. e.repCode == "0000" ? (this.backImgBase = e.repData.originalImageBase64, this.blockBackImgBase = e.repData.jigsawImageBase64, this.backToken = e.repData.token, this.secretKey = e.repData.secretKey) : this.tipWords = e.repMsg;
  5580. });
  5581. }
  5582. },
  5583. watch: {
  5584. // type变化则全面刷新
  5585. type: {
  5586. immediate: !0,
  5587. handler() {
  5588. this.init();
  5589. }
  5590. }
  5591. },
  5592. mounted() {
  5593. this.$el.onselectstart = function() {
  5594. return !1;
  5595. };
  5596. }
  5597. }, hD = { style: { position: "relative" } }, RD = ["src"], _D = ["textContent"], $D = ["textContent"], As = ["src"];
  5598. function gs(A, e, w, B, g, r) {
  5599. return N(), I("div", hD, [
  5600. w.type === "2" ? (N(), I("div", {
  5601. key: 0,
  5602. style: sA({ height: parseInt(g.setSize.imgHeight) + w.vSpace + "px" }),
  5603. class: "verify-img-out"
  5604. }, [
  5605. F("div", {
  5606. style: sA({ width: g.setSize.imgWidth + "px", height: g.setSize.imgHeight + "px" }),
  5607. class: "verify-img-panel"
  5608. }, [
  5609. F("img", {
  5610. src: "data:image/png;base64," + g.backImgBase,
  5611. alt: "",
  5612. style: { width: "100%", height: "100%", display: "block" }
  5613. }, null, 8, RD),
  5614. ug(F("div", {
  5615. onClick: e[0] || (e[0] = (...x) => r.refresh && r.refresh(...x)),
  5616. class: "verify-refresh"
  5617. }, [...e[3] || (e[3] = [
  5618. F("i", { class: "iconfont icon-refresh" }, null, -1)
  5619. ])], 512), [
  5620. [yg, g.showRefresh]
  5621. ]),
  5622. m(Uw, { name: "tips" }, {
  5623. default: S(() => [
  5624. g.tipWords ? (N(), I("span", {
  5625. key: 0,
  5626. class: yA([g.passFlag ? "suc-bg" : "err-bg", "verify-tips"])
  5627. }, R(g.tipWords), 3)) : _("", !0)
  5628. ]),
  5629. _: 1
  5630. })
  5631. ], 4)
  5632. ], 4)) : _("", !0),
  5633. F("div", {
  5634. style: sA({
  5635. width: g.setSize.imgWidth + "px",
  5636. height: w.barSize.height,
  5637. "line-height": w.barSize.height
  5638. }),
  5639. class: "verify-bar-area"
  5640. }, [
  5641. F("span", {
  5642. class: "verify-msg",
  5643. textContent: R(g.text)
  5644. }, null, 8, _D),
  5645. F("div", {
  5646. style: sA({
  5647. width: g.leftBarWidth !== void 0 ? g.leftBarWidth : w.barSize.height,
  5648. height: w.barSize.height,
  5649. "border-color": g.leftBarBorderColor,
  5650. transaction: g.transitionWidth
  5651. }),
  5652. class: "verify-left-bar"
  5653. }, [
  5654. F("span", {
  5655. class: "verify-msg",
  5656. textContent: R(g.finishText)
  5657. }, null, 8, $D),
  5658. F("div", {
  5659. style: sA({
  5660. width: w.barSize.height,
  5661. height: w.barSize.height,
  5662. "background-color": g.moveBlockBackgroundColor,
  5663. left: g.moveBlockLeft,
  5664. transition: g.transitionLeft
  5665. }),
  5666. onMousedown: e[1] || (e[1] = (...x) => r.start && r.start(...x)),
  5667. onTouchstart: e[2] || (e[2] = (...x) => r.start && r.start(...x)),
  5668. class: "verify-move-block"
  5669. }, [
  5670. F("i", {
  5671. class: yA(["verify-icon iconfont", g.iconClass]),
  5672. style: sA({ color: g.iconColor })
  5673. }, null, 6),
  5674. w.type === "2" ? (N(), I("div", {
  5675. key: 0,
  5676. style: sA({
  5677. width: Math.floor(parseInt(g.setSize.imgWidth) * 47 / 310) + "px",
  5678. height: g.setSize.imgHeight + "px",
  5679. top: "-" + (parseInt(g.setSize.imgHeight) + w.vSpace) + "px",
  5680. "background-size": g.setSize.imgWidth + "px," + g.setSize.imgHeight + "px"
  5681. }),
  5682. class: "verify-sub-block"
  5683. }, [
  5684. F("img", {
  5685. src: "data:image/png;base64," + g.blockBackImgBase,
  5686. alt: "",
  5687. style: { width: "100%", height: "100%", display: "block" }
  5688. }, null, 8, As)
  5689. ], 4)) : _("", !0)
  5690. ], 36)
  5691. ], 4)
  5692. ], 4)
  5693. ]);
  5694. }
  5695. const Bs = /* @__PURE__ */ XA(qD, [["render", gs]]), ws = {
  5696. name: "VerifyPoints",
  5697. props: {
  5698. // 弹出式pop,固定fixed
  5699. mode: {
  5700. type: String,
  5701. default: "fixed"
  5702. },
  5703. // eslint-disable-next-line vue/require-default-prop
  5704. captchaType: {
  5705. type: String
  5706. },
  5707. // 间隔
  5708. vSpace: {
  5709. type: Number,
  5710. default: 5
  5711. },
  5712. imgSize: {
  5713. type: Object,
  5714. default() {
  5715. return {
  5716. width: "310px",
  5717. height: "155px"
  5718. };
  5719. }
  5720. },
  5721. barSize: {
  5722. type: Object,
  5723. default() {
  5724. return {
  5725. width: "310px",
  5726. height: "40px"
  5727. };
  5728. }
  5729. }
  5730. },
  5731. data() {
  5732. return {
  5733. secretKey: "",
  5734. // 后端返回的ase加密秘钥
  5735. checkNum: 3,
  5736. // 默认需要点击的字数
  5737. fontPos: [],
  5738. // 选中的坐标信息
  5739. checkPosArr: [],
  5740. // 用户点击的坐标
  5741. num: 1,
  5742. // 点击的记数
  5743. pointBackImgBase: "",
  5744. // 后端获取到的背景图片
  5745. poinTextList: [],
  5746. // 后端返回的点击字体顺序
  5747. backToken: "",
  5748. // 后端返回的token值
  5749. setSize: {
  5750. imgHeight: 0,
  5751. imgWidth: 0,
  5752. barHeight: 0,
  5753. barWidth: 0
  5754. },
  5755. tempPoints: [],
  5756. text: "",
  5757. barAreaColor: void 0,
  5758. barAreaBorderColor: void 0,
  5759. showRefresh: !0,
  5760. bindingClick: !0
  5761. };
  5762. },
  5763. computed: {
  5764. resetSize() {
  5765. return ew;
  5766. }
  5767. },
  5768. methods: {
  5769. init() {
  5770. this.fontPos.splice(0, this.fontPos.length), this.checkPosArr.splice(0, this.checkPosArr.length), this.num = 1, this.$utils.ls.get("token") && this.getPictrue(), this.$nextTick(() => {
  5771. this.setSize = this.resetSize(this), this.$parent.$emit("ready", this);
  5772. });
  5773. },
  5774. canvasClick(A) {
  5775. this.checkPosArr.push(this.getMousePos(this.$refs.canvas, A)), this.num == this.checkNum && (this.num = this.createPoint(this.getMousePos(this.$refs.canvas, A)), this.checkPosArr = this.pointTransfrom(this.checkPosArr, this.setSize), setTimeout(() => {
  5776. var e = this.secretKey ? kA(this.backToken + "---" + JSON.stringify(this.checkPosArr), this.secretKey) : this.backToken + "---" + JSON.stringify(this.checkPosArr);
  5777. const w = {
  5778. captchaType: this.captchaType,
  5779. pointJson: this.secretKey ? kA(JSON.stringify(this.checkPosArr), this.secretKey) : JSON.stringify(this.checkPosArr),
  5780. token: this.backToken
  5781. };
  5782. NB(w).then((B) => {
  5783. B.repCode == "0000" ? (this.barAreaColor = "#4cae4c", this.barAreaBorderColor = "#5cb85c", this.text = window.$l("验证成功"), this.bindingClick = !1, this.mode == "pop" && setTimeout(() => {
  5784. this.$parent.clickShow = !1, this.refresh();
  5785. }, 1500), this.$parent.$emit("success", { captchaVerification: e })) : (this.$parent.$emit("error", this), this.barAreaColor = "#d9534f", this.barAreaBorderColor = "#d9534f", this.text = window.$l("验证失败"), setTimeout(() => {
  5786. this.refresh();
  5787. }, 700));
  5788. });
  5789. }, 400)), this.num < this.checkNum && (this.num = this.createPoint(this.getMousePos(this.$refs.canvas, A)));
  5790. },
  5791. // 获取坐标
  5792. getMousePos: function(A, e) {
  5793. var w = e.offsetX, B = e.offsetY;
  5794. return { x: w, y: B };
  5795. },
  5796. // 创建坐标点
  5797. createPoint: function(A) {
  5798. return this.tempPoints.push(Object.assign({}, A)), ++this.num;
  5799. },
  5800. refresh: function() {
  5801. this.tempPoints.splice(0, this.tempPoints.length), this.barAreaColor = "#000", this.barAreaBorderColor = "#ddd", this.bindingClick = !0, this.fontPos.splice(0, this.fontPos.length), this.checkPosArr.splice(0, this.checkPosArr.length), this.num = 1, this.getPictrue(), this.text = window.$l("验证失败"), this.showRefresh = !0;
  5802. },
  5803. // 请求背景图片和验证图片
  5804. getPictrue() {
  5805. const A = {
  5806. captchaType: this.captchaType
  5807. };
  5808. oB(A).then((e) => {
  5809. e.repCode == "0000" ? (this.pointBackImgBase = e.repData.originalImageBase64, this.backToken = e.repData.token, this.secretKey = e.repData.secretKey, this.poinTextList = e.repData.wordList, this.text = window.$l("请依次点击【") + this.poinTextList.join(",") + window.$l("】")) : this.text = e.repMsg;
  5810. });
  5811. },
  5812. // 坐标转换函数
  5813. pointTransfrom(A, e) {
  5814. var w = A.map((B) => {
  5815. const g = Math.round(310 * B.x / parseInt(e.imgWidth)), r = Math.round(155 * B.y / parseInt(e.imgHeight));
  5816. return { x: g, y: r };
  5817. });
  5818. return w;
  5819. }
  5820. },
  5821. watch: {
  5822. // type变化则全面刷新
  5823. type: {
  5824. immediate: !0,
  5825. handler() {
  5826. this.init();
  5827. }
  5828. }
  5829. },
  5830. mounted() {
  5831. this.$el.onselectstart = function() {
  5832. return !1;
  5833. };
  5834. }
  5835. }, Ds = { style: { position: "relative" } }, ss = { class: "verify-img-out" }, es = ["src"], ts = { class: "verify-msg" };
  5836. function Cs(A, e, w, B, g, r) {
  5837. return N(), I("div", Ds, [
  5838. F("div", ss, [
  5839. F("div", {
  5840. style: sA({
  5841. width: g.setSize.imgWidth,
  5842. height: g.setSize.imgHeight,
  5843. "background-size": g.setSize.imgWidth + " " + g.setSize.imgHeight,
  5844. "margin-bottom": w.vSpace + "px"
  5845. }),
  5846. class: "verify-img-panel"
  5847. }, [
  5848. ug(F("div", {
  5849. onClick: e[0] || (e[0] = (...x) => r.refresh && r.refresh(...x)),
  5850. class: "verify-refresh",
  5851. style: { "z-index": "3" }
  5852. }, [...e[2] || (e[2] = [
  5853. F("i", { class: "iconfont icon-refresh" }, null, -1)
  5854. ])], 512), [
  5855. [yg, g.showRefresh]
  5856. ]),
  5857. F("img", {
  5858. src: "data:image/png;base64," + g.pointBackImgBase,
  5859. onClick: e[1] || (e[1] = (x) => g.bindingClick ? r.canvasClick(x) : void 0),
  5860. alt: "",
  5861. ref: "canvas",
  5862. style: { width: "100%", height: "100%", display: "block" }
  5863. }, null, 8, es),
  5864. (N(!0), I(JB, null, kB(g.tempPoints, (x, P) => (N(), I("div", {
  5865. key: P,
  5866. style: sA({
  5867. "background-color": "#1abd6c",
  5868. color: "#fff",
  5869. "z-index": 9999,
  5870. width: "20px",
  5871. height: "20px",
  5872. "text-align": "center",
  5873. "line-height": "20px",
  5874. "border-radius": "50%",
  5875. position: "absolute",
  5876. top: parseInt(x.y - 10) + "px",
  5877. left: parseInt(x.x - 10) + "px"
  5878. }),
  5879. class: "point-area"
  5880. }, R(P + 1), 5))), 128))
  5881. ], 4)
  5882. ]),
  5883. F("div", {
  5884. style: sA({
  5885. width: g.setSize.imgWidth,
  5886. color: this.barAreaColor,
  5887. "border-color": this.barAreaBorderColor,
  5888. "line-height": this.barSize.height
  5889. }),
  5890. class: "verify-bar-area"
  5891. }, [
  5892. F("span", ts, R(g.text), 1)
  5893. ], 4)
  5894. ]);
  5895. }
  5896. const Ms = /* @__PURE__ */ XA(ws, [["render", Cs]]), vs = {
  5897. name: "SVerify",
  5898. props: {
  5899. // 双语化
  5900. locale: {
  5901. require: !1,
  5902. type: String,
  5903. default() {
  5904. if (navigator.language)
  5905. var A = navigator.language;
  5906. else
  5907. var A = navigator.browserLanguage;
  5908. return A;
  5909. }
  5910. },
  5911. captchaType: {
  5912. type: String,
  5913. required: !0
  5914. },
  5915. // eslint-disable-next-line vue/require-default-prop
  5916. figure: {
  5917. type: Number
  5918. },
  5919. // eslint-disable-next-line vue/require-default-prop
  5920. arith: {
  5921. type: Number
  5922. },
  5923. mode: {
  5924. type: String,
  5925. default: "pop"
  5926. },
  5927. // eslint-disable-next-line vue/require-default-prop
  5928. vSpace: {
  5929. type: Number
  5930. },
  5931. // eslint-disable-next-line vue/require-default-prop
  5932. explain: {
  5933. type: String
  5934. },
  5935. imgSize: {
  5936. type: Object,
  5937. default() {
  5938. return {
  5939. width: "310px",
  5940. height: "155px"
  5941. };
  5942. }
  5943. },
  5944. // eslint-disable-next-line vue/require-default-prop
  5945. blockSize: {
  5946. type: Object
  5947. },
  5948. // eslint-disable-next-line vue/require-default-prop
  5949. barSize: {
  5950. type: Object
  5951. }
  5952. },
  5953. data() {
  5954. return {
  5955. // showBox:true,
  5956. clickShow: !1,
  5957. // 内部类型
  5958. verifyType: void 0,
  5959. // 所用组件类型
  5960. componentType: void 0
  5961. };
  5962. },
  5963. methods: {
  5964. /**
  5965. * i18n
  5966. * @description 兼容vue-i18n 调用$t来转换ok
  5967. * @param {String} text-被转换的目标
  5968. * @return {String} i18n的结果
  5969. * */
  5970. i18n(A) {
  5971. return this.$t ? this.$t(A) : (this.$options.i18n.messages[this.locale] || this.$options.i18n.messages["en-US"])[A];
  5972. },
  5973. /**
  5974. * refresh
  5975. * @description 刷新
  5976. * */
  5977. refresh() {
  5978. this.instance.refresh && this.instance.refresh();
  5979. },
  5980. closeBox() {
  5981. this.clickShow = !1, this.refresh();
  5982. },
  5983. show() {
  5984. this.mode == "pop" && (this.clickShow = !0);
  5985. }
  5986. },
  5987. computed: {
  5988. instance() {
  5989. return this.$refs.instance || {};
  5990. },
  5991. showBox() {
  5992. return this.mode == "pop" ? this.clickShow : !0;
  5993. }
  5994. },
  5995. watch: {
  5996. captchaType: {
  5997. immediate: !0,
  5998. handler(A) {
  5999. switch (A.toString()) {
  6000. case "blockPuzzle":
  6001. this.verifyType = "2", this.componentType = "VerifySlide";
  6002. break;
  6003. case "clickWord":
  6004. this.verifyType = "", this.componentType = "VerifyPoints";
  6005. break;
  6006. }
  6007. }
  6008. }
  6009. },
  6010. components: {
  6011. VerifySlide: Bs,
  6012. VerifyPoints: Ms
  6013. }
  6014. }, rs = {
  6015. key: 0,
  6016. class: "verifybox-top"
  6017. };
  6018. function fs(A, e, w, B, g, r) {
  6019. return ug((N(), I("div", {
  6020. class: yA(w.mode == "pop" ? "mask" : "")
  6021. }, [
  6022. F("div", {
  6023. class: yA(w.mode == "pop" ? "verifybox" : ""),
  6024. style: sA({ "max-width": parseInt(w.imgSize.width) + 30 + "px" })
  6025. }, [
  6026. w.mode == "pop" ? (N(), I("div", rs, [
  6027. WA(R(A.$l("请完成安全验证")) + " ", 1),
  6028. F("span", {
  6029. onClick: e[0] || (e[0] = (...x) => r.closeBox && r.closeBox(...x)),
  6030. class: "verifybox-close"
  6031. }, [...e[1] || (e[1] = [
  6032. F("i", { class: "iconfont icon-close" }, null, -1)
  6033. ])])
  6034. ])) : _("", !0),
  6035. F("div", {
  6036. style: sA({ padding: w.mode == "pop" ? "15px" : "0" }),
  6037. class: "verifybox-bottom"
  6038. }, [
  6039. g.componentType ? (N(), CA(KB(g.componentType), {
  6040. key: 0,
  6041. arith: w.arith,
  6042. barSize: w.barSize,
  6043. blockSize: w.blockSize,
  6044. captchaType: w.captchaType,
  6045. explain: w.explain,
  6046. figure: w.figure,
  6047. imgSize: w.imgSize,
  6048. mode: w.mode,
  6049. type: g.verifyType,
  6050. vSpace: w.vSpace,
  6051. ref: "instance"
  6052. }, null, 8, ["arith", "barSize", "blockSize", "captchaType", "explain", "figure", "imgSize", "mode", "type", "vSpace"])) : _("", !0)
  6053. ], 4)
  6054. ], 6)
  6055. ], 2)), [
  6056. [yg, r.showBox]
  6057. ]);
  6058. }
  6059. const ns = /* @__PURE__ */ XA(vs, [["render", fs]]), zs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1732166249698'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1866'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M734.9%20320.9c0%20123.1-99.8%20222.9-222.9%20222.9-123.1%200-222.9-99.8-222.9-222.9S388.9%2098%20512%2098c123.1%200%20222.9%2099.8%20222.9%20222.9z%20m-63.7%200c0-87.9-71.3-159.2-159.2-159.2S352.8%20233%20352.8%20320.9%20424.1%20480.2%20512%20480.2s159.2-71.3%20159.2-159.3z%20m220.6%20372.8c21.3%2010.2%2034.2%2032%2034.2%2055.5v144.9c0%2017.6-14.3%2031.8-31.8%2031.8H129.8c-17.6%200-31.8-14.3-31.8-31.8V749.2c0-23.6%2012.9-45.4%2034.2-55.5%20115.4-55.1%20243.9-86.2%20379.8-86.2s264.4%2031.1%20379.8%2086.2zM512%20671.2c-125.3%200-243.7%2028.4-350.3%2079v112.1h700.6V750.2c-106.6-50.6-225-79-350.3-79z'%20p-id='1867'%3e%3c/path%3e%3c/svg%3e", Ps = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1732166259718'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2023'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M512%20543.8c123.1%200%20222.9-99.8%20222.9-222.9S635.1%2098%20512%2098c-123.1%200-222.9%2099.8-222.9%20222.9S388.9%20543.8%20512%20543.8z%20m414%20205.4c0-23.6-12.9-45.4-34.2-55.5-115.4-55.1-243.9-86.2-379.8-86.2s-264.4%2031-379.8%2086.2c-21.3%2010.2-34.2%2032-34.2%2055.5v144.9c0%2017.6%2014.3%2031.8%2031.8%2031.8h764.3c17.6%200%2031.8-14.3%2031.8-31.8V749.2z'%20p-id='2024'%20fill='%231677FF'%3e%3c/path%3e%3c/svg%3e", cs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1732166266687'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2226'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M512%20543.8c123.1%200%20222.9-99.8%20222.9-222.9S635.1%2098%20512%2098c-123.1%200-222.9%2099.8-222.9%20222.9S388.9%20543.8%20512%20543.8z%20m414%20205.4c0-23.6-12.9-45.4-34.2-55.5-115.4-55.1-243.9-86.2-379.8-86.2s-264.4%2031-379.8%2086.2c-21.3%2010.2-34.2%2032-34.2%2055.5v144.9c0%2017.6%2014.3%2031.8%2031.8%2031.8h764.3c17.6%200%2031.8-14.3%2031.8-31.8V749.2z'%20p-id='2227'%20fill='%23d81e06'%3e%3c/path%3e%3c/svg%3e", Ys = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1732166274515'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2429'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M247.9%20387v-72.3C247.9%20176.2%20366.1%2064%20512%2064s264.1%20112.2%20264.1%20250.7V387h113.2c20.8%200%2037.7%2016%2037.7%2035.8v501.4c0%2019.8-16.9%2035.8-37.7%2035.8H134.7c-20.8%200-37.7-16-37.7-35.8V422.8c0-19.8%2016.9-35.8%2037.7-35.8h113.2z%20m75.5-72.3V387h377.3v-72.3c0-98.9-84.5-179.1-188.6-179.1s-188.7%2080.2-188.7%20179.1z%20m528.1%20573.7V458.6h-679v429.8h679zM361.1%20745.1v-71.6h301.8v71.6H361.1z'%20p-id='2430'%3e%3c/path%3e%3c/svg%3e", Qs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1732166284874'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2789'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M247.9%20314.7V387H134.7c-20.8%200-37.7%2016-37.7%2035.8v501.4c0%2019.8%2016.9%2035.8%2037.7%2035.8h754.5c20.8%200%2037.7-16%2037.7-35.8V422.8c0-19.8-16.9-35.8-37.7-35.8H776.1v-72.3C776.1%20176.2%20657.9%2064%20512%2064S247.9%20176.2%20247.9%20314.7z%20m75.5%2072.3v-72.3c0-98.9%2084.5-179.1%20188.6-179.1s188.6%2080.2%20188.6%20179.1V387H323.4z%20m7.5%20315.1v-57.3h362.2v57.3H330.9z'%20p-id='2790'%20fill='%231677FF'%3e%3c/path%3e%3c/svg%3e", Ws = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1732166289317'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2992'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M247.9%20314.7V387H134.7c-20.8%200-37.7%2016-37.7%2035.8v501.4c0%2019.8%2016.9%2035.8%2037.7%2035.8h754.5c20.8%200%2037.7-16%2037.7-35.8V422.8c0-19.8-16.9-35.8-37.7-35.8H776.1v-72.3C776.1%20176.2%20657.9%2064%20512%2064S247.9%20176.2%20247.9%20314.7z%20m75.5%2072.3v-72.3c0-98.9%2084.5-179.1%20188.6-179.1s188.6%2080.2%20188.6%20179.1V387H323.4z%20m7.5%20315.1v-57.3h362.2v57.3H330.9z'%20p-id='2993'%20fill='%23d81e06'%3e%3c/path%3e%3c/svg%3e", Hs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1732166678793'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4912'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M809.71264%20121.30304H209.93536c-64.84992%200-117.6064%2052.75648-117.6064%20117.6064v373.06368c0%2064.84992%2052.75648%20117.6064%20117.6064%20117.6064h279.36256v123.4688H245.08928a30.72%2030.72%200%200%200%200%2061.44h570.32704a30.72%2030.72%200%200%200%200-61.44h-264.6784v-123.4688h258.97984c64.84992%200%20117.6064-52.75648%20117.6064-117.6064V238.90432c-0.00512-64.8448-52.7616-117.60128-117.61152-117.60128z%20m56.1664%20490.67008c0%2030.97088-25.19552%2056.1664-56.1664%2056.1664H209.93536c-30.97088%200-56.1664-25.19552-56.1664-56.1664V238.90432c0-30.97088%2025.19552-56.1664%2056.1664-56.1664h599.7824c30.97088%200%2056.1664%2025.19552%2056.1664%2056.1664v373.0688z'%20fill='%23ffffff'%20p-id='4913'%3e%3c/path%3e%3c/svg%3e", Ls = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1732167079941'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5991'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M384%20928%20192%20928c-52.928%200-96-43.072-96-96l0-192c0-52.928%2043.072-96%2096-96l192%200c52.928%200%2096%2043.072%2096%2096l0%20192C480%20884.928%20436.928%20928%20384%20928zM192%20608c-17.632%200-32%2014.336-32%2032l0%20192c0%2017.664%2014.368%2032%2032%2032l192%200c17.632%200%2032-14.336%2032-32l0-192c0-17.664-14.368-32-32-32L192%20608zM736%20896c-17.696%200-32-14.304-32-32l0-64c0-17.696%2014.304-32%2032-32s32%2014.304%2032%2032l0%2064C768%20881.696%20753.696%20896%20736%20896zM864%20896c-17.696%200-32-14.304-32-32l0-96c0-17.696%2014.304-32%2032-32s32%2014.304%2032%2032l0%2096C896%20881.696%20881.696%20896%20864%20896zM864%20672c-17.696%200-32-14.304-32-32l0-64c0-17.696%2014.304-32%2032-32s32%2014.304%2032%2032l0%2064C896%20657.696%20881.696%20672%20864%20672zM736%20736c-17.696%200-32-14.304-32-32l0-128c0-17.696%2014.304-32%2032-32s32%2014.304%2032%2032l0%20128C768%20721.696%20753.696%20736%20736%20736zM608%20896c-17.696%200-32-14.304-32-32l0-128c0-17.696%2014.304-32%2032-32s32%2014.304%2032%2032l0%20128C640%20881.696%20625.696%20896%20608%20896zM608%20640c-17.696%200-32-14.304-32-32l0-32c0-17.696%2014.304-32%2032-32s32%2014.304%2032%2032l0%2032C640%20625.696%20625.696%20640%20608%20640zM320%20800%20256%20800c-17.664%200-32-14.304-32-32l0-64c0-17.696%2014.336-32%2032-32l64%200c17.664%200%2032%2014.304%2032%2032l0%2064C352%20785.696%20337.664%20800%20320%20800zM384%20480%20192%20480c-52.928%200-96-43.072-96-96L96%20192c0-52.928%2043.072-96%2096-96l192%200c52.928%200%2096%2043.072%2096%2096l0%20192C480%20436.928%20436.928%20480%20384%20480zM192%20160C174.368%20160%20160%20174.368%20160%20192l0%20192c0%2017.632%2014.368%2032%2032%2032l192%200c17.632%200%2032-14.368%2032-32L416%20192c0-17.632-14.368-32-32-32L192%20160zM320%20352%20256%20352c-17.664%200-32-14.336-32-32L224%20256c0-17.664%2014.336-32%2032-32l64%200c17.664%200%2032%2014.336%2032%2032l0%2064C352%20337.664%20337.664%20352%20320%20352zM832%20480l-192%200c-52.928%200-96-43.072-96-96L544%20192c0-52.928%2043.072-96%2096-96l192%200c52.928%200%2096%2043.072%2096%2096l0%20192C928%20436.928%20884.928%20480%20832%20480zM640%20160c-17.664%200-32%2014.368-32%2032l0%20192c0%2017.632%2014.336%2032%2032%2032l192%200c17.664%200%2032-14.368%2032-32L864%20192c0-17.632-14.336-32-32-32L640%20160zM768%20352l-64%200c-17.696%200-32-14.336-32-32L672%20256c0-17.664%2014.304-32%2032-32l64%200c17.696%200%2032%2014.336%2032%2032l0%2064C800%20337.664%20785.696%20352%20768%20352z'%20fill='%23ffffff'%20p-id='5992'%3e%3c/path%3e%3c/svg%3e", Os = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1732166311262'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3195'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M954.2%20485.6C856.7%20281%20709.5%20178%20512.1%20178%20314.6%20178%20167.4%20281%2070%20485.6c-7.9%2016.6-7.9%2036.1%200%2052.8C167.4%20743%20314.7%20846%20512.1%20846c197.5%200%20344.6-103%20442.1-307.6%207.9-16.6%207.9-35.9%200-52.8zM512.1%20772.2c-165.7%200-287.1-83.8-372.7-260.2%2085.6-176.4%20207-260.2%20372.7-260.2S799.2%20335.6%20884.8%20512C799.3%20688.4%20678%20772.2%20512.1%20772.2z'%20p-id='3196'%3e%3c/path%3e%3cpath%20d='M688%20494.1c-0.6-5.9-1.5-11.7-2.6-17.5-1.2-5.8-2.6-11.5-4.3-17.2s-3.7-11.2-6-16.7-4.8-10.8-7.6-16-5.8-10.3-9.1-15.2c-3.3-4.9-6.8-9.6-10.6-14.2s-7.7-8.9-11.9-13.1-8.6-8.1-13.2-11.9c-4.6-3.7-9.3-7.3-14.3-10.5-4.9-3.3-10-6.3-15.2-9.1s-10.6-5.3-16-7.6c-5.5-2.3-11-4.2-16.7-6-5.7-1.7-11.4-3.1-17.2-4.3s-11.7-2-17.6-2.6c-5.9-0.6-11.8-0.9-17.7-0.9-5.9%200-11.8%200.3-17.7%200.9-5.9%200.6-11.7%201.4-17.6%202.6-5.8%201.2-11.5%202.6-17.2%204.3-5.7%201.7-11.2%203.7-16.7%206s-10.8%204.8-16%207.6c-5.2%202.8-10.3%205.8-15.2%209.1s-9.7%206.8-14.3%2010.5c-4.6%203.7-9%207.7-13.2%2011.9s-8.2%208.5-11.9%2013.1c-3.8%204.6-7.3%209.3-10.6%2014.2s-6.3%2010-9.1%2015.2c-2.8%205.2-5.3%2010.5-7.6%2016s-4.3%2011-6%2016.7-3.2%2011.4-4.3%2017.2c-1.2%205.8-2%2011.6-2.6%2017.5-0.6%205.9-0.9%2011.8-0.9%2017.7s0.3%2011.8%200.9%2017.7c0.6%205.9%201.4%2011.7%202.6%2017.5s2.6%2011.5%204.3%2017.2%203.7%2011.2%206%2016.7%204.8%2010.8%207.6%2016%205.8%2010.3%209.1%2015.2c3.3%204.9%206.8%209.6%2010.6%2014.2s7.7%208.9%2011.9%2013.1c4.2%204.2%208.6%208.1%2013.2%2011.9%204.6%203.7%209.3%207.3%2014.3%2010.5%204.9%203.3%2010%206.3%2015.2%209.1s10.6%205.3%2016%207.6c5.5%202.3%2011%204.2%2016.7%206%205.7%201.7%2011.4%203.1%2017.2%204.3%205.8%201.2%2011.7%202%2017.6%202.6%205.9%200.6%2011.8%200.9%2017.7%200.9%205.9%200%2011.8-0.3%2017.7-0.9%205.9-0.6%2011.7-1.4%2017.6-2.6%205.8-1.2%2011.5-2.6%2017.2-4.3s11.2-3.7%2016.7-6%2010.8-4.8%2016-7.6%2010.3-5.8%2015.2-9.1%209.7-6.8%2014.3-10.5%209-7.7%2013.2-11.9%208.2-8.5%2011.9-13.1c3.8-4.6%207.3-9.3%2010.6-14.2s6.3-10%209.1-15.2%205.3-10.5%207.6-16%204.3-11%206-16.7%203.2-11.4%204.3-17.2c1.2-5.8%202-11.6%202.6-17.5s0.9-11.8%200.9-17.7c0-5.9-0.3-11.8-0.9-17.7z%20m-65.4%2029.1c-0.4%203.7-1%207.4-1.7%2011.1s-1.6%207.3-2.7%2010.9-2.4%207.1-3.8%2010.6-3%206.9-4.8%2010.2c-1.8%203.4-3.7%206.6-5.8%209.7-2.1%203.1-4.3%206.1-6.7%209-2.4%202.9-4.9%205.6-7.6%208.3-2.7%202.7-5.5%205.2-8.4%207.6-2.9%202.4-6%204.6-9.1%206.7-3.1%202.1-6.4%204-9.7%205.8s-6.7%203.4-10.2%204.8c-3.4%201.4-7%202.7-10.6%203.8-3.7%201.1-7.3%202-11%202.7-3.7%200.8-7.4%201.3-11.2%201.7-3.8%200.4-7.5%200.6-11.3%200.6s-7.5-0.1-11.3-0.6c-3.8-0.4-7.5-1-11.2-1.7s-7.4-1.6-11-2.7c-3.6-1.1-7.1-2.4-10.6-3.8s-6.9-3-10.2-4.8c-3.3-1.8-6.6-3.7-9.7-5.8-3.2-2.1-6.2-4.3-9.1-6.7-2.9-2.4-5.7-4.9-8.4-7.6-2.7-2.6-5.2-5.4-7.6-8.3s-4.6-5.9-6.7-9c-2.1-3.2-4-6.4-5.8-9.7-1.7-3.3-3.4-6.7-4.8-10.2-1.4-3.5-2.7-7-3.8-10.6-1-3.6-2-7.2-2.7-10.9-0.8-3.6-1.3-7.4-1.7-11.1-0.4-3.7-0.6-7.4-0.6-11.2%200-3.7%200.2-7.5%200.6-11.2%200.4-3.7%201-7.4%201.7-11.1s1.6-7.3%202.7-10.9c1.1-3.6%202.4-7.1%203.8-10.6s3-6.9%204.8-10.2c1.8-3.4%203.7-6.6%205.8-9.7%202.1-3.1%204.3-6.1%206.7-9%202.4-2.9%204.9-5.6%207.6-8.3%202.7-2.7%205.5-5.2%208.4-7.6%202.9-2.4%206-4.6%209.1-6.7%203.1-2.1%206.4-4%209.7-5.8s6.7-3.4%2010.2-4.8c3.4-1.4%207-2.7%2010.6-3.8%203.7-1.1%207.3-2%2011-2.7%203.7-0.8%207.4-1.3%2011.2-1.7%203.8-0.4%207.5-0.6%2011.3-0.6s7.5%200.2%2011.3%200.6c3.8%200.4%207.5%201%2011.2%201.7s7.4%201.6%2011%202.7%207.1%202.4%2010.6%203.8%206.9%203%2010.2%204.8%206.6%203.7%209.7%205.8c3.2%202.1%206.2%204.3%209.1%206.7%202.9%202.4%205.7%204.9%208.4%207.6%202.7%202.6%205.2%205.4%207.6%208.3%202.4%202.9%204.6%205.9%206.7%209%202.1%203.2%204%206.4%205.8%209.7%201.7%203.3%203.4%206.7%204.8%2010.2%201.4%203.5%202.7%207%203.8%2010.6%201%203.6%202%207.2%202.7%2010.9%200.8%203.6%201.3%207.4%201.7%2011.1%200.4%203.7%200.6%207.4%200.6%2011.2%200%203.7-0.2%207.5-0.6%2011.2z'%20p-id='3197'%3e%3c/path%3e%3c/svg%3e", xs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1732166314161'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3353'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M954.1%20485.6C856.6%20281%20709.4%20178%20512%20178c-197.5%200-344.7%20103-442.1%20307.7-7.9%2016.6-7.9%2036.1%200%2052.8C167.3%20743%20314.6%20846%20512%20846c197.5%200%20344.6-103%20442.1-307.7%207.9-16.6%207.9-35.8%200-52.7z%20m-266.2%2044.1c-0.6%205.9-1.5%2011.7-2.6%2017.5-1.2%205.8-2.6%2011.5-4.3%2017.2s-3.7%2011.2-6%2016.7-4.8%2010.8-7.6%2016c-2.8%205.2-5.8%2010.3-9.1%2015.2-3.3%204.9-6.8%209.6-10.6%2014.2s-7.7%208.9-11.9%2013.1c-4.2%204.2-8.6%208.1-13.2%2011.9-4.6%203.7-9.3%207.3-14.3%2010.5-4.9%203.3-10%206.3-15.2%209.1-5.2%202.8-10.6%205.3-16%207.6-5.5%202.3-11%204.2-16.7%206-5.7%201.7-11.4%203.1-17.2%204.3-5.8%201.2-11.7%202-17.6%202.6-5.9%200.6-11.8%200.9-17.7%200.9-5.9%200-11.8-0.3-17.7-0.9-5.9-0.6-11.7-1.4-17.6-2.6-5.8-1.2-11.5-2.6-17.2-4.3-5.7-1.7-11.2-3.7-16.7-6s-10.8-4.8-16-7.6c-5.2-2.8-10.3-5.8-15.2-9.1-4.9-3.3-9.7-6.8-14.3-10.5-4.6-3.7-9-7.7-13.2-11.9-4.2-4.2-8.2-8.5-11.9-13.1-3.8-4.6-7.3-9.3-10.6-14.2-3.3-4.9-6.3-10-9.1-15.2-2.8-5.2-5.3-10.5-7.6-16s-4.3-11-6-16.7-3.2-11.4-4.3-17.2c-1.2-5.8-2-11.6-2.6-17.5-0.6-5.9-0.9-11.8-0.9-17.7%200-5.9%200.3-11.8%200.9-17.7%200.6-5.9%201.4-11.7%202.6-17.5%201.2-5.8%202.6-11.5%204.3-17.2%201.7-5.7%203.7-11.2%206-16.7s4.8-10.8%207.6-16c2.8-5.2%205.8-10.3%209.1-15.2%203.3-4.9%206.8-9.6%2010.6-14.2s7.7-8.9%2011.9-13.1c4.2-4.2%208.6-8.1%2013.2-11.9%204.6-3.7%209.3-7.3%2014.3-10.5%204.9-3.3%2010-6.3%2015.2-9.1%205.2-2.8%2010.6-5.3%2016-7.6%205.5-2.3%2011-4.2%2016.7-6%205.7-1.7%2011.4-3.1%2017.2-4.3%205.8-1.2%2011.7-2%2017.6-2.6%205.9-0.6%2011.8-0.9%2017.7-0.9%205.9%200%2011.8%200.3%2017.7%200.9%205.9%200.6%2011.7%201.4%2017.6%202.6%205.8%201.2%2011.5%202.6%2017.2%204.3%205.7%201.7%2011.2%203.7%2016.7%206s10.8%204.8%2016%207.6c5.2%202.8%2010.3%205.8%2015.2%209.1%204.9%203.3%209.7%206.8%2014.3%2010.5%204.6%203.7%209%207.7%2013.2%2011.9%204.2%204.2%208.2%208.5%2011.9%2013.1%203.8%204.6%207.3%209.3%2010.6%2014.2%203.3%204.9%206.3%2010%209.1%2015.2%202.8%205.2%205.3%2010.5%207.6%2016s4.3%2011%206%2016.7c1.7%205.7%203.2%2011.4%204.3%2017.2%201.2%205.8%202%2011.6%202.6%2017.5%200.6%205.9%200.9%2011.8%200.9%2017.7-0.1%205.9-0.3%2011.8-0.9%2017.7z'%20p-id='3354'%20fill='%231677FF'%3e%3c/path%3e%3cpath%20d='M623%20512c0%203.8-0.2%207.5-0.6%2011.2-0.4%203.7-0.9%207.5-1.7%2011.1-0.7%203.7-1.7%207.3-2.7%2010.9-1.1%203.6-2.4%207.1-3.8%2010.6s-3.1%206.9-4.8%2010.2c-1.8%203.3-3.7%206.5-5.8%209.7-2.1%203.1-4.3%206.1-6.7%209-2.4%202.9-4.9%205.7-7.6%208.3-2.7%202.7-5.5%205.2-8.4%207.6-2.9%202.4-5.9%204.6-9.1%206.7-3.1%202.1-6.4%204-9.7%205.8-3.3%201.8-6.7%203.4-10.2%204.8-3.5%201.4-7%202.7-10.6%203.8-3.6%201.1-7.3%202-11%202.7-3.7%200.7-7.4%201.3-11.2%201.7-3.8%200.4-7.5%200.6-11.3%200.6-3.8%200-7.5-0.2-11.3-0.6-3.8-0.4-7.5-0.9-11.2-1.7-3.7-0.7-7.3-1.6-11-2.7-3.6-1.1-7.2-2.4-10.6-3.8-3.5-1.4-6.9-3-10.2-4.8-3.3-1.8-6.6-3.7-9.7-5.8-3.1-2.1-6.2-4.3-9.1-6.7-2.9-2.4-5.7-4.9-8.4-7.6-2.7-2.7-5.2-5.4-7.6-8.3-2.4-2.9-4.6-5.9-6.7-9-2.1-3.1-4-6.3-5.8-9.7-1.8-3.3-3.4-6.7-4.8-10.2-1.4-3.5-2.7-7-3.8-10.6-1.1-3.6-2-7.2-2.7-10.9-0.7-3.7-1.3-7.4-1.7-11.1-0.4-3.7-0.6-7.5-0.6-11.2%200-3.8%200.2-7.5%200.6-11.2%200.4-3.7%200.9-7.5%201.7-11.1%200.7-3.7%201.7-7.3%202.7-10.9%201.1-3.6%202.4-7.1%203.8-10.6s3.1-6.9%204.8-10.2c1.8-3.3%203.7-6.5%205.8-9.7%202.1-3.1%204.3-6.1%206.7-9%202.4-2.9%204.9-5.7%207.6-8.3%202.7-2.7%205.5-5.2%208.4-7.6%202.9-2.4%205.9-4.6%209.1-6.7%203.1-2.1%206.4-4%209.7-5.8%203.3-1.8%206.7-3.4%2010.2-4.8%203.5-1.4%207-2.7%2010.6-3.8%203.6-1.1%207.3-2%2011-2.7%203.7-0.7%207.4-1.3%2011.2-1.7%203.8-0.4%207.5-0.6%2011.3-0.6%203.8%200%207.5%200.2%2011.3%200.6%203.8%200.4%207.5%200.9%2011.2%201.7%203.7%200.7%207.3%201.6%2011%202.7%203.6%201.1%207.2%202.4%2010.6%203.8%203.5%201.4%206.9%203%2010.2%204.8%203.3%201.8%206.6%203.7%209.7%205.8%203.1%202.1%206.2%204.3%209.1%206.7%202.9%202.4%205.7%204.9%208.4%207.6%202.7%202.7%205.2%205.4%207.6%208.3%202.4%202.9%204.6%205.9%206.7%209%202.1%203.1%204%206.3%205.8%209.7%201.8%203.3%203.4%206.7%204.8%2010.2%201.4%203.5%202.7%207%203.8%2010.6%201.1%203.6%202%207.2%202.7%2010.9%200.7%203.7%201.3%207.4%201.7%2011.1%200.4%203.7%200.6%207.4%200.6%2011.2z'%20p-id='3355'%20fill='%231677FF'%3e%3c/path%3e%3c/svg%3e", Zs = {
  6060. name: "LoginForm",
  6061. components: {
  6062. SVerify: ns
  6063. },
  6064. props: {
  6065. // 手机号登录 - 获取验证码时是否启用拼图验证
  6066. // captchaOpen: {
  6067. // type: Boolean,
  6068. // default: true
  6069. // },
  6070. showTenantry: {
  6071. type: Boolean,
  6072. default: !1
  6073. },
  6074. showAgreement: {
  6075. type: Boolean,
  6076. default: !1
  6077. },
  6078. showAutoLogin: {
  6079. type: Boolean,
  6080. default: !0
  6081. },
  6082. showOtherLogin: {
  6083. type: Boolean,
  6084. default: !1
  6085. }
  6086. },
  6087. data() {
  6088. let A = "clickWord";
  6089. var e = 0, w = 100, B = Math.floor(Math.random() * (w - e)) + e;
  6090. return B % 2 === 0 && (A = "blockPuzzle"), B % 2 === 1 && (A = "clickWord"), {
  6091. iconsFocus: {
  6092. tenantryCode: 1,
  6093. loginName: 1,
  6094. password: 1
  6095. },
  6096. // 密码记录数
  6097. verificationImage: null,
  6098. verificationCodeId: "",
  6099. loginTab: [],
  6100. otherLoginList: [],
  6101. QrCodeLogin: !1,
  6102. typeActive: 1,
  6103. showPassword: !1,
  6104. autoLogin: !1,
  6105. arguments: !1,
  6106. isLoginButtonDisabled: !1,
  6107. // 登录按钮是否禁用
  6108. deadline: 0,
  6109. // 倒计时时间
  6110. isCountdown: !1,
  6111. // 显示倒计时
  6112. loginConfig: {},
  6113. captchaType: A,
  6114. captchaCountdown: 0,
  6115. loginBtn: !1,
  6116. form: {
  6117. tenantryCode: "",
  6118. loginName: "",
  6119. password: "",
  6120. verificationCode: "",
  6121. prefix: "+86",
  6122. mobile: ""
  6123. },
  6124. rules: {
  6125. tenantryCode: [
  6126. {
  6127. required: !0,
  6128. message: this.$l("请输入租户编码"),
  6129. trigger: "blur"
  6130. }
  6131. ],
  6132. loginName: [
  6133. {
  6134. required: !0,
  6135. message: this.$l("请输入账户"),
  6136. trigger: "blur"
  6137. }
  6138. ],
  6139. password: [
  6140. {
  6141. required: !0,
  6142. message: this.$l("请输入密码"),
  6143. trigger: "blur"
  6144. }
  6145. ],
  6146. code: [
  6147. {
  6148. required: !0,
  6149. message: this.$l("请输入短信验证码"),
  6150. trigger: "blur"
  6151. }
  6152. ],
  6153. mobile: [
  6154. {
  6155. required: !0,
  6156. message: this.$l("请输入手机号"),
  6157. trigger: "blur"
  6158. },
  6159. { pattern: /^1[345678]\d{9}$/, message: this.$l("手机号格式不正确"), trigger: "blur" }
  6160. ]
  6161. }
  6162. };
  6163. },
  6164. computed: {
  6165. showPhoneLogin() {
  6166. return this.$utils.env.VITE_APP_LOGIN_PHONE;
  6167. },
  6168. showQRCodeLogin() {
  6169. return this.$utils.env.VITE_APP_LOGIN_QRCODE;
  6170. }
  6171. },
  6172. methods: {
  6173. renderIcon(A, e) {
  6174. return {
  6175. tenant: {
  6176. 1: new URL("../../static/img/login/tenant-icon-1.png", import.meta.url).href,
  6177. 2: new URL("../../static/img/login/tenant-icon-2.png", import.meta.url).href,
  6178. 3: new URL("../../static/img/login/tenant-icon-3.png", import.meta.url).href
  6179. },
  6180. user: {
  6181. 1: zs,
  6182. 2: Ps,
  6183. 3: cs
  6184. },
  6185. pass: {
  6186. 1: Ys,
  6187. 2: Qs,
  6188. 3: Ws
  6189. },
  6190. login: {
  6191. pcIconWhite: Hs,
  6192. qrCodeWhite: Ls
  6193. }
  6194. }[A][e];
  6195. },
  6196. handLogin() {
  6197. this.typeActive === 2 ? this.$refs.form.validateFields().then((A) => oA(this, null, function* () {
  6198. A.code && (A.operate = "0", (yield Fw(A)) ? this.handSubmit() : this.$message.error(this.$l("验证码错误/已过期")));
  6199. })).catch(() => {
  6200. this.$message.error(this.$l("验证码错误"));
  6201. }) : this.handSubmit();
  6202. },
  6203. handSubmit() {
  6204. this.$refs.form.validate().then((A) => {
  6205. this.loginBtn = !0;
  6206. const e = {
  6207. clientId: this.$utils.env.VITE_APP_CLIENT_ID
  6208. };
  6209. Object.keys(A).forEach((w) => {
  6210. e[w] = w === "verificationCode" ? A[w] : LD(A[w]);
  6211. }), e.verificationCodeId = this.verificationCodeId, Vw(e).then((w) => this.loginSuccess(w)).catch((w) => {
  6212. this.requestFailed(w);
  6213. }).finally(() => {
  6214. this.loginBtn = !1;
  6215. });
  6216. }).catch(() => {
  6217. let A = setTimeout(() => {
  6218. this.loginBtn = !1, clearTimeout(A);
  6219. }, 600);
  6220. });
  6221. },
  6222. // 获取验证码
  6223. handGetCaptchaCount() {
  6224. return oA(this, null, function* () {
  6225. yield this.$refs.form.validateFields("mobile").then((A) => {
  6226. A.mobile && this.$refs.verify.show();
  6227. });
  6228. });
  6229. },
  6230. /**
  6231. * 拼图验证成功 获取验证码
  6232. */
  6233. verifySuccess(A) {
  6234. this.form.verificationCode = A.captchaVerification;
  6235. },
  6236. verifySuccess1(A) {
  6237. this.form.verificationCode = A.captchaVerification, this.captchaCountdown = Date.now() + 1e3 * 60, jw({ mobile: this.form.mobile, operate: "0" }).then((e) => {
  6238. e === "send-success" ? (this.$message.success(this.$l("短信发送成功")), this.captchaCountdown = Date.now() + 1e3 * 60) : this.$message.error(this.$l("短信发送过于频繁,请稍后再试"));
  6239. });
  6240. },
  6241. loginSuccess(A) {
  6242. return oA(this, null, function* () {
  6243. try {
  6244. this.$utils.ls.set("token", A), this.$utils.ls.set("USER-TOKEN", A), this.verificationImage = null, this.verificationCodeId = "";
  6245. const e = window.sessionStorage.getItem("redirect_client_id");
  6246. if (e) {
  6247. const B = Xw(), { clients: g } = yield B.Info(), r = g.find((x) => x.clientId === e) || {};
  6248. if (r.redirectUri && r.redirectUri !== "/") {
  6249. this.authorizeUrl(r);
  6250. return;
  6251. }
  6252. }
  6253. const w = this.$utils.env.VITE_APP_DEFAULT_PATH;
  6254. this.$push(w);
  6255. } catch (e) {
  6256. console.log("loginSuccess:", e);
  6257. const w = this.$utils.env.VITE_APP_DEFAULT_PATH;
  6258. this.$push(w);
  6259. }
  6260. });
  6261. },
  6262. authorizeUrl(A) {
  6263. const e = (this.$utils.env.VITE_APP_BASE_URL || "/").replace(/\/+$/, ""), w = `${window.location.protocol}//${window.location.host}${e}/sso.html?client_id=${A.clientId}&scope=${A.scope}&redirect_uri=${encodeURIComponent(A.redirectUri)}`;
  6264. window.location.replace(w);
  6265. },
  6266. requestFailed(A) {
  6267. const e = JSON.parse(A.message);
  6268. if (e != null && e.lockUser) {
  6269. this.$message.error(e.message);
  6270. const w = e == null ? void 0 : e.lockUser, B = w != null && w.lockEndTime && (w != null && w.nowTime) ? w.lockEndTime - w.nowTime : 0;
  6271. B > 0 ? (this.isLoginButtonDisabled = !0, this.isCountdown = !0, this.deadline = Date.now() + B) : (this.isLoginButtonDisabled = !1, this.isCountdown = !1, this.deadline = 0), this.form.verificationCode = "", this.refreshVerificationCode();
  6272. } else {
  6273. let w = !1;
  6274. this.loginConfig && this.loginConfig.enabled && (!this.loginConfig.codeThreshold || this.loginConfig.codeThreshold === "0" ? w = !1 : w = e.failCount >= this.loginConfig.codeThreshold), w && (this.form.verificationCode = "", this.refreshVerificationCode());
  6275. }
  6276. },
  6277. // 获取图片验证码(网关:portal)
  6278. refreshVerificationCode() {
  6279. yw().then((A) => {
  6280. this.verificationImage = `data:image/gif;base64,${A.verificationImage}`, this.verificationCodeId = A.verificationCodeId;
  6281. });
  6282. },
  6283. init() {
  6284. this.loginTab = [
  6285. {
  6286. name: "PC",
  6287. key: 1,
  6288. icon: new URL("../../static/img/login/pc-s.png", import.meta.url).href,
  6289. sIcon: new URL("../../static/img/login/pc.png", import.meta.url).href
  6290. },
  6291. {
  6292. name: this.$l("二维码"),
  6293. key: 2,
  6294. icon: new URL("../../static/img/login/qr-code.png", import.meta.url).href,
  6295. sIcon: new URL("../../static/img/login/qr-code-s.png", import.meta.url).href
  6296. }
  6297. ], this.otherLoginList = [
  6298. {
  6299. key: "ali",
  6300. icon: "AlipayCircleOutlined"
  6301. },
  6302. {
  6303. key: "weChat",
  6304. icon: "WechatOutlined"
  6305. },
  6306. {
  6307. key: "weibo",
  6308. icon: "WeiboCircleOutlined"
  6309. },
  6310. {
  6311. key: "github",
  6312. icon: "GithubOutlined"
  6313. }
  6314. ], this.getLoginConfig();
  6315. },
  6316. // 登录策略
  6317. getLoginConfig() {
  6318. uw().then((A) => {
  6319. this.loginConfig = A || {};
  6320. });
  6321. },
  6322. handUpdatePassword() {
  6323. console.log("忘记密码");
  6324. },
  6325. onFinish() {
  6326. this.isLoginButtonDisabled = !1, this.isCountdown = !1, this.deadline = 0, this.refreshVerificationCode();
  6327. },
  6328. onFinishReset() {
  6329. this.captchaCountdown = 0;
  6330. },
  6331. formatterTime({ value: A }) {
  6332. console.log(A);
  6333. }
  6334. },
  6335. mounted() {
  6336. this.init();
  6337. }
  6338. }, bs = { class: "form-wrap" }, ls = ["src"], Gs = ["src"], ds = { class: "head" }, as = { class: "welcome" }, us = {
  6339. key: 0,
  6340. class: "form-main"
  6341. }, ys = {
  6342. key: 0,
  6343. class: "tab-item"
  6344. }, Xs = ["src"], js = ["src"], Vs = ["src"], Fs = { class: "verification-code-div" }, os = ["src", "title"], Ns = {
  6345. key: 2,
  6346. class: "tools"
  6347. }, ms = {
  6348. key: 3,
  6349. class: "other-login"
  6350. }, Js = { class: "left" }, ks = { class: "label" }, Ks = { class: "other-login-list" }, Es = ["src"], Is = { class: "right" }, ps = {
  6351. key: 0,
  6352. class: "tab-item"
  6353. }, Ts = { class: "between" }, Ss = { key: 0 }, Us = {
  6354. key: 0,
  6355. class: "agreement"
  6356. }, is = {
  6357. key: 1,
  6358. class: "form-main column-center"
  6359. }, qs = { class: "qr-title" }, hs = { class: "ICP" };
  6360. function Rs(A, e, w, B, g, r) {
  6361. const x = ow, P = qw, Y = Gg("s-verify"), D = Nw, C = mw, Q = CD, t = Rw, f = kw, v = Jw, c = $w, n = hw, H = iw;
  6362. return N(), I("div", bs, [
  6363. r.showQRCodeLogin ? (N(), I("div", {
  6364. key: 0,
  6365. class: "toggle-login",
  6366. onClick: e[0] || (e[0] = dA((s) => g.QrCodeLogin = !g.QrCodeLogin, ["stop"]))
  6367. })) : _("", !0),
  6368. r.showQRCodeLogin ? (N(), I("div", {
  6369. key: 1,
  6370. class: "toggle-icon-wrap",
  6371. onClick: e[1] || (e[1] = dA((s) => g.QrCodeLogin = !g.QrCodeLogin, ["stop"]))
  6372. }, [
  6373. g.QrCodeLogin ? (N(), I("img", {
  6374. key: 1,
  6375. class: "toggle-icon",
  6376. src: r.renderIcon("login", "qrCodeWhite")
  6377. }, null, 8, Gs)) : (N(), I("img", {
  6378. key: 0,
  6379. class: "toggle-icon",
  6380. src: r.renderIcon("login", "pcIconWhite")
  6381. }, null, 8, ls))
  6382. ])) : _("", !0),
  6383. m(H, {
  6384. model: g.form,
  6385. rules: g.rules,
  6386. layout: "vertical",
  6387. ref: "form"
  6388. }, {
  6389. default: S(() => [
  6390. F("div", ds, [
  6391. F("div", as, R(A.$l("欢迎使用")), 1)
  6392. ]),
  6393. g.QrCodeLogin ? (N(), I("div", is, [
  6394. F("div", qs, R(A.$l("请使用移动设备扫码登录")), 1),
  6395. e[27] || (e[27] = F("img", {
  6396. src: "",
  6397. class: "qr-code-image"
  6398. }, null, -1))
  6399. ])) : (N(), I("div", us, [
  6400. m(n, {
  6401. activeKey: g.typeActive,
  6402. "onUpdate:activeKey": e[24] || (e[24] = (s) => g.typeActive = s)
  6403. }, {
  6404. default: S(() => [
  6405. (N(), CA(t, {
  6406. key: 1,
  6407. tab: A.$l("账户密码登录")
  6408. }, {
  6409. default: S(() => [
  6410. g.typeActive === 1 ? (N(), I("div", ys, [
  6411. w.showTenantry ? (N(), CA(P, {
  6412. key: 0,
  6413. label: " ",
  6414. colon: !1,
  6415. name: "tenantryCode"
  6416. }, {
  6417. default: S(() => [
  6418. m(x, {
  6419. value: g.form.tenantryCode,
  6420. "onUpdate:value": e[2] || (e[2] = (s) => g.form.tenantryCode = s),
  6421. valueModifiers: { trim: !0 },
  6422. placeholder: A.$l("租户编码"),
  6423. style: { width: "100%" },
  6424. onFocus: e[3] || (e[3] = (s) => g.iconsFocus.tenantryCode = 2),
  6425. onBlur: e[4] || (e[4] = (s) => g.iconsFocus.tenantryCode = g.form.tenantryCode ? 1 : 3),
  6426. onInput: e[5] || (e[5] = (s) => g.iconsFocus.tenantryCode = g.form.tenantryCode ? 2 : 3),
  6427. allowClear: !0,
  6428. size: "large"
  6429. }, {
  6430. prefix: S(() => [
  6431. F("img", {
  6432. class: "prefix-icon",
  6433. src: r.renderIcon("tenant", g.iconsFocus.tenantryCode)
  6434. }, null, 8, Xs)
  6435. ]),
  6436. _: 1
  6437. }, 8, ["value", "placeholder"])
  6438. ]),
  6439. _: 1
  6440. })) : _("", !0),
  6441. m(P, {
  6442. label: " ",
  6443. colon: !1,
  6444. name: "loginName"
  6445. }, {
  6446. default: S(() => [
  6447. m(x, {
  6448. value: g.form.loginName,
  6449. "onUpdate:value": e[6] || (e[6] = (s) => g.form.loginName = s),
  6450. placeholder: A.$l("账号"),
  6451. style: { width: "100%" },
  6452. onFocus: e[7] || (e[7] = (s) => g.iconsFocus.loginName = 2),
  6453. onBlur: e[8] || (e[8] = (s) => g.iconsFocus.loginName = g.form.loginName ? 1 : 3),
  6454. onInput: e[9] || (e[9] = (s) => g.iconsFocus.loginName = g.form.loginName ? 2 : 3),
  6455. allowClear: !0,
  6456. size: "large"
  6457. }, {
  6458. prefix: S(() => [
  6459. F("img", {
  6460. class: "prefix-icon",
  6461. src: r.renderIcon("user", g.iconsFocus.loginName)
  6462. }, null, 8, js)
  6463. ]),
  6464. _: 1
  6465. }, 8, ["value", "placeholder"])
  6466. ]),
  6467. _: 1
  6468. }),
  6469. m(P, {
  6470. label: " ",
  6471. colon: !1,
  6472. name: "password"
  6473. }, {
  6474. default: S(() => [
  6475. m(x, {
  6476. value: g.form.password,
  6477. "onUpdate:value": e[12] || (e[12] = (s) => g.form.password = s),
  6478. placeholder: A.$l("密码"),
  6479. style: { width: "100%" },
  6480. type: g.showPassword ? "text" : "password",
  6481. onFocus: e[13] || (e[13] = (s) => g.iconsFocus.password = 2),
  6482. onBlur: e[14] || (e[14] = (s) => g.iconsFocus.password = g.form.password ? 1 : 3),
  6483. onInput: e[15] || (e[15] = (s) => g.iconsFocus.password = g.form.password ? 2 : 3),
  6484. allowClear: !0,
  6485. size: "large"
  6486. }, {
  6487. prefix: S(() => [
  6488. F("img", {
  6489. class: "prefix-icon",
  6490. src: r.renderIcon("pass", g.iconsFocus.password)
  6491. }, null, 8, Vs)
  6492. ]),
  6493. suffix: S(() => [
  6494. g.showPassword ? (N(), I("img", {
  6495. key: 1,
  6496. src: xs,
  6497. class: "eye",
  6498. onClick: e[11] || (e[11] = dA((s) => g.showPassword = !g.showPassword, ["stop"]))
  6499. })) : (N(), I("img", {
  6500. key: 0,
  6501. src: Os,
  6502. class: "eye",
  6503. onClick: e[10] || (e[10] = dA((s) => g.showPassword = !g.showPassword, ["stop"]))
  6504. }))
  6505. ]),
  6506. _: 1
  6507. }, 8, ["value", "placeholder", "type"])
  6508. ]),
  6509. _: 1
  6510. }),
  6511. m(Y, {
  6512. onSuccess: r.verifySuccess,
  6513. mode: "pop",
  6514. captchaType: g.captchaType,
  6515. imgSize: { width: "330px", height: "155px" },
  6516. ref: "verify1"
  6517. }, null, 8, ["onSuccess", "captchaType"]),
  6518. g.verificationImage ? (N(), CA(P, {
  6519. key: 1,
  6520. class: "verification-item"
  6521. }, {
  6522. default: S(() => [
  6523. F("div", Fs, [
  6524. m(x, {
  6525. value: g.form.verificationCode,
  6526. "onUpdate:value": e[16] || (e[16] = (s) => g.form.verificationCode = s),
  6527. size: "large",
  6528. placeholder: A.$l("请输入验证码"),
  6529. allowClear: !0
  6530. }, null, 8, ["value", "placeholder"]),
  6531. F("img", {
  6532. class: "verification-img",
  6533. src: g.verificationImage,
  6534. title: A.$l("点击刷新验证码"),
  6535. onClick: e[17] || (e[17] = (...s) => r.refreshVerificationCode && r.refreshVerificationCode(...s))
  6536. }, null, 8, os)
  6537. ])
  6538. ]),
  6539. _: 1
  6540. })) : _("", !0),
  6541. w.showAutoLogin ? (N(), I("div", Ns, [
  6542. m(D, {
  6543. checked: g.autoLogin,
  6544. "onUpdate:checked": e[18] || (e[18] = (s) => g.autoLogin = s)
  6545. }, {
  6546. default: S(() => [
  6547. F("span", null, R(A.$l("自动登录")), 1)
  6548. ]),
  6549. _: 1
  6550. }, 8, ["checked"]),
  6551. m(C, {
  6552. class: "update-password",
  6553. type: "link",
  6554. onClick: r.handUpdatePassword
  6555. }, {
  6556. default: S(() => [
  6557. WA(R(A.$l("忘记密码?")), 1)
  6558. ]),
  6559. _: 1
  6560. }, 8, ["onClick"])
  6561. ])) : _("", !0),
  6562. m(C, {
  6563. class: "login-btn",
  6564. size: "large",
  6565. type: "primary",
  6566. disabled: g.isLoginButtonDisabled,
  6567. onClick: r.handLogin
  6568. }, {
  6569. default: S(() => [
  6570. g.isCountdown ? _("", !0) : (N(), I("span", {
  6571. key: 0,
  6572. onClick: e[19] || (e[19] = dA((...s) => r.handLogin && r.handLogin(...s), ["stop"]))
  6573. }, R(A.$l("登录")), 1)),
  6574. g.isCountdown ? (N(), CA(Q, {
  6575. key: 1,
  6576. format: "ss",
  6577. size: "mini",
  6578. value: g.deadline,
  6579. onFinish: r.onFinish
  6580. }, null, 8, ["value", "onFinish"])) : _("", !0)
  6581. ]),
  6582. _: 1
  6583. }, 8, ["disabled", "onClick"]),
  6584. w.showOtherLogin ? (N(), I("div", ms, [
  6585. F("div", Js, [
  6586. F("div", ks, R(A.$l("其他方式登录")), 1),
  6587. F("div", Ks, [
  6588. (N(!0), I(JB, null, kB(g.otherLoginList, (s) => (N(), I("div", {
  6589. class: "item",
  6590. key: s.key
  6591. }, [
  6592. s.icon ? (N(), CA(KB(s.icon), {
  6593. key: 0,
  6594. class: "icon-font"
  6595. })) : (N(), I("img", {
  6596. key: 1,
  6597. src: s.src,
  6598. class: "icon"
  6599. }, null, 8, Es))
  6600. ]))), 128))
  6601. ])
  6602. ]),
  6603. F("div", Is, [
  6604. m(C, {
  6605. class: "resign-account",
  6606. type: "link",
  6607. onClick: r.handUpdatePassword
  6608. }, {
  6609. default: S(() => [
  6610. WA(R(A.$l("账户注册")), 1)
  6611. ]),
  6612. _: 1
  6613. }, 8, ["onClick"])
  6614. ])
  6615. ])) : _("", !0)
  6616. ])) : _("", !0)
  6617. ]),
  6618. _: 1
  6619. }, 8, ["tab"])),
  6620. r.showPhoneLogin ? (N(), CA(t, {
  6621. key: 2,
  6622. tab: A.$l("手机号码登录")
  6623. }, {
  6624. default: S(() => [
  6625. g.typeActive === 2 ? (N(), I("div", ps, [
  6626. m(P, {
  6627. label: " ",
  6628. colon: !1,
  6629. name: "mobile"
  6630. }, {
  6631. default: S(() => [
  6632. m(c, {
  6633. style: { width: "100%" },
  6634. value: g.form.mobile,
  6635. "onUpdate:value": e[21] || (e[21] = (s) => g.form.mobile = s),
  6636. controls: !1,
  6637. "has-feedback": "",
  6638. size: "large",
  6639. placeholder: A.$l("手机号")
  6640. }, {
  6641. addonBefore: S(() => [
  6642. m(v, {
  6643. value: g.form.prefix,
  6644. "onUpdate:value": e[20] || (e[20] = (s) => g.form.prefix = s),
  6645. style: { width: "80px" }
  6646. }, {
  6647. default: S(() => [
  6648. m(f, { value: "+86" }, {
  6649. default: S(() => [...e[26] || (e[26] = [
  6650. WA("+86", -1)
  6651. ])]),
  6652. _: 1
  6653. })
  6654. ]),
  6655. _: 1
  6656. }, 8, ["value"])
  6657. ]),
  6658. _: 1
  6659. }, 8, ["value", "placeholder"])
  6660. ]),
  6661. _: 1
  6662. }),
  6663. m(P, {
  6664. label: " ",
  6665. colon: !1,
  6666. name: "code"
  6667. }, {
  6668. default: S(() => [
  6669. F("div", Ts, [
  6670. m(c, {
  6671. controls: !1,
  6672. value: g.form.code,
  6673. "onUpdate:value": e[22] || (e[22] = (s) => g.form.code = s),
  6674. placeholder: A.$l("短息验证码"),
  6675. style: { width: "100%" },
  6676. size: "large",
  6677. allowClear: !0
  6678. }, null, 8, ["value", "placeholder"]),
  6679. m(C, { class: "valid-code" }, {
  6680. default: S(() => [
  6681. g.captchaCountdown <= 0 ? (N(), I("span", {
  6682. key: 0,
  6683. onClick: e[23] || (e[23] = (...s) => r.handGetCaptchaCount && r.handGetCaptchaCount(...s))
  6684. }, R(A.$l("获取验证码")), 1)) : (N(), CA(Q, {
  6685. key: 1,
  6686. size: "mini",
  6687. format: "ss",
  6688. value: g.captchaCountdown,
  6689. onFinish: r.onFinishReset
  6690. }, null, 8, ["value", "onFinish"]))
  6691. ]),
  6692. _: 1
  6693. })
  6694. ])
  6695. ]),
  6696. _: 1
  6697. }),
  6698. m(Y, {
  6699. onSuccess: r.verifySuccess1,
  6700. mode: "pop",
  6701. captchaType: g.captchaType,
  6702. imgSize: { width: "330px", height: "155px" },
  6703. ref: "verify"
  6704. }, null, 8, ["onSuccess", "captchaType"]),
  6705. m(C, {
  6706. class: "login-btn",
  6707. size: "large",
  6708. type: "primary",
  6709. disabled: g.isLoginButtonDisabled,
  6710. onClick: r.handLogin
  6711. }, {
  6712. default: S(() => [
  6713. g.isCountdown ? _("", !0) : (N(), I("span", Ss, R(A.$l("登录")), 1)),
  6714. g.isCountdown ? (N(), CA(Q, {
  6715. key: 1,
  6716. format: "ss",
  6717. size: "mini",
  6718. value: g.deadline,
  6719. onFinish: r.onFinish
  6720. }, null, 8, ["value", "onFinish"])) : _("", !0)
  6721. ]),
  6722. _: 1
  6723. }, 8, ["disabled", "onClick"])
  6724. ])) : _("", !0)
  6725. ]),
  6726. _: 1
  6727. }, 8, ["tab"])) : _("", !0)
  6728. ]),
  6729. _: 1
  6730. }, 8, ["activeKey"]),
  6731. w.showAgreement ? (N(), I("div", Us, [
  6732. m(D, {
  6733. checked: g.arguments,
  6734. "onUpdate:checked": e[25] || (e[25] = (s) => g.arguments = s)
  6735. }, {
  6736. default: S(() => [
  6737. F("span", null, R(A.$l("我已阅读同意")), 1)
  6738. ]),
  6739. _: 1
  6740. }, 8, ["checked"]),
  6741. m(C, {
  6742. class: "link-btn",
  6743. type: "link",
  6744. onClick: r.handUpdatePassword
  6745. }, {
  6746. default: S(() => [
  6747. WA(R(A.$l("《隐私政策》")), 1)
  6748. ]),
  6749. _: 1
  6750. }, 8, ["onClick"]),
  6751. F("span", null, R(A.$l("和")), 1),
  6752. m(C, {
  6753. class: "link-btn",
  6754. type: "link",
  6755. onClick: r.handUpdatePassword
  6756. }, {
  6757. default: S(() => [
  6758. WA(R(A.$l("《服务协议》")), 1)
  6759. ]),
  6760. _: 1
  6761. }, 8, ["onClick"])
  6762. ])) : _("", !0)
  6763. ]))
  6764. ]),
  6765. _: 1
  6766. }, 8, ["model", "rules"]),
  6767. F("div", hs, R(A.$utils.env.VITE_APP_CASE_NAME), 1)
  6768. ]);
  6769. }
  6770. const _s = /* @__PURE__ */ XA(Zs, [["render", Rs], ["__scopeId", "data-v-fa650ef3"]]), $s = new URL("../img/inline-dfddf18de1.png", import.meta.url).href, A7 = new URL("../img/inline-529cdf6a8f.png", import.meta.url).href, g7 = new URL("../img/inline-0da6ef80f4.png", import.meta.url).href, B7 = {
  6771. name: "LoginPage",
  6772. components: {
  6773. LoginForm: _s
  6774. },
  6775. data() {
  6776. return {
  6777. spinning: !1,
  6778. sysName: "",
  6779. backgroundImg: "",
  6780. logo: "",
  6781. passwordAttribute: {},
  6782. // 表单动态参数对象
  6783. isLoginButtonDisabled: !1,
  6784. // 登录按钮是否禁用
  6785. deadline: 0,
  6786. // 倒计时时间
  6787. isCountdown: !1,
  6788. // 显示倒计时
  6789. loginTheme: "1"
  6790. };
  6791. },
  6792. mounted() {
  6793. this.loginTheme = this.$utils.env.VITE_APP_LOGIN_PATH_THEME, this.spinning = !0, this.spinning = !1, this.getAppearanceConfig();
  6794. },
  6795. methods: {
  6796. handSwitchLanguage() {
  6797. },
  6798. requestFailed(A) {
  6799. this.$notification.error({
  6800. key: "only-you",
  6801. message: "Error",
  6802. description: ((A.response || {}).data || {}).message || this.$l("登录失败"),
  6803. duration: 4
  6804. });
  6805. },
  6806. getAppearanceConfig() {
  6807. this.logo = Ew, this.loginTheme == 1 ? this.backgroundImg = $s : this.loginTheme == 2 ? this.backgroundImg = A7 : this.loginTheme == 3 && (this.backgroundImg = g7), this.sysName = window.$l("统一数据平台 | 管理系统");
  6808. const A = this.$utils.ls.get("systemIcons");
  6809. A ? this.applySystemIcon(A) : Iw().then((e) => {
  6810. this.$utils.ls.set("systemIcons", e), this.applySystemIcon(e);
  6811. });
  6812. },
  6813. // 应用外观配置:登录页 logo、页签 favicon(已登录后的首页 logo/favicon 由 BasicLayout 处理)
  6814. applySystemIcon(A) {
  6815. A && (A.loginPageLogoUrl && (this.logo = A.loginPageLogoUrl), A.faviconUrl && this.$utils.setFavicon(A.faviconUrl));
  6816. }
  6817. }
  6818. }, w7 = { class: "login-page" }, D7 = {
  6819. key: 0,
  6820. class: "container-between"
  6821. }, s7 = { class: "cover" }, e7 = { class: "logo-wrap" }, t7 = ["src"], C7 = { class: "desc" }, M7 = ["src"], v7 = { class: "form-content" }, r7 = ["src"], f7 = ["src"], n7 = { class: "form-content" }, z7 = { class: "language-check" };
  6822. function P7(A, e, w, B, g, r) {
  6823. const x = Gg("LoginForm"), P = Gg("s-toggle-language"), Y = Kw;
  6824. return N(), CA(Y, { spinning: g.spinning }, {
  6825. default: S(() => [
  6826. F("div", w7, [
  6827. g.loginTheme === "1" ? (N(), I("div", D7, [
  6828. F("div", s7, [
  6829. F("div", e7, [
  6830. F("img", {
  6831. src: g.logo,
  6832. class: "logo"
  6833. }, null, 8, t7),
  6834. F("div", C7, R(g.sysName), 1)
  6835. ]),
  6836. F("img", {
  6837. src: g.backgroundImg,
  6838. class: "left-cover"
  6839. }, null, 8, M7)
  6840. ]),
  6841. F("div", v7, [
  6842. m(x)
  6843. ])
  6844. ])) : _("", !0),
  6845. g.loginTheme !== "1" ? (N(), I("div", {
  6846. key: 1,
  6847. class: yA(
  6848. g.loginTheme === "2" ? "container-left" : g.loginTheme === "3" ? "container-center" : ""
  6849. )
  6850. }, [
  6851. F("img", {
  6852. src: g.backgroundImg,
  6853. class: "bg-cover"
  6854. }, null, 8, r7),
  6855. F("img", {
  6856. src: g.logo,
  6857. class: "logo"
  6858. }, null, 8, f7),
  6859. F("div", n7, [
  6860. m(x)
  6861. ])
  6862. ], 2)) : _("", !0),
  6863. F("div", z7, [
  6864. m(P, { blockType: "dropdown" })
  6865. ])
  6866. ])
  6867. ]),
  6868. _: 1
  6869. }, 8, ["spinning"]);
  6870. }
  6871. const x7 = /* @__PURE__ */ XA(B7, [["render", P7], ["__scopeId", "data-v-41f95dd0"]]);
  6872. export {
  6873. x7 as default
  6874. };