| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877 |
- var oA = (A, e, w) => new Promise((B, g) => {
- var r = (Y) => {
- try {
- P(w.next(Y));
- } catch (D) {
- g(D);
- }
- }, x = (Y) => {
- try {
- P(w.throw(Y));
- } catch (D) {
- g(D);
- }
- }, P = (Y) => Y.done ? B(Y.value) : Promise.resolve(Y.value).then(r, x);
- P((w = w.apply(A, e)).next());
- });
- import { g as Hw, m as Lw, d as MA, r as Ow, u as xw, _ as mA, i as VB, ax as Zw, dd as pA, f as bw, av as lw, aw as FB, o as Gw, ck as k, de as dw, cl as aw, n as XA, df as oB, dg as NB, dh as uw, di as yw, ad as Xw, dj as jw, dk as Vw, dl as Fw, I as ow, d7 as Nw, B as mw, a6 as Jw, a7 as kw, ao as Kw, dm as Ew, dn as Iw } from "./index2.js";
- 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";
- import { F as iw, _ as qw } from "./index4.js";
- import { T as hw, _ as Rw } from "./index11.js";
- import { S as _w } from "./Skeleton.js";
- import { _ as $w } from "./index8.js";
- const EB = (A) => {
- const {
- value: e,
- formatter: w,
- precision: B,
- decimalSeparator: g,
- groupSeparator: r = "",
- prefixCls: x
- } = A;
- let P;
- if (typeof w == "function")
- P = w({
- value: e
- });
- else {
- const Y = String(e), D = Y.match(/^(-?)(\d*)(\.(\d+))?$/);
- if (!D)
- P = Y;
- else {
- const C = D[1];
- let Q = D[2] || "0", t = D[4] || "";
- 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", {
- key: "int",
- class: `${x}-content-value-int`
- }, [C, Q]), t && m("span", {
- key: "decimal",
- class: `${x}-content-value-decimal`
- }, [t])];
- }
- }
- return m("span", {
- class: `${x}-content-value`
- }, [P]);
- };
- EB.displayName = "StatisticNumber";
- const AD = (A) => {
- const {
- componentCls: e,
- marginXXS: w,
- padding: B,
- colorTextDescription: g,
- statisticTitleFontSize: r,
- colorTextHeading: x,
- statisticContentFontSize: P,
- statisticFontFamily: Y
- } = A;
- return {
- [`${e}`]: MA(MA({}, Ow(A)), {
- [`${e}-title`]: {
- marginBottom: w,
- color: g,
- fontSize: r
- },
- [`${e}-skeleton`]: {
- paddingTop: B
- },
- [`${e}-content`]: {
- color: x,
- fontSize: P,
- fontFamily: Y,
- [`${e}-content-value`]: {
- display: "inline-block",
- direction: "ltr"
- },
- [`${e}-content-prefix, ${e}-content-suffix`]: {
- display: "inline-block"
- },
- [`${e}-content-prefix`]: {
- marginInlineEnd: w
- },
- [`${e}-content-suffix`]: {
- marginInlineStart: w
- }
- }
- })
- };
- }, gD = Hw("Statistic", (A) => {
- const {
- fontSizeHeading3: e,
- fontSize: w,
- fontFamily: B
- } = A, g = Lw(A, {
- statisticTitleFontSize: w,
- statisticContentFontSize: e,
- statisticFontFamily: B
- });
- return [AD(g)];
- }), IB = () => ({
- prefixCls: String,
- decimalSeparator: String,
- groupSeparator: String,
- format: String,
- value: FB([Number, String, Object]),
- valueStyle: {
- type: Object,
- default: void 0
- },
- valueRender: lw(),
- formatter: bw(),
- precision: Number,
- prefix: pA(),
- suffix: pA(),
- title: pA(),
- loading: Zw()
- }), fA = mB({
- compatConfig: {
- MODE: 3
- },
- name: "AStatistic",
- inheritAttrs: !1,
- props: VB(IB(), {
- decimalSeparator: ".",
- groupSeparator: ",",
- loading: !1
- }),
- slots: Object,
- setup(A, e) {
- let {
- slots: w,
- attrs: B
- } = e;
- const {
- prefixCls: g,
- direction: r
- } = xw("statistic", A), [x, P] = gD(g);
- return () => {
- var Y, D, C, Q, t, f, v;
- const {
- value: c = 0,
- valueStyle: n,
- valueRender: H
- } = 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;
- let Z = m(EB, mA({
- "data-for-update": Date.now()
- }, MA(MA({}, A), {
- prefixCls: s,
- value: c,
- formatter: L
- })), null);
- return H && (Z = H(Z)), x(m("div", mA(mA({}, B), {}, {
- class: [s, {
- [`${s}-rtl`]: r.value === "rtl"
- }, B.class, P.value]
- }), [M && m("div", {
- class: `${s}-title`
- }, [M]), m(_w, {
- paragraph: !1,
- loading: A.loading
- }, {
- default: () => [m("div", {
- style: n,
- class: `${s}-content`
- }, [z && m("span", {
- class: `${s}-content-prefix`
- }, [z]), Z, O && m("span", {
- class: `${s}-content-suffix`
- }, [O])])]
- })]));
- };
- }
- }), BD = [
- ["Y", 1e3 * 60 * 60 * 24 * 365],
- ["M", 1e3 * 60 * 60 * 24 * 30],
- ["D", 1e3 * 60 * 60 * 24],
- ["H", 1e3 * 60 * 60],
- ["m", 1e3 * 60],
- ["s", 1e3],
- ["S", 1]
- // million seconds
- ];
- function wD(A, e) {
- let w = A;
- const B = /\[[^\]]*]/g, g = (e.match(B) || []).map((Y) => Y.slice(1, -1)), r = e.replace(B, "[]"), x = BD.reduce((Y, D) => {
- let [C, Q] = D;
- if (Y.includes(C)) {
- const t = Math.floor(w / Q);
- return w -= t * Q, Y.replace(new RegExp(`${C}+`, "g"), (f) => {
- const v = f.length;
- return t.toString().padStart(v, "0");
- });
- }
- return Y;
- }, r);
- let P = 0;
- return x.replace(B, () => {
- const Y = g[P];
- return P += 1, Y;
- });
- }
- function DD(A, e) {
- const {
- format: w = ""
- } = e, B = new Date(A).getTime(), g = Date.now(), r = Math.max(B - g, 0);
- return wD(r, w);
- }
- const sD = 1e3 / 30;
- function TA(A) {
- return new Date(A).getTime();
- }
- const eD = () => MA(MA({}, IB()), {
- value: FB([Number, String, Object]),
- format: String,
- onFinish: Function,
- onChange: Function
- }), tD = mB({
- compatConfig: {
- MODE: 3
- },
- name: "AStatisticCountdown",
- props: VB(eD(), {
- format: "HH:mm:ss"
- }),
- // emits: ['finish', 'change'],
- setup(A, e) {
- let {
- emit: w,
- slots: B
- } = e;
- const g = ig(), r = ig(), x = () => {
- const {
- value: Q
- } = A;
- TA(Q) >= Date.now() ? P() : Y();
- }, P = () => {
- if (g.value) return;
- const Q = TA(A.value);
- g.value = setInterval(() => {
- r.value.$forceUpdate(), Q > Date.now() && w("change", Q - Date.now()), x();
- }, sD);
- }, Y = () => {
- const {
- value: Q
- } = A;
- g.value && (clearInterval(g.value), g.value = void 0, TA(Q) < Date.now() && w("finish"));
- }, D = (Q) => {
- let {
- value: t,
- config: f
- } = Q;
- const {
- format: v
- } = A;
- return DD(t, MA(MA({}, f), {
- format: v
- }));
- }, C = (Q) => Q;
- return pw(() => {
- x();
- }), Tw(() => {
- x();
- }), Sw(() => {
- Y();
- }), () => {
- const Q = A.value;
- return m(fA, mA({
- ref: r
- }, MA(MA({}, Gw(A, ["onFinish", "onChange"])), {
- value: Q,
- valueRender: C,
- formatter: D
- })), B);
- };
- }
- });
- fA.Countdown = tD;
- fA.install = function(A) {
- return A.component(fA.name, fA), A.component(fA.Countdown.name, fA.Countdown), A;
- };
- 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) => {
- let e = {};
- return A.forEach((w, B) => e[w] = B), e;
- })(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) => {
- let e, w, B, g, r = "";
- const x = A.length % 3;
- for (let P = 0; P < A.length; ) {
- if ((w = A.charCodeAt(P++)) > 255 || (B = A.charCodeAt(P++)) > 255 || (g = A.charCodeAt(P++)) > 255)
- throw new TypeError("invalid character found");
- e = w << 16 | B << 8 | g, r += uA[e >> 18 & 63] + uA[e >> 12 & 63] + uA[e >> 6 & 63] + uA[e & 63];
- }
- return x ? r.slice(0, x - 3) + "===".substring(x) : r;
- }, Xg = typeof btoa == "function" ? (A) => btoa(A) : UB, dg = typeof Uint8Array.prototype.toBase64 == "function" ? (A) => A.toBase64() : (A) => {
- let w = [];
- for (let B = 0, g = A.length; B < g; B += 4096)
- w.push(AA.apply(null, A.subarray(B, B + 4096)));
- return Xg(w.join(""));
- }, JA = (A, e = !1) => e ? TB(dg(A)) : dg(A), nD = (A) => {
- if (A.length < 2) {
- var e = A.charCodeAt(0);
- 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);
- } else {
- var e = 65536 + (A.charCodeAt(0) - 55296) * 1024 + (A.charCodeAt(1) - 56320);
- return AA(240 | e >>> 18 & 7) + AA(128 | e >>> 12 & 63) + AA(128 | e >>> 6 & 63) + AA(128 | e & 63);
- }
- }, 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) => {
- switch (A.length) {
- case 4:
- var e = (7 & A.charCodeAt(0)) << 18 | (63 & A.charCodeAt(1)) << 12 | (63 & A.charCodeAt(2)) << 6 | 63 & A.charCodeAt(3), w = e - 65536;
- return AA((w >>> 10) + 55296) + AA((w & 1023) + 56320);
- case 3:
- return AA((15 & A.charCodeAt(0)) << 12 | (63 & A.charCodeAt(1)) << 6 | 63 & A.charCodeAt(2));
- default:
- return AA((31 & A.charCodeAt(0)) << 6 | 63 & A.charCodeAt(1));
- }
- }, qB = (A) => A.replace(PD, cD), hB = (A) => {
- if (A = A.replace(/\s+/g, ""), !rD.test(A))
- throw new TypeError("malformed base64.");
- A += "==".slice(2 - (A.length & 3));
- let e, w, B, g = [];
- for (let r = 0; r < A.length; )
- 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));
- return g.join("");
- }, 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) => {
- if (typeof A != "string")
- return !1;
- const e = A.replace(/\s+/g, "").replace(/={0,2}$/, "");
- return !/[^\s0-9a-zA-Z\+/]/.test(e) || !/[^\s0-9a-zA-Z\-_]/.test(e);
- }, Aw = (A) => ({
- value: A,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }), gw = function() {
- const A = (e, w) => Object.defineProperty(String.prototype, e, Aw(w));
- A("fromBase64", function() {
- return ag(this);
- }), A("toBase64", function(e) {
- return HA(this, e);
- }), A("toBase64URI", function() {
- return HA(this, !0);
- }), A("toBase64URL", function() {
- return HA(this, !0);
- }), A("toUint8Array", function() {
- return _B(this);
- });
- }, Bw = function() {
- const A = (e, w) => Object.defineProperty(Uint8Array.prototype, e, Aw(w));
- A("toBase64", function(e) {
- return JA(this, e);
- }), A("toBase64URI", function() {
- return JA(this, !0);
- }), A("toBase64URL", function() {
- return JA(this, !0);
- });
- }, WD = () => {
- gw(), Bw();
- }, HD = {
- version: pB,
- VERSION: MD,
- atob: jg,
- atobPolyfill: hB,
- btoa: Xg,
- btoaPolyfill: UB,
- fromBase64: ag,
- toBase64: HA,
- encode: HA,
- encodeURI: _g,
- encodeURL: _g,
- utob: iB,
- btou: qB,
- decode: ag,
- isValid: QD,
- fromUint8Array: JA,
- toUint8Array: _B,
- extendString: gw,
- extendUint8Array: Bw,
- extendBuiltins: WD
- };
- function LD(A = "") {
- return A == null ? "" : HD.encode(String(A));
- }
- var ww = { exports: {} };
- function OD(A) {
- 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.');
- }
- var SA = { exports: {} }, $g;
- function E() {
- return $g || ($g = 1, function(A, e) {
- (function(w, B) {
- A.exports = B();
- })(k, function() {
- var w = w || function(B, g) {
- var r;
- 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")
- try {
- r = dw;
- } catch (s) {
- }
- var x = function() {
- if (r) {
- if (typeof r.getRandomValues == "function")
- try {
- return r.getRandomValues(new Uint32Array(1))[0];
- } catch (s) {
- }
- if (typeof r.randomBytes == "function")
- try {
- return r.randomBytes(4).readInt32LE();
- } catch (s) {
- }
- }
- throw new Error("Native crypto module could not be used to get secure random number.");
- }, P = Object.create || /* @__PURE__ */ function() {
- function s() {
- }
- return function(M) {
- var z;
- return s.prototype = M, z = new s(), s.prototype = null, z;
- };
- }(), Y = {}, D = Y.lib = {}, C = D.Base = /* @__PURE__ */ function() {
- return {
- /**
- * Creates a new object that inherits from this object.
- *
- * @param {Object} overrides Properties to copy into the new object.
- *
- * @return {Object} The new object.
- *
- * @static
- *
- * @example
- *
- * var MyType = CryptoJS.lib.Base.extend({
- * field: 'value',
- *
- * method: function () {
- * }
- * });
- */
- extend: function(s) {
- var M = P(this);
- return s && M.mixIn(s), (!M.hasOwnProperty("init") || this.init === M.init) && (M.init = function() {
- M.$super.init.apply(this, arguments);
- }), M.init.prototype = M, M.$super = this, M;
- },
- /**
- * Extends this object and runs the init method.
- * Arguments to create() will be passed to init().
- *
- * @return {Object} The new object.
- *
- * @static
- *
- * @example
- *
- * var instance = MyType.create();
- */
- create: function() {
- var s = this.extend();
- return s.init.apply(s, arguments), s;
- },
- /**
- * Initializes a newly created object.
- * Override this method to add some logic when your objects are created.
- *
- * @example
- *
- * var MyType = CryptoJS.lib.Base.extend({
- * init: function () {
- * // ...
- * }
- * });
- */
- init: function() {
- },
- /**
- * Copies properties into this object.
- *
- * @param {Object} properties The properties to mix in.
- *
- * @example
- *
- * MyType.mixIn({
- * field: 'value'
- * });
- */
- mixIn: function(s) {
- for (var M in s)
- s.hasOwnProperty(M) && (this[M] = s[M]);
- s.hasOwnProperty("toString") && (this.toString = s.toString);
- },
- /**
- * Creates a copy of this object.
- *
- * @return {Object} The clone.
- *
- * @example
- *
- * var clone = instance.clone();
- */
- clone: function() {
- return this.init.prototype.extend(this);
- }
- };
- }(), Q = D.WordArray = C.extend({
- /**
- * Initializes a newly created word array.
- *
- * @param {Array} words (Optional) An array of 32-bit words.
- * @param {number} sigBytes (Optional) The number of significant bytes in the words.
- *
- * @example
- *
- * var wordArray = CryptoJS.lib.WordArray.create();
- * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);
- * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
- */
- init: function(s, M) {
- s = this.words = s || [], M != g ? this.sigBytes = M : this.sigBytes = s.length * 4;
- },
- /**
- * Converts this word array to a string.
- *
- * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex
- *
- * @return {string} The stringified word array.
- *
- * @example
- *
- * var string = wordArray + '';
- * var string = wordArray.toString();
- * var string = wordArray.toString(CryptoJS.enc.Utf8);
- */
- toString: function(s) {
- return (s || f).stringify(this);
- },
- /**
- * Concatenates a word array to this word array.
- *
- * @param {WordArray} wordArray The word array to append.
- *
- * @return {WordArray} This word array.
- *
- * @example
- *
- * wordArray1.concat(wordArray2);
- */
- concat: function(s) {
- var M = this.words, z = s.words, O = this.sigBytes, L = s.sigBytes;
- if (this.clamp(), O % 4)
- for (var Z = 0; Z < L; Z++) {
- var l = z[Z >>> 2] >>> 24 - Z % 4 * 8 & 255;
- M[O + Z >>> 2] |= l << 24 - (O + Z) % 4 * 8;
- }
- else
- for (var j = 0; j < L; j += 4)
- M[O + j >>> 2] = z[j >>> 2];
- return this.sigBytes += L, this;
- },
- /**
- * Removes insignificant bits.
- *
- * @example
- *
- * wordArray.clamp();
- */
- clamp: function() {
- var s = this.words, M = this.sigBytes;
- s[M >>> 2] &= 4294967295 << 32 - M % 4 * 8, s.length = B.ceil(M / 4);
- },
- /**
- * Creates a copy of this word array.
- *
- * @return {WordArray} The clone.
- *
- * @example
- *
- * var clone = wordArray.clone();
- */
- clone: function() {
- var s = C.clone.call(this);
- return s.words = this.words.slice(0), s;
- },
- /**
- * Creates a word array filled with random bytes.
- *
- * @param {number} nBytes The number of random bytes to generate.
- *
- * @return {WordArray} The random word array.
- *
- * @static
- *
- * @example
- *
- * var wordArray = CryptoJS.lib.WordArray.random(16);
- */
- random: function(s) {
- for (var M = [], z = 0; z < s; z += 4)
- M.push(x());
- return new Q.init(M, s);
- }
- }), t = Y.enc = {}, f = t.Hex = {
- /**
- * Converts a word array to a hex string.
- *
- * @param {WordArray} wordArray The word array.
- *
- * @return {string} The hex string.
- *
- * @static
- *
- * @example
- *
- * var hexString = CryptoJS.enc.Hex.stringify(wordArray);
- */
- stringify: function(s) {
- for (var M = s.words, z = s.sigBytes, O = [], L = 0; L < z; L++) {
- var Z = M[L >>> 2] >>> 24 - L % 4 * 8 & 255;
- O.push((Z >>> 4).toString(16)), O.push((Z & 15).toString(16));
- }
- return O.join("");
- },
- /**
- * Converts a hex string to a word array.
- *
- * @param {string} hexStr The hex string.
- *
- * @return {WordArray} The word array.
- *
- * @static
- *
- * @example
- *
- * var wordArray = CryptoJS.enc.Hex.parse(hexString);
- */
- parse: function(s) {
- for (var M = s.length, z = [], O = 0; O < M; O += 2)
- z[O >>> 3] |= parseInt(s.substr(O, 2), 16) << 24 - O % 8 * 4;
- return new Q.init(z, M / 2);
- }
- }, v = t.Latin1 = {
- /**
- * Converts a word array to a Latin1 string.
- *
- * @param {WordArray} wordArray The word array.
- *
- * @return {string} The Latin1 string.
- *
- * @static
- *
- * @example
- *
- * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
- */
- stringify: function(s) {
- for (var M = s.words, z = s.sigBytes, O = [], L = 0; L < z; L++) {
- var Z = M[L >>> 2] >>> 24 - L % 4 * 8 & 255;
- O.push(String.fromCharCode(Z));
- }
- return O.join("");
- },
- /**
- * Converts a Latin1 string to a word array.
- *
- * @param {string} latin1Str The Latin1 string.
- *
- * @return {WordArray} The word array.
- *
- * @static
- *
- * @example
- *
- * var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
- */
- parse: function(s) {
- for (var M = s.length, z = [], O = 0; O < M; O++)
- z[O >>> 2] |= (s.charCodeAt(O) & 255) << 24 - O % 4 * 8;
- return new Q.init(z, M);
- }
- }, c = t.Utf8 = {
- /**
- * Converts a word array to a UTF-8 string.
- *
- * @param {WordArray} wordArray The word array.
- *
- * @return {string} The UTF-8 string.
- *
- * @static
- *
- * @example
- *
- * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);
- */
- stringify: function(s) {
- try {
- return decodeURIComponent(escape(v.stringify(s)));
- } catch (M) {
- throw new Error("Malformed UTF-8 data");
- }
- },
- /**
- * Converts a UTF-8 string to a word array.
- *
- * @param {string} utf8Str The UTF-8 string.
- *
- * @return {WordArray} The word array.
- *
- * @static
- *
- * @example
- *
- * var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
- */
- parse: function(s) {
- return v.parse(unescape(encodeURIComponent(s)));
- }
- }, n = D.BufferedBlockAlgorithm = C.extend({
- /**
- * Resets this block algorithm's data buffer to its initial state.
- *
- * @example
- *
- * bufferedBlockAlgorithm.reset();
- */
- reset: function() {
- this._data = new Q.init(), this._nDataBytes = 0;
- },
- /**
- * Adds new data to this block algorithm's buffer.
- *
- * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.
- *
- * @example
- *
- * bufferedBlockAlgorithm._append('data');
- * bufferedBlockAlgorithm._append(wordArray);
- */
- _append: function(s) {
- typeof s == "string" && (s = c.parse(s)), this._data.concat(s), this._nDataBytes += s.sigBytes;
- },
- /**
- * Processes available data blocks.
- *
- * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.
- *
- * @param {boolean} doFlush Whether all blocks and partial blocks should be processed.
- *
- * @return {WordArray} The processed data.
- *
- * @example
- *
- * var processedData = bufferedBlockAlgorithm._process();
- * var processedData = bufferedBlockAlgorithm._process(!!'flush');
- */
- _process: function(s) {
- var M, z = this._data, O = z.words, L = z.sigBytes, Z = this.blockSize, l = Z * 4, j = L / l;
- s ? j = B.ceil(j) : j = B.max((j | 0) - this._minBufferSize, 0);
- var W = j * Z, b = B.min(W * 4, L);
- if (W) {
- for (var d = 0; d < W; d += Z)
- this._doProcessBlock(O, d);
- M = O.splice(0, W), z.sigBytes -= b;
- }
- return new Q.init(M, b);
- },
- /**
- * Creates a copy of this object.
- *
- * @return {Object} The clone.
- *
- * @example
- *
- * var clone = bufferedBlockAlgorithm.clone();
- */
- clone: function() {
- var s = C.clone.call(this);
- return s._data = this._data.clone(), s;
- },
- _minBufferSize: 0
- });
- D.Hasher = n.extend({
- /**
- * Configuration options.
- */
- cfg: C.extend(),
- /**
- * Initializes a newly created hasher.
- *
- * @param {Object} cfg (Optional) The configuration options to use for this hash computation.
- *
- * @example
- *
- * var hasher = CryptoJS.algo.SHA256.create();
- */
- init: function(s) {
- this.cfg = this.cfg.extend(s), this.reset();
- },
- /**
- * Resets this hasher to its initial state.
- *
- * @example
- *
- * hasher.reset();
- */
- reset: function() {
- n.reset.call(this), this._doReset();
- },
- /**
- * Updates this hasher with a message.
- *
- * @param {WordArray|string} messageUpdate The message to append.
- *
- * @return {Hasher} This hasher.
- *
- * @example
- *
- * hasher.update('message');
- * hasher.update(wordArray);
- */
- update: function(s) {
- return this._append(s), this._process(), this;
- },
- /**
- * Finalizes the hash computation.
- * Note that the finalize operation is effectively a destructive, read-once operation.
- *
- * @param {WordArray|string} messageUpdate (Optional) A final message update.
- *
- * @return {WordArray} The hash.
- *
- * @example
- *
- * var hash = hasher.finalize();
- * var hash = hasher.finalize('message');
- * var hash = hasher.finalize(wordArray);
- */
- finalize: function(s) {
- s && this._append(s);
- var M = this._doFinalize();
- return M;
- },
- blockSize: 16,
- /**
- * Creates a shortcut function to a hasher's object interface.
- *
- * @param {Hasher} hasher The hasher to create a helper for.
- *
- * @return {Function} The shortcut function.
- *
- * @static
- *
- * @example
- *
- * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
- */
- _createHelper: function(s) {
- return function(M, z) {
- return new s.init(z).finalize(M);
- };
- },
- /**
- * Creates a shortcut function to the HMAC's object interface.
- *
- * @param {Hasher} hasher The hasher to use in this HMAC helper.
- *
- * @return {Function} The shortcut function.
- *
- * @static
- *
- * @example
- *
- * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
- */
- _createHmacHelper: function(s) {
- return function(M, z) {
- return new H.HMAC.init(s, z).finalize(M);
- };
- }
- });
- var H = Y.algo = {};
- return Y;
- }(Math);
- return w;
- });
- }(SA)), SA.exports;
- }
- var UA = { exports: {} }, AB;
- function KA() {
- return AB || (AB = 1, function(A, e) {
- (function(w, B) {
- A.exports = B(E());
- })(k, function(w) {
- return function(B) {
- var g = w, r = g.lib, x = r.Base, P = r.WordArray, Y = g.x64 = {};
- Y.Word = x.extend({
- /**
- * Initializes a newly created 64-bit word.
- *
- * @param {number} high The high 32 bits.
- * @param {number} low The low 32 bits.
- *
- * @example
- *
- * var x64Word = CryptoJS.x64.Word.create(0x00010203, 0x04050607);
- */
- init: function(D, C) {
- this.high = D, this.low = C;
- }
- /**
- * Bitwise NOTs this word.
- *
- * @return {X64Word} A new x64-Word object after negating.
- *
- * @example
- *
- * var negated = x64Word.not();
- */
- // not: function () {
- // var high = ~this.high;
- // var low = ~this.low;
- // return X64Word.create(high, low);
- // },
- /**
- * Bitwise ANDs this word with the passed word.
- *
- * @param {X64Word} word The x64-Word to AND with this word.
- *
- * @return {X64Word} A new x64-Word object after ANDing.
- *
- * @example
- *
- * var anded = x64Word.and(anotherX64Word);
- */
- // and: function (word) {
- // var high = this.high & word.high;
- // var low = this.low & word.low;
- // return X64Word.create(high, low);
- // },
- /**
- * Bitwise ORs this word with the passed word.
- *
- * @param {X64Word} word The x64-Word to OR with this word.
- *
- * @return {X64Word} A new x64-Word object after ORing.
- *
- * @example
- *
- * var ored = x64Word.or(anotherX64Word);
- */
- // or: function (word) {
- // var high = this.high | word.high;
- // var low = this.low | word.low;
- // return X64Word.create(high, low);
- // },
- /**
- * Bitwise XORs this word with the passed word.
- *
- * @param {X64Word} word The x64-Word to XOR with this word.
- *
- * @return {X64Word} A new x64-Word object after XORing.
- *
- * @example
- *
- * var xored = x64Word.xor(anotherX64Word);
- */
- // xor: function (word) {
- // var high = this.high ^ word.high;
- // var low = this.low ^ word.low;
- // return X64Word.create(high, low);
- // },
- /**
- * Shifts this word n bits to the left.
- *
- * @param {number} n The number of bits to shift.
- *
- * @return {X64Word} A new x64-Word object after shifting.
- *
- * @example
- *
- * var shifted = x64Word.shiftL(25);
- */
- // shiftL: function (n) {
- // if (n < 32) {
- // var high = (this.high << n) | (this.low >>> (32 - n));
- // var low = this.low << n;
- // } else {
- // var high = this.low << (n - 32);
- // var low = 0;
- // }
- // return X64Word.create(high, low);
- // },
- /**
- * Shifts this word n bits to the right.
- *
- * @param {number} n The number of bits to shift.
- *
- * @return {X64Word} A new x64-Word object after shifting.
- *
- * @example
- *
- * var shifted = x64Word.shiftR(7);
- */
- // shiftR: function (n) {
- // if (n < 32) {
- // var low = (this.low >>> n) | (this.high << (32 - n));
- // var high = this.high >>> n;
- // } else {
- // var low = this.high >>> (n - 32);
- // var high = 0;
- // }
- // return X64Word.create(high, low);
- // },
- /**
- * Rotates this word n bits to the left.
- *
- * @param {number} n The number of bits to rotate.
- *
- * @return {X64Word} A new x64-Word object after rotating.
- *
- * @example
- *
- * var rotated = x64Word.rotL(25);
- */
- // rotL: function (n) {
- // return this.shiftL(n).or(this.shiftR(64 - n));
- // },
- /**
- * Rotates this word n bits to the right.
- *
- * @param {number} n The number of bits to rotate.
- *
- * @return {X64Word} A new x64-Word object after rotating.
- *
- * @example
- *
- * var rotated = x64Word.rotR(7);
- */
- // rotR: function (n) {
- // return this.shiftR(n).or(this.shiftL(64 - n));
- // },
- /**
- * Adds this word with the passed word.
- *
- * @param {X64Word} word The x64-Word to add with this word.
- *
- * @return {X64Word} A new x64-Word object after adding.
- *
- * @example
- *
- * var added = x64Word.add(anotherX64Word);
- */
- // add: function (word) {
- // var low = (this.low + word.low) | 0;
- // var carry = (low >>> 0) < (this.low >>> 0) ? 1 : 0;
- // var high = (this.high + word.high + carry) | 0;
- // return X64Word.create(high, low);
- // }
- }), Y.WordArray = x.extend({
- /**
- * Initializes a newly created word array.
- *
- * @param {Array} words (Optional) An array of CryptoJS.x64.Word objects.
- * @param {number} sigBytes (Optional) The number of significant bytes in the words.
- *
- * @example
- *
- * var wordArray = CryptoJS.x64.WordArray.create();
- *
- * var wordArray = CryptoJS.x64.WordArray.create([
- * CryptoJS.x64.Word.create(0x00010203, 0x04050607),
- * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
- * ]);
- *
- * var wordArray = CryptoJS.x64.WordArray.create([
- * CryptoJS.x64.Word.create(0x00010203, 0x04050607),
- * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
- * ], 10);
- */
- init: function(D, C) {
- D = this.words = D || [], C != B ? this.sigBytes = C : this.sigBytes = D.length * 8;
- },
- /**
- * Converts this 64-bit word array to a 32-bit word array.
- *
- * @return {CryptoJS.lib.WordArray} This word array's data as a 32-bit word array.
- *
- * @example
- *
- * var x32WordArray = x64WordArray.toX32();
- */
- toX32: function() {
- for (var D = this.words, C = D.length, Q = [], t = 0; t < C; t++) {
- var f = D[t];
- Q.push(f.high), Q.push(f.low);
- }
- return P.create(Q, this.sigBytes);
- },
- /**
- * Creates a copy of this word array.
- *
- * @return {X64WordArray} The clone.
- *
- * @example
- *
- * var clone = x64WordArray.clone();
- */
- clone: function() {
- for (var D = x.clone.call(this), C = D.words = this.words.slice(0), Q = C.length, t = 0; t < Q; t++)
- C[t] = C[t].clone();
- return D;
- }
- });
- }(), w;
- });
- }(UA)), UA.exports;
- }
- var iA = { exports: {} }, gB;
- function xD() {
- return gB || (gB = 1, function(A, e) {
- (function(w, B) {
- A.exports = B(E());
- })(k, function(w) {
- return function() {
- if (typeof ArrayBuffer == "function") {
- var B = w, g = B.lib, r = g.WordArray, x = r.init, P = r.init = function(Y) {
- 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) {
- for (var D = Y.byteLength, C = [], Q = 0; Q < D; Q++)
- C[Q >>> 2] |= Y[Q] << 24 - Q % 4 * 8;
- x.call(this, C, D);
- } else
- x.apply(this, arguments);
- };
- P.prototype = r;
- }
- }(), w.lib.WordArray;
- });
- }(iA)), iA.exports;
- }
- var qA = { exports: {} }, BB;
- function ZD() {
- return BB || (BB = 1, function(A, e) {
- (function(w, B) {
- A.exports = B(E());
- })(k, function(w) {
- return function() {
- var B = w, g = B.lib, r = g.WordArray, x = B.enc;
- x.Utf16 = x.Utf16BE = {
- /**
- * Converts a word array to a UTF-16 BE string.
- *
- * @param {WordArray} wordArray The word array.
- *
- * @return {string} The UTF-16 BE string.
- *
- * @static
- *
- * @example
- *
- * var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);
- */
- stringify: function(Y) {
- for (var D = Y.words, C = Y.sigBytes, Q = [], t = 0; t < C; t += 2) {
- var f = D[t >>> 2] >>> 16 - t % 4 * 8 & 65535;
- Q.push(String.fromCharCode(f));
- }
- return Q.join("");
- },
- /**
- * Converts a UTF-16 BE string to a word array.
- *
- * @param {string} utf16Str The UTF-16 BE string.
- *
- * @return {WordArray} The word array.
- *
- * @static
- *
- * @example
- *
- * var wordArray = CryptoJS.enc.Utf16.parse(utf16String);
- */
- parse: function(Y) {
- for (var D = Y.length, C = [], Q = 0; Q < D; Q++)
- C[Q >>> 1] |= Y.charCodeAt(Q) << 16 - Q % 2 * 16;
- return r.create(C, D * 2);
- }
- }, x.Utf16LE = {
- /**
- * Converts a word array to a UTF-16 LE string.
- *
- * @param {WordArray} wordArray The word array.
- *
- * @return {string} The UTF-16 LE string.
- *
- * @static
- *
- * @example
- *
- * var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);
- */
- stringify: function(Y) {
- for (var D = Y.words, C = Y.sigBytes, Q = [], t = 0; t < C; t += 2) {
- var f = P(D[t >>> 2] >>> 16 - t % 4 * 8 & 65535);
- Q.push(String.fromCharCode(f));
- }
- return Q.join("");
- },
- /**
- * Converts a UTF-16 LE string to a word array.
- *
- * @param {string} utf16Str The UTF-16 LE string.
- *
- * @return {WordArray} The word array.
- *
- * @static
- *
- * @example
- *
- * var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str);
- */
- parse: function(Y) {
- for (var D = Y.length, C = [], Q = 0; Q < D; Q++)
- C[Q >>> 1] |= P(Y.charCodeAt(Q) << 16 - Q % 2 * 16);
- return r.create(C, D * 2);
- }
- };
- function P(Y) {
- return Y << 8 & 4278255360 | Y >>> 8 & 16711935;
- }
- }(), w.enc.Utf16;
- });
- }(qA)), qA.exports;
- }
- var hA = { exports: {} }, wB;
- function zA() {
- return wB || (wB = 1, function(A, e) {
- (function(w, B) {
- A.exports = B(E());
- })(k, function(w) {
- return function() {
- var B = w, g = B.lib, r = g.WordArray, x = B.enc;
- x.Base64 = {
- /**
- * Converts a word array to a Base64 string.
- *
- * @param {WordArray} wordArray The word array.
- *
- * @return {string} The Base64 string.
- *
- * @static
- *
- * @example
- *
- * var base64String = CryptoJS.enc.Base64.stringify(wordArray);
- */
- stringify: function(Y) {
- var D = Y.words, C = Y.sigBytes, Q = this._map;
- Y.clamp();
- for (var t = [], f = 0; f < C; f += 3)
- 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++)
- t.push(Q.charAt(H >>> 6 * (3 - s) & 63));
- var M = Q.charAt(64);
- if (M)
- for (; t.length % 4; )
- t.push(M);
- return t.join("");
- },
- /**
- * Converts a Base64 string to a word array.
- *
- * @param {string} base64Str The Base64 string.
- *
- * @return {WordArray} The word array.
- *
- * @static
- *
- * @example
- *
- * var wordArray = CryptoJS.enc.Base64.parse(base64String);
- */
- parse: function(Y) {
- var D = Y.length, C = this._map, Q = this._reverseMap;
- if (!Q) {
- Q = this._reverseMap = [];
- for (var t = 0; t < C.length; t++)
- Q[C.charCodeAt(t)] = t;
- }
- var f = C.charAt(64);
- if (f) {
- var v = Y.indexOf(f);
- v !== -1 && (D = v);
- }
- return P(Y, D, Q);
- },
- _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
- };
- function P(Y, D, C) {
- for (var Q = [], t = 0, f = 0; f < D; f++)
- if (f % 4) {
- var v = C[Y.charCodeAt(f - 1)] << f % 4 * 2, c = C[Y.charCodeAt(f)] >>> 6 - f % 4 * 2, n = v | c;
- Q[t >>> 2] |= n << 24 - t % 4 * 8, t++;
- }
- return r.create(Q, t);
- }
- }(), w.enc.Base64;
- });
- }(hA)), hA.exports;
- }
- var RA = { exports: {} }, DB;
- function bD() {
- return DB || (DB = 1, function(A, e) {
- (function(w, B) {
- A.exports = B(E());
- })(k, function(w) {
- return function() {
- var B = w, g = B.lib, r = g.WordArray, x = B.enc;
- x.Base64url = {
- /**
- * Converts a word array to a Base64url string.
- *
- * @param {WordArray} wordArray The word array.
- *
- * @param {boolean} urlSafe Whether to use url safe
- *
- * @return {string} The Base64url string.
- *
- * @static
- *
- * @example
- *
- * var base64String = CryptoJS.enc.Base64url.stringify(wordArray);
- */
- stringify: function(Y, D) {
- D === void 0 && (D = !0);
- var C = Y.words, Q = Y.sigBytes, t = D ? this._safe_map : this._map;
- Y.clamp();
- for (var f = [], v = 0; v < Q; v += 3)
- 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++)
- f.push(t.charAt(s >>> 6 * (3 - M) & 63));
- var z = t.charAt(64);
- if (z)
- for (; f.length % 4; )
- f.push(z);
- return f.join("");
- },
- /**
- * Converts a Base64url string to a word array.
- *
- * @param {string} base64Str The Base64url string.
- *
- * @param {boolean} urlSafe Whether to use url safe
- *
- * @return {WordArray} The word array.
- *
- * @static
- *
- * @example
- *
- * var wordArray = CryptoJS.enc.Base64url.parse(base64String);
- */
- parse: function(Y, D) {
- D === void 0 && (D = !0);
- var C = Y.length, Q = D ? this._safe_map : this._map, t = this._reverseMap;
- if (!t) {
- t = this._reverseMap = [];
- for (var f = 0; f < Q.length; f++)
- t[Q.charCodeAt(f)] = f;
- }
- var v = Q.charAt(64);
- if (v) {
- var c = Y.indexOf(v);
- c !== -1 && (C = c);
- }
- return P(Y, C, t);
- },
- _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
- _safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
- };
- function P(Y, D, C) {
- for (var Q = [], t = 0, f = 0; f < D; f++)
- if (f % 4) {
- var v = C[Y.charCodeAt(f - 1)] << f % 4 * 2, c = C[Y.charCodeAt(f)] >>> 6 - f % 4 * 2, n = v | c;
- Q[t >>> 2] |= n << 24 - t % 4 * 8, t++;
- }
- return r.create(Q, t);
- }
- }(), w.enc.Base64url;
- });
- }(RA)), RA.exports;
- }
- var _A = { exports: {} }, sB;
- function PA() {
- return sB || (sB = 1, function(A, e) {
- (function(w, B) {
- A.exports = B(E());
- })(k, function(w) {
- return function(B) {
- var g = w, r = g.lib, x = r.WordArray, P = r.Hasher, Y = g.algo, D = [];
- (function() {
- for (var c = 0; c < 64; c++)
- D[c] = B.abs(B.sin(c + 1)) * 4294967296 | 0;
- })();
- var C = Y.MD5 = P.extend({
- _doReset: function() {
- this._hash = new x.init([
- 1732584193,
- 4023233417,
- 2562383102,
- 271733878
- ]);
- },
- _doProcessBlock: function(c, n) {
- for (var H = 0; H < 16; H++) {
- var s = n + H, M = c[s];
- c[s] = (M << 8 | M >>> 24) & 16711935 | (M << 24 | M >>> 8) & 4278255360;
- }
- 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];
- 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;
- },
- _doFinalize: function() {
- var c = this._data, n = c.words, H = this._nDataBytes * 8, s = c.sigBytes * 8;
- n[s >>> 5] |= 128 << 24 - s % 32;
- var M = B.floor(H / 4294967296), z = H;
- 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();
- for (var O = this._hash, L = O.words, Z = 0; Z < 4; Z++) {
- var l = L[Z];
- L[Z] = (l << 8 | l >>> 24) & 16711935 | (l << 24 | l >>> 8) & 4278255360;
- }
- return O;
- },
- clone: function() {
- var c = P.clone.call(this);
- return c._hash = this._hash.clone(), c;
- }
- });
- function Q(c, n, H, s, M, z, O) {
- var L = c + (n & H | ~n & s) + M + O;
- return (L << z | L >>> 32 - z) + n;
- }
- function t(c, n, H, s, M, z, O) {
- var L = c + (n & s | H & ~s) + M + O;
- return (L << z | L >>> 32 - z) + n;
- }
- function f(c, n, H, s, M, z, O) {
- var L = c + (n ^ H ^ s) + M + O;
- return (L << z | L >>> 32 - z) + n;
- }
- function v(c, n, H, s, M, z, O) {
- var L = c + (H ^ (n | ~s)) + M + O;
- return (L << z | L >>> 32 - z) + n;
- }
- g.MD5 = P._createHelper(C), g.HmacMD5 = P._createHmacHelper(C);
- }(Math), w.MD5;
- });
- }(_A)), _A.exports;
- }
- var $A = { exports: {} }, eB;
- function Dw() {
- return eB || (eB = 1, function(A, e) {
- (function(w, B) {
- A.exports = B(E());
- })(k, function(w) {
- return function() {
- var B = w, g = B.lib, r = g.WordArray, x = g.Hasher, P = B.algo, Y = [], D = P.SHA1 = x.extend({
- _doReset: function() {
- this._hash = new r.init([
- 1732584193,
- 4023233417,
- 2562383102,
- 271733878,
- 3285377520
- ]);
- },
- _doProcessBlock: function(C, Q) {
- 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++) {
- if (s < 16)
- Y[s] = C[Q + s] | 0;
- else {
- var M = Y[s - 3] ^ Y[s - 8] ^ Y[s - 14] ^ Y[s - 16];
- Y[s] = M << 1 | M >>> 31;
- }
- var z = (f << 5 | f >>> 27) + H + Y[s];
- 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;
- }
- 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;
- },
- _doFinalize: function() {
- var C = this._data, Q = C.words, t = this._nDataBytes * 8, f = C.sigBytes * 8;
- 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;
- },
- clone: function() {
- var C = x.clone.call(this);
- return C._hash = this._hash.clone(), C;
- }
- });
- B.SHA1 = x._createHelper(D), B.HmacSHA1 = x._createHmacHelper(D);
- }(), w.SHA1;
- });
- }($A)), $A.exports;
- }
- var Ag = { exports: {} }, tB;
- function Vg() {
- return tB || (tB = 1, function(A, e) {
- (function(w, B) {
- A.exports = B(E());
- })(k, function(w) {
- return function(B) {
- var g = w, r = g.lib, x = r.WordArray, P = r.Hasher, Y = g.algo, D = [], C = [];
- (function() {
- function f(H) {
- for (var s = B.sqrt(H), M = 2; M <= s; M++)
- if (!(H % M))
- return !1;
- return !0;
- }
- function v(H) {
- return (H - (H | 0)) * 4294967296 | 0;
- }
- for (var c = 2, n = 0; n < 64; )
- f(c) && (n < 8 && (D[n] = v(B.pow(c, 1 / 2))), C[n] = v(B.pow(c, 1 / 3)), n++), c++;
- })();
- var Q = [], t = Y.SHA256 = P.extend({
- _doReset: function() {
- this._hash = new x.init(D.slice(0));
- },
- _doProcessBlock: function(f, v) {
- 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++) {
- if (l < 16)
- Q[l] = f[v + l] | 0;
- else {
- 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;
- Q[l] = W + Q[l - 7] + d + Q[l - 16];
- }
- 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;
- Z = L, L = O, O = z, z = M + q | 0, M = s, s = H, H = n, n = q + p | 0;
- }
- 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;
- },
- _doFinalize: function() {
- var f = this._data, v = f.words, c = this._nDataBytes * 8, n = f.sigBytes * 8;
- 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;
- },
- clone: function() {
- var f = P.clone.call(this);
- return f._hash = this._hash.clone(), f;
- }
- });
- g.SHA256 = P._createHelper(t), g.HmacSHA256 = P._createHmacHelper(t);
- }(Math), w.SHA256;
- });
- }(Ag)), Ag.exports;
- }
- var gg = { exports: {} }, CB;
- function lD() {
- return CB || (CB = 1, function(A, e) {
- (function(w, B, g) {
- A.exports = B(E(), Vg());
- })(k, function(w) {
- return function() {
- var B = w, g = B.lib, r = g.WordArray, x = B.algo, P = x.SHA256, Y = x.SHA224 = P.extend({
- _doReset: function() {
- this._hash = new r.init([
- 3238371032,
- 914150663,
- 812702999,
- 4144912697,
- 4290775857,
- 1750603025,
- 1694076839,
- 3204075428
- ]);
- },
- _doFinalize: function() {
- var D = P._doFinalize.call(this);
- return D.sigBytes -= 4, D;
- }
- });
- B.SHA224 = P._createHelper(Y), B.HmacSHA224 = P._createHmacHelper(Y);
- }(), w.SHA224;
- });
- }(gg)), gg.exports;
- }
- var Bg = { exports: {} }, MB;
- function sw() {
- return MB || (MB = 1, function(A, e) {
- (function(w, B, g) {
- A.exports = B(E(), KA());
- })(k, function(w) {
- return function() {
- var B = w, g = B.lib, r = g.Hasher, x = B.x64, P = x.Word, Y = x.WordArray, D = B.algo;
- function C() {
- return P.create.apply(P, arguments);
- }
- var Q = [
- C(1116352408, 3609767458),
- C(1899447441, 602891725),
- C(3049323471, 3964484399),
- C(3921009573, 2173295548),
- C(961987163, 4081628472),
- C(1508970993, 3053834265),
- C(2453635748, 2937671579),
- C(2870763221, 3664609560),
- C(3624381080, 2734883394),
- C(310598401, 1164996542),
- C(607225278, 1323610764),
- C(1426881987, 3590304994),
- C(1925078388, 4068182383),
- C(2162078206, 991336113),
- C(2614888103, 633803317),
- C(3248222580, 3479774868),
- C(3835390401, 2666613458),
- C(4022224774, 944711139),
- C(264347078, 2341262773),
- C(604807628, 2007800933),
- C(770255983, 1495990901),
- C(1249150122, 1856431235),
- C(1555081692, 3175218132),
- C(1996064986, 2198950837),
- C(2554220882, 3999719339),
- C(2821834349, 766784016),
- C(2952996808, 2566594879),
- C(3210313671, 3203337956),
- C(3336571891, 1034457026),
- C(3584528711, 2466948901),
- C(113926993, 3758326383),
- C(338241895, 168717936),
- C(666307205, 1188179964),
- C(773529912, 1546045734),
- C(1294757372, 1522805485),
- C(1396182291, 2643833823),
- C(1695183700, 2343527390),
- C(1986661051, 1014477480),
- C(2177026350, 1206759142),
- C(2456956037, 344077627),
- C(2730485921, 1290863460),
- C(2820302411, 3158454273),
- C(3259730800, 3505952657),
- C(3345764771, 106217008),
- C(3516065817, 3606008344),
- C(3600352804, 1432725776),
- C(4094571909, 1467031594),
- C(275423344, 851169720),
- C(430227734, 3100823752),
- C(506948616, 1363258195),
- C(659060556, 3750685593),
- C(883997877, 3785050280),
- C(958139571, 3318307427),
- C(1322822218, 3812723403),
- C(1537002063, 2003034995),
- C(1747873779, 3602036899),
- C(1955562222, 1575990012),
- C(2024104815, 1125592928),
- C(2227730452, 2716904306),
- C(2361852424, 442776044),
- C(2428436474, 593698344),
- C(2756734187, 3733110249),
- C(3204031479, 2999351573),
- C(3329325298, 3815920427),
- C(3391569614, 3928383900),
- C(3515267271, 566280711),
- C(3940187606, 3454069534),
- C(4118630271, 4000239992),
- C(116418474, 1914138554),
- C(174292421, 2731055270),
- C(289380356, 3203993006),
- C(460393269, 320620315),
- C(685471733, 587496836),
- C(852142971, 1086792851),
- C(1017036298, 365543100),
- C(1126000580, 2618297676),
- C(1288033470, 3409855158),
- C(1501505948, 4234509866),
- C(1607167915, 987167468),
- C(1816402316, 1246189591)
- ], t = [];
- (function() {
- for (var v = 0; v < 80; v++)
- t[v] = C();
- })();
- var f = D.SHA512 = r.extend({
- _doReset: function() {
- this._hash = new Y.init([
- new P.init(1779033703, 4089235720),
- new P.init(3144134277, 2227873595),
- new P.init(1013904242, 4271175723),
- new P.init(2773480762, 1595750129),
- new P.init(1359893119, 2917565137),
- new P.init(2600822924, 725511199),
- new P.init(528734635, 4215389547),
- new P.init(1541459225, 327033209)
- ]);
- },
- _doProcessBlock: function(v, c) {
- 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++) {
- var DA, vA, FA = t[tA];
- if (tA < 16)
- vA = FA.high = v[c + tA * 2] | 0, DA = FA.low = v[c + tA * 2 + 1] | 0;
- else {
- 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;
- 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;
- }
- 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);
- 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;
- }
- 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);
- },
- _doFinalize: function() {
- var v = this._data, c = v.words, n = this._nDataBytes * 8, H = v.sigBytes * 8;
- 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();
- var s = this._hash.toX32();
- return s;
- },
- clone: function() {
- var v = r.clone.call(this);
- return v._hash = this._hash.clone(), v;
- },
- blockSize: 1024 / 32
- });
- B.SHA512 = r._createHelper(f), B.HmacSHA512 = r._createHmacHelper(f);
- }(), w.SHA512;
- });
- }(Bg)), Bg.exports;
- }
- var wg = { exports: {} }, vB;
- function GD() {
- return vB || (vB = 1, function(A, e) {
- (function(w, B, g) {
- A.exports = B(E(), KA(), sw());
- })(k, function(w) {
- return function() {
- var B = w, g = B.x64, r = g.Word, x = g.WordArray, P = B.algo, Y = P.SHA512, D = P.SHA384 = Y.extend({
- _doReset: function() {
- this._hash = new x.init([
- new r.init(3418070365, 3238371032),
- new r.init(1654270250, 914150663),
- new r.init(2438529370, 812702999),
- new r.init(355462360, 4144912697),
- new r.init(1731405415, 4290775857),
- new r.init(2394180231, 1750603025),
- new r.init(3675008525, 1694076839),
- new r.init(1203062813, 3204075428)
- ]);
- },
- _doFinalize: function() {
- var C = Y._doFinalize.call(this);
- return C.sigBytes -= 16, C;
- }
- });
- B.SHA384 = Y._createHelper(D), B.HmacSHA384 = Y._createHmacHelper(D);
- }(), w.SHA384;
- });
- }(wg)), wg.exports;
- }
- var Dg = { exports: {} }, rB;
- function dD() {
- return rB || (rB = 1, function(A, e) {
- (function(w, B, g) {
- A.exports = B(E(), KA());
- })(k, function(w) {
- return function(B) {
- var g = w, r = g.lib, x = r.WordArray, P = r.Hasher, Y = g.x64, D = Y.Word, C = g.algo, Q = [], t = [], f = [];
- (function() {
- for (var n = 1, H = 0, s = 0; s < 24; s++) {
- Q[n + 5 * H] = (s + 1) * (s + 2) / 2 % 64;
- var M = H % 5, z = (2 * n + 3 * H) % 5;
- n = M, H = z;
- }
- for (var n = 0; n < 5; n++)
- for (var H = 0; H < 5; H++)
- t[n + 5 * H] = H + (2 * n + 3 * H) % 5 * 5;
- for (var O = 1, L = 0; L < 24; L++) {
- for (var Z = 0, l = 0, j = 0; j < 7; j++) {
- if (O & 1) {
- var W = (1 << j) - 1;
- W < 32 ? l ^= 1 << W : Z ^= 1 << W - 32;
- }
- O & 128 ? O = O << 1 ^ 113 : O <<= 1;
- }
- f[L] = D.create(Z, l);
- }
- })();
- var v = [];
- (function() {
- for (var n = 0; n < 25; n++)
- v[n] = D.create();
- })();
- var c = C.SHA3 = P.extend({
- /**
- * Configuration options.
- *
- * @property {number} outputLength
- * The desired number of bits in the output hash.
- * Only values permitted are: 224, 256, 384, 512.
- * Default: 512
- */
- cfg: P.cfg.extend({
- outputLength: 512
- }),
- _doReset: function() {
- for (var n = this._state = [], H = 0; H < 25; H++)
- n[H] = new D.init();
- this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
- },
- _doProcessBlock: function(n, H) {
- for (var s = this._state, M = this.blockSize / 2, z = 0; z < M; z++) {
- var O = n[H + 2 * z], L = n[H + 2 * z + 1];
- O = (O << 8 | O >>> 24) & 16711935 | (O << 24 | O >>> 8) & 4278255360, L = (L << 8 | L >>> 24) & 16711935 | (L << 24 | L >>> 8) & 4278255360;
- var Z = s[z];
- Z.high ^= L, Z.low ^= O;
- }
- for (var l = 0; l < 24; l++) {
- for (var j = 0; j < 5; j++) {
- for (var W = 0, b = 0, d = 0; d < 5; d++) {
- var Z = s[j + 5 * d];
- W ^= Z.high, b ^= Z.low;
- }
- var a = v[j];
- a.high = W, a.low = b;
- }
- for (var j = 0; j < 5; j++)
- 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++) {
- var Z = s[j + 5 * d];
- Z.high ^= W, Z.low ^= b;
- }
- for (var p = 1; p < 25; p++) {
- var W, b, Z = s[p], U = Z.high, T = Z.low, G = Q[p];
- 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);
- var y = v[t[p]];
- y.high = W, y.low = b;
- }
- var X = v[0], u = s[0];
- X.high = u.high, X.low = u.low;
- for (var j = 0; j < 5; j++)
- for (var d = 0; d < 5; d++) {
- 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];
- Z.high = h.high ^ ~i.high & gA.high, Z.low = h.low ^ ~i.low & gA.low;
- }
- var Z = s[0], K = f[l];
- Z.high ^= K.high, Z.low ^= K.low;
- }
- },
- _doFinalize: function() {
- var n = this._data, H = n.words;
- this._nDataBytes * 8;
- var s = n.sigBytes * 8, M = this.blockSize * 32;
- H[s >>> 5] |= 1 << 24 - s % 32, H[(B.ceil((s + 1) / M) * M >>> 5) - 1] |= 128, n.sigBytes = H.length * 4, this._process();
- for (var z = this._state, O = this.cfg.outputLength / 8, L = O / 8, Z = [], l = 0; l < L; l++) {
- var j = z[l], W = j.high, b = j.low;
- 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);
- }
- return new x.init(Z, O);
- },
- clone: function() {
- for (var n = P.clone.call(this), H = n._state = this._state.slice(0), s = 0; s < 25; s++)
- H[s] = H[s].clone();
- return n;
- }
- });
- g.SHA3 = P._createHelper(c), g.HmacSHA3 = P._createHmacHelper(c);
- }(Math), w.SHA3;
- });
- }(Dg)), Dg.exports;
- }
- var sg = { exports: {} }, fB;
- function aD() {
- return fB || (fB = 1, function(A, e) {
- (function(w, B) {
- A.exports = B(E());
- })(k, function(w) {
- /** @preserve
- (c) 2012 by Cédric Mesnil. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
- - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- - 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.
-
- 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.
- */
- return function(B) {
- var g = w, r = g.lib, x = r.WordArray, P = r.Hasher, Y = g.algo, D = x.create([
- 0,
- 1,
- 2,
- 3,
- 4,
- 5,
- 6,
- 7,
- 8,
- 9,
- 10,
- 11,
- 12,
- 13,
- 14,
- 15,
- 7,
- 4,
- 13,
- 1,
- 10,
- 6,
- 15,
- 3,
- 12,
- 0,
- 9,
- 5,
- 2,
- 14,
- 11,
- 8,
- 3,
- 10,
- 14,
- 4,
- 9,
- 15,
- 8,
- 1,
- 2,
- 7,
- 0,
- 6,
- 13,
- 11,
- 5,
- 12,
- 1,
- 9,
- 11,
- 10,
- 0,
- 8,
- 12,
- 4,
- 13,
- 3,
- 7,
- 15,
- 14,
- 5,
- 6,
- 2,
- 4,
- 0,
- 5,
- 9,
- 7,
- 12,
- 2,
- 10,
- 14,
- 1,
- 3,
- 8,
- 11,
- 6,
- 15,
- 13
- ]), C = x.create([
- 5,
- 14,
- 7,
- 0,
- 9,
- 2,
- 11,
- 4,
- 13,
- 6,
- 15,
- 8,
- 1,
- 10,
- 3,
- 12,
- 6,
- 11,
- 3,
- 7,
- 0,
- 13,
- 5,
- 10,
- 14,
- 15,
- 8,
- 12,
- 4,
- 9,
- 1,
- 2,
- 15,
- 5,
- 1,
- 3,
- 7,
- 14,
- 6,
- 9,
- 11,
- 8,
- 12,
- 2,
- 10,
- 0,
- 4,
- 13,
- 8,
- 6,
- 4,
- 1,
- 3,
- 11,
- 15,
- 0,
- 5,
- 12,
- 2,
- 13,
- 9,
- 7,
- 10,
- 14,
- 12,
- 15,
- 10,
- 4,
- 1,
- 5,
- 8,
- 7,
- 6,
- 2,
- 13,
- 14,
- 0,
- 3,
- 9,
- 11
- ]), Q = x.create([
- 11,
- 14,
- 15,
- 12,
- 5,
- 8,
- 7,
- 9,
- 11,
- 13,
- 14,
- 15,
- 6,
- 7,
- 9,
- 8,
- 7,
- 6,
- 8,
- 13,
- 11,
- 9,
- 7,
- 15,
- 7,
- 12,
- 15,
- 9,
- 11,
- 7,
- 13,
- 12,
- 11,
- 13,
- 6,
- 7,
- 14,
- 9,
- 13,
- 15,
- 14,
- 8,
- 13,
- 6,
- 5,
- 12,
- 7,
- 5,
- 11,
- 12,
- 14,
- 15,
- 14,
- 15,
- 9,
- 8,
- 9,
- 14,
- 5,
- 6,
- 8,
- 6,
- 5,
- 12,
- 9,
- 15,
- 5,
- 11,
- 6,
- 8,
- 13,
- 12,
- 5,
- 12,
- 13,
- 14,
- 11,
- 8,
- 5,
- 6
- ]), t = x.create([
- 8,
- 9,
- 9,
- 11,
- 13,
- 15,
- 15,
- 5,
- 7,
- 7,
- 8,
- 11,
- 14,
- 14,
- 12,
- 6,
- 9,
- 13,
- 15,
- 7,
- 12,
- 8,
- 9,
- 11,
- 7,
- 7,
- 12,
- 7,
- 6,
- 15,
- 13,
- 11,
- 9,
- 7,
- 15,
- 11,
- 8,
- 6,
- 6,
- 14,
- 12,
- 13,
- 5,
- 14,
- 13,
- 13,
- 7,
- 5,
- 15,
- 5,
- 8,
- 11,
- 14,
- 14,
- 6,
- 14,
- 6,
- 9,
- 12,
- 9,
- 12,
- 5,
- 15,
- 8,
- 8,
- 5,
- 12,
- 9,
- 12,
- 5,
- 14,
- 6,
- 8,
- 13,
- 6,
- 5,
- 15,
- 13,
- 11,
- 11
- ]), f = x.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), v = x.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), c = Y.RIPEMD160 = P.extend({
- _doReset: function() {
- this._hash = x.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
- },
- _doProcessBlock: function(L, Z) {
- for (var l = 0; l < 16; l++) {
- var j = Z + l, W = L[j];
- L[j] = (W << 8 | W >>> 24) & 16711935 | (W << 24 | W >>> 8) & 4278255360;
- }
- 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;
- X = p = b[0], u = U = b[1], h = T = b[2], i = G = b[3], gA = y = b[4];
- for (var K, l = 0; l < 80; l += 1)
- 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;
- 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;
- },
- _doFinalize: function() {
- var L = this._data, Z = L.words, l = this._nDataBytes * 8, j = L.sigBytes * 8;
- 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();
- for (var W = this._hash, b = W.words, d = 0; d < 5; d++) {
- var a = b[d];
- b[d] = (a << 8 | a >>> 24) & 16711935 | (a << 24 | a >>> 8) & 4278255360;
- }
- return W;
- },
- clone: function() {
- var L = P.clone.call(this);
- return L._hash = this._hash.clone(), L;
- }
- });
- function n(L, Z, l) {
- return L ^ Z ^ l;
- }
- function H(L, Z, l) {
- return L & Z | ~L & l;
- }
- function s(L, Z, l) {
- return (L | ~Z) ^ l;
- }
- function M(L, Z, l) {
- return L & l | Z & ~l;
- }
- function z(L, Z, l) {
- return L ^ (Z | ~l);
- }
- function O(L, Z) {
- return L << Z | L >>> 32 - Z;
- }
- g.RIPEMD160 = P._createHelper(c), g.HmacRIPEMD160 = P._createHmacHelper(c);
- }(), w.RIPEMD160;
- });
- }(sg)), sg.exports;
- }
- var eg = { exports: {} }, nB;
- function Fg() {
- return nB || (nB = 1, function(A, e) {
- (function(w, B) {
- A.exports = B(E());
- })(k, function(w) {
- (function() {
- var B = w, g = B.lib, r = g.Base, x = B.enc, P = x.Utf8, Y = B.algo;
- Y.HMAC = r.extend({
- /**
- * Initializes a newly created HMAC.
- *
- * @param {Hasher} hasher The hash algorithm to use.
- * @param {WordArray|string} key The secret key.
- *
- * @example
- *
- * var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);
- */
- init: function(D, C) {
- D = this._hasher = new D.init(), typeof C == "string" && (C = P.parse(C));
- var Q = D.blockSize, t = Q * 4;
- C.sigBytes > t && (C = D.finalize(C)), C.clamp();
- for (var f = this._oKey = C.clone(), v = this._iKey = C.clone(), c = f.words, n = v.words, H = 0; H < Q; H++)
- c[H] ^= 1549556828, n[H] ^= 909522486;
- f.sigBytes = v.sigBytes = t, this.reset();
- },
- /**
- * Resets this HMAC to its initial state.
- *
- * @example
- *
- * hmacHasher.reset();
- */
- reset: function() {
- var D = this._hasher;
- D.reset(), D.update(this._iKey);
- },
- /**
- * Updates this HMAC with a message.
- *
- * @param {WordArray|string} messageUpdate The message to append.
- *
- * @return {HMAC} This HMAC instance.
- *
- * @example
- *
- * hmacHasher.update('message');
- * hmacHasher.update(wordArray);
- */
- update: function(D) {
- return this._hasher.update(D), this;
- },
- /**
- * Finalizes the HMAC computation.
- * Note that the finalize operation is effectively a destructive, read-once operation.
- *
- * @param {WordArray|string} messageUpdate (Optional) A final message update.
- *
- * @return {WordArray} The HMAC.
- *
- * @example
- *
- * var hmac = hmacHasher.finalize();
- * var hmac = hmacHasher.finalize('message');
- * var hmac = hmacHasher.finalize(wordArray);
- */
- finalize: function(D) {
- var C = this._hasher, Q = C.finalize(D);
- C.reset();
- var t = C.finalize(this._oKey.clone().concat(Q));
- return t;
- }
- });
- })();
- });
- }(eg)), eg.exports;
- }
- var tg = { exports: {} }, zB;
- function uD() {
- return zB || (zB = 1, function(A, e) {
- (function(w, B, g) {
- A.exports = B(E(), Vg(), Fg());
- })(k, function(w) {
- return function() {
- 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({
- /**
- * Configuration options.
- *
- * @property {number} keySize The key size in words to generate. Default: 4 (128 bits)
- * @property {Hasher} hasher The hasher to use. Default: SHA256
- * @property {number} iterations The number of iterations to perform. Default: 250000
- */
- cfg: r.extend({
- keySize: 128 / 32,
- hasher: Y,
- iterations: 25e4
- }),
- /**
- * Initializes a newly created key derivation function.
- *
- * @param {Object} cfg (Optional) The configuration options to use for the derivation.
- *
- * @example
- *
- * var kdf = CryptoJS.algo.PBKDF2.create();
- * var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8 });
- * var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8, iterations: 1000 });
- */
- init: function(Q) {
- this.cfg = this.cfg.extend(Q);
- },
- /**
- * Computes the Password-Based Key Derivation Function 2.
- *
- * @param {WordArray|string} password The password.
- * @param {WordArray|string} salt A salt.
- *
- * @return {WordArray} The derived key.
- *
- * @example
- *
- * var key = kdf.compute(password, salt);
- */
- compute: function(Q, t) {
- 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; ) {
- var O = v.update(t).finalize(n);
- v.reset();
- for (var L = O.words, Z = L.length, l = O, j = 1; j < z; j++) {
- l = v.finalize(l), v.reset();
- for (var W = l.words, b = 0; b < Z; b++)
- L[b] ^= W[b];
- }
- c.concat(O), s[0]++;
- }
- return c.sigBytes = M * 4, c;
- }
- });
- B.PBKDF2 = function(Q, t, f) {
- return C.create(f).compute(Q, t);
- };
- }(), w.PBKDF2;
- });
- }(tg)), tg.exports;
- }
- var Cg = { exports: {} }, PB;
- function nA() {
- return PB || (PB = 1, function(A, e) {
- (function(w, B, g) {
- A.exports = B(E(), Dw(), Fg());
- })(k, function(w) {
- return function() {
- var B = w, g = B.lib, r = g.Base, x = g.WordArray, P = B.algo, Y = P.MD5, D = P.EvpKDF = r.extend({
- /**
- * Configuration options.
- *
- * @property {number} keySize The key size in words to generate. Default: 4 (128 bits)
- * @property {Hasher} hasher The hash algorithm to use. Default: MD5
- * @property {number} iterations The number of iterations to perform. Default: 1
- */
- cfg: r.extend({
- keySize: 128 / 32,
- hasher: Y,
- iterations: 1
- }),
- /**
- * Initializes a newly created key derivation function.
- *
- * @param {Object} cfg (Optional) The configuration options to use for the derivation.
- *
- * @example
- *
- * var kdf = CryptoJS.algo.EvpKDF.create();
- * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8 });
- * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8, iterations: 1000 });
- */
- init: function(C) {
- this.cfg = this.cfg.extend(C);
- },
- /**
- * Derives a key from a password.
- *
- * @param {WordArray|string} password The password.
- * @param {WordArray|string} salt A salt.
- *
- * @return {WordArray} The derived key.
- *
- * @example
- *
- * var key = kdf.compute(password, salt);
- */
- compute: function(C, Q) {
- 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; ) {
- t && v.update(t), t = v.update(C).finalize(Q), v.reset();
- for (var M = 1; M < s; M++)
- t = v.finalize(t), v.reset();
- c.concat(t);
- }
- return c.sigBytes = H * 4, c;
- }
- });
- B.EvpKDF = function(C, Q, t) {
- return D.create(t).compute(C, Q);
- };
- }(), w.EvpKDF;
- });
- }(Cg)), Cg.exports;
- }
- var Mg = { exports: {} }, cB;
- function $() {
- return cB || (cB = 1, function(A, e) {
- (function(w, B, g) {
- A.exports = B(E(), nA());
- })(k, function(w) {
- w.lib.Cipher || function(B) {
- var g = w, r = g.lib, x = r.Base, P = r.WordArray, Y = r.BufferedBlockAlgorithm, D = g.enc;
- D.Utf8;
- var C = D.Base64, Q = g.algo, t = Q.EvpKDF, f = r.Cipher = Y.extend({
- /**
- * Configuration options.
- *
- * @property {WordArray} iv The IV to use for this operation.
- */
- cfg: x.extend(),
- /**
- * Creates this cipher in encryption mode.
- *
- * @param {WordArray} key The key.
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
- *
- * @return {Cipher} A cipher instance.
- *
- * @static
- *
- * @example
- *
- * var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });
- */
- createEncryptor: function(W, b) {
- return this.create(this._ENC_XFORM_MODE, W, b);
- },
- /**
- * Creates this cipher in decryption mode.
- *
- * @param {WordArray} key The key.
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
- *
- * @return {Cipher} A cipher instance.
- *
- * @static
- *
- * @example
- *
- * var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });
- */
- createDecryptor: function(W, b) {
- return this.create(this._DEC_XFORM_MODE, W, b);
- },
- /**
- * Initializes a newly created cipher.
- *
- * @param {number} xformMode Either the encryption or decryption transormation mode constant.
- * @param {WordArray} key The key.
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
- *
- * @example
- *
- * var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
- */
- init: function(W, b, d) {
- this.cfg = this.cfg.extend(d), this._xformMode = W, this._key = b, this.reset();
- },
- /**
- * Resets this cipher to its initial state.
- *
- * @example
- *
- * cipher.reset();
- */
- reset: function() {
- Y.reset.call(this), this._doReset();
- },
- /**
- * Adds data to be encrypted or decrypted.
- *
- * @param {WordArray|string} dataUpdate The data to encrypt or decrypt.
- *
- * @return {WordArray} The data after processing.
- *
- * @example
- *
- * var encrypted = cipher.process('data');
- * var encrypted = cipher.process(wordArray);
- */
- process: function(W) {
- return this._append(W), this._process();
- },
- /**
- * Finalizes the encryption or decryption process.
- * Note that the finalize operation is effectively a destructive, read-once operation.
- *
- * @param {WordArray|string} dataUpdate The final data to encrypt or decrypt.
- *
- * @return {WordArray} The data after final processing.
- *
- * @example
- *
- * var encrypted = cipher.finalize();
- * var encrypted = cipher.finalize('data');
- * var encrypted = cipher.finalize(wordArray);
- */
- finalize: function(W) {
- W && this._append(W);
- var b = this._doFinalize();
- return b;
- },
- keySize: 128 / 32,
- ivSize: 128 / 32,
- _ENC_XFORM_MODE: 1,
- _DEC_XFORM_MODE: 2,
- /**
- * Creates shortcut functions to a cipher's object interface.
- *
- * @param {Cipher} cipher The cipher to create a helper for.
- *
- * @return {Object} An object with encrypt and decrypt shortcut functions.
- *
- * @static
- *
- * @example
- *
- * var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);
- */
- _createHelper: /* @__PURE__ */ function() {
- function W(b) {
- return typeof b == "string" ? j : L;
- }
- return function(b) {
- return {
- encrypt: function(d, a, V) {
- return W(a).encrypt(b, d, a, V);
- },
- decrypt: function(d, a, V) {
- return W(a).decrypt(b, d, a, V);
- }
- };
- };
- }()
- });
- r.StreamCipher = f.extend({
- _doFinalize: function() {
- var W = this._process(!0);
- return W;
- },
- blockSize: 1
- });
- var v = g.mode = {}, c = r.BlockCipherMode = x.extend({
- /**
- * Creates this mode for encryption.
- *
- * @param {Cipher} cipher A block cipher instance.
- * @param {Array} iv The IV words.
- *
- * @static
- *
- * @example
- *
- * var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);
- */
- createEncryptor: function(W, b) {
- return this.Encryptor.create(W, b);
- },
- /**
- * Creates this mode for decryption.
- *
- * @param {Cipher} cipher A block cipher instance.
- * @param {Array} iv The IV words.
- *
- * @static
- *
- * @example
- *
- * var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);
- */
- createDecryptor: function(W, b) {
- return this.Decryptor.create(W, b);
- },
- /**
- * Initializes a newly created mode.
- *
- * @param {Cipher} cipher A block cipher instance.
- * @param {Array} iv The IV words.
- *
- * @example
- *
- * var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);
- */
- init: function(W, b) {
- this._cipher = W, this._iv = b;
- }
- }), n = v.CBC = function() {
- var W = c.extend();
- W.Encryptor = W.extend({
- /**
- * Processes the data block at offset.
- *
- * @param {Array} words The data words to operate on.
- * @param {number} offset The offset where the block starts.
- *
- * @example
- *
- * mode.processBlock(data.words, offset);
- */
- processBlock: function(d, a) {
- var V = this._cipher, o = V.blockSize;
- b.call(this, d, a, o), V.encryptBlock(d, a), this._prevBlock = d.slice(a, a + o);
- }
- }), W.Decryptor = W.extend({
- /**
- * Processes the data block at offset.
- *
- * @param {Array} words The data words to operate on.
- * @param {number} offset The offset where the block starts.
- *
- * @example
- *
- * mode.processBlock(data.words, offset);
- */
- processBlock: function(d, a) {
- var V = this._cipher, o = V.blockSize, J = d.slice(a, a + o);
- V.decryptBlock(d, a), b.call(this, d, a, o), this._prevBlock = J;
- }
- });
- function b(d, a, V) {
- var o, J = this._iv;
- J ? (o = J, this._iv = B) : o = this._prevBlock;
- for (var q = 0; q < V; q++)
- d[a + q] ^= o[q];
- }
- return W;
- }(), H = g.pad = {}, s = H.Pkcs7 = {
- /**
- * Pads data using the algorithm defined in PKCS #5/7.
- *
- * @param {WordArray} data The data to pad.
- * @param {number} blockSize The multiple that the data should be padded to.
- *
- * @static
- *
- * @example
- *
- * CryptoJS.pad.Pkcs7.pad(wordArray, 4);
- */
- pad: function(W, b) {
- 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)
- o.push(V);
- var q = P.create(o, a);
- W.concat(q);
- },
- /**
- * Unpads data that had been padded using the algorithm defined in PKCS #5/7.
- *
- * @param {WordArray} data The data to unpad.
- *
- * @static
- *
- * @example
- *
- * CryptoJS.pad.Pkcs7.unpad(wordArray);
- */
- unpad: function(W) {
- var b = W.words[W.sigBytes - 1 >>> 2] & 255;
- W.sigBytes -= b;
- }
- };
- r.BlockCipher = f.extend({
- /**
- * Configuration options.
- *
- * @property {Mode} mode The block mode to use. Default: CBC
- * @property {Padding} padding The padding strategy to use. Default: Pkcs7
- */
- cfg: f.cfg.extend({
- mode: n,
- padding: s
- }),
- reset: function() {
- var W;
- f.reset.call(this);
- var b = this.cfg, d = b.iv, a = b.mode;
- 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);
- },
- _doProcessBlock: function(W, b) {
- this._mode.processBlock(W, b);
- },
- _doFinalize: function() {
- var W, b = this.cfg.padding;
- 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;
- },
- blockSize: 128 / 32
- });
- var M = r.CipherParams = x.extend({
- /**
- * Initializes a newly created cipher params object.
- *
- * @param {Object} cipherParams An object with any of the possible cipher parameters.
- *
- * @example
- *
- * var cipherParams = CryptoJS.lib.CipherParams.create({
- * ciphertext: ciphertextWordArray,
- * key: keyWordArray,
- * iv: ivWordArray,
- * salt: saltWordArray,
- * algorithm: CryptoJS.algo.AES,
- * mode: CryptoJS.mode.CBC,
- * padding: CryptoJS.pad.PKCS7,
- * blockSize: 4,
- * formatter: CryptoJS.format.OpenSSL
- * });
- */
- init: function(W) {
- this.mixIn(W);
- },
- /**
- * Converts this cipher params object to a string.
- *
- * @param {Format} formatter (Optional) The formatting strategy to use.
- *
- * @return {string} The stringified cipher params.
- *
- * @throws Error If neither the formatter nor the default formatter is set.
- *
- * @example
- *
- * var string = cipherParams + '';
- * var string = cipherParams.toString();
- * var string = cipherParams.toString(CryptoJS.format.OpenSSL);
- */
- toString: function(W) {
- return (W || this.formatter).stringify(this);
- }
- }), z = g.format = {}, O = z.OpenSSL = {
- /**
- * Converts a cipher params object to an OpenSSL-compatible string.
- *
- * @param {CipherParams} cipherParams The cipher params object.
- *
- * @return {string} The OpenSSL-compatible string.
- *
- * @static
- *
- * @example
- *
- * var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
- */
- stringify: function(W) {
- var b, d = W.ciphertext, a = W.salt;
- return a ? b = P.create([1398893684, 1701076831]).concat(a).concat(d) : b = d, b.toString(C);
- },
- /**
- * Converts an OpenSSL-compatible string to a cipher params object.
- *
- * @param {string} openSSLStr The OpenSSL-compatible string.
- *
- * @return {CipherParams} The cipher params object.
- *
- * @static
- *
- * @example
- *
- * var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
- */
- parse: function(W) {
- var b, d = C.parse(W), a = d.words;
- 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 });
- }
- }, L = r.SerializableCipher = x.extend({
- /**
- * Configuration options.
- *
- * @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL
- */
- cfg: x.extend({
- format: O
- }),
- /**
- * Encrypts a message.
- *
- * @param {Cipher} cipher The cipher algorithm to use.
- * @param {WordArray|string} message The message to encrypt.
- * @param {WordArray} key The key.
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
- *
- * @return {CipherParams} A cipher params object.
- *
- * @static
- *
- * @example
- *
- * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key);
- * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
- * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
- */
- encrypt: function(W, b, d, a) {
- a = this.cfg.extend(a);
- var V = W.createEncryptor(d, a), o = V.finalize(b), J = V.cfg;
- return M.create({
- ciphertext: o,
- key: d,
- iv: J.iv,
- algorithm: W,
- mode: J.mode,
- padding: J.padding,
- blockSize: W.blockSize,
- formatter: a.format
- });
- },
- /**
- * Decrypts serialized ciphertext.
- *
- * @param {Cipher} cipher The cipher algorithm to use.
- * @param {CipherParams|string} ciphertext The ciphertext to decrypt.
- * @param {WordArray} key The key.
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
- *
- * @return {WordArray} The plaintext.
- *
- * @static
- *
- * @example
- *
- * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
- * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
- */
- decrypt: function(W, b, d, a) {
- a = this.cfg.extend(a), b = this._parse(b, a.format);
- var V = W.createDecryptor(d, a).finalize(b.ciphertext);
- return V;
- },
- /**
- * Converts serialized ciphertext to CipherParams,
- * else assumed CipherParams already and returns ciphertext unchanged.
- *
- * @param {CipherParams|string} ciphertext The ciphertext.
- * @param {Formatter} format The formatting strategy to use to parse serialized ciphertext.
- *
- * @return {CipherParams} The unserialized ciphertext.
- *
- * @static
- *
- * @example
- *
- * var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);
- */
- _parse: function(W, b) {
- return typeof W == "string" ? b.parse(W, this) : W;
- }
- }), Z = g.kdf = {}, l = Z.OpenSSL = {
- /**
- * Derives a key and IV from a password.
- *
- * @param {string} password The password to derive from.
- * @param {number} keySize The size in words of the key to generate.
- * @param {number} ivSize The size in words of the IV to generate.
- * @param {WordArray|string} salt (Optional) A 64-bit salt to use. If omitted, a salt will be generated randomly.
- *
- * @return {CipherParams} A cipher params object with the key, IV, and salt.
- *
- * @static
- *
- * @example
- *
- * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
- * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
- */
- execute: function(W, b, d, a, V) {
- if (a || (a = P.random(64 / 8)), V)
- var o = t.create({ keySize: b + d, hasher: V }).compute(W, a);
- else
- var o = t.create({ keySize: b + d }).compute(W, a);
- var J = P.create(o.words.slice(b), d * 4);
- return o.sigBytes = b * 4, M.create({ key: o, iv: J, salt: a });
- }
- }, j = r.PasswordBasedCipher = L.extend({
- /**
- * Configuration options.
- *
- * @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL
- */
- cfg: L.cfg.extend({
- kdf: l
- }),
- /**
- * Encrypts a message using a password.
- *
- * @param {Cipher} cipher The cipher algorithm to use.
- * @param {WordArray|string} message The message to encrypt.
- * @param {string} password The password.
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
- *
- * @return {CipherParams} A cipher params object.
- *
- * @static
- *
- * @example
- *
- * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
- * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
- */
- encrypt: function(W, b, d, a) {
- a = this.cfg.extend(a);
- var V = a.kdf.execute(d, W.keySize, W.ivSize, a.salt, a.hasher);
- a.iv = V.iv;
- var o = L.encrypt.call(this, W, b, V.key, a);
- return o.mixIn(V), o;
- },
- /**
- * Decrypts serialized ciphertext using a password.
- *
- * @param {Cipher} cipher The cipher algorithm to use.
- * @param {CipherParams|string} ciphertext The ciphertext to decrypt.
- * @param {string} password The password.
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
- *
- * @return {WordArray} The plaintext.
- *
- * @static
- *
- * @example
- *
- * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
- * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
- */
- decrypt: function(W, b, d, a) {
- a = this.cfg.extend(a), b = this._parse(b, a.format);
- var V = a.kdf.execute(d, W.keySize, W.ivSize, b.salt, a.hasher);
- a.iv = V.iv;
- var o = L.decrypt.call(this, W, b, V.key, a);
- return o;
- }
- });
- }();
- });
- }(Mg)), Mg.exports;
- }
- var vg = { exports: {} }, YB;
- function yD() {
- return YB || (YB = 1, function(A, e) {
- (function(w, B, g) {
- A.exports = B(E(), $());
- })(k, function(w) {
- return w.mode.CFB = function() {
- var B = w.lib.BlockCipherMode.extend();
- B.Encryptor = B.extend({
- processBlock: function(r, x) {
- var P = this._cipher, Y = P.blockSize;
- g.call(this, r, x, Y, P), this._prevBlock = r.slice(x, x + Y);
- }
- }), B.Decryptor = B.extend({
- processBlock: function(r, x) {
- var P = this._cipher, Y = P.blockSize, D = r.slice(x, x + Y);
- g.call(this, r, x, Y, P), this._prevBlock = D;
- }
- });
- function g(r, x, P, Y) {
- var D, C = this._iv;
- C ? (D = C.slice(0), this._iv = void 0) : D = this._prevBlock, Y.encryptBlock(D, 0);
- for (var Q = 0; Q < P; Q++)
- r[x + Q] ^= D[Q];
- }
- return B;
- }(), w.mode.CFB;
- });
- }(vg)), vg.exports;
- }
- var rg = { exports: {} }, QB;
- function XD() {
- return QB || (QB = 1, function(A, e) {
- (function(w, B, g) {
- A.exports = B(E(), $());
- })(k, function(w) {
- return w.mode.CTR = function() {
- var B = w.lib.BlockCipherMode.extend(), g = B.Encryptor = B.extend({
- processBlock: function(r, x) {
- var P = this._cipher, Y = P.blockSize, D = this._iv, C = this._counter;
- D && (C = this._counter = D.slice(0), this._iv = void 0);
- var Q = C.slice(0);
- P.encryptBlock(Q, 0), C[Y - 1] = C[Y - 1] + 1 | 0;
- for (var t = 0; t < Y; t++)
- r[x + t] ^= Q[t];
- }
- });
- return B.Decryptor = g, B;
- }(), w.mode.CTR;
- });
- }(rg)), rg.exports;
- }
- var fg = { exports: {} }, WB;
- function jD() {
- return WB || (WB = 1, function(A, e) {
- (function(w, B, g) {
- A.exports = B(E(), $());
- })(k, function(w) {
- /** @preserve
- * Counter block mode compatible with Dr Brian Gladman fileenc.c
- * derived from CryptoJS.mode.CTR
- * Jan Hruby jhruby.web@gmail.com
- */
- return w.mode.CTRGladman = function() {
- var B = w.lib.BlockCipherMode.extend();
- function g(P) {
- if ((P >> 24 & 255) === 255) {
- var Y = P >> 16 & 255, D = P >> 8 & 255, C = P & 255;
- 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;
- } else
- P += 1 << 24;
- return P;
- }
- function r(P) {
- return (P[0] = g(P[0])) === 0 && (P[1] = g(P[1])), P;
- }
- var x = B.Encryptor = B.extend({
- processBlock: function(P, Y) {
- var D = this._cipher, C = D.blockSize, Q = this._iv, t = this._counter;
- Q && (t = this._counter = Q.slice(0), this._iv = void 0), r(t);
- var f = t.slice(0);
- D.encryptBlock(f, 0);
- for (var v = 0; v < C; v++)
- P[Y + v] ^= f[v];
- }
- });
- return B.Decryptor = x, B;
- }(), w.mode.CTRGladman;
- });
- }(fg)), fg.exports;
- }
- var ng = { exports: {} }, HB;
- function VD() {
- return HB || (HB = 1, function(A, e) {
- (function(w, B, g) {
- A.exports = B(E(), $());
- })(k, function(w) {
- return w.mode.OFB = function() {
- var B = w.lib.BlockCipherMode.extend(), g = B.Encryptor = B.extend({
- processBlock: function(r, x) {
- var P = this._cipher, Y = P.blockSize, D = this._iv, C = this._keystream;
- D && (C = this._keystream = D.slice(0), this._iv = void 0), P.encryptBlock(C, 0);
- for (var Q = 0; Q < Y; Q++)
- r[x + Q] ^= C[Q];
- }
- });
- return B.Decryptor = g, B;
- }(), w.mode.OFB;
- });
- }(ng)), ng.exports;
- }
- var zg = { exports: {} }, LB;
- function FD() {
- return LB || (LB = 1, function(A, e) {
- (function(w, B, g) {
- A.exports = B(E(), $());
- })(k, function(w) {
- return w.mode.ECB = function() {
- var B = w.lib.BlockCipherMode.extend();
- return B.Encryptor = B.extend({
- processBlock: function(g, r) {
- this._cipher.encryptBlock(g, r);
- }
- }), B.Decryptor = B.extend({
- processBlock: function(g, r) {
- this._cipher.decryptBlock(g, r);
- }
- }), B;
- }(), w.mode.ECB;
- });
- }(zg)), zg.exports;
- }
- var Pg = { exports: {} }, OB;
- function oD() {
- return OB || (OB = 1, function(A, e) {
- (function(w, B, g) {
- A.exports = B(E(), $());
- })(k, function(w) {
- return w.pad.AnsiX923 = {
- pad: function(B, g) {
- var r = B.sigBytes, x = g * 4, P = x - r % x, Y = r + P - 1;
- B.clamp(), B.words[Y >>> 2] |= P << 24 - Y % 4 * 8, B.sigBytes += P;
- },
- unpad: function(B) {
- var g = B.words[B.sigBytes - 1 >>> 2] & 255;
- B.sigBytes -= g;
- }
- }, w.pad.Ansix923;
- });
- }(Pg)), Pg.exports;
- }
- var cg = { exports: {} }, xB;
- function ND() {
- return xB || (xB = 1, function(A, e) {
- (function(w, B, g) {
- A.exports = B(E(), $());
- })(k, function(w) {
- return w.pad.Iso10126 = {
- pad: function(B, g) {
- var r = g * 4, x = r - B.sigBytes % r;
- B.concat(w.lib.WordArray.random(x - 1)).concat(w.lib.WordArray.create([x << 24], 1));
- },
- unpad: function(B) {
- var g = B.words[B.sigBytes - 1 >>> 2] & 255;
- B.sigBytes -= g;
- }
- }, w.pad.Iso10126;
- });
- }(cg)), cg.exports;
- }
- var Yg = { exports: {} }, ZB;
- function mD() {
- return ZB || (ZB = 1, function(A, e) {
- (function(w, B, g) {
- A.exports = B(E(), $());
- })(k, function(w) {
- return w.pad.Iso97971 = {
- pad: function(B, g) {
- B.concat(w.lib.WordArray.create([2147483648], 1)), w.pad.ZeroPadding.pad(B, g);
- },
- unpad: function(B) {
- w.pad.ZeroPadding.unpad(B), B.sigBytes--;
- }
- }, w.pad.Iso97971;
- });
- }(Yg)), Yg.exports;
- }
- var Qg = { exports: {} }, bB;
- function JD() {
- return bB || (bB = 1, function(A, e) {
- (function(w, B, g) {
- A.exports = B(E(), $());
- })(k, function(w) {
- return w.pad.ZeroPadding = {
- pad: function(B, g) {
- var r = g * 4;
- B.clamp(), B.sigBytes += r - (B.sigBytes % r || r);
- },
- unpad: function(B) {
- for (var g = B.words, r = B.sigBytes - 1, r = B.sigBytes - 1; r >= 0; r--)
- if (g[r >>> 2] >>> 24 - r % 4 * 8 & 255) {
- B.sigBytes = r + 1;
- break;
- }
- }
- }, w.pad.ZeroPadding;
- });
- }(Qg)), Qg.exports;
- }
- var Wg = { exports: {} }, lB;
- function kD() {
- return lB || (lB = 1, function(A, e) {
- (function(w, B, g) {
- A.exports = B(E(), $());
- })(k, function(w) {
- return w.pad.NoPadding = {
- pad: function() {
- },
- unpad: function() {
- }
- }, w.pad.NoPadding;
- });
- }(Wg)), Wg.exports;
- }
- var Hg = { exports: {} }, GB;
- function KD() {
- return GB || (GB = 1, function(A, e) {
- (function(w, B, g) {
- A.exports = B(E(), $());
- })(k, function(w) {
- return function(B) {
- var g = w, r = g.lib, x = r.CipherParams, P = g.enc, Y = P.Hex, D = g.format;
- D.Hex = {
- /**
- * Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
- *
- * @param {CipherParams} cipherParams The cipher params object.
- *
- * @return {string} The hexadecimally encoded string.
- *
- * @static
- *
- * @example
- *
- * var hexString = CryptoJS.format.Hex.stringify(cipherParams);
- */
- stringify: function(C) {
- return C.ciphertext.toString(Y);
- },
- /**
- * Converts a hexadecimally encoded ciphertext string to a cipher params object.
- *
- * @param {string} input The hexadecimally encoded string.
- *
- * @return {CipherParams} The cipher params object.
- *
- * @static
- *
- * @example
- *
- * var cipherParams = CryptoJS.format.Hex.parse(hexString);
- */
- parse: function(C) {
- var Q = Y.parse(C);
- return x.create({ ciphertext: Q });
- }
- };
- }(), w.format.Hex;
- });
- }(Hg)), Hg.exports;
- }
- var Lg = { exports: {} }, dB;
- function ED() {
- return dB || (dB = 1, function(A, e) {
- (function(w, B, g) {
- A.exports = B(E(), zA(), PA(), nA(), $());
- })(k, function(w) {
- return function() {
- var B = w, g = B.lib, r = g.BlockCipher, x = B.algo, P = [], Y = [], D = [], C = [], Q = [], t = [], f = [], v = [], c = [], n = [];
- (function() {
- for (var M = [], z = 0; z < 256; z++)
- z < 128 ? M[z] = z << 1 : M[z] = z << 1 ^ 283;
- for (var O = 0, L = 0, z = 0; z < 256; z++) {
- var Z = L ^ L << 1 ^ L << 2 ^ L << 3 ^ L << 4;
- Z = Z >>> 8 ^ Z & 255 ^ 99, P[O] = Z, Y[Z] = O;
- var l = M[O], j = M[l], W = M[j], b = M[Z] * 257 ^ Z * 16843008;
- D[O] = b << 24 | b >>> 8, C[O] = b << 16 | b >>> 16, Q[O] = b << 8 | b >>> 24, t[O] = b;
- var b = W * 16843009 ^ j * 65537 ^ l * 257 ^ O * 16843008;
- 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;
- }
- })();
- var H = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], s = x.AES = r.extend({
- _doReset: function() {
- var M;
- if (!(this._nRounds && this._keyPriorReset === this._key)) {
- 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++)
- 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);
- for (var b = this._invKeySchedule = [], d = 0; d < l; d++) {
- var W = l - d;
- if (d % 4)
- var M = j[W];
- else
- var M = j[W - 4];
- 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]];
- }
- }
- },
- encryptBlock: function(M, z) {
- this._doCryptBlock(M, z, this._keySchedule, D, C, Q, t, P);
- },
- decryptBlock: function(M, z) {
- var O = M[z + 1];
- M[z + 1] = M[z + 3], M[z + 3] = O, this._doCryptBlock(M, z, this._invKeySchedule, f, v, c, n, Y);
- var O = M[z + 1];
- M[z + 1] = M[z + 3], M[z + 3] = O;
- },
- _doCryptBlock: function(M, z, O, L, Z, l, j, W) {
- 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++) {
- 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++];
- d = p, a = U, V = T, o = G;
- }
- 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++];
- M[z] = p, M[z + 1] = U, M[z + 2] = T, M[z + 3] = G;
- },
- keySize: 256 / 32
- });
- B.AES = r._createHelper(s);
- }(), w.AES;
- });
- }(Lg)), Lg.exports;
- }
- var Og = { exports: {} }, aB;
- function ID() {
- return aB || (aB = 1, function(A, e) {
- (function(w, B, g) {
- A.exports = B(E(), zA(), PA(), nA(), $());
- })(k, function(w) {
- return function() {
- var B = w, g = B.lib, r = g.WordArray, x = g.BlockCipher, P = B.algo, Y = [
- 57,
- 49,
- 41,
- 33,
- 25,
- 17,
- 9,
- 1,
- 58,
- 50,
- 42,
- 34,
- 26,
- 18,
- 10,
- 2,
- 59,
- 51,
- 43,
- 35,
- 27,
- 19,
- 11,
- 3,
- 60,
- 52,
- 44,
- 36,
- 63,
- 55,
- 47,
- 39,
- 31,
- 23,
- 15,
- 7,
- 62,
- 54,
- 46,
- 38,
- 30,
- 22,
- 14,
- 6,
- 61,
- 53,
- 45,
- 37,
- 29,
- 21,
- 13,
- 5,
- 28,
- 20,
- 12,
- 4
- ], D = [
- 14,
- 17,
- 11,
- 24,
- 1,
- 5,
- 3,
- 28,
- 15,
- 6,
- 21,
- 10,
- 23,
- 19,
- 12,
- 4,
- 26,
- 8,
- 16,
- 7,
- 27,
- 20,
- 13,
- 2,
- 41,
- 52,
- 31,
- 37,
- 47,
- 55,
- 30,
- 40,
- 51,
- 45,
- 33,
- 48,
- 44,
- 49,
- 39,
- 56,
- 34,
- 53,
- 46,
- 42,
- 50,
- 36,
- 29,
- 32
- ], C = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28], Q = [
- {
- 0: 8421888,
- 268435456: 32768,
- 536870912: 8421378,
- 805306368: 2,
- 1073741824: 512,
- 1342177280: 8421890,
- 1610612736: 8389122,
- 1879048192: 8388608,
- 2147483648: 514,
- 2415919104: 8389120,
- 2684354560: 33280,
- 2952790016: 8421376,
- 3221225472: 32770,
- 3489660928: 8388610,
- 3758096384: 0,
- 4026531840: 33282,
- 134217728: 0,
- 402653184: 8421890,
- 671088640: 33282,
- 939524096: 32768,
- 1207959552: 8421888,
- 1476395008: 512,
- 1744830464: 8421378,
- 2013265920: 2,
- 2281701376: 8389120,
- 2550136832: 33280,
- 2818572288: 8421376,
- 3087007744: 8389122,
- 3355443200: 8388610,
- 3623878656: 32770,
- 3892314112: 514,
- 4160749568: 8388608,
- 1: 32768,
- 268435457: 2,
- 536870913: 8421888,
- 805306369: 8388608,
- 1073741825: 8421378,
- 1342177281: 33280,
- 1610612737: 512,
- 1879048193: 8389122,
- 2147483649: 8421890,
- 2415919105: 8421376,
- 2684354561: 8388610,
- 2952790017: 33282,
- 3221225473: 514,
- 3489660929: 8389120,
- 3758096385: 32770,
- 4026531841: 0,
- 134217729: 8421890,
- 402653185: 8421376,
- 671088641: 8388608,
- 939524097: 512,
- 1207959553: 32768,
- 1476395009: 8388610,
- 1744830465: 2,
- 2013265921: 33282,
- 2281701377: 32770,
- 2550136833: 8389122,
- 2818572289: 514,
- 3087007745: 8421888,
- 3355443201: 8389120,
- 3623878657: 0,
- 3892314113: 33280,
- 4160749569: 8421378
- },
- {
- 0: 1074282512,
- 16777216: 16384,
- 33554432: 524288,
- 50331648: 1074266128,
- 67108864: 1073741840,
- 83886080: 1074282496,
- 100663296: 1073758208,
- 117440512: 16,
- 134217728: 540672,
- 150994944: 1073758224,
- 167772160: 1073741824,
- 184549376: 540688,
- 201326592: 524304,
- 218103808: 0,
- 234881024: 16400,
- 251658240: 1074266112,
- 8388608: 1073758208,
- 25165824: 540688,
- 41943040: 16,
- 58720256: 1073758224,
- 75497472: 1074282512,
- 92274688: 1073741824,
- 109051904: 524288,
- 125829120: 1074266128,
- 142606336: 524304,
- 159383552: 0,
- 176160768: 16384,
- 192937984: 1074266112,
- 209715200: 1073741840,
- 226492416: 540672,
- 243269632: 1074282496,
- 260046848: 16400,
- 268435456: 0,
- 285212672: 1074266128,
- 301989888: 1073758224,
- 318767104: 1074282496,
- 335544320: 1074266112,
- 352321536: 16,
- 369098752: 540688,
- 385875968: 16384,
- 402653184: 16400,
- 419430400: 524288,
- 436207616: 524304,
- 452984832: 1073741840,
- 469762048: 540672,
- 486539264: 1073758208,
- 503316480: 1073741824,
- 520093696: 1074282512,
- 276824064: 540688,
- 293601280: 524288,
- 310378496: 1074266112,
- 327155712: 16384,
- 343932928: 1073758208,
- 360710144: 1074282512,
- 377487360: 16,
- 394264576: 1073741824,
- 411041792: 1074282496,
- 427819008: 1073741840,
- 444596224: 1073758224,
- 461373440: 524304,
- 478150656: 0,
- 494927872: 16400,
- 511705088: 1074266128,
- 528482304: 540672
- },
- {
- 0: 260,
- 1048576: 0,
- 2097152: 67109120,
- 3145728: 65796,
- 4194304: 65540,
- 5242880: 67108868,
- 6291456: 67174660,
- 7340032: 67174400,
- 8388608: 67108864,
- 9437184: 67174656,
- 10485760: 65792,
- 11534336: 67174404,
- 12582912: 67109124,
- 13631488: 65536,
- 14680064: 4,
- 15728640: 256,
- 524288: 67174656,
- 1572864: 67174404,
- 2621440: 0,
- 3670016: 67109120,
- 4718592: 67108868,
- 5767168: 65536,
- 6815744: 65540,
- 7864320: 260,
- 8912896: 4,
- 9961472: 256,
- 11010048: 67174400,
- 12058624: 65796,
- 13107200: 65792,
- 14155776: 67109124,
- 15204352: 67174660,
- 16252928: 67108864,
- 16777216: 67174656,
- 17825792: 65540,
- 18874368: 65536,
- 19922944: 67109120,
- 20971520: 256,
- 22020096: 67174660,
- 23068672: 67108868,
- 24117248: 0,
- 25165824: 67109124,
- 26214400: 67108864,
- 27262976: 4,
- 28311552: 65792,
- 29360128: 67174400,
- 30408704: 260,
- 31457280: 65796,
- 32505856: 67174404,
- 17301504: 67108864,
- 18350080: 260,
- 19398656: 67174656,
- 20447232: 0,
- 21495808: 65540,
- 22544384: 67109120,
- 23592960: 256,
- 24641536: 67174404,
- 25690112: 65536,
- 26738688: 67174660,
- 27787264: 65796,
- 28835840: 67108868,
- 29884416: 67109124,
- 30932992: 67174400,
- 31981568: 4,
- 33030144: 65792
- },
- {
- 0: 2151682048,
- 65536: 2147487808,
- 131072: 4198464,
- 196608: 2151677952,
- 262144: 0,
- 327680: 4198400,
- 393216: 2147483712,
- 458752: 4194368,
- 524288: 2147483648,
- 589824: 4194304,
- 655360: 64,
- 720896: 2147487744,
- 786432: 2151678016,
- 851968: 4160,
- 917504: 4096,
- 983040: 2151682112,
- 32768: 2147487808,
- 98304: 64,
- 163840: 2151678016,
- 229376: 2147487744,
- 294912: 4198400,
- 360448: 2151682112,
- 425984: 0,
- 491520: 2151677952,
- 557056: 4096,
- 622592: 2151682048,
- 688128: 4194304,
- 753664: 4160,
- 819200: 2147483648,
- 884736: 4194368,
- 950272: 4198464,
- 1015808: 2147483712,
- 1048576: 4194368,
- 1114112: 4198400,
- 1179648: 2147483712,
- 1245184: 0,
- 1310720: 4160,
- 1376256: 2151678016,
- 1441792: 2151682048,
- 1507328: 2147487808,
- 1572864: 2151682112,
- 1638400: 2147483648,
- 1703936: 2151677952,
- 1769472: 4198464,
- 1835008: 2147487744,
- 1900544: 4194304,
- 1966080: 64,
- 2031616: 4096,
- 1081344: 2151677952,
- 1146880: 2151682112,
- 1212416: 0,
- 1277952: 4198400,
- 1343488: 4194368,
- 1409024: 2147483648,
- 1474560: 2147487808,
- 1540096: 64,
- 1605632: 2147483712,
- 1671168: 4096,
- 1736704: 2147487744,
- 1802240: 2151678016,
- 1867776: 4160,
- 1933312: 2151682048,
- 1998848: 4194304,
- 2064384: 4198464
- },
- {
- 0: 128,
- 4096: 17039360,
- 8192: 262144,
- 12288: 536870912,
- 16384: 537133184,
- 20480: 16777344,
- 24576: 553648256,
- 28672: 262272,
- 32768: 16777216,
- 36864: 537133056,
- 40960: 536871040,
- 45056: 553910400,
- 49152: 553910272,
- 53248: 0,
- 57344: 17039488,
- 61440: 553648128,
- 2048: 17039488,
- 6144: 553648256,
- 10240: 128,
- 14336: 17039360,
- 18432: 262144,
- 22528: 537133184,
- 26624: 553910272,
- 30720: 536870912,
- 34816: 537133056,
- 38912: 0,
- 43008: 553910400,
- 47104: 16777344,
- 51200: 536871040,
- 55296: 553648128,
- 59392: 16777216,
- 63488: 262272,
- 65536: 262144,
- 69632: 128,
- 73728: 536870912,
- 77824: 553648256,
- 81920: 16777344,
- 86016: 553910272,
- 90112: 537133184,
- 94208: 16777216,
- 98304: 553910400,
- 102400: 553648128,
- 106496: 17039360,
- 110592: 537133056,
- 114688: 262272,
- 118784: 536871040,
- 122880: 0,
- 126976: 17039488,
- 67584: 553648256,
- 71680: 16777216,
- 75776: 17039360,
- 79872: 537133184,
- 83968: 536870912,
- 88064: 17039488,
- 92160: 128,
- 96256: 553910272,
- 100352: 262272,
- 104448: 553910400,
- 108544: 0,
- 112640: 553648128,
- 116736: 16777344,
- 120832: 262144,
- 124928: 537133056,
- 129024: 536871040
- },
- {
- 0: 268435464,
- 256: 8192,
- 512: 270532608,
- 768: 270540808,
- 1024: 268443648,
- 1280: 2097152,
- 1536: 2097160,
- 1792: 268435456,
- 2048: 0,
- 2304: 268443656,
- 2560: 2105344,
- 2816: 8,
- 3072: 270532616,
- 3328: 2105352,
- 3584: 8200,
- 3840: 270540800,
- 128: 270532608,
- 384: 270540808,
- 640: 8,
- 896: 2097152,
- 1152: 2105352,
- 1408: 268435464,
- 1664: 268443648,
- 1920: 8200,
- 2176: 2097160,
- 2432: 8192,
- 2688: 268443656,
- 2944: 270532616,
- 3200: 0,
- 3456: 270540800,
- 3712: 2105344,
- 3968: 268435456,
- 4096: 268443648,
- 4352: 270532616,
- 4608: 270540808,
- 4864: 8200,
- 5120: 2097152,
- 5376: 268435456,
- 5632: 268435464,
- 5888: 2105344,
- 6144: 2105352,
- 6400: 0,
- 6656: 8,
- 6912: 270532608,
- 7168: 8192,
- 7424: 268443656,
- 7680: 270540800,
- 7936: 2097160,
- 4224: 8,
- 4480: 2105344,
- 4736: 2097152,
- 4992: 268435464,
- 5248: 268443648,
- 5504: 8200,
- 5760: 270540808,
- 6016: 270532608,
- 6272: 270540800,
- 6528: 270532616,
- 6784: 8192,
- 7040: 2105352,
- 7296: 2097160,
- 7552: 0,
- 7808: 268435456,
- 8064: 268443656
- },
- {
- 0: 1048576,
- 16: 33555457,
- 32: 1024,
- 48: 1049601,
- 64: 34604033,
- 80: 0,
- 96: 1,
- 112: 34603009,
- 128: 33555456,
- 144: 1048577,
- 160: 33554433,
- 176: 34604032,
- 192: 34603008,
- 208: 1025,
- 224: 1049600,
- 240: 33554432,
- 8: 34603009,
- 24: 0,
- 40: 33555457,
- 56: 34604032,
- 72: 1048576,
- 88: 33554433,
- 104: 33554432,
- 120: 1025,
- 136: 1049601,
- 152: 33555456,
- 168: 34603008,
- 184: 1048577,
- 200: 1024,
- 216: 34604033,
- 232: 1,
- 248: 1049600,
- 256: 33554432,
- 272: 1048576,
- 288: 33555457,
- 304: 34603009,
- 320: 1048577,
- 336: 33555456,
- 352: 34604032,
- 368: 1049601,
- 384: 1025,
- 400: 34604033,
- 416: 1049600,
- 432: 1,
- 448: 0,
- 464: 34603008,
- 480: 33554433,
- 496: 1024,
- 264: 1049600,
- 280: 33555457,
- 296: 34603009,
- 312: 1,
- 328: 33554432,
- 344: 1048576,
- 360: 1025,
- 376: 34604032,
- 392: 33554433,
- 408: 34603008,
- 424: 0,
- 440: 34604033,
- 456: 1049601,
- 472: 1024,
- 488: 33555456,
- 504: 1048577
- },
- {
- 0: 134219808,
- 1: 131072,
- 2: 134217728,
- 3: 32,
- 4: 131104,
- 5: 134350880,
- 6: 134350848,
- 7: 2048,
- 8: 134348800,
- 9: 134219776,
- 10: 133120,
- 11: 134348832,
- 12: 2080,
- 13: 0,
- 14: 134217760,
- 15: 133152,
- 2147483648: 2048,
- 2147483649: 134350880,
- 2147483650: 134219808,
- 2147483651: 134217728,
- 2147483652: 134348800,
- 2147483653: 133120,
- 2147483654: 133152,
- 2147483655: 32,
- 2147483656: 134217760,
- 2147483657: 2080,
- 2147483658: 131104,
- 2147483659: 134350848,
- 2147483660: 0,
- 2147483661: 134348832,
- 2147483662: 134219776,
- 2147483663: 131072,
- 16: 133152,
- 17: 134350848,
- 18: 32,
- 19: 2048,
- 20: 134219776,
- 21: 134217760,
- 22: 134348832,
- 23: 131072,
- 24: 0,
- 25: 131104,
- 26: 134348800,
- 27: 134219808,
- 28: 134350880,
- 29: 133120,
- 30: 2080,
- 31: 134217728,
- 2147483664: 131072,
- 2147483665: 2048,
- 2147483666: 134348832,
- 2147483667: 133152,
- 2147483668: 32,
- 2147483669: 134348800,
- 2147483670: 134217728,
- 2147483671: 134219808,
- 2147483672: 134350880,
- 2147483673: 134217760,
- 2147483674: 134219776,
- 2147483675: 0,
- 2147483676: 133120,
- 2147483677: 2080,
- 2147483678: 131104,
- 2147483679: 134350848
- }
- ], t = [
- 4160749569,
- 528482304,
- 33030144,
- 2064384,
- 129024,
- 8064,
- 504,
- 2147483679
- ], f = P.DES = x.extend({
- _doReset: function() {
- for (var H = this._key, s = H.words, M = [], z = 0; z < 56; z++) {
- var O = Y[z] - 1;
- M[z] = s[O >>> 5] >>> 31 - O % 32 & 1;
- }
- for (var L = this._subKeys = [], Z = 0; Z < 16; Z++) {
- for (var l = L[Z] = [], j = C[Z], z = 0; z < 24; z++)
- 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;
- l[0] = l[0] << 1 | l[0] >>> 31;
- for (var z = 1; z < 7; z++)
- l[z] = l[z] >>> (z - 1) * 4 + 3;
- l[7] = l[7] << 5 | l[7] >>> 27;
- }
- for (var W = this._invSubKeys = [], z = 0; z < 16; z++)
- W[z] = L[15 - z];
- },
- encryptBlock: function(H, s) {
- this._doCryptBlock(H, s, this._subKeys);
- },
- decryptBlock: function(H, s) {
- this._doCryptBlock(H, s, this._invSubKeys);
- },
- _doCryptBlock: function(H, s, M) {
- 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);
- for (var z = 0; z < 16; z++) {
- for (var O = M[z], L = this._lBlock, Z = this._rBlock, l = 0, j = 0; j < 8; j++)
- l |= Q[j][((Z ^ O[j]) & t[j]) >>> 0];
- this._lBlock = Z, this._rBlock = L ^ l;
- }
- var W = this._lBlock;
- 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;
- },
- keySize: 64 / 32,
- ivSize: 64 / 32,
- blockSize: 64 / 32
- });
- function v(H, s) {
- var M = (this._lBlock >>> H ^ this._rBlock) & s;
- this._rBlock ^= M, this._lBlock ^= M << H;
- }
- function c(H, s) {
- var M = (this._rBlock >>> H ^ this._lBlock) & s;
- this._lBlock ^= M, this._rBlock ^= M << H;
- }
- B.DES = x._createHelper(f);
- var n = P.TripleDES = x.extend({
- _doReset: function() {
- var H = this._key, s = H.words;
- if (s.length !== 2 && s.length !== 4 && s.length < 6)
- throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
- 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);
- this._des1 = f.createEncryptor(r.create(M)), this._des2 = f.createEncryptor(r.create(z)), this._des3 = f.createEncryptor(r.create(O));
- },
- encryptBlock: function(H, s) {
- this._des1.encryptBlock(H, s), this._des2.decryptBlock(H, s), this._des3.encryptBlock(H, s);
- },
- decryptBlock: function(H, s) {
- this._des3.decryptBlock(H, s), this._des2.encryptBlock(H, s), this._des1.decryptBlock(H, s);
- },
- keySize: 192 / 32,
- ivSize: 64 / 32,
- blockSize: 64 / 32
- });
- B.TripleDES = x._createHelper(n);
- }(), w.TripleDES;
- });
- }(Og)), Og.exports;
- }
- var xg = { exports: {} }, uB;
- function pD() {
- return uB || (uB = 1, function(A, e) {
- (function(w, B, g) {
- A.exports = B(E(), zA(), PA(), nA(), $());
- })(k, function(w) {
- return function() {
- var B = w, g = B.lib, r = g.StreamCipher, x = B.algo, P = x.RC4 = r.extend({
- _doReset: function() {
- for (var C = this._key, Q = C.words, t = C.sigBytes, f = this._S = [], v = 0; v < 256; v++)
- f[v] = v;
- for (var v = 0, c = 0; v < 256; v++) {
- var n = v % t, H = Q[n >>> 2] >>> 24 - n % 4 * 8 & 255;
- c = (c + f[v] + H) % 256;
- var s = f[v];
- f[v] = f[c], f[c] = s;
- }
- this._i = this._j = 0;
- },
- _doProcessBlock: function(C, Q) {
- C[Q] ^= Y.call(this);
- },
- keySize: 256 / 32,
- ivSize: 0
- });
- function Y() {
- for (var C = this._S, Q = this._i, t = this._j, f = 0, v = 0; v < 4; v++) {
- Q = (Q + 1) % 256, t = (t + C[Q]) % 256;
- var c = C[Q];
- C[Q] = C[t], C[t] = c, f |= C[(C[Q] + C[t]) % 256] << 24 - v * 8;
- }
- return this._i = Q, this._j = t, f;
- }
- B.RC4 = r._createHelper(P);
- var D = x.RC4Drop = P.extend({
- /**
- * Configuration options.
- *
- * @property {number} drop The number of keystream words to drop. Default 192
- */
- cfg: P.cfg.extend({
- drop: 192
- }),
- _doReset: function() {
- P._doReset.call(this);
- for (var C = this.cfg.drop; C > 0; C--)
- Y.call(this);
- }
- });
- B.RC4Drop = r._createHelper(D);
- }(), w.RC4;
- });
- }(xg)), xg.exports;
- }
- var Zg = { exports: {} }, yB;
- function TD() {
- return yB || (yB = 1, function(A, e) {
- (function(w, B, g) {
- A.exports = B(E(), zA(), PA(), nA(), $());
- })(k, function(w) {
- return function() {
- var B = w, g = B.lib, r = g.StreamCipher, x = B.algo, P = [], Y = [], D = [], C = x.Rabbit = r.extend({
- _doReset: function() {
- for (var t = this._key.words, f = this.cfg.iv, v = 0; v < 4; v++)
- t[v] = (t[v] << 8 | t[v] >>> 24) & 16711935 | (t[v] << 24 | t[v] >>> 8) & 4278255360;
- var c = this._X = [
- t[0],
- t[3] << 16 | t[2] >>> 16,
- t[1],
- t[0] << 16 | t[3] >>> 16,
- t[2],
- t[1] << 16 | t[0] >>> 16,
- t[3],
- t[2] << 16 | t[1] >>> 16
- ], n = this._C = [
- t[2] << 16 | t[2] >>> 16,
- t[0] & 4294901760 | t[1] & 65535,
- t[3] << 16 | t[3] >>> 16,
- t[1] & 4294901760 | t[2] & 65535,
- t[0] << 16 | t[0] >>> 16,
- t[2] & 4294901760 | t[3] & 65535,
- t[1] << 16 | t[1] >>> 16,
- t[3] & 4294901760 | t[0] & 65535
- ];
- this._b = 0;
- for (var v = 0; v < 4; v++)
- Q.call(this);
- for (var v = 0; v < 8; v++)
- n[v] ^= c[v + 4 & 7];
- if (f) {
- 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;
- n[0] ^= z, n[1] ^= L, n[2] ^= O, n[3] ^= Z, n[4] ^= z, n[5] ^= L, n[6] ^= O, n[7] ^= Z;
- for (var v = 0; v < 4; v++)
- Q.call(this);
- }
- },
- _doProcessBlock: function(t, f) {
- var v = this._X;
- 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;
- for (var c = 0; c < 4; c++)
- P[c] = (P[c] << 8 | P[c] >>> 24) & 16711935 | (P[c] << 24 | P[c] >>> 8) & 4278255360, t[f + c] ^= P[c];
- },
- blockSize: 128 / 32,
- ivSize: 64 / 32
- });
- function Q() {
- for (var t = this._X, f = this._C, v = 0; v < 8; v++)
- Y[v] = f[v];
- 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;
- for (var v = 0; v < 8; v++) {
- 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);
- D[v] = s ^ M;
- }
- 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;
- }
- B.Rabbit = r._createHelper(C);
- }(), w.Rabbit;
- });
- }(Zg)), Zg.exports;
- }
- var bg = { exports: {} }, XB;
- function SD() {
- return XB || (XB = 1, function(A, e) {
- (function(w, B, g) {
- A.exports = B(E(), zA(), PA(), nA(), $());
- })(k, function(w) {
- return function() {
- var B = w, g = B.lib, r = g.StreamCipher, x = B.algo, P = [], Y = [], D = [], C = x.RabbitLegacy = r.extend({
- _doReset: function() {
- var t = this._key.words, f = this.cfg.iv, v = this._X = [
- t[0],
- t[3] << 16 | t[2] >>> 16,
- t[1],
- t[0] << 16 | t[3] >>> 16,
- t[2],
- t[1] << 16 | t[0] >>> 16,
- t[3],
- t[2] << 16 | t[1] >>> 16
- ], c = this._C = [
- t[2] << 16 | t[2] >>> 16,
- t[0] & 4294901760 | t[1] & 65535,
- t[3] << 16 | t[3] >>> 16,
- t[1] & 4294901760 | t[2] & 65535,
- t[0] << 16 | t[0] >>> 16,
- t[2] & 4294901760 | t[3] & 65535,
- t[1] << 16 | t[1] >>> 16,
- t[3] & 4294901760 | t[0] & 65535
- ];
- this._b = 0;
- for (var n = 0; n < 4; n++)
- Q.call(this);
- for (var n = 0; n < 8; n++)
- c[n] ^= v[n + 4 & 7];
- if (f) {
- 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;
- c[0] ^= z, c[1] ^= L, c[2] ^= O, c[3] ^= Z, c[4] ^= z, c[5] ^= L, c[6] ^= O, c[7] ^= Z;
- for (var n = 0; n < 4; n++)
- Q.call(this);
- }
- },
- _doProcessBlock: function(t, f) {
- var v = this._X;
- 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;
- for (var c = 0; c < 4; c++)
- P[c] = (P[c] << 8 | P[c] >>> 24) & 16711935 | (P[c] << 24 | P[c] >>> 8) & 4278255360, t[f + c] ^= P[c];
- },
- blockSize: 128 / 32,
- ivSize: 64 / 32
- });
- function Q() {
- for (var t = this._X, f = this._C, v = 0; v < 8; v++)
- Y[v] = f[v];
- 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;
- for (var v = 0; v < 8; v++) {
- 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);
- D[v] = s ^ M;
- }
- 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;
- }
- B.RabbitLegacy = r._createHelper(C);
- }(), w.RabbitLegacy;
- });
- }(bg)), bg.exports;
- }
- var lg = { exports: {} }, jB;
- function UD() {
- return jB || (jB = 1, function(A, e) {
- (function(w, B, g) {
- A.exports = B(E(), zA(), PA(), nA(), $());
- })(k, function(w) {
- return function() {
- var B = w, g = B.lib, r = g.BlockCipher, x = B.algo;
- const P = 16, Y = [
- 608135816,
- 2242054355,
- 320440878,
- 57701188,
- 2752067618,
- 698298832,
- 137296536,
- 3964562569,
- 1160258022,
- 953160567,
- 3193202383,
- 887688300,
- 3232508343,
- 3380367581,
- 1065670069,
- 3041331479,
- 2450970073,
- 2306472731
- ], D = [
- [
- 3509652390,
- 2564797868,
- 805139163,
- 3491422135,
- 3101798381,
- 1780907670,
- 3128725573,
- 4046225305,
- 614570311,
- 3012652279,
- 134345442,
- 2240740374,
- 1667834072,
- 1901547113,
- 2757295779,
- 4103290238,
- 227898511,
- 1921955416,
- 1904987480,
- 2182433518,
- 2069144605,
- 3260701109,
- 2620446009,
- 720527379,
- 3318853667,
- 677414384,
- 3393288472,
- 3101374703,
- 2390351024,
- 1614419982,
- 1822297739,
- 2954791486,
- 3608508353,
- 3174124327,
- 2024746970,
- 1432378464,
- 3864339955,
- 2857741204,
- 1464375394,
- 1676153920,
- 1439316330,
- 715854006,
- 3033291828,
- 289532110,
- 2706671279,
- 2087905683,
- 3018724369,
- 1668267050,
- 732546397,
- 1947742710,
- 3462151702,
- 2609353502,
- 2950085171,
- 1814351708,
- 2050118529,
- 680887927,
- 999245976,
- 1800124847,
- 3300911131,
- 1713906067,
- 1641548236,
- 4213287313,
- 1216130144,
- 1575780402,
- 4018429277,
- 3917837745,
- 3693486850,
- 3949271944,
- 596196993,
- 3549867205,
- 258830323,
- 2213823033,
- 772490370,
- 2760122372,
- 1774776394,
- 2652871518,
- 566650946,
- 4142492826,
- 1728879713,
- 2882767088,
- 1783734482,
- 3629395816,
- 2517608232,
- 2874225571,
- 1861159788,
- 326777828,
- 3124490320,
- 2130389656,
- 2716951837,
- 967770486,
- 1724537150,
- 2185432712,
- 2364442137,
- 1164943284,
- 2105845187,
- 998989502,
- 3765401048,
- 2244026483,
- 1075463327,
- 1455516326,
- 1322494562,
- 910128902,
- 469688178,
- 1117454909,
- 936433444,
- 3490320968,
- 3675253459,
- 1240580251,
- 122909385,
- 2157517691,
- 634681816,
- 4142456567,
- 3825094682,
- 3061402683,
- 2540495037,
- 79693498,
- 3249098678,
- 1084186820,
- 1583128258,
- 426386531,
- 1761308591,
- 1047286709,
- 322548459,
- 995290223,
- 1845252383,
- 2603652396,
- 3431023940,
- 2942221577,
- 3202600964,
- 3727903485,
- 1712269319,
- 422464435,
- 3234572375,
- 1170764815,
- 3523960633,
- 3117677531,
- 1434042557,
- 442511882,
- 3600875718,
- 1076654713,
- 1738483198,
- 4213154764,
- 2393238008,
- 3677496056,
- 1014306527,
- 4251020053,
- 793779912,
- 2902807211,
- 842905082,
- 4246964064,
- 1395751752,
- 1040244610,
- 2656851899,
- 3396308128,
- 445077038,
- 3742853595,
- 3577915638,
- 679411651,
- 2892444358,
- 2354009459,
- 1767581616,
- 3150600392,
- 3791627101,
- 3102740896,
- 284835224,
- 4246832056,
- 1258075500,
- 768725851,
- 2589189241,
- 3069724005,
- 3532540348,
- 1274779536,
- 3789419226,
- 2764799539,
- 1660621633,
- 3471099624,
- 4011903706,
- 913787905,
- 3497959166,
- 737222580,
- 2514213453,
- 2928710040,
- 3937242737,
- 1804850592,
- 3499020752,
- 2949064160,
- 2386320175,
- 2390070455,
- 2415321851,
- 4061277028,
- 2290661394,
- 2416832540,
- 1336762016,
- 1754252060,
- 3520065937,
- 3014181293,
- 791618072,
- 3188594551,
- 3933548030,
- 2332172193,
- 3852520463,
- 3043980520,
- 413987798,
- 3465142937,
- 3030929376,
- 4245938359,
- 2093235073,
- 3534596313,
- 375366246,
- 2157278981,
- 2479649556,
- 555357303,
- 3870105701,
- 2008414854,
- 3344188149,
- 4221384143,
- 3956125452,
- 2067696032,
- 3594591187,
- 2921233993,
- 2428461,
- 544322398,
- 577241275,
- 1471733935,
- 610547355,
- 4027169054,
- 1432588573,
- 1507829418,
- 2025931657,
- 3646575487,
- 545086370,
- 48609733,
- 2200306550,
- 1653985193,
- 298326376,
- 1316178497,
- 3007786442,
- 2064951626,
- 458293330,
- 2589141269,
- 3591329599,
- 3164325604,
- 727753846,
- 2179363840,
- 146436021,
- 1461446943,
- 4069977195,
- 705550613,
- 3059967265,
- 3887724982,
- 4281599278,
- 3313849956,
- 1404054877,
- 2845806497,
- 146425753,
- 1854211946
- ],
- [
- 1266315497,
- 3048417604,
- 3681880366,
- 3289982499,
- 290971e4,
- 1235738493,
- 2632868024,
- 2414719590,
- 3970600049,
- 1771706367,
- 1449415276,
- 3266420449,
- 422970021,
- 1963543593,
- 2690192192,
- 3826793022,
- 1062508698,
- 1531092325,
- 1804592342,
- 2583117782,
- 2714934279,
- 4024971509,
- 1294809318,
- 4028980673,
- 1289560198,
- 2221992742,
- 1669523910,
- 35572830,
- 157838143,
- 1052438473,
- 1016535060,
- 1802137761,
- 1753167236,
- 1386275462,
- 3080475397,
- 2857371447,
- 1040679964,
- 2145300060,
- 2390574316,
- 1461121720,
- 2956646967,
- 4031777805,
- 4028374788,
- 33600511,
- 2920084762,
- 1018524850,
- 629373528,
- 3691585981,
- 3515945977,
- 2091462646,
- 2486323059,
- 586499841,
- 988145025,
- 935516892,
- 3367335476,
- 2599673255,
- 2839830854,
- 265290510,
- 3972581182,
- 2759138881,
- 3795373465,
- 1005194799,
- 847297441,
- 406762289,
- 1314163512,
- 1332590856,
- 1866599683,
- 4127851711,
- 750260880,
- 613907577,
- 1450815602,
- 3165620655,
- 3734664991,
- 3650291728,
- 3012275730,
- 3704569646,
- 1427272223,
- 778793252,
- 1343938022,
- 2676280711,
- 2052605720,
- 1946737175,
- 3164576444,
- 3914038668,
- 3967478842,
- 3682934266,
- 1661551462,
- 3294938066,
- 4011595847,
- 840292616,
- 3712170807,
- 616741398,
- 312560963,
- 711312465,
- 1351876610,
- 322626781,
- 1910503582,
- 271666773,
- 2175563734,
- 1594956187,
- 70604529,
- 3617834859,
- 1007753275,
- 1495573769,
- 4069517037,
- 2549218298,
- 2663038764,
- 504708206,
- 2263041392,
- 3941167025,
- 2249088522,
- 1514023603,
- 1998579484,
- 1312622330,
- 694541497,
- 2582060303,
- 2151582166,
- 1382467621,
- 776784248,
- 2618340202,
- 3323268794,
- 2497899128,
- 2784771155,
- 503983604,
- 4076293799,
- 907881277,
- 423175695,
- 432175456,
- 1378068232,
- 4145222326,
- 3954048622,
- 3938656102,
- 3820766613,
- 2793130115,
- 2977904593,
- 26017576,
- 3274890735,
- 3194772133,
- 1700274565,
- 1756076034,
- 4006520079,
- 3677328699,
- 720338349,
- 1533947780,
- 354530856,
- 688349552,
- 3973924725,
- 1637815568,
- 332179504,
- 3949051286,
- 53804574,
- 2852348879,
- 3044236432,
- 1282449977,
- 3583942155,
- 3416972820,
- 4006381244,
- 1617046695,
- 2628476075,
- 3002303598,
- 1686838959,
- 431878346,
- 2686675385,
- 1700445008,
- 1080580658,
- 1009431731,
- 832498133,
- 3223435511,
- 2605976345,
- 2271191193,
- 2516031870,
- 1648197032,
- 4164389018,
- 2548247927,
- 300782431,
- 375919233,
- 238389289,
- 3353747414,
- 2531188641,
- 2019080857,
- 1475708069,
- 455242339,
- 2609103871,
- 448939670,
- 3451063019,
- 1395535956,
- 2413381860,
- 1841049896,
- 1491858159,
- 885456874,
- 4264095073,
- 4001119347,
- 1565136089,
- 3898914787,
- 1108368660,
- 540939232,
- 1173283510,
- 2745871338,
- 3681308437,
- 4207628240,
- 3343053890,
- 4016749493,
- 1699691293,
- 1103962373,
- 3625875870,
- 2256883143,
- 3830138730,
- 1031889488,
- 3479347698,
- 1535977030,
- 4236805024,
- 3251091107,
- 2132092099,
- 1774941330,
- 1199868427,
- 1452454533,
- 157007616,
- 2904115357,
- 342012276,
- 595725824,
- 1480756522,
- 206960106,
- 497939518,
- 591360097,
- 863170706,
- 2375253569,
- 3596610801,
- 1814182875,
- 2094937945,
- 3421402208,
- 1082520231,
- 3463918190,
- 2785509508,
- 435703966,
- 3908032597,
- 1641649973,
- 2842273706,
- 3305899714,
- 1510255612,
- 2148256476,
- 2655287854,
- 3276092548,
- 4258621189,
- 236887753,
- 3681803219,
- 274041037,
- 1734335097,
- 3815195456,
- 3317970021,
- 1899903192,
- 1026095262,
- 4050517792,
- 356393447,
- 2410691914,
- 3873677099,
- 3682840055
- ],
- [
- 3913112168,
- 2491498743,
- 4132185628,
- 2489919796,
- 1091903735,
- 1979897079,
- 3170134830,
- 3567386728,
- 3557303409,
- 857797738,
- 1136121015,
- 1342202287,
- 507115054,
- 2535736646,
- 337727348,
- 3213592640,
- 1301675037,
- 2528481711,
- 1895095763,
- 1721773893,
- 3216771564,
- 62756741,
- 2142006736,
- 835421444,
- 2531993523,
- 1442658625,
- 3659876326,
- 2882144922,
- 676362277,
- 1392781812,
- 170690266,
- 3921047035,
- 1759253602,
- 3611846912,
- 1745797284,
- 664899054,
- 1329594018,
- 3901205900,
- 3045908486,
- 2062866102,
- 2865634940,
- 3543621612,
- 3464012697,
- 1080764994,
- 553557557,
- 3656615353,
- 3996768171,
- 991055499,
- 499776247,
- 1265440854,
- 648242737,
- 3940784050,
- 980351604,
- 3713745714,
- 1749149687,
- 3396870395,
- 4211799374,
- 3640570775,
- 1161844396,
- 3125318951,
- 1431517754,
- 545492359,
- 4268468663,
- 3499529547,
- 1437099964,
- 2702547544,
- 3433638243,
- 2581715763,
- 2787789398,
- 1060185593,
- 1593081372,
- 2418618748,
- 4260947970,
- 69676912,
- 2159744348,
- 86519011,
- 2512459080,
- 3838209314,
- 1220612927,
- 3339683548,
- 133810670,
- 1090789135,
- 1078426020,
- 1569222167,
- 845107691,
- 3583754449,
- 4072456591,
- 1091646820,
- 628848692,
- 1613405280,
- 3757631651,
- 526609435,
- 236106946,
- 48312990,
- 2942717905,
- 3402727701,
- 1797494240,
- 859738849,
- 992217954,
- 4005476642,
- 2243076622,
- 3870952857,
- 3732016268,
- 765654824,
- 3490871365,
- 2511836413,
- 1685915746,
- 3888969200,
- 1414112111,
- 2273134842,
- 3281911079,
- 4080962846,
- 172450625,
- 2569994100,
- 980381355,
- 4109958455,
- 2819808352,
- 2716589560,
- 2568741196,
- 3681446669,
- 3329971472,
- 1835478071,
- 660984891,
- 3704678404,
- 4045999559,
- 3422617507,
- 3040415634,
- 1762651403,
- 1719377915,
- 3470491036,
- 2693910283,
- 3642056355,
- 3138596744,
- 1364962596,
- 2073328063,
- 1983633131,
- 926494387,
- 3423689081,
- 2150032023,
- 4096667949,
- 1749200295,
- 3328846651,
- 309677260,
- 2016342300,
- 1779581495,
- 3079819751,
- 111262694,
- 1274766160,
- 443224088,
- 298511866,
- 1025883608,
- 3806446537,
- 1145181785,
- 168956806,
- 3641502830,
- 3584813610,
- 1689216846,
- 3666258015,
- 3200248200,
- 1692713982,
- 2646376535,
- 4042768518,
- 1618508792,
- 1610833997,
- 3523052358,
- 4130873264,
- 2001055236,
- 3610705100,
- 2202168115,
- 4028541809,
- 2961195399,
- 1006657119,
- 2006996926,
- 3186142756,
- 1430667929,
- 3210227297,
- 1314452623,
- 4074634658,
- 4101304120,
- 2273951170,
- 1399257539,
- 3367210612,
- 3027628629,
- 1190975929,
- 2062231137,
- 2333990788,
- 2221543033,
- 2438960610,
- 1181637006,
- 548689776,
- 2362791313,
- 3372408396,
- 3104550113,
- 3145860560,
- 296247880,
- 1970579870,
- 3078560182,
- 3769228297,
- 1714227617,
- 3291629107,
- 3898220290,
- 166772364,
- 1251581989,
- 493813264,
- 448347421,
- 195405023,
- 2709975567,
- 677966185,
- 3703036547,
- 1463355134,
- 2715995803,
- 1338867538,
- 1343315457,
- 2802222074,
- 2684532164,
- 233230375,
- 2599980071,
- 2000651841,
- 3277868038,
- 1638401717,
- 4028070440,
- 3237316320,
- 6314154,
- 819756386,
- 300326615,
- 590932579,
- 1405279636,
- 3267499572,
- 3150704214,
- 2428286686,
- 3959192993,
- 3461946742,
- 1862657033,
- 1266418056,
- 963775037,
- 2089974820,
- 2263052895,
- 1917689273,
- 448879540,
- 3550394620,
- 3981727096,
- 150775221,
- 3627908307,
- 1303187396,
- 508620638,
- 2975983352,
- 2726630617,
- 1817252668,
- 1876281319,
- 1457606340,
- 908771278,
- 3720792119,
- 3617206836,
- 2455994898,
- 1729034894,
- 1080033504
- ],
- [
- 976866871,
- 3556439503,
- 2881648439,
- 1522871579,
- 1555064734,
- 1336096578,
- 3548522304,
- 2579274686,
- 3574697629,
- 3205460757,
- 3593280638,
- 3338716283,
- 3079412587,
- 564236357,
- 2993598910,
- 1781952180,
- 1464380207,
- 3163844217,
- 3332601554,
- 1699332808,
- 1393555694,
- 1183702653,
- 3581086237,
- 1288719814,
- 691649499,
- 2847557200,
- 2895455976,
- 3193889540,
- 2717570544,
- 1781354906,
- 1676643554,
- 2592534050,
- 3230253752,
- 1126444790,
- 2770207658,
- 2633158820,
- 2210423226,
- 2615765581,
- 2414155088,
- 3127139286,
- 673620729,
- 2805611233,
- 1269405062,
- 4015350505,
- 3341807571,
- 4149409754,
- 1057255273,
- 2012875353,
- 2162469141,
- 2276492801,
- 2601117357,
- 993977747,
- 3918593370,
- 2654263191,
- 753973209,
- 36408145,
- 2530585658,
- 25011837,
- 3520020182,
- 2088578344,
- 530523599,
- 2918365339,
- 1524020338,
- 1518925132,
- 3760827505,
- 3759777254,
- 1202760957,
- 3985898139,
- 3906192525,
- 674977740,
- 4174734889,
- 2031300136,
- 2019492241,
- 3983892565,
- 4153806404,
- 3822280332,
- 352677332,
- 2297720250,
- 60907813,
- 90501309,
- 3286998549,
- 1016092578,
- 2535922412,
- 2839152426,
- 457141659,
- 509813237,
- 4120667899,
- 652014361,
- 1966332200,
- 2975202805,
- 55981186,
- 2327461051,
- 676427537,
- 3255491064,
- 2882294119,
- 3433927263,
- 1307055953,
- 942726286,
- 933058658,
- 2468411793,
- 3933900994,
- 4215176142,
- 1361170020,
- 2001714738,
- 2830558078,
- 3274259782,
- 1222529897,
- 1679025792,
- 2729314320,
- 3714953764,
- 1770335741,
- 151462246,
- 3013232138,
- 1682292957,
- 1483529935,
- 471910574,
- 1539241949,
- 458788160,
- 3436315007,
- 1807016891,
- 3718408830,
- 978976581,
- 1043663428,
- 3165965781,
- 1927990952,
- 4200891579,
- 2372276910,
- 3208408903,
- 3533431907,
- 1412390302,
- 2931980059,
- 4132332400,
- 1947078029,
- 3881505623,
- 4168226417,
- 2941484381,
- 1077988104,
- 1320477388,
- 886195818,
- 18198404,
- 3786409e3,
- 2509781533,
- 112762804,
- 3463356488,
- 1866414978,
- 891333506,
- 18488651,
- 661792760,
- 1628790961,
- 3885187036,
- 3141171499,
- 876946877,
- 2693282273,
- 1372485963,
- 791857591,
- 2686433993,
- 3759982718,
- 3167212022,
- 3472953795,
- 2716379847,
- 445679433,
- 3561995674,
- 3504004811,
- 3574258232,
- 54117162,
- 3331405415,
- 2381918588,
- 3769707343,
- 4154350007,
- 1140177722,
- 4074052095,
- 668550556,
- 3214352940,
- 367459370,
- 261225585,
- 2610173221,
- 4209349473,
- 3468074219,
- 3265815641,
- 314222801,
- 3066103646,
- 3808782860,
- 282218597,
- 3406013506,
- 3773591054,
- 379116347,
- 1285071038,
- 846784868,
- 2669647154,
- 3771962079,
- 3550491691,
- 2305946142,
- 453669953,
- 1268987020,
- 3317592352,
- 3279303384,
- 3744833421,
- 2610507566,
- 3859509063,
- 266596637,
- 3847019092,
- 517658769,
- 3462560207,
- 3443424879,
- 370717030,
- 4247526661,
- 2224018117,
- 4143653529,
- 4112773975,
- 2788324899,
- 2477274417,
- 1456262402,
- 2901442914,
- 1517677493,
- 1846949527,
- 2295493580,
- 3734397586,
- 2176403920,
- 1280348187,
- 1908823572,
- 3871786941,
- 846861322,
- 1172426758,
- 3287448474,
- 3383383037,
- 1655181056,
- 3139813346,
- 901632758,
- 1897031941,
- 2986607138,
- 3066810236,
- 3447102507,
- 1393639104,
- 373351379,
- 950779232,
- 625454576,
- 3124240540,
- 4148612726,
- 2007998917,
- 544563296,
- 2244738638,
- 2330496472,
- 2058025392,
- 1291430526,
- 424198748,
- 50039436,
- 29584100,
- 3605783033,
- 2429876329,
- 2791104160,
- 1057563949,
- 3255363231,
- 3075367218,
- 3463963227,
- 1469046755,
- 985887462
- ]
- ];
- var C = {
- pbox: [],
- sbox: []
- };
- function Q(n, H) {
- 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];
- return L = L ^ n.sbox[2][z], L = L + n.sbox[3][O], L;
- }
- function t(n, H, s) {
- let M = H, z = s, O;
- for (let L = 0; L < P; ++L)
- M = M ^ n.pbox[L], z = Q(n, M) ^ z, O = M, M = z, z = O;
- return O = M, M = z, z = O, z = z ^ n.pbox[P], M = M ^ n.pbox[P + 1], { left: M, right: z };
- }
- function f(n, H, s) {
- let M = H, z = s, O;
- for (let L = P + 1; L > 1; --L)
- M = M ^ n.pbox[L], z = Q(n, M) ^ z, O = M, M = z, z = O;
- return O = M, M = z, z = O, z = z ^ n.pbox[1], M = M ^ n.pbox[0], { left: M, right: z };
- }
- function v(n, H, s) {
- for (let Z = 0; Z < 4; Z++) {
- n.sbox[Z] = [];
- for (let l = 0; l < 256; l++)
- n.sbox[Z][l] = D[Z][l];
- }
- let M = 0;
- for (let Z = 0; Z < P + 2; Z++)
- n.pbox[Z] = Y[Z] ^ H[M], M++, M >= s && (M = 0);
- let z = 0, O = 0, L = 0;
- for (let Z = 0; Z < P + 2; Z += 2)
- L = t(n, z, O), z = L.left, O = L.right, n.pbox[Z] = z, n.pbox[Z + 1] = O;
- for (let Z = 0; Z < 4; Z++)
- for (let l = 0; l < 256; l += 2)
- L = t(n, z, O), z = L.left, O = L.right, n.sbox[Z][l] = z, n.sbox[Z][l + 1] = O;
- return !0;
- }
- var c = x.Blowfish = r.extend({
- _doReset: function() {
- if (this._keyPriorReset !== this._key) {
- var n = this._keyPriorReset = this._key, H = n.words, s = n.sigBytes / 4;
- v(C, H, s);
- }
- },
- encryptBlock: function(n, H) {
- var s = t(C, n[H], n[H + 1]);
- n[H] = s.left, n[H + 1] = s.right;
- },
- decryptBlock: function(n, H) {
- var s = f(C, n[H], n[H + 1]);
- n[H] = s.left, n[H + 1] = s.right;
- },
- blockSize: 64 / 32,
- keySize: 128 / 32,
- ivSize: 64 / 32
- });
- B.Blowfish = r._createHelper(c);
- }(), w.Blowfish;
- });
- }(lg)), lg.exports;
- }
- (function(A, e) {
- (function(w, B, g) {
- 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());
- })(k, function(w) {
- return w;
- });
- })(ww);
- var iD = ww.exports;
- const aA = /* @__PURE__ */ aw(iD);
- function kA(A, e = "XwKsGlMcdPMEhR1B") {
- 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 });
- return g.toString();
- }
- function ew(A) {
- var e, w, B, g, r = A.$el.parentNode.offsetWidth || window.offsetWidth, x = A.$el.parentNode.offsetHeight || window.offsetHeight;
- 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 };
- }
- const qD = {
- name: "SVerifySlide",
- props: {
- // eslint-disable-next-line vue/require-default-prop
- captchaType: {
- type: String
- },
- type: {
- type: String,
- default: "1"
- },
- // 弹出式pop,固定fixed
- mode: {
- type: String,
- default: "fixed"
- },
- vSpace: {
- type: Number,
- default: 5
- },
- explain: {
- type: String,
- default: window.$l("向右滑动完成验证")
- },
- imgSize: {
- type: Object,
- default() {
- return {
- width: "310px",
- height: "155px"
- };
- }
- },
- blockSize: {
- type: Object,
- default() {
- return {
- width: "50px",
- height: "50px"
- };
- }
- },
- barSize: {
- type: Object,
- default() {
- return {
- width: "310px",
- height: "40px"
- };
- }
- }
- },
- data() {
- return {
- secretKey: "",
- // 后端返回的加密秘钥 字段
- passFlag: "",
- // 是否通过的标识
- backImgBase: "",
- // 验证码背景图片
- blockBackImgBase: "",
- // 验证滑块的背景图片
- backToken: "",
- // 后端返回的唯一token值
- startMoveTime: "",
- // 移动开始的时间
- endMovetime: "",
- // 移动结束的时间
- tipsBackColor: "",
- // 提示词的背景颜色
- tipWords: "",
- text: "",
- finishText: "",
- setSize: {
- imgHeight: 0,
- imgWidth: 0,
- barHeight: 0,
- barWidth: 0
- },
- top: 0,
- left: 0,
- moveBlockLeft: void 0,
- leftBarWidth: void 0,
- // 移动中样式
- moveBlockBackgroundColor: void 0,
- leftBarBorderColor: "#ddd",
- iconColor: void 0,
- iconClass: "icon-right",
- status: !1,
- // 鼠标状态
- isEnd: !1,
- // 是够验证完成
- showRefresh: !0,
- transitionLeft: "",
- transitionWidth: ""
- };
- },
- computed: {
- barArea() {
- return this.$el.querySelector(".verify-bar-area");
- },
- resetSize() {
- return ew;
- }
- },
- methods: {
- init() {
- this.text = window.$l(this.explain), this.$utils.ls.get("token") && this.getPictrue(), this.$nextTick(() => {
- const e = this.resetSize(this);
- for (const w in e)
- this.setSize[w] = parseInt(e[w]);
- this.$parent.$emit("ready", this);
- });
- var A = this;
- window.removeEventListener("touchmove", function(e) {
- A.move(e);
- }), window.removeEventListener("mousemove", function(e) {
- A.move(e);
- }), window.removeEventListener("touchend", function() {
- A.end();
- }), window.removeEventListener("mouseup", function() {
- A.end();
- }), window.addEventListener("touchmove", function(e) {
- A.move(e);
- }), window.addEventListener("mousemove", function(e) {
- A.move(e);
- }), window.addEventListener("touchend", function() {
- A.end();
- }), window.addEventListener("mouseup", function() {
- A.end();
- });
- },
- // 鼠标按下
- start: function(A) {
- if (A = A || window.event, A.touches)
- var e = A.touches[0].pageX;
- else
- var e = A.clientX;
- 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);
- },
- // 鼠标移动
- move: function(A) {
- if (A = A || window.event, this.status && this.isEnd == !1) {
- if (A.touches)
- var e = A.touches[0].pageX;
- else
- var e = A.clientX;
- var w = this.barArea.getBoundingClientRect().left, B = e - w;
- 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";
- }
- },
- // 鼠标松开
- end: function() {
- this.endMovetime = +/* @__PURE__ */ new Date();
- var A = this;
- if (this.status && this.isEnd == !1) {
- var e = parseInt((this.moveBlockLeft || "").replace("px", ""));
- e = e * 310 / parseInt(this.setSize.imgWidth);
- const w = {
- captchaType: this.captchaType,
- pointJson: this.secretKey ? kA(JSON.stringify({ x: e, y: 5 }), this.secretKey) : JSON.stringify({ x: e, y: 5 }),
- token: this.backToken
- };
- NB(w).then((B) => {
- if (B.repCode == "0000") {
- this.moveBlockBackgroundColor = "#5cb85c", this.leftBarBorderColor = "#5cb85c", this.iconColor = "#fff", this.iconClass = "icon-check", this.showRefresh = !1, this.isEnd = !0, this.mode == "pop" && setTimeout(() => {
- this.$parent.clickShow = !1, this.refresh();
- }, 1500), this.passFlag = !0, this.tipWords = `${((this.endMovetime - this.startMoveTime) / 1e3).toFixed(2)}s ${window.$l("验证成功")}`;
- var g = this.secretKey ? kA(
- this.backToken + "---" + JSON.stringify({ x: e, y: 5 }),
- this.secretKey
- ) : this.backToken + "---" + JSON.stringify({ x: e, y: 5 });
- setTimeout(() => {
- this.tipWords = "", this.$parent.closeBox(), this.$parent.$emit("success", { captchaVerification: g });
- }, 1e3);
- } else
- this.moveBlockBackgroundColor = "#d9534f", this.leftBarBorderColor = "#d9534f", this.iconColor = "#fff", this.iconClass = "icon-close", this.passFlag = !1, setTimeout(function() {
- A.refresh();
- }, 1e3), this.$parent.$emit("error", this), this.tipWords = window.$l("验证失败"), setTimeout(() => {
- this.tipWords = "";
- }, 1e3);
- }), this.status = !1;
- }
- },
- refresh: function() {
- 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(() => {
- this.transitionWidth = "", this.transitionLeft = "", this.text = window.$l(this.explain);
- }, 300);
- },
- // 请求背景图片和验证图片
- getPictrue() {
- const A = {
- captchaType: this.captchaType
- };
- oB(A).then((e) => {
- 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;
- });
- }
- },
- watch: {
- // type变化则全面刷新
- type: {
- immediate: !0,
- handler() {
- this.init();
- }
- }
- },
- mounted() {
- this.$el.onselectstart = function() {
- return !1;
- };
- }
- }, hD = { style: { position: "relative" } }, RD = ["src"], _D = ["textContent"], $D = ["textContent"], As = ["src"];
- function gs(A, e, w, B, g, r) {
- return N(), I("div", hD, [
- w.type === "2" ? (N(), I("div", {
- key: 0,
- style: sA({ height: parseInt(g.setSize.imgHeight) + w.vSpace + "px" }),
- class: "verify-img-out"
- }, [
- F("div", {
- style: sA({ width: g.setSize.imgWidth + "px", height: g.setSize.imgHeight + "px" }),
- class: "verify-img-panel"
- }, [
- F("img", {
- src: "data:image/png;base64," + g.backImgBase,
- alt: "",
- style: { width: "100%", height: "100%", display: "block" }
- }, null, 8, RD),
- ug(F("div", {
- onClick: e[0] || (e[0] = (...x) => r.refresh && r.refresh(...x)),
- class: "verify-refresh"
- }, [...e[3] || (e[3] = [
- F("i", { class: "iconfont icon-refresh" }, null, -1)
- ])], 512), [
- [yg, g.showRefresh]
- ]),
- m(Uw, { name: "tips" }, {
- default: S(() => [
- g.tipWords ? (N(), I("span", {
- key: 0,
- class: yA([g.passFlag ? "suc-bg" : "err-bg", "verify-tips"])
- }, R(g.tipWords), 3)) : _("", !0)
- ]),
- _: 1
- })
- ], 4)
- ], 4)) : _("", !0),
- F("div", {
- style: sA({
- width: g.setSize.imgWidth + "px",
- height: w.barSize.height,
- "line-height": w.barSize.height
- }),
- class: "verify-bar-area"
- }, [
- F("span", {
- class: "verify-msg",
- textContent: R(g.text)
- }, null, 8, _D),
- F("div", {
- style: sA({
- width: g.leftBarWidth !== void 0 ? g.leftBarWidth : w.barSize.height,
- height: w.barSize.height,
- "border-color": g.leftBarBorderColor,
- transaction: g.transitionWidth
- }),
- class: "verify-left-bar"
- }, [
- F("span", {
- class: "verify-msg",
- textContent: R(g.finishText)
- }, null, 8, $D),
- F("div", {
- style: sA({
- width: w.barSize.height,
- height: w.barSize.height,
- "background-color": g.moveBlockBackgroundColor,
- left: g.moveBlockLeft,
- transition: g.transitionLeft
- }),
- onMousedown: e[1] || (e[1] = (...x) => r.start && r.start(...x)),
- onTouchstart: e[2] || (e[2] = (...x) => r.start && r.start(...x)),
- class: "verify-move-block"
- }, [
- F("i", {
- class: yA(["verify-icon iconfont", g.iconClass]),
- style: sA({ color: g.iconColor })
- }, null, 6),
- w.type === "2" ? (N(), I("div", {
- key: 0,
- style: sA({
- width: Math.floor(parseInt(g.setSize.imgWidth) * 47 / 310) + "px",
- height: g.setSize.imgHeight + "px",
- top: "-" + (parseInt(g.setSize.imgHeight) + w.vSpace) + "px",
- "background-size": g.setSize.imgWidth + "px," + g.setSize.imgHeight + "px"
- }),
- class: "verify-sub-block"
- }, [
- F("img", {
- src: "data:image/png;base64," + g.blockBackImgBase,
- alt: "",
- style: { width: "100%", height: "100%", display: "block" }
- }, null, 8, As)
- ], 4)) : _("", !0)
- ], 36)
- ], 4)
- ], 4)
- ]);
- }
- const Bs = /* @__PURE__ */ XA(qD, [["render", gs]]), ws = {
- name: "VerifyPoints",
- props: {
- // 弹出式pop,固定fixed
- mode: {
- type: String,
- default: "fixed"
- },
- // eslint-disable-next-line vue/require-default-prop
- captchaType: {
- type: String
- },
- // 间隔
- vSpace: {
- type: Number,
- default: 5
- },
- imgSize: {
- type: Object,
- default() {
- return {
- width: "310px",
- height: "155px"
- };
- }
- },
- barSize: {
- type: Object,
- default() {
- return {
- width: "310px",
- height: "40px"
- };
- }
- }
- },
- data() {
- return {
- secretKey: "",
- // 后端返回的ase加密秘钥
- checkNum: 3,
- // 默认需要点击的字数
- fontPos: [],
- // 选中的坐标信息
- checkPosArr: [],
- // 用户点击的坐标
- num: 1,
- // 点击的记数
- pointBackImgBase: "",
- // 后端获取到的背景图片
- poinTextList: [],
- // 后端返回的点击字体顺序
- backToken: "",
- // 后端返回的token值
- setSize: {
- imgHeight: 0,
- imgWidth: 0,
- barHeight: 0,
- barWidth: 0
- },
- tempPoints: [],
- text: "",
- barAreaColor: void 0,
- barAreaBorderColor: void 0,
- showRefresh: !0,
- bindingClick: !0
- };
- },
- computed: {
- resetSize() {
- return ew;
- }
- },
- methods: {
- init() {
- 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(() => {
- this.setSize = this.resetSize(this), this.$parent.$emit("ready", this);
- });
- },
- canvasClick(A) {
- 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(() => {
- var e = this.secretKey ? kA(this.backToken + "---" + JSON.stringify(this.checkPosArr), this.secretKey) : this.backToken + "---" + JSON.stringify(this.checkPosArr);
- const w = {
- captchaType: this.captchaType,
- pointJson: this.secretKey ? kA(JSON.stringify(this.checkPosArr), this.secretKey) : JSON.stringify(this.checkPosArr),
- token: this.backToken
- };
- NB(w).then((B) => {
- B.repCode == "0000" ? (this.barAreaColor = "#4cae4c", this.barAreaBorderColor = "#5cb85c", this.text = window.$l("验证成功"), this.bindingClick = !1, this.mode == "pop" && setTimeout(() => {
- this.$parent.clickShow = !1, this.refresh();
- }, 1500), this.$parent.$emit("success", { captchaVerification: e })) : (this.$parent.$emit("error", this), this.barAreaColor = "#d9534f", this.barAreaBorderColor = "#d9534f", this.text = window.$l("验证失败"), setTimeout(() => {
- this.refresh();
- }, 700));
- });
- }, 400)), this.num < this.checkNum && (this.num = this.createPoint(this.getMousePos(this.$refs.canvas, A)));
- },
- // 获取坐标
- getMousePos: function(A, e) {
- var w = e.offsetX, B = e.offsetY;
- return { x: w, y: B };
- },
- // 创建坐标点
- createPoint: function(A) {
- return this.tempPoints.push(Object.assign({}, A)), ++this.num;
- },
- refresh: function() {
- 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;
- },
- // 请求背景图片和验证图片
- getPictrue() {
- const A = {
- captchaType: this.captchaType
- };
- oB(A).then((e) => {
- 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;
- });
- },
- // 坐标转换函数
- pointTransfrom(A, e) {
- var w = A.map((B) => {
- const g = Math.round(310 * B.x / parseInt(e.imgWidth)), r = Math.round(155 * B.y / parseInt(e.imgHeight));
- return { x: g, y: r };
- });
- return w;
- }
- },
- watch: {
- // type变化则全面刷新
- type: {
- immediate: !0,
- handler() {
- this.init();
- }
- }
- },
- mounted() {
- this.$el.onselectstart = function() {
- return !1;
- };
- }
- }, Ds = { style: { position: "relative" } }, ss = { class: "verify-img-out" }, es = ["src"], ts = { class: "verify-msg" };
- function Cs(A, e, w, B, g, r) {
- return N(), I("div", Ds, [
- F("div", ss, [
- F("div", {
- style: sA({
- width: g.setSize.imgWidth,
- height: g.setSize.imgHeight,
- "background-size": g.setSize.imgWidth + " " + g.setSize.imgHeight,
- "margin-bottom": w.vSpace + "px"
- }),
- class: "verify-img-panel"
- }, [
- ug(F("div", {
- onClick: e[0] || (e[0] = (...x) => r.refresh && r.refresh(...x)),
- class: "verify-refresh",
- style: { "z-index": "3" }
- }, [...e[2] || (e[2] = [
- F("i", { class: "iconfont icon-refresh" }, null, -1)
- ])], 512), [
- [yg, g.showRefresh]
- ]),
- F("img", {
- src: "data:image/png;base64," + g.pointBackImgBase,
- onClick: e[1] || (e[1] = (x) => g.bindingClick ? r.canvasClick(x) : void 0),
- alt: "",
- ref: "canvas",
- style: { width: "100%", height: "100%", display: "block" }
- }, null, 8, es),
- (N(!0), I(JB, null, kB(g.tempPoints, (x, P) => (N(), I("div", {
- key: P,
- style: sA({
- "background-color": "#1abd6c",
- color: "#fff",
- "z-index": 9999,
- width: "20px",
- height: "20px",
- "text-align": "center",
- "line-height": "20px",
- "border-radius": "50%",
- position: "absolute",
- top: parseInt(x.y - 10) + "px",
- left: parseInt(x.x - 10) + "px"
- }),
- class: "point-area"
- }, R(P + 1), 5))), 128))
- ], 4)
- ]),
- F("div", {
- style: sA({
- width: g.setSize.imgWidth,
- color: this.barAreaColor,
- "border-color": this.barAreaBorderColor,
- "line-height": this.barSize.height
- }),
- class: "verify-bar-area"
- }, [
- F("span", ts, R(g.text), 1)
- ], 4)
- ]);
- }
- const Ms = /* @__PURE__ */ XA(ws, [["render", Cs]]), vs = {
- name: "SVerify",
- props: {
- // 双语化
- locale: {
- require: !1,
- type: String,
- default() {
- if (navigator.language)
- var A = navigator.language;
- else
- var A = navigator.browserLanguage;
- return A;
- }
- },
- captchaType: {
- type: String,
- required: !0
- },
- // eslint-disable-next-line vue/require-default-prop
- figure: {
- type: Number
- },
- // eslint-disable-next-line vue/require-default-prop
- arith: {
- type: Number
- },
- mode: {
- type: String,
- default: "pop"
- },
- // eslint-disable-next-line vue/require-default-prop
- vSpace: {
- type: Number
- },
- // eslint-disable-next-line vue/require-default-prop
- explain: {
- type: String
- },
- imgSize: {
- type: Object,
- default() {
- return {
- width: "310px",
- height: "155px"
- };
- }
- },
- // eslint-disable-next-line vue/require-default-prop
- blockSize: {
- type: Object
- },
- // eslint-disable-next-line vue/require-default-prop
- barSize: {
- type: Object
- }
- },
- data() {
- return {
- // showBox:true,
- clickShow: !1,
- // 内部类型
- verifyType: void 0,
- // 所用组件类型
- componentType: void 0
- };
- },
- methods: {
- /**
- * i18n
- * @description 兼容vue-i18n 调用$t来转换ok
- * @param {String} text-被转换的目标
- * @return {String} i18n的结果
- * */
- i18n(A) {
- return this.$t ? this.$t(A) : (this.$options.i18n.messages[this.locale] || this.$options.i18n.messages["en-US"])[A];
- },
- /**
- * refresh
- * @description 刷新
- * */
- refresh() {
- this.instance.refresh && this.instance.refresh();
- },
- closeBox() {
- this.clickShow = !1, this.refresh();
- },
- show() {
- this.mode == "pop" && (this.clickShow = !0);
- }
- },
- computed: {
- instance() {
- return this.$refs.instance || {};
- },
- showBox() {
- return this.mode == "pop" ? this.clickShow : !0;
- }
- },
- watch: {
- captchaType: {
- immediate: !0,
- handler(A) {
- switch (A.toString()) {
- case "blockPuzzle":
- this.verifyType = "2", this.componentType = "VerifySlide";
- break;
- case "clickWord":
- this.verifyType = "", this.componentType = "VerifyPoints";
- break;
- }
- }
- }
- },
- components: {
- VerifySlide: Bs,
- VerifyPoints: Ms
- }
- }, rs = {
- key: 0,
- class: "verifybox-top"
- };
- function fs(A, e, w, B, g, r) {
- return ug((N(), I("div", {
- class: yA(w.mode == "pop" ? "mask" : "")
- }, [
- F("div", {
- class: yA(w.mode == "pop" ? "verifybox" : ""),
- style: sA({ "max-width": parseInt(w.imgSize.width) + 30 + "px" })
- }, [
- w.mode == "pop" ? (N(), I("div", rs, [
- WA(R(A.$l("请完成安全验证")) + " ", 1),
- F("span", {
- onClick: e[0] || (e[0] = (...x) => r.closeBox && r.closeBox(...x)),
- class: "verifybox-close"
- }, [...e[1] || (e[1] = [
- F("i", { class: "iconfont icon-close" }, null, -1)
- ])])
- ])) : _("", !0),
- F("div", {
- style: sA({ padding: w.mode == "pop" ? "15px" : "0" }),
- class: "verifybox-bottom"
- }, [
- g.componentType ? (N(), CA(KB(g.componentType), {
- key: 0,
- arith: w.arith,
- barSize: w.barSize,
- blockSize: w.blockSize,
- captchaType: w.captchaType,
- explain: w.explain,
- figure: w.figure,
- imgSize: w.imgSize,
- mode: w.mode,
- type: g.verifyType,
- vSpace: w.vSpace,
- ref: "instance"
- }, null, 8, ["arith", "barSize", "blockSize", "captchaType", "explain", "figure", "imgSize", "mode", "type", "vSpace"])) : _("", !0)
- ], 4)
- ], 6)
- ], 2)), [
- [yg, r.showBox]
- ]);
- }
- 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 = {
- name: "LoginForm",
- components: {
- SVerify: ns
- },
- props: {
- // 手机号登录 - 获取验证码时是否启用拼图验证
- // captchaOpen: {
- // type: Boolean,
- // default: true
- // },
- showTenantry: {
- type: Boolean,
- default: !1
- },
- showAgreement: {
- type: Boolean,
- default: !1
- },
- showAutoLogin: {
- type: Boolean,
- default: !0
- },
- showOtherLogin: {
- type: Boolean,
- default: !1
- }
- },
- data() {
- let A = "clickWord";
- var e = 0, w = 100, B = Math.floor(Math.random() * (w - e)) + e;
- return B % 2 === 0 && (A = "blockPuzzle"), B % 2 === 1 && (A = "clickWord"), {
- iconsFocus: {
- tenantryCode: 1,
- loginName: 1,
- password: 1
- },
- // 密码记录数
- verificationImage: null,
- verificationCodeId: "",
- loginTab: [],
- otherLoginList: [],
- QrCodeLogin: !1,
- typeActive: 1,
- showPassword: !1,
- autoLogin: !1,
- arguments: !1,
- isLoginButtonDisabled: !1,
- // 登录按钮是否禁用
- deadline: 0,
- // 倒计时时间
- isCountdown: !1,
- // 显示倒计时
- loginConfig: {},
- captchaType: A,
- captchaCountdown: 0,
- loginBtn: !1,
- form: {
- tenantryCode: "",
- loginName: "",
- password: "",
- verificationCode: "",
- prefix: "+86",
- mobile: ""
- },
- rules: {
- tenantryCode: [
- {
- required: !0,
- message: this.$l("请输入租户编码"),
- trigger: "blur"
- }
- ],
- loginName: [
- {
- required: !0,
- message: this.$l("请输入账户"),
- trigger: "blur"
- }
- ],
- password: [
- {
- required: !0,
- message: this.$l("请输入密码"),
- trigger: "blur"
- }
- ],
- code: [
- {
- required: !0,
- message: this.$l("请输入短信验证码"),
- trigger: "blur"
- }
- ],
- mobile: [
- {
- required: !0,
- message: this.$l("请输入手机号"),
- trigger: "blur"
- },
- { pattern: /^1[345678]\d{9}$/, message: this.$l("手机号格式不正确"), trigger: "blur" }
- ]
- }
- };
- },
- computed: {
- showPhoneLogin() {
- return this.$utils.env.VITE_APP_LOGIN_PHONE;
- },
- showQRCodeLogin() {
- return this.$utils.env.VITE_APP_LOGIN_QRCODE;
- }
- },
- methods: {
- renderIcon(A, e) {
- return {
- tenant: {
- 1: new URL("../../static/img/login/tenant-icon-1.png", import.meta.url).href,
- 2: new URL("../../static/img/login/tenant-icon-2.png", import.meta.url).href,
- 3: new URL("../../static/img/login/tenant-icon-3.png", import.meta.url).href
- },
- user: {
- 1: zs,
- 2: Ps,
- 3: cs
- },
- pass: {
- 1: Ys,
- 2: Qs,
- 3: Ws
- },
- login: {
- pcIconWhite: Hs,
- qrCodeWhite: Ls
- }
- }[A][e];
- },
- handLogin() {
- this.typeActive === 2 ? this.$refs.form.validateFields().then((A) => oA(this, null, function* () {
- A.code && (A.operate = "0", (yield Fw(A)) ? this.handSubmit() : this.$message.error(this.$l("验证码错误/已过期")));
- })).catch(() => {
- this.$message.error(this.$l("验证码错误"));
- }) : this.handSubmit();
- },
- handSubmit() {
- this.$refs.form.validate().then((A) => {
- this.loginBtn = !0;
- const e = {
- clientId: this.$utils.env.VITE_APP_CLIENT_ID
- };
- Object.keys(A).forEach((w) => {
- e[w] = w === "verificationCode" ? A[w] : LD(A[w]);
- }), e.verificationCodeId = this.verificationCodeId, Vw(e).then((w) => this.loginSuccess(w)).catch((w) => {
- this.requestFailed(w);
- }).finally(() => {
- this.loginBtn = !1;
- });
- }).catch(() => {
- let A = setTimeout(() => {
- this.loginBtn = !1, clearTimeout(A);
- }, 600);
- });
- },
- // 获取验证码
- handGetCaptchaCount() {
- return oA(this, null, function* () {
- yield this.$refs.form.validateFields("mobile").then((A) => {
- A.mobile && this.$refs.verify.show();
- });
- });
- },
- /**
- * 拼图验证成功 获取验证码
- */
- verifySuccess(A) {
- this.form.verificationCode = A.captchaVerification;
- },
- verifySuccess1(A) {
- this.form.verificationCode = A.captchaVerification, this.captchaCountdown = Date.now() + 1e3 * 60, jw({ mobile: this.form.mobile, operate: "0" }).then((e) => {
- e === "send-success" ? (this.$message.success(this.$l("短信发送成功")), this.captchaCountdown = Date.now() + 1e3 * 60) : this.$message.error(this.$l("短信发送过于频繁,请稍后再试"));
- });
- },
- loginSuccess(A) {
- return oA(this, null, function* () {
- try {
- this.$utils.ls.set("token", A), this.$utils.ls.set("USER-TOKEN", A), this.verificationImage = null, this.verificationCodeId = "";
- const e = window.sessionStorage.getItem("redirect_client_id");
- if (e) {
- const B = Xw(), { clients: g } = yield B.Info(), r = g.find((x) => x.clientId === e) || {};
- if (r.redirectUri && r.redirectUri !== "/") {
- this.authorizeUrl(r);
- return;
- }
- }
- const w = this.$utils.env.VITE_APP_DEFAULT_PATH;
- this.$push(w);
- } catch (e) {
- console.log("loginSuccess:", e);
- const w = this.$utils.env.VITE_APP_DEFAULT_PATH;
- this.$push(w);
- }
- });
- },
- authorizeUrl(A) {
- 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)}`;
- window.location.replace(w);
- },
- requestFailed(A) {
- const e = JSON.parse(A.message);
- if (e != null && e.lockUser) {
- this.$message.error(e.message);
- const w = e == null ? void 0 : e.lockUser, B = w != null && w.lockEndTime && (w != null && w.nowTime) ? w.lockEndTime - w.nowTime : 0;
- 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();
- } else {
- let w = !1;
- 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());
- }
- },
- // 获取图片验证码(网关:portal)
- refreshVerificationCode() {
- yw().then((A) => {
- this.verificationImage = `data:image/gif;base64,${A.verificationImage}`, this.verificationCodeId = A.verificationCodeId;
- });
- },
- init() {
- this.loginTab = [
- {
- name: "PC",
- key: 1,
- icon: new URL("../../static/img/login/pc-s.png", import.meta.url).href,
- sIcon: new URL("../../static/img/login/pc.png", import.meta.url).href
- },
- {
- name: this.$l("二维码"),
- key: 2,
- icon: new URL("../../static/img/login/qr-code.png", import.meta.url).href,
- sIcon: new URL("../../static/img/login/qr-code-s.png", import.meta.url).href
- }
- ], this.otherLoginList = [
- {
- key: "ali",
- icon: "AlipayCircleOutlined"
- },
- {
- key: "weChat",
- icon: "WechatOutlined"
- },
- {
- key: "weibo",
- icon: "WeiboCircleOutlined"
- },
- {
- key: "github",
- icon: "GithubOutlined"
- }
- ], this.getLoginConfig();
- },
- // 登录策略
- getLoginConfig() {
- uw().then((A) => {
- this.loginConfig = A || {};
- });
- },
- handUpdatePassword() {
- console.log("忘记密码");
- },
- onFinish() {
- this.isLoginButtonDisabled = !1, this.isCountdown = !1, this.deadline = 0, this.refreshVerificationCode();
- },
- onFinishReset() {
- this.captchaCountdown = 0;
- },
- formatterTime({ value: A }) {
- console.log(A);
- }
- },
- mounted() {
- this.init();
- }
- }, bs = { class: "form-wrap" }, ls = ["src"], Gs = ["src"], ds = { class: "head" }, as = { class: "welcome" }, us = {
- key: 0,
- class: "form-main"
- }, ys = {
- key: 0,
- class: "tab-item"
- }, Xs = ["src"], js = ["src"], Vs = ["src"], Fs = { class: "verification-code-div" }, os = ["src", "title"], Ns = {
- key: 2,
- class: "tools"
- }, ms = {
- key: 3,
- class: "other-login"
- }, Js = { class: "left" }, ks = { class: "label" }, Ks = { class: "other-login-list" }, Es = ["src"], Is = { class: "right" }, ps = {
- key: 0,
- class: "tab-item"
- }, Ts = { class: "between" }, Ss = { key: 0 }, Us = {
- key: 0,
- class: "agreement"
- }, is = {
- key: 1,
- class: "form-main column-center"
- }, qs = { class: "qr-title" }, hs = { class: "ICP" };
- function Rs(A, e, w, B, g, r) {
- 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;
- return N(), I("div", bs, [
- r.showQRCodeLogin ? (N(), I("div", {
- key: 0,
- class: "toggle-login",
- onClick: e[0] || (e[0] = dA((s) => g.QrCodeLogin = !g.QrCodeLogin, ["stop"]))
- })) : _("", !0),
- r.showQRCodeLogin ? (N(), I("div", {
- key: 1,
- class: "toggle-icon-wrap",
- onClick: e[1] || (e[1] = dA((s) => g.QrCodeLogin = !g.QrCodeLogin, ["stop"]))
- }, [
- g.QrCodeLogin ? (N(), I("img", {
- key: 1,
- class: "toggle-icon",
- src: r.renderIcon("login", "qrCodeWhite")
- }, null, 8, Gs)) : (N(), I("img", {
- key: 0,
- class: "toggle-icon",
- src: r.renderIcon("login", "pcIconWhite")
- }, null, 8, ls))
- ])) : _("", !0),
- m(H, {
- model: g.form,
- rules: g.rules,
- layout: "vertical",
- ref: "form"
- }, {
- default: S(() => [
- F("div", ds, [
- F("div", as, R(A.$l("欢迎使用")), 1)
- ]),
- g.QrCodeLogin ? (N(), I("div", is, [
- F("div", qs, R(A.$l("请使用移动设备扫码登录")), 1),
- e[27] || (e[27] = F("img", {
- src: "",
- class: "qr-code-image"
- }, null, -1))
- ])) : (N(), I("div", us, [
- m(n, {
- activeKey: g.typeActive,
- "onUpdate:activeKey": e[24] || (e[24] = (s) => g.typeActive = s)
- }, {
- default: S(() => [
- (N(), CA(t, {
- key: 1,
- tab: A.$l("账户密码登录")
- }, {
- default: S(() => [
- g.typeActive === 1 ? (N(), I("div", ys, [
- w.showTenantry ? (N(), CA(P, {
- key: 0,
- label: " ",
- colon: !1,
- name: "tenantryCode"
- }, {
- default: S(() => [
- m(x, {
- value: g.form.tenantryCode,
- "onUpdate:value": e[2] || (e[2] = (s) => g.form.tenantryCode = s),
- valueModifiers: { trim: !0 },
- placeholder: A.$l("租户编码"),
- style: { width: "100%" },
- onFocus: e[3] || (e[3] = (s) => g.iconsFocus.tenantryCode = 2),
- onBlur: e[4] || (e[4] = (s) => g.iconsFocus.tenantryCode = g.form.tenantryCode ? 1 : 3),
- onInput: e[5] || (e[5] = (s) => g.iconsFocus.tenantryCode = g.form.tenantryCode ? 2 : 3),
- allowClear: !0,
- size: "large"
- }, {
- prefix: S(() => [
- F("img", {
- class: "prefix-icon",
- src: r.renderIcon("tenant", g.iconsFocus.tenantryCode)
- }, null, 8, Xs)
- ]),
- _: 1
- }, 8, ["value", "placeholder"])
- ]),
- _: 1
- })) : _("", !0),
- m(P, {
- label: " ",
- colon: !1,
- name: "loginName"
- }, {
- default: S(() => [
- m(x, {
- value: g.form.loginName,
- "onUpdate:value": e[6] || (e[6] = (s) => g.form.loginName = s),
- placeholder: A.$l("账号"),
- style: { width: "100%" },
- onFocus: e[7] || (e[7] = (s) => g.iconsFocus.loginName = 2),
- onBlur: e[8] || (e[8] = (s) => g.iconsFocus.loginName = g.form.loginName ? 1 : 3),
- onInput: e[9] || (e[9] = (s) => g.iconsFocus.loginName = g.form.loginName ? 2 : 3),
- allowClear: !0,
- size: "large"
- }, {
- prefix: S(() => [
- F("img", {
- class: "prefix-icon",
- src: r.renderIcon("user", g.iconsFocus.loginName)
- }, null, 8, js)
- ]),
- _: 1
- }, 8, ["value", "placeholder"])
- ]),
- _: 1
- }),
- m(P, {
- label: " ",
- colon: !1,
- name: "password"
- }, {
- default: S(() => [
- m(x, {
- value: g.form.password,
- "onUpdate:value": e[12] || (e[12] = (s) => g.form.password = s),
- placeholder: A.$l("密码"),
- style: { width: "100%" },
- type: g.showPassword ? "text" : "password",
- onFocus: e[13] || (e[13] = (s) => g.iconsFocus.password = 2),
- onBlur: e[14] || (e[14] = (s) => g.iconsFocus.password = g.form.password ? 1 : 3),
- onInput: e[15] || (e[15] = (s) => g.iconsFocus.password = g.form.password ? 2 : 3),
- allowClear: !0,
- size: "large"
- }, {
- prefix: S(() => [
- F("img", {
- class: "prefix-icon",
- src: r.renderIcon("pass", g.iconsFocus.password)
- }, null, 8, Vs)
- ]),
- suffix: S(() => [
- g.showPassword ? (N(), I("img", {
- key: 1,
- src: xs,
- class: "eye",
- onClick: e[11] || (e[11] = dA((s) => g.showPassword = !g.showPassword, ["stop"]))
- })) : (N(), I("img", {
- key: 0,
- src: Os,
- class: "eye",
- onClick: e[10] || (e[10] = dA((s) => g.showPassword = !g.showPassword, ["stop"]))
- }))
- ]),
- _: 1
- }, 8, ["value", "placeholder", "type"])
- ]),
- _: 1
- }),
- m(Y, {
- onSuccess: r.verifySuccess,
- mode: "pop",
- captchaType: g.captchaType,
- imgSize: { width: "330px", height: "155px" },
- ref: "verify1"
- }, null, 8, ["onSuccess", "captchaType"]),
- g.verificationImage ? (N(), CA(P, {
- key: 1,
- class: "verification-item"
- }, {
- default: S(() => [
- F("div", Fs, [
- m(x, {
- value: g.form.verificationCode,
- "onUpdate:value": e[16] || (e[16] = (s) => g.form.verificationCode = s),
- size: "large",
- placeholder: A.$l("请输入验证码"),
- allowClear: !0
- }, null, 8, ["value", "placeholder"]),
- F("img", {
- class: "verification-img",
- src: g.verificationImage,
- title: A.$l("点击刷新验证码"),
- onClick: e[17] || (e[17] = (...s) => r.refreshVerificationCode && r.refreshVerificationCode(...s))
- }, null, 8, os)
- ])
- ]),
- _: 1
- })) : _("", !0),
- w.showAutoLogin ? (N(), I("div", Ns, [
- m(D, {
- checked: g.autoLogin,
- "onUpdate:checked": e[18] || (e[18] = (s) => g.autoLogin = s)
- }, {
- default: S(() => [
- F("span", null, R(A.$l("自动登录")), 1)
- ]),
- _: 1
- }, 8, ["checked"]),
- m(C, {
- class: "update-password",
- type: "link",
- onClick: r.handUpdatePassword
- }, {
- default: S(() => [
- WA(R(A.$l("忘记密码?")), 1)
- ]),
- _: 1
- }, 8, ["onClick"])
- ])) : _("", !0),
- m(C, {
- class: "login-btn",
- size: "large",
- type: "primary",
- disabled: g.isLoginButtonDisabled,
- onClick: r.handLogin
- }, {
- default: S(() => [
- g.isCountdown ? _("", !0) : (N(), I("span", {
- key: 0,
- onClick: e[19] || (e[19] = dA((...s) => r.handLogin && r.handLogin(...s), ["stop"]))
- }, R(A.$l("登录")), 1)),
- g.isCountdown ? (N(), CA(Q, {
- key: 1,
- format: "ss",
- size: "mini",
- value: g.deadline,
- onFinish: r.onFinish
- }, null, 8, ["value", "onFinish"])) : _("", !0)
- ]),
- _: 1
- }, 8, ["disabled", "onClick"]),
- w.showOtherLogin ? (N(), I("div", ms, [
- F("div", Js, [
- F("div", ks, R(A.$l("其他方式登录")), 1),
- F("div", Ks, [
- (N(!0), I(JB, null, kB(g.otherLoginList, (s) => (N(), I("div", {
- class: "item",
- key: s.key
- }, [
- s.icon ? (N(), CA(KB(s.icon), {
- key: 0,
- class: "icon-font"
- })) : (N(), I("img", {
- key: 1,
- src: s.src,
- class: "icon"
- }, null, 8, Es))
- ]))), 128))
- ])
- ]),
- F("div", Is, [
- m(C, {
- class: "resign-account",
- type: "link",
- onClick: r.handUpdatePassword
- }, {
- default: S(() => [
- WA(R(A.$l("账户注册")), 1)
- ]),
- _: 1
- }, 8, ["onClick"])
- ])
- ])) : _("", !0)
- ])) : _("", !0)
- ]),
- _: 1
- }, 8, ["tab"])),
- r.showPhoneLogin ? (N(), CA(t, {
- key: 2,
- tab: A.$l("手机号码登录")
- }, {
- default: S(() => [
- g.typeActive === 2 ? (N(), I("div", ps, [
- m(P, {
- label: " ",
- colon: !1,
- name: "mobile"
- }, {
- default: S(() => [
- m(c, {
- style: { width: "100%" },
- value: g.form.mobile,
- "onUpdate:value": e[21] || (e[21] = (s) => g.form.mobile = s),
- controls: !1,
- "has-feedback": "",
- size: "large",
- placeholder: A.$l("手机号")
- }, {
- addonBefore: S(() => [
- m(v, {
- value: g.form.prefix,
- "onUpdate:value": e[20] || (e[20] = (s) => g.form.prefix = s),
- style: { width: "80px" }
- }, {
- default: S(() => [
- m(f, { value: "+86" }, {
- default: S(() => [...e[26] || (e[26] = [
- WA("+86", -1)
- ])]),
- _: 1
- })
- ]),
- _: 1
- }, 8, ["value"])
- ]),
- _: 1
- }, 8, ["value", "placeholder"])
- ]),
- _: 1
- }),
- m(P, {
- label: " ",
- colon: !1,
- name: "code"
- }, {
- default: S(() => [
- F("div", Ts, [
- m(c, {
- controls: !1,
- value: g.form.code,
- "onUpdate:value": e[22] || (e[22] = (s) => g.form.code = s),
- placeholder: A.$l("短息验证码"),
- style: { width: "100%" },
- size: "large",
- allowClear: !0
- }, null, 8, ["value", "placeholder"]),
- m(C, { class: "valid-code" }, {
- default: S(() => [
- g.captchaCountdown <= 0 ? (N(), I("span", {
- key: 0,
- onClick: e[23] || (e[23] = (...s) => r.handGetCaptchaCount && r.handGetCaptchaCount(...s))
- }, R(A.$l("获取验证码")), 1)) : (N(), CA(Q, {
- key: 1,
- size: "mini",
- format: "ss",
- value: g.captchaCountdown,
- onFinish: r.onFinishReset
- }, null, 8, ["value", "onFinish"]))
- ]),
- _: 1
- })
- ])
- ]),
- _: 1
- }),
- m(Y, {
- onSuccess: r.verifySuccess1,
- mode: "pop",
- captchaType: g.captchaType,
- imgSize: { width: "330px", height: "155px" },
- ref: "verify"
- }, null, 8, ["onSuccess", "captchaType"]),
- m(C, {
- class: "login-btn",
- size: "large",
- type: "primary",
- disabled: g.isLoginButtonDisabled,
- onClick: r.handLogin
- }, {
- default: S(() => [
- g.isCountdown ? _("", !0) : (N(), I("span", Ss, R(A.$l("登录")), 1)),
- g.isCountdown ? (N(), CA(Q, {
- key: 1,
- format: "ss",
- size: "mini",
- value: g.deadline,
- onFinish: r.onFinish
- }, null, 8, ["value", "onFinish"])) : _("", !0)
- ]),
- _: 1
- }, 8, ["disabled", "onClick"])
- ])) : _("", !0)
- ]),
- _: 1
- }, 8, ["tab"])) : _("", !0)
- ]),
- _: 1
- }, 8, ["activeKey"]),
- w.showAgreement ? (N(), I("div", Us, [
- m(D, {
- checked: g.arguments,
- "onUpdate:checked": e[25] || (e[25] = (s) => g.arguments = s)
- }, {
- default: S(() => [
- F("span", null, R(A.$l("我已阅读同意")), 1)
- ]),
- _: 1
- }, 8, ["checked"]),
- m(C, {
- class: "link-btn",
- type: "link",
- onClick: r.handUpdatePassword
- }, {
- default: S(() => [
- WA(R(A.$l("《隐私政策》")), 1)
- ]),
- _: 1
- }, 8, ["onClick"]),
- F("span", null, R(A.$l("和")), 1),
- m(C, {
- class: "link-btn",
- type: "link",
- onClick: r.handUpdatePassword
- }, {
- default: S(() => [
- WA(R(A.$l("《服务协议》")), 1)
- ]),
- _: 1
- }, 8, ["onClick"])
- ])) : _("", !0)
- ]))
- ]),
- _: 1
- }, 8, ["model", "rules"]),
- F("div", hs, R(A.$utils.env.VITE_APP_CASE_NAME), 1)
- ]);
- }
- 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 = {
- name: "LoginPage",
- components: {
- LoginForm: _s
- },
- data() {
- return {
- spinning: !1,
- sysName: "",
- backgroundImg: "",
- logo: "",
- passwordAttribute: {},
- // 表单动态参数对象
- isLoginButtonDisabled: !1,
- // 登录按钮是否禁用
- deadline: 0,
- // 倒计时时间
- isCountdown: !1,
- // 显示倒计时
- loginTheme: "1"
- };
- },
- mounted() {
- this.loginTheme = this.$utils.env.VITE_APP_LOGIN_PATH_THEME, this.spinning = !0, this.spinning = !1, this.getAppearanceConfig();
- },
- methods: {
- handSwitchLanguage() {
- },
- requestFailed(A) {
- this.$notification.error({
- key: "only-you",
- message: "Error",
- description: ((A.response || {}).data || {}).message || this.$l("登录失败"),
- duration: 4
- });
- },
- getAppearanceConfig() {
- 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("统一数据平台 | 管理系统");
- const A = this.$utils.ls.get("systemIcons");
- A ? this.applySystemIcon(A) : Iw().then((e) => {
- this.$utils.ls.set("systemIcons", e), this.applySystemIcon(e);
- });
- },
- // 应用外观配置:登录页 logo、页签 favicon(已登录后的首页 logo/favicon 由 BasicLayout 处理)
- applySystemIcon(A) {
- A && (A.loginPageLogoUrl && (this.logo = A.loginPageLogoUrl), A.faviconUrl && this.$utils.setFavicon(A.faviconUrl));
- }
- }
- }, w7 = { class: "login-page" }, D7 = {
- key: 0,
- class: "container-between"
- }, 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" };
- function P7(A, e, w, B, g, r) {
- const x = Gg("LoginForm"), P = Gg("s-toggle-language"), Y = Kw;
- return N(), CA(Y, { spinning: g.spinning }, {
- default: S(() => [
- F("div", w7, [
- g.loginTheme === "1" ? (N(), I("div", D7, [
- F("div", s7, [
- F("div", e7, [
- F("img", {
- src: g.logo,
- class: "logo"
- }, null, 8, t7),
- F("div", C7, R(g.sysName), 1)
- ]),
- F("img", {
- src: g.backgroundImg,
- class: "left-cover"
- }, null, 8, M7)
- ]),
- F("div", v7, [
- m(x)
- ])
- ])) : _("", !0),
- g.loginTheme !== "1" ? (N(), I("div", {
- key: 1,
- class: yA(
- g.loginTheme === "2" ? "container-left" : g.loginTheme === "3" ? "container-center" : ""
- )
- }, [
- F("img", {
- src: g.backgroundImg,
- class: "bg-cover"
- }, null, 8, r7),
- F("img", {
- src: g.logo,
- class: "logo"
- }, null, 8, f7),
- F("div", n7, [
- m(x)
- ])
- ], 2)) : _("", !0),
- F("div", z7, [
- m(P, { blockType: "dropdown" })
- ])
- ])
- ]),
- _: 1
- }, 8, ["spinning"]);
- }
- const x7 = /* @__PURE__ */ XA(B7, [["render", P7], ["__scopeId", "data-v-41f95dd0"]]);
- export {
- x7 as default
- };
|