index-legacy-42b65013-1694098095353.js 784 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210
  1. System.register(
  2. [
  3. './index-legacy-04533e6e-1694098095353.js',
  4. './teacherIcon-legacy-3eeb62c3-1694098095353.js',
  5. './forgotPassword-legacy-0c517833-1694098095353.js',
  6. './index-legacy-d61abab3-1694098095353.js',
  7. './index-legacy-7d8c0107-1694098095353.js',
  8. './index-legacy-e9320af5-1694098095353.js',
  9. './urlUtils-legacy-b652a21b-1694098095353.js',
  10. './updateSubject-legacy-3c70af7f-1694098095353.js',
  11. './index-legacy-66855e82-1694098095353.js',
  12. './api-legacy-bed2534a-1694098095353.js',
  13. './api-legacy-a91d4324-1694098095353.js',
  14. './contants-legacy-c5f4fb84-1694098095353.js',
  15. './Slider-legacy-59524740-1694098095353.js',
  16. './index-legacy-d0590c68-1694098095353.js',
  17. './isCollaose-legacy-4c1d1162-1694098095353.js',
  18. './index-legacy-53c5d0a1-1694098095353.js',
  19. './index-legacy-7e9eb8b4-1694098095353.js',
  20. './index-legacy-b8a20645-1694098095353.js',
  21. './index-legacy-74685ae1-1694098095353.js',
  22. './catchData-legacy-74259154-1694098095353.js',
  23. './index-legacy-f9a6e3f8-1694098095353.js',
  24. './ding-legacy-f3656c17-1694098095353.js',
  25. './state-legacy-d6bde451-1694098095353.js',
  26. './index.module-legacy-f2b0f9bd-1694098095353.js',
  27. './api-legacy-e5a28f94-1694098095353.js',
  28. './index-legacy-875aab19-1694098095353.js'
  29. ],
  30. function (t, e) {
  31. 'use strict';
  32. var n,
  33. r,
  34. a,
  35. i,
  36. o,
  37. s,
  38. l,
  39. c,
  40. u,
  41. f,
  42. d,
  43. p,
  44. g,
  45. m,
  46. v,
  47. h,
  48. A,
  49. b,
  50. w,
  51. k,
  52. y,
  53. I,
  54. E,
  55. C,
  56. B,
  57. x,
  58. S,
  59. D,
  60. R,
  61. Q,
  62. _,
  63. O,
  64. M,
  65. T,
  66. z,
  67. P,
  68. Y,
  69. G,
  70. N,
  71. U,
  72. F,
  73. L,
  74. X,
  75. j,
  76. W,
  77. H;
  78. return {
  79. setters: [
  80. t => {
  81. (n = t.d),
  82. (r = t.r),
  83. (a = t.y),
  84. (i = t.f),
  85. (o = t.t),
  86. (s = t.F),
  87. (l = t.u),
  88. (c = t.a),
  89. (u = t.e),
  90. (f = t.z),
  91. (d = t.n),
  92. (p = t.c),
  93. (g = t.A),
  94. (m = t.B),
  95. (v = t.b),
  96. (h = t.k),
  97. (A = t.N),
  98. (b = t.g),
  99. (w = t.x),
  100. (k = t.h),
  101. (y = t.C),
  102. (I = t.D),
  103. (E = t.E),
  104. (C = t.G),
  105. (B = t.H),
  106. (x = t.I),
  107. (S = t.J),
  108. (D = t.K),
  109. (R = t.v),
  110. (Q = t.m),
  111. (_ = t.L),
  112. (O = t.M),
  113. (M = t.O),
  114. (T = t.Q),
  115. (z = t.T),
  116. (P = t.R);
  117. },
  118. t => {
  119. Y = t.d;
  120. },
  121. t => {
  122. G = t.F;
  123. },
  124. t => {
  125. N = t.C;
  126. },
  127. t => {
  128. U = t.p;
  129. },
  130. t => {
  131. (F = t.P), (L = t.a), (X = t.T);
  132. },
  133. t => {
  134. j = t.v;
  135. },
  136. t => {
  137. W = t.P;
  138. },
  139. t => {
  140. H = t.A;
  141. },
  142. null,
  143. null,
  144. null,
  145. null,
  146. null,
  147. null,
  148. null,
  149. null,
  150. null,
  151. null,
  152. null,
  153. null,
  154. null,
  155. null,
  156. null,
  157. null,
  158. null
  159. ],
  160. execute: function () {
  161. var V = document.createElement('style');
  162. (V.textContent =
  163. '@charset "UTF-8";._wrap_1vggn_1{width:100vw;height:100vh;display:flex;flex-direction:row;background:#f1f5ff;overflow:hidden}._wrap_1vggn_1 ._WrapcoreView_1vggn_9{padding:1.04166667vw 1.66666667vw 1.66666667vw;height:calc(100vh - 3.33333333vw);overflow-y:auto}._silder_1vggn_14{width:5.20833333vw;background:#3044ca;min-height:100vh;display:flex;flex-direction:column;align-items:center;flex:1}._silder_1vggn_14 ._logoWrap_1vggn_23{margin-top:1.14583333vw}._silder_1vggn_14 ._logoWrap_1vggn_23 ._logo_1vggn_23 img{width:3.22916667vw;height:3.125vw}._silder_1vggn_14 ._sliderList_1vggn_30{margin-top:.52083333vw}._silderItem_1vggn_33{position:relative;width:4.375vw;height:4.16666667vw;display:flex;flex-direction:column;align-items:center;margin-bottom:.9375vw;justify-content:center;border-radius:1.04166667vw}._silderItem_1vggn_33 ._radiusIcon_1vggn_44{position:absolute;right:-.52083333vw;top:-1.51041667vw}._silderItem_1vggn_33 ._radiusIcon_1vggn_44 img{width:1.35416667vw;height:7.13541667vw}._silderItem_1vggn_33 p{margin-top:.20833333vw;font-size:.72916667rem;font-weight:600;color:#fff;line-height:1.04166667vw}._silderItem_1vggn_33:hover{background-color:rgba(255,255,255,.1)}._silderItem_1vggn_33._isActiveItem_1vggn_63{background-color:#f1f5ff;border-radius:1.04166667vw 0px 0px 1.04166667vw}._silderItem_1vggn_33._isActiveItem_1vggn_63 p{color:#21225d}._Wrapcore_1vggn_9{height:100%;flex:1}._Wrapcore_1vggn_9 ._layoutTop_1vggn_74{height:3.33333333vw;background-color:#fff;line-height:3.33333333vw;padding:0 2.60416667vw 0 1.66666667vw;display:flex;flex-direction:row;align-items:center;justify-content:space-between}._Wrapcore_1vggn_9 ._layoutTop_1vggn_74 ._layoutLeft_1vggn_84{display:flex;flex-direction:row;align-items:center}._Wrapcore_1vggn_9 ._layoutTop_1vggn_74 ._layoutLeft_1vggn_84 ._schoolIcon_1vggn_89{margin-right:.41666667vw}._Wrapcore_1vggn_9 ._layoutTop_1vggn_74 ._layoutLeft_1vggn_84 ._schoolIcon_1vggn_89 img{width:1.66666667vw;height:1.66666667vw}._Wrapcore_1vggn_9 ._layoutTop_1vggn_74 ._layoutLeft_1vggn_84 p{font-size:max(.9375rem,14Px);font-weight:600;color:#131415}._Wrapcore_1vggn_9 ._layoutTop_1vggn_74 ._layoutRight_1vggn_101{display:flex;flex-direction:row;align-items:center}._Wrapcore_1vggn_9 ._layoutTop_1vggn_74 ._layoutRight_1vggn_101 ._messageBadge_1vggn_106{margin-right:1.25vw}._Wrapcore_1vggn_9 ._layoutTop_1vggn_74 ._layoutRight_1vggn_101 ._messageBadge_1vggn_106 ._messageIcon_1vggn_109{width:1.66666667vw;height:1.66666667vw;cursor:pointer}._Wrapcore_1vggn_9 ._layoutTop_1vggn_74 ._layoutRight_1vggn_101 ._messageBadge_1vggn_106 ._messageIcon_1vggn_109._animation_1vggn_114{-webkit-animation:_Tada_1vggn_1 1s 2s both infinite;-moz-animation:_Tada_1vggn_1 1s 2s both infinite;-ms-animation:_Tada_1vggn_1 1s 2s both infinite;animation:_Tada_1vggn_1 1s 2s both infinite}._Wrapcore_1vggn_9 ._layoutTop_1vggn_74 ._layoutRight_1vggn_101 ._messageBadgeNo_1vggn_120 .n-badge-sup,._Wrapcore_1vggn_9 ._layoutTop_1vggn_74 ._layoutRight_1vggn_101 ._messageBadgeHide_1vggn_121 .n-badge-sup{visibility:hidden}@keyframes _Tada_1vggn_1{0%{transform:scale(1)}10%,20%{transform:scale(.9) rotate(-3deg)}30%,50%,70%,90%{transform:scale(1.1) rotate(3deg)}40%,60%,80%{transform:scale(1.1) rotate(-3deg)}to{transform:scale(1) rotate(0)}}._Wrapcore_1vggn_9 ._layoutTop_1vggn_74 ._layoutRight_1vggn_101 ._line_1vggn_147{width:1px;height:.9375vw;background-color:#dfdfdf;margin-right:1.25vw}._Wrapcore_1vggn_9 ._layoutTop_1vggn_74 ._layoutRight_1vggn_101 ._mesgWrap_1vggn_153{display:flex;flex-direction:row;align-items:center;flex:1}._Wrapcore_1vggn_9 ._layoutTop_1vggn_74 ._layoutRight_1vggn_101 ._mesgWrap_1vggn_153 ._teacherIcon_1vggn_159{width:1.66666667vw;height:1.66666667vw;border-radius:50%;overflow:hidden}._Wrapcore_1vggn_9 ._layoutTop_1vggn_74 ._layoutRight_1vggn_101 ._mesgWrap_1vggn_153 ._rotueLeft_1vggn_165{transform:rotate(-90deg);transition:.2s;margin-left:.52083333vw}._Wrapcore_1vggn_9 ._layoutTop_1vggn_74 ._layoutRight_1vggn_101 ._mesgWrap_1vggn_153 ._rotueRight_1vggn_170{transform:rotate(90deg);margin-left:.52083333vw;transition:.2s}._Wrapcore_1vggn_9 ._layoutTop_1vggn_74 ._layoutRight_1vggn_101 ._optons_1vggn_175{margin-top:.9375vw;margin-bottom:.72916667vw;width:1.66666667vw;height:1.66666667vw;margin-right:1.25vw;display:flex;flex-direction:row;align-items:center;cursor:pointer}._Wrapcore_1vggn_9 ._layoutTop_1vggn_74 ._layoutRight_1vggn_101 ._optons_1vggn_175 img{width:100%;height:100%}.nameTool.n-popover{background-color:#000!important;color:#fff}.n-popover{border-radius:.83333333vw}._propWrap_1vggn_197{background-color:var(--n-color);border-radius:.83333333vw;width:15.625vw;overflow-y:auto;background:#ffffff;box-shadow:0 .10416667vw .88541667vw rgba(0,0,0,.08);padding:1.04166667vw!important}._propWrap_1vggn_197 ._teacherInfo_1vggn_206{display:flex;flex-direction:row;align-items:center;border-bottom:1px solid #f2f2f2;padding-bottom:1.04166667vw}._propWrap_1vggn_197 ._teacherInfo_1vggn_206 ._teacherIcon_1vggn_159{width:2.5vw;height:2.5vw;border-radius:50%;border:1px solid #ffffff;overflow:hidden}._propWrap_1vggn_197 ._teacherInfo_1vggn_206 ._teacherName_1vggn_220{flex:1;font-size:1.14583333rem;font-weight:600;color:#333;margin-left:.83333333vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._propWrap_1vggn_197 ._propWrapList_1vggn_230{padding-bottom:.88541667vw;border-bottom:1px solid #f2f2f2;margin-top:.83333333vw}._propWrap_1vggn_197 ._propWrapItem_1vggn_235{display:flex;flex-direction:row;align-items:center;height:2.60416667vw;line-height:2.60416667vw;cursor:pointer}._propWrap_1vggn_197 ._propWrapItem_1vggn_235:hover{background:#f5f6fa;border-radius:.52083333vw}._propWrap_1vggn_197 ._smallIcon_1vggn_247{width:1.14583333vw;height:1.19791667vw;margin-right:1.09375vw;margin-left:.52083333vw}._propWrap_1vggn_197 ._smallTitle_1vggn_253{font-size:.9375rem;font-weight:600;color:#333}._propWrap_1vggn_197 ._logoutInfo_1vggn_258{margin-top:.83333333vw}.fade-slide-leave-active,.fade-slide-enter-active{transition:all .3s}.fade-slide-enter-from{opacity:0;transform:translate(-1.5625vw)}.fade-slide-leave-to{opacity:0;transform:translate(1.5625vw)}._toolboxImg_1vggn_273{width:4.32291667vw;height:4.32291667vw;position:absolute;right:1.66666667vw;bottom:4.375vw;cursor:pointer;z-index:1000}._isDragIng_1vggn_282{width:4.32291667vw;height:4.32291667vw}.moveable-control-box{--moveable-color: transparent !important}.n-popover{background-color:transparent}._booxToolWrap_1vggn_292{background:#ffffff;box-shadow:0 .10416667vw .52083333vw rgba(0,0,0,.1);border-radius:1.04166667vw;display:flex;flex-direction:column;padding:.83333333vw 1.04166667vw;justify-content:space-between}._booxToolWrap_1vggn_292>div{display:flex}._booxToolWrap_1vggn_292>div:last-child{margin-top:.83333333vw}._booxToolWrap_1vggn_292 ._booxToolItem_1vggn_307{margin:0 .625vw;display:flex;flex-direction:column;align-items:center;font-size:.625rem;cursor:pointer;text-align:center}._booxToolWrap_1vggn_292 ._booxToolItem_1vggn_307._booxToolDisabled_1vggn_316,._booxToolWrap_1vggn_292 ._booxToolItem_1vggn_307._booxToolDisabled_1vggn_316:hover{opacity:.5;cursor:not-allowed}._booxToolWrap_1vggn_292 ._booxToolItem_1vggn_307:hover{opacity:.8}._booxToolWrap_1vggn_292 ._booxToolItem_1vggn_307 img{width:2.91666667vw;height:2.91666667vw;margin-bottom:.20833333vw}._setTimeImage_1vggn_332{cursor:pointer}._setTimeImage_1vggn_332 img{width:41.25vw}._beatImage_1vggn_338{cursor:pointer}._beatImage_1vggn_338 img{width:36.35416667vw}._changePwdModal_1vggn_344{border-radius:.83333333vw}._imChatModal_1vggn_347{border-radius:1.04166667vw}._modeWrap_1vggn_350{overflow:hidden;border-radius:.83333333vw;background-color:#fff}._imGroupContainer_1vggn_355,._container_1vggn_356{background-color:#fff;width:968Px;height:640Px;border-radius:.78125vw}._hideModal_1vggn_362{visibility:hidden}._showClass_1vggn_365{width:41.66666667vw;border-radius:.83333333vw;overflow:hidden}._showModalTone_1vggn_370{width:26.04166667vw}._showModalTone_1vggn_370 ._studentRemove_1vggn_373{padding:1.66666667vw 2.08333333vw 2.39583333vw}._showModalTone_1vggn_370 ._studentRemove_1vggn_373 p{font-size:.9375rem;color:#777;line-height:1.5625vw;text-align:center}._showModalTone_1vggn_370 ._studentRemove_1vggn_373 p span{color:#ea4132}._suggestWrap_1vggn_385{width:39.27083333vw;background-color:transparent!important;box-shadow:none!important}._suggestWrap_1vggn_385 .n-card-header{display:none}._suggestWrap_1vggn_385 .n-card__content{background-color:transparent}._suggestWrap_1vggn_385 .n-input__border,._suggestWrap_1vggn_385 .n-input__state-border{display:none}/*!\n * animate.css - https://animate.style/\n * Version - 4.1.1\n * Licensed under the MIT license - http://opensource.org/licenses/MIT\n *\n * Copyright (c) 2020 Animate.css\n */:root{--animate-duration: 1s;--animate-delay: 1s;--animate-repeat: 1}.animate__animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-duration:var(--animate-duration);animation-duration:var(--animate-duration);-webkit-animation-fill-mode:both;animation-fill-mode:both}.animate__animated.animate__infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.animate__animated.animate__repeat-1{-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-iteration-count:var(--animate-repeat);animation-iteration-count:var(--animate-repeat)}.animate__animated.animate__repeat-2{-webkit-animation-iteration-count:2;animation-iteration-count:2;-webkit-animation-iteration-count:calc(var(--animate-repeat) * 2);animation-iteration-count:calc(var(--animate-repeat) * 2)}.animate__animated.animate__repeat-3{-webkit-animation-iteration-count:3;animation-iteration-count:3;-webkit-animation-iteration-count:calc(var(--animate-repeat) * 3);animation-iteration-count:calc(var(--animate-repeat) * 3)}.animate__animated.animate__delay-1s{-webkit-animation-delay:1s;animation-delay:1s;-webkit-animation-delay:var(--animate-delay);animation-delay:var(--animate-delay)}.animate__animated.animate__delay-2s{-webkit-animation-delay:2s;animation-delay:2s;-webkit-animation-delay:calc(var(--animate-delay) * 2);animation-delay:calc(var(--animate-delay) * 2)}.animate__animated.animate__delay-3s{-webkit-animation-delay:3s;animation-delay:3s;-webkit-animation-delay:calc(var(--animate-delay) * 3);animation-delay:calc(var(--animate-delay) * 3)}.animate__animated.animate__delay-4s{-webkit-animation-delay:4s;animation-delay:4s;-webkit-animation-delay:calc(var(--animate-delay) * 4);animation-delay:calc(var(--animate-delay) * 4)}.animate__animated.animate__delay-5s{-webkit-animation-delay:5s;animation-delay:5s;-webkit-animation-delay:calc(var(--animate-delay) * 5);animation-delay:calc(var(--animate-delay) * 5)}.animate__animated.animate__faster{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-duration:calc(var(--animate-duration) / 2);animation-duration:calc(var(--animate-duration) / 2)}.animate__animated.animate__fast{-webkit-animation-duration:.8s;animation-duration:.8s;-webkit-animation-duration:calc(var(--animate-duration) * .8);animation-duration:calc(var(--animate-duration) * .8)}.animate__animated.animate__slow{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration) * 2);animation-duration:calc(var(--animate-duration) * 2)}.animate__animated.animate__slower{-webkit-animation-duration:3s;animation-duration:3s;-webkit-animation-duration:calc(var(--animate-duration) * 3);animation-duration:calc(var(--animate-duration) * 3)}@media print,(prefers-reduced-motion: reduce){.animate__animated{-webkit-animation-duration:1ms!important;animation-duration:1ms!important;-webkit-transition-duration:1ms!important;transition-duration:1ms!important;-webkit-animation-iteration-count:1!important;animation-iteration-count:1!important}.animate__animated[class*=Out]{opacity:0}}@-webkit-keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-1.5625vw,0) scaleY(1.1);transform:translate3d(0,-1.5625vw,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-.78125vw,0) scaleY(1.05);transform:translate3d(0,-.78125vw,0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-.20833333vw,0) scaleY(1.02);transform:translate3d(0,-.20833333vw,0) scaleY(1.02)}}@keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-1.5625vw,0) scaleY(1.1);transform:translate3d(0,-1.5625vw,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-.78125vw,0) scaleY(1.05);transform:translate3d(0,-.78125vw,0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-.20833333vw,0) scaleY(1.02);transform:translate3d(0,-.20833333vw,0) scaleY(1.02)}}.animate__bounce{-webkit-animation-name:bounce;animation-name:bounce;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}.animate__flash{-webkit-animation-name:flash;animation-name:flash}@-webkit-keyframes pulse{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes pulse{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__pulse{-webkit-animation-name:pulse;animation-name:pulse;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes rubberBand{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes rubberBand{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__rubberBand{-webkit-animation-name:rubberBand;animation-name:rubberBand}@-webkit-keyframes shakeX{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-.52083333vw,0,0);transform:translate3d(-.52083333vw,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(.52083333vw,0,0);transform:translate3d(.52083333vw,0,0)}}@keyframes shakeX{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-.52083333vw,0,0);transform:translate3d(-.52083333vw,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(.52083333vw,0,0);transform:translate3d(.52083333vw,0,0)}}.animate__shakeX{-webkit-animation-name:shakeX;animation-name:shakeX}@-webkit-keyframes shakeY{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-.52083333vw,0);transform:translate3d(0,-.52083333vw,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,.52083333vw,0);transform:translate3d(0,.52083333vw,0)}}@keyframes shakeY{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-.52083333vw,0);transform:translate3d(0,-.52083333vw,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,.52083333vw,0);transform:translate3d(0,.52083333vw,0)}}.animate__shakeY{-webkit-animation-name:shakeY;animation-name:shakeY}@-webkit-keyframes headShake{0%{-webkit-transform:translateX(0);transform:translate(0)}6.5%{-webkit-transform:translateX(-.3125vw) rotateY(-9deg);transform:translate(-.3125vw) rotateY(-9deg)}18.5%{-webkit-transform:translateX(.26041667vw) rotateY(7deg);transform:translate(.26041667vw) rotateY(7deg)}31.5%{-webkit-transform:translateX(-.15625vw) rotateY(-5deg);transform:translate(-.15625vw) rotateY(-5deg)}43.5%{-webkit-transform:translateX(.10416667vw) rotateY(3deg);transform:translate(.10416667vw) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translate(0)}}@keyframes headShake{0%{-webkit-transform:translateX(0);transform:translate(0)}6.5%{-webkit-transform:translateX(-.3125vw) rotateY(-9deg);transform:translate(-.3125vw) rotateY(-9deg)}18.5%{-webkit-transform:translateX(.26041667vw) rotateY(7deg);transform:translate(.26041667vw) rotateY(7deg)}31.5%{-webkit-transform:translateX(-.15625vw) rotateY(-5deg);transform:translate(-.15625vw) rotateY(-5deg)}43.5%{-webkit-transform:translateX(.10416667vw) rotateY(3deg);transform:translate(.10416667vw) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translate(0)}}.animate__headShake{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-name:headShake;animation-name:headShake}@-webkit-keyframes swing{20%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}40%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}60%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}80%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}to{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0)}}@keyframes swing{20%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}40%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}60%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}80%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}to{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0)}}.animate__swing{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation-name:swing;animation-name:swing}@-webkit-keyframes tada{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes tada{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__tada{-webkit-animation-name:tada;animation-name:tada}@-webkit-keyframes wobble{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes wobble{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__wobble{-webkit-animation-name:wobble;animation-name:wobble}@-webkit-keyframes jello{0%,11.1%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skew(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skew(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skew(-.1953125deg) skewY(-.1953125deg)}}@keyframes jello{0%,11.1%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skew(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skew(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skew(-.1953125deg) skewY(-.1953125deg)}}.animate__jello{-webkit-animation-name:jello;animation-name:jello;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}.animate__heartBeat{-webkit-animation-name:heartBeat;animation-name:heartBeat;-webkit-animation-duration:1.3s;animation-duration:1.3s;-webkit-animation-duration:calc(var(--animate-duration) * 1.3);animation-duration:calc(var(--animate-duration) * 1.3);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes backInDown{0%{-webkit-transform:translateY(-62.5vw) scale(.7);transform:translateY(-62.5vw) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInDown{0%{-webkit-transform:translateY(-62.5vw) scale(.7);transform:translateY(-62.5vw) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInDown{-webkit-animation-name:backInDown;animation-name:backInDown}@-webkit-keyframes backInLeft{0%{-webkit-transform:translateX(-104.16666667vw) scale(.7);transform:translate(-104.16666667vw) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInLeft{0%{-webkit-transform:translateX(-104.16666667vw) scale(.7);transform:translate(-104.16666667vw) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInLeft{-webkit-animation-name:backInLeft;animation-name:backInLeft}@-webkit-keyframes backInRight{0%{-webkit-transform:translateX(104.16666667vw) scale(.7);transform:translate(104.16666667vw) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInRight{0%{-webkit-transform:translateX(104.16666667vw) scale(.7);transform:translate(104.16666667vw) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInRight{-webkit-animation-name:backInRight;animation-name:backInRight}@-webkit-keyframes backInUp{0%{-webkit-transform:translateY(62.5vw) scale(.7);transform:translateY(62.5vw) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInUp{0%{-webkit-transform:translateY(62.5vw) scale(.7);transform:translateY(62.5vw) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInUp{-webkit-animation-name:backInUp;animation-name:backInUp}@-webkit-keyframes backOutDown{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(36.45833333vw) scale(.7);transform:translateY(36.45833333vw) scale(.7);opacity:.7}}@keyframes backOutDown{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(36.45833333vw) scale(.7);transform:translateY(36.45833333vw) scale(.7);opacity:.7}}.animate__backOutDown{-webkit-animation-name:backOutDown;animation-name:backOutDown}@-webkit-keyframes backOutLeft{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(-104.16666667vw) scale(.7);transform:translate(-104.16666667vw) scale(.7);opacity:.7}}@keyframes backOutLeft{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(-104.16666667vw) scale(.7);transform:translate(-104.16666667vw) scale(.7);opacity:.7}}.animate__backOutLeft{-webkit-animation-name:backOutLeft;animation-name:backOutLeft}@-webkit-keyframes backOutRight{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(104.16666667vw) scale(.7);transform:translate(104.16666667vw) scale(.7);opacity:.7}}@keyframes backOutRight{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(104.16666667vw) scale(.7);transform:translate(104.16666667vw) scale(.7);opacity:.7}}.animate__backOutRight{-webkit-animation-name:backOutRight;animation-name:backOutRight}@-webkit-keyframes backOutUp{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(-36.45833333vw) scale(.7);transform:translateY(-36.45833333vw) scale(.7);opacity:.7}}@keyframes backOutUp{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(-36.45833333vw) scale(.7);transform:translateY(-36.45833333vw) scale(.7);opacity:.7}}.animate__backOutUp{-webkit-animation-name:backOutUp;animation-name:backOutUp}@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__bounceIn{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-animation-name:bounceIn;animation-name:bounceIn}@-webkit-keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-156.25vw,0) scaleY(3);transform:translate3d(0,-156.25vw,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,1.30208333vw,0) scaleY(.9);transform:translate3d(0,1.30208333vw,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-.52083333vw,0) scaleY(.95);transform:translate3d(0,-.52083333vw,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,.26041667vw,0) scaleY(.985);transform:translate3d(0,.26041667vw,0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-156.25vw,0) scaleY(3);transform:translate3d(0,-156.25vw,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,1.30208333vw,0) scaleY(.9);transform:translate3d(0,1.30208333vw,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-.52083333vw,0) scaleY(.95);transform:translate3d(0,-.52083333vw,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,.26041667vw,0) scaleY(.985);transform:translate3d(0,.26041667vw,0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInDown{-webkit-animation-name:bounceInDown;animation-name:bounceInDown}@-webkit-keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-156.25vw,0,0) scaleX(3);transform:translate3d(-156.25vw,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(1.30208333vw,0,0) scaleX(1);transform:translate3d(1.30208333vw,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-.52083333vw,0,0) scaleX(.98);transform:translate3d(-.52083333vw,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(.26041667vw,0,0) scaleX(.995);transform:translate3d(.26041667vw,0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-156.25vw,0,0) scaleX(3);transform:translate3d(-156.25vw,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(1.30208333vw,0,0) scaleX(1);transform:translate3d(1.30208333vw,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-.52083333vw,0,0) scaleX(.98);transform:translate3d(-.52083333vw,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(.26041667vw,0,0) scaleX(.995);transform:translate3d(.26041667vw,0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInLeft{-webkit-animation-name:bounceInLeft;animation-name:bounceInLeft}@-webkit-keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(156.25vw,0,0) scaleX(3);transform:translate3d(156.25vw,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-1.30208333vw,0,0) scaleX(1);transform:translate3d(-1.30208333vw,0,0) scaleX(1)}75%{-webkit-transform:translate3d(.52083333vw,0,0) scaleX(.98);transform:translate3d(.52083333vw,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-.26041667vw,0,0) scaleX(.995);transform:translate3d(-.26041667vw,0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(156.25vw,0,0) scaleX(3);transform:translate3d(156.25vw,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-1.30208333vw,0,0) scaleX(1);transform:translate3d(-1.30208333vw,0,0) scaleX(1)}75%{-webkit-transform:translate3d(.52083333vw,0,0) scaleX(.98);transform:translate3d(.52083333vw,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-.26041667vw,0,0) scaleX(.995);transform:translate3d(-.26041667vw,0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInRight{-webkit-animation-name:bounceInRight;animation-name:bounceInRight}@-webkit-keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,156.25vw,0) scaleY(5);transform:translate3d(0,156.25vw,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-1.04166667vw,0) scaleY(.9);transform:translate3d(0,-1.04166667vw,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,.52083333vw,0) scaleY(.95);transform:translate3d(0,.52083333vw,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-.26041667vw,0) scaleY(.985);transform:translate3d(0,-.26041667vw,0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,156.25vw,0) scaleY(5);transform:translate3d(0,156.25vw,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-1.04166667vw,0) scaleY(.9);transform:translate3d(0,-1.04166667vw,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,.52083333vw,0) scaleY(.95);transform:translate3d(0,.52083333vw,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-.26041667vw,0) scaleY(.985);transform:translate3d(0,-.26041667vw,0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInUp{-webkit-animation-name:bounceInUp;animation-name:bounceInUp}@-webkit-keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}@keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}.animate__bounceOut{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-animation-name:bounceOut;animation-name:bounceOut}@-webkit-keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,.52083333vw,0) scaleY(.985);transform:translate3d(0,.52083333vw,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-1.04166667vw,0) scaleY(.9);transform:translate3d(0,-1.04166667vw,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,104.16666667vw,0) scaleY(3);transform:translate3d(0,104.16666667vw,0) scaleY(3)}}@keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,.52083333vw,0) scaleY(.985);transform:translate3d(0,.52083333vw,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-1.04166667vw,0) scaleY(.9);transform:translate3d(0,-1.04166667vw,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,104.16666667vw,0) scaleY(3);transform:translate3d(0,104.16666667vw,0) scaleY(3)}}.animate__bounceOutDown{-webkit-animation-name:bounceOutDown;animation-name:bounceOutDown}@-webkit-keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(1.04166667vw,0,0) scaleX(.9);transform:translate3d(1.04166667vw,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(-104.16666667vw,0,0) scaleX(2);transform:translate3d(-104.16666667vw,0,0) scaleX(2)}}@keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(1.04166667vw,0,0) scaleX(.9);transform:translate3d(1.04166667vw,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(-104.16666667vw,0,0) scaleX(2);transform:translate3d(-104.16666667vw,0,0) scaleX(2)}}.animate__bounceOutLeft{-webkit-animation-name:bounceOutLeft;animation-name:bounceOutLeft}@-webkit-keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-1.04166667vw,0,0) scaleX(.9);transform:translate3d(-1.04166667vw,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(104.16666667vw,0,0) scaleX(2);transform:translate3d(104.16666667vw,0,0) scaleX(2)}}@keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-1.04166667vw,0,0) scaleX(.9);transform:translate3d(-1.04166667vw,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(104.16666667vw,0,0) scaleX(2);transform:translate3d(104.16666667vw,0,0) scaleX(2)}}.animate__bounceOutRight{-webkit-animation-name:bounceOutRight;animation-name:bounceOutRight}@-webkit-keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-.52083333vw,0) scaleY(.985);transform:translate3d(0,-.52083333vw,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,1.04166667vw,0) scaleY(.9);transform:translate3d(0,1.04166667vw,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,-104.16666667vw,0) scaleY(3);transform:translate3d(0,-104.16666667vw,0) scaleY(3)}}@keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-.52083333vw,0) scaleY(.985);transform:translate3d(0,-.52083333vw,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,1.04166667vw,0) scaleY(.9);transform:translate3d(0,1.04166667vw,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,-104.16666667vw,0) scaleY(3);transform:translate3d(0,-104.16666667vw,0) scaleY(3)}}.animate__bounceOutUp{-webkit-animation-name:bounceOutUp;animation-name:bounceOutUp}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.animate__fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}@-webkit-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}@-webkit-keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-104.16666667vw,0);transform:translate3d(0,-104.16666667vw,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-104.16666667vw,0);transform:translate3d(0,-104.16666667vw,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInDownBig{-webkit-animation-name:fadeInDownBig;animation-name:fadeInDownBig}@-webkit-keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInLeft{-webkit-animation-name:fadeInLeft;animation-name:fadeInLeft}@-webkit-keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-104.16666667vw,0,0);transform:translate3d(-104.16666667vw,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-104.16666667vw,0,0);transform:translate3d(-104.16666667vw,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInLeftBig{-webkit-animation-name:fadeInLeftBig;animation-name:fadeInLeftBig}@-webkit-keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInRight{-webkit-animation-name:fadeInRight;animation-name:fadeInRight}@-webkit-keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(104.16666667vw,0,0);transform:translate3d(104.16666667vw,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(104.16666667vw,0,0);transform:translate3d(104.16666667vw,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInRightBig{-webkit-animation-name:fadeInRightBig;animation-name:fadeInRightBig}@-webkit-keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInUp{-webkit-animation-name:fadeInUp;animation-name:fadeInUp}@-webkit-keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,104.16666667vw,0);transform:translate3d(0,104.16666667vw,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,104.16666667vw,0);transform:translate3d(0,104.16666667vw,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInUpBig{-webkit-animation-name:fadeInUpBig;animation-name:fadeInUpBig}@-webkit-keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInTopLeft{-webkit-animation-name:fadeInTopLeft;animation-name:fadeInTopLeft}@-webkit-keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInTopRight{-webkit-animation-name:fadeInTopRight;animation-name:fadeInTopRight}@-webkit-keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInBottomLeft{-webkit-animation-name:fadeInBottomLeft;animation-name:fadeInBottomLeft}@-webkit-keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInBottomRight{-webkit-animation-name:fadeInBottomRight;animation-name:fadeInBottomRight}@-webkit-keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.animate__fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}@-webkit-keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.animate__fadeOutDown{-webkit-animation-name:fadeOutDown;animation-name:fadeOutDown}@-webkit-keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,104.16666667vw,0);transform:translate3d(0,104.16666667vw,0)}}@keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,104.16666667vw,0);transform:translate3d(0,104.16666667vw,0)}}.animate__fadeOutDownBig{-webkit-animation-name:fadeOutDownBig;animation-name:fadeOutDownBig}@-webkit-keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.animate__fadeOutLeft{-webkit-animation-name:fadeOutLeft;animation-name:fadeOutLeft}@-webkit-keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-104.16666667vw,0,0);transform:translate3d(-104.16666667vw,0,0)}}@keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-104.16666667vw,0,0);transform:translate3d(-104.16666667vw,0,0)}}.animate__fadeOutLeftBig{-webkit-animation-name:fadeOutLeftBig;animation-name:fadeOutLeftBig}@-webkit-keyframes fadeOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes fadeOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.animate__fadeOutRight{-webkit-animation-name:fadeOutRight;animation-name:fadeOutRight}@-webkit-keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(104.16666667vw,0,0);transform:translate3d(104.16666667vw,0,0)}}@keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(104.16666667vw,0,0);transform:translate3d(104.16666667vw,0,0)}}.animate__fadeOutRightBig{-webkit-animation-name:fadeOutRightBig;animation-name:fadeOutRightBig}@-webkit-keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.animate__fadeOutUp{-webkit-animation-name:fadeOutUp;animation-name:fadeOutUp}@-webkit-keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-104.16666667vw,0);transform:translate3d(0,-104.16666667vw,0)}}@keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-104.16666667vw,0);transform:translate3d(0,-104.16666667vw,0)}}.animate__fadeOutUpBig{-webkit-animation-name:fadeOutUpBig;animation-name:fadeOutUpBig}@-webkit-keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}@keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}.animate__fadeOutTopLeft{-webkit-animation-name:fadeOutTopLeft;animation-name:fadeOutTopLeft}@-webkit-keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}@keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}.animate__fadeOutTopRight{-webkit-animation-name:fadeOutTopRight;animation-name:fadeOutTopRight}@-webkit-keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}@keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}.animate__fadeOutBottomRight{-webkit-animation-name:fadeOutBottomRight;animation-name:fadeOutBottomRight}@-webkit-keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}@keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}.animate__fadeOutBottomLeft{-webkit-animation-name:fadeOutBottomLeft;animation-name:fadeOutBottomLeft}@-webkit-keyframes flip{0%{-webkit-transform:perspective(20.83333333vw) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,-360deg);transform:perspective(20.83333333vw) scaleZ(1) translateZ(0) rotateY(-360deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(20.83333333vw) scale3d(1,1,1) translate3d(0,0,7.8125vw) rotate3d(0,1,0,-190deg);transform:perspective(20.83333333vw) scaleZ(1) translateZ(7.8125vw) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(20.83333333vw) scale3d(1,1,1) translate3d(0,0,7.8125vw) rotate3d(0,1,0,-170deg);transform:perspective(20.83333333vw) scaleZ(1) translateZ(7.8125vw) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(20.83333333vw) scale3d(.95,.95,.95) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(20.83333333vw) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(20.83333333vw) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(20.83333333vw) scaleZ(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}@keyframes flip{0%{-webkit-transform:perspective(20.83333333vw) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,-360deg);transform:perspective(20.83333333vw) scaleZ(1) translateZ(0) rotateY(-360deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(20.83333333vw) scale3d(1,1,1) translate3d(0,0,7.8125vw) rotate3d(0,1,0,-190deg);transform:perspective(20.83333333vw) scaleZ(1) translateZ(7.8125vw) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(20.83333333vw) scale3d(1,1,1) translate3d(0,0,7.8125vw) rotate3d(0,1,0,-170deg);transform:perspective(20.83333333vw) scaleZ(1) translateZ(7.8125vw) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(20.83333333vw) scale3d(.95,.95,.95) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(20.83333333vw) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(20.83333333vw) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(20.83333333vw) scaleZ(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}.animate__animated.animate__flip{-webkit-backface-visibility:visible;backface-visibility:visible;-webkit-animation-name:flip;animation-name:flip}@-webkit-keyframes flipInX{0%{-webkit-transform:perspective(20.83333333vw) rotate3d(1,0,0,90deg);transform:perspective(20.83333333vw) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(20.83333333vw) rotate3d(1,0,0,-20deg);transform:perspective(20.83333333vw) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(20.83333333vw) rotate3d(1,0,0,10deg);transform:perspective(20.83333333vw) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(20.83333333vw) rotate3d(1,0,0,-5deg);transform:perspective(20.83333333vw) rotateX(-5deg)}to{-webkit-transform:perspective(20.83333333vw);transform:perspective(20.83333333vw)}}@keyframes flipInX{0%{-webkit-transform:perspective(20.83333333vw) rotate3d(1,0,0,90deg);transform:perspective(20.83333333vw) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(20.83333333vw) rotate3d(1,0,0,-20deg);transform:perspective(20.83333333vw) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(20.83333333vw) rotate3d(1,0,0,10deg);transform:perspective(20.83333333vw) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(20.83333333vw) rotate3d(1,0,0,-5deg);transform:perspective(20.83333333vw) rotateX(-5deg)}to{-webkit-transform:perspective(20.83333333vw);transform:perspective(20.83333333vw)}}.animate__flipInX{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInX;animation-name:flipInX}@-webkit-keyframes flipInY{0%{-webkit-transform:perspective(20.83333333vw) rotate3d(0,1,0,90deg);transform:perspective(20.83333333vw) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(20.83333333vw) rotate3d(0,1,0,-20deg);transform:perspective(20.83333333vw) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(20.83333333vw) rotate3d(0,1,0,10deg);transform:perspective(20.83333333vw) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(20.83333333vw) rotate3d(0,1,0,-5deg);transform:perspective(20.83333333vw) rotateY(-5deg)}to{-webkit-transform:perspective(20.83333333vw);transform:perspective(20.83333333vw)}}@keyframes flipInY{0%{-webkit-transform:perspective(20.83333333vw) rotate3d(0,1,0,90deg);transform:perspective(20.83333333vw) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(20.83333333vw) rotate3d(0,1,0,-20deg);transform:perspective(20.83333333vw) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(20.83333333vw) rotate3d(0,1,0,10deg);transform:perspective(20.83333333vw) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(20.83333333vw) rotate3d(0,1,0,-5deg);transform:perspective(20.83333333vw) rotateY(-5deg)}to{-webkit-transform:perspective(20.83333333vw);transform:perspective(20.83333333vw)}}.animate__flipInY{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInY;animation-name:flipInY}@-webkit-keyframes flipOutX{0%{-webkit-transform:perspective(20.83333333vw);transform:perspective(20.83333333vw)}30%{-webkit-transform:perspective(20.83333333vw) rotate3d(1,0,0,-20deg);transform:perspective(20.83333333vw) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(20.83333333vw) rotate3d(1,0,0,90deg);transform:perspective(20.83333333vw) rotateX(90deg);opacity:0}}@keyframes flipOutX{0%{-webkit-transform:perspective(20.83333333vw);transform:perspective(20.83333333vw)}30%{-webkit-transform:perspective(20.83333333vw) rotate3d(1,0,0,-20deg);transform:perspective(20.83333333vw) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(20.83333333vw) rotate3d(1,0,0,90deg);transform:perspective(20.83333333vw) rotateX(90deg);opacity:0}}.animate__flipOutX{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-animation-name:flipOutX;animation-name:flipOutX;-webkit-backface-visibility:visible!important;backface-visibility:visible!important}@-webkit-keyframes flipOutY{0%{-webkit-transform:perspective(20.83333333vw);transform:perspective(20.83333333vw)}30%{-webkit-transform:perspective(20.83333333vw) rotate3d(0,1,0,-15deg);transform:perspective(20.83333333vw) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(20.83333333vw) rotate3d(0,1,0,90deg);transform:perspective(20.83333333vw) rotateY(90deg);opacity:0}}@keyframes flipOutY{0%{-webkit-transform:perspective(20.83333333vw);transform:perspective(20.83333333vw)}30%{-webkit-transform:perspective(20.83333333vw) rotate3d(0,1,0,-15deg);transform:perspective(20.83333333vw) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(20.83333333vw) rotate3d(0,1,0,90deg);transform:perspective(20.83333333vw) rotateY(90deg);opacity:0}}.animate__flipOutY{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipOutY;animation-name:flipOutY}@-webkit-keyframes lightSpeedInRight{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skew(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skew(-5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes lightSpeedInRight{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skew(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skew(-5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__lightSpeedInRight{-webkit-animation-name:lightSpeedInRight;animation-name:lightSpeedInRight;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedInLeft{0%{-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{-webkit-transform:skewX(-20deg);transform:skew(-20deg);opacity:1}80%{-webkit-transform:skewX(5deg);transform:skew(5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes lightSpeedInLeft{0%{-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{-webkit-transform:skewX(-20deg);transform:skew(-20deg);opacity:1}80%{-webkit-transform:skewX(5deg);transform:skew(5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__lightSpeedInLeft{-webkit-animation-name:lightSpeedInLeft;animation-name:lightSpeedInLeft;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedOutRight{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skew(30deg);opacity:0}}@keyframes lightSpeedOutRight{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skew(30deg);opacity:0}}.animate__lightSpeedOutRight{-webkit-animation-name:lightSpeedOutRight;animation-name:lightSpeedOutRight;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes lightSpeedOutLeft{0%{opacity:1}to{-webkit-transform:translate3d(-100%,0,0) skewX(-30deg);transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}@keyframes lightSpeedOutLeft{0%{opacity:1}to{-webkit-transform:translate3d(-100%,0,0) skewX(-30deg);transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}.animate__lightSpeedOutLeft{-webkit-animation-name:lightSpeedOutLeft;animation-name:lightSpeedOutLeft;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes rotateIn{0%{-webkit-transform:rotate3d(0,0,1,-200deg);transform:rotate3d(0,0,1,-200deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateIn{0%{-webkit-transform:rotate3d(0,0,1,-200deg);transform:rotate3d(0,0,1,-200deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateIn{-webkit-animation-name:rotateIn;animation-name:rotateIn;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateInDownLeft{0%{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInDownLeft{0%{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInDownLeft{-webkit-animation-name:rotateInDownLeft;animation-name:rotateInDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInDownRight{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInDownRight{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInDownRight{-webkit-animation-name:rotateInDownRight;animation-name:rotateInDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateInUpLeft{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInUpLeft{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInUpLeft{-webkit-animation-name:rotateInUpLeft;animation-name:rotateInUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInUpRight{0%{-webkit-transform:rotate3d(0,0,1,-90deg);transform:rotate3d(0,0,1,-90deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInUpRight{0%{-webkit-transform:rotate3d(0,0,1,-90deg);transform:rotate3d(0,0,1,-90deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInUpRight{-webkit-animation-name:rotateInUpRight;animation-name:rotateInUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOut{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,200deg);transform:rotate3d(0,0,1,200deg);opacity:0}}@keyframes rotateOut{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,200deg);transform:rotate3d(0,0,1,200deg);opacity:0}}.animate__rotateOut{-webkit-animation-name:rotateOut;animation-name:rotateOut;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateOutDownLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}}@keyframes rotateOutDownLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}}.animate__rotateOutDownLeft{-webkit-animation-name:rotateOutDownLeft;animation-name:rotateOutDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutDownRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutDownRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}.animate__rotateOutDownRight{-webkit-animation-name:rotateOutDownRight;animation-name:rotateOutDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOutUpLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutUpLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}.animate__rotateOutUpLeft{-webkit-animation-name:rotateOutUpLeft;animation-name:rotateOutUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutUpRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,90deg);transform:rotate3d(0,0,1,90deg);opacity:0}}@keyframes rotateOutUpRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,90deg);transform:rotate3d(0,0,1,90deg);opacity:0}}.animate__rotateOutUpRight{-webkit-animation-name:rotateOutUpRight;animation-name:rotateOutUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate3d(0,0,1,80deg);transform:rotate3d(0,0,1,80deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate3d(0,0,1,60deg);transform:rotate3d(0,0,1,60deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,36.45833333vw,0);transform:translate3d(0,36.45833333vw,0);opacity:0}}@keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate3d(0,0,1,80deg);transform:rotate3d(0,0,1,80deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate3d(0,0,1,60deg);transform:rotate3d(0,0,1,60deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,36.45833333vw,0);transform:translate3d(0,36.45833333vw,0);opacity:0}}.animate__hinge{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration) * 2);animation-duration:calc(var(--animate-duration) * 2);-webkit-animation-name:hinge;animation-name:hinge;-webkit-transform-origin:top left;transform-origin:top left}@-webkit-keyframes jackInTheBox{0%{opacity:0;-webkit-transform:scale(.1) rotate(30deg);transform:scale(.1) rotate(30deg);-webkit-transform-origin:center bottom;transform-origin:center bottom}50%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}70%{-webkit-transform:rotate(3deg);transform:rotate(3deg)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes jackInTheBox{0%{opacity:0;-webkit-transform:scale(.1) rotate(30deg);transform:scale(.1) rotate(30deg);-webkit-transform-origin:center bottom;transform-origin:center bottom}50%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}70%{-webkit-transform:rotate(3deg);transform:rotate(3deg)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.animate__jackInTheBox{-webkit-animation-name:jackInTheBox;animation-name:jackInTheBox}@-webkit-keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__rollIn{-webkit-animation-name:rollIn;animation-name:rollIn}@-webkit-keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg);transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}@keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg);transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}.animate__rollOut{-webkit-animation-name:rollOut;animation-name:rollOut}@-webkit-keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}.animate__zoomIn{-webkit-animation-name:zoomIn;animation-name:zoomIn}@-webkit-keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-52.08333333vw,0);transform:scale3d(.1,.1,.1) translate3d(0,-52.08333333vw,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,3.125vw,0);transform:scale3d(.475,.475,.475) translate3d(0,3.125vw,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-52.08333333vw,0);transform:scale3d(.1,.1,.1) translate3d(0,-52.08333333vw,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,3.125vw,0);transform:scale3d(.475,.475,.475) translate3d(0,3.125vw,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInDown{-webkit-animation-name:zoomInDown;animation-name:zoomInDown}@-webkit-keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-52.08333333vw,0,0);transform:scale3d(.1,.1,.1) translate3d(-52.08333333vw,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(.52083333vw,0,0);transform:scale3d(.475,.475,.475) translate3d(.52083333vw,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-52.08333333vw,0,0);transform:scale3d(.1,.1,.1) translate3d(-52.08333333vw,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(.52083333vw,0,0);transform:scale3d(.475,.475,.475) translate3d(.52083333vw,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInLeft{-webkit-animation-name:zoomInLeft;animation-name:zoomInLeft}@-webkit-keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(52.08333333vw,0,0);transform:scale3d(.1,.1,.1) translate3d(52.08333333vw,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-.52083333vw,0,0);transform:scale3d(.475,.475,.475) translate3d(-.52083333vw,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(52.08333333vw,0,0);transform:scale3d(.1,.1,.1) translate3d(52.08333333vw,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-.52083333vw,0,0);transform:scale3d(.475,.475,.475) translate3d(-.52083333vw,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInRight{-webkit-animation-name:zoomInRight;animation-name:zoomInRight}@-webkit-keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,52.08333333vw,0);transform:scale3d(.1,.1,.1) translate3d(0,52.08333333vw,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-3.125vw,0);transform:scale3d(.475,.475,.475) translate3d(0,-3.125vw,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,52.08333333vw,0);transform:scale3d(.1,.1,.1) translate3d(0,52.08333333vw,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-3.125vw,0);transform:scale3d(.475,.475,.475) translate3d(0,-3.125vw,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInUp{-webkit-animation-name:zoomInUp;animation-name:zoomInUp}@-webkit-keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}.animate__zoomOut{-webkit-animation-name:zoomOut;animation-name:zoomOut}@-webkit-keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-3.125vw,0);transform:scale3d(.475,.475,.475) translate3d(0,-3.125vw,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,104.16666667vw,0);transform:scale3d(.1,.1,.1) translate3d(0,104.16666667vw,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-3.125vw,0);transform:scale3d(.475,.475,.475) translate3d(0,-3.125vw,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,104.16666667vw,0);transform:scale3d(.1,.1,.1) translate3d(0,104.16666667vw,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomOutDown{-webkit-animation-name:zoomOutDown;animation-name:zoomOutDown;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(2.1875vw,0,0);transform:scale3d(.475,.475,.475) translate3d(2.1875vw,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-104.16666667vw,0,0);transform:scale(.1) translate3d(-104.16666667vw,0,0)}}@keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(2.1875vw,0,0);transform:scale3d(.475,.475,.475) translate3d(2.1875vw,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-104.16666667vw,0,0);transform:scale(.1) translate3d(-104.16666667vw,0,0)}}.animate__zoomOutLeft{-webkit-animation-name:zoomOutLeft;animation-name:zoomOutLeft;-webkit-transform-origin:left center;transform-origin:left center}@-webkit-keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-2.1875vw,0,0);transform:scale3d(.475,.475,.475) translate3d(-2.1875vw,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(104.16666667vw,0,0);transform:scale(.1) translate3d(104.16666667vw,0,0)}}@keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-2.1875vw,0,0);transform:scale3d(.475,.475,.475) translate3d(-2.1875vw,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(104.16666667vw,0,0);transform:scale(.1) translate3d(104.16666667vw,0,0)}}.animate__zoomOutRight{-webkit-animation-name:zoomOutRight;animation-name:zoomOutRight;-webkit-transform-origin:right center;transform-origin:right center}@-webkit-keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,3.125vw,0);transform:scale3d(.475,.475,.475) translate3d(0,3.125vw,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-104.16666667vw,0);transform:scale3d(.1,.1,.1) translate3d(0,-104.16666667vw,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,3.125vw,0);transform:scale3d(.475,.475,.475) translate3d(0,3.125vw,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-104.16666667vw,0);transform:scale3d(.1,.1,.1) translate3d(0,-104.16666667vw,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomOutUp{-webkit-animation-name:zoomOutUp;animation-name:zoomOutUp;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInDown{-webkit-animation-name:slideInDown;animation-name:slideInDown}@-webkit-keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInLeft{-webkit-animation-name:slideInLeft;animation-name:slideInLeft}@-webkit-keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInRight{-webkit-animation-name:slideInRight;animation-name:slideInRight}@-webkit-keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}@-webkit-keyframes slideOutDown{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes slideOutDown{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.animate__slideOutDown{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}@-webkit-keyframes slideOutLeft{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes slideOutLeft{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.animate__slideOutLeft{-webkit-animation-name:slideOutLeft;animation-name:slideOutLeft}@-webkit-keyframes slideOutRight{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes slideOutRight{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.animate__slideOutRight{-webkit-animation-name:slideOutRight;animation-name:slideOutRight}@-webkit-keyframes slideOutUp{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes slideOutUp{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.animate__slideOutUp{-webkit-animation-name:slideOutUp;animation-name:slideOutUp}._suggestOption_j4g0v_1 ._updateBtnGroup_j4g0v_1{padding:0;justify-content:center!important;position:relative}._suggestOption_j4g0v_1 ._updateBtnGroup_j4g0v_1 .n-button{height:2.5vw!important;min-width:8.125vw}._suggestOption_j4g0v_1 ._suggestSelect_j4g0v_10 .n-base-selection__border{border:1px solid #AADCFF}@keyframes _forDown_j4g0v_1{0%{top:0}to{top:23.4375vw}}@keyframes _forUp_j4g0v_1{0%{top:0}to{top:-9.375vw}}@keyframes _endRoute_j4g0v_1{0%{opacity:1}to{opacity:0;transform:scale(.4)}}@keyframes _reversal_j4g0v_1{25%{background:url(' +
  164. new URL('inBack2-4d2e77fa.png', e.meta.url).href +
  165. ') no-repeat;background-size:39.27083333vw 35vw}50%{background:url(' +
  166. new URL('inBack3-5e932250.png', e.meta.url).href +
  167. ') no-repeat;background-size:39.27083333vw 35vw;z-index:0}75%{background:url(' +
  168. new URL('inBack4-874e90ab.png', e.meta.url).href +
  169. ') no-repeat;background-size:39.27083333vw 35vw;z-index:300}to{background:url(' +
  170. new URL('inBack5-45c274de.png', e.meta.url).href +
  171. ') no-repeat;background-size:39.27083333vw 35vw;z-index:300}}@keyframes _stamp_j4g0v_1{0%{opacity:1;transform:scale(1.5)}to{transform:scale(1);opacity:1}}._suggestOption_j4g0v_1 ._inBack_j4g0v_69{width:39.27083333vw;height:35vw;position:absolute;bottom:0;background:url(' +
  172. new URL('inBack-8ef3e8f3.png', e.meta.url).href +
  173. ') no-repeat;background-size:39.27083333vw 35vw;z-index:1}._suggestOption_j4g0v_1 ._inBack_j4g0v_69._isAni_j4g0v_78{animation:_reversal_j4g0v_1 .3s 1s forwards}._suggestOption_j4g0v_1 ._inBackBottom_j4g0v_81{width:39.27083333vw;left:.625vw;width:38.02083333vw;height:20.46875vw;position:absolute;bottom:0;border-radius:1.82291667vw 1.30208333vw}._suggestOption_j4g0v_1 ._inFront_j4g0v_90{width:39.27083333vw;height:13.64583333vw;position:absolute;bottom:-1px;z-index:200}._suggestOption_j4g0v_1 ._submitBtn_j4g0v_97{width:14.16666667vw;height:2.8125vw;position:absolute;z-index:201;bottom:5.78125vw;left:50%;margin-left:-7.08333333vw;cursor:pointer;z-index:400}._suggestOption_j4g0v_1 ._updatePassword_j4g0v_108._isAni_j4g0v_78{animation:_forUp_j4g0v_1 linear .3s forwards,_endRoute_j4g0v_1 linear .3s 2.3s forwards}._suggestOption_j4g0v_1 ._updatePassword_j4g0v_108{background-color:transparent;margin:0 auto;position:relative;overflow:hidden;top:0}._suggestOption_j4g0v_1 ._updatePassword_j4g0v_108 ._formWrap_j4g0v_118._isAni_j4g0v_78{animation:_forDown_j4g0v_1 linear 1s forwards}._suggestOption_j4g0v_1 ._updatePassword_j4g0v_108 ._sealing_j4g0v_121{position:absolute;bottom:3.02083333vw;z-index:300;width:9.01041667vw;height:9.11458333vw;left:50%;margin-left:-4.53125vw;opacity:0}._suggestOption_j4g0v_1 ._updatePassword_j4g0v_108 ._sealing_j4g0v_121._isAni_j4g0v_78{animation:_stamp_j4g0v_1 linear .3s 1.5s forwards}._suggestOption_j4g0v_1 ._updatePassword_j4g0v_108 ._formWrap_j4g0v_118{top:0;background-color:#fff;margin:0 1.40625vw;width:36.45833333vw;height:43.54166667vw;border-radius:1.04166667vw;padding:.78125vw .78125vw .26041667vw;position:relative;z-index:100}._suggestOption_j4g0v_1 ._updatePassword_j4g0v_108 ._formWrap_j4g0v_118 ._formTitle_j4g0v_145{text-align:center;margin-top:1.61458333vw}._suggestOption_j4g0v_1 ._updatePassword_j4g0v_108 ._formWrap_j4g0v_118 ._bgLine_j4g0v_149{position:absolute;width:34.89583333vw;height:40.57291667vw;left:.78125vw;top:.78125vw}._suggestOption_j4g0v_1 ._updatePassword_j4g0v_108 ._formWrap_j4g0v_118 h2{font-size:1.45833333rem}._suggestOption_j4g0v_1 ._updatePassword_j4g0v_108 ._formWrap_j4g0v_118 ._formWrapInfo_j4g0v_159{padding:1.25vw .98958333vw 0}._suggestOption_j4g0v_1 ._updatePassword_j4g0v_108 ._formWrap_j4g0v_118 ._closeBtn_j4g0v_162{width:3.125vw;height:3.125vw;position:absolute;right:-1px;top:0;z-index:100;cursor:pointer}._suggestOption_j4g0v_1 ._countInput_j4g0v_171{border-radius:.41666667vw;min-height:13.80208333vw}._suggestOption_j4g0v_1 ._countInput_j4g0v_171 .n-input__textarea-el{line-height:2.65625vw!important;font-size:.83333333rem;font-weight:400;color:#131415;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABPAAAABmCAYAAABFs29OAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAE8KADAAQAAAABAAAAZgAAAACAB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gQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECEyBc1/VzAoBAgQIECBAgAABAgQIECBAgAABAhsEcsMJHwgQIECAAAECBAgQIECAAAECBAgQ+As0EjQDiCe/ZPEAAAAASUVORK5CYII=) repeat;background-size:32.91666667vw 2.65625vw}._suggestOption_j4g0v_1 ._countInput_j4g0v_171 .n-input__placeholder{margin-top:.67708333vw!important}._suggestOption_j4g0v_1 ._countInput_j4g0v_171 .n-input-wrapper{padding:0!important}._suggestOption_j4g0v_1 ._countInput_j4g0v_171 .n-input-word-count{bottom:-1.30208333vw!important;font-size:.72916667rem;font-weight:400;color:#aaa;line-height:1.04166667vw}._suggestOption_j4g0v_1 ._addInput_j4g0v_196{font-size:.83333333rem;font-weight:400;color:#777;line-height:1.14583333vw;display:flex;flex-direction:column;align-items:center}._suggestOption_j4g0v_1 ._addInput_j4g0v_196 img{width:1.82291667vw;height:1.82291667vw;margin-bottom:.26041667vw}._suggestOption_j4g0v_1 .n-upload-trigger.n-upload-trigger--image-card,._suggestOption_j4g0v_1 .n-upload-file-list .n-upload-file.n-upload-file--image-card-type{width:5.72916667vw;height:5.72916667vw;background:#FDFDFD;border-radius:.41666667vw}._suggestOption_j4g0v_1 .n-upload-file-list.n-upload-file-list--grid{display:grid;grid-template-columns:repeat(auto-fill,5.72916667vw);grid-gap:1.04166667vw;margin-top:0}._suggestOption_j4g0v_1 ._messageWrap_j4g0v_228{align-items:center;position:absolute;bottom:1.82291667vw;z-index:202;width:100%;text-align:center}._suggestOption_j4g0v_1 ._messageWrap_j4g0v_228 p{height:1.30208333vw;font-size:.9375rem;font-weight:400;color:#005fa0;line-height:1.30208333vw}\n'),
  174. document.head.appendChild(V);
  175. const q = {
  176. wrap: '_wrap_1vggn_1',
  177. WrapcoreView: '_WrapcoreView_1vggn_9',
  178. silder: '_silder_1vggn_14',
  179. logoWrap: '_logoWrap_1vggn_23',
  180. logo: '_logo_1vggn_23',
  181. sliderList: '_sliderList_1vggn_30',
  182. silderItem: '_silderItem_1vggn_33',
  183. radiusIcon: '_radiusIcon_1vggn_44',
  184. isActiveItem: '_isActiveItem_1vggn_63',
  185. Wrapcore: '_Wrapcore_1vggn_9',
  186. layoutTop: '_layoutTop_1vggn_74',
  187. layoutLeft: '_layoutLeft_1vggn_84',
  188. schoolIcon: '_schoolIcon_1vggn_89',
  189. layoutRight: '_layoutRight_1vggn_101',
  190. messageBadge: '_messageBadge_1vggn_106',
  191. messageIcon: '_messageIcon_1vggn_109',
  192. animation: '_animation_1vggn_114',
  193. Tada: '_Tada_1vggn_1',
  194. messageBadgeNo: '_messageBadgeNo_1vggn_120',
  195. messageBadgeHide: '_messageBadgeHide_1vggn_121',
  196. line: '_line_1vggn_147',
  197. mesgWrap: '_mesgWrap_1vggn_153',
  198. teacherIcon: '_teacherIcon_1vggn_159',
  199. rotueLeft: '_rotueLeft_1vggn_165',
  200. rotueRight: '_rotueRight_1vggn_170',
  201. optons: '_optons_1vggn_175',
  202. propWrap: '_propWrap_1vggn_197',
  203. teacherInfo: '_teacherInfo_1vggn_206',
  204. teacherName: '_teacherName_1vggn_220',
  205. propWrapList: '_propWrapList_1vggn_230',
  206. propWrapItem: '_propWrapItem_1vggn_235',
  207. smallIcon: '_smallIcon_1vggn_247',
  208. smallTitle: '_smallTitle_1vggn_253',
  209. logoutInfo: '_logoutInfo_1vggn_258',
  210. toolboxImg: '_toolboxImg_1vggn_273',
  211. isDragIng: '_isDragIng_1vggn_282',
  212. booxToolWrap: '_booxToolWrap_1vggn_292',
  213. booxToolItem: '_booxToolItem_1vggn_307',
  214. booxToolDisabled: '_booxToolDisabled_1vggn_316',
  215. setTimeImage: '_setTimeImage_1vggn_332',
  216. beatImage: '_beatImage_1vggn_338',
  217. changePwdModal: '_changePwdModal_1vggn_344',
  218. imChatModal: '_imChatModal_1vggn_347',
  219. modeWrap: '_modeWrap_1vggn_350',
  220. imGroupContainer: '_imGroupContainer_1vggn_355',
  221. container: '_container_1vggn_356',
  222. hideModal: '_hideModal_1vggn_362',
  223. showClass: '_showClass_1vggn_365',
  224. showModalTone: '_showModalTone_1vggn_370',
  225. studentRemove: '_studentRemove_1vggn_373',
  226. suggestWrap: '_suggestWrap_1vggn_385'
  227. },
  228. K = '' + new URL('logo-654be404.png', e.meta.url).href,
  229. Z = n({
  230. emits: ['checkNavBar'],
  231. props: ['item'],
  232. name: 'layoutSilder',
  233. setup(t, { emit: e }) {
  234. const n = r(t.item);
  235. return (
  236. a(
  237. () => t.item,
  238. t => {
  239. n.value = t;
  240. },
  241. { deep: !0 }
  242. ),
  243. () =>
  244. i(s, null, [
  245. i(
  246. 'div',
  247. {
  248. onClick: () => {
  249. return (t = n.value), void e('checkNavBar', t);
  250. var t;
  251. },
  252. class: [
  253. q.silderItem,
  254. n.value.isActive ? q.isActiveItem : ''
  255. ]
  256. },
  257. [
  258. i(
  259. o,
  260. {
  261. width: '26',
  262. height: '26',
  263. src: n.value.isActive
  264. ? n.value.activeIcon
  265. : n.value.normalIcon,
  266. 'preview-disabled': !0
  267. },
  268. null
  269. ),
  270. i('p', null, [n.value.name]),
  271. n.value.isActive
  272. ? i(
  273. o,
  274. {
  275. src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAEUCAYAAABkoxVpAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAANKADAAQAAAABAAABFAAAAABXIhGiAAAGuElEQVR4Ae2avWscVxTF79PG+nJWGGOIMbYxLqJgcKHWhQthSCUXjmuDu6Rwmtj/iN2kMYH0aZIqKMQhhdrgRiTBiEAgiBQh2WU/tPLuzX3LDqxHszua1dnZ94azYOZTZ+45vzdv3ryxCH9MgAkwgSon4GI3919LddzD0vhGFdZpKHSKJERCJSfAJldy4IUvR0KFIyv5D0io5MCnXk5Vl9MnRE2oKVKvlKFz3YoZ6i9VzJCoXK5Uk9OBbFbK0EAqZsiaXHUI2TPI2YTIVmWaXKsnt2125FJlDPX7sp0247ejHSlYc8s0FOW8nN0/G82OHNqM3FqaUpSEml15mGUm3ian8ihNJtmOrsl1u3qzN5A3Riiz9vcSZ7Esj1Se2QM104z3MPFAiAZbLb3Sd3JgdFYm1RdVp2Bmnk4zExWhTkdvHKvsT+rdEmLREDIzz/PMeFNRGGq09L6Z2UkoTFsG3ynYqOBCoyOvrWe7Ps1Icix4QjbEeXlaM95U0IaabX1iTe1Bkv5plsE2uUZb75iBV2boxGTiNGO1aQcXdax5pLdsAmTXrv9+0RqCM9Ru67WByk9m5IOiZvz5Qd1D3sxbkV1rZldnMROUId/MzMyemTkxk1PEXBBNzncAo3tmpmY2bnjhTc53zVbQK/t3cbywWdcX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TG0mBRZdBmVozNTerKQW1ilMSn593f3pavKxHf9n0jnT9gdnyBdbX3H71vPtzNL7BWnIm7Iufc/uBz9cKvQL7h5KV29d+jd2P5364Ru8IT+iaHTk9WmHScE2uYSUH1HY68eTZDtvGTyhxIA1vW+t6eWO0qMxNHr12DdTU1/vg29yCaG1NfeHrX+ZbE9aRkPIGxi9+R4YpYmv89EQ8obOn3d/2YvhV3590i8qQt6En3jpDeSNUcqsPSpC3tDqqjuwxc9+PesXnaGhCSdfZ5nx+zKxTTo5lP3DycyOHGZ14VESstFDw8L9ISvgKA15I/aB4MdKGarVsg1FeQ8NCdlXj2Zb/k5/yom2ydl9ZH2C/JJudtEaGhpx8lulDC2p/FopQzY79HulDNmw4LBShmoDse/Z7/6i7hSOVytmqG5z/O/yWeD3oXQhs2zbs+jEd6Wom1xWCDSUlUpI+0goJBpZtZBQVioh7SOhkGhk1UJCWalwHxNgAkyACZSVwP8hUI3VVMubnwAAAABJRU5ErkJggg==',
  276. class: q.radiusIcon,
  277. previewDisabled: !0
  278. },
  279. null
  280. )
  281. : null
  282. ]
  283. )
  284. ])
  285. );
  286. }
  287. }),
  288. J = n({
  289. name: 'layoutSilder',
  290. setup() {
  291. const t = l(),
  292. e = c(),
  293. n = u([
  294. {
  295. activeIcon:
  296. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAABjZJREFUaN7tmVuIVVUYx3/f3mcmSlMrvCQjlRrYDRnFCnxQCSKS6MURi+gGGRFF5ksFldGDgdCT0g0cidCyepjHYoKxByGqUZo5Q4jXEC8zak7apOM56+th9jmus85ae+8zzpjBbNicfdbe31rff333b8HENXFd1UvGbeZebWaIJxEWI9yNAEIfwq80sZ17Zfj/A2i3Po3wHujtCRCIrN9IDiO8y0L5/NoGtEencY5tiD7uBSLWPQKsgyk8yx1y9toD9KMuosTXRDq3DowLjBpQBxHaWCjdY8FGNCZgOnUtF9mN6lwMYABNft3nyv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ilh8k4waDIxsxOLpQvtDORJaqUmAc0ioAijy7FTZSm8Sw7xz0th1kudPDTgdX/wZ0ZRitoRMAsjX6SzV1zNfnRg7QDsPZpQarpRMPSC/nryjJ0Fn1PUQbgbuqgVZUHh+NrTeCJE4eu6LHdTbhFHYcwa27oNS2ZNWYVXDVc8r/ayTmXlUDgx9CDOcFGOkqHNiQsnAp8dS6iEyGiLGSWt8aZVxMnlNzppyt7Fctavs2jln4Tz1UJ5aKE5paYVdejE/ILUAudXkoIcJSSnWJAWw5KCPgn0KL6BCUEIE6qE/gekpmXJaPYNjW+Soh0ywHmpAQhHF4PnOqYxOZ5zSAAllFu43oSzBvq9vBNBGOY2Rfu9B1WBiS3GOdpSvvxDntpHwGrH084ycbqy3rfRUXaUrpQMpEopScrqsvM1HH3vpexpv1pfZ5W0uKnA06bhIyq5ndX0kI/FMo43Z1TigJrajYmoCmg1sf8pJggTsx6eKoZMICXVZxdDE9sYBbZIDwOY6IJW4tD/xeONRD0UpthaxmTX1Pe1850NTWY+RzmBk/ykBl2U7ca7axu/1asBJJ7NYP/oDrw1SIqINIx11jqEMnAX2pqhHnAIg5CRCkoulg5g2VkhpbI4k1+nDGDYiuqiOoQeA+Q2en+Y+H5Ju4E0ek+/H5xT8Nb0VYT7CVEh2EeB+YIGVGeM8lzxjae9gkBL7eUSOM3FNXNfu9S+4Sk49123KbgAAAABJRU5ErkJggg==',
  297. name: '主页',
  298. normalIcon:
  299. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAAAXNSR0IArs4c6QAAATJQTFRFAAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////LddBWgAAAGV0Uk5TAAIDBAUGBwkKDhASExQVGBkdHyMmKC0uLzEyOj0+P0BGS0xNVVheYGNmaWprbHF7fYGGkZOUlZaXmZqfo6aorbC0tba5u7y9v8DBx8jKy8zN0tTb3N3f4+nq7fDx8vP3+Pn6/f6FbYleAAACEklEQVQYGdXB10IaURQF0I2IBQELdkXsSrEiSKwktomJIjYGE7HA/v9fyLkXaQIz5NG18CW5VnYuLnZWXPgPy4/UHpfRLneKFSk32jL5wBoPk2hD6JVK8f6+SOU1BDs9B9R+jQFjv6kd9MDSyC21WCdEZ4za7QgsLOWpPC/iw+IzlfwSWnHFqWWGUTGcoRZ3oamhK2r73ajRvU/taghNzD1ReVnFJ6svVJ7m8FnHdpHK3TgajN9RKW53oE6/Qe24F030HlMz+lHDn6Xyvo4W1t+pZP2oGMxSyU6hpakslewgyo6onHphwXtK5QgfJqhsOWDJsUVlAiUbFEnYSlJsoOSEZL4LtrryJE9QckEygzZkSJ6j5AdJE20wSX5HyS6FB7Y8FLsoiVIEYCtAEUVJkCIMW2GKIEp8FHHYilP48CFH0oAtg2QOZT9JmrBlkjRQlqDwQhtNF1inkB6F5qVIoCxCMQMtzQZpaDMUEZTNUESg/WWDP9AiFDMo81IkoO2xwR60BIUXFSZJA5ozlPxWJxlyQjNImqgySOZgI0fSQFWcwgdLPoo4qsIUQVgKUoRRFaCIwlKUIoAqD0UClnYpPKhhkryEpUuSJmqdk3zrg4W+N5LnqLVJcehAS45Dik3U8hcortcW5ptaWLumKPhRJ8Y2xFDPeUZbZ0584k7RRsqNRrM3tHAzi+YGpudbmB7A1/EPsVkS5mfDSI8AAAAASUVORK5CYII=',
  300. isActive: !0,
  301. id: 1,
  302. path: '/'
  303. },
  304. {
  305. activeIcon:
  306. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAABg9JREFUaN7tmk+IVVUcxz+/c9846sxoWRY6FIiJo+mimoQgMAnb5yIkAnNT4K59C6N2Qm0iDBoMWtSmvZuEhFB3lVqYuoiY0vyvOc343j2nxZz7PPN7v3PvG5tavQOXe+a88/vd8/39/907MBiDMRiDkQxp3PF1W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UYLjo72CHR/NOLtVBunkHIyEGxYTtnP90BpVn5EJv7m3GEUmkGBEtEJZSUrflw+RqdOq+wiwzKigg1F4SgaQyyRXiz6X37zqxWqrbasTrZg9nNitFUJT6UqNhqzkauUbb9SDiy59qOmH1iSH8g35wgLkDO37RfRD1CdXW0M+89ZlOGqoNBzUMoc6k7PorX4o9NFP9d0P6eAworTjM+8D4vzEzV48J6430OdMMddPubo81DFyThphVhh5weXXjl6F41cDIcxfx68Ejl5Wey0eOh817eurfbDeHays10hPtBPYeQrGY703PZOpmJv6oTI5eF21bgLKVbsu7taOafmB6m2m25l+p99+qFAJ16tkmwXkCN1qIRitxJARALSd+4bis59+yGoncv2Q657Y1NDvZgHoVX+k38C4mhbBavSc8d6gLnnW9UOOS/mgsI0ziFzLmmA745SW0+acOEe/mPXu33KDCU7nAb0tbeBQ1q/uqUrX/B6UrFlVdV2lrembo+lBdkmnvn1YyyFEjpmgbqtsXzRoqe6SGi33xU++4y0+tgqRheOgeEbZAzLV89stRVk0HLJOO4WhJetjl0Xfkike4xVE/OI+Gh8ILyK8QWACGKUA3ozRzvIxz0P4sHFBX1OqcKuTdZCLeG4u2JNG2k43MM3g+Qn4ktfl2wf/Cr6Y8VtYwZ+cIoTtZrcbdBMnZ1nNju5H5SUYbkkBPSF/s5w9OLmwwKwssxG5SItXlxLM0gMCeFousJpJCpmikLme6FfIPQqZosXz7LQ/zf+3/3jxb8b5sJY7vEzJxvjR+AxwnB1yicEYjMEYjP9j/AOshrOJdrDqdgAAAABJRU5ErkJggg==',
  307. name: '班级',
  308. normalIcon:
  309. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAAAXNSR0IArs4c6QAAALpQTFRFAAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8hwkwQAAAD10Uk5TAAECBAUHCwwOERcYGR4iIycxMjM1Ojw9P0BJTFFTWF5mbW93goyQl5mor7O8vb/AxszR1Nnc6O3u9fj9/ikUCf8AAAFLSURBVEjH7ZZpc4IwEIYR8KQWz5YaRfBW8MAbkf//t9otQhLDCJnRfinvt312X5Ld2RkiCJlovWkIS6sGsEpB5c6i2lef0q4viv0dza62Snp012dkWSxzdeKcGE+8XHyW7aeWHc0A+jmbRM+GE5Q4BgHNM/QVTuML8iY1GPnX5cgUNIFptwBBgOhxGsAMmlF1caZE9l9MTWBNTpP4s3mWyGkShFbrnqQwsXqRKa/reV6TtPH9jcRpagNrZ7v3h6YasBrvRow8b8S/e6XS8xe2A0Ev2dSDus4tqEOwkJI88gLq6uFGnyA6OljLbpDpLgl4hKpT9O0B83PwGsAbHpMYRAfn1kxyDnzO4HUOX7c4Y9KTd3XCwFmR6vJzuoouvyfr9hFeTT8ejKmwxZ5tIe3zQDmEnoOS/lFRHl/AchmXud4iFTQcokr2Jnusb1r2tiP//VirAAAAAElFTkSuQmCC',
  310. isActive: !1,
  311. id: 3,
  312. path: '/classList',
  313. lightList: [
  314. '/classDetail',
  315. '/classStudentRecode',
  316. '/afterWorkDetail',
  317. '/classStudentDetail'
  318. ]
  319. },
  320. {
  321. activeIcon:
  322. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAACIVJREFUaEPdmn+QVWUZxz/PWVZAVmQ3WHZXVkQifu0FbYmZnQ0LI/+gxDGHJSE1pYk25e7GZCyxEkUDiBE/hkArtZSSgaaSZhprxGXSbLRJA3Gy2MkRCgitQdP4IezTvPfec3nvue/5cXfXmuHduXPvOed93/N8z/d5vs/zvmeFC6zJBYaH/gH0slZxmpkolwN1SObTg3Ak93mNIXQxVt58rx9g7wG9qMM4zW3ADcAMRAdkHo8/o/87fyzvInTxF37OXh5lq7z9XoArHdBBHcgx7kJYjmhlxijPMs3M6B/7s/vHB4Dfmb5yHOEbXMV3WSTv9iew0gDt1RkI2xE1rpVttvE2KzZTpt9B4GlAcyyab0+6gU+z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ZJ2O77rX4nYnlb3SBFuP9dkfwIMZ9tyzuN+fU/coJEefRfUWlIDx7t6SwSU4QXaPwUcbaALF5H8qPwNYK42GjXi5KwGcmbFw+7U57gvKNl/J/XPPtTjIRGK3NC1s18wUSS6LHEC6BwptmtBGgPzbra5s69h/EcBBJD+ut4B2K5Z8KsfX0a9Fqjqu5mB0G4Cjgt+9CXbPWhOYRwX7sjozh41fOF+pFl1SXHzalk/ckc+Jt97JOOFOBLBHpNCOwCn6+mBApprCwtC255DcqcQJOSnXypRkXL9G9K8kp5C5USfgob7PDlJtiM9CgDxakl3FLhPKVSTNUxcSSc4V50XKh5F8oMHpZJVk7/vBLcvdywC6I/Jfr8G5qTABKWlbAC9Fi59EcmADQA7rZmzDXNWLpMufdlIIUHLs7ib9MJzKQpJh3Vf0lOwqYQ5x2O0c9jSxIUmmi8P7cz5JVwuVAZk8cQFa2d3SgRXdzu2Cg1MqL5P0aVcG1LS7BYCquJ15Br8Oho2da71aKZbaz3W5xN2+ALBKs+4WgKridq753I6kMpqka8k2UgRQy9wtx+1cwzXi0E3g+CU+FT+FHlIFUMvcLcftsq5Eo2+Z0bHICbm0Wb9V7tbA7coCctkVB6pMEq9mWP9WzvHDsEv+68vOnqE/NINrK2LWJKPJmWphW5Kzcul8U2RlkY6byHo1Y6pqjmNeo/eqIi5n5vKUCgssO2Q8yRPKDqoSFByuX03+KqTZ+eqNNx22XVGOr9Eick/IgyWtm/Bq4XNLq8BNSf6IycRl01IIUBCZVgXgTJ/35FFkYe6N3mr1+20pQEVW+V/r/APtj6dTDQrOswAAAABJRU5ErkJggg==',
  326. isActive: !1,
  327. id: 2,
  328. path: '/studentList',
  329. lightList: ['/studentDetail']
  330. },
  331. {
  332. activeIcon:
  333. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAABXtJREFUaN7tmU+IVVUcxz+/c+/MJM5EkGHk7FLShZEJ46KgVYsKERREyI3bIIg2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VGt211OPZwpWOoYTBunP+t/1XnlpSHz8GLX8GyNrjknHdL1kZNEko5iPjFOpD1rtnPh1fg4Lzy+L3w8RJ8crl+R5HZ6dCivEiVFq0BEWUHmO5OQ61y5jKcWYrUImT6BF7m7ZXrKecxFCCby5UtCrBhsupUS6tyNKHKhIxEPbSSlVTXeDmvEvV2M2Q8I6Z1lSsbxK0AVtKAChb6Op2WricCYRiiLCBjP6GhnhJXugs5lZtHpLPWV7B01diQl+JLQqVCgwMIDfHNLSKlw0bm0277VvfkdFJCK4l8K+duy0TSWWbcd5nI7Qav0zzd3+8ejEPjzCLScQFdA/5uyJDLFsx7c0KiTkqOSYexwb7cIKDjsggcRsQ/K1hqwdywgbN0GpC5TSmkouAweweb9n6mcELOAvtdSf3Sgjkne3DHUpLOgSqlwzj7ecZv1qdTnxNylnG2I3KyD9iiaWHlKs7SqZlKZ10bexmTDoWcpGA7T/pg2h94Pa8TwAxdphGmOABsarEud9jVzbjz/jkrCAtsZp5tzQdeIxrR//LQOKaXdCeBOUp2UWoYMOwyYfBt/y+AIBXKRcY4wg75Zhj2wjq2YA7V3aiGoc5SNXHi4M7TALqbVeaGZS+sQ6rbksch5PvObpZe+S3dmrb+94CUd93Ta00cajWd9WA6s/3A3huWvXJoQBt4juvyBbALqTdEW1ipJp7jebfn3LKhnbwzcnMjGtGI7oj+BaDf7wKbOrbiAAAAAElFTkSuQmCC',
  334. name: '备课',
  335. normalIcon:
  336. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAAAXNSR0IArs4c6QAAAJxQTFRFAAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////kyDQZAAAADN0Uk5TAAIECQsMDxsjJygtMjU3P0hLTE9VWltdY2Z+f4WKjo+Rk5eZmq24vMTM3+Tp8PH2+Pr9lQIL0gAAAQBJREFUSMftln0TgUAQxgsRSeQlF0IKFVL3/b8bHSK6rtsxZsz0/Lc7+5trnr3bTRAqvUvW9AJp8ichmT5myDelLKMGuIQCNcOEuJTCF0oKcEkFzy+ckYSLioxALikyU4h4YLDcNYgbqdfkHHZPyFkP57UkQGwIJXXaPdCTQGdDmbpvQe1xixvqRfg8b3BCC9LICR+0vvV/3wVAOF6K/BDGQwhkAKBdnRs6TEUOI6wkE1lNLssH18S2w3uNRqv+jy4sGwI9QtBzBw0WwYSMMNCwBI1l2AKArRrYUvsHKV6c70HsKVTIo1vnUaETHTpSIYcOOVSohuxNrmxUq37OcnQBuDed1YUqBEkAAAAASUVORK5CYII=',
  337. isActive: !1,
  338. id: 4,
  339. path: '/prepare-lessons'
  340. },
  341. {
  342. activeIcon:
  343. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAACUhJREFUaEPtmnuM1cUVxz/n3rsPQJbdAq5LQRYBF1hAliVQIlFCgCCikVZohfSBLSL+URMpDbWoaK1SQMGm5dmA4WErWKQNVSqi1raGLQ+JQJG3rxIQFBewFXf3TjN3f7M7O3d+v3u9wbQx/pLNfc3Mbz5zzvmeM/Nb4Qt2yReMhy+B/t8tmp2FlMpjL7dA6m8QQieUuswLp4DtwBuAfm8u8z4JKb/Qn/WryAXgBIqdCJsYwCamSV2uC5cZaI8aj2I+qO4tHNTuad7XA38BjlsweuIGxgbUM9ZwLrDIUWAmS+XZXKDCgZSKsZu5KDWzCcRtbT7r10+Al4DTAYCxgAFyoXyQ9ndK5lPGLOaIjZ2RMRxoh5rXBGMmZ4ZzrfMf4EVAO0+YRVpMNhjItpjtik1tZT5L5McZKawGfqAaNZ6k2hjqYnoA01NP5G/A+x73ceF8MaW72e3cz0q+zq+zd790oJ0qj4scSMWMmbhtIbfHP4Ej1or7Jm0mrPv64sZnPQOGHKWS3tkKRTrQX9UElFofaR0DegrY7biPz+VcyCjoJhBbTGQiT8iGbFwvHegVtQ7UpKbOPjXTP/4b2AEYgQ0L+jQXCpHzyP7yFI/L5Ny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REgn2pEk6/C9982lMZxCAehxcni6ou44O2CbqY7XU2UP5CTPecoeaRVDNbuJ7thkXA6KBg1d9HPd9xtuEbekLxWRi10rJQoHRdSmDxWFFje6BikqrX9D8KZH2FA81RMc4yF4LH+kaG7aF1KXSdx/UyVAnLymFQA1QvbI6h7h1g1nXwvYGiPlWcbx1nkohop/xMVziQGeaHajwwH2U9RLYtpQWi0oKKqA6McDzaGW5rBeU/g16lcO9ImFwl6kIDFz+GBWWJVHkTWg1EEWYG0r21UNj/GqPohARP+bSr3OiJp4hDk6ntYXEXUdsOwegKON/A+Y+SPHZlPvNFRP/XQ85XdkA5D+/vqJSKJ5MsUIoh8TirgVUicvFS3OZ/AnQpJh42xpdAn+fqXoqx/wtRJb5i5JwnywAAAABJRU5ErkJggg==',
  344. name: '制谱',
  345. normalIcon:
  346. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAABd1JREFUaEPlWmnMnUMUfh57Yo3lB6oh0U2UUKFKaCWWqEYoP4h9aSkqigRN+scWCSqtWFotUVtCKw2KBFWxp/Z9CfFDEVtrSe2PPJ95v8w3fd9759736/1u6vy79z0zc545M+c8c2aIdUy4juHB/xuQpA0B7AJgewCb95N3fwbwFYDPSf5Zt88sD0naH8D5AMYD2LLuoBXtVwF4DMDNJF9qd4yGgCRtDWAOgIntDtBmu4UAJpH8odX2lYAkDQGwBMCurXbaT/qfAjiS5Cet9FcKKHjmlQEEU2AwqP1a8VQVoIcqltmXwWvLAaxoZeYa6O4AYB97A8COJXoLSR6XO9YagEIAeLGkg3kAppH8KbfzVvQkbQHgRgBnlrQbkxsoygDdB+CEpNN5JM9qxcB2dSXdUQLqfpIn5vTZB1DIM98modnLbLe15ZnUyOCp95Pl55C+XU6eSgENBfBRMshckpNyZqe/dCQ5VZyd9DeM5MfNxkgBHQzg2aTRZJIeoGMiyRN4ezLgWJLLmhmRAjoKwCNJowkkH23WUX9+lzQGwAtJnwe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aZXtgwoeKnulaTD73KSP8YGSDKRHBz950zvkNwrkspqCueQTG8jSrGt4aEAyAenupfGns1DSZqR/7fGJF/XF/Vq/zWV5Ozou0+rT/mCLbLWNQUHDnu0qZQCCoP3x7X+wyR7AUjyHrghsuqBQH8mADjaExDtsUJtHMn0zqoSWCWgyFN1Hl6kgLyc4lcijlw+QlQV+meTnNrULZFCQ0DRUnAF009jnANyn8aULTmfPF0LGJRh5GI/LSgLGo3aZgGKgOU+XioNCsHrLhDe28AoJ9MZAPw+oc8hL2MSBuZ5mSS/Hbo6HNaK85M9sriMNeQAKXRa8lArHefohrKuj+pNrxpz+rPOgALKNbIVvX8BKm+RU9txS+kAAAAASUVORK5CYII=',
  347. isActive: !1,
  348. id: 8,
  349. path: '/notation'
  350. },
  351. {
  352. activeIcon:
  353. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAACdxJREFUaEPtmg2MVNUVx39ndlh3l4VtWVy7SKUDi1oRqEoVoqBQA1ghBqgfjZFCQ1ONEWnIxtJQXbFaaqwWkLYmbRClVqLELVFBbKuAAgW0IuJHwXYVXBFRZMcFFHdOc2beW+7cfTM7gxiN8SWbeR/33Xf+93/O/5x77wpfskO+ZHj4CtAXndGvGIpk6CUtZTejUMYg9CFGL6CWGCcQo4UYzUBz+jfGOsp5lMGy57Ng++gZUhUeYwLC5QgXIdotHZGx4C/s2a7tPOuZpNLAoJG3+TMT5INjBe7oADXqhQi3I3pGu6y4QFwAIZDwnv0q8DqwDWiV9xFuJc5CFshHnxZYcYAe1r7AH0BHp5nwjfXZcIGZpSlgB/Af4GAArN0CeYMSfsZCeeTTgCoc0FIdCTyEaHW7C/lMuG5lVrmsvQM8DxgHxpAd9hueh9fIr/gjNyLiPikYY2GA/qLXIMwHjRfFStj7a0CTA8IHY8xl3ZNHqOQq7pDWgpEEDTsHtFhvQHSuARGB074OryahzQ96191CpsytLE4+jGDFZSl0x2xQ6yhh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rMkxZeXXbmrSoYf8W8WQaHkv9SP+/fcy+S1vSX9qAW0uYbtvnYi+78pqUbSz7uCwsTE2ue5mzixnp1Q3ehO95r9ni3pwfrb4NJnUhiyvfDSJzptp9mLlWraWVIK3o1oUnGaUJhSZ9AcetHF6RhAK/paiCHtwxpJMfsgKh3tQtqHAuicVOiN8sGAxjZ4gxDNyFSiWV4w0k/dN5rz2Z4dUDmR3hZ8xr32LrP9lOLwKVIzn6tfL1LjpWNNhZ/5YE3DLFQAjR2SLAJU6X6TKBOpMvceR6nT2tnHcEAF1Ngx1jygbOfEM5DPvHxWmhrQJhs02v4Y8KFZkZR10wEqVsowfaGjYNsr8zIBrGgAJS2kDUn5koFmnjXTm/X1Y9MDKqAmDetPlpS2YxD1TEUzPcpUNK8NS1T5WddoeDZABdTCnlNs51nm/Q36zPx+2Xcitu/ueGSbHVABNfeDV5FzUpmJ1/s/XFLXk03Kni3KvCL5aUQPSGqv7NLHiQ9eI84ZnyRzjdJnpS2/y/brgCs7/CeWu0BSrBEg6Xkyjj4587+G/xZJe/VZdDCgomjWR+M7Ja0qfvHTjHN7NpQBy7+A2iIt67LRWvtxKkCVtWZ51t8mfb/t/J4hE9Tko2npi5LyU4JemglQBWzoDy82WKhal5D85TKzGwoqz5Zvm1T5zwWo3kn105iMaTNeys9j8v+ekQ81/Lm+iaCZBcT5++gbZf0tQ5AvDNAQZV08trcus4yXlAPIDD2/Uch47BpJ359G9sMOaJrNDuF9FNCQU3o4eR4CP9q2U8C2ZKUAAAAASUVORK5CYII=',
  357. isActive: !1,
  358. id: 5,
  359. lightList: ['/xiaoku-music'],
  360. path: '/xiaoku-ai'
  361. },
  362. {
  363. activeIcon:
  364. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAAAXNSR0IArs4c6QAAAnxQTFRFAAAAAGv/AHD/AIr/AI//AJT/AJn/AJ7/AKP/AKj/AML/AMf/AMz/ANH/AGj/AGv/AG//AHL/AHX/AHn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j4epKrFMjL0O5CAb17tIXrq7QhJH30FF35DCkmhUEiSdPvrHixaW4bMxirw63z5oNVzxbB3ypP/+hdQkdw4WB9R+AAAAABJRU5ErkJggg==',
  365. name: '资源',
  366. normalIcon:
  367. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAAAXNSR0IArs4c6QAAAFRQTFRFAAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////MF88lgAAABt0Uk5TAAgKExofJjI/QEFMTWFlaYKip6irsLjo7PX2C7BfrQAAAM1JREFUSMftltsOwiAMQOu8oJbLZN75//80JKKwjg1Qoyb0rSc7GevabgB/EAx7wQhfz3qONiQ04ZdleB8zEIzwQyDhkISE76YlASACcJpTqX0+c2tzBaB83i8E3o8T5E7yOCz2x1Wu1JyNuTaZ0tbmm0wpuK5KL0tTbeQ4jjWsBJCR7o9LHICPSYlD+ODRce8s7yJrwC0QobyQ3C0WLn0ukH1p7+Ufr6QQRSUvernlbVTUsHXcq/SBvUc+1CldjnH+3r2nx3jyD1XAfztuUOl9K6RVlMIAAAAASUVORK5CYII=',
  368. isActive: !1,
  369. id: 6,
  370. path: '/natural-resources'
  371. },
  372. {
  373. activeIcon:
  374. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAABlRJREFUaEPdmutrXFUUxddNFaRG/SAikYqiIGqgoBSrgqhR0CDiA5+0itgkok19VEptDWkxlRKrUYtaHEREIj4Q0VZb1IhKQQL6D/hN6SAo+IAivjr3yBrOTvase+5MUmbokMAwkztz7uzfWfvstc9JMiyxn2yJ8aBzQCFkmMUQMqxDhn5kobf+bfboyapYhhGszA60c1I7A/Rd6MM/mAbCQANEAxDhsiouzs7sbiAqcxAzSZieqBAJ7PWqnrZOaltvVp/pr8IwQqjUA+aPqmIw9t7qbgf6IswCYXUdxEPpawO9tNuBPg+H6wXAFDAQ/2x5wWuXdzvQp3mYSzMPZYocAfA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UJahDlQQKo/QkLNyUyl3XUFgDks9Qh6hhAcuKuXUWbCqPWQxC9YGJM+CtQHJs2BtQPLo5EBT9qHccj60ziPkESqYFCZJOaVTqwap+ui7P3tI7dSqQao+BSR1atUgVZ8Ckjq1apCqTwFJnVo1SNU7UFuB+zypeljVe4Q8QoVXwZ5yTcoc36F3JwUv27+VpUktNWVUvVc5r3IVVDl1OP1X/RTHB/X4IemnOODFbxRGv9ZXD5gnQPEH5Qheg970GmvMGzdrjQNZe9T6/7qz3AOANwBxc8/hiR8+PZP8aI3tAn3OCKZl2JG8vRigZaXcHDbNORt/AMTgwFOlSWKtAAAAAElFTkSuQmCC',
  378. isActive: !1,
  379. id: 7,
  380. path: '/data-module'
  381. }
  382. ]),
  383. r = e => {
  384. n.forEach(n => {
  385. (n.isActive = !1),
  386. n.id == e.id &&
  387. ((n.isActive = !0), e.path && t.push(e.path));
  388. });
  389. };
  390. f(t => {
  391. a(t.path);
  392. });
  393. const a = t => {
  394. n.forEach(e => {
  395. (e.isActive = !1),
  396. (e.path === t || e.lightList?.includes(t)) &&
  397. (e.isActive = !0);
  398. });
  399. };
  400. return (
  401. d(() => {
  402. a(e.path);
  403. }),
  404. () =>
  405. i(s, null, [
  406. i('div', { class: q.silder }, [
  407. i('div', { class: q.logoWrap }, [
  408. i(
  409. o,
  410. { class: q.logo, src: K, previewDisabled: !0 },
  411. null
  412. )
  413. ]),
  414. i('div', { class: q.sliderList }, [
  415. n.map(t => i(Z, { onCheckNavBar: r, item: t }, null))
  416. ])
  417. ])
  418. ])
  419. );
  420. }
  421. }),
  422. $ = n({
  423. name: 'imGroup',
  424. setup() {
  425. const t = p();
  426. r(!1);
  427. const e = r(),
  428. n = r(!1),
  429. a = `${
  430. /(localhost|192)/.test(location.host)
  431. ? 'https://test.lexiaoya.cn'
  432. : /online.lexiaoya.cn/.test(location.href)
  433. ? 'https://kt.colexiu.com'
  434. : location.origin
  435. }/classroom-im/?userID=${
  436. t.getUserInfo.imUserId
  437. }&Authorization=${t.getToken}&t=${+new Date()}`;
  438. return () =>
  439. i('div', { class: q.imGroupContainer }, [
  440. i(
  441. g,
  442. { show: !n.value },
  443. {
  444. default: () => [
  445. i(
  446. 'iframe',
  447. {
  448. ref: e,
  449. onLoad: () => {
  450. n.value = !0;
  451. },
  452. class: [q.container],
  453. frameborder: '0',
  454. src: a
  455. },
  456. null
  457. )
  458. ]
  459. }
  460. )
  461. ]);
  462. }
  463. }),
  464. tt = '_suggestOption_j4g0v_1',
  465. et = '_suggestSelect_j4g0v_10',
  466. nt = '_inBack_j4g0v_69',
  467. rt = '_isAni_j4g0v_78',
  468. at = '_inBackBottom_j4g0v_81',
  469. it = '_inFront_j4g0v_90',
  470. ot = '_submitBtn_j4g0v_97',
  471. st = '_updatePassword_j4g0v_108',
  472. lt = '_formWrap_j4g0v_118',
  473. ct = '_sealing_j4g0v_121',
  474. ut = '_formTitle_j4g0v_145',
  475. ft = '_bgLine_j4g0v_149',
  476. dt = '_formWrapInfo_j4g0v_159',
  477. pt = '_closeBtn_j4g0v_162',
  478. gt = '_countInput_j4g0v_171',
  479. mt = '_addInput_j4g0v_196',
  480. vt = '_messageWrap_j4g0v_228',
  481. ht = '' + new URL('bg-line-7cb142ce.png', e.meta.url).href,
  482. At = '' + new URL('inFront-5893f599.png', e.meta.url).href,
  483. bt = '' + new URL('submitBtn-eeef99db.png', e.meta.url).href,
  484. wt = '' + new URL('sealing-3ca78c97.png', e.meta.url).href,
  485. kt = '' + new URL('boxBg-7cf5b952.png', e.meta.url).href,
  486. yt = n({
  487. name: 'train-update',
  488. emits: ['close', 'submit'],
  489. setup(t, { emit: e }) {
  490. const n = v(),
  491. a = p(),
  492. l = u({
  493. suggestionTypeId: null,
  494. clientType: 'TEACHER',
  495. content: '',
  496. attachmentUrls: '',
  497. type: 'APP',
  498. mobileNo: a.getUserInfo.phone
  499. }),
  500. c = u([]),
  501. f = r(!1),
  502. g = r([]),
  503. I = 'https://gyt.ks3-cn-beijing.ksyuncs.com/',
  504. E = r(),
  505. C = r([]),
  506. B = r(),
  507. x = r(!1);
  508. r();
  509. const S = r(''),
  510. D = r(''),
  511. R = async () => {
  512. B.value?.validate(async t => {
  513. if (t) return;
  514. const n = C.value
  515. .map(t => {
  516. console.log(t, 'item');
  517. const e = t.name,
  518. n = `${t.id + e}`;
  519. return I + n;
  520. })
  521. .join(',');
  522. try {
  523. await ((r = { ...l, attachmentUrls: n }),
  524. m.post('/edu-app/sysSuggestion/save', { data: r })),
  525. (f.value = !0),
  526. setTimeout(() => {
  527. e('close');
  528. }, 3e3);
  529. } catch (a) {
  530. console.log(a);
  531. }
  532. var r;
  533. console.log('onSubmit');
  534. });
  535. },
  536. Q = async () => {
  537. try {
  538. const e = await ((t = { rows: 9999, page: 1 }),
  539. m.post('/edu-app/sysSuggestionType/page', { data: t }));
  540. g.value = e.data.rows;
  541. } catch (e) {
  542. console.log(e);
  543. }
  544. var t;
  545. },
  546. _ = async () => {
  547. try {
  548. const { data: e } = await ((t = {
  549. page: 1,
  550. rows: 999,
  551. group: 'OTHER'
  552. }),
  553. m.post('/edu-app/sysParamConfig/page', { data: t })),
  554. n = e.rows || [];
  555. (S.value = n.find(
  556. t => 'customer_service_email' == t.paramName
  557. ).paramValue),
  558. (D.value = n.find(
  559. t => 'customer_service_phone' == t.paramName
  560. ).paramValue),
  561. console.log(S.value, D.value);
  562. } catch (e) {
  563. console.log('请求报错'), console.log(e);
  564. }
  565. var t;
  566. };
  567. return (
  568. d(() => {
  569. Q(), _();
  570. }),
  571. () =>
  572. i('div', { class: tt }, [
  573. i('div', { class: [st, f.value ? rt : ''] }, [
  574. i('div', { class: [lt, f.value ? rt : ''] }, [
  575. i(
  576. o,
  577. {
  578. class: pt,
  579. src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAACw5JREFUeF7tnX2MVFcZxp93BhYoSCiFwu4sLehSdbWg1rSVtrE1kQqlWFu2lpimKkF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H4rgoTjm1gwLesUALgpYSKC6Ps5ZcoOEXXGA+8y2G3jxlioRSc29Qq9YwEqw/LPmPXiAFlYn8R0UTqBXNOCiQOq26oM2LCHwo6S/MmggdAO4jyLqvVDdx/AAgcbh8oY3A7jEOJd/UtWChSCakv5CTgPY5kKmXq1rESsA3J3E2ysD2MlM5dImg/tBLAVY77Ba5MUMYA8IVII3AEsJ3A1yvAcT2qoYwD6krlvLUWfOYx6Ar1KwAOQ4H+ZCqWoABySrejkJBXewB/dAMJfkxIBM+zJjAPuSr3Tlhlamd3fgelqYR+R7+HUgI9E6EqchaBprk3VrOflsN26F4CbLgtr2O1vXRkEDOIKvxqzNHHv0KG6AhZsIfIbALAAzwujlBnAEgEu5rN/AcR+cwyctYpYIriVQJ8B0ENMJjvYapgHsVTlN9dSq2oyNmNJ9HjPYg+kUTAGhcplMErn4s/C3Sn0xikCVCKqKv/8fYSl83YHzUrUAAAAASUVORK5CYII=',
  580. previewDisabled: !0,
  581. onClick: () => e('close')
  582. },
  583. null
  584. ),
  585. i(o, { class: ft, src: ht, previewDisabled: !0 }, null),
  586. i('h2', { class: ut }, [h('意见反馈')]),
  587. i('div', { class: dt }, [
  588. i(
  589. A,
  590. {
  591. labelAlign: 'right',
  592. labelPlacement: 'left',
  593. labelWidth: 'auto',
  594. ref: B,
  595. model: l,
  596. requireMarkPlacement: 'left'
  597. },
  598. {
  599. default: () => [
  600. i(
  601. b,
  602. {
  603. rule: [
  604. {
  605. required: !0,
  606. message: '请选择反馈类型'
  607. }
  608. ],
  609. path: 'suggestionTypeId'
  610. },
  611. {
  612. default: () => [
  613. i(
  614. N,
  615. w(
  616. {
  617. class: et,
  618. 'value-field': 'id',
  619. 'label-field': 'name',
  620. style: { width: '227px!important' }
  621. },
  622. {
  623. options: g.value,
  624. placeholder: '反馈类型(必选)',
  625. clearable: !0,
  626. inline: !0
  627. },
  628. {
  629. value: l.suggestionTypeId,
  630. 'onUpdate:value': t =>
  631. (l.suggestionTypeId = t)
  632. }
  633. ),
  634. null
  635. )
  636. ]
  637. }
  638. ),
  639. i(
  640. b,
  641. {
  642. path: 'content',
  643. rule: [
  644. {
  645. required: !0,
  646. message: '请输入反馈内容'
  647. }
  648. ]
  649. },
  650. {
  651. default: () => [
  652. i(
  653. k,
  654. {
  655. class: gt,
  656. type: 'textarea',
  657. rows: 5,
  658. placeholder: '请输入反馈内容',
  659. maxlength: 200,
  660. resizable: !1,
  661. showCount: !0,
  662. value: l.content,
  663. 'onUpdate:value': t => (l.content = t)
  664. },
  665. null
  666. )
  667. ]
  668. }
  669. ),
  670. i(b, null, {
  671. default: () => [
  672. i(
  673. y,
  674. {
  675. 'list-type': 'image-card',
  676. accept: '.jpg,jpeg,.png',
  677. fileList: C.value,
  678. 'onUpdate:fileList': t => (C.value = t),
  679. ref: E,
  680. multiple: !0,
  681. max: 5,
  682. data: t => {
  683. const e = c.find(
  684. e => e.id == t.file.id
  685. ),
  686. {
  687. id: n,
  688. tempFiileBuffer: r,
  689. ...a
  690. } = e;
  691. return { ...a };
  692. },
  693. showPreviewButton: !0,
  694. action: I,
  695. onBeforeUpload: t =>
  696. (async t => {
  697. console.log(t, 'onBeforeUpload');
  698. const e = t.file;
  699. let r = !0;
  700. if (
  701. ((r =
  702. e.file.size / 1024 / 1024 < 2),
  703. !r)
  704. )
  705. return (
  706. n.error('文件大小不能超过2M'),
  707. !1
  708. );
  709. if (!r) return r;
  710. try {
  711. x.value = !0;
  712. const t = e.file.name,
  713. n = `${e.id + t}`,
  714. r = {
  715. filename: n,
  716. bucketName: 'gyt',
  717. postData: {
  718. filename: n,
  719. acl: 'public-read',
  720. key: n,
  721. unknowValueField: []
  722. }
  723. },
  724. { data: a } = await U(r);
  725. c.push({
  726. id: e.id,
  727. tempFiileBuffer: e.file,
  728. policy: a.policy,
  729. signature: a.signature,
  730. acl: 'public-read',
  731. key: n,
  732. KSSAccessKeyId:
  733. a.kssAccessKeyId,
  734. name: n
  735. });
  736. } catch {
  737. return (x.value = !1), !1;
  738. }
  739. return !0;
  740. })(t),
  741. onRemove: t =>
  742. (async t => {
  743. console.log(t), (x.value = !1);
  744. })(t),
  745. onFinish: t =>
  746. (t => {
  747. t.file.name, t.file.id;
  748. })(t)
  749. },
  750. {
  751. default: () => [
  752. i('div', { class: mt }, [
  753. i(
  754. o,
  755. {
  756. previewDisabled: !0,
  757. src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAABGCAYAAABxLuKEAAAAAXNSR0IArs4c6QAACbpJREFUeF7tm39wFPUVwN/bzSaXEglMHA/5UdsRW9oqlNEKgre7l6N1AMkMba/+aK2OnUIVFCVip7TjpGM7TCkRFCsz1BlamFrb2KmAGMhwye53nUp/UG1pLSoUtBC8BskwCCG5232dL3OX7m32bvcud5eL5vtn9n3f973Pve93377vC8LYcCWAY1zcCYyByRIZY2A+SmBmbqdxp3tgHRAsJQQJAXYF6mDNv5fjWb9Hx4cyYia30m4iujUTArLuZlARkfzA+dCBmfoE3Wha9Ec350UB1ROrUf9ogmmlb5hEO9ycFxDvP9mMW8oCZsGCBfWJRKIRAD5BRA1EVMwovCgIwl5d1//sxxkuM6WV7rGItrnJI+Kq7mZ8yo+ugp2QZfmTRPRjAPgqAEh+FitQxgKARYZh7PMzf0TBKIoStSzrlwBQ68fYIsjsMAzjm370jBgYRVHusCzrVwBQcLT5cdAug4gtjLEf+pk3ImDC4fCnk8nka9kiBREvEhEP/WKNfkR8ORAILO/o6DjvR+mIgJFl+XdE9GWHgWcQ8VFBEPZpmnbCj/GllCk7GFVVJ5mm2e3YQj2SJM3u7Ow8WUpn7bqnPE0NmIDrLDPrgX8LATW7vpUAnwGAF12fiWCSBW93N+N/+HNf50Q4HL4+mUyuAoC7HHv/64yx58oBpYVI2PoEbCKAlVDclCDDfET8+YRpsDInmEgk8tmBgYEnAWCBi/M0ceLE+l27dp0rB5gprbTaImotx1r8sM8KRlGUJUT0HBHVZTHmXcMwriqHoXyNya30VyKaXY71EPCoKxhFUW6yLEsDgOochhw1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9R+3xEfMZPU+UQMKmOAt6XIjgUHkbEbUTEv3MqNnp4I5JpmrMR8V4icrbbJiRJ+kxnZ+dRL9iufb6yLG8oNI33WnAknwuC8Liu6/xO3HO4gkmdNbweMnjR5amp8gVeiEQit/GuKz+mZm2ZT8FpJaIHnNvKj+JKkeHFcwDY0NjYuNYvFG6753+fRCKRmQMDA2sQ8VYiKvnVaBGB8v+j2i1J0vpYLPZGvno9waQV8r4Xy7KmCYIQJKJS/nNovj5kyPNrWEEQTjU0NJzwe8XitqBvMMOydhROHgOT5UcbAzMGJr/9PBYxYxEzFjH5Ecgi/T+KhnjGMNyfXQAAAABJRU5ErkJggg=='
  758. },
  759. null
  760. ),
  761. i('p', null, [h(' 点击上传图片')]),
  762. i('p', null, [h('(最多五张)')])
  763. ])
  764. ]
  765. }
  766. )
  767. ]
  768. })
  769. ]
  770. }
  771. )
  772. ])
  773. ]),
  774. i('div', { class: [nt, f.value ? rt : ''] }, null),
  775. i(o, { src: kt, class: at, previewDisabled: !0 }, null),
  776. i(o, { src: At, class: it, previewDisabled: !0 }, null),
  777. i(
  778. o,
  779. {
  780. src: wt,
  781. class: [ct, f.value ? rt : ''],
  782. previewDisabled: !0
  783. },
  784. null
  785. ),
  786. f.value
  787. ? null
  788. : i(s, null, [
  789. i(
  790. o,
  791. {
  792. src: bt,
  793. onClick: () => {
  794. R();
  795. },
  796. class: ot,
  797. previewDisabled: !0
  798. },
  799. null
  800. ),
  801. i('div', { class: vt }, [
  802. D.value
  803. ? i('p', null, [h('客服电话:'), D.value])
  804. : null,
  805. S.value
  806. ? i('p', null, [h('邮箱:'), S.value])
  807. : null
  808. ])
  809. ])
  810. ])
  811. ])
  812. );
  813. }
  814. }),
  815. It = n({
  816. name: 'layoutTop',
  817. setup() {
  818. const t = l(),
  819. e = r(0),
  820. n = r(!1),
  821. a = r(!1),
  822. c = r(!0),
  823. u = r(!1),
  824. f = p(),
  825. g = r(!1),
  826. { info: m } = I(f),
  827. v = document.querySelector('body');
  828. v && (v.className = 'myBody body'),
  829. d(() => {
  830. window.addEventListener('message', A),
  831. (a.value = !0),
  832. E(() => {
  833. setTimeout(() => {
  834. a.value = !1;
  835. }, 50),
  836. setTimeout(() => {
  837. (c.value = !1), v && (v.className = 'myBody');
  838. }, 1e3);
  839. });
  840. });
  841. const A = t => {
  842. 'onImClose' === t.data.api
  843. ? (a.value = !1)
  844. : 'getNoReadMessageCount' === t.data.api &&
  845. (console.log(t, 'onMessage'),
  846. (e.value = t.data.count || 0));
  847. };
  848. return (
  849. C(() => {
  850. window.removeEventListener('message', A);
  851. }),
  852. () =>
  853. i(s, null, [
  854. i('div', { class: q.layoutTop }, [
  855. i('div', { class: q.layoutLeft }, [
  856. i(
  857. o,
  858. {
  859. src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAADlZJREFUeF7tWm2MVNUZfs7M7JewgkWLYnSBFUWwxlBFayWE+FmoJRKLNlat1f4oKg4QkyZNmibaaqoWF4oSU0tqRFNRSa0abdpaq7FardSK+FEoVYHdZT9gd77nzsxpnnPeM3P37p1lvYSsBiaZ3J2Ze2fnfc7zPu/zvucqHOYPdZjHjyMAHGHAYY7AkRQ4zAlwRAQ/Uwr8dKtubCngqayHORWFo5SGjisYFGMKWvFvBcQg78XMa+1e8zwlL8yB59przLV8DxpojqNrfAs2LmlTdx9qho4agAc/1HP/04NXFdAwPg40KCAeBxISBI9EgoDw4Y4SoAlWgLJ/y2tzmQONgAEoVYCUB93aiP9ee5o65VCCMGoAfvSaHtQVtE5qBOIxoFEBCQIRs6vogIjZVTfv8TEscN/Ku8+DIBkiaGBXGpjUjE1L2tXSQwXCqABY87aetSODrZMboRpjQEKeDJ5/c7X5ZPAmJdzq+o+O7iZqC1AQpCHXKSBTAgbyyF4/U40bUwDu36J/8WkGtx/XaAMm/RuE/gSEqWAAcBoQCNzR3FGfwQRXfcg5whKmwq4U9E2zjHIckseoGLB6i36gK4cfTmo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Pg/VZNim5GTh+4AAAAASUVORK5CYII=',
  860. class: q.schoolIcon,
  861. previewDisabled: !0
  862. },
  863. null
  864. ),
  865. i('p', null, [
  866. m.value?.schoolInfos[0]?.name || '',
  867. '22:52'
  868. ])
  869. ]),
  870. i('div', { class: q.layoutRight }, [
  871. i(B, null, {
  872. trigger: () =>
  873. i(
  874. 'div',
  875. {
  876. class: q.optons,
  877. onClick: () => (u.value = !0)
  878. },
  879. [
  880. i(
  881. o,
  882. {
  883. src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABz9JREFUeF7lW2tMVEcU/mYXFmHBhSZCaKqiUh/FVgukaGMUUbQqqa8YBYFiEYnVVNNYsFqbKKAF3xa1oVGJr1IVaw20wUdFeagBKfhIrdHaagMCKrtSFlDYaWZxb1mWZe+9u7i7MAnhx55zZr7vzpw5M3MOgYCmVFIPQprCNKBTAQwkFK9TwBugzgLMWFCUNBKgihJUAvhbApJHaZ8cd3dSx7cTwkewrr4xmLRq1oKQYEqpAx8da8kQQlpAab5UKkl2c3O+aGocXRJQX9/s16JpSQXFDFOGbPJ3glwHiUOim5vTLWPjM0qAStUYSUG/o5T2sUlwPAdFCGkiIHEKhfPhzlQMCKCUSlSqxo0UNJFnH3YhRkBSFQrnNYQQTfsBGxCgVKpTKWiCXaASOEhGgru7y2qjBLBpr6GaQwLt2pW4hEii2i8HbgYwh9eqaS219zVv6mswnyCVSAN1jpEjQKlqyKUU000Z6BG/E+R6KORhDIuWALbPo1VzoUeA4wtCKpno4eacryVAqWw4S4HJfHWNyanValRXV6OhocFcU53qy+VyeHl5wcXFxWz7BDjn7i4PJSy8BWmsMSfCO/XTj/gh6yhKS0tBKTV7cF0ZIIQgMDAQ8xdEYNbM2aL7aosYnT2JStUYpaGag2Is1dbWYNmypSgruyZG3Wwdf/8A7N69F/36eYqyJSGSaFKnUh8GpQuFWqire4rZc2bin4cPhapaVL7/gAE4mX0KHh6v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fAnNkf4vqN65wddiHR2cOFMVRLP4nH2TN52p9ZYkNJSVmnot0N/uUSEP48vmvXDrA/XWPJS1nfH8OIt/x4BR+LFy9Cfn5bUhpLeioqumqg9yrAA6RRVIIEe/ObNCkYLCtM1xwdHREdHYP3gsbAq0OGiEzmqI3PdfkD0R9FcqHrG/37I/9CgR4BrwY8yxFkCRIiU2Q6enJTn37I4CE4djwbCoU7wsPnoaSkpM0HyOWYEDwRz58/x4sXL7T/q6oqwTJBdM1SDs9gjCxFRmySFDPGtjJGBN+2fkMyFkZEov0SMKXbbeC1DoAcMStNjtnIPnEMaZvT8OTJY1NYkJGxDyEhk7Q6iatNJ6R3K3gA2jQ5SyRKsszQs+fOoKigAJVVlQaZouyEFho6BXFx8RxJGRnf4sjRw3hcWwvmP2QyJzg6OkDm5ASZgyN8fHywJH4pAgICTRIrRoBLlGTKlkqVFTMQa+lwqbJsAL0+WVpLgqohx26Lo4ROo47p8ky/1xdMMBJ6dcmMbhYpleqve1rFmA6byaIpJviybG5TT6scIyBpCoXzFybL5nRs9drCyfYOtc0xtqTZazEVIfhZKnFIEFU6254IeyyeplJJCiuKMrVD8qoe/99B9rzy+f8ACU1JpSzL2oEAAAAASUVORK5CYII=',
  884. previewDisabled: !0
  885. },
  886. null
  887. )
  888. ]
  889. ),
  890. default: '意见反馈'
  891. }),
  892. i('div', { onClick: () => (a.value = !0) }, [
  893. i(
  894. x,
  895. w(
  896. {
  897. value: e.value,
  898. max: 99,
  899. class: [
  900. e.value > 0 ? '' : q.messageBadgeHide,
  901. q.messageBadge,
  902. e.value > 0 ? '' : q.messageBadgeNo
  903. ]
  904. },
  905. { id: 'home-2' },
  906. { color: '#FF1036' }
  907. ),
  908. {
  909. default: () => [
  910. i(
  911. o,
  912. {
  913. class: [
  914. q.messageIcon,
  915. e.value > 0 ? q.animation : ''
  916. ],
  917. 'preview-disabled': !0,
  918. src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAA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qaF5fbSzuaaQlhVHiyKKHr6Qu4sLKYL0clmz+NVlWGVIf4jD4A9eRtfjqqO0VHKnyrP7RwCX097VODzz+O2LZAwGjltnQrfH/nH9NhZ3WxxEoIoRWvETe0qZEItpOELJGxfIsO02rj7GpZvv1AjAGzs7Mj2mD9enJefGhA5YdciqfDpx6C6XLmZgz14GrcEJ5VgSE8fxH/Ww8KZFDicL5KqpTI5gSqLS8aXydVSoaS4lgjhZiiUZKS1USorRGVRaYylsjwAtVAsLaoxQphVLJbmQVBOPliHm6MshaByuTwPgL5DrOE2TOh9Ad8p1jBbZoxriConx9bDjjGjeS9umuJXAWuby7y3qt51jhGyGkHeC2psmzOthIbaOFnRneodo2513W2mIingpHMFtc5WAqIuNk9L8CVriqopPlpUxFcf2+f/B/FhjfJc8533AAAAAElFTkSuQmCC'
  919. },
  920. null
  921. )
  922. ]
  923. }
  924. )
  925. ]),
  926. i('div', { class: q.line }, null),
  927. i(
  928. S,
  929. {
  930. 'show-arrow': !1,
  931. trigger: 'click',
  932. 'onUpdate:show': t => {
  933. n.value = t;
  934. },
  935. class: q.popoverHeader,
  936. placement: 'bottom-end',
  937. raw: !0
  938. },
  939. {
  940. default: () => [
  941. i('div', { class: q.propWrap }, [
  942. i('div', { class: q.teacherInfo }, [
  943. i(
  944. o,
  945. {
  946. class: q.teacherIcon,
  947. src: m.value.avatar ? m.value.avatar : Y,
  948. previewDisabled: !0
  949. },
  950. null
  951. ),
  952. i(
  953. B,
  954. { class: q.nameTool },
  955. {
  956. trigger: () =>
  957. i('p', { class: q.teacherName }, [
  958. m.value.nickname
  959. ]),
  960. default: () => m.value.nickname
  961. }
  962. )
  963. ]),
  964. i('div', { class: q.propWrapList }, [
  965. i(
  966. 'div',
  967. {
  968. class: q.propWrapItem,
  969. onClick: () => {
  970. t.push({
  971. path: '/setting',
  972. query: { activeTab: 'person' }
  973. });
  974. }
  975. },
  976. [
  977. ' ',
  978. i(
  979. o,
  980. {
  981. class: q.smallIcon,
  982. src: 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Cz1tod711dxhozYxiG7uz2fKtjPyLWHTQRfThasFEVVkqtBoAdzbCI+CMiPqq1difocZtbuACwnZlv8IM0oNcQ0UetgrcEDsPwXmb+pAnWIuKrzPyiMebcuEm9id3d3VP6+/tfYuZnAUBEQw4aEVdqrb8478k2f7F48eJ5g4ODPzHzNG/snBBidasAEwHuBLLWOkUv86BPM/P1xhh3+zlsIxRu1Ng+Zi56E2uIuOpiwUZ5Gk/VXXUFXu6S1nqpv0ZGAIdh+JS19vUm1R4zxmyfCCXjYkgp1wHA276fEOJprfUbwz8i+rB8+fLLBwYGfmfmmd6Eb4wxd8YlmshxKeXXALDCU/lER0fHvJ6enr/dd8MKSykfBgD/ruGvIAgWlsvloT11sqxQKMys1Wru+H+Fl3OtMcZdJP4L7GpXKfULAFzrOW02xrjX8KSblHKT26u9xL8S0SJXy0PAjeacPIfBqVOnXn3gwAH3H8Wk25IlS2adPXu2HwCmRMmDIFDuhnMIWCm1gZlf8+rmMyLqnnRSL6FS6lNmvt9jeoaItgwBSym/BAD3L9CQCSHWa63fupTAYRg+bq3d5jHsNMbcEwG7BqbDA75Oa+1q+pJZGIaLrLU/ewADxpgZUUkcZeY5jcHjRDQnaUNzsX5RYyM4BgCzXQ5EPEZEcyOFVyBitGGvI6JvLxZImrhKqTtcg9SYM8QV2w+nSTAZvm0H/A9sj59NR4d0TwAAAABJRU5ErkJggg==',
  983. previewDisabled: !0
  984. },
  985. null
  986. ),
  987. i('p', { class: q.smallTitle }, [
  988. h('个人信息')
  989. ])
  990. ]
  991. ),
  992. m.value.isSuperAdmin
  993. ? i(
  994. 'div',
  995. {
  996. class: q.propWrapItem,
  997. onClick: () => {
  998. t.push({
  999. path: '/setting',
  1000. query: { activeTab: 'school' }
  1001. });
  1002. }
  1003. },
  1004. [
  1005. ' ',
  1006. i(
  1007. o,
  1008. {
  1009. class: q.smallIcon,
  1010. src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAuCAYAAABTTPsKAAAAAXN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BoCCFeV0p9nLtKCCGyNE1/bjQaWzfgvaC5FrAsS0spP0PEp4noIl+Rcg0J13Vf4QqKiP7iMnMf4BMAsG4YxmnP89Zy93Bf1m51LdH3cN/DG62qw+785Cpr3SSL3eb0ZY09Mz09LWZnZ99GxAe01g9zt7FSqdSFEOezLFs/iIcB4MUoiu7ZCIkGIr61i727kiR5mTun5XK5LqU8T0SXa7Xa54h4M1lt3R6q1epFIppIkiRptVrczEYppTYMIz0gLF/bRRzHBbZjmmZrc/MORT+2Wi2uV9AwDN47419E/FAp9eZ/gSkMQ+DewFEZfH80TZPrkktKqYd2ALuu+wQRfbNRJxwV6psdF0S81/d9bpfdRn97HZWwaIvzowq2G1dXPYaj9FLHDvhfSfj+a3KiLJcAAAAASUVORK5CYII=',
  1011. previewDisabled: !0
  1012. },
  1013. null
  1014. ),
  1015. i('p', { class: q.smallTitle }, [
  1016. h('学校信息')
  1017. ])
  1018. ]
  1019. )
  1020. : null,
  1021. i(
  1022. 'div',
  1023. {
  1024. class: q.propWrapItem,
  1025. onClick: () => {
  1026. g.value = !0;
  1027. }
  1028. },
  1029. [
  1030. ' ',
  1031. i(
  1032. o,
  1033. {
  1034. class: q.smallIcon,
  1035. src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAuCAYAAABTTPsKAAAAAXNSR0IArs4c6QAAA5xJREFUaEPtmU2IHFUQx//Vk53o6MGVBDSK0UXFk0HqNYu7WVzBj4MLiiIouS0S4kFCLjHkNEfNQcQPyAfxFDwJCmtEUCKyyOzuVIERBCWrREiCcQWFxsw6ZrqkYadpxxnnzfRk3MC8Y3dV/X/v393V73UTrrNBeXmZeVsQBHvMbAbAQwC2mVlARL8D+MbMKmNjY6eWlpbO59VK8vsGnpmZ2V6r1V43sz0Ail1gDMDpYrF4oFKprOYB7ws4DMNnzeyEmd3ao/ifRHRIRN7sMS8N7xmYmfcBeBdA0K8ogLdUdX8/+T0BO+eeNrOP2gh9R0THieiL8fHxc1EUxfV6fSeA3UQ0b2YPt+YQ0asicqRXaG9gZr4LwFkAt2RFiOgNMzukqn91Emfm5wG8B+DmZgwRNQA8IiJf9QLtDeycO2lm85ni9UKh8MLKysqHPoLM/CgRfWJmN2SgKyIy5ZOf5vgET01N7azX66tmtiUj9oqIvOOT34xh5qcAfNxyhR4Xkc9963g5HIbh/jiO0yebiL6dm5t7sFwux75CzTjn3Adm9lxm4kdF5GXfOl7AzPwpgCfzuJsBfszMPssAnlfVewYK7Jz70czSokT0gIh87yuSjWPmMQAXAWzfOH5OVe/3reXlsHPuipnd2CxaLBZLlUql5ivSGsfMzxDR22Z2lYj2ikjW8f8s2xW4XC4HCwsLSQtqjlhVC/3C5s0bAed1sFv+yOFuDuU9f307HIbhbXEcv5YsSgDsyLiRXaAni/GOC53cDhJdMLMzpVLp8OLi4lprvdTh6enpHevr619nGnpe7bz5lwDsUtVfs4VSYGY+BSDZ7mymcUJV93YCTl6X2dtgM4D/67WddTi5N9MxMTGxddjEa2trpSiKfsvoXlHVmzo5/A9gVe3aQQY9IWYuAfijWZeIaiKSHEtHR4dHwB6XY+gOJ98r4jg+BiDZicyr6mkPzjRk6MDM/Eumj/+kqndvWuDZ2dktURSlb0Aiuioiye7CewzV4RFw8qXyWra1kcMjh9s8+8x8AcAdG6dWVfU+7xYBYKhdIgFj5icAJN/bGkEQ7KtWq19uauBe4NrFDt3hEfC17MN53d14BnpaDyebvtsHITzAGj+o6r1tF/DOuffN7MUBiuUuRUQnReSltsCTk5N3NhqNs338e8sN1q4AEV0uFAq7lpeXL7cFTg5uQB8xs9n/8fa4SERniOhgtVr9uXUyQ99o5r0cfwN+KBdNo1siPQAAAABJRU5ErkJggg==',
  1036. previewDisabled: !0
  1037. },
  1038. null
  1039. ),
  1040. i('p', { class: q.smallTitle }, [
  1041. h('修改密码')
  1042. ])
  1043. ]
  1044. )
  1045. ]),
  1046. i(
  1047. 'div',
  1048. {
  1049. class: q.logoutInfo,
  1050. onClick: () => {
  1051. f.logout(), t.replace('/login');
  1052. }
  1053. },
  1054. [
  1055. i('div', { class: q.propWrapItem }, [
  1056. i(
  1057. o,
  1058. {
  1059. class: q.smallIcon,
  1060. src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAuCAYAAABTTPsKAAAAAXNSR0IArs4c6QAABfJJREFUaEPtmH+IVUUUx8/MvA3LZz/YyjRU2MpCQcM7c59sKiuEpLKakH/YDwxNI8LsD43MhAU1o/yjFITKFaNffxiUu6QhQQ81692ZiRKSsthQabMfS5prSnvvnJjlvsf4fD/ue7urCc6f780553PP/d4z5wyBK2yRK4wXhgR42rRpN9lEHDx48K/BTsigA3POFyHi2xaUELJYKfXBYEIPBXAOEf0YOFBKZf7XwJ7nfQcAE2LII1rriVeBk2agubn51r6+vqUAcDIIgp2EECy2TZJhRCS+7y8GgFENDQ3thw4d+j0pQ2INCyEmGmP2AMBY65xS+qyU8vV6gIUQK40xr8W2xymlc6SUVkpVVyJgzvn9iPghANzgeNyutV5WD7DneW8CgGt7mhDykFLqs2rEVYE5548BwA5ETDnOTlFKZ0opv6kHWAhxrzEm6yaAEBICwBKl1DuVoCsC+74/OYqiAACucZwco5TOLfcKk2jY+spkMhPCMLQSG+f4/pcx5gdB8G056LLALS0tw86cOaOdEmUPAskYa83lcr+Vc5gUOIYeGUVRJyIKx9+RESNGeNls9nypGGWBOedbEHGFY/R9Y2Mj37dv39lKr6wWYOtn1qxZw3t6ehQA3JP3SwjZqpR6JjGwEKLZGPOFY9AHAFO11l9X+yhqBY4z7YVh+CUANOT9U0rvk1IeKo5XMsOc8w5EbHU2r9Fav1wN1v5fD3Bs9zwAbHKy3KmUmlcVmHPehIg/2d4l3vxLU1PTuF27dkVDCbxw4ULW1dV1DABuj+MgIeROpVSXG/eiDAshVhljXnVezQYp5boksAPJsLUVQqw3xrzoxF4tpdxcEdjzvP0AMD3/lIyxO4Ig+PlSAJd4uwe01jPKAre1tdHOzs6/AWC43UQIqbk9rFfDeSjOeaE9BYCzra2t17e1tZmC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YAAAAASUVORK5CYII=',
  1061. previewDisabled: !0
  1062. },
  1063. null
  1064. ),
  1065. i('p', { class: q.smallTitle }, [
  1066. h('退出登录')
  1067. ])
  1068. ])
  1069. ]
  1070. )
  1071. ])
  1072. ],
  1073. trigger: () =>
  1074. i('div', { class: q.mesgWrap }, [
  1075. i(
  1076. o,
  1077. {
  1078. 'preview-disabled': !0,
  1079. class: q.teacherIcon,
  1080. src: m.value.avatar ? m.value.avatar : Y
  1081. },
  1082. null
  1083. ),
  1084. i(
  1085. D,
  1086. {
  1087. class: n.value ? q.rotueLeft : q.rotueRight
  1088. },
  1089. {
  1090. default: () => [
  1091. i(
  1092. 'svg',
  1093. {
  1094. xmlns: 'http://www.w3.org/2000/svg',
  1095. viewBox: '0 0 24 24'
  1096. },
  1097. [
  1098. i(
  1099. 'path',
  1100. {
  1101. d: 'M7.38 21.01c.49.49 1.28.49 1.77 0l8.31-8.31a.996.996 0 0 0 0-1.41L9.15 2.98c-.49-.49-1.28-.49-1.77 0s-.49 1.28 0 1.77L14.62 12l-7.25 7.25c-.48.48-.48 1.28.01 1.76z',
  1102. fill: 'currentColor'
  1103. },
  1104. null
  1105. )
  1106. ]
  1107. )
  1108. ]
  1109. }
  1110. )
  1111. ])
  1112. }
  1113. )
  1114. ]),
  1115. i(
  1116. R,
  1117. {
  1118. class: q.changePwdModal,
  1119. show: g.value,
  1120. 'onUpdate:show': t => (g.value = t),
  1121. preset: 'dialog',
  1122. showIcon: !1,
  1123. title: '修改密码'
  1124. },
  1125. {
  1126. default: () => [
  1127. i(
  1128. G,
  1129. {
  1130. phone: m.value.phone,
  1131. onClose: () => {
  1132. g.value = !1;
  1133. }
  1134. },
  1135. null
  1136. )
  1137. ]
  1138. }
  1139. ),
  1140. i(
  1141. R,
  1142. w(
  1143. {
  1144. show: a.value,
  1145. 'onUpdate:show': t => (a.value = t),
  1146. showIcon: !1,
  1147. class: c.value ? q.hideModal : ''
  1148. },
  1149. { id: 'imGroupDiv' },
  1150. { displayDirective: 'show' }
  1151. ),
  1152. { default: () => [i($, null, null)] }
  1153. ),
  1154. i(
  1155. R,
  1156. {
  1157. class: ['modalTitle', 'background', q.suggestWrap],
  1158. show: u.value,
  1159. 'onUpdate:show': t => (u.value = t),
  1160. preset: 'card',
  1161. showIcon: !1
  1162. },
  1163. {
  1164. default: () => [
  1165. i(yt, { onClose: () => (u.value = !1) }, null)
  1166. ]
  1167. }
  1168. )
  1169. ])
  1170. ])
  1171. );
  1172. }
  1173. });
  1174. function Et(t) {
  1175. for (var e = [], n = 1; n < arguments.length; n++)
  1176. e[n - 1] = arguments[n];
  1177. return e
  1178. .map(function (e) {
  1179. return e
  1180. .split(' ')
  1181. .map(function (e) {
  1182. return e ? '' + t + e : '';
  1183. })
  1184. .join(' ');
  1185. })
  1186. .join(' ');
  1187. }
  1188. function Ct(t, e) {
  1189. return function (n) {
  1190. n && (t[e] = n);
  1191. };
  1192. }
  1193. function Bt(t, e, n) {
  1194. return function (r) {
  1195. r && (t[e][n] = r);
  1196. };
  1197. }
  1198. function xt(t, e) {
  1199. return function (n) {
  1200. var r = n.prototype;
  1201. t.forEach(function (t) {
  1202. e(r, t);
  1203. });
  1204. };
  1205. }
  1206. var St = 'function',
  1207. Dt = 'object',
  1208. Rt = 'string',
  1209. Qt = 'number',
  1210. _t = 'undefined',
  1211. Ot = typeof window !== _t,
  1212. Mt = typeof document !== _t && document,
  1213. Tt = [
  1214. { open: '(', close: ')' },
  1215. { open: '"', close: '"' },
  1216. { open: "'", close: "'" },
  1217. { open: '\\"', close: '\\"' },
  1218. { open: "\\'", close: "\\'" }
  1219. ],
  1220. zt = 1e-7,
  1221. Pt = {
  1222. cm: function (t) {
  1223. return (96 * t) / 2.54;
  1224. },
  1225. mm: function (t) {
  1226. return (96 * t) / 254;
  1227. },
  1228. in: function (t) {
  1229. return 96 * t;
  1230. },
  1231. pt: function (t) {
  1232. return (96 * t) / 72;
  1233. },
  1234. pc: function (t) {
  1235. return (96 * t) / 6;
  1236. },
  1237. '%': function (t, e) {
  1238. return (t * e) / 100;
  1239. },
  1240. vw: function (t, e) {
  1241. return void 0 === e && (e = window.innerWidth), (t / 100) * e;
  1242. },
  1243. vh: function (t, e) {
  1244. return void 0 === e && (e = window.innerHeight), (t / 100) * e;
  1245. },
  1246. vmax: function (t, e) {
  1247. return (
  1248. void 0 === e &&
  1249. (e = Math.max(window.innerWidth, window.innerHeight)),
  1250. (t / 100) * e
  1251. );
  1252. },
  1253. vmin: function (t, e) {
  1254. return (
  1255. void 0 === e &&
  1256. (e = Math.min(window.innerWidth, window.innerHeight)),
  1257. (t / 100) * e
  1258. );
  1259. }
  1260. };
  1261. function Yt(t, e, n, r) {
  1262. return (t * r + e * n) / (n + r);
  1263. }
  1264. function Gt(t) {
  1265. return typeof t === _t;
  1266. }
  1267. function Nt(t) {
  1268. return t && typeof t === Dt;
  1269. }
  1270. function Ut(t) {
  1271. return Array.isArray(t);
  1272. }
  1273. function Ft(t) {
  1274. return typeof t === Rt;
  1275. }
  1276. function Lt(t) {
  1277. return typeof t === Qt;
  1278. }
  1279. function Xt(t) {
  1280. return typeof t === St;
  1281. }
  1282. function jt(t, e, n, r, a) {
  1283. return Wt(t, e, n)
  1284. ? n
  1285. : (function (t, e, n, r, a) {
  1286. for (
  1287. var i,
  1288. o = function (n) {
  1289. var o = e[n].trim();
  1290. if (o === t.close && !Wt(t, e, n)) return { value: n };
  1291. var s = n,
  1292. l = ee(a, function (t) {
  1293. return t.open === o;
  1294. });
  1295. if ((l && (s = jt(l, e, n, r, a)), -1 === s))
  1296. return (i = n), 'break';
  1297. i = n = s;
  1298. },
  1299. s = n;
  1300. s < r;
  1301. ++s
  1302. ) {
  1303. var l = o(s);
  1304. if (((s = i), 'object' == typeof l)) return l.value;
  1305. if ('break' === l) break;
  1306. }
  1307. return -1;
  1308. })(t, e, n + 1, r, a);
  1309. }
  1310. function Wt(t, e, n) {
  1311. if (!t.ignore) return null;
  1312. var r = e.slice(Math.max(n - 3, 0), n + 3).join('');
  1313. return new RegExp(t.ignore).exec(r);
  1314. }
  1315. function Ht(t, e) {
  1316. var n = Ft(e) ? { separator: e } : e,
  1317. r = n.separator,
  1318. a = void 0 === r ? ',' : r,
  1319. i = n.isSeparateFirst,
  1320. o = n.isSeparateOnlyOpenClose,
  1321. s = n.isSeparateOpenClose,
  1322. l = void 0 === s ? o : s,
  1323. c = n.openCloseCharacters,
  1324. u = void 0 === c ? Tt : c,
  1325. f = u
  1326. .map(function (t) {
  1327. var e = t.open,
  1328. n = t.close;
  1329. return e === n ? e : e + '|' + n;
  1330. })
  1331. .join('|'),
  1332. d = new RegExp('(\\s*' + a + '\\s*|' + f + '|\\s+)', 'g'),
  1333. p = t.split(d).filter(function (t) {
  1334. return t && 'undefined' !== t;
  1335. }),
  1336. g = p.length,
  1337. m = [],
  1338. v = [];
  1339. function h() {
  1340. return !!v.length && (m.push(v.join('')), (v = []), !0);
  1341. }
  1342. for (
  1343. var A,
  1344. b = function (e) {
  1345. var n = p[e].trim(),
  1346. r = e,
  1347. s = ee(u, function (t) {
  1348. return t.open === n;
  1349. }),
  1350. c = ee(u, function (t) {
  1351. return t.close === n;
  1352. });
  1353. if (s) {
  1354. if (-1 !== (r = jt(s, p, e, g, u)) && l)
  1355. return h() && i
  1356. ? ((A = e), 'break')
  1357. : (m.push(p.slice(e, r + 1).join('')),
  1358. (e = r),
  1359. i ? ((A = e), 'break') : ((A = e), 'continue'));
  1360. } else {
  1361. if (c && !Wt(c, p, e)) {
  1362. var f =
  1363. /*! *****************************************************************************
  1364. Copyright (c) Microsoft Corporation.
  1365. Permission to use, copy, modify, and/or distribute this software for any
  1366. purpose with or without fee is hereby granted.
  1367. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  1368. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  1369. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  1370. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  1371. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  1372. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  1373. PERFORMANCE OF THIS SOFTWARE.
  1374. ***************************************************************************** */
  1375. (function () {
  1376. for (var t = 0, e = 0, n = arguments.length; e < n; e++)
  1377. t += arguments[e].length;
  1378. var r = Array(t),
  1379. a = 0;
  1380. for (e = 0; e < n; e++)
  1381. for (
  1382. var i = arguments[e], o = 0, s = i.length;
  1383. o < s;
  1384. o++, a++
  1385. )
  1386. r[a] = i[o];
  1387. return r;
  1388. })(u);
  1389. return (
  1390. f.splice(u.indexOf(c), 1),
  1391. {
  1392. value: Ht(t, {
  1393. separator: a,
  1394. isSeparateFirst: i,
  1395. isSeparateOnlyOpenClose: o,
  1396. isSeparateOpenClose: l,
  1397. openCloseCharacters: f
  1398. })
  1399. }
  1400. );
  1401. }
  1402. if (
  1403. (function (t, e) {
  1404. return (
  1405. (('' === e || ' ' == e) && ('' === t || ' ' == t)) ||
  1406. t === e
  1407. );
  1408. })(n, a) &&
  1409. !o
  1410. )
  1411. return h(), i ? ((A = e), 'break') : ((A = e), 'continue');
  1412. }
  1413. -1 === r && (r = g - 1),
  1414. v.push(p.slice(e, r + 1).join('')),
  1415. (A = e = r);
  1416. },
  1417. w = 0;
  1418. w < g;
  1419. ++w
  1420. ) {
  1421. var k = b(w);
  1422. if (((w = A), 'object' == typeof k)) return k.value;
  1423. if ('break' === k) break;
  1424. }
  1425. return v.length && m.push(v.join('')), m;
  1426. }
  1427. function Vt(t) {
  1428. return Ht(t, '');
  1429. }
  1430. function qt(t) {
  1431. return Ht(t, ',');
  1432. }
  1433. function Kt(t) {
  1434. var e = /([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(t);
  1435. return !e || e.length < 4
  1436. ? {}
  1437. : { prefix: e[1], value: e[2], suffix: e[3] };
  1438. }
  1439. function Zt(t) {
  1440. var e = /^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(t);
  1441. if (!e) return { prefix: '', unit: '', value: NaN };
  1442. var n = e[1],
  1443. r = e[2];
  1444. return { prefix: n, unit: e[3], value: parseFloat(r) };
  1445. }
  1446. function Jt(t, e) {
  1447. return (
  1448. void 0 === e && (e = '-'),
  1449. t.replace(/([a-z])([A-Z])/g, function (t, n, r) {
  1450. return '' + n + e + r.toLowerCase();
  1451. })
  1452. );
  1453. }
  1454. function $t() {
  1455. return Date.now ? Date.now() : new Date().getTime();
  1456. }
  1457. function te(t, e, n) {
  1458. void 0 === n && (n = -1);
  1459. for (var r = t.length, a = 0; a < r; ++a) if (e(t[a], a, t)) return a;
  1460. return n;
  1461. }
  1462. function ee(t, e, n) {
  1463. var r = te(t, e);
  1464. return r > -1 ? t[r] : n;
  1465. }
  1466. var ne = (function () {
  1467. var t = $t(),
  1468. e =
  1469. Ot &&
  1470. (window.requestAnimationFrame ||
  1471. window.webkitRequestAnimationFrame ||
  1472. window.mozRequestAnimationFrame ||
  1473. window.msRequestAnimationFrame);
  1474. return e
  1475. ? e.bind(window)
  1476. : function (e) {
  1477. var n = $t();
  1478. return setTimeout(function () {
  1479. e(n - t);
  1480. }, 1e3 / 60);
  1481. };
  1482. })(),
  1483. re = (function () {
  1484. var t =
  1485. Ot &&
  1486. (window.cancelAnimationFrame ||
  1487. window.webkitCancelAnimationFrame ||
  1488. window.mozCancelAnimationFrame ||
  1489. window.msCancelAnimationFrame);
  1490. return t
  1491. ? t.bind(window)
  1492. : function (t) {
  1493. clearTimeout(t);
  1494. };
  1495. })();
  1496. function ae(t) {
  1497. return Object.keys(t);
  1498. }
  1499. function ie(t, e) {
  1500. var n = Zt(t),
  1501. r = n.value,
  1502. a = n.unit;
  1503. if (Nt(e)) {
  1504. var i = e[a];
  1505. if (i) {
  1506. if (Xt(i)) return i(r);
  1507. if (Pt[a]) return Pt[a](r, i);
  1508. }
  1509. } else if ('%' === a) return (r * e) / 100;
  1510. return Pt[a] ? Pt[a](r) : r;
  1511. }
  1512. function oe(t, e, n) {
  1513. return Math.max(e, Math.min(t, n));
  1514. }
  1515. function se(t, e, n, r) {
  1516. return (
  1517. void 0 === r && (r = t[0] / t[1]),
  1518. [
  1519. [pe(e[0], zt), pe(e[0] / r, zt)],
  1520. [pe(e[1] * r, zt), pe(e[1], zt)]
  1521. ].filter(function (t) {
  1522. return t.every(function (t, r) {
  1523. var a = e[r],
  1524. i = pe(a, zt);
  1525. return n ? t <= a || t <= i : t >= a || t >= i;
  1526. });
  1527. })[0] || t
  1528. );
  1529. }
  1530. function le(t, e, n, r) {
  1531. if (!r)
  1532. return t.map(function (t, r) {
  1533. return oe(t, e[r], n[r]);
  1534. });
  1535. var a = t[0],
  1536. i = t[1],
  1537. o = !0 === r ? a / i : r,
  1538. s = se(t, e, !1, o),
  1539. l = s[0],
  1540. c = s[1],
  1541. u = se(t, n, !0, o),
  1542. f = u[0],
  1543. d = u[1];
  1544. return (
  1545. a < l || i < c
  1546. ? ((a = l), (i = c))
  1547. : (a > f || i > d) && ((a = f), (i = d)),
  1548. [a, i]
  1549. );
  1550. }
  1551. function ce(t) {
  1552. for (var e = t.length, n = 0, r = e - 1; r >= 0; --r) n += t[r];
  1553. return e ? n / e : 0;
  1554. }
  1555. function ue(t, e) {
  1556. var n = e[0] - t[0],
  1557. r = e[1] - t[1],
  1558. a = Math.atan2(r, n);
  1559. return a >= 0 ? a : a + 2 * Math.PI;
  1560. }
  1561. function fe(t) {
  1562. var e = (function (t) {
  1563. return [0, 1].map(function (e) {
  1564. return ce(
  1565. t.map(function (t) {
  1566. return t[e];
  1567. })
  1568. );
  1569. });
  1570. })(t),
  1571. n = ue(e, t[0]),
  1572. r = ue(e, t[1]);
  1573. return (n < r && r - n < Math.PI) || (n > r && r - n < -Math.PI)
  1574. ? 1
  1575. : -1;
  1576. }
  1577. function de(t, e) {
  1578. return Math.sqrt(
  1579. Math.pow((e ? e[0] : 0) - t[0], 2) +
  1580. Math.pow((e ? e[1] : 0) - t[1], 2)
  1581. );
  1582. }
  1583. function pe(t, e) {
  1584. if (!e) return t;
  1585. var n = 1 / e;
  1586. return Math.round(t / e) / n;
  1587. }
  1588. function ge(t, e) {
  1589. return (
  1590. t.forEach(function (n, r) {
  1591. t[r] = pe(t[r], e);
  1592. }),
  1593. t
  1594. );
  1595. }
  1596. function me(t, e) {
  1597. -1 === t.indexOf(e) && t.push(e);
  1598. }
  1599. function ve(t, e) {
  1600. return t.classList
  1601. ? t.classList.contains(e)
  1602. : !!t.className.match(new RegExp('(\\s|^)' + e + '(\\s|$)'));
  1603. }
  1604. function he(t, e) {
  1605. t.classList ? t.classList.add(e) : (t.className += ' ' + e);
  1606. }
  1607. function Ae(t, e) {
  1608. if (t.classList) t.classList.remove(e);
  1609. else {
  1610. var n = new RegExp('(\\s|^)' + e + '(\\s|$)');
  1611. t.className = t.className.replace(n, ' ');
  1612. }
  1613. }
  1614. function be(t, e, n, r) {
  1615. t.addEventListener(e, n, r);
  1616. }
  1617. function we(t, e, n, r) {
  1618. t.removeEventListener(e, n, r);
  1619. }
  1620. function ke(t) {
  1621. return (null == t ? void 0 : t.ownerDocument) || Mt;
  1622. }
  1623. function ye(t) {
  1624. return ke(t).documentElement;
  1625. }
  1626. function Ie(t) {
  1627. return ke(t).body;
  1628. }
  1629. function Ee(t) {
  1630. var e;
  1631. return (
  1632. (null === (e = null == t ? void 0 : t.ownerDocument) || void 0 === e
  1633. ? void 0
  1634. : e.defaultView) || window
  1635. );
  1636. }
  1637. function Ce(t) {
  1638. return t && 'postMessage' in t && 'blur' in t && 'self' in t;
  1639. }
  1640. function Be(t) {
  1641. return Nt(t) && t.nodeName && t.nodeType && 'ownerDocument' in t;
  1642. }
  1643. var xe = (function () {
  1644. function t() {
  1645. (this.keys = []), (this.values = []);
  1646. }
  1647. var e = t.prototype;
  1648. return (
  1649. (e.get = function (t) {
  1650. return this.values[this.keys.indexOf(t)];
  1651. }),
  1652. (e.set = function (t, e) {
  1653. var n = this.keys,
  1654. r = this.values,
  1655. a = n.indexOf(t),
  1656. i = -1 === a ? n.length : a;
  1657. (n[i] = t), (r[i] = e);
  1658. }),
  1659. t
  1660. );
  1661. })(),
  1662. Se = (function () {
  1663. function t() {
  1664. this.object = {};
  1665. }
  1666. var e = t.prototype;
  1667. return (
  1668. (e.get = function (t) {
  1669. return this.object[t];
  1670. }),
  1671. (e.set = function (t, e) {
  1672. this.object[t] = e;
  1673. }),
  1674. t
  1675. );
  1676. })(),
  1677. De = 'function' == typeof Map,
  1678. Re = (function () {
  1679. function t() {}
  1680. var e = t.prototype;
  1681. return (
  1682. (e.connect = function (t, e) {
  1683. (this.prev = t),
  1684. (this.next = e),
  1685. t && (t.next = this),
  1686. e && (e.prev = this);
  1687. }),
  1688. (e.disconnect = function () {
  1689. var t = this.prev,
  1690. e = this.next;
  1691. t && (t.next = e), e && (e.prev = t);
  1692. }),
  1693. (e.getIndex = function () {
  1694. for (var t = this, e = -1; t; ) (t = t.prev), ++e;
  1695. return e;
  1696. }),
  1697. t
  1698. );
  1699. })(),
  1700. Qe = (function () {
  1701. function t(t, e, n, r, a, i, o, s) {
  1702. (this.prevList = t),
  1703. (this.list = e),
  1704. (this.added = n),
  1705. (this.removed = r),
  1706. (this.changed = a),
  1707. (this.maintained = i),
  1708. (this.changedBeforeAdded = o),
  1709. (this.fixed = s);
  1710. }
  1711. var e = t.prototype;
  1712. return (
  1713. Object.defineProperty(e, 'ordered', {
  1714. get: function () {
  1715. return (
  1716. this.cacheOrdered || this.caculateOrdered(),
  1717. this.cacheOrdered
  1718. );
  1719. },
  1720. enumerable: !0,
  1721. configurable: !0
  1722. }),
  1723. Object.defineProperty(e, 'pureChanged', {
  1724. get: function () {
  1725. return (
  1726. this.cachePureChanged || this.caculateOrdered(),
  1727. this.cachePureChanged
  1728. );
  1729. },
  1730. enumerable: !0,
  1731. configurable: !0
  1732. }),
  1733. (e.caculateOrdered = function () {
  1734. var t = (function (t, e) {
  1735. var n = [],
  1736. r = [];
  1737. return (
  1738. t.forEach(function (t) {
  1739. var e = t[0],
  1740. a = t[1],
  1741. i = new Re();
  1742. (n[e] = i), (r[a] = i);
  1743. }),
  1744. n.forEach(function (t, e) {
  1745. t.connect(n[e - 1]);
  1746. }),
  1747. t
  1748. .filter(function (t, n) {
  1749. return !e[n];
  1750. })
  1751. .map(function (t, e) {
  1752. var a = t[0],
  1753. i = t[1];
  1754. if (a === i) return [0, 0];
  1755. var o = n[a],
  1756. s = r[i - 1],
  1757. l = o.getIndex();
  1758. return (
  1759. o.disconnect(),
  1760. s ? o.connect(s, s.next) : o.connect(void 0, n[0]),
  1761. [l, o.getIndex()]
  1762. );
  1763. })
  1764. );
  1765. })(this.changedBeforeAdded, this.fixed),
  1766. e = this.changed,
  1767. n = [];
  1768. (this.cacheOrdered = t.filter(function (t, r) {
  1769. var a = t[0],
  1770. i = t[1],
  1771. o = e[r],
  1772. s = o[0],
  1773. l = o[1];
  1774. if (a !== i) return n.push([s, l]), !0;
  1775. })),
  1776. (this.cachePureChanged = n);
  1777. }),
  1778. t
  1779. );
  1780. })();
  1781. function _e(t, e, n) {
  1782. var r = De ? Map : n ? Se : xe,
  1783. a =
  1784. n ||
  1785. function (t) {
  1786. return t;
  1787. },
  1788. i = [],
  1789. o = [],
  1790. s = [],
  1791. l = t.map(a),
  1792. c = e.map(a),
  1793. u = new r(),
  1794. f = new r(),
  1795. d = [],
  1796. p = [],
  1797. g = {},
  1798. m = [],
  1799. v = 0,
  1800. h = 0;
  1801. return (
  1802. l.forEach(function (t, e) {
  1803. u.set(t, e);
  1804. }),
  1805. c.forEach(function (t, e) {
  1806. f.set(t, e);
  1807. }),
  1808. l.forEach(function (t, e) {
  1809. var n = f.get(t);
  1810. void 0 === n ? (++h, o.push(e)) : (g[n] = h);
  1811. }),
  1812. c.forEach(function (t, e) {
  1813. var n = u.get(t);
  1814. void 0 === n
  1815. ? (i.push(e), ++v)
  1816. : (s.push([n, e]),
  1817. (h = g[e] || 0),
  1818. d.push([n - h, e - v]),
  1819. p.push(e === n),
  1820. n !== e && m.push([n, e]));
  1821. }),
  1822. o.reverse(),
  1823. new Qe(t, e, i, o, m, s, d, p)
  1824. );
  1825. }
  1826. var Oe = (function () {
  1827. function t(t, e) {
  1828. void 0 === t && (t = []),
  1829. (this.findKeyCallback = e),
  1830. (this.list = [].slice.call(t));
  1831. }
  1832. return (
  1833. (t.prototype.update = function (t) {
  1834. var e = [].slice.call(t),
  1835. n = _e(this.list, e, this.findKeyCallback);
  1836. return (this.list = e), n;
  1837. }),
  1838. t
  1839. );
  1840. })(),
  1841. Me = function (t, e) {
  1842. return (
  1843. (Me =
  1844. Object.setPrototypeOf ||
  1845. ({ __proto__: [] } instanceof Array &&
  1846. function (t, e) {
  1847. t.__proto__ = e;
  1848. }) ||
  1849. function (t, e) {
  1850. for (var n in e)
  1851. Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  1852. }),
  1853. Me(t, e)
  1854. );
  1855. };
  1856. function Te(t, e) {
  1857. if ('function' != typeof e && null !== e)
  1858. throw new TypeError(
  1859. 'Class extends value ' +
  1860. String(e) +
  1861. ' is not a constructor or null'
  1862. );
  1863. function n() {
  1864. this.constructor = t;
  1865. }
  1866. Me(t, e),
  1867. (t.prototype =
  1868. null === e
  1869. ? Object.create(e)
  1870. : ((n.prototype = e.prototype), new n()));
  1871. }
  1872. var ze = function () {
  1873. return (
  1874. (ze =
  1875. Object.assign ||
  1876. function (t) {
  1877. for (var e, n = 1, r = arguments.length; n < r; n++)
  1878. for (var a in (e = arguments[n]))
  1879. Object.prototype.hasOwnProperty.call(e, a) && (t[a] = e[a]);
  1880. return t;
  1881. }),
  1882. ze.apply(this, arguments)
  1883. );
  1884. };
  1885. function Pe(t, e) {
  1886. var n = {};
  1887. for (var r in t)
  1888. Object.prototype.hasOwnProperty.call(t, r) &&
  1889. e.indexOf(r) < 0 &&
  1890. (n[r] = t[r]);
  1891. if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
  1892. var a = 0;
  1893. for (r = Object.getOwnPropertySymbols(t); a < r.length; a++)
  1894. e.indexOf(r[a]) < 0 &&
  1895. Object.prototype.propertyIsEnumerable.call(t, r[a]) &&
  1896. (n[r[a]] = t[r[a]]);
  1897. }
  1898. return n;
  1899. }
  1900. function Ye(t, e, n) {
  1901. if (n || 2 === arguments.length)
  1902. for (var r, a = 0, i = e.length; a < i; a++)
  1903. (!r && a in e) ||
  1904. (r || (r = Array.prototype.slice.call(e, 0, a)), (r[a] = e[a]));
  1905. return t.concat(r || Array.prototype.slice.call(e));
  1906. }
  1907. function Ge(t) {
  1908. var e = 0;
  1909. return t.map(function (t) {
  1910. return null == t ? '$compat'.concat(++e) : ''.concat(t);
  1911. });
  1912. }
  1913. function Ne(t) {
  1914. var e = [];
  1915. return (
  1916. t.forEach(function (t) {
  1917. e = e.concat(Ut(t) ? Ne(t) : t);
  1918. }),
  1919. e
  1920. );
  1921. }
  1922. function Ue(t, e) {
  1923. if (!e) return t;
  1924. for (var n in e) Gt(t[n]) && (t[n] = e[n]);
  1925. return t;
  1926. }
  1927. function Fe(t, e) {
  1928. if (t === e) return !1;
  1929. for (var n in t) if (!(n in e)) return !0;
  1930. for (var n in e) if (t[n] !== e[n]) return !0;
  1931. return !1;
  1932. }
  1933. function Le(t) {
  1934. var e = t.className,
  1935. n = Pe(t, ['className']);
  1936. return (
  1937. null != e && (n.class = e), delete n.style, delete n.children, n
  1938. );
  1939. }
  1940. function Xe(t) {
  1941. var e = {},
  1942. n = {};
  1943. for (var r in t)
  1944. 0 === r.indexOf('on') ? (n[r] = t[r]) : (e[r] = t[r]);
  1945. return [e, n];
  1946. }
  1947. function je(t) {
  1948. if (!t) return null;
  1949. var e = t.b;
  1950. return Be(e) ? e : je(t.c);
  1951. }
  1952. function We(t) {
  1953. var e = t.parentNode;
  1954. e && e.removeChild(t);
  1955. }
  1956. function He(t) {
  1957. t.forEach(function (t) {
  1958. t();
  1959. });
  1960. }
  1961. function Ve() {
  1962. return this.constructor(this.props, this.context);
  1963. }
  1964. var qe = 0,
  1965. Ke = (function () {
  1966. function t(t, e, n, r, a, i, o) {
  1967. void 0 === o && (o = {}),
  1968. (this.t = t),
  1969. (this.d = e),
  1970. (this.k = n),
  1971. (this.i = r),
  1972. (this.c = a),
  1973. (this.ref = i),
  1974. (this.ps = o),
  1975. (this.typ = 'prov'),
  1976. (this._ps = []),
  1977. (this._cs = {}),
  1978. (this._hyd = null),
  1979. (this._sel = !1);
  1980. }
  1981. var e = t.prototype;
  1982. return (
  1983. (e.s = function () {
  1984. return !0;
  1985. }),
  1986. (e.u = function (t, e, n, r, a) {
  1987. var i,
  1988. o = this,
  1989. s = o.d,
  1990. l = Ne(
  1991. ((i = e),
  1992. ae(i).map(function (t) {
  1993. return i[t];
  1994. }))
  1995. .filter(function (t) {
  1996. return t.$_req;
  1997. })
  1998. .map(function (t) {
  1999. return t.$_subs;
  2000. })
  2001. ),
  2002. c = ee(l, function (t) {
  2003. return t.d === s;
  2004. });
  2005. if (o.b && !Ft(n) && !a && !o.s(n.props, r) && !c)
  2006. return (
  2007. l
  2008. .reduce(function (t, e) {
  2009. var n = e.d;
  2010. return (
  2011. t[0] ? t[0].d === n && t.push(e) : n > s && t.push(e),
  2012. t
  2013. );
  2014. }, [])
  2015. .forEach(function (n) {
  2016. dn(n, n._ps, [n.o], t, e, !0);
  2017. }),
  2018. !1
  2019. );
  2020. (o.o = n), o.ss(r);
  2021. var u = o.ps;
  2022. return (
  2023. Ft(n) || ((o.ps = n.props), (o.ref = n.ref)),
  2024. Je(this),
  2025. o.r(t, e, o.b ? u : {}, r),
  2026. !0
  2027. );
  2028. }),
  2029. (e.md = function () {
  2030. this.rr();
  2031. }),
  2032. (e.ss = function () {}),
  2033. (e.ud = function () {
  2034. this.rr();
  2035. }),
  2036. (e.rr = function () {
  2037. var t = this,
  2038. e = t.ref,
  2039. n = t.fr;
  2040. e && e(n ? n.current : t.b);
  2041. }),
  2042. t
  2043. );
  2044. })();
  2045. function Ze() {
  2046. return Object.__CROACT_CURRENT_INSTNACE__;
  2047. }
  2048. function Je(t) {
  2049. return (Object.__CROACT_CURRENT_INSTNACE__ = t), (qe = 0), t;
  2050. }
  2051. var $e = (function () {
  2052. function t(t, e) {
  2053. void 0 === t && (t = {}),
  2054. (this.props = t),
  2055. (this.context = e),
  2056. (this.state = {}),
  2057. (this.$_timer = 0),
  2058. (this.$_state = {}),
  2059. (this.$_subs = []),
  2060. (this.$_cs = {});
  2061. }
  2062. var e = t.prototype;
  2063. return (
  2064. (e.render = function () {
  2065. return null;
  2066. }),
  2067. (e.shouldComponentUpdate = function (t, e) {
  2068. return this.props !== t || this.state !== e;
  2069. }),
  2070. (e.setState = function (t, e, n) {
  2071. var r = this;
  2072. r.$_timer || (r.$_state = {}),
  2073. clearTimeout(r.$_timer),
  2074. (r.$_timer = 0),
  2075. (r.$_state = ze(ze({}, r.$_state), t)),
  2076. n
  2077. ? r.$_setState(e, n)
  2078. : (r.$_timer = window.setTimeout(function () {
  2079. (r.$_timer = 0), r.$_setState(e, n);
  2080. }));
  2081. }),
  2082. (e.forceUpdate = function (t) {
  2083. this.setState({}, t, !0);
  2084. }),
  2085. (e.componentDidMount = function () {}),
  2086. (e.componentDidUpdate = function (t, e) {}),
  2087. (e.componentWillUnmount = function () {}),
  2088. (e.$_setState = function (t, e) {
  2089. var n = [],
  2090. r = this.$_p;
  2091. dn(
  2092. r.c,
  2093. [r],
  2094. [r.o],
  2095. n,
  2096. r._cs,
  2097. ze(ze({}, this.state), this.$_state),
  2098. e
  2099. ) && (t && n.push(t), He(n), Je(null));
  2100. }),
  2101. t
  2102. );
  2103. })(),
  2104. tn = (function (t) {
  2105. function e() {
  2106. return (null !== t && t.apply(this, arguments)) || this;
  2107. }
  2108. return (
  2109. Te(e, t),
  2110. (e.prototype.shouldComponentUpdate = function (t, e) {
  2111. return Fe(this.props, t) || Fe(this.state, e);
  2112. }),
  2113. e
  2114. );
  2115. })($e);
  2116. function en(t) {
  2117. var e = function (t) {
  2118. e.current = t;
  2119. };
  2120. return (e.current = t), e;
  2121. }
  2122. var nn = (function (t) {
  2123. function e(e, n, r, a, i, o, s) {
  2124. void 0 === s && (s = {});
  2125. var l =
  2126. t.call(this, e, n, r, a, i, o, Ue(s, e.defaultProps)) || this;
  2127. return (
  2128. (l.typ = 'comp'),
  2129. (l._usefs = []),
  2130. (l._uefs = []),
  2131. (l._defs = []),
  2132. l
  2133. );
  2134. }
  2135. Te(e, t);
  2136. var n = e.prototype;
  2137. return (
  2138. (n.s = function (t, e) {
  2139. var n = this.b;
  2140. return (
  2141. !1 !==
  2142. n.shouldComponentUpdate(
  2143. Ue(t, this.t.defaultProps),
  2144. e || n.state
  2145. )
  2146. );
  2147. }),
  2148. (n.r = function (t, e, n) {
  2149. var r,
  2150. a,
  2151. i = this,
  2152. o = i.t;
  2153. i.ps = Ue(i.ps, i.t.defaultProps);
  2154. var s = i.ps,
  2155. l = !i.b,
  2156. c = o.contextType,
  2157. u = i.b,
  2158. f = null == c ? void 0 : c.get(i);
  2159. (i._cs = e),
  2160. l
  2161. ? ((u = (function (t, e, n, r) {
  2162. var a, i;
  2163. return (
  2164. (
  2165. null === (a = null == t ? void 0 : t.prototype) ||
  2166. void 0 === a
  2167. ? void 0
  2168. : a.render
  2169. )
  2170. ? (i = new t(e, n))
  2171. : (((i = new $e(e, n)).constructor = t),
  2172. t._fr
  2173. ? ((r.fr = en()),
  2174. (i.render = function () {
  2175. return this.constructor(this.props, r.fr);
  2176. }))
  2177. : (i.render = Ve)),
  2178. (i.$_p = r),
  2179. i
  2180. );
  2181. })(o, s, f, i)),
  2182. (i.b = u))
  2183. : ((u.props = s), (u.context = f));
  2184. var d = u.state;
  2185. (i._usefs = []), (i._uefs = []);
  2186. var p = u.render();
  2187. 0 ===
  2188. (null ===
  2189. (a =
  2190. null === (r = null == p ? void 0 : p.props) || void 0 === r
  2191. ? void 0
  2192. : r.children) || void 0 === a
  2193. ? void 0
  2194. : a.length) && (p.props.children = i.ps.children);
  2195. var g = ze(ze({}, e), u.$_cs);
  2196. dn(i, i._ps, p ? [p] : [], t, g),
  2197. l
  2198. ? i._uefs.push(function () {
  2199. null == c || c.register(i), u.componentDidMount();
  2200. })
  2201. : i._uefs.push(function () {
  2202. u.componentDidUpdate(n, d);
  2203. }),
  2204. t.push(function () {
  2205. i._usefs.forEach(function (t) {
  2206. t();
  2207. }),
  2208. l ? i.md() : i.ud(),
  2209. (i._defs = i._uefs.map(function (t) {
  2210. return t();
  2211. }));
  2212. });
  2213. }),
  2214. (n.ss = function (t) {
  2215. var e = this.b;
  2216. e && t && (e.state = t);
  2217. }),
  2218. (n.un = function () {
  2219. var t,
  2220. e = this;
  2221. e._ps.forEach(function (t) {
  2222. t.un();
  2223. }),
  2224. null === (t = e.t.contextType) ||
  2225. void 0 === t ||
  2226. t.unregister(e),
  2227. clearTimeout(e.b.$_timer),
  2228. e._defs.forEach(function (t) {
  2229. t && t();
  2230. }),
  2231. e.b.componentWillUnmount();
  2232. }),
  2233. e
  2234. );
  2235. })(Ke);
  2236. function rn(t, e) {
  2237. var n = ae(t),
  2238. r = ae(e),
  2239. a = _e(n, r, function (t) {
  2240. return t;
  2241. }),
  2242. i = {},
  2243. o = {},
  2244. s = {};
  2245. return (
  2246. a.added.forEach(function (t) {
  2247. var n = r[t];
  2248. i[n] = e[n];
  2249. }),
  2250. a.removed.forEach(function (e) {
  2251. var r = n[e];
  2252. o[r] = t[r];
  2253. }),
  2254. a.maintained.forEach(function (r) {
  2255. var a = r[0],
  2256. i = n[a],
  2257. o = [t[i], e[i]];
  2258. t[i] !== e[i] && (s[i] = o);
  2259. }),
  2260. { added: i, removed: o, changed: s }
  2261. );
  2262. }
  2263. var an = (function (t) {
  2264. function e() {
  2265. var e = (null !== t && t.apply(this, arguments)) || this;
  2266. return (e.typ = 'elem'), (e._es = {}), (e._svg = !1), e;
  2267. }
  2268. Te(e, t);
  2269. var n = e.prototype;
  2270. return (
  2271. (n.e = function (t, e) {
  2272. var n = this,
  2273. r = n._es,
  2274. a = n.b,
  2275. i = (function (t) {
  2276. return t.replace(/^on/g, '').toLowerCase();
  2277. })(t);
  2278. e
  2279. ? (we(a, i, r[t]), delete r[t])
  2280. : ((r[t] = function (e) {
  2281. var r, a;
  2282. null === (a = (r = n.ps)[t]) ||
  2283. void 0 === a ||
  2284. a.call(r, e);
  2285. }),
  2286. be(a, i, r[t]));
  2287. }),
  2288. (n.s = function (t) {
  2289. return Fe(this.ps, t);
  2290. }),
  2291. (n.r = function (t, e, n) {
  2292. var r,
  2293. a = this,
  2294. i = !a.b,
  2295. o = a.ps;
  2296. if (i) {
  2297. var s = je(a.c),
  2298. l = !1;
  2299. (l = !(!a._svg && 'svg' !== a.t) || (s && s.ownerSVGElement)),
  2300. (a._svg = l);
  2301. var c =
  2302. null === (r = a._hyd) || void 0 === r
  2303. ? void 0
  2304. : r.splice(0, 1)[0],
  2305. u = a.t;
  2306. if (c) a._hyd = [].slice.call(c.children || []);
  2307. else {
  2308. var f = ke(s);
  2309. c = l
  2310. ? f.createElementNS('http://www.w3.org/2000/svg', u)
  2311. : f.createElement(u);
  2312. }
  2313. a.b = c;
  2314. }
  2315. dn(a, a._ps, o.children, t, e);
  2316. var d = a.b,
  2317. p = Xe(n),
  2318. g = p[0],
  2319. m = p[1],
  2320. v = Xe(o),
  2321. h = v[0],
  2322. A = v[1];
  2323. return (
  2324. (function (t, e, n) {
  2325. var r = rn(Le(t), Le(e)),
  2326. a = r.added,
  2327. i = r.removed,
  2328. o = r.changed;
  2329. for (var s in a) n.setAttribute(s, a[s]);
  2330. for (var l in o) n.setAttribute(l, o[l][1]);
  2331. for (var c in i) n.removeAttribute(c);
  2332. })(g, h, d),
  2333. (function (t, e, n) {
  2334. var r = rn(t, e),
  2335. a = r.added,
  2336. i = r.removed;
  2337. for (var o in i) n.e(o, !0);
  2338. for (var s in a) n.e(s);
  2339. })(m, A, a),
  2340. (function (t, e, n) {
  2341. var r = n.style,
  2342. a = rn(t, e),
  2343. i = a.added,
  2344. o = a.removed,
  2345. s = a.changed;
  2346. for (var l in i) {
  2347. var c = Jt(l, '-');
  2348. r.setProperty(c, i[l]);
  2349. }
  2350. for (var l in s) {
  2351. var u = Jt(l, '-');
  2352. r.setProperty(u, s[l][1]);
  2353. }
  2354. for (var l in o) {
  2355. var f = Jt(l, '-');
  2356. r.removeProperty(f);
  2357. }
  2358. })(n.style || {}, o.style || {}, d),
  2359. t.push(function () {
  2360. i ? a.md() : a.ud();
  2361. }),
  2362. !0
  2363. );
  2364. }),
  2365. (n.un = function () {
  2366. var t = this,
  2367. e = t._es,
  2368. n = t.b;
  2369. for (var r in e) we(n, r, e[r]);
  2370. t._ps.forEach(function (t) {
  2371. t.un();
  2372. }),
  2373. (t._es = {}),
  2374. t._sel || We(n);
  2375. }),
  2376. e
  2377. );
  2378. })(Ke);
  2379. function on(t) {
  2380. if (!t || Be(t)) return t;
  2381. var e = t.$_p._ps;
  2382. return e.length ? on(e[0].b) : null;
  2383. }
  2384. function sn(t) {
  2385. if (t) {
  2386. if (t.b && Be(t.b)) return t;
  2387. var e = t._ps;
  2388. return e.length ? sn(e[0]) : null;
  2389. }
  2390. }
  2391. function ln(t, e) {
  2392. for (var n = [], r = 2; r < arguments.length; r++)
  2393. n[r - 2] = arguments[r];
  2394. var a,
  2395. i = e || {},
  2396. o = i.key,
  2397. s = i.ref,
  2398. l = Pe(i, ['key', 'ref']);
  2399. return {
  2400. type: t,
  2401. key: o,
  2402. ref: s,
  2403. props: ze(ze({}, l), {
  2404. children: ((a = n),
  2405. a.reduce(function (t, e) {
  2406. return t.concat(e);
  2407. }, [])).filter(function (t) {
  2408. return null != t && !1 !== t;
  2409. })
  2410. })
  2411. };
  2412. }
  2413. var cn = (function (t) {
  2414. function e(e, n) {
  2415. void 0 === n && (n = 0);
  2416. var r =
  2417. t.call(this, 'container', n, 'container', 0, null) || this;
  2418. return (r.typ = 'container'), (r.b = e), r;
  2419. }
  2420. Te(e, t);
  2421. var n = e.prototype;
  2422. return (
  2423. (n.r = function () {
  2424. return !0;
  2425. }),
  2426. (n.un = function () {}),
  2427. e
  2428. );
  2429. })(Ke),
  2430. un = (function (t) {
  2431. function e() {
  2432. var e = (null !== t && t.apply(this, arguments)) || this;
  2433. return (e.typ = 'text'), e;
  2434. }
  2435. Te(e, t);
  2436. var n = e.prototype;
  2437. return (
  2438. (n.r = function (t) {
  2439. var e,
  2440. n = this,
  2441. r = !n.b;
  2442. if (r) {
  2443. var a = je(n.c),
  2444. i =
  2445. null === (e = n._hyd) || void 0 === e
  2446. ? void 0
  2447. : e.splice(0, 1)[0];
  2448. n.b = i || ke(a).createTextNode(n.t.replace('text_', ''));
  2449. }
  2450. return (
  2451. t.push(function () {
  2452. r ? n.md() : n.ud();
  2453. }),
  2454. !0
  2455. );
  2456. }),
  2457. (n.un = function () {
  2458. We(this.b);
  2459. }),
  2460. e
  2461. );
  2462. })(Ke);
  2463. function fn(t, e, n, r) {
  2464. var a = r.d + 1;
  2465. if (Ft(t) || Lt(t))
  2466. return new un('text_'.concat(t), a, e, n, r, null, {});
  2467. var i = t.type;
  2468. return new ('string' == typeof i ? an : nn)(
  2469. i,
  2470. a,
  2471. e,
  2472. n,
  2473. r,
  2474. t.ref,
  2475. t.props
  2476. );
  2477. }
  2478. function dn(t, e, n, r, a, i, o) {
  2479. var s = (function (t, e, n) {
  2480. var r = n.map(function (t) {
  2481. return Ft(t) ? null : t.key;
  2482. }),
  2483. a = _e(
  2484. Ge(
  2485. e.map(function (t) {
  2486. return t.k;
  2487. })
  2488. ),
  2489. Ge(r),
  2490. function (t) {
  2491. return t;
  2492. }
  2493. );
  2494. a.removed.forEach(function (t) {
  2495. e.splice(t, 1)[0].un();
  2496. }),
  2497. a.ordered.forEach(function (t) {
  2498. var n = t[0],
  2499. r = t[1],
  2500. a = e.splice(n, 1)[0];
  2501. e.splice(r, 0, a);
  2502. var i = on(a.b),
  2503. o = on(e[r + 1] && e[r + 1].b);
  2504. i && i.parentNode.insertBefore(i, o);
  2505. }),
  2506. a.added.forEach(function (a) {
  2507. e.splice(a, 0, fn(n[a], r[a], a, t));
  2508. });
  2509. var i = a.maintained.filter(function (a) {
  2510. a[0];
  2511. var i = a[1],
  2512. o = n[i],
  2513. s = e[i];
  2514. return (Ft(o) ? 'text_'.concat(o) : o.type) !== s.t
  2515. ? (s.un(), e.splice(i, 1, fn(o, r[i], i, t)), !0)
  2516. : ((s.i = i), !1);
  2517. });
  2518. return Ye(
  2519. Ye([], a.added, !0),
  2520. i.map(function (t) {
  2521. return t[0], t[1];
  2522. }),
  2523. !0
  2524. );
  2525. })(t, e, n),
  2526. l = t._hyd,
  2527. c = e.filter(function (t, e) {
  2528. return (t._hyd = l), t.u(r, a, n[e], i, o);
  2529. });
  2530. 'container' === t.typ &&
  2531. t._sel &&
  2532. e.forEach(function (t) {
  2533. var e = sn(t);
  2534. e && (e._sel = !0);
  2535. }),
  2536. (t._hyd = null);
  2537. var u = je(t);
  2538. return (
  2539. u &&
  2540. s.reverse().forEach(function (n) {
  2541. var r = e[n],
  2542. a = on(r.b);
  2543. if (a && u !== a && !a.parentNode) {
  2544. var i = (function (t, e) {
  2545. for (var n = t._ps, r = n.length, a = e.i + 1; a < r; ++a) {
  2546. var i = on(n[a].b);
  2547. if (i) return i;
  2548. }
  2549. return null;
  2550. })(t, r);
  2551. u.insertBefore(a, i);
  2552. }
  2553. }),
  2554. c.length > 0
  2555. );
  2556. }
  2557. function pn(t, e, n) {
  2558. return (
  2559. !n &&
  2560. t &&
  2561. (((n = new cn(e.parentElement))._hyd = [e]), (n._sel = !0)),
  2562. (function (t, e, n, r) {
  2563. void 0 === n && (n = e.__CROACT__), void 0 === r && (r = {});
  2564. var a = !!n;
  2565. n || (n = new cn(e));
  2566. var i = [];
  2567. dn(n, n._ps, t ? [t] : [], i, r, void 0, void 0),
  2568. He(i),
  2569. Je(null),
  2570. a || (e.__CROACT__ = n);
  2571. })(t, e, n),
  2572. n
  2573. );
  2574. }
  2575. function gn(t) {
  2576. var e = Ze(),
  2577. n = e._hs || (e._hs = []),
  2578. r = qe,
  2579. a = n[r];
  2580. if (((qe = r + 1), a)) {
  2581. if (!Fe(a.deps, t.deps)) return (a.updated = !1), a;
  2582. n[r] = t;
  2583. } else n.push(t);
  2584. return (t.value = t.func()), (t.updated = !0), t;
  2585. }
  2586. function mn(t) {
  2587. return gn({
  2588. func: function () {
  2589. return en(t);
  2590. },
  2591. deps: []
  2592. }).value;
  2593. }
  2594. function vn(t, e, n) {
  2595. var r = Ze(),
  2596. a = gn({
  2597. func: function () {
  2598. return t;
  2599. },
  2600. deps: e
  2601. }),
  2602. i = n ? r._usefs : r._uefs;
  2603. a.updated
  2604. ? i.push(function () {
  2605. return a.effect && a.effect(), (a.effect = t()), a.effect;
  2606. })
  2607. : i.push(function () {
  2608. return a.effect;
  2609. });
  2610. }
  2611. function hn(t, e) {
  2612. for (var n = t.length, r = 0; r < n; ++r) if (e(t[r], r)) return !0;
  2613. return !1;
  2614. }
  2615. function An(t, e) {
  2616. for (var n = t.length, r = 0; r < n; ++r) if (e(t[r], r)) return t[r];
  2617. return null;
  2618. }
  2619. function bn(t) {
  2620. var e = t;
  2621. if (void 0 === e) {
  2622. if ('undefined' == typeof navigator || !navigator) return '';
  2623. e = navigator.userAgent || '';
  2624. }
  2625. return e.toLowerCase();
  2626. }
  2627. function wn(t, e) {
  2628. try {
  2629. return new RegExp(t, 'g').exec(e);
  2630. } catch (n) {
  2631. return null;
  2632. }
  2633. }
  2634. function kn(t) {
  2635. return t.replace(/_/g, '.');
  2636. }
  2637. function yn(t, e) {
  2638. var n = null,
  2639. r = '-1';
  2640. return (
  2641. hn(t, function (t) {
  2642. var a = wn('(' + t.test + ')((?:\\/|\\s|:)([0-9|\\.|_]+))?', e);
  2643. return !(
  2644. !a ||
  2645. t.brand ||
  2646. ((n = t),
  2647. (r = a[3] || '-1'),
  2648. t.versionAlias
  2649. ? (r = t.versionAlias)
  2650. : t.versionTest &&
  2651. (r =
  2652. (function (t, e) {
  2653. var n = wn(
  2654. '(' + t + ')((?:\\/|\\s|:)([0-9|\\.|_]+))',
  2655. e
  2656. );
  2657. return n ? n[3] : '';
  2658. })(t.versionTest.toLowerCase(), e) || r),
  2659. (r = kn(r)),
  2660. 0)
  2661. );
  2662. }),
  2663. { preset: n, version: r }
  2664. );
  2665. }
  2666. function In(t, e) {
  2667. var n = { brand: '', version: '-1' };
  2668. return (
  2669. hn(t, function (t) {
  2670. var r = En(e, t);
  2671. return (
  2672. !!r &&
  2673. ((n.brand = t.id),
  2674. (n.version = t.versionAlias || r.version),
  2675. '-1' !== n.version)
  2676. );
  2677. }),
  2678. n
  2679. );
  2680. }
  2681. function En(t, e) {
  2682. return An(t, function (t) {
  2683. var n = t.brand;
  2684. return wn('' + e.test, n.toLowerCase());
  2685. });
  2686. }
  2687. var Cn = [
  2688. { test: 'phantomjs', id: 'phantomjs' },
  2689. { test: 'whale', id: 'whale' },
  2690. { test: 'edgios|edge|edg', id: 'edge' },
  2691. {
  2692. test: 'msie|trident|windows phone',
  2693. id: 'ie',
  2694. versionTest: 'iemobile|msie|rv'
  2695. },
  2696. { test: 'miuibrowser', id: 'miui browser' },
  2697. { test: 'samsungbrowser', id: 'samsung internet' },
  2698. { test: 'samsung', id: 'samsung internet', versionTest: 'version' },
  2699. { test: 'chrome|crios', id: 'chrome' },
  2700. { test: 'firefox|fxios', id: 'firefox' },
  2701. { test: 'android', id: 'android browser', versionTest: 'version' },
  2702. {
  2703. test: 'safari|iphone|ipad|ipod',
  2704. id: 'safari',
  2705. versionTest: 'version'
  2706. }
  2707. ],
  2708. Bn = [
  2709. {
  2710. test: '(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)',
  2711. id: 'chrome',
  2712. versionTest: 'chrome'
  2713. },
  2714. { test: 'chromium', id: 'chrome' },
  2715. { test: 'whale', id: 'chrome', versionAlias: '-1', brand: !0 }
  2716. ],
  2717. xn = [
  2718. {
  2719. test: 'applewebkit',
  2720. id: 'webkit',
  2721. versionTest: 'applewebkit|safari'
  2722. }
  2723. ],
  2724. Sn = [
  2725. { test: '(?=(iphone|ipad))(?!(.*version))', id: 'webview' },
  2726. {
  2727. test: '(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))',
  2728. id: 'webview'
  2729. },
  2730. { test: 'webview', id: 'webview' }
  2731. ],
  2732. Dn = [
  2733. { test: 'windows phone', id: 'windows phone' },
  2734. { test: 'windows 2000', id: 'window', versionAlias: '5.0' },
  2735. { test: 'windows nt', id: 'window' },
  2736. { test: 'win32|windows', id: 'window' },
  2737. {
  2738. test: 'iphone|ipad|ipod',
  2739. id: 'ios',
  2740. versionTest: 'iphone os|cpu os'
  2741. },
  2742. { test: 'macos|macintel|mac os x', id: 'mac' },
  2743. { test: 'android|linux armv81', id: 'android' },
  2744. { test: 'tizen', id: 'tizen' },
  2745. { test: 'webos|web0s', id: 'webos' }
  2746. ];
  2747. function Rn(t) {
  2748. return !!yn(Sn, t).preset;
  2749. }
  2750. function Qn(t, e, n, r, a, i) {
  2751. for (var o = 0; o < a; ++o) {
  2752. var s = n + o * a,
  2753. l = r + o * a;
  2754. (t[s] += t[l] * i), (e[s] += e[l] * i);
  2755. }
  2756. }
  2757. function _n(t, e, n, r, a) {
  2758. for (var i = 0; i < a; ++i) {
  2759. var o = n + i * a,
  2760. s = r + i * a,
  2761. l = t[o],
  2762. c = e[o];
  2763. (t[o] = t[s]), (t[s] = l), (e[o] = e[s]), (e[s] = c);
  2764. }
  2765. }
  2766. function On(t, e, n, r, a) {
  2767. for (var i = 0; i < r; ++i) {
  2768. var o = n + i * r;
  2769. (t[o] /= a), (e[o] /= a);
  2770. }
  2771. }
  2772. function Mn(t, e, n) {
  2773. void 0 === n && (n = Math.sqrt(t.length));
  2774. for (var r = t.slice(), a = 0; a < n; ++a)
  2775. (r[a * n + e - 1] = 0), (r[(e - 1) * n + a] = 0);
  2776. return (r[(e - 1) * (n + 1)] = 1), r;
  2777. }
  2778. function Tn(t, e) {
  2779. void 0 === e && (e = Math.sqrt(t.length));
  2780. for (var n = t.slice(), r = $n(e), a = 0; a < e; ++a) {
  2781. var i = e * a + a;
  2782. if (!pe(n[i], zt))
  2783. for (var o = a + 1; o < e; ++o)
  2784. if (n[e * a + o]) {
  2785. _n(n, r, a, o, e);
  2786. break;
  2787. }
  2788. if (!pe(n[i], zt)) return [];
  2789. for (On(n, r, a, e, n[i]), o = 0; o < e; ++o) {
  2790. var s = o,
  2791. l = n[o + a * e];
  2792. pe(l, zt) && a !== o && Qn(n, r, s, a, e, -l);
  2793. }
  2794. }
  2795. return r;
  2796. }
  2797. function zn(t, e) {
  2798. void 0 === e && (e = Math.sqrt(t.length));
  2799. for (var n = [], r = t[e * e - 1], a = 0; a < e - 1; ++a)
  2800. n[a] = t[e * (e - 1) + a] / r;
  2801. return (n[e - 1] = 0), n;
  2802. }
  2803. function Pn(t, e) {
  2804. for (var n = t.slice(), r = t.length; r < e - 1; ++r) n[r] = 0;
  2805. return (n[e - 1] = 1), n;
  2806. }
  2807. function Yn(t, e, n) {
  2808. if ((void 0 === e && (e = Math.sqrt(t.length)), e === n)) return t;
  2809. for (var r = $n(n), a = Math.min(e, n), i = 0; i < a - 1; ++i) {
  2810. for (var o = 0; o < a - 1; ++o) r[i * n + o] = t[i * e + o];
  2811. (r[(i + 1) * n - 1] = t[(i + 1) * e - 1]),
  2812. (r[(n - 1) * n + i] = t[(e - 1) * e + i]);
  2813. }
  2814. return (r[n * n - 1] = t[e * e - 1]), r;
  2815. }
  2816. function Gn(t) {
  2817. for (var e = [], n = 1; n < arguments.length; n++)
  2818. e[n - 1] = arguments[n];
  2819. var r = $n(t);
  2820. return (
  2821. e.forEach(function (e) {
  2822. r = Nn(r, e, t);
  2823. }),
  2824. r
  2825. );
  2826. }
  2827. function Nn(t, e, n) {
  2828. void 0 === n && (n = Math.sqrt(t.length));
  2829. var r = [],
  2830. a = t.length / n,
  2831. i = e.length / a;
  2832. if (!a) return e;
  2833. if (!i) return t;
  2834. for (var o = 0; o < n; ++o)
  2835. for (var s = 0; s < i; ++s) {
  2836. r[s * n + o] = 0;
  2837. for (var l = 0; l < a; ++l)
  2838. r[s * n + o] += t[l * n + o] * e[s * a + l];
  2839. }
  2840. return r;
  2841. }
  2842. function Un(t, e) {
  2843. for (
  2844. var n = Math.min(t.length, e.length), r = t.slice(), a = 0;
  2845. a < n;
  2846. ++a
  2847. )
  2848. r[a] = r[a] + e[a];
  2849. return r;
  2850. }
  2851. function Fn(t, e) {
  2852. for (
  2853. var n = Math.min(t.length, e.length), r = t.slice(), a = 0;
  2854. a < n;
  2855. ++a
  2856. )
  2857. r[a] = r[a] - e[a];
  2858. return r;
  2859. }
  2860. function Ln(t, e) {
  2861. return (
  2862. void 0 === e && (e = 9 === t.length),
  2863. e ? [t[0], t[1], t[3], t[4], t[6], t[7]] : t
  2864. );
  2865. }
  2866. function Xn(t, e, n) {
  2867. void 0 === n && (n = e.length);
  2868. var r = Nn(t, e, n),
  2869. a = r[n - 1];
  2870. return r.map(function (t) {
  2871. return t / a;
  2872. });
  2873. }
  2874. function jn(t, e) {
  2875. return Nn(
  2876. t,
  2877. [
  2878. 1,
  2879. 0,
  2880. 0,
  2881. 0,
  2882. 0,
  2883. Math.cos(e),
  2884. Math.sin(e),
  2885. 0,
  2886. 0,
  2887. -Math.sin(e),
  2888. Math.cos(e),
  2889. 0,
  2890. 0,
  2891. 0,
  2892. 0,
  2893. 1
  2894. ],
  2895. 4
  2896. );
  2897. }
  2898. function Wn(t, e) {
  2899. return Nn(
  2900. t,
  2901. [
  2902. Math.cos(e),
  2903. 0,
  2904. -Math.sin(e),
  2905. 0,
  2906. 0,
  2907. 1,
  2908. 0,
  2909. 0,
  2910. Math.sin(e),
  2911. 0,
  2912. Math.cos(e),
  2913. 0,
  2914. 0,
  2915. 0,
  2916. 0,
  2917. 1
  2918. ],
  2919. 4
  2920. );
  2921. }
  2922. function Hn(t, e) {
  2923. return Nn(t, Jn(e, 4));
  2924. }
  2925. function Vn(t, e) {
  2926. var n = e[0],
  2927. r = void 0 === n ? 1 : n,
  2928. a = e[1],
  2929. i = void 0 === a ? 1 : a,
  2930. o = e[2];
  2931. return Nn(
  2932. t,
  2933. [r, 0, 0, 0, 0, i, 0, 0, 0, 0, void 0 === o ? 1 : o, 0, 0, 0, 0, 1],
  2934. 4
  2935. );
  2936. }
  2937. function qn(t, e) {
  2938. return Xn(Jn(e, 3), Pn(t, 3));
  2939. }
  2940. function Kn(t, e) {
  2941. var n = e[0],
  2942. r = void 0 === n ? 0 : n,
  2943. a = e[1],
  2944. i = void 0 === a ? 0 : a,
  2945. o = e[2];
  2946. return Nn(
  2947. t,
  2948. [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, r, i, void 0 === o ? 0 : o, 1],
  2949. 4
  2950. );
  2951. }
  2952. function Zn(t, e) {
  2953. return Nn(t, e, 4);
  2954. }
  2955. function Jn(t, e) {
  2956. var n = Math.cos(t),
  2957. r = Math.sin(t),
  2958. a = $n(e);
  2959. return (a[0] = n), (a[1] = r), (a[e] = -r), (a[e + 1] = n), a;
  2960. }
  2961. function $n(t) {
  2962. for (var e = t * t, n = [], r = 0; r < e; ++r)
  2963. n[r] = r % (t + 1) ? 0 : 1;
  2964. return n;
  2965. }
  2966. function tr(t, e) {
  2967. for (var n = $n(e), r = Math.min(t.length, e - 1), a = 0; a < r; ++a)
  2968. n[(e + 1) * a] = t[a];
  2969. return n;
  2970. }
  2971. function er(t, e) {
  2972. for (var n = $n(e), r = Math.min(t.length, e - 1), a = 0; a < r; ++a)
  2973. n[e * (e - 1) + a] = t[a];
  2974. return n;
  2975. }
  2976. function nr(t, e, n, r, a, i, o, s) {
  2977. var l = t[0],
  2978. c = t[1],
  2979. u = e[0],
  2980. f = e[1],
  2981. d = n[0],
  2982. p = n[1],
  2983. g = r[0],
  2984. m = r[1],
  2985. v = a[0],
  2986. h = a[1],
  2987. A = i[0],
  2988. b = i[1],
  2989. w = o[0],
  2990. k = o[1],
  2991. y = s[0],
  2992. I = s[1],
  2993. E = Tn(
  2994. [
  2995. l,
  2996. 0,
  2997. u,
  2998. 0,
  2999. d,
  3000. 0,
  3001. g,
  3002. 0,
  3003. c,
  3004. 0,
  3005. f,
  3006. 0,
  3007. p,
  3008. 0,
  3009. m,
  3010. 0,
  3011. 1,
  3012. 0,
  3013. 1,
  3014. 0,
  3015. 1,
  3016. 0,
  3017. 1,
  3018. 0,
  3019. 0,
  3020. l,
  3021. 0,
  3022. u,
  3023. 0,
  3024. d,
  3025. 0,
  3026. g,
  3027. 0,
  3028. c,
  3029. 0,
  3030. f,
  3031. 0,
  3032. p,
  3033. 0,
  3034. m,
  3035. 0,
  3036. 1,
  3037. 0,
  3038. 1,
  3039. 0,
  3040. 1,
  3041. 0,
  3042. 1,
  3043. -v * l,
  3044. -h * l,
  3045. -A * u,
  3046. -b * u,
  3047. -w * d,
  3048. -k * d,
  3049. -y * g,
  3050. -I * g,
  3051. -v * c,
  3052. -h * c,
  3053. -A * f,
  3054. -b * f,
  3055. -w * p,
  3056. -k * p,
  3057. -y * m,
  3058. -I * m
  3059. ],
  3060. 8
  3061. );
  3062. if (!E.length) return [];
  3063. var C = Nn(E, [v, h, A, b, w, k, y, I], 8);
  3064. return (
  3065. (C[8] = 1),
  3066. Yn(
  3067. (function (t, e) {
  3068. void 0 === e && (e = Math.sqrt(t.length));
  3069. for (var n = [], r = 0; r < e; ++r)
  3070. for (var a = 0; a < e; ++a) n[a * e + r] = t[e * r + a];
  3071. return n;
  3072. })(C),
  3073. 3,
  3074. 4
  3075. )
  3076. );
  3077. }
  3078. var rr = function () {
  3079. return (
  3080. (rr =
  3081. Object.assign ||
  3082. function (t) {
  3083. for (var e, n = 1, r = arguments.length; n < r; n++)
  3084. for (var a in (e = arguments[n]))
  3085. Object.prototype.hasOwnProperty.call(e, a) && (t[a] = e[a]);
  3086. return t;
  3087. }),
  3088. rr.apply(this, arguments)
  3089. );
  3090. };
  3091. function ar(t, e) {
  3092. return void 0 === e && (e = 0), ir(or(t, e));
  3093. }
  3094. function ir(t) {
  3095. var e = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
  3096. return (
  3097. t.forEach(function (t) {
  3098. var n = t.matrixFunction,
  3099. r = t.functionValue;
  3100. n && (e = n(e, r));
  3101. }),
  3102. e
  3103. );
  3104. }
  3105. function or(t, e) {
  3106. return (
  3107. void 0 === e && (e = 0),
  3108. (Ut(t) ? t : Vt(t)).map(function (t) {
  3109. var n = Kt(t),
  3110. r = n.prefix,
  3111. a = n.value,
  3112. i = null,
  3113. o = r,
  3114. s = '';
  3115. if (
  3116. 'translate' === r ||
  3117. 'translateX' === r ||
  3118. 'translate3d' === r
  3119. ) {
  3120. var l = Nt(e)
  3121. ? rr(rr({}, e), { 'o%': e['%'] })
  3122. : { '%': e, 'o%': e },
  3123. c = qt(a).map(function (t, n) {
  3124. return (
  3125. (l['%'] =
  3126. 0 === n && 'x%' in l
  3127. ? e['x%']
  3128. : 1 === n && 'y%' in l
  3129. ? e['y%']
  3130. : e['o%']),
  3131. ie(t, l)
  3132. );
  3133. }),
  3134. u = c[0],
  3135. f = c[1],
  3136. d = void 0 === f ? 0 : f,
  3137. p = c[2];
  3138. (i = Kn), (s = [u, d, void 0 === p ? 0 : p]);
  3139. } else if ('translateY' === r)
  3140. (i = Kn),
  3141. (s = [
  3142. 0,
  3143. (d = ie(a, Nt(e) ? rr({ '%': e['y%'] }, e) : { '%': e })),
  3144. 0
  3145. ]);
  3146. else if ('translateZ' === r)
  3147. (i = Kn), (s = [0, 0, parseFloat(a)]);
  3148. else if ('scale' === r || 'scale3d' === r) {
  3149. var g = qt(a).map(function (t) {
  3150. return parseFloat(t);
  3151. }),
  3152. m = g[0],
  3153. v = g[1],
  3154. h = void 0 === v ? m : v,
  3155. A = g[2];
  3156. (i = Vn), (s = [m, h, void 0 === A ? 1 : A]);
  3157. } else if ('scaleX' === r)
  3158. (i = Vn), (s = [(m = parseFloat(a)), 1, 1]);
  3159. else if ('scaleY' === r)
  3160. (i = Vn), (s = [1, (h = parseFloat(a)), 1]);
  3161. else if ('scaleZ' === r) (i = Vn), (s = [1, 1, parseFloat(a)]);
  3162. else if (
  3163. 'rotate' === r ||
  3164. 'rotateZ' === r ||
  3165. 'rotateX' === r ||
  3166. 'rotateY' === r
  3167. ) {
  3168. var b = Zt(a),
  3169. w = b.unit,
  3170. k = b.value;
  3171. 'rotate' === r || 'rotateZ' === r
  3172. ? ((o = 'rotateZ'), (i = Hn))
  3173. : 'rotateX' === r
  3174. ? (i = jn)
  3175. : 'rotateY' === r && (i = Wn),
  3176. (s = 'rad' === w ? k : (k * Math.PI) / 180);
  3177. } else if ('matrix3d' === r)
  3178. (i = Zn),
  3179. (s = qt(a).map(function (t) {
  3180. return parseFloat(t);
  3181. }));
  3182. else if ('matrix' === r) {
  3183. var y = qt(a).map(function (t) {
  3184. return parseFloat(t);
  3185. });
  3186. (i = Zn),
  3187. (s = [
  3188. y[0],
  3189. y[1],
  3190. 0,
  3191. 0,
  3192. y[2],
  3193. y[3],
  3194. 0,
  3195. 0,
  3196. 0,
  3197. 0,
  3198. 1,
  3199. 0,
  3200. y[4],
  3201. y[5],
  3202. 0,
  3203. 1
  3204. ]);
  3205. } else o = '';
  3206. return {
  3207. name: r,
  3208. functionName: o,
  3209. value: a,
  3210. matrixFunction: i,
  3211. functionValue: s
  3212. };
  3213. })
  3214. );
  3215. }
  3216. /*! *****************************************************************************
  3217. Copyright (c) Microsoft Corporation. All rights reserved.
  3218. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  3219. this file except in compliance with the License. You may obtain a copy of the
  3220. License at http://www.apache.org/licenses/LICENSE-2.0
  3221. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  3222. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  3223. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  3224. MERCHANTABLITY OR NON-INFRINGEMENT.
  3225. See the Apache Version 2.0 License for specific language governing permissions
  3226. and limitations under the License.
  3227. ***************************************************************************** */ var sr,
  3228. lr = function (t, e) {
  3229. return (
  3230. (lr =
  3231. Object.setPrototypeOf ||
  3232. ({ __proto__: [] } instanceof Array &&
  3233. function (t, e) {
  3234. t.__proto__ = e;
  3235. }) ||
  3236. function (t, e) {
  3237. for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
  3238. }),
  3239. lr(t, e)
  3240. );
  3241. },
  3242. cr =
  3243. 'function' == typeof Map
  3244. ? void 0
  3245. : ((sr = 0),
  3246. function (t) {
  3247. return t.__DIFF_KEY__ || (t.__DIFF_KEY__ = ++sr);
  3248. });
  3249. const ur = (function (t) {
  3250. function e(e) {
  3251. return void 0 === e && (e = []), t.call(this, e, cr) || this;
  3252. }
  3253. return (
  3254. (function (t, e) {
  3255. function n() {
  3256. this.constructor = t;
  3257. }
  3258. lr(t, e),
  3259. (t.prototype =
  3260. null === e
  3261. ? Object.create(e)
  3262. : ((n.prototype = e.prototype), new n()));
  3263. })(e, t),
  3264. e
  3265. );
  3266. })(Oe);
  3267. /*! *****************************************************************************
  3268. Copyright (c) Microsoft Corporation.
  3269. Permission to use, copy, modify, and/or distribute this software for any
  3270. purpose with or without fee is hereby granted.
  3271. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  3272. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  3273. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  3274. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  3275. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  3276. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  3277. PERFORMANCE OF THIS SOFTWARE.
  3278. ***************************************************************************** */ var fr =
  3279. function () {
  3280. return (
  3281. (fr =
  3282. Object.assign ||
  3283. function (t) {
  3284. for (var e, n = 1, r = arguments.length; n < r; n++)
  3285. for (var a in (e = arguments[n]))
  3286. Object.prototype.hasOwnProperty.call(e, a) &&
  3287. (t[a] = e[a]);
  3288. return t;
  3289. }),
  3290. fr.apply(this, arguments)
  3291. );
  3292. },
  3293. dr = (function () {
  3294. function t() {
  3295. this._events = {};
  3296. }
  3297. var e = t.prototype;
  3298. return (
  3299. (e.on = function (t, e) {
  3300. if (Nt(t)) for (var n in t) this.on(n, t[n]);
  3301. else this._addEvent(t, e, {});
  3302. return this;
  3303. }),
  3304. (e.off = function (t, e) {
  3305. if (t)
  3306. if (Nt(t)) for (var n in t) this.off(n);
  3307. else if (e) {
  3308. var r = this._events[t];
  3309. if (r) {
  3310. var a = te(r, function (t) {
  3311. return t.listener === e;
  3312. });
  3313. a > -1 && r.splice(a, 1);
  3314. }
  3315. } else this._events[t] = [];
  3316. else this._events = {};
  3317. return this;
  3318. }),
  3319. (e.once = function (t, e) {
  3320. var n = this;
  3321. return (
  3322. e && this._addEvent(t, e, { once: !0 }),
  3323. new Promise(function (e) {
  3324. n._addEvent(t, e, { once: !0 });
  3325. })
  3326. );
  3327. }),
  3328. (e.emit = function (t, e) {
  3329. var n = this;
  3330. void 0 === e && (e = {});
  3331. var r = this._events[t];
  3332. if (!t || !r) return !0;
  3333. var a = !1;
  3334. return (
  3335. (e.eventType = t),
  3336. (e.stop = function () {
  3337. a = !0;
  3338. }),
  3339. (e.currentTarget = this),
  3340. (function () {
  3341. for (var t = 0, e = 0, n = arguments.length; e < n; e++)
  3342. t += arguments[e].length;
  3343. var r = Array(t),
  3344. a = 0;
  3345. for (e = 0; e < n; e++)
  3346. for (
  3347. var i = arguments[e], o = 0, s = i.length;
  3348. o < s;
  3349. o++, a++
  3350. )
  3351. r[a] = i[o];
  3352. return r;
  3353. })(r).forEach(function (r) {
  3354. r.listener(e), r.once && n.off(t, r.listener);
  3355. }),
  3356. !a
  3357. );
  3358. }),
  3359. (e.trigger = function (t, e) {
  3360. return void 0 === e && (e = {}), this.emit(t, e);
  3361. }),
  3362. (e._addEvent = function (t, e, n) {
  3363. var r = this._events;
  3364. (r[t] = r[t] || []), r[t].push(fr({ listener: e }, n));
  3365. }),
  3366. t
  3367. );
  3368. })();
  3369. const pr = dr;
  3370. /*! *****************************************************************************
  3371. Copyright (c) Microsoft Corporation.
  3372. Permission to use, copy, modify, and/or distribute this software for any
  3373. purpose with or without fee is hereby granted.
  3374. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  3375. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  3376. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  3377. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  3378. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  3379. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  3380. PERFORMANCE OF THIS SOFTWARE.
  3381. ***************************************************************************** */ var gr =
  3382. function (t, e) {
  3383. return (
  3384. (gr =
  3385. Object.setPrototypeOf ||
  3386. ({ __proto__: [] } instanceof Array &&
  3387. function (t, e) {
  3388. t.__proto__ = e;
  3389. }) ||
  3390. function (t, e) {
  3391. for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
  3392. }),
  3393. gr(t, e)
  3394. );
  3395. },
  3396. mr = function () {
  3397. return (
  3398. (mr =
  3399. Object.assign ||
  3400. function (t) {
  3401. for (var e, n = 1, r = arguments.length; n < r; n++)
  3402. for (var a in (e = arguments[n]))
  3403. Object.prototype.hasOwnProperty.call(e, a) &&
  3404. (t[a] = e[a]);
  3405. return t;
  3406. }),
  3407. mr.apply(this, arguments)
  3408. );
  3409. };
  3410. function vr(t) {
  3411. var e = t.container;
  3412. return e === document.body
  3413. ? [
  3414. e.scrollLeft || document.documentElement.scrollLeft,
  3415. e.scrollTop || document.documentElement.scrollTop
  3416. ]
  3417. : [e.scrollLeft, e.scrollTop];
  3418. }
  3419. function hr(t, e) {
  3420. return (
  3421. t.addEventListener('scroll', e),
  3422. function () {
  3423. t.removeEventListener('scroll', e);
  3424. }
  3425. );
  3426. }
  3427. function Ar(t) {
  3428. return t
  3429. ? Ft(t)
  3430. ? document.querySelector(t)
  3431. : Xt(t)
  3432. ? t()
  3433. : t instanceof Element
  3434. ? t
  3435. : 'current' in t
  3436. ? t.current
  3437. : 'value' in t
  3438. ? t.value
  3439. : void 0
  3440. : null;
  3441. }
  3442. var br = (function (t) {
  3443. function e() {
  3444. var e = (null !== t && t.apply(this, arguments)) || this;
  3445. return (
  3446. (e._startRect = null),
  3447. (e._startPos = []),
  3448. (e._prevTime = 0),
  3449. (e._timer = 0),
  3450. (e._prevScrollPos = [0, 0]),
  3451. (e._isWait = !1),
  3452. (e._flag = !1),
  3453. (e._currentOptions = null),
  3454. (e._lock = !1),
  3455. (e._unregister = null),
  3456. (e._onScroll = function () {
  3457. var t = e._currentOptions;
  3458. !e._lock &&
  3459. t &&
  3460. e.emit('scrollDrag', {
  3461. next: function (n) {
  3462. e.checkScroll({ container: t.container, inputEvent: n });
  3463. }
  3464. });
  3465. }),
  3466. e
  3467. );
  3468. }
  3469. !(function (t, e) {
  3470. function n() {
  3471. this.constructor = t;
  3472. }
  3473. gr(t, e),
  3474. (t.prototype =
  3475. null === e
  3476. ? Object.create(e)
  3477. : ((n.prototype = e.prototype), new n()));
  3478. })(e, t);
  3479. var n = e.prototype;
  3480. return (
  3481. (n.dragStart = function (t, e) {
  3482. var n = Ar(e.container);
  3483. if (n) {
  3484. var r = 0,
  3485. a = 0,
  3486. i = 0,
  3487. o = 0;
  3488. if (n === document.body)
  3489. (i = window.innerWidth), (o = window.innerHeight);
  3490. else {
  3491. var s = n.getBoundingClientRect();
  3492. (r = s.top), (a = s.left), (i = s.width), (o = s.height);
  3493. }
  3494. (this._flag = !0),
  3495. (this._startPos = [t.clientX, t.clientY]),
  3496. (this._startRect = { top: r, left: a, width: i, height: o }),
  3497. (this._prevScrollPos = this._getScrollPosition([0, 0], e)),
  3498. (this._currentOptions = e),
  3499. this._registerScrollEvent(e);
  3500. } else this._flag = !1;
  3501. }),
  3502. (n.drag = function (t, e) {
  3503. if ((clearTimeout(this._timer), this._flag)) {
  3504. var n = t.clientX,
  3505. r = t.clientY,
  3506. a = e.threshold,
  3507. i = void 0 === a ? 0 : a,
  3508. o = this._startRect,
  3509. s = this._startPos;
  3510. this._currentOptions = e;
  3511. var l = [0, 0];
  3512. return (
  3513. o.top > r - i
  3514. ? (s[1] > o.top || r < s[1]) && (l[1] = -1)
  3515. : o.top + o.height < r + i &&
  3516. (s[1] < o.top + o.height || r > s[1]) &&
  3517. (l[1] = 1),
  3518. o.left > n - i
  3519. ? (s[0] > o.left || n < s[0]) && (l[0] = -1)
  3520. : o.left + o.width < n + i &&
  3521. (s[0] < o.left + o.width || n > s[0]) &&
  3522. (l[0] = 1),
  3523. !(!l[0] && !l[1]) &&
  3524. this._continueDrag(
  3525. mr(mr({}, e), { direction: l, inputEvent: t, isDrag: !0 })
  3526. )
  3527. );
  3528. }
  3529. }),
  3530. (n.checkScroll = function (t) {
  3531. var e = this;
  3532. if (this._isWait) return !1;
  3533. var n = t.prevScrollPos,
  3534. r = void 0 === n ? this._prevScrollPos : n,
  3535. a = t.direction,
  3536. i = t.throttleTime,
  3537. o = void 0 === i ? 0 : i,
  3538. s = t.inputEvent,
  3539. l = t.isDrag,
  3540. c = this._getScrollPosition(a || [0, 0], t),
  3541. u = c[0] - r[0],
  3542. f = c[1] - r[1],
  3543. d = a || [u ? Math.abs(u) / u : 0, f ? Math.abs(f) / f : 0];
  3544. return (
  3545. (this._prevScrollPos = c),
  3546. (this._lock = !1),
  3547. !(
  3548. (!u && !f) ||
  3549. (this.emit('move', {
  3550. offsetX: d[0] ? u : 0,
  3551. offsetY: d[1] ? f : 0,
  3552. inputEvent: s
  3553. }),
  3554. o &&
  3555. l &&
  3556. (clearTimeout(this._timer),
  3557. (this._timer = window.setTimeout(function () {
  3558. e._continueDrag(t);
  3559. }, o))),
  3560. 0)
  3561. )
  3562. );
  3563. }),
  3564. (n.dragEnd = function () {
  3565. (this._flag = !1),
  3566. (this._lock = !1),
  3567. clearTimeout(this._timer),
  3568. this._unregisterScrollEvent();
  3569. }),
  3570. (n._getScrollPosition = function (t, e) {
  3571. var n = e.container,
  3572. r = e.getScrollPosition;
  3573. return (void 0 === r ? vr : r)({
  3574. container: Ar(n),
  3575. direction: t
  3576. });
  3577. }),
  3578. (n._continueDrag = function (t) {
  3579. var e,
  3580. n = this,
  3581. r = t.container,
  3582. a = t.direction,
  3583. i = t.throttleTime,
  3584. o = t.useScroll,
  3585. s = t.isDrag,
  3586. l = t.inputEvent;
  3587. if (!(!this._flag || (s && this._isWait))) {
  3588. var c = $t(),
  3589. u = Math.max(i + this._prevTime - c, 0);
  3590. if (u > 0)
  3591. return (
  3592. clearTimeout(this._timer),
  3593. (this._timer = window.setTimeout(function () {
  3594. n._continueDrag(t);
  3595. }, u)),
  3596. !1
  3597. );
  3598. this._prevTime = c;
  3599. var f = this._getScrollPosition(a, t);
  3600. (this._prevScrollPos = f),
  3601. s && (this._isWait = !0),
  3602. o || (this._lock = !0);
  3603. var d = { container: Ar(r), direction: a, inputEvent: l };
  3604. return (
  3605. null === (e = t.requestScroll) ||
  3606. void 0 === e ||
  3607. e.call(t, d),
  3608. this.emit('scroll', d),
  3609. (this._isWait = !1),
  3610. o ||
  3611. this.checkScroll(
  3612. mr(mr({}, t), {
  3613. prevScrollPos: f,
  3614. direction: a,
  3615. inputEvent: l
  3616. })
  3617. )
  3618. );
  3619. }
  3620. }),
  3621. (n._registerScrollEvent = function (t) {
  3622. this._unregisterScrollEvent();
  3623. var e = t.checkScrollEvent;
  3624. if (e) {
  3625. var n = !0 === e ? hr : e,
  3626. r = Ar(t.container);
  3627. !0 !== e ||
  3628. (r !== document.body && r !== document.documentElement)
  3629. ? (this._unregister = n(r, this._onScroll))
  3630. : (this._unregister = hr(window, this._onScroll));
  3631. }
  3632. }),
  3633. (n._unregisterScrollEvent = function () {
  3634. var t;
  3635. null === (t = this._unregister) || void 0 === t || t.call(this),
  3636. (this._unregister = null);
  3637. }),
  3638. e
  3639. );
  3640. })(pr);
  3641. const wr = br;
  3642. /*! *****************************************************************************
  3643. Copyright (c) Microsoft Corporation.
  3644. Permission to use, copy, modify, and/or distribute this software for any
  3645. purpose with or without fee is hereby granted.
  3646. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  3647. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  3648. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  3649. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  3650. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  3651. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  3652. PERFORMANCE OF THIS SOFTWARE.
  3653. ***************************************************************************** */ function kr(
  3654. t
  3655. ) {
  3656. return pe(t, zt);
  3657. }
  3658. function yr(t) {
  3659. return t.length < 3
  3660. ? 0
  3661. : Math.abs(
  3662. (function (t) {
  3663. for (var e = 0, n = t.length - 1; n >= 0; --n) e += t[n];
  3664. return e;
  3665. })(
  3666. t.map(function (e, n) {
  3667. var r = t[n + 1] || t[0];
  3668. return e[0] * r[1] - r[0] * e[1];
  3669. })
  3670. )
  3671. ) / 2;
  3672. }
  3673. function Ir(t, e) {
  3674. var n = e.width,
  3675. r = e.height,
  3676. a = e.left,
  3677. i = e.top,
  3678. o = Er(t),
  3679. s = o.minX,
  3680. l = o.minY,
  3681. c = o.maxX,
  3682. u = o.maxY,
  3683. f = n / (c - s),
  3684. d = r / (u - l);
  3685. return t.map(function (t) {
  3686. return [a + (t[0] - s) * f, i + (t[1] - l) * d];
  3687. });
  3688. }
  3689. function Er(t) {
  3690. var e = t.map(function (t) {
  3691. return t[0];
  3692. }),
  3693. n = t.map(function (t) {
  3694. return t[1];
  3695. });
  3696. return {
  3697. minX: Math.min.apply(Math, e),
  3698. minY: Math.min.apply(Math, n),
  3699. maxX: Math.max.apply(Math, e),
  3700. maxY: Math.max.apply(Math, n)
  3701. };
  3702. }
  3703. function Cr(t, e, n) {
  3704. var r = t[0],
  3705. a = t[1],
  3706. i = Er(e),
  3707. o = i.minX,
  3708. s = i.maxX,
  3709. l = [
  3710. [o, a],
  3711. [s, a]
  3712. ],
  3713. c = Br(l[0], l[1]),
  3714. u = Dr(e),
  3715. f = [];
  3716. if (
  3717. (u.forEach(function (e) {
  3718. var n,
  3719. r = Br(e[0], e[1]),
  3720. i = e[0];
  3721. (n = r),
  3722. c.every(function (t, e) {
  3723. return 0 === kr(t - n[e]);
  3724. })
  3725. ? f.push({ pos: t, line: e, type: 'line' })
  3726. : Sr(xr(c, r), [l, e]).forEach(function (t) {
  3727. e.some(function (e) {
  3728. return (
  3729. (r = t), !kr((n = e)[0] - r[0]) && !kr(n[1] - r[1])
  3730. );
  3731. var n, r;
  3732. })
  3733. ? f.push({ pos: t, line: e, type: 'point' })
  3734. : 0 !== kr(i[1] - a) &&
  3735. f.push({ pos: t, line: e, type: 'intersection' });
  3736. });
  3737. }),
  3738. !n &&
  3739. ee(f, function (t) {
  3740. return t[0] === r;
  3741. }))
  3742. )
  3743. return !0;
  3744. var d = 0,
  3745. p = {};
  3746. return (
  3747. f.forEach(function (t) {
  3748. var e = t.pos,
  3749. n = t.type,
  3750. i = t.line;
  3751. if (!(e[0] > r))
  3752. if ('intersection' === n) ++d;
  3753. else {
  3754. if ('line' === n) return;
  3755. if ('point' === n) {
  3756. var o = ee(i, function (t) {
  3757. return t[1] !== a;
  3758. }),
  3759. s = p[e[0]],
  3760. l = o[1] > a ? 1 : -1;
  3761. s ? s !== l && ++d : (p[e[0]] = l);
  3762. }
  3763. }
  3764. }),
  3765. d % 2 == 1
  3766. );
  3767. }
  3768. function Br(t, e) {
  3769. var n = t[0],
  3770. r = t[1],
  3771. a = e[0] - n,
  3772. i = e[1] - r;
  3773. Math.abs(a) < zt && (a = 0), Math.abs(i) < zt && (i = 0);
  3774. var o = 0,
  3775. s = 0,
  3776. l = 0;
  3777. return (
  3778. a
  3779. ? i
  3780. ? ((s = 1), (l = -(o = -i / a) * n - r))
  3781. : ((s = 1), (l = -r))
  3782. : i && ((o = -1), (l = n)),
  3783. [o, s, l]
  3784. );
  3785. }
  3786. function xr(t, e) {
  3787. var n = t[0],
  3788. r = t[1],
  3789. a = t[2],
  3790. i = e[0],
  3791. o = e[1],
  3792. s = e[2],
  3793. l = 0 === n && 0 === i,
  3794. c = 0 === r && 0 === o,
  3795. u = [];
  3796. if (l && c) return [];
  3797. if (l) {
  3798. var f = -a / r;
  3799. return f !== -s / o
  3800. ? []
  3801. : [
  3802. [-1 / 0, f],
  3803. [1 / 0, f]
  3804. ];
  3805. }
  3806. if (c) {
  3807. var d = -a / n;
  3808. return d !== -s / i
  3809. ? []
  3810. : [
  3811. [d, -1 / 0],
  3812. [d, 1 / 0]
  3813. ];
  3814. }
  3815. if (0 === n) u = [[(p = -(o * (g = -a / r) + s) / i), g]];
  3816. else if (0 === i) u = [[(p = -(r * (g = -s / o) + a) / n), g]];
  3817. else if (0 === r) u = [[(p = -a / n), (g = -(i * p + s) / o)]];
  3818. else if (0 === o) u = [[(p = -s / i), (g = -(n * p + a) / r)]];
  3819. else {
  3820. var p, g;
  3821. u = [
  3822. [(p = (r * s - o * a) / (o * n - r * i)), (g = -(n * p + a) / r)]
  3823. ];
  3824. }
  3825. return u.map(function (t) {
  3826. return [t[0], t[1]];
  3827. });
  3828. }
  3829. function Sr(t, e) {
  3830. var n = e.map(function (t) {
  3831. return [0, 1].map(function (e) {
  3832. return [Math.min(t[0][e], t[1][e]), Math.max(t[0][e], t[1][e])];
  3833. });
  3834. }),
  3835. r = [];
  3836. if (2 === t.length) {
  3837. var a = t[0],
  3838. i = a[0],
  3839. o = a[1];
  3840. if (kr(i - t[1][0])) {
  3841. if (!kr(o - t[1][1])) {
  3842. var s = Math.max.apply(
  3843. Math,
  3844. n.map(function (t) {
  3845. return t[0][0];
  3846. })
  3847. ),
  3848. l = Math.min.apply(
  3849. Math,
  3850. n.map(function (t) {
  3851. return t[0][1];
  3852. })
  3853. );
  3854. if (kr(s - l) > 0) return [];
  3855. r = [
  3856. [s, o],
  3857. [l, o]
  3858. ];
  3859. }
  3860. } else {
  3861. var c = Math.max.apply(
  3862. Math,
  3863. n.map(function (t) {
  3864. return t[1][0];
  3865. })
  3866. ),
  3867. u = Math.min.apply(
  3868. Math,
  3869. n.map(function (t) {
  3870. return t[1][1];
  3871. })
  3872. );
  3873. if (kr(c - u) > 0) return [];
  3874. r = [
  3875. [i, c],
  3876. [i, u]
  3877. ];
  3878. }
  3879. }
  3880. return (
  3881. r.length ||
  3882. (r = t.filter(function (t) {
  3883. var e = t[0],
  3884. r = t[1];
  3885. return n.every(function (t) {
  3886. return (
  3887. 0 <= kr(e - t[0][0]) &&
  3888. 0 <= kr(t[0][1] - e) &&
  3889. 0 <= kr(r - t[1][0]) &&
  3890. 0 <= kr(t[1][1] - r)
  3891. );
  3892. });
  3893. })),
  3894. r.map(function (t) {
  3895. return [kr(t[0]), kr(t[1])];
  3896. })
  3897. );
  3898. }
  3899. function Dr(t) {
  3900. return (function () {
  3901. for (var t = 0, e = 0, n = arguments.length; e < n; e++)
  3902. t += arguments[e].length;
  3903. var r = Array(t),
  3904. a = 0;
  3905. for (e = 0; e < n; e++)
  3906. for (var i = arguments[e], o = 0, s = i.length; o < s; o++, a++)
  3907. r[a] = i[o];
  3908. return r;
  3909. })(t.slice(1), [t[0]]).map(function (e, n) {
  3910. return [t[n], e];
  3911. });
  3912. }
  3913. function Rr(t, e) {
  3914. var n = (function (t, e) {
  3915. var n = t.slice(),
  3916. r = e.slice();
  3917. -1 === fe(n) && n.reverse(), -1 === fe(r) && r.reverse();
  3918. var a = Dr(n),
  3919. i = Dr(r),
  3920. o = a.map(function (t) {
  3921. return Br(t[0], t[1]);
  3922. }),
  3923. s = i.map(function (t) {
  3924. return Br(t[0], t[1]);
  3925. }),
  3926. l = [];
  3927. o.forEach(function (t, e) {
  3928. var n = a[e],
  3929. o = [];
  3930. s.forEach(function (r, a) {
  3931. var s = Sr(xr(t, r), [n, i[a]]);
  3932. o.push.apply(
  3933. o,
  3934. s.map(function (t) {
  3935. return {
  3936. index1: e,
  3937. index2: a,
  3938. pos: t,
  3939. type: 'intersection'
  3940. };
  3941. })
  3942. );
  3943. }),
  3944. o.sort(function (t, e) {
  3945. return de(n[0], t.pos) - de(n[0], e.pos);
  3946. }),
  3947. l.push.apply(l, o),
  3948. Cr(n[1], r) &&
  3949. l.push({ index1: e, index2: -1, pos: n[1], type: 'inside' });
  3950. }),
  3951. i.forEach(function (t, e) {
  3952. if (Cr(t[1], n)) {
  3953. var r = !1,
  3954. a = te(l, function (t) {
  3955. return t.index2 === e ? ((r = !0), !1) : !!r;
  3956. });
  3957. -1 === a &&
  3958. ((r = !1),
  3959. (a = te(l, function (t) {
  3960. var n = t.index1,
  3961. a = t.index2;
  3962. return -1 === n && a + 1 === e ? ((r = !0), !1) : !!r;
  3963. }))),
  3964. -1 === a
  3965. ? l.push({
  3966. index1: -1,
  3967. index2: e,
  3968. pos: t[1],
  3969. type: 'inside'
  3970. })
  3971. : l.splice(a, 0, {
  3972. index1: -1,
  3973. index2: e,
  3974. pos: t[1],
  3975. type: 'inside'
  3976. });
  3977. }
  3978. });
  3979. var c = {};
  3980. return l.filter(function (t) {
  3981. var e = t.pos,
  3982. n = e[0] + 'x' + e[1];
  3983. return !c[n] && ((c[n] = !0), !0);
  3984. });
  3985. })(t, e);
  3986. return n.map(function (t) {
  3987. return t.pos;
  3988. });
  3989. }
  3990. /*! *****************************************************************************
  3991. Copyright (c) Microsoft Corporation.
  3992. Permission to use, copy, modify, and/or distribute this software for any
  3993. purpose with or without fee is hereby granted.
  3994. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  3995. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  3996. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  3997. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  3998. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  3999. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  4000. PERFORMANCE OF THIS SOFTWARE.
  4001. ***************************************************************************** */ var Qr =
  4002. function (t, e) {
  4003. return (
  4004. (Qr =
  4005. Object.setPrototypeOf ||
  4006. ({ __proto__: [] } instanceof Array &&
  4007. function (t, e) {
  4008. t.__proto__ = e;
  4009. }) ||
  4010. function (t, e) {
  4011. for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
  4012. }),
  4013. Qr(t, e)
  4014. );
  4015. },
  4016. _r = function () {
  4017. return (
  4018. (_r =
  4019. Object.assign ||
  4020. function (t) {
  4021. for (var e, n = 1, r = arguments.length; n < r; n++)
  4022. for (var a in (e = arguments[n]))
  4023. Object.prototype.hasOwnProperty.call(e, a) &&
  4024. (t[a] = e[a]);
  4025. return t;
  4026. }),
  4027. _r.apply(this, arguments)
  4028. );
  4029. };
  4030. function Or(t) {
  4031. return (
  4032. 180 *
  4033. ((e = [t[0].clientX, t[0].clientY]),
  4034. (n = [t[1].clientX, t[1].clientY]),
  4035. (r = n[0] - e[0]),
  4036. (a = n[1] - e[1]),
  4037. ((i = Math.atan2(a, r)) >= 0 ? i : i + 2 * Math.PI) / Math.PI)
  4038. );
  4039. var e, n, r, a, i;
  4040. }
  4041. function Mr(t) {
  4042. return t
  4043. ? t.touches
  4044. ? (function (t) {
  4045. for (var e = Math.min(t.length, 2), n = [], r = 0; r < e; ++r)
  4046. n.push(Pr(t[r]));
  4047. return n;
  4048. })(t.touches)
  4049. : [Pr(t)]
  4050. : [];
  4051. }
  4052. function Tr(t, e, n) {
  4053. var r = n.length,
  4054. a = Yr(t, r),
  4055. i = a.clientX,
  4056. o = a.clientY,
  4057. s = a.originalClientX,
  4058. l = a.originalClientY,
  4059. c = Yr(e, r),
  4060. u = c.clientX,
  4061. f = c.clientY,
  4062. d = Yr(n, r);
  4063. return {
  4064. clientX: s,
  4065. clientY: l,
  4066. deltaX: i - u,
  4067. deltaY: o - f,
  4068. distX: i - d.clientX,
  4069. distY: o - d.clientY
  4070. };
  4071. }
  4072. function zr(t) {
  4073. return Math.sqrt(
  4074. Math.pow(t[0].clientX - t[1].clientX, 2) +
  4075. Math.pow(t[0].clientY - t[1].clientY, 2)
  4076. );
  4077. }
  4078. function Pr(t) {
  4079. return { clientX: t.clientX, clientY: t.clientY };
  4080. }
  4081. function Yr(t, e) {
  4082. void 0 === e && (e = t.length);
  4083. for (
  4084. var n = {
  4085. clientX: 0,
  4086. clientY: 0,
  4087. originalClientX: 0,
  4088. originalClientY: 0
  4089. },
  4090. r = 0;
  4091. r < e;
  4092. ++r
  4093. ) {
  4094. var a = t[r];
  4095. (n.originalClientX +=
  4096. 'originalClientX' in a ? a.originalClientX : a.clientX),
  4097. (n.originalClientY +=
  4098. 'originalClientY' in a ? a.originalClientY : a.clientY),
  4099. (n.clientX += a.clientX),
  4100. (n.clientY += a.clientY);
  4101. }
  4102. return e
  4103. ? {
  4104. clientX: n.clientX / e,
  4105. clientY: n.clientY / e,
  4106. originalClientX: n.originalClientX / e,
  4107. originalClientY: n.originalClientY / e
  4108. }
  4109. : n;
  4110. }
  4111. var Gr = (function () {
  4112. function t(t) {
  4113. (this.prevClients = []),
  4114. (this.startClients = []),
  4115. (this.movement = 0),
  4116. (this.length = 0),
  4117. (this.startClients = t),
  4118. (this.prevClients = t),
  4119. (this.length = t.length);
  4120. }
  4121. return (
  4122. (t.prototype.getAngle = function (t) {
  4123. return void 0 === t && (t = this.prevClients), Or(t);
  4124. }),
  4125. (t.prototype.getRotation = function (t) {
  4126. return (
  4127. void 0 === t && (t = this.prevClients),
  4128. Or(t) - Or(this.startClients)
  4129. );
  4130. }),
  4131. (t.prototype.getPosition = function (t, e) {
  4132. void 0 === t && (t = this.prevClients);
  4133. var n = Tr(
  4134. t || this.prevClients,
  4135. this.prevClients,
  4136. this.startClients
  4137. ),
  4138. r = n.deltaX,
  4139. a = n.deltaY;
  4140. return (
  4141. (this.movement += Math.sqrt(r * r + a * a)),
  4142. (this.prevClients = t),
  4143. n
  4144. );
  4145. }),
  4146. (t.prototype.getPositions = function (t) {
  4147. void 0 === t && (t = this.prevClients);
  4148. var e = this.prevClients;
  4149. return this.startClients.map(function (n, r) {
  4150. return Tr([t[r]], [e[r]], [n]);
  4151. });
  4152. }),
  4153. (t.prototype.getMovement = function (t) {
  4154. var e = this.movement;
  4155. if (!t) return e;
  4156. var n = Yr(t, this.length),
  4157. r = Yr(this.prevClients, this.length),
  4158. a = n.clientX - r.clientX,
  4159. i = n.clientY - r.clientY;
  4160. return Math.sqrt(a * a + i * i) + e;
  4161. }),
  4162. (t.prototype.getDistance = function (t) {
  4163. return void 0 === t && (t = this.prevClients), zr(t);
  4164. }),
  4165. (t.prototype.getScale = function (t) {
  4166. return (
  4167. void 0 === t && (t = this.prevClients),
  4168. zr(t) / zr(this.startClients)
  4169. );
  4170. }),
  4171. (t.prototype.move = function (t, e) {
  4172. this.startClients.forEach(function (n) {
  4173. (n.clientX -= t), (n.clientY -= e);
  4174. }),
  4175. this.prevClients.forEach(function (n) {
  4176. (n.clientX -= t), (n.clientY -= e);
  4177. });
  4178. }),
  4179. t
  4180. );
  4181. })(),
  4182. Nr = ['textarea', 'input'],
  4183. Ur = (function (t) {
  4184. function e(e, n) {
  4185. void 0 === n && (n = {});
  4186. var r = t.call(this) || this;
  4187. (r.options = {}),
  4188. (r.flag = !1),
  4189. (r.pinchFlag = !1),
  4190. (r.data = {}),
  4191. (r.isDrag = !1),
  4192. (r.isPinch = !1),
  4193. (r.clientStores = []),
  4194. (r.targets = []),
  4195. (r.prevTime = 0),
  4196. (r.doubleFlag = !1),
  4197. (r._useMouse = !1),
  4198. (r._useTouch = !1),
  4199. (r._useDrag = !1),
  4200. (r._dragFlag = !1),
  4201. (r._isTrusted = !1),
  4202. (r._isMouseEvent = !1),
  4203. (r._isSecondaryButton = !1),
  4204. (r._preventMouseEvent = !1),
  4205. (r._prevInputEvent = null),
  4206. (r._isDragAPI = !1),
  4207. (r._isIdle = !0),
  4208. (r._window = window),
  4209. (r.onDragStart = function (t, e) {
  4210. if (
  4211. (void 0 === e && (e = !0), r.flag || !1 !== t.cancelable)
  4212. ) {
  4213. var n = t.type.indexOf('drag') >= -1;
  4214. if (!r.flag || !n) {
  4215. r._isDragAPI = !0;
  4216. var a = r.options,
  4217. i = a.container,
  4218. o = a.pinchOutside,
  4219. s = a.preventWheelClick,
  4220. l = a.preventRightClick,
  4221. c = a.preventDefault,
  4222. u = a.checkInput,
  4223. f = a.dragFocusedInput,
  4224. d = a.preventClickEventOnDragStart,
  4225. p = a.preventClickEventOnDrag,
  4226. g = a.preventClickEventByCondition,
  4227. m = r._useTouch,
  4228. v = !r.flag;
  4229. if (
  4230. ((r._isSecondaryButton =
  4231. 3 === t.which || 2 === t.button),
  4232. (s && (2 === t.which || 1 === t.button)) ||
  4233. (l && (3 === t.which || 2 === t.button)))
  4234. )
  4235. return r.stop(), !1;
  4236. if (v) {
  4237. var h = r._window.document.activeElement,
  4238. A = t.target;
  4239. if (A) {
  4240. var b = A.tagName.toLowerCase(),
  4241. w = Nr.indexOf(b) > -1,
  4242. k = A.isContentEditable;
  4243. if (w || k) {
  4244. if (u || (!f && h === A)) return !1;
  4245. if (
  4246. h &&
  4247. (h === A ||
  4248. (k && h.isContentEditable && h.contains(A)))
  4249. ) {
  4250. if (!f) return !1;
  4251. A.blur();
  4252. }
  4253. } else if ((c || 'touchstart' === t.type) && h) {
  4254. var y = h.tagName.toLowerCase();
  4255. (h.isContentEditable || Nr.indexOf(y) > -1) &&
  4256. h.blur();
  4257. }
  4258. (d || p || g) &&
  4259. be(r._window, 'click', r._onClick, !0);
  4260. }
  4261. (r.clientStores = [new Gr(Mr(t))]),
  4262. (r._isIdle = !1),
  4263. (r.flag = !0),
  4264. (r.isDrag = !1),
  4265. (r._isTrusted = e),
  4266. (r._dragFlag = !0),
  4267. (r._prevInputEvent = t),
  4268. (r.data = {}),
  4269. (r.doubleFlag = $t() - r.prevTime < 200),
  4270. (r._isMouseEvent = (function (t) {
  4271. return (
  4272. t &&
  4273. (t.type.indexOf('mouse') > -1 || 'button' in t)
  4274. );
  4275. })(t)),
  4276. !r._isMouseEvent &&
  4277. r._preventMouseEvent &&
  4278. (r._preventMouseEvent = !1),
  4279. !1 ===
  4280. (r._preventMouseEvent ||
  4281. r.emit(
  4282. 'dragStart',
  4283. _r(
  4284. _r(
  4285. {
  4286. data: r.data,
  4287. datas: r.data,
  4288. inputEvent: t,
  4289. isMouseEvent: r._isMouseEvent,
  4290. isSecondaryButton: r._isSecondaryButton,
  4291. isTrusted: e,
  4292. isDouble: r.doubleFlag
  4293. },
  4294. r.getCurrentStore().getPosition()
  4295. ),
  4296. {
  4297. preventDefault: function () {
  4298. t.preventDefault();
  4299. },
  4300. preventDrag: function () {
  4301. r._dragFlag = !1;
  4302. }
  4303. }
  4304. )
  4305. )) && r.stop(),
  4306. r._isMouseEvent && r.flag && c && t.preventDefault();
  4307. }
  4308. if (!r.flag) return !1;
  4309. var I = 0;
  4310. if (
  4311. (v
  4312. ? (r._attchDragEvent(),
  4313. m &&
  4314. o &&
  4315. (I = setTimeout(function () {
  4316. be(i, 'touchstart', r.onDragStart, {
  4317. passive: !1
  4318. });
  4319. })))
  4320. : m && o && we(i, 'touchstart', r.onDragStart),
  4321. r.flag &&
  4322. (function (t) {
  4323. return t.touches && t.touches.length >= 2;
  4324. })(t))
  4325. ) {
  4326. if (
  4327. (clearTimeout(I),
  4328. v && t.touches.length !== t.changedTouches.length)
  4329. )
  4330. return;
  4331. r.pinchFlag || r.onPinchStart(t);
  4332. }
  4333. }
  4334. }
  4335. }),
  4336. (r.onDrag = function (t, e) {
  4337. if (r.flag) {
  4338. var n = r.options.preventDefault;
  4339. !r._isMouseEvent && n && t.preventDefault(),
  4340. (r._prevInputEvent = t);
  4341. var a = Mr(t),
  4342. i = r.moveClients(a, t, !1);
  4343. if (r._dragFlag) {
  4344. if (
  4345. (r.pinchFlag || i.deltaX || i.deltaY) &&
  4346. !1 ===
  4347. (r._preventMouseEvent ||
  4348. r.emit(
  4349. 'drag',
  4350. _r(_r({}, i), { isScroll: !!e, inputEvent: t })
  4351. ))
  4352. )
  4353. return void r.stop();
  4354. r.pinchFlag && r.onPinch(t, a);
  4355. }
  4356. r.getCurrentStore().getPosition(a, !0);
  4357. }
  4358. }),
  4359. (r.onDragEnd = function (t) {
  4360. if (r.flag) {
  4361. var e = r.options,
  4362. n = e.pinchOutside,
  4363. a = e.container,
  4364. i = e.preventClickEventOnDrag,
  4365. o = e.preventClickEventOnDragStart,
  4366. s = e.preventClickEventByCondition,
  4367. l = r.isDrag;
  4368. (i || o || s) &&
  4369. requestAnimationFrame(function () {
  4370. r._allowClickEvent();
  4371. }),
  4372. s || o || !i || l || r._allowClickEvent(),
  4373. r._useTouch && n && we(a, 'touchstart', r.onDragStart),
  4374. r.pinchFlag && r.onPinchEnd(t);
  4375. var c = (null == t ? void 0 : t.touches) ? Mr(t) : [];
  4376. 0 !== c.length && r.options.keepDragging
  4377. ? r._addStore(new Gr(c))
  4378. : (r.flag = !1);
  4379. var u = r._getPosition(),
  4380. f = $t(),
  4381. d = !l && r.doubleFlag;
  4382. (r._prevInputEvent = null),
  4383. (r.prevTime = l || d ? 0 : f),
  4384. r.flag ||
  4385. (r._dettachDragEvent(),
  4386. r._preventMouseEvent ||
  4387. r.emit(
  4388. 'dragEnd',
  4389. _r(
  4390. {
  4391. data: r.data,
  4392. datas: r.data,
  4393. isDouble: d,
  4394. isDrag: l,
  4395. isClick: !l,
  4396. isMouseEvent: r._isMouseEvent,
  4397. isSecondaryButton: r._isSecondaryButton,
  4398. inputEvent: t,
  4399. isTrusted: r._isTrusted
  4400. },
  4401. u
  4402. )
  4403. ),
  4404. (r.clientStores = []),
  4405. r._isMouseEvent ||
  4406. ((r._preventMouseEvent = !0),
  4407. requestAnimationFrame(function () {
  4408. requestAnimationFrame(function () {
  4409. r._preventMouseEvent = !1;
  4410. });
  4411. })),
  4412. (r._isIdle = !0));
  4413. }
  4414. }),
  4415. (r.onBlur = function () {
  4416. r.onDragEnd();
  4417. }),
  4418. (r._allowClickEvent = function () {
  4419. we(r._window, 'click', r._onClick, !0);
  4420. }),
  4421. (r._onClick = function (t) {
  4422. r._allowClickEvent(), (r._preventMouseEvent = !1);
  4423. var e = r.options.preventClickEventByCondition;
  4424. (null == e ? void 0 : e(t)) ||
  4425. (t.stopPropagation(), t.preventDefault());
  4426. }),
  4427. (r._onContextMenu = function (t) {
  4428. r.options.preventRightClick
  4429. ? r.onDragEnd(t)
  4430. : t.preventDefault();
  4431. }),
  4432. (r._passCallback = function () {});
  4433. var a = [].concat(e),
  4434. i = a[0];
  4435. (r._window = Ce(i) ? i : Ee(i)),
  4436. (r.options = _r(
  4437. {
  4438. checkInput: !1,
  4439. container: i && !('document' in i) ? Ee(i) : i,
  4440. preventRightClick: !0,
  4441. preventWheelClick: !0,
  4442. preventClickEventOnDragStart: !1,
  4443. preventClickEventOnDrag: !1,
  4444. preventClickEventByCondition: null,
  4445. preventDefault: !0,
  4446. checkWindowBlur: !1,
  4447. keepDragging: !1,
  4448. pinchThreshold: 0,
  4449. events: ['touch', 'mouse']
  4450. },
  4451. n
  4452. ));
  4453. var o = r.options,
  4454. s = o.container,
  4455. l = o.events,
  4456. c = o.checkWindowBlur;
  4457. if (
  4458. ((r._useDrag = l.indexOf('drag') > -1),
  4459. (r._useTouch = l.indexOf('touch') > -1),
  4460. (r._useMouse = l.indexOf('mouse') > -1),
  4461. (r.targets = a),
  4462. r._useDrag &&
  4463. a.forEach(function (t) {
  4464. be(t, 'dragstart', r.onDragStart);
  4465. }),
  4466. r._useMouse &&
  4467. (a.forEach(function (t) {
  4468. be(t, 'mousedown', r.onDragStart),
  4469. be(t, 'mousemove', r._passCallback);
  4470. }),
  4471. be(s, 'contextmenu', r._onContextMenu)),
  4472. c && be(Ee(), 'blur', r.onBlur),
  4473. r._useTouch)
  4474. ) {
  4475. var u = { passive: !1 };
  4476. a.forEach(function (t) {
  4477. be(t, 'touchstart', r.onDragStart, u),
  4478. be(t, 'touchmove', r._passCallback, u);
  4479. });
  4480. }
  4481. return r;
  4482. }
  4483. return (
  4484. (function (t, e) {
  4485. function n() {
  4486. this.constructor = t;
  4487. }
  4488. Qr(t, e),
  4489. (t.prototype =
  4490. null === e
  4491. ? Object.create(e)
  4492. : ((n.prototype = e.prototype), new n()));
  4493. })(e, t),
  4494. (e.prototype.stop = function () {
  4495. (this.isDrag = !1),
  4496. (this.data = {}),
  4497. (this.clientStores = []),
  4498. (this.pinchFlag = !1),
  4499. (this.doubleFlag = !1),
  4500. (this.prevTime = 0),
  4501. (this.flag = !1),
  4502. (this._isIdle = !0),
  4503. this._allowClickEvent(),
  4504. this._dettachDragEvent(),
  4505. (this._isDragAPI = !1);
  4506. }),
  4507. (e.prototype.getMovement = function (t) {
  4508. return (
  4509. this.getCurrentStore().getMovement(t) +
  4510. this.clientStores.slice(1).reduce(function (t, e) {
  4511. return t + e.movement;
  4512. }, 0)
  4513. );
  4514. }),
  4515. (e.prototype.isDragging = function () {
  4516. return this.isDrag;
  4517. }),
  4518. (e.prototype.isIdle = function () {
  4519. return this._isIdle;
  4520. }),
  4521. (e.prototype.isFlag = function () {
  4522. return this.flag;
  4523. }),
  4524. (e.prototype.isPinchFlag = function () {
  4525. return this.pinchFlag;
  4526. }),
  4527. (e.prototype.isDoubleFlag = function () {
  4528. return this.doubleFlag;
  4529. }),
  4530. (e.prototype.isPinching = function () {
  4531. return this.isPinch;
  4532. }),
  4533. (e.prototype.scrollBy = function (t, e, n, r) {
  4534. void 0 === r && (r = !0),
  4535. this.flag &&
  4536. (this.clientStores[0].move(t, e), r && this.onDrag(n, !0));
  4537. }),
  4538. (e.prototype.move = function (t, e) {
  4539. var n = t[0],
  4540. r = t[1],
  4541. a = this.getCurrentStore().prevClients;
  4542. return this.moveClients(
  4543. a.map(function (t) {
  4544. var e = t.clientX,
  4545. a = t.clientY;
  4546. return {
  4547. clientX: e + n,
  4548. clientY: a + r,
  4549. originalClientX: e,
  4550. originalClientY: a
  4551. };
  4552. }),
  4553. e,
  4554. !0
  4555. );
  4556. }),
  4557. (e.prototype.triggerDragStart = function (t) {
  4558. this.onDragStart(t, !1);
  4559. }),
  4560. (e.prototype.setEventData = function (t) {
  4561. var e = this.data;
  4562. for (var n in t) e[n] = t[n];
  4563. return this;
  4564. }),
  4565. (e.prototype.setEventDatas = function (t) {
  4566. return this.setEventData(t);
  4567. }),
  4568. (e.prototype.getCurrentEvent = function (t) {
  4569. return (
  4570. void 0 === t && (t = this._prevInputEvent),
  4571. _r(
  4572. _r(
  4573. { data: this.data, datas: this.data },
  4574. this._getPosition()
  4575. ),
  4576. {
  4577. movement: this.getMovement(),
  4578. isDrag: this.isDrag,
  4579. isPinch: this.isPinch,
  4580. isScroll: !1,
  4581. inputEvent: t
  4582. }
  4583. )
  4584. );
  4585. }),
  4586. (e.prototype.getEventData = function () {
  4587. return this.data;
  4588. }),
  4589. (e.prototype.getEventDatas = function () {
  4590. return this.data;
  4591. }),
  4592. (e.prototype.unset = function () {
  4593. var t = this,
  4594. e = this.targets,
  4595. n = this.options.container;
  4596. this.off(),
  4597. we(this._window, 'blur', this.onBlur),
  4598. this._useDrag &&
  4599. e.forEach(function (e) {
  4600. we(e, 'dragstart', t.onDragStart);
  4601. }),
  4602. this._useMouse &&
  4603. (e.forEach(function (e) {
  4604. we(e, 'mousedown', t.onDragStart);
  4605. }),
  4606. we(n, 'contextmenu', this._onContextMenu)),
  4607. this._useTouch &&
  4608. (e.forEach(function (e) {
  4609. we(e, 'touchstart', t.onDragStart);
  4610. }),
  4611. we(n, 'touchstart', this.onDragStart)),
  4612. (this._prevInputEvent = null),
  4613. this._allowClickEvent(),
  4614. this._dettachDragEvent();
  4615. }),
  4616. (e.prototype.onPinchStart = function (t) {
  4617. var e = this,
  4618. n = this.options.pinchThreshold;
  4619. if (!(this.isDrag && this.getMovement() > n)) {
  4620. var r = new Gr(Mr(t));
  4621. (this.pinchFlag = !0),
  4622. this._addStore(r),
  4623. !1 ===
  4624. this.emit(
  4625. 'pinchStart',
  4626. _r(
  4627. _r(
  4628. {
  4629. data: this.data,
  4630. datas: this.data,
  4631. angle: r.getAngle(),
  4632. touches: this.getCurrentStore().getPositions()
  4633. },
  4634. r.getPosition()
  4635. ),
  4636. {
  4637. inputEvent: t,
  4638. isTrusted: this._isTrusted,
  4639. preventDefault: function () {
  4640. t.preventDefault();
  4641. },
  4642. preventDrag: function () {
  4643. e._dragFlag = !1;
  4644. }
  4645. }
  4646. )
  4647. ) && (this.pinchFlag = !1);
  4648. }
  4649. }),
  4650. (e.prototype.onPinch = function (t, e) {
  4651. if (this.flag && this.pinchFlag && !(e.length < 2)) {
  4652. var n = this.getCurrentStore();
  4653. (this.isPinch = !0),
  4654. this.emit(
  4655. 'pinch',
  4656. _r(
  4657. _r(
  4658. {
  4659. data: this.data,
  4660. datas: this.data,
  4661. movement: this.getMovement(e),
  4662. angle: n.getAngle(e),
  4663. rotation: n.getRotation(e),
  4664. touches: n.getPositions(e),
  4665. scale: n.getScale(e),
  4666. distance: n.getDistance(e)
  4667. },
  4668. n.getPosition(e)
  4669. ),
  4670. { inputEvent: t, isTrusted: this._isTrusted }
  4671. )
  4672. );
  4673. }
  4674. }),
  4675. (e.prototype.onPinchEnd = function (t) {
  4676. if (this.pinchFlag) {
  4677. var e = this.isPinch;
  4678. (this.isPinch = !1), (this.pinchFlag = !1);
  4679. var n = this.getCurrentStore();
  4680. this.emit(
  4681. 'pinchEnd',
  4682. _r(
  4683. _r(
  4684. {
  4685. data: this.data,
  4686. datas: this.data,
  4687. isPinch: e,
  4688. touches: n.getPositions()
  4689. },
  4690. n.getPosition()
  4691. ),
  4692. { inputEvent: t }
  4693. )
  4694. );
  4695. }
  4696. }),
  4697. (e.prototype.getCurrentStore = function () {
  4698. return this.clientStores[0];
  4699. }),
  4700. (e.prototype.moveClients = function (t, e, n) {
  4701. var r = this._getPosition(t, n),
  4702. a = this.isDrag;
  4703. (r.deltaX || r.deltaY) && (this.isDrag = !0);
  4704. var i = !1;
  4705. return (
  4706. !a && this.isDrag && (i = !0),
  4707. _r(_r({ data: this.data, datas: this.data }, r), {
  4708. movement: this.getMovement(t),
  4709. isDrag: this.isDrag,
  4710. isPinch: this.isPinch,
  4711. isScroll: !1,
  4712. isMouseEvent: this._isMouseEvent,
  4713. isSecondaryButton: this._isSecondaryButton,
  4714. inputEvent: e,
  4715. isTrusted: this._isTrusted,
  4716. isFirstDrag: i
  4717. })
  4718. );
  4719. }),
  4720. (e.prototype._addStore = function (t) {
  4721. this.clientStores.splice(0, 0, t);
  4722. }),
  4723. (e.prototype._getPosition = function (t, e) {
  4724. var n = this.getCurrentStore().getPosition(t, e),
  4725. r = this.clientStores.slice(1).reduce(function (t, e) {
  4726. var n = e.getPosition();
  4727. return (t.distX += n.distX), (t.distY += n.distY), t;
  4728. }, n),
  4729. a = r.distX,
  4730. i = r.distY;
  4731. return _r(_r({}, n), { distX: a, distY: i });
  4732. }),
  4733. (e.prototype._attchDragEvent = function () {
  4734. var t = this._window,
  4735. e = this.options.container,
  4736. n = { passive: !1 };
  4737. this._isDragAPI &&
  4738. (be(e, 'dragover', this.onDrag, n),
  4739. be(t, 'dragend', this.onDragEnd)),
  4740. this._useMouse &&
  4741. (be(e, 'mousemove', this.onDrag),
  4742. be(t, 'mouseup', this.onDragEnd)),
  4743. this._useTouch &&
  4744. (be(e, 'touchmove', this.onDrag, n),
  4745. be(t, 'touchend', this.onDragEnd, n),
  4746. be(t, 'touchcancel', this.onDragEnd, n));
  4747. }),
  4748. (e.prototype._dettachDragEvent = function () {
  4749. var t = this._window,
  4750. e = this.options.container;
  4751. this._isDragAPI &&
  4752. (we(e, 'dragover', this.onDrag),
  4753. we(t, 'dragend', this.onDragEnd)),
  4754. this._useMouse &&
  4755. (we(e, 'mousemove', this.onDrag),
  4756. we(t, 'mouseup', this.onDragEnd)),
  4757. this._useTouch &&
  4758. (we(e, 'touchstart', this.onDragStart),
  4759. we(e, 'touchmove', this.onDrag),
  4760. we(t, 'touchend', this.onDragEnd),
  4761. we(t, 'touchcancel', this.onDragEnd));
  4762. }),
  4763. e
  4764. );
  4765. })(pr),
  4766. Fr = function (t) {
  4767. for (var e = 5381, n = t.length; n; )
  4768. e = (33 * e) ^ t.charCodeAt(--n);
  4769. return e >>> 0;
  4770. };
  4771. function Lr(t, e, n, r, a) {
  4772. var i = ke(r),
  4773. o = i.createElement('style');
  4774. return (
  4775. o.setAttribute('type', 'text/css'),
  4776. o.setAttribute('data-styled-id', t),
  4777. o.setAttribute('data-styled-count', '1'),
  4778. n.nonce && o.setAttribute('nonce', n.nonce),
  4779. (o.innerHTML = (function (t, e, n) {
  4780. return n.original
  4781. ? e
  4782. : e.replace(/([^};{\s}][^};{]*|^\s*){/gm, function (e, n) {
  4783. var r = n.trim();
  4784. return (
  4785. (r ? qt(r) : [''])
  4786. .map(function (e) {
  4787. var n = e.trim();
  4788. return 0 === n.indexOf('@')
  4789. ? n
  4790. : n.indexOf(':global') > -1
  4791. ? n.replace(/\:global/g, '')
  4792. : n.indexOf(':host') > -1
  4793. ? ''.concat(n.replace(/\:host/g, '.'.concat(t)))
  4794. : n
  4795. ? '.'.concat(t, ' ').concat(n)
  4796. : '.'.concat(t);
  4797. })
  4798. .join(', ') + ' {'
  4799. );
  4800. });
  4801. })(t, e, n)),
  4802. (a || i.head || i.body).appendChild(o),
  4803. o
  4804. );
  4805. }
  4806. function Xr(t) {
  4807. var e = 'rCS' + Fr(t).toString(36);
  4808. return {
  4809. className: e,
  4810. inject: function (n, r) {
  4811. void 0 === r && (r = {});
  4812. var a = (function (t) {
  4813. if (t && t.getRootNode) {
  4814. var e = t.getRootNode();
  4815. if (11 === e.nodeType) return e;
  4816. }
  4817. })(n),
  4818. i = (a || n.ownerDocument || document).querySelector(
  4819. 'style[data-styled-id="'.concat(e, '"]')
  4820. );
  4821. if (i) {
  4822. var o = parseFloat(i.getAttribute('data-styled-count')) || 0;
  4823. i.setAttribute('data-styled-count', ''.concat(o + 1));
  4824. } else i = Lr(e, t, r, n, a);
  4825. return {
  4826. destroy: function () {
  4827. var t,
  4828. e = parseFloat(i.getAttribute('data-styled-count')) || 0;
  4829. e <= 1
  4830. ? (i.remove
  4831. ? i.remove()
  4832. : null === (t = i.parentNode) ||
  4833. void 0 === t ||
  4834. t.removeChild(i),
  4835. (i = null))
  4836. : i.setAttribute('data-styled-count', ''.concat(e - 1));
  4837. }
  4838. };
  4839. }
  4840. };
  4841. }
  4842. var jr = function () {
  4843. return (
  4844. (jr =
  4845. Object.assign ||
  4846. function (t) {
  4847. for (var e, n = 1, r = arguments.length; n < r; n++)
  4848. for (var a in (e = arguments[n]))
  4849. Object.prototype.hasOwnProperty.call(e, a) && (t[a] = e[a]);
  4850. return t;
  4851. }),
  4852. jr.apply(this, arguments)
  4853. );
  4854. };
  4855. function Wr(t, e) {
  4856. var n,
  4857. r = Xr(e),
  4858. a = r.className;
  4859. return (
  4860. (n = function (e, n) {
  4861. var i = e.className,
  4862. o = void 0 === i ? '' : i;
  4863. e.cspNonce;
  4864. var s = (function (t, e) {
  4865. var n = {};
  4866. for (var r in t)
  4867. Object.prototype.hasOwnProperty.call(t, r) &&
  4868. e.indexOf(r) < 0 &&
  4869. (n[r] = t[r]);
  4870. if (
  4871. null != t &&
  4872. 'function' == typeof Object.getOwnPropertySymbols
  4873. ) {
  4874. var a = 0;
  4875. for (r = Object.getOwnPropertySymbols(t); a < r.length; a++)
  4876. e.indexOf(r[a]) < 0 &&
  4877. Object.prototype.propertyIsEnumerable.call(t, r[a]) &&
  4878. (n[r[a]] = t[r[a]]);
  4879. }
  4880. return n;
  4881. })(e, ['className', 'cspNonce']),
  4882. l = mn();
  4883. return (
  4884. (function (t, e, n) {
  4885. vn(
  4886. function () {
  4887. null == t || t(e());
  4888. },
  4889. n,
  4890. !0
  4891. );
  4892. })(
  4893. n,
  4894. function () {
  4895. return l.current;
  4896. },
  4897. []
  4898. ),
  4899. vn(function () {
  4900. var t = r.inject(l.current, { nonce: e.cspNonce });
  4901. return function () {
  4902. t.destroy();
  4903. };
  4904. }, []),
  4905. ln(
  4906. t,
  4907. jr(
  4908. {
  4909. ref: l,
  4910. 'data-styled-id': a,
  4911. className: ''.concat(o, ' ').concat(a)
  4912. },
  4913. s
  4914. )
  4915. )
  4916. );
  4917. }),
  4918. (n._fr = !0),
  4919. n
  4920. );
  4921. }
  4922. var Hr = function (t, e) {
  4923. return (
  4924. (Hr =
  4925. Object.setPrototypeOf ||
  4926. ({ __proto__: [] } instanceof Array &&
  4927. function (t, e) {
  4928. t.__proto__ = e;
  4929. }) ||
  4930. function (t, e) {
  4931. for (var n in e)
  4932. Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  4933. }),
  4934. Hr(t, e)
  4935. );
  4936. };
  4937. function Vr(t, e) {
  4938. if ('function' != typeof e && null !== e)
  4939. throw new TypeError(
  4940. 'Class extends value ' +
  4941. String(e) +
  4942. ' is not a constructor or null'
  4943. );
  4944. function n() {
  4945. this.constructor = t;
  4946. }
  4947. Hr(t, e),
  4948. (t.prototype =
  4949. null === e
  4950. ? Object.create(e)
  4951. : ((n.prototype = e.prototype), new n()));
  4952. }
  4953. var qr = function () {
  4954. return (
  4955. (qr =
  4956. Object.assign ||
  4957. function (t) {
  4958. for (var e, n = 1, r = arguments.length; n < r; n++)
  4959. for (var a in (e = arguments[n]))
  4960. Object.prototype.hasOwnProperty.call(e, a) && (t[a] = e[a]);
  4961. return t;
  4962. }),
  4963. qr.apply(this, arguments)
  4964. );
  4965. };
  4966. function Kr(t, e) {
  4967. var n = 'function' == typeof Symbol && t[Symbol.iterator];
  4968. if (!n) return t;
  4969. var r,
  4970. a,
  4971. i = n.call(t),
  4972. o = [];
  4973. try {
  4974. for (; (void 0 === e || e-- > 0) && !(r = i.next()).done; )
  4975. o.push(r.value);
  4976. } catch (s) {
  4977. a = { error: s };
  4978. } finally {
  4979. try {
  4980. r && !r.done && (n = i.return) && n.call(i);
  4981. } finally {
  4982. if (a) throw a.error;
  4983. }
  4984. }
  4985. return o;
  4986. }
  4987. function Zr(t, e, n) {
  4988. if (n || 2 === arguments.length)
  4989. for (var r, a = 0, i = e.length; a < i; a++)
  4990. (!r && a in e) ||
  4991. (r || (r = Array.prototype.slice.call(e, 0, a)), (r[a] = e[a]));
  4992. return t.concat(r || Array.prototype.slice.call(e));
  4993. }
  4994. function Jr(t, e) {
  4995. return qr({ events: [], props: [], name: t }, e);
  4996. }
  4997. var $r,
  4998. ta,
  4999. ea,
  5000. na = ['n', 'w', 's', 'e'],
  5001. ra = ['n', 'w', 's', 'e', 'nw', 'ne', 'sw', 'se'],
  5002. aa =
  5003. void 0 === $r &&
  5004. (function () {
  5005. if (
  5006. 'undefined' == typeof navigator ||
  5007. !navigator ||
  5008. !navigator.userAgentData
  5009. )
  5010. return !1;
  5011. var t = navigator.userAgentData,
  5012. e = t.brands || t.uaList;
  5013. return !(!e || !e.length);
  5014. })()
  5015. ? (function (t) {
  5016. var e = navigator.userAgentData,
  5017. n = (e.uaList || e.brands).slice(),
  5018. r = t && t.fullVersionList,
  5019. a = e.mobile || !1,
  5020. i = n[0],
  5021. o = (
  5022. (t && t.platform) ||
  5023. e.platform ||
  5024. navigator.platform
  5025. ).toLowerCase(),
  5026. s = {
  5027. name: i.brand,
  5028. version: i.version,
  5029. majorVersion: -1,
  5030. webkit: !1,
  5031. webkitVersion: '-1',
  5032. chromium: !1,
  5033. chromiumVersion: '-1',
  5034. webview: !!In(Sn, n).brand || Rn(bn())
  5035. },
  5036. l = { name: 'unknown', version: '-1', majorVersion: -1 };
  5037. s.webkit =
  5038. !s.chromium &&
  5039. hn(xn, function (t) {
  5040. return En(n, t);
  5041. });
  5042. var c = In(Bn, n);
  5043. if (
  5044. ((s.chromium = !!c.brand),
  5045. (s.chromiumVersion = c.version),
  5046. !s.chromium)
  5047. ) {
  5048. var u = In(xn, n);
  5049. (s.webkit = !!u.brand), (s.webkitVersion = u.version);
  5050. }
  5051. var f = An(Dn, function (t) {
  5052. return new RegExp('' + t.test, 'g').exec(o);
  5053. });
  5054. if (
  5055. ((l.name = f ? f.id : ''),
  5056. t && (l.version = t.platformVersion),
  5057. r && r.length)
  5058. ) {
  5059. var d = In(Cn, r);
  5060. (s.name = d.brand || s.name),
  5061. (s.version = d.version || s.version);
  5062. } else {
  5063. var p = In(Cn, n);
  5064. (s.name = p.brand || s.name),
  5065. (s.version = p.brand && t ? t.uaFullVersion : p.version);
  5066. }
  5067. return (
  5068. s.webkit && (l.name = a ? 'ios' : 'mac'),
  5069. 'ios' === l.name && s.webview && (s.version = '-1'),
  5070. (l.version = kn(l.version)),
  5071. (s.version = kn(s.version)),
  5072. (l.majorVersion = parseInt(l.version, 10)),
  5073. (s.majorVersion = parseInt(s.version, 10)),
  5074. { browser: s, os: l, isMobile: a, isHints: !0 }
  5075. );
  5076. })()
  5077. : (function (t) {
  5078. var e = bn(t),
  5079. n = !!/mobi/g.exec(e),
  5080. r = {
  5081. name: 'unknown',
  5082. version: '-1',
  5083. majorVersion: -1,
  5084. webview: Rn(e),
  5085. chromium: !1,
  5086. chromiumVersion: '-1',
  5087. webkit: !1,
  5088. webkitVersion: '-1'
  5089. },
  5090. a = { name: 'unknown', version: '-1', majorVersion: -1 },
  5091. i = yn(Cn, e),
  5092. o = i.preset,
  5093. s = i.version,
  5094. l = yn(Dn, e),
  5095. c = l.preset,
  5096. u = l.version,
  5097. f = yn(Bn, e);
  5098. if (
  5099. ((r.chromium = !!f.preset),
  5100. (r.chromiumVersion = f.version),
  5101. !r.chromium)
  5102. ) {
  5103. var d = yn(xn, e);
  5104. (r.webkit = !!d.preset), (r.webkitVersion = d.version);
  5105. }
  5106. return (
  5107. c &&
  5108. ((a.name = c.id),
  5109. (a.version = u),
  5110. (a.majorVersion = parseInt(u, 10))),
  5111. o &&
  5112. ((r.name = o.id),
  5113. (r.version = s),
  5114. r.webview &&
  5115. 'ios' === a.name &&
  5116. 'safari' !== r.name &&
  5117. (r.webview = !1)),
  5118. (r.majorVersion = parseInt(r.version, 10)),
  5119. { browser: r, os: a, isMobile: n, isHints: !1 }
  5120. );
  5121. })($r),
  5122. ia = aa.browser.webkit,
  5123. oa =
  5124. ia &&
  5125. ((ta =
  5126. 'undefined' == typeof window
  5127. ? { userAgent: '' }
  5128. : window.navigator),
  5129. !!(ea = /applewebkit\/([^\s]+)/g.exec(
  5130. ta.userAgent.toLowerCase()
  5131. )) && parseFloat(ea[1]) < 605),
  5132. sa = aa.browser.name,
  5133. la = parseInt(aa.browser.version, 10),
  5134. ca = 'chrome' === sa,
  5135. ua = aa.browser.chromium,
  5136. fa = parseInt(aa.browser.chromiumVersion, 10) || 0,
  5137. da = (ca && la >= 109) || (ua && fa >= 109),
  5138. pa = 'firefox' === sa,
  5139. ga = parseInt(aa.browser.webkitVersion, 10) >= 612 || la >= 15,
  5140. ma = 'moveable-',
  5141. va = ra
  5142. .map(function (t) {
  5143. var e = '',
  5144. n = '',
  5145. r = 'center',
  5146. a = 'center',
  5147. i = 'calc(var(--moveable-control-padding, 20) * -1px)';
  5148. return (
  5149. t.indexOf('n') > -1 &&
  5150. ((e = 'top: '.concat(i, ';')), (a = 'bottom')),
  5151. t.indexOf('s') > -1 && ((e = 'top: 0px;'), (a = 'top')),
  5152. t.indexOf('w') > -1 &&
  5153. ((n = 'left: '.concat(i, ';')), (r = 'right')),
  5154. t.indexOf('e') > -1 && ((n = 'left: 0px;'), (r = 'left')),
  5155. '.around-control[data-direction*="'
  5156. .concat(t, '"] {\n ')
  5157. .concat(n)
  5158. .concat(e, '\n transform-origin: ')
  5159. .concat(r, ' ')
  5160. .concat(a, ';\n }')
  5161. );
  5162. })
  5163. .join('\n'),
  5164. ha =
  5165. '\n{\nposition: absolute;\nwidth: 1px;\nheight: 1px;\nleft: 0;\ntop: 0;\nz-index: 3000;\n--moveable-color: #4af;\n--zoom: 1;\n--zoompx: 1px;\n--moveable-line-padding: 0;\n--moveable-control-padding: 0;\nwill-change: transform;\noutline: 1px solid transparent;\n}\n.control-box {\nz-index: 0;\n}\n.line, .control {\nposition: absolute;\nleft: 0;\ntop: 0;\nwill-change: transform;\n}\n.control {\nwidth: 14px;\nheight: 14px;\nborder-radius: 50%;\nborder: 2px solid #fff;\nbox-sizing: border-box;\nbackground: #4af;\nbackground: var(--moveable-color);\nmargin-top: -7px;\nmargin-left: -7px;\nborder: 2px solid #fff;\nz-index: 10;\n}\n.around-control {\nposition: absolute;\nwill-change: transform;\nwidth: calc(var(--moveable-control-padding, 20) * 1px);\nheight: calc(var(--moveable-control-padding, 20) * 1px);\nleft: calc(var(--moveable-control-padding, 20) * -0.5px);\ntop: calc(var(--moveable-control-padding, 20) * -0.5px);\nbox-sizing: border-box;\nbackground: transparent;\nz-index: 8;\ncursor: alias;\ntransform-origin: center center;\n}\n'
  5166. .concat(
  5167. va,
  5168. '\n.padding {\nposition: absolute;\ntop: 0px;\nleft: 0px;\nwidth: 100px;\nheight: 100px;\ntransform-origin: 0 0;\n}\n.line {\nwidth: 1px;\nheight: 1px;\nbackground: #4af;\nbackground: var(--moveable-color);\ntransform-origin: 0px 50%;\n}\n.line.edge {\nz-index: 1;\nbackground: transparent;\n}\n.line.dashed {\nbox-sizing: border-box;\nbackground: transparent;\n}\n.line.dashed.horizontal {\nborder-top: 1px dashed #4af;\nborder-top-color: #4af;\nborder-top-color: var(--moveable-color);\n}\n.line.dashed.vertical {\nborder-left: 1px dashed #4af;\nborder-left-color: #4af;\nborder-left-color: var(--moveable-color);\n}\n.line.vertical {\ntransform: translateX(-50%);\n}\n.line.horizontal {\ntransform: translateY(-50%);\n}\n.line.vertical.bold {\nwidth: 2px;\n}\n.line.horizontal.bold {\nheight: 2px;\n}\n\n.control.origin {\nborder-color: #f55;\nbackground: #fff;\nwidth: 12px;\nheight: 12px;\nmargin-top: -6px;\nmargin-left: -6px;\npointer-events: none;\n}\n'
  5169. )
  5170. .concat(
  5171. [0, 15, 30, 45, 60, 75, 90, 105, 120, 135, 150, 165]
  5172. .map(function (t) {
  5173. return '\n.direction[data-rotation="'
  5174. .concat(t, '"], :global .view-control-rotation')
  5175. .concat(t, ' {\n')
  5176. .concat(
  5177. (function (t) {
  5178. var e = (function (t, e) {
  5179. return 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="'
  5180. .concat(32 * t, 'px" height="')
  5181. .concat(
  5182. 32 * t,
  5183. 'px" viewBox="0 0 32 32" ><path d="M 16,5 L 12,10 L 14.5,10 L 14.5,22 L 12,22 L 16,27 L 20,22 L 17.5,22 L 17.5,10 L 20, 10 L 16,5 Z" stroke-linejoin="round" stroke-width="1.2" fill="black" stroke="white" style="transform:rotate('
  5184. )
  5185. .concat(
  5186. e,
  5187. 'deg);transform-origin: 16px 16px"></path></svg>'
  5188. );
  5189. })(1, t),
  5190. n = (45 * Math.round(t / 45)) % 180,
  5191. r = 'ns-resize';
  5192. return (
  5193. 135 === n
  5194. ? (r = 'nwse-resize')
  5195. : 45 === n
  5196. ? (r = 'nesw-resize')
  5197. : 90 === n && (r = 'ew-resize'),
  5198. 'cursor:'
  5199. .concat(r, ";cursor: url('")
  5200. .concat(e, "') 16 16, ")
  5201. .concat(r, ';')
  5202. );
  5203. })(t),
  5204. '\n}\n'
  5205. );
  5206. })
  5207. .join('\n'),
  5208. '\n\n.line.direction:before {\ncontent: "";\nposition: absolute;\nwidth: 100%;\nheight: calc(var(--moveable-line-padding, 0) * 1px);\nbottom: 0;\nleft: 0;\n}\n.group {\nz-index: -1;\n}\n.area {\nposition: absolute;\n}\n.area-pieces {\nposition: absolute;\ntop: 0;\nleft: 0;\ndisplay: none;\n}\n.area.avoid, .area.pass {\npointer-events: none;\n}\n.area.avoid+.area-pieces {\ndisplay: block;\n}\n.area-piece {\nposition: absolute;\n}\n\n'
  5209. )
  5210. .concat(
  5211. oa
  5212. ? ':global svg *:before {\ncontent:"";\ntransform-origin: inherit;\n}'
  5213. : '',
  5214. '\n'
  5215. ),
  5216. Aa = [
  5217. [0, 1, 2],
  5218. [1, 0, 3],
  5219. [2, 0, 3],
  5220. [3, 1, 2]
  5221. ],
  5222. ba = 1e-4,
  5223. wa = 1e-7,
  5224. ka = 1e-9,
  5225. ya = Math.pow(10, 10),
  5226. Ia = -ya,
  5227. Ea = {
  5228. n: [0, -1],
  5229. e: [1, 0],
  5230. s: [0, 1],
  5231. w: [-1, 0],
  5232. nw: [-1, -1],
  5233. ne: [1, -1],
  5234. sw: [-1, 1],
  5235. se: [1, 1]
  5236. },
  5237. Ca = {
  5238. n: [0, 1],
  5239. e: [1, 3],
  5240. s: [3, 2],
  5241. w: [2, 0],
  5242. nw: [0],
  5243. ne: [1],
  5244. sw: [2],
  5245. se: [3]
  5246. },
  5247. Ba = {
  5248. n: 0,
  5249. s: 180,
  5250. w: 270,
  5251. e: 90,
  5252. nw: 315,
  5253. ne: 45,
  5254. sw: 225,
  5255. se: 135
  5256. },
  5257. xa = [
  5258. 'isMoveableElement',
  5259. 'updateRect',
  5260. 'updateTarget',
  5261. 'destroy',
  5262. 'dragStart',
  5263. 'isInside',
  5264. 'hitTest',
  5265. 'setState',
  5266. 'getRect',
  5267. 'request',
  5268. 'isDragging',
  5269. 'getManager',
  5270. 'forceUpdate',
  5271. 'waitToChangeTarget',
  5272. 'updateSelectors',
  5273. 'getTargets',
  5274. 'stopDrag',
  5275. 'getControlBoxElement'
  5276. ];
  5277. function Sa(t, e, n, r, a, i) {
  5278. var o, s;
  5279. void 0 === i && (i = 'draggable');
  5280. var l =
  5281. null !==
  5282. (s =
  5283. null === (o = e.gestos[i]) || void 0 === o
  5284. ? void 0
  5285. : o.move(n, t.inputEvent)) && void 0 !== s
  5286. ? s
  5287. : {},
  5288. c = l.originalDatas || l.datas,
  5289. u = c[i] || (c[i] = {});
  5290. return qr(qr({}, a ? Os(e, l) : l), {
  5291. isPinch: !!r,
  5292. parentEvent: !0,
  5293. datas: u,
  5294. originalDatas: t.originalDatas
  5295. });
  5296. }
  5297. var Da = (function () {
  5298. function t(t) {
  5299. var e;
  5300. void 0 === t && (t = 'draggable'),
  5301. (this.ableName = t),
  5302. (this.prevX = 0),
  5303. (this.prevY = 0),
  5304. (this.startX = 0),
  5305. (this.startY = 0),
  5306. (this.isDrag = !1),
  5307. (this.isFlag = !1),
  5308. (this.datas = { draggable: {} }),
  5309. (this.datas = (((e = {})[t] = {}), e));
  5310. }
  5311. return (
  5312. (t.prototype.dragStart = function (t, e) {
  5313. (this.isDrag = !1), (this.isFlag = !1);
  5314. var n = e.originalDatas;
  5315. return (
  5316. (this.datas = n),
  5317. n[this.ableName] || (n[this.ableName] = {}),
  5318. qr(qr({}, this.move(t, e.inputEvent)), { type: 'dragstart' })
  5319. );
  5320. }),
  5321. (t.prototype.drag = function (t, e) {
  5322. return this.move([t[0] - this.prevX, t[1] - this.prevY], e);
  5323. }),
  5324. (t.prototype.move = function (t, e) {
  5325. var n,
  5326. r,
  5327. a = !1;
  5328. if (this.isFlag) {
  5329. var i = this.isDrag;
  5330. (n = this.prevX + t[0]),
  5331. (r = this.prevY + t[1]),
  5332. (t[0] || t[1]) && (this.isDrag = !0),
  5333. !i && this.isDrag && (a = !0);
  5334. } else
  5335. (this.prevX = t[0]),
  5336. (this.prevY = t[1]),
  5337. (this.startX = t[0]),
  5338. (this.startY = t[1]),
  5339. (n = t[0]),
  5340. (r = t[1]),
  5341. (this.isFlag = !0);
  5342. return (
  5343. (this.prevX = n),
  5344. (this.prevY = r),
  5345. {
  5346. type: 'drag',
  5347. clientX: n,
  5348. clientY: r,
  5349. inputEvent: e,
  5350. isFirstDrag: a,
  5351. isDrag: this.isDrag,
  5352. distX: n - this.startX,
  5353. distY: r - this.startY,
  5354. deltaX: t[0],
  5355. deltaY: t[1],
  5356. datas: this.datas[this.ableName],
  5357. originalDatas: this.datas,
  5358. parentEvent: !0,
  5359. parentGesto: this
  5360. }
  5361. );
  5362. }),
  5363. t
  5364. );
  5365. })();
  5366. function Ra(t, e, n, r) {
  5367. var a = 16 === t.length ? 4 : 3,
  5368. i = Kr(es(t, n, r, a), 4),
  5369. o = Kr(i[0], 2),
  5370. s = o[0],
  5371. l = o[1],
  5372. c = Kr(i[1], 2),
  5373. u = c[0],
  5374. f = c[1],
  5375. d = Kr(i[2], 2),
  5376. p = d[0],
  5377. g = d[1],
  5378. m = Kr(i[3], 2),
  5379. v = m[0],
  5380. h = m[1],
  5381. A = Kr(ts(t, e, a), 2),
  5382. b = A[0],
  5383. w = A[1],
  5384. k = Math.min(s, u, p, v),
  5385. y = Math.min(l, f, g, h),
  5386. I = Math.max(s, u, p, v);
  5387. return (
  5388. (s = s - k || 0),
  5389. {
  5390. left: k,
  5391. top: y,
  5392. right: I,
  5393. bottom: Math.max(l, f, g, h),
  5394. origin: [(b = b - k || 0), (w = w - y || 0)],
  5395. pos1: [s, (l = l - y || 0)],
  5396. pos2: [(u = u - k || 0), (f = f - y || 0)],
  5397. pos3: [(p = p - k || 0), (g = g - y || 0)],
  5398. pos4: [(v = v - k || 0), (h = h - y || 0)],
  5399. direction: Vs(t[0] * t[a + 1])
  5400. }
  5401. );
  5402. }
  5403. function Qa(t, e) {
  5404. var n = e.clientX,
  5405. r = e.clientY,
  5406. a = e.datas,
  5407. i = t.state,
  5408. o = i.moveableClientRect,
  5409. s = i.rootMatrix,
  5410. l = i.is3d,
  5411. c = i.pos1,
  5412. u = Kr(Fn(_s(s, [n - o.left, r - o.top], l ? 4 : 3), c), 2),
  5413. f = Kr(Ya({ datas: a, distX: u[0], distY: u[1] }), 2);
  5414. return [f[0], f[1]];
  5415. }
  5416. function _a(t, e) {
  5417. var n = e.datas,
  5418. r = t.state,
  5419. a = r.allMatrix,
  5420. i = r.beforeMatrix,
  5421. o = r.is3d,
  5422. s = r.left,
  5423. l = r.top,
  5424. c = r.origin,
  5425. u = r.offsetMatrix,
  5426. f = r.targetMatrix,
  5427. d = r.transformOrigin,
  5428. p = o ? 4 : 3;
  5429. (n.is3d = o),
  5430. (n.matrix = a),
  5431. (n.targetMatrix = f),
  5432. (n.beforeMatrix = i),
  5433. (n.offsetMatrix = u),
  5434. (n.transformOrigin = d),
  5435. (n.inverseMatrix = Tn(a, p)),
  5436. (n.inverseBeforeMatrix = Tn(i, p)),
  5437. (n.absoluteOrigin = Pn(Un([s, l], c), p)),
  5438. (n.startDragBeforeDist = Xn(
  5439. n.inverseBeforeMatrix,
  5440. n.absoluteOrigin,
  5441. p
  5442. )),
  5443. (n.startDragDist = Xn(n.inverseMatrix, n.absoluteOrigin, p));
  5444. }
  5445. function Oa(t, e) {
  5446. var n = t.datas,
  5447. r = t.originalDatas.beforeRenderable,
  5448. a = n.transformIndex,
  5449. i = r.nextTransforms,
  5450. o = i.length,
  5451. s = r.nextTransformAppendedIndexes,
  5452. l = -1;
  5453. -1 === a
  5454. ? ('translate' === e
  5455. ? (l = 0)
  5456. : 'rotate' === e &&
  5457. (l = te(i, function (t) {
  5458. return t.match(/scale\(/g);
  5459. })),
  5460. -1 === l && (l = i.length),
  5461. (n.transformIndex = l))
  5462. : (l = ee(s, function (t) {
  5463. return t.index === a && t.functionName === e;
  5464. })
  5465. ? a
  5466. : a +
  5467. s.filter(function (t) {
  5468. return t.index < a;
  5469. }).length);
  5470. var c = (function (t, e) {
  5471. var n,
  5472. r = or(t),
  5473. a = t.slice(0, e < 0 ? void 0 : e),
  5474. i = t.slice(0, e < 0 ? void 0 : e + 1),
  5475. o = t[e] || '',
  5476. s = e < 0 ? [] : t.slice(e),
  5477. l = e < 0 ? [] : t.slice(e + 1),
  5478. c = r.slice(0, e < 0 ? void 0 : e),
  5479. u = r.slice(0, e < 0 ? void 0 : e + 1),
  5480. f = null !== (n = r[e]) && void 0 !== n ? n : or([''])[0],
  5481. d = e < 0 ? [] : r.slice(e),
  5482. p = e < 0 ? [] : r.slice(e + 1),
  5483. g = f ? [f] : [],
  5484. m = ir(c),
  5485. v = ir(u),
  5486. h = ir(d),
  5487. A = ir(p),
  5488. b = Nn(m, h, 4);
  5489. return {
  5490. transforms: t,
  5491. beforeFunctionMatrix: m,
  5492. beforeFunctionMatrix2: v,
  5493. targetFunctionMatrix: ir(g),
  5494. afterFunctionMatrix: h,
  5495. afterFunctionMatrix2: A,
  5496. allFunctionMatrix: b,
  5497. beforeFunctions: c,
  5498. beforeFunctions2: u,
  5499. targetFunction: g[0],
  5500. afterFunctions: d,
  5501. afterFunctions2: p,
  5502. beforeFunctionTexts: a,
  5503. beforeFunctionTexts2: i,
  5504. targetFunctionText: o,
  5505. afterFunctionTexts: s,
  5506. afterFunctionTexts2: l
  5507. };
  5508. })(i, l),
  5509. u = c.targetFunction,
  5510. f = 'rotate' === e ? 'rotateZ' : e;
  5511. (n.beforeFunctionTexts = c.beforeFunctionTexts),
  5512. (n.afterFunctionTexts = c.afterFunctionTexts),
  5513. (n.beforeTransform = c.beforeFunctionMatrix),
  5514. (n.beforeTransform2 = c.beforeFunctionMatrix2),
  5515. (n.targetTansform = c.targetFunctionMatrix),
  5516. (n.afterTransform = c.afterFunctionMatrix),
  5517. (n.afterTransform2 = c.afterFunctionMatrix2),
  5518. (n.targetAllTransform = c.allFunctionMatrix),
  5519. u.functionName === f
  5520. ? (n.afterFunctionTexts.splice(0, 1), (n.isAppendTransform = !1))
  5521. : o > l &&
  5522. ((n.isAppendTransform = !0),
  5523. (r.nextTransformAppendedIndexes = Zr(
  5524. Zr([], Kr(s), !1),
  5525. [{ functionName: e, index: l, isAppend: !0 }],
  5526. !1
  5527. )));
  5528. }
  5529. function Ma(t, e, n) {
  5530. return ''
  5531. .concat(t.beforeFunctionTexts.join(' '), ' ')
  5532. .concat(t.isAppendTransform ? n : e, ' ')
  5533. .concat(t.afterFunctionTexts.join(' '));
  5534. }
  5535. function Ta(t) {
  5536. var e = t.datas,
  5537. n = Kr(Pa({ datas: e, distX: t.distX, distY: t.distY }), 2);
  5538. return Xn(
  5539. za(
  5540. e,
  5541. (function (t, e) {
  5542. for (var n = $n(e), r = 0; r < e - 1; ++r)
  5543. n[e * (e - 1) + r] = t[r] || 0;
  5544. return n;
  5545. })([n[0], n[1]], 4)
  5546. ),
  5547. Pn([0, 0, 0], 4),
  5548. 4
  5549. );
  5550. }
  5551. function za(t, e, n) {
  5552. var r = t.beforeTransform,
  5553. a = t.afterTransform,
  5554. i = t.beforeTransform2,
  5555. o = t.afterTransform2,
  5556. s = t.targetAllTransform,
  5557. l = n ? Nn(s, e, 4) : Nn(e, s, 4),
  5558. c = Nn(Tn(n ? i : r, 4), l, 4);
  5559. return Nn(c, Tn(n ? o : a, 4), 4);
  5560. }
  5561. function Pa(t) {
  5562. var e = t.datas,
  5563. n = t.distX,
  5564. r = t.distY,
  5565. a = e.inverseBeforeMatrix,
  5566. i = e.is3d,
  5567. o = e.startDragBeforeDist,
  5568. s = i ? 4 : 3;
  5569. return Fn(Xn(a, Un(e.absoluteOrigin, [n, r]), s), o);
  5570. }
  5571. function Ya(t, e) {
  5572. var n = t.datas,
  5573. r = t.distX,
  5574. a = t.distY,
  5575. i = n.inverseBeforeMatrix,
  5576. o = n.inverseMatrix,
  5577. s = n.is3d,
  5578. l = n.startDragBeforeDist,
  5579. c = n.startDragDist,
  5580. u = s ? 4 : 3;
  5581. return Fn(Xn(e ? i : o, Un(n.absoluteOrigin, [r, a]), u), e ? l : c);
  5582. }
  5583. function Ga(t) {
  5584. var e = [];
  5585. return (
  5586. t[1] >= 0 && (t[0] >= 0 && e.push(3), t[0] <= 0 && e.push(2)),
  5587. t[1] <= 0 && (t[0] >= 0 && e.push(1), t[0] <= 0 && e.push(0)),
  5588. e
  5589. );
  5590. }
  5591. function Na(t, e) {
  5592. var n = (e[0] + 1) / 2,
  5593. r = (e[1] + 1) / 2,
  5594. a = [
  5595. Yt(t[0][0], t[1][0], n, 1 - n),
  5596. Yt(t[0][1], t[1][1], n, 1 - n)
  5597. ],
  5598. i = [
  5599. Yt(t[2][0], t[3][0], n, 1 - n),
  5600. Yt(t[2][1], t[3][1], n, 1 - n)
  5601. ];
  5602. return [Yt(a[0], i[0], r, 1 - r), Yt(a[1], i[1], r, 1 - r)];
  5603. }
  5604. function Ua(t, e, n, r) {
  5605. return Nn(t, Fo(e, r, n), r);
  5606. }
  5607. function Fa(t) {
  5608. var e = Wa(t);
  5609. return {
  5610. setTransform: function (n, r) {
  5611. void 0 === r && (r = -1),
  5612. (e.startTransforms = Ut(n) ? n : Vt(n)),
  5613. Xa(t, r);
  5614. },
  5615. setTransformIndex: function (e) {
  5616. Xa(t, e);
  5617. }
  5618. };
  5619. }
  5620. function La(t, e) {
  5621. Xa(
  5622. t,
  5623. te(Wa(t).startTransforms, function (t) {
  5624. return 0 === t.indexOf(''.concat(e, '('));
  5625. })
  5626. );
  5627. }
  5628. function Xa(t, e) {
  5629. var n = Wa(t),
  5630. r = t.datas;
  5631. if (((r.transformIndex = e), -1 !== e)) {
  5632. var a = n.startTransforms[e];
  5633. if (a) {
  5634. var i = or([a]);
  5635. r.startValue = i[0].functionValue;
  5636. }
  5637. }
  5638. }
  5639. function ja(t, e) {
  5640. Wa(t).nextTransforms = Vt(e);
  5641. }
  5642. function Wa(t) {
  5643. return t.originalDatas.beforeRenderable;
  5644. }
  5645. function Ha(t) {
  5646. return t.originalDatas.beforeRenderable.nextTransforms;
  5647. }
  5648. function Va(t) {
  5649. return (Ha(t) || []).join(' ');
  5650. }
  5651. function qa(t) {
  5652. return Wa(t).nextStyle;
  5653. }
  5654. function Ka(t, e, n, r, a) {
  5655. ja(a, e);
  5656. var i = no.drag(t, Sa(a, t.state, n, r, !1)),
  5657. o = i ? i.transform : e;
  5658. return qr(qr({ transform: e, drag: i }, ws({ transform: o }, a)), {
  5659. afterTransform: o
  5660. });
  5661. }
  5662. function Za(t, e, n, r, a, i) {
  5663. var o = (function (t, e, n, r) {
  5664. var a,
  5665. i = t.transformOrigin,
  5666. o = t.offsetMatrix,
  5667. s = t.is3d ? 4 : 3;
  5668. if (Ft(n)) {
  5669. var l = e.beforeTransform,
  5670. c = e.afterTransform;
  5671. a = Yn(r ? ar(n) : Nn(Nn(l, ar([n]), 4), c, 4), 4, s);
  5672. } else a = n;
  5673. return Ua(o, a, i, s);
  5674. })(t.state, a, e, i),
  5675. s = (function (t, e, n, r) {
  5676. void 0 === r && (r = t.state.allMatrix);
  5677. var a = t.state,
  5678. i = a.width,
  5679. o = a.height,
  5680. s = a.is3d ? 4 : 3,
  5681. l = [(i / 2) * (1 + e[0]) + n[0], (o / 2) * (1 + e[1]) + n[1]];
  5682. return ts(r, l, s);
  5683. })(t, n, r, o);
  5684. return s;
  5685. }
  5686. function Ja(t, e, n, r, a, i, o) {
  5687. var s = Za(t, e, n, a, i, o),
  5688. l = t.state,
  5689. c = l.left,
  5690. u = l.top,
  5691. f = t.props.groupable,
  5692. d = f ? c : 0,
  5693. p = f ? u : 0,
  5694. g = Fn(r, s);
  5695. return Fn(g, [d, p]);
  5696. }
  5697. function $a(t, e, n, r, a, i) {
  5698. var o = t.props.groupable,
  5699. s = t.state,
  5700. l = s.transformOrigin,
  5701. c = s.offsetMatrix,
  5702. u = s.is3d,
  5703. f = s.width,
  5704. d = s.height,
  5705. p = s.left,
  5706. g = s.top,
  5707. m = i.fixedDirection,
  5708. v = i.nextTargetMatrix || s.targetMatrix,
  5709. h = u ? 4 : 3,
  5710. A = (function (t, e, n, r, a, i) {
  5711. return (
  5712. void 0 === r && (r = e),
  5713. void 0 === a && (a = n),
  5714. void 0 === i && (i = [0, 0]),
  5715. t
  5716. ? t.map(function (t, o) {
  5717. var s = Zt(t),
  5718. l = s.value,
  5719. c = s.unit,
  5720. u = o ? a : r,
  5721. f = o ? n : e;
  5722. return '%' === t || isNaN(l)
  5723. ? f * (u ? i[o] / u : 0)
  5724. : '%' !== c
  5725. ? l
  5726. : (f * l) / 100;
  5727. })
  5728. : i
  5729. );
  5730. })(a, e, n, f, d, l),
  5731. b = o ? p : 0,
  5732. w = o ? g : 0,
  5733. k = (function (t, e, n, r, a, i) {
  5734. var o = Na(es(e, n, r, a), i);
  5735. return [t[0] - o[0], t[1] - o[1]];
  5736. })(r, Ua(c, v, A, h), e, n, h, m);
  5737. return Fn(k, [b, w]);
  5738. }
  5739. function ti(t) {
  5740. if (t && t.getRootNode) {
  5741. var e = t.getRootNode();
  5742. if (11 === e.nodeType) return e;
  5743. }
  5744. }
  5745. function ei(t, e, n) {
  5746. for (
  5747. var r,
  5748. a,
  5749. i,
  5750. o,
  5751. s,
  5752. l = t,
  5753. c = [],
  5754. u = ye(t) || Ie(t),
  5755. f = (!n && t === e) || t === u,
  5756. d = f,
  5757. p = !1,
  5758. g = 3,
  5759. m = !1,
  5760. v = Wo(e, e, !0).offsetParent,
  5761. h = 1;
  5762. l && !d;
  5763. ) {
  5764. d = f;
  5765. var A = oi(l),
  5766. b = A('position'),
  5767. w = A('scale'),
  5768. k = jo(l),
  5769. y = 'fixed' === b,
  5770. I =
  5771. ((o = Uo(k)),
  5772. void 0 === (s = void 0) && (s = 6 === o.length),
  5773. s ? [o[0], o[1], 0, o[2], o[3], 0, o[4], o[5], 1] : o),
  5774. E = void 0,
  5775. C = !1,
  5776. B = !1,
  5777. x = 0,
  5778. S = 0,
  5779. D = 0,
  5780. R = 0,
  5781. Q = { hasTransform: !1, fixedContainer: null };
  5782. y && ((m = !0), (v = (Q = Ko(l)).fixedContainer));
  5783. var _ = I.length;
  5784. p || 16 !== _ || ((p = !0), (g = 4), qo(c), i && (i = Yn(i, 3, 4))),
  5785. p && 9 === _ && (I = Yn(I, 3, 4));
  5786. var O = Ho(l, t),
  5787. M = O.tagName,
  5788. T = O.hasOffset,
  5789. z = O.isSVG,
  5790. P = O.origin,
  5791. Y = O.targetOrigin,
  5792. G = Kr(O.offset, 2),
  5793. N = G[0],
  5794. U = G[1];
  5795. 'svg' === M &&
  5796. i &&
  5797. (c.push({ type: 'target', target: l, matrix: $o(l, g) }),
  5798. c.push({ type: 'offset', target: l, matrix: $n(g) }));
  5799. var F = parseFloat(A('zoom')) || 1;
  5800. if (y) (E = Q.fixedContainer), (C = !0);
  5801. else {
  5802. var L = Wo(l, e, !1, !0, A),
  5803. X = L.offsetZoom;
  5804. if (
  5805. ((E = L.offsetParent),
  5806. (C = L.isEnd),
  5807. (B = L.isStatic),
  5808. (h *= X),
  5809. (L.isCustomElement || 1 !== X) && B)
  5810. )
  5811. (N -= E.offsetLeft), (U -= E.offsetTop);
  5812. else if ((pa || da) && L.parentSlotElement) {
  5813. for (var j = E, W = 0, H = 0; j && ti(j); )
  5814. (W += j.offsetLeft), (H += j.offsetTop), (j = j.offsetParent);
  5815. (N -= W), (U -= H);
  5816. }
  5817. }
  5818. if (
  5819. (!ia ||
  5820. ga ||
  5821. !T ||
  5822. z ||
  5823. !B ||
  5824. ('relative' !== b && 'static' !== b) ||
  5825. ((N -= E.offsetLeft), (U -= E.offsetTop), (f = f || C)),
  5826. y)
  5827. )
  5828. T && Q.hasTransform && ((D = E.clientLeft), (R = E.clientTop));
  5829. else if (
  5830. (T && v !== E && ((x = E.clientLeft), (S = E.clientTop)),
  5831. T && E === u)
  5832. ) {
  5833. var V = Vo(l, !1);
  5834. (N += V[0]), (U += V[1]);
  5835. }
  5836. if (
  5837. (c.push({ type: 'target', target: l, matrix: Fo(I, g, P) }),
  5838. w && '1' !== w && 'none' !== w)
  5839. ) {
  5840. var q = Kr(
  5841. w.split(' ').map(function (t) {
  5842. return parseFloat(t);
  5843. }),
  5844. 2
  5845. ),
  5846. K = q[0],
  5847. Z = q[1],
  5848. J = tr([K, void 0 === Z ? K : Z], g);
  5849. c.push({ type: 'offset', target: l, matrix: $n(g) }),
  5850. c.push({ type: 'target', target: l, matrix: Fo(J, g, P) });
  5851. }
  5852. if (T) {
  5853. var $ = l === t,
  5854. tt = $ ? 0 : l.scrollLeft,
  5855. et = $ ? 0 : l.scrollTop;
  5856. c.push({
  5857. type: 'offset',
  5858. target: l,
  5859. matrix: er([N - tt + x - D, U - et + S - R], g)
  5860. });
  5861. } else c.push({ type: 'offset', target: l, origin: P });
  5862. if (
  5863. (1 !== F &&
  5864. c.push({
  5865. type: 'zoom',
  5866. target: l,
  5867. matrix: Fo(tr([F, F], g), g, [0, 0])
  5868. }),
  5869. i || (i = I),
  5870. r || (r = P),
  5871. a || (a = Y),
  5872. d || y)
  5873. )
  5874. break;
  5875. (l = E), (f = C), (n && l !== u) || (d = f);
  5876. }
  5877. return (
  5878. i || (i = $n(g)),
  5879. r || (r = [0, 0]),
  5880. a || (a = [0, 0]),
  5881. {
  5882. zoom: h,
  5883. offsetContainer: v,
  5884. matrixes: c,
  5885. targetMatrix: i,
  5886. transformOrigin: r,
  5887. targetOrigin: a,
  5888. is3d: p,
  5889. hasFixed: m
  5890. }
  5891. );
  5892. }
  5893. var ni = null,
  5894. ri = null,
  5895. ai = null;
  5896. function ii(t) {
  5897. t
  5898. ? (window.Map && ((ni = new Map()), (ri = new Map())), (ai = []))
  5899. : ((ni = null), (ai = null), (ri = null));
  5900. }
  5901. function oi(t) {
  5902. var e = null == ni ? void 0 : ni.get(t);
  5903. if (!e) {
  5904. var n = Ee(t).getComputedStyle(t);
  5905. if (!ni)
  5906. return function (t) {
  5907. return n[t];
  5908. };
  5909. (e = { style: n, cached: {} }), ni.set(t, e);
  5910. }
  5911. var r = e.cached,
  5912. a = e.style;
  5913. return function (t) {
  5914. return t in r || (r[t] = a[t]), r[t];
  5915. };
  5916. }
  5917. function si(t, e, n) {
  5918. var r = n.originalDatas;
  5919. r.groupable = r.groupable || {};
  5920. var a = r.groupable;
  5921. a.childDatas = a.childDatas || [];
  5922. var i = a.childDatas;
  5923. return t.moveables.map(function (t, r) {
  5924. return (
  5925. (i[r] = i[r] || {}),
  5926. (i[r][e] = i[r][e] || {}),
  5927. qr(qr({}, n), { datas: i[r][e], originalDatas: i[r] })
  5928. );
  5929. });
  5930. }
  5931. function li(t, e, n, r, a, i, o) {
  5932. var s = !!n.match(/Start$/g),
  5933. l = !!n.match(/End$/g),
  5934. c = a.isPinch,
  5935. u = a.datas,
  5936. f = si(t, e.name, a),
  5937. d = t.moveables,
  5938. p = f.map(function (t, a) {
  5939. var f = d[a],
  5940. p = f.state,
  5941. g = p.gestos,
  5942. m = t;
  5943. if (s) m = new Da(o).dragStart(r, t);
  5944. else {
  5945. if ((g[o] || (g[o] = u.childGestos[a]), !g[o])) return;
  5946. m = Sa(t, p, r, c, i, o);
  5947. }
  5948. var v = e[n](f, qr(qr({}, m), { parentFlag: !0 }));
  5949. return l && (g[o] = null), v;
  5950. });
  5951. return (
  5952. s &&
  5953. (u.childGestos = d.map(function (t) {
  5954. return t.state.gestos[o];
  5955. })),
  5956. p
  5957. );
  5958. }
  5959. function ci(t, e, n, r, a, i) {
  5960. void 0 === a &&
  5961. (a = function (t, e) {
  5962. return e;
  5963. });
  5964. var o = !!n.match(/End$/g),
  5965. s = si(t, e.name, r),
  5966. l = t.moveables;
  5967. return s.map(function (t, r) {
  5968. var s,
  5969. c = l[r];
  5970. s = a(c, t);
  5971. var u = e[n](c, qr(qr({}, s), { parentFlag: !0 }));
  5972. return u && i && i(c, t, u, r), o && (c.state.gestos = {}), u;
  5973. });
  5974. }
  5975. function ui(t, e, n, r) {
  5976. var a = n.fixedDirection,
  5977. i = n.fixedPosition,
  5978. o = Na(r.datas.startPositions || hs(e.state), a),
  5979. s = Kr(
  5980. Xn(
  5981. Jn((-t.rotation / 180) * Math.PI, 3),
  5982. [o[0] - i[0], o[1] - i[1], 1],
  5983. 3
  5984. ),
  5985. 2
  5986. ),
  5987. l = s[0],
  5988. c = s[1];
  5989. return (r.datas.originalX = l), (r.datas.originalY = c), r;
  5990. }
  5991. function fi(t, e, n, r) {
  5992. var a = t.getState(),
  5993. i = a.renderPoses,
  5994. o = a.rotation,
  5995. s = a.direction,
  5996. l = ls(t.props, e).zoom,
  5997. c = Do((o / Math.PI) * 180),
  5998. u = {},
  5999. f = t.renderState;
  6000. f.renderDirectionMap || (f.renderDirectionMap = {});
  6001. var d = f.renderDirectionMap;
  6002. n.forEach(function (t) {
  6003. var e = t.dir;
  6004. u[e] = !0;
  6005. });
  6006. var p = Vs(s);
  6007. return n.map(function (t) {
  6008. var n = t.data,
  6009. a = t.classNames,
  6010. s = t.dir,
  6011. f = Ca[s];
  6012. if (!f || !u[s]) return null;
  6013. d[s] = !0;
  6014. var g = (pe(c, 15) + p * Ba[s] + 720) % 180,
  6015. m = {};
  6016. return (
  6017. ae(n).forEach(function (t) {
  6018. m['data-'.concat(t)] = n[t];
  6019. }),
  6020. r.createElement(
  6021. 'div',
  6022. qr(
  6023. {
  6024. className: Go.apply(
  6025. void 0,
  6026. Zr(['control', 'direction', s, e], Kr(a), !1)
  6027. ),
  6028. 'data-rotation': g,
  6029. 'data-direction': s
  6030. },
  6031. m,
  6032. {
  6033. key: 'direction-'.concat(s),
  6034. style: ss.apply(
  6035. void 0,
  6036. Zr(
  6037. [o, l],
  6038. Kr(
  6039. f.map(function (t) {
  6040. return i[t];
  6041. })
  6042. ),
  6043. !1
  6044. )
  6045. )
  6046. }
  6047. )
  6048. )
  6049. );
  6050. });
  6051. }
  6052. function di(t, e, n, r) {
  6053. var a = ls(t.props, n),
  6054. i = a.renderDirections,
  6055. o = void 0 === i ? e : i,
  6056. s = a.displayAroundControls;
  6057. if (!o) return [];
  6058. var l = !0 === o ? ra : o;
  6059. return Zr(
  6060. Zr([], Kr(s ? hi(t, r, n, l) : []), !1),
  6061. Kr(
  6062. fi(
  6063. t,
  6064. n,
  6065. l.map(function (t) {
  6066. return { data: {}, classNames: [], dir: t };
  6067. }),
  6068. r
  6069. )
  6070. ),
  6071. !1
  6072. );
  6073. }
  6074. function pi(t, e, n, r, a, i) {
  6075. for (var o = [], s = 6; s < arguments.length; s++)
  6076. o[s - 6] = arguments[s];
  6077. var l = ue(n, r),
  6078. c = e ? pe((l / Math.PI) * 180, 15) % 180 : -1;
  6079. return t.createElement('div', {
  6080. key: 'line-'.concat(i),
  6081. className: Go.apply(
  6082. void 0,
  6083. Zr(['line', 'direction', e ? 'edge' : '', e], Kr(o), !1)
  6084. ),
  6085. 'data-rotation': c,
  6086. 'data-line-key': i,
  6087. 'data-direction': e,
  6088. style: os(n, r, a, l)
  6089. });
  6090. }
  6091. function gi(t, e, n, r, a) {
  6092. return (!0 === n ? na : n)
  6093. .map(function (n, i) {
  6094. var o = Kr(Ca[n], 2),
  6095. s = o[0],
  6096. l = o[1];
  6097. if (null != l)
  6098. return pi(
  6099. t,
  6100. n,
  6101. r[s],
  6102. r[l],
  6103. a,
  6104. ''.concat(e, 'Edge').concat(i),
  6105. e
  6106. );
  6107. })
  6108. .filter(Boolean);
  6109. }
  6110. function mi(t) {
  6111. return function (e, n) {
  6112. var r = ls(e.props, t).edge;
  6113. return r && (!0 === r || r.length)
  6114. ? Zr(
  6115. Zr(
  6116. [],
  6117. Kr(gi(n, t, r, e.getState().renderPoses, e.props.zoom)),
  6118. !1
  6119. ),
  6120. Kr(
  6121. (function (t, e, n) {
  6122. return di(t, ['nw', 'ne', 'sw', 'se'], e, n);
  6123. })(e, t, n)
  6124. ),
  6125. !1
  6126. )
  6127. : vi(e, t, n);
  6128. };
  6129. }
  6130. function vi(t, e, n) {
  6131. return di(t, ra, e, n);
  6132. }
  6133. function hi(t, e, n, r) {
  6134. var a = t.renderState;
  6135. a.renderDirectionMap || (a.renderDirectionMap = {});
  6136. var i = t.getState(),
  6137. o = i.renderPoses,
  6138. s = i.rotation,
  6139. l = i.direction,
  6140. c = a.renderDirectionMap,
  6141. u = t.props.zoom,
  6142. f = Vs(l),
  6143. d = (s / Math.PI) * 180;
  6144. return (r || ae(c)).map(function (t) {
  6145. var r = Ca[t];
  6146. if (!r) return null;
  6147. var a = (pe(d, 15) + f * Ba[t] + 720) % 180,
  6148. i = ['around-control'];
  6149. return (
  6150. n && i.push('direction', n),
  6151. e.createElement('div', {
  6152. className: Go.apply(void 0, Zr([], Kr(i), !1)),
  6153. 'data-rotation': a,
  6154. 'data-direction': t,
  6155. key: 'direction-around-'.concat(t),
  6156. style: ss.apply(
  6157. void 0,
  6158. Zr(
  6159. [s, u],
  6160. Kr(
  6161. r.map(function (t) {
  6162. return o[t];
  6163. })
  6164. ),
  6165. !1
  6166. )
  6167. )
  6168. })
  6169. );
  6170. });
  6171. }
  6172. function Ai(t, e, n) {
  6173. var r = t || {},
  6174. a = r.position,
  6175. i = void 0 === a ? 'client' : a,
  6176. o = r.left,
  6177. s = void 0 === o ? -1 / 0 : o,
  6178. l = r.top,
  6179. c = void 0 === l ? -1 / 0 : l,
  6180. u = r.right,
  6181. f = void 0 === u ? 1 / 0 : u,
  6182. d = r.bottom,
  6183. p = {
  6184. position: i,
  6185. left: s,
  6186. top: c,
  6187. right: f,
  6188. bottom: void 0 === d ? 1 / 0 : d
  6189. };
  6190. return { vertical: wi(p, e, !0), horizontal: wi(p, n, !1) };
  6191. }
  6192. function bi(t, e) {
  6193. var n = t.state,
  6194. r = n.containerClientRect,
  6195. a = r.clientHeight,
  6196. i = r.clientWidth,
  6197. o = r.clientLeft,
  6198. s = r.clientTop,
  6199. l = n.snapOffset,
  6200. c = l.left,
  6201. u = l.top,
  6202. f = l.right,
  6203. d = l.bottom,
  6204. p = e || t.props.bounds || {},
  6205. g = 'css' === (p.position || 'client'),
  6206. m = p.left,
  6207. v = void 0 === m ? -1 / 0 : m,
  6208. h = p.top,
  6209. A = void 0 === h ? -1 / 0 : h,
  6210. b = p.right,
  6211. w = void 0 === b ? (g ? -1 / 0 : 1 / 0) : b,
  6212. k = p.bottom,
  6213. y = void 0 === k ? (g ? -1 / 0 : 1 / 0) : k;
  6214. return (
  6215. g && ((w = i + f - c - w), (y = a + d - u - y)),
  6216. {
  6217. left: v + c - o,
  6218. right: w + c - o,
  6219. top: A + u - s,
  6220. bottom: y + u - s
  6221. }
  6222. );
  6223. }
  6224. function wi(t, e, n) {
  6225. var r = t[n ? 'left' : 'top'],
  6226. a = t[n ? 'right' : 'bottom'],
  6227. i = Math.min.apply(Math, Zr([], Kr(e), !1)),
  6228. o = Math.max.apply(Math, Zr([], Kr(e), !1)),
  6229. s = [];
  6230. return (
  6231. r + 1 > i && s.push({ isBound: !0, offset: i - r, pos: r }),
  6232. a - 1 < o && s.push({ isBound: !0, offset: o - a, pos: a }),
  6233. s.length || s.push({ isBound: !1, offset: 0, pos: 0 }),
  6234. s.sort(function (t, e) {
  6235. return qs(e.offset) - qs(t.offset);
  6236. })
  6237. );
  6238. }
  6239. function ki(t, e, n) {
  6240. return (
  6241. n
  6242. ? t.map(function (t) {
  6243. return qn(t, n);
  6244. })
  6245. : t
  6246. ).some(function (t) {
  6247. return (
  6248. (t[0] < e.left && qs(t[0] - e.left) > 0.1) ||
  6249. (t[0] > e.right && qs(t[0] - e.right) > 0.1) ||
  6250. (t[1] < e.top && qs(t[1] - e.top) > 0.1) ||
  6251. (t[1] > e.bottom && qs(t[1] - e.bottom) > 0.1)
  6252. );
  6253. });
  6254. }
  6255. function yi(t, e, n, r, a) {
  6256. if (!t.props.bounds) return [];
  6257. var i = (a * Math.PI) / 180,
  6258. o = bi(t),
  6259. s = o.left,
  6260. l = o.top,
  6261. c = o.right,
  6262. u = o.bottom,
  6263. f = s - r[0],
  6264. d = c - r[0],
  6265. p = l - r[1],
  6266. g = u - r[1],
  6267. m = { left: f, top: p, right: d, bottom: g };
  6268. if (!ki(n, m, 0)) return [];
  6269. var v = [];
  6270. return (
  6271. [
  6272. [f, 0],
  6273. [d, 0],
  6274. [p, 1],
  6275. [g, 1]
  6276. ].forEach(function (t) {
  6277. var r = Kr(t, 2),
  6278. a = r[0],
  6279. o = r[1];
  6280. n.forEach(function (t) {
  6281. var n = ue([0, 0], t);
  6282. v.push.apply(
  6283. v,
  6284. Zr(
  6285. [],
  6286. Kr(
  6287. (function (t, e, n) {
  6288. var r = as(t),
  6289. a = Math.sqrt(r * r - e * e) || 0;
  6290. return [a, -a]
  6291. .sort(function (e, r) {
  6292. return qs(e - t[n ? 0 : 1]) - qs(r - t[n ? 0 : 1]);
  6293. })
  6294. .map(function (t) {
  6295. return ue([0, 0], n ? [t, e] : [e, t]);
  6296. });
  6297. })(t, a, o)
  6298. .map(function (t) {
  6299. return i + t - n;
  6300. })
  6301. .filter(function (t) {
  6302. return !ki(e, m, t);
  6303. })
  6304. .map(function (t) {
  6305. return pe((180 * t) / Math.PI, wa);
  6306. })
  6307. ),
  6308. !1
  6309. )
  6310. );
  6311. });
  6312. }),
  6313. v
  6314. );
  6315. }
  6316. var Ii = ['left', 'right', 'center'],
  6317. Ei = ['top', 'bottom', 'middle'],
  6318. Ci = { start: 'left', end: 'right', center: 'center' },
  6319. Bi = { start: 'top', end: 'bottom', center: 'middle' };
  6320. function xi(t, e) {
  6321. var n = t.props,
  6322. r = n.snappable,
  6323. a = n.bounds,
  6324. i = n.innerBounds,
  6325. o = n.verticalGuidelines,
  6326. s = n.horizontalGuidelines,
  6327. l = n.snapGridWidth,
  6328. c = n.snapGridHeight,
  6329. u = t.state,
  6330. f = u.guidelines,
  6331. d = u.enableSnap;
  6332. return !(
  6333. !r ||
  6334. !d ||
  6335. (e && !0 !== r && r.indexOf(e) < 0) ||
  6336. !(
  6337. l ||
  6338. c ||
  6339. a ||
  6340. i ||
  6341. (f && f.length) ||
  6342. (o && o.length) ||
  6343. (s && s.length)
  6344. )
  6345. );
  6346. }
  6347. function Si(t) {
  6348. return !1 === t
  6349. ? {}
  6350. : !0 !== t && t
  6351. ? t
  6352. : { left: !0, right: !0, top: !0, bottom: !0 };
  6353. }
  6354. function Di(t, e) {
  6355. var n = (function (t, e) {
  6356. var n = Si(t),
  6357. r = {};
  6358. for (var a in n) a in e && n[a] && (r[a] = e[a]);
  6359. return r;
  6360. })(t, e),
  6361. r = Ei.filter(function (t) {
  6362. return t in n;
  6363. }),
  6364. a = Ii.filter(function (t) {
  6365. return t in n;
  6366. });
  6367. return {
  6368. horizontalNames: r,
  6369. verticalNames: a,
  6370. horizontal: r.map(function (t) {
  6371. return n[t];
  6372. }),
  6373. vertical: a.map(function (t) {
  6374. return n[t];
  6375. })
  6376. };
  6377. }
  6378. function Ri(t, e, n, r, a, i) {
  6379. void 0 === r && (r = []), void 0 === a && (a = []);
  6380. var o = (function () {
  6381. for (var t = [], e = 0; e < arguments.length; e++)
  6382. t[e] = arguments[e];
  6383. for (var n = t.length - 1, r = 0; r < n; ++r) {
  6384. var a = t[r];
  6385. if (!Gt(a)) return a;
  6386. }
  6387. return t[n];
  6388. })(i, t.props.snapThreshold, 5);
  6389. return Qi(t.state.guidelines, e, n, r, a, o);
  6390. }
  6391. function Qi(t, e, n, r, a, i) {
  6392. return {
  6393. vertical: Ti(t, 'vertical', e, i, r),
  6394. horizontal: Ti(t, 'horizontal', n, i, a)
  6395. };
  6396. }
  6397. function _i(t) {
  6398. var e = '';
  6399. return (
  6400. -1 === t || 'top' === t || 'left' === t
  6401. ? (e = 'start')
  6402. : 0 === t || 'center' === t || 'middle' === t
  6403. ? (e = 'center')
  6404. : (1 !== t && 'right' !== t && 'bottom' !== t) || (e = 'end'),
  6405. e
  6406. );
  6407. }
  6408. function Oi(t, e, n) {
  6409. var r = Di(t.props.snapDirections, e),
  6410. a = Ri(
  6411. t,
  6412. r.vertical,
  6413. r.horizontal,
  6414. r.verticalNames.map(function (t) {
  6415. return _i(t);
  6416. }),
  6417. r.horizontalNames.map(function (t) {
  6418. return _i(t);
  6419. }),
  6420. n
  6421. ),
  6422. i = _i(r.horizontalNames[a.horizontal.index]),
  6423. o = _i(r.verticalNames[a.vertical.index]);
  6424. return {
  6425. vertical: qr(qr({}, a.vertical), { direction: o }),
  6426. horizontal: qr(qr({}, a.horizontal), { direction: i })
  6427. };
  6428. }
  6429. function Mi(t) {
  6430. var e = t.isSnap;
  6431. if (!e)
  6432. return { isSnap: !1, offset: 0, dist: -1, pos: 0, guideline: null };
  6433. var n = t.posInfos[0],
  6434. r = n.guidelineInfos[0],
  6435. a = r.offset,
  6436. i = r.dist,
  6437. o = r.guideline;
  6438. return { isSnap: e, offset: a, dist: i, pos: n.pos, guideline: o };
  6439. }
  6440. function Ti(t, e, n, r, a) {
  6441. var i, o;
  6442. if ((void 0 === a && (a = []), !t || !t.length))
  6443. return { isSnap: !1, index: -1, direction: '', posInfos: [] };
  6444. var s = 'vertical' === e ? 0 : 1,
  6445. l = n
  6446. .map(function (n, i) {
  6447. var o = a[i] || '',
  6448. l = t
  6449. .map(function (t) {
  6450. var e = t.pos,
  6451. r = n - e[s];
  6452. return {
  6453. offset: r,
  6454. dist: qs(r),
  6455. guideline: t,
  6456. direction: o
  6457. };
  6458. })
  6459. .filter(function (t) {
  6460. var n = t.guideline,
  6461. a = t.dist;
  6462. return !(n.type !== e || a > r);
  6463. })
  6464. .sort(function (t, e) {
  6465. return t.dist - e.dist;
  6466. });
  6467. return { pos: n, index: i, guidelineInfos: l, direction: o };
  6468. })
  6469. .filter(function (t) {
  6470. return t.guidelineInfos.length > 0;
  6471. })
  6472. .sort(function (t, e) {
  6473. return t.guidelineInfos[0].dist - e.guidelineInfos[0].dist;
  6474. }),
  6475. c = l.length > 0;
  6476. return {
  6477. isSnap: c,
  6478. index: c ? l[0].index : -1,
  6479. direction:
  6480. null !==
  6481. (o =
  6482. null === (i = l[0]) || void 0 === i ? void 0 : i.direction) &&
  6483. void 0 !== o
  6484. ? o
  6485. : '',
  6486. posInfos: l
  6487. };
  6488. }
  6489. function zi(t, e, n, r) {
  6490. void 0 === r && (r = 1);
  6491. var a = [];
  6492. n[0] && n[1]
  6493. ? (a = [n, [-n[0], n[1]], [n[0], -n[1]]])
  6494. : n[0] || n[1]
  6495. ? t.props.keepRatio
  6496. ? a.push([-1, -1], [-1, 1], [1, -1], [1, 1], n)
  6497. : (a.push.apply(
  6498. a,
  6499. Zr(
  6500. [],
  6501. Kr(
  6502. (function (t, e) {
  6503. return Ga(e).map(function (e) {
  6504. return t[e];
  6505. });
  6506. })(
  6507. [
  6508. [-1, -1],
  6509. [1, -1],
  6510. [-1, -1],
  6511. [1, 1]
  6512. ],
  6513. n
  6514. )
  6515. ),
  6516. !1
  6517. )
  6518. ),
  6519. a.length > 1 &&
  6520. a.push([(a[0][0] + a[1][0]) / 2, (a[0][1] + a[1][1]) / 2]))
  6521. : [
  6522. [-1, -1],
  6523. [1, -1],
  6524. [1, 1],
  6525. [-1, 1]
  6526. ].forEach(function (t, e, n) {
  6527. var r = n[e + 1] || n[0];
  6528. a.push(t), a.push([(t[0] + r[0]) / 2, (t[1] + r[1]) / 2]);
  6529. });
  6530. var i = a.map(function (t) {
  6531. return Na(e, t);
  6532. }),
  6533. o = Ri(
  6534. t,
  6535. i.map(function (t) {
  6536. return t[0];
  6537. }),
  6538. i.map(function (t) {
  6539. return t[1];
  6540. }),
  6541. a.map(function (t) {
  6542. return _i(t[0]);
  6543. }),
  6544. a.map(function (t) {
  6545. return _i(t[1]);
  6546. }),
  6547. r
  6548. ),
  6549. s = _i(
  6550. a.map(function (t) {
  6551. return t[0];
  6552. })[o.vertical.index]
  6553. ),
  6554. l = _i(
  6555. a.map(function (t) {
  6556. return t[1];
  6557. })[o.horizontal.index]
  6558. );
  6559. return {
  6560. vertical: qr(qr({}, o.vertical), { direction: s }),
  6561. horizontal: qr(qr({}, o.horizontal), { direction: l })
  6562. };
  6563. }
  6564. function Pi(t, e) {
  6565. var n = qs(t.offset),
  6566. r = qs(e.offset);
  6567. return t.isBound && e.isBound
  6568. ? r - n
  6569. : t.isBound
  6570. ? -1
  6571. : e.isBound
  6572. ? 1
  6573. : t.isSnap && e.isSnap
  6574. ? r - n
  6575. : t.isSnap
  6576. ? -1
  6577. : e.isSnap || n < wa
  6578. ? 1
  6579. : r < wa
  6580. ? -1
  6581. : n - r;
  6582. }
  6583. function Yi(t, e) {
  6584. return t.slice().sort(function (t, n) {
  6585. var r = t.sign[e],
  6586. a = n.sign[e],
  6587. i = t.offset[e],
  6588. o = n.offset[e];
  6589. return r
  6590. ? a
  6591. ? Pi(
  6592. { isBound: t.isBound, isSnap: t.isSnap, offset: i },
  6593. { isBound: n.isBound, isSnap: n.isSnap, offset: o }
  6594. )
  6595. : -1
  6596. : 1;
  6597. })[0];
  6598. }
  6599. function Gi(t, e) {
  6600. var n = ce([e[0][0], e[1][0]]),
  6601. r = ce([e[0][1], e[1][1]]);
  6602. return { vertical: n <= t[0], horizontal: r <= t[1] };
  6603. }
  6604. function Ni(t, e) {
  6605. var n,
  6606. r,
  6607. a = Kr(e, 2),
  6608. i = a[0],
  6609. o = a[1],
  6610. s = o[0] - i[0],
  6611. l = o[1] - i[1];
  6612. return (
  6613. qs(s) < wa && (s = 0),
  6614. qs(l) < wa && (l = 0),
  6615. s
  6616. ? l
  6617. ? ((n = (l / s) * (t[0] - i[0]) + i[1]), (r = t[1]))
  6618. : ((n = i[1]), (r = t[1]))
  6619. : ((n = i[0]), (r = t[0])),
  6620. n - r
  6621. );
  6622. }
  6623. function Ui(t, e, n, r) {
  6624. return (
  6625. void 0 === r && (r = wa),
  6626. t.every(function (t) {
  6627. var a = Ni(t, e);
  6628. return a <= 0 === n || qs(a) <= r;
  6629. })
  6630. );
  6631. }
  6632. function Fi(t, e, n, r, a) {
  6633. return (
  6634. void 0 === a && (a = 0),
  6635. (r && e - a <= t) || (!r && t <= n + a)
  6636. ? { isBound: !0, offset: r ? e - t : n - t }
  6637. : { isBound: !1, offset: 0 }
  6638. );
  6639. }
  6640. function Li(t, e, n, r, a, i) {
  6641. var o,
  6642. s,
  6643. l = Kr(e, 2),
  6644. c = l[0],
  6645. u = l[1],
  6646. f = t[0],
  6647. d = n[0],
  6648. p = n[1],
  6649. g = zs(p[1] - d[1]),
  6650. m = u,
  6651. v = c,
  6652. h = -c / u;
  6653. return zs(p[0] - d[0])
  6654. ? g || (i && !m)
  6655. ? { isBound: !1, offset: 0 }
  6656. : v
  6657. ? Fi((d[1] - f[1]) / h + f[0], d[0], p[0], r, a)
  6658. : {
  6659. isBound: (s = qs((o = d[1] - f[1])) <= (a || 0)),
  6660. offset: s ? o : 0
  6661. }
  6662. : i && !v
  6663. ? { isBound: !1, offset: 0 }
  6664. : m
  6665. ? Fi(h * (d[0] - f[0]) + f[1], d[1], p[1], r, a)
  6666. : {
  6667. isBound: (s = qs((o = d[0] - f[0])) <= (a || 0)),
  6668. offset: s ? o : 0
  6669. };
  6670. }
  6671. function Xi(t, e, n) {
  6672. return e.map(function (e) {
  6673. var r = (function (t, e) {
  6674. var n = e.line,
  6675. r = e.centerSign,
  6676. a = e.verticalSign,
  6677. i = e.horizontalSign,
  6678. o = e.lineConstants,
  6679. s = t.props.innerBounds;
  6680. if (!s)
  6681. return {
  6682. isAllBound: !1,
  6683. isBound: !1,
  6684. isVerticalBound: !1,
  6685. isHorizontalBound: !1,
  6686. offset: [0, 0]
  6687. };
  6688. var l = s.left,
  6689. c = s.top,
  6690. u = s.width,
  6691. f = s.height,
  6692. d = [
  6693. [l, c],
  6694. [l, c + f]
  6695. ],
  6696. p = [
  6697. [l, c],
  6698. [l + u, c]
  6699. ],
  6700. g = [
  6701. [l + u, c],
  6702. [l + u, c + f]
  6703. ],
  6704. m = [
  6705. [l, c + f],
  6706. [l + u, c + f]
  6707. ];
  6708. if (
  6709. Ui(
  6710. [
  6711. [l, c],
  6712. [l + u, c],
  6713. [l, c + f],
  6714. [l + u, c + f]
  6715. ],
  6716. n,
  6717. r
  6718. )
  6719. )
  6720. return {
  6721. isAllBound: !1,
  6722. isBound: !1,
  6723. isVerticalBound: !1,
  6724. isHorizontalBound: !1,
  6725. offset: [0, 0]
  6726. };
  6727. var v = Li(n, o, p, a),
  6728. h = Li(n, o, m, a),
  6729. A = Li(n, o, d, i),
  6730. b = Li(n, o, g, i),
  6731. w = v.isBound && h.isBound,
  6732. k = v.isBound || h.isBound,
  6733. y = A.isBound && b.isBound,
  6734. I = A.isBound || b.isBound,
  6735. E = Qs(v.offset, h.offset),
  6736. C = Qs(A.offset, b.offset),
  6737. B = [0, 0],
  6738. x = !1,
  6739. S = !1;
  6740. return (
  6741. qs(C) < qs(E)
  6742. ? ((B = [E, 0]), (x = k), (S = w))
  6743. : ((B = [0, C]), (x = I), (S = y)),
  6744. {
  6745. isAllBound: S,
  6746. isVerticalBound: k,
  6747. isHorizontalBound: I,
  6748. isBound: x,
  6749. offset: B
  6750. }
  6751. );
  6752. })(t, e),
  6753. a = r.isBound,
  6754. i = r.offset,
  6755. o = r.isVerticalBound,
  6756. s = r.isHorizontalBound,
  6757. l = e.multiple,
  6758. c = Ya({ datas: n, distX: i[0], distY: i[1] }).map(function (
  6759. t,
  6760. e
  6761. ) {
  6762. return t * (l[e] ? 2 / l[e] : 0);
  6763. });
  6764. return {
  6765. sign: l,
  6766. isBound: a,
  6767. isVerticalBound: o,
  6768. isHorizontalBound: s,
  6769. isSnap: !1,
  6770. offset: c
  6771. };
  6772. });
  6773. }
  6774. function ji(t, e, n) {
  6775. var r,
  6776. a = Xi(
  6777. t,
  6778. Wi(t, e, [0, 0], !1).map(function (t) {
  6779. return qr(qr({}, t), {
  6780. multiple: t.multiple.map(function (t) {
  6781. return 2 * qs(t);
  6782. })
  6783. });
  6784. }),
  6785. n
  6786. ),
  6787. i = Yi(a, 0),
  6788. o = Yi(a, 1),
  6789. s = 0,
  6790. l = 0,
  6791. c = i.isVerticalBound || o.isVerticalBound,
  6792. u = i.isHorizontalBound || o.isHorizontalBound;
  6793. return (
  6794. (c || u) &&
  6795. ((r = Kr(
  6796. (function (t, e) {
  6797. var n = t.datas,
  6798. r = t.distX,
  6799. a = t.distY,
  6800. i = n.beforeMatrix,
  6801. o = n.matrix,
  6802. s = n.is3d,
  6803. l = n.startDragBeforeDist,
  6804. c = n.startDragDist,
  6805. u = n.absoluteOrigin,
  6806. f = s ? 4 : 3;
  6807. return Fn(Xn(e ? i : o, Un(e ? l : c, [r, a]), f), u);
  6808. })({ datas: n, distX: -i.offset[0], distY: -o.offset[1] }),
  6809. 2
  6810. )),
  6811. (s = r[0]),
  6812. (l = r[1])),
  6813. {
  6814. vertical: { isBound: c, offset: s },
  6815. horizontal: { isBound: u, offset: l }
  6816. }
  6817. );
  6818. }
  6819. function Wi(t, e, n, r) {
  6820. var a = t.state,
  6821. i = es(a.allMatrix, 100, 100, a.is3d ? 4 : 3),
  6822. o = Na(i, [0, 0]);
  6823. return (function (t, e) {
  6824. var n = [],
  6825. r = t[0],
  6826. a = t[1];
  6827. return (
  6828. r && a
  6829. ? n.push([[0, 2 * a], t, [-r, a]], [[2 * r, 0], t, [r, -a]])
  6830. : r
  6831. ? (n.push([
  6832. [2 * r, 0],
  6833. [r, 1],
  6834. [r, -1]
  6835. ]),
  6836. e &&
  6837. n.push(
  6838. [
  6839. [0, -1],
  6840. [r, -1],
  6841. [-r, -1]
  6842. ],
  6843. [
  6844. [0, 1],
  6845. [r, 1],
  6846. [-r, 1]
  6847. ]
  6848. ))
  6849. : a
  6850. ? (n.push([
  6851. [0, 2 * a],
  6852. [1, a],
  6853. [-1, a]
  6854. ]),
  6855. e &&
  6856. n.push(
  6857. [
  6858. [-1, 0],
  6859. [-1, a],
  6860. [-1, -a]
  6861. ],
  6862. [
  6863. [1, 0],
  6864. [1, a],
  6865. [1, -a]
  6866. ]
  6867. ))
  6868. : n.push(
  6869. [
  6870. [-1, 0],
  6871. [-1, -1],
  6872. [-1, 1]
  6873. ],
  6874. [
  6875. [1, 0],
  6876. [1, -1],
  6877. [1, 1]
  6878. ],
  6879. [
  6880. [0, -1],
  6881. [-1, -1],
  6882. [1, -1]
  6883. ],
  6884. [
  6885. [0, 1],
  6886. [-1, 1],
  6887. [1, 1]
  6888. ]
  6889. ),
  6890. n
  6891. );
  6892. })(n, r).map(function (t) {
  6893. var n = Kr(t, 3),
  6894. r = n[0],
  6895. a = n[1],
  6896. s = n[2],
  6897. l = [Na(i, a), Na(i, s)],
  6898. c = (function (t) {
  6899. var e = Kr(t, 2),
  6900. n = e[0],
  6901. r = e[1],
  6902. a = r[0] - n[0],
  6903. i = r[1] - n[1];
  6904. Math.abs(a) < zt && (a = 0), Math.abs(i) < zt && (i = 0);
  6905. var o = 0,
  6906. s = 0,
  6907. l = 0;
  6908. return (
  6909. a
  6910. ? i
  6911. ? ((s = 1), (l = (o = -i / a) * n[0] - n[1]))
  6912. : ((s = 1), (l = -n[1]))
  6913. : ((o = -1), (l = n[0])),
  6914. [o, s, l].map(function (t) {
  6915. return pe(t, zt);
  6916. })
  6917. );
  6918. })(l),
  6919. u = Gi(o, l),
  6920. f = u.vertical,
  6921. d = u.horizontal;
  6922. return {
  6923. multiple: r,
  6924. centerSign: Ni(o, l) <= 0,
  6925. verticalSign: f,
  6926. horizontalSign: d,
  6927. lineConstants: c,
  6928. line: [Na(e, a), Na(e, s)]
  6929. };
  6930. });
  6931. }
  6932. function Hi(t, e, n, r) {
  6933. var a = r
  6934. ? t.map(function (t) {
  6935. return qn(t, r);
  6936. })
  6937. : t;
  6938. return [
  6939. [a[0], a[1]],
  6940. [a[1], a[3]],
  6941. [a[3], a[2]],
  6942. [a[2], a[0]]
  6943. ].some(function (t) {
  6944. var r = Ni(n, t) <= 0;
  6945. return !Ui(e, t, r);
  6946. });
  6947. }
  6948. function Vi(t, e, n, r, a) {
  6949. var i = t.props.innerBounds,
  6950. o = (a * Math.PI) / 180;
  6951. if (!i) return [];
  6952. var s = i.left,
  6953. l = i.top,
  6954. c = i.width,
  6955. u = i.height,
  6956. f = s - r[0],
  6957. d = s + c - r[0],
  6958. p = l - r[1],
  6959. g = l + u - r[1],
  6960. m = [
  6961. [f, p],
  6962. [d, p],
  6963. [f, g],
  6964. [d, g]
  6965. ],
  6966. v = Na(n, [0, 0]);
  6967. if (!Hi(n, m, v, 0)) return [];
  6968. var h = [],
  6969. A = m.map(function (t) {
  6970. return [as(t), ue([0, 0], t)];
  6971. });
  6972. return (
  6973. [
  6974. [n[0], n[1]],
  6975. [n[1], n[3]],
  6976. [n[3], n[2]],
  6977. [n[2], n[0]]
  6978. ].forEach(function (t) {
  6979. var n = ue(
  6980. [0, 0],
  6981. (function (t) {
  6982. var e = Kr(t, 2),
  6983. n = e[0],
  6984. r = e[1],
  6985. a = r[0] - n[0],
  6986. i = r[1] - n[1];
  6987. if (!a) return [n[0], 0];
  6988. if (!i) return [0, n[1]];
  6989. var o = i / a,
  6990. s = -o * n[0] + n[1];
  6991. return [-s / (o + 1 / o), s / (o * o + 1)];
  6992. })(t)
  6993. ),
  6994. r = (function (t) {
  6995. var e = Kr(t, 2),
  6996. n = e[0],
  6997. r = e[1],
  6998. a = r[0] - n[0],
  6999. i = r[1] - n[1];
  7000. if (!a) return qs(n[0]);
  7001. if (!i) return qs(n[1]);
  7002. var o = i / a;
  7003. return qs((-o * n[0] + n[1]) / Math.sqrt(Math.pow(o, 2) + 1));
  7004. })(t);
  7005. h.push.apply(
  7006. h,
  7007. Zr(
  7008. [],
  7009. Kr(
  7010. A.filter(function (t) {
  7011. var e = Kr(t, 1)[0];
  7012. return e && r <= e;
  7013. })
  7014. .map(function (t) {
  7015. var e = Kr(t, 2),
  7016. a = e[0],
  7017. i = e[1],
  7018. s = Math.acos(a ? r / a : 0);
  7019. return [o + (i + s) - n, o + (i - s) - n];
  7020. })
  7021. .reduce(function (t, e) {
  7022. return t.push.apply(t, Zr([], Kr(e), !1)), t;
  7023. }, [])
  7024. .filter(function (t) {
  7025. return !Hi(e, m, v, t);
  7026. })
  7027. .map(function (t) {
  7028. return pe((180 * t) / Math.PI, wa);
  7029. })
  7030. ),
  7031. !1
  7032. )
  7033. );
  7034. }),
  7035. h
  7036. );
  7037. }
  7038. function qi(t, e, n, r, a) {
  7039. var i = (function (t, e, n, r) {
  7040. var a = e[0] - t[0],
  7041. i = e[1] - t[1];
  7042. if ((qs(a) < zt && (a = 0), qs(i) < zt && (i = 0), !a))
  7043. return r ? [0, 0] : [0, n];
  7044. if (!i) return r ? [n, 0] : [0, 0];
  7045. var o = i / a,
  7046. s = t[1] - o * t[0];
  7047. return r
  7048. ? [n, o * (e[0] + n) + s - e[1]]
  7049. : [(e[1] + n - s) / o - e[0], n];
  7050. })(t, e, n, r);
  7051. if (!i) return { isOutside: !1, offset: [0, 0] };
  7052. var o = de(t, e),
  7053. s = de(i, t),
  7054. l = de(i, e),
  7055. c = s > o || l > o,
  7056. u = Kr(Ya({ datas: a, distX: i[0], distY: i[1] }), 2);
  7057. return { offset: [u[0], u[1]], isOutside: c };
  7058. }
  7059. function Ki(t, e) {
  7060. return t.isBound ? t.offset : e.isSnap ? Mi(e).offset : 0;
  7061. }
  7062. function Zi(t, e, n, r, a, i) {
  7063. if (!xi(t, 'draggable'))
  7064. return [
  7065. { isSnap: !1, isBound: !1, offset: 0 },
  7066. { isSnap: !1, isBound: !1, offset: 0 }
  7067. ];
  7068. var o = vs(i.absolutePoses, [e, n]),
  7069. s = ns(o),
  7070. l = s.left,
  7071. c = s.right,
  7072. u = s.top,
  7073. f = s.bottom,
  7074. d = {
  7075. horizontal: o.map(function (t) {
  7076. return t[1];
  7077. }),
  7078. vertical: o.map(function (t) {
  7079. return t[0];
  7080. })
  7081. },
  7082. p = Ji(
  7083. t,
  7084. a,
  7085. Di(Si(t.props.snapDirections), {
  7086. left: l,
  7087. right: c,
  7088. top: u,
  7089. bottom: f,
  7090. center: (l + c) / 2,
  7091. middle: (u + f) / 2
  7092. }),
  7093. d
  7094. ),
  7095. g = p.vertical,
  7096. m = p.horizontal,
  7097. v = ji(t, o, i),
  7098. h = v.vertical,
  7099. A = v.horizontal,
  7100. b = g.isSnap,
  7101. w = m.isSnap,
  7102. k = g.isBound || h.isBound,
  7103. y = m.isBound || A.isBound,
  7104. I = Kr(
  7105. (function (t, e, n, r, a) {
  7106. var i = Kr(e, 2),
  7107. o = i[0],
  7108. s = i[1],
  7109. l = Kr(n, 2),
  7110. c = l[0],
  7111. u = l[1],
  7112. f = Kr(r, 2),
  7113. d = f[0],
  7114. p = f[1],
  7115. g = Kr(a, 2),
  7116. m = g[0],
  7117. v = g[1],
  7118. h = -m,
  7119. A = -v;
  7120. if (t && o && s) {
  7121. (h = 0), (A = 0);
  7122. var b = [];
  7123. if (
  7124. (c && u
  7125. ? b.push([0, v], [m, 0])
  7126. : c
  7127. ? b.push([m, 0])
  7128. : u
  7129. ? b.push([0, v])
  7130. : d && p
  7131. ? b.push([0, v], [m, 0])
  7132. : d
  7133. ? b.push([m, 0])
  7134. : p && b.push([0, v]),
  7135. b.length)
  7136. ) {
  7137. b.sort(function (t, e) {
  7138. return as(Fn([o, s], t)) - as(Fn([o, s], e));
  7139. });
  7140. var w = b[0];
  7141. if (w[0] && qs(o) > zt)
  7142. (h = -w[0]), (A = (s * qs(o + h)) / qs(o) - s);
  7143. else if (w[1] && qs(s) > zt) {
  7144. var k = s;
  7145. (A = -w[1]), (h = (o * qs(s + A)) / qs(k) - o);
  7146. }
  7147. if (t && u && c)
  7148. if (qs(h) > zt && qs(h) < qs(m))
  7149. (h *= y = qs(m) / qs(h)), (A *= y);
  7150. else if (qs(A) > zt && qs(A) < qs(v)) {
  7151. var y;
  7152. (h *= y = qs(v) / qs(A)), (A *= y);
  7153. } else (h = Qs(-m, h)), (A = Qs(-v, A));
  7154. }
  7155. } else (h = o || c ? -m : 0), (A = s || u ? -v : 0);
  7156. return [h, A];
  7157. })(
  7158. r,
  7159. [e, n],
  7160. [k, y],
  7161. [b, w],
  7162. [Qs(g.offset, h.offset), Qs(m.offset, A.offset)]
  7163. ),
  7164. 2
  7165. );
  7166. return [
  7167. { isBound: k, isSnap: b, offset: I[0] },
  7168. { isBound: y, isSnap: w, offset: I[1] }
  7169. ];
  7170. }
  7171. function Ji(t, e, n, r) {
  7172. void 0 === r && (r = n);
  7173. var a = Ai(bi(t), r.vertical, r.horizontal),
  7174. i = a.horizontal,
  7175. o = a.vertical,
  7176. s = e
  7177. ? {
  7178. horizontal: { isSnap: !1, index: -1 },
  7179. vertical: { isSnap: !1, index: -1 }
  7180. }
  7181. : Ri(t, n.vertical, n.horizontal),
  7182. l = s.horizontal,
  7183. c = s.vertical,
  7184. u = Ki(i[0], l),
  7185. f = Ki(o[0], c),
  7186. d = qs(u),
  7187. p = qs(f);
  7188. return {
  7189. horizontal: {
  7190. isBound: i[0].isBound,
  7191. isSnap: l.isSnap,
  7192. snapIndex: l.index,
  7193. offset: u,
  7194. dist: d,
  7195. bounds: i,
  7196. snap: l
  7197. },
  7198. vertical: {
  7199. isBound: o[0].isBound,
  7200. isSnap: c.isSnap,
  7201. snapIndex: c.index,
  7202. offset: f,
  7203. dist: p,
  7204. bounds: o,
  7205. snap: c
  7206. }
  7207. };
  7208. }
  7209. function $i(t, e, n, r, a) {
  7210. var i = Ai(e, n, r),
  7211. o = i.horizontal,
  7212. s = i.vertical,
  7213. l = Qi(t, n, r, [], [], a),
  7214. c = l.horizontal,
  7215. u = l.vertical,
  7216. f = Ki(o[0], c),
  7217. d = Ki(s[0], u),
  7218. p = qs(f),
  7219. g = qs(d);
  7220. return {
  7221. horizontal: {
  7222. isBound: o[0].isBound,
  7223. isSnap: c.isSnap,
  7224. snapIndex: c.index,
  7225. offset: f,
  7226. dist: p,
  7227. bounds: o,
  7228. snap: c
  7229. },
  7230. vertical: {
  7231. isBound: s[0].isBound,
  7232. isSnap: u.isSnap,
  7233. snapIndex: u.index,
  7234. offset: d,
  7235. dist: g,
  7236. bounds: s,
  7237. snap: u
  7238. }
  7239. };
  7240. }
  7241. function to(t, e, n, r, a, i) {
  7242. return n.map(function (n) {
  7243. var o = Kr(n, 2),
  7244. s = o[0],
  7245. l = o[1],
  7246. c = Na(e, s),
  7247. u = Na(e, l),
  7248. f = r
  7249. ? (function (t, e, n, r) {
  7250. var a = (function (t, e, n) {
  7251. var r = bi(t),
  7252. a = r.left,
  7253. i = r.top,
  7254. o = r.right,
  7255. s = r.bottom,
  7256. l = Kr(n, 2),
  7257. c = l[0],
  7258. u = l[1],
  7259. f = Kr(Fn(n, e), 2),
  7260. d = f[0],
  7261. p = f[1];
  7262. qs(d) < wa && (d = 0), qs(p) < wa && (p = 0);
  7263. var g = p > 0,
  7264. m = d > 0,
  7265. v = { isBound: !1, offset: 0, pos: 0 },
  7266. h = { isBound: !1, offset: 0, pos: 0 };
  7267. if (0 === d && 0 === p)
  7268. return { vertical: v, horizontal: h };
  7269. if (0 === d)
  7270. g
  7271. ? s < u && ((h.pos = s), (h.offset = u - s))
  7272. : i > u && ((h.pos = i), (h.offset = u - i));
  7273. else if (0 === p)
  7274. m
  7275. ? o < c && ((v.pos = o), (v.offset = c - o))
  7276. : a > c && ((v.pos = a), (v.offset = c - a));
  7277. else {
  7278. var A = p / d,
  7279. b = n[1] - A * c,
  7280. w = 0,
  7281. k = 0,
  7282. y = !1;
  7283. m && o <= c
  7284. ? ((w = A * o + b), (k = o), (y = !0))
  7285. : !m &&
  7286. c <= a &&
  7287. ((w = A * a + b), (k = a), (y = !0)),
  7288. y && (w < i || w > s) && (y = !1),
  7289. y ||
  7290. (g && s <= u
  7291. ? ((k = ((w = s) - b) / A), (y = !0))
  7292. : !g &&
  7293. u <= i &&
  7294. ((k = ((w = i) - b) / A), (y = !0))),
  7295. y &&
  7296. ((v.isBound = !0),
  7297. (v.pos = k),
  7298. (v.offset = c - k),
  7299. (h.isBound = !0),
  7300. (h.pos = w),
  7301. (h.offset = u - w));
  7302. }
  7303. return { vertical: v, horizontal: h };
  7304. })(t, e, n),
  7305. i = a.horizontal,
  7306. o = a.vertical,
  7307. s = r
  7308. ? {
  7309. horizontal: { isSnap: !1 },
  7310. vertical: { isSnap: !1 }
  7311. }
  7312. : (function (t, e, n) {
  7313. var r = Kr(n, 2),
  7314. a = r[0],
  7315. i = r[1],
  7316. o = Kr(e, 2),
  7317. s = o[0],
  7318. l = o[1],
  7319. c = Kr(Fn(n, e), 2),
  7320. u = c[0],
  7321. f = c[1],
  7322. d = f > 0,
  7323. p = u > 0;
  7324. (u = zs(u)), (f = zs(f));
  7325. var g = { isSnap: !1, offset: 0, pos: 0 },
  7326. m = { isSnap: !1, offset: 0, pos: 0 };
  7327. if (0 === u && 0 === f)
  7328. return { vertical: g, horizontal: m };
  7329. var v = Ri(t, u ? [a] : [], f ? [i] : []),
  7330. h = v.vertical,
  7331. A = v.horizontal;
  7332. h.posInfos.filter(function (t) {
  7333. var e = t.pos;
  7334. return p ? e >= s : e <= s;
  7335. }),
  7336. A.posInfos.filter(function (t) {
  7337. var e = t.pos;
  7338. return d ? e >= l : e <= l;
  7339. }),
  7340. (h.isSnap = h.posInfos.length > 0),
  7341. (A.isSnap = A.posInfos.length > 0);
  7342. var b = Mi(h),
  7343. w = b.isSnap,
  7344. k = b.guideline,
  7345. y = Mi(A),
  7346. I = y.isSnap,
  7347. E = y.guideline,
  7348. C = I ? E.pos[1] : 0,
  7349. B = w ? k.pos[0] : 0;
  7350. if (0 === u)
  7351. I &&
  7352. ((m.isSnap = !0),
  7353. (m.pos = E.pos[1]),
  7354. (m.offset = i - m.pos));
  7355. else if (0 === f)
  7356. w &&
  7357. ((g.isSnap = !0),
  7358. (g.pos = B),
  7359. (g.offset = a - B));
  7360. else {
  7361. var x = f / u,
  7362. S = n[1] - x * a,
  7363. D = 0,
  7364. R = 0,
  7365. Q = !1;
  7366. w
  7367. ? ((D = x * (R = B) + S), (Q = !0))
  7368. : I && ((R = ((D = C) - S) / x), (Q = !0)),
  7369. Q &&
  7370. ((g.isSnap = !0),
  7371. (g.pos = R),
  7372. (g.offset = a - R),
  7373. (m.isSnap = !0),
  7374. (m.pos = D),
  7375. (m.offset = i - D));
  7376. }
  7377. return { vertical: g, horizontal: m };
  7378. })(t, e, n),
  7379. l = s.horizontal,
  7380. c = s.vertical,
  7381. u = eo(i, l),
  7382. f = eo(o, c),
  7383. d = qs(u),
  7384. p = qs(f);
  7385. return {
  7386. horizontal: {
  7387. isBound: i.isBound,
  7388. isSnap: l.isSnap,
  7389. offset: u,
  7390. dist: d
  7391. },
  7392. vertical: {
  7393. isBound: o.isBound,
  7394. isSnap: c.isSnap,
  7395. offset: f,
  7396. dist: p
  7397. }
  7398. };
  7399. })(t, c, u, a)
  7400. : Ji(t, a, { vertical: [u[0]], horizontal: [u[1]] }),
  7401. d = f.horizontal,
  7402. p = d.offset,
  7403. g = d.isBound,
  7404. m = d.isSnap,
  7405. v = f.vertical,
  7406. h = v.offset,
  7407. A = v.isBound,
  7408. b = v.isSnap,
  7409. w = Fn(l, s);
  7410. if (!h && !p)
  7411. return {
  7412. isBound: A || g,
  7413. isSnap: b || m,
  7414. sign: w,
  7415. offset: [0, 0]
  7416. };
  7417. var k = (function (t, e, n, r) {
  7418. var a = (ue(t, e) / Math.PI) * 180,
  7419. i = n.vertical,
  7420. o = i.isBound,
  7421. s = i.isSnap,
  7422. l = i.dist,
  7423. c = n.horizontal,
  7424. u = c.isBound,
  7425. f = c.isSnap,
  7426. d = a % 180,
  7427. p = d < 3 || d > 177,
  7428. g = d > 87 && d < 93;
  7429. return c.dist < l && (o || (s && !g && (!r || !p)))
  7430. ? 'vertical'
  7431. : !u && (!f || p || (r && g))
  7432. ? ''
  7433. : 'horizontal';
  7434. })(c, u, f, r);
  7435. if (!k) return { sign: w, isBound: !1, isSnap: !1, offset: [0, 0] };
  7436. var y = 'vertical' === k,
  7437. I = [0, 0];
  7438. return (
  7439. (I = (I =
  7440. r ||
  7441. 1 !== qs(l[0]) ||
  7442. 1 !== qs(l[1]) ||
  7443. s[0] === l[0] ||
  7444. s[1] === l[1]
  7445. ? qi(c, u, -(y ? h : p), y, i).offset
  7446. : Ya({ datas: i, distX: -h, distY: -p })).map(function (
  7447. t,
  7448. e
  7449. ) {
  7450. return t * (w[e] ? 2 / w[e] : 0);
  7451. })),
  7452. { sign: w, isBound: y ? A : g, isSnap: y ? b : m, offset: I }
  7453. );
  7454. });
  7455. }
  7456. function eo(t, e) {
  7457. return t.isBound ? t.offset : e.isSnap ? e.offset : 0;
  7458. }
  7459. var no = {
  7460. name: 'draggable',
  7461. props: [
  7462. 'draggable',
  7463. 'throttleDrag',
  7464. 'throttleDragRotate',
  7465. 'hideThrottleDragRotateLine',
  7466. 'startDragRotate',
  7467. 'edgeDraggable'
  7468. ],
  7469. events: [
  7470. 'dragStart',
  7471. 'drag',
  7472. 'dragEnd',
  7473. 'dragGroupStart',
  7474. 'dragGroup',
  7475. 'dragGroupEnd'
  7476. ],
  7477. requestStyle: function () {
  7478. return ['left', 'top', 'right', 'bottom'];
  7479. },
  7480. requestChildStyle: function () {
  7481. return ['left', 'top', 'right', 'bottom'];
  7482. },
  7483. render: function (t, e) {
  7484. var n = t.props,
  7485. r = n.hideThrottleDragRotateLine,
  7486. a = n.throttleDragRotate,
  7487. i = n.zoom,
  7488. o = t.getState(),
  7489. s = o.dragInfo,
  7490. l = o.beforeOrigin;
  7491. if (r || !a || !s) return [];
  7492. var c = s.dist;
  7493. if (!c[0] && !c[1]) return [];
  7494. var u = as(c),
  7495. f = ue(c, [0, 0]);
  7496. return [
  7497. e.createElement('div', {
  7498. className: Go('line', 'horizontal', 'dragline', 'dashed'),
  7499. key: 'dragRotateGuideline',
  7500. style: {
  7501. width: ''.concat(u, 'px'),
  7502. transform: 'translate('
  7503. .concat(l[0], 'px, ')
  7504. .concat(l[1], 'px) rotate(')
  7505. .concat(f, 'rad) scaleY(')
  7506. .concat(i, ')')
  7507. }
  7508. })
  7509. ];
  7510. },
  7511. dragStart: function (t, e) {
  7512. var n = e.datas,
  7513. r = e.parentEvent,
  7514. a = e.parentGesto,
  7515. i = t.state,
  7516. o = i.gestos,
  7517. s = i.style;
  7518. if (o.draggable) return !1;
  7519. (o.draggable = a || t.targetGesto),
  7520. (n.datas = {}),
  7521. (n.left = parseFloat(s.left || '') || 0),
  7522. (n.top = parseFloat(s.top || '') || 0),
  7523. (n.bottom = parseFloat(s.bottom || '') || 0),
  7524. (n.right = parseFloat(s.right || '') || 0),
  7525. (n.startValue = [0, 0]),
  7526. _a(t, e),
  7527. La(e, 'translate'),
  7528. (function (t, e) {
  7529. e.absolutePoses = hs(t.state);
  7530. })(t, n),
  7531. (n.prevDist = [0, 0]),
  7532. (n.prevBeforeDist = [0, 0]),
  7533. (n.isDrag = !1),
  7534. (n.deltaOffset = [0, 0]);
  7535. var l = ys(
  7536. t,
  7537. e,
  7538. qr(
  7539. {
  7540. set: function (t) {
  7541. n.startValue = t;
  7542. }
  7543. },
  7544. Fa(e)
  7545. )
  7546. );
  7547. return (
  7548. !1 !== (r || Cs(t, 'onDragStart', l))
  7549. ? ((n.isDrag = !0),
  7550. (t.state.dragInfo = { startRect: t.getRect(), dist: [0, 0] }))
  7551. : ((o.draggable = null), (n.isPinch = !1)),
  7552. !!n.isDrag && l
  7553. );
  7554. },
  7555. drag: function (t, e) {
  7556. if (e) {
  7557. Oa(e, 'translate');
  7558. var n = e.datas,
  7559. r = e.parentEvent,
  7560. a = e.parentFlag,
  7561. i = e.isPinch,
  7562. o = e.deltaOffset,
  7563. s = e.useSnap,
  7564. l = e.isRequest,
  7565. c = e.distX,
  7566. u = e.distY,
  7567. f = n.isDrag,
  7568. d = n.prevDist,
  7569. p = n.prevBeforeDist,
  7570. g = n.startValue;
  7571. if (f) {
  7572. o && ((c += o[0]), (u += o[1]));
  7573. var m = t.props,
  7574. v = m.parentMoveable,
  7575. h = r ? 0 : m.throttleDrag || 0,
  7576. A = r ? 0 : m.throttleDragRotate || 0,
  7577. b = 0,
  7578. w = !1,
  7579. k = !1,
  7580. y = !1,
  7581. I = !1;
  7582. if (!r && A > 0 && (c || u)) {
  7583. var E = m.startDragRotate || 0,
  7584. C = pe(E + (180 * ue([0, 0], [c, u])) / Math.PI, A) - E,
  7585. B = u * Math.abs(Math.cos(((C - 90) / 180) * Math.PI)),
  7586. x = as([c * Math.abs(Math.cos((C / 180) * Math.PI)), B]);
  7587. (b = (C * Math.PI) / 180),
  7588. (c = x * Math.cos(b)),
  7589. (u = x * Math.sin(b));
  7590. }
  7591. if (!i && !r && !a) {
  7592. var S = Kr(Zi(t, c, u, A, (!s && l) || o, n), 2),
  7593. D = S[0],
  7594. R = S[1];
  7595. (w = D.isSnap),
  7596. (k = D.isBound),
  7597. (y = R.isSnap),
  7598. (I = R.isBound),
  7599. (c += D.offset),
  7600. (u += R.offset);
  7601. }
  7602. var Q = Un(Pa({ datas: n, distX: c, distY: u }), g),
  7603. _ = Un(Ta({ datas: n, distX: c, distY: u }), g);
  7604. ge(_, wa),
  7605. ge(Q, wa),
  7606. A ||
  7607. (w || k || ((_[0] = pe(_[0], h)), (Q[0] = pe(Q[0], h))),
  7608. y || I || ((_[1] = pe(_[1], h)), (Q[1] = pe(Q[1], h))));
  7609. var O = Fn(Q, g),
  7610. M = Fn(_, g),
  7611. T = Fn(M, d),
  7612. z = Fn(O, p);
  7613. (n.prevDist = M),
  7614. (n.prevBeforeDist = O),
  7615. (n.passDelta = T),
  7616. (n.passDist = M);
  7617. var P = n.left + O[0],
  7618. Y = n.top + O[1],
  7619. G = n.right - O[0],
  7620. N = n.bottom - O[1],
  7621. U = Ma(
  7622. n,
  7623. 'translate('.concat(_[0], 'px, ').concat(_[1], 'px)'),
  7624. 'translate('.concat(M[0], 'px, ').concat(M[1], 'px)')
  7625. );
  7626. if (
  7627. (ja(e, U),
  7628. (t.state.dragInfo.dist = r ? [0, 0] : M),
  7629. r ||
  7630. v ||
  7631. !T.every(function (t) {
  7632. return !t;
  7633. }) ||
  7634. !z.some(function (t) {
  7635. return !t;
  7636. }))
  7637. ) {
  7638. var F = t.state,
  7639. L = F.width,
  7640. X = F.height,
  7641. j = ys(
  7642. t,
  7643. e,
  7644. qr(
  7645. {
  7646. transform: U,
  7647. dist: M,
  7648. delta: T,
  7649. translate: _,
  7650. beforeDist: O,
  7651. beforeDelta: z,
  7652. beforeTranslate: Q,
  7653. left: P,
  7654. top: Y,
  7655. right: G,
  7656. bottom: N,
  7657. width: L,
  7658. height: X,
  7659. isPinch: i
  7660. },
  7661. ws({ transform: U }, e)
  7662. )
  7663. );
  7664. return !r && Cs(t, 'onDrag', j), j;
  7665. }
  7666. }
  7667. }
  7668. },
  7669. dragAfter: function (t, e) {
  7670. var n = e.datas,
  7671. r = n.deltaOffset;
  7672. return (
  7673. !(!r[0] && !r[1]) &&
  7674. ((n.deltaOffset = [0, 0]),
  7675. this.drag(t, qr(qr({}, e), { deltaOffset: r })))
  7676. );
  7677. },
  7678. dragEnd: function (t, e) {
  7679. var n = e.parentEvent,
  7680. r = e.datas;
  7681. if (((t.state.dragInfo = null), r.isDrag)) {
  7682. r.isDrag = !1;
  7683. var a = Is(t, e, {});
  7684. return !n && Cs(t, 'onDragEnd', a), a;
  7685. }
  7686. },
  7687. dragGroupStart: function (t, e) {
  7688. var n = e.datas,
  7689. r = e.clientX,
  7690. a = e.clientY,
  7691. i = this.dragStart(t, e);
  7692. if (!i) return !1;
  7693. var o = li(
  7694. t,
  7695. this,
  7696. 'dragStart',
  7697. [r || 0, a || 0],
  7698. e,
  7699. !1,
  7700. 'draggable'
  7701. ),
  7702. s = Cs(
  7703. t,
  7704. 'onDragGroupStart',
  7705. qr(qr({}, i), { targets: t.props.targets, events: o })
  7706. );
  7707. return (n.isDrag = !1 !== s), !!n.isDrag && i;
  7708. },
  7709. dragGroup: function (t, e) {
  7710. if (e.datas.isDrag) {
  7711. var n = this.drag(t, e),
  7712. r = li(t, this, 'drag', e.datas.passDelta, e, !1, 'draggable');
  7713. if (n) {
  7714. var a = qr({ targets: t.props.targets, events: r }, n);
  7715. return Cs(t, 'onDragGroup', a), a;
  7716. }
  7717. }
  7718. },
  7719. dragGroupEnd: function (t, e) {
  7720. var n = e.isDrag;
  7721. if (e.datas.isDrag) {
  7722. this.dragEnd(t, e);
  7723. var r = li(t, this, 'dragEnd', [0, 0], e, !1, 'draggable');
  7724. return (
  7725. Cs(
  7726. t,
  7727. 'onDragGroupEnd',
  7728. Is(t, e, { targets: t.props.targets, events: r })
  7729. ),
  7730. n
  7731. );
  7732. }
  7733. },
  7734. request: function (t) {
  7735. var e = {},
  7736. n = t.getRect(),
  7737. r = 0,
  7738. a = 0,
  7739. i = !1;
  7740. return {
  7741. isControl: !1,
  7742. requestStart: function (t) {
  7743. return (i = t.useSnap), { datas: e, useSnap: i };
  7744. },
  7745. request: function (t) {
  7746. return (
  7747. 'x' in t
  7748. ? (r = t.x - n.left)
  7749. : 'deltaX' in t && (r += t.deltaX),
  7750. 'y' in t
  7751. ? (a = t.y - n.top)
  7752. : 'deltaY' in t && (a += t.deltaY),
  7753. { datas: e, distX: r, distY: a, useSnap: i }
  7754. );
  7755. },
  7756. requestEnd: function () {
  7757. return { datas: e, isDrag: !0, useSnap: i };
  7758. }
  7759. };
  7760. },
  7761. unset: function (t) {
  7762. (t.state.gestos.draggable = null), (t.state.dragInfo = null);
  7763. }
  7764. };
  7765. function ro(t, e) {
  7766. return {
  7767. fixedPosition: Na(t, e),
  7768. fixedDirection: e,
  7769. fixedOffset: [0, 0]
  7770. };
  7771. }
  7772. function ao(t, e) {
  7773. var n = t.allMatrix,
  7774. r = t.is3d,
  7775. a = t.width,
  7776. i = t.height,
  7777. o = r ? 4 : 3,
  7778. s = (function (t, e, n) {
  7779. return [e ? t[0] / (e / 2) - 1 : 0, n ? t[1] / (n / 2) - 1 : 0];
  7780. })(e, a, i);
  7781. return {
  7782. fixedPosition: ts(n, e, o),
  7783. fixedDirection: s,
  7784. fixedOffset: [a ? 0 : e[0], i ? 0 : e[1]]
  7785. };
  7786. }
  7787. var io = Ys('resizable'),
  7788. oo = {
  7789. name: 'resizable',
  7790. ableGroup: 'size',
  7791. canPinch: !0,
  7792. props: [
  7793. 'resizable',
  7794. 'throttleResize',
  7795. 'renderDirections',
  7796. 'displayAroundControls',
  7797. 'keepRatio',
  7798. 'resizeFormat',
  7799. 'keepRatioFinally',
  7800. 'edge',
  7801. 'checkResizableError'
  7802. ],
  7803. events: [
  7804. 'resizeStart',
  7805. 'beforeResize',
  7806. 'resize',
  7807. 'resizeEnd',
  7808. 'resizeGroupStart',
  7809. 'beforeResizeGroup',
  7810. 'resizeGroup',
  7811. 'resizeGroupEnd'
  7812. ],
  7813. render: mi('resizable'),
  7814. dragControlCondition: io,
  7815. viewClassName: Ps('resizable'),
  7816. dragControlStart: function (t, e) {
  7817. var n,
  7818. r = e.inputEvent,
  7819. a = e.isPinch,
  7820. i = e.isGroup,
  7821. o = e.parentDirection,
  7822. s = e.parentGesto,
  7823. l = e.datas,
  7824. c = e.parentFixedDirection,
  7825. u = e.parentEvent,
  7826. f = gs(o, a, r, l),
  7827. d = t.state,
  7828. p = d.target,
  7829. g = d.width,
  7830. m = d.height,
  7831. v = d.gestos;
  7832. if (!f || !p) return !1;
  7833. if (v.resizable) return !1;
  7834. (v.resizable = s || t.controlGesto),
  7835. !a && _a(t, e),
  7836. (l.datas = {}),
  7837. (l.direction = f),
  7838. (l.startOffsetWidth = g),
  7839. (l.startOffsetHeight = m),
  7840. (l.prevWidth = 0),
  7841. (l.prevHeight = 0),
  7842. (l.minSize = [0, 0]),
  7843. (l.startWidth = d.inlineCSSWidth || d.cssWidth),
  7844. (l.startHeight = d.inlineCSSHeight || d.cssHeight),
  7845. (l.maxSize = [1 / 0, 1 / 0]),
  7846. i ||
  7847. ((l.minSize = [d.minOffsetWidth, d.minOffsetHeight]),
  7848. (l.maxSize = [d.maxOffsetWidth, d.maxOffsetHeight]));
  7849. var h = t.props.transformOrigin || '% %';
  7850. function A(t) {
  7851. l.ratio = t && isFinite(t) ? t : 0;
  7852. }
  7853. function b(t) {
  7854. var e = ro(l.startPositions, t);
  7855. (l.fixedDirection = e.fixedDirection),
  7856. (l.fixedPosition = e.fixedPosition),
  7857. (l.fixedOffset = e.fixedOffset);
  7858. }
  7859. function w(e) {
  7860. var n = ao(t.state, e);
  7861. (l.fixedDirection = n.fixedDirection),
  7862. (l.fixedPosition = n.fixedPosition),
  7863. (l.fixedOffset = n.fixedOffset);
  7864. }
  7865. function k(t) {
  7866. l.minSize = [
  7867. ie(''.concat(t[0]), 0) || 0,
  7868. ie(''.concat(t[1]), 0) || 0
  7869. ];
  7870. }
  7871. function y(t) {
  7872. var e = [t[0] || 1 / 0, t[1] || 1 / 0];
  7873. (Lt(e[0]) && !isFinite(e[0])) ||
  7874. (e[0] = ie(''.concat(e[0]), 0) || 1 / 0),
  7875. (Lt(e[1]) && !isFinite(e[1])) ||
  7876. (e[1] = ie(''.concat(e[1]), 0) || 1 / 0),
  7877. (l.maxSize = e);
  7878. }
  7879. (l.transformOrigin = h && Ft(h) ? h.split(' ') : h),
  7880. (l.startOffsetMatrix = d.offsetMatrix),
  7881. (l.startTransformOrigin = d.transformOrigin),
  7882. (l.isWidth =
  7883. null !== (n = null == e ? void 0 : e.parentIsWidth) &&
  7884. void 0 !== n
  7885. ? n
  7886. : (!f[0] && !f[1]) || f[0] || !f[1]),
  7887. (l.startPositions = hs(t.state)),
  7888. A(g / m),
  7889. b(c || [-f[0], -f[1]]),
  7890. (l.setFixedDirection = b),
  7891. (l.setFixedPosition = w),
  7892. (l.setMin = k),
  7893. (l.setMax = y);
  7894. var I = ys(t, e, {
  7895. direction: f,
  7896. startRatio: l.ratio,
  7897. set: function (t) {
  7898. var e = Kr(t, 2),
  7899. n = e[0],
  7900. r = e[1];
  7901. (l.startWidth = n), (l.startHeight = r);
  7902. },
  7903. setMin: k,
  7904. setMax: y,
  7905. setRatio: A,
  7906. setFixedDirection: b,
  7907. setFixedPosition: w,
  7908. setOrigin: function (t) {
  7909. l.transformOrigin = t;
  7910. },
  7911. dragStart: no.dragStart(t, new Da().dragStart([0, 0], e))
  7912. }),
  7913. E = u || Cs(t, 'onResizeStart', I);
  7914. return (
  7915. (l.startFixedDirection = l.fixedDirection),
  7916. (l.startFixedPosition = l.fixedPosition),
  7917. !1 !== E &&
  7918. ((l.isResize = !0),
  7919. (t.state.snapRenderInfo = {
  7920. request: e.isRequest,
  7921. direction: f
  7922. })),
  7923. !!l.isResize && I
  7924. );
  7925. },
  7926. dragControl: function (t, e) {
  7927. var n,
  7928. r = e.datas,
  7929. a = e.parentFlag,
  7930. i = e.isPinch,
  7931. o = e.parentKeepRatio,
  7932. s = e.dragClient,
  7933. l = e.parentDist,
  7934. c = e.useSnap,
  7935. u = e.isRequest,
  7936. f = e.isGroup,
  7937. d = e.parentEvent,
  7938. p = e.resolveMatrix,
  7939. g = r.isResize,
  7940. m = r.transformOrigin,
  7941. v = r.startWidth,
  7942. h = r.startHeight,
  7943. A = r.prevWidth,
  7944. b = r.prevHeight,
  7945. w = r.minSize,
  7946. k = r.maxSize,
  7947. y = r.ratio,
  7948. I = r.startOffsetWidth,
  7949. E = r.startOffsetHeight,
  7950. C = r.isWidth;
  7951. if (g) {
  7952. if (p) {
  7953. var B = t.state.is3d,
  7954. x = r.startOffsetMatrix,
  7955. S = r.startTransformOrigin,
  7956. D = B ? 4 : 3,
  7957. R = ar(Ha(e)),
  7958. Q = Math.sqrt(R.length);
  7959. D !== Q && (R = Yn(R, Q, D));
  7960. var _ = Ua(x, R, S, D),
  7961. O = es(_, I, E, D);
  7962. (r.startPositions = O),
  7963. (r.nextTargetMatrix = R),
  7964. (r.nextAllMatrix = _);
  7965. }
  7966. var M = ls(t.props, 'resizable'),
  7967. T = M.resizeFormat,
  7968. z = M.throttleResize,
  7969. P = void 0 === z ? (a ? 0 : 1) : z,
  7970. Y = M.parentMoveable,
  7971. G = M.keepRatioFinally,
  7972. N = r.direction,
  7973. U = N,
  7974. F = 0,
  7975. L = 0;
  7976. N[0] || N[1] || (U = [1, 1]);
  7977. var X = (y && (null != o ? o : M.keepRatio)) || !1,
  7978. j = Kr(at(), 2),
  7979. W = j[0],
  7980. H = j[1];
  7981. d ||
  7982. (r.setFixedDirection(r.fixedDirection),
  7983. Cs(
  7984. t,
  7985. 'onBeforeResize',
  7986. ys(
  7987. t,
  7988. e,
  7989. {
  7990. startFixedDirection: r.startFixedDirection,
  7991. startFixedPosition: r.startFixedPosition,
  7992. setFixedDirection: function (t) {
  7993. var e;
  7994. return (
  7995. r.setFixedDirection(t),
  7996. (e = Kr(at(), 2)),
  7997. (W = e[0]),
  7998. (H = e[1]),
  7999. [W, H]
  8000. );
  8001. },
  8002. setFixedPosition: function (t) {
  8003. var e;
  8004. return (
  8005. r.setFixedPosition(t),
  8006. (e = Kr(at(), 2)),
  8007. (W = e[0]),
  8008. (H = e[1]),
  8009. [W, H]
  8010. );
  8011. },
  8012. boundingWidth: W,
  8013. boundingHeight: H,
  8014. setSize: function (t) {
  8015. var e;
  8016. (e = Kr(t, 2)), (W = e[0]), (H = e[1]);
  8017. }
  8018. },
  8019. !0
  8020. )
  8021. ));
  8022. var V = s;
  8023. s ||
  8024. (V =
  8025. !a && i
  8026. ? (function (t, e) {
  8027. return Na(hs(t.state), e);
  8028. })(t, [0, 0])
  8029. : r.fixedPosition);
  8030. var q = [0, 0];
  8031. if (
  8032. (i ||
  8033. (q = (function (t, e, n, r, a, i, o) {
  8034. if (!xi(t, 'resizable')) return [0, 0];
  8035. var s = o.fixedDirection,
  8036. l = o.nextAllMatrix,
  8037. c = t.state,
  8038. u = c.allMatrix,
  8039. f = c.is3d;
  8040. return So(
  8041. t,
  8042. function (t, r) {
  8043. return Co(l || u, e + t, n + r, s, a, f);
  8044. },
  8045. e,
  8046. n,
  8047. r,
  8048. a,
  8049. i,
  8050. o
  8051. );
  8052. })(t, W, H, N, V, !c && u, r)),
  8053. l && (!l[0] && (q[0] = 0), !l[1] && (q[1] = 0)),
  8054. X)
  8055. ) {
  8056. U[0] &&
  8057. U[1] &&
  8058. q[0] &&
  8059. q[1] &&
  8060. (qs(q[0]) > qs(q[1]) ? (q[1] = 0) : (q[0] = 0));
  8061. var K = !q[0] && !q[1];
  8062. K && it(),
  8063. (U[0] && !U[1]) || (q[0] && !q[1]) || (K && C)
  8064. ? ((W += q[0]), (H = W / y))
  8065. : ((!U[0] && U[1]) || (!q[0] && q[1]) || (K && !C)) &&
  8066. ((H += q[1]), (W = H * y));
  8067. } else
  8068. (W += q[0]),
  8069. (H += q[1]),
  8070. (W = Math.max(0, W)),
  8071. (H = Math.max(0, H));
  8072. (n = Kr(le([W, H], w, k, !!X && y), 2)),
  8073. (W = n[0]),
  8074. (H = n[1]),
  8075. it(),
  8076. X && (f || G) && (C ? (H = W / y) : (W = H * y));
  8077. var Z = [(F = W - I) - A, (L = H - E) - b];
  8078. (r.prevWidth = F), (r.prevHeight = L);
  8079. var J = $a(t, W, H, V, m, r);
  8080. if (
  8081. Y ||
  8082. !Z.every(function (t) {
  8083. return !t;
  8084. }) ||
  8085. !J.every(function (t) {
  8086. return !t;
  8087. })
  8088. ) {
  8089. var $ = no.drag(t, Sa(e, t.state, J, !!i, !1, 'draggable')),
  8090. tt = $.transform,
  8091. et = v + F,
  8092. nt = h + L,
  8093. rt = ys(
  8094. t,
  8095. e,
  8096. qr(
  8097. {
  8098. width: et,
  8099. height: nt,
  8100. offsetWidth: Math.round(W),
  8101. offsetHeight: Math.round(H),
  8102. startRatio: y,
  8103. boundingWidth: W,
  8104. boundingHeight: H,
  8105. direction: N,
  8106. dist: [F, L],
  8107. delta: Z,
  8108. isPinch: !!i,
  8109. drag: $
  8110. },
  8111. ks(
  8112. {
  8113. style: {
  8114. width: ''.concat(et, 'px'),
  8115. height: ''.concat(nt, 'px')
  8116. },
  8117. transform: tt
  8118. },
  8119. $,
  8120. e
  8121. )
  8122. )
  8123. );
  8124. return !d && Cs(t, 'onResize', rt), rt;
  8125. }
  8126. }
  8127. function at() {
  8128. var t = r.fixedDirection,
  8129. n = Ls(U, X, r, e);
  8130. (F = n.distWidth), (L = n.distHeight);
  8131. var a = U[0] - t[0] || X ? Math.max(I + F, wa) : I,
  8132. i = U[1] - t[1] || X ? Math.max(E + L, wa) : E;
  8133. return X && I && E && (C ? (i = a / y) : (a = i * y)), [a, i];
  8134. }
  8135. function it() {
  8136. var t;
  8137. T && ((t = Kr(T([W, H]), 2)), (W = t[0]), (H = t[1])),
  8138. (W = pe(W, P)),
  8139. (H = pe(H, P));
  8140. }
  8141. },
  8142. dragControlAfter: function (t, e) {
  8143. var n = e.datas,
  8144. r = n.isResize,
  8145. a = n.startOffsetWidth,
  8146. i = n.startOffsetHeight,
  8147. o = n.prevWidth,
  8148. s = n.prevHeight;
  8149. if (r && !1 !== t.props.checkResizableError) {
  8150. var l = t.state,
  8151. c = l.width - (a + o),
  8152. u = l.height - (i + s),
  8153. f = qs(c) > 3,
  8154. d = qs(u) > 3;
  8155. return (
  8156. f &&
  8157. ((n.startWidth += c),
  8158. (n.startOffsetWidth += c),
  8159. (n.prevWidth += c)),
  8160. d &&
  8161. ((n.startHeight += u),
  8162. (n.startOffsetHeight += u),
  8163. (n.prevHeight += u)),
  8164. f || d ? this.dragControl(t, e) : void 0
  8165. );
  8166. }
  8167. },
  8168. dragControlEnd: function (t, e) {
  8169. var n = e.datas,
  8170. r = e.parentEvent;
  8171. if (n.isResize) {
  8172. n.isResize = !1;
  8173. var a = Is(t, e, {});
  8174. return !r && Cs(t, 'onResizeEnd', a), a;
  8175. }
  8176. },
  8177. dragGroupControlCondition: io,
  8178. dragGroupControlStart: function (t, e) {
  8179. var n = e.datas,
  8180. r = this.dragControlStart(t, qr(qr({}, e), { isGroup: !0 }));
  8181. if (!r) return !1;
  8182. var a = si(t, 'resizable', e),
  8183. i = n.startOffsetWidth,
  8184. o = n.startOffsetHeight;
  8185. function s() {
  8186. var t = n.minSize;
  8187. a.forEach(function (e) {
  8188. var n = e.datas,
  8189. r = n.minSize,
  8190. a = n.startOffsetWidth,
  8191. s = n.startOffsetHeight,
  8192. l = i * (a ? r[0] / a : 0),
  8193. c = o * (s ? r[1] / s : 0);
  8194. (t[0] = Math.max(t[0], l)), (t[1] = Math.max(t[1], c));
  8195. });
  8196. }
  8197. function l() {
  8198. var t = n.maxSize;
  8199. a.forEach(function (e) {
  8200. var n = e.datas,
  8201. r = n.maxSize,
  8202. a = n.startOffsetWidth,
  8203. s = n.startOffsetHeight,
  8204. l = i * (a ? r[0] / a : 0),
  8205. c = o * (s ? r[1] / s : 0);
  8206. (t[0] = Math.min(t[0], l)), (t[1] = Math.min(t[1], c));
  8207. });
  8208. }
  8209. var c = ci(t, this, 'dragControlStart', e, function (e, r) {
  8210. return ui(t, e, n, r);
  8211. });
  8212. s(), l();
  8213. var u = function (e) {
  8214. r.setFixedDirection(e),
  8215. c.forEach(function (r, i) {
  8216. r.setFixedDirection(e), ui(t, r.moveable, n, a[i]);
  8217. });
  8218. };
  8219. n.setFixedDirection = u;
  8220. var f = qr(qr({}, r), {
  8221. targets: t.props.targets,
  8222. events: c.map(function (t) {
  8223. return qr(qr({}, t), {
  8224. setMin: function (e) {
  8225. t.setMin(e), s();
  8226. },
  8227. setMax: function (e) {
  8228. t.setMax(e), l();
  8229. }
  8230. });
  8231. }),
  8232. setFixedDirection: u,
  8233. setMin: function (t) {
  8234. r.setMin(t), s();
  8235. },
  8236. setMax: function (t) {
  8237. r.setMax(t), l();
  8238. }
  8239. }),
  8240. d = Cs(t, 'onResizeGroupStart', f);
  8241. return (n.isResize = !1 !== d), !!n.isResize && r;
  8242. },
  8243. dragGroupControl: function (t, e) {
  8244. var n = e.datas;
  8245. if (n.isResize) {
  8246. var r = ls(t.props, 'resizable');
  8247. Es(t, 'onBeforeResize', function (n) {
  8248. Cs(
  8249. t,
  8250. 'onBeforeResizeGroup',
  8251. ys(t, e, qr(qr({}, n), { targets: r.targets }), !0)
  8252. );
  8253. });
  8254. var a = this.dragControl(t, qr(qr({}, e), { isGroup: !0 }));
  8255. if (a) {
  8256. var i = a.boundingWidth,
  8257. o = a.boundingHeight,
  8258. s = a.dist,
  8259. l = r.keepRatio,
  8260. c = [i / (i - s[0]), o / (o - s[1])],
  8261. u = n.fixedPosition,
  8262. f = ci(t, this, 'dragControl', e, function (e, n) {
  8263. var r = Kr(
  8264. Xn(
  8265. Jn((t.rotation / 180) * Math.PI, 3),
  8266. [
  8267. n.datas.originalX * c[0],
  8268. n.datas.originalY * c[1],
  8269. 1
  8270. ],
  8271. 3
  8272. ),
  8273. 2
  8274. ),
  8275. a = r[0],
  8276. i = r[1];
  8277. return qr(qr({}, n), {
  8278. parentDist: null,
  8279. parentScale: c,
  8280. dragClient: Un(u, [a, i]),
  8281. parentKeepRatio: l
  8282. });
  8283. }),
  8284. d = qr({ targets: r.targets, events: f }, a);
  8285. return Cs(t, 'onResizeGroup', d), d;
  8286. }
  8287. }
  8288. },
  8289. dragGroupControlEnd: function (t, e) {
  8290. var n = e.isDrag;
  8291. if (e.datas.isResize) {
  8292. this.dragControlEnd(t, e);
  8293. var r = ci(t, this, 'dragControlEnd', e);
  8294. return (
  8295. Cs(
  8296. t,
  8297. 'onResizeGroupEnd',
  8298. Is(t, e, { targets: t.props.targets, events: r })
  8299. ),
  8300. n
  8301. );
  8302. }
  8303. },
  8304. request: function (t) {
  8305. var e = {},
  8306. n = 0,
  8307. r = 0,
  8308. a = !1,
  8309. i = t.getRect();
  8310. return {
  8311. isControl: !0,
  8312. requestStart: function (t) {
  8313. var n;
  8314. return (
  8315. (a = t.useSnap),
  8316. {
  8317. datas: e,
  8318. parentDirection: t.direction || [1, 1],
  8319. parentIsWidth:
  8320. null === (n = null == t ? void 0 : t.horizontal) ||
  8321. void 0 === n ||
  8322. n,
  8323. useSnap: a
  8324. }
  8325. );
  8326. },
  8327. request: function (t) {
  8328. return (
  8329. 'offsetWidth' in t
  8330. ? (n = t.offsetWidth - i.offsetWidth)
  8331. : 'deltaWidth' in t && (n += t.deltaWidth),
  8332. 'offsetHeight' in t
  8333. ? (r = t.offsetHeight - i.offsetHeight)
  8334. : 'deltaHeight' in t && (r += t.deltaHeight),
  8335. {
  8336. datas: e,
  8337. parentDist: [n, r],
  8338. parentKeepRatio: t.keepRatio,
  8339. useSnap: a
  8340. }
  8341. );
  8342. },
  8343. requestEnd: function () {
  8344. return { datas: e, isDrag: !0, useSnap: a };
  8345. }
  8346. };
  8347. },
  8348. unset: function (t) {
  8349. t.state.gestos.resizable = null;
  8350. }
  8351. };
  8352. function so(t, e, n, r, a) {
  8353. var i = t.props.groupable,
  8354. o = t.state,
  8355. s = o.is3d ? 4 : 3,
  8356. l = e.origin,
  8357. c = ts(
  8358. t.state.rootMatrix,
  8359. Fn([l[0], l[1]], i ? [0, 0] : [o.left, o.top]),
  8360. s
  8361. ),
  8362. u = Un([a.left, a.top], c);
  8363. (e.startAbsoluteOrigin = u),
  8364. (e.prevDeg = (ue(u, [n, r]) / Math.PI) * 180),
  8365. (e.defaultDeg = e.prevDeg),
  8366. (e.prevSnapDeg = 0),
  8367. (e.loop = 0),
  8368. (e.startDist = de(u, [n, r]));
  8369. }
  8370. function lo(t, e, n) {
  8371. var r = n.defaultDeg,
  8372. a = n.prevDeg,
  8373. i = a % 360,
  8374. o = Math.floor(a / 360);
  8375. i < 0 && (i += 360),
  8376. i > t && i > 270 && t < 90
  8377. ? ++o
  8378. : i < t && i < 90 && t > 270 && --o;
  8379. var s = e * (360 * o + t - r);
  8380. return (n.prevDeg = r + s), s;
  8381. }
  8382. function co(t, e, n, r) {
  8383. return lo((ue(r.startAbsoluteOrigin, [t, e]) / Math.PI) * 180, n, r);
  8384. }
  8385. function uo(t, e, n, r, a, i) {
  8386. var o = t.props.throttleRotate,
  8387. s = void 0 === o ? 0 : o,
  8388. l = n.prevSnapDeg,
  8389. c = 0,
  8390. u = !1;
  8391. if (i) {
  8392. var f = (function (t, e, n, r) {
  8393. var a,
  8394. i = t.props,
  8395. o = null !== (a = i[zo]) && void 0 !== a ? a : 5,
  8396. s = i[Po];
  8397. if (xi(t, 'rotatable')) {
  8398. var l = e.pos1,
  8399. c = e.pos2,
  8400. u = e.pos3,
  8401. f = e.pos4,
  8402. d = e.origin,
  8403. p = (n * Math.PI) / 180,
  8404. g = [l, c, u, f].map(function (t) {
  8405. return Fn(t, d);
  8406. }),
  8407. m = g.map(function (t) {
  8408. return qn(t, p);
  8409. }),
  8410. v = Zr(
  8411. Zr([], Kr(yi(t, g, m, d, n)), !1),
  8412. Kr(Vi(t, g, m, d, n)),
  8413. !1
  8414. );
  8415. v.sort(function (t, e) {
  8416. return qs(t - n) - qs(e - n);
  8417. });
  8418. var h = v.length > 0;
  8419. if (h) return { isSnap: h, dist: h ? v[0] : n };
  8420. }
  8421. if ((null == s ? void 0 : s.length) && o) {
  8422. var A = s.slice().sort(function (t, e) {
  8423. return Qo(t, r) - Qo(e, r);
  8424. })[0];
  8425. if (Qo(A, r) <= o)
  8426. return { isSnap: !0, dist: n + Ro(r, A) - r };
  8427. }
  8428. return { isSnap: !1, dist: n };
  8429. })(t, e, r, a + r);
  8430. (u = f.isSnap), (c = a + f.dist);
  8431. }
  8432. u || (c = pe(a + r, s));
  8433. var d = c - a;
  8434. return (n.prevSnapDeg = d), [d - l, d, c];
  8435. }
  8436. function fo(t, e, n) {
  8437. var r = Kr(e, 4),
  8438. a = r[0],
  8439. i = r[1],
  8440. o = r[2],
  8441. s = r[3];
  8442. if ('none' === t) return [];
  8443. if (Ut(t))
  8444. return t.map(function (t) {
  8445. return fo(t, [a, i, o, s], n)[0];
  8446. });
  8447. var l = Kr((t || 'top').split('-'), 2),
  8448. c = l[0],
  8449. u = l[1],
  8450. f = [a, i];
  8451. 'left' === c
  8452. ? (f = [o, a])
  8453. : 'right' === c
  8454. ? (f = [i, s])
  8455. : 'bottom' === c && (f = [s, o]);
  8456. var d = [(f[0][0] + f[1][0]) / 2, (f[0][1] + f[1][1]) / 2],
  8457. p = us(f, n);
  8458. if (u) {
  8459. var g = 'top' === u || 'left' === u,
  8460. m = 'bottom' === c || 'left' === c;
  8461. d = f[(g && !m) || (!g && m) ? 0 : 1];
  8462. }
  8463. return [[d, p]];
  8464. }
  8465. function po(t, e) {
  8466. if (e.isRequest) return 'rotatable' === e.requestAble;
  8467. var n = e.inputEvent.target;
  8468. if (
  8469. ve(n, Go('rotation-control')) ||
  8470. (t.props.rotateAroundControls && ve(n, Go('around-control'))) ||
  8471. (ve(n, Go('control')) && ve(n, Go('rotatable')))
  8472. )
  8473. return !0;
  8474. var r = t.props.rotationTarget;
  8475. return (
  8476. !!r &&
  8477. Ns(r, !0).some(function (t) {
  8478. return !!t && (n === t || n.contains(t));
  8479. })
  8480. );
  8481. }
  8482. var go = {
  8483. name: 'rotatable',
  8484. canPinch: !0,
  8485. props: [
  8486. 'rotatable',
  8487. 'rotationPosition',
  8488. 'throttleRotate',
  8489. 'renderDirections',
  8490. 'rotationTarget',
  8491. 'rotateAroundControls',
  8492. 'edge',
  8493. 'resolveAblesWithRotatable',
  8494. 'displayAroundControls'
  8495. ],
  8496. events: [
  8497. 'rotateStart',
  8498. 'beforeRotate',
  8499. 'rotate',
  8500. 'rotateEnd',
  8501. 'rotateGroupStart',
  8502. 'beforeRotateGroup',
  8503. 'rotateGroup',
  8504. 'rotateGroupEnd'
  8505. ],
  8506. css: [
  8507. '.rotation {\nposition: absolute;\nheight: 40px;\nwidth: 1px;\ntransform-origin: 50% 100%;\nheight: calc(40px * var(--zoom));\ntop: auto;\nleft: 0;\nbottom: 100%;\nwill-change: transform;\n}\n.rotation .rotation-line {\ndisplay: block;\nwidth: 100%;\nheight: 100%;\ntransform-origin: 50% 50%;\n}\n.rotation .rotation-control {\nborder-color: #4af;\nborder-color: var(--moveable-color);\nbackground:#fff;\ncursor: alias;\n}\n:global .view-rotation-dragging, .rotatable.direction.control {\ncursor: alias;\n}\n.rotatable.direction.control.move {\ncursor: move;\n}\n'
  8508. ],
  8509. viewClassName: function (t) {
  8510. return t.isDragging('rotatable')
  8511. ? Go('view-rotation-dragging')
  8512. : '';
  8513. },
  8514. render: function (t, e) {
  8515. var n = ls(t.props, 'rotatable'),
  8516. r = n.rotatable,
  8517. a = n.rotationPosition,
  8518. i = n.zoom,
  8519. o = n.renderDirections,
  8520. s = n.rotateAroundControls,
  8521. l = n.resolveAblesWithRotatable,
  8522. c = t.getState(),
  8523. u = c.renderPoses,
  8524. f = c.direction;
  8525. if (!r) return null;
  8526. var d = fo(a, u, f),
  8527. p = [];
  8528. if (
  8529. (d.forEach(function (t, n) {
  8530. var r = Kr(t, 2),
  8531. a = r[0],
  8532. o = r[1];
  8533. p.push(
  8534. e.createElement(
  8535. 'div',
  8536. {
  8537. key: 'rotation'.concat(n),
  8538. className: Go('rotation'),
  8539. style: {
  8540. transform: 'translate(-50%) translate('
  8541. .concat(a[0], 'px, ')
  8542. .concat(a[1], 'px) rotate(')
  8543. .concat(o, 'rad)')
  8544. }
  8545. },
  8546. e.createElement('div', {
  8547. className: Go('line rotation-line'),
  8548. style: { transform: 'scaleX('.concat(i, ')') }
  8549. }),
  8550. e.createElement('div', {
  8551. className: Go('control rotation-control'),
  8552. style: {
  8553. transform: 'translate(0.5px) scale('.concat(i, ')')
  8554. }
  8555. })
  8556. )
  8557. );
  8558. }),
  8559. o)
  8560. ) {
  8561. var g = ae(l || {}),
  8562. m = {};
  8563. g.forEach(function (t) {
  8564. l[t].forEach(function (e) {
  8565. m[e] = t;
  8566. });
  8567. });
  8568. var v = [];
  8569. Ut(o) &&
  8570. (v = o.map(function (t) {
  8571. var e = m[t];
  8572. return {
  8573. data: e ? { resolve: e } : {},
  8574. classNames: e ? ['move'] : [],
  8575. dir: t
  8576. };
  8577. })),
  8578. p.push.apply(p, Zr([], Kr(fi(t, 'rotatable', v, e)), !1));
  8579. }
  8580. return s && p.push.apply(p, Zr([], Kr(hi(t, e)), !1)), p;
  8581. },
  8582. dragControlCondition: po,
  8583. dragControlStart: function (t, e) {
  8584. var n,
  8585. r,
  8586. a = e.datas,
  8587. i = e.clientX,
  8588. o = e.clientY,
  8589. s = e.parentRotate,
  8590. l = e.parentFlag,
  8591. c = e.isPinch,
  8592. u = e.isRequest,
  8593. f = t.state,
  8594. d = f.target,
  8595. p = f.left,
  8596. g = f.top,
  8597. m = f.direction,
  8598. v = f.beforeDirection,
  8599. h = f.targetTransform,
  8600. A = f.moveableClientRect,
  8601. b = f.offsetMatrix,
  8602. w = f.targetMatrix,
  8603. k = f.allMatrix,
  8604. y = f.width,
  8605. I = f.height;
  8606. if (!u && !d) return !1;
  8607. var E = t.getRect();
  8608. (a.rect = E), (a.transform = h), (a.left = p), (a.top = g);
  8609. var C = function (e) {
  8610. var n = ao(t.state, e);
  8611. (a.fixedDirection = n.fixedDirection),
  8612. (a.fixedOffset = n.fixedOffset),
  8613. (a.fixedPosition = n.fixedPosition),
  8614. P && P.setFixedPosition(e);
  8615. },
  8616. B = function (e) {
  8617. var n = (function (t, e) {
  8618. var n = t.allMatrix,
  8619. r = t.is3d,
  8620. a = t.width,
  8621. i = t.height,
  8622. o = r ? 4 : 3;
  8623. return {
  8624. fixedPosition: ts(
  8625. n,
  8626. [(a / 2) * (1 + e[0]), (i / 2) * (1 + e[1])],
  8627. o
  8628. ),
  8629. fixedDirection: e,
  8630. fixedOffset: [0, 0]
  8631. };
  8632. })(t.state, e);
  8633. (a.fixedDirection = n.fixedDirection),
  8634. (a.fixedOffset = n.fixedOffset),
  8635. (a.fixedPosition = n.fixedPosition),
  8636. P && P.setFixedDirection(e);
  8637. },
  8638. x = i,
  8639. S = o;
  8640. if (u || c || l) {
  8641. var D = s || 0;
  8642. (a.beforeInfo = {
  8643. origin: E.beforeOrigin,
  8644. prevDeg: D,
  8645. defaultDeg: D,
  8646. prevSnapDeg: 0,
  8647. startDist: 0
  8648. }),
  8649. (a.afterInfo = qr(qr({}, a.beforeInfo), { origin: E.origin })),
  8650. (a.absoluteInfo = qr(qr({}, a.beforeInfo), {
  8651. origin: E.origin,
  8652. startValue: D
  8653. }));
  8654. } else {
  8655. var R =
  8656. null === (r = e.inputEvent) || void 0 === r ? void 0 : r.target;
  8657. if (R) {
  8658. var Q = R.getAttribute('data-direction') || '',
  8659. _ = Ea[Q];
  8660. if (_) {
  8661. (a.isControl = !0),
  8662. (a.isAroundControl = ve(R, Go('around-control'))),
  8663. (a.controlDirection = _);
  8664. var O = R.getAttribute('data-resolve');
  8665. O && (a.resolveAble = O);
  8666. var M = (function (t, e, n) {
  8667. var r = 16 === t.length ? 4 : 3,
  8668. a = e.map(function (e) {
  8669. return ts(t, e, r);
  8670. }),
  8671. i = n.left,
  8672. o = n.top;
  8673. return a.map(function (t) {
  8674. return [t[0] + i, t[1] + o];
  8675. });
  8676. })(f.rootMatrix, f.renderPoses, A);
  8677. (n = Kr(Na(M, _), 2)), (x = n[0]), (S = n[1]);
  8678. }
  8679. }
  8680. (a.beforeInfo = { origin: E.beforeOrigin }),
  8681. (a.afterInfo = { origin: E.origin }),
  8682. (a.absoluteInfo = { origin: E.origin, startValue: E.rotation });
  8683. var T = C;
  8684. (C = function (e) {
  8685. var n = f.is3d ? 4 : 3,
  8686. r = Kr(Un(zn(w, n), e), 2),
  8687. i = r[0],
  8688. o = r[1],
  8689. s = Xn(b, Pn([i, o], n)),
  8690. l = Xn(k, Pn([e[0], e[1]], n));
  8691. T(e);
  8692. var c = f.posDelta;
  8693. (a.beforeInfo.origin = Fn(s, c)),
  8694. (a.afterInfo.origin = Fn(l, c)),
  8695. (a.absoluteInfo.origin = Fn(l, c)),
  8696. so(t, a.beforeInfo, x, S, A),
  8697. so(t, a.afterInfo, x, S, A),
  8698. so(t, a.absoluteInfo, x, S, A);
  8699. }),
  8700. (B = function (t) {
  8701. var e = Na(
  8702. [
  8703. [0, 0],
  8704. [y, 0],
  8705. [0, I],
  8706. [y, I]
  8707. ],
  8708. t
  8709. );
  8710. C(e);
  8711. });
  8712. }
  8713. (a.startClientX = x),
  8714. (a.startClientY = S),
  8715. (a.direction = m),
  8716. (a.beforeDirection = v),
  8717. (a.startValue = 0),
  8718. (a.datas = {}),
  8719. La(e, 'rotate');
  8720. var z = !1,
  8721. P = !1;
  8722. a.isControl &&
  8723. a.resolveAble &&
  8724. 'resizable' === a.resolveAble &&
  8725. (P = oo.dragControlStart(
  8726. t,
  8727. qr(qr({}, new Da('resizable').dragStart([0, 0], e)), {
  8728. parentPosition: a.controlPosition,
  8729. parentFixedPosition: a.fixedPosition
  8730. })
  8731. )),
  8732. P || (z = no.dragStart(t, new Da().dragStart([0, 0], e))),
  8733. C(
  8734. (function (t) {
  8735. var e = t.props,
  8736. n = e.groupable,
  8737. r = e.svgOrigin,
  8738. a = t.getState(),
  8739. i = a.offsetWidth,
  8740. o = a.offsetHeight,
  8741. s = a.svg,
  8742. l = a.transformOrigin;
  8743. return !n && s && r ? js(r, i, o) : l;
  8744. })(t)
  8745. );
  8746. var Y = ys(
  8747. t,
  8748. e,
  8749. qr(
  8750. qr(
  8751. {
  8752. set: function (t) {
  8753. a.startValue = (t * Math.PI) / 180;
  8754. },
  8755. setFixedDirection: B,
  8756. setFixedPosition: C
  8757. },
  8758. Fa(e)
  8759. ),
  8760. { dragStart: z, resizeStart: P }
  8761. )
  8762. ),
  8763. G = Cs(t, 'onRotateStart', Y);
  8764. return (
  8765. (a.isRotate = !1 !== G),
  8766. (f.snapRenderInfo = { request: e.isRequest }),
  8767. !!a.isRotate && Y
  8768. );
  8769. },
  8770. dragControl: function (t, e) {
  8771. var n,
  8772. r,
  8773. a,
  8774. i = e.datas,
  8775. o = e.clientDistX,
  8776. s = e.clientDistY,
  8777. l = e.parentRotate,
  8778. c = e.parentFlag,
  8779. u = e.isPinch,
  8780. f = e.groupDelta,
  8781. d = e.resolveMatrix,
  8782. p = i.beforeDirection,
  8783. g = i.beforeInfo,
  8784. m = i.afterInfo,
  8785. v = i.absoluteInfo,
  8786. h = i.isRotate,
  8787. A = i.startValue,
  8788. b = i.rect,
  8789. w = i.startClientX,
  8790. k = i.startClientY;
  8791. if (h) {
  8792. Oa(e, 'rotate');
  8793. var y,
  8794. I,
  8795. E,
  8796. C,
  8797. B,
  8798. x,
  8799. S,
  8800. D,
  8801. R,
  8802. Q = (function (t) {
  8803. return Ra(t.datas.beforeTransform, [50, 50], 100, 100)
  8804. .direction;
  8805. })(e),
  8806. _ = p * Q,
  8807. O = t.props.parentMoveable,
  8808. M = (180 / Math.PI) * A,
  8809. T = v.startValue,
  8810. z = !1,
  8811. P = w + o,
  8812. Y = k + s;
  8813. if (!c && 'parentDist' in e) {
  8814. var G = e.parentDist;
  8815. (I = G), (B = G), (D = G);
  8816. } else
  8817. u || c
  8818. ? ((I = lo(l, p, g)), (B = lo(l, _, m)), (D = lo(l, _, v)))
  8819. : ((I = co(P, Y, p, g)),
  8820. (B = co(P, Y, _, m)),
  8821. (D = co(P, Y, _, v)),
  8822. (z = !0));
  8823. if (
  8824. (Cs(
  8825. t,
  8826. 'onBeforeRotate',
  8827. ys(
  8828. t,
  8829. e,
  8830. {
  8831. beforeRotation: (E = M + I),
  8832. rotation: (x = M + B),
  8833. absoluteRotation: (R = T + D),
  8834. setRotation: function (t) {
  8835. (I = B = t - M), (D = B);
  8836. }
  8837. },
  8838. !0
  8839. )
  8840. ),
  8841. (y = (n = Kr(uo(t, b, g, I, M, z), 3))[0]),
  8842. (I = n[1]),
  8843. (E = n[2]),
  8844. (C = (r = Kr(uo(t, b, m, B, M, z), 3))[0]),
  8845. (B = r[1]),
  8846. (x = r[2]),
  8847. (S = (a = Kr(uo(t, b, v, D, T, z), 3))[0]),
  8848. (D = a[1]),
  8849. (R = a[2]),
  8850. S || C || y || O || d)
  8851. ) {
  8852. var N = Ma(
  8853. i,
  8854. 'rotate('.concat(x, 'deg)'),
  8855. 'rotate('.concat(B, 'deg)')
  8856. );
  8857. d &&
  8858. (i.fixedPosition = Za(
  8859. t,
  8860. i.targetAllTransform,
  8861. i.fixedDirection,
  8862. i.fixedOffset,
  8863. i
  8864. ));
  8865. var U = (function (t, e, n) {
  8866. var r = n.fixedDirection,
  8867. a = n.fixedPosition,
  8868. i = n.fixedOffset;
  8869. return Ja(t, 'rotate('.concat(e, 'deg)'), r, a, i, n);
  8870. })(t, B, i),
  8871. F = Fn(Un(f || [0, 0], U), i.prevInverseDist || [0, 0]);
  8872. (i.prevInverseDist = U), (i.requestValue = null);
  8873. var L = Ka(t, N, F, u, e),
  8874. X = L,
  8875. j = de([P, Y], v.startAbsoluteOrigin) - v.startDist,
  8876. W = void 0;
  8877. if ('resizable' === i.resolveAble) {
  8878. var H = oo.dragControl(
  8879. t,
  8880. qr(
  8881. qr(
  8882. {},
  8883. Sa(
  8884. e,
  8885. t.state,
  8886. [e.deltaX, e.deltaY],
  8887. !!u,
  8888. !1,
  8889. 'resizable'
  8890. )
  8891. ),
  8892. { resolveMatrix: !0, parentDistance: j }
  8893. )
  8894. );
  8895. H && ((W = H), (X = ks(X, H, e)));
  8896. }
  8897. var V = ys(
  8898. t,
  8899. e,
  8900. qr(
  8901. qr(
  8902. {
  8903. delta: C,
  8904. dist: B,
  8905. rotate: x,
  8906. rotation: x,
  8907. beforeDist: I,
  8908. beforeDelta: y,
  8909. beforeRotate: E,
  8910. beforeRotation: E,
  8911. absoluteDist: D,
  8912. absoluteDelta: S,
  8913. absoluteRotate: R,
  8914. absoluteRotation: R,
  8915. isPinch: !!u,
  8916. resize: W
  8917. },
  8918. L
  8919. ),
  8920. X
  8921. )
  8922. );
  8923. return Cs(t, 'onRotate', V), V;
  8924. }
  8925. }
  8926. },
  8927. dragControlEnd: function (t, e) {
  8928. var n = e.datas;
  8929. if (n.isRotate) {
  8930. n.isRotate = !1;
  8931. var r = Is(t, e, {});
  8932. return Cs(t, 'onRotateEnd', r), r;
  8933. }
  8934. },
  8935. dragGroupControlCondition: po,
  8936. dragGroupControlStart: function (t, e) {
  8937. var n = e.datas,
  8938. r = t.state,
  8939. a = r.left,
  8940. i = r.top,
  8941. o = r.beforeOrigin,
  8942. s = this.dragControlStart(t, e);
  8943. if (!s) return !1;
  8944. s.set(n.beforeDirection * t.rotation);
  8945. var l = ci(t, this, 'dragControlStart', e, function (t, e) {
  8946. var n = t.state,
  8947. r = n.left,
  8948. s = n.top,
  8949. l = n.beforeOrigin,
  8950. c = Un(Fn([r, s], [a, i]), Fn(l, o));
  8951. return (
  8952. (e.datas.startGroupClient = c),
  8953. (e.datas.groupClient = c),
  8954. qr(qr({}, e), { parentRotate: 0 })
  8955. );
  8956. }),
  8957. c = Cs(
  8958. t,
  8959. 'onRotateGroupStart',
  8960. qr(qr({}, s), { targets: t.props.targets, events: l })
  8961. );
  8962. return (n.isRotate = !1 !== c), !!n.isRotate && s;
  8963. },
  8964. dragGroupControl: function (t, e) {
  8965. var n = e.datas;
  8966. if (n.isRotate) {
  8967. Es(t, 'onBeforeRotate', function (n) {
  8968. Cs(
  8969. t,
  8970. 'onBeforeRotateGroup',
  8971. ys(t, e, qr(qr({}, n), { targets: t.props.targets }), !0)
  8972. );
  8973. });
  8974. var r = this.dragControl(t, e);
  8975. if (r) {
  8976. var a = n.beforeDirection,
  8977. i = r.beforeDist,
  8978. o = (i / 180) * Math.PI,
  8979. s = ci(t, this, 'dragControl', e, function (t, e) {
  8980. var n = e.datas.startGroupClient,
  8981. r = Kr(e.datas.groupClient, 2),
  8982. s = r[0],
  8983. l = r[1],
  8984. c = Kr(qn(n, o * a), 2),
  8985. u = c[0],
  8986. f = c[1],
  8987. d = [u - s, f - l];
  8988. return (
  8989. (e.datas.groupClient = [u, f]),
  8990. qr(qr({}, e), { parentRotate: i, groupDelta: d })
  8991. );
  8992. });
  8993. t.rotation = a * r.beforeRotation;
  8994. var l = qr(
  8995. {
  8996. targets: t.props.targets,
  8997. events: s,
  8998. set: function (e) {
  8999. t.rotation = e;
  9000. },
  9001. setGroupRotation: function (e) {
  9002. t.rotation = e;
  9003. }
  9004. },
  9005. r
  9006. );
  9007. return Cs(t, 'onRotateGroup', l), l;
  9008. }
  9009. }
  9010. },
  9011. dragGroupControlEnd: function (t, e) {
  9012. var n = e.isDrag;
  9013. if (e.datas.isRotate) {
  9014. this.dragControlEnd(t, e);
  9015. var r = ci(t, this, 'dragControlEnd', e);
  9016. return (
  9017. Cs(
  9018. t,
  9019. 'onRotateGroupEnd',
  9020. Is(t, e, { targets: t.props.targets, events: r })
  9021. ),
  9022. n
  9023. );
  9024. }
  9025. },
  9026. request: function (t) {
  9027. var e = {},
  9028. n = 0,
  9029. r = t.getRotation();
  9030. return {
  9031. isControl: !0,
  9032. requestStart: function () {
  9033. return { datas: e };
  9034. },
  9035. request: function (t) {
  9036. return (
  9037. 'deltaRotate' in t
  9038. ? (n += t.deltaRotate)
  9039. : 'rotate' in t && (n = t.rotate - r),
  9040. { datas: e, parentDist: n }
  9041. );
  9042. },
  9043. requestEnd: function () {
  9044. return { datas: e, isDrag: !0 };
  9045. }
  9046. };
  9047. }
  9048. };
  9049. function mo(t, e) {
  9050. return (function (t, e) {
  9051. var n,
  9052. r = t.direction,
  9053. a = t.classNames,
  9054. i = t.size,
  9055. o = t.pos,
  9056. s = t.zoom,
  9057. l = t.key,
  9058. c = 'horizontal' === r,
  9059. u = c ? 'Y' : 'X';
  9060. return e.createElement('div', {
  9061. key: l,
  9062. className: a.join(' '),
  9063. style:
  9064. ((n = {}),
  9065. (n[c ? 'width' : 'height'] = ''.concat(i)),
  9066. (n.transform = 'translate('
  9067. .concat(o[0], ', ')
  9068. .concat(o[1], ') translate')
  9069. .concat(u, '(-50%) scale')
  9070. .concat(u, '(')
  9071. .concat(s, ')')),
  9072. n)
  9073. });
  9074. })(
  9075. qr(qr({}, t), {
  9076. classNames: Zr(
  9077. [Go('line', 'guideline', t.direction)],
  9078. Kr(t.classNames),
  9079. !1
  9080. ).filter(function (t) {
  9081. return t;
  9082. }),
  9083. size: t.size || ''.concat(t.sizeValue, 'px'),
  9084. pos:
  9085. t.pos ||
  9086. t.posValue.map(function (t) {
  9087. return ''.concat(pe(t, 0.1), 'px');
  9088. })
  9089. }),
  9090. e
  9091. );
  9092. }
  9093. function vo(t, e, n, r, a, i, o, s) {
  9094. var l = t.props.zoom;
  9095. return n.map(function (t, n) {
  9096. var c = t.type,
  9097. u = t.pos,
  9098. f = [0, 0];
  9099. return (
  9100. (f[o] = r),
  9101. (f[o ? 0 : 1] = -a + u),
  9102. mo(
  9103. {
  9104. key: ''.concat(e, 'TargetGuideline').concat(n),
  9105. classNames: [Go('target', 'bold', c)],
  9106. posValue: f,
  9107. sizeValue: i,
  9108. zoom: l,
  9109. direction: e
  9110. },
  9111. s
  9112. )
  9113. );
  9114. });
  9115. }
  9116. function ho(t, e, n, r, a, i) {
  9117. var o = t.props,
  9118. s = o.zoom,
  9119. l = o.isDisplayInnerSnapDigit,
  9120. c = 'horizontal' === e ? Ci : Bi,
  9121. u = a[c.start],
  9122. f = a[c.end];
  9123. return n
  9124. .filter(function (t) {
  9125. var e = t.hide,
  9126. n = t.elementRect;
  9127. if (e) return !1;
  9128. if (l && n) {
  9129. var r = n.rect;
  9130. if (r[c.start] <= u && f <= r[c.end]) return !1;
  9131. }
  9132. return !0;
  9133. })
  9134. .map(function (t, n) {
  9135. var a = t.pos,
  9136. o = t.size,
  9137. l = t.element,
  9138. c = t.className,
  9139. u = [-r[0] + a[0], -r[1] + a[1]];
  9140. return mo(
  9141. {
  9142. key: ''.concat(e, '-default-guideline-').concat(n),
  9143. classNames: l ? [Go('bold'), c] : [Go('normal'), c],
  9144. direction: e,
  9145. posValue: u,
  9146. sizeValue: o,
  9147. zoom: s
  9148. },
  9149. i
  9150. );
  9151. });
  9152. }
  9153. function Ao(t, e, n, r, a, i, o, s) {
  9154. var l,
  9155. c = t.props,
  9156. u = c.snapDigit,
  9157. f = void 0 === u ? 0 : u,
  9158. d = c.isDisplaySnapDigit,
  9159. p = void 0 === d || d,
  9160. g = c.snapDistFormat,
  9161. m =
  9162. void 0 === g
  9163. ? function (t, e) {
  9164. return t;
  9165. }
  9166. : g,
  9167. v = c.zoom,
  9168. h = 'horizontal' === e ? 'X' : 'Y',
  9169. A = 'vertical' === e ? 'height' : 'width',
  9170. b = Math.abs(a),
  9171. w = p ? parseFloat(b.toFixed(f)) : 0;
  9172. return s.createElement(
  9173. 'div',
  9174. {
  9175. key: ''.concat(e, '-').concat(n, '-guideline-').concat(r),
  9176. className: Go('guideline-group', e),
  9177. style:
  9178. ((l = {
  9179. left: ''.concat(i[0], 'px'),
  9180. top: ''.concat(i[1], 'px')
  9181. }),
  9182. (l[A] = ''.concat(b, 'px')),
  9183. l)
  9184. },
  9185. mo(
  9186. {
  9187. direction: e,
  9188. classNames: [Go(n), o],
  9189. size: '100%',
  9190. posValue: [0, 0],
  9191. sizeValue: b,
  9192. zoom: v
  9193. },
  9194. s
  9195. ),
  9196. s.createElement(
  9197. 'div',
  9198. {
  9199. className: Go('size-value', 'gap'),
  9200. style: {
  9201. transform: 'translate'
  9202. .concat(h, '(-50%) scale(')
  9203. .concat(v, ')')
  9204. }
  9205. },
  9206. w > 0 ? m(w, e) : ''
  9207. )
  9208. );
  9209. }
  9210. function bo(t, e, n, r, a) {
  9211. var i = t.props.isDisplayInnerSnapDigit,
  9212. o = [];
  9213. return (
  9214. ['vertical', 'horizontal'].forEach(function (s) {
  9215. var l = e.filter(function (t) {
  9216. return t.type === s;
  9217. }),
  9218. c = 'vertical' === s ? 1 : 0,
  9219. u = c ? 0 : 1,
  9220. f = (function (t, e, n, r) {
  9221. var a = 'vertical' === t ? 0 : 1,
  9222. i = 'vertical' === t ? 1 : 0,
  9223. o = a ? Ci : Bi,
  9224. s = n[o.start],
  9225. l = n[o.end];
  9226. return Ds(e, function (t) {
  9227. return t.pos[a];
  9228. }).map(function (e) {
  9229. var n = [],
  9230. c = [];
  9231. return (
  9232. e.forEach(function (e) {
  9233. var u,
  9234. f,
  9235. d = e.element,
  9236. p = e.elementRect.rect;
  9237. if (p[o.end] < s) n.push(e);
  9238. else if (l < p[o.start]) c.push(e);
  9239. else if (p[o.start] <= s && l <= p[o.end] && r) {
  9240. var g = e.pos,
  9241. m = {
  9242. element: d,
  9243. rect: qr(
  9244. qr({}, p),
  9245. ((u = {}), (u[o.end] = p[o.start]), u)
  9246. )
  9247. },
  9248. v = {
  9249. element: d,
  9250. rect: qr(
  9251. qr({}, p),
  9252. ((f = {}), (f[o.start] = p[o.end]), f)
  9253. )
  9254. },
  9255. h = [0, 0],
  9256. A = [0, 0];
  9257. (h[a] = g[a]),
  9258. (h[i] = g[i]),
  9259. (A[a] = g[a]),
  9260. (A[i] = g[i] + e.size),
  9261. n.push({
  9262. type: t,
  9263. pos: h,
  9264. size: 0,
  9265. elementRect: m,
  9266. direction: ''
  9267. }),
  9268. c.push({
  9269. type: t,
  9270. pos: A,
  9271. size: 0,
  9272. elementRect: v,
  9273. direction: ''
  9274. });
  9275. }
  9276. }),
  9277. n.sort(function (t, e) {
  9278. return e.pos[i] - t.pos[i];
  9279. }),
  9280. c.sort(function (t, e) {
  9281. return t.pos[i] - e.pos[i];
  9282. }),
  9283. { total: e, start: n, end: c, inner: [] }
  9284. );
  9285. });
  9286. })(s, l, r, i),
  9287. d = c ? Bi : Ci,
  9288. p = c ? Ci : Bi,
  9289. g = r[d.start],
  9290. m = r[d.end];
  9291. f.forEach(function (e) {
  9292. var i = e.total,
  9293. l = e.start,
  9294. f = e.end,
  9295. v = e.inner,
  9296. h = n[u] + i[0].pos[u] - r[p.start],
  9297. A = r;
  9298. l.forEach(function (e) {
  9299. var r = e.elementRect.rect,
  9300. i = A[d.start] - r[d.end];
  9301. if (i > 0) {
  9302. var l = [0, 0];
  9303. (l[c] = n[c] + A[d.start] - g - i),
  9304. (l[u] = h),
  9305. o.push(
  9306. Ao(t, s, 'dashed', o.length, i, l, e.className, a)
  9307. );
  9308. }
  9309. A = r;
  9310. }),
  9311. (A = r),
  9312. f.forEach(function (e) {
  9313. var r = e.elementRect.rect,
  9314. i = r[d.start] - A[d.end];
  9315. if (i > 0) {
  9316. var l = [0, 0];
  9317. (l[c] = n[c] + A[d.end] - g),
  9318. (l[u] = h),
  9319. o.push(
  9320. Ao(t, s, 'dashed', o.length, i, l, e.className, a)
  9321. );
  9322. }
  9323. A = r;
  9324. }),
  9325. v.forEach(function (e) {
  9326. var r = e.elementRect.rect,
  9327. i = g - r[d.start],
  9328. l = r[d.end] - m,
  9329. f = [0, 0],
  9330. p = [0, 0];
  9331. (f[c] = n[c] - i),
  9332. (f[u] = h),
  9333. (p[c] = n[c] + m - g),
  9334. (p[u] = h),
  9335. o.push(
  9336. Ao(t, s, 'dashed', o.length, i, f, e.className, a)
  9337. ),
  9338. o.push(
  9339. Ao(t, s, 'dashed', o.length, l, p, e.className, a)
  9340. );
  9341. });
  9342. });
  9343. }),
  9344. o
  9345. );
  9346. }
  9347. function wo(t) {
  9348. var e = t.state,
  9349. n = e.containerClientRect,
  9350. r = e.hasFixed,
  9351. a = n.overflow,
  9352. i = n.scrollHeight,
  9353. o = n.scrollWidth,
  9354. s = n.clientHeight,
  9355. l = n.clientWidth,
  9356. c = n.clientLeft,
  9357. u = n.clientTop,
  9358. f = t.props,
  9359. d = f.snapGap,
  9360. p = void 0 === d || d,
  9361. g = f.verticalGuidelines,
  9362. m = f.horizontalGuidelines,
  9363. v = f.snapThreshold,
  9364. h = void 0 === v ? 5 : v,
  9365. A = f.snapGridWidth,
  9366. b = void 0 === A ? 0 : A,
  9367. w = f.snapGridHeight,
  9368. k = void 0 === w ? 0 : w,
  9369. y = f.maxSnapElementGuidelineDistance,
  9370. I = void 0 === y ? 1 / 0 : y,
  9371. E = f.isDisplayGridGuidelines,
  9372. C = ns(hs(t.state)),
  9373. B = C.top,
  9374. x = C.left,
  9375. S = C.bottom,
  9376. D = C.right,
  9377. R = {
  9378. top: B,
  9379. left: x,
  9380. bottom: S,
  9381. right: D,
  9382. center: (x + D) / 2,
  9383. middle: (B + S) / 2
  9384. },
  9385. Q = (function (t) {
  9386. var e = t.state,
  9387. n = t.props.elementGuidelines,
  9388. r = void 0 === n ? [] : n;
  9389. if (!r.length) return (e.elementRects = []), [];
  9390. var a,
  9391. i,
  9392. o = (e.elementRects || []).filter(function (t) {
  9393. return !t.refresh;
  9394. }),
  9395. s = r
  9396. .map(function (t) {
  9397. return Nt(t) && 'element' in t
  9398. ? qr(qr({}, t), { element: Gs(t.element, !0) })
  9399. : { element: Gs(t, !0) };
  9400. })
  9401. .filter(function (t) {
  9402. return t.element;
  9403. }),
  9404. l =
  9405. ((a = o.map(function (t) {
  9406. return t.element;
  9407. })),
  9408. (i = s.map(function (t) {
  9409. return t.element;
  9410. })),
  9411. _e(a, i, cr)),
  9412. c = l.maintained,
  9413. u = l.added,
  9414. f = [];
  9415. c.forEach(function (t) {
  9416. var e = Kr(t, 2),
  9417. n = e[0],
  9418. r = e[1];
  9419. f[r] = o[n];
  9420. }),
  9421. (function (t, e) {
  9422. if (!e.length) return [];
  9423. var n = t.props.groupable,
  9424. r = t.state,
  9425. a = r.containerClientRect,
  9426. i = r.rootMatrix,
  9427. o = r.is3d,
  9428. s = r.offsetDelta,
  9429. l = o ? 4 : 3,
  9430. c = Kr(
  9431. (function (t, e, n) {
  9432. var r = ts(t, [e.clientLeft, e.clientTop], n);
  9433. return [e.left + r[0], e.top + r[1]];
  9434. })(i, a, l),
  9435. 2
  9436. ),
  9437. u = c[0],
  9438. f = c[1],
  9439. d = n ? 0 : s[0],
  9440. p = n ? 0 : s[1];
  9441. return e.map(function (t) {
  9442. var e = t.element.getBoundingClientRect(),
  9443. n = e.left - u - d,
  9444. r = e.top - f - p,
  9445. a = r + e.height,
  9446. o = n + e.width,
  9447. s = Kr(_s(i, [n, r], l), 2),
  9448. c = s[0],
  9449. g = s[1],
  9450. m = Kr(_s(i, [o, a], l), 2),
  9451. v = m[0],
  9452. h = m[1];
  9453. return qr(qr({}, t), {
  9454. rect: {
  9455. left: c,
  9456. right: v,
  9457. top: g,
  9458. bottom: h,
  9459. center: (c + v) / 2,
  9460. middle: (g + h) / 2
  9461. }
  9462. });
  9463. });
  9464. })(
  9465. t,
  9466. u.map(function (t) {
  9467. return s[t];
  9468. })
  9469. ).map(function (t, e) {
  9470. f[u[e]] = t;
  9471. }),
  9472. (e.elementRects = f);
  9473. var d = Si(t.props.elementSnapDirections),
  9474. p = [];
  9475. return (
  9476. f.forEach(function (t) {
  9477. var e = t.element,
  9478. n = t.top,
  9479. r = void 0 === n ? d.top : n,
  9480. a = t.left,
  9481. i = void 0 === a ? d.left : a,
  9482. o = t.right,
  9483. s = void 0 === o ? d.right : o,
  9484. l = t.bottom,
  9485. c = void 0 === l ? d.bottom : l,
  9486. u = t.center,
  9487. f = void 0 === u ? d.center : u,
  9488. g = t.middle,
  9489. m = void 0 === g ? d.middle : g,
  9490. v = t.className,
  9491. h = t.rect,
  9492. A = Di(
  9493. {
  9494. top: r,
  9495. right: s,
  9496. left: i,
  9497. bottom: c,
  9498. center: f,
  9499. middle: m
  9500. },
  9501. h
  9502. ),
  9503. b = A.horizontal,
  9504. w = A.vertical,
  9505. k = h.top,
  9506. y = h.left,
  9507. I = h.right - y,
  9508. E = h.bottom - k,
  9509. C = [I, E];
  9510. w.forEach(function (n) {
  9511. p.push({
  9512. type: 'vertical',
  9513. element: e,
  9514. pos: [pe(n, 0.1), k],
  9515. size: E,
  9516. sizes: C,
  9517. className: v,
  9518. elementRect: t,
  9519. direction: ''
  9520. });
  9521. }),
  9522. b.forEach(function (n) {
  9523. p.push({
  9524. type: 'horizontal',
  9525. element: e,
  9526. pos: [y, pe(n, 0.1)],
  9527. size: I,
  9528. sizes: C,
  9529. className: v,
  9530. elementRect: t,
  9531. direction: ''
  9532. });
  9533. });
  9534. }),
  9535. p
  9536. );
  9537. })(t),
  9538. _ = Zr([], Kr(Q), !1);
  9539. p &&
  9540. _.push.apply(
  9541. _,
  9542. Zr(
  9543. [],
  9544. Kr(
  9545. (function (t, e, n) {
  9546. var r = t.props,
  9547. a = r.maxSnapElementGuidelineDistance,
  9548. i = void 0 === a ? 1 / 0 : a,
  9549. o = r.maxSnapElementGapDistance,
  9550. s = void 0 === o ? 1 / 0 : o,
  9551. l = t.state.elementRects,
  9552. c = [];
  9553. return (
  9554. [
  9555. ['vertical', Ci, Bi],
  9556. ['horizontal', Bi, Ci]
  9557. ].forEach(function (t) {
  9558. var r = Kr(t, 3),
  9559. a = r[0],
  9560. o = r[1],
  9561. u = r[2],
  9562. f = e[o.start],
  9563. d = e[o.end],
  9564. p = e[o.center],
  9565. g = e[u.start],
  9566. m = e[u.end];
  9567. function v(t) {
  9568. var e = t.rect;
  9569. return e[o.end] < f + n
  9570. ? f - e[o.end]
  9571. : d - n < e[o.start]
  9572. ? e[o.start] - d
  9573. : -1;
  9574. }
  9575. var h = l
  9576. .filter(function (t) {
  9577. var e = t.rect;
  9578. return (
  9579. !(e[u.start] > m || e[u.end] < g) && v(t) > 0
  9580. );
  9581. })
  9582. .sort(function (t, e) {
  9583. return v(t) - v(e);
  9584. }),
  9585. A = [];
  9586. h.forEach(function (t) {
  9587. h.forEach(function (e) {
  9588. if (t !== e) {
  9589. var n = t.rect,
  9590. r = e.rect,
  9591. a = n[u.start],
  9592. i = n[u.end],
  9593. o = r[u.start];
  9594. a > r[u.end] || o > i || A.push([t, e]);
  9595. }
  9596. });
  9597. }),
  9598. A.forEach(function (t) {
  9599. var r = Kr(t, 2),
  9600. l = r[0],
  9601. u = r[1],
  9602. g = l.rect,
  9603. m = u.rect,
  9604. v = g[o.start],
  9605. h = g[o.end],
  9606. A = m[o.start],
  9607. b = m[o.end],
  9608. w = 0,
  9609. k = 0,
  9610. y = !1,
  9611. I = !1,
  9612. E = !1;
  9613. if (h <= f && d <= A) {
  9614. if (
  9615. ((I = !0),
  9616. qs(
  9617. (k =
  9618. h +
  9619. (w = (A - h - (d - f)) / 2) +
  9620. (d - f) / 2) - p
  9621. ) > n)
  9622. )
  9623. return;
  9624. } else if (h < A && b < f + n) {
  9625. if (((y = !0), qs((k = b + (w = A - h)) - f) > n))
  9626. return;
  9627. } else {
  9628. if (!(h < A && d - n < v)) return;
  9629. if (((E = !0), qs((k = v - (w = A - h)) - d) > n))
  9630. return;
  9631. }
  9632. w &&
  9633. ko(e, m, a, i) &&
  9634. (w > s ||
  9635. c.push({
  9636. type: a,
  9637. pos: 'vertical' === a ? [k, 0] : [0, k],
  9638. element: u.element,
  9639. size: 0,
  9640. className: u.className,
  9641. isStart: y,
  9642. isCenter: I,
  9643. isEnd: E,
  9644. gap: w,
  9645. hide: !0,
  9646. gapRects: [l, u],
  9647. direction: ''
  9648. }));
  9649. });
  9650. }),
  9651. c
  9652. );
  9653. })(t, R, h)
  9654. ),
  9655. !1
  9656. )
  9657. );
  9658. var O = qr(
  9659. {},
  9660. e.snapOffset || { left: 0, top: 0, bottom: 0, right: 0 }
  9661. );
  9662. if (
  9663. (_.push.apply(
  9664. _,
  9665. Zr(
  9666. [],
  9667. Kr(
  9668. (function (t, e, n, r, a, i, o, s) {
  9669. void 0 === a && (a = 0), void 0 === i && (i = 0);
  9670. var l = [],
  9671. c = o.left,
  9672. u = o.top;
  9673. if (e)
  9674. for (var f = 0; f <= r; f += e)
  9675. l.push({
  9676. type: 'horizontal',
  9677. pos: [c, pe(f - i + u, 0.1)],
  9678. className: Go('grid-guideline'),
  9679. size: n,
  9680. hide: !s,
  9681. direction: ''
  9682. });
  9683. if (t)
  9684. for (f = 0; f <= n; f += t)
  9685. l.push({
  9686. type: 'vertical',
  9687. pos: [pe(f - a + c, 0.1), u],
  9688. className: Go('grid-guideline'),
  9689. size: r,
  9690. hide: !s,
  9691. direction: ''
  9692. });
  9693. return l;
  9694. })(b, k, a ? o : l, a ? i : s, c, u, O, E)
  9695. ),
  9696. !1
  9697. )
  9698. ),
  9699. r)
  9700. ) {
  9701. var M = n.left,
  9702. T = n.top;
  9703. (O.left += M), (O.top += T), (O.right += M), (O.bottom += T);
  9704. }
  9705. return (
  9706. _.push.apply(
  9707. _,
  9708. Zr(
  9709. [],
  9710. Kr(Io(m || !1, g || !1, a ? o : l, a ? i : s, c, u, O)),
  9711. !1
  9712. )
  9713. ),
  9714. (_ = _.filter(function (t) {
  9715. var e = t.element,
  9716. n = t.elementRect,
  9717. r = t.type;
  9718. if (!e || !n) return !0;
  9719. var a = n.rect;
  9720. return ko(R, a, r, I);
  9721. })),
  9722. _
  9723. );
  9724. }
  9725. function ko(t, e, n, r) {
  9726. return 'horizontal' === n
  9727. ? qs(t.right - e.left) <= r ||
  9728. qs(t.left - e.right) <= r ||
  9729. (t.left <= e.right && e.left <= t.right)
  9730. : 'vertical' !== n ||
  9731. qs(t.bottom - e.top) <= r ||
  9732. qs(t.top - e.bottom) <= r ||
  9733. (t.top <= e.bottom && e.top <= t.bottom);
  9734. }
  9735. function yo(t, e) {
  9736. return t
  9737. ? t.map(function (t) {
  9738. var n = Nt(t) ? t : { pos: t },
  9739. r = n.pos;
  9740. return Lt(r) ? n : qr(qr({}, n), { pos: ie(r, e) });
  9741. })
  9742. : [];
  9743. }
  9744. function Io(t, e, n, r, a, i, o) {
  9745. void 0 === a && (a = 0),
  9746. void 0 === i && (i = 0),
  9747. void 0 === o && (o = { left: 0, top: 0, right: 0, bottom: 0 });
  9748. var s = [],
  9749. l = o.left,
  9750. c = o.top,
  9751. u = o.bottom,
  9752. f = n + o.right - l,
  9753. d = r + u - c;
  9754. return (
  9755. yo(t, d).forEach(function (t) {
  9756. s.push({
  9757. type: 'horizontal',
  9758. pos: [l, pe(t.pos - i + c, 0.1)],
  9759. size: f,
  9760. className: t.className,
  9761. direction: ''
  9762. });
  9763. }),
  9764. yo(e, f).forEach(function (t) {
  9765. s.push({
  9766. type: 'vertical',
  9767. pos: [pe(t.pos - a + l, 0.1), c],
  9768. size: d,
  9769. className: t.className,
  9770. direction: ''
  9771. });
  9772. }),
  9773. s
  9774. );
  9775. }
  9776. function Eo(t) {
  9777. var e = t.state,
  9778. n = e.container,
  9779. r = t.props.snapContainer || n;
  9780. if (e.snapContainer === r && e.guidelines && e.guidelines.length)
  9781. return !1;
  9782. var a = e.containerClientRect,
  9783. i = { left: 0, top: 0, bottom: 0, right: 0 };
  9784. if (n !== r) {
  9785. var o = Gs(r, !0);
  9786. if (o) {
  9787. var s = ps(o),
  9788. l = Us(e, [s.left - a.left, s.top - a.top]),
  9789. c = Us(e, [s.right - a.right, s.bottom - a.bottom]);
  9790. (i.left = pe(l[0], 1e-5)),
  9791. (i.top = pe(l[1], 1e-5)),
  9792. (i.right = pe(c[0], 1e-5)),
  9793. (i.bottom = pe(c[1], 1e-5));
  9794. }
  9795. }
  9796. return (
  9797. (e.snapContainer = r),
  9798. (e.snapOffset = i),
  9799. (e.guidelines = wo(t)),
  9800. (e.enableSnap = !0),
  9801. !0
  9802. );
  9803. }
  9804. function Co(t, e, n, r, a, i) {
  9805. var o = es(t, e, n, i ? 4 : 3);
  9806. return vs(o, Fn(a, Na(o, r)));
  9807. }
  9808. function Bo(t) {
  9809. return t ? t / qs(t) : 0;
  9810. }
  9811. function xo(t, e, n, r, a, i) {
  9812. var o = (function (t, e, n) {
  9813. var r = [];
  9814. if (n)
  9815. 1 !== qs(e[0]) || 1 !== qs(e[1])
  9816. ? r.push(
  9817. [e, [-1, -1]],
  9818. [e, [-1, 1]],
  9819. [e, [1, -1]],
  9820. [e, [1, 1]]
  9821. )
  9822. : r.push([e, [t[0], -t[1]]], [e, [-t[0], t[1]]]),
  9823. r.push([e, t]);
  9824. else if ((t[0] && t[1]) || (!t[0] && !t[1])) {
  9825. var a = t[0] ? t : [1, 1];
  9826. [1, -1].forEach(function (t) {
  9827. [1, -1].forEach(function (n) {
  9828. var i = [t * a[0], n * a[1]];
  9829. (e[0] === i[0] && e[1] === i[1]) || r.push([e, i]);
  9830. });
  9831. });
  9832. } else
  9833. t[0]
  9834. ? (1 === qs(e[0]) ? [1] : [1, -1]).forEach(function (n) {
  9835. r.push(
  9836. [
  9837. [e[0], -1],
  9838. [n * t[0], -1]
  9839. ],
  9840. [
  9841. [e[0], 0],
  9842. [n * t[0], 0]
  9843. ],
  9844. [
  9845. [e[0], 1],
  9846. [n * t[0], 1]
  9847. ]
  9848. );
  9849. })
  9850. : t[1] &&
  9851. (1 === qs(e[1]) ? [1] : [1, -1]).forEach(function (n) {
  9852. r.push(
  9853. [
  9854. [-1, e[1]],
  9855. [-1, n * t[1]]
  9856. ],
  9857. [
  9858. [0, e[1]],
  9859. [0, n * t[1]]
  9860. ],
  9861. [
  9862. [1, e[1]],
  9863. [1, n * t[1]]
  9864. ]
  9865. );
  9866. });
  9867. return r;
  9868. })(n, i.fixedDirection, r),
  9869. s = Wi(t, e, n, r),
  9870. l = Zr(Zr([], Kr(to(t, e, o, r, a, i)), !1), Kr(Xi(t, s, i)), !1),
  9871. c = Yi(l, 0),
  9872. u = Yi(l, 1);
  9873. return {
  9874. width: { isBound: c.isBound, offset: c.offset[0] },
  9875. height: { isBound: u.isBound, offset: u.offset[1] }
  9876. };
  9877. }
  9878. function So(t, e, n, r, a, i, o, s) {
  9879. for (
  9880. var l = hs(t.state), c = t.props.keepRatio, u = 0, f = 0, d = 0;
  9881. d < 2;
  9882. ++d
  9883. ) {
  9884. var p = xo(t, e(u, f), a, c, o, s),
  9885. g = p.width,
  9886. m = p.height,
  9887. v = g.isBound,
  9888. h = m.isBound,
  9889. A = g.offset,
  9890. b = m.offset;
  9891. if (
  9892. (1 === d && (v || (A = 0), h || (b = 0)),
  9893. 0 === d && o && !v && !h)
  9894. )
  9895. return [0, 0];
  9896. if (c) {
  9897. var w = qs(A) * (n ? 1 / n : 1),
  9898. k = qs(b) * (r ? 1 / r : 1);
  9899. (v && h ? w < k : h || (!v && w < k))
  9900. ? (A = (n * b) / r)
  9901. : (b = (r * A) / n);
  9902. }
  9903. (u += A), (f += b);
  9904. }
  9905. if (a[0] && a[1]) {
  9906. var y = (function (t, e, n, r, a) {
  9907. var i = [-n[0], -n[1]],
  9908. o = t.state,
  9909. s = o.width,
  9910. l = o.height,
  9911. c = t.props.bounds,
  9912. u = 1 / 0,
  9913. f = 1 / 0;
  9914. if (c) {
  9915. var d = [
  9916. [n[0], -n[1]],
  9917. [-n[0], n[1]]
  9918. ],
  9919. p = c.left,
  9920. g = void 0 === p ? -1 / 0 : p,
  9921. m = c.top,
  9922. v = void 0 === m ? -1 / 0 : m,
  9923. h = c.right,
  9924. A = void 0 === h ? 1 / 0 : h,
  9925. b = c.bottom,
  9926. w = void 0 === b ? 1 / 0 : b;
  9927. d.forEach(function (t) {
  9928. var n = t[0] !== i[0],
  9929. o = t[1] !== i[1],
  9930. c = Na(e, t),
  9931. d = (360 * ue(r, c)) / Math.PI;
  9932. if (o) {
  9933. var p = c.slice();
  9934. (qs(d - 360) < 2 || qs(d - 180) < 2) && (p[1] = r[1]);
  9935. var m = qi(r, p, (r[1] < c[1] ? w : v) - c[1], !1, a),
  9936. h = Kr(m.offset, 2)[1],
  9937. b = m.isOutside;
  9938. isNaN(h) || (f = l + (b ? 1 : -1) * qs(h));
  9939. }
  9940. if (n) {
  9941. (p = c.slice()),
  9942. (qs(d - 90) < 2 || qs(d - 270) < 2) && (p[0] = r[0]);
  9943. var k = qi(r, p, (r[0] < c[0] ? A : g) - c[0], !0, a),
  9944. y = Kr(k.offset, 1)[0],
  9945. I = k.isOutside;
  9946. isNaN(y) || (u = s + (I ? 1 : -1) * qs(y));
  9947. }
  9948. });
  9949. }
  9950. return { maxWidth: u, maxHeight: f };
  9951. })(t, l, a, i, s),
  9952. I = y.maxWidth,
  9953. E = y.maxHeight,
  9954. C = Kr(
  9955. (function (t, e, n, r, a, i, o, s, l) {
  9956. var c = Na(e, o),
  9957. u = Ji(t, s, { vertical: [c[0]], horizontal: [c[1]] }),
  9958. f = u.horizontal.offset,
  9959. d = u.vertical.offset;
  9960. if (pe(d, ba) || pe(f, ba)) {
  9961. var p = Kr(Ya({ datas: l, distX: -d, distY: -f }), 2),
  9962. g = p[0],
  9963. m = p[1];
  9964. return [
  9965. Math.min(a || 1 / 0, n + o[0] * g) - n,
  9966. Math.min(i || 1 / 0, r + o[1] * m) - r
  9967. ];
  9968. }
  9969. return [0, 0];
  9970. })(
  9971. t,
  9972. e(u, f).map(function (t) {
  9973. return t.map(function (t) {
  9974. return pe(t, ba);
  9975. });
  9976. }),
  9977. n + u,
  9978. r + f,
  9979. I,
  9980. E,
  9981. a,
  9982. o,
  9983. s
  9984. ),
  9985. 2
  9986. );
  9987. (u += A = C[0]), (f += b = C[1]);
  9988. }
  9989. return [u, f];
  9990. }
  9991. function Do(t) {
  9992. return t < 0 && (t = (t % 360) + 360), (t %= 360);
  9993. }
  9994. function Ro(t, e) {
  9995. e = Do(e);
  9996. var n = Math.floor(t / 360),
  9997. r = 360 * n + 360 - e,
  9998. a = 360 * n + e;
  9999. return qs(t - r) < qs(t - a) ? r : a;
  10000. }
  10001. function Qo(t, e) {
  10002. (t = Do(t)), (e = Do(e));
  10003. var n = Do(t - e);
  10004. return Math.min(n, 360 - n);
  10005. }
  10006. function _o(t, e, n, r, a) {
  10007. if (!xi(t, 'scalable')) return [0, 0];
  10008. var i = a.startOffsetWidth,
  10009. o = a.startOffsetHeight,
  10010. s = a.fixedPosition,
  10011. l = a.fixedDirection,
  10012. c = a.is3d,
  10013. u = So(
  10014. t,
  10015. function (t, n) {
  10016. return Co(
  10017. (function (t, e) {
  10018. var n = t.transformOrigin,
  10019. r = t.offsetMatrix,
  10020. a = t.is3d,
  10021. i = t.targetMatrix,
  10022. o = a ? 4 : 3;
  10023. return Ua(
  10024. r,
  10025. Nn(t.targetAllTransform || i, tr(e, o), o),
  10026. n,
  10027. o
  10028. );
  10029. })(a, Un(e, [t / i, n / o])),
  10030. i,
  10031. o,
  10032. l,
  10033. s,
  10034. c
  10035. );
  10036. },
  10037. i,
  10038. o,
  10039. n,
  10040. s,
  10041. r,
  10042. a
  10043. );
  10044. return [u[0] / i, u[1] / o];
  10045. }
  10046. function Oo(t) {
  10047. var e = [];
  10048. return (
  10049. t.forEach(function (t) {
  10050. t.guidelineInfos.forEach(function (n) {
  10051. var r = n.guideline;
  10052. ee(e, function (t) {
  10053. return t.guideline === r;
  10054. }) ||
  10055. ((r.direction = ''), e.push({ guideline: r, posInfo: t }));
  10056. });
  10057. }),
  10058. e.map(function (t) {
  10059. var e = t.guideline,
  10060. n = t.posInfo;
  10061. return qr(qr({}, e), { direction: n.direction });
  10062. })
  10063. );
  10064. }
  10065. function Mo(t, e, n, r, a, i) {
  10066. var o = Ai(bi(t, i), e, n),
  10067. s = o.vertical,
  10068. l = o.horizontal;
  10069. s.forEach(function (t) {
  10070. t.isBound && r.push({ type: 'bounds', pos: t.pos });
  10071. }),
  10072. l.forEach(function (t) {
  10073. t.isBound && a.push({ type: 'bounds', pos: t.pos });
  10074. });
  10075. var c = (function (t) {
  10076. var e = t.props.innerBounds;
  10077. if (!e) return { vertical: [], horizontal: [] };
  10078. var n = t.getRect(),
  10079. r = [n.pos1, n.pos2, n.pos3, n.pos4],
  10080. a = Na(r, [0, 0]),
  10081. i = e.left,
  10082. o = e.top,
  10083. s = e.width,
  10084. l = e.height,
  10085. c = [
  10086. [i, o],
  10087. [i, o + l]
  10088. ],
  10089. u = [
  10090. [i, o],
  10091. [i + s, o]
  10092. ],
  10093. f = [
  10094. [i + s, o],
  10095. [i + s, o + l]
  10096. ],
  10097. d = [
  10098. [i, o + l],
  10099. [i + s, o + l]
  10100. ],
  10101. p = Wi(t, r, [0, 0], !1),
  10102. g = [],
  10103. m = [],
  10104. v = { top: !1, bottom: !1, left: !1, right: !1 };
  10105. return (
  10106. p.forEach(function (t) {
  10107. var e = t.line,
  10108. n = t.lineConstants,
  10109. r = Gi(a, e),
  10110. p = r.horizontal,
  10111. h = r.vertical,
  10112. A = Li(e, n, u, h, 1, !0),
  10113. b = Li(e, n, d, h, 1, !0),
  10114. w = Li(e, n, c, p, 1, !0),
  10115. k = Li(e, n, f, p, 1, !0);
  10116. A.isBound && !v.top && (g.push(o), (v.top = !0)),
  10117. b.isBound && !v.bottom && (g.push(o + l), (v.bottom = !0)),
  10118. w.isBound && !v.left && (m.push(i), (v.left = !0)),
  10119. k.isBound && !v.right && (m.push(i + s), (v.right = !0));
  10120. }),
  10121. { horizontal: g, vertical: m }
  10122. );
  10123. })(t),
  10124. u = c.vertical,
  10125. f = c.horizontal;
  10126. u.forEach(function (t) {
  10127. te(r, function (e) {
  10128. var n = e.type,
  10129. r = e.pos;
  10130. return 'bounds' === n && r === t;
  10131. }) >= 0 || r.push({ type: 'bounds', pos: t });
  10132. }),
  10133. f.forEach(function (t) {
  10134. te(a, function (e) {
  10135. var n = e.type,
  10136. r = e.pos;
  10137. return 'bounds' === n && r === t;
  10138. }) >= 0 || a.push({ type: 'bounds', pos: t });
  10139. });
  10140. }
  10141. var To = Ys('', ['resizable', 'scalable']),
  10142. zo = 'snapRotationThreshold',
  10143. Po = 'snapRotationDegrees',
  10144. Yo = {
  10145. name: 'snappable',
  10146. dragRelation: 'strong',
  10147. props: [
  10148. 'snappable',
  10149. 'snapContainer',
  10150. 'snapDirections',
  10151. 'elementSnapDirections',
  10152. 'snapGap',
  10153. 'snapGridWidth',
  10154. 'snapGridHeight',
  10155. 'isDisplaySnapDigit',
  10156. 'isDisplayInnerSnapDigit',
  10157. 'isDisplayGridGuidelines',
  10158. 'snapDigit',
  10159. 'snapThreshold',
  10160. 'snapRenderThreshold',
  10161. zo,
  10162. Po,
  10163. 'horizontalGuidelines',
  10164. 'verticalGuidelines',
  10165. 'elementGuidelines',
  10166. 'bounds',
  10167. 'innerBounds',
  10168. 'snapDistFormat',
  10169. 'maxSnapElementGuidelineDistance',
  10170. 'maxSnapElementGapDistance'
  10171. ],
  10172. events: ['snap'],
  10173. css: [
  10174. ':host {\n--bounds-color: #d66;\n}\n.guideline {\npointer-events: none;\nz-index: 2;\n}\n.guideline.bounds {\nbackground: #d66;\nbackground: var(--bounds-color);\n}\n.guideline-group {\nposition: absolute;\ntop: 0;\nleft: 0;\n}\n.guideline-group .size-value {\nposition: absolute;\ncolor: #f55;\nfont-size: 12px;\nfont-size: calc(12px * var(--zoom));\nfont-weight: bold;\n}\n.guideline-group.horizontal .size-value {\ntransform-origin: 50% 100%;\ntransform: translateX(-50%);\nleft: 50%;\nbottom: 5px;\nbottom: calc(2px + 3px * var(--zoom));\n}\n.guideline-group.vertical .size-value {\ntransform-origin: 0% 50%;\ntop: 50%;\ntransform: translateY(-50%);\nleft: 5px;\nleft: calc(2px + 3px * var(--zoom));\n}\n.guideline.gap {\nbackground: #f55;\n}\n.size-value.gap {\ncolor: #f55;\n}\n'
  10175. ],
  10176. render: function (t, e) {
  10177. var n = t.state,
  10178. r = n.top,
  10179. a = n.left,
  10180. i = n.pos1,
  10181. o = n.pos2,
  10182. s = n.pos3,
  10183. l = n.pos4,
  10184. c = n.snapRenderInfo,
  10185. u = t.props.snapRenderThreshold,
  10186. f = void 0 === u ? 1 : u;
  10187. if (!c || !c.render || !xi(t, '')) return [];
  10188. n.guidelines = wo(t);
  10189. var d = Math.min(i[0], o[0], s[0], l[0]),
  10190. p = Math.min(i[1], o[1], s[1], l[1]),
  10191. g = c.externalPoses || [],
  10192. m = hs(t.state),
  10193. v = [],
  10194. h = [],
  10195. A = [],
  10196. b = [],
  10197. w = [],
  10198. k = ns(m),
  10199. y = k.width,
  10200. I = k.height,
  10201. E = k.top,
  10202. C = k.left,
  10203. B = k.bottom,
  10204. x = k.right,
  10205. S = {
  10206. left: C,
  10207. right: x,
  10208. top: E,
  10209. bottom: B,
  10210. center: (C + x) / 2,
  10211. middle: (E + B) / 2
  10212. },
  10213. D = g.length > 0,
  10214. R = D ? ns(g) : {};
  10215. if (!c.request) {
  10216. if ((c.direction && w.push(zi(t, m, c.direction, f)), c.snap)) {
  10217. var Q = ns(m);
  10218. c.center &&
  10219. ((Q.middle = (Q.top + Q.bottom) / 2),
  10220. (Q.center = (Q.left + Q.right) / 2)),
  10221. w.push(Oi(t, Q, f));
  10222. }
  10223. D &&
  10224. (c.center &&
  10225. ((R.middle = (R.top + R.bottom) / 2),
  10226. (R.center = (R.left + R.right) / 2)),
  10227. w.push(Oi(t, R, f))),
  10228. w.forEach(function (t) {
  10229. var e = t.vertical.posInfos,
  10230. n = t.horizontal.posInfos;
  10231. v.push.apply(
  10232. v,
  10233. Zr(
  10234. [],
  10235. Kr(
  10236. e
  10237. .filter(function (t) {
  10238. return t.guidelineInfos.some(function (t) {
  10239. return !t.guideline.hide;
  10240. });
  10241. })
  10242. .map(function (t) {
  10243. return { type: 'snap', pos: t.pos };
  10244. })
  10245. ),
  10246. !1
  10247. )
  10248. ),
  10249. h.push.apply(
  10250. h,
  10251. Zr(
  10252. [],
  10253. Kr(
  10254. n
  10255. .filter(function (t) {
  10256. return t.guidelineInfos.some(function (t) {
  10257. return !t.guideline.hide;
  10258. });
  10259. })
  10260. .map(function (t) {
  10261. return { type: 'snap', pos: t.pos };
  10262. })
  10263. ),
  10264. !1
  10265. )
  10266. ),
  10267. A.push.apply(A, Zr([], Kr(Oo(e)), !1)),
  10268. b.push.apply(b, Zr([], Kr(Oo(n)), !1));
  10269. });
  10270. }
  10271. Mo(t, [C, x], [E, B], v, h),
  10272. D &&
  10273. Mo(
  10274. t,
  10275. [R.left, R.right],
  10276. [R.top, R.bottom],
  10277. v,
  10278. h,
  10279. c.externalBounds
  10280. );
  10281. var _ = Zr(Zr([], Kr(A), !1), Kr(b), !1),
  10282. O = _.filter(function (t) {
  10283. return t.element && !t.gapRects;
  10284. }),
  10285. M = _.filter(function (t) {
  10286. return t.gapRects;
  10287. }).sort(function (t, e) {
  10288. return t.gap - e.gap;
  10289. });
  10290. return (
  10291. Cs(
  10292. t,
  10293. 'onSnap',
  10294. {
  10295. guidelines: _.filter(function (t) {
  10296. return !t.element;
  10297. }),
  10298. elements: O,
  10299. gaps: M
  10300. },
  10301. !0
  10302. ),
  10303. Zr(
  10304. Zr(
  10305. Zr(
  10306. Zr(
  10307. Zr(
  10308. Zr([], Kr(bo(t, O, [d, p], S, e)), !1),
  10309. Kr(
  10310. (function (t, e, n, r, a) {
  10311. var i = [];
  10312. return (
  10313. ['horizontal', 'vertical'].forEach(function (
  10314. o
  10315. ) {
  10316. var s = e
  10317. .filter(function (t) {
  10318. return t.type === o;
  10319. })
  10320. .slice(0, 1),
  10321. l = 'vertical' === o ? 0 : 1,
  10322. c = l ? 0 : 1,
  10323. u = l ? Bi : Ci,
  10324. f = l ? Ci : Bi,
  10325. d = r[u.start],
  10326. p = r[u.end],
  10327. g = r[f.start],
  10328. m = r[f.end];
  10329. s.forEach(function (e) {
  10330. var r = e.gap,
  10331. o = e.gapRects,
  10332. s = Math.max.apply(
  10333. Math,
  10334. Zr(
  10335. [g],
  10336. Kr(
  10337. o.map(function (t) {
  10338. return t.rect[f.start];
  10339. })
  10340. ),
  10341. !1
  10342. )
  10343. ),
  10344. v = Math.min.apply(
  10345. Math,
  10346. Zr(
  10347. [m],
  10348. Kr(
  10349. o.map(function (t) {
  10350. return t.rect[f.end];
  10351. })
  10352. ),
  10353. !1
  10354. )
  10355. ),
  10356. h = (s + v) / 2;
  10357. s !== v &&
  10358. h !== (g + m) / 2 &&
  10359. o.forEach(function (e) {
  10360. var o = e.rect,
  10361. s = e.className,
  10362. f = [n[0], n[1]];
  10363. if (o[u.end] < d) f[l] += o[u.end] - d;
  10364. else {
  10365. if (!(p < o[u.start])) return;
  10366. f[l] += o[u.start] - d - r;
  10367. }
  10368. (f[c] += h - g),
  10369. i.push(
  10370. Ao(
  10371. t,
  10372. l ? 'vertical' : 'horizontal',
  10373. 'gap',
  10374. i.length,
  10375. r,
  10376. f,
  10377. s,
  10378. a
  10379. )
  10380. );
  10381. });
  10382. });
  10383. }),
  10384. i
  10385. );
  10386. })(t, M, [d, p], S, e)
  10387. ),
  10388. !1
  10389. ),
  10390. Kr(ho(t, 'horizontal', b, [a, r], S, e)),
  10391. !1
  10392. ),
  10393. Kr(ho(t, 'vertical', A, [a, r], S, e)),
  10394. !1
  10395. ),
  10396. Kr(vo(t, 'horizontal', h, d, r, y, 0, e)),
  10397. !1
  10398. ),
  10399. Kr(vo(t, 'vertical', v, p, a, I, 1, e)),
  10400. !1
  10401. )
  10402. );
  10403. },
  10404. dragStart: function (t, e) {
  10405. (t.state.snapRenderInfo = {
  10406. request: e.isRequest,
  10407. snap: !0,
  10408. center: !0
  10409. }),
  10410. Eo(t);
  10411. },
  10412. drag: function (t) {
  10413. var e = t.state;
  10414. Eo(t) || (e.guidelines = wo(t)),
  10415. e.snapRenderInfo && (e.snapRenderInfo.render = !0);
  10416. },
  10417. pinchStart: function (t) {
  10418. this.unset(t);
  10419. },
  10420. dragEnd: function (t) {
  10421. this.unset(t);
  10422. },
  10423. dragControlCondition: function (t, e) {
  10424. return (
  10425. !(!To(t, e) && !po(t, e)) ||
  10426. (!e.isRequest && e.inputEvent
  10427. ? ve(e.inputEvent.target, Go('snap-control'))
  10428. : void 0)
  10429. );
  10430. },
  10431. dragControlStart: function (t) {
  10432. (t.state.snapRenderInfo = null), Eo(t);
  10433. },
  10434. dragControl: function (t) {
  10435. this.drag(t);
  10436. },
  10437. dragControlEnd: function (t) {
  10438. this.unset(t);
  10439. },
  10440. dragGroupStart: function (t, e) {
  10441. this.dragStart(t, e);
  10442. },
  10443. dragGroup: function (t) {
  10444. this.drag(t);
  10445. },
  10446. dragGroupEnd: function (t) {
  10447. this.unset(t);
  10448. },
  10449. dragGroupControlStart: function (t) {
  10450. (t.state.snapRenderInfo = null), Eo(t);
  10451. },
  10452. dragGroupControl: function (t) {
  10453. this.drag(t);
  10454. },
  10455. dragGroupControlEnd: function (t) {
  10456. this.unset(t);
  10457. },
  10458. unset: function (t) {
  10459. var e = t.state;
  10460. (e.enableSnap = !1),
  10461. (e.guidelines = []),
  10462. (e.snapRenderInfo = null),
  10463. (e.elementRects = []);
  10464. }
  10465. };
  10466. function Go() {
  10467. for (var t = [], e = 0; e < arguments.length; e++)
  10468. t[e] = arguments[e];
  10469. return Et.apply(void 0, Zr([ma], Kr(t), !1));
  10470. }
  10471. function No(t) {
  10472. t();
  10473. }
  10474. function Uo(t) {
  10475. return t && 'none' !== t ? (Nt(t) ? t : ar(t)) : [1, 0, 0, 1, 0, 0];
  10476. }
  10477. function Fo(t, e, n) {
  10478. return Gn(
  10479. e,
  10480. er(n, e),
  10481. t,
  10482. er(
  10483. n.map(function (t) {
  10484. return -t;
  10485. }),
  10486. e
  10487. )
  10488. );
  10489. }
  10490. function Lo(t) {
  10491. return Xo(Bs(t, ':before').transformOrigin).map(function (e, n) {
  10492. var r = Zt(e),
  10493. a = r.value,
  10494. i = r.unit;
  10495. return (
  10496. a *
  10497. (function (t, e, n) {
  10498. return '%' === e
  10499. ? Jo(t.ownerSVGElement)[n ? 'width' : 'height'] / 100
  10500. : 1;
  10501. })(t, i, 0 === n)
  10502. );
  10503. });
  10504. }
  10505. function Xo(t) {
  10506. return t ? t.split(' ') : ['0', '0'];
  10507. }
  10508. function jo(t) {
  10509. var e = oi(t)('transform');
  10510. if (e && 'none' !== e) return e;
  10511. if ('transform' in t) {
  10512. var n = t.transform.baseVal;
  10513. if (!n) return '';
  10514. var r = n.length;
  10515. if (!r) return '';
  10516. for (
  10517. var a = [],
  10518. i = function (t) {
  10519. var e = n[t].matrix;
  10520. a.push(
  10521. 'matrix('.concat(
  10522. ['a', 'b', 'c', 'd', 'e', 'f']
  10523. .map(function (t) {
  10524. return e[t];
  10525. })
  10526. .join(', '),
  10527. ')'
  10528. )
  10529. );
  10530. },
  10531. o = 0;
  10532. o < r;
  10533. ++o
  10534. )
  10535. i(o);
  10536. return a.join(' ');
  10537. }
  10538. return '';
  10539. }
  10540. function Wo(t, e, n, r, a) {
  10541. var i,
  10542. o,
  10543. s,
  10544. l,
  10545. c = ye(t) || Ie(t),
  10546. u = !1;
  10547. if (!t || n) s = t;
  10548. else {
  10549. var f =
  10550. null === (i = null == t ? void 0 : t.assignedSlot) ||
  10551. void 0 === i
  10552. ? void 0
  10553. : i.parentElement,
  10554. d = t.parentElement;
  10555. f ? ((u = !0), (l = d), (s = f)) : (s = d);
  10556. }
  10557. for (
  10558. var p = !1,
  10559. g = t === e || s === e,
  10560. m = 'relative',
  10561. v = 1,
  10562. h = parseFloat(null == a ? void 0 : a('zoom')) || 1,
  10563. A = null == a ? void 0 : a('position');
  10564. s && s !== c;
  10565. ) {
  10566. e === s && (g = !0);
  10567. var b = oi(s),
  10568. w = s.tagName.toLowerCase(),
  10569. k = jo(s),
  10570. y = b('willChange'),
  10571. I = parseFloat(b('zoom')) || 1;
  10572. if (((m = b('position')), r && 1 !== I)) {
  10573. v = I;
  10574. break;
  10575. }
  10576. if (
  10577. (!n && r && 1 !== h && A && 'absolute' !== A) ||
  10578. 'svg' === w ||
  10579. 'static' !== m ||
  10580. (k && 'none' !== k) ||
  10581. 'transform' === y
  10582. )
  10583. break;
  10584. var E =
  10585. null === (o = null == t ? void 0 : t.assignedSlot) ||
  10586. void 0 === o
  10587. ? void 0
  10588. : o.parentNode,
  10589. C = s.parentNode;
  10590. E && ((u = !0), (l = C));
  10591. var B = C;
  10592. if (B && 11 === B.nodeType) {
  10593. (p = !0), (m = oi((s = B.host))('position'));
  10594. break;
  10595. }
  10596. (s = B), (m = 'relative');
  10597. }
  10598. return {
  10599. offsetZoom: v,
  10600. hasSlot: u,
  10601. parentSlotElement: l,
  10602. isCustomElement: p,
  10603. isStatic: 'static' === m,
  10604. isEnd: g || !s || s === c,
  10605. offsetParent: s || c
  10606. };
  10607. }
  10608. function Ho(t, e) {
  10609. var n,
  10610. r,
  10611. a,
  10612. i = t.tagName.toLowerCase(),
  10613. o = t.offsetLeft,
  10614. s = t.offsetTop,
  10615. l = oi(t),
  10616. c = Gt(o),
  10617. u = !c;
  10618. return (
  10619. u || 'svg' === i
  10620. ? (a = (r = Xo(l('transformOrigin')).map(function (t) {
  10621. return parseFloat(t);
  10622. })).slice())
  10623. : ((a = (r = oa
  10624. ? Lo(t)
  10625. : Xo(l('transformOrigin')).map(function (t) {
  10626. return parseFloat(t);
  10627. })).slice()),
  10628. (u = !0),
  10629. (n = Kr(
  10630. (function (t, e, n) {
  10631. if (!t.getBBox || (!n && 'g' === t.tagName.toLowerCase()))
  10632. return [0, 0, 0, 0];
  10633. var r = t.getBBox(),
  10634. a = Jo(t.ownerSVGElement),
  10635. i = r.x - a.x,
  10636. o = r.y - a.y;
  10637. return [i, o, e[0] - i, e[1] - o];
  10638. })(t, r, t === e && 'g' === e.tagName.toLowerCase()),
  10639. 4
  10640. )),
  10641. (o = n[0]),
  10642. (s = n[1]),
  10643. (r[0] = n[2]),
  10644. (r[1] = n[3])),
  10645. {
  10646. tagName: i,
  10647. isSVG: c,
  10648. hasOffset: u,
  10649. offset: [o || 0, s || 0],
  10650. origin: r,
  10651. targetOrigin: a
  10652. }
  10653. );
  10654. }
  10655. function Vo(t, e) {
  10656. var n = oi(t),
  10657. r = oi(Ie(t)),
  10658. a = r('position');
  10659. if (!(e || (a && 'static' !== a))) return [0, 0];
  10660. var i = parseInt(r('marginLeft'), 10),
  10661. o = parseInt(r('marginTop'), 10);
  10662. return (
  10663. 'absolute' === n('position') &&
  10664. (('auto' === n('top') && 'auto' === n('bottom')) || (o = 0),
  10665. ('auto' === n('left') && 'auto' === n('right')) || (i = 0)),
  10666. [i, o]
  10667. );
  10668. }
  10669. function qo(t) {
  10670. t.forEach(function (t) {
  10671. var e = t.matrix;
  10672. e && (t.matrix = Yn(e, 3, 4));
  10673. });
  10674. }
  10675. function Ko(t) {
  10676. for (var e = t.parentElement, n = !1, r = Ie(t); e; ) {
  10677. var a = Bs(e).transform;
  10678. if (a && 'none' !== a) {
  10679. n = !0;
  10680. break;
  10681. }
  10682. if (e === r) break;
  10683. e = e.parentElement;
  10684. }
  10685. return { fixedContainer: e || r, hasTransform: n };
  10686. }
  10687. function Zo(t, e) {
  10688. return (
  10689. void 0 === e && (e = t.length > 9),
  10690. ''
  10691. .concat(e ? 'matrix3d' : 'matrix', '(')
  10692. .concat(Ln(t, !e).join(','), ')')
  10693. );
  10694. }
  10695. function Jo(t) {
  10696. var e = t.clientWidth,
  10697. n = t.clientHeight;
  10698. if (!t)
  10699. return {
  10700. x: 0,
  10701. y: 0,
  10702. width: 0,
  10703. height: 0,
  10704. clientWidth: e,
  10705. clientHeight: n
  10706. };
  10707. var r = t.viewBox,
  10708. a = (r && r.baseVal) || { x: 0, y: 0, width: 0, height: 0 };
  10709. return {
  10710. x: a.x,
  10711. y: a.y,
  10712. width: a.width || e,
  10713. height: a.height || n,
  10714. clientWidth: e,
  10715. clientHeight: n
  10716. };
  10717. }
  10718. function $o(t, e) {
  10719. var n,
  10720. r = Jo(t),
  10721. a = r.width,
  10722. i = r.height,
  10723. o = r.clientWidth,
  10724. s = r.clientHeight,
  10725. l = o / a,
  10726. c = s / i,
  10727. u = t.preserveAspectRatio.baseVal,
  10728. f = u.align,
  10729. d = u.meetOrSlice,
  10730. p = [0, 0],
  10731. g = [l, c],
  10732. m = [0, 0];
  10733. if (1 !== f) {
  10734. var v = (f - 2) % 3,
  10735. h = Math.floor((f - 2) / 3);
  10736. (p[0] = (a * v) / 2), (p[1] = (i * h) / 2);
  10737. var A = 2 === d ? Math.max(c, l) : Math.min(l, c);
  10738. (g[0] = A),
  10739. (g[1] = A),
  10740. (m[0] = ((o - a) / 2) * v),
  10741. (m[1] = ((s - i) / 2) * h);
  10742. }
  10743. var b = tr(g, e);
  10744. return (
  10745. (n = Kr(m, 2)),
  10746. (b[e * (e - 1)] = n[0]),
  10747. (b[e * (e - 1) + 1] = n[1]),
  10748. Fo(b, e, p)
  10749. );
  10750. }
  10751. function ts(t, e, n) {
  10752. return Xn(t, Pn(e, n), n);
  10753. }
  10754. function es(t, e, n, r) {
  10755. return [
  10756. [0, 0],
  10757. [e, 0],
  10758. [0, n],
  10759. [e, n]
  10760. ].map(function (e) {
  10761. return ts(t, e, r);
  10762. });
  10763. }
  10764. function ns(t) {
  10765. var e = t.map(function (t) {
  10766. return t[0];
  10767. }),
  10768. n = t.map(function (t) {
  10769. return t[1];
  10770. }),
  10771. r = Math.min.apply(Math, Zr([], Kr(e), !1)),
  10772. a = Math.min.apply(Math, Zr([], Kr(n), !1)),
  10773. i = Math.max.apply(Math, Zr([], Kr(e), !1)),
  10774. o = Math.max.apply(Math, Zr([], Kr(n), !1));
  10775. return {
  10776. left: r,
  10777. top: a,
  10778. right: i,
  10779. bottom: o,
  10780. width: i - r,
  10781. height: o - a
  10782. };
  10783. }
  10784. function rs(t, e, n, r) {
  10785. return ns(es(t, e, n, r));
  10786. }
  10787. function as(t) {
  10788. return Math.sqrt(t[0] * t[0] + t[1] * t[1]);
  10789. }
  10790. function is(t, e) {
  10791. return as([e[0] - t[0], e[1] - t[1]]);
  10792. }
  10793. function os(t, e, n, r) {
  10794. void 0 === n && (n = 1), void 0 === r && (r = ue(t, e));
  10795. var a = is(t, e);
  10796. return {
  10797. transform: 'translateY(-50%) translate('
  10798. .concat(t[0], 'px, ')
  10799. .concat(t[1], 'px) rotate(')
  10800. .concat(r, 'rad) scaleY(')
  10801. .concat(n, ')'),
  10802. width: ''.concat(a, 'px')
  10803. };
  10804. }
  10805. function ss(t, e) {
  10806. for (var n = [], r = 2; r < arguments.length; r++)
  10807. n[r - 2] = arguments[r];
  10808. var a = n.length,
  10809. i =
  10810. n.reduce(function (t, e) {
  10811. return t + e[0];
  10812. }, 0) / a,
  10813. o =
  10814. n.reduce(function (t, e) {
  10815. return t + e[1];
  10816. }, 0) / a;
  10817. return {
  10818. transform: 'translateZ(0px) translate('
  10819. .concat(i, 'px, ')
  10820. .concat(o, 'px) rotate(')
  10821. .concat(t, 'rad) scale(')
  10822. .concat(e, ')')
  10823. };
  10824. }
  10825. function ls(t, e) {
  10826. var n = t[e];
  10827. return Nt(n) ? qr(qr({}, t), n) : t;
  10828. }
  10829. function cs(t) {
  10830. var e = t && !Gt(t.offsetWidth),
  10831. n = 0,
  10832. r = 0,
  10833. a = 0,
  10834. i = 0,
  10835. o = 0,
  10836. s = 0,
  10837. l = 0,
  10838. c = 0,
  10839. u = 0,
  10840. f = 0,
  10841. d = 0,
  10842. p = 0,
  10843. g = 1 / 0,
  10844. m = 1 / 0,
  10845. v = 1 / 0,
  10846. h = 1 / 0,
  10847. A = 0,
  10848. b = 0,
  10849. w = !1;
  10850. if (t)
  10851. if (e || 'svg' === t.tagName.toLowerCase()) {
  10852. var k = oi(t),
  10853. y = t.style,
  10854. I = 'border-box' === k('boxSizing'),
  10855. E = parseFloat(k('borderLeftWidth')) || 0,
  10856. C = parseFloat(k('borderRightWidth')) || 0,
  10857. B = parseFloat(k('borderTopWidth')) || 0,
  10858. x = parseFloat(k('borderBottomWidth')) || 0,
  10859. S =
  10860. (parseFloat(k('paddingLeft')) || 0) +
  10861. (parseFloat(k('paddingRight')) || 0),
  10862. D =
  10863. (parseFloat(k('paddingTop')) || 0) +
  10864. (parseFloat(k('paddingBottom')) || 0),
  10865. R = S + (E + C),
  10866. Q = D + (B + x),
  10867. _ = k('position'),
  10868. O = 0,
  10869. M = 0;
  10870. if ('clientLeft' in t) {
  10871. var T = null;
  10872. if (
  10873. (T =
  10874. 'absolute' === _
  10875. ? Wo(t, Ie(t)).offsetParent
  10876. : t.parentElement)
  10877. ) {
  10878. var z = oi(T);
  10879. (O = parseFloat(z('width'))), (M = parseFloat(z('height')));
  10880. }
  10881. }
  10882. (u = Math.max(S, ie(k('minWidth'), O) || 0)),
  10883. (f = Math.max(D, ie(k('minHeight'), M) || 0)),
  10884. (g = ie(k('maxWidth'), O)),
  10885. (m = ie(k('maxHeight'), M)),
  10886. isNaN(g) && (g = 1 / 0),
  10887. isNaN(m) && (m = 1 / 0),
  10888. (A = ie(y.width, 0) || 0),
  10889. (b = ie(y.height, 0) || 0),
  10890. (o = parseFloat(k('width')) || 0),
  10891. (s = parseFloat(k('height')) || 0),
  10892. (n = l = qs(o - A) < 1 ? oe(u, A || o, g) : o),
  10893. (r = c = qs(s - b) < 1 ? oe(f, b || s, m) : s),
  10894. (a = l),
  10895. (i = c),
  10896. I
  10897. ? ((v = g),
  10898. (h = m),
  10899. (d = u),
  10900. (p = f),
  10901. (l = n - R),
  10902. (c = r - Q))
  10903. : ((v = g + R),
  10904. (h = m + Q),
  10905. (d = u + R),
  10906. (p = f + Q),
  10907. (n = l + R),
  10908. (r = c + Q)),
  10909. (a = l + S),
  10910. (i = c + D);
  10911. } else {
  10912. var P = t.getBBox();
  10913. (w = !0),
  10914. (o = n = P.width),
  10915. (s = r = P.height),
  10916. (l = n),
  10917. (c = r),
  10918. (a = n),
  10919. (i = r);
  10920. }
  10921. return {
  10922. svg: w,
  10923. offsetWidth: n,
  10924. offsetHeight: r,
  10925. clientWidth: a,
  10926. clientHeight: i,
  10927. contentWidth: l,
  10928. contentHeight: c,
  10929. inlineCSSWidth: A,
  10930. inlineCSSHeight: b,
  10931. cssWidth: o,
  10932. cssHeight: s,
  10933. minWidth: u,
  10934. minHeight: f,
  10935. maxWidth: g,
  10936. maxHeight: m,
  10937. minOffsetWidth: d,
  10938. minOffsetHeight: p,
  10939. maxOffsetWidth: v,
  10940. maxOffsetHeight: h
  10941. };
  10942. }
  10943. function us(t, e) {
  10944. return ue(e > 0 ? t[0] : t[1], e > 0 ? t[1] : t[0]);
  10945. }
  10946. function fs(t, e) {
  10947. var n = t === Ie(t) || t === ye(t),
  10948. r = {
  10949. clientLeft: t.clientLeft,
  10950. clientTop: t.clientTop,
  10951. clientWidth: t.clientWidth,
  10952. clientHeight: t.clientHeight,
  10953. scrollWidth: t.scrollWidth,
  10954. scrollHeight: t.scrollHeight,
  10955. overflow: !1
  10956. };
  10957. return (
  10958. n &&
  10959. ((r.clientHeight = Math.max(e.height, r.clientHeight)),
  10960. (r.scrollHeight = Math.max(e.height, r.scrollHeight))),
  10961. (r.overflow = 'visible' !== oi(t)('overflow')),
  10962. qr(qr({}, e), r)
  10963. );
  10964. }
  10965. function ds(t, e, n, r) {
  10966. var a = t.left,
  10967. i = t.right,
  10968. o = t.top,
  10969. s = t.bottom,
  10970. l = e.top,
  10971. c = e.left,
  10972. u = {
  10973. left: c + a,
  10974. top: l + o,
  10975. right: c + i,
  10976. bottom: l + s,
  10977. width: i - a,
  10978. height: s - o
  10979. };
  10980. return n && r ? fs(n, u) : u;
  10981. }
  10982. function ps(t, e) {
  10983. var n = 0,
  10984. r = 0,
  10985. a = 0,
  10986. i = 0;
  10987. if (t) {
  10988. var o = t.getBoundingClientRect();
  10989. (n = o.left), (r = o.top), (a = o.width), (i = o.height);
  10990. }
  10991. var s = {
  10992. left: n,
  10993. top: r,
  10994. width: a,
  10995. height: i,
  10996. right: n + a,
  10997. bottom: r + i
  10998. };
  10999. return t && e ? fs(t, s) : s;
  11000. }
  11001. function gs(t, e, n, r) {
  11002. return t || (e ? [0, 0] : ms(n.target, r));
  11003. }
  11004. function ms(t, e) {
  11005. if (t) {
  11006. var n = t.getAttribute('data-rotation') || '',
  11007. r = t.getAttribute('data-direction');
  11008. if (((e.deg = n), r)) {
  11009. var a = [0, 0];
  11010. return (
  11011. r.indexOf('w') > -1 && (a[0] = -1),
  11012. r.indexOf('e') > -1 && (a[0] = 1),
  11013. r.indexOf('n') > -1 && (a[1] = -1),
  11014. r.indexOf('s') > -1 && (a[1] = 1),
  11015. a
  11016. );
  11017. }
  11018. }
  11019. }
  11020. function vs(t, e) {
  11021. return [Un(e, t[0]), Un(e, t[1]), Un(e, t[2]), Un(e, t[3])];
  11022. }
  11023. function hs(t) {
  11024. var e = t.left,
  11025. n = t.top;
  11026. return vs([t.pos1, t.pos2, t.pos3, t.pos4], [e, n]);
  11027. }
  11028. function As(t, e) {
  11029. t[e ? 'controlAbles' : 'targetAbles'].forEach(function (e) {
  11030. e.unset && e.unset(t);
  11031. });
  11032. }
  11033. function bs(t, e) {
  11034. var n = e ? 'controlGesto' : 'targetGesto',
  11035. r = t[n];
  11036. !1 === (null == r ? void 0 : r.isIdle()) && As(t, e),
  11037. null == r || r.unset(),
  11038. (t[n] = null);
  11039. }
  11040. function ws(t, e) {
  11041. if (e) {
  11042. var n = Wa(e);
  11043. n.nextStyle = qr(qr({}, n.nextStyle), t);
  11044. }
  11045. return {
  11046. style: t,
  11047. cssText: ae(t)
  11048. .map(function (e) {
  11049. return ''.concat(Jt(e, '-'), ': ').concat(t[e], ';');
  11050. })
  11051. .join('')
  11052. };
  11053. }
  11054. function ks(t, e, n) {
  11055. var r = e.afterTransform || e.transform;
  11056. return qr(
  11057. qr({}, ws(qr(qr(qr({}, t.style), e.style), { transform: r }), n)),
  11058. { afterTransform: r, transform: t.transform }
  11059. );
  11060. }
  11061. function ys(t, e, n, r) {
  11062. var a = e.datas;
  11063. a.datas || (a.datas = {});
  11064. var i = qr(qr({}, n), {
  11065. target: t.state.target,
  11066. clientX: e.clientX,
  11067. clientY: e.clientY,
  11068. inputEvent: e.inputEvent,
  11069. currentTarget: t,
  11070. moveable: t,
  11071. datas: a.datas,
  11072. isFirstDrag: !!e.isFirstDrag,
  11073. isTrusted: !1 !== e.isTrusted,
  11074. stopAble: function () {
  11075. a.isEventStart = !1;
  11076. },
  11077. stopDrag: function () {
  11078. var t;
  11079. null === (t = e.stop) || void 0 === t || t.call(e);
  11080. }
  11081. });
  11082. return (
  11083. a.isStartEvent ? r || (a.lastEvent = i) : (a.isStartEvent = !0), i
  11084. );
  11085. }
  11086. function Is(t, e, n) {
  11087. var r = e.datas,
  11088. a = 'isDrag' in n ? n.isDrag : e.isDrag;
  11089. return (
  11090. r.datas || (r.datas = {}),
  11091. qr(qr({ isDrag: a }, n), {
  11092. moveable: t,
  11093. target: t.state.target,
  11094. clientX: e.clientX,
  11095. clientY: e.clientY,
  11096. inputEvent: e.inputEvent,
  11097. currentTarget: t,
  11098. lastEvent: r.lastEvent,
  11099. isDouble: e.isDouble,
  11100. datas: r.datas,
  11101. isFirstDrag: !!e.isFirstDrag
  11102. })
  11103. );
  11104. }
  11105. function Es(t, e, n) {
  11106. t._emitter.on(e, n);
  11107. }
  11108. function Cs(t, e, n, r) {
  11109. return t.triggerEvent(e, n, r);
  11110. }
  11111. function Bs(t, e) {
  11112. return Ee(t).getComputedStyle(t, e);
  11113. }
  11114. function xs(t, e, n) {
  11115. var r = {},
  11116. a = {};
  11117. return t.filter(function (t) {
  11118. var i = t.name;
  11119. if (
  11120. r[i] ||
  11121. !e.some(function (e) {
  11122. return t[e];
  11123. })
  11124. )
  11125. return !1;
  11126. if (!n && t.ableGroup) {
  11127. if (a[t.ableGroup]) return !1;
  11128. a[t.ableGroup] = !0;
  11129. }
  11130. return (r[i] = !0), !0;
  11131. });
  11132. }
  11133. function Ss(t, e) {
  11134. return t === e || (null == t && null == e);
  11135. }
  11136. function Ds(t, e) {
  11137. var n = [],
  11138. r = [];
  11139. return (
  11140. t.forEach(function (a, i) {
  11141. var o = e(a, i, t),
  11142. s = r.indexOf(o),
  11143. l = n[s] || [];
  11144. -1 === s && (r.push(o), n.push(l)), l.push(a);
  11145. }),
  11146. n
  11147. );
  11148. }
  11149. function Rs(t) {
  11150. return t.reduce(function (t, e) {
  11151. return t.concat(e);
  11152. }, []);
  11153. }
  11154. function Qs() {
  11155. for (var t = [], e = 0; e < arguments.length; e++)
  11156. t[e] = arguments[e];
  11157. return (
  11158. t.sort(function (t, e) {
  11159. return qs(e) - qs(t);
  11160. }),
  11161. t[0]
  11162. );
  11163. }
  11164. function _s(t, e, n) {
  11165. return Xn(Tn(t, n), Pn(e, n), n);
  11166. }
  11167. function Os(t, e) {
  11168. var n,
  11169. r = t.is3d ? 4 : 3;
  11170. return (
  11171. (n = Kr(_s(t.rootMatrix, [e.distX, e.distY], r), 2)),
  11172. (e.distX = n[0]),
  11173. (e.distY = n[1]),
  11174. e
  11175. );
  11176. }
  11177. function Ms(t, e, n, r) {
  11178. if (!n[0] && !n[1]) return e;
  11179. var a = ts(t, [Bo(n[0]), 0], r),
  11180. i = ts(t, [0, Bo(n[1])], r);
  11181. return Un(e, ts(t, [n[0] / as(a), n[1] / as(i)], r));
  11182. }
  11183. function Ts(t, e, n) {
  11184. return n ? ''.concat((t / e) * 100, '%') : ''.concat(t, 'px');
  11185. }
  11186. function zs(t) {
  11187. return qs(t) <= wa ? 0 : t;
  11188. }
  11189. function Ps(t) {
  11190. return function (e) {
  11191. if (!e.isDragging(t)) return '';
  11192. var n = (function (t, e) {
  11193. var n,
  11194. r = t.targetGesto,
  11195. a = t.controlGesto;
  11196. return (
  11197. (null == r ? void 0 : r.isFlag()) &&
  11198. (n = r.getEventData()[e]),
  11199. !n &&
  11200. (null == a ? void 0 : a.isFlag()) &&
  11201. (n = a.getEventData()[e]),
  11202. n || {}
  11203. );
  11204. })(e, t),
  11205. r = n.deg;
  11206. return r ? Go('view-control-rotation'.concat(r)) : '';
  11207. };
  11208. }
  11209. function Ys(t, e) {
  11210. return (
  11211. void 0 === e && (e = [t]),
  11212. function (n, r) {
  11213. if (r.isRequest)
  11214. return (
  11215. !!e.some(function (t) {
  11216. return r.requestAble === t;
  11217. }) && r.parentDirection
  11218. );
  11219. var a = r.inputEvent.target;
  11220. return ve(a, Go('direction')) && (!t || ve(a, Go(t)));
  11221. }
  11222. );
  11223. }
  11224. function Gs(t, e) {
  11225. return t
  11226. ? Be(t)
  11227. ? t
  11228. : Ft(t)
  11229. ? e
  11230. ? document.querySelector(t)
  11231. : t
  11232. : Xt(t)
  11233. ? t()
  11234. : Ce(t)
  11235. ? t
  11236. : 'current' in t
  11237. ? t.current
  11238. : t
  11239. : null;
  11240. }
  11241. function Ns(t, e) {
  11242. return t
  11243. ? ((n = t) && Nt(n) && !Be(n) && (Ut(n) || 'length' in n)
  11244. ? [].slice.call(t)
  11245. : [t]
  11246. ).reduce(function (t, n) {
  11247. return Ft(n) && e
  11248. ? Zr(
  11249. Zr([], Kr(t), !1),
  11250. Kr([].slice.call(document.querySelectorAll(n))),
  11251. !1
  11252. )
  11253. : (Ut(n) ? t.push(Ns(n, e)) : t.push(Gs(n, e)), t);
  11254. }, [])
  11255. : [];
  11256. var n;
  11257. }
  11258. function Us(t, e) {
  11259. var n = t.rootMatrix,
  11260. r = t.is3d,
  11261. a = Tn(n, r ? 4 : 3);
  11262. return (
  11263. r || (a = Yn(a, 3, 4)),
  11264. (a[12] = 0),
  11265. (a[13] = 0),
  11266. (a[14] = 0),
  11267. (function (t, e) {
  11268. var n = Xn(t, [e[0], e[1] || 0, e[2] || 0, 1], 4),
  11269. r = n[3] || 1;
  11270. return [n[0] / r, n[1] / r, n[2] / r];
  11271. })(a, e)
  11272. );
  11273. }
  11274. function Fs(t, e, n, r, a) {
  11275. var i = Kr(t, 2),
  11276. o = i[0],
  11277. s = i[1],
  11278. l = 0,
  11279. c = 0;
  11280. if (a && o && s) {
  11281. var u = ue([0, 0], e),
  11282. f = ue([0, 0], r),
  11283. d = as(e),
  11284. p = Math.cos(u - f) * d;
  11285. if (r[0])
  11286. if (r[1]) {
  11287. var g = r[0] * o,
  11288. m = r[1] * s,
  11289. v = Math.atan2(g + e[0], m + e[1]),
  11290. h = Math.atan2(g, m);
  11291. v < 0 && (v += 2 * Math.PI), h < 0 && (h += 2 * Math.PI);
  11292. var A = 0;
  11293. (A =
  11294. qs(v - h) < Math.PI / 2 || qs(v - h) > (Math.PI / 2) * 3
  11295. ? v - h
  11296. : v - (h += Math.PI)) >
  11297. 2 * Math.PI
  11298. ? (A -= 2 * Math.PI)
  11299. : A > Math.PI
  11300. ? (A = 2 * Math.PI - A)
  11301. : A < -Math.PI && (A = -2 * Math.PI - A);
  11302. var b = as([g + e[0], m + e[1]]) * Math.cos(A);
  11303. (l = b * Math.sin(h) - g),
  11304. (c = b * Math.cos(h) - m),
  11305. r[0] < 0 && (l *= -1),
  11306. r[1] < 0 && (c *= -1);
  11307. } else c = (l = p) / n;
  11308. else l = (c = p) * n;
  11309. } else (l = r[0] * e[0]), (c = r[1] * e[1]);
  11310. return [l, c];
  11311. }
  11312. function Ls(t, e, n, r) {
  11313. var a,
  11314. i = n.ratio,
  11315. o = n.startOffsetWidth,
  11316. s = n.startOffsetHeight,
  11317. l = 0,
  11318. c = 0,
  11319. u = r.distX,
  11320. f = r.distY,
  11321. d = r.pinchScale,
  11322. p = r.parentDistance,
  11323. g = r.parentDist,
  11324. m = r.parentScale,
  11325. v = n.fixedDirection,
  11326. h = [0, 1].map(function (e) {
  11327. return qs(t[e] - v[e]);
  11328. }),
  11329. A = [0, 1].map(function (t) {
  11330. var e = h[t];
  11331. return 0 !== e && (e = 2 / e), e;
  11332. });
  11333. if (g)
  11334. (l = g[0]), (c = g[1]), e && (l ? c || (c = l / i) : (l = c * i));
  11335. else if (Lt(d)) (l = (d - 1) * o), (c = (d - 1) * s);
  11336. else if (m) (l = (m[0] - 1) * o), (c = (m[1] - 1) * s);
  11337. else if (p) {
  11338. var b = o * h[0],
  11339. w = s * h[1],
  11340. k = as([b, w]);
  11341. (l = (p / k) * b * A[0]), (c = (p / k) * w * A[1]);
  11342. } else {
  11343. var y = Ya({ datas: n, distX: u, distY: f });
  11344. (y = A.map(function (t, e) {
  11345. return y[e] * t;
  11346. })),
  11347. (l = (a = Kr(Fs([o, s], y, i, t, e), 2))[0]),
  11348. (c = a[1]);
  11349. }
  11350. return { distWidth: l, distHeight: c };
  11351. }
  11352. function Xs(t, e) {
  11353. if (e) {
  11354. if ('left' === t) return { x: '0%', y: '50%' };
  11355. if ('top' === t) return { x: '50%', y: '50%' };
  11356. if ('center' === t) return { x: '50%', y: '50%' };
  11357. if ('right' === t) return { x: '100%', y: '50%' };
  11358. if ('bottom' === t) return { x: '50%', y: '100%' };
  11359. var n = Kr(t.split(' '), 2),
  11360. r = n[0],
  11361. a = n[1],
  11362. i = Xs(r || ''),
  11363. o = Xs(a || ''),
  11364. s = qr(qr({}, i), o),
  11365. l = { x: '50%', y: '50%' };
  11366. return (
  11367. s.x && (l.x = s.x),
  11368. s.y && (l.y = s.y),
  11369. s.value &&
  11370. (s.x && !s.y && (l.y = s.value),
  11371. !s.x && s.y && (l.x = s.value)),
  11372. l
  11373. );
  11374. }
  11375. return 'left' === t
  11376. ? { x: '0%' }
  11377. : 'right' === t
  11378. ? { x: '100%' }
  11379. : 'top' === t
  11380. ? { y: '0%' }
  11381. : 'bottom' === t
  11382. ? { y: '100%' }
  11383. : t
  11384. ? 'center' === t
  11385. ? { value: '50%' }
  11386. : { value: t }
  11387. : {};
  11388. }
  11389. function js(t, e, n) {
  11390. var r = Xs(t, !0),
  11391. a = r.x,
  11392. i = r.y;
  11393. return [ie(a, e) || 0, ie(i, n) || 0];
  11394. }
  11395. function Ws(t, e) {
  11396. return (
  11397. t.length === e.length &&
  11398. t.every(function (t, n) {
  11399. var r = e[n],
  11400. a = Ut(t),
  11401. i = Ut(r);
  11402. return a && i ? Ws(t, r) : !a && !i && t === r;
  11403. })
  11404. );
  11405. }
  11406. function Hs(t, e, n, r) {
  11407. var a = t[e];
  11408. return !(e in t) || (a !== n && r(a) !== r(n)) ? ((t[e] = n), n) : a;
  11409. }
  11410. function Vs(t) {
  11411. return t >= 0 ? 1 : -1;
  11412. }
  11413. function qs(t) {
  11414. return Math.abs(t);
  11415. }
  11416. function Ks(t, e) {
  11417. return (function (t) {
  11418. for (var e = [], n = 0; n < t; ++n) e.push(n);
  11419. return e;
  11420. })(t).map(function (t) {
  11421. return e(t);
  11422. });
  11423. }
  11424. function Zs(t) {
  11425. return Lt(t)
  11426. ? { top: t, left: t, right: t, bottom: t }
  11427. : {
  11428. left: t.left || 0,
  11429. top: t.top || 0,
  11430. right: t.right || 0,
  11431. bottom: t.bottom || 0
  11432. };
  11433. }
  11434. var Js = Jr('pinchable', {
  11435. props: ['pinchable'],
  11436. events: [
  11437. 'pinchStart',
  11438. 'pinch',
  11439. 'pinchEnd',
  11440. 'pinchGroupStart',
  11441. 'pinchGroup',
  11442. 'pinchGroupEnd'
  11443. ],
  11444. dragStart: function () {
  11445. return !0;
  11446. },
  11447. pinchStart: function (t, e) {
  11448. var n = e.datas,
  11449. r = e.targets,
  11450. a = e.angle,
  11451. i = e.originalDatas,
  11452. o = t.props,
  11453. s = o.pinchable,
  11454. l = o.ables;
  11455. if (!s) return !1;
  11456. var c = 'onPinch'.concat(r ? 'Group' : '', 'Start'),
  11457. u = 'drag'.concat(r ? 'Group' : '', 'ControlStart'),
  11458. f = (
  11459. !0 === s
  11460. ? t.controlAbles
  11461. : l.filter(function (t) {
  11462. return s.indexOf(t.name) > -1;
  11463. })
  11464. ).filter(function (t) {
  11465. return t.canPinch && t[u];
  11466. }),
  11467. d = ys(t, e, {});
  11468. r && (d.targets = r);
  11469. var p = Cs(t, c, d);
  11470. (n.isPinch = !1 !== p), (n.ables = f);
  11471. var g = n.isPinch;
  11472. return (
  11473. !!g &&
  11474. (f.forEach(function (n) {
  11475. if (((i[n.name] = i[n.name] || {}), n[u])) {
  11476. var r = qr(qr({}, e), {
  11477. datas: i[n.name],
  11478. parentRotate: a,
  11479. isPinch: !0
  11480. });
  11481. n[u](t, r);
  11482. }
  11483. }),
  11484. (t.state.snapRenderInfo = {
  11485. request: e.isRequest,
  11486. direction: [0, 0]
  11487. }),
  11488. g)
  11489. );
  11490. },
  11491. pinch: function (t, e) {
  11492. var n = e.datas,
  11493. r = e.scale,
  11494. a = e.distance,
  11495. i = e.originalDatas,
  11496. o = e.inputEvent,
  11497. s = e.targets,
  11498. l = e.angle;
  11499. if (n.isPinch) {
  11500. var c = a * (1 - 1 / r),
  11501. u = ys(t, e, {});
  11502. s && (u.targets = s);
  11503. var f = 'onPinch'.concat(s ? 'Group' : '');
  11504. Cs(t, f, u);
  11505. var d = n.ables,
  11506. p = 'drag'.concat(s ? 'Group' : '', 'Control');
  11507. return (
  11508. d.forEach(function (n) {
  11509. n[p] &&
  11510. n[p](
  11511. t,
  11512. qr(qr({}, e), {
  11513. datas: i[n.name],
  11514. inputEvent: o,
  11515. resolveMatrix: !0,
  11516. pinchScale: r,
  11517. parentDistance: c,
  11518. parentRotate: l,
  11519. isPinch: !0
  11520. })
  11521. );
  11522. }),
  11523. u
  11524. );
  11525. }
  11526. },
  11527. pinchEnd: function (t, e) {
  11528. var n = e.datas,
  11529. r = e.isPinch,
  11530. a = e.inputEvent,
  11531. i = e.targets,
  11532. o = e.originalDatas;
  11533. if (n.isPinch) {
  11534. var s = 'onPinch'.concat(i ? 'Group' : '', 'End'),
  11535. l = Is(t, e, { isDrag: r });
  11536. i && (l.targets = i), Cs(t, s, l);
  11537. var c = n.ables,
  11538. u = 'drag'.concat(i ? 'Group' : '', 'ControlEnd');
  11539. return (
  11540. c.forEach(function (n) {
  11541. n[u] &&
  11542. n[u](
  11543. t,
  11544. qr(qr({}, e), {
  11545. isDrag: r,
  11546. datas: o[n.name],
  11547. inputEvent: a,
  11548. isPinch: !0
  11549. })
  11550. );
  11551. }),
  11552. r
  11553. );
  11554. }
  11555. },
  11556. pinchGroupStart: function (t, e) {
  11557. return this.pinchStart(
  11558. t,
  11559. qr(qr({}, e), { targets: t.props.targets })
  11560. );
  11561. },
  11562. pinchGroup: function (t, e) {
  11563. return this.pinch(t, qr(qr({}, e), { targets: t.props.targets }));
  11564. },
  11565. pinchGroupEnd: function (t, e) {
  11566. return this.pinchEnd(
  11567. t,
  11568. qr(qr({}, e), { targets: t.props.targets })
  11569. );
  11570. }
  11571. }),
  11572. $s = Ys('scalable'),
  11573. tl = {
  11574. name: 'scalable',
  11575. ableGroup: 'size',
  11576. canPinch: !0,
  11577. props: [
  11578. 'scalable',
  11579. 'throttleScale',
  11580. 'renderDirections',
  11581. 'keepRatio',
  11582. 'edge',
  11583. 'displayAroundControls'
  11584. ],
  11585. events: [
  11586. 'scaleStart',
  11587. 'beforeScale',
  11588. 'scale',
  11589. 'scaleEnd',
  11590. 'scaleGroupStart',
  11591. 'beforeScaleGroup',
  11592. 'scaleGroup',
  11593. 'scaleGroupEnd'
  11594. ],
  11595. render: mi('scalable'),
  11596. dragControlCondition: $s,
  11597. viewClassName: Ps('scalable'),
  11598. dragControlStart: function (t, e) {
  11599. var n = e.datas,
  11600. r = e.isPinch,
  11601. a = e.inputEvent,
  11602. i = gs(e.parentDirection, r, a, n),
  11603. o = t.state,
  11604. s = o.width,
  11605. l = o.height,
  11606. c = o.targetTransform,
  11607. u = o.target,
  11608. f = o.pos1,
  11609. d = o.pos2,
  11610. p = o.pos4;
  11611. if (!i || !u) return !1;
  11612. r || _a(t, e),
  11613. (n.datas = {}),
  11614. (n.transform = c),
  11615. (n.prevDist = [1, 1]),
  11616. (n.direction = i),
  11617. (n.startOffsetWidth = s),
  11618. (n.startOffsetHeight = l),
  11619. (n.startValue = [1, 1]);
  11620. var g = (!i[0] && !i[1]) || i[0] || !i[1];
  11621. function m(t) {
  11622. n.ratio = t && isFinite(t) ? t : 0;
  11623. }
  11624. function v(t) {
  11625. var e = ro(n.startPositions, t);
  11626. (n.fixedDirection = e.fixedDirection),
  11627. (n.fixedPosition = e.fixedPosition),
  11628. (n.fixedOffset = e.fixedOffset);
  11629. }
  11630. La(e, 'scale'),
  11631. (n.isWidth = g),
  11632. (n.startPositions = hs(t.state)),
  11633. (n.setFixedDirection = v),
  11634. m(de(f, d) / de(d, p)),
  11635. v([-i[0], -i[1]]);
  11636. var h = function (t) {
  11637. n.minScaleSize = t;
  11638. },
  11639. A = function (t) {
  11640. n.maxScaleSize = t;
  11641. };
  11642. h([-1 / 0, -1 / 0]), A([1 / 0, 1 / 0]);
  11643. var b = ys(
  11644. t,
  11645. e,
  11646. qr(
  11647. qr(
  11648. {
  11649. direction: i,
  11650. set: function (t) {
  11651. n.startValue = t;
  11652. },
  11653. setRatio: m,
  11654. setFixedDirection: v,
  11655. setMinScaleSize: h,
  11656. setMaxScaleSize: A
  11657. },
  11658. Fa(e)
  11659. ),
  11660. {
  11661. dragStart: no.dragStart(t, new Da().dragStart([0, 0], e))
  11662. }
  11663. )
  11664. ),
  11665. w = Cs(t, 'onScaleStart', b);
  11666. return (
  11667. (n.startFixedDirection = n.fixedDirection),
  11668. !1 !== w &&
  11669. ((n.isScale = !0),
  11670. (t.state.snapRenderInfo = {
  11671. request: e.isRequest,
  11672. direction: i
  11673. })),
  11674. !!n.isScale && b
  11675. );
  11676. },
  11677. dragControl: function (t, e) {
  11678. Oa(e, 'scale');
  11679. var n = e.datas,
  11680. r = e.parentKeepRatio,
  11681. a = e.parentFlag,
  11682. i = e.isPinch,
  11683. o = e.dragClient,
  11684. s = e.isRequest,
  11685. l = e.useSnap,
  11686. c = e.resolveMatrix,
  11687. u = n.prevDist,
  11688. f = n.direction,
  11689. d = n.startOffsetWidth,
  11690. p = n.startOffsetHeight,
  11691. g = n.isScale,
  11692. m = n.startValue,
  11693. v = n.isWidth,
  11694. h = n.ratio;
  11695. if (!g) return !1;
  11696. var A = t.props,
  11697. b = A.throttleScale,
  11698. w = A.parentMoveable,
  11699. k = f;
  11700. f[0] || f[1] || (k = [1, 1]);
  11701. var y = (h && (null != r ? r : A.keepRatio)) || !1,
  11702. I = t.state,
  11703. E = [m[0], m[1]];
  11704. function C() {
  11705. var t = Ls(k, y, n, e),
  11706. r = t.distWidth,
  11707. a = t.distHeight,
  11708. i = d ? (d + r) / d : 1,
  11709. o = p ? (p + a) / p : 1;
  11710. m[0] || (E[0] = r / d), m[1] || (E[1] = a / p);
  11711. var s = (k[0] || y ? i : 1) * E[0],
  11712. l = (k[1] || y ? o : 1) * E[1];
  11713. return (
  11714. 0 === s && (s = Vs(u[0]) * ka),
  11715. 0 === l && (l = Vs(u[1]) * ka),
  11716. [s, l]
  11717. );
  11718. }
  11719. var B = C();
  11720. if (!i && t.props.groupable) {
  11721. var x = (I.snapRenderInfo || {}).direction;
  11722. Ut(x) &&
  11723. (x[0] || x[1]) &&
  11724. (I.snapRenderInfo = { direction: f, request: e.isRequest });
  11725. }
  11726. Cs(
  11727. t,
  11728. 'onBeforeScale',
  11729. ys(
  11730. t,
  11731. e,
  11732. {
  11733. scale: B,
  11734. setFixedDirection: function (t) {
  11735. return n.setFixedDirection(t), (B = C());
  11736. },
  11737. startFixedDirection: n.startFixedDirection,
  11738. setScale: function (t) {
  11739. B = t;
  11740. }
  11741. },
  11742. !0
  11743. )
  11744. );
  11745. var S,
  11746. D,
  11747. R = [B[0] / E[0], B[1] / E[1]],
  11748. Q = o,
  11749. _ = [0, 0],
  11750. O = !o && !a && i;
  11751. if (
  11752. (O || c
  11753. ? (Q = Za(t, n.targetAllTransform, [0, 0], [0, 0], n))
  11754. : o || (Q = n.fixedPosition),
  11755. i || (_ = _o(t, R, f, !l && s, n)),
  11756. y)
  11757. ) {
  11758. k[0] &&
  11759. k[1] &&
  11760. _[0] &&
  11761. _[1] &&
  11762. (Math.abs(_[0] * d) > Math.abs(_[1] * p)
  11763. ? (_[1] = 0)
  11764. : (_[0] = 0));
  11765. var M = !_[0] && !_[1];
  11766. if (
  11767. (M &&
  11768. (v
  11769. ? (R[0] = pe(R[0] * E[0], b) / E[0])
  11770. : (R[1] = pe(R[1] * E[1], b) / E[1])),
  11771. (k[0] && !k[1]) || (_[0] && !_[1]) || (M && v))
  11772. ) {
  11773. R[0] += _[0];
  11774. var T = (d * R[0] * E[0]) / h;
  11775. R[1] = T / p / E[1];
  11776. } else if ((!k[0] && k[1]) || (!_[0] && _[1]) || (M && !v)) {
  11777. R[1] += _[1];
  11778. var z = p * R[1] * E[1] * h;
  11779. R[0] = z / d / E[0];
  11780. }
  11781. } else
  11782. (R[0] += _[0]),
  11783. (R[1] += _[1]),
  11784. _[0] || (R[0] = pe(R[0] * E[0], b) / E[0]),
  11785. _[1] || (R[1] = pe(R[1] * E[1], b) / E[1]);
  11786. 0 === R[0] && (R[0] = Vs(u[0]) * ka),
  11787. 0 === R[1] && (R[1] = Vs(u[1]) * ka),
  11788. (S = R),
  11789. (D = [E[0], E[1]]),
  11790. (B = [S[0] * D[0], S[1] * D[1]]);
  11791. var P = [d, p],
  11792. Y = [d * B[0], p * B[1]];
  11793. (Y = le(Y, n.minScaleSize, n.maxScaleSize, !!y && h)),
  11794. (B = Ks(2, function (t) {
  11795. return P[t] ? Y[t] / P[t] : Y[t];
  11796. })),
  11797. (R = Ks(2, function (t) {
  11798. return B[t] / E[t];
  11799. }));
  11800. var G = Ks(2, function (t) {
  11801. return u[t] ? R[t] / u[t] : R[t];
  11802. }),
  11803. N = 'scale('.concat(R.join(', '), ')'),
  11804. U = 'scale('.concat(B.join(', '), ')'),
  11805. F = Ma(n, U, N),
  11806. L = !m[0] || !m[1],
  11807. X = (function (t, e, n, r, a, i, o) {
  11808. return Ja(t, e, n, r, a, i, o);
  11809. })(t, L ? U : N, n.fixedDirection, Q, n.fixedOffset, n, L),
  11810. j = O ? X : Fn(X, n.prevInverseDist || [0, 0]);
  11811. if (
  11812. ((n.prevDist = R),
  11813. (n.prevInverseDist = X),
  11814. B[0] === u[0] &&
  11815. B[1] === u[1] &&
  11816. j.every(function (t) {
  11817. return !t;
  11818. }) &&
  11819. !w &&
  11820. !O)
  11821. )
  11822. return !1;
  11823. var W = ys(
  11824. t,
  11825. e,
  11826. qr(
  11827. {
  11828. offsetWidth: d,
  11829. offsetHeight: p,
  11830. direction: f,
  11831. scale: B,
  11832. dist: R,
  11833. delta: G,
  11834. isPinch: !!i
  11835. },
  11836. Ka(t, F, j, i, e)
  11837. )
  11838. );
  11839. return Cs(t, 'onScale', W), W;
  11840. },
  11841. dragControlEnd: function (t, e) {
  11842. var n = e.datas;
  11843. if (!n.isScale) return !1;
  11844. n.isScale = !1;
  11845. var r = Is(t, e, {});
  11846. return Cs(t, 'onScaleEnd', r), r;
  11847. },
  11848. dragGroupControlCondition: $s,
  11849. dragGroupControlStart: function (t, e) {
  11850. var n = e.datas,
  11851. r = this.dragControlStart(t, e);
  11852. if (!r) return !1;
  11853. var a = si(t, 'resizable', e);
  11854. n.moveableScale = t.scale;
  11855. var i = ci(t, this, 'dragControlStart', e, function (e, r) {
  11856. return ui(t, e, n, r);
  11857. }),
  11858. o = function (e) {
  11859. r.setFixedDirection(e),
  11860. i.forEach(function (r, i) {
  11861. r.setFixedDirection(e), ui(t, r.moveable, n, a[i]);
  11862. });
  11863. };
  11864. n.setFixedDirection = o;
  11865. var s = qr(qr({}, r), {
  11866. targets: t.props.targets,
  11867. events: i,
  11868. setFixedDirection: o
  11869. }),
  11870. l = Cs(t, 'onScaleGroupStart', s);
  11871. return (n.isScale = !1 !== l), !!n.isScale && s;
  11872. },
  11873. dragGroupControl: function (t, e) {
  11874. var n = e.datas;
  11875. if (n.isScale) {
  11876. Es(t, 'onBeforeScale', function (n) {
  11877. Cs(
  11878. t,
  11879. 'onBeforeScaleGroup',
  11880. ys(t, e, qr(qr({}, n), { targets: t.props.targets }), !0)
  11881. );
  11882. });
  11883. var r = this.dragControl(t, e);
  11884. if (r) {
  11885. var a = r.dist,
  11886. i = n.moveableScale;
  11887. t.scale = [a[0] * i[0], a[1] * i[1]];
  11888. var o = t.props.keepRatio,
  11889. s = n.fixedPosition,
  11890. l = ci(t, this, 'dragControl', e, function (e, n) {
  11891. var r = Kr(
  11892. Xn(
  11893. Jn((t.rotation / 180) * Math.PI, 3),
  11894. [
  11895. n.datas.originalX * a[0],
  11896. n.datas.originalY * a[1],
  11897. 1
  11898. ],
  11899. 3
  11900. ),
  11901. 2
  11902. ),
  11903. i = r[0],
  11904. l = r[1];
  11905. return qr(qr({}, n), {
  11906. parentDist: null,
  11907. parentScale: a,
  11908. parentKeepRatio: o,
  11909. dragClient: Un(s, [i, l])
  11910. });
  11911. }),
  11912. c = qr({ targets: t.props.targets, events: l }, r);
  11913. return Cs(t, 'onScaleGroup', c), c;
  11914. }
  11915. }
  11916. },
  11917. dragGroupControlEnd: function (t, e) {
  11918. var n = e.isDrag;
  11919. if (e.datas.isScale) {
  11920. this.dragControlEnd(t, e);
  11921. var r = ci(t, this, 'dragControlEnd', e);
  11922. return (
  11923. Cs(
  11924. t,
  11925. 'onScaleGroupEnd',
  11926. Is(t, e, { targets: t.props.targets, events: r })
  11927. ),
  11928. n
  11929. );
  11930. }
  11931. },
  11932. request: function () {
  11933. var t = {},
  11934. e = 0,
  11935. n = 0,
  11936. r = !1;
  11937. return {
  11938. isControl: !0,
  11939. requestStart: function (e) {
  11940. return (
  11941. (r = e.useSnap),
  11942. {
  11943. datas: t,
  11944. parentDirection: e.direction || [1, 1],
  11945. useSnap: r
  11946. }
  11947. );
  11948. },
  11949. request: function (a) {
  11950. return (
  11951. (e += a.deltaWidth),
  11952. (n += a.deltaHeight),
  11953. {
  11954. datas: t,
  11955. parentDist: [e, n],
  11956. parentKeepRatio: a.keepRatio,
  11957. useSnap: r
  11958. }
  11959. );
  11960. },
  11961. requestEnd: function () {
  11962. return { datas: t, isDrag: !0, useSnap: r };
  11963. }
  11964. };
  11965. }
  11966. };
  11967. function el(t, e) {
  11968. return t.map(function (t, n) {
  11969. return Yt(t, e[n], 1, 2);
  11970. });
  11971. }
  11972. function nl(t, e, n) {
  11973. var r = ue(t, e),
  11974. a = ue(t, n) - r;
  11975. return a >= 0 ? a : a + 2 * Math.PI;
  11976. }
  11977. var rl = {
  11978. name: 'warpable',
  11979. ableGroup: 'size',
  11980. props: [
  11981. 'warpable',
  11982. 'renderDirections',
  11983. 'edge',
  11984. 'displayAroundControls'
  11985. ],
  11986. events: ['warpStart', 'warp', 'warpEnd'],
  11987. viewClassName: Ps('warpable'),
  11988. render: function (t, e) {
  11989. var n = t.props,
  11990. r = n.resizable,
  11991. a = n.scalable,
  11992. i = n.warpable,
  11993. o = n.zoom;
  11994. if (r || a || !i) return [];
  11995. var s = t.state,
  11996. l = s.pos1,
  11997. c = s.pos2,
  11998. u = s.pos3,
  11999. f = s.pos4,
  12000. d = el(l, c),
  12001. p = el(c, l),
  12002. g = el(l, u),
  12003. m = el(u, l),
  12004. v = el(u, f),
  12005. h = el(f, u),
  12006. A = el(c, f),
  12007. b = el(f, c);
  12008. return Zr(
  12009. [
  12010. e.createElement('div', {
  12011. className: Go('line'),
  12012. key: 'middeLine1',
  12013. style: os(d, v, o)
  12014. }),
  12015. e.createElement('div', {
  12016. className: Go('line'),
  12017. key: 'middeLine2',
  12018. style: os(p, h, o)
  12019. }),
  12020. e.createElement('div', {
  12021. className: Go('line'),
  12022. key: 'middeLine3',
  12023. style: os(g, A, o)
  12024. }),
  12025. e.createElement('div', {
  12026. className: Go('line'),
  12027. key: 'middeLine4',
  12028. style: os(m, b, o)
  12029. })
  12030. ],
  12031. Kr(vi(t, 'warpable', e)),
  12032. !1
  12033. );
  12034. },
  12035. dragControlCondition: function (t, e) {
  12036. if (e.isRequest) return !1;
  12037. var n = e.inputEvent.target;
  12038. return ve(n, Go('direction')) && ve(n, Go('warpable'));
  12039. },
  12040. dragControlStart: function (t, e) {
  12041. var n = e.datas,
  12042. r = e.inputEvent,
  12043. a = t.props.target,
  12044. i = ms(r.target, n);
  12045. if (!i || !a) return !1;
  12046. var o = t.state,
  12047. s = o.transformOrigin,
  12048. l = o.is3d,
  12049. c = o.targetTransform,
  12050. u = o.targetMatrix,
  12051. f = o.width,
  12052. d = o.height,
  12053. p = o.left,
  12054. g = o.top;
  12055. return (
  12056. (n.datas = {}),
  12057. (n.targetTransform = c),
  12058. (n.warpTargetMatrix = l ? u : Yn(u, 3, 4)),
  12059. (n.targetInverseMatrix = Mn(Tn(n.warpTargetMatrix, 4), 3, 4)),
  12060. (n.direction = i),
  12061. (n.left = p),
  12062. (n.top = g),
  12063. (n.poses = [
  12064. [0, 0],
  12065. [f, 0],
  12066. [0, d],
  12067. [f, d]
  12068. ].map(function (t) {
  12069. return Fn(t, s);
  12070. })),
  12071. (n.nextPoses = n.poses.map(function (t) {
  12072. var e = Kr(t, 2),
  12073. r = e[0],
  12074. a = e[1];
  12075. return Xn(n.warpTargetMatrix, [r, a, 0, 1], 4);
  12076. })),
  12077. (n.startValue = $n(4)),
  12078. (n.prevMatrix = $n(4)),
  12079. (n.absolutePoses = hs(o)),
  12080. (n.posIndexes = Ga(i)),
  12081. _a(t, e),
  12082. La(e, 'matrix3d'),
  12083. (o.snapRenderInfo = { request: e.isRequest, direction: i }),
  12084. !1 !==
  12085. Cs(
  12086. t,
  12087. 'onWarpStart',
  12088. ys(
  12089. t,
  12090. e,
  12091. qr(
  12092. {
  12093. set: function (t) {
  12094. n.startValue = t;
  12095. }
  12096. },
  12097. Fa(e)
  12098. )
  12099. )
  12100. ) && (n.isWarp = !0),
  12101. n.isWarp
  12102. );
  12103. },
  12104. dragControl: function (t, e) {
  12105. var n = e.datas,
  12106. r = e.isRequest,
  12107. a = e.distX,
  12108. i = e.distY,
  12109. o = n.targetInverseMatrix,
  12110. s = n.prevMatrix,
  12111. l = n.isWarp,
  12112. c = n.startValue,
  12113. u = n.poses,
  12114. f = n.posIndexes,
  12115. d = n.absolutePoses;
  12116. if (!l) return !1;
  12117. if ((Oa(e, 'matrix3d'), xi(t, 'warpable'))) {
  12118. var p = f.map(function (t) {
  12119. return d[t];
  12120. });
  12121. p.length > 1 &&
  12122. p.push([(p[0][0] + p[1][0]) / 2, (p[0][1] + p[1][1]) / 2]);
  12123. var g = Ji(t, r, {
  12124. horizontal: p.map(function (t) {
  12125. return t[1] + i;
  12126. }),
  12127. vertical: p.map(function (t) {
  12128. return t[0] + a;
  12129. })
  12130. }),
  12131. m = g.horizontal,
  12132. v = g.vertical;
  12133. (i -= m.offset), (a -= v.offset);
  12134. }
  12135. var h = Ya({ datas: n, distX: a, distY: i }, !0),
  12136. A = n.nextPoses.slice();
  12137. if (
  12138. (f.forEach(function (t) {
  12139. A[t] = Un(A[t], h);
  12140. }),
  12141. !Aa.every(function (t) {
  12142. return (
  12143. (e = t.map(function (t) {
  12144. return u[t];
  12145. })),
  12146. (n = t.map(function (t) {
  12147. return A[t];
  12148. })),
  12149. (r = nl(e[0], e[1], e[2])),
  12150. (a = nl(n[0], n[1], n[2])),
  12151. (i = Math.PI),
  12152. !((r >= i && a <= i) || (r <= i && a >= i))
  12153. );
  12154. var e, n, r, a, i;
  12155. }))
  12156. )
  12157. return !1;
  12158. var b = nr(u[0], u[2], u[1], u[3], A[0], A[2], A[1], A[3]);
  12159. if (!b.length) return !1;
  12160. var w = za(n, Nn(o, b, 4), !0),
  12161. k = Nn(Tn(s, 4), w, 4);
  12162. n.prevMatrix = w;
  12163. var y = Nn(c, w, 4),
  12164. I = Ma(
  12165. n,
  12166. 'matrix3d('.concat(y.join(', '), ')'),
  12167. 'matrix3d('.concat(w.join(', '), ')')
  12168. );
  12169. return (
  12170. ja(e, I),
  12171. Cs(
  12172. t,
  12173. 'onWarp',
  12174. ys(
  12175. t,
  12176. e,
  12177. qr(
  12178. {
  12179. delta: k,
  12180. matrix: y,
  12181. dist: w,
  12182. multiply: Nn,
  12183. transform: I
  12184. },
  12185. ws({ transform: I }, e)
  12186. )
  12187. )
  12188. ),
  12189. !0
  12190. );
  12191. },
  12192. dragControlEnd: function (t, e) {
  12193. var n = e.datas,
  12194. r = e.isDrag;
  12195. return (
  12196. !!n.isWarp &&
  12197. ((n.isWarp = !1), Cs(t, 'onWarpEnd', Is(t, e, {})), r)
  12198. );
  12199. }
  12200. },
  12201. al = Go('area-pieces'),
  12202. il = Go('area-piece'),
  12203. ol = Go('avoid'),
  12204. sl = Go('view-dragging');
  12205. function ll(t) {
  12206. var e = t.areaElement;
  12207. if (e) {
  12208. var n = t.state,
  12209. r = n.width,
  12210. a = n.height;
  12211. Ae(e, ol),
  12212. (e.style.cssText += 'left: 0px; top: 0px; width: '
  12213. .concat(r, 'px; height: ')
  12214. .concat(a, 'px'));
  12215. }
  12216. }
  12217. function cl(t) {
  12218. return t.createElement(
  12219. 'div',
  12220. { key: 'area_pieces', className: al },
  12221. t.createElement('div', { className: il }),
  12222. t.createElement('div', { className: il }),
  12223. t.createElement('div', { className: il }),
  12224. t.createElement('div', { className: il })
  12225. );
  12226. }
  12227. var ul = {
  12228. name: 'dragArea',
  12229. props: ['dragArea', 'passDragArea'],
  12230. events: ['click', 'clickGroup'],
  12231. render: function (t, e) {
  12232. var n = t.props,
  12233. r = n.target,
  12234. a = n.dragArea,
  12235. i = n.groupable,
  12236. o = n.passDragArea,
  12237. s = t.getState(),
  12238. l = s.width,
  12239. c = s.height,
  12240. u = s.renderPoses,
  12241. f = o ? Go('area', 'pass') : Go('area');
  12242. if (i)
  12243. return [
  12244. e.createElement('div', {
  12245. key: 'area',
  12246. ref: Ct(t, 'areaElement'),
  12247. className: f
  12248. }),
  12249. cl(e)
  12250. ];
  12251. if (!r || !a) return [];
  12252. var d = nr(
  12253. [0, 0],
  12254. [l, 0],
  12255. [0, c],
  12256. [l, c],
  12257. u[0],
  12258. u[1],
  12259. u[2],
  12260. u[3]
  12261. ),
  12262. p = d.length ? Zo(d, !0) : 'none';
  12263. return [
  12264. e.createElement('div', {
  12265. key: 'area',
  12266. ref: Ct(t, 'areaElement'),
  12267. className: f,
  12268. style: {
  12269. top: '0px',
  12270. left: '0px',
  12271. width: ''.concat(l, 'px'),
  12272. height: ''.concat(c, 'px'),
  12273. transformOrigin: '0 0',
  12274. transform: p
  12275. }
  12276. }),
  12277. cl(e)
  12278. ];
  12279. },
  12280. dragStart: function (t, e) {
  12281. var n = e.datas,
  12282. r = e.clientX,
  12283. a = e.clientY;
  12284. if (!e.inputEvent) return !1;
  12285. n.isDragArea = !1;
  12286. var i = t.areaElement,
  12287. o = t.state,
  12288. s = o.moveableClientRect,
  12289. l = o.renderPoses,
  12290. c = o.rootMatrix,
  12291. u = o.is3d,
  12292. f = s.left,
  12293. d = s.top,
  12294. p = ns(l),
  12295. g = p.left,
  12296. m = p.top,
  12297. v = p.width,
  12298. h = p.height,
  12299. A = Kr(_s(c, [r - f, a - d], u ? 4 : 3), 2),
  12300. b = A[0],
  12301. w = A[1],
  12302. k = [
  12303. { left: g, top: m, width: v, height: (w -= m) - 10 },
  12304. { left: g, top: m, width: (b -= g) - 10, height: h },
  12305. { left: g, top: m + w + 10, width: v, height: h - w - 10 },
  12306. { left: g + b + 10, top: m, width: v - b - 10, height: h }
  12307. ],
  12308. y = [].slice.call(i.nextElementSibling.children);
  12309. k.forEach(function (t, e) {
  12310. y[e].style.cssText = 'left: '
  12311. .concat(t.left, 'px;top: ')
  12312. .concat(t.top, 'px; width: ')
  12313. .concat(t.width, 'px; height: ')
  12314. .concat(t.height, 'px;');
  12315. }),
  12316. he(i, ol),
  12317. (o.disableNativeEvent = !0);
  12318. },
  12319. drag: function (t, e) {
  12320. var n = e.datas,
  12321. r = e.inputEvent;
  12322. if ((this.enableNativeEvent(t), !r)) return !1;
  12323. n.isDragArea || ((n.isDragArea = !0), ll(t));
  12324. },
  12325. dragEnd: function (t, e) {
  12326. this.enableNativeEvent(t);
  12327. var n = e.inputEvent,
  12328. r = e.datas;
  12329. if (!n) return !1;
  12330. r.isDragArea || ll(t);
  12331. },
  12332. dragGroupStart: function (t, e) {
  12333. return this.dragStart(t, e);
  12334. },
  12335. dragGroup: function (t, e) {
  12336. return this.drag(t, e);
  12337. },
  12338. dragGroupEnd: function (t, e) {
  12339. return this.dragEnd(t, e);
  12340. },
  12341. unset: function (t) {
  12342. ll(t), (t.state.disableNativeEvent = !1);
  12343. },
  12344. enableNativeEvent: function (t) {
  12345. var e = t.state;
  12346. e.disableNativeEvent &&
  12347. ne(function () {
  12348. e.disableNativeEvent = !1;
  12349. });
  12350. }
  12351. },
  12352. fl = Jr('origin', {
  12353. props: ['origin', 'svgOrigin'],
  12354. render: function (t, e) {
  12355. var n,
  12356. r = t.props,
  12357. a = r.zoom,
  12358. i = r.svgOrigin,
  12359. o = r.groupable,
  12360. s = t.getState(),
  12361. l = s.beforeOrigin,
  12362. c = s.rotation,
  12363. u = s.svg,
  12364. f = s.allMatrix,
  12365. d = s.is3d,
  12366. p = s.left,
  12367. g = s.top,
  12368. m = s.offsetWidth,
  12369. v = s.offsetHeight;
  12370. if (!o && u && i) {
  12371. var h = Kr(js(i, m, v), 2);
  12372. n = ss(c, a, Fn(ts(f, [h[0], h[1]], d ? 4 : 3), [p, g]));
  12373. } else n = ss(c, a, l);
  12374. return [
  12375. e.createElement('div', {
  12376. className: Go('control', 'origin'),
  12377. style: n,
  12378. key: 'beforeOrigin'
  12379. })
  12380. ];
  12381. }
  12382. });
  12383. function dl(t) {
  12384. var e = t.scrollContainer;
  12385. return [e.scrollLeft, e.scrollTop];
  12386. }
  12387. var pl = {
  12388. name: 'scrollable',
  12389. canPinch: !0,
  12390. props: [
  12391. 'scrollable',
  12392. 'scrollContainer',
  12393. 'scrollThreshold',
  12394. 'scrollThrottleTime',
  12395. 'getScrollPosition',
  12396. 'scrollOptions'
  12397. ],
  12398. events: ['scroll', 'scrollGroup'],
  12399. dragRelation: 'strong',
  12400. dragStart: function (t, e) {
  12401. var n = t.props,
  12402. r = n.scrollContainer,
  12403. a = void 0 === r ? t.getContainer() : r,
  12404. i = n.scrollOptions,
  12405. o = new wr(),
  12406. s = Gs(a, !0);
  12407. (e.datas.dragScroll = o), (t.state.dragScroll = o);
  12408. var l = e.isControl ? 'controlGesto' : 'targetGesto',
  12409. c = e.targets;
  12410. o
  12411. .on('scroll', function (n) {
  12412. var r = n.container,
  12413. a = n.direction,
  12414. i = ys(t, e, { scrollContainer: r, direction: a }),
  12415. o = c ? 'onScrollGroup' : 'onScroll';
  12416. c && (i.targets = c), Cs(t, o, i);
  12417. })
  12418. .on('move', function (e) {
  12419. var n = e.offsetX,
  12420. r = e.offsetY,
  12421. a = e.inputEvent;
  12422. t[l].scrollBy(n, r, a.inputEvent, !0);
  12423. })
  12424. .on('scrollDrag', function (e) {
  12425. (0, e.next)(t[l].getCurrentEvent());
  12426. }),
  12427. o.dragStart(e, qr({ container: s }, i));
  12428. },
  12429. checkScroll: function (t, e) {
  12430. var n = e.datas.dragScroll;
  12431. if (n) {
  12432. var r = t.props,
  12433. a = r.scrollContainer,
  12434. i = void 0 === a ? t.getContainer() : a,
  12435. o = r.scrollThreshold,
  12436. s = void 0 === o ? 0 : o,
  12437. l = r.scrollThrottleTime,
  12438. c = void 0 === l ? 0 : l,
  12439. u = r.getScrollPosition,
  12440. f = void 0 === u ? dl : u,
  12441. d = r.scrollOptions;
  12442. return (
  12443. n.drag(
  12444. e,
  12445. qr(
  12446. {
  12447. container: i,
  12448. threshold: s,
  12449. throttleTime: c,
  12450. getScrollPosition: function (t) {
  12451. return f({
  12452. scrollContainer: t.container,
  12453. direction: t.direction
  12454. });
  12455. }
  12456. },
  12457. d
  12458. )
  12459. ),
  12460. !0
  12461. );
  12462. }
  12463. },
  12464. drag: function (t, e) {
  12465. return this.checkScroll(t, e);
  12466. },
  12467. dragEnd: function (t, e) {
  12468. e.datas.dragScroll.dragEnd(), (e.datas.dragScroll = null);
  12469. },
  12470. dragControlStart: function (t, e) {
  12471. return this.dragStart(t, qr(qr({}, e), { isControl: !0 }));
  12472. },
  12473. dragControl: function (t, e) {
  12474. return this.drag(t, e);
  12475. },
  12476. dragControlEnd: function (t, e) {
  12477. return this.dragEnd(t, e);
  12478. },
  12479. dragGroupStart: function (t, e) {
  12480. return this.dragStart(
  12481. t,
  12482. qr(qr({}, e), { targets: t.props.targets })
  12483. );
  12484. },
  12485. dragGroup: function (t, e) {
  12486. return this.drag(t, qr(qr({}, e), { targets: t.props.targets }));
  12487. },
  12488. dragGroupEnd: function (t, e) {
  12489. return this.dragEnd(
  12490. t,
  12491. qr(qr({}, e), { targets: t.props.targets })
  12492. );
  12493. },
  12494. dragGroupControlStart: function (t, e) {
  12495. return this.dragStart(
  12496. t,
  12497. qr(qr({}, e), { targets: t.props.targets, isControl: !0 })
  12498. );
  12499. },
  12500. dragGroupControl: function (t, e) {
  12501. return this.drag(t, qr(qr({}, e), { targets: t.props.targets }));
  12502. },
  12503. dragGroupControEnd: function (t, e) {
  12504. return this.dragEnd(
  12505. t,
  12506. qr(qr({}, e), { targets: t.props.targets })
  12507. );
  12508. },
  12509. unset: function (t) {
  12510. var e,
  12511. n = t.state;
  12512. null === (e = n.dragScroll) || void 0 === e || e.dragEnd(),
  12513. (n.dragScroll = null);
  12514. }
  12515. },
  12516. gl = {
  12517. name: '',
  12518. props: [
  12519. 'target',
  12520. 'dragTarget',
  12521. 'dragContainer',
  12522. 'container',
  12523. 'warpSelf',
  12524. 'rootContainer',
  12525. 'useResizeObserver',
  12526. 'useMutationObserver',
  12527. 'zoom',
  12528. 'dragFocusedInput',
  12529. 'transformOrigin',
  12530. 'ables',
  12531. 'className',
  12532. 'pinchThreshold',
  12533. 'pinchOutside',
  12534. 'triggerAblesSimultaneously',
  12535. 'checkInput',
  12536. 'cspNonce',
  12537. 'translateZ',
  12538. 'hideDefaultLines',
  12539. 'props',
  12540. 'flushSync',
  12541. 'stopPropagation',
  12542. 'preventClickEventOnDrag',
  12543. 'preventClickDefault',
  12544. 'viewContainer',
  12545. 'persistData',
  12546. 'useAccuratePosition',
  12547. 'firstRenderState',
  12548. 'linePadding',
  12549. 'controlPadding',
  12550. 'preventDefault',
  12551. 'requestStyles'
  12552. ],
  12553. events: ['changeTargets']
  12554. },
  12555. ml = Jr('padding', {
  12556. props: ['padding'],
  12557. render: function (t, e) {
  12558. var n = t.props;
  12559. if (n.dragArea) return [];
  12560. var r = Zs(n.padding || {}),
  12561. a = r.left,
  12562. i = r.top,
  12563. o = r.right,
  12564. s = r.bottom,
  12565. l = t.getState(),
  12566. c = l.renderPoses,
  12567. u = [l.pos1, l.pos2, l.pos3, l.pos4],
  12568. f = [];
  12569. return (
  12570. a > 0 && f.push([0, 2]),
  12571. i > 0 && f.push([0, 1]),
  12572. o > 0 && f.push([1, 3]),
  12573. s > 0 && f.push([2, 3]),
  12574. f.map(function (t, n) {
  12575. var r = Kr(t, 2),
  12576. a = r[0],
  12577. i = r[1],
  12578. o = nr(
  12579. [0, 0],
  12580. [100, 0],
  12581. [0, 100],
  12582. [100, 100],
  12583. u[a],
  12584. u[i],
  12585. c[a],
  12586. c[i]
  12587. );
  12588. if (o.length)
  12589. return e.createElement('div', {
  12590. key: 'padding'.concat(n),
  12591. className: Go('padding'),
  12592. style: { transform: Zo(o, !0) }
  12593. });
  12594. })
  12595. );
  12596. }
  12597. }),
  12598. vl = ['nw', 'ne', 'se', 'sw'];
  12599. function hl(t, e) {
  12600. var n = t[0] + t[1],
  12601. r = n > e ? e / n : 1;
  12602. return (t[0] *= r), (t[1] = e - t[1] * r), t;
  12603. }
  12604. var Al = [1, 2, 5, 6],
  12605. bl = [0, 3, 4, 7],
  12606. wl = [1, -1, -1, 1],
  12607. kl = [1, 1, -1, -1];
  12608. function yl(t, e, n, r, a, i, o, s) {
  12609. void 0 === a && (a = 0),
  12610. void 0 === i && (i = 0),
  12611. void 0 === o && (o = n),
  12612. void 0 === s && (s = r);
  12613. var l = [],
  12614. c = !1,
  12615. u = t.filter(function (t) {
  12616. return !t.virtual;
  12617. }),
  12618. f = u.map(function (t) {
  12619. var u = t.horizontal,
  12620. f = t.vertical,
  12621. d = t.pos;
  12622. if ((f && !c && ((c = !0), l.push('/')), c)) {
  12623. var p = Math.max(0, 1 === f ? d[1] - i : s - d[1]);
  12624. return l.push(Ts(p, r, e)), p;
  12625. }
  12626. return (
  12627. (p = Math.max(0, 1 === u ? d[0] - a : o - d[0])),
  12628. l.push(Ts(p, n, e)),
  12629. p
  12630. );
  12631. });
  12632. return { radiusPoses: u, styles: l, raws: f };
  12633. }
  12634. function Il(t) {
  12635. for (var e = [0, 0], n = [0, 0], r = t.length, a = 0; a < r; ++a) {
  12636. var i = t[a];
  12637. i.sub &&
  12638. (i.horizontal &&
  12639. (0 === e[1] && (e[0] = a),
  12640. (e[1] = a - e[0] + 1),
  12641. (n[0] = a + 1)),
  12642. i.vertical && (0 === n[1] && (n[0] = a), (n[1] = a - n[0] + 1)));
  12643. }
  12644. return { horizontalRange: e, verticalRange: n };
  12645. }
  12646. function El(t, e, n, r, a, i, o) {
  12647. var s, l, c, u;
  12648. void 0 === i && (i = [0, 0]), void 0 === o && (o = !1);
  12649. var f = t.indexOf('/'),
  12650. d = (f > -1 ? t.slice(0, f) : t).length,
  12651. p = t.slice(0, d),
  12652. g = t.slice(d + 1),
  12653. m = p.length,
  12654. v = g.length,
  12655. h = v > 0,
  12656. A = Kr(p, 4),
  12657. b = A[0],
  12658. w = void 0 === b ? '0px' : b,
  12659. k = A[1],
  12660. y = void 0 === k ? w : k,
  12661. I = A[2],
  12662. E = void 0 === I ? w : I,
  12663. C = A[3],
  12664. B = void 0 === C ? y : C,
  12665. x = Kr(g, 4),
  12666. S = x[0],
  12667. D = void 0 === S ? w : S,
  12668. R = x[1],
  12669. Q = void 0 === R ? (h ? D : y) : R,
  12670. _ = x[2],
  12671. O = void 0 === _ ? (h ? D : E) : _,
  12672. M = x[3],
  12673. T = void 0 === M ? (h ? Q : B) : M,
  12674. z = [w, y, E, B].map(function (t) {
  12675. return ie(t, e);
  12676. }),
  12677. P = [D, Q, O, T].map(function (t) {
  12678. return ie(t, n);
  12679. }),
  12680. Y = z.slice(),
  12681. G = P.slice();
  12682. (s = Kr(hl([Y[0], Y[1]], e), 2)),
  12683. (Y[0] = s[0]),
  12684. (Y[1] = s[1]),
  12685. (l = Kr(hl([Y[3], Y[2]], e), 2)),
  12686. (Y[3] = l[0]),
  12687. (Y[2] = l[1]),
  12688. (c = Kr(hl([G[0], G[3]], n), 2)),
  12689. (G[0] = c[0]),
  12690. (G[3] = c[1]),
  12691. (u = Kr(hl([G[1], G[2]], n), 2)),
  12692. (G[1] = u[0]),
  12693. (G[2] = u[1]);
  12694. var N = o ? Y : Y.slice(0, Math.max(i[0], m)),
  12695. U = o ? G : G.slice(0, Math.max(i[1], v));
  12696. return Zr(
  12697. Zr(
  12698. [],
  12699. Kr(
  12700. N.map(function (t, e) {
  12701. var i = vl[e];
  12702. return {
  12703. virtual: e >= m,
  12704. horizontal: wl[e],
  12705. vertical: 0,
  12706. pos: [r + t, a + (-1 === kl[e] ? n : 0)],
  12707. sub: !0,
  12708. raw: z[e],
  12709. direction: i
  12710. };
  12711. })
  12712. ),
  12713. !1
  12714. ),
  12715. Kr(
  12716. U.map(function (t, n) {
  12717. var i = vl[n];
  12718. return {
  12719. virtual: n >= v,
  12720. horizontal: 0,
  12721. vertical: kl[n],
  12722. pos: [r + (-1 === wl[n] ? e : 0), a + t],
  12723. sub: !0,
  12724. raw: P[n],
  12725. direction: i
  12726. };
  12727. })
  12728. ),
  12729. !1
  12730. );
  12731. }
  12732. var Cl = [
  12733. [0, -1, 'n'],
  12734. [1, 0, 'e']
  12735. ],
  12736. Bl = [
  12737. [-1, -1, 'nw'],
  12738. [0, -1, 'n'],
  12739. [1, -1, 'ne'],
  12740. [1, 0, 'e'],
  12741. [1, 1, 'se'],
  12742. [0, 1, 's'],
  12743. [-1, 1, 'sw'],
  12744. [-1, 0, 'w']
  12745. ];
  12746. function xl(t, e, n) {
  12747. var r = t.props.clipRelative,
  12748. a = t.state,
  12749. i = a.width,
  12750. o = a.height,
  12751. s = e,
  12752. l = s.type,
  12753. c = s.poses,
  12754. u = 'rect' === l,
  12755. f = 'circle' === l;
  12756. if ('polygon' === l)
  12757. return n.map(function (t) {
  12758. return ''.concat(Ts(t[0], i, r), ' ').concat(Ts(t[1], o, r));
  12759. });
  12760. if (u || 'inset' === l) {
  12761. var d = n[1][1],
  12762. p = n[3][0],
  12763. g = n[7][0],
  12764. m = n[5][1];
  12765. if (u)
  12766. return [d, p, m, g].map(function (t) {
  12767. return ''.concat(t, 'px');
  12768. });
  12769. var v = [d, i - p, o - m, g].map(function (t, e) {
  12770. return Ts(t, e % 2 ? i : o, r);
  12771. });
  12772. if (n.length > 8) {
  12773. var h = Kr(Fn(n[4], n[0]), 2),
  12774. A = h[0],
  12775. b = h[1];
  12776. v.push.apply(
  12777. v,
  12778. Zr(
  12779. ['round'],
  12780. Kr(
  12781. yl(
  12782. c.slice(8).map(function (t, e) {
  12783. return qr(qr({}, t), { pos: n[e] });
  12784. }),
  12785. r,
  12786. A,
  12787. b,
  12788. g,
  12789. d,
  12790. p,
  12791. m
  12792. ).styles
  12793. ),
  12794. !1
  12795. )
  12796. );
  12797. }
  12798. return v;
  12799. }
  12800. if (f || 'ellipse' === l) {
  12801. var w = n[0],
  12802. k = Ts(
  12803. qs(n[1][1] - w[1]),
  12804. f ? Math.sqrt((i * i + o * o) / 2) : o,
  12805. r
  12806. );
  12807. return (
  12808. (v = f ? [k] : [Ts(qs(n[2][0] - w[0]), i, r), k]).push(
  12809. 'at',
  12810. Ts(w[0], i, r),
  12811. Ts(w[1], o, r)
  12812. ),
  12813. v
  12814. );
  12815. }
  12816. }
  12817. function Sl(t, e, n, r) {
  12818. var a = [r, (r + e) / 2, e],
  12819. i = [t, (t + n) / 2, n];
  12820. return Bl.map(function (t) {
  12821. var e = Kr(t, 3),
  12822. n = e[0],
  12823. r = e[1],
  12824. o = e[2],
  12825. s = a[n + 1],
  12826. l = i[r + 1];
  12827. return {
  12828. vertical: qs(r),
  12829. horizontal: qs(n),
  12830. direction: o,
  12831. pos: [s, l]
  12832. };
  12833. });
  12834. }
  12835. function Dl(t) {
  12836. var e = [1 / 0, -1 / 0],
  12837. n = [1 / 0, -1 / 0];
  12838. return (
  12839. t.forEach(function (t) {
  12840. var r = t.pos;
  12841. (e[0] = Math.min(e[0], r[0])),
  12842. (e[1] = Math.max(e[1], r[0])),
  12843. (n[0] = Math.min(n[0], r[1])),
  12844. (n[1] = Math.max(n[1], r[1]));
  12845. }),
  12846. [qs(e[1] - e[0]), qs(n[1] - n[0])]
  12847. );
  12848. }
  12849. function Rl(t, e, n, r, a) {
  12850. var i, o, s, l, c, u, f, d, p;
  12851. if (t) {
  12852. var g = a;
  12853. if (!g) {
  12854. var m = oi(t),
  12855. v = m('clipPath');
  12856. g = 'none' !== v ? v : m('clip');
  12857. }
  12858. if ((g && 'none' !== g && 'auto' !== g) || (g = r)) {
  12859. var h = Kt(g),
  12860. A = h.prefix,
  12861. b = void 0 === A ? g : A,
  12862. w = h.value,
  12863. k = void 0 === w ? '' : w,
  12864. y = 'circle' === b,
  12865. I = ' ';
  12866. if ('polygon' === b) {
  12867. I = ',';
  12868. var E = (O = qt(k || '0% 0%, 100% 0%, 100% 100%, 0% 100%')).map(
  12869. function (t) {
  12870. var r = Kr(t.split(' '), 2),
  12871. a = r[0],
  12872. i = r[1];
  12873. return {
  12874. vertical: 1,
  12875. horizontal: 1,
  12876. pos: [ie(a, e), ie(i, n)]
  12877. };
  12878. }
  12879. ),
  12880. C = Er(
  12881. E.map(function (t) {
  12882. return t.pos;
  12883. })
  12884. );
  12885. return {
  12886. type: b,
  12887. clipText: g,
  12888. poses: E,
  12889. splitter: I,
  12890. left: C.minX,
  12891. right: C.maxX,
  12892. top: C.minY,
  12893. bottom: C.maxY
  12894. };
  12895. }
  12896. if (y || 'ellipse' === b) {
  12897. var B,
  12898. x,
  12899. S,
  12900. D = '',
  12901. R = '',
  12902. Q = 0,
  12903. _ = 0,
  12904. O = Vt(k);
  12905. if (y)
  12906. (B = void 0 === (o = (i = Kr(O, 4))[0]) ? '50%' : o),
  12907. (D = void 0 === (s = i[2]) ? '50%' : s),
  12908. (R = void 0 === (l = i[3]) ? '50%' : l),
  12909. (Q = ie(B, Math.sqrt((e * e + n * n) / 2))),
  12910. (_ = Q);
  12911. else
  12912. (x = void 0 === (u = (c = Kr(O, 5))[0]) ? '50%' : u),
  12913. (S = void 0 === (f = c[1]) ? '50%' : f),
  12914. (D = void 0 === (d = c[3]) ? '50%' : d),
  12915. (R = void 0 === (p = c[4]) ? '50%' : p),
  12916. (Q = ie(x, e)),
  12917. (_ = ie(S, n));
  12918. var M = [ie(D, e), ie(R, n)];
  12919. return (
  12920. (E = Zr(
  12921. [{ vertical: 1, horizontal: 1, pos: M, direction: 'nesw' }],
  12922. Kr(
  12923. Cl.slice(0, y ? 1 : 2).map(function (t) {
  12924. return {
  12925. vertical: qs(t[1]),
  12926. horizontal: t[0],
  12927. direction: t[2],
  12928. sub: !0,
  12929. pos: [M[0] + t[0] * Q, M[1] + t[1] * _]
  12930. };
  12931. })
  12932. ),
  12933. !1
  12934. )),
  12935. {
  12936. type: b,
  12937. clipText: g,
  12938. radiusX: Q,
  12939. radiusY: _,
  12940. left: M[0] - Q,
  12941. top: M[1] - _,
  12942. right: M[0] + Q,
  12943. bottom: M[1] + _,
  12944. poses: E,
  12945. splitter: I
  12946. }
  12947. );
  12948. }
  12949. if ('inset' === b) {
  12950. var T = (O = Vt(k || '0 0 0 0')).indexOf('round'),
  12951. z = (T > -1 ? O.slice(0, T) : O).length,
  12952. P = O.slice(z + 1),
  12953. Y = Kr(O.slice(0, z), 4),
  12954. G = Y[0],
  12955. N = Y[1],
  12956. U = void 0 === N ? G : N,
  12957. F = Y[2],
  12958. L = void 0 === F ? G : F,
  12959. X = Y[3],
  12960. j = void 0 === X ? U : X,
  12961. W = Kr(
  12962. [G, L].map(function (t) {
  12963. return ie(t, n);
  12964. }),
  12965. 2
  12966. ),
  12967. H = W[0],
  12968. V = W[1],
  12969. q = Kr(
  12970. [j, U].map(function (t) {
  12971. return ie(t, e);
  12972. }),
  12973. 2
  12974. ),
  12975. K = q[0],
  12976. Z = q[1],
  12977. J = e - Z,
  12978. $ = n - V,
  12979. tt = El(P, J - K, $ - H, K, H);
  12980. return {
  12981. type: 'inset',
  12982. clipText: g,
  12983. poses: (E = Zr(Zr([], Kr(Sl(H, J, $, K)), !1), Kr(tt), !1)),
  12984. top: H,
  12985. left: K,
  12986. right: J,
  12987. bottom: $,
  12988. radius: P,
  12989. splitter: I
  12990. };
  12991. }
  12992. if ('rect' === b) {
  12993. I = ',';
  12994. var et = Kr(
  12995. (O = qt(
  12996. k || '0px, '.concat(e, 'px, ').concat(n, 'px, 0px')
  12997. )).map(function (t) {
  12998. return Zt(t).value;
  12999. }),
  13000. 4
  13001. ),
  13002. nt = et[0];
  13003. return {
  13004. type: 'rect',
  13005. clipText: g,
  13006. poses: (E = Sl(nt, (Z = et[1]), (V = et[2]), (K = et[3]))),
  13007. top: nt,
  13008. right: Z,
  13009. bottom: V,
  13010. left: K,
  13011. values: O,
  13012. splitter: I
  13013. };
  13014. }
  13015. }
  13016. }
  13017. }
  13018. function Ql(t, e) {
  13019. var n = Kr(Qa(t, e), 2),
  13020. r = n[0],
  13021. a = n[1],
  13022. i = e.datas,
  13023. o = i.clipPath,
  13024. s = i.clipIndex,
  13025. l = o,
  13026. c = l.type,
  13027. u = l.poses,
  13028. f = l.splitter,
  13029. d = u.map(function (t) {
  13030. return t.pos;
  13031. });
  13032. if ('polygon' === c) d.splice(s, 0, [r, a]);
  13033. else {
  13034. if ('inset' !== c) return;
  13035. var p = Al.indexOf(s),
  13036. g = bl.indexOf(s),
  13037. m = u.length;
  13038. if (
  13039. ((function (t, e, n, r, a, i, o, s, l, c, u) {
  13040. void 0 === c && (c = 0), void 0 === u && (u = 0);
  13041. var f = Il(t.slice(n)),
  13042. d = f.horizontalRange,
  13043. p = f.verticalRange;
  13044. if (r > -1)
  13045. for (
  13046. var g = 1 === wl[r] ? i - c : s - i, m = d[1];
  13047. m <= r;
  13048. ++m
  13049. ) {
  13050. var v = 1 === kl[m] ? u : l,
  13051. h = 0;
  13052. if (
  13053. (r === m
  13054. ? (h = i)
  13055. : 0 === m
  13056. ? (h = c + g)
  13057. : -1 === wl[m] && (h = s - (e[n][0] - c)),
  13058. t.splice(n + m, 0, {
  13059. horizontal: wl[m],
  13060. vertical: 0,
  13061. pos: [h, v]
  13062. }),
  13063. e.splice(n + m, 0, [h, v]),
  13064. 0 === m)
  13065. )
  13066. break;
  13067. }
  13068. else if (a > -1) {
  13069. var A = 1 === kl[a] ? o - u : l - o;
  13070. if (0 === d[1] && 0 === p[1]) {
  13071. var b = [c + A, u];
  13072. t.push({ horizontal: wl[0], vertical: 0, pos: b }),
  13073. e.push(b);
  13074. }
  13075. var w = p[0];
  13076. for (
  13077. m = p[1];
  13078. m <= a &&
  13079. ((h = 1 === wl[m] ? c : s),
  13080. (v = 0),
  13081. a === m
  13082. ? (v = o)
  13083. : 0 === m
  13084. ? (v = u + A)
  13085. : 1 === kl[m]
  13086. ? (v = e[n + w][1])
  13087. : -1 === kl[m] && (v = l - (e[n + w][1] - u)),
  13088. t.push({ horizontal: 0, vertical: kl[m], pos: [h, v] }),
  13089. e.push([h, v]),
  13090. 0 !== m);
  13091. ++m
  13092. );
  13093. }
  13094. })(u, d, 8, p, g, r, a, d[4][0], d[4][1], d[0][0], d[0][1]),
  13095. m === u.length)
  13096. )
  13097. return;
  13098. }
  13099. var v = xl(t, o, d),
  13100. h = ''.concat(c, '(').concat(v.join(f), ')');
  13101. Cs(
  13102. t,
  13103. 'onClip',
  13104. ys(
  13105. t,
  13106. e,
  13107. qr(
  13108. {
  13109. clipEventType: 'added',
  13110. clipType: c,
  13111. poses: d,
  13112. clipStyles: v,
  13113. clipStyle: h,
  13114. distX: 0,
  13115. distY: 0
  13116. },
  13117. ws({ clipPath: h }, e)
  13118. )
  13119. )
  13120. );
  13121. }
  13122. function _l(t, e) {
  13123. var n = e.datas,
  13124. r = n.clipPath,
  13125. a = n.clipIndex,
  13126. i = r,
  13127. o = i.type,
  13128. s = i.poses,
  13129. l = i.splitter,
  13130. c = s.map(function (t) {
  13131. return t.pos;
  13132. }),
  13133. u = c.length;
  13134. if ('polygon' === o) s.splice(a, 1), c.splice(a, 1);
  13135. else {
  13136. if ('inset' !== o) return;
  13137. if (a < 8) return;
  13138. if (
  13139. ((function (t, e, n, r, a) {
  13140. void 0 === a && (a = e.length);
  13141. var i = Il(t.slice(r)),
  13142. o = i.horizontalRange,
  13143. s = i.verticalRange,
  13144. l = n - r,
  13145. c = 0;
  13146. if (0 === l) c = a;
  13147. else if (l > 0 && l < o[1]) c = o[1] - l;
  13148. else {
  13149. if (!(l >= s[0])) return;
  13150. c = s[0] + s[1] - l;
  13151. }
  13152. t.splice(n, c), e.splice(n, c);
  13153. })(s, c, a, 8, u),
  13154. u === s.length)
  13155. )
  13156. return;
  13157. }
  13158. var f = xl(t, r, c),
  13159. d = ''.concat(o, '(').concat(f.join(l), ')');
  13160. Cs(
  13161. t,
  13162. 'onClip',
  13163. ys(
  13164. t,
  13165. e,
  13166. qr(
  13167. {
  13168. clipEventType: 'removed',
  13169. clipType: o,
  13170. poses: c,
  13171. clipStyles: f,
  13172. clipStyle: d,
  13173. distX: 0,
  13174. distY: 0
  13175. },
  13176. ws({ clipPath: d }, e)
  13177. )
  13178. )
  13179. );
  13180. }
  13181. var Ol = {
  13182. name: 'clippable',
  13183. props: [
  13184. 'clippable',
  13185. 'defaultClipPath',
  13186. 'customClipPath',
  13187. 'keepRatio',
  13188. 'clipRelative',
  13189. 'clipArea',
  13190. 'dragWithClip',
  13191. 'clipTargetBounds',
  13192. 'clipVerticalGuidelines',
  13193. 'clipHorizontalGuidelines',
  13194. 'clipSnapThreshold'
  13195. ],
  13196. events: ['clipStart', 'clip', 'clipEnd'],
  13197. css: [
  13198. '.control.clip-control {\nbackground: #6d6;\ncursor: pointer;\n}\n.control.clip-control.clip-radius {\nbackground: #d66;\n}\n.line.clip-line {\nbackground: #6e6;\ncursor: move;\nz-index: 1;\n}\n.clip-area {\nposition: absolute;\ntop: 0;\nleft: 0;\n}\n.clip-ellipse {\nposition: absolute;\ncursor: move;\nborder: 1px solid #6d6;\nborder: var(--zoompx) solid #6d6;\nborder-radius: 50%;\ntransform-origin: 0px 0px;\n}',
  13199. ':host {\n--bounds-color: #d66;\n}',
  13200. '.guideline {\npointer-events: none;\nz-index: 2;\n}',
  13201. '.line.guideline.bounds {\nbackground: #d66;\nbackground: var(--bounds-color);\n}'
  13202. ],
  13203. render: function (t, e) {
  13204. var n = t.props,
  13205. r = n.customClipPath,
  13206. a = n.defaultClipPath,
  13207. i = n.clipArea,
  13208. o = n.zoom,
  13209. s = n.groupable,
  13210. l = t.getState(),
  13211. c = l.target,
  13212. u = l.width,
  13213. f = l.height,
  13214. d = l.allMatrix,
  13215. p = l.is3d,
  13216. g = l.left,
  13217. m = l.top,
  13218. v = l.pos1,
  13219. h = l.pos2,
  13220. A = l.pos3,
  13221. b = l.pos4,
  13222. w = l.clipPathState,
  13223. k = l.snapBoundInfos,
  13224. y = l.rotation;
  13225. if (!c || s) return [];
  13226. var I = Rl(c, u, f, a || 'inset', w || r);
  13227. if (!I) return [];
  13228. var E = p ? 4 : 3,
  13229. C = I.type,
  13230. B = I.poses.map(function (t) {
  13231. var e = ts(d, t.pos, E);
  13232. return [e[0] - g, e[1] - m];
  13233. }),
  13234. x = [],
  13235. S = [],
  13236. D = 'rect' === C,
  13237. R = 'inset' === C,
  13238. Q = 'polygon' === C;
  13239. if (D || R || Q) {
  13240. var _ = R ? B.slice(0, 8) : B;
  13241. S = _.map(function (t, n) {
  13242. var r = 0 === n ? _[_.length - 1] : _[n - 1],
  13243. a = ue(r, t),
  13244. i = is(r, t);
  13245. return e.createElement('div', {
  13246. key: 'clipLine'.concat(n),
  13247. className: Go('line', 'clip-line', 'snap-control'),
  13248. 'data-clip-index': n,
  13249. style: {
  13250. width: ''.concat(i, 'px'),
  13251. transform: 'translate('
  13252. .concat(r[0], 'px, ')
  13253. .concat(r[1], 'px) rotate(')
  13254. .concat(a, 'rad) scaleY(')
  13255. .concat(o, ')')
  13256. }
  13257. });
  13258. });
  13259. }
  13260. if (
  13261. ((x = B.map(function (t, n) {
  13262. return e.createElement('div', {
  13263. key: 'clipControl'.concat(n),
  13264. className: Go('control', 'clip-control', 'snap-control'),
  13265. 'data-clip-index': n,
  13266. style: {
  13267. transform: 'translate('
  13268. .concat(t[0], 'px, ')
  13269. .concat(t[1], 'px) rotate(')
  13270. .concat(y, 'rad) scale(')
  13271. .concat(o, ')')
  13272. }
  13273. });
  13274. })),
  13275. R &&
  13276. x.push.apply(
  13277. x,
  13278. Zr(
  13279. [],
  13280. Kr(
  13281. B.slice(8).map(function (t, n) {
  13282. return e.createElement('div', {
  13283. key: 'clipRadiusControl'.concat(n),
  13284. className: Go(
  13285. 'control',
  13286. 'clip-control',
  13287. 'clip-radius',
  13288. 'snap-control'
  13289. ),
  13290. 'data-clip-index': 8 + n,
  13291. style: {
  13292. transform: 'translate('
  13293. .concat(t[0], 'px, ')
  13294. .concat(t[1], 'px) rotate(')
  13295. .concat(y, 'rad) scale(')
  13296. .concat(o, ')')
  13297. }
  13298. });
  13299. })
  13300. ),
  13301. !1
  13302. )
  13303. ),
  13304. 'circle' === C || 'ellipse' === C)
  13305. ) {
  13306. var O = I.left,
  13307. M = I.top,
  13308. T = I.radiusX,
  13309. z = I.radiusY,
  13310. P = Kr(Fn(ts(d, [O, M], E), ts(d, [0, 0], E)), 2),
  13311. Y = P[0],
  13312. G = P[1],
  13313. N = 'none';
  13314. if (!i) {
  13315. for (
  13316. var U = Math.max(10, T / 5, z / 5), F = [], L = 0;
  13317. L <= U;
  13318. ++L
  13319. ) {
  13320. var X = ((2 * Math.PI) / U) * L;
  13321. F.push([
  13322. T + (T - o) * Math.cos(X),
  13323. z + (z - o) * Math.sin(X)
  13324. ]);
  13325. }
  13326. F.push([T, -2]),
  13327. F.push([-2, -2]),
  13328. F.push([-2, 2 * z + 2]),
  13329. F.push([2 * T + 2, 2 * z + 2]),
  13330. F.push([2 * T + 2, -2]),
  13331. F.push([T, -2]),
  13332. (N = 'polygon('.concat(
  13333. F.map(function (t) {
  13334. return ''.concat(t[0], 'px ').concat(t[1], 'px');
  13335. }).join(', '),
  13336. ')'
  13337. ));
  13338. }
  13339. x.push(
  13340. e.createElement('div', {
  13341. key: 'clipEllipse',
  13342. className: Go('clip-ellipse', 'snap-control'),
  13343. style: {
  13344. width: ''.concat(2 * T, 'px'),
  13345. height: ''.concat(2 * z, 'px'),
  13346. clipPath: N,
  13347. transform: 'translate('
  13348. .concat(-g + Y, 'px, ')
  13349. .concat(-m + G, 'px) ')
  13350. .concat(Zo(d))
  13351. }
  13352. })
  13353. );
  13354. }
  13355. if (i) {
  13356. var j = ns(Zr([v, h, A, b], Kr(B), !1)),
  13357. W = j.width,
  13358. H = j.height,
  13359. V = j.left,
  13360. q = j.top;
  13361. (Q || D || R) &&
  13362. ((F = R ? B.slice(0, 8) : B),
  13363. x.push(
  13364. e.createElement('div', {
  13365. key: 'clipArea',
  13366. className: Go('clip-area', 'snap-control'),
  13367. style: {
  13368. width: ''.concat(W, 'px'),
  13369. height: ''.concat(H, 'px'),
  13370. transform: 'translate('
  13371. .concat(V, 'px, ')
  13372. .concat(q, 'px)'),
  13373. clipPath: 'polygon('.concat(
  13374. F.map(function (t) {
  13375. return ''
  13376. .concat(t[0] - V, 'px ')
  13377. .concat(t[1] - q, 'px');
  13378. }).join(', '),
  13379. ')'
  13380. )
  13381. }
  13382. })
  13383. ));
  13384. }
  13385. return (
  13386. k &&
  13387. ['vertical', 'horizontal'].forEach(function (t) {
  13388. var n = k[t],
  13389. r = 'horizontal' === t;
  13390. n.isSnap &&
  13391. S.push.apply(
  13392. S,
  13393. Zr(
  13394. [],
  13395. Kr(
  13396. n.snap.posInfos.map(function (n, a) {
  13397. var i = n.pos,
  13398. s = Fn(ts(d, r ? [0, i] : [i, 0], E), [g, m]),
  13399. l = Fn(ts(d, r ? [u, i] : [i, f], E), [g, m]);
  13400. return pi(
  13401. e,
  13402. '',
  13403. s,
  13404. l,
  13405. o,
  13406. 'clip'.concat(t, 'snap').concat(a),
  13407. 'guideline'
  13408. );
  13409. })
  13410. ),
  13411. !1
  13412. )
  13413. ),
  13414. n.isBound &&
  13415. S.push.apply(
  13416. S,
  13417. Zr(
  13418. [],
  13419. Kr(
  13420. n.bounds.map(function (n, a) {
  13421. var i = n.pos,
  13422. s = Fn(ts(d, r ? [0, i] : [i, 0], E), [g, m]),
  13423. l = Fn(ts(d, r ? [u, i] : [i, f], E), [g, m]);
  13424. return pi(
  13425. e,
  13426. '',
  13427. s,
  13428. l,
  13429. o,
  13430. 'clip'.concat(t, 'bounds').concat(a),
  13431. 'guideline',
  13432. 'bounds',
  13433. 'bold'
  13434. );
  13435. })
  13436. ),
  13437. !1
  13438. )
  13439. );
  13440. }),
  13441. Zr(Zr([], Kr(x), !1), Kr(S), !1)
  13442. );
  13443. },
  13444. dragControlCondition: function (t, e) {
  13445. return (
  13446. e.inputEvent &&
  13447. (e.inputEvent.target.getAttribute('class') || '').indexOf(
  13448. 'clip'
  13449. ) > -1
  13450. );
  13451. },
  13452. dragStart: function (t, e) {
  13453. var n = t.props.dragWithClip;
  13454. return !(void 0 === n || n) && this.dragControlStart(t, e);
  13455. },
  13456. drag: function (t, e) {
  13457. return this.dragControl(t, qr(qr({}, e), { isDragTarget: !0 }));
  13458. },
  13459. dragEnd: function (t, e) {
  13460. return this.dragControlEnd(t, e);
  13461. },
  13462. dragControlStart: function (t, e) {
  13463. var n = t.state,
  13464. r = t.props,
  13465. a = r.defaultClipPath,
  13466. i = r.customClipPath,
  13467. o = n.target,
  13468. s = n.width,
  13469. l = n.height,
  13470. c = e.inputEvent ? e.inputEvent.target : null,
  13471. u = (c && c.getAttribute('class')) || '',
  13472. f = e.datas,
  13473. d = Rl(o, s, l, a || 'inset', i);
  13474. if (!d) return !1;
  13475. var p = d.clipText;
  13476. return !1 ===
  13477. Cs(
  13478. t,
  13479. 'onClipStart',
  13480. ys(t, e, {
  13481. clipType: d.type,
  13482. clipStyle: p,
  13483. poses: d.poses.map(function (t) {
  13484. return t.pos;
  13485. })
  13486. })
  13487. )
  13488. ? ((f.isClipStart = !1), !1)
  13489. : ((f.isControl = u && u.indexOf('clip-control') > -1),
  13490. (f.isLine = u.indexOf('clip-line') > -1),
  13491. (f.isArea =
  13492. u.indexOf('clip-area') > -1 ||
  13493. u.indexOf('clip-ellipse') > -1),
  13494. (f.clipIndex = c
  13495. ? parseInt(c.getAttribute('data-clip-index'), 10)
  13496. : -1),
  13497. (f.clipPath = d),
  13498. (f.isClipStart = !0),
  13499. (n.clipPathState = p),
  13500. _a(t, e),
  13501. !0);
  13502. },
  13503. dragControl: function (t, e) {
  13504. var n,
  13505. r,
  13506. a,
  13507. i = e.datas,
  13508. o = e.originalDatas,
  13509. s = e.isDragTarget;
  13510. if (!i.isClipStart) return !1;
  13511. var l = i,
  13512. c = l.isControl,
  13513. u = l.isLine,
  13514. f = l.isArea,
  13515. d = l.clipIndex,
  13516. p = l.clipPath;
  13517. if (!p) return !1;
  13518. var g = ls(t.props, 'clippable'),
  13519. m = g.keepRatio,
  13520. v = 0,
  13521. h = 0,
  13522. A = o.draggable,
  13523. b = Ya(e);
  13524. s && A
  13525. ? ((n = Kr(A.prevBeforeDist, 2)), (v = n[0]), (h = n[1]))
  13526. : ((r = Kr(b, 2)), (v = r[0]), (h = r[1]));
  13527. var w = [v, h],
  13528. k = t.state,
  13529. y = k.width,
  13530. I = k.height,
  13531. E = !f && !c && !u,
  13532. C = p.type,
  13533. B = p.poses,
  13534. x = p.splitter,
  13535. S = B.map(function (t) {
  13536. return t.pos;
  13537. });
  13538. E && ((v = -v), (h = -h));
  13539. var D = !c || 'nesw' === B[d].direction,
  13540. R = 'inset' === C || 'rect' === C,
  13541. Q = B.map(function () {
  13542. return [0, 0];
  13543. });
  13544. if (c && !D) {
  13545. var _ = B[d],
  13546. O = _.horizontal,
  13547. M = _.vertical,
  13548. T = [v * qs(O), h * qs(M)];
  13549. Q = (function (t, e, n, r, a) {
  13550. var i = t[e],
  13551. o = i.direction,
  13552. s = i.sub,
  13553. l = t.map(function () {
  13554. return [0, 0];
  13555. }),
  13556. c = o ? o.split('') : [];
  13557. if (r && e < 8) {
  13558. var u = c.filter(function (t) {
  13559. return 'w' === t || 'e' === t;
  13560. }),
  13561. f = c.filter(function (t) {
  13562. return 'n' === t || 's' === t;
  13563. }),
  13564. d = u[0],
  13565. p = f[0];
  13566. l[e] = n;
  13567. var g = Kr(Dl(t), 2),
  13568. m = g[0],
  13569. v = g[1],
  13570. h = m && v ? m / v : 0;
  13571. if (h && a) {
  13572. var A = t[(e + 4) % 8].pos,
  13573. b = [0, 0];
  13574. o.indexOf('w') > -1
  13575. ? (b[0] = -1)
  13576. : o.indexOf('e') > -1 && (b[0] = 1),
  13577. o.indexOf('n') > -1
  13578. ? (b[1] = -1)
  13579. : o.indexOf('s') > -1 && (b[1] = 1);
  13580. var w = Fs([m, v], n, h, b, !0),
  13581. k = m + w[0],
  13582. y = v + w[1],
  13583. I = A[1],
  13584. E = A[1],
  13585. C = A[0],
  13586. B = A[0];
  13587. -1 === b[0]
  13588. ? (C = B - k)
  13589. : 1 === b[0]
  13590. ? (B = C + k)
  13591. : ((C -= k / 2), (B += k / 2)),
  13592. -1 === b[1]
  13593. ? (I = E - y)
  13594. : (E = 1 === b[1] ? I + y : (I = E - y / 2) + y);
  13595. var x = Sl(I, B, E, C);
  13596. t.forEach(function (t, e) {
  13597. (l[e][0] = x[e].pos[0] - t.pos[0]),
  13598. (l[e][1] = x[e].pos[1] - t.pos[1]);
  13599. });
  13600. } else
  13601. t.forEach(function (t, e) {
  13602. var r = t.direction;
  13603. r &&
  13604. (r.indexOf(d) > -1 && (l[e][0] = n[0]),
  13605. r.indexOf(p) > -1 && (l[e][1] = n[1]));
  13606. }),
  13607. d && ((l[1][0] = n[0] / 2), (l[5][0] = n[0] / 2)),
  13608. p && ((l[3][1] = n[1] / 2), (l[7][1] = n[1] / 2));
  13609. } else
  13610. o && !s
  13611. ? c.forEach(function (e) {
  13612. var r = 'n' === e || 's' === e;
  13613. t.forEach(function (t, a) {
  13614. var i = t.direction,
  13615. o = t.horizontal,
  13616. s = t.vertical;
  13617. i &&
  13618. -1 !== i.indexOf(e) &&
  13619. (l[a] = [r || !o ? 0 : n[0], r && s ? n[1] : 0]);
  13620. });
  13621. })
  13622. : (l[e] = n);
  13623. return l;
  13624. })(B, d, T, R, m);
  13625. } else
  13626. D &&
  13627. (Q = S.map(function () {
  13628. return [v, h];
  13629. }));
  13630. var z = S.map(function (t, e) {
  13631. return Un(t, Q[e]);
  13632. }),
  13633. P = Zr([], Kr(z), !1);
  13634. k.snapBoundInfos = null;
  13635. var Y = 'circle' === p.type,
  13636. G = 'ellipse' === p.type;
  13637. if (Y || G) {
  13638. var N = qs((nt = ns(z)).bottom - nt.top),
  13639. U = qs(G ? nt.right - nt.left : N),
  13640. F = z[0][1] + N,
  13641. L = z[0][0] - U,
  13642. X = z[0][0] + U;
  13643. Y && (P.push([X, nt.bottom]), Q.push([1, 0])),
  13644. P.push([nt.left, F]),
  13645. Q.push([0, 1]),
  13646. P.push([L, nt.bottom]),
  13647. Q.push([1, 0]);
  13648. }
  13649. var j = Io(
  13650. (g.clipHorizontalGuidelines || []).map(function (t) {
  13651. return ie(''.concat(t), I);
  13652. }),
  13653. (g.clipVerticalGuidelines || []).map(function (t) {
  13654. return ie(''.concat(t), y);
  13655. }),
  13656. y,
  13657. I
  13658. ),
  13659. W = [],
  13660. H = [];
  13661. if (Y || G) (W = [P[4][0], P[2][0]]), (H = [P[1][1], P[3][1]]);
  13662. else if (R) {
  13663. var V = [P[0], P[2], P[4], P[6]],
  13664. q = [Q[0], Q[2], Q[4], Q[6]];
  13665. (W = V.filter(function (t, e) {
  13666. return q[e][0];
  13667. }).map(function (t) {
  13668. return t[0];
  13669. })),
  13670. (H = V.filter(function (t, e) {
  13671. return q[e][1];
  13672. }).map(function (t) {
  13673. return t[1];
  13674. }));
  13675. } else
  13676. (W = P.filter(function (t, e) {
  13677. return Q[e][0];
  13678. }).map(function (t) {
  13679. return t[0];
  13680. })),
  13681. (H = P.filter(function (t, e) {
  13682. return Q[e][1];
  13683. }).map(function (t) {
  13684. return t[1];
  13685. }));
  13686. var K = [0, 0],
  13687. Z = $i(
  13688. j,
  13689. g.clipTargetBounds && {
  13690. left: 0,
  13691. top: 0,
  13692. right: y,
  13693. bottom: I
  13694. },
  13695. W,
  13696. H,
  13697. 5
  13698. ),
  13699. J = Z.horizontal,
  13700. $ = Z.vertical,
  13701. tt = J.offset,
  13702. et = $.offset;
  13703. if (
  13704. (J.isBound && (K[1] += tt),
  13705. $.isBound && (K[0] += et),
  13706. (G || Y) && 0 === Q[0][0] && 0 === Q[0][1])
  13707. ) {
  13708. var nt,
  13709. rt = (nt = ns(z)).bottom - nt.top,
  13710. at = G ? nt.right - nt.left : rt;
  13711. (at -= $.isBound ? qs(et) : 0 === $.snapIndex ? -et : et),
  13712. (rt -= J.isBound ? qs(tt) : 0 === J.snapIndex ? -tt : tt),
  13713. Y && (at = rt = Pi($, J) > 0 ? rt : at);
  13714. var it = P[0];
  13715. (P[1][1] = it[1] - rt),
  13716. (P[2][0] = it[0] + at),
  13717. (P[3][1] = it[1] + rt),
  13718. (P[4][0] = it[0] - at);
  13719. } else if (R && m && c) {
  13720. var ot = Kr(Dl(B), 2),
  13721. st = ot[0],
  13722. lt = ot[1],
  13723. ct = st && lt ? st / lt : 0,
  13724. ut = B[d].direction || '',
  13725. ft = P[1][1];
  13726. (F = P[5][1]),
  13727. (L = P[7][0]),
  13728. (X = P[3][0]),
  13729. qs(tt) <= qs(et)
  13730. ? (tt = (Vs(tt) * qs(et)) / ct)
  13731. : (et = Vs(et) * qs(tt) * ct),
  13732. ut.indexOf('w') > -1
  13733. ? (L -= et)
  13734. : ut.indexOf('e') > -1
  13735. ? (X -= et)
  13736. : ((L += et / 2), (X -= et / 2)),
  13737. ut.indexOf('n') > -1
  13738. ? (ft -= tt)
  13739. : ut.indexOf('s') > -1
  13740. ? (F -= tt)
  13741. : ((ft += tt / 2), (F -= tt / 2));
  13742. var dt = Sl(ft, X, F, L);
  13743. P.forEach(function (t, e) {
  13744. var n;
  13745. (n = Kr(dt[e].pos, 2)), (t[0] = n[0]), (t[1] = n[1]);
  13746. });
  13747. } else
  13748. P.forEach(function (t, e) {
  13749. var n = Q[e];
  13750. n[0] && (t[0] -= et), n[1] && (t[1] -= tt);
  13751. });
  13752. var pt = xl(t, p, z),
  13753. gt = ''.concat(C, '(').concat(pt.join(x), ')');
  13754. if (
  13755. ((k.clipPathState = gt),
  13756. Y || G
  13757. ? ((W = [P[4][0], P[2][0]]), (H = [P[1][1], P[3][1]]))
  13758. : R
  13759. ? ((W = (V = [P[0], P[2], P[4], P[6]]).map(function (t) {
  13760. return t[0];
  13761. })),
  13762. (H = V.map(function (t) {
  13763. return t[1];
  13764. })))
  13765. : ((W = P.map(function (t) {
  13766. return t[0];
  13767. })),
  13768. (H = P.map(function (t) {
  13769. return t[1];
  13770. }))),
  13771. (k.snapBoundInfos = $i(
  13772. j,
  13773. g.clipTargetBounds && {
  13774. left: 0,
  13775. top: 0,
  13776. right: y,
  13777. bottom: I
  13778. },
  13779. W,
  13780. H,
  13781. 1
  13782. )),
  13783. A)
  13784. ) {
  13785. var mt = k.is3d,
  13786. vt = k.allMatrix,
  13787. ht = mt ? 4 : 3,
  13788. At = K;
  13789. s && (At = [w[0] + K[0] - b[0], w[1] + K[1] - b[1]]),
  13790. (A.deltaOffset = Nn(vt, [At[0], At[1], 0, 0], ht));
  13791. }
  13792. return (
  13793. Cs(
  13794. t,
  13795. 'onClip',
  13796. ys(
  13797. t,
  13798. e,
  13799. qr(
  13800. {
  13801. clipEventType: 'changed',
  13802. clipType: C,
  13803. poses: z,
  13804. clipStyle: gt,
  13805. clipStyles: pt,
  13806. distX: v,
  13807. distY: h
  13808. },
  13809. ws(
  13810. (((a = {})['rect' === C ? 'clip' : 'clipPath'] = gt),
  13811. a),
  13812. e
  13813. )
  13814. )
  13815. )
  13816. ),
  13817. !0
  13818. );
  13819. },
  13820. dragControlEnd: function (t, e) {
  13821. this.unset(t);
  13822. var n = e.isDrag,
  13823. r = e.datas,
  13824. a = e.isDouble,
  13825. i = r.isLine,
  13826. o = r.isClipStart,
  13827. s = r.isControl;
  13828. return (
  13829. !!o &&
  13830. (Cs(t, 'onClipEnd', Is(t, e, {})),
  13831. a && (s ? _l(t, e) : i && Ql(t, e)),
  13832. a || n)
  13833. );
  13834. },
  13835. unset: function (t) {
  13836. (t.state.clipPathState = ''), (t.state.snapBoundInfos = null);
  13837. }
  13838. },
  13839. Ml = {
  13840. name: 'originDraggable',
  13841. props: ['originDraggable', 'originRelative'],
  13842. events: ['dragOriginStart', 'dragOrigin', 'dragOriginEnd'],
  13843. css: [
  13844. ':host[data-able-origindraggable] .control.origin {\npointer-events: auto;\n}'
  13845. ],
  13846. dragControlCondition: function (t, e) {
  13847. return e.isRequest
  13848. ? 'originDraggable' === e.requestAble
  13849. : ve(e.inputEvent.target, Go('origin'));
  13850. },
  13851. dragControlStart: function (t, e) {
  13852. var n = e.datas;
  13853. _a(t, e);
  13854. var r = ys(t, e, {
  13855. dragStart: no.dragStart(t, new Da().dragStart([0, 0], e))
  13856. }),
  13857. a = Cs(t, 'onDragOriginStart', r);
  13858. return (
  13859. (n.startOrigin = t.state.transformOrigin),
  13860. (n.startTargetOrigin = t.state.targetOrigin),
  13861. (n.prevOrigin = [0, 0]),
  13862. (n.isDragOrigin = !0),
  13863. !1 === a ? ((n.isDragOrigin = !1), !1) : r
  13864. );
  13865. },
  13866. dragControl: function (t, e) {
  13867. var n = e.datas,
  13868. r = e.isPinch,
  13869. a = e.isRequest;
  13870. if (!n.isDragOrigin) return !1;
  13871. var i = Kr(Ya(e), 2),
  13872. o = i[0],
  13873. s = i[1],
  13874. l = t.state,
  13875. c = l.width,
  13876. u = l.height,
  13877. f = l.offsetMatrix,
  13878. d = l.targetMatrix,
  13879. p = l.is3d,
  13880. g = t.props.originRelative,
  13881. m = void 0 === g || g,
  13882. v = p ? 4 : 3,
  13883. h = [o, s];
  13884. if (a) {
  13885. var A = e.distOrigin;
  13886. (A[0] || A[1]) && (h = A);
  13887. }
  13888. var b = Un(n.startOrigin, h),
  13889. w = Un(n.startTargetOrigin, h),
  13890. k = Fn(h, n.prevOrigin),
  13891. y = Ua(f, d, b, v),
  13892. I = t.getRect(),
  13893. E = ns(es(y, c, u, v)),
  13894. C = [I.left - E.left, I.top - E.top];
  13895. n.prevOrigin = h;
  13896. var B = [Ts(w[0], c, m), Ts(w[1], u, m)].join(' '),
  13897. x = no.drag(t, Sa(e, t.state, C, !!r, !1)),
  13898. S = ys(
  13899. t,
  13900. e,
  13901. qr(
  13902. qr(
  13903. {
  13904. width: c,
  13905. height: u,
  13906. origin: b,
  13907. dist: h,
  13908. delta: k,
  13909. transformOrigin: B,
  13910. drag: x
  13911. },
  13912. ws({ transformOrigin: B, transform: x.transform }, e)
  13913. ),
  13914. { afterTransform: x.transform }
  13915. )
  13916. );
  13917. return Cs(t, 'onDragOrigin', S), S;
  13918. },
  13919. dragControlEnd: function (t, e) {
  13920. return (
  13921. !!e.datas.isDragOrigin &&
  13922. (Cs(t, 'onDragOriginEnd', Is(t, e, {})), !0)
  13923. );
  13924. },
  13925. dragGroupControlCondition: function (t, e) {
  13926. return this.dragControlCondition(t, e);
  13927. },
  13928. dragGroupControlStart: function (t, e) {
  13929. return !!this.dragControlStart(t, e);
  13930. },
  13931. dragGroupControl: function (t, e) {
  13932. var n = this.dragControl(t, e);
  13933. return !!n && ((t.transformOrigin = n.transformOrigin), !0);
  13934. },
  13935. request: function (t) {
  13936. var e = {},
  13937. n = t.getRect(),
  13938. r = 0,
  13939. a = 0,
  13940. i = n.transformOrigin,
  13941. o = [0, 0];
  13942. return {
  13943. isControl: !0,
  13944. requestStart: function () {
  13945. return { datas: e };
  13946. },
  13947. request: function (t) {
  13948. return (
  13949. 'deltaOrigin' in t
  13950. ? ((o[0] += t.deltaOrigin[0]), (o[1] += t.deltaOrigin[1]))
  13951. : 'origin' in t
  13952. ? ((o[0] = t.origin[0] - i[0]),
  13953. (o[1] = t.origin[1] - i[1]))
  13954. : ('x' in t
  13955. ? (r = t.x - n.left)
  13956. : 'deltaX' in t && (r += t.deltaX),
  13957. 'y' in t
  13958. ? (a = t.y - n.top)
  13959. : 'deltaY' in t && (a += t.deltaY)),
  13960. { datas: e, distX: r, distY: a, distOrigin: o }
  13961. );
  13962. },
  13963. requestEnd: function () {
  13964. return { datas: e, isDrag: !0 };
  13965. }
  13966. };
  13967. }
  13968. };
  13969. function Tl(t, e, n, r, a) {
  13970. return (
  13971. void 0 === r && (r = [0, 0]),
  13972. El(t && '0px' !== t ? Vt(t) : [], e, n, 0, 0, r, a)
  13973. );
  13974. }
  13975. function zl(t, e, n, r, a) {
  13976. var i = t.state,
  13977. o = i.width,
  13978. s = i.height,
  13979. l = yl(a, t.props.roundRelative, o, s),
  13980. c = l.raws,
  13981. u = l.styles,
  13982. f = (function (t, e) {
  13983. return (
  13984. void 0 === e &&
  13985. (e = t.map(function (t) {
  13986. return t.raw;
  13987. })),
  13988. {
  13989. horizontals: t
  13990. .map(function (t, n) {
  13991. return t.horizontal ? e[n] : null;
  13992. })
  13993. .filter(function (t) {
  13994. return null != t;
  13995. }),
  13996. verticals: t
  13997. .map(function (t, n) {
  13998. return t.vertical ? e[n] : null;
  13999. })
  14000. .filter(function (t) {
  14001. return null != t;
  14002. })
  14003. }
  14004. );
  14005. })(l.radiusPoses, c),
  14006. d = f.horizontals,
  14007. p = f.verticals,
  14008. g = u.join(' ');
  14009. i.borderRadiusState = g;
  14010. var m = ys(
  14011. t,
  14012. e,
  14013. qr(
  14014. {
  14015. horizontals: d,
  14016. verticals: p,
  14017. borderRadius: g,
  14018. width: o,
  14019. height: s,
  14020. delta: r,
  14021. dist: n
  14022. },
  14023. ws({ borderRadius: g }, e)
  14024. )
  14025. );
  14026. return Cs(t, 'onRound', m), m;
  14027. }
  14028. function Pl(t) {
  14029. var e,
  14030. n,
  14031. r = t.getState().style,
  14032. a = r.borderRadius || '';
  14033. if (!a && t.props.groupable) {
  14034. var i = t.moveables[0],
  14035. o = t.getTargets()[0];
  14036. o &&
  14037. ((null == i ? void 0 : i.props.target) === o
  14038. ? ((a =
  14039. null !==
  14040. (n =
  14041. null === (e = t.moveables[0]) || void 0 === e
  14042. ? void 0
  14043. : e.state.style.borderRadius) && void 0 !== n
  14044. ? n
  14045. : ''),
  14046. (r.borderRadius = a))
  14047. : ((a = Bs(o).borderRadius), (r.borderRadius = a)));
  14048. }
  14049. return a;
  14050. }
  14051. var Yl = {
  14052. name: 'roundable',
  14053. props: [
  14054. 'roundable',
  14055. 'roundRelative',
  14056. 'minRoundControls',
  14057. 'maxRoundControls',
  14058. 'roundClickable',
  14059. 'roundPadding',
  14060. 'isDisplayShadowRoundControls'
  14061. ],
  14062. events: [
  14063. 'roundStart',
  14064. 'round',
  14065. 'roundEnd',
  14066. 'roundGroupStart',
  14067. 'roundGroup',
  14068. 'roundGroupEnd'
  14069. ],
  14070. css: [
  14071. '.control.border-radius {\nbackground: #d66;\ncursor: pointer;\nz-index: 3;\n}',
  14072. '.control.border-radius.vertical {\nbackground: #d6d;\nz-index: 2;\n}',
  14073. '.control.border-radius.virtual {\nopacity: 0.5;\nz-index: 1;\n}',
  14074. ':host.round-line-clickable .line.direction {\ncursor: pointer;\n}'
  14075. ],
  14076. className: function (t) {
  14077. var e = t.props.roundClickable;
  14078. return !0 === e || 'line' === e ? Go('round-line-clickable') : '';
  14079. },
  14080. requestStyle: function () {
  14081. return ['borderRadius'];
  14082. },
  14083. requestChildStyle: function () {
  14084. return ['borderRadius'];
  14085. },
  14086. render: function (t, e) {
  14087. var n = t.getState(),
  14088. r = n.target,
  14089. a = n.width,
  14090. i = n.height,
  14091. o = n.allMatrix,
  14092. s = n.is3d,
  14093. l = n.left,
  14094. c = n.top,
  14095. u = n.borderRadiusState,
  14096. f = t.props,
  14097. d = f.minRoundControls,
  14098. p = void 0 === d ? [0, 0] : d,
  14099. g = f.maxRoundControls,
  14100. m = void 0 === g ? [4, 4] : g,
  14101. v = f.zoom,
  14102. h = f.roundPadding,
  14103. A = void 0 === h ? 0 : h,
  14104. b = f.isDisplayShadowRoundControls,
  14105. w = f.groupable;
  14106. if (!r) return null;
  14107. var k = u || Pl(t),
  14108. y = s ? 4 : 3,
  14109. I = Tl(k, a, i, p, !0);
  14110. if (!I) return null;
  14111. var E = 0,
  14112. C = 0,
  14113. B = w ? [0, 0] : [l, c];
  14114. return I.map(function (t, n) {
  14115. var r = t.horizontal,
  14116. a = t.vertical,
  14117. i = t.direction || '',
  14118. s = Zr([], Kr(t.pos), !1);
  14119. (C += Math.abs(r)),
  14120. (E += Math.abs(a)),
  14121. r && i.indexOf('n') > -1 && (s[1] -= A),
  14122. a && i.indexOf('w') > -1 && (s[0] -= A),
  14123. r && i.indexOf('s') > -1 && (s[1] += A),
  14124. a && i.indexOf('e') > -1 && (s[0] += A);
  14125. var l = Fn(ts(o, s, y), B),
  14126. c = t.vertical
  14127. ? E <= m[1] && (b || !t.virtual)
  14128. : C <= m[0] && (b || !t.virtual);
  14129. return e.createElement('div', {
  14130. key: 'borderRadiusControl'.concat(n),
  14131. className: Go(
  14132. 'control',
  14133. 'border-radius',
  14134. t.vertical ? 'vertical' : '',
  14135. t.virtual ? 'virtual' : ''
  14136. ),
  14137. 'data-radius-index': n,
  14138. style: {
  14139. display: c ? 'block' : 'none',
  14140. transform: 'translate('
  14141. .concat(l[0], 'px, ')
  14142. .concat(l[1], 'px) scale(')
  14143. .concat(v, ')')
  14144. }
  14145. });
  14146. });
  14147. },
  14148. dragControlCondition: function (t, e) {
  14149. if (!e.inputEvent || e.isRequest) return !1;
  14150. var n = e.inputEvent.target.getAttribute('class') || '';
  14151. return (
  14152. n.indexOf('border-radius') > -1 ||
  14153. (n.indexOf('moveable-line') > -1 &&
  14154. n.indexOf('moveable-direction') > -1)
  14155. );
  14156. },
  14157. dragGroupControlCondition: function (t, e) {
  14158. return this.dragControlCondition(t, e);
  14159. },
  14160. dragControlStart: function (t, e) {
  14161. var n = e.inputEvent,
  14162. r = e.datas,
  14163. a = n.target,
  14164. i = a.getAttribute('class') || '',
  14165. o = i.indexOf('border-radius') > -1,
  14166. s =
  14167. i.indexOf('moveable-line') > -1 &&
  14168. i.indexOf('moveable-direction') > -1,
  14169. l = o ? parseInt(a.getAttribute('data-radius-index'), 10) : -1,
  14170. c = -1;
  14171. if (s) {
  14172. var u = a.getAttribute('data-line-key') || '';
  14173. u &&
  14174. ((c = parseInt(u.replace(/render-line-/g, ''), 10)),
  14175. isNaN(c) && (c = -1));
  14176. }
  14177. if (!o && !s) return !1;
  14178. var f = ys(t, e, {});
  14179. if (!1 === Cs(t, 'onRoundStart', f)) return !1;
  14180. (r.lineIndex = c),
  14181. (r.controlIndex = l),
  14182. (r.isControl = o),
  14183. (r.isLine = s),
  14184. _a(t, e);
  14185. var d = t.props,
  14186. p = d.roundRelative,
  14187. g = d.minRoundControls,
  14188. m = void 0 === g ? [0, 0] : g,
  14189. v = t.state,
  14190. h = v.width,
  14191. A = v.height;
  14192. (r.isRound = !0), (r.prevDist = [0, 0]);
  14193. var b = Tl(Pl(t) || '', h, A, m, !0) || [];
  14194. return (
  14195. (r.controlPoses = b),
  14196. (v.borderRadiusState = yl(b, p, h, A).styles.join(' ')),
  14197. f
  14198. );
  14199. },
  14200. dragControl: function (t, e) {
  14201. var n = e.datas,
  14202. r = n.controlPoses;
  14203. if (!n.isRound || !n.isControl || !r.length) return !1;
  14204. var a = n.controlIndex,
  14205. i = Kr(Ya(e), 2),
  14206. o = i[0],
  14207. s = i[1],
  14208. l = [o, s],
  14209. c = Fn(l, n.prevDist),
  14210. u = t.props.maxRoundControls,
  14211. f = void 0 === u ? [4, 4] : u,
  14212. d = t.state,
  14213. p = d.width,
  14214. g = d.height,
  14215. m = r[a],
  14216. v = m.vertical,
  14217. h = m.horizontal,
  14218. A = r.map(function (t) {
  14219. var e = t.horizontal,
  14220. n = t.vertical,
  14221. r = [e * h * l[0], n * v * l[1]];
  14222. if (e) {
  14223. if (1 === f[0]) return r;
  14224. if (f[0] < 4 && e !== h) return r;
  14225. } else {
  14226. if (0 === f[1]) return (r[1] = ((n * h * l[0]) / p) * g), r;
  14227. if (v) {
  14228. if (1 === f[1]) return r;
  14229. if (f[1] < 4 && n !== v) return r;
  14230. }
  14231. }
  14232. return [0, 0];
  14233. });
  14234. A[a] = l;
  14235. var b = r.map(function (t, e) {
  14236. return qr(qr({}, t), { pos: Un(t.pos, A[e]) });
  14237. });
  14238. return (
  14239. a < 4
  14240. ? b.slice(0, a + 1).forEach(function (t) {
  14241. t.virtual = !1;
  14242. })
  14243. : b.slice(4, a + 1).forEach(function (t) {
  14244. t.virtual = !1;
  14245. }),
  14246. (n.prevDist = [o, s]),
  14247. zl(t, e, l, c, b)
  14248. );
  14249. },
  14250. dragControlEnd: function (t, e) {
  14251. var n = t.state;
  14252. n.borderRadiusState = '';
  14253. var r = e.datas,
  14254. a = e.isDouble;
  14255. if (!r.isRound) return !1;
  14256. var i = r.isControl,
  14257. o = r.controlIndex,
  14258. s = r.isLine,
  14259. l = r.lineIndex,
  14260. c = r.controlPoses,
  14261. u = c.filter(function (t) {
  14262. return t.virtual;
  14263. }).length,
  14264. f = t.props.roundClickable,
  14265. d = void 0 === f || f;
  14266. if (a && d) {
  14267. if (!i || (!0 !== d && 'control' !== d)) {
  14268. if (s && (!0 === d || 'line' === d)) {
  14269. var p = Kr(Qa(t, e), 2);
  14270. !(function (t, e, n, r) {
  14271. var a = t.filter(function (t) {
  14272. var e = t.virtual;
  14273. return t.horizontal && !e;
  14274. }).length,
  14275. i = t.filter(function (t) {
  14276. var e = t.virtual;
  14277. return t.vertical && !e;
  14278. }).length,
  14279. o = -1;
  14280. if (
  14281. (0 === e && (0 === a ? (o = 0) : 1 === a && (o = 1)),
  14282. 2 === e && (a <= 2 ? (o = 2) : a <= 3 && (o = 3)),
  14283. 3 === e && (0 === i ? (o = 4) : i < 4 && (o = 7)),
  14284. 1 === e && (i <= 1 ? (o = 5) : i <= 2 && (o = 6)),
  14285. -1 !== o && t[o].virtual)
  14286. ) {
  14287. var s = t[o];
  14288. !(function (t, e) {
  14289. e < 4
  14290. ? t.slice(0, e + 1).forEach(function (t) {
  14291. t.virtual = !1;
  14292. })
  14293. : (t[0].virtual && (t[0].virtual = !1),
  14294. t.slice(4, e + 1).forEach(function (t) {
  14295. t.virtual = !1;
  14296. }));
  14297. })(t, o),
  14298. o < 4 ? (s.pos[0] = n) : (s.pos[1] = r);
  14299. }
  14300. })(c, l, p[0], p[1]);
  14301. }
  14302. } else
  14303. !(function (t, e) {
  14304. e < 4
  14305. ? t.slice(e, 4).forEach(function (t) {
  14306. t.virtual = !0;
  14307. })
  14308. : t.slice(e).forEach(function (t) {
  14309. t.virtual = !0;
  14310. });
  14311. })(c, o);
  14312. u !==
  14313. c.filter(function (t) {
  14314. return t.virtual;
  14315. }).length && zl(t, e, [0, 0], [0, 0], c);
  14316. }
  14317. var g = Is(t, e, {});
  14318. return Cs(t, 'onRoundEnd', g), (n.borderRadiusState = ''), g;
  14319. },
  14320. dragGroupControlStart: function (t, e) {
  14321. var n = this.dragControlStart(t, e);
  14322. if (!n) return !1;
  14323. var r = t.moveables,
  14324. a = t.props.targets,
  14325. i = si(t, 'roundable', e);
  14326. return (
  14327. Cs(
  14328. t,
  14329. 'onRoundGroupStart',
  14330. qr(
  14331. {
  14332. targets: t.props.targets,
  14333. events: i.map(function (t, e) {
  14334. return qr(qr({}, t), {
  14335. target: a[e],
  14336. moveable: r[e],
  14337. currentTarget: r[e]
  14338. });
  14339. })
  14340. },
  14341. n
  14342. )
  14343. ),
  14344. n
  14345. );
  14346. },
  14347. dragGroupControl: function (t, e) {
  14348. var n = this.dragControl(t, e);
  14349. if (!n) return !1;
  14350. var r = t.moveables,
  14351. a = t.props.targets,
  14352. i = si(t, 'roundable', e),
  14353. o = qr(
  14354. {
  14355. targets: t.props.targets,
  14356. events: i.map(function (t, e) {
  14357. return qr(
  14358. qr(qr({}, t), {
  14359. target: a[e],
  14360. moveable: r[e],
  14361. currentTarget: r[e]
  14362. }),
  14363. ws({ borderRadius: n.borderRadius }, t)
  14364. );
  14365. })
  14366. },
  14367. n
  14368. );
  14369. return Cs(t, 'onRoundGroup', o), o;
  14370. },
  14371. dragGroupControlEnd: function (t, e) {
  14372. var n = t.moveables,
  14373. r = t.props.targets,
  14374. a = si(t, 'roundable', e);
  14375. Es(t, 'onRound', function (e) {
  14376. var i = qr(
  14377. {
  14378. targets: t.props.targets,
  14379. events: a.map(function (t, a) {
  14380. return qr(
  14381. qr(qr({}, t), {
  14382. target: r[a],
  14383. moveable: n[a],
  14384. currentTarget: n[a]
  14385. }),
  14386. ws({ borderRadius: e.borderRadius }, t)
  14387. );
  14388. })
  14389. },
  14390. e
  14391. );
  14392. Cs(t, 'onRoundGroup', i);
  14393. });
  14394. var i = this.dragControlEnd(t, e);
  14395. if (!i) return !1;
  14396. var o = qr(
  14397. {
  14398. targets: t.props.targets,
  14399. events: a.map(function (t, e) {
  14400. var a;
  14401. return qr(qr({}, t), {
  14402. target: r[e],
  14403. moveable: n[e],
  14404. currentTarget: n[e],
  14405. lastEvent:
  14406. null === (a = t.datas) || void 0 === a
  14407. ? void 0
  14408. : a.lastEvent
  14409. });
  14410. })
  14411. },
  14412. i
  14413. );
  14414. return Cs(t, 'onRoundGroupEnd', o), o;
  14415. },
  14416. unset: function (t) {
  14417. t.state.borderRadiusState = '';
  14418. }
  14419. },
  14420. Gl = {
  14421. isPinch: !0,
  14422. name: 'beforeRenderable',
  14423. props: [],
  14424. events: [
  14425. 'beforeRenderStart',
  14426. 'beforeRender',
  14427. 'beforeRenderEnd',
  14428. 'beforeRenderGroupStart',
  14429. 'beforeRenderGroup',
  14430. 'beforeRenderGroupEnd'
  14431. ],
  14432. dragRelation: 'weak',
  14433. setTransform: function (t, e) {
  14434. var n = t.state,
  14435. r = n.is3d,
  14436. a = n.targetMatrix,
  14437. i = n.inlineTransform,
  14438. o = r
  14439. ? 'matrix3d('.concat(a.join(','), ')')
  14440. : 'matrix('.concat(Ln(a, !0), ')'),
  14441. s = i && 'none' !== i ? i : o;
  14442. e.datas.startTransforms = (function (t, e) {
  14443. var n = $n(e ? 4 : 3);
  14444. return (
  14445. t ===
  14446. 'matrix'
  14447. .concat(e ? '3d' : '', '(')
  14448. .concat(n.join(','), ')') || 'matrix(1,0,0,1,0,0)' === t
  14449. );
  14450. })(s, r)
  14451. ? []
  14452. : Vt(s);
  14453. },
  14454. resetStyle: function (t) {
  14455. var e = t.datas;
  14456. (e.nextStyle = {}),
  14457. (e.nextTransforms = t.datas.startTransforms),
  14458. (e.nextTransformAppendedIndexes = []);
  14459. },
  14460. fillDragStartParams: function (t, e) {
  14461. return ys(t, e, {
  14462. setTransform: function (t) {
  14463. e.datas.startTransforms = Ut(t) ? t : Vt(t);
  14464. },
  14465. isPinch: !!e.isPinch
  14466. });
  14467. },
  14468. fillDragParams: function (t, e) {
  14469. return ys(t, e, { isPinch: !!e.isPinch });
  14470. },
  14471. dragStart: function (t, e) {
  14472. this.setTransform(t, e),
  14473. this.resetStyle(e),
  14474. Cs(t, 'onBeforeRenderStart', this.fillDragStartParams(t, e));
  14475. },
  14476. drag: function (t, e) {
  14477. e.datas.startTransforms || this.setTransform(t, e),
  14478. this.resetStyle(e),
  14479. Cs(t, 'onBeforeRender', ys(t, e, { isPinch: !!e.isPinch }));
  14480. },
  14481. dragEnd: function (t, e) {
  14482. e.datas.startTransforms ||
  14483. (this.setTransform(t, e), this.resetStyle(e)),
  14484. Cs(
  14485. t,
  14486. 'onBeforeRenderEnd',
  14487. ys(t, e, { isPinch: !!e.isPinch, isDrag: e.isDrag })
  14488. );
  14489. },
  14490. dragGroupStart: function (t, e) {
  14491. var n = this;
  14492. this.dragStart(t, e);
  14493. var r = si(t, 'beforeRenderable', e),
  14494. a = t.moveables,
  14495. i = r.map(function (t, e) {
  14496. var r = a[e];
  14497. return (
  14498. n.setTransform(r, t),
  14499. n.resetStyle(t),
  14500. n.fillDragStartParams(r, t)
  14501. );
  14502. });
  14503. Cs(
  14504. t,
  14505. 'onBeforeRenderGroupStart',
  14506. ys(t, e, {
  14507. isPinch: !!e.isPinch,
  14508. targets: t.props.targets,
  14509. setTransform: function () {},
  14510. events: i
  14511. })
  14512. );
  14513. },
  14514. dragGroup: function (t, e) {
  14515. var n = this;
  14516. this.drag(t, e);
  14517. var r = si(t, 'beforeRenderable', e),
  14518. a = t.moveables,
  14519. i = r.map(function (t, e) {
  14520. var r = a[e];
  14521. return n.resetStyle(t), n.fillDragParams(r, t);
  14522. });
  14523. Cs(
  14524. t,
  14525. 'onBeforeRenderGroup',
  14526. ys(t, e, {
  14527. isPinch: !!e.isPinch,
  14528. targets: t.props.targets,
  14529. events: i
  14530. })
  14531. );
  14532. },
  14533. dragGroupEnd: function (t, e) {
  14534. this.dragEnd(t, e),
  14535. Cs(
  14536. t,
  14537. 'onBeforeRenderGroupEnd',
  14538. ys(t, e, {
  14539. isPinch: !!e.isPinch,
  14540. isDrag: e.isDrag,
  14541. targets: t.props.targets
  14542. })
  14543. );
  14544. },
  14545. dragControlStart: function (t, e) {
  14546. return this.dragStart(t, e);
  14547. },
  14548. dragControl: function (t, e) {
  14549. return this.drag(t, e);
  14550. },
  14551. dragControlEnd: function (t, e) {
  14552. return this.dragEnd(t, e);
  14553. },
  14554. dragGroupControlStart: function (t, e) {
  14555. return this.dragGroupStart(t, e);
  14556. },
  14557. dragGroupControl: function (t, e) {
  14558. return this.dragGroup(t, e);
  14559. },
  14560. dragGroupControlEnd: function (t, e) {
  14561. return this.dragGroupEnd(t, e);
  14562. }
  14563. },
  14564. Nl = {
  14565. name: 'renderable',
  14566. props: [],
  14567. events: [
  14568. 'renderStart',
  14569. 'render',
  14570. 'renderEnd',
  14571. 'renderGroupStart',
  14572. 'renderGroup',
  14573. 'renderGroupEnd'
  14574. ],
  14575. dragRelation: 'weak',
  14576. dragStart: function (t, e) {
  14577. Cs(t, 'onRenderStart', ys(t, e, { isPinch: !!e.isPinch }));
  14578. },
  14579. drag: function (t, e) {
  14580. Cs(t, 'onRender', this.fillDragParams(t, e));
  14581. },
  14582. dragAfter: function (t, e) {
  14583. return this.drag(t, e);
  14584. },
  14585. dragEnd: function (t, e) {
  14586. Cs(t, 'onRenderEnd', this.fillDragEndParams(t, e));
  14587. },
  14588. dragGroupStart: function (t, e) {
  14589. Cs(
  14590. t,
  14591. 'onRenderGroupStart',
  14592. ys(t, e, { isPinch: !!e.isPinch, targets: t.props.targets })
  14593. );
  14594. },
  14595. dragGroup: function (t, e) {
  14596. var n = this,
  14597. r = si(t, 'beforeRenderable', e),
  14598. a = t.moveables,
  14599. i = r.map(function (t, e) {
  14600. var r = a[e];
  14601. return n.fillDragParams(r, t);
  14602. });
  14603. Cs(
  14604. t,
  14605. 'onRenderGroup',
  14606. ys(
  14607. t,
  14608. e,
  14609. qr(
  14610. qr(
  14611. {
  14612. isPinch: !!e.isPinch,
  14613. targets: t.props.targets,
  14614. transform: Va(e),
  14615. transformObject: {}
  14616. },
  14617. ws(qa(e))
  14618. ),
  14619. { events: i }
  14620. )
  14621. )
  14622. );
  14623. },
  14624. dragGroupEnd: function (t, e) {
  14625. var n = this,
  14626. r = si(t, 'beforeRenderable', e),
  14627. a = t.moveables,
  14628. i = r.map(function (t, e) {
  14629. var r = a[e];
  14630. return n.fillDragEndParams(r, t);
  14631. });
  14632. Cs(
  14633. t,
  14634. 'onRenderGroupEnd',
  14635. ys(
  14636. t,
  14637. e,
  14638. qr(
  14639. {
  14640. isPinch: !!e.isPinch,
  14641. isDrag: e.isDrag,
  14642. targets: t.props.targets,
  14643. events: i,
  14644. transformObject: {},
  14645. transform: Va(e)
  14646. },
  14647. ws(qa(e))
  14648. )
  14649. )
  14650. );
  14651. },
  14652. dragControlStart: function (t, e) {
  14653. return this.dragStart(t, e);
  14654. },
  14655. dragControl: function (t, e) {
  14656. return this.drag(t, e);
  14657. },
  14658. dragControlAfter: function (t, e) {
  14659. return this.dragAfter(t, e);
  14660. },
  14661. dragControlEnd: function (t, e) {
  14662. return this.dragEnd(t, e);
  14663. },
  14664. dragGroupControlStart: function (t, e) {
  14665. return this.dragGroupStart(t, e);
  14666. },
  14667. dragGroupControl: function (t, e) {
  14668. return this.dragGroup(t, e);
  14669. },
  14670. dragGroupControlEnd: function (t, e) {
  14671. return this.dragGroupEnd(t, e);
  14672. },
  14673. fillDragParams: function (t, e) {
  14674. var n = {};
  14675. return (
  14676. or(Ha(e) || []).forEach(function (t) {
  14677. n[t.name] = t.functionValue;
  14678. }),
  14679. ys(
  14680. t,
  14681. e,
  14682. qr(
  14683. {
  14684. isPinch: !!e.isPinch,
  14685. transformObject: n,
  14686. transform: Va(e)
  14687. },
  14688. ws(qa(e))
  14689. )
  14690. )
  14691. );
  14692. },
  14693. fillDragEndParams: function (t, e) {
  14694. var n = {};
  14695. return (
  14696. or(Ha(e) || []).forEach(function (t) {
  14697. n[t.name] = t.functionValue;
  14698. }),
  14699. ys(
  14700. t,
  14701. e,
  14702. qr(
  14703. {
  14704. isPinch: !!e.isPinch,
  14705. isDrag: e.isDrag,
  14706. transformObject: n,
  14707. transform: Va(e)
  14708. },
  14709. ws(qa(e))
  14710. )
  14711. )
  14712. );
  14713. }
  14714. };
  14715. function Ul(t, e, n, r, a, i, o) {
  14716. (i.clientDistX = i.distX), (i.clientDistY = i.distY);
  14717. var s = 'Start' === a,
  14718. l = 'End' === a,
  14719. c = 'After' === a,
  14720. u = t.state.target,
  14721. f = i.isRequest,
  14722. d = r.indexOf('Control') > -1;
  14723. if (!u || (s && d && !f && t.areaElement === i.inputEvent.target))
  14724. return !1;
  14725. var p = Zr([], Kr(t[e]), !1);
  14726. if (f) {
  14727. var g = i.requestAble;
  14728. p.some(function (t) {
  14729. return t.name === g;
  14730. }) ||
  14731. p.push.apply(
  14732. p,
  14733. Zr(
  14734. [],
  14735. Kr(
  14736. t.props.ables.filter(function (t) {
  14737. return t.name === g;
  14738. })
  14739. ),
  14740. !1
  14741. )
  14742. );
  14743. }
  14744. if (
  14745. !p.length ||
  14746. p.every(function (t) {
  14747. return t.dragRelation;
  14748. })
  14749. )
  14750. return !1;
  14751. var m,
  14752. v = i.inputEvent;
  14753. l &&
  14754. v &&
  14755. (m = document.elementFromPoint(i.clientX, i.clientY) || v.target);
  14756. var h = !1,
  14757. A = function () {
  14758. var t;
  14759. (h = !0), null === (t = i.stop) || void 0 === t || t.call(i);
  14760. },
  14761. b =
  14762. s &&
  14763. (!t.targetGesto ||
  14764. !t.controlGesto ||
  14765. !t.targetGesto.isFlag() ||
  14766. !t.controlGesto.isFlag());
  14767. b && t.updateRect(a, !0, !1);
  14768. var w = i.datas,
  14769. k = d ? 'controlGesto' : 'targetGesto',
  14770. y = t[k],
  14771. I = function (e, n, r) {
  14772. if (!(n in e) || y !== t[k]) return !1;
  14773. var a = e.name,
  14774. o = w[a] || (w[a] = {});
  14775. if (
  14776. (s && (o.isEventStart = !r || !e[r] || e[r](t, i)),
  14777. !o.isEventStart)
  14778. )
  14779. return !1;
  14780. var l = e[n](
  14781. t,
  14782. qr(qr({}, i), {
  14783. stop: A,
  14784. datas: o,
  14785. originalDatas: w,
  14786. inputTarget: m
  14787. })
  14788. );
  14789. return (
  14790. t._emitter.off(), s && !1 === l && (o.isEventStart = !1), l
  14791. );
  14792. };
  14793. b &&
  14794. p.forEach(function (e) {
  14795. e.unset && e.unset(t);
  14796. }),
  14797. I(Gl, 'drag'.concat(r).concat(a));
  14798. var E = 0,
  14799. C = 0;
  14800. n.forEach(function (e) {
  14801. if (h) return !1;
  14802. var n = ''.concat(e).concat(r).concat(a),
  14803. o = ''.concat(e).concat(r, 'Condition');
  14804. '' !== a || f || Os(t.state, i);
  14805. var l = p.filter(function (t) {
  14806. return t[n];
  14807. }),
  14808. c = (l = l.filter(function (t, e) {
  14809. return t.name && l.indexOf(t) === e;
  14810. })).filter(function (t) {
  14811. return I(t, n, o);
  14812. }).length;
  14813. h && ++E,
  14814. c && ++C,
  14815. !h &&
  14816. s &&
  14817. l.length &&
  14818. !c &&
  14819. (E += l.filter(function (t) {
  14820. var e = t.name;
  14821. return !!w[e].isEventStart && 'strong' !== t.dragRelation;
  14822. }).length
  14823. ? 1
  14824. : 0);
  14825. }),
  14826. (c && !C) || I(Nl, 'drag'.concat(r).concat(a));
  14827. var B = y !== t[k] || E === n.length;
  14828. return (
  14829. (l || h || B) &&
  14830. ((t.state.gestos = {}),
  14831. t.moveables &&
  14832. t.moveables.forEach(function (t) {
  14833. t.state.gestos = {};
  14834. }),
  14835. p.forEach(function (e) {
  14836. e.unset && e.unset(t);
  14837. })),
  14838. s &&
  14839. !B &&
  14840. !f &&
  14841. C &&
  14842. t.props.preventDefault &&
  14843. (null == i || i.preventDefault()),
  14844. !t.isUnmounted &&
  14845. !B &&
  14846. (((!s && C && !o) || l) &&
  14847. (t.props.flushSync || No)(function () {
  14848. t.updateRect(l ? a : '', !0, !1), t.forceUpdate();
  14849. }),
  14850. s || l || c || !C || o || Ul(t, e, n, r, a + 'After', i),
  14851. !0)
  14852. );
  14853. }
  14854. function Fl(t) {
  14855. return function (e) {
  14856. var n,
  14857. r = e.inputEvent.target,
  14858. a = t.areaElement,
  14859. i = t._dragTarget;
  14860. return (
  14861. !(
  14862. !i ||
  14863. (null === (n = t.controlGesto) || void 0 === n
  14864. ? void 0
  14865. : n.isFlag())
  14866. ) &&
  14867. (r === i ||
  14868. i.contains(r) ||
  14869. r === a ||
  14870. (!t.isMoveableElement(r) && !t.controlBox.contains(r)) ||
  14871. ve(r, 'moveable-area') ||
  14872. ve(r, 'moveable-padding') ||
  14873. ve(r, 'moveable-edgeDraggable'))
  14874. );
  14875. };
  14876. }
  14877. function Ll(t, e, n) {
  14878. var r = t.controlBox,
  14879. a = [],
  14880. i = t.props.dragTarget;
  14881. return (
  14882. a.push(r),
  14883. (t.props.dragArea && !i) || a.push(e),
  14884. Xl(t, a, 'targetAbles', n, { dragStart: Fl(t), pinchStart: Fl(t) })
  14885. );
  14886. }
  14887. function Xl(t, e, n, r, a) {
  14888. void 0 === a && (a = {});
  14889. var i = 'targetAbles' === n,
  14890. o = t.props,
  14891. s = o.pinchOutside,
  14892. l = o.pinchThreshold,
  14893. c = o.preventClickEventOnDrag,
  14894. u = o.preventClickDefault,
  14895. f = o.checkInput,
  14896. d = o.dragFocusedInput,
  14897. p = o.preventDefault,
  14898. g = {
  14899. preventDefault: void 0 === p || p,
  14900. preventRightClick: !0,
  14901. preventWheelClick: !0,
  14902. container:
  14903. Gs(o.dragContainer, !0) || Ee(t.getControlBoxElement()),
  14904. pinchThreshold: l,
  14905. pinchOutside: s,
  14906. preventClickEventOnDrag: !!i && c,
  14907. preventClickEventOnDragStart: !!i && u,
  14908. preventClickEventByCondition: i
  14909. ? null
  14910. : function (e) {
  14911. return t.controlBox.contains(e.target);
  14912. },
  14913. checkInput: !!i && f,
  14914. dragFocusedInput: d
  14915. },
  14916. m = new Ur(e, g),
  14917. v = 'Control' === r;
  14918. return (
  14919. ['drag', 'pinch'].forEach(function (e) {
  14920. ['Start', '', 'End'].forEach(function (i) {
  14921. m.on(''.concat(e).concat(i), function (o) {
  14922. var s,
  14923. l = o.eventType,
  14924. c = 'drag' === e && o.isPinch;
  14925. !a[l] || a[l](o)
  14926. ? c ||
  14927. (Ul(t, n, 'drag' === e ? [e] : ['drag', e], r, i, o)
  14928. ? (t.props.stopPropagation || ('Start' === i && v)) &&
  14929. (null === (s = null == o ? void 0 : o.inputEvent) ||
  14930. void 0 === s ||
  14931. s.stopPropagation())
  14932. : o.stop())
  14933. : o.stop();
  14934. });
  14935. });
  14936. }),
  14937. m
  14938. );
  14939. }
  14940. var jl = (function () {
  14941. function t(t, e, n) {
  14942. var r = this;
  14943. (this.target = t),
  14944. (this.moveable = e),
  14945. (this.eventName = n),
  14946. (this.ables = []),
  14947. (this._onEvent = function (t) {
  14948. var e = r.eventName,
  14949. n = r.moveable;
  14950. n.state.disableNativeEvent ||
  14951. r.ables.forEach(function (r) {
  14952. r[e](n, { inputEvent: t });
  14953. });
  14954. }),
  14955. t.addEventListener(n.toLowerCase(), this._onEvent);
  14956. }
  14957. return (
  14958. (t.prototype.setAbles = function (t) {
  14959. this.ables = t;
  14960. }),
  14961. (t.prototype.destroy = function () {
  14962. this.target.removeEventListener(
  14963. this.eventName.toLowerCase(),
  14964. this._onEvent
  14965. ),
  14966. (this.target = null),
  14967. (this.moveable = null);
  14968. }),
  14969. t
  14970. );
  14971. })();
  14972. function Wl(t, e, n, r) {
  14973. var a;
  14974. void 0 === n && (n = e);
  14975. var i = ei(t, e),
  14976. o = i.matrixes,
  14977. s = i.is3d,
  14978. l = i.targetMatrix,
  14979. c = i.transformOrigin,
  14980. u = i.targetOrigin,
  14981. f = i.offsetContainer,
  14982. d = i.hasFixed,
  14983. p = i.zoom,
  14984. g = (function (t, e) {
  14985. if (ai) {
  14986. var n = ee(ai, function (n) {
  14987. return n[0][0] == t && n[0][1] == e;
  14988. });
  14989. if (n) return n[1];
  14990. }
  14991. var r = ei(t, e, !0);
  14992. return ai && ai.push([[t, e], r]), r;
  14993. })(f, n),
  14994. m = g.matrixes,
  14995. v = g.is3d,
  14996. h = g.offsetContainer,
  14997. A = g.zoom,
  14998. b = r || v || s,
  14999. w = b ? 4 : 3,
  15000. k = 'svg' !== t.tagName.toLowerCase() && 'ownerSVGElement' in t,
  15001. y = l,
  15002. I = $n(w),
  15003. E = $n(w),
  15004. C = $n(w),
  15005. B = $n(w),
  15006. x = o.length,
  15007. S = m
  15008. .map(function (t) {
  15009. return qr(qr({}, t), {
  15010. matrix: t.matrix ? Zr([], Kr(t.matrix), !1) : void 0
  15011. });
  15012. })
  15013. .reverse();
  15014. o.reverse(),
  15015. !s && b && ((y = Yn(y, 3, 4)), qo(o)),
  15016. !v && b && qo(S),
  15017. S.forEach(function (t) {
  15018. E = Nn(E, t.matrix, w);
  15019. });
  15020. var D = n || Ie(t),
  15021. R =
  15022. (null === (a = S[0]) || void 0 === a ? void 0 : a.target) ||
  15023. Wo(D, D, !0).offsetParent,
  15024. Q = S.slice(1).reduce(function (t, e) {
  15025. return Nn(t, e.matrix, w);
  15026. }, $n(w));
  15027. o.forEach(function (t, e) {
  15028. if (
  15029. (x - 2 === e && (C = I.slice()),
  15030. x - 1 === e && (B = I.slice()),
  15031. !t.matrix)
  15032. ) {
  15033. var n = (function (t, e, n, r, a) {
  15034. var i,
  15035. o = t.target,
  15036. s = t.origin,
  15037. l = e.matrix,
  15038. c = cs(o),
  15039. u = c.offsetWidth,
  15040. f = c.offsetHeight,
  15041. d = n.getBoundingClientRect(),
  15042. p = [0, 0];
  15043. n === Ie(n) && (p = Vo(o, !0));
  15044. for (
  15045. var g = o.getBoundingClientRect(),
  15046. m =
  15047. g.left -
  15048. d.left +
  15049. n.scrollLeft -
  15050. (n.clientLeft || 0) +
  15051. p[0],
  15052. v = g.top - d.top + n.scrollTop - (n.clientTop || 0) + p[1],
  15053. h = g.width,
  15054. A = g.height,
  15055. b = Gn(r, a, l),
  15056. w = rs(b, u, f, r),
  15057. k = w.left,
  15058. y = w.top,
  15059. I = w.width,
  15060. E = w.height,
  15061. C = ts(b, s, r),
  15062. B = Fn(C, [k, y]),
  15063. x = [m + (B[0] * h) / I, v + (B[1] * A) / E],
  15064. S = [0, 0],
  15065. D = 0;
  15066. ++D < 10;
  15067. ) {
  15068. var R = Tn(a, r);
  15069. (i = Kr(Fn(ts(R, x, r), ts(R, C, r)), 2)),
  15070. (S[0] = i[0]),
  15071. (S[1] = i[1]);
  15072. var Q = rs(Gn(r, a, er(S, r), l), u, f, r),
  15073. _ = Q.left - m,
  15074. O = Q.top - v;
  15075. if (qs(_) < 2 && qs(O) < 2) break;
  15076. (x[0] -= _), (x[1] -= O);
  15077. }
  15078. return S.map(function (t) {
  15079. return Math.round(t);
  15080. });
  15081. })(t, o[e + 1], R, w, Nn(Q, I, w));
  15082. t.matrix = er(n, w);
  15083. }
  15084. I = Nn(I, t.matrix, w);
  15085. });
  15086. var _ = !k && s;
  15087. y || (y = $n(_ ? 4 : 3));
  15088. var O = Zo(k && 16 === y.length ? Yn(y, 4, 3) : y, _),
  15089. M = E;
  15090. return (
  15091. (E = Mn(E, w, w)),
  15092. {
  15093. hasZoom: 1 !== p || 1 !== A,
  15094. hasFixed: d,
  15095. matrixes: o,
  15096. rootMatrix: E,
  15097. originalRootMatrix: M,
  15098. beforeMatrix: C,
  15099. offsetMatrix: B,
  15100. allMatrix: I,
  15101. targetMatrix: y,
  15102. targetTransform: O,
  15103. inlineTransform: t.style.transform,
  15104. transformOrigin: c,
  15105. targetOrigin: u,
  15106. is3d: b,
  15107. offsetContainer: f,
  15108. offsetRootContainer: h
  15109. }
  15110. );
  15111. }
  15112. function Hl(t, e, n, r, a, i) {
  15113. void 0 === i && (i = []);
  15114. var o = 1,
  15115. s = [0, 0],
  15116. l = {
  15117. left: 0,
  15118. top: 0,
  15119. width: 0,
  15120. height: 0,
  15121. right: 0,
  15122. bottom: 0,
  15123. clientLeft: 0,
  15124. clientTop: 0,
  15125. clientWidth: 0,
  15126. clientHeight: 0,
  15127. scrollWidth: 0,
  15128. scrollHeight: 0
  15129. },
  15130. c = {
  15131. left: 0,
  15132. top: 0,
  15133. width: 0,
  15134. height: 0,
  15135. right: 0,
  15136. bottom: 0,
  15137. clientLeft: 0,
  15138. clientTop: 0,
  15139. clientWidth: 0,
  15140. clientHeight: 0,
  15141. scrollWidth: 0,
  15142. scrollHeight: 0
  15143. },
  15144. u = {
  15145. left: 0,
  15146. top: 0,
  15147. width: 0,
  15148. height: 0,
  15149. right: 0,
  15150. bottom: 0,
  15151. clientLeft: 0,
  15152. clientTop: 0,
  15153. clientWidth: 0,
  15154. clientHeight: 0,
  15155. scrollWidth: 0,
  15156. scrollHeight: 0
  15157. },
  15158. f = {
  15159. left: 0,
  15160. top: 0,
  15161. width: 0,
  15162. height: 0,
  15163. right: 0,
  15164. bottom: 0,
  15165. clientLeft: 0,
  15166. clientTop: 0,
  15167. clientWidth: 0,
  15168. clientHeight: 0,
  15169. scrollWidth: 0,
  15170. scrollHeight: 0
  15171. },
  15172. d = [0, 0],
  15173. p = {},
  15174. g = (function (t, e, n, r) {
  15175. void 0 === n && (n = e);
  15176. var a = 0,
  15177. i = 0,
  15178. o = 0,
  15179. s = {},
  15180. l = cs(t);
  15181. if ((t && ((a = l.offsetWidth), (i = l.offsetHeight)), t)) {
  15182. var c = Wl(t, e, n, r),
  15183. u = Ra(c.allMatrix, c.transformOrigin, a, i);
  15184. s = qr(qr({}, c), u);
  15185. var f = Ra(c.allMatrix, [50, 50], 100, 100);
  15186. o = us([f.pos1, f.pos2], f.direction);
  15187. }
  15188. var d = r ? 4 : 3;
  15189. return qr(
  15190. qr(qr({ hasZoom: !1, width: a, height: i, rotation: o }, l), {
  15191. originalRootMatrix: $n(d),
  15192. rootMatrix: $n(d),
  15193. beforeMatrix: $n(d),
  15194. offsetMatrix: $n(d),
  15195. allMatrix: $n(d),
  15196. targetMatrix: $n(d),
  15197. targetTransform: '',
  15198. inlineTransform: '',
  15199. transformOrigin: [0, 0],
  15200. targetOrigin: [0, 0],
  15201. is3d: !!r,
  15202. left: 0,
  15203. top: 0,
  15204. right: 0,
  15205. bottom: 0,
  15206. origin: [0, 0],
  15207. pos1: [0, 0],
  15208. pos2: [0, 0],
  15209. pos3: [0, 0],
  15210. pos4: [0, 0],
  15211. direction: 1,
  15212. hasFixed: !1,
  15213. offsetContainer: null,
  15214. offsetRootContainer: null,
  15215. matrixes: []
  15216. }),
  15217. s
  15218. );
  15219. })(e, n, a, !0);
  15220. if (e) {
  15221. var m = oi(e);
  15222. i.forEach(function (t) {
  15223. p[t] = m(t);
  15224. });
  15225. var v = g.is3d ? 4 : 3,
  15226. h = Ra(
  15227. g.offsetMatrix,
  15228. Un(g.transformOrigin, zn(g.targetMatrix, v)),
  15229. g.width,
  15230. g.height
  15231. );
  15232. (o = h.direction),
  15233. (s = Un(h.origin, [h.left - g.left, h.top - g.top])),
  15234. (f = ps(g.offsetRootContainer));
  15235. var A = Wo(r, r, !0).offsetParent || g.offsetRootContainer;
  15236. if (g.hasZoom) {
  15237. var b = Ra(
  15238. Nn(g.originalRootMatrix, g.allMatrix),
  15239. g.transformOrigin,
  15240. g.width,
  15241. g.height
  15242. ),
  15243. w = Ra(
  15244. g.originalRootMatrix,
  15245. Xo(oi(A)('transformOrigin')).map(function (t) {
  15246. return parseFloat(t);
  15247. }),
  15248. A.offsetWidth,
  15249. A.offsetHeight
  15250. );
  15251. if (((l = ds(b, f)), (u = ds(w, f, A, !0)), t)) {
  15252. var k = b.left,
  15253. y = b.top;
  15254. c = ds({ left: k, top: y, bottom: y, right: y }, f);
  15255. }
  15256. } else {
  15257. (l = ps(e)),
  15258. (u = (function (t) {
  15259. var e = null == ri ? void 0 : ri.get(t);
  15260. if (e) return e;
  15261. var n = ps(t, !0);
  15262. return ri && ri.set(t, n), n;
  15263. })(A)),
  15264. t && (c = ps(t));
  15265. var I = u.left,
  15266. E = u.top,
  15267. C = u.clientLeft,
  15268. B = u.clientTop,
  15269. x = [l.left - I, l.top - E];
  15270. d = Fn(_s(g.rootMatrix, x, 4), [C + g.left, B + g.top]);
  15271. }
  15272. }
  15273. return qr(
  15274. {
  15275. targetClientRect: l,
  15276. containerClientRect: u,
  15277. moveableClientRect: c,
  15278. rootContainerClientRect: f,
  15279. beforeDirection: o,
  15280. beforeOrigin: s,
  15281. originalBeforeOrigin: s,
  15282. target: e,
  15283. style: p,
  15284. offsetDelta: d
  15285. },
  15286. g
  15287. );
  15288. }
  15289. function Vl(t) {
  15290. var e = t.pos1,
  15291. n = t.pos2,
  15292. r = t.pos3,
  15293. a = t.pos4;
  15294. if (!(e && n && r && a)) return null;
  15295. var i = Er([e, n, r, a]),
  15296. o = [i.minX, i.minY],
  15297. s = Fn(t.origin, o);
  15298. return (
  15299. (e = Fn(e, o)),
  15300. (n = Fn(n, o)),
  15301. (r = Fn(r, o)),
  15302. (a = Fn(a, o)),
  15303. qr(qr({}, t), {
  15304. left: t.left,
  15305. top: t.top,
  15306. posDelta: o,
  15307. pos1: e,
  15308. pos2: n,
  15309. pos3: r,
  15310. pos4: a,
  15311. origin: s,
  15312. beforeOrigin: s,
  15313. isPersisted: !0
  15314. })
  15315. );
  15316. }
  15317. var ql = (function (t) {
  15318. function e() {
  15319. var e = (null !== t && t.apply(this, arguments)) || this;
  15320. return (
  15321. (e.state = qr(
  15322. {
  15323. container: null,
  15324. gestos: {},
  15325. renderPoses: [
  15326. [0, 0],
  15327. [0, 0],
  15328. [0, 0],
  15329. [0, 0]
  15330. ],
  15331. disableNativeEvent: !1,
  15332. posDelta: [0, 0]
  15333. },
  15334. Hl(null)
  15335. )),
  15336. (e.renderState = {}),
  15337. (e.enabledAbles = []),
  15338. (e.targetAbles = []),
  15339. (e.controlAbles = []),
  15340. (e.rotation = 0),
  15341. (e.scale = [1, 1]),
  15342. (e.isMoveableMounted = !1),
  15343. (e.isUnmounted = !1),
  15344. (e.events = { mouseEnter: null, mouseLeave: null }),
  15345. (e._emitter = new pr()),
  15346. (e._prevOriginalDragTarget = null),
  15347. (e._originalDragTarget = null),
  15348. (e._prevDragTarget = null),
  15349. (e._dragTarget = null),
  15350. (e._prevDragArea = !1),
  15351. (e._isPropTargetChanged = !1),
  15352. (e._hasFirstTarget = !1),
  15353. (e._reiszeObserver = null),
  15354. (e._observerId = 0),
  15355. (e._mutationObserver = null),
  15356. (e._rootContainer = null),
  15357. (e._viewContainer = null),
  15358. (e._viewClassNames = []),
  15359. (e._store = {}),
  15360. (e.checkUpdateRect = function () {
  15361. if (!e.isDragging()) {
  15362. var t = e.props.parentMoveable;
  15363. t
  15364. ? t.checkUpdateRect()
  15365. : (re(e._observerId),
  15366. (e._observerId = ne(function () {
  15367. e.isDragging() || e.updateRect();
  15368. })));
  15369. }
  15370. }),
  15371. (e._onPreventClick = function (t) {
  15372. t.stopPropagation(), t.preventDefault();
  15373. }),
  15374. e
  15375. );
  15376. }
  15377. return (
  15378. Vr(e, t),
  15379. (e.prototype.render = function () {
  15380. var t = this.props,
  15381. e = this.getState(),
  15382. n = t.parentPosition,
  15383. r = t.className,
  15384. a = t.target,
  15385. i = t.zoom,
  15386. o = t.cspNonce,
  15387. s = t.translateZ,
  15388. l = t.cssStyled,
  15389. c = t.groupable,
  15390. u = t.linePadding,
  15391. f = t.controlPadding;
  15392. this._checkUpdateRootContainer(),
  15393. this.checkUpdate(),
  15394. this.updateRenderPoses();
  15395. var d = Kr(n || [0, 0], 2),
  15396. p = d[0],
  15397. g = d[1],
  15398. m = e.left,
  15399. v = e.top,
  15400. h = e.target,
  15401. A = e.direction,
  15402. b = e.hasFixed,
  15403. w = e.offsetDelta,
  15404. k = t.targets,
  15405. y = this.isDragging(),
  15406. I = {};
  15407. this.getEnabledAbles().forEach(function (t) {
  15408. I['data-able-'.concat(t.name.toLowerCase())] = !0;
  15409. });
  15410. var E = this._getAbleClassName(),
  15411. C =
  15412. (k && k.length && (h || c)) ||
  15413. a ||
  15414. (!this._hasFirstTarget && this.state.isPersisted),
  15415. B =
  15416. this.controlBox ||
  15417. this.props.firstRenderState ||
  15418. this.props.persistData,
  15419. x = [m - p, v - g];
  15420. !c && t.useAccuratePosition && ((x[0] += w[0]), (x[1] += w[1]));
  15421. var S = {
  15422. position: b ? 'fixed' : 'absolute',
  15423. display: C ? 'block' : 'none',
  15424. visibility: B ? 'visible' : 'hidden',
  15425. transform: 'translate3d('
  15426. .concat(x[0], 'px, ')
  15427. .concat(x[1], 'px, ')
  15428. .concat(s, ')'),
  15429. '--zoom': i,
  15430. '--zoompx': ''.concat(i, 'px')
  15431. };
  15432. return (
  15433. u && (S['--moveable-line-padding'] = u),
  15434. f && (S['--moveable-control-padding'] = f),
  15435. ln(
  15436. l,
  15437. qr(
  15438. {
  15439. cspNonce: o,
  15440. ref: Ct(this, 'controlBox'),
  15441. className: ''
  15442. .concat(
  15443. Go(
  15444. 'control-box',
  15445. -1 === A ? 'reverse' : '',
  15446. y ? 'dragging' : ''
  15447. ),
  15448. ' '
  15449. )
  15450. .concat(E, ' ')
  15451. .concat(r)
  15452. },
  15453. I,
  15454. { onClick: this._onPreventClick, style: S }
  15455. ),
  15456. this.renderAbles(),
  15457. this._renderLines()
  15458. )
  15459. );
  15460. }),
  15461. (e.prototype.componentDidMount = function () {
  15462. (this.isMoveableMounted = !0), (this.isUnmounted = !1);
  15463. var t = this.props,
  15464. e = t.parentMoveable,
  15465. n = t.container;
  15466. this._checkUpdateRootContainer(),
  15467. this._checkUpdateViewContainer(),
  15468. this._updateTargets(),
  15469. this._updateNativeEvents(),
  15470. this._updateEvents(),
  15471. this.updateCheckInput(),
  15472. this._updateObserver(this.props),
  15473. n ||
  15474. e ||
  15475. this.state.isPersisted ||
  15476. (this.updateRect('', !1, !1), this.forceUpdate());
  15477. }),
  15478. (e.prototype.componentDidUpdate = function (t) {
  15479. this._checkUpdateRootContainer(),
  15480. this._checkUpdateViewContainer(),
  15481. this._updateNativeEvents(),
  15482. this._updateTargets(),
  15483. this._updateEvents(),
  15484. this.updateCheckInput(),
  15485. this._updateObserver(t);
  15486. }),
  15487. (e.prototype.componentWillUnmount = function () {
  15488. var t, e;
  15489. (this.isMoveableMounted = !1),
  15490. (this.isUnmounted = !0),
  15491. this._emitter.off(),
  15492. null === (t = this._reiszeObserver) ||
  15493. void 0 === t ||
  15494. t.disconnect(),
  15495. null === (e = this._mutationObserver) ||
  15496. void 0 === e ||
  15497. e.disconnect(),
  15498. this._viewContainer && this._changeAbleViewClassNames([]),
  15499. bs(this, !1),
  15500. bs(this, !0);
  15501. var n = this.events;
  15502. for (var r in n) {
  15503. var a = n[r];
  15504. a && a.destroy();
  15505. }
  15506. }),
  15507. (e.prototype.getTargets = function () {
  15508. var t = this.props.target;
  15509. return t ? [t] : [];
  15510. }),
  15511. (e.prototype.getAble = function (t) {
  15512. return ee(this.props.ables || [], function (e) {
  15513. return e.name === t;
  15514. });
  15515. }),
  15516. (e.prototype.getContainer = function () {
  15517. var t = this.props,
  15518. e = t.parentMoveable,
  15519. n = t.wrapperMoveable;
  15520. return (
  15521. t.container ||
  15522. (n && n.getContainer()) ||
  15523. (e && e.getContainer()) ||
  15524. this.controlBox.parentElement
  15525. );
  15526. }),
  15527. (e.prototype.getControlBoxElement = function () {
  15528. return this.controlBox;
  15529. }),
  15530. (e.prototype.isMoveableElement = function (t) {
  15531. var e;
  15532. return (
  15533. t &&
  15534. (
  15535. (null === (e = t.getAttribute) || void 0 === e
  15536. ? void 0
  15537. : e.call(t, 'class')) || ''
  15538. ).indexOf(ma) > -1
  15539. );
  15540. }),
  15541. (e.prototype.dragStart = function (t) {
  15542. var e = this.targetGesto,
  15543. n = this.controlGesto;
  15544. return (
  15545. e && Fl(this)({ inputEvent: t })
  15546. ? e.isFlag() || e.triggerDragStart(t)
  15547. : n &&
  15548. this.isMoveableElement(t.target) &&
  15549. (n.isFlag() || n.triggerDragStart(t)),
  15550. this
  15551. );
  15552. }),
  15553. (e.prototype.hitTest = function (t) {
  15554. var e,
  15555. n = this.state,
  15556. r = n.target,
  15557. a = n.pos1,
  15558. i = n.pos2,
  15559. o = n.pos3,
  15560. s = n.pos4,
  15561. l = n.targetClientRect;
  15562. if (!r) return 0;
  15563. if (Be(t)) {
  15564. var c = t.getBoundingClientRect();
  15565. e = {
  15566. left: c.left,
  15567. top: c.top,
  15568. width: c.width,
  15569. height: c.height
  15570. };
  15571. } else e = qr({ width: 0, height: 0 }, t);
  15572. var u = e.left,
  15573. f = e.top,
  15574. d = e.width,
  15575. p = e.height,
  15576. g = Ir([a, i, s, o], l),
  15577. m = yr(
  15578. Rr(g, [
  15579. [u, f],
  15580. [u + d, f],
  15581. [u + d, f + p],
  15582. [u, f + p]
  15583. ])
  15584. ),
  15585. v = yr(g);
  15586. return m && v ? Math.min(100, (m / v) * 100) : 0;
  15587. }),
  15588. (e.prototype.isInside = function (t, e) {
  15589. var n = this.state,
  15590. r = n.target,
  15591. a = n.pos1,
  15592. i = n.pos2,
  15593. o = n.pos3,
  15594. s = n.pos4,
  15595. l = n.targetClientRect;
  15596. return !!r && Cr([t, e], Ir([a, i, s, o], l));
  15597. }),
  15598. (e.prototype.updateRect = function (t, e, n) {
  15599. void 0 === n && (n = !0);
  15600. var r = this.props,
  15601. a = !r.parentPosition && !r.wrapperMoveable;
  15602. a && ii(!0);
  15603. var i = r.parentMoveable,
  15604. o = this.state.target || r.target,
  15605. s = this.getContainer(),
  15606. l = i ? i._rootContainer : this._rootContainer,
  15607. c = Hl(
  15608. this.controlBox,
  15609. o,
  15610. s,
  15611. s,
  15612. l || s,
  15613. this._getRequestStyles()
  15614. );
  15615. if (!o && this._hasFirstTarget && r.persistData) {
  15616. var u = Vl(r.persistData);
  15617. for (var f in u) c[f] = u[f];
  15618. }
  15619. a && ii(), this.updateState(c, !i && n);
  15620. }),
  15621. (e.prototype.isDragging = function (t) {
  15622. var e,
  15623. n,
  15624. r = this.targetGesto,
  15625. a = this.controlGesto;
  15626. return (null == r ? void 0 : r.isFlag())
  15627. ? !t ||
  15628. !!(null === (e = r.getEventData()[t]) || void 0 === e
  15629. ? void 0
  15630. : e.isEventStart)
  15631. : !(
  15632. !(null == a ? void 0 : a.isFlag()) ||
  15633. (t &&
  15634. !(null === (n = a.getEventData()[t]) || void 0 === n
  15635. ? void 0
  15636. : n.isEventStart))
  15637. );
  15638. }),
  15639. (e.prototype.updateTarget = function (t) {
  15640. this.updateRect(t, !0);
  15641. }),
  15642. (e.prototype.getRect = function () {
  15643. var t = this.state,
  15644. e = hs(this.state),
  15645. n = Kr(e, 4),
  15646. r = n[0],
  15647. a = n[1],
  15648. i = n[2],
  15649. o = n[3],
  15650. s = ns(e),
  15651. l = t.width,
  15652. c = t.height,
  15653. u = s.width,
  15654. f = s.height,
  15655. d = s.left,
  15656. p = s.top,
  15657. g = [t.left, t.top],
  15658. m = Un(g, t.origin);
  15659. return {
  15660. width: u,
  15661. height: f,
  15662. left: d,
  15663. top: p,
  15664. pos1: r,
  15665. pos2: a,
  15666. pos3: i,
  15667. pos4: o,
  15668. offsetWidth: l,
  15669. offsetHeight: c,
  15670. beforeOrigin: Un(g, t.beforeOrigin),
  15671. origin: m,
  15672. transformOrigin: t.transformOrigin,
  15673. rotation: this.getRotation()
  15674. };
  15675. }),
  15676. (e.prototype.getManager = function () {
  15677. return this;
  15678. }),
  15679. (e.prototype.stopDrag = function (t) {
  15680. var e;
  15681. (t && 'target' !== t) ||
  15682. (!1 ===
  15683. (null == (e = this.targetGesto) ? void 0 : e.isIdle()) &&
  15684. As(this, !1),
  15685. null == e || e.stop()),
  15686. (t && 'control' !== t) ||
  15687. (!1 ===
  15688. (null == (e = this.controlGesto) ? void 0 : e.isIdle()) &&
  15689. As(this, !0),
  15690. null == e || e.stop());
  15691. }),
  15692. (e.prototype.getRotation = function () {
  15693. var t = this.state;
  15694. return (function (t, e, n) {
  15695. var r = (ue(t, e) / Math.PI) * 180;
  15696. return (r = n >= 0 ? r : 180 - r) >= 0 ? r : 360 + r;
  15697. })(t.pos1, t.pos2, t.direction);
  15698. }),
  15699. (e.prototype.request = function (t, e, n) {
  15700. void 0 === e && (e = {});
  15701. var r = this.props,
  15702. a = r.ables,
  15703. i = r.groupable,
  15704. o = a.filter(function (e) {
  15705. return e.name === t;
  15706. })[0];
  15707. if (this.isDragging() || !o || !o.request)
  15708. return {
  15709. request: function () {
  15710. return this;
  15711. },
  15712. requestEnd: function () {
  15713. return this;
  15714. }
  15715. };
  15716. var s = this,
  15717. l = o.request(this),
  15718. c = n || e.isInstant,
  15719. u = l.isControl ? 'controlAbles' : 'targetAbles',
  15720. f = ''
  15721. .concat(i ? 'Group' : '')
  15722. .concat(l.isControl ? 'Control' : ''),
  15723. d = {
  15724. request: function (e) {
  15725. return (
  15726. Ul(
  15727. s,
  15728. u,
  15729. ['drag'],
  15730. f,
  15731. '',
  15732. qr(qr({}, l.request(e)), {
  15733. requestAble: t,
  15734. isRequest: !0
  15735. }),
  15736. c
  15737. ),
  15738. this
  15739. );
  15740. },
  15741. requestEnd: function () {
  15742. return (
  15743. Ul(
  15744. s,
  15745. u,
  15746. ['drag'],
  15747. f,
  15748. 'End',
  15749. qr(qr({}, l.requestEnd()), {
  15750. requestAble: t,
  15751. isRequest: !0
  15752. }),
  15753. c
  15754. ),
  15755. this
  15756. );
  15757. }
  15758. };
  15759. return (
  15760. Ul(
  15761. s,
  15762. u,
  15763. ['drag'],
  15764. f,
  15765. 'Start',
  15766. qr(qr({}, l.requestStart(e)), {
  15767. requestAble: t,
  15768. isRequest: !0
  15769. }),
  15770. c
  15771. ),
  15772. c ? d.request(e).requestEnd() : d
  15773. );
  15774. }),
  15775. (e.prototype.destroy = function () {
  15776. this.componentWillUnmount();
  15777. }),
  15778. (e.prototype.updateRenderPoses = function () {
  15779. var t = this.getState(),
  15780. e = this.props,
  15781. n = e.padding,
  15782. r = t.originalBeforeOrigin,
  15783. a = t.transformOrigin,
  15784. i = t.allMatrix,
  15785. o = t.is3d,
  15786. s = t.pos1,
  15787. l = t.pos2,
  15788. c = t.pos3,
  15789. u = t.pos4,
  15790. f = t.left,
  15791. d = t.top,
  15792. p = t.isPersisted;
  15793. if (n) {
  15794. var g = Zs(n),
  15795. m = g.left,
  15796. v = g.top,
  15797. h = g.bottom,
  15798. A = g.right,
  15799. b = o ? 4 : 3,
  15800. w = Gn(
  15801. b,
  15802. er(
  15803. (p
  15804. ? a
  15805. : this.controlBox && e.groupable
  15806. ? r
  15807. : Un(r, [f, d])
  15808. ).map(function (t) {
  15809. return -t;
  15810. }),
  15811. b
  15812. ),
  15813. i,
  15814. er(a, b)
  15815. );
  15816. t.renderPoses = [
  15817. Ms(w, s, [-m, -v], b),
  15818. Ms(w, l, [A, -v], b),
  15819. Ms(w, c, [-m, h], b),
  15820. Ms(w, u, [A, h], b)
  15821. ];
  15822. } else t.renderPoses = [s, l, c, u];
  15823. }),
  15824. (e.prototype.checkUpdate = function () {
  15825. this._isPropTargetChanged = !1;
  15826. var t = this.props,
  15827. e = t.target,
  15828. n = t.container,
  15829. r = t.parentMoveable,
  15830. a = this.state,
  15831. i = a.target,
  15832. o = a.container;
  15833. if (i || e) {
  15834. this.updateAbles();
  15835. var s = !Ss(i, e);
  15836. if (s || !Ss(o, n)) {
  15837. var l = n || this.controlBox;
  15838. l && this.unsetAbles(),
  15839. this.updateState({ target: e, container: n }),
  15840. !r && l && this.updateRect('End', !1, !1),
  15841. (this._isPropTargetChanged = s);
  15842. }
  15843. }
  15844. }),
  15845. (e.prototype.waitToChangeTarget = function () {
  15846. return new Promise(function () {});
  15847. }),
  15848. (e.prototype.triggerEvent = function (t, e) {
  15849. this._emitter.trigger(t, e);
  15850. var n = this.props[t];
  15851. return n && n(e);
  15852. }),
  15853. (e.prototype.useCSS = function (t, e) {
  15854. var n = this.props.customStyledMap,
  15855. r = t + e;
  15856. return n[r] || (n[r] = Wr(t, e)), n[r];
  15857. }),
  15858. (e.prototype.getState = function () {
  15859. var t,
  15860. e = this.props;
  15861. (e.target ||
  15862. (null === (t = e.targets) || void 0 === t
  15863. ? void 0
  15864. : t.length)) &&
  15865. (this._hasFirstTarget = !0);
  15866. var n = this.controlBox,
  15867. r = e.persistData,
  15868. a = e.firstRenderState;
  15869. if (a && !n) return a;
  15870. if (!this._hasFirstTarget && r) {
  15871. var i = Vl(r);
  15872. if (i) return this.updateState(i, !1), this.state;
  15873. }
  15874. return (this.state.isPersisted = !1), this.state;
  15875. }),
  15876. (e.prototype.updateSelectors = function () {}),
  15877. (e.prototype.unsetAbles = function () {
  15878. var t = this;
  15879. this.targetAbles.forEach(function (e) {
  15880. e.unset && e.unset(t);
  15881. });
  15882. }),
  15883. (e.prototype.updateAbles = function (t, e) {
  15884. void 0 === t && (t = this.props.ables),
  15885. void 0 === e && (e = '');
  15886. var n = this.props.triggerAblesSimultaneously,
  15887. r = this.getEnabledAbles(t),
  15888. a = 'drag'.concat(e, 'Start'),
  15889. i = 'pinch'.concat(e, 'Start'),
  15890. o = 'drag'.concat(e, 'ControlStart'),
  15891. s = xs(r, [a, i], n),
  15892. l = xs(r, [o], n);
  15893. (this.enabledAbles = r),
  15894. (this.targetAbles = s),
  15895. (this.controlAbles = l);
  15896. }),
  15897. (e.prototype.updateState = function (t, e) {
  15898. if (e) {
  15899. if (this.isUnmounted) return;
  15900. this.setState(t);
  15901. } else {
  15902. var n = this.state;
  15903. for (var r in t) n[r] = t[r];
  15904. }
  15905. }),
  15906. (e.prototype.getEnabledAbles = function (t) {
  15907. void 0 === t && (t = this.props.ables);
  15908. var e = this.props;
  15909. return t.filter(function (t) {
  15910. return t && ((t.always && !1 !== e[t.name]) || e[t.name]);
  15911. });
  15912. }),
  15913. (e.prototype.renderAbles = function () {
  15914. var t,
  15915. e,
  15916. n,
  15917. r,
  15918. a = this,
  15919. i = this.props.triggerAblesSimultaneously,
  15920. o = { createElement: ln };
  15921. return (
  15922. (this.renderState = {}),
  15923. ((t = Rs(
  15924. xs(this.getEnabledAbles(), ['render'], i).map(function (t) {
  15925. return (0, t.render)(a, o) || [];
  15926. })
  15927. ).filter(function (t) {
  15928. return t;
  15929. })),
  15930. (e = function (t) {
  15931. return t.key;
  15932. }),
  15933. (n = []),
  15934. (r = {}),
  15935. t.forEach(function (a, i) {
  15936. var o = e(a, i, t),
  15937. s = r[o];
  15938. s || ((s = []), (r[o] = s), n.push(s)), s.push(a);
  15939. }),
  15940. n).map(function (t) {
  15941. return t[0];
  15942. })
  15943. );
  15944. }),
  15945. (e.prototype.updateCheckInput = function () {
  15946. this.targetGesto &&
  15947. (this.targetGesto.options.checkInput = this.props.checkInput);
  15948. }),
  15949. (e.prototype._getRequestStyles = function () {
  15950. return this.getEnabledAbles().reduce(function (t, e) {
  15951. var n,
  15952. r,
  15953. a =
  15954. null !==
  15955. (r =
  15956. null === (n = e.requestStyle) || void 0 === n
  15957. ? void 0
  15958. : n.call(e)) && void 0 !== r
  15959. ? r
  15960. : [];
  15961. return Zr(Zr([], Kr(t), !1), Kr(a), !1);
  15962. }, Zr([], Kr(this.props.requestStyles || []), !1));
  15963. }),
  15964. (e.prototype._updateObserver = function (t) {
  15965. this._updateResizeObserver(t), this._updateMutationObserver(t);
  15966. }),
  15967. (e.prototype._updateEvents = function () {
  15968. var t = this.controlBox,
  15969. e = this.targetAbles.length,
  15970. n = this.controlAbles.length,
  15971. r = this._dragTarget;
  15972. ((!e && this.targetGesto) || this._isTargetChanged(!0)) &&
  15973. (bs(this, !1), this.updateState({ gestos: {} })),
  15974. n || bs(this, !0),
  15975. r &&
  15976. e &&
  15977. !this.targetGesto &&
  15978. (this.targetGesto = Ll(this, r, '')),
  15979. !this.controlGesto &&
  15980. n &&
  15981. (this.controlGesto = Xl(
  15982. this,
  15983. t,
  15984. 'controlAbles',
  15985. 'Control'
  15986. ));
  15987. }),
  15988. (e.prototype._updateTargets = function () {
  15989. var t = this.props;
  15990. (this._prevDragTarget = this._dragTarget),
  15991. (this._prevOriginalDragTarget = this._originalDragTarget),
  15992. (this._originalDragTarget = t.dragTarget || t.target),
  15993. (this._dragTarget = Gs(this._originalDragTarget, !0)),
  15994. (this._prevDragArea = t.dragArea);
  15995. }),
  15996. (e.prototype._renderLines = function () {
  15997. var t = this.props,
  15998. e = t.zoom,
  15999. n = t.hideDefaultLines,
  16000. r = t.hideChildMoveableDefaultLines,
  16001. a = t.parentMoveable;
  16002. if (n || (a && r)) return [];
  16003. var i = this.getState().renderPoses,
  16004. o = { createElement: ln };
  16005. return [
  16006. [0, 1],
  16007. [1, 3],
  16008. [3, 2],
  16009. [2, 0]
  16010. ].map(function (t, n) {
  16011. var r = Kr(t, 2),
  16012. a = r[0],
  16013. s = r[1];
  16014. return pi(o, '', i[a], i[s], e, 'render-line-'.concat(n));
  16015. });
  16016. }),
  16017. (e.prototype._isTargetChanged = function (t) {
  16018. var e = this.props,
  16019. n = e.dragTarget || e.target,
  16020. r = this._prevOriginalDragTarget,
  16021. a = this._prevDragArea,
  16022. i = e.dragArea;
  16023. return (!i && r !== n) || ((t || i) && a !== i);
  16024. }),
  16025. (e.prototype._updateNativeEvents = function () {
  16026. var t = this,
  16027. e = this.props.dragArea
  16028. ? this.areaElement
  16029. : this.state.target,
  16030. n = this.events,
  16031. r = ae(n);
  16032. if (this._isTargetChanged())
  16033. for (var a in n) {
  16034. var i = n[a];
  16035. i && i.destroy(), (n[a] = null);
  16036. }
  16037. if (e) {
  16038. var o = this.enabledAbles;
  16039. r.forEach(function (r) {
  16040. var a = xs(o, [r]),
  16041. i = a.length > 0,
  16042. s = n[r];
  16043. i
  16044. ? (s || ((s = new jl(e, t, r)), (n[r] = s)),
  16045. s.setAbles(a))
  16046. : s && (s.destroy(), (n[r] = null));
  16047. });
  16048. }
  16049. }),
  16050. (e.prototype._checkUpdateRootContainer = function () {
  16051. var t = this.props.rootContainer;
  16052. !this._rootContainer && t && (this._rootContainer = Gs(t, !0));
  16053. }),
  16054. (e.prototype._checkUpdateViewContainer = function () {
  16055. var t = this.props.viewContainer;
  16056. !this._viewContainer && t && (this._viewContainer = Gs(t, !0)),
  16057. this._viewContainer &&
  16058. this._changeAbleViewClassNames(
  16059. Zr(
  16060. Zr([], Kr(this._getAbleViewClassNames()), !1),
  16061. [this.isDragging() ? sl : ''],
  16062. !1
  16063. )
  16064. );
  16065. }),
  16066. (e.prototype._changeAbleViewClassNames = function (t) {
  16067. var e = this._viewContainer,
  16068. n = Ds(t.filter(Boolean), function (t) {
  16069. return t;
  16070. }).map(function (t) {
  16071. return Kr(t, 1)[0];
  16072. }),
  16073. r = this._viewClassNames,
  16074. a = _e(r, n),
  16075. i = a.removed,
  16076. o = a.added;
  16077. i.forEach(function (t) {
  16078. Ae(e, r[t]);
  16079. }),
  16080. o.forEach(function (t) {
  16081. he(e, n[t]);
  16082. }),
  16083. (this._viewClassNames = n);
  16084. }),
  16085. (e.prototype._getAbleViewClassNames = function () {
  16086. var t = this;
  16087. return (
  16088. this.getEnabledAbles()
  16089. .map(function (e) {
  16090. var n;
  16091. return (
  16092. (null === (n = e.viewClassName) || void 0 === n
  16093. ? void 0
  16094. : n.call(e, t)) || ''
  16095. );
  16096. })
  16097. .join(' ') + ' '.concat(this._getAbleClassName('-view'))
  16098. ).split(/\s+/g);
  16099. }),
  16100. (e.prototype._getAbleClassName = function (t) {
  16101. var e = this;
  16102. void 0 === t && (t = '');
  16103. var n = this.getEnabledAbles(),
  16104. r = this.targetGesto,
  16105. a = this.controlGesto,
  16106. i = (null == r ? void 0 : r.isFlag()) ? r.getEventData() : {},
  16107. o = (null == a ? void 0 : a.isFlag()) ? a.getEventData() : {};
  16108. return n
  16109. .map(function (n) {
  16110. var r,
  16111. a,
  16112. s,
  16113. l = n.name,
  16114. c =
  16115. (null === (r = n.className) || void 0 === r
  16116. ? void 0
  16117. : r.call(n, e)) || '';
  16118. return (
  16119. ((null === (a = i[l]) || void 0 === a
  16120. ? void 0
  16121. : a.isEventStart) ||
  16122. (null === (s = o[l]) || void 0 === s
  16123. ? void 0
  16124. : s.isEventStart)) &&
  16125. (c += ' '.concat(
  16126. Go(''.concat(l).concat(t, '-dragging'))
  16127. )),
  16128. c.trim()
  16129. );
  16130. })
  16131. .filter(Boolean)
  16132. .join(' ');
  16133. }),
  16134. (e.prototype._updateResizeObserver = function (t) {
  16135. var e,
  16136. n = this.props,
  16137. r = n.target,
  16138. a = Ee(this.getControlBoxElement());
  16139. if (a.ResizeObserver && r && n.useResizeObserver) {
  16140. if (t.target !== r || !this._reiszeObserver) {
  16141. var i = new a.ResizeObserver(this.checkUpdateRect);
  16142. i.observe(r, { box: 'border-box' }),
  16143. (this._reiszeObserver = i);
  16144. }
  16145. } else
  16146. null === (e = this._reiszeObserver) ||
  16147. void 0 === e ||
  16148. e.disconnect();
  16149. }),
  16150. (e.prototype._updateMutationObserver = function (t) {
  16151. var e,
  16152. n = this,
  16153. r = this.props,
  16154. a = r.target,
  16155. i = Ee(this.getControlBoxElement());
  16156. if (i.MutationObserver && a && r.useMutationObserver) {
  16157. if (t.target !== a || !this._mutationObserver) {
  16158. var o = new i.MutationObserver(function (t) {
  16159. var e, r;
  16160. try {
  16161. for (
  16162. var a = (function (t) {
  16163. var e =
  16164. 'function' == typeof Symbol &&
  16165. Symbol.iterator,
  16166. n = e && t[e],
  16167. r = 0;
  16168. if (n) return n.call(t);
  16169. if (t && 'number' == typeof t.length)
  16170. return {
  16171. next: function () {
  16172. return (
  16173. t && r >= t.length && (t = void 0),
  16174. { value: t && t[r++], done: !t }
  16175. );
  16176. }
  16177. };
  16178. throw new TypeError(
  16179. e
  16180. ? 'Object is not iterable.'
  16181. : 'Symbol.iterator is not defined.'
  16182. );
  16183. })(t),
  16184. i = a.next();
  16185. !i.done;
  16186. i = a.next()
  16187. ) {
  16188. var o = i.value;
  16189. 'attributes' === o.type &&
  16190. 'style' === o.attributeName &&
  16191. n.checkUpdateRect();
  16192. }
  16193. } catch (s) {
  16194. e = { error: s };
  16195. } finally {
  16196. try {
  16197. i && !i.done && (r = a.return) && r.call(a);
  16198. } finally {
  16199. if (e) throw e.error;
  16200. }
  16201. }
  16202. });
  16203. o.observe(a, { attributes: !0 }),
  16204. (this._mutationObserver = o);
  16205. }
  16206. } else
  16207. null === (e = this._mutationObserver) ||
  16208. void 0 === e ||
  16209. e.disconnect();
  16210. }),
  16211. (e.defaultProps = {
  16212. target: null,
  16213. dragTarget: null,
  16214. container: null,
  16215. rootContainer: null,
  16216. origin: !0,
  16217. parentMoveable: null,
  16218. wrapperMoveable: null,
  16219. isWrapperMounted: !1,
  16220. parentPosition: null,
  16221. warpSelf: !1,
  16222. svgOrigin: '',
  16223. dragContainer: null,
  16224. useResizeObserver: !1,
  16225. useMutationObserver: !1,
  16226. preventDefault: !0,
  16227. linePadding: 0,
  16228. controlPadding: 0,
  16229. ables: [],
  16230. pinchThreshold: 20,
  16231. dragArea: !1,
  16232. passDragArea: !1,
  16233. transformOrigin: '',
  16234. className: '',
  16235. zoom: 1,
  16236. triggerAblesSimultaneously: !1,
  16237. padding: {},
  16238. pinchOutside: !0,
  16239. checkInput: !1,
  16240. dragFocusedInput: !1,
  16241. groupable: !1,
  16242. hideDefaultLines: !1,
  16243. cspNonce: '',
  16244. translateZ: 0,
  16245. cssStyled: null,
  16246. customStyledMap: {},
  16247. props: {},
  16248. stopPropagation: !1,
  16249. preventClickDefault: !1,
  16250. preventClickEventOnDrag: !0,
  16251. flushSync: No,
  16252. firstRenderState: null,
  16253. persistData: null,
  16254. viewContainer: null,
  16255. requestStyles: [],
  16256. useAccuratePosition: !1
  16257. }),
  16258. e
  16259. );
  16260. })(tn),
  16261. Kl = {
  16262. name: 'groupable',
  16263. props: [
  16264. 'defaultGroupRotate',
  16265. 'useDefaultGroupRotate',
  16266. 'defaultGroupOrigin',
  16267. 'groupable',
  16268. 'groupableProps',
  16269. 'targetGroups',
  16270. 'hideChildMoveableDefaultLines'
  16271. ],
  16272. events: [],
  16273. render: function (t, e) {
  16274. var n,
  16275. r = t.props,
  16276. a = r.targets || [],
  16277. i = t.getState(),
  16278. o = i.left,
  16279. s = i.top,
  16280. l = i.isPersisted,
  16281. c = r.zoom || 1,
  16282. u = t.renderGroupRects,
  16283. f =
  16284. (null === (n = r.persistData) || void 0 === n
  16285. ? void 0
  16286. : n.children) || [];
  16287. l
  16288. ? (a = f.map(function () {
  16289. return null;
  16290. }))
  16291. : (f = []);
  16292. var d = t._store,
  16293. p = Hs(d, 'parentPosition', [o, s], function (t) {
  16294. return t.join(',');
  16295. }),
  16296. g = Hs(
  16297. d,
  16298. 'requestStyles',
  16299. t.getRequestChildStyles(),
  16300. function (t) {
  16301. return t.join(',');
  16302. }
  16303. );
  16304. return (
  16305. (t.moveables = t.moveables.slice(0, a.length)),
  16306. Zr(
  16307. Zr(
  16308. [],
  16309. Kr(
  16310. a.map(function (n, a) {
  16311. return e.createElement(ql, {
  16312. key: 'moveable' + a,
  16313. ref: Bt(t, 'moveables', a),
  16314. target: n,
  16315. origin: !1,
  16316. requestStyles: g,
  16317. cssStyled: r.cssStyled,
  16318. customStyledMap: r.customStyledMap,
  16319. useResizeObserver: r.useResizeObserver,
  16320. useMutationObserver: r.useMutationObserver,
  16321. hideChildMoveableDefaultLines:
  16322. r.hideChildMoveableDefaultLines,
  16323. parentMoveable: t,
  16324. parentPosition: [o, s],
  16325. persistData: f[a],
  16326. zoom: c
  16327. });
  16328. })
  16329. ),
  16330. !1
  16331. ),
  16332. Kr(
  16333. Rs(
  16334. u.map(function (t, n) {
  16335. var r = [t.pos1, t.pos2, t.pos3, t.pos4];
  16336. return [
  16337. [0, 1],
  16338. [1, 3],
  16339. [3, 2],
  16340. [2, 0]
  16341. ].map(function (t, a) {
  16342. var i = Kr(t, 2),
  16343. o = i[0],
  16344. s = i[1];
  16345. return pi(
  16346. e,
  16347. '',
  16348. Fn(r[o], p),
  16349. Fn(r[s], p),
  16350. c,
  16351. 'group-rect-'.concat(n, '-').concat(a)
  16352. );
  16353. });
  16354. })
  16355. )
  16356. ),
  16357. !1
  16358. )
  16359. );
  16360. }
  16361. },
  16362. Zl = Jr('clickable', {
  16363. props: ['clickable'],
  16364. events: ['click', 'clickGroup'],
  16365. always: !0,
  16366. dragRelation: 'weak',
  16367. dragStart: function () {},
  16368. dragControlStart: function () {},
  16369. dragGroupStart: function (t, e) {
  16370. e.datas.inputTarget = e.inputEvent && e.inputEvent.target;
  16371. },
  16372. dragEnd: function (t, e) {
  16373. var n = t.props.target,
  16374. r = e.inputEvent,
  16375. a = e.inputTarget,
  16376. i = !t.isMoveableElement(a) && t.controlBox.contains(a);
  16377. if (r && a && !e.isDrag && !t.isMoveableElement(a) && !i) {
  16378. var o = n.contains(a);
  16379. Cs(
  16380. t,
  16381. 'onClick',
  16382. ys(t, e, {
  16383. isDouble: e.isDouble,
  16384. inputTarget: a,
  16385. isTarget: n === a,
  16386. moveableTarget: t.props.target,
  16387. containsTarget: o
  16388. })
  16389. );
  16390. }
  16391. },
  16392. dragGroupEnd: function (t, e) {
  16393. var n = e.inputEvent,
  16394. r = e.inputTarget;
  16395. if (
  16396. n &&
  16397. r &&
  16398. !e.isDrag &&
  16399. !t.isMoveableElement(r) &&
  16400. e.datas.inputTarget !== r
  16401. ) {
  16402. var a = t.props.targets,
  16403. i = a.indexOf(r),
  16404. o = i > -1,
  16405. s = !1;
  16406. -1 === i &&
  16407. (s =
  16408. (i = te(a, function (t) {
  16409. return t.contains(r);
  16410. })) > -1),
  16411. Cs(
  16412. t,
  16413. 'onClickGroup',
  16414. ys(t, e, {
  16415. isDouble: e.isDouble,
  16416. targets: a,
  16417. inputTarget: r,
  16418. targetIndex: i,
  16419. isTarget: o,
  16420. containsTarget: s,
  16421. moveableTarget: a[i]
  16422. })
  16423. );
  16424. }
  16425. },
  16426. dragControlEnd: function (t, e) {
  16427. this.dragEnd(t, e);
  16428. },
  16429. dragGroupControlEnd: function (t, e) {
  16430. this.dragEnd(t, e);
  16431. }
  16432. });
  16433. function Jl(t) {
  16434. var e = t.originalDatas.draggable;
  16435. return (
  16436. e ||
  16437. ((t.originalDatas.draggable = {}),
  16438. (e = t.originalDatas.draggable)),
  16439. qr(qr({}, t), { datas: e })
  16440. );
  16441. }
  16442. var $l = Jr('edgeDraggable', {
  16443. css: ['.edge.edgeDraggable.line {\ncursor: move;\n}'],
  16444. render: function (t, e) {
  16445. var n = t.props,
  16446. r = n.edgeDraggable;
  16447. return r
  16448. ? gi(e, 'edgeDraggable', r, t.getState().renderPoses, n.zoom)
  16449. : [];
  16450. },
  16451. dragCondition: function (t, e) {
  16452. var n,
  16453. r = t.props,
  16454. a =
  16455. null === (n = e.inputEvent) || void 0 === n
  16456. ? void 0
  16457. : n.target;
  16458. return (
  16459. !(!r.edgeDraggable || !a) &&
  16460. !r.draggable &&
  16461. ve(a, Go('direction')) &&
  16462. ve(a, Go('edge')) &&
  16463. ve(a, Go('edgeDraggable'))
  16464. );
  16465. },
  16466. dragStart: function (t, e) {
  16467. return no.dragStart(t, Jl(e));
  16468. },
  16469. drag: function (t, e) {
  16470. return no.drag(t, Jl(e));
  16471. },
  16472. dragEnd: function (t, e) {
  16473. return no.dragEnd(t, Jl(e));
  16474. },
  16475. dragGroupCondition: function (t, e) {
  16476. var n,
  16477. r = t.props,
  16478. a =
  16479. null === (n = e.inputEvent) || void 0 === n
  16480. ? void 0
  16481. : n.target;
  16482. return (
  16483. !(!r.edgeDraggable || !a) &&
  16484. !r.draggable &&
  16485. ve(a, Go('direction')) &&
  16486. ve(a, Go('line'))
  16487. );
  16488. },
  16489. dragGroupStart: function (t, e) {
  16490. return no.dragGroupStart(t, Jl(e));
  16491. },
  16492. dragGroup: function (t, e) {
  16493. return no.dragGroup(t, Jl(e));
  16494. },
  16495. dragGroupEnd: function (t, e) {
  16496. return no.dragGroupEnd(t, Jl(e));
  16497. },
  16498. unset: function (t) {
  16499. return no.unset(t);
  16500. }
  16501. }),
  16502. tc = {
  16503. name: 'individualGroupable',
  16504. props: ['individualGroupable', 'individualGroupableProps'],
  16505. events: []
  16506. },
  16507. ec = [
  16508. Gl,
  16509. gl,
  16510. Yo,
  16511. Js,
  16512. no,
  16513. $l,
  16514. oo,
  16515. tl,
  16516. rl,
  16517. go,
  16518. pl,
  16519. ml,
  16520. fl,
  16521. Ml,
  16522. Ol,
  16523. Yl,
  16524. Kl,
  16525. tc,
  16526. Zl,
  16527. ul,
  16528. Nl
  16529. ],
  16530. nc = ec.reduce(function (t, e) {
  16531. return (
  16532. (e.events || []).forEach(function (e) {
  16533. me(t, e);
  16534. }),
  16535. t
  16536. );
  16537. }, []),
  16538. rc = ec.reduce(function (t, e) {
  16539. return (
  16540. (e.props || []).forEach(function (e) {
  16541. me(t, e);
  16542. }),
  16543. t
  16544. );
  16545. }, []);
  16546. function ac(t, e) {
  16547. var n = Kr(t, 3),
  16548. r = n[0],
  16549. a = n[1],
  16550. i = n[2];
  16551. return (r * e[0] + a * e[1] + i) / Math.sqrt(r * r + a * a);
  16552. }
  16553. function ic(t, e) {
  16554. var n = Kr(t, 2),
  16555. r = n[0],
  16556. a = n[1];
  16557. return -r * e[0] - a * e[1];
  16558. }
  16559. function oc(t, e) {
  16560. return Math.max.apply(
  16561. Math,
  16562. Zr(
  16563. [],
  16564. Kr(
  16565. t.map(function (t) {
  16566. var n = Kr(t, 4),
  16567. r = n[0],
  16568. a = n[1],
  16569. i = n[2],
  16570. o = n[3];
  16571. return Math.max(r[e], a[e], i[e], o[e]);
  16572. })
  16573. ),
  16574. !1
  16575. )
  16576. );
  16577. }
  16578. function sc(t, e) {
  16579. return Math.min.apply(
  16580. Math,
  16581. Zr(
  16582. [],
  16583. Kr(
  16584. t.map(function (t) {
  16585. var n = Kr(t, 4),
  16586. r = n[0],
  16587. a = n[1],
  16588. i = n[2],
  16589. o = n[3];
  16590. return Math.min(r[e], a[e], i[e], o[e]);
  16591. })
  16592. ),
  16593. !1
  16594. )
  16595. );
  16596. }
  16597. function lc(t, e) {
  16598. var n = e
  16599. .map(function (e) {
  16600. if (Ut(e)) {
  16601. var n = lc(t, e),
  16602. r = n.length;
  16603. return r > 1 ? n : 1 === r ? n[0] : null;
  16604. }
  16605. var a = ee(t, function (t) {
  16606. return t.manager.props.target === e;
  16607. });
  16608. return a ? ((a.finded = !0), a.manager) : null;
  16609. })
  16610. .filter(Boolean);
  16611. return 1 === n.length && Ut(n[0]) ? n[0] : n;
  16612. }
  16613. var cc = (function (t) {
  16614. function e() {
  16615. var e = (null !== t && t.apply(this, arguments)) || this;
  16616. return (
  16617. (e.differ = new ur()),
  16618. (e.moveables = []),
  16619. (e.transformOrigin = '50% 50%'),
  16620. (e.renderGroupRects = []),
  16621. (e._targetGroups = []),
  16622. (e._hasFirstTargets = !1),
  16623. e
  16624. );
  16625. }
  16626. return (
  16627. Vr(e, t),
  16628. (e.prototype.componentDidMount = function () {
  16629. t.prototype.componentDidMount.call(this);
  16630. }),
  16631. (e.prototype.checkUpdate = function () {
  16632. (this._isPropTargetChanged = !1), this.updateAbles();
  16633. }),
  16634. (e.prototype.getTargets = function () {
  16635. return this.props.targets;
  16636. }),
  16637. (e.prototype.updateRect = function (t, e, n) {
  16638. var r;
  16639. void 0 === n && (n = !0);
  16640. var a = this.state;
  16641. if (this.controlBox && !a.isPersisted) {
  16642. ii(!0),
  16643. this.moveables.forEach(function (e) {
  16644. e.updateRect(t, !1, !1);
  16645. });
  16646. var i = this.props,
  16647. o = this.moveables,
  16648. s = a.target || i.target,
  16649. l = o.map(function (t) {
  16650. return { finded: !1, manager: t };
  16651. }),
  16652. c = this.props.targetGroups || [],
  16653. u = lc(l, c),
  16654. f = i.useDefaultGroupRotate;
  16655. u.push.apply(
  16656. u,
  16657. Zr(
  16658. [],
  16659. Kr(
  16660. l
  16661. .filter(function (t) {
  16662. return !t.finded;
  16663. })
  16664. .map(function (t) {
  16665. return t.manager;
  16666. })
  16667. ),
  16668. !1
  16669. )
  16670. );
  16671. var d = [],
  16672. p = !e || ('' !== t && i.updateGroup),
  16673. g = i.defaultGroupRotate || 0;
  16674. if (!this._hasFirstTargets) {
  16675. var m =
  16676. null === (r = i.persistData) || void 0 === r
  16677. ? void 0
  16678. : r.rotation;
  16679. null != m && (g = m);
  16680. }
  16681. var v = (function t(e, n, r) {
  16682. var a = e.map(function (e) {
  16683. if (Ut(e)) {
  16684. var r = t(e, n),
  16685. a = [r.pos1, r.pos2, r.pos3, r.pos4];
  16686. return d.push(r), { poses: a, rotation: r.rotation };
  16687. }
  16688. return {
  16689. poses: hs(e.state),
  16690. rotation: e.getRotation()
  16691. };
  16692. }),
  16693. i = a.map(function (t) {
  16694. return t.rotation;
  16695. }),
  16696. o = 0,
  16697. s = i[0],
  16698. l = i.every(function (t) {
  16699. return Math.abs(s - t) < 0.1;
  16700. });
  16701. o = p ? (!f && l ? s : g) : f || r || !l ? n : s;
  16702. var c = a.map(function (t) {
  16703. return t.poses;
  16704. }),
  16705. u = (function (t, e) {
  16706. var n,
  16707. r,
  16708. a,
  16709. i = [0, 0],
  16710. o = [0, 0],
  16711. s = [0, 0],
  16712. l = [0, 0],
  16713. c = 0,
  16714. u = 0;
  16715. if (!t.length)
  16716. return {
  16717. pos1: i,
  16718. pos2: o,
  16719. pos3: s,
  16720. pos4: l,
  16721. minX: 0,
  16722. minY: 0,
  16723. maxX: 0,
  16724. maxY: 0,
  16725. width: c,
  16726. height: u,
  16727. rotation: e
  16728. };
  16729. var f = pe(e, wa);
  16730. if (f % 90) {
  16731. var d = (f / 180) * Math.PI,
  16732. p = Math.tan(d),
  16733. g = -1 / p,
  16734. m = [ya, Ia],
  16735. v = [
  16736. [0, 0],
  16737. [0, 0]
  16738. ],
  16739. h = [ya, Ia],
  16740. A = [
  16741. [0, 0],
  16742. [0, 0]
  16743. ];
  16744. t.forEach(function (t) {
  16745. t.forEach(function (t) {
  16746. var e = ac([-p, 1, 0], t),
  16747. n = ac([-g, 1, 0], t);
  16748. m[0] > e && ((v[0] = t), (m[0] = e)),
  16749. m[1] < e && ((v[1] = t), (m[1] = e)),
  16750. h[0] > n && ((A[0] = t), (h[0] = n)),
  16751. h[1] < n && ((A[1] = t), (h[1] = n));
  16752. });
  16753. });
  16754. var b = Kr(v, 2),
  16755. w = b[0],
  16756. k = b[1],
  16757. y = Kr(A, 2),
  16758. I = y[0],
  16759. E = y[1],
  16760. C = [-p, 1, ic([-p, 1], w)],
  16761. B = [-p, 1, ic([-p, 1], k)],
  16762. x = [-g, 1, ic([-g, 1], I)],
  16763. S = [-g, 1, ic([-g, 1], E)];
  16764. (n = Kr(
  16765. [
  16766. [C, x],
  16767. [C, S],
  16768. [B, x],
  16769. [B, S]
  16770. ].map(function (t) {
  16771. var e = Kr(t, 2);
  16772. return xr(e[0], e[1])[0];
  16773. }),
  16774. 4
  16775. )),
  16776. (i = n[0]),
  16777. (o = n[1]),
  16778. (s = n[2]),
  16779. (l = n[3]),
  16780. (c = h[1] - h[0]),
  16781. (u = m[1] - m[0]);
  16782. } else {
  16783. var D = sc(t, 0),
  16784. R = sc(t, 1),
  16785. Q = oc(t, 0),
  16786. _ = oc(t, 1);
  16787. (i = [D, R]),
  16788. (o = [Q, R]),
  16789. (s = [D, _]),
  16790. (l = [Q, _]),
  16791. (c = Q - D),
  16792. (u = _ - R),
  16793. f % 180 &&
  16794. ((i = (r = Kr([s, i, l, o], 4))[0]),
  16795. (o = r[1]),
  16796. (s = r[2]),
  16797. (l = r[3]),
  16798. (c = _ - R),
  16799. (u = Q - D));
  16800. }
  16801. f % 360 > 180 &&
  16802. ((i = (a = Kr([l, s, o, i], 4))[0]),
  16803. (o = a[1]),
  16804. (s = a[2]),
  16805. (l = a[3]));
  16806. var O = Er([i, o, s, l]);
  16807. return {
  16808. pos1: i,
  16809. pos2: o,
  16810. pos3: s,
  16811. pos4: l,
  16812. width: c,
  16813. height: u,
  16814. minX: O.minX,
  16815. minY: O.minY,
  16816. maxX: O.maxX,
  16817. maxY: O.maxY,
  16818. rotation: e
  16819. };
  16820. })(c, o);
  16821. return u;
  16822. })(u, this.rotation, !0);
  16823. p &&
  16824. ((this.rotation = v.rotation),
  16825. (this.transformOrigin = i.defaultGroupOrigin || '50% 50%'),
  16826. (this.scale = [1, 1])),
  16827. (this._targetGroups = c),
  16828. (this.renderGroupRects = d);
  16829. var h,
  16830. A,
  16831. b,
  16832. w,
  16833. k,
  16834. y = this.transformOrigin,
  16835. I = this.rotation,
  16836. E = this.scale,
  16837. C = v.width,
  16838. B = v.height,
  16839. x = v.minX,
  16840. S = v.minY,
  16841. D =
  16842. ((h = [
  16843. [0, 0],
  16844. [C, 0],
  16845. [0, B],
  16846. [C, B]
  16847. ]),
  16848. (A = js(y, C, B)),
  16849. (b = (this.rotation / 180) * Math.PI),
  16850. (w = h.map(function (t) {
  16851. return Fn(t, A);
  16852. })),
  16853. (k = w.map(function (t) {
  16854. return qn(t, b);
  16855. })),
  16856. {
  16857. prev: w,
  16858. next: k,
  16859. result: k.map(function (t) {
  16860. return Un(t, A);
  16861. })
  16862. }),
  16863. R = Er(D.result),
  16864. Q = R.minX,
  16865. _ = R.minY,
  16866. O =
  16867. ' rotate('.concat(I, 'deg)') +
  16868. ' scale('.concat(Vs(E[0]), ', ').concat(Vs(E[1]), ')'),
  16869. M = 'translate('
  16870. .concat(-Q, 'px, ')
  16871. .concat(-_, 'px)')
  16872. .concat(O);
  16873. (this.controlBox.style.transform = 'translate3d('
  16874. .concat(x, 'px, ')
  16875. .concat(S, 'px, ')
  16876. .concat(this.props.translateZ || 0, ')')),
  16877. (s.style.cssText +=
  16878. 'left:0px;top:0px;' +
  16879. 'transform-origin:'.concat(y, ';') +
  16880. 'width:'.concat(C, 'px;height:').concat(B, 'px;') +
  16881. 'transform: '.concat(M)),
  16882. (a.width = C),
  16883. (a.height = B);
  16884. var T = this.getContainer(),
  16885. z = Hl(
  16886. this.controlBox,
  16887. s,
  16888. this.controlBox,
  16889. this.getContainer(),
  16890. this._rootContainer || T,
  16891. []
  16892. ),
  16893. P = [z.left, z.top],
  16894. Y = Kr(hs(z), 4),
  16895. G = Y[0],
  16896. N = Y[1],
  16897. U = Y[2],
  16898. F = Y[3],
  16899. L = Er([G, N, U, F]),
  16900. X = [L.minX, L.minY],
  16901. j = Vs(E[0] * E[1]);
  16902. (z.pos1 = Fn(G, X)),
  16903. (z.pos2 = Fn(N, X)),
  16904. (z.pos3 = Fn(U, X)),
  16905. (z.pos4 = Fn(F, X)),
  16906. (z.left = x - z.left + X[0]),
  16907. (z.top = S - z.top + X[1]),
  16908. (z.origin = Fn(Un(P, z.origin), X)),
  16909. (z.beforeOrigin = Fn(Un(P, z.beforeOrigin), X)),
  16910. (z.originalBeforeOrigin = Un(P, z.originalBeforeOrigin)),
  16911. (z.transformOrigin = Fn(Un(P, z.transformOrigin), X)),
  16912. (s.style.transform =
  16913. 'translate('
  16914. .concat(-Q - X[0], 'px, ')
  16915. .concat(-_ - X[1], 'px)') + O),
  16916. ii(),
  16917. this.updateState(
  16918. qr(qr({}, z), {
  16919. posDelta: X,
  16920. direction: j,
  16921. beforeDirection: j
  16922. }),
  16923. n
  16924. );
  16925. }
  16926. }),
  16927. (e.prototype.getRect = function () {
  16928. return qr(qr({}, t.prototype.getRect.call(this)), {
  16929. children: this.moveables.map(function (t) {
  16930. return t.getRect();
  16931. })
  16932. });
  16933. }),
  16934. (e.prototype.triggerEvent = function (e, n, r) {
  16935. if (r || e.indexOf('Group') > -1)
  16936. return t.prototype.triggerEvent.call(this, e, n);
  16937. this._emitter.trigger(e, n);
  16938. }),
  16939. (e.prototype.getRequestChildStyles = function () {
  16940. return this.getEnabledAbles().reduce(function (t, e) {
  16941. var n,
  16942. r,
  16943. a =
  16944. null !==
  16945. (r =
  16946. null === (n = e.requestChildStyle) || void 0 === n
  16947. ? void 0
  16948. : n.call(e)) && void 0 !== r
  16949. ? r
  16950. : [];
  16951. return Zr(Zr([], Kr(t), !1), Kr(a), !1);
  16952. }, []);
  16953. }),
  16954. (e.prototype.updateAbles = function () {
  16955. t.prototype.updateAbles.call(
  16956. this,
  16957. Zr(Zr([], Kr(this.props.ables), !1), [Kl], !1),
  16958. 'Group'
  16959. );
  16960. }),
  16961. (e.prototype._updateTargets = function () {
  16962. t.prototype._updateTargets.call(this),
  16963. (this._originalDragTarget =
  16964. this.props.dragTarget || this.areaElement),
  16965. (this._dragTarget = Gs(this._originalDragTarget, !0));
  16966. }),
  16967. (e.prototype._updateEvents = function () {
  16968. var t = this.state,
  16969. e = this.props,
  16970. n = this._prevDragTarget,
  16971. r = e.dragTarget || this.areaElement,
  16972. a = e.targets,
  16973. i = this.differ.update(a),
  16974. o = i.added,
  16975. s = i.changed,
  16976. l = i.removed,
  16977. c = o.length || l.length;
  16978. (c || n !== r) &&
  16979. (bs(this, !1),
  16980. bs(this, !0),
  16981. this.updateState({ gestos: {} })),
  16982. n !== r && (t.target = null),
  16983. t.target ||
  16984. ((t.target = this.areaElement),
  16985. (this.controlBox.style.display = 'block')),
  16986. t.target &&
  16987. (this.targetGesto ||
  16988. (this.targetGesto = Ll(this, this._dragTarget, 'Group')),
  16989. this.controlGesto ||
  16990. (this.controlGesto = Xl(
  16991. this,
  16992. this.controlBox,
  16993. 'controlAbles',
  16994. 'GroupControl'
  16995. )));
  16996. var u = !Ss(t.container, e.container);
  16997. u && (t.container = e.container),
  16998. (u ||
  16999. c ||
  17000. this.transformOrigin !==
  17001. (e.defaultGroupOrigin || '50% 50%') ||
  17002. s.length ||
  17003. (a.length &&
  17004. !Ws(this._targetGroups, e.targetGroups || []))) &&
  17005. (this.updateRect(), (this._hasFirstTargets = !0)),
  17006. (this._isPropTargetChanged = !!c);
  17007. }),
  17008. (e.prototype._updateObserver = function () {}),
  17009. (e.defaultProps = qr(qr({}, ql.defaultProps), {
  17010. transformOrigin: ['50%', '50%'],
  17011. groupable: !0,
  17012. dragArea: !0,
  17013. keepRatio: !0,
  17014. targets: [],
  17015. defaultGroupRotate: 0,
  17016. defaultGroupOrigin: '50% 50%'
  17017. })),
  17018. e
  17019. );
  17020. })(ql),
  17021. uc = (function (t) {
  17022. function e() {
  17023. var e = (null !== t && t.apply(this, arguments)) || this;
  17024. return (e.moveables = []), e;
  17025. }
  17026. return (
  17027. Vr(e, t),
  17028. (e.prototype.render = function () {
  17029. var t,
  17030. e = this,
  17031. n = this.props,
  17032. r = n.cspNonce,
  17033. a = n.cssStyled,
  17034. i = n.persistData,
  17035. o = n.targets || [],
  17036. s = o.length,
  17037. l = this.isUnmounted || !s,
  17038. c =
  17039. null !== (t = null == i ? void 0 : i.children) &&
  17040. void 0 !== t
  17041. ? t
  17042. : [];
  17043. return (
  17044. l && !s && c.length
  17045. ? (o = c.map(function () {
  17046. return null;
  17047. }))
  17048. : l || (c = []),
  17049. ln(
  17050. a,
  17051. {
  17052. cspNonce: r,
  17053. ref: Ct(this, 'controlBox'),
  17054. className: Go('control-box')
  17055. },
  17056. o.map(function (t, r) {
  17057. var a,
  17058. i,
  17059. o =
  17060. null !==
  17061. (i =
  17062. null === (a = n.individualGroupableProps) ||
  17063. void 0 === a
  17064. ? void 0
  17065. : a.call(n, t, r)) && void 0 !== i
  17066. ? i
  17067. : {};
  17068. return ln(
  17069. ql,
  17070. qr(
  17071. { key: 'moveable' + r, ref: Bt(e, 'moveables', r) },
  17072. n,
  17073. o,
  17074. {
  17075. target: t,
  17076. wrapperMoveable: e,
  17077. isWrapperMounted: e.isMoveableMounted,
  17078. persistData: c[r]
  17079. }
  17080. )
  17081. );
  17082. })
  17083. )
  17084. );
  17085. }),
  17086. (e.prototype.componentDidMount = function () {}),
  17087. (e.prototype.componentDidUpdate = function () {}),
  17088. (e.prototype.getTargets = function () {
  17089. return this.props.targets;
  17090. }),
  17091. (e.prototype.updateRect = function (t, e, n) {
  17092. void 0 === n && (n = !0),
  17093. ii(!0),
  17094. this.moveables.forEach(function (r) {
  17095. r.updateRect(t, e, n);
  17096. }),
  17097. ii();
  17098. }),
  17099. (e.prototype.getRect = function () {
  17100. return qr(qr({}, t.prototype.getRect.call(this)), {
  17101. children: this.moveables.map(function (t) {
  17102. return t.getRect();
  17103. })
  17104. });
  17105. }),
  17106. (e.prototype.request = function () {
  17107. return {
  17108. request: function () {
  17109. return this;
  17110. },
  17111. requestEnd: function () {
  17112. return this;
  17113. }
  17114. };
  17115. }),
  17116. (e.prototype.dragStart = function () {
  17117. return this;
  17118. }),
  17119. (e.prototype.hitTest = function () {
  17120. return 0;
  17121. }),
  17122. (e.prototype.isInside = function () {
  17123. return !1;
  17124. }),
  17125. (e.prototype.isDragging = function () {
  17126. return !1;
  17127. }),
  17128. (e.prototype.updateRenderPoses = function () {}),
  17129. (e.prototype.checkUpdate = function () {}),
  17130. (e.prototype.triggerEvent = function () {}),
  17131. (e.prototype.updateAbles = function () {}),
  17132. (e.prototype._updateEvents = function () {}),
  17133. (e.prototype._updateObserver = function () {}),
  17134. e
  17135. );
  17136. })(ql);
  17137. function fc(t, e) {
  17138. var n = [];
  17139. return (
  17140. t.forEach(function (t) {
  17141. t &&
  17142. (Ft(t)
  17143. ? e[t] && n.push.apply(n, Zr([], Kr(e[t]), !1))
  17144. : Ut(t)
  17145. ? n.push.apply(n, Zr([], Kr(fc(t, e)), !1))
  17146. : n.push(t));
  17147. }),
  17148. n
  17149. );
  17150. }
  17151. function dc(t, e) {
  17152. var n = [];
  17153. return (
  17154. t.forEach(function (t) {
  17155. t &&
  17156. (Ft(t)
  17157. ? e[t] && n.push.apply(n, Zr([], Kr(e[t]), !1))
  17158. : Ut(t)
  17159. ? n.push(dc(t, e))
  17160. : n.push(t));
  17161. }),
  17162. n
  17163. );
  17164. }
  17165. function pc(t, e) {
  17166. return (
  17167. t.length !== e.length ||
  17168. t.some(function (t, n) {
  17169. var r = e[n];
  17170. return !(!t && !r) && t != r && (!Ut(t) || !Ut(r) || pc(t, r));
  17171. })
  17172. );
  17173. }
  17174. var gc = (function (t) {
  17175. function e() {
  17176. var e = (null !== t && t.apply(this, arguments)) || this;
  17177. return (
  17178. (e.refTargets = []),
  17179. (e.selectorMap = {}),
  17180. (e._differ = new ur()),
  17181. (e._elementTargets = []),
  17182. (e._onChangeTargets = null),
  17183. e
  17184. );
  17185. }
  17186. var n, r;
  17187. return (
  17188. Vr(e, t),
  17189. (e.makeStyled = function () {
  17190. var t = {};
  17191. this.getTotalAbles().forEach(function (e) {
  17192. var n = e.css;
  17193. n &&
  17194. n.forEach(function (e) {
  17195. t[e] = !0;
  17196. });
  17197. });
  17198. var e = ae(t).join('\n');
  17199. this.defaultStyled = Wr(
  17200. 'div',
  17201. (function (t, e) {
  17202. return e.replace(/([^}{]*){/gm, function (e, n) {
  17203. return (
  17204. n.replace(/\.([^{,\s\d.]+)/g, '.' + t + '$1') + '{'
  17205. );
  17206. });
  17207. })(ma, ha + e)
  17208. );
  17209. }),
  17210. (e.getTotalAbles = function () {
  17211. return Zr([gl, Kl, tc, ul], Kr(this.defaultAbles), !1);
  17212. }),
  17213. (e.prototype.render = function () {
  17214. var t,
  17215. e = this.constructor;
  17216. e.defaultStyled || e.makeStyled();
  17217. var n = this.props,
  17218. r = n.ables,
  17219. a = n.props,
  17220. i = (function (t, e) {
  17221. var n = {};
  17222. for (var r in t)
  17223. Object.prototype.hasOwnProperty.call(t, r) &&
  17224. e.indexOf(r) < 0 &&
  17225. (n[r] = t[r]);
  17226. if (
  17227. null != t &&
  17228. 'function' == typeof Object.getOwnPropertySymbols
  17229. ) {
  17230. var a = 0;
  17231. for (
  17232. r = Object.getOwnPropertySymbols(t);
  17233. a < r.length;
  17234. a++
  17235. )
  17236. e.indexOf(r[a]) < 0 &&
  17237. Object.prototype.propertyIsEnumerable.call(t, r[a]) &&
  17238. (n[r[a]] = t[r[a]]);
  17239. }
  17240. return n;
  17241. })(n, ['ables', 'props']),
  17242. o = this._updateRefs(!0),
  17243. s = fc(o, this.selectorMap),
  17244. l = s.length > 1,
  17245. c = Zr(Zr([], Kr(e.getTotalAbles()), !1), Kr(r || []), !1),
  17246. u = qr(qr(qr({}, i), a || {}), {
  17247. ables: c,
  17248. cssStyled: e.defaultStyled,
  17249. customStyledMap: e.customStyledMap
  17250. });
  17251. this._elementTargets = s;
  17252. var f = null,
  17253. d = this.moveable,
  17254. p = i.persistData;
  17255. if (
  17256. ((null == p ? void 0 : p.children) && (l = !0),
  17257. i.individualGroupable)
  17258. )
  17259. return ln(
  17260. uc,
  17261. qr(
  17262. { key: 'individual-group', ref: Ct(this, 'moveable') },
  17263. u,
  17264. { target: null, targets: s }
  17265. )
  17266. );
  17267. if (l) {
  17268. var g = dc(o, this.selectorMap);
  17269. if (d && !d.props.groupable && !d.props.individualGroupable) {
  17270. var m = d.props.target;
  17271. m && s.indexOf(m) > -1 && (f = qr({}, d.state));
  17272. }
  17273. return ln(
  17274. cc,
  17275. qr(
  17276. { key: 'group', ref: Ct(this, 'moveable') },
  17277. u,
  17278. null !== (t = i.groupableProps) && void 0 !== t ? t : {},
  17279. {
  17280. target: null,
  17281. targets: s,
  17282. targetGroups: g,
  17283. firstRenderState: f
  17284. }
  17285. )
  17286. );
  17287. }
  17288. var v = s[0];
  17289. if (d && (d.props.groupable || d.props.individualGroupable)) {
  17290. var h = ee(d.moveables || [], function (t) {
  17291. return t.props.target === v;
  17292. });
  17293. h && (f = qr({}, h.state));
  17294. }
  17295. return ln(
  17296. ql,
  17297. qr({ key: 'single', ref: Ct(this, 'moveable') }, u, {
  17298. target: v,
  17299. firstRenderState: f
  17300. })
  17301. );
  17302. }),
  17303. (e.prototype.componentDidMount = function () {
  17304. this._checkChangeTargets(), this._updateRefs();
  17305. }),
  17306. (e.prototype.componentDidUpdate = function () {
  17307. this._checkChangeTargets();
  17308. }),
  17309. (e.prototype.componentWillUnmount = function () {
  17310. (this.selectorMap = {}), (this.refTargets = []);
  17311. }),
  17312. (e.prototype.getTargets = function () {
  17313. var t, e;
  17314. return null !==
  17315. (e =
  17316. null === (t = this.moveable) || void 0 === t
  17317. ? void 0
  17318. : t.getTargets()) && void 0 !== e
  17319. ? e
  17320. : [];
  17321. }),
  17322. (e.prototype.updateSelectors = function () {
  17323. (this.selectorMap = {}), this._updateRefs();
  17324. }),
  17325. (e.prototype.waitToChangeTarget = function () {
  17326. var t,
  17327. e = this;
  17328. return (
  17329. (this._onChangeTargets = function () {
  17330. (e._onChangeTargets = null), t();
  17331. }),
  17332. new Promise(function (e) {
  17333. t = e;
  17334. })
  17335. );
  17336. }),
  17337. (e.prototype.waitToChangeTargets = function () {
  17338. return this.waitToChangeTarget();
  17339. }),
  17340. (e.prototype.getManager = function () {
  17341. return this.moveable;
  17342. }),
  17343. (e.prototype._updateRefs = function (t) {
  17344. var e = this.refTargets,
  17345. n = Ns(this.props.target || this.props.targets),
  17346. r = 'undefined' != typeof document,
  17347. a = pc(e, n),
  17348. i = this.selectorMap,
  17349. o = {};
  17350. return (
  17351. this.refTargets.forEach(function t(e) {
  17352. Ft(e)
  17353. ? i[e]
  17354. ? (o[e] = i[e])
  17355. : r &&
  17356. ((a = !0),
  17357. (o[e] = [].slice.call(document.querySelectorAll(e))))
  17358. : Ut(e) && e.forEach(t);
  17359. }),
  17360. (this.refTargets = n),
  17361. (this.selectorMap = o),
  17362. !t && a && this.forceUpdate(),
  17363. n
  17364. );
  17365. }),
  17366. (e.prototype._checkChangeTargets = function () {
  17367. var t,
  17368. e,
  17369. n,
  17370. r = this._differ.update(this._elementTargets),
  17371. a = r.added,
  17372. i = r.removed;
  17373. (a.length || i.length) &&
  17374. (null === (e = (t = this.props).onChangeTargets) ||
  17375. void 0 === e ||
  17376. e.call(t, {
  17377. moveable: this.moveable,
  17378. targets: this._elementTargets
  17379. }),
  17380. null === (n = this._onChangeTargets) ||
  17381. void 0 === n ||
  17382. n.call(this)),
  17383. this._updateRefs();
  17384. }),
  17385. (e.defaultAbles = []),
  17386. (e.customStyledMap = {}),
  17387. (e.defaultStyled = null),
  17388. (function (t, e, n, r) {
  17389. var a,
  17390. i = arguments.length,
  17391. o =
  17392. i < 3
  17393. ? e
  17394. : null === r
  17395. ? (r = Object.getOwnPropertyDescriptor(e, n))
  17396. : r;
  17397. if (
  17398. 'object' == typeof Reflect &&
  17399. 'function' == typeof Reflect.decorate
  17400. )
  17401. o = Reflect.decorate(t, e, n, r);
  17402. else
  17403. for (var s = t.length - 1; s >= 0; s--)
  17404. (a = t[s]) &&
  17405. (o = (i < 3 ? a(o) : i > 3 ? a(e, n, o) : a(e, n)) || o);
  17406. i > 3 && o && Object.defineProperty(e, n, o);
  17407. })(
  17408. [
  17409. ((n = xa),
  17410. void 0 === r && (r = {}),
  17411. function (t, e) {
  17412. n.forEach(function (n) {
  17413. var a = r[n] || n;
  17414. a in t ||
  17415. (t[a] = function () {
  17416. for (var t, r = [], a = 0; a < arguments.length; a++)
  17417. r[a] = arguments[a];
  17418. var i = (t = this[e])[n].apply(t, r);
  17419. return i === this[e] ? this : i;
  17420. });
  17421. });
  17422. })
  17423. ],
  17424. e.prototype,
  17425. 'moveable',
  17426. void 0
  17427. ),
  17428. e
  17429. );
  17430. })(tn),
  17431. mc = (function (t) {
  17432. function e() {
  17433. return (null !== t && t.apply(this, arguments)) || this;
  17434. }
  17435. return Vr(e, t), (e.defaultAbles = ec), e;
  17436. })(gc),
  17437. vc = function (t, e) {
  17438. return (
  17439. (vc =
  17440. Object.setPrototypeOf ||
  17441. ({ __proto__: [] } instanceof Array &&
  17442. function (t, e) {
  17443. t.__proto__ = e;
  17444. }) ||
  17445. function (t, e) {
  17446. for (var n in e)
  17447. Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  17448. }),
  17449. vc(t, e)
  17450. );
  17451. };
  17452. function hc(t, e) {
  17453. if ('function' != typeof e && null !== e)
  17454. throw new TypeError(
  17455. 'Class extends value ' +
  17456. String(e) +
  17457. ' is not a constructor or null'
  17458. );
  17459. function n() {
  17460. this.constructor = t;
  17461. }
  17462. vc(t, e),
  17463. (t.prototype =
  17464. null === e
  17465. ? Object.create(e)
  17466. : ((n.prototype = e.prototype), new n()));
  17467. }
  17468. var Ac = function () {
  17469. return (
  17470. (Ac =
  17471. Object.assign ||
  17472. function (t) {
  17473. for (var e, n = 1, r = arguments.length; n < r; n++)
  17474. for (var a in (e = arguments[n]))
  17475. Object.prototype.hasOwnProperty.call(e, a) &&
  17476. (t[a] = e[a]);
  17477. return t;
  17478. }),
  17479. Ac.apply(this, arguments)
  17480. );
  17481. },
  17482. bc = (function (t) {
  17483. function e(e) {
  17484. var n = t.call(this, e) || this;
  17485. return (n.state = {}), (n.state = n.props), n;
  17486. }
  17487. return (
  17488. hc(e, t),
  17489. (e.prototype.render = function () {
  17490. return ln(mc, Ac({ ref: Ct(this, 'moveable') }, this.state));
  17491. }),
  17492. e
  17493. );
  17494. })($e),
  17495. wc = rc,
  17496. kc = xa,
  17497. yc = nc,
  17498. Ic = (function (t) {
  17499. function e(e, n) {
  17500. void 0 === n && (n = {});
  17501. var r = t.call(this) || this;
  17502. (r.containerProvider = null),
  17503. (r.selfElement = null),
  17504. (r._warp = !1);
  17505. var a,
  17506. i = Ac({}, n),
  17507. o = {};
  17508. yc.forEach(function (t) {
  17509. var e;
  17510. o[
  17511. ((e = 'on '.concat(t)),
  17512. e.replace(/[\s-_]+([^\s-_])/g, function (t, e) {
  17513. return e.toUpperCase();
  17514. }))
  17515. ] = function (e) {
  17516. return r.trigger(t, e);
  17517. };
  17518. }),
  17519. n.warpSelf
  17520. ? (delete n.warpSelf, (r._warp = !0), (a = e))
  17521. : ((a = ke(e).createElement('div')), e.appendChild(a)),
  17522. (r.containerProvider = pn(
  17523. ln(bc, Ac({ ref: Ct(r, 'innerMoveable') }, i, o)),
  17524. a
  17525. )),
  17526. (r.selfElement = a);
  17527. var s = i.target;
  17528. return Ut(s) && s.length > 1 && r.updateRect(), r;
  17529. }
  17530. hc(e, t);
  17531. var n = e.prototype;
  17532. return (
  17533. (n.setState = function (t, e) {
  17534. this.innerMoveable.setState(t, e);
  17535. }),
  17536. (n.forceUpdate = function (t) {
  17537. this.innerMoveable.forceUpdate(t);
  17538. }),
  17539. (n.dragStart = function (t) {
  17540. this.innerMoveable.$_timer && this.forceUpdate(),
  17541. this.getMoveable().dragStart(t);
  17542. }),
  17543. (n.destroy = function () {
  17544. var t,
  17545. e = this.selfElement;
  17546. pn(null, e, this.containerProvider),
  17547. this._warp ||
  17548. null === (t = null == e ? void 0 : e.parentElement) ||
  17549. void 0 === t ||
  17550. t.removeChild(e),
  17551. (this.containerProvider = null),
  17552. this.off(),
  17553. (this.selfElement = null),
  17554. (this.innerMoveable = null);
  17555. }),
  17556. (n.getMoveable = function () {
  17557. return this.innerMoveable.moveable;
  17558. }),
  17559. (e = (function (t, e, n, r) {
  17560. var a,
  17561. i = arguments.length,
  17562. o =
  17563. i < 3
  17564. ? e
  17565. : null === r
  17566. ? (r = Object.getOwnPropertyDescriptor(e, n))
  17567. : r;
  17568. if (
  17569. 'object' == typeof Reflect &&
  17570. 'function' == typeof Reflect.decorate
  17571. )
  17572. o = Reflect.decorate(t, e, n, r);
  17573. else
  17574. for (var s = t.length - 1; s >= 0; s--)
  17575. (a = t[s]) &&
  17576. (o = (i < 3 ? a(o) : i > 3 ? a(e, n, o) : a(e, n)) || o);
  17577. return i > 3 && o && Object.defineProperty(e, n, o), o;
  17578. })(
  17579. [
  17580. xt(kc, function (t, e) {
  17581. t[e] ||
  17582. (t[e] = function () {
  17583. for (var t = [], n = 0; n < arguments.length; n++)
  17584. t[n] = arguments[n];
  17585. var r = this.getMoveable();
  17586. if (r && r[e]) return r[e].apply(r, t);
  17587. });
  17588. }),
  17589. xt(wc, function (t, e) {
  17590. Object.defineProperty(t, e, {
  17591. get: function () {
  17592. return this.getMoveable().props[e];
  17593. },
  17594. set: function (t) {
  17595. var n;
  17596. this.setState((((n = {})[e] = t), n));
  17597. },
  17598. enumerable: !0,
  17599. configurable: !0
  17600. });
  17601. })
  17602. ],
  17603. e
  17604. )),
  17605. e
  17606. );
  17607. })(pr),
  17608. Ec = (function (t) {
  17609. function e() {
  17610. return (null !== t && t.apply(this, arguments)) || this;
  17611. }
  17612. return hc(e, t), e;
  17613. })(Ic);
  17614. const Cc = '' + new URL('toolbox-b154b72c.png', e.meta.url).href,
  17615. Bc = '' + new URL('setTimeIcon-7c3b5a37.png', e.meta.url).href,
  17616. xc = '' + new URL('beatIcon-902ff81a.png', e.meta.url).href,
  17617. Sc = '' + new URL('toneIcon-f58dd6e3.png', e.meta.url).href;
  17618. t(
  17619. 'default',
  17620. n({
  17621. name: 'layoutView',
  17622. setup() {
  17623. const t = l(),
  17624. e = r(!1),
  17625. n = r({}),
  17626. o = r('left'),
  17627. s = r(!1),
  17628. f = r(!1),
  17629. p = r(!1),
  17630. g = r(!1);
  17631. r(!1), Q();
  17632. const m = u({
  17633. isBoundary: !1,
  17634. isBoundaryType: '',
  17635. mainWidth: '',
  17636. mainHeight: '',
  17637. subWidth: '',
  17638. subHeight: ''
  17639. });
  17640. u({
  17641. isBoundary: !0,
  17642. isBoundaryType: 'right',
  17643. mainWidth: '',
  17644. mainHeight: '',
  17645. subWidth: '',
  17646. subHeight: ''
  17647. });
  17648. const v = c(),
  17649. A = r(!1),
  17650. b = r();
  17651. a(
  17652. () => v.path,
  17653. t => {
  17654. const e = document.getElementById('WrapcoreViewWrap');
  17655. e && (e.scrollTo(0, 0), window.scrollTo(0, 0));
  17656. }
  17657. );
  17658. const w = u({ baseListTab: '' }),
  17659. k = _(() => {
  17660. const t = v.path,
  17661. e = [
  17662. '/classDetail',
  17663. '/classStudentDetail',
  17664. '/notation',
  17665. '/xiaoku-ai'
  17666. ];
  17667. return '/setting' === v.path
  17668. ? 'school' === w.baseListTab
  17669. : !e.includes(t);
  17670. }),
  17671. y = _(() => {
  17672. const t = v.path;
  17673. return (
  17674. console.log(t, 'routePath', t),
  17675. !['/prepare-lessons'].includes(t)
  17676. );
  17677. });
  17678. d(() => {
  17679. (async () => {
  17680. document.querySelector('.wrap') &&
  17681. new Ec(document.querySelector('.wrap'), {
  17682. target: document.querySelector('#moveNPopover'),
  17683. container: document.querySelector('.wrap'),
  17684. draggable: !0,
  17685. resizable: !1,
  17686. scalable: !1,
  17687. rotatable: !1,
  17688. warpable: !1,
  17689. pinchable: !1,
  17690. origin: !1,
  17691. keepRatio: !1,
  17692. edge: !1,
  17693. throttleDrag: 0,
  17694. throttleResize: 0,
  17695. throttleScale: 0,
  17696. throttleRotate: 0
  17697. })
  17698. .on(
  17699. 'drag',
  17700. ({
  17701. target: t,
  17702. left: e,
  17703. top: n,
  17704. right: r,
  17705. bottom: a
  17706. }) => {
  17707. (A.value = !0), b.value && b.value.setShow(!1);
  17708. const i = document.getElementById('moveNPopover'),
  17709. o = getComputedStyle(i, null),
  17710. s = {
  17711. left: Number(o.left.replace('px', '')),
  17712. top: Number(o.top.replace('px', '')),
  17713. width: Number(o.width.replace('px', '')),
  17714. height: Number(o.height.replace('px', ''))
  17715. },
  17716. l =
  17717. parseInt(
  17718. window.getComputedStyle(
  17719. document.querySelector('.wrap')
  17720. ).width
  17721. ) - s.width,
  17722. c =
  17723. parseInt(
  17724. window.getComputedStyle(
  17725. document.querySelector('.wrap')
  17726. ).height
  17727. ) - s.height;
  17728. (i.style.transition = ''),
  17729. (m.isBoundary = !1),
  17730. (m.isBoundaryType = ''),
  17731. (m.mainHeight = c),
  17732. (m.mainWidth = l),
  17733. (m.subWidth = s.width),
  17734. (m.subHeight = s.height),
  17735. e < 0 &&
  17736. ((e = 2),
  17737. (m.isBoundary = !0),
  17738. (m.isBoundaryType = 'left')),
  17739. n < 0 &&
  17740. ((n = 2),
  17741. (m.isBoundary = !0),
  17742. (m.isBoundaryType = 'top')),
  17743. r < 0 && (r = 2),
  17744. a < 0 && (a = 2),
  17745. e > l - 2 &&
  17746. ((e = l - 2),
  17747. (m.isBoundary = !0),
  17748. (m.isBoundaryType = 'right')),
  17749. n > c - 2 &&
  17750. ((n = c - 2),
  17751. (m.isBoundary = !0),
  17752. (m.isBoundaryType = 'bottom')),
  17753. (t.style.left = `${e}px`),
  17754. (t.style.top = `${n}px`);
  17755. }
  17756. )
  17757. .on('dragEnd', async ({ target: t, clientX: e }) => {
  17758. document.body.clientWidth / 2 - e > 0
  17759. ? (o.value = 'right')
  17760. : (o.value = 'left'),
  17761. (A.value = !1),
  17762. m.isBoundary &&
  17763. ((t.style.transition = '.3s'),
  17764. x(t, m.isBoundaryType));
  17765. });
  17766. })();
  17767. const t = document.getElementById('moveNPopover');
  17768. E(t, m),
  17769. D(t, m),
  17770. window.addEventListener('resize', I),
  17771. O.on('base-setting-emit', t => {
  17772. w.baseListTab = t;
  17773. });
  17774. });
  17775. const I = () => {
  17776. const t = document.getElementById('moveNPopover');
  17777. (t.style.display = 'none'),
  17778. b.value && b.value.setShow(!1),
  17779. setTimeout(() => {
  17780. (t.style.transition = ''),
  17781. D(t, m),
  17782. E(t, m),
  17783. console.log('resize'),
  17784. (t.style.display = 'block');
  17785. }, 100);
  17786. };
  17787. M(() => {
  17788. window.removeEventListener('resize', I);
  17789. });
  17790. const E = (t, e) => {
  17791. t.addEventListener('mouseover', () => {
  17792. e.isBoundary &&
  17793. ('left' == e.isBoundaryType
  17794. ? (t.style.left = '2px')
  17795. : 'right' == e.isBoundaryType
  17796. ? (t.style.left = e.mainWidth - 2 + 'px')
  17797. : 'top' == e.isBoundaryType
  17798. ? (t.style.top = '2px')
  17799. : 'bottom' == e.isBoundaryType &&
  17800. (t.style.top = e.mainHeight - 2 + 'px')),
  17801. B(t, 0);
  17802. }),
  17803. t.addEventListener('mouseout', () => {
  17804. e.isBoundary &&
  17805. ('left' == e.isBoundaryType
  17806. ? x(t, 'left')
  17807. : 'right' == e.isBoundaryType
  17808. ? x(t, 'right')
  17809. : 'top' == e.isBoundaryType
  17810. ? x(t, 'top')
  17811. : 'bottom' == e.isBoundaryType && x(t, 'bottom'));
  17812. });
  17813. },
  17814. C = t => {
  17815. 'setTimeIcon' == t && (g.value = !0),
  17816. 'beatIcon' == t && (f.value = !0),
  17817. 'toneIcon' == t && (p.value = !0),
  17818. 'iconNote' == t &&
  17819. (b.value && b.value.setShow(!1),
  17820. console.log(v.name, 'guideInfo'),
  17821. O.emit('teacher-guideInfo', v.name)),
  17822. 'iconWhiteBorad' == t &&
  17823. ((Y.whiteboardShow = !0),
  17824. (Y.type = 'whiteboard'),
  17825. (Y.homeStatus = !1),
  17826. b.value && b.value.setShow(!1)),
  17827. 'iconPen' == t &&
  17828. ((Y.penShow = !0),
  17829. (Y.type = 'pen'),
  17830. (Y.homeStatus = !1),
  17831. b.value && b.value.setShow(!1));
  17832. },
  17833. B = (t, e) => {
  17834. t.style.transform = ' rotate(' + e + ')';
  17835. },
  17836. x = (t, e) => {
  17837. switch (e) {
  17838. case 'left':
  17839. B(t, '90deg'),
  17840. (t.style.left = 2 - m.subWidth / 2 + 'px'),
  17841. (t.style.top = `${top}px`);
  17842. break;
  17843. case 'right':
  17844. B(t, '-90deg'),
  17845. (t.style.left =
  17846. m.mainWidth - 2 + m.subWidth / 2 + 'px'),
  17847. (t.style.top = `${top}px`);
  17848. break;
  17849. case 'top':
  17850. (t.style.top = 2 - m.subHeight / 2 + 'px'),
  17851. B(t, '-180deg');
  17852. break;
  17853. case 'bottom':
  17854. t.style.top = m.mainHeight - 2 + m.subHeight / 2 + 'px';
  17855. break;
  17856. default:
  17857. B(t, '-0');
  17858. }
  17859. },
  17860. D = (t, e) => {
  17861. const n = getComputedStyle(t, null),
  17862. r = {
  17863. left: Number(n.left.replace('px', '')),
  17864. top: Number(n.top.replace('px', '')),
  17865. width: Number(n.width.replace('px', '')),
  17866. height: Number(n.height.replace('px', ''))
  17867. },
  17868. a =
  17869. parseInt(
  17870. window.getComputedStyle(document.querySelector('.wrap'))
  17871. .width
  17872. ) - r.width,
  17873. i =
  17874. parseInt(
  17875. window.getComputedStyle(document.querySelector('.wrap'))
  17876. .height
  17877. ) - r.height;
  17878. (e.mainHeight = i),
  17879. (e.mainWidth = a),
  17880. (e.subWidth = r.width),
  17881. (e.subHeight = r.height),
  17882. (t.style.transition = '.3s .3s');
  17883. },
  17884. Y = u({
  17885. homeStatus: !0,
  17886. type: '',
  17887. penShow: !1,
  17888. whiteboardShow: !1
  17889. });
  17890. return () =>
  17891. i('div', { class: [q.wrap, 'wrap'] }, [
  17892. i('div', null, [i(J, null, null)]),
  17893. i('div', { class: q.Wrapcore }, [
  17894. i(It, null, null),
  17895. i(
  17896. 'div',
  17897. { class: q.WrapcoreView, id: 'WrapcoreViewWrap' },
  17898. [
  17899. i(T('router-view'), null, {
  17900. default: t =>
  17901. i(
  17902. z,
  17903. { name: 'fade-slide', mode: 'out-in' },
  17904. { default: () => [i(t.Component, null, null)] }
  17905. )
  17906. })
  17907. ]
  17908. )
  17909. ]),
  17910. i(
  17911. S,
  17912. {
  17913. raw: !0,
  17914. trigger: 'click',
  17915. ref: b,
  17916. 'show-arrow': !1,
  17917. placement: o.value
  17918. },
  17919. {
  17920. default: () => [
  17921. i('div', { class: q.booxToolWrap }, [
  17922. i('div', null, [
  17923. i(
  17924. 'div',
  17925. {
  17926. class: q.booxToolItem,
  17927. onClick: () => C('beatIcon')
  17928. },
  17929. [
  17930. i('img', { src: xc, alt: '' }, null),
  17931. h('节拍器')
  17932. ]
  17933. ),
  17934. i(
  17935. 'div',
  17936. {
  17937. class: q.booxToolItem,
  17938. onClick: () => C('toneIcon')
  17939. },
  17940. [
  17941. i('img', { src: Sc, alt: '' }, null),
  17942. h('调音器')
  17943. ]
  17944. ),
  17945. i(
  17946. 'div',
  17947. {
  17948. class: q.booxToolItem,
  17949. onClick: () => C('setTimeIcon')
  17950. },
  17951. [
  17952. i('img', { src: Bc, alt: '' }, null),
  17953. h('计时器')
  17954. ]
  17955. ),
  17956. i(
  17957. 'div',
  17958. {
  17959. class: [
  17960. q.booxToolItem,
  17961. !y.value && q.booxToolDisabled
  17962. ],
  17963. onClick: () => {
  17964. y.value && (s.value = !0);
  17965. }
  17966. },
  17967. [
  17968. i(
  17969. 'img',
  17970. {
  17971. src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAADaxJREFUeF7tXQ2QVVUd/523q+iyT6EkYdnGnGGMqbEsv7Ks1AkqI4EsywKTDIKyD5nUhoCIjxBCpC8TyDBFbfoSphQFDRpsZKMZM8NMPpatu7swA4K7y7LL7r5/87/vnOXs4Zx773t7d99l976Znb3vvfvuPef/O///7/9x7jkCMbyI6OyGVoyjHK4VhLEEjBHAcBLIgnBmDLdIziUETghCMwFHBLCHBF4VGWytqsAWIcTx3jZUFHuBo0TDW45hoiBMBDCeCBXFXmsg/E4ItALYTAIbK4di4zAhjhTTr4IBaSCqyLVgtiDcRUC2mJsO9N8IoJkElmcqsbJKCAYq8isyIERU1tiM23ICC0AYFfkOg/lEgcYMYcGoLB4UQnRFEUUkQA610uj2Tmwg4LIoF03P6SkBAfx9SDkmnVch6sNkEwrIgVa6srMLT6RaESbKkO8FGsvLMHlkhagJOjMQkIYWmpIjrAXhrF42J/05S0CgLSMwvapSrHcJxAmID0YOj6SSjF8CmQymukCxAiLN1LZUM+IHw7+iQFt5Ga6xma9TAGECb+vCzpQz+ggMdVmBxrPKcLlJ9D0AYde2oRk7Um+qj8GQl2fvqyqL9+kucQ9AGppoRg5Y3T/NSe/CEsgAX6k6R6w5qTjySEbge1JT1c8DhYPHSoxREX23hnjNNBeERf3cnPR2eZKfV50Vi/OHADhReKwZdWluqjTjg3NfQ7O4gBOSPiBeC92KHNaVpjnpXX0JZDCtulI85ANS30xPEGFSKprSSUAIbBidFZOFX1xqwaHBXs8oHRT5O3M9paoS54n6Y3QDdWFjqRuU3h8QZZgovGa6D4RvpQJJgAQEVon6JtpEwMcS0JxB3wQBPC28JtoNYMygl0YyBLCHNeQQAW9ORnsGd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iuTAkd+uIt3QJRmIdG/ows1JtzwqPSjdWx5xU9JNwUoPSI9NwdJt80oLyCnb5vlakm4sWTpUzI0luSXp1qslwsO19aoPSro5cb+j4tyc2K/TpNt39ysgodt3c2vSDe77CZMoG9yrphxopSs7u7AN5D8NmL7iloBAW3kZrhlZIWrMSzvnvDS00JRcDo/E3Zb0ekAmg6lVlWK9TRaBk5B8UAhrU02JaRgJtGUEprvA4LuEzgqT5usJkL8gRvoqVgICjeVlmGwzU/olQwFRRN/eCV5Biuetp68CJcDe1JByTDqvQtSH/TQSIMolbmzGbTmBBam2hIlVfs9BH2HBqCweFEKo5aIDfxwZEHUVGdHPFoS7CMhGbNqgOo1zUySwPFOJlVVC8LqpkV8FA6KuzAnJlmNcUMFEAOOJ/Ec5B+2L6xkANpPAxsqh2DhMCPVkfUEyKRoQ/S5+kasV4yiHawVhLAFjBDCcBLIDbp9dnqpD4BXhjwhgDwm8KjLYWlWBLUII3uOhV6//A2nUuK3w7m5SAAAAAElFTkSuQmCC',
  17972. class: [q.toolClassImg],
  17973. alt: ''
  17974. },
  17975. null
  17976. ),
  17977. h('开始上课')
  17978. ]
  17979. )
  17980. ]),
  17981. i('div', null, [
  17982. i(
  17983. 'div',
  17984. {
  17985. class: [
  17986. q.booxToolItem,
  17987. !k.value && q.booxToolDisabled
  17988. ],
  17989. onClick: () => {
  17990. k.value && C('iconNote');
  17991. }
  17992. },
  17993. [
  17994. i(
  17995. 'img',
  17996. {
  17997. src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAABF1BMVEUAAAD/6uf/6eb/6+f/////6eb/6uf/6uf/6uf/6uf/6eb/6ub/6ub/6+b/6+j/7Oj/7Oz/8PD/6eb/////UHT/WHr/H03/VHf/epX/Q2n/R2z/Wnz/Sm//cY7/bYv/Unb/I1D/MFv/fZf/Nl//LVj/Xn//hZ7/OmL/b43/M13+aYj/XH7/c5D/dZL/TXL/Z4b/d5P/P2f/gpz+YIH/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hiB+ccRB0ZZLtlnA2yws2cOIQKQdI0kEYYmZ+wQYOMgmLYZjxvCABZd1Ew60v3VTbVorFMPYQBemCFOSuxKWImA2LxSeXlKSjoN1evBeTjc5163O5653DjIIWrwYbnWZbtuubcUBAsqBgB+L9fDDdfJ7N5xsv4Xjzw9Jw8znVNvrhND9ONpvJcX46vE7Nt9GtHAhYOdqwckhj47jJysGZlSNAG4eZVo5lbRww2zgqt3Lob+P6go2LGDaulNi4HGPjmo+FC0s2rl5Zv0Rm5TrcH7lNubIoVSvAAAAAAElFTkSuQmCC',
  17998. alt: ''
  17999. },
  18000. null
  18001. ),
  18002. h('帮助指引')
  18003. ]
  18004. ),
  18005. i(
  18006. 'div',
  18007. {
  18008. class: q.booxToolItem,
  18009. onClick: () => C('iconPen')
  18010. },
  18011. [
  18012. i(
  18013. 'img',
  18014. {
  18015. src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAB71BMVEUAAAD/9d3//+X/9tz/9t3/9t3/9tz/9dz/9tz/9t3/9dz/9tz/9t3/99z/9dz/99z/997/9d7/9t//9uP//+H/9dz/////vjn/pSX/wTv/si//oCH/mBv/hw7/ry3/tDD/qSj/lBn/iRH/hA3/nR//mx3/rSv/pyf/oiP/oyT/kxf/xj3/uDT/tjL/mh3/lxr/vDf/qin/yUD/yD7/sC7/niD/kRb/jBP/qyr/gQn/wz3/jhT/pib/kBb/fwj/xkD/rCv/ggz/fgj/hAr/nyD/9dr/fAf/eQX/xDz/lhn/5Lv/wzv/vTf/lRf/8tT/8NH/1Jr/y0H/uTb/89f/6Lf/y0T/6sL/xIT/pkP/wDn/8c//78v/7cf/3K//3qP/qU//nDX/mCL/hg3//fr/+/X/+e//47T/5J3/y5L/1mn/vmb/w1X/nT7/pTn/ujb/lSz/miD/6sv/5sH/6r3/4Kj/05D/zIr/wHr/x2D/r1z/uFH/slD/wEL/tjz/qzP/iiH/hhz/8+L/16b/1qH/4JX/2ZT/1Yr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jMFGRbVogNZiG2ygXZ9Bfi+IIQBzGEOFIi0OEY4Y/5kD+wJMTRK8EPkQlyHO4HGmzzgCAiF7YAAAAASUVORK5CYII=',
  18016. alt: ''
  18017. },
  18018. null
  18019. ),
  18020. h('批注')
  18021. ]
  18022. ),
  18023. i(
  18024. 'div',
  18025. {
  18026. class: q.booxToolItem,
  18027. onClick: () => C('iconWhiteBorad')
  18028. },
  18029. [
  18030. i(
  18031. 'img',
  18032. {
  18033. src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAACB1BMVEUAAADk8//y///k8//k8//l8//l8v/l8v/k8v/l8v/l8v/l8//k8//k8//m8//k9P/m9P/l9f/o9v/s9v/w///k8v////84z/8Ar/4Arf4AtP4AgP4Asv8Aq/4AhP4Ag/4At/7d3d0Aff+f3v8Aev7o+/9V1v+fz/8AuP4Ahv5Nqv+M2/9Nxv+n6v8Ap/4AiP5Nyf9NrP8Anf4Ah/4Azv4Ak/719fXl5eWNxf8AyP4AvP4Ajf6N3P8Aw/4Apf4AmP6N1f+Nz/8Auv8Ai/8AeP8Ao/4Aof4Amv4Alf7D8f8An/4AkP4Adv7g8v+x7f+N2f8AwP6N0v8Ay/9Mwf9lvf9MvP9Ms/9Mrv+f0f9lwP8Axf4Avv7S6/8B0f9lzP9N0/7X7v9lyf9Muf/1/f+67v/I6P+w5f9lx/9Mtv86lf8mk/8Ac/4AaP7U9f/L8/+T5f+B3v9m3f9Y1/9o0P9Dz/8JwP8mv/9Wvv8Otf9Np/8Rj//k+f+/6/+m6P963/+U3v+33P9D2/9F0/+m0f+Uzv+Ux/83xP8Ws/9nsf8LfP+f4/z6+vqx2f+F2f9+1P8q0v940f9d0f9dz/8Hyv8Yyf+FyP9byP8Sxv9+xf85wP94vP9pvP82vP96u/8YuP9bqf85pf9Dnv8zm/8Shf8VhP8Pcf901PKG1u/u7u7q6uqk2OjX5Off398bMFJIAAAAFXRSTlMA5gn59/Xy7NvLt6+Pf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YW0AirsGFa3Aoela6THPlGcirs+s/2/ebGQwsr5xnZkcCK7IwF/ITP78OjP7e8ejjfV9elmTnek1l80ejkOX2CQTyCk/0sfTmY40zWOKI2F5nFGQ4rHtG3RAl/VPG780d66ClrTR9KKm7ZQ2Gmx3RkZh3RmToICgfD6XQ4nA7PMR05Ri//7MheUNibSqfwSG8wHfnAXmSpk6BwMhKJpCKp1BOzkbPS/fIaVDyMMJtNRl5Jt+URUDF2LXPaKGKwyLtduisvgoo9s5iRBkvCBl/ZZq9J934GVGSWssiDJOgpNfjy+UKCvZHtAFV3ljKnQE+ZwdfoVxPsfewqqNo3jdln8DW6Q/+SJBJ0lgug6pQUOQd6HAZLG5eu0co7jZOePLeO2qO/tCFkkUbEcpOQhTMhS4AiFjOFLMuKWGAWsVQuZNFfxPYFERsxRGwpEbE5RsQ2HwEblkRsvRK+iUzIdrhfFVrWoAapgAEAAAAASUVORK5CYII=',
  18034. alt: ''
  18035. },
  18036. null
  18037. ),
  18038. h('白板')
  18039. ]
  18040. )
  18041. ])
  18042. ])
  18043. ],
  18044. trigger: () =>
  18045. i(
  18046. 'img',
  18047. {
  18048. src: Cc,
  18049. id: 'moveNPopover',
  18050. style: { display: Y.homeStatus ? 'block' : 'none' },
  18051. class: [
  18052. q.toolboxImg,
  18053. 'moveNPopover',
  18054. A.value ? q.isDragIng : ''
  18055. ],
  18056. alt: ''
  18057. },
  18058. null
  18059. )
  18060. }
  18061. ),
  18062. Y.penShow &&
  18063. i(
  18064. F,
  18065. {
  18066. show: 'pen' === Y.type,
  18067. type: Y.type,
  18068. close: () => {
  18069. (Y.type = 'init'), (Y.homeStatus = !0);
  18070. }
  18071. },
  18072. null
  18073. ),
  18074. Y.whiteboardShow &&
  18075. i(
  18076. F,
  18077. {
  18078. show: 'whiteboard' === Y.type,
  18079. type: Y.type,
  18080. close: () => {
  18081. (Y.type = 'init'), (Y.homeStatus = !0);
  18082. }
  18083. },
  18084. null
  18085. ),
  18086. i(
  18087. R,
  18088. {
  18089. class: ['modalTitle background'],
  18090. style: { width: '687px' },
  18091. title: '节拍器',
  18092. preset: 'card',
  18093. show: f.value,
  18094. 'onUpdate:show': t => (f.value = t)
  18095. },
  18096. {
  18097. default: () => [
  18098. i('div', { class: q.modeWrap }, [
  18099. i(
  18100. 'iframe',
  18101. {
  18102. src: `${j()}/metronome/?id=${new Date().getTime()}`,
  18103. scrolling: 'no',
  18104. frameborder: '0',
  18105. width: '100%',
  18106. height: '650px'
  18107. },
  18108. null
  18109. )
  18110. ])
  18111. ]
  18112. }
  18113. ),
  18114. i(
  18115. R,
  18116. {
  18117. show: p.value,
  18118. 'onUpdate:show': t => (p.value = t),
  18119. class: ['background']
  18120. },
  18121. {
  18122. default: () => [
  18123. i('div', null, [
  18124. i(
  18125. L,
  18126. {
  18127. onClose: () => {
  18128. p.value = !1;
  18129. }
  18130. },
  18131. null
  18132. )
  18133. ])
  18134. ]
  18135. }
  18136. ),
  18137. i(
  18138. R,
  18139. {
  18140. show: g.value,
  18141. 'onUpdate:show': t => (g.value = t),
  18142. class: ['modalTitle background'],
  18143. title: '计时器',
  18144. preset: 'card',
  18145. style: { width: P(772) }
  18146. },
  18147. { default: () => [i('div', null, [i(X, null, null)])] }
  18148. ),
  18149. i(
  18150. R,
  18151. {
  18152. show: s.value,
  18153. 'onUpdate:show': t => (s.value = t),
  18154. class: ['modalTitle background', q.showClass],
  18155. preset: 'card',
  18156. title: '开始上课'
  18157. },
  18158. {
  18159. default: () => [
  18160. i(
  18161. H,
  18162. {
  18163. onClose: () => (s.value = !1),
  18164. type: 'change',
  18165. onConfirm: e => {
  18166. (s.value = !1),
  18167. t.push({
  18168. path: '/prepare-lessons',
  18169. query: { ...e }
  18170. });
  18171. }
  18172. },
  18173. null
  18174. )
  18175. ]
  18176. }
  18177. ),
  18178. i(
  18179. W,
  18180. {
  18181. show: e.value,
  18182. 'onUpdate:show': t => (e.value = t),
  18183. type: 'attend',
  18184. params: n.value
  18185. },
  18186. null
  18187. )
  18188. ]);
  18189. }
  18190. })
  18191. );
  18192. }
  18193. };
  18194. }
  18195. );