jsPlugin-1.2.0.js 921 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823
  1. !(function (t, e) {
  2. if ('object' == typeof exports && 'object' == typeof module)
  3. module.exports = e();
  4. else if ('function' == typeof define && define.amd) define([], e);
  5. else {
  6. var n = e();
  7. for (var i in n) ('object' == typeof exports ? exports : t)[i] = n[i];
  8. }
  9. })(this, function () {
  10. return (function (t) {
  11. function e(i) {
  12. if (n[i]) return n[i].exports;
  13. var r = (n[i] = {exports: {}, id: i, loaded: !1});
  14. return t[i].call(r.exports, r, r.exports, e), (r.loaded = !0), r.exports;
  15. }
  16. var n = {};
  17. return (e.m = t), (e.c = n), (e.p = ''), e(0);
  18. })([
  19. function (t, e, n) {
  20. 'use strict';
  21. function i(t) {
  22. return t && t.__esModule ? t : {default: t};
  23. }
  24. function r(t, e) {
  25. if (!(t instanceof e))
  26. throw new TypeError('Cannot call a class as a function');
  27. }
  28. Object.defineProperty(e, '__esModule', {value: !0}),
  29. (e.JSPlugin = void 0);
  30. var o = (function () {
  31. function t(t, e) {
  32. for (var n = 0; n < e.length; n++) {
  33. var i = e[n];
  34. (i.enumerable = i.enumerable || !1),
  35. (i.configurable = !0),
  36. 'value' in i && (i.writable = !0),
  37. Object.defineProperty(t, i.key, i);
  38. }
  39. }
  40. return function (e, n, i) {
  41. return n && t(e.prototype, n), i && t(e, i), e;
  42. };
  43. })(),
  44. a = n(5),
  45. s = n(15),
  46. u = n(16),
  47. l = n(10),
  48. f = n(9),
  49. c = n(1),
  50. h = i(c),
  51. d = (function () {
  52. function t() {
  53. document.addEventListener(
  54. 'visibilitychange',
  55. function () {
  56. if (document.hidden)
  57. for (var t = 0; t < 16; t++)
  58. p[I][t] &&
  59. p[I][t].bLoad &&
  60. p[I][t].oPlayCtrl.PlayM4_IsVisible(!1);
  61. else
  62. for (var e = 0; e < 16; e++)
  63. p[I][e] &&
  64. p[I][e].bLoad &&
  65. p[I][e].oPlayCtrl.PlayM4_IsVisible(!0);
  66. },
  67. !1
  68. );
  69. }
  70. function e(t, e) {
  71. t && e && ((p[M].iWidth = t), (p[M].iHeight = e));
  72. var n = p[M].iWidth % p[M].iCurrentSplit,
  73. i = p[M].iHeight % p[M].iCurrentSplit,
  74. r =
  75. (p[M].iWidth - n - 2 * p[M].iCurrentSplit) / p[M].iCurrentSplit,
  76. o =
  77. (p[M].iHeight - i - 2 * p[M].iCurrentSplit) /
  78. p[M].iCurrentSplit,
  79. a = (p[M].iWidth - n) / p[M].iCurrentSplit,
  80. s = (p[M].iHeight - i) / p[M].iCurrentSplit,
  81. u = p[M].iCurrentSplit;
  82. D = (0, h.default)('#' + p[M].szId);
  83. for (
  84. var l =
  85. '<div class="parent-wnd" style="overflow:hidden;width:100%; height:100%; position: relative;">',
  86. f = 0;
  87. f < p[z];
  88. f++
  89. ) {
  90. (t = r + (f % u === u - 1 ? n : 0)),
  91. (e = o + (f + u >= Math.pow(u, 2) ? i : 0));
  92. var c = a + (f % u === u - 1 ? n : 0),
  93. d = s + (f + u >= Math.pow(u, 2) ? i : 0);
  94. l +=
  95. '<div style="float:left; background-color: ' +
  96. p[M].oStyle.background +
  97. '; position: relative; width: ' +
  98. c +
  99. 'px; height: ' +
  100. d +
  101. 'px;"><canvas id="canvas' +
  102. f +
  103. '" class="play-window" style="border:1px solid ' +
  104. p[M].oStyle.border +
  105. ';" wid="' +
  106. f +
  107. '" width="' +
  108. t +
  109. '" height="' +
  110. e +
  111. '"></canvas><canvas id="canvas_draw' +
  112. f +
  113. '" class="draw-window" style="position:absolute; top:0; left:0;" wid="' +
  114. f +
  115. '" width=' +
  116. c +
  117. ' height=' +
  118. d +
  119. '></canvas></div>';
  120. }
  121. (l += '</div>'),
  122. D.html(l),
  123. D.find('.parent-wnd')
  124. .eq(0)
  125. .children()
  126. .eq(0)
  127. .find('.play-window')
  128. .eq(0)
  129. .css('border', '1px solid ' + p[M].oStyle.borderSelect);
  130. }
  131. function n() {
  132. p.EventCallback = (function () {
  133. return {
  134. loadEventHandler: function () {
  135. window.loadEventHandler && window.loadEventHandler();
  136. },
  137. zoomEventResponse: function () {
  138. },
  139. windowEventSelect: function (t) {
  140. p[H] !== t &&
  141. ((p[H] = t),
  142. (p[I][t].bEZoom || p[I][t].b3DZoom) &&
  143. ((0, h.default)('.draw-window').unbind(),
  144. p[A].setDrawStatus(!1),
  145. (p[A] = null),
  146. (p[A] = new f.ESCanvas('canvas_draw' + t)),
  147. p[A].setShapeType('Rect'),
  148. p[A].setDrawStyle('#ff0000', '', 0),
  149. p[I][t].bEZoom
  150. ? p[A].setDrawStatus(!0, function (e) {
  151. e.startPos &&
  152. e.endPos &&
  153. (e.startPos[0] > e.endPos[0]
  154. ? p[I][t].oPlayCtrl.PlayM4_SetDisplayRegion(
  155. null,
  156. !1
  157. )
  158. : p[I][t].oPlayCtrl.PlayM4_SetDisplayRegion(
  159. {
  160. left: e.startPos[0],
  161. top: e.startPos[1],
  162. right: e.endPos[0],
  163. bottom: e.endPos[1],
  164. },
  165. !0
  166. ));
  167. })
  168. : p[I][t].b3DZoom &&
  169. p[A].setDrawStatus(!0, function (t) {
  170. p[j](t);
  171. })),
  172. window.GetSelectWndInfo && window.GetSelectWndInfo(t));
  173. },
  174. pluginErrorHandler: function (t, e, n) {
  175. window.PluginEventHandler &&
  176. window.PluginEventHandler(t, e, n);
  177. },
  178. windowEventOver: function (t) {
  179. window.windowEventOver && window.windowEventOver(t);
  180. },
  181. windowEventOut: function (t) {
  182. window.windowEventOut && window.windowEventOut(t);
  183. },
  184. windowEventUp: function (t) {
  185. window.windowEventUp && window.windowEventUp(t);
  186. },
  187. windowFullCcreenChange: function (t) {
  188. window.windowFullCcreenChange &&
  189. window.windowFullCcreenChange(t);
  190. },
  191. firstFrameDisplay: function (t) {
  192. window.firstFrameDisplay && window.firstFrameDisplay(t);
  193. },
  194. performanceLack: function () {
  195. window.performanceLack && window.performanceLack();
  196. },
  197. };
  198. })();
  199. }
  200. function i() {
  201. n(),
  202. D.find('.parent-wnd')
  203. .eq(0)
  204. .children()
  205. .each(function (t) {
  206. var e = this;
  207. (0, h.default)(e)
  208. .unbind()
  209. .bind('mousedown', function () {
  210. D.find('.parent-wnd')
  211. .eq(0)
  212. .find('.play-window')
  213. .css('border', '1px solid ' + p[M].oStyle.border),
  214. D.find('.parent-wnd')
  215. .eq(0)
  216. .children()
  217. .eq(t)
  218. .find('.play-window')
  219. .eq(0)
  220. .css(
  221. 'border',
  222. '1px solid ' + p[M].oStyle.borderSelect
  223. ),
  224. p.EventCallback.windowEventSelect(
  225. parseInt(
  226. D.find('.parent-wnd')
  227. .eq(0)
  228. .children()
  229. .eq(t)
  230. .find('.play-window')
  231. .eq(0)
  232. .attr('wid'),
  233. 10
  234. )
  235. );
  236. }),
  237. (0, h.default)(e).bind('mouseover', function (e) {
  238. p.EventCallback.windowEventOver(t), e.stopPropagation();
  239. }),
  240. (0, h.default)(e).bind('mouseout', function (e) {
  241. p.EventCallback.windowEventOut(t), e.stopPropagation();
  242. }),
  243. (0, h.default)(e).bind('mouseup', function () {
  244. p.EventCallback.windowEventUp(t);
  245. }),
  246. (0, h.default)(e).bind('dblclick', function (t) {
  247. if (p[I][p[H]].bPlay) {
  248. var n =
  249. document.fullscreen ||
  250. document.webkitIsFullScreen ||
  251. document.mozFullScreen ||
  252. !1,
  253. i = (0, h.default)(e).get(0);
  254. if (n) {
  255. if (
  256. D.find('.parent-wnd')
  257. .eq(0)
  258. .width() === (0, h.default)(window).width()
  259. )
  260. return;
  261. document.exitFullscreen
  262. ? document.exitFullscreen()
  263. : document.webkitCancelFullScreen
  264. ? document.webkitCancelFullScreen()
  265. : document.mozCancelFullScreen &&
  266. document.mozCancelFullScreen();
  267. } else
  268. i.requestFullScreen
  269. ? i.requestFullScreen()
  270. : i.webkitRequestFullScreen
  271. ? i.webkitRequestFullScreen()
  272. : i.mozRequestFullScreen &&
  273. i.mozRequestFullScreen(),
  274. (p[B] = (0, h.default)(e));
  275. t.stopPropagation();
  276. }
  277. });
  278. }),
  279. 'undefined' != typeof document.fullScreen
  280. ? document.addEventListener('fullscreenchange', function () {
  281. var t = document.fullscreen || !1;
  282. p.EventCallback.windowFullCcreenChange(t);
  283. })
  284. : 'undefined' != typeof document.webkitIsFullScreen
  285. ? document.addEventListener(
  286. 'webkitfullscreenchange',
  287. function () {
  288. var t = document.webkitIsFullScreen || !1;
  289. p.EventCallback.windowFullCcreenChange(t);
  290. }
  291. )
  292. : 'undefined' != typeof document.mozFullScreen &&
  293. document.addEventListener(
  294. 'mozfullscreenchange',
  295. function () {
  296. var t = document.mozFullScreen || !1;
  297. p.EventCallback.windowFullCcreenChange(t);
  298. }
  299. );
  300. }
  301. function c() {
  302. for (
  303. var t = D.find('.parent-wnd')
  304. .eq(0)
  305. .children().length,
  306. e = p[M].iWidth % p[M].iCurrentSplit,
  307. n = p[M].iHeight % p[M].iCurrentSplit,
  308. i =
  309. (p[M].iWidth - e - 2 * p[M].iCurrentSplit) /
  310. p[M].iCurrentSplit,
  311. r =
  312. (p[M].iHeight - n - 2 * p[M].iCurrentSplit) /
  313. p[M].iCurrentSplit,
  314. o = (p[M].iWidth - e) / p[M].iCurrentSplit,
  315. a = (p[M].iHeight - n) / p[M].iCurrentSplit,
  316. s = p[M].iCurrentSplit,
  317. u = 0;
  318. u < t;
  319. u++
  320. ) {
  321. var l = i + (u % s === s - 1 ? e : 0),
  322. f = r + (u + s >= Math.pow(s, 2) ? n : 0),
  323. c = o + (u % s === s - 1 ? e : 0),
  324. h = a + (u + s >= Math.pow(s, 2) ? n : 0);
  325. D.find('.parent-wnd')
  326. .eq(0)
  327. .children()
  328. .eq(u)
  329. .width(c),
  330. D.find('.parent-wnd')
  331. .eq(0)
  332. .children()
  333. .eq(u)
  334. .height(h),
  335. D.find('.parent-wnd')
  336. .eq(0)
  337. .children()
  338. .eq(u)
  339. .find('.draw-window')
  340. .attr('width', c),
  341. D.find('.parent-wnd')
  342. .eq(0)
  343. .children()
  344. .eq(u)
  345. .find('.draw-window')
  346. .attr('height', h),
  347. D.find('.parent-wnd')
  348. .eq(0)
  349. .children()
  350. .eq(u)
  351. .find('.play-window')
  352. .attr('width', l),
  353. D.find('.parent-wnd')
  354. .eq(0)
  355. .children()
  356. .eq(u)
  357. .find('.play-window')
  358. .attr('height', f);
  359. }
  360. D.find('.parent-wnd')
  361. .eq(p[H])
  362. .find('.play-window')
  363. .css('border', '1px solid ' + p[M].oStyle.border),
  364. D.find('.parent-wnd')
  365. .eq(p[H])
  366. .children()
  367. .eq(0)
  368. .find('.play-window')
  369. .eq(0)
  370. .css('border', '1px solid ' + p[M].oStyle.borderSelect);
  371. }
  372. function d(t, e, n, i, r, o, a) {
  373. if ((0, h.default)('#' + p[I][n].windowID).length) {
  374. var s = !1;
  375. i && r && (s = !0),
  376. (p[I][n].bLoad = !0),
  377. T.openStream(
  378. t,
  379. e,
  380. function (t) {
  381. if (t.bHead && !p[I][n].bPlay)
  382. (p[I][n].bPlay = !0),
  383. (p[I][n].aHead = new Uint8Array(t.buf)),
  384. p[I][n].oPlayCtrl.PlayM4_OpenStream(t.buf, S, 2097152),
  385. '' !== p[I][n].szSecretKey &&
  386. (p[I][n].oPlayCtrl.PlayM4_SetSecretKey(
  387. 1,
  388. p[I][n].szSecretKey,
  389. 128
  390. ),
  391. (p[I][n].szSecretKey = '')),
  392. 4 === p[I][n].aHead[8]
  393. ? p[I][n].oPlayCtrl.PlayM4_SetStreamOpenMode(0)
  394. : p[I][n].oPlayCtrl.PlayM4_SetStreamOpenMode(1),
  395. p[I][n].oPlayCtrl.PlayM4_SetInputBufSize(b),
  396. p[I][n].oPlayCtrl.PlayM4_Play(p[I][n].windowID);
  397. else {
  398. var e = new Uint8Array(t.buf),
  399. i = p[I][n].oPlayCtrl.PlayM4_GetInputBufSize(),
  400. r = p[I][n].oPlayCtrl.PlayM4_GetYUVBufSize();
  401. 2 !== r ||
  402. p[I][n].bFirstFrame ||
  403. ((p[I][n].bFirstFrame = !0),
  404. p.EventCallback.firstFrameDisplay(n));
  405. var o = p[I][n].oPlayCtrl.PlayM4_GetDecodeFrameType();
  406. i > 0.5 * b && i < 0.8 * b && 1 === p[I][n].iRate
  407. ? o !== g &&
  408. (p[I][n].oPlayCtrl.PlayM4_SetDecodeFrameType(g),
  409. p.EventCallback.performanceLack())
  410. : i >= 0.8 * b && (e = new Uint8Array([1, 2, 3, 4])),
  411. r > 10 && r < 15
  412. ? o !== g &&
  413. (p[I][n].oPlayCtrl.PlayM4_SetDecodeFrameType(g),
  414. p.EventCallback.performanceLack())
  415. : r > 15 && (e = new Uint8Array([1, 2, 3, 4])),
  416. r < 10 &&
  417. i < 0.5 * b &&
  418. o !== v &&
  419. p[I][n].oPlayCtrl.PlayM4_SetDecodeFrameType(v),
  420. t.statusString
  421. ? p.EventCallback.pluginErrorHandler(n, w, t)
  422. : t.type && 'exception' === t.type
  423. ? p.EventCallback.pluginErrorHandler(n, _, t)
  424. : p[I][n].oPlayCtrl.PlayM4_InputData(e, e.length),
  425. (e = null);
  426. }
  427. p[I][n].szStorageUUID &&
  428. k.inputData(p[I][n].szStorageUUID, t.buf),
  429. (t = null);
  430. },
  431. function () {
  432. p[I][n].bPlay &&
  433. (p.EventCallback.pluginErrorHandler(n, P),
  434. (p[I][n].bPlay = !1),
  435. (p[I][n].bFrameForward = !1),
  436. (p[I][n].iRate = 1),
  437. p[I][n].oPlayCtrl &&
  438. (p[I][n].oPlayCtrl.PlayM4_Stop(),
  439. p[I][n].oPlayCtrl.PlayM4_CloseStream()));
  440. }
  441. ).then(
  442. function (t) {
  443. (p[I][n].szStreamUUID = t),
  444. T.startPlay(t, i, r).then(
  445. function () {
  446. s
  447. ? ((p[I][n].szPlayType = 'playback'),
  448. (p[I][n].iRate = 1),
  449. p[I][n].oPlayCtrl.PlayM4_PlayRate(p[I][n].iRate))
  450. : (p[I][n].szPlayType = 'realplay'),
  451. o();
  452. },
  453. function (t) {
  454. a(t);
  455. }
  456. );
  457. },
  458. function (t) {
  459. a(t);
  460. }
  461. );
  462. }
  463. }
  464. if ('undefined' != typeof Symbol) {
  465. var p = null,
  466. y = -1,
  467. m = 0,
  468. v = 0,
  469. g = 1,
  470. S = 40,
  471. b = 4194304,
  472. w = 1001,
  473. _ = 1002,
  474. P = 1003,
  475. C = 2001,
  476. x = 2002,
  477. T = new s.StreamClient(),
  478. k = null,
  479. D = null,
  480. M = Symbol('OPTIONS'),
  481. R = Symbol('CURRENTPLAYRATE'),
  482. E = Symbol('CURRENTSOUNDWND'),
  483. z = Symbol('MAXWNDNUM'),
  484. I = Symbol('MAXWNDNUM'),
  485. A = Symbol('DRAWCANVAS'),
  486. F = Symbol('SHAPEID'),
  487. O = Symbol('WINDOWFULL'),
  488. B = Symbol('SINGLEWINDOW'),
  489. L = Symbol('FILETMP'),
  490. N = Symbol('STATUSTMP'),
  491. q = Symbol('UPGRADESTATUSURL'),
  492. H = Symbol('CURWNDINDEX'),
  493. j = Symbol('CALLBACKFUNCTION'),
  494. W = (function () {
  495. function n(o) {
  496. r(this, n), (p = this);
  497. var a = {
  498. szId: 'playWnd',
  499. iType: 1,
  500. iWidth: 400,
  501. iHeight: 300,
  502. iMaxSplit: 4,
  503. iCurrentSplit: 2,
  504. szBasePath: './',
  505. };
  506. var wsParams = {wsParams: ''};
  507. this[M] = Object.assign(a, wsParams, o);
  508. var s = {
  509. border: '#343434',
  510. borderSelect: '#FFCC00',
  511. background: '#4C4B4B',
  512. };
  513. (s = Object.assign(s, o.oStyle)),
  514. (this[M].oStyle = s),
  515. this[M].iCurrentSplit > this[M].iMaxSplit &&
  516. (this[M].iCurrentSplit = this[M].iMaxSplit),
  517. (this[R] = 1),
  518. (this[E] = -1),
  519. (this[z] = this[M].iMaxSplit * this[M].iMaxSplit),
  520. (this[F] = ''),
  521. (this[O] = !1),
  522. (this[B] = null),
  523. (this[L] = null),
  524. (this[N] = ''),
  525. (this[q] = ''),
  526. (this[H] = -1),
  527. (this[j] = null),
  528. (k = new l.StorageManager(
  529. this[M].szBasePath + '/transform'
  530. )),
  531. (D = (0, h.default)('#' + p[M].szId)),
  532. (this[I] = []);
  533. for (var u = 0; u < this[z]; u++)
  534. (this[I][u] = {}),
  535. (this[I][u].bSelect = !1),
  536. (this[I][u].bPlay = !1),
  537. (this[I][u].bRecord = !1),
  538. (this[I][u].oPlayCtrl = null),
  539. (this[I][u].szPlayType = ''),
  540. (this[I][u].szStorageUUID = ''),
  541. (this[I][u].szStreamUUID = ''),
  542. (this[I][u].aHead = []),
  543. (this[I][u].bLoad = !1),
  544. (this[I][u].windowID = 'canvas' + u),
  545. (this[I][u].drawID = 'canvas_draw' + u),
  546. (this[I][u].iRate = 1),
  547. (this[I][u].bEZoom = !1),
  548. (this[I][u].b3DZoom = !1),
  549. (this[I][u].szSecretKey = ''),
  550. (this[I][u].bFrameForward = !1),
  551. (this[I][u].iDecodeType = v),
  552. (this[I][u].bFirstFrame = !1);
  553. t(),
  554. e(),
  555. (this[A] = new f.ESCanvas('canvas_draw0')),
  556. 0 === this[M].iType &&
  557. (0, h.default)('#' + p[M].szId).hide(),
  558. i(),
  559. p.EventCallback.windowEventSelect(0);
  560. }
  561. return (
  562. o(n, [
  563. {
  564. key: 'JS_ArrangeWindow',
  565. value: function (t) {
  566. if (
  567. (t < p[M].iMaxSplit
  568. ? (p[M].iCurrentSplit = t)
  569. : (p[M].iCurrentSplit = p[M].iMaxSplit),
  570. a.oTool.isFirefox())
  571. )
  572. for (
  573. var e = 0;
  574. e < p[M].iMaxSplit * p[M].iMaxSplit;
  575. e++
  576. )
  577. p[I][e].oPlayCtrl &&
  578. p[I][e].oPlayCtrl.PlayM4_ClearCanvas();
  579. c(), p.EventCallback.windowEventSelect(0);
  580. },
  581. },
  582. {
  583. key: 'JS_SetSecretKey',
  584. value: function (t, e) {
  585. return t < 0
  586. ? -1
  587. : '' === e || 'undefined' == typeof e
  588. ? -1
  589. : ((this[I][t].szSecretKey = e), 0);
  590. },
  591. },
  592. {
  593. key: 'JS_Play',
  594. value: function (t, e, n, i, r) {
  595. var o = new Promise(function (o, a) {
  596. return n < 0 || n > p[z] - 1
  597. ? void a()
  598. : p[I][n].bFrameForward
  599. ? void a()
  600. : (p[I][n].bPlay && p.JS_Stop(n),
  601. (p[I][n].bFirstFrame = !1),
  602. (p[I][n].iDecodeType = v),
  603. void (p[I][n].oPlayCtrl
  604. ? d(t, e, n, i, r, o, a)
  605. : (p[I][n].oPlayCtrl = new u.JSPlayCtrl(
  606. p[M].szBasePath + '/playctrl/',
  607. function (s) {
  608. 'loaded' !== s.cmd || p[I][n].bLoad
  609. ? 'OnebyOne' === s.cmd
  610. ? s.status
  611. ? T.resume(p[I][n].szStreamUUID)
  612. : T.pause(p[I][n].szStreamUUID)
  613. : 'GetFrameData' === s.cmd &&
  614. p.EventCallback.pluginErrorHandler(
  615. n,
  616. C
  617. )
  618. : d(t, e, n, i, r, o, a);
  619. },
  620. n
  621. ))));
  622. });
  623. return o;
  624. },
  625. },
  626. {
  627. key: 'JS_Seek',
  628. value: function (t, e, n) {
  629. var i = new Promise(function (i, r) {
  630. return t < 0 || t > p[z] - 1
  631. ? void r()
  632. : p[I][t].bPlay
  633. ? void T.seek(p[I][t].szStreamUUID, e, n).then(
  634. function () {
  635. i();
  636. },
  637. function (t) {
  638. r(t);
  639. }
  640. )
  641. : void r();
  642. });
  643. return i;
  644. },
  645. },
  646. {
  647. key: 'JS_GetSdkVersion',
  648. value: function () {
  649. return p[I][0].oPlayCtrl.PlayM4_GetSdkVersion();
  650. },
  651. },
  652. {
  653. key: 'JS_DestroyWorker',
  654. value: function () {
  655. p[I].forEach(function (t) {
  656. t.bPlay && t.oPlayCtrl.PlayM4_CloseStream(),
  657. t.oPlayCtrl &&
  658. (t.oPlayCtrl.PlayM4_Destroy(),
  659. (t.oPlayCtrl = null),
  660. (t.bLoad = !1));
  661. });
  662. },
  663. },
  664. {
  665. key: 'JS_Stop',
  666. value: function (t) {
  667. var e = new Promise(function (e, n) {
  668. return t < 0 || t > p[z] - 1
  669. ? void n()
  670. : (p[I][t].szStorageUUID && p.JS_StopSave(t),
  671. p[I][t].bEZoom && p.JS_DisableZoom(t),
  672. p[E] === t && (p[E] = -1),
  673. void T.stop(p[I][t].szStreamUUID).then(
  674. function () {
  675. (p[I][t].bPlay = !1),
  676. (p[I][t].bFrameForward = !1),
  677. (p[I][t].iRate = 1),
  678. p[I][t].oPlayCtrl &&
  679. (p[I][t].oPlayCtrl.PlayM4_Stop(),
  680. p[I][t].oPlayCtrl.PlayM4_CloseStream()),
  681. setTimeout(function () {
  682. e();
  683. }, 500);
  684. },
  685. function () {
  686. setTimeout(function () {
  687. n();
  688. }, 500);
  689. }
  690. ));
  691. });
  692. return e;
  693. },
  694. },
  695. {
  696. key: 'JS_Pause',
  697. value: function (t) {
  698. var e = new Promise(function (e, n) {
  699. return t < 0 || t > p[z] - 1
  700. ? void n()
  701. : p[I][t].bPlay
  702. ? p[I][t].bFrameForward
  703. ? void n()
  704. : void T.pause(p[I][t].szStreamUUID).then(
  705. function () {
  706. p[I][t].oPlayCtrl.PlayM4_Pause(!0), e();
  707. },
  708. function (t) {
  709. n(t);
  710. }
  711. )
  712. : void n();
  713. });
  714. return e;
  715. },
  716. },
  717. {
  718. key: 'JS_Resume',
  719. value: function (t) {
  720. var e = new Promise(function (e, n) {
  721. return t < 0 || t > p[z] - 1
  722. ? void n()
  723. : p[I][t].bPlay
  724. ? void T.resume(p[I][t].szStreamUUID).then(
  725. function () {
  726. 1 !== p[R] &&
  727. ((p[I][t].iRate = p[R]),
  728. T.setPlayRate(
  729. p[I][t].szStreamUUID,
  730. p[I][t].iRate
  731. ),
  732. p[I][t].oPlayCtrl.PlayM4_PlayRate(
  733. p[I][t].iRate
  734. ),
  735. p[R] > 1
  736. ? p[I][
  737. t
  738. ].oPlayCtrl.PlayM4_SetDecodeFrameType(
  739. g
  740. )
  741. : p[I][
  742. t
  743. ].oPlayCtrl.PlayM4_SetDecodeFrameType(
  744. v
  745. )),
  746. p[I][t].bFrameForward
  747. ? (p[I][t].oPlayCtrl.PlayM4_Play(
  748. p[I][t].windowID
  749. ),
  750. (p[I][t].bFrameForward = !1))
  751. : p[I][t].oPlayCtrl.PlayM4_Pause(!1),
  752. e();
  753. },
  754. function (t) {
  755. n(t);
  756. }
  757. )
  758. : void n();
  759. });
  760. return e;
  761. },
  762. },
  763. {
  764. key: 'JS_Slow',
  765. value: function (t) {
  766. var e = new Promise(function (e, n) {
  767. return t < 0 || t > p[z] - 1
  768. ? void n()
  769. : p[I][t].bPlay
  770. ? 'playback' !== p[I][t].szPlayType
  771. ? void n()
  772. : p[I][t].iRate === -8
  773. ? void n()
  774. : p[I][t].bFrameForward
  775. ? void n()
  776. : (p[I][t].iRate < 0 &&
  777. p[I][t].iRate > -8 &&
  778. (p[I][t].iRate *= 2),
  779. 1 === p[I][t].iRate &&
  780. (p[I][t].iRate *= -2),
  781. p[I][t].iRate > 1 && (p[I][t].iRate /= 2),
  782. void T.setPlayRate(
  783. p[I][t].szStreamUUID,
  784. p[I][t].iRate
  785. ).then(
  786. function () {
  787. p[I][t].iRate < 2
  788. ? p[I][
  789. t
  790. ].oPlayCtrl.PlayM4_SetDecodeFrameType(
  791. v
  792. )
  793. : (p[I][
  794. t
  795. ].oPlayCtrl.PlayM4_SetDecodeFrameType(
  796. g
  797. ),
  798. p[I][
  799. t
  800. ].oPlayCtrl.PlayM4_SetIFrameDecInterval(
  801. 0
  802. )),
  803. p[I][t].oPlayCtrl.PlayM4_PlayRate(
  804. p[I][t].iRate
  805. ),
  806. e();
  807. },
  808. function (t) {
  809. n(t);
  810. }
  811. ))
  812. : void n();
  813. });
  814. return e;
  815. },
  816. },
  817. {
  818. key: 'JS_Fast',
  819. value: function (t) {
  820. var e = new Promise(function (e, n) {
  821. return t < 0 || t > p[z] - 1
  822. ? void n()
  823. : p[I][t].bPlay
  824. ? 'playback' !== p[I][t].szPlayType
  825. ? void n()
  826. : p[I][t].bFrameForward
  827. ? void n()
  828. : 8 === p[I][t].iRate
  829. ? void n()
  830. : (p[I][t].iRate === -2
  831. ? (p[I][t].iRate = 1)
  832. : p[I][t].iRate < -2
  833. ? (p[I][t].iRate /= 2)
  834. : p[I][t].iRate > 0 &&
  835. p[I][t].iRate < 8 &&
  836. (p[I][t].iRate *= 2),
  837. void T.setPlayRate(
  838. p[I][t].szStreamUUID,
  839. p[I][t].iRate
  840. ).then(
  841. function () {
  842. p[I][t].iRate < 2
  843. ? p[I][
  844. t
  845. ].oPlayCtrl.PlayM4_SetDecodeFrameType(
  846. v
  847. )
  848. : (p[I][
  849. t
  850. ].oPlayCtrl.PlayM4_SetDecodeFrameType(
  851. g
  852. ),
  853. 8 === p[I][t].iRate
  854. ? p[I][
  855. t
  856. ].oPlayCtrl.PlayM4_SetIFrameDecInterval(
  857. 2
  858. )
  859. : p[I][
  860. t
  861. ].oPlayCtrl.PlayM4_SetIFrameDecInterval(
  862. 0
  863. )),
  864. p[I][t].oPlayCtrl.PlayM4_PlayRate(
  865. p[I][t].iRate
  866. ),
  867. e();
  868. },
  869. function (t) {
  870. n(t);
  871. }
  872. ))
  873. : void n();
  874. });
  875. return e;
  876. },
  877. },
  878. {
  879. key: 'JS_Transmission',
  880. value: function (t, e) {
  881. var n = new Promise(function (n, i) {
  882. return t < 0 || t > p[z] - 1
  883. ? void i()
  884. : p[I][t].szStreamUUID
  885. ? void T.transmission(
  886. p[I][t].szStreamUUID,
  887. e
  888. ).then(
  889. function (t) {
  890. n(t);
  891. },
  892. function (t) {
  893. i(t);
  894. }
  895. )
  896. : void i();
  897. });
  898. return n;
  899. },
  900. },
  901. {
  902. key: 'JS_FrameForward',
  903. value: function (t) {
  904. var e = new Promise(function (e, n) {
  905. return t < 0 || t > p[z] - 1
  906. ? void n()
  907. : p[I][t].bPlay
  908. ? (1 !== p[I][t].iRate
  909. ? ((p[I][t].iRate = 1),
  910. (p[R] = p[I][t].iRate),
  911. T.setPlayRate(
  912. p[I][t].szStreamUUID,
  913. p[I][t].iRate
  914. ).then(
  915. function () {
  916. p[I][t].oPlayCtrl.PlayM4_PlayRate(
  917. p[I][t].iRate
  918. ),
  919. p[I][
  920. t
  921. ].oPlayCtrl.PlayM4_SetDecodeFrameType(
  922. v
  923. ),
  924. p[I][t].oPlayCtrl.PlayM4_OneByOne(),
  925. (p[I][t].bFrameForward = !0);
  926. },
  927. function (t) {
  928. n(t);
  929. }
  930. ))
  931. : (p[I][t].oPlayCtrl.PlayM4_PlayRate(
  932. p[I][t].iRate
  933. ),
  934. p[I][t].oPlayCtrl.PlayM4_SetDecodeFrameType(
  935. v
  936. ),
  937. p[I][t].oPlayCtrl.PlayM4_OneByOne(),
  938. (p[I][t].bFrameForward = !0)),
  939. void e())
  940. : void n();
  941. });
  942. return e;
  943. },
  944. },
  945. {
  946. key: 'JS_GetOSDTime',
  947. value: function (t) {
  948. var e = new Promise(function (e, n) {
  949. if (t < 0 || t > p[z] - 1) return void n(y);
  950. if (!p[I][t].bPlay) return void n(y);
  951. var i = p[I][t].oPlayCtrl.PlayM4_GetOSDTime(function (
  952. t
  953. ) {
  954. var n = Date.parse(t.replace(/-/g, ' ')) / 1e3;
  955. e(n);
  956. });
  957. return 0 !== i ? void n(y) : void 0;
  958. });
  959. return e;
  960. },
  961. },
  962. {
  963. key: 'JS_OpenSound',
  964. value: function (t) {
  965. return t < 0 || t > p[z] - 1
  966. ? y
  967. : p[I][t].bPlay
  968. ? p[E] === t
  969. ? y
  970. : (p[E] !== -1 &&
  971. p[I][p[E]].oPlayCtrl.PlayM4_StopSound(),
  972. 0 !== p[I][t].oPlayCtrl.PlayM4_PlaySound(t)
  973. ? y
  974. : ((p[E] = t), m))
  975. : y;
  976. },
  977. },
  978. {
  979. key: 'JS_GetVolume',
  980. value: function (t, e) {
  981. p[I][t].oPlayCtrl.PlayM4_GetVolume(function (t) {
  982. e(t);
  983. });
  984. },
  985. },
  986. {
  987. key: 'JS_SetVolume',
  988. value: function (t, e) {
  989. return 0 !== p[I][t].oPlayCtrl.PlayM4_SetVolume(e)
  990. ? y
  991. : m;
  992. },
  993. },
  994. {
  995. key: 'JS_CloseSound',
  996. value: function () {
  997. var t = p[E];
  998. return t < 0 || t > p[z] - 1
  999. ? y
  1000. : p[I][t].bPlay
  1001. ? 0 !== p[I][t].oPlayCtrl.PlayM4_StopSound()
  1002. ? y
  1003. : ((p[E] = -1), m)
  1004. : y;
  1005. },
  1006. },
  1007. {
  1008. key: 'JS_EnableZoom',
  1009. value: function (t) {
  1010. return t < 0 || t > p[z] - 1
  1011. ? y
  1012. : p[I][t].bPlay
  1013. ? ((0, h.default)('.draw-window').unbind(),
  1014. (this[A] = new f.ESCanvas('canvas_draw' + t)),
  1015. this[A].setShapeType('Rect'),
  1016. this[A].setDrawStyle('#ff0000', '', 0),
  1017. this[A].setDrawStatus(!0, function (e) {
  1018. e.startPos &&
  1019. e.endPos &&
  1020. (e.startPos[0] > e.endPos[0]
  1021. ? p[I][t].oPlayCtrl.PlayM4_SetDisplayRegion(
  1022. null,
  1023. !1
  1024. )
  1025. : p[I][t].oPlayCtrl.PlayM4_SetDisplayRegion(
  1026. {
  1027. left: e.startPos[0],
  1028. top: e.startPos[1],
  1029. right: e.endPos[0],
  1030. bottom: e.endPos[1],
  1031. },
  1032. !0
  1033. ));
  1034. }),
  1035. (p[I][t].bEZoom = !0),
  1036. m)
  1037. : y;
  1038. },
  1039. },
  1040. {
  1041. key: 'JS_DisableZoom',
  1042. value: function (t) {
  1043. return t < 0 || t > p[z] - 1
  1044. ? y
  1045. : p[I][t].bPlay
  1046. ? (this[A].setDrawStatus(!1),
  1047. 0 !==
  1048. this[I][t].oPlayCtrl.PlayM4_SetDisplayRegion(
  1049. null,
  1050. !1
  1051. )
  1052. ? y
  1053. : ((this[I][t].bEZoom = !1), m))
  1054. : y;
  1055. },
  1056. },
  1057. {
  1058. key: 'JS_Enable3DZoom',
  1059. value: function (t, e) {
  1060. return t < 0 || t > p[z] - 1
  1061. ? y
  1062. : p[I][t].bPlay
  1063. ? ((0, h.default)('.draw-window').unbind(),
  1064. (this[j] = e),
  1065. (this[A] = new f.ESCanvas('canvas_draw' + t)),
  1066. this[A].setShapeType('Rect'),
  1067. this[A].setDrawStyle('#ff0000', '', 0),
  1068. this[A].setDrawStatus(!0, function (t) {
  1069. e(t);
  1070. }),
  1071. (p[I][t].b3DZoom = !0),
  1072. m)
  1073. : y;
  1074. },
  1075. },
  1076. {
  1077. key: 'JS_Disable3DZoom',
  1078. value: function (t) {
  1079. return t < 0 || t > p[z] - 1
  1080. ? y
  1081. : p[I][t].bPlay
  1082. ? (this[A].setDrawStatus(!1),
  1083. (this[I][t].b3DZoom = !1),
  1084. m)
  1085. : y;
  1086. },
  1087. },
  1088. {
  1089. key: 'JS_CapturePicture',
  1090. value: function (t, e, n) {
  1091. var i = new Promise(function (i, r) {
  1092. return t < 0 || t > p[z] - 1
  1093. ? void r()
  1094. : p[I][t].bPlay
  1095. ? (n || (n = 'JPEG'),
  1096. void ('BMP' === n
  1097. ? p[I][t].oPlayCtrl.PlayM4_GetBMP(function (
  1098. t
  1099. ) {
  1100. 6 === t
  1101. ? r(x)
  1102. : (a.oTool.downloadFile(t, e + '.BMP'),
  1103. i());
  1104. })
  1105. : 'JPEG' === n &&
  1106. p[I][t].oPlayCtrl.PlayM4_GetJPEG(function (
  1107. t
  1108. ) {
  1109. 6 === t
  1110. ? r(x)
  1111. : (a.oTool.downloadFile(t, e + '.jpeg'),
  1112. i());
  1113. })))
  1114. : void r();
  1115. });
  1116. return i;
  1117. },
  1118. },
  1119. {
  1120. key: 'JS_StopRealPlayAll',
  1121. value: function () {
  1122. T.stopAll(),
  1123. p[I].forEach(function (t, e) {
  1124. t.bPlay &&
  1125. (t.szStorageUUID && p.JS_StopSave(e),
  1126. t.bEZoom && p.JS_DisableZoom(e),
  1127. t.oPlayCtrl.PlayM4_Stop(),
  1128. t.oPlayCtrl.PlayM4_CloseStream()),
  1129. (t.bPlay = !1);
  1130. }),
  1131. (p[E] = -1);
  1132. },
  1133. },
  1134. {
  1135. key: 'JS_StartSave',
  1136. value: function (t, e) {
  1137. var n = new Promise(function (n, i) {
  1138. if (t < 0 || t > p[z] - 1) return void i();
  1139. if (!p[I][t].bPlay) return void i();
  1140. e.indexOf('.mp4') < 0 && (e += '.mp4');
  1141. var r = p[I][t].aHead,
  1142. o = 0;
  1143. 'playback' === p[I][t].szPlayType && (o = 1),
  1144. k
  1145. .startRecord(e, r, 2, o, {
  1146. cbEventHandler: function (e) {
  1147. p.EventCallback.pluginErrorHandler(t, e);
  1148. },
  1149. })
  1150. .then(
  1151. function (e) {
  1152. (p[I][t].szStorageUUID = e), n();
  1153. },
  1154. function () {
  1155. i();
  1156. }
  1157. );
  1158. });
  1159. return n;
  1160. },
  1161. },
  1162. {
  1163. key: 'JS_StopSave',
  1164. value: function (t) {
  1165. var e = new Promise(function (e, n) {
  1166. return p[I][t].szStorageUUID
  1167. ? void k.stopRecord(p[I][t].szStorageUUID).then(
  1168. function () {
  1169. (p[I][t].szStorageUUID = ''), e();
  1170. },
  1171. function (t) {
  1172. n(t);
  1173. }
  1174. )
  1175. : void n();
  1176. });
  1177. return e;
  1178. },
  1179. },
  1180. {
  1181. key: 'JS_GetLocalConfig',
  1182. value: function () {
  1183. return '';
  1184. },
  1185. },
  1186. {
  1187. key: 'JS_SetLocalConfig',
  1188. value: function () {
  1189. return !0;
  1190. },
  1191. },
  1192. {
  1193. key: 'JS_SetGridInfo',
  1194. value: function (t) {
  1195. if (null === t || 'undefined' == typeof t) return -1;
  1196. var e = '#ff0000';
  1197. return (
  1198. t.style &&
  1199. t.style.drawColor &&
  1200. (e = t.style.drawColor),
  1201. this[A].setDrawStyle(e),
  1202. this[A].setShapesInfoByType('Grid', [
  1203. {
  1204. szGridMap: t.gridMap,
  1205. iGridColNum: t.gridColNum,
  1206. iGridRowNum: t.gridRowNum,
  1207. },
  1208. ]),
  1209. 0
  1210. );
  1211. },
  1212. },
  1213. {
  1214. key: 'JS_GetGridInfo',
  1215. value: function () {
  1216. if (!this[A]) return {};
  1217. var t = this[A].getShapesInfoByType('Grid')[0];
  1218. return t
  1219. ? {
  1220. gridColNum: t.iGridColNum,
  1221. gridRowNum: t.iGridRowNum,
  1222. gridMap: t.szGridMap,
  1223. }
  1224. : {iGridRowNum: 18, iGridColNum: 22, szGridMap: ''};
  1225. },
  1226. },
  1227. {
  1228. key: 'JS_SetDrawShapeInfo',
  1229. value: function (t, e) {
  1230. return 'undefined' == typeof t || '' === t
  1231. ? -1
  1232. : (this[A].setShapeType(t),
  1233. e.style &&
  1234. this[A].setDrawStyle(
  1235. e.style.szDrawColor || '',
  1236. e.style.szFillColor || '',
  1237. e.style.iTranslucent || 0
  1238. ),
  1239. e.iMaxShapeSupport &&
  1240. e.iMaxShapeSupport > 0 &&
  1241. this[A].setMaxShapeSupport(e.iMaxShapeSupport),
  1242. void (
  1243. e.iMaxPointSupport &&
  1244. e.iMaxPointSupport > 0 &&
  1245. this[A].setCurrentShapeInfo({
  1246. szId: '',
  1247. szTips: '',
  1248. iMinClosed: 3,
  1249. iMaxPointNum: e.iMaxPointSupport,
  1250. iPolygonType: 1,
  1251. szDrawColor: e.style.szDrawColor || '',
  1252. szFillColor: e.style.szFillColor || '',
  1253. iTranslucent: e.style.iTranslucent || 0,
  1254. })
  1255. ));
  1256. },
  1257. },
  1258. {
  1259. key: 'JS_SetPolygonInfo',
  1260. value: function (t) {
  1261. if ('undefined' == typeof t || !t.length) return -1;
  1262. var e = [];
  1263. if (t.length > 0)
  1264. for (var n = 0, i = t.length; n < i; n++) {
  1265. var r = t[n].aPoint;
  1266. r.length > 0 && e.push(t[n]);
  1267. }
  1268. return e.length > 0
  1269. ? (this[A].setShapesInfoByType('Polygon', e), 0)
  1270. : -1;
  1271. },
  1272. },
  1273. {
  1274. key: 'JS_GetPolygonInfo',
  1275. value: function () {
  1276. for (
  1277. var t = [],
  1278. e = this[A].getShapesInfoByType('Polygon'),
  1279. n = 0,
  1280. i = e.length;
  1281. n < i;
  1282. n++
  1283. ) {
  1284. var r = e[n],
  1285. o = {
  1286. aPoint: r.aPoint,
  1287. bClosed: r.bClosed,
  1288. szTips: r.szTips,
  1289. };
  1290. t.push(o);
  1291. }
  1292. return t;
  1293. },
  1294. },
  1295. {
  1296. key: 'JS_SetLineInfo',
  1297. value: function (t) {
  1298. if ('undefined' == typeof t || !t.length) return -1;
  1299. var e = [];
  1300. if (t.length > 0)
  1301. for (var n = 0, i = t.length; n < i; n++) {
  1302. var r = t[n].aPoint;
  1303. r.length > 0 && e.push(t[n]);
  1304. }
  1305. return e.length > 0
  1306. ? (this[A].setShapesInfoByType('Line', e), 0)
  1307. : -1;
  1308. },
  1309. },
  1310. {
  1311. key: 'JS_GetLineInfo',
  1312. value: function () {
  1313. for (
  1314. var t = [],
  1315. e = this[A].getShapesInfoByType('Line'),
  1316. n = 0,
  1317. i = e.length;
  1318. n < i;
  1319. n++
  1320. ) {
  1321. var r = e[n],
  1322. o = {
  1323. iLineType: r.iLineType,
  1324. aPoint: r.aPoint,
  1325. szTips: r.szTips,
  1326. };
  1327. t.push(o);
  1328. }
  1329. return t;
  1330. },
  1331. },
  1332. {
  1333. key: 'JS_SetRectInfo',
  1334. value: function (t) {
  1335. if ('undefined' == typeof t || !t.length) return -1;
  1336. var e = [];
  1337. if (t.length > 0)
  1338. for (var n = 0, i = t.length; n < i; n++) {
  1339. var r = t[n].aPoint;
  1340. r.length > 0 && e.push(t[n]);
  1341. }
  1342. return e.length > 0
  1343. ? (this[A].setShapesInfoByType('Rect', e), 0)
  1344. : -1;
  1345. },
  1346. },
  1347. {
  1348. key: 'JS_GetRectInfo',
  1349. value: function () {
  1350. for (
  1351. var t = [],
  1352. e = this[A].getShapesInfoByType('Rect'),
  1353. n = 0,
  1354. i = e.length;
  1355. n < i;
  1356. n++
  1357. ) {
  1358. var r = e[n],
  1359. o = {aPoint: r.aPoint, szTips: r.szTips};
  1360. t.push(o);
  1361. }
  1362. return t;
  1363. },
  1364. },
  1365. {
  1366. key: 'JS_SetRegionInfo',
  1367. value: function (t) {
  1368. var e = this;
  1369. this[A].clearAllShape();
  1370. var n = a.oTool.parseXmlFromStr(t);
  1371. if (
  1372. (this[A].setDrawStyle('#ff0000', '#343434', 0.3),
  1373. (0, h.default)(n).find('DetectionRegionInfo').length >
  1374. 0)
  1375. )
  1376. !(function () {
  1377. e[A].setShapeType('Rect');
  1378. var t = parseInt(
  1379. (0, h.default)(n)
  1380. .find('MaxRegionNum')
  1381. .eq(0)
  1382. .text(),
  1383. 10
  1384. );
  1385. e[A].setMaxShapeSupport(t),
  1386. (e[A].m_szDisplayMode = (0, h.default)(n)
  1387. .find('DisplayMode')
  1388. .eq(0)
  1389. .text()),
  1390. (e[A].m_szVideoFormat = (0, h.default)(n)
  1391. .find('videoFormat')
  1392. .eq(0)
  1393. .text()),
  1394. (e[A].m_iHorizontalResolution = parseInt(
  1395. (0, h.default)(n)
  1396. .find('HorizontalResolution')
  1397. .eq(0)
  1398. .text(),
  1399. 10
  1400. )),
  1401. (e[A].m_iVerticalResolution = parseInt(
  1402. (0, h.default)(n)
  1403. .find('VerticalResolution')
  1404. .eq(0)
  1405. .text(),
  1406. 10
  1407. ));
  1408. var i = [];
  1409. (0, h.default)(n)
  1410. .find('DetectionRegion')
  1411. .each(function () {
  1412. for (
  1413. var t = [],
  1414. e = 0,
  1415. n = (0, h.default)(this).find('positionX')
  1416. .length;
  1417. e < n;
  1418. e++
  1419. ) {
  1420. var r =
  1421. Math.round(
  1422. (0, h.default)(this)
  1423. .find('positionX')
  1424. .eq(e)
  1425. .text()
  1426. ) *
  1427. p[A].m_iCanvasWidth /
  1428. p[A].m_iHorizontalResolution,
  1429. o =
  1430. (p[A].m_iVerticalResolution -
  1431. Math.round(
  1432. (0, h.default)(this)
  1433. .find('positionY')
  1434. .eq(e)
  1435. .text()
  1436. )) *
  1437. p[A].m_iCanvasHeight /
  1438. p[A].m_iVerticalResolution;
  1439. t.push([r, o]);
  1440. }
  1441. t.length > 0 &&
  1442. (0 !== t[0][0] ||
  1443. 0 !== t[1][0] ||
  1444. 0 !== t[2][0] ||
  1445. 0 !== t[3][0]) &&
  1446. i.push({
  1447. aPoint: t,
  1448. iEditType:
  1449. 'transparent' === p[A].m_szDisplayMode
  1450. ? 1
  1451. : 0,
  1452. });
  1453. }),
  1454. e[A].setShapesInfoByType('Rect', i);
  1455. })();
  1456. else if (
  1457. (0, h.default)(n).find('MoveDetection').length > 0
  1458. ) {
  1459. this[A].setShapeType('Grid');
  1460. var i = parseInt(
  1461. (0, h.default)(n)
  1462. .find('columnGranularity')
  1463. .eq(0)
  1464. .text(),
  1465. 10
  1466. ),
  1467. r = parseInt(
  1468. (0, h.default)(n)
  1469. .find('rowGranularity')
  1470. .eq(0)
  1471. .text(),
  1472. 10
  1473. ),
  1474. o = (0, h.default)(n)
  1475. .find('gridMap')
  1476. .eq(0)
  1477. .text();
  1478. this[A].setShapesInfoByType('Grid', [
  1479. {szGridMap: o, iGridColNum: i, iGridRowNum: r},
  1480. ]);
  1481. }
  1482. return 0;
  1483. },
  1484. },
  1485. {
  1486. key: 'JS_GetRegionInfo',
  1487. value: function () {
  1488. if (!this[A]) return '';
  1489. var t = this[A].getShapeType(),
  1490. e = '<?xml version="1.0" encoding="utf-8"?>';
  1491. if ('Rect' === t) {
  1492. (e += '<DetectionRegionInfo>'),
  1493. (e +=
  1494. '<videoFormat>' +
  1495. this[A].m_szVideoFormat +
  1496. '</videoFormat><RegionType>roi</RegionType>'),
  1497. (e +=
  1498. '<ROI><HorizontalResolution>' +
  1499. this[A].m_iHorizontalResolution +
  1500. '</HorizontalResolution><VerticalResolution>' +
  1501. this[A].m_iVerticalResolution +
  1502. '</VerticalResolution></ROI>'),
  1503. (e +=
  1504. '<DisplayMode>' +
  1505. this[A].m_szDisplayMode +
  1506. '</DisplayMode><MaxRegionNum>' +
  1507. this[A].getMaxShapeSupport() +
  1508. '</MaxRegionNum>'),
  1509. (e += '<DetectionRegionList>');
  1510. for (
  1511. var n = this[A].getShapesInfoByType('Rect'),
  1512. i = 0,
  1513. r = n.length;
  1514. i < r;
  1515. i++
  1516. ) {
  1517. var o = n[i].aPoint;
  1518. (e += '<DetectionRegion><RegionCoordinatesList>'),
  1519. (e +=
  1520. '<RegionCoordinates><positionX>' +
  1521. Math.round(
  1522. o[3][0] *
  1523. this[A].m_iHorizontalResolution /
  1524. this[A].m_iCanvasWidth
  1525. ) +
  1526. '</positionX><positionY>' +
  1527. (this[A].m_iVerticalResolution -
  1528. Math.round(
  1529. o[3][1] *
  1530. this[A].m_iVerticalResolution /
  1531. this[A].m_iCanvasHeight
  1532. )) +
  1533. '</positionY></RegionCoordinates>'),
  1534. (e +=
  1535. '<RegionCoordinates><positionX>' +
  1536. Math.round(
  1537. o[2][0] *
  1538. this[A].m_iHorizontalResolution /
  1539. this[A].m_iCanvasWidth
  1540. ) +
  1541. '</positionX><positionY>' +
  1542. (this[A].m_iVerticalResolution -
  1543. Math.round(
  1544. o[2][1] *
  1545. this[A].m_iVerticalResolution /
  1546. this[A].m_iCanvasHeight
  1547. )) +
  1548. '</positionY></RegionCoordinates>'),
  1549. (e +=
  1550. '<RegionCoordinates><positionX>' +
  1551. Math.round(
  1552. o[1][0] *
  1553. this[A].m_iHorizontalResolution /
  1554. this[A].m_iCanvasWidth
  1555. ) +
  1556. '</positionX><positionY>' +
  1557. (this[A].m_iVerticalResolution -
  1558. Math.round(
  1559. o[1][1] *
  1560. this[A].m_iVerticalResolution /
  1561. this[A].m_iCanvasHeight
  1562. )) +
  1563. '</positionY></RegionCoordinates>'),
  1564. (e +=
  1565. '<RegionCoordinates><positionX>' +
  1566. Math.round(
  1567. o[0][0] *
  1568. this[A].m_iHorizontalResolution /
  1569. this[A].m_iCanvasWidth
  1570. ) +
  1571. '</positionX><positionY>' +
  1572. (this[A].m_iVerticalResolution -
  1573. Math.round(
  1574. o[0][1] *
  1575. this[A].m_iVerticalResolution /
  1576. this[A].m_iCanvasHeight
  1577. )) +
  1578. '</positionY></RegionCoordinates>'),
  1579. (e +=
  1580. '</RegionCoordinatesList></DetectionRegion>');
  1581. }
  1582. (e += '</DetectionRegionList>'),
  1583. (e += '</DetectionRegionInfo>');
  1584. } else if ('Grid' === t) {
  1585. var a = this[A].getShapesInfoByType('Grid')[0];
  1586. a ||
  1587. (a = {
  1588. iGridRowNum: 18,
  1589. iGridColNum: 22,
  1590. szGridMap: '',
  1591. }),
  1592. (e +=
  1593. '<MoveDetection><videoFormat>PAL</videoFormat><RegionType>grid</RegionType>'),
  1594. (e +=
  1595. '<Grid><rowGranularity>' +
  1596. a.iGridRowNum +
  1597. '</rowGranularity><columnGranularity>' +
  1598. a.iGridColNum +
  1599. '</columnGranularity></Grid>'),
  1600. (e += '<DisplayMode>transparent</DisplayMode>'),
  1601. (e +=
  1602. '<gridMap>' +
  1603. a.szGridMap +
  1604. '</gridMap></MoveDetection>');
  1605. }
  1606. return e;
  1607. },
  1608. },
  1609. {
  1610. key: 'JS_SetDrawStatus',
  1611. value: function (t) {
  1612. return this[A] ? (this[A].setDrawStatus(t), 0) : -1;
  1613. },
  1614. },
  1615. {
  1616. key: 'JS_ClearRegion',
  1617. value: function () {
  1618. return this[A] ? (this[A].clearAllShape(), 0) : -1;
  1619. },
  1620. },
  1621. {
  1622. key: 'JS_GetTextOverlay',
  1623. value: function () {
  1624. if (!this[A]) return '';
  1625. var t = '<?xml version="1.0" encoding="utf-8"?>';
  1626. (t += '<OSD>'),
  1627. (t +=
  1628. '<videoResolutionWidth>' +
  1629. this[A].m_iHorizontalResolution +
  1630. '</videoResolutionWidth>'),
  1631. (t +=
  1632. '<videoResolutionHeight>' +
  1633. this[A].m_iVerticalResolution +
  1634. '</videoResolutionHeight>');
  1635. for (
  1636. var e = '',
  1637. n = '',
  1638. i = '',
  1639. r = this[A].getShapesInfoByType('RectOSD'),
  1640. o = 0,
  1641. a = r.length;
  1642. o < a;
  1643. o++
  1644. ) {
  1645. var s = r[o],
  1646. u = Math.round(
  1647. s.iPositionX *
  1648. this[A].m_iHorizontalResolution /
  1649. this[A].m_iCanvasWidth
  1650. ),
  1651. l = Math.round(
  1652. s.iPositionY *
  1653. this[A].m_iVerticalResolution /
  1654. this[A].m_iCanvasHeight
  1655. );
  1656. 'overlay-date' === s.szOSDType
  1657. ? ((e +=
  1658. '<DateTimeOverlay><Type>' +
  1659. s.szDateStyle +
  1660. '</Type>'),
  1661. (e +=
  1662. '<clockType>' + s.szClockType + '</clockType>'),
  1663. (e +=
  1664. '<displayWeek>' +
  1665. s.szDisplayWeek +
  1666. '</displayWeek>'),
  1667. (e += '<enabled>' + s.szEnabled + '</enabled>'),
  1668. (e +=
  1669. '<positionX>' +
  1670. u +
  1671. '</positionX><positionY>' +
  1672. l +
  1673. '</positionY></DateTimeOverlay>'))
  1674. : 'overlay-ch' === s.szOSDType
  1675. ? ((n +=
  1676. '<channelNameOverlay><enabled>' +
  1677. s.szEnabled +
  1678. '</enabled>'),
  1679. (n +=
  1680. '<ChannelName>' +
  1681. s.szText +
  1682. '</ChannelName>'),
  1683. (n +=
  1684. '<positionX>' +
  1685. u +
  1686. '</positionX><positionY>' +
  1687. l +
  1688. '</positionY></channelNameOverlay>'))
  1689. : 'overlay-text' === s.szOSDType &&
  1690. ((i +=
  1691. '<TextOverlay><id>' +
  1692. s.szId +
  1693. '</id><enabled>' +
  1694. s.szEnabled +
  1695. '</enabled>'),
  1696. (i +=
  1697. '<displayText>' +
  1698. s.szText +
  1699. '</displayText>'),
  1700. (i +=
  1701. '<positionX>' +
  1702. u +
  1703. '</positionX><positionY>' +
  1704. l +
  1705. '</positionY></TextOverlay>'));
  1706. }
  1707. return (
  1708. (t += e),
  1709. (t += n),
  1710. (t += '<TextOverlayList>'),
  1711. (t += i),
  1712. (t += '</TextOverlayList>'),
  1713. (t += '</OSD>')
  1714. );
  1715. },
  1716. },
  1717. {
  1718. key: 'JS_SetTextOverlay',
  1719. value: function (t) {
  1720. this[A].setMaxShapeSupport(20);
  1721. var e = a.oTool.parseXmlFromStr(t);
  1722. if (
  1723. (this[A].clearShapeByType('RectOSD'),
  1724. (0, h.default)(e).find('OSD').length > 0)
  1725. ) {
  1726. if (
  1727. (this[A].setDrawStyle('#ff0000', '#343434', 0.7),
  1728. (this[A].m_iHorizontalResolution = parseInt(
  1729. (0, h.default)(e)
  1730. .find('videoResolutionWidth')
  1731. .eq(0)
  1732. .text(),
  1733. 10
  1734. )),
  1735. (this[A].m_iVerticalResolution = parseInt(
  1736. (0, h.default)(e)
  1737. .find('videoResolutionHeight')
  1738. .eq(0)
  1739. .text(),
  1740. 10
  1741. )),
  1742. (0, h.default)(e).find('channelNameOverlay')
  1743. .length > 0)
  1744. ) {
  1745. var n = (0, h.default)(e)
  1746. .find('channelNameOverlay')
  1747. .eq(0),
  1748. i = (0, h.default)(n)
  1749. .find('ChannelName')
  1750. .eq(0)
  1751. .text(),
  1752. r = (0, h.default)(n)
  1753. .find('enabled')
  1754. .eq(0)
  1755. .text(),
  1756. o =
  1757. Math.round(
  1758. (0, h.default)(n)
  1759. .find('positionX')
  1760. .eq(0)
  1761. .text()
  1762. ) *
  1763. this[A].m_iCanvasWidth /
  1764. this[A].m_iHorizontalResolution,
  1765. s =
  1766. Math.round(
  1767. (0, h.default)(n)
  1768. .find('positionY')
  1769. .eq(0)
  1770. .text()
  1771. ) *
  1772. this[A].m_iCanvasHeight /
  1773. this[A].m_iVerticalResolution;
  1774. this[A].addOSDShape(i, r, o, s, {
  1775. szOSDType: 'overlay-ch',
  1776. });
  1777. }
  1778. if (
  1779. (0, h.default)(e).find('DateTimeOverlay').length > 0
  1780. ) {
  1781. var u = (0, h.default)(e)
  1782. .find('DateTimeOverlay')
  1783. .eq(0),
  1784. l = (0, h.default)(u)
  1785. .find('enabled')
  1786. .eq(0)
  1787. .text(),
  1788. f =
  1789. (0, h.default)(u)
  1790. .find('Type')
  1791. .eq(0)
  1792. .text() ||
  1793. (0, h.default)(u)
  1794. .find('type')
  1795. .eq(0)
  1796. .text(),
  1797. c = (0, h.default)(u)
  1798. .find('displayWeek')
  1799. .eq(0)
  1800. .text(),
  1801. d = (0, h.default)(u)
  1802. .find('clockType')
  1803. .eq(0)
  1804. .text(),
  1805. y = '',
  1806. m = '',
  1807. v = [
  1808. 'Sunday',
  1809. 'Monday',
  1810. 'Tuesday',
  1811. 'Wednesday',
  1812. 'Thursday',
  1813. 'Friday',
  1814. 'Saturday',
  1815. ],
  1816. g = new Date();
  1817. switch (
  1818. ('true' === c && (m = v[g.getDay()]),
  1819. (d = '24hour' === d ? '' : 'AM/PM'),
  1820. f)
  1821. ) {
  1822. case '0':
  1823. y = 'YYYY-MM-DD ' + m + ' hh:mm:ss ' + d;
  1824. break;
  1825. case '1':
  1826. y = 'MM-DD-YYYY ' + m + ' hh:mm:ss ' + d;
  1827. break;
  1828. case '2':
  1829. y = 'CHR-YYYY-MM-DD ' + m + ' hh:mm:ss ' + d;
  1830. break;
  1831. case '3':
  1832. y = 'CHR-MM-DD-YYYY ' + m + ' hh:mm:ss ' + d;
  1833. break;
  1834. case '4':
  1835. y = 'DD-MM-YYYY ' + m + ' hh:mm:ss ' + d;
  1836. break;
  1837. case '5':
  1838. y = 'CHR-DD-MM-YYYY ' + m + ' hh:mm:ss ' + d;
  1839. }
  1840. var S =
  1841. Math.round(
  1842. (0, h.default)(u)
  1843. .find('positionX')
  1844. .eq(0)
  1845. .text()
  1846. ) *
  1847. this[A].m_iCanvasWidth /
  1848. this[A].m_iHorizontalResolution,
  1849. b =
  1850. Math.round(
  1851. (0, h.default)(u)
  1852. .find('positionY')
  1853. .eq(0)
  1854. .text()
  1855. ) *
  1856. this[A].m_iCanvasHeight /
  1857. this[A].m_iVerticalResolution;
  1858. this[A].addOSDShape(y, l, S, b, {
  1859. szOSDType: 'overlay-date',
  1860. szDateStyle: f,
  1861. szDisplayWeek: c,
  1862. szClockType: d,
  1863. });
  1864. }
  1865. (0, h.default)(e).find('TextOverlayList').length >
  1866. 0 &&
  1867. (0, h.default)(e)
  1868. .find('TextOverlayList')
  1869. .eq(0)
  1870. .find('TextOverlay')
  1871. .each(function () {
  1872. var t = (0, h.default)(this)
  1873. .find('displayText')
  1874. .eq(0)
  1875. .text(),
  1876. e = (0, h.default)(this)
  1877. .find('enabled')
  1878. .eq(0)
  1879. .text(),
  1880. n = (0, h.default)(this)
  1881. .find('id')
  1882. .eq(0)
  1883. .text(),
  1884. i =
  1885. Math.round(
  1886. (0, h.default)(this)
  1887. .find('positionX')
  1888. .eq(0)
  1889. .text()
  1890. ) *
  1891. p[A].m_iCanvasWidth /
  1892. p[A].m_iHorizontalResolution,
  1893. r =
  1894. Math.round(
  1895. (0, h.default)(this)
  1896. .find('positionY')
  1897. .eq(0)
  1898. .text()
  1899. ) *
  1900. p[A].m_iCanvasHeight /
  1901. p[A].m_iVerticalResolution;
  1902. p[A].addOSDShape(t, e, i, r, {
  1903. szOSDType: 'overlay-text',
  1904. szId: n,
  1905. });
  1906. });
  1907. }
  1908. return 0;
  1909. },
  1910. },
  1911. {
  1912. key: 'JS_ClearSnapInfo',
  1913. value: function (t) {
  1914. return this[A]
  1915. ? (0 === t
  1916. ? this[A].clearShapeByType('Rect')
  1917. : 1 === t
  1918. ? this[A].clearShapeByType('Polygon')
  1919. : 2 === t
  1920. ? this[A].clearShapeByType('Line')
  1921. : 3 === t
  1922. ? (this[A].clearShapeByType('Rect'),
  1923. this[A].clearShapeByType('Polygon'))
  1924. : this[A].clearAllShape(),
  1925. 0)
  1926. : -1;
  1927. },
  1928. },
  1929. {
  1930. key: 'JS_ClearTargetPolygon',
  1931. value: function (t) {
  1932. var e = a.oTool.parseXmlFromStr(t),
  1933. n = this[A].getAllShapesInfo(),
  1934. i = n.length;
  1935. if (i > 0)
  1936. for (var r = 0; r < i; r++) {
  1937. var o = (0, h.default)(e)
  1938. .find('id')
  1939. .eq(0)
  1940. .text();
  1941. if ('Polygon' === n[r].szType && n[r].szId === o) {
  1942. this[A].deleteShape(r);
  1943. break;
  1944. }
  1945. }
  1946. },
  1947. },
  1948. {
  1949. key: 'JS_SetSnapPolygonInfo',
  1950. value: function (t) {
  1951. this[A].setShapeType('Polygon'),
  1952. this[A].setMaxShapeSupport(20),
  1953. this[A].setDrawStyle('#FFFF00', '#FFFF00', 0.1);
  1954. var e = a.oTool.parseXmlFromStr(t),
  1955. n = this[A].getAllShapesInfo(),
  1956. i = n.length;
  1957. if (i > 0)
  1958. for (var r = 0; r < i; r++) {
  1959. var o = (0, h.default)(e)
  1960. .find('id')
  1961. .eq(0)
  1962. .text();
  1963. if ('Polygon' === n[r].szType && n[r].szId === o) {
  1964. this[A].deleteShape(r);
  1965. break;
  1966. }
  1967. }
  1968. var s = [];
  1969. return (
  1970. (0, h.default)(e).find('SnapPolygonList').length >
  1971. 0 &&
  1972. (0, h.default)(e)
  1973. .find('SnapPolygonList')
  1974. .eq(0)
  1975. .find('SnapPolygon')
  1976. .each(function () {
  1977. var t = (0, h.default)(e)
  1978. .find('id')
  1979. .eq(0)
  1980. .text(),
  1981. n = parseInt(
  1982. (0, h.default)(e)
  1983. .find('polygonType')
  1984. .eq(0)
  1985. .text() || '1',
  1986. 10
  1987. ),
  1988. i =
  1989. (0, h.default)(e)
  1990. .find('Tips')
  1991. .eq(0)
  1992. .text() ||
  1993. (0, h.default)(e)
  1994. .find('tips')
  1995. .eq(0)
  1996. .text(),
  1997. r = parseInt(
  1998. (0, h.default)(e)
  1999. .find('MinClosed')
  2000. .eq(0)
  2001. .text(),
  2002. 10
  2003. ),
  2004. o = parseInt(
  2005. (0, h.default)(e)
  2006. .find('PointNumMax')
  2007. .eq(0)
  2008. .text(),
  2009. 10
  2010. ),
  2011. a =
  2012. parseInt(
  2013. (0, h.default)(e)
  2014. .find('EditType')
  2015. .eq(0)
  2016. .text(),
  2017. 10
  2018. ) || 0,
  2019. u =
  2020. 'true' ===
  2021. (0, h.default)(e)
  2022. .find('isClosed')
  2023. .eq(0)
  2024. .text(),
  2025. l =
  2026. 'rgb(' +
  2027. (0, h.default)(e)
  2028. .find('r')
  2029. .eq(0)
  2030. .text() +
  2031. ', ' +
  2032. (0, h.default)(e)
  2033. .find('g')
  2034. .eq(0)
  2035. .text() +
  2036. ', ' +
  2037. (0, h.default)(e)
  2038. .find('b')
  2039. .eq(0)
  2040. .text() +
  2041. ')',
  2042. f = l,
  2043. c = 0.1,
  2044. d = [];
  2045. (0, h.default)(e)
  2046. .find('pointList')
  2047. .eq(0)
  2048. .find('point')
  2049. .each(function (t) {
  2050. (d[t] = []),
  2051. (d[t][0] = Math.round(
  2052. (0, h.default)(this)
  2053. .find('x')
  2054. .eq(0)
  2055. .text() * p[A].m_iCanvasWidth
  2056. )),
  2057. (d[t][1] = Math.round(
  2058. (0, h.default)(this)
  2059. .find('y')
  2060. .eq(0)
  2061. .text() * p[A].m_iCanvasHeight
  2062. ));
  2063. }),
  2064. d.length > 0
  2065. ? (s.push({
  2066. szId: t,
  2067. iPolygonType: n,
  2068. iMinClosed: r,
  2069. iMaxPointNum: o,
  2070. iEditType: a,
  2071. aPoint: d,
  2072. bClosed: u,
  2073. szTips: i,
  2074. szDrawColor: l,
  2075. szFillColor: f,
  2076. iTranslucent: c,
  2077. }),
  2078. p[A].setDrawStatus(!1))
  2079. : (p[A].setCurrentShapeInfo({
  2080. szId: t,
  2081. szTips: i,
  2082. iMinClosed: r,
  2083. iMaxPointNum: o,
  2084. iPolygonType: n,
  2085. szDrawColor: l,
  2086. szFillColor: f,
  2087. iTranslucent: c,
  2088. }),
  2089. p[A].setDrawStatus(!0));
  2090. }),
  2091. s.length > 0 &&
  2092. this[A].setShapesInfoByType('Polygon', s),
  2093. 0
  2094. );
  2095. },
  2096. },
  2097. {
  2098. key: 'JS_GetSnapPolygonInfo',
  2099. value: function () {
  2100. for (
  2101. var t =
  2102. "<?xml version='1.0' encoding='utf-8'?><SnapPolygonList>",
  2103. e = this[A].getShapesInfoByType('Polygon'),
  2104. n = 0,
  2105. i = e.length;
  2106. n < i;
  2107. n++
  2108. ) {
  2109. var r = e[n];
  2110. (t += '<SnapPolygon>'),
  2111. (t += '<id>' + r.szId + '</id>'),
  2112. (t +=
  2113. '<polygonType>' +
  2114. r.iPolygonType +
  2115. '</polygonType>'),
  2116. (t += '<color>');
  2117. var o = r.szDrawColor
  2118. .substring(4, r.szDrawColor.length - 1)
  2119. .split(',');
  2120. (t += '<r>' + o[0] + '</r>'),
  2121. (t += '<g>' + o[1] + '</g>'),
  2122. (t += '<b>' + o[2] + '</b>'),
  2123. (t += '</color>'),
  2124. (t += '<tips>' + r.szTips + '</tips>'),
  2125. (t += '<isClosed>' + r.bClosed + '</isClosed>');
  2126. var a = r.aPoint;
  2127. t += '<pointList>';
  2128. for (var s = 0, u = a.length; s < u; s++)
  2129. t +=
  2130. '<point><x>' +
  2131. (a[s][0] / this[A].m_iCanvasWidth).toFixed(6) +
  2132. '</x><y>' +
  2133. (a[s][1] / this[A].m_iCanvasHeight).toFixed(6) +
  2134. '</y></point>';
  2135. (t += '</pointList>'), (t += '</SnapPolygon>');
  2136. }
  2137. return (t += '</SnapPolygonList>');
  2138. },
  2139. },
  2140. {
  2141. key: 'JS_SetSnapDrawMode',
  2142. value: function () {
  2143. return this[A]
  2144. ? (this[A].setDrawMutiShapeOneTime(!1), 0)
  2145. : -1;
  2146. },
  2147. },
  2148. {
  2149. key: 'JS_SetSnapLineInfo',
  2150. value: function (t) {
  2151. this[A].setShapeType('Line'),
  2152. this[A].setMaxShapeSupport(20),
  2153. this[A].setDrawStyle('#FFFF00', '#FFFF00', 0.1);
  2154. var e = a.oTool.parseXmlFromStr(t),
  2155. n = this[A].getAllShapesInfo(),
  2156. i = n.length;
  2157. if (i > 0)
  2158. for (var r = 0; r < i; r++) {
  2159. var o = (0, h.default)(e)
  2160. .find('id')
  2161. .eq(0)
  2162. .text();
  2163. if ('Line' === n[r].szType && n[r].szId === o) {
  2164. this[A].deleteShape(r);
  2165. break;
  2166. }
  2167. }
  2168. var s = [];
  2169. return (
  2170. (0, h.default)(e).find('SnapLineList').length > 0 &&
  2171. (0, h.default)(e)
  2172. .find('SnapLineList')
  2173. .eq(0)
  2174. .find('SnapLine')
  2175. .each(function () {
  2176. var t = (0, h.default)(e)
  2177. .find('id')
  2178. .eq(0)
  2179. .text(),
  2180. n = parseInt(
  2181. (0, h.default)(e)
  2182. .find('LineTypeEx')
  2183. .eq(0)
  2184. .text(),
  2185. 10
  2186. ),
  2187. i =
  2188. parseInt(
  2189. (0, h.default)(e)
  2190. .find('CustomType')
  2191. .text(),
  2192. 10
  2193. ) ||
  2194. parseInt(
  2195. (0, h.default)(e)
  2196. .find('LineType')
  2197. .text(),
  2198. 10
  2199. ),
  2200. r =
  2201. parseInt(
  2202. (0, h.default)(e)
  2203. .find('ArrowType')
  2204. .text(),
  2205. 10
  2206. ) || 0,
  2207. o =
  2208. (0, h.default)(e)
  2209. .find('Tips')
  2210. .eq(0)
  2211. .text() ||
  2212. (0, h.default)(e)
  2213. .find('tips')
  2214. .eq(0)
  2215. .text(),
  2216. a =
  2217. 'rgb(' +
  2218. (0, h.default)(e)
  2219. .find('r')
  2220. .eq(0)
  2221. .text() +
  2222. ', ' +
  2223. (0, h.default)(e)
  2224. .find('g')
  2225. .eq(0)
  2226. .text() +
  2227. ', ' +
  2228. (0, h.default)(e)
  2229. .find('b')
  2230. .eq(0)
  2231. .text() +
  2232. ')',
  2233. u = [];
  2234. (u[0] = []),
  2235. (u[1] = []),
  2236. (u[0][0] = Math.round(
  2237. (0, h.default)(e)
  2238. .find('StartPos')
  2239. .eq(0)
  2240. .find('x')
  2241. .eq(0)
  2242. .text() * p[A].m_iCanvasWidth
  2243. )),
  2244. (u[0][1] = Math.round(
  2245. (0, h.default)(e)
  2246. .find('StartPos')
  2247. .eq(0)
  2248. .find('y')
  2249. .eq(0)
  2250. .text() * p[A].m_iCanvasHeight
  2251. )),
  2252. (u[1][0] = Math.round(
  2253. (0, h.default)(e)
  2254. .find('EndPos')
  2255. .eq(0)
  2256. .find('x')
  2257. .eq(0)
  2258. .text() * p[A].m_iCanvasWidth
  2259. )),
  2260. (u[1][1] = Math.round(
  2261. (0, h.default)(e)
  2262. .find('EndPos')
  2263. .eq(0)
  2264. .find('y')
  2265. .eq(0)
  2266. .text() * p[A].m_iCanvasHeight
  2267. )),
  2268. u.length > 0 &&
  2269. (s.push({
  2270. szId: t,
  2271. iLineType: n,
  2272. aPoint: u,
  2273. szTips: o,
  2274. iDirection: i,
  2275. iArrowType: r,
  2276. szDrawColor: a,
  2277. }),
  2278. p[A].setDrawStatus(!1));
  2279. }),
  2280. s.length > 0 &&
  2281. this[A].setShapesInfoByType('Line', s),
  2282. 0
  2283. );
  2284. },
  2285. },
  2286. {
  2287. key: 'JS_GetSnapLineInfo',
  2288. value: function () {
  2289. for (
  2290. var t =
  2291. "<?xml version='1.0' encoding='utf-8'?><SnapLineList>",
  2292. e = this[A].getShapesInfoByType('Line'),
  2293. n = 0,
  2294. i = e.length;
  2295. n < i;
  2296. n++
  2297. ) {
  2298. (t += '<SnapLine>'),
  2299. (t += '<id>' + e[n].szId + '</id>'),
  2300. (t +=
  2301. '<LineTypeEx>' +
  2302. e[n].iLineType +
  2303. '</LineTypeEx>'),
  2304. (t +=
  2305. '<CustomType>0</CustomType><MoveChange>0</MoveChange><ArrowType>' +
  2306. e[n].iArrowType +
  2307. '</ArrowType>'),
  2308. (t += '<tips>' + e[n].szTips + '</tips>');
  2309. var r = e[n].aPoint;
  2310. (t +=
  2311. '<StartPos><x>' +
  2312. (r[0][0] / p[A].m_iCanvasWidth).toFixed(6) +
  2313. '</x><y>' +
  2314. (r[0][1] / p[A].m_iCanvasHeight).toFixed(6) +
  2315. '</y></StartPos>'),
  2316. (t +=
  2317. '<EndPos><x>' +
  2318. (r[1][0] / p[A].m_iCanvasWidth).toFixed(6) +
  2319. '</x><y>' +
  2320. (r[1][1] / p[A].m_iCanvasHeight).toFixed(6) +
  2321. '</y></EndPos>'),
  2322. (t += '<LineSelected>false</LineSelected>'),
  2323. e[n].aCrossArrowPoint.length > 0 &&
  2324. ((t +=
  2325. '<PDCArrow><Sp_x>' +
  2326. (
  2327. e[n].aCrossArrowPoint[0][0] /
  2328. p[A].m_iCanvasWidth
  2329. ).toFixed(6) +
  2330. '</Sp_x>'),
  2331. (t +=
  2332. '<Sp_y>' +
  2333. (
  2334. e[n].aCrossArrowPoint[0][1] /
  2335. p[A].m_iCanvasWidth
  2336. ).toFixed(6) +
  2337. '</Sp_y>'),
  2338. (t +=
  2339. '<Ep_x>' +
  2340. (
  2341. e[n].aCrossArrowPoint[1][0] /
  2342. p[A].m_iCanvasWidth
  2343. ).toFixed(6) +
  2344. '</Ep_x>'),
  2345. (t +=
  2346. '<Ep_y>' +
  2347. (
  2348. e[n].aCrossArrowPoint[1][1] /
  2349. p[A].m_iCanvasWidth
  2350. ).toFixed(6) +
  2351. '</Ep_y></PDCArrow>')),
  2352. (t += '<PDCShowMark>false</PDCShowMark>');
  2353. var o = e[n].szDrawColor.split(',')[0].split('(')[1],
  2354. a = e[n].szDrawColor.split(',')[1],
  2355. s = e[n].szDrawColor.split(',')[2].split(')')[0];
  2356. (t +=
  2357. '<color><r>' +
  2358. (o || '255') +
  2359. '</r><g>' +
  2360. (a || '255') +
  2361. '</g><b>' +
  2362. (s || '0') +
  2363. '</b></color>'),
  2364. (t += '</SnapLine>');
  2365. }
  2366. return (t += '</SnapLineList>');
  2367. },
  2368. },
  2369. {
  2370. key: 'JS_FullScreenDisplay',
  2371. value: function (t) {
  2372. if (t) {
  2373. this[O] = t;
  2374. var e = (0, h.default)('#' + p[M].szId).get(0);
  2375. e.requestFullScreen
  2376. ? e.requestFullScreen()
  2377. : e.webkitRequestFullScreen
  2378. ? e.webkitRequestFullScreen()
  2379. : e.mozRequestFullScreen &&
  2380. e.mozRequestFullScreen();
  2381. }
  2382. },
  2383. },
  2384. {
  2385. key: 'JS_FullScreenSingle',
  2386. value: function (t) {
  2387. if (p[I][t].bPlay) {
  2388. var e =
  2389. document.fullscreen ||
  2390. document.webkitIsFullScreen ||
  2391. document.mozFullScreen ||
  2392. !1,
  2393. n = D.find('.parent-wnd')
  2394. .eq(0)
  2395. .children()
  2396. .eq(t)
  2397. .get(0);
  2398. if (e) {
  2399. if (
  2400. D.find('.parent-wnd')
  2401. .eq(0)
  2402. .width() === (0, h.default)(window).width()
  2403. )
  2404. return;
  2405. document.exitFullscreen
  2406. ? document.exitFullscreen()
  2407. : document.webkitCancelFullScreen
  2408. ? document.webkitCancelFullScreen()
  2409. : document.mozCancelFullScreen &&
  2410. document.mozCancelFullScreen();
  2411. } else
  2412. n.requestFullScreen
  2413. ? n.requestFullScreen()
  2414. : n.webkitRequestFullScreen
  2415. ? n.webkitRequestFullScreen()
  2416. : n.mozRequestFullScreen &&
  2417. n.mozRequestFullScreen(),
  2418. (p[B] = D.find('.parent-wnd')
  2419. .eq(0)
  2420. .children()
  2421. .eq(t));
  2422. }
  2423. },
  2424. },
  2425. {
  2426. key: 'JS_StartDownload',
  2427. value: function (t, e, n, i) {
  2428. var r = (0, h.default)(a.oTool.parseXmlFromStr(i))
  2429. .find('playbackURI')
  2430. .eq(0)
  2431. .text(),
  2432. o = t + '?playbackURI=' + r,
  2433. s = '.mp4';
  2434. t.indexOf('picture/Streaming/tracks') > 0 &&
  2435. ((o = t), (s = '.jpg'));
  2436. var u = o.indexOf('&name=') + 6,
  2437. l = o.indexOf('&size=');
  2438. return (
  2439. (n = o.substring(u, l)),
  2440. (0, h.default)('body').append(
  2441. '<a id="jsplugin_download_a" href="' +
  2442. o +
  2443. '" download=' +
  2444. n +
  2445. s +
  2446. '><li id="jsplugin_download_li"></li></a>'
  2447. ),
  2448. (0, h.default)('#jsplugin_download_li').trigger(
  2449. 'click'
  2450. ),
  2451. (0, h.default)('#jsplugin_download_a').remove(),
  2452. 0
  2453. );
  2454. },
  2455. },
  2456. {
  2457. key: 'JS_Resize',
  2458. value: function (t, e) {
  2459. if (
  2460. (this[O]
  2461. ? ((t = (0, h.default)(window).width()),
  2462. (e = (0, h.default)(window).height()),
  2463. (0, h.default)('#' + this[M].szId).css({
  2464. width: t,
  2465. height: e,
  2466. }),
  2467. (this[O] = !1))
  2468. : (0, h.default)('#' + this[M].szId).css({
  2469. width: t,
  2470. height: e,
  2471. }),
  2472. (this[M].iWidth = t),
  2473. (this[M].iHeight = e),
  2474. a.oTool.isFirefox())
  2475. )
  2476. for (
  2477. var n = 0;
  2478. n < p[M].iMaxSplit * p[M].iMaxSplit;
  2479. n++
  2480. )
  2481. p[I][n].oPlayCtrl &&
  2482. p[I][n].oPlayCtrl.PlayM4_ClearCanvas();
  2483. c(),
  2484. p[B] &&
  2485. ((t = (0, h.default)(window).width()),
  2486. (e = (0, h.default)(window).height()),
  2487. p[B].css({width: t, height: e}),
  2488. p[B].find('canvas').attr('width', t - 2),
  2489. p[B].find('canvas').attr('height', e - 2),
  2490. (p[B] = null)),
  2491. this[A].resizeCanvas(),
  2492. this[A].canvasRedraw();
  2493. },
  2494. },
  2495. {
  2496. key: 'JS_WndCreate',
  2497. value: function (t, n, i) {
  2498. e(n, i),
  2499. this[A].updateCanvas('canvas_draw0'),
  2500. this[A].clearAllShape(),
  2501. 0 === t
  2502. ? (0, h.default)('#' + this[M].szId).hide()
  2503. : (0, h.default)('#' + this[M].szId).show(),
  2504. p.EventCallback.windowEventSelect(0);
  2505. },
  2506. },
  2507. {
  2508. key: 'JS_ExportDeviceConfig',
  2509. value: function (t) {
  2510. return (
  2511. (0, h.default)('body').append(
  2512. '<a id="jsplugin_download_a" href="' +
  2513. t +
  2514. '"><li id="jsplugin_download_li"></li></a>'
  2515. ),
  2516. (0, h.default)('#jsplugin_download_li').trigger(
  2517. 'click'
  2518. ),
  2519. (0, h.default)('#jsplugin_download_a').remove(),
  2520. 0
  2521. );
  2522. },
  2523. },
  2524. {
  2525. key: 'JS_OpenFileBrowser',
  2526. value: function (t, e, n, i, r) {
  2527. p[L] = null;
  2528. var o = window.document.createElement('input');
  2529. (o.type = 'file'),
  2530. 'bmp' === e.toLowerCase() && (o.accept = 'image/bmp'),
  2531. 0 === t && o.setAttribute('webkitdirectory', ''),
  2532. o.addEventListener('change', function () {
  2533. 1 === t
  2534. ? ((p[L] = o.files[0]),
  2535. (n[i] = o.files[0].name),
  2536. r &&
  2537. r.$digest(function () {
  2538. n[i] = o.files[0].name;
  2539. }))
  2540. : 0 === t && (p[L] = o.files);
  2541. });
  2542. var a = document.createEvent('MouseEvents');
  2543. a.initEvent('click', !0, !0), o.dispatchEvent(a);
  2544. },
  2545. },
  2546. {
  2547. key: 'JS_UploadFile',
  2548. value: function (t, e, n, i) {
  2549. var r = 0,
  2550. o = new XMLHttpRequest();
  2551. return (
  2552. (o.onreadystatechange = function () {
  2553. 4 === o.readyState && 200 !== o.status && (r = -1);
  2554. }),
  2555. o.open('put', t, !1),
  2556. o.setRequestHeader('Content-Type', i),
  2557. o.send(p[L]),
  2558. r
  2559. );
  2560. },
  2561. },
  2562. {
  2563. key: 'JS_StartAsynUpload',
  2564. value: function (t) {
  2565. var e = new XMLHttpRequest();
  2566. return (
  2567. (e.onreadystatechange = function () {
  2568. 4 === e.readyState && (p[N] = e.responseText);
  2569. }),
  2570. e.open('put', t, !0),
  2571. e.send(p[L]),
  2572. 0
  2573. );
  2574. },
  2575. },
  2576. {
  2577. key: 'JS_StopAsynUpload',
  2578. value: function () {
  2579. (p[L] = null), (p[N] = '');
  2580. },
  2581. },
  2582. {
  2583. key: 'JS_GetUploadErrorInfo',
  2584. value: function () {
  2585. return 'string' == typeof p[N] && p[N].length > 0
  2586. ? p[N]
  2587. : '';
  2588. },
  2589. },
  2590. {
  2591. key: 'JS_StartUpgradeEx',
  2592. value: function (t, e) {
  2593. var n = new Promise(function (n, i) {
  2594. if (!t) return i(), y;
  2595. if (!e) return i(), y;
  2596. p[N] = 0;
  2597. var r = new XMLHttpRequest();
  2598. (r.onreadystatechange = function () {
  2599. if (4 === r.readyState)
  2600. if (200 === r.status) (p[N] = 100), n();
  2601. else {
  2602. p[N] = 1;
  2603. var t = a.oTool.parseXmlFromStr(r.responseText);
  2604. 'lowPrivilege' ===
  2605. (0, h.default)(t)
  2606. .find('subStatusCode')
  2607. .text()
  2608. ? i(403)
  2609. : i();
  2610. }
  2611. }),
  2612. r.open('put', t, !0),
  2613. r.send(p[L]),
  2614. (p[q] = e),
  2615. setTimeout(function () {
  2616. n();
  2617. }, 3e3);
  2618. });
  2619. return n;
  2620. },
  2621. },
  2622. {
  2623. key: 'JS_UpgradeStatus',
  2624. value: function () {
  2625. return 100 === p[N] ? 0 : p[N];
  2626. },
  2627. },
  2628. {
  2629. key: 'JS_UpgradeProgress',
  2630. value: function () {
  2631. var t = 0,
  2632. e = new XMLHttpRequest();
  2633. return (
  2634. (e.onreadystatechange = function () {
  2635. 4 === e.readyState &&
  2636. 200 === e.status &&
  2637. (t = parseInt(
  2638. (0, h.default)(
  2639. a.oTool.parseXmlFromStr(e.responseText)
  2640. )
  2641. .find('percent')
  2642. .text(),
  2643. 10
  2644. ));
  2645. }),
  2646. e.open('get', p[q], !1),
  2647. e.send(null),
  2648. 100 === p[N] ? 100 : t
  2649. );
  2650. },
  2651. },
  2652. {
  2653. key: 'JS_StopUpgrade',
  2654. value: function () {
  2655. return (p[L] = null), 0;
  2656. },
  2657. },
  2658. {
  2659. key: 'JS_ExportDeviceLog',
  2660. value: function (t, e) {
  2661. function n(t) {
  2662. a.push(t);
  2663. var e = t.slice('');
  2664. if (/^[\u4e00-\u9fa5]/.test(t))
  2665. for (var n = 0; n < 30 - 2 * e.length; n++)
  2666. a.push(' ');
  2667. else
  2668. for (var i = 0; i < 30 - e.length; i++) a.push(' ');
  2669. }
  2670. e = 'Log.txt';
  2671. var i = [],
  2672. r = [];
  2673. i = i.concat(
  2674. (0, h.default)(t)
  2675. .find('searchMatchItem')
  2676. .toArray()
  2677. );
  2678. for (var o = 0; o < i.length; o++)
  2679. (r[o] = []),
  2680. (r[o][0] = (0, h.default)(i[o])
  2681. .find('logtime')
  2682. .text()
  2683. .replace('T', ' ')
  2684. .replace('Z', '')),
  2685. (r[o][1] = (0, h.default)(i[o])
  2686. .find('majortype')
  2687. .text()),
  2688. (r[o][2] = (0, h.default)(i[o])
  2689. .find('minortype')
  2690. .text()),
  2691. (r[o][3] = (0, h.default)(i[o])
  2692. .find('channelid')
  2693. .text()),
  2694. (r[o][4] = (0, h.default)(i[o])
  2695. .find('userName')
  2696. .text()),
  2697. (r[o][5] = (0, h.default)(i[o])
  2698. .find('remoteaddress')
  2699. .text());
  2700. var a = [];
  2701. n(' '),
  2702. n(
  2703. (0, h.default)(t)
  2704. .find('laLogTime')
  2705. .text()
  2706. ),
  2707. n(
  2708. (0, h.default)(t)
  2709. .find('laLogMajorType')
  2710. .text()
  2711. ),
  2712. n(
  2713. (0, h.default)(t)
  2714. .find('laLogMinorType')
  2715. .text()
  2716. ),
  2717. n(
  2718. (0, h.default)(t)
  2719. .find('laLogChannel')
  2720. .text()
  2721. ),
  2722. n(
  2723. (0, h.default)(t)
  2724. .find('laLogRemoteUser')
  2725. .text()
  2726. ),
  2727. n(
  2728. (0, h.default)(t)
  2729. .find('laLogRemoteIP')
  2730. .text()
  2731. ),
  2732. a.push('\r\n');
  2733. for (var s = 0; s < r.length; s++) {
  2734. var u = (s + 1).toString();
  2735. n(u);
  2736. for (var l = 0; l < 6; l++) n(r[s][l]);
  2737. a.push('\r\n');
  2738. }
  2739. a = a.join('');
  2740. var f = new Blob([a], {type: 'text/plain'}),
  2741. c = (window.URL || window.webkitURL).createObjectURL(
  2742. f
  2743. ),
  2744. d = window.document.createElement('a');
  2745. (d.href = c), (d.download = e);
  2746. var p = document.createEvent('MouseEvents');
  2747. p.initEvent('click', !0, !0), d.dispatchEvent(p);
  2748. },
  2749. },
  2750. {
  2751. key: 'JS_GetWndContainer',
  2752. value: function (t) {
  2753. return t < 0 || 'undefined' == typeof t || null === t
  2754. ? -1
  2755. : D.find('.parent-wnd')
  2756. .eq(0)
  2757. .children()
  2758. .eq(t)[0];
  2759. },
  2760. },
  2761. {
  2762. key: 'JS_GetWndStatus',
  2763. value: function (t) {
  2764. if (t < 0 || 'undefined' == typeof t || null === t)
  2765. return -1;
  2766. var e = {
  2767. bPlay: this[I][t].bPlay,
  2768. bSound: this[E] === t,
  2769. bSelect: this[I][t].bSelect,
  2770. iRate: this[I][t].iRate,
  2771. };
  2772. return e;
  2773. },
  2774. },
  2775. {
  2776. key: 'JS_SelectWnd',
  2777. value: function (t) {
  2778. D.find('.parent-wnd')
  2779. .eq(0)
  2780. .children()
  2781. .eq(t)
  2782. .mousedown();
  2783. },
  2784. },
  2785. ]),
  2786. n
  2787. );
  2788. })();
  2789. return W;
  2790. }
  2791. })();
  2792. e.JSPlugin = d;
  2793. },
  2794. function (t, e, n) {
  2795. var i, r;
  2796. (function (t) {
  2797. 'use strict';
  2798. var n =
  2799. 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
  2800. ? function (t) {
  2801. return typeof t;
  2802. }
  2803. : function (t) {
  2804. return t &&
  2805. 'function' == typeof Symbol &&
  2806. t.constructor === Symbol &&
  2807. t !== Symbol.prototype
  2808. ? 'symbol'
  2809. : typeof t;
  2810. }; /*!
  2811. * jQuery JavaScript Library v3.2.1
  2812. * https://jquery.com/
  2813. *
  2814. * Includes Sizzle.js
  2815. * https://sizzlejs.com/
  2816. *
  2817. * Copyright JS Foundation and other contributors
  2818. * Released under the MIT license
  2819. * https://jquery.org/license
  2820. *
  2821. * Date: 2017-03-20T18:59Z
  2822. */
  2823. !(function (e, i) {
  2824. 'object' === n(t) && 'object' === n(t.exports)
  2825. ? (t.exports = e.document
  2826. ? i(e, !0)
  2827. : function (t) {
  2828. if (!t.document)
  2829. throw new Error(
  2830. 'jQuery requires a window with a document'
  2831. );
  2832. return i(t);
  2833. })
  2834. : i(e);
  2835. })('undefined' != typeof window ? window : void 0, function (o, a) {
  2836. function s(t, e) {
  2837. e = e || st;
  2838. var n = e.createElement('script');
  2839. (n.text = t), e.head.appendChild(n).parentNode.removeChild(n);
  2840. }
  2841. function u(t) {
  2842. var e = !!t && 'length' in t && t.length,
  2843. n = bt.type(t);
  2844. return (
  2845. 'function' !== n &&
  2846. !bt.isWindow(t) &&
  2847. ('array' === n ||
  2848. 0 === e ||
  2849. ('number' == typeof e && e > 0 && e - 1 in t))
  2850. );
  2851. }
  2852. function l(t, e) {
  2853. return t.nodeName && t.nodeName.toLowerCase() === e.toLowerCase();
  2854. }
  2855. function f(t, e, n) {
  2856. return bt.isFunction(e)
  2857. ? bt.grep(t, function (t, i) {
  2858. return !!e.call(t, i, t) !== n;
  2859. })
  2860. : e.nodeType
  2861. ? bt.grep(t, function (t) {
  2862. return (t === e) !== n;
  2863. })
  2864. : 'string' != typeof e
  2865. ? bt.grep(t, function (t) {
  2866. return ht.call(e, t) > -1 !== n;
  2867. })
  2868. : Rt.test(e)
  2869. ? bt.filter(e, t, n)
  2870. : ((e = bt.filter(e, t)),
  2871. bt.grep(t, function (t) {
  2872. return ht.call(e, t) > -1 !== n && 1 === t.nodeType;
  2873. }));
  2874. }
  2875. function c(t, e) {
  2876. for (; (t = t[e]) && 1 !== t.nodeType;) ;
  2877. return t;
  2878. }
  2879. function h(t) {
  2880. var e = {};
  2881. return (
  2882. bt.each(t.match(Ot) || [], function (t, n) {
  2883. e[n] = !0;
  2884. }),
  2885. e
  2886. );
  2887. }
  2888. function d(t) {
  2889. return t;
  2890. }
  2891. function p(t) {
  2892. throw t;
  2893. }
  2894. function y(t, e, n, i) {
  2895. var r;
  2896. try {
  2897. t && bt.isFunction((r = t.promise))
  2898. ? r
  2899. .call(t)
  2900. .done(e)
  2901. .fail(n)
  2902. : t && bt.isFunction((r = t.then))
  2903. ? r.call(t, e, n)
  2904. : e.apply(void 0, [t].slice(i));
  2905. } catch (t) {
  2906. n.apply(void 0, [t]);
  2907. }
  2908. }
  2909. function m() {
  2910. st.removeEventListener('DOMContentLoaded', m),
  2911. o.removeEventListener('load', m),
  2912. bt.ready();
  2913. }
  2914. function v() {
  2915. this.expando = bt.expando + v.uid++;
  2916. }
  2917. function g(t) {
  2918. return (
  2919. 'true' === t ||
  2920. ('false' !== t &&
  2921. ('null' === t
  2922. ? null
  2923. : t === +t + ''
  2924. ? +t
  2925. : Wt.test(t)
  2926. ? JSON.parse(t)
  2927. : t))
  2928. );
  2929. }
  2930. function S(t, e, n) {
  2931. var i;
  2932. if (void 0 === n && 1 === t.nodeType)
  2933. if (
  2934. ((i = 'data-' + e.replace(Ut, '-$&').toLowerCase()),
  2935. (n = t.getAttribute(i)),
  2936. 'string' == typeof n)
  2937. ) {
  2938. try {
  2939. n = g(n);
  2940. } catch (t) {
  2941. }
  2942. jt.set(t, e, n);
  2943. } else n = void 0;
  2944. return n;
  2945. }
  2946. function b(t, e, n, i) {
  2947. var r,
  2948. o = 1,
  2949. a = 20,
  2950. s = i
  2951. ? function () {
  2952. return i.cur();
  2953. }
  2954. : function () {
  2955. return bt.css(t, e, '');
  2956. },
  2957. u = s(),
  2958. l = (n && n[3]) || (bt.cssNumber[e] ? '' : 'px'),
  2959. f =
  2960. (bt.cssNumber[e] || ('px' !== l && +u)) &&
  2961. Vt.exec(bt.css(t, e));
  2962. if (f && f[3] !== l) {
  2963. (l = l || f[3]), (n = n || []), (f = +u || 1);
  2964. do (o = o || '.5'), (f /= o), bt.style(t, e, f + l);
  2965. while (o !== (o = s() / u) && 1 !== o && --a);
  2966. }
  2967. return (
  2968. n &&
  2969. ((f = +f || +u || 0),
  2970. (r = n[1] ? f + (n[1] + 1) * n[2] : +n[2]),
  2971. i && ((i.unit = l), (i.start = f), (i.end = r))),
  2972. r
  2973. );
  2974. }
  2975. function w(t) {
  2976. var e,
  2977. n = t.ownerDocument,
  2978. i = t.nodeName,
  2979. r = $t[i];
  2980. return r
  2981. ? r
  2982. : ((e = n.body.appendChild(n.createElement(i))),
  2983. (r = bt.css(e, 'display')),
  2984. e.parentNode.removeChild(e),
  2985. 'none' === r && (r = 'block'),
  2986. ($t[i] = r),
  2987. r);
  2988. }
  2989. function _(t, e) {
  2990. for (var n, i, r = [], o = 0, a = t.length; o < a; o++)
  2991. (i = t[o]),
  2992. i.style &&
  2993. ((n = i.style.display),
  2994. e
  2995. ? ('none' === n &&
  2996. ((r[o] = Ht.get(i, 'display') || null),
  2997. r[o] || (i.style.display = '')),
  2998. '' === i.style.display && Xt(i) && (r[o] = w(i)))
  2999. : 'none' !== n &&
  3000. ((r[o] = 'none'), Ht.set(i, 'display', n)));
  3001. for (o = 0; o < a; o++) null != r[o] && (t[o].style.display = r[o]);
  3002. return t;
  3003. }
  3004. function P(t, e) {
  3005. var n;
  3006. return (
  3007. (n =
  3008. 'undefined' != typeof t.getElementsByTagName
  3009. ? t.getElementsByTagName(e || '*')
  3010. : 'undefined' != typeof t.querySelectorAll
  3011. ? t.querySelectorAll(e || '*')
  3012. : []),
  3013. void 0 === e || (e && l(t, e)) ? bt.merge([t], n) : n
  3014. );
  3015. }
  3016. function C(t, e) {
  3017. for (var n = 0, i = t.length; n < i; n++)
  3018. Ht.set(t[n], 'globalEval', !e || Ht.get(e[n], 'globalEval'));
  3019. }
  3020. function x(t, e, n, i, r) {
  3021. for (
  3022. var o,
  3023. a,
  3024. s,
  3025. u,
  3026. l,
  3027. f,
  3028. c = e.createDocumentFragment(),
  3029. h = [],
  3030. d = 0,
  3031. p = t.length;
  3032. d < p;
  3033. d++
  3034. )
  3035. if (((o = t[d]), o || 0 === o))
  3036. if ('object' === bt.type(o)) bt.merge(h, o.nodeType ? [o] : o);
  3037. else if (ee.test(o)) {
  3038. for (
  3039. a = a || c.appendChild(e.createElement('div')),
  3040. s = (Zt.exec(o) || ['', ''])[1].toLowerCase(),
  3041. u = te[s] || te._default,
  3042. a.innerHTML = u[1] + bt.htmlPrefilter(o) + u[2],
  3043. f = u[0];
  3044. f--;
  3045. )
  3046. a = a.lastChild;
  3047. bt.merge(h, a.childNodes),
  3048. (a = c.firstChild),
  3049. (a.textContent = '');
  3050. } else h.push(e.createTextNode(o));
  3051. for (c.textContent = '', d = 0; (o = h[d++]);)
  3052. if (i && bt.inArray(o, i) > -1) r && r.push(o);
  3053. else if (
  3054. ((l = bt.contains(o.ownerDocument, o)),
  3055. (a = P(c.appendChild(o), 'script')),
  3056. l && C(a),
  3057. n)
  3058. )
  3059. for (f = 0; (o = a[f++]);) Qt.test(o.type || '') && n.push(o);
  3060. return c;
  3061. }
  3062. function T() {
  3063. return !0;
  3064. }
  3065. function k() {
  3066. return !1;
  3067. }
  3068. function D() {
  3069. try {
  3070. return st.activeElement;
  3071. } catch (t) {
  3072. }
  3073. }
  3074. function M(t, e, i, r, o, a) {
  3075. var s, u;
  3076. if ('object' === ('undefined' == typeof e ? 'undefined' : n(e))) {
  3077. 'string' != typeof i && ((r = r || i), (i = void 0));
  3078. for (u in e) M(t, u, i, r, e[u], a);
  3079. return t;
  3080. }
  3081. if (
  3082. (null == r && null == o
  3083. ? ((o = i), (r = i = void 0))
  3084. : null == o &&
  3085. ('string' == typeof i
  3086. ? ((o = r), (r = void 0))
  3087. : ((o = r), (r = i), (i = void 0))),
  3088. o === !1)
  3089. )
  3090. o = k;
  3091. else if (!o) return t;
  3092. return (
  3093. 1 === a &&
  3094. ((s = o),
  3095. (o = function (t) {
  3096. return bt().off(t), s.apply(this, arguments);
  3097. }),
  3098. (o.guid = s.guid || (s.guid = bt.guid++))),
  3099. t.each(function () {
  3100. bt.event.add(this, e, o, r, i);
  3101. })
  3102. );
  3103. }
  3104. function R(t, e) {
  3105. return l(t, 'table') &&
  3106. l(11 !== e.nodeType ? e : e.firstChild, 'tr')
  3107. ? bt('>tbody', t)[0] || t
  3108. : t;
  3109. }
  3110. function E(t) {
  3111. return (
  3112. (t.type = (null !== t.getAttribute('type')) + '/' + t.type), t
  3113. );
  3114. }
  3115. function z(t) {
  3116. var e = le.exec(t.type);
  3117. return e ? (t.type = e[1]) : t.removeAttribute('type'), t;
  3118. }
  3119. function I(t, e) {
  3120. var n, i, r, o, a, s, u, l;
  3121. if (1 === e.nodeType) {
  3122. if (
  3123. Ht.hasData(t) &&
  3124. ((o = Ht.access(t)), (a = Ht.set(e, o)), (l = o.events))
  3125. ) {
  3126. delete a.handle, (a.events = {});
  3127. for (r in l)
  3128. for (n = 0, i = l[r].length; n < i; n++)
  3129. bt.event.add(e, r, l[r][n]);
  3130. }
  3131. jt.hasData(t) &&
  3132. ((s = jt.access(t)), (u = bt.extend({}, s)), jt.set(e, u));
  3133. }
  3134. }
  3135. function A(t, e) {
  3136. var n = e.nodeName.toLowerCase();
  3137. 'input' === n && Kt.test(t.type)
  3138. ? (e.checked = t.checked)
  3139. : ('input' !== n && 'textarea' !== n) ||
  3140. (e.defaultValue = t.defaultValue);
  3141. }
  3142. function F(t, e, n, i) {
  3143. e = ft.apply([], e);
  3144. var r,
  3145. o,
  3146. a,
  3147. u,
  3148. l,
  3149. f,
  3150. c = 0,
  3151. h = t.length,
  3152. d = h - 1,
  3153. p = e[0],
  3154. y = bt.isFunction(p);
  3155. if (
  3156. y ||
  3157. (h > 1 && 'string' == typeof p && !gt.checkClone && ue.test(p))
  3158. )
  3159. return t.each(function (r) {
  3160. var o = t.eq(r);
  3161. y && (e[0] = p.call(this, r, o.html())), F(o, e, n, i);
  3162. });
  3163. if (
  3164. h &&
  3165. ((r = x(e, t[0].ownerDocument, !1, t, i)),
  3166. (o = r.firstChild),
  3167. 1 === r.childNodes.length && (r = o),
  3168. o || i)
  3169. ) {
  3170. for (a = bt.map(P(r, 'script'), E), u = a.length; c < h; c++)
  3171. (l = r),
  3172. c !== d &&
  3173. ((l = bt.clone(l, !0, !0)),
  3174. u && bt.merge(a, P(l, 'script'))),
  3175. n.call(t[c], l, c);
  3176. if (u)
  3177. for (
  3178. f = a[a.length - 1].ownerDocument, bt.map(a, z), c = 0;
  3179. c < u;
  3180. c++
  3181. )
  3182. (l = a[c]),
  3183. Qt.test(l.type || '') &&
  3184. !Ht.access(l, 'globalEval') &&
  3185. bt.contains(f, l) &&
  3186. (l.src
  3187. ? bt._evalUrl && bt._evalUrl(l.src)
  3188. : s(l.textContent.replace(fe, ''), f));
  3189. }
  3190. return t;
  3191. }
  3192. function O(t, e, n) {
  3193. for (
  3194. var i, r = e ? bt.filter(e, t) : t, o = 0;
  3195. null != (i = r[o]);
  3196. o++
  3197. )
  3198. n || 1 !== i.nodeType || bt.cleanData(P(i)),
  3199. i.parentNode &&
  3200. (n && bt.contains(i.ownerDocument, i) && C(P(i, 'script')),
  3201. i.parentNode.removeChild(i));
  3202. return t;
  3203. }
  3204. function B(t, e, n) {
  3205. var i,
  3206. r,
  3207. o,
  3208. a,
  3209. s = t.style;
  3210. return (
  3211. (n = n || de(t)),
  3212. n &&
  3213. ((a = n.getPropertyValue(e) || n[e]),
  3214. '' !== a ||
  3215. bt.contains(t.ownerDocument, t) ||
  3216. (a = bt.style(t, e)),
  3217. !gt.pixelMarginRight() &&
  3218. he.test(a) &&
  3219. ce.test(e) &&
  3220. ((i = s.width),
  3221. (r = s.minWidth),
  3222. (o = s.maxWidth),
  3223. (s.minWidth = s.maxWidth = s.width = a),
  3224. (a = n.width),
  3225. (s.width = i),
  3226. (s.minWidth = r),
  3227. (s.maxWidth = o))),
  3228. void 0 !== a ? a + '' : a
  3229. );
  3230. }
  3231. function L(t, e) {
  3232. return {
  3233. get: function () {
  3234. return t()
  3235. ? void delete this.get
  3236. : (this.get = e).apply(this, arguments);
  3237. },
  3238. };
  3239. }
  3240. function N(t) {
  3241. if (t in Se) return t;
  3242. for (var e = t[0].toUpperCase() + t.slice(1), n = ge.length; n--;)
  3243. if (((t = ge[n] + e), t in Se)) return t;
  3244. }
  3245. function q(t) {
  3246. var e = bt.cssProps[t];
  3247. return e || (e = bt.cssProps[t] = N(t) || t), e;
  3248. }
  3249. function H(t, e, n) {
  3250. var i = Vt.exec(e);
  3251. return i ? Math.max(0, i[2] - (n || 0)) + (i[3] || 'px') : e;
  3252. }
  3253. function j(t, e, n, i, r) {
  3254. var o,
  3255. a = 0;
  3256. for (
  3257. o = n === (i ? 'border' : 'content') ? 4 : 'width' === e ? 1 : 0;
  3258. o < 4;
  3259. o += 2
  3260. )
  3261. 'margin' === n && (a += bt.css(t, n + Yt[o], !0, r)),
  3262. i
  3263. ? ('content' === n &&
  3264. (a -= bt.css(t, 'padding' + Yt[o], !0, r)),
  3265. 'margin' !== n &&
  3266. (a -= bt.css(t, 'border' + Yt[o] + 'Width', !0, r)))
  3267. : ((a += bt.css(t, 'padding' + Yt[o], !0, r)),
  3268. 'padding' !== n &&
  3269. (a += bt.css(t, 'border' + Yt[o] + 'Width', !0, r)));
  3270. return a;
  3271. }
  3272. function W(t, e, n) {
  3273. var i,
  3274. r = de(t),
  3275. o = B(t, e, r),
  3276. a = 'border-box' === bt.css(t, 'boxSizing', !1, r);
  3277. return he.test(o)
  3278. ? o
  3279. : ((i = a && (gt.boxSizingReliable() || o === t.style[e])),
  3280. 'auto' === o &&
  3281. (o = t['offset' + e[0].toUpperCase() + e.slice(1)]),
  3282. (o = parseFloat(o) || 0),
  3283. o + j(t, e, n || (a ? 'border' : 'content'), i, r) + 'px');
  3284. }
  3285. function U(t, e, n, i, r) {
  3286. return new U.prototype.init(t, e, n, i, r);
  3287. }
  3288. function G() {
  3289. we &&
  3290. (st.hidden === !1 && o.requestAnimationFrame
  3291. ? o.requestAnimationFrame(G)
  3292. : o.setTimeout(G, bt.fx.interval),
  3293. bt.fx.tick());
  3294. }
  3295. function V() {
  3296. return (
  3297. o.setTimeout(function () {
  3298. be = void 0;
  3299. }),
  3300. (be = bt.now())
  3301. );
  3302. }
  3303. function Y(t, e) {
  3304. var n,
  3305. i = 0,
  3306. r = {height: t};
  3307. for (e = e ? 1 : 0; i < 4; i += 2 - e)
  3308. (n = Yt[i]), (r['margin' + n] = r['padding' + n] = t);
  3309. return e && (r.opacity = r.width = t), r;
  3310. }
  3311. function X(t, e, n) {
  3312. for (
  3313. var i,
  3314. r = (K.tweeners[e] || []).concat(K.tweeners['*']),
  3315. o = 0,
  3316. a = r.length;
  3317. o < a;
  3318. o++
  3319. )
  3320. if ((i = r[o].call(n, e, t))) return i;
  3321. }
  3322. function J(t, e, n) {
  3323. var i,
  3324. r,
  3325. o,
  3326. a,
  3327. s,
  3328. u,
  3329. l,
  3330. f,
  3331. c = 'width' in e || 'height' in e,
  3332. h = this,
  3333. d = {},
  3334. p = t.style,
  3335. y = t.nodeType && Xt(t),
  3336. m = Ht.get(t, 'fxshow');
  3337. n.queue ||
  3338. ((a = bt._queueHooks(t, 'fx')),
  3339. null == a.unqueued &&
  3340. ((a.unqueued = 0),
  3341. (s = a.empty.fire),
  3342. (a.empty.fire = function () {
  3343. a.unqueued || s();
  3344. })),
  3345. a.unqueued++,
  3346. h.always(function () {
  3347. h.always(function () {
  3348. a.unqueued--, bt.queue(t, 'fx').length || a.empty.fire();
  3349. });
  3350. }));
  3351. for (i in e)
  3352. if (((r = e[i]), _e.test(r))) {
  3353. if (
  3354. (delete e[i],
  3355. (o = o || 'toggle' === r),
  3356. r === (y ? 'hide' : 'show'))
  3357. ) {
  3358. if ('show' !== r || !m || void 0 === m[i]) continue;
  3359. y = !0;
  3360. }
  3361. d[i] = (m && m[i]) || bt.style(t, i);
  3362. }
  3363. if (((u = !bt.isEmptyObject(e)), u || !bt.isEmptyObject(d))) {
  3364. c &&
  3365. 1 === t.nodeType &&
  3366. ((n.overflow = [p.overflow, p.overflowX, p.overflowY]),
  3367. (l = m && m.display),
  3368. null == l && (l = Ht.get(t, 'display')),
  3369. (f = bt.css(t, 'display')),
  3370. 'none' === f &&
  3371. (l
  3372. ? (f = l)
  3373. : (_([t], !0),
  3374. (l = t.style.display || l),
  3375. (f = bt.css(t, 'display')),
  3376. _([t]))),
  3377. ('inline' === f || ('inline-block' === f && null != l)) &&
  3378. 'none' === bt.css(t, 'float') &&
  3379. (u ||
  3380. (h.done(function () {
  3381. p.display = l;
  3382. }),
  3383. null == l &&
  3384. ((f = p.display), (l = 'none' === f ? '' : f))),
  3385. (p.display = 'inline-block'))),
  3386. n.overflow &&
  3387. ((p.overflow = 'hidden'),
  3388. h.always(function () {
  3389. (p.overflow = n.overflow[0]),
  3390. (p.overflowX = n.overflow[1]),
  3391. (p.overflowY = n.overflow[2]);
  3392. })),
  3393. (u = !1);
  3394. for (i in d)
  3395. u ||
  3396. (m
  3397. ? 'hidden' in m && (y = m.hidden)
  3398. : (m = Ht.access(t, 'fxshow', {display: l})),
  3399. o && (m.hidden = !y),
  3400. y && _([t], !0),
  3401. h.done(function () {
  3402. y || _([t]), Ht.remove(t, 'fxshow');
  3403. for (i in d) bt.style(t, i, d[i]);
  3404. })),
  3405. (u = X(y ? m[i] : 0, i, h)),
  3406. i in m ||
  3407. ((m[i] = u.start), y && ((u.end = u.start), (u.start = 0)));
  3408. }
  3409. }
  3410. function $(t, e) {
  3411. var n, i, r, o, a;
  3412. for (n in t)
  3413. if (
  3414. ((i = bt.camelCase(n)),
  3415. (r = e[i]),
  3416. (o = t[n]),
  3417. Array.isArray(o) && ((r = o[1]), (o = t[n] = o[0])),
  3418. n !== i && ((t[i] = o), delete t[n]),
  3419. (a = bt.cssHooks[i]),
  3420. a && 'expand' in a)
  3421. ) {
  3422. (o = a.expand(o)), delete t[i];
  3423. for (n in o) n in t || ((t[n] = o[n]), (e[n] = r));
  3424. } else e[i] = r;
  3425. }
  3426. function K(t, e, n) {
  3427. var i,
  3428. r,
  3429. o = 0,
  3430. a = K.prefilters.length,
  3431. s = bt.Deferred().always(function () {
  3432. delete u.elem;
  3433. }),
  3434. u = function () {
  3435. if (r) return !1;
  3436. for (
  3437. var e = be || V(),
  3438. n = Math.max(0, l.startTime + l.duration - e),
  3439. i = n / l.duration || 0,
  3440. o = 1 - i,
  3441. a = 0,
  3442. u = l.tweens.length;
  3443. a < u;
  3444. a++
  3445. )
  3446. l.tweens[a].run(o);
  3447. return (
  3448. s.notifyWith(t, [l, o, n]),
  3449. o < 1 && u
  3450. ? n
  3451. : (u || s.notifyWith(t, [l, 1, 0]),
  3452. s.resolveWith(t, [l]),
  3453. !1)
  3454. );
  3455. },
  3456. l = s.promise({
  3457. elem: t,
  3458. props: bt.extend({}, e),
  3459. opts: bt.extend(
  3460. !0,
  3461. {specialEasing: {}, easing: bt.easing._default},
  3462. n
  3463. ),
  3464. originalProperties: e,
  3465. originalOptions: n,
  3466. startTime: be || V(),
  3467. duration: n.duration,
  3468. tweens: [],
  3469. createTween: function (e, n) {
  3470. var i = bt.Tween(
  3471. t,
  3472. l.opts,
  3473. e,
  3474. n,
  3475. l.opts.specialEasing[e] || l.opts.easing
  3476. );
  3477. return l.tweens.push(i), i;
  3478. },
  3479. stop: function (e) {
  3480. var n = 0,
  3481. i = e ? l.tweens.length : 0;
  3482. if (r) return this;
  3483. for (r = !0; n < i; n++) l.tweens[n].run(1);
  3484. return (
  3485. e
  3486. ? (s.notifyWith(t, [l, 1, 0]), s.resolveWith(t, [l, e]))
  3487. : s.rejectWith(t, [l, e]),
  3488. this
  3489. );
  3490. },
  3491. }),
  3492. f = l.props;
  3493. for ($(f, l.opts.specialEasing); o < a; o++)
  3494. if ((i = K.prefilters[o].call(l, t, f, l.opts)))
  3495. return (
  3496. bt.isFunction(i.stop) &&
  3497. (bt._queueHooks(l.elem, l.opts.queue).stop = bt.proxy(
  3498. i.stop,
  3499. i
  3500. )),
  3501. i
  3502. );
  3503. return (
  3504. bt.map(f, X, l),
  3505. bt.isFunction(l.opts.start) && l.opts.start.call(t, l),
  3506. l
  3507. .progress(l.opts.progress)
  3508. .done(l.opts.done, l.opts.complete)
  3509. .fail(l.opts.fail)
  3510. .always(l.opts.always),
  3511. bt.fx.timer(
  3512. bt.extend(u, {elem: t, anim: l, queue: l.opts.queue})
  3513. ),
  3514. l
  3515. );
  3516. }
  3517. function Z(t) {
  3518. var e = t.match(Ot) || [];
  3519. return e.join(' ');
  3520. }
  3521. function Q(t) {
  3522. return (t.getAttribute && t.getAttribute('class')) || '';
  3523. }
  3524. function tt(t, e, i, r) {
  3525. var o;
  3526. if (Array.isArray(e))
  3527. bt.each(e, function (e, o) {
  3528. i || Ie.test(t)
  3529. ? r(t, o)
  3530. : tt(
  3531. t +
  3532. '[' +
  3533. ('object' ===
  3534. ('undefined' == typeof o ? 'undefined' : n(o)) &&
  3535. null != o
  3536. ? e
  3537. : '') +
  3538. ']',
  3539. o,
  3540. i,
  3541. r
  3542. );
  3543. });
  3544. else if (i || 'object' !== bt.type(e)) r(t, e);
  3545. else for (o in e) tt(t + '[' + o + ']', e[o], i, r);
  3546. }
  3547. function et(t) {
  3548. return function (e, n) {
  3549. 'string' != typeof e && ((n = e), (e = '*'));
  3550. var i,
  3551. r = 0,
  3552. o = e.toLowerCase().match(Ot) || [];
  3553. if (bt.isFunction(n))
  3554. for (; (i = o[r++]);)
  3555. '+' === i[0]
  3556. ? ((i = i.slice(1) || '*'), (t[i] = t[i] || []).unshift(n))
  3557. : (t[i] = t[i] || []).push(n);
  3558. };
  3559. }
  3560. function nt(t, e, n, i) {
  3561. function r(s) {
  3562. var u;
  3563. return (
  3564. (o[s] = !0),
  3565. bt.each(t[s] || [], function (t, s) {
  3566. var l = s(e, n, i);
  3567. return 'string' != typeof l || a || o[l]
  3568. ? a
  3569. ? !(u = l)
  3570. : void 0
  3571. : (e.dataTypes.unshift(l), r(l), !1);
  3572. }),
  3573. u
  3574. );
  3575. }
  3576. var o = {},
  3577. a = t === Ge;
  3578. return r(e.dataTypes[0]) || (!o['*'] && r('*'));
  3579. }
  3580. function it(t, e) {
  3581. var n,
  3582. i,
  3583. r = bt.ajaxSettings.flatOptions || {};
  3584. for (n in e)
  3585. void 0 !== e[n] && ((r[n] ? t : i || (i = {}))[n] = e[n]);
  3586. return i && bt.extend(!0, t, i), t;
  3587. }
  3588. function rt(t, e, n) {
  3589. for (
  3590. var i, r, o, a, s = t.contents, u = t.dataTypes;
  3591. '*' === u[0];
  3592. )
  3593. u.shift(),
  3594. void 0 === i &&
  3595. (i = t.mimeType || e.getResponseHeader('Content-Type'));
  3596. if (i)
  3597. for (r in s)
  3598. if (s[r] && s[r].test(i)) {
  3599. u.unshift(r);
  3600. break;
  3601. }
  3602. if (u[0] in n) o = u[0];
  3603. else {
  3604. for (r in n) {
  3605. if (!u[0] || t.converters[r + ' ' + u[0]]) {
  3606. o = r;
  3607. break;
  3608. }
  3609. a || (a = r);
  3610. }
  3611. o = o || a;
  3612. }
  3613. if (o) return o !== u[0] && u.unshift(o), n[o];
  3614. }
  3615. function ot(t, e, n, i) {
  3616. var r,
  3617. o,
  3618. a,
  3619. s,
  3620. u,
  3621. l = {},
  3622. f = t.dataTypes.slice();
  3623. if (f[1])
  3624. for (a in t.converters) l[a.toLowerCase()] = t.converters[a];
  3625. for (o = f.shift(); o;)
  3626. if (
  3627. (t.responseFields[o] && (n[t.responseFields[o]] = e),
  3628. !u && i && t.dataFilter && (e = t.dataFilter(e, t.dataType)),
  3629. (u = o),
  3630. (o = f.shift()))
  3631. )
  3632. if ('*' === o) o = u;
  3633. else if ('*' !== u && u !== o) {
  3634. if (((a = l[u + ' ' + o] || l['* ' + o]), !a))
  3635. for (r in l)
  3636. if (
  3637. ((s = r.split(' ')),
  3638. s[1] === o && (a = l[u + ' ' + s[0]] || l['* ' + s[0]]))
  3639. ) {
  3640. a === !0
  3641. ? (a = l[r])
  3642. : l[r] !== !0 && ((o = s[0]), f.unshift(s[1]));
  3643. break;
  3644. }
  3645. if (a !== !0)
  3646. if (a && t.throws) e = a(e);
  3647. else
  3648. try {
  3649. e = a(e);
  3650. } catch (t) {
  3651. return {
  3652. state: 'parsererror',
  3653. error: a ? t : 'No conversion from ' + u + ' to ' + o,
  3654. };
  3655. }
  3656. }
  3657. return {state: 'success', data: e};
  3658. }
  3659. var at = [],
  3660. st = o.document,
  3661. ut = Object.getPrototypeOf,
  3662. lt = at.slice,
  3663. ft = at.concat,
  3664. ct = at.push,
  3665. ht = at.indexOf,
  3666. dt = {},
  3667. pt = dt.toString,
  3668. yt = dt.hasOwnProperty,
  3669. mt = yt.toString,
  3670. vt = mt.call(Object),
  3671. gt = {},
  3672. St = '3.2.1',
  3673. bt = function t(e, n) {
  3674. return new t.fn.init(e, n);
  3675. },
  3676. wt = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
  3677. _t = /^-ms-/,
  3678. Pt = /-([a-z])/g,
  3679. Ct = function (t, e) {
  3680. return e.toUpperCase();
  3681. };
  3682. (bt.fn = bt.prototype = {
  3683. jquery: St,
  3684. constructor: bt,
  3685. length: 0,
  3686. toArray: function () {
  3687. return lt.call(this);
  3688. },
  3689. get: function (t) {
  3690. return null == t
  3691. ? lt.call(this)
  3692. : t < 0
  3693. ? this[t + this.length]
  3694. : this[t];
  3695. },
  3696. pushStack: function (t) {
  3697. var e = bt.merge(this.constructor(), t);
  3698. return (e.prevObject = this), e;
  3699. },
  3700. each: function (t) {
  3701. return bt.each(this, t);
  3702. },
  3703. map: function (t) {
  3704. return this.pushStack(
  3705. bt.map(this, function (e, n) {
  3706. return t.call(e, n, e);
  3707. })
  3708. );
  3709. },
  3710. slice: function () {
  3711. return this.pushStack(lt.apply(this, arguments));
  3712. },
  3713. first: function () {
  3714. return this.eq(0);
  3715. },
  3716. last: function () {
  3717. return this.eq(-1);
  3718. },
  3719. eq: function (t) {
  3720. var e = this.length,
  3721. n = +t + (t < 0 ? e : 0);
  3722. return this.pushStack(n >= 0 && n < e ? [this[n]] : []);
  3723. },
  3724. end: function () {
  3725. return this.prevObject || this.constructor();
  3726. },
  3727. push: ct,
  3728. sort: at.sort,
  3729. splice: at.splice,
  3730. }),
  3731. (bt.extend = bt.fn.extend = function () {
  3732. var t,
  3733. e,
  3734. i,
  3735. r,
  3736. o,
  3737. a,
  3738. s = arguments[0] || {},
  3739. u = 1,
  3740. l = arguments.length,
  3741. f = !1;
  3742. for (
  3743. 'boolean' == typeof s &&
  3744. ((f = s), (s = arguments[u] || {}), u++),
  3745. 'object' === ('undefined' == typeof s ? 'undefined' : n(s)) ||
  3746. bt.isFunction(s) ||
  3747. (s = {}),
  3748. u === l && ((s = this), u--);
  3749. u < l;
  3750. u++
  3751. )
  3752. if (null != (t = arguments[u]))
  3753. for (e in t)
  3754. (i = s[e]),
  3755. (r = t[e]),
  3756. s !== r &&
  3757. (f &&
  3758. r &&
  3759. (bt.isPlainObject(r) || (o = Array.isArray(r)))
  3760. ? (o
  3761. ? ((o = !1), (a = i && Array.isArray(i) ? i : []))
  3762. : (a = i && bt.isPlainObject(i) ? i : {}),
  3763. (s[e] = bt.extend(f, a, r)))
  3764. : void 0 !== r && (s[e] = r));
  3765. return s;
  3766. }),
  3767. bt.extend({
  3768. expando: 'jQuery' + (St + Math.random()).replace(/\D/g, ''),
  3769. isReady: !0,
  3770. error: function (t) {
  3771. throw new Error(t);
  3772. },
  3773. noop: function () {
  3774. },
  3775. isFunction: function (t) {
  3776. return 'function' === bt.type(t);
  3777. },
  3778. isWindow: function (t) {
  3779. return null != t && t === t.window;
  3780. },
  3781. isNumeric: function (t) {
  3782. var e = bt.type(t);
  3783. return (
  3784. ('number' === e || 'string' === e) &&
  3785. !isNaN(t - parseFloat(t))
  3786. );
  3787. },
  3788. isPlainObject: function (t) {
  3789. var e, n;
  3790. return (
  3791. !(!t || '[object Object]' !== pt.call(t)) &&
  3792. (!(e = ut(t)) ||
  3793. ((n = yt.call(e, 'constructor') && e.constructor),
  3794. 'function' == typeof n && mt.call(n) === vt))
  3795. );
  3796. },
  3797. isEmptyObject: function (t) {
  3798. var e;
  3799. for (e in t) return !1;
  3800. return !0;
  3801. },
  3802. type: function (t) {
  3803. return null == t
  3804. ? t + ''
  3805. : 'object' ===
  3806. ('undefined' == typeof t ? 'undefined' : n(t)) ||
  3807. 'function' == typeof t
  3808. ? dt[pt.call(t)] || 'object'
  3809. : 'undefined' == typeof t
  3810. ? 'undefined'
  3811. : n(t);
  3812. },
  3813. globalEval: function (t) {
  3814. s(t);
  3815. },
  3816. camelCase: function (t) {
  3817. return t.replace(_t, 'ms-').replace(Pt, Ct);
  3818. },
  3819. each: function (t, e) {
  3820. var n,
  3821. i = 0;
  3822. if (u(t))
  3823. for (
  3824. n = t.length;
  3825. i < n && e.call(t[i], i, t[i]) !== !1;
  3826. i++
  3827. ) ;
  3828. else for (i in t) if (e.call(t[i], i, t[i]) === !1) break;
  3829. return t;
  3830. },
  3831. trim: function (t) {
  3832. return null == t ? '' : (t + '').replace(wt, '');
  3833. },
  3834. makeArray: function (t, e) {
  3835. var n = e || [];
  3836. return (
  3837. null != t &&
  3838. (u(Object(t))
  3839. ? bt.merge(n, 'string' == typeof t ? [t] : t)
  3840. : ct.call(n, t)),
  3841. n
  3842. );
  3843. },
  3844. inArray: function (t, e, n) {
  3845. return null == e ? -1 : ht.call(e, t, n);
  3846. },
  3847. merge: function (t, e) {
  3848. for (var n = +e.length, i = 0, r = t.length; i < n; i++)
  3849. t[r++] = e[i];
  3850. return (t.length = r), t;
  3851. },
  3852. grep: function (t, e, n) {
  3853. for (var i, r = [], o = 0, a = t.length, s = !n; o < a; o++)
  3854. (i = !e(t[o], o)), i !== s && r.push(t[o]);
  3855. return r;
  3856. },
  3857. map: function (t, e, n) {
  3858. var i,
  3859. r,
  3860. o = 0,
  3861. a = [];
  3862. if (u(t))
  3863. for (i = t.length; o < i; o++)
  3864. (r = e(t[o], o, n)), null != r && a.push(r);
  3865. else for (o in t) (r = e(t[o], o, n)), null != r && a.push(r);
  3866. return ft.apply([], a);
  3867. },
  3868. guid: 1,
  3869. proxy: function t(e, n) {
  3870. var i, r, t;
  3871. if (
  3872. ('string' == typeof n && ((i = e[n]), (n = e), (e = i)),
  3873. bt.isFunction(e))
  3874. )
  3875. return (
  3876. (r = lt.call(arguments, 2)),
  3877. (t = function () {
  3878. return e.apply(n || this, r.concat(lt.call(arguments)));
  3879. }),
  3880. (t.guid = e.guid = e.guid || bt.guid++),
  3881. t
  3882. );
  3883. },
  3884. now: Date.now,
  3885. support: gt,
  3886. }),
  3887. 'function' == typeof Symbol &&
  3888. (bt.fn[Symbol.iterator] = at[Symbol.iterator]),
  3889. bt.each(
  3890. 'Boolean Number String Function Array Date RegExp Object Error Symbol'.split(
  3891. ' '
  3892. ),
  3893. function (t, e) {
  3894. dt['[object ' + e + ']'] = e.toLowerCase();
  3895. }
  3896. );
  3897. var xt /*!
  3898. * Sizzle CSS Selector Engine v2.3.3
  3899. * https://sizzlejs.com/
  3900. *
  3901. * Copyright jQuery Foundation and other contributors
  3902. * Released under the MIT license
  3903. * http://jquery.org/license
  3904. *
  3905. * Date: 2016-08-08
  3906. */ = (function (
  3907. t
  3908. ) {
  3909. function e(t, e, n, i) {
  3910. var r,
  3911. o,
  3912. a,
  3913. s,
  3914. u,
  3915. l,
  3916. f,
  3917. h = e && e.ownerDocument,
  3918. p = e ? e.nodeType : 9;
  3919. if (
  3920. ((n = n || []),
  3921. 'string' != typeof t || !t || (1 !== p && 9 !== p && 11 !== p))
  3922. )
  3923. return n;
  3924. if (
  3925. !i &&
  3926. ((e ? e.ownerDocument || e : H) !== I && z(e), (e = e || I), F)
  3927. ) {
  3928. if (11 !== p && (u = vt.exec(t)))
  3929. if ((r = u[1])) {
  3930. if (9 === p) {
  3931. if (!(a = e.getElementById(r))) return n;
  3932. if (a.id === r) return n.push(a), n;
  3933. } else if (
  3934. h &&
  3935. (a = h.getElementById(r)) &&
  3936. N(e, a) &&
  3937. a.id === r
  3938. )
  3939. return n.push(a), n;
  3940. } else {
  3941. if (u[2]) return Z.apply(n, e.getElementsByTagName(t)), n;
  3942. if (
  3943. (r = u[3]) &&
  3944. _.getElementsByClassName &&
  3945. e.getElementsByClassName
  3946. )
  3947. return Z.apply(n, e.getElementsByClassName(r)), n;
  3948. }
  3949. if (_.qsa && !V[t + ' '] && (!O || !O.test(t))) {
  3950. if (1 !== p) (h = e), (f = t);
  3951. else if ('object' !== e.nodeName.toLowerCase()) {
  3952. for (
  3953. (s = e.getAttribute('id'))
  3954. ? (s = s.replace(wt, _t))
  3955. : e.setAttribute('id', (s = q)),
  3956. l = T(t),
  3957. o = l.length;
  3958. o--;
  3959. )
  3960. l[o] = '#' + s + ' ' + d(l[o]);
  3961. (f = l.join(',')),
  3962. (h = (gt.test(t) && c(e.parentNode)) || e);
  3963. }
  3964. if (f)
  3965. try {
  3966. return Z.apply(n, h.querySelectorAll(f)), n;
  3967. } catch (t) {
  3968. } finally {
  3969. s === q && e.removeAttribute('id');
  3970. }
  3971. }
  3972. }
  3973. return D(t.replace(st, '$1'), e, n, i);
  3974. }
  3975. function n() {
  3976. function t(n, i) {
  3977. return (
  3978. e.push(n + ' ') > P.cacheLength && delete t[e.shift()],
  3979. (t[n + ' '] = i)
  3980. );
  3981. }
  3982. var e = [];
  3983. return t;
  3984. }
  3985. function i(t) {
  3986. return (t[q] = !0), t;
  3987. }
  3988. function r(t) {
  3989. var e = I.createElement('fieldset');
  3990. try {
  3991. return !!t(e);
  3992. } catch (t) {
  3993. return !1;
  3994. } finally {
  3995. e.parentNode && e.parentNode.removeChild(e), (e = null);
  3996. }
  3997. }
  3998. function o(t, e) {
  3999. for (var n = t.split('|'), i = n.length; i--;)
  4000. P.attrHandle[n[i]] = e;
  4001. }
  4002. function a(t, e) {
  4003. var n = e && t,
  4004. i =
  4005. n &&
  4006. 1 === t.nodeType &&
  4007. 1 === e.nodeType &&
  4008. t.sourceIndex - e.sourceIndex;
  4009. if (i) return i;
  4010. if (n) for (; (n = n.nextSibling);) if (n === e) return -1;
  4011. return t ? 1 : -1;
  4012. }
  4013. function s(t) {
  4014. return function (e) {
  4015. var n = e.nodeName.toLowerCase();
  4016. return 'input' === n && e.type === t;
  4017. };
  4018. }
  4019. function u(t) {
  4020. return function (e) {
  4021. var n = e.nodeName.toLowerCase();
  4022. return ('input' === n || 'button' === n) && e.type === t;
  4023. };
  4024. }
  4025. function l(t) {
  4026. return function (e) {
  4027. return 'form' in e
  4028. ? e.parentNode && e.disabled === !1
  4029. ? 'label' in e
  4030. ? 'label' in e.parentNode
  4031. ? e.parentNode.disabled === t
  4032. : e.disabled === t
  4033. : e.isDisabled === t ||
  4034. (e.isDisabled !== !t && Ct(e) === t)
  4035. : e.disabled === t
  4036. : 'label' in e && e.disabled === t;
  4037. };
  4038. }
  4039. function f(t) {
  4040. return i(function (e) {
  4041. return (
  4042. (e = +e),
  4043. i(function (n, i) {
  4044. for (var r, o = t([], n.length, e), a = o.length; a--;)
  4045. n[(r = o[a])] && (n[r] = !(i[r] = n[r]));
  4046. })
  4047. );
  4048. });
  4049. }
  4050. function c(t) {
  4051. return t && 'undefined' != typeof t.getElementsByTagName && t;
  4052. }
  4053. function h() {
  4054. }
  4055. function d(t) {
  4056. for (var e = 0, n = t.length, i = ''; e < n; e++) i += t[e].value;
  4057. return i;
  4058. }
  4059. function p(t, e, n) {
  4060. var i = e.dir,
  4061. r = e.next,
  4062. o = r || i,
  4063. a = n && 'parentNode' === o,
  4064. s = W++;
  4065. return e.first
  4066. ? function (e, n, r) {
  4067. for (; (e = e[i]);)
  4068. if (1 === e.nodeType || a) return t(e, n, r);
  4069. return !1;
  4070. }
  4071. : function (e, n, u) {
  4072. var l,
  4073. f,
  4074. c,
  4075. h = [j, s];
  4076. if (u) {
  4077. for (; (e = e[i]);)
  4078. if ((1 === e.nodeType || a) && t(e, n, u)) return !0;
  4079. } else
  4080. for (; (e = e[i]);)
  4081. if (1 === e.nodeType || a)
  4082. if (
  4083. ((c = e[q] || (e[q] = {})),
  4084. (f = c[e.uniqueID] || (c[e.uniqueID] = {})),
  4085. r && r === e.nodeName.toLowerCase())
  4086. )
  4087. e = e[i] || e;
  4088. else {
  4089. if ((l = f[o]) && l[0] === j && l[1] === s)
  4090. return (h[2] = l[2]);
  4091. if (((f[o] = h), (h[2] = t(e, n, u)))) return !0;
  4092. }
  4093. return !1;
  4094. };
  4095. }
  4096. function y(t) {
  4097. return t.length > 1
  4098. ? function (e, n, i) {
  4099. for (var r = t.length; r--;) if (!t[r](e, n, i)) return !1;
  4100. return !0;
  4101. }
  4102. : t[0];
  4103. }
  4104. function m(t, n, i) {
  4105. for (var r = 0, o = n.length; r < o; r++) e(t, n[r], i);
  4106. return i;
  4107. }
  4108. function v(t, e, n, i, r) {
  4109. for (
  4110. var o, a = [], s = 0, u = t.length, l = null != e;
  4111. s < u;
  4112. s++
  4113. )
  4114. (o = t[s]) &&
  4115. ((n && !n(o, i, r)) || (a.push(o), l && e.push(s)));
  4116. return a;
  4117. }
  4118. function g(t, e, n, r, o, a) {
  4119. return (
  4120. r && !r[q] && (r = g(r)),
  4121. o && !o[q] && (o = g(o, a)),
  4122. i(function (i, a, s, u) {
  4123. var l,
  4124. f,
  4125. c,
  4126. h = [],
  4127. d = [],
  4128. p = a.length,
  4129. y = i || m(e || '*', s.nodeType ? [s] : s, []),
  4130. g = !t || (!i && e) ? y : v(y, h, t, s, u),
  4131. S = n ? (o || (i ? t : p || r) ? [] : a) : g;
  4132. if ((n && n(g, S, s, u), r))
  4133. for (l = v(S, d), r(l, [], s, u), f = l.length; f--;)
  4134. (c = l[f]) && (S[d[f]] = !(g[d[f]] = c));
  4135. if (i) {
  4136. if (o || t) {
  4137. if (o) {
  4138. for (l = [], f = S.length; f--;)
  4139. (c = S[f]) && l.push((g[f] = c));
  4140. o(null, (S = []), l, u);
  4141. }
  4142. for (f = S.length; f--;)
  4143. (c = S[f]) &&
  4144. (l = o ? tt(i, c) : h[f]) > -1 &&
  4145. (i[l] = !(a[l] = c));
  4146. }
  4147. } else (S = v(S === a ? S.splice(p, S.length) : S)), o ? o(null, a, S, u) : Z.apply(a, S);
  4148. })
  4149. );
  4150. }
  4151. function S(t) {
  4152. for (
  4153. var e,
  4154. n,
  4155. i,
  4156. r = t.length,
  4157. o = P.relative[t[0].type],
  4158. a = o || P.relative[' '],
  4159. s = o ? 1 : 0,
  4160. u = p(
  4161. function (t) {
  4162. return t === e;
  4163. },
  4164. a,
  4165. !0
  4166. ),
  4167. l = p(
  4168. function (t) {
  4169. return tt(e, t) > -1;
  4170. },
  4171. a,
  4172. !0
  4173. ),
  4174. f = [
  4175. function (t, n, i) {
  4176. var r =
  4177. (!o && (i || n !== M)) ||
  4178. ((e = n).nodeType ? u(t, n, i) : l(t, n, i));
  4179. return (e = null), r;
  4180. },
  4181. ];
  4182. s < r;
  4183. s++
  4184. )
  4185. if ((n = P.relative[t[s].type])) f = [p(y(f), n)];
  4186. else {
  4187. if (
  4188. ((n = P.filter[t[s].type].apply(null, t[s].matches)), n[q])
  4189. ) {
  4190. for (i = ++s; i < r && !P.relative[t[i].type]; i++) ;
  4191. return g(
  4192. s > 1 && y(f),
  4193. s > 1 &&
  4194. d(
  4195. t
  4196. .slice(0, s - 1)
  4197. .concat({value: ' ' === t[s - 2].type ? '*' : ''})
  4198. ).replace(st, '$1'),
  4199. n,
  4200. s < i && S(t.slice(s, i)),
  4201. i < r && S((t = t.slice(i))),
  4202. i < r && d(t)
  4203. );
  4204. }
  4205. f.push(n);
  4206. }
  4207. return y(f);
  4208. }
  4209. function b(t, n) {
  4210. var r = n.length > 0,
  4211. o = t.length > 0,
  4212. a = function (i, a, s, u, l) {
  4213. var f,
  4214. c,
  4215. h,
  4216. d = 0,
  4217. p = '0',
  4218. y = i && [],
  4219. m = [],
  4220. g = M,
  4221. S = i || (o && P.find.TAG('*', l)),
  4222. b = (j += null == g ? 1 : Math.random() || 0.1),
  4223. w = S.length;
  4224. for (
  4225. l && (M = a === I || a || l);
  4226. p !== w && null != (f = S[p]);
  4227. p++
  4228. ) {
  4229. if (o && f) {
  4230. for (
  4231. c = 0, a || f.ownerDocument === I || (z(f), (s = !F));
  4232. (h = t[c++]);
  4233. )
  4234. if (h(f, a || I, s)) {
  4235. u.push(f);
  4236. break;
  4237. }
  4238. l && (j = b);
  4239. }
  4240. r && ((f = !h && f) && d--, i && y.push(f));
  4241. }
  4242. if (((d += p), r && p !== d)) {
  4243. for (c = 0; (h = n[c++]);) h(y, m, a, s);
  4244. if (i) {
  4245. if (d > 0)
  4246. for (; p--;) y[p] || m[p] || (m[p] = $.call(u));
  4247. m = v(m);
  4248. }
  4249. Z.apply(u, m),
  4250. l &&
  4251. !i &&
  4252. m.length > 0 &&
  4253. d + n.length > 1 &&
  4254. e.uniqueSort(u);
  4255. }
  4256. return l && ((j = b), (M = g)), y;
  4257. };
  4258. return r ? i(a) : a;
  4259. }
  4260. var w,
  4261. _,
  4262. P,
  4263. C,
  4264. x,
  4265. T,
  4266. k,
  4267. D,
  4268. M,
  4269. R,
  4270. E,
  4271. z,
  4272. I,
  4273. A,
  4274. F,
  4275. O,
  4276. B,
  4277. L,
  4278. N,
  4279. q = 'sizzle' + 1 * new Date(),
  4280. H = t.document,
  4281. j = 0,
  4282. W = 0,
  4283. U = n(),
  4284. G = n(),
  4285. V = n(),
  4286. Y = function (t, e) {
  4287. return t === e && (E = !0), 0;
  4288. },
  4289. X = {}.hasOwnProperty,
  4290. J = [],
  4291. $ = J.pop,
  4292. K = J.push,
  4293. Z = J.push,
  4294. Q = J.slice,
  4295. tt = function (t, e) {
  4296. for (var n = 0, i = t.length; n < i; n++)
  4297. if (t[n] === e) return n;
  4298. return -1;
  4299. },
  4300. et =
  4301. 'checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped',
  4302. nt = '[\\x20\\t\\r\\n\\f]',
  4303. it = '(?:\\\\.|[\\w-]|[^\0-\\xa0])+',
  4304. rt =
  4305. '\\[' +
  4306. nt +
  4307. '*(' +
  4308. it +
  4309. ')(?:' +
  4310. nt +
  4311. '*([*^$|!~]?=)' +
  4312. nt +
  4313. '*(?:\'((?:\\\\.|[^\\\\\'])*)\'|"((?:\\\\.|[^\\\\"])*)"|(' +
  4314. it +
  4315. '))|)' +
  4316. nt +
  4317. '*\\]',
  4318. ot =
  4319. ':(' +
  4320. it +
  4321. ')(?:\\(((\'((?:\\\\.|[^\\\\\'])*)\'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|' +
  4322. rt +
  4323. ')*)|.*)\\)|)',
  4324. at = new RegExp(nt + '+', 'g'),
  4325. st = new RegExp(
  4326. '^' + nt + '+|((?:^|[^\\\\])(?:\\\\.)*)' + nt + '+$',
  4327. 'g'
  4328. ),
  4329. ut = new RegExp('^' + nt + '*,' + nt + '*'),
  4330. lt = new RegExp('^' + nt + '*([>+~]|' + nt + ')' + nt + '*'),
  4331. ft = new RegExp('=' + nt + '*([^\\]\'"]*?)' + nt + '*\\]', 'g'),
  4332. ct = new RegExp(ot),
  4333. ht = new RegExp('^' + it + '$'),
  4334. dt = {
  4335. ID: new RegExp('^#(' + it + ')'),
  4336. CLASS: new RegExp('^\\.(' + it + ')'),
  4337. TAG: new RegExp('^(' + it + '|[*])'),
  4338. ATTR: new RegExp('^' + rt),
  4339. PSEUDO: new RegExp('^' + ot),
  4340. CHILD: new RegExp(
  4341. '^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(' +
  4342. nt +
  4343. '*(even|odd|(([+-]|)(\\d*)n|)' +
  4344. nt +
  4345. '*(?:([+-]|)' +
  4346. nt +
  4347. '*(\\d+)|))' +
  4348. nt +
  4349. '*\\)|)',
  4350. 'i'
  4351. ),
  4352. bool: new RegExp('^(?:' + et + ')$', 'i'),
  4353. needsContext: new RegExp(
  4354. '^' +
  4355. nt +
  4356. '*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(' +
  4357. nt +
  4358. '*((?:-\\d)?\\d*)' +
  4359. nt +
  4360. '*\\)|)(?=[^-]|$)',
  4361. 'i'
  4362. ),
  4363. },
  4364. pt = /^(?:input|select|textarea|button)$/i,
  4365. yt = /^h\d$/i,
  4366. mt = /^[^{]+\{\s*\[native \w/,
  4367. vt = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
  4368. gt = /[+~]/,
  4369. St = new RegExp(
  4370. '\\\\([\\da-f]{1,6}' + nt + '?|(' + nt + ')|.)',
  4371. 'ig'
  4372. ),
  4373. bt = function (t, e, n) {
  4374. var i = '0x' + e - 65536;
  4375. return i !== i || n
  4376. ? e
  4377. : i < 0
  4378. ? String.fromCharCode(i + 65536)
  4379. : String.fromCharCode(
  4380. (i >> 10) | 55296,
  4381. (1023 & i) | 56320
  4382. );
  4383. },
  4384. wt = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,
  4385. _t = function (t, e) {
  4386. return e
  4387. ? '\0' === t
  4388. ? '�'
  4389. : t.slice(0, -1) +
  4390. '\\' +
  4391. t.charCodeAt(t.length - 1).toString(16) +
  4392. ' '
  4393. : '\\' + t;
  4394. },
  4395. Pt = function () {
  4396. z();
  4397. },
  4398. Ct = p(
  4399. function (t) {
  4400. return t.disabled === !0 && ('form' in t || 'label' in t);
  4401. },
  4402. {dir: 'parentNode', next: 'legend'}
  4403. );
  4404. try {
  4405. Z.apply((J = Q.call(H.childNodes)), H.childNodes),
  4406. J[H.childNodes.length].nodeType;
  4407. } catch (t) {
  4408. Z = {
  4409. apply: J.length
  4410. ? function (t, e) {
  4411. K.apply(t, Q.call(e));
  4412. }
  4413. : function (t, e) {
  4414. for (var n = t.length, i = 0; (t[n++] = e[i++]);) ;
  4415. t.length = n - 1;
  4416. },
  4417. };
  4418. }
  4419. (_ = e.support = {}),
  4420. (x = e.isXML = function (t) {
  4421. var e = t && (t.ownerDocument || t).documentElement;
  4422. return !!e && 'HTML' !== e.nodeName;
  4423. }),
  4424. (z = e.setDocument = function (t) {
  4425. var e,
  4426. n,
  4427. i = t ? t.ownerDocument || t : H;
  4428. return i !== I && 9 === i.nodeType && i.documentElement
  4429. ? ((I = i),
  4430. (A = I.documentElement),
  4431. (F = !x(I)),
  4432. H !== I &&
  4433. (n = I.defaultView) &&
  4434. n.top !== n &&
  4435. (n.addEventListener
  4436. ? n.addEventListener('unload', Pt, !1)
  4437. : n.attachEvent && n.attachEvent('onunload', Pt)),
  4438. (_.attributes = r(function (t) {
  4439. return (t.className = 'i'), !t.getAttribute('className');
  4440. })),
  4441. (_.getElementsByTagName = r(function (t) {
  4442. return (
  4443. t.appendChild(I.createComment('')),
  4444. !t.getElementsByTagName('*').length
  4445. );
  4446. })),
  4447. (_.getElementsByClassName = mt.test(
  4448. I.getElementsByClassName
  4449. )),
  4450. (_.getById = r(function (t) {
  4451. return (
  4452. (A.appendChild(t).id = q),
  4453. !I.getElementsByName || !I.getElementsByName(q).length
  4454. );
  4455. })),
  4456. _.getById
  4457. ? ((P.filter.ID = function (t) {
  4458. var e = t.replace(St, bt);
  4459. return function (t) {
  4460. return t.getAttribute('id') === e;
  4461. };
  4462. }),
  4463. (P.find.ID = function (t, e) {
  4464. if ('undefined' != typeof e.getElementById && F) {
  4465. var n = e.getElementById(t);
  4466. return n ? [n] : [];
  4467. }
  4468. }))
  4469. : ((P.filter.ID = function (t) {
  4470. var e = t.replace(St, bt);
  4471. return function (t) {
  4472. var n =
  4473. 'undefined' != typeof t.getAttributeNode &&
  4474. t.getAttributeNode('id');
  4475. return n && n.value === e;
  4476. };
  4477. }),
  4478. (P.find.ID = function (t, e) {
  4479. if ('undefined' != typeof e.getElementById && F) {
  4480. var n,
  4481. i,
  4482. r,
  4483. o = e.getElementById(t);
  4484. if (o) {
  4485. if (
  4486. ((n = o.getAttributeNode('id')),
  4487. n && n.value === t)
  4488. )
  4489. return [o];
  4490. for (
  4491. r = e.getElementsByName(t), i = 0;
  4492. (o = r[i++]);
  4493. )
  4494. if (
  4495. ((n = o.getAttributeNode('id')),
  4496. n && n.value === t)
  4497. )
  4498. return [o];
  4499. }
  4500. return [];
  4501. }
  4502. })),
  4503. (P.find.TAG = _.getElementsByTagName
  4504. ? function (t, e) {
  4505. return 'undefined' != typeof e.getElementsByTagName
  4506. ? e.getElementsByTagName(t)
  4507. : _.qsa
  4508. ? e.querySelectorAll(t)
  4509. : void 0;
  4510. }
  4511. : function (t, e) {
  4512. var n,
  4513. i = [],
  4514. r = 0,
  4515. o = e.getElementsByTagName(t);
  4516. if ('*' === t) {
  4517. for (; (n = o[r++]);)
  4518. 1 === n.nodeType && i.push(n);
  4519. return i;
  4520. }
  4521. return o;
  4522. }),
  4523. (P.find.CLASS =
  4524. _.getElementsByClassName &&
  4525. function (t, e) {
  4526. if ('undefined' != typeof e.getElementsByClassName && F)
  4527. return e.getElementsByClassName(t);
  4528. }),
  4529. (B = []),
  4530. (O = []),
  4531. (_.qsa = mt.test(I.querySelectorAll)) &&
  4532. (r(function (t) {
  4533. (A.appendChild(t).innerHTML =
  4534. "<a id='" +
  4535. q +
  4536. "'></a><select id='" +
  4537. q +
  4538. "-\r\\' msallowcapture=''><option selected=''></option></select>"),
  4539. t.querySelectorAll("[msallowcapture^='']").length &&
  4540. O.push('[*^$]=' + nt + '*(?:\'\'|"")'),
  4541. t.querySelectorAll('[selected]').length ||
  4542. O.push('\\[' + nt + '*(?:value|' + et + ')'),
  4543. t.querySelectorAll('[id~=' + q + '-]').length ||
  4544. O.push('~='),
  4545. t.querySelectorAll(':checked').length ||
  4546. O.push(':checked'),
  4547. t.querySelectorAll('a#' + q + '+*').length ||
  4548. O.push('.#.+[+~]');
  4549. }),
  4550. r(function (t) {
  4551. t.innerHTML =
  4552. "<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";
  4553. var e = I.createElement('input');
  4554. e.setAttribute('type', 'hidden'),
  4555. t.appendChild(e).setAttribute('name', 'D'),
  4556. t.querySelectorAll('[name=d]').length &&
  4557. O.push('name' + nt + '*[*^$|!~]?='),
  4558. 2 !== t.querySelectorAll(':enabled').length &&
  4559. O.push(':enabled', ':disabled'),
  4560. (A.appendChild(t).disabled = !0),
  4561. 2 !== t.querySelectorAll(':disabled').length &&
  4562. O.push(':enabled', ':disabled'),
  4563. t.querySelectorAll('*,:x'),
  4564. O.push(',.*:');
  4565. })),
  4566. (_.matchesSelector = mt.test(
  4567. (L =
  4568. A.matches ||
  4569. A.webkitMatchesSelector ||
  4570. A.mozMatchesSelector ||
  4571. A.oMatchesSelector ||
  4572. A.msMatchesSelector)
  4573. )) &&
  4574. r(function (t) {
  4575. (_.disconnectedMatch = L.call(t, '*')),
  4576. L.call(t, "[s!='']:x"),
  4577. B.push('!=', ot);
  4578. }),
  4579. (O = O.length && new RegExp(O.join('|'))),
  4580. (B = B.length && new RegExp(B.join('|'))),
  4581. (e = mt.test(A.compareDocumentPosition)),
  4582. (N =
  4583. e || mt.test(A.contains)
  4584. ? function (t, e) {
  4585. var n = 9 === t.nodeType ? t.documentElement : t,
  4586. i = e && e.parentNode;
  4587. return (
  4588. t === i ||
  4589. !(
  4590. !i ||
  4591. 1 !== i.nodeType ||
  4592. !(n.contains
  4593. ? n.contains(i)
  4594. : t.compareDocumentPosition &&
  4595. 16 & t.compareDocumentPosition(i))
  4596. )
  4597. );
  4598. }
  4599. : function (t, e) {
  4600. if (e)
  4601. for (; (e = e.parentNode);)
  4602. if (e === t) return !0;
  4603. return !1;
  4604. }),
  4605. (Y = e
  4606. ? function (t, e) {
  4607. if (t === e) return (E = !0), 0;
  4608. var n =
  4609. !t.compareDocumentPosition -
  4610. !e.compareDocumentPosition;
  4611. return n
  4612. ? n
  4613. : ((n =
  4614. (t.ownerDocument || t) ===
  4615. (e.ownerDocument || e)
  4616. ? t.compareDocumentPosition(e)
  4617. : 1),
  4618. 1 & n ||
  4619. (!_.sortDetached &&
  4620. e.compareDocumentPosition(t) === n)
  4621. ? t === I || (t.ownerDocument === H && N(H, t))
  4622. ? -1
  4623. : e === I ||
  4624. (e.ownerDocument === H && N(H, e))
  4625. ? 1
  4626. : R
  4627. ? tt(R, t) - tt(R, e)
  4628. : 0
  4629. : 4 & n
  4630. ? -1
  4631. : 1);
  4632. }
  4633. : function (t, e) {
  4634. if (t === e) return (E = !0), 0;
  4635. var n,
  4636. i = 0,
  4637. r = t.parentNode,
  4638. o = e.parentNode,
  4639. s = [t],
  4640. u = [e];
  4641. if (!r || !o)
  4642. return t === I
  4643. ? -1
  4644. : e === I
  4645. ? 1
  4646. : r
  4647. ? -1
  4648. : o
  4649. ? 1
  4650. : R
  4651. ? tt(R, t) - tt(R, e)
  4652. : 0;
  4653. if (r === o) return a(t, e);
  4654. for (n = t; (n = n.parentNode);) s.unshift(n);
  4655. for (n = e; (n = n.parentNode);) u.unshift(n);
  4656. for (; s[i] === u[i];) i++;
  4657. return i
  4658. ? a(s[i], u[i])
  4659. : s[i] === H
  4660. ? -1
  4661. : u[i] === H
  4662. ? 1
  4663. : 0;
  4664. }),
  4665. I)
  4666. : I;
  4667. }),
  4668. (e.matches = function (t, n) {
  4669. return e(t, null, null, n);
  4670. }),
  4671. (e.matchesSelector = function (t, n) {
  4672. if (
  4673. ((t.ownerDocument || t) !== I && z(t),
  4674. (n = n.replace(ft, "='$1']")),
  4675. _.matchesSelector &&
  4676. F &&
  4677. !V[n + ' '] &&
  4678. (!B || !B.test(n)) &&
  4679. (!O || !O.test(n)))
  4680. )
  4681. try {
  4682. var i = L.call(t, n);
  4683. if (
  4684. i ||
  4685. _.disconnectedMatch ||
  4686. (t.document && 11 !== t.document.nodeType)
  4687. )
  4688. return i;
  4689. } catch (t) {
  4690. }
  4691. return e(n, I, null, [t]).length > 0;
  4692. }),
  4693. (e.contains = function (t, e) {
  4694. return (t.ownerDocument || t) !== I && z(t), N(t, e);
  4695. }),
  4696. (e.attr = function (t, e) {
  4697. (t.ownerDocument || t) !== I && z(t);
  4698. var n = P.attrHandle[e.toLowerCase()],
  4699. i =
  4700. n && X.call(P.attrHandle, e.toLowerCase())
  4701. ? n(t, e, !F)
  4702. : void 0;
  4703. return void 0 !== i
  4704. ? i
  4705. : _.attributes || !F
  4706. ? t.getAttribute(e)
  4707. : (i = t.getAttributeNode(e)) && i.specified
  4708. ? i.value
  4709. : null;
  4710. }),
  4711. (e.escape = function (t) {
  4712. return (t + '').replace(wt, _t);
  4713. }),
  4714. (e.error = function (t) {
  4715. throw new Error('Syntax error, unrecognized expression: ' + t);
  4716. }),
  4717. (e.uniqueSort = function (t) {
  4718. var e,
  4719. n = [],
  4720. i = 0,
  4721. r = 0;
  4722. if (
  4723. ((E = !_.detectDuplicates),
  4724. (R = !_.sortStable && t.slice(0)),
  4725. t.sort(Y),
  4726. E)
  4727. ) {
  4728. for (; (e = t[r++]);) e === t[r] && (i = n.push(r));
  4729. for (; i--;) t.splice(n[i], 1);
  4730. }
  4731. return (R = null), t;
  4732. }),
  4733. (C = e.getText = function (t) {
  4734. var e,
  4735. n = '',
  4736. i = 0,
  4737. r = t.nodeType;
  4738. if (r) {
  4739. if (1 === r || 9 === r || 11 === r) {
  4740. if ('string' == typeof t.textContent) return t.textContent;
  4741. for (t = t.firstChild; t; t = t.nextSibling) n += C(t);
  4742. } else if (3 === r || 4 === r) return t.nodeValue;
  4743. } else for (; (e = t[i++]);) n += C(e);
  4744. return n;
  4745. }),
  4746. (P = e.selectors = {
  4747. cacheLength: 50,
  4748. createPseudo: i,
  4749. match: dt,
  4750. attrHandle: {},
  4751. find: {},
  4752. relative: {
  4753. '>': {dir: 'parentNode', first: !0},
  4754. ' ': {dir: 'parentNode'},
  4755. '+': {dir: 'previousSibling', first: !0},
  4756. '~': {dir: 'previousSibling'},
  4757. },
  4758. preFilter: {
  4759. ATTR: function (t) {
  4760. return (
  4761. (t[1] = t[1].replace(St, bt)),
  4762. (t[3] = (t[3] || t[4] || t[5] || '').replace(St, bt)),
  4763. '~=' === t[2] && (t[3] = ' ' + t[3] + ' '),
  4764. t.slice(0, 4)
  4765. );
  4766. },
  4767. CHILD: function (t) {
  4768. return (
  4769. (t[1] = t[1].toLowerCase()),
  4770. 'nth' === t[1].slice(0, 3)
  4771. ? (t[3] || e.error(t[0]),
  4772. (t[4] = +(t[4]
  4773. ? t[5] + (t[6] || 1)
  4774. : 2 * ('even' === t[3] || 'odd' === t[3]))),
  4775. (t[5] = +(t[7] + t[8] || 'odd' === t[3])))
  4776. : t[3] && e.error(t[0]),
  4777. t
  4778. );
  4779. },
  4780. PSEUDO: function (t) {
  4781. var e,
  4782. n = !t[6] && t[2];
  4783. return dt.CHILD.test(t[0])
  4784. ? null
  4785. : (t[3]
  4786. ? (t[2] = t[4] || t[5] || '')
  4787. : n &&
  4788. ct.test(n) &&
  4789. (e = T(n, !0)) &&
  4790. (e = n.indexOf(')', n.length - e) - n.length) &&
  4791. ((t[0] = t[0].slice(0, e)), (t[2] = n.slice(0, e))),
  4792. t.slice(0, 3));
  4793. },
  4794. },
  4795. filter: {
  4796. TAG: function (t) {
  4797. var e = t.replace(St, bt).toLowerCase();
  4798. return '*' === t
  4799. ? function () {
  4800. return !0;
  4801. }
  4802. : function (t) {
  4803. return t.nodeName && t.nodeName.toLowerCase() === e;
  4804. };
  4805. },
  4806. CLASS: function (t) {
  4807. var e = U[t + ' '];
  4808. return (
  4809. e ||
  4810. ((e = new RegExp(
  4811. '(^|' + nt + ')' + t + '(' + nt + '|$)'
  4812. )) &&
  4813. U(t, function (t) {
  4814. return e.test(
  4815. ('string' == typeof t.className && t.className) ||
  4816. ('undefined' != typeof t.getAttribute &&
  4817. t.getAttribute('class')) ||
  4818. ''
  4819. );
  4820. }))
  4821. );
  4822. },
  4823. ATTR: function (t, n, i) {
  4824. return function (r) {
  4825. var o = e.attr(r, t);
  4826. return null == o
  4827. ? '!=' === n
  4828. : !n ||
  4829. ((o += ''),
  4830. '=' === n
  4831. ? o === i
  4832. : '!=' === n
  4833. ? o !== i
  4834. : '^=' === n
  4835. ? i && 0 === o.indexOf(i)
  4836. : '*=' === n
  4837. ? i && o.indexOf(i) > -1
  4838. : '$=' === n
  4839. ? i && o.slice(-i.length) === i
  4840. : '~=' === n
  4841. ? (
  4842. ' ' +
  4843. o.replace(at, ' ') +
  4844. ' '
  4845. ).indexOf(i) > -1
  4846. : '|=' === n &&
  4847. (o === i ||
  4848. o.slice(0, i.length + 1) ===
  4849. i + '-'));
  4850. };
  4851. },
  4852. CHILD: function (t, e, n, i, r) {
  4853. var o = 'nth' !== t.slice(0, 3),
  4854. a = 'last' !== t.slice(-4),
  4855. s = 'of-type' === e;
  4856. return 1 === i && 0 === r
  4857. ? function (t) {
  4858. return !!t.parentNode;
  4859. }
  4860. : function (e, n, u) {
  4861. var l,
  4862. f,
  4863. c,
  4864. h,
  4865. d,
  4866. p,
  4867. y = o !== a ? 'nextSibling' : 'previousSibling',
  4868. m = e.parentNode,
  4869. v = s && e.nodeName.toLowerCase(),
  4870. g = !u && !s,
  4871. S = !1;
  4872. if (m) {
  4873. if (o) {
  4874. for (; y;) {
  4875. for (h = e; (h = h[y]);)
  4876. if (
  4877. s
  4878. ? h.nodeName.toLowerCase() === v
  4879. : 1 === h.nodeType
  4880. )
  4881. return !1;
  4882. p = y = 'only' === t && !p && 'nextSibling';
  4883. }
  4884. return !0;
  4885. }
  4886. if (
  4887. ((p = [a ? m.firstChild : m.lastChild]), a && g)
  4888. ) {
  4889. for (
  4890. h = m,
  4891. c = h[q] || (h[q] = {}),
  4892. f = c[h.uniqueID] || (c[h.uniqueID] = {}),
  4893. l = f[t] || [],
  4894. d = l[0] === j && l[1],
  4895. S = d && l[2],
  4896. h = d && m.childNodes[d];
  4897. (h =
  4898. (++d && h && h[y]) || (S = d = 0) || p.pop());
  4899. )
  4900. if (1 === h.nodeType && ++S && h === e) {
  4901. f[t] = [j, d, S];
  4902. break;
  4903. }
  4904. } else if (
  4905. (g &&
  4906. ((h = e),
  4907. (c = h[q] || (h[q] = {})),
  4908. (f = c[h.uniqueID] || (c[h.uniqueID] = {})),
  4909. (l = f[t] || []),
  4910. (d = l[0] === j && l[1]),
  4911. (S = d)),
  4912. S === !1)
  4913. )
  4914. for (
  4915. ;
  4916. (h =
  4917. (++d && h && h[y]) ||
  4918. (S = d = 0) ||
  4919. p.pop()) &&
  4920. ((s
  4921. ? h.nodeName.toLowerCase() !== v
  4922. : 1 !== h.nodeType) ||
  4923. !++S ||
  4924. (g &&
  4925. ((c = h[q] || (h[q] = {})),
  4926. (f = c[h.uniqueID] || (c[h.uniqueID] = {})),
  4927. (f[t] = [j, S])),
  4928. h !== e));
  4929. ) ;
  4930. return (
  4931. (S -= r), S === i || (S % i === 0 && S / i >= 0)
  4932. );
  4933. }
  4934. };
  4935. },
  4936. PSEUDO: function (t, n) {
  4937. var r,
  4938. o =
  4939. P.pseudos[t] ||
  4940. P.setFilters[t.toLowerCase()] ||
  4941. e.error('unsupported pseudo: ' + t);
  4942. return o[q]
  4943. ? o(n)
  4944. : o.length > 1
  4945. ? ((r = [t, t, '', n]),
  4946. P.setFilters.hasOwnProperty(t.toLowerCase())
  4947. ? i(function (t, e) {
  4948. for (var i, r = o(t, n), a = r.length; a--;)
  4949. (i = tt(t, r[a])), (t[i] = !(e[i] = r[a]));
  4950. })
  4951. : function (t) {
  4952. return o(t, 0, r);
  4953. })
  4954. : o;
  4955. },
  4956. },
  4957. pseudos: {
  4958. not: i(function (t) {
  4959. var e = [],
  4960. n = [],
  4961. r = k(t.replace(st, '$1'));
  4962. return r[q]
  4963. ? i(function (t, e, n, i) {
  4964. for (
  4965. var o, a = r(t, null, i, []), s = t.length;
  4966. s--;
  4967. )
  4968. (o = a[s]) && (t[s] = !(e[s] = o));
  4969. })
  4970. : function (t, i, o) {
  4971. return (
  4972. (e[0] = t),
  4973. r(e, null, o, n),
  4974. (e[0] = null),
  4975. !n.pop()
  4976. );
  4977. };
  4978. }),
  4979. has: i(function (t) {
  4980. return function (n) {
  4981. return e(t, n).length > 0;
  4982. };
  4983. }),
  4984. contains: i(function (t) {
  4985. return (
  4986. (t = t.replace(St, bt)),
  4987. function (e) {
  4988. return (
  4989. (e.textContent || e.innerText || C(e)).indexOf(t) > -1
  4990. );
  4991. }
  4992. );
  4993. }),
  4994. lang: i(function (t) {
  4995. return (
  4996. ht.test(t || '') || e.error('unsupported lang: ' + t),
  4997. (t = t.replace(St, bt).toLowerCase()),
  4998. function (e) {
  4999. var n;
  5000. do
  5001. if (
  5002. (n = F
  5003. ? e.lang
  5004. : e.getAttribute('xml:lang') ||
  5005. e.getAttribute('lang'))
  5006. )
  5007. return (
  5008. (n = n.toLowerCase()),
  5009. n === t || 0 === n.indexOf(t + '-')
  5010. );
  5011. while ((e = e.parentNode) && 1 === e.nodeType);
  5012. return !1;
  5013. }
  5014. );
  5015. }),
  5016. target: function (e) {
  5017. var n = t.location && t.location.hash;
  5018. return n && n.slice(1) === e.id;
  5019. },
  5020. root: function (t) {
  5021. return t === A;
  5022. },
  5023. focus: function (t) {
  5024. return (
  5025. t === I.activeElement &&
  5026. (!I.hasFocus || I.hasFocus()) &&
  5027. !!(t.type || t.href || ~t.tabIndex)
  5028. );
  5029. },
  5030. enabled: l(!1),
  5031. disabled: l(!0),
  5032. checked: function (t) {
  5033. var e = t.nodeName.toLowerCase();
  5034. return (
  5035. ('input' === e && !!t.checked) ||
  5036. ('option' === e && !!t.selected)
  5037. );
  5038. },
  5039. selected: function (t) {
  5040. return (
  5041. t.parentNode && t.parentNode.selectedIndex,
  5042. t.selected === !0
  5043. );
  5044. },
  5045. empty: function (t) {
  5046. for (t = t.firstChild; t; t = t.nextSibling)
  5047. if (t.nodeType < 6) return !1;
  5048. return !0;
  5049. },
  5050. parent: function (t) {
  5051. return !P.pseudos.empty(t);
  5052. },
  5053. header: function (t) {
  5054. return yt.test(t.nodeName);
  5055. },
  5056. input: function (t) {
  5057. return pt.test(t.nodeName);
  5058. },
  5059. button: function (t) {
  5060. var e = t.nodeName.toLowerCase();
  5061. return (
  5062. ('input' === e && 'button' === t.type) || 'button' === e
  5063. );
  5064. },
  5065. text: function (t) {
  5066. var e;
  5067. return (
  5068. 'input' === t.nodeName.toLowerCase() &&
  5069. 'text' === t.type &&
  5070. (null == (e = t.getAttribute('type')) ||
  5071. 'text' === e.toLowerCase())
  5072. );
  5073. },
  5074. first: f(function () {
  5075. return [0];
  5076. }),
  5077. last: f(function (t, e) {
  5078. return [e - 1];
  5079. }),
  5080. eq: f(function (t, e, n) {
  5081. return [n < 0 ? n + e : n];
  5082. }),
  5083. even: f(function (t, e) {
  5084. for (var n = 0; n < e; n += 2) t.push(n);
  5085. return t;
  5086. }),
  5087. odd: f(function (t, e) {
  5088. for (var n = 1; n < e; n += 2) t.push(n);
  5089. return t;
  5090. }),
  5091. lt: f(function (t, e, n) {
  5092. for (var i = n < 0 ? n + e : n; --i >= 0;) t.push(i);
  5093. return t;
  5094. }),
  5095. gt: f(function (t, e, n) {
  5096. for (var i = n < 0 ? n + e : n; ++i < e;) t.push(i);
  5097. return t;
  5098. }),
  5099. },
  5100. }),
  5101. (P.pseudos.nth = P.pseudos.eq);
  5102. for (w in {
  5103. radio: !0,
  5104. checkbox: !0,
  5105. file: !0,
  5106. password: !0,
  5107. image: !0,
  5108. })
  5109. P.pseudos[w] = s(w);
  5110. for (w in {submit: !0, reset: !0}) P.pseudos[w] = u(w);
  5111. return (
  5112. (h.prototype = P.filters = P.pseudos),
  5113. (P.setFilters = new h()),
  5114. (T = e.tokenize = function (t, n) {
  5115. var i,
  5116. r,
  5117. o,
  5118. a,
  5119. s,
  5120. u,
  5121. l,
  5122. f = G[t + ' '];
  5123. if (f) return n ? 0 : f.slice(0);
  5124. for (s = t, u = [], l = P.preFilter; s;) {
  5125. (i && !(r = ut.exec(s))) ||
  5126. (r && (s = s.slice(r[0].length) || s), u.push((o = []))),
  5127. (i = !1),
  5128. (r = lt.exec(s)) &&
  5129. ((i = r.shift()),
  5130. o.push({value: i, type: r[0].replace(st, ' ')}),
  5131. (s = s.slice(i.length)));
  5132. for (a in P.filter)
  5133. !(r = dt[a].exec(s)) ||
  5134. (l[a] && !(r = l[a](r))) ||
  5135. ((i = r.shift()),
  5136. o.push({value: i, type: a, matches: r}),
  5137. (s = s.slice(i.length)));
  5138. if (!i) break;
  5139. }
  5140. return n ? s.length : s ? e.error(t) : G(t, u).slice(0);
  5141. }),
  5142. (k = e.compile = function (t, e) {
  5143. var n,
  5144. i = [],
  5145. r = [],
  5146. o = V[t + ' '];
  5147. if (!o) {
  5148. for (e || (e = T(t)), n = e.length; n--;)
  5149. (o = S(e[n])), o[q] ? i.push(o) : r.push(o);
  5150. (o = V(t, b(r, i))), (o.selector = t);
  5151. }
  5152. return o;
  5153. }),
  5154. (D = e.select = function (t, e, n, i) {
  5155. var r,
  5156. o,
  5157. a,
  5158. s,
  5159. u,
  5160. l = 'function' == typeof t && t,
  5161. f = !i && T((t = l.selector || t));
  5162. if (((n = n || []), 1 === f.length)) {
  5163. if (
  5164. ((o = f[0] = f[0].slice(0)),
  5165. o.length > 2 &&
  5166. 'ID' === (a = o[0]).type &&
  5167. 9 === e.nodeType &&
  5168. F &&
  5169. P.relative[o[1].type])
  5170. ) {
  5171. if (
  5172. ((e = (P.find.ID(a.matches[0].replace(St, bt), e) ||
  5173. [])[0]),
  5174. !e)
  5175. )
  5176. return n;
  5177. l && (e = e.parentNode),
  5178. (t = t.slice(o.shift().value.length));
  5179. }
  5180. for (
  5181. r = dt.needsContext.test(t) ? 0 : o.length;
  5182. r-- && ((a = o[r]), !P.relative[(s = a.type)]);
  5183. )
  5184. if (
  5185. (u = P.find[s]) &&
  5186. (i = u(
  5187. a.matches[0].replace(St, bt),
  5188. (gt.test(o[0].type) && c(e.parentNode)) || e
  5189. ))
  5190. ) {
  5191. if ((o.splice(r, 1), (t = i.length && d(o)), !t))
  5192. return Z.apply(n, i), n;
  5193. break;
  5194. }
  5195. }
  5196. return (
  5197. (l || k(t, f))(
  5198. i,
  5199. e,
  5200. !F,
  5201. n,
  5202. !e || (gt.test(t) && c(e.parentNode)) || e
  5203. ),
  5204. n
  5205. );
  5206. }),
  5207. (_.sortStable =
  5208. q
  5209. .split('')
  5210. .sort(Y)
  5211. .join('') === q),
  5212. (_.detectDuplicates = !!E),
  5213. z(),
  5214. (_.sortDetached = r(function (t) {
  5215. return (
  5216. 1 & t.compareDocumentPosition(I.createElement('fieldset'))
  5217. );
  5218. })),
  5219. r(function (t) {
  5220. return (
  5221. (t.innerHTML = "<a href='#'></a>"),
  5222. '#' === t.firstChild.getAttribute('href')
  5223. );
  5224. }) ||
  5225. o('type|href|height|width', function (t, e, n) {
  5226. if (!n)
  5227. return t.getAttribute(
  5228. e,
  5229. 'type' === e.toLowerCase() ? 1 : 2
  5230. );
  5231. }),
  5232. (_.attributes &&
  5233. r(function (t) {
  5234. return (
  5235. (t.innerHTML = '<input/>'),
  5236. t.firstChild.setAttribute('value', ''),
  5237. '' === t.firstChild.getAttribute('value')
  5238. );
  5239. })) ||
  5240. o('value', function (t, e, n) {
  5241. if (!n && 'input' === t.nodeName.toLowerCase())
  5242. return t.defaultValue;
  5243. }),
  5244. r(function (t) {
  5245. return null == t.getAttribute('disabled');
  5246. }) ||
  5247. o(et, function (t, e, n) {
  5248. var i;
  5249. if (!n)
  5250. return t[e] === !0
  5251. ? e.toLowerCase()
  5252. : (i = t.getAttributeNode(e)) && i.specified
  5253. ? i.value
  5254. : null;
  5255. }),
  5256. e
  5257. );
  5258. })(o);
  5259. (bt.find = xt),
  5260. (bt.expr = xt.selectors),
  5261. (bt.expr[':'] = bt.expr.pseudos),
  5262. (bt.uniqueSort = bt.unique = xt.uniqueSort),
  5263. (bt.text = xt.getText),
  5264. (bt.isXMLDoc = xt.isXML),
  5265. (bt.contains = xt.contains),
  5266. (bt.escapeSelector = xt.escape);
  5267. var Tt = function (t, e, n) {
  5268. for (
  5269. var i = [], r = void 0 !== n;
  5270. (t = t[e]) && 9 !== t.nodeType;
  5271. )
  5272. if (1 === t.nodeType) {
  5273. if (r && bt(t).is(n)) break;
  5274. i.push(t);
  5275. }
  5276. return i;
  5277. },
  5278. kt = function (t, e) {
  5279. for (var n = []; t; t = t.nextSibling)
  5280. 1 === t.nodeType && t !== e && n.push(t);
  5281. return n;
  5282. },
  5283. Dt = bt.expr.match.needsContext,
  5284. Mt = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,
  5285. Rt = /^.[^:#\[\.,]*$/;
  5286. (bt.filter = function (t, e, n) {
  5287. var i = e[0];
  5288. return (
  5289. n && (t = ':not(' + t + ')'),
  5290. 1 === e.length && 1 === i.nodeType
  5291. ? bt.find.matchesSelector(i, t)
  5292. ? [i]
  5293. : []
  5294. : bt.find.matches(
  5295. t,
  5296. bt.grep(e, function (t) {
  5297. return 1 === t.nodeType;
  5298. })
  5299. )
  5300. );
  5301. }),
  5302. bt.fn.extend({
  5303. find: function (t) {
  5304. var e,
  5305. n,
  5306. i = this.length,
  5307. r = this;
  5308. if ('string' != typeof t)
  5309. return this.pushStack(
  5310. bt(t).filter(function () {
  5311. for (e = 0; e < i; e++)
  5312. if (bt.contains(r[e], this)) return !0;
  5313. })
  5314. );
  5315. for (n = this.pushStack([]), e = 0; e < i; e++)
  5316. bt.find(t, r[e], n);
  5317. return i > 1 ? bt.uniqueSort(n) : n;
  5318. },
  5319. filter: function (t) {
  5320. return this.pushStack(f(this, t || [], !1));
  5321. },
  5322. not: function (t) {
  5323. return this.pushStack(f(this, t || [], !0));
  5324. },
  5325. is: function (t) {
  5326. return !!f(
  5327. this,
  5328. 'string' == typeof t && Dt.test(t) ? bt(t) : t || [],
  5329. !1
  5330. ).length;
  5331. },
  5332. });
  5333. var Et,
  5334. zt = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,
  5335. It = (bt.fn.init = function (t, e, n) {
  5336. var i, r;
  5337. if (!t) return this;
  5338. if (((n = n || Et), 'string' == typeof t)) {
  5339. if (
  5340. ((i =
  5341. '<' === t[0] && '>' === t[t.length - 1] && t.length >= 3
  5342. ? [null, t, null]
  5343. : zt.exec(t)),
  5344. !i || (!i[1] && e))
  5345. )
  5346. return !e || e.jquery
  5347. ? (e || n).find(t)
  5348. : this.constructor(e).find(t);
  5349. if (i[1]) {
  5350. if (
  5351. ((e = e instanceof bt ? e[0] : e),
  5352. bt.merge(
  5353. this,
  5354. bt.parseHTML(
  5355. i[1],
  5356. e && e.nodeType ? e.ownerDocument || e : st,
  5357. !0
  5358. )
  5359. ),
  5360. Mt.test(i[1]) && bt.isPlainObject(e))
  5361. )
  5362. for (i in e)
  5363. bt.isFunction(this[i])
  5364. ? this[i](e[i])
  5365. : this.attr(i, e[i]);
  5366. return this;
  5367. }
  5368. return (
  5369. (r = st.getElementById(i[2])),
  5370. r && ((this[0] = r), (this.length = 1)),
  5371. this
  5372. );
  5373. }
  5374. return t.nodeType
  5375. ? ((this[0] = t), (this.length = 1), this)
  5376. : bt.isFunction(t)
  5377. ? void 0 !== n.ready
  5378. ? n.ready(t)
  5379. : t(bt)
  5380. : bt.makeArray(t, this);
  5381. });
  5382. (It.prototype = bt.fn), (Et = bt(st));
  5383. var At = /^(?:parents|prev(?:Until|All))/,
  5384. Ft = {children: !0, contents: !0, next: !0, prev: !0};
  5385. bt.fn.extend({
  5386. has: function (t) {
  5387. var e = bt(t, this),
  5388. n = e.length;
  5389. return this.filter(function () {
  5390. for (var t = 0; t < n; t++)
  5391. if (bt.contains(this, e[t])) return !0;
  5392. });
  5393. },
  5394. closest: function (t, e) {
  5395. var n,
  5396. i = 0,
  5397. r = this.length,
  5398. o = [],
  5399. a = 'string' != typeof t && bt(t);
  5400. if (!Dt.test(t))
  5401. for (; i < r; i++)
  5402. for (n = this[i]; n && n !== e; n = n.parentNode)
  5403. if (
  5404. n.nodeType < 11 &&
  5405. (a
  5406. ? a.index(n) > -1
  5407. : 1 === n.nodeType && bt.find.matchesSelector(n, t))
  5408. ) {
  5409. o.push(n);
  5410. break;
  5411. }
  5412. return this.pushStack(o.length > 1 ? bt.uniqueSort(o) : o);
  5413. },
  5414. index: function (t) {
  5415. return t
  5416. ? 'string' == typeof t
  5417. ? ht.call(bt(t), this[0])
  5418. : ht.call(this, t.jquery ? t[0] : t)
  5419. : this[0] && this[0].parentNode
  5420. ? this.first().prevAll().length
  5421. : -1;
  5422. },
  5423. add: function (t, e) {
  5424. return this.pushStack(
  5425. bt.uniqueSort(bt.merge(this.get(), bt(t, e)))
  5426. );
  5427. },
  5428. addBack: function (t) {
  5429. return this.add(
  5430. null == t ? this.prevObject : this.prevObject.filter(t)
  5431. );
  5432. },
  5433. }),
  5434. bt.each(
  5435. {
  5436. parent: function t(e) {
  5437. var t = e.parentNode;
  5438. return t && 11 !== t.nodeType ? t : null;
  5439. },
  5440. parents: function (t) {
  5441. return Tt(t, 'parentNode');
  5442. },
  5443. parentsUntil: function (t, e, n) {
  5444. return Tt(t, 'parentNode', n);
  5445. },
  5446. next: function (t) {
  5447. return c(t, 'nextSibling');
  5448. },
  5449. prev: function (t) {
  5450. return c(t, 'previousSibling');
  5451. },
  5452. nextAll: function (t) {
  5453. return Tt(t, 'nextSibling');
  5454. },
  5455. prevAll: function (t) {
  5456. return Tt(t, 'previousSibling');
  5457. },
  5458. nextUntil: function (t, e, n) {
  5459. return Tt(t, 'nextSibling', n);
  5460. },
  5461. prevUntil: function (t, e, n) {
  5462. return Tt(t, 'previousSibling', n);
  5463. },
  5464. siblings: function (t) {
  5465. return kt((t.parentNode || {}).firstChild, t);
  5466. },
  5467. children: function (t) {
  5468. return kt(t.firstChild);
  5469. },
  5470. contents: function (t) {
  5471. return l(t, 'iframe')
  5472. ? t.contentDocument
  5473. : (l(t, 'template') && (t = t.content || t),
  5474. bt.merge([], t.childNodes));
  5475. },
  5476. },
  5477. function (t, e) {
  5478. bt.fn[t] = function (n, i) {
  5479. var r = bt.map(this, e, n);
  5480. return (
  5481. 'Until' !== t.slice(-5) && (i = n),
  5482. i && 'string' == typeof i && (r = bt.filter(i, r)),
  5483. this.length > 1 &&
  5484. (Ft[t] || bt.uniqueSort(r), At.test(t) && r.reverse()),
  5485. this.pushStack(r)
  5486. );
  5487. };
  5488. }
  5489. );
  5490. var Ot = /[^\x20\t\r\n\f]+/g;
  5491. (bt.Callbacks = function (t) {
  5492. t = 'string' == typeof t ? h(t) : bt.extend({}, t);
  5493. var e,
  5494. n,
  5495. i,
  5496. r,
  5497. o = [],
  5498. a = [],
  5499. s = -1,
  5500. u = function () {
  5501. for (r = r || t.once, i = e = !0; a.length; s = -1)
  5502. for (n = a.shift(); ++s < o.length;)
  5503. o[s].apply(n[0], n[1]) === !1 &&
  5504. t.stopOnFalse &&
  5505. ((s = o.length), (n = !1));
  5506. t.memory || (n = !1), (e = !1), r && (o = n ? [] : '');
  5507. },
  5508. l = {
  5509. add: function () {
  5510. return (
  5511. o &&
  5512. (n && !e && ((s = o.length - 1), a.push(n)),
  5513. (function e(n) {
  5514. bt.each(n, function (n, i) {
  5515. bt.isFunction(i)
  5516. ? (t.unique && l.has(i)) || o.push(i)
  5517. : i && i.length && 'string' !== bt.type(i) && e(i);
  5518. });
  5519. })(arguments),
  5520. n && !e && u()),
  5521. this
  5522. );
  5523. },
  5524. remove: function () {
  5525. return (
  5526. bt.each(arguments, function (t, e) {
  5527. for (var n; (n = bt.inArray(e, o, n)) > -1;)
  5528. o.splice(n, 1), n <= s && s--;
  5529. }),
  5530. this
  5531. );
  5532. },
  5533. has: function (t) {
  5534. return t ? bt.inArray(t, o) > -1 : o.length > 0;
  5535. },
  5536. empty: function () {
  5537. return o && (o = []), this;
  5538. },
  5539. disable: function () {
  5540. return (r = a = []), (o = n = ''), this;
  5541. },
  5542. disabled: function () {
  5543. return !o;
  5544. },
  5545. lock: function () {
  5546. return (r = a = []), n || e || (o = n = ''), this;
  5547. },
  5548. locked: function () {
  5549. return !!r;
  5550. },
  5551. fireWith: function (t, n) {
  5552. return (
  5553. r ||
  5554. ((n = n || []),
  5555. (n = [t, n.slice ? n.slice() : n]),
  5556. a.push(n),
  5557. e || u()),
  5558. this
  5559. );
  5560. },
  5561. fire: function () {
  5562. return l.fireWith(this, arguments), this;
  5563. },
  5564. fired: function () {
  5565. return !!i;
  5566. },
  5567. };
  5568. return l;
  5569. }),
  5570. bt.extend({
  5571. Deferred: function (t) {
  5572. var e = [
  5573. [
  5574. 'notify',
  5575. 'progress',
  5576. bt.Callbacks('memory'),
  5577. bt.Callbacks('memory'),
  5578. 2,
  5579. ],
  5580. [
  5581. 'resolve',
  5582. 'done',
  5583. bt.Callbacks('once memory'),
  5584. bt.Callbacks('once memory'),
  5585. 0,
  5586. 'resolved',
  5587. ],
  5588. [
  5589. 'reject',
  5590. 'fail',
  5591. bt.Callbacks('once memory'),
  5592. bt.Callbacks('once memory'),
  5593. 1,
  5594. 'rejected',
  5595. ],
  5596. ],
  5597. i = 'pending',
  5598. r = {
  5599. state: function () {
  5600. return i;
  5601. },
  5602. always: function () {
  5603. return a.done(arguments).fail(arguments), this;
  5604. },
  5605. catch: function (t) {
  5606. return r.then(null, t);
  5607. },
  5608. pipe: function () {
  5609. var t = arguments;
  5610. return bt
  5611. .Deferred(function (n) {
  5612. bt.each(e, function (e, i) {
  5613. var r = bt.isFunction(t[i[4]]) && t[i[4]];
  5614. a[i[1]](function () {
  5615. var t = r && r.apply(this, arguments);
  5616. t && bt.isFunction(t.promise)
  5617. ? t
  5618. .promise()
  5619. .progress(n.notify)
  5620. .done(n.resolve)
  5621. .fail(n.reject)
  5622. : n[i[0] + 'With'](this, r ? [t] : arguments);
  5623. });
  5624. }),
  5625. (t = null);
  5626. })
  5627. .promise();
  5628. },
  5629. then: function (t, i, r) {
  5630. function a(t, e, i, r) {
  5631. return function () {
  5632. var u = this,
  5633. l = arguments,
  5634. f = function () {
  5635. var o, f;
  5636. if (!(t < s)) {
  5637. if (((o = i.apply(u, l)), o === e.promise()))
  5638. throw new TypeError(
  5639. 'Thenable self-resolution'
  5640. );
  5641. (f =
  5642. o &&
  5643. ('object' ===
  5644. ('undefined' == typeof o
  5645. ? 'undefined'
  5646. : n(o)) ||
  5647. 'function' == typeof o) &&
  5648. o.then),
  5649. bt.isFunction(f)
  5650. ? r
  5651. ? f.call(o, a(s, e, d, r), a(s, e, p, r))
  5652. : (s++,
  5653. f.call(
  5654. o,
  5655. a(s, e, d, r),
  5656. a(s, e, p, r),
  5657. a(s, e, d, e.notifyWith)
  5658. ))
  5659. : (i !== d && ((u = void 0), (l = [o])),
  5660. (r || e.resolveWith)(u, l));
  5661. }
  5662. },
  5663. c = r
  5664. ? f
  5665. : function () {
  5666. try {
  5667. f();
  5668. } catch (n) {
  5669. bt.Deferred.exceptionHook &&
  5670. bt.Deferred.exceptionHook(
  5671. n,
  5672. c.stackTrace
  5673. ),
  5674. t + 1 >= s &&
  5675. (i !== p && ((u = void 0), (l = [n])),
  5676. e.rejectWith(u, l));
  5677. }
  5678. };
  5679. t
  5680. ? c()
  5681. : (bt.Deferred.getStackHook &&
  5682. (c.stackTrace = bt.Deferred.getStackHook()),
  5683. o.setTimeout(c));
  5684. };
  5685. }
  5686. var s = 0;
  5687. return bt
  5688. .Deferred(function (n) {
  5689. e[0][3].add(
  5690. a(0, n, bt.isFunction(r) ? r : d, n.notifyWith)
  5691. ),
  5692. e[1][3].add(a(0, n, bt.isFunction(t) ? t : d)),
  5693. e[2][3].add(a(0, n, bt.isFunction(i) ? i : p));
  5694. })
  5695. .promise();
  5696. },
  5697. promise: function (t) {
  5698. return null != t ? bt.extend(t, r) : r;
  5699. },
  5700. },
  5701. a = {};
  5702. return (
  5703. bt.each(e, function (t, n) {
  5704. var o = n[2],
  5705. s = n[5];
  5706. (r[n[1]] = o.add),
  5707. s &&
  5708. o.add(
  5709. function () {
  5710. i = s;
  5711. },
  5712. e[3 - t][2].disable,
  5713. e[0][2].lock
  5714. ),
  5715. o.add(n[3].fire),
  5716. (a[n[0]] = function () {
  5717. return (
  5718. a[n[0] + 'With'](
  5719. this === a ? void 0 : this,
  5720. arguments
  5721. ),
  5722. this
  5723. );
  5724. }),
  5725. (a[n[0] + 'With'] = o.fireWith);
  5726. }),
  5727. r.promise(a),
  5728. t && t.call(a, a),
  5729. a
  5730. );
  5731. },
  5732. when: function (t) {
  5733. var e = arguments.length,
  5734. n = e,
  5735. i = Array(n),
  5736. r = lt.call(arguments),
  5737. o = bt.Deferred(),
  5738. a = function (t) {
  5739. return function (n) {
  5740. (i[t] = this),
  5741. (r[t] = arguments.length > 1 ? lt.call(arguments) : n),
  5742. --e || o.resolveWith(i, r);
  5743. };
  5744. };
  5745. if (
  5746. e <= 1 &&
  5747. (y(t, o.done(a(n)).resolve, o.reject, !e),
  5748. 'pending' === o.state() || bt.isFunction(r[n] && r[n].then))
  5749. )
  5750. return o.then();
  5751. for (; n--;) y(r[n], a(n), o.reject);
  5752. return o.promise();
  5753. },
  5754. });
  5755. var Bt = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
  5756. (bt.Deferred.exceptionHook = function (t, e) {
  5757. o.console &&
  5758. o.console.warn &&
  5759. t &&
  5760. Bt.test(t.name) &&
  5761. o.console.warn(
  5762. 'jQuery.Deferred exception: ' + t.message,
  5763. t.stack,
  5764. e
  5765. );
  5766. }),
  5767. (bt.readyException = function (t) {
  5768. o.setTimeout(function () {
  5769. throw t;
  5770. });
  5771. });
  5772. var Lt = bt.Deferred();
  5773. (bt.fn.ready = function (t) {
  5774. return (
  5775. Lt.then(t).catch(function (t) {
  5776. bt.readyException(t);
  5777. }),
  5778. this
  5779. );
  5780. }),
  5781. bt.extend({
  5782. isReady: !1,
  5783. readyWait: 1,
  5784. ready: function (t) {
  5785. (t === !0 ? --bt.readyWait : bt.isReady) ||
  5786. ((bt.isReady = !0),
  5787. (t !== !0 && --bt.readyWait > 0) || Lt.resolveWith(st, [bt]));
  5788. },
  5789. }),
  5790. (bt.ready.then = Lt.then),
  5791. 'complete' === st.readyState ||
  5792. ('loading' !== st.readyState && !st.documentElement.doScroll)
  5793. ? o.setTimeout(bt.ready)
  5794. : (st.addEventListener('DOMContentLoaded', m),
  5795. o.addEventListener('load', m));
  5796. var Nt = function t(e, n, i, r, o, a, s) {
  5797. var u = 0,
  5798. l = e.length,
  5799. f = null == i;
  5800. if ('object' === bt.type(i)) {
  5801. o = !0;
  5802. for (u in i) t(e, n, u, i[u], !0, a, s);
  5803. } else if (
  5804. void 0 !== r &&
  5805. ((o = !0),
  5806. bt.isFunction(r) || (s = !0),
  5807. f &&
  5808. (s
  5809. ? (n.call(e, r), (n = null))
  5810. : ((f = n),
  5811. (n = function (t, e, n) {
  5812. return f.call(bt(t), n);
  5813. }))),
  5814. n)
  5815. )
  5816. for (; u < l; u++)
  5817. n(e[u], i, s ? r : r.call(e[u], u, n(e[u], i)));
  5818. return o ? e : f ? n.call(e) : l ? n(e[0], i) : a;
  5819. },
  5820. qt = function (t) {
  5821. return 1 === t.nodeType || 9 === t.nodeType || !+t.nodeType;
  5822. };
  5823. (v.uid = 1),
  5824. (v.prototype = {
  5825. cache: function (t) {
  5826. var e = t[this.expando];
  5827. return (
  5828. e ||
  5829. ((e = {}),
  5830. qt(t) &&
  5831. (t.nodeType
  5832. ? (t[this.expando] = e)
  5833. : Object.defineProperty(t, this.expando, {
  5834. value: e,
  5835. configurable: !0,
  5836. }))),
  5837. e
  5838. );
  5839. },
  5840. set: function (t, e, n) {
  5841. var i,
  5842. r = this.cache(t);
  5843. if ('string' == typeof e) r[bt.camelCase(e)] = n;
  5844. else for (i in e) r[bt.camelCase(i)] = e[i];
  5845. return r;
  5846. },
  5847. get: function (t, e) {
  5848. return void 0 === e
  5849. ? this.cache(t)
  5850. : t[this.expando] && t[this.expando][bt.camelCase(e)];
  5851. },
  5852. access: function (t, e, n) {
  5853. return void 0 === e ||
  5854. (e && 'string' == typeof e && void 0 === n)
  5855. ? this.get(t, e)
  5856. : (this.set(t, e, n), void 0 !== n ? n : e);
  5857. },
  5858. remove: function (t, e) {
  5859. var n,
  5860. i = t[this.expando];
  5861. if (void 0 !== i) {
  5862. if (void 0 !== e) {
  5863. Array.isArray(e)
  5864. ? (e = e.map(bt.camelCase))
  5865. : ((e = bt.camelCase(e)),
  5866. (e = e in i ? [e] : e.match(Ot) || [])),
  5867. (n = e.length);
  5868. for (; n--;) delete i[e[n]];
  5869. }
  5870. (void 0 === e || bt.isEmptyObject(i)) &&
  5871. (t.nodeType
  5872. ? (t[this.expando] = void 0)
  5873. : delete t[this.expando]);
  5874. }
  5875. },
  5876. hasData: function (t) {
  5877. var e = t[this.expando];
  5878. return void 0 !== e && !bt.isEmptyObject(e);
  5879. },
  5880. });
  5881. var Ht = new v(),
  5882. jt = new v(),
  5883. Wt = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
  5884. Ut = /[A-Z]/g;
  5885. bt.extend({
  5886. hasData: function (t) {
  5887. return jt.hasData(t) || Ht.hasData(t);
  5888. },
  5889. data: function (t, e, n) {
  5890. return jt.access(t, e, n);
  5891. },
  5892. removeData: function (t, e) {
  5893. jt.remove(t, e);
  5894. },
  5895. _data: function (t, e, n) {
  5896. return Ht.access(t, e, n);
  5897. },
  5898. _removeData: function (t, e) {
  5899. Ht.remove(t, e);
  5900. },
  5901. }),
  5902. bt.fn.extend({
  5903. data: function t(e, i) {
  5904. var r,
  5905. o,
  5906. t,
  5907. a = this[0],
  5908. s = a && a.attributes;
  5909. if (void 0 === e) {
  5910. if (
  5911. this.length &&
  5912. ((t = jt.get(a)),
  5913. 1 === a.nodeType && !Ht.get(a, 'hasDataAttrs'))
  5914. ) {
  5915. for (r = s.length; r--;)
  5916. s[r] &&
  5917. ((o = s[r].name),
  5918. 0 === o.indexOf('data-') &&
  5919. ((o = bt.camelCase(o.slice(5))), S(a, o, t[o])));
  5920. Ht.set(a, 'hasDataAttrs', !0);
  5921. }
  5922. return t;
  5923. }
  5924. return 'object' ===
  5925. ('undefined' == typeof e ? 'undefined' : n(e))
  5926. ? this.each(function () {
  5927. jt.set(this, e);
  5928. })
  5929. : Nt(
  5930. this,
  5931. function (t) {
  5932. var n;
  5933. if (a && void 0 === t) {
  5934. if (((n = jt.get(a, e)), void 0 !== n)) return n;
  5935. if (((n = S(a, e)), void 0 !== n)) return n;
  5936. } else
  5937. this.each(function () {
  5938. jt.set(this, e, t);
  5939. });
  5940. },
  5941. null,
  5942. i,
  5943. arguments.length > 1,
  5944. null,
  5945. !0
  5946. );
  5947. },
  5948. removeData: function (t) {
  5949. return this.each(function () {
  5950. jt.remove(this, t);
  5951. });
  5952. },
  5953. }),
  5954. bt.extend({
  5955. queue: function t(e, n, i) {
  5956. var t;
  5957. if (e)
  5958. return (
  5959. (n = (n || 'fx') + 'queue'),
  5960. (t = Ht.get(e, n)),
  5961. i &&
  5962. (!t || Array.isArray(i)
  5963. ? (t = Ht.access(e, n, bt.makeArray(i)))
  5964. : t.push(i)),
  5965. t || []
  5966. );
  5967. },
  5968. dequeue: function (t, e) {
  5969. e = e || 'fx';
  5970. var n = bt.queue(t, e),
  5971. i = n.length,
  5972. r = n.shift(),
  5973. o = bt._queueHooks(t, e),
  5974. a = function () {
  5975. bt.dequeue(t, e);
  5976. };
  5977. 'inprogress' === r && ((r = n.shift()), i--),
  5978. r &&
  5979. ('fx' === e && n.unshift('inprogress'),
  5980. delete o.stop,
  5981. r.call(t, a, o)),
  5982. !i && o && o.empty.fire();
  5983. },
  5984. _queueHooks: function (t, e) {
  5985. var n = e + 'queueHooks';
  5986. return (
  5987. Ht.get(t, n) ||
  5988. Ht.access(t, n, {
  5989. empty: bt.Callbacks('once memory').add(function () {
  5990. Ht.remove(t, [e + 'queue', n]);
  5991. }),
  5992. })
  5993. );
  5994. },
  5995. }),
  5996. bt.fn.extend({
  5997. queue: function (t, e) {
  5998. var n = 2;
  5999. return (
  6000. 'string' != typeof t && ((e = t), (t = 'fx'), n--),
  6001. arguments.length < n
  6002. ? bt.queue(this[0], t)
  6003. : void 0 === e
  6004. ? this
  6005. : this.each(function () {
  6006. var n = bt.queue(this, t, e);
  6007. bt._queueHooks(this, t),
  6008. 'fx' === t &&
  6009. 'inprogress' !== n[0] &&
  6010. bt.dequeue(this, t);
  6011. })
  6012. );
  6013. },
  6014. dequeue: function (t) {
  6015. return this.each(function () {
  6016. bt.dequeue(this, t);
  6017. });
  6018. },
  6019. clearQueue: function (t) {
  6020. return this.queue(t || 'fx', []);
  6021. },
  6022. promise: function (t, e) {
  6023. var n,
  6024. i = 1,
  6025. r = bt.Deferred(),
  6026. o = this,
  6027. a = this.length,
  6028. s = function () {
  6029. --i || r.resolveWith(o, [o]);
  6030. };
  6031. for (
  6032. 'string' != typeof t && ((e = t), (t = void 0)),
  6033. t = t || 'fx';
  6034. a--;
  6035. )
  6036. (n = Ht.get(o[a], t + 'queueHooks')),
  6037. n && n.empty && (i++, n.empty.add(s));
  6038. return s(), r.promise(e);
  6039. },
  6040. });
  6041. var Gt = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,
  6042. Vt = new RegExp('^(?:([+-])=|)(' + Gt + ')([a-z%]*)$', 'i'),
  6043. Yt = ['Top', 'Right', 'Bottom', 'Left'],
  6044. Xt = function (t, e) {
  6045. return (
  6046. (t = e || t),
  6047. 'none' === t.style.display ||
  6048. ('' === t.style.display &&
  6049. bt.contains(t.ownerDocument, t) &&
  6050. 'none' === bt.css(t, 'display'))
  6051. );
  6052. },
  6053. Jt = function (t, e, n, i) {
  6054. var r,
  6055. o,
  6056. a = {};
  6057. for (o in e) (a[o] = t.style[o]), (t.style[o] = e[o]);
  6058. r = n.apply(t, i || []);
  6059. for (o in e) t.style[o] = a[o];
  6060. return r;
  6061. },
  6062. $t = {};
  6063. bt.fn.extend({
  6064. show: function () {
  6065. return _(this, !0);
  6066. },
  6067. hide: function () {
  6068. return _(this);
  6069. },
  6070. toggle: function (t) {
  6071. return 'boolean' == typeof t
  6072. ? t
  6073. ? this.show()
  6074. : this.hide()
  6075. : this.each(function () {
  6076. Xt(this) ? bt(this).show() : bt(this).hide();
  6077. });
  6078. },
  6079. });
  6080. var Kt = /^(?:checkbox|radio)$/i,
  6081. Zt = /<([a-z][^\/\0>\x20\t\r\n\f]+)/i,
  6082. Qt = /^$|\/(?:java|ecma)script/i,
  6083. te = {
  6084. option: [1, "<select multiple='multiple'>", '</select>'],
  6085. thead: [1, '<table>', '</table>'],
  6086. col: [2, '<table><colgroup>', '</colgroup></table>'],
  6087. tr: [2, '<table><tbody>', '</tbody></table>'],
  6088. td: [3, '<table><tbody><tr>', '</tr></tbody></table>'],
  6089. _default: [0, '', ''],
  6090. };
  6091. (te.optgroup = te.option),
  6092. (te.tbody = te.tfoot = te.colgroup = te.caption = te.thead),
  6093. (te.th = te.td);
  6094. var ee = /<|&#?\w+;/;
  6095. !(function () {
  6096. var t = st.createDocumentFragment(),
  6097. e = t.appendChild(st.createElement('div')),
  6098. n = st.createElement('input');
  6099. n.setAttribute('type', 'radio'),
  6100. n.setAttribute('checked', 'checked'),
  6101. n.setAttribute('name', 't'),
  6102. e.appendChild(n),
  6103. (gt.checkClone = e.cloneNode(!0).cloneNode(!0).lastChild.checked),
  6104. (e.innerHTML = '<textarea>x</textarea>'),
  6105. (gt.noCloneChecked = !!e.cloneNode(!0).lastChild.defaultValue);
  6106. })();
  6107. var ne = st.documentElement,
  6108. ie = /^key/,
  6109. re = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
  6110. oe = /^([^.]*)(?:\.(.+)|)/;
  6111. (bt.event = {
  6112. global: {},
  6113. add: function (t, e, n, i, r) {
  6114. var o,
  6115. a,
  6116. s,
  6117. u,
  6118. l,
  6119. f,
  6120. c,
  6121. h,
  6122. d,
  6123. p,
  6124. y,
  6125. m = Ht.get(t);
  6126. if (m)
  6127. for (
  6128. n.handler && ((o = n), (n = o.handler), (r = o.selector)),
  6129. r && bt.find.matchesSelector(ne, r),
  6130. n.guid || (n.guid = bt.guid++),
  6131. (u = m.events) || (u = m.events = {}),
  6132. (a = m.handle) ||
  6133. (a = m.handle = function (e) {
  6134. return 'undefined' != typeof bt &&
  6135. bt.event.triggered !== e.type
  6136. ? bt.event.dispatch.apply(t, arguments)
  6137. : void 0;
  6138. }),
  6139. e = (e || '').match(Ot) || [''],
  6140. l = e.length;
  6141. l--;
  6142. )
  6143. (s = oe.exec(e[l]) || []),
  6144. (d = y = s[1]),
  6145. (p = (s[2] || '').split('.').sort()),
  6146. d &&
  6147. ((c = bt.event.special[d] || {}),
  6148. (d = (r ? c.delegateType : c.bindType) || d),
  6149. (c = bt.event.special[d] || {}),
  6150. (f = bt.extend(
  6151. {
  6152. type: d,
  6153. origType: y,
  6154. data: i,
  6155. handler: n,
  6156. guid: n.guid,
  6157. selector: r,
  6158. needsContext: r && bt.expr.match.needsContext.test(r),
  6159. namespace: p.join('.'),
  6160. },
  6161. o
  6162. )),
  6163. (h = u[d]) ||
  6164. ((h = u[d] = []),
  6165. (h.delegateCount = 0),
  6166. (c.setup && c.setup.call(t, i, p, a) !== !1) ||
  6167. (t.addEventListener && t.addEventListener(d, a))),
  6168. c.add &&
  6169. (c.add.call(t, f),
  6170. f.handler.guid || (f.handler.guid = n.guid)),
  6171. r ? h.splice(h.delegateCount++, 0, f) : h.push(f),
  6172. (bt.event.global[d] = !0));
  6173. },
  6174. remove: function (t, e, n, i, r) {
  6175. var o,
  6176. a,
  6177. s,
  6178. u,
  6179. l,
  6180. f,
  6181. c,
  6182. h,
  6183. d,
  6184. p,
  6185. y,
  6186. m = Ht.hasData(t) && Ht.get(t);
  6187. if (m && (u = m.events)) {
  6188. for (e = (e || '').match(Ot) || [''], l = e.length; l--;)
  6189. if (
  6190. ((s = oe.exec(e[l]) || []),
  6191. (d = y = s[1]),
  6192. (p = (s[2] || '').split('.').sort()),
  6193. d)
  6194. ) {
  6195. for (
  6196. c = bt.event.special[d] || {},
  6197. d = (i ? c.delegateType : c.bindType) || d,
  6198. h = u[d] || [],
  6199. s =
  6200. s[2] &&
  6201. new RegExp(
  6202. '(^|\\.)' + p.join('\\.(?:.*\\.|)') + '(\\.|$)'
  6203. ),
  6204. a = o = h.length;
  6205. o--;
  6206. )
  6207. (f = h[o]),
  6208. (!r && y !== f.origType) ||
  6209. (n && n.guid !== f.guid) ||
  6210. (s && !s.test(f.namespace)) ||
  6211. (i &&
  6212. i !== f.selector &&
  6213. ('**' !== i || !f.selector)) ||
  6214. (h.splice(o, 1),
  6215. f.selector && h.delegateCount--,
  6216. c.remove && c.remove.call(t, f));
  6217. a &&
  6218. !h.length &&
  6219. ((c.teardown && c.teardown.call(t, p, m.handle) !== !1) ||
  6220. bt.removeEvent(t, d, m.handle),
  6221. delete u[d]);
  6222. } else for (d in u) bt.event.remove(t, d + e[l], n, i, !0);
  6223. bt.isEmptyObject(u) && Ht.remove(t, 'handle events');
  6224. }
  6225. },
  6226. dispatch: function (t) {
  6227. var e,
  6228. n,
  6229. i,
  6230. r,
  6231. o,
  6232. a,
  6233. s = bt.event.fix(t),
  6234. u = new Array(arguments.length),
  6235. l = (Ht.get(this, 'events') || {})[s.type] || [],
  6236. f = bt.event.special[s.type] || {};
  6237. for (u[0] = s, e = 1; e < arguments.length; e++)
  6238. u[e] = arguments[e];
  6239. if (
  6240. ((s.delegateTarget = this),
  6241. !f.preDispatch || f.preDispatch.call(this, s) !== !1)
  6242. ) {
  6243. for (
  6244. a = bt.event.handlers.call(this, s, l), e = 0;
  6245. (r = a[e++]) && !s.isPropagationStopped();
  6246. )
  6247. for (
  6248. s.currentTarget = r.elem, n = 0;
  6249. (o = r.handlers[n++]) && !s.isImmediatePropagationStopped();
  6250. )
  6251. (s.rnamespace && !s.rnamespace.test(o.namespace)) ||
  6252. ((s.handleObj = o),
  6253. (s.data = o.data),
  6254. (i = (
  6255. (bt.event.special[o.origType] || {}).handle || o.handler
  6256. ).apply(r.elem, u)),
  6257. void 0 !== i &&
  6258. (s.result = i) === !1 &&
  6259. (s.preventDefault(), s.stopPropagation()));
  6260. return f.postDispatch && f.postDispatch.call(this, s), s.result;
  6261. }
  6262. },
  6263. handlers: function (t, e) {
  6264. var n,
  6265. i,
  6266. r,
  6267. o,
  6268. a,
  6269. s = [],
  6270. u = e.delegateCount,
  6271. l = t.target;
  6272. if (u && l.nodeType && !('click' === t.type && t.button >= 1))
  6273. for (; l !== this; l = l.parentNode || this)
  6274. if (
  6275. 1 === l.nodeType &&
  6276. ('click' !== t.type || l.disabled !== !0)
  6277. ) {
  6278. for (o = [], a = {}, n = 0; n < u; n++)
  6279. (i = e[n]),
  6280. (r = i.selector + ' '),
  6281. void 0 === a[r] &&
  6282. (a[r] = i.needsContext
  6283. ? bt(r, this).index(l) > -1
  6284. : bt.find(r, this, null, [l]).length),
  6285. a[r] && o.push(i);
  6286. o.length && s.push({elem: l, handlers: o});
  6287. }
  6288. return (
  6289. (l = this),
  6290. u < e.length && s.push({elem: l, handlers: e.slice(u)}),
  6291. s
  6292. );
  6293. },
  6294. addProp: function (t, e) {
  6295. Object.defineProperty(bt.Event.prototype, t, {
  6296. enumerable: !0,
  6297. configurable: !0,
  6298. get: bt.isFunction(e)
  6299. ? function () {
  6300. if (this.originalEvent) return e(this.originalEvent);
  6301. }
  6302. : function () {
  6303. if (this.originalEvent) return this.originalEvent[t];
  6304. },
  6305. set: function (e) {
  6306. Object.defineProperty(this, t, {
  6307. enumerable: !0,
  6308. configurable: !0,
  6309. writable: !0,
  6310. value: e,
  6311. });
  6312. },
  6313. });
  6314. },
  6315. fix: function (t) {
  6316. return t[bt.expando] ? t : new bt.Event(t);
  6317. },
  6318. special: {
  6319. load: {noBubble: !0},
  6320. focus: {
  6321. trigger: function () {
  6322. if (this !== D() && this.focus) return this.focus(), !1;
  6323. },
  6324. delegateType: 'focusin',
  6325. },
  6326. blur: {
  6327. trigger: function () {
  6328. if (this === D() && this.blur) return this.blur(), !1;
  6329. },
  6330. delegateType: 'focusout',
  6331. },
  6332. click: {
  6333. trigger: function () {
  6334. if (
  6335. 'checkbox' === this.type &&
  6336. this.click &&
  6337. l(this, 'input')
  6338. )
  6339. return this.click(), !1;
  6340. },
  6341. _default: function (t) {
  6342. return l(t.target, 'a');
  6343. },
  6344. },
  6345. beforeunload: {
  6346. postDispatch: function (t) {
  6347. void 0 !== t.result &&
  6348. t.originalEvent &&
  6349. (t.originalEvent.returnValue = t.result);
  6350. },
  6351. },
  6352. },
  6353. }),
  6354. (bt.removeEvent = function (t, e, n) {
  6355. t.removeEventListener && t.removeEventListener(e, n);
  6356. }),
  6357. (bt.Event = function (t, e) {
  6358. return this instanceof bt.Event
  6359. ? (t && t.type
  6360. ? ((this.originalEvent = t),
  6361. (this.type = t.type),
  6362. (this.isDefaultPrevented =
  6363. t.defaultPrevented ||
  6364. (void 0 === t.defaultPrevented && t.returnValue === !1)
  6365. ? T
  6366. : k),
  6367. (this.target =
  6368. t.target && 3 === t.target.nodeType
  6369. ? t.target.parentNode
  6370. : t.target),
  6371. (this.currentTarget = t.currentTarget),
  6372. (this.relatedTarget = t.relatedTarget))
  6373. : (this.type = t),
  6374. e && bt.extend(this, e),
  6375. (this.timeStamp = (t && t.timeStamp) || bt.now()),
  6376. void (this[bt.expando] = !0))
  6377. : new bt.Event(t, e);
  6378. }),
  6379. (bt.Event.prototype = {
  6380. constructor: bt.Event,
  6381. isDefaultPrevented: k,
  6382. isPropagationStopped: k,
  6383. isImmediatePropagationStopped: k,
  6384. isSimulated: !1,
  6385. preventDefault: function () {
  6386. var t = this.originalEvent;
  6387. (this.isDefaultPrevented = T),
  6388. t && !this.isSimulated && t.preventDefault();
  6389. },
  6390. stopPropagation: function () {
  6391. var t = this.originalEvent;
  6392. (this.isPropagationStopped = T),
  6393. t && !this.isSimulated && t.stopPropagation();
  6394. },
  6395. stopImmediatePropagation: function () {
  6396. var t = this.originalEvent;
  6397. (this.isImmediatePropagationStopped = T),
  6398. t && !this.isSimulated && t.stopImmediatePropagation(),
  6399. this.stopPropagation();
  6400. },
  6401. }),
  6402. bt.each(
  6403. {
  6404. altKey: !0,
  6405. bubbles: !0,
  6406. cancelable: !0,
  6407. changedTouches: !0,
  6408. ctrlKey: !0,
  6409. detail: !0,
  6410. eventPhase: !0,
  6411. metaKey: !0,
  6412. pageX: !0,
  6413. pageY: !0,
  6414. shiftKey: !0,
  6415. view: !0,
  6416. char: !0,
  6417. charCode: !0,
  6418. key: !0,
  6419. keyCode: !0,
  6420. button: !0,
  6421. buttons: !0,
  6422. clientX: !0,
  6423. clientY: !0,
  6424. offsetX: !0,
  6425. offsetY: !0,
  6426. pointerId: !0,
  6427. pointerType: !0,
  6428. screenX: !0,
  6429. screenY: !0,
  6430. targetTouches: !0,
  6431. toElement: !0,
  6432. touches: !0,
  6433. which: function (t) {
  6434. var e = t.button;
  6435. return null == t.which && ie.test(t.type)
  6436. ? null != t.charCode
  6437. ? t.charCode
  6438. : t.keyCode
  6439. : !t.which && void 0 !== e && re.test(t.type)
  6440. ? 1 & e
  6441. ? 1
  6442. : 2 & e
  6443. ? 3
  6444. : 4 & e
  6445. ? 2
  6446. : 0
  6447. : t.which;
  6448. },
  6449. },
  6450. bt.event.addProp
  6451. ),
  6452. bt.each(
  6453. {
  6454. mouseenter: 'mouseover',
  6455. mouseleave: 'mouseout',
  6456. pointerenter: 'pointerover',
  6457. pointerleave: 'pointerout',
  6458. },
  6459. function (t, e) {
  6460. bt.event.special[t] = {
  6461. delegateType: e,
  6462. bindType: e,
  6463. handle: function (t) {
  6464. var n,
  6465. i = this,
  6466. r = t.relatedTarget,
  6467. o = t.handleObj;
  6468. return (
  6469. (r && (r === i || bt.contains(i, r))) ||
  6470. ((t.type = o.origType),
  6471. (n = o.handler.apply(this, arguments)),
  6472. (t.type = e)),
  6473. n
  6474. );
  6475. },
  6476. };
  6477. }
  6478. ),
  6479. bt.fn.extend({
  6480. on: function (t, e, n, i) {
  6481. return M(this, t, e, n, i);
  6482. },
  6483. one: function (t, e, n, i) {
  6484. return M(this, t, e, n, i, 1);
  6485. },
  6486. off: function (t, e, i) {
  6487. var r, o;
  6488. if (t && t.preventDefault && t.handleObj)
  6489. return (
  6490. (r = t.handleObj),
  6491. bt(t.delegateTarget).off(
  6492. r.namespace ? r.origType + '.' + r.namespace : r.origType,
  6493. r.selector,
  6494. r.handler
  6495. ),
  6496. this
  6497. );
  6498. if (
  6499. 'object' === ('undefined' == typeof t ? 'undefined' : n(t))
  6500. ) {
  6501. for (o in t) this.off(o, e, t[o]);
  6502. return this;
  6503. }
  6504. return (
  6505. (e !== !1 && 'function' != typeof e) ||
  6506. ((i = e), (e = void 0)),
  6507. i === !1 && (i = k),
  6508. this.each(function () {
  6509. bt.event.remove(this, t, i, e);
  6510. })
  6511. );
  6512. },
  6513. });
  6514. var ae = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,
  6515. se = /<script|<style|<link/i,
  6516. ue = /checked\s*(?:[^=]|=\s*.checked.)/i,
  6517. le = /^true\/(.*)/,
  6518. fe = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
  6519. bt.extend({
  6520. htmlPrefilter: function (t) {
  6521. return t.replace(ae, '<$1></$2>');
  6522. },
  6523. clone: function t(e, n, i) {
  6524. var r,
  6525. o,
  6526. a,
  6527. s,
  6528. t = e.cloneNode(!0),
  6529. u = bt.contains(e.ownerDocument, e);
  6530. if (
  6531. !(
  6532. gt.noCloneChecked ||
  6533. (1 !== e.nodeType && 11 !== e.nodeType) ||
  6534. bt.isXMLDoc(e)
  6535. )
  6536. )
  6537. for (s = P(t), a = P(e), r = 0, o = a.length; r < o; r++)
  6538. A(a[r], s[r]);
  6539. if (n)
  6540. if (i)
  6541. for (
  6542. a = a || P(e), s = s || P(t), r = 0, o = a.length;
  6543. r < o;
  6544. r++
  6545. )
  6546. I(a[r], s[r]);
  6547. else I(e, t);
  6548. return (
  6549. (s = P(t, 'script')),
  6550. s.length > 0 && C(s, !u && P(e, 'script')),
  6551. t
  6552. );
  6553. },
  6554. cleanData: function (t) {
  6555. for (
  6556. var e, n, i, r = bt.event.special, o = 0;
  6557. void 0 !== (n = t[o]);
  6558. o++
  6559. )
  6560. if (qt(n)) {
  6561. if ((e = n[Ht.expando])) {
  6562. if (e.events)
  6563. for (i in e.events)
  6564. r[i]
  6565. ? bt.event.remove(n, i)
  6566. : bt.removeEvent(n, i, e.handle);
  6567. n[Ht.expando] = void 0;
  6568. }
  6569. n[jt.expando] && (n[jt.expando] = void 0);
  6570. }
  6571. },
  6572. }),
  6573. bt.fn.extend({
  6574. detach: function (t) {
  6575. return O(this, t, !0);
  6576. },
  6577. remove: function (t) {
  6578. return O(this, t);
  6579. },
  6580. text: function (t) {
  6581. return Nt(
  6582. this,
  6583. function (t) {
  6584. return void 0 === t
  6585. ? bt.text(this)
  6586. : this.empty().each(function () {
  6587. (1 !== this.nodeType &&
  6588. 11 !== this.nodeType &&
  6589. 9 !== this.nodeType) ||
  6590. (this.textContent = t);
  6591. });
  6592. },
  6593. null,
  6594. t,
  6595. arguments.length
  6596. );
  6597. },
  6598. append: function () {
  6599. return F(this, arguments, function (t) {
  6600. if (
  6601. 1 === this.nodeType ||
  6602. 11 === this.nodeType ||
  6603. 9 === this.nodeType
  6604. ) {
  6605. var e = R(this, t);
  6606. e.appendChild(t);
  6607. }
  6608. });
  6609. },
  6610. prepend: function () {
  6611. return F(this, arguments, function (t) {
  6612. if (
  6613. 1 === this.nodeType ||
  6614. 11 === this.nodeType ||
  6615. 9 === this.nodeType
  6616. ) {
  6617. var e = R(this, t);
  6618. e.insertBefore(t, e.firstChild);
  6619. }
  6620. });
  6621. },
  6622. before: function () {
  6623. return F(this, arguments, function (t) {
  6624. this.parentNode && this.parentNode.insertBefore(t, this);
  6625. });
  6626. },
  6627. after: function () {
  6628. return F(this, arguments, function (t) {
  6629. this.parentNode &&
  6630. this.parentNode.insertBefore(t, this.nextSibling);
  6631. });
  6632. },
  6633. empty: function () {
  6634. for (var t, e = 0; null != (t = this[e]); e++)
  6635. 1 === t.nodeType &&
  6636. (bt.cleanData(P(t, !1)), (t.textContent = ''));
  6637. return this;
  6638. },
  6639. clone: function (t, e) {
  6640. return (
  6641. (t = null != t && t),
  6642. (e = null == e ? t : e),
  6643. this.map(function () {
  6644. return bt.clone(this, t, e);
  6645. })
  6646. );
  6647. },
  6648. html: function (t) {
  6649. return Nt(
  6650. this,
  6651. function (t) {
  6652. var e = this[0] || {},
  6653. n = 0,
  6654. i = this.length;
  6655. if (void 0 === t && 1 === e.nodeType) return e.innerHTML;
  6656. if (
  6657. 'string' == typeof t &&
  6658. !se.test(t) &&
  6659. !te[(Zt.exec(t) || ['', ''])[1].toLowerCase()]
  6660. ) {
  6661. t = bt.htmlPrefilter(t);
  6662. try {
  6663. for (; n < i; n++)
  6664. (e = this[n] || {}),
  6665. 1 === e.nodeType &&
  6666. (bt.cleanData(P(e, !1)), (e.innerHTML = t));
  6667. e = 0;
  6668. } catch (t) {
  6669. }
  6670. }
  6671. e && this.empty().append(t);
  6672. },
  6673. null,
  6674. t,
  6675. arguments.length
  6676. );
  6677. },
  6678. replaceWith: function () {
  6679. var t = [];
  6680. return F(
  6681. this,
  6682. arguments,
  6683. function (e) {
  6684. var n = this.parentNode;
  6685. bt.inArray(this, t) < 0 &&
  6686. (bt.cleanData(P(this)), n && n.replaceChild(e, this));
  6687. },
  6688. t
  6689. );
  6690. },
  6691. }),
  6692. bt.each(
  6693. {
  6694. appendTo: 'append',
  6695. prependTo: 'prepend',
  6696. insertBefore: 'before',
  6697. insertAfter: 'after',
  6698. replaceAll: 'replaceWith',
  6699. },
  6700. function (t, e) {
  6701. bt.fn[t] = function (t) {
  6702. for (
  6703. var n, i = [], r = bt(t), o = r.length - 1, a = 0;
  6704. a <= o;
  6705. a++
  6706. )
  6707. (n = a === o ? this : this.clone(!0)),
  6708. bt(r[a])[e](n),
  6709. ct.apply(i, n.get());
  6710. return this.pushStack(i);
  6711. };
  6712. }
  6713. );
  6714. var ce = /^margin/,
  6715. he = new RegExp('^(' + Gt + ')(?!px)[a-z%]+$', 'i'),
  6716. de = function (t) {
  6717. var e = t.ownerDocument.defaultView;
  6718. return (e && e.opener) || (e = o), e.getComputedStyle(t);
  6719. };
  6720. !(function () {
  6721. function t() {
  6722. if (s) {
  6723. (s.style.cssText =
  6724. 'box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%'),
  6725. (s.innerHTML = ''),
  6726. ne.appendChild(a);
  6727. var t = o.getComputedStyle(s);
  6728. (e = '1%' !== t.top),
  6729. (r = '2px' === t.marginLeft),
  6730. (n = '4px' === t.width),
  6731. (s.style.marginRight = '50%'),
  6732. (i = '4px' === t.marginRight),
  6733. ne.removeChild(a),
  6734. (s = null);
  6735. }
  6736. }
  6737. var e,
  6738. n,
  6739. i,
  6740. r,
  6741. a = st.createElement('div'),
  6742. s = st.createElement('div');
  6743. s.style &&
  6744. ((s.style.backgroundClip = 'content-box'),
  6745. (s.cloneNode(!0).style.backgroundClip = ''),
  6746. (gt.clearCloneStyle = 'content-box' === s.style.backgroundClip),
  6747. (a.style.cssText =
  6748. 'border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute'),
  6749. a.appendChild(s),
  6750. bt.extend(gt, {
  6751. pixelPosition: function () {
  6752. return t(), e;
  6753. },
  6754. boxSizingReliable: function () {
  6755. return t(), n;
  6756. },
  6757. pixelMarginRight: function () {
  6758. return t(), i;
  6759. },
  6760. reliableMarginLeft: function () {
  6761. return t(), r;
  6762. },
  6763. }));
  6764. })();
  6765. var pe = /^(none|table(?!-c[ea]).+)/,
  6766. ye = /^--/,
  6767. me = {
  6768. position: 'absolute',
  6769. visibility: 'hidden',
  6770. display: 'block',
  6771. },
  6772. ve = {letterSpacing: '0', fontWeight: '400'},
  6773. ge = ['Webkit', 'Moz', 'ms'],
  6774. Se = st.createElement('div').style;
  6775. bt.extend({
  6776. cssHooks: {
  6777. opacity: {
  6778. get: function (t, e) {
  6779. if (e) {
  6780. var n = B(t, 'opacity');
  6781. return '' === n ? '1' : n;
  6782. }
  6783. },
  6784. },
  6785. },
  6786. cssNumber: {
  6787. animationIterationCount: !0,
  6788. columnCount: !0,
  6789. fillOpacity: !0,
  6790. flexGrow: !0,
  6791. flexShrink: !0,
  6792. fontWeight: !0,
  6793. lineHeight: !0,
  6794. opacity: !0,
  6795. order: !0,
  6796. orphans: !0,
  6797. widows: !0,
  6798. zIndex: !0,
  6799. zoom: !0,
  6800. },
  6801. cssProps: {float: 'cssFloat'},
  6802. style: function t(e, i, r, o) {
  6803. if (e && 3 !== e.nodeType && 8 !== e.nodeType && e.style) {
  6804. var a,
  6805. s,
  6806. u,
  6807. l = bt.camelCase(i),
  6808. f = ye.test(i),
  6809. t = e.style;
  6810. return (
  6811. f || (i = q(l)),
  6812. (u = bt.cssHooks[i] || bt.cssHooks[l]),
  6813. void 0 === r
  6814. ? u && 'get' in u && void 0 !== (a = u.get(e, !1, o))
  6815. ? a
  6816. : t[i]
  6817. : ((s = 'undefined' == typeof r ? 'undefined' : n(r)),
  6818. 'string' === s &&
  6819. (a = Vt.exec(r)) &&
  6820. a[1] &&
  6821. ((r = b(e, i, a)), (s = 'number')),
  6822. null != r &&
  6823. r === r &&
  6824. ('number' === s &&
  6825. (r += (a && a[3]) || (bt.cssNumber[l] ? '' : 'px')),
  6826. gt.clearCloneStyle ||
  6827. '' !== r ||
  6828. 0 !== i.indexOf('background') ||
  6829. (t[i] = 'inherit'),
  6830. (u && 'set' in u && void 0 === (r = u.set(e, r, o))) ||
  6831. (f ? t.setProperty(i, r) : (t[i] = r))),
  6832. void 0)
  6833. );
  6834. }
  6835. },
  6836. css: function (t, e, n, i) {
  6837. var r,
  6838. o,
  6839. a,
  6840. s = bt.camelCase(e),
  6841. u = ye.test(e);
  6842. return (
  6843. u || (e = q(s)),
  6844. (a = bt.cssHooks[e] || bt.cssHooks[s]),
  6845. a && 'get' in a && (r = a.get(t, !0, n)),
  6846. void 0 === r && (r = B(t, e, i)),
  6847. 'normal' === r && e in ve && (r = ve[e]),
  6848. '' === n || n
  6849. ? ((o = parseFloat(r)), n === !0 || isFinite(o) ? o || 0 : r)
  6850. : r
  6851. );
  6852. },
  6853. }),
  6854. bt.each(['height', 'width'], function (t, e) {
  6855. bt.cssHooks[e] = {
  6856. get: function (t, n, i) {
  6857. if (n)
  6858. return !pe.test(bt.css(t, 'display')) ||
  6859. (t.getClientRects().length &&
  6860. t.getBoundingClientRect().width)
  6861. ? W(t, e, i)
  6862. : Jt(t, me, function () {
  6863. return W(t, e, i);
  6864. });
  6865. },
  6866. set: function (t, n, i) {
  6867. var r,
  6868. o = i && de(t),
  6869. a =
  6870. i &&
  6871. j(
  6872. t,
  6873. e,
  6874. i,
  6875. 'border-box' === bt.css(t, 'boxSizing', !1, o),
  6876. o
  6877. );
  6878. return (
  6879. a &&
  6880. (r = Vt.exec(n)) &&
  6881. 'px' !== (r[3] || 'px') &&
  6882. ((t.style[e] = n), (n = bt.css(t, e))),
  6883. H(t, n, a)
  6884. );
  6885. },
  6886. };
  6887. }),
  6888. (bt.cssHooks.marginLeft = L(gt.reliableMarginLeft, function (t, e) {
  6889. if (e)
  6890. return (
  6891. (parseFloat(B(t, 'marginLeft')) ||
  6892. t.getBoundingClientRect().left -
  6893. Jt(t, {marginLeft: 0}, function () {
  6894. return t.getBoundingClientRect().left;
  6895. })) + 'px'
  6896. );
  6897. })),
  6898. bt.each({margin: '', padding: '', border: 'Width'}, function (
  6899. t,
  6900. e
  6901. ) {
  6902. (bt.cssHooks[t + e] = {
  6903. expand: function (n) {
  6904. for (
  6905. var i = 0,
  6906. r = {},
  6907. o = 'string' == typeof n ? n.split(' ') : [n];
  6908. i < 4;
  6909. i++
  6910. )
  6911. r[t + Yt[i] + e] = o[i] || o[i - 2] || o[0];
  6912. return r;
  6913. },
  6914. }),
  6915. ce.test(t) || (bt.cssHooks[t + e].set = H);
  6916. }),
  6917. bt.fn.extend({
  6918. css: function (t, e) {
  6919. return Nt(
  6920. this,
  6921. function (t, e, n) {
  6922. var i,
  6923. r,
  6924. o = {},
  6925. a = 0;
  6926. if (Array.isArray(e)) {
  6927. for (i = de(t), r = e.length; a < r; a++)
  6928. o[e[a]] = bt.css(t, e[a], !1, i);
  6929. return o;
  6930. }
  6931. return void 0 !== n ? bt.style(t, e, n) : bt.css(t, e);
  6932. },
  6933. t,
  6934. e,
  6935. arguments.length > 1
  6936. );
  6937. },
  6938. }),
  6939. (bt.Tween = U),
  6940. (U.prototype = {
  6941. constructor: U,
  6942. init: function (t, e, n, i, r, o) {
  6943. (this.elem = t),
  6944. (this.prop = n),
  6945. (this.easing = r || bt.easing._default),
  6946. (this.options = e),
  6947. (this.start = this.now = this.cur()),
  6948. (this.end = i),
  6949. (this.unit = o || (bt.cssNumber[n] ? '' : 'px'));
  6950. },
  6951. cur: function () {
  6952. var t = U.propHooks[this.prop];
  6953. return t && t.get
  6954. ? t.get(this)
  6955. : U.propHooks._default.get(this);
  6956. },
  6957. run: function (t) {
  6958. var e,
  6959. n = U.propHooks[this.prop];
  6960. return (
  6961. this.options.duration
  6962. ? (this.pos = e = bt.easing[this.easing](
  6963. t,
  6964. this.options.duration * t,
  6965. 0,
  6966. 1,
  6967. this.options.duration
  6968. ))
  6969. : (this.pos = e = t),
  6970. (this.now = (this.end - this.start) * e + this.start),
  6971. this.options.step &&
  6972. this.options.step.call(this.elem, this.now, this),
  6973. n && n.set ? n.set(this) : U.propHooks._default.set(this),
  6974. this
  6975. );
  6976. },
  6977. }),
  6978. (U.prototype.init.prototype = U.prototype),
  6979. (U.propHooks = {
  6980. _default: {
  6981. get: function (t) {
  6982. var e;
  6983. return 1 !== t.elem.nodeType ||
  6984. (null != t.elem[t.prop] && null == t.elem.style[t.prop])
  6985. ? t.elem[t.prop]
  6986. : ((e = bt.css(t.elem, t.prop, '')),
  6987. e && 'auto' !== e ? e : 0);
  6988. },
  6989. set: function (t) {
  6990. bt.fx.step[t.prop]
  6991. ? bt.fx.step[t.prop](t)
  6992. : 1 !== t.elem.nodeType ||
  6993. (null == t.elem.style[bt.cssProps[t.prop]] &&
  6994. !bt.cssHooks[t.prop])
  6995. ? (t.elem[t.prop] = t.now)
  6996. : bt.style(t.elem, t.prop, t.now + t.unit);
  6997. },
  6998. },
  6999. }),
  7000. (U.propHooks.scrollTop = U.propHooks.scrollLeft = {
  7001. set: function (t) {
  7002. t.elem.nodeType &&
  7003. t.elem.parentNode &&
  7004. (t.elem[t.prop] = t.now);
  7005. },
  7006. }),
  7007. (bt.easing = {
  7008. linear: function (t) {
  7009. return t;
  7010. },
  7011. swing: function (t) {
  7012. return 0.5 - Math.cos(t * Math.PI) / 2;
  7013. },
  7014. _default: 'swing',
  7015. }),
  7016. (bt.fx = U.prototype.init),
  7017. (bt.fx.step = {});
  7018. var be,
  7019. we,
  7020. _e = /^(?:toggle|show|hide)$/,
  7021. Pe = /queueHooks$/;
  7022. (bt.Animation = bt.extend(K, {
  7023. tweeners: {
  7024. '*': [
  7025. function (t, e) {
  7026. var n = this.createTween(t, e);
  7027. return b(n.elem, t, Vt.exec(e), n), n;
  7028. },
  7029. ],
  7030. },
  7031. tweener: function (t, e) {
  7032. bt.isFunction(t) ? ((e = t), (t = ['*'])) : (t = t.match(Ot));
  7033. for (var n, i = 0, r = t.length; i < r; i++)
  7034. (n = t[i]),
  7035. (K.tweeners[n] = K.tweeners[n] || []),
  7036. K.tweeners[n].unshift(e);
  7037. },
  7038. prefilters: [J],
  7039. prefilter: function (t, e) {
  7040. e ? K.prefilters.unshift(t) : K.prefilters.push(t);
  7041. },
  7042. })),
  7043. (bt.speed = function (t, e, i) {
  7044. var r =
  7045. t && 'object' === ('undefined' == typeof t ? 'undefined' : n(t))
  7046. ? bt.extend({}, t)
  7047. : {
  7048. complete: i || (!i && e) || (bt.isFunction(t) && t),
  7049. duration: t,
  7050. easing: (i && e) || (e && !bt.isFunction(e) && e),
  7051. };
  7052. return (
  7053. bt.fx.off
  7054. ? (r.duration = 0)
  7055. : 'number' != typeof r.duration &&
  7056. (r.duration in bt.fx.speeds
  7057. ? (r.duration = bt.fx.speeds[r.duration])
  7058. : (r.duration = bt.fx.speeds._default)),
  7059. (null != r.queue && r.queue !== !0) || (r.queue = 'fx'),
  7060. (r.old = r.complete),
  7061. (r.complete = function () {
  7062. bt.isFunction(r.old) && r.old.call(this),
  7063. r.queue && bt.dequeue(this, r.queue);
  7064. }),
  7065. r
  7066. );
  7067. }),
  7068. bt.fn.extend({
  7069. fadeTo: function (t, e, n, i) {
  7070. return this.filter(Xt)
  7071. .css('opacity', 0)
  7072. .show()
  7073. .end()
  7074. .animate({opacity: e}, t, n, i);
  7075. },
  7076. animate: function (t, e, n, i) {
  7077. var r = bt.isEmptyObject(t),
  7078. o = bt.speed(e, n, i),
  7079. a = function () {
  7080. var e = K(this, bt.extend({}, t), o);
  7081. (r || Ht.get(this, 'finish')) && e.stop(!0);
  7082. };
  7083. return (
  7084. (a.finish = a),
  7085. r || o.queue === !1 ? this.each(a) : this.queue(o.queue, a)
  7086. );
  7087. },
  7088. stop: function (t, e, n) {
  7089. var i = function (t) {
  7090. var e = t.stop;
  7091. delete t.stop, e(n);
  7092. };
  7093. return (
  7094. 'string' != typeof t && ((n = e), (e = t), (t = void 0)),
  7095. e && t !== !1 && this.queue(t || 'fx', []),
  7096. this.each(function () {
  7097. var e = !0,
  7098. r = null != t && t + 'queueHooks',
  7099. o = bt.timers,
  7100. a = Ht.get(this);
  7101. if (r) a[r] && a[r].stop && i(a[r]);
  7102. else
  7103. for (r in a) a[r] && a[r].stop && Pe.test(r) && i(a[r]);
  7104. for (r = o.length; r--;)
  7105. o[r].elem !== this ||
  7106. (null != t && o[r].queue !== t) ||
  7107. (o[r].anim.stop(n), (e = !1), o.splice(r, 1));
  7108. (!e && n) || bt.dequeue(this, t);
  7109. })
  7110. );
  7111. },
  7112. finish: function (t) {
  7113. return (
  7114. t !== !1 && (t = t || 'fx'),
  7115. this.each(function () {
  7116. var e,
  7117. n = Ht.get(this),
  7118. i = n[t + 'queue'],
  7119. r = n[t + 'queueHooks'],
  7120. o = bt.timers,
  7121. a = i ? i.length : 0;
  7122. for (
  7123. n.finish = !0,
  7124. bt.queue(this, t, []),
  7125. r && r.stop && r.stop.call(this, !0),
  7126. e = o.length;
  7127. e--;
  7128. )
  7129. o[e].elem === this &&
  7130. o[e].queue === t &&
  7131. (o[e].anim.stop(!0), o.splice(e, 1));
  7132. for (e = 0; e < a; e++)
  7133. i[e] && i[e].finish && i[e].finish.call(this);
  7134. delete n.finish;
  7135. })
  7136. );
  7137. },
  7138. }),
  7139. bt.each(['toggle', 'show', 'hide'], function (t, e) {
  7140. var n = bt.fn[e];
  7141. bt.fn[e] = function (t, i, r) {
  7142. return null == t || 'boolean' == typeof t
  7143. ? n.apply(this, arguments)
  7144. : this.animate(Y(e, !0), t, i, r);
  7145. };
  7146. }),
  7147. bt.each(
  7148. {
  7149. slideDown: Y('show'),
  7150. slideUp: Y('hide'),
  7151. slideToggle: Y('toggle'),
  7152. fadeIn: {opacity: 'show'},
  7153. fadeOut: {opacity: 'hide'},
  7154. fadeToggle: {opacity: 'toggle'},
  7155. },
  7156. function (t, e) {
  7157. bt.fn[t] = function (t, n, i) {
  7158. return this.animate(e, t, n, i);
  7159. };
  7160. }
  7161. ),
  7162. (bt.timers = []),
  7163. (bt.fx.tick = function () {
  7164. var t,
  7165. e = 0,
  7166. n = bt.timers;
  7167. for (be = bt.now(); e < n.length; e++)
  7168. (t = n[e]), t() || n[e] !== t || n.splice(e--, 1);
  7169. n.length || bt.fx.stop(), (be = void 0);
  7170. }),
  7171. (bt.fx.timer = function (t) {
  7172. bt.timers.push(t), bt.fx.start();
  7173. }),
  7174. (bt.fx.interval = 13),
  7175. (bt.fx.start = function () {
  7176. we || ((we = !0), G());
  7177. }),
  7178. (bt.fx.stop = function () {
  7179. we = null;
  7180. }),
  7181. (bt.fx.speeds = {slow: 600, fast: 200, _default: 400}),
  7182. (bt.fn.delay = function (t, e) {
  7183. return (
  7184. (t = bt.fx ? bt.fx.speeds[t] || t : t),
  7185. (e = e || 'fx'),
  7186. this.queue(e, function (e, n) {
  7187. var i = o.setTimeout(e, t);
  7188. n.stop = function () {
  7189. o.clearTimeout(i);
  7190. };
  7191. })
  7192. );
  7193. }),
  7194. (function () {
  7195. var t = st.createElement('input'),
  7196. e = st.createElement('select'),
  7197. n = e.appendChild(st.createElement('option'));
  7198. (t.type = 'checkbox'),
  7199. (gt.checkOn = '' !== t.value),
  7200. (gt.optSelected = n.selected),
  7201. (t = st.createElement('input')),
  7202. (t.value = 't'),
  7203. (t.type = 'radio'),
  7204. (gt.radioValue = 't' === t.value);
  7205. })();
  7206. var Ce,
  7207. xe = bt.expr.attrHandle;
  7208. bt.fn.extend({
  7209. attr: function (t, e) {
  7210. return Nt(this, bt.attr, t, e, arguments.length > 1);
  7211. },
  7212. removeAttr: function (t) {
  7213. return this.each(function () {
  7214. bt.removeAttr(this, t);
  7215. });
  7216. },
  7217. }),
  7218. bt.extend({
  7219. attr: function (t, e, n) {
  7220. var i,
  7221. r,
  7222. o = t.nodeType;
  7223. if (3 !== o && 8 !== o && 2 !== o)
  7224. return 'undefined' == typeof t.getAttribute
  7225. ? bt.prop(t, e, n)
  7226. : ((1 === o && bt.isXMLDoc(t)) ||
  7227. (r =
  7228. bt.attrHooks[e.toLowerCase()] ||
  7229. (bt.expr.match.bool.test(e) ? Ce : void 0)),
  7230. void 0 !== n
  7231. ? null === n
  7232. ? void bt.removeAttr(t, e)
  7233. : r && 'set' in r && void 0 !== (i = r.set(t, n, e))
  7234. ? i
  7235. : (t.setAttribute(e, n + ''), n)
  7236. : r && 'get' in r && null !== (i = r.get(t, e))
  7237. ? i
  7238. : ((i = bt.find.attr(t, e)), null == i ? void 0 : i));
  7239. },
  7240. attrHooks: {
  7241. type: {
  7242. set: function (t, e) {
  7243. if (!gt.radioValue && 'radio' === e && l(t, 'input')) {
  7244. var n = t.value;
  7245. return t.setAttribute('type', e), n && (t.value = n), e;
  7246. }
  7247. },
  7248. },
  7249. },
  7250. removeAttr: function (t, e) {
  7251. var n,
  7252. i = 0,
  7253. r = e && e.match(Ot);
  7254. if (r && 1 === t.nodeType)
  7255. for (; (n = r[i++]);) t.removeAttribute(n);
  7256. },
  7257. }),
  7258. (Ce = {
  7259. set: function (t, e, n) {
  7260. return e === !1 ? bt.removeAttr(t, n) : t.setAttribute(n, n), n;
  7261. },
  7262. }),
  7263. bt.each(bt.expr.match.bool.source.match(/\w+/g), function (t, e) {
  7264. var n = xe[e] || bt.find.attr;
  7265. xe[e] = function (t, e, i) {
  7266. var r,
  7267. o,
  7268. a = e.toLowerCase();
  7269. return (
  7270. i ||
  7271. ((o = xe[a]),
  7272. (xe[a] = r),
  7273. (r = null != n(t, e, i) ? a : null),
  7274. (xe[a] = o)),
  7275. r
  7276. );
  7277. };
  7278. });
  7279. var Te = /^(?:input|select|textarea|button)$/i,
  7280. ke = /^(?:a|area)$/i;
  7281. bt.fn.extend({
  7282. prop: function (t, e) {
  7283. return Nt(this, bt.prop, t, e, arguments.length > 1);
  7284. },
  7285. removeProp: function (t) {
  7286. return this.each(function () {
  7287. delete this[bt.propFix[t] || t];
  7288. });
  7289. },
  7290. }),
  7291. bt.extend({
  7292. prop: function (t, e, n) {
  7293. var i,
  7294. r,
  7295. o = t.nodeType;
  7296. if (3 !== o && 8 !== o && 2 !== o)
  7297. return (
  7298. (1 === o && bt.isXMLDoc(t)) ||
  7299. ((e = bt.propFix[e] || e), (r = bt.propHooks[e])),
  7300. void 0 !== n
  7301. ? r && 'set' in r && void 0 !== (i = r.set(t, n, e))
  7302. ? i
  7303. : (t[e] = n)
  7304. : r && 'get' in r && null !== (i = r.get(t, e))
  7305. ? i
  7306. : t[e]
  7307. );
  7308. },
  7309. propHooks: {
  7310. tabIndex: {
  7311. get: function (t) {
  7312. var e = bt.find.attr(t, 'tabindex');
  7313. return e
  7314. ? parseInt(e, 10)
  7315. : Te.test(t.nodeName) || (ke.test(t.nodeName) && t.href)
  7316. ? 0
  7317. : -1;
  7318. },
  7319. },
  7320. },
  7321. propFix: {for: 'htmlFor', class: 'className'},
  7322. }),
  7323. gt.optSelected ||
  7324. (bt.propHooks.selected = {
  7325. get: function (t) {
  7326. var e = t.parentNode;
  7327. return e && e.parentNode && e.parentNode.selectedIndex, null;
  7328. },
  7329. set: function (t) {
  7330. var e = t.parentNode;
  7331. e &&
  7332. (e.selectedIndex,
  7333. e.parentNode && e.parentNode.selectedIndex);
  7334. },
  7335. }),
  7336. bt.each(
  7337. [
  7338. 'tabIndex',
  7339. 'readOnly',
  7340. 'maxLength',
  7341. 'cellSpacing',
  7342. 'cellPadding',
  7343. 'rowSpan',
  7344. 'colSpan',
  7345. 'useMap',
  7346. 'frameBorder',
  7347. 'contentEditable',
  7348. ],
  7349. function () {
  7350. bt.propFix[this.toLowerCase()] = this;
  7351. }
  7352. ),
  7353. bt.fn.extend({
  7354. addClass: function (t) {
  7355. var e,
  7356. n,
  7357. i,
  7358. r,
  7359. o,
  7360. a,
  7361. s,
  7362. u = 0;
  7363. if (bt.isFunction(t))
  7364. return this.each(function (e) {
  7365. bt(this).addClass(t.call(this, e, Q(this)));
  7366. });
  7367. if ('string' == typeof t && t)
  7368. for (e = t.match(Ot) || []; (n = this[u++]);)
  7369. if (
  7370. ((r = Q(n)), (i = 1 === n.nodeType && ' ' + Z(r) + ' '))
  7371. ) {
  7372. for (a = 0; (o = e[a++]);)
  7373. i.indexOf(' ' + o + ' ') < 0 && (i += o + ' ');
  7374. (s = Z(i)), r !== s && n.setAttribute('class', s);
  7375. }
  7376. return this;
  7377. },
  7378. removeClass: function (t) {
  7379. var e,
  7380. n,
  7381. i,
  7382. r,
  7383. o,
  7384. a,
  7385. s,
  7386. u = 0;
  7387. if (bt.isFunction(t))
  7388. return this.each(function (e) {
  7389. bt(this).removeClass(t.call(this, e, Q(this)));
  7390. });
  7391. if (!arguments.length) return this.attr('class', '');
  7392. if ('string' == typeof t && t)
  7393. for (e = t.match(Ot) || []; (n = this[u++]);)
  7394. if (
  7395. ((r = Q(n)), (i = 1 === n.nodeType && ' ' + Z(r) + ' '))
  7396. ) {
  7397. for (a = 0; (o = e[a++]);)
  7398. for (; i.indexOf(' ' + o + ' ') > -1;)
  7399. i = i.replace(' ' + o + ' ', ' ');
  7400. (s = Z(i)), r !== s && n.setAttribute('class', s);
  7401. }
  7402. return this;
  7403. },
  7404. toggleClass: function (t, e) {
  7405. var i = 'undefined' == typeof t ? 'undefined' : n(t);
  7406. return 'boolean' == typeof e && 'string' === i
  7407. ? e
  7408. ? this.addClass(t)
  7409. : this.removeClass(t)
  7410. : bt.isFunction(t)
  7411. ? this.each(function (n) {
  7412. bt(this).toggleClass(t.call(this, n, Q(this), e), e);
  7413. })
  7414. : this.each(function () {
  7415. var e, n, r, o;
  7416. if ('string' === i)
  7417. for (
  7418. n = 0, r = bt(this), o = t.match(Ot) || [];
  7419. (e = o[n++]);
  7420. )
  7421. r.hasClass(e) ? r.removeClass(e) : r.addClass(e);
  7422. else
  7423. (void 0 !== t && 'boolean' !== i) ||
  7424. ((e = Q(this)),
  7425. e && Ht.set(this, '__className__', e),
  7426. this.setAttribute &&
  7427. this.setAttribute(
  7428. 'class',
  7429. e || t === !1
  7430. ? ''
  7431. : Ht.get(this, '__className__') || ''
  7432. ));
  7433. });
  7434. },
  7435. hasClass: function (t) {
  7436. var e,
  7437. n,
  7438. i = 0;
  7439. for (e = ' ' + t + ' '; (n = this[i++]);)
  7440. if (1 === n.nodeType && (' ' + Z(Q(n)) + ' ').indexOf(e) > -1)
  7441. return !0;
  7442. return !1;
  7443. },
  7444. });
  7445. var De = /\r/g;
  7446. bt.fn.extend({
  7447. val: function (t) {
  7448. var e,
  7449. n,
  7450. i,
  7451. r = this[0];
  7452. {
  7453. if (arguments.length)
  7454. return (
  7455. (i = bt.isFunction(t)),
  7456. this.each(function (n) {
  7457. var r;
  7458. 1 === this.nodeType &&
  7459. ((r = i ? t.call(this, n, bt(this).val()) : t),
  7460. null == r
  7461. ? (r = '')
  7462. : 'number' == typeof r
  7463. ? (r += '')
  7464. : Array.isArray(r) &&
  7465. (r = bt.map(r, function (t) {
  7466. return null == t ? '' : t + '';
  7467. })),
  7468. (e =
  7469. bt.valHooks[this.type] ||
  7470. bt.valHooks[this.nodeName.toLowerCase()]),
  7471. (e &&
  7472. 'set' in e &&
  7473. void 0 !== e.set(this, r, 'value')) ||
  7474. (this.value = r));
  7475. })
  7476. );
  7477. if (r)
  7478. return (
  7479. (e =
  7480. bt.valHooks[r.type] ||
  7481. bt.valHooks[r.nodeName.toLowerCase()]),
  7482. e && 'get' in e && void 0 !== (n = e.get(r, 'value'))
  7483. ? n
  7484. : ((n = r.value),
  7485. 'string' == typeof n
  7486. ? n.replace(De, '')
  7487. : null == n
  7488. ? ''
  7489. : n)
  7490. );
  7491. }
  7492. },
  7493. }),
  7494. bt.extend({
  7495. valHooks: {
  7496. option: {
  7497. get: function (t) {
  7498. var e = bt.find.attr(t, 'value');
  7499. return null != e ? e : Z(bt.text(t));
  7500. },
  7501. },
  7502. select: {
  7503. get: function (t) {
  7504. var e,
  7505. n,
  7506. i,
  7507. r = t.options,
  7508. o = t.selectedIndex,
  7509. a = 'select-one' === t.type,
  7510. s = a ? null : [],
  7511. u = a ? o + 1 : r.length;
  7512. for (i = o < 0 ? u : a ? o : 0; i < u; i++)
  7513. if (
  7514. ((n = r[i]),
  7515. (n.selected || i === o) &&
  7516. !n.disabled &&
  7517. (!n.parentNode.disabled ||
  7518. !l(n.parentNode, 'optgroup')))
  7519. ) {
  7520. if (((e = bt(n).val()), a)) return e;
  7521. s.push(e);
  7522. }
  7523. return s;
  7524. },
  7525. set: function (t, e) {
  7526. for (
  7527. var n,
  7528. i,
  7529. r = t.options,
  7530. o = bt.makeArray(e),
  7531. a = r.length;
  7532. a--;
  7533. )
  7534. (i = r[a]),
  7535. (i.selected =
  7536. bt.inArray(bt.valHooks.option.get(i), o) > -1) &&
  7537. (n = !0);
  7538. return n || (t.selectedIndex = -1), o;
  7539. },
  7540. },
  7541. },
  7542. }),
  7543. bt.each(['radio', 'checkbox'], function () {
  7544. (bt.valHooks[this] = {
  7545. set: function (t, e) {
  7546. if (Array.isArray(e))
  7547. return (t.checked = bt.inArray(bt(t).val(), e) > -1);
  7548. },
  7549. }),
  7550. gt.checkOn ||
  7551. (bt.valHooks[this].get = function (t) {
  7552. return null === t.getAttribute('value') ? 'on' : t.value;
  7553. });
  7554. });
  7555. var Me = /^(?:focusinfocus|focusoutblur)$/;
  7556. bt.extend(bt.event, {
  7557. trigger: function (t, e, i, r) {
  7558. var a,
  7559. s,
  7560. u,
  7561. l,
  7562. f,
  7563. c,
  7564. h,
  7565. d = [i || st],
  7566. p = yt.call(t, 'type') ? t.type : t,
  7567. y = yt.call(t, 'namespace') ? t.namespace.split('.') : [];
  7568. if (
  7569. ((s = u = i = i || st),
  7570. 3 !== i.nodeType &&
  7571. 8 !== i.nodeType &&
  7572. !Me.test(p + bt.event.triggered) &&
  7573. (p.indexOf('.') > -1 &&
  7574. ((y = p.split('.')), (p = y.shift()), y.sort()),
  7575. (f = p.indexOf(':') < 0 && 'on' + p),
  7576. (t = t[bt.expando]
  7577. ? t
  7578. : new bt.Event(
  7579. p,
  7580. 'object' ===
  7581. ('undefined' == typeof t ? 'undefined' : n(t)) && t
  7582. )),
  7583. (t.isTrigger = r ? 2 : 3),
  7584. (t.namespace = y.join('.')),
  7585. (t.rnamespace = t.namespace
  7586. ? new RegExp(
  7587. '(^|\\.)' + y.join('\\.(?:.*\\.|)') + '(\\.|$)'
  7588. )
  7589. : null),
  7590. (t.result = void 0),
  7591. t.target || (t.target = i),
  7592. (e = null == e ? [t] : bt.makeArray(e, [t])),
  7593. (h = bt.event.special[p] || {}),
  7594. r || !h.trigger || h.trigger.apply(i, e) !== !1))
  7595. ) {
  7596. if (!r && !h.noBubble && !bt.isWindow(i)) {
  7597. for (
  7598. l = h.delegateType || p,
  7599. Me.test(l + p) || (s = s.parentNode);
  7600. s;
  7601. s = s.parentNode
  7602. )
  7603. d.push(s), (u = s);
  7604. u === (i.ownerDocument || st) &&
  7605. d.push(u.defaultView || u.parentWindow || o);
  7606. }
  7607. for (a = 0; (s = d[a++]) && !t.isPropagationStopped();)
  7608. (t.type = a > 1 ? l : h.bindType || p),
  7609. (c =
  7610. (Ht.get(s, 'events') || {})[t.type] &&
  7611. Ht.get(s, 'handle')),
  7612. c && c.apply(s, e),
  7613. (c = f && s[f]),
  7614. c &&
  7615. c.apply &&
  7616. qt(s) &&
  7617. ((t.result = c.apply(s, e)),
  7618. t.result === !1 && t.preventDefault());
  7619. return (
  7620. (t.type = p),
  7621. r ||
  7622. t.isDefaultPrevented() ||
  7623. (h._default && h._default.apply(d.pop(), e) !== !1) ||
  7624. !qt(i) ||
  7625. (f &&
  7626. bt.isFunction(i[p]) &&
  7627. !bt.isWindow(i) &&
  7628. ((u = i[f]),
  7629. u && (i[f] = null),
  7630. (bt.event.triggered = p),
  7631. i[p](),
  7632. (bt.event.triggered = void 0),
  7633. u && (i[f] = u))),
  7634. t.result
  7635. );
  7636. }
  7637. },
  7638. simulate: function (t, e, n) {
  7639. var i = bt.extend(new bt.Event(), n, {
  7640. type: t,
  7641. isSimulated: !0,
  7642. });
  7643. bt.event.trigger(i, null, e);
  7644. },
  7645. }),
  7646. bt.fn.extend({
  7647. trigger: function (t, e) {
  7648. return this.each(function () {
  7649. bt.event.trigger(t, e, this);
  7650. });
  7651. },
  7652. triggerHandler: function (t, e) {
  7653. var n = this[0];
  7654. if (n) return bt.event.trigger(t, e, n, !0);
  7655. },
  7656. }),
  7657. bt.each(
  7658. 'blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu'.split(
  7659. ' '
  7660. ),
  7661. function (t, e) {
  7662. bt.fn[e] = function (t, n) {
  7663. return arguments.length > 0
  7664. ? this.on(e, null, t, n)
  7665. : this.trigger(e);
  7666. };
  7667. }
  7668. ),
  7669. bt.fn.extend({
  7670. hover: function (t, e) {
  7671. return this.mouseenter(t).mouseleave(e || t);
  7672. },
  7673. }),
  7674. (gt.focusin = 'onfocusin' in o),
  7675. gt.focusin ||
  7676. bt.each({focus: 'focusin', blur: 'focusout'}, function (t, e) {
  7677. var n = function (t) {
  7678. bt.event.simulate(e, t.target, bt.event.fix(t));
  7679. };
  7680. bt.event.special[e] = {
  7681. setup: function () {
  7682. var i = this.ownerDocument || this,
  7683. r = Ht.access(i, e);
  7684. r || i.addEventListener(t, n, !0),
  7685. Ht.access(i, e, (r || 0) + 1);
  7686. },
  7687. teardown: function () {
  7688. var i = this.ownerDocument || this,
  7689. r = Ht.access(i, e) - 1;
  7690. r
  7691. ? Ht.access(i, e, r)
  7692. : (i.removeEventListener(t, n, !0), Ht.remove(i, e));
  7693. },
  7694. };
  7695. });
  7696. var Re = o.location,
  7697. Ee = bt.now(),
  7698. ze = /\?/;
  7699. bt.parseXML = function (t) {
  7700. var e;
  7701. if (!t || 'string' != typeof t) return null;
  7702. try {
  7703. e = new o.DOMParser().parseFromString(t, 'text/xml');
  7704. } catch (t) {
  7705. e = void 0;
  7706. }
  7707. return (
  7708. (e && !e.getElementsByTagName('parsererror').length) ||
  7709. bt.error('Invalid XML: ' + t),
  7710. e
  7711. );
  7712. };
  7713. var Ie = /\[\]$/,
  7714. Ae = /\r?\n/g,
  7715. Fe = /^(?:submit|button|image|reset|file)$/i,
  7716. Oe = /^(?:input|select|textarea|keygen)/i;
  7717. (bt.param = function (t, e) {
  7718. var n,
  7719. i = [],
  7720. r = function (t, e) {
  7721. var n = bt.isFunction(e) ? e() : e;
  7722. i[i.length] =
  7723. encodeURIComponent(t) +
  7724. '=' +
  7725. encodeURIComponent(null == n ? '' : n);
  7726. };
  7727. if (Array.isArray(t) || (t.jquery && !bt.isPlainObject(t)))
  7728. bt.each(t, function () {
  7729. r(this.name, this.value);
  7730. });
  7731. else for (n in t) tt(n, t[n], e, r);
  7732. return i.join('&');
  7733. }),
  7734. bt.fn.extend({
  7735. serialize: function () {
  7736. return bt.param(this.serializeArray());
  7737. },
  7738. serializeArray: function () {
  7739. return this.map(function () {
  7740. var t = bt.prop(this, 'elements');
  7741. return t ? bt.makeArray(t) : this;
  7742. })
  7743. .filter(function () {
  7744. var t = this.type;
  7745. return (
  7746. this.name &&
  7747. !bt(this).is(':disabled') &&
  7748. Oe.test(this.nodeName) &&
  7749. !Fe.test(t) &&
  7750. (this.checked || !Kt.test(t))
  7751. );
  7752. })
  7753. .map(function (t, e) {
  7754. var n = bt(this).val();
  7755. return null == n
  7756. ? null
  7757. : Array.isArray(n)
  7758. ? bt.map(n, function (t) {
  7759. return {
  7760. name: e.name,
  7761. value: t.replace(Ae, '\r\n'),
  7762. };
  7763. })
  7764. : {name: e.name, value: n.replace(Ae, '\r\n')};
  7765. })
  7766. .get();
  7767. },
  7768. });
  7769. var Be = /%20/g,
  7770. Le = /#.*$/,
  7771. Ne = /([?&])_=[^&]*/,
  7772. qe = /^(.*?):[ \t]*([^\r\n]*)$/gm,
  7773. He = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
  7774. je = /^(?:GET|HEAD)$/,
  7775. We = /^\/\//,
  7776. Ue = {},
  7777. Ge = {},
  7778. Ve = '*/'.concat('*'),
  7779. Ye = st.createElement('a');
  7780. (Ye.href = Re.href),
  7781. bt.extend({
  7782. active: 0,
  7783. lastModified: {},
  7784. etag: {},
  7785. ajaxSettings: {
  7786. url: Re.href,
  7787. type: 'GET',
  7788. isLocal: He.test(Re.protocol),
  7789. global: !0,
  7790. processData: !0,
  7791. async: !0,
  7792. contentType: 'application/x-www-form-urlencoded; charset=UTF-8',
  7793. accepts: {
  7794. '*': Ve,
  7795. text: 'text/plain',
  7796. html: 'text/html',
  7797. xml: 'application/xml, text/xml',
  7798. json: 'application/json, text/javascript',
  7799. },
  7800. contents: {xml: /\bxml\b/, html: /\bhtml/, json: /\bjson\b/},
  7801. responseFields: {
  7802. xml: 'responseXML',
  7803. text: 'responseText',
  7804. json: 'responseJSON',
  7805. },
  7806. converters: {
  7807. '* text': String,
  7808. 'text html': !0,
  7809. 'text json': JSON.parse,
  7810. 'text xml': bt.parseXML,
  7811. },
  7812. flatOptions: {url: !0, context: !0},
  7813. },
  7814. ajaxSetup: function (t, e) {
  7815. return e
  7816. ? it(it(t, bt.ajaxSettings), e)
  7817. : it(bt.ajaxSettings, t);
  7818. },
  7819. ajaxPrefilter: et(Ue),
  7820. ajaxTransport: et(Ge),
  7821. ajax: function (t, e) {
  7822. function i(t, e, n, i) {
  7823. var u,
  7824. f,
  7825. d,
  7826. p,
  7827. w,
  7828. _ = e;
  7829. c ||
  7830. ((c = !0),
  7831. l && o.clearTimeout(l),
  7832. (r = void 0),
  7833. (s = i || ''),
  7834. (C.readyState = t > 0 ? 4 : 0),
  7835. (u = (t >= 200 && t < 300) || 304 === t),
  7836. n && (p = rt(y, C, n)),
  7837. (p = ot(y, p, C, u)),
  7838. u
  7839. ? (y.ifModified &&
  7840. ((w = C.getResponseHeader('Last-Modified')),
  7841. w && (bt.lastModified[a] = w),
  7842. (w = C.getResponseHeader('etag')),
  7843. w && (bt.etag[a] = w)),
  7844. 204 === t || 'HEAD' === y.type
  7845. ? (_ = 'nocontent')
  7846. : 304 === t
  7847. ? (_ = 'notmodified')
  7848. : ((_ = p.state),
  7849. (f = p.data),
  7850. (d = p.error),
  7851. (u = !d)))
  7852. : ((d = _),
  7853. (!t && _) || ((_ = 'error'), t < 0 && (t = 0))),
  7854. (C.status = t),
  7855. (C.statusText = (e || _) + ''),
  7856. u
  7857. ? g.resolveWith(m, [f, _, C])
  7858. : g.rejectWith(m, [C, _, d]),
  7859. C.statusCode(b),
  7860. (b = void 0),
  7861. h &&
  7862. v.trigger(u ? 'ajaxSuccess' : 'ajaxError', [
  7863. C,
  7864. y,
  7865. u ? f : d,
  7866. ]),
  7867. S.fireWith(m, [C, _]),
  7868. h &&
  7869. (v.trigger('ajaxComplete', [C, y]),
  7870. --bt.active || bt.event.trigger('ajaxStop')));
  7871. }
  7872. 'object' === ('undefined' == typeof t ? 'undefined' : n(t)) &&
  7873. ((e = t), (t = void 0)),
  7874. (e = e || {});
  7875. var r,
  7876. a,
  7877. s,
  7878. u,
  7879. l,
  7880. f,
  7881. c,
  7882. h,
  7883. d,
  7884. p,
  7885. y = bt.ajaxSetup({}, e),
  7886. m = y.context || y,
  7887. v = y.context && (m.nodeType || m.jquery) ? bt(m) : bt.event,
  7888. g = bt.Deferred(),
  7889. S = bt.Callbacks('once memory'),
  7890. b = y.statusCode || {},
  7891. w = {},
  7892. _ = {},
  7893. P = 'canceled',
  7894. C = {
  7895. readyState: 0,
  7896. getResponseHeader: function (t) {
  7897. var e;
  7898. if (c) {
  7899. if (!u)
  7900. for (u = {}; (e = qe.exec(s));)
  7901. u[e[1].toLowerCase()] = e[2];
  7902. e = u[t.toLowerCase()];
  7903. }
  7904. return null == e ? null : e;
  7905. },
  7906. getAllResponseHeaders: function () {
  7907. return c ? s : null;
  7908. },
  7909. setRequestHeader: function (t, e) {
  7910. return (
  7911. null == c &&
  7912. ((t = _[t.toLowerCase()] = _[t.toLowerCase()] || t),
  7913. (w[t] = e)),
  7914. this
  7915. );
  7916. },
  7917. overrideMimeType: function (t) {
  7918. return null == c && (y.mimeType = t), this;
  7919. },
  7920. statusCode: function (t) {
  7921. var e;
  7922. if (t)
  7923. if (c) C.always(t[C.status]);
  7924. else for (e in t) b[e] = [b[e], t[e]];
  7925. return this;
  7926. },
  7927. abort: function (t) {
  7928. var e = t || P;
  7929. return r && r.abort(e), i(0, e), this;
  7930. },
  7931. };
  7932. if (
  7933. (g.promise(C),
  7934. (y.url = ((t || y.url || Re.href) + '').replace(
  7935. We,
  7936. Re.protocol + '//'
  7937. )),
  7938. (y.type = e.method || e.type || y.method || y.type),
  7939. (y.dataTypes = (y.dataType || '*')
  7940. .toLowerCase()
  7941. .match(Ot) || ['']),
  7942. null == y.crossDomain)
  7943. ) {
  7944. f = st.createElement('a');
  7945. try {
  7946. console.log("YE", Ye, Ye.host)
  7947. (f.href = y.url),
  7948. (f.href = f.href),
  7949. (y.crossDomain =
  7950. Ye.protocol + '//' + Ye.host !=
  7951. f.protocol + '//' + f.host);
  7952. } catch (t) {
  7953. y.crossDomain = !0;
  7954. }
  7955. }
  7956. if (
  7957. (y.data &&
  7958. y.processData &&
  7959. 'string' != typeof y.data &&
  7960. (y.data = bt.param(y.data, y.traditional)),
  7961. nt(Ue, y, e, C),
  7962. c)
  7963. )
  7964. return C;
  7965. (h = bt.event && y.global),
  7966. h && 0 === bt.active++ && bt.event.trigger('ajaxStart'),
  7967. (y.type = y.type.toUpperCase()),
  7968. (y.hasContent = !je.test(y.type)),
  7969. (a = y.url.replace(Le, '')),
  7970. y.hasContent
  7971. ? y.data &&
  7972. y.processData &&
  7973. 0 ===
  7974. (y.contentType || '').indexOf(
  7975. 'application/x-www-form-urlencoded'
  7976. ) &&
  7977. (y.data = y.data.replace(Be, '+'))
  7978. : ((p = y.url.slice(a.length)),
  7979. y.data &&
  7980. ((a += (ze.test(a) ? '&' : '?') + y.data),
  7981. delete y.data),
  7982. y.cache === !1 &&
  7983. ((a = a.replace(Ne, '$1')),
  7984. (p = (ze.test(a) ? '&' : '?') + '_=' + Ee++ + p)),
  7985. (y.url = a + p)),
  7986. y.ifModified &&
  7987. (bt.lastModified[a] &&
  7988. C.setRequestHeader(
  7989. 'If-Modified-Since',
  7990. bt.lastModified[a]
  7991. ),
  7992. bt.etag[a] &&
  7993. C.setRequestHeader('If-None-Match', bt.etag[a])),
  7994. ((y.data && y.hasContent && y.contentType !== !1) ||
  7995. e.contentType) &&
  7996. C.setRequestHeader('Content-Type', y.contentType),
  7997. C.setRequestHeader(
  7998. 'Accept',
  7999. y.dataTypes[0] && y.accepts[y.dataTypes[0]]
  8000. ? y.accepts[y.dataTypes[0]] +
  8001. ('*' !== y.dataTypes[0] ? ', ' + Ve + '; q=0.01' : '')
  8002. : y.accepts['*']
  8003. );
  8004. for (d in y.headers) C.setRequestHeader(d, y.headers[d]);
  8005. if (y.beforeSend && (y.beforeSend.call(m, C, y) === !1 || c))
  8006. return C.abort();
  8007. if (
  8008. ((P = 'abort'),
  8009. S.add(y.complete),
  8010. C.done(y.success),
  8011. C.fail(y.error),
  8012. (r = nt(Ge, y, e, C)))
  8013. ) {
  8014. if (
  8015. ((C.readyState = 1), h && v.trigger('ajaxSend', [C, y]), c)
  8016. )
  8017. return C;
  8018. y.async &&
  8019. y.timeout > 0 &&
  8020. (l = o.setTimeout(function () {
  8021. C.abort('timeout');
  8022. }, y.timeout));
  8023. try {
  8024. (c = !1), r.send(w, i);
  8025. } catch (t) {
  8026. if (c) throw t;
  8027. i(-1, t);
  8028. }
  8029. } else i(-1, 'No Transport');
  8030. return C;
  8031. },
  8032. getJSON: function (t, e, n) {
  8033. return bt.get(t, e, n, 'json');
  8034. },
  8035. getScript: function (t, e) {
  8036. return bt.get(t, void 0, e, 'script');
  8037. },
  8038. }),
  8039. bt.each(['get', 'post'], function (t, e) {
  8040. bt[e] = function (t, n, i, r) {
  8041. return (
  8042. bt.isFunction(n) && ((r = r || i), (i = n), (n = void 0)),
  8043. bt.ajax(
  8044. bt.extend(
  8045. {url: t, type: e, dataType: r, data: n, success: i},
  8046. bt.isPlainObject(t) && t
  8047. )
  8048. )
  8049. );
  8050. };
  8051. }),
  8052. (bt._evalUrl = function (t) {
  8053. return bt.ajax({
  8054. url: t,
  8055. type: 'GET',
  8056. dataType: 'script',
  8057. cache: !0,
  8058. async: !1,
  8059. global: !1,
  8060. throws: !0,
  8061. });
  8062. }),
  8063. bt.fn.extend({
  8064. wrapAll: function (t) {
  8065. var e;
  8066. return (
  8067. this[0] &&
  8068. (bt.isFunction(t) && (t = t.call(this[0])),
  8069. (e = bt(t, this[0].ownerDocument)
  8070. .eq(0)
  8071. .clone(!0)),
  8072. this[0].parentNode && e.insertBefore(this[0]),
  8073. e
  8074. .map(function () {
  8075. for (var t = this; t.firstElementChild;)
  8076. t = t.firstElementChild;
  8077. return t;
  8078. })
  8079. .append(this)),
  8080. this
  8081. );
  8082. },
  8083. wrapInner: function (t) {
  8084. return bt.isFunction(t)
  8085. ? this.each(function (e) {
  8086. bt(this).wrapInner(t.call(this, e));
  8087. })
  8088. : this.each(function () {
  8089. var e = bt(this),
  8090. n = e.contents();
  8091. n.length ? n.wrapAll(t) : e.append(t);
  8092. });
  8093. },
  8094. wrap: function (t) {
  8095. var e = bt.isFunction(t);
  8096. return this.each(function (n) {
  8097. bt(this).wrapAll(e ? t.call(this, n) : t);
  8098. });
  8099. },
  8100. unwrap: function (t) {
  8101. return (
  8102. this.parent(t)
  8103. .not('body')
  8104. .each(function () {
  8105. bt(this).replaceWith(this.childNodes);
  8106. }),
  8107. this
  8108. );
  8109. },
  8110. }),
  8111. (bt.expr.pseudos.hidden = function (t) {
  8112. return !bt.expr.pseudos.visible(t);
  8113. }),
  8114. (bt.expr.pseudos.visible = function (t) {
  8115. return !!(
  8116. t.offsetWidth ||
  8117. t.offsetHeight ||
  8118. t.getClientRects().length
  8119. );
  8120. }),
  8121. (bt.ajaxSettings.xhr = function () {
  8122. try {
  8123. return new o.XMLHttpRequest();
  8124. } catch (t) {
  8125. }
  8126. });
  8127. var Xe = {0: 200, 1223: 204},
  8128. Je = bt.ajaxSettings.xhr();
  8129. (gt.cors = !!Je && 'withCredentials' in Je),
  8130. (gt.ajax = Je = !!Je),
  8131. bt.ajaxTransport(function (t) {
  8132. var e, n;
  8133. if (gt.cors || (Je && !t.crossDomain))
  8134. return {
  8135. send: function (i, r) {
  8136. var a,
  8137. s = t.xhr();
  8138. if (
  8139. (s.open(t.type, t.url, t.async, t.username, t.password),
  8140. t.xhrFields)
  8141. )
  8142. for (a in t.xhrFields) s[a] = t.xhrFields[a];
  8143. t.mimeType &&
  8144. s.overrideMimeType &&
  8145. s.overrideMimeType(t.mimeType),
  8146. t.crossDomain ||
  8147. i['X-Requested-With'] ||
  8148. (i['X-Requested-With'] = 'XMLHttpRequest');
  8149. for (a in i) s.setRequestHeader(a, i[a]);
  8150. (e = function (t) {
  8151. return function () {
  8152. e &&
  8153. ((e = n = s.onload = s.onerror = s.onabort = s.onreadystatechange = null),
  8154. 'abort' === t
  8155. ? s.abort()
  8156. : 'error' === t
  8157. ? 'number' != typeof s.status
  8158. ? r(0, 'error')
  8159. : r(s.status, s.statusText)
  8160. : r(
  8161. Xe[s.status] || s.status,
  8162. s.statusText,
  8163. 'text' !== (s.responseType || 'text') ||
  8164. 'string' != typeof s.responseText
  8165. ? {binary: s.response}
  8166. : {text: s.responseText},
  8167. s.getAllResponseHeaders()
  8168. ));
  8169. };
  8170. }),
  8171. (s.onload = e()),
  8172. (n = s.onerror = e('error')),
  8173. void 0 !== s.onabort
  8174. ? (s.onabort = n)
  8175. : (s.onreadystatechange = function () {
  8176. 4 === s.readyState &&
  8177. o.setTimeout(function () {
  8178. e && n();
  8179. });
  8180. }),
  8181. (e = e('abort'));
  8182. try {
  8183. s.send((t.hasContent && t.data) || null);
  8184. } catch (t) {
  8185. if (e) throw t;
  8186. }
  8187. },
  8188. abort: function () {
  8189. e && e();
  8190. },
  8191. };
  8192. }),
  8193. bt.ajaxPrefilter(function (t) {
  8194. t.crossDomain && (t.contents.script = !1);
  8195. }),
  8196. bt.ajaxSetup({
  8197. accepts: {
  8198. script:
  8199. 'text/javascript, application/javascript, application/ecmascript, application/x-ecmascript',
  8200. },
  8201. contents: {script: /\b(?:java|ecma)script\b/},
  8202. converters: {
  8203. 'text script': function (t) {
  8204. return bt.globalEval(t), t;
  8205. },
  8206. },
  8207. }),
  8208. bt.ajaxPrefilter('script', function (t) {
  8209. void 0 === t.cache && (t.cache = !1),
  8210. t.crossDomain && (t.type = 'GET');
  8211. }),
  8212. bt.ajaxTransport('script', function (t) {
  8213. if (t.crossDomain) {
  8214. var e, n;
  8215. return {
  8216. send: function (i, r) {
  8217. (e = bt('<script>')
  8218. .prop({charset: t.scriptCharset, src: t.url})
  8219. .on(
  8220. 'load error',
  8221. (n = function (t) {
  8222. e.remove(),
  8223. (n = null),
  8224. t && r('error' === t.type ? 404 : 200, t.type);
  8225. })
  8226. )),
  8227. st.head.appendChild(e[0]);
  8228. },
  8229. abort: function () {
  8230. n && n();
  8231. },
  8232. };
  8233. }
  8234. });
  8235. var $e = [],
  8236. Ke = /(=)\?(?=&|$)|\?\?/;
  8237. bt.ajaxSetup({
  8238. jsonp: 'callback',
  8239. jsonpCallback: function () {
  8240. var t = $e.pop() || bt.expando + '_' + Ee++;
  8241. return (this[t] = !0), t;
  8242. },
  8243. }),
  8244. bt.ajaxPrefilter('json jsonp', function (t, e, n) {
  8245. var i,
  8246. r,
  8247. a,
  8248. s =
  8249. t.jsonp !== !1 &&
  8250. (Ke.test(t.url)
  8251. ? 'url'
  8252. : 'string' == typeof t.data &&
  8253. 0 ===
  8254. (t.contentType || '').indexOf(
  8255. 'application/x-www-form-urlencoded'
  8256. ) &&
  8257. Ke.test(t.data) &&
  8258. 'data');
  8259. if (s || 'jsonp' === t.dataTypes[0])
  8260. return (
  8261. (i = t.jsonpCallback = bt.isFunction(t.jsonpCallback)
  8262. ? t.jsonpCallback()
  8263. : t.jsonpCallback),
  8264. s
  8265. ? (t[s] = t[s].replace(Ke, '$1' + i))
  8266. : t.jsonp !== !1 &&
  8267. (t.url +=
  8268. (ze.test(t.url) ? '&' : '?') + t.jsonp + '=' + i),
  8269. (t.converters['script json'] = function () {
  8270. return a || bt.error(i + ' was not called'), a[0];
  8271. }),
  8272. (t.dataTypes[0] = 'json'),
  8273. (r = o[i]),
  8274. (o[i] = function () {
  8275. a = arguments;
  8276. }),
  8277. n.always(function () {
  8278. void 0 === r ? bt(o).removeProp(i) : (o[i] = r),
  8279. t[i] && ((t.jsonpCallback = e.jsonpCallback), $e.push(i)),
  8280. a && bt.isFunction(r) && r(a[0]),
  8281. (a = r = void 0);
  8282. }),
  8283. 'script'
  8284. );
  8285. }),
  8286. (gt.createHTMLDocument = (function () {
  8287. var t = st.implementation.createHTMLDocument('').body;
  8288. return (
  8289. (t.innerHTML = '<form></form><form></form>'),
  8290. 2 === t.childNodes.length
  8291. );
  8292. })()),
  8293. (bt.parseHTML = function (t, e, n) {
  8294. if ('string' != typeof t) return [];
  8295. 'boolean' == typeof e && ((n = e), (e = !1));
  8296. var i, r, o;
  8297. return (
  8298. e ||
  8299. (gt.createHTMLDocument
  8300. ? ((e = st.implementation.createHTMLDocument('')),
  8301. (i = e.createElement('base')),
  8302. (i.href = st.location.href),
  8303. e.head.appendChild(i))
  8304. : (e = st)),
  8305. (r = Mt.exec(t)),
  8306. (o = !n && []),
  8307. r
  8308. ? [e.createElement(r[1])]
  8309. : ((r = x([t], e, o)),
  8310. o && o.length && bt(o).remove(),
  8311. bt.merge([], r.childNodes))
  8312. );
  8313. }),
  8314. (bt.fn.load = function (t, e, i) {
  8315. var r,
  8316. o,
  8317. a,
  8318. s = this,
  8319. u = t.indexOf(' ');
  8320. return (
  8321. u > -1 && ((r = Z(t.slice(u))), (t = t.slice(0, u))),
  8322. bt.isFunction(e)
  8323. ? ((i = e), (e = void 0))
  8324. : e &&
  8325. 'object' ===
  8326. ('undefined' == typeof e ? 'undefined' : n(e)) &&
  8327. (o = 'POST'),
  8328. s.length > 0 &&
  8329. bt
  8330. .ajax({
  8331. url: t,
  8332. type: o || 'GET',
  8333. dataType: 'html',
  8334. data: e,
  8335. })
  8336. .done(function (t) {
  8337. (a = arguments),
  8338. s.html(
  8339. r
  8340. ? bt('<div>')
  8341. .append(bt.parseHTML(t))
  8342. .find(r)
  8343. : t
  8344. );
  8345. })
  8346. .always(
  8347. i &&
  8348. function (t, e) {
  8349. s.each(function () {
  8350. i.apply(this, a || [t.responseText, e, t]);
  8351. });
  8352. }
  8353. ),
  8354. this
  8355. );
  8356. }),
  8357. bt.each(
  8358. [
  8359. 'ajaxStart',
  8360. 'ajaxStop',
  8361. 'ajaxComplete',
  8362. 'ajaxError',
  8363. 'ajaxSuccess',
  8364. 'ajaxSend',
  8365. ],
  8366. function (t, e) {
  8367. bt.fn[e] = function (t) {
  8368. return this.on(e, t);
  8369. };
  8370. }
  8371. ),
  8372. (bt.expr.pseudos.animated = function (t) {
  8373. return bt.grep(bt.timers, function (e) {
  8374. return t === e.elem;
  8375. }).length;
  8376. }),
  8377. (bt.offset = {
  8378. setOffset: function (t, e, n) {
  8379. var i,
  8380. r,
  8381. o,
  8382. a,
  8383. s,
  8384. u,
  8385. l,
  8386. f = bt.css(t, 'position'),
  8387. c = bt(t),
  8388. h = {};
  8389. 'static' === f && (t.style.position = 'relative'),
  8390. (s = c.offset()),
  8391. (o = bt.css(t, 'top')),
  8392. (u = bt.css(t, 'left')),
  8393. (l =
  8394. ('absolute' === f || 'fixed' === f) &&
  8395. (o + u).indexOf('auto') > -1),
  8396. l
  8397. ? ((i = c.position()), (a = i.top), (r = i.left))
  8398. : ((a = parseFloat(o) || 0), (r = parseFloat(u) || 0)),
  8399. bt.isFunction(e) && (e = e.call(t, n, bt.extend({}, s))),
  8400. null != e.top && (h.top = e.top - s.top + a),
  8401. null != e.left && (h.left = e.left - s.left + r),
  8402. 'using' in e ? e.using.call(t, h) : c.css(h);
  8403. },
  8404. }),
  8405. bt.fn.extend({
  8406. offset: function (t) {
  8407. if (arguments.length)
  8408. return void 0 === t
  8409. ? this
  8410. : this.each(function (e) {
  8411. bt.offset.setOffset(this, t, e);
  8412. });
  8413. var e,
  8414. n,
  8415. i,
  8416. r,
  8417. o = this[0];
  8418. if (o)
  8419. return o.getClientRects().length
  8420. ? ((i = o.getBoundingClientRect()),
  8421. (e = o.ownerDocument),
  8422. (n = e.documentElement),
  8423. (r = e.defaultView),
  8424. {
  8425. top: i.top + r.pageYOffset - n.clientTop,
  8426. left: i.left + r.pageXOffset - n.clientLeft,
  8427. })
  8428. : {top: 0, left: 0};
  8429. },
  8430. position: function () {
  8431. if (this[0]) {
  8432. var t,
  8433. e,
  8434. n = this[0],
  8435. i = {top: 0, left: 0};
  8436. return (
  8437. 'fixed' === bt.css(n, 'position')
  8438. ? (e = n.getBoundingClientRect())
  8439. : ((t = this.offsetParent()),
  8440. (e = this.offset()),
  8441. l(t[0], 'html') || (i = t.offset()),
  8442. (i = {
  8443. top: i.top + bt.css(t[0], 'borderTopWidth', !0),
  8444. left: i.left + bt.css(t[0], 'borderLeftWidth', !0),
  8445. })),
  8446. {
  8447. top: e.top - i.top - bt.css(n, 'marginTop', !0),
  8448. left: e.left - i.left - bt.css(n, 'marginLeft', !0),
  8449. }
  8450. );
  8451. }
  8452. },
  8453. offsetParent: function () {
  8454. return this.map(function () {
  8455. for (
  8456. var t = this.offsetParent;
  8457. t && 'static' === bt.css(t, 'position');
  8458. )
  8459. t = t.offsetParent;
  8460. return t || ne;
  8461. });
  8462. },
  8463. }),
  8464. bt.each(
  8465. {scrollLeft: 'pageXOffset', scrollTop: 'pageYOffset'},
  8466. function (t, e) {
  8467. var n = 'pageYOffset' === e;
  8468. bt.fn[t] = function (i) {
  8469. return Nt(
  8470. this,
  8471. function (t, i, r) {
  8472. var o;
  8473. return (
  8474. bt.isWindow(t)
  8475. ? (o = t)
  8476. : 9 === t.nodeType && (o = t.defaultView),
  8477. void 0 === r
  8478. ? o
  8479. ? o[e]
  8480. : t[i]
  8481. : void (o
  8482. ? o.scrollTo(
  8483. n ? o.pageXOffset : r,
  8484. n ? r : o.pageYOffset
  8485. )
  8486. : (t[i] = r))
  8487. );
  8488. },
  8489. t,
  8490. i,
  8491. arguments.length
  8492. );
  8493. };
  8494. }
  8495. ),
  8496. bt.each(['top', 'left'], function (t, e) {
  8497. bt.cssHooks[e] = L(gt.pixelPosition, function (t, n) {
  8498. if (n)
  8499. return (
  8500. (n = B(t, e)), he.test(n) ? bt(t).position()[e] + 'px' : n
  8501. );
  8502. });
  8503. }),
  8504. bt.each({Height: 'height', Width: 'width'}, function (t, e) {
  8505. bt.each(
  8506. {padding: 'inner' + t, content: e, '': 'outer' + t},
  8507. function (n, i) {
  8508. bt.fn[i] = function (r, o) {
  8509. var a = arguments.length && (n || 'boolean' != typeof r),
  8510. s = n || (r === !0 || o === !0 ? 'margin' : 'border');
  8511. return Nt(
  8512. this,
  8513. function (e, n, r) {
  8514. var o;
  8515. return bt.isWindow(e)
  8516. ? 0 === i.indexOf('outer')
  8517. ? e['inner' + t]
  8518. : e.document.documentElement['client' + t]
  8519. : 9 === e.nodeType
  8520. ? ((o = e.documentElement),
  8521. Math.max(
  8522. e.body['scroll' + t],
  8523. o['scroll' + t],
  8524. e.body['offset' + t],
  8525. o['offset' + t],
  8526. o['client' + t]
  8527. ))
  8528. : void 0 === r
  8529. ? bt.css(e, n, s)
  8530. : bt.style(e, n, r, s);
  8531. },
  8532. e,
  8533. a ? r : void 0,
  8534. a
  8535. );
  8536. };
  8537. }
  8538. );
  8539. }),
  8540. bt.fn.extend({
  8541. bind: function (t, e, n) {
  8542. return this.on(t, null, e, n);
  8543. },
  8544. unbind: function (t, e) {
  8545. return this.off(t, null, e);
  8546. },
  8547. delegate: function (t, e, n, i) {
  8548. return this.on(e, t, n, i);
  8549. },
  8550. undelegate: function (t, e, n) {
  8551. return 1 === arguments.length
  8552. ? this.off(t, '**')
  8553. : this.off(e, t || '**', n);
  8554. },
  8555. }),
  8556. (bt.holdReady = function (t) {
  8557. t ? bt.readyWait++ : bt.ready(!0);
  8558. }),
  8559. (bt.isArray = Array.isArray),
  8560. (bt.parseJSON = JSON.parse),
  8561. (bt.nodeName = l),
  8562. (i = []),
  8563. (r = function () {
  8564. return bt;
  8565. }.apply(e, i)),
  8566. !(void 0 !== r && (t.exports = r));
  8567. var Ze = o.jQuery,
  8568. Qe = o.$;
  8569. return (
  8570. (bt.noConflict = function (t) {
  8571. return (
  8572. o.$ === bt && (o.$ = Qe),
  8573. t && o.jQuery === bt && (o.jQuery = Ze),
  8574. bt
  8575. );
  8576. }),
  8577. a || (o.jQuery = o.$ = bt),
  8578. bt
  8579. );
  8580. });
  8581. }.call(e, n(8)(t)));
  8582. },
  8583. function (t, e, n) {
  8584. 'use strict';
  8585. var i = n(6),
  8586. r = n(7),
  8587. o = r;
  8588. (o.v1 = i), (o.v4 = r), (t.exports = o);
  8589. },
  8590. function (t, e) {
  8591. 'use strict';
  8592. function n(t, e) {
  8593. var n = e || 0,
  8594. r = i;
  8595. return (
  8596. r[t[n++]] +
  8597. r[t[n++]] +
  8598. r[t[n++]] +
  8599. r[t[n++]] +
  8600. '-' +
  8601. r[t[n++]] +
  8602. r[t[n++]] +
  8603. '-' +
  8604. r[t[n++]] +
  8605. r[t[n++]] +
  8606. '-' +
  8607. r[t[n++]] +
  8608. r[t[n++]] +
  8609. '-' +
  8610. r[t[n++]] +
  8611. r[t[n++]] +
  8612. r[t[n++]] +
  8613. r[t[n++]] +
  8614. r[t[n++]] +
  8615. r[t[n++]]
  8616. );
  8617. }
  8618. for (var i = [], r = 0; r < 256; ++r)
  8619. i[r] = (r + 256).toString(16).substr(1);
  8620. t.exports = n;
  8621. },
  8622. function (t, e) {
  8623. (function (e) {
  8624. 'use strict';
  8625. var n,
  8626. i = e.crypto || e.msCrypto;
  8627. if (i && i.getRandomValues) {
  8628. var r = new Uint8Array(16);
  8629. n = function () {
  8630. return i.getRandomValues(r), r;
  8631. };
  8632. }
  8633. if (!n) {
  8634. var o = new Array(16);
  8635. n = function () {
  8636. for (var t, e = 0; e < 16; e++)
  8637. 0 === (3 & e) && (t = 4294967296 * Math.random()),
  8638. (o[e] = (t >>> ((3 & e) << 3)) & 255);
  8639. return o;
  8640. };
  8641. }
  8642. t.exports = n;
  8643. }.call(
  8644. e,
  8645. (function () {
  8646. return this;
  8647. })()
  8648. ));
  8649. },
  8650. function (t, e) {
  8651. 'use strict';
  8652. function n(t, e) {
  8653. if (!(t instanceof e))
  8654. throw new TypeError('Cannot call a class as a function');
  8655. }
  8656. Object.defineProperty(e, '__esModule', {value: !0});
  8657. var i = (function () {
  8658. function t(t, e) {
  8659. for (var n = 0; n < e.length; n++) {
  8660. var i = e[n];
  8661. (i.enumerable = i.enumerable || !1),
  8662. (i.configurable = !0),
  8663. 'value' in i && (i.writable = !0),
  8664. Object.defineProperty(t, i.key, i);
  8665. }
  8666. }
  8667. return function (e, n, i) {
  8668. return n && t(e.prototype, n), i && t(e, i), e;
  8669. };
  8670. })(),
  8671. r = (function () {
  8672. function t() {
  8673. n(this, t),
  8674. (this._keyStr =
  8675. 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=');
  8676. }
  8677. return (
  8678. i(t, [
  8679. {
  8680. key: '$',
  8681. value: function (t) {
  8682. var e = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,
  8683. n = /^(?:\s*(<[\w\W]+>)[^>]*|.([\w-]*))$/;
  8684. if (e.test(t)) {
  8685. var i = e.exec(t);
  8686. return document.getElementById(i[2]);
  8687. }
  8688. if (n.test(t)) {
  8689. for (
  8690. var r = n.exec(t),
  8691. o = document.getElementsByTagName('*'),
  8692. a = [],
  8693. s = 0,
  8694. u = o.length;
  8695. s < u;
  8696. s++
  8697. )
  8698. o[s].className.match(
  8699. new RegExp('(\\s|^)' + r[2] + '(\\s|$)')
  8700. ) && a.push(o[s]);
  8701. return a;
  8702. }
  8703. },
  8704. },
  8705. {
  8706. key: 'dateFormat',
  8707. value: function (t, e) {
  8708. var n = {
  8709. 'M+': t.getMonth() + 1,
  8710. 'd+': t.getDate(),
  8711. 'h+': t.getHours(),
  8712. 'm+': t.getMinutes(),
  8713. 's+': t.getSeconds(),
  8714. 'q+': Math.floor((t.getMonth() + 3) / 3),
  8715. S: t.getMilliseconds(),
  8716. };
  8717. /(y+)/.test(e) &&
  8718. (e = e.replace(
  8719. RegExp.$1,
  8720. (t.getFullYear() + '').substr(4 - RegExp.$1.length)
  8721. ));
  8722. for (var i in n)
  8723. new RegExp('(' + i + ')').test(e) &&
  8724. (e = e.replace(
  8725. RegExp.$1,
  8726. 1 === RegExp.$1.length
  8727. ? n[i]
  8728. : ('00' + n[i]).substr(('' + n[i]).length)
  8729. ));
  8730. return e;
  8731. },
  8732. },
  8733. {
  8734. key: 'downloadFile',
  8735. value: function (t, e) {
  8736. var n = t;
  8737. t instanceof Blob || t instanceof File || (n = new Blob([t]));
  8738. var i = window.URL.createObjectURL(n),
  8739. r = window.document.createElement('a');
  8740. (r.href = i), (r.download = e);
  8741. var o = document.createEvent('MouseEvents');
  8742. o.initEvent('click', !0, !0), r.dispatchEvent(o);
  8743. },
  8744. },
  8745. {
  8746. key: 'createxmlDoc',
  8747. value: function () {
  8748. for (
  8749. var t,
  8750. e = [
  8751. 'MSXML2.DOMDocument',
  8752. 'MSXML2.DOMDocument.5.0',
  8753. 'MSXML2.DOMDocument.4.0',
  8754. 'MSXML2.DOMDocument.3.0',
  8755. 'Microsoft.XmlDom',
  8756. ],
  8757. n = 0,
  8758. i = e.length;
  8759. n < i;
  8760. n++
  8761. )
  8762. try {
  8763. t = new ActiveXObject(e[n]);
  8764. break;
  8765. } catch (e) {
  8766. t = document.implementation.createDocument('', '', null);
  8767. break;
  8768. }
  8769. return (t.async = 'false'), t;
  8770. },
  8771. },
  8772. {
  8773. key: 'parseXmlFromStr',
  8774. value: function (t) {
  8775. if (null === t || '' === t) return null;
  8776. var e = this.createxmlDoc();
  8777. if (
  8778. 'Netscape' === navigator.appName ||
  8779. 'Opera' === navigator.appName
  8780. ) {
  8781. var n = new DOMParser();
  8782. e = n.parseFromString(t, 'text/xml');
  8783. } else e.loadXML(t);
  8784. return e;
  8785. },
  8786. },
  8787. {
  8788. key: 'encode',
  8789. value: function (t) {
  8790. var e,
  8791. n,
  8792. i,
  8793. r,
  8794. o,
  8795. a,
  8796. s,
  8797. u = '',
  8798. l = 0;
  8799. for (t = this._utf8_encode(t); l < t.length;)
  8800. (e = t.charCodeAt(l++)),
  8801. (n = t.charCodeAt(l++)),
  8802. (i = t.charCodeAt(l++)),
  8803. (r = e >> 2),
  8804. (o = ((3 & e) << 4) | (n >> 4)),
  8805. (a = ((15 & n) << 2) | (i >> 6)),
  8806. (s = 63 & i),
  8807. isNaN(n) ? (a = s = 64) : isNaN(i) && (s = 64),
  8808. (u =
  8809. u +
  8810. this._keyStr.charAt(r) +
  8811. this._keyStr.charAt(o) +
  8812. this._keyStr.charAt(a) +
  8813. this._keyStr.charAt(s));
  8814. return u;
  8815. },
  8816. },
  8817. {
  8818. key: 'decode',
  8819. value: function (t) {
  8820. var e,
  8821. n,
  8822. i,
  8823. r,
  8824. o,
  8825. a,
  8826. s,
  8827. u = '',
  8828. l = 0;
  8829. for (t = t.replace(/[^A-Za-z0-9+\/=]/g, ''); l < t.length;)
  8830. (r = this._keyStr.indexOf(t.charAt(l++))),
  8831. (o = this._keyStr.indexOf(t.charAt(l++))),
  8832. (a = this._keyStr.indexOf(t.charAt(l++))),
  8833. (s = this._keyStr.indexOf(t.charAt(l++))),
  8834. (e = (r << 2) | (o >> 4)),
  8835. (n = ((15 & o) << 4) | (a >> 2)),
  8836. (i = ((3 & a) << 6) | s),
  8837. (u += String.fromCharCode(e)),
  8838. 64 !== a && (u += String.fromCharCode(n)),
  8839. 64 !== s && (u += String.fromCharCode(i));
  8840. return (u = this._utf8_decode(u));
  8841. },
  8842. },
  8843. {
  8844. key: '_utf8_encode',
  8845. value: function (t) {
  8846. t = t.replace(/\r\n/g, '\n');
  8847. for (var e = '', n = 0; n < t.length; n++) {
  8848. var i = t.charCodeAt(n);
  8849. i < 128
  8850. ? (e += String.fromCharCode(i))
  8851. : i > 127 && i < 2048
  8852. ? ((e += String.fromCharCode((i >> 6) | 192)),
  8853. (e += String.fromCharCode((63 & i) | 128)))
  8854. : ((e += String.fromCharCode((i >> 12) | 224)),
  8855. (e += String.fromCharCode(((i >> 6) & 63) | 128)),
  8856. (e += String.fromCharCode((63 & i) | 128)));
  8857. }
  8858. return e;
  8859. },
  8860. },
  8861. {
  8862. key: '_utf8_decode',
  8863. value: function (t) {
  8864. for (var e = '', n = 0, i = 0, r = 0; n < t.length;)
  8865. if (((i = t.charCodeAt(n)), i < 128))
  8866. (e += String.fromCharCode(i)), n++;
  8867. else if (i > 191 && i < 224)
  8868. (r = t.charCodeAt(n + 1)),
  8869. (e += String.fromCharCode(((31 & i) << 6) | (63 & r))),
  8870. (n += 2);
  8871. else {
  8872. r = t.charCodeAt(n + 1);
  8873. var o = t.charCodeAt(n + 2);
  8874. (e += String.fromCharCode(
  8875. ((15 & i) << 12) | ((63 & r) << 6) | (63 & o)
  8876. )),
  8877. (n += 3);
  8878. }
  8879. return e;
  8880. },
  8881. },
  8882. {
  8883. key: 'isFirefox',
  8884. value: function () {
  8885. var t = !1,
  8886. e = navigator.userAgent.toLowerCase(),
  8887. n = '',
  8888. i = -1;
  8889. return (
  8890. e.match(/firefox\/([\d.]+)/) &&
  8891. ((n = e.match(/firefox\/([\d.]+)/)[1]),
  8892. (i = parseInt(n.split('.')[0], 10)),
  8893. i > -1 && (t = !0)),
  8894. t
  8895. );
  8896. },
  8897. },
  8898. ]),
  8899. t
  8900. );
  8901. })();
  8902. e.oTool = new r();
  8903. },
  8904. function (t, e, n) {
  8905. 'use strict';
  8906. function i(t, e, n) {
  8907. var i = (e && n) || 0,
  8908. r = e || [];
  8909. t = t || {};
  8910. var a = void 0 !== t.clockseq ? t.clockseq : u,
  8911. c = void 0 !== t.msecs ? t.msecs : new Date().getTime(),
  8912. h = void 0 !== t.nsecs ? t.nsecs : f + 1,
  8913. d = c - l + (h - f) / 1e4;
  8914. if (
  8915. (d < 0 && void 0 === t.clockseq && (a = (a + 1) & 16383),
  8916. (d < 0 || c > l) && void 0 === t.nsecs && (h = 0),
  8917. h >= 1e4)
  8918. )
  8919. throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
  8920. (l = c), (f = h), (u = a), (c += 122192928e5);
  8921. var p = (1e4 * (268435455 & c) + h) % 4294967296;
  8922. (r[i++] = (p >>> 24) & 255),
  8923. (r[i++] = (p >>> 16) & 255),
  8924. (r[i++] = (p >>> 8) & 255),
  8925. (r[i++] = 255 & p);
  8926. var y = (c / 4294967296 * 1e4) & 268435455;
  8927. (r[i++] = (y >>> 8) & 255),
  8928. (r[i++] = 255 & y),
  8929. (r[i++] = ((y >>> 24) & 15) | 16),
  8930. (r[i++] = (y >>> 16) & 255),
  8931. (r[i++] = (a >>> 8) | 128),
  8932. (r[i++] = 255 & a);
  8933. for (var m = t.node || s, v = 0; v < 6; ++v) r[i + v] = m[v];
  8934. return e ? e : o(r);
  8935. }
  8936. var r = n(4),
  8937. o = n(3),
  8938. a = r(),
  8939. s = [1 | a[0], a[1], a[2], a[3], a[4], a[5]],
  8940. u = 16383 & ((a[6] << 8) | a[7]),
  8941. l = 0,
  8942. f = 0;
  8943. t.exports = i;
  8944. },
  8945. function (t, e, n) {
  8946. 'use strict';
  8947. function i(t, e, n) {
  8948. var i = (e && n) || 0;
  8949. 'string' == typeof t &&
  8950. ((e = 'binary' == t ? new Array(16) : null), (t = null)),
  8951. (t = t || {});
  8952. var a = t.random || (t.rng || r)();
  8953. if (((a[6] = (15 & a[6]) | 64), (a[8] = (63 & a[8]) | 128), e))
  8954. for (var s = 0; s < 16; ++s) e[i + s] = a[s];
  8955. return e || o(a);
  8956. }
  8957. var r = n(4),
  8958. o = n(3);
  8959. t.exports = i;
  8960. },
  8961. function (t, e) {
  8962. 'use strict';
  8963. t.exports = function (t) {
  8964. return (
  8965. t.webpackPolyfill ||
  8966. ((t.deprecate = function () {
  8967. }),
  8968. (t.paths = []),
  8969. (t.children = []),
  8970. (t.webpackPolyfill = 1)),
  8971. t
  8972. );
  8973. };
  8974. },
  8975. function (t, e, n) {
  8976. 'use strict';
  8977. function i(t) {
  8978. return t && t.__esModule ? t : {default: t};
  8979. }
  8980. function r(t, e) {
  8981. if (!t)
  8982. throw new ReferenceError(
  8983. "this hasn't been initialised - super() hasn't been called"
  8984. );
  8985. return !e || ('object' != typeof e && 'function' != typeof e) ? t : e;
  8986. }
  8987. function o(t, e) {
  8988. if ('function' != typeof e && null !== e)
  8989. throw new TypeError(
  8990. 'Super expression must either be null or a function, not ' +
  8991. typeof e
  8992. );
  8993. (t.prototype = Object.create(e && e.prototype, {
  8994. constructor: {
  8995. value: t,
  8996. enumerable: !1,
  8997. writable: !0,
  8998. configurable: !0,
  8999. },
  9000. })),
  9001. e &&
  9002. (Object.setPrototypeOf
  9003. ? Object.setPrototypeOf(t, e)
  9004. : (t.__proto__ = e));
  9005. }
  9006. function a(t, e) {
  9007. if (!(t instanceof e))
  9008. throw new TypeError('Cannot call a class as a function');
  9009. }
  9010. Object.defineProperty(e, '__esModule', {value: !0}),
  9011. (e.ESCanvas = void 0);
  9012. var s = (function () {
  9013. function t(t, e) {
  9014. for (var n = 0; n < e.length; n++) {
  9015. var i = e[n];
  9016. (i.enumerable = i.enumerable || !1),
  9017. (i.configurable = !0),
  9018. 'value' in i && (i.writable = !0),
  9019. Object.defineProperty(t, i.key, i);
  9020. }
  9021. }
  9022. return function (e, n, i) {
  9023. return n && t(e.prototype, n), i && t(e, i), e;
  9024. };
  9025. })(),
  9026. u = n(1),
  9027. l = i(u),
  9028. f = (function () {
  9029. function t() {
  9030. i[f].clearRect(0, 0, i.m_iCanvasWidth, i.m_iCanvasHeight);
  9031. for (var t = 0, e = i[c].length; t < e; t++) i[c][t].draw();
  9032. }
  9033. function e(t) {
  9034. var e = i[c].length;
  9035. e < i[p] && i[c].push(t);
  9036. }
  9037. function n() {
  9038. function n() {
  9039. for (var t = -1, e = 0, n = i[c].length; e < n; e++)
  9040. if (i[c][e].m_bChoosed) {
  9041. t = e;
  9042. break;
  9043. }
  9044. return t;
  9045. }
  9046. var r = !1,
  9047. o = 0,
  9048. a = 0,
  9049. s = 'draw',
  9050. l = null;
  9051. (i[u][0].oncontextmenu = function () {
  9052. return !1;
  9053. }),
  9054. (i[u][0].onselectstart = function () {
  9055. return !1;
  9056. }),
  9057. i[u].unbind(),
  9058. i[u].bind('mousedown', function (f) {
  9059. if (2 === f.button)
  9060. i[m] &&
  9061. l &&
  9062. l.m_aPoint.length >= l.m_iMinClosed - 1 &&
  9063. ((l.m_bClosed = !0),
  9064. (i[m] = !1),
  9065. l.setPointInfo(l.m_aPoint),
  9066. e(l),
  9067. t(),
  9068. (r = !1),
  9069. i[g] || (i[h] = !1));
  9070. else if (0 === f.button) {
  9071. if (((o = f.offsetX), (a = f.offsetY), (s = 'draw'), !i[m])) {
  9072. var y = n();
  9073. if (
  9074. (y !== -1 &&
  9075. i[c][y].inArc(f.offsetX, f.offsetY, 5) &&
  9076. (s = 'stretch'),
  9077. 'stretch' !== s)
  9078. )
  9079. for (var S = 0, b = i[c].length; S < b; S++)
  9080. i[c][S].inShape(f.offsetX, f.offsetY)
  9081. ? ((i[c][S].m_bChoosed = !0),
  9082. i[c][S].getMouseDownPoints(f.offsetX, f.offsetY),
  9083. (s = 'drag'))
  9084. : (i[c][S].m_bChoosed = !1);
  9085. 'drag' === s
  9086. ? (i[u][0].style.cursor = 'move')
  9087. : (i[u][0].style.cursor = 'default');
  9088. }
  9089. if ('draw' === s && i[h]) {
  9090. if (i[p] <= i[c].length && 'Grid' !== i[d]) return;
  9091. 'Rect' === i[d]
  9092. ? (l = new w())
  9093. : 'Grid' === i[d]
  9094. ? 0 === i[c].length && ((l = new P()), e(l))
  9095. : 'Polygon' === i[d] &&
  9096. (i[m] ||
  9097. ((i[m] = !0),
  9098. (l = new x()),
  9099. (l.m_szId = i[v].szId || ''),
  9100. (l.m_szTips = i[v].szTips || ''),
  9101. (l.m_iMinClosed = i[v].iMinClosed || 3),
  9102. (l.m_iMaxPointNum = i[v].iMaxPointNum || 11),
  9103. (l.m_iPolygonType = i[v].iPolygonType),
  9104. (l.m_szDrawColor = i[v].szDrawColor),
  9105. (l.m_szFillColor = i[v].szFillColor),
  9106. (l.m_iTranslucent = i[v].iTranslucent)),
  9107. 1 === l.m_iPolygonType &&
  9108. (l.addPoint(o, a),
  9109. l.m_aPoint.length === l.m_iMaxPointNum &&
  9110. ((l.m_bClosed = !0),
  9111. (i[m] = !1),
  9112. e(l),
  9113. t(),
  9114. (r = !1),
  9115. i[g] || (i[h] = !1))));
  9116. }
  9117. r = !0;
  9118. }
  9119. }),
  9120. i[u].bind('mousemove', function (e) {
  9121. if (i[m])
  9122. i[h] &&
  9123. r &&
  9124. ('Polygon' === i[d] &&
  9125. 0 === l.m_iPolygonType &&
  9126. (l.m_bClosed = !0),
  9127. t(),
  9128. l.move(e.offsetX, e.offsetY, o, a));
  9129. else {
  9130. var u = n();
  9131. u > -1
  9132. ? r &&
  9133. ('drag' === s
  9134. ? i[c][u].drag(e.offsetX, e.offsetY)
  9135. : 'stretch' === s &&
  9136. i[c][u].stretch(e.offsetX, e.offsetY))
  9137. : i[h] &&
  9138. r &&
  9139. ('Rect' === i[d]
  9140. ? l.move([[o, a], [e.offsetX, e.offsetY]])
  9141. : 'Grid' === i[d] &&
  9142. i[c][0].move(o, a, e.offsetX, e.offsetY));
  9143. }
  9144. }),
  9145. i[u].bind('mouseup', function (n) {
  9146. if (
  9147. ((i[u][0].style.cursor = 'default'),
  9148. null !== l && 'undefined' != typeof l && 'draw' === s)
  9149. )
  9150. if ('Rect' === i[d]) {
  9151. if (
  9152. (Math.abs(n.offsetX - o) > 2 &&
  9153. Math.abs(n.offsetY - a) > 2 &&
  9154. (e(l), i[g] || (i[h] = !1)),
  9155. i[S])
  9156. ) {
  9157. var f = {startPos: [], endPos: []};
  9158. n.offsetX > o && n.offsetY > a
  9159. ? ((f.startPos = l.m_aPoint[0] || [
  9160. n.offsetX,
  9161. n.offsetY,
  9162. ]),
  9163. (f.endPos = l.m_aPoint[2] || [n.offsetX, n.offsetY]))
  9164. : ((f.startPos = l.m_aPoint[2] || [
  9165. n.offsetX,
  9166. n.offsetY,
  9167. ]),
  9168. (f.endPos = l.m_aPoint[0] || [n.offsetX, n.offsetY])),
  9169. i[S] && i[S](f),
  9170. (l = null),
  9171. i.clearAllShape();
  9172. }
  9173. } else
  9174. 'Polygon' === i[d] &&
  9175. 0 === l.m_iPolygonType &&
  9176. i[m] &&
  9177. Math.abs(n.offsetX - o) > 2 &&
  9178. Math.abs(n.offsetY - a) > 2 &&
  9179. (e(l), (i[m] = !1), i[g] || (i[h] = !1));
  9180. (r = !!i[m]), t();
  9181. }),
  9182. i[u].bind('dblclick', function () {
  9183. i[h] &&
  9184. 'Grid' === i[d] &&
  9185. ((i[c][0].m_szGridMap =
  9186. 'fffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffc'),
  9187. t());
  9188. }),
  9189. i[u].bind('mouseout', function () {
  9190. (i[u][0].style.cursor = 'default'), (r = !!i[m]);
  9191. });
  9192. }
  9193. if ('undefined' != typeof Symbol) {
  9194. var i = null,
  9195. u = Symbol('CANVAS'),
  9196. f = Symbol('CONTEXT'),
  9197. c = Symbol('SHAPES'),
  9198. h = Symbol('DRAWSTATUS'),
  9199. d = Symbol('SHAPETYPE'),
  9200. p = Symbol('MAXSHAPENUMSUPPORT'),
  9201. y = Symbol('SHAPESTYLE'),
  9202. m = Symbol('POLYGONDRAWING'),
  9203. v = Symbol('CURRENTSHAPEINFO'),
  9204. g = Symbol('DRAWSHAPEMULTIONETIME'),
  9205. S = Symbol('EVENTCALLBACK'),
  9206. b = (function () {
  9207. function e() {
  9208. a(this, e),
  9209. (this.m_szId = ''),
  9210. (this.m_aPoint = []),
  9211. (this.m_bChoosed = !1),
  9212. (this.m_szDrawColor = i[y].szDrawColor),
  9213. (this.m_szFillColor = i[y].szFillColor),
  9214. (this.m_iTranslucent = i[y].iTranslucent),
  9215. (this.m_iIndexChoosePoint = -1),
  9216. (this.m_iDriftStartX = 0),
  9217. (this.m_iDriftStartY = 0),
  9218. (this.m_oEdgePoints = {
  9219. top: {x: 0, y: 0},
  9220. left: {x: 0, y: 0},
  9221. right: {x: 0, y: 0},
  9222. bottom: {x: 0, y: 0},
  9223. }),
  9224. (this.m_szTips = ''),
  9225. (this.m_iEditType = 0),
  9226. (this.m_iMinClosed = 3),
  9227. (this.m_iMaxPointNum = 11),
  9228. (this.m_bClosed = !1);
  9229. }
  9230. return (
  9231. s(e, [
  9232. {
  9233. key: 'draw', value: function () {
  9234. }
  9235. },
  9236. {
  9237. key: 'drag',
  9238. value: function (e, n) {
  9239. var r = this.m_aPoint.length,
  9240. o = 0;
  9241. for (o = 0; o < r; o++)
  9242. if (
  9243. this.m_aPoint[o][0] + e - this.m_iDriftStartX >
  9244. i.m_iCanvasWidth ||
  9245. this.m_aPoint[o][1] + n - this.m_iDriftStartY >
  9246. i.m_iCanvasHeight ||
  9247. this.m_aPoint[o][0] + e - this.m_iDriftStartX < 0 ||
  9248. this.m_aPoint[o][1] + n - this.m_iDriftStartY < 0
  9249. )
  9250. return (
  9251. (this.m_iDriftStartX = e),
  9252. void (this.m_iDriftStartY = n)
  9253. );
  9254. for (o = 0; o < r; o++)
  9255. (this.m_aPoint[o][0] =
  9256. this.m_aPoint[o][0] + e - this.m_iDriftStartX),
  9257. (this.m_aPoint[o][1] =
  9258. this.m_aPoint[o][1] + n - this.m_iDriftStartY);
  9259. (this.m_iDriftStartX = e),
  9260. (this.m_iDriftStartY = n),
  9261. this.setPointInfo(this.m_aPoint),
  9262. t();
  9263. },
  9264. },
  9265. {
  9266. key: 'stretch',
  9267. value: function (e, n) {
  9268. 0 === this.m_iEditType &&
  9269. (this.m_iIndexChoosePoint !== -1 &&
  9270. ((this.m_aPoint[this.m_iIndexChoosePoint][0] = e),
  9271. (this.m_aPoint[this.m_iIndexChoosePoint][1] = n)),
  9272. this.setPointInfo(this.m_aPoint),
  9273. t());
  9274. },
  9275. },
  9276. {
  9277. key: 'inShape',
  9278. value: function (t, e) {
  9279. for (
  9280. var n = !1,
  9281. i = this.m_aPoint.length,
  9282. r = 0,
  9283. o = i - 1;
  9284. r < i;
  9285. o = r++
  9286. )
  9287. this.m_aPoint[r][1] > e != this.m_aPoint[o][1] > e &&
  9288. t <
  9289. (this.m_aPoint[o][0] - this.m_aPoint[r][0]) *
  9290. (e - this.m_aPoint[r][1]) /
  9291. (this.m_aPoint[o][1] - this.m_aPoint[r][1]) +
  9292. this.m_aPoint[r][0] &&
  9293. (n = !n);
  9294. return n;
  9295. },
  9296. },
  9297. {
  9298. key: 'inArc',
  9299. value: function (t, e, n) {
  9300. for (
  9301. var i = !1, r = 0, o = this.m_aPoint.length;
  9302. r < o;
  9303. r++
  9304. ) {
  9305. var a = Math.sqrt(
  9306. (t - this.m_aPoint[r][0]) *
  9307. (t - this.m_aPoint[r][0]) +
  9308. (e - this.m_aPoint[r][1]) *
  9309. (e - this.m_aPoint[r][1])
  9310. );
  9311. if (a < n) {
  9312. (i = !0), (this.m_iIndexChoosePoint = r);
  9313. break;
  9314. }
  9315. }
  9316. return i;
  9317. },
  9318. },
  9319. {
  9320. key: 'getMouseDownPoints',
  9321. value: function (t, e) {
  9322. (this.m_iDriftStartX = t), (this.m_iDriftStartY = e);
  9323. },
  9324. },
  9325. {
  9326. key: 'getPointInfo',
  9327. value: function () {
  9328. return this.m_aPoint;
  9329. },
  9330. },
  9331. {
  9332. key: 'setPointInfo',
  9333. value: function (t) {
  9334. null !== t &&
  9335. 'undefined' != typeof t &&
  9336. t.length > 0 &&
  9337. ((this.m_aPoint = t), this.setEdgePoints(t));
  9338. },
  9339. },
  9340. {
  9341. key: 'addPoint',
  9342. value: function (t, e) {
  9343. this.m_aPoint.length < this.m_iMaxPointNum &&
  9344. this.m_aPoint.push([t, e]),
  9345. this.m_aPoint.length === this.m_iMaxPointNum &&
  9346. this.setPointInfo(this.m_aPoint);
  9347. },
  9348. },
  9349. {
  9350. key: 'setEdgePoints',
  9351. value: function (t) {
  9352. for (var e = 0, n = t.length; e < n; e++)
  9353. 0 === e
  9354. ? ((this.m_oEdgePoints.top.x = t[e][0]),
  9355. (this.m_oEdgePoints.top.y = t[e][1]),
  9356. (this.m_oEdgePoints.left.x = t[e][0]),
  9357. (this.m_oEdgePoints.left.y = t[e][1]),
  9358. (this.m_oEdgePoints.right.x = t[e][0]),
  9359. (this.m_oEdgePoints.right.y = t[e][1]),
  9360. (this.m_oEdgePoints.bottom.x = t[e][0]),
  9361. (this.m_oEdgePoints.bottom.y = t[e][1]))
  9362. : (t[e][1] < this.m_oEdgePoints.top.y &&
  9363. ((this.m_oEdgePoints.top.x = t[e][0]),
  9364. (this.m_oEdgePoints.top.y = t[e][1])),
  9365. t[e][0] > this.m_oEdgePoints.right.x &&
  9366. ((this.m_oEdgePoints.right.x = t[e][0]),
  9367. (this.m_oEdgePoints.right.y = t[e][1])),
  9368. t[e][1] > this.m_oEdgePoints.bottom.y &&
  9369. ((this.m_oEdgePoints.bottom.x = t[e][0]),
  9370. (this.m_oEdgePoints.bottom.y = t[e][1])),
  9371. t[e][0] < this.m_oEdgePoints.left.x &&
  9372. ((this.m_oEdgePoints.left.x = t[e][0]),
  9373. (this.m_oEdgePoints.left.y = t[e][1])));
  9374. },
  9375. },
  9376. ]),
  9377. e
  9378. );
  9379. })(),
  9380. w = (function (e) {
  9381. function n() {
  9382. a(this, n);
  9383. var t = r(
  9384. this,
  9385. (n.__proto__ || Object.getPrototypeOf(n)).call(this)
  9386. );
  9387. return (t.m_szType = 'Rect'), t;
  9388. }
  9389. return (
  9390. o(n, e),
  9391. s(n, [
  9392. {
  9393. key: 'setPointInfo',
  9394. value: function (t) {
  9395. if (null !== t && 'undefined' != typeof t) {
  9396. for (
  9397. var e = t[0][0],
  9398. n = t[0][1],
  9399. i = t[0][0],
  9400. r = t[0][1],
  9401. o = 0,
  9402. a = t.length;
  9403. o < a;
  9404. o++
  9405. )
  9406. e > t[o][0] && (e = t[o][0]),
  9407. n > t[o][1] && (n = t[o][1]),
  9408. i < t[o][0] && (i = t[o][0]),
  9409. r < t[o][1] && (r = t[o][1]);
  9410. this.m_aPoint = [[e, n], [i, n], [i, r], [e, r]];
  9411. }
  9412. },
  9413. },
  9414. {
  9415. key: 'draw',
  9416. value: function () {
  9417. (i[f].fillStyle = this.m_szFillColor),
  9418. (i[f].strokeStyle = this.m_szDrawColor);
  9419. var t = this.m_aPoint[0][0],
  9420. e = this.m_aPoint[0][1],
  9421. n = this.m_aPoint[2][0] - t,
  9422. r = this.m_aPoint[2][1] - e;
  9423. if (
  9424. ((i[f].globalAlpha = this.m_iTranslucent),
  9425. i[f].fillRect(t, e, n, r),
  9426. (i[f].globalAlpha = 1),
  9427. i[f].fillText(
  9428. this.m_szTips,
  9429. (t + this.m_aPoint[2][0]) / 2,
  9430. (e + this.m_aPoint[2][1]) / 2
  9431. ),
  9432. this.m_bChoosed)
  9433. ) {
  9434. var o = Math.round(n / 2),
  9435. a = Math.round(r / 2);
  9436. if (0 === this.m_iEditType)
  9437. for (
  9438. var s = [
  9439. t,
  9440. t + o,
  9441. t + n,
  9442. t,
  9443. t + n,
  9444. t,
  9445. t + o,
  9446. t + n,
  9447. ],
  9448. u = [
  9449. e,
  9450. e,
  9451. e,
  9452. e + a,
  9453. e + a,
  9454. e + r,
  9455. e + r,
  9456. e + r,
  9457. ],
  9458. l = 0;
  9459. l < 8;
  9460. l++
  9461. )
  9462. i[f].beginPath(),
  9463. i[f].arc(s[l], u[l], 3, 0, 360, !1),
  9464. (i[f].fillStyle = this.m_szDrawColor),
  9465. i[f].closePath(),
  9466. i[f].fill();
  9467. }
  9468. i[f].strokeRect(t, e, n, r);
  9469. },
  9470. },
  9471. {
  9472. key: 'stretch',
  9473. value: function (e, n) {
  9474. 0 === this.m_iEditType &&
  9475. (0 === this.m_iIndexChoosePoint
  9476. ? e < this.m_aPoint[2][0] &&
  9477. n < this.m_aPoint[2][1] &&
  9478. ((this.m_aPoint[0][0] = e),
  9479. (this.m_aPoint[0][1] = n),
  9480. (this.m_aPoint[3][0] = e),
  9481. (this.m_aPoint[1][1] = n))
  9482. : 1 === this.m_iIndexChoosePoint
  9483. ? n < this.m_aPoint[2][1] &&
  9484. ((this.m_aPoint[0][1] = n),
  9485. (this.m_aPoint[1][1] = n))
  9486. : 2 === this.m_iIndexChoosePoint
  9487. ? e > this.m_aPoint[3][0] &&
  9488. n < this.m_aPoint[3][1] &&
  9489. ((this.m_aPoint[1][0] = e),
  9490. (this.m_aPoint[1][1] = n),
  9491. (this.m_aPoint[2][0] = e),
  9492. (this.m_aPoint[0][1] = n))
  9493. : 3 === this.m_iIndexChoosePoint
  9494. ? e < this.m_aPoint[2][0] &&
  9495. ((this.m_aPoint[0][0] = e),
  9496. (this.m_aPoint[3][0] = e))
  9497. : 4 === this.m_iIndexChoosePoint
  9498. ? e > this.m_aPoint[0][0] &&
  9499. ((this.m_aPoint[1][0] = e),
  9500. (this.m_aPoint[2][0] = e))
  9501. : 5 === this.m_iIndexChoosePoint
  9502. ? e < this.m_aPoint[1][0] &&
  9503. n > this.m_aPoint[1][1] &&
  9504. ((this.m_aPoint[3][0] = e),
  9505. (this.m_aPoint[3][1] = n),
  9506. (this.m_aPoint[0][0] = e),
  9507. (this.m_aPoint[2][1] = n))
  9508. : 6 === this.m_iIndexChoosePoint
  9509. ? n > this.m_aPoint[1][1] &&
  9510. ((this.m_aPoint[2][1] = n),
  9511. (this.m_aPoint[3][1] = n))
  9512. : 7 === this.m_iIndexChoosePoint &&
  9513. e > this.m_aPoint[0][0] &&
  9514. n > this.m_aPoint[0][1] &&
  9515. ((this.m_aPoint[2][0] = e),
  9516. (this.m_aPoint[2][1] = n),
  9517. (this.m_aPoint[1][0] = e),
  9518. (this.m_aPoint[3][1] = n)),
  9519. t());
  9520. },
  9521. },
  9522. {
  9523. key: 'move',
  9524. value: function (e) {
  9525. t(), (this.m_bChoosed = !0);
  9526. var n = e[0][0],
  9527. i = e[0][1],
  9528. r = e[1][0],
  9529. o = e[1][1];
  9530. this.setPointInfo([[n, i], [r, i], [r, o], [n, o]]),
  9531. this.draw();
  9532. },
  9533. },
  9534. {
  9535. key: 'inArc',
  9536. value: function (t, e, n) {
  9537. for (
  9538. var i = this.m_aPoint[0][0],
  9539. r = this.m_aPoint[0][1],
  9540. o = this.m_aPoint[2][0] - i,
  9541. a = this.m_aPoint[2][1] - r,
  9542. s = Math.round(o / 2),
  9543. u = Math.round(a / 2),
  9544. l = [i, i + s, i + o, i, i + o, i, i + s, i + o],
  9545. f = [r, r, r, r + u, r + u, r + a, r + a, r + a],
  9546. c = 0;
  9547. c < 8;
  9548. c++
  9549. ) {
  9550. var h = Math.sqrt(
  9551. (t - l[c]) * (t - l[c]) + (e - f[c]) * (e - f[c])
  9552. );
  9553. if (h < n) return (this.m_iIndexChoosePoint = c), !0;
  9554. }
  9555. return !1;
  9556. },
  9557. },
  9558. ]),
  9559. n
  9560. );
  9561. })(b),
  9562. _ = (function (e) {
  9563. function n(t, e) {
  9564. a(this, n);
  9565. var i = r(
  9566. this,
  9567. (n.__proto__ || Object.getPrototypeOf(n)).call(this)
  9568. );
  9569. return (
  9570. (i.m_szType = 'RectOSD'),
  9571. (i.m_szOSDType = 'overlay-date'),
  9572. (i.m_szText = t || ''),
  9573. (i.m_szEnabled = e || ''),
  9574. (i.m_szDateStyle = ''),
  9575. (i.m_szClockType = ''),
  9576. (i.m_szDisplayWeek = ''),
  9577. (i.m_szId = ''),
  9578. i
  9579. );
  9580. }
  9581. return (
  9582. o(n, e),
  9583. s(n, [
  9584. {
  9585. key: 'draw',
  9586. value: function () {
  9587. if ('true' === this.m_szEnabled) {
  9588. var t = this.m_aPoint[0][0],
  9589. e = this.m_aPoint[0][1],
  9590. n = this.m_aPoint[2][0] - t,
  9591. r = this.m_aPoint[2][1] - e;
  9592. i[f].beginPath(),
  9593. (i[f].strokeStyle = this.m_szDrawColor),
  9594. (i[f].globalAlpha = 1),
  9595. i[f].rect(t, e, n, r),
  9596. (i[f].font = '15px serif'),
  9597. i[f].strokeText(this.m_szText, t, e + 15),
  9598. i[f].stroke();
  9599. }
  9600. },
  9601. },
  9602. {
  9603. key: 'drag',
  9604. value: function (e, n) {
  9605. var r = this.m_aPoint.length,
  9606. o = 0;
  9607. for (o = 0; o < r; o++)
  9608. if (
  9609. this.m_aPoint[o][1] + n - this.m_iDriftStartY >
  9610. i.m_iCanvasHeight ||
  9611. this.m_aPoint[o][0] + e - this.m_iDriftStartX < 0 ||
  9612. this.m_aPoint[o][1] + n - this.m_iDriftStartY < 0
  9613. )
  9614. return (
  9615. (this.m_iDriftStartX = e),
  9616. void (this.m_iDriftStartY = n)
  9617. );
  9618. for (o = 0; o < r; o++)
  9619. (this.m_aPoint[o][0] =
  9620. this.m_aPoint[o][0] + e - this.m_iDriftStartX),
  9621. (this.m_aPoint[o][1] =
  9622. this.m_aPoint[o][1] + n - this.m_iDriftStartY);
  9623. (this.m_iDriftStartX = e),
  9624. (this.m_iDriftStartY = n),
  9625. this.setEdgePoints(this.m_aPoint),
  9626. t();
  9627. },
  9628. },
  9629. {
  9630. key: 'stretch', value: function () {
  9631. }
  9632. },
  9633. ]),
  9634. n
  9635. );
  9636. })(b),
  9637. P = (function (t) {
  9638. function e() {
  9639. a(this, e);
  9640. var t = r(
  9641. this,
  9642. (e.__proto__ || Object.getPrototypeOf(e)).call(this)
  9643. );
  9644. return (
  9645. (t.m_szType = 'Grid'),
  9646. (t.m_iGridColNum = 22),
  9647. (t.m_iGridRowNum = 18),
  9648. (t.m_szGridMap = ''),
  9649. (t.m_aAddGridMap = []),
  9650. t
  9651. );
  9652. }
  9653. return (
  9654. o(e, t),
  9655. s(e, [
  9656. {
  9657. key: 'draw',
  9658. value: function () {
  9659. for (
  9660. var t = i.m_iCanvasWidth / this.m_iGridColNum,
  9661. e = i.m_iCanvasHeight / this.m_iGridRowNum,
  9662. n = '',
  9663. r = 0;
  9664. r < this.m_iGridRowNum;
  9665. r++
  9666. ) {
  9667. for (
  9668. var o = this.m_szGridMap.substring(
  9669. 6 * r,
  9670. 6 * r + 6
  9671. ),
  9672. a = parseInt('f' + o, 16)
  9673. .toString(2)
  9674. .split('')
  9675. .slice(4),
  9676. s = '',
  9677. u = 0;
  9678. u < this.m_iGridColNum;
  9679. u++
  9680. ) {
  9681. var l = '';
  9682. '1' === a[u]
  9683. ? ((i[f].strokeStyle = this.m_szDrawColor),
  9684. (i[f].globalAlpha = 1),
  9685. i[f].strokeRect(t * u, e * r, t, e),
  9686. (l = '1'))
  9687. : (l = '0'),
  9688. this.m_aAddGridMap.length &&
  9689. 1 === this.m_aAddGridMap[r][u] &&
  9690. ((i[f].strokeStyle = this.m_szDrawColor),
  9691. i[f].strokeRect(t * u, e * r, t, e),
  9692. (l = '1')),
  9693. (s += l);
  9694. }
  9695. n += parseInt('1111' + s + '00', 2)
  9696. .toString(16)
  9697. .substring(1);
  9698. }
  9699. this.m_szGridMap = n;
  9700. },
  9701. },
  9702. {
  9703. key: 'move',
  9704. value: function (t, e, n, r) {
  9705. var o = i.m_iCanvasWidth / this.m_iGridColNum,
  9706. a = i.m_iCanvasHeight / this.m_iGridRowNum,
  9707. s = Math.floor(t / o),
  9708. u = Math.floor(e / a),
  9709. l = Math.floor(Math.abs(n - t) / o),
  9710. f = Math.floor(Math.abs(r - e) / a),
  9711. c = 1,
  9712. h = 1;
  9713. (c = n - t > 0 ? 1 : -1), (h = r - e > 0 ? 1 : -1);
  9714. for (var d = [], p = 0; p < this.m_iGridRowNum; p++) {
  9715. d[p] = [];
  9716. for (var y = 0; y < this.m_iGridColNum; y++)
  9717. 1 === c
  9718. ? 1 === h
  9719. ? p >= u && p <= u + f && y >= s && y <= s + l
  9720. ? (d[p][y] = 1)
  9721. : (d[p][y] = 0)
  9722. : p <= u && p >= u - f && y >= s && y <= s + l
  9723. ? (d[p][y] = 1)
  9724. : (d[p][y] = 0)
  9725. : 1 === h
  9726. ? p >= u && p <= u + f && y <= s && y >= s - l
  9727. ? (d[p][y] = 1)
  9728. : (d[p][y] = 0)
  9729. : p <= u && p >= u - f && y <= s && y >= s - l
  9730. ? (d[p][y] = 1)
  9731. : (d[p][y] = 0);
  9732. }
  9733. (this.m_aAddGridMap = d), this.draw();
  9734. },
  9735. },
  9736. ]),
  9737. e
  9738. );
  9739. })(b),
  9740. C = (function (t) {
  9741. function e() {
  9742. a(this, e);
  9743. var t = r(
  9744. this,
  9745. (e.__proto__ || Object.getPrototypeOf(e)).call(this)
  9746. );
  9747. return (
  9748. (t.m_szType = 'Line'),
  9749. (t.m_iLineType = 0),
  9750. (t.m_iDirection = 0),
  9751. (t.m_iArrowType = 0),
  9752. (t.m_aCrossArrowPoint = []),
  9753. t
  9754. );
  9755. }
  9756. return (
  9757. o(e, t),
  9758. s(e, [
  9759. {
  9760. key: 'draw',
  9761. value: function () {
  9762. 0 === this.m_iLineType
  9763. ? this.drawNormalLine()
  9764. : 1 === this.m_iLineType
  9765. ? this.drawArrowLine()
  9766. : 3 === this.m_iLineType
  9767. ? this.drawCrossLine()
  9768. : 4 === this.m_iLineType && this.drawLineCount();
  9769. },
  9770. },
  9771. {
  9772. key: 'drawNormalLine',
  9773. value: function () {
  9774. if (
  9775. ((i[f].globalAlpha = 1), this.m_aPoint.length > 0)
  9776. ) {
  9777. i[f].beginPath(),
  9778. (i[f].strokeStyle = this.m_szDrawColor),
  9779. (i[f].lineWidth = 2),
  9780. i[f].moveTo(
  9781. this.m_aPoint[0][0],
  9782. this.m_aPoint[0][1]
  9783. );
  9784. for (var t = 1, e = this.m_aPoint.length; t < e; t++)
  9785. i[f].lineTo(
  9786. this.m_aPoint[t][0],
  9787. this.m_aPoint[t][1]
  9788. );
  9789. if ((i[f].stroke(), this.m_bChoosed))
  9790. for (
  9791. var n = 0, r = this.m_aPoint.length;
  9792. n < r;
  9793. n++
  9794. )
  9795. i[f].beginPath(),
  9796. (i[f].fillStyle = this.m_szDrawColor),
  9797. i[f].arc(
  9798. this.m_aPoint[n][0],
  9799. this.m_aPoint[n][1],
  9800. 3,
  9801. 0,
  9802. 2 * Math.PI,
  9803. !0
  9804. ),
  9805. i[f].closePath(),
  9806. i[f].fill();
  9807. '' !== this.m_szTips &&
  9808. ((i[f].strokeStyle = this.m_szDrawColor),
  9809. i[f].fillText(
  9810. this.m_szTips,
  9811. this.m_aPoint[0][0] + 10,
  9812. this.m_aPoint[0][1] + 4
  9813. ));
  9814. }
  9815. },
  9816. },
  9817. {
  9818. key: 'drawArrowLine',
  9819. value: function (t, e, n, r, o, a, s, u) {
  9820. (a = 'undefined' != typeof a ? a : 30),
  9821. (s = 'undefined' != typeof s ? s : 10),
  9822. (u = 'undefined' != typeof u ? u : 1);
  9823. var l = 180 * Math.atan2(n - o, e - r) / Math.PI,
  9824. c = (l + a) * Math.PI / 180,
  9825. h = (l - a) * Math.PI / 180,
  9826. d = s * Math.cos(c),
  9827. p = s * Math.sin(c),
  9828. y = s * Math.cos(h),
  9829. m = s * Math.sin(h);
  9830. i[f].save(), i[f].beginPath();
  9831. var v = e - d,
  9832. g = n - p;
  9833. i[f].moveTo(v, g),
  9834. i[f].lineTo(e, n),
  9835. (v = e - y),
  9836. (g = n - m),
  9837. i[f].lineTo(v, g),
  9838. i[f].moveTo(e, n),
  9839. i[f].lineTo(r, o),
  9840. 1 === t &&
  9841. ((v = r + d),
  9842. (g = o + p),
  9843. i[f].moveTo(v, g),
  9844. i[f].lineTo(r, o),
  9845. (v = r + y),
  9846. (g = o + m),
  9847. i[f].lineTo(v, g)),
  9848. (i[f].strokeStyle = this.m_szDrawColor),
  9849. (i[f].lineWidth = u),
  9850. i[f].stroke(),
  9851. i[f].restore();
  9852. },
  9853. },
  9854. {
  9855. key: 'drawCrossLine',
  9856. value: function () {
  9857. this.drawNormalLine();
  9858. var t = (this.m_aPoint[0][0] + this.m_aPoint[1][0]) / 2,
  9859. e = (this.m_aPoint[0][1] + this.m_aPoint[1][1]) / 2,
  9860. n =
  9861. 180 *
  9862. Math.atan2(
  9863. e - this.m_aPoint[0][1],
  9864. t - this.m_aPoint[0][0]
  9865. ) /
  9866. Math.PI,
  9867. r = (n + 90) * Math.PI / 180,
  9868. o = (n - 90) * Math.PI / 180,
  9869. a = 25 * Math.cos(r),
  9870. s = 25 * Math.sin(r),
  9871. u = 25 * Math.cos(o),
  9872. l = 25 * Math.sin(o),
  9873. c = 0,
  9874. h = 0;
  9875. (c = t - a), (h = e - s);
  9876. var d = 0,
  9877. p = 0;
  9878. 0 === this.m_iDirection
  9879. ? ((d = -10), (p = -15))
  9880. : 1 === this.m_iDirection
  9881. ? ((d = 10), (p = 10))
  9882. : ((d = 10), (p = -15)),
  9883. 0 !== this.m_iDirection &&
  9884. this.drawArrowLine(0, c, h, t, e),
  9885. (i[f].strokeStyle = this.m_szDrawColor),
  9886. (i[f].font = '8px'),
  9887. i[f].strokeText('A', c + d, h + 4),
  9888. (c = t - u),
  9889. (h = e - l),
  9890. 1 !== this.m_iDirection &&
  9891. this.drawArrowLine(0, c, h, t, e),
  9892. (i[f].strokeStyle = this.m_szDrawColor),
  9893. (i[f].font = '8px'),
  9894. i[f].strokeText('B', c + p, h + 4);
  9895. },
  9896. },
  9897. {
  9898. key: 'drawLineCount',
  9899. value: function () {
  9900. this.drawNormalLine();
  9901. var t = (this.m_aPoint[0][0] + this.m_aPoint[1][0]) / 2,
  9902. e = (this.m_aPoint[0][1] + this.m_aPoint[1][1]) / 2,
  9903. n =
  9904. 180 *
  9905. Math.atan2(
  9906. e - this.m_aPoint[0][1],
  9907. t - this.m_aPoint[0][0]
  9908. ) /
  9909. Math.PI,
  9910. i = (n + 90) * Math.PI / 180,
  9911. r = (n - 90) * Math.PI / 180,
  9912. o = 25 * Math.cos(i),
  9913. a = 25 * Math.sin(i),
  9914. s = 25 * Math.cos(r),
  9915. u = 25 * Math.sin(r),
  9916. l = 0,
  9917. f = 0;
  9918. (l = t - o),
  9919. (f = e - a),
  9920. 1 === this.m_iArrowType
  9921. ? ((l = t - s),
  9922. (f = e - u),
  9923. this.drawArrowLine(0, l, f, t, e))
  9924. : 0 === this.m_iArrowType &&
  9925. this.drawArrowLine(0, l, f, t, e),
  9926. (this.m_aCrossArrowPoint = [[t, e], [l, f]]);
  9927. },
  9928. },
  9929. {
  9930. key: 'inShape',
  9931. value: function (t, e) {
  9932. for (
  9933. var n = !1, i = 0, r = this.m_aPoint.length - 1;
  9934. i < r;
  9935. i++
  9936. ) {
  9937. var o = Math.sqrt(
  9938. (this.m_aPoint[i + 1][0] - this.m_aPoint[i][0]) *
  9939. (this.m_aPoint[i + 1][0] -
  9940. this.m_aPoint[i][0]) +
  9941. (this.m_aPoint[i + 1][1] -
  9942. this.m_aPoint[i][1]) *
  9943. (this.m_aPoint[i + 1][1] -
  9944. this.m_aPoint[i][1])
  9945. ),
  9946. a = Math.sqrt(
  9947. (t - this.m_aPoint[i][0]) *
  9948. (t - this.m_aPoint[i][0]) +
  9949. (e - this.m_aPoint[i][1]) *
  9950. (e - this.m_aPoint[i][1])
  9951. ),
  9952. s = Math.sqrt(
  9953. (t - this.m_aPoint[i + 1][0]) *
  9954. (t - this.m_aPoint[i + 1][0]) +
  9955. (e - this.m_aPoint[i + 1][1]) *
  9956. (e - this.m_aPoint[i + 1][1])
  9957. );
  9958. a + s - o < 1 && (n = !0);
  9959. }
  9960. return n;
  9961. },
  9962. },
  9963. ]),
  9964. e
  9965. );
  9966. })(b),
  9967. x = (function (e) {
  9968. function n() {
  9969. a(this, n);
  9970. var t = r(
  9971. this,
  9972. (n.__proto__ || Object.getPrototypeOf(n)).call(this)
  9973. );
  9974. return (t.m_szType = 'Polygon'), (t.m_iPolygonType = 1), t;
  9975. }
  9976. return (
  9977. o(n, e),
  9978. s(n, [
  9979. {
  9980. key: 'setPointInfo',
  9981. value: function (t) {
  9982. if (null !== t && 'undefined' != typeof t) {
  9983. if (0 === this.m_iPolygonType) {
  9984. for (
  9985. var e = t[0][0],
  9986. n = t[0][1],
  9987. i = t[0][0],
  9988. r = t[0][1],
  9989. o = 0,
  9990. a = t.length;
  9991. o < a;
  9992. o++
  9993. )
  9994. e > t[o][0] && (e = t[o][0]),
  9995. n > t[o][1] && (n = t[o][1]),
  9996. i < t[o][0] && (i = t[o][0]),
  9997. r < t[o][1] && (r = t[o][1]);
  9998. this.m_aPoint = [[e, n], [i, n], [i, r], [e, r]];
  9999. } else
  10000. 1 === this.m_iPolygonType
  10001. ? (this.m_aPoint = t)
  10002. : (this.m_aPoint = t);
  10003. this.setEdgePoints(t);
  10004. }
  10005. },
  10006. },
  10007. {
  10008. key: 'draw',
  10009. value: function () {
  10010. if (this.m_aPoint.length > 0) {
  10011. (i[f].fillStyle = this.m_szFillColor),
  10012. (i[f].strokeStyle = this.m_szDrawColor),
  10013. (i[f].globalAlpha = 1);
  10014. var t = 0,
  10015. e = 0;
  10016. if (this.m_bChoosed)
  10017. for (t = 0, e = this.m_aPoint.length; t < e; t++)
  10018. i[f].beginPath(),
  10019. i[f].arc(
  10020. this.m_aPoint[t][0],
  10021. this.m_aPoint[t][1],
  10022. 3,
  10023. 0,
  10024. 360,
  10025. !1
  10026. ),
  10027. (i[f].fillStyle = this.m_szDrawColor),
  10028. i[f].closePath(),
  10029. i[f].fill();
  10030. for (
  10031. i[f].beginPath(),
  10032. i[f].moveTo(
  10033. this.m_aPoint[0][0],
  10034. this.m_aPoint[0][1]
  10035. ),
  10036. t = 0,
  10037. e = this.m_aPoint.length;
  10038. t < e;
  10039. t++
  10040. )
  10041. 0 !== t &&
  10042. i[f].lineTo(
  10043. this.m_aPoint[t][0],
  10044. this.m_aPoint[t][1]
  10045. );
  10046. i[f].stroke(),
  10047. this.m_bClosed &&
  10048. (i[f].fillText(
  10049. this.m_szTips,
  10050. (this.m_oEdgePoints.left.x +
  10051. this.m_oEdgePoints.right.x) /
  10052. 2,
  10053. (this.m_oEdgePoints.top.y +
  10054. this.m_oEdgePoints.bottom.y) /
  10055. 2
  10056. ),
  10057. i[f].closePath(),
  10058. i[f].stroke(),
  10059. (i[f].globalAlpha = this.m_iTranslucent),
  10060. i[f].fill());
  10061. }
  10062. },
  10063. },
  10064. {
  10065. key: 'move',
  10066. value: function (t, e, n, r) {
  10067. if (1 === this.m_iPolygonType) {
  10068. if (
  10069. this.m_aPoint.length < this.m_iMaxPointNum &&
  10070. this.m_aPoint.length > 0
  10071. ) {
  10072. (i[f].fillStyle = this.m_szFillColor),
  10073. (i[f].strokeStyle = this.m_szDrawColor),
  10074. (i[f].globalAlpha = 1);
  10075. var o = 0,
  10076. a = 0;
  10077. for (o = 0, a = this.m_aPoint.length; o < a; o++)
  10078. i[f].beginPath(),
  10079. i[f].arc(
  10080. this.m_aPoint[o][0],
  10081. this.m_aPoint[o][1],
  10082. 3,
  10083. 0,
  10084. 360,
  10085. !1
  10086. ),
  10087. (i[f].fillStyle = this.m_szDrawColor),
  10088. i[f].closePath(),
  10089. i[f].fill();
  10090. for (
  10091. i[f].beginPath(),
  10092. i[f].moveTo(
  10093. this.m_aPoint[0][0],
  10094. this.m_aPoint[0][1]
  10095. ),
  10096. o = 0,
  10097. a = this.m_aPoint.length;
  10098. o < a;
  10099. o++
  10100. )
  10101. 0 !== o &&
  10102. i[f].lineTo(
  10103. this.m_aPoint[o][0],
  10104. this.m_aPoint[o][1]
  10105. );
  10106. i[f].lineTo(t, e), i[f].closePath(), i[f].stroke();
  10107. }
  10108. } else if (0 === this.m_iPolygonType) {
  10109. this.m_bChoosed = !0;
  10110. var s = n,
  10111. u = r,
  10112. l = t,
  10113. c = e;
  10114. this.setPointInfo([[s, u], [l, u], [l, c], [s, c]]),
  10115. this.draw();
  10116. }
  10117. },
  10118. },
  10119. {
  10120. key: 'stretch',
  10121. value: function (e, n) {
  10122. 0 === this.m_iEditType &&
  10123. (1 === this.m_iPolygonType
  10124. ? this.m_iIndexChoosePoint !== -1 &&
  10125. ((this.m_aPoint[this.m_iIndexChoosePoint][0] = e),
  10126. (this.m_aPoint[this.m_iIndexChoosePoint][1] = n))
  10127. : 0 === this.m_iIndexChoosePoint
  10128. ? e < this.m_aPoint[2][0] &&
  10129. n < this.m_aPoint[2][1] &&
  10130. ((this.m_aPoint[0][0] = e),
  10131. (this.m_aPoint[0][1] = n),
  10132. (this.m_aPoint[3][0] = e),
  10133. (this.m_aPoint[1][1] = n))
  10134. : 1 === this.m_iIndexChoosePoint
  10135. ? e > this.m_aPoint[3][0] &&
  10136. n < this.m_aPoint[3][1] &&
  10137. ((this.m_aPoint[1][0] = e),
  10138. (this.m_aPoint[1][1] = n),
  10139. (this.m_aPoint[2][0] = e),
  10140. (this.m_aPoint[0][1] = n))
  10141. : 2 === this.m_iIndexChoosePoint
  10142. ? e > this.m_aPoint[0][0] &&
  10143. n > this.m_aPoint[0][1] &&
  10144. ((this.m_aPoint[2][0] = e),
  10145. (this.m_aPoint[2][1] = n),
  10146. (this.m_aPoint[1][0] = e),
  10147. (this.m_aPoint[3][1] = n))
  10148. : 3 === this.m_iIndexChoosePoint &&
  10149. e < this.m_aPoint[1][0] &&
  10150. n > this.m_aPoint[1][1] &&
  10151. ((this.m_aPoint[3][0] = e),
  10152. (this.m_aPoint[3][1] = n),
  10153. (this.m_aPoint[0][0] = e),
  10154. (this.m_aPoint[2][1] = n)),
  10155. this.setPointInfo(this.m_aPoint),
  10156. t());
  10157. },
  10158. },
  10159. ]),
  10160. n
  10161. );
  10162. })(b),
  10163. T = (function () {
  10164. function r(t) {
  10165. a(this, r),
  10166. (i = this),
  10167. (this[u] = (0, l.default)('#' + t)),
  10168. (this[f] = this[u][0].getContext('2d')),
  10169. (this[c] = []),
  10170. (this[h] = !1),
  10171. (this[d] = 'Rect'),
  10172. (this[p] = 10),
  10173. (this[g] = !0),
  10174. (this[v] = {}),
  10175. (this[S] = null),
  10176. (this[y] = {
  10177. szDrawColor: '#ff0000',
  10178. szFillColor: '#343434',
  10179. iTranslucent: 0.7,
  10180. }),
  10181. (this[m] = !1),
  10182. (this.m_iCanvasWidth = this[u].width()),
  10183. (this.m_iCanvasHeight = this[u].height()),
  10184. (this.m_iHorizontalResolution = 0),
  10185. (this.m_iVerticalResolution = 0),
  10186. (this.m_szDisplayMode = ''),
  10187. (this.m_szVideoFormat = ''),
  10188. n(),
  10189. (this[c].length = 0);
  10190. }
  10191. return (
  10192. s(r, [
  10193. {
  10194. key: 'setDrawMutiShapeOneTime',
  10195. value: function (t) {
  10196. this[g] = t;
  10197. },
  10198. },
  10199. {
  10200. key: 'setMaxShapeSupport',
  10201. value: function (t) {
  10202. this[p] = t;
  10203. },
  10204. },
  10205. {
  10206. key: 'getMaxShapeSupport',
  10207. value: function () {
  10208. return this[p];
  10209. },
  10210. },
  10211. {
  10212. key: 'setDrawStatus',
  10213. value: function (t, e) {
  10214. (this[h] = t),
  10215. e && t && (this[S] = e),
  10216. t || (this[S] = null);
  10217. },
  10218. },
  10219. {
  10220. key: 'setShapeType',
  10221. value: function (e) {
  10222. (this[d] = e), t();
  10223. },
  10224. },
  10225. {
  10226. key: 'setCurrentShapeInfo',
  10227. value: function (t) {
  10228. this[v] = t || {
  10229. szId: '',
  10230. szTips: '',
  10231. iMinClosed: 3,
  10232. iMaxPointNum: 11,
  10233. iPolygonType: 1,
  10234. };
  10235. },
  10236. },
  10237. {
  10238. key: 'getShapeType',
  10239. value: function () {
  10240. return this[d];
  10241. },
  10242. },
  10243. {
  10244. key: 'getAllShapesInfo',
  10245. value: function () {
  10246. for (var t = [], e = 0, n = this[c].length; e < n; e++)
  10247. 'Grid' === this[c][e].m_szType
  10248. ? t.push({
  10249. szType: this[c][e].m_szType,
  10250. szGridMap: this[c][e].m_szGridMap,
  10251. iGridColNum: this[c][e].m_iGridColNum,
  10252. iGridRowNum: this[c][e].m_iGridRowNum,
  10253. })
  10254. : 'RectOSD' === this[c][e].m_szType
  10255. ? t.push({
  10256. szType: this[c][e].m_szType,
  10257. szText: this[c][e].m_szText,
  10258. szEnabled: this[c][e].m_szEnabled,
  10259. szOSDType: this[c][e].m_szOSDType,
  10260. iPositionX: this[c][e].m_aPoint[0][0],
  10261. iPositionY: this[c][e].m_aPoint[0][1],
  10262. szDateStyle: this[c][e].m_szDateStyle,
  10263. szClockType: this[c][e].m_szClockType,
  10264. szDisplayWeek: this[c][e].m_szDisplayWeek,
  10265. szId: this[c][e].m_szId,
  10266. })
  10267. : t.push({
  10268. szType: this[c][e].m_szType,
  10269. aPoint: this[c][e].m_aPoint,
  10270. szId: this[c][e].m_szId,
  10271. });
  10272. return t;
  10273. },
  10274. },
  10275. {
  10276. key: 'getShapesInfoByType',
  10277. value: function (t) {
  10278. for (var e = [], n = 0, i = this[c].length; n < i; n++)
  10279. this[c][n].m_szType === t &&
  10280. ('Grid' === this[c][n].m_szType
  10281. ? e.push({
  10282. szType: this[c][n].m_szType,
  10283. szGridMap: this[c][n].m_szGridMap,
  10284. iGridColNum: this[c][n].m_iGridColNum,
  10285. iGridRowNum: this[c][n].m_iGridRowNum,
  10286. })
  10287. : 'RectOSD' === this[c][n].m_szType
  10288. ? e.push({
  10289. szType: this[c][n].m_szType,
  10290. szText: this[c][n].m_szText,
  10291. szEnabled: this[c][n].m_szEnabled,
  10292. szOSDType: this[c][n].m_szOSDType,
  10293. iPositionX: this[c][n].m_aPoint[0][0],
  10294. iPositionY: this[c][n].m_aPoint[0][1],
  10295. szDateStyle: this[c][n].m_szDateStyle,
  10296. szClockType: this[c][n].m_szClockType,
  10297. szDisplayWeek: this[c][n].m_szDisplayWeek,
  10298. szId: this[c][n].m_szId,
  10299. })
  10300. : 'Polygon' === t
  10301. ? e.push({
  10302. szType: this[c][n].m_szType,
  10303. szId: this[c][n].m_szId,
  10304. iPolygonType: this[c][n].m_iPolygonType,
  10305. iMinClosed: this[c][n].m_iMinClosed,
  10306. iMaxPointNum: this[c][n].m_iMaxPointNum,
  10307. iEditType: this[c][n].m_iEditType,
  10308. aPoint: this[c][n].m_aPoint,
  10309. bClosed: this[c][n].m_bClosed,
  10310. szTips: this[c][n].m_szTips,
  10311. szDrawColor: this[c][n].m_szDrawColor,
  10312. szFillColor: this[c][n].m_szFillColor,
  10313. iTranslucent: this[c][n].m_iTranslucent,
  10314. })
  10315. : 'Line' === t
  10316. ? e.push({
  10317. szType: this[c][n].m_szType,
  10318. szId: this[c][n].m_szId,
  10319. aPoint: this[c][n].m_aPoint,
  10320. szTips: this[c][n].m_szTips,
  10321. iLineType: this[c][n].m_iLineType,
  10322. iDirection: this[c][n].m_iDirection,
  10323. iArrowType: this[c][n].m_iArrowType,
  10324. szDrawColor: this[c][n].m_szDrawColor,
  10325. aCrossArrowPoint: this[c][n]
  10326. .m_aCrossArrowPoint,
  10327. })
  10328. : 'Rect' === t
  10329. ? e.push({
  10330. szType: this[c][n].m_szType,
  10331. iEditType: this[c][n].m_iEditType,
  10332. aPoint: this[c][n].m_aPoint,
  10333. szTips: this[c][n].m_szTips,
  10334. szDrawColor: this[c][n].m_szDrawColor,
  10335. szFillColor: this[c][n].m_szFillColor,
  10336. iTranslucent: this[c][n]
  10337. .m_iTranslucent,
  10338. })
  10339. : e.push({
  10340. szType: this[c][n].m_szType,
  10341. aPoint: this[c][n].m_aPoint,
  10342. }));
  10343. return e;
  10344. },
  10345. },
  10346. {
  10347. key: 'setShapesInfoByType',
  10348. value: function (n, i) {
  10349. i || (i = []);
  10350. var r = null;
  10351. if ('Rect' === n || 'Polygon' === n || 'Line' === n)
  10352. for (var o = 0, a = i.length; o < a; o++)
  10353. 'Rect' === n
  10354. ? ((r = new w()),
  10355. (r.m_iEditType = i[o].iEditType),
  10356. (r.m_szTips = i[o].szTips),
  10357. i[o].style &&
  10358. ((r.m_szDrawColor = i[o].style.szDrawColor),
  10359. (r.m_szFillColor = i[o].style.szFillColor),
  10360. (r.m_iTranslucent = i[o].style.iTranslucent)))
  10361. : 'Polygon' === n
  10362. ? ((r = new x()),
  10363. 0 === i[o].iPolygonType
  10364. ? (r.m_bClosed = !0)
  10365. : (r.m_bClosed = i[o].bClosed),
  10366. (r.m_szTips = i[o].szTips),
  10367. (r.m_szId = i[o].szId || ''),
  10368. (r.m_iPolygonType = i[o].iPolygonType),
  10369. (r.m_iMinClosed = i[o].iMinClosed || 3),
  10370. (r.m_iMaxPointNum = i[o].iMaxPointNum || 11),
  10371. (r.m_iEditType = i[o].iEditType),
  10372. i[o].style &&
  10373. ((r.m_szDrawColor = i[o].style.szDrawColor),
  10374. (r.m_szFillColor = i[o].style.szFillColor),
  10375. (r.m_iTranslucent =
  10376. i[o].style.iTranslucent)))
  10377. : 'Line' === n &&
  10378. ((r = new C()),
  10379. (r.m_iLineType = i[o].iLineType),
  10380. (r.m_szTips = i[o].szTips),
  10381. (r.m_szId = i[o].szId),
  10382. (r.m_iDirection = i[o].iDirection),
  10383. (r.m_iArrowType = i[o].iArrowType),
  10384. i[o].style &&
  10385. (r.m_szDrawColor = i[o].style.szDrawColor),
  10386. r.setPointInfo(i[o].aPoint)),
  10387. r.setPointInfo(i[o].aPoint),
  10388. 0 === o && (r.m_bChoosed = !0),
  10389. e(r);
  10390. else
  10391. 'Grid' === n &&
  10392. ((r = new P()),
  10393. (r.m_szGridMap = i[0].szGridMap || ''),
  10394. (r.m_iGridColNum = i[0].iGridColNum || 22),
  10395. (r.m_iGridRowNum = i[0].iGridRowNum || 18),
  10396. e(r));
  10397. t();
  10398. },
  10399. },
  10400. {
  10401. key: 'addOSDShape',
  10402. value: function (n, i, r, o, a) {
  10403. r || o || ((r = 0), (o = 0)), a || (a = {});
  10404. var s = new _(n, i),
  10405. u = 10 * n.length;
  10406. (s.m_aPoint = [
  10407. [r, o],
  10408. [u + r, o],
  10409. [u + r, o + 20],
  10410. [r, o + 20],
  10411. ]),
  10412. (s.m_szOSDType = a.szOSDType || ''),
  10413. (s.m_szDateStyle = a.szDateStyle || ''),
  10414. (s.m_szClockType = a.szClockType || ''),
  10415. (s.m_szDisplayWeek = a.szDisplayWeek || ''),
  10416. (s.m_szId = a.szId || ''),
  10417. e(s),
  10418. t();
  10419. },
  10420. },
  10421. {
  10422. key: 'setCanvasSize',
  10423. value: function (e, n) {
  10424. e > 0 &&
  10425. n > 0 &&
  10426. ((this.m_iCanvasWidth = e),
  10427. (this.m_iCanvasHeight = n),
  10428. t());
  10429. },
  10430. },
  10431. {
  10432. key: 'setDrawStyle',
  10433. value: function (t, e, n) {
  10434. this[y] = {
  10435. szDrawColor: t,
  10436. szFillColor: e,
  10437. iTranslucent: n,
  10438. };
  10439. },
  10440. },
  10441. {
  10442. key: 'clearAllShape',
  10443. value: function () {
  10444. (this[c].length = 0), t();
  10445. },
  10446. },
  10447. {
  10448. key: 'clearShapeByType',
  10449. value: function (e) {
  10450. for (var n = this[c].length, i = n; i > 0; i--)
  10451. this[c][i - 1].m_szType === e &&
  10452. ('Grid' === e
  10453. ? ((this[c][i - 1].m_szGridMap = ''),
  10454. (this[c][i - 1].m_aAddGridMap = []))
  10455. : this[c].splice(i - 1, 1));
  10456. t();
  10457. },
  10458. },
  10459. {
  10460. key: 'deleteShape',
  10461. value: function (e) {
  10462. this[c].length > e && this[c].splice(e, 1), t();
  10463. },
  10464. },
  10465. {
  10466. key: 'updateCanvas',
  10467. value: function (t) {
  10468. (this[u] = (0, l.default)('#' + t)),
  10469. (this[f] = this[u][0].getContext('2d')),
  10470. (this.m_iCanvasWidth = this[u].width()),
  10471. (this.m_iCanvasHeight = this[u].height()),
  10472. n();
  10473. },
  10474. },
  10475. {
  10476. key: 'resizeCanvas',
  10477. value: function () {
  10478. (this.m_iCanvasWidth = this[u].width()),
  10479. (this.m_iCanvasHeight = this[u].height());
  10480. },
  10481. },
  10482. {
  10483. key: 'canvasRedraw',
  10484. value: function () {
  10485. t();
  10486. },
  10487. },
  10488. ]),
  10489. r
  10490. );
  10491. })();
  10492. return T;
  10493. }
  10494. })();
  10495. e.ESCanvas = f;
  10496. },
  10497. function (t, e, n) {
  10498. 'use strict';
  10499. function i(t) {
  10500. return t && t.__esModule ? t : {default: t};
  10501. }
  10502. function r(t, e) {
  10503. if (!(t instanceof e))
  10504. throw new TypeError('Cannot call a class as a function');
  10505. }
  10506. Object.defineProperty(e, '__esModule', {value: !0}),
  10507. (e.StorageManager = void 0);
  10508. var o = (function () {
  10509. function t(t, e) {
  10510. for (var n = 0; n < e.length; n++) {
  10511. var i = e[n];
  10512. (i.enumerable = i.enumerable || !1),
  10513. (i.configurable = !0),
  10514. 'value' in i && (i.writable = !0),
  10515. Object.defineProperty(t, i.key, i);
  10516. }
  10517. }
  10518. return function (e, n, i) {
  10519. return n && t(e.prototype, n), i && t(e, i), e;
  10520. };
  10521. })(),
  10522. a = n(2),
  10523. s = i(a),
  10524. u = n(5),
  10525. l = 'Web/RecordFiles/',
  10526. f = 'Web/PlaybackFiles/',
  10527. c = 1e3,
  10528. h = 1,
  10529. d = 3001;
  10530. (window.requestFileSystem =
  10531. window.requestFileSystem || window.webkitRequestFileSystem),
  10532. (window.URL = window.URL || window.webkitURL);
  10533. var p = (function () {
  10534. function t(e, n, i, o) {
  10535. r(this, t),
  10536. (this.szUUID = e),
  10537. (this.szFileName = n),
  10538. (this.iStreamType = i),
  10539. (this.szPath = ''),
  10540. (this.bStart = !1),
  10541. (this.aStreamList = []),
  10542. (this.options = o);
  10543. }
  10544. return (
  10545. o(t, [
  10546. {
  10547. key: 'init',
  10548. value: function () {
  10549. var t = this;
  10550. 0 === this.iStreamType
  10551. ? (this.szPath = l)
  10552. : 1 === this.iStreamType && (this.szPath = f),
  10553. (this.szPath += this.getDateDir());
  10554. var e = t.szPath.split('/'),
  10555. n = new Promise(function (n) {
  10556. window.requestFileSystem(
  10557. window.TEMPORARY,
  10558. t.options.iFileSize,
  10559. function (i) {
  10560. t.createDir(i.root, e, function () {
  10561. n();
  10562. });
  10563. },
  10564. t.errorHandler
  10565. );
  10566. });
  10567. return n;
  10568. },
  10569. },
  10570. {
  10571. key: 'getDateDir',
  10572. value: function () {
  10573. return u.oTool.dateFormat(new Date(), 'yyyy-MM-dd');
  10574. },
  10575. },
  10576. {
  10577. key: 'createDir',
  10578. value: function (t, e, n) {
  10579. var i = this;
  10580. e.length
  10581. ? t.getDirectory(
  10582. e[0],
  10583. {create: !0},
  10584. function (t) {
  10585. i.createDir(t, e.slice(1), n);
  10586. },
  10587. i.errorHandler
  10588. )
  10589. : n();
  10590. },
  10591. },
  10592. {
  10593. key: 'errorHandler', value: function () {
  10594. }
  10595. },
  10596. {
  10597. key: 'writeFileHeader',
  10598. value: function (t) {
  10599. var e = this;
  10600. window.requestFileSystem(
  10601. window.TEMPORARY,
  10602. e.options.iFileSize,
  10603. function (n) {
  10604. n.root.getFile(
  10605. e.szPath + '/' + e.szFileName,
  10606. {create: !0},
  10607. function (n) {
  10608. n.createWriter(function (n) {
  10609. (n.onwriteend = function () {
  10610. (e.bStart = !0), e.writeFile(n);
  10611. }),
  10612. (n.onerror = function () {
  10613. }),
  10614. n.seek(n.length);
  10615. var i = new Blob([t]);
  10616. n.write(i);
  10617. }, e.errorHandler);
  10618. },
  10619. e.errorHandler
  10620. );
  10621. },
  10622. e.errorHandler
  10623. );
  10624. },
  10625. },
  10626. {
  10627. key: 'writeFileContent',
  10628. value: function (t) {
  10629. this.aStreamList.push(t);
  10630. },
  10631. },
  10632. {
  10633. key: 'writeFile',
  10634. value: function (t) {
  10635. var e = this;
  10636. if (this.bStart)
  10637. if (this.aStreamList.length > 0) {
  10638. var n = this.aStreamList.shift();
  10639. if (
  10640. (t.seek(t.length), t.length >= this.options.iFileSize)
  10641. )
  10642. return void (
  10643. this.options.cbEventHandler &&
  10644. this.options.cbEventHandler(d, this.szUUID)
  10645. );
  10646. var i = new Blob([n]);
  10647. t.write(i);
  10648. } else
  10649. setTimeout(function () {
  10650. e.writeFile(t);
  10651. }, c);
  10652. },
  10653. },
  10654. {
  10655. key: 'stopWriteFile',
  10656. value: function () {
  10657. var t = this;
  10658. (this.bStart = !1), (this.aStreamList.length = 0);
  10659. var e = new Promise(function (e) {
  10660. window.requestFileSystem(
  10661. window.TEMPORARY,
  10662. t.options.iFileSize,
  10663. function (n) {
  10664. n.root.getFile(
  10665. t.szPath + '/' + t.szFileName,
  10666. {create: !1},
  10667. function (t) {
  10668. t.file(function (t) {
  10669. e(), u.oTool.downloadFile(t, t.name);
  10670. });
  10671. },
  10672. t.errorHandler
  10673. );
  10674. },
  10675. t.errorHandler
  10676. );
  10677. });
  10678. return e;
  10679. },
  10680. },
  10681. ]),
  10682. t
  10683. );
  10684. })(),
  10685. y = (function () {
  10686. function t(e, n, i, o, a, s, u) {
  10687. r(this, t),
  10688. (this.szBasePath = e),
  10689. (this.szUUID = n),
  10690. (this.szFileName = i),
  10691. (this.aHeadBuf = new Uint8Array(o)),
  10692. (this.iPackType = a),
  10693. (this.iStreamType = s),
  10694. (this.oWorker = null),
  10695. (this.oFileSystem = null),
  10696. (this.options = u);
  10697. }
  10698. return (
  10699. o(t, [
  10700. {
  10701. key: 'init',
  10702. value: function () {
  10703. var t = this,
  10704. e = new Promise(function (e, n) {
  10705. t.initFileSystem().then(
  10706. function () {
  10707. t.initWorker().then(
  10708. function () {
  10709. e(t.szUUID);
  10710. },
  10711. function (t) {
  10712. n(t);
  10713. }
  10714. );
  10715. },
  10716. function (t) {
  10717. n(t);
  10718. }
  10719. );
  10720. });
  10721. return e;
  10722. },
  10723. },
  10724. {
  10725. key: 'initFileSystem',
  10726. value: function () {
  10727. var t = this;
  10728. this.oFileSystem = new p(
  10729. this.szUUID,
  10730. this.szFileName,
  10731. this.iStreamType,
  10732. this.options
  10733. );
  10734. var e = new Promise(function (e, n) {
  10735. t.oFileSystem.init().then(
  10736. function () {
  10737. e();
  10738. },
  10739. function (t) {
  10740. n(t);
  10741. }
  10742. );
  10743. });
  10744. return e;
  10745. },
  10746. },
  10747. {
  10748. key: 'initWorker',
  10749. value: function () {
  10750. var t = this,
  10751. e = new Promise(function (e) {
  10752. (t.oWorker = new Worker(
  10753. t.szBasePath + '/systemTransform-worker.min.js'
  10754. )),
  10755. (t.oWorker.onmessage = function (n) {
  10756. var i = n.data;
  10757. if ('loaded' === i.type)
  10758. t.oWorker.postMessage(
  10759. {
  10760. type: 'create',
  10761. buf: t.aHeadBuf.buffer,
  10762. len: 40,
  10763. packType: t.iPackType,
  10764. },
  10765. [t.aHeadBuf.buffer]
  10766. );
  10767. else if ('created' === i.type) e();
  10768. else if ('outputData' === i.type) {
  10769. var r = new Uint8Array(i.buf);
  10770. h === i.dType
  10771. ? t.oFileSystem.writeFileHeader(r)
  10772. : t.oFileSystem.writeFileContent(r);
  10773. }
  10774. });
  10775. });
  10776. return e;
  10777. },
  10778. },
  10779. {
  10780. key: 'inputData',
  10781. value: function (t) {
  10782. if (this.oWorker) {
  10783. var e = new Uint8Array(t);
  10784. this.oWorker.postMessage(
  10785. {type: 'inputData', buf: e.buffer, len: e.length},
  10786. [e.buffer]
  10787. );
  10788. }
  10789. },
  10790. },
  10791. {
  10792. key: 'stopRecord',
  10793. value: function () {
  10794. var t = this,
  10795. e = new Promise(function (e, n) {
  10796. t.oWorker
  10797. ? t.oWorker.postMessage({type: 'release'})
  10798. : n(),
  10799. t.oFileSystem
  10800. ? t.oFileSystem.stopWriteFile().then(
  10801. function () {
  10802. e();
  10803. },
  10804. function () {
  10805. n();
  10806. }
  10807. )
  10808. : n();
  10809. });
  10810. return e;
  10811. },
  10812. },
  10813. ]),
  10814. t
  10815. );
  10816. })(),
  10817. m = (function () {
  10818. if ('undefined' != typeof Symbol) {
  10819. var t = Symbol('STORAGELIST'),
  10820. e = (function () {
  10821. function e(n, i) {
  10822. r(this, e),
  10823. (this.szBasePath = n),
  10824. (this[t] = {}),
  10825. (this.options = {iFileSize: 1073741824}),
  10826. Object.assign(this.options, i);
  10827. }
  10828. return (
  10829. o(e, [
  10830. {
  10831. key: 'startRecord',
  10832. value: function (e, n, i, r, o) {
  10833. var a = this,
  10834. u = s.default.v4(),
  10835. l = Object.assign({}, this.options, o),
  10836. f = new y(this.szBasePath, u, e, n, i, r, l),
  10837. c = new Promise(function (e, n) {
  10838. f.init().then(
  10839. function (n) {
  10840. (a[t][n] = f), e(n);
  10841. },
  10842. function (t) {
  10843. n(t);
  10844. }
  10845. );
  10846. });
  10847. return c;
  10848. },
  10849. },
  10850. {
  10851. key: 'inputData',
  10852. value: function (e, n) {
  10853. var i = this[t][e];
  10854. i && i.inputData(n);
  10855. },
  10856. },
  10857. {
  10858. key: 'stopRecord',
  10859. value: function (e) {
  10860. var n = this,
  10861. i = new Promise(function (i, r) {
  10862. var o = n[t][e];
  10863. o
  10864. ? o.stopRecord().then(
  10865. function () {
  10866. delete n[t][e], i();
  10867. },
  10868. function () {
  10869. r();
  10870. }
  10871. )
  10872. : r();
  10873. });
  10874. return i;
  10875. },
  10876. },
  10877. ]),
  10878. e
  10879. );
  10880. })();
  10881. return e;
  10882. }
  10883. })();
  10884. e.StorageManager = m;
  10885. },
  10886. function (t, e) {
  10887. 'use strict';
  10888. function n(t, e) {
  10889. if (!(t instanceof e))
  10890. throw new TypeError('Cannot call a class as a function');
  10891. }
  10892. Object.defineProperty(e, '__esModule', {value: !0});
  10893. var i = (function () {
  10894. function t(t, e) {
  10895. for (var n = 0; n < e.length; n++) {
  10896. var i = e[n];
  10897. (i.enumerable = i.enumerable || !1),
  10898. (i.configurable = !0),
  10899. 'value' in i && (i.writable = !0),
  10900. Object.defineProperty(t, i.key, i);
  10901. }
  10902. }
  10903. return function (e, n, i) {
  10904. return n && t(e.prototype, n), i && t(e, i), e;
  10905. };
  10906. })(),
  10907. r = 3001,
  10908. o = 3002,
  10909. a = 3003,
  10910. s = (function () {
  10911. if ('undefined' != typeof Symbol) {
  10912. var t = (function () {
  10913. function t() {
  10914. n(this, t);
  10915. }
  10916. return (
  10917. i(t, [
  10918. {
  10919. key: 'createClientObject',
  10920. value: function (t, e, n) {
  10921. return {
  10922. socket: t,
  10923. id: e,
  10924. playURL: n,
  10925. resolve: null,
  10926. reject: null,
  10927. };
  10928. },
  10929. },
  10930. {
  10931. key: 'getMediaFromSdp',
  10932. value: function (t) {
  10933. for (
  10934. var e = t.indexOf('MEDIAINFO=') + 10,
  10935. n = t.slice(e, e + 80),
  10936. i = [],
  10937. r = 0,
  10938. o = n.length / 2;
  10939. r < o;
  10940. r++
  10941. )
  10942. i[r] = parseInt(n.slice(2 * r, 2 * r + 2), 16);
  10943. return new Uint8Array(i);
  10944. },
  10945. },
  10946. {
  10947. key: 'playCmd',
  10948. value: function (t) {
  10949. var e = {sequence: 0, cmd: 'realplay', url: t};
  10950. return JSON.stringify(e);
  10951. },
  10952. },
  10953. {
  10954. key: 'playbackCmd',
  10955. value: function (t, e, n) {
  10956. var i = {
  10957. sequence: 0,
  10958. cmd: 'playback',
  10959. url: n,
  10960. startTime: t,
  10961. endTime: e,
  10962. };
  10963. return JSON.stringify(i);
  10964. },
  10965. },
  10966. {
  10967. key: 'playRateCmd',
  10968. value: function (t) {
  10969. var e = {sequence: 0, cmd: 'speed', rate: t};
  10970. return JSON.stringify(e);
  10971. },
  10972. },
  10973. {
  10974. key: 'pauseCmd',
  10975. value: function () {
  10976. var t = {sequence: 0, cmd: 'pause'};
  10977. return JSON.stringify(t);
  10978. },
  10979. },
  10980. {
  10981. key: 'resumeCmd',
  10982. value: function () {
  10983. var t = {sequence: 0, cmd: 'resume'};
  10984. return JSON.stringify(t);
  10985. },
  10986. },
  10987. {
  10988. key: 'getError',
  10989. value: function (t) {
  10990. var e = r;
  10991. return (
  10992. t &&
  10993. (6 === parseInt(t.statusCode, 10) &&
  10994. 'streamLimit' === t.subStatusCode
  10995. ? (e = o)
  10996. : 4 === parseInt(t.statusCode, 10) &&
  10997. 'badAuthorization' === t.subStatusCode &&
  10998. (e = a)),
  10999. {iErrorNum: e, oError: t}
  11000. );
  11001. },
  11002. },
  11003. ]),
  11004. t
  11005. );
  11006. })();
  11007. return t;
  11008. }
  11009. })();
  11010. e.DirectDevice = s;
  11011. },
  11012. function (t, e) {
  11013. 'use strict';
  11014. function n(t, e) {
  11015. if (!(t instanceof e))
  11016. throw new TypeError('Cannot call a class as a function');
  11017. }
  11018. Object.defineProperty(e, '__esModule', {value: !0});
  11019. var i = (function () {
  11020. function t(t, e) {
  11021. for (var n = 0; n < e.length; n++) {
  11022. var i = e[n];
  11023. (i.enumerable = i.enumerable || !1),
  11024. (i.configurable = !0),
  11025. 'value' in i && (i.writable = !0),
  11026. Object.defineProperty(t, i.key, i);
  11027. }
  11028. }
  11029. return function (e, n, i) {
  11030. return n && t(e.prototype, n), i && t(e, i), e;
  11031. };
  11032. })(),
  11033. r = (function () {
  11034. if ('undefined' != typeof Symbol) {
  11035. var t = (function () {
  11036. function t() {
  11037. n(this, t);
  11038. }
  11039. return (
  11040. i(t, [
  11041. {
  11042. key: 'createClientObject',
  11043. value: function (t, e, n, i) {
  11044. return {
  11045. socket: t,
  11046. id: e,
  11047. iCurChannel: n,
  11048. iCurStream: i,
  11049. resolve: null,
  11050. reject: null,
  11051. };
  11052. },
  11053. },
  11054. {
  11055. key: 'zeroPlayCmd',
  11056. value: function (t, e) {
  11057. var n = [
  11058. 0,
  11059. 0,
  11060. 0,
  11061. 44,
  11062. 0,
  11063. 0,
  11064. 0,
  11065. 0,
  11066. 0,
  11067. 0,
  11068. 0,
  11069. 0,
  11070. 0,
  11071. 19,
  11072. 0,
  11073. 0,
  11074. 0,
  11075. 0,
  11076. 0,
  11077. 0,
  11078. 0,
  11079. 0,
  11080. 0,
  11081. 0,
  11082. 0,
  11083. 0,
  11084. 0,
  11085. 0,
  11086. 0,
  11087. 0,
  11088. 0,
  11089. 0,
  11090. 0,
  11091. 0,
  11092. 0,
  11093. t + 1,
  11094. 0,
  11095. 0,
  11096. 0,
  11097. e,
  11098. 0,
  11099. 0,
  11100. 4,
  11101. 0,
  11102. ];
  11103. return new Uint8Array(n);
  11104. },
  11105. },
  11106. {
  11107. key: 'playCmd',
  11108. value: function (t, e) {
  11109. var n = [
  11110. 0,
  11111. 0,
  11112. 0,
  11113. 44,
  11114. 0,
  11115. 0,
  11116. 0,
  11117. 0,
  11118. 0,
  11119. 0,
  11120. 0,
  11121. 0,
  11122. 0,
  11123. 3,
  11124. 0,
  11125. 0,
  11126. 0,
  11127. 0,
  11128. 0,
  11129. 0,
  11130. 0,
  11131. 0,
  11132. 0,
  11133. 0,
  11134. 0,
  11135. 0,
  11136. 0,
  11137. 0,
  11138. 0,
  11139. 0,
  11140. 0,
  11141. 0,
  11142. 0,
  11143. 0,
  11144. 0,
  11145. t,
  11146. 0,
  11147. 0,
  11148. 0,
  11149. e,
  11150. 0,
  11151. 0,
  11152. 4,
  11153. 0,
  11154. ];
  11155. return new Uint8Array(n);
  11156. },
  11157. },
  11158. {
  11159. key: 'playbackCmd',
  11160. value: function (t, e, n, i) {
  11161. var r = t.split('T')[0],
  11162. o = t.split('T')[1],
  11163. a = '0' + parseInt(r.substring(0, 4), 10).toString(16),
  11164. s = parseInt(r.substring(4, 6), 10),
  11165. u = parseInt(r.substring(6), 10),
  11166. l = parseInt(o.substring(0, 2), 10),
  11167. f = parseInt(o.substring(2, 4), 10),
  11168. c = parseInt(o.substring(4, 6), 10),
  11169. h = e.split('T')[0],
  11170. d = e.split('T')[1],
  11171. p = '0' + parseInt(h.substring(0, 4), 10).toString(16),
  11172. y = parseInt(h.substring(4, 6), 10),
  11173. m = parseInt(d.substring(0, 2), 10),
  11174. v = parseInt(d.substring(2, 4), 10),
  11175. g = parseInt(d.substring(4, 6), 10),
  11176. S = [
  11177. 0,
  11178. 0,
  11179. 0,
  11180. 96,
  11181. 0,
  11182. 0,
  11183. 0,
  11184. 0,
  11185. 0,
  11186. 0,
  11187. 0,
  11188. 0,
  11189. 0,
  11190. 3,
  11191. 1,
  11192. 2,
  11193. 0,
  11194. 0,
  11195. 0,
  11196. 0,
  11197. 0,
  11198. 0,
  11199. 0,
  11200. 0,
  11201. 0,
  11202. 0,
  11203. 0,
  11204. 0,
  11205. 0,
  11206. 0,
  11207. 0,
  11208. 0,
  11209. 0,
  11210. 0,
  11211. 0,
  11212. n,
  11213. 0,
  11214. 0,
  11215. parseInt(a.substring(0, 2), 16),
  11216. parseInt(a.substring(2, 4), 16),
  11217. 0,
  11218. 0,
  11219. 0,
  11220. s,
  11221. 0,
  11222. 0,
  11223. 0,
  11224. u,
  11225. 0,
  11226. 0,
  11227. 0,
  11228. l,
  11229. 0,
  11230. 0,
  11231. 0,
  11232. f,
  11233. 0,
  11234. 0,
  11235. 0,
  11236. c,
  11237. 0,
  11238. 0,
  11239. parseInt(p.substring(0, 2), 16),
  11240. parseInt(p.substring(2, 4), 16),
  11241. 0,
  11242. 0,
  11243. 0,
  11244. y,
  11245. 0,
  11246. 0,
  11247. 0,
  11248. u,
  11249. 0,
  11250. 0,
  11251. 0,
  11252. m,
  11253. 0,
  11254. 0,
  11255. 0,
  11256. v,
  11257. 0,
  11258. 0,
  11259. 0,
  11260. g,
  11261. 0,
  11262. 0,
  11263. 0,
  11264. 0,
  11265. 0,
  11266. 0,
  11267. 0,
  11268. 0,
  11269. i,
  11270. 0,
  11271. 0,
  11272. 0,
  11273. ];
  11274. return new Uint8Array(S);
  11275. },
  11276. },
  11277. {
  11278. key: 'playRateCmd',
  11279. value: function (t) {
  11280. for (
  11281. var e = (parseInt(t, 10) >>> 0)
  11282. .toString(16)
  11283. .toLocaleUpperCase()
  11284. .toString(16),
  11285. n = e.length;
  11286. n < 8;
  11287. n++
  11288. )
  11289. e = '0' + e;
  11290. for (
  11291. var i = [0, 0, 0, 0], r = 0, o = e.length;
  11292. r < o;
  11293. r += 2
  11294. )
  11295. i[Math.floor(r / 2)] = parseInt(
  11296. e.substring(r, r + 2),
  11297. 16
  11298. );
  11299. var a = [
  11300. 0,
  11301. 0,
  11302. 0,
  11303. 36,
  11304. 0,
  11305. 0,
  11306. 0,
  11307. 0,
  11308. 0,
  11309. 0,
  11310. 0,
  11311. 0,
  11312. 0,
  11313. 3,
  11314. 1,
  11315. 47,
  11316. 0,
  11317. 0,
  11318. 0,
  11319. 0,
  11320. 0,
  11321. 0,
  11322. 0,
  11323. 0,
  11324. 0,
  11325. 0,
  11326. 0,
  11327. 0,
  11328. 0,
  11329. 0,
  11330. 0,
  11331. 0,
  11332. i[0],
  11333. i[1],
  11334. i[2],
  11335. i[3],
  11336. ];
  11337. return new Uint8Array(a);
  11338. },
  11339. },
  11340. {
  11341. key: 'pauseCmd',
  11342. value: function () {
  11343. var t = [
  11344. 0,
  11345. 0,
  11346. 0,
  11347. 32,
  11348. 0,
  11349. 0,
  11350. 0,
  11351. 0,
  11352. 0,
  11353. 0,
  11354. 0,
  11355. 0,
  11356. 0,
  11357. 3,
  11358. 1,
  11359. 7,
  11360. 0,
  11361. 0,
  11362. 0,
  11363. 0,
  11364. 0,
  11365. 0,
  11366. 0,
  11367. 0,
  11368. 0,
  11369. 0,
  11370. 0,
  11371. 0,
  11372. 0,
  11373. 0,
  11374. 0,
  11375. 0,
  11376. ];
  11377. return new Uint8Array(t);
  11378. },
  11379. },
  11380. {
  11381. key: 'resumeCmd',
  11382. value: function () {
  11383. var t = [
  11384. 0,
  11385. 0,
  11386. 0,
  11387. 32,
  11388. 0,
  11389. 0,
  11390. 0,
  11391. 0,
  11392. 0,
  11393. 0,
  11394. 0,
  11395. 0,
  11396. 0,
  11397. 3,
  11398. 1,
  11399. 8,
  11400. 0,
  11401. 0,
  11402. 0,
  11403. 0,
  11404. 0,
  11405. 0,
  11406. 0,
  11407. 0,
  11408. 0,
  11409. 0,
  11410. 0,
  11411. 0,
  11412. 0,
  11413. 0,
  11414. 0,
  11415. 0,
  11416. ];
  11417. return new Uint8Array(t);
  11418. },
  11419. },
  11420. ]),
  11421. t
  11422. );
  11423. })();
  11424. return t;
  11425. }
  11426. })();
  11427. e.DirectDeviceCustom = r;
  11428. },
  11429. function (t, e, n) {
  11430. 'use strict';
  11431. function i(t) {
  11432. return t && t.__esModule ? t : {default: t};
  11433. }
  11434. function r(t, e) {
  11435. if (!(t instanceof e))
  11436. throw new TypeError('Cannot call a class as a function');
  11437. }
  11438. Object.defineProperty(e, '__esModule', {value: !0}),
  11439. (e.LiveMedia = void 0);
  11440. var o = (function () {
  11441. function t(t, e) {
  11442. for (var n = 0; n < e.length; n++) {
  11443. var i = e[n];
  11444. (i.enumerable = i.enumerable || !1),
  11445. (i.configurable = !0),
  11446. 'value' in i && (i.writable = !0),
  11447. Object.defineProperty(t, i.key, i);
  11448. }
  11449. }
  11450. return function (e, n, i) {
  11451. return n && t(e.prototype, n), i && t(e, i), e;
  11452. };
  11453. })(),
  11454. a = n(18),
  11455. s = i(a),
  11456. u = n(17),
  11457. l = i(u),
  11458. f = (function () {
  11459. if ('undefined' != typeof Symbol) {
  11460. var t = (function () {
  11461. function t() {
  11462. r(this, t);
  11463. }
  11464. return (
  11465. o(t, [
  11466. {
  11467. key: 'createClientObject',
  11468. value: function (t, e, n, i, r) {
  11469. var o = l.default.AES.encrypt(
  11470. new Date().getTime().toString(),
  11471. l.default.enc.Hex.parse(
  11472. '1234567891234567123456789123456712345678912345671234567891234567'
  11473. ),
  11474. {
  11475. mode: l.default.mode.CBC,
  11476. iv: l.default.enc.Hex.parse(
  11477. '12345678912345671234567891234567'
  11478. ),
  11479. padding: l.default.pad.Pkcs7,
  11480. }
  11481. ).ciphertext.toString();
  11482. o.length < 64 && (o += o);
  11483. var a = l.default.AES.encrypt(
  11484. new Date().getTime().toString(),
  11485. l.default.enc.Hex.parse(
  11486. '12345678912345671234567891234567'
  11487. ),
  11488. {
  11489. mode: l.default.mode.CBC,
  11490. iv: l.default.enc.Hex.parse(
  11491. '12345678912345671234567891234567'
  11492. ),
  11493. padding: l.default.pad.Pkcs7,
  11494. }
  11495. ).ciphertext.toString();
  11496. return {
  11497. socket: t,
  11498. id: e,
  11499. PKD: n,
  11500. rand: i,
  11501. playURL: r.playURL || '',
  11502. auth: r.auth || '',
  11503. token: r.token || '',
  11504. key: o,
  11505. iv: a,
  11506. resolve: null,
  11507. reject: null,
  11508. };
  11509. },
  11510. },
  11511. {
  11512. key: 'playCmd',
  11513. value: function (t) {
  11514. var e = {
  11515. sequence: 0,
  11516. cmd: 'realplay',
  11517. url: t.playURL,
  11518. key: s.default
  11519. .encrypt(t.iv + ':' + t.key, t.PKD)
  11520. .cipher.split('?')[0],
  11521. authorization: l.default.AES.encrypt(
  11522. t.rand + ':' + t.auth,
  11523. l.default.enc.Hex.parse(t.key),
  11524. {
  11525. mode: l.default.mode.CBC,
  11526. iv: l.default.enc.Hex.parse(t.iv),
  11527. padding: l.default.pad.Pkcs7,
  11528. }
  11529. ).ciphertext.toString(),
  11530. token: l.default.AES.encrypt(
  11531. t.token,
  11532. l.default.enc.Hex.parse(t.key),
  11533. {
  11534. mode: l.default.mode.CBC,
  11535. iv: l.default.enc.Hex.parse(t.iv),
  11536. padding: l.default.pad.Pkcs7,
  11537. }
  11538. ).ciphertext.toString(),
  11539. };
  11540. return JSON.stringify(e);
  11541. },
  11542. },
  11543. {
  11544. key: 'playbackCmd',
  11545. value: function (t, e, n) {
  11546. var i = {
  11547. sequence: 0,
  11548. cmd: 'playback',
  11549. url: t.playURL,
  11550. key: s.default
  11551. .encrypt(t.iv + ':' + t.key, t.PKD)
  11552. .cipher.split('?')[0],
  11553. authorization: l.default.AES.encrypt(
  11554. t.rand + ':' + t.auth,
  11555. l.default.enc.Hex.parse(t.key),
  11556. {
  11557. mode: l.default.mode.CBC,
  11558. iv: l.default.enc.Hex.parse(t.iv),
  11559. padding: l.default.pad.Pkcs7,
  11560. }
  11561. ).ciphertext.toString(),
  11562. token: l.default.AES.encrypt(
  11563. t.token,
  11564. l.default.enc.Hex.parse(t.key),
  11565. {
  11566. mode: l.default.mode.CBC,
  11567. iv: l.default.enc.Hex.parse(t.iv),
  11568. padding: l.default.pad.Pkcs7,
  11569. }
  11570. ).ciphertext.toString(),
  11571. startTime: e,
  11572. endTime: n,
  11573. };
  11574. return JSON.stringify(i);
  11575. },
  11576. },
  11577. {
  11578. key: 'seekCmd',
  11579. value: function (t, e) {
  11580. var n = {
  11581. sequence: 0,
  11582. cmd: 'seek',
  11583. startTime: t,
  11584. endTime: e,
  11585. };
  11586. return JSON.stringify(n);
  11587. },
  11588. },
  11589. ]),
  11590. t
  11591. );
  11592. })();
  11593. return t;
  11594. }
  11595. })();
  11596. e.LiveMedia = f;
  11597. },
  11598. function (t, e) {
  11599. 'use strict';
  11600. function n(t, e) {
  11601. if (!(t instanceof e))
  11602. throw new TypeError('Cannot call a class as a function');
  11603. }
  11604. Object.defineProperty(e, '__esModule', {value: !0});
  11605. var i = (function () {
  11606. function t(t, e) {
  11607. for (var n = 0; n < e.length; n++) {
  11608. var i = e[n];
  11609. (i.enumerable = i.enumerable || !1),
  11610. (i.configurable = !0),
  11611. 'value' in i && (i.writable = !0),
  11612. Object.defineProperty(t, i.key, i);
  11613. }
  11614. }
  11615. return function (e, n, i) {
  11616. return n && t(e.prototype, n), i && t(e, i), e;
  11617. };
  11618. })(),
  11619. r = (function () {
  11620. if ('undefined' != typeof Symbol) {
  11621. var t = (function () {
  11622. function t() {
  11623. n(this, t);
  11624. }
  11625. return (
  11626. i(t, [
  11627. {
  11628. key: 'createClientObject',
  11629. value: function (t, e, n, i) {
  11630. return {
  11631. socket: t,
  11632. id: e,
  11633. playURL: n,
  11634. deviceSerial: i.deviceSerial || '',
  11635. verificationCode: i.verificationCode || '',
  11636. resolve: null,
  11637. reject: null,
  11638. };
  11639. },
  11640. },
  11641. {
  11642. key: 'playCmd',
  11643. value: function (t) {
  11644. var e = {
  11645. sequence: 0,
  11646. cmd: 'realplay',
  11647. deviceSerial: t.deviceSerial,
  11648. verificationCode: t.verificationCode,
  11649. url: t.playURL,
  11650. };
  11651. return JSON.stringify(e);
  11652. },
  11653. },
  11654. {
  11655. key: 'playbackCmd',
  11656. value: function (t, e, n) {
  11657. var i = {
  11658. sequence: 0,
  11659. cmd: 'playback',
  11660. deviceSerial: t.deviceSerial,
  11661. verificationCode: t.verificationCode,
  11662. url: t.playURL,
  11663. startTime: e,
  11664. endTime: n,
  11665. };
  11666. return JSON.stringify(i);
  11667. },
  11668. },
  11669. ]),
  11670. t
  11671. );
  11672. })();
  11673. return t;
  11674. }
  11675. })();
  11676. e.LocalService = r;
  11677. },
  11678. function (t, e, n) {
  11679. 'use strict';
  11680. function i(t) {
  11681. return t && t.__esModule ? t : {default: t};
  11682. }
  11683. function r(t, e) {
  11684. if (!(t instanceof e))
  11685. throw new TypeError('Cannot call a class as a function');
  11686. }
  11687. Object.defineProperty(e, '__esModule', {value: !0}),
  11688. (e.StreamClient = void 0);
  11689. var o = (function () {
  11690. function t(t, e) {
  11691. for (var n = 0; n < e.length; n++) {
  11692. var i = e[n];
  11693. (i.enumerable = i.enumerable || !1),
  11694. (i.configurable = !0),
  11695. 'value' in i && (i.writable = !0),
  11696. Object.defineProperty(t, i.key, i);
  11697. }
  11698. }
  11699. return function (e, n, i) {
  11700. return n && t(e.prototype, n), i && t(e, i), e;
  11701. };
  11702. })(),
  11703. a = n(2),
  11704. s = i(a),
  11705. u = n(12),
  11706. l = n(11),
  11707. f = n(13),
  11708. c = n(14),
  11709. h = (function () {
  11710. if ('undefined' != typeof Symbol) {
  11711. var t = Symbol('WEBSOCKET'),
  11712. e = Symbol('GETINDEX'),
  11713. n = Symbol('PROTOCOLVERSION'),
  11714. i = Symbol('CIPHERSUITES'),
  11715. a = new u.DirectDeviceCustom(),
  11716. h = new l.DirectDevice(),
  11717. d = new f.LiveMedia(),
  11718. p = new c.LocalService(),
  11719. y = (function () {
  11720. function u() {
  11721. r(this, u),
  11722. (this[n] = '0.1'),
  11723. (this[i] = 0),
  11724. (this[t] = []),
  11725. (this.ERRORS = {}),
  11726. (this[e] = function (e) {
  11727. for (var n = -1, i = 0, r = this[t].length; i < r; i++)
  11728. if (this[t][i].id === e) {
  11729. n = i;
  11730. break;
  11731. }
  11732. return n;
  11733. });
  11734. }
  11735. return (
  11736. o(u, [
  11737. {
  11738. key: 'openStream',
  11739. value: function (r, o, u, l) {
  11740. console.log("r", r);
  11741. var f = this,
  11742. c = r.split(':'),
  11743. y = c[0],
  11744. m = c[1].split('//')[1],
  11745. v = Math.floor(c[2].split('/')[0]);
  11746. o = o || {};
  11747. console.log("oooooo", o);
  11748. console.log("this[M]-99-p", p);
  11749. console.log("y,m,v", y, m, v);
  11750. var g = o.sessionID || o.session || '',
  11751. S = new window.WebSocket(r);
  11752. S.binaryType = 'arraybuffer';
  11753. var b = s.default.v4(),
  11754. w = Math.floor(c[2].split('/')[1] / 100),
  11755. _ = Math.floor(c[2].split('/')[1] % 100) - 1;
  11756. 0 === w && (_ = 0);
  11757. var P = new Promise(function (r, s) {
  11758. (S.onopen = function () {
  11759. o.playURL ||
  11760. o.sessionID ||
  11761. o.deviceSerial ||
  11762. (f[t].push(a.createClientObject(S, b, w, _)),
  11763. r(b));
  11764. }),
  11765. (S.onmessage = function (a) {
  11766. if ('string' == typeof a.data) {
  11767. var l = JSON.parse(a.data),
  11768. c = f[e](b);
  11769. if (l && l.version && l.cipherSuite) {
  11770. if (
  11771. ((f[n] = l.version),
  11772. (f[i] = parseInt(l.cipherSuite, 10)),
  11773. l && l.PKD && l.rand)
  11774. )
  11775. f[t].push(
  11776. d.createClientObject(
  11777. S,
  11778. b,
  11779. l.PKD,
  11780. l.rand,
  11781. o
  11782. )
  11783. );
  11784. else {
  11785. var y =
  11786. 'live://' +
  11787. m +
  11788. ':' +
  11789. v +
  11790. '/' +
  11791. w +
  11792. '/' +
  11793. _;
  11794. f[i] === -1
  11795. ? f[t].push(
  11796. p.createClientObject(S, b, y, o)
  11797. )
  11798. : f[t].push(
  11799. h.createClientObject(S, b, y)
  11800. );
  11801. }
  11802. return void r(b);
  11803. }
  11804. if (l && l.sdp) {
  11805. var g = h.getMediaFromSdp(l.sdp);
  11806. u({bHead: !0, buf: g});
  11807. }
  11808. if (
  11809. (l &&
  11810. l.cmd &&
  11811. 'end' === l.cmd &&
  11812. u({type: 'exception', cmd: l.cmd}),
  11813. l &&
  11814. l.statusString &&
  11815. ('ok' === l.statusString.toLowerCase() &&
  11816. f[t][c].resolve &&
  11817. f[t][c].resolve(l),
  11818. 'ok' !== l.statusString.toLowerCase()))
  11819. ) {
  11820. var P = h.getError(l);
  11821. c > -1
  11822. ? f[t][c].reject && f[t][c].reject(P)
  11823. : s(P);
  11824. }
  11825. } else {
  11826. var C = {},
  11827. x = new Uint8Array(a.data);
  11828. if (
  11829. 64 === x.byteLength ||
  11830. 40 === x.byteLength
  11831. ) {
  11832. for (
  11833. var T = -1, k = x.byteLength, D = 0;
  11834. D < k;
  11835. D++
  11836. )
  11837. if (
  11838. 73 === x[D] &&
  11839. 77 === x[D + 1] &&
  11840. 75 === x[D + 2] &&
  11841. 72 === x[D + 3]
  11842. ) {
  11843. T = D;
  11844. break;
  11845. }
  11846. if (T !== -1) {
  11847. var M = x.slice(T, T + 40);
  11848. C = {bHead: !0, buf: M};
  11849. } else C = {bHead: !1, buf: x};
  11850. } else C = {bHead: !1, buf: x};
  11851. u(C), (x = null), (C = null), (a = null);
  11852. }
  11853. }),
  11854. (S.onclose = function () {
  11855. for (var e = 0, n = f[t].length; e < n; e++)
  11856. if (f[t][e].id === b) {
  11857. f[t][e].resolve(),
  11858. f[t].splice(e, 1),
  11859. setTimeout(function () {
  11860. l();
  11861. }, 200);
  11862. break;
  11863. }
  11864. s();
  11865. });
  11866. });
  11867. return P;
  11868. },
  11869. },
  11870. {
  11871. key: 'startPlay',
  11872. value: function (r, o, s) {
  11873. var u = this,
  11874. l = this[e](r);
  11875. o &&
  11876. s &&
  11877. '0.1' === u[n] &&
  11878. ((o = o.replace(/-/g, '').replace(/:/g, '')),
  11879. (s = s.replace(/-/g, '').replace(/:/g, '')));
  11880. var f = new Promise(function (e, r) {
  11881. if (l > -1) {
  11882. (u[t][l].resolve = e), (u[t][l].reject = r);
  11883. var f = null;
  11884. o && s
  11885. ? '0.1' !== u[n]
  11886. ? 0 === u[i]
  11887. ? (f = d.playbackCmd(u[t][l], o, s))
  11888. : 1 === u[i]
  11889. ? (f = h.playbackCmd(o, s, u[t][l].playURL))
  11890. : u[i] === -1 &&
  11891. (f = p.playbackCmd(u[t][l], o, s))
  11892. : (f = a.playbackCmd(
  11893. o,
  11894. s,
  11895. u[t][l].iCurChannel,
  11896. u[t][l].iCurStream
  11897. ))
  11898. : 0 === u[t][l].iCurChannel && '0.1' === u[n]
  11899. ? (f = a.zeroPlayCmd(
  11900. u[t][l].iCurChannel,
  11901. u[t][l].iCurStream
  11902. ))
  11903. : '0.1' !== u[n]
  11904. ? 0 === u[i]
  11905. ? (f = d.playCmd(u[t][l]))
  11906. : 1 === u[i]
  11907. ? (f = h.playCmd(u[t][l].playURL))
  11908. : u[i] === -1 && (f = p.playCmd(u[t][l]))
  11909. : (f = a.playCmd(
  11910. u[t][l].iCurChannel,
  11911. u[t][l].iCurStream
  11912. )),
  11913. u[t][l].socket.send(f),
  11914. '0.1' === u[n] && e();
  11915. } else '0.1' === u[n] && r();
  11916. });
  11917. return f;
  11918. },
  11919. },
  11920. {
  11921. key: 'singleFrame', value: function () {
  11922. }
  11923. },
  11924. {
  11925. key: 'setPlayRate',
  11926. value: function (e, i) {
  11927. var r = this,
  11928. o = new Promise(function (o, s) {
  11929. for (var u = 0, l = r[t].length; u < l; u++)
  11930. if (r[t][u].id === e) {
  11931. if ('0.1' === r[n]) {
  11932. var f = a.playRateCmd(i);
  11933. r[t][u].socket.send(f), o();
  11934. break;
  11935. }
  11936. (r[t][u].resolve = o), (r[t][u].reject = s);
  11937. var c = h.playRateCmd(i);
  11938. r[t][u].socket.send(c);
  11939. }
  11940. });
  11941. return o;
  11942. },
  11943. },
  11944. {
  11945. key: 'seek',
  11946. value: function (e, n, i) {
  11947. var r = this,
  11948. o = new Promise(function (o, a) {
  11949. for (var s = 0, u = r[t].length; s < u; s++)
  11950. if (r[t][s].id === e) {
  11951. (r[t][s].resolve = o), (r[t][s].reject = a);
  11952. var l = d.seekCmd(n, i);
  11953. r[t][s].socket.send(l);
  11954. }
  11955. });
  11956. return o;
  11957. },
  11958. },
  11959. {
  11960. key: 'pause',
  11961. value: function (e) {
  11962. var i = this,
  11963. r = new Promise(function (r, o) {
  11964. for (var s = 0, u = i[t].length; s < u; s++)
  11965. if (i[t][s].id === e) {
  11966. if ('0.1' === i[n]) {
  11967. var l = a.pauseCmd();
  11968. i[t][s].socket.send(l), r();
  11969. break;
  11970. }
  11971. (i[t][s].resolve = r), (i[t][s].reject = o);
  11972. var f = h.pauseCmd();
  11973. i[t][s].socket.send(f);
  11974. }
  11975. });
  11976. return r;
  11977. },
  11978. },
  11979. {
  11980. key: 'transmission',
  11981. value: function (e, n) {
  11982. var i = this,
  11983. r = new Promise(function (r, o) {
  11984. for (var a = 0, s = i[t].length; a < s; a++)
  11985. i[t][a].id === e &&
  11986. ((i[t][a].resolve = r),
  11987. (i[t][a].reject = o),
  11988. i[t][a].socket.send(n));
  11989. });
  11990. return r;
  11991. },
  11992. },
  11993. {
  11994. key: 'resume',
  11995. value: function (e) {
  11996. var i = this,
  11997. r = new Promise(function (r, o) {
  11998. for (var s = 0, u = i[t].length; s < u; s++)
  11999. if (i[t][s].id === e) {
  12000. if ('0.1' === i[n]) {
  12001. var l = a.resumeCmd();
  12002. i[t][s].socket.send(l), r();
  12003. break;
  12004. }
  12005. (i[t][s].resolve = r), (i[t][s].reject = o);
  12006. var f = h.resumeCmd();
  12007. i[t][s].socket.send(f);
  12008. }
  12009. });
  12010. return r;
  12011. },
  12012. },
  12013. {
  12014. key: 'stop',
  12015. value: function (e) {
  12016. var n = this,
  12017. i = new Promise(function (i, r) {
  12018. if (e) {
  12019. for (
  12020. var o = -1, a = 0, s = n[t].length;
  12021. a < s;
  12022. a++
  12023. )
  12024. if (n[t][a].id === e) {
  12025. (o = a),
  12026. (n[t][a].resolve = i),
  12027. n[t][a].socket.close(1e3, 'CLOSE');
  12028. break;
  12029. }
  12030. o === -1 && r();
  12031. } else r();
  12032. });
  12033. return i;
  12034. },
  12035. },
  12036. {
  12037. key: 'stopAll',
  12038. value: function () {
  12039. for (var e = this, n = 0, i = e[t].length; n < i; n++)
  12040. e[t][n].socket.close(1e3, 'CLOSE');
  12041. },
  12042. },
  12043. ]),
  12044. u
  12045. );
  12046. })();
  12047. return y;
  12048. }
  12049. })();
  12050. e.StreamClient = h;
  12051. },
  12052. function (t, e) {
  12053. 'use strict';
  12054. function n(t, e) {
  12055. if (!(t instanceof e))
  12056. throw new TypeError('Cannot call a class as a function');
  12057. }
  12058. Object.defineProperty(e, '__esModule', {value: !0});
  12059. var i = (function () {
  12060. function t(t, e) {
  12061. for (var n = 0; n < e.length; n++) {
  12062. var i = e[n];
  12063. (i.enumerable = i.enumerable || !1),
  12064. (i.configurable = !0),
  12065. 'value' in i && (i.writable = !0),
  12066. Object.defineProperty(t, i.key, i);
  12067. }
  12068. }
  12069. return function (e, n, i) {
  12070. return n && t(e.prototype, n), i && t(e, i), e;
  12071. };
  12072. })(),
  12073. r = 0,
  12074. o = 1,
  12075. a = 2,
  12076. s = 11,
  12077. u = 16,
  12078. l = 31,
  12079. f = 60,
  12080. c = 61,
  12081. h = 63,
  12082. d = 0,
  12083. p = 1,
  12084. y = 0,
  12085. m = 1,
  12086. v = 0,
  12087. g = 1,
  12088. S = 15,
  12089. b = 8,
  12090. w = 1,
  12091. _ = 25,
  12092. P = 20,
  12093. C = 5,
  12094. x = 5242880,
  12095. T = 5e3,
  12096. k = !1,
  12097. D = !1,
  12098. M = {id: null, cmd: null, data: null, errorCode: 0, status: null};
  12099. e.JSPlayCtrl = (function () {
  12100. function t(e, i, c) {
  12101. if ((n(this, t), null == e || void 0 === e || 'string' != typeof e))
  12102. return o;
  12103. if (((this.szBasePath = e), !i || 'function' != typeof i)) return o;
  12104. (this.fnCallBack = i),
  12105. (this.decodeWorker = null),
  12106. (this.streamOpenMode = null),
  12107. (this.bOpenStream = !1),
  12108. (this.audioRenderer = null),
  12109. (this.aAudioBuffer = []),
  12110. (this.iAudioBufferSize = 0),
  12111. (this.oSuperRender = null),
  12112. (this.aVideoFrameBuffer = []),
  12113. (this.YUVBufferSize = w),
  12114. (this.szOSDTime = null),
  12115. (this.bPlaySound = !1),
  12116. (this.bPlay = !1),
  12117. (this.bPause = !1),
  12118. (this.bOnebyOne = !1),
  12119. (this.bPlayRateChange = !1),
  12120. (this.dataCallBackFun = null),
  12121. (this.nWidth = 0),
  12122. (this.nHeight = 0),
  12123. (this.sCanvasId = null),
  12124. (this.aDisplayBuf = null),
  12125. (this.bVisibility = !0),
  12126. (this.nDecFrameType = v),
  12127. (this.iCanvasWidth = 0),
  12128. (this.iCanvasHeight = 0),
  12129. (this.iZoomNum = 0),
  12130. (this.iRatio_x = 1),
  12131. (this.iRatio_y = 1),
  12132. (this.stDisplayRect = {top: 0, left: 0, right: 0, bottom: 0}),
  12133. (this.stYUVRect = {top: 0, left: 0, right: 0, bottom: 0}),
  12134. (this.aInputDataLens = []),
  12135. (this.aInputDataBuffer = []),
  12136. (this.bIsGetYUV = !1),
  12137. (this.bIsFirstFrame = !0),
  12138. (this.iInputMaxBufSize = x),
  12139. (this.bIsInput = !1),
  12140. (this.bIsInputBufOver = !1),
  12141. (this.iInputDataLen = T);
  12142. var h = this;
  12143. if (
  12144. ((this.setCallBack = function (t, e, n, i, r) {
  12145. var o = M;
  12146. (o.id = c),
  12147. (o.cmd = e),
  12148. (o.data = n),
  12149. (o.errorCode = i),
  12150. (o.status = r),
  12151. t.fnCallBack(o);
  12152. }),
  12153. !k)
  12154. ) {
  12155. k = !0;
  12156. var d = document.createElement('script');
  12157. (d.type = 'text/javascript'),
  12158. (d.src = h.szBasePath + 'AudioRenderer.js');
  12159. var p = document.getElementsByTagName('head')[0];
  12160. p.appendChild(d),
  12161. (d.onload = d.onreadystatechange = function () {
  12162. !this.readyState ||
  12163. 'loaded' === this.readyState ||
  12164. 'complete' === this.readyState;
  12165. });
  12166. }
  12167. if (!D) {
  12168. D = !0;
  12169. var y = document.createElement('script');
  12170. (y.type = 'text/javascript'),
  12171. (y.src = h.szBasePath + 'SuperRender_10.js');
  12172. var m = document.getElementsByTagName('head')[0];
  12173. m.appendChild(y),
  12174. (y.onload = y.onreadystatechange = function () {
  12175. !this.readyState ||
  12176. 'loaded' === this.readyState ||
  12177. 'complete' === this.readyState;
  12178. });
  12179. var g = document.createElement('script');
  12180. (g.type = 'text/javascript'),
  12181. (g.src = h.szBasePath + 'SuperRender_20.js');
  12182. var R = document.getElementsByTagName('head')[0];
  12183. R.appendChild(g),
  12184. (g.onload = g.onreadystatechange = function () {
  12185. !this.readyState ||
  12186. 'loaded' === this.readyState ||
  12187. 'complete' === this.readyState;
  12188. });
  12189. }
  12190. (this.convertErrorCode = function (t) {
  12191. switch (t) {
  12192. case 1:
  12193. return r;
  12194. case 98:
  12195. return o;
  12196. default:
  12197. return t;
  12198. }
  12199. }),
  12200. (this.arrayBufferCopy = function (t) {
  12201. var e = t.byteLength,
  12202. n = new Uint8Array(e),
  12203. i = new Uint8Array(t),
  12204. r = 0;
  12205. for (r = 0; r < e; r++) n[r] = i[r];
  12206. return n;
  12207. }),
  12208. (this.inputDataFun = function () {
  12209. var t,
  12210. e = 0;
  12211. if (((h.bIsGetYUV = !1), h.bIsInputBufOver))
  12212. t = new Uint8Array(1);
  12213. else {
  12214. for (
  12215. ;
  12216. h.aInputDataLens.length > 0 &&
  12217. ((e += h.aInputDataLens.shift()), !(e > h.iInputDataLen));
  12218. ) ;
  12219. t = h.aInputDataBuffer.splice(0, e);
  12220. }
  12221. var n = new Uint8Array(t),
  12222. i = {command: 'InputData', data: n.buffer, dataSize: e};
  12223. h.bPlay &&
  12224. (h.bPause
  12225. ? h.bOnebyOne && h.decodeWorker.postMessage(i, [i.data])
  12226. : h.decodeWorker.postMessage(i, [i.data])),
  12227. (t = null),
  12228. (n = null);
  12229. }),
  12230. (this.getPic = function (t, e) {
  12231. if (null == this.decodeWorker || null == this.oSuperRender)
  12232. return a;
  12233. if (!this.bPlay) return a;
  12234. if (!t || 'function' != typeof t) return o;
  12235. if (((this.dataCallBackFun = t), 0 === this.iZoomNum))
  12236. (this.stYUVRect.left = 0),
  12237. (this.stYUVRect.top = 0),
  12238. (this.stYUVRect.right = 0),
  12239. (this.stYUVRect.bottom = 0);
  12240. else {
  12241. if (0 === this.iCanvasWidth || 0 === this.iCanvasHeight)
  12242. (this.stYUVRect.left = 0),
  12243. (this.stYUVRect.top = 0),
  12244. (this.stYUVRect.right = 0),
  12245. (this.stYUVRect.bottom = 0);
  12246. else {
  12247. var n = this.nWidth / this.iCanvasWidth,
  12248. i = this.nHeight / this.iCanvasHeight;
  12249. (this.stYUVRect.left = Math.round(
  12250. this.stDisplayRect.left * n
  12251. )),
  12252. (this.stYUVRect.top = Math.round(
  12253. this.stDisplayRect.top * i
  12254. )),
  12255. (this.stYUVRect.right = Math.round(
  12256. this.stDisplayRect.right * n
  12257. )),
  12258. (this.stYUVRect.bottom = Math.round(
  12259. this.stDisplayRect.bottom * i
  12260. ));
  12261. }
  12262. if (
  12263. this.stYUVRect.right - this.stYUVRect.left < 32 ||
  12264. this.stYUVRect.bottom - this.stYUVRect.top < 32
  12265. )
  12266. return o;
  12267. }
  12268. if (null == this.aDisplayBuf) return a;
  12269. var s = this.arrayBufferCopy(this.aDisplayBuf),
  12270. u = {
  12271. command: e,
  12272. data: s.buffer,
  12273. width: this.nWidth,
  12274. height: this.nHeight,
  12275. rect: this.stYUVRect,
  12276. };
  12277. return this.decodeWorker.postMessage(u, [u.data]), r;
  12278. }),
  12279. (this.createWorker = function (t) {
  12280. if (window.Worker) {
  12281. if (
  12282. null == this.decodeWorker &&
  12283. ((this.decodeWorker = new Worker(
  12284. h.szBasePath + 'DecodeWorker.js'
  12285. )),
  12286. null == this.decodeWorker)
  12287. )
  12288. return f;
  12289. this.decodeWorker.onmessage = function (e) {
  12290. var n = null,
  12291. i = e.data;
  12292. switch (i.function) {
  12293. case 'loaded':
  12294. (n = 'loaded'), t.setCallBack(t, 'loaded', 0, 0, !0);
  12295. break;
  12296. case 'SetStreamOpenMode':
  12297. n = 'SetStreamOpenMode';
  12298. break;
  12299. case 'OpenStream':
  12300. n = 'OpenStream';
  12301. break;
  12302. case 'InputData':
  12303. (n = 'InputData'),
  12304. i.errorCode === s &&
  12305. ((h.bIsInputBufOver = !0), h.inputDataFun()),
  12306. i.errorCode === l && (h.bIsInputBufOver = !1);
  12307. break;
  12308. case 'GetFrameData':
  12309. if (
  12310. ((n = 'GetFrameData'),
  12311. !h.bIsFirstFrame && i.errorCode === l)
  12312. ) {
  12313. (h.bIsInputBufOver = !1),
  12314. setTimeout(h.inputDataFun(), 5);
  12315. break;
  12316. }
  12317. if (
  12318. (h.bIsInputBufOver
  12319. ? h.inputDataFun()
  12320. : 'videoType' === i.type &&
  12321. (h.aInputDataLens.length > 0 && h.bIsInput
  12322. ? (h.inputDataFun(), (h.bIsInput = !1))
  12323. : (h.bIsGetYUV = !0),
  12324. (h.bIsFirstFrame = !1)),
  12325. h.bVisibility)
  12326. )
  12327. switch (i.type) {
  12328. case 'videoType':
  12329. if (null == i.data || null == i.frameInfo) return o;
  12330. (h.bIsFirstFrame = !1),
  12331. (t.nWidth = i.frameInfo.width),
  12332. (t.nHeight = i.frameInfo.height);
  12333. var r = new Object();
  12334. (r.data = i.data),
  12335. (r.osdTime = i.osd),
  12336. t.aVideoFrameBuffer.push(r),
  12337. (r = null);
  12338. var a = t.aVideoFrameBuffer.length;
  12339. if (
  12340. (a > P &&
  12341. (t.bOnebyOne ||
  12342. t.aVideoFrameBuffer.splice(0, C)),
  12343. t.bOnebyOne && t.aVideoFrameBuffer.length >= S)
  12344. ) {
  12345. t.setCallBack(t, 'OnebyOne', 0, 0, !1),
  12346. (t.bIsFirstFrame = !0);
  12347. break;
  12348. }
  12349. break;
  12350. case 'audioType':
  12351. if (t.bPlaySound && !t.bPlayRateChange) {
  12352. for (
  12353. var f = new Uint8Array(i.data),
  12354. c = t.aAudioBuffer.length,
  12355. d = 0,
  12356. p = f.length;
  12357. d < p;
  12358. d++
  12359. )
  12360. t.aAudioBuffer[c + d] = f[d];
  12361. t.iAudioBufferSize++,
  12362. (f = null),
  12363. t.iAudioBufferSize >= _ &&
  12364. (t.audioRenderer.Play(
  12365. t.aAudioBuffer,
  12366. t.aAudioBuffer.length,
  12367. i.frameInfo
  12368. ),
  12369. t.aAudioBuffer.splice(
  12370. 0,
  12371. t.aAudioBuffer.length
  12372. ),
  12373. (t.aAudioBuffer.length = 0),
  12374. (t.iAudioBufferSize = 0));
  12375. }
  12376. break;
  12377. case 'privateType':
  12378. }
  12379. break;
  12380. case 'PlaySound':
  12381. n = 'PlaySound';
  12382. break;
  12383. case 'GetJPEG':
  12384. n = 'GetJPEG';
  12385. var y = i.data;
  12386. t.dataCallBackFun(y);
  12387. break;
  12388. case 'GetBMP':
  12389. n = 'GetBMP';
  12390. var m = i.data;
  12391. t.dataCallBackFun(m);
  12392. }
  12393. 'GetFrameData' !== n
  12394. ? t.setCallBack(
  12395. t,
  12396. n,
  12397. 0,
  12398. t.convertErrorCode(i.errorCode),
  12399. !0
  12400. )
  12401. : u === i.errorCode &&
  12402. t.setCallBack(
  12403. t,
  12404. n,
  12405. 0,
  12406. t.convertErrorCode(i.errorCode),
  12407. !0
  12408. );
  12409. };
  12410. }
  12411. }),
  12412. this.createWorker(h),
  12413. (this.draw = function () {
  12414. if (h.bPlay) {
  12415. h.bPause || requestAnimationFrame(h.draw);
  12416. var t = h.aVideoFrameBuffer.length;
  12417. if (
  12418. (h.bOnebyOne &&
  12419. t <= b &&
  12420. h.setCallBack(h, 'OnebyOne', 0, l, !0),
  12421. t > h.YUVBufferSize)
  12422. ) {
  12423. var e = h.aVideoFrameBuffer.shift();
  12424. h.aDisplayBuf = e.data;
  12425. var n = new Uint8Array(h.aDisplayBuf);
  12426. h.oSuperRender.SR_DisplayFrameData(h.nWidth, h.nHeight, n),
  12427. (n = null),
  12428. (h.szOSDTime = e.osdTime),
  12429. (e = null);
  12430. }
  12431. } else
  12432. h.bPlay ||
  12433. (h.aVideoFrameBuffer.splice(0, h.aVideoFrameBuffer.length),
  12434. h.aAudioBuffer.splice(0, h.aAudioBuffer.length));
  12435. });
  12436. }
  12437. return (
  12438. i(t, [
  12439. {
  12440. key: 'PlayM4_SetStreamOpenMode',
  12441. value: function (t) {
  12442. return null == t || void 0 === t
  12443. ? o
  12444. : t !== y && t !== m
  12445. ? o
  12446. : ((this.streamOpenMode = t), r);
  12447. },
  12448. },
  12449. {
  12450. key: 'PlayM4_OpenStream',
  12451. value: function (t, e, n) {
  12452. return null == this.decodeWorker
  12453. ? a
  12454. : null == t || e <= 0 || n <= 0
  12455. ? o
  12456. : ((this.bPlay = !1),
  12457. (this.bPause = !1),
  12458. (this.bOnebyOne = !1),
  12459. (this.bIsFirstFrame = !0),
  12460. (this.bIsGetYUV = !1),
  12461. (this.bIsInput = !1),
  12462. this.decodeWorker.postMessage({
  12463. command: 'SetStreamOpenMode',
  12464. data: this.streamOpenMode,
  12465. }),
  12466. this.decodeWorker.postMessage({
  12467. command: 'OpenStream',
  12468. data: t,
  12469. dataSize: e,
  12470. bufPoolSize: n,
  12471. }),
  12472. (this.bOpenStream = !0),
  12473. r);
  12474. },
  12475. },
  12476. {
  12477. key: 'PlayM4_CloseStream',
  12478. value: function () {
  12479. return null === this.decodeWorker || this.bOpenStream === !1
  12480. ? a
  12481. : (this.PlayM4_Stop(),
  12482. this.decodeWorker.postMessage({command: 'CloseStream'}),
  12483. null !== this.oSuperRender &&
  12484. (this.oSuperRender.SR_Destroy(),
  12485. (this.oSuperRender = null)),
  12486. null !== this.audioRenderer &&
  12487. (this.audioRenderer.Stop(), (this.audioRenderer = null)),
  12488. this.aAudioBuffer.splice(0, this.aAudioBuffer.length),
  12489. this.aVideoFrameBuffer.splice(
  12490. 0,
  12491. this.aVideoFrameBuffer.length
  12492. ),
  12493. this.aInputDataBuffer.splice(
  12494. 0,
  12495. this.aInputDataBuffer.length
  12496. ),
  12497. this.aInputDataLens.splice(0, this.aInputDataLens.length),
  12498. (this.bOpenStream = !1),
  12499. (this.iAudioBufferSize = 0),
  12500. r);
  12501. },
  12502. },
  12503. {
  12504. key: 'PlayM4_Destroy',
  12505. value: function () {
  12506. return null === this.decodeWorker
  12507. ? r
  12508. : (this.PlayM4_CloseStream(),
  12509. this.decodeWorker.terminate(),
  12510. (this.decodeWorker = null),
  12511. r);
  12512. },
  12513. },
  12514. {
  12515. key: 'PlayM4_InputData',
  12516. value: function (t, e) {
  12517. if (null === this.decodeWorker || this.bOpenStream === !1)
  12518. return a;
  12519. var n = this.aInputDataBuffer.length;
  12520. if (4 === e) {
  12521. var i = new Uint8Array(t.buffer);
  12522. if (1 === i[0] && 2 === i[1] && 3 === i[2] && 4 === i[3])
  12523. return (
  12524. this.bIsFirstFrame
  12525. ? this.inputDataFun()
  12526. : this.bIsGetYUV
  12527. ? this.inputDataFun()
  12528. : (this.bIsInput = !0),
  12529. (i = null),
  12530. r
  12531. );
  12532. }
  12533. if (n > this.iInputMaxBufSize) return s;
  12534. var o = null,
  12535. l = e;
  12536. switch (this.streamOpenMode) {
  12537. case m:
  12538. (o = new Uint8Array(t.buffer)), this.aInputDataLens.push(e);
  12539. break;
  12540. case y:
  12541. l = e + 4;
  12542. var f = new Uint32Array([e]),
  12543. c = new Uint8Array(f.buffer);
  12544. (o = new Uint8Array(l)),
  12545. o.set(c, 0),
  12546. o.set(t, 4),
  12547. (f = null),
  12548. (c = null),
  12549. this.aInputDataLens.push(e + 4);
  12550. break;
  12551. default:
  12552. return u;
  12553. }
  12554. for (var h = 0; h < l; h++) this.aInputDataBuffer[n + h] = o[h];
  12555. return (
  12556. (o = null),
  12557. this.bIsFirstFrame
  12558. ? this.inputDataFun()
  12559. : this.bIsGetYUV
  12560. ? this.inputDataFun()
  12561. : (this.bIsInput = !0),
  12562. r
  12563. );
  12564. },
  12565. },
  12566. {
  12567. key: 'PlayM4_Play',
  12568. value: function (t) {
  12569. if (null === this.decodeWorker || this.bOpenStream === !1)
  12570. return a;
  12571. if (null !== t && 'string' != typeof t) return o;
  12572. if (
  12573. (this.bOnebyOne &&
  12574. ((this.bPlayRateChange = !1),
  12575. (this.bOnebyOne = !1),
  12576. (this.bPause = !1),
  12577. this.draw()),
  12578. this.bPlay)
  12579. )
  12580. return r;
  12581. if (null == this.oSuperRender) {
  12582. var e = document.getElementById(t),
  12583. n = e.getContext('webgl2');
  12584. if (
  12585. (n
  12586. ? (this.oSuperRender = new SuperRender2(
  12587. t,
  12588. this.szBasePath
  12589. ))
  12590. : (this.oSuperRender = new SuperRender(
  12591. t,
  12592. this.szBasePath
  12593. )),
  12594. null == this.oSuperRender)
  12595. )
  12596. return c;
  12597. }
  12598. return null == this.audioRenderer &&
  12599. ((this.audioRenderer = new AudioRenderer()),
  12600. null == this.audioRenderer)
  12601. ? c
  12602. : ((this.sCanvasId = t),
  12603. (this.bPlay = !0),
  12604. (this.bPause = !1),
  12605. (this.bOnebyOne = !1),
  12606. (this.bPlaySound = !1),
  12607. (this.bPlayRateChange = !1),
  12608. this.draw(),
  12609. r);
  12610. },
  12611. },
  12612. {
  12613. key: 'PlayM4_Stop',
  12614. value: function () {
  12615. return null == this.decodeWorker || null == this.oSuperRender
  12616. ? a
  12617. : this.bPlay
  12618. ? (this.bPlaySound &&
  12619. (this.PlayM4_StopSound(), (this.bPlaySound = !0)),
  12620. (this.bPlay = !1),
  12621. (this.bOnebyOne = !1),
  12622. (this.bPause = !1),
  12623. this.oSuperRender.SR_SetDisplayRect(null),
  12624. (this.iZoomNum = 0),
  12625. this.oSuperRender.SR_DisplayFrameData(
  12626. this.nWidth,
  12627. this.nHeight,
  12628. null
  12629. ),
  12630. r)
  12631. : a;
  12632. },
  12633. },
  12634. {
  12635. key: 'PlayM4_PlayRate',
  12636. value: function (t) {
  12637. return null == this.decodeWorker
  12638. ? a
  12639. : (1 === t
  12640. ? (this.bPlayRateChange = !1)
  12641. : (this.bPlayRateChange = !0),
  12642. t < 1 && (t = 1),
  12643. (this.iInputDataLen = t * T),
  12644. r);
  12645. },
  12646. },
  12647. {
  12648. key: 'PlayM4_Pause',
  12649. value: function (t) {
  12650. return null == this.decodeWorker || null == this.oSuperRender
  12651. ? a
  12652. : this.bPlay
  12653. ? this.bOnebyOne
  12654. ? a
  12655. : 'boolean' != typeof t
  12656. ? o
  12657. : ((this.bPause = t),
  12658. (this.bIsFirstFrame = !0),
  12659. t
  12660. ? this.bPlaySound &&
  12661. (this.PlayM4_StopSound(), (this.bPlaySound = !0))
  12662. : (this.bPlaySound && this.PlayM4_PlaySound(),
  12663. this.draw()),
  12664. r)
  12665. : a;
  12666. },
  12667. },
  12668. {
  12669. key: 'PlayM4_OneByOne',
  12670. value: function () {
  12671. return null == this.decodeWorker || null == this.oSuperRender
  12672. ? a
  12673. : this.bPlay
  12674. ? ((this.iInputDataLen = T),
  12675. (this.bPause = !0),
  12676. (this.bOnebyOne = !0),
  12677. (this.bPlayRateChange = !0),
  12678. this.draw(),
  12679. r)
  12680. : a;
  12681. },
  12682. },
  12683. {
  12684. key: 'PlayM4_PlaySound',
  12685. value: function (t) {
  12686. return null === this.decodeWorker || this.bOpenStream === !1
  12687. ? a
  12688. : t < 0 || t > 16
  12689. ? o
  12690. : null == this.audioRenderer &&
  12691. ((this.audioRenderer = new AudioRenderer()),
  12692. null == this.audioRenderer)
  12693. ? c
  12694. : (this.audioRenderer.SetWndNum(t),
  12695. (this.bPlaySound = !0),
  12696. r);
  12697. },
  12698. },
  12699. {
  12700. key: 'PlayM4_StopSound',
  12701. value: function () {
  12702. return null == this.decodeWorker || null == this.audioRenderer
  12703. ? a
  12704. : this.bPlaySound
  12705. ? ((this.bPlaySound = !1), r)
  12706. : a;
  12707. },
  12708. },
  12709. {
  12710. key: 'PlayM4_SetDisplayBuf',
  12711. value: function (t) {
  12712. return null == this.decodeWorker
  12713. ? a
  12714. : t <= 0
  12715. ? o
  12716. : ((this.YUVBufferSize = t), r);
  12717. },
  12718. },
  12719. {
  12720. key: 'PlayM4_SetSecretKey',
  12721. value: function (t, e, n) {
  12722. if (null == this.decodeWorker || this.bOpenStream === !1)
  12723. return a;
  12724. if (null == e) return o;
  12725. if (p === t) {
  12726. if (128 !== n) return o;
  12727. if (null == e || void 0 === e) return o;
  12728. } else if (d !== t) return o;
  12729. return (
  12730. this.decodeWorker.postMessage({
  12731. command: 'SetSecretKey',
  12732. data: e,
  12733. nKeyType: t,
  12734. nKeyLen: n,
  12735. }),
  12736. r
  12737. );
  12738. },
  12739. },
  12740. {
  12741. key: 'PlayM4_SetDecodeFrameType',
  12742. value: function (t) {
  12743. return null == this.decodeWorker || null == this.oSuperRender
  12744. ? a
  12745. : t !== v && t !== g
  12746. ? o
  12747. : ((this.nDecFrameType = t),
  12748. this.decodeWorker.postMessage({
  12749. command: 'SetDecodeFrameType',
  12750. data: t,
  12751. }),
  12752. r);
  12753. },
  12754. },
  12755. {
  12756. key: 'PlayM4_SetIFrameDecInterval',
  12757. value: function (t) {
  12758. return this.nDecFrameType !== g
  12759. ? a
  12760. : t < 0
  12761. ? o
  12762. : (this.decodeWorker.postMessage({
  12763. command: 'SetIFrameDecInterval',
  12764. data: t,
  12765. }),
  12766. r);
  12767. },
  12768. },
  12769. {
  12770. key: 'PlayM4_SetDisplayRegion',
  12771. value: function (t, e) {
  12772. if (
  12773. null === this.decodeWorker ||
  12774. this.bPlay === !1 ||
  12775. null === this.oSuperRender
  12776. )
  12777. return a;
  12778. if (null === this.canvasId) return a;
  12779. if (e === !0) {
  12780. if (null === t || void 0 === t) return o;
  12781. if (
  12782. 'number' != typeof t.left ||
  12783. 'number' != typeof t.top ||
  12784. 'number' != typeof t.right ||
  12785. 'number' != typeof t.bottom
  12786. )
  12787. return o;
  12788. if (t.right < 0 || t.left < 0 || t.top < 0 || t.bottom < 0)
  12789. return o;
  12790. var n = t.left,
  12791. i = t.right,
  12792. s = t.top,
  12793. u = t.bottom;
  12794. if (
  12795. i - n < 16 ||
  12796. u - s < 16 ||
  12797. i - n > this.nWidth ||
  12798. u - s > this.nHeight
  12799. )
  12800. return o;
  12801. var l = document
  12802. .getElementById(this.sCanvasId)
  12803. .getBoundingClientRect();
  12804. (this.iCanvasWidth = l.width),
  12805. (this.iCanvasHeight = l.height),
  12806. 0 !== this.iZoomNum &&
  12807. ((n =
  12808. Math.round(n / this.iRatio_x) +
  12809. this.stDisplayRect.left),
  12810. (s =
  12811. Math.round(s / this.iRatio_y) + this.stDisplayRect.top),
  12812. (i =
  12813. Math.round(i / this.iRatio_x) +
  12814. this.stDisplayRect.left),
  12815. (u =
  12816. Math.round(u / this.iRatio_y) +
  12817. this.stDisplayRect.top)),
  12818. (this.stDisplayRect = {
  12819. top: s,
  12820. left: n,
  12821. right: i,
  12822. bottom: u,
  12823. }),
  12824. this.oSuperRender.SR_SetDisplayRect(this.stDisplayRect);
  12825. var f = i - n,
  12826. c = u - s;
  12827. (this.iRatio_x = this.iCanvasWidth / f),
  12828. (this.iRatio_y = this.iCanvasHeight / c),
  12829. this.iZoomNum++;
  12830. } else
  12831. this.oSuperRender.SR_SetDisplayRect(null),
  12832. (this.iZoomNum = 0);
  12833. return (
  12834. (this.bPause || this.bOnebyOne || this.bPlayRateChange) &&
  12835. this.oSuperRender.SR_DisplayFrameData(
  12836. this.nWidth,
  12837. this.nHeight,
  12838. new Uint8Array(this.aDisplayBuf)
  12839. ),
  12840. r
  12841. );
  12842. },
  12843. },
  12844. {
  12845. key: 'PlayM4_GetBMP',
  12846. value: function (t) {
  12847. return this.getPic(t, 'GetBMP');
  12848. },
  12849. },
  12850. {
  12851. key: 'PlayM4_GetJPEG',
  12852. value: function (t) {
  12853. return this.getPic(t, 'GetJPEG');
  12854. },
  12855. },
  12856. {
  12857. key: 'PlayM4_SetVolume',
  12858. value: function (t) {
  12859. return null == this.decodeWorker
  12860. ? a
  12861. : null == this.audioRenderer
  12862. ? a
  12863. : t < 0 || t > 100
  12864. ? o
  12865. : (this.audioRenderer.SetVolume(t / 100), r);
  12866. },
  12867. },
  12868. {
  12869. key: 'PlayM4_GetVolume',
  12870. value: function (t) {
  12871. if (null == this.decodeWorker) return a;
  12872. if (null == this.audioRenderer) return a;
  12873. if (t && 'function' == typeof t) {
  12874. var e = this.audioRenderer.GetVolume();
  12875. return null === e ? h : (t(10 * Math.round(10 * e)), r);
  12876. }
  12877. return o;
  12878. },
  12879. },
  12880. {
  12881. key: 'PlayM4_GetOSDTime',
  12882. value: function (t) {
  12883. return null == this.decodeWorker
  12884. ? a
  12885. : this.bPlay
  12886. ? t && 'function' == typeof t
  12887. ? (t(this.szOSDTime), r)
  12888. : o
  12889. : a;
  12890. },
  12891. },
  12892. {
  12893. key: 'PlayM4_IsVisible',
  12894. value: function (t) {
  12895. return (this.bVisibility = t), r;
  12896. },
  12897. },
  12898. {
  12899. key: 'PlayM4_GetSdkVersion',
  12900. value: function () {
  12901. return '07020114';
  12902. },
  12903. },
  12904. {
  12905. key: 'PlayM4_GetInputBufSize',
  12906. value: function () {
  12907. return this.aInputDataBuffer.length;
  12908. },
  12909. },
  12910. {
  12911. key: 'PlayM4_SetInputBufSize',
  12912. value: function (t) {
  12913. return t > 0 ? ((this.iInputMaxBufSize = t), r) : o;
  12914. },
  12915. },
  12916. {
  12917. key: 'PlayM4_GetYUVBufSize',
  12918. value: function () {
  12919. return this.aVideoFrameBuffer.length;
  12920. },
  12921. },
  12922. {
  12923. key: 'PlayM4_ClearCanvas',
  12924. value: function () {
  12925. return null == this.oSuperRender
  12926. ? a
  12927. : (this.oSuperRender.SR_DisplayFrameData(
  12928. this.nWidth,
  12929. this.nHeight,
  12930. null
  12931. ),
  12932. r);
  12933. },
  12934. },
  12935. {
  12936. key: 'PlayM4_ReleaseInputBuffer',
  12937. value: function () {
  12938. return null === this.aInputDataBuffer
  12939. ? a
  12940. : (this.aInputDataBuffer.splice(
  12941. 0,
  12942. this.aInputDataBuffer.length
  12943. ),
  12944. this.aInputDataLens.splice(0, this.aInputDataLens.length),
  12945. r);
  12946. },
  12947. },
  12948. {
  12949. key: 'PlayM4_GetDecodeFrameType',
  12950. value: function () {
  12951. return this.nDecFrameType;
  12952. },
  12953. },
  12954. ]),
  12955. t
  12956. );
  12957. })();
  12958. },
  12959. function (t, e) {
  12960. 'use strict';
  12961. Object.defineProperty(e, '__esModule', {value: !0});
  12962. var n =
  12963. n ||
  12964. (function (t, e) {
  12965. var n = {},
  12966. i = (n.lib = {}),
  12967. r = function () {
  12968. },
  12969. o = (i.Base = {
  12970. extend: function (t) {
  12971. r.prototype = this;
  12972. var e = new r();
  12973. return (
  12974. t && e.mixIn(t),
  12975. e.hasOwnProperty('init') ||
  12976. (e.init = function () {
  12977. e.$super.init.apply(this, arguments);
  12978. }),
  12979. (e.init.prototype = e),
  12980. (e.$super = this),
  12981. e
  12982. );
  12983. },
  12984. create: function () {
  12985. var t = this.extend();
  12986. return t.init.apply(t, arguments), t;
  12987. },
  12988. init: function () {
  12989. },
  12990. mixIn: function (t) {
  12991. for (var e in t) t.hasOwnProperty(e) && (this[e] = t[e]);
  12992. t.hasOwnProperty('toString') && (this.toString = t.toString);
  12993. },
  12994. clone: function () {
  12995. return this.init.prototype.extend(this);
  12996. },
  12997. }),
  12998. a = (i.WordArray = o.extend({
  12999. init: function (t, n) {
  13000. (t = this.words = t || []),
  13001. (this.sigBytes = n != e ? n : 4 * t.length);
  13002. },
  13003. toString: function (t) {
  13004. return (t || u).stringify(this);
  13005. },
  13006. concat: function (t) {
  13007. var e = this.words,
  13008. n = t.words,
  13009. i = this.sigBytes;
  13010. if (((t = t.sigBytes), this.clamp(), i % 4))
  13011. for (var r = 0; r < t; r++)
  13012. e[(i + r) >>> 2] |=
  13013. ((n[r >>> 2] >>> (24 - 8 * (r % 4))) & 255) <<
  13014. (24 - 8 * ((i + r) % 4));
  13015. else if (65535 < n.length)
  13016. for (r = 0; r < t; r += 4) e[(i + r) >>> 2] = n[r >>> 2];
  13017. else e.push.apply(e, n);
  13018. return (this.sigBytes += t), this;
  13019. },
  13020. clamp: function () {
  13021. var e = this.words,
  13022. n = this.sigBytes;
  13023. (e[n >>> 2] &= 4294967295 << (32 - 8 * (n % 4))),
  13024. (e.length = t.ceil(n / 4));
  13025. },
  13026. clone: function () {
  13027. var t = o.clone.call(this);
  13028. return (t.words = this.words.slice(0)), t;
  13029. },
  13030. random: function (e) {
  13031. for (var n = [], i = 0; i < e; i += 4)
  13032. n.push((4294967296 * t.random()) | 0);
  13033. return new a.init(n, e);
  13034. },
  13035. })),
  13036. s = (n.enc = {}),
  13037. u = (s.Hex = {
  13038. stringify: function (t) {
  13039. var e = t.words;
  13040. t = t.sigBytes;
  13041. for (var n = [], i = 0; i < t; i++) {
  13042. var r = (e[i >>> 2] >>> (24 - 8 * (i % 4))) & 255;
  13043. n.push((r >>> 4).toString(16)), n.push((15 & r).toString(16));
  13044. }
  13045. return n.join('');
  13046. },
  13047. parse: function (t) {
  13048. for (var e = t.length, n = [], i = 0; i < e; i += 2)
  13049. n[i >>> 3] |=
  13050. parseInt(t.substr(i, 2), 16) << (24 - 4 * (i % 8));
  13051. return new a.init(n, e / 2);
  13052. },
  13053. }),
  13054. l = (s.Latin1 = {
  13055. stringify: function (t) {
  13056. var e = t.words;
  13057. t = t.sigBytes;
  13058. for (var n = [], i = 0; i < t; i++)
  13059. n.push(
  13060. String.fromCharCode(
  13061. (e[i >>> 2] >>> (24 - 8 * (i % 4))) & 255
  13062. )
  13063. );
  13064. return n.join('');
  13065. },
  13066. parse: function (t) {
  13067. for (var e = t.length, n = [], i = 0; i < e; i++)
  13068. n[i >>> 2] |= (255 & t.charCodeAt(i)) << (24 - 8 * (i % 4));
  13069. return new a.init(n, e);
  13070. },
  13071. }),
  13072. f = (s.Utf8 = {
  13073. stringify: function (t) {
  13074. try {
  13075. return decodeURIComponent(escape(l.stringify(t)));
  13076. } catch (t) {
  13077. throw Error('Malformed UTF-8 data');
  13078. }
  13079. },
  13080. parse: function (t) {
  13081. return l.parse(unescape(encodeURIComponent(t)));
  13082. },
  13083. }),
  13084. c = (i.BufferedBlockAlgorithm = o.extend({
  13085. reset: function () {
  13086. (this._data = new a.init()), (this._nDataBytes = 0);
  13087. },
  13088. _append: function (t) {
  13089. 'string' == typeof t && (t = f.parse(t)),
  13090. this._data.concat(t),
  13091. (this._nDataBytes += t.sigBytes);
  13092. },
  13093. _process: function (e) {
  13094. var n = this._data,
  13095. i = n.words,
  13096. r = n.sigBytes,
  13097. o = this.blockSize,
  13098. s = r / (4 * o),
  13099. s = e ? t.ceil(s) : t.max((0 | s) - this._minBufferSize, 0);
  13100. if (((e = s * o), (r = t.min(4 * e, r)), e)) {
  13101. for (var u = 0; u < e; u += o) this._doProcessBlock(i, u);
  13102. (u = i.splice(0, e)), (n.sigBytes -= r);
  13103. }
  13104. return new a.init(u, r);
  13105. },
  13106. clone: function () {
  13107. var t = o.clone.call(this);
  13108. return (t._data = this._data.clone()), t;
  13109. },
  13110. _minBufferSize: 0,
  13111. }));
  13112. i.Hasher = c.extend({
  13113. cfg: o.extend(),
  13114. init: function (t) {
  13115. (this.cfg = this.cfg.extend(t)), this.reset();
  13116. },
  13117. reset: function () {
  13118. c.reset.call(this), this._doReset();
  13119. },
  13120. update: function (t) {
  13121. return this._append(t), this._process(), this;
  13122. },
  13123. finalize: function (t) {
  13124. return t && this._append(t), this._doFinalize();
  13125. },
  13126. blockSize: 16,
  13127. _createHelper: function (t) {
  13128. return function (e, n) {
  13129. return new t.init(n).finalize(e);
  13130. };
  13131. },
  13132. _createHmacHelper: function (t) {
  13133. return function (e, n) {
  13134. return new h.HMAC.init(t, n).finalize(e);
  13135. };
  13136. },
  13137. });
  13138. var h = (n.algo = {});
  13139. return n;
  13140. })(Math);
  13141. !(function () {
  13142. var t = n,
  13143. e = t.lib.WordArray;
  13144. t.enc.Base64 = {
  13145. stringify: function (t) {
  13146. var e = t.words,
  13147. n = t.sigBytes,
  13148. i = this._map;
  13149. t.clamp(), (t = []);
  13150. for (var r = 0; r < n; r += 3)
  13151. for (
  13152. var o =
  13153. (((e[r >>> 2] >>> (24 - 8 * (r % 4))) & 255) << 16) |
  13154. (((e[(r + 1) >>> 2] >>> (24 - 8 * ((r + 1) % 4))) & 255) <<
  13155. 8) |
  13156. ((e[(r + 2) >>> 2] >>> (24 - 8 * ((r + 2) % 4))) & 255),
  13157. a = 0;
  13158. 4 > a && r + 0.75 * a < n;
  13159. a++
  13160. )
  13161. t.push(i.charAt((o >>> (6 * (3 - a))) & 63));
  13162. if ((e = i.charAt(64))) for (; t.length % 4;) t.push(e);
  13163. return t.join('');
  13164. },
  13165. parse: function (t) {
  13166. var n = t.length,
  13167. i = this._map,
  13168. r = i.charAt(64);
  13169. r && ((r = t.indexOf(r)), -1 != r && (n = r));
  13170. for (var r = [], o = 0, a = 0; a < n; a++)
  13171. if (a % 4) {
  13172. var s = i.indexOf(t.charAt(a - 1)) << (2 * (a % 4)),
  13173. u = i.indexOf(t.charAt(a)) >>> (6 - 2 * (a % 4));
  13174. (r[o >>> 2] |= (s | u) << (24 - 8 * (o % 4))), o++;
  13175. }
  13176. return e.create(r, o);
  13177. },
  13178. _map:
  13179. 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=',
  13180. };
  13181. })(),
  13182. (function (t) {
  13183. function e(t, e, n, i, r, o, a) {
  13184. return (
  13185. (t = t + ((e & n) | (~e & i)) + r + a),
  13186. ((t << o) | (t >>> (32 - o))) + e
  13187. );
  13188. }
  13189. function i(t, e, n, i, r, o, a) {
  13190. return (
  13191. (t = t + ((e & i) | (n & ~i)) + r + a),
  13192. ((t << o) | (t >>> (32 - o))) + e
  13193. );
  13194. }
  13195. function r(t, e, n, i, r, o, a) {
  13196. return (
  13197. (t = t + (e ^ n ^ i) + r + a), ((t << o) | (t >>> (32 - o))) + e
  13198. );
  13199. }
  13200. function o(t, e, n, i, r, o, a) {
  13201. return (
  13202. (t = t + (n ^ (e | ~i)) + r + a),
  13203. ((t << o) | (t >>> (32 - o))) + e
  13204. );
  13205. }
  13206. for (
  13207. var a = n,
  13208. s = a.lib,
  13209. u = s.WordArray,
  13210. l = s.Hasher,
  13211. s = a.algo,
  13212. f = [],
  13213. c = 0;
  13214. 64 > c;
  13215. c++
  13216. )
  13217. f[c] = (4294967296 * t.abs(t.sin(c + 1))) | 0;
  13218. (s = s.MD5 = l.extend({
  13219. _doReset: function () {
  13220. this._hash = new u.init([
  13221. 1732584193,
  13222. 4023233417,
  13223. 2562383102,
  13224. 271733878,
  13225. ]);
  13226. },
  13227. _doProcessBlock: function (t, n) {
  13228. for (var a = 0; 16 > a; a++) {
  13229. var s = n + a,
  13230. u = t[s];
  13231. t[s] =
  13232. (16711935 & ((u << 8) | (u >>> 24))) |
  13233. (4278255360 & ((u << 24) | (u >>> 8)));
  13234. }
  13235. var a = this._hash.words,
  13236. s = t[n + 0],
  13237. u = t[n + 1],
  13238. l = t[n + 2],
  13239. c = t[n + 3],
  13240. h = t[n + 4],
  13241. d = t[n + 5],
  13242. p = t[n + 6],
  13243. y = t[n + 7],
  13244. m = t[n + 8],
  13245. v = t[n + 9],
  13246. g = t[n + 10],
  13247. S = t[n + 11],
  13248. b = t[n + 12],
  13249. w = t[n + 13],
  13250. _ = t[n + 14],
  13251. P = t[n + 15],
  13252. C = a[0],
  13253. x = a[1],
  13254. T = a[2],
  13255. k = a[3],
  13256. C = e(C, x, T, k, s, 7, f[0]),
  13257. k = e(k, C, x, T, u, 12, f[1]),
  13258. T = e(T, k, C, x, l, 17, f[2]),
  13259. x = e(x, T, k, C, c, 22, f[3]),
  13260. C = e(C, x, T, k, h, 7, f[4]),
  13261. k = e(k, C, x, T, d, 12, f[5]),
  13262. T = e(T, k, C, x, p, 17, f[6]),
  13263. x = e(x, T, k, C, y, 22, f[7]),
  13264. C = e(C, x, T, k, m, 7, f[8]),
  13265. k = e(k, C, x, T, v, 12, f[9]),
  13266. T = e(T, k, C, x, g, 17, f[10]),
  13267. x = e(x, T, k, C, S, 22, f[11]),
  13268. C = e(C, x, T, k, b, 7, f[12]),
  13269. k = e(k, C, x, T, w, 12, f[13]),
  13270. T = e(T, k, C, x, _, 17, f[14]),
  13271. x = e(x, T, k, C, P, 22, f[15]),
  13272. C = i(C, x, T, k, u, 5, f[16]),
  13273. k = i(k, C, x, T, p, 9, f[17]),
  13274. T = i(T, k, C, x, S, 14, f[18]),
  13275. x = i(x, T, k, C, s, 20, f[19]),
  13276. C = i(C, x, T, k, d, 5, f[20]),
  13277. k = i(k, C, x, T, g, 9, f[21]),
  13278. T = i(T, k, C, x, P, 14, f[22]),
  13279. x = i(x, T, k, C, h, 20, f[23]),
  13280. C = i(C, x, T, k, v, 5, f[24]),
  13281. k = i(k, C, x, T, _, 9, f[25]),
  13282. T = i(T, k, C, x, c, 14, f[26]),
  13283. x = i(x, T, k, C, m, 20, f[27]),
  13284. C = i(C, x, T, k, w, 5, f[28]),
  13285. k = i(k, C, x, T, l, 9, f[29]),
  13286. T = i(T, k, C, x, y, 14, f[30]),
  13287. x = i(x, T, k, C, b, 20, f[31]),
  13288. C = r(C, x, T, k, d, 4, f[32]),
  13289. k = r(k, C, x, T, m, 11, f[33]),
  13290. T = r(T, k, C, x, S, 16, f[34]),
  13291. x = r(x, T, k, C, _, 23, f[35]),
  13292. C = r(C, x, T, k, u, 4, f[36]),
  13293. k = r(k, C, x, T, h, 11, f[37]),
  13294. T = r(T, k, C, x, y, 16, f[38]),
  13295. x = r(x, T, k, C, g, 23, f[39]),
  13296. C = r(C, x, T, k, w, 4, f[40]),
  13297. k = r(k, C, x, T, s, 11, f[41]),
  13298. T = r(T, k, C, x, c, 16, f[42]),
  13299. x = r(x, T, k, C, p, 23, f[43]),
  13300. C = r(C, x, T, k, v, 4, f[44]),
  13301. k = r(k, C, x, T, b, 11, f[45]),
  13302. T = r(T, k, C, x, P, 16, f[46]),
  13303. x = r(x, T, k, C, l, 23, f[47]),
  13304. C = o(C, x, T, k, s, 6, f[48]),
  13305. k = o(k, C, x, T, y, 10, f[49]),
  13306. T = o(T, k, C, x, _, 15, f[50]),
  13307. x = o(x, T, k, C, d, 21, f[51]),
  13308. C = o(C, x, T, k, b, 6, f[52]),
  13309. k = o(k, C, x, T, c, 10, f[53]),
  13310. T = o(T, k, C, x, g, 15, f[54]),
  13311. x = o(x, T, k, C, u, 21, f[55]),
  13312. C = o(C, x, T, k, m, 6, f[56]),
  13313. k = o(k, C, x, T, P, 10, f[57]),
  13314. T = o(T, k, C, x, p, 15, f[58]),
  13315. x = o(x, T, k, C, w, 21, f[59]),
  13316. C = o(C, x, T, k, h, 6, f[60]),
  13317. k = o(k, C, x, T, S, 10, f[61]),
  13318. T = o(T, k, C, x, l, 15, f[62]),
  13319. x = o(x, T, k, C, v, 21, f[63]);
  13320. (a[0] = (a[0] + C) | 0),
  13321. (a[1] = (a[1] + x) | 0),
  13322. (a[2] = (a[2] + T) | 0),
  13323. (a[3] = (a[3] + k) | 0);
  13324. },
  13325. _doFinalize: function () {
  13326. var e = this._data,
  13327. n = e.words,
  13328. i = 8 * this._nDataBytes,
  13329. r = 8 * e.sigBytes;
  13330. n[r >>> 5] |= 128 << (24 - r % 32);
  13331. var o = t.floor(i / 4294967296);
  13332. for (
  13333. n[(((r + 64) >>> 9) << 4) + 15] =
  13334. (16711935 & ((o << 8) | (o >>> 24))) |
  13335. (4278255360 & ((o << 24) | (o >>> 8))),
  13336. n[(((r + 64) >>> 9) << 4) + 14] =
  13337. (16711935 & ((i << 8) | (i >>> 24))) |
  13338. (4278255360 & ((i << 24) | (i >>> 8))),
  13339. e.sigBytes = 4 * (n.length + 1),
  13340. this._process(),
  13341. e = this._hash,
  13342. n = e.words,
  13343. i = 0;
  13344. 4 > i;
  13345. i++
  13346. )
  13347. (r = n[i]),
  13348. (n[i] =
  13349. (16711935 & ((r << 8) | (r >>> 24))) |
  13350. (4278255360 & ((r << 24) | (r >>> 8))));
  13351. return e;
  13352. },
  13353. clone: function () {
  13354. var t = l.clone.call(this);
  13355. return (t._hash = this._hash.clone()), t;
  13356. },
  13357. })),
  13358. (a.MD5 = l._createHelper(s)),
  13359. (a.HmacMD5 = l._createHmacHelper(s));
  13360. })(Math),
  13361. (function () {
  13362. var t = n,
  13363. e = t.lib,
  13364. i = e.Base,
  13365. r = e.WordArray,
  13366. e = t.algo,
  13367. o = (e.EvpKDF = i.extend({
  13368. cfg: i.extend({keySize: 4, hasher: e.MD5, iterations: 1}),
  13369. init: function (t) {
  13370. this.cfg = this.cfg.extend(t);
  13371. },
  13372. compute: function (t, e) {
  13373. for (
  13374. var n = this.cfg,
  13375. i = n.hasher.create(),
  13376. o = r.create(),
  13377. a = o.words,
  13378. s = n.keySize,
  13379. n = n.iterations;
  13380. a.length < s;
  13381. ) {
  13382. u && i.update(u);
  13383. var u = i.update(t).finalize(e);
  13384. i.reset();
  13385. for (var l = 1; l < n; l++) (u = i.finalize(u)), i.reset();
  13386. o.concat(u);
  13387. }
  13388. return (o.sigBytes = 4 * s), o;
  13389. },
  13390. }));
  13391. t.EvpKDF = function (t, e, n) {
  13392. return o.create(n).compute(t, e);
  13393. };
  13394. })(),
  13395. n.lib.Cipher ||
  13396. (function (t) {
  13397. var e = n,
  13398. i = e.lib,
  13399. r = i.Base,
  13400. o = i.WordArray,
  13401. a = i.BufferedBlockAlgorithm,
  13402. s = e.enc.Base64,
  13403. u = e.algo.EvpKDF,
  13404. l = (i.Cipher = a.extend({
  13405. cfg: r.extend(),
  13406. createEncryptor: function (t, e) {
  13407. return this.create(this._ENC_XFORM_MODE, t, e);
  13408. },
  13409. createDecryptor: function (t, e) {
  13410. return this.create(this._DEC_XFORM_MODE, t, e);
  13411. },
  13412. init: function (t, e, n) {
  13413. (this.cfg = this.cfg.extend(n)),
  13414. (this._xformMode = t),
  13415. (this._key = e),
  13416. this.reset();
  13417. },
  13418. reset: function () {
  13419. a.reset.call(this), this._doReset();
  13420. },
  13421. process: function (t) {
  13422. return this._append(t), this._process();
  13423. },
  13424. finalize: function (t) {
  13425. return t && this._append(t), this._doFinalize();
  13426. },
  13427. keySize: 4,
  13428. ivSize: 4,
  13429. _ENC_XFORM_MODE: 1,
  13430. _DEC_XFORM_MODE: 2,
  13431. _createHelper: function (t) {
  13432. return {
  13433. encrypt: function (e, n, i) {
  13434. return ('string' == typeof n ? y : p).encrypt(t, e, n, i);
  13435. },
  13436. decrypt: function (e, n, i) {
  13437. return ('string' == typeof n ? y : p).decrypt(t, e, n, i);
  13438. },
  13439. };
  13440. },
  13441. }));
  13442. i.StreamCipher = l.extend({
  13443. _doFinalize: function () {
  13444. return this._process(!0);
  13445. },
  13446. blockSize: 1,
  13447. });
  13448. var f = (e.mode = {}),
  13449. c = function (e, n, i) {
  13450. var r = this._iv;
  13451. r ? (this._iv = t) : (r = this._prevBlock);
  13452. for (var o = 0; o < i; o++) e[n + o] ^= r[o];
  13453. },
  13454. h = (i.BlockCipherMode = r.extend({
  13455. createEncryptor: function (t, e) {
  13456. return this.Encryptor.create(t, e);
  13457. },
  13458. createDecryptor: function (t, e) {
  13459. return this.Decryptor.create(t, e);
  13460. },
  13461. init: function (t, e) {
  13462. (this._cipher = t), (this._iv = e);
  13463. },
  13464. })).extend();
  13465. (h.Encryptor = h.extend({
  13466. processBlock: function (t, e) {
  13467. var n = this._cipher,
  13468. i = n.blockSize;
  13469. c.call(this, t, e, i),
  13470. n.encryptBlock(t, e),
  13471. (this._prevBlock = t.slice(e, e + i));
  13472. },
  13473. })),
  13474. (h.Decryptor = h.extend({
  13475. processBlock: function (t, e) {
  13476. var n = this._cipher,
  13477. i = n.blockSize,
  13478. r = t.slice(e, e + i);
  13479. n.decryptBlock(t, e),
  13480. c.call(this, t, e, i),
  13481. (this._prevBlock = r);
  13482. },
  13483. })),
  13484. (f = f.CBC = h),
  13485. (h = (e.pad = {}).Pkcs7 = {
  13486. pad: function (t, e) {
  13487. for (
  13488. var n = 4 * e,
  13489. n = n - t.sigBytes % n,
  13490. i = (n << 24) | (n << 16) | (n << 8) | n,
  13491. r = [],
  13492. a = 0;
  13493. a < n;
  13494. a += 4
  13495. )
  13496. r.push(i);
  13497. (n = o.create(r, n)), t.concat(n);
  13498. },
  13499. unpad: function (t) {
  13500. t.sigBytes -= 255 & t.words[(t.sigBytes - 1) >>> 2];
  13501. },
  13502. }),
  13503. (i.BlockCipher = l.extend({
  13504. cfg: l.cfg.extend({mode: f, padding: h}),
  13505. reset: function () {
  13506. l.reset.call(this);
  13507. var t = this.cfg,
  13508. e = t.iv,
  13509. t = t.mode;
  13510. if (this._xformMode == this._ENC_XFORM_MODE)
  13511. var n = t.createEncryptor;
  13512. else (n = t.createDecryptor), (this._minBufferSize = 1);
  13513. this._mode = n.call(t, this, e && e.words);
  13514. },
  13515. _doProcessBlock: function (t, e) {
  13516. this._mode.processBlock(t, e);
  13517. },
  13518. _doFinalize: function () {
  13519. var t = this.cfg.padding;
  13520. if (this._xformMode == this._ENC_XFORM_MODE) {
  13521. t.pad(this._data, this.blockSize);
  13522. var e = this._process(!0);
  13523. } else (e = this._process(!0)), t.unpad(e);
  13524. return e;
  13525. },
  13526. blockSize: 4,
  13527. }));
  13528. var d = (i.CipherParams = r.extend({
  13529. init: function (t) {
  13530. this.mixIn(t);
  13531. },
  13532. toString: function (t) {
  13533. return (t || this.formatter).stringify(this);
  13534. },
  13535. })),
  13536. f = ((e.format = {}).OpenSSL = {
  13537. stringify: function (t) {
  13538. var e = t.ciphertext;
  13539. return (
  13540. (t = t.salt),
  13541. (t
  13542. ? o
  13543. .create([1398893684, 1701076831])
  13544. .concat(t)
  13545. .concat(e)
  13546. : e
  13547. ).toString(s)
  13548. );
  13549. },
  13550. parse: function (t) {
  13551. t = s.parse(t);
  13552. var e = t.words;
  13553. if (1398893684 == e[0] && 1701076831 == e[1]) {
  13554. var n = o.create(e.slice(2, 4));
  13555. e.splice(0, 4), (t.sigBytes -= 16);
  13556. }
  13557. return d.create({ciphertext: t, salt: n});
  13558. },
  13559. }),
  13560. p = (i.SerializableCipher = r.extend({
  13561. cfg: r.extend({format: f}),
  13562. encrypt: function (t, e, n, i) {
  13563. i = this.cfg.extend(i);
  13564. var r = t.createEncryptor(n, i);
  13565. return (
  13566. (e = r.finalize(e)),
  13567. (r = r.cfg),
  13568. d.create({
  13569. ciphertext: e,
  13570. key: n,
  13571. iv: r.iv,
  13572. algorithm: t,
  13573. mode: r.mode,
  13574. padding: r.padding,
  13575. blockSize: t.blockSize,
  13576. formatter: i.format,
  13577. })
  13578. );
  13579. },
  13580. decrypt: function (t, e, n, i) {
  13581. return (
  13582. (i = this.cfg.extend(i)),
  13583. (e = this._parse(e, i.format)),
  13584. t.createDecryptor(n, i).finalize(e.ciphertext)
  13585. );
  13586. },
  13587. _parse: function (t, e) {
  13588. return 'string' == typeof t ? e.parse(t, this) : t;
  13589. },
  13590. })),
  13591. e = ((e.kdf = {}).OpenSSL = {
  13592. execute: function (t, e, n, i) {
  13593. return (
  13594. i || (i = o.random(8)),
  13595. (t = u.create({keySize: e + n}).compute(t, i)),
  13596. (n = o.create(t.words.slice(e), 4 * n)),
  13597. (t.sigBytes = 4 * e),
  13598. d.create({key: t, iv: n, salt: i})
  13599. );
  13600. },
  13601. }),
  13602. y = (i.PasswordBasedCipher = p.extend({
  13603. cfg: p.cfg.extend({kdf: e}),
  13604. encrypt: function (t, e, n, i) {
  13605. return (
  13606. (i = this.cfg.extend(i)),
  13607. (n = i.kdf.execute(n, t.keySize, t.ivSize)),
  13608. (i.iv = n.iv),
  13609. (t = p.encrypt.call(this, t, e, n.key, i)),
  13610. t.mixIn(n),
  13611. t
  13612. );
  13613. },
  13614. decrypt: function (t, e, n, i) {
  13615. return (
  13616. (i = this.cfg.extend(i)),
  13617. (e = this._parse(e, i.format)),
  13618. (n = i.kdf.execute(n, t.keySize, t.ivSize, e.salt)),
  13619. (i.iv = n.iv),
  13620. p.decrypt.call(this, t, e, n.key, i)
  13621. );
  13622. },
  13623. }));
  13624. })(),
  13625. (function () {
  13626. for (
  13627. var t = n,
  13628. e = t.lib.BlockCipher,
  13629. i = t.algo,
  13630. r = [],
  13631. o = [],
  13632. a = [],
  13633. s = [],
  13634. u = [],
  13635. l = [],
  13636. f = [],
  13637. c = [],
  13638. h = [],
  13639. d = [],
  13640. p = [],
  13641. y = 0;
  13642. 256 > y;
  13643. y++
  13644. )
  13645. p[y] = 128 > y ? y << 1 : (y << 1) ^ 283;
  13646. for (var m = 0, v = 0, y = 0; 256 > y; y++) {
  13647. var g = v ^ (v << 1) ^ (v << 2) ^ (v << 3) ^ (v << 4),
  13648. g = (g >>> 8) ^ (255 & g) ^ 99;
  13649. (r[m] = g), (o[g] = m);
  13650. var S = p[m],
  13651. b = p[S],
  13652. w = p[b],
  13653. _ = (257 * p[g]) ^ (16843008 * g);
  13654. (a[m] = (_ << 24) | (_ >>> 8)),
  13655. (s[m] = (_ << 16) | (_ >>> 16)),
  13656. (u[m] = (_ << 8) | (_ >>> 24)),
  13657. (l[m] = _),
  13658. (_ = (16843009 * w) ^ (65537 * b) ^ (257 * S) ^ (16843008 * m)),
  13659. (f[g] = (_ << 24) | (_ >>> 8)),
  13660. (c[g] = (_ << 16) | (_ >>> 16)),
  13661. (h[g] = (_ << 8) | (_ >>> 24)),
  13662. (d[g] = _),
  13663. m ? ((m = S ^ p[p[p[w ^ S]]]), (v ^= p[p[v]])) : (m = v = 1);
  13664. }
  13665. var P = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54],
  13666. i = (i.AES = e.extend({
  13667. _doReset: function () {
  13668. for (
  13669. var t = this._key,
  13670. e = t.words,
  13671. n = t.sigBytes / 4,
  13672. t = 4 * ((this._nRounds = n + 6) + 1),
  13673. i = (this._keySchedule = []),
  13674. o = 0;
  13675. o < t;
  13676. o++
  13677. )
  13678. if (o < n) i[o] = e[o];
  13679. else {
  13680. var a = i[o - 1];
  13681. o % n
  13682. ? 6 < n &&
  13683. 4 == o % n &&
  13684. (a =
  13685. (r[a >>> 24] << 24) |
  13686. (r[(a >>> 16) & 255] << 16) |
  13687. (r[(a >>> 8) & 255] << 8) |
  13688. r[255 & a])
  13689. : ((a = (a << 8) | (a >>> 24)),
  13690. (a =
  13691. (r[a >>> 24] << 24) |
  13692. (r[(a >>> 16) & 255] << 16) |
  13693. (r[(a >>> 8) & 255] << 8) |
  13694. r[255 & a]),
  13695. (a ^= P[(o / n) | 0] << 24)),
  13696. (i[o] = i[o - n] ^ a);
  13697. }
  13698. for (e = this._invKeySchedule = [], n = 0; n < t; n++)
  13699. (o = t - n),
  13700. (a = n % 4 ? i[o] : i[o - 4]),
  13701. (e[n] =
  13702. 4 > n || 4 >= o
  13703. ? a
  13704. : f[r[a >>> 24]] ^
  13705. c[r[(a >>> 16) & 255]] ^
  13706. h[r[(a >>> 8) & 255]] ^
  13707. d[r[255 & a]]);
  13708. },
  13709. encryptBlock: function (t, e) {
  13710. this._doCryptBlock(t, e, this._keySchedule, a, s, u, l, r);
  13711. },
  13712. decryptBlock: function (t, e) {
  13713. var n = t[e + 1];
  13714. (t[e + 1] = t[e + 3]),
  13715. (t[e + 3] = n),
  13716. this._doCryptBlock(t, e, this._invKeySchedule, f, c, h, d, o),
  13717. (n = t[e + 1]),
  13718. (t[e + 1] = t[e + 3]),
  13719. (t[e + 3] = n);
  13720. },
  13721. _doCryptBlock: function (t, e, n, i, r, o, a, s) {
  13722. for (
  13723. var u = this._nRounds,
  13724. l = t[e] ^ n[0],
  13725. f = t[e + 1] ^ n[1],
  13726. c = t[e + 2] ^ n[2],
  13727. h = t[e + 3] ^ n[3],
  13728. d = 4,
  13729. p = 1;
  13730. p < u;
  13731. p++
  13732. )
  13733. var y =
  13734. i[l >>> 24] ^
  13735. r[(f >>> 16) & 255] ^
  13736. o[(c >>> 8) & 255] ^
  13737. a[255 & h] ^
  13738. n[d++],
  13739. m =
  13740. i[f >>> 24] ^
  13741. r[(c >>> 16) & 255] ^
  13742. o[(h >>> 8) & 255] ^
  13743. a[255 & l] ^
  13744. n[d++],
  13745. v =
  13746. i[c >>> 24] ^
  13747. r[(h >>> 16) & 255] ^
  13748. o[(l >>> 8) & 255] ^
  13749. a[255 & f] ^
  13750. n[d++],
  13751. h =
  13752. i[h >>> 24] ^
  13753. r[(l >>> 16) & 255] ^
  13754. o[(f >>> 8) & 255] ^
  13755. a[255 & c] ^
  13756. n[d++],
  13757. l = y,
  13758. f = m,
  13759. c = v;
  13760. (y =
  13761. ((s[l >>> 24] << 24) |
  13762. (s[(f >>> 16) & 255] << 16) |
  13763. (s[(c >>> 8) & 255] << 8) |
  13764. s[255 & h]) ^
  13765. n[d++]),
  13766. (m =
  13767. ((s[f >>> 24] << 24) |
  13768. (s[(c >>> 16) & 255] << 16) |
  13769. (s[(h >>> 8) & 255] << 8) |
  13770. s[255 & l]) ^
  13771. n[d++]),
  13772. (v =
  13773. ((s[c >>> 24] << 24) |
  13774. (s[(h >>> 16) & 255] << 16) |
  13775. (s[(l >>> 8) & 255] << 8) |
  13776. s[255 & f]) ^
  13777. n[d++]),
  13778. (h =
  13779. ((s[h >>> 24] << 24) |
  13780. (s[(l >>> 16) & 255] << 16) |
  13781. (s[(f >>> 8) & 255] << 8) |
  13782. s[255 & c]) ^
  13783. n[d++]),
  13784. (t[e] = y),
  13785. (t[e + 1] = m),
  13786. (t[e + 2] = v),
  13787. (t[e + 3] = h);
  13788. },
  13789. keySize: 8,
  13790. }));
  13791. t.AES = e._createHelper(i);
  13792. })(),
  13793. (e.default = n);
  13794. },
  13795. function (t, e) {
  13796. 'use strict';
  13797. function n(t, e, n) {
  13798. null != t &&
  13799. ('number' == typeof t
  13800. ? this.fromNumber(t, e, n)
  13801. : null == e && 'string' != typeof t
  13802. ? this.fromString(t, 256)
  13803. : this.fromString(t, e));
  13804. }
  13805. function r() {
  13806. return new n(null);
  13807. }
  13808. function o(t, e, n, i, r, o) {
  13809. for (; --o >= 0;) {
  13810. var a = e * this[t++] + n[i] + r,
  13811. r = Math.floor(a / 67108864);
  13812. n[i++] = 67108863 & a;
  13813. }
  13814. return r;
  13815. }
  13816. function a(t, e, n, i, r, o) {
  13817. var a = 32767 & e;
  13818. for (e >>= 15; --o >= 0;) {
  13819. var s = 32767 & this[t],
  13820. u = this[t++] >> 15,
  13821. l = e * s + u * a,
  13822. s = a * s + ((32767 & l) << 15) + n[i] + (1073741823 & r),
  13823. r = (s >>> 30) + (l >>> 15) + e * u + (r >>> 30);
  13824. n[i++] = 1073741823 & s;
  13825. }
  13826. return r;
  13827. }
  13828. function s(t, e, n, i, r, o) {
  13829. var a = 16383 & e;
  13830. for (e >>= 14; --o >= 0;) {
  13831. var s = 16383 & this[t],
  13832. u = this[t++] >> 14,
  13833. l = e * s + u * a,
  13834. s = a * s + ((16383 & l) << 14) + n[i] + r,
  13835. r = (s >> 28) + (l >> 14) + e * u;
  13836. n[i++] = 268435455 & s;
  13837. }
  13838. return r;
  13839. }
  13840. function u(t) {
  13841. return Ge.charAt(t);
  13842. }
  13843. function l(t, e) {
  13844. var n = Ve[t.charCodeAt(e)];
  13845. return null == n ? -1 : n;
  13846. }
  13847. function f(t) {
  13848. for (var e = this.t - 1; e >= 0; --e) t[e] = this[e];
  13849. (t.t = this.t), (t.s = this.s);
  13850. }
  13851. function c(t) {
  13852. (this.t = 1),
  13853. (this.s = t < 0 ? -1 : 0),
  13854. t > 0 ? (this[0] = t) : t < -1 ? (this[0] = t + DV) : (this.t = 0);
  13855. }
  13856. function h(t) {
  13857. var e = r();
  13858. return e.fromInt(t), e;
  13859. }
  13860. function d(t, e) {
  13861. var i;
  13862. if (16 == e) i = 4;
  13863. else if (8 == e) i = 3;
  13864. else if (256 == e) i = 8;
  13865. else if (2 == e) i = 1;
  13866. else if (32 == e) i = 5;
  13867. else {
  13868. if (4 != e) return void this.fromRadix(t, e);
  13869. i = 2;
  13870. }
  13871. this.s = this.t = 0;
  13872. for (var r = t.length, o = !1, a = 0; --r >= 0;) {
  13873. var s = 8 == i ? 255 & t[r] : l(t, r);
  13874. s < 0
  13875. ? '-' == t.charAt(r) && (o = !0)
  13876. : ((o = !1),
  13877. 0 == a
  13878. ? (this[this.t++] = s)
  13879. : a + i > this.DB
  13880. ? ((this[this.t - 1] |=
  13881. (s & ((1 << (this.DB - a)) - 1)) << a),
  13882. (this[this.t++] = s >> (this.DB - a)))
  13883. : (this[this.t - 1] |= s << a),
  13884. (a += i),
  13885. a >= this.DB && (a -= this.DB));
  13886. }
  13887. 8 == i &&
  13888. 0 != (128 & t[0]) &&
  13889. ((this.s = -1),
  13890. a > 0 && (this[this.t - 1] |= ((1 << (this.DB - a)) - 1) << a)),
  13891. this.clamp(),
  13892. o && n.ZERO.subTo(this, this);
  13893. }
  13894. function p() {
  13895. for (var t = this.s & this.DM; this.t > 0 && this[this.t - 1] == t;)
  13896. --this.t;
  13897. }
  13898. function y(t) {
  13899. if (this.s < 0) return '-' + this.negate().toString(t);
  13900. if (16 == t) t = 4;
  13901. else if (8 == t) t = 3;
  13902. else if (2 == t) t = 1;
  13903. else if (32 == t) t = 5;
  13904. else if (64 == t) t = 6;
  13905. else {
  13906. if (4 != t) return this.toRadix(t);
  13907. t = 2;
  13908. }
  13909. var e,
  13910. n = (1 << t) - 1,
  13911. i = !1,
  13912. r = '',
  13913. o = this.t,
  13914. a = this.DB - (o * this.DB) % t;
  13915. if (o-- > 0)
  13916. for (
  13917. a < this.DB && (e = this[o] >> a) > 0 && ((i = !0), (r = u(e)));
  13918. o >= 0;
  13919. )
  13920. a < t
  13921. ? ((e = (this[o] & ((1 << a) - 1)) << (t - a)),
  13922. (e |= this[--o] >> (a += this.DB - t)))
  13923. : ((e = (this[o] >> (a -= t)) & n),
  13924. a <= 0 && ((a += this.DB), --o)),
  13925. e > 0 && (i = !0),
  13926. i && (r += u(e));
  13927. return i ? r : '0';
  13928. }
  13929. function m() {
  13930. var t = r();
  13931. return n.ZERO.subTo(this, t), t;
  13932. }
  13933. function g() {
  13934. return this.s < 0 ? this.negate() : this;
  13935. }
  13936. function S(t) {
  13937. var e = this.s - t.s;
  13938. if (0 != e) return e;
  13939. var n = this.t,
  13940. e = n - t.t;
  13941. if (0 != e) return e;
  13942. for (; --n >= 0;) if (0 != (e = this[n] - t[n])) return e;
  13943. return 0;
  13944. }
  13945. function b(t) {
  13946. var e,
  13947. n = 1;
  13948. return (
  13949. 0 != (e = t >>> 16) && ((t = e), (n += 16)),
  13950. 0 != (e = t >> 8) && ((t = e), (n += 8)),
  13951. 0 != (e = t >> 4) && ((t = e), (n += 4)),
  13952. 0 != (e = t >> 2) && ((t = e), (n += 2)),
  13953. t >> 1 != 0 && (n += 1),
  13954. n
  13955. );
  13956. }
  13957. function w() {
  13958. return this.t <= 0
  13959. ? 0
  13960. : this.DB * (this.t - 1) + b(this[this.t - 1] ^ (this.s & this.DM));
  13961. }
  13962. function _(t, e) {
  13963. var n;
  13964. for (n = this.t - 1; n >= 0; --n) e[n + t] = this[n];
  13965. for (n = t - 1; n >= 0; --n) e[n] = 0;
  13966. (e.t = this.t + t), (e.s = this.s);
  13967. }
  13968. function P(t, e) {
  13969. for (var n = t; n < this.t; ++n) e[n - t] = this[n];
  13970. (e.t = Math.max(this.t - t, 0)), (e.s = this.s);
  13971. }
  13972. function C(t, e) {
  13973. var n,
  13974. i = t % this.DB,
  13975. r = this.DB - i,
  13976. o = (1 << r) - 1,
  13977. a = Math.floor(t / this.DB),
  13978. s = (this.s << i) & this.DM;
  13979. for (n = this.t - 1; n >= 0; --n)
  13980. (e[n + a + 1] = (this[n] >> r) | s), (s = (this[n] & o) << i);
  13981. for (n = a - 1; n >= 0; --n) e[n] = 0;
  13982. (e[a] = s), (e.t = this.t + a + 1), (e.s = this.s), e.clamp();
  13983. }
  13984. function x(t, e) {
  13985. e.s = this.s;
  13986. var n = Math.floor(t / this.DB);
  13987. if (n >= this.t) e.t = 0;
  13988. else {
  13989. var i = t % this.DB,
  13990. r = this.DB - i,
  13991. o = (1 << i) - 1;
  13992. e[0] = this[n] >> i;
  13993. for (var a = n + 1; a < this.t; ++a)
  13994. (e[a - n - 1] |= (this[a] & o) << r), (e[a - n] = this[a] >> i);
  13995. i > 0 && (e[this.t - n - 1] |= (this.s & o) << r),
  13996. (e.t = this.t - n),
  13997. e.clamp();
  13998. }
  13999. }
  14000. function T(t, e) {
  14001. for (var n = 0, i = 0, r = Math.min(t.t, this.t); n < r;)
  14002. (i += this[n] - t[n]), (e[n++] = i & this.DM), (i >>= this.DB);
  14003. if (t.t < this.t) {
  14004. for (i -= t.s; n < this.t;)
  14005. (i += this[n]), (e[n++] = i & this.DM), (i >>= this.DB);
  14006. i += this.s;
  14007. } else {
  14008. for (i += this.s; n < t.t;)
  14009. (i -= t[n]), (e[n++] = i & this.DM), (i >>= this.DB);
  14010. i -= t.s;
  14011. }
  14012. (e.s = i < 0 ? -1 : 0),
  14013. i < -1 ? (e[n++] = this.DV + i) : i > 0 && (e[n++] = i),
  14014. (e.t = n),
  14015. e.clamp();
  14016. }
  14017. function k(t, e) {
  14018. var i = this.abs(),
  14019. r = t.abs(),
  14020. o = i.t;
  14021. for (e.t = o + r.t; --o >= 0;) e[o] = 0;
  14022. for (o = 0; o < r.t; ++o) e[o + i.t] = i.am(0, r[o], e, o, 0, i.t);
  14023. (e.s = 0), e.clamp(), this.s != t.s && n.ZERO.subTo(e, e);
  14024. }
  14025. function D(t) {
  14026. for (var e = this.abs(), n = (t.t = 2 * e.t); --n >= 0;) t[n] = 0;
  14027. for (n = 0; n < e.t - 1; ++n) {
  14028. var i = e.am(n, e[n], t, 2 * n, 0, 1);
  14029. (t[n + e.t] += e.am(n + 1, 2 * e[n], t, 2 * n + 1, i, e.t - n - 1)) >=
  14030. e.DV && ((t[n + e.t] -= e.DV), (t[n + e.t + 1] = 1));
  14031. }
  14032. t.t > 0 && (t[t.t - 1] += e.am(n, e[n], t, 2 * n, 0, 1)),
  14033. (t.s = 0),
  14034. t.clamp();
  14035. }
  14036. function M(t, e, i) {
  14037. var o = t.abs();
  14038. if (!(o.t <= 0)) {
  14039. var a = this.abs();
  14040. if (a.t < o.t) null != e && e.fromInt(0), null != i && this.copyTo(i);
  14041. else {
  14042. null == i && (i = r());
  14043. var s = r(),
  14044. u = this.s,
  14045. t = t.s,
  14046. l = this.DB - b(o[o.t - 1]);
  14047. if (
  14048. (l > 0
  14049. ? (o.lShiftTo(l, s), a.lShiftTo(l, i))
  14050. : (o.copyTo(s), a.copyTo(i)),
  14051. (o = s.t),
  14052. (a = s[o - 1]),
  14053. 0 != a)
  14054. ) {
  14055. var f = a * (1 << this.F1) + (o > 1 ? s[o - 2] >> this.F2 : 0),
  14056. c = this.FV / f,
  14057. f = (1 << this.F1) / f,
  14058. h = 1 << this.F2,
  14059. d = i.t,
  14060. p = d - o,
  14061. y = null == e ? r() : e;
  14062. for (
  14063. s.dlShiftTo(p, y),
  14064. i.compareTo(y) >= 0 && ((i[i.t++] = 1), i.subTo(y, i)),
  14065. n.ONE.dlShiftTo(o, y),
  14066. y.subTo(s, s);
  14067. s.t < o;
  14068. )
  14069. s[s.t++] = 0;
  14070. for (; --p >= 0;) {
  14071. var m =
  14072. i[--d] == a
  14073. ? this.DM
  14074. : Math.floor(i[d] * c + (i[d - 1] + h) * f);
  14075. if ((i[d] += s.am(0, m, i, p, 0, o)) < m)
  14076. for (s.dlShiftTo(p, y), i.subTo(y, i); i[d] < --m;)
  14077. i.subTo(y, i);
  14078. }
  14079. null != e && (i.drShiftTo(o, e), u != t && n.ZERO.subTo(e, e)),
  14080. (i.t = o),
  14081. i.clamp(),
  14082. l > 0 && i.rShiftTo(l, i),
  14083. u < 0 && n.ZERO.subTo(i, i);
  14084. }
  14085. }
  14086. }
  14087. }
  14088. function R(t) {
  14089. var e = r();
  14090. return (
  14091. this.abs().divRemTo(t, null, e),
  14092. this.s < 0 && e.compareTo(n.ZERO) > 0 && t.subTo(e, e),
  14093. e
  14094. );
  14095. }
  14096. function E(t) {
  14097. this.m = t;
  14098. }
  14099. function z(t) {
  14100. return t.s < 0 || t.compareTo(this.m) >= 0 ? t.mod(this.m) : t;
  14101. }
  14102. function I(t) {
  14103. return t;
  14104. }
  14105. function A(t) {
  14106. t.divRemTo(this.m, null, t);
  14107. }
  14108. function F(t, e, n) {
  14109. t.multiplyTo(e, n), this.reduce(n);
  14110. }
  14111. function O(t, e) {
  14112. t.squareTo(e), this.reduce(e);
  14113. }
  14114. function B() {
  14115. if (this.t < 1) return 0;
  14116. var t = this[0];
  14117. if (0 == (1 & t)) return 0;
  14118. var e = 3 & t,
  14119. e = (e * (2 - (15 & t) * e)) & 15,
  14120. e = (e * (2 - (255 & t) * e)) & 255,
  14121. e = (e * (2 - (((65535 & t) * e) & 65535))) & 65535,
  14122. e = (e * (2 - (t * e) % this.DV)) % this.DV;
  14123. return e > 0 ? this.DV - e : -e;
  14124. }
  14125. function L(t) {
  14126. (this.m = t),
  14127. (this.mp = t.invDigit()),
  14128. (this.mpl = 32767 & this.mp),
  14129. (this.mph = this.mp >> 15),
  14130. (this.um = (1 << (t.DB - 15)) - 1),
  14131. (this.mt2 = 2 * t.t);
  14132. }
  14133. function N(t) {
  14134. var e = r();
  14135. return (
  14136. t.abs().dlShiftTo(this.m.t, e),
  14137. e.divRemTo(this.m, null, e),
  14138. t.s < 0 && e.compareTo(n.ZERO) > 0 && this.m.subTo(e, e),
  14139. e
  14140. );
  14141. }
  14142. function q(t) {
  14143. var e = r();
  14144. return t.copyTo(e), this.reduce(e), e;
  14145. }
  14146. function H(t) {
  14147. for (; t.t <= this.mt2;) t[t.t++] = 0;
  14148. for (var e = 0; e < this.m.t; ++e) {
  14149. var n = 32767 & t[e],
  14150. i =
  14151. (n * this.mpl +
  14152. (((n * this.mph + (t[e] >> 15) * this.mpl) & this.um) << 15)) &
  14153. t.DM,
  14154. n = e + this.m.t;
  14155. for (t[n] += this.m.am(0, i, t, e, 0, this.m.t); t[n] >= t.DV;)
  14156. (t[n] -= t.DV), t[++n]++;
  14157. }
  14158. t.clamp(),
  14159. t.drShiftTo(this.m.t, t),
  14160. t.compareTo(this.m) >= 0 && t.subTo(this.m, t);
  14161. }
  14162. function j(t, e) {
  14163. t.squareTo(e), this.reduce(e);
  14164. }
  14165. function W(t, e, n) {
  14166. t.multiplyTo(e, n), this.reduce(n);
  14167. }
  14168. function U() {
  14169. return 0 == (this.t > 0 ? 1 & this[0] : this.s);
  14170. }
  14171. function G(t, e) {
  14172. if (t > 4294967295 || t < 1) return n.ONE;
  14173. var i = r(),
  14174. o = r(),
  14175. a = e.convert(this),
  14176. s = b(t) - 1;
  14177. for (a.copyTo(i); --s >= 0;)
  14178. if ((e.sqrTo(i, o), (t & (1 << s)) > 0)) e.mulTo(o, a, i);
  14179. else
  14180. var u = i,
  14181. i = o,
  14182. o = u;
  14183. return e.revert(i);
  14184. }
  14185. function V(t, e) {
  14186. var n;
  14187. return (
  14188. (n = t < 256 || e.isEven() ? new E(e) : new L(e)), this.exp(t, n)
  14189. );
  14190. }
  14191. function Y() {
  14192. var t = r();
  14193. return this.copyTo(t), t;
  14194. }
  14195. function X() {
  14196. if (this.s < 0) {
  14197. if (1 == this.t) return this[0] - this.DV;
  14198. if (0 == this.t) return -1;
  14199. } else {
  14200. if (1 == this.t) return this[0];
  14201. if (0 == this.t) return 0;
  14202. }
  14203. return ((this[1] & ((1 << (32 - this.DB)) - 1)) << this.DB) | this[0];
  14204. }
  14205. function J() {
  14206. return 0 == this.t ? this.s : (this[0] << 24) >> 24;
  14207. }
  14208. function $() {
  14209. return 0 == this.t ? this.s : (this[0] << 16) >> 16;
  14210. }
  14211. function K(t) {
  14212. return Math.floor(Math.LN2 * this.DB / Math.log(t));
  14213. }
  14214. function Z() {
  14215. return this.s < 0
  14216. ? -1
  14217. : this.t <= 0 || (1 == this.t && this[0] <= 0)
  14218. ? 0
  14219. : 1;
  14220. }
  14221. function Q(t) {
  14222. if ((null == t && (t = 10), 0 == this.signum() || t < 2 || t > 36))
  14223. return '0';
  14224. var e = this.chunkSize(t),
  14225. e = Math.pow(t, e),
  14226. n = h(e),
  14227. i = r(),
  14228. o = r(),
  14229. a = '';
  14230. for (this.divRemTo(n, i, o); i.signum() > 0;)
  14231. (a = (e + o.intValue()).toString(t).substr(1) + a),
  14232. i.divRemTo(n, i, o);
  14233. return o.intValue().toString(t) + a;
  14234. }
  14235. function tt(t, e) {
  14236. this.fromInt(0), null == e && (e = 10);
  14237. for (
  14238. var i = this.chunkSize(e),
  14239. r = Math.pow(e, i),
  14240. o = !1,
  14241. a = 0,
  14242. s = 0,
  14243. u = 0;
  14244. u < t.length;
  14245. ++u
  14246. ) {
  14247. var f = l(t, u);
  14248. f < 0
  14249. ? '-' == t.charAt(u) && 0 == this.signum() && (o = !0)
  14250. : ((s = e * s + f),
  14251. ++a >= i &&
  14252. (this.dMultiply(r), this.dAddOffset(s, 0), (s = a = 0)));
  14253. }
  14254. a > 0 && (this.dMultiply(Math.pow(e, a)), this.dAddOffset(s, 0)),
  14255. o && n.ZERO.subTo(this, this);
  14256. }
  14257. function et(t, e, i) {
  14258. if ('number' == typeof e)
  14259. if (t < 2) this.fromInt(1);
  14260. else
  14261. for (
  14262. this.fromNumber(t, i),
  14263. this.testBit(t - 1) ||
  14264. this.bitwiseTo(n.ONE.shiftLeft(t - 1), lt, this),
  14265. this.isEven() && this.dAddOffset(1, 0);
  14266. !this.isProbablePrime(e);
  14267. )
  14268. this.dAddOffset(2, 0),
  14269. this.bitLength() > t &&
  14270. this.subTo(n.ONE.shiftLeft(t - 1), this);
  14271. else {
  14272. var i = [],
  14273. r = 7 & t;
  14274. (i.length = (t >> 3) + 1),
  14275. e.nextBytes(i),
  14276. r > 0 ? (i[0] &= (1 << r) - 1) : (i[0] = 0),
  14277. this.fromString(i, 256);
  14278. }
  14279. }
  14280. function nt() {
  14281. var t = this.t,
  14282. e = [];
  14283. e[0] = this.s;
  14284. var n,
  14285. i = this.DB - (t * this.DB) % 8,
  14286. r = 0;
  14287. if (t-- > 0)
  14288. for (
  14289. i < this.DB &&
  14290. (n = this[t] >> i) != (this.s & this.DM) >> i &&
  14291. (e[r++] = n | (this.s << (this.DB - i)));
  14292. t >= 0;
  14293. )
  14294. i < 8
  14295. ? ((n = (this[t] & ((1 << i) - 1)) << (8 - i)),
  14296. (n |= this[--t] >> (i += this.DB - 8)))
  14297. : ((n = (this[t] >> (i -= 8)) & 255),
  14298. i <= 0 && ((i += this.DB), --t)),
  14299. 0 != (128 & n) && (n |= -256),
  14300. 0 == r && (128 & this.s) != (128 & n) && ++r,
  14301. (r > 0 || n != this.s) && (e[r++] = n);
  14302. return e;
  14303. }
  14304. function it(t) {
  14305. return 0 == this.compareTo(t);
  14306. }
  14307. function rt(t) {
  14308. return this.compareTo(t) < 0 ? this : t;
  14309. }
  14310. function ot(t) {
  14311. return this.compareTo(t) > 0 ? this : t;
  14312. }
  14313. function at(t, e, n) {
  14314. var i,
  14315. r,
  14316. o = Math.min(t.t, this.t);
  14317. for (i = 0; i < o; ++i) n[i] = e(this[i], t[i]);
  14318. if (t.t < this.t) {
  14319. for (r = t.s & this.DM, i = o; i < this.t; ++i) n[i] = e(this[i], r);
  14320. n.t = this.t;
  14321. } else {
  14322. for (r = this.s & this.DM, i = o; i < t.t; ++i) n[i] = e(r, t[i]);
  14323. n.t = t.t;
  14324. }
  14325. (n.s = e(this.s, t.s)), n.clamp();
  14326. }
  14327. function st(t, e) {
  14328. return t & e;
  14329. }
  14330. function ut(t) {
  14331. var e = r();
  14332. return this.bitwiseTo(t, st, e), e;
  14333. }
  14334. function lt(t, e) {
  14335. return t | e;
  14336. }
  14337. function ft(t) {
  14338. var e = r();
  14339. return this.bitwiseTo(t, lt, e), e;
  14340. }
  14341. function ct(t, e) {
  14342. return t ^ e;
  14343. }
  14344. function ht(t) {
  14345. var e = r();
  14346. return this.bitwiseTo(t, ct, e), e;
  14347. }
  14348. function dt(t, e) {
  14349. return t & ~e;
  14350. }
  14351. function pt(t) {
  14352. var e = r();
  14353. return this.bitwiseTo(t, dt, e), e;
  14354. }
  14355. function yt() {
  14356. for (var t = r(), e = 0; e < this.t; ++e) t[e] = this.DM & ~this[e];
  14357. return (t.t = this.t), (t.s = ~this.s), t;
  14358. }
  14359. function mt(t) {
  14360. var e = r();
  14361. return t < 0 ? this.rShiftTo(-t, e) : this.lShiftTo(t, e), e;
  14362. }
  14363. function vt(t) {
  14364. var e = r();
  14365. return t < 0 ? this.lShiftTo(-t, e) : this.rShiftTo(t, e), e;
  14366. }
  14367. function gt(t) {
  14368. if (0 == t) return -1;
  14369. var e = 0;
  14370. return (
  14371. 0 == (65535 & t) && ((t >>= 16), (e += 16)),
  14372. 0 == (255 & t) && ((t >>= 8), (e += 8)),
  14373. 0 == (15 & t) && ((t >>= 4), (e += 4)),
  14374. 0 == (3 & t) && ((t >>= 2), (e += 2)),
  14375. 0 == (1 & t) && ++e,
  14376. e
  14377. );
  14378. }
  14379. function St() {
  14380. for (var t = 0; t < this.t; ++t)
  14381. if (0 != this[t]) return t * this.DB + gt(this[t]);
  14382. return this.s < 0 ? this.t * this.DB : -1;
  14383. }
  14384. function bt(t) {
  14385. for (var e = 0; 0 != t;) (t &= t - 1), ++e;
  14386. return e;
  14387. }
  14388. function wt() {
  14389. for (var t = 0, e = this.s & this.DM, n = 0; n < this.t; ++n)
  14390. t += bt(this[n] ^ e);
  14391. return t;
  14392. }
  14393. function _t(t) {
  14394. var e = Math.floor(t / this.DB);
  14395. return e >= this.t
  14396. ? 0 != this.s
  14397. : 0 != (this[e] & (1 << (t % this.DB)));
  14398. }
  14399. function Pt(t, e) {
  14400. var i = n.ONE.shiftLeft(t);
  14401. return this.bitwiseTo(i, e, i), i;
  14402. }
  14403. function Ct(t) {
  14404. return this.changeBit(t, lt);
  14405. }
  14406. function xt(t) {
  14407. return this.changeBit(t, dt);
  14408. }
  14409. function Tt(t) {
  14410. return this.changeBit(t, ct);
  14411. }
  14412. function kt(t, e) {
  14413. for (var n = 0, i = 0, r = Math.min(t.t, this.t); n < r;)
  14414. (i += this[n] + t[n]), (e[n++] = i & this.DM), (i >>= this.DB);
  14415. if (t.t < this.t) {
  14416. for (i += t.s; n < this.t;)
  14417. (i += this[n]), (e[n++] = i & this.DM), (i >>= this.DB);
  14418. i += this.s;
  14419. } else {
  14420. for (i += this.s; n < t.t;)
  14421. (i += t[n]), (e[n++] = i & this.DM), (i >>= this.DB);
  14422. i += t.s;
  14423. }
  14424. (e.s = i < 0 ? -1 : 0),
  14425. i > 0 ? (e[n++] = i) : i < -1 && (e[n++] = this.DV + i),
  14426. (e.t = n),
  14427. e.clamp();
  14428. }
  14429. function Dt(t) {
  14430. var e = r();
  14431. return this.addTo(t, e), e;
  14432. }
  14433. function Mt(t) {
  14434. var e = r();
  14435. return this.subTo(t, e), e;
  14436. }
  14437. function Rt(t) {
  14438. var e = r();
  14439. return this.multiplyTo(t, e), e;
  14440. }
  14441. function Et() {
  14442. var t = r();
  14443. return this.squareTo(t), t;
  14444. }
  14445. function zt(t) {
  14446. var e = r();
  14447. return this.divRemTo(t, e, null), e;
  14448. }
  14449. function It(t) {
  14450. var e = r();
  14451. return this.divRemTo(t, null, e), e;
  14452. }
  14453. function At(t) {
  14454. var e = r(),
  14455. n = r();
  14456. return this.divRemTo(t, e, n), [e, n];
  14457. }
  14458. function Ft(t) {
  14459. (this[this.t] = this.am(0, t - 1, this, 0, 0, this.t)),
  14460. ++this.t,
  14461. this.clamp();
  14462. }
  14463. function Ot(t, e) {
  14464. if (0 != t) {
  14465. for (; this.t <= e;) this[this.t++] = 0;
  14466. for (this[e] += t; this[e] >= this.DV;)
  14467. (this[e] -= this.DV),
  14468. ++e >= this.t && (this[this.t++] = 0),
  14469. ++this[e];
  14470. }
  14471. }
  14472. function Bt() {
  14473. }
  14474. function Lt(t) {
  14475. return t;
  14476. }
  14477. function Nt(t, e, n) {
  14478. t.multiplyTo(e, n);
  14479. }
  14480. function qt(t, e) {
  14481. t.squareTo(e);
  14482. }
  14483. function Ht(t) {
  14484. return this.exp(t, new Bt());
  14485. }
  14486. function jt(t, e, n) {
  14487. var i = Math.min(this.t + t.t, e);
  14488. for (n.s = 0, n.t = i; i > 0;) n[--i] = 0;
  14489. var r;
  14490. for (r = n.t - this.t; i < r; ++i)
  14491. n[i + this.t] = this.am(0, t[i], n, i, 0, this.t);
  14492. for (r = Math.min(t.t, e); i < r; ++i) this.am(0, t[i], n, i, 0, e - i);
  14493. n.clamp();
  14494. }
  14495. function Wt(t, e, n) {
  14496. --e;
  14497. var i = (n.t = this.t + t.t - e);
  14498. for (n.s = 0; --i >= 0;) n[i] = 0;
  14499. for (i = Math.max(e - this.t, 0); i < t.t; ++i)
  14500. n[this.t + i - e] = this.am(e - i, t[i], n, 0, 0, this.t + i - e);
  14501. n.clamp(), n.drShiftTo(1, n);
  14502. }
  14503. function Ut(t) {
  14504. (this.r2 = r()),
  14505. (this.q3 = r()),
  14506. n.ONE.dlShiftTo(2 * t.t, this.r2),
  14507. (this.mu = this.r2.divide(t)),
  14508. (this.m = t);
  14509. }
  14510. function Gt(t) {
  14511. if (t.s < 0 || t.t > 2 * this.m.t) return t.mod(this.m);
  14512. if (t.compareTo(this.m) < 0) return t;
  14513. var e = r();
  14514. return t.copyTo(e), this.reduce(e), e;
  14515. }
  14516. function Vt(t) {
  14517. return t;
  14518. }
  14519. function Yt(t) {
  14520. for (
  14521. t.drShiftTo(this.m.t - 1, this.r2),
  14522. t.t > this.m.t + 1 && ((t.t = this.m.t + 1), t.clamp()),
  14523. this.mu.multiplyUpperTo(this.r2, this.m.t + 1, this.q3),
  14524. this.m.multiplyLowerTo(this.q3, this.m.t + 1, this.r2);
  14525. t.compareTo(this.r2) < 0;
  14526. )
  14527. t.dAddOffset(1, this.m.t + 1);
  14528. for (t.subTo(this.r2, t); t.compareTo(this.m) >= 0;)
  14529. t.subTo(this.m, t);
  14530. }
  14531. function Xt(t, e) {
  14532. t.squareTo(e), this.reduce(e);
  14533. }
  14534. function Jt(t, e, n) {
  14535. t.multiplyTo(e, n), this.reduce(n);
  14536. }
  14537. function $t(t, e) {
  14538. var n,
  14539. i,
  14540. o = t.bitLength(),
  14541. a = h(1);
  14542. if (o <= 0) return a;
  14543. (n = o < 18 ? 1 : o < 48 ? 3 : o < 144 ? 4 : o < 768 ? 5 : 6),
  14544. (i = o < 8 ? new E(e) : e.isEven() ? new Ut(e) : new L(e));
  14545. var s = [],
  14546. u = 3,
  14547. l = n - 1,
  14548. f = (1 << n) - 1;
  14549. if (((s[1] = i.convert(this)), n > 1))
  14550. for (o = r(), i.sqrTo(s[1], o); u <= f;)
  14551. (s[u] = r()), i.mulTo(o, s[u - 2], s[u]), (u += 2);
  14552. for (var c, d = t.t - 1, p = !0, y = r(), o = b(t[d]) - 1; d >= 0;) {
  14553. for (
  14554. o >= l
  14555. ? (c = (t[d] >> (o - l)) & f)
  14556. : ((c = (t[d] & ((1 << (o + 1)) - 1)) << (l - o)),
  14557. d > 0 && (c |= t[d - 1] >> (this.DB + o - l))),
  14558. u = n;
  14559. 0 == (1 & c);
  14560. )
  14561. (c >>= 1), --u;
  14562. if (((o -= u) < 0 && ((o += this.DB), --d), p))
  14563. s[c].copyTo(a), (p = !1);
  14564. else {
  14565. for (; u > 1;) i.sqrTo(a, y), i.sqrTo(y, a), (u -= 2);
  14566. u > 0 ? i.sqrTo(a, y) : ((u = a), (a = y), (y = u)),
  14567. i.mulTo(y, s[c], a);
  14568. }
  14569. for (; d >= 0 && 0 == (t[d] & (1 << o));)
  14570. i.sqrTo(a, y),
  14571. (u = a),
  14572. (a = y),
  14573. (y = u),
  14574. --o < 0 && ((o = this.DB - 1), --d);
  14575. }
  14576. return i.revert(a);
  14577. }
  14578. function Kt(t) {
  14579. var e = this.s < 0 ? this.negate() : this.clone(),
  14580. t = t.s < 0 ? t.negate() : t.clone();
  14581. if (e.compareTo(t) < 0)
  14582. var n = e,
  14583. e = t,
  14584. t = n;
  14585. var n = e.getLowestSetBit(),
  14586. i = t.getLowestSetBit();
  14587. if (i < 0) return e;
  14588. for (
  14589. n < i && (i = n), i > 0 && (e.rShiftTo(i, e), t.rShiftTo(i, t));
  14590. e.signum() > 0;
  14591. )
  14592. (n = e.getLowestSetBit()) > 0 && e.rShiftTo(n, e),
  14593. (n = t.getLowestSetBit()) > 0 && t.rShiftTo(n, t),
  14594. e.compareTo(t) >= 0
  14595. ? (e.subTo(t, e), e.rShiftTo(1, e))
  14596. : (t.subTo(e, t), t.rShiftTo(1, t));
  14597. return i > 0 && t.lShiftTo(i, t), t;
  14598. }
  14599. function Zt(t) {
  14600. if (t <= 0) return 0;
  14601. var e = this.DV % t,
  14602. n = this.s < 0 ? t - 1 : 0;
  14603. if (this.t > 0)
  14604. if (0 == e) n = this[0] % t;
  14605. else for (var i = this.t - 1; i >= 0; --i) n = (e * n + this[i]) % t;
  14606. return n;
  14607. }
  14608. function Qt(t) {
  14609. var e = t.isEven();
  14610. if ((this.isEven() && e) || 0 == t.signum()) return n.ZERO;
  14611. for (
  14612. var i = t.clone(),
  14613. r = this.clone(),
  14614. o = h(1),
  14615. a = h(0),
  14616. s = h(0),
  14617. u = h(1);
  14618. 0 != i.signum();
  14619. ) {
  14620. for (; i.isEven();)
  14621. i.rShiftTo(1, i),
  14622. e
  14623. ? ((o.isEven() && a.isEven()) ||
  14624. (o.addTo(this, o), a.subTo(t, a)),
  14625. o.rShiftTo(1, o))
  14626. : a.isEven() || a.subTo(t, a),
  14627. a.rShiftTo(1, a);
  14628. for (; r.isEven();)
  14629. r.rShiftTo(1, r),
  14630. e
  14631. ? ((s.isEven() && u.isEven()) ||
  14632. (s.addTo(this, s), u.subTo(t, u)),
  14633. s.rShiftTo(1, s))
  14634. : u.isEven() || u.subTo(t, u),
  14635. u.rShiftTo(1, u);
  14636. i.compareTo(r) >= 0
  14637. ? (i.subTo(r, i), e && o.subTo(s, o), a.subTo(u, a))
  14638. : (r.subTo(i, r), e && s.subTo(o, s), u.subTo(a, u));
  14639. }
  14640. return 0 != r.compareTo(n.ONE)
  14641. ? n.ZERO
  14642. : u.compareTo(t) >= 0
  14643. ? u.subtract(t)
  14644. : u.signum() < 0
  14645. ? (u.addTo(t, u), u.signum() < 0 ? u.add(t) : u)
  14646. : u;
  14647. }
  14648. function te(t) {
  14649. var e,
  14650. n = this.abs();
  14651. if (1 == n.t && n[0] <= Ye[Ye.length - 1]) {
  14652. for (e = 0; e < Ye.length; ++e) if (n[0] == Ye[e]) return !0;
  14653. return !1;
  14654. }
  14655. if (n.isEven()) return !1;
  14656. for (e = 1; e < Ye.length;) {
  14657. for (var i = Ye[e], r = e + 1; r < Ye.length && i < Xe;)
  14658. i *= Ye[r++];
  14659. for (i = n.modInt(i); e < r;) if (i % Ye[e++] == 0) return !1;
  14660. }
  14661. return n.millerRabin(t);
  14662. }
  14663. function ee(t) {
  14664. var e = this.subtract(n.ONE),
  14665. i = e.getLowestSetBit();
  14666. if (i <= 0) return !1;
  14667. var o = e.shiftRight(i),
  14668. t = (t + 1) >> 1;
  14669. t > Ye.length && (t = Ye.length);
  14670. for (var a = r(), s = 0; s < t; ++s) {
  14671. a.fromInt(Ye[Math.floor(Math.random() * Ye.length)]);
  14672. var u = a.modPow(o, this);
  14673. if (0 != u.compareTo(n.ONE) && 0 != u.compareTo(e)) {
  14674. for (var l = 1; l++ < i && 0 != u.compareTo(e);)
  14675. if (((u = u.modPowInt(2, this)), 0 == u.compareTo(n.ONE)))
  14676. return !1;
  14677. if (0 != u.compareTo(e)) return !1;
  14678. }
  14679. }
  14680. return !0;
  14681. }
  14682. function ne() {
  14683. }
  14684. function ie(t) {
  14685. var e;
  14686. for (e = 0; e < t.length; e++) t[e] = Math.floor(256 * Math.random());
  14687. }
  14688. function re() {
  14689. (this.j = this.i = 0), (this.S = []);
  14690. }
  14691. function oe(t) {
  14692. var e, n, i;
  14693. for (e = 0; e < 256; ++e) this.S[e] = e;
  14694. for (e = n = 0; e < 256; ++e)
  14695. (n = (n + this.S[e] + t[e % t.length]) & 255),
  14696. (i = this.S[e]),
  14697. (this.S[e] = this.S[n]),
  14698. (this.S[n] = i);
  14699. this.j = this.i = 0;
  14700. }
  14701. function ae() {
  14702. var t;
  14703. return (
  14704. (this.i = (this.i + 1) & 255),
  14705. (this.j = (this.j + this.S[this.i]) & 255),
  14706. (t = this.S[this.i]),
  14707. (this.S[this.i] = this.S[this.j]),
  14708. (this.S[this.j] = t),
  14709. this.S[(t + this.S[this.i]) & 255]
  14710. );
  14711. }
  14712. function se() {
  14713. return new re();
  14714. }
  14715. function ue(t) {
  14716. ($e[Ke++] ^= 255 & t),
  14717. ($e[Ke++] ^= (t >> 8) & 255),
  14718. ($e[Ke++] ^= (t >> 16) & 255),
  14719. ($e[Ke++] ^= (t >> 24) & 255),
  14720. Ke >= Ze && (Ke -= Ze);
  14721. }
  14722. function le() {
  14723. ue(new Date().getTime());
  14724. }
  14725. function fe() {
  14726. if (null == Je) {
  14727. for (le(), Je = se(), Je.init($e), Ke = 0; Ke < $e.length; ++Ke)
  14728. $e[Ke] = 0;
  14729. Ke = 0;
  14730. }
  14731. return Je.next();
  14732. }
  14733. function ce(t) {
  14734. var e;
  14735. for (e = 0; e < t.length; ++e) t[e] = fe();
  14736. }
  14737. function he() {
  14738. }
  14739. function de(t) {
  14740. function e(t, e) {
  14741. var n = (65535 & t) + (65535 & e);
  14742. return (((t >> 16) + (e >> 16) + (n >> 16)) << 16) | (65535 & n);
  14743. }
  14744. function n(t, e) {
  14745. return (t >>> e) | (t << (32 - e));
  14746. }
  14747. return (
  14748. (t = (function (t) {
  14749. for (
  14750. var t = t.replace(/\r\n/g, '\n'), e = '', n = 0;
  14751. n < t.length;
  14752. n++
  14753. ) {
  14754. var i = t.charCodeAt(n);
  14755. i < 128
  14756. ? (e += String.fromCharCode(i))
  14757. : (i > 127 && i < 2048
  14758. ? (e += String.fromCharCode((i >> 6) | 192))
  14759. : ((e += String.fromCharCode((i >> 12) | 224)),
  14760. (e += String.fromCharCode(((i >> 6) & 63) | 128))),
  14761. (e += String.fromCharCode((63 & i) | 128)));
  14762. }
  14763. return e;
  14764. })(t)),
  14765. (function (t) {
  14766. for (var e = '', n = 0; n < 4 * t.length; n++)
  14767. e +=
  14768. '0123456789abcdef'.charAt(
  14769. (t[n >> 2] >> (8 * (3 - n % 4) + 4)) & 15
  14770. ) +
  14771. '0123456789abcdef'.charAt(
  14772. (t[n >> 2] >> (8 * (3 - n % 4))) & 15
  14773. );
  14774. return e;
  14775. })(
  14776. (function (t, i) {
  14777. var r,
  14778. o,
  14779. a,
  14780. s,
  14781. u,
  14782. l,
  14783. f,
  14784. c,
  14785. h,
  14786. d,
  14787. p,
  14788. y,
  14789. m = [
  14790. 1116352408,
  14791. 1899447441,
  14792. 3049323471,
  14793. 3921009573,
  14794. 961987163,
  14795. 1508970993,
  14796. 2453635748,
  14797. 2870763221,
  14798. 3624381080,
  14799. 310598401,
  14800. 607225278,
  14801. 1426881987,
  14802. 1925078388,
  14803. 2162078206,
  14804. 2614888103,
  14805. 3248222580,
  14806. 3835390401,
  14807. 4022224774,
  14808. 264347078,
  14809. 604807628,
  14810. 770255983,
  14811. 1249150122,
  14812. 1555081692,
  14813. 1996064986,
  14814. 2554220882,
  14815. 2821834349,
  14816. 2952996808,
  14817. 3210313671,
  14818. 3336571891,
  14819. 3584528711,
  14820. 113926993,
  14821. 338241895,
  14822. 666307205,
  14823. 773529912,
  14824. 1294757372,
  14825. 1396182291,
  14826. 1695183700,
  14827. 1986661051,
  14828. 2177026350,
  14829. 2456956037,
  14830. 2730485921,
  14831. 2820302411,
  14832. 3259730800,
  14833. 3345764771,
  14834. 3516065817,
  14835. 3600352804,
  14836. 4094571909,
  14837. 275423344,
  14838. 430227734,
  14839. 506948616,
  14840. 659060556,
  14841. 883997877,
  14842. 958139571,
  14843. 1322822218,
  14844. 1537002063,
  14845. 1747873779,
  14846. 1955562222,
  14847. 2024104815,
  14848. 2227730452,
  14849. 2361852424,
  14850. 2428436474,
  14851. 2756734187,
  14852. 3204031479,
  14853. 3329325298,
  14854. ],
  14855. v = [
  14856. 1779033703,
  14857. 3144134277,
  14858. 1013904242,
  14859. 2773480762,
  14860. 1359893119,
  14861. 2600822924,
  14862. 528734635,
  14863. 1541459225,
  14864. ],
  14865. g = Array(64);
  14866. for (
  14867. t[i >> 5] |= 128 << (24 - i % 32),
  14868. t[(((i + 64) >> 9) << 4) + 15] = i,
  14869. h = 0;
  14870. h < t.length;
  14871. h += 16
  14872. ) {
  14873. for (
  14874. r = v[0],
  14875. o = v[1],
  14876. a = v[2],
  14877. s = v[3],
  14878. u = v[4],
  14879. l = v[5],
  14880. f = v[6],
  14881. c = v[7],
  14882. d = 0;
  14883. d < 64;
  14884. d++
  14885. )
  14886. (g[d] =
  14887. d < 16
  14888. ? t[d + h]
  14889. : e(
  14890. e(
  14891. e(
  14892. n(g[d - 2], 17) ^
  14893. n(g[d - 2], 19) ^
  14894. (g[d - 2] >>> 10),
  14895. g[d - 7]
  14896. ),
  14897. n(g[d - 15], 7) ^
  14898. n(g[d - 15], 18) ^
  14899. (g[d - 15] >>> 3)
  14900. ),
  14901. g[d - 16]
  14902. )),
  14903. (p = e(
  14904. e(
  14905. e(
  14906. e(c, n(u, 6) ^ n(u, 11) ^ n(u, 25)),
  14907. (u & l) ^ (~u & f)
  14908. ),
  14909. m[d]
  14910. ),
  14911. g[d]
  14912. )),
  14913. (y = e(
  14914. n(r, 2) ^ n(r, 13) ^ n(r, 22),
  14915. (r & o) ^ (r & a) ^ (o & a)
  14916. )),
  14917. (c = f),
  14918. (f = l),
  14919. (l = u),
  14920. (u = e(s, p)),
  14921. (s = a),
  14922. (a = o),
  14923. (o = r),
  14924. (r = e(p, y));
  14925. (v[0] = e(r, v[0])),
  14926. (v[1] = e(o, v[1])),
  14927. (v[2] = e(a, v[2])),
  14928. (v[3] = e(s, v[3])),
  14929. (v[4] = e(u, v[4])),
  14930. (v[5] = e(l, v[5])),
  14931. (v[6] = e(f, v[6])),
  14932. (v[7] = e(c, v[7]));
  14933. }
  14934. return v;
  14935. })(
  14936. (function (t) {
  14937. for (var e = [], n = 0; n < 8 * t.length; n += 8)
  14938. e[n >> 5] |= (255 & t.charCodeAt(n / 8)) << (24 - n % 32);
  14939. return e;
  14940. })(t),
  14941. 8 * t.length
  14942. )
  14943. )
  14944. );
  14945. }
  14946. function pe(t) {
  14947. function e(t, e) {
  14948. return (t << e) | (t >>> (32 - e));
  14949. }
  14950. function n(t) {
  14951. var e,
  14952. n,
  14953. i = '';
  14954. for (e = 7; e >= 0; e--)
  14955. (n = (t >>> (4 * e)) & 15), (i += n.toString(16));
  14956. return i;
  14957. }
  14958. var i,
  14959. r,
  14960. o,
  14961. a,
  14962. s,
  14963. u,
  14964. l,
  14965. f = Array(80),
  14966. c = 1732584193,
  14967. h = 4023233417,
  14968. d = 2562383102,
  14969. p = 271733878,
  14970. y = 3285377520,
  14971. t = (function (t) {
  14972. for (
  14973. var t = t.replace(/\r\n/g, '\n'), e = '', n = 0;
  14974. n < t.length;
  14975. n++
  14976. ) {
  14977. var i = t.charCodeAt(n);
  14978. i < 128
  14979. ? (e += String.fromCharCode(i))
  14980. : (i > 127 && i < 2048
  14981. ? (e += String.fromCharCode((i >> 6) | 192))
  14982. : ((e += String.fromCharCode((i >> 12) | 224)),
  14983. (e += String.fromCharCode(((i >> 6) & 63) | 128))),
  14984. (e += String.fromCharCode((63 & i) | 128)));
  14985. }
  14986. return e;
  14987. })(t);
  14988. o = t.length;
  14989. var m = [];
  14990. for (i = 0; i < o - 3; i += 4)
  14991. (r =
  14992. (t.charCodeAt(i) << 24) |
  14993. (t.charCodeAt(i + 1) << 16) |
  14994. (t.charCodeAt(i + 2) << 8) |
  14995. t.charCodeAt(i + 3)),
  14996. m.push(r);
  14997. switch (o % 4) {
  14998. case 0:
  14999. i = 2147483648;
  15000. break;
  15001. case 1:
  15002. i = (t.charCodeAt(o - 1) << 24) | 8388608;
  15003. break;
  15004. case 2:
  15005. i =
  15006. (t.charCodeAt(o - 2) << 24) | (t.charCodeAt(o - 1) << 16) | 32768;
  15007. break;
  15008. case 3:
  15009. i =
  15010. (t.charCodeAt(o - 3) << 24) |
  15011. (t.charCodeAt(o - 2) << 16) |
  15012. (t.charCodeAt(o - 1) << 8) |
  15013. 128;
  15014. }
  15015. for (m.push(i); m.length % 16 != 14;) m.push(0);
  15016. for (
  15017. m.push(o >>> 29), m.push((o << 3) & 4294967295), t = 0;
  15018. t < m.length;
  15019. t += 16
  15020. ) {
  15021. for (i = 0; i < 16; i++) f[i] = m[t + i];
  15022. for (i = 16; i <= 79; i++)
  15023. f[i] = e(f[i - 3] ^ f[i - 8] ^ f[i - 14] ^ f[i - 16], 1);
  15024. for (r = c, o = h, a = d, s = p, u = y, i = 0; i <= 19; i++)
  15025. (l =
  15026. (e(r, 5) + ((o & a) | (~o & s)) + u + f[i] + 1518500249) &
  15027. 4294967295),
  15028. (u = s),
  15029. (s = a),
  15030. (a = e(o, 30)),
  15031. (o = r),
  15032. (r = l);
  15033. for (i = 20; i <= 39; i++)
  15034. (l = (e(r, 5) + (o ^ a ^ s) + u + f[i] + 1859775393) & 4294967295),
  15035. (u = s),
  15036. (s = a),
  15037. (a = e(o, 30)),
  15038. (o = r),
  15039. (r = l);
  15040. for (i = 40; i <= 59; i++)
  15041. (l =
  15042. (e(r, 5) +
  15043. ((o & a) | (o & s) | (a & s)) +
  15044. u +
  15045. f[i] +
  15046. 2400959708) &
  15047. 4294967295),
  15048. (u = s),
  15049. (s = a),
  15050. (a = e(o, 30)),
  15051. (o = r),
  15052. (r = l);
  15053. for (i = 60; i <= 79; i++)
  15054. (l = (e(r, 5) + (o ^ a ^ s) + u + f[i] + 3395469782) & 4294967295),
  15055. (u = s),
  15056. (s = a),
  15057. (a = e(o, 30)),
  15058. (o = r),
  15059. (r = l);
  15060. (c = (c + r) & 4294967295),
  15061. (h = (h + o) & 4294967295),
  15062. (d = (d + a) & 4294967295),
  15063. (p = (p + s) & 4294967295),
  15064. (y = (y + u) & 4294967295);
  15065. }
  15066. return (l = n(c) + n(h) + n(d) + n(p) + n(y)), l.toLowerCase();
  15067. }
  15068. function ye(t, e) {
  15069. return new n(t, e);
  15070. }
  15071. function me(t, e) {
  15072. if (e < t.length + 11)
  15073. throw 'Message too long for RSA (n=' + e + ', l=' + t.length + ')';
  15074. for (var i = [], r = t.length - 1; r >= 0 && e > 0;) {
  15075. var o = t.charCodeAt(r--);
  15076. o < 128
  15077. ? (i[--e] = o)
  15078. : o > 127 && o < 2048
  15079. ? ((i[--e] = (63 & o) | 128), (i[--e] = (o >> 6) | 192))
  15080. : ((i[--e] = (63 & o) | 128),
  15081. (i[--e] = ((o >> 6) & 63) | 128),
  15082. (i[--e] = (o >> 12) | 224));
  15083. }
  15084. for (i[--e] = 0, r = new he(), o = []; e > 2;) {
  15085. for (o[0] = 0; 0 == o[0];) r.nextBytes(o);
  15086. i[--e] = o[0];
  15087. }
  15088. return (i[--e] = 2), (i[--e] = 0), new n(i);
  15089. }
  15090. function ve() {
  15091. (this.n = null),
  15092. (this.e = 0),
  15093. (this.coeff = this.dmq1 = this.dmp1 = this.q = this.p = this.d = null);
  15094. }
  15095. function ge(t, e) {
  15096. null != t && null != e && t.length > 0 && e.length > 0
  15097. ? ((this.n = ye(t, 16)), (this.e = parseInt(e, 16)))
  15098. : alert('Invalid RSA public key');
  15099. }
  15100. function Se(t) {
  15101. return t.modPowInt(this.e, this.n);
  15102. }
  15103. function be(t) {
  15104. return (
  15105. (t = me(t, (this.n.bitLength() + 7) >> 3)),
  15106. null == t
  15107. ? null
  15108. : ((t = this.doPublic(t)),
  15109. null == t
  15110. ? null
  15111. : ((t = t.toString(16)), 0 == (1 & t.length) ? t : '0' + t))
  15112. );
  15113. }
  15114. function we(t, e) {
  15115. for (var n = t.toByteArray(), i = 0; i < n.length && 0 == n[i];) ++i;
  15116. if (n.length - i != e - 1 || 2 != n[i]) return null;
  15117. for (++i; 0 != n[i];) if (++i >= n.length) return null;
  15118. for (var r = ''; ++i < n.length;) {
  15119. var o = 255 & n[i];
  15120. o < 128
  15121. ? (r += String.fromCharCode(o))
  15122. : o > 191 && o < 224
  15123. ? ((r += String.fromCharCode(((31 & o) << 6) | (63 & n[i + 1]))),
  15124. ++i)
  15125. : ((r += String.fromCharCode(
  15126. ((15 & o) << 12) | ((63 & n[i + 1]) << 6) | (63 & n[i + 2])
  15127. )),
  15128. (i += 2));
  15129. }
  15130. return r;
  15131. }
  15132. function _e(t, e, n) {
  15133. null != t && null != e && t.length > 0 && e.length > 0
  15134. ? ((this.n = ye(t, 16)),
  15135. (this.e = parseInt(e, 16)),
  15136. (this.d = ye(n, 16)))
  15137. : alert('Invalid RSA private key');
  15138. }
  15139. function Pe(t, e, n, i, r, o, a, s) {
  15140. null != t && null != e && t.length > 0 && e.length > 0
  15141. ? ((this.n = ye(t, 16)),
  15142. (this.e = parseInt(e, 16)),
  15143. (this.d = ye(n, 16)),
  15144. (this.p = ye(i, 16)),
  15145. (this.q = ye(r, 16)),
  15146. (this.dmp1 = ye(o, 16)),
  15147. (this.dmq1 = ye(a, 16)),
  15148. (this.coeff = ye(s, 16)))
  15149. : alert('Invalid RSA private key');
  15150. }
  15151. function Ce(t, e) {
  15152. var i = new ne(),
  15153. r = t >> 1;
  15154. this.e = parseInt(e, 16);
  15155. for (var o = new n(e, 16); ;) {
  15156. for (
  15157. ;
  15158. (this.p = new n(t - r, 1, i)),
  15159. 0 !=
  15160. this.p
  15161. .subtract(n.ONE)
  15162. .gcd(o)
  15163. .compareTo(n.ONE) || !this.p.isProbablePrime(10);
  15164. ) ;
  15165. for (
  15166. ;
  15167. (this.q = new n(r, 1, i)),
  15168. 0 !=
  15169. this.q
  15170. .subtract(n.ONE)
  15171. .gcd(o)
  15172. .compareTo(n.ONE) || !this.q.isProbablePrime(10);
  15173. ) ;
  15174. if (this.p.compareTo(this.q) <= 0) {
  15175. var a = this.p;
  15176. (this.p = this.q), (this.q = a);
  15177. }
  15178. var a = this.p.subtract(n.ONE),
  15179. s = this.q.subtract(n.ONE),
  15180. u = a.multiply(s);
  15181. if (0 == u.gcd(o).compareTo(n.ONE)) {
  15182. (this.n = this.p.multiply(this.q)),
  15183. (this.d = o.modInverse(u)),
  15184. (this.dmp1 = this.d.mod(a)),
  15185. (this.dmq1 = this.d.mod(s)),
  15186. (this.coeff = this.q.modInverse(this.p));
  15187. break;
  15188. }
  15189. }
  15190. }
  15191. function xe(t) {
  15192. if (null == this.p || null == this.q) return t.modPow(this.d, this.n);
  15193. for (
  15194. var e = t.mod(this.p).modPow(this.dmp1, this.p),
  15195. t = t.mod(this.q).modPow(this.dmq1, this.q);
  15196. e.compareTo(t) < 0;
  15197. )
  15198. e = e.add(this.p);
  15199. return e
  15200. .subtract(t)
  15201. .multiply(this.coeff)
  15202. .mod(this.p)
  15203. .multiply(this.q)
  15204. .add(t);
  15205. }
  15206. function Te(t) {
  15207. return (
  15208. (t = this.doPrivate(ye(t, 16))),
  15209. null == t ? null : we(t, (this.n.bitLength() + 7) >> 3)
  15210. );
  15211. }
  15212. function ke(t, e, n) {
  15213. e /= 4;
  15214. for (
  15215. var t = (0, an[n])(t),
  15216. n = '00' + on[n] + t,
  15217. t = '',
  15218. e = e - 4 - n.length,
  15219. i = 0;
  15220. i < e;
  15221. i += 2
  15222. )
  15223. t += 'ff';
  15224. return (sPaddedMessageHex = '0001' + t + n);
  15225. }
  15226. function De(t, e) {
  15227. var n = ke(t, this.n.bitLength(), e);
  15228. return this.doPrivate(ye(n, 16)).toString(16);
  15229. }
  15230. function Me(t) {
  15231. return (
  15232. (t = ke(t, this.n.bitLength(), 'sha1')),
  15233. this.doPrivate(ye(t, 16)).toString(16)
  15234. );
  15235. }
  15236. function Re(t) {
  15237. return (
  15238. (t = ke(t, this.n.bitLength(), 'sha256')),
  15239. this.doPrivate(ye(t, 16)).toString(16)
  15240. );
  15241. }
  15242. function Ee(t, e, n) {
  15243. var i = new ve();
  15244. return i.setPublic(e, n), i.doPublic(t);
  15245. }
  15246. function ze(t, e, n) {
  15247. return Ee(t, e, n)
  15248. .toString(16)
  15249. .replace(/^1f+00/, '');
  15250. }
  15251. function Ie(t) {
  15252. for (var e in on) {
  15253. var n = on[e],
  15254. i = n.length;
  15255. if (t.substring(0, i) == n) return [e, t.substring(i)];
  15256. }
  15257. return [];
  15258. }
  15259. function Ae(t, e, n, i) {
  15260. return (
  15261. (e = ze(e, n, i)),
  15262. (n = Ie(e)),
  15263. 0 != n.length && ((e = n[1]), (t = (0, an[n[0]])(t)), e == t)
  15264. );
  15265. }
  15266. function Fe(t, e) {
  15267. var n = ye(t, 16);
  15268. return Ae(e, n, this.n.toString(16), this.e.toString(16));
  15269. }
  15270. function Oe(t, e) {
  15271. var e = e.replace(/[ \n]+/g, ''),
  15272. n = this.doPublic(ye(e, 16))
  15273. .toString(16)
  15274. .replace(/^1f+00/, ''),
  15275. i = Ie(n);
  15276. return 0 != i.length && ((n = i[1]), (i = (0, an[i[0]])(t)), n == i);
  15277. }
  15278. var Be,
  15279. Le =
  15280. 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
  15281. ? function (t) {
  15282. return typeof t;
  15283. }
  15284. : function (t) {
  15285. return t &&
  15286. 'function' == typeof Symbol &&
  15287. t.constructor === Symbol &&
  15288. t !== Symbol.prototype
  15289. ? 'symbol'
  15290. : typeof t;
  15291. },
  15292. Ne = {appName: 'Netscape', appVersion: 40},
  15293. qe = 0xdeadbeefcafe,
  15294. He = 15715070 == (16777215 & qe);
  15295. He && 'Microsoft Internet Explorer' == Ne.appName
  15296. ? ((n.prototype.am = a), (Be = 30))
  15297. : He && 'Netscape' != Ne.appName
  15298. ? ((n.prototype.am = o), (Be = 26))
  15299. : ((n.prototype.am = s), (Be = 28)),
  15300. (n.prototype.DB = Be),
  15301. (n.prototype.DM = (1 << Be) - 1),
  15302. (n.prototype.DV = 1 << Be);
  15303. var je = 52;
  15304. (n.prototype.FV = Math.pow(2, je)),
  15305. (n.prototype.F1 = je - Be),
  15306. (n.prototype.F2 = 2 * Be - je);
  15307. var We,
  15308. Ue,
  15309. Ge = '0123456789abcdefghijklmnopqrstuvwxyz',
  15310. Ve = [];
  15311. for (We = '0'.charCodeAt(0), Ue = 0; Ue <= 9; ++Ue) Ve[We++] = Ue;
  15312. for (We = 'a'.charCodeAt(0), Ue = 10; Ue < 36; ++Ue) Ve[We++] = Ue;
  15313. for (We = 'A'.charCodeAt(0), Ue = 10; Ue < 36; ++Ue) Ve[We++] = Ue;
  15314. (E.prototype.convert = z),
  15315. (E.prototype.revert = I),
  15316. (E.prototype.reduce = A),
  15317. (E.prototype.mulTo = F),
  15318. (E.prototype.sqrTo = O),
  15319. (L.prototype.convert = N),
  15320. (L.prototype.revert = q),
  15321. (L.prototype.reduce = H),
  15322. (L.prototype.mulTo = W),
  15323. (L.prototype.sqrTo = j),
  15324. (n.prototype.copyTo = f),
  15325. (n.prototype.fromInt = c),
  15326. (n.prototype.fromString = d),
  15327. (n.prototype.clamp = p),
  15328. (n.prototype.dlShiftTo = _),
  15329. (n.prototype.drShiftTo = P),
  15330. (n.prototype.lShiftTo = C),
  15331. (n.prototype.rShiftTo = x),
  15332. (n.prototype.subTo = T),
  15333. (n.prototype.multiplyTo = k),
  15334. (n.prototype.squareTo = D),
  15335. (n.prototype.divRemTo = M),
  15336. (n.prototype.invDigit = B),
  15337. (n.prototype.isEven = U),
  15338. (n.prototype.exp = G),
  15339. (n.prototype.toString = y),
  15340. (n.prototype.negate = m),
  15341. (n.prototype.abs = g),
  15342. (n.prototype.compareTo = S),
  15343. (n.prototype.bitLength = w),
  15344. (n.prototype.mod = R),
  15345. (n.prototype.modPowInt = V),
  15346. (n.ZERO = h(0)),
  15347. (n.ONE = h(1)),
  15348. (Bt.prototype.convert = Lt),
  15349. (Bt.prototype.revert = Lt),
  15350. (Bt.prototype.mulTo = Nt),
  15351. (Bt.prototype.sqrTo = qt),
  15352. (Ut.prototype.convert = Gt),
  15353. (Ut.prototype.revert = Vt),
  15354. (Ut.prototype.reduce = Yt),
  15355. (Ut.prototype.mulTo = Jt),
  15356. (Ut.prototype.sqrTo = Xt);
  15357. var Ye = [
  15358. 2,
  15359. 3,
  15360. 5,
  15361. 7,
  15362. 11,
  15363. 13,
  15364. 17,
  15365. 19,
  15366. 23,
  15367. 29,
  15368. 31,
  15369. 37,
  15370. 41,
  15371. 43,
  15372. 47,
  15373. 53,
  15374. 59,
  15375. 61,
  15376. 67,
  15377. 71,
  15378. 73,
  15379. 79,
  15380. 83,
  15381. 89,
  15382. 97,
  15383. 101,
  15384. 103,
  15385. 107,
  15386. 109,
  15387. 113,
  15388. 127,
  15389. 131,
  15390. 137,
  15391. 139,
  15392. 149,
  15393. 151,
  15394. 157,
  15395. 163,
  15396. 167,
  15397. 173,
  15398. 179,
  15399. 181,
  15400. 191,
  15401. 193,
  15402. 197,
  15403. 199,
  15404. 211,
  15405. 223,
  15406. 227,
  15407. 229,
  15408. 233,
  15409. 239,
  15410. 241,
  15411. 251,
  15412. 257,
  15413. 263,
  15414. 269,
  15415. 271,
  15416. 277,
  15417. 281,
  15418. 283,
  15419. 293,
  15420. 307,
  15421. 311,
  15422. 313,
  15423. 317,
  15424. 331,
  15425. 337,
  15426. 347,
  15427. 349,
  15428. 353,
  15429. 359,
  15430. 367,
  15431. 373,
  15432. 379,
  15433. 383,
  15434. 389,
  15435. 397,
  15436. 401,
  15437. 409,
  15438. 419,
  15439. 421,
  15440. 431,
  15441. 433,
  15442. 439,
  15443. 443,
  15444. 449,
  15445. 457,
  15446. 461,
  15447. 463,
  15448. 467,
  15449. 479,
  15450. 487,
  15451. 491,
  15452. 499,
  15453. 503,
  15454. 509,
  15455. 521,
  15456. 523,
  15457. 541,
  15458. 547,
  15459. 557,
  15460. 563,
  15461. 569,
  15462. 571,
  15463. 577,
  15464. 587,
  15465. 593,
  15466. 599,
  15467. 601,
  15468. 607,
  15469. 613,
  15470. 617,
  15471. 619,
  15472. 631,
  15473. 641,
  15474. 643,
  15475. 647,
  15476. 653,
  15477. 659,
  15478. 661,
  15479. 673,
  15480. 677,
  15481. 683,
  15482. 691,
  15483. 701,
  15484. 709,
  15485. 719,
  15486. 727,
  15487. 733,
  15488. 739,
  15489. 743,
  15490. 751,
  15491. 757,
  15492. 761,
  15493. 769,
  15494. 773,
  15495. 787,
  15496. 797,
  15497. 809,
  15498. 811,
  15499. 821,
  15500. 823,
  15501. 827,
  15502. 829,
  15503. 839,
  15504. 853,
  15505. 857,
  15506. 859,
  15507. 863,
  15508. 877,
  15509. 881,
  15510. 883,
  15511. 887,
  15512. 907,
  15513. 911,
  15514. 919,
  15515. 929,
  15516. 937,
  15517. 941,
  15518. 947,
  15519. 953,
  15520. 967,
  15521. 971,
  15522. 977,
  15523. 983,
  15524. 991,
  15525. 997,
  15526. ],
  15527. Xe = 67108864 / Ye[Ye.length - 1];
  15528. (n.prototype.chunkSize = K),
  15529. (n.prototype.toRadix = Q),
  15530. (n.prototype.fromRadix = tt),
  15531. (n.prototype.fromNumber = et),
  15532. (n.prototype.bitwiseTo = at),
  15533. (n.prototype.changeBit = Pt),
  15534. (n.prototype.addTo = kt),
  15535. (n.prototype.dMultiply = Ft),
  15536. (n.prototype.dAddOffset = Ot),
  15537. (n.prototype.multiplyLowerTo = jt),
  15538. (n.prototype.multiplyUpperTo = Wt),
  15539. (n.prototype.modInt = Zt),
  15540. (n.prototype.millerRabin = ee),
  15541. (n.prototype.clone = Y),
  15542. (n.prototype.intValue = X),
  15543. (n.prototype.byteValue = J),
  15544. (n.prototype.shortValue = $),
  15545. (n.prototype.signum = Z),
  15546. (n.prototype.toByteArray = nt),
  15547. (n.prototype.equals = it),
  15548. (n.prototype.min = rt),
  15549. (n.prototype.max = ot),
  15550. (n.prototype.and = ut),
  15551. (n.prototype.or = ft),
  15552. (n.prototype.xor = ht),
  15553. (n.prototype.andNot = pt),
  15554. (n.prototype.not = yt),
  15555. (n.prototype.shiftLeft = mt),
  15556. (n.prototype.shiftRight = vt),
  15557. (n.prototype.getLowestSetBit = St),
  15558. (n.prototype.bitCount = wt),
  15559. (n.prototype.testBit = _t),
  15560. (n.prototype.setBit = Ct),
  15561. (n.prototype.clearBit = xt),
  15562. (n.prototype.flipBit = Tt),
  15563. (n.prototype.add = Dt),
  15564. (n.prototype.subtract = Mt),
  15565. (n.prototype.multiply = Rt),
  15566. (n.prototype.divide = zt),
  15567. (n.prototype.remainder = It),
  15568. (n.prototype.divideAndRemainder = At),
  15569. (n.prototype.modPow = $t),
  15570. (n.prototype.modInverse = Qt),
  15571. (n.prototype.pow = Ht),
  15572. (n.prototype.gcd = Kt),
  15573. (n.prototype.isProbablePrime = te),
  15574. (n.prototype.square = Et),
  15575. (function (t, e, n, i, r, o, a) {
  15576. function s(t) {
  15577. var e,
  15578. i,
  15579. r = this,
  15580. o = t.length,
  15581. a = 0,
  15582. s = (r.i = r.j = r.m = 0);
  15583. for (r.S = [], r.c = [], o || (t = [o++]); a < n;) r.S[a] = a++;
  15584. for (a = 0; a < n; a++)
  15585. (e = r.S[a]),
  15586. (s = (s + e + t[a % o]) & (n - 1)),
  15587. (i = r.S[s]),
  15588. (r.S[a] = i),
  15589. (r.S[s] = e);
  15590. (r.g = function (t) {
  15591. var e = r.S,
  15592. i = (r.i + 1) & (n - 1),
  15593. o = e[i],
  15594. a = (r.j + o) & (n - 1),
  15595. s = e[a];
  15596. (e[i] = s), (e[a] = o);
  15597. for (var u = e[(o + s) & (n - 1)]; --t;)
  15598. (i = (i + 1) & (n - 1)),
  15599. (o = e[i]),
  15600. (a = (a + o) & (n - 1)),
  15601. (s = e[a]),
  15602. (e[i] = s),
  15603. (e[a] = o),
  15604. (u = u * n + e[(o + s) & (n - 1)]);
  15605. return (r.i = i), (r.j = a), u;
  15606. }),
  15607. r.g(n);
  15608. }
  15609. function u(t, e, n, i, r) {
  15610. if (
  15611. ((n = []),
  15612. (r = 'undefined' == typeof t ? 'undefined' : Le(t)),
  15613. e && 'object' == r)
  15614. )
  15615. for (i in t)
  15616. if (i.indexOf('S') < 5)
  15617. try {
  15618. n.push(u(t[i], e - 1));
  15619. } catch (t) {
  15620. }
  15621. return n.length ? n : t + ('string' != r ? '\0' : '');
  15622. }
  15623. function l(t, e, i, r) {
  15624. for (t += '', r = i = 0; r < t.length; r++) {
  15625. var o = e,
  15626. a = r & (n - 1),
  15627. s = (i ^= 19 * e[r & (n - 1)]) + t.charCodeAt(r);
  15628. o[a] = s & (n - 1);
  15629. }
  15630. t = '';
  15631. for (r in e) t += String.fromCharCode(e[r]);
  15632. return t;
  15633. }
  15634. (e.seedrandom = function (f, c) {
  15635. var h,
  15636. d = [],
  15637. f = l(
  15638. u(
  15639. c
  15640. ? [f, t]
  15641. : arguments.length
  15642. ? f
  15643. : [new Date().getTime(), t, window],
  15644. 3
  15645. ),
  15646. d
  15647. );
  15648. return (
  15649. (h = new s(d)),
  15650. l(h.S, t),
  15651. (e.random = function () {
  15652. for (var t = h.g(i), e = a, s = 0; t < r;)
  15653. (t = (t + s) * n), (e *= n), (s = h.g(1));
  15654. for (; t >= o;) (t /= 2), (e /= 2), (s >>>= 1);
  15655. return (t + s) / e;
  15656. }),
  15657. f
  15658. );
  15659. }),
  15660. (a = e.pow(n, i)),
  15661. (r = e.pow(2, r)),
  15662. (o = 2 * r),
  15663. l(e.random(), t);
  15664. })([], Math, 256, 6, 52),
  15665. (ne.prototype.nextBytes = ie),
  15666. (re.prototype.init = oe),
  15667. (re.prototype.next = ae);
  15668. var Je,
  15669. $e,
  15670. Ke,
  15671. Ze = 256;
  15672. if (null == $e) {
  15673. ($e = []), (Ke = 0);
  15674. var Qe;
  15675. if ('Netscape' == Ne.appName && Ne.appVersion < '5' && window.crypto) {
  15676. var tn = window.crypto.random(32);
  15677. for (Qe = 0; Qe < tn.length; ++Qe) $e[Ke++] = 255 & tn.charCodeAt(Qe);
  15678. }
  15679. for (; Ke < Ze;)
  15680. (Qe = Math.floor(65536 * Math.random())),
  15681. ($e[Ke++] = Qe >>> 8),
  15682. ($e[Ke++] = 255 & Qe);
  15683. (Ke = 0), le();
  15684. }
  15685. he.prototype.nextBytes = ce;
  15686. var en = {
  15687. hex: function (t) {
  15688. return de(t);
  15689. },
  15690. },
  15691. nn = {
  15692. hex: function (t) {
  15693. return pe(t);
  15694. },
  15695. },
  15696. rn = function (t) {
  15697. function e(t, e) {
  15698. var n, i, r, o, a;
  15699. return (
  15700. (r = 2147483648 & t),
  15701. (o = 2147483648 & e),
  15702. (n = 1073741824 & t),
  15703. (i = 1073741824 & e),
  15704. (a = (1073741823 & t) + (1073741823 & e)),
  15705. n & i
  15706. ? 2147483648 ^ a ^ r ^ o
  15707. : n | i
  15708. ? 1073741824 & a
  15709. ? 3221225472 ^ a ^ r ^ o
  15710. : 1073741824 ^ a ^ r ^ o
  15711. : a ^ r ^ o
  15712. );
  15713. }
  15714. function n(t, n, i, r, o, a, s) {
  15715. return (
  15716. (t = e(t, e(e((n & i) | (~n & r), o), s))),
  15717. e((t << a) | (t >>> (32 - a)), n)
  15718. );
  15719. }
  15720. function i(t, n, i, r, o, a, s) {
  15721. return (
  15722. (t = e(t, e(e((n & r) | (i & ~r), o), s))),
  15723. e((t << a) | (t >>> (32 - a)), n)
  15724. );
  15725. }
  15726. function r(t, n, i, r, o, a, s) {
  15727. return (
  15728. (t = e(t, e(e(n ^ i ^ r, o), s))),
  15729. e((t << a) | (t >>> (32 - a)), n)
  15730. );
  15731. }
  15732. function o(t, n, i, r, o, a, s) {
  15733. return (
  15734. (t = e(t, e(e(i ^ (n | ~r), o), s))),
  15735. e((t << a) | (t >>> (32 - a)), n)
  15736. );
  15737. }
  15738. function a(t) {
  15739. var e,
  15740. n = '',
  15741. i = '';
  15742. for (e = 0; e <= 3; e++)
  15743. (i = (t >>> (8 * e)) & 255),
  15744. (i = '0' + i.toString(16)),
  15745. (n += i.substr(i.length - 2, 2));
  15746. return n;
  15747. }
  15748. var s,
  15749. u,
  15750. l,
  15751. f,
  15752. c,
  15753. h,
  15754. d,
  15755. p,
  15756. y = [],
  15757. t = (function (t) {
  15758. for (
  15759. var t = t.replace(/\r\n/g, '\n'), e = '', n = 0;
  15760. n < t.length;
  15761. n++
  15762. ) {
  15763. var i = t.charCodeAt(n);
  15764. i < 128
  15765. ? (e += String.fromCharCode(i))
  15766. : (i > 127 && i < 2048
  15767. ? (e += String.fromCharCode((i >> 6) | 192))
  15768. : ((e += String.fromCharCode((i >> 12) | 224)),
  15769. (e += String.fromCharCode(((i >> 6) & 63) | 128))),
  15770. (e += String.fromCharCode((63 & i) | 128)));
  15771. }
  15772. return e;
  15773. })(t),
  15774. y = (function (t) {
  15775. var e,
  15776. n = t.length;
  15777. e = n + 8;
  15778. for (
  15779. var i = 16 * ((e - e % 64) / 64 + 1),
  15780. r = Array(i - 1),
  15781. o = 0,
  15782. a = 0;
  15783. a < n;
  15784. )
  15785. (e = (a - a % 4) / 4),
  15786. (o = (a % 4) * 8),
  15787. (r[e] |= t.charCodeAt(a) << o),
  15788. a++;
  15789. return (
  15790. (r[(a - a % 4) / 4] |= 128 << ((a % 4) * 8)),
  15791. (r[i - 2] = n << 3),
  15792. (r[i - 1] = n >>> 29),
  15793. r
  15794. );
  15795. })(t);
  15796. for (
  15797. c = 1732584193,
  15798. h = 4023233417,
  15799. d = 2562383102,
  15800. p = 271733878,
  15801. t = 0;
  15802. t < y.length;
  15803. t += 16
  15804. )
  15805. (s = c),
  15806. (u = h),
  15807. (l = d),
  15808. (f = p),
  15809. (c = n(c, h, d, p, y[t + 0], 7, 3614090360)),
  15810. (p = n(p, c, h, d, y[t + 1], 12, 3905402710)),
  15811. (d = n(d, p, c, h, y[t + 2], 17, 606105819)),
  15812. (h = n(h, d, p, c, y[t + 3], 22, 3250441966)),
  15813. (c = n(c, h, d, p, y[t + 4], 7, 4118548399)),
  15814. (p = n(p, c, h, d, y[t + 5], 12, 1200080426)),
  15815. (d = n(d, p, c, h, y[t + 6], 17, 2821735955)),
  15816. (h = n(h, d, p, c, y[t + 7], 22, 4249261313)),
  15817. (c = n(c, h, d, p, y[t + 8], 7, 1770035416)),
  15818. (p = n(p, c, h, d, y[t + 9], 12, 2336552879)),
  15819. (d = n(d, p, c, h, y[t + 10], 17, 4294925233)),
  15820. (h = n(h, d, p, c, y[t + 11], 22, 2304563134)),
  15821. (c = n(c, h, d, p, y[t + 12], 7, 1804603682)),
  15822. (p = n(p, c, h, d, y[t + 13], 12, 4254626195)),
  15823. (d = n(d, p, c, h, y[t + 14], 17, 2792965006)),
  15824. (h = n(h, d, p, c, y[t + 15], 22, 1236535329)),
  15825. (c = i(c, h, d, p, y[t + 1], 5, 4129170786)),
  15826. (p = i(p, c, h, d, y[t + 6], 9, 3225465664)),
  15827. (d = i(d, p, c, h, y[t + 11], 14, 643717713)),
  15828. (h = i(h, d, p, c, y[t + 0], 20, 3921069994)),
  15829. (c = i(c, h, d, p, y[t + 5], 5, 3593408605)),
  15830. (p = i(p, c, h, d, y[t + 10], 9, 38016083)),
  15831. (d = i(d, p, c, h, y[t + 15], 14, 3634488961)),
  15832. (h = i(h, d, p, c, y[t + 4], 20, 3889429448)),
  15833. (c = i(c, h, d, p, y[t + 9], 5, 568446438)),
  15834. (p = i(p, c, h, d, y[t + 14], 9, 3275163606)),
  15835. (d = i(d, p, c, h, y[t + 3], 14, 4107603335)),
  15836. (h = i(h, d, p, c, y[t + 8], 20, 1163531501)),
  15837. (c = i(c, h, d, p, y[t + 13], 5, 2850285829)),
  15838. (p = i(p, c, h, d, y[t + 2], 9, 4243563512)),
  15839. (d = i(d, p, c, h, y[t + 7], 14, 1735328473)),
  15840. (h = i(h, d, p, c, y[t + 12], 20, 2368359562)),
  15841. (c = r(c, h, d, p, y[t + 5], 4, 4294588738)),
  15842. (p = r(p, c, h, d, y[t + 8], 11, 2272392833)),
  15843. (d = r(d, p, c, h, y[t + 11], 16, 1839030562)),
  15844. (h = r(h, d, p, c, y[t + 14], 23, 4259657740)),
  15845. (c = r(c, h, d, p, y[t + 1], 4, 2763975236)),
  15846. (p = r(p, c, h, d, y[t + 4], 11, 1272893353)),
  15847. (d = r(d, p, c, h, y[t + 7], 16, 4139469664)),
  15848. (h = r(h, d, p, c, y[t + 10], 23, 3200236656)),
  15849. (c = r(c, h, d, p, y[t + 13], 4, 681279174)),
  15850. (p = r(p, c, h, d, y[t + 0], 11, 3936430074)),
  15851. (d = r(d, p, c, h, y[t + 3], 16, 3572445317)),
  15852. (h = r(h, d, p, c, y[t + 6], 23, 76029189)),
  15853. (c = r(c, h, d, p, y[t + 9], 4, 3654602809)),
  15854. (p = r(p, c, h, d, y[t + 12], 11, 3873151461)),
  15855. (d = r(d, p, c, h, y[t + 15], 16, 530742520)),
  15856. (h = r(h, d, p, c, y[t + 2], 23, 3299628645)),
  15857. (c = o(c, h, d, p, y[t + 0], 6, 4096336452)),
  15858. (p = o(p, c, h, d, y[t + 7], 10, 1126891415)),
  15859. (d = o(d, p, c, h, y[t + 14], 15, 2878612391)),
  15860. (h = o(h, d, p, c, y[t + 5], 21, 4237533241)),
  15861. (c = o(c, h, d, p, y[t + 12], 6, 1700485571)),
  15862. (p = o(p, c, h, d, y[t + 3], 10, 2399980690)),
  15863. (d = o(d, p, c, h, y[t + 10], 15, 4293915773)),
  15864. (h = o(h, d, p, c, y[t + 1], 21, 2240044497)),
  15865. (c = o(c, h, d, p, y[t + 8], 6, 1873313359)),
  15866. (p = o(p, c, h, d, y[t + 15], 10, 4264355552)),
  15867. (d = o(d, p, c, h, y[t + 6], 15, 2734768916)),
  15868. (h = o(h, d, p, c, y[t + 13], 21, 1309151649)),
  15869. (c = o(c, h, d, p, y[t + 4], 6, 4149444226)),
  15870. (p = o(p, c, h, d, y[t + 11], 10, 3174756917)),
  15871. (d = o(d, p, c, h, y[t + 2], 15, 718787259)),
  15872. (h = o(h, d, p, c, y[t + 9], 21, 3951481745)),
  15873. (c = e(c, s)),
  15874. (h = e(h, u)),
  15875. (d = e(d, l)),
  15876. (p = e(p, f));
  15877. return (a(c) + a(h) + a(d) + a(p)).toLowerCase();
  15878. };
  15879. (ve.prototype.doPublic = Se),
  15880. (ve.prototype.setPublic = ge),
  15881. (ve.prototype.encrypt = be),
  15882. (ve.prototype.doPrivate = xe),
  15883. (ve.prototype.setPrivate = _e),
  15884. (ve.prototype.setPrivateEx = Pe),
  15885. (ve.prototype.generate = Ce),
  15886. (ve.prototype.decrypt = Te);
  15887. var on = [];
  15888. (on.sha1 = '3021300906052b0e03021a05000414'),
  15889. (on.sha256 = '3031300d060960864801650304020105000420');
  15890. var an = [];
  15891. (an.sha1 = nn.hex),
  15892. (an.sha256 = en.hex),
  15893. (ve.prototype.signString = De),
  15894. (ve.prototype.signStringWithSHA1 = Me),
  15895. (ve.prototype.signStringWithSHA256 = Re),
  15896. (ve.prototype.verifyString = Oe),
  15897. (ve.prototype.verifyHexSignatureForMessage = Fe);
  15898. var sn = (function () {
  15899. var t = {
  15900. Sbox: [
  15901. 99,
  15902. 124,
  15903. 119,
  15904. 123,
  15905. 242,
  15906. 107,
  15907. 111,
  15908. 197,
  15909. 48,
  15910. 1,
  15911. 103,
  15912. 43,
  15913. 254,
  15914. 215,
  15915. 171,
  15916. 118,
  15917. 202,
  15918. 130,
  15919. 201,
  15920. 125,
  15921. 250,
  15922. 89,
  15923. 71,
  15924. 240,
  15925. 173,
  15926. 212,
  15927. 162,
  15928. 175,
  15929. 156,
  15930. 164,
  15931. 114,
  15932. 192,
  15933. 183,
  15934. 253,
  15935. 147,
  15936. 38,
  15937. 54,
  15938. 63,
  15939. 247,
  15940. 204,
  15941. 52,
  15942. 165,
  15943. 229,
  15944. 241,
  15945. 113,
  15946. 216,
  15947. 49,
  15948. 21,
  15949. 4,
  15950. 199,
  15951. 35,
  15952. 195,
  15953. 24,
  15954. 150,
  15955. 5,
  15956. 154,
  15957. 7,
  15958. 18,
  15959. 128,
  15960. 226,
  15961. 235,
  15962. 39,
  15963. 178,
  15964. 117,
  15965. 9,
  15966. 131,
  15967. 44,
  15968. 26,
  15969. 27,
  15970. 110,
  15971. 90,
  15972. 160,
  15973. 82,
  15974. 59,
  15975. 214,
  15976. 179,
  15977. 41,
  15978. 227,
  15979. 47,
  15980. 132,
  15981. 83,
  15982. 209,
  15983. 0,
  15984. 237,
  15985. 32,
  15986. 252,
  15987. 177,
  15988. 91,
  15989. 106,
  15990. 203,
  15991. 190,
  15992. 57,
  15993. 74,
  15994. 76,
  15995. 88,
  15996. 207,
  15997. 208,
  15998. 239,
  15999. 170,
  16000. 251,
  16001. 67,
  16002. 77,
  16003. 51,
  16004. 133,
  16005. 69,
  16006. 249,
  16007. 2,
  16008. 127,
  16009. 80,
  16010. 60,
  16011. 159,
  16012. 168,
  16013. 81,
  16014. 163,
  16015. 64,
  16016. 143,
  16017. 146,
  16018. 157,
  16019. 56,
  16020. 245,
  16021. 188,
  16022. 182,
  16023. 218,
  16024. 33,
  16025. 16,
  16026. 255,
  16027. 243,
  16028. 210,
  16029. 205,
  16030. 12,
  16031. 19,
  16032. 236,
  16033. 95,
  16034. 151,
  16035. 68,
  16036. 23,
  16037. 196,
  16038. 167,
  16039. 126,
  16040. 61,
  16041. 100,
  16042. 93,
  16043. 25,
  16044. 115,
  16045. 96,
  16046. 129,
  16047. 79,
  16048. 220,
  16049. 34,
  16050. 42,
  16051. 144,
  16052. 136,
  16053. 70,
  16054. 238,
  16055. 184,
  16056. 20,
  16057. 222,
  16058. 94,
  16059. 11,
  16060. 219,
  16061. 224,
  16062. 50,
  16063. 58,
  16064. 10,
  16065. 73,
  16066. 6,
  16067. 36,
  16068. 92,
  16069. 194,
  16070. 211,
  16071. 172,
  16072. 98,
  16073. 145,
  16074. 149,
  16075. 228,
  16076. 121,
  16077. 231,
  16078. 200,
  16079. 55,
  16080. 109,
  16081. 141,
  16082. 213,
  16083. 78,
  16084. 169,
  16085. 108,
  16086. 86,
  16087. 244,
  16088. 234,
  16089. 101,
  16090. 122,
  16091. 174,
  16092. 8,
  16093. 186,
  16094. 120,
  16095. 37,
  16096. 46,
  16097. 28,
  16098. 166,
  16099. 180,
  16100. 198,
  16101. 232,
  16102. 221,
  16103. 116,
  16104. 31,
  16105. 75,
  16106. 189,
  16107. 139,
  16108. 138,
  16109. 112,
  16110. 62,
  16111. 181,
  16112. 102,
  16113. 72,
  16114. 3,
  16115. 246,
  16116. 14,
  16117. 97,
  16118. 53,
  16119. 87,
  16120. 185,
  16121. 134,
  16122. 193,
  16123. 29,
  16124. 158,
  16125. 225,
  16126. 248,
  16127. 152,
  16128. 17,
  16129. 105,
  16130. 217,
  16131. 142,
  16132. 148,
  16133. 155,
  16134. 30,
  16135. 135,
  16136. 233,
  16137. 206,
  16138. 85,
  16139. 40,
  16140. 223,
  16141. 140,
  16142. 161,
  16143. 137,
  16144. 13,
  16145. 191,
  16146. 230,
  16147. 66,
  16148. 104,
  16149. 65,
  16150. 153,
  16151. 45,
  16152. 15,
  16153. 176,
  16154. 84,
  16155. 187,
  16156. 22,
  16157. ],
  16158. ShiftRowTab: [0, 5, 10, 15, 4, 9, 14, 3, 8, 13, 2, 7, 12, 1, 6, 11],
  16159. };
  16160. return (
  16161. (t.Init = function () {
  16162. t.Sbox_Inv = Array(256);
  16163. for (var e = 0; e < 256; e++) t.Sbox_Inv[t.Sbox[e]] = e;
  16164. for (t.ShiftRowTab_Inv = Array(16), e = 0; e < 16; e++)
  16165. t.ShiftRowTab_Inv[t.ShiftRowTab[e]] = e;
  16166. for (t.xtime = Array(256), e = 0; e < 128; e++)
  16167. (t.xtime[e] = e << 1), (t.xtime[128 + e] = (e << 1) ^ 27);
  16168. }),
  16169. (t.Done = function () {
  16170. delete t.Sbox_Inv, delete t.ShiftRowTab_Inv, delete t.xtime;
  16171. }),
  16172. (t.ExpandKey = function (e) {
  16173. var n,
  16174. i = e.length,
  16175. r = 1;
  16176. switch (i) {
  16177. case 16:
  16178. n = 176;
  16179. break;
  16180. case 24:
  16181. n = 208;
  16182. break;
  16183. case 32:
  16184. n = 240;
  16185. break;
  16186. default:
  16187. alert(
  16188. 'my.ExpandKey: Only key lengths of 16, 24 or 32 bytes allowed!'
  16189. );
  16190. }
  16191. for (var o = i; o < n; o += 4) {
  16192. var a = e.slice(o - 4, o);
  16193. o % i == 0
  16194. ? ((a = [
  16195. t.Sbox[a[1]] ^ r,
  16196. t.Sbox[a[2]],
  16197. t.Sbox[a[3]],
  16198. t.Sbox[a[0]],
  16199. ]),
  16200. (r <<= 1) >= 256 && (r ^= 283))
  16201. : i > 24 &&
  16202. o % i == 16 &&
  16203. (a = [
  16204. t.Sbox[a[0]],
  16205. t.Sbox[a[1]],
  16206. t.Sbox[a[2]],
  16207. t.Sbox[a[3]],
  16208. ]);
  16209. for (var s = 0; s < 4; s++) e[o + s] = e[o + s - i] ^ a[s];
  16210. }
  16211. }),
  16212. (t.Encrypt = function (e, n) {
  16213. var i = n.length;
  16214. t.AddRoundKey(e, n.slice(0, 16));
  16215. for (var r = 16; r < i - 16; r += 16)
  16216. t.SubBytes(e, t.Sbox),
  16217. t.ShiftRows(e, t.ShiftRowTab),
  16218. t.MixColumns(e),
  16219. t.AddRoundKey(e, n.slice(r, r + 16));
  16220. t.SubBytes(e, t.Sbox),
  16221. t.ShiftRows(e, t.ShiftRowTab),
  16222. t.AddRoundKey(e, n.slice(r, i));
  16223. }),
  16224. (t.Decrypt = function (e, n) {
  16225. var i = n.length;
  16226. for (
  16227. t.AddRoundKey(e, n.slice(i - 16, i)),
  16228. t.ShiftRows(e, t.ShiftRowTab_Inv),
  16229. t.SubBytes(e, t.Sbox_Inv),
  16230. i -= 32;
  16231. i >= 16;
  16232. i -= 16
  16233. )
  16234. t.AddRoundKey(e, n.slice(i, i + 16)),
  16235. t.MixColumns_Inv(e),
  16236. t.ShiftRows(e, t.ShiftRowTab_Inv),
  16237. t.SubBytes(e, t.Sbox_Inv);
  16238. t.AddRoundKey(e, n.slice(0, 16));
  16239. }),
  16240. (t.SubBytes = function (t, e) {
  16241. for (var n = 0; n < 16; n++) t[n] = e[t[n]];
  16242. }),
  16243. (t.AddRoundKey = function (t, e) {
  16244. for (var n = 0; n < 16; n++) t[n] ^= e[n];
  16245. }),
  16246. (t.ShiftRows = function (t, e) {
  16247. for (var n = [].concat(t), i = 0; i < 16; i++) t[i] = n[e[i]];
  16248. }),
  16249. (t.MixColumns = function (e) {
  16250. for (var n = 0; n < 16; n += 4) {
  16251. var i = e[n + 0],
  16252. r = e[n + 1],
  16253. o = e[n + 2],
  16254. a = e[n + 3],
  16255. s = i ^ r ^ o ^ a;
  16256. (e[n + 0] ^= s ^ t.xtime[i ^ r]),
  16257. (e[n + 1] ^= s ^ t.xtime[r ^ o]),
  16258. (e[n + 2] ^= s ^ t.xtime[o ^ a]),
  16259. (e[n + 3] ^= s ^ t.xtime[a ^ i]);
  16260. }
  16261. }),
  16262. (t.MixColumns_Inv = function (e) {
  16263. for (var n = 0; n < 16; n += 4) {
  16264. var i = e[n + 0],
  16265. r = e[n + 1],
  16266. o = e[n + 2],
  16267. a = e[n + 3],
  16268. s = i ^ r ^ o ^ a,
  16269. u = t.xtime[s],
  16270. l = t.xtime[t.xtime[u ^ i ^ o]] ^ s;
  16271. (s ^= t.xtime[t.xtime[u ^ r ^ a]]),
  16272. (e[n + 0] ^= l ^ t.xtime[i ^ r]),
  16273. (e[n + 1] ^= s ^ t.xtime[r ^ o]),
  16274. (e[n + 2] ^= l ^ t.xtime[o ^ a]),
  16275. (e[n + 3] ^= s ^ t.xtime[a ^ i]);
  16276. }
  16277. }),
  16278. t
  16279. );
  16280. })(),
  16281. un = (function () {
  16282. var t = {};
  16283. return (
  16284. sn.Init(),
  16285. (t.b256to64 = function (t) {
  16286. var e,
  16287. n,
  16288. i,
  16289. r = '',
  16290. o = 0,
  16291. a = 0,
  16292. s = t.length;
  16293. for (i = 0; i < s; i++)
  16294. (n = t.charCodeAt(i)),
  16295. 0 == a
  16296. ? ((r += 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.charAt(
  16297. (n >> 2) & 63
  16298. )),
  16299. (e = (3 & n) << 4))
  16300. : 1 == a
  16301. ? ((r += 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.charAt(
  16302. e | ((n >> 4) & 15)
  16303. )),
  16304. (e = (15 & n) << 2))
  16305. : 2 == a &&
  16306. ((r += 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.charAt(
  16307. e | ((n >> 6) & 3)
  16308. )),
  16309. (o += 1),
  16310. (r += 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.charAt(
  16311. 63 & n
  16312. ))),
  16313. (o += 1),
  16314. (a += 1),
  16315. 3 == a && (a = 0);
  16316. return (
  16317. a > 0 &&
  16318. ((r += 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.charAt(
  16319. e
  16320. )),
  16321. (r += '=')),
  16322. 1 == a && (r += '='),
  16323. r
  16324. );
  16325. }),
  16326. (t.b64to256 = function (t) {
  16327. var e,
  16328. n,
  16329. i = '',
  16330. r = 0,
  16331. o = 0,
  16332. a = t.length;
  16333. for (n = 0; n < a; n++)
  16334. (e = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.indexOf(
  16335. t.charAt(n)
  16336. )),
  16337. e >= 0 &&
  16338. (r &&
  16339. (i += String.fromCharCode(o | ((e >> (6 - r)) & 255))),
  16340. (r = (r + 2) & 7),
  16341. (o = (e << r) & 255));
  16342. return i;
  16343. }),
  16344. (t.b16to64 = function (t) {
  16345. var e,
  16346. n,
  16347. i = '';
  16348. for (
  16349. t.length % 2 == 1 && (t = '0' + t), e = 0;
  16350. e + 3 <= t.length;
  16351. e += 3
  16352. )
  16353. (n = parseInt(t.substring(e, e + 3), 16)),
  16354. (i +=
  16355. 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.charAt(
  16356. n >> 6
  16357. ) +
  16358. 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.charAt(
  16359. 63 & n
  16360. ));
  16361. for (
  16362. e + 1 == t.length
  16363. ? ((n = parseInt(t.substring(e, e + 1), 16)),
  16364. (i += 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.charAt(
  16365. n << 2
  16366. )))
  16367. : e + 2 == t.length &&
  16368. ((n = parseInt(t.substring(e, e + 2), 16)),
  16369. (i +=
  16370. 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.charAt(
  16371. n >> 2
  16372. ) +
  16373. 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.charAt(
  16374. (3 & n) << 4
  16375. )));
  16376. (3 & i.length) > 0;
  16377. )
  16378. i += '=';
  16379. return i;
  16380. }),
  16381. (t.b64to16 = function (t) {
  16382. var e,
  16383. n,
  16384. i = '',
  16385. r = 0;
  16386. for (e = 0; e < t.length && '=' != t.charAt(e); ++e)
  16387. (v = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.indexOf(
  16388. t.charAt(e)
  16389. )),
  16390. v < 0 ||
  16391. (0 == r
  16392. ? ((i += u(v >> 2)), (n = 3 & v), (r = 1))
  16393. : 1 == r
  16394. ? ((i += u((n << 2) | (v >> 4))), (n = 15 & v), (r = 2))
  16395. : 2 == r
  16396. ? ((i += u(n)),
  16397. (i += u(v >> 2)),
  16398. (n = 3 & v),
  16399. (r = 3))
  16400. : ((i += u((n << 2) | (v >> 4))),
  16401. (i += u(15 & v)),
  16402. (r = 0)));
  16403. return 1 == r && (i += u(n << 2)), i;
  16404. }),
  16405. (t.string2bytes = function (t) {
  16406. for (var e = [], n = 0; n < t.length; n++)
  16407. e.push(t.charCodeAt(n));
  16408. return e;
  16409. }),
  16410. (t.bytes2string = function (t) {
  16411. for (var e = '', n = 0; n < t.length; n++)
  16412. e += String.fromCharCode(t[n]);
  16413. return e;
  16414. }),
  16415. (t.blockXOR = function (t, e) {
  16416. for (var n = Array(16), i = 0; i < 16; i++) n[i] = t[i] ^ e[i];
  16417. return n;
  16418. }),
  16419. (t.blockIV = function () {
  16420. var t = new he(),
  16421. e = Array(16);
  16422. return t.nextBytes(e), e;
  16423. }),
  16424. (t.pad16 = function (t) {
  16425. var e = t.slice(0),
  16426. n = (16 - t.length % 16) % 16;
  16427. for (i = t.length; i < t.length + n; i++) e.push(0);
  16428. return e;
  16429. }),
  16430. (t.depad = function (t) {
  16431. for (t = t.slice(0); 0 == t[t.length - 1];)
  16432. t = t.slice(0, t.length - 1);
  16433. return t;
  16434. }),
  16435. (t.encryptAESCBC = function (e, n) {
  16436. var i = n.slice(0);
  16437. sn.ExpandKey(i);
  16438. for (
  16439. var r = t.string2bytes(e),
  16440. r = t.pad16(r),
  16441. o = t.blockIV(),
  16442. a = 0;
  16443. a < r.length / 16;
  16444. a++
  16445. ) {
  16446. var s = r.slice(16 * a, 16 * a + 16),
  16447. u = o.slice(16 * a, 16 * a + 16),
  16448. s = t.blockXOR(u, s);
  16449. sn.Encrypt(s, i), (o = o.concat(s));
  16450. }
  16451. return (i = t.bytes2string(o)), t.b256to64(i);
  16452. }),
  16453. (t.decryptAESCBC = function (e, n) {
  16454. var i = n.slice(0);
  16455. sn.ExpandKey(i);
  16456. for (
  16457. var e = t.b64to256(e), r = t.string2bytes(e), o = [], a = 1;
  16458. a < r.length / 16;
  16459. a++
  16460. ) {
  16461. var s = r.slice(16 * a, 16 * a + 16),
  16462. u = r.slice(16 * (a - 1), 16 * (a - 1) + 16);
  16463. sn.Decrypt(s, i), (s = t.blockXOR(u, s)), (o = o.concat(s));
  16464. }
  16465. return (o = t.depad(o)), t.bytes2string(o);
  16466. }),
  16467. (t.wrap60 = function (t) {
  16468. for (var e = '', n = 0; n < t.length; n++)
  16469. n % 60 == 0 && 0 != n && (e += '\n'), (e += t[n]);
  16470. return e;
  16471. }),
  16472. (t.generateAESKey = function () {
  16473. var t = Array(16);
  16474. return new he().nextBytes(t), t;
  16475. }),
  16476. (t.generateRSAKey = function (t, e) {
  16477. Math.seedrandom(en.hex(t));
  16478. var n = new ve();
  16479. return n.generate(e, '10001'), n;
  16480. }),
  16481. (t.publicKeyString = function (t) {
  16482. return (pubkey = t.n.toString(16));
  16483. }),
  16484. (t.publicKeyID = function (t) {
  16485. return rn(t);
  16486. }),
  16487. (t.publicKeyFromString = function (t) {
  16488. var t = t.split('|')[0],
  16489. e = new ve();
  16490. return e.setPublic(t, '10001'), e;
  16491. }),
  16492. (t.encrypt = function (e, n, i) {
  16493. var r = '';
  16494. try {
  16495. var o = t.publicKeyFromString(n);
  16496. r += o.encrypt(e) + '?';
  16497. } catch (t) {
  16498. return {status: 'Invalid public key'};
  16499. }
  16500. return {status: 'success', cipher: r};
  16501. }),
  16502. (t.decrypt = function (t, e) {
  16503. var n = t.split('?'),
  16504. i = e.decrypt(n[0]);
  16505. return {status: 'success', plaintext: i, signature: 'unsigned'};
  16506. }),
  16507. t
  16508. );
  16509. })();
  16510. t.exports = un;
  16511. },
  16512. ]);
  16513. });