123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210 |
- System.register(
- [
- './index-legacy-04533e6e-1694098095353.js',
- './teacherIcon-legacy-3eeb62c3-1694098095353.js',
- './forgotPassword-legacy-0c517833-1694098095353.js',
- './index-legacy-d61abab3-1694098095353.js',
- './index-legacy-7d8c0107-1694098095353.js',
- './index-legacy-e9320af5-1694098095353.js',
- './urlUtils-legacy-b652a21b-1694098095353.js',
- './updateSubject-legacy-3c70af7f-1694098095353.js',
- './index-legacy-66855e82-1694098095353.js',
- './api-legacy-bed2534a-1694098095353.js',
- './api-legacy-a91d4324-1694098095353.js',
- './contants-legacy-c5f4fb84-1694098095353.js',
- './Slider-legacy-59524740-1694098095353.js',
- './index-legacy-d0590c68-1694098095353.js',
- './isCollaose-legacy-4c1d1162-1694098095353.js',
- './index-legacy-53c5d0a1-1694098095353.js',
- './index-legacy-7e9eb8b4-1694098095353.js',
- './index-legacy-b8a20645-1694098095353.js',
- './index-legacy-74685ae1-1694098095353.js',
- './catchData-legacy-74259154-1694098095353.js',
- './index-legacy-f9a6e3f8-1694098095353.js',
- './ding-legacy-f3656c17-1694098095353.js',
- './state-legacy-d6bde451-1694098095353.js',
- './index.module-legacy-f2b0f9bd-1694098095353.js',
- './api-legacy-e5a28f94-1694098095353.js',
- './index-legacy-875aab19-1694098095353.js'
- ],
- function (t, e) {
- 'use strict';
- var n,
- r,
- a,
- i,
- o,
- s,
- l,
- c,
- u,
- f,
- d,
- p,
- g,
- m,
- v,
- h,
- A,
- b,
- w,
- k,
- y,
- I,
- E,
- C,
- B,
- x,
- S,
- D,
- R,
- Q,
- _,
- O,
- M,
- T,
- z,
- P,
- Y,
- G,
- N,
- U,
- F,
- L,
- X,
- j,
- W,
- H;
- return {
- setters: [
- t => {
- (n = t.d),
- (r = t.r),
- (a = t.y),
- (i = t.f),
- (o = t.t),
- (s = t.F),
- (l = t.u),
- (c = t.a),
- (u = t.e),
- (f = t.z),
- (d = t.n),
- (p = t.c),
- (g = t.A),
- (m = t.B),
- (v = t.b),
- (h = t.k),
- (A = t.N),
- (b = t.g),
- (w = t.x),
- (k = t.h),
- (y = t.C),
- (I = t.D),
- (E = t.E),
- (C = t.G),
- (B = t.H),
- (x = t.I),
- (S = t.J),
- (D = t.K),
- (R = t.v),
- (Q = t.m),
- (_ = t.L),
- (O = t.M),
- (M = t.O),
- (T = t.Q),
- (z = t.T),
- (P = t.R);
- },
- t => {
- Y = t.d;
- },
- t => {
- G = t.F;
- },
- t => {
- N = t.C;
- },
- t => {
- U = t.p;
- },
- t => {
- (F = t.P), (L = t.a), (X = t.T);
- },
- t => {
- j = t.v;
- },
- t => {
- W = t.P;
- },
- t => {
- H = t.A;
- },
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- null
- ],
- execute: function () {
- var V = document.createElement('style');
- (V.textContent =
- '@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(' +
- new URL('inBack2-4d2e77fa.png', e.meta.url).href +
- ') no-repeat;background-size:39.27083333vw 35vw}50%{background:url(' +
- new URL('inBack3-5e932250.png', e.meta.url).href +
- ') no-repeat;background-size:39.27083333vw 35vw;z-index:0}75%{background:url(' +
- new URL('inBack4-874e90ab.png', e.meta.url).href +
- ') no-repeat;background-size:39.27083333vw 35vw;z-index:300}to{background:url(' +
- new URL('inBack5-45c274de.png', e.meta.url).href +
- ') 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(' +
- new URL('inBack-8ef3e8f3.png', e.meta.url).href +
- ') 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,iVBORw0KGgoAAAANSUhEUgAABPAAAABmCAYAAABFs29OAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAE8KADAAQAAAABAAAAZgAAAACABi99AAAI80lEQVR4Ae3QMREAMAgEQYJ/JdEULyCACKDYL6/62QgjQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQI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AQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECEyBc1/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'),
- document.head.appendChild(V);
- const q = {
- wrap: '_wrap_1vggn_1',
- WrapcoreView: '_WrapcoreView_1vggn_9',
- silder: '_silder_1vggn_14',
- logoWrap: '_logoWrap_1vggn_23',
- logo: '_logo_1vggn_23',
- sliderList: '_sliderList_1vggn_30',
- silderItem: '_silderItem_1vggn_33',
- radiusIcon: '_radiusIcon_1vggn_44',
- isActiveItem: '_isActiveItem_1vggn_63',
- Wrapcore: '_Wrapcore_1vggn_9',
- layoutTop: '_layoutTop_1vggn_74',
- layoutLeft: '_layoutLeft_1vggn_84',
- schoolIcon: '_schoolIcon_1vggn_89',
- layoutRight: '_layoutRight_1vggn_101',
- messageBadge: '_messageBadge_1vggn_106',
- messageIcon: '_messageIcon_1vggn_109',
- animation: '_animation_1vggn_114',
- Tada: '_Tada_1vggn_1',
- messageBadgeNo: '_messageBadgeNo_1vggn_120',
- messageBadgeHide: '_messageBadgeHide_1vggn_121',
- line: '_line_1vggn_147',
- mesgWrap: '_mesgWrap_1vggn_153',
- teacherIcon: '_teacherIcon_1vggn_159',
- rotueLeft: '_rotueLeft_1vggn_165',
- rotueRight: '_rotueRight_1vggn_170',
- optons: '_optons_1vggn_175',
- propWrap: '_propWrap_1vggn_197',
- teacherInfo: '_teacherInfo_1vggn_206',
- teacherName: '_teacherName_1vggn_220',
- propWrapList: '_propWrapList_1vggn_230',
- propWrapItem: '_propWrapItem_1vggn_235',
- smallIcon: '_smallIcon_1vggn_247',
- smallTitle: '_smallTitle_1vggn_253',
- logoutInfo: '_logoutInfo_1vggn_258',
- toolboxImg: '_toolboxImg_1vggn_273',
- isDragIng: '_isDragIng_1vggn_282',
- booxToolWrap: '_booxToolWrap_1vggn_292',
- booxToolItem: '_booxToolItem_1vggn_307',
- booxToolDisabled: '_booxToolDisabled_1vggn_316',
- setTimeImage: '_setTimeImage_1vggn_332',
- beatImage: '_beatImage_1vggn_338',
- changePwdModal: '_changePwdModal_1vggn_344',
- imChatModal: '_imChatModal_1vggn_347',
- modeWrap: '_modeWrap_1vggn_350',
- imGroupContainer: '_imGroupContainer_1vggn_355',
- container: '_container_1vggn_356',
- hideModal: '_hideModal_1vggn_362',
- showClass: '_showClass_1vggn_365',
- showModalTone: '_showModalTone_1vggn_370',
- studentRemove: '_studentRemove_1vggn_373',
- suggestWrap: '_suggestWrap_1vggn_385'
- },
- K = '' + new URL('logo-654be404.png', e.meta.url).href,
- Z = n({
- emits: ['checkNavBar'],
- props: ['item'],
- name: 'layoutSilder',
- setup(t, { emit: e }) {
- const n = r(t.item);
- return (
- a(
- () => t.item,
- t => {
- n.value = t;
- },
- { deep: !0 }
- ),
- () =>
- i(s, null, [
- i(
- 'div',
- {
- onClick: () => {
- return (t = n.value), void e('checkNavBar', t);
- var t;
- },
- class: [
- q.silderItem,
- n.value.isActive ? q.isActiveItem : ''
- ]
- },
- [
- i(
- o,
- {
- width: '26',
- height: '26',
- src: n.value.isActive
- ? n.value.activeIcon
- : n.value.normalIcon,
- 'preview-disabled': !0
- },
- null
- ),
- i('p', null, [n.value.name]),
- n.value.isActive
- ? i(
- o,
- {
- src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAEUCAYAAABkoxVpAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAANKADAAQAAAABAAABFAAAAABXIhGiAAAGuElEQVR4Ae2avWscVxTF79PG+nJWGGOIMbYxLqJgcKHWhQthSCUXjmuDu6Rwmtj/iN2kMYH0aZIqKMQhhdrgRiTBiEAgiBQh2WU/tPLuzX3LDqxHszua1dnZ94azYOZTZ+45vzdv3ryxCH9MgAkwgSon4GI3919LddzD0vhGFdZpKHSKJERCJSfAJldy4IUvR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iSEThStR0LoRNF6JIROFK1HQuhE0XokhE4UrUdC6ETReiSEThStR0LoRNF6JIROFK1HQuhE0XokhE4UrUdC6ETReiSEThStR0LoRNF6JIROFK1HQuhE0XokhE4UrUdC6ETReiSEThStR0LoRNF6JIROFK1HQuhE0XokhE4UrUdC6ETRei5PUFWXmyL1c12p95ekLiqXdSCbA5FNW980gS0VuZSnU9bxXEN5hZhh1+rJ7X5ftk1s286/pypreX83r+NnNpQuzAxuNLvy0Og9smN3zRz8Gulrjm/P9WLdrt48UnnmVB6bsZXxC89rfa6GkqJbLb3Sd/LUtj+dd3MsxVBirNPRG8cqz83UTrIPvSzVUFJ8o6X31ckLu8+uJ/tQy4UY8sVb53Gh2ZGXRusByozXWdhIwTn378a6+2TJyefOSQ9lamGExg002nrHSH1n+y6O759lPQhDvvDmkd7Svnxvxq7OYiT5m2AM+YLabb32VmTXTG0mBRZdBmVozNTerKQW1ilMSn593f3pavKxHf9n0jnT9gdnyBdbX3H71vPtzNL7BWnIm7Iufc/uBz9cKvQL7h5KV29d+jd2P5364Ru8IT+iaHTk9WmHScE2uYSUH1HY68eTZDtvGTyhxIA1vW+t6eWO0qMxNHr12DdTU1/vg29yCaG1NfeHrX+ZbE9aRkPIGxi9+R4YpYmv89EQ8obOn3d/2YvhV3590i8qQt6En3jpDeSNUcqsPSpC3tDqqjuwxc9+PesXnaGhCSdfZ5nx+zKxTTo5lP3DycyOHGZ14VESstFDw8L9ISvgKA15I/aB4MdKGarVsg1FeQ8NCdlXj2Zb/k5/yom2ydl9ZH2C/JJudtEaGhpx8lulDC2p/FopQzY79HulDNmw4LBShmoDse/Z7/6i7hSOVytmqG5z/O/yWeD3oXQhs2zbs+jEd6Wom1xWCDSUlUpI+0goJBpZtZBQVioh7SOhkGhk1UJCWalwHxNgAkyACZSVwP8hUI3VVMubnwAAAABJRU5ErkJggg==',
- class: q.radiusIcon,
- previewDisabled: !0
- },
- null
- )
- : null
- ]
- )
- ])
- );
- }
- }),
- J = n({
- name: 'layoutSilder',
- setup() {
- const t = l(),
- e = c(),
- n = u([
- {
- activeIcon:
- 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAABjZJREFUaN7tmVuIVVUYx3/f3mcmSlMrvCQjlRrYDRnFCnxQCSKS6MURi+gGGRFF5ksFldGDgdCT0g0cidCyepjHYoKxByGqUZo5Q4jXEC8zak7apOM56+th9jmus85ae+8zzpjBbNicfdbe31rff333b8HENXFd1UvGbeZebWaIJxEWI9yNAEIfwq80sZ17Zfj/A2i3Po3wHujtCRCIrN9IDiO8y0L5/NoGtEencY5tiD7uBSLWPQKsgyk8yx1y9toD9KMuosTXRDq3DowLjBpQBxHaWCjdY8FGNCZgOnUtF9mN6lwMYABNft3nyv/KbXQuym5+07X/vYR+0RsY4BMifapGEpWtsrfrJHACGATOAxcTQAVgEnALMEe+4EFeZLYMXX1A3+kCynyD6j1BO/kLOAYctwDUScgZu06KzGMVr8jvVw9Qh64BPkN0co0kKqBKwKEECB6mbTXE8w45j+EFPpYvxxdQrzazjw8RfbmqVq7RnwEOA5c8EgmBCo0hW5jJ62zIH7PyA/pWb0u82JKgSz4O9OdgOATQ9y3yM0IbW+TI2Hm5HbqSS3SjuuTyQg4jxxLp1ATQ5I6dZ/u9eL6zx9AlQDcv6corl9BOjRnmfYQ3QKXGg9lSOp14rzpb8EjKNKB+NfSiCB+wjLdZLeXGAbXrLIQdiC6vAsDZWQH+SQBpDgaz7CkXvXSxgidYLSfyA9qm8yjThWhLfbpi/TeJmlUWLlvqaHJ4syybsr+z6WM5ymqWs1QOZNvQVp3DMF0YbQkuWrn/dgDGlo2IZROxY1NijbvvsmwwAsraQidd9OicbEAX2FQF4wIoW8/DyX8JMFXIYDLyeMk0EK7zOKUt9LIpXeU+0laMdgcTSzu1KQXUphwIpprDOWSpmvt+MrBKWmmVvX4JlXg0UzKV9z61cdUspFKuJOKAFLJoh4BD1LjzQg2gMkuJEqZdidjGX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OoQeA+Q2en+Y+H5Ju4E0ek+/H5xT8Nb0VYT7CVEh2EeB+YIGVGeM8lzxjae9gkBL7eUSOM3FNXNfu9S+4Sk49123KbgAAAABJRU5ErkJggg==',
- name: '主页',
- normalIcon:
- 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAAAXNSR0IArs4c6QAAATJQTFRFAAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////LddBWgAAAGV0Uk5TAAIDBAUGBwkKDhASExQVGBkdHyMmKC0uLzEyOj0+P0BGS0xNVVheYGNmaWprbHF7fYGGkZOUlZaXmZqfo6aorbC0tba5u7y9v8DBx8jKy8zN0tTb3N3f4+nq7fDx8vP3+Pn6/f6FbYleAAACEklEQVQYGdXB10IaURQF0I2IBQELdkXsSrEiSKwktomJIjYGE7HA/v9fyLkXaQIz5NG18CW5VnYuLnZWXPgPy4/UHpfRLneKFSk32jL5wBoPk2hD6JVK8f6+SOU1BDs9B9R+jQFjv6kd9MDSyC21WCdEZ4za7QgsLOWpPC/iw+IzlfwSWnHFqWWGUTGcoRZ3oamhK2r73ajRvU/taghNzD1ReVnFJ6svVJ7m8FnHdpHK3TgajN9RKW53oE6/Qe24F030HlMz+lHDn6Xyvo4W1t+pZP2oGMxSyU6hpakslewgyo6onHphwXtK5QgfJqhsOWDJsUVlAiUbFEnYSlJsoOSEZL4LtrryJE9QckEygzZkSJ6j5AdJE20wSX5HyS6FB7Y8FLsoiVIEYCtAEUVJkCIMW2GKIEp8FHHYilP48CFH0oAtg2QOZT9JmrBlkjRQlqDwQhtNF1inkB6F5qVIoCxCMQMtzQZpaDMUEZTNUESg/WWDP9AiFDMo81IkoO2xwR60BIUXFSZJA5ozlPxWJxlyQjNImqgySOZgI0fSQFWcwgdLPoo4qsIUQVgKUoRRFaCIwlKUIoAqD0UClnYp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oTtZrcbdBMnZ1nNju5H5SUYbkkBPSF/s5w9OLmwwKwssxG5SItXlxLM0gMCeFousJpJCpmikLme6FfIPQqZosXz7LQ/zf+3/3jxb8b5sJY7vEzJxvjR+AxwnB1yicEYjMEYjP9j/AOshrOJdrDqdgAAAABJRU5ErkJggg==',
- name: '班级',
- normalIcon:
- 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAAAXNSR0IArs4c6QAAALpQTFRFAAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8hwkwQAAAD10Uk5TAAECBAUHCwwOERcYGR4iIycxMjM1Ojw9P0BJTFFTWF5mbW93goyQl5mor7O8vb/AxszR1Nnc6O3u9fj9/ikUCf8AAAFLSURBVEjH7ZZpc4IwEIYR8KQWz5YaRfBW8MAbkf//t9otQhLDCJnRfinvt312X5Ld2RkiCJlovWkIS6sGsEpB5c6i2lef0q4viv0dza62Snp012dkWSxzdeKcGE+8XHyW7aeWHc0A+jmbRM+GE5Q4BgHNM/QVTuML8iY1GPnX5cgUNIFptwBBgOhxGsAMmlF1caZE9l9MTWBNTpP4s3mWyGkShFbrnqQwsXqRKa/reV6TtPH9jcRpagNrZ7v3h6YasBrvRow8b8S/e6XS8xe2A0Ev2dSDus4tqEOwkJI88gLq6uFGnyA6OljLbpDpLgl4hKpT9O0B83PwGsAbHpMYRAfn1kxyDnzO4HUOX7c4Y9KTd3XCwFmR6vJzuoouvyfr9hFeTT8ejKmwxZ5tIe3zQDmEnoOS/lFRHl/AchmXud4iFTQcokr2Jnusb1r2tiP//VirAAAAAElFTkSuQmCC',
- isActive: !1,
- id: 3,
- path: '/classList',
- lightList: [
- '/classDetail',
- '/classStudentRecode',
- '/afterWorkDetail',
- '/classStudentDetail'
- ]
- },
- {
- activeIcon:
- 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IAr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mNeo/eqIi5n5vKUCgssO2Q8yRPKDqoSFByuX03+KqTZ+eqNNx22XVGOr9Eick/IgyWtm/Bq4XNLq8BNSf6IycRl01IIUBCZVgXgTJ/35FFkYe6N3mr1+20pQEVW+V/r/APtj6dTDQrOswAAAABJRU5ErkJggg==',
- isActive: !1,
- id: 2,
- path: '/studentList',
- lightList: ['/studentDetail']
- },
- {
- activeIcon:
- 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAABXtJREFUaN7tmU+IVVUcxz+/c+/MJM5EkGHk7FLShZEJ46KgVYsKERREyI3bIIg2gatp0y6FSiqQZuPCMggX/XHhImw1FVJBZC0KmomxpJrmadr47q+F943n/d7vnHvfSNDi/eDy7j3vnHt/3/P7/zswohGNaEQRSatZH+kEi8xQME1gCoAAFPX/Rf0cgAr4Fvi9/q8bvadaB4cVKwQWKJnndblxZ4De1C10mSVwiKCTSAREIhC9e4BLwF8181qPaea+SnCl5l6kg3AaZZa3ZHF4QMd0HwWn+oDEzFtQFfAj0HGY1wSo+NkCXANi5gTpUHGYt+Vse0DHdB/wAaIyAMYC6Y3/XINpkoiuYywGJYBIRcV+D5Q4YLawyndZFQvmebm2GW0hncqxKW2plmokpWy36hcGAN1glkon12ygcq5udH+9tpke8NhB9J7L+gr1bxHd23mF867SzAkAOokwm5fQazrBMlcIOpmUhh37A7jp7GDT7jfZlLZZLx0Cm2LvV/YB+pMZVCf7jNBTTK1361pkV/ZjwahXSnV0naCrWkqFzAAXfEA3mSaYRT3mY4ZCpHY9iakDIFi9dxgcxqbUeXdgOoZQmp2fWgMRDPPxmDouGwNAW6ihXSMt12ifBk2lAXUj+7CuozLPpVEvbQEmDMlsCqTn0l1AsYrZj/WAVsCYkZbDzEP3wO774NMFWFxJgAkZt64Jta1cKSUA9SZaSakZH48AOXq/ZzNcOABjhXDjpvLql/DKPFxdbaFeIcE8icxBB5XpNq1GUuoB6JrYIzWgOF7EcaeE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7oj+BaDf7wKbOrbiAAAAAElFTkSuQmCC',
- name: '备课',
- normalIcon:
- 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAAAXNSR0IArs4c6QAAAJxQTFRFAAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////kyDQZAAAADN0Uk5TAAIECQsMDxsjJygtMjU3P0hLTE9VWltdY2Z+f4WKjo+Rk5eZmq24vMTM3+Tp8PH2+Pr9lQIL0gAAAQBJREFUSMftln0TgUAQxgsRSeQlF0IKFVL3/b8bHSK6rtsxZsz0/Lc7+5trnr3bTRAqvUvW9AJp8ichmT5myDelLKMGuIQCNcOEuJTCF0oKcEkFzy+ckYSLioxALikyU4h4YLDcNYgbqdfkHHZPyFkP57UkQGwIJXXaPdCTQGdDmbpvQe1xixvqRfg8b3BCC9LICR+0vvV/3wVAOF6K/BDGQwhkAKBdnRs6TEUOI6wkE1lNLssH18S2w3uNRqv+jy4sGwI9QtBzBw0WwYSMMNCwBI1l2AKArRrYUvsHKV6c70HsKVTIo1vnUaETHTpSIYcOOVSohuxNrmxUq37OcnQBuDed1YUqBEkAAAAASUVORK5CYII=',
- isActive: !1,
- id: 4,
- path: '/prepare-lessons'
- },
- {
- activeIcon:
- 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAACUhJREFUaEPtmnuM1cUVxz/n3rsPQJbdAq5LQRYBF1hAliVQIlFCgCCikVZohfSBLSL+URMpDbWoaK1SQMGm5dmA4WErWKQNVSqi1raGLQ+JQJG3rxIQFBewFXf3TjN3f7M7O3d+v3u9wbQx/pLNfc3Mbz5zzvmeM/Nb4Qt2yReMhy+B/t8tmp2FlMpjL7dA6m8QQieUuswLp4DtwBuAfm8u8z4JKb/Qn/WryAXgBIqdCJsYwCamSV2uC5cZaI8aj2I+qO4tHNTuad7XA38BjlsweuIGxgbUM9ZwLrD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/wuAoSR9tdJHJBm0wcfHjTkkJ6e6tTyUZXn5bI8A8HZCMq8geW2Fd24DEBvvvTuEpGuIfWSgAD0B4PDIEifKESR/L/HOngBeT8K0S9Izy8B3HJCkslLZRJLORWV7ZymAeOO7EDqyqora0UJjiFTveq9Eli8leUgFGN869PK3oNNDcaqWe0dLwZJSNu1zzN4kvZ/SQOAylunQztGHx0n62qVSOlqsl/QkgMMia24lOaXCO9MBXBV984XyHiQ/zAZkRUlr7TpFkis0nvmeoQAM8imzxDs+ZvsoEZPTmSSnNQLjbx298JIUUyUnxo1Ietmly20BgJOiP82mHaZXtgwoeKnulaTD73KSP8YGSDKRHBz950zvkNwrkspqCueQTG8jSrGt4aEAyAenupfGns1DSZqR/7fGJF/XF/Vq/zWV5Ozou0+rT/mCLbLWNQUHDnu0qZQCCoP3x7X+wyR7AUjyHrghsuqBQH8mADjaExDtsUJtHMn0zqoSWCWgyFN1Hl6kgLyc4lcijlw+QlQV+meTnNrULZFCQ0DRUnAF009jnANyn8aULTmfPF0LGJRh5GI/LSgLGo3aZgGKgOU+XioNCsHrLhDe28AoJ9MZAPw+oc8hL2MSBuZ5mSS/Hbo6HNaK85M9sriMNeQAKXRa8lArHefohrKuj+pNrxpz+rPOgALKNbIVvX8BKm+RU9txS+kAAAAASUVORK5CYII=',
- isActive: !1,
- id: 8,
- path: '/notation'
- },
- {
- activeIcon:
- 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAACdxJREFUaEPtmg2MVNUVx39ndlh3l4VtWVy7SKUDi1oRqEoVoqBQA1ghBqgfjZFCQ1ONEWnIxtJQXbFaaqwWkLYmbRClVqLELVFBbKuAAgW0IuJHwXYVXBFRZMcFFHdOc2beW+7cfTM7gxiN8SWbeR/33Xf+93/O/5x77wpfskO+ZHj4CtAXndGvGIpk6CUtZTejUMYg9CFGL6CWGCcQo4UYzUBz+jfGOsp5lMGy57Ng++gZUhUeYwLC5Q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xrWTB2XVP/CNQqNBVR1X0JGGFOJ2pO6NIoFwqv3c5SViBTrZbbGIngGqsU33e3KFl7kH4ZHFl4h8BQnQ/tSBgmuWDOHpp4p/a3pgyPQ4fo1zc2zYTo6KYpEMDXiJClucPNnrwdMpL2KKEOyFLyhEaftma7GJLWLUSbsH3n/Pp6HCzT1WzfAzpMZEunxpGgp9e7DM0ItQOq7FYXl7JEIf3t9XifA9+6ydh1JPDcXmfhNCgb55/pkn2ERwvxaiuBzU/HQ+llDKUUsrZF7Tzfw/2oj4epKrFMjL0O5CAb17tIXrq7QhJH30FF35DCkmhUEiSdPvrHixaW4bMxirw63z5oNVzxbB3ypP/+hdQkdw4WB9R+AAAAABJRU5ErkJggg==',
- name: '资源',
- normalIcon:
- 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAAAXNSR0IArs4c6QAAAFRQTFRFAAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////MF88lgAAABt0Uk5TAAgKExofJjI/QEFMTWFlaYKip6irsLjo7PX2C7BfrQAAAM1JREFUSMftltsOwiAMQOu8oJbLZN75//80JKKwjg1Qoyb0rSc7GevabgB/EAx7wQhfz3qONiQ04ZdleB8zEIzwQyDhkISE76YlASACcJpTqX0+c2tzBaB83i8E3o8T5E7yOCz2x1Wu1JyNuTaZ0tbmm0wpuK5KL0tTbeQ4jjWsBJCR7o9LHICPSYlD+ODRce8s7yJrwC0QobyQ3C0WLn0ukH1p7+Ufr6QQRSUvernlbVTUsHXcq/SBvUc+1CldjnH+3r2nx3jyD1XAfztuUOl9K6RVlMIAAAAASUVORK5CYII=',
- isActive: !1,
- id: 6,
- path: '/natural-resources'
- },
- {
- activeIcon:
- 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAABlRJREFUaEPdmutrXFUUxddNFaRG/SAikYqiIGqgoBSrgqhR0CDiA5+0itgkok19VEptDWkxlRKrUYt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SUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAAAYtJREFUaEPtmsFRwzAQRf9vgVsYqIEWuFICFEAJFEEJFEBK4JoWUgMZcqMFMWLsTHBkR/JfD7KzPmb0M/t2V7sr2cTCHi6MB+ZAIYQbAK8A7gGsehy2B7AB8EJyZ+lUU6AGZgvgKtPIbwB3llDWQO8AHjNh2mVrkk+Fmt7l1kBfA2nWZ8Se5HWtQOHYMJJJh4UQstaNgbSOUJahDlQQKo/QkLNyUyl3XUFgDks9Qh6hhAcuKuXUWbCqPWQxC9YGJM+CtQHJs2BtQPLo5EBT9qHccj60ziPkESqYFCZJOaVTqwap+ui7P3tI7dSqQao+BSR1atUgVZ8Ckjq1apCqTwFJnVo1SNU7UFuB+zypeljVe4Q8QoVXwZ5yTcoc36F3JwUv27+VpUktNWVUvVc5r3IVVDl1OP1X/RTHB/X4IemnOODFbxRGv9ZXD5gnQPEH5Qheg970GmvMGzdrjQNZe9T6/7qz3AOANwBxc8/hiR8+PZP8aI3tAn3OCKZl2JG8vRigZaXcHDbNORt/AMTgwFOlSWKtAAAAAElFTkSuQmCC',
- isActive: !1,
- id: 7,
- path: '/data-module'
- }
- ]),
- r = e => {
- n.forEach(n => {
- (n.isActive = !1),
- n.id == e.id &&
- ((n.isActive = !0), e.path && t.push(e.path));
- });
- };
- f(t => {
- a(t.path);
- });
- const a = t => {
- n.forEach(e => {
- (e.isActive = !1),
- (e.path === t || e.lightList?.includes(t)) &&
- (e.isActive = !0);
- });
- };
- return (
- d(() => {
- a(e.path);
- }),
- () =>
- i(s, null, [
- i('div', { class: q.silder }, [
- i('div', { class: q.logoWrap }, [
- i(
- o,
- { class: q.logo, src: K, previewDisabled: !0 },
- null
- )
- ]),
- i('div', { class: q.sliderList }, [
- n.map(t => i(Z, { onCheckNavBar: r, item: t }, null))
- ])
- ])
- ])
- );
- }
- }),
- $ = n({
- name: 'imGroup',
- setup() {
- const t = p();
- r(!1);
- const e = r(),
- n = r(!1),
- a = `${
- /(localhost|192)/.test(location.host)
- ? 'https://test.lexiaoya.cn'
- : /online.lexiaoya.cn/.test(location.href)
- ? 'https://kt.colexiu.com'
- : location.origin
- }/classroom-im/?userID=${
- t.getUserInfo.imUserId
- }&Authorization=${t.getToken}&t=${+new Date()}`;
- return () =>
- i('div', { class: q.imGroupContainer }, [
- i(
- g,
- { show: !n.value },
- {
- default: () => [
- i(
- 'iframe',
- {
- ref: e,
- onLoad: () => {
- n.value = !0;
- },
- class: [q.container],
- frameborder: '0',
- src: a
- },
- null
- )
- ]
- }
- )
- ]);
- }
- }),
- tt = '_suggestOption_j4g0v_1',
- et = '_suggestSelect_j4g0v_10',
- nt = '_inBack_j4g0v_69',
- rt = '_isAni_j4g0v_78',
- at = '_inBackBottom_j4g0v_81',
- it = '_inFront_j4g0v_90',
- ot = '_submitBtn_j4g0v_97',
- st = '_updatePassword_j4g0v_108',
- lt = '_formWrap_j4g0v_118',
- ct = '_sealing_j4g0v_121',
- ut = '_formTitle_j4g0v_145',
- ft = '_bgLine_j4g0v_149',
- dt = '_formWrapInfo_j4g0v_159',
- pt = '_closeBtn_j4g0v_162',
- gt = '_countInput_j4g0v_171',
- mt = '_addInput_j4g0v_196',
- vt = '_messageWrap_j4g0v_228',
- ht = '' + new URL('bg-line-7cb142ce.png', e.meta.url).href,
- At = '' + new URL('inFront-5893f599.png', e.meta.url).href,
- bt = '' + new URL('submitBtn-eeef99db.png', e.meta.url).href,
- wt = '' + new URL('sealing-3ca78c97.png', e.meta.url).href,
- kt = '' + new URL('boxBg-7cf5b952.png', e.meta.url).href,
- yt = n({
- name: 'train-update',
- emits: ['close', 'submit'],
- setup(t, { emit: e }) {
- const n = v(),
- a = p(),
- l = u({
- suggestionTypeId: null,
- clientType: 'TEACHER',
- content: '',
- attachmentUrls: '',
- type: 'APP',
- mobileNo: a.getUserInfo.phone
- }),
- c = u([]),
- f = r(!1),
- g = r([]),
- I = 'https://gyt.ks3-cn-beijing.ksyuncs.com/',
- E = r(),
- C = r([]),
- B = r(),
- x = r(!1);
- r();
- const S = r(''),
- D = r(''),
- R = async () => {
- B.value?.validate(async t => {
- if (t) return;
- const n = C.value
- .map(t => {
- console.log(t, 'item');
- const e = t.name,
- n = `${t.id + e}`;
- return I + n;
- })
- .join(',');
- try {
- await ((r = { ...l, attachmentUrls: n }),
- m.post('/edu-app/sysSuggestion/save', { data: r })),
- (f.value = !0),
- setTimeout(() => {
- e('close');
- }, 3e3);
- } catch (a) {
- console.log(a);
- }
- var r;
- console.log('onSubmit');
- });
- },
- Q = async () => {
- try {
- const e = await ((t = { rows: 9999, page: 1 }),
- m.post('/edu-app/sysSuggestionType/page', { data: t }));
- g.value = e.data.rows;
- } catch (e) {
- console.log(e);
- }
- var t;
- },
- _ = async () => {
- try {
- const { data: e } = await ((t = {
- page: 1,
- rows: 999,
- group: 'OTHER'
- }),
- m.post('/edu-app/sysParamConfig/page', { data: t })),
- n = e.rows || [];
- (S.value = n.find(
- t => 'customer_service_email' == t.paramName
- ).paramValue),
- (D.value = n.find(
- t => 'customer_service_phone' == t.paramName
- ).paramValue),
- console.log(S.value, D.value);
- } catch (e) {
- console.log('请求报错'), console.log(e);
- }
- var t;
- };
- return (
- d(() => {
- Q(), _();
- }),
- () =>
- i('div', { class: tt }, [
- i('div', { class: [st, f.value ? rt : ''] }, [
- i('div', { class: [lt, f.value ? rt : ''] }, [
- i(
- o,
- {
- class: pt,
- src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAACw5JREFUeF7tnX2MVFcZxp93BhYoSCiFwu4sLehSdbWg1rSVtrE1kQqlWFu2lpimKkFtIgi7tEYt/9TY2DizS/my1lQixpZsG1GKbdCWhmoxxkSoRCqFNE33Q6HloxA+lmXvY84ws+zHzN7vc+/dOfPP7mbPed/3PL8555577jnvleocL4BMw3w8KSCQ8wBOUXBK/RTgfwAOQHAAFg4A2NO5St73ZDyASlKT4xmSYwKw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sA3J3E2ysD2MlM5dImg/tBLAVY77Ba5MUMYA8IVII3AEsJ3A1yvAcT2qoYwD6krlvLUWfOYx6Ar1KwAOQ4H+ZCqWoABySrejkJBXewB/dAMJfkxIBM+zJjAPuSr3Tlhlamd3fgelqYR+R7+HUgI9E6EqchaBprk3VrOflsN26F4CbLgtr2O1vXRkEDOIKvxqzNHHv0KG6AhZsIfIbALAAzwujlBnAEgEu5rN/AcR+cwyctYpYIriVQJ8B0ENMJjvYapgHsVTlN9dSq2oyNmNJ9HjPYg+kUTAGhcplMErn4s/C3Sn0xikCVCKqKv/8fYSl83YHzUrUAAAAASUVORK5CYII=',
- previewDisabled: !0,
- onClick: () => e('close')
- },
- null
- ),
- i(o, { class: ft, src: ht, previewDisabled: !0 }, null),
- i('h2', { class: ut }, [h('意见反馈')]),
- i('div', { class: dt }, [
- i(
- A,
- {
- labelAlign: 'right',
- labelPlacement: 'left',
- labelWidth: 'auto',
- ref: B,
- model: l,
- requireMarkPlacement: 'left'
- },
- {
- default: () => [
- i(
- b,
- {
- rule: [
- {
- required: !0,
- message: '请选择反馈类型'
- }
- ],
- path: 'suggestionTypeId'
- },
- {
- default: () => [
- i(
- N,
- w(
- {
- class: et,
- 'value-field': 'id',
- 'label-field': 'name',
- style: { width: '227px!important' }
- },
- {
- options: g.value,
- placeholder: '反馈类型(必选)',
- clearable: !0,
- inline: !0
- },
- {
- value: l.suggestionTypeId,
- 'onUpdate:value': t =>
- (l.suggestionTypeId = t)
- }
- ),
- null
- )
- ]
- }
- ),
- i(
- b,
- {
- path: 'content',
- rule: [
- {
- required: !0,
- message: '请输入反馈内容'
- }
- ]
- },
- {
- default: () => [
- i(
- k,
- {
- class: gt,
- type: 'textarea',
- rows: 5,
- placeholder: '请输入反馈内容',
- maxlength: 200,
- resizable: !1,
- showCount: !0,
- value: l.content,
- 'onUpdate:value': t => (l.content = t)
- },
- null
- )
- ]
- }
- ),
- i(b, null, {
- default: () => [
- i(
- y,
- {
- 'list-type': 'image-card',
- accept: '.jpg,jpeg,.png',
- fileList: C.value,
- 'onUpdate:fileList': t => (C.value = t),
- ref: E,
- multiple: !0,
- max: 5,
- data: t => {
- const e = c.find(
- e => e.id == t.file.id
- ),
- {
- id: n,
- tempFiileBuffer: r,
- ...a
- } = e;
- return { ...a };
- },
- showPreviewButton: !0,
- action: I,
- onBeforeUpload: t =>
- (async t => {
- console.log(t, 'onBeforeUpload');
- const e = t.file;
- let r = !0;
- if (
- ((r =
- e.file.size / 1024 / 1024 < 2),
- !r)
- )
- return (
- n.error('文件大小不能超过2M'),
- !1
- );
- if (!r) return r;
- try {
- x.value = !0;
- const t = e.file.name,
- n = `${e.id + t}`,
- r = {
- filename: n,
- bucketName: 'gyt',
- postData: {
- filename: n,
- acl: 'public-read',
- key: n,
- unknowValueField: []
- }
- },
- { data: a } = await U(r);
- c.push({
- id: e.id,
- tempFiileBuffer: e.file,
- policy: a.policy,
- signature: a.signature,
- acl: 'public-read',
- key: n,
- KSSAccessKeyId:
- a.kssAccessKeyId,
- name: n
- });
- } catch {
- return (x.value = !1), !1;
- }
- return !0;
- })(t),
- onRemove: t =>
- (async t => {
- console.log(t), (x.value = !1);
- })(t),
- onFinish: t =>
- (t => {
- t.file.name, t.file.id;
- })(t)
- },
- {
- default: () => [
- i('div', { class: mt }, [
- i(
- o,
- {
- previewDisabled: !0,
- src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAABGCAYAAABxLuKEAAAAAXNSR0IArs4c6QAACbpJREFUeF7tm39wFPUVwN/bzSaXEglMHA/5UdsRW9oqlNEKgre7l6N1AMkMba/+aK2OnUIVFCVip7TjpGM7TCkRFCsz1BlamFrb2KmAGMhwye53nUp/UG1pLSoUtBC8BskwCCG5232dL3OX7m32bvcud5eL5vtn9n3f973Pve93377vC8LYcCWAY1zcCYyByRIZY2A+SmBmbqdxp3tgHRAsJQQJAXYF6mDNv5fjWb9Hx4cyYia30m4iujUTArLuZlARkfzA+dCBmfoE3Wha9Ec350UB1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R/dTpACIeEAThYU3TDrg5p6pqnWVZjwDAd4ko4JB5p6amZtb+/ft99+pWzBljdyQUCvEuCNdvGkR8HRHbeaGKiM4j4iQimkNEC9MFKLsuXsySJGleLBb7ez7RUpFgotFobTwe541G3NnhjHOiKH5N07S9hSipqK2UdiBVdFpP5N7I4+UoIh4TBKHJb/rvpq8iwaQNlWV5HhHxr+75XjBSz88h4vpAILCxkNd8xR6+2ZwPh8PzTdNcCgCLiYgXs+z9wb2I+AoA7Kytrf39vn37zviEmFOsoiPGzXLeQb5o0aLL+/r6Lt1Eapp2sRggnDpGHZhSQBh1Z0y5IJQMDM84k8lkRvKFiIsZYy+PpHPDWTsUCn0FAF6w66iurp7llRNllB1SxefjDkPWGoaxbjjGjeRcWZYfJ6If2G2oq6u7or29vSeXXRlgotGoGI/HeZ9dQ3oSIh4JBoMz29ra+AfcqBpNTU2X9fb28hLoYD8hIp5kjE31cmRIq5ksy78gorsdE3ekevBK8ubwMrKQ50uWLPnY2bNnuS9R+3xEfMZPU+UQMKmOAt6XIjgUHkbEbUTEv3MqNnp4I5JpmrMR8V4icrbbJiRJ+kxnZ+dRL9iufb6yLG8oNI33WnAknwuC8Liu6/xO3HO4gkmdNbweMnjR5amp8gVeiEQit/GuKz+mZm2ZT8FpJaIHnNvKj+JKkeHFcwDY0NjYuNYvFG6753+fRCKRmQMDA2sQ8VYiKvnVaBGB8v+j2i1J0vpYLPZGvno9waQV8r4Xy7KmCYIQJKJS/nNovj5kyPNrWEEQTjU0NJzwe8XitqBvMMOydhROHgOT5UcbAzMGJr/9PBYxYxEzFjH5Ecgi/T+KhnjGMNyfXQAAAABJRU5ErkJggg=='
- },
- null
- ),
- i('p', null, [h(' 点击上传图片')]),
- i('p', null, [h('(最多五张)')])
- ])
- ]
- }
- )
- ]
- })
- ]
- }
- )
- ])
- ]),
- i('div', { class: [nt, f.value ? rt : ''] }, null),
- i(o, { src: kt, class: at, previewDisabled: !0 }, null),
- i(o, { src: At, class: it, previewDisabled: !0 }, null),
- i(
- o,
- {
- src: wt,
- class: [ct, f.value ? rt : ''],
- previewDisabled: !0
- },
- null
- ),
- f.value
- ? null
- : i(s, null, [
- i(
- o,
- {
- src: bt,
- onClick: () => {
- R();
- },
- class: ot,
- previewDisabled: !0
- },
- null
- ),
- i('div', { class: vt }, [
- D.value
- ? i('p', null, [h('客服电话:'), D.value])
- : null,
- S.value
- ? i('p', null, [h('邮箱:'), S.value])
- : null
- ])
- ])
- ])
- ])
- );
- }
- }),
- It = n({
- name: 'layoutTop',
- setup() {
- const t = l(),
- e = r(0),
- n = r(!1),
- a = r(!1),
- c = r(!0),
- u = r(!1),
- f = p(),
- g = r(!1),
- { info: m } = I(f),
- v = document.querySelector('body');
- v && (v.className = 'myBody body'),
- d(() => {
- window.addEventListener('message', A),
- (a.value = !0),
- E(() => {
- setTimeout(() => {
- a.value = !1;
- }, 50),
- setTimeout(() => {
- (c.value = !1), v && (v.className = 'myBody');
- }, 1e3);
- });
- });
- const A = t => {
- 'onImClose' === t.data.api
- ? (a.value = !1)
- : 'getNoReadMessageCount' === t.data.api &&
- (console.log(t, 'onMessage'),
- (e.value = t.data.count || 0));
- };
- return (
- C(() => {
- window.removeEventListener('message', A);
- }),
- () =>
- i(s, null, [
- i('div', { class: q.layoutTop }, [
- i('div', { class: q.layoutLeft }, [
- i(
- o,
- {
- src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAADlZJREFUeF7tWm2MVNUZfs7M7JewgkWLYnSBFUWwxlBFayWE+FmoJRKLNlat1f4oKg4QkyZNmibaaqoWF4oSU0tqRFNRSa0abdpaq7FardSK+FEoVYHdZT9gd77nzsxpnnPeM3P37p1lvYSsBiaZ3J2Ze2fnfc7zPu/zvucqHOYPdZjHjyMAHGHAYY7AkRQ4zAlwRAQ/Uwr8dKtubCngqayHORWFo5SGjisYFGMKWvFvBcQg78XMa+1e8zwlL8yB59przLV8DxpojqNrfAs2Lml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vt4ZIq5sigzgkNRMh7XJf1MqS9YNOgPFI/ccFk4Dzp8CfPU3dqo0jAFh+V5vVhBTN+Mm9UBY8z5qBvDiN7v0Ch3Dnc1xtEBDVe/3dff++u8BdgD5bp6u3hHq7iuWewbN4rrb6WMERuP13cAtzwHdLvjR5LuLxm6F0bn/Gw24AzepP9SbXHwmANyXaK1jb+zGFP+XNjdDZ3PD/w3fyrICAGjhuDxn/+Z7Ozw0ZnOI85eC+tIAndYoPbYNvfVHLb5P6txpYs44CQUsUCwsIz4iAXCgL/0ifX4EgC/Sah2K33qEAYcC1S/Sdx72DPg/VZNim5GTh+4AAAAASUVORK5CYII=',
- class: q.schoolIcon,
- previewDisabled: !0
- },
- null
- ),
- i('p', null, [
- m.value?.schoolInfos[0]?.name || '',
- '22:52'
- ])
- ]),
- i('div', { class: q.layoutRight }, [
- i(B, null, {
- trigger: () =>
- i(
- 'div',
- {
- class: q.optons,
- onClick: () => (u.value = !0)
- },
- [
- i(
- o,
- {
- src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABz9JREFUeF7lW2tMVEcU/mYXFmHBhSZCaKqiUh/FVgukaGMUUbQqqa8YBYFiEYnVVNNYsFqbKKAF3xa1oVGJr1IVaw20wUdFeagBKfhIrdHaagMCKrtSFlDYaWZxb1mWZe+9u7i7MAnhx55zZr7vzpw5M3MOgYCmVFIPQprCNKBTAQwkFK9TwBugzgLMWFCUNBKgihJUAvhbApJHaZ8cd3dSx7cTwkewrr4xmLRq1oKQYEqpAx8da8kQQlpAab5UKkl2c3O+aGocXRJQX9/s16JpSQXFDFOGbPJ3glwHiUOim5vTLWPjM0qAStUYSUG/o5T2sUlwPAdFCGkiIHEKhfPhzlQMCKCUSlSqxo0UNJFnH3YhRkBSFQrnNYQQTfsBGxCgVKpTKWiCXaASOEhGgru7y2qjBLBpr6GaQwLt2pW4hEii2i8HbgYwh9eqaS219zVv6mswnyCVSAN1j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Jgt1PslopPsykCxIBnIJuamjBlSggqK1mqELTnhry8c3zw204gZA74JfGLUVxUyAGeMSMMO3em2w8BlgQvk8lw+nQufH3ftA8CLAmeXctv374L06fzz+myqg+wNnirHoZsAbzVCGBvCuxlp/2VmS7C0wU5nS1g5u07Ojwx0769bassgczMA0hOXs+Nw1rgrTYD2r8tSiQSZGUdh8kvvyQWxcVFHGnmfnmz7gMCAkZDpVJygzl/Ph8DB+q/FnW1B61YsRy5uTlaEXaxUV5+06h4d0x7s5fAnNkf4vqN65wddiHR2cOFMVRLP4nH2TN52p9ZYkNJSVmnot0N/uUSEP48vmvXDrA/XWPJS1nfH8OIt/x4BR+LFy9Cfn5bUhpLeioqumqg9yrAA6RRVIIEe/ObNCkYLCtM1xwdHREdHYP3gsbAq0OGiEzmqI3PdfkD0R9FcqHrG/37I/9CgR4BrwY8yxFkCRIiU2Q6enJTn37I4CE4djwbCoU7wsPnoaSkpM0HyOWYEDwRz58/x4sXL7T/q6oqwTJBdM1SDs9gjCxFRmySFDPGtjJGBN+2fkMyFkZEov0SMKXbbeC1DoAcMStNjtnIPnEMaZvT8OTJY1NYkJGxDyEhk7Q6iatNJ6R3K3gA2jQ5SyRKsszQs+fOoKigAJVVlQaZouyEFho6BXFx8RxJGRnf4sjRw3hcWwvmP2QyJzg6OkDm5ASZgyN8fHywJH4pAgICTRIrRoBLlGTKlkqVFTMQa+lwqbJsAL0+WVpLgqohx26Lo4ROo47p8ky/1xdMMBJ6dcmMbhYpleqve1rFmA6byaIpJviybG5TT6scIyBpCoXzFybL5nRs9drCyfYOtc0xtqTZazEVIfhZKnFIEFU6254IeyyeplJJCiuKMrVD8qoe/99B9rzy+f8ACU1JpSzL2oEAAAAASUVORK5CYII=',
- previewDisabled: !0
- },
- null
- )
- ]
- ),
- default: '意见反馈'
- }),
- i('div', { onClick: () => (a.value = !0) }, [
- i(
- x,
- w(
- {
- value: e.value,
- max: 99,
- class: [
- e.value > 0 ? '' : q.messageBadgeHide,
- q.messageBadge,
- e.value > 0 ? '' : q.messageBadgeNo
- ]
- },
- { id: 'home-2' },
- { color: '#FF1036' }
- ),
- {
- default: () => [
- i(
- o,
- {
- class: [
- q.messageIcon,
- e.value > 0 ? q.animation : ''
- ],
- 'preview-disabled': !0,
- src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAB4VJREFUeF7tW3lQk0cU/23yhSsooEKB1qLi4FlHDrU6HuigaKS1Wq1VVMaOVGyt9T7rVVsFrVY7dbzGYUShx9R6QqVqharYaoKtijcqteOBWolyBEjYzn45OBRJvnwJcnx/Jvuu3+6+t/v2PQILPnpuige0NAIU4aDUDyC+AHwA6mwBGxGHkiIAdwF6B4TkgCAVHDlIumx6bK4QYs5AejYmFGVYBIpQgHLm0NTeGKIFQRoI+YIEbUqvSY8XAkD/+rgTtNo4AENrYvSS/p8MjptHum7Mqk6/agGgqinjQMu2AXB6SY0zVy0NiCSaBG/a9TyCZwCgdJkEqrsrAcwzV0IdGReHYJ+FhCwrq6jvswCoYuJA6dw6YpSlasaRkC3zqwXAsOx3Wsq1To0nkvEVt4NpBRgcnrIe7Pma5kMDjgsxOsZyAJQxyQBV1ERdT/5PJiFbIpgtPAB8nNfRY/Y0TlOsQ9LhHBACjAnzg5Oj1J7iASnpTwI3p+kBUMUcBqVh9tRgwvJTSDl1lxep6OmDhKU97SkeIOQICd48kPDH2xKaa+8Tnk/EXpRq9RFJxklw9+A79gUARAsH4kVoZsx4lNEEO0tHi8E/VxL58NAIe6sASMgEQlUxu0BppL2kq/NL8WfWI4xdmlFJZNLyXujRqTncXGX2UoVtg0RClZOPA+htS6lsqe9IvoEfjtxG1k01XJykyMsvrSTS3VWGQo0OnVq7YXRYS0QNbcNvDRt/JwhVxmQDtI2tBCWl5uDz+AtgXj+/SGuWGFdnjo8KSyZ2xthwP7NohA0iNxgAhba4z2t1ZZi08jTSMnPNNryqEQyI0CAvbJnXDY4OtgiTpIhtASo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APKlvndxMMumAA9qb/ixkbMk0ZIBdHKTjbv+TwM8+MLzRsuyYuHNZNC8Lw0NcsXVD6VST0XSAl4w4+WqMU/OghSNvnELGIs2FGECJ6vyqIpWAAHuYVo/37yYKEik3E3gu8BeYeBAPAjLh86wnGLT8F5qHLk9dim1cNPwoUl5bh5JYwtPMTnhewCgA7mWpTMY0ACHWCQqaF5fbSzuaaQlhVHiyKKHr6Qu4sLKYL0clmz+NVlWGVIf4jD4A9eRtfjqqO0VHKnyrP7RwCX097VODzz+O2LZAwGjltnQrfH/nH9NhZ3WxxEoIoRWvETe0qZEItpOELJGxfIsO02rj7GpZvv1AjAGzs7Mj2mD9enJefGhA5YdciqfDpx6C6XLmZgz14GrcEJ5VgSE8fxH/Ww8KZFDicL5KqpTI5gSqLS8aXydVSoaS4lgjhZiiUZKS1USorRGVRaYylsjwAtVAsLaoxQphVLJbmQVBOPliHm6MshaByuTwPgL5DrOE2TOh9Ad8p1jBbZoxriConx9bDjjGjeS9umuJXAWuby7y3qt51jhGyGkHeC2psmzOthIbaOFnRneodo2513W2mIingpHMFtc5WAqIuNk9L8CVriqopPlpUxFcf2+f/B/FhjfJc8533AAAAAElFTkSuQmCC'
- },
- null
- )
- ]
- }
- )
- ]),
- i('div', { class: q.line }, null),
- i(
- S,
- {
- 'show-arrow': !1,
- trigger: 'click',
- 'onUpdate:show': t => {
- n.value = t;
- },
- class: q.popoverHeader,
- placement: 'bottom-end',
- raw: !0
- },
- {
- default: () => [
- i('div', { class: q.propWrap }, [
- i('div', { class: q.teacherInfo }, [
- i(
- o,
- {
- class: q.teacherIcon,
- src: m.value.avatar ? m.value.avatar : Y,
- previewDisabled: !0
- },
- null
- ),
- i(
- B,
- { class: q.nameTool },
- {
- trigger: () =>
- i('p', { class: q.teacherName }, [
- m.value.nickname
- ]),
- default: () => m.value.nickname
- }
- )
- ]),
- i('div', { class: q.propWrapList }, [
- i(
- 'div',
- {
- class: q.propWrapItem,
- onClick: () => {
- t.push({
- path: '/setting',
- query: { activeTab: 'person' }
- });
- }
- },
- [
- ' ',
- i(
- o,
- {
- class: q.smallIcon,
- src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAuCAYAAABTTPsKAAAAAXNSR0IArs4c6QAABRNJREFUaEPdmV+I1FUUx8+588scmJESVkFRC0IN6yHu/e2AbjVZCWbQ31UD6ynLsiiDrB566UUryCItqZ5K6H8ZVAv+nWp9mL3nEkSRfx62FANdsHAGtHXmnrjb/Ja74+z+fr91XZvO0zD33HM+8/2de3/n3kFoM8M244UJAe7s7Jxvrb0bAG4HgLnMPMsJgYh/AMBRANgthNjZ19d3+EIFuiDgQqEga7XaKwCwNCHIviAINpbLZZPQ/zy3cQEXi8WgWq1uYeb1TsiUyRkRt+VyuQ2lUqmWcm7qZNDV1XXlmTNnPgeAW9Ima/Lfn81m7+vt7f0zTZxU6jhlK5XKrlawiLgXET9m5u9zudxxB1GtVmcj4k3MvIqZb20Btj+fzy9Lo3QqYKXU1kYZ+LmPCCHWaq2/G0upMAxvtta+BwDX+H6IuJWInkyqcmLgxgLTTTX7QzabvSvpY22U01cAcKMHyEEQhEkXYmJgKeXept3gSDabLSSFjQAb0H1NSu8zxrQqmfHtEm6frdfrh/zZQohiXBmM9pgb5VHyxzOZzIIk+3QihZVSG5n55SiBW2BEdFvSumvlp5Ta4y9ERHyOiNyePqYlBd7NzMOAQohHtNbvxgWPWYRrrbXveCLsISL3ppwQ4EPMPN8LvpCIRpRIXKLmcaXUAmY+6MU8TEQL4uIkUlhKWQGAXBQsn8/nS6VSNS74WOPFYjFXqVRc3Miqxph8XMz/J7BSqr1KQinVdouuvba1tntxuJXbVq9mB9x2zY+DVkq9ycxPNO2V/8320kG2XQPvoNvqiBSVglKqk5nfBwDXXyR6W3plxABwGBEfIiLXF6eyVMmUUkVmfgEAlqXKMrrzLkTcREQjeuOxYicCLhQK0+r1+jZmXjNBoCPCIOKOTCazvlwun46LHwsspewCgA8A4KpRgp0EgD1CCHe7c7Ber5+cPn36Ced76tSpmZlMZoa1dqG11vW6rqeeMUqc3wDgQWNM77gVVko94GCZOdMcxJ06AGCz1tod711dxhozYxiG7uz2fKtjPyLWHTQRfThasFEVVkqtBoAdzbCI+CMiPqq1difocZtbuACwnZlv8IM0oNcQ0UetgrcEDsPwXmb+pAnWIuKrzPyiMebcuEm9id3d3VP6+/tfYuZnAUBEQw4aEVdqrb8478k2f7F48eJ5g4ODPzHzNG/snBBidasAEwHuBLLWOkUv86BPM/P1xhh3+zlsIxRu1Ng+Zi56E2uIuOpiwUZ5Gk/VXXUFXu6S1nqpv0ZGAIdh+JS19vUm1R4zxmyfCCXjYkgp1wHA276fEOJprfUbwz8i+rB8+fLLBwYGfmfmmd6Eb4wxd8YlmshxKeXXALDCU/lER0fHvJ6enr/dd8MKSykfBgD/ruGvIAgWlsvloT11sqxQKMys1Wru+H+Fl3OtMcZdJP4L7GpXKfULAFzrOW02xrjX8KSblHKT26u9xL8S0SJXy0PAjeacPIfBqVOnXn3gwAH3H8Wk25IlS2adPXu2HwCmRMmDIFDuhnMIWCm1gZlf8+rmMyLqnnRSL6FS6lNmvt9jeoaItgwBSym/BAD3L9CQCSHWa63fupTAYRg+bq3d5jHsNMbcEwG7BqbDA75Oa+1q+pJZGIaLrLU/ewADxpgZUUkcZeY5jcHjRDQnaUNzsX5RYyM4BgCzXQ5EPEZEcyOFVyBitGGvI6JvLxZImrhKqTtcg9SYM8QV2w+nSTAZvm0H/A9sj59NR4d0TwAAAABJRU5ErkJggg==',
- previewDisabled: !0
- },
- null
- ),
- i('p', { class: q.smallTitle }, [
- h('个人信息')
- ])
- ]
- ),
- m.value.isSuperAdmin
- ? i(
- 'div',
- {
- class: q.propWrapItem,
- onClick: () => {
- t.push({
- path: '/setting',
- query: { activeTab: 'school' }
- });
- }
- },
- [
- ' ',
- i(
- o,
- {
- class: q.smallIcon,
- src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAuCAYAAABTTPsKAAAAAXNSR0IAr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eV0p9nLtKCCGyNE1/bjQaWzfgvaC5FrAsS0spP0PEp4noIl+Rcg0J13Vf4QqKiP7iMnMf4BMAsG4YxmnP89Zy93Bf1m51LdH3cN/DG62qw+785Cpr3SSL3eb0ZY09Mz09LWZnZ99GxAe01g9zt7FSqdSFEOezLFs/iIcB4MUoiu7ZCIkGIr61i727kiR5mTun5XK5LqU8T0SXa7Xa54h4M1lt3R6q1epFIppIkiRptVrczEYppTYMIz0gLF/bRRzHBbZjmmZrc/MORT+2Wi2uV9AwDN47419E/FAp9eZ/gSkMQ+DewFEZfH80TZPrkktKqYd2ALuu+wQRfbNRJxwV6psdF0S81/d9bpfdRn97HZWwaIvzowq2G1dXPYaj9FLHDvhfSfj+a3KiLJcAAAAASUVORK5CYII=',
- previewDisabled: !0
- },
- null
- ),
- i('p', { class: q.smallTitle }, [
- h('学校信息')
- ])
- ]
- )
- : null,
- i(
- 'div',
- {
- class: q.propWrapItem,
- onClick: () => {
- g.value = !0;
- }
- },
- [
- ' ',
- i(
- o,
- {
- class: q.smallIcon,
- 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==',
- previewDisabled: !0
- },
- null
- ),
- i('p', { class: q.smallTitle }, [
- h('修改密码')
- ])
- ]
- )
- ]),
- i(
- 'div',
- {
- class: q.logoutInfo,
- onClick: () => {
- f.logout(), t.replace('/login');
- }
- },
- [
- i('div', { class: q.propWrapItem }, [
- i(
- o,
- {
- class: q.smallIcon,
- src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAuCAYAAABTTPsKAAAAAXNSR0IArs4c6QAABf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UqpOTXaL0HEdgd4tpTy03IanhSGodt4rNNab6gloP0Ooijq75MZYytd/SXx43meLWvrHQ1PzuVyh0sCe553MwD84TjeprV+Okmgwdrjed42AHjK8XeL1vrPksB2dBFC/IOIw+INWmvNBwsmiR/P82yHOCWW1Hkp5XXuKHbRScc5/wQRC7qjlI6VUp5IEmyge4QQY4wxx51vaI9Saq7rtxTwckR8w9m0Umu9ZaAwSew9z7MtZWFOJIQ8qZQqVIz+rBc7EkLcZozpzv9HCDmRTqfHl2uok4Ak2WMHht7e3qOIOCbej5TS0VLKkxUzbP/knO9GxEJrRwh5TilVaIiSANS6h3O+GhFfceTQoZSaX+ynZD9s560oig4jIosNTsezlnts18pUdr/v++Pj2bF/KieERIyxSblc7kgi4DjL2xHRXpr0L0LID+l0emo2mz01aKQA0NLScmNvb+9XiHi3E6tdKfVEqThlZ7pMJjMyDEM7Eo12HGXT6fSCwYKOYT9CxBYHrjuVSk0pN+hWG/O5MWY/Il7rZtqe70EQDEgeVga2bynK7DlKqW127FBaciW5SLH3ve8XWdubmo3pdHprrdUjrgYrENF2ge5NkpXdw9Xuk6sCx3peBADtbqZjXZ9AxM2U0o+qHS7xobCAELLKKV357+McANhGq+rldyJg69X3fR5F0W5X00VZt0dqDgB+JYTYOg6IaPU/yl702IG6zFvuZozNryQD1y4xsDWyH2IURRsB4HGn5NVVNGzpAoCdjLG1lW6SEpe1ShRxnd4U313U9NA28YSQTsbYmlJ1ttrT1xrsAn/2GI9PxAcBYKbT5V2wjxBi78k+B4CPCSEdxcdtNci6JVHJsW1NOeeNqVRqtDGmv3ZTSrvDMOxWSvWUuq2vBbRQVusxupw2A5LE5QC/CjzUWf8PyxXKTdCDFSYAAAAASUVORK5CYII=',
- previewDisabled: !0
- },
- null
- ),
- i('p', { class: q.smallTitle }, [
- h('退出登录')
- ])
- ])
- ]
- )
- ])
- ],
- trigger: () =>
- i('div', { class: q.mesgWrap }, [
- i(
- o,
- {
- 'preview-disabled': !0,
- class: q.teacherIcon,
- src: m.value.avatar ? m.value.avatar : Y
- },
- null
- ),
- i(
- D,
- {
- class: n.value ? q.rotueLeft : q.rotueRight
- },
- {
- default: () => [
- i(
- 'svg',
- {
- xmlns: 'http://www.w3.org/2000/svg',
- viewBox: '0 0 24 24'
- },
- [
- i(
- 'path',
- {
- 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',
- fill: 'currentColor'
- },
- null
- )
- ]
- )
- ]
- }
- )
- ])
- }
- )
- ]),
- i(
- R,
- {
- class: q.changePwdModal,
- show: g.value,
- 'onUpdate:show': t => (g.value = t),
- preset: 'dialog',
- showIcon: !1,
- title: '修改密码'
- },
- {
- default: () => [
- i(
- G,
- {
- phone: m.value.phone,
- onClose: () => {
- g.value = !1;
- }
- },
- null
- )
- ]
- }
- ),
- i(
- R,
- w(
- {
- show: a.value,
- 'onUpdate:show': t => (a.value = t),
- showIcon: !1,
- class: c.value ? q.hideModal : ''
- },
- { id: 'imGroupDiv' },
- { displayDirective: 'show' }
- ),
- { default: () => [i($, null, null)] }
- ),
- i(
- R,
- {
- class: ['modalTitle', 'background', q.suggestWrap],
- show: u.value,
- 'onUpdate:show': t => (u.value = t),
- preset: 'card',
- showIcon: !1
- },
- {
- default: () => [
- i(yt, { onClose: () => (u.value = !1) }, null)
- ]
- }
- )
- ])
- ])
- );
- }
- });
- function Et(t) {
- for (var e = [], n = 1; n < arguments.length; n++)
- e[n - 1] = arguments[n];
- return e
- .map(function (e) {
- return e
- .split(' ')
- .map(function (e) {
- return e ? '' + t + e : '';
- })
- .join(' ');
- })
- .join(' ');
- }
- function Ct(t, e) {
- return function (n) {
- n && (t[e] = n);
- };
- }
- function Bt(t, e, n) {
- return function (r) {
- r && (t[e][n] = r);
- };
- }
- function xt(t, e) {
- return function (n) {
- var r = n.prototype;
- t.forEach(function (t) {
- e(r, t);
- });
- };
- }
- var St = 'function',
- Dt = 'object',
- Rt = 'string',
- Qt = 'number',
- _t = 'undefined',
- Ot = typeof window !== _t,
- Mt = typeof document !== _t && document,
- Tt = [
- { open: '(', close: ')' },
- { open: '"', close: '"' },
- { open: "'", close: "'" },
- { open: '\\"', close: '\\"' },
- { open: "\\'", close: "\\'" }
- ],
- zt = 1e-7,
- Pt = {
- cm: function (t) {
- return (96 * t) / 2.54;
- },
- mm: function (t) {
- return (96 * t) / 254;
- },
- in: function (t) {
- return 96 * t;
- },
- pt: function (t) {
- return (96 * t) / 72;
- },
- pc: function (t) {
- return (96 * t) / 6;
- },
- '%': function (t, e) {
- return (t * e) / 100;
- },
- vw: function (t, e) {
- return void 0 === e && (e = window.innerWidth), (t / 100) * e;
- },
- vh: function (t, e) {
- return void 0 === e && (e = window.innerHeight), (t / 100) * e;
- },
- vmax: function (t, e) {
- return (
- void 0 === e &&
- (e = Math.max(window.innerWidth, window.innerHeight)),
- (t / 100) * e
- );
- },
- vmin: function (t, e) {
- return (
- void 0 === e &&
- (e = Math.min(window.innerWidth, window.innerHeight)),
- (t / 100) * e
- );
- }
- };
- function Yt(t, e, n, r) {
- return (t * r + e * n) / (n + r);
- }
- function Gt(t) {
- return typeof t === _t;
- }
- function Nt(t) {
- return t && typeof t === Dt;
- }
- function Ut(t) {
- return Array.isArray(t);
- }
- function Ft(t) {
- return typeof t === Rt;
- }
- function Lt(t) {
- return typeof t === Qt;
- }
- function Xt(t) {
- return typeof t === St;
- }
- function jt(t, e, n, r, a) {
- return Wt(t, e, n)
- ? n
- : (function (t, e, n, r, a) {
- for (
- var i,
- o = function (n) {
- var o = e[n].trim();
- if (o === t.close && !Wt(t, e, n)) return { value: n };
- var s = n,
- l = ee(a, function (t) {
- return t.open === o;
- });
- if ((l && (s = jt(l, e, n, r, a)), -1 === s))
- return (i = n), 'break';
- i = n = s;
- },
- s = n;
- s < r;
- ++s
- ) {
- var l = o(s);
- if (((s = i), 'object' == typeof l)) return l.value;
- if ('break' === l) break;
- }
- return -1;
- })(t, e, n + 1, r, a);
- }
- function Wt(t, e, n) {
- if (!t.ignore) return null;
- var r = e.slice(Math.max(n - 3, 0), n + 3).join('');
- return new RegExp(t.ignore).exec(r);
- }
- function Ht(t, e) {
- var n = Ft(e) ? { separator: e } : e,
- r = n.separator,
- a = void 0 === r ? ',' : r,
- i = n.isSeparateFirst,
- o = n.isSeparateOnlyOpenClose,
- s = n.isSeparateOpenClose,
- l = void 0 === s ? o : s,
- c = n.openCloseCharacters,
- u = void 0 === c ? Tt : c,
- f = u
- .map(function (t) {
- var e = t.open,
- n = t.close;
- return e === n ? e : e + '|' + n;
- })
- .join('|'),
- d = new RegExp('(\\s*' + a + '\\s*|' + f + '|\\s+)', 'g'),
- p = t.split(d).filter(function (t) {
- return t && 'undefined' !== t;
- }),
- g = p.length,
- m = [],
- v = [];
- function h() {
- return !!v.length && (m.push(v.join('')), (v = []), !0);
- }
- for (
- var A,
- b = function (e) {
- var n = p[e].trim(),
- r = e,
- s = ee(u, function (t) {
- return t.open === n;
- }),
- c = ee(u, function (t) {
- return t.close === n;
- });
- if (s) {
- if (-1 !== (r = jt(s, p, e, g, u)) && l)
- return h() && i
- ? ((A = e), 'break')
- : (m.push(p.slice(e, r + 1).join('')),
- (e = r),
- i ? ((A = e), 'break') : ((A = e), 'continue'));
- } else {
- if (c && !Wt(c, p, e)) {
- var f =
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- (function () {
- for (var t = 0, e = 0, n = arguments.length; e < n; e++)
- t += arguments[e].length;
- var r = Array(t),
- a = 0;
- for (e = 0; e < n; e++)
- for (
- var i = arguments[e], o = 0, s = i.length;
- o < s;
- o++, a++
- )
- r[a] = i[o];
- return r;
- })(u);
- return (
- f.splice(u.indexOf(c), 1),
- {
- value: Ht(t, {
- separator: a,
- isSeparateFirst: i,
- isSeparateOnlyOpenClose: o,
- isSeparateOpenClose: l,
- openCloseCharacters: f
- })
- }
- );
- }
- if (
- (function (t, e) {
- return (
- (('' === e || ' ' == e) && ('' === t || ' ' == t)) ||
- t === e
- );
- })(n, a) &&
- !o
- )
- return h(), i ? ((A = e), 'break') : ((A = e), 'continue');
- }
- -1 === r && (r = g - 1),
- v.push(p.slice(e, r + 1).join('')),
- (A = e = r);
- },
- w = 0;
- w < g;
- ++w
- ) {
- var k = b(w);
- if (((w = A), 'object' == typeof k)) return k.value;
- if ('break' === k) break;
- }
- return v.length && m.push(v.join('')), m;
- }
- function Vt(t) {
- return Ht(t, '');
- }
- function qt(t) {
- return Ht(t, ',');
- }
- function Kt(t) {
- var e = /([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(t);
- return !e || e.length < 4
- ? {}
- : { prefix: e[1], value: e[2], suffix: e[3] };
- }
- function Zt(t) {
- var e = /^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(t);
- if (!e) return { prefix: '', unit: '', value: NaN };
- var n = e[1],
- r = e[2];
- return { prefix: n, unit: e[3], value: parseFloat(r) };
- }
- function Jt(t, e) {
- return (
- void 0 === e && (e = '-'),
- t.replace(/([a-z])([A-Z])/g, function (t, n, r) {
- return '' + n + e + r.toLowerCase();
- })
- );
- }
- function $t() {
- return Date.now ? Date.now() : new Date().getTime();
- }
- function te(t, e, n) {
- void 0 === n && (n = -1);
- for (var r = t.length, a = 0; a < r; ++a) if (e(t[a], a, t)) return a;
- return n;
- }
- function ee(t, e, n) {
- var r = te(t, e);
- return r > -1 ? t[r] : n;
- }
- var ne = (function () {
- var t = $t(),
- e =
- Ot &&
- (window.requestAnimationFrame ||
- window.webkitRequestAnimationFrame ||
- window.mozRequestAnimationFrame ||
- window.msRequestAnimationFrame);
- return e
- ? e.bind(window)
- : function (e) {
- var n = $t();
- return setTimeout(function () {
- e(n - t);
- }, 1e3 / 60);
- };
- })(),
- re = (function () {
- var t =
- Ot &&
- (window.cancelAnimationFrame ||
- window.webkitCancelAnimationFrame ||
- window.mozCancelAnimationFrame ||
- window.msCancelAnimationFrame);
- return t
- ? t.bind(window)
- : function (t) {
- clearTimeout(t);
- };
- })();
- function ae(t) {
- return Object.keys(t);
- }
- function ie(t, e) {
- var n = Zt(t),
- r = n.value,
- a = n.unit;
- if (Nt(e)) {
- var i = e[a];
- if (i) {
- if (Xt(i)) return i(r);
- if (Pt[a]) return Pt[a](r, i);
- }
- } else if ('%' === a) return (r * e) / 100;
- return Pt[a] ? Pt[a](r) : r;
- }
- function oe(t, e, n) {
- return Math.max(e, Math.min(t, n));
- }
- function se(t, e, n, r) {
- return (
- void 0 === r && (r = t[0] / t[1]),
- [
- [pe(e[0], zt), pe(e[0] / r, zt)],
- [pe(e[1] * r, zt), pe(e[1], zt)]
- ].filter(function (t) {
- return t.every(function (t, r) {
- var a = e[r],
- i = pe(a, zt);
- return n ? t <= a || t <= i : t >= a || t >= i;
- });
- })[0] || t
- );
- }
- function le(t, e, n, r) {
- if (!r)
- return t.map(function (t, r) {
- return oe(t, e[r], n[r]);
- });
- var a = t[0],
- i = t[1],
- o = !0 === r ? a / i : r,
- s = se(t, e, !1, o),
- l = s[0],
- c = s[1],
- u = se(t, n, !0, o),
- f = u[0],
- d = u[1];
- return (
- a < l || i < c
- ? ((a = l), (i = c))
- : (a > f || i > d) && ((a = f), (i = d)),
- [a, i]
- );
- }
- function ce(t) {
- for (var e = t.length, n = 0, r = e - 1; r >= 0; --r) n += t[r];
- return e ? n / e : 0;
- }
- function ue(t, e) {
- var n = e[0] - t[0],
- r = e[1] - t[1],
- a = Math.atan2(r, n);
- return a >= 0 ? a : a + 2 * Math.PI;
- }
- function fe(t) {
- var e = (function (t) {
- return [0, 1].map(function (e) {
- return ce(
- t.map(function (t) {
- return t[e];
- })
- );
- });
- })(t),
- n = ue(e, t[0]),
- r = ue(e, t[1]);
- return (n < r && r - n < Math.PI) || (n > r && r - n < -Math.PI)
- ? 1
- : -1;
- }
- function de(t, e) {
- return Math.sqrt(
- Math.pow((e ? e[0] : 0) - t[0], 2) +
- Math.pow((e ? e[1] : 0) - t[1], 2)
- );
- }
- function pe(t, e) {
- if (!e) return t;
- var n = 1 / e;
- return Math.round(t / e) / n;
- }
- function ge(t, e) {
- return (
- t.forEach(function (n, r) {
- t[r] = pe(t[r], e);
- }),
- t
- );
- }
- function me(t, e) {
- -1 === t.indexOf(e) && t.push(e);
- }
- function ve(t, e) {
- return t.classList
- ? t.classList.contains(e)
- : !!t.className.match(new RegExp('(\\s|^)' + e + '(\\s|$)'));
- }
- function he(t, e) {
- t.classList ? t.classList.add(e) : (t.className += ' ' + e);
- }
- function Ae(t, e) {
- if (t.classList) t.classList.remove(e);
- else {
- var n = new RegExp('(\\s|^)' + e + '(\\s|$)');
- t.className = t.className.replace(n, ' ');
- }
- }
- function be(t, e, n, r) {
- t.addEventListener(e, n, r);
- }
- function we(t, e, n, r) {
- t.removeEventListener(e, n, r);
- }
- function ke(t) {
- return (null == t ? void 0 : t.ownerDocument) || Mt;
- }
- function ye(t) {
- return ke(t).documentElement;
- }
- function Ie(t) {
- return ke(t).body;
- }
- function Ee(t) {
- var e;
- return (
- (null === (e = null == t ? void 0 : t.ownerDocument) || void 0 === e
- ? void 0
- : e.defaultView) || window
- );
- }
- function Ce(t) {
- return t && 'postMessage' in t && 'blur' in t && 'self' in t;
- }
- function Be(t) {
- return Nt(t) && t.nodeName && t.nodeType && 'ownerDocument' in t;
- }
- var xe = (function () {
- function t() {
- (this.keys = []), (this.values = []);
- }
- var e = t.prototype;
- return (
- (e.get = function (t) {
- return this.values[this.keys.indexOf(t)];
- }),
- (e.set = function (t, e) {
- var n = this.keys,
- r = this.values,
- a = n.indexOf(t),
- i = -1 === a ? n.length : a;
- (n[i] = t), (r[i] = e);
- }),
- t
- );
- })(),
- Se = (function () {
- function t() {
- this.object = {};
- }
- var e = t.prototype;
- return (
- (e.get = function (t) {
- return this.object[t];
- }),
- (e.set = function (t, e) {
- this.object[t] = e;
- }),
- t
- );
- })(),
- De = 'function' == typeof Map,
- Re = (function () {
- function t() {}
- var e = t.prototype;
- return (
- (e.connect = function (t, e) {
- (this.prev = t),
- (this.next = e),
- t && (t.next = this),
- e && (e.prev = this);
- }),
- (e.disconnect = function () {
- var t = this.prev,
- e = this.next;
- t && (t.next = e), e && (e.prev = t);
- }),
- (e.getIndex = function () {
- for (var t = this, e = -1; t; ) (t = t.prev), ++e;
- return e;
- }),
- t
- );
- })(),
- Qe = (function () {
- function t(t, e, n, r, a, i, o, s) {
- (this.prevList = t),
- (this.list = e),
- (this.added = n),
- (this.removed = r),
- (this.changed = a),
- (this.maintained = i),
- (this.changedBeforeAdded = o),
- (this.fixed = s);
- }
- var e = t.prototype;
- return (
- Object.defineProperty(e, 'ordered', {
- get: function () {
- return (
- this.cacheOrdered || this.caculateOrdered(),
- this.cacheOrdered
- );
- },
- enumerable: !0,
- configurable: !0
- }),
- Object.defineProperty(e, 'pureChanged', {
- get: function () {
- return (
- this.cachePureChanged || this.caculateOrdered(),
- this.cachePureChanged
- );
- },
- enumerable: !0,
- configurable: !0
- }),
- (e.caculateOrdered = function () {
- var t = (function (t, e) {
- var n = [],
- r = [];
- return (
- t.forEach(function (t) {
- var e = t[0],
- a = t[1],
- i = new Re();
- (n[e] = i), (r[a] = i);
- }),
- n.forEach(function (t, e) {
- t.connect(n[e - 1]);
- }),
- t
- .filter(function (t, n) {
- return !e[n];
- })
- .map(function (t, e) {
- var a = t[0],
- i = t[1];
- if (a === i) return [0, 0];
- var o = n[a],
- s = r[i - 1],
- l = o.getIndex();
- return (
- o.disconnect(),
- s ? o.connect(s, s.next) : o.connect(void 0, n[0]),
- [l, o.getIndex()]
- );
- })
- );
- })(this.changedBeforeAdded, this.fixed),
- e = this.changed,
- n = [];
- (this.cacheOrdered = t.filter(function (t, r) {
- var a = t[0],
- i = t[1],
- o = e[r],
- s = o[0],
- l = o[1];
- if (a !== i) return n.push([s, l]), !0;
- })),
- (this.cachePureChanged = n);
- }),
- t
- );
- })();
- function _e(t, e, n) {
- var r = De ? Map : n ? Se : xe,
- a =
- n ||
- function (t) {
- return t;
- },
- i = [],
- o = [],
- s = [],
- l = t.map(a),
- c = e.map(a),
- u = new r(),
- f = new r(),
- d = [],
- p = [],
- g = {},
- m = [],
- v = 0,
- h = 0;
- return (
- l.forEach(function (t, e) {
- u.set(t, e);
- }),
- c.forEach(function (t, e) {
- f.set(t, e);
- }),
- l.forEach(function (t, e) {
- var n = f.get(t);
- void 0 === n ? (++h, o.push(e)) : (g[n] = h);
- }),
- c.forEach(function (t, e) {
- var n = u.get(t);
- void 0 === n
- ? (i.push(e), ++v)
- : (s.push([n, e]),
- (h = g[e] || 0),
- d.push([n - h, e - v]),
- p.push(e === n),
- n !== e && m.push([n, e]));
- }),
- o.reverse(),
- new Qe(t, e, i, o, m, s, d, p)
- );
- }
- var Oe = (function () {
- function t(t, e) {
- void 0 === t && (t = []),
- (this.findKeyCallback = e),
- (this.list = [].slice.call(t));
- }
- return (
- (t.prototype.update = function (t) {
- var e = [].slice.call(t),
- n = _e(this.list, e, this.findKeyCallback);
- return (this.list = e), n;
- }),
- t
- );
- })(),
- Me = function (t, e) {
- return (
- (Me =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (t, e) {
- t.__proto__ = e;
- }) ||
- function (t, e) {
- for (var n in e)
- Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- }),
- Me(t, e)
- );
- };
- function Te(t, e) {
- if ('function' != typeof e && null !== e)
- throw new TypeError(
- 'Class extends value ' +
- String(e) +
- ' is not a constructor or null'
- );
- function n() {
- this.constructor = t;
- }
- Me(t, e),
- (t.prototype =
- null === e
- ? Object.create(e)
- : ((n.prototype = e.prototype), new n()));
- }
- var ze = function () {
- return (
- (ze =
- Object.assign ||
- function (t) {
- for (var e, n = 1, r = arguments.length; n < r; n++)
- for (var a in (e = arguments[n]))
- Object.prototype.hasOwnProperty.call(e, a) && (t[a] = e[a]);
- return t;
- }),
- ze.apply(this, arguments)
- );
- };
- function Pe(t, e) {
- var n = {};
- for (var r in t)
- Object.prototype.hasOwnProperty.call(t, r) &&
- e.indexOf(r) < 0 &&
- (n[r] = t[r]);
- if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
- var a = 0;
- for (r = Object.getOwnPropertySymbols(t); a < r.length; a++)
- e.indexOf(r[a]) < 0 &&
- Object.prototype.propertyIsEnumerable.call(t, r[a]) &&
- (n[r[a]] = t[r[a]]);
- }
- return n;
- }
- function Ye(t, e, n) {
- if (n || 2 === arguments.length)
- for (var r, a = 0, i = e.length; a < i; a++)
- (!r && a in e) ||
- (r || (r = Array.prototype.slice.call(e, 0, a)), (r[a] = e[a]));
- return t.concat(r || Array.prototype.slice.call(e));
- }
- function Ge(t) {
- var e = 0;
- return t.map(function (t) {
- return null == t ? '$compat'.concat(++e) : ''.concat(t);
- });
- }
- function Ne(t) {
- var e = [];
- return (
- t.forEach(function (t) {
- e = e.concat(Ut(t) ? Ne(t) : t);
- }),
- e
- );
- }
- function Ue(t, e) {
- if (!e) return t;
- for (var n in e) Gt(t[n]) && (t[n] = e[n]);
- return t;
- }
- function Fe(t, e) {
- if (t === e) return !1;
- for (var n in t) if (!(n in e)) return !0;
- for (var n in e) if (t[n] !== e[n]) return !0;
- return !1;
- }
- function Le(t) {
- var e = t.className,
- n = Pe(t, ['className']);
- return (
- null != e && (n.class = e), delete n.style, delete n.children, n
- );
- }
- function Xe(t) {
- var e = {},
- n = {};
- for (var r in t)
- 0 === r.indexOf('on') ? (n[r] = t[r]) : (e[r] = t[r]);
- return [e, n];
- }
- function je(t) {
- if (!t) return null;
- var e = t.b;
- return Be(e) ? e : je(t.c);
- }
- function We(t) {
- var e = t.parentNode;
- e && e.removeChild(t);
- }
- function He(t) {
- t.forEach(function (t) {
- t();
- });
- }
- function Ve() {
- return this.constructor(this.props, this.context);
- }
- var qe = 0,
- Ke = (function () {
- function t(t, e, n, r, a, i, o) {
- void 0 === o && (o = {}),
- (this.t = t),
- (this.d = e),
- (this.k = n),
- (this.i = r),
- (this.c = a),
- (this.ref = i),
- (this.ps = o),
- (this.typ = 'prov'),
- (this._ps = []),
- (this._cs = {}),
- (this._hyd = null),
- (this._sel = !1);
- }
- var e = t.prototype;
- return (
- (e.s = function () {
- return !0;
- }),
- (e.u = function (t, e, n, r, a) {
- var i,
- o = this,
- s = o.d,
- l = Ne(
- ((i = e),
- ae(i).map(function (t) {
- return i[t];
- }))
- .filter(function (t) {
- return t.$_req;
- })
- .map(function (t) {
- return t.$_subs;
- })
- ),
- c = ee(l, function (t) {
- return t.d === s;
- });
- if (o.b && !Ft(n) && !a && !o.s(n.props, r) && !c)
- return (
- l
- .reduce(function (t, e) {
- var n = e.d;
- return (
- t[0] ? t[0].d === n && t.push(e) : n > s && t.push(e),
- t
- );
- }, [])
- .forEach(function (n) {
- dn(n, n._ps, [n.o], t, e, !0);
- }),
- !1
- );
- (o.o = n), o.ss(r);
- var u = o.ps;
- return (
- Ft(n) || ((o.ps = n.props), (o.ref = n.ref)),
- Je(this),
- o.r(t, e, o.b ? u : {}, r),
- !0
- );
- }),
- (e.md = function () {
- this.rr();
- }),
- (e.ss = function () {}),
- (e.ud = function () {
- this.rr();
- }),
- (e.rr = function () {
- var t = this,
- e = t.ref,
- n = t.fr;
- e && e(n ? n.current : t.b);
- }),
- t
- );
- })();
- function Ze() {
- return Object.__CROACT_CURRENT_INSTNACE__;
- }
- function Je(t) {
- return (Object.__CROACT_CURRENT_INSTNACE__ = t), (qe = 0), t;
- }
- var $e = (function () {
- function t(t, e) {
- void 0 === t && (t = {}),
- (this.props = t),
- (this.context = e),
- (this.state = {}),
- (this.$_timer = 0),
- (this.$_state = {}),
- (this.$_subs = []),
- (this.$_cs = {});
- }
- var e = t.prototype;
- return (
- (e.render = function () {
- return null;
- }),
- (e.shouldComponentUpdate = function (t, e) {
- return this.props !== t || this.state !== e;
- }),
- (e.setState = function (t, e, n) {
- var r = this;
- r.$_timer || (r.$_state = {}),
- clearTimeout(r.$_timer),
- (r.$_timer = 0),
- (r.$_state = ze(ze({}, r.$_state), t)),
- n
- ? r.$_setState(e, n)
- : (r.$_timer = window.setTimeout(function () {
- (r.$_timer = 0), r.$_setState(e, n);
- }));
- }),
- (e.forceUpdate = function (t) {
- this.setState({}, t, !0);
- }),
- (e.componentDidMount = function () {}),
- (e.componentDidUpdate = function (t, e) {}),
- (e.componentWillUnmount = function () {}),
- (e.$_setState = function (t, e) {
- var n = [],
- r = this.$_p;
- dn(
- r.c,
- [r],
- [r.o],
- n,
- r._cs,
- ze(ze({}, this.state), this.$_state),
- e
- ) && (t && n.push(t), He(n), Je(null));
- }),
- t
- );
- })(),
- tn = (function (t) {
- function e() {
- return (null !== t && t.apply(this, arguments)) || this;
- }
- return (
- Te(e, t),
- (e.prototype.shouldComponentUpdate = function (t, e) {
- return Fe(this.props, t) || Fe(this.state, e);
- }),
- e
- );
- })($e);
- function en(t) {
- var e = function (t) {
- e.current = t;
- };
- return (e.current = t), e;
- }
- var nn = (function (t) {
- function e(e, n, r, a, i, o, s) {
- void 0 === s && (s = {});
- var l =
- t.call(this, e, n, r, a, i, o, Ue(s, e.defaultProps)) || this;
- return (
- (l.typ = 'comp'),
- (l._usefs = []),
- (l._uefs = []),
- (l._defs = []),
- l
- );
- }
- Te(e, t);
- var n = e.prototype;
- return (
- (n.s = function (t, e) {
- var n = this.b;
- return (
- !1 !==
- n.shouldComponentUpdate(
- Ue(t, this.t.defaultProps),
- e || n.state
- )
- );
- }),
- (n.r = function (t, e, n) {
- var r,
- a,
- i = this,
- o = i.t;
- i.ps = Ue(i.ps, i.t.defaultProps);
- var s = i.ps,
- l = !i.b,
- c = o.contextType,
- u = i.b,
- f = null == c ? void 0 : c.get(i);
- (i._cs = e),
- l
- ? ((u = (function (t, e, n, r) {
- var a, i;
- return (
- (
- null === (a = null == t ? void 0 : t.prototype) ||
- void 0 === a
- ? void 0
- : a.render
- )
- ? (i = new t(e, n))
- : (((i = new $e(e, n)).constructor = t),
- t._fr
- ? ((r.fr = en()),
- (i.render = function () {
- return this.constructor(this.props, r.fr);
- }))
- : (i.render = Ve)),
- (i.$_p = r),
- i
- );
- })(o, s, f, i)),
- (i.b = u))
- : ((u.props = s), (u.context = f));
- var d = u.state;
- (i._usefs = []), (i._uefs = []);
- var p = u.render();
- 0 ===
- (null ===
- (a =
- null === (r = null == p ? void 0 : p.props) || void 0 === r
- ? void 0
- : r.children) || void 0 === a
- ? void 0
- : a.length) && (p.props.children = i.ps.children);
- var g = ze(ze({}, e), u.$_cs);
- dn(i, i._ps, p ? [p] : [], t, g),
- l
- ? i._uefs.push(function () {
- null == c || c.register(i), u.componentDidMount();
- })
- : i._uefs.push(function () {
- u.componentDidUpdate(n, d);
- }),
- t.push(function () {
- i._usefs.forEach(function (t) {
- t();
- }),
- l ? i.md() : i.ud(),
- (i._defs = i._uefs.map(function (t) {
- return t();
- }));
- });
- }),
- (n.ss = function (t) {
- var e = this.b;
- e && t && (e.state = t);
- }),
- (n.un = function () {
- var t,
- e = this;
- e._ps.forEach(function (t) {
- t.un();
- }),
- null === (t = e.t.contextType) ||
- void 0 === t ||
- t.unregister(e),
- clearTimeout(e.b.$_timer),
- e._defs.forEach(function (t) {
- t && t();
- }),
- e.b.componentWillUnmount();
- }),
- e
- );
- })(Ke);
- function rn(t, e) {
- var n = ae(t),
- r = ae(e),
- a = _e(n, r, function (t) {
- return t;
- }),
- i = {},
- o = {},
- s = {};
- return (
- a.added.forEach(function (t) {
- var n = r[t];
- i[n] = e[n];
- }),
- a.removed.forEach(function (e) {
- var r = n[e];
- o[r] = t[r];
- }),
- a.maintained.forEach(function (r) {
- var a = r[0],
- i = n[a],
- o = [t[i], e[i]];
- t[i] !== e[i] && (s[i] = o);
- }),
- { added: i, removed: o, changed: s }
- );
- }
- var an = (function (t) {
- function e() {
- var e = (null !== t && t.apply(this, arguments)) || this;
- return (e.typ = 'elem'), (e._es = {}), (e._svg = !1), e;
- }
- Te(e, t);
- var n = e.prototype;
- return (
- (n.e = function (t, e) {
- var n = this,
- r = n._es,
- a = n.b,
- i = (function (t) {
- return t.replace(/^on/g, '').toLowerCase();
- })(t);
- e
- ? (we(a, i, r[t]), delete r[t])
- : ((r[t] = function (e) {
- var r, a;
- null === (a = (r = n.ps)[t]) ||
- void 0 === a ||
- a.call(r, e);
- }),
- be(a, i, r[t]));
- }),
- (n.s = function (t) {
- return Fe(this.ps, t);
- }),
- (n.r = function (t, e, n) {
- var r,
- a = this,
- i = !a.b,
- o = a.ps;
- if (i) {
- var s = je(a.c),
- l = !1;
- (l = !(!a._svg && 'svg' !== a.t) || (s && s.ownerSVGElement)),
- (a._svg = l);
- var c =
- null === (r = a._hyd) || void 0 === r
- ? void 0
- : r.splice(0, 1)[0],
- u = a.t;
- if (c) a._hyd = [].slice.call(c.children || []);
- else {
- var f = ke(s);
- c = l
- ? f.createElementNS('http://www.w3.org/2000/svg', u)
- : f.createElement(u);
- }
- a.b = c;
- }
- dn(a, a._ps, o.children, t, e);
- var d = a.b,
- p = Xe(n),
- g = p[0],
- m = p[1],
- v = Xe(o),
- h = v[0],
- A = v[1];
- return (
- (function (t, e, n) {
- var r = rn(Le(t), Le(e)),
- a = r.added,
- i = r.removed,
- o = r.changed;
- for (var s in a) n.setAttribute(s, a[s]);
- for (var l in o) n.setAttribute(l, o[l][1]);
- for (var c in i) n.removeAttribute(c);
- })(g, h, d),
- (function (t, e, n) {
- var r = rn(t, e),
- a = r.added,
- i = r.removed;
- for (var o in i) n.e(o, !0);
- for (var s in a) n.e(s);
- })(m, A, a),
- (function (t, e, n) {
- var r = n.style,
- a = rn(t, e),
- i = a.added,
- o = a.removed,
- s = a.changed;
- for (var l in i) {
- var c = Jt(l, '-');
- r.setProperty(c, i[l]);
- }
- for (var l in s) {
- var u = Jt(l, '-');
- r.setProperty(u, s[l][1]);
- }
- for (var l in o) {
- var f = Jt(l, '-');
- r.removeProperty(f);
- }
- })(n.style || {}, o.style || {}, d),
- t.push(function () {
- i ? a.md() : a.ud();
- }),
- !0
- );
- }),
- (n.un = function () {
- var t = this,
- e = t._es,
- n = t.b;
- for (var r in e) we(n, r, e[r]);
- t._ps.forEach(function (t) {
- t.un();
- }),
- (t._es = {}),
- t._sel || We(n);
- }),
- e
- );
- })(Ke);
- function on(t) {
- if (!t || Be(t)) return t;
- var e = t.$_p._ps;
- return e.length ? on(e[0].b) : null;
- }
- function sn(t) {
- if (t) {
- if (t.b && Be(t.b)) return t;
- var e = t._ps;
- return e.length ? sn(e[0]) : null;
- }
- }
- function ln(t, e) {
- for (var n = [], r = 2; r < arguments.length; r++)
- n[r - 2] = arguments[r];
- var a,
- i = e || {},
- o = i.key,
- s = i.ref,
- l = Pe(i, ['key', 'ref']);
- return {
- type: t,
- key: o,
- ref: s,
- props: ze(ze({}, l), {
- children: ((a = n),
- a.reduce(function (t, e) {
- return t.concat(e);
- }, [])).filter(function (t) {
- return null != t && !1 !== t;
- })
- })
- };
- }
- var cn = (function (t) {
- function e(e, n) {
- void 0 === n && (n = 0);
- var r =
- t.call(this, 'container', n, 'container', 0, null) || this;
- return (r.typ = 'container'), (r.b = e), r;
- }
- Te(e, t);
- var n = e.prototype;
- return (
- (n.r = function () {
- return !0;
- }),
- (n.un = function () {}),
- e
- );
- })(Ke),
- un = (function (t) {
- function e() {
- var e = (null !== t && t.apply(this, arguments)) || this;
- return (e.typ = 'text'), e;
- }
- Te(e, t);
- var n = e.prototype;
- return (
- (n.r = function (t) {
- var e,
- n = this,
- r = !n.b;
- if (r) {
- var a = je(n.c),
- i =
- null === (e = n._hyd) || void 0 === e
- ? void 0
- : e.splice(0, 1)[0];
- n.b = i || ke(a).createTextNode(n.t.replace('text_', ''));
- }
- return (
- t.push(function () {
- r ? n.md() : n.ud();
- }),
- !0
- );
- }),
- (n.un = function () {
- We(this.b);
- }),
- e
- );
- })(Ke);
- function fn(t, e, n, r) {
- var a = r.d + 1;
- if (Ft(t) || Lt(t))
- return new un('text_'.concat(t), a, e, n, r, null, {});
- var i = t.type;
- return new ('string' == typeof i ? an : nn)(
- i,
- a,
- e,
- n,
- r,
- t.ref,
- t.props
- );
- }
- function dn(t, e, n, r, a, i, o) {
- var s = (function (t, e, n) {
- var r = n.map(function (t) {
- return Ft(t) ? null : t.key;
- }),
- a = _e(
- Ge(
- e.map(function (t) {
- return t.k;
- })
- ),
- Ge(r),
- function (t) {
- return t;
- }
- );
- a.removed.forEach(function (t) {
- e.splice(t, 1)[0].un();
- }),
- a.ordered.forEach(function (t) {
- var n = t[0],
- r = t[1],
- a = e.splice(n, 1)[0];
- e.splice(r, 0, a);
- var i = on(a.b),
- o = on(e[r + 1] && e[r + 1].b);
- i && i.parentNode.insertBefore(i, o);
- }),
- a.added.forEach(function (a) {
- e.splice(a, 0, fn(n[a], r[a], a, t));
- });
- var i = a.maintained.filter(function (a) {
- a[0];
- var i = a[1],
- o = n[i],
- s = e[i];
- return (Ft(o) ? 'text_'.concat(o) : o.type) !== s.t
- ? (s.un(), e.splice(i, 1, fn(o, r[i], i, t)), !0)
- : ((s.i = i), !1);
- });
- return Ye(
- Ye([], a.added, !0),
- i.map(function (t) {
- return t[0], t[1];
- }),
- !0
- );
- })(t, e, n),
- l = t._hyd,
- c = e.filter(function (t, e) {
- return (t._hyd = l), t.u(r, a, n[e], i, o);
- });
- 'container' === t.typ &&
- t._sel &&
- e.forEach(function (t) {
- var e = sn(t);
- e && (e._sel = !0);
- }),
- (t._hyd = null);
- var u = je(t);
- return (
- u &&
- s.reverse().forEach(function (n) {
- var r = e[n],
- a = on(r.b);
- if (a && u !== a && !a.parentNode) {
- var i = (function (t, e) {
- for (var n = t._ps, r = n.length, a = e.i + 1; a < r; ++a) {
- var i = on(n[a].b);
- if (i) return i;
- }
- return null;
- })(t, r);
- u.insertBefore(a, i);
- }
- }),
- c.length > 0
- );
- }
- function pn(t, e, n) {
- return (
- !n &&
- t &&
- (((n = new cn(e.parentElement))._hyd = [e]), (n._sel = !0)),
- (function (t, e, n, r) {
- void 0 === n && (n = e.__CROACT__), void 0 === r && (r = {});
- var a = !!n;
- n || (n = new cn(e));
- var i = [];
- dn(n, n._ps, t ? [t] : [], i, r, void 0, void 0),
- He(i),
- Je(null),
- a || (e.__CROACT__ = n);
- })(t, e, n),
- n
- );
- }
- function gn(t) {
- var e = Ze(),
- n = e._hs || (e._hs = []),
- r = qe,
- a = n[r];
- if (((qe = r + 1), a)) {
- if (!Fe(a.deps, t.deps)) return (a.updated = !1), a;
- n[r] = t;
- } else n.push(t);
- return (t.value = t.func()), (t.updated = !0), t;
- }
- function mn(t) {
- return gn({
- func: function () {
- return en(t);
- },
- deps: []
- }).value;
- }
- function vn(t, e, n) {
- var r = Ze(),
- a = gn({
- func: function () {
- return t;
- },
- deps: e
- }),
- i = n ? r._usefs : r._uefs;
- a.updated
- ? i.push(function () {
- return a.effect && a.effect(), (a.effect = t()), a.effect;
- })
- : i.push(function () {
- return a.effect;
- });
- }
- function hn(t, e) {
- for (var n = t.length, r = 0; r < n; ++r) if (e(t[r], r)) return !0;
- return !1;
- }
- function An(t, e) {
- for (var n = t.length, r = 0; r < n; ++r) if (e(t[r], r)) return t[r];
- return null;
- }
- function bn(t) {
- var e = t;
- if (void 0 === e) {
- if ('undefined' == typeof navigator || !navigator) return '';
- e = navigator.userAgent || '';
- }
- return e.toLowerCase();
- }
- function wn(t, e) {
- try {
- return new RegExp(t, 'g').exec(e);
- } catch (n) {
- return null;
- }
- }
- function kn(t) {
- return t.replace(/_/g, '.');
- }
- function yn(t, e) {
- var n = null,
- r = '-1';
- return (
- hn(t, function (t) {
- var a = wn('(' + t.test + ')((?:\\/|\\s|:)([0-9|\\.|_]+))?', e);
- return !(
- !a ||
- t.brand ||
- ((n = t),
- (r = a[3] || '-1'),
- t.versionAlias
- ? (r = t.versionAlias)
- : t.versionTest &&
- (r =
- (function (t, e) {
- var n = wn(
- '(' + t + ')((?:\\/|\\s|:)([0-9|\\.|_]+))',
- e
- );
- return n ? n[3] : '';
- })(t.versionTest.toLowerCase(), e) || r),
- (r = kn(r)),
- 0)
- );
- }),
- { preset: n, version: r }
- );
- }
- function In(t, e) {
- var n = { brand: '', version: '-1' };
- return (
- hn(t, function (t) {
- var r = En(e, t);
- return (
- !!r &&
- ((n.brand = t.id),
- (n.version = t.versionAlias || r.version),
- '-1' !== n.version)
- );
- }),
- n
- );
- }
- function En(t, e) {
- return An(t, function (t) {
- var n = t.brand;
- return wn('' + e.test, n.toLowerCase());
- });
- }
- var Cn = [
- { test: 'phantomjs', id: 'phantomjs' },
- { test: 'whale', id: 'whale' },
- { test: 'edgios|edge|edg', id: 'edge' },
- {
- test: 'msie|trident|windows phone',
- id: 'ie',
- versionTest: 'iemobile|msie|rv'
- },
- { test: 'miuibrowser', id: 'miui browser' },
- { test: 'samsungbrowser', id: 'samsung internet' },
- { test: 'samsung', id: 'samsung internet', versionTest: 'version' },
- { test: 'chrome|crios', id: 'chrome' },
- { test: 'firefox|fxios', id: 'firefox' },
- { test: 'android', id: 'android browser', versionTest: 'version' },
- {
- test: 'safari|iphone|ipad|ipod',
- id: 'safari',
- versionTest: 'version'
- }
- ],
- Bn = [
- {
- test: '(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)',
- id: 'chrome',
- versionTest: 'chrome'
- },
- { test: 'chromium', id: 'chrome' },
- { test: 'whale', id: 'chrome', versionAlias: '-1', brand: !0 }
- ],
- xn = [
- {
- test: 'applewebkit',
- id: 'webkit',
- versionTest: 'applewebkit|safari'
- }
- ],
- Sn = [
- { test: '(?=(iphone|ipad))(?!(.*version))', id: 'webview' },
- {
- test: '(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))',
- id: 'webview'
- },
- { test: 'webview', id: 'webview' }
- ],
- Dn = [
- { test: 'windows phone', id: 'windows phone' },
- { test: 'windows 2000', id: 'window', versionAlias: '5.0' },
- { test: 'windows nt', id: 'window' },
- { test: 'win32|windows', id: 'window' },
- {
- test: 'iphone|ipad|ipod',
- id: 'ios',
- versionTest: 'iphone os|cpu os'
- },
- { test: 'macos|macintel|mac os x', id: 'mac' },
- { test: 'android|linux armv81', id: 'android' },
- { test: 'tizen', id: 'tizen' },
- { test: 'webos|web0s', id: 'webos' }
- ];
- function Rn(t) {
- return !!yn(Sn, t).preset;
- }
- function Qn(t, e, n, r, a, i) {
- for (var o = 0; o < a; ++o) {
- var s = n + o * a,
- l = r + o * a;
- (t[s] += t[l] * i), (e[s] += e[l] * i);
- }
- }
- function _n(t, e, n, r, a) {
- for (var i = 0; i < a; ++i) {
- var o = n + i * a,
- s = r + i * a,
- l = t[o],
- c = e[o];
- (t[o] = t[s]), (t[s] = l), (e[o] = e[s]), (e[s] = c);
- }
- }
- function On(t, e, n, r, a) {
- for (var i = 0; i < r; ++i) {
- var o = n + i * r;
- (t[o] /= a), (e[o] /= a);
- }
- }
- function Mn(t, e, n) {
- void 0 === n && (n = Math.sqrt(t.length));
- for (var r = t.slice(), a = 0; a < n; ++a)
- (r[a * n + e - 1] = 0), (r[(e - 1) * n + a] = 0);
- return (r[(e - 1) * (n + 1)] = 1), r;
- }
- function Tn(t, e) {
- void 0 === e && (e = Math.sqrt(t.length));
- for (var n = t.slice(), r = $n(e), a = 0; a < e; ++a) {
- var i = e * a + a;
- if (!pe(n[i], zt))
- for (var o = a + 1; o < e; ++o)
- if (n[e * a + o]) {
- _n(n, r, a, o, e);
- break;
- }
- if (!pe(n[i], zt)) return [];
- for (On(n, r, a, e, n[i]), o = 0; o < e; ++o) {
- var s = o,
- l = n[o + a * e];
- pe(l, zt) && a !== o && Qn(n, r, s, a, e, -l);
- }
- }
- return r;
- }
- function zn(t, e) {
- void 0 === e && (e = Math.sqrt(t.length));
- for (var n = [], r = t[e * e - 1], a = 0; a < e - 1; ++a)
- n[a] = t[e * (e - 1) + a] / r;
- return (n[e - 1] = 0), n;
- }
- function Pn(t, e) {
- for (var n = t.slice(), r = t.length; r < e - 1; ++r) n[r] = 0;
- return (n[e - 1] = 1), n;
- }
- function Yn(t, e, n) {
- if ((void 0 === e && (e = Math.sqrt(t.length)), e === n)) return t;
- for (var r = $n(n), a = Math.min(e, n), i = 0; i < a - 1; ++i) {
- for (var o = 0; o < a - 1; ++o) r[i * n + o] = t[i * e + o];
- (r[(i + 1) * n - 1] = t[(i + 1) * e - 1]),
- (r[(n - 1) * n + i] = t[(e - 1) * e + i]);
- }
- return (r[n * n - 1] = t[e * e - 1]), r;
- }
- function Gn(t) {
- for (var e = [], n = 1; n < arguments.length; n++)
- e[n - 1] = arguments[n];
- var r = $n(t);
- return (
- e.forEach(function (e) {
- r = Nn(r, e, t);
- }),
- r
- );
- }
- function Nn(t, e, n) {
- void 0 === n && (n = Math.sqrt(t.length));
- var r = [],
- a = t.length / n,
- i = e.length / a;
- if (!a) return e;
- if (!i) return t;
- for (var o = 0; o < n; ++o)
- for (var s = 0; s < i; ++s) {
- r[s * n + o] = 0;
- for (var l = 0; l < a; ++l)
- r[s * n + o] += t[l * n + o] * e[s * a + l];
- }
- return r;
- }
- function Un(t, e) {
- for (
- var n = Math.min(t.length, e.length), r = t.slice(), a = 0;
- a < n;
- ++a
- )
- r[a] = r[a] + e[a];
- return r;
- }
- function Fn(t, e) {
- for (
- var n = Math.min(t.length, e.length), r = t.slice(), a = 0;
- a < n;
- ++a
- )
- r[a] = r[a] - e[a];
- return r;
- }
- function Ln(t, e) {
- return (
- void 0 === e && (e = 9 === t.length),
- e ? [t[0], t[1], t[3], t[4], t[6], t[7]] : t
- );
- }
- function Xn(t, e, n) {
- void 0 === n && (n = e.length);
- var r = Nn(t, e, n),
- a = r[n - 1];
- return r.map(function (t) {
- return t / a;
- });
- }
- function jn(t, e) {
- return Nn(
- t,
- [
- 1,
- 0,
- 0,
- 0,
- 0,
- Math.cos(e),
- Math.sin(e),
- 0,
- 0,
- -Math.sin(e),
- Math.cos(e),
- 0,
- 0,
- 0,
- 0,
- 1
- ],
- 4
- );
- }
- function Wn(t, e) {
- return Nn(
- t,
- [
- Math.cos(e),
- 0,
- -Math.sin(e),
- 0,
- 0,
- 1,
- 0,
- 0,
- Math.sin(e),
- 0,
- Math.cos(e),
- 0,
- 0,
- 0,
- 0,
- 1
- ],
- 4
- );
- }
- function Hn(t, e) {
- return Nn(t, Jn(e, 4));
- }
- function Vn(t, e) {
- var n = e[0],
- r = void 0 === n ? 1 : n,
- a = e[1],
- i = void 0 === a ? 1 : a,
- o = e[2];
- return Nn(
- t,
- [r, 0, 0, 0, 0, i, 0, 0, 0, 0, void 0 === o ? 1 : o, 0, 0, 0, 0, 1],
- 4
- );
- }
- function qn(t, e) {
- return Xn(Jn(e, 3), Pn(t, 3));
- }
- function Kn(t, e) {
- var n = e[0],
- r = void 0 === n ? 0 : n,
- a = e[1],
- i = void 0 === a ? 0 : a,
- o = e[2];
- return Nn(
- t,
- [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, r, i, void 0 === o ? 0 : o, 1],
- 4
- );
- }
- function Zn(t, e) {
- return Nn(t, e, 4);
- }
- function Jn(t, e) {
- var n = Math.cos(t),
- r = Math.sin(t),
- a = $n(e);
- return (a[0] = n), (a[1] = r), (a[e] = -r), (a[e + 1] = n), a;
- }
- function $n(t) {
- for (var e = t * t, n = [], r = 0; r < e; ++r)
- n[r] = r % (t + 1) ? 0 : 1;
- return n;
- }
- function tr(t, e) {
- for (var n = $n(e), r = Math.min(t.length, e - 1), a = 0; a < r; ++a)
- n[(e + 1) * a] = t[a];
- return n;
- }
- function er(t, e) {
- for (var n = $n(e), r = Math.min(t.length, e - 1), a = 0; a < r; ++a)
- n[e * (e - 1) + a] = t[a];
- return n;
- }
- function nr(t, e, n, r, a, i, o, s) {
- var l = t[0],
- c = t[1],
- u = e[0],
- f = e[1],
- d = n[0],
- p = n[1],
- g = r[0],
- m = r[1],
- v = a[0],
- h = a[1],
- A = i[0],
- b = i[1],
- w = o[0],
- k = o[1],
- y = s[0],
- I = s[1],
- E = Tn(
- [
- l,
- 0,
- u,
- 0,
- d,
- 0,
- g,
- 0,
- c,
- 0,
- f,
- 0,
- p,
- 0,
- m,
- 0,
- 1,
- 0,
- 1,
- 0,
- 1,
- 0,
- 1,
- 0,
- 0,
- l,
- 0,
- u,
- 0,
- d,
- 0,
- g,
- 0,
- c,
- 0,
- f,
- 0,
- p,
- 0,
- m,
- 0,
- 1,
- 0,
- 1,
- 0,
- 1,
- 0,
- 1,
- -v * l,
- -h * l,
- -A * u,
- -b * u,
- -w * d,
- -k * d,
- -y * g,
- -I * g,
- -v * c,
- -h * c,
- -A * f,
- -b * f,
- -w * p,
- -k * p,
- -y * m,
- -I * m
- ],
- 8
- );
- if (!E.length) return [];
- var C = Nn(E, [v, h, A, b, w, k, y, I], 8);
- return (
- (C[8] = 1),
- Yn(
- (function (t, e) {
- void 0 === e && (e = Math.sqrt(t.length));
- for (var n = [], r = 0; r < e; ++r)
- for (var a = 0; a < e; ++a) n[a * e + r] = t[e * r + a];
- return n;
- })(C),
- 3,
- 4
- )
- );
- }
- var rr = function () {
- return (
- (rr =
- Object.assign ||
- function (t) {
- for (var e, n = 1, r = arguments.length; n < r; n++)
- for (var a in (e = arguments[n]))
- Object.prototype.hasOwnProperty.call(e, a) && (t[a] = e[a]);
- return t;
- }),
- rr.apply(this, arguments)
- );
- };
- function ar(t, e) {
- return void 0 === e && (e = 0), ir(or(t, e));
- }
- function ir(t) {
- var e = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
- return (
- t.forEach(function (t) {
- var n = t.matrixFunction,
- r = t.functionValue;
- n && (e = n(e, r));
- }),
- e
- );
- }
- function or(t, e) {
- return (
- void 0 === e && (e = 0),
- (Ut(t) ? t : Vt(t)).map(function (t) {
- var n = Kt(t),
- r = n.prefix,
- a = n.value,
- i = null,
- o = r,
- s = '';
- if (
- 'translate' === r ||
- 'translateX' === r ||
- 'translate3d' === r
- ) {
- var l = Nt(e)
- ? rr(rr({}, e), { 'o%': e['%'] })
- : { '%': e, 'o%': e },
- c = qt(a).map(function (t, n) {
- return (
- (l['%'] =
- 0 === n && 'x%' in l
- ? e['x%']
- : 1 === n && 'y%' in l
- ? e['y%']
- : e['o%']),
- ie(t, l)
- );
- }),
- u = c[0],
- f = c[1],
- d = void 0 === f ? 0 : f,
- p = c[2];
- (i = Kn), (s = [u, d, void 0 === p ? 0 : p]);
- } else if ('translateY' === r)
- (i = Kn),
- (s = [
- 0,
- (d = ie(a, Nt(e) ? rr({ '%': e['y%'] }, e) : { '%': e })),
- 0
- ]);
- else if ('translateZ' === r)
- (i = Kn), (s = [0, 0, parseFloat(a)]);
- else if ('scale' === r || 'scale3d' === r) {
- var g = qt(a).map(function (t) {
- return parseFloat(t);
- }),
- m = g[0],
- v = g[1],
- h = void 0 === v ? m : v,
- A = g[2];
- (i = Vn), (s = [m, h, void 0 === A ? 1 : A]);
- } else if ('scaleX' === r)
- (i = Vn), (s = [(m = parseFloat(a)), 1, 1]);
- else if ('scaleY' === r)
- (i = Vn), (s = [1, (h = parseFloat(a)), 1]);
- else if ('scaleZ' === r) (i = Vn), (s = [1, 1, parseFloat(a)]);
- else if (
- 'rotate' === r ||
- 'rotateZ' === r ||
- 'rotateX' === r ||
- 'rotateY' === r
- ) {
- var b = Zt(a),
- w = b.unit,
- k = b.value;
- 'rotate' === r || 'rotateZ' === r
- ? ((o = 'rotateZ'), (i = Hn))
- : 'rotateX' === r
- ? (i = jn)
- : 'rotateY' === r && (i = Wn),
- (s = 'rad' === w ? k : (k * Math.PI) / 180);
- } else if ('matrix3d' === r)
- (i = Zn),
- (s = qt(a).map(function (t) {
- return parseFloat(t);
- }));
- else if ('matrix' === r) {
- var y = qt(a).map(function (t) {
- return parseFloat(t);
- });
- (i = Zn),
- (s = [
- y[0],
- y[1],
- 0,
- 0,
- y[2],
- y[3],
- 0,
- 0,
- 0,
- 0,
- 1,
- 0,
- y[4],
- y[5],
- 0,
- 1
- ]);
- } else o = '';
- return {
- name: r,
- functionName: o,
- value: a,
- matrixFunction: i,
- functionValue: s
- };
- })
- );
- }
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */ var sr,
- lr = function (t, e) {
- return (
- (lr =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (t, e) {
- t.__proto__ = e;
- }) ||
- function (t, e) {
- for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
- }),
- lr(t, e)
- );
- },
- cr =
- 'function' == typeof Map
- ? void 0
- : ((sr = 0),
- function (t) {
- return t.__DIFF_KEY__ || (t.__DIFF_KEY__ = ++sr);
- });
- const ur = (function (t) {
- function e(e) {
- return void 0 === e && (e = []), t.call(this, e, cr) || this;
- }
- return (
- (function (t, e) {
- function n() {
- this.constructor = t;
- }
- lr(t, e),
- (t.prototype =
- null === e
- ? Object.create(e)
- : ((n.prototype = e.prototype), new n()));
- })(e, t),
- e
- );
- })(Oe);
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */ var fr =
- function () {
- return (
- (fr =
- Object.assign ||
- function (t) {
- for (var e, n = 1, r = arguments.length; n < r; n++)
- for (var a in (e = arguments[n]))
- Object.prototype.hasOwnProperty.call(e, a) &&
- (t[a] = e[a]);
- return t;
- }),
- fr.apply(this, arguments)
- );
- },
- dr = (function () {
- function t() {
- this._events = {};
- }
- var e = t.prototype;
- return (
- (e.on = function (t, e) {
- if (Nt(t)) for (var n in t) this.on(n, t[n]);
- else this._addEvent(t, e, {});
- return this;
- }),
- (e.off = function (t, e) {
- if (t)
- if (Nt(t)) for (var n in t) this.off(n);
- else if (e) {
- var r = this._events[t];
- if (r) {
- var a = te(r, function (t) {
- return t.listener === e;
- });
- a > -1 && r.splice(a, 1);
- }
- } else this._events[t] = [];
- else this._events = {};
- return this;
- }),
- (e.once = function (t, e) {
- var n = this;
- return (
- e && this._addEvent(t, e, { once: !0 }),
- new Promise(function (e) {
- n._addEvent(t, e, { once: !0 });
- })
- );
- }),
- (e.emit = function (t, e) {
- var n = this;
- void 0 === e && (e = {});
- var r = this._events[t];
- if (!t || !r) return !0;
- var a = !1;
- return (
- (e.eventType = t),
- (e.stop = function () {
- a = !0;
- }),
- (e.currentTarget = this),
- (function () {
- for (var t = 0, e = 0, n = arguments.length; e < n; e++)
- t += arguments[e].length;
- var r = Array(t),
- a = 0;
- for (e = 0; e < n; e++)
- for (
- var i = arguments[e], o = 0, s = i.length;
- o < s;
- o++, a++
- )
- r[a] = i[o];
- return r;
- })(r).forEach(function (r) {
- r.listener(e), r.once && n.off(t, r.listener);
- }),
- !a
- );
- }),
- (e.trigger = function (t, e) {
- return void 0 === e && (e = {}), this.emit(t, e);
- }),
- (e._addEvent = function (t, e, n) {
- var r = this._events;
- (r[t] = r[t] || []), r[t].push(fr({ listener: e }, n));
- }),
- t
- );
- })();
- const pr = dr;
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */ var gr =
- function (t, e) {
- return (
- (gr =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (t, e) {
- t.__proto__ = e;
- }) ||
- function (t, e) {
- for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
- }),
- gr(t, e)
- );
- },
- mr = function () {
- return (
- (mr =
- Object.assign ||
- function (t) {
- for (var e, n = 1, r = arguments.length; n < r; n++)
- for (var a in (e = arguments[n]))
- Object.prototype.hasOwnProperty.call(e, a) &&
- (t[a] = e[a]);
- return t;
- }),
- mr.apply(this, arguments)
- );
- };
- function vr(t) {
- var e = t.container;
- return e === document.body
- ? [
- e.scrollLeft || document.documentElement.scrollLeft,
- e.scrollTop || document.documentElement.scrollTop
- ]
- : [e.scrollLeft, e.scrollTop];
- }
- function hr(t, e) {
- return (
- t.addEventListener('scroll', e),
- function () {
- t.removeEventListener('scroll', e);
- }
- );
- }
- function Ar(t) {
- return t
- ? Ft(t)
- ? document.querySelector(t)
- : Xt(t)
- ? t()
- : t instanceof Element
- ? t
- : 'current' in t
- ? t.current
- : 'value' in t
- ? t.value
- : void 0
- : null;
- }
- var br = (function (t) {
- function e() {
- var e = (null !== t && t.apply(this, arguments)) || this;
- return (
- (e._startRect = null),
- (e._startPos = []),
- (e._prevTime = 0),
- (e._timer = 0),
- (e._prevScrollPos = [0, 0]),
- (e._isWait = !1),
- (e._flag = !1),
- (e._currentOptions = null),
- (e._lock = !1),
- (e._unregister = null),
- (e._onScroll = function () {
- var t = e._currentOptions;
- !e._lock &&
- t &&
- e.emit('scrollDrag', {
- next: function (n) {
- e.checkScroll({ container: t.container, inputEvent: n });
- }
- });
- }),
- e
- );
- }
- !(function (t, e) {
- function n() {
- this.constructor = t;
- }
- gr(t, e),
- (t.prototype =
- null === e
- ? Object.create(e)
- : ((n.prototype = e.prototype), new n()));
- })(e, t);
- var n = e.prototype;
- return (
- (n.dragStart = function (t, e) {
- var n = Ar(e.container);
- if (n) {
- var r = 0,
- a = 0,
- i = 0,
- o = 0;
- if (n === document.body)
- (i = window.innerWidth), (o = window.innerHeight);
- else {
- var s = n.getBoundingClientRect();
- (r = s.top), (a = s.left), (i = s.width), (o = s.height);
- }
- (this._flag = !0),
- (this._startPos = [t.clientX, t.clientY]),
- (this._startRect = { top: r, left: a, width: i, height: o }),
- (this._prevScrollPos = this._getScrollPosition([0, 0], e)),
- (this._currentOptions = e),
- this._registerScrollEvent(e);
- } else this._flag = !1;
- }),
- (n.drag = function (t, e) {
- if ((clearTimeout(this._timer), this._flag)) {
- var n = t.clientX,
- r = t.clientY,
- a = e.threshold,
- i = void 0 === a ? 0 : a,
- o = this._startRect,
- s = this._startPos;
- this._currentOptions = e;
- var l = [0, 0];
- return (
- o.top > r - i
- ? (s[1] > o.top || r < s[1]) && (l[1] = -1)
- : o.top + o.height < r + i &&
- (s[1] < o.top + o.height || r > s[1]) &&
- (l[1] = 1),
- o.left > n - i
- ? (s[0] > o.left || n < s[0]) && (l[0] = -1)
- : o.left + o.width < n + i &&
- (s[0] < o.left + o.width || n > s[0]) &&
- (l[0] = 1),
- !(!l[0] && !l[1]) &&
- this._continueDrag(
- mr(mr({}, e), { direction: l, inputEvent: t, isDrag: !0 })
- )
- );
- }
- }),
- (n.checkScroll = function (t) {
- var e = this;
- if (this._isWait) return !1;
- var n = t.prevScrollPos,
- r = void 0 === n ? this._prevScrollPos : n,
- a = t.direction,
- i = t.throttleTime,
- o = void 0 === i ? 0 : i,
- s = t.inputEvent,
- l = t.isDrag,
- c = this._getScrollPosition(a || [0, 0], t),
- u = c[0] - r[0],
- f = c[1] - r[1],
- d = a || [u ? Math.abs(u) / u : 0, f ? Math.abs(f) / f : 0];
- return (
- (this._prevScrollPos = c),
- (this._lock = !1),
- !(
- (!u && !f) ||
- (this.emit('move', {
- offsetX: d[0] ? u : 0,
- offsetY: d[1] ? f : 0,
- inputEvent: s
- }),
- o &&
- l &&
- (clearTimeout(this._timer),
- (this._timer = window.setTimeout(function () {
- e._continueDrag(t);
- }, o))),
- 0)
- )
- );
- }),
- (n.dragEnd = function () {
- (this._flag = !1),
- (this._lock = !1),
- clearTimeout(this._timer),
- this._unregisterScrollEvent();
- }),
- (n._getScrollPosition = function (t, e) {
- var n = e.container,
- r = e.getScrollPosition;
- return (void 0 === r ? vr : r)({
- container: Ar(n),
- direction: t
- });
- }),
- (n._continueDrag = function (t) {
- var e,
- n = this,
- r = t.container,
- a = t.direction,
- i = t.throttleTime,
- o = t.useScroll,
- s = t.isDrag,
- l = t.inputEvent;
- if (!(!this._flag || (s && this._isWait))) {
- var c = $t(),
- u = Math.max(i + this._prevTime - c, 0);
- if (u > 0)
- return (
- clearTimeout(this._timer),
- (this._timer = window.setTimeout(function () {
- n._continueDrag(t);
- }, u)),
- !1
- );
- this._prevTime = c;
- var f = this._getScrollPosition(a, t);
- (this._prevScrollPos = f),
- s && (this._isWait = !0),
- o || (this._lock = !0);
- var d = { container: Ar(r), direction: a, inputEvent: l };
- return (
- null === (e = t.requestScroll) ||
- void 0 === e ||
- e.call(t, d),
- this.emit('scroll', d),
- (this._isWait = !1),
- o ||
- this.checkScroll(
- mr(mr({}, t), {
- prevScrollPos: f,
- direction: a,
- inputEvent: l
- })
- )
- );
- }
- }),
- (n._registerScrollEvent = function (t) {
- this._unregisterScrollEvent();
- var e = t.checkScrollEvent;
- if (e) {
- var n = !0 === e ? hr : e,
- r = Ar(t.container);
- !0 !== e ||
- (r !== document.body && r !== document.documentElement)
- ? (this._unregister = n(r, this._onScroll))
- : (this._unregister = hr(window, this._onScroll));
- }
- }),
- (n._unregisterScrollEvent = function () {
- var t;
- null === (t = this._unregister) || void 0 === t || t.call(this),
- (this._unregister = null);
- }),
- e
- );
- })(pr);
- const wr = br;
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */ function kr(
- t
- ) {
- return pe(t, zt);
- }
- function yr(t) {
- return t.length < 3
- ? 0
- : Math.abs(
- (function (t) {
- for (var e = 0, n = t.length - 1; n >= 0; --n) e += t[n];
- return e;
- })(
- t.map(function (e, n) {
- var r = t[n + 1] || t[0];
- return e[0] * r[1] - r[0] * e[1];
- })
- )
- ) / 2;
- }
- function Ir(t, e) {
- var n = e.width,
- r = e.height,
- a = e.left,
- i = e.top,
- o = Er(t),
- s = o.minX,
- l = o.minY,
- c = o.maxX,
- u = o.maxY,
- f = n / (c - s),
- d = r / (u - l);
- return t.map(function (t) {
- return [a + (t[0] - s) * f, i + (t[1] - l) * d];
- });
- }
- function Er(t) {
- var e = t.map(function (t) {
- return t[0];
- }),
- n = t.map(function (t) {
- return t[1];
- });
- return {
- minX: Math.min.apply(Math, e),
- minY: Math.min.apply(Math, n),
- maxX: Math.max.apply(Math, e),
- maxY: Math.max.apply(Math, n)
- };
- }
- function Cr(t, e, n) {
- var r = t[0],
- a = t[1],
- i = Er(e),
- o = i.minX,
- s = i.maxX,
- l = [
- [o, a],
- [s, a]
- ],
- c = Br(l[0], l[1]),
- u = Dr(e),
- f = [];
- if (
- (u.forEach(function (e) {
- var n,
- r = Br(e[0], e[1]),
- i = e[0];
- (n = r),
- c.every(function (t, e) {
- return 0 === kr(t - n[e]);
- })
- ? f.push({ pos: t, line: e, type: 'line' })
- : Sr(xr(c, r), [l, e]).forEach(function (t) {
- e.some(function (e) {
- return (
- (r = t), !kr((n = e)[0] - r[0]) && !kr(n[1] - r[1])
- );
- var n, r;
- })
- ? f.push({ pos: t, line: e, type: 'point' })
- : 0 !== kr(i[1] - a) &&
- f.push({ pos: t, line: e, type: 'intersection' });
- });
- }),
- !n &&
- ee(f, function (t) {
- return t[0] === r;
- }))
- )
- return !0;
- var d = 0,
- p = {};
- return (
- f.forEach(function (t) {
- var e = t.pos,
- n = t.type,
- i = t.line;
- if (!(e[0] > r))
- if ('intersection' === n) ++d;
- else {
- if ('line' === n) return;
- if ('point' === n) {
- var o = ee(i, function (t) {
- return t[1] !== a;
- }),
- s = p[e[0]],
- l = o[1] > a ? 1 : -1;
- s ? s !== l && ++d : (p[e[0]] = l);
- }
- }
- }),
- d % 2 == 1
- );
- }
- function Br(t, e) {
- var n = t[0],
- r = t[1],
- a = e[0] - n,
- i = e[1] - r;
- Math.abs(a) < zt && (a = 0), Math.abs(i) < zt && (i = 0);
- var o = 0,
- s = 0,
- l = 0;
- return (
- a
- ? i
- ? ((s = 1), (l = -(o = -i / a) * n - r))
- : ((s = 1), (l = -r))
- : i && ((o = -1), (l = n)),
- [o, s, l]
- );
- }
- function xr(t, e) {
- var n = t[0],
- r = t[1],
- a = t[2],
- i = e[0],
- o = e[1],
- s = e[2],
- l = 0 === n && 0 === i,
- c = 0 === r && 0 === o,
- u = [];
- if (l && c) return [];
- if (l) {
- var f = -a / r;
- return f !== -s / o
- ? []
- : [
- [-1 / 0, f],
- [1 / 0, f]
- ];
- }
- if (c) {
- var d = -a / n;
- return d !== -s / i
- ? []
- : [
- [d, -1 / 0],
- [d, 1 / 0]
- ];
- }
- if (0 === n) u = [[(p = -(o * (g = -a / r) + s) / i), g]];
- else if (0 === i) u = [[(p = -(r * (g = -s / o) + a) / n), g]];
- else if (0 === r) u = [[(p = -a / n), (g = -(i * p + s) / o)]];
- else if (0 === o) u = [[(p = -s / i), (g = -(n * p + a) / r)]];
- else {
- var p, g;
- u = [
- [(p = (r * s - o * a) / (o * n - r * i)), (g = -(n * p + a) / r)]
- ];
- }
- return u.map(function (t) {
- return [t[0], t[1]];
- });
- }
- function Sr(t, e) {
- var n = e.map(function (t) {
- return [0, 1].map(function (e) {
- return [Math.min(t[0][e], t[1][e]), Math.max(t[0][e], t[1][e])];
- });
- }),
- r = [];
- if (2 === t.length) {
- var a = t[0],
- i = a[0],
- o = a[1];
- if (kr(i - t[1][0])) {
- if (!kr(o - t[1][1])) {
- var s = Math.max.apply(
- Math,
- n.map(function (t) {
- return t[0][0];
- })
- ),
- l = Math.min.apply(
- Math,
- n.map(function (t) {
- return t[0][1];
- })
- );
- if (kr(s - l) > 0) return [];
- r = [
- [s, o],
- [l, o]
- ];
- }
- } else {
- var c = Math.max.apply(
- Math,
- n.map(function (t) {
- return t[1][0];
- })
- ),
- u = Math.min.apply(
- Math,
- n.map(function (t) {
- return t[1][1];
- })
- );
- if (kr(c - u) > 0) return [];
- r = [
- [i, c],
- [i, u]
- ];
- }
- }
- return (
- r.length ||
- (r = t.filter(function (t) {
- var e = t[0],
- r = t[1];
- return n.every(function (t) {
- return (
- 0 <= kr(e - t[0][0]) &&
- 0 <= kr(t[0][1] - e) &&
- 0 <= kr(r - t[1][0]) &&
- 0 <= kr(t[1][1] - r)
- );
- });
- })),
- r.map(function (t) {
- return [kr(t[0]), kr(t[1])];
- })
- );
- }
- function Dr(t) {
- return (function () {
- for (var t = 0, e = 0, n = arguments.length; e < n; e++)
- t += arguments[e].length;
- var r = Array(t),
- a = 0;
- for (e = 0; e < n; e++)
- for (var i = arguments[e], o = 0, s = i.length; o < s; o++, a++)
- r[a] = i[o];
- return r;
- })(t.slice(1), [t[0]]).map(function (e, n) {
- return [t[n], e];
- });
- }
- function Rr(t, e) {
- var n = (function (t, e) {
- var n = t.slice(),
- r = e.slice();
- -1 === fe(n) && n.reverse(), -1 === fe(r) && r.reverse();
- var a = Dr(n),
- i = Dr(r),
- o = a.map(function (t) {
- return Br(t[0], t[1]);
- }),
- s = i.map(function (t) {
- return Br(t[0], t[1]);
- }),
- l = [];
- o.forEach(function (t, e) {
- var n = a[e],
- o = [];
- s.forEach(function (r, a) {
- var s = Sr(xr(t, r), [n, i[a]]);
- o.push.apply(
- o,
- s.map(function (t) {
- return {
- index1: e,
- index2: a,
- pos: t,
- type: 'intersection'
- };
- })
- );
- }),
- o.sort(function (t, e) {
- return de(n[0], t.pos) - de(n[0], e.pos);
- }),
- l.push.apply(l, o),
- Cr(n[1], r) &&
- l.push({ index1: e, index2: -1, pos: n[1], type: 'inside' });
- }),
- i.forEach(function (t, e) {
- if (Cr(t[1], n)) {
- var r = !1,
- a = te(l, function (t) {
- return t.index2 === e ? ((r = !0), !1) : !!r;
- });
- -1 === a &&
- ((r = !1),
- (a = te(l, function (t) {
- var n = t.index1,
- a = t.index2;
- return -1 === n && a + 1 === e ? ((r = !0), !1) : !!r;
- }))),
- -1 === a
- ? l.push({
- index1: -1,
- index2: e,
- pos: t[1],
- type: 'inside'
- })
- : l.splice(a, 0, {
- index1: -1,
- index2: e,
- pos: t[1],
- type: 'inside'
- });
- }
- });
- var c = {};
- return l.filter(function (t) {
- var e = t.pos,
- n = e[0] + 'x' + e[1];
- return !c[n] && ((c[n] = !0), !0);
- });
- })(t, e);
- return n.map(function (t) {
- return t.pos;
- });
- }
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */ var Qr =
- function (t, e) {
- return (
- (Qr =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (t, e) {
- t.__proto__ = e;
- }) ||
- function (t, e) {
- for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
- }),
- Qr(t, e)
- );
- },
- _r = function () {
- return (
- (_r =
- Object.assign ||
- function (t) {
- for (var e, n = 1, r = arguments.length; n < r; n++)
- for (var a in (e = arguments[n]))
- Object.prototype.hasOwnProperty.call(e, a) &&
- (t[a] = e[a]);
- return t;
- }),
- _r.apply(this, arguments)
- );
- };
- function Or(t) {
- return (
- 180 *
- ((e = [t[0].clientX, t[0].clientY]),
- (n = [t[1].clientX, t[1].clientY]),
- (r = n[0] - e[0]),
- (a = n[1] - e[1]),
- ((i = Math.atan2(a, r)) >= 0 ? i : i + 2 * Math.PI) / Math.PI)
- );
- var e, n, r, a, i;
- }
- function Mr(t) {
- return t
- ? t.touches
- ? (function (t) {
- for (var e = Math.min(t.length, 2), n = [], r = 0; r < e; ++r)
- n.push(Pr(t[r]));
- return n;
- })(t.touches)
- : [Pr(t)]
- : [];
- }
- function Tr(t, e, n) {
- var r = n.length,
- a = Yr(t, r),
- i = a.clientX,
- o = a.clientY,
- s = a.originalClientX,
- l = a.originalClientY,
- c = Yr(e, r),
- u = c.clientX,
- f = c.clientY,
- d = Yr(n, r);
- return {
- clientX: s,
- clientY: l,
- deltaX: i - u,
- deltaY: o - f,
- distX: i - d.clientX,
- distY: o - d.clientY
- };
- }
- function zr(t) {
- return Math.sqrt(
- Math.pow(t[0].clientX - t[1].clientX, 2) +
- Math.pow(t[0].clientY - t[1].clientY, 2)
- );
- }
- function Pr(t) {
- return { clientX: t.clientX, clientY: t.clientY };
- }
- function Yr(t, e) {
- void 0 === e && (e = t.length);
- for (
- var n = {
- clientX: 0,
- clientY: 0,
- originalClientX: 0,
- originalClientY: 0
- },
- r = 0;
- r < e;
- ++r
- ) {
- var a = t[r];
- (n.originalClientX +=
- 'originalClientX' in a ? a.originalClientX : a.clientX),
- (n.originalClientY +=
- 'originalClientY' in a ? a.originalClientY : a.clientY),
- (n.clientX += a.clientX),
- (n.clientY += a.clientY);
- }
- return e
- ? {
- clientX: n.clientX / e,
- clientY: n.clientY / e,
- originalClientX: n.originalClientX / e,
- originalClientY: n.originalClientY / e
- }
- : n;
- }
- var Gr = (function () {
- function t(t) {
- (this.prevClients = []),
- (this.startClients = []),
- (this.movement = 0),
- (this.length = 0),
- (this.startClients = t),
- (this.prevClients = t),
- (this.length = t.length);
- }
- return (
- (t.prototype.getAngle = function (t) {
- return void 0 === t && (t = this.prevClients), Or(t);
- }),
- (t.prototype.getRotation = function (t) {
- return (
- void 0 === t && (t = this.prevClients),
- Or(t) - Or(this.startClients)
- );
- }),
- (t.prototype.getPosition = function (t, e) {
- void 0 === t && (t = this.prevClients);
- var n = Tr(
- t || this.prevClients,
- this.prevClients,
- this.startClients
- ),
- r = n.deltaX,
- a = n.deltaY;
- return (
- (this.movement += Math.sqrt(r * r + a * a)),
- (this.prevClients = t),
- n
- );
- }),
- (t.prototype.getPositions = function (t) {
- void 0 === t && (t = this.prevClients);
- var e = this.prevClients;
- return this.startClients.map(function (n, r) {
- return Tr([t[r]], [e[r]], [n]);
- });
- }),
- (t.prototype.getMovement = function (t) {
- var e = this.movement;
- if (!t) return e;
- var n = Yr(t, this.length),
- r = Yr(this.prevClients, this.length),
- a = n.clientX - r.clientX,
- i = n.clientY - r.clientY;
- return Math.sqrt(a * a + i * i) + e;
- }),
- (t.prototype.getDistance = function (t) {
- return void 0 === t && (t = this.prevClients), zr(t);
- }),
- (t.prototype.getScale = function (t) {
- return (
- void 0 === t && (t = this.prevClients),
- zr(t) / zr(this.startClients)
- );
- }),
- (t.prototype.move = function (t, e) {
- this.startClients.forEach(function (n) {
- (n.clientX -= t), (n.clientY -= e);
- }),
- this.prevClients.forEach(function (n) {
- (n.clientX -= t), (n.clientY -= e);
- });
- }),
- t
- );
- })(),
- Nr = ['textarea', 'input'],
- Ur = (function (t) {
- function e(e, n) {
- void 0 === n && (n = {});
- var r = t.call(this) || this;
- (r.options = {}),
- (r.flag = !1),
- (r.pinchFlag = !1),
- (r.data = {}),
- (r.isDrag = !1),
- (r.isPinch = !1),
- (r.clientStores = []),
- (r.targets = []),
- (r.prevTime = 0),
- (r.doubleFlag = !1),
- (r._useMouse = !1),
- (r._useTouch = !1),
- (r._useDrag = !1),
- (r._dragFlag = !1),
- (r._isTrusted = !1),
- (r._isMouseEvent = !1),
- (r._isSecondaryButton = !1),
- (r._preventMouseEvent = !1),
- (r._prevInputEvent = null),
- (r._isDragAPI = !1),
- (r._isIdle = !0),
- (r._window = window),
- (r.onDragStart = function (t, e) {
- if (
- (void 0 === e && (e = !0), r.flag || !1 !== t.cancelable)
- ) {
- var n = t.type.indexOf('drag') >= -1;
- if (!r.flag || !n) {
- r._isDragAPI = !0;
- var a = r.options,
- i = a.container,
- o = a.pinchOutside,
- s = a.preventWheelClick,
- l = a.preventRightClick,
- c = a.preventDefault,
- u = a.checkInput,
- f = a.dragFocusedInput,
- d = a.preventClickEventOnDragStart,
- p = a.preventClickEventOnDrag,
- g = a.preventClickEventByCondition,
- m = r._useTouch,
- v = !r.flag;
- if (
- ((r._isSecondaryButton =
- 3 === t.which || 2 === t.button),
- (s && (2 === t.which || 1 === t.button)) ||
- (l && (3 === t.which || 2 === t.button)))
- )
- return r.stop(), !1;
- if (v) {
- var h = r._window.document.activeElement,
- A = t.target;
- if (A) {
- var b = A.tagName.toLowerCase(),
- w = Nr.indexOf(b) > -1,
- k = A.isContentEditable;
- if (w || k) {
- if (u || (!f && h === A)) return !1;
- if (
- h &&
- (h === A ||
- (k && h.isContentEditable && h.contains(A)))
- ) {
- if (!f) return !1;
- A.blur();
- }
- } else if ((c || 'touchstart' === t.type) && h) {
- var y = h.tagName.toLowerCase();
- (h.isContentEditable || Nr.indexOf(y) > -1) &&
- h.blur();
- }
- (d || p || g) &&
- be(r._window, 'click', r._onClick, !0);
- }
- (r.clientStores = [new Gr(Mr(t))]),
- (r._isIdle = !1),
- (r.flag = !0),
- (r.isDrag = !1),
- (r._isTrusted = e),
- (r._dragFlag = !0),
- (r._prevInputEvent = t),
- (r.data = {}),
- (r.doubleFlag = $t() - r.prevTime < 200),
- (r._isMouseEvent = (function (t) {
- return (
- t &&
- (t.type.indexOf('mouse') > -1 || 'button' in t)
- );
- })(t)),
- !r._isMouseEvent &&
- r._preventMouseEvent &&
- (r._preventMouseEvent = !1),
- !1 ===
- (r._preventMouseEvent ||
- r.emit(
- 'dragStart',
- _r(
- _r(
- {
- data: r.data,
- datas: r.data,
- inputEvent: t,
- isMouseEvent: r._isMouseEvent,
- isSecondaryButton: r._isSecondaryButton,
- isTrusted: e,
- isDouble: r.doubleFlag
- },
- r.getCurrentStore().getPosition()
- ),
- {
- preventDefault: function () {
- t.preventDefault();
- },
- preventDrag: function () {
- r._dragFlag = !1;
- }
- }
- )
- )) && r.stop(),
- r._isMouseEvent && r.flag && c && t.preventDefault();
- }
- if (!r.flag) return !1;
- var I = 0;
- if (
- (v
- ? (r._attchDragEvent(),
- m &&
- o &&
- (I = setTimeout(function () {
- be(i, 'touchstart', r.onDragStart, {
- passive: !1
- });
- })))
- : m && o && we(i, 'touchstart', r.onDragStart),
- r.flag &&
- (function (t) {
- return t.touches && t.touches.length >= 2;
- })(t))
- ) {
- if (
- (clearTimeout(I),
- v && t.touches.length !== t.changedTouches.length)
- )
- return;
- r.pinchFlag || r.onPinchStart(t);
- }
- }
- }
- }),
- (r.onDrag = function (t, e) {
- if (r.flag) {
- var n = r.options.preventDefault;
- !r._isMouseEvent && n && t.preventDefault(),
- (r._prevInputEvent = t);
- var a = Mr(t),
- i = r.moveClients(a, t, !1);
- if (r._dragFlag) {
- if (
- (r.pinchFlag || i.deltaX || i.deltaY) &&
- !1 ===
- (r._preventMouseEvent ||
- r.emit(
- 'drag',
- _r(_r({}, i), { isScroll: !!e, inputEvent: t })
- ))
- )
- return void r.stop();
- r.pinchFlag && r.onPinch(t, a);
- }
- r.getCurrentStore().getPosition(a, !0);
- }
- }),
- (r.onDragEnd = function (t) {
- if (r.flag) {
- var e = r.options,
- n = e.pinchOutside,
- a = e.container,
- i = e.preventClickEventOnDrag,
- o = e.preventClickEventOnDragStart,
- s = e.preventClickEventByCondition,
- l = r.isDrag;
- (i || o || s) &&
- requestAnimationFrame(function () {
- r._allowClickEvent();
- }),
- s || o || !i || l || r._allowClickEvent(),
- r._useTouch && n && we(a, 'touchstart', r.onDragStart),
- r.pinchFlag && r.onPinchEnd(t);
- var c = (null == t ? void 0 : t.touches) ? Mr(t) : [];
- 0 !== c.length && r.options.keepDragging
- ? r._addStore(new Gr(c))
- : (r.flag = !1);
- var u = r._getPosition(),
- f = $t(),
- d = !l && r.doubleFlag;
- (r._prevInputEvent = null),
- (r.prevTime = l || d ? 0 : f),
- r.flag ||
- (r._dettachDragEvent(),
- r._preventMouseEvent ||
- r.emit(
- 'dragEnd',
- _r(
- {
- data: r.data,
- datas: r.data,
- isDouble: d,
- isDrag: l,
- isClick: !l,
- isMouseEvent: r._isMouseEvent,
- isSecondaryButton: r._isSecondaryButton,
- inputEvent: t,
- isTrusted: r._isTrusted
- },
- u
- )
- ),
- (r.clientStores = []),
- r._isMouseEvent ||
- ((r._preventMouseEvent = !0),
- requestAnimationFrame(function () {
- requestAnimationFrame(function () {
- r._preventMouseEvent = !1;
- });
- })),
- (r._isIdle = !0));
- }
- }),
- (r.onBlur = function () {
- r.onDragEnd();
- }),
- (r._allowClickEvent = function () {
- we(r._window, 'click', r._onClick, !0);
- }),
- (r._onClick = function (t) {
- r._allowClickEvent(), (r._preventMouseEvent = !1);
- var e = r.options.preventClickEventByCondition;
- (null == e ? void 0 : e(t)) ||
- (t.stopPropagation(), t.preventDefault());
- }),
- (r._onContextMenu = function (t) {
- r.options.preventRightClick
- ? r.onDragEnd(t)
- : t.preventDefault();
- }),
- (r._passCallback = function () {});
- var a = [].concat(e),
- i = a[0];
- (r._window = Ce(i) ? i : Ee(i)),
- (r.options = _r(
- {
- checkInput: !1,
- container: i && !('document' in i) ? Ee(i) : i,
- preventRightClick: !0,
- preventWheelClick: !0,
- preventClickEventOnDragStart: !1,
- preventClickEventOnDrag: !1,
- preventClickEventByCondition: null,
- preventDefault: !0,
- checkWindowBlur: !1,
- keepDragging: !1,
- pinchThreshold: 0,
- events: ['touch', 'mouse']
- },
- n
- ));
- var o = r.options,
- s = o.container,
- l = o.events,
- c = o.checkWindowBlur;
- if (
- ((r._useDrag = l.indexOf('drag') > -1),
- (r._useTouch = l.indexOf('touch') > -1),
- (r._useMouse = l.indexOf('mouse') > -1),
- (r.targets = a),
- r._useDrag &&
- a.forEach(function (t) {
- be(t, 'dragstart', r.onDragStart);
- }),
- r._useMouse &&
- (a.forEach(function (t) {
- be(t, 'mousedown', r.onDragStart),
- be(t, 'mousemove', r._passCallback);
- }),
- be(s, 'contextmenu', r._onContextMenu)),
- c && be(Ee(), 'blur', r.onBlur),
- r._useTouch)
- ) {
- var u = { passive: !1 };
- a.forEach(function (t) {
- be(t, 'touchstart', r.onDragStart, u),
- be(t, 'touchmove', r._passCallback, u);
- });
- }
- return r;
- }
- return (
- (function (t, e) {
- function n() {
- this.constructor = t;
- }
- Qr(t, e),
- (t.prototype =
- null === e
- ? Object.create(e)
- : ((n.prototype = e.prototype), new n()));
- })(e, t),
- (e.prototype.stop = function () {
- (this.isDrag = !1),
- (this.data = {}),
- (this.clientStores = []),
- (this.pinchFlag = !1),
- (this.doubleFlag = !1),
- (this.prevTime = 0),
- (this.flag = !1),
- (this._isIdle = !0),
- this._allowClickEvent(),
- this._dettachDragEvent(),
- (this._isDragAPI = !1);
- }),
- (e.prototype.getMovement = function (t) {
- return (
- this.getCurrentStore().getMovement(t) +
- this.clientStores.slice(1).reduce(function (t, e) {
- return t + e.movement;
- }, 0)
- );
- }),
- (e.prototype.isDragging = function () {
- return this.isDrag;
- }),
- (e.prototype.isIdle = function () {
- return this._isIdle;
- }),
- (e.prototype.isFlag = function () {
- return this.flag;
- }),
- (e.prototype.isPinchFlag = function () {
- return this.pinchFlag;
- }),
- (e.prototype.isDoubleFlag = function () {
- return this.doubleFlag;
- }),
- (e.prototype.isPinching = function () {
- return this.isPinch;
- }),
- (e.prototype.scrollBy = function (t, e, n, r) {
- void 0 === r && (r = !0),
- this.flag &&
- (this.clientStores[0].move(t, e), r && this.onDrag(n, !0));
- }),
- (e.prototype.move = function (t, e) {
- var n = t[0],
- r = t[1],
- a = this.getCurrentStore().prevClients;
- return this.moveClients(
- a.map(function (t) {
- var e = t.clientX,
- a = t.clientY;
- return {
- clientX: e + n,
- clientY: a + r,
- originalClientX: e,
- originalClientY: a
- };
- }),
- e,
- !0
- );
- }),
- (e.prototype.triggerDragStart = function (t) {
- this.onDragStart(t, !1);
- }),
- (e.prototype.setEventData = function (t) {
- var e = this.data;
- for (var n in t) e[n] = t[n];
- return this;
- }),
- (e.prototype.setEventDatas = function (t) {
- return this.setEventData(t);
- }),
- (e.prototype.getCurrentEvent = function (t) {
- return (
- void 0 === t && (t = this._prevInputEvent),
- _r(
- _r(
- { data: this.data, datas: this.data },
- this._getPosition()
- ),
- {
- movement: this.getMovement(),
- isDrag: this.isDrag,
- isPinch: this.isPinch,
- isScroll: !1,
- inputEvent: t
- }
- )
- );
- }),
- (e.prototype.getEventData = function () {
- return this.data;
- }),
- (e.prototype.getEventDatas = function () {
- return this.data;
- }),
- (e.prototype.unset = function () {
- var t = this,
- e = this.targets,
- n = this.options.container;
- this.off(),
- we(this._window, 'blur', this.onBlur),
- this._useDrag &&
- e.forEach(function (e) {
- we(e, 'dragstart', t.onDragStart);
- }),
- this._useMouse &&
- (e.forEach(function (e) {
- we(e, 'mousedown', t.onDragStart);
- }),
- we(n, 'contextmenu', this._onContextMenu)),
- this._useTouch &&
- (e.forEach(function (e) {
- we(e, 'touchstart', t.onDragStart);
- }),
- we(n, 'touchstart', this.onDragStart)),
- (this._prevInputEvent = null),
- this._allowClickEvent(),
- this._dettachDragEvent();
- }),
- (e.prototype.onPinchStart = function (t) {
- var e = this,
- n = this.options.pinchThreshold;
- if (!(this.isDrag && this.getMovement() > n)) {
- var r = new Gr(Mr(t));
- (this.pinchFlag = !0),
- this._addStore(r),
- !1 ===
- this.emit(
- 'pinchStart',
- _r(
- _r(
- {
- data: this.data,
- datas: this.data,
- angle: r.getAngle(),
- touches: this.getCurrentStore().getPositions()
- },
- r.getPosition()
- ),
- {
- inputEvent: t,
- isTrusted: this._isTrusted,
- preventDefault: function () {
- t.preventDefault();
- },
- preventDrag: function () {
- e._dragFlag = !1;
- }
- }
- )
- ) && (this.pinchFlag = !1);
- }
- }),
- (e.prototype.onPinch = function (t, e) {
- if (this.flag && this.pinchFlag && !(e.length < 2)) {
- var n = this.getCurrentStore();
- (this.isPinch = !0),
- this.emit(
- 'pinch',
- _r(
- _r(
- {
- data: this.data,
- datas: this.data,
- movement: this.getMovement(e),
- angle: n.getAngle(e),
- rotation: n.getRotation(e),
- touches: n.getPositions(e),
- scale: n.getScale(e),
- distance: n.getDistance(e)
- },
- n.getPosition(e)
- ),
- { inputEvent: t, isTrusted: this._isTrusted }
- )
- );
- }
- }),
- (e.prototype.onPinchEnd = function (t) {
- if (this.pinchFlag) {
- var e = this.isPinch;
- (this.isPinch = !1), (this.pinchFlag = !1);
- var n = this.getCurrentStore();
- this.emit(
- 'pinchEnd',
- _r(
- _r(
- {
- data: this.data,
- datas: this.data,
- isPinch: e,
- touches: n.getPositions()
- },
- n.getPosition()
- ),
- { inputEvent: t }
- )
- );
- }
- }),
- (e.prototype.getCurrentStore = function () {
- return this.clientStores[0];
- }),
- (e.prototype.moveClients = function (t, e, n) {
- var r = this._getPosition(t, n),
- a = this.isDrag;
- (r.deltaX || r.deltaY) && (this.isDrag = !0);
- var i = !1;
- return (
- !a && this.isDrag && (i = !0),
- _r(_r({ data: this.data, datas: this.data }, r), {
- movement: this.getMovement(t),
- isDrag: this.isDrag,
- isPinch: this.isPinch,
- isScroll: !1,
- isMouseEvent: this._isMouseEvent,
- isSecondaryButton: this._isSecondaryButton,
- inputEvent: e,
- isTrusted: this._isTrusted,
- isFirstDrag: i
- })
- );
- }),
- (e.prototype._addStore = function (t) {
- this.clientStores.splice(0, 0, t);
- }),
- (e.prototype._getPosition = function (t, e) {
- var n = this.getCurrentStore().getPosition(t, e),
- r = this.clientStores.slice(1).reduce(function (t, e) {
- var n = e.getPosition();
- return (t.distX += n.distX), (t.distY += n.distY), t;
- }, n),
- a = r.distX,
- i = r.distY;
- return _r(_r({}, n), { distX: a, distY: i });
- }),
- (e.prototype._attchDragEvent = function () {
- var t = this._window,
- e = this.options.container,
- n = { passive: !1 };
- this._isDragAPI &&
- (be(e, 'dragover', this.onDrag, n),
- be(t, 'dragend', this.onDragEnd)),
- this._useMouse &&
- (be(e, 'mousemove', this.onDrag),
- be(t, 'mouseup', this.onDragEnd)),
- this._useTouch &&
- (be(e, 'touchmove', this.onDrag, n),
- be(t, 'touchend', this.onDragEnd, n),
- be(t, 'touchcancel', this.onDragEnd, n));
- }),
- (e.prototype._dettachDragEvent = function () {
- var t = this._window,
- e = this.options.container;
- this._isDragAPI &&
- (we(e, 'dragover', this.onDrag),
- we(t, 'dragend', this.onDragEnd)),
- this._useMouse &&
- (we(e, 'mousemove', this.onDrag),
- we(t, 'mouseup', this.onDragEnd)),
- this._useTouch &&
- (we(e, 'touchstart', this.onDragStart),
- we(e, 'touchmove', this.onDrag),
- we(t, 'touchend', this.onDragEnd),
- we(t, 'touchcancel', this.onDragEnd));
- }),
- e
- );
- })(pr),
- Fr = function (t) {
- for (var e = 5381, n = t.length; n; )
- e = (33 * e) ^ t.charCodeAt(--n);
- return e >>> 0;
- };
- function Lr(t, e, n, r, a) {
- var i = ke(r),
- o = i.createElement('style');
- return (
- o.setAttribute('type', 'text/css'),
- o.setAttribute('data-styled-id', t),
- o.setAttribute('data-styled-count', '1'),
- n.nonce && o.setAttribute('nonce', n.nonce),
- (o.innerHTML = (function (t, e, n) {
- return n.original
- ? e
- : e.replace(/([^};{\s}][^};{]*|^\s*){/gm, function (e, n) {
- var r = n.trim();
- return (
- (r ? qt(r) : [''])
- .map(function (e) {
- var n = e.trim();
- return 0 === n.indexOf('@')
- ? n
- : n.indexOf(':global') > -1
- ? n.replace(/\:global/g, '')
- : n.indexOf(':host') > -1
- ? ''.concat(n.replace(/\:host/g, '.'.concat(t)))
- : n
- ? '.'.concat(t, ' ').concat(n)
- : '.'.concat(t);
- })
- .join(', ') + ' {'
- );
- });
- })(t, e, n)),
- (a || i.head || i.body).appendChild(o),
- o
- );
- }
- function Xr(t) {
- var e = 'rCS' + Fr(t).toString(36);
- return {
- className: e,
- inject: function (n, r) {
- void 0 === r && (r = {});
- var a = (function (t) {
- if (t && t.getRootNode) {
- var e = t.getRootNode();
- if (11 === e.nodeType) return e;
- }
- })(n),
- i = (a || n.ownerDocument || document).querySelector(
- 'style[data-styled-id="'.concat(e, '"]')
- );
- if (i) {
- var o = parseFloat(i.getAttribute('data-styled-count')) || 0;
- i.setAttribute('data-styled-count', ''.concat(o + 1));
- } else i = Lr(e, t, r, n, a);
- return {
- destroy: function () {
- var t,
- e = parseFloat(i.getAttribute('data-styled-count')) || 0;
- e <= 1
- ? (i.remove
- ? i.remove()
- : null === (t = i.parentNode) ||
- void 0 === t ||
- t.removeChild(i),
- (i = null))
- : i.setAttribute('data-styled-count', ''.concat(e - 1));
- }
- };
- }
- };
- }
- var jr = function () {
- return (
- (jr =
- Object.assign ||
- function (t) {
- for (var e, n = 1, r = arguments.length; n < r; n++)
- for (var a in (e = arguments[n]))
- Object.prototype.hasOwnProperty.call(e, a) && (t[a] = e[a]);
- return t;
- }),
- jr.apply(this, arguments)
- );
- };
- function Wr(t, e) {
- var n,
- r = Xr(e),
- a = r.className;
- return (
- (n = function (e, n) {
- var i = e.className,
- o = void 0 === i ? '' : i;
- e.cspNonce;
- var s = (function (t, e) {
- var n = {};
- for (var r in t)
- Object.prototype.hasOwnProperty.call(t, r) &&
- e.indexOf(r) < 0 &&
- (n[r] = t[r]);
- if (
- null != t &&
- 'function' == typeof Object.getOwnPropertySymbols
- ) {
- var a = 0;
- for (r = Object.getOwnPropertySymbols(t); a < r.length; a++)
- e.indexOf(r[a]) < 0 &&
- Object.prototype.propertyIsEnumerable.call(t, r[a]) &&
- (n[r[a]] = t[r[a]]);
- }
- return n;
- })(e, ['className', 'cspNonce']),
- l = mn();
- return (
- (function (t, e, n) {
- vn(
- function () {
- null == t || t(e());
- },
- n,
- !0
- );
- })(
- n,
- function () {
- return l.current;
- },
- []
- ),
- vn(function () {
- var t = r.inject(l.current, { nonce: e.cspNonce });
- return function () {
- t.destroy();
- };
- }, []),
- ln(
- t,
- jr(
- {
- ref: l,
- 'data-styled-id': a,
- className: ''.concat(o, ' ').concat(a)
- },
- s
- )
- )
- );
- }),
- (n._fr = !0),
- n
- );
- }
- var Hr = function (t, e) {
- return (
- (Hr =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (t, e) {
- t.__proto__ = e;
- }) ||
- function (t, e) {
- for (var n in e)
- Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- }),
- Hr(t, e)
- );
- };
- function Vr(t, e) {
- if ('function' != typeof e && null !== e)
- throw new TypeError(
- 'Class extends value ' +
- String(e) +
- ' is not a constructor or null'
- );
- function n() {
- this.constructor = t;
- }
- Hr(t, e),
- (t.prototype =
- null === e
- ? Object.create(e)
- : ((n.prototype = e.prototype), new n()));
- }
- var qr = function () {
- return (
- (qr =
- Object.assign ||
- function (t) {
- for (var e, n = 1, r = arguments.length; n < r; n++)
- for (var a in (e = arguments[n]))
- Object.prototype.hasOwnProperty.call(e, a) && (t[a] = e[a]);
- return t;
- }),
- qr.apply(this, arguments)
- );
- };
- function Kr(t, e) {
- var n = 'function' == typeof Symbol && t[Symbol.iterator];
- if (!n) return t;
- var r,
- a,
- i = n.call(t),
- o = [];
- try {
- for (; (void 0 === e || e-- > 0) && !(r = i.next()).done; )
- o.push(r.value);
- } catch (s) {
- a = { error: s };
- } finally {
- try {
- r && !r.done && (n = i.return) && n.call(i);
- } finally {
- if (a) throw a.error;
- }
- }
- return o;
- }
- function Zr(t, e, n) {
- if (n || 2 === arguments.length)
- for (var r, a = 0, i = e.length; a < i; a++)
- (!r && a in e) ||
- (r || (r = Array.prototype.slice.call(e, 0, a)), (r[a] = e[a]));
- return t.concat(r || Array.prototype.slice.call(e));
- }
- function Jr(t, e) {
- return qr({ events: [], props: [], name: t }, e);
- }
- var $r,
- ta,
- ea,
- na = ['n', 'w', 's', 'e'],
- ra = ['n', 'w', 's', 'e', 'nw', 'ne', 'sw', 'se'],
- aa =
- void 0 === $r &&
- (function () {
- if (
- 'undefined' == typeof navigator ||
- !navigator ||
- !navigator.userAgentData
- )
- return !1;
- var t = navigator.userAgentData,
- e = t.brands || t.uaList;
- return !(!e || !e.length);
- })()
- ? (function (t) {
- var e = navigator.userAgentData,
- n = (e.uaList || e.brands).slice(),
- r = t && t.fullVersionList,
- a = e.mobile || !1,
- i = n[0],
- o = (
- (t && t.platform) ||
- e.platform ||
- navigator.platform
- ).toLowerCase(),
- s = {
- name: i.brand,
- version: i.version,
- majorVersion: -1,
- webkit: !1,
- webkitVersion: '-1',
- chromium: !1,
- chromiumVersion: '-1',
- webview: !!In(Sn, n).brand || Rn(bn())
- },
- l = { name: 'unknown', version: '-1', majorVersion: -1 };
- s.webkit =
- !s.chromium &&
- hn(xn, function (t) {
- return En(n, t);
- });
- var c = In(Bn, n);
- if (
- ((s.chromium = !!c.brand),
- (s.chromiumVersion = c.version),
- !s.chromium)
- ) {
- var u = In(xn, n);
- (s.webkit = !!u.brand), (s.webkitVersion = u.version);
- }
- var f = An(Dn, function (t) {
- return new RegExp('' + t.test, 'g').exec(o);
- });
- if (
- ((l.name = f ? f.id : ''),
- t && (l.version = t.platformVersion),
- r && r.length)
- ) {
- var d = In(Cn, r);
- (s.name = d.brand || s.name),
- (s.version = d.version || s.version);
- } else {
- var p = In(Cn, n);
- (s.name = p.brand || s.name),
- (s.version = p.brand && t ? t.uaFullVersion : p.version);
- }
- return (
- s.webkit && (l.name = a ? 'ios' : 'mac'),
- 'ios' === l.name && s.webview && (s.version = '-1'),
- (l.version = kn(l.version)),
- (s.version = kn(s.version)),
- (l.majorVersion = parseInt(l.version, 10)),
- (s.majorVersion = parseInt(s.version, 10)),
- { browser: s, os: l, isMobile: a, isHints: !0 }
- );
- })()
- : (function (t) {
- var e = bn(t),
- n = !!/mobi/g.exec(e),
- r = {
- name: 'unknown',
- version: '-1',
- majorVersion: -1,
- webview: Rn(e),
- chromium: !1,
- chromiumVersion: '-1',
- webkit: !1,
- webkitVersion: '-1'
- },
- a = { name: 'unknown', version: '-1', majorVersion: -1 },
- i = yn(Cn, e),
- o = i.preset,
- s = i.version,
- l = yn(Dn, e),
- c = l.preset,
- u = l.version,
- f = yn(Bn, e);
- if (
- ((r.chromium = !!f.preset),
- (r.chromiumVersion = f.version),
- !r.chromium)
- ) {
- var d = yn(xn, e);
- (r.webkit = !!d.preset), (r.webkitVersion = d.version);
- }
- return (
- c &&
- ((a.name = c.id),
- (a.version = u),
- (a.majorVersion = parseInt(u, 10))),
- o &&
- ((r.name = o.id),
- (r.version = s),
- r.webview &&
- 'ios' === a.name &&
- 'safari' !== r.name &&
- (r.webview = !1)),
- (r.majorVersion = parseInt(r.version, 10)),
- { browser: r, os: a, isMobile: n, isHints: !1 }
- );
- })($r),
- ia = aa.browser.webkit,
- oa =
- ia &&
- ((ta =
- 'undefined' == typeof window
- ? { userAgent: '' }
- : window.navigator),
- !!(ea = /applewebkit\/([^\s]+)/g.exec(
- ta.userAgent.toLowerCase()
- )) && parseFloat(ea[1]) < 605),
- sa = aa.browser.name,
- la = parseInt(aa.browser.version, 10),
- ca = 'chrome' === sa,
- ua = aa.browser.chromium,
- fa = parseInt(aa.browser.chromiumVersion, 10) || 0,
- da = (ca && la >= 109) || (ua && fa >= 109),
- pa = 'firefox' === sa,
- ga = parseInt(aa.browser.webkitVersion, 10) >= 612 || la >= 15,
- ma = 'moveable-',
- va = ra
- .map(function (t) {
- var e = '',
- n = '',
- r = 'center',
- a = 'center',
- i = 'calc(var(--moveable-control-padding, 20) * -1px)';
- return (
- t.indexOf('n') > -1 &&
- ((e = 'top: '.concat(i, ';')), (a = 'bottom')),
- t.indexOf('s') > -1 && ((e = 'top: 0px;'), (a = 'top')),
- t.indexOf('w') > -1 &&
- ((n = 'left: '.concat(i, ';')), (r = 'right')),
- t.indexOf('e') > -1 && ((n = 'left: 0px;'), (r = 'left')),
- '.around-control[data-direction*="'
- .concat(t, '"] {\n ')
- .concat(n)
- .concat(e, '\n transform-origin: ')
- .concat(r, ' ')
- .concat(a, ';\n }')
- );
- })
- .join('\n'),
- ha =
- '\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'
- .concat(
- va,
- '\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'
- )
- .concat(
- [0, 15, 30, 45, 60, 75, 90, 105, 120, 135, 150, 165]
- .map(function (t) {
- return '\n.direction[data-rotation="'
- .concat(t, '"], :global .view-control-rotation')
- .concat(t, ' {\n')
- .concat(
- (function (t) {
- var e = (function (t, e) {
- return 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="'
- .concat(32 * t, 'px" height="')
- .concat(
- 32 * t,
- '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('
- )
- .concat(
- e,
- 'deg);transform-origin: 16px 16px"></path></svg>'
- );
- })(1, t),
- n = (45 * Math.round(t / 45)) % 180,
- r = 'ns-resize';
- return (
- 135 === n
- ? (r = 'nwse-resize')
- : 45 === n
- ? (r = 'nesw-resize')
- : 90 === n && (r = 'ew-resize'),
- 'cursor:'
- .concat(r, ";cursor: url('")
- .concat(e, "') 16 16, ")
- .concat(r, ';')
- );
- })(t),
- '\n}\n'
- );
- })
- .join('\n'),
- '\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'
- )
- .concat(
- oa
- ? ':global svg *:before {\ncontent:"";\ntransform-origin: inherit;\n}'
- : '',
- '\n'
- ),
- Aa = [
- [0, 1, 2],
- [1, 0, 3],
- [2, 0, 3],
- [3, 1, 2]
- ],
- ba = 1e-4,
- wa = 1e-7,
- ka = 1e-9,
- ya = Math.pow(10, 10),
- Ia = -ya,
- Ea = {
- n: [0, -1],
- e: [1, 0],
- s: [0, 1],
- w: [-1, 0],
- nw: [-1, -1],
- ne: [1, -1],
- sw: [-1, 1],
- se: [1, 1]
- },
- Ca = {
- n: [0, 1],
- e: [1, 3],
- s: [3, 2],
- w: [2, 0],
- nw: [0],
- ne: [1],
- sw: [2],
- se: [3]
- },
- Ba = {
- n: 0,
- s: 180,
- w: 270,
- e: 90,
- nw: 315,
- ne: 45,
- sw: 225,
- se: 135
- },
- xa = [
- 'isMoveableElement',
- 'updateRect',
- 'updateTarget',
- 'destroy',
- 'dragStart',
- 'isInside',
- 'hitTest',
- 'setState',
- 'getRect',
- 'request',
- 'isDragging',
- 'getManager',
- 'forceUpdate',
- 'waitToChangeTarget',
- 'updateSelectors',
- 'getTargets',
- 'stopDrag',
- 'getControlBoxElement'
- ];
- function Sa(t, e, n, r, a, i) {
- var o, s;
- void 0 === i && (i = 'draggable');
- var l =
- null !==
- (s =
- null === (o = e.gestos[i]) || void 0 === o
- ? void 0
- : o.move(n, t.inputEvent)) && void 0 !== s
- ? s
- : {},
- c = l.originalDatas || l.datas,
- u = c[i] || (c[i] = {});
- return qr(qr({}, a ? Os(e, l) : l), {
- isPinch: !!r,
- parentEvent: !0,
- datas: u,
- originalDatas: t.originalDatas
- });
- }
- var Da = (function () {
- function t(t) {
- var e;
- void 0 === t && (t = 'draggable'),
- (this.ableName = t),
- (this.prevX = 0),
- (this.prevY = 0),
- (this.startX = 0),
- (this.startY = 0),
- (this.isDrag = !1),
- (this.isFlag = !1),
- (this.datas = { draggable: {} }),
- (this.datas = (((e = {})[t] = {}), e));
- }
- return (
- (t.prototype.dragStart = function (t, e) {
- (this.isDrag = !1), (this.isFlag = !1);
- var n = e.originalDatas;
- return (
- (this.datas = n),
- n[this.ableName] || (n[this.ableName] = {}),
- qr(qr({}, this.move(t, e.inputEvent)), { type: 'dragstart' })
- );
- }),
- (t.prototype.drag = function (t, e) {
- return this.move([t[0] - this.prevX, t[1] - this.prevY], e);
- }),
- (t.prototype.move = function (t, e) {
- var n,
- r,
- a = !1;
- if (this.isFlag) {
- var i = this.isDrag;
- (n = this.prevX + t[0]),
- (r = this.prevY + t[1]),
- (t[0] || t[1]) && (this.isDrag = !0),
- !i && this.isDrag && (a = !0);
- } else
- (this.prevX = t[0]),
- (this.prevY = t[1]),
- (this.startX = t[0]),
- (this.startY = t[1]),
- (n = t[0]),
- (r = t[1]),
- (this.isFlag = !0);
- return (
- (this.prevX = n),
- (this.prevY = r),
- {
- type: 'drag',
- clientX: n,
- clientY: r,
- inputEvent: e,
- isFirstDrag: a,
- isDrag: this.isDrag,
- distX: n - this.startX,
- distY: r - this.startY,
- deltaX: t[0],
- deltaY: t[1],
- datas: this.datas[this.ableName],
- originalDatas: this.datas,
- parentEvent: !0,
- parentGesto: this
- }
- );
- }),
- t
- );
- })();
- function Ra(t, e, n, r) {
- var a = 16 === t.length ? 4 : 3,
- i = Kr(es(t, n, r, a), 4),
- o = Kr(i[0], 2),
- s = o[0],
- l = o[1],
- c = Kr(i[1], 2),
- u = c[0],
- f = c[1],
- d = Kr(i[2], 2),
- p = d[0],
- g = d[1],
- m = Kr(i[3], 2),
- v = m[0],
- h = m[1],
- A = Kr(ts(t, e, a), 2),
- b = A[0],
- w = A[1],
- k = Math.min(s, u, p, v),
- y = Math.min(l, f, g, h),
- I = Math.max(s, u, p, v);
- return (
- (s = s - k || 0),
- {
- left: k,
- top: y,
- right: I,
- bottom: Math.max(l, f, g, h),
- origin: [(b = b - k || 0), (w = w - y || 0)],
- pos1: [s, (l = l - y || 0)],
- pos2: [(u = u - k || 0), (f = f - y || 0)],
- pos3: [(p = p - k || 0), (g = g - y || 0)],
- pos4: [(v = v - k || 0), (h = h - y || 0)],
- direction: Vs(t[0] * t[a + 1])
- }
- );
- }
- function Qa(t, e) {
- var n = e.clientX,
- r = e.clientY,
- a = e.datas,
- i = t.state,
- o = i.moveableClientRect,
- s = i.rootMatrix,
- l = i.is3d,
- c = i.pos1,
- u = Kr(Fn(_s(s, [n - o.left, r - o.top], l ? 4 : 3), c), 2),
- f = Kr(Ya({ datas: a, distX: u[0], distY: u[1] }), 2);
- return [f[0], f[1]];
- }
- function _a(t, e) {
- var n = e.datas,
- r = t.state,
- a = r.allMatrix,
- i = r.beforeMatrix,
- o = r.is3d,
- s = r.left,
- l = r.top,
- c = r.origin,
- u = r.offsetMatrix,
- f = r.targetMatrix,
- d = r.transformOrigin,
- p = o ? 4 : 3;
- (n.is3d = o),
- (n.matrix = a),
- (n.targetMatrix = f),
- (n.beforeMatrix = i),
- (n.offsetMatrix = u),
- (n.transformOrigin = d),
- (n.inverseMatrix = Tn(a, p)),
- (n.inverseBeforeMatrix = Tn(i, p)),
- (n.absoluteOrigin = Pn(Un([s, l], c), p)),
- (n.startDragBeforeDist = Xn(
- n.inverseBeforeMatrix,
- n.absoluteOrigin,
- p
- )),
- (n.startDragDist = Xn(n.inverseMatrix, n.absoluteOrigin, p));
- }
- function Oa(t, e) {
- var n = t.datas,
- r = t.originalDatas.beforeRenderable,
- a = n.transformIndex,
- i = r.nextTransforms,
- o = i.length,
- s = r.nextTransformAppendedIndexes,
- l = -1;
- -1 === a
- ? ('translate' === e
- ? (l = 0)
- : 'rotate' === e &&
- (l = te(i, function (t) {
- return t.match(/scale\(/g);
- })),
- -1 === l && (l = i.length),
- (n.transformIndex = l))
- : (l = ee(s, function (t) {
- return t.index === a && t.functionName === e;
- })
- ? a
- : a +
- s.filter(function (t) {
- return t.index < a;
- }).length);
- var c = (function (t, e) {
- var n,
- r = or(t),
- a = t.slice(0, e < 0 ? void 0 : e),
- i = t.slice(0, e < 0 ? void 0 : e + 1),
- o = t[e] || '',
- s = e < 0 ? [] : t.slice(e),
- l = e < 0 ? [] : t.slice(e + 1),
- c = r.slice(0, e < 0 ? void 0 : e),
- u = r.slice(0, e < 0 ? void 0 : e + 1),
- f = null !== (n = r[e]) && void 0 !== n ? n : or([''])[0],
- d = e < 0 ? [] : r.slice(e),
- p = e < 0 ? [] : r.slice(e + 1),
- g = f ? [f] : [],
- m = ir(c),
- v = ir(u),
- h = ir(d),
- A = ir(p),
- b = Nn(m, h, 4);
- return {
- transforms: t,
- beforeFunctionMatrix: m,
- beforeFunctionMatrix2: v,
- targetFunctionMatrix: ir(g),
- afterFunctionMatrix: h,
- afterFunctionMatrix2: A,
- allFunctionMatrix: b,
- beforeFunctions: c,
- beforeFunctions2: u,
- targetFunction: g[0],
- afterFunctions: d,
- afterFunctions2: p,
- beforeFunctionTexts: a,
- beforeFunctionTexts2: i,
- targetFunctionText: o,
- afterFunctionTexts: s,
- afterFunctionTexts2: l
- };
- })(i, l),
- u = c.targetFunction,
- f = 'rotate' === e ? 'rotateZ' : e;
- (n.beforeFunctionTexts = c.beforeFunctionTexts),
- (n.afterFunctionTexts = c.afterFunctionTexts),
- (n.beforeTransform = c.beforeFunctionMatrix),
- (n.beforeTransform2 = c.beforeFunctionMatrix2),
- (n.targetTansform = c.targetFunctionMatrix),
- (n.afterTransform = c.afterFunctionMatrix),
- (n.afterTransform2 = c.afterFunctionMatrix2),
- (n.targetAllTransform = c.allFunctionMatrix),
- u.functionName === f
- ? (n.afterFunctionTexts.splice(0, 1), (n.isAppendTransform = !1))
- : o > l &&
- ((n.isAppendTransform = !0),
- (r.nextTransformAppendedIndexes = Zr(
- Zr([], Kr(s), !1),
- [{ functionName: e, index: l, isAppend: !0 }],
- !1
- )));
- }
- function Ma(t, e, n) {
- return ''
- .concat(t.beforeFunctionTexts.join(' '), ' ')
- .concat(t.isAppendTransform ? n : e, ' ')
- .concat(t.afterFunctionTexts.join(' '));
- }
- function Ta(t) {
- var e = t.datas,
- n = Kr(Pa({ datas: e, distX: t.distX, distY: t.distY }), 2);
- return Xn(
- za(
- e,
- (function (t, e) {
- for (var n = $n(e), r = 0; r < e - 1; ++r)
- n[e * (e - 1) + r] = t[r] || 0;
- return n;
- })([n[0], n[1]], 4)
- ),
- Pn([0, 0, 0], 4),
- 4
- );
- }
- function za(t, e, n) {
- var r = t.beforeTransform,
- a = t.afterTransform,
- i = t.beforeTransform2,
- o = t.afterTransform2,
- s = t.targetAllTransform,
- l = n ? Nn(s, e, 4) : Nn(e, s, 4),
- c = Nn(Tn(n ? i : r, 4), l, 4);
- return Nn(c, Tn(n ? o : a, 4), 4);
- }
- function Pa(t) {
- var e = t.datas,
- n = t.distX,
- r = t.distY,
- a = e.inverseBeforeMatrix,
- i = e.is3d,
- o = e.startDragBeforeDist,
- s = i ? 4 : 3;
- return Fn(Xn(a, Un(e.absoluteOrigin, [n, r]), s), o);
- }
- function Ya(t, e) {
- var n = t.datas,
- r = t.distX,
- a = t.distY,
- i = n.inverseBeforeMatrix,
- o = n.inverseMatrix,
- s = n.is3d,
- l = n.startDragBeforeDist,
- c = n.startDragDist,
- u = s ? 4 : 3;
- return Fn(Xn(e ? i : o, Un(n.absoluteOrigin, [r, a]), u), e ? l : c);
- }
- function Ga(t) {
- var e = [];
- return (
- t[1] >= 0 && (t[0] >= 0 && e.push(3), t[0] <= 0 && e.push(2)),
- t[1] <= 0 && (t[0] >= 0 && e.push(1), t[0] <= 0 && e.push(0)),
- e
- );
- }
- function Na(t, e) {
- var n = (e[0] + 1) / 2,
- r = (e[1] + 1) / 2,
- a = [
- Yt(t[0][0], t[1][0], n, 1 - n),
- Yt(t[0][1], t[1][1], n, 1 - n)
- ],
- i = [
- Yt(t[2][0], t[3][0], n, 1 - n),
- Yt(t[2][1], t[3][1], n, 1 - n)
- ];
- return [Yt(a[0], i[0], r, 1 - r), Yt(a[1], i[1], r, 1 - r)];
- }
- function Ua(t, e, n, r) {
- return Nn(t, Fo(e, r, n), r);
- }
- function Fa(t) {
- var e = Wa(t);
- return {
- setTransform: function (n, r) {
- void 0 === r && (r = -1),
- (e.startTransforms = Ut(n) ? n : Vt(n)),
- Xa(t, r);
- },
- setTransformIndex: function (e) {
- Xa(t, e);
- }
- };
- }
- function La(t, e) {
- Xa(
- t,
- te(Wa(t).startTransforms, function (t) {
- return 0 === t.indexOf(''.concat(e, '('));
- })
- );
- }
- function Xa(t, e) {
- var n = Wa(t),
- r = t.datas;
- if (((r.transformIndex = e), -1 !== e)) {
- var a = n.startTransforms[e];
- if (a) {
- var i = or([a]);
- r.startValue = i[0].functionValue;
- }
- }
- }
- function ja(t, e) {
- Wa(t).nextTransforms = Vt(e);
- }
- function Wa(t) {
- return t.originalDatas.beforeRenderable;
- }
- function Ha(t) {
- return t.originalDatas.beforeRenderable.nextTransforms;
- }
- function Va(t) {
- return (Ha(t) || []).join(' ');
- }
- function qa(t) {
- return Wa(t).nextStyle;
- }
- function Ka(t, e, n, r, a) {
- ja(a, e);
- var i = no.drag(t, Sa(a, t.state, n, r, !1)),
- o = i ? i.transform : e;
- return qr(qr({ transform: e, drag: i }, ws({ transform: o }, a)), {
- afterTransform: o
- });
- }
- function Za(t, e, n, r, a, i) {
- var o = (function (t, e, n, r) {
- var a,
- i = t.transformOrigin,
- o = t.offsetMatrix,
- s = t.is3d ? 4 : 3;
- if (Ft(n)) {
- var l = e.beforeTransform,
- c = e.afterTransform;
- a = Yn(r ? ar(n) : Nn(Nn(l, ar([n]), 4), c, 4), 4, s);
- } else a = n;
- return Ua(o, a, i, s);
- })(t.state, a, e, i),
- s = (function (t, e, n, r) {
- void 0 === r && (r = t.state.allMatrix);
- var a = t.state,
- i = a.width,
- o = a.height,
- s = a.is3d ? 4 : 3,
- l = [(i / 2) * (1 + e[0]) + n[0], (o / 2) * (1 + e[1]) + n[1]];
- return ts(r, l, s);
- })(t, n, r, o);
- return s;
- }
- function Ja(t, e, n, r, a, i, o) {
- var s = Za(t, e, n, a, i, o),
- l = t.state,
- c = l.left,
- u = l.top,
- f = t.props.groupable,
- d = f ? c : 0,
- p = f ? u : 0,
- g = Fn(r, s);
- return Fn(g, [d, p]);
- }
- function $a(t, e, n, r, a, i) {
- var o = t.props.groupable,
- s = t.state,
- l = s.transformOrigin,
- c = s.offsetMatrix,
- u = s.is3d,
- f = s.width,
- d = s.height,
- p = s.left,
- g = s.top,
- m = i.fixedDirection,
- v = i.nextTargetMatrix || s.targetMatrix,
- h = u ? 4 : 3,
- A = (function (t, e, n, r, a, i) {
- return (
- void 0 === r && (r = e),
- void 0 === a && (a = n),
- void 0 === i && (i = [0, 0]),
- t
- ? t.map(function (t, o) {
- var s = Zt(t),
- l = s.value,
- c = s.unit,
- u = o ? a : r,
- f = o ? n : e;
- return '%' === t || isNaN(l)
- ? f * (u ? i[o] / u : 0)
- : '%' !== c
- ? l
- : (f * l) / 100;
- })
- : i
- );
- })(a, e, n, f, d, l),
- b = o ? p : 0,
- w = o ? g : 0,
- k = (function (t, e, n, r, a, i) {
- var o = Na(es(e, n, r, a), i);
- return [t[0] - o[0], t[1] - o[1]];
- })(r, Ua(c, v, A, h), e, n, h, m);
- return Fn(k, [b, w]);
- }
- function ti(t) {
- if (t && t.getRootNode) {
- var e = t.getRootNode();
- if (11 === e.nodeType) return e;
- }
- }
- function ei(t, e, n) {
- for (
- var r,
- a,
- i,
- o,
- s,
- l = t,
- c = [],
- u = ye(t) || Ie(t),
- f = (!n && t === e) || t === u,
- d = f,
- p = !1,
- g = 3,
- m = !1,
- v = Wo(e, e, !0).offsetParent,
- h = 1;
- l && !d;
- ) {
- d = f;
- var A = oi(l),
- b = A('position'),
- w = A('scale'),
- k = jo(l),
- y = 'fixed' === b,
- I =
- ((o = Uo(k)),
- void 0 === (s = void 0) && (s = 6 === o.length),
- s ? [o[0], o[1], 0, o[2], o[3], 0, o[4], o[5], 1] : o),
- E = void 0,
- C = !1,
- B = !1,
- x = 0,
- S = 0,
- D = 0,
- R = 0,
- Q = { hasTransform: !1, fixedContainer: null };
- y && ((m = !0), (v = (Q = Ko(l)).fixedContainer));
- var _ = I.length;
- p || 16 !== _ || ((p = !0), (g = 4), qo(c), i && (i = Yn(i, 3, 4))),
- p && 9 === _ && (I = Yn(I, 3, 4));
- var O = Ho(l, t),
- M = O.tagName,
- T = O.hasOffset,
- z = O.isSVG,
- P = O.origin,
- Y = O.targetOrigin,
- G = Kr(O.offset, 2),
- N = G[0],
- U = G[1];
- 'svg' === M &&
- i &&
- (c.push({ type: 'target', target: l, matrix: $o(l, g) }),
- c.push({ type: 'offset', target: l, matrix: $n(g) }));
- var F = parseFloat(A('zoom')) || 1;
- if (y) (E = Q.fixedContainer), (C = !0);
- else {
- var L = Wo(l, e, !1, !0, A),
- X = L.offsetZoom;
- if (
- ((E = L.offsetParent),
- (C = L.isEnd),
- (B = L.isStatic),
- (h *= X),
- (L.isCustomElement || 1 !== X) && B)
- )
- (N -= E.offsetLeft), (U -= E.offsetTop);
- else if ((pa || da) && L.parentSlotElement) {
- for (var j = E, W = 0, H = 0; j && ti(j); )
- (W += j.offsetLeft), (H += j.offsetTop), (j = j.offsetParent);
- (N -= W), (U -= H);
- }
- }
- if (
- (!ia ||
- ga ||
- !T ||
- z ||
- !B ||
- ('relative' !== b && 'static' !== b) ||
- ((N -= E.offsetLeft), (U -= E.offsetTop), (f = f || C)),
- y)
- )
- T && Q.hasTransform && ((D = E.clientLeft), (R = E.clientTop));
- else if (
- (T && v !== E && ((x = E.clientLeft), (S = E.clientTop)),
- T && E === u)
- ) {
- var V = Vo(l, !1);
- (N += V[0]), (U += V[1]);
- }
- if (
- (c.push({ type: 'target', target: l, matrix: Fo(I, g, P) }),
- w && '1' !== w && 'none' !== w)
- ) {
- var q = Kr(
- w.split(' ').map(function (t) {
- return parseFloat(t);
- }),
- 2
- ),
- K = q[0],
- Z = q[1],
- J = tr([K, void 0 === Z ? K : Z], g);
- c.push({ type: 'offset', target: l, matrix: $n(g) }),
- c.push({ type: 'target', target: l, matrix: Fo(J, g, P) });
- }
- if (T) {
- var $ = l === t,
- tt = $ ? 0 : l.scrollLeft,
- et = $ ? 0 : l.scrollTop;
- c.push({
- type: 'offset',
- target: l,
- matrix: er([N - tt + x - D, U - et + S - R], g)
- });
- } else c.push({ type: 'offset', target: l, origin: P });
- if (
- (1 !== F &&
- c.push({
- type: 'zoom',
- target: l,
- matrix: Fo(tr([F, F], g), g, [0, 0])
- }),
- i || (i = I),
- r || (r = P),
- a || (a = Y),
- d || y)
- )
- break;
- (l = E), (f = C), (n && l !== u) || (d = f);
- }
- return (
- i || (i = $n(g)),
- r || (r = [0, 0]),
- a || (a = [0, 0]),
- {
- zoom: h,
- offsetContainer: v,
- matrixes: c,
- targetMatrix: i,
- transformOrigin: r,
- targetOrigin: a,
- is3d: p,
- hasFixed: m
- }
- );
- }
- var ni = null,
- ri = null,
- ai = null;
- function ii(t) {
- t
- ? (window.Map && ((ni = new Map()), (ri = new Map())), (ai = []))
- : ((ni = null), (ai = null), (ri = null));
- }
- function oi(t) {
- var e = null == ni ? void 0 : ni.get(t);
- if (!e) {
- var n = Ee(t).getComputedStyle(t);
- if (!ni)
- return function (t) {
- return n[t];
- };
- (e = { style: n, cached: {} }), ni.set(t, e);
- }
- var r = e.cached,
- a = e.style;
- return function (t) {
- return t in r || (r[t] = a[t]), r[t];
- };
- }
- function si(t, e, n) {
- var r = n.originalDatas;
- r.groupable = r.groupable || {};
- var a = r.groupable;
- a.childDatas = a.childDatas || [];
- var i = a.childDatas;
- return t.moveables.map(function (t, r) {
- return (
- (i[r] = i[r] || {}),
- (i[r][e] = i[r][e] || {}),
- qr(qr({}, n), { datas: i[r][e], originalDatas: i[r] })
- );
- });
- }
- function li(t, e, n, r, a, i, o) {
- var s = !!n.match(/Start$/g),
- l = !!n.match(/End$/g),
- c = a.isPinch,
- u = a.datas,
- f = si(t, e.name, a),
- d = t.moveables,
- p = f.map(function (t, a) {
- var f = d[a],
- p = f.state,
- g = p.gestos,
- m = t;
- if (s) m = new Da(o).dragStart(r, t);
- else {
- if ((g[o] || (g[o] = u.childGestos[a]), !g[o])) return;
- m = Sa(t, p, r, c, i, o);
- }
- var v = e[n](f, qr(qr({}, m), { parentFlag: !0 }));
- return l && (g[o] = null), v;
- });
- return (
- s &&
- (u.childGestos = d.map(function (t) {
- return t.state.gestos[o];
- })),
- p
- );
- }
- function ci(t, e, n, r, a, i) {
- void 0 === a &&
- (a = function (t, e) {
- return e;
- });
- var o = !!n.match(/End$/g),
- s = si(t, e.name, r),
- l = t.moveables;
- return s.map(function (t, r) {
- var s,
- c = l[r];
- s = a(c, t);
- var u = e[n](c, qr(qr({}, s), { parentFlag: !0 }));
- return u && i && i(c, t, u, r), o && (c.state.gestos = {}), u;
- });
- }
- function ui(t, e, n, r) {
- var a = n.fixedDirection,
- i = n.fixedPosition,
- o = Na(r.datas.startPositions || hs(e.state), a),
- s = Kr(
- Xn(
- Jn((-t.rotation / 180) * Math.PI, 3),
- [o[0] - i[0], o[1] - i[1], 1],
- 3
- ),
- 2
- ),
- l = s[0],
- c = s[1];
- return (r.datas.originalX = l), (r.datas.originalY = c), r;
- }
- function fi(t, e, n, r) {
- var a = t.getState(),
- i = a.renderPoses,
- o = a.rotation,
- s = a.direction,
- l = ls(t.props, e).zoom,
- c = Do((o / Math.PI) * 180),
- u = {},
- f = t.renderState;
- f.renderDirectionMap || (f.renderDirectionMap = {});
- var d = f.renderDirectionMap;
- n.forEach(function (t) {
- var e = t.dir;
- u[e] = !0;
- });
- var p = Vs(s);
- return n.map(function (t) {
- var n = t.data,
- a = t.classNames,
- s = t.dir,
- f = Ca[s];
- if (!f || !u[s]) return null;
- d[s] = !0;
- var g = (pe(c, 15) + p * Ba[s] + 720) % 180,
- m = {};
- return (
- ae(n).forEach(function (t) {
- m['data-'.concat(t)] = n[t];
- }),
- r.createElement(
- 'div',
- qr(
- {
- className: Go.apply(
- void 0,
- Zr(['control', 'direction', s, e], Kr(a), !1)
- ),
- 'data-rotation': g,
- 'data-direction': s
- },
- m,
- {
- key: 'direction-'.concat(s),
- style: ss.apply(
- void 0,
- Zr(
- [o, l],
- Kr(
- f.map(function (t) {
- return i[t];
- })
- ),
- !1
- )
- )
- }
- )
- )
- );
- });
- }
- function di(t, e, n, r) {
- var a = ls(t.props, n),
- i = a.renderDirections,
- o = void 0 === i ? e : i,
- s = a.displayAroundControls;
- if (!o) return [];
- var l = !0 === o ? ra : o;
- return Zr(
- Zr([], Kr(s ? hi(t, r, n, l) : []), !1),
- Kr(
- fi(
- t,
- n,
- l.map(function (t) {
- return { data: {}, classNames: [], dir: t };
- }),
- r
- )
- ),
- !1
- );
- }
- function pi(t, e, n, r, a, i) {
- for (var o = [], s = 6; s < arguments.length; s++)
- o[s - 6] = arguments[s];
- var l = ue(n, r),
- c = e ? pe((l / Math.PI) * 180, 15) % 180 : -1;
- return t.createElement('div', {
- key: 'line-'.concat(i),
- className: Go.apply(
- void 0,
- Zr(['line', 'direction', e ? 'edge' : '', e], Kr(o), !1)
- ),
- 'data-rotation': c,
- 'data-line-key': i,
- 'data-direction': e,
- style: os(n, r, a, l)
- });
- }
- function gi(t, e, n, r, a) {
- return (!0 === n ? na : n)
- .map(function (n, i) {
- var o = Kr(Ca[n], 2),
- s = o[0],
- l = o[1];
- if (null != l)
- return pi(
- t,
- n,
- r[s],
- r[l],
- a,
- ''.concat(e, 'Edge').concat(i),
- e
- );
- })
- .filter(Boolean);
- }
- function mi(t) {
- return function (e, n) {
- var r = ls(e.props, t).edge;
- return r && (!0 === r || r.length)
- ? Zr(
- Zr(
- [],
- Kr(gi(n, t, r, e.getState().renderPoses, e.props.zoom)),
- !1
- ),
- Kr(
- (function (t, e, n) {
- return di(t, ['nw', 'ne', 'sw', 'se'], e, n);
- })(e, t, n)
- ),
- !1
- )
- : vi(e, t, n);
- };
- }
- function vi(t, e, n) {
- return di(t, ra, e, n);
- }
- function hi(t, e, n, r) {
- var a = t.renderState;
- a.renderDirectionMap || (a.renderDirectionMap = {});
- var i = t.getState(),
- o = i.renderPoses,
- s = i.rotation,
- l = i.direction,
- c = a.renderDirectionMap,
- u = t.props.zoom,
- f = Vs(l),
- d = (s / Math.PI) * 180;
- return (r || ae(c)).map(function (t) {
- var r = Ca[t];
- if (!r) return null;
- var a = (pe(d, 15) + f * Ba[t] + 720) % 180,
- i = ['around-control'];
- return (
- n && i.push('direction', n),
- e.createElement('div', {
- className: Go.apply(void 0, Zr([], Kr(i), !1)),
- 'data-rotation': a,
- 'data-direction': t,
- key: 'direction-around-'.concat(t),
- style: ss.apply(
- void 0,
- Zr(
- [s, u],
- Kr(
- r.map(function (t) {
- return o[t];
- })
- ),
- !1
- )
- )
- })
- );
- });
- }
- function Ai(t, e, n) {
- var r = t || {},
- a = r.position,
- i = void 0 === a ? 'client' : a,
- o = r.left,
- s = void 0 === o ? -1 / 0 : o,
- l = r.top,
- c = void 0 === l ? -1 / 0 : l,
- u = r.right,
- f = void 0 === u ? 1 / 0 : u,
- d = r.bottom,
- p = {
- position: i,
- left: s,
- top: c,
- right: f,
- bottom: void 0 === d ? 1 / 0 : d
- };
- return { vertical: wi(p, e, !0), horizontal: wi(p, n, !1) };
- }
- function bi(t, e) {
- var n = t.state,
- r = n.containerClientRect,
- a = r.clientHeight,
- i = r.clientWidth,
- o = r.clientLeft,
- s = r.clientTop,
- l = n.snapOffset,
- c = l.left,
- u = l.top,
- f = l.right,
- d = l.bottom,
- p = e || t.props.bounds || {},
- g = 'css' === (p.position || 'client'),
- m = p.left,
- v = void 0 === m ? -1 / 0 : m,
- h = p.top,
- A = void 0 === h ? -1 / 0 : h,
- b = p.right,
- w = void 0 === b ? (g ? -1 / 0 : 1 / 0) : b,
- k = p.bottom,
- y = void 0 === k ? (g ? -1 / 0 : 1 / 0) : k;
- return (
- g && ((w = i + f - c - w), (y = a + d - u - y)),
- {
- left: v + c - o,
- right: w + c - o,
- top: A + u - s,
- bottom: y + u - s
- }
- );
- }
- function wi(t, e, n) {
- var r = t[n ? 'left' : 'top'],
- a = t[n ? 'right' : 'bottom'],
- i = Math.min.apply(Math, Zr([], Kr(e), !1)),
- o = Math.max.apply(Math, Zr([], Kr(e), !1)),
- s = [];
- return (
- r + 1 > i && s.push({ isBound: !0, offset: i - r, pos: r }),
- a - 1 < o && s.push({ isBound: !0, offset: o - a, pos: a }),
- s.length || s.push({ isBound: !1, offset: 0, pos: 0 }),
- s.sort(function (t, e) {
- return qs(e.offset) - qs(t.offset);
- })
- );
- }
- function ki(t, e, n) {
- return (
- n
- ? t.map(function (t) {
- return qn(t, n);
- })
- : t
- ).some(function (t) {
- return (
- (t[0] < e.left && qs(t[0] - e.left) > 0.1) ||
- (t[0] > e.right && qs(t[0] - e.right) > 0.1) ||
- (t[1] < e.top && qs(t[1] - e.top) > 0.1) ||
- (t[1] > e.bottom && qs(t[1] - e.bottom) > 0.1)
- );
- });
- }
- function yi(t, e, n, r, a) {
- if (!t.props.bounds) return [];
- var i = (a * Math.PI) / 180,
- o = bi(t),
- s = o.left,
- l = o.top,
- c = o.right,
- u = o.bottom,
- f = s - r[0],
- d = c - r[0],
- p = l - r[1],
- g = u - r[1],
- m = { left: f, top: p, right: d, bottom: g };
- if (!ki(n, m, 0)) return [];
- var v = [];
- return (
- [
- [f, 0],
- [d, 0],
- [p, 1],
- [g, 1]
- ].forEach(function (t) {
- var r = Kr(t, 2),
- a = r[0],
- o = r[1];
- n.forEach(function (t) {
- var n = ue([0, 0], t);
- v.push.apply(
- v,
- Zr(
- [],
- Kr(
- (function (t, e, n) {
- var r = as(t),
- a = Math.sqrt(r * r - e * e) || 0;
- return [a, -a]
- .sort(function (e, r) {
- return qs(e - t[n ? 0 : 1]) - qs(r - t[n ? 0 : 1]);
- })
- .map(function (t) {
- return ue([0, 0], n ? [t, e] : [e, t]);
- });
- })(t, a, o)
- .map(function (t) {
- return i + t - n;
- })
- .filter(function (t) {
- return !ki(e, m, t);
- })
- .map(function (t) {
- return pe((180 * t) / Math.PI, wa);
- })
- ),
- !1
- )
- );
- });
- }),
- v
- );
- }
- var Ii = ['left', 'right', 'center'],
- Ei = ['top', 'bottom', 'middle'],
- Ci = { start: 'left', end: 'right', center: 'center' },
- Bi = { start: 'top', end: 'bottom', center: 'middle' };
- function xi(t, e) {
- var n = t.props,
- r = n.snappable,
- a = n.bounds,
- i = n.innerBounds,
- o = n.verticalGuidelines,
- s = n.horizontalGuidelines,
- l = n.snapGridWidth,
- c = n.snapGridHeight,
- u = t.state,
- f = u.guidelines,
- d = u.enableSnap;
- return !(
- !r ||
- !d ||
- (e && !0 !== r && r.indexOf(e) < 0) ||
- !(
- l ||
- c ||
- a ||
- i ||
- (f && f.length) ||
- (o && o.length) ||
- (s && s.length)
- )
- );
- }
- function Si(t) {
- return !1 === t
- ? {}
- : !0 !== t && t
- ? t
- : { left: !0, right: !0, top: !0, bottom: !0 };
- }
- function Di(t, e) {
- var n = (function (t, e) {
- var n = Si(t),
- r = {};
- for (var a in n) a in e && n[a] && (r[a] = e[a]);
- return r;
- })(t, e),
- r = Ei.filter(function (t) {
- return t in n;
- }),
- a = Ii.filter(function (t) {
- return t in n;
- });
- return {
- horizontalNames: r,
- verticalNames: a,
- horizontal: r.map(function (t) {
- return n[t];
- }),
- vertical: a.map(function (t) {
- return n[t];
- })
- };
- }
- function Ri(t, e, n, r, a, i) {
- void 0 === r && (r = []), void 0 === a && (a = []);
- var o = (function () {
- for (var t = [], e = 0; e < arguments.length; e++)
- t[e] = arguments[e];
- for (var n = t.length - 1, r = 0; r < n; ++r) {
- var a = t[r];
- if (!Gt(a)) return a;
- }
- return t[n];
- })(i, t.props.snapThreshold, 5);
- return Qi(t.state.guidelines, e, n, r, a, o);
- }
- function Qi(t, e, n, r, a, i) {
- return {
- vertical: Ti(t, 'vertical', e, i, r),
- horizontal: Ti(t, 'horizontal', n, i, a)
- };
- }
- function _i(t) {
- var e = '';
- return (
- -1 === t || 'top' === t || 'left' === t
- ? (e = 'start')
- : 0 === t || 'center' === t || 'middle' === t
- ? (e = 'center')
- : (1 !== t && 'right' !== t && 'bottom' !== t) || (e = 'end'),
- e
- );
- }
- function Oi(t, e, n) {
- var r = Di(t.props.snapDirections, e),
- a = Ri(
- t,
- r.vertical,
- r.horizontal,
- r.verticalNames.map(function (t) {
- return _i(t);
- }),
- r.horizontalNames.map(function (t) {
- return _i(t);
- }),
- n
- ),
- i = _i(r.horizontalNames[a.horizontal.index]),
- o = _i(r.verticalNames[a.vertical.index]);
- return {
- vertical: qr(qr({}, a.vertical), { direction: o }),
- horizontal: qr(qr({}, a.horizontal), { direction: i })
- };
- }
- function Mi(t) {
- var e = t.isSnap;
- if (!e)
- return { isSnap: !1, offset: 0, dist: -1, pos: 0, guideline: null };
- var n = t.posInfos[0],
- r = n.guidelineInfos[0],
- a = r.offset,
- i = r.dist,
- o = r.guideline;
- return { isSnap: e, offset: a, dist: i, pos: n.pos, guideline: o };
- }
- function Ti(t, e, n, r, a) {
- var i, o;
- if ((void 0 === a && (a = []), !t || !t.length))
- return { isSnap: !1, index: -1, direction: '', posInfos: [] };
- var s = 'vertical' === e ? 0 : 1,
- l = n
- .map(function (n, i) {
- var o = a[i] || '',
- l = t
- .map(function (t) {
- var e = t.pos,
- r = n - e[s];
- return {
- offset: r,
- dist: qs(r),
- guideline: t,
- direction: o
- };
- })
- .filter(function (t) {
- var n = t.guideline,
- a = t.dist;
- return !(n.type !== e || a > r);
- })
- .sort(function (t, e) {
- return t.dist - e.dist;
- });
- return { pos: n, index: i, guidelineInfos: l, direction: o };
- })
- .filter(function (t) {
- return t.guidelineInfos.length > 0;
- })
- .sort(function (t, e) {
- return t.guidelineInfos[0].dist - e.guidelineInfos[0].dist;
- }),
- c = l.length > 0;
- return {
- isSnap: c,
- index: c ? l[0].index : -1,
- direction:
- null !==
- (o =
- null === (i = l[0]) || void 0 === i ? void 0 : i.direction) &&
- void 0 !== o
- ? o
- : '',
- posInfos: l
- };
- }
- function zi(t, e, n, r) {
- void 0 === r && (r = 1);
- var a = [];
- n[0] && n[1]
- ? (a = [n, [-n[0], n[1]], [n[0], -n[1]]])
- : n[0] || n[1]
- ? t.props.keepRatio
- ? a.push([-1, -1], [-1, 1], [1, -1], [1, 1], n)
- : (a.push.apply(
- a,
- Zr(
- [],
- Kr(
- (function (t, e) {
- return Ga(e).map(function (e) {
- return t[e];
- });
- })(
- [
- [-1, -1],
- [1, -1],
- [-1, -1],
- [1, 1]
- ],
- n
- )
- ),
- !1
- )
- ),
- a.length > 1 &&
- a.push([(a[0][0] + a[1][0]) / 2, (a[0][1] + a[1][1]) / 2]))
- : [
- [-1, -1],
- [1, -1],
- [1, 1],
- [-1, 1]
- ].forEach(function (t, e, n) {
- var r = n[e + 1] || n[0];
- a.push(t), a.push([(t[0] + r[0]) / 2, (t[1] + r[1]) / 2]);
- });
- var i = a.map(function (t) {
- return Na(e, t);
- }),
- o = Ri(
- t,
- i.map(function (t) {
- return t[0];
- }),
- i.map(function (t) {
- return t[1];
- }),
- a.map(function (t) {
- return _i(t[0]);
- }),
- a.map(function (t) {
- return _i(t[1]);
- }),
- r
- ),
- s = _i(
- a.map(function (t) {
- return t[0];
- })[o.vertical.index]
- ),
- l = _i(
- a.map(function (t) {
- return t[1];
- })[o.horizontal.index]
- );
- return {
- vertical: qr(qr({}, o.vertical), { direction: s }),
- horizontal: qr(qr({}, o.horizontal), { direction: l })
- };
- }
- function Pi(t, e) {
- var n = qs(t.offset),
- r = qs(e.offset);
- return t.isBound && e.isBound
- ? r - n
- : t.isBound
- ? -1
- : e.isBound
- ? 1
- : t.isSnap && e.isSnap
- ? r - n
- : t.isSnap
- ? -1
- : e.isSnap || n < wa
- ? 1
- : r < wa
- ? -1
- : n - r;
- }
- function Yi(t, e) {
- return t.slice().sort(function (t, n) {
- var r = t.sign[e],
- a = n.sign[e],
- i = t.offset[e],
- o = n.offset[e];
- return r
- ? a
- ? Pi(
- { isBound: t.isBound, isSnap: t.isSnap, offset: i },
- { isBound: n.isBound, isSnap: n.isSnap, offset: o }
- )
- : -1
- : 1;
- })[0];
- }
- function Gi(t, e) {
- var n = ce([e[0][0], e[1][0]]),
- r = ce([e[0][1], e[1][1]]);
- return { vertical: n <= t[0], horizontal: r <= t[1] };
- }
- function Ni(t, e) {
- var n,
- r,
- a = Kr(e, 2),
- i = a[0],
- o = a[1],
- s = o[0] - i[0],
- l = o[1] - i[1];
- return (
- qs(s) < wa && (s = 0),
- qs(l) < wa && (l = 0),
- s
- ? l
- ? ((n = (l / s) * (t[0] - i[0]) + i[1]), (r = t[1]))
- : ((n = i[1]), (r = t[1]))
- : ((n = i[0]), (r = t[0])),
- n - r
- );
- }
- function Ui(t, e, n, r) {
- return (
- void 0 === r && (r = wa),
- t.every(function (t) {
- var a = Ni(t, e);
- return a <= 0 === n || qs(a) <= r;
- })
- );
- }
- function Fi(t, e, n, r, a) {
- return (
- void 0 === a && (a = 0),
- (r && e - a <= t) || (!r && t <= n + a)
- ? { isBound: !0, offset: r ? e - t : n - t }
- : { isBound: !1, offset: 0 }
- );
- }
- function Li(t, e, n, r, a, i) {
- var o,
- s,
- l = Kr(e, 2),
- c = l[0],
- u = l[1],
- f = t[0],
- d = n[0],
- p = n[1],
- g = zs(p[1] - d[1]),
- m = u,
- v = c,
- h = -c / u;
- return zs(p[0] - d[0])
- ? g || (i && !m)
- ? { isBound: !1, offset: 0 }
- : v
- ? Fi((d[1] - f[1]) / h + f[0], d[0], p[0], r, a)
- : {
- isBound: (s = qs((o = d[1] - f[1])) <= (a || 0)),
- offset: s ? o : 0
- }
- : i && !v
- ? { isBound: !1, offset: 0 }
- : m
- ? Fi(h * (d[0] - f[0]) + f[1], d[1], p[1], r, a)
- : {
- isBound: (s = qs((o = d[0] - f[0])) <= (a || 0)),
- offset: s ? o : 0
- };
- }
- function Xi(t, e, n) {
- return e.map(function (e) {
- var r = (function (t, e) {
- var n = e.line,
- r = e.centerSign,
- a = e.verticalSign,
- i = e.horizontalSign,
- o = e.lineConstants,
- s = t.props.innerBounds;
- if (!s)
- return {
- isAllBound: !1,
- isBound: !1,
- isVerticalBound: !1,
- isHorizontalBound: !1,
- offset: [0, 0]
- };
- var l = s.left,
- c = s.top,
- u = s.width,
- f = s.height,
- d = [
- [l, c],
- [l, c + f]
- ],
- p = [
- [l, c],
- [l + u, c]
- ],
- g = [
- [l + u, c],
- [l + u, c + f]
- ],
- m = [
- [l, c + f],
- [l + u, c + f]
- ];
- if (
- Ui(
- [
- [l, c],
- [l + u, c],
- [l, c + f],
- [l + u, c + f]
- ],
- n,
- r
- )
- )
- return {
- isAllBound: !1,
- isBound: !1,
- isVerticalBound: !1,
- isHorizontalBound: !1,
- offset: [0, 0]
- };
- var v = Li(n, o, p, a),
- h = Li(n, o, m, a),
- A = Li(n, o, d, i),
- b = Li(n, o, g, i),
- w = v.isBound && h.isBound,
- k = v.isBound || h.isBound,
- y = A.isBound && b.isBound,
- I = A.isBound || b.isBound,
- E = Qs(v.offset, h.offset),
- C = Qs(A.offset, b.offset),
- B = [0, 0],
- x = !1,
- S = !1;
- return (
- qs(C) < qs(E)
- ? ((B = [E, 0]), (x = k), (S = w))
- : ((B = [0, C]), (x = I), (S = y)),
- {
- isAllBound: S,
- isVerticalBound: k,
- isHorizontalBound: I,
- isBound: x,
- offset: B
- }
- );
- })(t, e),
- a = r.isBound,
- i = r.offset,
- o = r.isVerticalBound,
- s = r.isHorizontalBound,
- l = e.multiple,
- c = Ya({ datas: n, distX: i[0], distY: i[1] }).map(function (
- t,
- e
- ) {
- return t * (l[e] ? 2 / l[e] : 0);
- });
- return {
- sign: l,
- isBound: a,
- isVerticalBound: o,
- isHorizontalBound: s,
- isSnap: !1,
- offset: c
- };
- });
- }
- function ji(t, e, n) {
- var r,
- a = Xi(
- t,
- Wi(t, e, [0, 0], !1).map(function (t) {
- return qr(qr({}, t), {
- multiple: t.multiple.map(function (t) {
- return 2 * qs(t);
- })
- });
- }),
- n
- ),
- i = Yi(a, 0),
- o = Yi(a, 1),
- s = 0,
- l = 0,
- c = i.isVerticalBound || o.isVerticalBound,
- u = i.isHorizontalBound || o.isHorizontalBound;
- return (
- (c || u) &&
- ((r = Kr(
- (function (t, e) {
- var n = t.datas,
- r = t.distX,
- a = t.distY,
- i = n.beforeMatrix,
- o = n.matrix,
- s = n.is3d,
- l = n.startDragBeforeDist,
- c = n.startDragDist,
- u = n.absoluteOrigin,
- f = s ? 4 : 3;
- return Fn(Xn(e ? i : o, Un(e ? l : c, [r, a]), f), u);
- })({ datas: n, distX: -i.offset[0], distY: -o.offset[1] }),
- 2
- )),
- (s = r[0]),
- (l = r[1])),
- {
- vertical: { isBound: c, offset: s },
- horizontal: { isBound: u, offset: l }
- }
- );
- }
- function Wi(t, e, n, r) {
- var a = t.state,
- i = es(a.allMatrix, 100, 100, a.is3d ? 4 : 3),
- o = Na(i, [0, 0]);
- return (function (t, e) {
- var n = [],
- r = t[0],
- a = t[1];
- return (
- r && a
- ? n.push([[0, 2 * a], t, [-r, a]], [[2 * r, 0], t, [r, -a]])
- : r
- ? (n.push([
- [2 * r, 0],
- [r, 1],
- [r, -1]
- ]),
- e &&
- n.push(
- [
- [0, -1],
- [r, -1],
- [-r, -1]
- ],
- [
- [0, 1],
- [r, 1],
- [-r, 1]
- ]
- ))
- : a
- ? (n.push([
- [0, 2 * a],
- [1, a],
- [-1, a]
- ]),
- e &&
- n.push(
- [
- [-1, 0],
- [-1, a],
- [-1, -a]
- ],
- [
- [1, 0],
- [1, a],
- [1, -a]
- ]
- ))
- : n.push(
- [
- [-1, 0],
- [-1, -1],
- [-1, 1]
- ],
- [
- [1, 0],
- [1, -1],
- [1, 1]
- ],
- [
- [0, -1],
- [-1, -1],
- [1, -1]
- ],
- [
- [0, 1],
- [-1, 1],
- [1, 1]
- ]
- ),
- n
- );
- })(n, r).map(function (t) {
- var n = Kr(t, 3),
- r = n[0],
- a = n[1],
- s = n[2],
- l = [Na(i, a), Na(i, s)],
- c = (function (t) {
- var e = Kr(t, 2),
- n = e[0],
- r = e[1],
- a = r[0] - n[0],
- i = r[1] - n[1];
- Math.abs(a) < zt && (a = 0), Math.abs(i) < zt && (i = 0);
- var o = 0,
- s = 0,
- l = 0;
- return (
- a
- ? i
- ? ((s = 1), (l = (o = -i / a) * n[0] - n[1]))
- : ((s = 1), (l = -n[1]))
- : ((o = -1), (l = n[0])),
- [o, s, l].map(function (t) {
- return pe(t, zt);
- })
- );
- })(l),
- u = Gi(o, l),
- f = u.vertical,
- d = u.horizontal;
- return {
- multiple: r,
- centerSign: Ni(o, l) <= 0,
- verticalSign: f,
- horizontalSign: d,
- lineConstants: c,
- line: [Na(e, a), Na(e, s)]
- };
- });
- }
- function Hi(t, e, n, r) {
- var a = r
- ? t.map(function (t) {
- return qn(t, r);
- })
- : t;
- return [
- [a[0], a[1]],
- [a[1], a[3]],
- [a[3], a[2]],
- [a[2], a[0]]
- ].some(function (t) {
- var r = Ni(n, t) <= 0;
- return !Ui(e, t, r);
- });
- }
- function Vi(t, e, n, r, a) {
- var i = t.props.innerBounds,
- o = (a * Math.PI) / 180;
- if (!i) return [];
- var s = i.left,
- l = i.top,
- c = i.width,
- u = i.height,
- f = s - r[0],
- d = s + c - r[0],
- p = l - r[1],
- g = l + u - r[1],
- m = [
- [f, p],
- [d, p],
- [f, g],
- [d, g]
- ],
- v = Na(n, [0, 0]);
- if (!Hi(n, m, v, 0)) return [];
- var h = [],
- A = m.map(function (t) {
- return [as(t), ue([0, 0], t)];
- });
- return (
- [
- [n[0], n[1]],
- [n[1], n[3]],
- [n[3], n[2]],
- [n[2], n[0]]
- ].forEach(function (t) {
- var n = ue(
- [0, 0],
- (function (t) {
- var e = Kr(t, 2),
- n = e[0],
- r = e[1],
- a = r[0] - n[0],
- i = r[1] - n[1];
- if (!a) return [n[0], 0];
- if (!i) return [0, n[1]];
- var o = i / a,
- s = -o * n[0] + n[1];
- return [-s / (o + 1 / o), s / (o * o + 1)];
- })(t)
- ),
- r = (function (t) {
- var e = Kr(t, 2),
- n = e[0],
- r = e[1],
- a = r[0] - n[0],
- i = r[1] - n[1];
- if (!a) return qs(n[0]);
- if (!i) return qs(n[1]);
- var o = i / a;
- return qs((-o * n[0] + n[1]) / Math.sqrt(Math.pow(o, 2) + 1));
- })(t);
- h.push.apply(
- h,
- Zr(
- [],
- Kr(
- A.filter(function (t) {
- var e = Kr(t, 1)[0];
- return e && r <= e;
- })
- .map(function (t) {
- var e = Kr(t, 2),
- a = e[0],
- i = e[1],
- s = Math.acos(a ? r / a : 0);
- return [o + (i + s) - n, o + (i - s) - n];
- })
- .reduce(function (t, e) {
- return t.push.apply(t, Zr([], Kr(e), !1)), t;
- }, [])
- .filter(function (t) {
- return !Hi(e, m, v, t);
- })
- .map(function (t) {
- return pe((180 * t) / Math.PI, wa);
- })
- ),
- !1
- )
- );
- }),
- h
- );
- }
- function qi(t, e, n, r, a) {
- var i = (function (t, e, n, r) {
- var a = e[0] - t[0],
- i = e[1] - t[1];
- if ((qs(a) < zt && (a = 0), qs(i) < zt && (i = 0), !a))
- return r ? [0, 0] : [0, n];
- if (!i) return r ? [n, 0] : [0, 0];
- var o = i / a,
- s = t[1] - o * t[0];
- return r
- ? [n, o * (e[0] + n) + s - e[1]]
- : [(e[1] + n - s) / o - e[0], n];
- })(t, e, n, r);
- if (!i) return { isOutside: !1, offset: [0, 0] };
- var o = de(t, e),
- s = de(i, t),
- l = de(i, e),
- c = s > o || l > o,
- u = Kr(Ya({ datas: a, distX: i[0], distY: i[1] }), 2);
- return { offset: [u[0], u[1]], isOutside: c };
- }
- function Ki(t, e) {
- return t.isBound ? t.offset : e.isSnap ? Mi(e).offset : 0;
- }
- function Zi(t, e, n, r, a, i) {
- if (!xi(t, 'draggable'))
- return [
- { isSnap: !1, isBound: !1, offset: 0 },
- { isSnap: !1, isBound: !1, offset: 0 }
- ];
- var o = vs(i.absolutePoses, [e, n]),
- s = ns(o),
- l = s.left,
- c = s.right,
- u = s.top,
- f = s.bottom,
- d = {
- horizontal: o.map(function (t) {
- return t[1];
- }),
- vertical: o.map(function (t) {
- return t[0];
- })
- },
- p = Ji(
- t,
- a,
- Di(Si(t.props.snapDirections), {
- left: l,
- right: c,
- top: u,
- bottom: f,
- center: (l + c) / 2,
- middle: (u + f) / 2
- }),
- d
- ),
- g = p.vertical,
- m = p.horizontal,
- v = ji(t, o, i),
- h = v.vertical,
- A = v.horizontal,
- b = g.isSnap,
- w = m.isSnap,
- k = g.isBound || h.isBound,
- y = m.isBound || A.isBound,
- I = Kr(
- (function (t, e, n, r, a) {
- var i = Kr(e, 2),
- o = i[0],
- s = i[1],
- l = Kr(n, 2),
- c = l[0],
- u = l[1],
- f = Kr(r, 2),
- d = f[0],
- p = f[1],
- g = Kr(a, 2),
- m = g[0],
- v = g[1],
- h = -m,
- A = -v;
- if (t && o && s) {
- (h = 0), (A = 0);
- var b = [];
- if (
- (c && u
- ? b.push([0, v], [m, 0])
- : c
- ? b.push([m, 0])
- : u
- ? b.push([0, v])
- : d && p
- ? b.push([0, v], [m, 0])
- : d
- ? b.push([m, 0])
- : p && b.push([0, v]),
- b.length)
- ) {
- b.sort(function (t, e) {
- return as(Fn([o, s], t)) - as(Fn([o, s], e));
- });
- var w = b[0];
- if (w[0] && qs(o) > zt)
- (h = -w[0]), (A = (s * qs(o + h)) / qs(o) - s);
- else if (w[1] && qs(s) > zt) {
- var k = s;
- (A = -w[1]), (h = (o * qs(s + A)) / qs(k) - o);
- }
- if (t && u && c)
- if (qs(h) > zt && qs(h) < qs(m))
- (h *= y = qs(m) / qs(h)), (A *= y);
- else if (qs(A) > zt && qs(A) < qs(v)) {
- var y;
- (h *= y = qs(v) / qs(A)), (A *= y);
- } else (h = Qs(-m, h)), (A = Qs(-v, A));
- }
- } else (h = o || c ? -m : 0), (A = s || u ? -v : 0);
- return [h, A];
- })(
- r,
- [e, n],
- [k, y],
- [b, w],
- [Qs(g.offset, h.offset), Qs(m.offset, A.offset)]
- ),
- 2
- );
- return [
- { isBound: k, isSnap: b, offset: I[0] },
- { isBound: y, isSnap: w, offset: I[1] }
- ];
- }
- function Ji(t, e, n, r) {
- void 0 === r && (r = n);
- var a = Ai(bi(t), r.vertical, r.horizontal),
- i = a.horizontal,
- o = a.vertical,
- s = e
- ? {
- horizontal: { isSnap: !1, index: -1 },
- vertical: { isSnap: !1, index: -1 }
- }
- : Ri(t, n.vertical, n.horizontal),
- l = s.horizontal,
- c = s.vertical,
- u = Ki(i[0], l),
- f = Ki(o[0], c),
- d = qs(u),
- p = qs(f);
- return {
- horizontal: {
- isBound: i[0].isBound,
- isSnap: l.isSnap,
- snapIndex: l.index,
- offset: u,
- dist: d,
- bounds: i,
- snap: l
- },
- vertical: {
- isBound: o[0].isBound,
- isSnap: c.isSnap,
- snapIndex: c.index,
- offset: f,
- dist: p,
- bounds: o,
- snap: c
- }
- };
- }
- function $i(t, e, n, r, a) {
- var i = Ai(e, n, r),
- o = i.horizontal,
- s = i.vertical,
- l = Qi(t, n, r, [], [], a),
- c = l.horizontal,
- u = l.vertical,
- f = Ki(o[0], c),
- d = Ki(s[0], u),
- p = qs(f),
- g = qs(d);
- return {
- horizontal: {
- isBound: o[0].isBound,
- isSnap: c.isSnap,
- snapIndex: c.index,
- offset: f,
- dist: p,
- bounds: o,
- snap: c
- },
- vertical: {
- isBound: s[0].isBound,
- isSnap: u.isSnap,
- snapIndex: u.index,
- offset: d,
- dist: g,
- bounds: s,
- snap: u
- }
- };
- }
- function to(t, e, n, r, a, i) {
- return n.map(function (n) {
- var o = Kr(n, 2),
- s = o[0],
- l = o[1],
- c = Na(e, s),
- u = Na(e, l),
- f = r
- ? (function (t, e, n, r) {
- var a = (function (t, e, n) {
- var r = bi(t),
- a = r.left,
- i = r.top,
- o = r.right,
- s = r.bottom,
- l = Kr(n, 2),
- c = l[0],
- u = l[1],
- f = Kr(Fn(n, e), 2),
- d = f[0],
- p = f[1];
- qs(d) < wa && (d = 0), qs(p) < wa && (p = 0);
- var g = p > 0,
- m = d > 0,
- v = { isBound: !1, offset: 0, pos: 0 },
- h = { isBound: !1, offset: 0, pos: 0 };
- if (0 === d && 0 === p)
- return { vertical: v, horizontal: h };
- if (0 === d)
- g
- ? s < u && ((h.pos = s), (h.offset = u - s))
- : i > u && ((h.pos = i), (h.offset = u - i));
- else if (0 === p)
- m
- ? o < c && ((v.pos = o), (v.offset = c - o))
- : a > c && ((v.pos = a), (v.offset = c - a));
- else {
- var A = p / d,
- b = n[1] - A * c,
- w = 0,
- k = 0,
- y = !1;
- m && o <= c
- ? ((w = A * o + b), (k = o), (y = !0))
- : !m &&
- c <= a &&
- ((w = A * a + b), (k = a), (y = !0)),
- y && (w < i || w > s) && (y = !1),
- y ||
- (g && s <= u
- ? ((k = ((w = s) - b) / A), (y = !0))
- : !g &&
- u <= i &&
- ((k = ((w = i) - b) / A), (y = !0))),
- y &&
- ((v.isBound = !0),
- (v.pos = k),
- (v.offset = c - k),
- (h.isBound = !0),
- (h.pos = w),
- (h.offset = u - w));
- }
- return { vertical: v, horizontal: h };
- })(t, e, n),
- i = a.horizontal,
- o = a.vertical,
- s = r
- ? {
- horizontal: { isSnap: !1 },
- vertical: { isSnap: !1 }
- }
- : (function (t, e, n) {
- var r = Kr(n, 2),
- a = r[0],
- i = r[1],
- o = Kr(e, 2),
- s = o[0],
- l = o[1],
- c = Kr(Fn(n, e), 2),
- u = c[0],
- f = c[1],
- d = f > 0,
- p = u > 0;
- (u = zs(u)), (f = zs(f));
- var g = { isSnap: !1, offset: 0, pos: 0 },
- m = { isSnap: !1, offset: 0, pos: 0 };
- if (0 === u && 0 === f)
- return { vertical: g, horizontal: m };
- var v = Ri(t, u ? [a] : [], f ? [i] : []),
- h = v.vertical,
- A = v.horizontal;
- h.posInfos.filter(function (t) {
- var e = t.pos;
- return p ? e >= s : e <= s;
- }),
- A.posInfos.filter(function (t) {
- var e = t.pos;
- return d ? e >= l : e <= l;
- }),
- (h.isSnap = h.posInfos.length > 0),
- (A.isSnap = A.posInfos.length > 0);
- var b = Mi(h),
- w = b.isSnap,
- k = b.guideline,
- y = Mi(A),
- I = y.isSnap,
- E = y.guideline,
- C = I ? E.pos[1] : 0,
- B = w ? k.pos[0] : 0;
- if (0 === u)
- I &&
- ((m.isSnap = !0),
- (m.pos = E.pos[1]),
- (m.offset = i - m.pos));
- else if (0 === f)
- w &&
- ((g.isSnap = !0),
- (g.pos = B),
- (g.offset = a - B));
- else {
- var x = f / u,
- S = n[1] - x * a,
- D = 0,
- R = 0,
- Q = !1;
- w
- ? ((D = x * (R = B) + S), (Q = !0))
- : I && ((R = ((D = C) - S) / x), (Q = !0)),
- Q &&
- ((g.isSnap = !0),
- (g.pos = R),
- (g.offset = a - R),
- (m.isSnap = !0),
- (m.pos = D),
- (m.offset = i - D));
- }
- return { vertical: g, horizontal: m };
- })(t, e, n),
- l = s.horizontal,
- c = s.vertical,
- u = eo(i, l),
- f = eo(o, c),
- d = qs(u),
- p = qs(f);
- return {
- horizontal: {
- isBound: i.isBound,
- isSnap: l.isSnap,
- offset: u,
- dist: d
- },
- vertical: {
- isBound: o.isBound,
- isSnap: c.isSnap,
- offset: f,
- dist: p
- }
- };
- })(t, c, u, a)
- : Ji(t, a, { vertical: [u[0]], horizontal: [u[1]] }),
- d = f.horizontal,
- p = d.offset,
- g = d.isBound,
- m = d.isSnap,
- v = f.vertical,
- h = v.offset,
- A = v.isBound,
- b = v.isSnap,
- w = Fn(l, s);
- if (!h && !p)
- return {
- isBound: A || g,
- isSnap: b || m,
- sign: w,
- offset: [0, 0]
- };
- var k = (function (t, e, n, r) {
- var a = (ue(t, e) / Math.PI) * 180,
- i = n.vertical,
- o = i.isBound,
- s = i.isSnap,
- l = i.dist,
- c = n.horizontal,
- u = c.isBound,
- f = c.isSnap,
- d = a % 180,
- p = d < 3 || d > 177,
- g = d > 87 && d < 93;
- return c.dist < l && (o || (s && !g && (!r || !p)))
- ? 'vertical'
- : !u && (!f || p || (r && g))
- ? ''
- : 'horizontal';
- })(c, u, f, r);
- if (!k) return { sign: w, isBound: !1, isSnap: !1, offset: [0, 0] };
- var y = 'vertical' === k,
- I = [0, 0];
- return (
- (I = (I =
- r ||
- 1 !== qs(l[0]) ||
- 1 !== qs(l[1]) ||
- s[0] === l[0] ||
- s[1] === l[1]
- ? qi(c, u, -(y ? h : p), y, i).offset
- : Ya({ datas: i, distX: -h, distY: -p })).map(function (
- t,
- e
- ) {
- return t * (w[e] ? 2 / w[e] : 0);
- })),
- { sign: w, isBound: y ? A : g, isSnap: y ? b : m, offset: I }
- );
- });
- }
- function eo(t, e) {
- return t.isBound ? t.offset : e.isSnap ? e.offset : 0;
- }
- var no = {
- name: 'draggable',
- props: [
- 'draggable',
- 'throttleDrag',
- 'throttleDragRotate',
- 'hideThrottleDragRotateLine',
- 'startDragRotate',
- 'edgeDraggable'
- ],
- events: [
- 'dragStart',
- 'drag',
- 'dragEnd',
- 'dragGroupStart',
- 'dragGroup',
- 'dragGroupEnd'
- ],
- requestStyle: function () {
- return ['left', 'top', 'right', 'bottom'];
- },
- requestChildStyle: function () {
- return ['left', 'top', 'right', 'bottom'];
- },
- render: function (t, e) {
- var n = t.props,
- r = n.hideThrottleDragRotateLine,
- a = n.throttleDragRotate,
- i = n.zoom,
- o = t.getState(),
- s = o.dragInfo,
- l = o.beforeOrigin;
- if (r || !a || !s) return [];
- var c = s.dist;
- if (!c[0] && !c[1]) return [];
- var u = as(c),
- f = ue(c, [0, 0]);
- return [
- e.createElement('div', {
- className: Go('line', 'horizontal', 'dragline', 'dashed'),
- key: 'dragRotateGuideline',
- style: {
- width: ''.concat(u, 'px'),
- transform: 'translate('
- .concat(l[0], 'px, ')
- .concat(l[1], 'px) rotate(')
- .concat(f, 'rad) scaleY(')
- .concat(i, ')')
- }
- })
- ];
- },
- dragStart: function (t, e) {
- var n = e.datas,
- r = e.parentEvent,
- a = e.parentGesto,
- i = t.state,
- o = i.gestos,
- s = i.style;
- if (o.draggable) return !1;
- (o.draggable = a || t.targetGesto),
- (n.datas = {}),
- (n.left = parseFloat(s.left || '') || 0),
- (n.top = parseFloat(s.top || '') || 0),
- (n.bottom = parseFloat(s.bottom || '') || 0),
- (n.right = parseFloat(s.right || '') || 0),
- (n.startValue = [0, 0]),
- _a(t, e),
- La(e, 'translate'),
- (function (t, e) {
- e.absolutePoses = hs(t.state);
- })(t, n),
- (n.prevDist = [0, 0]),
- (n.prevBeforeDist = [0, 0]),
- (n.isDrag = !1),
- (n.deltaOffset = [0, 0]);
- var l = ys(
- t,
- e,
- qr(
- {
- set: function (t) {
- n.startValue = t;
- }
- },
- Fa(e)
- )
- );
- return (
- !1 !== (r || Cs(t, 'onDragStart', l))
- ? ((n.isDrag = !0),
- (t.state.dragInfo = { startRect: t.getRect(), dist: [0, 0] }))
- : ((o.draggable = null), (n.isPinch = !1)),
- !!n.isDrag && l
- );
- },
- drag: function (t, e) {
- if (e) {
- Oa(e, 'translate');
- var n = e.datas,
- r = e.parentEvent,
- a = e.parentFlag,
- i = e.isPinch,
- o = e.deltaOffset,
- s = e.useSnap,
- l = e.isRequest,
- c = e.distX,
- u = e.distY,
- f = n.isDrag,
- d = n.prevDist,
- p = n.prevBeforeDist,
- g = n.startValue;
- if (f) {
- o && ((c += o[0]), (u += o[1]));
- var m = t.props,
- v = m.parentMoveable,
- h = r ? 0 : m.throttleDrag || 0,
- A = r ? 0 : m.throttleDragRotate || 0,
- b = 0,
- w = !1,
- k = !1,
- y = !1,
- I = !1;
- if (!r && A > 0 && (c || u)) {
- var E = m.startDragRotate || 0,
- C = pe(E + (180 * ue([0, 0], [c, u])) / Math.PI, A) - E,
- B = u * Math.abs(Math.cos(((C - 90) / 180) * Math.PI)),
- x = as([c * Math.abs(Math.cos((C / 180) * Math.PI)), B]);
- (b = (C * Math.PI) / 180),
- (c = x * Math.cos(b)),
- (u = x * Math.sin(b));
- }
- if (!i && !r && !a) {
- var S = Kr(Zi(t, c, u, A, (!s && l) || o, n), 2),
- D = S[0],
- R = S[1];
- (w = D.isSnap),
- (k = D.isBound),
- (y = R.isSnap),
- (I = R.isBound),
- (c += D.offset),
- (u += R.offset);
- }
- var Q = Un(Pa({ datas: n, distX: c, distY: u }), g),
- _ = Un(Ta({ datas: n, distX: c, distY: u }), g);
- ge(_, wa),
- ge(Q, wa),
- A ||
- (w || k || ((_[0] = pe(_[0], h)), (Q[0] = pe(Q[0], h))),
- y || I || ((_[1] = pe(_[1], h)), (Q[1] = pe(Q[1], h))));
- var O = Fn(Q, g),
- M = Fn(_, g),
- T = Fn(M, d),
- z = Fn(O, p);
- (n.prevDist = M),
- (n.prevBeforeDist = O),
- (n.passDelta = T),
- (n.passDist = M);
- var P = n.left + O[0],
- Y = n.top + O[1],
- G = n.right - O[0],
- N = n.bottom - O[1],
- U = Ma(
- n,
- 'translate('.concat(_[0], 'px, ').concat(_[1], 'px)'),
- 'translate('.concat(M[0], 'px, ').concat(M[1], 'px)')
- );
- if (
- (ja(e, U),
- (t.state.dragInfo.dist = r ? [0, 0] : M),
- r ||
- v ||
- !T.every(function (t) {
- return !t;
- }) ||
- !z.some(function (t) {
- return !t;
- }))
- ) {
- var F = t.state,
- L = F.width,
- X = F.height,
- j = ys(
- t,
- e,
- qr(
- {
- transform: U,
- dist: M,
- delta: T,
- translate: _,
- beforeDist: O,
- beforeDelta: z,
- beforeTranslate: Q,
- left: P,
- top: Y,
- right: G,
- bottom: N,
- width: L,
- height: X,
- isPinch: i
- },
- ws({ transform: U }, e)
- )
- );
- return !r && Cs(t, 'onDrag', j), j;
- }
- }
- }
- },
- dragAfter: function (t, e) {
- var n = e.datas,
- r = n.deltaOffset;
- return (
- !(!r[0] && !r[1]) &&
- ((n.deltaOffset = [0, 0]),
- this.drag(t, qr(qr({}, e), { deltaOffset: r })))
- );
- },
- dragEnd: function (t, e) {
- var n = e.parentEvent,
- r = e.datas;
- if (((t.state.dragInfo = null), r.isDrag)) {
- r.isDrag = !1;
- var a = Is(t, e, {});
- return !n && Cs(t, 'onDragEnd', a), a;
- }
- },
- dragGroupStart: function (t, e) {
- var n = e.datas,
- r = e.clientX,
- a = e.clientY,
- i = this.dragStart(t, e);
- if (!i) return !1;
- var o = li(
- t,
- this,
- 'dragStart',
- [r || 0, a || 0],
- e,
- !1,
- 'draggable'
- ),
- s = Cs(
- t,
- 'onDragGroupStart',
- qr(qr({}, i), { targets: t.props.targets, events: o })
- );
- return (n.isDrag = !1 !== s), !!n.isDrag && i;
- },
- dragGroup: function (t, e) {
- if (e.datas.isDrag) {
- var n = this.drag(t, e),
- r = li(t, this, 'drag', e.datas.passDelta, e, !1, 'draggable');
- if (n) {
- var a = qr({ targets: t.props.targets, events: r }, n);
- return Cs(t, 'onDragGroup', a), a;
- }
- }
- },
- dragGroupEnd: function (t, e) {
- var n = e.isDrag;
- if (e.datas.isDrag) {
- this.dragEnd(t, e);
- var r = li(t, this, 'dragEnd', [0, 0], e, !1, 'draggable');
- return (
- Cs(
- t,
- 'onDragGroupEnd',
- Is(t, e, { targets: t.props.targets, events: r })
- ),
- n
- );
- }
- },
- request: function (t) {
- var e = {},
- n = t.getRect(),
- r = 0,
- a = 0,
- i = !1;
- return {
- isControl: !1,
- requestStart: function (t) {
- return (i = t.useSnap), { datas: e, useSnap: i };
- },
- request: function (t) {
- return (
- 'x' in t
- ? (r = t.x - n.left)
- : 'deltaX' in t && (r += t.deltaX),
- 'y' in t
- ? (a = t.y - n.top)
- : 'deltaY' in t && (a += t.deltaY),
- { datas: e, distX: r, distY: a, useSnap: i }
- );
- },
- requestEnd: function () {
- return { datas: e, isDrag: !0, useSnap: i };
- }
- };
- },
- unset: function (t) {
- (t.state.gestos.draggable = null), (t.state.dragInfo = null);
- }
- };
- function ro(t, e) {
- return {
- fixedPosition: Na(t, e),
- fixedDirection: e,
- fixedOffset: [0, 0]
- };
- }
- function ao(t, e) {
- var n = t.allMatrix,
- r = t.is3d,
- a = t.width,
- i = t.height,
- o = r ? 4 : 3,
- s = (function (t, e, n) {
- return [e ? t[0] / (e / 2) - 1 : 0, n ? t[1] / (n / 2) - 1 : 0];
- })(e, a, i);
- return {
- fixedPosition: ts(n, e, o),
- fixedDirection: s,
- fixedOffset: [a ? 0 : e[0], i ? 0 : e[1]]
- };
- }
- var io = Ys('resizable'),
- oo = {
- name: 'resizable',
- ableGroup: 'size',
- canPinch: !0,
- props: [
- 'resizable',
- 'throttleResize',
- 'renderDirections',
- 'displayAroundControls',
- 'keepRatio',
- 'resizeFormat',
- 'keepRatioFinally',
- 'edge',
- 'checkResizableError'
- ],
- events: [
- 'resizeStart',
- 'beforeResize',
- 'resize',
- 'resizeEnd',
- 'resizeGroupStart',
- 'beforeResizeGroup',
- 'resizeGroup',
- 'resizeGroupEnd'
- ],
- render: mi('resizable'),
- dragControlCondition: io,
- viewClassName: Ps('resizable'),
- dragControlStart: function (t, e) {
- var n,
- r = e.inputEvent,
- a = e.isPinch,
- i = e.isGroup,
- o = e.parentDirection,
- s = e.parentGesto,
- l = e.datas,
- c = e.parentFixedDirection,
- u = e.parentEvent,
- f = gs(o, a, r, l),
- d = t.state,
- p = d.target,
- g = d.width,
- m = d.height,
- v = d.gestos;
- if (!f || !p) return !1;
- if (v.resizable) return !1;
- (v.resizable = s || t.controlGesto),
- !a && _a(t, e),
- (l.datas = {}),
- (l.direction = f),
- (l.startOffsetWidth = g),
- (l.startOffsetHeight = m),
- (l.prevWidth = 0),
- (l.prevHeight = 0),
- (l.minSize = [0, 0]),
- (l.startWidth = d.inlineCSSWidth || d.cssWidth),
- (l.startHeight = d.inlineCSSHeight || d.cssHeight),
- (l.maxSize = [1 / 0, 1 / 0]),
- i ||
- ((l.minSize = [d.minOffsetWidth, d.minOffsetHeight]),
- (l.maxSize = [d.maxOffsetWidth, d.maxOffsetHeight]));
- var h = t.props.transformOrigin || '% %';
- function A(t) {
- l.ratio = t && isFinite(t) ? t : 0;
- }
- function b(t) {
- var e = ro(l.startPositions, t);
- (l.fixedDirection = e.fixedDirection),
- (l.fixedPosition = e.fixedPosition),
- (l.fixedOffset = e.fixedOffset);
- }
- function w(e) {
- var n = ao(t.state, e);
- (l.fixedDirection = n.fixedDirection),
- (l.fixedPosition = n.fixedPosition),
- (l.fixedOffset = n.fixedOffset);
- }
- function k(t) {
- l.minSize = [
- ie(''.concat(t[0]), 0) || 0,
- ie(''.concat(t[1]), 0) || 0
- ];
- }
- function y(t) {
- var e = [t[0] || 1 / 0, t[1] || 1 / 0];
- (Lt(e[0]) && !isFinite(e[0])) ||
- (e[0] = ie(''.concat(e[0]), 0) || 1 / 0),
- (Lt(e[1]) && !isFinite(e[1])) ||
- (e[1] = ie(''.concat(e[1]), 0) || 1 / 0),
- (l.maxSize = e);
- }
- (l.transformOrigin = h && Ft(h) ? h.split(' ') : h),
- (l.startOffsetMatrix = d.offsetMatrix),
- (l.startTransformOrigin = d.transformOrigin),
- (l.isWidth =
- null !== (n = null == e ? void 0 : e.parentIsWidth) &&
- void 0 !== n
- ? n
- : (!f[0] && !f[1]) || f[0] || !f[1]),
- (l.startPositions = hs(t.state)),
- A(g / m),
- b(c || [-f[0], -f[1]]),
- (l.setFixedDirection = b),
- (l.setFixedPosition = w),
- (l.setMin = k),
- (l.setMax = y);
- var I = ys(t, e, {
- direction: f,
- startRatio: l.ratio,
- set: function (t) {
- var e = Kr(t, 2),
- n = e[0],
- r = e[1];
- (l.startWidth = n), (l.startHeight = r);
- },
- setMin: k,
- setMax: y,
- setRatio: A,
- setFixedDirection: b,
- setFixedPosition: w,
- setOrigin: function (t) {
- l.transformOrigin = t;
- },
- dragStart: no.dragStart(t, new Da().dragStart([0, 0], e))
- }),
- E = u || Cs(t, 'onResizeStart', I);
- return (
- (l.startFixedDirection = l.fixedDirection),
- (l.startFixedPosition = l.fixedPosition),
- !1 !== E &&
- ((l.isResize = !0),
- (t.state.snapRenderInfo = {
- request: e.isRequest,
- direction: f
- })),
- !!l.isResize && I
- );
- },
- dragControl: function (t, e) {
- var n,
- r = e.datas,
- a = e.parentFlag,
- i = e.isPinch,
- o = e.parentKeepRatio,
- s = e.dragClient,
- l = e.parentDist,
- c = e.useSnap,
- u = e.isRequest,
- f = e.isGroup,
- d = e.parentEvent,
- p = e.resolveMatrix,
- g = r.isResize,
- m = r.transformOrigin,
- v = r.startWidth,
- h = r.startHeight,
- A = r.prevWidth,
- b = r.prevHeight,
- w = r.minSize,
- k = r.maxSize,
- y = r.ratio,
- I = r.startOffsetWidth,
- E = r.startOffsetHeight,
- C = r.isWidth;
- if (g) {
- if (p) {
- var B = t.state.is3d,
- x = r.startOffsetMatrix,
- S = r.startTransformOrigin,
- D = B ? 4 : 3,
- R = ar(Ha(e)),
- Q = Math.sqrt(R.length);
- D !== Q && (R = Yn(R, Q, D));
- var _ = Ua(x, R, S, D),
- O = es(_, I, E, D);
- (r.startPositions = O),
- (r.nextTargetMatrix = R),
- (r.nextAllMatrix = _);
- }
- var M = ls(t.props, 'resizable'),
- T = M.resizeFormat,
- z = M.throttleResize,
- P = void 0 === z ? (a ? 0 : 1) : z,
- Y = M.parentMoveable,
- G = M.keepRatioFinally,
- N = r.direction,
- U = N,
- F = 0,
- L = 0;
- N[0] || N[1] || (U = [1, 1]);
- var X = (y && (null != o ? o : M.keepRatio)) || !1,
- j = Kr(at(), 2),
- W = j[0],
- H = j[1];
- d ||
- (r.setFixedDirection(r.fixedDirection),
- Cs(
- t,
- 'onBeforeResize',
- ys(
- t,
- e,
- {
- startFixedDirection: r.startFixedDirection,
- startFixedPosition: r.startFixedPosition,
- setFixedDirection: function (t) {
- var e;
- return (
- r.setFixedDirection(t),
- (e = Kr(at(), 2)),
- (W = e[0]),
- (H = e[1]),
- [W, H]
- );
- },
- setFixedPosition: function (t) {
- var e;
- return (
- r.setFixedPosition(t),
- (e = Kr(at(), 2)),
- (W = e[0]),
- (H = e[1]),
- [W, H]
- );
- },
- boundingWidth: W,
- boundingHeight: H,
- setSize: function (t) {
- var e;
- (e = Kr(t, 2)), (W = e[0]), (H = e[1]);
- }
- },
- !0
- )
- ));
- var V = s;
- s ||
- (V =
- !a && i
- ? (function (t, e) {
- return Na(hs(t.state), e);
- })(t, [0, 0])
- : r.fixedPosition);
- var q = [0, 0];
- if (
- (i ||
- (q = (function (t, e, n, r, a, i, o) {
- if (!xi(t, 'resizable')) return [0, 0];
- var s = o.fixedDirection,
- l = o.nextAllMatrix,
- c = t.state,
- u = c.allMatrix,
- f = c.is3d;
- return So(
- t,
- function (t, r) {
- return Co(l || u, e + t, n + r, s, a, f);
- },
- e,
- n,
- r,
- a,
- i,
- o
- );
- })(t, W, H, N, V, !c && u, r)),
- l && (!l[0] && (q[0] = 0), !l[1] && (q[1] = 0)),
- X)
- ) {
- U[0] &&
- U[1] &&
- q[0] &&
- q[1] &&
- (qs(q[0]) > qs(q[1]) ? (q[1] = 0) : (q[0] = 0));
- var K = !q[0] && !q[1];
- K && it(),
- (U[0] && !U[1]) || (q[0] && !q[1]) || (K && C)
- ? ((W += q[0]), (H = W / y))
- : ((!U[0] && U[1]) || (!q[0] && q[1]) || (K && !C)) &&
- ((H += q[1]), (W = H * y));
- } else
- (W += q[0]),
- (H += q[1]),
- (W = Math.max(0, W)),
- (H = Math.max(0, H));
- (n = Kr(le([W, H], w, k, !!X && y), 2)),
- (W = n[0]),
- (H = n[1]),
- it(),
- X && (f || G) && (C ? (H = W / y) : (W = H * y));
- var Z = [(F = W - I) - A, (L = H - E) - b];
- (r.prevWidth = F), (r.prevHeight = L);
- var J = $a(t, W, H, V, m, r);
- if (
- Y ||
- !Z.every(function (t) {
- return !t;
- }) ||
- !J.every(function (t) {
- return !t;
- })
- ) {
- var $ = no.drag(t, Sa(e, t.state, J, !!i, !1, 'draggable')),
- tt = $.transform,
- et = v + F,
- nt = h + L,
- rt = ys(
- t,
- e,
- qr(
- {
- width: et,
- height: nt,
- offsetWidth: Math.round(W),
- offsetHeight: Math.round(H),
- startRatio: y,
- boundingWidth: W,
- boundingHeight: H,
- direction: N,
- dist: [F, L],
- delta: Z,
- isPinch: !!i,
- drag: $
- },
- ks(
- {
- style: {
- width: ''.concat(et, 'px'),
- height: ''.concat(nt, 'px')
- },
- transform: tt
- },
- $,
- e
- )
- )
- );
- return !d && Cs(t, 'onResize', rt), rt;
- }
- }
- function at() {
- var t = r.fixedDirection,
- n = Ls(U, X, r, e);
- (F = n.distWidth), (L = n.distHeight);
- var a = U[0] - t[0] || X ? Math.max(I + F, wa) : I,
- i = U[1] - t[1] || X ? Math.max(E + L, wa) : E;
- return X && I && E && (C ? (i = a / y) : (a = i * y)), [a, i];
- }
- function it() {
- var t;
- T && ((t = Kr(T([W, H]), 2)), (W = t[0]), (H = t[1])),
- (W = pe(W, P)),
- (H = pe(H, P));
- }
- },
- dragControlAfter: function (t, e) {
- var n = e.datas,
- r = n.isResize,
- a = n.startOffsetWidth,
- i = n.startOffsetHeight,
- o = n.prevWidth,
- s = n.prevHeight;
- if (r && !1 !== t.props.checkResizableError) {
- var l = t.state,
- c = l.width - (a + o),
- u = l.height - (i + s),
- f = qs(c) > 3,
- d = qs(u) > 3;
- return (
- f &&
- ((n.startWidth += c),
- (n.startOffsetWidth += c),
- (n.prevWidth += c)),
- d &&
- ((n.startHeight += u),
- (n.startOffsetHeight += u),
- (n.prevHeight += u)),
- f || d ? this.dragControl(t, e) : void 0
- );
- }
- },
- dragControlEnd: function (t, e) {
- var n = e.datas,
- r = e.parentEvent;
- if (n.isResize) {
- n.isResize = !1;
- var a = Is(t, e, {});
- return !r && Cs(t, 'onResizeEnd', a), a;
- }
- },
- dragGroupControlCondition: io,
- dragGroupControlStart: function (t, e) {
- var n = e.datas,
- r = this.dragControlStart(t, qr(qr({}, e), { isGroup: !0 }));
- if (!r) return !1;
- var a = si(t, 'resizable', e),
- i = n.startOffsetWidth,
- o = n.startOffsetHeight;
- function s() {
- var t = n.minSize;
- a.forEach(function (e) {
- var n = e.datas,
- r = n.minSize,
- a = n.startOffsetWidth,
- s = n.startOffsetHeight,
- l = i * (a ? r[0] / a : 0),
- c = o * (s ? r[1] / s : 0);
- (t[0] = Math.max(t[0], l)), (t[1] = Math.max(t[1], c));
- });
- }
- function l() {
- var t = n.maxSize;
- a.forEach(function (e) {
- var n = e.datas,
- r = n.maxSize,
- a = n.startOffsetWidth,
- s = n.startOffsetHeight,
- l = i * (a ? r[0] / a : 0),
- c = o * (s ? r[1] / s : 0);
- (t[0] = Math.min(t[0], l)), (t[1] = Math.min(t[1], c));
- });
- }
- var c = ci(t, this, 'dragControlStart', e, function (e, r) {
- return ui(t, e, n, r);
- });
- s(), l();
- var u = function (e) {
- r.setFixedDirection(e),
- c.forEach(function (r, i) {
- r.setFixedDirection(e), ui(t, r.moveable, n, a[i]);
- });
- };
- n.setFixedDirection = u;
- var f = qr(qr({}, r), {
- targets: t.props.targets,
- events: c.map(function (t) {
- return qr(qr({}, t), {
- setMin: function (e) {
- t.setMin(e), s();
- },
- setMax: function (e) {
- t.setMax(e), l();
- }
- });
- }),
- setFixedDirection: u,
- setMin: function (t) {
- r.setMin(t), s();
- },
- setMax: function (t) {
- r.setMax(t), l();
- }
- }),
- d = Cs(t, 'onResizeGroupStart', f);
- return (n.isResize = !1 !== d), !!n.isResize && r;
- },
- dragGroupControl: function (t, e) {
- var n = e.datas;
- if (n.isResize) {
- var r = ls(t.props, 'resizable');
- Es(t, 'onBeforeResize', function (n) {
- Cs(
- t,
- 'onBeforeResizeGroup',
- ys(t, e, qr(qr({}, n), { targets: r.targets }), !0)
- );
- });
- var a = this.dragControl(t, qr(qr({}, e), { isGroup: !0 }));
- if (a) {
- var i = a.boundingWidth,
- o = a.boundingHeight,
- s = a.dist,
- l = r.keepRatio,
- c = [i / (i - s[0]), o / (o - s[1])],
- u = n.fixedPosition,
- f = ci(t, this, 'dragControl', e, function (e, n) {
- var r = Kr(
- Xn(
- Jn((t.rotation / 180) * Math.PI, 3),
- [
- n.datas.originalX * c[0],
- n.datas.originalY * c[1],
- 1
- ],
- 3
- ),
- 2
- ),
- a = r[0],
- i = r[1];
- return qr(qr({}, n), {
- parentDist: null,
- parentScale: c,
- dragClient: Un(u, [a, i]),
- parentKeepRatio: l
- });
- }),
- d = qr({ targets: r.targets, events: f }, a);
- return Cs(t, 'onResizeGroup', d), d;
- }
- }
- },
- dragGroupControlEnd: function (t, e) {
- var n = e.isDrag;
- if (e.datas.isResize) {
- this.dragControlEnd(t, e);
- var r = ci(t, this, 'dragControlEnd', e);
- return (
- Cs(
- t,
- 'onResizeGroupEnd',
- Is(t, e, { targets: t.props.targets, events: r })
- ),
- n
- );
- }
- },
- request: function (t) {
- var e = {},
- n = 0,
- r = 0,
- a = !1,
- i = t.getRect();
- return {
- isControl: !0,
- requestStart: function (t) {
- var n;
- return (
- (a = t.useSnap),
- {
- datas: e,
- parentDirection: t.direction || [1, 1],
- parentIsWidth:
- null === (n = null == t ? void 0 : t.horizontal) ||
- void 0 === n ||
- n,
- useSnap: a
- }
- );
- },
- request: function (t) {
- return (
- 'offsetWidth' in t
- ? (n = t.offsetWidth - i.offsetWidth)
- : 'deltaWidth' in t && (n += t.deltaWidth),
- 'offsetHeight' in t
- ? (r = t.offsetHeight - i.offsetHeight)
- : 'deltaHeight' in t && (r += t.deltaHeight),
- {
- datas: e,
- parentDist: [n, r],
- parentKeepRatio: t.keepRatio,
- useSnap: a
- }
- );
- },
- requestEnd: function () {
- return { datas: e, isDrag: !0, useSnap: a };
- }
- };
- },
- unset: function (t) {
- t.state.gestos.resizable = null;
- }
- };
- function so(t, e, n, r, a) {
- var i = t.props.groupable,
- o = t.state,
- s = o.is3d ? 4 : 3,
- l = e.origin,
- c = ts(
- t.state.rootMatrix,
- Fn([l[0], l[1]], i ? [0, 0] : [o.left, o.top]),
- s
- ),
- u = Un([a.left, a.top], c);
- (e.startAbsoluteOrigin = u),
- (e.prevDeg = (ue(u, [n, r]) / Math.PI) * 180),
- (e.defaultDeg = e.prevDeg),
- (e.prevSnapDeg = 0),
- (e.loop = 0),
- (e.startDist = de(u, [n, r]));
- }
- function lo(t, e, n) {
- var r = n.defaultDeg,
- a = n.prevDeg,
- i = a % 360,
- o = Math.floor(a / 360);
- i < 0 && (i += 360),
- i > t && i > 270 && t < 90
- ? ++o
- : i < t && i < 90 && t > 270 && --o;
- var s = e * (360 * o + t - r);
- return (n.prevDeg = r + s), s;
- }
- function co(t, e, n, r) {
- return lo((ue(r.startAbsoluteOrigin, [t, e]) / Math.PI) * 180, n, r);
- }
- function uo(t, e, n, r, a, i) {
- var o = t.props.throttleRotate,
- s = void 0 === o ? 0 : o,
- l = n.prevSnapDeg,
- c = 0,
- u = !1;
- if (i) {
- var f = (function (t, e, n, r) {
- var a,
- i = t.props,
- o = null !== (a = i[zo]) && void 0 !== a ? a : 5,
- s = i[Po];
- if (xi(t, 'rotatable')) {
- var l = e.pos1,
- c = e.pos2,
- u = e.pos3,
- f = e.pos4,
- d = e.origin,
- p = (n * Math.PI) / 180,
- g = [l, c, u, f].map(function (t) {
- return Fn(t, d);
- }),
- m = g.map(function (t) {
- return qn(t, p);
- }),
- v = Zr(
- Zr([], Kr(yi(t, g, m, d, n)), !1),
- Kr(Vi(t, g, m, d, n)),
- !1
- );
- v.sort(function (t, e) {
- return qs(t - n) - qs(e - n);
- });
- var h = v.length > 0;
- if (h) return { isSnap: h, dist: h ? v[0] : n };
- }
- if ((null == s ? void 0 : s.length) && o) {
- var A = s.slice().sort(function (t, e) {
- return Qo(t, r) - Qo(e, r);
- })[0];
- if (Qo(A, r) <= o)
- return { isSnap: !0, dist: n + Ro(r, A) - r };
- }
- return { isSnap: !1, dist: n };
- })(t, e, r, a + r);
- (u = f.isSnap), (c = a + f.dist);
- }
- u || (c = pe(a + r, s));
- var d = c - a;
- return (n.prevSnapDeg = d), [d - l, d, c];
- }
- function fo(t, e, n) {
- var r = Kr(e, 4),
- a = r[0],
- i = r[1],
- o = r[2],
- s = r[3];
- if ('none' === t) return [];
- if (Ut(t))
- return t.map(function (t) {
- return fo(t, [a, i, o, s], n)[0];
- });
- var l = Kr((t || 'top').split('-'), 2),
- c = l[0],
- u = l[1],
- f = [a, i];
- 'left' === c
- ? (f = [o, a])
- : 'right' === c
- ? (f = [i, s])
- : 'bottom' === c && (f = [s, o]);
- var d = [(f[0][0] + f[1][0]) / 2, (f[0][1] + f[1][1]) / 2],
- p = us(f, n);
- if (u) {
- var g = 'top' === u || 'left' === u,
- m = 'bottom' === c || 'left' === c;
- d = f[(g && !m) || (!g && m) ? 0 : 1];
- }
- return [[d, p]];
- }
- function po(t, e) {
- if (e.isRequest) return 'rotatable' === e.requestAble;
- var n = e.inputEvent.target;
- if (
- ve(n, Go('rotation-control')) ||
- (t.props.rotateAroundControls && ve(n, Go('around-control'))) ||
- (ve(n, Go('control')) && ve(n, Go('rotatable')))
- )
- return !0;
- var r = t.props.rotationTarget;
- return (
- !!r &&
- Ns(r, !0).some(function (t) {
- return !!t && (n === t || n.contains(t));
- })
- );
- }
- var go = {
- name: 'rotatable',
- canPinch: !0,
- props: [
- 'rotatable',
- 'rotationPosition',
- 'throttleRotate',
- 'renderDirections',
- 'rotationTarget',
- 'rotateAroundControls',
- 'edge',
- 'resolveAblesWithRotatable',
- 'displayAroundControls'
- ],
- events: [
- 'rotateStart',
- 'beforeRotate',
- 'rotate',
- 'rotateEnd',
- 'rotateGroupStart',
- 'beforeRotateGroup',
- 'rotateGroup',
- 'rotateGroupEnd'
- ],
- css: [
- '.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'
- ],
- viewClassName: function (t) {
- return t.isDragging('rotatable')
- ? Go('view-rotation-dragging')
- : '';
- },
- render: function (t, e) {
- var n = ls(t.props, 'rotatable'),
- r = n.rotatable,
- a = n.rotationPosition,
- i = n.zoom,
- o = n.renderDirections,
- s = n.rotateAroundControls,
- l = n.resolveAblesWithRotatable,
- c = t.getState(),
- u = c.renderPoses,
- f = c.direction;
- if (!r) return null;
- var d = fo(a, u, f),
- p = [];
- if (
- (d.forEach(function (t, n) {
- var r = Kr(t, 2),
- a = r[0],
- o = r[1];
- p.push(
- e.createElement(
- 'div',
- {
- key: 'rotation'.concat(n),
- className: Go('rotation'),
- style: {
- transform: 'translate(-50%) translate('
- .concat(a[0], 'px, ')
- .concat(a[1], 'px) rotate(')
- .concat(o, 'rad)')
- }
- },
- e.createElement('div', {
- className: Go('line rotation-line'),
- style: { transform: 'scaleX('.concat(i, ')') }
- }),
- e.createElement('div', {
- className: Go('control rotation-control'),
- style: {
- transform: 'translate(0.5px) scale('.concat(i, ')')
- }
- })
- )
- );
- }),
- o)
- ) {
- var g = ae(l || {}),
- m = {};
- g.forEach(function (t) {
- l[t].forEach(function (e) {
- m[e] = t;
- });
- });
- var v = [];
- Ut(o) &&
- (v = o.map(function (t) {
- var e = m[t];
- return {
- data: e ? { resolve: e } : {},
- classNames: e ? ['move'] : [],
- dir: t
- };
- })),
- p.push.apply(p, Zr([], Kr(fi(t, 'rotatable', v, e)), !1));
- }
- return s && p.push.apply(p, Zr([], Kr(hi(t, e)), !1)), p;
- },
- dragControlCondition: po,
- dragControlStart: function (t, e) {
- var n,
- r,
- a = e.datas,
- i = e.clientX,
- o = e.clientY,
- s = e.parentRotate,
- l = e.parentFlag,
- c = e.isPinch,
- u = e.isRequest,
- f = t.state,
- d = f.target,
- p = f.left,
- g = f.top,
- m = f.direction,
- v = f.beforeDirection,
- h = f.targetTransform,
- A = f.moveableClientRect,
- b = f.offsetMatrix,
- w = f.targetMatrix,
- k = f.allMatrix,
- y = f.width,
- I = f.height;
- if (!u && !d) return !1;
- var E = t.getRect();
- (a.rect = E), (a.transform = h), (a.left = p), (a.top = g);
- var C = function (e) {
- var n = ao(t.state, e);
- (a.fixedDirection = n.fixedDirection),
- (a.fixedOffset = n.fixedOffset),
- (a.fixedPosition = n.fixedPosition),
- P && P.setFixedPosition(e);
- },
- B = function (e) {
- var n = (function (t, e) {
- var n = t.allMatrix,
- r = t.is3d,
- a = t.width,
- i = t.height,
- o = r ? 4 : 3;
- return {
- fixedPosition: ts(
- n,
- [(a / 2) * (1 + e[0]), (i / 2) * (1 + e[1])],
- o
- ),
- fixedDirection: e,
- fixedOffset: [0, 0]
- };
- })(t.state, e);
- (a.fixedDirection = n.fixedDirection),
- (a.fixedOffset = n.fixedOffset),
- (a.fixedPosition = n.fixedPosition),
- P && P.setFixedDirection(e);
- },
- x = i,
- S = o;
- if (u || c || l) {
- var D = s || 0;
- (a.beforeInfo = {
- origin: E.beforeOrigin,
- prevDeg: D,
- defaultDeg: D,
- prevSnapDeg: 0,
- startDist: 0
- }),
- (a.afterInfo = qr(qr({}, a.beforeInfo), { origin: E.origin })),
- (a.absoluteInfo = qr(qr({}, a.beforeInfo), {
- origin: E.origin,
- startValue: D
- }));
- } else {
- var R =
- null === (r = e.inputEvent) || void 0 === r ? void 0 : r.target;
- if (R) {
- var Q = R.getAttribute('data-direction') || '',
- _ = Ea[Q];
- if (_) {
- (a.isControl = !0),
- (a.isAroundControl = ve(R, Go('around-control'))),
- (a.controlDirection = _);
- var O = R.getAttribute('data-resolve');
- O && (a.resolveAble = O);
- var M = (function (t, e, n) {
- var r = 16 === t.length ? 4 : 3,
- a = e.map(function (e) {
- return ts(t, e, r);
- }),
- i = n.left,
- o = n.top;
- return a.map(function (t) {
- return [t[0] + i, t[1] + o];
- });
- })(f.rootMatrix, f.renderPoses, A);
- (n = Kr(Na(M, _), 2)), (x = n[0]), (S = n[1]);
- }
- }
- (a.beforeInfo = { origin: E.beforeOrigin }),
- (a.afterInfo = { origin: E.origin }),
- (a.absoluteInfo = { origin: E.origin, startValue: E.rotation });
- var T = C;
- (C = function (e) {
- var n = f.is3d ? 4 : 3,
- r = Kr(Un(zn(w, n), e), 2),
- i = r[0],
- o = r[1],
- s = Xn(b, Pn([i, o], n)),
- l = Xn(k, Pn([e[0], e[1]], n));
- T(e);
- var c = f.posDelta;
- (a.beforeInfo.origin = Fn(s, c)),
- (a.afterInfo.origin = Fn(l, c)),
- (a.absoluteInfo.origin = Fn(l, c)),
- so(t, a.beforeInfo, x, S, A),
- so(t, a.afterInfo, x, S, A),
- so(t, a.absoluteInfo, x, S, A);
- }),
- (B = function (t) {
- var e = Na(
- [
- [0, 0],
- [y, 0],
- [0, I],
- [y, I]
- ],
- t
- );
- C(e);
- });
- }
- (a.startClientX = x),
- (a.startClientY = S),
- (a.direction = m),
- (a.beforeDirection = v),
- (a.startValue = 0),
- (a.datas = {}),
- La(e, 'rotate');
- var z = !1,
- P = !1;
- a.isControl &&
- a.resolveAble &&
- 'resizable' === a.resolveAble &&
- (P = oo.dragControlStart(
- t,
- qr(qr({}, new Da('resizable').dragStart([0, 0], e)), {
- parentPosition: a.controlPosition,
- parentFixedPosition: a.fixedPosition
- })
- )),
- P || (z = no.dragStart(t, new Da().dragStart([0, 0], e))),
- C(
- (function (t) {
- var e = t.props,
- n = e.groupable,
- r = e.svgOrigin,
- a = t.getState(),
- i = a.offsetWidth,
- o = a.offsetHeight,
- s = a.svg,
- l = a.transformOrigin;
- return !n && s && r ? js(r, i, o) : l;
- })(t)
- );
- var Y = ys(
- t,
- e,
- qr(
- qr(
- {
- set: function (t) {
- a.startValue = (t * Math.PI) / 180;
- },
- setFixedDirection: B,
- setFixedPosition: C
- },
- Fa(e)
- ),
- { dragStart: z, resizeStart: P }
- )
- ),
- G = Cs(t, 'onRotateStart', Y);
- return (
- (a.isRotate = !1 !== G),
- (f.snapRenderInfo = { request: e.isRequest }),
- !!a.isRotate && Y
- );
- },
- dragControl: function (t, e) {
- var n,
- r,
- a,
- i = e.datas,
- o = e.clientDistX,
- s = e.clientDistY,
- l = e.parentRotate,
- c = e.parentFlag,
- u = e.isPinch,
- f = e.groupDelta,
- d = e.resolveMatrix,
- p = i.beforeDirection,
- g = i.beforeInfo,
- m = i.afterInfo,
- v = i.absoluteInfo,
- h = i.isRotate,
- A = i.startValue,
- b = i.rect,
- w = i.startClientX,
- k = i.startClientY;
- if (h) {
- Oa(e, 'rotate');
- var y,
- I,
- E,
- C,
- B,
- x,
- S,
- D,
- R,
- Q = (function (t) {
- return Ra(t.datas.beforeTransform, [50, 50], 100, 100)
- .direction;
- })(e),
- _ = p * Q,
- O = t.props.parentMoveable,
- M = (180 / Math.PI) * A,
- T = v.startValue,
- z = !1,
- P = w + o,
- Y = k + s;
- if (!c && 'parentDist' in e) {
- var G = e.parentDist;
- (I = G), (B = G), (D = G);
- } else
- u || c
- ? ((I = lo(l, p, g)), (B = lo(l, _, m)), (D = lo(l, _, v)))
- : ((I = co(P, Y, p, g)),
- (B = co(P, Y, _, m)),
- (D = co(P, Y, _, v)),
- (z = !0));
- if (
- (Cs(
- t,
- 'onBeforeRotate',
- ys(
- t,
- e,
- {
- beforeRotation: (E = M + I),
- rotation: (x = M + B),
- absoluteRotation: (R = T + D),
- setRotation: function (t) {
- (I = B = t - M), (D = B);
- }
- },
- !0
- )
- ),
- (y = (n = Kr(uo(t, b, g, I, M, z), 3))[0]),
- (I = n[1]),
- (E = n[2]),
- (C = (r = Kr(uo(t, b, m, B, M, z), 3))[0]),
- (B = r[1]),
- (x = r[2]),
- (S = (a = Kr(uo(t, b, v, D, T, z), 3))[0]),
- (D = a[1]),
- (R = a[2]),
- S || C || y || O || d)
- ) {
- var N = Ma(
- i,
- 'rotate('.concat(x, 'deg)'),
- 'rotate('.concat(B, 'deg)')
- );
- d &&
- (i.fixedPosition = Za(
- t,
- i.targetAllTransform,
- i.fixedDirection,
- i.fixedOffset,
- i
- ));
- var U = (function (t, e, n) {
- var r = n.fixedDirection,
- a = n.fixedPosition,
- i = n.fixedOffset;
- return Ja(t, 'rotate('.concat(e, 'deg)'), r, a, i, n);
- })(t, B, i),
- F = Fn(Un(f || [0, 0], U), i.prevInverseDist || [0, 0]);
- (i.prevInverseDist = U), (i.requestValue = null);
- var L = Ka(t, N, F, u, e),
- X = L,
- j = de([P, Y], v.startAbsoluteOrigin) - v.startDist,
- W = void 0;
- if ('resizable' === i.resolveAble) {
- var H = oo.dragControl(
- t,
- qr(
- qr(
- {},
- Sa(
- e,
- t.state,
- [e.deltaX, e.deltaY],
- !!u,
- !1,
- 'resizable'
- )
- ),
- { resolveMatrix: !0, parentDistance: j }
- )
- );
- H && ((W = H), (X = ks(X, H, e)));
- }
- var V = ys(
- t,
- e,
- qr(
- qr(
- {
- delta: C,
- dist: B,
- rotate: x,
- rotation: x,
- beforeDist: I,
- beforeDelta: y,
- beforeRotate: E,
- beforeRotation: E,
- absoluteDist: D,
- absoluteDelta: S,
- absoluteRotate: R,
- absoluteRotation: R,
- isPinch: !!u,
- resize: W
- },
- L
- ),
- X
- )
- );
- return Cs(t, 'onRotate', V), V;
- }
- }
- },
- dragControlEnd: function (t, e) {
- var n = e.datas;
- if (n.isRotate) {
- n.isRotate = !1;
- var r = Is(t, e, {});
- return Cs(t, 'onRotateEnd', r), r;
- }
- },
- dragGroupControlCondition: po,
- dragGroupControlStart: function (t, e) {
- var n = e.datas,
- r = t.state,
- a = r.left,
- i = r.top,
- o = r.beforeOrigin,
- s = this.dragControlStart(t, e);
- if (!s) return !1;
- s.set(n.beforeDirection * t.rotation);
- var l = ci(t, this, 'dragControlStart', e, function (t, e) {
- var n = t.state,
- r = n.left,
- s = n.top,
- l = n.beforeOrigin,
- c = Un(Fn([r, s], [a, i]), Fn(l, o));
- return (
- (e.datas.startGroupClient = c),
- (e.datas.groupClient = c),
- qr(qr({}, e), { parentRotate: 0 })
- );
- }),
- c = Cs(
- t,
- 'onRotateGroupStart',
- qr(qr({}, s), { targets: t.props.targets, events: l })
- );
- return (n.isRotate = !1 !== c), !!n.isRotate && s;
- },
- dragGroupControl: function (t, e) {
- var n = e.datas;
- if (n.isRotate) {
- Es(t, 'onBeforeRotate', function (n) {
- Cs(
- t,
- 'onBeforeRotateGroup',
- ys(t, e, qr(qr({}, n), { targets: t.props.targets }), !0)
- );
- });
- var r = this.dragControl(t, e);
- if (r) {
- var a = n.beforeDirection,
- i = r.beforeDist,
- o = (i / 180) * Math.PI,
- s = ci(t, this, 'dragControl', e, function (t, e) {
- var n = e.datas.startGroupClient,
- r = Kr(e.datas.groupClient, 2),
- s = r[0],
- l = r[1],
- c = Kr(qn(n, o * a), 2),
- u = c[0],
- f = c[1],
- d = [u - s, f - l];
- return (
- (e.datas.groupClient = [u, f]),
- qr(qr({}, e), { parentRotate: i, groupDelta: d })
- );
- });
- t.rotation = a * r.beforeRotation;
- var l = qr(
- {
- targets: t.props.targets,
- events: s,
- set: function (e) {
- t.rotation = e;
- },
- setGroupRotation: function (e) {
- t.rotation = e;
- }
- },
- r
- );
- return Cs(t, 'onRotateGroup', l), l;
- }
- }
- },
- dragGroupControlEnd: function (t, e) {
- var n = e.isDrag;
- if (e.datas.isRotate) {
- this.dragControlEnd(t, e);
- var r = ci(t, this, 'dragControlEnd', e);
- return (
- Cs(
- t,
- 'onRotateGroupEnd',
- Is(t, e, { targets: t.props.targets, events: r })
- ),
- n
- );
- }
- },
- request: function (t) {
- var e = {},
- n = 0,
- r = t.getRotation();
- return {
- isControl: !0,
- requestStart: function () {
- return { datas: e };
- },
- request: function (t) {
- return (
- 'deltaRotate' in t
- ? (n += t.deltaRotate)
- : 'rotate' in t && (n = t.rotate - r),
- { datas: e, parentDist: n }
- );
- },
- requestEnd: function () {
- return { datas: e, isDrag: !0 };
- }
- };
- }
- };
- function mo(t, e) {
- return (function (t, e) {
- var n,
- r = t.direction,
- a = t.classNames,
- i = t.size,
- o = t.pos,
- s = t.zoom,
- l = t.key,
- c = 'horizontal' === r,
- u = c ? 'Y' : 'X';
- return e.createElement('div', {
- key: l,
- className: a.join(' '),
- style:
- ((n = {}),
- (n[c ? 'width' : 'height'] = ''.concat(i)),
- (n.transform = 'translate('
- .concat(o[0], ', ')
- .concat(o[1], ') translate')
- .concat(u, '(-50%) scale')
- .concat(u, '(')
- .concat(s, ')')),
- n)
- });
- })(
- qr(qr({}, t), {
- classNames: Zr(
- [Go('line', 'guideline', t.direction)],
- Kr(t.classNames),
- !1
- ).filter(function (t) {
- return t;
- }),
- size: t.size || ''.concat(t.sizeValue, 'px'),
- pos:
- t.pos ||
- t.posValue.map(function (t) {
- return ''.concat(pe(t, 0.1), 'px');
- })
- }),
- e
- );
- }
- function vo(t, e, n, r, a, i, o, s) {
- var l = t.props.zoom;
- return n.map(function (t, n) {
- var c = t.type,
- u = t.pos,
- f = [0, 0];
- return (
- (f[o] = r),
- (f[o ? 0 : 1] = -a + u),
- mo(
- {
- key: ''.concat(e, 'TargetGuideline').concat(n),
- classNames: [Go('target', 'bold', c)],
- posValue: f,
- sizeValue: i,
- zoom: l,
- direction: e
- },
- s
- )
- );
- });
- }
- function ho(t, e, n, r, a, i) {
- var o = t.props,
- s = o.zoom,
- l = o.isDisplayInnerSnapDigit,
- c = 'horizontal' === e ? Ci : Bi,
- u = a[c.start],
- f = a[c.end];
- return n
- .filter(function (t) {
- var e = t.hide,
- n = t.elementRect;
- if (e) return !1;
- if (l && n) {
- var r = n.rect;
- if (r[c.start] <= u && f <= r[c.end]) return !1;
- }
- return !0;
- })
- .map(function (t, n) {
- var a = t.pos,
- o = t.size,
- l = t.element,
- c = t.className,
- u = [-r[0] + a[0], -r[1] + a[1]];
- return mo(
- {
- key: ''.concat(e, '-default-guideline-').concat(n),
- classNames: l ? [Go('bold'), c] : [Go('normal'), c],
- direction: e,
- posValue: u,
- sizeValue: o,
- zoom: s
- },
- i
- );
- });
- }
- function Ao(t, e, n, r, a, i, o, s) {
- var l,
- c = t.props,
- u = c.snapDigit,
- f = void 0 === u ? 0 : u,
- d = c.isDisplaySnapDigit,
- p = void 0 === d || d,
- g = c.snapDistFormat,
- m =
- void 0 === g
- ? function (t, e) {
- return t;
- }
- : g,
- v = c.zoom,
- h = 'horizontal' === e ? 'X' : 'Y',
- A = 'vertical' === e ? 'height' : 'width',
- b = Math.abs(a),
- w = p ? parseFloat(b.toFixed(f)) : 0;
- return s.createElement(
- 'div',
- {
- key: ''.concat(e, '-').concat(n, '-guideline-').concat(r),
- className: Go('guideline-group', e),
- style:
- ((l = {
- left: ''.concat(i[0], 'px'),
- top: ''.concat(i[1], 'px')
- }),
- (l[A] = ''.concat(b, 'px')),
- l)
- },
- mo(
- {
- direction: e,
- classNames: [Go(n), o],
- size: '100%',
- posValue: [0, 0],
- sizeValue: b,
- zoom: v
- },
- s
- ),
- s.createElement(
- 'div',
- {
- className: Go('size-value', 'gap'),
- style: {
- transform: 'translate'
- .concat(h, '(-50%) scale(')
- .concat(v, ')')
- }
- },
- w > 0 ? m(w, e) : ''
- )
- );
- }
- function bo(t, e, n, r, a) {
- var i = t.props.isDisplayInnerSnapDigit,
- o = [];
- return (
- ['vertical', 'horizontal'].forEach(function (s) {
- var l = e.filter(function (t) {
- return t.type === s;
- }),
- c = 'vertical' === s ? 1 : 0,
- u = c ? 0 : 1,
- f = (function (t, e, n, r) {
- var a = 'vertical' === t ? 0 : 1,
- i = 'vertical' === t ? 1 : 0,
- o = a ? Ci : Bi,
- s = n[o.start],
- l = n[o.end];
- return Ds(e, function (t) {
- return t.pos[a];
- }).map(function (e) {
- var n = [],
- c = [];
- return (
- e.forEach(function (e) {
- var u,
- f,
- d = e.element,
- p = e.elementRect.rect;
- if (p[o.end] < s) n.push(e);
- else if (l < p[o.start]) c.push(e);
- else if (p[o.start] <= s && l <= p[o.end] && r) {
- var g = e.pos,
- m = {
- element: d,
- rect: qr(
- qr({}, p),
- ((u = {}), (u[o.end] = p[o.start]), u)
- )
- },
- v = {
- element: d,
- rect: qr(
- qr({}, p),
- ((f = {}), (f[o.start] = p[o.end]), f)
- )
- },
- h = [0, 0],
- A = [0, 0];
- (h[a] = g[a]),
- (h[i] = g[i]),
- (A[a] = g[a]),
- (A[i] = g[i] + e.size),
- n.push({
- type: t,
- pos: h,
- size: 0,
- elementRect: m,
- direction: ''
- }),
- c.push({
- type: t,
- pos: A,
- size: 0,
- elementRect: v,
- direction: ''
- });
- }
- }),
- n.sort(function (t, e) {
- return e.pos[i] - t.pos[i];
- }),
- c.sort(function (t, e) {
- return t.pos[i] - e.pos[i];
- }),
- { total: e, start: n, end: c, inner: [] }
- );
- });
- })(s, l, r, i),
- d = c ? Bi : Ci,
- p = c ? Ci : Bi,
- g = r[d.start],
- m = r[d.end];
- f.forEach(function (e) {
- var i = e.total,
- l = e.start,
- f = e.end,
- v = e.inner,
- h = n[u] + i[0].pos[u] - r[p.start],
- A = r;
- l.forEach(function (e) {
- var r = e.elementRect.rect,
- i = A[d.start] - r[d.end];
- if (i > 0) {
- var l = [0, 0];
- (l[c] = n[c] + A[d.start] - g - i),
- (l[u] = h),
- o.push(
- Ao(t, s, 'dashed', o.length, i, l, e.className, a)
- );
- }
- A = r;
- }),
- (A = r),
- f.forEach(function (e) {
- var r = e.elementRect.rect,
- i = r[d.start] - A[d.end];
- if (i > 0) {
- var l = [0, 0];
- (l[c] = n[c] + A[d.end] - g),
- (l[u] = h),
- o.push(
- Ao(t, s, 'dashed', o.length, i, l, e.className, a)
- );
- }
- A = r;
- }),
- v.forEach(function (e) {
- var r = e.elementRect.rect,
- i = g - r[d.start],
- l = r[d.end] - m,
- f = [0, 0],
- p = [0, 0];
- (f[c] = n[c] - i),
- (f[u] = h),
- (p[c] = n[c] + m - g),
- (p[u] = h),
- o.push(
- Ao(t, s, 'dashed', o.length, i, f, e.className, a)
- ),
- o.push(
- Ao(t, s, 'dashed', o.length, l, p, e.className, a)
- );
- });
- });
- }),
- o
- );
- }
- function wo(t) {
- var e = t.state,
- n = e.containerClientRect,
- r = e.hasFixed,
- a = n.overflow,
- i = n.scrollHeight,
- o = n.scrollWidth,
- s = n.clientHeight,
- l = n.clientWidth,
- c = n.clientLeft,
- u = n.clientTop,
- f = t.props,
- d = f.snapGap,
- p = void 0 === d || d,
- g = f.verticalGuidelines,
- m = f.horizontalGuidelines,
- v = f.snapThreshold,
- h = void 0 === v ? 5 : v,
- A = f.snapGridWidth,
- b = void 0 === A ? 0 : A,
- w = f.snapGridHeight,
- k = void 0 === w ? 0 : w,
- y = f.maxSnapElementGuidelineDistance,
- I = void 0 === y ? 1 / 0 : y,
- E = f.isDisplayGridGuidelines,
- C = ns(hs(t.state)),
- B = C.top,
- x = C.left,
- S = C.bottom,
- D = C.right,
- R = {
- top: B,
- left: x,
- bottom: S,
- right: D,
- center: (x + D) / 2,
- middle: (B + S) / 2
- },
- Q = (function (t) {
- var e = t.state,
- n = t.props.elementGuidelines,
- r = void 0 === n ? [] : n;
- if (!r.length) return (e.elementRects = []), [];
- var a,
- i,
- o = (e.elementRects || []).filter(function (t) {
- return !t.refresh;
- }),
- s = r
- .map(function (t) {
- return Nt(t) && 'element' in t
- ? qr(qr({}, t), { element: Gs(t.element, !0) })
- : { element: Gs(t, !0) };
- })
- .filter(function (t) {
- return t.element;
- }),
- l =
- ((a = o.map(function (t) {
- return t.element;
- })),
- (i = s.map(function (t) {
- return t.element;
- })),
- _e(a, i, cr)),
- c = l.maintained,
- u = l.added,
- f = [];
- c.forEach(function (t) {
- var e = Kr(t, 2),
- n = e[0],
- r = e[1];
- f[r] = o[n];
- }),
- (function (t, e) {
- if (!e.length) return [];
- var n = t.props.groupable,
- r = t.state,
- a = r.containerClientRect,
- i = r.rootMatrix,
- o = r.is3d,
- s = r.offsetDelta,
- l = o ? 4 : 3,
- c = Kr(
- (function (t, e, n) {
- var r = ts(t, [e.clientLeft, e.clientTop], n);
- return [e.left + r[0], e.top + r[1]];
- })(i, a, l),
- 2
- ),
- u = c[0],
- f = c[1],
- d = n ? 0 : s[0],
- p = n ? 0 : s[1];
- return e.map(function (t) {
- var e = t.element.getBoundingClientRect(),
- n = e.left - u - d,
- r = e.top - f - p,
- a = r + e.height,
- o = n + e.width,
- s = Kr(_s(i, [n, r], l), 2),
- c = s[0],
- g = s[1],
- m = Kr(_s(i, [o, a], l), 2),
- v = m[0],
- h = m[1];
- return qr(qr({}, t), {
- rect: {
- left: c,
- right: v,
- top: g,
- bottom: h,
- center: (c + v) / 2,
- middle: (g + h) / 2
- }
- });
- });
- })(
- t,
- u.map(function (t) {
- return s[t];
- })
- ).map(function (t, e) {
- f[u[e]] = t;
- }),
- (e.elementRects = f);
- var d = Si(t.props.elementSnapDirections),
- p = [];
- return (
- f.forEach(function (t) {
- var e = t.element,
- n = t.top,
- r = void 0 === n ? d.top : n,
- a = t.left,
- i = void 0 === a ? d.left : a,
- o = t.right,
- s = void 0 === o ? d.right : o,
- l = t.bottom,
- c = void 0 === l ? d.bottom : l,
- u = t.center,
- f = void 0 === u ? d.center : u,
- g = t.middle,
- m = void 0 === g ? d.middle : g,
- v = t.className,
- h = t.rect,
- A = Di(
- {
- top: r,
- right: s,
- left: i,
- bottom: c,
- center: f,
- middle: m
- },
- h
- ),
- b = A.horizontal,
- w = A.vertical,
- k = h.top,
- y = h.left,
- I = h.right - y,
- E = h.bottom - k,
- C = [I, E];
- w.forEach(function (n) {
- p.push({
- type: 'vertical',
- element: e,
- pos: [pe(n, 0.1), k],
- size: E,
- sizes: C,
- className: v,
- elementRect: t,
- direction: ''
- });
- }),
- b.forEach(function (n) {
- p.push({
- type: 'horizontal',
- element: e,
- pos: [y, pe(n, 0.1)],
- size: I,
- sizes: C,
- className: v,
- elementRect: t,
- direction: ''
- });
- });
- }),
- p
- );
- })(t),
- _ = Zr([], Kr(Q), !1);
- p &&
- _.push.apply(
- _,
- Zr(
- [],
- Kr(
- (function (t, e, n) {
- var r = t.props,
- a = r.maxSnapElementGuidelineDistance,
- i = void 0 === a ? 1 / 0 : a,
- o = r.maxSnapElementGapDistance,
- s = void 0 === o ? 1 / 0 : o,
- l = t.state.elementRects,
- c = [];
- return (
- [
- ['vertical', Ci, Bi],
- ['horizontal', Bi, Ci]
- ].forEach(function (t) {
- var r = Kr(t, 3),
- a = r[0],
- o = r[1],
- u = r[2],
- f = e[o.start],
- d = e[o.end],
- p = e[o.center],
- g = e[u.start],
- m = e[u.end];
- function v(t) {
- var e = t.rect;
- return e[o.end] < f + n
- ? f - e[o.end]
- : d - n < e[o.start]
- ? e[o.start] - d
- : -1;
- }
- var h = l
- .filter(function (t) {
- var e = t.rect;
- return (
- !(e[u.start] > m || e[u.end] < g) && v(t) > 0
- );
- })
- .sort(function (t, e) {
- return v(t) - v(e);
- }),
- A = [];
- h.forEach(function (t) {
- h.forEach(function (e) {
- if (t !== e) {
- var n = t.rect,
- r = e.rect,
- a = n[u.start],
- i = n[u.end],
- o = r[u.start];
- a > r[u.end] || o > i || A.push([t, e]);
- }
- });
- }),
- A.forEach(function (t) {
- var r = Kr(t, 2),
- l = r[0],
- u = r[1],
- g = l.rect,
- m = u.rect,
- v = g[o.start],
- h = g[o.end],
- A = m[o.start],
- b = m[o.end],
- w = 0,
- k = 0,
- y = !1,
- I = !1,
- E = !1;
- if (h <= f && d <= A) {
- if (
- ((I = !0),
- qs(
- (k =
- h +
- (w = (A - h - (d - f)) / 2) +
- (d - f) / 2) - p
- ) > n)
- )
- return;
- } else if (h < A && b < f + n) {
- if (((y = !0), qs((k = b + (w = A - h)) - f) > n))
- return;
- } else {
- if (!(h < A && d - n < v)) return;
- if (((E = !0), qs((k = v - (w = A - h)) - d) > n))
- return;
- }
- w &&
- ko(e, m, a, i) &&
- (w > s ||
- c.push({
- type: a,
- pos: 'vertical' === a ? [k, 0] : [0, k],
- element: u.element,
- size: 0,
- className: u.className,
- isStart: y,
- isCenter: I,
- isEnd: E,
- gap: w,
- hide: !0,
- gapRects: [l, u],
- direction: ''
- }));
- });
- }),
- c
- );
- })(t, R, h)
- ),
- !1
- )
- );
- var O = qr(
- {},
- e.snapOffset || { left: 0, top: 0, bottom: 0, right: 0 }
- );
- if (
- (_.push.apply(
- _,
- Zr(
- [],
- Kr(
- (function (t, e, n, r, a, i, o, s) {
- void 0 === a && (a = 0), void 0 === i && (i = 0);
- var l = [],
- c = o.left,
- u = o.top;
- if (e)
- for (var f = 0; f <= r; f += e)
- l.push({
- type: 'horizontal',
- pos: [c, pe(f - i + u, 0.1)],
- className: Go('grid-guideline'),
- size: n,
- hide: !s,
- direction: ''
- });
- if (t)
- for (f = 0; f <= n; f += t)
- l.push({
- type: 'vertical',
- pos: [pe(f - a + c, 0.1), u],
- className: Go('grid-guideline'),
- size: r,
- hide: !s,
- direction: ''
- });
- return l;
- })(b, k, a ? o : l, a ? i : s, c, u, O, E)
- ),
- !1
- )
- ),
- r)
- ) {
- var M = n.left,
- T = n.top;
- (O.left += M), (O.top += T), (O.right += M), (O.bottom += T);
- }
- return (
- _.push.apply(
- _,
- Zr(
- [],
- Kr(Io(m || !1, g || !1, a ? o : l, a ? i : s, c, u, O)),
- !1
- )
- ),
- (_ = _.filter(function (t) {
- var e = t.element,
- n = t.elementRect,
- r = t.type;
- if (!e || !n) return !0;
- var a = n.rect;
- return ko(R, a, r, I);
- })),
- _
- );
- }
- function ko(t, e, n, r) {
- return 'horizontal' === n
- ? qs(t.right - e.left) <= r ||
- qs(t.left - e.right) <= r ||
- (t.left <= e.right && e.left <= t.right)
- : 'vertical' !== n ||
- qs(t.bottom - e.top) <= r ||
- qs(t.top - e.bottom) <= r ||
- (t.top <= e.bottom && e.top <= t.bottom);
- }
- function yo(t, e) {
- return t
- ? t.map(function (t) {
- var n = Nt(t) ? t : { pos: t },
- r = n.pos;
- return Lt(r) ? n : qr(qr({}, n), { pos: ie(r, e) });
- })
- : [];
- }
- function Io(t, e, n, r, a, i, o) {
- void 0 === a && (a = 0),
- void 0 === i && (i = 0),
- void 0 === o && (o = { left: 0, top: 0, right: 0, bottom: 0 });
- var s = [],
- l = o.left,
- c = o.top,
- u = o.bottom,
- f = n + o.right - l,
- d = r + u - c;
- return (
- yo(t, d).forEach(function (t) {
- s.push({
- type: 'horizontal',
- pos: [l, pe(t.pos - i + c, 0.1)],
- size: f,
- className: t.className,
- direction: ''
- });
- }),
- yo(e, f).forEach(function (t) {
- s.push({
- type: 'vertical',
- pos: [pe(t.pos - a + l, 0.1), c],
- size: d,
- className: t.className,
- direction: ''
- });
- }),
- s
- );
- }
- function Eo(t) {
- var e = t.state,
- n = e.container,
- r = t.props.snapContainer || n;
- if (e.snapContainer === r && e.guidelines && e.guidelines.length)
- return !1;
- var a = e.containerClientRect,
- i = { left: 0, top: 0, bottom: 0, right: 0 };
- if (n !== r) {
- var o = Gs(r, !0);
- if (o) {
- var s = ps(o),
- l = Us(e, [s.left - a.left, s.top - a.top]),
- c = Us(e, [s.right - a.right, s.bottom - a.bottom]);
- (i.left = pe(l[0], 1e-5)),
- (i.top = pe(l[1], 1e-5)),
- (i.right = pe(c[0], 1e-5)),
- (i.bottom = pe(c[1], 1e-5));
- }
- }
- return (
- (e.snapContainer = r),
- (e.snapOffset = i),
- (e.guidelines = wo(t)),
- (e.enableSnap = !0),
- !0
- );
- }
- function Co(t, e, n, r, a, i) {
- var o = es(t, e, n, i ? 4 : 3);
- return vs(o, Fn(a, Na(o, r)));
- }
- function Bo(t) {
- return t ? t / qs(t) : 0;
- }
- function xo(t, e, n, r, a, i) {
- var o = (function (t, e, n) {
- var r = [];
- if (n)
- 1 !== qs(e[0]) || 1 !== qs(e[1])
- ? r.push(
- [e, [-1, -1]],
- [e, [-1, 1]],
- [e, [1, -1]],
- [e, [1, 1]]
- )
- : r.push([e, [t[0], -t[1]]], [e, [-t[0], t[1]]]),
- r.push([e, t]);
- else if ((t[0] && t[1]) || (!t[0] && !t[1])) {
- var a = t[0] ? t : [1, 1];
- [1, -1].forEach(function (t) {
- [1, -1].forEach(function (n) {
- var i = [t * a[0], n * a[1]];
- (e[0] === i[0] && e[1] === i[1]) || r.push([e, i]);
- });
- });
- } else
- t[0]
- ? (1 === qs(e[0]) ? [1] : [1, -1]).forEach(function (n) {
- r.push(
- [
- [e[0], -1],
- [n * t[0], -1]
- ],
- [
- [e[0], 0],
- [n * t[0], 0]
- ],
- [
- [e[0], 1],
- [n * t[0], 1]
- ]
- );
- })
- : t[1] &&
- (1 === qs(e[1]) ? [1] : [1, -1]).forEach(function (n) {
- r.push(
- [
- [-1, e[1]],
- [-1, n * t[1]]
- ],
- [
- [0, e[1]],
- [0, n * t[1]]
- ],
- [
- [1, e[1]],
- [1, n * t[1]]
- ]
- );
- });
- return r;
- })(n, i.fixedDirection, r),
- s = Wi(t, e, n, r),
- l = Zr(Zr([], Kr(to(t, e, o, r, a, i)), !1), Kr(Xi(t, s, i)), !1),
- c = Yi(l, 0),
- u = Yi(l, 1);
- return {
- width: { isBound: c.isBound, offset: c.offset[0] },
- height: { isBound: u.isBound, offset: u.offset[1] }
- };
- }
- function So(t, e, n, r, a, i, o, s) {
- for (
- var l = hs(t.state), c = t.props.keepRatio, u = 0, f = 0, d = 0;
- d < 2;
- ++d
- ) {
- var p = xo(t, e(u, f), a, c, o, s),
- g = p.width,
- m = p.height,
- v = g.isBound,
- h = m.isBound,
- A = g.offset,
- b = m.offset;
- if (
- (1 === d && (v || (A = 0), h || (b = 0)),
- 0 === d && o && !v && !h)
- )
- return [0, 0];
- if (c) {
- var w = qs(A) * (n ? 1 / n : 1),
- k = qs(b) * (r ? 1 / r : 1);
- (v && h ? w < k : h || (!v && w < k))
- ? (A = (n * b) / r)
- : (b = (r * A) / n);
- }
- (u += A), (f += b);
- }
- if (a[0] && a[1]) {
- var y = (function (t, e, n, r, a) {
- var i = [-n[0], -n[1]],
- o = t.state,
- s = o.width,
- l = o.height,
- c = t.props.bounds,
- u = 1 / 0,
- f = 1 / 0;
- if (c) {
- var d = [
- [n[0], -n[1]],
- [-n[0], n[1]]
- ],
- p = c.left,
- g = void 0 === p ? -1 / 0 : p,
- m = c.top,
- v = void 0 === m ? -1 / 0 : m,
- h = c.right,
- A = void 0 === h ? 1 / 0 : h,
- b = c.bottom,
- w = void 0 === b ? 1 / 0 : b;
- d.forEach(function (t) {
- var n = t[0] !== i[0],
- o = t[1] !== i[1],
- c = Na(e, t),
- d = (360 * ue(r, c)) / Math.PI;
- if (o) {
- var p = c.slice();
- (qs(d - 360) < 2 || qs(d - 180) < 2) && (p[1] = r[1]);
- var m = qi(r, p, (r[1] < c[1] ? w : v) - c[1], !1, a),
- h = Kr(m.offset, 2)[1],
- b = m.isOutside;
- isNaN(h) || (f = l + (b ? 1 : -1) * qs(h));
- }
- if (n) {
- (p = c.slice()),
- (qs(d - 90) < 2 || qs(d - 270) < 2) && (p[0] = r[0]);
- var k = qi(r, p, (r[0] < c[0] ? A : g) - c[0], !0, a),
- y = Kr(k.offset, 1)[0],
- I = k.isOutside;
- isNaN(y) || (u = s + (I ? 1 : -1) * qs(y));
- }
- });
- }
- return { maxWidth: u, maxHeight: f };
- })(t, l, a, i, s),
- I = y.maxWidth,
- E = y.maxHeight,
- C = Kr(
- (function (t, e, n, r, a, i, o, s, l) {
- var c = Na(e, o),
- u = Ji(t, s, { vertical: [c[0]], horizontal: [c[1]] }),
- f = u.horizontal.offset,
- d = u.vertical.offset;
- if (pe(d, ba) || pe(f, ba)) {
- var p = Kr(Ya({ datas: l, distX: -d, distY: -f }), 2),
- g = p[0],
- m = p[1];
- return [
- Math.min(a || 1 / 0, n + o[0] * g) - n,
- Math.min(i || 1 / 0, r + o[1] * m) - r
- ];
- }
- return [0, 0];
- })(
- t,
- e(u, f).map(function (t) {
- return t.map(function (t) {
- return pe(t, ba);
- });
- }),
- n + u,
- r + f,
- I,
- E,
- a,
- o,
- s
- ),
- 2
- );
- (u += A = C[0]), (f += b = C[1]);
- }
- return [u, f];
- }
- function Do(t) {
- return t < 0 && (t = (t % 360) + 360), (t %= 360);
- }
- function Ro(t, e) {
- e = Do(e);
- var n = Math.floor(t / 360),
- r = 360 * n + 360 - e,
- a = 360 * n + e;
- return qs(t - r) < qs(t - a) ? r : a;
- }
- function Qo(t, e) {
- (t = Do(t)), (e = Do(e));
- var n = Do(t - e);
- return Math.min(n, 360 - n);
- }
- function _o(t, e, n, r, a) {
- if (!xi(t, 'scalable')) return [0, 0];
- var i = a.startOffsetWidth,
- o = a.startOffsetHeight,
- s = a.fixedPosition,
- l = a.fixedDirection,
- c = a.is3d,
- u = So(
- t,
- function (t, n) {
- return Co(
- (function (t, e) {
- var n = t.transformOrigin,
- r = t.offsetMatrix,
- a = t.is3d,
- i = t.targetMatrix,
- o = a ? 4 : 3;
- return Ua(
- r,
- Nn(t.targetAllTransform || i, tr(e, o), o),
- n,
- o
- );
- })(a, Un(e, [t / i, n / o])),
- i,
- o,
- l,
- s,
- c
- );
- },
- i,
- o,
- n,
- s,
- r,
- a
- );
- return [u[0] / i, u[1] / o];
- }
- function Oo(t) {
- var e = [];
- return (
- t.forEach(function (t) {
- t.guidelineInfos.forEach(function (n) {
- var r = n.guideline;
- ee(e, function (t) {
- return t.guideline === r;
- }) ||
- ((r.direction = ''), e.push({ guideline: r, posInfo: t }));
- });
- }),
- e.map(function (t) {
- var e = t.guideline,
- n = t.posInfo;
- return qr(qr({}, e), { direction: n.direction });
- })
- );
- }
- function Mo(t, e, n, r, a, i) {
- var o = Ai(bi(t, i), e, n),
- s = o.vertical,
- l = o.horizontal;
- s.forEach(function (t) {
- t.isBound && r.push({ type: 'bounds', pos: t.pos });
- }),
- l.forEach(function (t) {
- t.isBound && a.push({ type: 'bounds', pos: t.pos });
- });
- var c = (function (t) {
- var e = t.props.innerBounds;
- if (!e) return { vertical: [], horizontal: [] };
- var n = t.getRect(),
- r = [n.pos1, n.pos2, n.pos3, n.pos4],
- a = Na(r, [0, 0]),
- i = e.left,
- o = e.top,
- s = e.width,
- l = e.height,
- c = [
- [i, o],
- [i, o + l]
- ],
- u = [
- [i, o],
- [i + s, o]
- ],
- f = [
- [i + s, o],
- [i + s, o + l]
- ],
- d = [
- [i, o + l],
- [i + s, o + l]
- ],
- p = Wi(t, r, [0, 0], !1),
- g = [],
- m = [],
- v = { top: !1, bottom: !1, left: !1, right: !1 };
- return (
- p.forEach(function (t) {
- var e = t.line,
- n = t.lineConstants,
- r = Gi(a, e),
- p = r.horizontal,
- h = r.vertical,
- A = Li(e, n, u, h, 1, !0),
- b = Li(e, n, d, h, 1, !0),
- w = Li(e, n, c, p, 1, !0),
- k = Li(e, n, f, p, 1, !0);
- A.isBound && !v.top && (g.push(o), (v.top = !0)),
- b.isBound && !v.bottom && (g.push(o + l), (v.bottom = !0)),
- w.isBound && !v.left && (m.push(i), (v.left = !0)),
- k.isBound && !v.right && (m.push(i + s), (v.right = !0));
- }),
- { horizontal: g, vertical: m }
- );
- })(t),
- u = c.vertical,
- f = c.horizontal;
- u.forEach(function (t) {
- te(r, function (e) {
- var n = e.type,
- r = e.pos;
- return 'bounds' === n && r === t;
- }) >= 0 || r.push({ type: 'bounds', pos: t });
- }),
- f.forEach(function (t) {
- te(a, function (e) {
- var n = e.type,
- r = e.pos;
- return 'bounds' === n && r === t;
- }) >= 0 || a.push({ type: 'bounds', pos: t });
- });
- }
- var To = Ys('', ['resizable', 'scalable']),
- zo = 'snapRotationThreshold',
- Po = 'snapRotationDegrees',
- Yo = {
- name: 'snappable',
- dragRelation: 'strong',
- props: [
- 'snappable',
- 'snapContainer',
- 'snapDirections',
- 'elementSnapDirections',
- 'snapGap',
- 'snapGridWidth',
- 'snapGridHeight',
- 'isDisplaySnapDigit',
- 'isDisplayInnerSnapDigit',
- 'isDisplayGridGuidelines',
- 'snapDigit',
- 'snapThreshold',
- 'snapRenderThreshold',
- zo,
- Po,
- 'horizontalGuidelines',
- 'verticalGuidelines',
- 'elementGuidelines',
- 'bounds',
- 'innerBounds',
- 'snapDistFormat',
- 'maxSnapElementGuidelineDistance',
- 'maxSnapElementGapDistance'
- ],
- events: ['snap'],
- css: [
- ':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'
- ],
- render: function (t, e) {
- var n = t.state,
- r = n.top,
- a = n.left,
- i = n.pos1,
- o = n.pos2,
- s = n.pos3,
- l = n.pos4,
- c = n.snapRenderInfo,
- u = t.props.snapRenderThreshold,
- f = void 0 === u ? 1 : u;
- if (!c || !c.render || !xi(t, '')) return [];
- n.guidelines = wo(t);
- var d = Math.min(i[0], o[0], s[0], l[0]),
- p = Math.min(i[1], o[1], s[1], l[1]),
- g = c.externalPoses || [],
- m = hs(t.state),
- v = [],
- h = [],
- A = [],
- b = [],
- w = [],
- k = ns(m),
- y = k.width,
- I = k.height,
- E = k.top,
- C = k.left,
- B = k.bottom,
- x = k.right,
- S = {
- left: C,
- right: x,
- top: E,
- bottom: B,
- center: (C + x) / 2,
- middle: (E + B) / 2
- },
- D = g.length > 0,
- R = D ? ns(g) : {};
- if (!c.request) {
- if ((c.direction && w.push(zi(t, m, c.direction, f)), c.snap)) {
- var Q = ns(m);
- c.center &&
- ((Q.middle = (Q.top + Q.bottom) / 2),
- (Q.center = (Q.left + Q.right) / 2)),
- w.push(Oi(t, Q, f));
- }
- D &&
- (c.center &&
- ((R.middle = (R.top + R.bottom) / 2),
- (R.center = (R.left + R.right) / 2)),
- w.push(Oi(t, R, f))),
- w.forEach(function (t) {
- var e = t.vertical.posInfos,
- n = t.horizontal.posInfos;
- v.push.apply(
- v,
- Zr(
- [],
- Kr(
- e
- .filter(function (t) {
- return t.guidelineInfos.some(function (t) {
- return !t.guideline.hide;
- });
- })
- .map(function (t) {
- return { type: 'snap', pos: t.pos };
- })
- ),
- !1
- )
- ),
- h.push.apply(
- h,
- Zr(
- [],
- Kr(
- n
- .filter(function (t) {
- return t.guidelineInfos.some(function (t) {
- return !t.guideline.hide;
- });
- })
- .map(function (t) {
- return { type: 'snap', pos: t.pos };
- })
- ),
- !1
- )
- ),
- A.push.apply(A, Zr([], Kr(Oo(e)), !1)),
- b.push.apply(b, Zr([], Kr(Oo(n)), !1));
- });
- }
- Mo(t, [C, x], [E, B], v, h),
- D &&
- Mo(
- t,
- [R.left, R.right],
- [R.top, R.bottom],
- v,
- h,
- c.externalBounds
- );
- var _ = Zr(Zr([], Kr(A), !1), Kr(b), !1),
- O = _.filter(function (t) {
- return t.element && !t.gapRects;
- }),
- M = _.filter(function (t) {
- return t.gapRects;
- }).sort(function (t, e) {
- return t.gap - e.gap;
- });
- return (
- Cs(
- t,
- 'onSnap',
- {
- guidelines: _.filter(function (t) {
- return !t.element;
- }),
- elements: O,
- gaps: M
- },
- !0
- ),
- Zr(
- Zr(
- Zr(
- Zr(
- Zr(
- Zr([], Kr(bo(t, O, [d, p], S, e)), !1),
- Kr(
- (function (t, e, n, r, a) {
- var i = [];
- return (
- ['horizontal', 'vertical'].forEach(function (
- o
- ) {
- var s = e
- .filter(function (t) {
- return t.type === o;
- })
- .slice(0, 1),
- l = 'vertical' === o ? 0 : 1,
- c = l ? 0 : 1,
- u = l ? Bi : Ci,
- f = l ? Ci : Bi,
- d = r[u.start],
- p = r[u.end],
- g = r[f.start],
- m = r[f.end];
- s.forEach(function (e) {
- var r = e.gap,
- o = e.gapRects,
- s = Math.max.apply(
- Math,
- Zr(
- [g],
- Kr(
- o.map(function (t) {
- return t.rect[f.start];
- })
- ),
- !1
- )
- ),
- v = Math.min.apply(
- Math,
- Zr(
- [m],
- Kr(
- o.map(function (t) {
- return t.rect[f.end];
- })
- ),
- !1
- )
- ),
- h = (s + v) / 2;
- s !== v &&
- h !== (g + m) / 2 &&
- o.forEach(function (e) {
- var o = e.rect,
- s = e.className,
- f = [n[0], n[1]];
- if (o[u.end] < d) f[l] += o[u.end] - d;
- else {
- if (!(p < o[u.start])) return;
- f[l] += o[u.start] - d - r;
- }
- (f[c] += h - g),
- i.push(
- Ao(
- t,
- l ? 'vertical' : 'horizontal',
- 'gap',
- i.length,
- r,
- f,
- s,
- a
- )
- );
- });
- });
- }),
- i
- );
- })(t, M, [d, p], S, e)
- ),
- !1
- ),
- Kr(ho(t, 'horizontal', b, [a, r], S, e)),
- !1
- ),
- Kr(ho(t, 'vertical', A, [a, r], S, e)),
- !1
- ),
- Kr(vo(t, 'horizontal', h, d, r, y, 0, e)),
- !1
- ),
- Kr(vo(t, 'vertical', v, p, a, I, 1, e)),
- !1
- )
- );
- },
- dragStart: function (t, e) {
- (t.state.snapRenderInfo = {
- request: e.isRequest,
- snap: !0,
- center: !0
- }),
- Eo(t);
- },
- drag: function (t) {
- var e = t.state;
- Eo(t) || (e.guidelines = wo(t)),
- e.snapRenderInfo && (e.snapRenderInfo.render = !0);
- },
- pinchStart: function (t) {
- this.unset(t);
- },
- dragEnd: function (t) {
- this.unset(t);
- },
- dragControlCondition: function (t, e) {
- return (
- !(!To(t, e) && !po(t, e)) ||
- (!e.isRequest && e.inputEvent
- ? ve(e.inputEvent.target, Go('snap-control'))
- : void 0)
- );
- },
- dragControlStart: function (t) {
- (t.state.snapRenderInfo = null), Eo(t);
- },
- dragControl: function (t) {
- this.drag(t);
- },
- dragControlEnd: function (t) {
- this.unset(t);
- },
- dragGroupStart: function (t, e) {
- this.dragStart(t, e);
- },
- dragGroup: function (t) {
- this.drag(t);
- },
- dragGroupEnd: function (t) {
- this.unset(t);
- },
- dragGroupControlStart: function (t) {
- (t.state.snapRenderInfo = null), Eo(t);
- },
- dragGroupControl: function (t) {
- this.drag(t);
- },
- dragGroupControlEnd: function (t) {
- this.unset(t);
- },
- unset: function (t) {
- var e = t.state;
- (e.enableSnap = !1),
- (e.guidelines = []),
- (e.snapRenderInfo = null),
- (e.elementRects = []);
- }
- };
- function Go() {
- for (var t = [], e = 0; e < arguments.length; e++)
- t[e] = arguments[e];
- return Et.apply(void 0, Zr([ma], Kr(t), !1));
- }
- function No(t) {
- t();
- }
- function Uo(t) {
- return t && 'none' !== t ? (Nt(t) ? t : ar(t)) : [1, 0, 0, 1, 0, 0];
- }
- function Fo(t, e, n) {
- return Gn(
- e,
- er(n, e),
- t,
- er(
- n.map(function (t) {
- return -t;
- }),
- e
- )
- );
- }
- function Lo(t) {
- return Xo(Bs(t, ':before').transformOrigin).map(function (e, n) {
- var r = Zt(e),
- a = r.value,
- i = r.unit;
- return (
- a *
- (function (t, e, n) {
- return '%' === e
- ? Jo(t.ownerSVGElement)[n ? 'width' : 'height'] / 100
- : 1;
- })(t, i, 0 === n)
- );
- });
- }
- function Xo(t) {
- return t ? t.split(' ') : ['0', '0'];
- }
- function jo(t) {
- var e = oi(t)('transform');
- if (e && 'none' !== e) return e;
- if ('transform' in t) {
- var n = t.transform.baseVal;
- if (!n) return '';
- var r = n.length;
- if (!r) return '';
- for (
- var a = [],
- i = function (t) {
- var e = n[t].matrix;
- a.push(
- 'matrix('.concat(
- ['a', 'b', 'c', 'd', 'e', 'f']
- .map(function (t) {
- return e[t];
- })
- .join(', '),
- ')'
- )
- );
- },
- o = 0;
- o < r;
- ++o
- )
- i(o);
- return a.join(' ');
- }
- return '';
- }
- function Wo(t, e, n, r, a) {
- var i,
- o,
- s,
- l,
- c = ye(t) || Ie(t),
- u = !1;
- if (!t || n) s = t;
- else {
- var f =
- null === (i = null == t ? void 0 : t.assignedSlot) ||
- void 0 === i
- ? void 0
- : i.parentElement,
- d = t.parentElement;
- f ? ((u = !0), (l = d), (s = f)) : (s = d);
- }
- for (
- var p = !1,
- g = t === e || s === e,
- m = 'relative',
- v = 1,
- h = parseFloat(null == a ? void 0 : a('zoom')) || 1,
- A = null == a ? void 0 : a('position');
- s && s !== c;
- ) {
- e === s && (g = !0);
- var b = oi(s),
- w = s.tagName.toLowerCase(),
- k = jo(s),
- y = b('willChange'),
- I = parseFloat(b('zoom')) || 1;
- if (((m = b('position')), r && 1 !== I)) {
- v = I;
- break;
- }
- if (
- (!n && r && 1 !== h && A && 'absolute' !== A) ||
- 'svg' === w ||
- 'static' !== m ||
- (k && 'none' !== k) ||
- 'transform' === y
- )
- break;
- var E =
- null === (o = null == t ? void 0 : t.assignedSlot) ||
- void 0 === o
- ? void 0
- : o.parentNode,
- C = s.parentNode;
- E && ((u = !0), (l = C));
- var B = C;
- if (B && 11 === B.nodeType) {
- (p = !0), (m = oi((s = B.host))('position'));
- break;
- }
- (s = B), (m = 'relative');
- }
- return {
- offsetZoom: v,
- hasSlot: u,
- parentSlotElement: l,
- isCustomElement: p,
- isStatic: 'static' === m,
- isEnd: g || !s || s === c,
- offsetParent: s || c
- };
- }
- function Ho(t, e) {
- var n,
- r,
- a,
- i = t.tagName.toLowerCase(),
- o = t.offsetLeft,
- s = t.offsetTop,
- l = oi(t),
- c = Gt(o),
- u = !c;
- return (
- u || 'svg' === i
- ? (a = (r = Xo(l('transformOrigin')).map(function (t) {
- return parseFloat(t);
- })).slice())
- : ((a = (r = oa
- ? Lo(t)
- : Xo(l('transformOrigin')).map(function (t) {
- return parseFloat(t);
- })).slice()),
- (u = !0),
- (n = Kr(
- (function (t, e, n) {
- if (!t.getBBox || (!n && 'g' === t.tagName.toLowerCase()))
- return [0, 0, 0, 0];
- var r = t.getBBox(),
- a = Jo(t.ownerSVGElement),
- i = r.x - a.x,
- o = r.y - a.y;
- return [i, o, e[0] - i, e[1] - o];
- })(t, r, t === e && 'g' === e.tagName.toLowerCase()),
- 4
- )),
- (o = n[0]),
- (s = n[1]),
- (r[0] = n[2]),
- (r[1] = n[3])),
- {
- tagName: i,
- isSVG: c,
- hasOffset: u,
- offset: [o || 0, s || 0],
- origin: r,
- targetOrigin: a
- }
- );
- }
- function Vo(t, e) {
- var n = oi(t),
- r = oi(Ie(t)),
- a = r('position');
- if (!(e || (a && 'static' !== a))) return [0, 0];
- var i = parseInt(r('marginLeft'), 10),
- o = parseInt(r('marginTop'), 10);
- return (
- 'absolute' === n('position') &&
- (('auto' === n('top') && 'auto' === n('bottom')) || (o = 0),
- ('auto' === n('left') && 'auto' === n('right')) || (i = 0)),
- [i, o]
- );
- }
- function qo(t) {
- t.forEach(function (t) {
- var e = t.matrix;
- e && (t.matrix = Yn(e, 3, 4));
- });
- }
- function Ko(t) {
- for (var e = t.parentElement, n = !1, r = Ie(t); e; ) {
- var a = Bs(e).transform;
- if (a && 'none' !== a) {
- n = !0;
- break;
- }
- if (e === r) break;
- e = e.parentElement;
- }
- return { fixedContainer: e || r, hasTransform: n };
- }
- function Zo(t, e) {
- return (
- void 0 === e && (e = t.length > 9),
- ''
- .concat(e ? 'matrix3d' : 'matrix', '(')
- .concat(Ln(t, !e).join(','), ')')
- );
- }
- function Jo(t) {
- var e = t.clientWidth,
- n = t.clientHeight;
- if (!t)
- return {
- x: 0,
- y: 0,
- width: 0,
- height: 0,
- clientWidth: e,
- clientHeight: n
- };
- var r = t.viewBox,
- a = (r && r.baseVal) || { x: 0, y: 0, width: 0, height: 0 };
- return {
- x: a.x,
- y: a.y,
- width: a.width || e,
- height: a.height || n,
- clientWidth: e,
- clientHeight: n
- };
- }
- function $o(t, e) {
- var n,
- r = Jo(t),
- a = r.width,
- i = r.height,
- o = r.clientWidth,
- s = r.clientHeight,
- l = o / a,
- c = s / i,
- u = t.preserveAspectRatio.baseVal,
- f = u.align,
- d = u.meetOrSlice,
- p = [0, 0],
- g = [l, c],
- m = [0, 0];
- if (1 !== f) {
- var v = (f - 2) % 3,
- h = Math.floor((f - 2) / 3);
- (p[0] = (a * v) / 2), (p[1] = (i * h) / 2);
- var A = 2 === d ? Math.max(c, l) : Math.min(l, c);
- (g[0] = A),
- (g[1] = A),
- (m[0] = ((o - a) / 2) * v),
- (m[1] = ((s - i) / 2) * h);
- }
- var b = tr(g, e);
- return (
- (n = Kr(m, 2)),
- (b[e * (e - 1)] = n[0]),
- (b[e * (e - 1) + 1] = n[1]),
- Fo(b, e, p)
- );
- }
- function ts(t, e, n) {
- return Xn(t, Pn(e, n), n);
- }
- function es(t, e, n, r) {
- return [
- [0, 0],
- [e, 0],
- [0, n],
- [e, n]
- ].map(function (e) {
- return ts(t, e, r);
- });
- }
- function ns(t) {
- var e = t.map(function (t) {
- return t[0];
- }),
- n = t.map(function (t) {
- return t[1];
- }),
- r = Math.min.apply(Math, Zr([], Kr(e), !1)),
- a = Math.min.apply(Math, Zr([], Kr(n), !1)),
- i = Math.max.apply(Math, Zr([], Kr(e), !1)),
- o = Math.max.apply(Math, Zr([], Kr(n), !1));
- return {
- left: r,
- top: a,
- right: i,
- bottom: o,
- width: i - r,
- height: o - a
- };
- }
- function rs(t, e, n, r) {
- return ns(es(t, e, n, r));
- }
- function as(t) {
- return Math.sqrt(t[0] * t[0] + t[1] * t[1]);
- }
- function is(t, e) {
- return as([e[0] - t[0], e[1] - t[1]]);
- }
- function os(t, e, n, r) {
- void 0 === n && (n = 1), void 0 === r && (r = ue(t, e));
- var a = is(t, e);
- return {
- transform: 'translateY(-50%) translate('
- .concat(t[0], 'px, ')
- .concat(t[1], 'px) rotate(')
- .concat(r, 'rad) scaleY(')
- .concat(n, ')'),
- width: ''.concat(a, 'px')
- };
- }
- function ss(t, e) {
- for (var n = [], r = 2; r < arguments.length; r++)
- n[r - 2] = arguments[r];
- var a = n.length,
- i =
- n.reduce(function (t, e) {
- return t + e[0];
- }, 0) / a,
- o =
- n.reduce(function (t, e) {
- return t + e[1];
- }, 0) / a;
- return {
- transform: 'translateZ(0px) translate('
- .concat(i, 'px, ')
- .concat(o, 'px) rotate(')
- .concat(t, 'rad) scale(')
- .concat(e, ')')
- };
- }
- function ls(t, e) {
- var n = t[e];
- return Nt(n) ? qr(qr({}, t), n) : t;
- }
- function cs(t) {
- var e = t && !Gt(t.offsetWidth),
- n = 0,
- r = 0,
- a = 0,
- i = 0,
- o = 0,
- s = 0,
- l = 0,
- c = 0,
- u = 0,
- f = 0,
- d = 0,
- p = 0,
- g = 1 / 0,
- m = 1 / 0,
- v = 1 / 0,
- h = 1 / 0,
- A = 0,
- b = 0,
- w = !1;
- if (t)
- if (e || 'svg' === t.tagName.toLowerCase()) {
- var k = oi(t),
- y = t.style,
- I = 'border-box' === k('boxSizing'),
- E = parseFloat(k('borderLeftWidth')) || 0,
- C = parseFloat(k('borderRightWidth')) || 0,
- B = parseFloat(k('borderTopWidth')) || 0,
- x = parseFloat(k('borderBottomWidth')) || 0,
- S =
- (parseFloat(k('paddingLeft')) || 0) +
- (parseFloat(k('paddingRight')) || 0),
- D =
- (parseFloat(k('paddingTop')) || 0) +
- (parseFloat(k('paddingBottom')) || 0),
- R = S + (E + C),
- Q = D + (B + x),
- _ = k('position'),
- O = 0,
- M = 0;
- if ('clientLeft' in t) {
- var T = null;
- if (
- (T =
- 'absolute' === _
- ? Wo(t, Ie(t)).offsetParent
- : t.parentElement)
- ) {
- var z = oi(T);
- (O = parseFloat(z('width'))), (M = parseFloat(z('height')));
- }
- }
- (u = Math.max(S, ie(k('minWidth'), O) || 0)),
- (f = Math.max(D, ie(k('minHeight'), M) || 0)),
- (g = ie(k('maxWidth'), O)),
- (m = ie(k('maxHeight'), M)),
- isNaN(g) && (g = 1 / 0),
- isNaN(m) && (m = 1 / 0),
- (A = ie(y.width, 0) || 0),
- (b = ie(y.height, 0) || 0),
- (o = parseFloat(k('width')) || 0),
- (s = parseFloat(k('height')) || 0),
- (n = l = qs(o - A) < 1 ? oe(u, A || o, g) : o),
- (r = c = qs(s - b) < 1 ? oe(f, b || s, m) : s),
- (a = l),
- (i = c),
- I
- ? ((v = g),
- (h = m),
- (d = u),
- (p = f),
- (l = n - R),
- (c = r - Q))
- : ((v = g + R),
- (h = m + Q),
- (d = u + R),
- (p = f + Q),
- (n = l + R),
- (r = c + Q)),
- (a = l + S),
- (i = c + D);
- } else {
- var P = t.getBBox();
- (w = !0),
- (o = n = P.width),
- (s = r = P.height),
- (l = n),
- (c = r),
- (a = n),
- (i = r);
- }
- return {
- svg: w,
- offsetWidth: n,
- offsetHeight: r,
- clientWidth: a,
- clientHeight: i,
- contentWidth: l,
- contentHeight: c,
- inlineCSSWidth: A,
- inlineCSSHeight: b,
- cssWidth: o,
- cssHeight: s,
- minWidth: u,
- minHeight: f,
- maxWidth: g,
- maxHeight: m,
- minOffsetWidth: d,
- minOffsetHeight: p,
- maxOffsetWidth: v,
- maxOffsetHeight: h
- };
- }
- function us(t, e) {
- return ue(e > 0 ? t[0] : t[1], e > 0 ? t[1] : t[0]);
- }
- function fs(t, e) {
- var n = t === Ie(t) || t === ye(t),
- r = {
- clientLeft: t.clientLeft,
- clientTop: t.clientTop,
- clientWidth: t.clientWidth,
- clientHeight: t.clientHeight,
- scrollWidth: t.scrollWidth,
- scrollHeight: t.scrollHeight,
- overflow: !1
- };
- return (
- n &&
- ((r.clientHeight = Math.max(e.height, r.clientHeight)),
- (r.scrollHeight = Math.max(e.height, r.scrollHeight))),
- (r.overflow = 'visible' !== oi(t)('overflow')),
- qr(qr({}, e), r)
- );
- }
- function ds(t, e, n, r) {
- var a = t.left,
- i = t.right,
- o = t.top,
- s = t.bottom,
- l = e.top,
- c = e.left,
- u = {
- left: c + a,
- top: l + o,
- right: c + i,
- bottom: l + s,
- width: i - a,
- height: s - o
- };
- return n && r ? fs(n, u) : u;
- }
- function ps(t, e) {
- var n = 0,
- r = 0,
- a = 0,
- i = 0;
- if (t) {
- var o = t.getBoundingClientRect();
- (n = o.left), (r = o.top), (a = o.width), (i = o.height);
- }
- var s = {
- left: n,
- top: r,
- width: a,
- height: i,
- right: n + a,
- bottom: r + i
- };
- return t && e ? fs(t, s) : s;
- }
- function gs(t, e, n, r) {
- return t || (e ? [0, 0] : ms(n.target, r));
- }
- function ms(t, e) {
- if (t) {
- var n = t.getAttribute('data-rotation') || '',
- r = t.getAttribute('data-direction');
- if (((e.deg = n), r)) {
- var a = [0, 0];
- return (
- r.indexOf('w') > -1 && (a[0] = -1),
- r.indexOf('e') > -1 && (a[0] = 1),
- r.indexOf('n') > -1 && (a[1] = -1),
- r.indexOf('s') > -1 && (a[1] = 1),
- a
- );
- }
- }
- }
- function vs(t, e) {
- return [Un(e, t[0]), Un(e, t[1]), Un(e, t[2]), Un(e, t[3])];
- }
- function hs(t) {
- var e = t.left,
- n = t.top;
- return vs([t.pos1, t.pos2, t.pos3, t.pos4], [e, n]);
- }
- function As(t, e) {
- t[e ? 'controlAbles' : 'targetAbles'].forEach(function (e) {
- e.unset && e.unset(t);
- });
- }
- function bs(t, e) {
- var n = e ? 'controlGesto' : 'targetGesto',
- r = t[n];
- !1 === (null == r ? void 0 : r.isIdle()) && As(t, e),
- null == r || r.unset(),
- (t[n] = null);
- }
- function ws(t, e) {
- if (e) {
- var n = Wa(e);
- n.nextStyle = qr(qr({}, n.nextStyle), t);
- }
- return {
- style: t,
- cssText: ae(t)
- .map(function (e) {
- return ''.concat(Jt(e, '-'), ': ').concat(t[e], ';');
- })
- .join('')
- };
- }
- function ks(t, e, n) {
- var r = e.afterTransform || e.transform;
- return qr(
- qr({}, ws(qr(qr(qr({}, t.style), e.style), { transform: r }), n)),
- { afterTransform: r, transform: t.transform }
- );
- }
- function ys(t, e, n, r) {
- var a = e.datas;
- a.datas || (a.datas = {});
- var i = qr(qr({}, n), {
- target: t.state.target,
- clientX: e.clientX,
- clientY: e.clientY,
- inputEvent: e.inputEvent,
- currentTarget: t,
- moveable: t,
- datas: a.datas,
- isFirstDrag: !!e.isFirstDrag,
- isTrusted: !1 !== e.isTrusted,
- stopAble: function () {
- a.isEventStart = !1;
- },
- stopDrag: function () {
- var t;
- null === (t = e.stop) || void 0 === t || t.call(e);
- }
- });
- return (
- a.isStartEvent ? r || (a.lastEvent = i) : (a.isStartEvent = !0), i
- );
- }
- function Is(t, e, n) {
- var r = e.datas,
- a = 'isDrag' in n ? n.isDrag : e.isDrag;
- return (
- r.datas || (r.datas = {}),
- qr(qr({ isDrag: a }, n), {
- moveable: t,
- target: t.state.target,
- clientX: e.clientX,
- clientY: e.clientY,
- inputEvent: e.inputEvent,
- currentTarget: t,
- lastEvent: r.lastEvent,
- isDouble: e.isDouble,
- datas: r.datas,
- isFirstDrag: !!e.isFirstDrag
- })
- );
- }
- function Es(t, e, n) {
- t._emitter.on(e, n);
- }
- function Cs(t, e, n, r) {
- return t.triggerEvent(e, n, r);
- }
- function Bs(t, e) {
- return Ee(t).getComputedStyle(t, e);
- }
- function xs(t, e, n) {
- var r = {},
- a = {};
- return t.filter(function (t) {
- var i = t.name;
- if (
- r[i] ||
- !e.some(function (e) {
- return t[e];
- })
- )
- return !1;
- if (!n && t.ableGroup) {
- if (a[t.ableGroup]) return !1;
- a[t.ableGroup] = !0;
- }
- return (r[i] = !0), !0;
- });
- }
- function Ss(t, e) {
- return t === e || (null == t && null == e);
- }
- function Ds(t, e) {
- var n = [],
- r = [];
- return (
- t.forEach(function (a, i) {
- var o = e(a, i, t),
- s = r.indexOf(o),
- l = n[s] || [];
- -1 === s && (r.push(o), n.push(l)), l.push(a);
- }),
- n
- );
- }
- function Rs(t) {
- return t.reduce(function (t, e) {
- return t.concat(e);
- }, []);
- }
- function Qs() {
- for (var t = [], e = 0; e < arguments.length; e++)
- t[e] = arguments[e];
- return (
- t.sort(function (t, e) {
- return qs(e) - qs(t);
- }),
- t[0]
- );
- }
- function _s(t, e, n) {
- return Xn(Tn(t, n), Pn(e, n), n);
- }
- function Os(t, e) {
- var n,
- r = t.is3d ? 4 : 3;
- return (
- (n = Kr(_s(t.rootMatrix, [e.distX, e.distY], r), 2)),
- (e.distX = n[0]),
- (e.distY = n[1]),
- e
- );
- }
- function Ms(t, e, n, r) {
- if (!n[0] && !n[1]) return e;
- var a = ts(t, [Bo(n[0]), 0], r),
- i = ts(t, [0, Bo(n[1])], r);
- return Un(e, ts(t, [n[0] / as(a), n[1] / as(i)], r));
- }
- function Ts(t, e, n) {
- return n ? ''.concat((t / e) * 100, '%') : ''.concat(t, 'px');
- }
- function zs(t) {
- return qs(t) <= wa ? 0 : t;
- }
- function Ps(t) {
- return function (e) {
- if (!e.isDragging(t)) return '';
- var n = (function (t, e) {
- var n,
- r = t.targetGesto,
- a = t.controlGesto;
- return (
- (null == r ? void 0 : r.isFlag()) &&
- (n = r.getEventData()[e]),
- !n &&
- (null == a ? void 0 : a.isFlag()) &&
- (n = a.getEventData()[e]),
- n || {}
- );
- })(e, t),
- r = n.deg;
- return r ? Go('view-control-rotation'.concat(r)) : '';
- };
- }
- function Ys(t, e) {
- return (
- void 0 === e && (e = [t]),
- function (n, r) {
- if (r.isRequest)
- return (
- !!e.some(function (t) {
- return r.requestAble === t;
- }) && r.parentDirection
- );
- var a = r.inputEvent.target;
- return ve(a, Go('direction')) && (!t || ve(a, Go(t)));
- }
- );
- }
- function Gs(t, e) {
- return t
- ? Be(t)
- ? t
- : Ft(t)
- ? e
- ? document.querySelector(t)
- : t
- : Xt(t)
- ? t()
- : Ce(t)
- ? t
- : 'current' in t
- ? t.current
- : t
- : null;
- }
- function Ns(t, e) {
- return t
- ? ((n = t) && Nt(n) && !Be(n) && (Ut(n) || 'length' in n)
- ? [].slice.call(t)
- : [t]
- ).reduce(function (t, n) {
- return Ft(n) && e
- ? Zr(
- Zr([], Kr(t), !1),
- Kr([].slice.call(document.querySelectorAll(n))),
- !1
- )
- : (Ut(n) ? t.push(Ns(n, e)) : t.push(Gs(n, e)), t);
- }, [])
- : [];
- var n;
- }
- function Us(t, e) {
- var n = t.rootMatrix,
- r = t.is3d,
- a = Tn(n, r ? 4 : 3);
- return (
- r || (a = Yn(a, 3, 4)),
- (a[12] = 0),
- (a[13] = 0),
- (a[14] = 0),
- (function (t, e) {
- var n = Xn(t, [e[0], e[1] || 0, e[2] || 0, 1], 4),
- r = n[3] || 1;
- return [n[0] / r, n[1] / r, n[2] / r];
- })(a, e)
- );
- }
- function Fs(t, e, n, r, a) {
- var i = Kr(t, 2),
- o = i[0],
- s = i[1],
- l = 0,
- c = 0;
- if (a && o && s) {
- var u = ue([0, 0], e),
- f = ue([0, 0], r),
- d = as(e),
- p = Math.cos(u - f) * d;
- if (r[0])
- if (r[1]) {
- var g = r[0] * o,
- m = r[1] * s,
- v = Math.atan2(g + e[0], m + e[1]),
- h = Math.atan2(g, m);
- v < 0 && (v += 2 * Math.PI), h < 0 && (h += 2 * Math.PI);
- var A = 0;
- (A =
- qs(v - h) < Math.PI / 2 || qs(v - h) > (Math.PI / 2) * 3
- ? v - h
- : v - (h += Math.PI)) >
- 2 * Math.PI
- ? (A -= 2 * Math.PI)
- : A > Math.PI
- ? (A = 2 * Math.PI - A)
- : A < -Math.PI && (A = -2 * Math.PI - A);
- var b = as([g + e[0], m + e[1]]) * Math.cos(A);
- (l = b * Math.sin(h) - g),
- (c = b * Math.cos(h) - m),
- r[0] < 0 && (l *= -1),
- r[1] < 0 && (c *= -1);
- } else c = (l = p) / n;
- else l = (c = p) * n;
- } else (l = r[0] * e[0]), (c = r[1] * e[1]);
- return [l, c];
- }
- function Ls(t, e, n, r) {
- var a,
- i = n.ratio,
- o = n.startOffsetWidth,
- s = n.startOffsetHeight,
- l = 0,
- c = 0,
- u = r.distX,
- f = r.distY,
- d = r.pinchScale,
- p = r.parentDistance,
- g = r.parentDist,
- m = r.parentScale,
- v = n.fixedDirection,
- h = [0, 1].map(function (e) {
- return qs(t[e] - v[e]);
- }),
- A = [0, 1].map(function (t) {
- var e = h[t];
- return 0 !== e && (e = 2 / e), e;
- });
- if (g)
- (l = g[0]), (c = g[1]), e && (l ? c || (c = l / i) : (l = c * i));
- else if (Lt(d)) (l = (d - 1) * o), (c = (d - 1) * s);
- else if (m) (l = (m[0] - 1) * o), (c = (m[1] - 1) * s);
- else if (p) {
- var b = o * h[0],
- w = s * h[1],
- k = as([b, w]);
- (l = (p / k) * b * A[0]), (c = (p / k) * w * A[1]);
- } else {
- var y = Ya({ datas: n, distX: u, distY: f });
- (y = A.map(function (t, e) {
- return y[e] * t;
- })),
- (l = (a = Kr(Fs([o, s], y, i, t, e), 2))[0]),
- (c = a[1]);
- }
- return { distWidth: l, distHeight: c };
- }
- function Xs(t, e) {
- if (e) {
- if ('left' === t) return { x: '0%', y: '50%' };
- if ('top' === t) return { x: '50%', y: '50%' };
- if ('center' === t) return { x: '50%', y: '50%' };
- if ('right' === t) return { x: '100%', y: '50%' };
- if ('bottom' === t) return { x: '50%', y: '100%' };
- var n = Kr(t.split(' '), 2),
- r = n[0],
- a = n[1],
- i = Xs(r || ''),
- o = Xs(a || ''),
- s = qr(qr({}, i), o),
- l = { x: '50%', y: '50%' };
- return (
- s.x && (l.x = s.x),
- s.y && (l.y = s.y),
- s.value &&
- (s.x && !s.y && (l.y = s.value),
- !s.x && s.y && (l.x = s.value)),
- l
- );
- }
- return 'left' === t
- ? { x: '0%' }
- : 'right' === t
- ? { x: '100%' }
- : 'top' === t
- ? { y: '0%' }
- : 'bottom' === t
- ? { y: '100%' }
- : t
- ? 'center' === t
- ? { value: '50%' }
- : { value: t }
- : {};
- }
- function js(t, e, n) {
- var r = Xs(t, !0),
- a = r.x,
- i = r.y;
- return [ie(a, e) || 0, ie(i, n) || 0];
- }
- function Ws(t, e) {
- return (
- t.length === e.length &&
- t.every(function (t, n) {
- var r = e[n],
- a = Ut(t),
- i = Ut(r);
- return a && i ? Ws(t, r) : !a && !i && t === r;
- })
- );
- }
- function Hs(t, e, n, r) {
- var a = t[e];
- return !(e in t) || (a !== n && r(a) !== r(n)) ? ((t[e] = n), n) : a;
- }
- function Vs(t) {
- return t >= 0 ? 1 : -1;
- }
- function qs(t) {
- return Math.abs(t);
- }
- function Ks(t, e) {
- return (function (t) {
- for (var e = [], n = 0; n < t; ++n) e.push(n);
- return e;
- })(t).map(function (t) {
- return e(t);
- });
- }
- function Zs(t) {
- return Lt(t)
- ? { top: t, left: t, right: t, bottom: t }
- : {
- left: t.left || 0,
- top: t.top || 0,
- right: t.right || 0,
- bottom: t.bottom || 0
- };
- }
- var Js = Jr('pinchable', {
- props: ['pinchable'],
- events: [
- 'pinchStart',
- 'pinch',
- 'pinchEnd',
- 'pinchGroupStart',
- 'pinchGroup',
- 'pinchGroupEnd'
- ],
- dragStart: function () {
- return !0;
- },
- pinchStart: function (t, e) {
- var n = e.datas,
- r = e.targets,
- a = e.angle,
- i = e.originalDatas,
- o = t.props,
- s = o.pinchable,
- l = o.ables;
- if (!s) return !1;
- var c = 'onPinch'.concat(r ? 'Group' : '', 'Start'),
- u = 'drag'.concat(r ? 'Group' : '', 'ControlStart'),
- f = (
- !0 === s
- ? t.controlAbles
- : l.filter(function (t) {
- return s.indexOf(t.name) > -1;
- })
- ).filter(function (t) {
- return t.canPinch && t[u];
- }),
- d = ys(t, e, {});
- r && (d.targets = r);
- var p = Cs(t, c, d);
- (n.isPinch = !1 !== p), (n.ables = f);
- var g = n.isPinch;
- return (
- !!g &&
- (f.forEach(function (n) {
- if (((i[n.name] = i[n.name] || {}), n[u])) {
- var r = qr(qr({}, e), {
- datas: i[n.name],
- parentRotate: a,
- isPinch: !0
- });
- n[u](t, r);
- }
- }),
- (t.state.snapRenderInfo = {
- request: e.isRequest,
- direction: [0, 0]
- }),
- g)
- );
- },
- pinch: function (t, e) {
- var n = e.datas,
- r = e.scale,
- a = e.distance,
- i = e.originalDatas,
- o = e.inputEvent,
- s = e.targets,
- l = e.angle;
- if (n.isPinch) {
- var c = a * (1 - 1 / r),
- u = ys(t, e, {});
- s && (u.targets = s);
- var f = 'onPinch'.concat(s ? 'Group' : '');
- Cs(t, f, u);
- var d = n.ables,
- p = 'drag'.concat(s ? 'Group' : '', 'Control');
- return (
- d.forEach(function (n) {
- n[p] &&
- n[p](
- t,
- qr(qr({}, e), {
- datas: i[n.name],
- inputEvent: o,
- resolveMatrix: !0,
- pinchScale: r,
- parentDistance: c,
- parentRotate: l,
- isPinch: !0
- })
- );
- }),
- u
- );
- }
- },
- pinchEnd: function (t, e) {
- var n = e.datas,
- r = e.isPinch,
- a = e.inputEvent,
- i = e.targets,
- o = e.originalDatas;
- if (n.isPinch) {
- var s = 'onPinch'.concat(i ? 'Group' : '', 'End'),
- l = Is(t, e, { isDrag: r });
- i && (l.targets = i), Cs(t, s, l);
- var c = n.ables,
- u = 'drag'.concat(i ? 'Group' : '', 'ControlEnd');
- return (
- c.forEach(function (n) {
- n[u] &&
- n[u](
- t,
- qr(qr({}, e), {
- isDrag: r,
- datas: o[n.name],
- inputEvent: a,
- isPinch: !0
- })
- );
- }),
- r
- );
- }
- },
- pinchGroupStart: function (t, e) {
- return this.pinchStart(
- t,
- qr(qr({}, e), { targets: t.props.targets })
- );
- },
- pinchGroup: function (t, e) {
- return this.pinch(t, qr(qr({}, e), { targets: t.props.targets }));
- },
- pinchGroupEnd: function (t, e) {
- return this.pinchEnd(
- t,
- qr(qr({}, e), { targets: t.props.targets })
- );
- }
- }),
- $s = Ys('scalable'),
- tl = {
- name: 'scalable',
- ableGroup: 'size',
- canPinch: !0,
- props: [
- 'scalable',
- 'throttleScale',
- 'renderDirections',
- 'keepRatio',
- 'edge',
- 'displayAroundControls'
- ],
- events: [
- 'scaleStart',
- 'beforeScale',
- 'scale',
- 'scaleEnd',
- 'scaleGroupStart',
- 'beforeScaleGroup',
- 'scaleGroup',
- 'scaleGroupEnd'
- ],
- render: mi('scalable'),
- dragControlCondition: $s,
- viewClassName: Ps('scalable'),
- dragControlStart: function (t, e) {
- var n = e.datas,
- r = e.isPinch,
- a = e.inputEvent,
- i = gs(e.parentDirection, r, a, n),
- o = t.state,
- s = o.width,
- l = o.height,
- c = o.targetTransform,
- u = o.target,
- f = o.pos1,
- d = o.pos2,
- p = o.pos4;
- if (!i || !u) return !1;
- r || _a(t, e),
- (n.datas = {}),
- (n.transform = c),
- (n.prevDist = [1, 1]),
- (n.direction = i),
- (n.startOffsetWidth = s),
- (n.startOffsetHeight = l),
- (n.startValue = [1, 1]);
- var g = (!i[0] && !i[1]) || i[0] || !i[1];
- function m(t) {
- n.ratio = t && isFinite(t) ? t : 0;
- }
- function v(t) {
- var e = ro(n.startPositions, t);
- (n.fixedDirection = e.fixedDirection),
- (n.fixedPosition = e.fixedPosition),
- (n.fixedOffset = e.fixedOffset);
- }
- La(e, 'scale'),
- (n.isWidth = g),
- (n.startPositions = hs(t.state)),
- (n.setFixedDirection = v),
- m(de(f, d) / de(d, p)),
- v([-i[0], -i[1]]);
- var h = function (t) {
- n.minScaleSize = t;
- },
- A = function (t) {
- n.maxScaleSize = t;
- };
- h([-1 / 0, -1 / 0]), A([1 / 0, 1 / 0]);
- var b = ys(
- t,
- e,
- qr(
- qr(
- {
- direction: i,
- set: function (t) {
- n.startValue = t;
- },
- setRatio: m,
- setFixedDirection: v,
- setMinScaleSize: h,
- setMaxScaleSize: A
- },
- Fa(e)
- ),
- {
- dragStart: no.dragStart(t, new Da().dragStart([0, 0], e))
- }
- )
- ),
- w = Cs(t, 'onScaleStart', b);
- return (
- (n.startFixedDirection = n.fixedDirection),
- !1 !== w &&
- ((n.isScale = !0),
- (t.state.snapRenderInfo = {
- request: e.isRequest,
- direction: i
- })),
- !!n.isScale && b
- );
- },
- dragControl: function (t, e) {
- Oa(e, 'scale');
- var n = e.datas,
- r = e.parentKeepRatio,
- a = e.parentFlag,
- i = e.isPinch,
- o = e.dragClient,
- s = e.isRequest,
- l = e.useSnap,
- c = e.resolveMatrix,
- u = n.prevDist,
- f = n.direction,
- d = n.startOffsetWidth,
- p = n.startOffsetHeight,
- g = n.isScale,
- m = n.startValue,
- v = n.isWidth,
- h = n.ratio;
- if (!g) return !1;
- var A = t.props,
- b = A.throttleScale,
- w = A.parentMoveable,
- k = f;
- f[0] || f[1] || (k = [1, 1]);
- var y = (h && (null != r ? r : A.keepRatio)) || !1,
- I = t.state,
- E = [m[0], m[1]];
- function C() {
- var t = Ls(k, y, n, e),
- r = t.distWidth,
- a = t.distHeight,
- i = d ? (d + r) / d : 1,
- o = p ? (p + a) / p : 1;
- m[0] || (E[0] = r / d), m[1] || (E[1] = a / p);
- var s = (k[0] || y ? i : 1) * E[0],
- l = (k[1] || y ? o : 1) * E[1];
- return (
- 0 === s && (s = Vs(u[0]) * ka),
- 0 === l && (l = Vs(u[1]) * ka),
- [s, l]
- );
- }
- var B = C();
- if (!i && t.props.groupable) {
- var x = (I.snapRenderInfo || {}).direction;
- Ut(x) &&
- (x[0] || x[1]) &&
- (I.snapRenderInfo = { direction: f, request: e.isRequest });
- }
- Cs(
- t,
- 'onBeforeScale',
- ys(
- t,
- e,
- {
- scale: B,
- setFixedDirection: function (t) {
- return n.setFixedDirection(t), (B = C());
- },
- startFixedDirection: n.startFixedDirection,
- setScale: function (t) {
- B = t;
- }
- },
- !0
- )
- );
- var S,
- D,
- R = [B[0] / E[0], B[1] / E[1]],
- Q = o,
- _ = [0, 0],
- O = !o && !a && i;
- if (
- (O || c
- ? (Q = Za(t, n.targetAllTransform, [0, 0], [0, 0], n))
- : o || (Q = n.fixedPosition),
- i || (_ = _o(t, R, f, !l && s, n)),
- y)
- ) {
- k[0] &&
- k[1] &&
- _[0] &&
- _[1] &&
- (Math.abs(_[0] * d) > Math.abs(_[1] * p)
- ? (_[1] = 0)
- : (_[0] = 0));
- var M = !_[0] && !_[1];
- if (
- (M &&
- (v
- ? (R[0] = pe(R[0] * E[0], b) / E[0])
- : (R[1] = pe(R[1] * E[1], b) / E[1])),
- (k[0] && !k[1]) || (_[0] && !_[1]) || (M && v))
- ) {
- R[0] += _[0];
- var T = (d * R[0] * E[0]) / h;
- R[1] = T / p / E[1];
- } else if ((!k[0] && k[1]) || (!_[0] && _[1]) || (M && !v)) {
- R[1] += _[1];
- var z = p * R[1] * E[1] * h;
- R[0] = z / d / E[0];
- }
- } else
- (R[0] += _[0]),
- (R[1] += _[1]),
- _[0] || (R[0] = pe(R[0] * E[0], b) / E[0]),
- _[1] || (R[1] = pe(R[1] * E[1], b) / E[1]);
- 0 === R[0] && (R[0] = Vs(u[0]) * ka),
- 0 === R[1] && (R[1] = Vs(u[1]) * ka),
- (S = R),
- (D = [E[0], E[1]]),
- (B = [S[0] * D[0], S[1] * D[1]]);
- var P = [d, p],
- Y = [d * B[0], p * B[1]];
- (Y = le(Y, n.minScaleSize, n.maxScaleSize, !!y && h)),
- (B = Ks(2, function (t) {
- return P[t] ? Y[t] / P[t] : Y[t];
- })),
- (R = Ks(2, function (t) {
- return B[t] / E[t];
- }));
- var G = Ks(2, function (t) {
- return u[t] ? R[t] / u[t] : R[t];
- }),
- N = 'scale('.concat(R.join(', '), ')'),
- U = 'scale('.concat(B.join(', '), ')'),
- F = Ma(n, U, N),
- L = !m[0] || !m[1],
- X = (function (t, e, n, r, a, i, o) {
- return Ja(t, e, n, r, a, i, o);
- })(t, L ? U : N, n.fixedDirection, Q, n.fixedOffset, n, L),
- j = O ? X : Fn(X, n.prevInverseDist || [0, 0]);
- if (
- ((n.prevDist = R),
- (n.prevInverseDist = X),
- B[0] === u[0] &&
- B[1] === u[1] &&
- j.every(function (t) {
- return !t;
- }) &&
- !w &&
- !O)
- )
- return !1;
- var W = ys(
- t,
- e,
- qr(
- {
- offsetWidth: d,
- offsetHeight: p,
- direction: f,
- scale: B,
- dist: R,
- delta: G,
- isPinch: !!i
- },
- Ka(t, F, j, i, e)
- )
- );
- return Cs(t, 'onScale', W), W;
- },
- dragControlEnd: function (t, e) {
- var n = e.datas;
- if (!n.isScale) return !1;
- n.isScale = !1;
- var r = Is(t, e, {});
- return Cs(t, 'onScaleEnd', r), r;
- },
- dragGroupControlCondition: $s,
- dragGroupControlStart: function (t, e) {
- var n = e.datas,
- r = this.dragControlStart(t, e);
- if (!r) return !1;
- var a = si(t, 'resizable', e);
- n.moveableScale = t.scale;
- var i = ci(t, this, 'dragControlStart', e, function (e, r) {
- return ui(t, e, n, r);
- }),
- o = function (e) {
- r.setFixedDirection(e),
- i.forEach(function (r, i) {
- r.setFixedDirection(e), ui(t, r.moveable, n, a[i]);
- });
- };
- n.setFixedDirection = o;
- var s = qr(qr({}, r), {
- targets: t.props.targets,
- events: i,
- setFixedDirection: o
- }),
- l = Cs(t, 'onScaleGroupStart', s);
- return (n.isScale = !1 !== l), !!n.isScale && s;
- },
- dragGroupControl: function (t, e) {
- var n = e.datas;
- if (n.isScale) {
- Es(t, 'onBeforeScale', function (n) {
- Cs(
- t,
- 'onBeforeScaleGroup',
- ys(t, e, qr(qr({}, n), { targets: t.props.targets }), !0)
- );
- });
- var r = this.dragControl(t, e);
- if (r) {
- var a = r.dist,
- i = n.moveableScale;
- t.scale = [a[0] * i[0], a[1] * i[1]];
- var o = t.props.keepRatio,
- s = n.fixedPosition,
- l = ci(t, this, 'dragControl', e, function (e, n) {
- var r = Kr(
- Xn(
- Jn((t.rotation / 180) * Math.PI, 3),
- [
- n.datas.originalX * a[0],
- n.datas.originalY * a[1],
- 1
- ],
- 3
- ),
- 2
- ),
- i = r[0],
- l = r[1];
- return qr(qr({}, n), {
- parentDist: null,
- parentScale: a,
- parentKeepRatio: o,
- dragClient: Un(s, [i, l])
- });
- }),
- c = qr({ targets: t.props.targets, events: l }, r);
- return Cs(t, 'onScaleGroup', c), c;
- }
- }
- },
- dragGroupControlEnd: function (t, e) {
- var n = e.isDrag;
- if (e.datas.isScale) {
- this.dragControlEnd(t, e);
- var r = ci(t, this, 'dragControlEnd', e);
- return (
- Cs(
- t,
- 'onScaleGroupEnd',
- Is(t, e, { targets: t.props.targets, events: r })
- ),
- n
- );
- }
- },
- request: function () {
- var t = {},
- e = 0,
- n = 0,
- r = !1;
- return {
- isControl: !0,
- requestStart: function (e) {
- return (
- (r = e.useSnap),
- {
- datas: t,
- parentDirection: e.direction || [1, 1],
- useSnap: r
- }
- );
- },
- request: function (a) {
- return (
- (e += a.deltaWidth),
- (n += a.deltaHeight),
- {
- datas: t,
- parentDist: [e, n],
- parentKeepRatio: a.keepRatio,
- useSnap: r
- }
- );
- },
- requestEnd: function () {
- return { datas: t, isDrag: !0, useSnap: r };
- }
- };
- }
- };
- function el(t, e) {
- return t.map(function (t, n) {
- return Yt(t, e[n], 1, 2);
- });
- }
- function nl(t, e, n) {
- var r = ue(t, e),
- a = ue(t, n) - r;
- return a >= 0 ? a : a + 2 * Math.PI;
- }
- var rl = {
- name: 'warpable',
- ableGroup: 'size',
- props: [
- 'warpable',
- 'renderDirections',
- 'edge',
- 'displayAroundControls'
- ],
- events: ['warpStart', 'warp', 'warpEnd'],
- viewClassName: Ps('warpable'),
- render: function (t, e) {
- var n = t.props,
- r = n.resizable,
- a = n.scalable,
- i = n.warpable,
- o = n.zoom;
- if (r || a || !i) return [];
- var s = t.state,
- l = s.pos1,
- c = s.pos2,
- u = s.pos3,
- f = s.pos4,
- d = el(l, c),
- p = el(c, l),
- g = el(l, u),
- m = el(u, l),
- v = el(u, f),
- h = el(f, u),
- A = el(c, f),
- b = el(f, c);
- return Zr(
- [
- e.createElement('div', {
- className: Go('line'),
- key: 'middeLine1',
- style: os(d, v, o)
- }),
- e.createElement('div', {
- className: Go('line'),
- key: 'middeLine2',
- style: os(p, h, o)
- }),
- e.createElement('div', {
- className: Go('line'),
- key: 'middeLine3',
- style: os(g, A, o)
- }),
- e.createElement('div', {
- className: Go('line'),
- key: 'middeLine4',
- style: os(m, b, o)
- })
- ],
- Kr(vi(t, 'warpable', e)),
- !1
- );
- },
- dragControlCondition: function (t, e) {
- if (e.isRequest) return !1;
- var n = e.inputEvent.target;
- return ve(n, Go('direction')) && ve(n, Go('warpable'));
- },
- dragControlStart: function (t, e) {
- var n = e.datas,
- r = e.inputEvent,
- a = t.props.target,
- i = ms(r.target, n);
- if (!i || !a) return !1;
- var o = t.state,
- s = o.transformOrigin,
- l = o.is3d,
- c = o.targetTransform,
- u = o.targetMatrix,
- f = o.width,
- d = o.height,
- p = o.left,
- g = o.top;
- return (
- (n.datas = {}),
- (n.targetTransform = c),
- (n.warpTargetMatrix = l ? u : Yn(u, 3, 4)),
- (n.targetInverseMatrix = Mn(Tn(n.warpTargetMatrix, 4), 3, 4)),
- (n.direction = i),
- (n.left = p),
- (n.top = g),
- (n.poses = [
- [0, 0],
- [f, 0],
- [0, d],
- [f, d]
- ].map(function (t) {
- return Fn(t, s);
- })),
- (n.nextPoses = n.poses.map(function (t) {
- var e = Kr(t, 2),
- r = e[0],
- a = e[1];
- return Xn(n.warpTargetMatrix, [r, a, 0, 1], 4);
- })),
- (n.startValue = $n(4)),
- (n.prevMatrix = $n(4)),
- (n.absolutePoses = hs(o)),
- (n.posIndexes = Ga(i)),
- _a(t, e),
- La(e, 'matrix3d'),
- (o.snapRenderInfo = { request: e.isRequest, direction: i }),
- !1 !==
- Cs(
- t,
- 'onWarpStart',
- ys(
- t,
- e,
- qr(
- {
- set: function (t) {
- n.startValue = t;
- }
- },
- Fa(e)
- )
- )
- ) && (n.isWarp = !0),
- n.isWarp
- );
- },
- dragControl: function (t, e) {
- var n = e.datas,
- r = e.isRequest,
- a = e.distX,
- i = e.distY,
- o = n.targetInverseMatrix,
- s = n.prevMatrix,
- l = n.isWarp,
- c = n.startValue,
- u = n.poses,
- f = n.posIndexes,
- d = n.absolutePoses;
- if (!l) return !1;
- if ((Oa(e, 'matrix3d'), xi(t, 'warpable'))) {
- var p = f.map(function (t) {
- return d[t];
- });
- p.length > 1 &&
- p.push([(p[0][0] + p[1][0]) / 2, (p[0][1] + p[1][1]) / 2]);
- var g = Ji(t, r, {
- horizontal: p.map(function (t) {
- return t[1] + i;
- }),
- vertical: p.map(function (t) {
- return t[0] + a;
- })
- }),
- m = g.horizontal,
- v = g.vertical;
- (i -= m.offset), (a -= v.offset);
- }
- var h = Ya({ datas: n, distX: a, distY: i }, !0),
- A = n.nextPoses.slice();
- if (
- (f.forEach(function (t) {
- A[t] = Un(A[t], h);
- }),
- !Aa.every(function (t) {
- return (
- (e = t.map(function (t) {
- return u[t];
- })),
- (n = t.map(function (t) {
- return A[t];
- })),
- (r = nl(e[0], e[1], e[2])),
- (a = nl(n[0], n[1], n[2])),
- (i = Math.PI),
- !((r >= i && a <= i) || (r <= i && a >= i))
- );
- var e, n, r, a, i;
- }))
- )
- return !1;
- var b = nr(u[0], u[2], u[1], u[3], A[0], A[2], A[1], A[3]);
- if (!b.length) return !1;
- var w = za(n, Nn(o, b, 4), !0),
- k = Nn(Tn(s, 4), w, 4);
- n.prevMatrix = w;
- var y = Nn(c, w, 4),
- I = Ma(
- n,
- 'matrix3d('.concat(y.join(', '), ')'),
- 'matrix3d('.concat(w.join(', '), ')')
- );
- return (
- ja(e, I),
- Cs(
- t,
- 'onWarp',
- ys(
- t,
- e,
- qr(
- {
- delta: k,
- matrix: y,
- dist: w,
- multiply: Nn,
- transform: I
- },
- ws({ transform: I }, e)
- )
- )
- ),
- !0
- );
- },
- dragControlEnd: function (t, e) {
- var n = e.datas,
- r = e.isDrag;
- return (
- !!n.isWarp &&
- ((n.isWarp = !1), Cs(t, 'onWarpEnd', Is(t, e, {})), r)
- );
- }
- },
- al = Go('area-pieces'),
- il = Go('area-piece'),
- ol = Go('avoid'),
- sl = Go('view-dragging');
- function ll(t) {
- var e = t.areaElement;
- if (e) {
- var n = t.state,
- r = n.width,
- a = n.height;
- Ae(e, ol),
- (e.style.cssText += 'left: 0px; top: 0px; width: '
- .concat(r, 'px; height: ')
- .concat(a, 'px'));
- }
- }
- function cl(t) {
- return t.createElement(
- 'div',
- { key: 'area_pieces', className: al },
- t.createElement('div', { className: il }),
- t.createElement('div', { className: il }),
- t.createElement('div', { className: il }),
- t.createElement('div', { className: il })
- );
- }
- var ul = {
- name: 'dragArea',
- props: ['dragArea', 'passDragArea'],
- events: ['click', 'clickGroup'],
- render: function (t, e) {
- var n = t.props,
- r = n.target,
- a = n.dragArea,
- i = n.groupable,
- o = n.passDragArea,
- s = t.getState(),
- l = s.width,
- c = s.height,
- u = s.renderPoses,
- f = o ? Go('area', 'pass') : Go('area');
- if (i)
- return [
- e.createElement('div', {
- key: 'area',
- ref: Ct(t, 'areaElement'),
- className: f
- }),
- cl(e)
- ];
- if (!r || !a) return [];
- var d = nr(
- [0, 0],
- [l, 0],
- [0, c],
- [l, c],
- u[0],
- u[1],
- u[2],
- u[3]
- ),
- p = d.length ? Zo(d, !0) : 'none';
- return [
- e.createElement('div', {
- key: 'area',
- ref: Ct(t, 'areaElement'),
- className: f,
- style: {
- top: '0px',
- left: '0px',
- width: ''.concat(l, 'px'),
- height: ''.concat(c, 'px'),
- transformOrigin: '0 0',
- transform: p
- }
- }),
- cl(e)
- ];
- },
- dragStart: function (t, e) {
- var n = e.datas,
- r = e.clientX,
- a = e.clientY;
- if (!e.inputEvent) return !1;
- n.isDragArea = !1;
- var i = t.areaElement,
- o = t.state,
- s = o.moveableClientRect,
- l = o.renderPoses,
- c = o.rootMatrix,
- u = o.is3d,
- f = s.left,
- d = s.top,
- p = ns(l),
- g = p.left,
- m = p.top,
- v = p.width,
- h = p.height,
- A = Kr(_s(c, [r - f, a - d], u ? 4 : 3), 2),
- b = A[0],
- w = A[1],
- k = [
- { left: g, top: m, width: v, height: (w -= m) - 10 },
- { left: g, top: m, width: (b -= g) - 10, height: h },
- { left: g, top: m + w + 10, width: v, height: h - w - 10 },
- { left: g + b + 10, top: m, width: v - b - 10, height: h }
- ],
- y = [].slice.call(i.nextElementSibling.children);
- k.forEach(function (t, e) {
- y[e].style.cssText = 'left: '
- .concat(t.left, 'px;top: ')
- .concat(t.top, 'px; width: ')
- .concat(t.width, 'px; height: ')
- .concat(t.height, 'px;');
- }),
- he(i, ol),
- (o.disableNativeEvent = !0);
- },
- drag: function (t, e) {
- var n = e.datas,
- r = e.inputEvent;
- if ((this.enableNativeEvent(t), !r)) return !1;
- n.isDragArea || ((n.isDragArea = !0), ll(t));
- },
- dragEnd: function (t, e) {
- this.enableNativeEvent(t);
- var n = e.inputEvent,
- r = e.datas;
- if (!n) return !1;
- r.isDragArea || ll(t);
- },
- dragGroupStart: function (t, e) {
- return this.dragStart(t, e);
- },
- dragGroup: function (t, e) {
- return this.drag(t, e);
- },
- dragGroupEnd: function (t, e) {
- return this.dragEnd(t, e);
- },
- unset: function (t) {
- ll(t), (t.state.disableNativeEvent = !1);
- },
- enableNativeEvent: function (t) {
- var e = t.state;
- e.disableNativeEvent &&
- ne(function () {
- e.disableNativeEvent = !1;
- });
- }
- },
- fl = Jr('origin', {
- props: ['origin', 'svgOrigin'],
- render: function (t, e) {
- var n,
- r = t.props,
- a = r.zoom,
- i = r.svgOrigin,
- o = r.groupable,
- s = t.getState(),
- l = s.beforeOrigin,
- c = s.rotation,
- u = s.svg,
- f = s.allMatrix,
- d = s.is3d,
- p = s.left,
- g = s.top,
- m = s.offsetWidth,
- v = s.offsetHeight;
- if (!o && u && i) {
- var h = Kr(js(i, m, v), 2);
- n = ss(c, a, Fn(ts(f, [h[0], h[1]], d ? 4 : 3), [p, g]));
- } else n = ss(c, a, l);
- return [
- e.createElement('div', {
- className: Go('control', 'origin'),
- style: n,
- key: 'beforeOrigin'
- })
- ];
- }
- });
- function dl(t) {
- var e = t.scrollContainer;
- return [e.scrollLeft, e.scrollTop];
- }
- var pl = {
- name: 'scrollable',
- canPinch: !0,
- props: [
- 'scrollable',
- 'scrollContainer',
- 'scrollThreshold',
- 'scrollThrottleTime',
- 'getScrollPosition',
- 'scrollOptions'
- ],
- events: ['scroll', 'scrollGroup'],
- dragRelation: 'strong',
- dragStart: function (t, e) {
- var n = t.props,
- r = n.scrollContainer,
- a = void 0 === r ? t.getContainer() : r,
- i = n.scrollOptions,
- o = new wr(),
- s = Gs(a, !0);
- (e.datas.dragScroll = o), (t.state.dragScroll = o);
- var l = e.isControl ? 'controlGesto' : 'targetGesto',
- c = e.targets;
- o
- .on('scroll', function (n) {
- var r = n.container,
- a = n.direction,
- i = ys(t, e, { scrollContainer: r, direction: a }),
- o = c ? 'onScrollGroup' : 'onScroll';
- c && (i.targets = c), Cs(t, o, i);
- })
- .on('move', function (e) {
- var n = e.offsetX,
- r = e.offsetY,
- a = e.inputEvent;
- t[l].scrollBy(n, r, a.inputEvent, !0);
- })
- .on('scrollDrag', function (e) {
- (0, e.next)(t[l].getCurrentEvent());
- }),
- o.dragStart(e, qr({ container: s }, i));
- },
- checkScroll: function (t, e) {
- var n = e.datas.dragScroll;
- if (n) {
- var r = t.props,
- a = r.scrollContainer,
- i = void 0 === a ? t.getContainer() : a,
- o = r.scrollThreshold,
- s = void 0 === o ? 0 : o,
- l = r.scrollThrottleTime,
- c = void 0 === l ? 0 : l,
- u = r.getScrollPosition,
- f = void 0 === u ? dl : u,
- d = r.scrollOptions;
- return (
- n.drag(
- e,
- qr(
- {
- container: i,
- threshold: s,
- throttleTime: c,
- getScrollPosition: function (t) {
- return f({
- scrollContainer: t.container,
- direction: t.direction
- });
- }
- },
- d
- )
- ),
- !0
- );
- }
- },
- drag: function (t, e) {
- return this.checkScroll(t, e);
- },
- dragEnd: function (t, e) {
- e.datas.dragScroll.dragEnd(), (e.datas.dragScroll = null);
- },
- dragControlStart: function (t, e) {
- return this.dragStart(t, qr(qr({}, e), { isControl: !0 }));
- },
- dragControl: function (t, e) {
- return this.drag(t, e);
- },
- dragControlEnd: function (t, e) {
- return this.dragEnd(t, e);
- },
- dragGroupStart: function (t, e) {
- return this.dragStart(
- t,
- qr(qr({}, e), { targets: t.props.targets })
- );
- },
- dragGroup: function (t, e) {
- return this.drag(t, qr(qr({}, e), { targets: t.props.targets }));
- },
- dragGroupEnd: function (t, e) {
- return this.dragEnd(
- t,
- qr(qr({}, e), { targets: t.props.targets })
- );
- },
- dragGroupControlStart: function (t, e) {
- return this.dragStart(
- t,
- qr(qr({}, e), { targets: t.props.targets, isControl: !0 })
- );
- },
- dragGroupControl: function (t, e) {
- return this.drag(t, qr(qr({}, e), { targets: t.props.targets }));
- },
- dragGroupControEnd: function (t, e) {
- return this.dragEnd(
- t,
- qr(qr({}, e), { targets: t.props.targets })
- );
- },
- unset: function (t) {
- var e,
- n = t.state;
- null === (e = n.dragScroll) || void 0 === e || e.dragEnd(),
- (n.dragScroll = null);
- }
- },
- gl = {
- name: '',
- props: [
- 'target',
- 'dragTarget',
- 'dragContainer',
- 'container',
- 'warpSelf',
- 'rootContainer',
- 'useResizeObserver',
- 'useMutationObserver',
- 'zoom',
- 'dragFocusedInput',
- 'transformOrigin',
- 'ables',
- 'className',
- 'pinchThreshold',
- 'pinchOutside',
- 'triggerAblesSimultaneously',
- 'checkInput',
- 'cspNonce',
- 'translateZ',
- 'hideDefaultLines',
- 'props',
- 'flushSync',
- 'stopPropagation',
- 'preventClickEventOnDrag',
- 'preventClickDefault',
- 'viewContainer',
- 'persistData',
- 'useAccuratePosition',
- 'firstRenderState',
- 'linePadding',
- 'controlPadding',
- 'preventDefault',
- 'requestStyles'
- ],
- events: ['changeTargets']
- },
- ml = Jr('padding', {
- props: ['padding'],
- render: function (t, e) {
- var n = t.props;
- if (n.dragArea) return [];
- var r = Zs(n.padding || {}),
- a = r.left,
- i = r.top,
- o = r.right,
- s = r.bottom,
- l = t.getState(),
- c = l.renderPoses,
- u = [l.pos1, l.pos2, l.pos3, l.pos4],
- f = [];
- return (
- a > 0 && f.push([0, 2]),
- i > 0 && f.push([0, 1]),
- o > 0 && f.push([1, 3]),
- s > 0 && f.push([2, 3]),
- f.map(function (t, n) {
- var r = Kr(t, 2),
- a = r[0],
- i = r[1],
- o = nr(
- [0, 0],
- [100, 0],
- [0, 100],
- [100, 100],
- u[a],
- u[i],
- c[a],
- c[i]
- );
- if (o.length)
- return e.createElement('div', {
- key: 'padding'.concat(n),
- className: Go('padding'),
- style: { transform: Zo(o, !0) }
- });
- })
- );
- }
- }),
- vl = ['nw', 'ne', 'se', 'sw'];
- function hl(t, e) {
- var n = t[0] + t[1],
- r = n > e ? e / n : 1;
- return (t[0] *= r), (t[1] = e - t[1] * r), t;
- }
- var Al = [1, 2, 5, 6],
- bl = [0, 3, 4, 7],
- wl = [1, -1, -1, 1],
- kl = [1, 1, -1, -1];
- function yl(t, e, n, r, a, i, o, s) {
- void 0 === a && (a = 0),
- void 0 === i && (i = 0),
- void 0 === o && (o = n),
- void 0 === s && (s = r);
- var l = [],
- c = !1,
- u = t.filter(function (t) {
- return !t.virtual;
- }),
- f = u.map(function (t) {
- var u = t.horizontal,
- f = t.vertical,
- d = t.pos;
- if ((f && !c && ((c = !0), l.push('/')), c)) {
- var p = Math.max(0, 1 === f ? d[1] - i : s - d[1]);
- return l.push(Ts(p, r, e)), p;
- }
- return (
- (p = Math.max(0, 1 === u ? d[0] - a : o - d[0])),
- l.push(Ts(p, n, e)),
- p
- );
- });
- return { radiusPoses: u, styles: l, raws: f };
- }
- function Il(t) {
- for (var e = [0, 0], n = [0, 0], r = t.length, a = 0; a < r; ++a) {
- var i = t[a];
- i.sub &&
- (i.horizontal &&
- (0 === e[1] && (e[0] = a),
- (e[1] = a - e[0] + 1),
- (n[0] = a + 1)),
- i.vertical && (0 === n[1] && (n[0] = a), (n[1] = a - n[0] + 1)));
- }
- return { horizontalRange: e, verticalRange: n };
- }
- function El(t, e, n, r, a, i, o) {
- var s, l, c, u;
- void 0 === i && (i = [0, 0]), void 0 === o && (o = !1);
- var f = t.indexOf('/'),
- d = (f > -1 ? t.slice(0, f) : t).length,
- p = t.slice(0, d),
- g = t.slice(d + 1),
- m = p.length,
- v = g.length,
- h = v > 0,
- A = Kr(p, 4),
- b = A[0],
- w = void 0 === b ? '0px' : b,
- k = A[1],
- y = void 0 === k ? w : k,
- I = A[2],
- E = void 0 === I ? w : I,
- C = A[3],
- B = void 0 === C ? y : C,
- x = Kr(g, 4),
- S = x[0],
- D = void 0 === S ? w : S,
- R = x[1],
- Q = void 0 === R ? (h ? D : y) : R,
- _ = x[2],
- O = void 0 === _ ? (h ? D : E) : _,
- M = x[3],
- T = void 0 === M ? (h ? Q : B) : M,
- z = [w, y, E, B].map(function (t) {
- return ie(t, e);
- }),
- P = [D, Q, O, T].map(function (t) {
- return ie(t, n);
- }),
- Y = z.slice(),
- G = P.slice();
- (s = Kr(hl([Y[0], Y[1]], e), 2)),
- (Y[0] = s[0]),
- (Y[1] = s[1]),
- (l = Kr(hl([Y[3], Y[2]], e), 2)),
- (Y[3] = l[0]),
- (Y[2] = l[1]),
- (c = Kr(hl([G[0], G[3]], n), 2)),
- (G[0] = c[0]),
- (G[3] = c[1]),
- (u = Kr(hl([G[1], G[2]], n), 2)),
- (G[1] = u[0]),
- (G[2] = u[1]);
- var N = o ? Y : Y.slice(0, Math.max(i[0], m)),
- U = o ? G : G.slice(0, Math.max(i[1], v));
- return Zr(
- Zr(
- [],
- Kr(
- N.map(function (t, e) {
- var i = vl[e];
- return {
- virtual: e >= m,
- horizontal: wl[e],
- vertical: 0,
- pos: [r + t, a + (-1 === kl[e] ? n : 0)],
- sub: !0,
- raw: z[e],
- direction: i
- };
- })
- ),
- !1
- ),
- Kr(
- U.map(function (t, n) {
- var i = vl[n];
- return {
- virtual: n >= v,
- horizontal: 0,
- vertical: kl[n],
- pos: [r + (-1 === wl[n] ? e : 0), a + t],
- sub: !0,
- raw: P[n],
- direction: i
- };
- })
- ),
- !1
- );
- }
- var Cl = [
- [0, -1, 'n'],
- [1, 0, 'e']
- ],
- Bl = [
- [-1, -1, 'nw'],
- [0, -1, 'n'],
- [1, -1, 'ne'],
- [1, 0, 'e'],
- [1, 1, 'se'],
- [0, 1, 's'],
- [-1, 1, 'sw'],
- [-1, 0, 'w']
- ];
- function xl(t, e, n) {
- var r = t.props.clipRelative,
- a = t.state,
- i = a.width,
- o = a.height,
- s = e,
- l = s.type,
- c = s.poses,
- u = 'rect' === l,
- f = 'circle' === l;
- if ('polygon' === l)
- return n.map(function (t) {
- return ''.concat(Ts(t[0], i, r), ' ').concat(Ts(t[1], o, r));
- });
- if (u || 'inset' === l) {
- var d = n[1][1],
- p = n[3][0],
- g = n[7][0],
- m = n[5][1];
- if (u)
- return [d, p, m, g].map(function (t) {
- return ''.concat(t, 'px');
- });
- var v = [d, i - p, o - m, g].map(function (t, e) {
- return Ts(t, e % 2 ? i : o, r);
- });
- if (n.length > 8) {
- var h = Kr(Fn(n[4], n[0]), 2),
- A = h[0],
- b = h[1];
- v.push.apply(
- v,
- Zr(
- ['round'],
- Kr(
- yl(
- c.slice(8).map(function (t, e) {
- return qr(qr({}, t), { pos: n[e] });
- }),
- r,
- A,
- b,
- g,
- d,
- p,
- m
- ).styles
- ),
- !1
- )
- );
- }
- return v;
- }
- if (f || 'ellipse' === l) {
- var w = n[0],
- k = Ts(
- qs(n[1][1] - w[1]),
- f ? Math.sqrt((i * i + o * o) / 2) : o,
- r
- );
- return (
- (v = f ? [k] : [Ts(qs(n[2][0] - w[0]), i, r), k]).push(
- 'at',
- Ts(w[0], i, r),
- Ts(w[1], o, r)
- ),
- v
- );
- }
- }
- function Sl(t, e, n, r) {
- var a = [r, (r + e) / 2, e],
- i = [t, (t + n) / 2, n];
- return Bl.map(function (t) {
- var e = Kr(t, 3),
- n = e[0],
- r = e[1],
- o = e[2],
- s = a[n + 1],
- l = i[r + 1];
- return {
- vertical: qs(r),
- horizontal: qs(n),
- direction: o,
- pos: [s, l]
- };
- });
- }
- function Dl(t) {
- var e = [1 / 0, -1 / 0],
- n = [1 / 0, -1 / 0];
- return (
- t.forEach(function (t) {
- var r = t.pos;
- (e[0] = Math.min(e[0], r[0])),
- (e[1] = Math.max(e[1], r[0])),
- (n[0] = Math.min(n[0], r[1])),
- (n[1] = Math.max(n[1], r[1]));
- }),
- [qs(e[1] - e[0]), qs(n[1] - n[0])]
- );
- }
- function Rl(t, e, n, r, a) {
- var i, o, s, l, c, u, f, d, p;
- if (t) {
- var g = a;
- if (!g) {
- var m = oi(t),
- v = m('clipPath');
- g = 'none' !== v ? v : m('clip');
- }
- if ((g && 'none' !== g && 'auto' !== g) || (g = r)) {
- var h = Kt(g),
- A = h.prefix,
- b = void 0 === A ? g : A,
- w = h.value,
- k = void 0 === w ? '' : w,
- y = 'circle' === b,
- I = ' ';
- if ('polygon' === b) {
- I = ',';
- var E = (O = qt(k || '0% 0%, 100% 0%, 100% 100%, 0% 100%')).map(
- function (t) {
- var r = Kr(t.split(' '), 2),
- a = r[0],
- i = r[1];
- return {
- vertical: 1,
- horizontal: 1,
- pos: [ie(a, e), ie(i, n)]
- };
- }
- ),
- C = Er(
- E.map(function (t) {
- return t.pos;
- })
- );
- return {
- type: b,
- clipText: g,
- poses: E,
- splitter: I,
- left: C.minX,
- right: C.maxX,
- top: C.minY,
- bottom: C.maxY
- };
- }
- if (y || 'ellipse' === b) {
- var B,
- x,
- S,
- D = '',
- R = '',
- Q = 0,
- _ = 0,
- O = Vt(k);
- if (y)
- (B = void 0 === (o = (i = Kr(O, 4))[0]) ? '50%' : o),
- (D = void 0 === (s = i[2]) ? '50%' : s),
- (R = void 0 === (l = i[3]) ? '50%' : l),
- (Q = ie(B, Math.sqrt((e * e + n * n) / 2))),
- (_ = Q);
- else
- (x = void 0 === (u = (c = Kr(O, 5))[0]) ? '50%' : u),
- (S = void 0 === (f = c[1]) ? '50%' : f),
- (D = void 0 === (d = c[3]) ? '50%' : d),
- (R = void 0 === (p = c[4]) ? '50%' : p),
- (Q = ie(x, e)),
- (_ = ie(S, n));
- var M = [ie(D, e), ie(R, n)];
- return (
- (E = Zr(
- [{ vertical: 1, horizontal: 1, pos: M, direction: 'nesw' }],
- Kr(
- Cl.slice(0, y ? 1 : 2).map(function (t) {
- return {
- vertical: qs(t[1]),
- horizontal: t[0],
- direction: t[2],
- sub: !0,
- pos: [M[0] + t[0] * Q, M[1] + t[1] * _]
- };
- })
- ),
- !1
- )),
- {
- type: b,
- clipText: g,
- radiusX: Q,
- radiusY: _,
- left: M[0] - Q,
- top: M[1] - _,
- right: M[0] + Q,
- bottom: M[1] + _,
- poses: E,
- splitter: I
- }
- );
- }
- if ('inset' === b) {
- var T = (O = Vt(k || '0 0 0 0')).indexOf('round'),
- z = (T > -1 ? O.slice(0, T) : O).length,
- P = O.slice(z + 1),
- Y = Kr(O.slice(0, z), 4),
- G = Y[0],
- N = Y[1],
- U = void 0 === N ? G : N,
- F = Y[2],
- L = void 0 === F ? G : F,
- X = Y[3],
- j = void 0 === X ? U : X,
- W = Kr(
- [G, L].map(function (t) {
- return ie(t, n);
- }),
- 2
- ),
- H = W[0],
- V = W[1],
- q = Kr(
- [j, U].map(function (t) {
- return ie(t, e);
- }),
- 2
- ),
- K = q[0],
- Z = q[1],
- J = e - Z,
- $ = n - V,
- tt = El(P, J - K, $ - H, K, H);
- return {
- type: 'inset',
- clipText: g,
- poses: (E = Zr(Zr([], Kr(Sl(H, J, $, K)), !1), Kr(tt), !1)),
- top: H,
- left: K,
- right: J,
- bottom: $,
- radius: P,
- splitter: I
- };
- }
- if ('rect' === b) {
- I = ',';
- var et = Kr(
- (O = qt(
- k || '0px, '.concat(e, 'px, ').concat(n, 'px, 0px')
- )).map(function (t) {
- return Zt(t).value;
- }),
- 4
- ),
- nt = et[0];
- return {
- type: 'rect',
- clipText: g,
- poses: (E = Sl(nt, (Z = et[1]), (V = et[2]), (K = et[3]))),
- top: nt,
- right: Z,
- bottom: V,
- left: K,
- values: O,
- splitter: I
- };
- }
- }
- }
- }
- function Ql(t, e) {
- var n = Kr(Qa(t, e), 2),
- r = n[0],
- a = n[1],
- i = e.datas,
- o = i.clipPath,
- s = i.clipIndex,
- l = o,
- c = l.type,
- u = l.poses,
- f = l.splitter,
- d = u.map(function (t) {
- return t.pos;
- });
- if ('polygon' === c) d.splice(s, 0, [r, a]);
- else {
- if ('inset' !== c) return;
- var p = Al.indexOf(s),
- g = bl.indexOf(s),
- m = u.length;
- if (
- ((function (t, e, n, r, a, i, o, s, l, c, u) {
- void 0 === c && (c = 0), void 0 === u && (u = 0);
- var f = Il(t.slice(n)),
- d = f.horizontalRange,
- p = f.verticalRange;
- if (r > -1)
- for (
- var g = 1 === wl[r] ? i - c : s - i, m = d[1];
- m <= r;
- ++m
- ) {
- var v = 1 === kl[m] ? u : l,
- h = 0;
- if (
- (r === m
- ? (h = i)
- : 0 === m
- ? (h = c + g)
- : -1 === wl[m] && (h = s - (e[n][0] - c)),
- t.splice(n + m, 0, {
- horizontal: wl[m],
- vertical: 0,
- pos: [h, v]
- }),
- e.splice(n + m, 0, [h, v]),
- 0 === m)
- )
- break;
- }
- else if (a > -1) {
- var A = 1 === kl[a] ? o - u : l - o;
- if (0 === d[1] && 0 === p[1]) {
- var b = [c + A, u];
- t.push({ horizontal: wl[0], vertical: 0, pos: b }),
- e.push(b);
- }
- var w = p[0];
- for (
- m = p[1];
- m <= a &&
- ((h = 1 === wl[m] ? c : s),
- (v = 0),
- a === m
- ? (v = o)
- : 0 === m
- ? (v = u + A)
- : 1 === kl[m]
- ? (v = e[n + w][1])
- : -1 === kl[m] && (v = l - (e[n + w][1] - u)),
- t.push({ horizontal: 0, vertical: kl[m], pos: [h, v] }),
- e.push([h, v]),
- 0 !== m);
- ++m
- );
- }
- })(u, d, 8, p, g, r, a, d[4][0], d[4][1], d[0][0], d[0][1]),
- m === u.length)
- )
- return;
- }
- var v = xl(t, o, d),
- h = ''.concat(c, '(').concat(v.join(f), ')');
- Cs(
- t,
- 'onClip',
- ys(
- t,
- e,
- qr(
- {
- clipEventType: 'added',
- clipType: c,
- poses: d,
- clipStyles: v,
- clipStyle: h,
- distX: 0,
- distY: 0
- },
- ws({ clipPath: h }, e)
- )
- )
- );
- }
- function _l(t, e) {
- var n = e.datas,
- r = n.clipPath,
- a = n.clipIndex,
- i = r,
- o = i.type,
- s = i.poses,
- l = i.splitter,
- c = s.map(function (t) {
- return t.pos;
- }),
- u = c.length;
- if ('polygon' === o) s.splice(a, 1), c.splice(a, 1);
- else {
- if ('inset' !== o) return;
- if (a < 8) return;
- if (
- ((function (t, e, n, r, a) {
- void 0 === a && (a = e.length);
- var i = Il(t.slice(r)),
- o = i.horizontalRange,
- s = i.verticalRange,
- l = n - r,
- c = 0;
- if (0 === l) c = a;
- else if (l > 0 && l < o[1]) c = o[1] - l;
- else {
- if (!(l >= s[0])) return;
- c = s[0] + s[1] - l;
- }
- t.splice(n, c), e.splice(n, c);
- })(s, c, a, 8, u),
- u === s.length)
- )
- return;
- }
- var f = xl(t, r, c),
- d = ''.concat(o, '(').concat(f.join(l), ')');
- Cs(
- t,
- 'onClip',
- ys(
- t,
- e,
- qr(
- {
- clipEventType: 'removed',
- clipType: o,
- poses: c,
- clipStyles: f,
- clipStyle: d,
- distX: 0,
- distY: 0
- },
- ws({ clipPath: d }, e)
- )
- )
- );
- }
- var Ol = {
- name: 'clippable',
- props: [
- 'clippable',
- 'defaultClipPath',
- 'customClipPath',
- 'keepRatio',
- 'clipRelative',
- 'clipArea',
- 'dragWithClip',
- 'clipTargetBounds',
- 'clipVerticalGuidelines',
- 'clipHorizontalGuidelines',
- 'clipSnapThreshold'
- ],
- events: ['clipStart', 'clip', 'clipEnd'],
- css: [
- '.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}',
- ':host {\n--bounds-color: #d66;\n}',
- '.guideline {\npointer-events: none;\nz-index: 2;\n}',
- '.line.guideline.bounds {\nbackground: #d66;\nbackground: var(--bounds-color);\n}'
- ],
- render: function (t, e) {
- var n = t.props,
- r = n.customClipPath,
- a = n.defaultClipPath,
- i = n.clipArea,
- o = n.zoom,
- s = n.groupable,
- l = t.getState(),
- c = l.target,
- u = l.width,
- f = l.height,
- d = l.allMatrix,
- p = l.is3d,
- g = l.left,
- m = l.top,
- v = l.pos1,
- h = l.pos2,
- A = l.pos3,
- b = l.pos4,
- w = l.clipPathState,
- k = l.snapBoundInfos,
- y = l.rotation;
- if (!c || s) return [];
- var I = Rl(c, u, f, a || 'inset', w || r);
- if (!I) return [];
- var E = p ? 4 : 3,
- C = I.type,
- B = I.poses.map(function (t) {
- var e = ts(d, t.pos, E);
- return [e[0] - g, e[1] - m];
- }),
- x = [],
- S = [],
- D = 'rect' === C,
- R = 'inset' === C,
- Q = 'polygon' === C;
- if (D || R || Q) {
- var _ = R ? B.slice(0, 8) : B;
- S = _.map(function (t, n) {
- var r = 0 === n ? _[_.length - 1] : _[n - 1],
- a = ue(r, t),
- i = is(r, t);
- return e.createElement('div', {
- key: 'clipLine'.concat(n),
- className: Go('line', 'clip-line', 'snap-control'),
- 'data-clip-index': n,
- style: {
- width: ''.concat(i, 'px'),
- transform: 'translate('
- .concat(r[0], 'px, ')
- .concat(r[1], 'px) rotate(')
- .concat(a, 'rad) scaleY(')
- .concat(o, ')')
- }
- });
- });
- }
- if (
- ((x = B.map(function (t, n) {
- return e.createElement('div', {
- key: 'clipControl'.concat(n),
- className: Go('control', 'clip-control', 'snap-control'),
- 'data-clip-index': n,
- style: {
- transform: 'translate('
- .concat(t[0], 'px, ')
- .concat(t[1], 'px) rotate(')
- .concat(y, 'rad) scale(')
- .concat(o, ')')
- }
- });
- })),
- R &&
- x.push.apply(
- x,
- Zr(
- [],
- Kr(
- B.slice(8).map(function (t, n) {
- return e.createElement('div', {
- key: 'clipRadiusControl'.concat(n),
- className: Go(
- 'control',
- 'clip-control',
- 'clip-radius',
- 'snap-control'
- ),
- 'data-clip-index': 8 + n,
- style: {
- transform: 'translate('
- .concat(t[0], 'px, ')
- .concat(t[1], 'px) rotate(')
- .concat(y, 'rad) scale(')
- .concat(o, ')')
- }
- });
- })
- ),
- !1
- )
- ),
- 'circle' === C || 'ellipse' === C)
- ) {
- var O = I.left,
- M = I.top,
- T = I.radiusX,
- z = I.radiusY,
- P = Kr(Fn(ts(d, [O, M], E), ts(d, [0, 0], E)), 2),
- Y = P[0],
- G = P[1],
- N = 'none';
- if (!i) {
- for (
- var U = Math.max(10, T / 5, z / 5), F = [], L = 0;
- L <= U;
- ++L
- ) {
- var X = ((2 * Math.PI) / U) * L;
- F.push([
- T + (T - o) * Math.cos(X),
- z + (z - o) * Math.sin(X)
- ]);
- }
- F.push([T, -2]),
- F.push([-2, -2]),
- F.push([-2, 2 * z + 2]),
- F.push([2 * T + 2, 2 * z + 2]),
- F.push([2 * T + 2, -2]),
- F.push([T, -2]),
- (N = 'polygon('.concat(
- F.map(function (t) {
- return ''.concat(t[0], 'px ').concat(t[1], 'px');
- }).join(', '),
- ')'
- ));
- }
- x.push(
- e.createElement('div', {
- key: 'clipEllipse',
- className: Go('clip-ellipse', 'snap-control'),
- style: {
- width: ''.concat(2 * T, 'px'),
- height: ''.concat(2 * z, 'px'),
- clipPath: N,
- transform: 'translate('
- .concat(-g + Y, 'px, ')
- .concat(-m + G, 'px) ')
- .concat(Zo(d))
- }
- })
- );
- }
- if (i) {
- var j = ns(Zr([v, h, A, b], Kr(B), !1)),
- W = j.width,
- H = j.height,
- V = j.left,
- q = j.top;
- (Q || D || R) &&
- ((F = R ? B.slice(0, 8) : B),
- x.push(
- e.createElement('div', {
- key: 'clipArea',
- className: Go('clip-area', 'snap-control'),
- style: {
- width: ''.concat(W, 'px'),
- height: ''.concat(H, 'px'),
- transform: 'translate('
- .concat(V, 'px, ')
- .concat(q, 'px)'),
- clipPath: 'polygon('.concat(
- F.map(function (t) {
- return ''
- .concat(t[0] - V, 'px ')
- .concat(t[1] - q, 'px');
- }).join(', '),
- ')'
- )
- }
- })
- ));
- }
- return (
- k &&
- ['vertical', 'horizontal'].forEach(function (t) {
- var n = k[t],
- r = 'horizontal' === t;
- n.isSnap &&
- S.push.apply(
- S,
- Zr(
- [],
- Kr(
- n.snap.posInfos.map(function (n, a) {
- var i = n.pos,
- s = Fn(ts(d, r ? [0, i] : [i, 0], E), [g, m]),
- l = Fn(ts(d, r ? [u, i] : [i, f], E), [g, m]);
- return pi(
- e,
- '',
- s,
- l,
- o,
- 'clip'.concat(t, 'snap').concat(a),
- 'guideline'
- );
- })
- ),
- !1
- )
- ),
- n.isBound &&
- S.push.apply(
- S,
- Zr(
- [],
- Kr(
- n.bounds.map(function (n, a) {
- var i = n.pos,
- s = Fn(ts(d, r ? [0, i] : [i, 0], E), [g, m]),
- l = Fn(ts(d, r ? [u, i] : [i, f], E), [g, m]);
- return pi(
- e,
- '',
- s,
- l,
- o,
- 'clip'.concat(t, 'bounds').concat(a),
- 'guideline',
- 'bounds',
- 'bold'
- );
- })
- ),
- !1
- )
- );
- }),
- Zr(Zr([], Kr(x), !1), Kr(S), !1)
- );
- },
- dragControlCondition: function (t, e) {
- return (
- e.inputEvent &&
- (e.inputEvent.target.getAttribute('class') || '').indexOf(
- 'clip'
- ) > -1
- );
- },
- dragStart: function (t, e) {
- var n = t.props.dragWithClip;
- return !(void 0 === n || n) && this.dragControlStart(t, e);
- },
- drag: function (t, e) {
- return this.dragControl(t, qr(qr({}, e), { isDragTarget: !0 }));
- },
- dragEnd: function (t, e) {
- return this.dragControlEnd(t, e);
- },
- dragControlStart: function (t, e) {
- var n = t.state,
- r = t.props,
- a = r.defaultClipPath,
- i = r.customClipPath,
- o = n.target,
- s = n.width,
- l = n.height,
- c = e.inputEvent ? e.inputEvent.target : null,
- u = (c && c.getAttribute('class')) || '',
- f = e.datas,
- d = Rl(o, s, l, a || 'inset', i);
- if (!d) return !1;
- var p = d.clipText;
- return !1 ===
- Cs(
- t,
- 'onClipStart',
- ys(t, e, {
- clipType: d.type,
- clipStyle: p,
- poses: d.poses.map(function (t) {
- return t.pos;
- })
- })
- )
- ? ((f.isClipStart = !1), !1)
- : ((f.isControl = u && u.indexOf('clip-control') > -1),
- (f.isLine = u.indexOf('clip-line') > -1),
- (f.isArea =
- u.indexOf('clip-area') > -1 ||
- u.indexOf('clip-ellipse') > -1),
- (f.clipIndex = c
- ? parseInt(c.getAttribute('data-clip-index'), 10)
- : -1),
- (f.clipPath = d),
- (f.isClipStart = !0),
- (n.clipPathState = p),
- _a(t, e),
- !0);
- },
- dragControl: function (t, e) {
- var n,
- r,
- a,
- i = e.datas,
- o = e.originalDatas,
- s = e.isDragTarget;
- if (!i.isClipStart) return !1;
- var l = i,
- c = l.isControl,
- u = l.isLine,
- f = l.isArea,
- d = l.clipIndex,
- p = l.clipPath;
- if (!p) return !1;
- var g = ls(t.props, 'clippable'),
- m = g.keepRatio,
- v = 0,
- h = 0,
- A = o.draggable,
- b = Ya(e);
- s && A
- ? ((n = Kr(A.prevBeforeDist, 2)), (v = n[0]), (h = n[1]))
- : ((r = Kr(b, 2)), (v = r[0]), (h = r[1]));
- var w = [v, h],
- k = t.state,
- y = k.width,
- I = k.height,
- E = !f && !c && !u,
- C = p.type,
- B = p.poses,
- x = p.splitter,
- S = B.map(function (t) {
- return t.pos;
- });
- E && ((v = -v), (h = -h));
- var D = !c || 'nesw' === B[d].direction,
- R = 'inset' === C || 'rect' === C,
- Q = B.map(function () {
- return [0, 0];
- });
- if (c && !D) {
- var _ = B[d],
- O = _.horizontal,
- M = _.vertical,
- T = [v * qs(O), h * qs(M)];
- Q = (function (t, e, n, r, a) {
- var i = t[e],
- o = i.direction,
- s = i.sub,
- l = t.map(function () {
- return [0, 0];
- }),
- c = o ? o.split('') : [];
- if (r && e < 8) {
- var u = c.filter(function (t) {
- return 'w' === t || 'e' === t;
- }),
- f = c.filter(function (t) {
- return 'n' === t || 's' === t;
- }),
- d = u[0],
- p = f[0];
- l[e] = n;
- var g = Kr(Dl(t), 2),
- m = g[0],
- v = g[1],
- h = m && v ? m / v : 0;
- if (h && a) {
- var A = t[(e + 4) % 8].pos,
- b = [0, 0];
- o.indexOf('w') > -1
- ? (b[0] = -1)
- : o.indexOf('e') > -1 && (b[0] = 1),
- o.indexOf('n') > -1
- ? (b[1] = -1)
- : o.indexOf('s') > -1 && (b[1] = 1);
- var w = Fs([m, v], n, h, b, !0),
- k = m + w[0],
- y = v + w[1],
- I = A[1],
- E = A[1],
- C = A[0],
- B = A[0];
- -1 === b[0]
- ? (C = B - k)
- : 1 === b[0]
- ? (B = C + k)
- : ((C -= k / 2), (B += k / 2)),
- -1 === b[1]
- ? (I = E - y)
- : (E = 1 === b[1] ? I + y : (I = E - y / 2) + y);
- var x = Sl(I, B, E, C);
- t.forEach(function (t, e) {
- (l[e][0] = x[e].pos[0] - t.pos[0]),
- (l[e][1] = x[e].pos[1] - t.pos[1]);
- });
- } else
- t.forEach(function (t, e) {
- var r = t.direction;
- r &&
- (r.indexOf(d) > -1 && (l[e][0] = n[0]),
- r.indexOf(p) > -1 && (l[e][1] = n[1]));
- }),
- d && ((l[1][0] = n[0] / 2), (l[5][0] = n[0] / 2)),
- p && ((l[3][1] = n[1] / 2), (l[7][1] = n[1] / 2));
- } else
- o && !s
- ? c.forEach(function (e) {
- var r = 'n' === e || 's' === e;
- t.forEach(function (t, a) {
- var i = t.direction,
- o = t.horizontal,
- s = t.vertical;
- i &&
- -1 !== i.indexOf(e) &&
- (l[a] = [r || !o ? 0 : n[0], r && s ? n[1] : 0]);
- });
- })
- : (l[e] = n);
- return l;
- })(B, d, T, R, m);
- } else
- D &&
- (Q = S.map(function () {
- return [v, h];
- }));
- var z = S.map(function (t, e) {
- return Un(t, Q[e]);
- }),
- P = Zr([], Kr(z), !1);
- k.snapBoundInfos = null;
- var Y = 'circle' === p.type,
- G = 'ellipse' === p.type;
- if (Y || G) {
- var N = qs((nt = ns(z)).bottom - nt.top),
- U = qs(G ? nt.right - nt.left : N),
- F = z[0][1] + N,
- L = z[0][0] - U,
- X = z[0][0] + U;
- Y && (P.push([X, nt.bottom]), Q.push([1, 0])),
- P.push([nt.left, F]),
- Q.push([0, 1]),
- P.push([L, nt.bottom]),
- Q.push([1, 0]);
- }
- var j = Io(
- (g.clipHorizontalGuidelines || []).map(function (t) {
- return ie(''.concat(t), I);
- }),
- (g.clipVerticalGuidelines || []).map(function (t) {
- return ie(''.concat(t), y);
- }),
- y,
- I
- ),
- W = [],
- H = [];
- if (Y || G) (W = [P[4][0], P[2][0]]), (H = [P[1][1], P[3][1]]);
- else if (R) {
- var V = [P[0], P[2], P[4], P[6]],
- q = [Q[0], Q[2], Q[4], Q[6]];
- (W = V.filter(function (t, e) {
- return q[e][0];
- }).map(function (t) {
- return t[0];
- })),
- (H = V.filter(function (t, e) {
- return q[e][1];
- }).map(function (t) {
- return t[1];
- }));
- } else
- (W = P.filter(function (t, e) {
- return Q[e][0];
- }).map(function (t) {
- return t[0];
- })),
- (H = P.filter(function (t, e) {
- return Q[e][1];
- }).map(function (t) {
- return t[1];
- }));
- var K = [0, 0],
- Z = $i(
- j,
- g.clipTargetBounds && {
- left: 0,
- top: 0,
- right: y,
- bottom: I
- },
- W,
- H,
- 5
- ),
- J = Z.horizontal,
- $ = Z.vertical,
- tt = J.offset,
- et = $.offset;
- if (
- (J.isBound && (K[1] += tt),
- $.isBound && (K[0] += et),
- (G || Y) && 0 === Q[0][0] && 0 === Q[0][1])
- ) {
- var nt,
- rt = (nt = ns(z)).bottom - nt.top,
- at = G ? nt.right - nt.left : rt;
- (at -= $.isBound ? qs(et) : 0 === $.snapIndex ? -et : et),
- (rt -= J.isBound ? qs(tt) : 0 === J.snapIndex ? -tt : tt),
- Y && (at = rt = Pi($, J) > 0 ? rt : at);
- var it = P[0];
- (P[1][1] = it[1] - rt),
- (P[2][0] = it[0] + at),
- (P[3][1] = it[1] + rt),
- (P[4][0] = it[0] - at);
- } else if (R && m && c) {
- var ot = Kr(Dl(B), 2),
- st = ot[0],
- lt = ot[1],
- ct = st && lt ? st / lt : 0,
- ut = B[d].direction || '',
- ft = P[1][1];
- (F = P[5][1]),
- (L = P[7][0]),
- (X = P[3][0]),
- qs(tt) <= qs(et)
- ? (tt = (Vs(tt) * qs(et)) / ct)
- : (et = Vs(et) * qs(tt) * ct),
- ut.indexOf('w') > -1
- ? (L -= et)
- : ut.indexOf('e') > -1
- ? (X -= et)
- : ((L += et / 2), (X -= et / 2)),
- ut.indexOf('n') > -1
- ? (ft -= tt)
- : ut.indexOf('s') > -1
- ? (F -= tt)
- : ((ft += tt / 2), (F -= tt / 2));
- var dt = Sl(ft, X, F, L);
- P.forEach(function (t, e) {
- var n;
- (n = Kr(dt[e].pos, 2)), (t[0] = n[0]), (t[1] = n[1]);
- });
- } else
- P.forEach(function (t, e) {
- var n = Q[e];
- n[0] && (t[0] -= et), n[1] && (t[1] -= tt);
- });
- var pt = xl(t, p, z),
- gt = ''.concat(C, '(').concat(pt.join(x), ')');
- if (
- ((k.clipPathState = gt),
- Y || G
- ? ((W = [P[4][0], P[2][0]]), (H = [P[1][1], P[3][1]]))
- : R
- ? ((W = (V = [P[0], P[2], P[4], P[6]]).map(function (t) {
- return t[0];
- })),
- (H = V.map(function (t) {
- return t[1];
- })))
- : ((W = P.map(function (t) {
- return t[0];
- })),
- (H = P.map(function (t) {
- return t[1];
- }))),
- (k.snapBoundInfos = $i(
- j,
- g.clipTargetBounds && {
- left: 0,
- top: 0,
- right: y,
- bottom: I
- },
- W,
- H,
- 1
- )),
- A)
- ) {
- var mt = k.is3d,
- vt = k.allMatrix,
- ht = mt ? 4 : 3,
- At = K;
- s && (At = [w[0] + K[0] - b[0], w[1] + K[1] - b[1]]),
- (A.deltaOffset = Nn(vt, [At[0], At[1], 0, 0], ht));
- }
- return (
- Cs(
- t,
- 'onClip',
- ys(
- t,
- e,
- qr(
- {
- clipEventType: 'changed',
- clipType: C,
- poses: z,
- clipStyle: gt,
- clipStyles: pt,
- distX: v,
- distY: h
- },
- ws(
- (((a = {})['rect' === C ? 'clip' : 'clipPath'] = gt),
- a),
- e
- )
- )
- )
- ),
- !0
- );
- },
- dragControlEnd: function (t, e) {
- this.unset(t);
- var n = e.isDrag,
- r = e.datas,
- a = e.isDouble,
- i = r.isLine,
- o = r.isClipStart,
- s = r.isControl;
- return (
- !!o &&
- (Cs(t, 'onClipEnd', Is(t, e, {})),
- a && (s ? _l(t, e) : i && Ql(t, e)),
- a || n)
- );
- },
- unset: function (t) {
- (t.state.clipPathState = ''), (t.state.snapBoundInfos = null);
- }
- },
- Ml = {
- name: 'originDraggable',
- props: ['originDraggable', 'originRelative'],
- events: ['dragOriginStart', 'dragOrigin', 'dragOriginEnd'],
- css: [
- ':host[data-able-origindraggable] .control.origin {\npointer-events: auto;\n}'
- ],
- dragControlCondition: function (t, e) {
- return e.isRequest
- ? 'originDraggable' === e.requestAble
- : ve(e.inputEvent.target, Go('origin'));
- },
- dragControlStart: function (t, e) {
- var n = e.datas;
- _a(t, e);
- var r = ys(t, e, {
- dragStart: no.dragStart(t, new Da().dragStart([0, 0], e))
- }),
- a = Cs(t, 'onDragOriginStart', r);
- return (
- (n.startOrigin = t.state.transformOrigin),
- (n.startTargetOrigin = t.state.targetOrigin),
- (n.prevOrigin = [0, 0]),
- (n.isDragOrigin = !0),
- !1 === a ? ((n.isDragOrigin = !1), !1) : r
- );
- },
- dragControl: function (t, e) {
- var n = e.datas,
- r = e.isPinch,
- a = e.isRequest;
- if (!n.isDragOrigin) return !1;
- var i = Kr(Ya(e), 2),
- o = i[0],
- s = i[1],
- l = t.state,
- c = l.width,
- u = l.height,
- f = l.offsetMatrix,
- d = l.targetMatrix,
- p = l.is3d,
- g = t.props.originRelative,
- m = void 0 === g || g,
- v = p ? 4 : 3,
- h = [o, s];
- if (a) {
- var A = e.distOrigin;
- (A[0] || A[1]) && (h = A);
- }
- var b = Un(n.startOrigin, h),
- w = Un(n.startTargetOrigin, h),
- k = Fn(h, n.prevOrigin),
- y = Ua(f, d, b, v),
- I = t.getRect(),
- E = ns(es(y, c, u, v)),
- C = [I.left - E.left, I.top - E.top];
- n.prevOrigin = h;
- var B = [Ts(w[0], c, m), Ts(w[1], u, m)].join(' '),
- x = no.drag(t, Sa(e, t.state, C, !!r, !1)),
- S = ys(
- t,
- e,
- qr(
- qr(
- {
- width: c,
- height: u,
- origin: b,
- dist: h,
- delta: k,
- transformOrigin: B,
- drag: x
- },
- ws({ transformOrigin: B, transform: x.transform }, e)
- ),
- { afterTransform: x.transform }
- )
- );
- return Cs(t, 'onDragOrigin', S), S;
- },
- dragControlEnd: function (t, e) {
- return (
- !!e.datas.isDragOrigin &&
- (Cs(t, 'onDragOriginEnd', Is(t, e, {})), !0)
- );
- },
- dragGroupControlCondition: function (t, e) {
- return this.dragControlCondition(t, e);
- },
- dragGroupControlStart: function (t, e) {
- return !!this.dragControlStart(t, e);
- },
- dragGroupControl: function (t, e) {
- var n = this.dragControl(t, e);
- return !!n && ((t.transformOrigin = n.transformOrigin), !0);
- },
- request: function (t) {
- var e = {},
- n = t.getRect(),
- r = 0,
- a = 0,
- i = n.transformOrigin,
- o = [0, 0];
- return {
- isControl: !0,
- requestStart: function () {
- return { datas: e };
- },
- request: function (t) {
- return (
- 'deltaOrigin' in t
- ? ((o[0] += t.deltaOrigin[0]), (o[1] += t.deltaOrigin[1]))
- : 'origin' in t
- ? ((o[0] = t.origin[0] - i[0]),
- (o[1] = t.origin[1] - i[1]))
- : ('x' in t
- ? (r = t.x - n.left)
- : 'deltaX' in t && (r += t.deltaX),
- 'y' in t
- ? (a = t.y - n.top)
- : 'deltaY' in t && (a += t.deltaY)),
- { datas: e, distX: r, distY: a, distOrigin: o }
- );
- },
- requestEnd: function () {
- return { datas: e, isDrag: !0 };
- }
- };
- }
- };
- function Tl(t, e, n, r, a) {
- return (
- void 0 === r && (r = [0, 0]),
- El(t && '0px' !== t ? Vt(t) : [], e, n, 0, 0, r, a)
- );
- }
- function zl(t, e, n, r, a) {
- var i = t.state,
- o = i.width,
- s = i.height,
- l = yl(a, t.props.roundRelative, o, s),
- c = l.raws,
- u = l.styles,
- f = (function (t, e) {
- return (
- void 0 === e &&
- (e = t.map(function (t) {
- return t.raw;
- })),
- {
- horizontals: t
- .map(function (t, n) {
- return t.horizontal ? e[n] : null;
- })
- .filter(function (t) {
- return null != t;
- }),
- verticals: t
- .map(function (t, n) {
- return t.vertical ? e[n] : null;
- })
- .filter(function (t) {
- return null != t;
- })
- }
- );
- })(l.radiusPoses, c),
- d = f.horizontals,
- p = f.verticals,
- g = u.join(' ');
- i.borderRadiusState = g;
- var m = ys(
- t,
- e,
- qr(
- {
- horizontals: d,
- verticals: p,
- borderRadius: g,
- width: o,
- height: s,
- delta: r,
- dist: n
- },
- ws({ borderRadius: g }, e)
- )
- );
- return Cs(t, 'onRound', m), m;
- }
- function Pl(t) {
- var e,
- n,
- r = t.getState().style,
- a = r.borderRadius || '';
- if (!a && t.props.groupable) {
- var i = t.moveables[0],
- o = t.getTargets()[0];
- o &&
- ((null == i ? void 0 : i.props.target) === o
- ? ((a =
- null !==
- (n =
- null === (e = t.moveables[0]) || void 0 === e
- ? void 0
- : e.state.style.borderRadius) && void 0 !== n
- ? n
- : ''),
- (r.borderRadius = a))
- : ((a = Bs(o).borderRadius), (r.borderRadius = a)));
- }
- return a;
- }
- var Yl = {
- name: 'roundable',
- props: [
- 'roundable',
- 'roundRelative',
- 'minRoundControls',
- 'maxRoundControls',
- 'roundClickable',
- 'roundPadding',
- 'isDisplayShadowRoundControls'
- ],
- events: [
- 'roundStart',
- 'round',
- 'roundEnd',
- 'roundGroupStart',
- 'roundGroup',
- 'roundGroupEnd'
- ],
- css: [
- '.control.border-radius {\nbackground: #d66;\ncursor: pointer;\nz-index: 3;\n}',
- '.control.border-radius.vertical {\nbackground: #d6d;\nz-index: 2;\n}',
- '.control.border-radius.virtual {\nopacity: 0.5;\nz-index: 1;\n}',
- ':host.round-line-clickable .line.direction {\ncursor: pointer;\n}'
- ],
- className: function (t) {
- var e = t.props.roundClickable;
- return !0 === e || 'line' === e ? Go('round-line-clickable') : '';
- },
- requestStyle: function () {
- return ['borderRadius'];
- },
- requestChildStyle: function () {
- return ['borderRadius'];
- },
- render: function (t, e) {
- var n = t.getState(),
- r = n.target,
- a = n.width,
- i = n.height,
- o = n.allMatrix,
- s = n.is3d,
- l = n.left,
- c = n.top,
- u = n.borderRadiusState,
- f = t.props,
- d = f.minRoundControls,
- p = void 0 === d ? [0, 0] : d,
- g = f.maxRoundControls,
- m = void 0 === g ? [4, 4] : g,
- v = f.zoom,
- h = f.roundPadding,
- A = void 0 === h ? 0 : h,
- b = f.isDisplayShadowRoundControls,
- w = f.groupable;
- if (!r) return null;
- var k = u || Pl(t),
- y = s ? 4 : 3,
- I = Tl(k, a, i, p, !0);
- if (!I) return null;
- var E = 0,
- C = 0,
- B = w ? [0, 0] : [l, c];
- return I.map(function (t, n) {
- var r = t.horizontal,
- a = t.vertical,
- i = t.direction || '',
- s = Zr([], Kr(t.pos), !1);
- (C += Math.abs(r)),
- (E += Math.abs(a)),
- r && i.indexOf('n') > -1 && (s[1] -= A),
- a && i.indexOf('w') > -1 && (s[0] -= A),
- r && i.indexOf('s') > -1 && (s[1] += A),
- a && i.indexOf('e') > -1 && (s[0] += A);
- var l = Fn(ts(o, s, y), B),
- c = t.vertical
- ? E <= m[1] && (b || !t.virtual)
- : C <= m[0] && (b || !t.virtual);
- return e.createElement('div', {
- key: 'borderRadiusControl'.concat(n),
- className: Go(
- 'control',
- 'border-radius',
- t.vertical ? 'vertical' : '',
- t.virtual ? 'virtual' : ''
- ),
- 'data-radius-index': n,
- style: {
- display: c ? 'block' : 'none',
- transform: 'translate('
- .concat(l[0], 'px, ')
- .concat(l[1], 'px) scale(')
- .concat(v, ')')
- }
- });
- });
- },
- dragControlCondition: function (t, e) {
- if (!e.inputEvent || e.isRequest) return !1;
- var n = e.inputEvent.target.getAttribute('class') || '';
- return (
- n.indexOf('border-radius') > -1 ||
- (n.indexOf('moveable-line') > -1 &&
- n.indexOf('moveable-direction') > -1)
- );
- },
- dragGroupControlCondition: function (t, e) {
- return this.dragControlCondition(t, e);
- },
- dragControlStart: function (t, e) {
- var n = e.inputEvent,
- r = e.datas,
- a = n.target,
- i = a.getAttribute('class') || '',
- o = i.indexOf('border-radius') > -1,
- s =
- i.indexOf('moveable-line') > -1 &&
- i.indexOf('moveable-direction') > -1,
- l = o ? parseInt(a.getAttribute('data-radius-index'), 10) : -1,
- c = -1;
- if (s) {
- var u = a.getAttribute('data-line-key') || '';
- u &&
- ((c = parseInt(u.replace(/render-line-/g, ''), 10)),
- isNaN(c) && (c = -1));
- }
- if (!o && !s) return !1;
- var f = ys(t, e, {});
- if (!1 === Cs(t, 'onRoundStart', f)) return !1;
- (r.lineIndex = c),
- (r.controlIndex = l),
- (r.isControl = o),
- (r.isLine = s),
- _a(t, e);
- var d = t.props,
- p = d.roundRelative,
- g = d.minRoundControls,
- m = void 0 === g ? [0, 0] : g,
- v = t.state,
- h = v.width,
- A = v.height;
- (r.isRound = !0), (r.prevDist = [0, 0]);
- var b = Tl(Pl(t) || '', h, A, m, !0) || [];
- return (
- (r.controlPoses = b),
- (v.borderRadiusState = yl(b, p, h, A).styles.join(' ')),
- f
- );
- },
- dragControl: function (t, e) {
- var n = e.datas,
- r = n.controlPoses;
- if (!n.isRound || !n.isControl || !r.length) return !1;
- var a = n.controlIndex,
- i = Kr(Ya(e), 2),
- o = i[0],
- s = i[1],
- l = [o, s],
- c = Fn(l, n.prevDist),
- u = t.props.maxRoundControls,
- f = void 0 === u ? [4, 4] : u,
- d = t.state,
- p = d.width,
- g = d.height,
- m = r[a],
- v = m.vertical,
- h = m.horizontal,
- A = r.map(function (t) {
- var e = t.horizontal,
- n = t.vertical,
- r = [e * h * l[0], n * v * l[1]];
- if (e) {
- if (1 === f[0]) return r;
- if (f[0] < 4 && e !== h) return r;
- } else {
- if (0 === f[1]) return (r[1] = ((n * h * l[0]) / p) * g), r;
- if (v) {
- if (1 === f[1]) return r;
- if (f[1] < 4 && n !== v) return r;
- }
- }
- return [0, 0];
- });
- A[a] = l;
- var b = r.map(function (t, e) {
- return qr(qr({}, t), { pos: Un(t.pos, A[e]) });
- });
- return (
- a < 4
- ? b.slice(0, a + 1).forEach(function (t) {
- t.virtual = !1;
- })
- : b.slice(4, a + 1).forEach(function (t) {
- t.virtual = !1;
- }),
- (n.prevDist = [o, s]),
- zl(t, e, l, c, b)
- );
- },
- dragControlEnd: function (t, e) {
- var n = t.state;
- n.borderRadiusState = '';
- var r = e.datas,
- a = e.isDouble;
- if (!r.isRound) return !1;
- var i = r.isControl,
- o = r.controlIndex,
- s = r.isLine,
- l = r.lineIndex,
- c = r.controlPoses,
- u = c.filter(function (t) {
- return t.virtual;
- }).length,
- f = t.props.roundClickable,
- d = void 0 === f || f;
- if (a && d) {
- if (!i || (!0 !== d && 'control' !== d)) {
- if (s && (!0 === d || 'line' === d)) {
- var p = Kr(Qa(t, e), 2);
- !(function (t, e, n, r) {
- var a = t.filter(function (t) {
- var e = t.virtual;
- return t.horizontal && !e;
- }).length,
- i = t.filter(function (t) {
- var e = t.virtual;
- return t.vertical && !e;
- }).length,
- o = -1;
- if (
- (0 === e && (0 === a ? (o = 0) : 1 === a && (o = 1)),
- 2 === e && (a <= 2 ? (o = 2) : a <= 3 && (o = 3)),
- 3 === e && (0 === i ? (o = 4) : i < 4 && (o = 7)),
- 1 === e && (i <= 1 ? (o = 5) : i <= 2 && (o = 6)),
- -1 !== o && t[o].virtual)
- ) {
- var s = t[o];
- !(function (t, e) {
- e < 4
- ? t.slice(0, e + 1).forEach(function (t) {
- t.virtual = !1;
- })
- : (t[0].virtual && (t[0].virtual = !1),
- t.slice(4, e + 1).forEach(function (t) {
- t.virtual = !1;
- }));
- })(t, o),
- o < 4 ? (s.pos[0] = n) : (s.pos[1] = r);
- }
- })(c, l, p[0], p[1]);
- }
- } else
- !(function (t, e) {
- e < 4
- ? t.slice(e, 4).forEach(function (t) {
- t.virtual = !0;
- })
- : t.slice(e).forEach(function (t) {
- t.virtual = !0;
- });
- })(c, o);
- u !==
- c.filter(function (t) {
- return t.virtual;
- }).length && zl(t, e, [0, 0], [0, 0], c);
- }
- var g = Is(t, e, {});
- return Cs(t, 'onRoundEnd', g), (n.borderRadiusState = ''), g;
- },
- dragGroupControlStart: function (t, e) {
- var n = this.dragControlStart(t, e);
- if (!n) return !1;
- var r = t.moveables,
- a = t.props.targets,
- i = si(t, 'roundable', e);
- return (
- Cs(
- t,
- 'onRoundGroupStart',
- qr(
- {
- targets: t.props.targets,
- events: i.map(function (t, e) {
- return qr(qr({}, t), {
- target: a[e],
- moveable: r[e],
- currentTarget: r[e]
- });
- })
- },
- n
- )
- ),
- n
- );
- },
- dragGroupControl: function (t, e) {
- var n = this.dragControl(t, e);
- if (!n) return !1;
- var r = t.moveables,
- a = t.props.targets,
- i = si(t, 'roundable', e),
- o = qr(
- {
- targets: t.props.targets,
- events: i.map(function (t, e) {
- return qr(
- qr(qr({}, t), {
- target: a[e],
- moveable: r[e],
- currentTarget: r[e]
- }),
- ws({ borderRadius: n.borderRadius }, t)
- );
- })
- },
- n
- );
- return Cs(t, 'onRoundGroup', o), o;
- },
- dragGroupControlEnd: function (t, e) {
- var n = t.moveables,
- r = t.props.targets,
- a = si(t, 'roundable', e);
- Es(t, 'onRound', function (e) {
- var i = qr(
- {
- targets: t.props.targets,
- events: a.map(function (t, a) {
- return qr(
- qr(qr({}, t), {
- target: r[a],
- moveable: n[a],
- currentTarget: n[a]
- }),
- ws({ borderRadius: e.borderRadius }, t)
- );
- })
- },
- e
- );
- Cs(t, 'onRoundGroup', i);
- });
- var i = this.dragControlEnd(t, e);
- if (!i) return !1;
- var o = qr(
- {
- targets: t.props.targets,
- events: a.map(function (t, e) {
- var a;
- return qr(qr({}, t), {
- target: r[e],
- moveable: n[e],
- currentTarget: n[e],
- lastEvent:
- null === (a = t.datas) || void 0 === a
- ? void 0
- : a.lastEvent
- });
- })
- },
- i
- );
- return Cs(t, 'onRoundGroupEnd', o), o;
- },
- unset: function (t) {
- t.state.borderRadiusState = '';
- }
- },
- Gl = {
- isPinch: !0,
- name: 'beforeRenderable',
- props: [],
- events: [
- 'beforeRenderStart',
- 'beforeRender',
- 'beforeRenderEnd',
- 'beforeRenderGroupStart',
- 'beforeRenderGroup',
- 'beforeRenderGroupEnd'
- ],
- dragRelation: 'weak',
- setTransform: function (t, e) {
- var n = t.state,
- r = n.is3d,
- a = n.targetMatrix,
- i = n.inlineTransform,
- o = r
- ? 'matrix3d('.concat(a.join(','), ')')
- : 'matrix('.concat(Ln(a, !0), ')'),
- s = i && 'none' !== i ? i : o;
- e.datas.startTransforms = (function (t, e) {
- var n = $n(e ? 4 : 3);
- return (
- t ===
- 'matrix'
- .concat(e ? '3d' : '', '(')
- .concat(n.join(','), ')') || 'matrix(1,0,0,1,0,0)' === t
- );
- })(s, r)
- ? []
- : Vt(s);
- },
- resetStyle: function (t) {
- var e = t.datas;
- (e.nextStyle = {}),
- (e.nextTransforms = t.datas.startTransforms),
- (e.nextTransformAppendedIndexes = []);
- },
- fillDragStartParams: function (t, e) {
- return ys(t, e, {
- setTransform: function (t) {
- e.datas.startTransforms = Ut(t) ? t : Vt(t);
- },
- isPinch: !!e.isPinch
- });
- },
- fillDragParams: function (t, e) {
- return ys(t, e, { isPinch: !!e.isPinch });
- },
- dragStart: function (t, e) {
- this.setTransform(t, e),
- this.resetStyle(e),
- Cs(t, 'onBeforeRenderStart', this.fillDragStartParams(t, e));
- },
- drag: function (t, e) {
- e.datas.startTransforms || this.setTransform(t, e),
- this.resetStyle(e),
- Cs(t, 'onBeforeRender', ys(t, e, { isPinch: !!e.isPinch }));
- },
- dragEnd: function (t, e) {
- e.datas.startTransforms ||
- (this.setTransform(t, e), this.resetStyle(e)),
- Cs(
- t,
- 'onBeforeRenderEnd',
- ys(t, e, { isPinch: !!e.isPinch, isDrag: e.isDrag })
- );
- },
- dragGroupStart: function (t, e) {
- var n = this;
- this.dragStart(t, e);
- var r = si(t, 'beforeRenderable', e),
- a = t.moveables,
- i = r.map(function (t, e) {
- var r = a[e];
- return (
- n.setTransform(r, t),
- n.resetStyle(t),
- n.fillDragStartParams(r, t)
- );
- });
- Cs(
- t,
- 'onBeforeRenderGroupStart',
- ys(t, e, {
- isPinch: !!e.isPinch,
- targets: t.props.targets,
- setTransform: function () {},
- events: i
- })
- );
- },
- dragGroup: function (t, e) {
- var n = this;
- this.drag(t, e);
- var r = si(t, 'beforeRenderable', e),
- a = t.moveables,
- i = r.map(function (t, e) {
- var r = a[e];
- return n.resetStyle(t), n.fillDragParams(r, t);
- });
- Cs(
- t,
- 'onBeforeRenderGroup',
- ys(t, e, {
- isPinch: !!e.isPinch,
- targets: t.props.targets,
- events: i
- })
- );
- },
- dragGroupEnd: function (t, e) {
- this.dragEnd(t, e),
- Cs(
- t,
- 'onBeforeRenderGroupEnd',
- ys(t, e, {
- isPinch: !!e.isPinch,
- isDrag: e.isDrag,
- targets: t.props.targets
- })
- );
- },
- dragControlStart: function (t, e) {
- return this.dragStart(t, e);
- },
- dragControl: function (t, e) {
- return this.drag(t, e);
- },
- dragControlEnd: function (t, e) {
- return this.dragEnd(t, e);
- },
- dragGroupControlStart: function (t, e) {
- return this.dragGroupStart(t, e);
- },
- dragGroupControl: function (t, e) {
- return this.dragGroup(t, e);
- },
- dragGroupControlEnd: function (t, e) {
- return this.dragGroupEnd(t, e);
- }
- },
- Nl = {
- name: 'renderable',
- props: [],
- events: [
- 'renderStart',
- 'render',
- 'renderEnd',
- 'renderGroupStart',
- 'renderGroup',
- 'renderGroupEnd'
- ],
- dragRelation: 'weak',
- dragStart: function (t, e) {
- Cs(t, 'onRenderStart', ys(t, e, { isPinch: !!e.isPinch }));
- },
- drag: function (t, e) {
- Cs(t, 'onRender', this.fillDragParams(t, e));
- },
- dragAfter: function (t, e) {
- return this.drag(t, e);
- },
- dragEnd: function (t, e) {
- Cs(t, 'onRenderEnd', this.fillDragEndParams(t, e));
- },
- dragGroupStart: function (t, e) {
- Cs(
- t,
- 'onRenderGroupStart',
- ys(t, e, { isPinch: !!e.isPinch, targets: t.props.targets })
- );
- },
- dragGroup: function (t, e) {
- var n = this,
- r = si(t, 'beforeRenderable', e),
- a = t.moveables,
- i = r.map(function (t, e) {
- var r = a[e];
- return n.fillDragParams(r, t);
- });
- Cs(
- t,
- 'onRenderGroup',
- ys(
- t,
- e,
- qr(
- qr(
- {
- isPinch: !!e.isPinch,
- targets: t.props.targets,
- transform: Va(e),
- transformObject: {}
- },
- ws(qa(e))
- ),
- { events: i }
- )
- )
- );
- },
- dragGroupEnd: function (t, e) {
- var n = this,
- r = si(t, 'beforeRenderable', e),
- a = t.moveables,
- i = r.map(function (t, e) {
- var r = a[e];
- return n.fillDragEndParams(r, t);
- });
- Cs(
- t,
- 'onRenderGroupEnd',
- ys(
- t,
- e,
- qr(
- {
- isPinch: !!e.isPinch,
- isDrag: e.isDrag,
- targets: t.props.targets,
- events: i,
- transformObject: {},
- transform: Va(e)
- },
- ws(qa(e))
- )
- )
- );
- },
- dragControlStart: function (t, e) {
- return this.dragStart(t, e);
- },
- dragControl: function (t, e) {
- return this.drag(t, e);
- },
- dragControlAfter: function (t, e) {
- return this.dragAfter(t, e);
- },
- dragControlEnd: function (t, e) {
- return this.dragEnd(t, e);
- },
- dragGroupControlStart: function (t, e) {
- return this.dragGroupStart(t, e);
- },
- dragGroupControl: function (t, e) {
- return this.dragGroup(t, e);
- },
- dragGroupControlEnd: function (t, e) {
- return this.dragGroupEnd(t, e);
- },
- fillDragParams: function (t, e) {
- var n = {};
- return (
- or(Ha(e) || []).forEach(function (t) {
- n[t.name] = t.functionValue;
- }),
- ys(
- t,
- e,
- qr(
- {
- isPinch: !!e.isPinch,
- transformObject: n,
- transform: Va(e)
- },
- ws(qa(e))
- )
- )
- );
- },
- fillDragEndParams: function (t, e) {
- var n = {};
- return (
- or(Ha(e) || []).forEach(function (t) {
- n[t.name] = t.functionValue;
- }),
- ys(
- t,
- e,
- qr(
- {
- isPinch: !!e.isPinch,
- isDrag: e.isDrag,
- transformObject: n,
- transform: Va(e)
- },
- ws(qa(e))
- )
- )
- );
- }
- };
- function Ul(t, e, n, r, a, i, o) {
- (i.clientDistX = i.distX), (i.clientDistY = i.distY);
- var s = 'Start' === a,
- l = 'End' === a,
- c = 'After' === a,
- u = t.state.target,
- f = i.isRequest,
- d = r.indexOf('Control') > -1;
- if (!u || (s && d && !f && t.areaElement === i.inputEvent.target))
- return !1;
- var p = Zr([], Kr(t[e]), !1);
- if (f) {
- var g = i.requestAble;
- p.some(function (t) {
- return t.name === g;
- }) ||
- p.push.apply(
- p,
- Zr(
- [],
- Kr(
- t.props.ables.filter(function (t) {
- return t.name === g;
- })
- ),
- !1
- )
- );
- }
- if (
- !p.length ||
- p.every(function (t) {
- return t.dragRelation;
- })
- )
- return !1;
- var m,
- v = i.inputEvent;
- l &&
- v &&
- (m = document.elementFromPoint(i.clientX, i.clientY) || v.target);
- var h = !1,
- A = function () {
- var t;
- (h = !0), null === (t = i.stop) || void 0 === t || t.call(i);
- },
- b =
- s &&
- (!t.targetGesto ||
- !t.controlGesto ||
- !t.targetGesto.isFlag() ||
- !t.controlGesto.isFlag());
- b && t.updateRect(a, !0, !1);
- var w = i.datas,
- k = d ? 'controlGesto' : 'targetGesto',
- y = t[k],
- I = function (e, n, r) {
- if (!(n in e) || y !== t[k]) return !1;
- var a = e.name,
- o = w[a] || (w[a] = {});
- if (
- (s && (o.isEventStart = !r || !e[r] || e[r](t, i)),
- !o.isEventStart)
- )
- return !1;
- var l = e[n](
- t,
- qr(qr({}, i), {
- stop: A,
- datas: o,
- originalDatas: w,
- inputTarget: m
- })
- );
- return (
- t._emitter.off(), s && !1 === l && (o.isEventStart = !1), l
- );
- };
- b &&
- p.forEach(function (e) {
- e.unset && e.unset(t);
- }),
- I(Gl, 'drag'.concat(r).concat(a));
- var E = 0,
- C = 0;
- n.forEach(function (e) {
- if (h) return !1;
- var n = ''.concat(e).concat(r).concat(a),
- o = ''.concat(e).concat(r, 'Condition');
- '' !== a || f || Os(t.state, i);
- var l = p.filter(function (t) {
- return t[n];
- }),
- c = (l = l.filter(function (t, e) {
- return t.name && l.indexOf(t) === e;
- })).filter(function (t) {
- return I(t, n, o);
- }).length;
- h && ++E,
- c && ++C,
- !h &&
- s &&
- l.length &&
- !c &&
- (E += l.filter(function (t) {
- var e = t.name;
- return !!w[e].isEventStart && 'strong' !== t.dragRelation;
- }).length
- ? 1
- : 0);
- }),
- (c && !C) || I(Nl, 'drag'.concat(r).concat(a));
- var B = y !== t[k] || E === n.length;
- return (
- (l || h || B) &&
- ((t.state.gestos = {}),
- t.moveables &&
- t.moveables.forEach(function (t) {
- t.state.gestos = {};
- }),
- p.forEach(function (e) {
- e.unset && e.unset(t);
- })),
- s &&
- !B &&
- !f &&
- C &&
- t.props.preventDefault &&
- (null == i || i.preventDefault()),
- !t.isUnmounted &&
- !B &&
- (((!s && C && !o) || l) &&
- (t.props.flushSync || No)(function () {
- t.updateRect(l ? a : '', !0, !1), t.forceUpdate();
- }),
- s || l || c || !C || o || Ul(t, e, n, r, a + 'After', i),
- !0)
- );
- }
- function Fl(t) {
- return function (e) {
- var n,
- r = e.inputEvent.target,
- a = t.areaElement,
- i = t._dragTarget;
- return (
- !(
- !i ||
- (null === (n = t.controlGesto) || void 0 === n
- ? void 0
- : n.isFlag())
- ) &&
- (r === i ||
- i.contains(r) ||
- r === a ||
- (!t.isMoveableElement(r) && !t.controlBox.contains(r)) ||
- ve(r, 'moveable-area') ||
- ve(r, 'moveable-padding') ||
- ve(r, 'moveable-edgeDraggable'))
- );
- };
- }
- function Ll(t, e, n) {
- var r = t.controlBox,
- a = [],
- i = t.props.dragTarget;
- return (
- a.push(r),
- (t.props.dragArea && !i) || a.push(e),
- Xl(t, a, 'targetAbles', n, { dragStart: Fl(t), pinchStart: Fl(t) })
- );
- }
- function Xl(t, e, n, r, a) {
- void 0 === a && (a = {});
- var i = 'targetAbles' === n,
- o = t.props,
- s = o.pinchOutside,
- l = o.pinchThreshold,
- c = o.preventClickEventOnDrag,
- u = o.preventClickDefault,
- f = o.checkInput,
- d = o.dragFocusedInput,
- p = o.preventDefault,
- g = {
- preventDefault: void 0 === p || p,
- preventRightClick: !0,
- preventWheelClick: !0,
- container:
- Gs(o.dragContainer, !0) || Ee(t.getControlBoxElement()),
- pinchThreshold: l,
- pinchOutside: s,
- preventClickEventOnDrag: !!i && c,
- preventClickEventOnDragStart: !!i && u,
- preventClickEventByCondition: i
- ? null
- : function (e) {
- return t.controlBox.contains(e.target);
- },
- checkInput: !!i && f,
- dragFocusedInput: d
- },
- m = new Ur(e, g),
- v = 'Control' === r;
- return (
- ['drag', 'pinch'].forEach(function (e) {
- ['Start', '', 'End'].forEach(function (i) {
- m.on(''.concat(e).concat(i), function (o) {
- var s,
- l = o.eventType,
- c = 'drag' === e && o.isPinch;
- !a[l] || a[l](o)
- ? c ||
- (Ul(t, n, 'drag' === e ? [e] : ['drag', e], r, i, o)
- ? (t.props.stopPropagation || ('Start' === i && v)) &&
- (null === (s = null == o ? void 0 : o.inputEvent) ||
- void 0 === s ||
- s.stopPropagation())
- : o.stop())
- : o.stop();
- });
- });
- }),
- m
- );
- }
- var jl = (function () {
- function t(t, e, n) {
- var r = this;
- (this.target = t),
- (this.moveable = e),
- (this.eventName = n),
- (this.ables = []),
- (this._onEvent = function (t) {
- var e = r.eventName,
- n = r.moveable;
- n.state.disableNativeEvent ||
- r.ables.forEach(function (r) {
- r[e](n, { inputEvent: t });
- });
- }),
- t.addEventListener(n.toLowerCase(), this._onEvent);
- }
- return (
- (t.prototype.setAbles = function (t) {
- this.ables = t;
- }),
- (t.prototype.destroy = function () {
- this.target.removeEventListener(
- this.eventName.toLowerCase(),
- this._onEvent
- ),
- (this.target = null),
- (this.moveable = null);
- }),
- t
- );
- })();
- function Wl(t, e, n, r) {
- var a;
- void 0 === n && (n = e);
- var i = ei(t, e),
- o = i.matrixes,
- s = i.is3d,
- l = i.targetMatrix,
- c = i.transformOrigin,
- u = i.targetOrigin,
- f = i.offsetContainer,
- d = i.hasFixed,
- p = i.zoom,
- g = (function (t, e) {
- if (ai) {
- var n = ee(ai, function (n) {
- return n[0][0] == t && n[0][1] == e;
- });
- if (n) return n[1];
- }
- var r = ei(t, e, !0);
- return ai && ai.push([[t, e], r]), r;
- })(f, n),
- m = g.matrixes,
- v = g.is3d,
- h = g.offsetContainer,
- A = g.zoom,
- b = r || v || s,
- w = b ? 4 : 3,
- k = 'svg' !== t.tagName.toLowerCase() && 'ownerSVGElement' in t,
- y = l,
- I = $n(w),
- E = $n(w),
- C = $n(w),
- B = $n(w),
- x = o.length,
- S = m
- .map(function (t) {
- return qr(qr({}, t), {
- matrix: t.matrix ? Zr([], Kr(t.matrix), !1) : void 0
- });
- })
- .reverse();
- o.reverse(),
- !s && b && ((y = Yn(y, 3, 4)), qo(o)),
- !v && b && qo(S),
- S.forEach(function (t) {
- E = Nn(E, t.matrix, w);
- });
- var D = n || Ie(t),
- R =
- (null === (a = S[0]) || void 0 === a ? void 0 : a.target) ||
- Wo(D, D, !0).offsetParent,
- Q = S.slice(1).reduce(function (t, e) {
- return Nn(t, e.matrix, w);
- }, $n(w));
- o.forEach(function (t, e) {
- if (
- (x - 2 === e && (C = I.slice()),
- x - 1 === e && (B = I.slice()),
- !t.matrix)
- ) {
- var n = (function (t, e, n, r, a) {
- var i,
- o = t.target,
- s = t.origin,
- l = e.matrix,
- c = cs(o),
- u = c.offsetWidth,
- f = c.offsetHeight,
- d = n.getBoundingClientRect(),
- p = [0, 0];
- n === Ie(n) && (p = Vo(o, !0));
- for (
- var g = o.getBoundingClientRect(),
- m =
- g.left -
- d.left +
- n.scrollLeft -
- (n.clientLeft || 0) +
- p[0],
- v = g.top - d.top + n.scrollTop - (n.clientTop || 0) + p[1],
- h = g.width,
- A = g.height,
- b = Gn(r, a, l),
- w = rs(b, u, f, r),
- k = w.left,
- y = w.top,
- I = w.width,
- E = w.height,
- C = ts(b, s, r),
- B = Fn(C, [k, y]),
- x = [m + (B[0] * h) / I, v + (B[1] * A) / E],
- S = [0, 0],
- D = 0;
- ++D < 10;
- ) {
- var R = Tn(a, r);
- (i = Kr(Fn(ts(R, x, r), ts(R, C, r)), 2)),
- (S[0] = i[0]),
- (S[1] = i[1]);
- var Q = rs(Gn(r, a, er(S, r), l), u, f, r),
- _ = Q.left - m,
- O = Q.top - v;
- if (qs(_) < 2 && qs(O) < 2) break;
- (x[0] -= _), (x[1] -= O);
- }
- return S.map(function (t) {
- return Math.round(t);
- });
- })(t, o[e + 1], R, w, Nn(Q, I, w));
- t.matrix = er(n, w);
- }
- I = Nn(I, t.matrix, w);
- });
- var _ = !k && s;
- y || (y = $n(_ ? 4 : 3));
- var O = Zo(k && 16 === y.length ? Yn(y, 4, 3) : y, _),
- M = E;
- return (
- (E = Mn(E, w, w)),
- {
- hasZoom: 1 !== p || 1 !== A,
- hasFixed: d,
- matrixes: o,
- rootMatrix: E,
- originalRootMatrix: M,
- beforeMatrix: C,
- offsetMatrix: B,
- allMatrix: I,
- targetMatrix: y,
- targetTransform: O,
- inlineTransform: t.style.transform,
- transformOrigin: c,
- targetOrigin: u,
- is3d: b,
- offsetContainer: f,
- offsetRootContainer: h
- }
- );
- }
- function Hl(t, e, n, r, a, i) {
- void 0 === i && (i = []);
- var o = 1,
- s = [0, 0],
- l = {
- left: 0,
- top: 0,
- width: 0,
- height: 0,
- right: 0,
- bottom: 0,
- clientLeft: 0,
- clientTop: 0,
- clientWidth: 0,
- clientHeight: 0,
- scrollWidth: 0,
- scrollHeight: 0
- },
- c = {
- left: 0,
- top: 0,
- width: 0,
- height: 0,
- right: 0,
- bottom: 0,
- clientLeft: 0,
- clientTop: 0,
- clientWidth: 0,
- clientHeight: 0,
- scrollWidth: 0,
- scrollHeight: 0
- },
- u = {
- left: 0,
- top: 0,
- width: 0,
- height: 0,
- right: 0,
- bottom: 0,
- clientLeft: 0,
- clientTop: 0,
- clientWidth: 0,
- clientHeight: 0,
- scrollWidth: 0,
- scrollHeight: 0
- },
- f = {
- left: 0,
- top: 0,
- width: 0,
- height: 0,
- right: 0,
- bottom: 0,
- clientLeft: 0,
- clientTop: 0,
- clientWidth: 0,
- clientHeight: 0,
- scrollWidth: 0,
- scrollHeight: 0
- },
- d = [0, 0],
- p = {},
- g = (function (t, e, n, r) {
- void 0 === n && (n = e);
- var a = 0,
- i = 0,
- o = 0,
- s = {},
- l = cs(t);
- if ((t && ((a = l.offsetWidth), (i = l.offsetHeight)), t)) {
- var c = Wl(t, e, n, r),
- u = Ra(c.allMatrix, c.transformOrigin, a, i);
- s = qr(qr({}, c), u);
- var f = Ra(c.allMatrix, [50, 50], 100, 100);
- o = us([f.pos1, f.pos2], f.direction);
- }
- var d = r ? 4 : 3;
- return qr(
- qr(qr({ hasZoom: !1, width: a, height: i, rotation: o }, l), {
- originalRootMatrix: $n(d),
- rootMatrix: $n(d),
- beforeMatrix: $n(d),
- offsetMatrix: $n(d),
- allMatrix: $n(d),
- targetMatrix: $n(d),
- targetTransform: '',
- inlineTransform: '',
- transformOrigin: [0, 0],
- targetOrigin: [0, 0],
- is3d: !!r,
- left: 0,
- top: 0,
- right: 0,
- bottom: 0,
- origin: [0, 0],
- pos1: [0, 0],
- pos2: [0, 0],
- pos3: [0, 0],
- pos4: [0, 0],
- direction: 1,
- hasFixed: !1,
- offsetContainer: null,
- offsetRootContainer: null,
- matrixes: []
- }),
- s
- );
- })(e, n, a, !0);
- if (e) {
- var m = oi(e);
- i.forEach(function (t) {
- p[t] = m(t);
- });
- var v = g.is3d ? 4 : 3,
- h = Ra(
- g.offsetMatrix,
- Un(g.transformOrigin, zn(g.targetMatrix, v)),
- g.width,
- g.height
- );
- (o = h.direction),
- (s = Un(h.origin, [h.left - g.left, h.top - g.top])),
- (f = ps(g.offsetRootContainer));
- var A = Wo(r, r, !0).offsetParent || g.offsetRootContainer;
- if (g.hasZoom) {
- var b = Ra(
- Nn(g.originalRootMatrix, g.allMatrix),
- g.transformOrigin,
- g.width,
- g.height
- ),
- w = Ra(
- g.originalRootMatrix,
- Xo(oi(A)('transformOrigin')).map(function (t) {
- return parseFloat(t);
- }),
- A.offsetWidth,
- A.offsetHeight
- );
- if (((l = ds(b, f)), (u = ds(w, f, A, !0)), t)) {
- var k = b.left,
- y = b.top;
- c = ds({ left: k, top: y, bottom: y, right: y }, f);
- }
- } else {
- (l = ps(e)),
- (u = (function (t) {
- var e = null == ri ? void 0 : ri.get(t);
- if (e) return e;
- var n = ps(t, !0);
- return ri && ri.set(t, n), n;
- })(A)),
- t && (c = ps(t));
- var I = u.left,
- E = u.top,
- C = u.clientLeft,
- B = u.clientTop,
- x = [l.left - I, l.top - E];
- d = Fn(_s(g.rootMatrix, x, 4), [C + g.left, B + g.top]);
- }
- }
- return qr(
- {
- targetClientRect: l,
- containerClientRect: u,
- moveableClientRect: c,
- rootContainerClientRect: f,
- beforeDirection: o,
- beforeOrigin: s,
- originalBeforeOrigin: s,
- target: e,
- style: p,
- offsetDelta: d
- },
- g
- );
- }
- function Vl(t) {
- var e = t.pos1,
- n = t.pos2,
- r = t.pos3,
- a = t.pos4;
- if (!(e && n && r && a)) return null;
- var i = Er([e, n, r, a]),
- o = [i.minX, i.minY],
- s = Fn(t.origin, o);
- return (
- (e = Fn(e, o)),
- (n = Fn(n, o)),
- (r = Fn(r, o)),
- (a = Fn(a, o)),
- qr(qr({}, t), {
- left: t.left,
- top: t.top,
- posDelta: o,
- pos1: e,
- pos2: n,
- pos3: r,
- pos4: a,
- origin: s,
- beforeOrigin: s,
- isPersisted: !0
- })
- );
- }
- var ql = (function (t) {
- function e() {
- var e = (null !== t && t.apply(this, arguments)) || this;
- return (
- (e.state = qr(
- {
- container: null,
- gestos: {},
- renderPoses: [
- [0, 0],
- [0, 0],
- [0, 0],
- [0, 0]
- ],
- disableNativeEvent: !1,
- posDelta: [0, 0]
- },
- Hl(null)
- )),
- (e.renderState = {}),
- (e.enabledAbles = []),
- (e.targetAbles = []),
- (e.controlAbles = []),
- (e.rotation = 0),
- (e.scale = [1, 1]),
- (e.isMoveableMounted = !1),
- (e.isUnmounted = !1),
- (e.events = { mouseEnter: null, mouseLeave: null }),
- (e._emitter = new pr()),
- (e._prevOriginalDragTarget = null),
- (e._originalDragTarget = null),
- (e._prevDragTarget = null),
- (e._dragTarget = null),
- (e._prevDragArea = !1),
- (e._isPropTargetChanged = !1),
- (e._hasFirstTarget = !1),
- (e._reiszeObserver = null),
- (e._observerId = 0),
- (e._mutationObserver = null),
- (e._rootContainer = null),
- (e._viewContainer = null),
- (e._viewClassNames = []),
- (e._store = {}),
- (e.checkUpdateRect = function () {
- if (!e.isDragging()) {
- var t = e.props.parentMoveable;
- t
- ? t.checkUpdateRect()
- : (re(e._observerId),
- (e._observerId = ne(function () {
- e.isDragging() || e.updateRect();
- })));
- }
- }),
- (e._onPreventClick = function (t) {
- t.stopPropagation(), t.preventDefault();
- }),
- e
- );
- }
- return (
- Vr(e, t),
- (e.prototype.render = function () {
- var t = this.props,
- e = this.getState(),
- n = t.parentPosition,
- r = t.className,
- a = t.target,
- i = t.zoom,
- o = t.cspNonce,
- s = t.translateZ,
- l = t.cssStyled,
- c = t.groupable,
- u = t.linePadding,
- f = t.controlPadding;
- this._checkUpdateRootContainer(),
- this.checkUpdate(),
- this.updateRenderPoses();
- var d = Kr(n || [0, 0], 2),
- p = d[0],
- g = d[1],
- m = e.left,
- v = e.top,
- h = e.target,
- A = e.direction,
- b = e.hasFixed,
- w = e.offsetDelta,
- k = t.targets,
- y = this.isDragging(),
- I = {};
- this.getEnabledAbles().forEach(function (t) {
- I['data-able-'.concat(t.name.toLowerCase())] = !0;
- });
- var E = this._getAbleClassName(),
- C =
- (k && k.length && (h || c)) ||
- a ||
- (!this._hasFirstTarget && this.state.isPersisted),
- B =
- this.controlBox ||
- this.props.firstRenderState ||
- this.props.persistData,
- x = [m - p, v - g];
- !c && t.useAccuratePosition && ((x[0] += w[0]), (x[1] += w[1]));
- var S = {
- position: b ? 'fixed' : 'absolute',
- display: C ? 'block' : 'none',
- visibility: B ? 'visible' : 'hidden',
- transform: 'translate3d('
- .concat(x[0], 'px, ')
- .concat(x[1], 'px, ')
- .concat(s, ')'),
- '--zoom': i,
- '--zoompx': ''.concat(i, 'px')
- };
- return (
- u && (S['--moveable-line-padding'] = u),
- f && (S['--moveable-control-padding'] = f),
- ln(
- l,
- qr(
- {
- cspNonce: o,
- ref: Ct(this, 'controlBox'),
- className: ''
- .concat(
- Go(
- 'control-box',
- -1 === A ? 'reverse' : '',
- y ? 'dragging' : ''
- ),
- ' '
- )
- .concat(E, ' ')
- .concat(r)
- },
- I,
- { onClick: this._onPreventClick, style: S }
- ),
- this.renderAbles(),
- this._renderLines()
- )
- );
- }),
- (e.prototype.componentDidMount = function () {
- (this.isMoveableMounted = !0), (this.isUnmounted = !1);
- var t = this.props,
- e = t.parentMoveable,
- n = t.container;
- this._checkUpdateRootContainer(),
- this._checkUpdateViewContainer(),
- this._updateTargets(),
- this._updateNativeEvents(),
- this._updateEvents(),
- this.updateCheckInput(),
- this._updateObserver(this.props),
- n ||
- e ||
- this.state.isPersisted ||
- (this.updateRect('', !1, !1), this.forceUpdate());
- }),
- (e.prototype.componentDidUpdate = function (t) {
- this._checkUpdateRootContainer(),
- this._checkUpdateViewContainer(),
- this._updateNativeEvents(),
- this._updateTargets(),
- this._updateEvents(),
- this.updateCheckInput(),
- this._updateObserver(t);
- }),
- (e.prototype.componentWillUnmount = function () {
- var t, e;
- (this.isMoveableMounted = !1),
- (this.isUnmounted = !0),
- this._emitter.off(),
- null === (t = this._reiszeObserver) ||
- void 0 === t ||
- t.disconnect(),
- null === (e = this._mutationObserver) ||
- void 0 === e ||
- e.disconnect(),
- this._viewContainer && this._changeAbleViewClassNames([]),
- bs(this, !1),
- bs(this, !0);
- var n = this.events;
- for (var r in n) {
- var a = n[r];
- a && a.destroy();
- }
- }),
- (e.prototype.getTargets = function () {
- var t = this.props.target;
- return t ? [t] : [];
- }),
- (e.prototype.getAble = function (t) {
- return ee(this.props.ables || [], function (e) {
- return e.name === t;
- });
- }),
- (e.prototype.getContainer = function () {
- var t = this.props,
- e = t.parentMoveable,
- n = t.wrapperMoveable;
- return (
- t.container ||
- (n && n.getContainer()) ||
- (e && e.getContainer()) ||
- this.controlBox.parentElement
- );
- }),
- (e.prototype.getControlBoxElement = function () {
- return this.controlBox;
- }),
- (e.prototype.isMoveableElement = function (t) {
- var e;
- return (
- t &&
- (
- (null === (e = t.getAttribute) || void 0 === e
- ? void 0
- : e.call(t, 'class')) || ''
- ).indexOf(ma) > -1
- );
- }),
- (e.prototype.dragStart = function (t) {
- var e = this.targetGesto,
- n = this.controlGesto;
- return (
- e && Fl(this)({ inputEvent: t })
- ? e.isFlag() || e.triggerDragStart(t)
- : n &&
- this.isMoveableElement(t.target) &&
- (n.isFlag() || n.triggerDragStart(t)),
- this
- );
- }),
- (e.prototype.hitTest = function (t) {
- var e,
- n = this.state,
- r = n.target,
- a = n.pos1,
- i = n.pos2,
- o = n.pos3,
- s = n.pos4,
- l = n.targetClientRect;
- if (!r) return 0;
- if (Be(t)) {
- var c = t.getBoundingClientRect();
- e = {
- left: c.left,
- top: c.top,
- width: c.width,
- height: c.height
- };
- } else e = qr({ width: 0, height: 0 }, t);
- var u = e.left,
- f = e.top,
- d = e.width,
- p = e.height,
- g = Ir([a, i, s, o], l),
- m = yr(
- Rr(g, [
- [u, f],
- [u + d, f],
- [u + d, f + p],
- [u, f + p]
- ])
- ),
- v = yr(g);
- return m && v ? Math.min(100, (m / v) * 100) : 0;
- }),
- (e.prototype.isInside = function (t, e) {
- var n = this.state,
- r = n.target,
- a = n.pos1,
- i = n.pos2,
- o = n.pos3,
- s = n.pos4,
- l = n.targetClientRect;
- return !!r && Cr([t, e], Ir([a, i, s, o], l));
- }),
- (e.prototype.updateRect = function (t, e, n) {
- void 0 === n && (n = !0);
- var r = this.props,
- a = !r.parentPosition && !r.wrapperMoveable;
- a && ii(!0);
- var i = r.parentMoveable,
- o = this.state.target || r.target,
- s = this.getContainer(),
- l = i ? i._rootContainer : this._rootContainer,
- c = Hl(
- this.controlBox,
- o,
- s,
- s,
- l || s,
- this._getRequestStyles()
- );
- if (!o && this._hasFirstTarget && r.persistData) {
- var u = Vl(r.persistData);
- for (var f in u) c[f] = u[f];
- }
- a && ii(), this.updateState(c, !i && n);
- }),
- (e.prototype.isDragging = function (t) {
- var e,
- n,
- r = this.targetGesto,
- a = this.controlGesto;
- return (null == r ? void 0 : r.isFlag())
- ? !t ||
- !!(null === (e = r.getEventData()[t]) || void 0 === e
- ? void 0
- : e.isEventStart)
- : !(
- !(null == a ? void 0 : a.isFlag()) ||
- (t &&
- !(null === (n = a.getEventData()[t]) || void 0 === n
- ? void 0
- : n.isEventStart))
- );
- }),
- (e.prototype.updateTarget = function (t) {
- this.updateRect(t, !0);
- }),
- (e.prototype.getRect = function () {
- var t = this.state,
- e = hs(this.state),
- n = Kr(e, 4),
- r = n[0],
- a = n[1],
- i = n[2],
- o = n[3],
- s = ns(e),
- l = t.width,
- c = t.height,
- u = s.width,
- f = s.height,
- d = s.left,
- p = s.top,
- g = [t.left, t.top],
- m = Un(g, t.origin);
- return {
- width: u,
- height: f,
- left: d,
- top: p,
- pos1: r,
- pos2: a,
- pos3: i,
- pos4: o,
- offsetWidth: l,
- offsetHeight: c,
- beforeOrigin: Un(g, t.beforeOrigin),
- origin: m,
- transformOrigin: t.transformOrigin,
- rotation: this.getRotation()
- };
- }),
- (e.prototype.getManager = function () {
- return this;
- }),
- (e.prototype.stopDrag = function (t) {
- var e;
- (t && 'target' !== t) ||
- (!1 ===
- (null == (e = this.targetGesto) ? void 0 : e.isIdle()) &&
- As(this, !1),
- null == e || e.stop()),
- (t && 'control' !== t) ||
- (!1 ===
- (null == (e = this.controlGesto) ? void 0 : e.isIdle()) &&
- As(this, !0),
- null == e || e.stop());
- }),
- (e.prototype.getRotation = function () {
- var t = this.state;
- return (function (t, e, n) {
- var r = (ue(t, e) / Math.PI) * 180;
- return (r = n >= 0 ? r : 180 - r) >= 0 ? r : 360 + r;
- })(t.pos1, t.pos2, t.direction);
- }),
- (e.prototype.request = function (t, e, n) {
- void 0 === e && (e = {});
- var r = this.props,
- a = r.ables,
- i = r.groupable,
- o = a.filter(function (e) {
- return e.name === t;
- })[0];
- if (this.isDragging() || !o || !o.request)
- return {
- request: function () {
- return this;
- },
- requestEnd: function () {
- return this;
- }
- };
- var s = this,
- l = o.request(this),
- c = n || e.isInstant,
- u = l.isControl ? 'controlAbles' : 'targetAbles',
- f = ''
- .concat(i ? 'Group' : '')
- .concat(l.isControl ? 'Control' : ''),
- d = {
- request: function (e) {
- return (
- Ul(
- s,
- u,
- ['drag'],
- f,
- '',
- qr(qr({}, l.request(e)), {
- requestAble: t,
- isRequest: !0
- }),
- c
- ),
- this
- );
- },
- requestEnd: function () {
- return (
- Ul(
- s,
- u,
- ['drag'],
- f,
- 'End',
- qr(qr({}, l.requestEnd()), {
- requestAble: t,
- isRequest: !0
- }),
- c
- ),
- this
- );
- }
- };
- return (
- Ul(
- s,
- u,
- ['drag'],
- f,
- 'Start',
- qr(qr({}, l.requestStart(e)), {
- requestAble: t,
- isRequest: !0
- }),
- c
- ),
- c ? d.request(e).requestEnd() : d
- );
- }),
- (e.prototype.destroy = function () {
- this.componentWillUnmount();
- }),
- (e.prototype.updateRenderPoses = function () {
- var t = this.getState(),
- e = this.props,
- n = e.padding,
- r = t.originalBeforeOrigin,
- a = t.transformOrigin,
- i = t.allMatrix,
- o = t.is3d,
- s = t.pos1,
- l = t.pos2,
- c = t.pos3,
- u = t.pos4,
- f = t.left,
- d = t.top,
- p = t.isPersisted;
- if (n) {
- var g = Zs(n),
- m = g.left,
- v = g.top,
- h = g.bottom,
- A = g.right,
- b = o ? 4 : 3,
- w = Gn(
- b,
- er(
- (p
- ? a
- : this.controlBox && e.groupable
- ? r
- : Un(r, [f, d])
- ).map(function (t) {
- return -t;
- }),
- b
- ),
- i,
- er(a, b)
- );
- t.renderPoses = [
- Ms(w, s, [-m, -v], b),
- Ms(w, l, [A, -v], b),
- Ms(w, c, [-m, h], b),
- Ms(w, u, [A, h], b)
- ];
- } else t.renderPoses = [s, l, c, u];
- }),
- (e.prototype.checkUpdate = function () {
- this._isPropTargetChanged = !1;
- var t = this.props,
- e = t.target,
- n = t.container,
- r = t.parentMoveable,
- a = this.state,
- i = a.target,
- o = a.container;
- if (i || e) {
- this.updateAbles();
- var s = !Ss(i, e);
- if (s || !Ss(o, n)) {
- var l = n || this.controlBox;
- l && this.unsetAbles(),
- this.updateState({ target: e, container: n }),
- !r && l && this.updateRect('End', !1, !1),
- (this._isPropTargetChanged = s);
- }
- }
- }),
- (e.prototype.waitToChangeTarget = function () {
- return new Promise(function () {});
- }),
- (e.prototype.triggerEvent = function (t, e) {
- this._emitter.trigger(t, e);
- var n = this.props[t];
- return n && n(e);
- }),
- (e.prototype.useCSS = function (t, e) {
- var n = this.props.customStyledMap,
- r = t + e;
- return n[r] || (n[r] = Wr(t, e)), n[r];
- }),
- (e.prototype.getState = function () {
- var t,
- e = this.props;
- (e.target ||
- (null === (t = e.targets) || void 0 === t
- ? void 0
- : t.length)) &&
- (this._hasFirstTarget = !0);
- var n = this.controlBox,
- r = e.persistData,
- a = e.firstRenderState;
- if (a && !n) return a;
- if (!this._hasFirstTarget && r) {
- var i = Vl(r);
- if (i) return this.updateState(i, !1), this.state;
- }
- return (this.state.isPersisted = !1), this.state;
- }),
- (e.prototype.updateSelectors = function () {}),
- (e.prototype.unsetAbles = function () {
- var t = this;
- this.targetAbles.forEach(function (e) {
- e.unset && e.unset(t);
- });
- }),
- (e.prototype.updateAbles = function (t, e) {
- void 0 === t && (t = this.props.ables),
- void 0 === e && (e = '');
- var n = this.props.triggerAblesSimultaneously,
- r = this.getEnabledAbles(t),
- a = 'drag'.concat(e, 'Start'),
- i = 'pinch'.concat(e, 'Start'),
- o = 'drag'.concat(e, 'ControlStart'),
- s = xs(r, [a, i], n),
- l = xs(r, [o], n);
- (this.enabledAbles = r),
- (this.targetAbles = s),
- (this.controlAbles = l);
- }),
- (e.prototype.updateState = function (t, e) {
- if (e) {
- if (this.isUnmounted) return;
- this.setState(t);
- } else {
- var n = this.state;
- for (var r in t) n[r] = t[r];
- }
- }),
- (e.prototype.getEnabledAbles = function (t) {
- void 0 === t && (t = this.props.ables);
- var e = this.props;
- return t.filter(function (t) {
- return t && ((t.always && !1 !== e[t.name]) || e[t.name]);
- });
- }),
- (e.prototype.renderAbles = function () {
- var t,
- e,
- n,
- r,
- a = this,
- i = this.props.triggerAblesSimultaneously,
- o = { createElement: ln };
- return (
- (this.renderState = {}),
- ((t = Rs(
- xs(this.getEnabledAbles(), ['render'], i).map(function (t) {
- return (0, t.render)(a, o) || [];
- })
- ).filter(function (t) {
- return t;
- })),
- (e = function (t) {
- return t.key;
- }),
- (n = []),
- (r = {}),
- t.forEach(function (a, i) {
- var o = e(a, i, t),
- s = r[o];
- s || ((s = []), (r[o] = s), n.push(s)), s.push(a);
- }),
- n).map(function (t) {
- return t[0];
- })
- );
- }),
- (e.prototype.updateCheckInput = function () {
- this.targetGesto &&
- (this.targetGesto.options.checkInput = this.props.checkInput);
- }),
- (e.prototype._getRequestStyles = function () {
- return this.getEnabledAbles().reduce(function (t, e) {
- var n,
- r,
- a =
- null !==
- (r =
- null === (n = e.requestStyle) || void 0 === n
- ? void 0
- : n.call(e)) && void 0 !== r
- ? r
- : [];
- return Zr(Zr([], Kr(t), !1), Kr(a), !1);
- }, Zr([], Kr(this.props.requestStyles || []), !1));
- }),
- (e.prototype._updateObserver = function (t) {
- this._updateResizeObserver(t), this._updateMutationObserver(t);
- }),
- (e.prototype._updateEvents = function () {
- var t = this.controlBox,
- e = this.targetAbles.length,
- n = this.controlAbles.length,
- r = this._dragTarget;
- ((!e && this.targetGesto) || this._isTargetChanged(!0)) &&
- (bs(this, !1), this.updateState({ gestos: {} })),
- n || bs(this, !0),
- r &&
- e &&
- !this.targetGesto &&
- (this.targetGesto = Ll(this, r, '')),
- !this.controlGesto &&
- n &&
- (this.controlGesto = Xl(
- this,
- t,
- 'controlAbles',
- 'Control'
- ));
- }),
- (e.prototype._updateTargets = function () {
- var t = this.props;
- (this._prevDragTarget = this._dragTarget),
- (this._prevOriginalDragTarget = this._originalDragTarget),
- (this._originalDragTarget = t.dragTarget || t.target),
- (this._dragTarget = Gs(this._originalDragTarget, !0)),
- (this._prevDragArea = t.dragArea);
- }),
- (e.prototype._renderLines = function () {
- var t = this.props,
- e = t.zoom,
- n = t.hideDefaultLines,
- r = t.hideChildMoveableDefaultLines,
- a = t.parentMoveable;
- if (n || (a && r)) return [];
- var i = this.getState().renderPoses,
- o = { createElement: ln };
- return [
- [0, 1],
- [1, 3],
- [3, 2],
- [2, 0]
- ].map(function (t, n) {
- var r = Kr(t, 2),
- a = r[0],
- s = r[1];
- return pi(o, '', i[a], i[s], e, 'render-line-'.concat(n));
- });
- }),
- (e.prototype._isTargetChanged = function (t) {
- var e = this.props,
- n = e.dragTarget || e.target,
- r = this._prevOriginalDragTarget,
- a = this._prevDragArea,
- i = e.dragArea;
- return (!i && r !== n) || ((t || i) && a !== i);
- }),
- (e.prototype._updateNativeEvents = function () {
- var t = this,
- e = this.props.dragArea
- ? this.areaElement
- : this.state.target,
- n = this.events,
- r = ae(n);
- if (this._isTargetChanged())
- for (var a in n) {
- var i = n[a];
- i && i.destroy(), (n[a] = null);
- }
- if (e) {
- var o = this.enabledAbles;
- r.forEach(function (r) {
- var a = xs(o, [r]),
- i = a.length > 0,
- s = n[r];
- i
- ? (s || ((s = new jl(e, t, r)), (n[r] = s)),
- s.setAbles(a))
- : s && (s.destroy(), (n[r] = null));
- });
- }
- }),
- (e.prototype._checkUpdateRootContainer = function () {
- var t = this.props.rootContainer;
- !this._rootContainer && t && (this._rootContainer = Gs(t, !0));
- }),
- (e.prototype._checkUpdateViewContainer = function () {
- var t = this.props.viewContainer;
- !this._viewContainer && t && (this._viewContainer = Gs(t, !0)),
- this._viewContainer &&
- this._changeAbleViewClassNames(
- Zr(
- Zr([], Kr(this._getAbleViewClassNames()), !1),
- [this.isDragging() ? sl : ''],
- !1
- )
- );
- }),
- (e.prototype._changeAbleViewClassNames = function (t) {
- var e = this._viewContainer,
- n = Ds(t.filter(Boolean), function (t) {
- return t;
- }).map(function (t) {
- return Kr(t, 1)[0];
- }),
- r = this._viewClassNames,
- a = _e(r, n),
- i = a.removed,
- o = a.added;
- i.forEach(function (t) {
- Ae(e, r[t]);
- }),
- o.forEach(function (t) {
- he(e, n[t]);
- }),
- (this._viewClassNames = n);
- }),
- (e.prototype._getAbleViewClassNames = function () {
- var t = this;
- return (
- this.getEnabledAbles()
- .map(function (e) {
- var n;
- return (
- (null === (n = e.viewClassName) || void 0 === n
- ? void 0
- : n.call(e, t)) || ''
- );
- })
- .join(' ') + ' '.concat(this._getAbleClassName('-view'))
- ).split(/\s+/g);
- }),
- (e.prototype._getAbleClassName = function (t) {
- var e = this;
- void 0 === t && (t = '');
- var n = this.getEnabledAbles(),
- r = this.targetGesto,
- a = this.controlGesto,
- i = (null == r ? void 0 : r.isFlag()) ? r.getEventData() : {},
- o = (null == a ? void 0 : a.isFlag()) ? a.getEventData() : {};
- return n
- .map(function (n) {
- var r,
- a,
- s,
- l = n.name,
- c =
- (null === (r = n.className) || void 0 === r
- ? void 0
- : r.call(n, e)) || '';
- return (
- ((null === (a = i[l]) || void 0 === a
- ? void 0
- : a.isEventStart) ||
- (null === (s = o[l]) || void 0 === s
- ? void 0
- : s.isEventStart)) &&
- (c += ' '.concat(
- Go(''.concat(l).concat(t, '-dragging'))
- )),
- c.trim()
- );
- })
- .filter(Boolean)
- .join(' ');
- }),
- (e.prototype._updateResizeObserver = function (t) {
- var e,
- n = this.props,
- r = n.target,
- a = Ee(this.getControlBoxElement());
- if (a.ResizeObserver && r && n.useResizeObserver) {
- if (t.target !== r || !this._reiszeObserver) {
- var i = new a.ResizeObserver(this.checkUpdateRect);
- i.observe(r, { box: 'border-box' }),
- (this._reiszeObserver = i);
- }
- } else
- null === (e = this._reiszeObserver) ||
- void 0 === e ||
- e.disconnect();
- }),
- (e.prototype._updateMutationObserver = function (t) {
- var e,
- n = this,
- r = this.props,
- a = r.target,
- i = Ee(this.getControlBoxElement());
- if (i.MutationObserver && a && r.useMutationObserver) {
- if (t.target !== a || !this._mutationObserver) {
- var o = new i.MutationObserver(function (t) {
- var e, r;
- try {
- for (
- var a = (function (t) {
- var e =
- 'function' == typeof Symbol &&
- Symbol.iterator,
- n = e && t[e],
- r = 0;
- if (n) return n.call(t);
- if (t && 'number' == typeof t.length)
- return {
- next: function () {
- return (
- t && r >= t.length && (t = void 0),
- { value: t && t[r++], done: !t }
- );
- }
- };
- throw new TypeError(
- e
- ? 'Object is not iterable.'
- : 'Symbol.iterator is not defined.'
- );
- })(t),
- i = a.next();
- !i.done;
- i = a.next()
- ) {
- var o = i.value;
- 'attributes' === o.type &&
- 'style' === o.attributeName &&
- n.checkUpdateRect();
- }
- } catch (s) {
- e = { error: s };
- } finally {
- try {
- i && !i.done && (r = a.return) && r.call(a);
- } finally {
- if (e) throw e.error;
- }
- }
- });
- o.observe(a, { attributes: !0 }),
- (this._mutationObserver = o);
- }
- } else
- null === (e = this._mutationObserver) ||
- void 0 === e ||
- e.disconnect();
- }),
- (e.defaultProps = {
- target: null,
- dragTarget: null,
- container: null,
- rootContainer: null,
- origin: !0,
- parentMoveable: null,
- wrapperMoveable: null,
- isWrapperMounted: !1,
- parentPosition: null,
- warpSelf: !1,
- svgOrigin: '',
- dragContainer: null,
- useResizeObserver: !1,
- useMutationObserver: !1,
- preventDefault: !0,
- linePadding: 0,
- controlPadding: 0,
- ables: [],
- pinchThreshold: 20,
- dragArea: !1,
- passDragArea: !1,
- transformOrigin: '',
- className: '',
- zoom: 1,
- triggerAblesSimultaneously: !1,
- padding: {},
- pinchOutside: !0,
- checkInput: !1,
- dragFocusedInput: !1,
- groupable: !1,
- hideDefaultLines: !1,
- cspNonce: '',
- translateZ: 0,
- cssStyled: null,
- customStyledMap: {},
- props: {},
- stopPropagation: !1,
- preventClickDefault: !1,
- preventClickEventOnDrag: !0,
- flushSync: No,
- firstRenderState: null,
- persistData: null,
- viewContainer: null,
- requestStyles: [],
- useAccuratePosition: !1
- }),
- e
- );
- })(tn),
- Kl = {
- name: 'groupable',
- props: [
- 'defaultGroupRotate',
- 'useDefaultGroupRotate',
- 'defaultGroupOrigin',
- 'groupable',
- 'groupableProps',
- 'targetGroups',
- 'hideChildMoveableDefaultLines'
- ],
- events: [],
- render: function (t, e) {
- var n,
- r = t.props,
- a = r.targets || [],
- i = t.getState(),
- o = i.left,
- s = i.top,
- l = i.isPersisted,
- c = r.zoom || 1,
- u = t.renderGroupRects,
- f =
- (null === (n = r.persistData) || void 0 === n
- ? void 0
- : n.children) || [];
- l
- ? (a = f.map(function () {
- return null;
- }))
- : (f = []);
- var d = t._store,
- p = Hs(d, 'parentPosition', [o, s], function (t) {
- return t.join(',');
- }),
- g = Hs(
- d,
- 'requestStyles',
- t.getRequestChildStyles(),
- function (t) {
- return t.join(',');
- }
- );
- return (
- (t.moveables = t.moveables.slice(0, a.length)),
- Zr(
- Zr(
- [],
- Kr(
- a.map(function (n, a) {
- return e.createElement(ql, {
- key: 'moveable' + a,
- ref: Bt(t, 'moveables', a),
- target: n,
- origin: !1,
- requestStyles: g,
- cssStyled: r.cssStyled,
- customStyledMap: r.customStyledMap,
- useResizeObserver: r.useResizeObserver,
- useMutationObserver: r.useMutationObserver,
- hideChildMoveableDefaultLines:
- r.hideChildMoveableDefaultLines,
- parentMoveable: t,
- parentPosition: [o, s],
- persistData: f[a],
- zoom: c
- });
- })
- ),
- !1
- ),
- Kr(
- Rs(
- u.map(function (t, n) {
- var r = [t.pos1, t.pos2, t.pos3, t.pos4];
- return [
- [0, 1],
- [1, 3],
- [3, 2],
- [2, 0]
- ].map(function (t, a) {
- var i = Kr(t, 2),
- o = i[0],
- s = i[1];
- return pi(
- e,
- '',
- Fn(r[o], p),
- Fn(r[s], p),
- c,
- 'group-rect-'.concat(n, '-').concat(a)
- );
- });
- })
- )
- ),
- !1
- )
- );
- }
- },
- Zl = Jr('clickable', {
- props: ['clickable'],
- events: ['click', 'clickGroup'],
- always: !0,
- dragRelation: 'weak',
- dragStart: function () {},
- dragControlStart: function () {},
- dragGroupStart: function (t, e) {
- e.datas.inputTarget = e.inputEvent && e.inputEvent.target;
- },
- dragEnd: function (t, e) {
- var n = t.props.target,
- r = e.inputEvent,
- a = e.inputTarget,
- i = !t.isMoveableElement(a) && t.controlBox.contains(a);
- if (r && a && !e.isDrag && !t.isMoveableElement(a) && !i) {
- var o = n.contains(a);
- Cs(
- t,
- 'onClick',
- ys(t, e, {
- isDouble: e.isDouble,
- inputTarget: a,
- isTarget: n === a,
- moveableTarget: t.props.target,
- containsTarget: o
- })
- );
- }
- },
- dragGroupEnd: function (t, e) {
- var n = e.inputEvent,
- r = e.inputTarget;
- if (
- n &&
- r &&
- !e.isDrag &&
- !t.isMoveableElement(r) &&
- e.datas.inputTarget !== r
- ) {
- var a = t.props.targets,
- i = a.indexOf(r),
- o = i > -1,
- s = !1;
- -1 === i &&
- (s =
- (i = te(a, function (t) {
- return t.contains(r);
- })) > -1),
- Cs(
- t,
- 'onClickGroup',
- ys(t, e, {
- isDouble: e.isDouble,
- targets: a,
- inputTarget: r,
- targetIndex: i,
- isTarget: o,
- containsTarget: s,
- moveableTarget: a[i]
- })
- );
- }
- },
- dragControlEnd: function (t, e) {
- this.dragEnd(t, e);
- },
- dragGroupControlEnd: function (t, e) {
- this.dragEnd(t, e);
- }
- });
- function Jl(t) {
- var e = t.originalDatas.draggable;
- return (
- e ||
- ((t.originalDatas.draggable = {}),
- (e = t.originalDatas.draggable)),
- qr(qr({}, t), { datas: e })
- );
- }
- var $l = Jr('edgeDraggable', {
- css: ['.edge.edgeDraggable.line {\ncursor: move;\n}'],
- render: function (t, e) {
- var n = t.props,
- r = n.edgeDraggable;
- return r
- ? gi(e, 'edgeDraggable', r, t.getState().renderPoses, n.zoom)
- : [];
- },
- dragCondition: function (t, e) {
- var n,
- r = t.props,
- a =
- null === (n = e.inputEvent) || void 0 === n
- ? void 0
- : n.target;
- return (
- !(!r.edgeDraggable || !a) &&
- !r.draggable &&
- ve(a, Go('direction')) &&
- ve(a, Go('edge')) &&
- ve(a, Go('edgeDraggable'))
- );
- },
- dragStart: function (t, e) {
- return no.dragStart(t, Jl(e));
- },
- drag: function (t, e) {
- return no.drag(t, Jl(e));
- },
- dragEnd: function (t, e) {
- return no.dragEnd(t, Jl(e));
- },
- dragGroupCondition: function (t, e) {
- var n,
- r = t.props,
- a =
- null === (n = e.inputEvent) || void 0 === n
- ? void 0
- : n.target;
- return (
- !(!r.edgeDraggable || !a) &&
- !r.draggable &&
- ve(a, Go('direction')) &&
- ve(a, Go('line'))
- );
- },
- dragGroupStart: function (t, e) {
- return no.dragGroupStart(t, Jl(e));
- },
- dragGroup: function (t, e) {
- return no.dragGroup(t, Jl(e));
- },
- dragGroupEnd: function (t, e) {
- return no.dragGroupEnd(t, Jl(e));
- },
- unset: function (t) {
- return no.unset(t);
- }
- }),
- tc = {
- name: 'individualGroupable',
- props: ['individualGroupable', 'individualGroupableProps'],
- events: []
- },
- ec = [
- Gl,
- gl,
- Yo,
- Js,
- no,
- $l,
- oo,
- tl,
- rl,
- go,
- pl,
- ml,
- fl,
- Ml,
- Ol,
- Yl,
- Kl,
- tc,
- Zl,
- ul,
- Nl
- ],
- nc = ec.reduce(function (t, e) {
- return (
- (e.events || []).forEach(function (e) {
- me(t, e);
- }),
- t
- );
- }, []),
- rc = ec.reduce(function (t, e) {
- return (
- (e.props || []).forEach(function (e) {
- me(t, e);
- }),
- t
- );
- }, []);
- function ac(t, e) {
- var n = Kr(t, 3),
- r = n[0],
- a = n[1],
- i = n[2];
- return (r * e[0] + a * e[1] + i) / Math.sqrt(r * r + a * a);
- }
- function ic(t, e) {
- var n = Kr(t, 2),
- r = n[0],
- a = n[1];
- return -r * e[0] - a * e[1];
- }
- function oc(t, e) {
- return Math.max.apply(
- Math,
- Zr(
- [],
- Kr(
- t.map(function (t) {
- var n = Kr(t, 4),
- r = n[0],
- a = n[1],
- i = n[2],
- o = n[3];
- return Math.max(r[e], a[e], i[e], o[e]);
- })
- ),
- !1
- )
- );
- }
- function sc(t, e) {
- return Math.min.apply(
- Math,
- Zr(
- [],
- Kr(
- t.map(function (t) {
- var n = Kr(t, 4),
- r = n[0],
- a = n[1],
- i = n[2],
- o = n[3];
- return Math.min(r[e], a[e], i[e], o[e]);
- })
- ),
- !1
- )
- );
- }
- function lc(t, e) {
- var n = e
- .map(function (e) {
- if (Ut(e)) {
- var n = lc(t, e),
- r = n.length;
- return r > 1 ? n : 1 === r ? n[0] : null;
- }
- var a = ee(t, function (t) {
- return t.manager.props.target === e;
- });
- return a ? ((a.finded = !0), a.manager) : null;
- })
- .filter(Boolean);
- return 1 === n.length && Ut(n[0]) ? n[0] : n;
- }
- var cc = (function (t) {
- function e() {
- var e = (null !== t && t.apply(this, arguments)) || this;
- return (
- (e.differ = new ur()),
- (e.moveables = []),
- (e.transformOrigin = '50% 50%'),
- (e.renderGroupRects = []),
- (e._targetGroups = []),
- (e._hasFirstTargets = !1),
- e
- );
- }
- return (
- Vr(e, t),
- (e.prototype.componentDidMount = function () {
- t.prototype.componentDidMount.call(this);
- }),
- (e.prototype.checkUpdate = function () {
- (this._isPropTargetChanged = !1), this.updateAbles();
- }),
- (e.prototype.getTargets = function () {
- return this.props.targets;
- }),
- (e.prototype.updateRect = function (t, e, n) {
- var r;
- void 0 === n && (n = !0);
- var a = this.state;
- if (this.controlBox && !a.isPersisted) {
- ii(!0),
- this.moveables.forEach(function (e) {
- e.updateRect(t, !1, !1);
- });
- var i = this.props,
- o = this.moveables,
- s = a.target || i.target,
- l = o.map(function (t) {
- return { finded: !1, manager: t };
- }),
- c = this.props.targetGroups || [],
- u = lc(l, c),
- f = i.useDefaultGroupRotate;
- u.push.apply(
- u,
- Zr(
- [],
- Kr(
- l
- .filter(function (t) {
- return !t.finded;
- })
- .map(function (t) {
- return t.manager;
- })
- ),
- !1
- )
- );
- var d = [],
- p = !e || ('' !== t && i.updateGroup),
- g = i.defaultGroupRotate || 0;
- if (!this._hasFirstTargets) {
- var m =
- null === (r = i.persistData) || void 0 === r
- ? void 0
- : r.rotation;
- null != m && (g = m);
- }
- var v = (function t(e, n, r) {
- var a = e.map(function (e) {
- if (Ut(e)) {
- var r = t(e, n),
- a = [r.pos1, r.pos2, r.pos3, r.pos4];
- return d.push(r), { poses: a, rotation: r.rotation };
- }
- return {
- poses: hs(e.state),
- rotation: e.getRotation()
- };
- }),
- i = a.map(function (t) {
- return t.rotation;
- }),
- o = 0,
- s = i[0],
- l = i.every(function (t) {
- return Math.abs(s - t) < 0.1;
- });
- o = p ? (!f && l ? s : g) : f || r || !l ? n : s;
- var c = a.map(function (t) {
- return t.poses;
- }),
- u = (function (t, e) {
- var n,
- r,
- a,
- i = [0, 0],
- o = [0, 0],
- s = [0, 0],
- l = [0, 0],
- c = 0,
- u = 0;
- if (!t.length)
- return {
- pos1: i,
- pos2: o,
- pos3: s,
- pos4: l,
- minX: 0,
- minY: 0,
- maxX: 0,
- maxY: 0,
- width: c,
- height: u,
- rotation: e
- };
- var f = pe(e, wa);
- if (f % 90) {
- var d = (f / 180) * Math.PI,
- p = Math.tan(d),
- g = -1 / p,
- m = [ya, Ia],
- v = [
- [0, 0],
- [0, 0]
- ],
- h = [ya, Ia],
- A = [
- [0, 0],
- [0, 0]
- ];
- t.forEach(function (t) {
- t.forEach(function (t) {
- var e = ac([-p, 1, 0], t),
- n = ac([-g, 1, 0], t);
- m[0] > e && ((v[0] = t), (m[0] = e)),
- m[1] < e && ((v[1] = t), (m[1] = e)),
- h[0] > n && ((A[0] = t), (h[0] = n)),
- h[1] < n && ((A[1] = t), (h[1] = n));
- });
- });
- var b = Kr(v, 2),
- w = b[0],
- k = b[1],
- y = Kr(A, 2),
- I = y[0],
- E = y[1],
- C = [-p, 1, ic([-p, 1], w)],
- B = [-p, 1, ic([-p, 1], k)],
- x = [-g, 1, ic([-g, 1], I)],
- S = [-g, 1, ic([-g, 1], E)];
- (n = Kr(
- [
- [C, x],
- [C, S],
- [B, x],
- [B, S]
- ].map(function (t) {
- var e = Kr(t, 2);
- return xr(e[0], e[1])[0];
- }),
- 4
- )),
- (i = n[0]),
- (o = n[1]),
- (s = n[2]),
- (l = n[3]),
- (c = h[1] - h[0]),
- (u = m[1] - m[0]);
- } else {
- var D = sc(t, 0),
- R = sc(t, 1),
- Q = oc(t, 0),
- _ = oc(t, 1);
- (i = [D, R]),
- (o = [Q, R]),
- (s = [D, _]),
- (l = [Q, _]),
- (c = Q - D),
- (u = _ - R),
- f % 180 &&
- ((i = (r = Kr([s, i, l, o], 4))[0]),
- (o = r[1]),
- (s = r[2]),
- (l = r[3]),
- (c = _ - R),
- (u = Q - D));
- }
- f % 360 > 180 &&
- ((i = (a = Kr([l, s, o, i], 4))[0]),
- (o = a[1]),
- (s = a[2]),
- (l = a[3]));
- var O = Er([i, o, s, l]);
- return {
- pos1: i,
- pos2: o,
- pos3: s,
- pos4: l,
- width: c,
- height: u,
- minX: O.minX,
- minY: O.minY,
- maxX: O.maxX,
- maxY: O.maxY,
- rotation: e
- };
- })(c, o);
- return u;
- })(u, this.rotation, !0);
- p &&
- ((this.rotation = v.rotation),
- (this.transformOrigin = i.defaultGroupOrigin || '50% 50%'),
- (this.scale = [1, 1])),
- (this._targetGroups = c),
- (this.renderGroupRects = d);
- var h,
- A,
- b,
- w,
- k,
- y = this.transformOrigin,
- I = this.rotation,
- E = this.scale,
- C = v.width,
- B = v.height,
- x = v.minX,
- S = v.minY,
- D =
- ((h = [
- [0, 0],
- [C, 0],
- [0, B],
- [C, B]
- ]),
- (A = js(y, C, B)),
- (b = (this.rotation / 180) * Math.PI),
- (w = h.map(function (t) {
- return Fn(t, A);
- })),
- (k = w.map(function (t) {
- return qn(t, b);
- })),
- {
- prev: w,
- next: k,
- result: k.map(function (t) {
- return Un(t, A);
- })
- }),
- R = Er(D.result),
- Q = R.minX,
- _ = R.minY,
- O =
- ' rotate('.concat(I, 'deg)') +
- ' scale('.concat(Vs(E[0]), ', ').concat(Vs(E[1]), ')'),
- M = 'translate('
- .concat(-Q, 'px, ')
- .concat(-_, 'px)')
- .concat(O);
- (this.controlBox.style.transform = 'translate3d('
- .concat(x, 'px, ')
- .concat(S, 'px, ')
- .concat(this.props.translateZ || 0, ')')),
- (s.style.cssText +=
- 'left:0px;top:0px;' +
- 'transform-origin:'.concat(y, ';') +
- 'width:'.concat(C, 'px;height:').concat(B, 'px;') +
- 'transform: '.concat(M)),
- (a.width = C),
- (a.height = B);
- var T = this.getContainer(),
- z = Hl(
- this.controlBox,
- s,
- this.controlBox,
- this.getContainer(),
- this._rootContainer || T,
- []
- ),
- P = [z.left, z.top],
- Y = Kr(hs(z), 4),
- G = Y[0],
- N = Y[1],
- U = Y[2],
- F = Y[3],
- L = Er([G, N, U, F]),
- X = [L.minX, L.minY],
- j = Vs(E[0] * E[1]);
- (z.pos1 = Fn(G, X)),
- (z.pos2 = Fn(N, X)),
- (z.pos3 = Fn(U, X)),
- (z.pos4 = Fn(F, X)),
- (z.left = x - z.left + X[0]),
- (z.top = S - z.top + X[1]),
- (z.origin = Fn(Un(P, z.origin), X)),
- (z.beforeOrigin = Fn(Un(P, z.beforeOrigin), X)),
- (z.originalBeforeOrigin = Un(P, z.originalBeforeOrigin)),
- (z.transformOrigin = Fn(Un(P, z.transformOrigin), X)),
- (s.style.transform =
- 'translate('
- .concat(-Q - X[0], 'px, ')
- .concat(-_ - X[1], 'px)') + O),
- ii(),
- this.updateState(
- qr(qr({}, z), {
- posDelta: X,
- direction: j,
- beforeDirection: j
- }),
- n
- );
- }
- }),
- (e.prototype.getRect = function () {
- return qr(qr({}, t.prototype.getRect.call(this)), {
- children: this.moveables.map(function (t) {
- return t.getRect();
- })
- });
- }),
- (e.prototype.triggerEvent = function (e, n, r) {
- if (r || e.indexOf('Group') > -1)
- return t.prototype.triggerEvent.call(this, e, n);
- this._emitter.trigger(e, n);
- }),
- (e.prototype.getRequestChildStyles = function () {
- return this.getEnabledAbles().reduce(function (t, e) {
- var n,
- r,
- a =
- null !==
- (r =
- null === (n = e.requestChildStyle) || void 0 === n
- ? void 0
- : n.call(e)) && void 0 !== r
- ? r
- : [];
- return Zr(Zr([], Kr(t), !1), Kr(a), !1);
- }, []);
- }),
- (e.prototype.updateAbles = function () {
- t.prototype.updateAbles.call(
- this,
- Zr(Zr([], Kr(this.props.ables), !1), [Kl], !1),
- 'Group'
- );
- }),
- (e.prototype._updateTargets = function () {
- t.prototype._updateTargets.call(this),
- (this._originalDragTarget =
- this.props.dragTarget || this.areaElement),
- (this._dragTarget = Gs(this._originalDragTarget, !0));
- }),
- (e.prototype._updateEvents = function () {
- var t = this.state,
- e = this.props,
- n = this._prevDragTarget,
- r = e.dragTarget || this.areaElement,
- a = e.targets,
- i = this.differ.update(a),
- o = i.added,
- s = i.changed,
- l = i.removed,
- c = o.length || l.length;
- (c || n !== r) &&
- (bs(this, !1),
- bs(this, !0),
- this.updateState({ gestos: {} })),
- n !== r && (t.target = null),
- t.target ||
- ((t.target = this.areaElement),
- (this.controlBox.style.display = 'block')),
- t.target &&
- (this.targetGesto ||
- (this.targetGesto = Ll(this, this._dragTarget, 'Group')),
- this.controlGesto ||
- (this.controlGesto = Xl(
- this,
- this.controlBox,
- 'controlAbles',
- 'GroupControl'
- )));
- var u = !Ss(t.container, e.container);
- u && (t.container = e.container),
- (u ||
- c ||
- this.transformOrigin !==
- (e.defaultGroupOrigin || '50% 50%') ||
- s.length ||
- (a.length &&
- !Ws(this._targetGroups, e.targetGroups || []))) &&
- (this.updateRect(), (this._hasFirstTargets = !0)),
- (this._isPropTargetChanged = !!c);
- }),
- (e.prototype._updateObserver = function () {}),
- (e.defaultProps = qr(qr({}, ql.defaultProps), {
- transformOrigin: ['50%', '50%'],
- groupable: !0,
- dragArea: !0,
- keepRatio: !0,
- targets: [],
- defaultGroupRotate: 0,
- defaultGroupOrigin: '50% 50%'
- })),
- e
- );
- })(ql),
- uc = (function (t) {
- function e() {
- var e = (null !== t && t.apply(this, arguments)) || this;
- return (e.moveables = []), e;
- }
- return (
- Vr(e, t),
- (e.prototype.render = function () {
- var t,
- e = this,
- n = this.props,
- r = n.cspNonce,
- a = n.cssStyled,
- i = n.persistData,
- o = n.targets || [],
- s = o.length,
- l = this.isUnmounted || !s,
- c =
- null !== (t = null == i ? void 0 : i.children) &&
- void 0 !== t
- ? t
- : [];
- return (
- l && !s && c.length
- ? (o = c.map(function () {
- return null;
- }))
- : l || (c = []),
- ln(
- a,
- {
- cspNonce: r,
- ref: Ct(this, 'controlBox'),
- className: Go('control-box')
- },
- o.map(function (t, r) {
- var a,
- i,
- o =
- null !==
- (i =
- null === (a = n.individualGroupableProps) ||
- void 0 === a
- ? void 0
- : a.call(n, t, r)) && void 0 !== i
- ? i
- : {};
- return ln(
- ql,
- qr(
- { key: 'moveable' + r, ref: Bt(e, 'moveables', r) },
- n,
- o,
- {
- target: t,
- wrapperMoveable: e,
- isWrapperMounted: e.isMoveableMounted,
- persistData: c[r]
- }
- )
- );
- })
- )
- );
- }),
- (e.prototype.componentDidMount = function () {}),
- (e.prototype.componentDidUpdate = function () {}),
- (e.prototype.getTargets = function () {
- return this.props.targets;
- }),
- (e.prototype.updateRect = function (t, e, n) {
- void 0 === n && (n = !0),
- ii(!0),
- this.moveables.forEach(function (r) {
- r.updateRect(t, e, n);
- }),
- ii();
- }),
- (e.prototype.getRect = function () {
- return qr(qr({}, t.prototype.getRect.call(this)), {
- children: this.moveables.map(function (t) {
- return t.getRect();
- })
- });
- }),
- (e.prototype.request = function () {
- return {
- request: function () {
- return this;
- },
- requestEnd: function () {
- return this;
- }
- };
- }),
- (e.prototype.dragStart = function () {
- return this;
- }),
- (e.prototype.hitTest = function () {
- return 0;
- }),
- (e.prototype.isInside = function () {
- return !1;
- }),
- (e.prototype.isDragging = function () {
- return !1;
- }),
- (e.prototype.updateRenderPoses = function () {}),
- (e.prototype.checkUpdate = function () {}),
- (e.prototype.triggerEvent = function () {}),
- (e.prototype.updateAbles = function () {}),
- (e.prototype._updateEvents = function () {}),
- (e.prototype._updateObserver = function () {}),
- e
- );
- })(ql);
- function fc(t, e) {
- var n = [];
- return (
- t.forEach(function (t) {
- t &&
- (Ft(t)
- ? e[t] && n.push.apply(n, Zr([], Kr(e[t]), !1))
- : Ut(t)
- ? n.push.apply(n, Zr([], Kr(fc(t, e)), !1))
- : n.push(t));
- }),
- n
- );
- }
- function dc(t, e) {
- var n = [];
- return (
- t.forEach(function (t) {
- t &&
- (Ft(t)
- ? e[t] && n.push.apply(n, Zr([], Kr(e[t]), !1))
- : Ut(t)
- ? n.push(dc(t, e))
- : n.push(t));
- }),
- n
- );
- }
- function pc(t, e) {
- return (
- t.length !== e.length ||
- t.some(function (t, n) {
- var r = e[n];
- return !(!t && !r) && t != r && (!Ut(t) || !Ut(r) || pc(t, r));
- })
- );
- }
- var gc = (function (t) {
- function e() {
- var e = (null !== t && t.apply(this, arguments)) || this;
- return (
- (e.refTargets = []),
- (e.selectorMap = {}),
- (e._differ = new ur()),
- (e._elementTargets = []),
- (e._onChangeTargets = null),
- e
- );
- }
- var n, r;
- return (
- Vr(e, t),
- (e.makeStyled = function () {
- var t = {};
- this.getTotalAbles().forEach(function (e) {
- var n = e.css;
- n &&
- n.forEach(function (e) {
- t[e] = !0;
- });
- });
- var e = ae(t).join('\n');
- this.defaultStyled = Wr(
- 'div',
- (function (t, e) {
- return e.replace(/([^}{]*){/gm, function (e, n) {
- return (
- n.replace(/\.([^{,\s\d.]+)/g, '.' + t + '$1') + '{'
- );
- });
- })(ma, ha + e)
- );
- }),
- (e.getTotalAbles = function () {
- return Zr([gl, Kl, tc, ul], Kr(this.defaultAbles), !1);
- }),
- (e.prototype.render = function () {
- var t,
- e = this.constructor;
- e.defaultStyled || e.makeStyled();
- var n = this.props,
- r = n.ables,
- a = n.props,
- i = (function (t, e) {
- var n = {};
- for (var r in t)
- Object.prototype.hasOwnProperty.call(t, r) &&
- e.indexOf(r) < 0 &&
- (n[r] = t[r]);
- if (
- null != t &&
- 'function' == typeof Object.getOwnPropertySymbols
- ) {
- var a = 0;
- for (
- r = Object.getOwnPropertySymbols(t);
- a < r.length;
- a++
- )
- e.indexOf(r[a]) < 0 &&
- Object.prototype.propertyIsEnumerable.call(t, r[a]) &&
- (n[r[a]] = t[r[a]]);
- }
- return n;
- })(n, ['ables', 'props']),
- o = this._updateRefs(!0),
- s = fc(o, this.selectorMap),
- l = s.length > 1,
- c = Zr(Zr([], Kr(e.getTotalAbles()), !1), Kr(r || []), !1),
- u = qr(qr(qr({}, i), a || {}), {
- ables: c,
- cssStyled: e.defaultStyled,
- customStyledMap: e.customStyledMap
- });
- this._elementTargets = s;
- var f = null,
- d = this.moveable,
- p = i.persistData;
- if (
- ((null == p ? void 0 : p.children) && (l = !0),
- i.individualGroupable)
- )
- return ln(
- uc,
- qr(
- { key: 'individual-group', ref: Ct(this, 'moveable') },
- u,
- { target: null, targets: s }
- )
- );
- if (l) {
- var g = dc(o, this.selectorMap);
- if (d && !d.props.groupable && !d.props.individualGroupable) {
- var m = d.props.target;
- m && s.indexOf(m) > -1 && (f = qr({}, d.state));
- }
- return ln(
- cc,
- qr(
- { key: 'group', ref: Ct(this, 'moveable') },
- u,
- null !== (t = i.groupableProps) && void 0 !== t ? t : {},
- {
- target: null,
- targets: s,
- targetGroups: g,
- firstRenderState: f
- }
- )
- );
- }
- var v = s[0];
- if (d && (d.props.groupable || d.props.individualGroupable)) {
- var h = ee(d.moveables || [], function (t) {
- return t.props.target === v;
- });
- h && (f = qr({}, h.state));
- }
- return ln(
- ql,
- qr({ key: 'single', ref: Ct(this, 'moveable') }, u, {
- target: v,
- firstRenderState: f
- })
- );
- }),
- (e.prototype.componentDidMount = function () {
- this._checkChangeTargets(), this._updateRefs();
- }),
- (e.prototype.componentDidUpdate = function () {
- this._checkChangeTargets();
- }),
- (e.prototype.componentWillUnmount = function () {
- (this.selectorMap = {}), (this.refTargets = []);
- }),
- (e.prototype.getTargets = function () {
- var t, e;
- return null !==
- (e =
- null === (t = this.moveable) || void 0 === t
- ? void 0
- : t.getTargets()) && void 0 !== e
- ? e
- : [];
- }),
- (e.prototype.updateSelectors = function () {
- (this.selectorMap = {}), this._updateRefs();
- }),
- (e.prototype.waitToChangeTarget = function () {
- var t,
- e = this;
- return (
- (this._onChangeTargets = function () {
- (e._onChangeTargets = null), t();
- }),
- new Promise(function (e) {
- t = e;
- })
- );
- }),
- (e.prototype.waitToChangeTargets = function () {
- return this.waitToChangeTarget();
- }),
- (e.prototype.getManager = function () {
- return this.moveable;
- }),
- (e.prototype._updateRefs = function (t) {
- var e = this.refTargets,
- n = Ns(this.props.target || this.props.targets),
- r = 'undefined' != typeof document,
- a = pc(e, n),
- i = this.selectorMap,
- o = {};
- return (
- this.refTargets.forEach(function t(e) {
- Ft(e)
- ? i[e]
- ? (o[e] = i[e])
- : r &&
- ((a = !0),
- (o[e] = [].slice.call(document.querySelectorAll(e))))
- : Ut(e) && e.forEach(t);
- }),
- (this.refTargets = n),
- (this.selectorMap = o),
- !t && a && this.forceUpdate(),
- n
- );
- }),
- (e.prototype._checkChangeTargets = function () {
- var t,
- e,
- n,
- r = this._differ.update(this._elementTargets),
- a = r.added,
- i = r.removed;
- (a.length || i.length) &&
- (null === (e = (t = this.props).onChangeTargets) ||
- void 0 === e ||
- e.call(t, {
- moveable: this.moveable,
- targets: this._elementTargets
- }),
- null === (n = this._onChangeTargets) ||
- void 0 === n ||
- n.call(this)),
- this._updateRefs();
- }),
- (e.defaultAbles = []),
- (e.customStyledMap = {}),
- (e.defaultStyled = null),
- (function (t, e, n, r) {
- var a,
- i = arguments.length,
- o =
- i < 3
- ? e
- : null === r
- ? (r = Object.getOwnPropertyDescriptor(e, n))
- : r;
- if (
- 'object' == typeof Reflect &&
- 'function' == typeof Reflect.decorate
- )
- o = Reflect.decorate(t, e, n, r);
- else
- for (var s = t.length - 1; s >= 0; s--)
- (a = t[s]) &&
- (o = (i < 3 ? a(o) : i > 3 ? a(e, n, o) : a(e, n)) || o);
- i > 3 && o && Object.defineProperty(e, n, o);
- })(
- [
- ((n = xa),
- void 0 === r && (r = {}),
- function (t, e) {
- n.forEach(function (n) {
- var a = r[n] || n;
- a in t ||
- (t[a] = function () {
- for (var t, r = [], a = 0; a < arguments.length; a++)
- r[a] = arguments[a];
- var i = (t = this[e])[n].apply(t, r);
- return i === this[e] ? this : i;
- });
- });
- })
- ],
- e.prototype,
- 'moveable',
- void 0
- ),
- e
- );
- })(tn),
- mc = (function (t) {
- function e() {
- return (null !== t && t.apply(this, arguments)) || this;
- }
- return Vr(e, t), (e.defaultAbles = ec), e;
- })(gc),
- vc = function (t, e) {
- return (
- (vc =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (t, e) {
- t.__proto__ = e;
- }) ||
- function (t, e) {
- for (var n in e)
- Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- }),
- vc(t, e)
- );
- };
- function hc(t, e) {
- if ('function' != typeof e && null !== e)
- throw new TypeError(
- 'Class extends value ' +
- String(e) +
- ' is not a constructor or null'
- );
- function n() {
- this.constructor = t;
- }
- vc(t, e),
- (t.prototype =
- null === e
- ? Object.create(e)
- : ((n.prototype = e.prototype), new n()));
- }
- var Ac = function () {
- return (
- (Ac =
- Object.assign ||
- function (t) {
- for (var e, n = 1, r = arguments.length; n < r; n++)
- for (var a in (e = arguments[n]))
- Object.prototype.hasOwnProperty.call(e, a) &&
- (t[a] = e[a]);
- return t;
- }),
- Ac.apply(this, arguments)
- );
- },
- bc = (function (t) {
- function e(e) {
- var n = t.call(this, e) || this;
- return (n.state = {}), (n.state = n.props), n;
- }
- return (
- hc(e, t),
- (e.prototype.render = function () {
- return ln(mc, Ac({ ref: Ct(this, 'moveable') }, this.state));
- }),
- e
- );
- })($e),
- wc = rc,
- kc = xa,
- yc = nc,
- Ic = (function (t) {
- function e(e, n) {
- void 0 === n && (n = {});
- var r = t.call(this) || this;
- (r.containerProvider = null),
- (r.selfElement = null),
- (r._warp = !1);
- var a,
- i = Ac({}, n),
- o = {};
- yc.forEach(function (t) {
- var e;
- o[
- ((e = 'on '.concat(t)),
- e.replace(/[\s-_]+([^\s-_])/g, function (t, e) {
- return e.toUpperCase();
- }))
- ] = function (e) {
- return r.trigger(t, e);
- };
- }),
- n.warpSelf
- ? (delete n.warpSelf, (r._warp = !0), (a = e))
- : ((a = ke(e).createElement('div')), e.appendChild(a)),
- (r.containerProvider = pn(
- ln(bc, Ac({ ref: Ct(r, 'innerMoveable') }, i, o)),
- a
- )),
- (r.selfElement = a);
- var s = i.target;
- return Ut(s) && s.length > 1 && r.updateRect(), r;
- }
- hc(e, t);
- var n = e.prototype;
- return (
- (n.setState = function (t, e) {
- this.innerMoveable.setState(t, e);
- }),
- (n.forceUpdate = function (t) {
- this.innerMoveable.forceUpdate(t);
- }),
- (n.dragStart = function (t) {
- this.innerMoveable.$_timer && this.forceUpdate(),
- this.getMoveable().dragStart(t);
- }),
- (n.destroy = function () {
- var t,
- e = this.selfElement;
- pn(null, e, this.containerProvider),
- this._warp ||
- null === (t = null == e ? void 0 : e.parentElement) ||
- void 0 === t ||
- t.removeChild(e),
- (this.containerProvider = null),
- this.off(),
- (this.selfElement = null),
- (this.innerMoveable = null);
- }),
- (n.getMoveable = function () {
- return this.innerMoveable.moveable;
- }),
- (e = (function (t, e, n, r) {
- var a,
- i = arguments.length,
- o =
- i < 3
- ? e
- : null === r
- ? (r = Object.getOwnPropertyDescriptor(e, n))
- : r;
- if (
- 'object' == typeof Reflect &&
- 'function' == typeof Reflect.decorate
- )
- o = Reflect.decorate(t, e, n, r);
- else
- for (var s = t.length - 1; s >= 0; s--)
- (a = t[s]) &&
- (o = (i < 3 ? a(o) : i > 3 ? a(e, n, o) : a(e, n)) || o);
- return i > 3 && o && Object.defineProperty(e, n, o), o;
- })(
- [
- xt(kc, function (t, e) {
- t[e] ||
- (t[e] = function () {
- for (var t = [], n = 0; n < arguments.length; n++)
- t[n] = arguments[n];
- var r = this.getMoveable();
- if (r && r[e]) return r[e].apply(r, t);
- });
- }),
- xt(wc, function (t, e) {
- Object.defineProperty(t, e, {
- get: function () {
- return this.getMoveable().props[e];
- },
- set: function (t) {
- var n;
- this.setState((((n = {})[e] = t), n));
- },
- enumerable: !0,
- configurable: !0
- });
- })
- ],
- e
- )),
- e
- );
- })(pr),
- Ec = (function (t) {
- function e() {
- return (null !== t && t.apply(this, arguments)) || this;
- }
- return hc(e, t), e;
- })(Ic);
- const Cc = '' + new URL('toolbox-b154b72c.png', e.meta.url).href,
- Bc = '' + new URL('setTimeIcon-7c3b5a37.png', e.meta.url).href,
- xc = '' + new URL('beatIcon-902ff81a.png', e.meta.url).href,
- Sc = '' + new URL('toneIcon-f58dd6e3.png', e.meta.url).href;
- t(
- 'default',
- n({
- name: 'layoutView',
- setup() {
- const t = l(),
- e = r(!1),
- n = r({}),
- o = r('left'),
- s = r(!1),
- f = r(!1),
- p = r(!1),
- g = r(!1);
- r(!1), Q();
- const m = u({
- isBoundary: !1,
- isBoundaryType: '',
- mainWidth: '',
- mainHeight: '',
- subWidth: '',
- subHeight: ''
- });
- u({
- isBoundary: !0,
- isBoundaryType: 'right',
- mainWidth: '',
- mainHeight: '',
- subWidth: '',
- subHeight: ''
- });
- const v = c(),
- A = r(!1),
- b = r();
- a(
- () => v.path,
- t => {
- const e = document.getElementById('WrapcoreViewWrap');
- e && (e.scrollTo(0, 0), window.scrollTo(0, 0));
- }
- );
- const w = u({ baseListTab: '' }),
- k = _(() => {
- const t = v.path,
- e = [
- '/classDetail',
- '/classStudentDetail',
- '/notation',
- '/xiaoku-ai'
- ];
- return '/setting' === v.path
- ? 'school' === w.baseListTab
- : !e.includes(t);
- }),
- y = _(() => {
- const t = v.path;
- return (
- console.log(t, 'routePath', t),
- !['/prepare-lessons'].includes(t)
- );
- });
- d(() => {
- (async () => {
- document.querySelector('.wrap') &&
- new Ec(document.querySelector('.wrap'), {
- target: document.querySelector('#moveNPopover'),
- container: document.querySelector('.wrap'),
- draggable: !0,
- resizable: !1,
- scalable: !1,
- rotatable: !1,
- warpable: !1,
- pinchable: !1,
- origin: !1,
- keepRatio: !1,
- edge: !1,
- throttleDrag: 0,
- throttleResize: 0,
- throttleScale: 0,
- throttleRotate: 0
- })
- .on(
- 'drag',
- ({
- target: t,
- left: e,
- top: n,
- right: r,
- bottom: a
- }) => {
- (A.value = !0), b.value && b.value.setShow(!1);
- const i = document.getElementById('moveNPopover'),
- o = getComputedStyle(i, null),
- s = {
- left: Number(o.left.replace('px', '')),
- top: Number(o.top.replace('px', '')),
- width: Number(o.width.replace('px', '')),
- height: Number(o.height.replace('px', ''))
- },
- l =
- parseInt(
- window.getComputedStyle(
- document.querySelector('.wrap')
- ).width
- ) - s.width,
- c =
- parseInt(
- window.getComputedStyle(
- document.querySelector('.wrap')
- ).height
- ) - s.height;
- (i.style.transition = ''),
- (m.isBoundary = !1),
- (m.isBoundaryType = ''),
- (m.mainHeight = c),
- (m.mainWidth = l),
- (m.subWidth = s.width),
- (m.subHeight = s.height),
- e < 0 &&
- ((e = 2),
- (m.isBoundary = !0),
- (m.isBoundaryType = 'left')),
- n < 0 &&
- ((n = 2),
- (m.isBoundary = !0),
- (m.isBoundaryType = 'top')),
- r < 0 && (r = 2),
- a < 0 && (a = 2),
- e > l - 2 &&
- ((e = l - 2),
- (m.isBoundary = !0),
- (m.isBoundaryType = 'right')),
- n > c - 2 &&
- ((n = c - 2),
- (m.isBoundary = !0),
- (m.isBoundaryType = 'bottom')),
- (t.style.left = `${e}px`),
- (t.style.top = `${n}px`);
- }
- )
- .on('dragEnd', async ({ target: t, clientX: e }) => {
- document.body.clientWidth / 2 - e > 0
- ? (o.value = 'right')
- : (o.value = 'left'),
- (A.value = !1),
- m.isBoundary &&
- ((t.style.transition = '.3s'),
- x(t, m.isBoundaryType));
- });
- })();
- const t = document.getElementById('moveNPopover');
- E(t, m),
- D(t, m),
- window.addEventListener('resize', I),
- O.on('base-setting-emit', t => {
- w.baseListTab = t;
- });
- });
- const I = () => {
- const t = document.getElementById('moveNPopover');
- (t.style.display = 'none'),
- b.value && b.value.setShow(!1),
- setTimeout(() => {
- (t.style.transition = ''),
- D(t, m),
- E(t, m),
- console.log('resize'),
- (t.style.display = 'block');
- }, 100);
- };
- M(() => {
- window.removeEventListener('resize', I);
- });
- const E = (t, e) => {
- t.addEventListener('mouseover', () => {
- e.isBoundary &&
- ('left' == e.isBoundaryType
- ? (t.style.left = '2px')
- : 'right' == e.isBoundaryType
- ? (t.style.left = e.mainWidth - 2 + 'px')
- : 'top' == e.isBoundaryType
- ? (t.style.top = '2px')
- : 'bottom' == e.isBoundaryType &&
- (t.style.top = e.mainHeight - 2 + 'px')),
- B(t, 0);
- }),
- t.addEventListener('mouseout', () => {
- e.isBoundary &&
- ('left' == e.isBoundaryType
- ? x(t, 'left')
- : 'right' == e.isBoundaryType
- ? x(t, 'right')
- : 'top' == e.isBoundaryType
- ? x(t, 'top')
- : 'bottom' == e.isBoundaryType && x(t, 'bottom'));
- });
- },
- C = t => {
- 'setTimeIcon' == t && (g.value = !0),
- 'beatIcon' == t && (f.value = !0),
- 'toneIcon' == t && (p.value = !0),
- 'iconNote' == t &&
- (b.value && b.value.setShow(!1),
- console.log(v.name, 'guideInfo'),
- O.emit('teacher-guideInfo', v.name)),
- 'iconWhiteBorad' == t &&
- ((Y.whiteboardShow = !0),
- (Y.type = 'whiteboard'),
- (Y.homeStatus = !1),
- b.value && b.value.setShow(!1)),
- 'iconPen' == t &&
- ((Y.penShow = !0),
- (Y.type = 'pen'),
- (Y.homeStatus = !1),
- b.value && b.value.setShow(!1));
- },
- B = (t, e) => {
- t.style.transform = ' rotate(' + e + ')';
- },
- x = (t, e) => {
- switch (e) {
- case 'left':
- B(t, '90deg'),
- (t.style.left = 2 - m.subWidth / 2 + 'px'),
- (t.style.top = `${top}px`);
- break;
- case 'right':
- B(t, '-90deg'),
- (t.style.left =
- m.mainWidth - 2 + m.subWidth / 2 + 'px'),
- (t.style.top = `${top}px`);
- break;
- case 'top':
- (t.style.top = 2 - m.subHeight / 2 + 'px'),
- B(t, '-180deg');
- break;
- case 'bottom':
- t.style.top = m.mainHeight - 2 + m.subHeight / 2 + 'px';
- break;
- default:
- B(t, '-0');
- }
- },
- D = (t, e) => {
- const n = getComputedStyle(t, null),
- r = {
- left: Number(n.left.replace('px', '')),
- top: Number(n.top.replace('px', '')),
- width: Number(n.width.replace('px', '')),
- height: Number(n.height.replace('px', ''))
- },
- a =
- parseInt(
- window.getComputedStyle(document.querySelector('.wrap'))
- .width
- ) - r.width,
- i =
- parseInt(
- window.getComputedStyle(document.querySelector('.wrap'))
- .height
- ) - r.height;
- (e.mainHeight = i),
- (e.mainWidth = a),
- (e.subWidth = r.width),
- (e.subHeight = r.height),
- (t.style.transition = '.3s .3s');
- },
- Y = u({
- homeStatus: !0,
- type: '',
- penShow: !1,
- whiteboardShow: !1
- });
- return () =>
- i('div', { class: [q.wrap, 'wrap'] }, [
- i('div', null, [i(J, null, null)]),
- i('div', { class: q.Wrapcore }, [
- i(It, null, null),
- i(
- 'div',
- { class: q.WrapcoreView, id: 'WrapcoreViewWrap' },
- [
- i(T('router-view'), null, {
- default: t =>
- i(
- z,
- { name: 'fade-slide', mode: 'out-in' },
- { default: () => [i(t.Component, null, null)] }
- )
- })
- ]
- )
- ]),
- i(
- S,
- {
- raw: !0,
- trigger: 'click',
- ref: b,
- 'show-arrow': !1,
- placement: o.value
- },
- {
- default: () => [
- i('div', { class: q.booxToolWrap }, [
- i('div', null, [
- i(
- 'div',
- {
- class: q.booxToolItem,
- onClick: () => C('beatIcon')
- },
- [
- i('img', { src: xc, alt: '' }, null),
- h('节拍器')
- ]
- ),
- i(
- 'div',
- {
- class: q.booxToolItem,
- onClick: () => C('toneIcon')
- },
- [
- i('img', { src: Sc, alt: '' }, null),
- h('调音器')
- ]
- ),
- i(
- 'div',
- {
- class: q.booxToolItem,
- onClick: () => C('setTimeIcon')
- },
- [
- i('img', { src: Bc, alt: '' }, null),
- h('计时器')
- ]
- ),
- i(
- 'div',
- {
- class: [
- q.booxToolItem,
- !y.value && q.booxToolDisabled
- ],
- onClick: () => {
- y.value && (s.value = !0);
- }
- },
- [
- i(
- 'img',
- {
- src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAADaxJREFUeF7tXQ2QVVUd/523q+iyT6EkYdnGnGGMqbEsv7Ks1AkqI4EsywKTDIKyD5nUhoCIjxBCpC8TyDBFbfoSphQFDRpsZKMZM8NMPpatu7swA4K7y7LL7r5/87/vnOXs4Zx773t7d99l976Znb3vvfvuPef/O///7/9x7jkCMbyI6OyGVoyjHK4VhLEEjBHAcBLIgnBmDLdIziUETghCMwFHBLCHBF4VGWytqsAWIcTx3jZUFHuBo0TDW45hoiBMBDCeCBXFXmsg/E4ItALYTAIbK4di4zAhjhTTr4IBaSCqyLVgtiDcRUC2mJsO9N8IoJkElmcqsbJKCAYq8isyIERU1tiM23ICC0AYFfkOg/lEgcYMYcGoLB4UQnRFEUUkQA610uj2Tmwg4LIoF03P6SkBAfx9SDkmnVch6sNkEwrIgVa6srMLT6RaESbKkO8FGsvLMHlkhagJOjMQkIYWmpIjrAXhrF42J/05S0CgLSMwvapSrHcJxAmID0YOj6SSjF8CmQymukCxAiLN1LZUM+IHw7+iQFt5Ga6xma9TAGECb+vCzpQz+ggMdVm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Ya+SlB2RuQC5LgcKkfqljDlWUYC7MjIWZMBdPMal/fIBpyIXzgY6cMZ1UN1d8zGXcCb1IEkaJN3ROCgJZ06wzIFA7vtAxHe/5sXPIjEeBp14Jmb3Ig/B6AG8Krxz63Q0a8bapRK44IySmuX6EwJp3xyvgQq8WOyBcvfvDP4AGXihGab/KmvqOtmwi19U5QFQvneD1YzXSCznP9Xs9NlHnyOtXnQV86nxgiMooFCrJmM6PHZCY2jVoL5MCkjDoU0ASB0i6CGZyIOFFMNNlYpOEBy8Tmy6knBxEAH8h5XSp8YRAkl9qPF2MPyFw+DHaqnS7iuTAkd+uIt3QJRmIdG/ows1JtzwqPSjdWx5xU9JNwUoPSI9NwdJt80oLyCnb5vlakm4sWTpUzI0luSXp1qslwsO19aoPSro5cb+j4tyc2K/TpNt39ysgodt3c2vSDe77CZMoG9yrphxopSs7u7AN5D8NmL7iloBAW3kZrhlZIWrMSzvnvDS00JRcDo/E3Zb0ekAmg6lVlWK9TRaBk5B8UAhrU02JaRgJtGUEprvA4LuEzgqT5usJkL8gRvoqVgICjeVlmGwzU/olQwFRRN/eCV5Biuetp68CJcDe1JByTDqvQtSH/TQSIMolbmzGbTmBBam2hIlVfs9BH2HBqCweFEKo5aIDfxwZEHUVGdHPFoS7CMhGbNqgOo1zUySwPFOJlVVC8LqpkV8FA6KuzAnJlmNcUMFEAOOJ/Ec5B+2L6xkANpPAxsqh2DhMCPVkfUEyKRoQ/S5+kasV4yiHawVhLAFjBDCcBLIDbp9dnqpD4BXhjwhgDwm8KjLYWlWBLUII3uOhV6//A2nUuK3w7m5SAAAAAElFTkSuQmCC',
- class: [q.toolClassImg],
- alt: ''
- },
- null
- ),
- h('开始上课')
- ]
- )
- ]),
- i('div', null, [
- i(
- 'div',
- {
- class: [
- q.booxToolItem,
- !k.value && q.booxToolDisabled
- ],
- onClick: () => {
- k.value && C('iconNote');
- }
- },
- [
- i(
- 'img',
- {
- src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgA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OIhx9JbZ5UKEY0aMqqNBk2fmTwXFMx+ihONBHb4K4QR14HjinTIoVTCOqpWK+ebCEO65SIw6CFEDW10EHpolRIRVf4V8qPRbjfZ8XVBMTl17fTk+n8i0iKzl0qphNdzNttGtKN7SELSUlC8T42IbYVTyMqw40vHZ0Y1XASHmOFKpEfE8V6m8t1FFKQlXRAgqmcr0iNI9Unm3ncpzCDE/OMs/nezIPP4CCXXRdjREEvkELSZpkc4+y9hiB+ccRB0ZZLtlnA2yws2cOIQKQdI0kEYYmZ+wQYOMgmLYZjxvCABZd1Ew60v3VTbVorFMPYQBemCFOSuxKWImA2LxSeXlKSjoN1evBeTjc5163O5653DjIIWrwYbnWZbtuubcUBAsqBgB+L9fDDdfJ7N5xsv4Xjzw9Jw8znVNvrhND9ONpvJcX46vE7Nt9GtHAhYOdqwckhj47jJysGZlSNAG4eZVo5lbRww2zgqt3Lob+P6go2LGDaulNi4HGPjmo+FC0s2rl5Zv0Rm5TrcH7lNubIoVSvAAAAAAElFTkSuQmCC',
- alt: ''
- },
- null
- ),
- h('帮助指引')
- ]
- ),
- i(
- 'div',
- {
- class: q.booxToolItem,
- onClick: () => C('iconPen')
- },
- [
- i(
- 'img',
- {
- 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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gVkmWSCVf4IsnndaihHuEnb3ywa6EPckwcdVDtiD6fMl50N5lvJLO9sbGRZhqwQjKd5NnTpeRVeJnNM/KmqRGRCKsEQnM9To9TjjWduUX85/I+zjPysampqW8Wespibk8/TnYoys4reUYW0AirsGFa3Aoela6THPlGcirs+s/2/ebGQwsr5xnZkcCK7IwF/ITP78OjP7e8ejjfV9elmTnek1l80ejkOX2CQTyCk/0sfTmY40zWOKI2F5nFGQ4rHtG3RAl/VPG780d66ClrTR9KKm7ZQ2Gmx3RkZh3RmToICgfD6XQ4nA7PMR05Ri//7MheUNibSqfwSG8wHfnAXmSpk6BwMhKJpCKp1BOzkbPS/fIaVDyMMJtNRl5Jt+URUDF2LXPaKGKwyLtduisvgoo9s5iRBkvCBl/ZZq9J934GVGSWssiDJOgpNfjy+UKCvZHtAFV3ljKnQE+ZwdfoVxPsfewqqNo3jdln8DW6Q/+SJBJ0lgug6pQUOQd6HAZLG5eu0co7jZOePLeO2qO/tCFkkUbEcpOQhTMhS4AiFjOFLMuKWGAWsVQuZNFfxPYFERsxRGwpEbE5RsQ2HwEblkRsvRK+iUzIdrhfFVrWoAapgAEAAAAASUVORK5CYII=',
- alt: ''
- },
- null
- ),
- h('白板')
- ]
- )
- ])
- ])
- ],
- trigger: () =>
- i(
- 'img',
- {
- src: Cc,
- id: 'moveNPopover',
- style: { display: Y.homeStatus ? 'block' : 'none' },
- class: [
- q.toolboxImg,
- 'moveNPopover',
- A.value ? q.isDragIng : ''
- ],
- alt: ''
- },
- null
- )
- }
- ),
- Y.penShow &&
- i(
- F,
- {
- show: 'pen' === Y.type,
- type: Y.type,
- close: () => {
- (Y.type = 'init'), (Y.homeStatus = !0);
- }
- },
- null
- ),
- Y.whiteboardShow &&
- i(
- F,
- {
- show: 'whiteboard' === Y.type,
- type: Y.type,
- close: () => {
- (Y.type = 'init'), (Y.homeStatus = !0);
- }
- },
- null
- ),
- i(
- R,
- {
- class: ['modalTitle background'],
- style: { width: '687px' },
- title: '节拍器',
- preset: 'card',
- show: f.value,
- 'onUpdate:show': t => (f.value = t)
- },
- {
- default: () => [
- i('div', { class: q.modeWrap }, [
- i(
- 'iframe',
- {
- src: `${j()}/metronome/?id=${new Date().getTime()}`,
- scrolling: 'no',
- frameborder: '0',
- width: '100%',
- height: '650px'
- },
- null
- )
- ])
- ]
- }
- ),
- i(
- R,
- {
- show: p.value,
- 'onUpdate:show': t => (p.value = t),
- class: ['background']
- },
- {
- default: () => [
- i('div', null, [
- i(
- L,
- {
- onClose: () => {
- p.value = !1;
- }
- },
- null
- )
- ])
- ]
- }
- ),
- i(
- R,
- {
- show: g.value,
- 'onUpdate:show': t => (g.value = t),
- class: ['modalTitle background'],
- title: '计时器',
- preset: 'card',
- style: { width: P(772) }
- },
- { default: () => [i('div', null, [i(X, null, null)])] }
- ),
- i(
- R,
- {
- show: s.value,
- 'onUpdate:show': t => (s.value = t),
- class: ['modalTitle background', q.showClass],
- preset: 'card',
- title: '开始上课'
- },
- {
- default: () => [
- i(
- H,
- {
- onClose: () => (s.value = !1),
- type: 'change',
- onConfirm: e => {
- (s.value = !1),
- t.push({
- path: '/prepare-lessons',
- query: { ...e }
- });
- }
- },
- null
- )
- ]
- }
- ),
- i(
- W,
- {
- show: e.value,
- 'onUpdate:show': t => (e.value = t),
- type: 'attend',
- params: n.value
- },
- null
- )
- ]);
- }
- })
- );
- }
- };
- }
- );
|